Jqwidgets upgraded to version 6.0.6

Wed, 26 Sep 2018 15:28:59 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 26 Sep 2018 15:28:59 +0200
changeset 70
4da2414eabbc
parent 69
ca25fdce3b85
child 71
e1c50b21b7e3

Jqwidgets upgraded to version 6.0.6

www/jqwidgets/globalization/globalize.culture.cs-CZ.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.de-DE.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.en-CA.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.en-US.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.fr-FR.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.he-IL.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.hr-HR.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.hu-HU.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.it-IT.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.ja-JP.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.lt.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.ru-RU.js file | annotate | diff | comparison | revisions
www/jqwidgets/globalization/globalize.culture.sa-IN.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqx-all.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxangular.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxbargauge.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxbulletchart.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxbuttongroup.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxbuttons.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcalendar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.annotations.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.api.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.core.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.rangeselector.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxchart.waterfall.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcheckbox.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcolorpicker.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcombobox.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcomplexinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcore.elements.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxcore.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdata.export.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdata.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdatatable.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdate.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdatetimeinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdocking.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdockinglayout.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdockpanel.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdragdrop.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdraw.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdropdownbutton.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxdropdownlist.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxeditor.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxexpander.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxfileupload.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxform.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxformattedinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgauge.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.aggregates.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.columnsreorder.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.columnsresize.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.edit.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.export.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.filter.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.grouping.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.pager.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.selection.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.sort.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxgrid.storage.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxkanban.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxknob.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxknockout.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxlayout.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxlistbox.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxlistmenu.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxloader.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxmaskedinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxmenu.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxnavbar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxnavigationbar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxnotification.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxnumberinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpanel.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpasswordinput.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpivot.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpivotdesigner.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpivotgrid.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxpopover.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxprogressbar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxradiobutton.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxrangeselector.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxrating.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxresponse.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxresponsivepanel.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxribbon.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxscheduler.api.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxscheduler.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxscrollbar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxscrollview.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxslider.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxsortable.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxsplitter.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxswitchbutton.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtabs.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtagcloud.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtextarea.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtoolbar.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtooltip.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtouch.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtree.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtreegrid.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxtreemap.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxvalidator.js file | annotate | diff | comparison | revisions
www/jqwidgets/jqxwindow.js file | annotate | diff | comparison | revisions
www/jqwidgets/styles/jqx.light.css file | annotate | diff | comparison | revisions
www/jqwidgets/styles/jqx.material-green.css file | annotate | diff | comparison | revisions
www/jqwidgets/styles/jqx.material-purple.css file | annotate | diff | comparison | revisions
www/jqwidgets/styles/jqx.material.css file | annotate | diff | comparison | revisions
www/js/global.js file | annotate | diff | comparison | revisions
--- a/www/jqwidgets/globalization/globalize.culture.cs-CZ.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.cs-CZ.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture cs-CZ
  *
--- a/www/jqwidgets/globalization/globalize.culture.de-DE.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.de-DE.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture de-DE
  *
--- a/www/jqwidgets/globalization/globalize.culture.en-CA.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.en-CA.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture en-CA
  *
--- a/www/jqwidgets/globalization/globalize.culture.en-US.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.en-US.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture en-US
  *
--- a/www/jqwidgets/globalization/globalize.culture.fr-FR.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.fr-FR.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture fr-FR
  *
--- a/www/jqwidgets/globalization/globalize.culture.he-IL.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.he-IL.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture he-IL
  *
--- a/www/jqwidgets/globalization/globalize.culture.hr-HR.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.hr-HR.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture hr-HR
  *
--- a/www/jqwidgets/globalization/globalize.culture.hu-HU.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.hu-HU.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture hu-HU
  *
--- a/www/jqwidgets/globalization/globalize.culture.it-IT.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.it-IT.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture it-IT
  *
--- a/www/jqwidgets/globalization/globalize.culture.ja-JP.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.ja-JP.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture ja-JP
  *
--- a/www/jqwidgets/globalization/globalize.culture.lt.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.lt.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture lt
  *
--- a/www/jqwidgets/globalization/globalize.culture.ru-RU.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.ru-RU.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture ru-RU
  *
--- a/www/jqwidgets/globalization/globalize.culture.sa-IN.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/globalization/globalize.culture.sa-IN.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,3 +1,4 @@
+/* eslint-disable */
 /*
  * Globalize Culture sa-IN
  *
--- a/www/jqwidgets/jqx-all.js	Wed Sep 26 11:45:10 2018 +0200
+++ b/www/jqwidgets/jqx-all.js	Wed Sep 26 15:28:59 2018 +0200
@@ -1,5 +1,5 @@
 /*
-jQWidgets v6.0.5 (2018-July)
+jQWidgets v6.0.6 (2018-August)
 Copyright (c) 2011-2018 jQWidgets.
 License: https://jqwidgets.com/license/
 */
@@ -12,7 +12,7 @@
          * Released under the MIT license
          * http://sizzlejs.com/
          */
-(function(co,bN){var ct,bG,ch,bw,bS,b6,bJ,bM,bI,cf,bF=true,b0="undefined",cv=("sizcache"+Math.random()).replace(".",""),bA=String,bE=co.document,bH=bE.documentElement,bX=0,bL=0,ca=[].pop,cs=[].push,bR=[].slice,bU=[].indexOf||function(cF){var cE=0,cD=this.length;for(;cE<cD;cE++){if(this[cE]===cF){return cE}}return -1},cx=function(cD,cE){cD[cv]=cE==null||cE;return cD},cB=function(){var cD={},cE=[];return cx(function(cF,cG){if(cE.push(cF)>ch.cacheLength){delete cD[cE.shift()]}return(cD[cF+" "]=cG)},cD)},cq=cB(),cr=cB(),bT=cB(),b4="[\\x20\\t\\r\\n\\f]",bQ="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",bO=bQ.replace("w","w#"),cA="([*^$|!~]?=)",cl="\\["+b4+"*("+bQ+")"+b4+"*(?:"+cA+b4+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bO+")|)|)"+b4+"*\\]",cC=":("+bQ+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+cl+")|[^:]|\\\\.)*|.*))\\)|)",b5=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+b4+"*((?:-\\d)?\\d*)"+b4+"*\\)|)(?=[^-]|$)",cp=new RegExp("^"+b4+"+|((?:^|[^\\\\])(?:\\\\.)*)"+b4+"+$","g"),bB=new RegExp("^"+b4+"*,"+b4+"*"),cd=new RegExp("^"+b4+"*([\\x20\\t\\r\\n\\f>+~])"+b4+"*"),ci=new RegExp(cC),ck=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,b9=/^:not/,cn=/[\x20\t\r\n\f]*[+~]/,cw=/:not\($/,bY=/h\d/i,cj=/input|select|textarea|button/i,bZ=/\\(?!\\)/g,cc={ID:new RegExp("^#("+bQ+")"),CLASS:new RegExp("^\\.("+bQ+")"),NAME:new RegExp("^\\[name=['\"]?("+bQ+")['\"]?\\]"),TAG:new RegExp("^("+bQ.replace("w","w*")+")"),ATTR:new RegExp("^"+cl),PSEUDO:new RegExp("^"+cC),POS:new RegExp(b5,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+b4+"*(even|odd|(([+-]|)(\\d*)n|)"+b4+"*(?:([+-]|)"+b4+"*(\\d+)|))"+b4+"*\\)|)","i"),needsContext:new RegExp("^"+b4+"*[>+~]|"+b5,"i")},cg=function(cD){var cF=bE.createElement("div");try{return cD(cF)}catch(cE){return false}finally{cF=null}},bD=cg(function(cD){cD.appendChild(bE.createComment(""));return !cD.getElementsByTagName("*").length}),b8=cg(function(cD){cD.innerHTML="<a href='#'></a>";return cD.firstChild&&typeof cD.firstChild.getAttribute!==b0&&cD.firstChild.getAttribute("href")==="#"}),bW=cg(function(cE){cE.innerHTML="<select></select>";var cD=typeof cE.lastChild.getAttribute("multiple");return cD!=="boolean"&&cD!=="string"}),b7=cg(function(cD){cD.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!cD.getElementsByClassName||!cD.getElementsByClassName("e").length){return false}cD.lastChild.className="e";return cD.getElementsByClassName("e").length===2}),bv=cg(function(cE){cE.id=cv+0;cE.innerHTML="<a name='"+cv+"'></a><div name='"+cv+"'></div>";bH.insertBefore(cE,bH.firstChild);var cD=bE.getElementsByName&&bE.getElementsByName(cv).length===2+bE.getElementsByName(cv+0).length;bG=!bE.getElementById(cv);bH.removeChild(cE);return cD});try{bR.call(bH.childNodes,0)[0].nodeType}catch(cz){bR=function(cE){var cF,cD=[];for(;(cF=this[cE]);cE++){cD.push(cF)}return cD}}function cm(cG,cD,cI,cL){cI=cI||[];cD=cD||bE;var cJ,cE,cK,cF,cH=cD.nodeType;if(!cG||typeof cG!=="string"){return cI}if(cH!==1&&cH!==9){return[]}cK=bS(cD);if(!cK&&!cL){if((cJ=ck.exec(cG))){if((cF=cJ[1])){if(cH===9){cE=cD.getElementById(cF);if(cE&&cE.parentNode){if(cE.id===cF){cI.push(cE);return cI}}else{return cI}}else{if(cD.ownerDocument&&(cE=cD.ownerDocument.getElementById(cF))&&b6(cD,cE)&&cE.id===cF){cI.push(cE);return cI}}}else{if(cJ[2]){cs.apply(cI,bR.call(cD.getElementsByTagName(cG),0));return cI}else{if((cF=cJ[3])&&b7&&cD.getElementsByClassName){cs.apply(cI,bR.call(cD.getElementsByClassName(cF),0));return cI}}}}}return cu(cG.replace(cp,"$1"),cD,cI,cL,cK)}cm.matches=function(cE,cD){return cm(cE,null,null,cD)};cm.matchesSelector=function(cD,cE){return cm(cE,null,null,[cD]).length>0};function ce(cD){return function(cF){var cE=cF.nodeName.toLowerCase();return cE==="input"&&cF.type===cD}}function bz(cD){return function(cF){var cE=cF.nodeName.toLowerCase();return(cE==="input"||cE==="button")&&cF.type===cD}}function cb(cD){return cx(function(cE){cE=+cE;return cx(function(cF,cJ){var cH,cG=cD([],cF.length,cE),cI=cG.length;while(cI--){if(cF[(cH=cG[cI])]){cF[cH]=!(cJ[cH]=cF[cH])}}})})}bw=cm.getText=function(cH){var cG,cE="",cF=0,cD=cH.nodeType;if(cD){if(cD===1||cD===9||cD===11){if(typeof cH.textContent==="string"){return cH.textContent}else{for(cH=cH.firstChild;cH;cH=cH.nextSibling){cE+=bw(cH)}}}else{if(cD===3||cD===4){return cH.nodeValue}}}else{for(;(cG=cH[cF]);cF++){cE+=bw(cG)}}return cE};bS=cm.isXML=function(cD){var cE=cD&&(cD.ownerDocument||cD).documentElement;return cE?cE.nodeName!=="HTML":false};b6=cm.contains=bH.contains?function(cE,cD){var cG=cE.nodeType===9?cE.documentElement:cE,cF=cD&&cD.parentNode;return cE===cF||!!(cF&&cF.nodeType===1&&cG.contains&&cG.contains(cF))}:bH.compareDocumentPosition?function(cE,cD){return cD&&!!(cE.compareDocumentPosition(cD)&16)}:function(cE,cD){while((cD=cD.parentNode)){if(cD===cE){return true}}return false};cm.attr=function(cF,cE){var cG,cD=bS(cF);if(!cD){cE=cE.toLowerCase()}if((cG=ch.attrHandle[cE])){return cG(cF)}if(cD||bW){return cF.getAttribute(cE)}cG=cF.getAttributeNode(cE);return cG?typeof cF[cE]==="boolean"?cF[cE]?cE:null:cG.specified?cG.value:null:null};ch=cm.selectors={cacheLength:50,createPseudo:cx,match:cc,attrHandle:b8?{}:{href:function(cD){return cD.getAttribute("href",2)},type:function(cD){return cD.getAttribute("type")}},find:{ID:bG?function(cG,cF,cE){if(typeof cF.getElementById!==b0&&!cE){var cD=cF.getElementById(cG);return cD&&cD.parentNode?[cD]:[]}}:function(cG,cF,cE){if(typeof cF.getElementById!==b0&&!cE){var cD=cF.getElementById(cG);return cD?cD.id===cG||typeof cD.getAttributeNode!==b0&&cD.getAttributeNode("id").value===cG?[cD]:bN:[]}},TAG:bD?function(cD,cE){if(typeof cE.getElementsByTagName!==b0){return cE.getElementsByTagName(cD)}}:function(cD,cH){var cG=cH.getElementsByTagName(cD);if(cD==="*"){var cI,cF=[],cE=0;for(;(cI=cG[cE]);cE++){if(cI.nodeType===1){cF.push(cI)}}return cF}return cG},NAME:bv&&function(cD,cE){if(typeof cE.getElementsByName!==b0){return cE.getElementsByName(name)}},CLASS:b7&&function(cF,cE,cD){if(typeof cE.getElementsByClassName!==b0&&!cD){return cE.getElementsByClassName(cF)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(cD){cD[1]=cD[1].replace(bZ,"");cD[3]=(cD[4]||cD[5]||"").replace(bZ,"");if(cD[2]==="~="){cD[3]=" "+cD[3]+" "}return cD.slice(0,4)},CHILD:function(cD){cD[1]=cD[1].toLowerCase();if(cD[1]==="nth"){if(!cD[2]){cm.error(cD[0])}cD[3]=+(cD[3]?cD[4]+(cD[5]||1):2*(cD[2]==="even"||cD[2]==="odd"));cD[4]=+((cD[6]+cD[7])||cD[2]==="odd")}else{if(cD[2]){cm.error(cD[0])}}return cD},PSEUDO:function(cE){var cF,cD;if(cc.CHILD.test(cE[0])){return null}if(cE[3]){cE[2]=cE[3]}else{if((cF=cE[4])){if(ci.test(cF)&&(cD=bx(cF,true))&&(cD=cF.indexOf(")",cF.length-cD)-cF.length)){cF=cF.slice(0,cD);cE[0]=cE[0].slice(0,cD)}cE[2]=cF}}return cE.slice(0,3)}},filter:{ID:bG?function(cD){cD=cD.replace(bZ,"");return function(cE){return cE.getAttribute("id")===cD}}:function(cD){cD=cD.replace(bZ,"");return function(cF){var cE=typeof cF.getAttributeNode!==b0&&cF.getAttributeNode("id");return cE&&cE.value===cD}},TAG:function(cD){if(cD==="*"){return function(){return true}}cD=cD.replace(bZ,"").toLowerCase();return function(cE){return cE.nodeName&&cE.nodeName.toLowerCase()===cD}},CLASS:function(cD){var cE=cq[cv][cD+" "];return cE||(cE=new RegExp("(^|"+b4+")"+cD+"("+b4+"|$)"))&&cq(cD,function(cF){return cE.test(cF.className||(typeof cF.getAttribute!==b0&&cF.getAttribute("class"))||"")})},ATTR:function(cF,cE,cD){return function(cI,cH){var cG=cm.attr(cI,cF);if(cG==null){return cE==="!="}if(!cE){return true}cG+="";return cE==="="?cG===cD:cE==="!="?cG!==cD:cE==="^="?cD&&cG.indexOf(cD)===0:cE==="*="?cD&&cG.indexOf(cD)>-1:cE==="$="?cD&&cG.substr(cG.length-cD.length)===cD:cE==="~="?(" "+cG+" ").indexOf(cD)>-1:cE==="|="?cG===cD||cG.substr(0,cD.length+1)===cD+"-":false}},CHILD:function(cD,cF,cG,cE){if(cD==="nth"){return function(cJ){var cI,cK,cH=cJ.parentNode;if(cG===1&&cE===0){return true}if(cH){cK=0;for(cI=cH.firstChild;cI;cI=cI.nextSibling){if(cI.nodeType===1){cK++;if(cJ===cI){break}}}}cK-=cE;return cK===cG||(cK%cG===0&&cK/cG>=0)}}return function(cI){var cH=cI;switch(cD){case"only":case"first":while((cH=cH.previousSibling)){if(cH.nodeType===1){return false}}if(cD==="first"){return true}cH=cI;case"last":while((cH=cH.nextSibling)){if(cH.nodeType===1){return false}}return true}}},PSEUDO:function(cG,cF){var cD,cE=ch.pseudos[cG]||ch.setFilters[cG.toLowerCase()]||cm.error("unsupported pseudo: "+cG);if(cE[cv]){return cE(cF)}if(cE.length>1){cD=[cG,cG,"",cF];return ch.setFilters.hasOwnProperty(cG.toLowerCase())?cx(function(cJ,cL){var cI,cH=cE(cJ,cF),cK=cH.length;while(cK--){cI=bU.call(cJ,cH[cK]);cJ[cI]=!(cL[cI]=cH[cK])}}):function(cH){return cE(cH,0,cD)}}return cE}},pseudos:{not:cx(function(cD){var cE=[],cF=[],cG=bJ(cD.replace(cp,"$1"));return cG[cv]?cx(function(cI,cN,cL,cJ){var cM,cH=cG(cI,null,cJ,[]),cK=cI.length;while(cK--){if((cM=cH[cK])){cI[cK]=!(cN[cK]=cM)}}}):function(cJ,cI,cH){cE[0]=cJ;cG(cE,null,cH,cF);return !cF.pop()}}),has:cx(function(cD){return function(cE){return cm(cD,cE).length>0}}),contains:cx(function(cD){return function(cE){return(cE.textContent||cE.innerText||bw(cE)).indexOf(cD)>-1}}),enabled:function(cD){return cD.disabled===false},disabled:function(cD){return cD.disabled===true},checked:function(cD){var cE=cD.nodeName.toLowerCase();return(cE==="input"&&!!cD.checked)||(cE==="option"&&!!cD.selected)},selected:function(cD){if(cD.parentNode){cD.parentNode.selectedIndex}return cD.selected===true},parent:function(cD){return !ch.pseudos.empty(cD)},empty:function(cE){var cD;cE=cE.firstChild;while(cE){if(cE.nodeName>"@"||(cD=cE.nodeType)===3||cD===4){return false}cE=cE.nextSibling}return true},header:function(cD){return bY.test(cD.nodeName)},text:function(cF){var cE,cD;return cF.nodeName.toLowerCase()==="input"&&(cE=cF.type)==="text"&&((cD=cF.getAttribute("type"))==null||cD.toLowerCase()===cE)},radio:ce("radio"),checkbox:ce("checkbox"),file:ce("file"),password:ce("password"),image:ce("image"),submit:bz("submit"),reset:bz("reset"),button:function(cE){var cD=cE.nodeName.toLowerCase();return cD==="input"&&cE.type==="button"||cD==="button"},input:function(cD){return cj.test(cD.nodeName)},focus:function(cD){var cE=cD.ownerDocument;return cD===cE.activeElement&&(!cE.hasFocus||cE.hasFocus())&&!!(cD.type||cD.href||~cD.tabIndex)},active:function(cD){return cD===cD.ownerDocument.activeElement},first:cb(function(){return[0]}),last:cb(function(cD,cE){return[cE-1]}),eq:cb(function(cD,cF,cE){return[cE<0?cE+cF:cE]}),even:cb(function(cD,cF){for(var cE=0;cE<cF;cE+=2){cD.push(cE)}return cD}),odd:cb(function(cD,cF){for(var cE=1;cE<cF;cE+=2){cD.push(cE)}return cD}),lt:cb(function(cD,cG,cF){for(var cE=cF<0?cF+cG:cF;--cE>=0;){cD.push(cE)}return cD}),gt:cb(function(cD,cG,cF){for(var cE=cF<0?cF+cG:cF;++cE<cG;){cD.push(cE)}return cD})}};function by(cE,cD,cF){if(cE===cD){return cF}var cG=cE.nextSibling;while(cG){if(cG===cD){return -1}cG=cG.nextSibling}return 1}bM=bH.compareDocumentPosition?function(cE,cD){if(cE===cD){bI=true;return 0}return(!cE.compareDocumentPosition||!cD.compareDocumentPosition?cE.compareDocumentPosition:cE.compareDocumentPosition(cD)&4)?-1:1}:function(cL,cK){if(cL===cK){bI=true;return 0}else{if(cL.sourceIndex&&cK.sourceIndex){return cL.sourceIndex-cK.sourceIndex}}var cI,cE,cF=[],cD=[],cH=cL.parentNode,cJ=cK.parentNode,cM=cH;if(cH===cJ){return by(cL,cK)}else{if(!cH){return -1}else{if(!cJ){return 1}}}while(cM){cF.unshift(cM);cM=cM.parentNode}cM=cJ;while(cM){cD.unshift(cM);cM=cM.parentNode}cI=cF.length;cE=cD.length;for(var cG=0;cG<cI&&cG<cE;cG++){if(cF[cG]!==cD[cG]){return by(cF[cG],cD[cG])}}return cG===cI?by(cL,cD[cG],-1):by(cF[cG],cK,1)};[0,0].sort(bM);bF=!bI;cm.uniqueSort=function(cF){var cG,cH=[],cE=1,cD=0;bI=bF;cF.sort(bM);if(bI){for(;(cG=cF[cE]);cE++){if(cG===cF[cE-1]){cD=cH.push(cE)}}while(cD--){cF.splice(cH[cD],1)}}return cF};cm.error=function(cD){throw new Error("Syntax error, unrecognized expression: "+cD)};function bx(cH,cM){var cE,cI,cK,cL,cJ,cF,cD,cG=cr[cv][cH+" "];if(cG){return cM?0:cG.slice(0)}cJ=cH;cF=[];cD=ch.preFilter;while(cJ){if(!cE||(cI=bB.exec(cJ))){if(cI){cJ=cJ.slice(cI[0].length)||cJ}cF.push(cK=[])}cE=false;if((cI=cd.exec(cJ))){cK.push(cE=new bA(cI.shift()));cJ=cJ.slice(cE.length);cE.type=cI[0].replace(cp," ")}for(cL in ch.filter){if((cI=cc[cL].exec(cJ))&&(!cD[cL]||(cI=cD[cL](cI)))){cK.push(cE=new bA(cI.shift()));cJ=cJ.slice(cE.length);cE.type=cL;cE.matches=cI}}if(!cE){break}}return cM?cJ.length:cJ?cm.error(cH):cr(cH,cF).slice(0)}function b2(cH,cF,cG){var cD=cF.dir,cI=cG&&cF.dir==="parentNode",cE=bL++;return cF.first?function(cL,cK,cJ){while((cL=cL[cD])){if(cI||cL.nodeType===1){return cH(cL,cK,cJ)}}}:function(cM,cL,cK){if(!cK){var cJ,cN=bX+" "+cE+" ",cO=cN+ct;while((cM=cM[cD])){if(cI||cM.nodeType===1){if((cJ=cM[cv])===cO){return cM.sizset}else{if(typeof cJ==="string"&&cJ.indexOf(cN)===0){if(cM.sizset){return cM}}else{cM[cv]=cO;if(cH(cM,cL,cK)){cM.sizset=true;return cM}cM.sizset=false}}}}}else{while((cM=cM[cD])){if(cI||cM.nodeType===1){if(cH(cM,cL,cK)){return cM}}}}}}function bK(cD){return cD.length>1?function(cH,cG,cE){var cF=cD.length;while(cF--){if(!cD[cF](cH,cG,cE)){return false}}return true}:cD[0]}function b1(cD,cE,cF,cG,cJ){var cH,cM=[],cI=0,cK=cD.length,cL=cE!=null;for(;cI<cK;cI++){if((cH=cD[cI])){if(!cF||cF(cH,cG,cJ)){cM.push(cH);if(cL){cE.push(cI)}}}}return cM}function cy(cF,cE,cH,cG,cI,cD){if(cG&&!cG[cv]){cG=cy(cG)}if(cI&&!cI[cv]){cI=cy(cI,cD)}return cx(function(cT,cQ,cL,cS){var cV,cR,cN,cM=[],cU=[],cK=cQ.length,cJ=cT||bV(cE||"*",cL.nodeType?[cL]:cL,[]),cO=cF&&(cT||!cE)?b1(cJ,cM,cF,cL,cS):cJ,cP=cH?cI||(cT?cF:cK||cG)?[]:cQ:cO;if(cH){cH(cO,cP,cL,cS)}if(cG){cV=b1(cP,cU);cG(cV,[],cL,cS);cR=cV.length;while(cR--){if((cN=cV[cR])){cP[cU[cR]]=!(cO[cU[cR]]=cN)}}}if(cT){if(cI||cF){if(cI){cV=[];cR=cP.length;while(cR--){if((cN=cP[cR])){cV.push((cO[cR]=cN))}}cI(null,(cP=[]),cV,cS)}cR=cP.length;while(cR--){if((cN=cP[cR])&&(cV=cI?bU.call(cT,cN):cM[cR])>-1){cT[cV]=!(cQ[cV]=cN)}}}}else{cP=b1(cP===cQ?cP.splice(cK,cP.length):cP);if(cI){cI(null,cQ,cP,cS)}else{cs.apply(cQ,cP)}}})}function b3(cJ){var cE,cH,cF,cI=cJ.length,cM=ch.relative[cJ[0].type],cN=cM||ch.relative[" "],cG=cM?1:0,cK=b2(function(cO){return cO===cE},cN,true),cL=b2(function(cO){return bU.call(cE,cO)>-1},cN,true),cD=[function(cQ,cP,cO){return(!cM&&(cO||cP!==cf))||((cE=cP).nodeType?cK(cQ,cP,cO):cL(cQ,cP,cO))}];for(;cG<cI;cG++){if((cH=ch.relative[cJ[cG].type])){cD=[b2(bK(cD),cH)]}else{cH=ch.filter[cJ[cG].type].apply(null,cJ[cG].matches);if(cH[cv]){cF=++cG;for(;cF<cI;cF++){if(ch.relative[cJ[cF].type]){break}}return cy(cG>1&&bK(cD),cG>1&&cJ.slice(0,cG-1).join("").replace(cp,"$1"),cH,cG<cF&&b3(cJ.slice(cG,cF)),cF<cI&&b3((cJ=cJ.slice(cF))),cF<cI&&cJ.join(""))}cD.push(cH)}}return bK(cD)}function bC(cG,cF){var cD=cF.length>0,cH=cG.length>0,cE=function(cR,cL,cQ,cP,cX){var cM,cN,cS,cW=[],cV=0,cO="0",cI=cR&&[],cT=cX!=null,cU=cf,cK=cR||cH&&ch.find.TAG("*",cX&&cL.parentNode||cL),cJ=(bX+=cU==null?1:Math.E);if(cT){cf=cL!==bE&&cL;ct=cE.el}for(;(cM=cK[cO])!=null;cO++){if(cH&&cM){for(cN=0;(cS=cG[cN]);cN++){if(cS(cM,cL,cQ)){cP.push(cM);break}}if(cT){bX=cJ;ct=++cE.el}}if(cD){if((cM=!cS&&cM)){cV--}if(cR){cI.push(cM)}}}cV+=cO;if(cD&&cO!==cV){for(cN=0;(cS=cF[cN]);cN++){cS(cI,cW,cL,cQ)}if(cR){if(cV>0){while(cO--){if(!(cI[cO]||cW[cO])){cW[cO]=ca.call(cP)}}}cW=b1(cW)}cs.apply(cP,cW);if(cT&&!cR&&cW.length>0&&(cV+cF.length)>1){cm.uniqueSort(cP)}}if(cT){bX=cJ;cf=cU}return cI};cE.el=0;return cD?cx(cE):cE}bJ=cm.compile=function(cD,cI){var cF,cE=[],cH=[],cG=bT[cv][cD+" "];if(!cG){if(!cI){cI=bx(cD)}cF=cI.length;while(cF--){cG=b3(cI[cF]);if(cG[cv]){cE.push(cG)}else{cH.push(cG)}}cG=bT(cD,bC(cH,cE))}return cG};function bV(cE,cH,cG){var cF=0,cD=cH.length;for(;cF<cD;cF++){cm(cE,cH[cF],cG)}return cG}function cu(cF,cD,cH,cL,cK){var cI,cO,cE,cN,cM,cJ=bx(cF),cG=cJ.length;if(!cL){if(cJ.length===1){cO=cJ[0]=cJ[0].slice(0);if(cO.length>2&&(cE=cO[0]).type==="ID"&&cD.nodeType===9&&!cK&&ch.relative[cO[1].type]){cD=ch.find.ID(cE.matches[0].replace(bZ,""),cD,cK)[0];if(!cD){return cH}cF=cF.slice(cO.shift().length)}for(cI=cc.POS.test(cF)?-1:cO.length-1;cI>=0;cI--){cE=cO[cI];if(ch.relative[(cN=cE.type)]){break}if((cM=ch.find[cN])){if((cL=cM(cE.matches[0].replace(bZ,""),cn.test(cO[0].type)&&cD.parentNode||cD,cK))){cO.splice(cI,1);cF=cL.length&&cO.join("");if(!cF){cs.apply(cH,bR.call(cL,0));return cH}break}}}}}bJ(cF,cJ)(cL,cD,cK,cH,cn.test(cF));return cH}if(bE.querySelectorAll){(function(){var cI,cJ=cu,cH=/'|\\/g,cF=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cE=[":focus"],cD=[":active"],cG=bH.matchesSelector||bH.mozMatchesSelector||bH.webkitMatchesSelector||bH.oMatchesSelector||bH.msMatchesSelector;cg(function(cK){cK.innerHTML="<select><option selected=''></option></select>";if(!cK.querySelectorAll("[selected]").length){cE.push("\\["+b4+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!cK.querySelectorAll(":checked").length){cE.push(":checked")}});cg(function(cK){cK.innerHTML="<p test=''></p>";if(cK.querySelectorAll("[test^='']").length){cE.push("[*^$]="+b4+"*(?:\"\"|'')")}cK.innerHTML="<input type='hidden'/>";if(!cK.querySelectorAll(":enabled").length){cE.push(":enabled",":disabled")}});cE=new RegExp(cE.join("|"));cu=function(cQ,cL,cS,cV,cU){if(!cV&&!cU&&!cE.test(cQ)){var cO,cT,cN=true,cK=cv,cM=cL,cR=cL.nodeType===9&&cQ;if(cL.nodeType===1&&cL.nodeName.toLowerCase()!=="object"){cO=bx(cQ);if((cN=cL.getAttribute("id"))){cK=cN.replace(cH,"\\$&")}else{cL.setAttribute("id",cK)}cK="[id='"+cK+"'] ";cT=cO.length;while(cT--){cO[cT]=cK+cO[cT].join("")}cM=cn.test(cQ)&&cL.parentNode||cL;cR=cO.join(",")}if(cR){try{cs.apply(cS,bR.call(cM.querySelectorAll(cR),0));return cS}catch(cP){}finally{if(!cN){cL.removeAttribute("id")}}}}return cJ(cQ,cL,cS,cV,cU)};if(cG){cg(function(cL){cI=cG.call(cL,"div");try{cG.call(cL,"[test!='']:sizzle");cD.push("!=",cC)}catch(cK){}});cD=new RegExp(cD.join("|"));cm.matchesSelector=function(cL,cN){cN=cN.replace(cF,"='$1']");if(!bS(cL)&&!cD.test(cN)&&!cE.test(cN)){try{var cK=cG.call(cL,cN);if(cK||cI||cL.document&&cL.document.nodeType!==11){return cK}}catch(cM){}}return cm(cN,null,null,[cL]).length>0}}})()}ch.pseudos.nth=ch.pseudos.eq;function bP(){}ch.filters=bP.prototype=ch.pseudos;ch.setFilters=new bP();cm.attr=D.attr;D.find=cm;D.expr=cm.selectors;D.expr[":"]=D.expr.pseudos;D.unique=cm.uniqueSort;D.text=cm.getText;D.isXMLDoc=cm.isXML;D.contains=cm.contains})(be);var V=/Until$/,ah=/^(?:parents|prev(?:Until|All))/,br=/^.[^:#\[\.,]*$/,aR=D.expr.match.needsContext,ap={children:true,contents:true,next:true,prev:true};D.fn.extend({find:function(bv){var bz,bw,bB,bC,bA,by,bx=this;if(typeof bv!=="string"){return D(bv).filter(function(){for(bz=0,bw=bx.length;bz<bw;bz++){if(D.contains(bx[bz],this)){return true}}})}by=this.pushStack("","find",bv);for(bz=0,bw=this.length;bz<bw;bz++){bB=by.length;D.find(bv,this[bz],by);if(bz>0){for(bC=bB;bC<by.length;bC++){for(bA=0;bA<bB;bA++){if(by[bA]===by[bC]){by.splice(bC--,1);break}}}}}return by},has:function(by){var bx,bw=D(by,this),bv=bw.length;return this.filter(function(){for(bx=0;bx<bv;bx++){if(D.contains(this,bw[bx])){return true}}})},not:function(bv){return this.pushStack(aA(this,bv,false),"not",bv)},filter:function(bv){return this.pushStack(aA(this,bv,true),"filter",bv)},is:function(bv){return !!bv&&(typeof bv==="string"?aR.test(bv)?D(bv,this.context).index(this[0])>=0:D.filter(bv,this).length>0:this.filter(bv).length>0)},closest:function(bz,by){var bA,bx=0,bv=this.length,bw=[],bB=aR.test(bz)||typeof bz!=="string"?D(bz,by||this.context):0;for(;bx<bv;bx++){bA=this[bx];while(bA&&bA.ownerDocument&&bA!==by&&bA.nodeType!==11){if(bB?bB.index(bA)>-1:D.find.matchesSelector(bA,bz)){bw.push(bA);break}bA=bA.parentNode}}bw=bw.length>1?D.unique(bw):bw;return this.pushStack(bw,"closest",bz)},index:function(bv){if(!bv){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof bv==="string"){return D.inArray(this[0],D(bv))}return D.inArray(bv.jqx?bv[0]:bv,this)},add:function(bv,bw){var by=typeof bv==="string"?D(bv,bw):D.makeArray(bv&&bv.nodeType?[bv]:bv),bx=D.merge(this.get(),by);return this.pushStack(y(by[0])||y(bx[0])?bx:D.unique(bx))},addBack:function(bv){return this.add(bv==null?this.prevObject:this.prevObject.filter(bv))}});D.fn.andSelf=D.fn.addBack;function y(bv){return !bv||!bv.parentNode||bv.parentNode.nodeType===11}function aC(bw,bv){do{bw=bw[bv]}while(bw&&bw.nodeType!==1);return bw}D.each({parent:function(bw){var bv=bw.parentNode;return bv&&bv.nodeType!==11?bv:null},parents:function(bv){return D.dir(bv,"parentNode")},parentsUntil:function(bw,bv,bx){return D.dir(bw,"parentNode",bx)},next:function(bv){return aC(bv,"nextSibling")},prev:function(bv){return aC(bv,"previousSibling")},nextAll:function(bv){return D.dir(bv,"nextSibling")},prevAll:function(bv){return D.dir(bv,"previousSibling")},nextUntil:function(bw,bv,bx){return D.dir(bw,"nextSibling",bx)},prevUntil:function(bw,bv,bx){return D.dir(bw,"previousSibling",bx)},siblings:function(bv){return D.sibling((bv.parentNode||{}).firstChild,bv)},children:function(bv){return D.sibling(bv.firstChild)},contents:function(bv){return D.nodeName(bv,"iframe")?bv.contentDocument||bv.contentWindow.document:D.merge([],bv.childNodes)}},function(bv,bw){D.fn[bv]=function(bz,bx){var by=D.map(this,bw,bz);if(!V.test(bv)){bx=bz}if(bx&&typeof bx==="string"){by=D.filter(bx,by)}by=this.length>1&&!ap[bv]?D.unique(by):by;if(this.length>1&&ah.test(bv)){by=by.reverse()}return this.pushStack(by,bv,aE.call(arguments).join(","))}});D.extend({filter:function(bx,bv,bw){if(bw){bx=":not("+bx+")"}return bv.length===1?D.find.matchesSelector(bv[0],bx)?[bv[0]]:[]:D.find.matches(bx,bv)},dir:function(bx,bw,bz){var bv=[],by=bx[bw];while(by&&by.nodeType!==9&&(bz===H||by.nodeType!==1||!D(by).is(bz))){if(by.nodeType===1){bv.push(by)}by=by[bw]}return bv},sibling:function(bx,bw){var bv=[];for(;bx;bx=bx.nextSibling){if(bx.nodeType===1&&bx!==bw){bv.push(bx)}}return bv}});function aA(by,bx,bv){bx=bx||0;if(D.isFunction(bx)){return D.grep(by,function(bA,bz){var bB=!!bx.call(bA,bz,bA);return bB===bv})}else{if(bx.nodeType){return D.grep(by,function(bA,bz){return(bA===bx)===bv})}else{if(typeof bx==="string"){var bw=D.grep(by,function(bz){return bz.nodeType===1});if(br.test(bx)){return D.filter(bx,bw,!bv)}else{bx=D.filter(bx,bw)}}}}return D.grep(by,function(bA,bz){return(D.inArray(bA,bx)>=0)===bv})}function a(bv){var bx=aK.split("|"),bw=bv.createDocumentFragment();if(bw.createElement){while(bx.length){bw.createElement(bx.pop())}}return bw}var aK="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ab=/ JQXLite\d+="(?:null|\d+)"/g,ai=/^\s+/,M=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,c=/<([\w:]+)/,w=/<tbody/i,Q=/<|&#?\w+;/,X=/<(?:script|style|link)/i,J=/<(?:script|object|embed|option|style)/i,ad=new RegExp("<(?:"+aK+")[\\s/>]","i"),S=/^(?:checkbox|radio)$/,p=/checked\s*(?:[^=]|=\s*.checked.)/i,bq=/\/(java|ecma)script/i,aH=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,an={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},U=a(al),bh=U.appendChild(al.createElement("div"));an.optgroup=an.option;an.tbody=an.tfoot=an.colgroup=an.caption=an.thead;an.th=an.td;if(!D.support.htmlSerialize){an._default=[1,"X<div>","</div>"]}D.fn.extend({text:function(bv){return D.access(this,function(bw){return bw===H?D.text(this):this.empty().append((this[0]&&this[0].ownerDocument||al).createTextNode(bw))},null,bv,arguments.length)},wrapAll:function(bv){if(D.isFunction(bv)){return this.each(function(bx){D(this).wrapAll(bv.call(this,bx))})}if(this[0]){var bw=D(bv,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bw.insertBefore(this[0])}bw.map(function(){var bx=this;while(bx.firstChild&&bx.firstChild.nodeType===1){bx=bx.firstChild}return bx}).append(this)}return this},wrapInner:function(bv){if(D.isFunction(bv)){return this.each(function(bw){D(this).wrapInner(bv.call(this,bw))})}return this.each(function(){var bw=D(this),bx=bw.contents();if(bx.length){bx.wrapAll(bv)}else{bw.append(bv)}})},wrap:function(bv){var bw=D.isFunction(bv);return this.each(function(bx){D(this).wrapAll(bw?bv.call(this,bx):bv)})},unwrap:function(){return this.parent().each(function(){if(!D.nodeName(this,"body")){D(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(bv){if(this.nodeType===1||this.nodeType===11){this.appendChild(bv)}})},prepend:function(){return this.domManip(arguments,true,function(bv){if(this.nodeType===1||this.nodeType===11){this.insertBefore(bv,this.firstChild)}})},before:function(){if(!y(this[0])){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this)})}if(arguments.length){var bv=D.clean(arguments);return this.pushStack(D.merge(bv,this),"before",this.selector)}},after:function(){if(!y(this[0])){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this.nextSibling)})}if(arguments.length){var bv=D.clean(arguments);return this.pushStack(D.merge(this,bv),"after",this.selector)}},remove:function(bv,by){var bx,bw=0;for(;(bx=this[bw])!=null;bw++){if(!bv||D.filter(bv,[bx]).length){if(!by&&bx.nodeType===1){D.cleanData(bx.getElementsByTagName("*"));D.cleanData([bx])}if(bx.parentNode){bx.parentNode.removeChild(bx)}}}return this},empty:function(){var bw,bv=0;for(;(bw=this[bv])!=null;bv++){if(bw.nodeType===1){D.cleanData(bw.getElementsByTagName("*"))}while(bw.firstChild){bw.removeChild(bw.firstChild)}}return this},clone:function(bw,bv){bw=bw==null?false:bw;bv=bv==null?bw:bv;return this.map(function(){return D.clone(this,bw,bv)})},html:function(bv){return D.access(this,function(bz){var by=this[0]||{},bx=0,bw=this.length;if(bz===H){return by.nodeType===1?by.innerHTML.replace(ab,""):H}if(typeof bz==="string"&&!X.test(bz)&&(D.support.htmlSerialize||!ad.test(bz))&&(D.support.leadingWhitespace||!ai.test(bz))&&!an[(c.exec(bz)||["",""])[1].toLowerCase()]){bz=bz.replace(M,"<$1></$2>");try{for(;bx<bw;bx++){by=this[bx]||{};if(by.nodeType===1){D.cleanData(by.getElementsByTagName("*"));by.innerHTML=bz}}by=0}catch(bA){}}if(by){this.empty().append(bz)}},null,bv,arguments.length)},replaceWith:function(bv){if(!y(this[0])){if(D.isFunction(bv)){return this.each(function(by){var bx=D(this),bw=bx.html();bx.replaceWith(bv.call(this,by,bw))})}if(typeof bv!=="string"){bv=D(bv).detach()}return this.each(function(){var bx=this.nextSibling,bw=this.parentNode;D(this).remove();if(bx){D(bx).before(bv)}else{D(bw).append(bv)}})}return this.length?this.pushStack(D(D.isFunction(bv)?bv():bv),"replaceWith",bv):this},detach:function(bv){return this.remove(bv,true)},domManip:function(bB,bF,bE){bB=[].concat.apply([],bB);var bx,bz,bA,bD,by=0,bC=bB[0],bw=[],bv=this.length;if(!D.support.checkClone&&bv>1&&typeof bC==="string"&&p.test(bC)){return this.each(function(){D(this).domManip(bB,bF,bE)})}if(D.isFunction(bC)){return this.each(function(bH){var bG=D(this);bB[0]=bC.call(this,bH,bF?bG.html():H);bG.domManip(bB,bF,bE)})}if(this[0]){bx=D.buildFragment(bB,this,bw);bA=bx.fragment;bz=bA.firstChild;if(bA.childNodes.length===1){bA=bz}if(bz){bF=bF&&D.nodeName(bz,"tr");for(bD=bx.cacheable||bv-1;by<bv;by++){bE.call(bF&&D.nodeName(this[by],"table")?a4(this[by],"tbody"):this[by],by===bD?bA:D.clone(bA,true,true))}}bA=bz=null;if(bw.length){D.each(bw,function(bG,bH){if(bH.src){if(D.ajax){D.ajax({url:bH.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{D.error("no ajax")}}else{D.globalEval((bH.text||bH.textContent||bH.innerHTML||"").replace(aH,""))}if(bH.parentNode){bH.parentNode.removeChild(bH)}})}}return this}});function a4(bw,bv){return bw.getElementsByTagName(bv)[0]||bw.appendChild(bw.ownerDocument.createElement(bv))}function s(bC,bw){if(bw.nodeType!==1||!D.hasData(bC)){return}var bz,by,bv,bB=D._data(bC),bA=D._data(bw,bB),bx=bB.events;if(bx){delete bA.handle;bA.events={};for(bz in bx){for(by=0,bv=bx[bz].length;by<bv;by++){D.event.add(bw,bz,bx[bz][by])}}}if(bA.data){bA.data=D.extend({},bA.data)}}function ac(bw,bv){var bx;if(bv.nodeType!==1){return}if(bv.clearAttributes){bv.clearAttributes()}if(bv.mergeAttributes){bv.mergeAttributes(bw)}bx=bv.nodeName.toLowerCase();if(bx==="object"){if(bv.parentNode){bv.outerHTML=bw.outerHTML}if(D.support.html5Clone&&(bw.innerHTML&&!D.trim(bv.innerHTML))){bv.innerHTML=bw.innerHTML}}else{if(bx==="input"&&S.test(bw.type)){bv.defaultChecked=bv.checked=bw.checked;if(bv.value!==bw.value){bv.value=bw.value}}else{if(bx==="option"){bv.selected=bw.defaultSelected}else{if(bx==="input"||bx==="textarea"){bv.defaultValue=bw.defaultValue}else{if(bx==="script"&&bv.text!==bw.text){bv.text=bw.text}}}}}bv.removeAttribute(D.expando)}D.buildFragment=function(by,bz,bw){var bx,bv,bA,bB=by[0];bz=bz||al;bz=!bz.nodeType&&bz[0]||bz;bz=bz.ownerDocument||bz;if(by.length===1&&typeof bB==="string"&&bB.length<512&&bz===al&&bB.charAt(0)==="<"&&!J.test(bB)&&(D.support.checkClone||!p.test(bB))&&(D.support.html5Clone||!ad.test(bB))){bv=true;bx=D.fragments[bB];bA=bx!==H}if(!bx){bx=bz.createDocumentFragment();D.clean(by,bz,bx,bw);if(bv){D.fragments[bB]=bA&&bx}}return{fragment:bx,cacheable:bv}};D.fragments={};D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bv,bw){D.fn[bv]=function(bx){var bz,bB=0,bA=[],bD=D(bx),by=bD.length,bC=this.length===1&&this[0].parentNode;if((bC==null||bC&&bC.nodeType===11&&bC.childNodes.length===1)&&by===1){bD[bw](this[0]);return this}else{for(;bB<by;bB++){bz=(bB>0?this.clone(true):this).get();D(bD[bB])[bw](bz);bA=bA.concat(bz)}return this.pushStack(bA,bv,bD.selector)}}});function bl(bv){if(typeof bv.getElementsByTagName!=="undefined"){return bv.getElementsByTagName("*")}else{if(typeof bv.querySelectorAll!=="undefined"){return bv.querySelectorAll("*")}else{return[]}}}function am(bv){if(S.test(bv.type)){bv.defaultChecked=bv.checked}}D.extend({clone:function(bz,bB,bx){var bv,bw,by,bA;if(D.support.html5Clone||D.isXMLDoc(bz)||!ad.test("<"+bz.nodeName+">")){bA=bz.cloneNode(true)}else{bh.innerHTML=bz.outerHTML;bh.removeChild(bA=bh.firstChild)}if((!D.support.noCloneEvent||!D.support.noCloneChecked)&&(bz.nodeType===1||bz.nodeType===11)&&!D.isXMLDoc(bz)){ac(bz,bA);bv=bl(bz);bw=bl(bA);for(by=0;bv[by];++by){if(bw[by]){ac(bv[by],bw[by])}}}if(bB){s(bz,bA);if(bx){bv=bl(bz);bw=bl(bA);for(by=0;bv[by];++by){s(bv[by],bw[by])}}}bv=bw=null;return bA},clean:function(bI,bx,bv,by){var bF,bE,bH,bM,bB,bL,bC,bz,bw,bG,bK,bD,bA=bx===al&&U,bJ=[];if(!bx||typeof bx.createDocumentFragment==="undefined"){bx=al}for(bF=0;(bH=bI[bF])!=null;bF++){if(typeof bH==="number"){bH+=""}if(!bH){continue}if(typeof bH==="string"){if(!Q.test(bH)){bH=bx.createTextNode(bH)}else{bA=bA||a(bx);bC=bx.createElement("div");bA.appendChild(bC);bH=bH.replace(M,"<$1></$2>");bM=(c.exec(bH)||["",""])[1].toLowerCase();bB=an[bM]||an._default;bL=bB[0];bC.innerHTML=bB[1]+bH+bB[2];while(bL--){bC=bC.lastChild}if(!D.support.tbody){bz=w.test(bH);bw=bM==="table"&&!bz?bC.firstChild&&bC.firstChild.childNodes:bB[1]==="<table>"&&!bz?bC.childNodes:[];for(bE=bw.length-1;bE>=0;--bE){if(D.nodeName(bw[bE],"tbody")&&!bw[bE].childNodes.length){bw[bE].parentNode.removeChild(bw[bE])}}}if(!D.support.leadingWhitespace&&ai.test(bH)){bC.insertBefore(bx.createTextNode(ai.exec(bH)[0]),bC.firstChild)}bH=bC.childNodes;bC.parentNode.removeChild(bC)}}if(bH.nodeType){bJ.push(bH)}else{D.merge(bJ,bH)}}if(bC){bH=bC=bA=null}if(!D.support.appendChecked){for(bF=0;(bH=bJ[bF])!=null;bF++){if(D.nodeName(bH,"input")){am(bH)}else{if(typeof bH.getElementsByTagName!=="undefined"){D.grep(bH.getElementsByTagName("input"),am)}}}}if(bv){bK=function(bN){if(!bN.type||bq.test(bN.type)){return by?by.push(bN.parentNode?bN.parentNode.removeChild(bN):bN):bv.appendChild(bN)}};for(bF=0;(bH=bJ[bF])!=null;bF++){if(!(D.nodeName(bH,"script")&&bK(bH))){bv.appendChild(bH);if(typeof bH.getElementsByTagName!=="undefined"){bD=D.grep(D.merge([],bH.getElementsByTagName("script")),bK);bJ.splice.apply(bJ,[bF+1,0].concat(bD));bF+=bD.length}}}}return bJ},cleanData:function(bw,bE){var bz,bx,by,bD,bA=0,bF=D.expando,bv=D.cache,bB=D.support.deleteExpando,bC=D.event.special;for(;(by=bw[bA])!=null;bA++){if(bE||D.acceptData(by)){bx=by[bF];bz=bx&&bv[bx];if(bz){if(bz.events){for(bD in bz.events){if(bC[bD]){D.event.remove(by,bD)}else{D.removeEvent(by,bD,bz.handle)}}}if(bv[bx]){delete bv[bx];if(bB){delete by[bF]}else{if(by.removeAttribute){by.removeAttribute(bF)}else{by[bF]=null}}D.deletedIds.push(bx)}}}}}});(function(){var bv,bw;D.uaMatch=function(by){by=by.toLowerCase();var bx=/(chrome)[ \/]([\w.]+)/.exec(by)||/(webkit)[ \/]([\w.]+)/.exec(by)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(by)||/(msie) ([\w.]+)/.exec(by)||by.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(by)||[];return{browser:bx[1]||"",version:bx[2]||"0"}};bv=D.uaMatch(bu.userAgent);bw={};if(bv.browser){bw[bv.browser]=true;bw.version=bv.version}if(bw.chrome){bw.webkit=true}else{if(bw.webkit){bw.safari=true}}D.browser=bw;D.sub=function(){function by(bA,bB){return new by.fn.init(bA,bB)}D.extend(true,by,this);by.superclass=this;by.fn=by.prototype=this();by.fn.constructor=by;by.sub=this.sub;by.fn.init=function bz(bA,bB){if(bB&&bB instanceof D&&!(bB instanceof by)){bB=by(bB)}return D.fn.init.call(this,bA,bB,bx)};by.fn.init.prototype=by.fn;var bx=by(al);return by}})();var R,bd,m,ae=/alpha\([^)]*\)/i,ak=/opacity=([^)]*)/,x=/^(top|right|bottom|left)$/,aj=/^(none|table(?!-c[ea]).+)/,aw=/^margin/,j=new RegExp("^("+aF+")(.*)$","i"),aW=new RegExp("^("+aF+")(?!px)[a-z%]+$","i"),F=new RegExp("^([-+])=("+aF+")","i"),K={BODY:"block"},bb={position:"absolute",visibility:"hidden",display:"block"},aM={letterSpacing:0,fontWeight:400},E=["Top","Right","Bottom","Left"],P=["Webkit","O","Moz","ms"],bf=D.fn.toggle;function a3(by,bw){if(bw in by){return bw}var bz=bw.charAt(0).toUpperCase()+bw.slice(1),bv=bw,bx=P.length;while(bx--){bw=P[bx]+bz;if(bw in by){return bw}}return bv}function aq(bw,bv){bw=bv||bw;return D.css(bw,"display")==="none"||!D.contains(bw.ownerDocument,bw)}function bc(bA,bv){var bz,bB,bw=[],bx=0,by=bA.length;for(;bx<by;bx++){bz=bA[bx];if(!bz.style){continue}bw[bx]=D._data(bz,"olddisplay");if(bv){if(!bw[bx]&&bz.style.display==="none"){bz.style.display=""}if(bz.style.display===""&&aq(bz)){bw[bx]=D._data(bz,"olddisplay",aO(bz.nodeName))}}else{bB=R(bz,"display");if(!bw[bx]&&bB!=="none"){D._data(bz,"olddisplay",bB)}}}for(bx=0;bx<by;bx++){bz=bA[bx];if(!bz.style){continue}if(!bv||bz.style.display==="none"||bz.style.display===""){bz.style.display=bv?bw[bx]||"":"none"}}return bA}D.fn.extend({css:function(bv,bw){return D.access(this,function(by,bx,bz){return bz!==H?D.style(by,bx,bz):D.css(by,bx)},bv,bw,arguments.length>1)},show:function(){return bc(this,true)},hide:function(){return bc(this)},toggle:function(bx,bw){var bv=typeof bx==="boolean";if(D.isFunction(bx)&&D.isFunction(bw)){return bf.apply(this,arguments)}return this.each(function(){if(bv?bx:aq(this)){D(this).show()}else{D(this).hide()}})}});D.extend({cssHooks:{opacity:{get:function(bx,bw){if(bw){var bv=R(bx,"opacity");return bv===""?"1":bv}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":D.support.cssFloat?"cssFloat":"styleFloat"},style:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.style){return}var bB,bC,bE,bz=D.camelCase(bw),bv=bx.style;bw=D.cssProps[bz]||(D.cssProps[bz]=a3(bv,bz));bE=D.cssHooks[bw]||D.cssHooks[bz];if(bD!==H){bC=typeof bD;if(bC==="string"&&(bB=F.exec(bD))){bD=(bB[1]+1)*bB[2]+parseFloat(D.css(bx,bw));bC="number"}if(bD==null||bC==="number"&&isNaN(bD)){return}if(bC==="number"&&!D.cssNumber[bz]){bD+="px"}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD,by))!==H){try{bv[bw]=bD}catch(bA){}}}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==H){return bB}return bv[bw]}},css:function(bB,bz,bA,bw){var bC,by,bv,bx=D.camelCase(bz);bz=D.cssProps[bx]||(D.cssProps[bx]=a3(bB.style,bx));bv=D.cssHooks[bz]||D.cssHooks[bx];if(bv&&"get" in bv){bC=bv.get(bB,true,bw)}if(bC===H){bC=R(bB,bz)}if(bC==="normal"&&bz in aM){bC=aM[bz]}if(bA||bw!==H){by=parseFloat(bC);return bA||D.isNumeric(by)?by||0:bC}return bC},swap:function(bz,by,bA){var bx,bw,bv={};for(bw in by){bv[bw]=bz.style[bw];bz.style[bw]=by[bw]}bx=bA.call(bz);for(bw in by){bz.style[bw]=bv[bw]}return bx}});if(be.getComputedStyle){R=function(bC,bw){var bv,bz,by,bB,bA=be.getComputedStyle(bC,null),bx=bC.style;if(bA){bv=bA.getPropertyValue(bw)||bA[bw];if(bv===""&&!D.contains(bC.ownerDocument,bC)){bv=D.style(bC,bw)}if(aW.test(bv)&&aw.test(bw)){bz=bx.width;by=bx.minWidth;bB=bx.maxWidth;bx.minWidth=bx.maxWidth=bx.width=bv;bv=bA.width;bx.width=bz;bx.minWidth=by;bx.maxWidth=bB}}return bv}}else{if(al.documentElement.currentStyle){R=function(bz,bx){var bA,bv,bw=bz.currentStyle&&bz.currentStyle[bx],by=bz.style;if(bw==null&&by&&by[bx]){bw=by[bx]}if(aW.test(bw)&&!x.test(bx)){bA=by.left;bv=bz.runtimeStyle&&bz.runtimeStyle.left;if(bv){bz.runtimeStyle.left=bz.currentStyle.left}by.left=bx==="fontSize"?"1em":bw;bw=by.pixelLeft+"px";by.left=bA;if(bv){bz.runtimeStyle.left=bv}}return bw===""?"auto":bw}}}function aP(bv,bx,by){var bw=j.exec(bx);return bw?Math.max(0,bw[1]-(by||0))+(bw[2]||"px"):bx}function a0(by,bw,bv,bA){var bx=bv===(bA?"border":"content")?4:bw==="width"?1:0,bz=0;for(;bx<4;bx+=2){if(bv==="margin"){bz+=D.css(by,bv+E[bx],true)}if(bA){if(bv==="content"){bz-=parseFloat(R(by,"padding"+E[bx]))||0}if(bv!=="margin"){bz-=parseFloat(R(by,"border"+E[bx]+"Width"))||0}}else{bz+=parseFloat(R(by,"padding"+E[bx]))||0;if(bv!=="padding"){bz+=parseFloat(R(by,"border"+E[bx]+"Width"))||0}}}return bz}function Z(by,bw,bv){var bz=bw==="width"?by.offsetWidth:by.offsetHeight,bx=true,bA=D.support.boxSizing&&D.css(by,"boxSizing")==="border-box";if(bz<=0||bz==null){bz=R(by,bw);if(bz<0||bz==null){bz=by.style[bw]}if(aW.test(bz)){return bz}bx=bA&&(D.support.boxSizingReliable||bz===by.style[bw]);bz=parseFloat(bz)||0}return(bz+a0(by,bw,bv||(bA?"border":"content"),bx))+"px"}function aO(bx){if(K[bx]){return K[bx]}var bv=D("<"+bx+">").appendTo(al.body),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){bd=al.body.appendChild(bd||D.extend(al.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!m||!bd.createElement){m=(bd.contentWindow||bd.contentDocument).document;m.write("<!doctype html><html><body>");m.close()}bv=m.body.appendChild(m.createElement(bx));bw=R(bv,"display");al.body.removeChild(bd)}K[bx]=bw;return bw}D.each(["height","width"],function(bw,bv){D.cssHooks[bv]={get:function(bz,by,bx){if(by){if(bz.offsetWidth===0&&aj.test(R(bz,"display"))){return D.swap(bz,bb,function(){return Z(bz,bv,bx)})}else{return Z(bz,bv,bx)}}},set:function(by,bz,bx){return aP(by,bz,bx?a0(by,bv,bx,D.support.boxSizing&&D.css(by,"boxSizing")==="border-box"):0)}}});if(!D.support.opacity){D.cssHooks.opacity={get:function(bw,bv){return ak.test((bv&&bw.currentStyle?bw.currentStyle.filter:bw.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":bv?"1":""},set:function(bz,bA){var by=bz.style,bw=bz.currentStyle,bv=D.isNumeric(bA)?"alpha(opacity="+bA*100+")":"",bx=bw&&bw.filter||by.filter||"";by.zoom=1;if(bA>=1&&D.trim(bx.replace(ae,""))===""&&by.removeAttribute){by.removeAttribute("filter");if(bw&&!bw.filter){return}}by.filter=ae.test(bx)?bx.replace(ae,bv):bx+" "+bv}}}D(function(){if(!D.support.reliableMarginRight){D.cssHooks.marginRight={get:function(bw,bv){return D.swap(bw,{display:"inline-block"},function(){if(bv){return R(bw,"marginRight")}})}}}if(!D.support.pixelPosition&&D.fn.position){D.each(["top","left"],function(bv,bw){D.cssHooks[bw]={get:function(bz,by){if(by){var bx=R(bz,bw);return aW.test(bx)?D(bz).position()[bw]+"px":bx}}}})}});if(D.expr&&D.expr.filters){D.expr.filters.hidden=function(bv){return(bv.offsetWidth===0&&bv.offsetHeight===0)||(!D.support.reliableHiddenOffsets&&((bv.style&&bv.style.display)||R(bv,"display"))==="none")};D.expr.filters.visible=function(bv){return !D.expr.filters.hidden(bv)}}D.each({margin:"",padding:"",border:"Width"},function(bv,bw){D.cssHooks[bv+bw]={expand:function(bz){var by,bA=typeof bz==="string"?bz.split(" "):[bz],bx={};for(by=0;by<4;by++){bx[bv+E[by]+bw]=bA[by]||bA[by-2]||bA[0]}return bx}};if(!aw.test(bv)){D.cssHooks[bv+bw].set=aP}});var g=/%20/g,ag=/\[\]$/,bs=/\r?\n/g,aV=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,q=/^(?:select|textarea)/i;D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?D.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aV.test(this.type))}).map(function(bv,bw){var bx=D(this).val();return bx==null?null:D.isArray(bx)?D.map(bx,function(bz,by){return{name:bw.name,value:bz.replace(bs,"\r\n")}}):{name:bw.name,value:bx.replace(bs,"\r\n")}}).get()}});D.param=function(bv,bx){var by,bw=[],bz=function(bA,bB){bB=D.isFunction(bB)?bB():(bB==null?"":bB);bw[bw.length]=encodeURIComponent(bA)+"="+encodeURIComponent(bB)};if(bx===H){bx=D.ajaxSettings&&D.ajaxSettings.traditional}if(D.isArray(bv)||(bv.jqx&&!D.isPlainObject(bv))){D.each(bv,function(){bz(this.name,this.value)})}else{for(by in bv){t(by,bv[by],bx,bz)}}return bw.join("&").replace(g,"+")};function t(bx,bz,bw,by){var bv;if(D.isArray(bz)){D.each(bz,function(bB,bA){if(bw||ag.test(bx)){by(bx,bA)}else{t(bx+"["+(typeof bA==="object"?bB:"")+"]",bA,bw,by)}})}else{if(!bw&&D.type(bz)==="object"){for(bv in bz){t(bx+"["+bv+"]",bz[bv],bw,by)}}else{by(bx,bz)}}}if(D.support.ajax){D.ajaxTransport(function(bv){if(!bv.crossDomain||D.support.cors){var bw;return{send:function(bC,bx){var bA,bz,bB=bv.xhr();if(bv.username){bB.open(bv.type,bv.url,bv.async,bv.username,bv.password)}else{bB.open(bv.type,bv.url,bv.async)}if(bv.xhrFields){for(bz in bv.xhrFields){bB[bz]=bv.xhrFields[bz]}}if(bv.mimeType&&bB.overrideMimeType){bB.overrideMimeType(bv.mimeType)}if(!bv.crossDomain&&!bC["X-Requested-With"]){bC["X-Requested-With"]="XMLHttpRequest"}try{for(bz in bC){bB.setRequestHeader(bz,bC[bz])}}catch(by){}bB.send((bv.hasContent&&bv.data)||null);bw=function(bL,bF){var bG,bE,bD,bJ,bI;try{if(bw&&(bF||bB.readyState===4)){bw=H;if(bA){bB.onreadystatechange=D.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[bA]}}if(bF){if(bB.readyState!==4){bB.abort()}}else{bG=bB.status;bD=bB.getAllResponseHeaders();bJ={};bI=bB.responseXML;if(bI&&bI.documentElement){bJ.xml=bI}try{bJ.text=bB.responseText}catch(bK){}try{bE=bB.statusText}catch(bK){bE=""}if(!bG&&bv.isLocal&&!bv.crossDomain){bG=bJ.text?200:404}else{if(bG===1223){bG=204}}}}}catch(bH){if(!bF){bx(-1,bH)}}if(bJ){bx(bG,bE,bJ,bD)}};if(!bv.async){bw()}else{if(bB.readyState===4){setTimeout(bw,0)}else{bA=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};D(be).unload(xhrOnUnloadAbort)}xhrCallbacks[bA]=bw}bB.onreadystatechange=bw}}},abort:function(){if(bw){bw(0,1)}}}}})}var a7,a2,at=/^(?:toggle|show|hide)$/,aN=new RegExp("^(?:([-+])=|)("+aF+")([a-z%]*)$","i"),a8=/queueHooks$/,l=[bn],I={"*":[function(bv,bC){var by,bD,bE=this.createTween(bv,bC),bz=aN.exec(bC),bA=bE.cur(),bw=+bA||0,bx=1,bB=20;if(bz){by=+bz[2];bD=bz[3]||(D.cssNumber[bv]?"":"px");if(bD!=="px"&&bw){bw=D.css(bE.elem,bv,true)||by||1;do{bx=bx||".5";bw=bw/bx;D.style(bE.elem,bv,bw+bD)}while(bx!==(bx=bE.cur()/bA)&&bx!==1&&--bB)}bE.unit=bD;bE.start=bw;bE.end=bz[1]?bw+(bz[1]+1)*by:by}return bE}]};function bm(){setTimeout(function(){a7=H},0);return(a7=D.now())}function aa(bw,bv){D.each(bv,function(bB,bz){var bA=(I[bB]||[]).concat(I["*"]),bx=0,by=bA.length;for(;bx<by;bx++){if(bA[bx].call(bw,bB,bz)){return}}})}function bk(bx,bB,bE){var bF,bA=0,bv=0,bw=l.length,bD=D.Deferred().always(function(){delete bz.elem}),bz=function(){var bL=a7||bm(),bI=Math.max(0,by.startTime+by.duration-bL),bG=bI/by.duration||0,bK=1-bG,bH=0,bJ=by.tweens.length;for(;bH<bJ;bH++){by.tweens[bH].run(bK)}bD.notifyWith(bx,[by,bK,bI]);if(bK<1&&bJ){return bI}else{bD.resolveWith(bx,[by]);return false}},by=bD.promise({elem:bx,props:D.extend({},bB),opts:D.extend(true,{specialEasing:{}},bE),originalProperties:bB,originalOptions:bE,startTime:a7||bm(),duration:bE.duration,tweens:[],createTween:function(bJ,bG,bI){var bH=D.Tween(bx,by.opts,bJ,bG,by.opts.specialEasing[bJ]||by.opts.easing);by.tweens.push(bH);return bH},stop:function(bH){var bG=0,bI=bH?by.tweens.length:0;for(;bG<bI;bG++){by.tweens[bG].run(1)}if(bH){bD.resolveWith(bx,[by,bH])}else{bD.rejectWith(bx,[by,bH])}return this}}),bC=by.props;aX(bC,by.opts.specialEasing);for(;bA<bw;bA++){bF=l[bA].call(by,bx,bC,by.opts);if(bF){return bF}}aa(by,bC);if(D.isFunction(by.opts.start)){by.opts.start.call(bx,by)}D.fx.timer(D.extend(bz,{anim:by,queue:by.opts.queue,elem:bx}));return by.progress(by.opts.progress).done(by.opts.done,by.opts.complete).fail(by.opts.fail).always(by.opts.always)}function aX(by,bA){var bx,bw,bB,bz,bv;for(bx in by){bw=D.camelCase(bx);bB=bA[bw];bz=by[bx];if(D.isArray(bz)){bB=bz[1];bz=by[bx]=bz[0]}if(bx!==bw){by[bw]=bz;delete by[bx]}bv=D.cssHooks[bw];if(bv&&"expand" in bv){bz=bv.expand(bz);delete by[bw];for(bx in bz){if(!(bx in by)){by[bx]=bz[bx];bA[bx]=bB}}}else{bA[bw]=bB}}}D.Animation=D.extend(bk,{tweener:function(bw,bz){if(D.isFunction(bw)){bz=bw;bw=["*"]}else{bw=bw.split(" ")}var by,bv=0,bx=bw.length;for(;bv<bx;bv++){by=bw[bv];I[by]=I[by]||[];I[by].unshift(bz)}},prefilter:function(bw,bv){if(bv){l.unshift(bw)}else{l.push(bw)}}});function bn(bz,bF,bv){var bE,bx,bH,by,bL,bB,bK,bJ,bI,bA=this,bw=bz.style,bG={},bD=[],bC=bz.nodeType&&aq(bz);if(!bv.queue){bJ=D._queueHooks(bz,"fx");if(bJ.unqueued==null){bJ.unqueued=0;bI=bJ.empty.fire;bJ.empty.fire=function(){if(!bJ.unqueued){bI()}}}bJ.unqueued++;bA.always(function(){bA.always(function(){bJ.unqueued--;if(!D.queue(bz,"fx").length){bJ.empty.fire()}})})}if(bz.nodeType===1&&("height" in bF||"width" in bF)){bv.overflow=[bw.overflow,bw.overflowX,bw.overflowY];if(D.css(bz,"display")==="inline"&&D.css(bz,"float")==="none"){if(!D.support.inlineBlockNeedsLayout||aO(bz.nodeName)==="inline"){bw.display="inline-block"}else{bw.zoom=1}}}if(bv.overflow){bw.overflow="hidden";if(!D.support.shrinkWrapBlocks){bA.done(function(){bw.overflow=bv.overflow[0];bw.overflowX=bv.overflow[1];bw.overflowY=bv.overflow[2]})}}for(bE in bF){bH=bF[bE];if(at.exec(bH)){delete bF[bE];bB=bB||bH==="toggle";if(bH===(bC?"hide":"show")){continue}bD.push(bE)}}by=bD.length;if(by){bL=D._data(bz,"fxshow")||D._data(bz,"fxshow",{});if("hidden" in bL){bC=bL.hidden}if(bB){bL.hidden=!bC}if(bC){D(bz).show()}else{bA.done(function(){D(bz).hide()})}bA.done(function(){var bM;D.removeData(bz,"fxshow",true);for(bM in bG){D.style(bz,bM,bG[bM])}});for(bE=0;bE<by;bE++){bx=bD[bE];bK=bA.createTween(bx,bC?bL[bx]:0);bG[bx]=bL[bx]||D.style(bz,bx);if(!(bx in bL)){bL[bx]=bK.start;if(bC){bK.end=bK.start;bK.start=bx==="width"||bx==="height"?1:0}}}}}function v(bx,bw,bz,bv,by){return new v.prototype.init(bx,bw,bz,bv,by)}D.Tween=v;v.prototype={constructor:v,init:function(by,bw,bA,bv,bz,bx){this.elem=by;this.prop=bA;this.easing=bz||"swing";this.options=bw;this.start=this.now=this.cur();this.end=bv;this.unit=bx||(D.cssNumber[bA]?"":"px")},cur:function(){var bv=v.propHooks[this.prop];return bv&&bv.get?bv.get(this):v.propHooks._default.get(this)},run:function(bx){var bw,bv=v.propHooks[this.prop];if(this.options.duration){this.pos=bw=D.easing[this.easing](bx,this.options.duration*bx,0,1,this.options.duration)}else{this.pos=bw=bx}this.now=(this.end-this.start)*bw+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(bv&&bv.set){bv.set(this)}else{v.propHooks._default.set(this)}return this}};v.prototype.init.prototype=v.prototype;v.propHooks={_default:{get:function(bw){var bv;if(bw.elem[bw.prop]!=null&&(!bw.elem.style||bw.elem.style[bw.prop]==null)){return bw.elem[bw.prop]}bv=D.css(bw.elem,bw.prop,false,"");return !bv||bv==="auto"?0:bv},set:function(bv){if(D.fx.step[bv.prop]){D.fx.step[bv.prop](bv)}else{if(bv.elem.style&&(bv.elem.style[D.cssProps[bv.prop]]!=null||D.cssHooks[bv.prop])){D.style(bv.elem,bv.prop,bv.now+bv.unit)}else{bv.elem[bv.prop]=bv.now}}}}};v.propHooks.scrollTop=v.propHooks.scrollLeft={set:function(bv){if(bv.elem.nodeType&&bv.elem.parentNode){bv.elem[bv.prop]=bv.now}}};D.each(["toggle","show","hide"],function(bw,bv){var bx=D.fn[bv];D.fn[bv]=function(by,bA,bz){return by==null||typeof by==="boolean"||(!bw&&D.isFunction(by)&&D.isFunction(bA))?bx.apply(this,arguments):this.animate(aZ(bv,true),by,bA,bz)}});D.fn.extend({fadeTo:function(bv,by,bx,bw){return this.filter(aq).css("opacity",0).show().end().animate({opacity:by},bv,bx,bw)},animate:function(bB,by,bA,bz){var bx=D.isEmptyObject(bB),bv=D.speed(by,bA,bz),bw=function(){var bC=bk(this,D.extend({},bB),bv);if(bx){bC.stop(true)}};return bx||bv.queue===false?this.each(bw):this.queue(bv.queue,bw)},stop:function(bx,bw,bv){var by=function(bz){var bA=bz.stop;delete bz.stop;bA(bv)};if(typeof bx!=="string"){bv=bw;bw=bx;bx=H}if(bw&&bx!==false){this.queue(bx||"fx",[])}return this.each(function(){var bC=true,bz=bx!=null&&bx+"queueHooks",bB=D.timers,bA=D._data(this);if(bz){if(bA[bz]&&bA[bz].stop){by(bA[bz])}}else{for(bz in bA){if(bA[bz]&&bA[bz].stop&&a8.test(bz)){by(bA[bz])}}}for(bz=bB.length;bz--;){if(bB[bz].elem===this&&(bx==null||bB[bz].queue===bx)){bB[bz].anim.stop(bv);bC=false;bB.splice(bz,1)}}if(bC||!bv){D.dequeue(this,bx)}})}});function aZ(bx,bz){var by,bv={height:bx},bw=0;bz=bz?1:0;for(;bw<4;bw+=2-bz){by=E[bw];bv["margin"+by]=bv["padding"+by]=bx}if(bz){bv.opacity=bv.width=bx}return bv}D.each({slideDown:aZ("show"),slideUp:aZ("hide"),slideToggle:aZ("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bv,bw){D.fn[bv]=function(bx,bz,by){return this.animate(bw,bx,bz,by)}});D.speed=function(bx,by,bw){var bv=bx&&typeof bx==="object"?D.extend({},bx):{complete:bw||!bw&&by||D.isFunction(bx)&&bx,duration:bx,easing:bw&&by||by&&!D.isFunction(by)&&by};bv.duration=D.fx.off?0:typeof bv.duration==="number"?bv.duration:bv.duration in D.fx.speeds?D.fx.speeds[bv.duration]:D.fx.speeds._default;if(bv.queue==null||bv.queue===true){bv.queue="fx"}bv.old=bv.complete;bv.complete=function(){if(D.isFunction(bv.old)){bv.old.call(this)}if(bv.queue){D.dequeue(this,bv.queue)}};return bv};D.easing={linear:function(bv){return bv},swing:function(bv){return 0.5-Math.cos(bv*Math.PI)/2}};D.timers=[];D.fx=v.prototype.init;D.fx.tick=function(){var bx,bw=D.timers,bv=0;a7=D.now();for(;bv<bw.length;bv++){bx=bw[bv];if(!bx()&&bw[bv]===bx){bw.splice(bv--,1)}}if(!bw.length){D.fx.stop()}a7=H};D.fx.timer=function(bv){if(bv()&&D.timers.push(bv)&&!a2){a2=setInterval(D.fx.tick,D.fx.interval)}};D.fx.interval=13;D.fx.stop=function(){clearInterval(a2);a2=null};D.fx.speeds={slow:600,fast:200,_default:400};D.fx.step={};if(D.expr&&D.expr.filters){D.expr.filters.animated=function(bv){return D.grep(D.timers,function(bw){return bv===bw.elem}).length}}var W=/^(?:body|html)$/i;D.fn.offset=function(bF){if(arguments.length){return bF===H?this:this.each(function(bG){D.offset.setOffset(this,bF,bG)})}var bw,bB,bC,bz,bD,bv,by,bA={top:0,left:0},bx=this[0],bE=bx&&bx.ownerDocument;if(!bE){return}if((bB=bE.body)===bx){return D.offset.bodyOffset(bx)}bw=bE.documentElement;if(!D.contains(bw,bx)){return bA}if(typeof bx.getBoundingClientRect!=="undefined"){bA=bx.getBoundingClientRect()}bC=aD(bE);bz=bw.clientTop||bB.clientTop||0;bD=bw.clientLeft||bB.clientLeft||0;bv=bC.pageYOffset||bw.scrollTop;by=bC.pageXOffset||bw.scrollLeft;return{top:bA.top+bv-bz,left:bA.left+by-bD}};D.offset={bodyOffset:function(bv){var bx=bv.offsetTop,bw=bv.offsetLeft;if(D.support.doesNotIncludeMarginInBodyOffset){bx+=parseFloat(D.css(bv,"marginTop"))||0;bw+=parseFloat(D.css(bv,"marginLeft"))||0}return{top:bx,left:bw}},setOffset:function(by,bH,bB){var bC=D.css(by,"position");if(bC==="static"){by.style.position="relative"}var bA=D(by),bw=bA.offset(),bv=D.css(by,"top"),bF=D.css(by,"left"),bG=(bC==="absolute"||bC==="fixed")&&D.inArray("auto",[bv,bF])>-1,bE={},bD={},bx,bz;if(bG){bD=bA.position();bx=bD.top;bz=bD.left}else{bx=parseFloat(bv)||0;bz=parseFloat(bF)||0}if(D.isFunction(bH)){bH=bH.call(by,bB,bw)}if(bH.top!=null){bE.top=(bH.top-bw.top)+bx}if(bH.left!=null){bE.left=(bH.left-bw.left)+bz}if("using" in bH){bH.using.call(by,bE)}else{bA.css(bE)}}};D.fn.extend({isRendered:function(){var bw=this;var bv=this[0];if(bv.parentNode==null||(bv.offsetWidth===0||bv.offsetHeight===0)){return false}return true},getSizeFromStyle:function(){var bz=this;var by=null;var bv=null;var bx=this[0];var bw;if(bx.style.width){by=bx.style.width}if(bx.style.height){bv=bx.style.height}if(be.getComputedStyle){bw=getComputedStyle(bx,null)}else{bw=bx.currentStyle}if(bw){if(bw.width){by=bw.width}if(bw.height){bv=bw.height}}if(by==="0px"){by=0}if(bv==="0px"){bv=0}if(by===null){by=0}if(bv===null){bv=0}return{width:by,height:bv}},initAnimate:function(){},sizeStyleChanged:function(by){var bx=this;var bz;var bv=function(bA){var bB=bz;if(bA&&bA[0]&&bA[0].attributeName==="style"&&bA[0].type==="attributes"){if(bB.element.offsetWidth!==bB.offsetWidth||bB.element.offsetHeight!==bB.offsetHeight){bB.offsetWidth=bB.element.offsetWidth;bB.offsetHeight=bB.element.offsetHeight;if(bx.isRendered()){bB.callback()}}}};bz={element:bx[0],offsetWidth:bx[0].offsetWidth,offsetHeight:bx[0].offsetHeight,callback:by};try{if(!bx.elementStyleObserver){bx.elementStyleObserver=new MutationObserver(bv);bx.elementStyleObserver.observe(bx[0],{attributes:true,childList:false,characterData:false})}}catch(bw){}},position:function(){if(!this[0]){return}var bx=this[0],bw=this.offsetParent(),by=this.offset(),bv=W.test(bw[0].nodeName)?{top:0,left:0}:bw.offset();by.top-=parseFloat(D.css(bx,"marginTop"))||0;by.left-=parseFloat(D.css(bx,"marginLeft"))||0;bv.top+=parseFloat(D.css(bw[0],"borderTopWidth"))||0;bv.left+=parseFloat(D.css(bw[0],"borderLeftWidth"))||0;return{top:by.top-bv.top,left:by.left-bv.left}},offsetParent:function(){return this.map(function(){var bv=this.offsetParent||al.body;while(bv&&(!W.test(bv.nodeName)&&D.css(bv,"position")==="static")){bv=bv.offsetParent}return bv||al.body})}});D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(bx,bw){var bv=/Y/.test(bw);D.fn[bx]=function(by){return D.access(this,function(bz,bC,bB){var bA=aD(bz);if(bB===H){return bA?(bw in bA)?bA[bw]:bA.document.documentElement[bC]:bz[bC]}if(bA){bA.scrollTo(!bv?bB:D(bA).scrollLeft(),bv?bB:D(bA).scrollTop())}else{bz[bC]=bB}},bx,by,arguments.length,null)}});function aD(bv){return D.isWindow(bv)?bv:bv.nodeType===9?bv.defaultView||bv.parentWindow:false}D.each({Height:"height",Width:"width"},function(bv,bw){D.each({padding:"inner"+bv,content:bw,"":"outer"+bv},function(bx,by){D.fn[by]=function(bC,bB){var bA=arguments.length&&(bx||typeof bC!=="boolean"),bz=bx||(bC===true||bB===true?"margin":"border");return D.access(this,function(bE,bD,bF){var bG;if(D.isWindow(bE)){return bE.document.documentElement["client"+bv]}if(bE.nodeType===9){bG=bE.documentElement;return Math.max(bE.body["scroll"+bv],bG["scroll"+bv],bE.body["offset"+bv],bG["offset"+bv],bG["client"+bv])}return bF===H?D.css(bE,bD,bF,bz):D.style(bE,bD,bF,bz)},bw,bA?bC:H,bA,null)}})});be.JQXLite=be.jqxHelper=D;if(typeof define==="function"&&define.amd&&define.amd.JQXLite){define("jqx",[],function(){return D})}})(window)}(function(a){if(a.jQuery){a.minQuery=a.JQXLite=a.jQuery;return}if(!a.$){a.$=a.minQuery=a.JQXLite}else{a.minQuery=a.JQXLite=a.$}})(window);JQXLite.generateID=function(){var a=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};var b="";do{b="jqx"+a()+a()+a()}while($("#"+b).length>0);return b};var jqxBaseFramework=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(a){a.jqx=a.jqx||{};window.jqx=a.jqx;jqwidgets={createInstance:function(b,d,f){if(d=="jqxDataAdapter"){var e=f[0];var c=f[1]||{};return new a.jqx.dataAdapter(e,c)}a(b)[d](f||{});return a(b)[d]("getInstance")}};a.jqx.define=function(b,c,d){b[c]=function(){if(this.baseType){this.base=new b[this.baseType]();this.base.defineInstance()}this.defineInstance();this.metaInfo()};b[c].prototype.defineInstance=function(){};b[c].prototype.metaInfo=function(){};b[c].prototype.base=null;b[c].prototype.baseType=undefined;if(d&&b[d]){b[c].prototype.baseType=d}};a.jqx.invoke=function(e,d){if(d.length==0){return}var f=typeof(d)==Array||d.length>0?d[0]:d;var c=typeof(d)==Array||d.length>1?Array.prototype.slice.call(d,1):a({}).toArray();while(e[f]==undefined&&e.base!=null){if(e[f]!=undefined&&a.isFunction(e[f])){return e[f].apply(e,c)}if(typeof f=="string"){var b=f.toLowerCase();if(e[b]!=undefined&&a.isFunction(e[b])){return e[b].apply(e,c)}}e=e.base}if(e[f]!=undefined&&a.isFunction(e[f])){return e[f].apply(e,c)}if(typeof f=="string"){var b=f.toLowerCase();if(e[b]!=undefined&&a.isFunction(e[b])){return e[b].apply(e,c)}}return};a.jqx.getByPriority=function(b){var d=undefined;for(var c=0;c<b.length&&d==undefined;c++){if(d==undefined&&b[c]!=undefined){d=b[c]}}return d};a.jqx.hasProperty=function(c,b){if(typeof(b)=="object"){for(var e in b){var d=c;while(d){if(d.hasOwnProperty(e)){return true}if(d.hasOwnProperty(e.toLowerCase())){return true}d=d.base}return false}}else{while(c){if(c.hasOwnProperty(b)){return true}if(c.hasOwnProperty(b.toLowerCase())){return true}c=c.base}}return false};a.jqx.hasFunction=function(e,d){if(d.length==0){return false}if(e==undefined){return false}var f=typeof(d)==Array||d.length>0?d[0]:d;var c=typeof(d)==Array||d.length>1?Array.prototype.slice.call(d,1):{};while(e[f]==undefined&&e.base!=null){if(e[f]&&a.isFunction(e[f])){return true}if(typeof f=="string"){var b=f.toLowerCase();if(e[b]&&a.isFunction(e[b])){return true}}e=e.base}if(e[f]&&a.isFunction(e[f])){return true}if(typeof f=="string"){var b=f.toLowerCase();if(e[b]&&a.isFunction(e[b])){return true}}return false};a.jqx.isPropertySetter=function(c,b){if(b.length==1&&typeof(b[0])=="object"){return true}if(b.length==2&&typeof(b[0])=="string"&&!a.jqx.hasFunction(c,b)){return true}return false};a.jqx.validatePropertySetter=function(f,d,b){if(!a.jqx.propertySetterValidation){return true}if(d.length==1&&typeof(d[0])=="object"){for(var e in d[0]){var g=f;while(!g.hasOwnProperty(e)&&g.base){g=g.base}if(!g||!g.hasOwnProperty(e)){if(!b){var c=g.hasOwnProperty(e.toString().toLowerCase());if(!c){throw"Invalid property: "+e}else{return true}}return false}}return true}if(d.length!=2){if(!b){throw"Invalid property: "+d.length>=0?d[0]:""}return false}while(!f.hasOwnProperty(d[0])&&f.base){f=f.base}if(!f||!f.hasOwnProperty(d[0])){if(!b){throw"Invalid property: "+d[0]}return false}return true};if(!Object.keys){Object.keys=(function(){var d=Object.prototype.hasOwnProperty,e=!({toString:null}).propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=c.length;return function(h){if(typeof h!=="object"&&(typeof h!=="function"||h===null)){throw new TypeError("Object.keys called on non-object")}var f=[],j,g;for(j in h){if(d.call(h,j)){f.push(j)}}if(e){for(g=0;g<b;g++){if(d.call(h,c[g])){f.push(c[g])}}}return f}}())}a.jqx.set=function(e,h){var c=0;if(h.length==1&&typeof(h[0])=="object"){if(e.isInitialized&&Object.keys&&Object.keys(h[0]).length>1){var f=!e.base?e.element:e.base.element;var b=a.data(f,e.widgetName).initArgs;if(b&&JSON&&JSON.stringify&&h[0]&&b[0]){try{if(JSON.stringify(h[0])==JSON.stringify(b[0])){var g=true;a.each(h[0],function(l,m){if(e[l]!=m){g=false;return false}});if(g){return}}}catch(d){}}e.batchUpdate=h[0];var j={};var k={};a.each(h[0],function(l,m){var n=e;while(!n.hasOwnProperty(l)&&n.base!=null){n=n.base}if(n.hasOwnProperty(l)){if(e[l]!=m){j[l]=e[l];k[l]=m;c++}}else{if(n.hasOwnProperty(l.toLowerCase())){if(e[l.toLowerCase()]!=m){j[l.toLowerCase()]=e[l.toLowerCase()];k[l.toLowerCase()]=m;c++}}}});if(c<2){e.batchUpdate=null}}a.each(h[0],function(l,m){var n=e;while(!n.hasOwnProperty(l)&&n.base!=null){n=n.base}if(n.hasOwnProperty(l)){a.jqx.setvalueraiseevent(n,l,m)}else{if(n.hasOwnProperty(l.toLowerCase())){a.jqx.setvalueraiseevent(n,l.toLowerCase(),m)}else{if(a.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+l+"'"}}}});if(e.batchUpdate!=null){e.batchUpdate=null;if(e.propertiesChangedHandler&&c>1){e.propertiesChangedHandler(e,j,k)}}}else{if(h.length==2){while(!e.hasOwnProperty(h[0])&&e.base){e=e.base}if(e.hasOwnProperty(h[0])){a.jqx.setvalueraiseevent(e,h[0],h[1])}else{if(e.hasOwnProperty(h[0].toLowerCase())){a.jqx.setvalueraiseevent(e,h[0].toLowerCase(),h[1])}else{if(a.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+h[0]+"'"}}}}}};a.jqx.setvalueraiseevent=function(c,d,e){var b=c[d];c[d]=e;if(!c.isInitialized){return}if(c.propertyChangedHandler!=undefined){c.propertyChangedHandler(c,d,b,e)}if(c.propertyChangeMap!=undefined&&c.propertyChangeMap[d]!=undefined){c.propertyChangeMap[d](c,d,b,e)}};a.jqx.get=function(e,d){if(d==undefined||d==null){return undefined}if(e.propertyMap){var c=e.propertyMap(d);if(c!=null){return c}}if(e.hasOwnProperty(d)){return e[d]}if(e.hasOwnProperty(d.toLowerCase())){return e[d.toLowerCase()]}var b=undefined;if(typeof(d)==Array){if(d.length!=1){return undefined}b=d[0]}else{if(typeof(d)=="string"){b=d}}while(!e.hasOwnProperty(b)&&e.base){e=e.base}if(e){return e[b]}return undefined};a.jqx.serialize=function(e){var b="";if(a.isArray(e)){b="[";for(var d=0;d<e.length;d++){if(d>0){b+=", "}b+=a.jqx.serialize(e[d])}b+="]"}else{if(typeof(e)=="object"){b="{";var c=0;for(var d in e){if(c++>0){b+=", "}b+=d+": "+a.jqx.serialize(e[d])}b+="}"}else{b=e.toString()}}return b};a.jqx.propertySetterValidation=true;a.jqx.jqxWidgetProxy=function(g,c,b){var d=a(c);var f=a.data(c,g);if(f==undefined){return undefined}var e=f.instance;if(a.jqx.hasFunction(e,b)){return a.jqx.invoke(e,b)}if(a.jqx.isPropertySetter(e,b)){if(a.jqx.validatePropertySetter(e,b)){a.jqx.set(e,b);return undefined}}else{if(typeof(b)=="object"&&b.length==0){return}else{if(typeof(b)=="object"&&b.length==1&&a.jqx.hasProperty(e,b[0])){return a.jqx.get(e,b[0])}else{if(typeof(b)=="string"&&a.jqx.hasProperty(e,b[0])){return a.jqx.get(e,b)}}}}throw"jqxCore: Invalid parameter '"+a.jqx.serialize(b)+"' does not exist."};a.jqx.applyWidget=function(c,d,k,l){var g=false;try{g=window.MSApp!=undefined}catch(f){}var m=a(c);if(!l){l=new a.jqx["_"+d]()}else{l.host=m;l.element=c}if(c.id==""){c.id=a.jqx.utilities.createId()}var j={host:m,element:c,instance:l,initArgs:k};l.widgetName=d;a.data(c,d,j);a.data(c,"jqxWidget",j.instance);var h=new Array();var l=j.instance;while(l){l.isInitialized=false;h.push(l);l=l.base}h.reverse();h[0].theme=a.jqx.theme||"";a.jqx.jqxWidgetProxy(d,c,k);for(var b in h){l=h[b];if(b==0){l.host=m;l.element=c;l.WinJS=g}if(l!=undefined){if(l.definedInstance){l.definedInstance()}if(l.createInstance!=null){if(g){MSApp.execUnsafeLocalFunction(function(){l.createInstance(k)})}else{l.createInstance(k)}}}}for(var b in h){if(h[b]!=undefined){h[b].isInitialized=true}}if(g){MSApp.execUnsafeLocalFunction(function(){j.instance.refresh(true)})}else{j.instance.refresh(true)}};a.jqx.jqxWidget=function(b,c,f){var j=false;try{jqxArgs=Array.prototype.slice.call(f,0)}catch(h){jqxArgs=""}try{j=window.MSApp!=undefined}catch(h){}var g=b;var l="";if(c){l="_"+c}a.jqx.define(a.jqx,"_"+g,l);var k=new Array();if(!window[g]){var d=function(m){if(m==null){return""}var e=a.type(m);switch(e){case"string":case"number":case"date":case"boolean":case"bool":if(m===null){return""}return m.toString()}var n="";a.each(m,function(p,q){var s=q;if(p>0){n+=", "}n+="[";var o=0;if(a.type(s)=="object"){for(var r in s){if(o>0){n+=", "}n+="{"+r+":"+s[r]+"}";o++}}else{if(o>0){n+=", "}n+="{"+p+":"+s+"}";o++}n+="]"});return n};jqwidgets[g]=window[g]=function(e,r){var m=[];if(!r){r={}}m.push(r);var n=e;if(a.type(n)==="object"&&e[0]){n=e[0].id;if(n===""){n=e[0].id=a.jqx.utilities.createId()}}else{if(a.type(e)==="object"&&e&&e.nodeName){n=e.id;if(n===""){n=e.id=a.jqx.utilities.createId()}}}if(window.jqxWidgets&&window.jqxWidgets[n]){if(r){a.each(window.jqxWidgets[n],function(s){var t=a(this.element).data();if(t&&t.jqxWidget){a(this.element)[g](r)}})}if(window.jqxWidgets[n].length==1){var p=a(window.jqxWidgets[n][0].widgetInstance.element).data();if(p&&p.jqxWidget){return window.jqxWidgets[n][0]}}var p=a(window.jqxWidgets[n][0].widgetInstance.element).data();if(p&&p.jqxWidget){return window.jqxWidgets[n]}}var o=a(e);if(o.length===0){o=a("<div></div>");if(g==="jqxInput"||g==="jqxPasswordInput"||g==="jqxMaskedInput"){o=a("<input/>")}if(g==="jqxTextArea"){o=a("<textarea></textarea>")}if(g==="jqxButton"||g==="jqxRepeatButton"||g==="jqxToggleButton"){o=a("<button/>")}if(g==="jqxSplitter"){o=a("<div><div>Panel 1</div><div>Panel 2</div></div>")}if(g==="jqxTabs"){o=a("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")}if(g==="jqxRibbon"){o=a("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")}if(g==="jqxDocking"){o=a("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")}if(g==="jqxWindow"){o=a("<div><div>Title 1</div><div>Content 1</div></div>")}}var q=[];a.each(o,function(v){var x=o[v];a.jqx.applyWidget(x,g,m,undefined);if(!k[g]){var t=a.data(x,"jqxWidget");var w=a.jqx["_"+g].prototype.defineInstance();var u={};if(a.jqx["_"+g].prototype.metaInfo){u=a.jqx["_"+g].prototype.metaInfo()}if(g=="jqxDockingLayout"){w=a.extend(w,a.jqx._jqxLayout.prototype.defineInstance())}if(g=="jqxToggleButton"||g=="jqxRepeatButton"){w=a.extend(w,a.jqx._jqxButton.prototype.defineInstance())}if(g=="jqxTreeGrid"){w=a.extend(w,a.jqx._jqxDataTable.prototype.defineInstance())}var s=function(z){var y=a.data(z,"jqxWidget");this.widgetInstance=y;var A=a.extend(this,y);A.on=A.addEventListener=function(C,D){A.addHandler(!A.base?A.host:A.base.host,C,D)};A.off=A.removeEventListener=function(C){A.removeHandler(!A.base?A.host:A.base.host,C)};for(var B in y){if(a.type(y[B])=="function"){A[B]=a.proxy(y[B],y)}}return A};k[g]=s;a.each(w,function(z,y){Object.defineProperty(s.prototype,z,{get:function(){if(this.widgetInstance){return this.widgetInstance[z]}return y},set:function(G){if(this.widgetInstance&&(this.widgetInstance[z]!=G||z==="width"||z==="height")){var E=this.widgetInstance[z];var D=G;var C=a.type(E);var A=a.type(D);var F=false;if(C!=A||z==="source"||z==="width"||z==="height"){F=true}if(F||(d(E)!=d(D))){var B={};B[z]=G;if(this.widgetInstance.host){this.widgetInstance.host[g](B)}else{this.widgetInstance.base.host[g](B)}this.widgetInstance[z]=G;if(this.widgetInstance.propertyUpdated){this.widgetInstance.propertyUpdated(z,E,G)}}}}})})}var t=new k[g](x);q.push(t);if(!window.jqxWidgets){window.jqxWidgets=new Array()}if(!window.jqxWidgets[n]){window.jqxWidgets[n]=new Array()}window.jqxWidgets[n].push(t)});if(q.length===1){return q[0]}return q}}a.fn[g]=function(){var e=Array.prototype.slice.call(arguments,0);if(e.length==0||(e.length==1&&typeof(e[0])=="object")){if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}return this.each(function(){var p=a(this);var o=this;var q=a.data(o,g);if(q==null){a.jqx.applyWidget(o,g,e,undefined)}else{a.jqx.jqxWidgetProxy(g,this,e)}})}else{if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}var n=null;var m=0;this.each(function(){var o=a.jqx.jqxWidgetProxy(g,this,e);if(m==0){n=o;m++}else{if(m==1){var p=[];p.push(n);n=p}n.push(o)}})}return n};try{a.extend(a.jqx["_"+g].prototype,Array.prototype.slice.call(f,0)[0])}catch(h){}a.extend(a.jqx["_"+g].prototype,{toThemeProperty:function(e,m){return a.jqx.toThemeProperty(this,e,m)},isMaterialized:function(){if(!this.theme){return false}if(this.theme.indexOf("material")>=0){return true}},isModern:function(){if(!this.theme){return false}if(this.theme.indexOf("light")>=0){return true}if(this.theme==="dark"){return true}},_addBarAndLabel:function(o){var n=this;var e=a("<label></label");e[0].innerHTML=this.placeHolder;e.addClass(n.toThemeProperty("jqx-input-label"));o.after(e);n.label=e;var m=a("<span></span>");o.after(m);m.addClass(n.toThemeProperty("jqx-input-bar"));n.bar=m;n.bar.css("top",this.host.height())}});a.jqx["_"+g].prototype.refresh=function(){if(this.base){this.base.refresh(true)}};a.jqx["_"+g].prototype.createInstance=function(){};a.jqx["_"+g].prototype.addEventHandler=function(m,e){this.host.on(m,e)};a.jqx["_"+g].prototype.removeEventHandler=function(m,e){this.host.off(m)};a.jqx["_"+g].prototype.applyTo=function(n,m){if(!(m instanceof Array)){var e=[];e.push(m);m=e}a.jqx.applyWidget(n,g,m,this)};a.jqx["_"+g].prototype.getInstance=function(){return this};a.jqx["_"+g].prototype.propertyChangeMap={};a.jqx["_"+g].prototype.addHandler=function(o,e,m,n){a.jqx.addHandler(a(o),e,m,n)};a.jqx["_"+g].prototype.removeHandler=function(n,e,m){a.jqx.removeHandler(a(n),e,m)};a.jqx["_"+g].prototype.setOptions=function(){if(!this.host||!this.host.length||this.host.length!=1){return}return a.jqx.jqxWidgetProxy(g,this.host[0],arguments)}};a.jqx.toThemeProperty=function(c,d,h){if(c.theme==""){return d}var g=d.split(" ");var b="";for(var f=0;f<g.length;f++){if(f>0){b+=" "}var e=g[f];if(h!=null&&h){b+=e+"-"+c.theme}else{b+=e+" "+e+"-"+c.theme}}return b};a.jqx.addHandler=function(g,h,e,f){var c=h.split(" ");for(var b=0;b<c.length;b++){var d=c[b];if(window.addEventListener){switch(d){case"mousewheel":if(a.jqx.browser.mozilla){g[0].addEventListener("DOMMouseScroll",e,false)}else{g[0].addEventListener("mousewheel",e,false)}continue;case"mousemove":if(!f){g[0].addEventListener("mousemove",e,false);continue}break}}if(f==undefined||f==null){if(g.on){g.on(d,e)}else{g.bind(d,e)}}else{if(g.on){g.on(d,f,e)}else{g.bind(d,f,e)}}}};a.jqx.removeHandler=function(f,g,e){if(!g){if(f.off){f.off()}else{f.unbind()}return}var c=g.split(" ");for(var b=0;b<c.length;b++){var d=c[b];if(window.removeEventListener){switch(d){case"mousewheel":if(a.jqx.browser.mozilla){f[0].removeEventListener("DOMMouseScroll",e,false)}else{f[0].removeEventListener("mousewheel",e,false)}continue;case"mousemove":if(e){f[0].removeEventListener("mousemove",e,false);continue}break}}if(d==undefined){if(f.off){f.off()}else{f.unbind()}continue}if(e==undefined){if(f.off){f.off(d)}else{f.unbind(d)}}else{if(f.off){f.off(d,e)}else{f.unbind(d,e)}}}};a.jqx.credits=a.jqx.credits||"";a.jqx.theme=a.jqx.theme||"";a.jqx.scrollAnimation=a.jqx.scrollAnimation||false;a.jqx.resizeDelay=a.jqx.resizeDelay||10;a.jqx.ready=function(){a(window).trigger("jqxReady")};a.jqx.init=function(){a.each(arguments[0],function(b,c){if(b=="theme"){a.jqx.theme=c}if(b=="scrollBarSize"){a.jqx.utilities.scrollBarSize=c}if(b=="touchScrollBarSize"){a.jqx.utilities.touchScrollBarSize=c}if(b=="scrollBarButtonsVisibility"){a.jqx.utilities.scrollBarButtonsVisibility=c}})};a.jqx.utilities=a.jqx.utilities||{};a.extend(a.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var b=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return"jqxWidget"+b()+b()+b()},setTheme:function(f,g,e){if(typeof e==="undefined"){return}if(!e[0].className.split){return}var h=e[0].className.split(" "),b=[],j=[],d=e.children();for(var c=0;c<h.length;c+=1){if(h[c].indexOf(f)>=0){if(f.length>0){b.push(h[c]);j.push(h[c].replace(f,g))}else{j.push(h[c].replace("-"+g,"")+"-"+g)}}}this._removeOldClasses(b,e);this._addNewClasses(j,e);for(var c=0;c<d.length;c+=1){this.setTheme(f,g,a(d[c]))}},_removeOldClasses:function(d,c){for(var b=0;b<d.length;b+=1){c.removeClass(d[b])}},_addNewClasses:function(d,c){for(var b=0;b<d.length;b+=1){c.addClass(d[b])}},getOffset:function(b){var d=a.jqx.mobile.getLeftPos(b[0]);var c=a.jqx.mobile.getTopPos(b[0]);return{top:c,left:d}},resize:function(g,s,p,o){if(o===undefined){o=true}var l=-1;var k=this;var d=function(u){if(!k.hiddenWidgets){return -1}var v=-1;for(var t=0;t<k.hiddenWidgets.length;t++){if(u.id){if(k.hiddenWidgets[t].id==u.id){v=t;break}}else{if(k.hiddenWidgets[t].id==u[0].id){v=t;break}}}return v};if(this.resizeHandlers){for(var h=0;h<this.resizeHandlers.length;h++){if(g.id){if(this.resizeHandlers[h].id==g.id){l=h;break}}else{if(this.resizeHandlers[h].id==g[0].id){l=h;break}}}if(p===true){if(l!=-1){this.resizeHandlers.splice(l,1);if(this.watchedElementData&&this.watchedElementData.length>0){this.watchedElementData.splice(l,1)}}if(this.resizeHandlers.length==0){var n=a(window);if(n.off){n.off("resize.jqx");n.off("orientationchange.jqx");n.off("orientationchanged.jqx")}else{n.unbind("resize.jqx");n.unbind("orientationchange.jqx");n.unbind("orientationchanged.jqx")}this.resizeHandlers=null}var b=d(g);if(b!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(b,1)}return}}else{if(p===true){var b=d(g);if(b!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(b,1)}return}}var k=this;var m=function(v,E){if(!k.resizeHandlers){return}var F=function(J){var I=-1;var K=J.parentNode;while(K){I++;K=K.parentNode}return I};var u=function(L,J){if(!L.widget||!J.widget){return 0}var K=F(L.widget[0]);var I=F(J.widget[0]);try{if(K<I){return -1}if(K>I){return 1}}catch(M){var N=M}return 0};var w=function(J){if(k.hiddenWidgets.length>0){k.hiddenWidgets.sort(u);var I=function(){var L=false;var N=new Array();for(var M=0;M<k.hiddenWidgets.length;M++){var K=k.hiddenWidgets[M];if(a.jqx.isHidden(K.widget)){L=true;N.push(K)}else{if(K.callback){K.callback(E)}}}k.hiddenWidgets=N;if(!L){clearInterval(k.__resizeInterval)}};if(J==false){I();if(k.__resizeInterval){clearInterval(k.__resizeInterval)}return}if(k.__resizeInterval){clearInterval(k.__resizeInterval)}k.__resizeInterval=setInterval(function(){I()},100)}};if(k.hiddenWidgets&&k.hiddenWidgets.length>0){w(false)}k.hiddenWidgets=new Array();k.resizeHandlers.sort(u);for(var B=0;B<k.resizeHandlers.length;B++){var H=k.resizeHandlers[B];var D=H.widget;var A=H.data;if(!A){continue}if(!A.jqxWidget){continue}var t=A.jqxWidget.width;var G=A.jqxWidget.height;if(A.jqxWidget.base){if(t==undefined){t=A.jqxWidget.base.width}if(G==undefined){G=A.jqxWidget.base.height}}if(t===undefined&&G===undefined){t=A.jqxWidget.element.style.width;G=A.jqxWidget.element.style.height}var C=false;if(t!=null&&t.toString().indexOf("%")!=-1){C=true}if(G!=null&&G.toString().indexOf("%")!=-1){C=true}if(a.jqx.isHidden(D)){if(d(D)===-1){if(C||v===true){if(H.data.nestedWidget!==true){k.hiddenWidgets.push(H)}}}}else{if(v===undefined||v!==true){if(C){H.callback(E);if(k.watchedElementData){for(var y=0;y<k.watchedElementData.length;y++){if(k.watchedElementData[y].element==A.jqxWidget.element){k.watchedElementData[y].offsetWidth=A.jqxWidget.element.offsetWidth;k.watchedElementData[y].offsetHeight=A.jqxWidget.element.offsetHeight;break}}}if(k.hiddenWidgets.indexOf(H)>=0){k.hiddenWidgets.splice(k.hiddenWidgets.indexOf(H),1)}}if(A.jqxWidget.element){var x=A.jqxWidget.element.className;if(x.indexOf("dropdownlist")>=0||x.indexOf("datetimeinput")>=0||x.indexOf("combobox")>=0||x.indexOf("menu")>=0){if(A.jqxWidget.isOpened){var z=A.jqxWidget.isOpened();if(z){if(E&&E=="resize"&&a.jqx.mobile.isTouchDevice()){continue}A.jqxWidget.close()}}}}}}}w()};if(!this.resizeHandlers){this.resizeHandlers=new Array();var n=a(window);if(n.on){this._resizeTimer=null;this._initResize=null;n.on("resize.jqx",function(t){if(k._resizeTimer!=undefined){clearTimeout(k._resizeTimer)}if(!k._initResize){k._initResize=true;m(null,"resize")}else{k._resizeTimer=setTimeout(function(){m(null,"resize")},a.jqx.resizeDelay)}});n.on("orientationchange.jqx",function(t){m(null,"orientationchange")});n.on("orientationchanged.jqx",function(t){m(null,"orientationchange")})}else{n.bind("resize.jqx",function(t){m(null,"orientationchange")});n.bind("orientationchange.jqx",function(t){m(null,"orientationchange")});n.bind("orientationchanged.jqx",function(t){m(null,"orientationchange")})}}var e=g.data();if(o){if(l===-1){this.resizeHandlers.push({id:g[0].id,widget:g,callback:s,data:e})}}try{var c=e.jqxWidget.width;var r=e.jqxWidget.height;if(e.jqxWidget.base){if(c==undefined){c=e.jqxWidget.base.width}if(r==undefined){r=e.jqxWidget.base.height}}if(c===undefined&&r===undefined){c=e.jqxWidget.element.style.width;r=e.jqxWidget.element.style.height}var j=false;if(c!=null&&c.toString().indexOf("%")!=-1){j=true}if(r!=null&&r.toString().indexOf("%")!=-1){j=true}if(j){if(!this.watchedElementData){this.watchedElementData=[]}var k=this;var f=function(t){if(k.watchedElementData.forEach){k.watchedElementData.forEach(function(u){if(u.element.offsetWidth!==u.offsetWidth||u.element.offsetHeight!==u.offsetHeight){u.offsetWidth=u.element.offsetWidth;u.offsetHeight=u.element.offsetHeight;if(u.timer){clearTimeout(u.timer)}u.timer=setTimeout(function(){if(!a.jqx.isHidden(a(u.element))){u.callback()}else{u.timer=setInterval(function(){if(!a.jqx.isHidden(a(u.element))){clearInterval(u.timer);u.callback()}},100)}})}})}};k.watchedElementData.push({element:g[0],offsetWidth:g[0].offsetWidth,offsetHeight:g[0].offsetHeight,callback:s});if(!k.observer){k.observer=new MutationObserver(f);k.observer.observe(document.body,{attributes:true,childList:true,characterData:true})}}}catch(q){}if(a.jqx.isHidden(g)&&o===true){m(true)}a.jqx.resize=function(){m(null,"resize")}},parseJSON:function(d){if(!d||typeof d!=="string"){return null}var b=/^[\],:{}\s]*$/,f=/(?:^|:|,)(?:\s*\[)+/g,c=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,e=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;d=a.trim(d);if(window.JSON&&window.JSON.parse){return window.JSON.parse(d)}if(b.test(d.replace(c,"@").replace(e,"]").replace(f,""))){return(new Function("return "+d))()}throw new Error("Invalid JSON: "+d)},html:function(c,d){if(!a(c).on){return a(c).html(d)}try{return a.access(c,function(s){var f=c[0]||{},m=0,j=c.length;if(s===undefined){return f.nodeType===1?f.innerHTML.replace(rinlinejQuery,""):undefined}var r=/<(?:script|style|link)/i,n="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",h=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,p=/<([\w:]+)/,g=/<(?:script|object|embed|option|style)/i,k=new RegExp("<(?:"+n+")[\\s/>]","i"),q=/^\s+/,t={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof s==="string"&&!r.test(s)&&(a.support.htmlSerialize||!k.test(s))&&(a.support.leadingWhitespace||!q.test(s))&&!t[(p.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(h,"<$1></$2>");try{for(;m<j;m++){f=this[m]||{};if(f.nodeType===1){a.cleanData(f.getElementsByTagName("*"));f.innerHTML=s}}f=0}catch(o){}}if(f){c.empty().append(s)}},null,d,arguments.length)}catch(b){return a(c).html(d)}},hasTransform:function(d){var c="";c=d.css("transform");if(c==""||c=="none"){c=d.parents().css("transform");if(c==""||c=="none"){var b=a.jqx.utilities.getBrowser();if(b.browser=="msie"){c=d.css("-ms-transform");if(c==""||c=="none"){c=d.parents().css("-ms-transform")}}else{if(b.browser=="chrome"){c=d.css("-webkit-transform");if(c==""||c=="none"){c=d.parents().css("-webkit-transform")}}else{if(b.browser=="opera"){c=d.css("-o-transform");if(c==""||c=="none"){c=d.parents().css("-o-transform")}}else{if(b.browser=="mozilla"){c=d.css("-moz-transform");if(c==""||c=="none"){c=d.parents().css("-moz-transform")}}}}}}else{return c!=""&&c!="none"}}if(c==""||c=="none"){c=a(document.body).css("transform")}return c!=""&&c!="none"&&c!=null},getBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||c.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[];var d={browser:b[1]||"",version:b[2]||"0"};if(c.indexOf("rv:11.0")>=0&&c.indexOf(".net4.0c")>=0){d.browser="msie";d.version="11";b[1]="msie"}if(c.indexOf("edge")>=0){d.browser="msie";d.version="12";b[1]="msie"}d[b[1]]=b[1];return d}});a.jqx.browser=a.jqx.utilities.getBrowser();a.jqx.isHidden=function(c){if(!c||!c[0]){return false}var b=c[0].offsetWidth,d=c[0].offsetHeight;if(b===0||d===0){return true}else{return false}};a.jqx.ariaEnabled=true;a.jqx.aria=function(c,e,d){if(!a.jqx.ariaEnabled){return}if(e==undefined){a.each(c.aria,function(g,h){var k=!c.base?c.host.attr(g):c.base.host.attr(g);if(k!=undefined&&!a.isFunction(k)){var j=k;switch(h.type){case"number":j=new Number(k);if(isNaN(j)){j=k}break;case"boolean":j=k=="true"?true:false;break;case"date":j=new Date(k);if(j=="Invalid Date"||isNaN(j)){j=k}break}c[h.name]=j}else{var k=c[h.name];if(a.isFunction(k)){k=c[h.name]()}if(k==undefined){k=""}try{!c.base?c.host.attr(g,k.toString()):c.base.host.attr(g,k.toString())}catch(f){}}})}else{try{if(c.host){if(!c.base){if(c.host){if(c.element.setAttribute){c.element.setAttribute(e,d.toString())}else{c.host.attr(e,d.toString())}}else{c.attr(e,d.toString())}}else{if(c.base.host){c.base.host.attr(e,d.toString())}else{c.attr(e,d.toString())}}}else{if(c.setAttribute){c.setAttribute(e,d.toString())}}}catch(b){}}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(c){var b=this.length;var d=Number(arguments[1])||0;d=(d<0)?Math.ceil(d):Math.floor(d);if(d<0){d+=b}for(;d<b;d++){if(d in this&&this[d]===c){return d}}return -1}}a.jqx.mobile=a.jqx.mobile||{};a.jqx.position=function(b){var e=parseInt(b.pageX);var d=parseInt(b.pageY);if(a.jqx.mobile.isTouchDevice()){var c=a.jqx.mobile.getTouches(b);var f=c[0];e=parseInt(f.pageX);d=parseInt(f.pageY)}return{left:e,top:d}};a.extend(a.jqx.mobile,{_touchListener:function(h,f){var b=function(j,l){var k=document.createEvent("MouseEvents");k.initMouseEvent(j,l.bubbles,l.cancelable,l.view,l.detail,l.screenX,l.screenY,l.clientX,l.clientY,l.ctrlKey,l.altKey,l.shiftKey,l.metaKey,l.button,l.relatedTarget);k._pageX=l.pageX;k._pageY=l.pageY;return k};var g={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var d=b(g[h.type],h);h.target.dispatchEvent(d);var c=h.target["on"+g[h.type]];if(typeof c==="function"){c(h)}},setMobileSimulator:function(c,e){if(this.isTouchDevice()){return}this.simulatetouches=true;if(e==false){this.simulatetouches=false}var d={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var b=this;if(window.addEventListener){var f=function(){for(var g in d){if(c.addEventListener){c.removeEventListener(g,b._touchListener);c.addEventListener(g,b._touchListener,false)}}};if(a.jqx.browser.msie){f()}else{f()}}},isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var c="Browser CodeName: "+navigator.appCodeName+"";c+="Browser Name: "+navigator.appName+"";c+="Browser Version: "+navigator.appVersion+"";c+="Platform: "+navigator.platform+"";c+="User-agent header: "+navigator.userAgent+"";if(c.indexOf("Android")!=-1){return true}if(c.indexOf("IEMobile")!=-1){return true}if(c.indexOf("Windows Phone")!=-1){return true}if(c.indexOf("WPDesktop")!=-1){return true}if(c.indexOf("ZuneWP7")!=-1){return true}if(c.indexOf("BlackBerry")!=-1&&c.indexOf("Mobile Safari")!=-1){return true}if(c.indexOf("ipod")!=-1){return true}if(c.indexOf("nokia")!=-1||c.indexOf("Nokia")!=-1){return true}if(c.indexOf("Chrome/17")!=-1){return false}if(c.indexOf("CrOS")!=-1){return false}if(c.indexOf("Opera")!=-1&&c.indexOf("Mobi")==-1&&c.indexOf("Mini")==-1&&c.indexOf("Platform: Win")!=-1){return false}if(c.indexOf("HybridDeviceTouch")!=-1){return true}if(c.indexOf("HybridDeviceMouse")!=-1){return false}if(c.indexOf("Opera")!=-1&&c.indexOf("Mobi")!=-1&&c.indexOf("Opera Mobi")!=-1){return true}var d={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=undefined){return this.touchDevice}this.touchDevice=false;for(i in d){if(d.hasOwnProperty(i)){prefix=d[i];match=c.match(new RegExp("(?:"+prefix+")([^\\s;]+)"));if(match){if(i.toString()=="blackberry"){this.touchDevice=false;return false}this.touchDevice=true;return true}}}var f=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(f.indexOf("Windows Phone")>=0||f.indexOf("WPDesktop")>=0||f.indexOf("IEMobile")>=0||f.indexOf("ZuneWP7")>=0){this.touchDevice=true;return true}else{if(f.indexOf("Touch")>=0){var b=("MSPointerDown" in window)||("pointerdown" in window);if(b){this.touchDevice=true;return true}if(f.indexOf("ARM")>=0){this.touchDevice=true;return true}this.touchDevice=false;return false}}}if(navigator.platform.toLowerCase().indexOf("win")!=-1){this.touchDevice=false;return false}if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){this.touchDevice=true}return this.touchDevice}catch(g){this.touchDevice=false;return false}},getLeftPos:function(b){var c=b.offsetLeft;while((b=b.offsetParent)!=null){if(b.tagName!="HTML"){c+=b.offsetLeft;if(document.all){c+=b.clientLeft}}}return c},getTopPos:function(c){var e=c.offsetTop;var b=a(c).coord();while((c=c.offsetParent)!=null){if(c.tagName!="HTML"){e+=(c.offsetTop-c.scrollTop);if(document.all){e+=c.clientTop}}}var d=navigator.userAgent.toLowerCase();var f=(d.indexOf("windows phone")!=-1||d.indexOf("WPDesktop")!=-1||d.indexOf("ZuneWP7")!=-1||d.indexOf("msie 9")!=-1||d.indexOf("msie 11")!=-1||d.indexOf("msie 10")!=-1)&&d.indexOf("touch")!=-1;if(f){return b.top}if(this.isSafariMobileBrowser()){if(this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()){return e}if(d.indexOf("version/7")!=-1){return b.top}if(d.indexOf("version/6")!=-1||d.indexOf("version/5")!=-1){e=e+a(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return e+a(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return e+a(window).scrollTop()}return b.top}return e},isChromeMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("android")!=-1;return b},isOperaMiniMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("opera mini")!=-1||c.indexOf("opera mobi")!=-1;return b},isOperaMiniBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("opera mini")!=-1;return b},isNewSafariMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("ipad")!=-1||c.indexOf("iphone")!=-1||c.indexOf("ipod")!=-1;b=b&&(c.indexOf("version/5")!=-1);return b},isSafari4MobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("ipad")!=-1||c.indexOf("iphone")!=-1||c.indexOf("ipod")!=-1;b=b&&(c.indexOf("version/4")!=-1);return b},isWindowsPhone:function(){var c=navigator.userAgent.toLowerCase();var b=(c.indexOf("windows phone")!=-1||c.indexOf("WPDesktop")!=-1||c.indexOf("ZuneWP7")!=-1||c.indexOf("msie 9")!=-1||c.indexOf("msie 11")!=-1||c.indexOf("msie 10")!=-1&&c.indexOf("touch")!=-1);return b},isSafariMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return true}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return true}var b=c.indexOf("ipad")!=-1||c.indexOf("iphone")!=-1||c.indexOf("ipod")!=-1||c.indexOf("mobile safari")!=-1;return b},isIPadSafariMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("ipad")!=-1;return b},isMobileBrowser:function(){var c=navigator.userAgent.toLowerCase();var b=c.indexOf("ipad")!=-1||c.indexOf("iphone")!=-1||c.indexOf("android")!=-1;return b},getTouches:function(b){if(b.originalEvent){if(b.originalEvent.touches&&b.originalEvent.touches.length){return b.originalEvent.touches}else{if(b.originalEvent.changedTouches&&b.originalEvent.changedTouches.length){return b.originalEvent.changedTouches}}}if(!b.touches){b.touches=new Array();b.touches[0]=b.originalEvent!=undefined?b.originalEvent:b;if(b.originalEvent!=undefined&&b.pageX){b.touches[0]=b}if(b.type=="mousemove"){b.touches[0]=b}}return b.touches},getTouchEventName:function(b){if(this.isWindowsPhone()){var c=navigator.userAgent.toLowerCase();if(c.indexOf("windows phone 7")!=-1){if(b.toLowerCase().indexOf("start")!=-1){return"MSPointerDown"}if(b.toLowerCase().indexOf("move")!=-1){return"MSPointerMove"}if(b.toLowerCase().indexOf("end")!=-1){return"MSPointerUp"}}if(b.toLowerCase().indexOf("start")!=-1){return"pointerdown"}if(b.toLowerCase().indexOf("move")!=-1){return"pointermove"}if(b.toLowerCase().indexOf("end")!=-1){return"pointerup"}}else{return b}},dispatchMouseEvent:function(b,f,d){if(this.simulatetouches){return}var c=document.createEvent("MouseEvent");c.initMouseEvent(b,true,true,f.view,1,f.screenX,f.screenY,f.clientX,f.clientY,false,false,false,false,0,null);if(d!=null){d.dispatchEvent(c)}},getRootNode:function(b){while(b.nodeType!==1){b=b.parentNode}return b},setTouchScroll:function(b,c){if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[c]=b},touchScroll:function(A,L,V,G,w,m){if(A==null){return}var F=this;var e=0;var q=0;var f=0;var g=0;var s=0;var h=0;if(!this.scrolling){this.scrolling=[]}this.scrolling[G]=false;var j=false;var o=a(A);var P=["select","input","textarea"];var T=0;var I=0;if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[G]=true;var G=G;var t=this.getTouchEventName("touchstart")+".touchScroll";var C=this.getTouchEventName("touchend")+".touchScroll";var X=this.getTouchEventName("touchmove")+".touchScroll";var k,S,y,U,ad,O,W,c,E,Z,ab,d,v,u,Q,b,D,ac,n;O=L;ad=0;W=0;xoffset=0;initialOffset=0;initialXOffset=0;U=w.jqxScrollBar("max");n=325;function z(ag){if(ag.targetTouches&&(ag.targetTouches.length>=1)){return ag.targetTouches[0].clientY}else{if(ag.originalEvent&&ag.originalEvent.clientY!==undefined){return ag.originalEvent.clientY}else{var af=F.getTouches(ag);return af[0].clientY}}}function aa(ag){if(ag.targetTouches&&(ag.targetTouches.length>=1)){return ag.targetTouches[0].clientX}else{if(ag.originalEvent&&ag.originalEvent.clientX!==undefined){return ag.originalEvent.clientX}else{var af=F.getTouches(ag);return af[0].clientX}}}var H=function(){var ah,af,ai,ag;ah=Date.now();af=ah-v;v=ah;ai=W-d;xdelta=xoffset-xframe;d=W;xframe=xoffset;E=true;ag=1000*ai/(1+af);xv=1000*xdelta/(1+af);ab=0.8*ag+0.2*ab;xjqxAnimations=0.8*xv+0.2*xjqxAnimations};var B=false;var T=function(ag){if(!F.enableScrolling[G]){return true}if(a.inArray(ag.target.tagName.toLowerCase(),P)!==-1){return}W=m.jqxScrollBar("value");xoffset=w.jqxScrollBar("value");var ah=F.getTouches(ag);var ai=ah[0];if(ah.length==1){F.dispatchMouseEvent("mousedown",ai,F.getRootNode(ai.target))}U=w.jqxScrollBar("max");O=m.jqxScrollBar("max");function af(aj){B=false;E=true;c=z(aj);ac=aa(aj);ab=Q=xjqxAnimations=0;d=W;xframe=xoffset;v=Date.now();clearInterval(u);u=setInterval(H,100);initialOffset=W;initialXOffset=xoffset;if(W>0&&W<O&&m[0].style.visibility!="hidden"){}}af(ag);j=false;q=ai.pageY;s=ai.pageX;if(F.simulatetouches){if(ai._pageY!=undefined){q=ai._pageY;s=ai._pageX}}F.scrolling[G]=true;e=0;g=0;return true};if(o.on){o.on(t,T)}else{o.bind(t,T)}var Y=function(ag,af){W=(ag>O)?O:(ag<ad)?ad:ag;V(null,ag,0,0,af);return(ag>O)?"max":(ag<ad)?"min":"value"};var l=function(ag,af){xoffset=(ag>U)?U:(ag<ad)?ad:ag;V(ag,null,0,0,af);return(ag>U)?"max":(ag<ad)?"min":"value"};function R(){var af,ag;if(Q){af=Date.now()-v;ag=-Q*Math.exp(-af/n);if(ag>0.5||ag<-0.5){Y(b+ag);requestAnimationFrame(R)}else{Y(b)}}}function M(){var af,ag;if(Q){af=Date.now()-v;ag=-Q*Math.exp(-af/n);if(ag>0.5||ag<-0.5){l(D+ag);requestAnimationFrame(M)}else{l(D)}}}var x=function(af){if(!F.enableScrolling[G]){return true}if(!F.scrolling[G]){return true}if(B){af.preventDefault();af.stopPropagation()}var ak=F.getTouches(af);if(ak.length>1){return true}var ag=ak[0].pageY;var ai=ak[0].pageX;if(F.simulatetouches){if(ak[0]._pageY!=undefined){ag=ak[0]._pageY;ai=ak[0]._pageX}}var am=ag-q;var an=ai-s;I=ag;touchHorizontalEnd=ai;f=am-e;h=an-g;j=true;e=am;g=an;var ah=w!=null?w[0].style.visibility!="hidden":true;var al=m!=null?m[0].style.visibility!="hidden":true;function aj(aq){var at,ar,ap;if(E){at=z(aq);ap=aa(aq);ar=c-at;xdelta=ac-ap;var ao="value";if(ar>2||ar<-2){c=at;ao=Y(W+ar,aq);H();if(ao=="min"&&initialOffset===0){return true}if(ao=="max"&&initialOffset===O){return true}if(!al){return true}aq.preventDefault();aq.stopPropagation();B=true;return false}else{if(xdelta>2||xdelta<-2){ac=ap;ao=l(xoffset+xdelta,aq);H();if(ao=="min"&&initialXOffset===0){return true}if(ao=="max"&&initialXOffset===U){return true}if(!ah){return true}B=true;aq.preventDefault();aq.stopPropagation();return false}}aq.preventDefault()}}if(ah||al){if((ah)||(al)){aj(af)}}};if(o.on){o.on(X,x)}else{o.bind(X,x)}var r=function(ag){if(!F.enableScrolling[G]){return true}var ah=F.getTouches(ag)[0];if(!F.scrolling[G]){return true}E=false;clearInterval(u);if(ab>10||ab<-10){Q=0.8*ab;b=Math.round(W+Q);v=Date.now();requestAnimationFrame(R)}else{if(xjqxAnimations>10||xjqxAnimations<-10){Q=0.8*xjqxAnimations;D=Math.round(xoffset+Q);v=Date.now();requestAnimationFrame(M)}else{}}F.scrolling[G]=false;if(j){F.dispatchMouseEvent("mouseup",ah,ag.target)}else{var ah=F.getTouches(ag)[0],af=F.getRootNode(ah.target);F.dispatchMouseEvent("mouseup",ah,af);F.dispatchMouseEvent("click",ah,af);return true}};if(this.simulatetouches){var p=a(window).on!=undefined||a(window).bind;var N=function(af){try{r(af)}catch(ag){}F.scrolling[G]=false};a(window).on!=undefined?a(document).on("mouseup.touchScroll",N):a(document).bind("mouseup.touchScroll",N);if(window.frameElement){if(window.top!=null){var K=function(af){try{r(af)}catch(ag){}F.scrolling[G]=false};if(window.top.document){a(window.top.document).on?a(window.top.document).on("mouseup",K):a(window.top.document).bind("mouseup",K)}}}var ae=a(document).on!=undefined||a(document).bind;var J=function(af){if(!F.scrolling[G]){return true}F.scrolling[G]=false;var ah=F.getTouches(af)[0],ag=F.getRootNode(ah.target);F.dispatchMouseEvent("mouseup",ah,ag);F.dispatchMouseEvent("click",ah,ag)};a(document).on!=undefined?a(document).on("touchend",J):a(document).bind("touchend",J)}if(o.on){o.on("dragstart",function(af){af.preventDefault()});o.on("selectstart",function(af){af.preventDefault()})}o.on?o.on(C+" touchcancel.touchScroll",r):o.bind(C+" touchcancel.touchScroll",r)}});a.jqx.cookie=a.jqx.cookie||{};a.extend(a.jqx.cookie,{cookie:function(e,f,c){if(arguments.length>1&&String(f)!=="[object Object]"){c=a.extend({},c);if(f===null||f===undefined){c.expires=-1}if(typeof c.expires==="number"){var h=c.expires,d=c.expires=new Date();d.setDate(d.getDate()+h)}f=String(f);return(document.cookie=[encodeURIComponent(e),"=",c.raw?f:encodeURIComponent(f),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join(""))}c=f||{};var b,g=c.raw?function(j){return j}:decodeURIComponent;return(b=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?g(b[1]):null}});a.jqx.string=a.jqx.string||{};a.extend(a.jqx.string,{replace:function(f,d,e){if(d===e){return this}var b=f;var c=b.indexOf(d);while(c!=-1){b=b.replace(d,e);c=b.indexOf(d)}return b},contains:function(b,c){if(b==null||c==null){return false}return b.indexOf(c)!=-1},containsIgnoreCase:function(b,c){if(b==null||c==null){return false}return b.toString().toUpperCase().indexOf(c.toString().toUpperCase())!=-1},equals:function(b,c){if(b==null||c==null){return false}b=this.normalize(b);if(c.length==b.length){return b.slice(0,c.length)==c}return false},equalsIgnoreCase:function(b,c){if(b==null||c==null){return false}b=this.normalize(b);if(c.length==b.length){return b.toUpperCase().slice(0,c.length)==c.toUpperCase()}return false},startsWith:function(b,c){if(b==null||c==null){return false}return b.slice(0,c.length)==c},startsWithIgnoreCase:function(b,c){if(b==null||c==null){return false}return b.toUpperCase().slice(0,c.length)==c.toUpperCase()},normalize:function(b){if(b.charCodeAt(b.length-1)==65279){b=b.substring(0,b.length-1)}return b},endsWith:function(b,c){if(b==null||c==null){return false}b=this.normalize(b);return b.slice(-c.length)==c},endsWithIgnoreCase:function(b,c){if(b==null||c==null){return false}b=this.normalize(b);return b.toUpperCase().slice(-c.length)==c.toUpperCase()}});a.extend(a.easing,{easeOutBack:function(f,g,e,k,j,h){if(h==undefined){h=1.70158}return k*((g=g/j-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,j,h){return j*(g/=h)*g+e},easeInOutCirc:function(f,g,e,j,h){if((g/=h/2)<1){return -j/2*(Math.sqrt(1-g*g)-1)+e}return j/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,j,h){return -j/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,j,h){return j*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,j,h){return j*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,j,h){if((g/=h/2)<1){return j/2*g*g*g+e}return j/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,j,h){return -j*Math.cos(g/h*(Math.PI/2))+j+e},easeOutSine:function(f,g,e,j,h){return j*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,j,h){return -j/2*(Math.cos(Math.PI*g/h)-1)+e}})})(jqxBaseFramework);(function(b){if(b.event&&b.event.special){b.extend(b.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(b.fn.extend){b.fn.extend({ischildof:function(g){if(!b(this).parents){var c=g.element.contains(this.element);return c}var e=b(this).parents().get();for(var d=0;d<e.length;d++){if(typeof g!="string"){var f=e[d];if(g!==undefined){if(f==g[0]){return true}}}else{if(g!==undefined){if(b(e[d]).is(g)){return true}}}}return false}})}b.fn.jqxProxy=function(){var e=b(this).data().jqxWidget;var c=Array.prototype.slice.call(arguments,0);var d=e.element;if(!d){d=e.base.element}return b.jqx.jqxWidgetProxy(e.widgetName,d,c)};var a=this.originalVal=b.fn.val;b.fn.val=function(d){if(typeof d=="undefined"){if(b(this).hasClass("jqx-widget")){var c=b(this).data().jqxWidget;if(c&&c.val){return c.val()}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var c=b(this).find(".jqx-widget").data().jqxWidget;if(c&&c.val){return c.val()}}return a.call(this)}else{if(b(this).hasClass("jqx-widget")){var c=b(this).data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var c=b(this).find(".jqx-widget").data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}return a.call(this,d)}};if(b.fn.modal&&b.fn.modal.Constructor){b.fn.modal.Constructor.prototype.enforceFocus=function(){b(document).off("focusin.bs.modal").on("focusin.bs.modal",b.proxy(function(c){if(this.$element[0]!==c.target&&!this.$element.has(c.target).length){if(b(c.target).parents().hasClass("jqx-popup")){return true}this.$element.trigger("focus")}},this))}}b.fn.coord=function(o){var e,k,j={top:0,left:0},f=this[0],m=f&&f.ownerDocument;if(!m){return}e=m.documentElement;if(!b.contains(e,f)){return j}if(typeof f.getBoundingClientRect!==undefined){j=f.getBoundingClientRect()}var d=function(p){return b.isWindow(p)?p:p.nodeType===9?p.defaultView||p.parentWindow:false};k=d(m);var h=0;var c=0;var g=navigator.userAgent.toLowerCase();var n=g.indexOf("ipad")!=-1||g.indexOf("iphone")!=-1;if(n){h=2}if(true==o){if(document.body.style.position!="static"&&document.body.style.position!=""){var l=b(document.body).coord();h=-l.left;c=-l.top}}return{top:c+j.top+(k.pageYOffset||e.scrollTop)-(e.clientTop||0),left:h+j.left+(k.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};b.jqx.ripplers=[];b.jqx.ripple=function(f,e,o){if(!e){e=f}var h=b(f);var j=false;h.append("<span class='ink'></span>");var p=h.find(".ink");var c=false;for(var g=0;g<b.jqx.ripplers.length;g++){var k=b.jqx.ripplers[g];if(k.element[0]===f[0]){c=true;break}}if(!c){b.jqx.ripplers.push({ink:p,element:f,hostElement:e,hostElementType:o})}if(o==="checkbox"||o==="radiobutton"){if(!p.height()&&!p.width()){var l=Math.max(h.outerWidth(),h.outerHeight());p.css({height:l,width:l})}var n=h.width()/2-p.width()/2;var m=h.height()/2-p.height()/2;p.css({top:m+"px",left:n+"px"})}if(b.jqx.ripplers.length===1){b(document).on("mouseup",function(r){b.jqx.ripple.mouseCaptured=false;for(var q=0;q<b.jqx.ripplers.length;q++){var d=b.jqx.ripplers[q];d.ink.removeClass("active");d.element.removeClass("active");if(o!=="checkbox"&&o!=="radiobutton"){if(d.ink.hasClass("animate")){d.ink.removeClass("animate")}}}})}e.off("mousedown.ripple");e.on("mousedown.ripple",function(q){var d=b(f);b.jqx.ripple.mouseCaptured=true;setTimeout(function(){if(d.find(".ink").length==0){d.append("<span class='ink'></span>")}var s=d.find(".ink");s.removeClass("animate");if(!s.height()&&!s.width()){var t=Math.max(d.outerWidth(),d.outerHeight());s.css({height:t,width:t})}if(o==="checkbox"||o==="radiobutton"){if(o==="checkbox"){if(e.jqxCheckBox("disabled")){return}}if(o==="radiobutton"){if(e.jqxRadioButton("disabled")){return}}var r=d.width()/2-s.width()/2;var u=d.height()/2-s.height()/2;s.css({top:u+"px",left:r+"px"}).addClass("animate");s.on("animationend",function(){if(b.jqx.ripple.mouseCaptured){s.removeClass("animate");s.addClass("active");f.addClass("active")}});return}var r=q.pageX-d.offset().left-s.width()/2;var u=q.pageY-d.offset().top-s.height()/2;s.css({top:u+"px",left:r+"px"}).addClass("animate")})})}})(jqxBaseFramework);
+(function(co,bN){var ct,bG,ch,bw,bS,b6,bJ,bM,bI,cf,bF=true,b0="undefined",cv=("sizcache"+Math.random()).replace(".",""),bA=String,bE=co.document,bH=bE.documentElement,bX=0,bL=0,ca=[].pop,cs=[].push,bR=[].slice,bU=[].indexOf||function(cF){var cE=0,cD=this.length;for(;cE<cD;cE++){if(this[cE]===cF){return cE}}return -1},cx=function(cD,cE){cD[cv]=cE==null||cE;return cD},cB=function(){var cD={},cE=[];return cx(function(cF,cG){if(cE.push(cF)>ch.cacheLength){delete cD[cE.shift()]}return(cD[cF+" "]=cG)},cD)},cq=cB(),cr=cB(),bT=cB(),b4="[\\x20\\t\\r\\n\\f]",bQ="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",bO=bQ.replace("w","w#"),cA="([*^$|!~]?=)",cl="\\["+b4+"*("+bQ+")"+b4+"*(?:"+cA+b4+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bO+")|)|)"+b4+"*\\]",cC=":("+bQ+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+cl+")|[^:]|\\\\.)*|.*))\\)|)",b5=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+b4+"*((?:-\\d)?\\d*)"+b4+"*\\)|)(?=[^-]|$)",cp=new RegExp("^"+b4+"+|((?:^|[^\\\\])(?:\\\\.)*)"+b4+"+$","g"),bB=new RegExp("^"+b4+"*,"+b4+"*"),cd=new RegExp("^"+b4+"*([\\x20\\t\\r\\n\\f>+~])"+b4+"*"),ci=new RegExp(cC),ck=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,b9=/^:not/,cn=/[\x20\t\r\n\f]*[+~]/,cw=/:not\($/,bY=/h\d/i,cj=/input|select|textarea|button/i,bZ=/\\(?!\\)/g,cc={ID:new RegExp("^#("+bQ+")"),CLASS:new RegExp("^\\.("+bQ+")"),NAME:new RegExp("^\\[name=['\"]?("+bQ+")['\"]?\\]"),TAG:new RegExp("^("+bQ.replace("w","w*")+")"),ATTR:new RegExp("^"+cl),PSEUDO:new RegExp("^"+cC),POS:new RegExp(b5,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+b4+"*(even|odd|(([+-]|)(\\d*)n|)"+b4+"*(?:([+-]|)"+b4+"*(\\d+)|))"+b4+"*\\)|)","i"),needsContext:new RegExp("^"+b4+"*[>+~]|"+b5,"i")},cg=function(cD){var cF=bE.createElement("div");try{return cD(cF)}catch(cE){return false}finally{cF=null}},bD=cg(function(cD){cD.appendChild(bE.createComment(""));return !cD.getElementsByTagName("*").length}),b8=cg(function(cD){cD.innerHTML="<a href='#'></a>";return cD.firstChild&&typeof cD.firstChild.getAttribute!==b0&&cD.firstChild.getAttribute("href")==="#"}),bW=cg(function(cE){cE.innerHTML="<select></select>";var cD=typeof cE.lastChild.getAttribute("multiple");return cD!=="boolean"&&cD!=="string"}),b7=cg(function(cD){cD.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!cD.getElementsByClassName||!cD.getElementsByClassName("e").length){return false}cD.lastChild.className="e";return cD.getElementsByClassName("e").length===2}),bv=cg(function(cE){cE.id=cv+0;cE.innerHTML="<a name='"+cv+"'></a><div name='"+cv+"'></div>";bH.insertBefore(cE,bH.firstChild);var cD=bE.getElementsByName&&bE.getElementsByName(cv).length===2+bE.getElementsByName(cv+0).length;bG=!bE.getElementById(cv);bH.removeChild(cE);return cD});try{bR.call(bH.childNodes,0)[0].nodeType}catch(cz){bR=function(cE){var cF,cD=[];for(;(cF=this[cE]);cE++){cD.push(cF)}return cD}}function cm(cG,cD,cI,cL){cI=cI||[];cD=cD||bE;var cJ,cE,cK,cF,cH=cD.nodeType;if(!cG||typeof cG!=="string"){return cI}if(cH!==1&&cH!==9){return[]}cK=bS(cD);if(!cK&&!cL){if((cJ=ck.exec(cG))){if((cF=cJ[1])){if(cH===9){cE=cD.getElementById(cF);if(cE&&cE.parentNode){if(cE.id===cF){cI.push(cE);return cI}}else{return cI}}else{if(cD.ownerDocument&&(cE=cD.ownerDocument.getElementById(cF))&&b6(cD,cE)&&cE.id===cF){cI.push(cE);return cI}}}else{if(cJ[2]){cs.apply(cI,bR.call(cD.getElementsByTagName(cG),0));return cI}else{if((cF=cJ[3])&&b7&&cD.getElementsByClassName){cs.apply(cI,bR.call(cD.getElementsByClassName(cF),0));return cI}}}}}return cu(cG.replace(cp,"$1"),cD,cI,cL,cK)}cm.matches=function(cE,cD){return cm(cE,null,null,cD)};cm.matchesSelector=function(cD,cE){return cm(cE,null,null,[cD]).length>0};function ce(cD){return function(cF){var cE=cF.nodeName.toLowerCase();return cE==="input"&&cF.type===cD}}function bz(cD){return function(cF){var cE=cF.nodeName.toLowerCase();return(cE==="input"||cE==="button")&&cF.type===cD}}function cb(cD){return cx(function(cE){cE=+cE;return cx(function(cF,cJ){var cH,cG=cD([],cF.length,cE),cI=cG.length;while(cI--){if(cF[(cH=cG[cI])]){cF[cH]=!(cJ[cH]=cF[cH])}}})})}bw=cm.getText=function(cH){var cG,cE="",cF=0,cD=cH.nodeType;if(cD){if(cD===1||cD===9||cD===11){if(typeof cH.textContent==="string"){return cH.textContent}else{for(cH=cH.firstChild;cH;cH=cH.nextSibling){cE+=bw(cH)}}}else{if(cD===3||cD===4){return cH.nodeValue}}}else{for(;(cG=cH[cF]);cF++){cE+=bw(cG)}}return cE};bS=cm.isXML=function(cD){var cE=cD&&(cD.ownerDocument||cD).documentElement;return cE?cE.nodeName!=="HTML":false};b6=cm.contains=bH.contains?function(cE,cD){var cG=cE.nodeType===9?cE.documentElement:cE,cF=cD&&cD.parentNode;return cE===cF||!!(cF&&cF.nodeType===1&&cG.contains&&cG.contains(cF))}:bH.compareDocumentPosition?function(cE,cD){return cD&&!!(cE.compareDocumentPosition(cD)&16)}:function(cE,cD){while((cD=cD.parentNode)){if(cD===cE){return true}}return false};cm.attr=function(cF,cE){var cG,cD=bS(cF);if(!cD){cE=cE.toLowerCase()}if((cG=ch.attrHandle[cE])){return cG(cF)}if(cD||bW){return cF.getAttribute(cE)}cG=cF.getAttributeNode(cE);return cG?typeof cF[cE]==="boolean"?cF[cE]?cE:null:cG.specified?cG.value:null:null};ch=cm.selectors={cacheLength:50,createPseudo:cx,match:cc,attrHandle:b8?{}:{href:function(cD){return cD.getAttribute("href",2)},type:function(cD){return cD.getAttribute("type")}},find:{ID:bG?function(cG,cF,cE){if(typeof cF.getElementById!==b0&&!cE){var cD=cF.getElementById(cG);return cD&&cD.parentNode?[cD]:[]}}:function(cG,cF,cE){if(typeof cF.getElementById!==b0&&!cE){var cD=cF.getElementById(cG);return cD?cD.id===cG||typeof cD.getAttributeNode!==b0&&cD.getAttributeNode("id").value===cG?[cD]:bN:[]}},TAG:bD?function(cD,cE){if(typeof cE.getElementsByTagName!==b0){return cE.getElementsByTagName(cD)}}:function(cD,cH){var cG=cH.getElementsByTagName(cD);if(cD==="*"){var cI,cF=[],cE=0;for(;(cI=cG[cE]);cE++){if(cI.nodeType===1){cF.push(cI)}}return cF}return cG},NAME:bv&&function(cD,cE){if(typeof cE.getElementsByName!==b0){return cE.getElementsByName(name)}},CLASS:b7&&function(cF,cE,cD){if(typeof cE.getElementsByClassName!==b0&&!cD){return cE.getElementsByClassName(cF)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(cD){cD[1]=cD[1].replace(bZ,"");cD[3]=(cD[4]||cD[5]||"").replace(bZ,"");if(cD[2]==="~="){cD[3]=" "+cD[3]+" "}return cD.slice(0,4)},CHILD:function(cD){cD[1]=cD[1].toLowerCase();if(cD[1]==="nth"){if(!cD[2]){cm.error(cD[0])}cD[3]=+(cD[3]?cD[4]+(cD[5]||1):2*(cD[2]==="even"||cD[2]==="odd"));cD[4]=+((cD[6]+cD[7])||cD[2]==="odd")}else{if(cD[2]){cm.error(cD[0])}}return cD},PSEUDO:function(cE){var cF,cD;if(cc.CHILD.test(cE[0])){return null}if(cE[3]){cE[2]=cE[3]}else{if((cF=cE[4])){if(ci.test(cF)&&(cD=bx(cF,true))&&(cD=cF.indexOf(")",cF.length-cD)-cF.length)){cF=cF.slice(0,cD);cE[0]=cE[0].slice(0,cD)}cE[2]=cF}}return cE.slice(0,3)}},filter:{ID:bG?function(cD){cD=cD.replace(bZ,"");return function(cE){return cE.getAttribute("id")===cD}}:function(cD){cD=cD.replace(bZ,"");return function(cF){var cE=typeof cF.getAttributeNode!==b0&&cF.getAttributeNode("id");return cE&&cE.value===cD}},TAG:function(cD){if(cD==="*"){return function(){return true}}cD=cD.replace(bZ,"").toLowerCase();return function(cE){return cE.nodeName&&cE.nodeName.toLowerCase()===cD}},CLASS:function(cD){var cE=cq[cv][cD+" "];return cE||(cE=new RegExp("(^|"+b4+")"+cD+"("+b4+"|$)"))&&cq(cD,function(cF){return cE.test(cF.className||(typeof cF.getAttribute!==b0&&cF.getAttribute("class"))||"")})},ATTR:function(cF,cE,cD){return function(cI,cH){var cG=cm.attr(cI,cF);if(cG==null){return cE==="!="}if(!cE){return true}cG+="";return cE==="="?cG===cD:cE==="!="?cG!==cD:cE==="^="?cD&&cG.indexOf(cD)===0:cE==="*="?cD&&cG.indexOf(cD)>-1:cE==="$="?cD&&cG.substr(cG.length-cD.length)===cD:cE==="~="?(" "+cG+" ").indexOf(cD)>-1:cE==="|="?cG===cD||cG.substr(0,cD.length+1)===cD+"-":false}},CHILD:function(cD,cF,cG,cE){if(cD==="nth"){return function(cJ){var cI,cK,cH=cJ.parentNode;if(cG===1&&cE===0){return true}if(cH){cK=0;for(cI=cH.firstChild;cI;cI=cI.nextSibling){if(cI.nodeType===1){cK++;if(cJ===cI){break}}}}cK-=cE;return cK===cG||(cK%cG===0&&cK/cG>=0)}}return function(cI){var cH=cI;switch(cD){case"only":case"first":while((cH=cH.previousSibling)){if(cH.nodeType===1){return false}}if(cD==="first"){return true}cH=cI;case"last":while((cH=cH.nextSibling)){if(cH.nodeType===1){return false}}return true}}},PSEUDO:function(cG,cF){var cD,cE=ch.pseudos[cG]||ch.setFilters[cG.toLowerCase()]||cm.error("unsupported pseudo: "+cG);if(cE[cv]){return cE(cF)}if(cE.length>1){cD=[cG,cG,"",cF];return ch.setFilters.hasOwnProperty(cG.toLowerCase())?cx(function(cJ,cL){var cI,cH=cE(cJ,cF),cK=cH.length;while(cK--){cI=bU.call(cJ,cH[cK]);cJ[cI]=!(cL[cI]=cH[cK])}}):function(cH){return cE(cH,0,cD)}}return cE}},pseudos:{not:cx(function(cD){var cE=[],cF=[],cG=bJ(cD.replace(cp,"$1"));return cG[cv]?cx(function(cI,cN,cL,cJ){var cM,cH=cG(cI,null,cJ,[]),cK=cI.length;while(cK--){if((cM=cH[cK])){cI[cK]=!(cN[cK]=cM)}}}):function(cJ,cI,cH){cE[0]=cJ;cG(cE,null,cH,cF);return !cF.pop()}}),has:cx(function(cD){return function(cE){return cm(cD,cE).length>0}}),contains:cx(function(cD){return function(cE){return(cE.textContent||cE.innerText||bw(cE)).indexOf(cD)>-1}}),enabled:function(cD){return cD.disabled===false},disabled:function(cD){return cD.disabled===true},checked:function(cD){var cE=cD.nodeName.toLowerCase();return(cE==="input"&&!!cD.checked)||(cE==="option"&&!!cD.selected)},selected:function(cD){if(cD.parentNode){cD.parentNode.selectedIndex}return cD.selected===true},parent:function(cD){return !ch.pseudos.empty(cD)},empty:function(cE){var cD;cE=cE.firstChild;while(cE){if(cE.nodeName>"@"||(cD=cE.nodeType)===3||cD===4){return false}cE=cE.nextSibling}return true},header:function(cD){return bY.test(cD.nodeName)},text:function(cF){var cE,cD;return cF.nodeName.toLowerCase()==="input"&&(cE=cF.type)==="text"&&((cD=cF.getAttribute("type"))==null||cD.toLowerCase()===cE)},radio:ce("radio"),checkbox:ce("checkbox"),file:ce("file"),password:ce("password"),image:ce("image"),submit:bz("submit"),reset:bz("reset"),button:function(cE){var cD=cE.nodeName.toLowerCase();return cD==="input"&&cE.type==="button"||cD==="button"},input:function(cD){return cj.test(cD.nodeName)},focus:function(cD){var cE=cD.ownerDocument;return cD===cE.activeElement&&(!cE.hasFocus||cE.hasFocus())&&!!(cD.type||cD.href||~cD.tabIndex)},active:function(cD){return cD===cD.ownerDocument.activeElement},first:cb(function(){return[0]}),last:cb(function(cD,cE){return[cE-1]}),eq:cb(function(cD,cF,cE){return[cE<0?cE+cF:cE]}),even:cb(function(cD,cF){for(var cE=0;cE<cF;cE+=2){cD.push(cE)}return cD}),odd:cb(function(cD,cF){for(var cE=1;cE<cF;cE+=2){cD.push(cE)}return cD}),lt:cb(function(cD,cG,cF){for(var cE=cF<0?cF+cG:cF;--cE>=0;){cD.push(cE)}return cD}),gt:cb(function(cD,cG,cF){for(var cE=cF<0?cF+cG:cF;++cE<cG;){cD.push(cE)}return cD})}};function by(cE,cD,cF){if(cE===cD){return cF}var cG=cE.nextSibling;while(cG){if(cG===cD){return -1}cG=cG.nextSibling}return 1}bM=bH.compareDocumentPosition?function(cE,cD){if(cE===cD){bI=true;return 0}return(!cE.compareDocumentPosition||!cD.compareDocumentPosition?cE.compareDocumentPosition:cE.compareDocumentPosition(cD)&4)?-1:1}:function(cL,cK){if(cL===cK){bI=true;return 0}else{if(cL.sourceIndex&&cK.sourceIndex){return cL.sourceIndex-cK.sourceIndex}}var cI,cE,cF=[],cD=[],cH=cL.parentNode,cJ=cK.parentNode,cM=cH;if(cH===cJ){return by(cL,cK)}else{if(!cH){return -1}else{if(!cJ){return 1}}}while(cM){cF.unshift(cM);cM=cM.parentNode}cM=cJ;while(cM){cD.unshift(cM);cM=cM.parentNode}cI=cF.length;cE=cD.length;for(var cG=0;cG<cI&&cG<cE;cG++){if(cF[cG]!==cD[cG]){return by(cF[cG],cD[cG])}}return cG===cI?by(cL,cD[cG],-1):by(cF[cG],cK,1)};[0,0].sort(bM);bF=!bI;cm.uniqueSort=function(cF){var cG,cH=[],cE=1,cD=0;bI=bF;cF.sort(bM);if(bI){for(;(cG=cF[cE]);cE++){if(cG===cF[cE-1]){cD=cH.push(cE)}}while(cD--){cF.splice(cH[cD],1)}}return cF};cm.error=function(cD){throw new Error("Syntax error, unrecognized expression: "+cD)};function bx(cH,cM){var cE,cI,cK,cL,cJ,cF,cD,cG=cr[cv][cH+" "];if(cG){return cM?0:cG.slice(0)}cJ=cH;cF=[];cD=ch.preFilter;while(cJ){if(!cE||(cI=bB.exec(cJ))){if(cI){cJ=cJ.slice(cI[0].length)||cJ}cF.push(cK=[])}cE=false;if((cI=cd.exec(cJ))){cK.push(cE=new bA(cI.shift()));cJ=cJ.slice(cE.length);cE.type=cI[0].replace(cp," ")}for(cL in ch.filter){if((cI=cc[cL].exec(cJ))&&(!cD[cL]||(cI=cD[cL](cI)))){cK.push(cE=new bA(cI.shift()));cJ=cJ.slice(cE.length);cE.type=cL;cE.matches=cI}}if(!cE){break}}return cM?cJ.length:cJ?cm.error(cH):cr(cH,cF).slice(0)}function b2(cH,cF,cG){var cD=cF.dir,cI=cG&&cF.dir==="parentNode",cE=bL++;return cF.first?function(cL,cK,cJ){while((cL=cL[cD])){if(cI||cL.nodeType===1){return cH(cL,cK,cJ)}}}:function(cM,cL,cK){if(!cK){var cJ,cN=bX+" "+cE+" ",cO=cN+ct;while((cM=cM[cD])){if(cI||cM.nodeType===1){if((cJ=cM[cv])===cO){return cM.sizset}else{if(typeof cJ==="string"&&cJ.indexOf(cN)===0){if(cM.sizset){return cM}}else{cM[cv]=cO;if(cH(cM,cL,cK)){cM.sizset=true;return cM}cM.sizset=false}}}}}else{while((cM=cM[cD])){if(cI||cM.nodeType===1){if(cH(cM,cL,cK)){return cM}}}}}}function bK(cD){return cD.length>1?function(cH,cG,cE){var cF=cD.length;while(cF--){if(!cD[cF](cH,cG,cE)){return false}}return true}:cD[0]}function b1(cD,cE,cF,cG,cJ){var cH,cM=[],cI=0,cK=cD.length,cL=cE!=null;for(;cI<cK;cI++){if((cH=cD[cI])){if(!cF||cF(cH,cG,cJ)){cM.push(cH);if(cL){cE.push(cI)}}}}return cM}function cy(cF,cE,cH,cG,cI,cD){if(cG&&!cG[cv]){cG=cy(cG)}if(cI&&!cI[cv]){cI=cy(cI,cD)}return cx(function(cT,cQ,cL,cS){var cV,cR,cN,cM=[],cU=[],cK=cQ.length,cJ=cT||bV(cE||"*",cL.nodeType?[cL]:cL,[]),cO=cF&&(cT||!cE)?b1(cJ,cM,cF,cL,cS):cJ,cP=cH?cI||(cT?cF:cK||cG)?[]:cQ:cO;if(cH){cH(cO,cP,cL,cS)}if(cG){cV=b1(cP,cU);cG(cV,[],cL,cS);cR=cV.length;while(cR--){if((cN=cV[cR])){cP[cU[cR]]=!(cO[cU[cR]]=cN)}}}if(cT){if(cI||cF){if(cI){cV=[];cR=cP.length;while(cR--){if((cN=cP[cR])){cV.push((cO[cR]=cN))}}cI(null,(cP=[]),cV,cS)}cR=cP.length;while(cR--){if((cN=cP[cR])&&(cV=cI?bU.call(cT,cN):cM[cR])>-1){cT[cV]=!(cQ[cV]=cN)}}}}else{cP=b1(cP===cQ?cP.splice(cK,cP.length):cP);if(cI){cI(null,cQ,cP,cS)}else{cs.apply(cQ,cP)}}})}function b3(cJ){var cE,cH,cF,cI=cJ.length,cM=ch.relative[cJ[0].type],cN=cM||ch.relative[" "],cG=cM?1:0,cK=b2(function(cO){return cO===cE},cN,true),cL=b2(function(cO){return bU.call(cE,cO)>-1},cN,true),cD=[function(cQ,cP,cO){return(!cM&&(cO||cP!==cf))||((cE=cP).nodeType?cK(cQ,cP,cO):cL(cQ,cP,cO))}];for(;cG<cI;cG++){if((cH=ch.relative[cJ[cG].type])){cD=[b2(bK(cD),cH)]}else{cH=ch.filter[cJ[cG].type].apply(null,cJ[cG].matches);if(cH[cv]){cF=++cG;for(;cF<cI;cF++){if(ch.relative[cJ[cF].type]){break}}return cy(cG>1&&bK(cD),cG>1&&cJ.slice(0,cG-1).join("").replace(cp,"$1"),cH,cG<cF&&b3(cJ.slice(cG,cF)),cF<cI&&b3((cJ=cJ.slice(cF))),cF<cI&&cJ.join(""))}cD.push(cH)}}return bK(cD)}function bC(cG,cF){var cD=cF.length>0,cH=cG.length>0,cE=function(cR,cL,cQ,cP,cX){var cM,cN,cS,cW=[],cV=0,cO="0",cI=cR&&[],cT=cX!=null,cU=cf,cK=cR||cH&&ch.find.TAG("*",cX&&cL.parentNode||cL),cJ=(bX+=cU==null?1:Math.E);if(cT){cf=cL!==bE&&cL;ct=cE.el}for(;(cM=cK[cO])!=null;cO++){if(cH&&cM){for(cN=0;(cS=cG[cN]);cN++){if(cS(cM,cL,cQ)){cP.push(cM);break}}if(cT){bX=cJ;ct=++cE.el}}if(cD){if((cM=!cS&&cM)){cV--}if(cR){cI.push(cM)}}}cV+=cO;if(cD&&cO!==cV){for(cN=0;(cS=cF[cN]);cN++){cS(cI,cW,cL,cQ)}if(cR){if(cV>0){while(cO--){if(!(cI[cO]||cW[cO])){cW[cO]=ca.call(cP)}}}cW=b1(cW)}cs.apply(cP,cW);if(cT&&!cR&&cW.length>0&&(cV+cF.length)>1){cm.uniqueSort(cP)}}if(cT){bX=cJ;cf=cU}return cI};cE.el=0;return cD?cx(cE):cE}bJ=cm.compile=function(cD,cI){var cF,cE=[],cH=[],cG=bT[cv][cD+" "];if(!cG){if(!cI){cI=bx(cD)}cF=cI.length;while(cF--){cG=b3(cI[cF]);if(cG[cv]){cE.push(cG)}else{cH.push(cG)}}cG=bT(cD,bC(cH,cE))}return cG};function bV(cE,cH,cG){var cF=0,cD=cH.length;for(;cF<cD;cF++){cm(cE,cH[cF],cG)}return cG}function cu(cF,cD,cH,cL,cK){var cI,cO,cE,cN,cM,cJ=bx(cF),cG=cJ.length;if(!cL){if(cJ.length===1){cO=cJ[0]=cJ[0].slice(0);if(cO.length>2&&(cE=cO[0]).type==="ID"&&cD.nodeType===9&&!cK&&ch.relative[cO[1].type]){cD=ch.find.ID(cE.matches[0].replace(bZ,""),cD,cK)[0];if(!cD){return cH}cF=cF.slice(cO.shift().length)}for(cI=cc.POS.test(cF)?-1:cO.length-1;cI>=0;cI--){cE=cO[cI];if(ch.relative[(cN=cE.type)]){break}if((cM=ch.find[cN])){if((cL=cM(cE.matches[0].replace(bZ,""),cn.test(cO[0].type)&&cD.parentNode||cD,cK))){cO.splice(cI,1);cF=cL.length&&cO.join("");if(!cF){cs.apply(cH,bR.call(cL,0));return cH}break}}}}}bJ(cF,cJ)(cL,cD,cK,cH,cn.test(cF));return cH}if(bE.querySelectorAll){(function(){var cI,cJ=cu,cH=/'|\\/g,cF=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cE=[":focus"],cD=[":active"],cG=bH.matchesSelector||bH.mozMatchesSelector||bH.webkitMatchesSelector||bH.oMatchesSelector||bH.msMatchesSelector;cg(function(cK){cK.innerHTML="<select><option selected=''></option></select>";if(!cK.querySelectorAll("[selected]").length){cE.push("\\["+b4+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!cK.querySelectorAll(":checked").length){cE.push(":checked")}});cg(function(cK){cK.innerHTML="<p test=''></p>";if(cK.querySelectorAll("[test^='']").length){cE.push("[*^$]="+b4+"*(?:\"\"|'')")}cK.innerHTML="<input type='hidden'/>";if(!cK.querySelectorAll(":enabled").length){cE.push(":enabled",":disabled")}});cE=new RegExp(cE.join("|"));cu=function(cQ,cL,cS,cV,cU){if(!cV&&!cU&&!cE.test(cQ)){var cO,cT,cN=true,cK=cv,cM=cL,cR=cL.nodeType===9&&cQ;if(cL.nodeType===1&&cL.nodeName.toLowerCase()!=="object"){cO=bx(cQ);if((cN=cL.getAttribute("id"))){cK=cN.replace(cH,"\\$&")}else{cL.setAttribute("id",cK)}cK="[id='"+cK+"'] ";cT=cO.length;while(cT--){cO[cT]=cK+cO[cT].join("")}cM=cn.test(cQ)&&cL.parentNode||cL;cR=cO.join(",")}if(cR){try{cs.apply(cS,bR.call(cM.querySelectorAll(cR),0));return cS}catch(cP){}finally{if(!cN){cL.removeAttribute("id")}}}}return cJ(cQ,cL,cS,cV,cU)};if(cG){cg(function(cL){cI=cG.call(cL,"div");try{cG.call(cL,"[test!='']:sizzle");cD.push("!=",cC)}catch(cK){}});cD=new RegExp(cD.join("|"));cm.matchesSelector=function(cL,cN){cN=cN.replace(cF,"='$1']");if(!bS(cL)&&!cD.test(cN)&&!cE.test(cN)){try{var cK=cG.call(cL,cN);if(cK||cI||cL.document&&cL.document.nodeType!==11){return cK}}catch(cM){}}return cm(cN,null,null,[cL]).length>0}}})()}ch.pseudos.nth=ch.pseudos.eq;function bP(){}ch.filters=bP.prototype=ch.pseudos;ch.setFilters=new bP();cm.attr=D.attr;D.find=cm;D.expr=cm.selectors;D.expr[":"]=D.expr.pseudos;D.unique=cm.uniqueSort;D.text=cm.getText;D.isXMLDoc=cm.isXML;D.contains=cm.contains})(be);var V=/Until$/,ah=/^(?:parents|prev(?:Until|All))/,br=/^.[^:#\[\.,]*$/,aR=D.expr.match.needsContext,ap={children:true,contents:true,next:true,prev:true};D.fn.extend({find:function(bv){var bz,bw,bB,bC,bA,by,bx=this;if(typeof bv!=="string"){return D(bv).filter(function(){for(bz=0,bw=bx.length;bz<bw;bz++){if(D.contains(bx[bz],this)){return true}}})}by=this.pushStack("","find",bv);for(bz=0,bw=this.length;bz<bw;bz++){bB=by.length;D.find(bv,this[bz],by);if(bz>0){for(bC=bB;bC<by.length;bC++){for(bA=0;bA<bB;bA++){if(by[bA]===by[bC]){by.splice(bC--,1);break}}}}}return by},has:function(by){var bx,bw=D(by,this),bv=bw.length;return this.filter(function(){for(bx=0;bx<bv;bx++){if(D.contains(this,bw[bx])){return true}}})},not:function(bv){return this.pushStack(aA(this,bv,false),"not",bv)},filter:function(bv){return this.pushStack(aA(this,bv,true),"filter",bv)},is:function(bv){return !!bv&&(typeof bv==="string"?aR.test(bv)?D(bv,this.context).index(this[0])>=0:D.filter(bv,this).length>0:this.filter(bv).length>0)},closest:function(bz,by){var bA,bx=0,bv=this.length,bw=[],bB=aR.test(bz)||typeof bz!=="string"?D(bz,by||this.context):0;for(;bx<bv;bx++){bA=this[bx];while(bA&&bA.ownerDocument&&bA!==by&&bA.nodeType!==11){if(bB?bB.index(bA)>-1:D.find.matchesSelector(bA,bz)){bw.push(bA);break}bA=bA.parentNode}}bw=bw.length>1?D.unique(bw):bw;return this.pushStack(bw,"closest",bz)},index:function(bv){if(!bv){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof bv==="string"){return D.inArray(this[0],D(bv))}return D.inArray(bv.jqx?bv[0]:bv,this)},add:function(bv,bw){var by=typeof bv==="string"?D(bv,bw):D.makeArray(bv&&bv.nodeType?[bv]:bv),bx=D.merge(this.get(),by);return this.pushStack(y(by[0])||y(bx[0])?bx:D.unique(bx))},addBack:function(bv){return this.add(bv==null?this.prevObject:this.prevObject.filter(bv))}});D.fn.andSelf=D.fn.addBack;function y(bv){return !bv||!bv.parentNode||bv.parentNode.nodeType===11}function aC(bw,bv){do{bw=bw[bv]}while(bw&&bw.nodeType!==1);return bw}D.each({parent:function(bw){var bv=bw.parentNode;return bv&&bv.nodeType!==11?bv:null},parents:function(bv){return D.dir(bv,"parentNode")},parentsUntil:function(bw,bv,bx){return D.dir(bw,"parentNode",bx)},next:function(bv){return aC(bv,"nextSibling")},prev:function(bv){return aC(bv,"previousSibling")},nextAll:function(bv){return D.dir(bv,"nextSibling")},prevAll:function(bv){return D.dir(bv,"previousSibling")},nextUntil:function(bw,bv,bx){return D.dir(bw,"nextSibling",bx)},prevUntil:function(bw,bv,bx){return D.dir(bw,"previousSibling",bx)},siblings:function(bv){return D.sibling((bv.parentNode||{}).firstChild,bv)},children:function(bv){return D.sibling(bv.firstChild)},contents:function(bv){return D.nodeName(bv,"iframe")?bv.contentDocument||bv.contentWindow.document:D.merge([],bv.childNodes)}},function(bv,bw){D.fn[bv]=function(bz,bx){var by=D.map(this,bw,bz);if(!V.test(bv)){bx=bz}if(bx&&typeof bx==="string"){by=D.filter(bx,by)}by=this.length>1&&!ap[bv]?D.unique(by):by;if(this.length>1&&ah.test(bv)){by=by.reverse()}return this.pushStack(by,bv,aE.call(arguments).join(","))}});D.extend({filter:function(bx,bv,bw){if(bw){bx=":not("+bx+")"}return bv.length===1?D.find.matchesSelector(bv[0],bx)?[bv[0]]:[]:D.find.matches(bx,bv)},dir:function(bx,bw,bz){var bv=[],by=bx[bw];while(by&&by.nodeType!==9&&(bz===H||by.nodeType!==1||!D(by).is(bz))){if(by.nodeType===1){bv.push(by)}by=by[bw]}return bv},sibling:function(bx,bw){var bv=[];for(;bx;bx=bx.nextSibling){if(bx.nodeType===1&&bx!==bw){bv.push(bx)}}return bv}});function aA(by,bx,bv){bx=bx||0;if(D.isFunction(bx)){return D.grep(by,function(bA,bz){var bB=!!bx.call(bA,bz,bA);return bB===bv})}else{if(bx.nodeType){return D.grep(by,function(bA,bz){return(bA===bx)===bv})}else{if(typeof bx==="string"){var bw=D.grep(by,function(bz){return bz.nodeType===1});if(br.test(bx)){return D.filter(bx,bw,!bv)}else{bx=D.filter(bx,bw)}}}}return D.grep(by,function(bA,bz){return(D.inArray(bA,bx)>=0)===bv})}function a(bv){var bx=aK.split("|"),bw=bv.createDocumentFragment();if(bw.createElement){while(bx.length){bw.createElement(bx.pop())}}return bw}var aK="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ab=/ JQXLite\d+="(?:null|\d+)"/g,ai=/^\s+/,M=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,c=/<([\w:]+)/,w=/<tbody/i,Q=/<|&#?\w+;/,X=/<(?:script|style|link)/i,J=/<(?:script|object|embed|option|style)/i,ad=new RegExp("<(?:"+aK+")[\\s/>]","i"),S=/^(?:checkbox|radio)$/,p=/checked\s*(?:[^=]|=\s*.checked.)/i,bq=/\/(java|ecma)script/i,aH=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,an={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},U=a(al),bh=U.appendChild(al.createElement("div"));an.optgroup=an.option;an.tbody=an.tfoot=an.colgroup=an.caption=an.thead;an.th=an.td;if(!D.support.htmlSerialize){an._default=[1,"X<div>","</div>"]}D.fn.extend({text:function(bv){return D.access(this,function(bw){return bw===H?D.text(this):this.empty().append((this[0]&&this[0].ownerDocument||al).createTextNode(bw))},null,bv,arguments.length)},wrapAll:function(bv){if(D.isFunction(bv)){return this.each(function(bx){D(this).wrapAll(bv.call(this,bx))})}if(this[0]){var bw=D(bv,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bw.insertBefore(this[0])}bw.map(function(){var bx=this;while(bx.firstChild&&bx.firstChild.nodeType===1){bx=bx.firstChild}return bx}).append(this)}return this},wrapInner:function(bv){if(D.isFunction(bv)){return this.each(function(bw){D(this).wrapInner(bv.call(this,bw))})}return this.each(function(){var bw=D(this),bx=bw.contents();if(bx.length){bx.wrapAll(bv)}else{bw.append(bv)}})},wrap:function(bv){var bw=D.isFunction(bv);return this.each(function(bx){D(this).wrapAll(bw?bv.call(this,bx):bv)})},unwrap:function(){return this.parent().each(function(){if(!D.nodeName(this,"body")){D(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(bv){if(this.nodeType===1||this.nodeType===11){this.appendChild(bv)}})},prepend:function(){return this.domManip(arguments,true,function(bv){if(this.nodeType===1||this.nodeType===11){this.insertBefore(bv,this.firstChild)}})},before:function(){if(!y(this[0])){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this)})}if(arguments.length){var bv=D.clean(arguments);return this.pushStack(D.merge(bv,this),"before",this.selector)}},after:function(){if(!y(this[0])){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this.nextSibling)})}if(arguments.length){var bv=D.clean(arguments);return this.pushStack(D.merge(this,bv),"after",this.selector)}},remove:function(bv,by){var bx,bw=0;for(;(bx=this[bw])!=null;bw++){if(!bv||D.filter(bv,[bx]).length){if(!by&&bx.nodeType===1){D.cleanData(bx.getElementsByTagName("*"));D.cleanData([bx])}if(bx.parentNode){bx.parentNode.removeChild(bx)}}}return this},empty:function(){var bw,bv=0;for(;(bw=this[bv])!=null;bv++){if(bw.nodeType===1){D.cleanData(bw.getElementsByTagName("*"))}while(bw.firstChild){bw.removeChild(bw.firstChild)}}return this},clone:function(bw,bv){bw=bw==null?false:bw;bv=bv==null?bw:bv;return this.map(function(){return D.clone(this,bw,bv)})},html:function(bv){return D.access(this,function(bz){var by=this[0]||{},bx=0,bw=this.length;if(bz===H){return by.nodeType===1?by.innerHTML.replace(ab,""):H}if(typeof bz==="string"&&!X.test(bz)&&(D.support.htmlSerialize||!ad.test(bz))&&(D.support.leadingWhitespace||!ai.test(bz))&&!an[(c.exec(bz)||["",""])[1].toLowerCase()]){bz=bz.replace(M,"<$1></$2>");try{for(;bx<bw;bx++){by=this[bx]||{};if(by.nodeType===1){D.cleanData(by.getElementsByTagName("*"));by.innerHTML=bz}}by=0}catch(bA){}}if(by){this.empty().append(bz)}},null,bv,arguments.length)},replaceWith:function(bv){if(!y(this[0])){if(D.isFunction(bv)){return this.each(function(by){var bx=D(this),bw=bx.html();bx.replaceWith(bv.call(this,by,bw))})}if(typeof bv!=="string"){bv=D(bv).detach()}return this.each(function(){var bx=this.nextSibling,bw=this.parentNode;D(this).remove();if(bx){D(bx).before(bv)}else{D(bw).append(bv)}})}return this.length?this.pushStack(D(D.isFunction(bv)?bv():bv),"replaceWith",bv):this},detach:function(bv){return this.remove(bv,true)},domManip:function(bB,bF,bE){bB=[].concat.apply([],bB);var bx,bz,bA,bD,by=0,bC=bB[0],bw=[],bv=this.length;if(!D.support.checkClone&&bv>1&&typeof bC==="string"&&p.test(bC)){return this.each(function(){D(this).domManip(bB,bF,bE)})}if(D.isFunction(bC)){return this.each(function(bH){var bG=D(this);bB[0]=bC.call(this,bH,bF?bG.html():H);bG.domManip(bB,bF,bE)})}if(this[0]){bx=D.buildFragment(bB,this,bw);bA=bx.fragment;bz=bA.firstChild;if(bA.childNodes.length===1){bA=bz}if(bz){bF=bF&&D.nodeName(bz,"tr");for(bD=bx.cacheable||bv-1;by<bv;by++){bE.call(bF&&D.nodeName(this[by],"table")?a4(this[by],"tbody"):this[by],by===bD?bA:D.clone(bA,true,true))}}bA=bz=null;if(bw.length){D.each(bw,function(bG,bH){if(bH.src){if(D.ajax){D.ajax({url:bH.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{D.error("no ajax")}}else{D.globalEval((bH.text||bH.textContent||bH.innerHTML||"").replace(aH,""))}if(bH.parentNode){bH.parentNode.removeChild(bH)}})}}return this}});function a4(bw,bv){return bw.getElementsByTagName(bv)[0]||bw.appendChild(bw.ownerDocument.createElement(bv))}function s(bC,bw){if(bw.nodeType!==1||!D.hasData(bC)){return}var bz,by,bv,bB=D._data(bC),bA=D._data(bw,bB),bx=bB.events;if(bx){delete bA.handle;bA.events={};for(bz in bx){for(by=0,bv=bx[bz].length;by<bv;by++){D.event.add(bw,bz,bx[bz][by])}}}if(bA.data){bA.data=D.extend({},bA.data)}}function ac(bw,bv){var bx;if(bv.nodeType!==1){return}if(bv.clearAttributes){bv.clearAttributes()}if(bv.mergeAttributes){bv.mergeAttributes(bw)}bx=bv.nodeName.toLowerCase();if(bx==="object"){if(bv.parentNode){bv.outerHTML=bw.outerHTML}if(D.support.html5Clone&&(bw.innerHTML&&!D.trim(bv.innerHTML))){bv.innerHTML=bw.innerHTML}}else{if(bx==="input"&&S.test(bw.type)){bv.defaultChecked=bv.checked=bw.checked;if(bv.value!==bw.value){bv.value=bw.value}}else{if(bx==="option"){bv.selected=bw.defaultSelected}else{if(bx==="input"||bx==="textarea"){bv.defaultValue=bw.defaultValue}else{if(bx==="script"&&bv.text!==bw.text){bv.text=bw.text}}}}}bv.removeAttribute(D.expando)}D.buildFragment=function(by,bz,bw){var bx,bv,bA,bB=by[0];bz=bz||al;bz=!bz.nodeType&&bz[0]||bz;bz=bz.ownerDocument||bz;if(by.length===1&&typeof bB==="string"&&bB.length<512&&bz===al&&bB.charAt(0)==="<"&&!J.test(bB)&&(D.support.checkClone||!p.test(bB))&&(D.support.html5Clone||!ad.test(bB))){bv=true;bx=D.fragments[bB];bA=bx!==H}if(!bx){bx=bz.createDocumentFragment();D.clean(by,bz,bx,bw);if(bv){D.fragments[bB]=bA&&bx}}return{fragment:bx,cacheable:bv}};D.fragments={};D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bv,bw){D.fn[bv]=function(bx){var bz,bB=0,bA=[],bD=D(bx),by=bD.length,bC=this.length===1&&this[0].parentNode;if((bC==null||bC&&bC.nodeType===11&&bC.childNodes.length===1)&&by===1){bD[bw](this[0]);return this}else{for(;bB<by;bB++){bz=(bB>0?this.clone(true):this).get();D(bD[bB])[bw](bz);bA=bA.concat(bz)}return this.pushStack(bA,bv,bD.selector)}}});function bl(bv){if(typeof bv.getElementsByTagName!=="undefined"){return bv.getElementsByTagName("*")}else{if(typeof bv.querySelectorAll!=="undefined"){return bv.querySelectorAll("*")}else{return[]}}}function am(bv){if(S.test(bv.type)){bv.defaultChecked=bv.checked}}D.extend({clone:function(bz,bB,bx){var bv,bw,by,bA;if(D.support.html5Clone||D.isXMLDoc(bz)||!ad.test("<"+bz.nodeName+">")){bA=bz.cloneNode(true)}else{bh.innerHTML=bz.outerHTML;bh.removeChild(bA=bh.firstChild)}if((!D.support.noCloneEvent||!D.support.noCloneChecked)&&(bz.nodeType===1||bz.nodeType===11)&&!D.isXMLDoc(bz)){ac(bz,bA);bv=bl(bz);bw=bl(bA);for(by=0;bv[by];++by){if(bw[by]){ac(bv[by],bw[by])}}}if(bB){s(bz,bA);if(bx){bv=bl(bz);bw=bl(bA);for(by=0;bv[by];++by){s(bv[by],bw[by])}}}bv=bw=null;return bA},clean:function(bI,bx,bv,by){var bF,bE,bH,bM,bB,bL,bC,bz,bw,bG,bK,bD,bA=bx===al&&U,bJ=[];if(!bx||typeof bx.createDocumentFragment==="undefined"){bx=al}for(bF=0;(bH=bI[bF])!=null;bF++){if(typeof bH==="number"){bH+=""}if(!bH){continue}if(typeof bH==="string"){if(!Q.test(bH)){bH=bx.createTextNode(bH)}else{bA=bA||a(bx);bC=bx.createElement("div");bA.appendChild(bC);bH=bH.replace(M,"<$1></$2>");bM=(c.exec(bH)||["",""])[1].toLowerCase();bB=an[bM]||an._default;bL=bB[0];bC.innerHTML=bB[1]+bH+bB[2];while(bL--){bC=bC.lastChild}if(!D.support.tbody){bz=w.test(bH);bw=bM==="table"&&!bz?bC.firstChild&&bC.firstChild.childNodes:bB[1]==="<table>"&&!bz?bC.childNodes:[];for(bE=bw.length-1;bE>=0;--bE){if(D.nodeName(bw[bE],"tbody")&&!bw[bE].childNodes.length){bw[bE].parentNode.removeChild(bw[bE])}}}if(!D.support.leadingWhitespace&&ai.test(bH)){bC.insertBefore(bx.createTextNode(ai.exec(bH)[0]),bC.firstChild)}bH=bC.childNodes;bC.parentNode.removeChild(bC)}}if(bH.nodeType){bJ.push(bH)}else{D.merge(bJ,bH)}}if(bC){bH=bC=bA=null}if(!D.support.appendChecked){for(bF=0;(bH=bJ[bF])!=null;bF++){if(D.nodeName(bH,"input")){am(bH)}else{if(typeof bH.getElementsByTagName!=="undefined"){D.grep(bH.getElementsByTagName("input"),am)}}}}if(bv){bK=function(bN){if(!bN.type||bq.test(bN.type)){return by?by.push(bN.parentNode?bN.parentNode.removeChild(bN):bN):bv.appendChild(bN)}};for(bF=0;(bH=bJ[bF])!=null;bF++){if(!(D.nodeName(bH,"script")&&bK(bH))){bv.appendChild(bH);if(typeof bH.getElementsByTagName!=="undefined"){bD=D.grep(D.merge([],bH.getElementsByTagName("script")),bK);bJ.splice.apply(bJ,[bF+1,0].concat(bD));bF+=bD.length}}}}return bJ},cleanData:function(bw,bE){var bz,bx,by,bD,bA=0,bF=D.expando,bv=D.cache,bB=D.support.deleteExpando,bC=D.event.special;for(;(by=bw[bA])!=null;bA++){if(bE||D.acceptData(by)){bx=by[bF];bz=bx&&bv[bx];if(bz){if(bz.events){for(bD in bz.events){if(bC[bD]){D.event.remove(by,bD)}else{D.removeEvent(by,bD,bz.handle)}}}if(bv[bx]){delete bv[bx];if(bB){delete by[bF]}else{if(by.removeAttribute){by.removeAttribute(bF)}else{by[bF]=null}}D.deletedIds.push(bx)}}}}}});(function(){var bv,bw;D.uaMatch=function(by){by=by.toLowerCase();var bx=/(chrome)[ \/]([\w.]+)/.exec(by)||/(webkit)[ \/]([\w.]+)/.exec(by)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(by)||/(msie) ([\w.]+)/.exec(by)||by.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(by)||[];return{browser:bx[1]||"",version:bx[2]||"0"}};bv=D.uaMatch(bu.userAgent);bw={};if(bv.browser){bw[bv.browser]=true;bw.version=bv.version}if(bw.chrome){bw.webkit=true}else{if(bw.webkit){bw.safari=true}}D.browser=bw;D.sub=function(){function by(bA,bB){return new by.fn.init(bA,bB)}D.extend(true,by,this);by.superclass=this;by.fn=by.prototype=this();by.fn.constructor=by;by.sub=this.sub;by.fn.init=function bz(bA,bB){if(bB&&bB instanceof D&&!(bB instanceof by)){bB=by(bB)}return D.fn.init.call(this,bA,bB,bx)};by.fn.init.prototype=by.fn;var bx=by(al);return by}})();var R,bd,m,ae=/alpha\([^)]*\)/i,ak=/opacity=([^)]*)/,x=/^(top|right|bottom|left)$/,aj=/^(none|table(?!-c[ea]).+)/,aw=/^margin/,j=new RegExp("^("+aF+")(.*)$","i"),aW=new RegExp("^("+aF+")(?!px)[a-z%]+$","i"),F=new RegExp("^([-+])=("+aF+")","i"),K={BODY:"block"},bb={position:"absolute",visibility:"hidden",display:"block"},aM={letterSpacing:0,fontWeight:400},E=["Top","Right","Bottom","Left"],P=["Webkit","O","Moz","ms"],bf=D.fn.toggle;function a3(by,bw){if(bw in by){return bw}var bz=bw.charAt(0).toUpperCase()+bw.slice(1),bv=bw,bx=P.length;while(bx--){bw=P[bx]+bz;if(bw in by){return bw}}return bv}function aq(bw,bv){bw=bv||bw;return D.css(bw,"display")==="none"||!D.contains(bw.ownerDocument,bw)}function bc(bA,bv){var bz,bB,bw=[],bx=0,by=bA.length;for(;bx<by;bx++){bz=bA[bx];if(!bz.style){continue}bw[bx]=D._data(bz,"olddisplay");if(bv){if(!bw[bx]&&bz.style.display==="none"){bz.style.display=""}if(bz.style.display===""&&aq(bz)){bw[bx]=D._data(bz,"olddisplay",aO(bz.nodeName))}}else{bB=R(bz,"display");if(!bw[bx]&&bB!=="none"){D._data(bz,"olddisplay",bB)}}}for(bx=0;bx<by;bx++){bz=bA[bx];if(!bz.style){continue}if(!bv||bz.style.display==="none"||bz.style.display===""){bz.style.display=bv?bw[bx]||"":"none"}}return bA}D.fn.extend({css:function(bv,bw){return D.access(this,function(by,bx,bz){return bz!==H?D.style(by,bx,bz):D.css(by,bx)},bv,bw,arguments.length>1)},show:function(){return bc(this,true)},hide:function(){return bc(this)},toggle:function(bx,bw){var bv=typeof bx==="boolean";if(D.isFunction(bx)&&D.isFunction(bw)){return bf.apply(this,arguments)}return this.each(function(){if(bv?bx:aq(this)){D(this).show()}else{D(this).hide()}})}});D.extend({cssHooks:{opacity:{get:function(bx,bw){if(bw){var bv=R(bx,"opacity");return bv===""?"1":bv}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":D.support.cssFloat?"cssFloat":"styleFloat"},style:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.style){return}var bB,bC,bE,bz=D.camelCase(bw),bv=bx.style;bw=D.cssProps[bz]||(D.cssProps[bz]=a3(bv,bz));bE=D.cssHooks[bw]||D.cssHooks[bz];if(bD!==H){bC=typeof bD;if(bC==="string"&&(bB=F.exec(bD))){bD=(bB[1]+1)*bB[2]+parseFloat(D.css(bx,bw));bC="number"}if(bD==null||bC==="number"&&isNaN(bD)){return}if(bC==="number"&&!D.cssNumber[bz]){bD+="px"}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD,by))!==H){try{bv[bw]=bD}catch(bA){}}}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==H){return bB}return bv[bw]}},css:function(bB,bz,bA,bw){var bC,by,bv,bx=D.camelCase(bz);bz=D.cssProps[bx]||(D.cssProps[bx]=a3(bB.style,bx));bv=D.cssHooks[bz]||D.cssHooks[bx];if(bv&&"get" in bv){bC=bv.get(bB,true,bw)}if(bC===H){bC=R(bB,bz)}if(bC==="normal"&&bz in aM){bC=aM[bz]}if(bA||bw!==H){by=parseFloat(bC);return bA||D.isNumeric(by)?by||0:bC}return bC},swap:function(bz,by,bA){var bx,bw,bv={};for(bw in by){bv[bw]=bz.style[bw];bz.style[bw]=by[bw]}bx=bA.call(bz);for(bw in by){bz.style[bw]=bv[bw]}return bx}});if(be.getComputedStyle){R=function(bC,bw){var bv,bz,by,bB,bA=be.getComputedStyle(bC,null),bx=bC.style;if(bA){bv=bA.getPropertyValue(bw)||bA[bw];if(bv===""&&!D.contains(bC.ownerDocument,bC)){bv=D.style(bC,bw)}if(aW.test(bv)&&aw.test(bw)){bz=bx.width;by=bx.minWidth;bB=bx.maxWidth;bx.minWidth=bx.maxWidth=bx.width=bv;bv=bA.width;bx.width=bz;bx.minWidth=by;bx.maxWidth=bB}}return bv}}else{if(al.documentElement.currentStyle){R=function(bz,bx){var bA,bv,bw=bz.currentStyle&&bz.currentStyle[bx],by=bz.style;if(bw==null&&by&&by[bx]){bw=by[bx]}if(aW.test(bw)&&!x.test(bx)){bA=by.left;bv=bz.runtimeStyle&&bz.runtimeStyle.left;if(bv){bz.runtimeStyle.left=bz.currentStyle.left}by.left=bx==="fontSize"?"1em":bw;bw=by.pixelLeft+"px";by.left=bA;if(bv){bz.runtimeStyle.left=bv}}return bw===""?"auto":bw}}}function aP(bv,bx,by){var bw=j.exec(bx);return bw?Math.max(0,bw[1]-(by||0))+(bw[2]||"px"):bx}function a0(by,bw,bv,bA){var bx=bv===(bA?"border":"content")?4:bw==="width"?1:0,bz=0;for(;bx<4;bx+=2){if(bv==="margin"){bz+=D.css(by,bv+E[bx],true)}if(bA){if(bv==="content"){bz-=parseFloat(R(by,"padding"+E[bx]))||0}if(bv!=="margin"){bz-=parseFloat(R(by,"border"+E[bx]+"Width"))||0}}else{bz+=parseFloat(R(by,"padding"+E[bx]))||0;if(bv!=="padding"){bz+=parseFloat(R(by,"border"+E[bx]+"Width"))||0}}}return bz}function Z(by,bw,bv){var bz=bw==="width"?by.offsetWidth:by.offsetHeight,bx=true,bA=D.support.boxSizing&&D.css(by,"boxSizing")==="border-box";if(bz<=0||bz==null){bz=R(by,bw);if(bz<0||bz==null){bz=by.style[bw]}if(aW.test(bz)){return bz}bx=bA&&(D.support.boxSizingReliable||bz===by.style[bw]);bz=parseFloat(bz)||0}return(bz+a0(by,bw,bv||(bA?"border":"content"),bx))+"px"}function aO(bx){if(K[bx]){return K[bx]}var bv=D("<"+bx+">").appendTo(al.body),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){bd=al.body.appendChild(bd||D.extend(al.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!m||!bd.createElement){m=(bd.contentWindow||bd.contentDocument).document;m.write("<!doctype html><html><body>");m.close()}bv=m.body.appendChild(m.createElement(bx));bw=R(bv,"display");al.body.removeChild(bd)}K[bx]=bw;return bw}D.each(["height","width"],function(bw,bv){D.cssHooks[bv]={get:function(bz,by,bx){if(by){if(bz.offsetWidth===0&&aj.test(R(bz,"display"))){return D.swap(bz,bb,function(){return Z(bz,bv,bx)})}else{return Z(bz,bv,bx)}}},set:function(by,bz,bx){return aP(by,bz,bx?a0(by,bv,bx,D.support.boxSizing&&D.css(by,"boxSizing")==="border-box"):0)}}});if(!D.support.opacity){D.cssHooks.opacity={get:function(bw,bv){return ak.test((bv&&bw.currentStyle?bw.currentStyle.filter:bw.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":bv?"1":""},set:function(bz,bA){var by=bz.style,bw=bz.currentStyle,bv=D.isNumeric(bA)?"alpha(opacity="+bA*100+")":"",bx=bw&&bw.filter||by.filter||"";by.zoom=1;if(bA>=1&&D.trim(bx.replace(ae,""))===""&&by.removeAttribute){by.removeAttribute("filter");if(bw&&!bw.filter){return}}by.filter=ae.test(bx)?bx.replace(ae,bv):bx+" "+bv}}}D(function(){if(!D.support.reliableMarginRight){D.cssHooks.marginRight={get:function(bw,bv){return D.swap(bw,{display:"inline-block"},function(){if(bv){return R(bw,"marginRight")}})}}}if(!D.support.pixelPosition&&D.fn.position){D.each(["top","left"],function(bv,bw){D.cssHooks[bw]={get:function(bz,by){if(by){var bx=R(bz,bw);return aW.test(bx)?D(bz).position()[bw]+"px":bx}}}})}});if(D.expr&&D.expr.filters){D.expr.filters.hidden=function(bv){return(bv.offsetWidth===0&&bv.offsetHeight===0)||(!D.support.reliableHiddenOffsets&&((bv.style&&bv.style.display)||R(bv,"display"))==="none")};D.expr.filters.visible=function(bv){return !D.expr.filters.hidden(bv)}}D.each({margin:"",padding:"",border:"Width"},function(bv,bw){D.cssHooks[bv+bw]={expand:function(bz){var by,bA=typeof bz==="string"?bz.split(" "):[bz],bx={};for(by=0;by<4;by++){bx[bv+E[by]+bw]=bA[by]||bA[by-2]||bA[0]}return bx}};if(!aw.test(bv)){D.cssHooks[bv+bw].set=aP}});var g=/%20/g,ag=/\[\]$/,bs=/\r?\n/g,aV=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,q=/^(?:select|textarea)/i;D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?D.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aV.test(this.type))}).map(function(bv,bw){var bx=D(this).val();return bx==null?null:D.isArray(bx)?D.map(bx,function(bz,by){return{name:bw.name,value:bz.replace(bs,"\r\n")}}):{name:bw.name,value:bx.replace(bs,"\r\n")}}).get()}});D.param=function(bv,bx){var by,bw=[],bz=function(bA,bB){bB=D.isFunction(bB)?bB():(bB==null?"":bB);bw[bw.length]=encodeURIComponent(bA)+"="+encodeURIComponent(bB)};if(bx===H){bx=D.ajaxSettings&&D.ajaxSettings.traditional}if(D.isArray(bv)||(bv.jqx&&!D.isPlainObject(bv))){D.each(bv,function(){bz(this.name,this.value)})}else{for(by in bv){t(by,bv[by],bx,bz)}}return bw.join("&").replace(g,"+")};function t(bx,bz,bw,by){var bv;if(D.isArray(bz)){D.each(bz,function(bB,bA){if(bw||ag.test(bx)){by(bx,bA)}else{t(bx+"["+(typeof bA==="object"?bB:"")+"]",bA,bw,by)}})}else{if(!bw&&D.type(bz)==="object"){for(bv in bz){t(bx+"["+bv+"]",bz[bv],bw,by)}}else{by(bx,bz)}}}if(D.support.ajax){D.ajaxTransport(function(bv){if(!bv.crossDomain||D.support.cors){var bw;return{send:function(bC,bx){var bA,bz,bB=bv.xhr();if(bv.username){bB.open(bv.type,bv.url,bv.async,bv.username,bv.password)}else{bB.open(bv.type,bv.url,bv.async)}if(bv.xhrFields){for(bz in bv.xhrFields){bB[bz]=bv.xhrFields[bz]}}if(bv.mimeType&&bB.overrideMimeType){bB.overrideMimeType(bv.mimeType)}if(!bv.crossDomain&&!bC["X-Requested-With"]){bC["X-Requested-With"]="XMLHttpRequest"}try{for(bz in bC){bB.setRequestHeader(bz,bC[bz])}}catch(by){}bB.send((bv.hasContent&&bv.data)||null);bw=function(bL,bF){var bG,bE,bD,bJ,bI;try{if(bw&&(bF||bB.readyState===4)){bw=H;if(bA){bB.onreadystatechange=D.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[bA]}}if(bF){if(bB.readyState!==4){bB.abort()}}else{bG=bB.status;bD=bB.getAllResponseHeaders();bJ={};bI=bB.responseXML;if(bI&&bI.documentElement){bJ.xml=bI}try{bJ.text=bB.responseText}catch(bK){}try{bE=bB.statusText}catch(bK){bE=""}if(!bG&&bv.isLocal&&!bv.crossDomain){bG=bJ.text?200:404}else{if(bG===1223){bG=204}}}}}catch(bH){if(!bF){bx(-1,bH)}}if(bJ){bx(bG,bE,bJ,bD)}};if(!bv.async){bw()}else{if(bB.readyState===4){setTimeout(bw,0)}else{bA=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};D(be).unload(xhrOnUnloadAbort)}xhrCallbacks[bA]=bw}bB.onreadystatechange=bw}}},abort:function(){if(bw){bw(0,1)}}}}})}var a7,a2,at=/^(?:toggle|show|hide)$/,aN=new RegExp("^(?:([-+])=|)("+aF+")([a-z%]*)$","i"),a8=/queueHooks$/,l=[bn],I={"*":[function(bv,bC){var by,bD,bE=this.createTween(bv,bC),bz=aN.exec(bC),bA=bE.cur(),bw=+bA||0,bx=1,bB=20;if(bz){by=+bz[2];bD=bz[3]||(D.cssNumber[bv]?"":"px");if(bD!=="px"&&bw){bw=D.css(bE.elem,bv,true)||by||1;do{bx=bx||".5";bw=bw/bx;D.style(bE.elem,bv,bw+bD)}while(bx!==(bx=bE.cur()/bA)&&bx!==1&&--bB)}bE.unit=bD;bE.start=bw;bE.end=bz[1]?bw+(bz[1]+1)*by:by}return bE}]};function bm(){setTimeout(function(){a7=H},0);return(a7=D.now())}function aa(bw,bv){D.each(bv,function(bB,bz){var bA=(I[bB]||[]).concat(I["*"]),bx=0,by=bA.length;for(;bx<by;bx++){if(bA[bx].call(bw,bB,bz)){return}}})}function bk(bx,bB,bE){var bF,bA=0,bv=0,bw=l.length,bD=D.Deferred().always(function(){delete bz.elem}),bz=function(){var bL=a7||bm(),bI=Math.max(0,by.startTime+by.duration-bL),bG=bI/by.duration||0,bK=1-bG,bH=0,bJ=by.tweens.length;for(;bH<bJ;bH++){by.tweens[bH].run(bK)}bD.notifyWith(bx,[by,bK,bI]);if(bK<1&&bJ){return bI}else{bD.resolveWith(bx,[by]);return false}},by=bD.promise({elem:bx,props:D.extend({},bB),opts:D.extend(true,{specialEasing:{}},bE),originalProperties:bB,originalOptions:bE,startTime:a7||bm(),duration:bE.duration,tweens:[],createTween:function(bJ,bG,bI){var bH=D.Tween(bx,by.opts,bJ,bG,by.opts.specialEasing[bJ]||by.opts.easing);by.tweens.push(bH);return bH},stop:function(bH){var bG=0,bI=bH?by.tweens.length:0;for(;bG<bI;bG++){by.tweens[bG].run(1)}if(bH){bD.resolveWith(bx,[by,bH])}else{bD.rejectWith(bx,[by,bH])}return this}}),bC=by.props;aX(bC,by.opts.specialEasing);for(;bA<bw;bA++){bF=l[bA].call(by,bx,bC,by.opts);if(bF){return bF}}aa(by,bC);if(D.isFunction(by.opts.start)){by.opts.start.call(bx,by)}D.fx.timer(D.extend(bz,{anim:by,queue:by.opts.queue,elem:bx}));return by.progress(by.opts.progress).done(by.opts.done,by.opts.complete).fail(by.opts.fail).always(by.opts.always)}function aX(by,bA){var bx,bw,bB,bz,bv;for(bx in by){bw=D.camelCase(bx);bB=bA[bw];bz=by[bx];if(D.isArray(bz)){bB=bz[1];bz=by[bx]=bz[0]}if(bx!==bw){by[bw]=bz;delete by[bx]}bv=D.cssHooks[bw];if(bv&&"expand" in bv){bz=bv.expand(bz);delete by[bw];for(bx in bz){if(!(bx in by)){by[bx]=bz[bx];bA[bx]=bB}}}else{bA[bw]=bB}}}D.Animation=D.extend(bk,{tweener:function(bw,bz){if(D.isFunction(bw)){bz=bw;bw=["*"]}else{bw=bw.split(" ")}var by,bv=0,bx=bw.length;for(;bv<bx;bv++){by=bw[bv];I[by]=I[by]||[];I[by].unshift(bz)}},prefilter:function(bw,bv){if(bv){l.unshift(bw)}else{l.push(bw)}}});function bn(bz,bF,bv){var bE,bx,bH,by,bL,bB,bK,bJ,bI,bA=this,bw=bz.style,bG={},bD=[],bC=bz.nodeType&&aq(bz);if(!bv.queue){bJ=D._queueHooks(bz,"fx");if(bJ.unqueued==null){bJ.unqueued=0;bI=bJ.empty.fire;bJ.empty.fire=function(){if(!bJ.unqueued){bI()}}}bJ.unqueued++;bA.always(function(){bA.always(function(){bJ.unqueued--;if(!D.queue(bz,"fx").length){bJ.empty.fire()}})})}if(bz.nodeType===1&&("height" in bF||"width" in bF)){bv.overflow=[bw.overflow,bw.overflowX,bw.overflowY];if(D.css(bz,"display")==="inline"&&D.css(bz,"float")==="none"){if(!D.support.inlineBlockNeedsLayout||aO(bz.nodeName)==="inline"){bw.display="inline-block"}else{bw.zoom=1}}}if(bv.overflow){bw.overflow="hidden";if(!D.support.shrinkWrapBlocks){bA.done(function(){bw.overflow=bv.overflow[0];bw.overflowX=bv.overflow[1];bw.overflowY=bv.overflow[2]})}}for(bE in bF){bH=bF[bE];if(at.exec(bH)){delete bF[bE];bB=bB||bH==="toggle";if(bH===(bC?"hide":"show")){continue}bD.push(bE)}}by=bD.length;if(by){bL=D._data(bz,"fxshow")||D._data(bz,"fxshow",{});if("hidden" in bL){bC=bL.hidden}if(bB){bL.hidden=!bC}if(bC){D(bz).show()}else{bA.done(function(){D(bz).hide()})}bA.done(function(){var bM;D.removeData(bz,"fxshow",true);for(bM in bG){D.style(bz,bM,bG[bM])}});for(bE=0;bE<by;bE++){bx=bD[bE];bK=bA.createTween(bx,bC?bL[bx]:0);bG[bx]=bL[bx]||D.style(bz,bx);if(!(bx in bL)){bL[bx]=bK.start;if(bC){bK.end=bK.start;bK.start=bx==="width"||bx==="height"?1:0}}}}}function v(bx,bw,bz,bv,by){return new v.prototype.init(bx,bw,bz,bv,by)}D.Tween=v;v.prototype={constructor:v,init:function(by,bw,bA,bv,bz,bx){this.elem=by;this.prop=bA;this.easing=bz||"swing";this.options=bw;this.start=this.now=this.cur();this.end=bv;this.unit=bx||(D.cssNumber[bA]?"":"px")},cur:function(){var bv=v.propHooks[this.prop];return bv&&bv.get?bv.get(this):v.propHooks._default.get(this)},run:function(bx){var bw,bv=v.propHooks[this.prop];if(this.options.duration){this.pos=bw=D.easing[this.easing](bx,this.options.duration*bx,0,1,this.options.duration)}else{this.pos=bw=bx}this.now=(this.end-this.start)*bw+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(bv&&bv.set){bv.set(this)}else{v.propHooks._default.set(this)}return this}};v.prototype.init.prototype=v.prototype;v.propHooks={_default:{get:function(bw){var bv;if(bw.elem[bw.prop]!=null&&(!bw.elem.style||bw.elem.style[bw.prop]==null)){return bw.elem[bw.prop]}bv=D.css(bw.elem,bw.prop,false,"");return !bv||bv==="auto"?0:bv},set:function(bv){if(D.fx.step[bv.prop]){D.fx.step[bv.prop](bv)}else{if(bv.elem.style&&(bv.elem.style[D.cssProps[bv.prop]]!=null||D.cssHooks[bv.prop])){D.style(bv.elem,bv.prop,bv.now+bv.unit)}else{bv.elem[bv.prop]=bv.now}}}}};v.propHooks.scrollTop=v.propHooks.scrollLeft={set:function(bv){if(bv.elem.nodeType&&bv.elem.parentNode){bv.elem[bv.prop]=bv.now}}};D.each(["toggle","show","hide"],function(bw,bv){var bx=D.fn[bv];D.fn[bv]=function(by,bA,bz){return by==null||typeof by==="boolean"||(!bw&&D.isFunction(by)&&D.isFunction(bA))?bx.apply(this,arguments):this.animate(aZ(bv,true),by,bA,bz)}});D.fn.extend({fadeTo:function(bv,by,bx,bw){return this.filter(aq).css("opacity",0).show().end().animate({opacity:by},bv,bx,bw)},animate:function(bB,by,bA,bz){var bx=D.isEmptyObject(bB),bv=D.speed(by,bA,bz),bw=function(){var bC=bk(this,D.extend({},bB),bv);if(bx){bC.stop(true)}};return bx||bv.queue===false?this.each(bw):this.queue(bv.queue,bw)},stop:function(bx,bw,bv){var by=function(bz){var bA=bz.stop;delete bz.stop;bA(bv)};if(typeof bx!=="string"){bv=bw;bw=bx;bx=H}if(bw&&bx!==false){this.queue(bx||"fx",[])}return this.each(function(){var bC=true,bz=bx!=null&&bx+"queueHooks",bB=D.timers,bA=D._data(this);if(bz){if(bA[bz]&&bA[bz].stop){by(bA[bz])}}else{for(bz in bA){if(bA[bz]&&bA[bz].stop&&a8.test(bz)){by(bA[bz])}}}for(bz=bB.length;bz--;){if(bB[bz].elem===this&&(bx==null||bB[bz].queue===bx)){bB[bz].anim.stop(bv);bC=false;bB.splice(bz,1)}}if(bC||!bv){D.dequeue(this,bx)}})}});function aZ(bx,bz){var by,bv={height:bx},bw=0;bz=bz?1:0;for(;bw<4;bw+=2-bz){by=E[bw];bv["margin"+by]=bv["padding"+by]=bx}if(bz){bv.opacity=bv.width=bx}return bv}D.each({slideDown:aZ("show"),slideUp:aZ("hide"),slideToggle:aZ("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bv,bw){D.fn[bv]=function(bx,bz,by){return this.animate(bw,bx,bz,by)}});D.speed=function(bx,by,bw){var bv=bx&&typeof bx==="object"?D.extend({},bx):{complete:bw||!bw&&by||D.isFunction(bx)&&bx,duration:bx,easing:bw&&by||by&&!D.isFunction(by)&&by};bv.duration=D.fx.off?0:typeof bv.duration==="number"?bv.duration:bv.duration in D.fx.speeds?D.fx.speeds[bv.duration]:D.fx.speeds._default;if(bv.queue==null||bv.queue===true){bv.queue="fx"}bv.old=bv.complete;bv.complete=function(){if(D.isFunction(bv.old)){bv.old.call(this)}if(bv.queue){D.dequeue(this,bv.queue)}};return bv};D.easing={linear:function(bv){return bv},swing:function(bv){return 0.5-Math.cos(bv*Math.PI)/2}};D.timers=[];D.fx=v.prototype.init;D.fx.tick=function(){var bx,bw=D.timers,bv=0;a7=D.now();for(;bv<bw.length;bv++){bx=bw[bv];if(!bx()&&bw[bv]===bx){bw.splice(bv--,1)}}if(!bw.length){D.fx.stop()}a7=H};D.fx.timer=function(bv){if(bv()&&D.timers.push(bv)&&!a2){a2=setInterval(D.fx.tick,D.fx.interval)}};D.fx.interval=13;D.fx.stop=function(){clearInterval(a2);a2=null};D.fx.speeds={slow:600,fast:200,_default:400};D.fx.step={};if(D.expr&&D.expr.filters){D.expr.filters.animated=function(bv){return D.grep(D.timers,function(bw){return bv===bw.elem}).length}}var W=/^(?:body|html)$/i;D.fn.offset=function(bF){if(arguments.length){return bF===H?this:this.each(function(bG){D.offset.setOffset(this,bF,bG)})}var bw,bB,bC,bz,bD,bv,by,bA={top:0,left:0},bx=this[0],bE=bx&&bx.ownerDocument;if(!bE){return}if((bB=bE.body)===bx){return D.offset.bodyOffset(bx)}bw=bE.documentElement;if(!D.contains(bw,bx)){return bA}if(typeof bx.getBoundingClientRect!=="undefined"){bA=bx.getBoundingClientRect()}bC=aD(bE);bz=bw.clientTop||bB.clientTop||0;bD=bw.clientLeft||bB.clientLeft||0;bv=bC.pageYOffset||bw.scrollTop;by=bC.pageXOffset||bw.scrollLeft;return{top:bA.top+bv-bz,left:bA.left+by-bD}};D.offset={bodyOffset:function(bv){var bx=bv.offsetTop,bw=bv.offsetLeft;if(D.support.doesNotIncludeMarginInBodyOffset){bx+=parseFloat(D.css(bv,"marginTop"))||0;bw+=parseFloat(D.css(bv,"marginLeft"))||0}return{top:bx,left:bw}},setOffset:function(by,bH,bB){var bC=D.css(by,"position");if(bC==="static"){by.style.position="relative"}var bA=D(by),bw=bA.offset(),bv=D.css(by,"top"),bF=D.css(by,"left"),bG=(bC==="absolute"||bC==="fixed")&&D.inArray("auto",[bv,bF])>-1,bE={},bD={},bx,bz;if(bG){bD=bA.position();bx=bD.top;bz=bD.left}else{bx=parseFloat(bv)||0;bz=parseFloat(bF)||0}if(D.isFunction(bH)){bH=bH.call(by,bB,bw)}if(bH.top!=null){bE.top=(bH.top-bw.top)+bx}if(bH.left!=null){bE.left=(bH.left-bw.left)+bz}if("using" in bH){bH.using.call(by,bE)}else{bA.css(bE)}}};D.fn.extend({isRendered:function(){var bw=this;var bv=this[0];if(bv.parentNode==null||(bv.offsetWidth===0||bv.offsetHeight===0)){return false}return true},getSizeFromStyle:function(){var bz=this;var by=null;var bv=null;var bx=this[0];var bw;if(bx.style.width){by=bx.style.width}if(bx.style.height){bv=bx.style.height}if(be.getComputedStyle){bw=getComputedStyle(bx,null)}else{bw=bx.currentStyle}if(bw){if(bw.width){by=bw.width}if(bw.height){bv=bw.height}}if(by==="0px"){by=0}if(bv==="0px"){bv=0}if(by===null){by=0}if(bv===null){bv=0}return{width:by,height:bv}},initAnimate:function(){},sizeStyleChanged:function(by){var bx=this;var bz;var bv=function(bA){var bB=bz;if(bA&&bA[0]&&bA[0].attributeName==="style"&&bA[0].type==="attributes"){if(bB.element.offsetWidth!==bB.offsetWidth||bB.element.offsetHeight!==bB.offsetHeight){bB.offsetWidth=bB.element.offsetWidth;bB.offsetHeight=bB.element.offsetHeight;if(bx.isRendered()){bB.callback()}}}};bz={element:bx[0],offsetWidth:bx[0].offsetWidth,offsetHeight:bx[0].offsetHeight,callback:by};try{if(!bx.elementStyleObserver){bx.elementStyleObserver=new MutationObserver(bv);bx.elementStyleObserver.observe(bx[0],{attributes:true,childList:false,characterData:false})}}catch(bw){}},position:function(){if(!this[0]){return}var bx=this[0],bw=this.offsetParent(),by=this.offset(),bv=W.test(bw[0].nodeName)?{top:0,left:0}:bw.offset();by.top-=parseFloat(D.css(bx,"marginTop"))||0;by.left-=parseFloat(D.css(bx,"marginLeft"))||0;bv.top+=parseFloat(D.css(bw[0],"borderTopWidth"))||0;bv.left+=parseFloat(D.css(bw[0],"borderLeftWidth"))||0;return{top:by.top-bv.top,left:by.left-bv.left}},offsetParent:function(){return this.map(function(){var bv=this.offsetParent||al.body;while(bv&&(!W.test(bv.nodeName)&&D.css(bv,"position")==="static")){bv=bv.offsetParent}return bv||al.body})}});D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(bx,bw){var bv=/Y/.test(bw);D.fn[bx]=function(by){return D.access(this,function(bz,bC,bB){var bA=aD(bz);if(bB===H){return bA?(bw in bA)?bA[bw]:bA.document.documentElement[bC]:bz[bC]}if(bA){bA.scrollTo(!bv?bB:D(bA).scrollLeft(),bv?bB:D(bA).scrollTop())}else{bz[bC]=bB}},bx,by,arguments.length,null)}});function aD(bv){return D.isWindow(bv)?bv:bv.nodeType===9?bv.defaultView||bv.parentWindow:false}D.each({Height:"height",Width:"width"},function(bv,bw){D.each({padding:"inner"+bv,content:bw,"":"outer"+bv},function(bx,by){D.fn[by]=function(bC,bB){var bA=arguments.length&&(bx||typeof bC!=="boolean"),bz=bx||(bC===true||bB===true?"margin":"border");return D.access(this,function(bE,bD,bF){var bG;if(D.isWindow(bE)){return bE.document.documentElement["client"+bv]}if(bE.nodeType===9){bG=bE.documentElement;return Math.max(bE.body["scroll"+bv],bG["scroll"+bv],bE.body["offset"+bv],bG["offset"+bv],bG["client"+bv])}return bF===H?D.css(bE,bD,bF,bz):D.style(bE,bD,bF,bz)},bw,bA?bC:H,bA,null)}})});be.JQXLite=be.jqxHelper=D;if(typeof define==="function"&&define.amd&&define.amd.JQXLite){define("jqx",[],function(){return D})}})(window)}(function(a){if(a.jQuery){a.minQuery=a.JQXLite=a.jQuery;return}if(!a.$){a.$=a.minQuery=a.JQXLite}else{a.minQuery=a.JQXLite=a.$}})(window);JQXLite.generateID=function(){var a=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};var b="";do{b="jqx"+a()+a()+a()}while($("#"+b).length>0);return b};var jqxBaseFramework=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(b){b.jqx=b.jqx||{};window.jqx=b.jqx;var a={createInstance:function(c,e,g){if(e=="jqxDataAdapter"){var f=g[0];var d=g[1]||{};return new b.jqx.dataAdapter(f,d)}b(c)[e](g||{});return b(c)[e]("getInstance")}};window.jqwidgets=a;b.jqx.define=function(c,d,e){c[d]=function(){if(this.baseType){this.base=new c[this.baseType]();this.base.defineInstance()}this.defineInstance();this.metaInfo()};c[d].prototype.defineInstance=function(){};c[d].prototype.metaInfo=function(){};c[d].prototype.base=null;c[d].prototype.baseType=undefined;if(e&&c[e]){c[d].prototype.baseType=e}};b.jqx.invoke=function(f,e){if(e.length==0){return}var g=typeof(e)==Array||e.length>0?e[0]:e;var d=typeof(e)==Array||e.length>1?Array.prototype.slice.call(e,1):b({}).toArray();while(f[g]==undefined&&f.base!=null){if(f[g]!=undefined&&b.isFunction(f[g])){return f[g].apply(f,d)}if(typeof g=="string"){var c=g.toLowerCase();if(f[c]!=undefined&&b.isFunction(f[c])){return f[c].apply(f,d)}}f=f.base}if(f[g]!=undefined&&b.isFunction(f[g])){return f[g].apply(f,d)}if(typeof g=="string"){var c=g.toLowerCase();if(f[c]!=undefined&&b.isFunction(f[c])){return f[c].apply(f,d)}}return};b.jqx.getByPriority=function(c){var e=undefined;for(var d=0;d<c.length&&e==undefined;d++){if(e==undefined&&c[d]!=undefined){e=c[d]}}return e};b.jqx.hasProperty=function(d,c){if(typeof(c)=="object"){for(var f in c){var e=d;while(e){if(e.hasOwnProperty(f)){return true}if(e.hasOwnProperty(f.toLowerCase())){return true}e=e.base}return false}}else{while(d){if(d.hasOwnProperty(c)){return true}if(d.hasOwnProperty(c.toLowerCase())){return true}d=d.base}}return false};b.jqx.hasFunction=function(f,e){if(e.length==0){return false}if(f==undefined){return false}var g=typeof(e)==Array||e.length>0?e[0]:e;var d=typeof(e)==Array||e.length>1?Array.prototype.slice.call(e,1):{};while(f[g]==undefined&&f.base!=null){if(f[g]&&b.isFunction(f[g])){return true}if(typeof g=="string"){var c=g.toLowerCase();if(f[c]&&b.isFunction(f[c])){return true}}f=f.base}if(f[g]&&b.isFunction(f[g])){return true}if(typeof g=="string"){var c=g.toLowerCase();if(f[c]&&b.isFunction(f[c])){return true}}return false};b.jqx.isPropertySetter=function(d,c){if(c.length==1&&typeof(c[0])=="object"){return true}if(c.length==2&&typeof(c[0])=="string"&&!b.jqx.hasFunction(d,c)){return true}return false};b.jqx.validatePropertySetter=function(g,e,c){if(!b.jqx.propertySetterValidation){return true}if(e.length==1&&typeof(e[0])=="object"){for(var f in e[0]){var h=g;while(!h.hasOwnProperty(f)&&h.base){h=h.base}if(!h||!h.hasOwnProperty(f)){if(!c){var d=h.hasOwnProperty(f.toString().toLowerCase());if(!d){throw"Invalid property: "+f}else{return true}}return false}}return true}if(e.length!=2){if(!c){throw"Invalid property: "+e.length>=0?e[0]:""}return false}while(!g.hasOwnProperty(e[0])&&g.base){g=g.base}if(!g||!g.hasOwnProperty(e[0])){if(!c){throw"Invalid property: "+e[0]}return false}return true};if(!Object.keys){Object.keys=(function(){var e=Object.prototype.hasOwnProperty,f=!({toString:null}).propertyIsEnumerable("toString"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=d.length;return function(j){if(typeof j!=="object"&&(typeof j!=="function"||j===null)){throw new TypeError("Object.keys called on non-object")}var g=[],k,h;for(k in j){if(e.call(j,k)){g.push(k)}}if(f){for(h=0;h<c;h++){if(e.call(j,d[h])){g.push(d[h])}}}return g}}())}b.jqx.set=function(f,j){var d=0;if(j.length==1&&typeof(j[0])=="object"){if(f.isInitialized&&Object.keys&&Object.keys(j[0]).length>1){var g=!f.base?f.element:f.base.element;var c=b.data(g,f.widgetName).initArgs;if(c&&JSON&&JSON.stringify&&j[0]&&c[0]){try{if(JSON.stringify(j[0])==JSON.stringify(c[0])){var h=true;b.each(j[0],function(m,n){if(f[m]!=n){h=false;return false}});if(h){return}}}catch(e){}}f.batchUpdate=j[0];var k={};var l={};b.each(j[0],function(m,n){var o=f;while(!o.hasOwnProperty(m)&&o.base!=null){o=o.base}if(o.hasOwnProperty(m)){if(f[m]!=n){k[m]=f[m];l[m]=n;d++}}else{if(o.hasOwnProperty(m.toLowerCase())){if(f[m.toLowerCase()]!=n){k[m.toLowerCase()]=f[m.toLowerCase()];l[m.toLowerCase()]=n;d++}}}});if(d<2){f.batchUpdate=null}}b.each(j[0],function(m,n){var o=f;while(!o.hasOwnProperty(m)&&o.base!=null){o=o.base}if(o.hasOwnProperty(m)){b.jqx.setvalueraiseevent(o,m,n)}else{if(o.hasOwnProperty(m.toLowerCase())){b.jqx.setvalueraiseevent(o,m.toLowerCase(),n)}else{if(b.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+m+"'"}}}});if(f.batchUpdate!=null){f.batchUpdate=null;if(f.propertiesChangedHandler&&d>1){f.propertiesChangedHandler(f,k,l)}}}else{if(j.length==2){while(!f.hasOwnProperty(j[0])&&f.base){f=f.base}if(f.hasOwnProperty(j[0])){b.jqx.setvalueraiseevent(f,j[0],j[1])}else{if(f.hasOwnProperty(j[0].toLowerCase())){b.jqx.setvalueraiseevent(f,j[0].toLowerCase(),j[1])}else{if(b.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+j[0]+"'"}}}}}};b.jqx.setvalueraiseevent=function(d,e,f){var c=d[e];d[e]=f;if(!d.isInitialized){return}if(d.propertyChangedHandler!=undefined){d.propertyChangedHandler(d,e,c,f)}if(d.propertyChangeMap!=undefined&&d.propertyChangeMap[e]!=undefined){d.propertyChangeMap[e](d,e,c,f)}};b.jqx.get=function(f,e){if(e==undefined||e==null){return undefined}if(f.propertyMap){var d=f.propertyMap(e);if(d!=null){return d}}if(f.hasOwnProperty(e)){return f[e]}if(f.hasOwnProperty(e.toLowerCase())){return f[e.toLowerCase()]}var c=undefined;if(typeof(e)==Array){if(e.length!=1){return undefined}c=e[0]}else{if(typeof(e)=="string"){c=e}}while(!f.hasOwnProperty(c)&&f.base){f=f.base}if(f){return f[c]}return undefined};b.jqx.serialize=function(f){var c="";if(b.isArray(f)){c="[";for(var e=0;e<f.length;e++){if(e>0){c+=", "}c+=b.jqx.serialize(f[e])}c+="]"}else{if(typeof(f)=="object"){c="{";var d=0;for(var e in f){if(d++>0){c+=", "}c+=e+": "+b.jqx.serialize(f[e])}c+="}"}else{c=f.toString()}}return c};b.jqx.propertySetterValidation=true;b.jqx.jqxWidgetProxy=function(h,d,c){var e=b(d);var g=b.data(d,h);if(g==undefined){return undefined}var f=g.instance;if(b.jqx.hasFunction(f,c)){return b.jqx.invoke(f,c)}if(b.jqx.isPropertySetter(f,c)){if(b.jqx.validatePropertySetter(f,c)){b.jqx.set(f,c);return undefined}}else{if(typeof(c)=="object"&&c.length==0){return}else{if(typeof(c)=="object"&&c.length==1&&b.jqx.hasProperty(f,c[0])){return b.jqx.get(f,c[0])}else{if(typeof(c)=="string"&&b.jqx.hasProperty(f,c[0])){return b.jqx.get(f,c)}}}}throw"jqxCore: Invalid parameter '"+b.jqx.serialize(c)+"' does not exist."};b.jqx.applyWidget=function(d,f,l,m){var h=false;try{h=window.MSApp!=undefined}catch(g){}var n=b(d);if(!m){m=new b.jqx["_"+f]()}else{m.host=n;m.element=d}if(d.id==""){d.id=b.jqx.utilities.createId()}var k={host:n,element:d,instance:m,initArgs:l};m.widgetName=f;b.data(d,f,k);b.data(d,"jqxWidget",k.instance);var j=new Array();var m=k.instance;while(m){m.isInitialized=false;j.push(m);m=m.base}j.reverse();j[0].theme=b.jqx.theme||"";b.jqx.jqxWidgetProxy(f,d,l);for(var c in j){m=j[c];if(c==0){m.host=n;m.element=d;m.WinJS=h}if(m!=undefined){if(m.definedInstance){m.definedInstance()}if(m.createInstance!=null){if(h){MSApp.execUnsafeLocalFunction(function(){m.createInstance(l)})}else{m.createInstance(l)}}}}for(var c in j){if(j[c]!=undefined){j[c].isInitialized=true}}if(h){MSApp.execUnsafeLocalFunction(function(){k.instance.refresh(true)})}else{k.instance.refresh(true)}};b.jqx.jqxWidget=function(c,d,g){var k=false;try{jqxArgs=Array.prototype.slice.call(g,0)}catch(j){jqxArgs=""}try{k=window.MSApp!=undefined}catch(j){}var h=c;var m="";if(d){m="_"+d}b.jqx.define(b.jqx,"_"+h,m);var l=new Array();if(!window[h]){var f=function(n){if(n==null){return""}var e=b.type(n);switch(e){case"string":case"number":case"date":case"boolean":case"bool":if(n===null){return""}return n.toString()}var o="";b.each(n,function(q,r){var t=r;if(q>0){o+=", "}o+="[";var p=0;if(b.type(t)=="object"){for(var s in t){if(p>0){o+=", "}o+="{"+s+":"+t[s]+"}";p++}}else{if(p>0){o+=", "}o+="{"+q+":"+t+"}";p++}o+="]"});return o};a[h]=window[h]=function(e,s){var n=[];if(!s){s={}}n.push(s);var o=e;if(b.type(o)==="object"&&e[0]){o=e[0].id;if(o===""){o=e[0].id=b.jqx.utilities.createId()}}else{if(b.type(e)==="object"&&e&&e.nodeName){o=e.id;if(o===""){o=e.id=b.jqx.utilities.createId()}}}if(window.jqxWidgets&&window.jqxWidgets[o]){if(s){b.each(window.jqxWidgets[o],function(t){var u=b(this.element).data();if(u&&u.jqxWidget){b(this.element)[h](s)}})}if(window.jqxWidgets[o].length==1){var q=b(window.jqxWidgets[o][0].widgetInstance.element).data();if(q&&q.jqxWidget){return window.jqxWidgets[o][0]}}var q=b(window.jqxWidgets[o][0].widgetInstance.element).data();if(q&&q.jqxWidget){return window.jqxWidgets[o]}}var p=b(e);if(p.length===0){p=b("<div></div>");if(h==="jqxInput"||h==="jqxPasswordInput"||h==="jqxMaskedInput"){p=b("<input/>")}if(h==="jqxTextArea"){p=b("<textarea></textarea>")}if(h==="jqxButton"||h==="jqxRepeatButton"||h==="jqxToggleButton"){p=b("<button/>")}if(h==="jqxSplitter"){p=b("<div><div>Panel 1</div><div>Panel 2</div></div>")}if(h==="jqxTabs"){p=b("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")}if(h==="jqxRibbon"){p=b("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")}if(h==="jqxDocking"){p=b("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")}if(h==="jqxWindow"){p=b("<div><div>Title 1</div><div>Content 1</div></div>")}}var r=[];b.each(p,function(w){var y=p[w];b.jqx.applyWidget(y,h,n,undefined);if(!l[h]){var u=b.data(y,"jqxWidget");var x=b.jqx["_"+h].prototype.defineInstance();var v={};if(b.jqx["_"+h].prototype.metaInfo){v=b.jqx["_"+h].prototype.metaInfo()}if(h=="jqxDockingLayout"){x=b.extend(x,b.jqx._jqxLayout.prototype.defineInstance())}if(h=="jqxToggleButton"||h=="jqxRepeatButton"){x=b.extend(x,b.jqx._jqxButton.prototype.defineInstance())}if(h=="jqxTreeGrid"){x=b.extend(x,b.jqx._jqxDataTable.prototype.defineInstance())}var t=function(A){var z=b.data(A,"jqxWidget");this.widgetInstance=z;var B=b.extend(this,z);B.on=B.addEventListener=function(D,E){B.addHandler(!B.base?B.host:B.base.host,D,E)};B.off=B.removeEventListener=function(D){B.removeHandler(!B.base?B.host:B.base.host,D)};for(var C in z){if(b.type(z[C])=="function"){B[C]=b.proxy(z[C],z)}}return B};l[h]=t;b.each(x,function(A,z){Object.defineProperty(t.prototype,A,{get:function(){if(this.widgetInstance){return this.widgetInstance[A]}return z},set:function(H){if(this.widgetInstance&&(this.widgetInstance[A]!=H||A==="width"||A==="height")){var F=this.widgetInstance[A];var E=H;var D=b.type(F);var B=b.type(E);var G=false;if(D!=B||A==="source"||A==="width"||A==="height"){G=true}if(G||(f(F)!=f(E))){var C={};C[A]=H;if(this.widgetInstance.host){this.widgetInstance.host[h](C)}else{this.widgetInstance.base.host[h](C)}this.widgetInstance[A]=H;if(this.widgetInstance.propertyUpdated){this.widgetInstance.propertyUpdated(A,F,H)}}}}})})}var u=new l[h](y);r.push(u);if(!window.jqxWidgets){window.jqxWidgets=new Array()}if(!window.jqxWidgets[o]){window.jqxWidgets[o]=new Array()}window.jqxWidgets[o].push(u)});if(r.length===1){return r[0]}return r}}b.fn[h]=function(){var e=Array.prototype.slice.call(arguments,0);if(e.length==0||(e.length==1&&typeof(e[0])=="object")){if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}return this.each(function(){var q=b(this);var p=this;var r=b.data(p,h);if(r==null){b.jqx.applyWidget(p,h,e,undefined)}else{b.jqx.jqxWidgetProxy(h,this,e)}})}else{if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}var o=null;var n=0;this.each(function(){var p=b.jqx.jqxWidgetProxy(h,this,e);if(n==0){o=p;n++}else{if(n==1){var q=[];q.push(o);o=q}o.push(p)}})}return o};try{b.extend(b.jqx["_"+h].prototype,Array.prototype.slice.call(g,0)[0])}catch(j){}b.extend(b.jqx["_"+h].prototype,{toThemeProperty:function(e,n){return b.jqx.toThemeProperty(this,e,n)},isMaterialized:function(){if(!this.theme){return false}if(this.theme.indexOf("material")>=0){return true}},isModern:function(){if(!this.theme){return false}if(this.theme.indexOf("light")>=0){return true}if(this.theme==="dark"){return true}},_addBarAndLabel:function(p){var o=this;var e=b("<label></label");e[0].innerHTML=this.placeHolder;e.addClass(o.toThemeProperty("jqx-input-label"));p.after(e);o.label=e;var n=b("<span></span>");p.after(n);n.addClass(o.toThemeProperty("jqx-input-bar"));o.bar=n;o.bar.css("top",this.host.height())}});b.jqx["_"+h].prototype.refresh=function(){if(this.base){this.base.refresh(true)}};b.jqx["_"+h].prototype.createInstance=function(){};b.jqx["_"+h].prototype.addEventHandler=function(n,e){if(this.base){this.base.host.on(n,e)}else{this.host.on(n,e)}};b.jqx["_"+h].prototype.removeEventHandler=function(n,e){if(this.base){this.base.host.off(n)}else{this.host.off(n)}};b.jqx["_"+h].prototype.applyTo=function(o,n){if(!(n instanceof Array)){var e=[];e.push(n);n=e}b.jqx.applyWidget(o,h,n,this)};b.jqx["_"+h].prototype.getInstance=function(){return this};b.jqx["_"+h].prototype.propertyChangeMap={};b.jqx["_"+h].prototype.addHandler=function(p,e,n,o){b.jqx.addHandler(b(p),e,n,o)};b.jqx["_"+h].prototype.removeHandler=function(o,e,n){b.jqx.removeHandler(b(o),e,n)};b.jqx["_"+h].prototype.setOptions=function(){if(!this.host||!this.host.length||this.host.length!=1){return}return b.jqx.jqxWidgetProxy(h,this.host[0],arguments)}};b.jqx.toThemeProperty=function(d,e,j){if(d.theme==""){return e}var h=e.split(" ");var c="";for(var g=0;g<h.length;g++){if(g>0){c+=" "}var f=h[g];if(j!=null&&j){c+=f+"-"+d.theme}else{c+=f+" "+f+"-"+d.theme}}return c};b.jqx.addHandler=function(h,j,f,g){var d=j.split(" ");for(var c=0;c<d.length;c++){var e=d[c];if(window.addEventListener){switch(e){case"mousewheel":if(b.jqx.browser.mozilla){h[0].addEventListener("DOMMouseScroll",f,false)}else{h[0].addEventListener("mousewheel",f,false)}continue;case"mousemove":if(!g){h[0].addEventListener("mousemove",f,false);continue}break}}if(g==undefined||g==null){if(h.on){h.on(e,f)}else{h.bind(e,f)}}else{if(h.on){h.on(e,g,f)}else{h.bind(e,g,f)}}}};b.jqx.removeHandler=function(g,h,f){if(!h){if(g.off){g.off()}else{g.unbind()}return}var d=h.split(" ");for(var c=0;c<d.length;c++){var e=d[c];if(window.removeEventListener){switch(e){case"mousewheel":if(b.jqx.browser.mozilla){g[0].removeEventListener("DOMMouseScroll",f,false)}else{g[0].removeEventListener("mousewheel",f,false)}continue;case"mousemove":if(f){g[0].removeEventListener("mousemove",f,false);continue}break}}if(e==undefined){if(g.off){g.off()}else{g.unbind()}continue}if(f==undefined){if(g.off){g.off(e)}else{g.unbind(e)}}else{if(g.off){g.off(e,f)}else{g.unbind(e,f)}}}};b.jqx.credits=b.jqx.credits||"";b.jqx.theme=b.jqx.theme||"";b.jqx.scrollAnimation=b.jqx.scrollAnimation||false;b.jqx.resizeDelay=b.jqx.resizeDelay||10;b.jqx.ready=function(){b(window).trigger("jqxReady")};b.jqx.init=function(){b.each(arguments[0],function(c,d){if(c=="theme"){b.jqx.theme=d}if(c=="scrollBarSize"){b.jqx.utilities.scrollBarSize=d}if(c=="touchScrollBarSize"){b.jqx.utilities.touchScrollBarSize=d}if(c=="scrollBarButtonsVisibility"){b.jqx.utilities.scrollBarButtonsVisibility=d}})};b.jqx.utilities=b.jqx.utilities||{};b.extend(b.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var c=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return"jqxWidget"+c()+c()+c()},setTheme:function(g,h,f){if(typeof f==="undefined"){return}if(!f[0].className.split){return}var j=f[0].className.split(" "),c=[],k=[],e=f.children();for(var d=0;d<j.length;d+=1){if(j[d].indexOf(g)>=0){if(g.length>0){c.push(j[d]);k.push(j[d].replace(g,h))}else{k.push(j[d].replace("-"+h,"")+"-"+h)}}}this._removeOldClasses(c,f);this._addNewClasses(k,f);for(var d=0;d<e.length;d+=1){this.setTheme(g,h,b(e[d]))}},_removeOldClasses:function(e,d){for(var c=0;c<e.length;c+=1){d.removeClass(e[c])}},_addNewClasses:function(e,d){for(var c=0;c<e.length;c+=1){d.addClass(e[c])}},getOffset:function(c){var e=b.jqx.mobile.getLeftPos(c[0]);var d=b.jqx.mobile.getTopPos(c[0]);return{top:d,left:e}},resize:function(h,t,q,p){if(p===undefined){p=true}var m=-1;var l=this;var e=function(v){if(!l.hiddenWidgets){return -1}var w=-1;for(var u=0;u<l.hiddenWidgets.length;u++){if(v.id){if(l.hiddenWidgets[u].id==v.id){w=u;break}}else{if(l.hiddenWidgets[u].id==v[0].id){w=u;break}}}return w};if(this.resizeHandlers){for(var j=0;j<this.resizeHandlers.length;j++){if(h.id){if(this.resizeHandlers[j].id==h.id){m=j;break}}else{if(this.resizeHandlers[j].id==h[0].id){m=j;break}}}if(q===true){if(m!=-1){this.resizeHandlers.splice(m,1);if(this.watchedElementData&&this.watchedElementData.length>0){this.watchedElementData.splice(m,1)}}if(this.resizeHandlers.length==0){var o=b(window);if(o.off){o.off("resize.jqx");o.off("orientationchange.jqx");o.off("orientationchanged.jqx")}else{o.unbind("resize.jqx");o.unbind("orientationchange.jqx");o.unbind("orientationchanged.jqx")}this.resizeHandlers=null}var c=e(h);if(c!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(c,1)}return}}else{if(q===true){var c=e(h);if(c!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(c,1)}return}}var l=this;var n=function(w,F){if(!l.resizeHandlers){return}var G=function(K){var J=-1;var L=K.parentNode;while(L){J++;L=L.parentNode}return J};var v=function(M,K){if(!M.widget||!K.widget){return 0}var L=G(M.widget[0]);var J=G(K.widget[0]);try{if(L<J){return -1}if(L>J){return 1}}catch(N){var O=N}return 0};var x=function(K){if(l.hiddenWidgets.length>0){l.hiddenWidgets.sort(v);var J=function(){var M=false;var O=new Array();for(var N=0;N<l.hiddenWidgets.length;N++){var L=l.hiddenWidgets[N];if(b.jqx.isHidden(L.widget)){M=true;O.push(L)}else{if(L.callback){L.callback(F)}}}l.hiddenWidgets=O;if(!M){clearInterval(l.__resizeInterval)}};if(K==false){J();if(l.__resizeInterval){clearInterval(l.__resizeInterval)}return}if(l.__resizeInterval){clearInterval(l.__resizeInterval)}l.__resizeInterval=setInterval(function(){J()},100)}};if(l.hiddenWidgets&&l.hiddenWidgets.length>0){x(false)}l.hiddenWidgets=new Array();l.resizeHandlers.sort(v);for(var C=0;C<l.resizeHandlers.length;C++){var I=l.resizeHandlers[C];var E=I.widget;var B=I.data;if(!B){continue}if(!B.jqxWidget){continue}var u=B.jqxWidget.width;var H=B.jqxWidget.height;if(B.jqxWidget.base){if(u==undefined){u=B.jqxWidget.base.width}if(H==undefined){H=B.jqxWidget.base.height}}if(u===undefined&&H===undefined){u=B.jqxWidget.element.style.width;H=B.jqxWidget.element.style.height}var D=false;if(u!=null&&u.toString().indexOf("%")!=-1){D=true}if(H!=null&&H.toString().indexOf("%")!=-1){D=true}if(b.jqx.isHidden(E)){if(e(E)===-1){if(D||w===true){if(I.data.nestedWidget!==true){l.hiddenWidgets.push(I)}}}}else{if(w===undefined||w!==true){if(D){I.callback(F);if(l.watchedElementData){for(var z=0;z<l.watchedElementData.length;z++){if(l.watchedElementData[z].element==B.jqxWidget.element){l.watchedElementData[z].offsetWidth=B.jqxWidget.element.offsetWidth;l.watchedElementData[z].offsetHeight=B.jqxWidget.element.offsetHeight;break}}}if(l.hiddenWidgets.indexOf(I)>=0){l.hiddenWidgets.splice(l.hiddenWidgets.indexOf(I),1)}}if(B.jqxWidget.element){var y=B.jqxWidget.element.className;if(y.indexOf("dropdownlist")>=0||y.indexOf("datetimeinput")>=0||y.indexOf("combobox")>=0||y.indexOf("menu")>=0){if(B.jqxWidget.isOpened){var A=B.jqxWidget.isOpened();if(A){if(F&&F=="resize"&&b.jqx.mobile.isTouchDevice()){continue}B.jqxWidget.close()}}}}}}}x()};if(!this.resizeHandlers){this.resizeHandlers=new Array();var o=b(window);if(o.on){this._resizeTimer=null;this._initResize=null;o.on("resize.jqx",function(u){if(l._resizeTimer!=undefined){clearTimeout(l._resizeTimer)}if(!l._initResize){l._initResize=true;n(null,"resize")}else{l._resizeTimer=setTimeout(function(){n(null,"resize")},b.jqx.resizeDelay)}});o.on("orientationchange.jqx",function(u){n(null,"orientationchange")});o.on("orientationchanged.jqx",function(u){n(null,"orientationchange")})}else{o.bind("resize.jqx",function(u){n(null,"orientationchange")});o.bind("orientationchange.jqx",function(u){n(null,"orientationchange")});o.bind("orientationchanged.jqx",function(u){n(null,"orientationchange")})}}var f=h.data();if(p){if(m===-1){this.resizeHandlers.push({id:h[0].id,widget:h,callback:t,data:f})}}try{var d=f.jqxWidget.width;var s=f.jqxWidget.height;if(f.jqxWidget.base){if(d==undefined){d=f.jqxWidget.base.width}if(s==undefined){s=f.jqxWidget.base.height}}if(d===undefined&&s===undefined){d=f.jqxWidget.element.style.width;s=f.jqxWidget.element.style.height}var k=false;if(d!=null&&d.toString().indexOf("%")!=-1){k=true}if(s!=null&&s.toString().indexOf("%")!=-1){k=true}if(k){if(!this.watchedElementData){this.watchedElementData=[]}var l=this;var g=function(u){if(l.watchedElementData.forEach){l.watchedElementData.forEach(function(v){if(v.element.offsetWidth!==v.offsetWidth||v.element.offsetHeight!==v.offsetHeight){v.offsetWidth=v.element.offsetWidth;v.offsetHeight=v.element.offsetHeight;if(v.timer){clearTimeout(v.timer)}v.timer=setTimeout(function(){if(!b.jqx.isHidden(b(v.element))){v.callback()}else{v.timer=setInterval(function(){if(!b.jqx.isHidden(b(v.element))){clearInterval(v.timer);v.callback()}},100)}})}})}};l.watchedElementData.push({element:h[0],offsetWidth:h[0].offsetWidth,offsetHeight:h[0].offsetHeight,callback:t});if(!l.observer){l.observer=new MutationObserver(g);l.observer.observe(document.body,{attributes:true,childList:true,characterData:true})}}}catch(r){}if(b.jqx.isHidden(h)&&p===true){n(true)}b.jqx.resize=function(){n(null,"resize")}},parseJSON:function(e){if(!e||typeof e!=="string"){return null}var c=/^[\],:{}\s]*$/,g=/(?:^|:|,)(?:\s*\[)+/g,d=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,f=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;e=b.trim(e);if(window.JSON&&window.JSON.parse){return window.JSON.parse(e)}if(c.test(e.replace(d,"@").replace(f,"]").replace(g,""))){return(new Function("return "+e))()}throw new Error("Invalid JSON: "+e)},html:function(d,e){if(!b(d).on){return b(d).html(e)}try{return b.access(d,function(s){var f=d[0]||{},m=0,j=d.length;if(s===undefined){return f.nodeType===1?f.innerHTML.replace(rinlinejQuery,""):undefined}var r=/<(?:script|style|link)/i,n="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",h=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,p=/<([\w:]+)/,g=/<(?:script|object|embed|option|style)/i,k=new RegExp("<(?:"+n+")[\\s/>]","i"),q=/^\s+/,t={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof s==="string"&&!r.test(s)&&(b.support.htmlSerialize||!k.test(s))&&(b.support.leadingWhitespace||!q.test(s))&&!t[(p.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(h,"<$1></$2>");try{for(;m<j;m++){f=this[m]||{};if(f.nodeType===1){b.cleanData(f.getElementsByTagName("*"));f.innerHTML=s}}f=0}catch(o){}}if(f){d.empty().append(s)}},null,e,arguments.length)}catch(c){return b(d).html(e)}},hasTransform:function(e){var d="";d=e.css("transform");if(d==""||d=="none"){d=e.parents().css("transform");if(d==""||d=="none"){var c=b.jqx.utilities.getBrowser();if(c.browser=="msie"){d=e.css("-ms-transform");if(d==""||d=="none"){d=e.parents().css("-ms-transform")}}else{if(c.browser=="chrome"){d=e.css("-webkit-transform");if(d==""||d=="none"){d=e.parents().css("-webkit-transform")}}else{if(c.browser=="opera"){d=e.css("-o-transform");if(d==""||d=="none"){d=e.parents().css("-o-transform")}}else{if(c.browser=="mozilla"){d=e.css("-moz-transform");if(d==""||d=="none"){d=e.parents().css("-moz-transform")}}}}}}else{return d!=""&&d!="none"}}if(d==""||d=="none"){d=b(document.body).css("transform")}return d!=""&&d!="none"&&d!=null},getBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=/(chrome)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||d.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[];var e={browser:c[1]||"",version:c[2]||"0"};if(d.indexOf("rv:11.0")>=0&&d.indexOf(".net4.0c")>=0){e.browser="msie";e.version="11";c[1]="msie"}if(d.indexOf("edge")>=0){e.browser="msie";e.version="12";c[1]="msie"}e[c[1]]=c[1];return e}});b.jqx.browser=b.jqx.utilities.getBrowser();b.jqx.isHidden=function(d){if(!d||!d[0]){return false}var c=d[0].offsetWidth,e=d[0].offsetHeight;if(c===0||e===0){return true}else{return false}};b.jqx.ariaEnabled=true;b.jqx.aria=function(d,f,e){if(!b.jqx.ariaEnabled){return}if(f==undefined){b.each(d.aria,function(h,j){var l=!d.base?d.host.attr(h):d.base.host.attr(h);if(l!=undefined&&!b.isFunction(l)){var k=l;switch(j.type){case"number":k=new Number(l);if(isNaN(k)){k=l}break;case"boolean":k=l=="true"?true:false;break;case"date":k=new Date(l);if(k=="Invalid Date"||isNaN(k)){k=l}break}d[j.name]=k}else{var l=d[j.name];if(b.isFunction(l)){l=d[j.name]()}if(l==undefined){l=""}try{!d.base?d.host.attr(h,l.toString()):d.base.host.attr(h,l.toString())}catch(g){}}})}else{try{if(d.host){if(!d.base){if(d.host){if(d.element.setAttribute){d.element.setAttribute(f,e.toString())}else{d.host.attr(f,e.toString())}}else{d.attr(f,e.toString())}}else{if(d.base.host){d.base.host.attr(f,e.toString())}else{d.attr(f,e.toString())}}}else{if(d.setAttribute){d.setAttribute(f,e.toString())}}}catch(c){}}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d){var c=this.length;var e=Number(arguments[1])||0;e=(e<0)?Math.ceil(e):Math.floor(e);if(e<0){e+=c}for(;e<c;e++){if(e in this&&this[e]===d){return e}}return -1}}b.jqx.mobile=b.jqx.mobile||{};b.jqx.position=function(c){var f=parseInt(c.pageX);var e=parseInt(c.pageY);if(b.jqx.mobile.isTouchDevice()){var d=b.jqx.mobile.getTouches(c);var g=d[0];f=parseInt(g.pageX);e=parseInt(g.pageY)}return{left:f,top:e}};b.extend(b.jqx.mobile,{_touchListener:function(j,g){var c=function(k,m){var l=document.createEvent("MouseEvents");l.initMouseEvent(k,m.bubbles,m.cancelable,m.view,m.detail,m.screenX,m.screenY,m.clientX,m.clientY,m.ctrlKey,m.altKey,m.shiftKey,m.metaKey,m.button,m.relatedTarget);l._pageX=m.pageX;l._pageY=m.pageY;return l};var h={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var f=c(h[j.type],j);j.target.dispatchEvent(f);var d=j.target["on"+h[j.type]];if(typeof d==="function"){d(j)}},setMobileSimulator:function(d,f){if(this.isTouchDevice()){return}this.simulatetouches=true;if(f==false){this.simulatetouches=false}var e={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var c=this;if(window.addEventListener){var g=function(){for(var h in e){if(d.addEventListener){d.removeEventListener(h,c._touchListener);d.addEventListener(h,c._touchListener,false)}}};if(b.jqx.browser.msie){g()}else{g()}}},isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var d="Browser CodeName: "+navigator.appCodeName+"";d+="Browser Name: "+navigator.appName+"";d+="Browser Version: "+navigator.appVersion+"";d+="Platform: "+navigator.platform+"";d+="User-agent header: "+navigator.userAgent+"";if(d.indexOf("Android")!=-1){return true}if(d.indexOf("IEMobile")!=-1){return true}if(d.indexOf("Windows Phone")!=-1){return true}if(d.indexOf("WPDesktop")!=-1){return true}if(d.indexOf("ZuneWP7")!=-1){return true}if(d.indexOf("BlackBerry")!=-1&&d.indexOf("Mobile Safari")!=-1){return true}if(d.indexOf("ipod")!=-1){return true}if(d.indexOf("nokia")!=-1||d.indexOf("Nokia")!=-1){return true}if(d.indexOf("Chrome/17")!=-1){return false}if(d.indexOf("CrOS")!=-1){return false}if(d.indexOf("Opera")!=-1&&d.indexOf("Mobi")==-1&&d.indexOf("Mini")==-1&&d.indexOf("Platform: Win")!=-1){return false}if(d.indexOf("HybridDeviceTouch")!=-1){return true}if(d.indexOf("HybridDeviceMouse")!=-1){return false}if(d.indexOf("Opera")!=-1&&d.indexOf("Mobi")!=-1&&d.indexOf("Opera Mobi")!=-1){return true}var f={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=undefined){return this.touchDevice}this.touchDevice=false;for(i in f){if(f.hasOwnProperty(i)){prefix=f[i];match=d.match(new RegExp("(?:"+prefix+")([^\\s;]+)"));if(match){if(i.toString()=="blackberry"){this.touchDevice=false;return false}this.touchDevice=true;return true}}}var g=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(g.indexOf("Windows Phone")>=0||g.indexOf("WPDesktop")>=0||g.indexOf("IEMobile")>=0||g.indexOf("ZuneWP7")>=0){this.touchDevice=true;return true}else{if(g.indexOf("Touch")>=0){var c=("MSPointerDown" in window)||("pointerdown" in window);if(c){this.touchDevice=true;return true}if(g.indexOf("ARM")>=0){this.touchDevice=true;return true}this.touchDevice=false;return false}}}if(navigator.platform.toLowerCase().indexOf("win")!=-1){this.touchDevice=false;return false}if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){this.touchDevice=true}return this.touchDevice}catch(h){this.touchDevice=false;return false}},getLeftPos:function(c){var d=c.offsetLeft;while((c=c.offsetParent)!=null){if(c.tagName!="HTML"){d+=c.offsetLeft;if(document.all){d+=c.clientLeft}}}return d},getTopPos:function(d){var f=d.offsetTop;var c=b(d).coord();while((d=d.offsetParent)!=null){if(d.tagName!="HTML"){f+=(d.offsetTop-d.scrollTop);if(document.all){f+=d.clientTop}}}var e=navigator.userAgent.toLowerCase();var g=(e.indexOf("windows phone")!=-1||e.indexOf("WPDesktop")!=-1||e.indexOf("ZuneWP7")!=-1||e.indexOf("msie 9")!=-1||e.indexOf("msie 11")!=-1||e.indexOf("msie 10")!=-1)&&e.indexOf("touch")!=-1;if(g){return c.top}if(this.isSafariMobileBrowser()){if(this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()){return f}if(e.indexOf("version/7")!=-1){return c.top}if(e.indexOf("version/6")!=-1||e.indexOf("version/5")!=-1){f=f+b(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return f+b(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return f+b(window).scrollTop()}return c.top}return f},isChromeMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("android")!=-1;return c},isOperaMiniMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("opera mini")!=-1||d.indexOf("opera mobi")!=-1;return c},isOperaMiniBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("opera mini")!=-1;return c},isNewSafariMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("ipad")!=-1||d.indexOf("iphone")!=-1||d.indexOf("ipod")!=-1;c=c&&(d.indexOf("version/5")!=-1);return c},isSafari4MobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("ipad")!=-1||d.indexOf("iphone")!=-1||d.indexOf("ipod")!=-1;c=c&&(d.indexOf("version/4")!=-1);return c},isWindowsPhone:function(){var d=navigator.userAgent.toLowerCase();var c=(d.indexOf("windows phone")!=-1||d.indexOf("WPDesktop")!=-1||d.indexOf("ZuneWP7")!=-1||d.indexOf("msie 9")!=-1||d.indexOf("msie 11")!=-1||d.indexOf("msie 10")!=-1&&d.indexOf("touch")!=-1);return c},isSafariMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return true}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return true}var c=d.indexOf("ipad")!=-1||d.indexOf("iphone")!=-1||d.indexOf("ipod")!=-1||d.indexOf("mobile safari")!=-1;return c},isIPadSafariMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("ipad")!=-1;return c},isMobileBrowser:function(){var d=navigator.userAgent.toLowerCase();var c=d.indexOf("ipad")!=-1||d.indexOf("iphone")!=-1||d.indexOf("android")!=-1;return c},getTouches:function(c){if(c.originalEvent){if(c.originalEvent.touches&&c.originalEvent.touches.length){return c.originalEvent.touches}else{if(c.originalEvent.changedTouches&&c.originalEvent.changedTouches.length){return c.originalEvent.changedTouches}}}if(!c.touches){c.touches=new Array();c.touches[0]=c.originalEvent!=undefined?c.originalEvent:c;if(c.originalEvent!=undefined&&c.pageX){c.touches[0]=c}if(c.type=="mousemove"){c.touches[0]=c}}return c.touches},getTouchEventName:function(c){if(this.isWindowsPhone()){var d=navigator.userAgent.toLowerCase();if(d.indexOf("windows phone 7")!=-1){if(c.toLowerCase().indexOf("start")!=-1){return"MSPointerDown"}if(c.toLowerCase().indexOf("move")!=-1){return"MSPointerMove"}if(c.toLowerCase().indexOf("end")!=-1){return"MSPointerUp"}}if(c.toLowerCase().indexOf("start")!=-1){return"pointerdown"}if(c.toLowerCase().indexOf("move")!=-1){return"pointermove"}if(c.toLowerCase().indexOf("end")!=-1){return"pointerup"}}else{return c}},dispatchMouseEvent:function(c,g,f){if(this.simulatetouches){return}var d=document.createEvent("MouseEvent");d.initMouseEvent(c,true,true,g.view,1,g.screenX,g.screenY,g.clientX,g.clientY,false,false,false,false,0,null);if(f!=null){f.dispatchEvent(d)}},getRootNode:function(c){while(c.nodeType!==1){c=c.parentNode}return c},setTouchScroll:function(c,d){if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[d]=c},touchScroll:function(B,M,W,H,x,n){if(B==null){return}var G=this;var f=0;var r=0;var g=0;var h=0;var t=0;var j=0;if(!this.scrolling){this.scrolling=[]}this.scrolling[H]=false;var k=false;var p=b(B);var Q=["select","input","textarea"];var U=0;var J=0;if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[H]=true;var H=H;var u=this.getTouchEventName("touchstart")+".touchScroll";var D=this.getTouchEventName("touchend")+".touchScroll";var Y=this.getTouchEventName("touchmove")+".touchScroll";var l,T,z,V,ae,P,X,d,F,aa,ac,e,w,v,R,c,E,ad,o;P=M;ae=0;X=0;xoffset=0;initialOffset=0;initialXOffset=0;V=x.jqxScrollBar("max");o=325;function A(ah){if(ah.targetTouches&&(ah.targetTouches.length>=1)){return ah.targetTouches[0].clientY}else{if(ah.originalEvent&&ah.originalEvent.clientY!==undefined){return ah.originalEvent.clientY}else{var ag=G.getTouches(ah);return ag[0].clientY}}}function ab(ah){if(ah.targetTouches&&(ah.targetTouches.length>=1)){return ah.targetTouches[0].clientX}else{if(ah.originalEvent&&ah.originalEvent.clientX!==undefined){return ah.originalEvent.clientX}else{var ag=G.getTouches(ah);return ag[0].clientX}}}var I=function(){var ai,ag,aj,ah;ai=Date.now();ag=ai-w;w=ai;aj=X-e;xdelta=xoffset-xframe;e=X;xframe=xoffset;F=true;ah=1000*aj/(1+ag);xv=1000*xdelta/(1+ag);ac=0.8*ah+0.2*ac;xjqxAnimations=0.8*xv+0.2*xjqxAnimations};var C=false;var U=function(ah){if(!G.enableScrolling[H]){return true}if(b.inArray(ah.target.tagName.toLowerCase(),Q)!==-1){return}X=n.jqxScrollBar("value");xoffset=x.jqxScrollBar("value");var ai=G.getTouches(ah);var aj=ai[0];if(ai.length==1){G.dispatchMouseEvent("mousedown",aj,G.getRootNode(aj.target))}V=x.jqxScrollBar("max");P=n.jqxScrollBar("max");function ag(ak){C=false;F=true;d=A(ak);ad=ab(ak);ac=R=xjqxAnimations=0;e=X;xframe=xoffset;w=Date.now();clearInterval(v);v=setInterval(I,100);initialOffset=X;initialXOffset=xoffset;if(X>0&&X<P&&n[0].style.visibility!="hidden"){}}ag(ah);k=false;r=aj.pageY;t=aj.pageX;if(G.simulatetouches){if(aj._pageY!=undefined){r=aj._pageY;t=aj._pageX}}G.scrolling[H]=true;f=0;h=0;return true};if(p.on){p.on(u,U)}else{p.bind(u,U)}var Z=function(ah,ag){X=(ah>P)?P:(ah<ae)?ae:ah;W(null,ah,0,0,ag);return(ah>P)?"max":(ah<ae)?"min":"value"};var m=function(ah,ag){xoffset=(ah>V)?V:(ah<ae)?ae:ah;W(ah,null,0,0,ag);return(ah>V)?"max":(ah<ae)?"min":"value"};function S(){var ag,ah;if(R){ag=Date.now()-w;ah=-R*Math.exp(-ag/o);if(ah>0.5||ah<-0.5){Z(c+ah);requestAnimationFrame(S)}else{Z(c)}}}function N(){var ag,ah;if(R){ag=Date.now()-w;ah=-R*Math.exp(-ag/o);if(ah>0.5||ah<-0.5){m(E+ah);requestAnimationFrame(N)}else{m(E)}}}var y=function(ag){if(!G.enableScrolling[H]){return true}if(!G.scrolling[H]){return true}if(C){ag.preventDefault();ag.stopPropagation()}var al=G.getTouches(ag);if(al.length>1){return true}var ah=al[0].pageY;var aj=al[0].pageX;if(G.simulatetouches){if(al[0]._pageY!=undefined){ah=al[0]._pageY;aj=al[0]._pageX}}var an=ah-r;var ao=aj-t;J=ah;touchHorizontalEnd=aj;g=an-f;j=ao-h;k=true;f=an;h=ao;var ai=x!=null?x[0].style.visibility!="hidden":true;var am=n!=null?n[0].style.visibility!="hidden":true;function ak(ar){var au,at,aq;if(F){au=A(ar);aq=ab(ar);at=d-au;xdelta=ad-aq;var ap="value";if(at>2||at<-2){d=au;ap=Z(X+at,ar);I();if(ap=="min"&&initialOffset===0){return true}if(ap=="max"&&initialOffset===P){return true}if(!am){return true}ar.preventDefault();ar.stopPropagation();C=true;return false}else{if(xdelta>2||xdelta<-2){ad=aq;ap=m(xoffset+xdelta,ar);I();if(ap=="min"&&initialXOffset===0){return true}if(ap=="max"&&initialXOffset===V){return true}if(!ai){return true}C=true;ar.preventDefault();ar.stopPropagation();return false}}ar.preventDefault()}}if(ai||am){if((ai)||(am)){ak(ag)}}};if(p.on){p.on(Y,y)}else{p.bind(Y,y)}var s=function(ah){if(!G.enableScrolling[H]){return true}var ai=G.getTouches(ah)[0];if(!G.scrolling[H]){return true}F=false;clearInterval(v);if(ac>10||ac<-10){R=0.8*ac;c=Math.round(X+R);w=Date.now();requestAnimationFrame(S)}else{if(xjqxAnimations>10||xjqxAnimations<-10){R=0.8*xjqxAnimations;E=Math.round(xoffset+R);w=Date.now();requestAnimationFrame(N)}else{}}G.scrolling[H]=false;if(k){G.dispatchMouseEvent("mouseup",ai,ah.target)}else{var ai=G.getTouches(ah)[0],ag=G.getRootNode(ai.target);G.dispatchMouseEvent("mouseup",ai,ag);G.dispatchMouseEvent("click",ai,ag);return true}};if(this.simulatetouches){var q=b(window).on!=undefined||b(window).bind;var O=function(ag){try{s(ag)}catch(ah){}G.scrolling[H]=false};b(window).on!=undefined?b(document).on("mouseup.touchScroll",O):b(document).bind("mouseup.touchScroll",O);if(window.frameElement){if(window.top!=null){var L=function(ag){try{s(ag)}catch(ah){}G.scrolling[H]=false};if(window.top.document){b(window.top.document).on?b(window.top.document).on("mouseup",L):b(window.top.document).bind("mouseup",L)}}}var af=b(document).on!=undefined||b(document).bind;var K=function(ag){if(!G.scrolling[H]){return true}G.scrolling[H]=false;var ai=G.getTouches(ag)[0],ah=G.getRootNode(ai.target);G.dispatchMouseEvent("mouseup",ai,ah);G.dispatchMouseEvent("click",ai,ah)};b(document).on!=undefined?b(document).on("touchend",K):b(document).bind("touchend",K)}if(p.on){p.on("dragstart",function(ag){ag.preventDefault()});p.on("selectstart",function(ag){ag.preventDefault()})}p.on?p.on(D+" touchcancel.touchScroll",s):p.bind(D+" touchcancel.touchScroll",s)}});b.jqx.cookie=b.jqx.cookie||{};b.extend(b.jqx.cookie,{cookie:function(f,g,d){if(arguments.length>1&&String(g)!=="[object Object]"){d=b.extend({},d);if(g===null||g===undefined){d.expires=-1}if(typeof d.expires==="number"){var j=d.expires,e=d.expires=new Date();e.setDate(e.getDate()+j)}g=String(g);return(document.cookie=[encodeURIComponent(f),"=",d.raw?g:encodeURIComponent(g),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join(""))}d=g||{};var c,h=d.raw?function(k){return k}:decodeURIComponent;return(c=new RegExp("(?:^|; )"+encodeURIComponent(f)+"=([^;]*)").exec(document.cookie))?h(c[1]):null}});b.jqx.string=b.jqx.string||{};b.extend(b.jqx.string,{replace:function(g,e,f){if(e===f){return this}var c=g;var d=c.indexOf(e);while(d!=-1){c=c.replace(e,f);d=c.indexOf(e)}return c},contains:function(c,d){if(c==null||d==null){return false}return c.indexOf(d)!=-1},containsIgnoreCase:function(c,d){if(c==null||d==null){return false}return c.toString().toUpperCase().indexOf(d.toString().toUpperCase())!=-1},equals:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);if(d.length==c.length){return c.slice(0,d.length)==d}return false},equalsIgnoreCase:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);if(d.length==c.length){return c.toUpperCase().slice(0,d.length)==d.toUpperCase()}return false},startsWith:function(c,d){if(c==null||d==null){return false}return c.slice(0,d.length)==d},startsWithIgnoreCase:function(c,d){if(c==null||d==null){return false}return c.toUpperCase().slice(0,d.length)==d.toUpperCase()},normalize:function(c){if(c.charCodeAt(c.length-1)==65279){c=c.substring(0,c.length-1)}return c},endsWith:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);return c.slice(-d.length)==d},endsWithIgnoreCase:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);return c.toUpperCase().slice(-d.length)==d.toUpperCase()}});b.extend(b.easing,{easeOutBack:function(f,g,e,k,j,h){if(h==undefined){h=1.70158}return k*((g=g/j-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,j,h){return j*(g/=h)*g+e},easeInOutCirc:function(f,g,e,j,h){if((g/=h/2)<1){return -j/2*(Math.sqrt(1-g*g)-1)+e}return j/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,j,h){return -j/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,j,h){return j*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,j,h){return j*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,j,h){if((g/=h/2)<1){return j/2*g*g*g+e}return j/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,j,h){return -j*Math.cos(g/h*(Math.PI/2))+j+e},easeOutSine:function(f,g,e,j,h){return j*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,j,h){return -j/2*(Math.cos(Math.PI*g/h)-1)+e}})})(jqxBaseFramework);(function(b){if(b.event&&b.event.special){b.extend(b.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(b.fn.extend){b.fn.extend({ischildof:function(g){if(!b(this).parents){var c=g.element.contains(this.element);return c}var e=b(this).parents().get();for(var d=0;d<e.length;d++){if(typeof g!="string"){var f=e[d];if(g!==undefined){if(f==g[0]){return true}}}else{if(g!==undefined){if(b(e[d]).is(g)){return true}}}}return false}})}b.fn.jqxProxy=function(){var e=b(this).data().jqxWidget;var c=Array.prototype.slice.call(arguments,0);var d=e.element;if(!d){d=e.base.element}return b.jqx.jqxWidgetProxy(e.widgetName,d,c)};var a=this.originalVal=b.fn.val;b.fn.val=function(d){if(typeof d=="undefined"){if(b(this).hasClass("jqx-widget")){var c=b(this).data().jqxWidget;if(c&&c.val){return c.val()}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var c=b(this).find(".jqx-widget").data().jqxWidget;if(c&&c.val){return c.val()}}return a.call(this)}else{if(b(this).hasClass("jqx-widget")){var c=b(this).data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var c=b(this).find(".jqx-widget").data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}return a.call(this,d)}};if(b.fn.modal&&b.fn.modal.Constructor){b.fn.modal.Constructor.prototype.enforceFocus=function(){b(document).off("focusin.bs.modal").on("focusin.bs.modal",b.proxy(function(c){if(this.$element[0]!==c.target&&!this.$element.has(c.target).length){if(b(c.target).parents().hasClass("jqx-popup")){return true}this.$element.trigger("focus")}},this))}}b.fn.coord=function(o){var e,k,j={top:0,left:0},f=this[0],m=f&&f.ownerDocument;if(!m){return}e=m.documentElement;if(!b.contains(e,f)){return j}if(typeof f.getBoundingClientRect!==undefined){j=f.getBoundingClientRect()}var d=function(p){return b.isWindow(p)?p:p.nodeType===9?p.defaultView||p.parentWindow:false};k=d(m);var h=0;var c=0;var g=navigator.userAgent.toLowerCase();var n=g.indexOf("ipad")!=-1||g.indexOf("iphone")!=-1;if(n){h=2}if(true==o){if(document.body.style.position!="static"&&document.body.style.position!=""){var l=b(document.body).coord();h=-l.left;c=-l.top}}return{top:c+j.top+(k.pageYOffset||e.scrollTop)-(e.clientTop||0),left:h+j.left+(k.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};b.jqx.ripplers=[];b.jqx.ripple=function(f,e,o){if(!e){e=f}var h=b(f);var j=false;h.append("<span class='ink'></span>");var p=h.find(".ink");var c=false;for(var g=0;g<b.jqx.ripplers.length;g++){var k=b.jqx.ripplers[g];if(k.element[0]===f[0]){c=true;break}}if(!c){b.jqx.ripplers.push({ink:p,element:f,hostElement:e,hostElementType:o})}if(o==="checkbox"||o==="radiobutton"){if(!p.height()&&!p.width()){var l=Math.max(h.outerWidth(),h.outerHeight());p.css({height:l,width:l})}var n=h.width()/2-p.width()/2;var m=h.height()/2-p.height()/2;p.css({top:m+"px",left:n+"px"})}if(b.jqx.ripplers.length===1){b(document).on("mouseup",function(r){b.jqx.ripple.mouseCaptured=false;for(var q=0;q<b.jqx.ripplers.length;q++){var d=b.jqx.ripplers[q];d.ink.removeClass("active");d.element.removeClass("active");if(o!=="checkbox"&&o!=="radiobutton"){if(d.ink.hasClass("animate")){d.ink.removeClass("animate")}}}})}e.off("mousedown.ripple");e.on("mousedown.ripple",function(q){var d=b(f);b.jqx.ripple.mouseCaptured=true;setTimeout(function(){if(d.find(".ink").length==0){d.append("<span class='ink'></span>")}var s=d.find(".ink");s.removeClass("animate");if(!s.height()&&!s.width()){var t=Math.max(d.outerWidth(),d.outerHeight());s.css({height:t,width:t})}if(o==="checkbox"||o==="radiobutton"){if(o==="checkbox"){if(e.jqxCheckBox("disabled")){return}}if(o==="radiobutton"){if(e.jqxRadioButton("disabled")){return}}var r=d.width()/2-s.width()/2;var u=d.height()/2-s.height()/2;s.css({top:u+"px",left:r+"px"}).addClass("animate");s.on("animationend",function(){if(b.jqx.ripple.mouseCaptured){s.removeClass("animate");s.addClass("active");f.addClass("active")}});return}var r=q.pageX-d.offset().left-s.width()/2;var u=q.pageY-d.offset().top-s.height()/2;s.css({top:u+"px",left:r+"px"}).addClass("animate")})})}})(jqxBaseFramework);
 
 (function(){var c=[];var a=function(){var d=c;for(var e=0;e<d.length;e++){var g=d[e];var f=false;if(g.element.offsetWidth!==g.width){f=true}if(g.element.offsetHeight!==g.height){f=true}if(f){g.width=g.element.offsetWidth;g.height=g.element.offsetHeight;g.callback()}}};var b=setInterval(function(){a()},100);window.addResizeHandler=function(d,e){c.push({element:d,width:d.offsetWidth,height:d.offsetHeight,callback:e});return};window.removeResizeHandler=function(g){var d=c;var e=-1;for(var f=0;f<d.length;f++){if(d[f].element===g){e=f}}if(e>=0){c.splice(e,1)}return}})();(function(a){if(!a.jqx.elements){a.jqx.elements=new Array()}a.extend(a.event.special,{close:{noBubble:false},open:{noBubble:false},});window.JQXElements={settings:{}};a.jqx.elements.push({name:"jqxCalendar",template:"<div></div>",attributeSync:true,properties:{disabled:{attributeSync:false},width:{type:"length"},height:{type:"length"},min:{type:"date"},max:{type:"date"},value:{type:"date"}}});a.jqx.elements.push({name:"jqxButton",template:"<div></div>"});a.jqx.elements.push({name:"jqxButtonGroup",template:"<div></div>"});a.jqx.elements.push({name:"jqxBulletChart",template:"<div></div>"});a.jqx.elements.push({name:"jqxRadioButton",template:"<div></div>"});a.jqx.elements.push({name:"jqxCheckBox",template:"<div></div>"});a.jqx.elements.push({name:"jqxRepeatButton",template:"<button></button>"});a.jqx.elements.push({name:"jqxSwitchButton",template:"<div></div>"});a.jqx.elements.push({name:"jqxLinkButton",template:"<a></a>"});a.jqx.elements.push({name:"jqxToggleButton",template:"<button></button>"});a.jqx.elements.push({name:"jqxBarGauge",template:"<div></div>"});a.jqx.elements.push({name:"jqxChart",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxColorPicker",template:"<div></div>"});a.jqx.elements.push({name:"jqxComboBox",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxComplexInput",template:"<div><input/><div></div></div>",});a.jqx.elements.push({name:"jqxDraw",template:"<div></div>"});a.jqx.elements.push({name:"jqxDataTable",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxDateTimeInput",template:"<div></div>"});a.jqx.elements.push({name:"jqxDocking",template:"<div></div>"});a.jqx.elements.push({name:"jqxDockPanel",template:"<div></div>"});a.jqx.elements.push({name:"jqxDragDrop",template:"<div></div>"});a.jqx.elements.push({name:"jqxDropDownList",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxDropDownButton",template:"<div></div>"});a.jqx.elements.push({name:"jqxEditor",template:"<div></div>"});a.jqx.elements.push({name:"jqxExpander",template:"<div></div>"});a.jqx.elements.push({name:"jqxFileUpload",template:"<div></div>"});a.jqx.elements.push({name:"jqxFormattedInput",template:"<div><input/><div></div></div>",});a.jqx.elements.push({name:"jqxGauge",template:"<div></div>",propertyMap:{style:"backgroundStyle"}});a.jqx.elements.push({name:"jqxLinearGauge",template:"<div></div>",propertyMap:{style:"backgroundStyle"}});a.jqx.elements.push({name:"jqxGrid",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxPivotGrid",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxPivotDesigner",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxInput",template:"<input/>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxKanban",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxKnob",template:"<div></div>"});a.jqx.elements.push({name:"jqxLayout",template:"<div></div>"});a.jqx.elements.push({name:"jqxDockingLayout",template:"<div></div>"});a.jqx.elements.push({name:"jqxListBox",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxListMenu",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxLoader",template:"<div></div>"});a.jqx.elements.push({name:"jqxMaskedInput",template:"<input/>",});a.jqx.elements.push({name:"jqxMenu",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxNavBar",template:"<div></div>"});a.jqx.elements.push({name:"jqxNavigationBar",template:"<div></div>"});a.jqx.elements.push({name:"jqxNotification",template:"<div></div>",properties:{appendContainer:{type:"string"}}});a.jqx.elements.push({name:"jqxNumberInput",template:"<div></div>"});a.jqx.elements.push({name:"jqxPanel",template:"<div></div>"});a.jqx.elements.push({name:"jqxPasswordInput",template:"<input type='password'/>"});a.jqx.elements.push({name:"jqxPopover",template:"<div></div>",properties:{title:{type:"string"},arrowOffsetValue:{type:"number"},offset:{type:"json"},selector:{type:"string"},initContent:{type:"object"}}});a.jqx.elements.push({name:"jqxProgressBar",template:"<div></div>"});a.jqx.elements.push({name:"jqxRangeSelector",template:"<div></div>"});a.jqx.elements.push({name:"jqxRating",tagName:"jqx-rating",template:"<div></div>"});a.jqx.elements.push({name:"jqxResponsivePanel",template:"<div></div>"});a.jqx.elements.push({name:"jqxRibbon",template:"<div></div>"});a.jqx.elements.push({name:"jqxScheduler",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxSlider",template:"<div></div>"});a.jqx.elements.push({name:"jqxScrollBar",template:"<div></div>"});a.jqx.elements.push({name:"jqxScrollView",template:"<div></div>"});a.jqx.elements.push({name:"jqxSortable",template:"<div></div>",propertyMap:{appendTo:"addTo"}});a.jqx.elements.push({name:"jqxSplitter",template:"<div></div>",properties:{panels:{type:"array"}}});a.jqx.elements.push({name:"jqxTabs",template:"<div></div>"});a.jqx.elements.push({name:"jqxTagCloud",template:"<div></div>"});a.jqx.elements.push({name:"jqxTextArea",template:"<div></div>"});a.jqx.elements.push({name:"jqxToolBar",template:"<div></div>"});a.jqx.elements.push({name:"jqxTooltip",tagName:"jqx-tool-tip",template:"<div></div>"});a.jqx.elements.push({name:"jqxTree",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxTreeGrid",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxTreeMap",template:"<div></div>",properties:{source:{attributeSync:false}}});a.jqx.elements.push({name:"jqxValidator",template:"<div></div>"});a.jqx.elements.push({name:"jqxWindow",template:"<div></div>"});if(document.registerElement){if(!Object.is){Object.is=function(b,c){if(b===c){return b!==0||1/b===1/c}else{return b!==b&&c!==c}}}a(document).ready(function(){a.each(a.jqx.elements,function(){var c=this.name;var j=this;if(!j.tagName){j.tagName=j.name.split(/(?=[A-Z])/).join("-").toLowerCase()}var g=Object.create(HTMLElement.prototype);g.name=c;g.instances=new Array();var i={};var f=(function(){var m={},n=function(q,p,r){if(m[q]===undefined){m[q]={}}m[q][p]=r},o=function(q,p){if(m[q]===undefined||m[q][p]===undefined){return undefined}else{return m[q][p]}},l=function(p){return m[p]};return{addAttributeConfig:n,getAttributeConfig:o,getAttributeList:l}}());if(!a.jqx["_"+c]){return true}var h=a.jqx["_"+c].prototype.defineInstance();if(c=="jqxDockingLayout"){h=a.extend(h,a.jqx._jqxLayout.prototype.defineInstance())}if(c=="jqxToggleButton"||c=="jqxRepeatButton"||c=="jqxLinkButton"){h=a.extend(h,a.jqx._jqxButton.prototype.defineInstance())}if(c=="jqxTreeGrid"){h=a.extend(h,a.jqx._jqxDataTable.prototype.defineInstance())}g.initElement=function(){var l=this;if(!h){console.log(c+" is undefined");return}a.each(h,function(o,n){var m="_"+o;l[m]=n})};if(!h){console.log(c+" is undefined");return}a.each(h,function(o,r){if(!j.properties){j.properties=[]}if(o.indexOf("_")>=0){return true}var p=j.properties[o];var q=o.split(/(?=[A-Z])/).join("-").toLowerCase();var t=typeof r;var n=(p&&p.attributeSync)||j.attributeSync;if(!p&&j.attributeSync===undefined){n=true}var s="_"+o;if(o==="width"||o==="height"){t="length"}if(p&&p.type){t=p.type}var m={defaultValue:r,type:t,propertyName:o,attributeSync:n};f.addAttributeConfig(j.tagName,q,Object.freeze(m));i[o]=q;var l=function(x){var w=this;this[s]=x;if(this.widget){if(j.propertyMap&&j.propertyMap[o]){o=j.propertyMap[o]}var y={};y[o]=x;this.widget[c](y);var v=i[o];var u=f.getAttributeConfig(j.tagName,v);if(u.attributeSync){w.isUpdatingAttribute=true;w.setAttributeTyped(v,u,x);w.isUpdatingAttribute=false}w.propertyUpdated(o,x)}else{this.initialSettings[o]=x}};if(j.propertyMap&&j.propertyMap[o]){o=j.propertyMap[o]}Object.defineProperty(g,o,{configurable:false,enumerable:true,get:function(){return this[s]},set:function(u){l.call(this,u)}})});g.getAttributeTyped=function(l,m){return this.attributeStringToTypedValue(l,m,this.getAttribute(l))};g.setAttributeTyped=function(l,o,n){var p,m;m=this.getAttributeTyped(l,o);p=this.typedValueToAttributeString(n);if(p===undefined){this.removeAttribute(l)}else{this.setAttribute(l,p)}};g.typedValueToAttributeString=function(m){var l=typeof m;if(l==="boolean"){if(m){return""}else{return undefined}}else{if(l==="number"){if(Object.is(m,-0)){return"-0"}else{return m.toString()}}else{if(l==="string"||l==="length"){return m}else{if(l==="object"){return JSON.stringify(m,function(o,n){if(typeof n==="number"){if(isFinite(n)===false){return n.toString()}else{if(Object.is(n,-0)){return"-0"}}}return n})}}}}};g.attributeStringToTypedValue=function(l,m,n){if(m.type==="boolean"){if(n===""||n===l||n==="true"){return true}else{return false}}else{if(m.type==="number"){if(n===null||n===undefined){return undefined}else{return parseFloat(n)}}else{if(m.type==="string"){if(n===null||n===undefined){return undefined}else{return n}}else{if(m.type==="length"){if(n===null){return null}if(n!==null&&n.indexOf("px")>=0){return parseFloat(n)}if(n!==null&&n.indexOf("%")>=0){return n}if(!isNaN(parseFloat(n))){return parseFloat(n)}return n}else{if(m.type==="json"||m.type==="array"){return JSON.parse(n.replace(/'/g,'"'))}else{if(m.type==="object"){return window.JQXElements.settings[n]||window[n]}}}}}}return undefined};g.createdCallback=function(){var l=this;l.isReady=false;l.initialSettings={};l.initElement()};g.setup=function(){var r=this;if(r.isReady){return}r.isReady=true;var r=this;var z=null;var x=null;var u,l,s;var n=[];var F=true;var y=f.getAttributeList(j.tagName);var E=r.settings||{};var m=r.initialSettings;var G=j.template;for(var o in y){if(y.hasOwnProperty(o)&&r.hasAttribute(o)){var C=y[o];var p=r.getAttributeTyped(o,C);var H;if(p===undefined){H=C.defaultValue}else{H=p}E[C.propertyName]=H}}s=r.attributes;for(var o in s){var B=s[o];if(B&&B.name){if(B.name.indexOf("on-")>=0){var w=B.value;var A="";if(w.indexOf("(")>=0){A=w.substring(0,w.indexOf("("))}n.push({name:B.name.substring(3),handler:A})}else{if(B.name.substring(0,2)==="on"){var w=B.value;var A="";if(w.indexOf("(")>=0){A=w.substring(0,w.indexOf("("))}n.push({name:B.name.substring(2),handler:A})}else{if(B.name.indexOf("(")>=0){var w=B.value;var A="";if(w.indexOf("(")>=0){A=w.substring(0,w.indexOf("("))}var q=B.name.replace("(","").replace(")","");n.push({name:q,handler:A})}}}}}var D=function(M){var J=document.createDocumentFragment();var P=document.createElement("div");J.appendChild(P);var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;var K=/<([\w:]+)/;M=M.replace(O,"<$1></$2>");var I=(K.exec(M)||["",""])[1].toLowerCase();var L=[0,"",""];var N=L[0];P.innerHTML=L[1]+M+L[2];while(N--){P=P.lastChild}M=P.childNodes;P.parentNode.removeChild(P);D=M[0];return D}(G);u=D;var t=function(T){var J=false;if(c==="jqxDragDrop"||c==="jqxPopover"||c==="jqxResponsivePanel"||c==="jqxLoader"||c==="jqxWindow"||c==="jqxSortable"||c==="jqxDraw"||c==="jqxValidator"){J=true;r.style.overflow="visible"}if(c==="jqxExpander"||c==="jqxRibbon"||c==="jqxBulletChart"||c==="jqxComboBox"){r.style.overflow="visible"}if(!J){while(r.childNodes.length){u.appendChild(r.firstChild)}r.appendChild(u)}else{u=r}if(c==="jqxScrollBar"||c==="jqxNotification"){r.style.overflow="visible";r.style.borderLeftWidth="0px";r.style.borderRightWidth="0px";r.style.borderTopWidth="0px";r.style.borderBottomWidth="0px"}a.extend(E,T);var R=c.toLowerCase();if(G.indexOf("button")>=0||G.indexOf("input")==1||G.indexOf("textarea")>=0||R.indexOf("button")>=0||R.indexOf("checkbox")>=0||R.indexOf("radio")>=0){r.style.display="inline-block"}else{r.style.display="block"}var M=function(Z,aa){if(!F||J){return}if(typeof aa==="string"&&aa.indexOf("%")>=0){r.style[Z]=aa}else{if(typeof aa==="string"&&aa.indexOf("px")>=0){r.style[Z]=2+parseFloat(aa)+"px"}else{if(aa==="auto"){r.style[Z]=aa}else{if(aa){r.style[Z]=2+aa+"px"}else{if(r.style[Z]){r.style[Z]=null}}}}}};if(E.width){M("width",E.width)}if(E.height){M("height",E.height)}l=new jqxBaseFramework(r);l.data(r,"jqxWidget",{element:r});z=l.width();x=l.height();var Y=2;if(c==="jqxPivotDesigner"||c==="jqxPivotGrid"||c==="jqxChart"||c==="jqxMenu"||c==="jqxToolBar"){u.style.width=u.style.height="100%"}else{if(!J){if(z&&!E.width&&r.style.width!=="auto"){if(c==="jqxButton"||c==="jqxCheckBox"||c==="jqxToggleButton"||c==="jqxRadioButton"||c==="jqxRepeatButton"||c==="jqxLinkButton"){z+=30}E.width=z-Y}if(x&&!E.height&&r.style.height!=="auto"&&x!==r.firstChild.offsetHeight){E.height=x-Y}}}var I={};var L={};var N=Object.getOwnPropertyNames(a.jqx["_"+c].prototype);if(c=="jqxDockingLayout"){L=a.extend(L,Object.keys(a.jqx._jqxLayout.prototype));I=a.extend(I,a.jqx._jqxLayout.prototype)}if(c=="jqxToggleButton"||c=="jqxRepeatButton"||c=="jqxLinkButton"){L=a.extend(L,Object.keys(a.jqx._jqxButton.prototype));I=a.extend(I,a.jqx._jqxButton.prototype)}if(c=="jqxTreeGrid"){L=a.extend(L,Object.keys(a.jqx._jqxDataTable.prototype));I=a.extend(I,a.jqx._jqxDataTable.prototype)}I=a.extend(I,a.jqx["_"+c].prototype);L=a.extend(L,Object.getOwnPropertyNames(I));for(var Q in L){var W=L[Q];if(W.indexOf("_")>=0){continue}if(W==="base"||W==="baseType"){continue}if(W==="onmousemove"||W==="resize"||W==="scrollWidth"||W==="scrollHeight"||W==="constructor"||W==="createInstance"||W==="defineInstance"){continue}if(typeof I[W]!=="function"){continue}var O=function(ad,aa){var ab=Array.prototype.slice.call(arguments,2);var Z=r;var ac=function(){if(Z._isUpdating){return}if(a.event.triggered){return}if(!Z.widget){Z._isUpdating=true;var af=arguments;var ae=ad.apply(a(u).data().jqxWidget,ab.concat(Array.prototype.slice.call(af)));Z._isUpdating=false;return ae}if(-1===N.indexOf(aa)){var ae=ad.apply(Z.widget.data().jqxWidget.base,ab.concat(Array.prototype.slice.call(arguments)))}else{var ae=ad.apply(Z.widget.data().jqxWidget,ab.concat(Array.prototype.slice.call(arguments)))}Z._isUpdating=false;return ae};return ac};r[W]=O(I[W],W)}var S=r.widget=a(u)[c](E);if(E.ready){r._isUpdating=false;if(!S.data().jqxWidget._loading){if(!S.data().jqxWidget.isInitialized){E.ready()}}else{var K=setInterval(function(){if(!S.data().jqxWidget._loading){if(!S.data().jqxWidget.isInitialized){E.ready()}clearInterval(K)}},100)}}if(c==="jqxMaskedInput"||c==="jqxPasswordInput"||c==="jqxButtonGroup"||c==="jqxButton"||c==="jqxToggleButton"||c==="jqxRepeatButton"){r.firstChild.style.boxSizing="border-box"}r.propertyUpdated=function(Z,aa){if(Z==="width"||Z==="height"){M(Z,aa)}};if(!J){var X=S.data().jqxWidget;!X.base?X.host.addClass("jqx-element-container"):X.base.host.addClass("jqx-element-container");if(E.multiSelect){r.style.height="auto"}l.addClass("jqx-widget jqx-element");l.addClass("jqx-element-no-border");if(c==="jqxRangeSelector"||c=="jqxButtonGroup"){l.css("overflow","visible")}}for(var P=0;P<n.length;P++){var U=n[P];S.on(U.name,function(Z){if(!Z.args){Z.args={}}if(window.JQXElements.settings[U.handler]&&Z.args){window.JQXElements.settings[U.handler].apply(r,[Z])}else{if(window[U.handler]&&Z.args){window[U.handler].apply(r,[Z])}}})}var V=function(){if(J){return}F=false;z=l.width();x=l.height();var ac=0;if(c==="jqxChart"||c==="jqxPivotGrid"||c==="jqxPivotDesigner"||c==="jqxDraw"){S[0].style.width="100%";S[0].style.height="100%"}else{var ae=parseInt(S.css("padding-left"));var ab=parseInt(S.css("padding-right"));var ad=parseInt(S.css("padding-top"));var aa=parseInt(S.css("padding-bottom"));var Z=r.firstChild?window.getComputedStyle(r.firstChild):null;var af=true;if(!Z){return}ac=0;if(Z&&Z.boxSizing!=="border-box"){ac=2}if(r.autoheight||r.height===null||r.height==="auto"||r.multiSelect){af=false}if(c==="jqxBarGauge"){ac=0}S[c]({width:z-ac});if(af){S[c]({height:x-ac})}}F=true};if(!J){addResizeHandler(r,function(){V()})}};if(r.hasAttribute("settings")){var v=r.getAttribute("settings");m=window.JQXElements.settings[v]||window[v];if(m){a.each(m,function(J,I){r["_"+J]=I})}}if(r.hasAttribute("delayed-create")){r.isCreated=false;r.createElement=function(){if(r.isCreated){return}if(r.hasAttribute("settings")){t(m)}else{t(r.settings)}r.isCreated=true}}else{t(m)}};var b=g.addEventListener;var e=g.addEventListener;g.addEventListener=function(l,m){var n=this;if(n.widget&&n.widget.on){if(c==="jqxDragDrop"||c==="jqxPopover"||c==="jqxResponsivePanel"||c==="jqxLoader"||c==="jqxWindow"||c==="jqxSortable"||c==="jqxDraw"||c==="jqxValidator"){JQXLite(n.parentNode).on(l,m)}else{n.widget.on(l,m)}}else{b.apply(this,[l,m])}};g.removeEventListener=function(l,m){var n=this;if(n.widget&&n.widget.off){if(c==="jqxDragDrop"||c==="jqxPopover"||c==="jqxResponsivePanel"||c==="jqxLoader"||c==="jqxWindow"||c==="jqxSortable"||c==="jqxDraw"||c==="jqxValidator"){JQXLite(n.parentNode).off(l,m)}else{n.widget.off(l,m)}}else{e.apply(this,[l,m])}};g.attachedCallback=function(){var l=this;l.setup()};g.attributeChangedCallback=function(q,n,o){var r=this;var p=f.getAttributeConfig(j.tagName,q);if(!r.isUpdatingAttribute&&p){var l=r.getAttributeTyped(q,p);var m;if(l===undefined){if(currAttrConfig){m=currAttrConfig.defaultValue}else{return}}else{m=l}r[currAttrConfig.propertyName]=m}};var k=function(){var m=document.querySelectorAll(j.tagName);for(var l=0;l<m.length;l++){if(m[l].hasAttribute("tagHelper")){return true}}return false};if(k()){return}var d=document.registerElement(j.tagName,{prototype:g});return d})})}})(jqxBaseFramework);
 
@@ -22,7 +22,7 @@
 
 (function(b){var a=0;b.jqx.jqxWidget("jqxTouch","",{});b.extend(b.jqx._jqxTouch.prototype,{defineInstance:function(){this.swipeMin=50;this.swipeMax=500;this.swipeDelay=1000;this.tapHoldDelay=750;this.swipeMaxVerticalDisance=100;this.swipeMaxHorizontalDisance=100;this.orientationChangeEnabled=true;this._eventsMap={mousedown:b.jqx.mobile.getTouchEventName("touchstart"),mouseup:b.jqx.mobile.getTouchEventName("touchend"),mousemove:b.jqx.mobile.getTouchEventName("touchmove")};this._swipeLocked=false;this._rotationInterval=200;this._events=["tap","taphold","swipe","swipeleft","swiperight","swipetop","swipebottom","orientationchange"];this._instanceId=-1},createInstance:function(){a+=1;this._instanceId=a;this._isTouchDevice=b.jqx.mobile.isTouchDevice();this._defineRotateHandler()},refresh:function(){this._removeEventListeners();this._addEventListeners()},_defineRotateHandler:function(){var c=this;if(!this._rotateHandler){this._rotateHandler=function(){c._checkOrientation()}}},_getEvent:function(c){if(this._isTouchDevice){c=this._eventsMap[c]}return c+this._getEventNamespace()},_getEventNamespace:function(){return".swipe"+this._instanceId},_removeEventListeners:function(){clearInterval(this._rotateInterval);this.removeHandler(b(document),this._getEvent("mouseup"));this.removeHandler(this.host,this._getEvent("mousedown"));this.removeHandler(this.host,this._getEvent("mousemove"));if(window.removeEventListener){window.removeEventListener("resize",this._rotateHandler);window.removeEventListener("orientationchange",this._rotateHandler)}},_addEventListeners:function(){var c=this;this.addHandler(this.host,this._getEvent("mouseup"),function(d){c._resetSwipe();c._resetTap()});this.addHandler(this.host,this._getEvent("mousedown"),function(d){c._initSwipe(d);c._initTap(d)});this.addHandler(this.host,this._getEvent("mousemove"),function(d){c._maxSwipeVerticalDistance=Math.max(c._maxSwipeVerticalDistance,Math.abs(c._startY-c._getCoordinates(d).y));c._maxSwipeHorizontalDistance=Math.max(c._maxSwipeHorizontalDistance,Math.abs(c._startX-c._getCoordinates(d).x));c._mouseMoved=true;return c._handleSwipeEvents(d)});this._rotationListeners()},_handleSwipeEvents:function(d){var c=true;if(this._mouseDown&&!this._tapHoldFired){c=this._handleVerticalSwipeEvents(d);c=this._handleHorizontalSwipeEvents(d)}this._lastPosition=this._getCoordinates(d);return c},_handleVerticalSwipeEvents:function(f){var d,c;d=this._getCoordinates(f).y;c=d-this._startY;if(this._maxSwipeHorizontalDistance<this.swipeMaxHorizontalDisance){return this._swiped(f,c,2)}return true},_handleHorizontalSwipeEvents:function(f){var d,c;d=this._getCoordinates(f).x;c=d-this._startX;if(this._maxSwipeVerticalDistance<this.swipeMaxVerticalDisance){return this._swiped(f,c)}return true},_swiped:function(f,d,c){c=c||0;if(Math.abs(d)>=this.swipeMin&&!this._swipeEvent&&!this._swipeLocked){this._swipeEvent=this._getSwipeEvent(d,c)}if(Math.abs(d)<=this.swipeMax){f.stopImmediatePropagation();return false}return true},_getSwipeEvent:function(e,d){var c;if(e<0){c={eventId:3+d,data:{target:this.host}}}else{c={eventId:4+d,data:{target:this.host}}}return c},_resetSwipe:function(){if(this._swipeEvent&&!this._swipeLocked){this._raiseEvent(2,this._swipeEvent.data);this._raiseEvent(this._swipeEvent.eventId,this._swipeEvent.data)}clearTimeout(this._swipeTimeout);this._mouseDown=false},_resetTap:function(){clearTimeout(this._tapHoldTimeout);if(!this._tapHoldFired&&!this._mouseMoved){this._raiseEvent(0,{target:this.host})}},_initTap:function(d){var c=this;this._mouseMoved=false;this._tapHoldFired=false;this._tapHoldTimeout=setTimeout(function(){if(!c._mouseMoved){c._raiseEvent(1,{target:this.host});c._tapHoldFired=true}},this.tapHoldDelay)},_initSwipe:function(d){var c=this;this._mouseDown=true;this._maxSwipeVerticalDistance=0;this._maxSwipeHorizontalDistance=0;this._startX=this._getCoordinates(d).x;this._startY=this._getCoordinates(d).y;this._swipeLocked=false;this._swipeEvent=null;this._swipeTimeout=setTimeout(function(){c._swipeLocked=true},this.swipeDelay)},_rotationListeners:function(){var c=this;this._previousOrientation=window.orientation;this._previousWidth=screen.width;if(this.orientationChangeEnabled){if(window.addEventListener){window.addEventListener("resize",this._rotateHandler,false);window.addEventListener("orientationchange",this._rotateHandler,false)}this._rotateInterval=setInterval(function(){c._checkOrientation()},this._rotationInterval)}},_checkOrientation:function(){var c="vertical";if(window.orientation!==this._previousOrientation||this._previousWidth!==screen.width){if(window.orientation===90||screen.width>screen.height){c="horizontal"}this._raiseEvent(7,{orientation:c})}this._previousOrientation=window.orientation;this._previousWidth=screen.width},_raiseEvent:function(d,c){var e=b.Event(this._events[d]);e.args=c;return this.host.trigger(e)},_getCoordinates:function(d){var f=b.jqx.position(d);f.x=f.left;f.y=f.top;return f},propertyChangedHandler:function(c,d,f,e){if(d==="orientationChangeEnabled"){this.refresh()}else{return}},isTouchDevice:function(){return this._isTouchDevice}})}(jqxBaseFramework));
 
-(function(b){var a=(function(){var c={},u,q,j,l,g,h,o,p;function d(B,A,x,z,y,v,w){this.hierarchy=y;this.exportFormat=v;this.filename=w;B.beginFile(w);n(B);k(B);B.endFile(w);return B.getFile()}function n(z){var x=true;b.each(q,function(){if(this.hidden){x=false;return false}});z.beginHeader(x);var w=0;for(var v in q){if(q[v].columnsDataFields){v=q[v].columnsDataFields[w].displayfield}var y=m(v,q[v]);z.appendHeaderCell(q[v],v,y,x,w);w++}z.endHeader(x)}function k(x){x.beginBody();if(this.hierarchy){var w=function(z){for(var y=0;y<z.length;y+=1){if(z[y]!==undefined){x.beginRow(z[y].level);e(x,z[y],y,true);if(z[y].records){x.beginRows(z[y].level);w(z[y].records);x.endRows(z[y].level)}x.endRow(z[y].level)}}};w(u);x.endBody();return}for(var v=0;v<u.length;v+=1){if(u[v]!==undefined){e(x,u[v],v)}}x.endBody()}function e(A,z,B,v){var x;if(v!=true){A.beginRow()}var y=0;for(var w in q){if(q[w].columnsDataFields){w=q[w].columnsDataFields[y].displayfield}x=s(B,w);if(x){if(x.level!=undefined){if(x.index-1>z.level&&x.index-1<x.maxLevel){y++;continue}}if(x.maxLevel!=undefined){if(x.index-1==x.maxLevel){x=b.extend({},x);x.merge=x.maxLevel-z.level-1}}}if(z.level!=undefined&&z.label!=undefined){if(this.exportFormat==="xml"||this.exportFormat==="json"){var C={};C.text="group";A.appendBodyCell(z.label,C,x,z,y,"group");break}}if(z.hasOwnProperty(w)){A.appendBodyCell(z[w],q[w],x,z,y)}else{A.appendBodyCell("",q[w],x,z,y)}y++}if(v!=true){A.endRow()}}function m(w,x){if(x.style){return j[x.style]}var v=t();if(v.length>0){return v[0].style}return null}function t(){if(!g){g=new Array();b.each(j,function(v,w){g[g.length]={name:v,style:w}})}return g}function s(A,z){var B=q[z];if(B){if(B.customCellStyles){var x=B.customCellStyles[A];if(x){return j[x]}}if(B.cellStyle){if(B.cellAltStyle){var w=A%2;if(w==0){return j[B.cellStyle]}return j[B.cellAltStyle]}return j[B.cellStyle]}else{var v=t();if(v.length>0){var w=A%(v.length-1);var y=v[w+1].style;return y}}}return null}function r(y,w,x){var v=document.createElement("input");v.name=w;v.value=y;v.type="hidden";x.appendChild(v);return v}function f(x,v,w){var y=document.createElement("textarea");y.name=v;y.value=x;w.appendChild(y);return y}function i(w,z,y,v,A){var x=document.createElement("form");r(w,"filename",x);r(z,"format",x);f(y,"content",x);if(v==undefined||v==""){if(window&&window.location.toString().indexOf("jqwidgets.com")>=0){v="https://jqwidgets.com/export_server/dataexport.php"}else{v="http://jquerygrid.net/export_server/dataexport.php"}}x.action=v;x.method="post";if(A){x.acceptCharset=A}document.body.appendChild(x);return x}l=function(A,y,x,w,z,v){if(!(this instanceof a)){return new a(A,y,x,z,v)}u=A;q=y;j=x;this.exportTo=function(K,H,G,B){K=K.toString().toLowerCase();var D=c[K];if(typeof D==="undefined"){throw"You can't export to "+K+" format."}if(K==="pdf"&&B==undefined){var M=this.exportTo(K,H,K,"pdf");if(!b.jqx.pdfExport){b.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var L=new pdfDataExport(b.jqx.pdfExport.orientation,"pt",b.jqx.pdfExport.paperSize);L.cellInitialize();var J=b(M).find("th");var I=b(M).find("tr");var N=0;L.setFontSize(13*72/96);var F=595;switch(b.jqx.pdfExport.paperSize){case"legal":var F=612;if(b.jqx.pdfExport.orientation!=="portrait"){F=1008}break;case"letter":var F=612;if(b.jqx.pdfExport.orientation!=="portrait"){F=792}break;case"a3":var F=841;if(b.jqx.pdfExport.orientation!=="portrait"){F=1190}break;case"a4":var F=595;if(b.jqx.pdfExport.orientation!=="portrait"){F=842}break;case"a5":var F=420;if(b.jqx.pdfExport.orientation!=="portrait"){F=595}break}F-=20;var E=0;var C=[];b.each(J,function(O){var P=parseInt(this.style.width);if(isNaN(P)){P=25}var Q=P*72/96;C[O]=Q;E+=Q});if(E>F){b.each(C,function(O){C[O]=(C[O]/E)*100;C[O]=C[O]*F/100})}b.each(J,function(P){var T=C[P];var S=25*72/96;var R=L.getTextDimensions(b(this).html());var Q=b(this).html();if(R.w+3>T){var O=L.splitTextToSize(Q,T-3);var U=O[0];if(U.length>3){Q=U.substring(0,U.length-3)+"..."}else{Q=U.substring(0,1)+"..."}var O=L.splitTextToSize(Q,T-3);var U=O[0];if(U!=Q){Q=U}}L.cell(10,10,T,S,Q,N)});N++;b.each(I,function(V){if(V===0){return true}var P=b(this).children();var Q=P.length>J.length;if(Q){var Y=P.length-J.length;var Z="";var X=C[0];var U=25*72/96;for(var R=0;R<=Y;R++){var O=P[R].innerHTML;if(O==="+"||O==="-"){O=O+" "}if(O==="&nbsp;"){O="   "}Z+=O}var T=L.getTextDimensions(Z);if(T.w+3>X){var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S.length>3){Z=S.substring(0,S.length-3)+"..."}else{Z=S.substring(0,1)+"..."}var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S!=Z){Z=S}}L.cell(10,10,X,U,Z,N);for(var R=Y+1;R<P.length;R++){var V=R-Y;var X=C[V];var U=25*72/96;var Z=b(P[R]).html();var T=L.getTextDimensions(b(P[R]).html());if(T.w+3>X){var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S.length>3){Z=S.substring(0,S.length-3)+"..."}else{Z=S.substring(0,1)+"..."}var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S!=Z){Z=S}}L.cell(10,10,X,U,Z,N)}N++;return true}b.each(P,function(ab){var af=C[ab];var ae=25*72/96;var ad=b(this).html();var ac=L.getTextDimensions(b(this).html());if(ac.w+3>af){var aa=L.splitTextToSize(ad,af-3);var ag=aa[0];if(ag.length>3){ad=ag.substring(0,ag.length-3)+"..."}else{ad=ag.substring(0,1)+"..."}var aa=L.splitTextToSize(ad,af-3);var ag=aa[0];if(ag!=ad){ad=ag}}L.cell(10,10,af,ae,ad,N)});N++});if(b.jqx.browser.msie&&b.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}return L}return d(D,u,q,j,H,G,B)};this.exportToFile=function(L,B,O,F,I){if(L==="pdf"){var N=this.exportTo(L,I,L,B);if(!b.jqx.pdfExport){b.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var M=new pdfDataExport(b.jqx.pdfExport.orientation,"pt",b.jqx.pdfExport.paperSize);if(F=="utf-8"||F=="UTF-8"){M.setFont("courier","normal")}M.cellInitialize();var K=b(N).find("th");var J=b(N).find("tr");var P=0;M.setFontSize(13*72/96);var G=595;switch(b.jqx.pdfExport.paperSize){case"legal":var G=612;if(b.jqx.pdfExport.orientation!=="portrait"){G=1008}break;case"letter":var G=612;if(b.jqx.pdfExport.orientation!=="portrait"){G=792}break;case"a3":var G=841;if(b.jqx.pdfExport.orientation!=="portrait"){G=1190}break;case"a4":var G=595;if(b.jqx.pdfExport.orientation!=="portrait"){G=842}break;case"a5":var G=420;if(b.jqx.pdfExport.orientation!=="portrait"){G=595}break}G-=20;var E=0;var C=[];b.each(K,function(Q){var R=parseInt(this.style.width);if(isNaN(R)){R=25}var S=R*72/96;C[Q]=S;E+=S});if(E>G){b.each(C,function(Q){C[Q]=(C[Q]/E)*100;C[Q]=C[Q]*G/100})}b.each(K,function(R){var V=C[R];var U=25*72/96;var T=M.getTextDimensions(b(this).html());var S=b(this).html();if(T.w+3>V){var Q=M.splitTextToSize(S,V-3);var W=Q[0];if(W.length>3){S=W.substring(0,W.length-3)+"..."}else{S=W.substring(0,1)+"..."}var Q=M.splitTextToSize(S,V-3);var W=Q[0];if(W!=S){S=W}}M.cell(10,10,V,U,S,P)});P++;b.each(J,function(X){if(X===0){return true}var R=b(this).children();var S=R.length>K.length;if(S){var aa=R.length-K.length;var ab="";var Z=C[0];var W=25*72/96;for(var T=0;T<=aa;T++){var Q=R[T].innerHTML;if(Q==="+"||Q==="-"){Q=Q+" "}if(Q==="&nbsp;"){Q="   "}ab+=Q}var V=M.getTextDimensions(ab);if(V.w+3>Z){var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}M.cell(10,10,Z,W,ab,P);for(var T=aa+1;T<R.length;T++){var X=T-aa;var Z=C[X];var W=25*72/96;var ab=b(R[T]).html();if(ab==="&nbsp;"){ab="   "}var V=M.getTextDimensions(b(R[T]).html());if(V.w+3>Z){var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}M.cell(10,10,Z,W,ab,P)}P++;return true}b.each(R,function(ad){var ah=C[ad];var ag=25*72/96;var af=b(this).html();if(af==="&nbsp;"){af="   "}var ae=M.getTextDimensions(b(this).html());if(ae.w+3>ah){var ac=M.splitTextToSize(af,ah-3);var ai=ac[0];if(ai.length>3){af=ai.substring(0,ai.length-3)+"..."}else{af=ai.substring(0,1)+"..."}var ac=M.splitTextToSize(af,ah-3);var ai=ac[0];if(ai!=af){af=ai}}M.cell(10,10,ah,ag,af,P)});P++});if(b.jqx.browser.msie&&b.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}M.save(B+".pdf");return}var H=this.exportTo(L,I,L,B),D=i(B,L,H,O,F);D.submit();document.body.removeChild(D)};this.exportToLocalFile=function(F,C,D,B){var E=this.exportTo(F,D,B);document.location.href="data:application/octet-stream;filename="+C+","+encodeURIComponent(E)}};l.extend=function(v,w){if(w instanceof b.jqx.dataAdapter.DataExportModuleBase){c[v]=w}else{throw"The module "+v+" is not instance of DataExportModuleBase."}};return l}());b.jqx.dataAdapter.ArrayExporter=a})(jqxBaseFramework);(function(b){var a=function(){this.formatData=function(f,e,c,h){if(e==="date"){var d="";if(typeof f==="string"){d=b.jqx.dataFormat.tryparsedate(f);f=d}if(f===""||f===null){return""}d=b.jqx.dataFormat.formatdate(f,c,h);if(d.toString()=="NaN"||d==null){return""}f=d}else{if(e==="number"||e==="float"||e==="int"||e=="integer"){if(f===""||f===null){return""}if(!isNaN(new Number(f))){var g=b.jqx.dataFormat.formatnumber(f,c,h);if(g.toString()=="NaN"){return""}else{f=g}}}else{f=f}}if(f===null){return""}return f};this.getFormat=function(f){var c=f?f.formatString:"";var e=f?f.localization:"";var d="string";d=f?f.type:"string";if(d=="number"||d=="float"){if(!c){c="f2"}}if(d=="int"||d=="integer"){if(!c){c="n0"}}if(d=="date"){if(!c){c="d"}}return{type:d,formatString:c,localization:e}};this.beginFile=function(){throw"Not implemented!"};this.beginHeader=function(){throw"Not implemented!"};this.appendHeaderCell=function(){throw"Not implemented!"};this.endHeader=function(){throw"Not implemented!"};this.beginBody=function(){throw"Not implemented!"};this.beginRow=function(){throw"Not implemented!"};this.beginRows=function(){throw"Not implemented!"};this.endRows=function(){throw"Not implemented!"};this.appendBodyCell=function(){throw"Not implemented!"};this.endRow=function(){throw"Not implemented!"};this.endBody=function(){throw"Not implemented!"};this.endFile=function(){throw"Not implemented!"};this.getFile=function(){throw"Not implemented!"}};b.jqx.dataAdapter.DataExportModuleBase=a})(jqxBaseFramework);(function(d){var c=function(j){var e,h,g;var l=0;var i=this;this.beginFile=function(){e=""};this.beginHeader=function(){};this.appendHeaderCell=function(q,r,p,m,n){if(p){if(p.level!=undefined){if(n<p.maxLevel){return}else{if(n===p.maxLevel){if(m){k(q.text)}for(var o=0;o<p.maxLevel;o++){k("")}return}}}}g=m;if(m){k(q.text)}};this.endHeader=function(){this.endRow()};this.beginBody=function(){l=0};this.beginRow=function(){if((l>0)||(l==0&&g)){e+="\n"}l++};this.appendBodyCell=function(q,m,p,r,n){if(p){if(p.maxLevel!=undefined){if(n===p.maxLevel){k(q,m);for(var o=0;o<p.maxLevel-r.level-1;o++){k("",m)}return}}}k(q,m)};this.endRow=function(){e=e.substring(0,e.length-1)};this.endBody=function(){};this.endFile=function(){};this.getFile=function(){return e};function f(m,o){if(o){var n=i.getFormat(o);m=i.formatData(m,n.type,n.formatString,n.localization)}m='"'+m+'"';return m}function k(m,n){m=f(m,n);e+=m+j}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();var a=function(){};a.prototype=new c(",");var b=function(){};b.prototype=new c("\t");d.jqx.dataAdapter.ArrayExporter.extend("csv",new a());d.jqx.dataAdapter.ArrayExporter.extend("tsv",new b())})(jqxBaseFramework);(function(d){var a=function(){var i=false;var g;var h;var j=0;this.setPDF=function(){i=true};this.beginFile=function(k){if(i||k==undefined){g='<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}else{g='<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta http-equiv=Content-type content="text/html; charset=UTF-8">\n\t</head>\n\t<body>\n\t\t<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}};this.beginHeader=function(){if(i){g+="\n\t<thead><tr>"}else{g+="\n\t\t\t<thead>"}};this.appendHeaderCell=function(m,n,l,k){h=k;if(!k){return}if(i){g+='\n\t\t\t\t<th style="'+f(l)+'">'+m.text+"</th>"}else{if(l.disabled){return}if(l.merge){if(m.width){g+="\n\t\t\t\t<th colspan="+(1+l.merge)+' style="width: '+m.width+"px; "+f(l)+'">'+m.text+"</th>"}else{g+="\n\t\t\t\t<th colspan="+(1+l.merge)+' style="'+f(l)+'">'+m.text+"</th>"}}else{if(m.width){g+='\n\t\t\t\t<th style="width: '+m.width+"px; "+f(l)+'">'+m.text+"</th>"}else{g+='\n\t\t\t\t<th style="'+f(l)+'">'+m.text+"</th>"}}}};this.endHeader=function(){if(i){g+="\n\t</tr></thead>"}else{g+="\n\t\t\t</thead>"}};this.beginBody=function(){if(i){g+="\n\t<tbody>"}else{g+="\n\t\t\t<tbody>"}j=0};this.beginRow=function(){if(i){g+="\n\t<tr>"}else{g+="\n\t\t\t\t<tr>"}j++};this.appendBodyCell=function(l,n,k){var m=this.getFormat(n);if(l===""){l="&nbsp;"}if(i){if(j==1&&!h){g+='\n\t\t\t\t\t<td style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+='\n\t\t\t\t\t<td style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}else{if(k.merge){if(j==1&&!h){g+="\n\t\t\t\t\t<td colspan="+(1+k.merge)+' style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+="\n\t\t\t\t\t<td colspan="+(1+k.merge)+' style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}else{if(j==1&&!h){g+='\n\t\t\t\t\t<td style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+='\n\t\t\t\t\t<td style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}}};this.endRow=function(){if(i){g+="\n\t</tr>"}else{g+="\n\t\t\t\t</tr>"}};this.endBody=function(){if(i){g+="\n\t</tbody>"}else{g+="\n\t\t\t</tbody>"}};this.endFile=function(k){if(i||k==undefined){g+="\n</table>"}else{g+="\n\t\t</table>\n\t</body>\n</html>\n"}};this.getFile=function(){return g};function f(m){var k="";for(var l in m){if(m.hasOwnProperty(l)){if(i&&l=="font-size"){m[l]="100%"}k+=l+":"+m[l]+";"}}return k}};a.prototype=new d.jqx.dataAdapter.DataExportModuleBase();var e=function(){};e.prototype=new a();var c=function(){};c.prototype=new a();var b=new c();d.jqx.dataAdapter.ArrayExporter.extend("html",new e());d.jqx.dataAdapter.ArrayExporter.extend("pdf",b)})(jqxBaseFramework);(function(b){var a=function(){var h,l,d,i,c,j,m={style:"",stylesMap:{font:{color:"Color","font-family":"FontName","font-style":"Italic","font-weight":"Bold"},interior:{"background-color":"Color",background:"Color"},alignment:{left:"Left",center:"Center",right:"Right"}},startStyle:function(p){this.style+='\n\t\t<Style ss:ID="'+p+'" ss:Name="'+p+'">'},buildAlignment:function(q){if(q["text-align"]){var r=this.stylesMap.alignment[q["text-align"]];if(!r){r="Left"}var p='\n\t\t\t<Alignment ss:Vertical="Bottom" ss:Horizontal="'+r+'"/>';this.style+=p}},buildBorder:function(s){if(s["border-color"]){var r="\n\t\t\t<Borders>";var u='\n\t\t\t\t<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var p='\n\t\t\t\t<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var q='\n\t\t\t\t<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var t='\n\t\t\t\t<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';r+=u;r+=p;r+=q;r+=t;r+="\n\t\t\t</Borders>";this.style+=r}},buildFont:function(q){var r=this.stylesMap.font,p="\n\t\t\t<Font ";for(var s in r){if(typeof q[s]!=="undefined"){if(s==="font-style"&&q[s].toString().toLowerCase()==="italic"){p+='ss:Italic="1" '}else{if(s==="font-weight"&&q[s].toString().toLowerCase()==="bold"){p+='ss:Bold="1" '}else{if(s==="color"){p+="ss:"+r[s]+'="'+q[s]+'" '}}}}}p+="/>";this.style+=p},buildInterior:function(q){var r=this.stylesMap.interior,t="\n\t\t\t<Interior ";var p=false;for(var s in r){if(typeof q[s]!=="undefined"){t+="ss:"+r[s]+'="'+q[s]+'" ';p=true}}if(p){t+='ss:Pattern="Solid"'}t+="/>";this.style+=t},buildFormat:function(q){if(q.dataType=="number"||q.dataType=="float"||q.dataType=="int"||q.dataType=="integer"){var p=q.formatString;if(p==""||p.indexOf("n")!=-1||p.indexOf("N")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="0"/>'}else{if(p=="f"||p=="F"||p=="D"||p.indexOf("d")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="#,##0.00_);[Red](#,##0.00)"/>'}else{if(p.indexOf("p")!=-1||p.indexOf("P")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="Percent"/>'}else{if(p.indexOf("c")!=-1||p.indexOf("C")!=-1){if(parseInt(q.currencysymbol.charCodeAt(0))==8364){this.style+='\n\t\t\t<NumberFormat ss:Format="Euro Currency"/>'}else{this.style+='\n\t\t\t<NumberFormat ss:Format="Currency"/>'}}}}}}else{if(q.dataType=="date"){this.style+='\n\t\t\t<NumberFormat ss:Format="Short Date"/>'}}},closeStyle:function(){this.style+="\n\t\t</Style>"},toString:function(){var p=this.style;this.style="";return p}};this.beginFile=function(){c={};j=0;h='<?xml version="1.0"?>\n\t<?mso-application progid="Excel.Sheet"?> \n\t<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:o="urn:schemas-microsoft-com:office:office" \n\txmlns:x="urn:schemas-microsoft-com:office:excel" \n\txmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:html="http://www.w3.org/TR/REC-html40"> \n\t<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> \n\t<Version>12.00</Version> \n\t</DocumentProperties> \n\t<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> \n\t<WindowHeight>8130</WindowHeight> \n\t<WindowWidth>15135</WindowWidth> \n\t<WindowTopX>120</WindowTopX> \n\t<WindowTopY>45</WindowTopY> \n\t<ProtectStructure>False</ProtectStructure> \n\t<ProtectWindows>False</ProtectWindows> \n\t</ExcelWorkbook> \n\t<Styles>'};this.beginHeader=function(){l='\n\t<Worksheet ss:Name="Sheet1">\n\t\t<Table>';d=[];i=[]};this.appendHeaderCell=function(r,s,q){var p=r.width!=undefined?r.width:r.text.length*10;l+='\n\t\t\t<Column ss:Width="'+p+'"/>';d.push(r);i.push(q)};this.endHeader=function(p){if(p){this.beginRow();for(var q=0;q<d.length;q+=1){if(i[q].disabled){continue}g.call(this,d[q]["text"],null,i[q])}this.endRow()}};this.beginBody=function(){};this.beginRow=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="<Row>";return}l+="\n\t\t\t<Row>"};this.beginRows=function(p){l+="\n\t\t\t\t<Rows>"};this.appendBodyCell=function(r,p,q,s){g.call(this,r,p,q,s)};this.endRow=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="</Row>";return}l+="\n\t\t\t</Row>"};this.endRows=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="</Rows>";return}};this.endBody=function(){l+="\n\t\t</Table>"};this.endFile=function(){l+="\n\t</Worksheet>\n</Workbook>";h+="\n\t</Styles>"};this.getFile=function(){return h+l};function g(s,v,r,u){var q="String";var t=this.getFormat(v);if(s!=null&&s.toString().substring(0,3)=="_AG"){s=s.toString().substring(3);q="String"}else{if(t.type=="date"){s=this.formatData(s,t.type,t.formatString,t.localization);if(s===null||s===""){s="";q="String"}}if(t.type=="string"){if(s===null||s===undefined){s=""}else{if(s.toString().indexOf("&")>=0){s=s.toString().replace(/&/g,"&amp;")}if(s.toString().indexOf(">")>=0){s=s.toString().replace(/>/g,"&gt;")}if(s.toString().indexOf("<")>=0){s=s.toString().replace(/</g,"&lt;")}if(s.toString().indexOf('"')>=0){s=s.toString().replace(/"/g,"&quot;")}if(s.toString().indexOf("'")>=0){s=s.toString().replace(/'/g,"&apos;")}}}if(r.dataType=="number"||r.dataType=="float"||r.dataType=="int"||r.dataType=="integer"){q="Number";s=parseFloat(s);if(s===null||isNaN(s)||s===""){s="";q="String"}if(s&&q!="String"&&s!=""){if(v&&v.formatString&&v.formatString.indexOf("p")>=0){s=s/100}}r.currencysymbol=v.localization.currencysymbol}}var p=f(r);if(r.merge){l+='\n\t\t\t\t<Cell ss:MergeAcross="'+r.merge+'" ss:StyleID="'+p+'"><Data ss:Type="'+q+'">'+s+"</Data></Cell>"}else{l+='\n\t\t\t\t<Cell ss:StyleID="'+p+'"><Data ss:Type="'+q+'">'+s+"</Data></Cell>"}}function n(){j+=1;return"xls-style-"+j}function k(q){for(var p in c){if(o(q,c[p])&&o(c[p],q)){return p}}return undefined}function o(t,q){var s=true;for(var r in t){if(t[r]!==q[r]){s=false}}return s}function e(q,p){m.startStyle(q);m.buildAlignment(p);m.buildBorder(p);m.buildFont(p);m.buildInterior(p);m.buildFormat(p);m.closeStyle();h+=m.toString()}function f(p){if(!p){return""}var q=k(p);if(typeof q==="undefined"){q=n();c[q]=p;e(q,p)}return q}};a.prototype=new b.jqx.dataAdapter.DataExportModuleBase();b.jqx.dataAdapter.ArrayExporter.extend("xls",new a())})(jqxBaseFramework);(function(b){var a=function(){var e,c,d;this.beginFile=function(){e='<?xml version="1.0" encoding="UTF-8" ?>';e+="\n<table>"};this.beginHeader=function(){c=[]};this.appendHeaderCell=function(f,g){c.push(g)};this.endHeader=function(){};this.beginBody=function(g,f){};this.beginRow=function(g){if(g!=undefined){if(this.hierarchy){e+="\n\t";for(var f=0;f<g;f++){e+="\t\t"}e+="<row>";d=0;return}}e+="\n\t<row>";d=0};this.beginRows=function(g){if(g!=undefined){e+="\n\t\t";for(var f=0;f<g;f++){e+="\t\t"}e+="<rows>";d=0;return}e+="\n\t\t<rows>"};this.appendBodyCell=function(j,n,g,m,h,l){var k=this.getFormat(n);j=this.formatData(j,k.type,k.formatString,k.localization);if(k.type=="string"){if(j.toString().indexOf("&")>=0){j=j.toString().replace(/&/g,"&amp;")}if(j.toString().indexOf(">")>=0){j=j.toString().replace(/>/g,"&gt;")}if(j.toString().indexOf("<")>=0){j=j.toString().replace(/</g,"&lt;")}if(j.toString().indexOf('"')>=0){j=j.toString().replace(/"/g,"&quot;")}if(j.toString().indexOf("'")>=0){j=j.toString().replace(/'/g,"&apos;")}}if(m.level!=undefined){if(this.hierarchy){e+="\n\t\t";for(var f=0;f<m.level;f++){e+="\t\t"}if(l===undefined){e+="<"+c[d]+">"+j+"</"+c[d]+">"}else{e+="<"+l+">"+j+"</"+l+">"}}else{if(l!=undefined){e+="\n\t\t<"+l+">"+j+"</"+l+">"}else{e+="\n\t\t<"+c[d]+">"+j+"</"+c[d]+">"}}}else{e+="\n\t\t<"+c[d]+">"+j+"</"+c[d]+">"}d++};this.endRow=function(g){if(g!=undefined){if(this.hierarchy){e+="\n\t";for(var f=0;f<g;f++){e+="\t\t"}e+="</row>";d=0;return}}e+="\n\t</row>";d=0};this.endRows=function(g){if(g!=undefined){e+="\n\t\t";for(var f=0;f<g;f++){e+="\t\t"}e+="</rows>";d=0;return}e+="\n\t\t</rows>"};this.endBody=function(){};this.endFile=function(){e+="\n</table>"};this.getFile=function(){return e}};a.prototype=new b.jqx.dataAdapter.DataExportModuleBase();b.jqx.dataAdapter.ArrayExporter.extend("xml",new a())})(jqxBaseFramework);(function(d){var j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(n){return'"'+n.replace(j,function(o){var p=l[o];return typeof p==="string"?p:"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)})+'"'}function b(o){return o<10?"0"+o:o}function e(o){var n;if(isFinite(o.valueOf())){n=o.getUTCFullYear()+"-"+b(o.getUTCMonth()+1)+"-"+b(o.getUTCDate())+"T"+b(o.getUTCHours())+":"+b(o.getUTCMinutes())+":"+b(o.getUTCSeconds())+'Z"'}else{n="null"}return n}function g(q){var n=q.length,o=[],p;for(p=0;p<n;p++){o.push(h(p,q)||"null")}return"["+o.join(",")+"]"}function m(q){var o=[],p,n;for(p in q){if(Object.prototype.hasOwnProperty.call(q,p)){n=h(p,q);if(n){o.push(a(p)+":"+n)}}}return"{"+o.join(",")+"}"}function i(n){switch(Object.prototype.toString.call(n)){case"[object Date]":return e(n);case"[object Array]":return g(n)}return m(n)}function k(o,n){switch(n){case"string":return a(o);case"number":case"float":case"integer":case"int":return isFinite(o)?o:"null";case"boolean":return o}return"null"}function h(o,n){var q=n[o],p=typeof q;if(q&&typeof q==="object"&&typeof q.toJSON==="function"){q=q.toJSON(o);p=typeof q}if(/(number|float|int|integer|string|boolean)/.test(p)||(!q&&p==="object")){return k(q,p)}else{return i(q)}}function f(n){if(window.JSON&&typeof window.JSON.stringify==="function"){return window.JSON.stringify(n)}return h("",{"":n})}var c=function(){var q=this;this.prepareData=function(t,v){if(v){var u=q.getFormat(v);t=q.formatData(t,u.type,u.formatString,u.localization)}return t};var n,p,r,o=[],s=0;this.beginFile=function(){p=[]};this.beginHeader=function(){};this.appendHeaderCell=function(t){};this.endHeader=function(){};this.beginBody=function(u,t){};this.beginRow=function(){if(hierarchy){o[s]={}}else{r={}}};this.beginRows=function(){o[s].rows=[];s++;o[s]={}};this.endRows=function(){s--};this.appendBodyCell=function(u,t){var v=this.prepareData(u,t);if(hierarchy){o[s][t.text]=v}else{r[t.text]=v}};this.endRow=function(){if(hierarchy){if(s==0){p.push(o[s])}else{o[s-1].rows.push(o[s])}}else{p.push(r)}};this.endBody=function(){};this.endFile=function(){n=f(p)};this.getFile=function(){return n}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();d.jqx.dataAdapter.ArrayExporter.extend("json",new c())})(jqxBaseFramework);var pdfDataExport=window.jqxPdfDataExport=(function(){if(typeof btoa==="undefined"){window.btoa=function(m){var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=h.split(""),g,f,e,q,p,o,n,t,l=0,u=0,k="",j=[],d;do{g=m.charCodeAt(l++);f=m.charCodeAt(l++);e=m.charCodeAt(l++);t=g<<16|f<<8|e;q=t>>18&63;p=t>>12&63;o=t>>6&63;n=t&63;j[u++]=s[q]+s[p]+s[o]+s[n]}while(l<m.length);k=j.join("");d=m.length%3;return(d?k.slice(0,d-3):k)+"===".slice(d||3)}}if(typeof atob==="undefined"){window.atob=function(l){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f,e,d,p,o,n,m,q,k=0,r=0,h="",j=[];if(!l){return l}l+="";do{p=g.indexOf(l.charAt(k++));o=g.indexOf(l.charAt(k++));n=g.indexOf(l.charAt(k++));m=g.indexOf(l.charAt(k++));q=p<<18|o<<12|n<<6|m;f=q>>16&255;e=q>>8&255;d=q&255;if(n===64){j[r++]=String.fromCharCode(f)}else{if(m===64){j[r++]=String.fromCharCode(f,e)}else{j[r++]=String.fromCharCode(f,e,d)}}}while(k<l.length);h=j.join("");return h}}var c=typeof Object.keys==="function"?function(d){return Object.keys(d).length}:function(d){var f=0,g;for(g in d){if(d.hasOwnProperty(g)){f++}}return f},a=function(d){this.topics={};this.context=d;this.publish=function(h,m){if(this.topics[h]){var j=this.topics[h],o=[],n,g,e,f,k=function(){};m=Array.prototype.slice.call(arguments,1);for(g=0,e=j.length;g<e;g++){f=j[g];n=f[0];if(f[1]){f[0]=k;o.push(g)}n.apply(this.context,m)}for(g=0,e=o.length;g<e;g++){j.splice(o[g],1)}}};this.subscribe=function(e,g,f){if(!this.topics[e]){this.topics[e]=[[g,f]]}else{this.topics[e].push([g,f])}return{topic:e,callback:g}};this.unsubscribe=function(h){if(this.topics[h.topic]){var f=this.topics[h.topic],g,e;for(g=0,e=f.length;g<e;g++){if(f[g][0]===h.callback){f.splice(g,1)}}}}};function b(E,ae,M,V){if(typeof E==="undefined"){E="p"}else{E=E.toString().toLowerCase()}if(typeof ae==="undefined"){ae="mm"}if(typeof M==="undefined"){M="a4"}if(typeof V==="undefined"&&typeof zpipe==="undefined"){V=false}var at=M.toString().toLowerCase(),ao="0.9.0rc2",t=[],F=0,av=V,U="1.3",N={a3:[841.89,1190.55],a4:[595.28,841.89],a5:[420.94,595.28],letter:[612,792],legal:[612,1008]},ad="0 g",H="0 G",g=0,f=[],n=2,v=false,D=[],ai={},Q={},aj=16,d,z=0.200025,B,C,ak,O={title:"",subject:"",author:"",keywords:"",creator:""},R=0,T=0,P={},G=new a(P),af,aq,p=function(i){return i.toFixed(2)},o=function(i){return i.toFixed(3)},A=function(i){var k=(i).toFixed(0);if(i<10){return"0"+k}else{return k}},r=function(i){var k=(i).toFixed(0);if(k.length<10){return new Array(11-k.length).join("0")+k}else{return k}},ab=function(i){if(v){f[g].push(i)}else{t.push(i);F+=i.length+1}},w=function(){n++;D[n]=F;ab(n+" 0 obj");return n},K=function(i){ab("stream");ab(i);ab("endstream")},am,S,ap,al,aa=function(){am=C*ak;S=B*ak;var aB,aA,k,aw,ax,az,ay;for(aB=1;aB<=g;aB++){w();ab("<</Type /Page");ab("/Parent 1 0 R");ab("/Resources 2 0 R");ab("/Contents "+(n+1)+" 0 R>>");ab("endobj");aA=f[aB].join("\n");w();if(av){k=[];for(ax=0;ax<aA.length;++ax){k[ax]=aA.charCodeAt(ax)}ay=adler32cs.from(aA);az=new Deflater(6);az.append(new Uint8Array(k));aA=az.flush();k=[new Uint8Array([120,156]),new Uint8Array(aA),new Uint8Array([ay&255,(ay>>8)&255,(ay>>16)&255,(ay>>24)&255])];aA="";for(ax in k){if(k.hasOwnProperty(ax)){aA+=String.fromCharCode.apply(null,k[ax])}}ab("<</Length "+aA.length+" /Filter [/FlateDecode]>>")}else{ab("<</Length "+aA.length+">>")}K(aA);ab("endobj")}D[1]=F;ab("1 0 obj");ab("<</Type /Pages");ap="/Kids [";for(ax=0;ax<g;ax++){ap+=(3+2*ax)+" 0 R "}ab(ap+"]");ab("/Count "+g);ab("/MediaBox [0 0 "+p(am)+" "+p(S)+"]");ab(">>");ab("endobj")},X=function(i){i.objectNumber=w();ab("<</BaseFont/"+i.PostScriptName+"/Type/Font");if(typeof i.encoding==="string"){ab("/Encoding/"+i.encoding)}ab("/Subtype/Type1>>");ab("endobj")},J=function(){var i;for(i in ai){if(ai.hasOwnProperty(i)){X(ai[i])}}},L=function(){G.publish("putXobjectDict")},x=function(){ab("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");ab("/Font <<");var i;for(i in ai){if(ai.hasOwnProperty(i)){ab("/"+i+" "+ai[i].objectNumber+" 0 R")}}ab(">>");ab("/XObject <<");L();ab(">>")},h=function(){J();G.publish("putResources");D[2]=F;ab("2 0 obj");ab("<<");x();ab(">>");ab("endobj");G.publish("postPutResources")},m=function(aw,k,ax){var i;if(Q[k]===i){Q[k]={}}Q[k][ax]=aw},au={},u=function(i,ax,az,aw){var ay="F"+(c(ai)+1).toString(10),k=ai[ay]={id:ay,PostScriptName:i,fontName:ax,fontStyle:az,encoding:aw,metadata:{}};m(ay,ax,az);G.publish("addFont",k);return ay},e=function(){var k="helvetica",aG="times",aI="courier",aF="normal",aE="bold",aD="italic",aH="bolditalic",ax="StandardEncoding",aA=[["Helvetica",k,aF],["Helvetica-Bold",k,aE],["Helvetica-Oblique",k,aD],["Helvetica-BoldOblique",k,aH],["Courier",aI,aF],["Courier-Bold",aI,aE],["Courier-Oblique",aI,aD],["Courier-BoldOblique",aI,aH],["Times-Roman",aG,aF],["Times-Bold",aG,aE],["Times-Italic",aG,aD],["Times-BoldItalic",aG,aH]],aC,ay,aB,az;for(aC=0,ay=aA.length;aC<ay;aC++){var aw=ax;aB=u(aA[aC][0],aA[aC][1],aA[aC][2],aw);az=aA[aC][0].split("-");m(aB,az[0],az[1]||"")}G.publish("addFonts",{fonts:ai,dictionary:Q})},s=function(aG,ax){var aC,aA,az,ay,aE,aD,aw,aF,k,aB;if(ax===az){ax={}}ay=ax.sourceEncoding?ay:"Unicode";aD=ax.outputEncoding;if((ax.autoencode||aD)&&ai[d].metadata&&ai[d].metadata[ay]&&ai[d].metadata[ay].encoding){aE=ai[d].metadata[ay].encoding;if(!aD&&ai[d].encoding){aD=ai[d].encoding}if(!aD&&aE.codePages){aD=aE.codePages[0]}if(typeof aD==="string"){aD=aE[aD]}if(aD){aF=false;aw=[];for(aC=0,aA=aG.length;aC<aA;aC++){k=aD[aG.charCodeAt(aC)];if(k){aw.push(String.fromCharCode(k))}else{aw.push(aG[aC])}if(aw[aC].charCodeAt(0)>>8){aF=true}}aG=aw.join("")}}aC=aG.length;while(aF===az&&aC!==0){if(aG.charCodeAt(aC-1)>>8){aF=true}aC--}if(!aF){return aG}else{aw=ax.noBOM?[]:[254,255];for(aC=0,aA=aG.length;aC<aA;aC++){k=aG.charCodeAt(aC);aB=k>>8;if(aB>>8){throw new Error("Character at position "+aC.toString(10)+" of string '"+aG+"' exceeds 16bits. Cannot be encoded into UCS-2 BE")}aw.push(aB);aw.push(k-(aB<<8))}return String.fromCharCode.apply(az,aw)}},Z=function(k,i){return s(k,i).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(){ab("/Producer (pdfDataExport "+ao+")");if(O.title){ab("/Title ("+Z(O.title)+")")}if(O.subject){ab("/Subject ("+Z(O.subject)+")")}if(O.author){ab("/Author ("+Z(O.author)+")")}if(O.keywords){ab("/Keywords ("+Z(O.keywords)+")")}if(O.creator){ab("/Creator ("+Z(O.creator)+")")}var i=new Date();ab("/CreationDate (D:"+[i.getFullYear(),A(i.getMonth()+1),A(i.getDate()),A(i.getHours()),A(i.getMinutes()),A(i.getSeconds())].join("")+")")},W=function(){ab("/Type /Catalog");ab("/Pages 1 0 R");ab("/OpenAction [3 0 R /FitH null]");ab("/PageLayout /OneColumn");G.publish("putCatalog")},l=function(){ab("/Size "+(n+1));ab("/Root "+n+" 0 R");ab("/Info "+(n-1)+" 0 R")},ar=function(){g++;v=true;f[g]=[]},ah=function(){ar();ab(p(z*ak)+" w");ab(H);if(R!==0){ab(R.toString(10)+" J")}if(T!==0){ab(T.toString(10)+" j")}G.publish("addPage",{pageNumber:g})},y=function(aw,ay){var i,k;if(aw===k){aw=ai[d].fontName}if(ay===k){ay=ai[d].fontStyle}try{i=Q[aw][ay]}catch(ax){i=k}if(!i){throw new Error("Unable to look up font label for font '"+aw+"', '"+ay+"'. Refer to getFontList() for available fonts.")}return i},q=function(){v=false;t=[];D=[];ab("%PDF-"+U);aa();h();w();ab("<<");Y();ab(">>");ab("endobj");w();ab("<<");W();ab(">>");ab("endobj");var aw=F,k;ab("xref");ab("0 "+(n+1));ab("0000000000 65535 f ");for(k=1;k<=n;k++){ab(r(D[k])+" 00000 n ")}ab("trailer");ab("<<");l();ab(">>");ab("startxref");ab(aw);ab("%%EOF");v=true;return t.join("\n")},ac=function(i){var k="S";if(i==="F"){k="f"}else{if(i==="FD"||i==="DF"){k="B"}}return k},I=function(az,aw){var ay,aB,aA,aC,ax,k;switch(az){case ay:return q();case"save":if(navigator.getUserMedia){if(window.URL===undefined){return P.output("dataurlnewwindow")}else{if(window.URL.createObjectURL===undefined){return P.output("dataurlnewwindow")}}}aB=q();aA=aB.length;aC=new Uint8Array(new ArrayBuffer(aA));for(ax=0;ax<aA;ax++){aC[ax]=aB.charCodeAt(ax)}k=new Blob([aC],{type:"application/pdf"});saveAs(k,aw);break;case"datauristring":case"dataurlstring":return"data:application/pdf;base64,"+btoa(q());case"datauri":case"dataurl":document.location.href="data:application/pdf;base64,"+btoa(q());break;case"dataurlnewwindow":window.open("data:application/pdf;base64,"+btoa(q()));break;default:throw new Error('Output type "'+az+'" is not supported.')}};if(ae==="pt"){ak=1}else{if(ae==="mm"){ak=72/25.4}else{if(ae==="cm"){ak=72/2.54}else{if(ae==="in"){ak=72}else{throw ("Invalid unit: "+ae)}}}}if(N.hasOwnProperty(at)){B=N[at][1]/ak;C=N[at][0]/ak}else{try{B=M[1];C=M[0]}catch(an){throw ("Invalid format: "+M)}}if(E==="p"||E==="portrait"){E="p";if(C>B){af=C;C=B;B=af}}else{if(E==="l"||E==="landscape"){E="l";if(B>C){af=C;C=B;B=af}}else{throw ("Invalid orientation: "+E)}}P.internal={pdfEscape:Z,getStyle:ac,getFont:function(){return ai[y.apply(P,arguments)]},getFontSize:function(){return aj},btoa:btoa,write:function(i,ax,aw,k){ab(arguments.length===1?i:Array.prototype.join.call(arguments," "))},getCoordinateString:function(i){return p(i*ak)},getVerticalCoordinateString:function(i){return p((B-i)*ak)},collections:{},newObject:w,putStream:K,events:G,scaleFactor:ak,pageSize:{width:C,height:B},output:function(k,i){return I(k,i)}};P.addPage=function(){ah();return this};var ag=["","0","00","000","0000"];var j=function(aA,aw){var ax=["FEFF"];for(var az=0,k=aA.length,ay;az<k;++az){ay=aA.charCodeAt(az).toString(16).toUpperCase();ax.push(ag[4-ay.length],ay)}return ax.join("")};P.text16=function(aF,aE,aC,aw){var ax,aA,az,aD,k,aB,ay;if(typeof aF==="number"){aA=aC;az=aF;aD=aE;aF=aA;aE=az;aC=aD}if(typeof aF==="string"&&aF.match(/[\n\r]/)){aF=aF.split(/\r\n|\r|\n/g)}if(typeof aw==="undefined"){aw={noBOM:true,autoencode:true}}else{if(aw.noBOM===ax){aw.noBOM=true}if(aw.autoencode===ax){aw.autoencode=true}}aw.autoencode=false;if(typeof aF==="string"){aB=j(aF,aw)}else{if(aF instanceof Array){k=aF.concat();for(ay=k.length-1;ay!==-1;ay--){k[ay]=j(k[ay],aw)}aB=k.join("> Tj\nT* <")}else{throw new Error('Type of text must be string or Array. "'+aF+'" is not recognized.')}}ab("BT\n/"+d+" "+aj+" Tf\n"+aj+" TL\n"+ad+"\n"+p(aE*ak)+" "+p((B-aC)*ak)+" Td\n<"+aB+"> Tj\nET");return this};P.text=function(aF,aE,aC,aw){var ax,aA,az,aD,k,aB,ay;if(typeof aF==="number"){aA=aC;az=aF;aD=aE;aF=aA;aE=az;aC=aD}if(typeof aF==="string"&&aF.match(/[\n\r]/)){aF=aF.split(/\r\n|\r|\n/g)}if(typeof aw==="undefined"){aw={noBOM:true,autoencode:true}}else{if(aw.noBOM===ax){aw.noBOM=true}if(aw.autoencode===ax){aw.autoencode=true}}if(typeof aF==="string"){aB=Z(aF,aw)}else{if(aF instanceof Array){k=aF.concat();for(ay=k.length-1;ay!==-1;ay--){k[ay]=Z(k[ay],aw)}aB=k.join(") Tj\nT* (")}else{throw new Error('Type of text must be string or Array. "'+aF+'" is not recognized.')}}ab("BT\n/"+d+" "+aj+" Tf\n"+aj+" TL\n"+ad+"\n"+p(aE*ak)+" "+p((B-aC)*ak)+" Td\n("+aB+") Tj\nET");return this};P.line=function(k,ax,i,aw){ab(p(k*ak)+" "+p((B-ax)*ak)+" m "+p(i*ak)+" "+p((B-aw)*ak)+" l S");return this};P.lines=function(k,aF,aE,aO,aK){var ay,aM,aC,aD,aB,aA,aI,aG,aN,aL,az,aJ,ax,aH,aw;if(typeof k==="number"){aM=aE;aC=k;aD=aF;k=aM;aF=aC;aE=aD}aK=ac(aK);aO=aO===ay?[1,1]:aO;ab(o(aF*ak)+" "+o((B-aE)*ak)+" m ");aB=aO[0];aA=aO[1];aG=k.length;aH=aF;aw=aE;for(aI=0;aI<aG;aI++){aN=k[aI];if(aN.length===2){aH=aN[0]*aB+aH;aw=aN[1]*aA+aw;ab(o(aH*ak)+" "+o((B-aw)*ak)+" l")}else{aL=aN[0]*aB+aH;az=aN[1]*aA+aw;aJ=aN[2]*aB+aH;ax=aN[3]*aA+aw;aH=aN[4]*aB+aH;aw=aN[5]*aA+aw;ab(o(aL*ak)+" "+o((B-az)*ak)+" "+o(aJ*ak)+" "+o((B-ax)*ak)+" "+o(aH*ak)+" "+o((B-aw)*ak)+" c")}}ab(aK);return this};P.rect=function(i,az,k,ax,aw){var ay=ac(aw);ab([p(i*ak),p((B-az)*ak),p(k*ak),p(-ax*ak),"re",ay].join(" "));return this};P.triangle=function(ax,aA,k,ay,i,aw,az){this.lines([[k-ax,ay-aA],[i-k,aw-ay],[ax-i,aA-aw]],ax,aA,[1,1],az);return this};P.roundedRect=function(k,aB,aw,ay,aA,az,ax){var i=4/3*(Math.SQRT2-1);this.lines([[(aw-2*aA),0],[(aA*i),0,aA,az-(az*i),aA,az],[0,(ay-2*az)],[0,(az*i),-(aA*i),az,-aA,az],[(-aw+2*aA),0],[-(aA*i),0,-aA,-(az*i),-aA,-az],[0,(-ay+2*az)],[0,-(az*i),(aA*i),-az,aA,-az]],k+aA,aB,[1,1],ax);return this};P.ellipse=function(i,aB,az,ay,k){var aA=ac(k),ax=4/3*(Math.SQRT2-1)*az,aw=4/3*(Math.SQRT2-1)*ay;ab([p((i+az)*ak),p((B-aB)*ak),"m",p((i+az)*ak),p((B-(aB-aw))*ak),p((i+ax)*ak),p((B-(aB-ay))*ak),p(i*ak),p((B-(aB-ay))*ak),"c"].join(" "));ab([p((i-ax)*ak),p((B-(aB-ay))*ak),p((i-az)*ak),p((B-(aB-aw))*ak),p((i-az)*ak),p((B-aB)*ak),"c"].join(" "));ab([p((i-az)*ak),p((B-(aB+aw))*ak),p((i-ax)*ak),p((B-(aB+ay))*ak),p(i*ak),p((B-(aB+ay))*ak),"c"].join(" "));ab([p((i+ax)*ak),p((B-(aB+ay))*ak),p((i+az)*ak),p((B-(aB+aw))*ak),p((i+az)*ak),p((B-aB)*ak),"c",aA].join(" "));return this};P.circle=function(i,ax,aw,k){return this.ellipse(i,ax,aw,aw,k)};P.setProperties=function(i){var k;for(k in O){if(O.hasOwnProperty(k)&&i[k]){O[k]=i[k]}}return this};P.setFontSize=function(i){aj=i;return this};P.setFont=function(i,k){d=y(i,k);return this};P.setFontStyle=P.setFontType=function(k){var i;d=y(i,k);return this};P.getFontList=function(){var aw={},k,ax,i;for(k in Q){if(Q.hasOwnProperty(k)){aw[k]=i=[];for(ax in Q[k]){if(Q[k].hasOwnProperty(ax)){i.push(ax)}}}}return aw};P.setLineWidth=function(i){ab((i*ak).toFixed(2)+" w");return this};P.setDrawColor=function(ay,ax,aw,i){var k;if(ax===undefined||(i===undefined&&ay===ax===aw)){if(typeof ay==="string"){k=ay+" G"}else{k=p(ay/255)+" G"}}else{if(i===undefined){if(typeof ay==="string"){k=[ay,ax,aw,"RG"].join(" ")}else{k=[p(ay/255),p(ax/255),p(aw/255),"RG"].join(" ")}}else{if(typeof ay==="string"){k=[ay,ax,aw,i,"K"].join(" ")}else{k=[p(ay),p(ax),p(aw),p(i),"K"].join(" ")}}}ab(k);return this};P.setFillColor=function(ay,ax,aw,i){var k;if(ax===undefined||(i===undefined&&ay===ax===aw)){if(typeof ay==="string"){k=ay+" g"}else{k=p(ay/255)+" g"}}else{if(i===undefined){if(typeof ay==="string"){k=[ay,ax,aw,"rg"].join(" ")}else{k=[p(ay/255),p(ax/255),p(aw/255),"rg"].join(" ")}}else{if(typeof ay==="string"){k=[ay,ax,aw,i,"k"].join(" ")}else{k=[p(ay),p(ax),p(aw),p(i),"k"].join(" ")}}}ab(k);return this};P.setTextColor=function(aw,k,i){if((aw===0&&k===0&&i===0)||(typeof k==="undefined")){ad=o(aw/255)+" g"}else{ad=[o(aw/255),o(k/255),o(i/255),"rg"].join(" ")}return this};P.CapJoinStyles={0:0,butt:0,but:0,bevel:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,milter:2};P.setLineCap=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line cap style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}R=k;ab(k.toString(10)+" J");return this};P.setLineJoin=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line join style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}T=k;ab(k.toString(10)+" j");return this};P.output=I;P.save=function(i){P.output("save",i)};for(aq in b.API){if(b.API.hasOwnProperty(aq)){if(aq==="events"&&b.API.events.length){(function(ax,az){var ay,aw,k;for(k=az.length-1;k!==-1;k--){ay=az[k][0];aw=az[k][1];ax.subscribe.apply(ax,[ay].concat(typeof aw==="function"?[aw]:aw))}}(G,b.API.events))}else{P[aq]=b.API[aq]}}}e();d="F1";ah();G.publish("initialized");return P}b.API={events:[]};return b}());(function(i){var b=0,m=0,a,o,h,c={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},f=1,e=false,d=function(p,t,q,r,s){c={x:p,y:t,w:q,h:r,ln:s}},k=function(){return c},j=function(p){b=p},l=function(){return b},n=function(p){m=p},g=function(p){return m};i.getTextDimensions=function(p){a=this.internal.getFont().fontName;o=this.internal.getFontSize();h=this.internal.getFont().fontStyle;var s=0.264583*72/25.4,q,r;r=document.createElement("font");r.id="pdfDataExportCell";r.style.fontStyle=h;r.style.fontName=a;r.style.fontSize=o+"pt";r.innerHTML=p;document.body.appendChild(r);q={w:(r.offsetWidth+1)*s,h:(r.offsetHeight+1)*s};document.body.removeChild(r);return q};i.cellAddPage=function(){this.addPage();d(undefined,undefined,undefined,undefined,undefined);e=true;f+=1;n(1)};i.cellInitialize=function(){b=0;c={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined};f=1;e=false;n(0)};i.cell=function(z,v,A,s,p,u){this.lnMod=this.lnMod===undefined?0:this.lnMod;if(this.printingHeaderRow!==true&&this.lnMod!==0){u=u+this.lnMod}if((((u*s)+v+(s*2))/f)>=this.internal.pageSize.height&&f===1&&!e){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(u);this.lnMod+=1;u+=1}if(l()===0){j(Math.round((this.internal.pageSize.height-(s*2))/s))}}else{if(e&&k().ln!==u&&g()===l()){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(u);this.lnMod+=1;u+=1}}}var B=k(),r=this.getTextDimensions(p),t=1;if(B.x!==undefined&&B.ln===u){z=B.x+B.w}if(B.y!==undefined&&B.y===v){v=B.y}if(B.h!==undefined&&B.h===s){s=B.h}if(B.ln!==undefined&&B.ln===u){u=B.ln;t=0}if(e){v=s*(g()+t)}else{v=(v+(s*Math.abs(l()*f-u-l())))}this.rect(z,v,A,s);var q=/[а-яА-ЯЁё]/.test(p);if(q){this.text16(p,z+3,v+s-3)}else{this.text(p,z+3,v+s-3)}n(g()+t);d(z,v,A,s,u);return this};i.getKeys=(typeof Object.keys==="function")?function(p){if(!p){return[]}return Object.keys(p)}:function(p){var q=[],r;for(r in p){if(p.hasOwnProperty(r)){q.push(r)}}return q};i.arrayMax=function(u,t){var p=u[0],q,s,r;for(q=0,s=u.length;q<s;q+=1){r=u[q];if(t){if(t(p,r)===-1){p=r}}else{if(r>p){p=r}}}return p};i.table=function(J,r,I){var v=[],p=[],D,z,B,x,E,y,G={},A={},u,s,H=[],C,F=[],t,q,w;this.lnMod=0;if(I){z=I.autoSize||false;B=this.printHeaders=I.printHeaders||true;x=I.autoStretch||true}if(!J){throw"No data for PDF table"}if(r===undefined||(r===null)){v=this.getKeys(J[0])}else{if(r[0]&&(typeof r[0]!=="string")){for(E=0,y=r.length;E<y;E+=1){D=r[E];v.push(D.name);p.push(D.prompt)}}else{v=r}}if(I.autoSize){w=function(K){return K[D]};for(E=0,y=v.length;E<y;E+=1){D=v[E];G[D]=J.map(w);H.push(this.getTextDimensions(p[E]||D).w);s=G[D];for(C=0,y=s.length;C<y;C+=1){u=s[C];H.push(this.getTextDimensions(u).w)}A[D]=i.arrayMax(H)}}if(I.printHeaders){for(E=0,y=v.length;E<y;E+=1){D=v[E];F.push([10,10,A[D],25,String(p.length?p[E]:D)])}this.setTableHeaderRow(F);this.printHeaderRow(1)}for(E=0,y=J.length;E<y;E+=1){t=J[E];for(C=0,q=v.length;C<q;C+=1){D=v[C];this.cell(10,10,A[D],25,String(t[D]),E+2)}}return this};i.setTableHeaderRow=function(p){this.tableHeaderRow=p};i.printHeaderRow=function(p){if(!this.tableHeaderRow){throw"Property tableHeaderRow does not exist."}var q,s,r,t;this.printingHeaderRow=true;for(r=0,t=this.tableHeaderRow.length;r<t;r+=1){q=this.tableHeaderRow[r];s=[].concat(q);this.cell.apply(this,s.concat(p))}this.printingHeaderRow=false}}(pdfDataExport.API));(function(c){var b=c.getCharWidthsArray=function(s,u){if(!u){u={}}var h=u.widths?u.widths:this.internal.getFont().metadata.Unicode.widths,r=h.fof?h.fof:1,n=u.kerning?u.kerning:this.internal.getFont().metadata.Unicode.kerning,p=n.fof?n.fof:1;var m,j,o,k,q=0,t=h[0]||r,g=[];for(m=0,j=s.length;m<j;m++){o=s.charCodeAt(m);g.push((h[o]||t)/r+(n[o]&&n[o][q]||0)/p);q=o}return g};var e=function(j){var h=j.length,g=0;while(h){h--;g+=j[h]}return g};var a=c.getStringUnitWidth=function(h,g){return e(b.call(this,h,g))};var d=function(g,n,h,j){var q=[];var m=0,k=g.length,p=0;while(m!==k&&p+n[m]<h){p+=n[m];m++}q.push(g.slice(0,m));var o=m;p=0;while(m!==k){if(p+n[m]>j){q.push(g.slice(o,m));p=0;o=m}p+=n[m];m++}if(o!==m){q.push(g.slice(o,m))}return q};var f=function(s,k,v){if(!v){v={}}var t=b(" ",v)[0];var r=s.split(" ");var w=[],x=[w],h=v.textIndent||0,u=0,p=0,g,q;var o,m,n;for(o=0,m=r.length;o<m;o++){g=r[o];q=b(g,v);p=e(q);if(h+u+p>k){if(p>k){n=d(g,q,k-(h+u),k);w.push(n.shift());w=[n.pop()];while(n.length){x.push([n.shift()])}p=e(q.slice(g.length-w[0].length))}else{w=[g]}x.push(w);h=p;u=t}else{w.push(g);h+=u+p;u=t}}var j=[];for(o=0,m=x.length;o<m;o++){j.push(x[o].join(" "))}return j};c.splitTextToSize=function(q,m,r){if(!r){r={}}var h=r.fontSize||this.internal.getFontSize(),g=(function(l){var t={0:1},i={};if(!l.widths||!l.kerning){var u=this.internal.getFont(l.fontName,l.fontStyle),s="Unicode";if(u.metadata[s]){return{widths:u.metadata[s].widths||t,kerning:u.metadata[s].kerning||i}}}else{return{widths:l.widths,kerning:l.kerning}}return{widths:t,kerning:i}}).call(this,r);var p;if(q.match(/[\n\r]/)){p=q.split(/\r\n|\r|\n/g)}else{p=[q]}var j=1*this.internal.scaleFactor*m/h;g.textIndent=r.textIndent?r.textIndent*1*this.internal.scaleFactor/h:0;var o,n,k=[];for(o=0,n=p.length;o<n;o++){k=k.concat(f(p[o],j,g))}return k}})(pdfDataExport.API);(function(c){var d="addImage_";var f=function(m){var l,h;if(!m.charCodeAt(0)===255||!m.charCodeAt(1)===216||!m.charCodeAt(2)===255||!m.charCodeAt(3)===224||!m.charCodeAt(6)==="J".charCodeAt(0)||!m.charCodeAt(7)==="F".charCodeAt(0)||!m.charCodeAt(8)==="I".charCodeAt(0)||!m.charCodeAt(9)==="F".charCodeAt(0)||!m.charCodeAt(10)===0){throw new Error("getJpegSize requires a binary jpeg file")}var j=m.charCodeAt(4)*256+m.charCodeAt(5);var k=4,g=m.length;while(k<g){k+=j;if(m.charCodeAt(k)!==255){throw new Error("getJpegSize could not find the size of the image")}if(m.charCodeAt(k+1)===192){h=m.charCodeAt(k+5)*256+m.charCodeAt(k+6);l=m.charCodeAt(k+7)*256+m.charCodeAt(k+8);return[l,h]}else{k+=2;j=m.charCodeAt(k)*256+m.charCodeAt(k+1)}}},b=function(g){var m=this.internal.newObject(),h=this.internal.write,l=this.internal.putStream;g.n=m;h("<</Type /XObject");h("/Subtype /Image");h("/Width "+g.w);h("/Height "+g.h);if(g.cs==="Indexed"){h("/ColorSpace [/Indexed /DeviceRGB "+(g.pal.length/3-1)+" "+(m+1)+" 0 R]")}else{h("/ColorSpace /"+g.cs);if(g.cs==="DeviceCMYK"){h("/Decode [1 0 1 0 1 0 1 0]")}}h("/BitsPerComponent "+g.bpc);if("f" in g){h("/Filter /"+g.f)}if("dp" in g){h("/DecodeParms <<"+g.dp+">>")}if("trns" in g&&g.trns.constructor==Array){var k="";for(var j=0;j<g.trns.length;j++){k+=(g[k][j]+" "+g.trns[j]+" ");h("/Mask ["+k+"]")}}if("smask" in g){h("/SMask "+(m+1)+" 0 R")}h("/Length "+g.data.length+">>");l(g.data);h("endobj")},e=function(){var g=this.internal.collections[d+"images"];for(var h in g){b.call(this,g[h])}},a=function(){var g=this.internal.collections[d+"images"],h=this.internal.write,k;for(var j in g){k=g[j];h("/I"+k.i,k.n,"0","R")}};c.addImage=function(g,s,q,p,t,l){if(typeof g==="object"&&g.nodeType===1){var j=document.createElement("canvas");j.width=g.clientWidth;j.height=g.clientHeight;var u=j.getContext("2d");if(!u){throw ("addImage requires canvas to be supported by browser.")}u.drawImage(g,0,0,j.width,j.height);g=j.toDataURL("image/jpeg");s="JPEG"}if(s.toUpperCase()!=="JPEG"){throw new Error("addImage currently only supports format 'JPEG', not '"+s+"'")}var i,n=this.internal.collections[d+"images"],m=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString;if(g.substring(0,23)==="data:image/jpeg;base64,"){g=atob(g.replace("data:image/jpeg;base64,",""))}if(n){i=Object.keys?Object.keys(n).length:(function(w){var h=0;for(var v in w){if(w.hasOwnProperty(v)){h++}}return h})(n)}else{i=0;this.internal.collections[d+"images"]=n={};this.internal.events.subscribe("putResources",e);this.internal.events.subscribe("putXobjectDict",a)}var r=f(g);var k={w:r[0],h:r[1],cs:"DeviceRGB",bpc:8,f:"DCTDecode",i:i,data:g};n[i]=k;if(!t&&!l){t=-96;l=-96}if(t<0){t=(-1)*k.w*72/t/this.internal.scaleFactor}if(l<0){l=(-1)*k.h*72/l/this.internal.scaleFactor}if(t===0){t=l*k.w/k.h}if(l===0){l=t*k.h/k.w}this.internal.write("q",m(t),"0 0",m(l),m(q),o(p+l),"cm /I"+k.i,"Do Q");return this}})(pdfDataExport.API);(function(a){var e=function(q){var w="0123456789abcdef",o="klmnopqrstuvwxyz",h={};for(var r=0;r<o.length;r++){h[o[r]]=w[r]}var p,m={},n=1,t,k=m,g=[],s,l="",u="",v,j=q.length-1,f;r=1;while(r!=j){f=q[r];r+=1;if(f=="'"){if(t){v=t.join("");t=p}else{t=[]}}else{if(t){t.push(f)}else{if(f=="{"){g.push([k,v]);k={};v=p}else{if(f=="}"){s=g.pop();s[0][s[1]]=k;v=p;k=s[0]}else{if(f=="-"){n=-1}else{if(v===p){if(h.hasOwnProperty(f)){l+=h[f];v=parseInt(l,16)*n;n=+1;l=""}else{l+=f}}else{if(h.hasOwnProperty(f)){u+=h[f];k[v]=parseInt(u,16)*n;n=+1;v=p;u=""}else{u+=f}}}}}}}}return m};var d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:e("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},b={Unicode:{"Courier-Oblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":e("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":e("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":e("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":e("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};a.events.push(["addFonts",function(i){var f,g,h,k,j="Unicode",l;for(g in i.fonts){if(i.fonts.hasOwnProperty(g)){f=i.fonts[g];h=b[j][f.PostScriptName];if(h){if(f.metadata[j]){k=f.metadata[j]}else{k=f.metadata[j]={}}k.widths=h.widths;k.kerning=h.kerning}l=c[j][f.PostScriptName];if(l){if(f.metadata[j]){k=f.metadata[j]}else{k=f.metadata[j]={}}k.encoding=l;if(l.codePages&&l.codePages.length){f.encoding=l.codePages[0]}}}}}])})(pdfDataExport.API);var saveAs=window.jqxSaveAs=saveAs||(navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator))||(function(h){var r=h.document,l=function(){return h.URL||h.webkitURL||h},e=h.URL||h.webkitURL||h,n=$("<a></a>")[0],g="download" in n,j=function(t){var s=r.createEvent("MouseEvents");s.initMouseEvent("click",true,false,h,0,0,0,0,0,false,false,false,false,0,null);return t.dispatchEvent(s)},o=h.webkitRequestFileSystem,p=h.requestFileSystem||o||h.mozRequestFileSystem,m=function(s){(h.setImmediate||h.setTimeout)(function(){throw s},0)},c="application/octet-stream",k=0,b=[],i=function(){var t=b.length;while(t--){var s=b[t];if(typeof s==="string"){e.revokeObjectURL(s)}else{s.remove()}}b.length=0},q=function(t,s,w){s=[].concat(s);var v=s.length;while(v--){var x=t["on"+s[v]];if(typeof x==="function"){try{x.call(t,w||t)}catch(u){m(u)}}}},f=function(t,u){var v=this,B=t.type,E=false,x,w,s=function(){var F=l().createObjectURL(t);b.push(F);return F},A=function(){q(v,"writestart progress write writeend".split(" "))},D=function(){if(E||!x){x=s(t)}if(w){w.location.href=x}v.readyState=v.DONE;A()},z=function(F){return function(){if(v.readyState!==v.DONE){return F.apply(this,arguments)}}},y={create:true,exclusive:false},C;v.readyState=v.INIT;if(!u){u="download"}if(g){x=s(t);n.href=x;n.download=u;if(j(n)){v.readyState=v.DONE;A();return}}if(h.chrome&&B&&B!==c){C=t.slice||t.webkitSlice;t=C.call(t,0,t.size,c);E=true}if(o&&u!=="download"){u+=".download"}if(B===c||o){w=h}else{w=h.open()}if(!p){D();return}k+=t.size;p(h.TEMPORARY,k,z(function(F){F.root.getDirectory("saved",y,z(function(G){var H=function(){G.getFile(u,y,z(function(I){I.createWriter(z(function(J){J.onwriteend=function(K){w.location.href=I.toURL();b.push(I);v.readyState=v.DONE;q(v,"writeend",K)};J.onerror=function(){var K=J.error;if(K.code!==K.ABORT_ERR){D()}};"writestart progress write abort".split(" ").forEach(function(K){J["on"+K]=v["on"+K]});J.write(t);v.abort=function(){J.abort();v.readyState=v.DONE};v.readyState=v.WRITING}),D)}),D)};G.getFile(u,{create:false},z(function(I){I.remove();H()}),z(function(I){if(I.code===I.NOT_FOUND_ERR){H()}else{D()}}))}),D)}),D)},d=f.prototype,a=function(s,t){return new f(s,t)};d.abort=function(){var s=this;s.readyState=s.DONE;q(s,"abort")};d.readyState=d.INIT=0;d.WRITING=1;d.DONE=2;d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null;if(h.addEventListener){h.addEventListener("unload",i,false)}return a}(self));(function(a){var b="pdfDataExport IE Below 9 Shim plugin";a.output=function(e,d){return this.internal.output(e,d);var c="Output.pdf";switch(e){case"datauristring":case"dataurlstring":case"datauri":case"dataurl":case"dataurlnewwindow":if(console){console.log(b+": Data URIs are not supported on IE6-9.")}break;case"save":c=d;break}}})(pdfDataExport.API);
+(function(b){var a=(function(){var c={},u,q,j,l,g,h,o,p;function d(B,A,x,z,y,v,w){this.hierarchy=y;this.exportFormat=v;this.filename=w;B.beginFile(w);n(B);k(B);B.endFile(w);return B.getFile()}function n(z){var x=true;b.each(q,function(){if(this.hidden){x=false;return false}});z.beginHeader(x);var w=0;for(var v in q){if(q[v].columnsDataFields){v=q[v].columnsDataFields[w].displayfield}var y=m(v,q[v]);z.appendHeaderCell(q[v],v,y,x,w);w++}z.endHeader(x)}function k(x){x.beginBody();if(this.hierarchy){var w=function(z){for(var y=0;y<z.length;y+=1){if(z[y]!==undefined){x.beginRow(z[y].level);e(x,z[y],y,true);if(z[y].records){x.beginRows(z[y].level);w(z[y].records);x.endRows(z[y].level)}x.endRow(z[y].level)}}};w(u);x.endBody();return}for(var v=0;v<u.length;v+=1){if(u[v]!==undefined){e(x,u[v],v)}}x.endBody()}function e(A,z,B,v){var x;if(v!=true){A.beginRow()}var y=0;for(var w in q){if(q[w].columnsDataFields){w=q[w].columnsDataFields[y].displayfield}x=s(B,w);if(x){if(x.level!=undefined){if(x.index-1>z.level&&x.index-1<x.maxLevel){y++;continue}}if(x.maxLevel!=undefined){if(x.index-1==x.maxLevel){x=b.extend({},x);x.merge=x.maxLevel-z.level-1}}}if(z.level!=undefined&&z.label!=undefined){if(this.exportFormat==="xml"||this.exportFormat==="json"){var C={};C.text="group";A.appendBodyCell(z.label,C,x,z,y,"group");break}}if(z.hasOwnProperty(w)){A.appendBodyCell(z[w],q[w],x,z,y)}else{A.appendBodyCell("",q[w],x,z,y)}y++}if(v!=true){A.endRow()}}function m(w,x){if(x.style){return j[x.style]}var v=t();if(v.length>0){return v[0].style}return null}function t(){if(!g){g=new Array();b.each(j,function(v,w){g[g.length]={name:v,style:w}})}return g}function s(A,z){var B=q[z];if(B){if(B.customCellStyles){var x=B.customCellStyles[A];if(x){return j[x]}}if(B.cellStyle){if(B.cellAltStyle){var w=A%2;if(w==0){return j[B.cellStyle]}return j[B.cellAltStyle]}return j[B.cellStyle]}else{var v=t();if(v.length>0){var w=A%(v.length-1);var y=v[w+1].style;return y}}}return null}function r(y,w,x){var v=document.createElement("input");v.name=w;v.value=y;v.type="hidden";x.appendChild(v);return v}function f(x,v,w){var y=document.createElement("textarea");y.name=v;y.value=x;w.appendChild(y);return y}function i(w,z,y,v,A){var x=document.createElement("form");r(w,"filename",x);r(z,"format",x);f(y,"content",x);if(v==undefined||v==""){if(window&&window.location.toString().indexOf("jqwidgets.com")>=0){v="https://jqwidgets.com/export_server/dataexport.php"}else{v="http://jquerygrid.net/export_server/dataexport.php"}}x.action=v;x.method="post";if(A){x.acceptCharset=A}document.body.appendChild(x);return x}l=function(A,y,x,w,z,v){if(!(this instanceof a)){return new a(A,y,x,z,v)}u=A;q=y;j=x;this.exportTo=function(K,H,G,B){K=K.toString().toLowerCase();var D=c[K];if(typeof D==="undefined"){throw"You can't export to "+K+" format."}if(K==="pdf"&&B==undefined){var M=this.exportTo(K,H,K,"pdf");if(!b.jqx.pdfExport){b.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var L=new pdfDataExport(b.jqx.pdfExport.orientation,"pt",b.jqx.pdfExport.paperSize);L.cellInitialize();var J=b(M).find("th");var I=b(M).find("tr");var N=0;L.setFontSize(13*72/96);var F=595;switch(b.jqx.pdfExport.paperSize){case"legal":var F=612;if(b.jqx.pdfExport.orientation!=="portrait"){F=1008}break;case"letter":var F=612;if(b.jqx.pdfExport.orientation!=="portrait"){F=792}break;case"a3":var F=841;if(b.jqx.pdfExport.orientation!=="portrait"){F=1190}break;case"a4":var F=595;if(b.jqx.pdfExport.orientation!=="portrait"){F=842}break;case"a5":var F=420;if(b.jqx.pdfExport.orientation!=="portrait"){F=595}break}F-=20;var E=0;var C=[];b.each(J,function(O){var P=parseInt(this.style.width);if(isNaN(P)){P=25}var Q=P*72/96;C[O]=Q;E+=Q});if(E>F){b.each(C,function(O){C[O]=(C[O]/E)*100;C[O]=C[O]*F/100})}b.each(J,function(P){var T=C[P];var S=25*72/96;var R=L.getTextDimensions(b(this).html());var Q=b(this).html();if(R.w+3>T){var O=L.splitTextToSize(Q,T-3);var U=O[0];if(U.length>3){Q=U.substring(0,U.length-3)+"..."}else{Q=U.substring(0,1)+"..."}var O=L.splitTextToSize(Q,T-3);var U=O[0];if(U!=Q){Q=U}}L.cell(10,10,T,S,Q,N)});N++;b.each(I,function(V){if(V===0){return true}var P=b(this).children();var Q=P.length>J.length;if(Q){var Y=P.length-J.length;var Z="";var X=C[0];var U=25*72/96;for(var R=0;R<=Y;R++){var O=P[R].innerHTML;if(O==="+"||O==="-"){O=O+" "}if(O==="&nbsp;"){O="   "}Z+=O}var T=L.getTextDimensions(Z);if(T.w+3>X){var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S.length>3){Z=S.substring(0,S.length-3)+"..."}else{Z=S.substring(0,1)+"..."}var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S!=Z){Z=S}}L.cell(10,10,X,U,Z,N);for(var R=Y+1;R<P.length;R++){var V=R-Y;var X=C[V];var U=25*72/96;var Z=b(P[R]).html();var T=L.getTextDimensions(b(P[R]).html());if(T.w+3>X){var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S.length>3){Z=S.substring(0,S.length-3)+"..."}else{Z=S.substring(0,1)+"..."}var W=L.splitTextToSize(Z,X-3);var S=W[0];if(S!=Z){Z=S}}L.cell(10,10,X,U,Z,N)}N++;return true}b.each(P,function(ab){var af=C[ab];var ae=25*72/96;var ad=b(this).html();var ac=L.getTextDimensions(b(this).html());if(ac.w+3>af){var aa=L.splitTextToSize(ad,af-3);var ag=aa[0];if(ag.length>3){ad=ag.substring(0,ag.length-3)+"..."}else{ad=ag.substring(0,1)+"..."}var aa=L.splitTextToSize(ad,af-3);var ag=aa[0];if(ag!=ad){ad=ag}}L.cell(10,10,af,ae,ad,N)});N++});if(b.jqx.browser.msie&&b.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}return L}return d(D,u,q,j,H,G,B)};this.exportToFile=function(L,B,O,F,I){if(L==="pdf"){var N=this.exportTo(L,I,L,B);if(!b.jqx.pdfExport){b.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var M=new pdfDataExport(b.jqx.pdfExport.orientation,"pt",b.jqx.pdfExport.paperSize);if(F=="utf-8"||F=="UTF-8"){M.setFont("courier","normal")}M.cellInitialize();var K=b(N).find("th");var J=b(N).find("tr");var P=0;M.setFontSize(13*72/96);var G=595;switch(b.jqx.pdfExport.paperSize){case"legal":var G=612;if(b.jqx.pdfExport.orientation!=="portrait"){G=1008}break;case"letter":var G=612;if(b.jqx.pdfExport.orientation!=="portrait"){G=792}break;case"a3":var G=841;if(b.jqx.pdfExport.orientation!=="portrait"){G=1190}break;case"a4":var G=595;if(b.jqx.pdfExport.orientation!=="portrait"){G=842}break;case"a5":var G=420;if(b.jqx.pdfExport.orientation!=="portrait"){G=595}break}G-=20;var E=0;var C=[];b.each(K,function(Q){var R=parseInt(this.style.width);if(isNaN(R)){R=25}var S=R*72/96;C[Q]=S;E+=S});if(E>G){b.each(C,function(Q){C[Q]=(C[Q]/E)*100;C[Q]=C[Q]*G/100})}b.each(K,function(R){var V=C[R];var U=25*72/96;var T=M.getTextDimensions(b(this).html());var S=b(this).html();if(T.w+3>V){var Q=M.splitTextToSize(S,V-3);var W=Q[0];if(W.length>3){S=W.substring(0,W.length-3)+"..."}else{S=W.substring(0,1)+"..."}var Q=M.splitTextToSize(S,V-3);var W=Q[0];if(W!=S){S=W}}M.cell(10,10,V,U,S,P)});P++;b.each(J,function(X){if(X===0){return true}var R=b(this).children();var S=R.length>K.length;if(S){var aa=R.length-K.length;var ab="";var Z=C[0];var W=25*72/96;for(var T=0;T<=aa;T++){var Q=R[T].innerHTML;if(Q==="+"||Q==="-"){Q=Q+" "}if(Q==="&nbsp;"){Q="   "}ab+=Q}var V=M.getTextDimensions(ab);if(V.w+3>Z){var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}M.cell(10,10,Z,W,ab,P);for(var T=aa+1;T<R.length;T++){var X=T-aa;var Z=C[X];var W=25*72/96;var ab=b(R[T]).html();if(ab==="&nbsp;"){ab="   "}var V=M.getTextDimensions(b(R[T]).html());if(V.w+3>Z){var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=M.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}M.cell(10,10,Z,W,ab,P)}P++;return true}b.each(R,function(ad){var ah=C[ad];var ag=25*72/96;var af=b(this).html();if(af==="&nbsp;"){af="   "}var ae=M.getTextDimensions(b(this).html());if(ae.w+3>ah){var ac=M.splitTextToSize(af,ah-3);var ai=ac[0];if(ai.length>3){af=ai.substring(0,ai.length-3)+"..."}else{af=ai.substring(0,1)+"..."}var ac=M.splitTextToSize(af,ah-3);var ai=ac[0];if(ai!=af){af=ai}}M.cell(10,10,ah,ag,af,P)});P++});if(b.jqx.browser.msie&&b.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}M.save(B+".pdf");return}var H=this.exportTo(L,I,L,B),D=i(B,L,H,O,F);D.submit();document.body.removeChild(D)};this.exportToLocalFile=function(F,C,D,B){var E=this.exportTo(F,D,B);document.location.href="data:application/octet-stream;filename="+C+","+encodeURIComponent(E)}};l.extend=function(v,w){if(w instanceof b.jqx.dataAdapter.DataExportModuleBase){c[v]=w}else{throw"The module "+v+" is not instance of DataExportModuleBase."}};return l}());b.jqx.dataAdapter.ArrayExporter=a})(jqxBaseFramework);(function(b){var a=function(){this.formatData=function(f,e,c,h){if(e==="date"){var d="";if(typeof f==="string"){d=b.jqx.dataFormat.tryparsedate(f);f=d}if(f===""||f===null){return""}d=b.jqx.dataFormat.formatdate(f,c,h);if((d&&d.toString()=="NaN")||d==null){return""}f=d}else{if(e==="number"||e==="float"||e==="int"||e=="integer"){if(f===""||f===null){return""}if(!isNaN(new Number(f))){var g=b.jqx.dataFormat.formatnumber(f,c,h);if(g.toString()=="NaN"){return""}else{f=g}}}else{f=f}}if(f===null){return""}return f};this.getFormat=function(f){var c=f?f.formatString:"";var e=f?f.localization:"";var d="string";d=f?f.type:"string";if(d=="number"||d=="float"){if(!c){c="f2"}}if(d=="int"||d=="integer"){if(!c){c="n0"}}if(d=="date"){if(!c){c="d"}}return{type:d,formatString:c,localization:e}};this.beginFile=function(){throw"Not implemented!"};this.beginHeader=function(){throw"Not implemented!"};this.appendHeaderCell=function(){throw"Not implemented!"};this.endHeader=function(){throw"Not implemented!"};this.beginBody=function(){throw"Not implemented!"};this.beginRow=function(){throw"Not implemented!"};this.beginRows=function(){throw"Not implemented!"};this.endRows=function(){throw"Not implemented!"};this.appendBodyCell=function(){throw"Not implemented!"};this.endRow=function(){throw"Not implemented!"};this.endBody=function(){throw"Not implemented!"};this.endFile=function(){throw"Not implemented!"};this.getFile=function(){throw"Not implemented!"}};b.jqx.dataAdapter.DataExportModuleBase=a})(jqxBaseFramework);(function(d){var c=function(j){var e,h,g;var l=0;var i=this;this.beginFile=function(){e=""};this.beginHeader=function(){};this.appendHeaderCell=function(q,r,p,m,n){if(p){if(p.level!=undefined){if(n<p.maxLevel){return}else{if(n===p.maxLevel){if(m){k(q.text)}for(var o=0;o<p.maxLevel;o++){k("")}return}}}}g=m;if(m){k(q.text)}};this.endHeader=function(){this.endRow()};this.beginBody=function(){l=0};this.beginRow=function(){if((l>0)||(l==0&&g)){e+="\n"}l++};this.appendBodyCell=function(q,m,p,r,n){if(p){if(p.maxLevel!=undefined){if(n===p.maxLevel){k(q,m);for(var o=0;o<p.maxLevel-r.level-1;o++){k("",m)}return}}}k(q,m)};this.endRow=function(){e=e.substring(0,e.length-1)};this.endBody=function(){};this.endFile=function(){};this.getFile=function(){return e};function f(m,o){if(o){var n=i.getFormat(o);m=i.formatData(m,n.type,n.formatString,n.localization)}m='"'+m+'"';return m}function k(m,n){m=f(m,n);e+=m+j}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();var a=function(){};a.prototype=new c(",");var b=function(){};b.prototype=new c("\t");d.jqx.dataAdapter.ArrayExporter.extend("csv",new a());d.jqx.dataAdapter.ArrayExporter.extend("tsv",new b())})(jqxBaseFramework);(function(d){var a=function(){var i=false;var g;var h;var j=0;this.setPDF=function(){i=true};this.beginFile=function(k){if(i||k==undefined){g='<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}else{g='<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta http-equiv=Content-type content="text/html; charset=UTF-8">\n\t</head>\n\t<body>\n\t\t<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}};this.beginHeader=function(){if(i){g+="\n\t<thead><tr>"}else{g+="\n\t\t\t<thead>"}};this.appendHeaderCell=function(m,n,l,k){h=k;if(!k){return}if(i){g+='\n\t\t\t\t<th style="'+f(l)+'">'+m.text+"</th>"}else{if(l.disabled){return}if(l.merge){if(m.width){g+="\n\t\t\t\t<th colspan="+(1+l.merge)+' style="width: '+m.width+"px; "+f(l)+'">'+m.text+"</th>"}else{g+="\n\t\t\t\t<th colspan="+(1+l.merge)+' style="'+f(l)+'">'+m.text+"</th>"}}else{if(m.width){g+='\n\t\t\t\t<th style="width: '+m.width+"px; "+f(l)+'">'+m.text+"</th>"}else{g+='\n\t\t\t\t<th style="'+f(l)+'">'+m.text+"</th>"}}}};this.endHeader=function(){if(i){g+="\n\t</tr></thead>"}else{g+="\n\t\t\t</thead>"}};this.beginBody=function(){if(i){g+="\n\t<tbody>"}else{g+="\n\t\t\t<tbody>"}j=0};this.beginRow=function(){if(i){g+="\n\t<tr>"}else{g+="\n\t\t\t\t<tr>"}j++};this.appendBodyCell=function(l,n,k){var m=this.getFormat(n);if(l===""){l="&nbsp;"}if(i){if(j==1&&!h){g+='\n\t\t\t\t\t<td style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+='\n\t\t\t\t\t<td style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}else{if(k.merge){if(j==1&&!h){g+="\n\t\t\t\t\t<td colspan="+(1+k.merge)+' style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+="\n\t\t\t\t\t<td colspan="+(1+k.merge)+' style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}else{if(j==1&&!h){g+='\n\t\t\t\t\t<td style="'+f(k)+' border-top-width: 1px;">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}else{g+='\n\t\t\t\t\t<td style="'+f(k)+'">'+this.formatData(l,m.type,m.formatString,m.localization)+"</td>"}}}};this.endRow=function(){if(i){g+="\n\t</tr>"}else{g+="\n\t\t\t\t</tr>"}};this.endBody=function(){if(i){g+="\n\t</tbody>"}else{g+="\n\t\t\t</tbody>"}};this.endFile=function(k){if(i||k==undefined){g+="\n</table>"}else{g+="\n\t\t</table>\n\t</body>\n</html>\n"}};this.getFile=function(){return g};function f(m){var k="";for(var l in m){if(m.hasOwnProperty(l)){if(i&&l=="font-size"){m[l]="100%"}k+=l+":"+m[l]+";"}}return k}};a.prototype=new d.jqx.dataAdapter.DataExportModuleBase();var e=function(){};e.prototype=new a();var c=function(){};c.prototype=new a();var b=new c();d.jqx.dataAdapter.ArrayExporter.extend("html",new e());d.jqx.dataAdapter.ArrayExporter.extend("pdf",b)})(jqxBaseFramework);(function(b){var a=function(){var h,l,d,i,c,j,m={style:"",stylesMap:{font:{color:"Color","font-family":"FontName","font-style":"Italic","font-weight":"Bold"},interior:{"background-color":"Color",background:"Color"},alignment:{left:"Left",center:"Center",right:"Right"}},startStyle:function(p){this.style+='\n\t\t<Style ss:ID="'+p+'" ss:Name="'+p+'">'},buildAlignment:function(q){if(q["text-align"]){var r=this.stylesMap.alignment[q["text-align"]];if(!r){r="Left"}var p='\n\t\t\t<Alignment ss:Vertical="Bottom" ss:Horizontal="'+r+'"/>';this.style+=p}},buildBorder:function(s){if(s["border-color"]){var r="\n\t\t\t<Borders>";var u='\n\t\t\t\t<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var p='\n\t\t\t\t<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var q='\n\t\t\t\t<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';var t='\n\t\t\t\t<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+s["border-color"]+'"/>';r+=u;r+=p;r+=q;r+=t;r+="\n\t\t\t</Borders>";this.style+=r}},buildFont:function(q){var r=this.stylesMap.font,p="\n\t\t\t<Font ";for(var s in r){if(typeof q[s]!=="undefined"){if(s==="font-style"&&q[s].toString().toLowerCase()==="italic"){p+='ss:Italic="1" '}else{if(s==="font-weight"&&q[s].toString().toLowerCase()==="bold"){p+='ss:Bold="1" '}else{if(s==="color"){p+="ss:"+r[s]+'="'+q[s]+'" '}}}}}p+="/>";this.style+=p},buildInterior:function(q){var r=this.stylesMap.interior,t="\n\t\t\t<Interior ";var p=false;for(var s in r){if(typeof q[s]!=="undefined"){t+="ss:"+r[s]+'="'+q[s]+'" ';p=true}}if(p){t+='ss:Pattern="Solid"'}t+="/>";this.style+=t},buildFormat:function(q){if(q.dataType=="number"||q.dataType=="float"||q.dataType=="int"||q.dataType=="integer"){var p=q.formatString;if(p==""||p.indexOf("n")!=-1||p.indexOf("N")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="0"/>'}else{if(p=="f"||p=="F"||p=="D"||p.indexOf("d")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="#,##0.00_);[Red](#,##0.00)"/>'}else{if(p.indexOf("p")!=-1||p.indexOf("P")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="Percent"/>'}else{if(p.indexOf("c")!=-1||p.indexOf("C")!=-1){if(q.currencysymbol&&parseInt(q.currencysymbol.charCodeAt(0))==8364){this.style+='\n\t\t\t<NumberFormat ss:Format="Euro Currency"/>'}else{this.style+='\n\t\t\t<NumberFormat ss:Format="Currency"/>'}}}}}}else{if(q.dataType=="date"){this.style+='\n\t\t\t<NumberFormat ss:Format="Short Date"/>'}}},closeStyle:function(){this.style+="\n\t\t</Style>"},toString:function(){var p=this.style;this.style="";return p}};this.beginFile=function(){c={};j=0;h='<?xml version="1.0"?>\n\t<?mso-application progid="Excel.Sheet"?> \n\t<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:o="urn:schemas-microsoft-com:office:office" \n\txmlns:x="urn:schemas-microsoft-com:office:excel" \n\txmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:html="http://www.w3.org/TR/REC-html40"> \n\t<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> \n\t<Version>12.00</Version> \n\t</DocumentProperties> \n\t<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> \n\t<WindowHeight>8130</WindowHeight> \n\t<WindowWidth>15135</WindowWidth> \n\t<WindowTopX>120</WindowTopX> \n\t<WindowTopY>45</WindowTopY> \n\t<ProtectStructure>False</ProtectStructure> \n\t<ProtectWindows>False</ProtectWindows> \n\t</ExcelWorkbook> \n\t<Styles>'};this.beginHeader=function(){l='\n\t<Worksheet ss:Name="Sheet1">\n\t\t<Table>';d=[];i=[]};this.appendHeaderCell=function(r,s,q){var p=r.width!=undefined?r.width:r.text.length*10;l+='\n\t\t\t<Column ss:Width="'+p+'"/>';d.push(r);i.push(q)};this.endHeader=function(p){if(p){this.beginRow();for(var q=0;q<d.length;q+=1){if(i[q].disabled){continue}g.call(this,d[q]["text"],null,i[q])}this.endRow()}};this.beginBody=function(){};this.beginRow=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="<Row>";return}l+="\n\t\t\t<Row>"};this.beginRows=function(p){l+="\n\t\t\t\t<Rows>"};this.appendBodyCell=function(r,p,q,s){g.call(this,r,p,q,s)};this.endRow=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="</Row>";return}l+="\n\t\t\t</Row>"};this.endRows=function(q){if(q!=undefined){l+="\n\t\t\t";for(var p=0;p<q;p++){l+="\t"}l+="</Rows>";return}};this.endBody=function(){l+="\n\t\t</Table>"};this.endFile=function(){l+="\n\t</Worksheet>\n</Workbook>";h+="\n\t</Styles>"};this.getFile=function(){return h+l};function g(s,v,r,u){var q="String";var t=this.getFormat(v);if(s!=null&&s.toString().substring(0,3)=="_AG"){s=s.toString().substring(3);q="String"}else{if(t.type=="date"){s=this.formatData(s,t.type,t.formatString,t.localization);if(s===null||s===""){s="";q="String"}}if(t.type=="string"){if(s===null||s===undefined){s=""}else{if(s.toString().indexOf("&")>=0){s=s.toString().replace(/&/g,"&amp;")}if(s.toString().indexOf(">")>=0){s=s.toString().replace(/>/g,"&gt;")}if(s.toString().indexOf("<")>=0){s=s.toString().replace(/</g,"&lt;")}if(s.toString().indexOf('"')>=0){s=s.toString().replace(/"/g,"&quot;")}if(s.toString().indexOf("'")>=0){s=s.toString().replace(/'/g,"&apos;")}}}if(r.dataType=="number"||r.dataType=="float"||r.dataType=="int"||r.dataType=="integer"){q="Number";s=parseFloat(s);if(s===null||isNaN(s)||s===""){s="";q="String"}if(s&&q!="String"&&s!=""){if(v&&v.formatString&&v.formatString.indexOf("p")>=0){s=s/100}}r.currencysymbol=v.localization.currencysymbol}}var p=f(r);if(r.merge){l+='\n\t\t\t\t<Cell ss:MergeAcross="'+r.merge+'" ss:StyleID="'+p+'"><Data ss:Type="'+q+'">'+s+"</Data></Cell>"}else{l+='\n\t\t\t\t<Cell ss:StyleID="'+p+'"><Data ss:Type="'+q+'">'+s+"</Data></Cell>"}}function n(){j+=1;return"xls-style-"+j}function k(q){for(var p in c){if(o(q,c[p])&&o(c[p],q)){return p}}return undefined}function o(t,q){var s=true;for(var r in t){if(t[r]!==q[r]){s=false}}return s}function e(q,p){m.startStyle(q);m.buildAlignment(p);m.buildBorder(p);m.buildFont(p);m.buildInterior(p);m.buildFormat(p);m.closeStyle();h+=m.toString()}function f(p){if(!p){return""}var q=k(p);if(typeof q==="undefined"){q=n();c[q]=p;e(q,p)}return q}};a.prototype=new b.jqx.dataAdapter.DataExportModuleBase();b.jqx.dataAdapter.ArrayExporter.extend("xls",new a())})(jqxBaseFramework);(function(b){var a=function(){var e,c,d;this.beginFile=function(){e='<?xml version="1.0" encoding="UTF-8" ?>';e+="\n<table>"};this.beginHeader=function(){c=[]};this.appendHeaderCell=function(f,g){c.push(g)};this.endHeader=function(){};this.beginBody=function(g,f){};this.beginRow=function(g){if(g!=undefined){if(this.hierarchy){e+="\n\t";for(var f=0;f<g;f++){e+="\t\t"}e+="<row>";d=0;return}}e+="\n\t<row>";d=0};this.beginRows=function(g){if(g!=undefined){e+="\n\t\t";for(var f=0;f<g;f++){e+="\t\t"}e+="<rows>";d=0;return}e+="\n\t\t<rows>"};this.appendBodyCell=function(j,n,g,m,h,l){var k=this.getFormat(n);j=this.formatData(j,k.type,k.formatString,k.localization);if(k.type=="string"){if(j.toString().indexOf("&")>=0){j=j.toString().replace(/&/g,"&amp;")}if(j.toString().indexOf(">")>=0){j=j.toString().replace(/>/g,"&gt;")}if(j.toString().indexOf("<")>=0){j=j.toString().replace(/</g,"&lt;")}if(j.toString().indexOf('"')>=0){j=j.toString().replace(/"/g,"&quot;")}if(j.toString().indexOf("'")>=0){j=j.toString().replace(/'/g,"&apos;")}}if(m.level!=undefined){if(this.hierarchy){e+="\n\t\t";for(var f=0;f<m.level;f++){e+="\t\t"}if(l===undefined){e+="<"+c[d]+">"+j+"</"+c[d]+">"}else{e+="<"+l+">"+j+"</"+l+">"}}else{if(l!=undefined){e+="\n\t\t<"+l+">"+j+"</"+l+">"}else{e+="\n\t\t<"+c[d]+">"+j+"</"+c[d]+">"}}}else{e+="\n\t\t<"+c[d]+">"+j+"</"+c[d]+">"}d++};this.endRow=function(g){if(g!=undefined){if(this.hierarchy){e+="\n\t";for(var f=0;f<g;f++){e+="\t\t"}e+="</row>";d=0;return}}e+="\n\t</row>";d=0};this.endRows=function(g){if(g!=undefined){e+="\n\t\t";for(var f=0;f<g;f++){e+="\t\t"}e+="</rows>";d=0;return}e+="\n\t\t</rows>"};this.endBody=function(){};this.endFile=function(){e+="\n</table>"};this.getFile=function(){return e}};a.prototype=new b.jqx.dataAdapter.DataExportModuleBase();b.jqx.dataAdapter.ArrayExporter.extend("xml",new a())})(jqxBaseFramework);(function(d){var j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(n){return'"'+n.replace(j,function(o){var p=l[o];return typeof p==="string"?p:"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)})+'"'}function b(o){return o<10?"0"+o:o}function e(o){var n;if(isFinite(o.valueOf())){n=o.getUTCFullYear()+"-"+b(o.getUTCMonth()+1)+"-"+b(o.getUTCDate())+"T"+b(o.getUTCHours())+":"+b(o.getUTCMinutes())+":"+b(o.getUTCSeconds())+'Z"'}else{n="null"}return n}function g(q){var n=q.length,o=[],p;for(p=0;p<n;p++){o.push(h(p,q)||"null")}return"["+o.join(",")+"]"}function m(q){var o=[],p,n;for(p in q){if(Object.prototype.hasOwnProperty.call(q,p)){n=h(p,q);if(n){o.push(a(p)+":"+n)}}}return"{"+o.join(",")+"}"}function i(n){switch(Object.prototype.toString.call(n)){case"[object Date]":return e(n);case"[object Array]":return g(n)}return m(n)}function k(o,n){switch(n){case"string":return a(o);case"number":case"float":case"integer":case"int":return isFinite(o)?o:"null";case"boolean":return o}return"null"}function h(o,n){var q=n[o],p=typeof q;if(q&&typeof q==="object"&&typeof q.toJSON==="function"){q=q.toJSON(o);p=typeof q}if(/(number|float|int|integer|string|boolean)/.test(p)||(!q&&p==="object")){return k(q,p)}else{return i(q)}}function f(n){if(window.JSON&&typeof window.JSON.stringify==="function"){return window.JSON.stringify(n)}return h("",{"":n})}var c=function(){var q=this;this.prepareData=function(t,v){if(v){var u=q.getFormat(v);t=q.formatData(t,u.type,u.formatString,u.localization)}return t};var n,p,r,o=[],s=0;this.beginFile=function(){p=[]};this.beginHeader=function(){};this.appendHeaderCell=function(t){};this.endHeader=function(){};this.beginBody=function(u,t){};this.beginRow=function(){if(hierarchy){o[s]={}}else{r={}}};this.beginRows=function(){o[s].rows=[];s++;o[s]={}};this.endRows=function(){s--};this.appendBodyCell=function(u,t){var v=this.prepareData(u,t);if(hierarchy){o[s][t.text]=v}else{r[t.text]=v}};this.endRow=function(){if(hierarchy){if(s==0){p.push(o[s])}else{o[s-1].rows.push(o[s])}}else{p.push(r)}};this.endBody=function(){};this.endFile=function(){n=f(p)};this.getFile=function(){return n}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();d.jqx.dataAdapter.ArrayExporter.extend("json",new c())})(jqxBaseFramework);var pdfDataExport=window.jqxPdfDataExport=(function(){if(typeof btoa==="undefined"){window.btoa=function(m){var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=h.split(""),g,f,e,q,p,o,n,t,l=0,u=0,k="",j=[],d;do{g=m.charCodeAt(l++);f=m.charCodeAt(l++);e=m.charCodeAt(l++);t=g<<16|f<<8|e;q=t>>18&63;p=t>>12&63;o=t>>6&63;n=t&63;j[u++]=s[q]+s[p]+s[o]+s[n]}while(l<m.length);k=j.join("");d=m.length%3;return(d?k.slice(0,d-3):k)+"===".slice(d||3)}}if(typeof atob==="undefined"){window.atob=function(l){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f,e,d,p,o,n,m,q,k=0,r=0,h="",j=[];if(!l){return l}l+="";do{p=g.indexOf(l.charAt(k++));o=g.indexOf(l.charAt(k++));n=g.indexOf(l.charAt(k++));m=g.indexOf(l.charAt(k++));q=p<<18|o<<12|n<<6|m;f=q>>16&255;e=q>>8&255;d=q&255;if(n===64){j[r++]=String.fromCharCode(f)}else{if(m===64){j[r++]=String.fromCharCode(f,e)}else{j[r++]=String.fromCharCode(f,e,d)}}}while(k<l.length);h=j.join("");return h}}var c=typeof Object.keys==="function"?function(d){return Object.keys(d).length}:function(d){var f=0,g;for(g in d){if(d.hasOwnProperty(g)){f++}}return f},a=function(d){this.topics={};this.context=d;this.publish=function(h,m){if(this.topics[h]){var j=this.topics[h],o=[],n,g,e,f,k=function(){};m=Array.prototype.slice.call(arguments,1);for(g=0,e=j.length;g<e;g++){f=j[g];n=f[0];if(f[1]){f[0]=k;o.push(g)}n.apply(this.context,m)}for(g=0,e=o.length;g<e;g++){j.splice(o[g],1)}}};this.subscribe=function(e,g,f){if(!this.topics[e]){this.topics[e]=[[g,f]]}else{this.topics[e].push([g,f])}return{topic:e,callback:g}};this.unsubscribe=function(h){if(this.topics[h.topic]){var f=this.topics[h.topic],g,e;for(g=0,e=f.length;g<e;g++){if(f[g][0]===h.callback){f.splice(g,1)}}}}};function b(E,ae,M,V){if(typeof E==="undefined"){E="p"}else{E=E.toString().toLowerCase()}if(typeof ae==="undefined"){ae="mm"}if(typeof M==="undefined"){M="a4"}if(typeof V==="undefined"&&typeof zpipe==="undefined"){V=false}var at=M.toString().toLowerCase(),ao="0.9.0rc2",t=[],F=0,av=V,U="1.3",N={a3:[841.89,1190.55],a4:[595.28,841.89],a5:[420.94,595.28],letter:[612,792],legal:[612,1008]},ad="0 g",H="0 G",g=0,f=[],n=2,v=false,D=[],ai={},Q={},aj=16,d,z=0.200025,B,C,ak,O={title:"",subject:"",author:"",keywords:"",creator:""},R=0,T=0,P={},G=new a(P),af,aq,p=function(i){return i.toFixed(2)},o=function(i){return i.toFixed(3)},A=function(i){var k=(i).toFixed(0);if(i<10){return"0"+k}else{return k}},r=function(i){var k=(i).toFixed(0);if(k.length<10){return new Array(11-k.length).join("0")+k}else{return k}},ab=function(i){if(v){f[g].push(i)}else{t.push(i);F+=i.length+1}},w=function(){n++;D[n]=F;ab(n+" 0 obj");return n},K=function(i){ab("stream");ab(i);ab("endstream")},am,S,ap,al,aa=function(){am=C*ak;S=B*ak;var aB,aA,k,aw,ax,az,ay;for(aB=1;aB<=g;aB++){w();ab("<</Type /Page");ab("/Parent 1 0 R");ab("/Resources 2 0 R");ab("/Contents "+(n+1)+" 0 R>>");ab("endobj");aA=f[aB].join("\n");w();if(av){k=[];for(ax=0;ax<aA.length;++ax){k[ax]=aA.charCodeAt(ax)}ay=adler32cs.from(aA);az=new Deflater(6);az.append(new Uint8Array(k));aA=az.flush();k=[new Uint8Array([120,156]),new Uint8Array(aA),new Uint8Array([ay&255,(ay>>8)&255,(ay>>16)&255,(ay>>24)&255])];aA="";for(ax in k){if(k.hasOwnProperty(ax)){aA+=String.fromCharCode.apply(null,k[ax])}}ab("<</Length "+aA.length+" /Filter [/FlateDecode]>>")}else{ab("<</Length "+aA.length+">>")}K(aA);ab("endobj")}D[1]=F;ab("1 0 obj");ab("<</Type /Pages");ap="/Kids [";for(ax=0;ax<g;ax++){ap+=(3+2*ax)+" 0 R "}ab(ap+"]");ab("/Count "+g);ab("/MediaBox [0 0 "+p(am)+" "+p(S)+"]");ab(">>");ab("endobj")},X=function(i){i.objectNumber=w();ab("<</BaseFont/"+i.PostScriptName+"/Type/Font");if(typeof i.encoding==="string"){ab("/Encoding/"+i.encoding)}ab("/Subtype/Type1>>");ab("endobj")},J=function(){var i;for(i in ai){if(ai.hasOwnProperty(i)){X(ai[i])}}},L=function(){G.publish("putXobjectDict")},x=function(){ab("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");ab("/Font <<");var i;for(i in ai){if(ai.hasOwnProperty(i)){ab("/"+i+" "+ai[i].objectNumber+" 0 R")}}ab(">>");ab("/XObject <<");L();ab(">>")},h=function(){J();G.publish("putResources");D[2]=F;ab("2 0 obj");ab("<<");x();ab(">>");ab("endobj");G.publish("postPutResources")},m=function(aw,k,ax){var i;if(Q[k]===i){Q[k]={}}Q[k][ax]=aw},au={},u=function(i,ax,az,aw){var ay="F"+(c(ai)+1).toString(10),k=ai[ay]={id:ay,PostScriptName:i,fontName:ax,fontStyle:az,encoding:aw,metadata:{}};m(ay,ax,az);G.publish("addFont",k);return ay},e=function(){var k="helvetica",aG="times",aI="courier",aF="normal",aE="bold",aD="italic",aH="bolditalic",ax="StandardEncoding",aA=[["Helvetica",k,aF],["Helvetica-Bold",k,aE],["Helvetica-Oblique",k,aD],["Helvetica-BoldOblique",k,aH],["Courier",aI,aF],["Courier-Bold",aI,aE],["Courier-Oblique",aI,aD],["Courier-BoldOblique",aI,aH],["Times-Roman",aG,aF],["Times-Bold",aG,aE],["Times-Italic",aG,aD],["Times-BoldItalic",aG,aH]],aC,ay,aB,az;for(aC=0,ay=aA.length;aC<ay;aC++){var aw=ax;aB=u(aA[aC][0],aA[aC][1],aA[aC][2],aw);az=aA[aC][0].split("-");m(aB,az[0],az[1]||"")}G.publish("addFonts",{fonts:ai,dictionary:Q})},s=function(aG,ax){var aC,aA,az,ay,aE,aD,aw,aF,k,aB;if(ax===az){ax={}}ay=ax.sourceEncoding?ay:"Unicode";aD=ax.outputEncoding;if((ax.autoencode||aD)&&ai[d].metadata&&ai[d].metadata[ay]&&ai[d].metadata[ay].encoding){aE=ai[d].metadata[ay].encoding;if(!aD&&ai[d].encoding){aD=ai[d].encoding}if(!aD&&aE.codePages){aD=aE.codePages[0]}if(typeof aD==="string"){aD=aE[aD]}if(aD){aF=false;aw=[];for(aC=0,aA=aG.length;aC<aA;aC++){k=aD[aG.charCodeAt(aC)];if(k){aw.push(String.fromCharCode(k))}else{aw.push(aG[aC])}if(aw[aC].charCodeAt(0)>>8){aF=true}}aG=aw.join("")}}aC=aG.length;while(aF===az&&aC!==0){if(aG.charCodeAt(aC-1)>>8){aF=true}aC--}if(!aF){return aG}else{aw=ax.noBOM?[]:[254,255];for(aC=0,aA=aG.length;aC<aA;aC++){k=aG.charCodeAt(aC);aB=k>>8;if(aB>>8){throw new Error("Character at position "+aC.toString(10)+" of string '"+aG+"' exceeds 16bits. Cannot be encoded into UCS-2 BE")}aw.push(aB);aw.push(k-(aB<<8))}return String.fromCharCode.apply(az,aw)}},Z=function(k,i){return s(k,i).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(){ab("/Producer (pdfDataExport "+ao+")");if(O.title){ab("/Title ("+Z(O.title)+")")}if(O.subject){ab("/Subject ("+Z(O.subject)+")")}if(O.author){ab("/Author ("+Z(O.author)+")")}if(O.keywords){ab("/Keywords ("+Z(O.keywords)+")")}if(O.creator){ab("/Creator ("+Z(O.creator)+")")}var i=new Date();ab("/CreationDate (D:"+[i.getFullYear(),A(i.getMonth()+1),A(i.getDate()),A(i.getHours()),A(i.getMinutes()),A(i.getSeconds())].join("")+")")},W=function(){ab("/Type /Catalog");ab("/Pages 1 0 R");ab("/OpenAction [3 0 R /FitH null]");ab("/PageLayout /OneColumn");G.publish("putCatalog")},l=function(){ab("/Size "+(n+1));ab("/Root "+n+" 0 R");ab("/Info "+(n-1)+" 0 R")},ar=function(){g++;v=true;f[g]=[]},ah=function(){ar();ab(p(z*ak)+" w");ab(H);if(R!==0){ab(R.toString(10)+" J")}if(T!==0){ab(T.toString(10)+" j")}G.publish("addPage",{pageNumber:g})},y=function(aw,ay){var i,k;if(aw===k){aw=ai[d].fontName}if(ay===k){ay=ai[d].fontStyle}try{i=Q[aw][ay]}catch(ax){i=k}if(!i){throw new Error("Unable to look up font label for font '"+aw+"', '"+ay+"'. Refer to getFontList() for available fonts.")}return i},q=function(){v=false;t=[];D=[];ab("%PDF-"+U);aa();h();w();ab("<<");Y();ab(">>");ab("endobj");w();ab("<<");W();ab(">>");ab("endobj");var aw=F,k;ab("xref");ab("0 "+(n+1));ab("0000000000 65535 f ");for(k=1;k<=n;k++){ab(r(D[k])+" 00000 n ")}ab("trailer");ab("<<");l();ab(">>");ab("startxref");ab(aw);ab("%%EOF");v=true;return t.join("\n")},ac=function(i){var k="S";if(i==="F"){k="f"}else{if(i==="FD"||i==="DF"){k="B"}}return k},I=function(az,aw){var ay,aB,aA,aC,ax,k;switch(az){case ay:return q();case"save":if(navigator.getUserMedia){if(window.URL===undefined){return P.output("dataurlnewwindow")}else{if(window.URL.createObjectURL===undefined){return P.output("dataurlnewwindow")}}}aB=q();aA=aB.length;aC=new Uint8Array(new ArrayBuffer(aA));for(ax=0;ax<aA;ax++){aC[ax]=aB.charCodeAt(ax)}k=new Blob([aC],{type:"application/pdf"});saveAs(k,aw);break;case"datauristring":case"dataurlstring":return"data:application/pdf;base64,"+btoa(q());case"datauri":case"dataurl":document.location.href="data:application/pdf;base64,"+btoa(q());break;case"dataurlnewwindow":window.open("data:application/pdf;base64,"+btoa(q()));break;default:throw new Error('Output type "'+az+'" is not supported.')}};if(ae==="pt"){ak=1}else{if(ae==="mm"){ak=72/25.4}else{if(ae==="cm"){ak=72/2.54}else{if(ae==="in"){ak=72}else{throw ("Invalid unit: "+ae)}}}}if(N.hasOwnProperty(at)){B=N[at][1]/ak;C=N[at][0]/ak}else{try{B=M[1];C=M[0]}catch(an){throw ("Invalid format: "+M)}}if(E==="p"||E==="portrait"){E="p";if(C>B){af=C;C=B;B=af}}else{if(E==="l"||E==="landscape"){E="l";if(B>C){af=C;C=B;B=af}}else{throw ("Invalid orientation: "+E)}}P.internal={pdfEscape:Z,getStyle:ac,getFont:function(){return ai[y.apply(P,arguments)]},getFontSize:function(){return aj},btoa:btoa,write:function(i,ax,aw,k){ab(arguments.length===1?i:Array.prototype.join.call(arguments," "))},getCoordinateString:function(i){return p(i*ak)},getVerticalCoordinateString:function(i){return p((B-i)*ak)},collections:{},newObject:w,putStream:K,events:G,scaleFactor:ak,pageSize:{width:C,height:B},output:function(k,i){return I(k,i)}};P.addPage=function(){ah();return this};var ag=["","0","00","000","0000"];var j=function(aA,aw){var ax=["FEFF"];for(var az=0,k=aA.length,ay;az<k;++az){ay=aA.charCodeAt(az).toString(16).toUpperCase();ax.push(ag[4-ay.length],ay)}return ax.join("")};P.text16=function(aF,aE,aC,aw){var ax,aA,az,aD,k,aB,ay;if(typeof aF==="number"){aA=aC;az=aF;aD=aE;aF=aA;aE=az;aC=aD}if(typeof aF==="string"&&aF.match(/[\n\r]/)){aF=aF.split(/\r\n|\r|\n/g)}if(typeof aw==="undefined"){aw={noBOM:true,autoencode:true}}else{if(aw.noBOM===ax){aw.noBOM=true}if(aw.autoencode===ax){aw.autoencode=true}}aw.autoencode=false;if(typeof aF==="string"){aB=j(aF,aw)}else{if(aF instanceof Array){k=aF.concat();for(ay=k.length-1;ay!==-1;ay--){k[ay]=j(k[ay],aw)}aB=k.join("> Tj\nT* <")}else{throw new Error('Type of text must be string or Array. "'+aF+'" is not recognized.')}}ab("BT\n/"+d+" "+aj+" Tf\n"+aj+" TL\n"+ad+"\n"+p(aE*ak)+" "+p((B-aC)*ak)+" Td\n<"+aB+"> Tj\nET");return this};P.text=function(aF,aE,aC,aw){var ax,aA,az,aD,k,aB,ay;if(typeof aF==="number"){aA=aC;az=aF;aD=aE;aF=aA;aE=az;aC=aD}if(typeof aF==="string"&&aF.match(/[\n\r]/)){aF=aF.split(/\r\n|\r|\n/g)}if(typeof aw==="undefined"){aw={noBOM:true,autoencode:true}}else{if(aw.noBOM===ax){aw.noBOM=true}if(aw.autoencode===ax){aw.autoencode=true}}if(typeof aF==="string"){aB=Z(aF,aw)}else{if(aF instanceof Array){k=aF.concat();for(ay=k.length-1;ay!==-1;ay--){k[ay]=Z(k[ay],aw)}aB=k.join(") Tj\nT* (")}else{throw new Error('Type of text must be string or Array. "'+aF+'" is not recognized.')}}ab("BT\n/"+d+" "+aj+" Tf\n"+aj+" TL\n"+ad+"\n"+p(aE*ak)+" "+p((B-aC)*ak)+" Td\n("+aB+") Tj\nET");return this};P.line=function(k,ax,i,aw){ab(p(k*ak)+" "+p((B-ax)*ak)+" m "+p(i*ak)+" "+p((B-aw)*ak)+" l S");return this};P.lines=function(k,aF,aE,aO,aK){var ay,aM,aC,aD,aB,aA,aI,aG,aN,aL,az,aJ,ax,aH,aw;if(typeof k==="number"){aM=aE;aC=k;aD=aF;k=aM;aF=aC;aE=aD}aK=ac(aK);aO=aO===ay?[1,1]:aO;ab(o(aF*ak)+" "+o((B-aE)*ak)+" m ");aB=aO[0];aA=aO[1];aG=k.length;aH=aF;aw=aE;for(aI=0;aI<aG;aI++){aN=k[aI];if(aN.length===2){aH=aN[0]*aB+aH;aw=aN[1]*aA+aw;ab(o(aH*ak)+" "+o((B-aw)*ak)+" l")}else{aL=aN[0]*aB+aH;az=aN[1]*aA+aw;aJ=aN[2]*aB+aH;ax=aN[3]*aA+aw;aH=aN[4]*aB+aH;aw=aN[5]*aA+aw;ab(o(aL*ak)+" "+o((B-az)*ak)+" "+o(aJ*ak)+" "+o((B-ax)*ak)+" "+o(aH*ak)+" "+o((B-aw)*ak)+" c")}}ab(aK);return this};P.rect=function(i,az,k,ax,aw){var ay=ac(aw);ab([p(i*ak),p((B-az)*ak),p(k*ak),p(-ax*ak),"re",ay].join(" "));return this};P.triangle=function(ax,aA,k,ay,i,aw,az){this.lines([[k-ax,ay-aA],[i-k,aw-ay],[ax-i,aA-aw]],ax,aA,[1,1],az);return this};P.roundedRect=function(k,aB,aw,ay,aA,az,ax){var i=4/3*(Math.SQRT2-1);this.lines([[(aw-2*aA),0],[(aA*i),0,aA,az-(az*i),aA,az],[0,(ay-2*az)],[0,(az*i),-(aA*i),az,-aA,az],[(-aw+2*aA),0],[-(aA*i),0,-aA,-(az*i),-aA,-az],[0,(-ay+2*az)],[0,-(az*i),(aA*i),-az,aA,-az]],k+aA,aB,[1,1],ax);return this};P.ellipse=function(i,aB,az,ay,k){var aA=ac(k),ax=4/3*(Math.SQRT2-1)*az,aw=4/3*(Math.SQRT2-1)*ay;ab([p((i+az)*ak),p((B-aB)*ak),"m",p((i+az)*ak),p((B-(aB-aw))*ak),p((i+ax)*ak),p((B-(aB-ay))*ak),p(i*ak),p((B-(aB-ay))*ak),"c"].join(" "));ab([p((i-ax)*ak),p((B-(aB-ay))*ak),p((i-az)*ak),p((B-(aB-aw))*ak),p((i-az)*ak),p((B-aB)*ak),"c"].join(" "));ab([p((i-az)*ak),p((B-(aB+aw))*ak),p((i-ax)*ak),p((B-(aB+ay))*ak),p(i*ak),p((B-(aB+ay))*ak),"c"].join(" "));ab([p((i+ax)*ak),p((B-(aB+ay))*ak),p((i+az)*ak),p((B-(aB+aw))*ak),p((i+az)*ak),p((B-aB)*ak),"c",aA].join(" "));return this};P.circle=function(i,ax,aw,k){return this.ellipse(i,ax,aw,aw,k)};P.setProperties=function(i){var k;for(k in O){if(O.hasOwnProperty(k)&&i[k]){O[k]=i[k]}}return this};P.setFontSize=function(i){aj=i;return this};P.setFont=function(i,k){d=y(i,k);return this};P.setFontStyle=P.setFontType=function(k){var i;d=y(i,k);return this};P.getFontList=function(){var aw={},k,ax,i;for(k in Q){if(Q.hasOwnProperty(k)){aw[k]=i=[];for(ax in Q[k]){if(Q[k].hasOwnProperty(ax)){i.push(ax)}}}}return aw};P.setLineWidth=function(i){ab((i*ak).toFixed(2)+" w");return this};P.setDrawColor=function(ay,ax,aw,i){var k;if(ax===undefined||(i===undefined&&ay===ax===aw)){if(typeof ay==="string"){k=ay+" G"}else{k=p(ay/255)+" G"}}else{if(i===undefined){if(typeof ay==="string"){k=[ay,ax,aw,"RG"].join(" ")}else{k=[p(ay/255),p(ax/255),p(aw/255),"RG"].join(" ")}}else{if(typeof ay==="string"){k=[ay,ax,aw,i,"K"].join(" ")}else{k=[p(ay),p(ax),p(aw),p(i),"K"].join(" ")}}}ab(k);return this};P.setFillColor=function(ay,ax,aw,i){var k;if(ax===undefined||(i===undefined&&ay===ax===aw)){if(typeof ay==="string"){k=ay+" g"}else{k=p(ay/255)+" g"}}else{if(i===undefined){if(typeof ay==="string"){k=[ay,ax,aw,"rg"].join(" ")}else{k=[p(ay/255),p(ax/255),p(aw/255),"rg"].join(" ")}}else{if(typeof ay==="string"){k=[ay,ax,aw,i,"k"].join(" ")}else{k=[p(ay),p(ax),p(aw),p(i),"k"].join(" ")}}}ab(k);return this};P.setTextColor=function(aw,k,i){if((aw===0&&k===0&&i===0)||(typeof k==="undefined")){ad=o(aw/255)+" g"}else{ad=[o(aw/255),o(k/255),o(i/255),"rg"].join(" ")}return this};P.CapJoinStyles={0:0,butt:0,but:0,bevel:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,milter:2};P.setLineCap=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line cap style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}R=k;ab(k.toString(10)+" J");return this};P.setLineJoin=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line join style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}T=k;ab(k.toString(10)+" j");return this};P.output=I;P.save=function(i){P.output("save",i)};for(aq in b.API){if(b.API.hasOwnProperty(aq)){if(aq==="events"&&b.API.events.length){(function(ax,az){var ay,aw,k;for(k=az.length-1;k!==-1;k--){ay=az[k][0];aw=az[k][1];ax.subscribe.apply(ax,[ay].concat(typeof aw==="function"?[aw]:aw))}}(G,b.API.events))}else{P[aq]=b.API[aq]}}}e();d="F1";ah();G.publish("initialized");return P}b.API={events:[]};return b}());(function(i){var b=0,m=0,a,o,h,c={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},f=1,e=false,d=function(p,t,q,r,s){c={x:p,y:t,w:q,h:r,ln:s}},k=function(){return c},j=function(p){b=p},l=function(){return b},n=function(p){m=p},g=function(p){return m};i.getTextDimensions=function(p){a=this.internal.getFont().fontName;o=this.internal.getFontSize();h=this.internal.getFont().fontStyle;var s=0.264583*72/25.4,q,r;r=document.createElement("font");r.id="pdfDataExportCell";r.style.fontStyle=h;r.style.fontName=a;r.style.fontSize=o+"pt";r.innerHTML=p;document.body.appendChild(r);q={w:(r.offsetWidth+1)*s,h:(r.offsetHeight+1)*s};document.body.removeChild(r);return q};i.cellAddPage=function(){this.addPage();d(undefined,undefined,undefined,undefined,undefined);e=true;f+=1;n(1)};i.cellInitialize=function(){b=0;c={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined};f=1;e=false;n(0)};i.cell=function(z,v,A,s,p,u){this.lnMod=this.lnMod===undefined?0:this.lnMod;if(this.printingHeaderRow!==true&&this.lnMod!==0){u=u+this.lnMod}if((((u*s)+v+(s*2))/f)>=this.internal.pageSize.height&&f===1&&!e){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(u);this.lnMod+=1;u+=1}if(l()===0){j(Math.round((this.internal.pageSize.height-(s*2))/s))}}else{if(e&&k().ln!==u&&g()===l()){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(u);this.lnMod+=1;u+=1}}}var B=k(),r=this.getTextDimensions(p),t=1;if(B.x!==undefined&&B.ln===u){z=B.x+B.w}if(B.y!==undefined&&B.y===v){v=B.y}if(B.h!==undefined&&B.h===s){s=B.h}if(B.ln!==undefined&&B.ln===u){u=B.ln;t=0}if(e){v=s*(g()+t)}else{v=(v+(s*Math.abs(l()*f-u-l())))}this.rect(z,v,A,s);var q=/[а-яА-ЯЁё]/.test(p);if(q){this.text16(p,z+3,v+s-3)}else{this.text(p,z+3,v+s-3)}n(g()+t);d(z,v,A,s,u);return this};i.getKeys=(typeof Object.keys==="function")?function(p){if(!p){return[]}return Object.keys(p)}:function(p){var q=[],r;for(r in p){if(p.hasOwnProperty(r)){q.push(r)}}return q};i.arrayMax=function(u,t){var p=u[0],q,s,r;for(q=0,s=u.length;q<s;q+=1){r=u[q];if(t){if(t(p,r)===-1){p=r}}else{if(r>p){p=r}}}return p};i.table=function(J,r,I){var v=[],p=[],D,z,B,x,E,y,G={},A={},u,s,H=[],C,F=[],t,q,w;this.lnMod=0;if(I){z=I.autoSize||false;B=this.printHeaders=I.printHeaders||true;x=I.autoStretch||true}if(!J){throw"No data for PDF table"}if(r===undefined||(r===null)){v=this.getKeys(J[0])}else{if(r[0]&&(typeof r[0]!=="string")){for(E=0,y=r.length;E<y;E+=1){D=r[E];v.push(D.name);p.push(D.prompt)}}else{v=r}}if(I.autoSize){w=function(K){return K[D]};for(E=0,y=v.length;E<y;E+=1){D=v[E];G[D]=J.map(w);H.push(this.getTextDimensions(p[E]||D).w);s=G[D];for(C=0,y=s.length;C<y;C+=1){u=s[C];H.push(this.getTextDimensions(u).w)}A[D]=i.arrayMax(H)}}if(I.printHeaders){for(E=0,y=v.length;E<y;E+=1){D=v[E];F.push([10,10,A[D],25,String(p.length?p[E]:D)])}this.setTableHeaderRow(F);this.printHeaderRow(1)}for(E=0,y=J.length;E<y;E+=1){t=J[E];for(C=0,q=v.length;C<q;C+=1){D=v[C];this.cell(10,10,A[D],25,String(t[D]),E+2)}}return this};i.setTableHeaderRow=function(p){this.tableHeaderRow=p};i.printHeaderRow=function(p){if(!this.tableHeaderRow){throw"Property tableHeaderRow does not exist."}var q,s,r,t;this.printingHeaderRow=true;for(r=0,t=this.tableHeaderRow.length;r<t;r+=1){q=this.tableHeaderRow[r];s=[].concat(q);this.cell.apply(this,s.concat(p))}this.printingHeaderRow=false}}(pdfDataExport.API));(function(c){var b=c.getCharWidthsArray=function(s,u){if(!u){u={}}var h=u.widths?u.widths:this.internal.getFont().metadata.Unicode.widths,r=h.fof?h.fof:1,n=u.kerning?u.kerning:this.internal.getFont().metadata.Unicode.kerning,p=n.fof?n.fof:1;var m,j,o,k,q=0,t=h[0]||r,g=[];for(m=0,j=s.length;m<j;m++){o=s.charCodeAt(m);g.push((h[o]||t)/r+(n[o]&&n[o][q]||0)/p);q=o}return g};var e=function(j){var h=j.length,g=0;while(h){h--;g+=j[h]}return g};var a=c.getStringUnitWidth=function(h,g){return e(b.call(this,h,g))};var d=function(g,n,h,j){var q=[];var m=0,k=g.length,p=0;while(m!==k&&p+n[m]<h){p+=n[m];m++}q.push(g.slice(0,m));var o=m;p=0;while(m!==k){if(p+n[m]>j){q.push(g.slice(o,m));p=0;o=m}p+=n[m];m++}if(o!==m){q.push(g.slice(o,m))}return q};var f=function(s,k,v){if(!v){v={}}var t=b(" ",v)[0];var r=s.split(" ");var w=[],x=[w],h=v.textIndent||0,u=0,p=0,g,q;var o,m,n;for(o=0,m=r.length;o<m;o++){g=r[o];q=b(g,v);p=e(q);if(h+u+p>k){if(p>k){n=d(g,q,k-(h+u),k);w.push(n.shift());w=[n.pop()];while(n.length){x.push([n.shift()])}p=e(q.slice(g.length-w[0].length))}else{w=[g]}x.push(w);h=p;u=t}else{w.push(g);h+=u+p;u=t}}var j=[];for(o=0,m=x.length;o<m;o++){j.push(x[o].join(" "))}return j};c.splitTextToSize=function(q,m,r){if(!r){r={}}var h=r.fontSize||this.internal.getFontSize(),g=(function(l){var t={0:1},i={};if(!l.widths||!l.kerning){var u=this.internal.getFont(l.fontName,l.fontStyle),s="Unicode";if(u.metadata[s]){return{widths:u.metadata[s].widths||t,kerning:u.metadata[s].kerning||i}}}else{return{widths:l.widths,kerning:l.kerning}}return{widths:t,kerning:i}}).call(this,r);var p;if(q.match(/[\n\r]/)){p=q.split(/\r\n|\r|\n/g)}else{p=[q]}var j=1*this.internal.scaleFactor*m/h;g.textIndent=r.textIndent?r.textIndent*1*this.internal.scaleFactor/h:0;var o,n,k=[];for(o=0,n=p.length;o<n;o++){k=k.concat(f(p[o],j,g))}return k}})(pdfDataExport.API);(function(c){var d="addImage_";var f=function(m){var l,h;if(!m.charCodeAt(0)===255||!m.charCodeAt(1)===216||!m.charCodeAt(2)===255||!m.charCodeAt(3)===224||!m.charCodeAt(6)==="J".charCodeAt(0)||!m.charCodeAt(7)==="F".charCodeAt(0)||!m.charCodeAt(8)==="I".charCodeAt(0)||!m.charCodeAt(9)==="F".charCodeAt(0)||!m.charCodeAt(10)===0){throw new Error("getJpegSize requires a binary jpeg file")}var j=m.charCodeAt(4)*256+m.charCodeAt(5);var k=4,g=m.length;while(k<g){k+=j;if(m.charCodeAt(k)!==255){throw new Error("getJpegSize could not find the size of the image")}if(m.charCodeAt(k+1)===192){h=m.charCodeAt(k+5)*256+m.charCodeAt(k+6);l=m.charCodeAt(k+7)*256+m.charCodeAt(k+8);return[l,h]}else{k+=2;j=m.charCodeAt(k)*256+m.charCodeAt(k+1)}}},b=function(g){var m=this.internal.newObject(),h=this.internal.write,l=this.internal.putStream;g.n=m;h("<</Type /XObject");h("/Subtype /Image");h("/Width "+g.w);h("/Height "+g.h);if(g.cs==="Indexed"){h("/ColorSpace [/Indexed /DeviceRGB "+(g.pal.length/3-1)+" "+(m+1)+" 0 R]")}else{h("/ColorSpace /"+g.cs);if(g.cs==="DeviceCMYK"){h("/Decode [1 0 1 0 1 0 1 0]")}}h("/BitsPerComponent "+g.bpc);if("f" in g){h("/Filter /"+g.f)}if("dp" in g){h("/DecodeParms <<"+g.dp+">>")}if("trns" in g&&g.trns.constructor==Array){var k="";for(var j=0;j<g.trns.length;j++){k+=(g[k][j]+" "+g.trns[j]+" ");h("/Mask ["+k+"]")}}if("smask" in g){h("/SMask "+(m+1)+" 0 R")}h("/Length "+g.data.length+">>");l(g.data);h("endobj")},e=function(){var g=this.internal.collections[d+"images"];for(var h in g){b.call(this,g[h])}},a=function(){var g=this.internal.collections[d+"images"],h=this.internal.write,k;for(var j in g){k=g[j];h("/I"+k.i,k.n,"0","R")}};c.addImage=function(g,s,q,p,t,l){if(typeof g==="object"&&g.nodeType===1){var j=document.createElement("canvas");j.width=g.clientWidth;j.height=g.clientHeight;var u=j.getContext("2d");if(!u){throw ("addImage requires canvas to be supported by browser.")}u.drawImage(g,0,0,j.width,j.height);g=j.toDataURL("image/jpeg");s="JPEG"}if(s.toUpperCase()!=="JPEG"){throw new Error("addImage currently only supports format 'JPEG', not '"+s+"'")}var i,n=this.internal.collections[d+"images"],m=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString;if(g.substring(0,23)==="data:image/jpeg;base64,"){g=atob(g.replace("data:image/jpeg;base64,",""))}if(n){i=Object.keys?Object.keys(n).length:(function(w){var h=0;for(var v in w){if(w.hasOwnProperty(v)){h++}}return h})(n)}else{i=0;this.internal.collections[d+"images"]=n={};this.internal.events.subscribe("putResources",e);this.internal.events.subscribe("putXobjectDict",a)}var r=f(g);var k={w:r[0],h:r[1],cs:"DeviceRGB",bpc:8,f:"DCTDecode",i:i,data:g};n[i]=k;if(!t&&!l){t=-96;l=-96}if(t<0){t=(-1)*k.w*72/t/this.internal.scaleFactor}if(l<0){l=(-1)*k.h*72/l/this.internal.scaleFactor}if(t===0){t=l*k.w/k.h}if(l===0){l=t*k.h/k.w}this.internal.write("q",m(t),"0 0",m(l),m(q),o(p+l),"cm /I"+k.i,"Do Q");return this}})(pdfDataExport.API);(function(a){var e=function(q){var w="0123456789abcdef",o="klmnopqrstuvwxyz",h={};for(var r=0;r<o.length;r++){h[o[r]]=w[r]}var p,m={},n=1,t,k=m,g=[],s,l="",u="",v,j=q.length-1,f;r=1;while(r!=j){f=q[r];r+=1;if(f=="'"){if(t){v=t.join("");t=p}else{t=[]}}else{if(t){t.push(f)}else{if(f=="{"){g.push([k,v]);k={};v=p}else{if(f=="}"){s=g.pop();s[0][s[1]]=k;v=p;k=s[0]}else{if(f=="-"){n=-1}else{if(v===p){if(h.hasOwnProperty(f)){l+=h[f];v=parseInt(l,16)*n;n=+1;l=""}else{l+=f}}else{if(h.hasOwnProperty(f)){u+=h[f];k[v]=parseInt(u,16)*n;n=+1;v=p;u=""}else{u+=f}}}}}}}}return m};var d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:e("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},b={Unicode:{"Courier-Oblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":e("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":e("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":e("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":e("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};a.events.push(["addFonts",function(i){var f,g,h,k,j="Unicode",l;for(g in i.fonts){if(i.fonts.hasOwnProperty(g)){f=i.fonts[g];h=b[j][f.PostScriptName];if(h){if(f.metadata[j]){k=f.metadata[j]}else{k=f.metadata[j]={}}k.widths=h.widths;k.kerning=h.kerning}l=c[j][f.PostScriptName];if(l){if(f.metadata[j]){k=f.metadata[j]}else{k=f.metadata[j]={}}k.encoding=l;if(l.codePages&&l.codePages.length){f.encoding=l.codePages[0]}}}}}])})(pdfDataExport.API);var saveAs=window.jqxSaveAs=saveAs||(navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator))||(function(h){var r=h.document,l=function(){return h.URL||h.webkitURL||h},e=h.URL||h.webkitURL||h,n=$("<a></a>")[0],g="download" in n,j=function(t){var s=r.createEvent("MouseEvents");s.initMouseEvent("click",true,false,h,0,0,0,0,0,false,false,false,false,0,null);return t.dispatchEvent(s)},o=h.webkitRequestFileSystem,p=h.requestFileSystem||o||h.mozRequestFileSystem,m=function(s){(h.setImmediate||h.setTimeout)(function(){throw s},0)},c="application/octet-stream",k=0,b=[],i=function(){var t=b.length;while(t--){var s=b[t];if(typeof s==="string"){e.revokeObjectURL(s)}else{s.remove()}}b.length=0},q=function(t,s,w){s=[].concat(s);var v=s.length;while(v--){var x=t["on"+s[v]];if(typeof x==="function"){try{x.call(t,w||t)}catch(u){m(u)}}}},f=function(t,u){var v=this,B=t.type,E=false,x,w,s=function(){var F=l().createObjectURL(t);b.push(F);return F},A=function(){q(v,"writestart progress write writeend".split(" "))},D=function(){if(E||!x){x=s(t)}if(w){w.location.href=x}v.readyState=v.DONE;A()},z=function(F){return function(){if(v.readyState!==v.DONE){return F.apply(this,arguments)}}},y={create:true,exclusive:false},C;v.readyState=v.INIT;if(!u){u="download"}if(g){x=s(t);n.href=x;n.download=u;if(j(n)){v.readyState=v.DONE;A();return}}if(h.chrome&&B&&B!==c){C=t.slice||t.webkitSlice;t=C.call(t,0,t.size,c);E=true}if(o&&u!=="download"){u+=".download"}if(B===c||o){w=h}else{w=h.open()}if(!p){D();return}k+=t.size;p(h.TEMPORARY,k,z(function(F){F.root.getDirectory("saved",y,z(function(G){var H=function(){G.getFile(u,y,z(function(I){I.createWriter(z(function(J){J.onwriteend=function(K){w.location.href=I.toURL();b.push(I);v.readyState=v.DONE;q(v,"writeend",K)};J.onerror=function(){var K=J.error;if(K.code!==K.ABORT_ERR){D()}};"writestart progress write abort".split(" ").forEach(function(K){J["on"+K]=v["on"+K]});J.write(t);v.abort=function(){J.abort();v.readyState=v.DONE};v.readyState=v.WRITING}),D)}),D)};G.getFile(u,{create:false},z(function(I){I.remove();H()}),z(function(I){if(I.code===I.NOT_FOUND_ERR){H()}else{D()}}))}),D)}),D)},d=f.prototype,a=function(s,t){return new f(s,t)};d.abort=function(){var s=this;s.readyState=s.DONE;q(s,"abort")};d.readyState=d.INIT=0;d.WRITING=1;d.DONE=2;d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null;if(h.addEventListener){h.addEventListener("unload",i,false)}return a}(self));(function(a){var b="pdfDataExport IE Below 9 Shim plugin";a.output=function(e,d){return this.internal.output(e,d);var c="Output.pdf";switch(e){case"datauristring":case"dataurlstring":case"datauri":case"dataurl":case"dataurlnewwindow":if(console){console.log(b+": Data URIs are not supported on IE6-9.")}break;case"save":c=d;break}}})(pdfDataExport.API);
 
 (function($){$.jqx.jqxWidget("jqxBarGauge","",{});$.extend($.jqx._jqxBarGauge.prototype,{defineInstance:function(){var settings={animationDuration:300,backgroundColor:"#e0e0e0",barSpacing:4,baseValue:null,colorScheme:"scheme01",customColorScheme:null,endAngle:-45,disabled:false,formatFunction:null,geometry:{startAngle:225,endAngle:-45},height:400,labels:null,min:0,max:100,rendered:null,relativeInnerRadius:0.3,startAngle:225,title:null,tooltip:null,values:[],width:400,useGradient:true,_intervalArray:[],_drawnValues:[],_drawnSlices:[],_titleTemplate:{text:"",font:{color:"#232323",family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",opacity:1,size:28,weight:100},horizontalAlignment:"center",verticalAlignment:"top",placeholderSize:null,margin:{bottom:0,left:0,right:0,top:0},subtitle:{text:"",font:{color:"#232323",family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",opacity:1,size:16,weight:100}}},_labelTemplate:{connectorColor:null,connectorWidth:1,formatFunction:function(value){return value},font:{color:null,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",size:16,weight:400},indent:20,precision:2,visible:true},_tooltipTemplate:{classname:"",formatFunction:function(value){return value},visible:false,precision:0},_colorSchemes:[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]}],_colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"],_colorNames:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_dimensions:{},_ie:$.jqx.browser.msie,_oldIEbrowser:($.jqx.browser.msie&&$.jqx.browser.version<=8),_ie8:($.jqx.browser.msie&&$.jqx.browser.version==8),_ie7:($.jqx.browser.msie&&$.jqx.browser.version<8),_centerX:null,_centerY:null,_coordinatePlane:null,_geometry:{startAngle:-45,baseAngle:-45,fix:0,endAngle:225},_userValues:[],_valuesToDegrees:[],_oldValues:[],_oldValuesToDegrees:[],_temporaryValuesToDegrees:[],_temporaryValues:[],_temporaryOldAngle:[],_valuesLength:0,_oldValuesLength:0,_alignmentIE:null,_title:{},_backgroundColor:"#e0e0e0",_label:{},_tooltip:{},_renderedValues:0,_barWidth:35,_barStartAt:30,_barGaugeSlices:[],_barGaugeBackgroundSlices:[],_barGaugeSlicesStrokeWidth:0,_barGaugeLabelLines:[],_barGaugeLabelText:[],_barGaugeTitle:null,_barGaugeSubTitle:null,_barGaugeTooltip:$("<div></div>"),_measuredText:$("<div class='jqx-bar-gauge-measure-text'></div>"),_measuredTextId:"",renderer:null,_barGaugeRadius:null,_barGaugeFigureRadius:null,_labelPositioningRadius:null,_placeholderSize:50,_rendering:false,_titleLines:0,_subTitleLines:0,_initialized:false,_events:["initialized","valueChanged","tooltipOpen","tooltipClose","drawStart","drawEnd"]};if(this===$.jqx._jqxBarGauge.prototype){return settings}$.extend(true,this,settings);return settings},createInstance:function(){var that=this;that._createBarGauge()},_createBarGauge:function(){var that=this;that._getLiquidDimensions();that._addIEPolyfills();that._barGaugeTooltip.css({display:"none"});$(that.host).empty();that._attachCustomColors();that.geometry.startAngle=that.startAngle;that.geometry.endAngle=that.endAngle;that._validateGeometry();that._validateTitle();that._validateLabel();that._validateValues();that._validateTooltip();that._validateAnimationDuration();that._transformValuesToAngles();that._getColorScheme();if((that.animationDuration===0)||(that._ie8)||(that._ie7)){that._drawStaticBarGauge()}else{that._drawDynamicBarGauge()}that._raiseEvent("4");that._createTooltip();that._addCSS();if(that._ie){that._removeBarGaugeTitle();that._removeBarGaugeSubTitle();that._drawBarGaugeTitle()}that._addEventHandlers()},_initRenderer:function(host){if(!$.jqx.createRenderer){throw"jqxBarGauge: Please include a reference to jqxdraw.js"}return $.jqx.createRenderer(this,host)},_validateValues:function(){var that=this;var valuesLength,maxBarSpacing;if(that._userValues.length===0){that._userValues=that.values.slice()}if(that._oldValues.length===0){that._oldValues=that.values.slice()}that._valuesLength=that.values.length;for(var i=0;i<that._valuesLength;i++){that.values[i]=parseFloat(that.values[i]);if((that.values[i]<that.startValue)||(isNaN(that.values[i]))){that.values[i]=that.startValue}else{if(that.values[i]>that.max){that.values[i]=that.max}}that._drawnValues[i]=false;that._drawnSlices[i]=false}if((that.baseValue<=that.startValue)||(that.baseValue===null)){that.baseValue=that.min}else{if(that.baseValue>that.max){that.baseValue=that.max}}if(that.relativeInnerRadius>=1){that.relativeInnerRadius=0.99}else{if(that.relativeInnerRadius<0){that.relativeInnerRadius=0}}that._calculateBarGaugeRadius();valuesLength=that._valuesLength||1;maxBarSpacing=that._barGaugeRadius*(1-that.relativeInnerRadius)/valuesLength-0.01;if(that.barSpacing>maxBarSpacing){that.barSpacing=maxBarSpacing}that._backgroundColor=that._validateColor(that.backgroundColor,that._backgroundColor)},_attachCustomColors:function(){var that=this;var colorSchemesLength=that._colorSchemes.length;var colorSchemeInSchemes=false;if((that.customColorScheme!==null)&&(that.customColorScheme.colors!==null)&&(that.customColorScheme.name!==null)){for(var i=0;i<colorSchemesLength;i++){if(that.customColorScheme.name===that._colorSchemes[i].name){that._colorSchemes[i].colors=that.customColorScheme.colors.slice();colorSchemeInSchemes=true}}if(!colorSchemeInSchemes){that._colorSchemes.push(that.customColorScheme)}}},_getLiquidDimensions:function(){var that=this;if($.isEmptyObject(that._dimensions)){that._dimensions.width=that.width;that._dimensions.height=that.height}if(typeof that._dimensions.width==="string"&&that._dimensions.width.indexOf("%")!==-1){that.width=(parseInt(that._dimensions.width,10)/100)*$("#"+that.element.id).parent().width()}if(typeof that._dimensions.height==="string"&&that._dimensions.height.indexOf("%")!==-1){that.height=(parseInt(that._dimensions.height,10)/100)*$("#"+that.element.id).parent().height()}},_getLongestValue:function(){var that=this;var valuesCount=that.values.length,longestValue="",longestValueLength=0;for(var i=0;i<valuesCount;i++){if(that.values[i].toString().length>longestValueLength){longestValue=that.values[i];longestValueLength=longestValue.toString().length}}longestValue=that._calculatePrecision(that._label.precision,longestValue);if((that._label.formatFunction!==undefined)&&(that._label.formatFunction!==null)&&(typeof that._label.formatFunction==="function")){longestValue=that._label.formatFunction(longestValue)}longestValue=longestValue.toUpperCase();return longestValue},_validateGeometry:function(){var that=this;var startAngle=parseFloat(that.geometry.startAngle);var endAngle=parseFloat(that.geometry.endAngle);if(Math.abs(startAngle)>=360){startAngle=startAngle%360}if(startAngle<0){startAngle=360+startAngle}if(Math.abs(endAngle)>=360){endAngle=endAngle%360}if(endAngle<0){endAngle=360+endAngle}that.geometry.startAngle=startAngle;that.geometry.endAngle=endAngle},_validateColor:function(color,defaultColor){var that=this;var validatedColor;if((color===undefined)||(color===null)){validatedColor=defaultColor}else{if(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color)){validatedColor=color}else{if(/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(color)){validatedColor="#"+color}else{if(typeof that._colorNames[color.toLowerCase()]!=="undefined"){validatedColor=that._colorNames[color.toLowerCase()]}else{validatedColor="transparent"}}}}return validatedColor},_validateTooltip:function(){var that=this;if((that.tooltip===undefined)||(that.tooltip===null)||(typeof that.tooltip!=="object")){that._tooltip=that._tooltipTemplate}else{that._tooltip.visible=(that.tooltip.visible===false)?false:(that.tooltip.visible||that._tooltipTemplate.visible);that._tooltip.classname=that.tooltip.classname||that._tooltipTemplate.classname;if(typeof that.tooltip.formatFunction==="function"){that._tooltip.formatFunction=that.tooltip.formatFunction}else{that._tooltip.formatFunction=that._tooltipTemplate.formatFunction}if(that.tooltip.precision===null||that.tooltip.precision===undefined){that._tooltip.precision=that._tooltipTemplate.precision}else{if(parseInt(that.tooltip.precision,10)<=0){that._tooltip.precision=0}else{that._tooltip.precision=parseInt(that.tooltip.precision,10)}}}},_validateTitle:function(){var that=this;that._title=that._titleTemplate;that._measuredTextId=that.element.id+"measuredText";if(typeof that.title==="string"){that._title.text=that.title}else{if(typeof that.title==="number"){that._title.text=String(that.title)}else{if((typeof that.title==="object")&&(that.title!==undefined)&&(that.title!==null)){that._title.text=that.title.text||that._titleTemplate.text;that._title.horizontalAlignment=that.title.horizontalAlignment||that._titleTemplate.horizontalAlignment;that._title.verticalAlignment=that.title.verticalAlignment||that._titleTemplate.verticalAlignment}}}if((that.title===undefined)||(that.title===null)||(that.title.font===undefined)||(that.title.font===null)){that._title.font=that._titleTemplate.font}else{that._title.font.family=that.title.font.family||that._titleTemplate.font.family;that._title.font.opacity=that.title.font.opacity||that._titleTemplate.font.opacity;that._title.font.size=that.title.font.size||that._titleTemplate.font.size;that._title.font.weight=that.title.font.weight||that._titleTemplate.font.weight;if((that._ie7||that._ie8)&&(that._title.font.weight>100)){that._title.font.weight="bold"}that._title.font.color=that._validateColor(that.title.font.color,that._titleTemplate.font.color)}if((that.title===undefined)||(that.title===null)||(that.title.margin===undefined)||(that.title.margin===null)){that._title.margin=that._titleTemplate.margin}else{if(typeof that.title.margin!=="object"){var margin=parseInt(that.title.margin,10);that._title.margin.top=margin;that._title.margin.right=margin;that._title.margin.bottom=margin;that._title.margin.left=margin}else{that._title.margin.top=that.title.margin.top===0?0:(that.title.margin.top||that._titleTemplate.margin.top);that._title.margin.right=that.title.margin.right===0?0:(that.title.margin.right||that._titleTemplate.margin.right);that._title.margin.bottom=that.title.margin.bottom===0?0:(that.title.margin.bottom||that._titleTemplate.margin.bottom);that._title.margin.left=that.title.margin.left===0?0:(that.title.margin.left||that._titleTemplate.margin.left)}}if((that.title===undefined)||(that.title===null)||(that.title.subtitle===undefined)||(that.title.subtitle===null)){that._title.subtitle.text=that._titleTemplate.subtitle.text;that._title.subtitle.font=that._titleTemplate.subtitle.font}else{if(typeof that.title.subtitle!=="object"){that._title.subtitle.text=String(that.title.subtitle);that._title.subtitle.font=that._titleTemplate.subtitle.font}else{if((typeof that.title.subtitle.font==="undefined")||(that.title.subtitle.font===null)){that._title.subtitle.text=String(that.title.subtitle.text);that._title.subtitle.font=that._titleTemplate.subtitle.font}else{that._title.subtitle.text=String(that.title.subtitle.text);that._title.subtitle.font.color=that.title.subtitle.font.color||that._titleTemplate.subtitle.font.color;that._title.subtitle.font.family=that.title.subtitle.font.family||that._titleTemplate.subtitle.font.family;that._title.subtitle.font.opacity=that.title.subtitle.font.opacity||that._titleTemplate.subtitle.font.opacity;that._title.subtitle.font.size=that.title.subtitle.font.size||that._titleTemplate.subtitle.font.size;that._title.subtitle.font.weight=that.title.subtitle.font.weight||that._titleTemplate.subtitle.font.weight;if((that._ie7||that._ie8)&&(that._title.subtitle.font.weight>100)){that._title.subtitle.font.weight="bold"}}}}var calculatedPlaceholderSize;if(that._title.text===""){calculatedPlaceholderSize=0}else{if((that._title.subtitle.text==="")||(that._title.subtitle.text===undefined)||(that._title.subtitle.text===null)){that._titleLines=that._title.text.match(/<br>/g)!==null?(that._title.text.match(/<br>/g).length+1):1;calculatedPlaceholderSize=that._title.font.size*that._titleLines+that._title.margin.top+that._title.margin.bottom}else{that._titleLines=that._title.text.match(/<br>/g)!==null?(that._title.text.match(/<br>/g).length+1):1;that._subTitleLines=that._title.subtitle.text.match(/<br>/g)!==null?(that._title.text.match(/<br>/g).length+1):1;calculatedPlaceholderSize=that._title.font.size*that._titleLines+that._title.subtitle.font.size*that._subTitleLines+that._title.margin.top+that._title.margin.bottom}}if((that.title===undefined)||(that.title===null)||(that.title.placeholderSize===null)||(that.title.placeholderSize===undefined)){that._title.placeholderSize=calculatedPlaceholderSize||that.height*0.05}else{that._title.placeholderSize=that.title.placeholderSize}},_validateLabel:function(){var that=this;if((that.labels===null)||(that.labels===undefined)||(typeof that.labels!=="object")){that._label=that._labelTemplate}else{that._label.connectorColor=that._validateColor(that.labels.connectorColor,that._labelTemplate.connectorColor);that._label.connectorWidth=that.labels.connectorWidth||that._labelTemplate.connectorWidth;that._label.formatFunction=that.labels.formatFunction||that._labelTemplate.formatFunction;if((that.labels.precision===undefined)||(that.labels.precision===null)||(typeof that.labels.precision!=="number")){that._label.precision=that._labelTemplate.precision}else{that._label.precision=that.labels.precision}if(that._label.precision>15){that._label.precision=15}else{if(that._label.precision<0){that._label.precision=0}}if((that.labels.visible===undefined)||(that.labels.visible===null)){that._label.visible=that._labelTemplate.visible}else{if(that.labels.visible===false){that._label.visible=false}else{that._label.visible=true}}if(((typeof that.labels.indent!=="number")&&(typeof that.labels.indent!=="string"))||(that.labels.indent<=0)){that._label.indent=0}else{if(((typeof that.labels.indent!=="number")&&(typeof that.labels.indent!=="string"))||(that.labels.indent<=0)){that._label.indent=0}else{that._label.indent=that.labels.indent}}if((that.labels.font===null)||(that.labels.font===undefined)||(typeof that.labels.font!=="object")){that._label.font=that._labelTemplate.font}else{that._label.font={};that._label.font.color=that._validateColor(that.labels.font.color,that._labelTemplate.font.color);that._label.font.family=that.labels.font.family||that._labelTemplate.font.family;that._label.font.size=that.labels.font.size||that._labelTemplate.font.size;that._label.font.weight=that.labels.font.weight||that._labelTemplate.font.weight;if((that._ie7||that._ie8)&&(that._label.font.weight>100)){that._label.font.weight="bold"}}}},_validateAnimationDuration:function(){var that=this;var animationDurationToInt=parseInt(that.animationDuration,10);var animationDuration=animationDurationToInt>0?animationDurationToInt:0;if(that._oldIEbrowser){that.animationDuration=0}else{that.animationDuration=animationDuration}},_transformValuesToAngles:function(){var that=this;var barGaugeAngle,longestValue,textSize,barGaugeFigureRadius;that._placeholderSize=that._title.placeholderSize||that._placeholderSize;if(that.geometry.endAngle<that.geometry.startAngle){that._geometry.startAngle=parseFloat(that.geometry.endAngle)%360;that._geometry.endAngle=parseFloat(that.geometry.startAngle)%360}else{that._geometry.startAngle=parseFloat(that.geometry.endAngle)%360-360;that._geometry.endAngle=parseFloat(that.geometry.startAngle)%360}barGaugeAngle=that._geometry.endAngle-that._geometry.startAngle;if(barGaugeAngle>360){that._geometry.startAngle=that._geometry.startAngle+(barGaugeAngle-360)}if((that.baseValue!==undefined)&&(that.baseValue!==null)&&(that.baseValue>=that.min)&&(that.baseValue<=that.max)){that._geometry.baseAngle=((that.baseValue-that.min)*(that._geometry.endAngle-that._geometry.startAngle)/(that.max-that.min))+that._geometry.startAngle;that._geometry.fix=that.geometry.startAngle+that.geometry.endAngle-180}longestValue=that._getLongestValue();textSize=that._measureText(longestValue,that._label.font.size,that._label.font.family,that._label.font.weight);barGaugeFigureRadius=that._barGaugeRadius-that._label.indent*1.2-textSize.height*1.2;if((barGaugeFigureRadius+textSize.width+that._label.indent*1.2)>that.width/2){barGaugeFigureRadius=that._barGaugeRadius-that._label.indent*1.2-textSize.width}if(that._label.visible===false){barGaugeFigureRadius=that._barGaugeRadius}barGaugeFigureRadius=barGaugeFigureRadius*0.98;if(barGaugeFigureRadius<0){barGaugeFigureRadius=0}that._barGaugeFigureRadius=barGaugeFigureRadius;that._barWidth=barGaugeFigureRadius*(1-that.relativeInnerRadius)/that._valuesLength-that.barSpacing;that._barStartAt=barGaugeFigureRadius*that.relativeInnerRadius;that._labelPositioningRadius=that._barStartAt+that._valuesLength*(that._barWidth+that.barSpacing)-that.barSpacing+that._label.indent;for(var i=0;i<that._valuesLength;i++){that._valuesToDegrees[i]=((that.values[i]-that.min)/(that.max-that.min))*(that._geometry.endAngle-that._geometry.startAngle)+that._geometry.startAngle}$(that.host).width(that.width);$(that.host).height(that.height);if(!that._initialized){that._initRenderer(that.host);that._initialized=true}},_measureRadius:function(){var that=this;var longestValue=that._getLongestValue();var textSize=that._measureText(longestValue,that._label.font.size,that._label.font.family,that._label.font.weight);var barGaugeFigureRadius=that._barGaugeRadius-that._label.indent*1.2-textSize.height*1.2;if((barGaugeFigureRadius+textSize.width+that._label.indent*1.2)>that.width/2){barGaugeFigureRadius=that._barGaugeRadius-that._label.indent*1.2-textSize.width}if(that._label.visible===false){barGaugeFigureRadius=that._barGaugeRadius}barGaugeFigureRadius=barGaugeFigureRadius*0.98;if(barGaugeFigureRadius<0){barGaugeFigureRadius=0}that._barWidth=barGaugeFigureRadius*(1-that.relativeInnerRadius)/that._valuesLength-that.barSpacing;that._barStartAt=barGaugeFigureRadius*that.relativeInnerRadius;that._labelPositioningRadius=that._barStartAt+that._valuesLength*(that._barWidth+that.barSpacing)-that.barSpacing+that._label.indent},_drawEmptyBarGauge:function(){var that=this;var emptyBarGaugeRadius,backgroundSliceId;var gaugeLayerStart=that._barStartAt;var gaugeLayerEnd=gaugeLayerStart+that._barWidth;if(that._title.text===""){emptyBarGaugeRadius=that._barGaugeRadius}else{emptyBarGaugeRadius=that._barGaugeFigureRadius}gaugeLayerStart=that.relativeInnerRadius*emptyBarGaugeRadius;gaugeLayerEnd=emptyBarGaugeRadius;that._barGaugeBackgroundSlices[0]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,that._geometry.startAngle,that._geometry.endAngle,0,{fill:that._backgroundColor,stroke:that._backgroundColor,"stroke-width":that._barGaugeSlicesStrokeWidth});backgroundSliceId=that.element.id+"BackgroundSlice0";that.renderer.attr(that._barGaugeBackgroundSlices[0],{id:backgroundSliceId});that.renderer.attr(that._barGaugeBackgroundSlices[0],{"class":"jqx-bar-gauge-background-slice"});that._rendered();that._oldValuesLength=0;that._oldValues.length=0},_drawBarGaugeLayout:function(){var that=this;var backgroundSliceId;var gaugeLayerStart=that._barStartAt;var gaugeLayerEnd=gaugeLayerStart+that._barWidth;that._barGaugeSlicesStrokeWidth=0;that._centerX=that.width/2;if(that._title.text===""){that._centerY=that.height/2}else{if(that._title.verticalAlignment==="top"){that._centerY=(that.height+that._title.placeholderSize)/2}else{that._centerY=(that.height-that._title.placeholderSize)/2}}if(that._valuesLength>0){for(var i=0;i<that._valuesLength;i++){that._barGaugeBackgroundSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,that._geometry.startAngle,that._geometry.endAngle,0,{fill:that._backgroundColor,stroke:that._backgroundColor,"stroke-width":that._barGaugeSlicesStrokeWidth});backgroundSliceId=that.element.id+"BackgroundSlice"+i;that.renderer.attr(that._barGaugeBackgroundSlices[i],{id:backgroundSliceId});that.renderer.attr(that._barGaugeBackgroundSlices[i],{"class":"jqx-bar-gauge-background-slice"});gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth}}else{that._drawEmptyBarGauge()}},_drawBarGaugeElementsWithBase:function(){var that=this;var sliceId,gaugeLayerStart,gaugeLayerEnd,changeContition;var change=180-that._geometry.baseAngle+that._geometry.fix;that._renderedValues=0;gaugeLayerStart=that._barStartAt;gaugeLayerEnd=gaugeLayerStart+that._barWidth;var baseValues=[];for(var i=0;i<that._valuesLength;i++){baseValues[i]=that.baseValue;var drawColor=that._colors[i];if(that.formatFunction){drawColor=that.formatFunction(that.values[i],i,drawColor)}if(that._ie7||that._ie8){var updatedAngle=that._valuesToDegrees[i];change=180-updatedAngle+that._geometry.fix;if(that._valuesToDegrees[i]>that._geometry.baseAngle){that._barGaugeSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,(180-that._geometry.baseAngle+that._geometry.fix),change,0,{fill:drawColor,stroke:drawColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}else{that._barGaugeSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,change,(180-that._geometry.baseAngle+that._geometry.fix),0,{fill:drawColor,stroke:drawColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}sliceId=that.element.id+"Slice"+i;that.renderer.attr(that._barGaugeSlices[i],{id:sliceId});that.renderer.attr(that._barGaugeSlices[i],{"class":"jqx-bar-gauge-slice"});that._drawnSlices[i]=true;if(that._label.visible===true){that._drawLabelsLine(gaugeLayerStart,change,i);that._drawLabelsText(change,i)}that._rendered()}else{if(that.useGradient){var stops=[[0,1.4],[100,1]];drawColor=that.renderer._toLinearGradient(drawColor,true,stops)}that._barGaugeSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,change+0.01,change,0,{fill:drawColor,stroke:drawColor,"stroke-width":that._barGaugeSlicesStrokeWidth});sliceId=that.element.id+"Slice"+i;that.renderer.attr(that._barGaugeSlices[i],{id:sliceId});that.renderer.attr(that._barGaugeSlices[i],{"class":"jqx-bar-gauge-slice"});that._drawnSlices[i]=true}that.renderer.attr(that._barGaugeSlices[i],{id:that.element.id+"Slice"+i});that.renderer.attr(that._barGaugeSlices[i],{"class":"jqx-bar-gauge-slice"});gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth}that._oldValues=baseValues;that._temporaryValues=baseValues.slice(0);that._oldValuesToDegrees.length=0;for(var i=0;i<that.values.length;i++){that._oldValuesToDegrees[i]=that._geometry.baseAngle;that._temporaryValuesToDegrees[i]=that._geometry.baseAngle}that._rendering=true;that._redrawWithNewValuesArray(that.values,that._oldValues)},_drawBarGaugeElementWithBase:function(gaugeLayerStart,change,amount,changeContition,valueIndex){var that=this;var newPieSlicePath,angleStepPercent,angleDiff,valueStep;var animation=that._calculateAnimationInterval(valueIndex,false);var gaugeLayerEnd=gaugeLayerStart+that._barWidth;var updatedItem=that._barGaugeSlices[valueIndex];var updatedAngle=that._valuesToDegrees[valueIndex];if(that.animationDuration===0){change=180-updatedAngle+that._geometry.fix}angleDiff=Math.abs(that._geometry.baseAngle-updatedAngle);if(angleDiff===0){angleDiff=0.01}angleStepPercent=Math.abs((amount/animation.smoothCoef)/angleDiff);valueStep=angleStepPercent*Math.abs(that.baseValue-that.values[valueIndex]);if(isNaN(that._temporaryValues[valueIndex])){that._temporaryValues[valueIndex]=that.values[valueIndex]}if(isNaN(that._temporaryValuesToDegrees[valueIndex])){that._temporaryValuesToDegrees[valueIndex]=that._valuesToDegrees[valueIndex]}that._intervalArray[valueIndex]=setInterval(function(){calculateNewPieSlicePath();if(eval(changeContition)&&!that.disabled){that.renderer.attr(updatedItem,{d:newPieSlicePath});change+=amount/animation.smoothCoef;that._temporaryValuesToDegrees[valueIndex]=(180-change+that._geometry.fix)%360;that._temporaryValues[valueIndex]=that._temporaryValues[valueIndex]+amount*valueStep}else{change=180-updatedAngle+that._geometry.fix;that._temporaryValuesToDegrees[valueIndex]=updatedAngle%360;that._temporaryValues[valueIndex]=that.values[valueIndex];calculateNewPieSlicePath();that.renderer.attr(updatedItem,{d:newPieSlicePath});clearInterval(that._intervalArray[valueIndex]);that._renderedValues++;if(that._renderedValues===that.values.length){that._rendered()}}},animation.interval/animation.smoothCoef);function calculateNewPieSlicePath(){if(amount===-1){newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,change,(180-that._geometry.baseAngle+that._geometry.fix),0)}else{newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,(180-that._geometry.baseAngle+that._geometry.fix),change,0)}}},_drawStaticBarGaugeElementsWithBase:function(){var that=this;var gaugeLayerStart,gaugeLayerEnd,change,updatedAngle,sliceId;gaugeLayerStart=that._barStartAt;gaugeLayerEnd=gaugeLayerStart+that._barWidth;for(var i=0;i<that._valuesLength;i++){updatedAngle=that._valuesToDegrees[i]||(that._geometry.baseAngle);that._oldValues[i]=that.values[i]||that.baseValue;change=180-updatedAngle+that._geometry.fix;var drawColor=that._colors[i];if(that.useGradient){var stops=[[0,1.4],[100,1]];drawColor=that.renderer._toLinearGradient(drawColor,true,stops)}if(that._valuesToDegrees[i]<that._geometry.baseAngle){that._barGaugeSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,(180-that._geometry.baseAngle+that._geometry.fix),change,0,{fill:drawColor,stroke:drawColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}else{that._barGaugeSlices[i]=that.renderer.pieslice(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,change,(180-that._geometry.baseAngle+that._geometry.fix),0,{fill:drawColor,stroke:drawColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}sliceId=that.element.id+"Slice"+i;that.renderer.attr(that._barGaugeSlices[i],{id:sliceId});that.renderer.attr(that._barGaugeSlices[i],{"class":"jqx-bar-gauge-slice"});that._drawnSlices[i]=true;gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth}that._removeLabels();that._addLabels()},_addLabels:function(valuesToDegrees,values,index){var that=this;var change,valueIndex,i;var gaugeLayerStart=that._barStartAt;var gaugeLayerEnd=gaugeLayerStart+that._barWidth;if(!valuesToDegrees){valuesToDegrees=that._valuesToDegrees}for(i=0;i<that._valuesLength;i++){valueIndex=i;if(index!=undefined&&i!==index){gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth;continue}change=180-valuesToDegrees[valueIndex]+that._geometry.fix;if(that._label.visible===true&&that.disabled===false){that._drawLabelsLine(gaugeLayerStart,change,valueIndex);if(values&&values[valueIndex]!==undefined){that._drawLabelsText(change,valueIndex,values[valueIndex])}else{that._drawLabelsText(change,valueIndex)}}gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth}},_removeLabels:function(index){var that=this;for(var i=0;i<that._barGaugeLabelText.length;i++){if(index!=undefined&&i!=index){continue}$(that._barGaugeLabelLines[i]).remove();$(that._barGaugeLabelText[i]).remove();that._barGaugeLabelLines[i]=null;that._barGaugeLabelText[i]=null}},_removeBarGaugeSlices:function(){var that=this;that._removeBarGaugeBackgroundSlices();that._removeBarGaugeForegroundSlices()},_removeBarGaugeBackgroundSlices:function(){var that=this;var valuesToRemoveCount=Math.max(that._valuesLength,that._oldValuesLength);for(var i=0;i<valuesToRemoveCount;i++){if(that._oldIEbrowser){$(that._barGaugeBackgroundSlices[i]).remove()}that._barGaugeBackgroundSlices[i]=null;that._drawnSlices[i]=false}$("#"+that.element.id+" .jqx-bar-gauge-background-slice").remove()},_removeBarGaugeForegroundSlices:function(){var that=this;var valuesToRemoveCount=Math.max(that._valuesLength,that._oldValuesLength);for(var i=0;i<valuesToRemoveCount;i++){if(that._drawnSlices[i]===true){if(that._oldIEbrowser){$(that._barGaugeSlices[i]).remove()}that._barGaugeSlices[i]=null;that._drawnSlices[i]=false}}$("#"+that.element.id+" .jqx-bar-gauge-slice").remove()},_removeBarGaugeTitle:function(){var that=this;if(that._oldIEbrowser&&!!that._barGaugeTitle){$(that._barGaugeTitle).remove()}$("#"+that.element.id+" .jqx-bar-gauge-title").remove()},_removeBarGaugeSubTitle:function(){var that=this;if(that._oldIEbrowser&&!!that._barGaugeSubTitle){$(that._barGaugeSubTitle).remove()}$("#"+that.element.id+" .jqx-bar-gauge-subtitle").remove()},_renderElements:function(){var that=this;var gaugeLayerStart,gaugeLayerEnd,sliceId,condition,updatedAngle,change,i;var afterZeroBaseAngle=(180-that._geometry.baseAngle+that._geometry.fix);gaugeLayerStart=that._barStartAt;gaugeLayerEnd=gaugeLayerStart+that._barWidth;that._rendering=true;that._renderedValues=0;that._renderingValues=0;var rendering=false;if(!that.disabled){gaugeLayerStart=that._barStartAt;gaugeLayerEnd=gaugeLayerStart+that._barWidth;for(i=0;i<that._valuesLength;i++){if(that.values[i]>=that.baseValue){if(that.values[i]>that._oldValues[i]){condition="(oldAngle < newAngle)";that._renderElement(gaugeLayerStart,gaugeLayerEnd,1,condition,i,true);rendering=true}else{if(that.values[i]<that._oldValues[i]){condition="(oldAngle > newAngle)";that._renderElement(gaugeLayerStart,gaugeLayerEnd,-1,condition,i,false);rendering=true}}}else{if(that.values[i]>that._oldValues[i]){condition="(oldAngle < newAngle)";that._renderElement(gaugeLayerStart,gaugeLayerEnd,1,condition,i,true);rendering=true}else{if(that.values[i]<that._oldValues[i]){condition="(oldAngle > newAngle)";that._renderElement(gaugeLayerStart,gaugeLayerEnd,-1,condition,i,false);rendering=true}}}gaugeLayerStart=gaugeLayerEnd+that.barSpacing;gaugeLayerEnd=gaugeLayerStart+that._barWidth}}if(!rendering){that._rendered()}},clearIntervals:function(){var that=this;var intervalsArrayLength=that._intervalArray.length;for(var i=0;i<intervalsArrayLength;i++){clearInterval(that._intervalArray[i])}that._intervalArray.length=0},_renderElement:function(gaugeLayerStart,gaugeLayerEnd,amount,condition,valueIndex,lessThan){var that=this;that._renderingValues++;var newPieSlicePath,angleTo;var oldValue=that._oldValues[valueIndex];var newValue=that.values[valueIndex];var newAngle=that._valuesToDegrees[valueIndex];var oldAngle=that._oldValuesToDegrees[valueIndex];var updatedItem=that._barGaugeSlices[valueIndex];var animation=that._calculateAnimationInterval(valueIndex,true);var angleDiff=Math.abs(newAngle-oldAngle);var angleStepPercent=Math.abs((amount/animation.smoothCoef)/angleDiff);var valueStep=angleStepPercent*Math.abs(newValue-oldValue);var animationInterval=animation.interval/animation.smoothCoef;if(isNaN(that._temporaryValues[valueIndex])){that._temporaryValues[valueIndex]=oldValue}if(isNaN(that._temporaryValuesToDegrees[valueIndex])){that._temporaryValuesToDegrees[valueIndex]=(180-oldAngle+that._geometry.fix)%360}if(isNaN(that._temporaryOldAngle[valueIndex])){that._temporaryOldAngle[valueIndex]=oldAngle}var update=function(){var newValue=that.values[valueIndex];var newAngle=that._valuesToDegrees[valueIndex];angleTo=(180-oldAngle+that._geometry.fix);calculateNewPieSlicePath();var newCondition=false;if(lessThan&&oldAngle<newAngle){newCondition=true}if(!lessThan&&oldAngle>newAngle){newCondition=true}var updateLabels=function(){that._removeLabels(valueIndex);var degrees=[];for(var m=0;m<that._valuesToDegrees.length;m++){if(that._temporaryOldAngle[m]!=undefined){degrees[m]=that._temporaryOldAngle[m]}else{degrees[m]=that._valuesToDegrees[m]}}that._addLabels(degrees,that._temporaryValues,valueIndex)};if(newCondition&&(that.disabled===false)&&that.animationDuration!=0){updateLabels();that.renderer.attr(updatedItem,{d:newPieSlicePath});if(that.formatFunction){var drawColor=that._colors[valueIndex];drawColor=that.formatFunction(that.values[valueIndex],valueIndex,drawColor);that.renderer.attr(updatedItem,{fill:drawColor,stroke:drawColor})}oldAngle+=amount/animation.smoothCoef;that._temporaryOldAngle[valueIndex]=oldAngle;that._temporaryValuesToDegrees[valueIndex]=(180-oldAngle+that._geometry.fix)%360;that._temporaryValues[valueIndex]=that._temporaryValues[valueIndex]+amount*valueStep;return false}else{oldAngle=newAngle;angleTo=180-newAngle+that._geometry.fix;that._temporaryOldAngle[valueIndex]=newAngle;that._temporaryValuesToDegrees[valueIndex]=newAngle%360;that._temporaryValues[valueIndex]=that.values[valueIndex];updateLabels();createFinalPieSlicePath(angleTo,(180-that._geometry.baseAngle+that._geometry.fix));that.renderer.attr(updatedItem,{d:newPieSlicePath});if(that.formatFunction){var drawColor=that._colors[valueIndex];drawColor=that.formatFunction(that.values[valueIndex],valueIndex,drawColor);that.renderer.attr(updatedItem,{fill:drawColor,stroke:drawColor})}clearInterval(that._intervalArray[valueIndex]);that._renderedValues++;if(that._renderedValues===that._renderingValues){that._rendered()}return true}};if(that.animationDuration==0){update()}else{var intervalFunction=function(){clearInterval(that._intervalArray[valueIndex]);var result=update();if(!that._rendering||result){return}var oldValue=that._oldValues[valueIndex];var newValue=that.values[valueIndex];var newAngle=that._valuesToDegrees[valueIndex];var oldAngle=that._oldValuesToDegrees[valueIndex];var updatedItem=that._barGaugeSlices[valueIndex];var animation=that._calculateAnimationInterval(valueIndex,true);var angleDiff=Math.abs(newAngle-oldAngle);var angleStepPercent=Math.abs((amount/animation.smoothCoef)/angleDiff);var valueStep=angleStepPercent*Math.abs(newValue-oldValue);var animationInterval=animation.interval/animation.smoothCoef;that._intervalArray[valueIndex]=setInterval(intervalFunction,animationInterval)};if(!that._intervalArray[valueIndex]){that._intervalArray[valueIndex]=setInterval(intervalFunction,animationInterval)}}function calculateNewPieSlicePath(){var angleA=angleTo;var angleB=(180-that._geometry.baseAngle+that._geometry.fix);if(amount===1){if(lessThan){if(that._geometry.baseAngle<oldAngle){newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleA,angleB,0)}else{newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleB,angleA,0)}}}else{if(!lessThan){if(that._geometry.baseAngle<oldAngle){newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleA,angleB,0)}else{newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleB,angleA,0)}}}}function createFinalPieSlicePath(angleA,angleB){if(angleA<=angleB){newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleA-0.0001,angleB,0)}else{newPieSlicePath=$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,angleB,angleA,0)}}},_calculateAnimationInterval:function(valueIndex,redraw){var that=this;var animation={};var duration=that.animationDuration;var animationISeconds=duration/1000;var intervalPer1000ms=0;var easeInOutSine=function(t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b};if(redraw){if((that._oldValues[valueIndex]-that.values[valueIndex])!==0){intervalPer1000ms=1000/(Math.abs((that._oldValues[valueIndex]-that.values[valueIndex])/(that.max-that.min)*(that._geometry.endAngle-that._geometry.startAngle)))}}else{if((that.baseValue-that.values[valueIndex])!==0){intervalPer1000ms=1000/(Math.abs((that.baseValue-that.values[valueIndex])/(that.max-that.min)*(that._geometry.endAngle-that._geometry.startAngle)))}}animation.smoothCoef=animationISeconds||1;animation.interval=intervalPer1000ms*animationISeconds;return animation},_calculateLabelOffset:function(angle,fontSize,textWidth){var koefX,koefY;var offset={};if(angle>=270){koefY=-(270-angle)/180}else{if(angle<=90){koefY=(90+angle)/180}else{koefY=(270-angle)/180}}if(angle<=180){koefX=angle/180}else{koefX=(360-angle)/180}offset.y=koefY*fontSize;offset.x=koefX*textWidth;return offset},_drawCoordinatePlane:function(){var that=this;var startY,endY;if(that._title.verticalAlignment==="top"){startY=that._title.placeholderSize;endY=that.height}else{startY=0;endY=that.height-that._title.placeholderSize}if(that._coordinatePlane!==null){$("#"+that.element.id+" .jqx-bar-gauge-coordinate-plane").remove()}that._coordinatePlane={};that._coordinatePlane.x=that.renderer.line(0,that._centerY,that.width,that._centerY,{fill:"gray",stroke:"gray","stroke-width":1,"stroke-opacity":0.1});that._coordinatePlane.y=that.renderer.line(that._centerX,startY,that._centerX,endY,{fill:"gray",stroke:"gray","stroke-width":1,"stroke-opacity":0.1});that.renderer.attr(that._coordinatePlane.x,{"class":"jqx-bar-gauge-coordinate-plane"});that.renderer.attr(that._coordinatePlane.y,{"class":"jqx-bar-gauge-coordinate-plane"})},_getColorScheme:function(){var that=this;var newColorSchemeIndex,i;var colorSchemesLength=that._colorSchemes.length;var totalColors=that.values.length||1;var colorSchemesCombinations=Math.floor(totalColors/that._colorSchemes[0].colors.length);var colorSchemeIndex=0;for(i=0;i<colorSchemesLength;i++){if(that.colorScheme===that._colorSchemes[i].name){colorSchemeIndex=i}}that._colors=that._colorSchemes[colorSchemeIndex].colors;if(colorSchemesCombinations>0){for(i=0;i<colorSchemesCombinations;i++){newColorSchemeIndex=(colorSchemeIndex+i+1)%colorSchemesLength;that._colors=that._colors.concat(that._colorSchemes[newColorSchemeIndex].colors)}}},_drawLabelsLine:function(radiusXY1,angle,valueIndex){var that=this;var x1,y1,x2,y2,angleInRad,radiusXY2,color,labelLineId;if(angle<0){angle=360+angle}else{if(angle>360){angle=angle%360}}angleInRad=(360-angle)*Math.PI/180;radiusXY2=radiusXY1+that._barWidth+(that._valuesLength-valueIndex-1)*(that._barWidth+that.barSpacing)+that._label.indent;x1=that._centerX+radiusXY1*Math.cos(angleInRad);y1=that._centerY+radiusXY1*Math.sin(angleInRad);x2=that._centerX+radiusXY2*Math.cos(angleInRad);y2=that._centerY+radiusXY2*Math.sin(angleInRad);color=that._label.connectorColor||that._colors[valueIndex];if(that.formatFunction){color=that.formatFunction(that.values[valueIndex],valueIndex,color)}if(that._ie7||that._ie8){x1=parseInt(x1,10);y1=parseInt(y1,10);x2=parseInt(x2,10);y2=parseInt(y2,10)}if(that._label.visible===true&&that.disabled===false){that._barGaugeLabelLines[valueIndex]=that.renderer.line(x1,y1,x2,y2,{fill:color,stroke:color,"stroke-width":that._label.connectorWidth})}labelLineId=that.element.id+"LabelLine"+valueIndex;that.renderer.attr(that._barGaugeLabelLines[valueIndex],{id:labelLineId});that.renderer.attr(that._barGaugeLabelLines[valueIndex],{"class":"jqx-bar-gauge-label-line"})},_drawLabelsText:function(angle,valueIndex,text){var that=this;var textSize,angleInRadians,xText,yText,offset,labelId;var color=that._label.font.color||that._colors[valueIndex];if(that.formatFunction){color=that.formatFunction(that.values[valueIndex],valueIndex,color)}var value=that._calculatePrecision(that._label.precision,that.values[valueIndex]);if(text!==undefined){value=new Number(text).toFixed(that._label.precision);value=that._calculatePrecision(that._label.precision,value)}if((that._label.formatFunction!==undefined)&&(that._label.formatFunction!==null)&&(typeof that._label.formatFunction==="function")){value=that._label.formatFunction(value,valueIndex)}if(!that._cachedMeasurements){that._cachedMeasurements=[]}if(!that._cachedMeasurements[value.length]){textSize=that._measureText(value,that._label.font.size,that._label.font.family,that._label.font.weight);that._cachedMeasurements[value.length]=textSize}else{textSize=that._cachedMeasurements[value.length]}if(angle<0){angle=360+angle}else{if(angle>360){angle=angle%360}}angleInRadians=(360-angle)*Math.PI/180;xText=that._centerX+(that._labelPositioningRadius+textSize.height*0.3)*Math.cos(angleInRadians);yText=that._centerY+(that._labelPositioningRadius+textSize.height*0.3)*Math.sin(angleInRadians);offset=that._calculateLabelOffset(angle,textSize.height,textSize.width);if(that._label.visible===true&&that.disabled===false){that._barGaugeLabelText[valueIndex]=that.renderer.text(value,xText-offset.x,(yText-offset.y),undefined,undefined,0,{"class":"jqx-bargauge-label",fill:color,"font-size":that._label.font.size+"px","font-family":that._label.font.family,"font-weight":that._label.font.weight},false,"left","top","lefttop")}labelId=that.element.id+"Label"+valueIndex;that.renderer.attr(that._barGaugeLabelText[valueIndex],{id:labelId});that.renderer.attr(that._barGaugeLabelText[valueIndex],{"class":"jqx-bar-gauge-label-text"});if((that._ie7)||(that._ie8)){$("#"+labelId+" .jqx-bargauge-label").css({color:color,"white-space":"nowrap","font-size":that._label.font.size+"px","font-family":that._label.font.family,"font-weight":that._label.font.weight})}},_calculatePrecision:function(precisionBase,value){var precision;precision=precisionBase+Math.abs(value).toString().split(".")[0].length;precision=(precision>15)?15:precision;value=parseFloat(value).toPrecision(precision);return value},_createTooltip:function(){var that=this;var tooltipId=that.element.id+"tooltip";that._barGaugeTooltip.attr("id",tooltipId);$(that._barGaugeTooltip).addClass(that.toThemeProperty("jqx-bar-gauge-tooltip"));if(that._tooltip.classname.length>0){$(that._barGaugeTooltip).addClass(that.toThemeProperty(that._tooltip.classname))}$(document.body).append(that._barGaugeTooltip);if((that._tooltip.visible===true)&&(that.disabled===false)&&(that._valuesLength>0)){that._addTooltipHandlers()}},_refreshTooltipHandlers:function(){var that=this;if(that._tooltip.visible===true&&that.disabled===false){that._removeTooltipHandlers();that._addTooltipHandlers()}},_addTooltipHandlers:function(){var that=this;var id,tooltipText;that.addHandler($("#"+that.element.id+" .jqx-bar-gauge-slice"),"mouseenter",function(){if((that._tooltip.visible===true)&&(that._valuesLength>0)){id=that.renderer.getAttr(this,"id").substr(that.element.id.length+5);tooltipText=that._calculatePrecision(that._tooltip.precision,that.values[id]);that._barGaugeTooltip.css({display:"block",color:that._colors[id],"border-color":that._colors[id]});if((that._tooltip.formatFunction!==undefined)&&(that._tooltip.formatFunction!==null)&&(typeof that._tooltip.formatFunction==="function")){tooltipText=that._tooltip.formatFunction(tooltipText,parseInt(id))}that._barGaugeTooltip.html(tooltipText);that._raiseEvent("2",{layer:id})}});that.addHandler($("#"+that.element.id+" .jqx-bar-gauge-slice"),"mouseleave",function(){that._barGaugeTooltip.css({display:"none"});that._raiseEvent("3",{layer:id})});that.addHandler($("#"+that.element.id+" .jqx-bar-gauge-slice"),"mouseup",function(){that._barGaugeTooltip.css({display:"none"})});if($("#"+that.element.id+" .jqx-bar-gauge-slice").length>0){that.addHandler($("#"+that.element.id+" .jqx-bar-gauge-slice"),"mousemove",function(){if((that._tooltip.visible===true)&&(that._valuesLength>0)){id=that.renderer.getAttr(this,"id").substr(that.element.id.length+5);tooltipText=that._calculatePrecision(that._tooltip.precision,that.values[id]);that._barGaugeTooltip.css({display:"block",color:that._colors[id],"border-color":that._colors[id]});if((that._tooltip.formatFunction!==undefined)&&(that._tooltip.formatFunction!==null)&&(typeof that._tooltip.formatFunction==="function")){tooltipText=that._tooltip.formatFunction(tooltipText,parseInt(id))}that._barGaugeTooltip.html(tooltipText)}})}that.addHandler($(that.host),"mousemove",function(event){that._barGaugeTooltip.css({top:(event.pageY-10)+"px",left:(event.pageX+15)+"px"})})},_removeTooltipHandlers:function(){var that=this;if(that._barGaugeSlices.length>0){that.removeHandler($(that._barGaugeSlices),"mouseenter");that.removeHandler($(that._barGaugeSlices),"mouseleave");that.removeHandler($(that._barGaugeSlices),"mouseup");that.removeHandler($(that._barGaugeSlices),"mousemove");that.removeHandler($("#"+that.element.id+" .jqx-bar-gauge-slice"),"mouseenter mouseleave mouseup mousemove")}that.removeHandler($(that.host),"mousemove")},_drawBarGaugeTitle:function(){var that=this;that._alignmentIE=that._alignmentIE||that._title.horizontalAlignment;var drawn=0;var coefY=0;var titleParts,subTitleParts,titleTextSize,subTitleTextSize,subTitleText,titleText,subTitleId,titleId,i;if(that._ie7||that._ie8){that._title.horizontalAlignment="left"}if(that._titleLines>1){titleParts=that._title.text.split("<br>");for(i=0;i<that._titleLines;i++){titleTextSize=that._measureText(titleParts[i]+"_",that._title.font.size,that._title.font.family,that._title.font.weight);titleText=titleParts[i];while(titleTextSize.width>that.width){titleText=titleText.slice(0,-1);titleParts[i]=titleText+"...";titleTextSize=that._measureText(titleParts[i]+"_",that._title.font.size,that._title.font.family,that._title.font.weight)}}that._title.text=titleParts.join("<br>")}else{titleTextSize=that._measureText(that._title.text+"_",that._title.font.size,that._title.font.family,that._title.font.weight);titleText=that._title.text;while(titleTextSize.width>that.width){titleText=titleText.slice(0,-1);that._title.text=titleText+"...";titleTextSize=that._measureText(that._title.text+"_",that._title.font.size,that._title.font.family,that._title.font.weight)}}if(that._title.verticalAlignment==="bottom"){coefY=that.height-that._title.placeholderSize}if((that.title!==null)&&(that.title!==undefined)&&(that._title.text!=="")){that._barGaugeTitle=that.renderer.text(that._title.text,that._title.margin.left,(coefY+that._title.margin.top),(that.width-that._title.margin.right),0,undefined,{fill:that._title.font.color,"fill-opacity":that._title.font.opacity,"font-size":that._title.font.size,"font-family":that._title.font.family,"font-weight":that._title.font.weight},false,that._title.horizontalAlignment,that._title.verticalAlignment,"centertop");titleId=that.element.id+"Title";that.renderer.attr(that._barGaugeTitle,{id:titleId});that.renderer.attr(that._barGaugeTitle,{"class":"jqx-bar-gauge-title"});if((that._ie7)||(that._ie8)){$("#"+titleId+" textbox").css({width:that.width+"px !important","padding-left":"10px",position:"relative"});var titleLeftMargin=0;if(titleTextSize.width<that.width){if(that._alignmentIE==="center"){titleLeftMargin=(that.width-titleTextSize.width)/2}else{if(that._alignmentIE==="right"){titleLeftMargin=that.width-titleTextSize.width}}}$("#"+titleId+" span").css({color:that._title.font.color,"margin-left":titleLeftMargin+"px","white-space":"nowrap","text-align":"center","font-size":that._title.font.size+"px","font-family":that._title.font.family,"font-weight":that._title.font.weight});drawn++}if((that._title.subtitle.text!=="")&&(that._title.subtitle.text!==undefined)){if(that._subTitleLines>1){subTitleParts=that._title.subtitle.text.split("<br>");for(i=0;i<that._subTitleLines;i++){subTitleTextSize=that._measureText(subTitleParts[i]+"_",that._title.subtitle.font.size,that._title.subtitle.font.family,that._title.subtitle.font.weight);subTitleText=subTitleParts[i];while(subTitleTextSize.width>that.width){subTitleText=subTitleText.slice(0,-1);subTitleParts[i]=subTitleText+"...";subTitleTextSize=that._measureText(subTitleParts[i]+"_",that._title.subtitle.font.size,that._title.subtitle.font.family,that._title.subtitle.font.weight)}}that._title.subtitle.text=subTitleParts.join("<br>")}else{subTitleTextSize=that._measureText(that._title.subtitle.text+"_",that._title.subtitle.font.size,that._title.subtitle.font.family,that._title.subtitle.font.weight);subTitleText=that._title.subtitle.text;while(subTitleTextSize.width>that.width){subTitleText=subTitleText.slice(0,-1);that._title.subtitle.text=subTitleText+"...";subTitleTextSize=that._measureText(that._title.subtitle.text+"_",that._title.subtitle.font.size,that._title.subtitle.font.family,that._title.subtitle.font.weight)}}that._barGaugeSubTitle=that.renderer.text(that._title.subtitle.text,that._title.margin.left,(coefY+that._title.font.size*that._titleLines+that._title.margin.top),that.width-that._title.margin.right,0,undefined,{fill:that._title.subtitle.font.color,"fill-opacity":that._title.subtitle.font.opacity,"font-size":that._title.subtitle.font.size,"font-family":that._title.subtitle.font.family,"font-weight":that._title.subtitle.font.weight,"margin-top":that._title.margin.top},false,that._title.horizontalAlignment,that._title.verticalAlignment,"centertop");subTitleId=that.element.id+"SubTitle";that.renderer.attr(that._barGaugeSubTitle,{id:subTitleId});that.renderer.attr(that._barGaugeSubTitle,{"class":"jqx-bar-gauge-subtitle"});if((that._ie7)||(that._ie8)){var subTitleLeftMargin=0;if(subTitleTextSize.width<that.width){if(that._alignmentIE==="center"){subTitleLeftMargin=(that.width-subTitleTextSize.width)/2}else{if(that._alignmentIE==="right"){subTitleLeftMargin=that.width-subTitleTextSize.width}}}$("#"+subTitleId+" textbox").css({width:that.width+"px !important",left:subTitleLeftMargin+"px !important",position:"relative"});$("#"+subTitleId+" span").css({width:"100%",color:that._title.subtitle.font.color,"margin-left":subTitleLeftMargin+"px","white-space":"nowrap","text-align":"center","font-size":that._title.subtitle.font.size+"px","font-family":that._title.subtitle.font.family,"font-weight":that._title.subtitle.font.weight})}}}},_measureText:function(text,fontSize,fontFamily,fontWeight){var that=this;var measuredTextProperties={};if(!$("#"+that._measuredTextId).length){that._measuredText.attr("id",that._measuredTextId);$(that.host).append(that._measuredText);that._measuredText.css({"z-index":-999999,"white-space":"nowrap","font-size":fontSize+"px","font-family":fontFamily,"font-weight":fontWeight})}if(that._measuredText[0].style.fontSize!=fontSize+"px"){that._measuredText[0].style.fontSize=fontSize+"px"}if(that._measuredText[0].style.fontFamily!=fontFamily+"px"){that._measuredText[0].style.fontFamily=fontFamily}if(that._measuredText[0].style.fontWeight!=fontWeight){that._measuredText[0].style.fontWeight=fontWeight+"px"}that._measuredText.text(text);measuredTextProperties.width=that._measuredText[0].offsetWidth;measuredTextProperties.height=that._measuredText[0].offsetHeight;return measuredTextProperties},_calculateBarGaugeRadius:function(){var that=this;if(that.width>(that.height-that._title.placeholderSize)){that._barGaugeRadius=(that.height-that._title.placeholderSize)/2}else{that._barGaugeRadius=that.width/2}},_addCSS:function(){var that=this;$(that.host).addClass(that.toThemeProperty("jqx-widget"));$(that.host).addClass(that.toThemeProperty("jqx-bar-gauge"));$(that.host).addClass(that.toThemeProperty("jqx-widget-content"));if(that.disabled){$(that.host).addClass(that.toThemeProperty("jqx-fill-state-disabled"))}},_rendered:function(){var that=this;if((that._rendering===true)){if((that.rendered!==null)&&(typeof that.rendered==="function")){that.rendered()}that._rendering=false;that.clearIntervals();that._temporaryOldAngle.length=0;that._temporaryValuesToDegrees.length=0;that._temporaryValues.length=0;that._raiseEvent("0");that._raiseEvent("5")}},_render:function(){var that=this;that._removeAllGraphicElements();if(that.values.length>0){if((that.animationDuration===0)||(that._ie8)||(that._ie7)){that._drawStaticBarGauge()}else{that._drawDynamicBarGauge()}}else{that._getLiquidDimensions();that.host.width(that.width);that.host.height(that.height);that._validateValues();that._transformValuesToAngles();that._drawStaticBarGauge()}},render:function(){var that=this;that.clearIntervals();that._getLiquidDimensions();that.host.width(that.width);that.host.height(that.height);that._validateValues();that._transformValuesToAngles();that._getColorScheme();if(that._rendering!==true){that._render()}else{that._staticRefresh();that._render()}},refresh:function(initialRefresh){var that=this;if(initialRefresh!==true){that.render()}},_removeAllGraphicElements:function(){var that=this;that._removeLabels();that._removeBarGaugeSlices();that._removeBarGaugeTitle();that._removeBarGaugeSubTitle()},_drawStaticBarGauge:function(){var that=this;that._rendering=true;that._drawBarGaugeTitle();that._drawBarGaugeLayout();if(!that.disabled){that._getLiquidDimensions();that.host.width(that.width);that.host.height(that.height);that._validateValues();that._measureRadius();that._drawStaticBarGaugeElementsWithBase();that._rendered()}else{that._rendered()}},_drawDynamicBarGauge:function(){var that=this;that._drawBarGaugeTitle();that._drawBarGaugeLayout();if(!that.disabled){that._drawBarGaugeElementsWithBase()}else{that._rendered()}},val:function(newValues){var that=this;if((newValues!==null)&&(newValues!==undefined)&&(typeof newValues==="object")&&(Object.keys(newValues).length>0)){that._raiseEvent("4","api");if(newValues.length!=that.values.length){that.values=newValues;that.render()}else{that._redrawWithNewValuesArray(newValues,that.values)}}else{if((newValues!==null)&&(newValues!==undefined)&&(typeof newValues==="object")&&(newValues.length===0)){that._raiseEvent("4");that._removeLabels();that._removeBarGaugeSlices();that._transformValuesToAngles();that._drawEmptyBarGauge();that._removeLabels();that.values.length=0;that._refreshTooltipHandlers()}}return that.values},_redrawWithNewValuesArray:function(newValues,oldValues){var that=this;var val,i;if(that._rendering===false){that._userValues=newValues.slice();if(!!oldValues){that._oldValues=oldValues.slice()}else{that._oldValues=that.values.slice()}that._oldValuesToDegrees=that._valuesToDegrees.slice();that._oldValuesLength=that._valuesLength;if(Object.keys(newValues).length>1){that.values=newValues.slice()}else{if((newValues[0]===null)||(newValues[0]===undefined)){that.values=[]}else{that.values=[];that.values[0]=parseFloat(newValues)}}that._lastChange=new Date()}else{if(that._rendering===true){that._userValues=newValues.slice();that._oldValues.length=0;that._oldValuesToDegrees.length=0;for(i=0;i<that.values.length;i++){that._oldValues[i]=that._temporaryValues[i]!=undefined?that._temporaryValues[i]:that.values[i];that._oldValuesToDegrees[i]=that._temporaryValuesToDegrees[i]!=undefined?that._temporaryValuesToDegrees[i]:that._valuesToDegrees[i]}that._oldValuesLength=that.values.length;if(newValues.length>1){that.values=newValues.slice()}else{if((newValues[0]===null)||(newValues[0]===undefined)){that.values=[]}else{that.values=[];that.values[0]=parseFloat(newValues)}}}else{if((newValues===null)||(newValues===undefined)){that.values=[]}else{if((typeof newValues==="string")||(typeof newValues==="number")){that.values=[];that.values[0]=parseFloat(newValues)}else{return that.values}}}}that._valuesLength=that.values.length;that._getColorScheme();if(that._valuesLength>that._oldValuesLength){for(var v=that._oldValuesLength;v<that._valuesLength;v++){that._oldValuesToDegrees[v]=that._geometry.baseAngle;that._oldValues[v]=that.baseValue}}for(i=0;i<that._valuesLength;i++){if(that.values[i]<that.min){that.values[i]=that.min}else{if(that.values[i]>that.max){that.values[i]=that.max}}var res=that.values[i];if(res==0){res=0.03}val=((res-that.min)/(that.max-that.min))*(that._geometry.endAngle-that._geometry.startAngle)+that._geometry.startAngle;that._valuesToDegrees[i]=val%360}that._renderElements();that._refreshTooltipHandlers();that._raiseEvent("1")},_staticRefresh:function(){var that=this;var animationDuration=that.animationDuration;if(typeof that.width==="string"&&that.width.indexOf("%")!==-1){that._dimensions.width=that.width}if(typeof that.height==="string"&&that.height.indexOf("%")!==-1){that._dimensions.height=that.height}that._getLiquidDimensions();that.host.width(that.width);that.host.height(that.height);$("#"+that.element.id+" .chartContainer").width(that.width);$("#"+that.element.id+" .chartContainer").height(that.height);that._removeBarGaugeTitle();that._removeBarGaugeSubTitle();that._validateGeometry();that._validateTitle();that._validateLabel();that._validateValues();that._validateTooltip();that._measureRadius();that.animationDuration=0;that._render();that.animationDuration=animationDuration},propertyChangedHandler:function(object,key,oldvalue,value){var that=object;var animationDuration,i;that._cachedMeasurements=[];if(object.isInitialized===undefined||object.isInitialized===null||object.isInitialized===false){return}if(!that.ie7&&object.batchUpdate&&object.batchUpdate.width&&object.batchUpdate.height&&Object.keys(object.batchUpdate).length===2){return}if((value!==oldvalue)||(key==="colorScheme"||key==="tooltip")){animationDuration=that.animationDuration;that._titleTemplate=that._title;that._labelTemplate=that._label;that._tooltipTemplate=that._tooltip;switch(key){case"width":case"height":that._staticRefresh();break;case"values":that.values=oldvalue;that.val(value);break;case"animationDuration":break;case"disabled":if(that.disabled){$(that.host).addClass(that.toThemeProperty("jqx-fill-state-disabled"))}else{$(that.host).removeClass(that.toThemeProperty("jqx-fill-state-disabled"))}that._render();break;case"geometry":case"min":case"baseValue":case"max":case"barSpacing":case"startAngle":case"endAngle":case"relativeInnerRadius":that.geometry.startAngle=that.startAngle;that.geometry.endAngle=that.endAngle;that.values=that._userValues.slice();that._validateValues();that._transformValuesToAngles();that._render();break;case"tooltip":that._validateTooltip();break;case"rendered":break;case"backgroundColor":that._backgroundColor=that._validateColor(that.backgroundColor,that._backgroundColor);if(that._ie7||that._ie8){for(i=0;i<that._valuesLength;i++){that.renderer.attr(that._barGaugeBackgroundSlices[i],{fillcolor:that._backgroundColor,strokecolor:that._backgroundColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}}else{$("#"+that.element.id+" .jqx-bar-gauge-background-slice").attr({fill:that._backgroundColor,stroke:that._backgroundColor,"stroke-width":that._barGaugeSlicesStrokeWidth})}break;case"customColorScheme":that._attachCustomColors();break;case"colorScheme":var connectorColor,labelColor;that._getColorScheme();for(i=0;i<that._valuesLength;i++){connectorColor=that._label.connectorColor||that._colors[i];labelColor=that._label.font.color||that._colors[i];var drawColor=that._colors[i];if(that.useGradient){var stops=[[0,1.4],[100,1]];drawColor=that.renderer._toLinearGradient(drawColor,true,stops)}that.renderer.attr(that._barGaugeSlices[i],{fill:drawColor});that.renderer.attr(that._barGaugeLabelLines[i],{fill:connectorColor,stroke:connectorColor});that.renderer.attr(that._barGaugeLabelText[i],{fill:labelColor});if(that._ie7||that._ie8){that.renderer.attr(that._barGaugeSlices[i],{fillcolor:that._colors[i],strokecolor:that._colors[i],"stroke-width":that._barGaugeSlicesStrokeWidth});that.renderer.attr(that._barGaugeLabelLines[i],{fillcolor:connectorColor,strokecolor:connectorColor});var labelId=that.element.id+"Label"+i;$("#"+labelId+" .jqx-bargauge-label").css({color:labelColor})}}break;default:that._staticRefresh();break}}},_compareArrays:function(arr1,arr2){var arr1Length=arr1.length,arr2Length=arr2.length;if(arr1Length!==arr2Length){return false}else{for(var i=0;i<arr1Length;i++){if(arr1[i]!==arr2[i]){return false}}}return true},_addIEPolyfills:function(){if(!Object.keys){Object.keys=(function(){var hasOwnPropertyLocal=Object.prototype.hasOwnProperty,hasDontEnumBug=!({toString:null}).propertyIsEnumerable("toString"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;return function(obj){if(typeof obj!=="object"&&(typeof obj!=="function"||obj===null)){throw new TypeError("Object.keys called on non-object")}var result=[],prop,i;for(prop in obj){if(hasOwnPropertyLocal.call(obj,prop)){result.push(prop)}}if(hasDontEnumBug){for(i=0;i<dontEnumsLength;i++){if(hasOwnPropertyLocal.call(obj,dontEnums[i])){result.push(dontEnums[i])}}}return result}}())}},destroy:function(){var that=this;$("#"+that._measuredTextId).remove();that.renderer.clear();that.renderer=null;that._removeEventHandlers();that._removeTooltipHandlers();that.host.children().remove();that.host.removeData();that.host.removeClass();that.host.remove();that.host=null;that.element=null;delete that.element;delete that.host},_addEventHandlers:function(){var that=this;that.addHandler($(that.host),"drawStart",function(){});that.addHandler($(that.host),"drawEnd",function(){that._refreshTooltipHandlers()});that.addHandler($(window),"resize.jqxBarGauge"+that.host[0].id,function(){var isPercentage=false;if(that._dimensions.width&&that._dimensions.width.toString().indexOf("%")>=0){isPercentage=true}if(that._dimensions.height&&that._dimensions.height.toString().indexOf("%")>=0){isPercentage=true}if(isPercentage){that._staticRefresh()}})},_removeEventHandlers:function(){var that=this;that.removeHandler($(that.host),"drawStart");that.removeHandler($(that.host),"drawEnd");that.removeHandler($(window),"resize.jqxBarGauge"+that.host[0].id)},_refreshEventHandlers:function(){var that=this;that._removeEventHandlers();that._addEventHandlers()},_raiseEvent:function(eventId,data){var that=this;var event=$.Event(that._events[eventId]);event.args=data;return that.host.trigger(event)},_getEvent:function(event){var that=this;if(that._isTouchDevice){return that._touchEvents[event]}else{return event}}})})(jqxBaseFramework);
 
@@ -32,7 +32,7 @@
 
 (function(a){a.jqx.jqxWidget("jqxPivotGrid","",{});a.extend(a.jqx._jqxPivotGrid.prototype,{defineInstance:function(){var b={scrollBarsEnabled:true,source:null,groupingColumns:[],isGroupingEnabled:false,_offsetX:0,_offsetY:0,_currentPosition:{},_selectStartPosition:{},_isMouseLeftButtonDown:false,_timeLastUp:new Date(),_timeLastDown:new Date(),resizeTooltipEnabled:false,isHorizontalResize:true,_colResizeState:"NO_RESIZE",activeEditor:{Editor:null},_id:0,_colItemRangeSelectionBeg:null,_colItemRangeSelectionEnd:null,_rowItemRangeSelectionBeg:null,_rowItemRangeSelectionEnd:null,_isCTRLPressed:false,_internalSelectMode:"CELLS_SELECT",_mostRightItemBounds:{x:0,y:0,width:0,height:0},_mostLeftItemBounds:{x:0,y:0,width:0,height:0},_adjSelectedItemsSave:{},multipleSelectionEnabled:true,selectionEnabled:true,selectionMode:"CELLS_SELECT",treeStyleRows:true,autoResize:false,cellsRenderer:null,itemsRenderer:null,localization:null};a.extend(true,this,b);this._createPivotAreas();return b},_createPivotAreas:function(){if(this._pivotRows){this._pivotRows.clear();delete this._pivotRows}if(this._pivotColumns){this._pivotColumns.clear();delete this._pivotColumns}if(this._pivotCells){this._pivotCells._resetCanvas();this._pivotCells.clear();delete this._pivotCells}this._pivotRows=new a.jqx.jqxPivotGrid.pivotRows(this);this._pivotColumns=new a.jqx.jqxPivotGrid.pivotColumns(this);this._pivotCells=new a.jqx.jqxPivotGrid.pivotCells();this._pivotCells.parentPivotGrid=this},_instanceId:0,createInstance:function(k){var f=this.element;var l=this.host;var m=this;m.localizeStrings(m.localization);var b="jqx-pivotgrid jqx-rc-all jqx-widget "+this.toThemeProperty("jqx-widget-content");var g="";if(this._isTouchDevice()){g="class='jqx-grid-menu-item-touch'"}l.append("<div class='"+b+"' style='width:100%; height: 100%; overflow:hidden; position:relative; onselectstart='return false;' oncontextmenu='return false;''><div id='divContent' style='width:100px; height:100%;'></div><div id='divHScroll' style='width:100%; height:17px;'></div><div id='divVScroll' style='width:17px; height:100%;'></div><div id='divContextMenu'><ul><li "+g+"><div id='sortasc' class='jqx-pivotgrid-sortasc-icon'></div><span>"+m._localizedStrings.sortascendingstring+"</span></li><li "+g+"><div id='sortdesc' class='jqx-pivotgrid-sortdesc-icon'></div><span>"+m._localizedStrings.sortdescendingstring+"</span></li><li "+g+"><div id='sortremove' class='jqx-pivotgrid-sortremove-icon'></div><span>"+m._localizedStrings.sortremovestring+"</span></li></ul></div></div>");var c=l.find("#divContent");var d=c[0];var j=document.createElement("div");j.style.position="relative";j.style.left="0px";j.style.top="0px";j.style.width="100%";j.style.height="100%";j.style.overflow="hidden";c.append(j);this.contentCanvas=this.Canvas=j;this.hostVScroll=l.find("#divVScroll");this.hostHScroll=l.find("#divHScroll");this.hScroll=l.find("#divHScroll").jqxScrollBar({vertical:false,theme:this.theme});this.vScroll=l.find("#divVScroll").jqxScrollBar({vertical:true,theme:this.theme});m._createContextMenu();m.id=m._instanceId++;m._resizeLineId="divResizeLine"+m.id;a(document.body).append("<div id='"+m._resizeLineId+"' style='position: absolute; display: none;'></div>");try{m.dataBind()}catch(i){throw"Databinding exception: "+i.toString();return}m._installEventHandlers();a.jqx.utilities.resize(m.host,function(){m.refresh()},false);if(!m._isInitialized){m._isInitialized=true}},destroy:function(){this._isInitialized=false;this.host.find("#divHScroll").off();this.host.find("#divVScroll").off();this._contextMenu.off();this.removeHandler(this.host);a.jqx.utilities.resize(this.host,null,true)},_installEventHandlers:function(){var b=this;b.hostVScroll.on("valueChanged",function(c){if(c.currentTarget==b.hostVScroll[0]){b.onVScroll(c.currentValue)}});b.hostHScroll.on("valueChanged",function(c){if(c.currentTarget==b.hostHScroll[0]){b.onHScroll(c.currentValue)}});b.addHandler(b.host,"mousewheel DOMMouseScroll",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}var d=a.jqx.position(c);if(!b.isPtInRect({x:d.left,y:d.top},b._rect)){return}c.preventDefault();if(!b._scrollBarPositions.vertical.visible){return}b.onMouseWheel(c)});b.addHandler(b.host,"mouseenter",function(c){if(c.currentTarget==b.element){b._onMouseEnter(c)}});b.addHandler(b.host,"mouseleave",function(c){if(c.currentTarget==b.element){b._onMouseLeave(c)}});b.addHandler(b.host,"mousedown",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}c.preventDefault();b._onMouseDown(c);this.focus()});b.addHandler(a(document),"mouseup",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}c.preventDefault();b._onMouseUp(c);if(c.cancel){return}var d=a.jqx.position(c);if(!b.isPtInRect({x:d.left,y:d.top},b._rect)){if(b._colResizeState!="RESIZING"){return}}b._onMouseClick(c)});b.addHandler(a(document),"mousemove",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}b._onMouseMove(c)});b.addHandler(a(document),"keydown",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}if(b._isContextMenuOpen){return}if(c.keyCode==17){b._isCTRLPressed=true}else{if(c.keyCode==16){b._isSHIFTPressed=true}else{if(b._handleKeyboardNavigation){b._handleKeyboardNavigation(c)}}}});b.addHandler(a(document),"keyup",function(c){if(b._isContextMenuOpen){return}if(b._pivotDesigner&&b._pivotDesigner._isWindowOpen()){return}if(b._isContextMenuOpen){return}if(c.keyCode==17){b._isCTRLPressed=false}else{if(c.keyCode==16){b._isSHIFTPressed=false}}})},_createContextMenu:function(){var l=this;var k=this.host;var j=k.find("#divContextMenu");l._contextMenu=j.jqxMenu({width:"120px",autoCloseOnClick:true,autoOpenPopup:false,animationShowDuration:0,animationHideDuration:0,animationShowDelay:0,theme:this.theme,keyboardNavigation:false,mode:"popup"});var f=j.find("li");var b="";for(var d=0;d<f.length;d++){var g=a(f[d]).text();if(g.length>b.length){b=g}}var c=a('<span style="white-space:nowrap;">'+b+"</span>");c.addClass(this.toThemeProperty("jqx-menu-item"));this.host.append(c);var e=c.outerWidth()+30;c.remove();l._contextMenu=j.jqxMenu({width:e});l._contextMenu.on("shown",function(){l._isContextMenuOpen=true});l._contextMenu.on("closed",function(){l._isContextMenuOpen=false;l._hideItemMenuElement()});l._contextMenu.on("itemclick",function(o){o.stopImmediatePropagation();o.stopPropagation();var n=l._menuElement._itemMouseOver;if(!n){return}var m=n.hierarchy==l._pivotColumns?l._pivotRows:l._pivotColumns;var i=o.args.innerHTML;if(i.indexOf("sortasc")!=-1){m.sortBy(n,"asc")}else{if(i.indexOf("sortdesc")!=-1){m.sortBy(n,"desc")}else{if(i.indexOf("sortremove")!=-1){m.removeSort()}}}})},_isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var b=a.jqx.mobile.isTouchDevice();this.touchDevice=b;if(this.touchmode==true){if(a.jqx.browser.msie&&a.jqx.browser.version<9){this.enablehover=false;return false}b=true;a.jqx.mobile.setMobileSimulator(this.element);this.touchDevice=b}else{if(this.touchmode==false){b=false}}if(b&&this.touchModeStyle!=false){this.touchDevice=true;this.host.addClass(this.toThemeProperty("jqx-touch"));this.host.find("jqx-widget-content").addClass(this.toThemeProperty("jqx-touch"));this.host.find("jqx-widget-header").addClass(this.toThemeProperty("jqx-touch"));this.scrollbarsize=this.touchscrollbarsize}return b},propertyChangedHandler:function(b,c,e,d){if(this._isInitialized==undefined||this._isInitialized==false){return}if(c=="source"){this.dataBind()}else{if(c=="theme"){this.hostVScrollBar.jqxScrollBar("theme",this.theme);this.hostHScrollBar.jqxScrollBar("theme",this.theme)}}this._internalRefresh()},genId:function(){return this._id++},getCellId:function(b,c){return b.id+"_"+c.id},_scrollTimer:undefined,_renderOnTimeout:function(c){clearTimeout(this._scrollTimer);var b=this;if(c==0){this._pivotColumns._refreshRequired=this._pivotRows._refreshRequired=true;b._internalRefresh()}else{this._scrollTimer=setTimeout(function(){b._render()},c)}},onVScroll:function(b){b=Math.round(b);if(b==this._offsetY){return}var d=50;var c=0;this._offsetY=b;this._renderOnTimeout(c)},onHScroll:function(b){b=Math.round(b);if(b==this._offsetX){return}var d=50;var c=0;this._offsetX=b;this._renderOnTimeout(c)},onMouseWheel:function(d){var f=0;if(!d){d=window.event}if(d.wheelDelta){f=d.wheelDelta/120}else{if(d.detail){f=-d.detail/3}}if(!f){return}if(d.preventDefault){d.preventDefault()}d.returnValue=false;var c=this.vScroll.jqxScrollBar("min");var b=this.vScroll.jqxScrollBar("max");var e=this.vScroll.jqxScrollBar("value");f*=10;e=e-f;if(e>b){e=b}if(e<c){e=c}this.vScroll.jqxScrollBar("value",e)},_onMouseMove:function(c){var d=a.jqx.position(c);var b=d.left;var g=d.top;if(!this.isPtInRect({x:b,y:g},this._rect)){if(this._colResizeState!="RESIZING"){return}}var f=this.host.offset();b-=Math.round(f.left);g-=Math.round(f.top);b=Math.max(b,0);g=Math.max(g,0);if(this._currentPosition.x==b&&this._currentPosition.y==g){return}else{this._currentPosition.x=b;this._currentPosition.y=g}for(var e in this._scrollBarPositions){if(this._scrollBarPositions[e].visible&&this.isPtInRect({x:b,y:g},this._scrollBarPositions[e].rect)){return}}this._handleMouseMove(c);if(this.activeEditor&&this.activeEditor.Editor){}else{}},_onMouseEnter:function(b){},_onMouseLeave:function(b){this._hideItemMenuElement()},_onMouseDown:function(e){var b={isOnItemButton:false};var d=this._itemHitTest(this._currentPosition,b);if(null!=d){var c=this._raisePivotItemMouseEvent(d,"pivotitemmousedown",e.button==0?"left":"right");if(c){e.cancel=true;return}}if(e.button==0){this.onMouseLeftButtonDown(e)}else{if(e.button==2){this.onMouseRightButtonDown(e)}}},_onMouseUp:function(e){var b={isOnItemButton:false};var d=this._itemHitTest(this._currentPosition,b);if(d!=null){var c=this._raisePivotItemMouseEvent(d,"pivotitemmouseup",e.button==0?"left":"right");if(c){e.cancel=true;return}}if(e.button==0){this.onMouseLeftButtonUp(e)}else{if(e.button==2){this.onMouseRightButtonUp(e)}}},_onMouseClick:function(d){var b=this;var c=d;b._handleMouseClick(d);if(d.cancel){return}if(b._dtLastMouseClick){var e=new Date()-b._dtLastMouseClick;if(e<500){this._handleMouseDoubleClick(d);b._dtLastMouseClick=undefined;return}}b._dtLastMouseClick=new Date()},setDivContent:function(f,c,d,g,e){var b=this.getChild(f,"innerDiv");b.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";if(g){b.style["text-align"]=g}this.setElementSize(f,parseFloat(f.style.width),parseFloat(f.style.height));if(e){b.style.width=parseFloat(f.style.width)-d.left+"px"}b.innerHTML=c},setElementPosition:function(c,b,d){c.style.position="absolute";c.style.left=b+"px";c.style.top=d+"px"},_getFloat:function(b){var d;for(var c=0;c<b.length;c++){d=parseFloat(b[c]);if(!isNaN(d)){return d}}return NaN},setElementSize:function(j,b,f){j.style.width=b+"px";j.style.height=f+"px";var e=this.getChild(j,"innerDiv");if(e){var i=this._getFloat([e.style.padding.left,e.style.padding,0]);var d=this._getFloat([e.style.padding.right,e.style.padding,0]);var g=this._getFloat([e.style.padding.top,e.style.padding,0]);var c=this._getFloat([e.style.padding.bottom,e.style.padding,0]);e.style.width=(b-i-d)+"px";e.style.height=(f-g-c)+"px"}},createCanvas:function(b){var c=document.createElement("div");c.style["background-color"]="transparent";c.style.overflow="hidden";b.appendChild(c);return c},createDiv:function(c,d,f,b){var g=document.createElement("div");g.id=d;g.style.height=b+"px";g.style.width=f+"px";var e=document.createElement("div");e.id="innerDiv";e.style.height=b+"px";e.style.width=f+"px";g.appendChild(e);c.appendChild(g);return g},getPivotRows:function(){return this._pivotRows},getPivotColumns:function(){return this._pivotColumns},getPivotCells:function(){return this._pivotCells},_layout:function(){var d=this.host.find("#divContent");var f=this.host.find("#divVScroll");var c=this.host.find("#divHScroll");var e=this.host.width();var b=this.host.height();if(!this._pivotCells.Canvas){this._pivotCells.Canvas=this.createCanvas(this.Canvas,"divCells",100,100)}if(!this._pivotRows.Canvas){this._pivotRows.Canvas=this.createCanvas(this.Canvas,"divRowsHierarchy",100,100)}if(!this._pivotColumns.Canvas){this._pivotColumns.Canvas=this.createCanvas(this.Canvas,"divColumnsHierarchy",100,100)}if(this._pivotRows.isHidden){this._pivotRows.Canvas.style.display="none"}else{this._pivotRows.Canvas.style.display="block";this.setElementPosition(this._pivotRows.Canvas,this._pivotRows.x,this._pivotRows.y);this.setElementSize(this._pivotRows.Canvas,this._pivotRows.getWidth()+1,this._pivotRows.getHeight());if(this._pivotRows.renderCanvas==undefined){this._pivotRows.renderCanvas=this.createCanvas(this._pivotRows.Canvas,"divRowsRender",100,100)}this.setElementSize(this._pivotRows.renderCanvas,this._pivotRows.getWidth()+1,this._pivotRows.getHeight())}if(this._pivotColumns.isHidden){this._pivotColumns.Canvas.style.display="none"}else{this._pivotColumns.Canvas.style.display="block";this.setElementPosition(this._pivotColumns.Canvas,this._pivotColumns.x,this._pivotColumns.y);this.setElementSize(this._pivotColumns.Canvas,this._pivotColumns.getWidth(),this._pivotColumns.getHeight()+1);if(this._pivotColumns.renderCanvas==undefined){this._pivotColumns.renderCanvas=this.createCanvas(this._pivotColumns.Canvas,"divColumnsRender",100,100)}this.setElementSize(this._pivotColumns.renderCanvas,this._pivotColumns.getWidth(),this._pivotColumns.getHeight()+1)}this.setElementPosition(this._pivotCells.Canvas,this._pivotColumns.x,this._pivotRows.y);this.setElementSize(this._pivotCells.Canvas,this._pivotCells.viewPort.width,this._pivotCells.viewPort.height);if(this._pivotCells.renderCanvas==undefined){this._pivotCells.renderCanvas=this.createCanvas(this._pivotCells.Canvas,"divCellsRender",100,100)}this.setElementSize(this._pivotCells.renderCanvas,this._pivotColumns.getWidth()+1,this._pivotRows.getHeight()+1)},refresh:function(){this._pivotColumns._renderRequired=true;this._pivotRows._renderRequired=true;this._pivotCells.clear();this._internalRefresh()},_internalRefresh:function(){var i=this.host.offset();if(this.autoResize){var d=this._pivotColumns.isHidden?0:this._pivotColumns.getHeight();var f=this._pivotColumns.isHidden?0:this._pivotColumns.getWidth();var e=this._pivotRows.isHidden?0:this._pivotRows.getHeight();var c=this._pivotRows.isHidden?0:this._pivotRows.getWidth();var g={};g.width=f+c+1;g.height=d+e+1;if(g.width!=this.host.width()||g.height!=this.host.height()){this._pivotColumns._renderRequired=this._pivotRows._renderRequired=true;this.host.css({width:g.width+"px",height:g.height+"px"})}}this._rect={x:i.left,y:i.top,width:this.host.width(),height:this.host.height()};this._render();var b=this.host.find("#divHScroll");b.jqxScrollBar("refresh")},_render:function(){var b=this._pivotColumns._renderRequired||this._pivotRows._renderRequired;if(this._pivotRows.compactStyleRenderingEnabled!=this.treeStyleRows){this._pivotRows.compactStyleRenderingEnabled=this.treeStyleRows;b=true}if(b){this._pivotRows._renderRequired=this._pivotColumns._renderRequired=true;this.RenderGridContent();this._layout()}this._pivotRows.viewPort.y=this._offsetY+(this._pivotColumns.isVisible()?this._pivotColumns.viewPort.height:0);this._pivotColumns.viewPort.x=this._offsetX+(this._pivotRows.isVisible()?this._pivotRows.viewPort.width:0);this._pivotColumns.refresh();this._pivotRows.refresh();this._pivotCells.render();this._updateMenuElement()},_updateMenuElement:function(){var b=this.host.find("#divContent");var d=b[0];if(this._menuElement){a(this._menuElement).off();d.removeChild(this._menuElement)}var e=document.createElement("div");e.style.height="16px";e.style.width="16px";e.style.id="menu_element";e.style.align="left";e.style.valign="top";e.style.display="none";d.appendChild(e);this._menuElement=e;var c=this;a(c._menuElement).on("click",function(){c._showItemContextMenu()})},dataBind:function(){var c=this.source;if(this.localization&&!c.localization){c.localization=this.localization}c.dataBind();function b(m,l,d,f,k){for(var g in m.items){var j=m.items[g];var e=new a.jqx.jqxPivotGrid.pivotItem(d,f);e.text=j.text;e.adapterItem=j;e.isColumn=k;l.items.push(e);b(j,e,e,f,k)}for(var g in m.valueItems){var j=m.valueItems[g];var e=new a.jqx.jqxPivotGrid.pivotItem(d,f);e.adapterItem=j;e.text=j.text;e.isColumn=k;e._isValueItem=true;l.valueItems.push(e);b(j,e,e,f,k)}}this._createPivotAreas();b(c._rowsHierarchy,this._pivotRows,null,this._pivotRows,false);b(c._columnsHierarchy,this._pivotColumns,null,this._pivotColumns,true);this.bindingState="DataBoundPivot";this._pivotRows.autoResize("default");this._pivotColumns.autoResize("default");this._internalRefresh()},getChild:function(d,e){var c=d.childNodes;for(var b=0;b<c.length;b++){if(c[b].id==e){return c[b]}}return null},scrollToOffset:function(c,e){var b=this.gridcells;for(var d=0;d<b.length;d++){b[d].style.top=e+parseInt(b[d].originalY)+"px";this.setDivContent(b[d],"cell "+d)}},getWidth:function(){return this.host.width()},getHeight:function(){return this.host.height()},RenderGridContent:function(){if(!this._pivotColumns._renderRequired&&!this._pivotRows._renderRequired){this._pivotRows.viewPort.y=this._offsetY;this._pivotColumns.viewPort.x=this._offsetX;return}if(this.PaintSuspended){return}if(this._colResizeState=="RESIZING"){return}var l={};l.x=this._offsetX;l.y=this._offsetY;l.width=this.getWidth();l.height=this.getHeight();if(l.width==0||l.height==0){return}this.PaintSuspended=true;if(this._pivotColumns._isColumnsCountRequresUpdate){this._pivotColumns._updateVisibleLeaves();this._pivotColumns._updateColumnsCount();this._pivotColumns._updateColumnsIndexes()}if(this._pivotRows._isColumnsCountRequresUpdate){this._pivotRows._updateColumnsCount();this._pivotRows._updateColumnsIndexes()}if(this.getWidth()==0||this.getHeight()==0){this.PaintSuspended=false;return}if(this.GroupingEnabled&&this.groupingColumns.length>0){this._pivotRows.isHidden=true}if(this._pivotColumns._renderRequired){this._pivotColumns.render()}if(this._pivotRows._renderRequired){this._pivotRows.render()}var c=(this._pivotColumns.isVisible()?this._pivotColumns.getHeight():0);var i=(this._pivotRows.isVisible()?this._pivotRows.getWidth():0);var j={width:this._pivotColumns.getWidth()+i,height:this._pivotRows.getHeight()+c};if(this.scrollableAreaSize!=j||this.isSyncScrollRequired){this.scrollableAreaSize=j;this.SynchronizeScrollBars()}var b=this.host.find("#divContent");var m=this.host.find("#divVScroll");var e=this.host.find("#divHScroll");var d=e.css("display")!="none";var g=m.css("display")!="none";b.css({height:(l.height-(d?e.height()+4:0))+"px"});b.css({width:(l.width-(g?m.width()+4:0))+"px"});var k=l.height;if(l.height==this.getHeight()){k=l.height-c-((d)?e.height()+4:0);if(k<0){k=l.height}}this._pivotRows.x=0;this._pivotRows.y=c;this._pivotRows.viewPort={x:this._pivotRows.x,y:l.y,width:this._pivotRows.getWidth(),height:k};var f=l.width;if(l.width==this.getWidth()){f=l.width-i-((g)?m.width()+4:0);if(f<0){f=l.width}}this._pivotColumns.x=i;this._pivotColumns.y=0;this._pivotColumns.viewPort={x:l.x,y:this._pivotColumns.y,width:f,height:this._pivotColumns.getHeight()};this._pivotCells.Bounds={x:this._pivotColumns.x,y:this._pivotRows.y,width:this._pivotColumns.getWidth(),height:k};this._pivotCells.viewPort={x:l.x,y:l.y,width:f,height:k};if(this.draggingItem!=null&&dragElement.visibility==visibility.visible){dragElement.setValue(Canvas.ZIndexProperty,10000)}this._pivotRows._renderRequired=false;this._pivotColumns._renderRequired=false;this.PaintSuspended=false},SynchronizeScrollBars:function(){var q=false;var e=false;var o=this.host.find("#divVScroll");var i=this.host.find("#divHScroll");var g=i.css("display")!="none";var k=o.css("display")!="none";var d=i.height();var l=false;var n=false;if(this.scrollableAreaSize.height>this.getHeight()){q=true}if(this.scrollableAreaSize.width>this.getWidth()){e=true}if(this.scrollableAreaSize.height<=this.getHeight()&&this.scrollableAreaSize.width<=this.getWidth()){q=false;e=false}if(q){e=e||(this.scrollableAreaSize.width>this.getWidth()-d)}if(e){q=q||(this.scrollableAreaSize.height>this.getHeight()-d)}if(q){if(!k){l=true}o[0].style.display="block";var c=this.getHeight()-(e?d+5:0);if(c<0){c=0}this.setElementPosition(o[0],this.getWidth()-d-4,0);this.setElementSize(o[0],d,c);o.jqxScrollBar("min",0);var j=this.scrollableAreaSize.height-(this.getHeight()-(e?d:0))+4;if(j!=o.jqxScrollBar("max")){o.jqxScrollBar("max",j)}if(this.VerticalScrollBarSmallChange!=undefined){o.jqxScrollBar("step",this.VerticalScrollBarSmallChange)}else{o.jqxScrollBar("step",10)}var m=this.scrollableAreaSize.height/10;if(m<10){m=10}if(this.VerticalScrollBarLargeChange!=undefined){m=verticalScrollBarLargeChange}if(o.jqxScrollBar("largestep")!=m){o.jqxScrollBar("largestep",m)}if(o.jqxScrollBar("largestep")<o.jqxScrollBar("step")){o.jqxScrollBar("largestep",o.jqxScrollBar("step"))}if(this.rtl){}else{}}else{if(k){l=true}o.jqxScrollBar("value",0);o[0].style.display="none"}if(e){if(g){n=true}i[0].style.display="block";var p=this.getWidth()-(q?d+5:0);if(p<0||p==undefined){p=0}this.setElementPosition(i[0],0,this.getHeight()-d-4);this.setElementSize(i[0],p,d);if(i.jqxScrollBar("min")!=0){i.jqxScrollBar("min",0)}var f=this.scrollableAreaSize.width-(this.getWidth()-(q?d:0))+4;if(i.jqxScrollBar("max")!=f){i.jqxScrollBar("max",f)}if(this.HorizontalScrollBarSmallChange!=undefined){i.jqxScrollBar("step",this.HorizontalScrollBarSmallChange)}else{i.jqxScrollBar("step",10)}var b=(this.getWidth()/2);if(b<25){b=25}if(this.HorizontalScrollBarLargeChange!=undefined){b=this.HorizontalScrollBarSmallChange}i.jqxScrollBar("largestep",b);if(i.jqxScrollBar("largestep")<i.jqxScrollBar("largestep")){i.jqxScrollBar("largestep",i.jqxScrollBar("step"))}}else{if(g){n=true}i.jqxScrollBar("value",0);i[0].style.display="none"}e=e&&this.scrollBarsEnabled;q=q&&this.scrollBarsEnabled;if(e!=(i[0].display=="block")){i[0].display=e?"block":"none";n=true}if(q!=(o[0].display=="block")){o[0].display=q?"block":"none";l=true}this._scrollBarPositions={vertical:{visible:q,rect:{x:o.position().left,y:o.position().top,width:o.width(),height:o.height()}},horizontal:{visible:e,rect:{x:i.position().left,y:i.position().top,width:i.width(),height:i.height()}}};i.jqxScrollBar("refresh");o.jqxScrollBar("refresh")},isPtInRect:function(b,c){return(b.x>=c.x&&b.x<=c.x+c.width&&b.y>=c.y&&b.y<=c.y+c.height)},onMouseLeftButtonUp:function(c){var k=this;for(var l in k._scrollBarPositions){if(this._scrollBarPositions[l].visible&&this.isPtInRect(k._currentPosition,k._scrollBarPositions[l].rect)){if(k._isMouseCaptured()){k._releaseMouseCapture()}k._isMouseLeftButtonDown=false;return}}if(k._isMouseCaptured()){k._releaseMouseCapture();return}if(k._itemMenuButtonMouseOver||k._isContextMenuOpen){return}k.canDrag=false;var g=a.jqx.position(c);var e=k.isPtInRect({x:g.left,y:g.top},k._rect);var d=k._pivotCells._hitTest(k._currentPosition);if(d&&e){var i=k._raisePivotCellMouseEvent(d.pivotRow,d.pivotColumn,"pivotcellmouseup","left");if(i){return}}if(k._colResizeState=="RESIZING"){k._colResizeState="NO_RESIZE";k._updateCursor("ARROW");k._pivotColumns._renderRequired=true;k._pivotRows._renderRequired=true;var m={x:k.resizingItem.x+k.resizingItem.hierarchy.x-k._offsetX,y:k.resizingItem.y+k.resizingItem.hierarchy.y-k._offsetY};if(this.isHorizontalResize){k.resizingItem.setWidth(Math.max(k.resizingItem.minimumWidth,Math.abs(k._currentPosition.x-m.x)))}else{k.resizingItem.setHeight(Math.max(k.resizingItem.minimumHeight,Math.abs(k._currentPosition.y-m.y)))}a("body").find("#"+k._resizeLineId).hide();k.resizingItem=null;if(k.resizeTooltipEnabled){}k._isMouseLeftButtonDown=false;k._internalRefresh();return}var f={isOnItemButton:false};var j=k._itemHitTest(k._currentPosition,f);if(j!=null){if(f.isOnItemButton||f.isOnMenuButton){return}}var b=false;if(k._canDrop(j)){k._endDrag(j);b=true}else{if(k.dragElement&&k.dragElement.style.display=="block"){k._endDrag(draggingItem);b=true}}if(b){k._isMouseLeftButtonDown=false;k._internalRefresh();return}k._isMouseLeftButtonDown=false;if(e&&k.activeEditor.Editor==null){k._updateSelection()}},onMouseLeftButtonDown:function(g){for(var i in this._scrollBarPositions){if(this._scrollBarPositions[i].visible&&this.isPtInRect(this._currentPosition,this._scrollBarPositions[i].rect)){this._captureMouse();return}}var d={isOnItemButton:false};var f=this._itemHitTest(this._currentPosition,d);this._timeLastDown=new Date();var c=false;if(!this.isShiftPressed){this._selectStartPosition={x:this._currentPosition.x,y:this._currentPosition.y}}if(this._itemMenuButtonMouseOver||this._isContextMenuOpen){return}this._isMouseLeftButtonDown=true;if(this._colResizeState=="READY_RESIZE"){this._colResizeState="RESIZING";this._updateCursor(this.isHorizontalResize?"COLUMN_RESIZE":"ROW_RESIZE");this._refreshMouseCursor();return}else{if(this._colResizeState=="RESIZING"){return}}if(null!=f){if(d.isOnItemButton){if(this._lastToggle&&this._lastToggle.item==f&&(new Date()-this._lastToggle.time)<500){return}this._isMouseLeftButtonDown=false;if(f.isExpanded){f.collapse()}else{f.expand()}this._lastToggle={time:new Date(),item:f};this._internalRefresh();return}this.canDrag=true;if(d.isOnItemButton){this._updateCursor("ARROW")}else{this._updateCursor("CROSS")}if(f.isColumn){this._internalSelectMode="COL_SELECT"}else{this._internalSelectMode="ROW_SELECT"}}else{this._internalSelectMode="CELLS_SELECT"}var b=this._pivotCells._hitTest(this._currentPosition);if(b){var e=this._raisePivotCellMouseEvent(b.pivotRow,b.pivotColumn,"pivotcellmousedown","left");if(e){return}}if(this.activeEditor.Editor==null){this._updateSelection()}this._refreshMouseCursor()},onMouseRightButtonDown:function(e){this._timeLastDown=new Date();var c={isOnItemButton:false};var d=this._itemHitTest(this._currentPosition,c);if(d!=null){this._raisePivotItemMouseEvent(d,"pivotitemmousedown","right");return}var b=this._pivotCells._hitTest(this._currentPosition);if(b){this._raisePivotCellMouseEvent(b.pivotRow,b.pivotColumn,"pivotcellmousedown","right")}},onMouseRightButtonUp:function(d){var c=this;var f=a.jqx.position(d);var e=c.isPtInRect({x:f.left,y:f.top},c._rect);var b=this._pivotCells._hitTest(this._currentPosition);if(b&&e){this._raisePivotCellMouseEvent(b.pivotRow,b.pivotColumn,"pivotcellmouseup","right")}this._timeLastUp=new Date()},_itemMouseMove:function(b,g){if(this.resizingItem){if(this.isHorizontalResize){this._updateCursor("COLUMN_RESIZE")}else{this._updateCursor("ROW_RESIZE")}return}if(this._menuElement._itemMouseOver!=g){this._hideItemMenuElement()}this._updateCursor("CROSS");var j={x:g.x,y:g.y,width:g.getDisplayWidth(),height:g.getDisplayHeight()};if(g.isColumn){j.x+=g.hierarchy.x-this._offsetX}else{j.y+=g.hierarchy.y-this._offsetY}if(g.IsRowsHierarchyItem&&_pivotRows.compactStyleRenderingEnabled){j.height=g.height}j.right=j.x+j.width;j.bottom=j.y+j.height;if(Math.abs(j.right-b.x)<=4&&b.y>=j.y&&b.y<=j.bottom){this.isHorizontalResize=true;if(g.hierarchy.resizable&&!this._pivotColumns.isGroupingColumn(g)){this._updateCursor("COLUMN_RESIZE");this.resizingItem=(g.isColumn)?g._getLastVisibleLeaf(g):g;if(!this.resizingItem.isColumn&&!this.resizingItem.isExpanded){var d=this._pivotRows._getVisibleLeafLevelItems();for(var c in d){var e=d[c];if(e.ItemLevel>this.resizingItem.ItemLevel){this.resizingItem=e}}}this._colResizeState="READY_RESIZE"}return}if(!g.isColumn&&Math.abs(j.bottom-b.y)<=3){this.isHorizontalResize=false;if(!(g.IsRowsHierarchyItem&&this._pivotRows.compactStyleRenderingEnabled)){g=g._getLastVisibleLeaf(g)}if(g.hierarchy.resizable){this._updateCursor("ROW_RESIZE");this.resizingItem=g;this._colResizeState="READY_RESIZE"}return}var f=g.hierarchy.getOtherHierarchy();if(g.hierarchy.sortable&&f.items.length>0){this._hitTestShowItemMenuElement(b,g,j)}},isInHierarchyViewPort:function(b,c){if(c.isColumnsHierarchy){return(this.isPtInRect({x:b.x+this._offsetX,y:b.y},c.viewPort))}else{return(this.isPtInRect({x:b.x,y:b.y+this._offsetY},c.viewPort))}},_hitTestShowItemMenuElement:function(b,f,g){if(this._menuElement&&this._menuElement._itemMouseOver&&this._menuElement._itemMouseOver._element){a(this._menuElement._itemMouseOver._element).find("#sortElement").show()}this._menuElement.style.display="none";if(this._isContextMenuOpen||f.valueItems.length>0||!(b.x<g.right&&b.x>g.x&&b.y>=g.y&&b.y<=g.bottom)){return}var d=a.extend({},this._rect);d.x=d.y=0;if(this.vScroll[0].display=="block"){d.width-=this.vScroll.width()}if(this.hScroll[0].display=="block"){d.height-=this.hScroll.height()}var e={x:this._currentPosition.x,y:this._currentPosition.y};e.x-=f.hierarchy.x-(f.hierarchy.viewPort.x-f.hierarchy.x);e.y-=f.hierarchy.y-(f.hierarchy.viewPort.y-f.hierarchy.y);menuRect={x:f.x+g.width-18,y:f.y+(g.height-16)/2+1,width:16,height:16};this._menuElement.style.height=menuRect.height+"px";this._menuElement.className=this.toThemeProperty("jqx-pivotgrid-menu-button");if(f.isColumn){menuRect.x+=f.hierarchy.x-this._offsetX}else{menuRect.y+=f.hierarchy.y-this._offsetY}this.setElementPosition(this._menuElement,menuRect.x,menuRect.y);if(this.isPtInRect({x:menuRect.x,y:menuRect.y},d)&&this.isPtInRect({x:menuRect.x,y:menuRect.y+menuRect.height},d)&&this.isPtInRect({x:menuRect.x+menuRect.width,y:menuRect.y},d)&&this.isPtInRect({x:menuRect.x+menuRect.width,y:menuRect.y+menuRect.height},d)){this._menuElement.style.display="block";this._menuElement._itemMouseOver=f;a(this._menuElement._itemMouseOver._element).find("#sortElement").hide();if(!f._currentCustomContent){var c=a(f._element).css("background-color");this._menuElement.style["background-color"]=c}if(f.isColumn){menuRect.x+=this._offsetX-f.hierarchy.x}else{menuRect.y+=this._offsetY-f.hierarchy.y}if(this.isPtInRect({x:e.x,y:e.y},menuRect)){this._itemMenuButtonMouseOver=true}}},_hideItemMenuElement:function(){if(this._menuElement&&!this._isContextMenuOpen&&this._menuElement.style.display=="block"){this._menuElement.style.display="none";a(this._menuElement._itemMouseOver._element).find("#sortElement").show()}},_hideItemContextMenu:function(){this._contextMenu.jqxMenu("close");this._hideItemMenuElement()},_showItemContextMenu:function(){var f=this._menuElement._itemMouseOver;if(!f){return}var e=this._contextMenu.width();var c=this._contextMenu.height();this._contextMenu.find("#sortasc")[0]["className"]="jqx-pivotgrid-sortasc-icon "+this.toThemeProperty("jqx-pivotgrid-sortasc-icon");this._contextMenu.find("#sortdesc")[0]["className"]="jqx-pivotgrid-sortdesc-icon "+this.toThemeProperty("jqx-pivotgrid-sortdesc-icon");this._contextMenu.find("#sortremove")[0]["className"]="jqx-pivotgrid-sortremove-icon "+this.toThemeProperty("jqx-pivotgrid-sortremove-icon");var d=-e+f.displayWidth+f.x+(f.hierarchy.viewPort.x-this._offsetX)-this._offsetX;if(!f.isColumn){d=f.x+f.displayWidth}var b=f.y+f.getDisplayHeight();if(!f.isColumn){b=f.y-this._offsetY+f.hierarchy.y}if(d<=1){d=1}if(b<this._pivotColumns.y+this._pivotColumns.getHeight()){b=this._pivotColumns.y+this._pivotColumns.getHeight()}if(b+c>this._rect.height){b=this._rect.height-c}this._contextMenu.jqxMenu("open",d+this._rect.x,b+this._rect.y);this._contextMenu.focus()},_handleMouseMove:function(d){if(this._colResizeState=="RESIZING"){this._doResize({x:this._currentPosition.x,y:this._currentPosition.y});this._refreshMouseCursor();return}else{this._colResizeState="NO_RESIZE";this.resizingItem=null}var k=this._currentPosition;var j=null;if(this.isInHierarchyViewPort({x:k.x,y:k.y},this._pivotColumns)){j=this._pivotColumns.hitTest(k)}var c=null;if(this.isInHierarchyViewPort({x:k.x,y:k.y},this._pivotRows)){c=this._pivotRows.hitTest(k)}this._itemMenuButtonMouseOver=false;if(j!=null||c!=null){var i=j==null?c:j;this.gridCellMouseOver=null;this._itemMouseMove(k,i);if(this._focusedItem!=i){this._focusedItem=i;if(this._isMouseLeftButtonDown){this._updateSelection()}}var f={};if(this.CellsHighlightOnHierarchyItemMoveEnabled&&((i.IsRowsHierarchyItem&&(this.CellsHighlightMode=="CELLS_HIGHLIGHT_ROW"))||(i.isColumn&&(this.CellsHighlightMode=="CELLS_HIGHLIGHT_COLUMN")))){if(i.isColumn){f={x:i.x,y:0,width:i.DisplayWidth,height:this._pivotRows.getHeight()}}else{f={x:0,y:i.y,width:this._pivotColumns.getWidth(),height:i.getDisplayHeight()}}if((i.isColumn&&this.isGroupingEnabled&&this.groupingColumns.length>0)||(i.IsRowsHierarchyItem&&this._pivotRows.isOnRowDetails(this._currentPosition,i))){f={x:0,y:0,width:0,height:0}}}this._refreshMouseCursor();return}else{this._hideItemMenuElement()}var b=this.gridCellMouseOver!=null;this.resizingItem=null;this._focusedItem=null;this._colResizeState="NO_RESIZE";this._updateCursor("ARROW");var g=null;if(this.gridCellMouseOver){g={};g.pivotColumn=this.gridCellMouseOver.pivotColumn;g.pivotRow=this.gridCellMouseOver.pivotRow}var e=this._pivotCells._hitTest(k);if(this._isMouseLeftButtonDown&&e){if(this.gridCellMouseOver==null||this.gridCellMouseOver.pivotRow!=c||this.gridCellMouseOver.pivotColumn!=j){this.gridCellMouseOver={pivotRow:e.pivotRow,pivotColumn:e.pivotColumn,pivotCells:this._pivotCells}}var f={x:0,y:0,width:0,height:0};if(this.cellsHighlightMode=="CELLS_HIGHLIGHT_COLUMN"){f={x:this.gridCellMouseOver.pivotColumn.x,y:0,width:this.gridCellMouseOver.pivotColumn.getDisplayWidth(),height:this._pivotRows.getHeight()}}else{if(this.cellsHighlightMode=="CELLS_HIGHLIGHT_ROW"){f={x:0,y:this.gridCellMouseOver.pivotRow.y,width:this._pivotColumns.getWidth(),height:this.gridCellMouseOver.pivotRow.getDisplayHeight()}}else{if(this.cellsHighlightMode=="CELLS_HIGHLIGHT_SINGLE_CELL"){f={x:this.gridCellMouseOver.pivotColumn.x,y:this.gridCellMouseOver.pivotRow.y,width:this._pivotColumns.getWidth(),height:this.gridCellMouseOver.pivotRow.getDisplayHeight()};if(this.isGroupingEnabled&&this.groupingColumns.length>0){if(this.gridCellMouseOver.pivotRow.items.length>0){f={x:0,y:0,width:0,height:0}}}if(this.gridCellMouseOver.pivotRow.RowDetailsVisible){f.height-=this.gridCellMouseOver.pivotRow.GetRowDetailsHeight()}}}}if(this._pivotColumns.isGroupingColumn(this.gridCellMouseOver.pivotColumn)||this._pivotRows.isOnRowDetails(this._currentPosition,this.gridCellMouseOver.pivotRow)){f={x:0,y:0,width:0,height:0}}}else{this.gridCellMouseOver=null}if(this.gridCellMouseOver!=null&&(this.gridCellMouseOver!=g||g.pivotRow!=this.gridCellMouseOver.pivotRow||g.pivotColumn!=this.gridCellMouseOver.pivotColumn)){if(this._isMouseLeftButtonDown&&!this._itemMenuButtonMouseOver){this._updateSelection();this._internalRefresh()}}},_handleMouseClick:function(f){var c={isOnItemButton:false};var g=this._itemHitTest(this._currentPosition,c);if(g!=null){var d=this._raisePivotItemMouseEvent(g,"pivotitemclick",(f.button==0)?"left":"right");if(d){f.cancel=true;return}if(this._itemMenuButtonMouseOver||this._isContextMenuOpen){return}if(this._isMouseLeftButtonDown&&!c.isOnItemButton&&g.sortMode=="Automatic"&&g.valueItems.length==0){var e=this.cursor;this.cursor="Wait";this.cursor=e}}else{var b=this._pivotCells._hitTest(this._currentPosition);if(b){var d=this._raisePivotCellMouseEvent(b.pivotRow,b.pivotColumn,"pivotcellclick",(f.button==0)?"left":"right");if(d){f.cancel=true;return}}}},_handleMouseDoubleClick:function(g){if(this.activeEditor.Editor!=null){var d=null;if(false==this.hideEditor("MOUSE_DBLCLICK",d,true)){return}}if(this._itemMenuButtonMouseOver||this._isContextMenuOpen){return}var c={isOnItemButton:false};var f=this._itemHitTest(this._currentPosition,c);if(f!=null){if(c.isOnMenuButton){return}var e=this._raisePivotItemMouseEvent(f,"pivotitemdblclick",(g.button==0)?"left":"right");if(e){return}if(this._lastToggle&&this._lastToggle.item==f&&(new Date()-this._lastToggle.time)<500){return}if(g.button==0){if(f.isExpanded){f.collapse()}else{f.expand()}f.hierarchy.selectItem(f);this._internalRefresh()}this._lastToggle={time:new Date(),item:f}}else{var b=this._pivotCells._hitTest(this._currentPosition);if(b){var e=this._raisePivotCellMouseEvent(b.pivotRow,b.pivotColumn,"pivotcelldblclick",(g.button==0)?"left":"right");if(e){return}}}this._refreshMouseCursor()},_isMouseCaptured:function(){return this._captured===true},_releaseMouseCapture:function(){this._captured=false},_captureMouse:function(){this._captured=true},_updateCursor:function(b){if(b=="ARROW"){this.element.style.cursor="default"}else{if(b=="CROSS"){this.element.style.cursor="pointer"}else{if(b=="COLUMN_RESIZE"){this.element.style.cursor="col-resize"}else{if(b=="ROW_RESIZE"){this.element.style.cursor="row-resize"}}}}},_refreshMouseCursor:function(){},_ensureEditorFocus:function(){},focus:function(){},_itemHitTest:function(b,c){c.isOnItemButton=false;var g=null;if(!this._pivotRows.isHidden&&this.isInHierarchyViewPort(b,this._pivotRows)){g=this._pivotRows.hitTest(b)}if(g==null&&!this._pivotColumns.isHidden&&this.isInHierarchyViewPort(b,this._pivotColumns)){g=this._pivotColumns.hitTest(b)}if(g!=null){var f={x:this._currentPosition.x,y:this._currentPosition.y};f.x-=g.hierarchy.x-(g.hierarchy.viewPort.x-g.hierarchy.x);f.y-=g.hierarchy.y-(g.hierarchy.viewPort.y-g.hierarchy.y);if(g.items.length!=0&&g.expandCollapseEnabled!=false&&g.hierarchy.showExpandCollapseButtons){var e=0;if(!g.hierarchy.isColumnsHierarchy&&g.hierarchy.compactStyleRenderingEnabled){e=24*g.itemLevel}if(f.x>g.x+9+e&&f.x<g.x+20+e&&f.y>g.y+9&&f.y<g.y+20){c.isOnItemButton=true}}var i={x:g.x,y:g.y,width:g.getDisplayWidth(),height:g.getDisplayHeight()};var d={x:g.x+i.width-16,y:g.y,width:16,height:i.height};if(this.isPtInRect(f,d)&&g.hierarchy.sortable){c.isOnMenuButton=true}}return g},_raisePivotCellMouseEvent:function(g,f,b,c){var e=new a.Event(b);e.owner=this;e.args={pivotRow:g,pivotColumn:f,mousebutton:c,cancel:false};var d=this.host;d.trigger(e);if(e.args.cancel){return true}return false},_raisePivotItemMouseEvent:function(d,b,c){var f=new a.Event(b);f.owner=this;f.args={pivotItem:d,mousebutton:c,cancel:false};var e=this.host;e.trigger(f);if(f.args.cancel){return true}return false},_beginDrag:function(b){},_endDrag:function(b){},_canDrop:function(b){},_doResize:function(b){if(!(this.resizingItem!=null&&this.resizingItem.hierarchy.resizable)){return}if(this._pivotColumns.isGroupingColumn(this.resizingItem)){return}if(this.isHorizontalResize){this._updateCursor("COLUMN_RESIZE")}else{this._updateCursor("ROW_RESIZE")}this._focusedItem=this.resizingItem;var j={x:this.resizingItem.x+2*this.resizingItem.hierarchy.x-this.resizingItem.hierarchy.viewPort.x,y:this.resizingItem.y+2*this.resizingItem.hierarchy.y-this.resizingItem.hierarchy.viewPort.y};var g=false;var e=this.resizingItem.hierarchy;var d=a("body").find("#"+this._resizeLineId);if(this.isHorizontalResize){var i=b.x-j.x;if(i<this.resizingItem.minimumWidth){return}var f={x:b.x+this._rect.x,y:this._pivotRows.y+this._rect.y};d.css({"border-right":"1px dotted #555","border-bottom":"",width:"1px",height:this._pivotCells.viewPort.height,top:f.y,left:f.x,display:"block"});if(i>=this.resizingItem.minimumWidth&&i<=this.resizingItem.maximumWidth){if(this.resizeTooltipEnabled){this._resizeTooltip.Content="width: "+i+" pixels"}g=true}}else{var c=b.y-j.y;if(c<this.resizingItem.minimumHeight){return}var f={x:this._pivotColumns.x+this._rect.x,y:b.y+this._rect.y};d.css({"border-bottom":"1px dotted #555","border-right":"",height:"1px",width:this._pivotCells.viewPort.width,left:f.x,top:f.y,display:"block",zIndex:50000});if(c>=this.resizingItem.minimumHeight&&c<=this.resizingItem.maximumHeight){if(this.resizeTooltipEnabled){this._resizeTooltip.Content="height: "+c+" pixels"}g=true}}if(g){if(this.resizeTooltipEnabled){if(this._resizeTooltip.visibility!=visibility.visible){this._resizeTooltip.visibility=visibility.visible}_resizeTooltip.setValue(Canvas.LeftProperty,b.x);_resizeTooltip.setValue(Canvas.TopProperty,b.y);_resizeTooltip.setValue(Canvas.ZIndexProperty,10002)}}},_internalClearSelection:function(){this._pivotColumns._internalClearSelection();this._pivotRows._internalClearSelection();this._pivotCells._internalClearSelection()},_beginSelectionUpdate:function(){if(this._isCTRLPressed&&this.multipleSelectionEnabled){return}this._pivotCells._beginSelectionUpdate();this._pivotColumns._beginSelectionUpdate();this._pivotRows._beginSelectionUpdate()},_endSelectionUpdate:function(){this._pivotColumns._endSelectionUpdate();this._pivotRows._endSelectionUpdate();this._pivotCells._endSelectionUpdate()},_updateSelection:function(){if(!this.selectionEnabled){return}this._colItemRangeSelectionBeg=null;this._rowItemRangeSelectionBeg=null;this._beginSelectionUpdate();var m=false;if(!this._isCTRLPressed||false==this.multipleSelectionEnabled){this._internalClearSelection();m=true}if(this.activeEditor.Editor!=null){this._internalClearSelection();this._endSelectionUpdate();return}var k=-1;var u=-1;var g={x:this._selectStartPosition.x,y:this._selectStartPosition.y};g.y-=this._offsetY;g.x-=this._offsetX;var q={isOnItemButton:false};var j=this._itemHitTest(this._selectStartPosition,q);if(j!=null){if(!(!j.isColumn&&this._pivotRows.compactStyleRenderingEnabled)){j=j._getFirstVisibleLeaf(j)}if(j.isColumn){if(this.selectionMode=="FULL_ROW_SELECT"){this._internalSelectMode="NO_SELECT";this._endSelectionUpdate();return}else{this._internalSelectMode="COL_SELECT"}this._colItemRangeSelectionBeg=j}else{if(this.selectionMode=="FULL_COLUMN_SELECT"){this._internalSelectMode="NO_SELECT";this._endSelectionUpdate();this._internalRefresh();return}else{this._internalSelectMode="ROW_SELECT"}this._rowItemRangeSelectionBeg=j}}else{var i=this._pivotCells._hitTest(this._selectStartPosition);if(i){this._internalSelectMode="CELLS_SELECT";if(this.selectionMode=="FULL_ROW_SELECT"){this._internalSelectMode="ROW_SELECT"}else{if(this._SelectionMode=="FULL_COLUMN_SELECT"){this._internalSelectMode="COL_SELECT"}}}else{this._internalSelectMode="NO_SELECT";this._endSelectionUpdate();this._internalRefresh();return}}var b={x:this._currentPosition.x,y:this._currentPosition.y};if(this._internalSelectMode=="COL_SELECT"){if(b.y>=this._pivotColumns.y+this._pivotColumns.getHeight()){b.y=this._pivotColumns.y+this._pivotColumns.getHeight()-1}if(b.y<=this._pivotColumns.y){b.y=this._selectStartPosition.y}if(b.x<=this._pivotColumns.x){b.x=this._pivotColumns.x+1}if(b.x>=this._pivotColumns.x+this._pivotColumns.getWidth()){b.x=this._pivotColumns.x+this._pivotColumns.getWidth()-1}}else{if(this._internalSelectMode=="ROW_SELECT"){if(b.y>=this._pivotRows.y+this._pivotRows.getHeight()){b.y=this._pivotRows.y+this._pivotRows.getHeight()-1}if(b.y<=this._pivotRows.y){b.y=this._pivotRows.y+1}if(b.x<=this._pivotRows.x){b.x=this._pivotRows.x+this._pivotRows.getWidth()-1}if(b.x>=this._pivotRows.x+this._pivotRows.getWidth()){b.x=this._pivotRows.x+this._pivotRows.getWidth()-1}}else{if(this._internalSelectMode=="CELLS_SELECT"){if(b.x<this._pivotColumns.x){b.x=this._pivotColumns.x+1}if(b.y<this._pivotRows.y){b.y=this._pivotRows.y+1}}}}this._colItemRangeSelectionEnd=null;this._rowItemRangeSelectionEnd=null;var f=-1;var p=-1;if(this._internalSelectMode=="COL_SELECT"||this._internalSelectMode=="ROW_SELECT"){if(j!=null){var i={};var d=this._itemHitTest(b,i);if(null==d){this._endSelectionUpdate();return}if(!(!d.isColumn&&this._pivotRows.compactStyleRenderingEnabled)){d=d._getLastVisibleLeaf(d)}if(d.isColumn){this._colItemRangeSelectionEnd=d}else{this._rowItemRangeSelectionEnd=d}}else{this._pivotCells.hitTest(b,i);if(i!=null){this._colItemRangeSelectionEnd=i.pivotColumn;this._rowItemRangeSelectionEnd=i.pivotRow}else{this._colItemRangeSelectionEnd=null;this._rowItemRangeSelectionEnd=null}}}if(this._internalSelectMode=="CELLS_SELECT"){var i=this._pivotCells._hitTest(this._selectStartPosition);this._colItemRangeSelectionBeg=i.pivotColumn;this._rowItemRangeSelectionBeg=i.pivotRow;if(!i){this._endSelectionUpdate();this._internalRefresh();return}if(g.x!=b.x||g.y!=b.y){this._pivotCells.hitTest(b,i);this._colItemRangeSelectionEnd=i.pivotColumn;this._rowItemRangeSelectionEnd=i.pivotRow}if(!i.pivotRow||!i.pivotColumn){this._internalSelectMode="CELLS_SELECT";this._pivotCells._internalSelectCell(this._rowItemRangeSelectionBeg,this._colItemRangeSelectionBeg);this._cellKBRangeSelectionStart=this._cellKBRangeSelectionEnd={pivotRow:this._rowItemRangeSelectionBeg,pivotColumn:this._colItemRangeSelectionBeg,pivotCells:this._pivotCells};this._endSelectionUpdate();this._internalRefresh();return}}this._saveSelectedItemsRangeOrder();this._adjustSelectedItemsOrder(m);if(this._internalSelectMode=="CELLS_SELECT"){var v=this._pivotRows._getVisibleLeafLevelItems();var o=this._pivotColumns._getVisibleLeafLevelItems();var u=this._pivotRows._pointToLeafItemIndexAbsolute(this._selectStartPosition);var p=this._pivotRows._pointToLeafItemIndexAbsolute(b);var k=this._pivotColumns._pointToLeafItemIndexAbsolute(this._selectStartPosition);var f=this._pivotColumns._pointToLeafItemIndexAbsolute(b);if((k==-1&&f==-1)||(u==-1&&p==-1)){this._endSelectionUpdate();this._internalRefresh();return}if(k==-1){k=f}if(f==-1){f=k}if(u==-1){u=p}if(p==-1){p=u}if(f<k){var t=k;k=f;f=t}if(p<u){var t=u;u=p;p=t}for(var n=u;n<=p&&n<v.length;n++){var e=v[n];for(var s=k;s<=f&&s<o.length;s++){var l=o[s];this._pivotCells._internalSelectCell(e,l)}}this._cellKBRangeSelectionStart={pivotRow:this._rowItemRangeSelectionBeg,pivotColumn:this._colItemRangeSelectionBeg,pivotCells:this._pivotCells};this._cellKBRangeSelectionEnd={pivotRow:this._rowItemRangeSelectionEnd,pivotColumn:this._colItemRangeSelectionEnd,pivotCells:this._pivotCells};this._endSelectionUpdate();this._internalRefresh();return}this._restoreSelectedItemsRangeOrder();this._applyItemsMultiSelect(m);this._endSelectionUpdate();this._internalRefresh()},_saveSelectedItemsRangeOrder:function(){this._adjSelectedItemsSave.colBeg=this._colItemRangeSelectionBeg;this._adjSelectedItemsSave.colEnd=this._colItemRangeSelectionEnd;this._adjSelectedItemsSave.rowBeg=this._rowItemRangeSelectionBeg;this._adjSelectedItemsSave.rowEnd=this._rowItemRangeSelectionEnd},_restoreSelectedItemsRangeOrder:function(){this._colItemRangeSelectionBeg=this._adjSelectedItemsSave.colBeg;this._colItemRangeSelectionEnd=this._adjSelectedItemsSave.colEnd;this._rowItemRangeSelectionBeg=this._adjSelectedItemsSave.rowBeg;this._rowItemRangeSelectionEnd=this._adjSelectedItemsSave.rowEnd},_adjustSelectedItemsOrder:function(c){if(this._colItemRangeSelectionBeg!=null&&this._colItemRangeSelectionEnd!=null&&this._colItemRangeSelectionBeg.x>this._colItemRangeSelectionEnd.x){var b=this._colItemRangeSelectionBeg;this._colItemRangeSelectionBeg=this._colItemRangeSelectionEnd;this._colItemRangeSelectionEnd=b}if(this._rowItemRangeSelectionBeg!=null&&this._rowItemRangeSelectionEnd!=null&&this._rowItemRangeSelectionBeg.y>this._rowItemRangeSelectionEnd.y){var b=this._rowItemRangeSelectionBeg;this._rowItemRangeSelectionBeg=this._rowItemRangeSelectionEnd;this._rowItemRangeSelectionEnd=b}if((false==this.multipleSelectionEnabled&&!c)||this._rowItemRangeSelectionEnd==null){this._rowItemRangeSelectionEnd=this._rowItemRangeSelectionBeg}if((false==this.multipleSelectionEnabled&&!c)||this._colItemRangeSelectionEnd==null){this._colItemRangeSelectionEnd=this._colItemRangeSelectionBeg}},_applyItemsMultiSelect:function(k){this._saveSelectedItemsRangeOrder();this._adjustSelectedItemsOrder(k);for(var e=0;e<2;e++){if(this._internalSelectMode=="COL_SELECT"&&e!=0){continue}if(this._internalSelectMode=="ROW_SELECT"&&e!=1){continue}var l=e==0?this._colItemRangeSelectionBeg:this._rowItemRangeSelectionBeg;var c=e==0?this._colItemRangeSelectionEnd:this._rowItemRangeSelectionEnd;var f=(e==0)?this._pivotColumns:this._pivotRows;var g=f._getVisibleLeafLevelItems();if(g==null){this._internalRefresh();this._restoreSelectedItemsRangeOrder();return}var b=false;for(var d in g){var m=g[d];if(m!=l&&!b){continue}if(m.getWidthWithChildren()+m.x>this._mostRightItemBounds.x+this._mostRightItemBounds.width){this._mostRightItemBounds={x:m.x,y:m.y,width:m.getWidthWithChildren(),height:m.getHeightWithChildren()}}if(m.getWidthWithChildren()+m.x<this._mostLeftItemBounds.x+this._mostLeftItemBounds.width){this._mostLeftItemBounds={x:m.x,y:m.y,width:m.getWidthWithChildren(),height:m.getHeightWithChildren()}}b=true;f._internalSelectItem(m);if(m==c){break}}if(f.isColumnsHierarchy||!f.compactStyleRenderingEnabled){f._applySelectionToParentItems()}}this._restoreSelectedItemsRangeOrder()},localizeStrings:function(g,e){var b=this;if(a.jqx.dataFormat){a.jqx.dataFormat.cleardatescache()}b._localizedStrings={decimalseparator:".",thousandsseparator:",",sortascendingstring:"Sort Ascending",sortdescendingstring:"Sort Descending",sortremovestring:"Remove Sort",alignment:"Text alignment",cellalignment:"Number alignment",numberformat:"Number format",prefix:"Number prefix",decimalplacestext:"Decimal places",thousandsseparatortext:"Thousands separator",decimalseparatortext:"Decimal separator",nagativebracketstext:"Nagatives in brackets",fieldsettings:"Field settings",ok:"Ok",cancel:"Cancel"};var c=a.extend({},g);b._localizedStrings=a.extend(b._localizedStrings,c);for(var f in c){if(f&&f.toLowerCase()!==f){c[f.toLowerCase()]=c[f]}}for(var d in b._localizedStrings){if(c[d]!==undefined){b._localizedStrings[d]=c[d]}}},})})(jqxBaseFramework);$.jqx.jqxPivotGrid=$.jqx.jqxPivotGrid||{};$.jqx.define($.jqx.jqxPivotGrid,"propertyBag","");$.extend($.jqx.jqxPivotGrid.propertyBag.prototype,{defineInstance:function(){this.namedPropertyTables={};this._tableSizes={};this.enablePropertyChangeNotifications=false},getPropertyTable:function(a){if(undefined==this.namedPropertyTables[a]){this.namedPropertyTables[a]={};this._tableSizes[a]=0}return this.namedPropertyTables[a]},getPropertyCount:function(a){var b=this.getPropertyTable(a);if(null==b){return 0}return this._tableSizes[a]},getPropertyValue:function(a,b){var c=this.getPropertyTable(a);if(null==c){return null}if(c[b]!=undefined){return c[b]}return null},containsPropertyValue:function(a,b){var c=this.getPropertyTable(a);if(null==c){return false}return c[b]!=undefined},removePropertyValue:function(a,b){var c=this.getPropertyTable(a);if(null==c){return}delete c[b];this._tableSizes[a]--},setPropertyValue:function(a,b,c){var d=this.getPropertyTable(a);if(null==d){return}if(c==null||c==undefined){if(d[b]){this._tableSizes[a]--;delete d[b]}}else{if(!d[b]){this._tableSizes[a]++}d[b]=c}if(this.enablePropertyChangeNotifications){this.onPropertyChanged(a)}},clear:function(a){if(a==""||a==null||a==undefined){this.namedPropertyTables={};return}var b=this.getPropertyTable(a);b={};this._tableSizes[a]=0},onPropertyChanged:function(a){$.event.trigger("propertychanged",a)}});(function(a){a.jqx.jqxPivotGrid=a.jqx.jqxPivotGrid||{};a.jqx.define(a.jqx.jqxPivotGrid,"pivotCells","");a.extend(a.jqx.jqxPivotGrid.pivotCells.prototype,{defineInstance:function(){this.parentPivotGrid=null;this.IsDataBoundPivotCellsEditable=false;this.cellProperties=new a.jqx.jqxPivotGrid.propertyBag();this.hashCellAutoSize={};this.hashCellInSpan={};this.hashCellSpan={};this._selectedCells=new Object()},hitTest:function(c){var d=this._hitTest(c);if(!d){return undefined}var b={pivotRow:d.pivotRow,pivotColumn:d.pivotColumn,pivotCells:this};return b},_hitTest:function(b){var c={};c.pivotColumn=this.parentPivotGrid._pivotColumns._pointToLeafItemAbsolute(b);c.pivotRow=this.parentPivotGrid._pivotRows._pointToLeafItemAbsolute(b);if(this.parentPivotGrid._pivotColumns.isGroupingColumn(c.pivotColumn)){return undefined}if(c.pivotColumn==null||c.pivotRow==null){return undefined}return c},clear:function(){this._reset()},_reset:function(){this.cellProperties.clear();this._selectedCells=new Object();this.hashCellAutoSize={};this.hashCellInSpan={};this.hashCellSpan={};this._clearElementsAndCellsCache()},_resetCanvas:function(){var b=a.jqx.get(this,"renderCanvas");if(!b){return}while(b.hasChildNodes()){b.removeChild(b.firstChild)}},_clearElementsAndCellsCache:function(){this._clearCellsCache()},setCellValue:function(k,g,f){if(k==null||g==null){return}var d=this.parentPivotGrid.getCellId(g,k);var b=this.getCellDataSource(k,g);var c=k.BoundFieldIndex!=-1&&g.BoundFieldIndex!=-1;var j=false;if(dsType=="DataBound"&&c){j=this.parentPivotGrid.OnCellValueChanging(k,g,f);if(j){return}try{this.parentPivotGrid.setCellValueFromDataSourceNonPivot(k,g,f)}catch(i){return}this.cellProperties.setPropertyValue("CellValue",d,null);this.parentPivotGrid.OnCellValueChanged(k,g);return}else{if(dsType=="DataBoundPivot"){if(!this.IsDataBoundPivotCellsEditable){throw"The cell's value is derived from the data source and aggregated. It is not editable in this mode. Use the SetCellDataSource method to change the cell's data source first"}else{return}}}var j=this.parentPivotGrid.OnCellValueChanging(k,g,f);if(j){return}this.SetCellDataSource(k,g,"Static");this.cellProperties.setPropertyValue("CellValue",d,f);this.onPropertyChanged("CellValue");this.parentPivotGrid.OnCellValueChanged(k,g)},_clearCellsCache:function(){this.cellProperties.clear("CellValue")},_clearCachedCell:function(d,c){var b=this.parentPivotGrid.getCellId(c,d);if(this.cellProperties.containsPropertyValue("CellValue",b)){this.cellProperties.removePropertyValue("CellValue",b)}},drillThroughCell:function(c,b){if(!c||c.isColumn){throw"Invalid pivotRow parameter"}if(!b||!b.isColumn){throw"Invalid pivotColumn parameter"}return this.parentPivotGrid.source.drillThroughPivotCell(c.adapterItem,b.adapterItem)},getCellValue:function(i,f){var d=null;if(this.parentPivotGrid._pivotColumns.isGroupingColumn(f)){return null}var c=this.parentPivotGrid.getCellId(f,i);var b=this.getCellDataSource(i,f);if(i.isTotal||f.isTotal){b="Virtual"}switch(b){case"Virtual":d=this.parentPivotGrid.onCellValueNeeded(i,f);this.cellProperties.setDirty(c);if(d==null&&this.parentPivotGrid.bindingState=="BoundPivot"&&(i.isTotal||f.isTotal)){d=this.parentPivotGrid.getCellValueFromDataSource(i,f)}break;case"DataBoundPivot":d=this.cellProperties.getPropertyValue("CellValue",c);if(d==null){d=this.parentPivotGrid.source.getCellValue(i.adapterItem,f.adapterItem);if(this.cellProperties.getPropertyCount("CellValue")<4000000){this.cellProperties.setPropertyValue("CellValue",c,d)}}break;case"DataBound":d=this.cellProperties.getPropertyValue("CellValue",c);if(d==null){try{d=this.parentPivotGrid.getCellValueFromDataSourceNonPivot(i,f)}catch(g){return null}if(this.cellProperties.getPropertyCount("CellValue")<4000000){this.cellProperties.setPropertyValue("CellValue",c,d)}}break;case"NotSet":case"Static":default:d=this.cellProperties.getPropertyValue("CellValue",c);break}return d},setCellDataSource:function(e,c,b){if(e==null||c==null){return}var d=this.parentPivotGrid.getCellId(c,e);this.cellProperties.setPropertyValue("cellDataSource",d,b)},getCellDataSource:function(e,b){var d=this.parentPivotGrid.getCellId(b,e);var c=this.cellProperties.getPropertyValue("cellDataSource",d);if(null==c){c=b.cellDataSource}if(c==null||c=="NotSet"){c=e.cellDataSource}if(c!=null&&c!="NotSet"){return c}if(this.parentPivotGrid.UseVirtualCellsByDefault){return"Virtual"}if(this.parentPivotGrid.bindingState=="DataBound"||this.parentPivotGrid.bindingState=="DataBoundPivot"){return this.parentPivotGrid.bindingState}return"NotSet"},render:function(){var m=this.renderCanvas;if(!m){return}var x=this.parentPivotGrid;x.setElementPosition(m,-this.parentPivotGrid._offsetX,-this.parentPivotGrid._offsetY);var d=x._pivotRows;var A=x._pivotColumns;if(!this._refreshRequired&&(!d._isVirtualMode&&!A._isVirtualMode)){return}var o=d._getLeafItemsToRender();var g=A._getLeafItemsToRender();this._cellElements=this._cellElements||{};var e=new Array();var q=new Date();var s={first:d._isVirtualMode?o.first:0,last:d._isVirtualMode?o.last:o.items.length-1};var u={first:A._isVirtualMode?g.first:0,last:A._isVirtualMode?g.last:g.items.length-1};for(var y=s.last;y>=s.first;y--){for(var G=u.last;G>=u.first;G--){if(y==-1||G==-1){continue}var n=o.items[y];var l=g.items[G];var I=x.getCellId(l,n);var p=l.getDisplayWidth()-1;var F=n.getDisplayHeight()-1;var f=this.isCellSelected(n,l);var z=this._cellElements[I];var k=undefined;if(z&&z.isSelected==f){k=z.element}var v={left:4,top:4,right:4,bottom:4};var B=this.getCellValue(n,l);var j="";if(!k){k=x.createDiv(m,j,p,F);k.cellId=I;this._cellElements[I]={element:k,isSelected:f};x.setElementSize(k,p,F);var D="right";if(x.cellsRenderer&&a.isFunction(x.cellsRenderer)){j=x.cellsRenderer({value:B.value,formattedValue:B.formattedValue,isSelected:f,pivotRow:n,pivotColumn:l});v={left:0,top:0,right:0,bottom:0}}else{j=(B!==undefined&&B.formattedValue!==undefined)?B.formattedValue.toString():"";var C=this.parentPivotGrid.source.getCellFormatSettings(n.adapterItem,l.adapterItem);if(C){D=C.align||"right"}}this.parentPivotGrid.setDivContent(k,j,v,D);k.originalY=k.style.top;k.className=this.parentPivotGrid.toThemeProperty("jqx-grid-cell-normal")}else{if(k.style.width!=p+"px"||k.style.height!=F+"px"){this.parentPivotGrid.setElementSize(k,p,F)}}k.tRender=q;if(k.style.display!="block"){k.style.display="block"}if(k.style.left!=l.x+"px"||k.style.top!=n.y+"px"){this.parentPivotGrid.setElementPosition(k,l.x,n.y)}var b="cellsClassName";if(this.isCellSelected(n,l)){k.className=this.parentPivotGrid.toThemeProperty("jqx-grid-cell-selected jqx-fill-state-hover jqx-widget-content");b="cellsClassNameSelected"}else{k.className=this.parentPivotGrid.toThemeProperty("jqx-grid-cell-normal jqx-widget-content")}var H=a.jqx.getByPriority([n[b],(n.adapterItem&&n.adapterItem.boundField)?n.adapterItem.boundField[b]:undefined,l[b],(l.adapterItem&&l.adapterItem.boundField)?l.adapterItem.boundField[b]:undefined]);if(H){k.className+=" "+H}k.className+=" jqx-pivotgrid-content-wrapper"}}for(var E=0;E<m.childNodes.length;E++){if(m.childNodes[E].cellId&&m.childNodes[E].tRender!=q){e.push(m.childNodes[E])}}while(true){var k=e.pop();if(!k){break}else{delete this._cellElements[k.cellId];k.style.display="none";m.removeChild(k)}}this._refreshRequired=false},_beginSelectionUpdate:function(){for(var b in this._selectedCells){this._selectedCells[b].OldIsSelected=this._selectedCells[b].isSelected}},_endSelectionUpdate:function(){var d=new Array();for(var b in this._selectedCells){var c=this._selectedCells[b];if(!c.isSelected){d.push(b)}if(c.isSelected!=c.OldIsSelected){}}if(d.length>0){for(var b in d){delete this._selectedCells[d[b]]}}},_internalClearSelection:function(){for(var b in this._selectedCells){this._internalUnselectCell(this._selectedCells[b].pivotRow,this._selectedCells[b].pivotColumn)}},clearSelection:function(){this._beginSelectionUpdate();this._internalClearSelection();this._endSelectionUpdate();this.render()},selectCell:function(c,b){if(!this.parentPivotGrid.selectionEnabled){return}this._beginSelectionUpdate();this._internalSelectCell(c,b);this.parentPivotGrid._cellKBRangeSelectionStart={pivotRow:c,pivotColumn:b,pivotCells:this};this.parentPivotGrid._cellKBRangeSelectionEnd={pivotRow:c,pivotColumn:b,pivotCells:this};this._endSelectionUpdate()},_internalSelectCell:function(d,c){if(c!=null&&this.parentPivotGrid._pivotColumns.isGroupingColumn(c)){return}if(this.parentPivotGrid._internalSelectMode=="NO_SELECT"){switch(this.parentPivotGrid.selectionMode){case"CELL_SELECT":this.parentPivotGrid._internalSelectMode="CELLS_SELECT";break;case"FULL_COLUMN_SELECT":this.parentPivotGrid._internalSelectMode="COL_SELECT";break;case"FULL_ROW_SELECT":this.parentPivotGrid._internalSelectMode="ROW_SELECT";break}}var b=this.parentPivotGrid.getCellId(c,d);delete this._cellElements[b];if(this._selectedCells[b]==undefined){this._selectedCells[b]={pivotRow:d,pivotColumn:c,isSelected:true}}else{this._selectedCells[b].isSelected=true}this._refreshRequired=true},unselectCell:function(c,b){this._beginSelectionUpdate();this._internalUnselectCell(c,b);this._endSelectionUpdate()},_internalUnselectCell:function(d,c){var b=this.parentPivotGrid.getCellId(c,d);if(this._selectedCells[b]!=undefined){this._selectedCells[b].isSelected=false}delete this._cellElements[b];this._refreshRequired=true},isCellSelected:function(d,c){var b=this.parentPivotGrid.getCellId(c,d);if(c.isSelected||d.isSelected){return true}return this._selectedCells[b]!=undefined&&this._selectedCells[b].isSelected},getSelectedCellsCount:function(){return this._selectedCells.length},getSelectedCells:function(){var d=new Array();for(var c in this._selectedCells){var b=this._selectedCells[c];if(b.isSelected){d.push({pivotRow:b.pivotRow,pivotColumn:b.pivotColumn,pivotCells:this})}}return d},getNextCell:function(c,b){var e={};switch(b){case"left":e={x:c.pivotColumn.x-1,y:c.pivotRow.y+1};break;case"right":e={x:c.pivotColumn.x+c.pivotColumn.getWidth()+1,y:c.pivotRow.y+1};break;case"top":e={x:c.pivotColumn.x+1,y:c.pivotRow.y-1};break;case"bottom":e={x:c.pivotColumn.x+1,y:c.pivotRow.y+c.pivotRow.getHeight()+1};break}var f={x:e.x+2*this.parentPivotGrid._pivotColumns.x-this.parentPivotGrid._pivotColumns.viewPort.x,y:e.y+2*this.parentPivotGrid._pivotRows.y-this.parentPivotGrid._pivotRows.viewPort.y};var d=this._hitTest(f);if(!d){return undefined}return d}})})(jqxBaseFramework);(function(a){a.jqx.jqxPivotGrid=a.jqx.jqxPivotGrid||{};a.jqx.jqxPivotGrid.pivotItem=function(c,b){this.text="Item";this.isExpanded=false;this.expandCollapseEnabled=true;this.isHidden=false;this.isFiltered=false;this.isSelected=false;this._height=26;this._width=18;this.isDirty=true;this.parentItem=c||null;this.hierarchy=b||c.hierarchy;this.parentPivotGrid=this.hierarchy.parentPivotGrid;this.id=this.parentPivotGrid.genId();this.itemLevel=0;this.itemColumn=0;this._itemOrdinal=NaN;this.x=0;this.y=0;this.hierarchyItemWidth=70;this.hierarchyItemHeight=26;this.widthWithChildrenCached=0;this.minimumWidth=18;this.maximumWidth=10000000;this.minimumHeight=8;this.maximumHeight=Infinity;this.items=new Array();this.valueItems=new Array()};a.extend(a.jqx.jqxPivotGrid.pivotItem.prototype,{_getChildItemsToRender:function(d){for(var b=0;b<this.items.length;b++){var c=this.items[b];if(c.isHidden||c.isFiltered){continue}d.push(c);if(c.isExpanded){c._getChildItemsToRender(d)}}},_calculateWidthWithChildren:function(){if(this.isHidden){this.widthWithChildrenCached=0;return}var d=(!this.isColumn&&this.hierarchy.compactStyleRenderingEnabled);if(d){this.widthWithChildrenCached=this.hierarchy.getColumnWidth(0);return}this.widthWithChildrenCached=this.getWidth();if(this.items!=null&&this.valueItems!=null){if(this.getVisibleItemsCount()>0||(!this.isColumn&&!d)){var c=0;if(!this.isColumn){var b=this.hierarchy.getMaxVisibleLevelDepth();for(var e=this.itemLevel;e<=b;e++){c+=this.hierarchy.getColumnWidth(e)}}else{c=0;if(this.isExpanded){for(var e=0;e<this.items.length;e++){if((this.items[e]).isHidden){continue}c+=this.items[e].getWidthWithChildren()}}for(var e=0;e<this.valueItems.length;e++){if(this.valueItems[e].isHidden){continue}c+=this.valueItems[e].getWidthWithChildren()}}this.widthWithChildrenCached=c;return}}this.widthWithChildrenCached=this.getWidth();return},getWidthWithChildren:function(){if(this.hierarchy._renderRequired){this._calculateWidthWithChildren()}return this.widthWithChildrenCached},getDisplayWidth:function(){if(!this.isDirty&&!this.hierarchy._renderRequired){return displayWidth}var b=this.hasVisibleValueItems();if(this.isColumn){this.displayWidth=(this.isExpanded||b)?this.getWidthWithChildren():this.getWidth()}else{this.displayWidth=(!this.hierarchy.isColumnsHierarchy&&this.hierarchy.compactStyleRenderingEnabled)?this.getWidthWithChildren():this.getWidth();if(!this.isExpanded&&!b){this.displayWidth=this.hierarchy.getWidth()-this.x}}if(this.displayWidth<18){this.displayWidth=18}return this.displayWidth},getWidth:function(){if(this.isHidden||this.isFiltered){return 0}if(null==this.hierarchy){return 0}var d=this.itemColumn;if(!this.hierarchy.isColumnsHierarchy&&this.hierarchy.compactStyleRenderingEnabled){d=0}var c=this.minimumWidth;if(!this.isColumn){c=this.hierarchy.getColumnWidth(d)}else{c=this.hierarchyItemWidth;if(this.parentItem){var b=this.parentItem.getWidth();if(b>c&&b>this.parentItem.widthWithChildrenCached){}}}return c},_measureElement:function(f){var c=a("<span style='visibility: hidden; white-space: nowrap;'>"+f+"</span>");a(document.body).append(c);var d=this.hierarchy.sortable?16:0;var e=4;var b={width:c.width()+d+2*e,height:c.height()+2*e};c.remove();return b},autoResize:function(b){if(!b){b="fitItemContent"}if(this.isColumn){this.setWidth(this.minimumWidth)}else{this.setHeight(this.minimumHeight)}if(b=="default"||b=="fitAll"||b=="fitItemContent"){this._autoResizeBestItemContent(b)}if(b=="default"||b=="fitAll"||b=="fitItemContent"){if(this.isColumn&&this.parentItem!=null&&this.getWidth()<this.parentItem.getWidth()){this.setWidth(this.parentItem.getWidth())}}},_autoResizeBestItemContent:function(b){this._updateVisibleChildItemsCount();sz=this._measureElement(this.text);if(b=="default"&&this.adapterItem.boundField){if(!isNaN(this.adapterItem.boundField.width)){sz.width=this.adapterItem.boundField.width}if(!isNaN(this.adapterItem.boundField.height)){sz.height=this.adapterItem.boundField.height}}if(this.itemColumn>=this.hierarchy._getColumnsCount()){this.hierarchy._updateColumnsCount()}if(this._visibleChildItemsCount>0){sz.width+=30}if(this.getWidth()<sz.width||(b=="default"&&this.adapterItem.boundField&&!isNaN(this.adapterItem.boundField.width))){this.setWidth(sz.width)}if(!this.isColumn){if(this.getHeight()<sz.height){this.setHeight(sz.height)}}else{var d=this.parentPivotGrid._pivotColumns.getHeight();if(d<sz.height){this.parentPivotGrid._pivotColumns.setRowHeight(this,sz.height)}}for(var c in this.items){this.items[c]._autoResizeBestItemContent(b)}for(var c in this.valueItems){this.valueItems[c]._autoResizeBestItemContent(b)}if(this.hierarchy!=null){this.hierarchy._renderRequired=true}},_autoResizeBestCellFit:function(d){if(this.hierarchy!=null&&this.hierarchy._renderRequired){this.hierarchy.render()}if(this.hierarchy!=null&&this.hierarchy.ColumnsCountRequresUpdate){this.hierarchy._updateColumnsCount()}if(this.items.length==0&&this.valueItems.length==0){if(this.hierarchy!=null&&this.parentPivotGrid!=null&&this.parentPivotGrid._pivotCells!=null&&this.parentPivotGrid._pivotRows!=null&&this.parentPivotGrid._pivotColumns!=null){var c={width:1,height:1};var e=this.isColumn?this.parentPivotGrid._pivotRows:this.parentPivotGrid._pivotColumns;var g=this._getVisibleLeafLevelItems();for(var f in g){var j=!(g[f].isColumn)?g[f]:this;var b=g[f].isColumn?g[f]:this;var i={width:10,height:10};if(c.width<i.width){c.width=i.width}if(c.height<i.height){c.height=i.height}}if(this.width<c.width){this.setWidth(c.width)}if(!this.isColumn&&this.getHeight()<c.height){this.setHeight(c.height)}}}else{for(var f in this.items){this.items[f]._autoResizeBestCellFit(d)}for(var f in this.valueItems){this.valueItems[f]._autoResizeBestCellFit(d)}}if(hierarchyHost!=null){hierarchyHost._renderRequired=true}},setWidth:function(c){if(c<0){throw new Exception("Invalid pivotItem Width value. The value must greater than 0")}if(null==this.hierarchy){return}var b=this.itemColumn;if(!this.hierarchy.isColumnsHierarchy&&this.hierarchy.compactStyleRenderingEnabled){b=0}if(this.hierarchy._getColumnsCount()<b){this.hierarchy._updateColumnsCount()}if(c<this.minimumWidth){c=this.minimumWidth}if(c>this.maximumWidth){c=this.maximumWidth}if(this.isColumn){this.hierarchyItemWidth=c}else{this.hierarchy.setColumnWidth(b,c)}this.hierarchy._renderRequired=true},getHeight:function(){if(this.isHidden||this.isFiltered){return 0}return this.hierarchyItemHeight},setHeight:function(b){if(b<0||b>10000){throw new Exception("Invalid pivotItem Height value. The value must be between 0 and 10000")}if(b<this.minimumHeight){b=this.minimumHeight}if(b>this.maximumHeight){b=this.maximumHeight}this.hierarchyItemHeight=b;if(this.hierarchy!=null){this.hierarchy._renderRequired=true}},_calculateHeightWithChildren:function(){if(this.isHidden||this.isFiltered){this.heightWithChildren=0;return}var c=(!this.isColumn&&this.hierarchy.compactStyleRenderingEnabled);if(this.isExpanded||this.hasVisibleValueItems()){var b=0;if(this.isColumn){b=this.hierarchyItemHeight;h=0;if(this.isExpanded){for(var d=0;d<this.items.length;d++){var e=this.items[d].getHeightWithChildren();if(h<e){h=e}}}for(var d=0;d<this.valueItems.length;d++){var e=this.valueItems[d].getHeightWithChildren();if(h<e){h=e}}if(h>0){b+=h}}else{b=c?this.getHeight():0;if(this.isExpanded){for(var d=0;d<this.items.length;d++){if(this.items[d].isHidden||this.items[d].isFiltered){continue}b+=this.items[d].getHeightWithChildren()}}for(var d=0;d<this.valueItems.length;d++){if(this.valueItems[d].isHidden||this.valueItems[d].isFiltered){continue}b+=this.valueItems[d].getHeightWithChildren()}}this.heightWithChildren=b}else{this.heightWithChildren=this.hierarchyItemHeight}if(this.IsRowDetailsVisible){this.heightWithChildren+=this.RowDetailsHeight}return},getHeightWithChildren:function(){if(this.hierarchy._renderRequired||this.isDirty){this._calculateHeightWithChildren()}return this.heightWithChildren},getDisplayHeight:function(){var c=this.hasVisibleValueItems();var b=0;if(this.isColumn){b=(this.isExpanded||c)?this.getTotalHeight():this.hierarchy.getHeight()-this.y}else{if(this.hierarchy.compactStyleRenderingEnabled){b=this.getHeight();if(this.IsRowDetailsVisible){b+=this.RowDetailsHeight}}else{b=this.getHeightWithChildren()}}if(b<this.minimumHeight){b=this.minimumHeight}return b},getTotalHeight:function(){if(this.isHidden||this.isFiltered){return 0}return this.hierarchyItemHeight+((this.IsRowDetailsVisible)?this.RowDetailsHeight:0)},ensureVisible:function(){var c=this;if(c.isVisible()){return}var e=c.hierarchy.parentPivotGrid.host;if(c.isColumn){var b=e.find("#divHScroll");if(c.x+c.getWidth()>c.hierarchy.viewPort.width){b.val(c.x+c.getWidth()-c.hierarchy.viewPort.width)}else{b.val(c.x)}}else{var d=e.find("#divVScroll");if(c.y+c.getHeight()>c.hierarchy.viewPort.height){d.val(c.y+c.getHeight()-c.hierarchy.viewPort.height)}else{d.val(c.y)}}},isVisible:function(){if(this.isHidden){return false}if(this.y<this.hierarchy.viewPort.y-this.hierarchy.y||this.y+this.getDisplayHeight()>this.hierarchy.viewPort.y-this.hierarchy.y+this.hierarchy.viewPort.height||this.x<this.hierarchy.viewPort.x-this.hierarchy.x||this.x+this.getDisplayWidth()>this.hierarchy.viewPort.x-this.hierarchy.x+this.hierarchy.viewPort.width){return false}return true},_updateVisibleChildItemsCount:function(){var c=0;for(var b=0;b<this.items.length;b++){if(this.items[b].isHidden||this.items[b].isFiltered){continue}c++}this._visibleChildItemsCount=c},render:function(j,g){this._updateVisibleChildItemsCount();var l=-1;var b=-1;if(this.isHidden||this.isFiltered){return true}this.x=j;this.y=g;var c=(!this.isColumn&&this.hierarchy.compactStyleRenderingEnabled);var d=c?this.getTotalHeight():0;if(this.isExpanded){for(var e=0;e<this.items.length;e++){var k=this.items[e];if(k.isHidden||k.isFiltered){continue}if(!this.isColumn){var f=j;f+=c?0:this.getWidth();if(!k.render(f,this.y+d)){break}d+=k.getHeightWithChildren()}else{if(!k.render(this.x+d,g+this.getTotalHeight())){break}d+=k.getWidthWithChildren()}}}for(var e=0;e<this.valueItems.length;e++){var k=this.valueItems[e];if(k.isHidden||k.isFiltered){continue}if(!this.isColumn){var f=j;f+=c?0:this.getWidth();if(!k.render(f,this.y+d)){break}d+=k.getHeightWithChildren()}else{if(!k.render(this.x+d,g+this.getTotalHeight())){break}d+=k.getWidthWithChildren()}}this._calculateWidthWithChildren();this._calculateHeightWithChildren();return true},_getChildItemsDepth:function(){var d=0;for(var c=0;c<this.items.length;c++){var b=this.items[c]._getChildItemsDepth();if(b>d){d=b}}for(var c=0;c<this.valueItems.length;c++){var b=this.valueItems[c]._getChildItemsDepth();if(b>d){d=b}}return d+1},getTotalItemsCount:function(){var c=0;if(this.items.length==0&&this.valueItems.length==0){c=1}else{for(var b=0;b<this.items.length;b++){c+=this.items[b].getTotalItemsCount()}for(var b=0;b<this.valueItems.length;b++){c+=this.valueItems[b].getTotalItemsCount()}}return c},hasVisibleValueItems:function(){for(var b=0;b<this.valueItems.length;b++){var c=this.valueItems[b];if(false==c.isHidden&&false==c.isFiltered){return true}}return false},getVisibleItemsCount:function(){if(this.isHidden||this.isFiltered){return 0}var c=0;if((!this.isExpanded||this.items.length==0)&&this.valueItems.length==0){return c}else{c=0;for(var b=0;b<this.items.length;b++){if(!this.items[b].isHidden&&!this.items[b].isFiltered){c++}}for(var b=0;b<this.valueItems.length;b++){if(!this.valueItems[b].isHidden&&!this.valueItems[b].isFiltered){c++}}}return c},hitTest:function(b){if(this.isHidden||this.isFiltered){return null}var d=this.getDisplayHeight()+1;var c=this.getDisplayWidth()+1;if(b.x>=this.x&&b.x<=this.x+c&&b.y>=this.y&&b.y<=this.y+d){return this}return null},_expandInternal:function(b,f,g){if(this.items.length==0){return}if(!this.expandCollapseEnabled){return}if(this.isExpanded==b){return}var e=new a.Event(this.isExpanded?"pivotitemcollapsing":"pivotitemexpanding");e.owner=this.hierarchy.parentPivotGrid;e.args={pivotItem:this};e.cancel=false;var d=this.hierarchy.parentPivotGrid.host;d.trigger(e);if(e.cancel){return}this.isExpanded=b;if(this.items.length==0&&this.valueItems.length==0){return}if(g){for(var c=0;c<this.items.length;c++){this.items[c]._expandInternal(b,f,g)}for(var c=0;c<this.valueItems.length;c++){this.valueItems[c]._expandInternal(b,f,g)}}this.hierarchy._renderRequired=true;if(f){this.hierarchy._updateVisibleLeaves()}var e=new a.Event(this.isExpanded?"pivotitemexpanded":"pivotitemcollapsed");e.owner=this.hierarchy.parentPivotGrid;e.args={pivotItem:this};d.trigger(e)},expand:function(){this._expandInternal(true,true,false)},collapse:function(){this._expandInternal(false,true,false)},_getFirstVisibleLeaf:function(c){if(c.isExpanded){var d=false;for(var b=0;b<c.items.length;b++){if(c.items[b].isHidden==false&&c.items[b].isFiltered==false){c=c.items[b];c=this._getFirstVisibleLeaf(c);d=true;break}}if(d){return c}}if(c.hasVisibleValueItems){var d=false;for(var b=0;b<c.valueItems.length;b++){if(c.valueItems[b].isHidden==false&&c.valueItems[b].isFiltered==false){c=c.valueItems[b];c=this._getFirstVisibleLeaf(c);d=true;break}}if(d){return c}}return c},_getLastVisibleLeaf:function(c){var d=false;for(var b=c.valueItems.length-1;b>=0;b--){if(c.valueItems[b].isHidden==false&&c.valueItems[b].isFiltered==false){c=c.valueItems[b];c=this._getLastVisibleLeaf(c);d=true;break}}if(d){return c}for(var b=c.items.length-1;b>=0&&c.isExpanded;b--){if(c.items[b].isHidden==false&&c.items[b].isFiltered==false){c=c.items[b];c=this._getLastVisibleLeaf(c);break}}return c}});a.jqx.jqxPivotGrid.hierarchy=function(){this.parentPivotGrid=arguments[0];this._initDefaults()};a.extend(a.jqx.jqxPivotGrid.hierarchy.prototype,{_initDefaults:function(){this.columnWidths=new Array();this.rowHeights=new Array();this.items=new Array();this.valueItems=new Array();this.visibleLeafItems=new Array();this.viewPort=new Object();this.viewPort.x=0;this.viewPort.y=0;this.viewPort.width=10000;this.viewPort.height=10000;this.isFixed=false;this.isHidden=false;this.resizable=true;this.sortable=true;this._renderRequired=true;this.maxVisibleLevelDepth=-1;this.showExpandCollapseButtons=true;this.x=0;this.y=0;this._width=0;this._height=0;this.minColumnWidth=18;this._isColumnsCountRequresUpdate=true;this._selectedItems=new Object();this.virtualModeThreshold=5000;this._isVirtualMode=true},isVisible:function(){return !this.isHidden},toggle:function(){if(this.isHidden){this.show()}else{this.hide()}},getOtherHierarchy:function(){return(this.isColumnsHierarchy)?this.parentPivotGrid._pivotRows:this.parentPivotGrid._pivotColumns},show:function(){this.isHidden=false;this._renderRequired=true;this.getOtherHierarchy()._renderRequired=true},hide:function(){this.isHidden=true;this._renderRequired=true;this.getOtherHierarchy()._renderRequired=true},refresh:function(){var j=this.parentPivotGrid;var b=j.toThemeProperty("jqx-widget-content jqx-fill-state-pressed jqx-widget-header");var r=j.toThemeProperty("jqx-widget-content jqx-fill-state-normal jqx-widget-header");var k=a.jqx.get(this,"renderCanvas");var p=this._renderRequired||this._refreshRequired;if(!p){return}if(this._renderRequired){this.render()}if(this.isHidden){return}var d=new Array();var s=new Date();var x=this._getItemsToRender();if(!x){return}for(var A=0;A<x.length;A++){var F=x[A];var q=F.getDisplayWidth()-1;var B=F.getDisplayHeight()-1;var v=F._element;if(a.isFunction(j.itemsRenderer)){var n=j.itemsRenderer(F);if(v&&F._currentCustomContent!=n){k.removeChild(v);v=F._element=null}F._currentCustomContent=n}if(!v){var u={left:4,top:4,right:4,bottom:4};if(!this.isColumnsHierarchy&&this.compactStyleRenderingEnabled){u.left+=F.itemLevel*this.compactStyleRenderingItemsIndent}var I=F.text;var m="left";if(a.isFunction(j.itemsRenderer)){I=F._currentCustomContent;u={left:0,top:0,right:0,bottom:0}}else{var g="";if(F.items.length!=0&&F.hierarchy.showExpandCollapseButtons){if(F.isExpanded){g="<div style='position: relative; top: 3px; padding: 5px; width: 11px; height: 11px;' class='jqx-pivotgrid-collapse-button'></div>"}else{g="<div style='position: relative; top: 3px; padding: 5px; width: 11px; height: 11px;' class='jqx-pivotgrid-expand-button'></div>"}}var G="";if(F.hierarchy._sortItem==F){var z=F.hierarchy._sortOrder=="desc"?"sortdesc jqx-grid-column-sortdescbutton "+this.parentPivotGrid.toThemeProperty("jqx-icon-arrow-down"):"sortasc jqx-grid-column-sortascbutton "+this.parentPivotGrid.toThemeProperty("jqx-icon-arrow-up");G="<div id='sortElement' class='"+z+"' style='position: relative; float: right; padding-right: 8px; width: 16px; height: 100%;'></div>"}var y=F.text;if(F.adapterItem.boundField){m=F.adapterItem.boundField.align||"left"}m=m.toString().toLowerCase();if(m!="center"&&m!="right"){m="left"}if(G!=""){var l=0;var o=24;if(g!=""){l=23;o+=l}I=g+"<div><div style='left: "+l+"px; top: 0; position: absolute; height: 100%; width: calc(100% - "+o+"px); text-overflow: ellipsis; overflow: hidden;  white-space: nowrap;padding-left:"+u.left+"px; padding-top:"+u.top+"px; '>"+y+"</div><div style='left: 0; top: 0; position: absolute; height: 100%; width: 100%;'>"+G+"</div></div>"}else{I=g+y+G}}v=j.createDiv(k,"",q,B);j.setDivContent(v,I,u,m,true);var J=this.parentPivotGrid.getChild(v,"innerDiv");J.className="jqx-pivotgrid-item";j.setElementPosition(v,F.x,F.y);v.originalY=v.style.top}F.tRender=s;var f=F.isSelected?b:r;var c=F.isSelected?"classNameSelected":"className";var H=a.jqx.getByPriority([F[c],(F.adapterItem&&F.adapterItem.boundField)?F.adapterItem.boundField[c]:undefined,this.hierarchy?this.hierarchy[c]:undefined]);if(H){f+=" "+H}f+=" jqx-pivotgrid-content-wrapper";if(f!=v.className){v.className=f}v.style.display="block";v.item=F;F._element=v}for(var A=0;A<k.childNodes.length;A++){if(k.childNodes[A].item&&k.childNodes[A].item.tRender!=s){d.push(k.childNodes[A])}}var E=100;while(true){var e=d.pop();if(!e){break}else{if(k.childNodes.length>E){e.item._element=undefined;k.removeChild(e)}else{e.item._element.style.display="none"}}}var C=!this.isColumnsHierarchy?-j._offsetY:0;var D=this.isColumnsHierarchy?-j._offsetX:0;j.setElementPosition(k,D,C);this._refreshRequired=false},clear:function(){this._initDefaults();this._resetCanvas();this.items=[];this.valueItems=[];this._renderRequired=true},_resetCanvas:function(){var b=a.jqx.get(this,"renderCanvas");if(!b){return}while(b.hasChildNodes()){b.firstChild.item._element=undefined;b.removeChild(b.firstChild)}},autoResize:function(b){for(var c=0;c<this.items.length;c++){this.items[c].autoResize(b)}for(var c=0;c<this.valueItems.length;c++){this.valueItems[c].autoResize(b)}},getMaxVisibleLevelDepth:function(){if(this.maxVisibleLevelDepth==-1||this._renderRequired){var c=this._getVisibleLeafLevelItems();this.maxVisibleLevelDepth=0;for(var b=0;b<c.length;b++){if(c[b].itemLevel>this.maxVisibleLevelDepth){this.maxVisibleLevelDepth=c[b].itemLevel}}}return this.maxVisibleLevelDepth},getHierarchyDepth:function(){var d=0;for(var c=0;c<this.items.length;c++){var b=this.items[c]._getChildItemsDepth();if(b>d){d=b}}for(var c=0;c<this.valueItems.length;c++){var b=this.valueItems[c]._getChildItemsDepth();if(b>d){d=b}}return d},getSortItem:function(){return this._sortItem},getSortOrder:function(){return this._sortOrder},_fnAscSortComparer:function(c,b){var i=c.hierarchy.parentPivotGrid;var e=c.isColumn?i._pivotRows:i._pivotColumns;var j=e._sortItem;if(!j){return 0}if(c.adapterItem&&c.adapterItem.isTotal){return 1}if(b.adapterItem&&b.adapterItem.isTotal){return -1}var g=i._pivotCells;var f=c.isColumn?g.getCellValue(j,c):g.getCellValue(c,j);var d=b.isColumn?g.getCellValue(j,b):g.getCellValue(b,j);return f.value-d.value},_fnDescSortComparer:function(c,b){if(c.adapterItem&&c.adapterItem.isTotal){return 1}if(b.adapterItem&&b.adapterItem.isTotal){return -1}return -1*a.jqx.jqxPivotGrid.hierarchy.prototype._fnAscSortComparer(c,b)},_collectionSort:function(f,c,b){if(!this.parentPivotGrid||!this.parentPivotGrid._pivotCells){return}var e=!this.isColumnsHierarchy?this.parentPivotGrid._pivotColumns:this.parentPivotGrid._pivotRows;if(!f){f=this.items}if(!c){c=e._sortOrder=="asc"?this._fnAscSortComparer:this._fnDescSortComparer}if(this._isSorted&&!b){this._collectionRemoveSort(f)}for(var d=0;d<f.length;d++){f[d]._itemOrdinal=d;this._collectionSort(f[d].items,c,true)}f=f.sort(c);if(!b){this._isSorted=true;this._renderRequired=true;e._renderRequired=true;this._updateVisibleLeaves()}},_collectionRemoveSort:function(f,c){if(!this._isSorted){return}if(!f){f=this.items}var b=new Array(f.length);for(var d=0;d<f.length;d++){b[f[d]._itemOrdinal]=f[d];this._collectionRemoveSort(f[d].items,true)}this.items=b;if(!c){this._renderRequired=true;this._updateVisibleLeaves();if(this.isColumnsHierarchy){this._isColumnsCountRequresUpdate=true}this._isSorted=false;var e=this.isColumnsHierarchy?this.parentPivotGrid._pivotRows:this.parentPivotGrid._pivotColumns;e._sortItem=undefined;e._sortOrder=undefined;e._renderRequired=true}},sortBy:function(f,c){if(!f||f.isColumn==this.isColumnsHierarchy||f.valueItems.length>0){return}var e=new a.Event("sortchanging");e.owner=this.parentPivotGrid;e.args={pivotItem:f,sortOrder:c};e.cancel=false;var d=this.parentPivotGrid.host;d.trigger(e);if(e.cancel){return}this._collectionRemoveSort(this.items);var b=f.isColumn?this.parentPivotGrid._pivotColumns:this.parentPivotGrid._pivotRows;b._sortItem=f;b._sortOrder=c;this._collectionSort();this.parentPivotGrid._internalRefresh();e=new a.Event("sortchanged");e.owner=this.parentPivotGrid;e.args={pivotItem:f,sortOrder:c};var d=this.parentPivotGrid.host;d.trigger(e)},removeSort:function(){var f=this==this.parentPivotGrid._pivotColumns?this.parentPivotGrid._pivotRows:this.parentPivotGrid._pivotColumns;var b=f._sortItem;var c=f._sortOrder;var e=new a.Event("sortremoving");e.owner=this.parentPivotGrid;e.args={pivotItem:b,sortOrder:c};e.cancel=false;var d=this.parentPivotGrid.host;d.trigger(e);if(e.cancel){return}this._collectionRemoveSort(this.items);this.parentPivotGrid._internalRefresh();e=new a.Event("sortremoved");e.owner=this.parentPivotGrid;e.args={pivotItem:b,sortOrder:c};d.trigger(e)},_binSearchItems:function(c,b){return this._binSearchItems2(c,b,0,c.length)},_binSearchItems2:function(g,j,f,k){var d=f;var e=k;if(e==d){return -1}var b=g[0].isColumn;while(d<e){var i=parseInt((d+e)/2);var c=g[i];if(b){if(c.x>j.x){e=i}else{if((i+1<e?g[i+1].x:c.x+c.getWidth())<j.x){d=i+1}else{return i}}}else{if(c.y>j.y){e=i}else{if((i+1<e?g[i+1].y:c.y+c.getTotalHeight())<j.y){d=i+1}else{return i}}}}return -1},_pointToLeafItemIndex:function(b){if(this._renderRequired){this.render()}var c={x:b.x,y:b.y};c.x+=-this.x+this.viewPort.x;c.y+=-this.y+this.viewPort.y;var d=this._getVisibleLeafLevelItems();var e=this._binSearchItems(d,c);return e},_pointToLeafItem:function(b){var c=this._getVisibleLeafLevelItems();var d=this._pointToLeafItemIndex(b);if(d==-1||d<0||d>=c.length){return null}c[d].lfIdx=d;return c[d]},_pointToLeafItemIndexAbsolute:function(c){if(this._renderRequired){this.render()}var b=this.viewPort.x-this.x;var g=this.viewPort.y-this.y;var d={x:c.x,y:c.y};d.x-=this.x-(this.viewPort.x-this.x);d.y-=this.y-(this.viewPort.y-this.y);var e=this._getVisibleLeafLevelItems();var f=this._binSearchItems(e,d);return f},_pointToLeafItemAbsolute:function(b){var c=this._getVisibleLeafLevelItems();var d=this._pointToLeafItemIndexAbsolute(b);if(d==-1||d<0||d>=c.length){return null}c[d].lfIdx=d;return c[d]},_pointInRect:function(b,c){if(b.x>=c.x&&b.x<=c.x+c.width&&b.y>=c.y&&b.y<=c.y+c.height){return true}return false},hitTest:function(c){if(this._renderRequired){this.render()}var b=this.viewPort.x-this.x;var j=this.viewPort.y-this.y;if(!this._pointInRect({x:c.x+b,y:c.y+j},this.viewPort)||this.isHidden){return null}var e={x:c.x,y:c.y};e.x-=this.x-(this.viewPort.x-this.x);e.y-=this.y-(this.viewPort.y-this.y);var f=this._getVisibleLeafLevelItems();var i=this._binSearchItems(f,e);if(i==-1){return null}else{var d=f[i];var g=d.hitTest(e);if(g!=null){return g}while(d!=null){d=d.parentItem;if(d!=null){g=d.hitTest(e);if(g!=null){return g}}}}return null},_addColumn:function(b){if(b<this.minColumnWidth){b=this.minColumnWidth}this.columnWidths.push(b);return this.columnWidths.length-1},setColumnWidth:function(c,b){if(c>=this.columnWidths.length){this._updateColumnsCount(c+1)}if(b<this.minColumnWidth){b=this.minColumnWidth}if(c<this.columnWidths.length){this.columnWidths[c]=b}this._renderRequired=true;return true},getColumnWidth:function(b){if(b>=this.columnWidths.length){return 70}return this.columnWidths[b]},_getVisibleLeaves:function(g,f,c){if(f.isHidden||f.isFiltered){return true}if(f.items.length==0&&f.valueItems.length==0){g.push(f);return true}if(c){g.push(f)}if(f.isExpanded){for(var e=0;e<f.items.length;e++){var d=f.items[e];if(d.isHidden||d.isFiltered){continue}if((f.items.length>0&&d.isExpanded)||d.hasVisibleValueItems()){this._getVisibleLeaves(g,d,c)}else{g.push(d)}}}for(var e=0;e<f.valueItems.length;e++){var b=f.valueItems[e];if(b.isHidden||b.isFiltered){continue}g.push(b)}return true},_getVisibleLeafLevelItems:function(){if(this.visibleLeafItems.length==0){this._updateVisibleLeaves()}return this.visibleLeafItems},_updateVisibleLeaves:function(){this.visibleLeafItems=new Array();if(this.items.length+this.valueItems.length==0){return}var b=!this.isColumnsHierarchy&&this.compactStyleRenderingEnabled;for(var c=0;c<this.items.length;c++){var d=this.items[c];if(d.isHidden||d.isFiltered){continue}if(d.isExpanded||d.hasVisibleValueItems()){this._getVisibleLeaves(this.visibleLeafItems,d,b)}else{this.visibleLeafItems.push(d)}}for(var c=0;c<this.valueItems.length;c++){var d=this.valueItems[c];if(d.isHidden||d.isFiltered){continue}if(d.isExpanded||d.hasVisibleValueItems()){this._getVisibleLeaves(this.visibleLeafItems,d,b)}else{this.visibleLeafItems.push(d)}}for(var c=0;c<this.visibleLeafItems.length;c++){this.visibleLeafItems[c]._lfIndex=c}this._updateItemsLevelAndColumn()},_getFirstLeafIndexToRender:function(){var b={x:this.x,y:this.y};var c={x:b.x,y:b.y};c.x-=this.x-(this.viewPort.x-this.x);c.y-=this.y-(this.viewPort.y-this.y);var d=this._binSearchItems(this._getVisibleLeafLevelItems(),c);return d},_getLastLeafIndexToRender:function(){var c={x:Math.min(this.viewPort.width,this.getWidth())-5,y:Math.min(this.viewPort.height,this.getHeight())-5};var b=this._pointToLeafItemIndex(c);return b},_getLeafItemsToRender:function(){var b={};b.items=this._getVisibleLeafLevelItems();b.first=this._getFirstLeafIndexToRender();b.last=this._getLastLeafIndexToRender();return b},_getItemsToRender:function(){var g=this._getLeafItemsToRender();var j=g.first;var e=g.last;if(j==-1||e==-1){return}var c={};for(b=j;b<=e;b++){var d=g.items[b];c[d.id]=d;while(d.parentItem!=null){d=d.parentItem;c[d.id]=d}}var f=new Array();for(var b in c){f.push(c[b])}return f},_updateItemsLevelAndColumn2:function(c,d){c.itemColumn=d;c.itemLevel=d;for(var b=0;b<c.items.length;b++){this._updateItemsLevelAndColumn2(c.items[b],d+1)}for(var b=0;b<c.valueItems.length;b++){this._updateItemsLevelAndColumn2(c.valueItems[b],d+1)}},_updateItemsLevelAndColumn:function(){for(var b=0;b<this.items.length;b++){this._updateItemsLevelAndColumn2(this.items[b],0)}for(var b=0;b<this.valueItems.length;b++){this._updateItemsLevelAndColumn2(this.valueItems[b],0)}},updateColumnsCount:function(){this.updateColumnsCount(0)},getTotalItemsCount:function(){var c=0;if(this.items.length==0&&this.valueItems.length==0){c=1}else{for(var b=0;b<this.items.length;b++){c+=this.items[b].getTotalItemsCount()}for(var b=0;b<this.valueItems.length;b++){c+=this.valueItems[b].getTotalItemsCount()}}return c},_updateColumnsCount:function(c){var f=this._getColumnsCount();var b=this.getTotalItemsCount();if(c>1024){c=1024}if(this.isColumnsHierarchy){if(c>b){b=c}}else{var e=this.getHierarchyDepth();b=c>e?desi:e}for(var d=f;d<b;d++){this._addColumn(70)}this._isColumnsCountRequresUpdate=false},_updateColumnsIndexes:function(){for(var b in this.items){this._updateItemsLevelAndColumn2(this.items[b],0)}for(var b in this.valueItems){this._updateItemsLevelAndColumn2(this.valueItems[b],0)}},_getColumnsCount:function(){return this.columnWidths.length},_getRenderedItems:function(){var b=new Array();this._getChildItemsToRender(b);return b},_getChildItemsToRender:function(d){for(var b=0;b<this.items.length;b++){var c=this.items[b];if(c.isHidden||c.isFiltered){continue}d.push(c);if(c.isExpanded){c._getChildItemsToRender(d)}}},getWidth:function(){if(this._renderRequired){this.render()}return this._width},getHeight:function(){if(this._renderRequired){this.render()}return this._height},_beginSelectionUpdate:function(){for(var b in this._selectedItems){this._selectedItems[b].OldIsSelected=this._selectedItems[b].isSelected}},_endSelectionUpdate:function(){var f=new Array();for(var b in this._selectedItems){var e=this._selectedItems[b];if(!e.isSelected){f.push(this._selectedItems[b])}if(e.isSelected!=e.OldIsSelected&&(e.parentItem==null||e.parentItem.isExpanded==true||e._isValueItem)){var d=new a.Event("pivotitemselectionchanged");d.owner=this.parentPivotGrid;d.args={pivotItem:e,selected:e.isSelected};this.parentPivotGrid.host.trigger(d)}}for(var b in f){var c=this._selectedItems[f[b].adapterItem.key];c.isSelected=c.OldIsSelected=false;delete this._selectedItems[f[b].adapterItem.key]}},selectItem:function(b){if(!this.parentPivotGrid.selectionEnabled){return}this._beginSelectionUpdate();this._internalSelectItem(b);this._endSelectionUpdate()},_internalSelectItem:function(d){if(null==d){return}if(d.isColumn!=this.isColumnsHierarchy){return}if(this.isColumnsHierarchy&&this.isGroupingColumn(d)){return}var c=d.adapterItem.key;if(this._selectedItems[c]==undefined){this._selectedItems[c]=d}d.isSelected=true;this._refreshRequired=true;this.parentPivotGrid._pivotCells._refreshRequired=true;if(!this.isColumnsHierarchy&&d.hierarchy.compactStyleRenderingEnabled){return}for(var b in d.items){this._internalSelectItem(d.items[b])}for(var b in d.valueItems){this._internalSelectItem(d.valueItems[b])}},unselectItem:function(b){this._beginSelectionUpdate();this._internalUnselectItem(b);this._endSelectionUpdate()},_internalUnselectItem:function(d){if(null==d){return}if(d.isColumn!=this.isColumnsHierarchy){return}var c=d.adapterItem.key;if(this._selectedItems[c]){this._selectedItems[c].isSelected=false;this._refreshRequired=true;this.parentPivotGrid._pivotCells._refreshRequired=true}if(!this.isColumnsHierarchy&&d.hierarchy.compactStyleRenderingEnabled){return}for(var b in d.items){this._internalUnselectItem(d.items[b])}for(var b in d.valueItems){this._internalUnselectItem(d.valueItems[b])}},_internalClearSelection:function(){for(var b in this._selectedItems){this._internalUnselectItem(this._selectedItems[b])}},clearSelection:function(){this._beginSelectionUpdate();this._internalClearSelection();this._endSelectionUpdate()},_applySelectionToParentItem:function(j){var c=j.parentItem;if(c==undefined||c==null){return}var d=j.hierarchy;var b=true;if(c.isExpanded){for(var g in c.items){var f=c.items[g];if(false==f.isSelected&&f.isHidden==false){b=false;break}}}if(b){for(var g in c.valueItems){var f=c.valueItems[g];if(false==f.isSelected&&f.isHidden==false){b=false;break}}}if(b){var e=c.adapterItem.key;if(d._selectedItems[e]==undefined){d._selectedItems[e]=c}c.isSelected=true;this._applySelectionToParentItem(c)}},_applySelectionToParentItems:function(){for(var b in this._selectedItems){this._applySelectionToParentItem(this._selectedItems[b])}},getSelectedItems:function(){var c=new Array();for(var b in this._selectedItems){if(this._selectedItems[b].isSelected){c.push(b)}}return c}});a.jqx.jqxPivotGrid.pivotRows=function(b){a.extend(this,new a.jqx.jqxPivotGrid.hierarchy);this.parentPivotGrid=b;this.isColumnsHierarchy=false;this.compactStyleRenderingEnabled=false;this.compactStyleRenderingItemsIndent=20};a.extend(a.jqx.jqxPivotGrid.pivotRows.prototype,a.jqx.jqxPivotGrid.hierarchy.prototype);a.extend(a.jqx.jqxPivotGrid.pivotRows.prototype,{setColumnWidth:function(c,b){if(c>=this.columnWidths.Count){this._updateColumnsCount(c+1)}if(this.compactStyleRenderingEnabled){c=0}if(c<this.columnWidths.length){this.columnWidths[c]=b}this._renderRequired=true;return true},updateBounds:function(){var b=0;var g=0;for(var l=0;l<2;l++){var k=(l==0)?this.items:this.valueItems;for(var e=0;e<k.length;e++){var j=k[e];if(j.isHidden){continue}var f=j.getHeightWithChildren();b+=f;var d=j.getWidthWithChildren();if(g<d){g=d}}}this._width=g;this._height=b+1},render:function(){if(this._renderSuppressed){return}this._refreshRequired=true;this.parentPivotGrid._pivotCells._refreshRequired=true;this.isRendering=true;if(this._isColumnsCountRequresUpdate){this._updateColumnsCount()}while(this._getColumnsCount()<this.getHierarchyDepth()){a.jqx.get(this,"columnWidths").push(70)}this._updateVisibleLeaves();if(this.compactStyleRenderingEnabled){if(this.columnWidths.Count==0){this._addColumn(70)}var e=this.columnWidths[0];var k=this.getHierarchyDepth();if(e<k*(this.compactStyleRenderingItemsIndent)){e=k*(this.compactStyleRenderingItemsIndent)}this.columnWidths[0]=e}this.updateBounds();var l=0;if(this.items.length+this.valueItems.length==0){if(this.parentPivotGrid!=null){this.parentPivotGrid.isSyncScrollRequired=true}this.isRendering=false;this._renderRequired=false;return}for(var c=0;c<2;c++){var g=(c==0)?this.items:this.valueItems;for(var b=0;b<g.length;b++){var f=g[b];if(f.hierarchy==null){f.hierarchy=this}if(f.isHidden){continue}var d=f.getHeightWithChildren();if(f.itemLevel<this.columnWidths.length&&f.getWidth()>this.columnWidths[f.itemLevel]){this.columnWidths[f.itemLevel]=f.getWidth()}if(!f.render(0,l)){break}l+=d}}this.updateBounds();if(this.parentPivotGrid!=null){this.parentPivotGrid.isSyncScrollRequired=true}this._resetCanvas();this._renderRequired=false;this.isRendering=false},isOnRowDetails:function(b,d){if(!d.RowDetailsVisible){return false}var c={x:b.x,y:b.y};c.x+=-this.x+this.viewPort.x;c.y+=-this.y+this.viewPort.y;if(c.y<d.y+d.getDisplayHeight()&&c.y>d.y+d.getDisplayHeight()-d.RowDetailsHeight){return true}return false}});a.jqx.jqxPivotGrid.pivotColumns=function(b){a.extend(this,new a.jqx.jqxPivotGrid.hierarchy);this.parentPivotGrid=b;this.isColumnsHierarchy=true};a.extend(a.jqx.jqxPivotGrid.pivotColumns.prototype,a.jqx.jqxPivotGrid.hierarchy.prototype);a.extend(a.jqx.jqxPivotGrid.pivotColumns.prototype,{render:function(){if(this._renderSuppressed){return}this._refreshRequired=true;this.parentPivotGrid._pivotCells._refreshRequired=true;this._updateVisibleLeaves();this._updateColumnsIndexes();if(this.items.length+this.valueItems.length==0){if(this.parentPivotGrid!=null){this.parentPivotGrid.isSyncScrollRequired=true}this._updateVisibleLeaves();return}var b=0;for(var e=0;e<2;e++){var g=(e==0)?this.items:this.valueItems;for(var d=0;d<g.length;d++){var f=g[d];if(f.hierarchy==null){f.hierarchy=this}if(f.isHidden){continue}var c=f.getWidthWithChildren();if(!f.render(b,0)){break}b+=c}}this._renderRequired=false;if(this.parentPivotGrid!=null){this.parentPivotGrid.isSyncScrollRequired=true}this._updateVisibleLeaves();this.updateBounds();this._resetCanvas()},updateBounds:function(){var b=0;var f=0;for(var d=0;d<2;d++){var k=(d==0)?this.items:this.valueItems;for(var c=0;c<k.length;c++){var g=k[c];var e=g.getHeightWithChildren();if(b<e){b=e}f+=g.getWidthWithChildren()}}this._height=b;this._width=f+1},_updateColumnsIndexes:function(){var e=this.visibleLeafItems.length;for(var c=--e;c>=0;c--){var d=this.visibleLeafItems[c];d.itemColumn=c;var b=d.parentItem;while(b!=null){if(b.hierarchy!=d.hierarchy){b=null}else{b.itemColumn=c;d=b;b=d.parentItem}}}},setRowHeight:function(c,b){if(b<15||b>500){return false}c.hierarchyItemHeight=b;this._renderRequired=true;return true},isGroupingColumn:function(b){if(b==null){return false}if(this.parentPivotGrid==null){return false}if(b.ItemIndex<this.parentPivotGrid.groupingColumns.length&&this.parentPivotGrid.isGroupingEnabled){return true}return false}})})(jqxBaseFramework);(function(a){a.extend(a.jqx._jqxPivotGrid.prototype,{_handleKeyboardNavigation:function(b){if(this._internalSelectMode=="CELLS_SELECT"){return this._handleCellsKeyboardNavigation(b)}else{if(this._internalSelectMode=="ROW_SELECT"||this._internalSelectMode=="COL_SELECT"){}}return false},_handleCellsKeyboardNavigation:function(e){var l=this._cellKBRangeSelectionEnd;var f=undefined;var n=this;if(!l){return false}if(e.keyCode==37){f=this._pivotCells.getNextCell(l,"left")}if(e.keyCode==38){f=this._pivotCells.getNextCell(l,"top")}else{if(e.keyCode==39){f=this._pivotCells.getNextCell(l,"right")}else{if(e.keyCode==40){f=this._pivotCells.getNextCell(l,"bottom")}}}if(f!=null){this._pivotRows._refreshRequired=true;this._pivotColumns._refreshRequired=true;this._pivotCells._refreshRequired=true;this._colItemRangeSelectionBeg=f.pivotColumn;this._rowItemRangeSelectionBeg=f.pivotRow;this._beginSelectionUpdate();if(!this._isCTRLPressed||false==this.multipleSelectionEnabled){this._internalClearSelection()}this._pivotCells._internalSelectCell(this._rowItemRangeSelectionBeg,this._colItemRangeSelectionBeg);this._cellKBRangeSelectionEnd={pivotRow:this._rowItemRangeSelectionBeg,pivotColumn:this._colItemRangeSelectionBeg,pivotCells:this._pivotCells};if(!this._cellKBRangeSelectionStart||!this._isSHIFTPressed){this._cellKBRangeSelectionStart={pivotRow:this._rowItemRangeSelectionBeg,pivotColumn:this._colItemRangeSelectionBeg,pivotCells:this._pivotCells}}var m=Math.min(this._cellKBRangeSelectionStart.pivotColumn._lfIndex,this._cellKBRangeSelectionEnd.pivotColumn._lfIndex);var i=Math.max(this._cellKBRangeSelectionStart.pivotColumn._lfIndex,this._cellKBRangeSelectionEnd.pivotColumn._lfIndex);var o=Math.min(this._cellKBRangeSelectionStart.pivotRow._lfIndex,this._cellKBRangeSelectionEnd.pivotRow._lfIndex);var j=Math.max(this._cellKBRangeSelectionStart.pivotRow._lfIndex,this._cellKBRangeSelectionEnd.pivotRow._lfIndex);for(var k=m;k<=i;k++){for(var b=o;b<=j;b++){var g=this._pivotColumns.visibleLeafItems[k];var d=this._pivotRows.visibleLeafItems[b];this._pivotCells._internalSelectCell(d,g)}}this._endSelectionUpdate();f.pivotRow.ensureVisible();f.pivotColumn.ensureVisible();this._internalRefresh()}return false}})})(jqxBaseFramework);
 
-(function(a){a.jqx.jqxWidget("jqxForm","",{});a.extend(a.jqx._jqxForm.prototype,{defineInstance:function(){var b={padding:{left:5,top:5,right:5,bottom:5},backgroundColor:"#F5F5F5",borderColor:"#E5E5E5",value:{},template:[{type:"text",label:"TextBox 1"},{type:"text",label:"TextBox 2"},]};a.extend(true,this,b)},createInstance:function(c){var b=this;b._isInitialized=false;var d=b.host;d.addClass(b.toThemeProperty("jqx-widget"));b._renderAndInit();this._setValue(this.value);this._prevValue=this._getValue();b._isInitialized=true},destroy:function(){this._destroyElements();this.host.removeData();this.host.remove();delete this.host;delete this.set;delete this.get;delete this.call;delete this.element},_destroyElements:function(){for(var c=0;c<this.template.length;c++){if(a.isArray(this.template[c].columns)){for(var b=0;b<this.template[c].columns.length;b++){var d=c+"_"+b;this._getComponentById(d).off();this.host.find("#rowWrap_el_"+d).remove()}}this._getComponentById(c).off();this._getComponentLabelById(c).off();this._getComponentLabelById(c).removeData();this.host.find("#rowWrap_el_"+c).remove()}this.host.find("#formWrap").remove()},val:function(b){if(undefined==b){return this._getValue()}else{this._setValue(b)}},_onChangeHandler:function(f){if(!this.isInitialized||this._suppressEvents){return}var c=this._getValue();if(this._prevValue&&JSON.stringify(c)==JSON.stringify(this._prevValue)){return}var d=new a.Event("formDataChange");d.args={value:c,previousValue:this._prevValue};d.owner=this;var b=this.host.trigger(d);if(d.cancel){this._setValue(this._prevValue)}else{this._prevValue=c}return b},_onButtonClick:function(c,d){if(!this.isInitialized){return}var e=new a.Event("buttonClick");e.args={name:d.name,text:c.val()};e.owner=this;var b=this.host.trigger(e);return b},submit:function(f,k,b){var l=this;var d=l._getValue(true);var h="<form id='jqx_fromToSubmit'";if(f){h+=' action="'+f+'"'}if(k){h+=' target="'+k+'"'}if(b&&b.toString().toLowerCase()==="get"){h+=' method="GET"'}else{h+=' method="POST"'}h+=">";for(var g=0;g<d.length;g++){var e=d[g].value;var j=d[g].tool;var c=j.name;if(c==undefined){c=j.id}if(c==undefined){c=j.bind}if(j.type=="button"||j.type=="label"){if(!j.submit||j.submit==false){continue}}if(j.submit==false){continue}if(c!==undefined){h+='<input type="hidden" ';h+=' name="'+c+'"';h+=' value="'+e+'"';h+=">"}}h+="</form>";l.host.find("#formSubmit").html(h);l.host.find("#jqx_fromToSubmit").submit()},_getValue:function(c){var e={};var d=[];for(var h=0;h<this.template.length;h++){var k=this.template[h];var l="el_"+h;if(a.isArray(k.columns)){for(var g=0;g<k.columns.length;g++){var f=k.columns[g];var q=l+"."+g;if(f.type=="option"&&f.component!="jqxDropDownList"){var o=this._radioGroupGetValue(f,q);if(f.bind==undefined){}else{this._setObjectProperty(e,f.bind,o)}if(c){d.push({tool:f,value:o})}continue}var b=this._getComponentById(h+"_"+g);var n=b.val();if(n===undefined){n=null}if(f.bind==undefined){}else{this._setObjectProperty(e,f.bind,n)}if(c){d.push({tool:f,value:n})}}continue}if(k.type=="option"&&k.component!="jqxDropDownList"){var o=this._radioGroupGetValue(k,l);if(k.bind==undefined){}else{this._setObjectProperty(e,k.bind,o)}if(c){d.push({tool:k,value:o})}continue}var m=this._getComponentById(h);var n=m.val();if(n===undefined){n=null}if(k.bind==undefined){}else{this._setObjectProperty(e,k.bind,n)}if(c){d.push({tool:k,value:n})}}if(c){return d}return a.extend({},this._prevValue,e)},_getObjectProperty:function(f,d){if(typeof(f)!=="object"||f===undefined||d===undefined||d==""){return f}var e=d.split(".");var g=f;for(var c=0;c<e.length;c++){g=g[e[c]]}return g},_setObjectProperty:function(g,d,e){if(undefined===g){return}if(undefined==d||d==""){g=e;return}var f=d.split(".");var c=0;while(c<f.length-1){if(undefined==g[f[c]]){g[f[c]]={}}c++}g[f[c]]=e},_setValue:function(c){this._suppressEvents=true;for(var g=0;g<this.template.length;g++){var h=this.template[g];var k="el_"+g;var d=undefined;if(a.isArray(h.columns)){for(var f=0;f<h.columns.length;f++){var e=h.columns[f];var m=k+"."+f;if(!e.bind){continue}d=this._getObjectProperty(c,e.bind);if(e.type=="option"&&e.component!="jqxDropDownList"){this._radioGroupSetValue(e,m,d);continue}var b=this._getComponentById(g+"_"+f);if(c!==undefined){b.val(d)}}continue}if(!h.bind){continue}d=this._getObjectProperty(c,h.bind);if(h.type=="option"&&h.component!="jqxDropDownList"){this._radioGroupSetValue(h,k,d);continue}var l=this._getComponentById(g);if(h.type=="label"){l.html(d);continue}if(c!==undefined){l.val(d)}}this._prevValue=c;this._suppressEvents=false},_radioGroupGetValue:function(b,f){for(var c=0;c<b.options.length;c++){var e=f+"_option_"+c;var d=this.host.find("#"+e);if(d.length>0){var g=d.jqxRadioButton("val");if(g==true){if(b.options[c].value!==undefined){return b.options[c].value}return b.options[c].label}}}return undefined},_radioGroupSetValue:function(b,f,g){for(var c=0;c<b.options.length;c++){if(b.options[c].value!==undefined){if(g!==b.options[c].value){continue}}else{if(g!==b.options[c].label){continue}}var e=f+"_option_"+c;var d=this.host.find("#"+e);if(d.length>0){d.jqxRadioButton("val",true)}}},_getToolStyle:function(b){var c="display: block;";var d=["left","right","top","bottom"];if(b.height){c+="height: "+b.height+";"}if(b.valign!==undefined){c+="vertical-align: "+b.valign+";"}else{c+="vertical-align: middle;"}return c},_getAlignMargin:function(b,f){if(!b||!b[f]){return""}var g=["left","right","top","bottom"];var e={};var d="";if(b[f]){e={};if(b[f]=="left"){e.left="0px";e.right="auto"}else{if(b[f]=="right"){e.left="auto";e.right="0px"}else{e.left="auto";e.right="auto"}}}if(e){for(var c in g){if(e[g[c]]){d+="margin-"+g[c]+": "+e[g[c]]+";"}}}return d},_getPaddingAndMarginStyle:function(f,g){var b="";var h=["left","right","top","bottom"];var k=g?"labelpadding":"padding";var e=g?"labelmargin":"margin";var j=a.extend({left:5,top:5,right:5,bottom:5},f[k]);for(var d in j){j[d]=!isNaN(j[d])?j[d]:parseFloat(j[d].toString())}var c=f[e];if(j){for(var d in h){if(j[h[d]]){b+="padding-"+h[d]+": "+j[h[d]]+"px;"}}}if(c){for(var d in h){if(c[h[d]]){b+="margin-"+h[d]+": "+c[h[d]]+";"}}}return b},_getToolLabelStyle:function(b){var c="display:block;";var d=["left","right","top","bottom"];if(b.labelheight!==undefined){c+="height: "+b.labelheight+";"}else{c+="height: 100%;"}if(b.labelvalign!==undefined){c+="vertical-align: "+b.labelvalign+";"}else{if(b.valign!==undefined){c+="vertical-align: "+b.valign+";"}else{c+="vertical-align: middle;"}}return c},_renderAndInit:function(){var b=this._createTemplateHtml();this.host.append(b);this._initTools()},refresh:function(c){var b=this;if(!b._isInitialized||c===true){return}var d=b.val();b._destroyElements();b._renderAndInit();b._prevValue=d;b.val(d)},_createTemplateHtml:function(){var c=this.groups;var b="padding-left: "+parseFloat(this.padding.left)+"px;padding-right: "+parseFloat(this.padding.right)+"px;padding-top: "+parseFloat(this.padding.top)+"px;padding-bottom: "+parseFloat(this.padding.bottom)+"px;";var f="<table id='formWrap' style='background-color: "+this.backgroundColor+"; width: 100%; white-space: nowrap; border: 0px;"+b+"' cellpadding='0' cellspacing='0'><div id='formSubmit' style='display:hidden;'><div>";var j=this.template;for(var e=0;e<j.length;e++){var h="el_"+e;var d=this.template[e];var g=this._getToolTemplate(d,h);f+=g}f+="</table>";return f},_beginRow:function(e,b,c){if(undefined===b){b="auto"}if(c){c="valign='"+c+"'"}else{c=""}var d="<tr style='width: 100%; height: "+b+";' id='rowWrap_"+e+"' "+c+">";d+="<td style='width: 100%;'><table style='width: 100%; white-space: nowrap; border: 0px;' cellspacing='0' cellpadding='0'><tr style='width: 100%'>";return d},_endRow:function(){return"<td style='width: auto; background: transparent;'> </tr></table></td></tr>"},_beginColumn:function(d,c){if(!c){c=""}if(undefined===d){d="auto"}var b="<td style='width:"+d+"; background: transparent;'>";b+="<div style='display:block; overflow: visible; width: 100%; background: transparent;'>";return b},_endColumn:function(){return"</div></td>"},_splitLabelToolWidth:function(e,c){var h=c?"auto":e.columnwidth;var b=e.labelwidth;var d=a.extend({left:5,top:5,right:5,bottom:5},e.padding);var g=a.extend({left:5,top:5,right:5,bottom:5},e.labelpadding);for(var f in d){d[f]=!isNaN(d[f])?d[f]:parseFloat(d[f].toString())}for(var f in g){g[f]=!isNaN(g[f])?g[f]:parseFloat(g[f].toString())}if(e.label==""||e.label==undefined){b=0;g={left:0,right:0,top:0,bottom:0}}if(e.labelposition=="top"||e.labelposition=="bottom"){if(undefined===b){b=h}if(undefined===h){h=b}if(h&&h.toString().indexOf("%")!=-1&&b&&b.toString().indexOf("%")!=-1){h=b=Math.max(parseFloat(h),parseFloat(b))+"%"}if(h&&h.toString().indexOf("%")==-1&&b&&b.toString().indexOf("%")==-1){h=b=Math.max(parseFloat(h),parseFloat(b))+"px"}return[b,h]}if(b===undefined){if(h!==undefined&&h!=="auto"){return["auto",h]}else{if(e.labelposition=="right"){if(e.align=="right"||e.align=="center"||e.align=="middle"){return["auto","100%"]}return["100%","auto"]}return["auto","100%"]}}else{if(b.toString().indexOf("%")!==-1){b=parseFloat(b);if(h!==undefined){if(h.toString().indexOf("%")!==-1){h=parseFloat(h);return[Math.min(100,b)+"%",Math.min(h,100-b)+"%"]}else{h=parseFloat(h);return[Math.min(100,b)+"%",h]}}return[Math.min(100,b)+"%",Math.max(0,100-b)+"%"]}else{b=parseFloat(b)+g.left+g.right;if(h==undefined){return[b+"px","calc(100% - "+b+"px)"]}return[b+"px",h]}}},_getToolTemplate:function(h,s,j,q){var g={};for(p in h){g[p.toLowerCase()]=h[p]}if(a.isArray(g.columns)&&isNaN(j)){var v=this._beginRow(s,g.rowheight||"auto");for(var A=0;A<g.columns.length;A++){var y=this._getToolTemplate(g.columns[A],(s+"_"+A),undefined,true);var t="auto";if(g.columns[A].columnWidth!==undefined){t=g.columns[A].columnWidth}else{if(g.columns[A].width!==undefined){t=g.columns[A].width}}v+=this._beginColumn(t);v+="<table cellspacing='0' cellpadding='0' style='width: 100%; white-space: nowrap; border: 0px;'>"+y+"</table>";v+=this._endColumn()}v+=this._endRow();return v}if(g.type=="option"&&g.component!="jqxDropDownList"){if(isNaN(j)){var B=this._beginRow(s,g.rowheight||"auto",g.valign);for(var A=0;A<g.options.length;A++){var y=this._getToolTemplate(g,(s+"_option_"+A),A,true);if(g.optionslayout=="horizontal"){var t=100/Math.max(1,g.options.length)+"%";if(g.columnwidth){t=g.columnwidth}B+=this._beginColumn(t);B+="<table cellspacing='0' cellpadding='0' style='width: 100%; white-space: nowrap; border: 0px;'>"+y+"</table>";B+=this._endColumn()}else{B+=y}}B+=this._endRow();return B}}var d=g.labelposition;var m=g.label;var k="";if(g.type=="option"&&g.component!="jqxDropDownList"&&!isNaN(j)){var k=g.options[j].label;m=k}if(m===undefined){m=""}var B="";var b=this._getToolLabelStyle(g)+this._getPaddingAndMarginStyle(g,true);var r=this._getToolStyle(g)+this._getPaddingAndMarginStyle(g,false);var e="";var x=this._getAlignMargin(g,"align");var C="text-align: left;";if(g.labelalign=="center"||g.labelalign=="middle"){C="text-align: center"}else{if(g.labelalign=="right"){C="text-align: right"}}var D="text-align: left;";if(g.align=="center"||g.align=="middle"){D="text-align: center"}else{if(g.align=="right"){D="text-align: right"}}var o=this._splitLabelToolWidth(g,q);var f=m;if(g.required){var n="<span class='"+e+"' style='color:red;'>*</span>";if(g.requiredposition){if(g.requiredposition.toLowerCase()=="left"){f=n+" "+m}else{f=m+" "+n}}else{f=m+" "+n}}var w="";if(g.type=="boolean"||(g.type=="option"&&!isNaN(j))){w+="; cursor: pointer;"}var l="<div class='"+e+"' style='"+b+"'><div style='"+C+w+";' id='label_"+s+"'>"+f+"</div></div>";var z=(g.info!==undefined&&g.infoposition!="left")?"margin-left: -3px;":"margin-right: -3px;";var c="<div style='"+z+"' class='"+this.toThemeProperty("jqx-info-icon")+"' title='"+g.info+"'></div>";var u="<div style='background: transparent;"+r+"'><div style='width: auto; height: auto; "+x+"' id='"+s+"'></div></div>";if(g.type=="text"||g.type=="button"){u="<div style='background: transparent;"+r+D+"'><input style='width: auto; height: auto; "+x+"' id='"+s+"' type='"+g.type+"'/></div>"}else{if(g.type=="password"){u="<div style='background: transparent;"+r+D+"'><input type='password' style='width: auto; height: auto; "+x+"' id='"+s+"'/></div>"}}if(g.type=="option"&&g.component!="jqxDropDownList"&&!isNaN(j)){var t=g.width;if(t===undefined){t="15px"}o=[g.labelwidth||"auto",t];if(g.labelposition&&(g.labelposition=="top"||g.labelposition=="bottom")){o=["100%","100%"]}u="<div style='background: transparent;"+r+x+D+"'><div style='width: "+t+"; height: 100%; "+x+D+";' id='"+s+"'></div></div>"}if(g.info!==undefined&&g.info!==""){if(g.infoposition=="left"){u="<table cellspacing='0' cellpadding='0' style='border: 0px; white-space: nowrap;"+x+"'><tr><td>"+c+"</td><td>"+u+"</td></tr></table>"}else{u="<table cellspacing='0' cellpadding='0' style='border: 0px; white-space: nowrap;"+x+"'><tr><td>"+u+"</td><td>"+c+"</td></tr></table>"}}if(d=="right"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(o[1]);B+=u;if(m!=""){B+=this._endColumn();B+=this._beginColumn(o[0]);B+=l}B+=this._endColumn();B+=this._endRow()}else{if(d=="top"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(g.columnwidth);if(m!=""){B+=l}B+=u;B+=this._endColumn();B+=this._endRow()}else{if(d=="bottom"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(g.columnwidth);B+=u;if(m!=""){B+=l}B+=this._endColumn();B+=this._endRow()}else{B+=this._beginRow(s,g.rowheight||"auto",g.valign);if(m!=""){B+=this._beginColumn(o[0]);B+=l;B+=this._endColumn()}B+=this._beginColumn(o[1]);B+=u;B+=this._endColumn();B+=this._endRow()}}}return B},_initTools:function(f,e){var d=f||this.template;if(undefined==e){e=""}for(var c=0;c<d.length;c++){var b=d[c];if(a.isArray(b.columns)){this._initTools(b.columns,c+"_");continue}var g=e+c;switch(b.type){case"color":this._initColorTool(g);break;case"option":if(b.component=="jqxDropDownList"){this._initOptionToolDropDownList(g)}else{this._initOptionTool(g)}break;case"dropdownlist":this._initOptionToolDropDownList(g);break;case"number":this._initNumberTool(g);break;case"boolean":case"checkbox":this._initBooleanTool(g);break;case"text":this._initTextTool(g);break;case"password":this._initPasswordTool(g);break;case"label":this._initLabelTool(g);break;case"date":case"time":case"datetime":this._initDateTimeTool(g);break;case"button":this._initButtonTool(g);break;case"custom":this._initCustomTool(g);break}if(b.visible===false){this._showhideComponent(undefined,g,false)}if(b.theme){this._setToolTheme(b,g)}}},_setToolTheme:function(c,e){var b=this._getComponentById(e);var d=c.theme||this.theme;switch(c.type){case"option":if(c.component=="jqxDropDownList"){b.jqxDropDownList("theme",d)}break;case"number":b.jqxNumberInput("theme",d);break;case"text":b.jqxInput("theme",d);break;case"password":b.jqxPasswordInput("theme",d);break}},_initOptionTool:function(h){var b=this;var j="el_"+h;var c=b._getTool(h);for(var d=0;d<c.options.length;d++){var g=j+"_option_"+d;var e=b.host.find("#"+g);if(e.length>0){e.jqxRadioButton({width:20,theme:b.theme,groupName:"group_"+h}).on("change",function(i){b._onChangeHandler(i)})}var f=b.host.find("#label_"+g);f.data("el",e);f.on("mousedown",function(k){var i=a(this).data("el");i.jqxRadioButton("toggle")})}},_initOptionToolDropDownList:function(j){var l=this;var d="el_"+j;var f=l._getTool(j);var g=this.host.find("#"+d);var h='<div style="height: 20px;"></div>';var b=[];if(f.options&&a.isArray(f.options)){for(var e=0;e<f.options.length;e++){b.push(f.options[e])}}if(f.init){f.init(g)}else{var c=isNaN(parseFloat(f.width))?"auto":f.width;if(f.width&&f.width.toString().indexOf("%")!=-1&&f.columnwidth===undefined){c="100%"}var k=isNaN(parseFloat(f.height))?"30px":f.height;g.jqxDropDownList({theme:l.theme,width:c||"auto",autoDropDownHeight:true,height:k,enableBrowserBoundsDetection:true,source:b,selectedIndex:0})}g.on("change",function(i){l._onChangeHandler(i)})},_initNumberTool:function(g){var c=this;var h="el_"+g;var d=c._getTool(g);var e=this.host.find("#"+h);if(d.init){d.init(e)}else{var f=isNaN(parseFloat(d.width))?"auto":d.width;var b=isNaN(parseFloat(d.height))?"30px":d.height;e.jqxNumberInput({theme:c.theme,width:f,height:b,inputMode:"simple"})}e.on("change",function(i){c._onChangeHandler(i)})},_initBooleanTool:function(f){var j=this;var b="el_"+f;var e=j._getTool(f);var g=this.host.find("#"+b);if(e.init){e.init(g)}else{var c=isNaN(parseFloat(e.width))?"auto":e.width;var i=isNaN(parseFloat(e.height))?"30px":e.height;var d=e.isThreeState==true;if(e.component===undefined||e.component=="jqxCheckBox"){g.jqxCheckBox({theme:j.theme,width:c,height:i,hasThreeStates:d})}else{return}}g.on("change",function(k){j._onChangeHandler(k)});var h=j.host.find("#label_"+b);h.on("mousedown",function(k){var l=j.host.find("#"+b).val();j.host.find("#"+b).val(!l)})},_initTextTool:function(g){var d=this;var h="el_"+g;var e=d._getTool(g);var c=this.host.find("#"+h);if(e.init){e.init(c)}else{var f=isNaN(parseFloat(e.width))?"auto":e.width;var b=isNaN(parseFloat(e.height))?"30px":e.height;c.jqxInput({theme:d.theme,width:f,height:b})}c.on("change",function(i){d._onChangeHandler(i)})},_initLabelTool:function(f){var b=this;var g="el_"+f;var c=b._getTool(f);var e=this.host.find("#"+g);if(c.render&&a.isFunction(c.render)){var d=c.render();e.html(d||"")}},_getTool:function(e){var b=this;var d=e.split("_");var c=b.template[d[0]];if(d[1]){if(a.isArray(c.columns)&&c.columns.length>d[1]){return c.columns[d[1]]}return undefined}return c},_initCustomTool:function(d){var b=this;var f="el_"+d;var c=b._getTool(d);var e=this.host.find("#"+f);if(c.init){c.init(e)}},_initButtonTool:function(g){var c=this;var h="el_"+g;var d=c._getTool(g);var e=this.host.find("#"+h);if(d.init){d.init(e)}else{var f=isNaN(parseFloat(d.width))?"auto":d.width;var b=isNaN(parseFloat(d.height))?"30px":d.height;e.jqxButton({theme:c.theme,width:f,height:b});e.val(d.text===undefined?"Button":d.text)}this.host.find("#"+h).on("click",function(i){c._onButtonClick(e,d)})},_initPasswordTool:function(g){var d=this;var h="el_"+g;var e=d._getTool(g);var c=this.host.find("#"+h);if(e.init){e.init(c)}else{var f=isNaN(parseFloat(e.width))?"auto":e.width;var b=isNaN(parseFloat(e.height))?"25px":e.height;c.jqxPasswordInput({theme:d.theme,width:f,height:b})}c.on("change",function(i){d._onChangeHandler(i)})},_initDateTimeTool:function(h){var e=this;var i="el_"+h;var f=e._getTool(h);var d=this.host.find("#"+i);if(f.init){f.init(d)}else{var g=isNaN(parseFloat(f.width))?"auto":f.width;var c=isNaN(parseFloat(f.height))?"30px":f.height;var b=f.formatString;if(!b){if(f.type=="time"){b="hh mm ss tt"}else{if(f.type=="date"){b="MM/dd/yyyy"}else{b="MM/dd/yyyy hh:mm:ss tt"}}}d.jqxDateTimeInput({theme:e.theme,width:g,height:c,formatString:b,showTimeButton:f.type!="date",showCalendarButton:f.type!="time"})}d.on("valueChanged",function(j){e._onChangeHandler(j)})},getComponentByName:function(c){if(!a.isArray(this.template)){return undefined}for(var d=0;d<this.template.length;d++){if(this.template[d].name==c){return this._getComponentById(d)}if(a.isArray(this.template[d].columns)){for(var b=0;b<this.template[d].columns.length;b++){if(this.template[d].columns[b].name==c){return this._getComponentById(d+"_"+b)}}}}return undefined},_getComponentById:function(c){var b=this.host.find("#el_"+c);return b},_getComponentLabelById:function(c){var b=this.host.find("#label_el_"+c);return b},hideComponent:function(b){this._showhideComponent(b,undefined,false)},showComponent:function(b){this._showhideComponent(b,undefined,true)},_showhideComponent:function(e,h,b){if(!a.isArray(this.template)){return}var d="";if(h===undefined){for(var f=0;f<this.template.length;f++){if(this.template[f].name==e){d=f;break}if(a.isArray(this.template[f].columns)){for(var c=0;c<this.template[f].length;c++){if(this.template[f].columns[c].name==e){d=f+"_"+c;break}}}}}else{d=h}if(d!=""){var g=this.host.find("#rowWrap_el_"+d);if(g&&g.length!=0){if(b){g.show()}else{g.hide()}}}}})})(jqxBaseFramework);
+(function(a){a.jqx.jqxWidget("jqxForm","",{});a.extend(a.jqx._jqxForm.prototype,{defineInstance:function(){var b={padding:{left:5,top:5,right:5,bottom:5},backgroundColor:"#F5F5F5",borderColor:"#E5E5E5",value:{},template:[{type:"text",label:"TextBox 1"},{type:"text",label:"TextBox 2"},]};a.extend(true,this,b)},createInstance:function(c){var b=this;b._isInitialized=false;var d=b.host;d.addClass(b.toThemeProperty("jqx-widget"));b._renderAndInit();this._setValue(this.value);this._prevValue=this._getValue();b._isInitialized=true},destroy:function(){this._destroyElements();this.host.removeData();this.host.remove();delete this.host;delete this.set;delete this.get;delete this.call;delete this.element},_destroyElements:function(){for(var c=0;c<this.template.length;c++){if(a.isArray(this.template[c].columns)){for(var b=0;b<this.template[c].columns.length;b++){var d=c+"_"+b;this._getComponentById(d).off();this.host.find("#rowWrap_el_"+d).remove()}}this._getComponentById(c).off();this._getComponentLabelById(c).off();this._getComponentLabelById(c).removeData();this.host.find("#rowWrap_el_"+c).remove()}this.host.find("#formWrap").remove()},val:function(b){if(undefined==b){return this._getValue()}else{this._setValue(b)}},_onChangeHandler:function(f){if(!this.isInitialized||this._suppressEvents){return}var c=this._getValue();if(this._prevValue&&JSON.stringify(c)==JSON.stringify(this._prevValue)){return}var d=new a.Event("formDataChange");d.args={value:c,previousValue:this._prevValue};d.owner=this;var b=this.host.trigger(d);if(d.cancel){this._setValue(this._prevValue)}else{this._prevValue=c}return b},_onButtonClick:function(c,d){if(!this.isInitialized){return}var e=new a.Event("buttonClick");e.args={name:d.name,text:c.val()};e.owner=this;var b=this.host.trigger(e);return b},submit:function(f,k,b){var l=this;var d=l._getValue(true);var h="<form id='jqx_fromToSubmit'";if(f){h+=' action="'+f+'"'}if(k){h+=' target="'+k+'"'}if(b&&b.toString().toLowerCase()==="get"){h+=' method="GET"'}else{h+=' method="POST"'}h+=">";for(var g=0;g<d.length;g++){var e=d[g].value;var j=d[g].tool;var c=j.name;if(c==undefined){c=j.id}if(c==undefined){c=j.bind}if(j.type=="button"||j.type=="label"){if(!j.submit||j.submit==false){continue}}if(j.submit==false){continue}if(c!==undefined){h+='<input type="hidden" ';h+=' name="'+c+'"';h+=' value="'+e+'"';h+=">"}}h+="</form>";l.host.find("#formSubmit").html(h);l.host.find("#jqx_fromToSubmit").submit()},_getValue:function(c){var e={};var d=[];for(var h=0;h<this.template.length;h++){var k=this.template[h];var l="el_"+h;if(a.isArray(k.columns)){for(var g=0;g<k.columns.length;g++){var f=k.columns[g];var q=l+"."+g;if(f.type=="option"&&f.component!="jqxDropDownList"){var o=this._radioGroupGetValue(f,q);if(f.bind==undefined){}else{this._setObjectProperty(e,f.bind,o)}if(c){d.push({tool:f,value:o})}continue}var b=this._getComponentById(h+"_"+g);var n=b.val();if(n===undefined){n=null}if(f.bind==undefined){}else{this._setObjectProperty(e,f.bind,n)}if(c){d.push({tool:f,value:n})}}continue}if(k.type=="option"&&k.component!="jqxDropDownList"){var o=this._radioGroupGetValue(k,l);if(k.bind==undefined){}else{this._setObjectProperty(e,k.bind,o)}if(c){d.push({tool:k,value:o})}continue}var m=this._getComponentById(h);var n=m.val();if(n===undefined){n=null}if(k.bind==undefined){}else{this._setObjectProperty(e,k.bind,n)}if(c){d.push({tool:k,value:n})}}if(c){return d}return a.extend({},this._prevValue,e)},_getObjectProperty:function(f,d){if(typeof(f)!=="object"||f===undefined||d===undefined||d==""){return f}var e=d.split(".");var g=f;for(var c=0;c<e.length;c++){g=g[e[c]]}return g},_setObjectProperty:function(g,d,e){if(undefined===g){return}if(undefined==d||d==""){g=e;return}var f=d.split(".");var c=0;while(c<f.length-1){if(undefined==g[f[c]]){g[f[c]]={}}c++}g[f[c]]=e},_setValue:function(c){this._suppressEvents=true;for(var g=0;g<this.template.length;g++){var h=this.template[g];var k="el_"+g;var d=undefined;if(a.isArray(h.columns)){for(var f=0;f<h.columns.length;f++){var e=h.columns[f];var m=k+"."+f;if(!e.bind){continue}d=this._getObjectProperty(c,e.bind);if(e.type=="option"&&e.component!="jqxDropDownList"){this._radioGroupSetValue(e,m,d);continue}var b=this._getComponentById(g+"_"+f);if(c!==undefined){b.val(d)}}continue}if(!h.bind){continue}d=this._getObjectProperty(c,h.bind);if(h.type=="option"&&h.component!="jqxDropDownList"){this._radioGroupSetValue(h,k,d);continue}var l=this._getComponentById(g);if(h.type=="label"){l.html(d);continue}if(c!==undefined){l.val(d)}}this._prevValue=c;this._suppressEvents=false},_radioGroupGetValue:function(b,f){for(var c=0;c<b.options.length;c++){var e=f+"_option_"+c;var d=this.host.find("#"+e);if(d.length>0){var g=d.jqxRadioButton("val");if(g==true){if(b.options[c].value!==undefined){return b.options[c].value}return b.options[c].label}}}return undefined},_radioGroupSetValue:function(b,f,g){for(var c=0;c<b.options.length;c++){if(b.options[c].value!==undefined){if(g!==b.options[c].value){continue}}else{if(g!==b.options[c].label){continue}}var e=f+"_option_"+c;var d=this.host.find("#"+e);if(d.length>0){d.jqxRadioButton("val",true)}}},_getToolStyle:function(b){var c="display: block;";var d=["left","right","top","bottom"];if(b.height){c+="height: "+b.height+";"}if(b.valign!==undefined){c+="vertical-align: "+b.valign+";"}else{c+="vertical-align: middle;"}return c},_getAlignMargin:function(b,f){if(!b||!b[f]){return""}var g=["left","right","top","bottom"];var e={};var d="";if(b[f]){e={};if(b[f]=="left"){e.left="0px";e.right="auto"}else{if(b[f]=="right"){e.left="auto";e.right="0px"}else{e.left="auto";e.right="auto"}}}if(e){for(var c in g){if(e[g[c]]){d+="margin-"+g[c]+": "+e[g[c]]+";"}}}return d},_getPaddingAndMarginStyle:function(f,g){var b="";var h=["left","right","top","bottom"];var k=g?"labelpadding":"padding";var e=g?"labelmargin":"margin";var j=a.extend({left:5,top:5,right:5,bottom:5},f[k]);for(var d in j){j[d]=!isNaN(j[d])?j[d]:parseFloat(j[d].toString())}var c=f[e];if(j){for(var d in h){if(j[h[d]]){b+="padding-"+h[d]+": "+j[h[d]]+"px;"}}}if(c){for(var d in h){if(c[h[d]]){b+="margin-"+h[d]+": "+c[h[d]]+";"}}}return b},_getToolLabelStyle:function(b){var c="display:block;";var d=["left","right","top","bottom"];if(b.labelheight!==undefined){c+="height: "+b.labelheight+";"}else{c+="height: 100%;"}if(b.labelvalign!==undefined){c+="vertical-align: "+b.labelvalign+";"}else{if(b.valign!==undefined){c+="vertical-align: "+b.valign+";"}else{c+="vertical-align: middle;"}}return c},_renderAndInit:function(){var b=this._createTemplateHtml();this.host.append(b);this._initTools()},refresh:function(c){var b=this;if(!b._isInitialized||c===true){return}var d=b.val();b._destroyElements();b._renderAndInit();b._prevValue=d;b.val(d)},_createTemplateHtml:function(){var c=this.groups;var b="padding-left: "+parseFloat(this.padding.left)+"px;padding-right: "+parseFloat(this.padding.right)+"px;padding-top: "+parseFloat(this.padding.top)+"px;padding-bottom: "+parseFloat(this.padding.bottom)+"px;";var f="<table id='formWrap' style='background-color: "+this.backgroundColor+"; width: 100%; white-space: nowrap; border: 0px;"+b+"' cellpadding='0' cellspacing='0'><div id='formSubmit' style='display:hidden;'><div>";var j=this.template;for(var e=0;e<j.length;e++){var h="el_"+e;var d=this.template[e];var g=this._getToolTemplate(d,h);f+=g}f+="</table>";return f},_beginRow:function(e,b,c){if(undefined===b){b="auto"}if(c){c="valign='"+c+"'"}else{c=""}var d="<tr style='width: 100%; height: "+b+";' id='rowWrap_"+e+"' "+c+">";d+="<td style='width: 100%;'><table style='width: 100%; white-space: nowrap; border: 0px;' cellspacing='0' cellpadding='0'><tr style='width: 100%'>";return d},_endRow:function(){return"<td style='width: auto; background: transparent;'> </tr></table></td></tr>"},_beginColumn:function(d,c){if(!c){c=""}if(undefined===d){d="auto"}var b="<td style='width:"+d+"; background: transparent;'>";b+="<div style='display:block; overflow: visible; width: 100%; background: transparent;'>";return b},_endColumn:function(){return"</div></td>"},_splitLabelToolWidth:function(e,c){var h=c?"auto":e.columnwidth;var b=e.labelwidth;var d=a.extend({left:5,top:5,right:5,bottom:5},e.padding);var g=a.extend({left:5,top:5,right:5,bottom:5},e.labelpadding);for(var f in d){d[f]=!isNaN(d[f])?d[f]:parseFloat(d[f].toString())}for(var f in g){g[f]=!isNaN(g[f])?g[f]:parseFloat(g[f].toString())}if(e.label==""||e.label==undefined){b=0;g={left:0,right:0,top:0,bottom:0}}if(e.labelposition=="top"||e.labelposition=="bottom"){if(undefined===b){b=h}if(undefined===h){h=b}if(h&&h.toString().indexOf("%")!=-1&&b&&b.toString().indexOf("%")!=-1){h=b=Math.max(parseFloat(h),parseFloat(b))+"%"}if(h&&h.toString().indexOf("%")==-1&&b&&b.toString().indexOf("%")==-1){h=b=Math.max(parseFloat(h),parseFloat(b))+"px"}return[b,h]}if(b===undefined){if(h!==undefined&&h!=="auto"){return["auto",h]}else{if(e.labelposition=="right"){if(e.align=="right"||e.align=="center"||e.align=="middle"){return["auto","100%"]}return["100%","auto"]}return["auto","100%"]}}else{if(b.toString().indexOf("%")!==-1){b=parseFloat(b);if(h!==undefined){if(h.toString().indexOf("%")!==-1){h=parseFloat(h);return[Math.min(100,b)+"%",Math.min(h,100-b)+"%"]}else{h=parseFloat(h);return[Math.min(100,b)+"%",h]}}return[Math.min(100,b)+"%",Math.max(0,100-b)+"%"]}else{b=parseFloat(b)+g.left+g.right;if(h==undefined){return[b+"px","calc(100% - "+b+"px)"]}return[b+"px",h]}}},_getToolTemplate:function(h,s,j,q){var g={};for(p in h){g[p.toLowerCase()]=h[p]}if(a.isArray(g.columns)&&isNaN(j)){var v=this._beginRow(s,g.rowheight||"auto");for(var A=0;A<g.columns.length;A++){var y=this._getToolTemplate(g.columns[A],(s+"_"+A),undefined,true);var t="auto";if(g.columns[A].columnWidth!==undefined){t=g.columns[A].columnWidth}else{if(g.columns[A].width!==undefined){t=g.columns[A].width}}v+=this._beginColumn(t);v+="<table cellspacing='0' cellpadding='0' style='width: 100%; white-space: nowrap; border: 0px;'>"+y+"</table>";v+=this._endColumn()}v+=this._endRow();return v}if(g.type=="option"&&g.component!="jqxDropDownList"){if(isNaN(j)){var B=this._beginRow(s,g.rowheight||"auto",g.valign);for(var A=0;A<g.options.length;A++){var y=this._getToolTemplate(g,(s+"_option_"+A),A,true);if(g.optionslayout=="horizontal"){var t=100/Math.max(1,g.options.length)+"%";if(g.columnwidth){t=g.columnwidth}B+=this._beginColumn(t);B+="<table cellspacing='0' cellpadding='0' style='width: 100%; white-space: nowrap; border: 0px;'>"+y+"</table>";B+=this._endColumn()}else{B+=y}}B+=this._endRow();return B}}var d=g.labelposition;var m=g.label;var k="";if(g.type=="option"&&g.component!="jqxDropDownList"&&!isNaN(j)){var k=g.options[j].label;m=k}if(m===undefined){m=""}var B="";var b=this._getToolLabelStyle(g)+this._getPaddingAndMarginStyle(g,true);var r=this._getToolStyle(g)+this._getPaddingAndMarginStyle(g,false);var e="";var x=this._getAlignMargin(g,"align");var C="text-align: left;";if(g.labelalign=="center"||g.labelalign=="middle"){C="text-align: center"}else{if(g.labelalign=="right"){C="text-align: right"}}var D="text-align: left;";if(g.align=="center"||g.align=="middle"){D="text-align: center"}else{if(g.align=="right"){D="text-align: right"}}var o=this._splitLabelToolWidth(g,q);var f=m;if(g.required){var n="<span class='"+e+"' style='color:red;'>*</span>";if(g.requiredposition){if(g.requiredposition.toLowerCase()=="left"){f=n+" "+m}else{f=m+" "+n}}else{f=m+" "+n}}var w="";if(g.type=="boolean"||(g.type=="option"&&!isNaN(j))){w+="; cursor: pointer;"}var l="<div class='"+e+"' style='"+b+"'><div style='"+C+w+";' id='label_"+s+"'>"+f+"</div></div>";var z=(g.info!==undefined&&g.infoposition!="left")?"margin-left: -3px;":"margin-right: -3px;";var c="<div style='"+z+"' class='"+this.toThemeProperty("jqx-info-icon")+"' title='"+g.info+"'></div>";var u="<div style='background: transparent;"+r+"'><div style='width: auto; height: auto; "+x+"' id='"+s+"'></div></div>";if(g.type=="text"||g.type=="button"){u="<div style='background: transparent;"+r+D+"'><input style='width: auto; height: auto; "+x+"' id='"+s+"' type='"+g.type+"'/></div>"}else{if(g.type=="password"){u="<div style='background: transparent;"+r+D+"'><input type='password' style='width: auto; height: auto; "+x+"' id='"+s+"'/></div>"}}if(g.type=="option"&&g.component!="jqxDropDownList"&&!isNaN(j)){var t=g.width;if(t===undefined){t="15px"}o=[g.labelwidth||"auto",t];if(g.labelposition&&(g.labelposition=="top"||g.labelposition=="bottom")){o=["100%","100%"]}u="<div style='background: transparent;"+r+x+D+"'><div style='width: "+t+"; height: 100%; "+x+D+";' id='"+s+"'></div></div>"}if(g.info!==undefined&&g.info!==""){if(g.infoposition=="left"){u="<table cellspacing='0' cellpadding='0' style='border: 0px; white-space: nowrap;"+x+"'><tr><td>"+c+"</td><td>"+u+"</td></tr></table>"}else{u="<table cellspacing='0' cellpadding='0' style='border: 0px; white-space: nowrap;"+x+"'><tr><td>"+u+"</td><td>"+c+"</td></tr></table>"}}if(d=="right"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(o[1]);B+=u;if(m!=""){B+=this._endColumn();B+=this._beginColumn(o[0]);B+=l}B+=this._endColumn();B+=this._endRow()}else{if(d=="top"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(g.columnwidth);if(m!=""){B+=l}B+=u;B+=this._endColumn();B+=this._endRow()}else{if(d=="bottom"){B+=this._beginRow(s,g.rowheight||"auto",g.valign);B+=this._beginColumn(g.columnwidth);B+=u;if(m!=""){B+=l}B+=this._endColumn();B+=this._endRow()}else{B+=this._beginRow(s,g.rowheight||"auto",g.valign);if(m!=""){B+=this._beginColumn(o[0]);B+=l;B+=this._endColumn()}B+=this._beginColumn(o[1]);B+=u;B+=this._endColumn();B+=this._endRow()}}}return B},_initTools:function(f,e){var d=f||this.template;if(undefined==e){e=""}for(var c=0;c<d.length;c++){var b=d[c];if(a.isArray(b.columns)){this._initTools(b.columns,c+"_");continue}var g=e+c;switch(b.type){case"color":this._initColorTool(g);break;case"option":if(b.component=="jqxDropDownList"){this._initOptionToolDropDownList(g)}else{this._initOptionTool(g)}break;case"dropdownlist":this._initOptionToolDropDownList(g);break;case"number":this._initNumberTool(g);break;case"boolean":case"checkbox":this._initBooleanTool(g);break;case"text":this._initTextTool(g);break;case"password":this._initPasswordTool(g);break;case"label":this._initLabelTool(g);break;case"date":case"time":case"datetime":this._initDateTimeTool(g);break;case"button":this._initButtonTool(g);break;case"custom":this._initCustomTool(g);break}if(b.visible===false){this._showhideComponent(undefined,g,false)}if(b.theme){this._setToolTheme(b,g)}}},_setToolTheme:function(c,e){var b=this._getComponentById(e);var d=c.theme||this.theme;switch(c.type){case"option":if(c.component=="jqxDropDownList"){b.jqxDropDownList("theme",d)}break;case"number":b.jqxNumberInput("theme",d);break;case"text":b.jqxInput("theme",d);break;case"password":b.jqxPasswordInput("theme",d);break}},_initOptionTool:function(h){var b=this;var j="el_"+h;var c=b._getTool(h);for(var d=0;d<c.options.length;d++){var g=j+"_option_"+d;var e=b.host.find("#"+g);if(e.length>0){e.jqxRadioButton({width:25,theme:b.theme,groupName:"group_"+h}).on("change",function(i){b._onChangeHandler(i)})}var f=b.host.find("#label_"+g);f.data("el",e);f.on("mousedown",function(k){var i=a(this).data("el");i.jqxRadioButton("toggle")})}},_initOptionToolDropDownList:function(j){var l=this;var d="el_"+j;var f=l._getTool(j);var g=this.host.find("#"+d);var h='<div style="height: 20px;"></div>';var b=[];if(f.options&&a.isArray(f.options)){for(var e=0;e<f.options.length;e++){b.push(f.options[e])}}if(f.init){f.init(g)}else{var c=isNaN(parseFloat(f.width))?"auto":f.width;if(f.width&&f.width.toString().indexOf("%")!=-1&&f.columnwidth===undefined){c="100%"}var k=isNaN(parseFloat(f.height))?"30px":f.height;g.jqxDropDownList({theme:l.theme,width:c||"auto",autoDropDownHeight:true,height:k,enableBrowserBoundsDetection:true,source:b,selectedIndex:0})}g.on("change",function(i){l._onChangeHandler(i)})},_initNumberTool:function(g){var c=this;var h="el_"+g;var d=c._getTool(g);var e=this.host.find("#"+h);if(d.init){d.init(e)}else{var f=isNaN(parseFloat(d.width))?"auto":d.width;var b=isNaN(parseFloat(d.height))?"30px":d.height;e.jqxNumberInput({theme:c.theme,width:f,height:b,inputMode:"simple"})}e.on("change",function(i){c._onChangeHandler(i)})},_initBooleanTool:function(f){var j=this;var b="el_"+f;var e=j._getTool(f);var g=this.host.find("#"+b);if(e.init){e.init(g)}else{var c=isNaN(parseFloat(e.width))?"auto":e.width;var i=isNaN(parseFloat(e.height))?"30px":e.height;var d=e.isThreeState==true;if(e.component===undefined||e.component=="jqxCheckBox"){g.jqxCheckBox({theme:j.theme,width:c,height:i,hasThreeStates:d})}else{return}}g.on("change",function(k){j._onChangeHandler(k)});var h=j.host.find("#label_"+b);h.on("mousedown",function(k){var l=j.host.find("#"+b).val();j.host.find("#"+b).val(!l)})},_initTextTool:function(g){var d=this;var h="el_"+g;var e=d._getTool(g);var c=this.host.find("#"+h);if(e.init){e.init(c)}else{var f=isNaN(parseFloat(e.width))?"auto":e.width;var b=isNaN(parseFloat(e.height))?"30px":e.height;c.jqxInput({theme:d.theme,width:f,height:b})}c.on("change",function(i){d._onChangeHandler(i)})},_initLabelTool:function(f){var b=this;var g="el_"+f;var c=b._getTool(f);var e=this.host.find("#"+g);if(c.render&&a.isFunction(c.render)){var d=c.render();e.html(d||"")}},_getTool:function(e){var b=this;var d=e.split("_");var c=b.template[d[0]];if(d[1]){if(a.isArray(c.columns)&&c.columns.length>d[1]){return c.columns[d[1]]}return undefined}return c},_initCustomTool:function(d){var b=this;var f="el_"+d;var c=b._getTool(d);var e=this.host.find("#"+f);if(c.init){c.init(e)}},_initButtonTool:function(g){var c=this;var h="el_"+g;var d=c._getTool(g);var e=this.host.find("#"+h);if(d.init){d.init(e)}else{var f=isNaN(parseFloat(d.width))?"auto":d.width;var b=isNaN(parseFloat(d.height))?"30px":d.height;e.jqxButton({theme:c.theme,width:f,height:b});e.val(d.text===undefined?"Button":d.text)}this.host.find("#"+h).on("click",function(i){c._onButtonClick(e,d)})},_initPasswordTool:function(g){var d=this;var h="el_"+g;var e=d._getTool(g);var c=this.host.find("#"+h);if(e.init){e.init(c)}else{var f=isNaN(parseFloat(e.width))?"auto":e.width;var b=isNaN(parseFloat(e.height))?"25px":e.height;c.jqxPasswordInput({theme:d.theme,width:f,height:b})}c.on("change",function(i){d._onChangeHandler(i)})},_initDateTimeTool:function(h){var e=this;var i="el_"+h;var f=e._getTool(h);var d=this.host.find("#"+i);if(f.init){f.init(d)}else{var g=isNaN(parseFloat(f.width))?"auto":f.width;var c=isNaN(parseFloat(f.height))?"30px":f.height;var b=f.formatString;if(!b){if(f.type=="time"){b="hh mm ss tt"}else{if(f.type=="date"){b="MM/dd/yyyy"}else{b="MM/dd/yyyy hh:mm:ss tt"}}}d.jqxDateTimeInput({theme:e.theme,width:g,height:c,formatString:b,showTimeButton:f.type!="date",showCalendarButton:f.type!="time"})}d.on("valueChanged",function(j){e._onChangeHandler(j)})},getComponentByName:function(c){if(!a.isArray(this.template)){return undefined}for(var d=0;d<this.template.length;d++){if(this.template[d].name==c){return this._getComponentById(d)}if(a.isArray(this.template[d].columns)){for(var b=0;b<this.template[d].columns.length;b++){if(this.template[d].columns[b].name==c){return this._getComponentById(d+"_"+b)}}}}return undefined},_getComponentById:function(c){var b=this.host.find("#el_"+c);return b},_getComponentLabelById:function(c){var b=this.host.find("#label_el_"+c);return b},hideComponent:function(b){this._showhideComponent(b,undefined,false)},showComponent:function(b){this._showhideComponent(b,undefined,true)},_showhideComponent:function(e,h,b){if(!a.isArray(this.template)){return}var d="";if(h===undefined){for(var f=0;f<this.template.length;f++){if(this.template[f].name==e){d=f;break}if(a.isArray(this.template[f].columns)){for(var c=0;c<this.template[f].length;c++){if(this.template[f].columns[c].name==e){d=f+"_"+c;break}}}}}else{d=h}if(d!=""){var g=this.host.find("#rowWrap_el_"+d);if(g&&g.length!=0){if(b){g.show()}else{g.hide()}}}}})})(jqxBaseFramework);
 
 (function(a){a.jqx.jqxWidget("jqxBulletChart","",{});a.extend(a.jqx._jqxBulletChart.prototype,{defineInstance:function(){var b={width:500,height:100,barSize:"50%",ranges:[{startValue:0,endValue:50,color:"#000000",opacity:0.7},{startValue:50,endValue:80,color:"#000000",opacity:0.5},{startValue:80,endValue:100,color:"#000000",opacity:0.3}],pointer:{value:65,label:"Value",size:"25%",color:""},target:{value:85,label:"Target",size:4,color:""},ticks:{position:"far",interval:20,size:10},title:"Title",description:"Description",orientation:"horizontal",labelsFormat:null,labelsFormatFunction:null,animationDuration:400,showTooltip:true,tooltipFormatFunction:null,disabled:false,rtl:false,events:["change"]};if(this===a.jqx._jqxBulletChart.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){if(!a.jqx.dataAdapter){throw new Error("jqxBulletChart: Missing reference to the following module: 'jqxdata.js'.")}this._setDefaultValues();this.render();var c=this;a.jqx.utilities.resize(this.host,function(){if(c._timer){clearTimeout(c._timer)}c._timer=setTimeout(function(){var d=c.animationDuration;c.animationDuration=0;c.render();setTimeout(function(){c.animationDuration=d},0)},10)},false,true)},render:function(){if(this.host.children().length>0){this._removeHandlers();if(this.showTooltip==true){this.host.jqxTooltip("destroy")}this.host.empty()}this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-bulletchart"));this.host.width(this.width);this.host.height(this.height);var n=this.host.width();var d=this.host.height();var l;var j=this.rtl?"rtl":"ltr";if(this.orientation=="horizontal"){l=a("<div style='position: absolute; visibility: hidden; padding: 5px;'><div class='"+this.toThemeProperty("jqx-bulletchart-title")+"' style='direction: "+j+";'>"+this.title+"</div><div class='"+this.toThemeProperty("jqx-bulletchart-description")+"' style='direction: "+j+";'>"+this.description+"</div></div>")}else{if(this.orientation=="vertical"){l=a("<div style='position: absolute; visibility: hidden; padding-bottom: 15px;'><div class='"+this.toThemeProperty("jqx-bulletchart-title")+"' style='width: "+n+"px; direction: "+j+";'>"+this.title+"</div><div class='"+this.toThemeProperty("jqx-bulletchart-description")+"' style='direction: "+j+";'>"+this.description+"</div></div>")}}this.host.append(l);var k=l.outerWidth();var g=l.outerHeight();l.remove();var e,h,i,b,o,m,f,c;if(this.orientation=="horizontal"){e="jqx-bulletchart-title-container-horizontal";h="jqx-bulletchart-chart-container-horizontal";i=this._checkPercentage(this.barSize,this.host);b=k;o=this.barSize;m=0;f=n-b;c=o;if(this.width&&this.width.toString().indexOf("%")>=0){var f=parseFloat(parseFloat(f*100)/n).toString()+"%";var b=parseFloat(parseFloat(b*100)/n).toString()+"%";this._percentageWidth=true}}else{if(this.orientation=="vertical"){e="jqx-bulletchart-title-container-vertical";h="jqx-bulletchart-chart-container-vertical";i=0;b="100%";o=g;m=this._checkPercentage(this.barSize,this.host);f=this.barSize;c=d-o}}if(this.rtl==false||(this.rtl==true&&this.orientation=="vertical")){this.host.append("<div id='"+this.element.id+"titleContainer' class='"+e+"' style='top: "+i+";'></div>")}this.host.append("<div id='"+this.element.id+"ChartContainer' class='"+h+"' style='top: "+i+"; left: "+m+";'></div>");if(this.rtl==true&&this.orientation=="horizontal"){this.host.append("<div id='"+this.element.id+"titleContainer' class='"+e+"' style='top: "+i+";'></div>")}this._titleContainer=a("#"+this.element.id+"titleContainer");this._chartContainer=a("#"+this.element.id+"ChartContainer");this._titleContainer.css({width:b,height:o});this._chartContainer.css({width:f,height:c});this._min=this.ranges[0].startValue;this._max=this.ranges[this.ranges.length-1].endValue;this._interval=this._max-this._min;this._valueToPixelsHorizontal=this._chartContainer.width()/this._interval;this._valueToPixelsVertical=this._chartContainer.height()/this._interval;this._checkValues();this._appendRanges();this._appendPointerAndTarget();this._appendTitleAndDescription();if(this.ticks.position!="none"){this._appendTicksAndLabels()}if(this.disabled==true){this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"))}if(this.showTooltip==true){if(this.host.jqxTooltip!=undefined){this._initializeTooltip();this.host.data().jqxWidget=this}else{throw new Error("jqxBulletChart: Missing reference to the following module: 'jqxtooltip.js'.")}}this._updateValue(this.pointer.value,0,true)},refresh:function(b){if(!b){this.render()}},val:function(b){if(arguments.length==0||(b!=null&&typeof(b)=="object")){return this.pointer.value}else{if(b>this._max){b=this._max}else{if(b<this._min){b=this._min}}if(b!=this.pointer.value){this._updateValue(b,this.pointer.value);this.pointer.value=b;if(this.showTooltip==true){this._updateTooltip()}}}},destroy:function(){a.jqx.utilities.resize(this.host,null,true);this._removeHandlers();if(this.showTooltip==true){this.host.jqxTooltip("destroy")}this.host.remove()},propertyChangedHandler:function(c,d,g,e){if(g!=e||e instanceof Object){var b=true;var f=function(){a.each(g,function(i,h){if(e[i]==undefined){c[d][i]=h}})};switch(d){case"barSize":break;case"ranges":a.each(g,function(i,h){a.each(h,function(k,j){if(e[i]===undefined){return}if(e[i][k]==undefined){c[d][i][k]=j}})});this._setDefaultValues();break;case"pointer":f();this._updatePointer(e,g);return;case"target":f();this._updateTarget(e,g);return;case"ticks":b=false;f();a.each(g,function(i,h){if(g[i]!=c[d][i]){b=!(b&&false)}});break;case"showTooltip":if(e==true){if(this.host.jqxTooltip!=undefined){this._initializeTooltip()}else{throw new Error("jqxBulletChart: Missing reference to the following module: 'jqxtooltip.js'.")}}else{this._removeHandlers();this.host.jqxTooltip("destroy")}break;case"animationDuration":return;case"tooltipFormatFunction":this._updateTooltip();return;case"disabled":if(e==true){this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"))}else{this.host.removeClass(this.toThemeProperty("jqx-fill-state-disabled"))}return}if(b==true){this.render()}}},_raiseEvent:function(g,e){var c=this.events[g];var f=new a.Event(c);f.owner=this;f.args=e;try{var b=this.host.trigger(f)}catch(d){}return b},_removeHandlers:function(){var b=a("#"+this.element.id+"Pointer, #"+this.element.id+"Target");this.removeHandler(b,"mouseenter.bulletchart"+this.element.id);this.removeHandler(b,"mouseleave.bulletchart"+this.element.id)},_setDefaultValues:function(){var b=this.ranges;var c=this.ranges.length;for(var d=0;d<c;d++){if(b[d].startValue==undefined||b[d].endValue==undefined){throw new Error("jqxBulletChart: Each range must have its startValue and endValue set.")}if(b[d].color==undefined){this.ranges[d].color="#000000"}if(b[d].opacity==undefined){this.ranges[d].opacity=1-(1/c)*d}}var g=this.pointer;if(g.value==undefined){this.pointer.value=65}if(g.label==undefined){this.pointer.label="Value"}if(g.size==undefined){this.pointer.size="25%"}if(g.color==undefined){this.pointer.color=""}var f=this.target;if(f.value==undefined){this.target.value=85}if(f.label==undefined){this.target.label="Target"}if(f.size==undefined){this.target.size=5}if(f.color==undefined){this.target.color=""}var e=this.ticks;if(e.position==undefined){this.ticks.position="near"}if(e.interval==undefined){this.ticks.interval=20}if(e.size==undefined){this.ticks.size=10}},_checkValues:function(){if(this.pointer.value>this._max){this.pointer.value=this._max}else{if(this.pointer.value<this._min){this.pointer.value=this._min}}if(this.target.value>this._max){this.target.value=this._max}else{if(this.target.value<this._min){this.target.value=this._min}}},_appendRanges:function(){var e="";var g=this.ranges.length;for(var d=0;d<g;d++){var f=this.ranges[d];var l;if(this.orientation=="horizontal"){var h=this.rtl?"right":"left";var c=(f.startValue-this._min)*this._valueToPixelsHorizontal;var j=(f.endValue-f.startValue)*this._valueToPixelsHorizontal;l="<div class='"+this.toThemeProperty("jqx-bulletchart-range")+" "+this.toThemeProperty("jqx-bulletchart-range-horizontal")+"' style='"+h+": "+c+"px; width: "+j+"px; background-color: "+f.color+"; opacity: "+f.opacity+"'></div>"}else{if(this.orientation=="vertical"){var b=(f.startValue-this._min)*this._valueToPixelsVertical;var k=(f.endValue-f.startValue)*this._valueToPixelsVertical;l="<div class='"+this.toThemeProperty("jqx-bulletchart-range")+" "+this.toThemeProperty("jqx-bulletchart-range-vertical")+"' style='bottom: "+b+"px; height: "+k+"px; background-color: "+f.color+"; opacity: "+f.opacity+"'></div>"}}e+=l}this._chartContainer.append(e)},_appendPointerAndTarget:function(){var o="";var m=this.element.id+"Pointer";var f=this.element.id+"Target";var l=this.pointer.size;var k=this.target.value;var e=this.target.size;var j=k>0?0:parseInt(e);var p=this.pointer.color.length>0?"":this.toThemeProperty("jqx-fill-state-pressed");var g=this.target.color.length>0?"":this.toThemeProperty("jqx-fill-state-pressed");if(this.orientation=="horizontal"){var c=this._normaliseValue(l);var n=this._checkPercentage(l,this._chartContainer);var d=this.rtl?"right":"left";var t=(k-this._min)*this._valueToPixelsHorizontal-j;var u=t+parseInt(e)-this._chartContainer.width();if(t<0){t=0}else{if(u>0){t-=u}}var i=this._normaliseValue(e);o+="<div class='"+g+" "+this.toThemeProperty("jqx-bulletchart-target")+" "+this.toThemeProperty("jqx-bulletchart-target-horizontal")+"' id='"+f+"' style='"+d+": "+t+"px; width: "+i+"; background-color: "+this.target.color+"'></div>";o+="<div class='"+p+" "+this.toThemeProperty("jqx-bulletchart-pointer")+"' id='"+m+"' style='top: "+n+"; height: "+c+"; background-color: "+this.pointer.color+"'></div>"}else{if(this.orientation=="vertical"){var r=this._chartContainer.width();var q=this._normaliseValue(l);var s=this._checkPercentage(l,this._chartContainer);var b=(k-this._min)*this._valueToPixelsVertical-j;var u=b+parseInt(e)-this._chartContainer.height();if(b<0){b=0}else{if(u>0){b-=u}}var h=this._normaliseValue(e);o+="<div class='"+g+" "+this.toThemeProperty("jqx-bulletchart-target")+" "+this.toThemeProperty("jqx-bulletchart-target-vertical")+"' id='"+f+"' style='bottom: "+b+"px; height: "+h+"; background-color: "+this.target.color+"'></div>";o+="<div class='"+p+" "+this.toThemeProperty("jqx-bulletchart-pointer")+"' id='"+m+"' style='left: "+s+"; width: "+q+"; background-color: "+this.pointer.color+"'></div>"}}this._chartContainer.append(o)},_updatePointer:function(c,i){var h=a("#"+this.element.id+"Pointer");if(c.value>this._max){this.pointer.value=this._max}else{if(c.value<this._min){this.pointer.value=this._min}}if(c.value!=i.value){this._updateValue(c.value,i.value);if(this.showTooltip==true){this._updateTooltip()}}if(c.label!=i.label){if(this.showTooltip==true){this._updateTooltip()}}if(c.size!=i.size){var d=c.size;if(this.orientation=="horizontal"){var g=this._checkPercentage(d,this._chartContainer);var b=this._normaliseValue(d);h.css({top:g,height:b})}else{if(this.orientation=="vertical"){var f=this._checkPercentage(d,this._chartContainer);var e=this._normaliseValue(d);h.css({left:f,width:e})}}}if(c.color!=i.color){if(c.color==""){h.css("background-color","");h.addClass(this.toThemeProperty("jqx-fill-state-pressed"))}else{h.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));h.css("background-color",c.color)}}},_updateTarget:function(b,d){var e=a("#"+this.element.id+"Target");if(b.value>this._max){this.target.value=this._max}else{if(b.value<this._min){this.target.value=this._min}}if(b.value!=d.value||b.size!=d.size){var h=b.value;var k=parseInt(b.size);var c=h>0?0:k;if(this.orientation=="horizontal"){var i=this.rtl?"right":"left";var j=(h-this._min)*this._valueToPixelsHorizontal-c;var g=j+k-this._chartContainer.width();if(j<0){j=0}else{if(g>0){j-=g}}if(this.rtl==false){e.css("left",j)}else{e.css("right",j)}e.width(k)}else{if(this.orientation=="vertical"){var f=(h-this._min)*this._valueToPixelsVertical-c;var g=f+k-this._chartContainer.height();if(f<0){f=0}else{if(g>0){f-=g}}e.css({bottom:f,height:k})}}if(this.showTooltip==true){this._updateTooltip()}}if(b.label!=d.label){if(this.showTooltip==true){this._updateTooltip()}}if(b.color!=d.color){if(b.color==""){e.css("background-color","");e.addClass(this.toThemeProperty("jqx-fill-state-pressed"))}else{e.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));e.css("background-color",b.color)}}},_appendTitleAndDescription:function(){var d;if(this.orientation=="horizontal"){if(this.rtl==true){d=this.toThemeProperty("jqx-bulletchart-title-description-rtl")}else{d=this.toThemeProperty("jqx-bulletchart-title-description-ltr")}}else{d=this.toThemeProperty("jqx-bulletchart-title-description-vertical")}var g=this.rtl?"rtl":"ltr";var b="<div id='"+this.element.id+"Title' class='"+this.toThemeProperty("jqx-bulletchart-title")+" "+d+"' style='direction: "+g+";'>"+this.title+"</div><div id='"+this.element.id+"Description' class='"+this.toThemeProperty("jqx-bulletchart-description")+" "+d+"' style='direction: "+g+";'>"+this.description+"</div>";var e=a("<div style='position: absolute; visibility: hidden;'>"+b+"</div>");this._titleContainer.append(e);var h=e.children();var c=a(h[0]).height()+a(h[1]).height();e.remove();var f;if(this.orientation=="horizontal"){if(this.rtl==false){f=this.toThemeProperty("jqx-bulletchart-title-inner-container")+" "+this.toThemeProperty("jqx-bulletchart-title-inner-container-ltr")}else{f=this.toThemeProperty("jqx-bulletchart-title-inner-container")+" "+this.toThemeProperty("jqx-bulletchart-title-inner-container-rtl")}}else{f=""}this._titleContainer.append("<div class='"+f+"' style='height: "+c+"px;'>"+b+"</div>")},_appendTicksAndLabels:function(){var o=a("<div style='position: absolute; visibility: hidden;'></div>");this._chartContainer.append(o);var j="";var e=this._min<0?true:false;var b=this.ticks.size;if(this.orientation=="horizontal"){var k=this._titleContainer.width();var r=this._chartContainer.offset().top-this.host.offset().top;if(this.ticks.position=="both"||this.ticks.position=="far"){var l=this._chartContainer.height()+r}for(var h=0;h<=this._interval;h+=this.ticks.interval){var c=h*this._valueToPixelsHorizontal+k;if(h+this.ticks.interval>this._interval){c-=1}if(e){var d=(h+this._min)==0?true:false;if(d){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-horizontal")+" "+this.toThemeProperty("jqx-bulletchart-zero-tick")+"' style='top: "+r+"px; "+m+": "+c+"px; height: "+this._chartContainer.height()+"px;'></div>";e=false}}var n=this._labelValue(h);o.html(n);var p=c-o.width()/2;var m=this.rtl?"right":"left";if(this.ticks.position=="both"||this.ticks.position=="far"){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-horizontal")+"' style='top: "+l+"px; "+m+": "+c+"px; height: "+b+"px;'></div>";j+="<div class='"+this.toThemeProperty("jqx-bulletchart-labels")+"' style='top: "+(l+b+2)+"px; "+m+": "+p+"px;'>"+n+"</div>"}if(this.ticks.position=="both"||this.ticks.position=="near"){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-horizontal")+"' style='top: "+(r-b)+"px; "+m+": "+c+"px; height: "+b+"px;'></div>";j+="<div class='"+this.toThemeProperty("jqx-bulletchart-labels")+"' style='top: "+(r-(b+o.height()+2))+"px; "+m+": "+p+"px;'>"+n+"</div>"}}}else{if(this.orientation=="vertical"){var g=this._chartContainer.offset().left-this.host.offset().left;if(this.ticks.position=="both"||this.ticks.position=="far"){var q=this._chartContainer.width()}for(var h=0;h<=this._interval;h+=this.ticks.interval){var f=h*this._valueToPixelsVertical;if(h+this.ticks.interval>this._interval){f-=1}if(e){var d=(h+this._min)==0?true:false;if(d){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-vertical")+" "+this.toThemeProperty("jqx-bulletchart-zero-tick")+"' style='left: "+g+"px; bottom: "+f+"px; width: "+q+"px;'></div>";e=false}}if(this.ticks.position=="both"||this.ticks.position=="near"){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-vertical")+"' style='left: "+(g-b)+"px; bottom: "+f+"px; width: "+b+"px;'></div>";var n=this._labelValue(h,"near");o.html(n);var p=o.height()/2-1;j+="<div class='"+this.toThemeProperty("jqx-bulletchart-labels")+"' style='left: "+(g-(b+o.width()+2))+"px; bottom: "+(f-p)+"px;'>"+n+"</div>"}if(this.ticks.position=="both"||this.ticks.position=="far"){j+="<div class='"+this.toThemeProperty("jqx-bulletchart-ticks")+" "+this.toThemeProperty("jqx-bulletchart-ticks-vertical")+"' style='left: "+(q+g)+"px; bottom: "+f+"px; width: "+b+"px;'></div>";var n=this._labelValue(h,"far");o.html(n);var p=o.height()/2-1;j+="<div class='"+this.toThemeProperty("jqx-bulletchart-labels")+"' style='left: "+(q+g+b+2)+"px; bottom: "+(f-p)+"px;'>"+n+"</div>"}}}}this.host.append(j);o.remove()},_labelValue:function(d,b){var e=d+this._min;var c;if(this.labelsFormatFunction){c=this.labelsFormatFunction(e,b)}else{c=a.jqx.dataFormat.formatnumber(e,this.labelsFormat)}return c},_initializeTooltip:function(){var c=this;var d=this._tooltipContent();this.host.jqxTooltip({theme:this.theme,position:"mouse",content:d,trigger:"none",autoHide:false,rtl:this.rtl});this.host.jqxTooltip("getInstance").val=a.proxy(this.val,this);var b=a("#"+this.element.id+"Pointer, #"+this.element.id+"Target");this.addHandler(b,"mouseenter.bulletchart"+this.element.id,function(e){if(c.disabled==false){c.host.jqxTooltip("open",e.pageX,e.pageY);if(e.target.id==c.element.id+"Pointer"&&c.pointer.color==""||e.target.id==c.element.id+"Target"&&c.target.color==""){a(e.target).removeClass(c.toThemeProperty("jqx-fill-state-pressed"));a(e.target).addClass(c.toThemeProperty("jqx-fill-state-hover"))}}});this.addHandler(b,"mouseleave.bulletchart"+this.element.id,function(e){if(c.disabled==false){c.host.jqxTooltip("close");if(e.target.id==c.element.id+"Pointer"&&c.pointer.color==""||e.target.id==c.element.id+"Target"&&c.target.color==""){a(e.target).removeClass(c.toThemeProperty("jqx-fill-state-hover"));a(e.target).addClass(c.toThemeProperty("jqx-fill-state-pressed"))}}})},_updateTooltip:function(){this.host.jqxTooltip({content:this._tooltipContent()})},_tooltipContent:function(){var c;if(this.tooltipFormatFunction){c=this.tooltipFormatFunction(this.pointer.value,this.target.value)}else{var b=a.jqx.dataFormat.formatnumber(this.pointer.value,this.labelsFormat);var d=a.jqx.dataFormat.formatnumber(this.target.value,this.labelsFormat);c="<div>"+this.pointer.label+": "+b+"</div><div>"+this.target.label+": "+d+"</div>"}return c},_updateValue:function(m,d,k){var j=this;var c=a("#"+this.element.id+"Pointer");var g,h,l,n;var f=function(p,r,q){if(j._min>=0){if(p=="vertical"){c.css("bottom",0)}else{if(j.rtl==true&&p=="horizontal"){c.css("right",0)}}g=(m-j._min)*r}else{if(m>=0){if(p=="horizontal"){if(j.rtl==true){h="right";l="left"}else{h="left"}}else{if(p=="vertical"){h="bottom";l="top"}}var o=-j._min*r}else{if(p=="horizontal"){if(j.rtl==true){h="left"}else{h="right";l="left"}}else{if(p=="vertical"){h="top"}}var o=q+j._min*r}c.css(h,o);if(l){c.css(l,"")}if(m*d<0){if(p=="horizontal"){c.width(0)}else{if(p=="vertical"){c.height(0)}}}g=Math.abs(m*r)}return g};var i=function(){if(!k){j._raiseEvent("0")}};if(this.orientation=="horizontal"){var e=f("horizontal",this._valueToPixelsHorizontal,this._chartContainer.width());setTimeout(function(){c.animate({width:e},j.animationDuration,i)},0)}else{if(this.orientation=="vertical"){var b=f("vertical",this._valueToPixelsVertical,this._chartContainer.height());setTimeout(function(){c.animate({height:b},j.animationDuration,i)},0)}}},_checkPercentage:function(f,d){var c=-1;if(f.indexOf){c=f.indexOf("%")}var g=function(h){if(!f.indexOf||f.indexOf("px")==-1){return h}else{return parseFloat(h.slice(0,f.indexOf("px")))}};var e=function(h){return parseFloat(h.slice(0,c))};if(c==-1){var b;if(this.orientation=="horizontal"){b=d.height()}else{if(this.orientation=="vertical"){b=d.width()}}return((b-g(f))/2)+"px"}else{return((100-e(f))/2)+"%"}},_normaliseValue:function(b){if(!b.indexOf||(b.indexOf("px")==-1&&b.indexOf("%")==-1)){return b+"px"}else{return b}}})})(jqxBaseFramework);
 
@@ -40,11 +40,11 @@
 
 (function(a){a.jqx.jqxWidget("jqxButtonGroup","",{});a.extend(a.jqx._jqxButtonGroup.prototype,{defineInstance:function(){var b={mode:"default",roundedCorners:true,disabled:false,enableHover:false,orientation:"horizontal",width:null,height:null,_eventsMap:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend")},_events:["selected","unselected","buttonclick"],_buttonId:{},_selected:null,_pressed:null,rtl:false,template:"",_baseId:"group_button",aria:{"aria-disabled":{name:"disabled",type:"boolean"}}};if(this===a.jqx._jqxButtonGroup.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){var c=this;c._isTouchDevice=a.jqx.mobile.isTouchDevice();a.jqx.aria(c);c._baseId=c._baseId+c.element.id;c.addHandler(c.host,"selectstart",function(d){if(!c.disabled){d.preventDefault()}})},refresh:function(){var b=this;if(b.width){if(b.width.toString()&&b.width.toString().indexOf("%")>=0){b.element.style.width=b.width}else{b.host.width(b.width)}}if(b.height){b.host.height(b.height)}b._refreshButtons()},render:function(){this.refresh()},resize:function(){this.refresh()},_getEvent:function(c){var b=this;if(b._isTouchDevice){var d=b._eventsMap[c]||c;d+="."+b.element.id;return d}c+="."+b.element.id;return c},_refreshButtons:function(){var f=this;if(f.lastElement){f.lastElement.remove()}f.lastElement=a("<div style='clear: both;'></div>");var c=f.host.children(),e=c.length,g;switch(f.mode){case"radio":f.host.attr("role","radiogroup");break;case"checkbox":case"default":f.host.attr("role","group");break}var d=new Number(100/e).toFixed(2);for(var b=0;b<e;b+=1){g=a(c[b]);if(f.width){if(f.orientation==="horizontal"){g.css("width",d+"%");g.css("box-sizing","border-box");g.css("-moz-box-sizing","border-box");g.css("white-space","nowrap");g.css("text-overflow","ellipsis");g.css("overflow","hidden")}else{g.css("box-sizing","border-box");g.css("-moz-box-sizing","border-box");g.css("width","100%")}}f._refreshButton(g,b,e)}f.lastElement.appendTo(f.host)},_refreshButton:function(c,b,d){(function(e){var f=this;e=f._render(e);f._removeStyles(e);f._addStyles(e,b,d);f._performLayout(e);f._removeButtonListeners(e);f._addButtonListeners(e);f._handleButtonId(e,b);if(f.mode==="radio"){e.attr("role","radio")}else{e.attr("role","button")}e.attr("disabled",f.disabled);if(f.disabled){e.addClass(f.toThemeProperty("jqx-fill-state-disabled"))}else{e.removeClass(f.toThemeProperty("jqx-fill-state-disabled"))}}).apply(this,[c])},destroy:function(b){var f=this;var d=f.host.children(),e=d.length,g;for(var c=0;c<e;c+=1){g=a(d[c]);f._removeStyles(g);f._removeButtonListeners(g)}if(b!==false){f.host.remove()}},_render:function(b){var c=this;if(b[0].tagName.toLowerCase()==="button"){return c._renderFromButton(b)}else{return c._renderButton(b)}},_renderButton:function(b){var c;b.wrapInner("<div/>");return b},_removeStyles:function(b){var c=this;var d=c.toThemeProperty;c.host.removeClass("jqx-widget");c.host.removeClass("jqx-rc-all");b.removeClass(d.call(this,"jqx-fill-state-normal"));b.removeClass(d.call(this,"jqx-group-button-normal"));b.removeClass(d.call(this,"jqx-rc-tl"));b.removeClass(d.call(this,"jqx-rc-bl"));b.removeClass(d.call(this,"jqx-rc-tr"));b.removeClass(d.call(this,"jqx-rc-br"));b.css("margin-left",0)},_addStyles:function(c,b,e){var d=this;var f=this.toThemeProperty;d.host.addClass(f.call(this,"jqx-widget"));d.host.addClass(f.call(this,"jqx-rc-all"));d.host.addClass(f.call(this,"jqx-buttongroup"));c.addClass(f.call(this,"jqx-button"));c.addClass(f.call(this,"jqx-group-button-normal"));c.addClass(f.call(this,"jqx-fill-state-normal"));if(d.template){c.addClass(f.call(this,"jqx-"+d.template))}if(d.roundedCorners){if(b===0){d._addRoundedCorners(c,true)}else{if(b===e-1){d._addRoundedCorners(c,false)}}}if(d.orientation==="horizontal"){c.css("margin-left",-parseInt(c.css("border-left-width"),10))}else{c.css("margin-top",-parseInt(c.css("border-left-width"),10))}},_addRoundedCorners:function(b,d){var c=this;var e=c.toThemeProperty;if(c.orientation==="horizontal"){if(d){b.addClass(e.call(this,"jqx-rc-tl"));b.addClass(e.call(this,"jqx-rc-bl"))}else{b.addClass(e.call(this,"jqx-rc-tr"));b.addClass(e.call(this,"jqx-rc-br"))}}else{if(d){b.addClass(e.call(this,"jqx-rc-tl"));b.addClass(e.call(this,"jqx-rc-tr"))}else{b.addClass(e.call(this,"jqx-rc-bl"));b.addClass(e.call(this,"jqx-rc-br"))}}},_centerContent:function(c,b){c.css({"margin-top":(b.height()-c.height())/2,"margin-left":(b.width()-c.width())/2});return c},_renderFromButton:function(b){var c=b.val();if(c===""){c=b.html()}var e;var d=b[0].id;b.wrap("<div/>");e=b.parent();e.attr("style",b.attr("style"));b.remove();a.jqx.utilities.html(e,c);e[0].id=d;return e},_performLayout:function(b){if(this.orientation==="horizontal"){if(this.rtl){b.css("float","right")}else{b.css("float","left")}}else{b.css("float","none")}this._centerContent(a(b.children()),b)},_mouseEnterHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)||!b.enableHover){return}var f=b.toThemeProperty;c.addClass(f.call(b,"jqx-group-button-hover"));c.addClass(f.call(b,"jqx-fill-state-hover"))},_mouseLeaveHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)||!b.enableHover){return}var f=b.toThemeProperty;c.removeClass(f.call(b,"jqx-group-button-hover"));c.removeClass(f.call(b,"jqx-fill-state-hover"))},_mouseDownHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)){return}b._pressed=c;var f=b.toThemeProperty;c.addClass(f.call(b,"jqx-group-button-pressed"));c.addClass(f.call(b,"jqx-fill-state-pressed"))},_mouseUpHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)){return}b._handleSelection(c);b._pressed=null;c=b._buttonId[c[0].id];b._raiseEvent(2,{index:c.num,button:c.btn})},_isDisabled:function(b){if(!b||!b[0]){return false}return this._buttonId[b[0].id].disabled},_documentUpHandler:function(d){var b=d.data.self,c=b._pressed;if(c&&!b._buttonId[c[0].id].selected){c.removeClass(b.toThemeProperty("jqx-fill-state-pressed"));b._pressed=null}},_addButtonListeners:function(c){var e=this;var b=e.addHandler;var d=e._getEvent;b(c,d.call(e,"mouseenter"),e._mouseEnterHandler,{self:e});b(c,d.call(e,"mouseleave"),e._mouseLeaveHandler,{self:e});b(c,d.call(e,"mousedown"),e._mouseDownHandler,{self:e});b(c,d.call(e,"mouseup"),e._mouseUpHandler,{self:e});b(a(document),d.call(e,"mouseup"),e._documentUpHandler,{self:e})},_removeButtonListeners:function(c){var e=this;var b=e.removeHandler;var d=e._getEvent;b(c,d.call(e,"mouseenter"),e._mouseEnterHandler);b(c,d.call(e,"mouseleave"),e._mouseLeaveHandler);b(c,d.call(e,"mousedown"),e._mouseDownHandler);b(c,d.call(e,"mouseup"),e._mouseUpHandler);b(a(document),d.call(e,"mouseup"),e._documentUpHandler)},_handleSelection:function(b){var c=this;if(c.mode==="radio"){c._handleRadio(b)}else{if(c.mode==="checkbox"){c._handleCheckbox(b)}else{c._handleDefault(b)}}},_handleRadio:function(b){var d=this;var c=d._getSelectedButton();if(c&&c.btn[0].id!==b[0].id){d._unselectButton(c.btn,true)}for(var e in d._buttonId){d._buttonId[e].selected=true;d._unselectButton(d._buttonId[e].btn,false)}d._selectButton(b,true)},_handleCheckbox:function(c){var d=this;var b=d._buttonId[c[0].id];if(b.selected){d._unselectButton(b.btn,true)}else{d._selectButton(c,true)}},_handleDefault:function(b){var c=this;c._selectButton(b,false);for(var d in c._buttonId){c._buttonId[d].selected=true;c._unselectButton(c._buttonId[d].btn,false)}},_getSelectedButton:function(){var b=this;for(var c in b._buttonId){if(b._buttonId[c].selected){return b._buttonId[c]}}return null},_getSelectedButtons:function(){var c=this;var b=[];for(var d in c._buttonId){if(c._buttonId[d].selected){b.push(c._buttonId[d].num)}}return b},_getButtonByIndex:function(b){var c=this;var e;for(var d in c._buttonId){if(c._buttonId[d].num===b){return c._buttonId[d]}}return null},_selectButton:function(c,e){var d=this;var b=d._buttonId[c[0].id];if(b.selected){return}var f=d.toThemeProperty;b.btn.addClass(f.call(this,"jqx-group-button-pressed"));b.btn.addClass(f.call(this,"jqx-fill-state-pressed"));b.selected=true;if(e){d._raiseEvent(0,{index:b.num,button:b.btn})}a.jqx.aria(b.btn,"aria-checked",true)},_unselectButton:function(c,e){var d=this;var b=d._buttonId[c[0].id];if(!b.selected){return}var f=d.toThemeProperty;b.btn.removeClass(f.call(this,"jqx-group-button-pressed"));b.btn.removeClass(f.call(this,"jqx-fill-state-pressed"));b.selected=false;if(e){d._raiseEvent(1,{index:b.num,button:b.btn})}a.jqx.aria(b.btn,"aria-checked",false)},setSelection:function(b){var d=this;if(b===-1){d.clearSelection();return}if(d.mode==="checkbox"){if(typeof b==="number"){d._setSelection(b)}else{for(var c=0;c<b.length;c+=1){d._setSelection(b[c])}}}else{if(typeof b==="number"&&d.mode==="radio"){d._setSelection(b)}}},_setSelection:function(b){var d=this;var c=d._getButtonByIndex(b);if(c){d._handleSelection(c.btn)}},getSelection:function(){var b=this;if(b.mode==="radio"){if(b._getSelectedButton()){return b._getSelectedButton().num}}else{if(b.mode==="checkbox"){return b._getSelectedButtons()}}return undefined},disable:function(){var c=this;c.disabled=true;var d;for(var b in c._buttonId){d=c._buttonId[b];c.disableAt(d.num)}a.jqx.aria(c,"aria-disabled",true)},enable:function(){var c=this;c.disabled=false;var d;for(var b in c._buttonId){d=c._buttonId[b];c.enableAt(d.num)}a.jqx.aria(c,"aria-disabled",false)},disableAt:function(b){var d=this;var c=d._getButtonByIndex(b);if(!c.disabled){c.disabled=true;c.btn.addClass(d.toThemeProperty("jqx-fill-state-disabled"))}},enableAt:function(b){var d=this;var c=d._getButtonByIndex(b);if(c.disabled){c.disabled=false;c.btn.removeClass(d.toThemeProperty("jqx-fill-state-disabled"))}},_handleButtonId:function(b,d){var f=b[0].id,e={btn:b,num:d,selected:false},c;if(!f){f=this._baseId+b.index()}b[0].id=f;this._buttonId[f]=e;return f},_raiseEvent:function(d,c){var b=a.Event(this._events[d]);b.args=c;return this.host.trigger(b)},_unselectAll:function(){for(var b in this._buttonId){this._unselectButton(this._buttonId[b].btn,false)}},clearSelection:function(){this._unselectAll()},propertyChangedHandler:function(b,c,e,d){if(c==="theme"&&d!==null){a.jqx.utilities.setTheme(e,d,b.host)}if(c==="template"){b.refresh()}if(c==="mode"){b._unselectAll();b.refresh();return}else{if(c==="disabled"){if(d){b.disable()}else{b.enable()}}else{b.refresh()}}}})})(jqxBaseFramework);
 
-(function(a){a.jqx.jqxWidget("jqxCalendar","",{});a.extend(a.jqx._jqxCalendar.prototype,{defineInstance:function(){var b={disabled:false,restrictedDates:new Array(),multipleMonthRows:1,multipleMonthColumns:1,minDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),maxDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),min:new Date(1900,0,1),max:new Date(2100,0,1),navigationDelay:400,stepMonths:1,width:null,height:null,value:a.jqx._jqxDateTimeInput.getDateTime(new Date()),firstDayOfWeek:0,showWeekNumbers:false,showDayNames:true,enableWeekend:false,enableOtherMonthDays:true,showOtherMonthDays:true,rowHeaderWidth:25,columnHeaderHeight:25,titleHeight:30,dayNameFormat:"firstTwoLetters",monthNameFormat:"default",titleFormat:["MMMM yyyy","yyyy","yyyy","yyyy"],enableViews:true,readOnly:false,culture:"default",enableFastNavigation:true,enableHover:true,enableAutoNavigation:true,enableTooltips:false,backText:"Back",forwardText:"Forward",specialDates:new Array(),keyboardNavigation:true,selectionMode:"default",selectableDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],todayString:"Today",clearString:"Clear",showFooter:false,selection:{from:null,to:null},canRender:true,_checkForHiddenParent:true,height:null,rtl:false,view:"month",views:["month","year","decade"],changing:null,change:null,localization:{backString:"Back",forwardString:"Forward",todayString:"Today",clearString:"Clear",calendar:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss"}}},events:["backButtonClick","nextButtonClick","valuechanged","cellMouseDown","cellMouseUp","cellSelected","cellUnselected","change","viewChange"]};if(this===a.jqx._jqxCalendar.prototype){return b}a.extend(true,this,b);this.minDate._setYear(1900);this.minDate._setMonth(1);this.minDate._setDay(1);this.minDate._setHours(0);this.minDate._setMinutes(0);this.minDate._setSeconds(0);this.minDate._setMilliseconds(0);this.maxDate._setYear(2100);this.maxDate._setMonth(1);this.maxDate._setDay(1);this.maxDate._setHours(0);this.maxDate._setMinutes(0);this.maxDate._setSeconds(0);this.maxDate._setMilliseconds(0);this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0);return b},_createFromInput:function(d){var g=this;if(g.element.nodeName.toLowerCase()=="input"){g.field=g.element;if(g.field.className){g._className=g.field.className}var f={title:g.field.title};if(g.field.value){f.value=g.field.value}if(g.field.checked){f.checked=true}if(g.field.id.length){f.id=g.field.id.replace(/[^\w]/g,"_")+"_"+d}else{f.id=a.jqx.utilities.createId()+"_"+d}if(g.field.getAttribute("min")){var e=new Date(g.field.getAttribute("min"));if(e!="Invalid Date"){g.min=e}}if(g.field.getAttribute("max")){var c=new Date(g.field.getAttribute("max"));if(c!="Invalid Date"){g.max=c}}var i=a("<div></div>",f);i[0].style.cssText=g.field.style.cssText;if(!g.width){g.width=a(g.field).width()}if(!g.height){g.height=a(g.field).outerHeight()}a(g.field).hide().after(i);var h=g.host.data();g.host=i;g.host.data(h);g.element=i[0];g.element.id=g.field.id;g.field.id=f.id;if(g._className){g.host.addClass(g._className);a(g.field).removeClass(g._className)}if(g.field.tabIndex){var b=g.field.tabIndex;g.field.tabIndex=-1;g.element.tabIndex=b}}},createInstance:function(i){var h=this;h._createFromInput("jqxCalendar");this.setCalendarSize();if(this.element.id===""){this.element.id=a.jqx.utilities.createId()}if(a.type(this.value)=="date"){this.value=a.jqx._jqxDateTimeInput.getDateTime(this.value)}this.element.innerHTML="";this.host.attr("data-role","calendar");var b=this.element.id;var j=this;this.propertyChangeMap.width=function(k,m,l,n){j.setCalendarSize()};this.propertyChangeMap.height=function(k,m,l,n){j.setCalendarSize()};if(a.global){a.global.preferCulture(this.culture)}if(this.culture!="default"){if(a.global){a.global.preferCulture(this.culture);this.localization.calendar=a.global.culture.calendar}else{if(Globalize){var d=Globalize.culture(this.culture);this.localization.calendar=d.calendar}}this.firstDayOfWeek=this.localization.calendar.firstDay}if(this.localization.backString!="Back"){this.backText=this.localization.backString}if(this.localization.forwardString!="Forward"){this.forwardText=this.localization.forwardString}if(this.localization.todayString!="Today"&&this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString!="Clear"&&this.localization.clearString){this.clearString=this.localization.clearString}if(this.localization.calendar&&this.localization.calendar.firstDay!=undefined&&this.culture!="default"){this.firstDayOfWeek=this.localization.calendar.firstDay}this.setMaxDate(this.max,false);this.setMinDate(this.min,false);if(!this.host.attr("tabIndex")){this.host.attr("tabIndex",0)}this.host.css("outline","none");this.host.addClass(this.toThemeProperty("jqx-calendar"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.host.addClass(this.toThemeProperty("jqx-rc-all"));this._addInput();if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1&&this.views.indexOf("month")==-1){this.view="decade"}this.addHandler(this.host,"keydown",function(l){var k=true;if(j.keyboardNavigation){if(j._handleKey!=undefined){k=j._handleKey(l);if(!k){if(l.stopPropagation){l.stopPropagation()}if(l.preventDefault){l.preventDefault()}}}}return k});var e=false;var g=this;var f=false;if(j.width!=null&&j.width.toString().indexOf("%")!=-1){f=true}if(j.height!=null&&j.height.toString().indexOf("%")!=-1){f=true}a.jqx.utilities.resize(this.host,function(){var k=g.host.find("#View"+j.element.id);if(!e){e=true;g.render()}else{g.refreshTitle(k)}if(f){if(j.refreshTimer){clearTimeout(j.refreshTimer)}j.refreshTimer=setTimeout(function(){j.refreshControl()},1)}},false,this._checkForHiddenParent);var c="View";this.propertyChangeMap.disabled=function(k,m,l,n){if(n){k.host.addClass(j.toThemeProperty("jqx-fill-state-disabled"))}else{k.host.removeClass(j.toThemeProperty("jqx-fill-state-disabled"))}j.refreshControl()}},_addInput:function(){var b=this.host.attr("name");this.input=a("<input type='hidden'/>");this.host.append(this.input);if(b){this.input.attr("name",b)}this.input.val(this.getDate().toString())},setCalendarSize:function(){if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.host.width(this.width)}else{if(this.width!=undefined&&!isNaN(this.width)){this.host.width(this.width)}}if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.host.css("width",this.width)}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.host.height(this.height)}else{if(this.height!=undefined&&!isNaN(this.height)){this.host.height(this.height)}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.host.css("height",this.height)}},_getYearAndMonthPart:function(c){if(!c){return new Date(1900,0,1)}var b=new Date(c.getFullYear(),c.getMonth(),1);return b},_handleKey:function(p){if(this.readOnly){return true}var A=p.keyCode;var y=this;var b=this._getSelectedDate();if(b==undefined){if(this.view=="month"&&(A==37||A==38||A==39||A==40)){this.selectedDate=new Date(this.value.year,this.value.month-1,1);this._selectDate(this.selectedDate,"key");b=this.selectedDate}else{return true}}if(p.altKey){return true}if(this._animating){return false}if(this.view!="month"&&A==13){var d=this._getSelectedCell();this._setDateAndSwitchViews(d,p,"keyboard")}if(this.view=="year"){var w=b.getMonth();var j=this._getYearAndMonthPart(this.getMinDate());var m=this._getYearAndMonthPart(this.getMaxDate());switch(A){case 37:if(w==0){var h=new Date(b.getFullYear()-1,11,1);if(h>=j){this.selectedDate=h;this.navigateBackward()}else{if(this.selectedDate!=j){this.selectedDate=j;this.navigateBackward()}}}else{var h=new Date(b.getFullYear(),w-1,1);if(h>=j){this._selectDate(h,"key")}}return false;case 38:var h=new Date(b.getFullYear(),w-4,1);if(h<j){h=j}if(w-4<0){this.selectedDate=h;this.navigateBackward()}else{this._selectDate(h,"key")}return false;case 40:var h=new Date(b.getFullYear(),w+4,1);if(h>m){h=m}if(w+4>11){this.selectedDate=h;this.navigateForward()}else{this._selectDate(h,"key")}return false;case 39:if(w==11){var h=new Date(b.getFullYear()+1,0,1);if(h<=m){this.selectedDate=h;this.navigateForward()}else{if(this.selectedDate!=m){this.selectedDate=m;this.navigateForward()}}}else{var h=new Date(b.getFullYear(),w+1,1);if(h<=m){this._selectDate(h,"key")}}return false}return true}if(this.view=="decade"){var o=this._renderStartDate.getFullYear();var k=this._renderEndDate.getFullYear();var n=b.getFullYear();var v=this.getMinDate().getFullYear();var c=this.getMaxDate().getFullYear();switch(A){case 37:if(n-1>=v){if(n<=o){this.selectedDate=new Date(n-1,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(n-1,b.getMonth(),1),"key")}}return false;case 38:var x=n-4;if(n-4<v){x=v}if(x<o){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 40:var x=n+4;if(x>c){x=c}if(x>k){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 39:if(n+1<=c){if(n==k){this.selectedDate=new Date(n+1,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(n+1,b.getMonth(),1),"key")}}return false}return true}var u=new a.jqx._jqxDateTimeInput.getDateTime(b);var f=this.getViewStart();var e=this.getViewEnd();var t=u;var s=a.data(this.element,"View"+this.element.id);if(s==undefined||s==null){return true}if(A==36){u._setDay(1);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}if(A==35){var r=this.value._daysInMonth(this.value.year,this.value.month);u._setDay(r);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}var g=1;if(p.ctrlKey){g=12}if(A==34){var z=this.navigateForward(g);if(z){u._addMonths(g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==33){var z=this.navigateBackward(g);if(z){u._addMonths(-g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==38){u._addDays(-7);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){this.value.day=l.getDate();this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==40){u._addDays(7);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){this.value.day=l.getDate();this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}if(A==37){u._addDays(-1);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}if(this._isDisabled(u.dateTime)){return false}this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==39){u._addDays(1);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}return true},render:function(){if(!this.canRender){return}this.host.children().remove();var c=this._renderSingleCalendar("View"+this.element.id);var b=this;this.host.append(c)},addSpecialDate:function(b,c,d){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){var e=this.specialDates.length;this.specialDates[e]={Date:b,Class:c,Tooltip:d};this.refreshControl()}},refresh:function(c){var b=this;this.render();setTimeout(function(){b.refreshControl()})},invalidate:function(){this.refreshControl()},refreshControl:function(){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){this.refreshSingleCalendar("View"+this.element.id,null)}},getViewStart:function(){var c=this.getVisibleDate();var b=this.getFirstDayOfWeek(c);return b.dateTime},getViewEnd:function(){var c=this.getViewStart();var b=new a.jqx._jqxDateTimeInput.getDateTime(c);b._addDays(41);return b.dateTime},refreshSingleCalendar:function(e,l){if(!this.canRender){return}var j=this.host.find("#"+e);var f=this.getVisibleDate();var c=this.getFirstDayOfWeek(f);this.refreshCalendarCells(j,c,e);this.refreshTitle(j);this.refreshRowHeader(j,e);if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var b=parseInt(this.month.css("padding-top"));var g=this.host.height()-2*b;var k=g-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){k=this.month.height()-this.titleHeight}if(this.showFooter){k-=20}var d=j.find("#cellsTable"+e);var i=j.find("#calendarRowHeader"+e);d.height(k);i.height(k)},refreshRowHeader:function(s,m){if(!this.showWeekNumbers){return}var c=this.getVisibleDate();var h=this.getFirstDayOfWeek(c);var n=h.dayOfWeek;var t=this.getWeekOfYear(h);var f=new a.jqx._jqxDateTimeInput.getDateTime(new Date(h.dateTime));f._addDays(5);f.dayOfWeek=f.dateTime.getDay();var k=this.getWeekOfYear(f);var e=this.rowHeader.find("table");e.width(this.rowHeaderWidth);var g=h;var q=new Array();for(var p=0;p<6;p++){var o=t.toString();var b=new a.jqx._jqxCalendar.cell(g.dateTime);var l=p+1+this.element.id;var j=a(e[0].rows[p].cells[0]);b.element=j;b.row=p;b.column=0;var d=j.find("#headerCellContent"+l);d.addClass(this.toThemeProperty("jqx-calendar-row-cell"));d[0].innerHTML=t;q[p]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addWeeks(1)));t=this.getWeekOfYear(g)}var r=a.data(this.element,s[0].id);r.rowCells=q;this._refreshOtherMonthRows(r,m)},_refreshOtherMonthRows:function(f,e){if(this.showOtherMonthDays){return}this._displayLastRow(true,e);this._displayFirstRow(true,e);var d=false;var g=false;for(var c=0;c<f.cells.length;c++){var b=f.cells[c];if(b.isVisible&&c<7){d=true}else{if(b.isVisible&&c>=f.cells.length-7){g=true}}}if(!d){this._displayFirstRow(false,e)}if(!g){this._displayLastRow(false,e)}},_displayLastRow:function(b,c){var g=this.host.find("#"+c);var f=g.find("#calendarRowHeader"+g[0].id).find("table");var d=null;if(this.showWeekNumbers){if(f[0].cells){var d=a(f[0].rows[5])}}var e=a(g.find("#cellTable"+g[0].id)[0].rows[5]);if(b){if(this.showWeekNumbers&&d){d.css("display","table-row")}e.css("display","table-row")}else{if(this.showWeekNumbers&&d){d.css("display","none")}e.css("display","none")}},_displayFirstRow:function(b,c){var e=this.host.find("#"+c);var d=e.find("#calendarRowHeader"+e[0].id).find("table");var f=null;if(this.showWeekNumbers){if(d[0].cells){var f=a(d[0].rows[0])}}var g=a(e.find("#cellTable"+e[0].id)[0].rows[0]);if(b){if(this.showWeekNumbers&&f){f.css("display","table-row")}g.css("display","table-row")}else{if(this.showWeekNumbers&&f){f.css("display","none")}g.css("display","none")}},_renderSingleCalendar:function(q,l){if(!this.canRender){return}var n=this.host.find("#"+q.toString());if(n!=null){n.remove()}var v=a("<div id='"+q.toString()+"'></div>");var b=this.getVisibleDate();var m=this.getFirstDayOfWeek(b);var e=new a.jqx._jqxDateTimeInput.getDateTime(m.dateTime);e._addMonths(1);var u=a.jqx._jqxCalendar.monthView(m,e,null,null,null,v);if(l==undefined||l==null){this.host.append(v);v[0].style.width="100%";v[0].style.height="100%"}else{l.append(v)}a.data(this.element,q,u);var t=parseInt(v.css("padding-top"));var s=this.host.height()-2*t;var r=s-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){r=s-this.titleHeight}if(this.showFooter){r-=20}if(this.rowHeaderWidth<0){this.rowHeaderWidth=0}if(this.columnHeaderHeight<0){this.columnHeaderHeight=0}if(this.titleHeight<0){this.titleHeight=0}var g=this.rowHeaderWidth;var k=this.columnHeaderHeight;if(!this.showWeekNumbers){g=0}if(!this.showDayNames){k=0}var x="<div style='height:"+this.titleHeight+"px;'><table role='grid' style='margin: 0px; width: 100%; height: 100%; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr role='row' id='calendarTitle' width='100%'><td role='gridcell' NOWRAP id='leftNavigationArrow'></td><td aria-live='assertive' aria-atomic='true' role='gridcell' align='center' NOWRAP id='calendarTitleHeader'></td><td role='gridcell' NOWRAP id='rightNavigationArrow'></td></tr></table></div>";var c="<table role='grid' class='"+this.toThemeProperty("jqx-calendar-month")+"' style='margin: 0px; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr role='row' id='calendarHeader' height='"+k+"'><td role='gridcell' id='selectCell' width='"+g+"'></td><td role='gridcell' colspan='2' style='border: none; padding-left: 2px; padding-right: 2px' id='calendarColumnHeader'></td></tr><tr role='row' id='calendarContent'><td role='gridcell' id='calendarRowHeader' valign='top' height='"+r+"' width='"+g+"'></td><td role='gridcell' valign='top' colspan='2' style='padding-left: 2px; padding-right: 2px' id='cellsTable' height='"+r+"'></td></tr></table>";var p="<div id='footer' style='margin: 0px; display: none; height:"+d+"px;'><table style='width: 100%; height: 100%; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr id='calendarFooter'><td align='right' id='todayButton'></td><td align='left' colspan='2' id=doneButton></td></tr></table></div>";v[0].innerHTML=x+c+p;this.header=v.find("#calendarHeader");this.header[0].id="calendarHeader"+q;this.header.addClass(this.toThemeProperty("calendar-header"));this.columnHeader=v.find("#calendarColumnHeader");this.columnHeader[0].id="calendarColumnHeader"+q;this.table=v.find("#cellsTable");this.table[0].id="cellsTable"+q;this.rowHeader=v.find("#calendarRowHeader");this.rowHeader[0].id="calendarRowHeader"+q;this.selectCell=v.find("#selectCell");this.selectCell[0].id="selectCell"+q;this.title=v.find("#calendarTitle");this.title[0].id="calendarTitle"+q;this.leftButton=v.find("#leftNavigationArrow");this.leftButton[0].id="leftNavigationArrow"+q;this.titleHeader=v.find("#calendarTitleHeader");this.titleHeader[0].id="calendarTitleHeader"+q;this.rightButton=v.find("#rightNavigationArrow");this.rightButton[0].id="rightNavigationArrow"+q;this.footer=v.find("#calendarFooter");this._footer=v.find("#footer");this._footer[0].id="footer"+q;this.footer[0].id="calendarFooter"+q;this.todayButton=v.find("#todayButton");this.todayButton[0].id="todayButton"+q;this.doneButton=v.find("#doneButton");this.doneButton[0].id="doneButton"+q;this.title.addClass(this.toThemeProperty("jqx-calendar-title-container"));var d=20;if(this.showFooter){this._footer.css("display","block")}v.find("tr").addClass(this.toThemeProperty("jqx-reset"));v.addClass(this.toThemeProperty("jqx-widget-content"));v.addClass(this.toThemeProperty("jqx-calendar-month-container"));this.month=v;this.selectCell.addClass(this.toThemeProperty("jqx-reset"));this.selectCell.addClass(this.toThemeProperty("jqx-calendar-top-left-header"));if(this.showWeekNumbers){this._renderRowHeader(v)}else{this.table[0].colSpan=3;this.columnHeader[0].colSpan=3;this.rowHeader.css("display","none");this.selectCell.css("display","none")}if(this.showFooter){this.footer.height(20);var j=a("<a href='javascript:;'>"+this.todayString+"</a>");j.appendTo(this.todayButton);var i=a("<a href='javascript:;'>"+this.clearString+"</a>");i.appendTo(this.doneButton);i.addClass(this.toThemeProperty("jqx-calendar-footer"));j.addClass(this.toThemeProperty("jqx-calendar-footer"));var o=this;var f="mousedown";if(a.jqx.mobile.isTouchDevice()){f=a.jqx.mobile.getTouchEventName("touchstart")}this.addHandler(j,f,function(){if(o.today){o.today()}else{o.setDate(new Date(),"mouse")}return false});this.addHandler(i,f,function(){if(o.clear){o.clear()}else{o.setDate(null,"mouse")}return false})}if(this.view!="month"){this.header.hide()}if(this.showDayNames&&this.view=="month"){this.renderColumnHeader(v)}this.oldView=this.view;this.renderCalendarCells(v,m,q);if(l==undefined||l==null){this.renderTitle(v)}this._refreshOtherMonthRows(u,q);v.find("tbody").css({border:"none",background:"transparent"});if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var w=this;this.addHandler(this.host,"focus",function(){w.focus()});return v},_getTitleFormat:function(){switch(this.view){case"month":return this.titleFormat[0];case"year":return this.titleFormat[1];case"decade":return this.titleFormat[2];case"centuries":return this.titleFormat[3]}},renderTitle:function(t){var k=a("<div role='button' style='float: left;'></div>");var l=a("<div role='button' style='float: right;'></div>");var o=this.title;o.addClass(this.toThemeProperty("jqx-reset"));o.addClass(this.toThemeProperty("jqx-widget-header"));o.addClass(this.toThemeProperty("jqx-calendar-title-header"));var e=o.find("td");if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(e.css("background-color")!="transparent"){var g=o.css("background-color");e.css("background-color",g)}if(e.css("background-image")!="transparent"){var d=o.css("background-image");var p=o.css("background-repeat");var c=o.css("background-position");e.css("background-image",d);e.css("background-repeat",p);e.css("background-position","left center scroll")}}else{e.css("background-color","transparent")}if(this.disabled){o.addClass(this.toThemeProperty("jqx-calendar-title-header-disabled"))}k.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));k.addClass(this.toThemeProperty("jqx-icon-arrow-left"));k.appendTo(this.leftButton);var m=this.leftButton;l.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));l.addClass(this.toThemeProperty("jqx-icon-arrow-right"));l.appendTo(this.rightButton);var b=this.rightButton;if(this.enableTooltips){if(a(m).jqxTooltip){a(m).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.backText});a(b).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.forwardText})}}var n=this.titleHeader;var v=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var q=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}else{if(this.view=="centuries"){var q=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}}var f=a("<div style='background: transparent; margin: 0; padding: 0; border: none;'>"+v+"</div>");n.append(f);f.addClass(this.toThemeProperty("jqx-calendar-title-content"));var s=parseInt(k.width());var i=t.width()-2*s;var r=n.find(".jqx-calendar-title-content").width(i);a.data(k,"navigateLeft",this);a.data(l,"navigateRight",this);var h=a.jqx.mobile.isTouchDevice();if(!this.disabled){var u=this;this.addHandler(n,"mousedown",function(A){if(u.enableViews){if(!u._viewAnimating&&!u._animating){var x=u.view;u.oldView=x;switch(u.view){case"month":u.view="year";break;case"year":u.view="decade";break}if(u.views.indexOf("year")==-1&&u.view=="year"){u.view="decade"}if(u.views.indexOf("decade")==-1&&u.view=="decade"){u.view=x}if(x!=u.view){var z="View"+u.element.id;var B=u.host.find("#"+z);var y=u.getVisibleDate();var w=u.getFirstDayOfWeek(y);u.renderCalendarCells(B,w,z,true);u.refreshTitle(B);u._raiseEvent("8")}}return false}});this.addHandler(k,"mousedown",function(x){if(!u._animating){a.data(k,"navigateLeftRepeat",true);var w=a.data(k,"navigateLeft");if(w.enableFastNavigation&&!h){w.startRepeat(w,k,true,u.navigationDelay+200)}w.navigateBackward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(0,x)}else{return false}});this.addHandler(k,"mouseup",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(k,"mouseleave",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(l,"mousedown",function(x){if(!u._animating){a.data(l,"navigateRightRepeat",true);var w=a.data(l,"navigateRight");if(w.enableFastNavigation&&!h){w.startRepeat(w,l,false,u.navigationDelay+200)}w.navigateForward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(1,x)}else{return false}});this.addHandler(l,"mouseup",function(w){a.data(l,"navigateRightRepeat",false)});this.addHandler(l,"mouseleave",function(w){a.data(l,"navigateRightRepeat",false)})}},refreshTitle:function(f){var g=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var d=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}else{if(this.view=="centuries"){var d=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}}var e=this.titleHeader;if(this.titleHeader){var c=e.find(".jqx-calendar-title-content");var h=a("<div style='background: transparent; margin: 0; padding: 0; border: none;'>"+g+"</div>");e.append(h);h.addClass(this.toThemeProperty("jqx-calendar-title-content"));if(c!=null){c.remove()}}},startRepeat:function(d,b,f,e){var c=window.setTimeout(function(){var g=a.data(b,"navigateLeftRepeat");if(!f){g=a.data(b,"navigateRightRepeat")}if(g){if(e<25){e=25}if(f){d.navigateBackward(1,"arrow");d.startRepeat(d,b,true,e)}else{d.navigateForward(1,"arrow");c=d.startRepeat(d,b,false,e)}}else{window.clearTimeout(c);return}},e)},navigateForward:function(h,g){if(h==undefined||h==null){h=this.stepMonths}var f=this.value.year;if(this.view=="decade"){f=this._renderStartDate.getFullYear()+12;if(this._renderEndDate.getFullYear()>=this.getMaxDate().getFullYear()){return}}else{if(this.view=="year"){f=this.value.year+1}else{if(this.view=="centuries"){f=this.value.year+100}}}if(this.view!="month"){var b=this.getMaxDate().getFullYear();if(b<f||f>b){f=b}if(this.value.year==f){if(this.view==="decade"){if(this.value.year>this._renderEndDate.getFullYear()){this.value.year=f;this.value.month=1;this.value.day=1}else{return}}else{return}}this.value.year=f;this.value.month=1;this.value.day=1}var c=this.value.day;var i=this.value.month;if(i+h<=12){var e=this.value._daysInMonth(this.value.year,this.value.month+h);if(c>e){c=e}}if(this.view=="month"){var d=new Date(this.value.year,this.value.month-1+h,c);if(g=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1+h,1)}}else{var d=new Date(this.value.year,this.value.month-1,c)}return this.navigateTo(d)},navigateBackward:function(g,f){if(g==undefined||g==null){g=this.stepMonths}var e=this.value.year;if(this.view=="decade"){e=this._renderStartDate.getFullYear()-12}else{if(this.view=="year"){e=this.value.year-1}else{if(this.view=="centuries"){e=this.value.year-100}}}if(this.view!="month"){var i=this.getMinDate().getFullYear();if(e<i){e=i}if(this.view=="decade"){if(this._renderStartDate){if(this._renderStartDate.getFullYear()==e){return}}}this.value.year=e;this.value.month=1;this.value.day=1}var b=this.value.day;var h=this.value.month;if(h-g>=1){var d=this.value._daysInMonth(this.value.year,this.value.month-g);if(b>d){b=d}}if(this.view=="month"){var c=new Date(this.value.year,this.value.month-1-g,b);if(f=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1-g,1)}}else{var c=new Date(this.value.year,this.value.month-1,b)}return this.navigateTo(c)},_isRestrictedRange:function(d,c){if(d>c){return true}var b=d;while(b.valueOf()<=c.valueOf()){if(this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_hasUnrestrictedRanges:function(d,c){if(d>c){return false}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_getNextUnrestrictedDay:function(d,c){if(d>c){return null}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return b}b.setDate(b.getDate()+1)}return null},_isRestrictedDate:function(d){var c=this;if(!a.isArray(c.restrictedDates)){return false}for(var g=0;g<c.restrictedDates.length;g++){var b=c.restrictedDates[g];if(typeof(b)=="object"&&b.from!=undefined&&b.to!=undefined){var f=b.from;var e=b.to;if(d.valueOf()>=f.valueOf()&&d.valueOf()<=e.valueOf()){return true}}else{if(b.getMonth()==d.getMonth()&&b.getDate()==d.getDate()&&b.getFullYear()==d.getFullYear()){return true}}}return false},_isDisabled:function(d){var e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var b=d.getDay();var c=e[b];if(this.selectableDays.indexOf(c)==-1){return true}if(this._isRestrictedDate(d)){return true}return false},refreshCalendarCells:function(x,f,m){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.refreshViews(x,f,m);return}var s=this.table;var q=s.find("#cellTable"+m.toString());var e=f;var c=new Array();var n=0;var u=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var p=0;p<6;p++){for(var o=0;o<7;o++){var d=p+1;var h=o;if(this.rtl){h=6-h}var t=h+1;var l="#cell"+d+t+this.element.id;var w=new Date(e.dateTime.getFullYear(),e.dateTime.getMonth(),e.dateTime.getDate());var b=new a.jqx._jqxCalendar.cell(w);var g=a(q[0].rows[p].cells[t-1]);g[0].id=l.substring(1);b.element=g;b.row=p;b.column=o;b.isVisible=true;b.isOtherMonth=false;b.isToday=false;b.isWeekend=false;b.isHighlighted=false;b.isSelected=false;if(e.month!=this.value.month){b.isOtherMonth=true;b.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(w)){b.isRestricted=true;b.isDisabled=true}if(!b.isDisabled){if(w<this.getMinDate()||w>this.getMaxDate()||this._isDisabled(w)){b.isDisabled=true}}if(e.month==u.month&&e.day==u.day&&e.year==u.year){b.isToday=true}if(e.isWeekend()){b.isWeekend=true}a.data(this.element,"cellContent"+l.substring(1),b);a.data(this.element,l.substring(1),b);c[n]=b;n++;a.jqx.utilities.html(g,e.day);this._applyCellStyle(b,g,g);e=new a.jqx._jqxDateTimeInput.getDateTime(new Date(e._addDays(1)))}}var v=a.data(this.element,x[0].id);if(v!=undefined&&v!=null){v.cells=c}this.renderedCells=c;this._refreshOtherMonthRows(v,m)},_getDecadeAndCenturiesData:function(){var k=new Array();var p=new Array();var c=this.getMaxDate().getFullYear()-this.getMinDate().getFullYear();if(c<12){c=12}var f=this.getMinDate();var b=this.getMaxDate();var l=this.value.dateTime.getFullYear();if(this.view=="decade"){if(l+12>b.getFullYear()){l=b.getFullYear()-11}if(l<f.getFullYear()){l=f.getFullYear()}for(var h=0;h<c;h++){var d=new Date(f.getFullYear()+h,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear(),d.getMonth(),1);for(var e=0;e<12;e++){var o=new Date(g.getFullYear()+e,this.value.dateTime.getMonth(),this.value.dateTime.getDate());var m=o.getFullYear();if(f.getFullYear()<=m&&m<=b.getFullYear()){k.push(m);p.push(o);if(e==0){this._renderStartDate=o}this._renderEndDate=o}else{k.push(m);p.push(o)}}break}}}else{if(this.view=="centuries"){for(var h=0;h<c;h+=120){var d=new Date(f.getFullYear()+h+120,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear()-130,d.getMonth(),1);if(g<f){g=f}for(var e=0;e<12;e++){var n=new Date(g.getFullYear()+e*10,g.getMonth(),1);if(g.getFullYear()>=f.getFullYear()&&n.getFullYear()<=b.getFullYear()){k.push("<span style='visibility: hidden;'>-</span>"+n.getFullYear()+"-"+(n.getFullYear()+9));p.push(n);if(e==0){this._renderCenturyStartDate=n}this._renderCenturyEndDate=new Date(n.getFullYear()+9,0,1)}}break}}}}return{years:k,dates:p}},refreshViews:function(A,m,s){var B=this;var c=new Array();var w=A.find("#cellTable"+s.toString());var D=this._getDecadeAndCenturiesData();var l=D.years;var C=D.dates;var t=0;var f=this.getMinDate();var n=this.getMaxDate();for(var v=0;v<3;v++){for(var u=0;u<4;u++){var d=v+1;var q=u;if(this.rtl){q=3-q}var x=q+1;var z=new Date(this.value.dateTime);z.setDate(1);z.setMonth(v*4+q);var b=new a.jqx._jqxCalendar.cell(z);var e=w[0].rows["row"+(1+v)+this.element.id];var o=a(e.cells[u]);b.isSelected=false;b.isVisible=true;b.element=o;b.row=v;b.column=u;b.index=c.length;var p="";if(this.view=="year"){var h=this.localization.calendar.months.names;var g=h[v*4+q];switch(this.monthNameFormat){case"default":g=this.localization.calendar.months.namesAbbr[v*4+q];break;case"shortest":g=this.localization.calendar.months.namesShort[v*4+q];break;case"firstTwoLetters":g=g.substring(0,2);break;case"firstLetter":g=g.substring(0,1);break}p=g}else{if(this.view=="decade"||this.view=="centuries"){p=l[v*4+q];if(undefined==p){p="<span style='cursor: default; visibility: hidden;'>2013</span>"}b.setDate(C[v*4+q])}}var z=b.getDate();if(this.view=="year"){if(z.getMonth()==this.getDate().getMonth()&&z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}else{if(z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}if(this.view=="year"){if(this._getYearAndMonthPart(z)<this._getYearAndMonthPart(f)){b.isDisabled=true}if(this._getYearAndMonthPart(z)>this._getYearAndMonthPart(n)){b.isDisabled=true}}else{if(z.getFullYear()<f.getFullYear()){b.isDisabled=true}if(z.getFullYear()>n.getFullYear()){b.isDisabled=true}}a.jqx.utilities.html(o,p);c[t]=b;t++}}var y=a.data(this.element,A[0].id);if(y!=undefined&&y!=null){y.cells=c}this.renderedCells=c;this._applyCellStyles()},_createViewClone:function(){var b=this.host.find(".jqx-calendar-month");var c=b.clone();c.css("position","absolute");c.css("top",b.position().top);c.width(this.month.width());return c},_addCellsTable:function(h,g){var e=this;var c=this.showFooter?20:0;if(this.view!="month"){g.height(this.month.height()-this.titleHeight)}else{g.height(this.month.height()-this.titleHeight-this.columnHeaderHeight-c)}this._viewAnimating=true;var b=this.host.find(".jqx-calendar-month-container");b.css("position","relative");var d=this.host.find(".jqx-calendar-month");var f=this._createViewClone();b.append(f);if(this.view!="month"){this.header.fadeOut(0);if(this.showWeekNumbers){this.rowHeader.fadeOut(0)}if(this.showFooter){this._footer.fadeOut(0)}}else{this.header.fadeIn(this.navigationDelay+200);if(this.showWeekNumbers){this.rowHeader.fadeIn(this.navigationDelay+200)}if(this.showFooter){this._footer.fadeIn(this.navigationDelay+200)}}h.children().remove();h.append(g);this._animateViews(f,g,function(){if(!e.selectedDate&&e.selectionMode!="range"){e.selectedDate=e.renderedCells[0].getDate()}try{e.renderedCells[0].element.focus();setTimeout(function(){e.renderedCells[0].element.focus()},10)}catch(i){}e._viewAnimating=false});g.addClass(this.toThemeProperty("jqx-calendar-view"))},_animateViews:function(c,b,e){var d=this;d._viewAnimating=true;if(d.oldView==d.view){c.remove();b.fadeOut(0);b.fadeIn(0);e();return}c.fadeOut(this.navigationDelay+100,function(){c.remove()});b.fadeOut(0);b.fadeIn(this.navigationDelay+200,function(){e()})},focus:function(){if(this.disabled){return}try{if(this.renderedCells&&this.renderedCells.length>0){var d=this;var c=false;if(!d.selectedDate&&d.selectionMode!="range"){this.setDate(new Date(),"mouse")}this.element.focus()}}catch(b){}},renderViews:function(E,n,v){var F=this;var e=new Array();var z=a("<table role='grid' style='border-color: transparent; width: 100%; height: 100%;' cellspacing='2' cellpadding='0' id=cellTable"+v.toString()+"><tr role='row' id='row1"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row' id='row2"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row' id='row3"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");var q=this.host.find(".jqx-calendar-month-container");q.css("position","relative");var A=E.find("#cellsTable"+E[0].id);A[0].style.borderColor="transparent";var I=this._getDecadeAndCenturiesData();var m=I.years;var H=I.dates;var w=0;var g=this.getMinDate();var o=this.getMaxDate();var t=new Date(this.value.dateTime);t.setDate(1);for(var y=0;y<3;y++){for(var x=0;x<4;x++){var d=y+1;var u=x;if(this.rtl){u=3-u}var B=u+1;var f=z[0].rows["row"+(1+y)+this.element.id];var D=new Date(t);D.setMonth(y*4+u);var c=new a.jqx._jqxCalendar.cell(D);var p=a(f.cells[x]);c.isVisible=true;c.element=p;c.row=y;c.column=x;c.index=e.length;c.isSelected=false;var s="";if(this.view=="year"){if(D.getMonth()==this.getDate().getMonth()&&D.getFullYear()==this.getDate().getFullYear()){c.isSelected=true}var l=this.localization.calendar.months.names;var h=l[y*4+u];switch(this.monthNameFormat){case"default":h=this.localization.calendar.months.namesAbbr[y*4+u];break;case"shortest":h=this.localization.calendar.months.namesShort[y*4+u];break;case"firstTwoLetters":h=h.substring(0,2);break;case"firstLetter":h=h.substring(0,1);break}s=h}else{if(this.view=="decade"||this.view=="centuries"){s=m[y*4+u];c.setDate(H[y*4+u]);if(c.getDate().getFullYear()==this.getDate().getFullYear()){c.isSelected=true}if(undefined==s){s="<span style='cursor: default; visibility: hidden;'>2013</span>"}}}var D=c.getDate();if(this.view=="year"){var b=new Date(D);b.setDate(1);b.setHours(0,0,0,0);b.setMonth(D.getMonth()+1);b=new Date(b.valueOf()-1);if(this._getYearAndMonthPart(D)<this._getYearAndMonthPart(g)||this._getYearAndMonthPart(D)>this._getYearAndMonthPart(o)||!this._hasUnrestrictedRanges(D,b)){c.isDisabled=true}}else{var G=new Date(D);G.setMonth(0);G.setDate(1);G.setHours(0,0,0,0);G.setFullYear(D.getFullYear()+1);G=new Date(G.valueOf()-1);if(D.getFullYear()<g.getFullYear()||D.getFullYear()>o.getFullYear()||!this._hasUnrestrictedRanges(D,G)){c.isDisabled=true}}a.jqx.utilities.html(p,s);e[w]=c;w++}}a.each(e,function(){var j=this.element;var i=this;if(!F.disabled){F.addHandler(j,"mousedown",function(k){F._setDateAndSwitchViews(i,k,"mouse")});F.addHandler(j,"mouseover",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=true;F._applyCellStyle(k,k.element,k.element)});F.addHandler(j,"mouseout",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=false;F._applyCellStyle(k,k.element,k.element)})}});var C=a.data(this.element,E[0].id);if(C!=undefined&&C!=null){C.cells=e}this.renderedCells=e;this._addCellsTable(A,z);this._applyCellStyles()},_setDateAndSwitchViews:function(m,d,j){if(!this._viewAnimating&&!this._animating){var g=this.getDate();var e=this.renderedCells[m.index].getDate();var k=this.value.dateTime.getDate();var l=new Date(e);if(this.views.indexOf("month")!=-1){l.setDate(k)}else{l.setDate(1);e.setDate(1)}if(l.getMonth()==e.getMonth()){e=l}var i=this.getMinDate();var c=this.getMaxDate();if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){return}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){return}}else{if(e.getFullYear()<i.getFullYear()){return}if(e.getFullYear()>c.getFullYear()){return}}if(this.selectionMode!="range"){this._selectDate(e,j)}this.oldView=this.view;switch(this.view){case"year":this.view="month";break;case"decade":this.view="year";break}if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1){this.view="decade"}if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){e=i}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){e=c}}else{if(e.getFullYear()<i.getFullYear()){e=i}if(e.getFullYear()>c.getFullYear()){e=c}}if(this.changing&&(this.selectedDate&&(this.selectedDate.getFullYear()!=e.getFullYear()||this.selectedDate.getMonth()!=e.getMonth()||this.selectedDate.getDate()!=e.getDate()))){e=this.selectedDate}this.value._setYear(e.getFullYear());this.value._setDay(e.getDate());this.value._setMonth(e.getMonth()+1);this.value._setDay(e.getDate());var h=this.getVisibleDate();var b=this.getFirstDayOfWeek(h);var f="View"+this.element.id;this.renderCalendarCells(this.month,b,f,true);this.refreshTitle(this.month);if(this.showWeekNumbers){this.refreshRowHeader(this.month,f)}if(this.views.length==3){if(this.view=="month"){if(this.selectionMode!="range"){this._selectDate(this.selectedDate,"view")}else{var n=this;a.each(this.renderedCells,function(r){var o=this;var t=o.getDate();var p=a(o.element);var q=p;if(p.length==0){return false}var s=function(v){if(v==null){return new Date()}var u=new Date();u.setHours(0,0,0,0);u.setFullYear(v.getFullYear(),v.getMonth(),v.getDate());return u};if(!o.isOtherMonth&&s(t).toString()==s(e).toString()){n.value._setMonth(e.getMonth()+1);n.value._setDay(e.getDate());n.value._setYear(e.getFullYear())}o.isSelected=false;o.isDisabled=false;if(s(t)<s(n.selection.from)&&n._clicks==1){o.isDisabled=true}if(n.getMaxDate()<t){o.isDisabled=true}if(n.getMinDate()>t){o.isDisabled=true}if(n._isDisabled(t)){o.isDisabled=true}if(!o.isDisabled){if(s(t)>=s(n.selection.from)&&s(t)<=s(n.selection.to)){o.isSelected=true}}});this._applyCellStyles()}}}if(this.view!="month"){if(this.oldView=="year"||(this.views.indexOf("year")==-1&&this.view=="decade")){if(j!="keyboard"){this._raiseEvent("3")}this._raiseEvent("5",{selectionType:"mouse"})}}this._raiseEvent("8")}},renderCalendarCells:function(D,m,s,q){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.renderViews(D,m,s);return}var x=a("<table role='grid' style='width: 100%; height: 100%; border-color: transparent;' cellspacing='2' cellpadding='1' id=cellTable"+s.toString()+"><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");var y=this.table;y[0].style.borderColor="transparent";if(q==undefined){var g=y.find("#cellTable"+s.toString());if(g!=null){g.remove()}y.append(x)}var l=m;var b=this.showDayNames?1:0;var f=this.showWeekNumbers?1:0;var d=new Array();var t=0;var v=(D.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){v=(D.width()-2)/7}v=parseInt(v);var A=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var w=0;w<6;w++){for(var u=0;u<7;u++){var e=w+1;var o=u;if(this.rtl){o=6-o}var z=o+1;var p="#cell"+e+z+this.element.id;var C=new Date(l.dateTime.getFullYear(),l.dateTime.getMonth(),l.dateTime.getDate());var c=new a.jqx._jqxCalendar.cell(C);var n=a(x[0].rows[w].cells[z-1]);n[0].id=p.substring(1);c.isVisible=true;c.isDisabled=false;if(l.month!=this.value.month){c.isOtherMonth=true;c.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(C)){c.isRestricted=true;c.isDisabled=true}if(!c.isDisabled){if(C<this.getMinDate()||C>this.getMaxDate()||this._isDisabled(C)){c.isDisabled=true}}if(l.month==A.month&&l.day==A.day&&l.year==A.year){c.isToday=true}if(l.isWeekend()){c.isWeekend=true}c.element=n;c.row=b;c.column=f;a.jqx.utilities.html(n,l.day);l=new a.jqx._jqxDateTimeInput.getDateTime(new Date(l._addDays(1)));a.data(this.element,"cellContent"+p.substring(1),c);a.data(this.element,""+p.substring(1),c);var E=this;if(E.isMaterialized()){a(n).addClass("ripple");a.jqx.ripple(a(n))}this.addHandler(n,"mousedown",function(I){if(!E.readOnly&&!E.disabled){var H=a(I.target);var j=a.data(E.element,H[0].id);var i=E._raiseEvent(3,I);if(j!=null&&j!=undefined){var r=j.getDate();if(E.getMinDate()<=r&&r<=E.getMaxDate()){if(!j.isDisabled){if(j.isOtherMonth&&E.enableAutoNavigation){if(j.row<2){E.navigateBackward()}else{E.navigateForward()}E._selectDate(j.getDate(),"mouse",I.shiftKey)}else{var F=new Date(E.getDate());E._selectDate(j.getDate(),"mouse",I.shiftKey);E.value._setYear(r.getFullYear());E.value._setDay(1);E.value._setMonth(r.getMonth()+1);E.value._setDay(r.getDate());var G=E.host.find(".jqx-calendar-month");G.stop();G.css("margin-left","0px");var k=E.getDate();E._raiseEvent("2");if(j.isOtherMonth){E._raiseEvent("5",{selectionType:"mouse"})}}}}}return false}});if(!E.disabled){var h=function(F,j){if(!E.readOnly){var r=a(F.target);var i=a.data(E.element,r[0].id);if(i!=null&&i!=undefined){var k=i.getDate();if(E.getMinDate()<=k&&k<=E.getMaxDate()){i.isHighlighted=j;E._applyCellStyle(i,i.element,r)}}}};this.addHandler(n,"mouseenter",function(i){h(i,true);return false});this.addHandler(n,"mouseleave",function(i){h(i,false);return false})}f++;d[t]=c;t++}f=0;b++}var B=a.data(this.element,D[0].id);if(B!=undefined&&B!=null){B.cells=d}this.renderedCells=d;if(q!=undefined){this._addCellsTable(y,x)}this._applyCellStyles();this._refreshOtherMonthRows(B,s)},setMaxDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.maxDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMaxDate:function(){if(this.maxDate!=null&&this.maxDate!=undefined){return this.maxDate.dateTime}return null},setMinDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.minDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMinDate:function(){if(this.minDate!=null&&this.minDate!=undefined){return this.minDate.dateTime}return null},navigateTo:function(g,i){if(this.view=="month"){var h=this.getMinDate();var d=new Date(this.getMaxDate().getFullYear(),this.getMaxDate().getMonth()+1,this.getMaxDate().getDate());if((g<this._getYearAndMonthPart(h))||(g>this._getYearAndMonthPart(d))){return false}}else{if(g&&(g.getFullYear()<this.getMinDate().getFullYear()||g.getFullYear()>this.getMaxDate().getFullYear())){return false}}if(g==null){return false}if(i==undefined){var j=this;if(this._animating){return}this._animating=true;var e=this.host.find(".jqx-calendar-month-container");var k=a("<div></div>");k[0].style.width="100%";k[0].style.height="100%";k[0].style.overflow="hidden";k[0].style.position="relative";k[0].style.left="0px";k[0].style.top="-100%";e.append(k);if(this._viewClone){this._viewClone.stop();this._viewClone.remove()}if(this._newViewClone){this._newViewClone.stop();this._newViewClone.remove()}var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");var b=m.clone();this._viewClone=b;var l=new Date(this.value.dateTime);this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var c=parseInt(this.month.css("padding-top"));j.refreshControl();k.css("overflow","hidden");e.css("position","relative");e.css("overflow","hidden");b.css("position","absolute");b.css("top",m.position().top-c);k.append(b);if(a.jqx.browser.msie&&a.jqx.browser.version<8){this.month.css("position","relative");this.month.css("overflow","hidden");this.table.css("position","relative");this.table.css("overflow","hidden")}var f=-this.month.width();if(g<l){if(this.view=="month"&&g.getMonth()!=l.getMonth()){f=this.month.width()}else{if(g.getFullYear()!=l.getFullYear()){f=this.month.width()}}}b.animate({marginLeft:parseInt(f)+"px"},this.navigationDelay,function(){b.remove()});var n=m.clone();this._newViewClone=n;n.css("position","absolute");n.css("top",m.position().top-c);k.append(n);n.css("margin-left",-f);m.css("visibility","hidden");n.animate({marginLeft:"0px"},this.navigationDelay,function(){n.remove();m.css("visibility","inherit");k.remove();j._animating=false})}else{this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");this.refreshControl()}this._raiseEvent("2");this._raiseEvent("8");return true},setDate:function(b){if(b!=null&&typeof(b)=="string"){b=new Date(b)}if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(b,"api");this._selectDate(b);if(this.selectionMode=="range"){this._selectDate(b,"mouse")}return true},val:function(b){if(arguments.length!=0){if(b==null){this.setDate(null)}if(b instanceof Date){this.setDate(b)}if(typeof(b)=="string"){this.setDate(b)}}return this.getDate()},getDate:function(){if(this.selectedDate==undefined){return new Date()}return this.selectedDate},getValue:function(){if(this.value==undefined){return new Date()}return this.value.dateTime},setRange:function(c,b){if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(c,"api");this._selectDate(c,"mouse");this._selectDate(b,"mouse")},getRange:function(){return this.selection},_selectDate:function(d,g,c){if(this.selectionMode=="none"){return}if(g==null||g==undefined){g="none"}if(c==null||c==undefined){c=false}var i=a.data(this.element,"View"+this.element.id);if(i==undefined||i==null){return}if(this.changing){if(d&&this.selectedDate){if(this.selectedDate.getFullYear()!=d.getFullYear()||this.selectedDate.getDate()!=d.getDate()||this.selectedDate.getMonth()!=d.getMonth()){var j=this.changing(this.selectedDate,d)}if(j){d=j}}}var k=this;if(this.input){if(d!=null){this.input.val(d.toString())}else{this.input.val("")}}var e=this.selectedDate;this.selectedDate=d;if(this.view!="month"){if(e!=d){this._raiseEvent(7,{selectionType:g})}a.each(this.renderedCells,function(p){var l=this;var q=l.getDate();var m=a(l.element);var o=m.find("#cellContent"+m[0].id);if(d==null){l.isSelected=false;l.isDisabled=false}else{l.isSelected=false;if(q){if((q.getMonth()==d.getMonth()&&k.view=="year"&&q.getFullYear()==d.getFullYear())||(k.view=="decade"&&q.getFullYear()==d.getFullYear())){l.isSelected=true;try{if(g!="none"){l.element.focus()}}catch(n){}}}}k._applyCellStyle(l,m,m)});if(this.change){this.change(d)}return}if(this.view=="month"){if(this.selectionMode=="range"&&g=="key"){var f=this.getVisibleDate();var b=this.getFirstDayOfWeek(f);this.refreshCalendarCells(this.month,b,"View"+this.element.id)}}var h=false;a.each(this.renderedCells,function(r){var w=this;var o=w.getDate();var v=a(w.element);var l=v;if(v.length==0){return false}if(d==null){w.isSelected=false;w.isDisabled=false;if(r==0){k.selection={from:null,to:null};k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}else{if(k.selectionMode!="range"||g=="key"){if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()&&w.isSelected){k._applyCellStyle(w,v,l);k._raiseEvent("5",{selectionType:g});return}if(w.isSelected){k._raiseEvent("6",{selectionType:g})}w.isSelected=false;if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()){w.isSelected=true;if(r==0){k.selection={date:d}}try{if(g!="none"){w.element.focus();k.host.focus()}}catch(s){}if(!w.isOtherMonth){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}if(k.selectionMode=="range"){k._clicks=0;k.selection={from:d,to:d}}}else{if(k.selectionMode=="range"){if(g=="view"){w.isSelected=false;w.isDisabled=false;if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isDisabled=true;w.isRestricted=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}k._applyCellStyle(w,v,l);return true}if(r==0){if(g!="none"){if(k._clicks==undefined){k._clicks=0}k._clicks++;if(c){k._clicks++}if(k._clicks==1){k.selection={from:d,to:d}}else{var u=k.selection.from;var q=u<=d?u:d;var t=u<=d?d:u;if(q){var m=new Date(q.getFullYear(),q.getMonth(),q.getDate())}if(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59)}k.selection={from:m,to:n};k._clicks=0}}else{if(k.selection==null||k.selection.from==null){k.selection={from:d,to:d};if(k._clicks==undefined){k._clicks=0}k._clicks++;if(k._clicks==2){k._clicks=0}}}}var p=function(y){if(y==null){return new Date()}var x=new Date();x.setHours(0,0,0,0);x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());return x};if(!w.isOtherMonth&&p(o).toString()==p(d).toString()){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}w.isSelected=false;w.isDisabled=h;if(p(o)<p(k.selection.from)&&k._clicks==1){w.isDisabled=true}if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isRestricted=true;w.isDisabled=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}if(!w.isDisabled){if(p(o)>=p(k.selection.from)&&p(o)<=p(k.selection.to)){w.isSelected=true}}else{if(!k.allowRestrictedDaysInRange&&p(o)>=p(k.selection.from)&&k.selection.to==k.selection.from){h=true}}}}}k._applyCellStyle(w,v,l)});if(k.selectionMode=="range"&&k._clicks==0){k._raiseEvent(7,{selectionType:g});return}else{if(k.selectionMode=="range"){return}}if(e!=d){k._raiseEvent(7,{selectionType:g});if(this.change){this.change(d)}}},_getSelectedDate:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}if(this.view!="month"){return this.selectedDate}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return e}}if(this.selectedDate){return this.selectedDate}},_getSelectedCell:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return b}}},_applyCellStyle:function(c,d,g){var e=this;if(g==null||(g!=null&&g.length==0)){g=d}var b="";b=this.toThemeProperty("jqx-rc-all");b+=" "+this.toThemeProperty("jqx-item");if(this.disabled||(c.isDisabled&&!c.isRestricted)){b+=" "+this.toThemeProperty("jqx-calendar-cell-disabled");b+=" "+this.toThemeProperty("jqx-fill-state-disabled")}if(!this.disabled&&c.isRestricted){b+=" "+this.toThemeProperty("jqx-calendar-cell-restrictedDate")}if(c.isOtherMonth&&this.enableOtherMonthDays&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-othermonth")}if(c.isWeekend&&this.enableWeekend&&c.isVisible&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-weekend")}if(this.isMaterialized()){b+=" ripple"}if(!c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-hidden")}else{b+=" "+this.toThemeProperty("jqx-calendar-cell");if(this.view!="month"){if(g.length>0&&g.html().toLowerCase().indexOf("span")!=-1){g.css("cursor","default")}}}g.removeAttr("aria-selected");if(c.isSelected&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected");b+=" "+this.toThemeProperty("jqx-fill-state-pressed");g.attr("aria-selected",true);this.host.removeAttr("aria-activedescendant").attr("aria-activedescendant",g[0].id);var f=c.getDate();if(this._isDisabled(f)){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected-invalid")}}if(c.isHighlighted&&c.isVisible&&this.enableHover){if(!c.isDisabled){b+=" "+this.toThemeProperty("jqx-calendar-cell-hover");b+=" "+this.toThemeProperty("jqx-fill-state-hover")}}b+=" "+this.toThemeProperty("jqx-calendar-cell-"+this.view);if(c.isToday&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-today")}g[0].className=b;if(this.specialDates.length>0){var h=this;a.each(this.specialDates,function(){if(this.Class!=undefined&&this.Class!=null&&this.Class!=""){g.removeClass(this.Class)}else{g.removeClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))}var i=c.getDate();if(i.getFullYear()==this.Date.getFullYear()&&i.getMonth()==this.Date.getMonth()&&i.getDate()==this.Date.getDate()){if(c.tooltip==null&&this.Tooltip!=null){c.tooltip=this.Tooltip;if(a(g).jqxTooltip){var j=this.Class;a(g).jqxTooltip({value:{cell:c,specialDate:this.Date},name:h.element.id,content:this.Tooltip,position:"mouse",theme:h.theme,opening:function(k){if(g.hasClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))){return true}if(g.hasClass(j)){return true}return false}})}}g.removeClass(e.toThemeProperty("jqx-calendar-cell-othermonth"));g.removeClass(e.toThemeProperty("jqx-calendar-cell-weekend"));if(this.Class==undefined||this.Class==""){g.addClass(e.toThemeProperty("jqx-calendar-cell-specialDate"));return false}else{g.addClass(this.Class);return false}}})}},_applyCellStyles:function(){var f=a.data(this.element,"View"+this.element.id);if(f==undefined||f==null){return}for(var e=0;e<f.cells.length;e++){var b=f.cells[e];var c=a(b.element);var d=c.find("#cellContent"+c[0].id);if(d.length==0){d=c}this._applyCellStyle(b,c,d)}},getWeekOfYear:function(f){var b=new Date(f.dateTime);dowOffset=this.firstDayOfWeek;var e=new Date(b.getFullYear(),0,1);var c=e.getDay()-dowOffset;c=(c>=0?c:c+7);var d=Math.floor((b.getTime()-e.getTime()-(b.getTimezoneOffset()-e.getTimezoneOffset())*60000)/86400000)+1;var g;if(c<4){g=Math.floor((d+c-1)/7)+1;if(g>52){nYear=new Date(b.getFullYear()+1,0,1);nday=nYear.getDay()-dowOffset;nday=nday>=0?nday:nday+7;g=nday<4?1:53}}else{g=Math.floor((d+c-1)/7)}return g},renderColumnHeader:function(w){if(!this.showDayNames){return}var t=a("<table role='grid' style='border-spacing: 0px; border-collapse: collapse; width: 100%; height: 100%;' cellspacing='0' cellpadding='1'><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");t.find("table").addClass(this.toThemeProperty("jqx-reset"));t.find("tr").addClass(this.toThemeProperty("jqx-reset"));t.find("td").css({background:"transparent",padding:1,margin:0,border:"none"});t.addClass(this.toThemeProperty("jqx-reset"));t.addClass(this.toThemeProperty("jqx-widget-content"));t.addClass(this.toThemeProperty("jqx-calendar-column-header"));this.columnHeader.append(t);var d=this.getVisibleDate();var h=this.getFirstDayOfWeek(d);var m=h.dayOfWeek;var x=this.getWeekOfYear(h);var q=this.firstDayOfWeek;var v=this.localization.calendar.days.names;var n=new Array();var g=h;var o=(w.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){o=(w.width()-2)/7}for(var s=0;s<7;s++){var f=v[q];if(this.rtl){f=v[6-q]}switch(this.dayNameFormat){case"default":f=this.localization.calendar.days.namesAbbr[q];if(this.rtl){f=this.localization.calendar.days.namesAbbr[6-q]}break;case"shortest":f=this.localization.calendar.days.namesShort[q];if(this.rtl){f=this.localization.calendar.days.namesShort[6-q]}break;case"firstTwoLetters":f=f.substring(0,2);break;case"firstLetter":f=f.substring(0,1);break}var b=new a.jqx._jqxCalendar.cell(g.dateTime);var k=s+1;var l=k+this.element.id;var j=a(t[0].rows[0].cells[s]);var p=s;if(this.enableTooltips){if(a(j).jqxTooltip){a(j).jqxTooltip({name:this.element.id,content:v[q],theme:this.theme,position:"mouse"})}}if(q>=6){q=0}else{q++}s=p;b.element=j;b.row=0;b.column=s+1;var e=this._textwidth(f);var c="<div style='padding: 0; margin: 0; border: none; background: transparent;' id='columnCell"+l+"'>"+f+"</div>";j.append(c);j.find("#columnCell"+l).addClass(this.toThemeProperty("jqx-calendar-column-cell"));j.width(o);if(this.disabled){j.find("#columnCell"+l).addClass(this.toThemeProperty("jqx-calendar-column-cell-disabled"))}if(e>0&&o>0){while(e>j.width()){if(f.length==0){break}f=f.substring(0,f.length-1);a.jqx.utilities.html(j.find("#columnCell"+l),f);e=this._textwidth(f)}}n[s]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addDays(1)))}if(parseInt(this.columnHeader.width())>parseInt(this.month.width())){this.columnHeader.width(this.month.width())}var u=a.data(this.element,w[0].id);u.columnCells=n},_format:function(d,e,b){var f=false;try{if(Globalize!=undefined){f=true}else{if(document.Globalize){Globalize=document.Globalize;f=true}}}catch(c){if(document.Globalize){Globalize=document.Globalize;f=true}}if(document.Globalize){Globalize=document.Globalize;f=true}if(a.global){a.global.culture.calendar=this.localization.calendar;return a.global.format(d,e,this.culture)}else{if(f){try{if(Globalize.cultures[this.culture]){Globalize.cultures[this.culture].calendar=this.localization.calendar;return Globalize.format(d,e,this.culture)}else{return Globalize.format(d,e,this.culture)}}catch(c){return Globalize.format(d,e)}}else{if(a.jqx.dataFormat){return a.jqx.dataFormat.formatdate(d,e,this.localization.calendar)}}}},_textwidth:function(d){var c=a("<span>"+d+"</span>");c.addClass(this.toThemeProperty("jqx-calendar-column-cell"));a(this.host).append(c);var b=c.width();c.remove();return b},_textheight:function(d){var c=a("<span>"+d+"</span>");a(this.host).append(c);var b=c.height();c.remove();return b},_renderRowHeader:function(k){var g=this.getVisibleDate();var c=this.getFirstDayOfWeek(g);var f=c.dayOfWeek;var s=this.getWeekOfYear(c);var o=new a.jqx._jqxDateTimeInput.getDateTime(new Date(c.dateTime));o._addDays(5);o.dayOfWeek=o.dateTime.getDay();var m=this.getWeekOfYear(o);if(53==s&&o.dateTime.getMonth()==0){s=1}var l=a("<table style='overflow: hidden; width: 100%; height: 100%;' cellspacing='0' cellpadding='1'><tr><td></td></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr></table>");l.find("table").addClass(this.toThemeProperty("jqx-reset"));l.find("td").addClass(this.toThemeProperty("jqx-reset"));l.find("tr").addClass(this.toThemeProperty("jqx-reset"));l.addClass(this.toThemeProperty("jqx-calendar-row-header"));l.width(this.rowHeaderWidth);this.rowHeader.append(l);var d=c;var r=new Array();for(var h=0;h<6;h++){var e=s.toString();var q=new a.jqx._jqxCalendar.cell(d.dateTime);var j=h+1+this.element.id;var p=a(l[0].rows[h].cells[0]);q.element=p;q.row=h;q.column=0;var b="<div style='background: transparent; border: none; padding: 0; margin: 0;' id ='headerCellContent"+j+"'>"+e+"</div>";p.append(b);p.find("#headerCellContent"+j).addClass(this.toThemeProperty("jqx-calendar-row-cell"));r[h]=q;d=new a.jqx._jqxDateTimeInput.getDateTime(new Date(d._addWeeks(1)));s=this.getWeekOfYear(d)}var n=a.data(this.element,k[0].id);n.rowCells=r},getFirstDayOfWeek:function(e){var d=e;if(this.firstDayOfWeek<0||this.firstDayOfWeek>6){this.firstDayOfWeek=6}var c=d.dayOfWeek-this.firstDayOfWeek;if(c<=0){c+=7}var b=a.jqx._jqxDateTimeInput.getDateTime(d._addDays(-c));return b},getVisibleDate:function(){var c=new a.jqx._jqxDateTimeInput.getDateTime(new Date(this.value.dateTime));if(c<this.minDate){c=this.minDate}if(c>this.maxDate){this.visibleDate=this.maxDate}c.dateTime.setHours(0);var d=c.day;var b=a.jqx._jqxDateTimeInput.getDateTime(c._addDays(-d+1));c=b;return c},destroy:function(b){a.jqx.utilities.resize(this.host,null,true);this.host.removeClass();if(b!=false){this.host.remove()}},_raiseEvent:function(d,i){if(i==undefined){i={owner:null}}var h=this.events[d];var g=i?i:{};g.owner=this;var c=new a.Event(h);c.owner=this;c.args=g;if(d==0||d==1||d==2||d==3||d==4||d==5||d==6||d==7||d==8){c.args.date=c.args.selectedDate=this.getDate();c.args.range=this.getRange();var e=this.getViewStart();var f=this.getViewEnd();c.args.view={from:e,to:f}}if(d==7){var b=g.selectionType;if(!b){b=null}if(b=="key"){b="keyboard"}if(b=="none"){b=null}g.type=b}var j=this.host.trigger(c);if(d==0||d==1){j=false}return j},propertyMap:function(b){if(b=="value"){if(this.selectionMode!="range"){return this.getDate()}else{return this.getRange()}}return null},_setSize:function(){var d=this.host.find("#View"+this.element.id);if(d.length>0){this.setCalendarSize();d[0].style.height="100%";d[0].style.width="100%";var c=this.month.height()-this.titleHeight-this.columnHeaderHeight;var b="View"+this.element.id;d.find("#cellsTable"+b).height(c);d.find("#calendarRowHeader"+b).height(c);this.refreshControl()}},resize:function(){this._setSize()},clear:function(){if(this.selectionMode=="range"){this._clicks=1;this.setRange(null,null);this._raiseEvent(7)}else{this.setDate(null,"mouse")}this._clicks=0;this.selection={from:null,to:null}},today:function(){if(this.selectionMode=="range"){this.setRange(new Date(),new Date())}else{this.setDate(new Date(),"mouse")}},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b._setSize()}},propertyChangedHandler:function(d,e,g,f){if(this.isInitialized==undefined||this.isInitialized==false){return}if(d.batchUpdate&&d.batchUpdate.width&&d.batchUpdate.height&&Object.keys(d.batchUpdate).length==2){return}if(e=="enableHover"){return}if(e=="keyboardNavigation"){return}if(e=="localization"){if(this.localization){if(this.localization.backString){this.backText=this.localization.backString}if(this.localization.forwardString){this.forwardText=this.localization.forwardString}if(this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString){this.clearString=this.localization.clearString}this.firstDayOfWeek=this.localization.calendar.firstDay}}if(e=="culture"){try{if(a.global){a.global.preferCulture(d.culture);d.localization.calendar=a.global.culture.calendar}else{if(Globalize){var b=Globalize.culture(d.culture);d.localization.calendar=b.calendar}}if(d.localization.calendar&&d.localization.calendar.firstDay!=undefined&&d.culture!="default"){d.firstDayOfWeek=d.localization.calendar.firstDay}}catch(c){}}if(e=="views"){if(d.views.indexOf("month")==-1){d.view="year"}if(d.views.indexOf("year")==-1&&d.views.indexOf("month")==-1){d.view="decade"}d.render();return}if(e=="showFooter"){d.render()}if(e=="width"||e=="height"){d._setSize();return}else{if(e=="theme"){a.jqx.utilities.setTheme(g,f,d.host)}else{if(e=="rowHeaderWidth"||e=="showWeekNumbers"){d.render()}else{d.view="month";d.render()}}}}})})(jqxBaseFramework);(function(a){a.jqx._jqxCalendar.cell=function(c){var b={dateTime:new a.jqx._jqxDateTimeInput.getDateTime(c),_date:c,getDate:function(){return this._date},setDate:function(d){this.dateTime=new a.jqx._jqxDateTimeInput.getDateTime(d);this._date=d},isToday:false,isWeekend:false,isOtherMonth:false,isVisible:true,isSelected:false,isHighlighted:false,element:null,row:-1,column:-1,tooltip:null};return b};a.jqx._jqxCalendar.monthView=function(c,h,d,b,f,e){var g={start:c,end:h,cells:d,rowCells:b,columnCells:f,element:e};return g}})(jqxBaseFramework);
+(function(a){a.jqx.jqxWidget("jqxCalendar","",{});a.extend(a.jqx._jqxCalendar.prototype,{defineInstance:function(){var b={disabled:false,restrictedDates:new Array(),multipleMonthRows:1,multipleMonthColumns:1,minDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),maxDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),min:new Date(1900,0,1),max:new Date(2100,0,1),navigationDelay:400,stepMonths:1,width:null,height:null,value:a.jqx._jqxDateTimeInput.getDateTime(new Date()),firstDayOfWeek:0,showWeekNumbers:false,showDayNames:true,enableWeekend:false,enableOtherMonthDays:true,showOtherMonthDays:true,rowHeaderWidth:25,columnHeaderHeight:25,titleHeight:30,dayNameFormat:"firstTwoLetters",monthNameFormat:"default",titleFormat:["MMMM yyyy","yyyy","yyyy","yyyy"],enableViews:true,readOnly:false,culture:"default",enableFastNavigation:true,enableHover:true,enableAutoNavigation:true,enableTooltips:false,backText:"Back",forwardText:"Forward",specialDates:new Array(),keyboardNavigation:true,selectionMode:"default",selectableDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],todayString:"Today",clearString:"Clear",showFooter:false,selection:{from:null,to:null},canRender:true,_checkForHiddenParent:true,height:null,rtl:false,view:"month",views:["month","year","decade"],changing:null,change:null,localization:{backString:"Back",forwardString:"Forward",todayString:"Today",clearString:"Clear",calendar:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss"}}},events:["backButtonClick","nextButtonClick","valuechanged","cellMouseDown","cellMouseUp","cellSelected","cellUnselected","change","viewChange"]};if(this===a.jqx._jqxCalendar.prototype){return b}a.extend(true,this,b);this.minDate._setYear(1900);this.minDate._setMonth(1);this.minDate._setDay(1);this.minDate._setHours(0);this.minDate._setMinutes(0);this.minDate._setSeconds(0);this.minDate._setMilliseconds(0);this.maxDate._setYear(2100);this.maxDate._setMonth(1);this.maxDate._setDay(1);this.maxDate._setHours(0);this.maxDate._setMinutes(0);this.maxDate._setSeconds(0);this.maxDate._setMilliseconds(0);this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0);return b},_createFromInput:function(d){var g=this;if(g.element.nodeName.toLowerCase()=="input"){g.field=g.element;if(g.field.className){g._className=g.field.className}var f={title:g.field.title};if(g.field.value){f.value=g.field.value}if(g.field.checked){f.checked=true}if(g.field.id.length){f.id=g.field.id.replace(/[^\w]/g,"_")+"_"+d}else{f.id=a.jqx.utilities.createId()+"_"+d}if(g.field.getAttribute("min")){var e=new Date(g.field.getAttribute("min"));if(e!="Invalid Date"){g.min=e}}if(g.field.getAttribute("max")){var c=new Date(g.field.getAttribute("max"));if(c!="Invalid Date"){g.max=c}}var i=a("<div></div>",f);i[0].style.cssText=g.field.style.cssText;if(!g.width){g.width=a(g.field).width()}if(!g.height){g.height=a(g.field).outerHeight()}a(g.field).hide().after(i);var h=g.host.data();g.host=i;g.host.data(h);g.element=i[0];g.element.id=g.field.id;g.field.id=f.id;if(g._className){g.host.addClass(g._className);a(g.field).removeClass(g._className)}if(g.field.tabIndex){var b=g.field.tabIndex;g.field.tabIndex=-1;g.element.tabIndex=b}}},createInstance:function(i){var h=this;h._createFromInput("jqxCalendar");this.setCalendarSize();if(this.element.id===""){this.element.id=a.jqx.utilities.createId()}if(a.type(this.value)=="date"){this.value=a.jqx._jqxDateTimeInput.getDateTime(this.value)}this.element.innerHTML="";this.host.attr("data-role","calendar");var b=this.element.id;var j=this;this.propertyChangeMap.width=function(k,m,l,n){j.setCalendarSize()};this.propertyChangeMap.height=function(k,m,l,n){j.setCalendarSize()};if(a.global){a.global.preferCulture(this.culture)}if(this.culture!="default"){if(a.global){a.global.preferCulture(this.culture);this.localization.calendar=a.global.culture.calendar}else{if(Globalize){var d=Globalize.culture(this.culture);this.localization.calendar=d.calendar}}this.firstDayOfWeek=this.localization.calendar.firstDay}if(this.localization.backString!="Back"){this.backText=this.localization.backString}if(this.localization.forwardString!="Forward"){this.forwardText=this.localization.forwardString}if(this.localization.todayString!="Today"&&this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString!="Clear"&&this.localization.clearString){this.clearString=this.localization.clearString}if(this.localization.calendar&&this.localization.calendar.firstDay!=undefined&&this.culture!="default"){this.firstDayOfWeek=this.localization.calendar.firstDay}this.setMaxDate(this.max,false);this.setMinDate(this.min,false);if(!this.host.attr("tabIndex")){this.host.attr("tabIndex",0)}this.host.css("outline","none");this.host.addClass(this.toThemeProperty("jqx-calendar"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.host.addClass(this.toThemeProperty("jqx-rc-all"));this._addInput();if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1&&this.views.indexOf("month")==-1){this.view="decade"}this.addHandler(this.host,"keydown",function(l){var k=true;if(j.keyboardNavigation){if(j._handleKey!=undefined){k=j._handleKey(l);if(!k){if(l.stopPropagation){l.stopPropagation()}if(l.preventDefault){l.preventDefault()}}}}return k});var e=false;var g=this;var f=false;if(j.width!=null&&j.width.toString().indexOf("%")!=-1){f=true}if(j.height!=null&&j.height.toString().indexOf("%")!=-1){f=true}a.jqx.utilities.resize(this.host,function(){var k=g.host.find("#View"+j.element.id);if(!e){e=true;g.render()}else{g.refreshTitle(k)}if(f){if(j.refreshTimer){clearTimeout(j.refreshTimer)}j.refreshTimer=setTimeout(function(){j.refreshControl()},1)}},false,this._checkForHiddenParent);var c="View";this.propertyChangeMap.disabled=function(k,m,l,n){if(n){k.host.addClass(j.toThemeProperty("jqx-fill-state-disabled"))}else{k.host.removeClass(j.toThemeProperty("jqx-fill-state-disabled"))}j.refreshControl()}},_addInput:function(){var b=this.host.attr("name");this.input=a("<input type='hidden'/>");this.host.append(this.input);if(b){this.input.attr("name",b)}this.input.val(this.getDate().toString())},setCalendarSize:function(){if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.host.width(this.width)}else{if(this.width!=undefined&&!isNaN(this.width)){this.host.width(this.width)}}if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.host.css("width",this.width)}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.host.height(this.height)}else{if(this.height!=undefined&&!isNaN(this.height)){this.host.height(this.height)}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.host.css("height",this.height)}},_getYearAndMonthPart:function(c){if(!c){return new Date(1900,0,1)}var b=new Date(c.getFullYear(),c.getMonth(),1);return b},_handleKey:function(p){if(this.readOnly){return true}var A=p.keyCode;var y=this;var b=this._getSelectedDate();if(b==undefined){if(this.view=="month"&&(A==37||A==38||A==39||A==40)){this.selectedDate=new Date(this.value.year,this.value.month-1,1);this._selectDate(this.selectedDate,"key");b=this.selectedDate}else{return true}}if(p.altKey){return true}if(this._animating){return false}if(this.view!="month"&&A==13){var d=this._getSelectedCell();this._setDateAndSwitchViews(d,p,"keyboard")}if(this.view=="year"){var w=b.getMonth();var j=this._getYearAndMonthPart(this.getMinDate());var m=this._getYearAndMonthPart(this.getMaxDate());switch(A){case 37:if(w==0){var h=new Date(b.getFullYear()-1,11,1);if(h>=j){this.selectedDate=h;this.navigateBackward()}else{if(this.selectedDate!=j){this.selectedDate=j;this.navigateBackward()}}}else{var h=new Date(b.getFullYear(),w-1,1);if(h>=j){this._selectDate(h,"key")}}return false;case 38:var h=new Date(b.getFullYear(),w-4,1);if(h<j){h=j}if(w-4<0){this.selectedDate=h;this.navigateBackward()}else{this._selectDate(h,"key")}return false;case 40:var h=new Date(b.getFullYear(),w+4,1);if(h>m){h=m}if(w+4>11){this.selectedDate=h;this.navigateForward()}else{this._selectDate(h,"key")}return false;case 39:if(w==11){var h=new Date(b.getFullYear()+1,0,1);if(h<=m){this.selectedDate=h;this.navigateForward()}else{if(this.selectedDate!=m){this.selectedDate=m;this.navigateForward()}}}else{var h=new Date(b.getFullYear(),w+1,1);if(h<=m){this._selectDate(h,"key")}}return false}return true}if(this.view=="decade"){var o=this._renderStartDate.getFullYear();var k=this._renderEndDate.getFullYear();var n=b.getFullYear();var v=this.getMinDate().getFullYear();var c=this.getMaxDate().getFullYear();switch(A){case 37:if(n-1>=v){if(n<=o){this.selectedDate=new Date(n-1,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(n-1,b.getMonth(),1),"key")}}return false;case 38:var x=n-4;if(n-4<v){x=v}if(x<o){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 40:var x=n+4;if(x>c){x=c}if(x>k){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 39:if(n+1<=c){if(n==k){this.selectedDate=new Date(n+1,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(n+1,b.getMonth(),1),"key")}}return false}return true}var u=new a.jqx._jqxDateTimeInput.getDateTime(b);var f=this.getViewStart();var e=this.getViewEnd();var t=u;var s=a.data(this.element,"View"+this.element.id);if(s==undefined||s==null){return true}if(A==36){u._setDay(1);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}if(A==35){var r=this.value._daysInMonth(this.value.year,this.value.month);u._setDay(r);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}var g=1;if(p.ctrlKey){g=12}if(A==34){var z=this.navigateForward(g);if(z){u._addMonths(g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==33){var z=this.navigateBackward(g);if(z){u._addMonths(-g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==38){u._addDays(-7);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){this.value.day=l.getDate();this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==40){u._addDays(7);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){this.value.day=l.getDate();this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}if(A==37){u._addDays(-1);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}if(this._isDisabled(u.dateTime)){return false}this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==39){u._addDays(1);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}return true},render:function(){if(!this.canRender){return}this.host.children().remove();var c=this._renderSingleCalendar("View"+this.element.id);var b=this;this.host.append(c)},addSpecialDate:function(b,c,d){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){var e=this.specialDates.length;this.specialDates[e]={Date:b,Class:c,Tooltip:d};this.refreshControl()}},refresh:function(c){var b=this;this.render();setTimeout(function(){b.refreshControl()})},invalidate:function(){this.refreshControl()},refreshControl:function(){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){this.refreshSingleCalendar("View"+this.element.id,null)}},getViewStart:function(){var c=this.getVisibleDate();var b=this.getFirstDayOfWeek(c);return b.dateTime},getViewEnd:function(){var c=this.getViewStart();var b=new a.jqx._jqxDateTimeInput.getDateTime(c);b._addDays(41);return b.dateTime},refreshSingleCalendar:function(e,l){if(!this.canRender){return}var j=this.host.find("#"+e);var f=this.getVisibleDate();var c=this.getFirstDayOfWeek(f);this.refreshCalendarCells(j,c,e);this.refreshTitle(j);this.refreshRowHeader(j,e);if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var b=parseInt(this.month.css("padding-top"));var g=this.host.height()-2*b;var k=g-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){k=this.month.height()-this.titleHeight}if(this.showFooter){k-=20}var d=j.find("#cellsTable"+e);var i=j.find("#calendarRowHeader"+e);d.height(k);i.height(k)},refreshRowHeader:function(s,m){if(!this.showWeekNumbers){return}var c=this.getVisibleDate();var h=this.getFirstDayOfWeek(c);var n=h.dayOfWeek;var t=this.getWeekOfYear(h);var f=new a.jqx._jqxDateTimeInput.getDateTime(new Date(h.dateTime));f._addDays(5);f.dayOfWeek=f.dateTime.getDay();var k=this.getWeekOfYear(f);var e=this.rowHeader.find("table");e.width(this.rowHeaderWidth);var g=h;var q=new Array();for(var p=0;p<6;p++){var o=t.toString();var b=new a.jqx._jqxCalendar.cell(g.dateTime);var l=p+1+this.element.id;var j=a(e[0].rows[p].cells[0]);b.element=j;b.row=p;b.column=0;var d=j.find("#headerCellContent"+l);d.addClass(this.toThemeProperty("jqx-calendar-row-cell"));d[0].innerHTML=t;q[p]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addWeeks(1)));t=this.getWeekOfYear(g)}var r=a.data(this.element,s[0].id);r.rowCells=q;this._refreshOtherMonthRows(r,m)},_refreshOtherMonthRows:function(f,e){if(this.showOtherMonthDays){return}this._displayLastRow(true,e);this._displayFirstRow(true,e);var d=false;var g=false;for(var c=0;c<f.cells.length;c++){var b=f.cells[c];if(b.isVisible&&c<7){d=true}else{if(b.isVisible&&c>=f.cells.length-7){g=true}}}if(!d){this._displayFirstRow(false,e)}if(!g){this._displayLastRow(false,e)}},_displayLastRow:function(b,c){var g=this.host.find("#"+c);var f=g.find("#calendarRowHeader"+g[0].id).find("table");var d=null;if(this.showWeekNumbers){if(f[0].cells){var d=a(f[0].rows[5])}}var e=a(g.find("#cellTable"+g[0].id)[0].rows[5]);if(b){if(this.showWeekNumbers&&d){d.css("display","table-row")}e.css("display","table-row")}else{if(this.showWeekNumbers&&d){d.css("display","none")}e.css("display","none")}},_displayFirstRow:function(b,c){var e=this.host.find("#"+c);var d=e.find("#calendarRowHeader"+e[0].id).find("table");var f=null;if(this.showWeekNumbers){if(d[0].cells){var f=a(d[0].rows[0])}}var g=a(e.find("#cellTable"+e[0].id)[0].rows[0]);if(b){if(this.showWeekNumbers&&f){f.css("display","table-row")}g.css("display","table-row")}else{if(this.showWeekNumbers&&f){f.css("display","none")}g.css("display","none")}},_renderSingleCalendar:function(q,l){if(!this.canRender){return}var n=this.host.find("#"+q.toString());if(n!=null){n.remove()}var v=a("<div id='"+q.toString()+"'></div>");var b=this.getVisibleDate();var m=this.getFirstDayOfWeek(b);var e=new a.jqx._jqxDateTimeInput.getDateTime(m.dateTime);e._addMonths(1);var u=a.jqx._jqxCalendar.monthView(m,e,null,null,null,v);if(l==undefined||l==null){this.host.append(v);v[0].style.width="100%";v[0].style.height="100%"}else{l.append(v)}a.data(this.element,q,u);var t=parseInt(v.css("padding-top"));var s=this.host.height()-2*t;var r=s-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){r=s-this.titleHeight}if(this.showFooter){r-=20}if(this.rowHeaderWidth<0){this.rowHeaderWidth=0}if(this.columnHeaderHeight<0){this.columnHeaderHeight=0}if(this.titleHeight<0){this.titleHeight=0}var g=this.rowHeaderWidth;var k=this.columnHeaderHeight;if(!this.showWeekNumbers){g=0}if(!this.showDayNames){k=0}var x="<div style='height:"+this.titleHeight+"px;'><table role='grid' style='margin: 0px; width: 100%; height: 100%; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr role='row' id='calendarTitle' width='100%'><td role='gridcell' NOWRAP id='leftNavigationArrow'></td><td aria-live='assertive' aria-atomic='true' role='gridcell' align='center' NOWRAP id='calendarTitleHeader'></td><td role='gridcell' NOWRAP id='rightNavigationArrow'></td></tr></table></div>";var c="<table role='grid' class='"+this.toThemeProperty("jqx-calendar-month")+"' style='margin: 0px; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr role='row' id='calendarHeader' height='"+k+"'><td role='gridcell' id='selectCell' width='"+g+"'></td><td role='gridcell' colspan='2' style='border: none; padding-left: 2px; padding-right: 2px' id='calendarColumnHeader'></td></tr><tr role='row' id='calendarContent'><td role='gridcell' id='calendarRowHeader' valign='top' height='"+r+"' width='"+g+"'></td><td role='gridcell' valign='top' colspan='2' style='padding-left: 2px; padding-right: 2px' id='cellsTable' height='"+r+"'></td></tr></table>";var p="<div id='footer' style='margin: 0px; display: none; height:"+d+"px;'><table style='width: 100%; height: 100%; border-spacing: 0px;' cellspacing='0' cellpadding='0'><tr id='calendarFooter'><td align='right' id='todayButton'></td><td align='left' colspan='2' id=doneButton></td></tr></table></div>";v[0].innerHTML=x+c+p;this.header=v.find("#calendarHeader");this.header[0].id="calendarHeader"+q;this.header.addClass(this.toThemeProperty("calendar-header"));this.columnHeader=v.find("#calendarColumnHeader");this.columnHeader[0].id="calendarColumnHeader"+q;this.table=v.find("#cellsTable");this.table[0].id="cellsTable"+q;this.rowHeader=v.find("#calendarRowHeader");this.rowHeader[0].id="calendarRowHeader"+q;this.selectCell=v.find("#selectCell");this.selectCell[0].id="selectCell"+q;this.title=v.find("#calendarTitle");this.title[0].id="calendarTitle"+q;this.leftButton=v.find("#leftNavigationArrow");this.leftButton[0].id="leftNavigationArrow"+q;this.titleHeader=v.find("#calendarTitleHeader");this.titleHeader[0].id="calendarTitleHeader"+q;this.rightButton=v.find("#rightNavigationArrow");this.rightButton[0].id="rightNavigationArrow"+q;this.footer=v.find("#calendarFooter");this._footer=v.find("#footer");this._footer[0].id="footer"+q;this.footer[0].id="calendarFooter"+q;this.todayButton=v.find("#todayButton");this.todayButton[0].id="todayButton"+q;this.doneButton=v.find("#doneButton");this.doneButton[0].id="doneButton"+q;this.title.addClass(this.toThemeProperty("jqx-calendar-title-container"));var d=20;if(this.showFooter){this._footer.css("display","block")}v.find("tr").addClass(this.toThemeProperty("jqx-reset"));v.addClass(this.toThemeProperty("jqx-widget-content"));v.addClass(this.toThemeProperty("jqx-calendar-month-container"));this.month=v;this.selectCell.addClass(this.toThemeProperty("jqx-reset"));this.selectCell.addClass(this.toThemeProperty("jqx-calendar-top-left-header"));if(this.showWeekNumbers){this._renderRowHeader(v)}else{this.table[0].colSpan=3;this.columnHeader[0].colSpan=3;this.rowHeader.css("display","none");this.selectCell.css("display","none")}if(this.showFooter){this.footer.height(20);var j=a("<a href='javascript:;'>"+this.todayString+"</a>");j.appendTo(this.todayButton);var i=a("<a href='javascript:;'>"+this.clearString+"</a>");i.appendTo(this.doneButton);i.addClass(this.toThemeProperty("jqx-calendar-footer"));j.addClass(this.toThemeProperty("jqx-calendar-footer"));var o=this;var f="mousedown";if(a.jqx.mobile.isTouchDevice()){f=a.jqx.mobile.getTouchEventName("touchstart")}this.addHandler(j,f,function(){if(o.today){o.today()}else{o.setDate(new Date(),"mouse")}return false});this.addHandler(i,f,function(){if(o.clear){o.clear()}else{o.setDate(null,"mouse")}return false})}if(this.view!="month"){this.header.hide()}if(this.showDayNames&&this.view=="month"){this.renderColumnHeader(v)}this.oldView=this.view;this.renderCalendarCells(v,m,q);if(l==undefined||l==null){this.renderTitle(v)}this._refreshOtherMonthRows(u,q);v.find("tbody").css({border:"none",background:"transparent"});if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var w=this;this.addHandler(this.host,"focus",function(){w.focus()});return v},_getTitleFormat:function(){switch(this.view){case"month":return this.titleFormat[0];case"year":return this.titleFormat[1];case"decade":return this.titleFormat[2];case"centuries":return this.titleFormat[3]}},renderTitle:function(t){var k=a("<div role='button' style='float: left;'></div>");var l=a("<div role='button' style='float: right;'></div>");var o=this.title;o.addClass(this.toThemeProperty("jqx-reset"));o.addClass(this.toThemeProperty("jqx-widget-header"));o.addClass(this.toThemeProperty("jqx-calendar-title-header"));var e=o.find("td");if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(e.css("background-color")!="transparent"){var g=o.css("background-color");e.css("background-color",g)}if(e.css("background-image")!="transparent"){var d=o.css("background-image");var p=o.css("background-repeat");var c=o.css("background-position");e.css("background-image",d);e.css("background-repeat",p);e.css("background-position","left center scroll")}}else{e.css("background-color","transparent")}if(this.disabled){o.addClass(this.toThemeProperty("jqx-calendar-title-header-disabled"))}k.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));k.addClass(this.toThemeProperty("jqx-icon-arrow-left"));k.appendTo(this.leftButton);var m=this.leftButton;l.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));l.addClass(this.toThemeProperty("jqx-icon-arrow-right"));l.appendTo(this.rightButton);var b=this.rightButton;if(this.enableTooltips){if(a(m).jqxTooltip){a(m).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.backText});a(b).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.forwardText})}}var n=this.titleHeader;var v=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var q=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}else{if(this.view=="centuries"){var q=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}}var f=a("<div style='background: transparent; margin: 0; padding: 0; border: none;'>"+v+"</div>");n.append(f);f.addClass(this.toThemeProperty("jqx-calendar-title-content"));var s=parseInt(k.width());var i=t.width()-2*s;var r=n.find(".jqx-calendar-title-content").width(i);a.data(k,"navigateLeft",this);a.data(l,"navigateRight",this);var h=a.jqx.mobile.isTouchDevice();if(!this.disabled){var u=this;this.addHandler(n,"mousedown",function(A){if(u.enableViews){if(!u._viewAnimating&&!u._animating){var x=u.view;u.oldView=x;switch(u.view){case"month":u.view="year";break;case"year":u.view="decade";break}if(u.views.indexOf("year")==-1&&u.view=="year"){u.view="decade"}if(u.views.indexOf("decade")==-1&&u.view=="decade"){u.view=x}if(x!=u.view){var z="View"+u.element.id;var B=u.host.find("#"+z);var y=u.getVisibleDate();var w=u.getFirstDayOfWeek(y);u.renderCalendarCells(B,w,z,true);u.refreshTitle(B);u._raiseEvent("8")}}return false}});this.addHandler(k,"mousedown",function(x){if(!u._animating){a.data(k,"navigateLeftRepeat",true);var w=a.data(k,"navigateLeft");if(w.enableFastNavigation&&!h){w.startRepeat(w,k,true,u.navigationDelay+200)}w.navigateBackward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(0,x)}else{return false}});this.addHandler(k,"mouseup",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(k,"mouseleave",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(l,"mousedown",function(x){if(!u._animating){a.data(l,"navigateRightRepeat",true);var w=a.data(l,"navigateRight");if(w.enableFastNavigation&&!h){w.startRepeat(w,l,false,u.navigationDelay+200)}w.navigateForward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(1,x)}else{return false}});this.addHandler(l,"mouseup",function(w){a.data(l,"navigateRightRepeat",false)});this.addHandler(l,"mouseleave",function(w){a.data(l,"navigateRightRepeat",false)})}},refreshTitle:function(f){var g=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var d=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}else{if(this.view=="centuries"){var d=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}}var e=this.titleHeader;if(this.titleHeader){var c=e.find(".jqx-calendar-title-content");var h=a("<div style='background: transparent; margin: 0; padding: 0; border: none;'>"+g+"</div>");e.append(h);h.addClass(this.toThemeProperty("jqx-calendar-title-content"));if(c!=null){c.remove()}}},startRepeat:function(d,b,f,e){var c=window.setTimeout(function(){var g=a.data(b,"navigateLeftRepeat");if(!f){g=a.data(b,"navigateRightRepeat")}if(g){if(e<25){e=25}if(f){d.navigateBackward(1,"arrow");d.startRepeat(d,b,true,e)}else{d.navigateForward(1,"arrow");c=d.startRepeat(d,b,false,e)}}else{window.clearTimeout(c);return}},e)},navigateForward:function(h,g){if(h==undefined||h==null){h=this.stepMonths}var f=this.value.year;if(this.view=="decade"){f=this._renderStartDate.getFullYear()+12;if(this._renderEndDate.getFullYear()>=this.getMaxDate().getFullYear()){return}}else{if(this.view=="year"){f=this.value.year+1}else{if(this.view=="centuries"){f=this.value.year+100}}}if(this.view!="month"){var b=this.getMaxDate().getFullYear();if(b<f||f>b){f=b}if(this.value.year==f){if(this.view==="decade"){if(this.value.year>this._renderEndDate.getFullYear()){this.value.year=f;this.value.month=1;this.value.day=1}else{return}}else{return}}this.value.year=f;this.value.month=1;this.value.day=1}var c=this.value.day;var i=this.value.month;if(i+h<=12){var e=this.value._daysInMonth(this.value.year,this.value.month+h);if(c>e){c=e}}if(this.view=="month"){var d=new Date(this.value.year,this.value.month-1+h,c);if(g=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1+h,1)}}else{var d=new Date(this.value.year,this.value.month-1,c)}return this.navigateTo(d)},navigateBackward:function(g,f){if(g==undefined||g==null){g=this.stepMonths}var e=this.value.year;if(this.view=="decade"){e=this._renderStartDate.getFullYear()-12}else{if(this.view=="year"){e=this.value.year-1}else{if(this.view=="centuries"){e=this.value.year-100}}}if(this.view!="month"){var i=this.getMinDate().getFullYear();if(e<i){e=i}if(this.view=="decade"){if(this._renderStartDate){if(this._renderStartDate.getFullYear()==e){return}}}this.value.year=e;this.value.month=1;this.value.day=1}var b=this.value.day;var h=this.value.month;if(h-g>=1){var d=this.value._daysInMonth(this.value.year,this.value.month-g);if(b>d){b=d}}if(this.view=="month"){var c=new Date(this.value.year,this.value.month-1-g,b);if(f=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1-g,1)}}else{var c=new Date(this.value.year,this.value.month-1,b)}return this.navigateTo(c)},_isRestrictedRange:function(d,c){if(d>c){return true}var b=d;while(b.valueOf()<=c.valueOf()){if(this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_hasUnrestrictedRanges:function(d,c){if(d>c){return false}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_getNextUnrestrictedDay:function(d,c){if(d>c){return null}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return b}b.setDate(b.getDate()+1)}return null},_isRestrictedDate:function(d){var c=this;if(!a.isArray(c.restrictedDates)){return false}for(var g=0;g<c.restrictedDates.length;g++){var b=c.restrictedDates[g];if(typeof(b)=="object"&&b.from!=undefined&&b.to!=undefined){var f=b.from;var e=b.to;if(d.valueOf()>=f.valueOf()&&d.valueOf()<=e.valueOf()){return true}}else{if(b.getMonth()==d.getMonth()&&b.getDate()==d.getDate()&&b.getFullYear()==d.getFullYear()){return true}}}return false},_isDisabled:function(d){var e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var b=d.getDay();var c=e[b];if(this.selectableDays.indexOf(c)==-1){return true}if(this._isRestrictedDate(d)){return true}return false},refreshCalendarCells:function(x,f,m){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.refreshViews(x,f,m);return}var s=this.table;var q=s.find("#cellTable"+m.toString());var e=f;var c=new Array();var n=0;var u=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var p=0;p<6;p++){for(var o=0;o<7;o++){var d=p+1;var h=o;if(this.rtl){h=6-h}var t=h+1;var l="#cell"+d+t+this.element.id;var w=new Date(e.dateTime.getFullYear(),e.dateTime.getMonth(),e.dateTime.getDate());var b=new a.jqx._jqxCalendar.cell(w);var g=a(q[0].rows[p].cells[t-1]);g[0].id=l.substring(1);b.element=g;b.row=p;b.column=o;b.isVisible=true;b.isOtherMonth=false;b.isToday=false;b.isWeekend=false;b.isHighlighted=false;b.isSelected=false;if(e.month!=this.value.month){b.isOtherMonth=true;b.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(w)){b.isRestricted=true;b.isDisabled=true}if(!b.isDisabled){if(w<this.getMinDate()||w>this.getMaxDate()||this._isDisabled(w)){b.isDisabled=true}}if(e.month==u.month&&e.day==u.day&&e.year==u.year){b.isToday=true}if(e.isWeekend()){b.isWeekend=true}a.data(this.element,"cellContent"+l.substring(1),b);a.data(this.element,l.substring(1),b);c[n]=b;n++;a.jqx.utilities.html(g,e.day);this._applyCellStyle(b,g,g);e=new a.jqx._jqxDateTimeInput.getDateTime(new Date(e._addDays(1)))}}var v=a.data(this.element,x[0].id);if(v!=undefined&&v!=null){v.cells=c}this.renderedCells=c;this._refreshOtherMonthRows(v,m)},_getDecadeAndCenturiesData:function(){var k=new Array();var p=new Array();var c=this.getMaxDate().getFullYear()-this.getMinDate().getFullYear();if(c<12){c=12}var f=this.getMinDate();var b=this.getMaxDate();var l=this.value.dateTime.getFullYear();if(this.view=="decade"){if(l+12>b.getFullYear()){l=b.getFullYear()-11}if(l<f.getFullYear()){l=f.getFullYear()}for(var h=0;h<c;h++){var d=new Date(f.getFullYear()+h,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear(),d.getMonth(),1);for(var e=0;e<12;e++){var o=new Date(g.getFullYear()+e,this.value.dateTime.getMonth(),this.value.dateTime.getDate());var m=o.getFullYear();if(f.getFullYear()<=m&&m<=b.getFullYear()){k.push(m);p.push(o);if(e==0){this._renderStartDate=o}this._renderEndDate=o}else{k.push(m);p.push(o)}}break}}}else{if(this.view=="centuries"){for(var h=0;h<c;h+=120){var d=new Date(f.getFullYear()+h+120,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear()-130,d.getMonth(),1);if(g<f){g=f}for(var e=0;e<12;e++){var n=new Date(g.getFullYear()+e*10,g.getMonth(),1);if(g.getFullYear()>=f.getFullYear()&&n.getFullYear()<=b.getFullYear()){k.push("<span style='visibility: hidden;'>-</span>"+n.getFullYear()+"-"+(n.getFullYear()+9));p.push(n);if(e==0){this._renderCenturyStartDate=n}this._renderCenturyEndDate=new Date(n.getFullYear()+9,0,1)}}break}}}}return{years:k,dates:p}},refreshViews:function(A,m,s){var B=this;var c=new Array();var w=A.find("#cellTable"+s.toString());var D=this._getDecadeAndCenturiesData();var l=D.years;var C=D.dates;var t=0;var f=this.getMinDate();var n=this.getMaxDate();for(var v=0;v<3;v++){for(var u=0;u<4;u++){var d=v+1;var q=u;if(this.rtl){q=3-q}var x=q+1;var z=new Date(this.value.dateTime);z.setDate(1);z.setMonth(v*4+q);var b=new a.jqx._jqxCalendar.cell(z);var e=w[0].rows["row"+(1+v)+this.element.id];var o=a(e.cells[u]);b.isSelected=false;b.isVisible=true;b.element=o;b.row=v;b.column=u;b.index=c.length;var p="";if(this.view=="year"){var h=this.localization.calendar.months.names;var g=h[v*4+q];switch(this.monthNameFormat){case"default":g=this.localization.calendar.months.namesAbbr[v*4+q];break;case"shortest":g=this.localization.calendar.months.namesShort[v*4+q];break;case"firstTwoLetters":g=g.substring(0,2);break;case"firstLetter":g=g.substring(0,1);break}p=g}else{if(this.view=="decade"||this.view=="centuries"){p=l[v*4+q];if(undefined==p){p="<span style='cursor: default; visibility: hidden;'>2013</span>"}b.setDate(C[v*4+q])}}var z=b.getDate();if(this.view=="year"){if(z.getMonth()==this.getDate().getMonth()&&z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}else{if(z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}if(this.view=="year"){if(this._getYearAndMonthPart(z)<this._getYearAndMonthPart(f)){b.isDisabled=true}if(this._getYearAndMonthPart(z)>this._getYearAndMonthPart(n)){b.isDisabled=true}}else{if(z.getFullYear()<f.getFullYear()){b.isDisabled=true}if(z.getFullYear()>n.getFullYear()){b.isDisabled=true}}a.jqx.utilities.html(o,p);c[t]=b;t++}}var y=a.data(this.element,A[0].id);if(y!=undefined&&y!=null){y.cells=c}this.renderedCells=c;this._applyCellStyles()},_createViewClone:function(){var b=this.host.find(".jqx-calendar-month");var c=b.clone();c.css("position","absolute");c.css("top",b.position().top);c.width(this.month.width());return c},_addCellsTable:function(h,g){var e=this;var c=this.showFooter?20:0;if(this.view!="month"){g.height(this.month.height()-this.titleHeight)}else{g.height(this.month.height()-this.titleHeight-this.columnHeaderHeight-c)}this._viewAnimating=true;var b=this.host.find(".jqx-calendar-month-container");b.css("position","relative");var d=this.host.find(".jqx-calendar-month");var f=this._createViewClone();b.append(f);if(this.view!="month"){this.header.fadeOut(0);if(this.showWeekNumbers){this.rowHeader.fadeOut(0)}if(this.showFooter){this._footer.fadeOut(0)}}else{this.header.fadeIn(this.navigationDelay+200);if(this.showWeekNumbers){this.rowHeader.fadeIn(this.navigationDelay+200)}if(this.showFooter){this._footer.fadeIn(this.navigationDelay+200)}}h.children().remove();h.append(g);this._animateViews(f,g,function(){if(!e.selectedDate&&e.selectionMode!="range"){e.selectedDate=e.renderedCells[0].getDate()}try{e.renderedCells[0].element.focus();setTimeout(function(){e.renderedCells[0].element.focus()},10)}catch(i){}e._viewAnimating=false});g.addClass(this.toThemeProperty("jqx-calendar-view"))},_animateViews:function(c,b,e){var d=this;d._viewAnimating=true;if(d.oldView==d.view){c.remove();b.fadeOut(0);b.fadeIn(0);e();return}c.fadeOut(this.navigationDelay+100,function(){c.remove()});b.fadeOut(0);b.fadeIn(this.navigationDelay+200,function(){e()})},focus:function(){if(this.disabled){return}try{if(this.renderedCells&&this.renderedCells.length>0){var d=this;var c=false;if(!d.selectedDate&&d.selectionMode!="range"){this.setDate(new Date(),"mouse")}this.element.focus()}}catch(b){}},renderViews:function(E,n,v){var F=this;var e=new Array();var z=a("<table role='grid' style='border-color: transparent; width: 100%; height: 100%;' cellspacing='2' cellpadding='0' id=cellTable"+v.toString()+"><tr role='row' id='row1"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row' id='row2"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row' id='row3"+this.element.id+"'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");var q=this.host.find(".jqx-calendar-month-container");q.css("position","relative");var A=E.find("#cellsTable"+E[0].id);A[0].style.borderColor="transparent";var I=this._getDecadeAndCenturiesData();var m=I.years;var H=I.dates;var w=0;var g=this.getMinDate();var o=this.getMaxDate();var t=new Date(this.value.dateTime);t.setDate(1);for(var y=0;y<3;y++){for(var x=0;x<4;x++){var d=y+1;var u=x;if(this.rtl){u=3-u}var B=u+1;var f=z[0].rows["row"+(1+y)+this.element.id];var D=new Date(t);D.setMonth(y*4+u);var c=new a.jqx._jqxCalendar.cell(D);var p=a(f.cells[x]);c.isVisible=true;c.element=p;c.row=y;c.column=x;c.index=e.length;c.isSelected=false;var s="";if(this.view=="year"){if(D.getMonth()==this.getDate().getMonth()&&D.getFullYear()==this.getDate().getFullYear()){c.isSelected=true}var l=this.localization.calendar.months.names;var h=l[y*4+u];switch(this.monthNameFormat){case"default":h=this.localization.calendar.months.namesAbbr[y*4+u];break;case"shortest":h=this.localization.calendar.months.namesShort[y*4+u];break;case"firstTwoLetters":h=h.substring(0,2);break;case"firstLetter":h=h.substring(0,1);break}s=h}else{if(this.view=="decade"||this.view=="centuries"){s=m[y*4+u];c.setDate(H[y*4+u]);if(c.getDate().getFullYear()==this.getDate().getFullYear()){c.isSelected=true}if(undefined==s){s="<span style='cursor: default; visibility: hidden;'>2013</span>"}}}var D=c.getDate();if(this.view=="year"){var b=new Date(D);b.setDate(1);b.setHours(0,0,0,0);b.setMonth(D.getMonth()+1);b=new Date(b.valueOf()-1);if(this._getYearAndMonthPart(D)<this._getYearAndMonthPart(g)||this._getYearAndMonthPart(D)>this._getYearAndMonthPart(o)||!this._hasUnrestrictedRanges(D,b)){c.isDisabled=true}}else{var G=new Date(D);G.setMonth(0);G.setDate(1);G.setHours(0,0,0,0);G.setFullYear(D.getFullYear()+1);G=new Date(G.valueOf()-1);if(D.getFullYear()<g.getFullYear()||D.getFullYear()>o.getFullYear()||!this._hasUnrestrictedRanges(D,G)){c.isDisabled=true}}a.jqx.utilities.html(p,s);e[w]=c;w++}}a.each(e,function(){var j=this.element;var i=this;if(!F.disabled){F.addHandler(j,"mousedown",function(k){F._setDateAndSwitchViews(i,k,"mouse")});F.addHandler(j,"mouseover",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=true;F._applyCellStyle(k,k.element,k.element)});F.addHandler(j,"mouseout",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=false;F._applyCellStyle(k,k.element,k.element)})}});var C=a.data(this.element,E[0].id);if(C!=undefined&&C!=null){C.cells=e}this.renderedCells=e;this._addCellsTable(A,z);this._applyCellStyles()},_setDateAndSwitchViews:function(m,d,j){if(!this._viewAnimating&&!this._animating){var g=this.getDate();var e=this.renderedCells[m.index].getDate();var k=this.value.dateTime.getDate();var l=new Date(e);if(this.views.indexOf("month")!=-1){l.setDate(k)}else{l.setDate(1);e.setDate(1)}if(l.getMonth()==e.getMonth()){e=l}var i=this.getMinDate();var c=this.getMaxDate();if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){return}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){return}}else{if(e.getFullYear()<i.getFullYear()){return}if(e.getFullYear()>c.getFullYear()){return}}if(this.selectionMode!="range"){this._selectDate(e,j)}this.oldView=this.view;switch(this.view){case"year":this.view="month";break;case"decade":this.view="year";break}if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1){this.view="decade"}if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){e=i}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){e=c}}else{if(e.getFullYear()<i.getFullYear()){e=i}if(e.getFullYear()>c.getFullYear()){e=c}}if(this.changing&&(this.selectedDate&&(this.selectedDate.getFullYear()!=e.getFullYear()||this.selectedDate.getMonth()!=e.getMonth()||this.selectedDate.getDate()!=e.getDate()))){e=this.selectedDate}this.value._setYear(e.getFullYear());this.value._setDay(e.getDate());this.value._setMonth(e.getMonth()+1);this.value._setDay(e.getDate());var h=this.getVisibleDate();var b=this.getFirstDayOfWeek(h);var f="View"+this.element.id;this.renderCalendarCells(this.month,b,f,true);this.refreshTitle(this.month);if(this.showWeekNumbers){this.refreshRowHeader(this.month,f)}if(this.views.length==3){if(this.view=="month"){if(this.selectionMode!="range"){this._selectDate(this.selectedDate,"view")}else{var n=this;a.each(this.renderedCells,function(r){var o=this;var t=o.getDate();var p=a(o.element);var q=p;if(p.length==0){return false}var s=function(v){if(v==null){return new Date()}var u=new Date();u.setHours(0,0,0,0);u.setFullYear(v.getFullYear(),v.getMonth(),v.getDate());return u};if(!o.isOtherMonth&&s(t).toString()==s(e).toString()){n.value._setMonth(e.getMonth()+1);n.value._setDay(e.getDate());n.value._setYear(e.getFullYear())}o.isSelected=false;o.isDisabled=false;if(s(t)<s(n.selection.from)&&n._clicks==1){o.isDisabled=true}if(n.getMaxDate()<t){o.isDisabled=true}if(n.getMinDate()>t){o.isDisabled=true}if(n._isDisabled(t)){o.isDisabled=true}if(!o.isDisabled){if(s(t)>=s(n.selection.from)&&s(t)<=s(n.selection.to)){o.isSelected=true}}});this._applyCellStyles()}}}if(this.view!="month"){if(this.oldView=="year"||(this.views.indexOf("year")==-1&&this.view=="decade")){if(j!="keyboard"){this._raiseEvent("3")}this._raiseEvent("5",{selectionType:"mouse"})}}this._raiseEvent("8")}},renderCalendarCells:function(D,m,s,q){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.renderViews(D,m,s);return}var x=a("<table role='grid' style='width: 100%; height: 100%; border-color: transparent;' cellspacing='2' cellpadding='1' id=cellTable"+s.toString()+"><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");var y=this.table;y[0].style.borderColor="transparent";if(q==undefined){var g=y.find("#cellTable"+s.toString());if(g!=null){g.remove()}y.append(x)}var l=m;var b=this.showDayNames?1:0;var f=this.showWeekNumbers?1:0;var d=new Array();var t=0;var v=(D.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){v=(D.width()-2)/7}v=parseInt(v);var A=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var w=0;w<6;w++){for(var u=0;u<7;u++){var e=w+1;var o=u;if(this.rtl){o=6-o}var z=o+1;var p="#cell"+e+z+this.element.id;var C=new Date(l.dateTime.getFullYear(),l.dateTime.getMonth(),l.dateTime.getDate());var c=new a.jqx._jqxCalendar.cell(C);var n=a(x[0].rows[w].cells[z-1]);n[0].id=p.substring(1);c.isVisible=true;c.isDisabled=false;if(l.month!=this.value.month){c.isOtherMonth=true;c.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(C)){c.isRestricted=true;c.isDisabled=true}if(!c.isDisabled){if(C<this.getMinDate()||C>this.getMaxDate()||this._isDisabled(C)){c.isDisabled=true}}if(l.month==A.month&&l.day==A.day&&l.year==A.year){c.isToday=true}if(l.isWeekend()){c.isWeekend=true}c.element=n;c.row=b;c.column=f;a.jqx.utilities.html(n,l.day);l=new a.jqx._jqxDateTimeInput.getDateTime(new Date(l._addDays(1)));a.data(this.element,"cellContent"+p.substring(1),c);a.data(this.element,""+p.substring(1),c);var E=this;if(E.isMaterialized()){a(n).addClass("ripple");a.jqx.ripple(a(n))}this.addHandler(n,"mousedown",function(I){if(!E.readOnly&&!E.disabled){var H=a(I.target);var j=a.data(E.element,H[0].id);var i=E._raiseEvent(3,I);if(j!=null&&j!=undefined){var r=j.getDate();if(E.getMinDate()<=r&&r<=E.getMaxDate()){if(!j.isDisabled){if(j.isOtherMonth&&E.enableAutoNavigation){if(j.row<2){E.navigateBackward()}else{E.navigateForward()}E._selectDate(j.getDate(),"mouse",I.shiftKey)}else{var F=new Date(E.getDate());E._selectDate(j.getDate(),"mouse",I.shiftKey);E.value._setYear(r.getFullYear());E.value._setDay(1);E.value._setMonth(r.getMonth()+1);E.value._setDay(r.getDate());var G=E.host.find(".jqx-calendar-month");G.stop();G.css("margin-left","0px");var k=E.getDate();E._raiseEvent("2");if(j.isOtherMonth){E._raiseEvent("5",{selectionType:"mouse"})}}}}}return false}});if(!E.disabled){var h=function(F,j){if(!E.readOnly){var r=a(F.target);var i=a.data(E.element,r[0].id);if(i!=null&&i!=undefined){var k=i.getDate();if(E.getMinDate()<=k&&k<=E.getMaxDate()){i.isHighlighted=j;E._applyCellStyle(i,i.element,r)}}}};this.addHandler(n,"mouseenter",function(i){h(i,true);return false});this.addHandler(n,"mouseleave",function(i){h(i,false);return false})}f++;d[t]=c;t++}f=0;b++}var B=a.data(this.element,D[0].id);if(B!=undefined&&B!=null){B.cells=d}this.renderedCells=d;if(q!=undefined){this._addCellsTable(y,x)}this._applyCellStyles();this._refreshOtherMonthRows(B,s)},setMaxDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.maxDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMaxDate:function(){if(this.maxDate!=null&&this.maxDate!=undefined){return this.maxDate.dateTime}return null},setMinDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.minDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMinDate:function(){if(this.minDate!=null&&this.minDate!=undefined){return this.minDate.dateTime}return null},navigateTo:function(g,i){if(this.view=="month"){var h=this.getMinDate();var d=new Date(this.getMaxDate().getFullYear(),this.getMaxDate().getMonth()+1,this.getMaxDate().getDate());if((g<this._getYearAndMonthPart(h))||(g>this._getYearAndMonthPart(d))){return false}}else{if(g&&(g.getFullYear()<this.getMinDate().getFullYear()||g.getFullYear()>this.getMaxDate().getFullYear())){return false}}if(g==null){return false}if(i==undefined){var j=this;if(this._animating){return}this._animating=true;var e=this.host.find(".jqx-calendar-month-container");var k=a("<div></div>");k[0].style.width="100%";k[0].style.height="100%";k[0].style.overflow="hidden";k[0].style.position="relative";k[0].style.left="0px";k[0].style.top="-100%";e.append(k);if(this._viewClone){this._viewClone.stop();this._viewClone.remove()}if(this._newViewClone){this._newViewClone.stop();this._newViewClone.remove()}var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");var b=m.clone();this._viewClone=b;var l=new Date(this.value.dateTime);this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var c=parseInt(this.month.css("padding-top"));j.refreshControl();k.css("overflow","hidden");e.css("position","relative");e.css("overflow","hidden");b.css("position","absolute");b.css("top",m.position().top-c);k.append(b);if(a.jqx.browser.msie&&a.jqx.browser.version<8){this.month.css("position","relative");this.month.css("overflow","hidden");this.table.css("position","relative");this.table.css("overflow","hidden")}var f=-this.month.width();if(g<l){if(this.view=="month"&&g.getMonth()!=l.getMonth()){f=this.month.width()}else{if(g.getFullYear()!=l.getFullYear()){f=this.month.width()}}}b.animate({marginLeft:parseInt(f)+"px"},this.navigationDelay,function(){b.remove()});var n=m.clone();this._newViewClone=n;n.css("position","absolute");n.css("top",m.position().top-c);k.append(n);n.css("margin-left",-f);m.css("visibility","hidden");n.animate({marginLeft:"0px"},this.navigationDelay,function(){n.remove();m.css("visibility","inherit");k.remove();j._animating=false})}else{this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");this.refreshControl()}this._raiseEvent("2");this._raiseEvent("8");return true},setDate:function(b){if(b!=null&&typeof(b)=="string"){b=new Date(b)}if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(b,"api");this._selectDate(b);if(this.selectionMode=="range"){this._selectDate(b,"mouse")}return true},val:function(b){if(arguments.length!=0){if(b==null){this.setDate(null)}if(b instanceof Date){this.setDate(b)}if(typeof(b)=="string"){this.setDate(b)}}return this.getDate()},getDate:function(){if(this.selectedDate==undefined){return new Date()}return this.selectedDate},getValue:function(){if(this.value==undefined){return new Date()}return this.value.dateTime},setRange:function(c,b){if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(c,"api");this._selectDate(c,"mouse");this._selectDate(b,"mouse")},getRange:function(){return this.selection},_selectDate:function(d,g,c){if(this.selectionMode=="none"){return}if(g==null||g==undefined){g="none"}if(c==null||c==undefined){c=false}var i=a.data(this.element,"View"+this.element.id);if(i==undefined||i==null){return}if(this.changing){if(d&&this.selectedDate){if(this.selectedDate.getFullYear()!=d.getFullYear()||this.selectedDate.getDate()!=d.getDate()||this.selectedDate.getMonth()!=d.getMonth()){var j=this.changing(this.selectedDate,d)}if(j){d=j}}}var k=this;if(this.input){if(d!=null){this.input.val(d.toString())}else{this.input.val("")}}var e=this.selectedDate;this.selectedDate=d;if(this.view!="month"){if(e!=d){this._raiseEvent(7,{selectionType:g})}a.each(this.renderedCells,function(p){var l=this;var q=l.getDate();var m=a(l.element);var o=m.find("#cellContent"+m[0].id);if(d==null){l.isSelected=false;l.isDisabled=false}else{l.isSelected=false;if(q){if((q.getMonth()==d.getMonth()&&k.view=="year"&&q.getFullYear()==d.getFullYear())||(k.view=="decade"&&q.getFullYear()==d.getFullYear())){l.isSelected=true;try{if(g!="none"){l.element.focus()}}catch(n){}}}}k._applyCellStyle(l,m,m)});if(this.change){this.change(d)}return}if(this.view=="month"){if(this.selectionMode=="range"&&g=="key"){var f=this.getVisibleDate();var b=this.getFirstDayOfWeek(f);this.refreshCalendarCells(this.month,b,"View"+this.element.id)}}var h=false;a.each(this.renderedCells,function(r){var w=this;var o=w.getDate();var v=a(w.element);var l=v;if(v.length==0){return false}if(d==null){w.isSelected=false;w.isDisabled=false;if(r==0){k.selection={from:null,to:null};k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}else{if(k.selectionMode!="range"||g=="key"){if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()&&w.isSelected){k._applyCellStyle(w,v,l);k._raiseEvent("5",{selectionType:g});return}if(w.isSelected){k._raiseEvent("6",{selectionType:g})}w.isSelected=false;if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()){w.isSelected=true;if(r==0){k.selection={date:d}}try{if(g!="none"){w.element.focus();k.host.focus()}}catch(s){}if(!w.isOtherMonth){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}if(k.selectionMode=="range"){k._clicks=0;k.selection={from:d,to:d}}}else{if(k.selectionMode=="range"){if(g=="view"){w.isSelected=false;w.isDisabled=false;if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isDisabled=true;w.isRestricted=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}k._applyCellStyle(w,v,l);return true}if(r==0){if(g!="none"){if(k._clicks==undefined){k._clicks=0}k._clicks++;if(c){k._clicks++}if(k._clicks==1){k.selection={from:d,to:d}}else{var u=k.selection.from;var q=u<=d?u:d;var t=u<=d?d:u;if(q){var m=new Date(q.getFullYear(),q.getMonth(),q.getDate())}if(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59)}k.selection={from:m,to:n};k._clicks=0}}else{if(k.selection==null||k.selection.from==null){k.selection={from:d,to:d};if(k._clicks==undefined){k._clicks=0}k._clicks++;if(k._clicks==2){k._clicks=0}}}}var p=function(y){if(y==null){return new Date()}var x=new Date();x.setHours(0,0,0,0);x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());return x};if(!w.isOtherMonth&&p(o).toString()==p(d).toString()){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}w.isSelected=false;w.isDisabled=h;if(p(o)<p(k.selection.from)&&k._clicks==1){w.isDisabled=true}if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isRestricted=true;w.isDisabled=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}if(!w.isDisabled){if(p(o)>=p(k.selection.from)&&p(o)<=p(k.selection.to)){w.isSelected=true}}else{if(!k.allowRestrictedDaysInRange&&p(o)>=p(k.selection.from)&&k.selection.to==k.selection.from){h=true}}}}}k._applyCellStyle(w,v,l)});if(k.selectionMode=="range"&&k._clicks==0){k._raiseEvent(7,{selectionType:g});return}else{if(k.selectionMode=="range"){return}}if(e!=d){k._raiseEvent(7,{selectionType:g});if(this.change){this.change(d)}}},_getSelectedDate:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}if(this.view!="month"){return this.selectedDate}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return e}}if(this.selectedDate){return this.selectedDate}},_getSelectedCell:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return b}}},_applyCellStyle:function(c,d,g){var e=this;if(g==null||(g!=null&&g.length==0)){g=d}var b="";b=this.toThemeProperty("jqx-rc-all");b+=" "+this.toThemeProperty("jqx-item");if(this.disabled||(c.isDisabled&&!c.isRestricted)){b+=" "+this.toThemeProperty("jqx-calendar-cell-disabled");b+=" "+this.toThemeProperty("jqx-fill-state-disabled")}if(!this.disabled&&c.isRestricted){b+=" "+this.toThemeProperty("jqx-calendar-cell-restrictedDate")}if(c.isOtherMonth&&this.enableOtherMonthDays&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-othermonth")}if(c.isWeekend&&this.enableWeekend&&c.isVisible&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-weekend")}if(this.isMaterialized()){b+=" ripple"}if(!c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-hidden")}else{b+=" "+this.toThemeProperty("jqx-calendar-cell");if(this.view!="month"){if(g.length>0&&g.html().toLowerCase().indexOf("span")!=-1){g.css("cursor","default")}}}g.removeAttr("aria-selected");if(c.isSelected&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected");b+=" "+this.toThemeProperty("jqx-fill-state-pressed");g.attr("aria-selected",true);this.host.removeAttr("aria-activedescendant").attr("aria-activedescendant",g[0].id);var f=c.getDate();if(this._isDisabled(f)){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected-invalid")}}if(c.isHighlighted&&c.isVisible&&this.enableHover){if(!c.isDisabled){b+=" "+this.toThemeProperty("jqx-calendar-cell-hover");b+=" "+this.toThemeProperty("jqx-fill-state-hover")}}b+=" "+this.toThemeProperty("jqx-calendar-cell-"+this.view);if(c.isToday&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-today")}g[0].className=b;if(this.specialDates.length>0){var h=this;a.each(this.specialDates,function(){if(this.Class!=undefined&&this.Class!=null&&this.Class!=""){g.removeClass(this.Class)}else{g.removeClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))}var i=c.getDate();if(i.getFullYear()==this.Date.getFullYear()&&i.getMonth()==this.Date.getMonth()&&i.getDate()==this.Date.getDate()){if(c.tooltip==null&&this.Tooltip!=null){c.tooltip=this.Tooltip;if(a(g).jqxTooltip){var j=this.Class;a(g).jqxTooltip({value:{cell:c,specialDate:this.Date},name:h.element.id,content:this.Tooltip,position:"mouse",theme:h.theme,opening:function(k){if(g.hasClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))){return true}if(g.hasClass(j)){return true}return false}})}}g.removeClass(e.toThemeProperty("jqx-calendar-cell-othermonth"));g.removeClass(e.toThemeProperty("jqx-calendar-cell-weekend"));if(this.Class==undefined||this.Class==""){g.addClass(e.toThemeProperty("jqx-calendar-cell-specialDate"));return false}else{g.addClass(this.Class);return false}}})}},_applyCellStyles:function(){var f=a.data(this.element,"View"+this.element.id);if(f==undefined||f==null){return}for(var e=0;e<f.cells.length;e++){var b=f.cells[e];var c=a(b.element);var d=c.find("#cellContent"+c[0].id);if(d.length==0){d=c}this._applyCellStyle(b,c,d)}},getWeekOfYear:function(f){var b=new Date(f.dateTime);dowOffset=this.firstDayOfWeek;var e=new Date(b.getFullYear(),0,1);var c=e.getDay()-dowOffset;c=(c>=0?c:c+7);var d=Math.floor((b.getTime()-e.getTime()-(b.getTimezoneOffset()-e.getTimezoneOffset())*60000)/86400000)+1;var g;if(c<4){g=Math.floor((d+c-1)/7)+1;if(g>52){nYear=new Date(b.getFullYear()+1,0,1);nday=nYear.getDay()-dowOffset;nday=nday>=0?nday:nday+7;g=nday<4?1:53}}else{g=Math.floor((d+c-1)/7)}return g},renderColumnHeader:function(w){if(!this.showDayNames){return}var t=a("<table role='grid' style='border-spacing: 0px; border-collapse: collapse; width: 100%; height: 100%;' cellspacing='0' cellpadding='1'><tr role='row'><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td><td role='gridcell'></td></tr></table>");t.find("table").addClass(this.toThemeProperty("jqx-reset"));t.find("tr").addClass(this.toThemeProperty("jqx-reset"));t.find("td").css({background:"transparent",padding:1,margin:0,border:"none"});t.addClass(this.toThemeProperty("jqx-reset"));t.addClass(this.toThemeProperty("jqx-widget-content"));t.addClass(this.toThemeProperty("jqx-calendar-column-header"));this.columnHeader.append(t);var d=this.getVisibleDate();var h=this.getFirstDayOfWeek(d);var m=h.dayOfWeek;var x=this.getWeekOfYear(h);var q=this.firstDayOfWeek;var v=this.localization.calendar.days.names;var n=new Array();var g=h;var o=(w.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){o=(w.width()-2)/7}for(var s=0;s<7;s++){var f=v[q];if(this.rtl){f=v[6-q]}switch(this.dayNameFormat){case"default":f=this.localization.calendar.days.namesAbbr[q];if(this.rtl){f=this.localization.calendar.days.namesAbbr[6-q]}break;case"shortest":f=this.localization.calendar.days.namesShort[q];if(this.rtl){f=this.localization.calendar.days.namesShort[6-q]}break;case"firstTwoLetters":f=f.substring(0,2);break;case"firstLetter":f=f.substring(0,1);break}var b=new a.jqx._jqxCalendar.cell(g.dateTime);var k=s+1;var l=k+this.element.id;var j=a(t[0].rows[0].cells[s]);var p=s;if(this.enableTooltips){if(a(j).jqxTooltip){a(j).jqxTooltip({name:this.element.id,content:v[q],theme:this.theme,position:"mouse"})}}if(q>=6){q=0}else{q++}s=p;b.element=j;b.row=0;b.column=s+1;var e=this._textwidth(f);var c="<div style='padding: 0; margin: 0; border: none; background: transparent;' id='columnCell"+l+"'>"+f+"</div>";j.append(c);j.find("#columnCell"+l).addClass(this.toThemeProperty("jqx-calendar-column-cell"));j.width(o);if(this.disabled){j.find("#columnCell"+l).addClass(this.toThemeProperty("jqx-calendar-column-cell-disabled"))}if(e>0&&o>0){while(e>j.width()){if(f.length==0){break}f=f.substring(0,f.length-1);a.jqx.utilities.html(j.find("#columnCell"+l),f);e=this._textwidth(f)}}n[s]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addDays(1)))}if(parseInt(this.columnHeader.width())>parseInt(this.month.width())){this.columnHeader.width(this.month.width())}var u=a.data(this.element,w[0].id);u.columnCells=n},_format:function(d,e,b){var f=false;try{if(Globalize!=undefined){f=true}else{if(document.Globalize){Globalize=document.Globalize;f=true}}}catch(c){if(document.Globalize){Globalize=document.Globalize;f=true}}if(document.Globalize){Globalize=document.Globalize;f=true}if(a.global){a.global.culture.calendar=this.localization.calendar;return a.global.format(d,e,this.culture)}else{if(f){try{if(Globalize.cultures[this.culture]){Globalize.cultures[this.culture].calendar=this.localization.calendar;return Globalize.format(d,e,this.culture)}else{return Globalize.format(d,e,this.culture)}}catch(c){return Globalize.format(d,e)}}else{if(a.jqx.dataFormat){return a.jqx.dataFormat.formatdate(d,e,this.localization.calendar)}}}},_textwidth:function(d){var c=a("<span>"+d+"</span>");c.addClass(this.toThemeProperty("jqx-calendar-column-cell"));a(this.host).append(c);var b=c.width();c.remove();return b},_textheight:function(d){var c=a("<span>"+d+"</span>");a(this.host).append(c);var b=c.height();c.remove();return b},_renderRowHeader:function(k){var g=this.getVisibleDate();var c=this.getFirstDayOfWeek(g);var f=c.dayOfWeek;var s=this.getWeekOfYear(c);var o=new a.jqx._jqxDateTimeInput.getDateTime(new Date(c.dateTime));o._addDays(5);o.dayOfWeek=o.dateTime.getDay();var m=this.getWeekOfYear(o);if(53==s&&o.dateTime.getMonth()==0){s=1}var l=a("<table style='overflow: hidden; width: 100%; height: 100%;' cellspacing='0' cellpadding='1'><tr><td></td></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr><tr><td/></tr></table>");l.find("table").addClass(this.toThemeProperty("jqx-reset"));l.find("td").addClass(this.toThemeProperty("jqx-reset"));l.find("tr").addClass(this.toThemeProperty("jqx-reset"));l.addClass(this.toThemeProperty("jqx-calendar-row-header"));l.width(this.rowHeaderWidth);this.rowHeader.append(l);var d=c;var r=new Array();for(var h=0;h<6;h++){var e=s.toString();var q=new a.jqx._jqxCalendar.cell(d.dateTime);var j=h+1+this.element.id;var p=a(l[0].rows[h].cells[0]);q.element=p;q.row=h;q.column=0;var b="<div style='background: transparent; border: none; padding: 0; margin: 0;' id ='headerCellContent"+j+"'>"+e+"</div>";p.append(b);p.find("#headerCellContent"+j).addClass(this.toThemeProperty("jqx-calendar-row-cell"));r[h]=q;d=new a.jqx._jqxDateTimeInput.getDateTime(new Date(d._addWeeks(1)));s=this.getWeekOfYear(d)}var n=a.data(this.element,k[0].id);n.rowCells=r},getFirstDayOfWeek:function(e){var d=e;if(this.firstDayOfWeek<0||this.firstDayOfWeek>6){this.firstDayOfWeek=6}var c=d.dayOfWeek-this.firstDayOfWeek;if(c<=0){c+=7}var b=a.jqx._jqxDateTimeInput.getDateTime(d._addDays(-c));return b},getVisibleDate:function(){var c=new a.jqx._jqxDateTimeInput.getDateTime(new Date(this.value.dateTime));if(c<this.minDate){c=this.minDate}if(c>this.maxDate){this.visibleDate=this.maxDate}c.dateTime.setHours(0);var d=c.day;var b=a.jqx._jqxDateTimeInput.getDateTime(c._addDays(-d+1));c=b;return c},destroy:function(b){a.jqx.utilities.resize(this.host,null,true);this.host.removeClass();if(b!=false){this.host.remove()}},_raiseEvent:function(d,i){if(i==undefined){i={owner:null}}var h=this.events[d];var g=i?i:{};g.owner=this;var c=new a.Event(h);c.owner=this;c.args=g;if(d==0||d==1||d==2||d==3||d==4||d==5||d==6||d==7||d==8){c.args.date=c.args.selectedDate=this.getDate();c.args.range=this.getRange();var e=this.getViewStart();var f=this.getViewEnd();c.args.view={from:e,to:f}}if(d==7){var b=g.selectionType;if(!b){b=null}if(b=="key"){b="keyboard"}if(b=="none"){b=null}g.type=b}var j=this.host.trigger(c);if(d==0||d==1){j=false}return j},propertyMap:function(b){if(b=="value"){if(this.selectionMode!="range"){return this.getDate()}else{return this.getRange()}}return null},_setSize:function(){var d=this.host.find("#View"+this.element.id);if(d.length>0){this.setCalendarSize();d[0].style.height="100%";d[0].style.width="100%";var c=this.month.height()-this.titleHeight-this.columnHeaderHeight;var b="View"+this.element.id;d.find("#cellsTable"+b).height(c);d.find("#calendarRowHeader"+b).height(c);this.refreshControl()}},resize:function(){this._setSize()},clear:function(){if(this.selectionMode=="range"){this._clicks=1;this.setRange(null,null);this._raiseEvent(7)}else{this.setDate(null,"mouse")}this._clicks=0;this.selection={from:null,to:null}},today:function(){if(this.selectionMode=="range"){this.setRange(new Date(),new Date())}else{this.setDate(new Date(),"mouse")}},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b._setSize()}},propertyChangedHandler:function(d,e,g,f){if(this.isInitialized==undefined||this.isInitialized==false){return}if(d.batchUpdate&&d.batchUpdate.width&&d.batchUpdate.height&&Object.keys(d.batchUpdate).length==2){return}if(e=="enableHover"){return}if(e=="keyboardNavigation"){return}if(e=="localization"){if(this.localization){if(this.localization.backString){this.backText=this.localization.backString}if(this.localization.forwardString){this.forwardText=this.localization.forwardString}if(this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString){this.clearString=this.localization.clearString}this.firstDayOfWeek=this.localization.calendar.firstDay}}if(e=="culture"){try{if(a.global){a.global.preferCulture(d.culture);d.localization.calendar=a.global.culture.calendar}else{if(Globalize){var b=Globalize.culture(d.culture);d.localization.calendar=b.calendar}}if(d.localization.calendar&&d.localization.calendar.firstDay!=undefined&&d.culture!="default"){d.firstDayOfWeek=d.localization.calendar.firstDay}}catch(c){}}if(e=="views"){if(d.views.indexOf("month")==-1){d.view="year"}if(d.views.indexOf("year")==-1&&d.views.indexOf("month")==-1){d.view="decade"}d.render();return}if(e=="showFooter"){d.render()}if(e=="width"||e=="height"){d._setSize();return}else{if(e=="theme"){a.jqx.utilities.setTheme(g,f,d.host)}else{if(e=="rowHeaderWidth"||e=="showWeekNumbers"){d.render()}else{d.view="month";d.render()}}}if(e==="firstDayOfWeek"){d.refreshControl()}}})})(jqxBaseFramework);(function(a){a.jqx._jqxCalendar.cell=function(c){var b={dateTime:new a.jqx._jqxDateTimeInput.getDateTime(c),_date:c,getDate:function(){return this._date},setDate:function(d){this.dateTime=new a.jqx._jqxDateTimeInput.getDateTime(d);this._date=d},isToday:false,isWeekend:false,isOtherMonth:false,isVisible:true,isSelected:false,isHighlighted:false,element:null,row:-1,column:-1,tooltip:null};return b};a.jqx._jqxCalendar.monthView=function(c,h,d,b,f,e){var g={start:c,end:h,cells:d,rowCells:b,columnCells:f,element:e};return g}})(jqxBaseFramework);
 
 (function(a){a.jqx.jqxWidget("jqxDraw","",{});a.extend(a.jqx._jqxDraw.prototype,{defineInstance:function(){var d={renderEngine:""};a.extend(true,this,d);var e=["clear","on","off","removeElement","attr","getAttr","line","circle","rect","path","pieslice","text","measureText"];for(var c in e){this._addFn(a.jqx._jqxDraw.prototype,e[c])}if(this===a.jqx._jqxDraw.prototype){return d}return d},_addFn:function(d,c){if(d[c]){return}d[c]=function(){return this.renderer[c].apply(this.renderer,arguments)}},createInstance:function(c){},_initRenderer:function(c){return a.jqx.createRenderer(this,c)},_internalRefresh:function(){var c=this;if(a.jqx.isHidden(c.host)){return}if(!c.renderer){c.host.empty();c._initRenderer(c.host)}var e=c.renderer;if(!e){return}var d=e.getRect();c._render({x:1,y:1,width:d.width,height:d.height});if(e instanceof a.jqx.HTML5Renderer){e.refresh()}},_saveAsImage:function(e,f,c,d){return a.jqx._widgetToImage(this,e,f,c,d)},_render:function(d){var c=this;var e=c.renderer;c._plotRect=d},refresh:function(){this._internalRefresh()},getSize:function(){var c=this._plotRect;return{width:c.width,height:c.height}},saveAsPNG:function(e,c,d){return this._saveAsImage("png",e,c,d)},saveAsJPEG:function(e,c,d){return this._saveAsImage("jpeg",e,c,d)}})})(jqxBaseFramework);(function(a){a.jqx.toGreyScale=function(c){if(c.indexOf("#")==-1){return c}var d=a.jqx.cssToRgb(c);d[0]=d[1]=d[2]=Math.round(0.3*d[0]+0.59*d[1]+0.11*d[2]);var e=a.jqx.rgbToHex(d[0],d[1],d[2]);return"#"+e[0]+e[1]+e[2]},a.jqx.adjustColor=function(f,e){if(typeof(f)!="string"){return"#000000"}if(f.indexOf("#")==-1){return f}var h=a.jqx.cssToRgb(f);var d=a.jqx.rgbToHsl(h);d[2]=Math.min(1,d[2]*e);d[1]=Math.min(1,d[1]*e*1.1);h=a.jqx.hslToRgb(d);var f="#";for(var j=0;j<3;j++){var k=Math.round(h[j]);k=a.jqx.decToHex(k);if(k.toString().length==1){f+="0"}f+=k}return f.toUpperCase()};a.jqx.decToHex=function(c){return c.toString(16)};a.jqx.hexToDec=function(c){return parseInt(c,16)};a.jqx.rgbToHex=function(e,d,c){return[a.jqx.decToHex(e),a.jqx.decToHex(d),a.jqx.decToHex(c)]};a.jqx.hexToRgb=function(d,f,c){return[a.jqx.hexToDec(d),a.jqx.hexToDec(f),a.jqx.hexToDec(c)]};a.jqx.cssToRgb=function(c){if(c.indexOf("rgb")<=-1){return a.jqx.hexToRgb(c.substring(1,3),c.substring(3,5),c.substring(5,7))}return c.substring(4,c.length-1).split(",")};a.jqx.hslToRgb=function(d){var f=parseFloat(d[0]);var e=parseFloat(d[1]);var c=parseFloat(d[2]);if(e==0){r=g=b=c}else{var i=c<0.5?c*(1+e):c+e-c*e;var j=2*c-i;r=a.jqx.hueToRgb(j,i,f+1/3);g=a.jqx.hueToRgb(j,i,f);b=a.jqx.hueToRgb(j,i,f-1/3)}return[r*255,g*255,b*255]};a.jqx.hueToRgb=function(e,d,c){if(c<0){c+=1}if(c>1){c-=1}if(c<1/6){return e+(d-e)*6*c}else{if(c<1/2){return d}else{if(c<2/3){return e+(d-e)*(2/3-c)*6}}}return e};a.jqx.rgbToHsl=function(j){var c=parseFloat(j[0])/255;var i=parseFloat(j[1])/255;var k=parseFloat(j[2])/255;var m=Math.max(c,i,k),e=Math.min(c,i,k);var f,o,d=(m+e)/2;if(m==e){f=o=0}else{var n=m-e;o=d>0.5?n/(2-m-e):n/(m+e);switch(m){case c:f=(i-k)/n+(i<k?6:0);break;case i:f=(k-c)/n+2;break;case k:f=(c-i)/n+4;break}f/=6}return[f,o,d]};a.jqx.swap=function(c,e){var d=c;c=e;e=d};a.jqx.getNum=function(c){if(!a.isArray(c)){if(isNaN(c)){return 0}}else{for(var d=0;d<c.length;d++){if(!isNaN(c[d])){return c[d]}}}return 0};a.jqx._ptdist=function(d,f,c,e){return Math.sqrt((c-d)*(c-d)+(e-f)*(e-f))};a.jqx._ptrnd=function(d){if(!document.createElementNS){if(Math.round(d)==d){return d}return a.jqx._rnd(d,1,false,true)}var c=a.jqx._rnd(d,0.5,false,true);if(Math.abs(c-Math.round(c))!=0.5){return c>d?c-0.5:c+0.5}return c};a.jqx._ptRotate=function(e,k,d,j,h){var c=Math.sqrt(Math.pow(Math.abs(e-d),2)+Math.pow(Math.abs(k-j),2));var f=Math.asin((e-d)/c);var i=f+h;e=d+Math.cos(i)*c;k=j+Math.sin(i)*c;return{x:e,y:k}};a.jqx._rup=function(d){var c=Math.round(d);if(d>c){c++}return c};a.jqx.log=function(d,c){return Math.log(d)/(c?Math.log(c):1)};a.jqx._mod=function(d,c){var e=Math.abs(d>c?c:d);var f=1;if(e!=0){while(e*f<100){f*=10}}d=d*f;c=c*f;return(d%c)/f};a.jqx._rnd=function(e,h,f,d){if(isNaN(e)){return e}if(undefined===d){d=true}var c=e-((d==true)?e%h:a.jqx._mod(e,h));if(e==c){return c}if(f){if(e>c){c+=h}}else{if(c>e){c-=h}}return(h==1)?Math.round(c):c};a.jqx.commonRenderer={pieSlicePath:function(m,l,j,u,D,E,e){if(!u){u=1}var o=Math.abs(D-E);var s=o>180?1:0;if(o>=360){E=D+359.99}var t=D*Math.PI*2/360;var k=E*Math.PI*2/360;var B=m,A=m,h=l,f=l;var p=!isNaN(j)&&j>0;if(p){e=0}if(e+j>0){if(e>0){var n=o/2+D;var C=n*Math.PI*2/360;m+=e*Math.cos(C);l-=e*Math.sin(C)}if(p){var z=j;B=m+z*Math.cos(t);h=l-z*Math.sin(t);A=m+z*Math.cos(k);f=l-z*Math.sin(k)}}var w=m+u*Math.cos(t);var v=m+u*Math.cos(k);var d=l-u*Math.sin(t);var c=l-u*Math.sin(k);var q="";var i=(Math.abs(Math.abs(E-D)-360)>0.02);if(p){q="M "+A+","+f;q+=" a"+j+","+j;q+=" 0 "+s+",1 "+(B-A)+","+(h-f);if(i){q+=" L"+w+","+d}else{q+=" M"+w+","+d}q+=" a"+u+","+u;q+=" 0 "+s+",0 "+(v-w)+","+(c-d);if(i){q+=" Z"}}else{q="M "+v+","+c;q+=" a"+u+","+u;q+=" 0 "+s+",1 "+(w-v)+","+(d-c);if(i){q+=" L"+m+","+l;q+=" Z"}}return q},measureText:function(q,h,i,p,n){var f=n._getTextParts(q,h,i);var k=f.width;var c=f.height;if(false==p){c/=0.6}var d={};if(isNaN(h)){h=0}if(h==0){d={width:a.jqx._rup(k),height:a.jqx._rup(c)}}else{var m=h*Math.PI*2/360;var e=Math.abs(Math.sin(m));var l=Math.abs(Math.cos(m));var j=Math.abs(k*e+c*l);var o=Math.abs(k*l+c*e);d={width:a.jqx._rup(o),height:a.jqx._rup(j)}}if(p){d.textPartsInfo=f}return d},alignTextInRect:function(t,p,c,u,o,q,k,s,f,e){var m=f*Math.PI*2/360;var d=Math.sin(m);var l=Math.cos(m);var n=o*d;var j=o*l;if(k=="center"||k==""||k=="undefined"){t=t+c/2}else{if(k=="right"){t=t+c}}if(s=="center"||s=="middle"||s==""||s=="undefined"){p=p+u/2}else{if(s=="bottom"){p+=u-q/2}else{if(s=="top"){p+=q/2}}}e=e||"";var h="middle";if(e.indexOf("top")!=-1){h="top"}else{if(e.indexOf("bottom")!=-1){h="bottom"}}var i="center";if(e.indexOf("left")!=-1){i="left"}else{if(e.indexOf("right")!=-1){i="right"}}if(i=="center"){t-=j/2;p-=n/2}else{if(i=="right"){t-=j;p-=n}}if(h=="top"){t-=q*d;p+=q*l}else{if(h=="middle"){t-=q*d/2;p+=q*l/2}}t=a.jqx._rup(t);p=a.jqx._rup(p);return{x:t,y:p}}};a.jqx.svgRenderer=function(){};a.jqx.svgRenderer.prototype={_svgns:"http://www.w3.org/2000/svg",init:function(h){var f="<table class=tblChart cellspacing='0' cellpadding='0' border='0' align='left' valign='top'><tr><td colspan=2 class=tdTop></td></tr><tr><td class=tdLeft></td><td><div class='chartContainer' style='position:relative' onselectstart='return false;'></div></td></tr></table>";h.append(f);this.host=h;var c=h.find(".chartContainer");c[0].style.width=h.width()+"px";c[0].style.height=h.height()+"px";var j;try{var d=document.createElementNS(this._svgns,"svg");d.setAttribute("id","svgChart");d.setAttribute("version","1.1");d.setAttribute("width","100%");d.setAttribute("height","100%");d.setAttribute("overflow","hidden");c[0].appendChild(d);this.canvas=d}catch(i){return false}this._id=new Date().getTime();this.clear();this._layout();this._runLayoutFix();return true},getType:function(){return"SVG"},refresh:function(){},_runLayoutFix:function(){var c=this;this._fixLayout()},_fixLayout:function(){var h=this.canvas.getBoundingClientRect();var e=(parseFloat(h.left)==parseInt(h.left));var c=(parseFloat(h.top)==parseInt(h.top));if(a.jqx.browser.msie){var e=true,c=true;var f=this.host;var d=0,i=0;while(f&&f.position&&f[0].parentNode){var j=f.position();d+=parseFloat(j.left)-parseInt(j.left);i+=parseFloat(j.top)-parseInt(j.top);f=f.parent()}e=parseFloat(d)==parseInt(d);c=parseFloat(i)==parseInt(i)}if(!e){this.host.find(".tdLeft")[0].style.width="0.5px"}if(!c){this.host.find(".tdTop")[0].style.height="0.5px"}},_layout:function(){var c=this.host.find(".chartContainer");this._width=Math.max(a.jqx._rup(this.host.width())-1,0);this._height=Math.max(a.jqx._rup(this.host.height())-1,0);c[0].style.width=this._width;c[0].style.height=this._height;this._fixLayout()},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){var c=this.host.find(".chartContainer");return c},clear:function(){while(this.canvas.childElementCount>0){this.removeElement(this.canvas.firstElementChild)}this._defaultParent=undefined;this._defs=document.createElementNS(this._svgns,"defs");this._gradients={};this.canvas.appendChild(this._defs)},removeElement:function(e){if(undefined==e){return}this.removeHandler(e);try{while(e.firstChild){this.removeElement(e.firstChild)}if(e.parentNode){e.parentNode.removeChild(e)}else{this.canvas.removeChild(e)}}catch(d){var c=d}},_openGroups:[],beginGroup:function(){var c=this._activeParent();var d=document.createElementNS(this._svgns,"g");c.appendChild(d);this._openGroups.push(d);return d},endGroup:function(){if(this._openGroups.length==0){return}this._openGroups.pop()},_activeParent:function(){return this._openGroups.length==0?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(e){var f=document.createElementNS(this._svgns,"clipPath");var d=document.createElementNS(this._svgns,"rect");this.attr(d,{x:e.x,y:e.y,width:e.width,height:e.height,fill:"none"});this._clipId=this._clipId||0;f.id="cl"+this._id+"_"+(++this._clipId).toString();f.appendChild(d);this._defs.appendChild(f);return f},getWindowHref:function(){var d=a.jqx.browser;if(d&&d.browser=="msie"&&d.version<10){return""}var c=window.location.href;if(!c){return c}c=c.replace(/([\('\)])/g,"\\$1");c=c.replace(/#.*$/,"");return c},setClip:function(e,d){var c="url("+this.getWindowHref()+"#"+d.id+")";return this.attr(e,{"clip-path":c})},_clipId:0,addHandler:function(c,e,d){if(a(c).on){a(c).on(e,d)}else{a(c).bind(e,d)}},removeHandler:function(c,e,d){if(a(c).off){a(c).off(e,d)}else{a(c).unbind(e,d)}},on:function(c,e,d){this.addHandler(c,e,d)},off:function(c,e,d){this.removeHandler(c,e,d)},shape:function(c,f){var d=document.createElementNS(this._svgns,c);if(!d){return undefined}for(var e in f){if(f[e]!==undefined&&f[e].toString()==="NaN"){d.setAttribute(e,0)}else{d.setAttribute(e,f[e])}}this._activeParent().appendChild(d);return d},_getTextParts:function(t,j,k){var h={width:0,height:0,parts:[]};if(undefined===t){return h}var o=0.6;var u=t.toString().split("<br>");var q=this._activeParent();var m=document.createElementNS(this._svgns,"text");this.attr(m,k);for(var l=0;l<u.length;l++){var d=u[l];var f=m.ownerDocument.createTextNode(d);m.appendChild(f);q.appendChild(m);var s;try{s=m.getBBox()}catch(p){}var n=a.jqx._rup(s.width);var c=a.jqx._rup(s.height*o);m.removeChild(f);h.width=Math.max(h.width,n);h.height+=c+(l>0?4:0);h.parts.push({width:n,height:c,text:d})}q.removeChild(m);return h},_measureText:function(f,e,d,c){return a.jqx.commonRenderer.measureText(f,e,d,c,this)},measureText:function(e,d,c){return this._measureText(e,d,c,false)},text:function(z,t,s,E,C,K,M,L,v,m,d){var B=this._measureText(z,K,M,true);var l=B.textPartsInfo;var j=l.parts;var D;if(!v){v="center"}if(!m){m="center"}if(j.length>1||L){D=this.beginGroup()}if(L){var k=this.createClipRect({x:a.jqx._rup(t)-1,y:a.jqx._rup(s)-1,width:a.jqx._rup(E)+2,height:a.jqx._rup(C)+2});this.setClip(D,k)}var q=this._activeParent();var O=0,n=0;var c=0.6;O=l.width;n=l.height;if(isNaN(E)||E<=0){E=O}if(isNaN(C)||C<=0){C=n}var u=E||0;var J=C||0;if(!K||K==0){s+=n;if(m=="center"||m=="middle"){s+=(J-n)/2}else{if(m=="bottom"){s+=J-n}}if(!E){E=O}if(!C){C=n}var q=this._activeParent();var p=0;for(var I=j.length-1;I>=0;I--){var A=document.createElementNS(this._svgns,"text");this.attr(A,M);this.attr(A,{cursor:"default"});var H=A.ownerDocument.createTextNode(j[I].text);A.appendChild(H);var P=t;var o=j[I].width;var f=j[I].height;if(v=="center"){P+=(u-o)/2}else{if(v=="right"){P+=(u-o)}}this.attr(A,{x:a.jqx._rup(P),y:a.jqx._rup(s+p),width:a.jqx._rup(o),height:a.jqx._rup(f)});q.appendChild(A);p-=j[I].height+4}if(D){this.endGroup();return D}return A}var F=a.jqx.commonRenderer.alignTextInRect(t,s,E,C,O,n,v,m,K,d);t=F.x;s=F.y;var G=this.shape("g",{transform:"translate("+t+","+s+")"});var e=this.shape("g",{transform:"rotate("+K+")"});G.appendChild(e);var p=0;for(var I=j.length-1;I>=0;I--){var N=document.createElementNS(this._svgns,"text");this.attr(N,M);this.attr(N,{cursor:"default"});var H=N.ownerDocument.createTextNode(j[I].text);N.appendChild(H);var P=0;var o=j[I].width;var f=j[I].height;if(v=="center"){P+=(l.width-o)/2}else{if(v=="right"){P+=(l.width-o)}}this.attr(N,{x:a.jqx._rup(P),y:a.jqx._rup(p),width:a.jqx._rup(o),height:a.jqx._rup(f)});e.appendChild(N);p-=f+4}q.appendChild(G);if(D){this.endGroup()}return G},line:function(e,h,d,f,i){var c=this.shape("line",{x1:e,y1:h,x2:d,y2:f});this.attr(c,i);return c},path:function(d,e){var c=this.shape("path");c.setAttribute("d",d);if(e){this.attr(c,e)}return c},rect:function(c,j,d,f,i){c=a.jqx._ptrnd(c);j=a.jqx._ptrnd(j);d=Math.max(1,a.jqx._rnd(d,1,false));f=Math.max(1,a.jqx._rnd(f,1,false));var e=this.shape("rect",{x:c,y:j,width:d,height:f});if(i){this.attr(e,i)}return e},circle:function(c,h,e,f){var d=this.shape("circle",{cx:c,cy:h,r:e});if(f){this.attr(d,f)}return d},pieSlicePath:function(d,j,i,f,h,e,c){return a.jqx.commonRenderer.pieSlicePath(d,j,i,f,h,e,c)},pieslice:function(l,j,i,e,h,c,k,d){var f=this.pieSlicePath(l,j,i,e,h,c,k);var m=this.shape("path");m.setAttribute("d",f);if(d){this.attr(m,d)}return m},attr:function(c,e){if(!c||!e){return}for(var d in e){if(d=="textContent"){c.textContent=e[d]}else{c.setAttribute(d,e[d])}}},removeAttr:function(c,e){if(!c||!e){return}for(var d in e){if(d=="textContent"){c.textContent=""}else{c.removeAttribute(e[d])}}},getAttr:function(d,c){return d.getAttribute(c)},_gradients:{},_toLinearGradient:function(f,k,l){var d="grd"+this._id+f.replace("#","")+(k?"v":"h");var c="url("+this.getWindowHref()+"#"+d+")";if(this._gradients[c]){return c}var e=document.createElementNS(this._svgns,"linearGradient");this.attr(e,{x1:"0%",y1:"0%",x2:k?"0%":"100%",y2:k?"100%":"0%",id:d});for(var h=0;h<l.length;h++){var j=l[h];var n=document.createElementNS(this._svgns,"stop");var m="stop-color:"+a.jqx.adjustColor(f,j[1]);this.attr(n,{offset:j[0]+"%",style:m});e.appendChild(n)}this._defs.appendChild(e);this._gradients[c]=true;return c},_toRadialGradient:function(f,l,k){var d="grd"+this._id+f.replace("#","")+"r"+(k!=undefined?k.key:"");var c="url("+this.getWindowHref()+"#"+d+")";if(this._gradients[c]){return c}var e=document.createElementNS(this._svgns,"radialGradient");if(k==undefined){this.attr(e,{cx:"50%",cy:"50%",r:"100%",fx:"50%",fy:"50%",id:d})}else{this.attr(e,{cx:k.x,cy:k.y,r:k.outerRadius,id:d,gradientUnits:"userSpaceOnUse"})}for(var h=0;h<l.length;h++){var j=l[h];var n=document.createElementNS(this._svgns,"stop");var m="stop-color:"+a.jqx.adjustColor(f,j[1]);this.attr(n,{offset:j[0]+"%",style:m});e.appendChild(n)}this._defs.appendChild(e);this._gradients[c]=true;return c}};a.jqx.vmlRenderer=function(){};a.jqx.vmlRenderer.prototype={init:function(j){var h="<div class='chartContainer' style=\"position:relative;overflow:hidden;\"><div>";j.append(h);this.host=j;var c=j.find(".chartContainer");c[0].style.width=j.width()+"px";c[0].style.height=j.height()+"px";var f=true;try{for(var d=0;d<document.namespaces.length;d++){if(document.namespaces[d].name=="v"&&document.namespaces[d].urn=="urn:schemas-microsoft-com:vml"){f=false;break}}}catch(k){return false}if(a.jqx.browser.msie&&parseInt(a.jqx.browser.version)<9&&(document.childNodes&&document.childNodes.length>0&&document.childNodes[0].data&&document.childNodes[0].data.indexOf("DOCTYPE")!=-1)){if(f){document.namespaces.add("v","urn:schemas-microsoft-com:vml")}this._ie8mode=true}else{if(f){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().cssText="v\\:* { behavior: url(#default#VML); display: inline-block; }"}}this.canvas=c[0];this._width=Math.max(a.jqx._rup(c.width()),0);this._height=Math.max(a.jqx._rup(c.height()),0);c[0].style.width=this._width+2;c[0].style.height=this._height+2;this._id=new Date().getTime();this.clear();return true},getType:function(){return"VML"},refresh:function(){},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){var c=this.host.find(".chartContainer");return c},clear:function(){while(this.canvas.childElementCount>0){this.removeHandler(this.canvas.firstElementChild);this.canvas.removeChild(this.canvas.firstElementChild)}this._gradients={};this._defaultParent=undefined},removeElement:function(c){if(c!=null){this.removeHandler(c);c.parentNode.removeChild(c)}},_openGroups:[],beginGroup:function(){var c=this._activeParent();var d=document.createElement("v:group");d.style.position="absolute";d.coordorigin="0,0";d.coordsize=this._width+","+this._height;d.style.left=0;d.style.top=0;d.style.width=this._width;d.style.height=this._height;c.appendChild(d);this._openGroups.push(d);return d},endGroup:function(){if(this._openGroups.length==0){return}this._openGroups.pop()},_activeParent:function(){return this._openGroups.length==0?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(c){var d=document.createElement("div");d.style.height=(c.height+1)+"px";d.style.width=(c.width+1)+"px";d.style.position="absolute";d.style.left=c.x+"px";d.style.top=c.y+"px";d.style.overflow="hidden";this._clipId=this._clipId||0;d.id="cl"+this._id+"_"+(++this._clipId).toString();this._activeParent().appendChild(d);return d},setClip:function(d,c){},_clipId:0,addHandler:function(c,e,d){if(a(c).on){a(c).on(e,d)}else{a(c).bind(e,d)}},removeHandler:function(c,e,d){if(a(c).off){a(c).off(e,d)}else{a(c).unbind(e,d)}},on:function(c,e,d){this.addHandler(c,e,d)},off:function(c,e,d){this.removeHandler(c,e,d)},_getTextParts:function(q,h,j){var f={width:0,height:0,parts:[]};var o=0.6;var s=q.toString().split("<br>");var p=this._activeParent();var l=document.createElement("v:textbox");this.attr(l,j);p.appendChild(l);for(var k=0;k<s.length;k++){var d=s[k];var e=document.createElement("span");e.appendChild(document.createTextNode(d));l.appendChild(e);if(j&&j["class"]){e.className=j["class"]}var n=a(l);var m=a.jqx._rup(n.width());var c=a.jqx._rup(n.height()*o);if(c==0&&a.jqx.browser.msie&&parseInt(a.jqx.browser.version)<9){var t=n.css("font-size");if(t){c=parseInt(t);if(isNaN(c)){c=0}}}l.removeChild(e);f.width=Math.max(f.width,m);f.height+=c+(k>0?2:0);f.parts.push({width:m,height:c,text:d})}p.removeChild(l);return f},_measureText:function(f,e,d,c){if(Math.abs(e)>45){e=90}else{e=0}return a.jqx.commonRenderer.measureText(f,e,d,c,this)},measureText:function(e,d,c){return this._measureText(e,d,c,false)},text:function(u,p,o,D,z,J,L,K,t,k){var E;if(L&&L.stroke){E=L.stroke}if(E==undefined){E="black"}var v=this._measureText(u,J,L,true);var f=v.textPartsInfo;var c=f.parts;var M=v.width;var l=v.height;if(isNaN(D)||D==0){D=M}if(isNaN(z)||z==0){z=l}var B;if(!t){t="center"}if(!k){k="center"}if(c.length>0||K){B=this.beginGroup()}if(K){var d=this.createClipRect({x:a.jqx._rup(p),y:a.jqx._rup(o),width:a.jqx._rup(D),height:a.jqx._rup(z)});this.setClip(B,d)}var n=this._activeParent();var s=D||0;var I=z||0;if(Math.abs(J)>45){J=90}else{J=0}var A=0,H=0;if(t=="center"){A+=(s-M)/2}else{if(t=="right"){A+=(s-M)}}if(k=="center"){H=(I-l)/2}else{if(k=="bottom"){H=I-l}}if(J==0){o+=l+H;p+=A}else{p+=M+A;o+=H}var m=0,N=0;var e;for(var G=c.length-1;G>=0;G--){var C=c[G];var q=(M-C.width)/2;if(J==0&&t=="left"){q=0}else{if(J==0&&t=="right"){q=M-C.width}else{if(J==90){q=(l-C.width)/2}}}var j=m-C.height;H=J==90?q:j;A=J==90?j:q;e=document.createElement("v:textbox");e.style.position="absolute";e.style.left=a.jqx._rup(p+A);e.style.top=a.jqx._rup(o+H);e.style.width=a.jqx._rup(C.width);e.style.height=a.jqx._rup(C.height);if(J==90){e.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";e.style.height=a.jqx._rup(C.height)+5}var F=document.createElement("span");F.appendChild(document.createTextNode(C.text));if(L&&L["class"]){F.className=L["class"]}e.appendChild(F);n.appendChild(e);m-=C.height+(G>0?2:0)}if(B){this.endGroup();return n}return e},shape:function(c,f){var d=document.createElement(this._createElementMarkup(c));if(!d){return undefined}for(var e in f){d.setAttribute(e,f[e])}this._activeParent().appendChild(d);return d},line:function(f,i,e,h,j){var c="M "+f+","+i+" L "+e+","+h+" X E";var d=this.path(c);this.attr(d,j);return d},_createElementMarkup:function(c){var d="<v:"+c+' style=""></v:'+c+">";if(this._ie8mode){d=d.replace('style=""','style="behavior: url(#default#VML);"')}return d},path:function(d,e){var c=document.createElement(this._createElementMarkup("shape"));c.style.position="absolute";c.coordsize=this._width+" "+this._height;c.coordorigin="0 0";c.style.width=parseInt(this._width);c.style.height=parseInt(this._height);c.style.left=0+"px";c.style.top=0+"px";c.setAttribute("path",d);this._activeParent().appendChild(c);if(e){this.attr(c,e)}return c},rect:function(c,j,d,e,i){c=a.jqx._ptrnd(c);j=a.jqx._ptrnd(j);d=a.jqx._rup(d);e=a.jqx._rup(e);var f=this.shape("rect",i);f.style.position="absolute";f.style.left=c;f.style.top=j;f.style.width=d;f.style.height=e;f.strokeweight=0;if(i){this.attr(f,i)}return f},circle:function(c,h,e,f){var d=this.shape("oval");c=a.jqx._ptrnd(c-e);h=a.jqx._ptrnd(h-e);e=a.jqx._rup(e);d.style.position="absolute";d.style.left=c;d.style.top=h;d.style.width=e*2;d.style.height=e*2;if(f){this.attr(d,f)}return d},updateCircle:function(e,c,f,d){if(c==undefined){c=parseFloat(e.style.left)+parseFloat(e.style.width)/2}if(f==undefined){f=parseFloat(e.style.top)+parseFloat(e.style.height)/2}if(d==undefined){d=parseFloat(e.width)/2}c=a.jqx._ptrnd(c-d);f=a.jqx._ptrnd(f-d);d=a.jqx._rup(d);e.style.left=c;e.style.top=f;e.style.width=d*2;e.style.height=d*2},pieSlicePath:function(m,l,j,u,E,F,e){if(!u){u=1}var o=Math.abs(E-F);var s=o>180?1:0;if(o>360){E=0;F=360}var t=E*Math.PI*2/360;var k=F*Math.PI*2/360;var B=m,A=m,h=l,f=l;var p=!isNaN(j)&&j>0;if(p){e=0}if(e>0){var n=o/2+E;var D=n*Math.PI*2/360;m+=e*Math.cos(D);l-=e*Math.sin(D)}if(p){var z=j;B=a.jqx._ptrnd(m+z*Math.cos(t));h=a.jqx._ptrnd(l-z*Math.sin(t));A=a.jqx._ptrnd(m+z*Math.cos(k));f=a.jqx._ptrnd(l-z*Math.sin(k))}var w=a.jqx._ptrnd(m+u*Math.cos(t));var v=a.jqx._ptrnd(m+u*Math.cos(k));var d=a.jqx._ptrnd(l-u*Math.sin(t));var c=a.jqx._ptrnd(l-u*Math.sin(k));u=a.jqx._ptrnd(u);j=a.jqx._ptrnd(j);m=a.jqx._ptrnd(m);l=a.jqx._ptrnd(l);var i=Math.round(E*65535);var C=Math.round((F-E)*65536);if(j<0){j=1}var q="";if(p){q="M"+B+" "+h;q+=" AE "+m+" "+l+" "+j+" "+j+" "+i+" "+C;q+=" L "+v+" "+c;i=Math.round((E-F)*65535);C=Math.round(F*65536);q+=" AE "+m+" "+l+" "+u+" "+u+" "+C+" "+i;q+=" L "+B+" "+h}else{q="M"+m+" "+l;q+=" AE "+m+" "+l+" "+u+" "+u+" "+i+" "+C}q+=" X E";return q},pieslice:function(m,k,j,f,i,c,l,e){var h=this.pieSlicePath(m,k,j,f,i,c,l);var d=this.path(h,e);if(e){this.attr(d,e)}return d},_keymap:[{svg:"fill",vml:"fillcolor"},{svg:"stroke",vml:"strokecolor"},{svg:"stroke-width",vml:"strokeweight"},{svg:"stroke-dasharray",vml:"dashstyle"},{svg:"fill-opacity",vml:"fillopacity"},{svg:"stroke-opacity",vml:"strokeopacity"},{svg:"opacity",vml:"opacity"},{svg:"cx",vml:"style.left"},{svg:"cy",vml:"style.top"},{svg:"height",vml:"style.height"},{svg:"width",vml:"style.width"},{svg:"x",vml:"style.left"},{svg:"y",vml:"style.top"},{svg:"d",vml:"v"},{svg:"display",vml:"style.display"}],_translateParam:function(c){for(var d in this._keymap){if(this._keymap[d].svg==c){return this._keymap[d].vml}}return c},attr:function(d,f){if(!d||!f){return}for(var e in f){var c=this._translateParam(e);if(undefined==f[e]){continue}if(c=="fillcolor"&&f[e].indexOf("grd")!=-1){d.type=f[e]}else{if(c=="fillcolor"&&f[e]=="transparent"){d.style.filter="alpha(opacity=0)";d["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}else{if(c=="opacity"||c=="fillopacity"){if(d.fill){d.fill.opacity=f[e]}}else{if(c=="textContent"){d.children[0].innerText=f[e]}else{if(c=="dashstyle"){d.dashstyle=f[e].replace(","," ")}else{if(c.indexOf("style.")==-1){d[c]=f[e]}else{d.style[c.replace("style.","")]=f[e]}}}}}}}},removeAttr:function(c,e){if(!c||!e){return}for(var d in e){c.removeAttribute(e[d])}},getAttr:function(e,d){var c=this._translateParam(d);if(c=="opacity"||c=="fillopacity"){if(e.fill){return e.fill.opacity}else{return 1}}if(c.indexOf("style.")==-1){return e[c]}return e.style[c.replace("style.","")]},_gradients:{},_toRadialGradient:function(c,e,d){return c},_toLinearGradient:function(j,m,n){if(this._ie8mode){return j}var e="grd"+j.replace("#","")+(m?"v":"h");var f="#"+e+"";if(this._gradients[f]){return f}var h=document.createElement(this._createElementMarkup("fill"));h.type="gradient";h.method="linear";h.angle=m?0:90;var d="";for(var k=0;k<n.length;k++){var l=n[k];if(l>0){d+=", "}d+=l[0]+"% "+a.jqx.adjustColor(j,l[1])}h.colors=d;var c=document.createElement(this._createElementMarkup("shapetype"));c.appendChild(h);c.id=e;this.canvas.appendChild(c);return f}};a.jqx.HTML5Renderer=function(){};a.jqx.ptrnd=function(d){if(Math.abs(Math.round(d)-d)==0.5){return d}var c=Math.round(d);if(c<d){c=c-1}return c+0.5};a.jqx.HTML5Renderer.prototype={init:function(c){try{this.host=c;this.host.append("<div class='chartContainer' style='position:relative' onselectstart='return false;'><canvas id='__jqxCanvasWrap' style='width:100%; height: 100%;'/></div>");this.canvas=c.find("#__jqxCanvasWrap");this.canvas[0].width=c.width();this.canvas[0].height=c.height();this.ctx=this.canvas[0].getContext("2d");this._elements={};this._maxId=0;this._gradientId=0;this._gradients={};this._currentPoint={x:0,y:0};this._lastCmd="";this._pos=0}catch(d){return false}return true},getType:function(){return"HTML5"},getContainer:function(){var c=this.host.find(".chartContainer");return c},getRect:function(){return{x:0,y:0,width:this.canvas[0].width-1,height:this.canvas[0].height-1}},beginGroup:function(){},endGroup:function(){},setClip:function(){},createClipRect:function(c){},addHandler:function(c,e,d){},removeHandler:function(c,e,d){},on:function(c,e,d){this.addHandler(c,e,d)},off:function(c,e,d){this.removeHandler(c,e,d)},clear:function(){this._elements={};this._maxId=0;this._renderers._gradients={};this._gradientId=0},removeElement:function(c){if(undefined==c){return}if(this._elements[c.id]){delete this._elements[c.id]}},shape:function(c,f){var d={type:c,id:this._maxId++};for(var e in f){d[e]=f[e]}this._elements[d.id]=d;return d},attr:function(c,e){for(var d in e){c[d]=e[d]}},removeAttr:function(c,e){for(var d in e){delete c[e[d]]}},rect:function(c,j,d,f,i){if(isNaN(c)){throw'Invalid value for "x"'}if(isNaN(j)){throw'Invalid value for "y"'}if(isNaN(d)){throw'Invalid value for "width"'}if(isNaN(f)){throw'Invalid value for "height"'}var e=this.shape("rect",{x:c,y:j,width:d,height:f});if(i){this.attr(e,i)}return e},path:function(c,e){var d=this.shape("path",e);this.attr(d,{d:c});return d},line:function(d,f,c,e,h){return this.path("M "+d+","+f+" L "+c+","+e,h)},circle:function(c,h,e,f){var d=this.shape("circle",{x:c,y:h,r:e});if(f){this.attr(d,f)}return d},pieSlicePath:function(d,j,i,f,h,e,c){return a.jqx.commonRenderer.pieSlicePath(d,j,i,f,h,e,c)},pieslice:function(l,j,i,f,h,c,k,d){var e=this.path(this.pieSlicePath(l,j,i,f,h,c,k),d);this.attr(e,{x:l,y:j,innerRadius:i,outerRadius:f,angleFrom:h,angleTo:c});return e},_getCSSStyle:function(d){var k=document.styleSheets;try{for(var f=0;f<k.length;f++){for(var c=0;k[f].cssRules&&c<k[f].cssRules.length;c++){if(k[f].cssRules[c].selectorText.indexOf(d)!=-1){return k[f].cssRules[c].style}}}}catch(h){}return{}},_getTextParts:function(s,h,j){var n="Arial";var t="10pt";var o="";if(j&&j["class"]){var c=this._getCSSStyle(j["class"]);if(c.fontSize){t=c.fontSize}if(c.fontFamily){n=c.fontFamily}if(c.fontWeight){o=c.fontWeight}}this.ctx.font=o+" "+t+" "+n;var f={width:0,height:0,parts:[]};var m=0.6;var q=s.toString().split("<br>");for(var k=0;k<q.length;k++){var e=q[k];var l=this.ctx.measureText(e).width;var p=document.createElement("span.jqxchart");p.font=this.ctx.font;p.textContent=e;document.body.appendChild(p);var d=p.offsetHeight*m;document.body.removeChild(p);f.width=Math.max(f.width,a.jqx._rup(l));f.height+=d+(k>0?4:0);f.parts.push({width:l,height:d,text:e})}return f},_measureText:function(f,e,d,c){return a.jqx.commonRenderer.measureText(f,e,d,c,this)},measureText:function(e,d,c){return this._measureText(e,d,c,false)},text:function(o,n,l,d,p,h,i,e,j,m,f){var q=this.shape("text",{text:o,x:n,y:l,width:d,height:p,angle:h,clip:e,halign:j,valign:m,rotateAround:f});if(i){this.attr(q,i)}q.fontFamily="Arial";q.fontSize="10pt";q.fontWeight="";q.color="#000000";if(i&&i["class"]){var c=this._getCSSStyle(i["class"]);q.fontFamily=c.fontFamily||q.fontFamily;q.fontSize=c.fontSize||q.fontSize;q.fontWeight=c.fontWeight||q.fontWeight;q.color=c.color||q.color}var k=this._measureText(o,0,i,true);this.attr(q,{textPartsInfo:k.textPartsInfo,textWidth:k.width,textHeight:k.height});if(d<=0||isNaN(d)){this.attr(q,{width:k.width})}if(p<=0||isNaN(p)){this.attr(q,{height:k.height})}return q},_toLinearGradient:function(d,j,h){if(this._renderers._gradients[d]){return d}var c=[];for(var f=0;f<h.length;f++){c.push({percent:h[f][0]/100,color:a.jqx.adjustColor(d,h[f][1])})}var e="gr"+this._gradientId++;this.createGradient(e,j?"vertical":"horizontal",c);return e},_toRadialGradient:function(d,h){if(this._renderers._gradients[d]){return d}var c=[];for(var f=0;f<h.length;f++){c.push({percent:h[f][0]/100,color:a.jqx.adjustColor(d,h[f][1])})}var e="gr"+this._gradientId++;this.createGradient(e,"radial",c);return e},createGradient:function(e,d,c){this._renderers.createGradient(this,e,d,c)},_renderers:{createGradient:function(f,e,d,c){f._gradients[e]={orientation:d,colorStops:c}},setStroke:function(d,e){var c=d.ctx;c.strokeStyle=e.stroke||"transparent";c.lineWidth=e["stroke-width"]||1;if(e["fill-opacity"]!=undefined){c.globalAlpha=e["fill-opacity"]}else{if(e.opacity!=undefined){c.globalAlpha=e.opacity}else{c.globalAlpha=1}}if(c.setLineDash){if(e["stroke-dasharray"]){c.setLineDash(e["stroke-dasharray"].split(","))}else{c.setLineDash([])}}},setFillStyle:function(d,h){var p=d.ctx;p.fillStyle="transparent";if(h["fill-opacity"]!=undefined){p.globalAlpha=h["fill-opacity"]}else{if(h.opacity!=undefined){p.globalAlpha=h.opacity}else{p.globalAlpha=1}}if(h.fill&&h.fill.indexOf("#")==-1&&d._gradients[h.fill]){var n=d._gradients[h.fill].orientation!="horizontal";var k=d._gradients[h.fill].orientation=="radial";var e=a.jqx.ptrnd(h.x);var o=a.jqx.ptrnd(h.y);var c=a.jqx.ptrnd(h.x+(n?0:h.width));var l=a.jqx.ptrnd(h.y+(n?h.height:0));var m;if((h.type=="circle"||h.type=="path"||h.type=="rect")&&k){x=a.jqx.ptrnd(h.x);y=a.jqx.ptrnd(h.y);r1=h.innerRadius||0;r2=h.outerRadius||h.r||0;if(h.type=="rect"){x+=h.width/2;y+=h.height/2}m=p.createRadialGradient(x,y,r1,x,y,r2)}if(!k){if(isNaN(e)||isNaN(c)||isNaN(o)||isNaN(l)){e=0;o=0;c=n?0:p.canvas.width;l=n?p.canvas.height:0}m=p.createLinearGradient(e,o,c,l)}var f=d._gradients[h.fill].colorStops;for(var j=0;j<f.length;j++){m.addColorStop(f[j].percent,f[j].color)}p.fillStyle=m}else{if(h.fill){p.fillStyle=h.fill}}},rect:function(c,d){if(d.width==0||d.height==0){return}c.fillRect(a.jqx.ptrnd(d.x),a.jqx.ptrnd(d.y),d.width,d.height);c.strokeRect(a.jqx.ptrnd(d.x),a.jqx.ptrnd(d.y),d.width,d.height)},circle:function(c,d){if(d.r==0){return}c.beginPath();c.arc(a.jqx.ptrnd(d.x),a.jqx.ptrnd(d.y),d.r,0,Math.PI*2,false);c.closePath();c.fill();c.stroke()},_parsePoint:function(d){var c=this._parseNumber(d);var e=this._parseNumber(d);return({x:c,y:e})},_parseNumber:function(e){var f=false;for(var c=this._pos;c<e.length;c++){if((e[c]>="0"&&e[c]<="9")||e[c]=="."||e[c]=="e"||(e[c]=="-"&&!f)||(e[c]=="-"&&c>=1&&e[c-1]=="e")){f=true;continue}if(!f&&(e[c]==" "||e[c]==",")){this._pos++;continue}break}var d=parseFloat(e.substring(this._pos,c));if(isNaN(d)){return undefined}this._pos=c;return d},_cmds:"mlcazq",_isRelativeCmd:function(c){return a.jqx.string.contains(this._cmds,c)},_parseCmd:function(c){for(var d=this._pos;d<c.length;d++){if(a.jqx.string.containsIgnoreCase(this._cmds,c[d])){this._pos=d+1;this._lastCmd=c[d];return this._lastCmd}if(c[d]==" "){this._pos++;continue}if(c[d]>="0"&&c[d]<="9"){this._pos=d;if(this._lastCmd==""){break}else{return this._lastCmd}}}return undefined},_toAbsolutePoint:function(c){return{x:this._currentPoint.x+c.x,y:this._currentPoint.y+c.y}},path:function(E,N){var B=N.d;this._pos=0;this._lastCmd="";var n=undefined;this._currentPoint={x:0,y:0};E.beginPath();var I=0;while(this._pos<B.length){var H=this._parseCmd(B);if(H==undefined){break}if(H=="M"||H=="m"){var F=this._parsePoint(B);if(F==undefined){break}E.moveTo(F.x,F.y);this._currentPoint=F;if(n==undefined){n=F}continue}if(H=="L"||H=="l"){var F=this._parsePoint(B);if(F==undefined){break}E.lineTo(F.x,F.y);this._currentPoint=F;continue}if(H=="A"||H=="a"){var j=this._parseNumber(B);var h=this._parseNumber(B);var L=this._parseNumber(B)*(Math.PI/180);var P=this._parseNumber(B);var f=this._parseNumber(B);var q=this._parsePoint(B);if(this._isRelativeCmd(H)){q=this._toAbsolutePoint(q)}if(j==0||h==0){continue}var k=this._currentPoint;var K={x:Math.cos(L)*(k.x-q.x)/2+Math.sin(L)*(k.y-q.y)/2,y:-Math.sin(L)*(k.x-q.x)/2+Math.cos(L)*(k.y-q.y)/2};var l=Math.pow(K.x,2)/Math.pow(j,2)+Math.pow(K.y,2)/Math.pow(h,2);if(l>1){j*=Math.sqrt(l);h*=Math.sqrt(l)}var t=(P==f?-1:1)*Math.sqrt(((Math.pow(j,2)*Math.pow(h,2))-(Math.pow(j,2)*Math.pow(K.y,2))-(Math.pow(h,2)*Math.pow(K.x,2)))/(Math.pow(j,2)*Math.pow(K.y,2)+Math.pow(h,2)*Math.pow(K.x,2)));if(isNaN(t)){t=0}var J={x:t*j*K.y/h,y:t*-h*K.x/j};var D={x:(k.x+q.x)/2+Math.cos(L)*J.x-Math.sin(L)*J.y,y:(k.y+q.y)/2+Math.sin(L)*J.x+Math.cos(L)*J.y};var C=function(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2))};var z=function(m,i){return(m[0]*i[0]+m[1]*i[1])/(C(m)*C(i))};var O=function(m,i){return(m[0]*i[1]<m[1]*i[0]?-1:1)*Math.acos(z(m,i))};var G=O([1,0],[(K.x-J.x)/j,(K.y-J.y)/h]);var p=[(K.x-J.x)/j,(K.y-J.y)/h];var o=[(-K.x-J.x)/j,(-K.y-J.y)/h];var M=O(p,o);if(z(p,o)<=-1){M=Math.PI}if(z(p,o)>=1){M=0}if(f==0&&M>0){M=M-2*Math.PI}if(f==1&&M<0){M=M+2*Math.PI}var z=(j>h)?j:h;var A=(j>h)?1:j/h;var w=(j>h)?h/j:1;E.translate(D.x,D.y);E.rotate(L);E.scale(A,w);E.arc(0,0,z,G,G+M,1-f);E.scale(1/A,1/w);E.rotate(-L);E.translate(-D.x,-D.y);continue}if((H=="Z"||H=="z")&&n!=undefined){E.lineTo(n.x,n.y);this._currentPoint=n;continue}if(H=="C"||H=="c"){var e=this._parsePoint(B);var d=this._parsePoint(B);var c=this._parsePoint(B);E.bezierCurveTo(e.x,e.y,d.x,d.y,c.x,c.y);this._currentPoint=c;continue}if(H=="Q"||H=="q"){var e=this._parsePoint(B);var d=this._parsePoint(B);E.quadraticCurveTo(e.x,e.y,d.x,d.y);this._currentPoint=d;continue}}E.fill();E.stroke();E.closePath()},text:function(A,G){var p=a.jqx.ptrnd(G.x);var o=a.jqx.ptrnd(G.y);var v=a.jqx.ptrnd(G.width);var t=a.jqx.ptrnd(G.height);var s=G.halign;var k=G.valign;var D=G.angle;var c=G.rotateAround;var f=G.textPartsInfo;var e=f.parts;var E=G.clip;if(E==undefined){E=true}A.save();if(!s){s="center"}if(!k){k="center"}if(E){A.rect(p,o,v,t);A.clip()}var H=G.textWidth;var l=G.textHeight;var q=v||0;var C=t||0;A.fillStyle=G.color;A.font=G.fontWeight+" "+G.fontSize+" "+G.fontFamily;if(!D||D==0){o+=l;if(k=="center"||k=="middle"){o+=(C-l)/2}else{if(k=="bottom"){o+=C-l}}if(!v){v=H}if(!t){t=l}var n=0;for(var B=e.length-1;B>=0;B--){var u=e[B];var I=p;var m=e[B].width;var d=e[B].height;if(s=="center"){I+=(q-m)/2}else{if(s=="right"){I+=(q-m)}}A.fillText(u.text,I,o+n);n-=u.height+(B>0?4:0)}A.restore();return}var z=a.jqx.commonRenderer.alignTextInRect(p,o,v,t,H,l,s,k,D,c);p=z.x;o=z.y;var j=D*Math.PI*2/360;A.translate(p,o);A.rotate(j);var n=0;var F=f.width;for(var B=e.length-1;B>=0;B--){var I=0;if(s=="center"){I+=(F-e[B].width)/2}else{if(s=="right"){I+=(F-e[B].width)}}A.fillText(e[B].text,I,n);n-=e[B].height+4}A.restore()}},refresh:function(){this.ctx.clearRect(0,0,this.canvas[0].width,this.canvas[0].height);for(var c in this._elements){var d=this._elements[c];this._renderers.setFillStyle(this,d);this._renderers.setStroke(this,d);this._renderers[this._elements[c].type](this.ctx,d)}}};a.jqx.createRenderer=function(c,e){var d=c;var f=d.renderer=null;if(document.createElementNS&&(d.renderEngine!="HTML5"&&d.renderEngine!="VML")){f=new a.jqx.svgRenderer();if(!f.init(e)){if(d.renderEngine=="SVG"){throw"Your browser does not support SVG"}return null}}if(f==null&&d.renderEngine!="HTML5"){f=new a.jqx.vmlRenderer();if(!f.init(e)){if(d.renderEngine=="VML"){throw"Your browser does not support VML"}return null}d._isVML=true}if(f==null&&(d.renderEngine=="HTML5"||d.renderEngine==undefined)){f=new a.jqx.HTML5Renderer();if(!f.init(e)){throw"Your browser does not support HTML5 Canvas"}}d.renderer=f;return f},a.jqx._widgetToImage=function(q,k,f,o,i,h){var m=q;if(!m){return false}if(f==undefined||f==""){f="image."+k}var n=m.renderEngine;var d=m.enableAnimations;m.enableAnimations=false;m.renderEngine="HTML5";if(m.renderEngine!=n){try{m.refresh()}catch(j){m.renderEngine=n;m.refresh();m.enableAnimations=d;return false}}var c=m.renderer.getContainer().find("canvas")[0];var l=true;if(a.isFunction(h)){l=h(q,c)}var p=true;if(l){p=a.jqx.exportImage(c,k,f,o,i)}if(m.renderEngine!=n){m.renderEngine=n;m.refresh();m.enableAnimations=d}return p};a.jqx.getByPriority=function(c){var e=undefined;for(var d=0;d<c.length&&e==undefined;d++){if(e==undefined&&c[d]!=undefined){e=c[d]}}return e};a.jqx.exportImage=function(f,p,h,t,k){if(!f){return false}var m=p.toLowerCase()==="pdf";if(m){p="jpeg"}if(h==undefined||h==""){h="image."+p}if(t==undefined||t==""){throw"Please specifiy export server"}var v=true;try{if(f){var i=f.toDataURL("image/"+p);if(m){if(!a.jqx.pdfExport){a.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var j=595;switch(a.jqx.pdfExport.paperSize){case"legal":var j=612;if(a.jqx.pdfExport.orientation!=="portrait"){j=1008}break;case"letter":var j=612;if(a.jqx.pdfExport.orientation!=="portrait"){j=792}break;case"a3":var j=841;if(a.jqx.pdfExport.orientation!=="portrait"){j=1190}break;case"a4":var j=595;if(a.jqx.pdfExport.orientation!=="portrait"){j=842}break;case"a5":var j=420;if(a.jqx.pdfExport.orientation!=="portrait"){j=595}break}var l=a(f).width();var q=l*72/96;if(q>=j-20){q=j-20}var s;try{var s=new pdfDataExport(a.jqx.pdfExport.orientation,"pt",a.jqx.pdfExport.paperSize)}catch(o){var s=new window.jqxPdfDataExport(a.jqx.pdfExport.orientation,"pt",a.jqx.pdfExport.paperSize)}s.addImage(i,"JPEG",10,10,q,0);s.save(h);return}i=i.replace("data:image/"+p+";base64,","");if(k){a.ajax({dataType:"string",url:t,type:"POST",data:{content:i,fname:h},async:false,success:function(w,e,z){v=true},error:function(w,e,z){v=false}})}else{var d=document.createElement("form");d.method="POST";d.action=t;d.style.display="none";document.body.appendChild(d);var u=document.createElement("input");u.name="fname";u.value=h;u.style.display="none";var c=document.createElement("input");c.name="content";c.value=i;c.style.display="none";d.appendChild(u);d.appendChild(c);d.submit();document.body.removeChild(d);v=true}}}catch(n){v=false}return v}})(jqxBaseFramework);(function(a){jqxPlot=function(){};jqxPlot.prototype={get:function(e,c,d){return d!==undefined?e[c][d]:e[c]},min:function(h,e){var d=NaN;for(var c=0;c<h.length;c++){var f=this.get(h,c,e);if(isNaN(d)||f<d){d=f}}return d},max:function(h,e){var c=NaN;for(var d=0;d<h.length;d++){var f=this.get(h,d,e);if(isNaN(c)||f>c){c=f}}return c},sum:function(h,d){var e=0;for(var c=0;c<h.length;c++){var f=this.get(h,c,d);if(!isNaN(f)){e+=f}}return e},count:function(h,d){var e=0;for(var c=0;c<h.length;c++){var f=this.get(h,c,d);if(!isNaN(f)){e++}}return e},avg:function(d,c){return this.sum(d,c)/Math.max(1,count(d,c))},filter:function(f,e){if(!e){return f}var c=[];for(var d=0;d<f.length;d++){if(e(f[d])){c.push(f[d])}}return c},scale:function(e,k,l,i){if(isNaN(e)){return NaN}if(e<Math.min(k.min,k.max)||e>Math.max(k.min,k.max)){if(!i||i.ignore_range!==true){return NaN}}var p=NaN;var n=1;if(k.type===undefined||k.type!="logarithmic"){var m=Math.abs(k.max-k.min);if(!m){m=1}n=Math.abs(e-Math.min(k.min,k.max))/m}else{if(k.type==="logarithmic"){var f=k.base;if(isNaN(f)){f=10}var j=Math.min(k.min,k.max);if(j<=0){j=1}var o=Math.max(k.min,k.max);if(o<=0){o=1}var h=a.jqx.log(o,f);o=Math.pow(f,h);var d=a.jqx.log(j,f);j=Math.pow(f,d);var c=a.jqx.log(e,f);n=Math.abs(c-d)/(h-d)}}if(l.type==="logarithmic"){var f=l.base;if(isNaN(f)){f=10}var h=a.jqx.log(l.max,f);var d=a.jqx.log(l.min,f);if(l.flip){n=1-n}var c=Math.min(d,h)+n*Math.abs(h-d);p=Math.pow(f,c)}else{p=Math.min(l.min,l.max)+n*Math.abs(l.max-l.min);if(l.flip){p=Math.max(l.min,l.max)-p+l.min}}return p},axis:function(q,s,m){if(m<=1){return[s,q]}var h=q;var k=s;if(isNaN(m)||m<2){m=2}var c=0;while(Math.round(q)!=q&&Math.round(s)!=s&&c<10){q*=10;s*=10;c++}var n=(s-q)/m;while(c<10&&Math.round(n)!=n){q*=10;s*=10;n*=10;c++}var w=[1,2,5];var j=0;var t=0;while(true){var o=t%w.length;var f=Math.floor(t/w.length);var p=Math.pow(10,f)*w[o];o=(t+1)%w.length;f=Math.floor((t+1)/w.length);var l=Math.pow(10,f)*w[o];if(n>=p&&n<l){break}t++}var e=l;var u=[];var v=a.jqx._rnd(q,e,false);var d=c<=0?1:Math.pow(10,c);while(v<s+e){u.push(v/d);v+=e}return u}}})(jqxBaseFramework);
 
-(function(a){a.jqx.jqxWidget("jqxChart","",{});a.extend(a.jqx._jqxChart.prototype,{defineInstance:function(){a.extend(true,this,this._defaultSettings);this._createColorsCache();return this._defaultSettings},_defaultSettings:{title:"Title",description:"Description",source:[],seriesGroups:[],categoryAxis:null,xAxis:{},valueAxis:null,renderEngine:"",enableAnimations:true,enableAxisTextAnimation:false,backgroundImage:"",background:"#FFFFFF",padding:{left:5,top:5,right:5,bottom:5},backgroundColor:"#FFFFFF",showBorderLine:true,borderLineWidth:1,borderLineColor:null,borderColor:null,titlePadding:{left:5,top:5,right:5,bottom:10},showLegend:true,legendLayout:null,enabled:true,colorScheme:"scheme01",animationDuration:500,showToolTips:true,showToolTipsOnAllSeries:false,toolTipShowDelay:300,toolTipDelay:500,toolTipHideDelay:4000,toolTipMoveDuration:300,toolTipFormatFunction:null,toolTipAlignment:"dataPoint",localization:null,columnSeriesOverlap:false,rtl:false,legendPosition:null,greyScale:false,axisPadding:5,enableCrosshairs:false,crosshairsColor:"#BCBCBC",crosshairsDashStyle:"2,2",crosshairsLineWidth:1,enableEvents:true,_itemsToggleState:[],_isToggleRefresh:false,_isSelectorRefresh:false,_sliders:[],_selectorRange:[],_rangeSelectorInstances:{},_resizeState:{},renderer:null,_isRangeSelectorInstance:false,drawBefore:null,draw:null,_renderData:{},enableSampling:true},_defaultLineColor:"#BCBCBC",_touchEvents:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),click:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend"),mousemove:a.jqx.mobile.getTouchEventName("touchmove"),mouseenter:"mouseenter",mouseleave:"mouseleave"},_getEvent:function(b){if(this._isTouchDevice){return this._touchEvents[b]}else{return b}},destroy:function(){this.host.remove()},_jqxPlot:null,createInstance:function(d){if(!a.jqx.dataAdapter){throw"jqxdata.js is not loaded"}var c=this;c._refreshOnDownloadComlete();c._isTouchDevice=a.jqx.mobile.isTouchDevice();if(!c._jqxPlot){c._jqxPlot=new jqxPlot()}c.addHandler(c.host,c._getEvent("mousemove"),function(g){if(c.enabled==false){return}if(!c._isRangeSelectorInstance){c.host.css("cursor","default")}var f=g.pageX||g.clientX||g.screenX;var j=g.pageY||g.clientY||g.screenY;var i=c.host.offset();if(c._isTouchDevice){var h=a.jqx.position(g);f=h.left;j=h.top}f-=i.left;j-=i.top;c.onmousemove(f,j)});c.addHandler(c.host,c._getEvent("mouseleave"),function(h){if(c.enabled==false){return}var f=c._mouseX;var i=c._mouseY;var g=c._plotRect;if(g&&f>=g.x&&f<=g.x+g.width&&i>=g.y&&i<=g.y+g.height){return}c._cancelTooltipTimer();c._hideToolTip(0);c._unselect()});c.addHandler(c.host,"click",function(g){if(c.enabled==false){return}var f=g.pageX||g.clientX||g.screenX;var j=g.pageY||g.clientY||g.screenY;var i=c.host.offset();if(c._isTouchDevice){var h=a.jqx.position(g);f=h.left;j=h.top}f-=i.left;j-=i.top;c._mouseX=f;c._mouseY=j;if(!isNaN(c._lastClickTs)){if((new Date()).valueOf()-c._lastClickTs<100){return}}this._hostClickTimer=setTimeout(function(){if(!c._isTouchDevice){c._cancelTooltipTimer();c._hideToolTip();c._unselect()}if(c._pointMarker&&c._pointMarker.element){var l=c.seriesGroups[c._pointMarker.gidx];var k=l.series[c._pointMarker.sidx];g.stopImmediatePropagation();c._raiseItemEvent("click",l,k,c._pointMarker.iidx)}},100)});var e=c.element.style;if(e){var b=false;if(e.width!=null){b|=e.width.toString().indexOf("%")!=-1}if(e.height!=null){b|=e.height.toString().indexOf("%")!=-1}if(b){a.jqx.utilities.resize(this.host,function(){if(c.timer){clearTimeout(c.timer)}var f=1;c.timer=setTimeout(function(){var g=c.enableAnimations;c.enableAnimations=false;c.refresh();c.enableAnimations=g},f)},false,true)}}},_refreshOnDownloadComlete:function(){var d=this;var e=this.source;if(e instanceof a.jqx.dataAdapter){var f=e._options;if(f==undefined||(f!=undefined&&!f.autoBind)){e.autoSync=false;e.dataBind()}var c=this.element.id;if(e.records.length==0){var b=function(){if(d.ready){d.ready()}d.refresh()};e.unbindDownloadComplete(c);e.bindDownloadComplete(c,b)}else{if(d.ready){d.ready()}}e.unbindBindingUpdate(c);e.bindBindingUpdate(c,function(){if(d._supressBindingRefresh){return}d.refresh()})}},propertyChangedHandler:function(b,c,e,d){if(this.isInitialized==undefined||this.isInitialized==false){return}if(c=="source"){this._refreshOnDownloadComlete()}this.refresh()},_initRenderer:function(b){if(!a.jqx.createRenderer){throw"Please include jqxdraw.js"}return a.jqx.createRenderer(this,b)},_internalRefresh:function(){var b=this;if(a.jqx.isHidden(b.host)){return}b._stopAnimations();if(!b.renderer||(!b._isToggleRefresh&&!b._isUpdate)){b._hideToolTip(0);b._isVML=false;b.host.empty();b._measureDiv=undefined;b._initRenderer(b.host)}var d=b.renderer;if(!d){return}var c=d.getRect();b._render({x:1,y:1,width:c.width,height:c.height});this._raiseEvent("refreshBegin",{instance:this});if(d instanceof a.jqx.HTML5Renderer){d.refresh()}b._isUpdate=false;this._raiseEvent("refreshEnd",{instance:this})},saveAsPNG:function(d,b,c){return this._saveAsImage("png",d,b,c)},saveAsJPEG:function(d,b,c){return this._saveAsImage("jpeg",d,b,c)},saveAsPDF:function(d,b,c){return this._saveAsImage("pdf",d,b,c)},_saveAsImage:function(e,h,b,c){var g=false;for(var d=0;d<this.seriesGroups.length&&!g;d++){var f=this._getXAxis(d);if(f&&f.rangeSelector){g=true}}return a.jqx._widgetToImage(this,e,h,b,c,g?this._selectorSaveAsImageCallback:undefined)},_selectorSaveAsImageCallback:function(D,h){var r=D;for(var B=0;B<r.seriesGroups.length;B++){var o=r._getXAxis(B);if(!o||!o.rangeSelector||o.rangeSelector.renderTo){continue}var m=r._rangeSelectorInstances[B];if(!m){continue}var s=m.jqxChart("getInstance");var e=s.renderEngine;var d=s.renderer.getRect();var f=s.renderer.getContainer().find("canvas")[0];var p=f.getContext("2d");var w=r._sliders[B];var b=r.seriesGroups[B].orientation=="horizontal";var c=!b?"width":"height";var v=b?"width":"height";var A=!b?"x":"y";var g=b?"x":"y";var k={};k[A]=w.startOffset+w.rect[A];k[g]=w.rect[g];k[c]=w.endOffset-w.startOffset;k[v]=w.rect[v];var n=o.rangeSelector.colorSelectedRange||"blue";var u=o.rangeSelector.colorUnselectedRange||"white";var l=o.rangeSelector.colorRangeLine||"grey";var q=[];q.push(s.renderer.rect(k.x,k.y,k.width,k.height,{fill:n,opacity:0.1}));if(!b){q.push(s.renderer.line(a.jqx._ptrnd(w.rect.x),a.jqx._ptrnd(w.rect.y),a.jqx._ptrnd(k.x),a.jqx._ptrnd(w.rect.y),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(k.x+k.width),a.jqx._ptrnd(w.rect.y),a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(w.rect.y),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(k.x),a.jqx._ptrnd(w.rect.y),a.jqx._ptrnd(k.x),a.jqx._ptrnd(w.rect.y+w.rect.height),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(k.x+k.width),a.jqx._ptrnd(w.rect.y),a.jqx._ptrnd(k.x+k.width),a.jqx._ptrnd(w.rect.y+w.rect.height),{stroke:l,opacity:0.5}))}else{q.push(s.renderer.line(a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(w.rect.y),a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(k.y),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(k.y+k.height),a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(w.rect.y+w.rect.height),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(w.rect.x),a.jqx._ptrnd(k.y),a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(k.y),{stroke:l,opacity:0.5}));q.push(s.renderer.line(a.jqx._ptrnd(w.rect.x),a.jqx._ptrnd(k.y+k.height),a.jqx._ptrnd(w.rect.x+w.rect.width),a.jqx._ptrnd(k.y+k.height),{stroke:l,opacity:0.5}))}s.renderer.refresh();var t=p.getImageData(d.x,d.y,d.width,d.height);var C=h.getContext("2d");C.putImageData(t,parseInt(m.css("left")),parseInt(m.css("top")),1,1,d.width,d.height);for(var z=0;z<q.length;z++){s.renderer.removeElement(q[z])}s.renderer.refresh()}return true},refresh:function(){this._internalRefresh()},update:function(){this._isUpdate=true;this._internalRefresh()},_seriesTypes:["line","stackedline","stackedline100","spline","stackedspline","stackedspline100","stepline","stackedstepline","stackedstepline100","area","stackedarea","stackedarea100","splinearea","stackedsplinearea","stackedsplinearea100","steparea","stackedsteparea","stackedsteparea100","rangearea","splinerangearea","steprangearea","column","stackedcolumn","stackedcolumn100","rangecolumn","scatter","stackedscatter","stackedscatter100","bubble","stackedbubble","stackedbubble100","pie","donut","candlestick","ohlc","waterfall","stackedwaterfall"],clear:function(){var b=this;for(var c in b._defaultSettings){b[c]=b._defaultSettings[c]}b.title="";b.description="";b.refresh()},_validateSeriesGroups:function(){if(!a.isArray(this.seriesGroups)){throw"Invalid property: 'seriesGroups' property is required and must be a valid array."}for(var b=0;b<this.seriesGroups.length;b++){var c=this.seriesGroups[b];if(!c.type){throw"Invalid property: Each series group must have a valid 'type' property."}if(!a.isArray(c.series)){throw"Invalid property: Each series group must have a 'series' property which must be a valid array."}}},_render:function(C){var m=this;var I=m.renderer;m._validateSeriesGroups();m._colorsCache.clear();if(!m._isToggleRefresh&&m._isUpdate&&m._renderData){m._renderDataClone()}m._renderData=[];I.clear();m._unselect();m._hideToolTip(0);var n=m.backgroundImage;if(n==undefined||n==""){m.host.css({"background-image":""})}else{m.host.css({"background-image":(n.indexOf("(")!=-1?n:"url('"+n+"')")})}m._rect=C;var Y=m.padding||{left:5,top:5,right:5,bottom:5};var q=I.createClipRect(C);var L=I.beginGroup();I.setClip(L,q);var ai=I.rect(C.x,C.y,C.width-2,C.height-2);if(n==undefined||n==""){I.attr(ai,{fill:m.backgroundColor||m.background||"white"})}else{I.attr(ai,{fill:"transparent"})}if(m.showBorderLine!=false){var F=m.borderLineColor==undefined?m.borderColor:m.borderLineColor;if(F==undefined){F=m._defaultLineColor}var o=this.borderLineWidth;if(isNaN(o)||o<0||o>10){o=1}I.attr(ai,{"stroke-width":o,stroke:F})}else{if(a.jqx.browser.msie&&a.jqx.browser.version<9){I.attr(ai,{"stroke-width":1,stroke:m.backgroundColor||"white"})}}if(a.isFunction(m.drawBefore)){m.drawBefore(I,C)}var V={x:Y.left,y:Y.top,width:C.width-Y.left-Y.right,height:C.height-Y.top-Y.bottom};m._paddedRect=V;var e=m.titlePadding||{left:2,top:2,right:2,bottom:2};var l;if(m.title&&m.title.length>0){var S=m.toThemeProperty("jqx-chart-title-text",null);l=I.measureText(m.title,0,{"class":S});I.text(m.title,V.x+e.left,V.y+e.top,V.width-(e.left+e.right),l.height,0,{"class":S},true,"center","center");V.y+=l.height;V.height-=l.height}if(m.description&&m.description.length>0){var T=m.toThemeProperty("jqx-chart-title-description",null);l=I.measureText(m.description,0,{"class":T});I.text(m.description,V.x+e.left,V.y+e.top,V.width-(e.left+e.right),l.height,0,{"class":T},true,"center","center");V.y+=l.height;V.height-=l.height}if(m.title||m.description){V.y+=(e.bottom+e.top);V.height-=(e.bottom+e.top)}var b={x:V.x,y:V.y,width:V.width,height:V.height};m._plotRect=b;m._buildStats(b);var H=m._isPieOnlySeries();var s=m.seriesGroups;var E;var D={xAxis:{},valueAxis:{}};for(var Z=0;Z<s.length&&!H;Z++){if(s[Z].type=="pie"||s[Z].type=="donut"){continue}var z=m._getXAxis(Z);if(!z){throw"seriesGroup["+Z+"] is missing xAxis definition"}var ae=z==m._getXAxis()?-1:Z;D.xAxis[ae]=0}var U=m.axisPadding;if(isNaN(U)){U=5}var r={left:0,right:0,leftCount:0,rightCount:0};var p=[];for(Z=0;Z<s.length;Z++){var ad=s[Z];if(ad.type=="pie"||ad.type=="donut"||ad.spider==true||ad.polar==true){p.push({width:0,position:0,xRel:0});continue}E=ad.orientation=="horizontal";var z=m._getXAxis(Z);var ae=z==m._getXAxis()?-1:Z;var k=m._getValueAxis(Z);var O=k==m._getValueAxis()?-1:Z;var R=!E?k.axisSize:z.axisSize;var f={x:0,y:b.y,width:b.width,height:b.height};var Q=E?m._getXAxis(Z).position:k.position;if(!R||R=="auto"){if(E){R=this._renderXAxis(Z,f,true,b).width;if((D.xAxis[ae]&1)==1){R=0}else{if(R>0){D.xAxis[ae]|=1}}}else{R=m._renderValueAxis(Z,f,true,b).width;if((D.valueAxis[O]&1)==1){R=0}else{if(R>0){D.valueAxis[O]|=1}}}}if(Q!="left"&&m.rtl==true){Q="right"}if(Q!="right"){Q="left"}if(r[Q+"Count"]>0&&r[Q]>0&&R>0){r[Q]+=U}p.push({width:R,position:Q,xRel:r[Q]});r[Q]+=R;r[Q+"Count"]++}var u=Math.max(1,Math.max(C.width,C.height));var ac={top:0,bottom:0,topCount:0,bottomCount:0};var W=[];for(Z=0;Z<s.length;Z++){var ad=s[Z];if(ad.type=="pie"||ad.type=="donut"||ad.spider==true||ad.polar==true){W.push({height:0,position:0,yRel:0});continue}E=ad.orientation=="horizontal";var k=this._getValueAxis(Z);var O=k==m._getValueAxis()?-1:Z;var z=m._getXAxis(Z);var ae=z==m._getXAxis()?-1:Z;var ab=!E?z.axisSize:k.axisSize;var Q=E?k.position:z.position;if(!ab||ab=="auto"){if(E){ab=m._renderValueAxis(Z,{x:0,y:0,width:u,height:0},true,b).height;if((D.valueAxis[O]&2)==2){ab=0}else{if(ab>0){D.valueAxis[O]|=2}}}else{ab=m._renderXAxis(Z,{x:0,y:0,width:u,height:0},true).height;if((D.xAxis[ae]&2)==2){ab=0}else{if(ab>0){D.xAxis[ae]|=2}}}}if(Q!="top"){Q="bottom"}if(ac[Q+"Count"]>0&&ac[Q]>0&&ab>0){ac[Q]+=U}W.push({height:ab,position:Q,yRel:ac[Q]});ac[Q]+=ab;ac[Q+"Count"]++}m._createAnimationGroup("series");var t=(m.showLegend!=false);var B=!t?{width:0,height:0}:m._renderLegend(m.legendLayout?m._rect:V,true);if(this.legendLayout&&(!isNaN(this.legendLayout.left)||!isNaN(this.legendLayout.top))){B={width:0,height:0}}if(V.height<ac.top+ac.bottom+B.height||V.width<r.left+r.right){I.endGroup();return}b.height-=ac.top+ac.bottom+B.height;b.x+=r.left;b.width-=r.left+r.right;b.y+=ac.top;var G=[];if(!H){var af=m._getXAxis().tickMarksColor||m._defaultLineColor;for(Z=0;Z<s.length;Z++){var ad=s[Z];if(ad.polar==true||ad.spider==true||ad.type=="pie"||ad.type=="donut"){continue}E=ad.orientation=="horizontal";var ae=m._getXAxis(Z)==m._getXAxis()?-1:Z;var O=m._getValueAxis(Z)==m._getValueAxis()?-1:Z;var f={x:b.x,y:0,width:b.width,height:W[Z].height};if(W[Z].position!="top"){f.y=b.y+b.height+W[Z].yRel}else{f.y=b.y-W[Z].yRel-W[Z].height}if(E){if((D.valueAxis[O]&4)==4){continue}if(!m._isGroupVisible(Z)){continue}m._renderValueAxis(Z,f,false,b);D.valueAxis[O]|=4}else{G.push(f);if((D.xAxis[ae]&4)==4){continue}if(!m._isGroupVisible(Z)){continue}m._renderXAxis(Z,f,false,b);D.xAxis[ae]|=4}}}if(t){var A=m.legendLayout?m._rect:V;var P=V.x+a.jqx._ptrnd((V.width-B.width)/2);var N=b.y+b.height+ac.bottom;var R=V.width;var ab=B.height;if(m.legendLayout){if(!isNaN(m.legendLayout.left)){P=m.legendLayout.left}if(!isNaN(m.legendLayout.top)){N=m.legendLayout.top}if(!isNaN(m.legendLayout.width)){R=m.legendLayout.width}if(!isNaN(m.legendLayout.height)){ab=m.legendLayout.height}}if(P+R>A.x+A.width){R=A.x+A.width-P}if(N+ab>A.y+A.height){ab=A.y+A.height-N}m._renderLegend({x:P,y:N,width:R,height:ab})}m._hasHorizontalLines=false;if(!H){for(Z=0;Z<s.length;Z++){var ad=s[Z];if(ad.polar==true||ad.spider==true||ad.type=="pie"||ad.type=="donut"){continue}E=s[Z].orientation=="horizontal";var f={x:b.x-p[Z].xRel-p[Z].width,y:b.y,width:p[Z].width,height:b.height};if(p[Z].position!="left"){f.x=b.x+b.width+p[Z].xRel}var ae=m._getXAxis(Z)==m._getXAxis()?-1:Z;var O=m._getValueAxis(Z)==m._getValueAxis()?-1:Z;if(E){G.push(f);if((D.xAxis[ae]&8)==8){continue}if(!m._isGroupVisible(Z)){continue}m._renderXAxis(Z,f,false,b);D.xAxis[ae]|=8}else{if((D.valueAxis[O]&8)==8){continue}if(!m._isGroupVisible(Z)){continue}m._renderValueAxis(Z,f,false,b);D.valueAxis[O]|=8}}}if(b.width<=0||b.height<=0){return}m._plotRect={x:b.x,y:b.y,width:b.width,height:b.height};for(Z=0;Z<s.length;Z++){this._drawPlotAreaLines(Z,true,{gridLines:false,tickMarks:false,alternatingBackground:true});this._drawPlotAreaLines(Z,false,{gridLines:false,tickMarks:false,alternatingBackground:true})}for(Z=0;Z<s.length;Z++){this._drawPlotAreaLines(Z,true,{gridLines:true,tickMarks:true,alternatingBackground:false});this._drawPlotAreaLines(Z,false,{gridLines:true,tickMarks:true,alternatingBackground:false})}var K=false;for(Z=0;Z<s.length&&!K;Z++){var ad=s[Z];if(ad.annotations!==undefined||a.isFunction(ad.draw)||a.isFunction(ad.drawBefore)){K=true;break}}var M=I.beginGroup();if(!K){var J=I.createClipRect({x:b.x-2,y:b.y,width:b.width+4,height:b.height});I.setClip(M,J)}for(Z=0;Z<s.length;Z++){var ad=s[Z];var c=false;for(var ag in m._seriesTypes){if(m._seriesTypes[ag]==ad.type){c=true;break}}if(!c){throw'Invalid serie type "'+ad.type+'"'}if(a.isFunction(ad.drawBefore)){ad.drawBefore(I,C,Z,this)}if(ad.polar==true||ad.spider==true){if(ad.type.indexOf("pie")==-1&&ad.type.indexOf("donut")==-1){m._renderSpiderAxis(Z,b)}}m._renderAxisBands(Z,b,true);m._renderAxisBands(Z,b,false)}for(Z=0;Z<s.length;Z++){var ad=s[Z];if(m._isColumnType(ad.type)){m._renderColumnSeries(Z,b)}else{if(ad.type.indexOf("pie")!=-1||ad.type.indexOf("donut")!=-1){m._renderPieSeries(Z,b)}else{if(ad.type.indexOf("line")!=-1||ad.type.indexOf("area")!=-1){m._renderLineSeries(Z,b)}else{if(ad.type.indexOf("scatter")!=-1||ad.type.indexOf("bubble")!=-1){m._renderScatterSeries(Z,b)}else{if(ad.type.indexOf("candlestick")!=-1||ad.type.indexOf("ohlc")!=-1){m._renderCandleStickSeries(Z,b,ad.type.indexOf("ohlc")!=-1)}}}}}if(ad.annotations){if(!this._moduleAnnotations){throw"Please include 'jqxchart.annotations.js'"}for(var X=0;X<ad.annotations.length;X++){m._renderAnnotation(Z,ad.annotations[X],b)}}if(a.isFunction(ad.draw)){m.draw(I,C,Z,this)}}I.endGroup();if(m.enabled==false){var aa=I.rect(C.x,C.y,C.width,C.height);I.attr(aa,{fill:"#777777",opacity:0.5,stroke:"#00FFFFFF"})}if(a.isFunction(m.draw)){m.draw(I,C)}I.endGroup();m._startAnimation("series");if(m._credits){m._credits()}var ah=false;for(var Z=0;Z<m.seriesGroups.length&&!ah;Z++){var z=m._getXAxis(Z);if(z&&z.rangeSelector){ah=true}}if(ah){if(!this._moduleRangeSelector){throw"Please include 'jqxchart.rangeselector.js'"}var d=[];if(!this._isSelectorRefresh){m.removeHandler(a(document),m._getEvent("mousemove"),m._onSliderMouseMove);m.removeHandler(a(document),m._getEvent("mousedown"),m._onSliderMouseDown);m.removeHandler(a(document),m._getEvent("mouseup"),m._onSliderMouseUp)}if(!m._isSelectorRefresh){m._rangeSelectorInstances={}}for(Z=0;Z<m.seriesGroups.length;Z++){var v=this._getXAxis(Z);if(d.indexOf(v)==-1){if(this._renderXAxisRangeSelector(Z,G[Z])){d.push(v)}}}}},_credits:function(){if(a.jqx.credits!=="12F129D4-0E1B-44B8-9BBB-BB4CF78CC6BA"){var c=this;var d=String.fromCharCode(119,119,119,46,106,113,119,105,100,103,101,116,115,46,99,111,109);if(!c._isRangeSelectorInstance&&location.hostname.indexOf(d.substring(4))==-1){var g=c.renderer;var f=c._rect;var h={"class":c.toThemeProperty("jqx-chart-legend-text",null),opacity:0.5};var e=g.measureText(d,0,h);var b=g.text(d,f.x+f.width-e.width-5,f.y+f.height-e.height-5,e.width,e.height,0,h);a(b).on("click",function(){location.href="http://"+d+"/?ref="+c.widgetName})}}},_isPieOnlySeries:function(){var c=this.seriesGroups;if(c.length==0){return false}for(var b=0;b<c.length;b++){if(c[b].type!="pie"&&c[b].type!="donut"){return false}}return true},_renderChartLegend:function(V,C,S,v){var l=this;var D=l.renderer;var I={x:C.x,y:C.y,width:C.width,height:C.height};var N=3;if(I.width>=2*N){I.x+=N;I.width-=2*N}if(I.height>=2*N){I.y+=N;I.height-=2*N}var E={width:I.width,height:0};var G=0,F=0;var p=20;var m=0;var f=10;var Q=10;var w=0;for(var P=0;P<V.length;P++){var J=V[P].css;if(!J){J=l.toThemeProperty("jqx-chart-legend-text",null)}p=20;var A=V[P].text;var j=D.measureText(A,0,{"class":J});if(j.height>p){p=j.height}if(j.width>w){w=j.width}if(v){if(P!=0){F+=p}if(F>I.height){F=0;G+=w+2*Q+f;w=j.width;E.width=G+w}}else{if(G!=0){G+=Q}if(G+2*f+j.width>I.width&&j.width<I.width){G=0;F+=p;p=20;m=I.width;E.height=F+p}}var K=false;if(j.width>I.width){K=true;var s=I.width;var T=A;var X=T.split(/\s+/);var o=[];var q="";for(var M=0;M<X.length;M++){var k=q+((q.length>0)?" ":"")+X[M];var B=l.renderer.measureText(k,0,{"class":J});if(B.width>s&&k.length>0&&q.length>0){o.push({text:q});q=X[M]}else{q=k}if(M+1==X.length){o.push({text:q})}}j.width=0;var c=0;for(var H=0;H<o.length;H++){var W=o[H].text;var B=l.renderer.measureText(W,0,{"class":J});j.width=Math.max(j.width,B.width);c+=j.height}j.height=c}var z=(G+j.width<I.width)&&(F+j.height<C.height);if(l.legendLayout){var z=I.x+G+j.width<l._rect.x+l._rect.width&&I.y+F+j.height<l._rect.y+l._rect.height}if(!S&&z){var h=V[P].seriesIndex;var n=V[P].groupIndex;var b=V[P].itemIndex;var Y=V[P].fillColor;var U=V[P].lineColor;var e=l._isSerieVisible(n,h,b);var R=D.beginGroup();var O=e?V[P].opacity:0.1;if(K){var T=A;var s=I.width;var X=T.split(/\s+/);var u="";var d=0;var o=[];var q="";for(var M=0;M<X.length;M++){var k=q+((q.length>0)?" ":"")+X[M];var B=l.renderer.measureText(k,0,{"class":J});if(B.width>s&&k.length>0&&q.length>0){o.push({text:q,dy:d});d+=B.height;q=X[M]}else{q=k}if(M+1==X.length){o.push({text:q,dy:d})}}for(var H=0;H<o.length;H++){var W=o[H].text;d=o[H].dy;var B=l.renderer.measureText(W,0,{"class":J});if(v){l.renderer.text(W,I.x+G+1.5*f,I.y+F+d,j.width,p,0,{"class":J},false,"left","center")}else{l.renderer.text(W,I.x+G+1.5*f,I.y+F+d,j.width,p,0,{"class":J},false,"center","center")}}var L=D.rect(I.x+G,I.y+F+f/2+d/2,f,f);if(v){F+=d}l.renderer.attr(L,{fill:Y,"fill-opacity":O,stroke:U,"stroke-width":1,"stroke-opacity":V[P].opacity})}else{var L=D.rect(I.x+G,I.y+F+f/2,f,f);l.renderer.attr(L,{fill:Y,"fill-opacity":O,stroke:U,"stroke-width":1,"stroke-opacity":V[P].opacity});if(v){l.renderer.text(A,I.x+G+1.5*f,I.y+F,j.width,j.height+f/2,0,{"class":J},false,"left","center")}else{l.renderer.text(A,I.x+G+1.5*f,I.y+F,j.width,p,0,{"class":J},false,"center","center")}}l.renderer.endGroup();l._setLegendToggleHandler(n,h,b,R)}if(v){}else{G+=j.width+2*f;if(m<G){m=G}}}if(S){E.height=a.jqx._ptrnd(F+p+5);E.width=a.jqx._ptrnd(m);return E}},isSerieVisible:function(d,b,c){return this._isSerieVisible(d,b,c)},_isSerieVisible:function(f,b,d){while(this._itemsToggleState.length<f+1){this._itemsToggleState.push([])}var e=this._itemsToggleState[f];while(e.length<b+1){e.push(isNaN(d)?true:[])}var c=e[b];if(isNaN(d)){return c}if(!a.isArray(c)){e[b]=c=[]}while(c.length<d+1){c.push(true)}return c[d]},isGroupVisible:function(b){return this._isGroupVisible(b)},_isGroupVisible:function(e){var d=false;var c=this.seriesGroups[e].series;if(!c){return d}for(var b=0;b<c.length;b++){if(this._isSerieVisible(e,b)){d=true;break}}return d},_toggleSerie:function(h,b,e,c){var g=!this._isSerieVisible(h,b,e);if(c!=undefined){g=c}var i=this.seriesGroups[h];var f=i.series[b];this._raiseEvent("toggle",{state:g,seriesGroup:i,serie:f,elementIndex:e});if(isNaN(e)){this._itemsToggleState[h][b]=g}else{var d=this._itemsToggleState[h][b];if(!a.isArray(d)){d=[]}while(d.length<e){d.push(true)}d[e]=g}this._isToggleRefresh=true;this.update();this._isToggleRefresh=false},showSerie:function(d,b,c){this._toggleSerie(d,b,c,true)},hideSerie:function(d,b,c){this._toggleSerie(d,b,c,false)},_setLegendToggleHandler:function(j,c,h,e){var i=this.seriesGroups[j];var f=i.series[c];var b=f.enableSeriesToggle;if(b==undefined){b=i.enableSeriesToggle!=false}if(b){var d=this;this.renderer.addHandler(e,"click",function(g){d._toggleSerie(j,c,h)})}},_renderLegend:function(c,e){var o=this;var d=[];for(var v=0;v<o.seriesGroups.length;v++){var t=o.seriesGroups[v];if(t.showLegend==false){continue}for(var q=0;q<t.series.length;q++){var m=t.series[q];if(m.showLegend==false){continue}var u=o._getSerieSettings(v,q);var p;if(t.type=="pie"||t.type=="donut"){var k=o._getXAxis(v);var h=m.legendFormatSettings||t.legendFormatSettings||k.formatSettings||m.formatSettings||t.formatSettings;var n=m.legendFormatFunction||t.legendFormatFunction||k.formatFunction||m.formatFunction||t.formatFunction;var j=o._getDataLen(v);for(var r=0;r<j;r++){p=o._getDataValue(r,m.displayText,v);p=o._formatValue(p,h,n,v,q,r);var l=o._getColors(v,q,r);d.push({groupIndex:v,seriesIndex:q,itemIndex:r,text:p,css:m.displayTextClass,fillColor:l.fillColor,lineColor:l.lineColor,opacity:u.opacity})}continue}var h=m.legendFormatSettings||t.legendFormatSettings;var n=m.legendFormatFunction||t.legendFormatFunction;p=o._formatValue(m.displayText||m.dataField||"",h,n,v,q,NaN);var l=o._getSeriesColors(v,q);var f=this._get([m.legendFillColor,m.legendColor,l.fillColor]);var b=this._get([m.legendLineColor,m.legendColor,l.lineColor]);d.push({groupIndex:v,seriesIndex:q,text:p,css:m.displayTextClass,fillColor:f,lineColor:b,opacity:u.opacity})}}return o._renderChartLegend(d,c,e,(o.legendLayout&&o.legendLayout.flow=="vertical"))},_getInterval:function(d,c){if(!d){return c}var b=this._get([d.unitInterval,c]);if(!isNaN(d.step)){b=d.step*c}return b},_getOffsets:function(u,d,n,t,r,l,g,e,k){var s=this._getInterval(r[u],e);var m=[];if(u==""||(r[u].visible&&r[u].visible!="custom")){m=this._generateIntervalValues(t,s,e,g,k)}var f;if(u!="labels"){var j=g?l.left:0;if(!g&&e>1){j=l.left*(e+1)}if(m.length==1){j*=2}f=this._valuesToOffsets(m,d,t,n,l,false,j);if(!g){var o=(l.left+l.right)*s/e;if(d.flip){f.unshift(f[0]+o)}else{f.push(f[f.length-1]+o)}}}else{var j=l.left;if(m.length==1){j*=2}f=this._valuesToOffsets(m,d,t,n,l,g,j)}var q=this._arraysToObjectsArray([m,f],["value","offset"]);if(d[u]&&d[u].custom){var h=this._objectsArraysToArray(d[u].custom,"value");var c=this._objectsArraysToArray(d[u].custom,"offset");var b=this._valuesToOffsets(h,d,t,n,l,g,l.left);for(var p=0;p<d[u].custom.length;p++){q.push({value:h[p],offset:isNaN(c[p])?b[p]:c[p]})}}return q},_renderXAxis:function(d,z,R,c){var f=this;var r=f._getXAxis(d);var Q=f.seriesGroups[d];var X=Q.orientation=="horizontal";var H={width:0,height:0};var P=f._getAxisSettings(r);if(!r||!P.visible||Q.type=="spider"){return H}if(!f._isGroupVisible(d)||this._isPieGroup(d)){return H}var W=f._alignValuesWithTicks(d);while(f._renderData.length<d+1){f._renderData.push({})}if(f.rtl){r.flip=true}var B=X?z.height:z.width;var w=r.text;var t=f._calculateXOffsets(d,B);var T=t.axisStats;var j=r.rangeSelector;var F=0;if(j){if(!this._moduleRangeSelector){throw"Please include 'jqxchart.rangeselector.js'"}F=this._selectorGetSize(r)}var E=(X&&r.position=="right")||(!X&&r.position=="top");if(!R&&j){if(X){z.width-=F;if(r.position!="right"){z.x+=F}}else{z.height-=F;if(r.position=="top"){z.y+=F}}}var k={rangeLength:t.rangeLength,itemWidth:t.itemWidth,intervalWidth:t.intervalWidth,data:t,settings:P,isMirror:E,rect:z};f._renderData[d].xAxis=k;var G=T.interval;if(isNaN(G)){return H}if(X){P.title.angle-=90;P.labels.angle-=90}var m=this._getInterval(P.gridLines,G);var K=this._getInterval(P.tickMarks,G);var C=this._getInterval(P.labels,G);var L;var V=T.min;var s=T.max;var N=t.padding;var S=r.flip==true||f.rtl;var h={min:V,max:s};if(T.logAxis.enabled){h.min=T.logAxis.minPow;h.max=T.logAxis.maxPow}if(r.type=="date"){P.gridLines.offsets=this._generateDTOffsets(V,s,B,N,m,G,T.dateTimeUnit,W,NaN,false,S);P.tickMarks.offsets=this._generateDTOffsets(V,s,B,N,K,G,T.dateTimeUnit,W,NaN,false,S);L=this._generateDTOffsets(V,s,B,N,C,G,T.dateTimeUnit,W,NaN,true,S)}else{P.gridLines.offsets=this._getOffsets("gridLines",r,B,T,P,N,W,G);P.tickMarks.offsets=this._getOffsets("tickMarks",r,B,T,P,N,W,G);L=this._getOffsets("labels",r,B,T,P,N,W,G)}var n=f.renderer.getRect();var l=n.width-z.x-z.width;var p=f._getDataLen(d);var o;if(f._elementRenderInfo&&f._elementRenderInfo.length>d){o=f._elementRenderInfo[d].xAxis}var q=[];var J;if(P.labels.formatFunction){J=P.labels.formatFunction}var v;if(P.labels.formatSettings){v=a.extend({},P.labels.formatSettings)}if(r.type=="date"){if(r.dateFormat&&!J){if(v){v.dateFormat=v.dateFormat||r.dateFormat}else{v={dateFormat:r.dateFormat}}}else{if(!J&&(!v||(v&&!v.dateFormat))){J=this._getDefaultDTFormatFn(r.baseUnit||"day")}}}for(var O=0;O<L.length;O++){var M=L[O].value;var I=L[O].offset;if(isNaN(I)){continue}var U=undefined;if(r.type!="date"&&T.useIndeces&&r.dataField){U=Math.round(M);M=f._getDataValue(U,r.dataField);if(M==undefined){M=""}}var w=f._formatValue(M,v,J,d,undefined,U);if(w==undefined||w.toString()==""){if(isNaN(U)){U=O}if(U>=T.filterRange.min&&U<=T.filterRange.max){w=T.useIndeces?(T.min+U).toString():(M==undefined?"":M.toString())}}var b={key:M,text:w,targetX:I,x:I};if(o&&o.itemOffsets[M]){b.x=o.itemOffsets[M].x;b.y=o.itemOffsets[M].y}q.push(b)}var D=f._getAnimProps(d);var u=D.enabled&&q.length<500?D.duration:0;if(f.enableAxisTextAnimation==false){u=0}var A={items:q,renderData:k};var e=f._renderAxis(X,E,P,{x:z.x,y:z.y,width:z.width,height:z.height},c,G,false,true,A,R,u);if(X){e.width+=F}else{e.height+=F}return e},_animateAxisText:function(f,h){var c=f.items;var d=f.textSettings;for(var e=0;e<c.length;e++){var g=c[e];if(!g){continue}if(!g.visible){continue}var b=g.targetX;var j=g.targetY;if(!isNaN(g.x)&&!isNaN(g.y)){b=g.x+(b-g.x)*h;j=g.y+(j-g.y)*h}if(g.element){this.renderer.removeElement(g.element);g.element=undefined}g.element=this.renderer.text(g.text,b,j,g.width,g.height,d.angle,{"class":d.style},false,d.halign,d.valign,d.textRotationPoint)}},_getPolarAxisCoords:function(e,b){var i=this.seriesGroups[e];var p=b.x+a.jqx.getNum([i.offsetX,b.width/2]);var o=b.y+a.jqx.getNum([i.offsetY,b.height/2]);var k=Math.min(b.width,b.height);var f=i.radius;if(this._isPercent(f)){f=parseFloat(f)/100*k/2}if(isNaN(f)){f=k/2*0.6}var h=this._alignValuesWithTicks(e);var n=this._get([i.startAngle,i.minAngle,0])-90;if(isNaN(n)){n=0}else{n=2*Math.PI*n/360}var m=this._get([i.endAngle,i.maxAngle,360])-90;if(isNaN(m)){m=2*Math.PI}else{m=2*Math.PI*m/360}if(n>m){var l=n;n=m;m=l}var t=a.jqx._rnd(Math.abs(n-m)/(Math.PI*2),0.001,true);var q=Math.PI*2*f*t;var g=this._calcGroupOffsets(e,b).xoffsets;if(!g){return}var j=!(Math.abs(Math.abs(m-n)-Math.PI*2)>0.00001);if(i.spider){axisStats=this._getXAxisStats(e,this._getXAxis(e),q);var r=axisStats.interval;if(isNaN(r)||r==0){r=1}var d=(axisStats.max-axisStats.min)/r+(j?1:0);d=Math.round(d);if(d>2){var c=Math.cos(Math.abs(m-n)/2/d);c=a.jqx._rnd(c,0.01);if(c==0){c=1}var s=f/c;if(s>f&&h){f=s}}}f=a.jqx._ptrnd(f);return{x:p,y:o,r:f,adjR:this._get([s,f]),itemWidth:g.itemWidth,rangeLength:g.rangeLength,valuesOnTicks:h,startAngle:n,endAngle:m,isClosedCircle:j,axisSize:q}},_toPolarCoord:function(j,f,h,e){var c=Math.abs(j.startAngle-j.endAngle)/(Math.PI*2);var b=(h-f.x)*2*Math.PI*c/Math.max(1,f.width)+j.startAngle;var d=((f.height+f.y)-e)*j.r/Math.max(1,f.height);var i=j.x+d*Math.cos(b);var g=j.y+d*Math.sin(b);return{x:a.jqx._ptrnd(i),y:a.jqx._ptrnd(g)}},_renderSpiderAxis:function(A,k){var ap=this;var g=ap._getXAxis(A);var aB=this._getAxisSettings(g);if(!g||!aB.visible){return}var X=ap.seriesGroups[A];var S=ap._getPolarAxisCoords(A,k);if(!S){return}var M=a.jqx._ptrnd(S.x);var L=a.jqx._ptrnd(S.y);var t=S.adjR;var Y=S.startAngle;var W=S.endAngle;if(t<1){return}var aw=a.jqx._rnd(Math.abs(Y-W)/(Math.PI*2),0.001,true);var h=Math.PI*2*t*aw;var c=S.isClosedCircle;var w=this._renderData[A].xoffsets;if(!w.rangeLength){return}var T=w.axisStats.interval;if(isNaN(T)||T<1){T=1}var at=X.orientation=="horizontal";var aa=(at&&g.position=="right")||(!at&&g.position=="top");while(ap._renderData.length<A+1){ap._renderData.push({})}var au={rangeLength:w.rangeLength,itemWidth:w.itemWidth,data:w,rect:k,settings:aB};ap._renderData[A].xAxis=au;ap._renderData[A].polarCoords=S;var az=true;for(var R=0;R<A;R++){var B=ap._renderData[R].xAxis;var b=ap._renderData[R].polarCoords;var E=ap._getXAxis(R);var V=false;for(var P in S){if(S[P]!=b[P]){V=true;break}}if(!V||E!=g){az=false}}var e=aB.gridLines;var U=aB.tickMarks;var z=aB.labels;var ad=this._getInterval(e,T);var aE=this._getInterval(U,T);var an=this._getInterval(z,T);var H=ap._alignValuesWithTicks(A);var ae=ap.renderer;var ai;var af=w.axisStats;var aD=af.min;var r=af.max;var u=this._getPaddingSize(w.axisStats,g,H,h,true,c,false);var aj=g.flip==true||ap.rtl;if(g.type=="date"){e.offsets=this._generateDTOffsets(aD,r,h,u,ad,T,g.baseUnit,true,0,false,aj);U.offsets=this._generateDTOffsets(aD,r,h,u,aE,T,g.baseUnit,true,0,false,aj);ai=this._generateDTOffsets(aD,r,h,u,an,T,g.baseUnit,true,0,true,aj)}else{aB.gridLines.offsets=this._getOffsets("gridLines",g,h,af,aB,u,true,T);aB.tickMarks.offsets=this._getOffsets("tickMarks",g,h,af,aB,u,true,T);ai=this._getOffsets("labels",g,h,af,aB,u,true,T)}var ak=ap.renderer.getRect();var ax=ak.width-k.x-k.width;var ah=ap._getDataLen(A);var s;if(ap._elementRenderInfo&&ap._elementRenderInfo.length>A){s=ap._elementRenderInfo[A].xAxis}var ar=[];var ag=this._getDataLen(A);for(var R=0;R<ai.length;R++){var G=ai[R].offset;var I=ai[R].value;if(g.type!="date"&&af.useIndeces&&g.dataField){var ay=Math.round(I);if(ay>=ag){continue}I=ap._getDataValue(ay,g.dataField);if(I==undefined){I=""}}var aq=ap._formatValue(I,z.formatSettings,z.formatFunction,A,undefined,ay);if(aq==undefined||aq.toString()==""){aq=af.useIndeces?(af.min+R).toString():(I==undefined?"":I.toString())}var d={key:I,text:aq,targetX:G,x:G};if(s&&s.itemOffsets[I]){d.x=s.itemOffsets[I].x;d.y=s.itemOffsets[I].y}ar.push(d)}var aA={items:ar,renderData:au};var l={stroke:e.color,fill:"none","stroke-width":e.width,"stroke-dasharray":e.dashStyle||""};if(!X.spider){if(aw==1){ae.circle(M,L,t,l)}else{var F=-Y/Math.PI*180;var aF=-W/Math.PI*180;this.renderer.pieslice(M,L,0,t,Math.min(F,aF),Math.max(F,aF),undefined,l)}}var N=ar.length;var m=2*Math.PI/(N);var am=Y;var f,D;if(e.visible&&az){if(!H&&!c){e.offsets.unshift({offset:-u.right})}for(var R=0;R<e.offsets.length;R++){var n=e.offsets[R].offset;if(!H){if(c){n+=u.right/2}else{n+=u.right}}var C=am+n*2*Math.PI*aw/Math.max(1,h);if(C-W>0.01){continue}var q=a.jqx._ptrnd(M+t*Math.cos(C));var p=a.jqx._ptrnd(L+t*Math.sin(C));ae.line(M,L,q,p,l)}}if(U.visible&&az){var Q=5;var o={stroke:U.color,fill:"none","stroke-width":U.width,"stroke-dasharray":U.dashStyle||""};if(!H&&!c){U.offsets.unshift({offset:-u.right})}for(var R=0;R<U.offsets.length;R++){var n=U.offsets[R].offset;if(!H){if(c){n+=u.right/2}else{n+=u.right}}var C=am+n*2*Math.PI*aw/Math.max(1,h);if(C-W>0.01){continue}var ac={x:M+t*Math.cos(C),y:L+t*Math.sin(C)};var ab={x:M+(t+Q)*Math.cos(C),y:L+(t+Q)*Math.sin(C)};ae.line(a.jqx._ptrnd(ac.x),a.jqx._ptrnd(ac.y),a.jqx._ptrnd(ab.x),a.jqx._ptrnd(ab.y),o)}}var ao=[];if(X.spider){var v=[];if(g.type=="date"){v=this._generateDTOffsets(aD,r,h,u,T,T,g.baseUnit,true,0,false,aj)}else{v=this._getOffsets("",g,h,af,aB,u,true,T)}if(!H&&!c){v.unshift({offset:-u.right})}for(var R=0;R<v.length;R++){var n=v[R].offset;if(!H){if(c){n+=u.right/2}else{n+=u.right}}var C=am+n*2*Math.PI*aw/Math.max(1,h);if(C-W>0.01){continue}ao.push(C)}au.offsetAngles=ao}var Z=ap._renderSpiderValueAxis(A,k,(H?S.adjR:S.r),ao);if(!Z){Z=[]}if(X.spider){if(!H){for(var R=0;R<Z.length;R++){Z[R]=Z[R]*S.adjR/S.r}}Z.push(t);this._renderSpiderLines(M,L,Z,S,ao,l)}if(az&&z.visible){au.polarLabels=[];for(var R=0;R<ar.length;R++){var n=ar[R].x;var C=am+n*2*Math.PI*aw/Math.max(1,h);C=(360-C/(2*Math.PI)*360)%360;if(C<0){C=360+C}var al=ae.measureText(ar[R].text,0,{"class":aB.labels.style});var O=(H?S.adjR:S.r)+(U.visible?7:2);var av=aB.labels;var aC;if(av.autoRotate){var K=a.jqx._ptRotate(M-al.width/2,L-O-al.height,M,L,-C/180*Math.PI);var J=a.jqx._ptRotate(M+al.width/2,L-O,M,L,-C/180*Math.PI);al.width=Math.abs(K.x-J.x);al.height=Math.abs(K.y-J.y);aC={x:Math.min(K.x,J.x),y:Math.min(K.y,J.y)}}else{aC=this._adjustTextBoxPosition(M,L,al,O,C,false,false,false)}au.polarLabels.push({x:aC.x,y:aC.y,value:ar[R].text});ae.text(ar[R].text,aC.x,aC.y,al.width,al.height,av.autoRotate?90-C:av.angle,{"class":av.style},false,av.halign,av.valign)}}},_renderSpiderLines:function(h,f,u,m,e,b){var p=this.renderer;var q=m.startAngle;var o=m.endAngle;var g=m.isClosedCircle;for(var r=0;r<u.length;r++){var d=u[r];var c=undefined,n=undefined;for(var s=0;s<e.length;s++){var t=e[s];var l=a.jqx._ptrnd(h+d*Math.cos(t));var k=a.jqx._ptrnd(f+d*Math.sin(t));if(c){p.line(c.x,c.y,l,k,b)}c={x:l,y:k};if(!n){n={x:l,y:k}}}if(n&&g){p.line(c.x,c.y,n.x,n.y,b)}}},_renderSpiderValueAxis:function(e,D,T,S){var k=this;var u=this.seriesGroups[e];var E=this._getPolarAxisCoords(e,D);if(!E){return}var P=a.jqx._ptrnd(E.x);var O=a.jqx._ptrnd(E.y);T=T||E.r;var g=E.startAngle;var Z=E.endAngle;var X=a.jqx._rnd(Math.abs(g-Z)/(Math.PI*2),0.001,true);if(T<1){return}T=a.jqx._ptrnd(T);var f=this._getValueAxis(e);settings=this._getAxisSettings(f);if(!f||false==settings.visible){return}var L=this._stats.seriesGroups[e].mu;var A=settings.labels;var z=A.formatSettings;var c=u.type.indexOf("stacked")!=-1&&u.type.indexOf("100")!=-1;if(c&&!z){z={sufix:"%"}}var v=this._get([A.step,A.unitInterval/L]);if(isNaN(v)){v=1}v=Math.max(1,Math.round(v));this._calcValueAxisItems(e,T,v);var d=settings.gridLines;var B=settings.tickMarks;var r=this._getInterval(d,L);var Q=this._getInterval(B,L);var m=settings.labels;var l={stroke:d.color,fill:"none","stroke-width":1,"stroke-dasharray":d.dashStyle||""};var p=this._renderData[e].valueAxis;var w=p.items;var t=g;if(w.length&&settings.line.visible){if(!isNaN(settings.line.angle)){t=2*Math.PI*settings.line.angle/360}var o=P+Math.cos(t)*T;var ac=O+Math.sin(t)*T;if(S.indexOf(t)==-1){var V=a.extend({},l);V["stroke-width"]=settings.line.lineWidth;V.stroke=settings.line.color;V["stroke-dasharray"]=settings.line.dashStyle;this.renderer.line(P,O,o,ac,V)}}w=w.reverse();var I=this.renderer;p.polarLabels=[];for(var Y=0;Y<w.length-1;Y++){var R=w[Y];if(isNaN(R)){continue}var C=(m.formatFunction)?m.formatFunction(R):this._formatNumber(R,z);var h=I.measureText(C,0,{"class":m.style});var N=P+(f.showTickMarks!=false?3:2);var M=O-p.itemWidth*Y-h.height/2;var H=a.jqx._ptRotate(N,M,P,O,t);var G=a.jqx._ptRotate(N+h.width,M+h.height,P,O,t);N=Math.min(H.x,G.x);M=Math.min(H.y,G.y);h.width=Math.abs(H.x-G.x);h.height=Math.abs(H.y-G.y);N+=settings.labels.textOffset.x;M+=settings.labels.textOffset.y;p.polarLabels.push({x:N,y:M,value:C});I.text(C,N,M,h.width,h.height,m.autoRotate?(90+g*180/Math.PI):m.angle,{"class":m.style},false,m.halign,m.valign)}var q=f.logarithmicScale==true;var s=q?w.length:p.rangeLength;aIncrement=2*Math.PI/s;var ab=f.valuesOnTicks!=false;var K=this._stats.seriesGroups[e];var j=K.mu;var J=f.logarithmicScale==true;var F=f.logarithmicScaleBase||10;if(J){j=1}var aa={min:K.min,max:K.max,logAxis:{enabled:J==true,base:f.logarithmicScaleBase,minPow:K.minPow,maxPow:K.maxPow}};if(d.visible||u.spider||f.alternatingBackgroundColor||f.alternatingBackgroundColor2){d.offsets=this._getOffsets("gridLines",f,T,aa,settings,{left:0,right:0},ab,j)}var U=[];if(d.visible||u.spider){var l={stroke:d.color,fill:"none","stroke-width":1,"stroke-dasharray":d.dashStyle||""};for(var Y=0;Y<d.offsets.length;Y++){var M=a.jqx._ptrnd(d.offsets[Y].offset);if(M==T){continue}if(u.spider){U.push(M);continue}if(X!=1){var n=-g/Math.PI*180;var W=-Z/Math.PI*180;this.renderer.pieslice(P,O,0,M,Math.min(n,W),Math.max(n,W),undefined,l)}else{I.circle(P,O,M,l)}}}if(!f.tickMarks||(!f.tickMarks.visible&&!f.showTickMarks)){B.visible=false}if(B.visible){B.offsets=this._getOffsets("tickMarks",f,T,aa,settings,{left:0,right:0},ab,j);tickMarkSize=B.size*2;var l={stroke:B.color,fill:"none","stroke-width":1,"stroke-dasharray":B.dashStyle||""};for(var Y=0;Y<B.offsets.length;Y++){var b=B.offsets[Y].offset;var H={x:P+b*Math.cos(t)-tickMarkSize/2*Math.sin(t+Math.PI/2),y:O+b*Math.sin(t)-tickMarkSize/2*Math.cos(t+Math.PI/2)};var G={x:P+b*Math.cos(t)+tickMarkSize/2*Math.sin(t+Math.PI/2),y:O+b*Math.sin(t)+tickMarkSize/2*Math.cos(t+Math.PI/2)};I.line(a.jqx._ptrnd(H.x),a.jqx._ptrnd(H.y),a.jqx._ptrnd(G.x),a.jqx._ptrnd(G.y),l)}}return U},_renderAxis:function(H,D,Q,z,c,F,m,V,C,U,d){if(Q.customDraw&&!U){return{width:NaN,height:NaN}}var t=Q.title,n=Q.labels,e=Q.gridLines,A=Q.tickMarks,P=Q.padding;var o=A.visible?A.size:0;var R=2;var G={width:0,height:0};var q={width:0,height:0};if(H){G.height=q.height=z.height}else{G.width=q.width=z.width}if(!U&&D){if(H){z.x-=z.width}}var l=C.renderData;var b=l.itemWidth;if(t.visible&&t.text!=undefined&&t!=""){var p=t.angle;var f=this.renderer.measureText(t.text,p,{"class":t.style});q.width=f.width;q.height=f.height;if(!U){this.renderer.text(t.text,z.x+t.offset.x+(H?(!D?R+P.left:-P.right-R+2*z.width-q.width):0),z.y+t.offset.y+(!H?(!D?z.height-R-q.height-P.bottom:P.top+R):0),H?q.width:z.width,!H?q.height:z.height,p,{"class":t.style},true,t.halign,t.valign,t.rotationPoint)}}var L=0;var u=V?-b/2:0;if(V&&!H){n.halign="center"}var N=z.x;var M=z.y;var E=n.textOffset;if(E){if(!isNaN(E.x)){N+=E.x}if(!isNaN(E.y)){M+=E.y}}if(!H){N+=u;if(D){M+=q.height>0?q.height+3*R:2*R;M+=o-(V?o:o/4)}else{M+=V?o:o/4}M+=P.top}else{N+=P.left+R+(q.width>0?q.width+R:0)+(D?z.width-q.width:0);M+=u}var T=0;var K=0;var r=C.items;l.itemOffsets={};if(this._isToggleRefresh||!this._isUpdate){d=0}var k=false;var j=0;for(var S=0;S<r.length&&n.visible;S++,L+=b){if(!r[S]||isNaN(b)){continue}var v=r[S].text;if(!isNaN(r[S].targetX)){L=r[S].targetX}var f=this.renderer.measureText(v,n.angle,{"class":n.style});if(f.width>K){K=f.width}if(f.height>T){T=f.height}j+=H?T:K;if(!U){if((H&&L>z.height+2)||(!H&&L>z.width+2)){continue}var J=H?N+(D?(q.width==0?o:o-R):0):N+L;var I=H?M+L:M;l.itemOffsets[r[S].key]={x:J,y:I};if(!k){if(!isNaN(r[S].x)||!isNaN(r[S].y)&&d){k=true}}r[S].targetX=J;r[S].targetY=I;r[S].width=!H?b:z.width-P.left-P.right-2*R-o-((q.width>0)?q.width+R:0);r[S].height=H?b:z.height-P.top-P.bottom-2*R-o-((q.height>0)?q.height+R:0);r[S].visible=true}}l.avgWidth=r.length==0?0:j/r.length;if(!U){var s={items:r,textSettings:n};if(isNaN(d)||!k){d=0}this._animateAxisText(s,d==0?1:0);if(d!=0){var g=this;this._enqueueAnimation("series",undefined,undefined,d,function(i,h,w){g._animateAxisText(h,w)},s)}}G.width+=2*R+o+q.width+K+(H&&q.width>0?R:0);G.height+=2*R+o+q.height+T+(!H&&q.height>0?R:0);if(!H){G.height+=P.top+P.bottom}else{G.width+=P.left+P.right}var B={};if(!U&&Q.line.visible){var O={stroke:Q.line.color,"stroke-width":Q.line.width,"stroke-dasharray":Q.line.dashStyle||""};if(H){var J=z.x+z.width+(D?P.left:-P.right);J=a.jqx._ptrnd(J);this.renderer.line(J,z.y,J,z.y+z.height,O)}else{var I=a.jqx._ptrnd(z.y+(D?z.height-P.bottom:P.top));this.renderer.line(a.jqx._ptrnd(z.x),I,a.jqx._ptrnd(z.x+z.width+1),I,O)}}G.width=a.jqx._rup(G.width);G.height=a.jqx._rup(G.height);return G},_drawPlotAreaLines:function(j,z,f){var E=this.seriesGroups[j];var c=E.orientation!="horizontal";if(!this._renderData||this._renderData.length<=j){return}var I=z?"valueAxis":"xAxis";var v=this._renderData[j][I];if(!v){return}var n=this._renderData.axisDrawState;if(!n){n=this._renderData.axisDrawState={}}var A="",h;if(z){A="valueAxis_"+((E.valueAxis)?j:"")+(c?"swap":"");h=this._getValueAxis(j)}else{A="xAxis_"+((E.xAxis||E.categoryAxis)?j:"")+(c?"swap":"");h=this._getXAxis(j)}if(n[A]){n=n[A]}else{n=n[A]={}}if(!z){c=!c}var G=v.settings;if(!G){return}if(G.customDraw){return}var F=G.gridLines,q=G.tickMarks,u=G.padding;var e=v.rect;var l=this._plotRect;if(!F||!q){return}var p=0.5;var d={};var b={stroke:F.color,"stroke-width":F.width,"stroke-dasharray":F.dashStyle||""};var D=z?e.y+e.height:e.x;var o=F.offsets;if(z&&!h.flip){o=a.extend([],o);o=o.reverse()}if(o&&o.length>0){var k=NaN;var C=o.length;for(var B=0;B<o.length;B++){if(c){lineOffset=a.jqx._ptrnd(e.y+o[B].offset);if(lineOffset<e.y-p){lineOffset=a.jqx._ptrnd(e.y)}if(lineOffset>e.y+e.height){lineOffset=e.y+e.height}}else{lineOffset=a.jqx._ptrnd(e.x+o[B].offset);if(lineOffset>e.x+e.width+p){lineOffset=a.jqx._ptrnd(e.x+e.width)}}if(isNaN(lineOffset)){continue}if(!isNaN(k)&&Math.abs(lineOffset-k)<2){continue}k=lineOffset;if(f.gridLines&&F.visible!=false&&n.gridLines!=true){if(c){this.renderer.line(a.jqx._ptrnd(l.x),lineOffset,a.jqx._ptrnd(l.x+l.width),lineOffset,b)}else{this.renderer.line(lineOffset,a.jqx._ptrnd(l.y),lineOffset,a.jqx._ptrnd(l.y+l.height),b)}}d[lineOffset]=true;if(f.alternatingBackground&&(F.alternatingBackgroundColor||F.alternatingBackgroundColor2)&&n.alternatingBackground!=true){var m=((B%2)==0)?F.alternatingBackgroundColor2:F.alternatingBackgroundColor;if(B>0&&m){var H;if(c){H=this.renderer.rect(a.jqx._ptrnd(l.x),D,a.jqx._ptrnd(l.width-1),lineOffset-D,b)}else{H=this.renderer.rect(D,a.jqx._ptrnd(l.y),lineOffset-D,a.jqx._ptrnd(l.height),b)}this.renderer.attr(H,{"stroke-width":0,fill:m,opacity:F.alternatingBackgroundOpacity||1})}}D=lineOffset}}var b={stroke:q.color,"stroke-width":q.width,"stroke-dasharray":q.dashStyle||""};if(f.tickMarks&&q.visible&&n.tickMarks!=true){var t=q.size;var o=q.offsets;var k=NaN;for(var B=0;B<o.length;B++){if(c){lineOffset=a.jqx._ptrnd(e.y+o[B].offset);if(lineOffset<e.y-p){lineOffset=a.jqx._ptrnd(e.y)}if(lineOffset>e.y+e.height){lineOffset=e.y+e.height}}else{lineOffset=a.jqx._ptrnd(e.x+o[B].offset);if(lineOffset>e.x+e.width+p){lineOffset=a.jqx._ptrnd(e.x+e.width)}}if(isNaN(lineOffset)){continue}if(!isNaN(k)&&Math.abs(lineOffset-k)<2){continue}if(d[lineOffset-1]){lineOffset--}else{if(d[lineOffset+1]){lineOffset++}}if(c){if(lineOffset>e.y+e.height+p){break}}else{if(lineOffset>e.x+e.width+p){break}}k=lineOffset;var w=!v.isMirror?-t:t;if(c){var s=e.x+e.width+(h.position=="right"?u.left:-u.right);if(!z){s=e.x+(v.isMirror?u.left:-u.right+e.width)}this.renderer.line(s,lineOffset,s+w,lineOffset,b)}else{var r=e.y+(v.isMirror?e.height:0);r+=v.isMirror?-u.bottom:u.top;r=a.jqx._ptrnd(r);this.renderer.line(lineOffset,r,lineOffset,r-w,b)}}}n.tickMarks=n.tickMarks||f.tickMarks;n.gridLines=n.gridLines||f.gridLines;n.alternatingBackground=n.alternatingBackground||f.alternatingBackground},_calcValueAxisItems:function(j,d,l){var n=this._stats.seriesGroups[j];if(!n||!n.isValid){return false}var w=this.seriesGroups[j];var b=w.orientation=="horizontal";var f=this._getValueAxis(j);var m=f.valuesOnTicks!=false;var e=f.dataField;var o=n.intervals;var s=d/o;var u=n.min;var r=n.mu;var c=f.logarithmicScale==true;var k=f.logarithmicScaleBase||10;var h=w.type.indexOf("stacked")!=-1&&w.type.indexOf("100")!=-1;if(c){r=!isNaN(f.unitInterval)?f.unitInterval:1}if(!m){o=Math.max(o-1,1)}while(this._renderData.length<j+1){this._renderData.push({})}this._renderData[j].valueAxis={};var q=this._renderData[j].valueAxis;q.itemWidth=q.intervalWidth=s;q.items=[];var p=q.items;for(var v=0;v<=o;v++){var t=0;if(c){if(h){t=n.max/Math.pow(k,o-v)}else{t=u*Math.pow(k,v)}}else{t=m?u+v*r:u+(v+0.5)*r}if(v%l!=0){p.push(NaN);continue}p.push(t)}q.rangeLength=c&&!h?n.intervals:(n.intervals)*r;if(f.flip!=true){p=p.reverse()}return true},_getDecimalPlaces:function(b,g,c){var h=0;if(isNaN(c)){c=10}for(var f=0;f<b.length;f++){var k=g===undefined?b[f]:b[f][g];if(isNaN(k)){continue}var d=k.toString();for(var e=0;e<d.length;e++){if(d[e]<"0"||d[e]>"9"){h=d.length-(e+1);if(h>=0){return Math.min(h,c)}}}if(h>0){k*=Math.pow(10,h)}while(Math.round(k)!=k&&h<c){h++;k*=10}}return h},_renderValueAxis:function(f,z,M,e){var L=this.seriesGroups[f];var Q=L.orientation=="horizontal";var r=this._getValueAxis(f);if(!r){throw"SeriesGroup "+f+" is missing valueAxis definition"}var G={width:0,height:0};if(!this._isGroupVisible(f)||this._isPieOnlySeries()||L.type=="spider"){return G}var P=r.valuesOnTicks!=false;var H=this._stats.seriesGroups[f];var j=H.mu;var F=r.logarithmicScale==true;var C=r.logarithmicScaleBase||10;if(F){j=!isNaN(r.unitInterval)?r.unitInterval:1}if(j==0){j=1}if(isNaN(j)){return G}var J=this._getAxisSettings(r);var q=J.title,t=J.labels;var k=r.labels||{};var v=this._get([r.horizontalTextAlignment,k.horizontalAlignment]);if(!v&&t.angle==0){t.halign=Q?"center":(r.position=="right"?"left":"right")}var o=this._get([t.step,t.unitInterval/j]);if(isNaN(o)){o=1}o=Math.max(1,Math.round(o));if(!this._calcValueAxisItems(f,(Q?z.width:z.height),o)||!J.visible){return G}if(!Q){q.angle=(!this.rtl?-90:90);if(q.rotationPoint=="centercenter"){if(q.valign=="top"){q.rotationPoint="rightcenter"}else{if(q.valign=="bottom"){q.rotationPoint="leftcenter"}}}}var l=this._renderData[f].valueAxis;var h=t.formatSettings;var c=L.type.indexOf("stacked")!=-1&&L.type.indexOf("100")!=-1;if(c&&!h){h={sufix:"%"}}if(!t.formatFunction&&(!h||!h.decimalPlaces)){h=h||{};h.decimalPlaces=this._getDecimalPlaces([H.min,H.max,j],undefined,3)}var d=J.gridLines;var m=F?j:this._getInterval(d,j);var B=Q?z.width:z.height;var N=(r.flip==true);r.flip=!N;var O={min:H.min,max:H.max,logAxis:{enabled:F==true,base:C,minPow:H.minPow,maxPow:H.maxPow}};if(d.visible||r.alternatingBackgroundColor||r.alternatingBackgroundColor2){d.offsets=this._getOffsets("gridLines",r,B,O,J,{left:0,right:0},P,j)}var u=J.tickMarks;if(u.visible){u.offsets=this._getOffsets("tickMarks",r,B,O,J,{left:0,right:0},P,j)}labelOffsets=this._getOffsets("labels",r,B,O,J,{left:0,right:0},P,j,!P);r.flip=N;var p=[];var n;if(this._elementRenderInfo&&this._elementRenderInfo.length>f){n=this._elementRenderInfo[f].valueAxis}for(var K=0;K<labelOffsets.length;K++){var I=labelOffsets[K].value;if(isNaN(labelOffsets[K].offset)){p.push(undefined);continue}var w=(t.formatFunction)?t.formatFunction(I):(!isNaN(I))?this._formatNumber(I,h):I;var b={key:I,text:w};if(n&&n.itemOffsets[I]){b.x=n.itemOffsets[I].x;b.y=n.itemOffsets[I].y}b.targetX=labelOffsets[K].offset;if(!isNaN(b.targetX)){p.push(b)}}var E=(Q&&r.position=="top")||(!Q&&r.position=="right")||(!Q&&this.rtl&&r.position!="left");var A={items:p,renderData:l};var D=this._getAnimProps(f);var s=D.enabled&&p.length<500?D.duration:0;if(this.enableAxisTextAnimation==false){s=0}l.settings=J;l.isMirror=E;l.rect=z;return this._renderAxis(!Q,E,J,z,e,j,F,true,A,M,s)},_objectsArraysToArray:function(e,d){var b=[];if(!a.isArray(e)){return b}for(var c=0;c<e.length;c++){b.push(e[c][d])}return b},_arraysToObjectsArray:function(f,e){var c=[];if(f.length!=e.length){return c}for(var d=0;d<f.length;d++){for(var b=0;b<f[d].length;b++){if(c.length<=b){c.push({})}c[b][e[d]]=f[d][b]}}return c},_valuesToOffsets:function(p,e,l,q,o,f,c){var h=[];if(!e||!a.isArray(p)){return h}var d=l.logAxis.base;var m=l.logAxis.enabled?"logarithmic":"linear";var k=e.flip;var n=q;var b=0,g=0;if(o&&!isNaN(o.left)){b=o.left}if(o&&!isNaN(o.right)){g=o.right}n=q-b-g;q=n;for(var j=0;j<p.length;j++){x=this._jqxPlot.scale(p[j],{min:l.min.valueOf(),max:l.max.valueOf(),type:m,base:d},{min:0,max:f?q:n,flip:k},{});if(!isNaN(x)){if(!isNaN(c)){x+=c}if(x<=q+b+g+1){h.push(a.jqx._ptrnd(x))}else{h.push(NaN)}}else{h.push(NaN)}}return h},_generateIntervalValues:function(n,c,b,d,e){var j=[];var g=n.min;var m=n.max;if(n.logAxis&&n.logAxis.enabled){g=n.logAxis.minPow;m=n.logAxis.maxPow}if(g==undefined||m==undefined){return j}if(g==m){if(n.logAxis&&n.logAxis.enabled){return[Math.pow(n.logAxis.base,g)]}else{return[g]}}var l=1;if(b<1){l=1000000;g*=l;m*=l;b*=l}for(var h=g;h<=m;h+=b){j.push(h/l+(e?b/2:0))}if(c>b){var f=[];var k=Math.round(c/b);for(var h=0;h<j.length;h++){if((h%k)==0){f.push(j[h])}}j=f}if(n.logAxis&&n.logAxis.enabled){for(var h=0;h<j.length;h++){j[h]=Math.pow(n.logAxis.base,j[h])}}return j},_generateDTOffsets:function(p,s,z,n,A,c,o,b,u,v,g){if(!o){o="day"}var f=[];if(p>s){return f}if(p==s){if(v){f.push({offset:b?z/2:n.left,value:p})}else{if(b){f.push({offset:z/2,value:p})}}return f}var j=z-n.left-n.right;var w=p;var k=n.left;var e=k;c=Math.max(c,1);var m=c;var d=Math.min(1,c);if(c>1&&o!="millisecond"){c=1}while(a.jqx._ptrnd(e)<=a.jqx._ptrnd(n.left+j+(b?0:n.right))){f.push({offset:e,value:w});var B=new Date(w.valueOf());if(o=="millisecond"){B.setMilliseconds(w.getMilliseconds()+c)}else{if(o=="second"){B.setSeconds(w.getSeconds()+c)}else{if(o=="minute"){B.setMinutes(w.getMinutes()+c)}else{if(o=="hour"){var l=B.valueOf();B.setHours(w.getHours()+c);if(l==B.valueOf()){B.setHours(w.getHours()+c+1)}}else{if(o=="day"){B.setDate(w.getDate()+c)}else{if(o=="month"){B.setMonth(w.getMonth()+c)}else{if(o=="year"){B.setFullYear(w.getFullYear()+c)}}}}}}}w=B;e=k+(w.valueOf()-p.valueOf())*d/(s.valueOf()-p.valueOf())*j}if(g){for(var r=0;r<f.length;r++){f[r].offset=z-f[r].offset}}if(m>1&&o!="millisecond"){var q=[];for(var r=0;r<f.length;r+=m){q.push({offset:f[r].offset,value:f[r].value})}f=q}if(!b&&!v&&f.length>1){var q=[];q.push({offset:0,value:undefined});for(var r=1;r<f.length;r++){q.push({offset:f[r-1].offset+(f[r].offset-f[r-1].offset)/2,value:undefined})}var t=q.length;if(t>1){q.push({offset:q[t-1].offset+(q[t-1].offset-q[t-2].offset)})}else{q.push({offset:z,value:undefined})}f=q}if(A>c){var q=[];var h=Math.round(A/m);for(var r=0;r<f.length;r++){if((r%h)==0){q.push({offset:f[r].offset,value:f[r].value})}}f=q}return f},_hasStackValueReversal:function(e,s){var g=this.seriesGroups[e];var h=-1!=g.type.indexOf("stacked");if(!h){return false}var b=-1!=g.type.indexOf("waterfall");var q=this._getDataLen(e);var t=0;var l=false;var u=[];for(var o=0;o<g.series.length;o++){u[o]=this._isSerieVisible(e,o)}for(var p=0;p<q;p++){var m=(b&&p!=0)?t:s;var d=0,r=0;var c=undefined;if(!b){l=false}for(var n=0;n<g.series.length;n++){if(!u[n]){continue}val=this._getDataValueAsNumber(p,g.series[n].dataField,e);if(isNaN(val)){continue}if(g.series[n].summary){var f=this._getDataValue(p,g.series[n].summary,e);if(undefined!==f){continue}}var k=!l?val<s:val<0;l=true;if(c==undefined){c=k}if(k!=c){return true}c=k;t+=val}}return false},_getValueAxis:function(b){var c=b==undefined?this.valueAxis:this.seriesGroups[b].valueAxis||this.valueAxis;if(!c){c=this.valueAxis={}}return c},_buildStats:function(J){var W={seriesGroups:[]};this._stats=W;for(var s=0;s<this.seriesGroups.length;s++){var C=this.seriesGroups[s];W.seriesGroups[s]={};var F=this._getXAxis(s);var n=this._getValueAxis(s);var q=this._getXAxisStats(s,F,(C.orientation!="horizontal")?J.width:J.height);var z=W.seriesGroups[s];z.isValid=true;var K=(C.orientation=="horizontal")?J.width:J.height;var M=n.logarithmicScale==true;var L=n.logarithmicScaleBase;if(isNaN(L)){L=10}var G=-1!=C.type.indexOf("stacked");var e=G&&-1!=C.type.indexOf("100");var I=-1!=C.type.indexOf("range");var S=C.type.indexOf("waterfall")!=-1;if(S&&!this._moduleWaterfall){throw"Please include 'jqxchart.waterfall.js'"}if(e){z.psums=[];z.nsums=[]}var t=NaN,O=NaN;var d=NaN,f=NaN;var r=n?n.baselineValue:NaN;if(isNaN(r)){r=M&&!e?1:0}var g=false;if(r!=0&&G){g=this._hasStackValueReversal(s,r);if(g){r=0}}if(G&&S){g=this._hasStackValueReversal(s,r)}var B=this._getDataLen(s);var c=0;var X=NaN;var m=[];if(S){for(var k=0;k<C.series.length;k++){m.push(NaN)}}var v=NaN;for(var V=0;V<B&&z.isValid;V++){if(F.rangeSelector){var h=F.dataField?this._getDataValue(V,F.dataField,s):V;if(h&&q.isDateTime){h=this._castAsDate(h,F.dateFormat)}if(q.useIndeces){h=V}if(h&&(h.valueOf()<q.min.valueOf()||h.valueOf()>q.max.valueOf())){continue}}var Y=n.minValue;var E=n.maxValue;if(n.baselineValue){if(isNaN(Y)){Y=r}else{Y=Math.min(r,Y)}if(isNaN(E)){E=r}else{E=Math.max(r,E)}}var u=0,w=0;for(var k=0;C.series&&k<C.series.length;k++){if(!this._isSerieVisible(s,k)){continue}var H=NaN,R=NaN,A=NaN;if(C.type.indexOf("candle")!=-1||C.type.indexOf("ohlc")!=-1){var b=["Open","Low","Close","High"];for(var T in b){var l=this._getDataValueAsNumber(V,C.series[k]["dataField"+b[T]],s);if(isNaN(l)){continue}A=isNaN(R)?l:Math.min(A,l);R=isNaN(R)?l:Math.max(R,l)}}else{if(I){var Z=this._getDataValueAsNumber(V,C.series[k].dataFieldFrom,s);var D=this._getDataValueAsNumber(V,C.series[k].dataFieldTo,s);R=Math.max(Z,D);A=Math.min(Z,D)}else{H=this._getDataValueAsNumber(V,C.series[k].dataField,s);if(S){if(this._isSummary(s,V)){var U=this._getDataValue(V,C.series[k].summary,s);if(U!==undefined){continue}}if(!G){if(isNaN(m[k])){m[k]=H}else{H+=m[k]}m[k]=H}else{if(!isNaN(v)){H+=v}v=H}}if(isNaN(H)||(M&&H<=0)){continue}A=R=H}}if((isNaN(E)||R>E)&&((isNaN(n.maxValue))?true:R<=n.maxValue)){E=R}if((isNaN(Y)||A<Y)&&((isNaN(n.minValue))?true:A>=n.minValue)){Y=A}if(!isNaN(H)&&G&&!S){if(H>r){u+=H}else{if(H<r){w+=H}}}}if(!e){if(!isNaN(n.maxValue)){u=Math.min(n.maxValue,u)}if(!isNaN(n.minValue)){w=Math.max(n.minValue,w)}}if(M&&e){for(var k=0;k<C.series.length;k++){if(!this._isSerieVisible(s,k)){X=0.01;continue}var H=this._getDataValueAsNumber(V,C.series[k].dataField,s);if(isNaN(H)||H<=0){X=0.01;continue}var P=u==0?0:H/u;if(isNaN(X)||P<X){X=P}}}var o=u-w;if(c<o){c=o}if(e){z.psums[V]=u;z.nsums[V]=w}if(E>O||isNaN(O)){O=E}if(Y<t||isNaN(t)){t=Y}if(u>d||isNaN(d)){d=u}if(w<f||isNaN(f)){f=w}}if(e){d=d==0?0:Math.max(d,-f);f=f==0?0:Math.min(f,-d)}if(t==O){if(!isNaN(n.minValue)&&isNaN(n.maxValue)){t=n.minValue;O=M?t*L:t+1}else{if(isNaN(n.minValue)&&!isNaN(n.maxValue)){O=n.maxValue;t=M?O/L:O-1}}}if(t==O){if(t==0){t=-1;O=1}else{if(t<0){O=0}else{if(!M){t=0}else{if(t==1){t=t/L;O=O*L}}}}}var Q={gmin:t,gmax:O,gsumP:d,gsumN:f,gbase:r,isLogAxis:M,logBase:L,minPercent:X,gMaxRange:c,isStacked:G,isStacked100:e,isWaterfall:S,hasStackValueReversal:g,valueAxis:n,valueAxisSize:K};if(Q.isStacked){if(Q.gsumN<0){Q.gmin=Math.min(Q.gmin,Q.gbase+Q.gsumN)}if(Q.gsumP>0){Q.gmax=Math.max(Q.gmax,Q.gbase+Q.gsumP)}}z.context=Q}this._mergeCommonValueAxisStats();for(var V=0;V<W.seriesGroups.length;V++){var z=W.seriesGroups[V];if(!z.isValid){continue}var N=this._calcOutputGroupStats(z.context);for(var T in N){z[T]=N[T]}delete z.context}},_mergeCommonValueAxisStats:function(){var f={};for(var e=0;e<this.seriesGroups.length;e++){if(!this._isGroupVisible(e)){continue}if(this.seriesGroups[e].valueAxis){continue}var d=this._stats.seriesGroups[e].context;f.gbase=d.gbase;if(isNaN(f.gmin)||d.gmin<f.gmin){f.gmin=d.gmin}if(isNaN(f.gmax)||d.gmax>f.gmax){f.gmax=d.gmax}if(isNaN(f.gsumP)||d.gsumP>f.gsumP){f.gsumP=d.gsumP}if(isNaN(f.gsumN)||d.gsumN<f.gsumN){f.gsumN=d.gsumN}if(isNaN(f.logBase)||d.logBase<f.logBase){f.logBase=d.logBase}if(isNaN(f.minPercent)||d.minPercent<f.minPercent){f.minPercent=d.minPercent}if(f.gsumN>0){f.gmin=Math.min(f.gmin,f.gbase+f.gsumN)}if(f.gsumP>0){f.gmax=Math.max(f.gmax,f.gbase+f.gsumP)}}for(var e=0;e<this.seriesGroups.length;e++){if(this.seriesGroups[e].valueAxis){continue}var b=this._stats.seriesGroups[e].context;for(var c in f){b[c]=f[c]}}},_calcOutputGroupStats:function(g){var c=g.gmin,f=g.gmax,A=g.gsumP,B=g.gsumN,z=g.gbase,d=g.isLogAxis,j=g.logBase,t=g.minPercent,k=g.gMaxRange,l=g.isStacked,h=g.isStacked100,e=g.isWaterfall,n=g.hasStackValueReversal,w=g.valueAxis,u=g.valueAxisSize;var s=g.valueAxis.unitInterval;if(!s){s=this._calcInterval(c,f,Math.max(u/80,2))}if(c==f){c=z;f=2*f}var i=NaN;var b=0;var q=0;if(d){if(h){i=0;var r=1;b=q=a.jqx.log(100,j);while(r>t){r/=j;b--;i++}c=Math.pow(j,b)}else{if(l&&!e){f=Math.max(f,A)}q=a.jqx._rnd(a.jqx.log(f,j),1,true);f=Math.pow(j,q);b=a.jqx._rnd(a.jqx.log(c,j),1,false);c=Math.pow(j,b)}s=j}if(c<B){B=c}if(f>A){A=f}var v=c;var o=f;if(!d){if(0!=Math.abs(o-v)%s){v=a.jqx._rnd(c,s,false);o=a.jqx._rnd(f,s,true)}}if(h&&o>100){o=100}if(h&&!d){o=(o>0)?100:0;v=(v<0)?-100:0;s=w.unitInterval;if(isNaN(s)||s<=0||s>=100){s=10}if((100%s)!=0){for(;s>=1;s--){if((100%s)==0){break}}}}if(isNaN(o)||isNaN(v)||isNaN(s)){return{}}if(isNaN(i)){i=parseInt(((o-v)/(s==0?1:s)).toFixed())}if(d&&!h){i=q-b;k=Math.pow(j,i)}if(i<1){return{}}var m={min:v,max:o,logarithmic:d,logBase:j,base:d?v:z,minPow:b,maxPow:q,sumP:A,sumN:B,mu:s,maxRange:k,intervals:i,hasStackValueReversal:n};return m},_getDataLen:function(c){var b=this.source;if(c!=undefined&&c!=-1&&this.seriesGroups[c].source){b=this.seriesGroups[c].source}if(b instanceof a.jqx.dataAdapter){b=b.records}if(b){return b.length}return 0},_getDataValue:function(b,e,d){var c=this.source;if(d!=undefined&&d!=-1){c=this.seriesGroups[d].source||c}if(c instanceof a.jqx.dataAdapter){c=c.records}if(!c||b<0||b>c.length-1){return undefined}if(a.isFunction(e)){return e(b,c)}return(e&&e!="")?c[b][e]:c[b]},_getDataValueAsNumber:function(b,e,c){var d=this._getDataValue(b,e,c);if(this._isDate(d)){return d.valueOf()}if(typeof(d)!="number"){d=parseFloat(d)}if(typeof(d)!="number"){d=undefined}return d},_isPieGroup:function(b){var c=this.seriesGroups[b];if(!c||!c.type){return false}return c.type.indexOf("pie")!=-1||c.type.indexOf("donut")!=-1},_renderPieSeries:function(e,c){var f=this._getDataLen(e);var g=this.seriesGroups[e];var m=this._calcGroupOffsets(e,c).offsets;for(var p=0;p<g.series.length;p++){var k=g.series[p];if(k.customDraw){continue}var v=this._getSerieSettings(e,p);var h=k.colorScheme||g.colorScheme||this.colorScheme;var r=this._getAnimProps(e,p);var b=r.enabled&&f<5000&&!this._isToggleRefresh&&this._isVML!=true?r.duration:0;if(a.jqx.mobile.isMobileBrowser()&&(this.renderer instanceof a.jqx.HTML5Renderer)){b=0}var t=this._get([k.minAngle,k.startAngle]);if(isNaN(t)||t<0||t>360){t=0}var z=this._get([k.maxAngle,k.endAngle]);if(isNaN(z)||z<0||z>360){z=360}var o={rect:c,minAngle:t,maxAngle:z,groupIndex:e,serieIndex:p,settings:v,items:[]};for(var u=0;u<f;u++){var n=m[p][u];if(!n.visible){continue}var q=n.fromAngle;var d=n.toAngle;var w=this.renderer.pieslice(n.x,n.y,n.innerRadius,n.outerRadius,q,b==0?d:q,n.centerOffset);this._setRenderInfo(e,p,u,{element:w});var j={displayValue:n.displayValue,itemIndex:u,visible:n.visible,x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:n.outerRadius,fromAngle:q,toAngle:d,centerOffset:n.centerOffset};o.items.push(j)}this._animatePieSlices(o,0);var l=this;this._enqueueAnimation("series",undefined,undefined,b,function(s,i,A){l._animatePieSlices(i,A)},o)}},_sliceSortFunction:function(d,c){return d.fromAngle-c.fromAngle},_animatePieSlices:function(o,c){var j;if(this._elementRenderInfo&&this._elementRenderInfo.length>o.groupIndex&&this._elementRenderInfo[o.groupIndex].series&&this._elementRenderInfo[o.groupIndex].series.length>o.serieIndex){j=this._elementRenderInfo[o.groupIndex].series[o.serieIndex]}var f=360*c;var u=this.seriesGroups[o.groupIndex];var n=this._getLabelsSettings(o.groupIndex,o.serieIndex,NaN);var m=n.visible;var b=[];for(var t=0;t<o.items.length;t++){var w=o.items[t];if(!w.visible){continue}var p=w.fromAngle;var e=w.fromAngle+c*(w.toAngle-w.fromAngle);if(j&&j[w.displayValue]){var l=j[w.displayValue].fromAngle;var d=j[w.displayValue].toAngle;p=l+(p-l)*c;e=d+(e-d)*c}b.push({index:t,from:p,to:e})}if(j){b.sort(this._sliceSortFunction)}var z=NaN;for(var t=0;t<b.length;t++){var w=o.items[b[t].index];var q=this._getRenderInfo(o.groupIndex,o.serieIndex,w.itemIndex);var p=b[t].from;var e=b[t].to;if(j){if(!isNaN(z)&&p>z){p=z}z=e;if(t==b.length-1&&e!=b[0].from){e=o.maxAngle+b[0].from}}var r=this.renderer.pieSlicePath(w.x,w.y,w.innerRadius,w.outerRadius,p,e,w.centerOffset);this.renderer.attr(q.element,{d:r});var h=this._getColors(o.groupIndex,o.serieIndex,w.itemIndex,"radialGradient",w.outerRadius);var v=o.settings;q.colors=h;q.settings=v;this.renderer.attr(q.element,{fill:h.fillColor,stroke:h.lineColor,"stroke-width":v.stroke,"fill-opacity":v.opacity,"stroke-opacity":v.opacity,"stroke-dasharray":"none"||v.dashStyle});var k=u.series[o.serieIndex];if(m){this._showPieLabel(o.groupIndex,o.serieIndex,w.itemIndex,n)}if(c==1){this._installHandlers(q.element,"pieslice",o.groupIndex,o.serieIndex,w.itemIndex)}}},_showPieLabel:function(e,f,C,p,h){var k=this._renderData[e].offsets[f][C];if(k.elementInfo.labelElement){this.renderer.removeElement(k.elementInfo.labelElement)}if(!p){p=this._getLabelsSettings(e,f,NaN)}if(!p.visible){return}var D=k.fromAngle,F=k.toAngle;var l=Math.abs(D-F);var q=l>180?1:0;if(l>360){D=0;F=360}var r=D*Math.PI*2/360;var i=F*Math.PI*2/360;var j=l/2+D;j=j%360;var E=j*Math.PI*2/360;var v;if(p.autoRotate==true){v=j<90||j>270?360-j:180-j}var u=p.linesEnabled;var o=this._showLabel(e,f,C,{x:0,y:0,width:0,height:0},"center","center",true,false,false,v);var d=p.radius||k.outerRadius+Math.max(o.width,o.height);if(this._isPercent(d)){d=parseFloat(d)/100*Math.min(this._plotRect.width,this._plotRect.height)/2}d+=k.centerOffset;if(isNaN(h)){h=0}d+=h;var z=this.seriesGroups[e];var n=z.series[f];var B=a.jqx.getNum([n.offsetX,z.offsetX,this._plotRect.width/2]);var A=a.jqx.getNum([n.offsetY,z.offsetY,this._plotRect.height/2]);var c=this._plotRect.x+B;var b=this._plotRect.y+A;var w=this._adjustTextBoxPosition(c,b,o,d,j,k.outerRadius>d,p.linesAngles!=false,p.autoRotate==true);var m={};k.elementInfo.labelElement=this._showLabel(e,f,C,{x:w.x,y:w.y,width:o.width,height:o.height},"left","top",false,false,false,v,m);if(d>k.outerRadius+5&&u!=false){var t={lineColor:k.elementInfo.colors.lineColor,stroke:k.elementInfo.settings.stroke,opacity:k.elementInfo.settings.opacity,dashStyle:k.elementInfo.settings.dashStyle};k.elementInfo.labelArrowPath=this._updateLebelArrowPath(k.elementInfo.labelArrowPath,c,b,d,k.outerRadius+h,E,p.linesAngles!=false,t,m)}},_updateLebelArrowPath:function(d,j,f,h,l,g,o,e,r){var c=a.jqx._ptrnd(j+(h-0)*Math.cos(g));var n=a.jqx._ptrnd(f-(h-0)*Math.sin(g));var b=a.jqx._ptrnd(j+(l+2)*Math.cos(g));var m=a.jqx._ptrnd(f-(l+2)*Math.sin(g));var p=[];p.push({x:r.x+r.width/2,y:r.y});p.push({x:r.x+r.width/2,y:r.y+r.height});p.push({x:r.x,y:r.y+r.height/2});p.push({x:r.x+r.width,y:r.y+r.height/2});if(!o){p.push({x:r.x,y:r.y});p.push({x:r.x+r.width,y:r.y});p.push({x:r.x+r.width,y:r.y+r.height});p.push({x:r.x,y:r.y+r.height})}p=p.sort(function(s,i){return a.jqx._ptdist(s.x,s.y,j,f)-a.jqx._ptdist(i.x,i.y,j,f)});p=p.sort(function(s,i){return(Math.abs(s.x-j)+Math.abs(s.y-f))-(Math.abs(i.x-j)+Math.abs(i.y-f))});for(var k=0;k<p.length;k++){p[k].x=a.jqx._ptrnd(p[k].x);p[k].y=a.jqx._ptrnd(p[k].y)}c=p[0].x;n=p[0].y;var q="M "+c+","+n+" L"+b+","+m;if(o){q="M "+c+","+n+" L"+b+","+n+" L"+b+","+m}if(d){this.renderer.attr(d,{d:q})}else{d=this.renderer.path(q,{})}this.renderer.attr(d,{fill:"none",stroke:e.lineColor,"stroke-width":e.stroke,"stroke-opacity":e.opacity,"stroke-dasharray":"none"||e.dashStyle});return d},_adjustTextBoxPosition:function(f,e,n,g,s,c,i,o){var d=s*Math.PI*2/360;var k=a.jqx._ptrnd(f+g*Math.cos(d));var j=a.jqx._ptrnd(e-g*Math.sin(d));if(o){var l=n.width;var p=n.height;var t=Math.atan(p/l)%(Math.PI*2);var u=d%(Math.PI*2);var r=0,q=0;var m=0;if(u<=t){m=l/2*Math.cos(d)}else{if(u>=t&&u<Math.PI-t){m=(p/2)*Math.sin(d)}else{if(u>=Math.PI-t&&u<Math.PI+t){m=l/2*Math.cos(d)}else{if(u>=Math.PI+t&&u<2*Math.PI-t){m=p/2*Math.sin(d)}else{if(u>=2*Math.PI-t&&u<2*Math.PI){m=l/2*Math.cos(d)}}}}}g+=Math.abs(m)+3;var k=a.jqx._ptrnd(f+g*Math.cos(d));var j=a.jqx._ptrnd(e-g*Math.sin(d));k-=n.width/2;j-=n.height/2;return{x:k,y:j}}if(!c){if(!i){if(s>=0&&s<45||s>=315&&s<360){j-=n.height/2}else{if(s>=45&&s<135){j-=n.height;k-=n.width/2}else{if(s>=135&&s<225){j-=n.height/2;k-=n.width}else{if(s>=225&&s<315){k-=n.width/2}}}}}else{if(s>=90&&s<270){j-=n.height/2;k-=n.width}else{j-=n.height/2}}}else{k-=n.width/2;j-=n.height/2}return{x:k,y:j}},_isColumnType:function(b){return(b.indexOf("column")!=-1||b.indexOf("waterfall")!=-1)},_getColumnGroupsCount:function(c){var e=0;c=c||"vertical";var f=this.seriesGroups;for(var d=0;d<f.length;d++){var b=f[d].orientation||"vertical";if(this._isColumnType(f[d].type)&&b==c){e++}}if(this.columnSeriesOverlap){e=1}return e},_getColumnGroupIndex:function(g){var b=0;var c=this.seriesGroups[g].orientation||"vertical";for(var e=0;e<g;e++){var f=this.seriesGroups[e];var d=f.orientation||"vertical";if(this._isColumnType(f.type)&&d==c){b++}}return b},_renderAxisBands:function(e,C,K){var z=K?this._getXAxis(e):this._getValueAxis(e);var t=this.seriesGroups[e];var v=K?undefined:t.bands;if(!v){for(var P=0;P<e;P++){var n=K?this._getXAxis(P):this._getValueAxis(P);if(n==z){return}}v=z.bands}if(!a.isArray(v)){return}var o=C;var V=t.orientation=="horizontal";if(V){o={x:C.y,y:C.x,width:C.height,height:C.width}}this._calcGroupOffsets(e,o);for(var P=0;P<v.length;P++){var c=v[P];var T=this._get([c.minValue,c.from]);var w=this._get([c.maxValue,c.to]);var s=K?this.getXAxisDataPointOffset(T,e):this.getValueAxisDataPointOffset(T,e);var U=K?this.getXAxisDataPointOffset(w,e):this.getValueAxisDataPointOffset(w,e);if(isNaN(s)||isNaN(U)){continue}var A=Math.abs(s-U);var J;if(t.polar||t.spider){var r=this._renderData[e];var d=r.polarCoords;if(!K){var F=this._toPolarCoord(d,C,C.x,r.baseOffset);var E=this._toPolarCoord(d,C,C.x,s);var D=this._toPolarCoord(d,C,C.x,U);var q=a.jqx._ptdist(F.x,F.y,E.x,E.y);var p=a.jqx._ptdist(F.x,F.y,D.x,D.y);var h=Math.round(-d.startAngle*360/(2*Math.PI));var Q=Math.round(-d.endAngle*360/(2*Math.PI));if(h>Q){var I=h;h=Q;Q=I}if(t.spider){var G=r.xAxis.offsetAngles;var H="";var M=[p,q];var B=G;if(d.isClosedCircle){B=a.extend([],G);B.push(B[0])}for(var L in M){for(var N=0;N<B.length;N++){var S=L==0?N:G.length-N-1;var l=d.x+M[L]*Math.cos(B[S]);var g=d.y+M[L]*Math.sin(B[S]);if(H==""){H+="M "}else{H+=" L"}H+=a.jqx._ptrnd(l)+","+a.jqx._ptrnd(g)}if(L==0){var l=d.x+M[1]*Math.cos(B[S]);var g=d.y+M[1]*Math.sin(B[S]);H+=" L"+a.jqx._ptrnd(l)+","+a.jqx._ptrnd(g)}}H+=" Z";J=this.renderer.path(H)}else{J=this.renderer.pieslice(d.x,d.y,q,p,h,Q)}}else{if(t.spider){p1=this.getPolarDataPointOffset(T,this._stats.seriesGroups[e].max,e);p2=this.getPolarDataPointOffset(w,this._stats.seriesGroups[e].max,e);var H="M "+d.x+","+d.y;H+=" L "+p1.x+","+p1.y;H+=" L "+p2.x+","+p2.y;J=this.renderer.path(H)}else{var f={};var m={x:Math.min(s,U),y:C.y,width:A,height:C.height};this._columnAsPieSlice(f,C,d,m);J=f.element}}}else{var b={x:Math.min(s,U),y:o.y,width:A,height:o.height};if(!K){b={x:o.x,y:Math.min(s,U),width:o.width,height:A}}if(V){var I=b.x;b.x=b.y;b.y=I;I=b.width;b.width=b.height;b.height=I}if(A==0||A==1){J=this.renderer.line(a.jqx._ptrnd(b.x),a.jqx._ptrnd(b.y),a.jqx._ptrnd(b.x+(V?0:b.width)),a.jqx._ptrnd(b.y+(V?b.height:0)))}else{J=this.renderer.rect(b.x,b.y,b.width,b.height)}}var W=c.fillColor||c.color||"#AAAAAA";var R=c.lineColor||W;var u=c.lineWidth;if(isNaN(u)){u=1}var O=c.opacity;if(isNaN(O)||O<0||O>1){O=1}this.renderer.attr(J,{fill:W,"fill-opacity":O,stroke:R,"stroke-opacity":O,"stroke-width":u,"stroke-dasharray":c.dashStyle})}},_getColumnGroupWidth:function(m,h,o){var e=this.seriesGroups[m];var l=e.type.indexOf("stacked")!=-1;var d=l?1:e.series.length;var k=this._getColumnGroupsCount(e.orientation);if(isNaN(k)||0==k){k=1}var n=h.rangeLength>=1?h.itemWidth:o*0.9;var c=e.columnsMinWidth;if(isNaN(c)){c=1}if(!isNaN(e.columnsMaxWidth)){c=Math.min(e.columnsMaxWidth,c)}if(c>n&&h.length>0){n=Math.max(n,o*0.9/h.length)}var i=c;if(!l){var f=e.seriesGapPercent;if(isNaN(f)||f<0){f=10}f/=100;var b=c;b*=(1+f);i+=e.series.length*b}var j=Math.max(n/k,i);return{requiredWidth:i,availableWidth:n,targetWidth:j}},_getColumnSerieWidthAndOffset:function(d,e){var m=this.seriesGroups[d];var u=m.series[e];var c=m.orientation=="horizontal";var b=this._plotRect;if(c){b={x:b.y,y:b.x,width:b.height,height:b.width}}var v=this._calcGroupOffsets(d,b);if(!v||v.xoffsets.length==0){return}var l=true;var w=this._getColumnGroupsCount(m.orientation);if(m.type=="candlestick"||m.type=="ohlc"){w=1}var q=this._getColumnGroupIndex(d);var r=this._getColumnGroupWidth(d,v.xoffsets,c?b.height:b.width);var h=0;var f=r.targetWidth;if(this.columnSeriesOverlap==true||(Math.round(f)>Math.round(r.availableWidth/w))){w=1;q=0}if(l){h-=(f*w)/2}h+=f*q;var D=m.columnsGapPercent;if(D<=0){D=0}if(isNaN(D)||D>=100){D=25}D/=100;var k=f*D;if(k+r.requiredWidth>r.targetWidth){k=Math.max(0,r.targetWidth-r.requiredWidth)}if(Math.round(f)>Math.round(r.availableWidth)){k=0}f-=k;h+=k/2;var z=m.seriesGapPercent;if(isNaN(z)||z<0){z=10}var n=m.type.indexOf("stacked")!=-1;var t=f;if(!n){t/=m.series.length}var A=this._get([m.seriesGap,(f*z/100)/(m.series.length-1)]);if(m.polar==true||m.spider==true||n||m.series.length<=1){A=0}var o=A*(m.series.length-1);if(m.series.length>1&&o>f-m.series.length*1){o=f-m.series.length*1;A=o/Math.max(1,(m.series.length-1))}var g=t-(o/m.series.length);var C=0;var i=m.columnsMaxWidth;if(!isNaN(i)){if(g>i){C=g-i;g=i}}var B=C/2;var j=0;if(!n){var E=(f-(g*m.series.length)-o)/2;var p=Math.max(0,e);j=E+g*e+p*A}else{j=C/2}return{width:g,offset:h+j}},_renderColumnSeries:function(f,c){var j=this.seriesGroups[f];if(!j.series||j.series.length==0){return}var h=this._getDataLen(f);var e=j.orientation=="horizontal";var A=c;if(e){A={x:c.y,y:c.x,width:c.height,height:c.width}}var p=this._calcGroupOffsets(f,A);if(!p||p.xoffsets.length==0){return}var m;if(j.polar==true||j.spider==true){m=this._getPolarAxisCoords(f,A)}var r={groupIndex:f,rect:c,vertical:!e,seriesCtx:[],renderData:p,polarAxisCoords:m};r.columnGroupWidth=this._getColumnGroupWidth(f,p.xoffsets,e?A.height:A.width);var g=this._getGroupGradientType(f);for(var t=0;t<j.series.length;t++){var n=j.series[t];if(n.customDraw){continue}var w=n.dataField;var u=this._getAnimProps(f,t);var b=u.enabled&&!this._isToggleRefresh&&p.xoffsets.length<100?u.duration:0;var k=this._getColumnSerieWidthAndOffset(f,t);var q=this._isSerieVisible(f,t);var l=this._getSerieSettings(f,t);var B=this._getColors(f,t,NaN,this._getGroupGradientType(f),4);var d=[];if(a.isFunction(n.colorFunction)&&!m){for(var z=p.xoffsets.first;z<=p.xoffsets.last;z++){d.push(this._getColors(f,t,z,g,4))}}var v={seriesIndex:t,serieColors:B,itemsColors:d,settings:l,columnWidth:k.width,xAdjust:k.offset,isVisible:q};r.seriesCtx.push(v)}this._animColumns(r,b==0?1:0);var o=this;this._enqueueAnimation("series",undefined,undefined,b,function(s,i,C){o._animColumns(i,C)},r)},_getPercent:function(d,c,b,e){if(isNaN(d)){d=c}if(!isNaN(b)&&!isNaN(d)&&d<b){d=b}if(!isNaN(e)&&!isNaN(d)&&d>e){d=e}if(isNaN(d)){return NaN}return d},_getColumnVOffsets:function(n,j,e,D,u,c){var p=this.seriesGroups[j];var H=this._getPercent(p.columnsTopWidthPercent,100,0,100);var v=this._getPercent(p.columnsBottomWidthPercent,100,0,100);if(H==0&&v==0){v=100}var J=this._getPercent(p.columnsNeckHeightPercent,NaN,0,100)/100;var E=this._getPercent(p.columnsNeckWidthPercent,100,0,100)/100;var r=[];var I=NaN;for(var q=0;q<e.length;q++){var N=e[q];var k=N.seriesIndex;var G=p.series[k];var o=n.offsets[k][D].from;var P=n.offsets[k][D].to;var z=n.xoffsets.data[D];var g;var h=N.isVisible;if(!h){P=o}var b=this._elementRenderInfo;if(h&&b&&b.length>j&&b[j].series.length>k){var F=n.xoffsets.xvalues[D];g=b[j].series[k][F];if(g&&!isNaN(g.from)&&!isNaN(g.to)){o=g.from+(o-g.from)*c;P=g.to+(P-g.to)*c;z=g.xoffset+(z-g.xoffset)*c}}if(!g){P=o+(P-o)*(u?1:c)}if(isNaN(o)){o=isNaN(I)?n.baseOffset:I}if(!isNaN(P)&&u){I=P}else{I=o}if(isNaN(P)){P=o}var C={from:o,to:P,xOffset:z};if(H!=100||v!=100){C.funnel=true;C.toWidthPercent=H;C.fromWidthPercent=v}r.push(C)}if(u&&r.length>1&&!(this._elementRenderInfo&&this._elementRenderInfo.length>j)){var l=0,m=0,K=-Infinity,w=Infinity,L=Infinity,B=-Infinity;for(var M=0;M<r.length;M++){var N=e[M];if(N.isVisible){if(r[M].to>=r[M].from){m+=r[M].to-r[M].from;L=Math.min(L,r[M].from);B=Math.max(B,r[M].to)}else{l+=r[M].from-r[M].to;K=Math.max(K,r[M].from);w=Math.min(w,r[M].to)}}}var O=l;var t=m;l*=c;m*=c;var d=0,f=0;for(var M=0;M<r.length;M++){if(r[M].to>=r[M].from){var A=r[M].to-r[M].from;if(A+f>m){A=Math.max(0,m-f);r[M].to=r[M].from+A}if(H!=100||v!=100){r[M].funnel=true;if(!isNaN(J)&&t*J>=f){r[M].fromWidthPercent=E*100}else{r[M].fromWidthPercent=(Math.abs(r[M].from-L)/t)*(H-v)+v}if(!isNaN(J)&&t*J>=(0+(f+A))){r[M].toWidthPercent=E*100}else{r[M].toWidthPercent=(Math.abs(r[M].to-L)/t)*(H-v)+v}}f+=A}else{var A=r[M].from-r[M].to;if(A+d>l){A=Math.max(0,l-d);r[M].to=r[M].from-A}if(H!=100||v!=100){r[M].funnel=true;if(!isNaN(J)&&O*J>=d){r[M].fromWidthPercent=E*100}else{r[M].fromWidthPercent=(Math.abs(r[M].from-K)/O)*(H-v)+v}if(!isNaN(J)&&O*J>=(0+(d+A))){r[M].toWidthPercent=E*100}else{r[M].toWidthPercent=(Math.abs(r[M].to-K)/O)*(H-v)+v}}d+=A}}}return r},_columnAsPieSlice:function(d,k,m,o){var e=this._toPolarCoord(m,k,o.x,o.y);var f=this._toPolarCoord(m,k,o.x,o.y+o.height);var l=a.jqx._ptdist(m.x,m.y,f.x,f.y);var i=a.jqx._ptdist(m.x,m.y,e.x,e.y);var c=k.width;var n=Math.abs(m.startAngle-m.endAngle)*180/Math.PI;var b=-((o.x-k.x)*n)/c;var h=-((o.x+o.width-k.x)*n)/c;var j=m.startAngle;j=360*j/(Math.