-
Notifications
You must be signed in to change notification settings - Fork 45
/
zingchart-nodejs.min.js
10 lines (8 loc) · 559 KB
/
zingchart-nodejs.min.js
1
2
3
4
5
6
7
8
9
10
/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email at support@zingchart.com.
Build 2.9.15
*/
ZC={AV:function(e,i){if(e.indexOf)return e.indexOf(i);for(var n=0,t=e.length;n<t;n++)if(e[n]===i)return n;return-1},VERSION:"2.9.15",VERSIONID:"2.9.15.2024.09.10",LICENSEKEY:"",ABX:!1,CHARTS:["null","null3d","line","line3d","vline","area","area3d","varea","bar","bar3d","vbar","vbar3d","hbar","hbar3d","scatter","hscatter","bubble","hbubble","pie","pie3d","ring","ring3d","nestedpie","mixed","mixed3d","hmixed","radar","bullet","vbullet","hbullet","funnel","vfunnel","hfunnel","piano","heatmap","stock","range","vrange","gauge","venn"],EQUIV:{floatbar:["vfloatbar","hfloatbar"],boxplot:["vboxplot","hboxplot"],waterfall:["vwaterfall","hwaterfall"],populationpyramid:["population-pyramid","pop-pyramid"],bubblepie:["bubble-pie","bubblepie"],bar:["column","vbar"],radar:["polar","radar"],stream:["vstream"]},ALIAS:{ring:"pie"},execFn:function(e,i){var n=[].slice.call(arguments).splice(2);return ZC.evalFn(e,i).apply(i,n)},eval(e,i){for(var n=e.split(/\.|\[/gi),t=0;t<n.length;t++)"]"===n[t].charAt(n[t].length-1)&&(n[t]=n[t].substring(0,n[t].length-1),'"'===n[t].charAt(0)&&'"'===n[t].charAt(n[t].length-1)&&(n[t]=n[t].substring(1,n[t].length-1)),"'"===n[t].charAt(0)&&"'"===n[t].charAt(n[t].length-1)&&(n[t]=n[t].substring(1,n[t].length-1)));var a=n.pop();for(t=0;t<n.length;t++){if(null===ZC._n_(i[n[t]]))return null;i=i[n[t]]}return i[a]},evalFn:function(BD,oContext){var aNs=BD.split("."),iOffset=0;oContext||(oContext=eval(aNs[0]),iOffset++);for(var i=iOffset;i<aNs.length;i++)oContext=oContext[aNs[i]];return oContext},cache:{data:{},size:0,add:function(e,i){}},DEBUG:0,TS:{},MAX:Number.MAX_VALUE,IMG404:[],BLANK:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",BOUNDS:[],IMAGES:{"zc.wm1":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAAeCAYAAAD6myZLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADfVJREFUeNrsWglYFEcWnp6DAeQSvFCEGCMi3sYLNcZEg5pEsopoogKKJwYlqBHFmEQwRlGiHNH4uRiPrK63xsS4up6JF1Fj8EI8Ip6oyD0Mw0x3572eardS2wNks9k1X6a+r76e7qp+VfXe//73umo4URRV9mIvv7ao7SqwFztw7MUOHHuxA8de7MCxF3uxA8de7MCxFztw7OUPUbTVtHEUuDjqKheBVJGqT0PhqKv8m54fx/QXmWtNsjlKH6xOWF2IREeq36AjdjyVgmyVwlp/7XgcoztWN2JtgSODRkuqhlKUDBoLqTSInhYmpRVNA5yjnovU3H+NgjWUTjSMQVEWT6pAXcXfABjaBrJRWbkc+c1T9T/Rm4bRm+L8tbVQkA6qI7nSwJFBU0WBR7Th5UpFtIF2Je9nPUCJNUTGqFoyX3xuJnOknUHNOABfA/PQoJP14kCqjjFcFbmaFRyLU2AFjqkiM1d5LHpNMjjoeclrrSJXXkG+ks7k93Wkyrioouov7FkTcLDdsd7omamPywwj6EYHrfb2wE6Bk3bGTzxNJskCR1AIA5yN0ECHQpGhYbUCoGhFsGyCC9fjtc6IuI16nTavcO3iqZRs7TOT5o5/WFIWUrFx2ZvEsGZmDez82Plo1ENjboqi6MEqrY7e4dLaqZGRQxev+h50lG3alNqPMqASM9CA1ygAR1qPf8y8mKv3H86Qx2no4bopP3NhAv6OTF/Xft3hU9ud9Q4XDRuWhsCjSqhGYnCaBFimFSlm1soEAXr70mS2NLVsSW8N9wYlBqsN42i1GrXG3dnpZPH6JRPJc77xuIT39/+Ykwy/XyOLExg2YD2M9iY2N1LXABzORn9WCRoKOA5atVqDlXir3Efn5KDTaTUafO5CgYb2UDZHoFlJMrqwNaM54gSqG8pxHzV9bamxsqV/44YHQ7t3qBS3fdqKyHRmgCCvRQasSDkpG/Yk4PiMnzP/bmHx0Da+jVPPL52TGRibNObynfw4GNO35IuUCWAbNDigWVqrO1m/lgBIpACopXTGUzpTU5FFS+RgcSJzNDGArhE4EhLVnBoKx9Ee0aNls/3bTp4LI8IFr8iZqYXlhgH4opuT44nPY8JjZ32xa9iNBwUTALldd2Vle/xl0cqTzRp4Zd5Ykbi4Z0JK/5O5PyXyWzM6ghyvqIz1aaD4IHzft57nqryVSYtwnEZjZy0oKjf2qLJYmr77Rr8+yRGD7/hNnBt/q6BwvDzW6pjwqWCsYvC8tpuOnUkDb/Fx1OnuSgzgqL/DULwWUQPyfF1HTttZXmlqhez5UpsW7+2dG/OtR/iMDPDcW/f+umCB5NlRs2YVlVf0rNqc9iLRi4UBsKZrfHIkggbmcuXsklnrwaG8ghPTDyP7lG9YOvztVZtaL9979O8ujvrLFl5wqzSbm2Db394ZE/VG13bFiVv2+Cbv2L/MYKoKxHmD5UpxXtMG9Q3XgPIRNJ4udbIANKtx/Eupc5frh8cORX0NS8nsATo1SUmPILgDW3xdYaryJo4egfPs/d7S17Ou3ZyOeiEAK508oPektLFh50EHm41V5ib+jRvsAjCG13dzOVNmrAyQABD6du5nE99qPTG4l4FND9S1SdAAM4Aa7hdJ5cncm8G4eDQEeMAkg8nU5svZk4J2z47ugQuIXb0lfkDHwLPw223muh3dMg8c74svQsjrhfYuKCvvVM/NJQttG/f51tkaWA146fMpo4cMelBSOrDLzEXh6K1atWTkph+NCBkAoHmEz7H9k9GhIdgfmQPfRzkIGjD6XXjeuctzfuvQQDh3htGk9aASn21Ybz/07dC8Ub2t/8y+kr779PmG3nXdciCMjSBs4gwGfLFRXbc9NsKIZunug34//HR7FD4ABS+gKR3dDWUAYCRGgPn4HEqMnYzGQZAs++rgYHjssWTXgTS8H/NyUOyyqKHvYD/s7+qkdz6WcwP1pWrg7pJDQIsgMUII7AFzf27z9LEn5PHMFt71SFLc1AburmdLKozde81JGY1iTuTeSESbnFr47uBerZpnok0OXcjFSOGG7IL3CBqUsTshOglAlwvgLQP5bWFNJUr5aq33cYBNugICT0M9AzU7v7g0eGTvrh8i2wCrhIERtgzq3Lbs9c5tynoGNF9zv6j0FUD0dfTCvEeFz8L7zXQaTTl6JjCNd35Rafem9epeRXq8XVA0ZHy/niuQLsHLHgQ0abjj9uOinngPTKdGT00I7Z+P99cfFAwI9PHeGTfo5UcYggZ3a7/hflHJK/Hrd3ZAMIx5KSgDF3l0ftx2fM/WehD0P36SkInzBw/Gq2r9kax2qWPDdqEiAYzPA3M0Au9t3a3FM8eVQINOM3/r3veARVxbeDdYA8A+g0YFoJuJ10k5F+RZGAZUMJ/87v7NTLDu65Khed4racs3HdHD0Vir3x51Dgz1sG4d51ySR+oARO5SzHBwKKUSbjq0CiL5U5WLkz6/c3Nfg4+XxzWrfMETXzVvTn8dxt0MzDcSANLHKluDc3JCRsD7fu0ClgBQ+sBaH4v/+pMWz6QVtf4ctwZ4EFTXxfkUJJnjSMJVSQRKcRMNFujT6DJRpgr6lqLyUXd+DTzPXL3/KKDIUNG407NN9526enPIR9v29kUA9e/QKhko3BffSd65fw3UJ2MiNcvAhtBSKjOg0WT2AQ/vBuCNoecITCYlqsBYOTKtguLLbG5gaSSZT/YtMDzgj+D2rcpcnRxzvr18vcfRS9dEMPqdLTPGXaCUpyG5gEuH6Qti0KHQOXIzPlhGGIEjLPdkKMwRaWflSDt4uzr33sOmrD0AJAYrY3EcMCi9BvmL8Rf5n8D8G0+Wr9Oosa9T3YgZK4oNxhYEvA+ofEgnvzM3bOB+wmaCWIu9rZqAY00ERUHgAQlEsJyxCyTp1GPMLCgzuMg0fT3/kTcqHEH/TH2vi2CASPDcxr0Dn8vIvf/wWtbVvF5IhRB+zoNXY/KoOvDh1L4vt21ZznxtCAIOLkiKwbHVEPNLBnZqnb5nzuRDdDI+Y+12f7xCiPRPjQrDEKoGz3cFz/q3jUpUtIXn3ajnPOYe7s6OhWj8Ft71D9x8+LgrrKGsiafHPmZOUiIJOVv9i7fvYyhQhQZ1XE714VBhlA4tEEKkrQBYhbQOGJsnOYngUcephLCPK5kPByzjIr3IC3w7vyY5312+rgLW7gqPVhHQaiDHOYghfOGoN14lclWCddwn8vE5sExHBA048zVw/On9PkwLPXD+SgToQEr45XchzzGSLyjRWp4k0Ip7UOoaQCNY5y8KZCAjVWUAVcKkvv7+Wt5YyBFcsV66kz/Ur77nJmyHJOwoxFt/UIzLpOAXjgGNZkEO0cnLtc4paK94pX3AA0xwI9LWRaP+pmZu8Xd8M3Z3q6mJEZISELLWsRE4piZeHt8cvXg1AgDnhBWSu889I99NXRI55ByCdeO3pyNx7kGzlwzGBFNUiSK7IcfzooA5BeRLodi35ZR5YwH8JauiR55FRoVQewwYrAvMswsY7jh5V96PkcLU2OVfzMMQBfnRlxBiTtBKxjkTpsb7SjBKFXVfYbYIEpCqLLw5fdyw4/CVdw8TWjByZwiXPpCM+1vbLeZPxw//DtkXma1t3EdR6Oygm2gEDTzfGz84OA+AZlaSb4L3IQQ+pkBlBLC3JfkQ9jGSd1Sgqyd2lZ8p7APVGjhSTK0yWyyIfoJIo2xEuc4b/loSsGpxyMefncCKv6+kf5CG/SFBvov7C8hKQS2b3Wro7vYDCver77ULLkjD5Z9OGB4NhgqA8HM2fc/hDdD//OW099Ot+QJvIR6E41aA3FRoz8avFqy4yOj+L2BybAgL6jSlpKKyFcg5dz7v7hD8WiLeb6bAYwGl89iWnXcvCvpeuPmwcBjuSckbZ5CbZePXDXrdjvgJR9hP9dSvD7nCfPtb2bUgBGRkQb0E9brTm+/sgNBtoQxZDkCosBpPYu0yMLQEJAAL6s8w5dU+CRjuIGwvjl65MRlYspxuf7w2OQK+elIu3LoXi/llzt0H0wCwi+H5ZNQLMEqlLfkLRoacgZxqOzovvLvP0UGXh23ZeXff+se5y2ryjqqwzPCEFCC5/gpTDVzPwh373Jj9OSvNV/NndXqrW0t9ilqoT1K5TU/ClobqR1O70na5hUG03EektrpFGxtwWuYrh2eSVrlN3sU1UXsm1c2XI2246ZlRR6+/lbcyKRGNT5xGoPY7nIgMeQfarHAEwCncs/tkDpQ8rFqP8Bkr0ND4JQkfBVfI/Ok9F8HGBqKakU+3KW2y8tTczQqyaP1Z6KMZbS0YhzYMeyZFb9NbFM44xGoO6NjdVE01Z0iiQl9NNbugamZe7JECPV96w1EC5LQ127yRUUb27vICCck0KHg5iSRtahubmqoajknkTTdeGzblDHp4n9YtFs0fEXLEYDJJOSIBTQWzkccxRhdtHELbOphVKehNoI5k6LM+kTlOqnVyLFRzwst+svHMmZJg47xJZQMMahsnvEoGsDAeLdo4kxEZBdHgNyswANcwatZkyG3mAl0vhyT7CsVWArNeSy1Ox5WOVlTMOsQ2vt7x8OUZc/ji1fhec1LicfMOQufHBDQVxOsFhcPU2pz3cdW02zr9VtKtqrah6s9U2EM+OoSZbXndf+EEXw5VelLpECvnkFVsmHja/4/zZysik5fR7PJ7/GVEpJhPHkvNhA4LE9LtwHkKQUMDhVP9/n9QY3OMKoVQ/7T9Sc4OHBuGFP9PYwp/NGXZ/3NsL3bg2Mv/rvwswABesoq0nEnfbwAAAABJRU5ErkJggg==","zc.wm2":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAAeCAYAAAD6myZLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADCFJREFUeNrsWglsVccV/f/9/70vrA4Fm82GOIAhUWqCG1QaEFEhrWhZwr41lNAiQgtqACVpgCy0LC0NYTUgKCnFIBZBEFAoooBJI/YlMUvY94AdbLPZ+P/Xc9wZ62b6vu3QpqXKG+nqvdnu3Ln3zJ07857Xtm2Pm9z0VZPXBY6bXOC4yQWOm1zguMkFjpvc5ALHTS5w3OQCx03/38CxLKu8XpClnky2opB4f6TmZTztMPV2mPqqeEt9eEWd7fC0/00deR1I8wqFmdPDjmfOR/LzhEKhagFHM/EJsgQzcgkqChmT+F+DRhvWEgrWCjAN8FXAb+rEUk+p7FAYehhjesUYPjGW7aBzr2GX0EMsCMtBbxXyVxc4WuAAKALkd2BYBnqgBHVSTGWC25UgvSoPEW5V6Mn7hWG1nFqRllEXEsquTGbbMGRAkARPUOlEj1smDOokswlmc956LL8iEzi2sRDKhF1CYfjbxpw8Qm+abMGn3MYSOFYVKKTQEQUFBbPQ6QbouqIbJSUlB7du3foM6qNAkYKiFEVUQoEw5ZFGm0AVfSMdyjh2NCjmzp07H966dWuOAD4pcPny5Zfv3r27Ee+xqq2WXYLBb5BPbE9WMBi8CD0UKH1cAV0mge+2IUOGNMD7F9DRbqEfLVe0KDPnLttoiiGdO3fuV2qsa3zeuHHjD7p+7dq17VB28969ezuQj1d9ohx4S4o0xoxVfePJp6ys7Kwqj3DwqpUCp2J1QUlWcXHxHjihZqDmoLTCwsLc9u3bzxADm085cf2M1YowFBhVCUUbk9XPaIc2X1I25X7w4IFesdpT+O/fv++Hoi1DTielSkB9yeP6fL5G0EM9UCooAyD9lBUw8F+WLFlyF2VNIiMjf6D46bnHCYoNo59Ys+3169d/37Bhw/GnTp2aThucOXNmau3atfsVFRXlkD9sQRk9MLbPgX+UkCFOgSPOGCdePskHO5FX9fM74oRblRN5vV4/KA6U9Pnnn/8Zwu3B++OgdFCzzZs3D7LJ3ettDGqI+g9tlQCy3YMHD259/vz5KTDeLdQ3GjhwYBvWXbp0aR7zBw4c+Jmqqz906NAM9tH9r169OgflyaAGN2/e/FNpael5ls+bNy+L5ayXY7E/y1evXv2CbgtwXCRRds4BlACKB9U+ceLEeHiDCzD2MbZln127dvWlLLdv316PPu/j/TESvO17qD+kdBGl9BKh+NWjLo4ePTpTyfIp8i179OiRyTxW7lHkU5ctW/Yj5jkeZdJ11Al1MX369O8yz3IpV3Z2ds/58+f34rvSf5rSd4qe56ZNmwbPnTv3RcXzEonvAFUu7UK97Nu37+fkq3UGYBQuXbr0x5SNYzF/+vTpRazDfP9uizR27NjmaBcNsiQ+qgIOFf2YAE66ojSWacV89tlnUylY//79n+zbt+9TLL927doKCsfBOfnt27ePEcptgZWZnZ+fv4n9AYQczX/SpEmdyAvGeI11HIf9pk6d2gH5pixn/ZtvvtmZ7dmP/fHenOVKYel79+6dyH4KODRwDWXsOnl5eRNYBwBNp+GhtN8SxJRdvysDNYKhj2Aub6m+EjiJBDbloOL1PDm2Bg5A+AmBpA3Ldp06deqIeX/MPGVEfSu2Y37lypXDX3311a6a34wZMwZggc3iO7zMQs6fY6qFkKQWV5rmD+9a1KFDh+c1f/T9NRc7+emx9+/f/z7r4L0Wo6417SGBwjbQYR7bU/+gugo4XokPq7ohd0JCQhbce56iU3CVXdatW/canVZKSkqfixcvrli+fHnRihUriiBwdp06dbpgrz8JpeShvmliYmJTCFMcFxf3RMeOHeuh/7NwwXncQ+vVq/ci+s6kW5w4ceJVgGpl/fr12zPP7QZxwyfjxo27wq0GLvsFKHHV5MmTr7J+y5YtS+rWrfv9OXPmPBkREZGyatWq31Hetm3b5rBfmMCfHulYenr6fMqflpbGp2fQoEGtMc4q1CcuXLjw6e7duydhu8k4ePDgbmOPrzjpjBkzZhK2rYQLFy5kjxgxYj/KSgKBQFC09cM70N17IM8VLKC7mPeJ8gDS56s9bdq0p2JjY1tQT717996L/DUshuOsZ7+oqKhEvmNRFKrAWwesOuAPcT6a/86dO28D6Cc1f261kOe5Q4cOfTBz5syfpKamdmYdQEaZotSW5NmzZ8874PM05CsgRkSg73ga9FcXOIxxYPxBSuhSJXR54EiDwesc03shAtIiKpPKhjf4uEmTJi0AvGSs9A0ZGRn9Xn/99ecJoG3btr01fvz4RuwDpeeAKsYD6j/S/AC4Ih13wZApMDhBPEbKByDW4HPYsGF5uq3o9y+Jq1PGc7ottrtixitZWVnPkmC8i127dj0iFGipgDH6+PHjr3BBsX3jxo2nKUV7IZtXhQHlpyIVZ+m8pY3FWAKGbCTbsj/GLNZlAEOxcVjxidOV00msInHRETgA4h/j4+PTFbiuinjIr2V5++23N+uTmABO2FSVx7EVojUzAqYEdF8R30uhqMKaNWsm6BUAr9CACqd8WInHkpOTM5OSkjLhHo8DECdat279HCZVNHr06MMnT57M50DdunXLwjitQC1Aj9eoUWMwJwIAlo+vVxkmegvxyC9VW1IG6Qsk8lm8eHG6lsPv9ycoueWdhs0VilWYIMAQZFvIVsB3yLwFHi8LXrMltrpNxtG3/Ng6YMCAOjD6T8kQ8d5MebSnzOVo/OfYQSysMuXpWF6qnvQIIYx5i++QJ17Lg/bx5ava7w8CnOVek/II0EbCA+2F3i/B4A21xzH5MyG+yiRoqHeUdzh8+PAGPTb1qUECr0d73qNdDY/jeB9kVQUaduYgaqASQRpEpRBqQ5s2bYb36dMnsV+/fgnNmjXrfeXKleUUYsGCBTvoXaCEeAS3u+CmP6pVq1ZbxiasX7NmzQ246Vy0+wUnghNJOraRbdiOXtJKUIrheKVwwxszMzNfwjYSQ0LfFeA1H97qIMEKAA6j8NheesXExLQUwKkglmELaHXkyJHenCfGGgEgF0L+AwQoYo9d8K7tIGc7eMnd4qKz4i5n1qxZ79KrIthf3atXr1x5EYq5SuCUwkuWiXyJBhKf2M53Y76XIU8DGPmZkSNHpsCLPcF69kMAvYvel54NMdnLxBO8+ygArSHKN8J7n0PfsPzh/QsEqEqaN2/+lAYl8xpkAJd2CCyzhd48jl6tkuDYUsFgPIyzBJPbIQJEn6pnkBg3YcKENLjAnTrA4rsKSEn1GWCqgLNZbm7uK2yDPXeEqk8aNWoUwXJE9ycQUf4tBuZ0swi2/8bTEANbddL5QLdlv9mzZ3+HQeP69eu76NMGA3S+wxEtU4FxjAryGI+MZZ1uyye2zc4q4GTw2ZSBtgoQk1X/CBUYR7/xxhupdpiEfoeHDx/eUsvGADsnJ+eH4pTVlCdL5nmoYPDK4FYHqdAd74Iui2CbJ6lGZ8+e/Y0cB3N4l7olcd6V8E/j4UH3Q90q/d6zZ89v69OcOj0xEE5Cm3d0mylTpvCQEGmeqqpzc6zJI1aeXn0+4xbVbOcxrujltbzkI29zzVtRjxGgWcZlnLkyZF1IxGRlon+EkNcW3sKryiMBuHlQ6nlsERMZGqjVqOM6fdEYMG5sQ8btttchb96T+Y07Iz8WzlJ6aQTK30OwfkrJbxufHILGzbAVZgcxv6t5Hb416oDbNnQYFDfHZdga7eoEx7YwbMj41GAb5bZQvCfMdbjlsA3ahsG9Yept43rc/G5mfnIwr+CDxhw0uM0Pg+V8Fy1aVB9bVVdso+0E6EJCLq3kUgfwVveblAZNBDzbMZ7ksEVOhjf7a3R0dHmMqEBzTwDHquKTg7caH0mdPnnITy6eMONUe6si6WQp0skjSNf7DbIM8hlk1pv9ndpIXk5tdXlAkayTc3Fqx60oJj8/f6K6CHsP+ZpqiwvoewxjvgHVT5PkJ2XzOcgcUFtnImKXYXKr5qUmtx9jfCmzk358YcY1xww4yBmOl9Sdp7pb1TftFxPL+C7lEfcmZV/D13+vOFrrb0p6pQeNLTb4KPx9UN2v499E4FjGf0chh3jrP/37h3k3I2PAskfplxUXOFX/xOQNE5h/XYAN95PWI/WTXLWA4yY3VbrKXOC4yQWOm/5r6R8CDACY8b9YDye80gAAAABJRU5ErkJggg=="},RM:[],WJ:[],E5:[0,0],ACJ:null,_cp_:function(e,i,n,t,a,l){null===ZC._n_(n)&&(n=!0),null===ZC._n_(t)&&(t=!0),null===ZC._n_(a)&&(a=!1),l=l||[],0===zingchart.DEV.COPYVALUES&&l.push("values");var r=l.length;for(var o in e)if(0===r||r>0&&-1===ZC.AV(l,o))if(e[o]instanceof Array){if(t){(null===ZC._n_(i[o])||"override"!==o&&!a)&&(i[o]=[]);for(var A=0,C=e[o].length;A<C;A++)i[o].push(e[o][A])}}else e[o]instanceof Object&&!(e[o]instanceof Function)?t&&(null===ZC._n_(i[o])&&(i[o]={}),i[o]instanceof Object&&!(i[o]instanceof Function)&&ZC._cp_(e[o],i[o],n)):(null===ZC._n_(i[o])||n)&&(i[o]=e[o])},_cpa_:function(e,i){i||(i=[]);for(var n=0,t=e.length;n<t;n++)i.push(e[n])},_inj_:function(e,i){var n={};ZC._cp_(e,n),ZC._cp_(i,e),ZC._cp_(n,e)},_todash_:function(e,i,n){if("dashed"!==zingchart.SYNTAX){void 0===i&&(i=!0);var t,a,l=(n=n||[]).length;for(var r in e)if(e.hasOwnProperty(r)&&(0===l||l>0&&-1===ZC.AV(n,r))){var o=r.substring(0,1);if("."!==o&&"#"!==o)if(e[r]instanceof Array)if(ZC.US(r)!==r){for(e[ZC.US(r)]=[],t=0,a=e[r].length;t<a;t++)ZC._todash_(e[r][t]),e[ZC.US(r)].push(e[r][t]);delete e[r]}else for(t=0,a=e[r].length;t<a;t++)ZC._todash_(e[r][t]);else e[r]instanceof Object&&!(e[r]instanceof Function)?(ZC.US(r)!==r&&(e[ZC.US(r)]={},ZC._cp_(e[r],e[ZC.US(r)]),delete e[r]),i&&ZC._todash_(e[ZC.US(r)],i,n)):ZC.US(r)!==r&&(e[ZC.US(r)]=e[r],delete e[r])}}},ZR:function(e,i){for(var n in e){var t;if(e.hasOwnProperty(n))if((t=n.replace(i+"-",""))!==n)if(e[t]=e[n],e[n]instanceof Array)for(var a=0,l=e[n].length;a<l;a++)ZC.ZR(e[n][a],i);else e[n]instanceof Object&&!(e[n]instanceof Function)&&ZC.ZR(e[n],i)}},AA2:function(e){for(var i="",n=0,t=e.length;n<t;n++){var a=n%2==0?n:e.length-n;i+=e.substring(a,a+1)}return i=i.replace(/\./g,"d")},AD6:function(e){var i=e;return i=(i=(i=i.replace("*","&")).replace("9","3")).replace("l","1")},AA3:function(e){return e.replace(/[a-zA-Z]/g,function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)})},AC7:function(e,i){var n=ZC.X4(ZC.ABZ(e)),t=ZC.X4(ZC.A2E(i)),a=n.length;if(0===a)return"";for(var l,r,o=n[a-1],A=n[0],C=2654435769,s=Math.floor(6+52/a)*C;0!==s;){r=s>>>2&3;for(var u=a-1;u>0;u--)l=((o=n[u-1])>>>5^A<<2)+(A>>>3^o<<4)^(s^A)+(t[3&u^r]^o),A=n[u]-=l;l=((o=n[a-1])>>>5^A<<2)+(A>>>3^o<<4)^(s^A)+(t[3&u^r]^o),A=n[0]-=l,s-=C}return decodeURIComponent(ZC.AC0(ZC.A60(n)))},AG2:function(e,i){e=encodeURIComponent(e);var n=ZC.X4(ZC.A2E(e)),t=ZC.X4(ZC.A2E(i)),a=n.length;if(0===a)return"";1===a&&(n[a++]=0);for(var l,r,o=n[a-1],A=n[0],C=Math.floor(6+52/a),s=0;C-- >0;){r=(s+=2654435769)>>>2&3;for(var u=0;u<a-1;u++)l=(o>>>5^(A=n[u+1])<<2)+(A>>>3^o<<4)^(s^A)+(t[3&u^r]^o),o=n[u]+=l;l=(o>>>5^(A=n[0])<<2)+(A>>>3^o<<4)^(s^A)+(t[3&u^r]^o),o=n[a-1]+=l}return ZC.ABY(ZC.A60(n))},X4:function(e){for(var i=new Array(Math.ceil(e.length/4)),n=0;n<i.length;n++)i[n]=e[4*n]+(e[4*n+1]<<8)+(e[4*n+2]<<16)+(e[4*n+3]<<24);return i},A60:function(e){for(var i=[],n=0;n<e.length;n++)i.push(255&e[n],e[n]>>>8&255,e[n]>>>16&255,e[n]>>>24&255);return i},ABY:function(e){for(var i="",n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=0;t<e.length;t++)i+=n[e[t]>>4]+n[15&e[t]];return i},ABZ:function(e){for(var i=[],n="0x"===e.substr(0,2)?2:0;n<e.length;n+=2)i.push(parseInt(e.substr(n,2),16));return i},AC0:function(e){for(var i="",n=0;n<e.length;n++)0!==e[n]&&(i+=String.fromCharCode(e[n]));return i},A2E:function(e){for(var i=[],n=0;n<e.length;n++)i.push(e.charCodeAt(n));return i},_i_:function(e){return-1!==String(e).indexOf("e-")?0:""===(e=String(e).replace(/[^0-9\.\-]/gi,""))?0:Math.round(e)},_f_:function(e){return e=parseFloat(e),isNaN(e)?0:e},_x_:function(e,i){return void 0===i&&(i=2),parseFloat(Number(e).toFixed(i))},_a_:function(e){return Math.abs(e)},_b_:function(e){return"false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e&&!0)},_p_:function(e){var i=(e=String(e).replace(/[^0-9\.\%\-]/gi,"")).indexOf("%");return-1!==i&&(e=e.substring(0,i),e=ZC._f_(e)/100),e},_h_:function(e){},_n_:function(e){return null===e||void 0===e?null:e},_c_:function(e,i){return null===e||void 0===e?i:e},_ang_:function(e){return(e%=360)<0&&(e+=360),e},IO:function(e,i){return ZC._f_(e)+""==e+""?i?ZC._f_(e):ZC._a_(e):-1!==(e+="").indexOf("%")?ZC._f_(e.replace("%",""))/100:-1!==e.indexOf("px")?ZC._f_(e.replace("px","")):ZC._f_(e)},R1:function(e){return parseInt(e,16)},OZ:function(e){return ZC._i_(e).toString(16)},_r_:function(e,i){return parseInt(e+(i-e)*Math.random(),10)},_l_:function(e,i,n){return e=(e=e<i?i:e)>n?n:e},DS:function(e,i,n,t){return t?i<e&&e<n||n<e&&e<i:i<=e&&e<=n||n<=e&&e<=i},BR:function(e,i){return Math.max(e,i)},CY:function(e,i){return Math.min(e,i)},A1U:function(e,i){null===ZC._n_(i)&&(i=!1);for(var n=0,t=e.length,a=-Number.MAX_VALUE;n<t;n++)i&&0==e[n]||(a=Math.max(a,e[n]));return a},Y4:function(e,i){null===ZC._n_(i)&&(i=!1);for(var n=0,t=e.length,a=Number.MAX_VALUE;n<t;n++)i&&0==e[n]||(a=Math.min(a,e[n]));return a},_rcolor_:function(){for(var e=(16777215*Math.random()+1<<0).toString(16);e.length<6;)e="0"+e;return"#"+e},A1X:function(e,i){for(var n,t=ZC._f_(i),a=Number.MAX_VALUE,l=0,r=0,o=e.length;r<o;r++)(n=Math.abs(ZC._f_(e[r])-t))<a&&(l=r,a=n);return l},AGF:function(e){var i=e.split(".");return i[i.length-1]||""},GY:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},FU:function(e,i){return i=i||Math.E,isFinite(Math.log(e)/Math.log(i))?Math.log(e)/Math.log(i):0},U4:function(e){return 360*e/(2*Math.PI)},TD:function(e){return 2*e*Math.PI/360},EF:function(e){return Math.cos(ZC.TD(e))},EL:function(e){return Math.sin(ZC.TD(e))},PH:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},EH:function(e){return-1!==e.indexOf("-")?e.replace(/(\-[a-z0-9])/g,function(e){return e.toUpperCase().replace("-","")}):e},US:function(e){return e.toUpperCase()!==e&&-1===e.indexOf("-")&&e.substring(0,1).toLowerCase()===e.substring(0,1)?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace(/([0-9]+)/g,function(e){return"-"+e.toLowerCase()}).replace("-3d","3d"):e},AGG:function(e){return ZC.XR.md5(e)},AL:function(e){},A1Q:function(e,i){return e[0].length<i[0].length?1:e[0].length>i[0].length?-1:0},ZS:function(e){},_fixed_:function(e,i){return i>=0&&i<=20?e.toFixed(i):""+e},_nfind_:function(e,i,n,t){var a=i.S[n].BV,l=i.S[t].BV;if(e==a)return n;if(e==l)return t;var r=ZC._i_((n+t)/2);if(!i.S[r]){for(;!i.S[r]&&r<t;)r++;if(r===t){for(r=ZC._i_((n+t)/2);!i.S[r]&&r>n;)r--;if(r===n)return null}}var o=i.S[r].BV;return r!==n&&r!==t?e==o?r:e>o?ZC._nfind_(e,i,r,t):ZC._nfind_(e,i,n,r):e==o?r:null},_tx_:function(e){},Utils_SetupFormat:function(e,i){return ZC.AO.OA(e,i)},Utils_Format:function(e,i,n,t){return ZC.AO.G5(e,i,n,t)},Loader_Api_Loader_Info:function(e){return e.FH()}},ZC.SEC=1e3,ZC.MIN=60*ZC.SEC,ZC.HR=60*ZC.MIN,ZC.DAY=24*ZC.HR,ZC.MON=30*ZC.DAY,ZC.YR=365*ZC.DAY,ZC.MAPTX=0,JSON.stringify=JSON.stringify||function(e){var i=typeof e;if("object"!==i||null===e)return"string"===i&&(e='"'+e.replace("\\","\\\\").replace('"','"')+'"'),String(e);var n,t,a=[],l=e&&e.constructor===Array;for(n in e)"function"!=typeof e[n]&&("string"===(i=typeof(t=e[n]))?t='"'+t.replace("\\","\\\\").replace('"','\\"')+'"':"object"===i&&null!==t&&(t=JSON.stringify(t)),a.push((l?"":'"'+n+'":')+String(t)));return(l?"[":"{")+String(a)+(l?"]":"}")},JSON.parse=JSON.parse||function(L1){return""===L1&&(L1='""'),eval("("+L1+")")},function(){var e=!1,i=/xyz/.test(function(){xyz})?/\bb\b/:/.*/;ZC.C6=function(){},ZC.C6.CD=function(n){var t=this.prototype;e=!0;var a=new this;for(var l in e=!1,n)a[l]="function"==typeof a[l]&&"function"==typeof t[l]&&i.test(n[l])?function(e,i){return function(){var n=this.b;this.b=t[e];var a=i.apply(this,arguments);return this.b=n,a}}(l,n[l]):n[l];function r(){!e&&this.$i&&this.$i.apply(this,arguments)}return r.prototype=a,r.constructor=r,r.CD=arguments.callee,r}}(),ZC.AAY=function(e){this.G=e,this.A9Z=function(e,i){var n,t=this,a=t.B6["theme-name"]||"",l=t.B6.palette;if(null!==ZC._n_(i)&&null!==ZC._n_(l[i])&&(l=l[i]),null!==ZC._n_(i)&&null!==ZC._n_(t.B6["palette["+i+"]"])&&(l=t.B6["palette["+i+"]"]),ZC._b_(t.B6["cycle-palette"])&&(e%=l.length),null!==ZC._n_(l[e])){var r=l[e];return null===ZC._n_(r[2])&&(r[2]=ZC.AO.PP(r[1],10)),null===ZC._n_(r[3])&&(r[3]=ZC.AO.PP(r[1],20)),null===ZC._n_(r[4])&&(r[4]="light"===a?"#FFF":ZC.AO.PP(r[1],30)),r}var o=["#00BAF2","#E80C60","#E2D51A","#9B26AF","#FB301E","#00AE4D","#20398B"];n=null!==ZC._n_(o[e-t.B6.palette.length])?o[e-t.B6.palette.length]:"#"+ZC.XR.md5(e).substr(e%20,6);var A=ZC.AO.PP(n,10),C=ZC.AO.PP(n,20),s="light"===a?"#FFF":ZC.AO.PP(n,30),u="#FFF";return t.B6.palette&&t.B6.palette[0]&&t.B6.palette[0][0]&&(u=t.B6.palette[0][0]),[u,n,A,C,s]},this.A47=function(e){e&&ZC._cp_(e,this.B6,!0)},this.AB0=function(e){var i=this;null!==ZC._n_(i.NS[e])&&(ZC._todash_(i.NS[e]),ZC._cp_(i.NS[e],i.B6))},this.NS={},ZC._cp_(zingchart.THEMES,this.NS),this.NS.classic={"theme-name":"classic",palette:[["#fff","#6a921f","#a7da47","#89b92e","#89b92e"],["#fff","#007fa3","#00b0e1","#0392bb","#0392bb"],["#fff","#a62b02","#ef4810","#cc3300","#cc3300"],["#fff","#b79007","#f9c332","#da9b04","#da9b04"],["#fff","#563d02","#84680a","#6e4503","#6e4503"],["#fff","#0b32a0","#4d62b1","#1540a0","#1540a0"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#e1eaec #edf3f5",title:{"font-size":14,bold:1,color:"#fff","background-color":"#00bbf1 #05a0cd",padding:6},subtitle:{"font-size":11,bold:1,color:"#333","margin-top":30,padding:6},source:{"font-size":10,color:"#333",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},"no-data":{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:""},SCALE:{"font-size":11,"line-width":2,"line-color":"#3e6c7b",item:{flat:!0},"ref-line":{"line-width":1,"line-color":"#3e6c7b"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#2c4a59",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:6,placement:"outer","line-width":2,"line-color":"#3e6c7b"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#3e6c7b"},label:{color:"#2c4a59",flat:!0}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},legend:{"background-color":"#fff","border-width":1,alpha:.75,"border-alpha":.75,"border-color":"#666","shadow-distance":3,header:{padding:"4 6",color:"#fff","border-width":1,"border-color":"#3e6c7b","background-color":"#3e6c7b"},footer:{padding:"2 6","background-color":"#ccc","border-width":1,"border-color":"#666"},marker:{"border-color":"#333","border-width":1}},plot:{"value-box":{flat:!0},marker:{shadow:1,"line-width":1,"border-width":1},"hover-marker":{"line-width":1,"border-width":1}},guide:{"line-width":1,"line-color":"#999",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},area:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0}},hbullet:{plot:{"fill-angle":0,shadow:0}},scatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},hscatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},bubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},hbubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},pie:{plot:{"border-width":1}},nestedpie:{plot:{"border-width":1}},radar:{plot:{marker:{size:3},"hover-marker":{size:4}},"scale-k":{guide:{alpha:.5,"background-color":"#eee #ddd"}}},gauge:{"scale-r":{"background-color":"-1",guide:{alpha:.5,"background-color":"#eee #ddd"},item:{"offset-r":0},ring:{size:1,items:[{"background-color":"#999",alpha:.8},{"background-color":"#666",alpha:.8}]}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{guide:{alpha:.25,"background-color":"-1 #58595B"}},"scale-y-n":{guide:{alpha:.25,"background-color":"-1 #58595B"}},plot:{"border-width":1}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{label:{angle:270}},"scale-x-n":{label:{angle:90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{label:{angle:0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},plot:{"border-width":1}},range:{plot:{marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},"-":""},this.NS.light={"theme-name":"light",palette:[["#fff","#29A2CC","#29A2CC","#1089B3","#fff"],["#fff","#D31E1E","#D31E1E","#BA0505","#fff"],["#fff","#7CA82B","#7CA82B","#638F12","#fff"],["#fff","#EF8535","#EF8535","#D66C1C","#fff"],["#fff","#A14BC9","#A14BC9","#8832B0","#fff"],["#fff","#A05F18","#A05F18","#874600","#fff"],["#fff","#265E96","#265E96","#0D457D","#fff"],["#fff","#6B7075","#6B7075","#52575C","#fff"],["#fff","#96C245","#96C245","#7CA82B","#fff"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#ffffff",title:{"font-size":21,bold:1,color:"#414042","background-color":"none",padding:6},subtitle:{"font-size":11,bold:1,color:"#414042","margin-top":30,padding:6},source:{"font-size":10,color:"#414042",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},"no-data":{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:"No Data","background-color":"#BBBBBB",alpha:.8},SCALE:{"font-size":11,"line-width":1,"line-color":"#8C8C8C",item:{"font-size":12,flat:!0,color:"#808285"},"ref-line":{"line-width":1,"line-color":"#D1D3D4"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#DCDCDC",alpha:1},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:5,placement:"outer","line-width":1,"line-color":"#8C8C8C"},"minor-tick":{visible:1,size:3,placement:"outer","line-width":1,"line-color":"#A7A9AC"},label:{color:"#414042",flat:!0}},"scale-x":{normalize:!0,guide:{visible:!1}},scroll:{bar:{"background-color":"#F0F1F1",margin:1},handle:{"background-color":"#A7A9AC","border-radius":6}},"scroll-x":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-xi":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-yi":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},preview:{"background-color":"#fff","border-width":1,"border-color":"#A7A9AC",live:!0,mask:{"background-color":"#999"},active:{alpha:0},handle:{width:11,"border-width":2,"border-radius":3,"line-color":"#C6C6C6","border-color":"#A7A9AC","background-color":"#F0F1F1"},"handle-top":{height:11},"handle-bottom":{height:11}},tooltip:{shadow:1,"shadow-angle":45,"shadow-distance":1,"shadow-alpha":.25,"border-width":1,"border-color":"#fff","border-alpha":1},zoom:{"preserve-zoom":1,"background-color":"#929497"},legend:{"background-color":"#fff","border-width":1,shadow:0,"shadow-alpha":.2,alpha:1,"border-alpha":1,"border-color":"#cccccc",header:{padding:"5 0 5 10",color:"#222222","background-color":"none","border-width":0,"border-top":"0px solid none","border-bottom":"1px solid #cccccc"},footer:{padding:"5 0 5 10","border-top":"1px solid #cccccc"},icon:{"line-color":"#000000","line-width":1},marker:{"border-color":"#fff","border-width":1},"page-on":{"background-color":"#929497"},"page-off":{"background-color":"#D1D2D3"},scroll:{bar:{"background-color":"none","margin-top":3,"margin-bottom":3},handle:{"background-color":"#D1D2D3","border-top":"none","border-right":"none","border-bottom":"none","border-left":"none","border-radius":6,width:12,height:12}}},plot:{"value-box":{flat:!0},marker:{shadow:0,"line-width":1,"border-width":1},"hover-marker":{"line-width":1,"border-width":1},monotone:!0},guide:{"line-width":1,"line-color":"#8C8C8C",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"line-width":2,shadow:0,marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1}}},area:{plot:{"line-width":2,shadow:0,"alpha-area":.25,"background-color-style":"solid",marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1,"border-color":"#fff"}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0},"scale-x":{guide:{visible:!0}}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0,goal:{"border-width":1,"border-color":"#fff",height:8}}},hbullet:{plot:{"fill-angle":0,shadow:0,goal:{"border-width":1,"border-color":"#fff",width:8}}},scatter:{plot:{"line-color":"%palette-0","border-color":"%palette-0",marker:{size:5},"hover-marker":{size:6}},"scale-x":{guide:{visible:!0}}},hscatter:{plot:{"line-color":"%palette-0","border-color":"%palette-0",marker:{size:4},"hover-marker":{size:5}},"scale-x":{guide:{visible:!0}}},bubble:{plot:{marker:{"border-width":1},"hover-marker":{"border-width":1}},"scale-x":{guide:{visible:!0}}},hbubble:{plot:{marker:{"border-width":1},"hover-marker":{"border-width":1}},"scale-x":{guide:{visible:!0}}},pie:{plot:{shadow:0,"border-width":1,"value-box":{placement:"in","font-size":16,text:"%node-percent-value%"}}},nestedpie:{plot:{"border-width":1}},radar:{plot:{shadow:0,"line-width":2,"background-color":"%palette-1","active-area":!0,marker:{size:4},"hover-marker":{size:5,"border-color":"#fff"}},"scale-k":{guide:{"line-width":1,"line-style":"solid","line-color":"#8C8C8C","line-segment-size":6,"line-gap-size":6,alpha:1,"background-color":"#fff #F7F8F8"},tick:{"line-color":"#8C8C8C","line-width":1,size:10}},"scale-r":{},"scale-v":{"ref-line":{"line-color":"#8C8C8C","line-width":1},tick:{"line-color":"#8C8C8C","line-width":1},guide:{"line-color":"#CDCDCD","line-width":1}}},gauge:{plot:{shadow:0},scale:{"size-factor":1},"scale-r":{aperture:270,tick:{size:11,"line-width":2},"background-color":-1,guide:{"background-color":"#fff"},ring:{size:8,"background-color":"#CDCDCD"},center:{size:20,"background-color":"#fff","border-width":6,"border-color":"#1089B3"}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-x":{visible:!1,guide:{visible:0}},"scale-y":{guide:{"background-color":"-1",alpha:1}},"scale-y-n":{guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{visible:!1,guide:{visible:0},label:{angle:270}},"scale-x-n":{label:{angle:90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-y":{guide:{"background-color":"-1",alpha:1},label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"},guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},range:{plot:{marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},venn:{plot:{"border-width":0,shadow:0,alpha:.75,"background-color":"%palette-1"}},root:{gui:{"context-menu":{visible:!0,width:"125px",padding:"5 0","background-color":"#595959","border-width":0,"border-color":"#595959",position:"left",button:{visible:ZC.mobile,alpha:0},gear:{"background-color":"#000",type:"hamburger",alpha:1},item:{"background-color":"#595959","text-align":"left",padding:"4 20 4 15","border-width":0,"border-color":"#595959","font-size":"12px",color:"#fff","hover-state":{"background-color":"#414141"}},separator:{"line-width":1,"line-color":"#969696"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},"-":""},this.NS.light.graph["crosshair-x"]=this.NS.light.graph["crosshair-y"]=this.NS.light.graph.guide,this.NS.dark={"theme-name":"dark"},ZC._cp_(this.NS.light,this.NS.dark,!0,!0),ZC._cp_({graph:{"background-color":"#221F1F",title:{color:"#fff"},subtitle:{color:"#fff"},source:{color:"#fff"},SCALE:{"line-color":"#D1D3D4",item:{color:"#D1D3D4"},"ref-line":{"line-color":"#D1D3D4"},guide:{"line-color":"#58595B"},"minor-guide":{"line-color":"#58595B"},tick:{"line-color":"#D1D3D4"},"minor-tick":{"line-color":"#D1D3D4"},label:{color:"#D1D3D4"}},scroll:{bar:{"background-color":"#6C6D70"},handle:{"background-color":"#A7A9AC"}},"scroll-x":{bar:{"border-top":"0px solid none","border-right":"2px solid #D1D3D4","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"},handle:{"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{"border-top":"2px solid #D1D3D4","border-right":"0px solid none","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"}},preview:{"background-color":"#221F1F"},tooltip:{"border-color":"#000"},legend:{"background-color":"#221F1F",header:{color:"#fff"},footer:{color:"#D1D3D4","background-color":"#414042","border-top":"0px solid none","border-right":"2px solid #A7A9AC","border-bottom":"2px solid #A7A9AC","border-left":"2px solid #A7A9AC"},icon:{"line-color":"#676667"},"page-status":{color:"#D1D3D4"},"page-on":{"background-color":"#D1D2D3"},"page-off":{"background-color":"#929497"},marker:{"border-color":"#000"},item:{color:"#D1D3D4"}},plot:{marker:{"border-color":"#221F1F"}},guide:{"line-color":"#D1D3D4","scale-label":{"background-color":"#929497"},"plot-label":{"background-color":"#221F1F",color:"#FFF","border-color":"#5a5a5a"}}},line:{plot:{"hover-marker":{"border-color":"#221F1F"}}},area:{plot:{"hover-marker":{"border-color":"#221F1F"}}},vbullet:{plot:{goal:{"border-color":"#221F1F"}}},hbullet:{plot:{goal:{"border-color":"#221F1F"}}},bubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},hbubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},pie:{plot:{"border-color":"#221F1F"}},radar:{plot:{"hover-marker":{"border-color":"#221F1F"}},"scale-k":{guide:{"line-color":"#58595B","background-color":"#221F1F #312F30"},tick:{"line-color":"#D1D3D4"}},"scale-v":{"ref-line":{"line-color":"#58595B"},tick:{"line-color":"#58595B"},guide:{"line-color":"#58595B"}}},gauge:{"scale-r":{guide:{"background-color":"#221F1F"},ring:{"background-color":"#57585B"}}},vfunnel:{SCALE:{guide:{"line-color":"#58595B"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},hfunnel:{SCALE:{guide:{"line-color":"#58595B"}},"scale-y":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},"scale-y-n":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},root:{gui:{"context-menu":{gear:{"background-color":"#FFF"}}}},"-":""},this.NS.dark,!0,!0),this.NS.dark.graph["crosshair-x"]=this.NS.dark.graph["crosshair-y"]=this.NS.dark.graph.guide,this.NS.mini={"theme-name":"mini",graph:{title:{width:"100%",padding:"1 2 2","font-size":10},subtitle:{width:"100%",padding:"1 2 2","margin-top":14,"font-size":9},plotarea:{width:"100%",height:"100%",margin:"18 4 4 4"},SCALE:{visible:0},tooltip:{shadow:0,"border-radius":7},legend:{visible:0},preview:{visible:0},guide:{"line-width":1,"line-color":"#ccc",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{"border-color":"#ccc","border-radius":5,padding:"3 6"}},plot:{shadow:0,"value-box":{visible:0},"hover-state":{visible:0},"hover-marker":{visible:0},"max-trackers":99999,"max-nodes":99999}},line:{plot:{"line-width":1,marker:{type:"none"}}},line3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},area:{plot:{"line-width":1,marker:{type:"none"}}},area3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},scatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},hscatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},bubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},hbubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},pie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},pie3d:{plotarea:{margin:"32 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":1}},nestedpie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},radar:{plotarea:{margin:"18 4 4 4"},plot:{"line-width":1,marker:{shadow:0,size:2}},scale:{"size-factor":.95}},vbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},hbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0,zoom:.9}},venn:{plotarea:{margin:"18 4 4 4"},plot:{"border-width":0}},gauge:{plotarea:{margin:"18 4 4 4"},plot:{indicator:[5]},SCALE:{visible:1},scale:{"size-factor":.9},"scale-r":{"background-color":"-1",aperture:270,tick:{visible:0},item:{visible:0},guide:{visible:0},ring:{size:6,"background-color":"#CDCDCD",items:[]},center:{"border-width":0,size:2,"background-color":"#fff"}}},vfunnel:{plotarea:{margin:"18 4 4 4"}},hfunnel:{plotarea:{margin:"18 4 4 4"}},vbullet:{plot:{"bar-space":.5,goal:{"border-width":0,height:4}}},hbullet:{plot:{"bar-space":.5,goal:{"border-width":0,width:4}}},range:{plot:{"line-width":1,marker:{visible:0},"hover-state":{visible:0}}},"-":""},this.NS.negative={"theme-name":"negative",palette:[["#000","#909090","#969696","#9c9c9c","#000"],["#000","#a0a0a0","#a6a6a6","#acacac","#000"],["#000","#b0b0b0","#b6b6b6","#bcbcbc","#000"],["#000","#c0c0c0","#c6c6c6","#cccccc","#000"],["#000","#d0d0d0","#d6d6d6","#dcdcdc","#000"],["#000","#e0e0e0","#e6e6e6","#ececec","#000"],["#000","#f0f0f0","#f6f6f6","#fcfcfc","#000"]],graph:{"background-color":"#111",title:{color:"#fff"},subtitle:{color:"#333"},SCALE:{"font-size":11,"line-width":2,"line-color":"#ccc",guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},tick:{visible:1,size:6,placement:"outer","line-width":2,"line-color":"#ccc"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#ccc"},label:{color:"#fff"},item:{color:"#fff"}}},radar:{"scale-k":{guide:{alpha:.5,"background-color":"#222 #333"}}},"-":""},this.NS.spark=this.NS.mini,this.B6={root:{gui:{behaviors:[{id:"PageScroll",enabled:"all"},{id:"ViewSource",enabled:"all"},{id:"BugReport",enabled:"none"},{id:"LogScale",enabled:"none"},{id:"LinScale",enabled:"none"},{id:"FullScreen",enabled:"none"},{id:"3D",enabled:"none"},{id:"ExportData",enabled:"none"},{id:"SaveAsImageJPG",enabled:"none"},{id:"DownloadCSV",enabled:ZC.ie678?"none":"all"},{id:"DownloadXLS",enabled:ZC.ie678?"none":"all"}],watermark:{type:1,position:"rb"},history:{margin:"10 auto auto 10",width:30,height:22,padding:4,item:{"background-color":"#369","border-width":1,"border-color":"#69c"},"item-off":{"background-color":"#eee","border-color":"#ddd"}},progress:{"background-color":"#fff",color:"#000"},"context-menu":{padding:0,"border-width":1,"border-color":"#000",button:{visible:ZC.mobile,margin:"5 auto auto 5",alpha:.8,"background-color":"#333 #999","border-radius":8,width:40,height:40},gear:{"background-color":"#fff #f6f6f6",type:"gear6",alpha:.8},item:{"background-color":"#36393D","text-align":"left",padding:"4 20 4 8","border-width":1,"border-color":"#000",color:"#fff","hover-state":{"background-color":"#0084AA"}},separator:{"line-width":1,"line-color":"#000000"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},palette:[],graph:{title:{width:"100%",bold:1,"font-size":13},subtitle:{width:"100%",bold:1,"font-size":11},scroll:{bar:{"background-color":"#e1eaec","border-color":"#ddd"},handle:{"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},"scroll-xi":{bar:{width:16},handle:{width:16}},"scroll-yi":{bar:{height:16},handle:{height:16}},preview:{width:"100%",height:50,margin:"auto 50 20 50","border-width":1,shadow:0,"background-color":"#f0f0f0","border-color":"#999",mask:{alpha:.5,"background-color":"#333"},active:{alpha:.1,"background-color":"#999"},handle:{width:9,height:16,"border-width":1,"line-width":1,"line-color":"#111","border-color":"#444","border-radius":2,"background-color":"#e6e6e6"},"handle-top":{width:16,height:9},"handle-bottom":{width:16,height:9}},"preview[yx]":{width:50,height:"100%",margin:"60 auto 65 20"},plotarea:{width:"100%",height:"100%",margin:"60 50 65 50"},"plotarea[preview]":{margin:"60 50 105 50"},"plotarea[preview[yx]]":{margin:"60 50 65 105"},SCALE:{"line-width":1,guide:{"line-width":1,"line-color":"#ddd"},tick:{size:6,"line-width":2},"minor-guide":{"line-width":1,"line-color":"#ddd"},"minor-tick":{size:4,"line-width":1},label:{bold:1,padding:6,flat:!0},item:{padding:2,"auto-align":!0,flat:!0},marker:{"line-width":1,"line-color":"#000","background-color":"#ccc"},"transform[date]":{item:{"font-size":10,padding:2,color:"#000","background-color":"#fff"}}},"SCALE[3d]":{"background-color":"#ccc"},"scale-y[default]":{label:{angle:270},item:{"text-align":"right"}},"scale-y[opposite]":{label:{angle:90},item:{"text-align":"left"}},plot:{error:{"line-width":1,"line-color":"#333",size:.5},"value-box":{flat:!0,text:"%v",bold:1,placement:"auto",shadow:1},"tooltip-text":"%v",shadow:1,"line-width":1,marker:{type:"square",shadow:1},"highlight-state":{shadow:!0,"shadow-blur":2,"shadow-distance":1,"shadow-alpha":.91}},tooltip:{shadow:1,padding:"4 8","shadow-distance":3,"offset-y":ZC.mobile?-40:-20},"tooltip[dynamic]":{padding:"4 8","offset-y":0},guide:{marker:{type:"circle"},"plot-label[single]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:10,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"},"plot-label[multiple]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:5,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"}},zoom:{"preserve-zoom":1,"border-width":0,"background-color":"#369",alpha:.25,label:{visible:!1,"background-color":"#fff","font-size":10,padding:2,"border-width":1,"border-color":"#999"}},arrow:{"border-width":1,"border-color":"#000","background-color":"#666",size:4},"legend[position]":{margin:10},legend:{"background-color":"#eee",alpha:1,shadow:1,margin:"10 10 auto auto",padding:"4 2 4 2",item:{"text-align":"left",margin:"2 6 2 4",padding:"2 4"},"item-off":{alpha:.25},marker:{shadow:0,size:6,"border-color":"#999","border-width":1},header:{"font-size":12,"text-align":"left",bold:1},footer:{"text-align":"left"},icon:{"line-color":"#000","line-width":1},"page-status":{color:"#000"},"page-on":{"background-color":"#f90"},"page-off":{"background-color":"#999"},scroll:{bar:{width:12,height:12,"background-color":"#e1eaec","border-color":"#ddd"},handle:{width:12,height:12,"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}}}},vbar:{plot:{"value-box":{placement:"top-out"}}},vbar3d:{plot:{"value-box":{placement:"top-out"}},"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},mixed3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},hbar:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}},plot:{"value-box":{placement:"top-out"}}},vline:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},varea:{plot:{"fill-angle":0},"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x[default]":{label:{angle:270}},"scale-x[opposite]":{label:{angle:90}}},hbar3d:{"scale-y":{label:{angle:0}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0}},"scale-x-n":{label:{angle:90}},"3d-aspect":{depth:40,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0},plot:{"value-box":{placement:"top-out"}}},hbullet:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{angle:90}}},line:{plot:{"line-width":4,marker:{type:"circle",size:4}}},area:{plot:{"line-width":4,marker:{type:"circle",size:4},"value-box":{placement:"top"}}},line3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0}}},area3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0},"value-box":{placement:"top"}}},scatter:{SCALE:{offset:10},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},poly:{SCALE:{offset:10},plot:{"alpha-area":.4,marker:{type:"none"},"value-box":{placement:"top"}}},hscatter:{SCALE:{offset:10},"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{angle:90}},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},bubble:{SCALE:{offset:40},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hbubble:{SCALE:{offset:40},"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{angle:90}},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hmixed:{"scale-y":{label:{angle:0},item:{"text-align":"center"}},"scale-x":{label:{angle:270}},"scale-y-n":{label:{angle:0},item:{"text-align":"center"}},"scale-x-n":{label:{angle:90}}},pie:{plotarea:{margin:"35 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},pie3d:{"3d-aspect":{"x-angle":38,"y-angle":0,"z-angle":0},plotarea:{margin:"25 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"linear","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},nestedpie:{plotarea:{margin:"40 5 15 5"},scale:{"size-factor":.8,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},text:"%t",visible:1}}},venn:{plotarea:{margin:"30 10 10 10"},plot:{alpha:.5,"border-width":4},scale:{"size-factor":.65,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}}},radar:{SCALE:{guide:{"line-width":1,"line-color":"#999","background-color":"-1"},tick:{"line-width":1},item:{"auto-align":!1}},scale:{visible:0,"size-factor":.7},"scale-k":{"ref-angle":270},plotarea:{margin:"40 5 5 5"},plot:{"line-width":4,aspect:"line",marker:{type:"circle"}}},gauge:{SCALE:{guide:{"border-width":1,"border-color":"#999","background-color":"-1"}},scale:{"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0},"size-factor":.7},"scale-r":{"ref-angle":270,"background-color":"#fff",guide:{"line-width":0},tick:{placement:"inner"},item:{"offset-r":"-45%"}},plot:{size:"85%"},plotarea:{margin:"40 5 5 5"}},stock:{plot:{"line-width":1,"border-width":1,"tooltip-text":"Open: $%open<br>High: $%high<br>Low: $%low<br>Close: $%close"}},range:{plot:{"line-width":2,"value-box":{text:"%node-min-value - %node-max-value"},"tooltip-text":"%node-min-value - %node-max-value"}},"-":""},this.PU=function(e,i){var n,t=this,a=!1;return null!==ZC._n_(n=t.B6.graph[e])&&null!==ZC._n_(n.enabled)&&(a=a||ZC._b_(n.enabled)),null!==ZC._n_(t.B6[i])&&null!==ZC._n_(n=t.B6[i][e])&&null!==ZC._n_(n.enabled)&&(a=a||ZC._b_(n.enabled)),a},this.load=function(e,i,n,t){var a,l,r,o=this;n=null===ZC._n_(n)||ZC._b_(n),t=null!==ZC._n_(t)&&ZC._b_(t),i instanceof Array||(i=new Array(i));var A=[],C="";for(l=0,r=i.length;l<r;l++)if(/(\(\w+\))(.*)/.test(i[l])){var s=RegExp.$1;C=i[l].replace(s,"graph"),-1===ZC.AV(A,C)&&A.push(C),C=i[l].replace(s,s.substring(1,s.length-1)),-1===ZC.AV(A,C)&&A.push(C)}else-1===ZC.AV(A,i[l])&&A.push(i[l]),/root(.*)/.test(i[l])&&-1===ZC.AV(A,i[l].replace("root","loader"))&&A.push(i[l].replace("root","loader")),/loader(.*)/.test(i[l])&&-1===ZC.AV(A,i[l].replace("loader","root"))&&A.push(i[l].replace("loader","root"));var u={};for(l=0,r=A.length;l<r;l++){for(var Z=A[l].split("."),c=o.B6,p=0,h=Z.length;p<h;p++)if(null!==ZC._n_(a=c[Z[p]]))c=a;else if(null!==ZC._n_(a=c[ZC.US(Z[p])]))c=a;else{if(null===ZC._n_(a=c[ZC.EH(Z[p])])){c=null;break}c=a}if(c)for(var f in c)null!==ZC._n_(c[f])&&(t||"object"!=typeof c[f]||c[f].length)&&(n||null===ZC._n_(e[f])?o.G.SB&&null!==ZC._n_(o.G.SB[f])||(u[f]=c[f]):n&&"object"==typeof c[f]&&(o.G.SB&&null!==ZC._n_(o.G.SB[f])||(u[f]=c[f])))}ZC._cp_(u,e)}},ZC.AO={AGU:function(e,i){for(var n=[],t=0,a=e.p.length;t<a;t++)if(e.p[t]){var l=(e.p[t][0]-e.x)/e.w,r=(e.p[t][1]-e.y)/e.h;n.push([i.x+i.w*l,i.y+i.h*r])}else n.push(null);return{l:i.w*e.l/e.w,r:i.w*e.r/e.w,p:n}},ACE:function(e,i,n){var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=i+"?v"+ZC.VERSION;var l=!1;a.onload=a.onreadystatechange=function(){if(!(l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){l=!0,a.onload=a.onreadystatechange=null,t&&a.parentNode&&t.removeChild(a);var e=new RegExp("zingchart-(.+?).min.js","g").exec(i);e&&ZC.WJ.push(e[1]),n&&n(i)}},a.onerror=function(){!e&&zingchart.HW[0]&&(e=zingchart.HW[0]),e?e.O5({name:"Network error",message:"Resource not found ("+a.src+")"},"Module loader"):alert("Resource not found ("+a.src+")")},t.insertBefore(a,t.firstChild)},_load_url_:function(e,i,n,t){null===ZC._n_(n)&&(n=!1);var a,l=require("fs"),r=n?"binary":"utf8";if(0===e.indexOf("http://")||0===e.indexOf("https://")){var o=require("http"),A=ZC.AO._parse_url_(e),C={host:A.host,port:A.port,path:A.path+A.search};n&&(a=l.createWriteStream(t,{flags:"w",encoding:r,mode:438})),o.request(C,function(t){t.setEncoding(r);var l="";t.on("data",function(e){n&&a.write(e,r),l+=e}),t.on("end",function(){n&&a.end(),setTimeout(function(){i(l,e)},100)})}).end()}else l.readFile(e,r,function(n,t){i(t,e)})},_parse_url_:function(e){var i=/^(https?):\/\/((?:[a-z0-9.-]|%[0-9A-F]{2}){3,})(?::(\d+))?((?:\/(?:[a-z0-9-._~!$&'()*+,;=:@]|%[0-9A-F]{2})*)*)(?:\?((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?$/i.exec(e);return{host:i[2],path:i[4]||"",port:i[3]||"80",protocol:i[1],search:"?"+(i[5]||""),hash:i[6]||""}},_rcolor_:function(){return"#"+ZC.XR.md5(ZC._r_(0,99999)).substr(ZC._r_(0,20),6)},WX:function(){},A8J:function(e,i){return zingchart[e]||i&&i.A17&&i.A17[e]||zingchart.hasEvent(null,e)||i&&zingchart.hasEvent(i.K,e)},C0:function(e,i,n,t,a){n instanceof Array||(n=[n]);var l=1;return null!==ZC._n_(t)&&n.push(t),a&&(l=2,n.push(a)),"touchstart"===e&&(e="mousedown"),"touchend"===e&&(e="mouseup"),"touchmove"===e&&(e="mousemove"),zingchart[e]&&"render"!==e&&(null!==ZC._n_(t)?n[n.length-l]=zingchart[e].apply(zingchart,n):zingchart[e].apply(zingchart,n)),i&&i.A17[e]&&(null!==ZC._n_(t)?n[n.length-l]=i.A17[e].apply(zingchart,n):i.A17[e].apply(zingchart,n)),zingchart.hasEvent(null,e)&&(null!==ZC._n_(t)?n[n.length-l]=zingchart.callEvent(null,e,n,t):zingchart.callEvent(null,e,n)),i&&zingchart.hasEvent(i.K,e)&&(null!==ZC._n_(t)?n[n.length-l]=zingchart.callEvent(i.K,e,n,t):zingchart.callEvent(i.K,e,n)),n[n.length-l]},OB:function(e,i,n){if(n.AA%360!=0){for(var t=[[-n.I/2,-n.F/2],[n.I/2,-n.F/2],[n.I/2,n.F/2],[-n.I/2,n.F/2]],a="",l=0;l<4;l++)t[l]=[n.iX+n.I/2+n.BK+ZC.MAPTX+t[l][0]*ZC.EF(n.AA)-t[l][1]*ZC.EL(n.AA),n.iY+n.F/2+n.BJ+ZC.MAPTX+t[l][0]*ZC.EL(n.AA)+t[l][1]*ZC.EF(n.AA)],a+=ZC._i_(t[l][0])+","+ZC._i_(t[l][1])+",";return n.D=t,ZC.Q.FP("poly",n.E9,n.IE)+'class="'+i+'-label-area zc-label-area" id="'+n.K+'-area" coords="'+a.substring(0,a.length-1)+'" />'}return ZC.Q.FP("rect",n.E9,n.IE)+'class="'+i+'-label-area zc-label-area" id="'+n.K+'-area" coords="'+ZC._i_(n.iX+n.BK+ZC.MAPTX)+","+ZC._i_(n.iY+n.BJ+ZC.MAPTX)+","+ZC._i_(n.iX+n.BK+n.I+ZC.MAPTX)+","+ZC._i_(n.iY+n.BJ+n.F+ZC.MAPTX)+'" />'},_rebuild_map_:function(e,i){var n=document.getElementById(e+"-map"),t=n.parentNode;t.removeChild(n);var a=document.createElement("map");a.id=e+"-map",a.className="zc-map",a.name=e+"-map",a.innerHTML=i,document.getElementById(e+"-img")&&t.insertBefore(a,document.getElementById(e+"-img").nextSibling)},NA:function(e){var i,n="",t=e.indexOf('id="');if(-1!==t){var a=e.indexOf('"',t+4);-1!==a&&(n=e.substring(t+4,a))}if(ZC.cache.data["area-score-"+n])return ZC.cache.data["area-score-"+n];var l=0;if(-1!==e.indexOf('shape="rect"')?(l+=1e4,5===(i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e)).length&&(l+=(ZC._i_(i[3])-ZC._i_(i[1]))*(ZC._i_(i[4])-ZC._i_(i[2])))):-1!==e.indexOf('shape="circle"')?(l+=100,i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e),null!==ZC._n_(i[3])&&(l+=ZC._i_(i[3])/10)):-1!==e.indexOf('shape="poly"')?-1!==e.indexOf("data-map")?l+=1e6:l+=1e3:l+=1,-1!==e.indexOf("data-z-sort")){var r=/data-z-sort=\"(\-*\d+)\"/.exec(e);r&&2===r.length&&(l*=ZC._i_(Math.pow(10,ZC._i_(r[1]))))}return""!==n&&ZC.cache.add("area-score-"+n,l),l},A5M:function(e,i,n){for(var t=[],a=0,l=e.length;a<l;a++)if(null!==ZC._n_(e[a])){var r=e[a].slice(0);null!==ZC._n_(r[0])&&"string"!=typeof r[0]&&(r[0]+=i),null!==ZC._n_(r[1])&&"string"!=typeof r[1]&&(r[1]+=n),null!==ZC._n_(r[2])&&"string"!=typeof r[2]&&r.length<=4&&(r[2]+=i),null!==ZC._n_(r[3])&&"string"!=typeof r[3]&&r.length<=4&&(r[3]+=n),t.push(r)}else t.push(null);return t},OA:function(e,i){var n;i=i||{},e=e||{};var t={};if(null!==ZC._n_(n=e.negation)&&(t.negation=n),null!==ZC._n_(n=e.short)&&(t.short=ZC._b_(n)),null!==ZC._n_(n=e["short-unit"])&&(t["short-unit"]=n),null!==ZC._n_(n=e.exponent)&&(t.exponent=ZC._b_(n)),null!==ZC._n_(n=e["exponent-decimals"])&&(t["exponent-decimals"]=ZC._i_(n)),null!==ZC._n_(n=e["decimals-separator"])?t["decimals-separator"]=n:null===ZC._n_(i["decimals-separator"])&&null!==ZC._n_(n=ZC.HG["decimals-separator"])&&(t["decimals-separator"]=n),null!==ZC._n_(n=e["thousands-separator"])?t["thousands-separator"]=n:null===ZC._n_(i["thousands-separator"])&&null!==ZC._n_(n=ZC.HG["thousands-separator"])&&(t["thousands-separator"]=n),null!==ZC._n_(n=e.decimals)&&(t.decimals=ZC._i_(n)),null!==ZC._n_(n=e["decimals-dyn"])&&(t["decimals-dyn"]=n),null!==ZC._n_(n=e.transform)&&null!==ZC._n_(n.type))switch(n.type){case"date":t["transform-date"]=!0,null!==ZC._n_(n.text)&&(n.all=n.text),null!==ZC._n_(n.all)&&(t["transform-date-format"]=n.all)}return t},G5:function(e,i,n,t){var a,l=e,r=e+"",o=!1;if(t&&null!==ZC._n_(i["transform-date"])&&i["transform-date"]&&""+Number(r)===r&&(r=ZC.AO.YF(Number(r),i["transform-date-format"],i.utc,i.timezone),o=!0),null===ZC._n_(i["decimals-separator"])&&null!==ZC._n_(e=ZC.HG["decimals-separator"])&&(i["decimals-separator"]=e),null===ZC._n_(i["thousands-separator"])&&null!==ZC._n_(e=ZC.HG["thousands-separator"])&&(i["thousands-separator"]=e),null!==ZC._n_(i.decimals)&&-1!==i.decimals&&"undefined"!=typeof i["max-decimals"]&&-1!==i["max-decimals"]&&(i.decimals=ZC.BR(i["max-decimals"],i.decimals)),!o)if(null!==ZC._n_(i.exponent)&&i.exponent)r=Number(r).toExponential(ZC.CY(20,i["exponent-decimals"])),null!==ZC._n_(i["decimals-separator"])&&(r=r.replace(/\./g,i["decimals-separator"]));else{if(null!==ZC._n_(i.short)&&i.short){a="";var A=i["short-unit"]||"";if("string"!=typeof A&&A.length){""+ZC._f_(A[0])!==A[0]&&(A=[1e3].concat(A));for(var C=1,s=A[0]||1e3,u=A.slice(1),Z=null,c=0;c<u.length;c++)0===u[c].indexOf("#")&&(Z=c,u[c]=u[c].substring(1));if(u.length){if(null!==Z)C=Z;else if(null!==ZC._n_(i["max-power"]))C=i["max-power"];else{var p=ZC.FU(ZC._a_(Number(r)),s);C=Math.floor(p),C=ZC.CY(C,u.length-1)}a=u[C];var h=(r=""+Number(r)/Math.pow(s,C)).split(".");2===h.length&&h[1].length>=9&&(r=null!==ZC._n_(i.decimals)&&-1!==i.decimals?""+ZC._x_(r,i.decimals):""+ZC._x_(r))}}else{var f=ZC.FU(ZC._a_(Number(r)))/Math.LN10;switch(ZC._a_(Number(r))){case 1e3:f=3;break;case 1e6:f=6;break;case 1e9:f=9}if(null!==ZC._n_(i["max-power"])&&(f=3*i["max-power"]),"KB"===A.toUpperCase())r=""+Number(r)/1024,a="KB";else if("MB"===A.toUpperCase())r=""+Number(r)/1048576,a="MB";else if("GB"===A.toUpperCase())r=""+Number(r)/1073741824,a="GB";else if("TB"===A.toUpperCase())r=""+Number(r)/1099511627776,a="TB";else if("PB"===A.toUpperCase())r=""+Number(r)/0x4000000000000,a="PB";else if(f>=0&&f<3)switch(A){default:r=r,a="";break;case"K":r=""+Number(r)/1e3,a="K";break;case"M":r=""+Number(r)/1e6,a="M";break;case"B":r=""+Number(r)/1e9,a="B"}else f>=3&&f<6&&""===A||"K"===A.toUpperCase()?(r=""+Number(r)/1e3,a="K"):f>=6&&f<9&&""===A||"M"===A.toUpperCase()?(r=""+Number(r)/1e6,a="M"):(f>=9&&""===A||"B"===A.toUpperCase())&&(r=""+Number(r)/1e9,a="B")}if(ZC.PH(r))if(null!==ZC._n_(i.decimals)&&-1!==i.decimals)r=ZC._fixed_(Number(r),ZC.BR(0,ZC._i_(i.decimals)));else{var _=r.split(".")[1]||"";-1!==i["max-decimals"]&&i["max-decimals"]<_.length&&(r=ZC._fixed_(Number(r),ZC.BR(0,ZC._i_(i["max-decimals"]))))}null!==ZC._n_(i["decimals-separator"])&&(r=r.replace(/\./g,i["decimals-separator"]))}var d=n?n.K:"";if(!isNaN(r)&&("string"!=typeof l||-1===d.indexOf("-scale-"))){if(null!==ZC._n_(i.decimals)&&-1!==i.decimals&&ZC.PH(r)&&(null!==ZC._n_(i.short)&&i.short||(r=ZC._fixed_(Number(r),ZC.BR(0,ZC._i_(i.decimals))))),null!==ZC._n_(i["thousands-separator"])||null!==ZC._n_(i["decimals-separator"])){for(var g=r.split("."),v="",B=0,E=3,b=i.locale||"",D=g[0].length-1;D>=0;D--){var F=g[0].substring(D,D+1);if(-1===ZC.AV(["-","+"],F)){var m=g[0].length-D-1;"en_in"!==b.toLowerCase()&&"hi_in"!==b.toLowerCase()||(B=m>3?1:0,E=m>3?2:3),v=m%E===B&&0!==m?F+i["thousands-separator"]+v:F+v}else v=F+v}r=v+(null!==ZC._n_(g[1])?i["decimals-separator"]+g[1]:"")}null!==ZC._n_(i.short)&&i.short&&(r+=a)}}return r},AAJ:function(e){var i=e.indexOf("("),n="",t="";-1!==i?(n=ZC.GY(e.substring(0,i)),t=ZC.GY(e.substring(i+1,e.length-1))):n=ZC.GY(e);var a=[],l="";if(""!==t){var r=!1,o=!1,A=!1;l="";for(var C=0,s=t.length;C<s;C++){var u=t.substring(C,C+1);switch(u){case"\\":A?(l+="\\",A=!1):A=!0;break;case'"':A?(l+='"',A=!1):o?(a.push(l),l="",o=!1):r?l+=u:o=!0;break;case"'":A?(l+="'",A=!1):r?(a.push(l),l="",r=!1):o?l+=u:r=!0;break;case" ":(r||o)&&(l+=u);break;case",":r||o?l+=u:(""!==l&&a.push(l),l="");break;default:l+=u}}}return""!==l&&a.push(l),[n,a]},A5G:function(e){return e.toString().replace(/^([0-9])$/,"0$1")},YF:function(e,i,n,t){e=ZC._i_(e),i=i||ZC.HG["date-formats"].minute,void 0===n&&(n=!1),void 0===t&&(t=0),n&&(e+=36e5*t);var a,l,r,o,A,C,s,u,Z=new Date;Z.setTime(e),n?(a=Z.getUTCHours(),l=Z.getUTCMinutes(),r=Z.getUTCSeconds(),o=Z.getUTCMilliseconds(),A=Z.getUTCDay(),C=Z.getUTCDate(),s=Z.getUTCMonth(),u=Z.getUTCFullYear()):(a=Z.getHours(),l=Z.getMinutes(),r=Z.getSeconds(),o=Z.getMilliseconds(),A=Z.getDay(),C=Z.getDate(),s=Z.getMonth(),u=Z.getFullYear());for(var c=[["mm",ZC.AO.A5G(s+1)],["dd",ZC.AO.A5G(C)],["Y",u],["y",u.toString().substr(2,2)],["F",ZC.HG["months-long"][s]],["m",s+1],["M",ZC.HG["months-short"][s]],["n",s],["d",C],["D",ZC.HG["days-short"][A]],["j",C],["l",ZC.HG["days-long"][A]],["N",A+1],["w",A],["S",function(){return C%10==1?"st":C%10==2?"nd":C%10==3?"rd":"th"}],["a",a<12?"am":"pm"],["A",a<12?"AM":"PM"],["g",a%12||12],["G",a],["h",ZC.AO.A5G(a%12||12)],["H",ZC.AO.A5G(a)],["i",ZC.AO.A5G(l)],["s",ZC.AO.A5G(r)],["q",o]],p=0;p<c.length;p++)i=i.replace("%"+c[p][0],c[p][1]);return i},A0G:{},Z4:function(e,i){var n=null;if(i&&i.BP?n=i.BP:i&&i.A&&i.A.BP&&(n=i.A.BP),"string"==typeof e&&-1!==e.indexOf("%color-")&&ZC.COLORS.length>0)for(var t=0;t<ZC.COLORS.length;t++)-1===e.indexOf("(+")&&-1===e.indexOf("(-")||(e=e.replace(/%color-(\d+?)\((\+|\-)(\d+?)\)/gi,function(){var e=ZC.AO.GD(ZC.COLORS[ZC._i_(arguments[1])]);return"+"===arguments[2]?e=ZC.AO.PP(e,ZC._i_(arguments[3])):"-"===arguments[2]&&(e=ZC.AO.JR(e,ZC._i_(arguments[3]))),e})),e=e.replace("%color-"+t,ZC.COLORS[t]);else"string"==typeof e&&n&&-1!==e.indexOf("%palette-")&&(e=n[ZC._i_(e.replace("%palette-",""))]);return e},GD:function(e,i){var n,t,a,l;if(null!==ZC._n_(ZC.AO.A0G[e]))return ZC.AO.A0G[e];var r=ZC.GY(String(e)),o=1,A=!1;return 0===r.length?"":("rgba("===(r=r.replace("0x","#")).substring(0,5)?(n=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*([0-9.]+)\\)","gi").exec(r))&&(1===(t=ZC.OZ(n[1])).length&&(t="0"+t),1===(a=ZC.OZ(n[2])).length&&(a="0"+a),1===(l=ZC.OZ(n[3])).length&&(l="0"+l),r="#"+t+a+l,o=ZC.BR(0,ZC.CY(1,parseFloat(n[4]))),A=!0):"rgb("===r.substring(0,4)?(n=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)","gi").exec(r))&&(1===(t=ZC.OZ(n[1])).length&&(t="0"+t),1===(a=ZC.OZ(n[2])).length&&(a="0"+a),1===(l=ZC.OZ(n[3])).length&&(l="0"+l),r="#"+t+a+l):"#"===r.substring(0,1)?4===r.length?r="#"+r.substring(1,2)+r.substring(1,2)+r.substring(2,3)+r.substring(2,3)+r.substring(3,4)+r.substring(3,4):7!==r.length&&(r=""):null!==ZC._n_(ZC.Q.A9K[r.toUpperCase()])&&(r="#"+ZC.Q.A9K[r.toUpperCase()]),"none"!==r&&"transparent"!==r||(r="-1"),i&&A?[r,o]:r)},A1C:{},A34:function(e,i){if(-1===e&&(e="#ffffff",i=0),null!==ZC._n_(ZC.AO.A1C[e+","+i]))return ZC.AO.A1C[e+","+i];4===e.length&&(e=e.substring(0,1)+e.substring(1,2)+e.substring(1,2)+e.substring(2,3)+e.substring(2,3)+e.substring(3,4)+e.substring(3,4));var n="rgba("+[ZC.R1(e.substring(1,3)),ZC.R1(e.substring(3,5)),ZC.R1(e.substring(5,7)),i].join(",")+")";return ZC.AO.A1C[e+","+i]=n,n},AD4:function(e,i,n){e/=255,i/=255,n/=255;var t,a,l,r=Math.max(e,i,n),o=Math.min(e,i,n);l=r;var A=r-o;if(a=0===r?0:A/r,r===o)t=0;else{switch(r){case e:t=(i-n)/A+(i<n?6:0);break;case i:t=(n-e)/A+2;break;case n:t=(e-i)/A+4}t/=6}return[t,a,l]},AD5:function(e,i,n){var t,a,l,r=Math.floor(6*e),o=6*e-r,A=n*(1-i),C=n*(1-o*i),s=n*(1-(1-o)*i);switch(r%6){case 0:t=n,a=s,l=A;break;case 1:t=C,a=n,l=A;break;case 2:t=A,a=n,l=s;break;case 3:t=A,a=C,l=n;break;case 4:t=s,a=A,l=n;break;case 5:t=n,a=A,l=C}return[255*t,255*a,255*l]},JR:function(e,i){if(-1===e)return-1;if(i>=100)return"#000000";e=ZC.AO.GD(e),void 0===i&&(i=10);var n=ZC.R1(e.substring(1,3)),t=ZC.R1(e.substring(3,5)),a=ZC.R1(e.substring(5,7)),l=ZC.AO.AD4(n,t,a);l[2]=i>0?Math.max(0,l[2]-l[2]*i/100):Math.min(1,l[2]-l[2]*i/100);var r=ZC.AO.AD5(l[0],l[1],l[2]);return r[0]=ZC._i_(r[0])<16?"0"+ZC.OZ(r[0]):ZC.OZ(r[0]),r[1]=ZC._i_(r[1])<16?"0"+ZC.OZ(r[1]):ZC.OZ(r[1]),r[2]=ZC._i_(r[2])<16?"0"+ZC.OZ(r[2]):ZC.OZ(r[2]),e="#"+r[0]+r[1]+r[2]},PP:function(e,i){if(-1===e)return-1;if(i>=100)return"#ffffff";e=ZC.AO.GD(e),void 0===i&&(i=10);var n=parseInt(e.substr(1,2),16),t=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return"#"+(0|256+n+(256-n)*i/100).toString(16).substr(1)+(0|256+t+(256-t)*i/100).toString(16).substr(1)+(0|256+a+(256-a)*i/100).toString(16).substr(1)},_hex2rgb_:function(e,i){var n=parseInt(e.substr(1,2),16),t=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return ZC._n_(i)?"rgb("+n+","+t+","+a+")":{r:n,g:t,b:a}},_rgb2hex_:function(e,i,n){return"#"+((1<<24)+(e<<16)+(i<<8)+n).toString(16).slice(1)},AAB:function(e,i,n){var t=ZC.AO._hex2rgb_(e);return(299*t.r+587*t.g+114*t.b)/1e3>=128?n:i},_colorAlpha_:function(e,i,n){e=ZC.AO.GD(e),i=ZC.AO.GD(i);var t=ZC.AO._hex2rgb_(e),a=ZC.AO._hex2rgb_(i),l={};for(var r in t)l[r]=Math.floor(n*t[r]+(1-n)*a[r]);return ZC.AO._rgb2hex_(l.r,l.g,l.b)},A3W:function(){},ABM:function(){},gc:function(e,i){var n;for(n=0;n<i.length;n++)e[i[n]]=null;for(n in e)0===n.indexOf("zc_")&&"function"==typeof e[n]&&(e[n]=null)},getPrecedence:function(e){var i=0;switch(e){case"%":case"*":case"/":i=3;break;case"+":case"-":i=4;break;case">":case"<":case">=":case"<=":i=6;break;case"==":case"!=":i=7;break;case"&&":i=11;break;case"||":i=12}return i},eval:function(e){for(var i=[],n=-1,t=0,a=ZC.AO.getRPNTokens(e),l=0;l<a.length;l++){var r=a[l];switch(r){case"%":case"*":case"/":case"+":case"-":case">":case"<":case">=":case"<=":case"==":case"!=":case"&&":case"||":let e=i[n--],a=i[n--],l=ZC._f_(e),o=ZC._f_(a);"%"===r?t=o%l:"*"===r?t=o*l:"/"===r?t=o/l:"+"===r?t=o+l:"-"===r?t=o-l:">"===r?t=o>l?1:0:"<"===r?t=o<l?1:0:">="===r?t=o>=l?1:0:"<="===r?t=o<=l?1:0:"=="===r?t=a===e?1:0:"!="===r?t=a!==e?1:0:"&&"===r?t=0!==o&&0!==l?1:0:"||"===r&&(t=0!==o||0!==l?1:0),i[++n]=t+"";break;default:i[++n]=r}}return 1===a.length&&(t=ZC._f_(i[0])),t},getTokens:function(e){for(var i=[],n=0,t=(e=e.replace(/===/g,"==").replace(/!==/g,"!=")).length,a="",l=!1;n<t;){var r=e.charAt(n),o=n+1<t?e.charAt(n+1):"#";if(" "===r)n++;else if("'"===r||'"'===r){var A=e.indexOf(r,n+1),C=e.substring(n,A+1);i.push(C),n=A+1}else if("="===r)"="===o&&(i.push("=="),n+=2);else if("!"===r)"="===o&&(i.push("!="),n+=2);else if("&"===r)"&"===o&&(i.push("&&"),n+=2);else if("|"===r)"|"===o&&(i.push("||"),n+=2);else if(">"===r)"="===o?(i.push(">="),n+=2):(i.push(">"),n++);else if("<"===r)"="===o?(i.push("<="),n+=2):(i.push("<"),n++);else if("("===r)i.push(r),n++;else if(")"===r)i.push(r),n++;else if("+"===r)i.push(r),n++;else if("-"===r){""===a||-1!==",(,<,<=,>,>=,==,!=,||,&&,".indexOf(","+a+",")?l=!0:i.push(r),n++}else if("*"===r)i.push(r),n++;else if("/"===r)i.push(r),n++;else if("%"===r)i.push(r),n++;else{var s=r;if(l&&(s="-"+s,l=!1),n++,"#"!==o){var u=!1;do{(u="."===o||o>="0"&&o<="9")&&(s+=o,o=n+1<t?e.charAt(n+1):"#",n++)}while(n<t&&u)}i.push(s)}i.length>0&&(a=i[i.length-1])}return i},getRPNTokens:function(e){for(var i=ZC.AO.getTokens(e),n=[],t=-1,a=[],l=0;l<i.length;l++){var r=i[l];switch(r){case"%":case"*":case"/":case"+":case"-":case">":case"<":case">=":case"<=":case"==":case"!=":case"&&":case"||":if(t>-1){var o=n[t];if("("===o)n[++t]=r;else ZC.AO.getPrecedence(r)<ZC.AO.getPrecedence(o)?n[++t]=r:(a.push(o),n[t]=r)}else n[++t]=r;break;case"(":n[++t]=r;break;case")":for(;"("!==n[t];)a.push(n[t]),t--;t--;break;default:a.push(r)}}for(;t>-1;)a.push(n[t--]);return a}},ZC.Q={A9K:{BLACK:"000000",BLUE:"0000FF",BROWN:"A52A2A",CYAN:"00FFFF",FUCHSIA:"FF00FF",GOLD:"FFD700",GRAY:"808080",GREEN:"008000",INDIGO:"4B0082",LIME:"00FF00",MAGENTA:"FF00FF",MAROON:"800000",NAVY:"000080",ORANGE:"FFA500",PINK:"FFC0CB",PURPLE:"800080",RED:"FF0000",SILVER:"C0C0C0",TURQUOISE:"40E0D0",VIOLET:"EE82EE",WHITE:"FFFFFF",YELLOW:"FFFF00"},FP:function(e,i,n){return"<area"+(n&&!i&&"hand"!==n?' style="cursor:'+n+'"':"")+(i&&"arrow"!==n||"hand"===n?' href="javascript:;"':"")+' shape="'+e+'" '},ABA:function(e){},C1:function(e){},_sh_:function(e,i){var n,t,a,l=[],r=i.JZ,o=i.ON,A=i.PA,C=r-A/2;if(e.length>0){var s=0,u=0;for(0!==r&&(s=ZC._i_(C*ZC.EF(o)+A),u=ZC._i_(C*ZC.EL(o)+A)),n=0,t=e.length;n<t;n++)if(null!==ZC._n_(e[n])){var Z=[];for(a=0;a<e[n].length;a++)Z[a]=e[n][a];var c=Z.length;if(2===c||4===c)for(a=0;a<c;a++)Z[a]=e[n][a]+(a%2?u+ZC._c_(i.BJ,0):s+ZC._c_(i.BK,0));l.push(Z)}else l.push(null)}return l},_txp_:function(e,i,n,t,a){void 0===a&&(a=!1);var l=[e[0],e[1]];if(e.length>=4&&(l[2]=e[2],l[3]=e[3]),e.length>=6&&(l[4]=e[4],l[5]=e[5]),7===e.length&&(l[6]=e[6]),4===ZC.BOUNDS.length&&!(ZC.DS(l[0],ZC.BOUNDS[0],ZC.BOUNDS[2])&&ZC.DS(l[1],ZC.BOUNDS[1],ZC.BOUNDS[3])&&(4!==l.length||ZC.DS(l[2],ZC.BOUNDS[0],ZC.BOUNDS[2])&&ZC.DS(l[3],ZC.BOUNDS[1],ZC.BOUNDS[3]))))return null;switch(i){case"canvas":case"svg":var r,o;if(n.D0)r=o=n.B1%2==1?.5:0,l[0]=Math.round(l[0])-r,l[1]=Math.round(l[1])-o,4===l.length&&(l[2]=Math.round(l[2])-r,l[3]=Math.round(l[3])-o);"canvas"!==i||t||"undefined"!=typeof n.BK&&"undefined"!=typeof n.BJ&&(l[0]+=n.BK,l[1]+=n.BJ,4===l.length&&(l[2]+=n.BK,l[3]+=n.BJ))}return l},A33:function(e,i,n,t,a){},MJ:function(e,i){},F8:function(e,i,n){},EW:function(e){var i;e instanceof Array||(e=[e]);for(var n=0,t=e.length;n<t;n++)"object"!=typeof(i=e[n])&&(i=ZC.AL(e[n])),i&&("undefined"!=typeof i.parentElement?i.parentElement.removeChild(i):"undefined"!=typeof i.parentNode&&i.parentNode.removeChild(i))},G6:function(e,i){},P9:function(e,i){},AAZ:function(e){return!0},TC:function(e){},IW:function(e,i,n,t,a,l,r,o){},EE:function(e,i){switch("string"==typeof e&&(e=ZC.AL(e)),i){case"canvas":return e.getContext("2d")}},K6:function(e,i){},HL:function(e,i){},ABN:function(e){},XL:function(e){},ADB:function(e){},I2:function(e){},VW:null,A48:function(e,i,n,t,a,l,r){null===ZC._n_(r)&&(r=!1);var o,A,C;if("[HTMLMODE]"===i.substring(0,10)&&(!0,i=i.substring(10)),o=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(i)){o[2];for(var s=o[1].replace(/\'|"/g,"").split(/;|:/),u=0,Z=s.length;u<Z-1;u+=2)switch(ZC.GY(s[u])){case"font-size":t=ZC._i_(ZC.GY(s[u+1]));break;case"font-family":n=ZC.GY(s[u+1]);break;case"font-weight":a=ZC.GY(s[u+1])}}i=i.replace(/<span style=(.+?)>(.+?)<\/(.+?)>/gi,"$2");var c=parseInt(10+i.length*t*1.5,10),p=parseInt(10+1.25*t,10);if(2===zingchart.DEV.CANVASVERSION){var{createCanvas:h,Canvas:f}=require("canvas");A=h(c,p)}else{A=new(require("canvas"))(c,p)}return(C=A.getContext("2d")).font=a+" "+t+'px "'+n+'"',C.fillStyle="rgba(0, 0, 0, 1)",C.textAlign="left",C.textBaseline="top",C.measureText(i).width}},ZC.AQ={ACI:function(e,i){var n,t,a=zingchart.DEV.SPREADFACTOR,l=[],r=0;function o(e,i){-1===ZC.AV(e,i)&&e.push(i)}for(n=0;n<e.length;n++)e[n]+=i;var A=-1;for(n=1;n<e.length;n++)ZC._a_(e[n]-e[n-1])<a?(l[r]=l[r]||{min:-1,max:-1,items:[]},-1===l[r].min&&(l[r].min=n>1?e[n-2]:i,-1===A&&(A=l[r].min),l[r].min),o(l[r].items,n-1),o(l[r].items,n)):l[r]&&(l[r].max=e[n],l[r].max,r++);l[r]&&-1===l[r].max&&(l[r].max=360+i);var C=l.length;if(C>1&&l[C-1].max-l[0].min==360){for(t=0;t<l[0].items.length;t++)e[l[0].items[t]]+=360;l[C-1].items=l[C-1].items.concat(l[0].items),l[C-1].max+=l[0].min,l=l.splice(1)}for(l.length>1&&(l[l.length-1].max=l[0].min+360),n=0;n<l.length;n++){var s=l[n],u=s.items.length,Z=(s.max-s.min)/(u+4);Z=ZC.CY(Z,a);var c=0;for(t=0;t<s.items.length;t++)c+=e[s.items[t]];c/=s.items.length;for(var p=!0;p;)for(p=!1,t=1;t<s.items.length;t++)if(e[s.items[t]]-e[s.items[t-1]]<Z){e[s.items[t-1]]<c?(e[s.items[t-1]]-=.45,e[s.items[t]]+=.05):e[s.items[t]]+=.25,p=!0;break}}return e},_int_:function(e){return Math.abs(e-ZC._i_(e))<Math.pow(10,-10)},VD:function(e,i,n){return n=n||1,!(e.x>i.x+i.width+n)&&(!(i.x>e.x+e.width+n)&&(!(e.y>i.y+i.height+n)&&!(i.y>e.y+e.height+n)))},_boxoverlap2_:function(e,i,n){return n=n||1,!(e.iX>i.iX+i.I+n)&&(!(i.iX>e.iX+e.I+n)&&(!(e.iY>i.iY+i.F+n)&&!(i.iY>e.iY+e.F+n)))},AGI:function(e,i){return e.iX>=i.iX&&e.iX<=i.iX+i.I&&e.iY>=i.iY&&e.iY<=i.iY+i.F&&e.iX+e.I>=i.iX&&e.iX+e.I<=i.iX+i.I&&e.iY+e.F>=i.iY&&e.iY+e.F<=i.iY+i.F},A6G:function(e,i,n){for(var t=Math.sqrt(e/Math.PI),a=Math.sqrt(i/Math.PI),l=Math.min(t,a),r=Math.max(t,a),o=ZC.MAX,A=0,C=l+r;C>r-l;C-=l/50){var s=l*l*Math.acos((C*C+l*l-r*r)/(2*C*l))+r*r*Math.acos((C*C+r*r-l*l)/(2*C*r))-.5*Math.sqrt((-C+l+r)*(C+l-r)*(C-l+r)*(C+l+r));Math.abs(s-n)<o&&(o=Math.abs(s-n),A=C)}return A},BN:function(e,i,n,t){return[e+n*Math.cos(2*t*Math.PI/360),i+n*Math.sin(2*t*Math.PI/360)]},A5L:function(e,i,n,t,a){var l=ZC.U4(Math.atan((t-i)/(n-e)));return[e+ZC._i_(ZC.EF(l)*a),i+ZC._i_(ZC.EL(l)*a)]},K1:function(e,i,n,t,a,l){if(a=null===ZC._n_(a)?0:a,l=null===ZC._n_(l)||l,n-e!=0){var r=0,o=0,A=Math.atan((t-i)/(n-e));return(a<1||l)&&(r=a/2.5*Math.cos(A),o=a/2.5*Math.sin(A)),[(e+n)/2+(e<n?r:-r),(i+t)/2+o]}return[e,(i+t)/2]},A3X:function(e,i){var n=(e[1]-i[1])/(e[0]-i[0]);return[n,e[1]-n*e[0]]},A5K:function(e,i,n,t){var a,l,r,o,A,C,s,u;return i[0]===t[0]&&i[1]===t[1]?i:e[0]===n[0]&&e[1]===n[1]?e:(e[0]===i[0]&&n[0]===t[0]?e[0]===n[0]?(s=e[0],u=(e[1]+i[1]+n[1]+t[1])/4):(s=NaN,u=NaN):e[0]===i[0]?(A=(o=ZC.AQ.A3X(n,t))[0],C=o[1],u=A*(s=e[0])+C):n[0]===t[0]?(l=(a=ZC.AQ.A3X(n,t))[0],r=a[1],u=l*(s=n[0])+r):(l=(a=ZC.AQ.A3X(e,i))[0],r=a[1],A=(o=ZC.AQ.A3X(n,t))[0],u=l*(s=((C=o[1])-r)/(l-A))+r),[s,u])},PJ:function(e,i,n){null===ZC._n_(i)&&(i=5);var t=0,a=0;null!==ZC._n_(n)&&(t=n[0],a=n[1]);for(var l,r,o,A="",C=ZC.ie67?ZC.MAPTX:0,s=0,u=e.length;s<u;s++)e[s]&&(0===s?(r=e[s][0]+C+t,o=e[s][1]+C+a,l=s,A+=Math.round(r,10)+","+Math.round(o,10)+","):Math.sqrt((e[s][0]+C-r)*(e[s][0]+C-r)+(e[s][1]+C-o)*(e[s][1]+C-o))>i&&e[s-1]&&(Math.sqrt((e[s][0]-e[s-1][0])*(e[s][0]-e[s-1][0])+(e[s][1]-e[s-1][1])*(e[s][1]-e[s-1][1]))>i&&s-l>1&&(A+=Math.round(e[s-1][0]+C+t,10)+","+Math.round(e[s-1][1]+C+a,10)+","),r=e[s][0]+C+t,o=e[s][1]+C+a,l=s,A+=Math.round(r,10)+","+Math.round(o,10)+","));return A=A.substring(0,A.length-1)},Z1:function(e,i){if(null===ZC._n_(e)||e.length<2)return"";null===ZC._n_(i)&&(i=6,ZC.mobile&&(i+=10));var n,t,a,l,r,o=[];for(n=0,t=e.length;n<t;n++)(0===n||n>0&&null!==ZC._n_(e[n])&&null!==ZC._n_(e[n-1])&&e[n].join("/")!==e[n-1].join("/")||null===ZC._n_(e[n]))&&o.push(e[n]);var A=[],C=[],s=!1;for(n=0,t=o.length;n<t;n++)if(o[n]){var u,Z,c,p,h=o[n][0],f=o[n][1];if(o[n-1]&&(c=o[n-1][0],p=o[n-1][1],c===h&&(c-=.1)),o[n+1]&&(u=o[n+1][0],Z=o[n+1][1],u===h&&(u+=.1)),0===n)a=Math.atan((Z-f)/(u-h)),r=l=ZC.U4(a),u>=h&&(r+=180),A.push(ZC.AQ.BN(h,f,i,l+90),ZC.AQ.BN(h,f,i,r),ZC.AQ.BN(h,f,i,l+270));else if(n===o.length-1)a=Math.atan((p-f)/(c-h)),r=l=ZC.U4(a),c>=h&&(r+=180),s?(C.push(ZC.AQ.BN(h,f,i,l+270),ZC.AQ.BN(h,f,i,r),ZC.AQ.BN(h,f,i,l+90)),s=!1):A.push(ZC.AQ.BN(h,f,i,l+270),ZC.AQ.BN(h,f,i,r),ZC.AQ.BN(h,f,i,l+90));else{var _=Math.atan((Z-f)/(u-h)),d=Math.atan((f-p)/(h-c));r=ZC.U4((_+d)/2),A.push(ZC.AQ.BN(h,f,i,r+270)),u>=h&&c>=h?(A.push(ZC.AQ.BN(h,f,i,r+180)),A.push(ZC.AQ.BN(h,f,i,r+90)),C.push(ZC.AQ.BN(h,f,i,r)),s=!0):u<=h&&c<=h?(A.push(ZC.AQ.BN(h,f,i,r)),A.push(ZC.AQ.BN(h,f,i,r+90)),C.push(ZC.AQ.BN(h,f,i,r+180)),s=!0):C.push(ZC.AQ.BN(h,f,i,r+90))}}for(n=C.length-1;n>=0;n--)A.push(C[n]);return A},A2F:function(e,i){var n=0,t=0,a=[];switch(e+=""){case"horizontal":case"h":n=1,t=i;break;case"vertical":case"v":n=i,t=1;break;default:a=e.split("x"),null!==ZC._n_(a[0])&&ZC._i_(a[0])+""===a[0]&&(n=ZC._i_(a[0])),null!==ZC._n_(a[1])&&ZC._i_(a[1])+""===a[1]&&(t=ZC._i_(a[1])),0===t&&0===n?(n=Math.ceil(Math.sqrt(i)),t=Math.ceil(i/n)):(0===t&&(t=Math.ceil(i/n)),0===n&&(n=Math.ceil(i/t)))}return[n,t]},AB4:function(e,i){return.5*(2*i[1]+(-i[0]+i[2])*e+(2*i[0]-5*i[1]+4*i[2]-i[3])*e*e+(-i[0]+3*i[1]-3*i[2]+i[3])*e*e*e)},ABD:function(e,i){var n,t,a,l,r,o=e.length,A=[],C=[],s=[];for(n=0;n<o-1;n++)t=e[n+1]-e[n],a=i[n+1]-i[n],C.push(t),A.push(a),s.push(a/t);var u=[s[0]];for(n=0;n<C.length-1;n++){l=s[n];var Z=s[n+1];if(l*Z<=0)u.push(0);else{t=C[n];var c=C[n+1];r=t+c,u.push(3*r/((r+c)/l+(r+t)/Z))}}u.push(s[s.length-1]);var p=[],h=[];for(n=0;n<u.length-1;n++){l=s[n];var f=u[n],_=1/C[n];r=f+u[n+1]-l-l,p.push((l-f-r)*_),h.push(r*_*_)}return function(n){var t=e.length-1;if(n===e[t])return i[t];for(var a,l=0,r=h.length-1;l<=r;){a=Math.floor(.5*(l+r));var o=e[a];if(o<n)l=a+1;else{if(!(o>n))return i[a];r=a-1}}t=Math.max(0,r);var A=n-e[t],C=A*A;return i[t]+u[t]*A+p[t]*C+h[t]*A*C}},YC:function(e,i,n,t){null===ZC._n_(t)&&(t=1/(n/i.length*4));var a,l,r=[];if(e)if((a=[].concat(i))[1]&&a[2]){a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0];var o=ZC.AQ.ABD([0,1,2,3],a);for(l=1;l<=2;l+=t)r.push([l-1,o(l)])}else r.push([]);else for(var A=1;A<i.length-2;A++)if(1!==t)if((a=[i[A-1],i[A],i[A+1],i[A+2]])[1]&&a[2])for(a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0],l=0;l<=1;l+=t){var C=A+l,s=ZC.AQ.AB4(l,a);r.push([C-1,s])}else r.push([]);else r.push([A-1,i[A]]);return r},A0S:function(e){for(var i=Math.round(ZC.FU(ZC._a_(e))/Math.LN10),n=[1,2,4,5,6,8,10],t=ZC.MAX,a=1,l=0;l<n.length;l++){var r=n[l]*Math.pow(10,i)-e;ZC._a_(r)<t&&(a=n[l],t=ZC._a_(r))}return a*Math.pow(10,i)},_nice_number_:function(e,i){var n,t;return n=Math.floor(Math.log(e)/Math.log(10)),t=e/Math.pow(10,n),(i?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10)*Math.pow(10,n)},WI:function(e,i,n,t,a,l){var r,o,A,C,s,u;null===ZC._n_(a)&&(a=!0),l=null===ZC._n_(l)?10:Math.min(Math.max(2,l),100),null!==ZC._n_(t)&&0!==t||(t=1);var Z=Math.floor(ZC.FU(ZC._a_(i))/Math.LN10);e===i&&(i+=Math.pow(10,Z)),r=e,o=i,C=ZC.AQ._nice_number_(o-r,!1),null===ZC._n_(n)?(A=C/(l-1),A=ZC.AQ._nice_number_(A,!0),A*=t):A=n,a?(s=Math.floor(r/A)*A,u=Math.ceil(o/A)*A):(s=r,u=o,A=null===ZC._n_(n)?C/(l-1):n);var c=Math.floor(ZC.FU(ZC._a_(A))/Math.LN10),p=c<0?ZC._a_(c):0;if(0===p){var h=(""+A).split(".");2===h.length&&(p=h[1].length)}return[s,u,A,p,A]},_intersect_:function(e,i,n,t){var a=e[0],l=e[1],r=i[0],o=i[1],A=n[0],C=n[1],s=t[0],u=t[1];if(a===r&&l===o||A===s&&C===u)return null;var Z=(u-C)*(r-a)-(s-A)*(o-l);if(0===Z)return null;var c=((s-A)*(l-C)-(u-C)*(a-A))/Z,p=((r-a)*(l-C)-(o-l)*(a-A))/Z;return c<0||c>1||p<0||p>1?null:[a+c*(r-a),l+c*(o-l)]},_outside_:function(e,i){return e[0]<i[0]||e[0]>i[2]||(e[1]<i[1]||e[1]>i[3])},_angle_:function(e,i){var n=i[0]-e[0],t=i[1]-e[1];return Math.atan2(t,n)}},ZC.XR={md5:function(e){return ZC.XR.ACW(ZC.XR.ACX(ZC.XR.ACP(e)))},ACX:function(e){return ZC.XR.ACC(ZC.XR.ACY(ZC.XR.ACD(e),8*e.length))},ACW:function(e){for(var i,n="",t=0,a=e.length;t<a;t++)i=e.charCodeAt(t),n+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return n},ACP:function(e){for(var i,n,t="",a=-1,l=e.length;++a<l;)i=e.charCodeAt(a),n=a+1<l?e.charCodeAt(a+1):0,55296<=i&&i<=56319&&56320<=n&&n<=57343&&(i=65536+((1023&i)<<10)+(1023&n),a++),i<=127?t+=String.fromCharCode(i):i<=2047?t+=String.fromCharCode(192|i>>>6&31,128|63&i):i<=65535?t+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):i<=2097151&&(t+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return t},ACD:function(e){var i,n=Array(e.length>>2);for(i=0;i<n.length;i++)n[i]=0;for(i=0;i<8*e.length;i+=8)n[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return n},ACC:function(e){for(var i="",n=0;n<32*e.length;n+=8)i+=String.fromCharCode(e[n>>5]>>>n%32&255);return i},ACY:function(e,i){function n(e,i,n,t,a,l){return o((r=o(o(i,e),o(t,l)))<<(A=a)|r>>>32-A,n);var r,A}function t(e,i,t,a,l,r,o){return n(i&t|~i&a,e,i,l,r,o)}function a(e,i,t,a,l,r,o){return n(i&a|t&~a,e,i,l,r,o)}function l(e,i,t,a,l,r,o){return n(i^t^a,e,i,l,r,o)}function r(e,i,t,a,l,r,o){return n(t^(i|~a),e,i,l,r,o)}function o(e,i){var n=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(n>>16)<<16|65535&n}e[i>>5]|=128<<i%32,e[14+(i+64>>>9<<4)]=i;for(var A=1732584193,C=-271733879,s=-1732584194,u=271733878,Z=0,c=e.length;Z<c;Z+=16){var p=A,h=C,f=s,_=u;C=r(C=r(C=r(C=r(C=l(C=l(C=l(C=l(C=a(C=a(C=a(C=a(C=t(C=t(C=t(C=t(C,s=t(s,u=t(u,A=t(A,C,s,u,e[Z],7,-680876936),C,s,e[Z+1],12,-389564586),A,C,e[Z+2],17,606105819),u,A,e[Z+3],22,-1044525330),s=t(s,u=t(u,A=t(A,C,s,u,e[Z+4],7,-176418897),C,s,e[Z+5],12,1200080426),A,C,e[Z+6],17,-1473231341),u,A,e[Z+7],22,-45705983),s=t(s,u=t(u,A=t(A,C,s,u,e[Z+8],7,1770035416),C,s,e[Z+9],12,-1958414417),A,C,e[Z+10],17,-42063),u,A,e[Z+11],22,-1990404162),s=t(s,u=t(u,A=t(A,C,s,u,e[Z+12],7,1804603682),C,s,e[Z+13],12,-40341101),A,C,e[Z+14],17,-1502002290),u,A,e[Z+15],22,1236535329),s=a(s,u=a(u,A=a(A,C,s,u,e[Z+1],5,-165796510),C,s,e[Z+6],9,-1069501632),A,C,e[Z+11],14,643717713),u,A,e[Z],20,-373897302),s=a(s,u=a(u,A=a(A,C,s,u,e[Z+5],5,-701558691),C,s,e[Z+10],9,38016083),A,C,e[Z+15],14,-660478335),u,A,e[Z+4],20,-405537848),s=a(s,u=a(u,A=a(A,C,s,u,e[Z+9],5,568446438),C,s,e[Z+14],9,-1019803690),A,C,e[Z+3],14,-187363961),u,A,e[Z+8],20,1163531501),s=a(s,u=a(u,A=a(A,C,s,u,e[Z+13],5,-1444681467),C,s,e[Z+2],9,-51403784),A,C,e[Z+7],14,1735328473),u,A,e[Z+12],20,-1926607734),s=l(s,u=l(u,A=l(A,C,s,u,e[Z+5],4,-378558),C,s,e[Z+8],11,-2022574463),A,C,e[Z+11],16,1839030562),u,A,e[Z+14],23,-35309556),s=l(s,u=l(u,A=l(A,C,s,u,e[Z+1],4,-1530992060),C,s,e[Z+4],11,1272893353),A,C,e[Z+7],16,-155497632),u,A,e[Z+10],23,-1094730640),s=l(s,u=l(u,A=l(A,C,s,u,e[Z+13],4,681279174),C,s,e[Z],11,-358537222),A,C,e[Z+3],16,-722521979),u,A,e[Z+6],23,76029189),s=l(s,u=l(u,A=l(A,C,s,u,e[Z+9],4,-640364487),C,s,e[Z+12],11,-421815835),A,C,e[Z+15],16,530742520),u,A,e[Z+2],23,-995338651),s=r(s,u=r(u,A=r(A,C,s,u,e[Z],6,-198630844),C,s,e[Z+7],10,1126891415),A,C,e[Z+14],15,-1416354905),u,A,e[Z+5],21,-57434055),s=r(s,u=r(u,A=r(A,C,s,u,e[Z+12],6,1700485571),C,s,e[Z+3],10,-1894986606),A,C,e[Z+10],15,-1051523),u,A,e[Z+1],21,-2054922799),s=r(s,u=r(u,A=r(A,C,s,u,e[Z+8],6,1873313359),C,s,e[Z+15],10,-30611744),A,C,e[Z+6],15,-1560198380),u,A,e[Z+13],21,1309151649),s=r(s,u=r(u,A=r(A,C,s,u,e[Z+4],6,-145523070),C,s,e[Z+11],10,-1120210379),A,C,e[Z+2],15,718787259),u,A,e[Z+9],21,-343485551),A=o(A,p),C=o(C,h),s=o(s,f),u=o(u,_)}return Array(A,C,s,u)}},"undefined"==typeof zingchart&&(zingchart={ADD:!0}),zingchart.clipart={},zingchart.widgets={},zingchart.plugins={},zingchart.pool={},zingchart.pool.size=0,zingchart.pool.data={},zingchart.pool.getInstance=function(e,i,n,t){var a;if(null!==ZC._n_(zingchart.pool.data[n]))(a=zingchart.pool.data[n])._POOL_=!0,ZC.SKIPOBJCOUNT=!0,t||(a.$i(i),a.K=n),ZC.SKIPOBJCOUNT=!1;else{switch(e){case"DQ":a=new ZC.DQ(i);break;case"HU":a=new ZC.HU(i);break;case"DT":a=new ZC.DT(i);break;case"P8":a=new ZC.P8(i);break;case"CZ":a=new ZC.CZ(i)}a.K=n}return a},zingchart.i18n={},zingchart.THEMES={},zingchart.V3D=2,zingchart.QUOTEDVALUES=!1,zingchart.EDITSOURCE=1,zingchart.MODULESDEP={line:"xy",line3d:"3d,line",area:"xy",area3d:"3d,area",vline:"yx",varea:"yx",vbar:"xy",vbar3d:"3d,vbar",hbar:"yx",hbar3d:"3d,hbar",scatter:"xy",bubble:"xy",hscatter:"yx",hbubble:"yx",pie:"r",pie3d:"3d,pie",nestedpie:"r",gauge:"r",vbullet:"vbar",hbullet:"hbar",vfunnel:"xy",hfunnel:"yx",piano:"xy",radar:"r",range:"xy",vrange:"yx",stock:"xy,vbar",venn:"r"},zingchart.SKIP={EVENT:!1,ANIMATION:!1,LEGEND:!1,CSV:!1,PARSE3D:!1},zingchart.TMPFOLDER="/tmp/",zingchart.CANVASTEXT=1,zingchart.DEV={STRICTRULES:0,SORTTOKENS:1,PLOTSTATS:1,RESOURCES:1,KEEPSOURCE:1,SPREADTYPE:0,SPREADFACTOR:10,IGNORESUBUNIT:0,STACKINGLOGIC:-1,SMARTDATELABELS:0,GC:0,CHECKDECIMALS:0,CACHESELECTION:0,MEDIARULES:1,SKIPTRACKERS:0,RESIZESPEED:250,DEBOUNCESPEED:250,COPYDATA:1,MAPSONBOTTOM:0,MAXPOOLSIZE:1024,MINTRACKERDIFF:0,CANVASVERSION:2,COPYVALUES:1},zingchart.SYNTAX="mixed",zingchart.MODULESDIR="./modules/",zingchart.MODULESDIR="./modules-nodejs/",zingchart.DEFAULT={height:480,width:640},zingchart.FASTWIDTH=0,zingchart.FONTSIZE=11,zingchart.FONTFAMILY="Lucida Sans Unicode,Lucida Grande,Lucida Sans,Helvetica,Arial,sans-serif",zingchart.loadModules=function(e,i){for(var n=(""+e).split(","),t=0,a=n.length;t<a;t++){var l=ZC.GY(n[t]);l=ZC.ALIAS[l]||l,-1!==ZC.AV(["bar","bar3d","funnel","bullet"],l)&&(l="v"+l);var r=zingchart.MODULESDEP[l];null!==ZC._n_(r)&&zingchart.loadModules(r),-1===ZC.AV(ZC.RM,l)&&ZC.RM.push(l)}i&&zingchart.A1S(null,ZC.RM,i)},zingchart.A1S=function(e,i,n){if(0===i.length)n();else{for(var t=0;t<i.length;t++)require(zingchart.MODULESDIR+"zingchart-nodejs-"+i[t]+".min");n()}},zingchart.ACO=function(e){return-1!==ZC.AV(ZC.RM,e)&&-1===ZC.AV(ZC.WJ,e)},zingchart.ZZ=null,zingchart.params={},zingchart.render=function(e,i){return zingchart.A94(e,"canvas")},zingchart.setlabel=zingchart.setLabel=function(e,i){ZC.HG[e]=i},zingchart.HW=[],zingchart.Y1={},zingchart.J3={},zingchart.bind=function(e,i,n){e=e||"zingchart-global",zingchart.J3[e]||(zingchart.J3[e]={}),zingchart.J3[e][i]?zingchart.J3[e][i].push({fn:n}):zingchart.J3[e][i]=[{fn:n}]},zingchart.unbind=function(e,i,n){if(e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][i])if(n){for(var t=0,a=zingchart.J3[e][i].length;t<a;t++)if(zingchart.J3[e][i][t].fn===n){zingchart.J3[e][i].splice(t,1);break}}else zingchart.J3[e][i]=null},zingchart.callEvent=function(e,i,n,t){if(e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][i]){for(var a=0,l=zingchart.J3[e][i].length;a<l;a++)null!==ZC._n_(t)?n[n.length-1]=zingchart.J3[e][i][a].fn.apply(zingchart,n):zingchart.J3[e][i][a].fn.apply(zingchart,n);if(null!==ZC._n_(t))return n[n.length-1]}},zingchart.hasEvent=function(e,i){return e=e||"zingchart-global",zingchart.J3[e]&&zingchart.J3[e][i]},zingchart.A94=function(e,n){ZC._todash_(e,!1);var t="";null!==ZC._n_(H=e.container)&&(t=H),null!==ZC._n_(H=e.id)&&(t=H);for(i=0;i<zingchart.HW.length;i++)zingchart.HW[i].K===t&&zingchart.HW[i].M7;zingchart.params[t]={},ZC._cp_(e,zingchart.params[t]);var a=!1,l=null;for(i=0;i<zingchart.HW.length;i++)zingchart.HW[i].K===t&&(zingchart.HW[i]=new ZC.Q9,l=zingchart.HW[i],a=!0);a||((l=new ZC.Q9).M7="init",zingchart.HW.push(l)),l.K=t,zingchart.Y1[t]=!0;var r="";zingchart.THEME&&(r=zingchart.THEME),e.data&&null!==ZC._n_(H=e.data.theme)&&(r=H),null!==ZC._n_(H=e.theme)&&(r=H);var o="",A="png",C=1;null!==ZC._n_(H=e.wmtype)&&(C=ZC._i_(H),ZC.DS(C,1,3)||(C=1));var s="br";null!==ZC._n_(H=e.wmposition)&&-1!==ZC.AV(["top-left","tl","top-right","tr","bottom-left","bl","bottom-right","br"],H)&&(s=H),null!==ZC._n_(H=e.filename)&&(o=H),null!==ZC._n_(H=e.filetype)&&"png"!==(A=H)&&"jpeg"!==A&&(A="png"),null!==ZC._n_(H=e.imagemap)&&(l.bImageMap=ZC._b_(H)),null!==ZC._n_(H=e.strictmode)&&ZC._b_(H)&&(zingchart.DEV.SORTTOKENS=0,zingchart.DEV.PLOTSTATS=0,zingchart.DEV.KEEPSOURCE=0,zingchart.DEV.MEDIARULES=0,zingchart.DEV.COPYDATA=0,zingchart.SYNTAX="dashed"),G1=e.width||""+zingchart.DEFAULT.width,MX=e.height||""+zingchart.DEFAULT.height,"auto"===G1&&(G1=""+zingchart.DEFAULT.width),"auto"===MX&&(MX=""+zingchart.DEFAULT.height),I=ZC._i_(G1),F=ZC._i_(MX),I=0===I?zingchart.DEFAULT.width:I,F=0===F?zingchart.DEFAULT.height:F;var u=e.dataurl||"",Z=e.defaultsurl||"",c=null,p="",h=null;for(var f in null!==ZC._n_(H=e.data)&&("string"==typeof H?p=H:h=zingchart.DEV.COPYDATA?JSON.parse(JSON.stringify(H)):H),null!==ZC._n_(H=e.defaults)&&("string"==typeof H&&(H=JSON.parse(H)),c=H),null!==ZC._n_(H=e["http-response"])&&(l.AE0=H),null!==ZC._n_(H=e.imggen)&&(l.ZA=ZC._b_(H)),l.ZA&&(l.G4=null),l.JO=G1+"/"+MX,l.AB=n,l.A=l,l.iX=0,l.iY=0,l.I=I,l.F=F,l.G1=G1,l.MX=MX,l.QO=u,l.EX=p,l.MF=h,l.QP=Z,l.KR=c,l.UE=!1,l.L2=r,l.NK=o,l.sFileType=A,l.AE1=C,l.ACT=s,l.G=l,null!==ZC._n_(H=e["auto-load-modules"])&&(l.A6H=ZC._b_(H)),null!==ZC._n_(H=e.events)&&(l.A17=H),null!==ZC._n_(H=e.modules)&&(l.A1D=H),null!==ZC._n_(H=e.format)&&(l.CL=H),null!==ZC._n_(H=e.csvdata)&&(l.NT=H),null!==ZC._n_(H=e.locale)&&null!==ZC._n_(zingchart.i18n[H])&&(l.UG=H,ZC.HG=zingchart.i18n[H]),null!==ZC._n_(H=e["cache-control"])&&(l.N5=H),null!==ZC._n_(H=e.accessibility)&&(l.bA11y=ZC._b_(H)),null!==ZC._n_(H=e.description)&&(l.NV=H+""),zingchart.params)if(!zingchart.Y1[f])for(var _ in delete zingchart.params[f],delete ZC.TS[f],zingchart.pool.data)0===_.indexOf(f+"-")&&(delete zingchart.pool.data[_],zingchart.pool.size--);return l.render(),l},zingchart.i18n.en_us={rtl:!1,"decimals-separator":".","thousands-separator":"","menu-enablepagescroll":"Enable Page Scroll","menu-disablepagescroll":"Disable Page Scroll","menu-reload":"Reload","menu-print":"Print Chart","menu-viewaspng":"View As PNG","menu-viewasjpg":"View As JPG","menu-downloadpdf":"Download PDF","menu-downloadsvg":"Download SVG","menu-downloadcsv":"Download CSV","menu-downloadxls":"Download XLS","menu-viewdatatable":"View Data Table","menu-hidedatatable":"Hide Data Table","menu-exportdata":"Export Data","menu-zoomin":"Zoom In","menu-zoomout":"Zoom Out","menu-viewall":"View All","menu-viewsource":"View Source","menu-bugreport":"Submit Bug","menu-switchto2d":"Switch To 2D","menu-switchto3d":"Switch To 3D","menu-showguide":"Show Guide","menu-hideguide":"Hide Guide","menu-switchtolin":"Show Linear Scale","menu-switchtolog":"Show Log Scale","menu-fullscreen":"Full Screen","menu-exitfullscreen":"Exit Full Screen","menu-goback":"Go Back","menu-goforward":"Go Forward","date-formats":{msecond:"%d %M %Y<br>%g:%i:%s %A<br>%q ms",second:"%d %M %Y<br>%g:%i:%s %A",minute:"%d %M %Y<br>%g:%i %A",hour:"%d %M %Y<br>%g %A",day:"%d %M %Y",month:"%M %Y",year:"%Y"},"days-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"days-long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"months-short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"months-long":["January","February","March","April","May","June","July","August","September","October","November","December"],"sync-wait":"Wait...","export-wait":"Exporting...","progress-wait-long":"Wait. Loading...","progress-wait-short":"Wait...","progress-wait-mini":"...","about-close":"Close","viewimage-close":"Close","legend-pagination":"Page %page% of %pages%"},ZC.HG=zingchart.i18n.en_us,zingchart.getLoader=function(e){for(var i=0;i<zingchart.HW.length;i++)if(zingchart.HW[i].K===e)return zingchart.HW[i];return null},zingchart.getGraph=function(e,i){return e.P0(i)},zingchart.clearLayer=function(e){e.A7&&e.A7.onmouseout();for(var i=0;i<e.AG.length;i++)e.AG[i].LN()},zingchart.getGraphInfo=function(e,i,n){return e.A5J(i,n)},zingchart.initThemes=function(e){e&&e.AAA(!0)},zingchart.setModule=function(e){ZC.WJ.push(e)},zingchart.getModules=function(e){return e.A1D.split(",")},zingchart.defineModule=function(e,i,n){switch(zingchart.setModule(e),i){case"chart":zingchart.bind(null,"dataparse",function(i,t){for(var a=t.graphset.length,l=0;l<a;l++)if(t.graphset[l].type===e){var r=t.graphset[l];r.id?r.id=r.id:r.id=e.replace(/-/g,"")+l,t.graphset[l]=n(r)}return t});break;case"plugin":zingchart.bind(null,"dataparse",function(i,t){var a=zingchart.getLoader(i.id);if(-1!==zingchart.getModules(a).indexOf(e))for(var l=t.graphset.length,r=null,o=0;o<l;o++)(r=t.graphset[o]).hasOwnProperty(e)&&(t.graphset[o]=n(r,i.id));return t})}},zingchart.getPalette=function(e,i,n){return n=n||"bar",e.B6.A9Z(i,n)},zingchart.getObject=function(e,i,n){var t,a;switch(n=n||"label"){case"shape":for(t=0,a=e.FI.length;t<a;t++)if(e.FI[t].HA===i||t===i)return e.FI[t].BG;break;case"label":for(t=0,a=e.BY.length;t<a;t++)if(e.BY[t].HA===i||t===i)return e.BY[t]}return null},zingchart.getInstance=function(e,i){switch(i){case"style":return new ZC.CZ(e);case"shape":return new ZC.DT(e);case"box":return new ZC.HU(e);case"textbox":return new ZC.DQ(e)}return null},zingchart.normalize=function(e){ZC._todash_(e)},zingchart.copy=function(e,i){ZC._cp_(e,i)},zingchart.formatDate=function(e,i,n,t){return ZC.AO.YF(e,i,n,t)},zingchart.formatNumber=function(e,i){return ZC.AO.G5(e,i)},zingchart.fireEvent=function(e,i,n){ZC.AO.C0(e,i,n)},zingchart.A97=[],zingchart.extendAPI=function(e,i){zingchart.A97.push({call:e,api:i})},zingchart.exec=function(e,i,n){return zingchart.getLoader(e)?zingchart.ACZ(e,i,n):zingchart.exec_flash?zingchart.exec_flash(e,i,n):void 0},zingchart.ACZ=function(e,i,n){var t,a,l;"string"==typeof(n=n||{})&&(n=JSON.parse(n));var r,o,A=zingchart.getLoader(e);if(null!==ZC._n_(n.preservezoom)&&(A.E.preservezoom=ZC._b_(n.preservezoom)),A)switch(i){case"setmode":if("undefined"==typeof A.E["mode-flags"]&&(A.E["mode-flags"]=A.KQ.join(",")),""===n.mode&&"undefined"!=typeof A.E["mode-flags"])A.KQ=A.E["mode-flags"].split(",");else{A.KQ=[];var C=(""+n.mode).split(",");-1!==ZC.AV(C,"static")&&A.KQ.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity")}break;case"destroy":for(var s in delete zingchart.Y1[e],zingchart.J3[e]&&delete zingchart.J3[e],delete zingchart.params[e],delete ZC.TS[e],zingchart.pool.data)0===s.indexOf(e+"-")&&(delete zingchart.pool.data[s],zingchart.pool.size--);var u=ZC.AV(zingchart.HW,A);-1!==u&&zingchart.HW.splice(u,1),A=null,ZC.AO.C0("destroy",null,{id:e});break;case"mapdata":A.AC3(n);break;case"getcharttype":return(r=A.CB(n.graphid))?r.AF:null;case"showversion":case"getversion":return ZC.VERSION}var Z=[];for(zingchart.ABR&&null!==(o=zingchart.ABR(e,i,n))&&(t=o),Z=["addobject","removeobject","updateobject","repaintobjects","getobjectsbyclass","getallobjects","getlabelinfo","getshapeinfo","setobjectsmode","settweenmode"],zingchart.AB3&&-1!==ZC.AV(Z,i)&&null!==(o=zingchart.AB3(e,i,n))&&(t=o),Z=["getimagedata","exportimage","saveasimage","exportdata","downloadCSV","downloadXLS","downloadRAW","viewDataTable"],zingchart.ABC&&-1!==ZC.AV(Z,i)&&null!==(o=zingchart.ABC(e,i,n))&&(t=o),Z=["getzoom","pan","zoomin","zoomout","zoomto","zoomtovalues","viewall"],zingchart.ABQ&&-1!==ZC.AV(Z,i)&&null!==(o=zingchart.ABQ(e,i,n))&&(t=o),Z=["clearselection","getselection","setselection","select","deselect"],zingchart.AAR&&-1!==ZC.AV(Z,i)&&null!==(o=zingchart.AAR(e,i,n))&&(t=o),Z=["clearfeed","getinterval","setinterval","stopfeed","startfeed"],zingchart.ABP&&-1!==ZC.AV(Z,i)&&null!==(o=zingchart.ABP(e,i,n))&&(t=o),a=0,l=zingchart.A97.length;a<l;a++)i===zingchart.A97[a].call&&null!==(o=zingchart.A97[a].api.call(zingchart,e,n))&&(t=o);return t},zingchart.ABR=function(e,i,n){"string"==typeof(n=n||{})&&(n=JSON.parse(n));var t,a,l,r,o,A,C,s,u,Z,c,p=zingchart.getLoader(e);null!==ZC._n_(n.update)&&ZC._b_(n.update),null!==ZC._n_(n.history)&&ZC._b_(n.history),"undefined"!=typeof n.smart&&ZC._b_(n.smart);if(p){switch(-1===ZC.AV(["resize","addplot","removeplot","modify","modifyplot","setnodevalue","addnode","removenode","setdata"],i)&&((a=p.FH()).params=n,ZC.AO.C0(i,p,a)),i){case"setfilename":p.NK=n.filename;break;case"getbubblesize":return(t=p.CB(n.graphid))&&(l=t.I7(n.plotindex,n.plotid))?l.getSize(n.value||1):null;case"getscaleinfo":return(t=p.CB(n.graphid))&&(r=t.BM(n.name||""))?null!==ZC._n_(n.value)?r.AR?r.AR(n.value):null:null!==ZC._n_(n.coord)&&r.NI?r.NI(n.coord):null:null;case"getobjectinfo":if(!(t=p.CB(n.graphid)))return null;var h={id:"K",x:"iX",y:"iY",width:"I",height:"F",color:"C2",lineColor:"B9",lineWidth:"B1",borderColor:"BX",borderWidth:"AU",backgroundColor1:"A0",backgroundColor2:"AE"};switch(n.object){case"graph":for(s in a={},h)a[s]=t[h[s]];return ZC._cp_({type:t.AF},a),a;case"plotarea":for(s in a={},h)a[s]=t.P[h[s]];return a;case"legend":if(a={},t.BE)for(s in h)a[s]=t.BE[h[s]];return a;case"scale":if(!(r=t.BM(n.name||"")))return null;for(s in a={},h)a[s]=r[h[s]];return ZC._cp_({type:r.AF,text:r.M&&r.M.AN||"",datetime:null!==r.F7&&"date"===r.F7.o.type,step:r.E3,step_:r.SK,stepSize:r.AD,values:r.V,placement:r.BA,aperture:r.EM,zooming:r.GP,offsetStart:r.A9,offsetEnd:r.BU,sizeFactor:r.JU,inversed:r.CM},a),r.M&&""!==r.M.AN&&(a.label={x:r.M.iX,y:r.M.iY,width:r.M.I,height:r.M.F,angle:r.M.AA}),"v"===r.AF?ZC._cp_({progression:r.BS,logBase:r.DY,minValue:r.B0,maxValue:r.BF,minValue_:r.FQ,maxValue_:r.GW},a):"scale-r"===n.name?ZC._cp_({refAngle:r.DK},a):ZC._cp_({minValue:r.V[r.W],maxValue:r.V[r.A1],minValue_:r.V[r.D4],maxValue_:r.V[r.DP],minIndex:r.W,maxIndex:r.A1,minIndex_:r.D4,maxIndex_:r.DP},a),a;case"plot":if(!(l=t.I7(n.plotindex,n.plotid)))return null;for(s in a={},h)a[s]=l[h[s]];var f=l.AP&&t.E["plot"+l.L+".visible"];return ZC._cp_({visible:f,id:l.HA,index:l.L,type:l.AF,text:l.AN,values:l.V,scales:l.BO,stacked:l.CG,stackType:l.KT,stack:l.DZ,xdata:l.K5},a),l.TU&&ZC._cp_({marker:{visible:l.TU.AP,size:l.TU.AI,type:l.TU.DH,backgroundColor1:l.TU.A0,backgroundColor2:l.TU.AE,borderColor:l.TU.BX,borderWidth:l.TU.AU}},a),a;case"node":if(l=t.I7(n.plotindex,n.plotid)){if(Z=null!==ZC._n_(n.nodeindex)?ZC._i_(n.nodeindex):0,!l.S[Z])return null;for(s in o=l.FM(Z),(a={}).bounds=o.G.E[o.K+"-bounds"],h)-1!==ZC.AV(["x","y","width","height"],s)?a[s]=o[h[s]]:a[s]=o.O[h[s]];if(ZC._cp_({plotindex:l.L,index:o.L,size:o.AI,value:o.AC,keyvalue:o.BV,visible:l.AP,onviewport:o.J1},a),-1!==l.AF.indexOf("pie")&&ZC._cp_({angleStart:o.B4,angleEnd:o.BL,slice:o.A.PY,npv:100*o.AC/o.A.A.KP[o.L]},a),l.K5){var _={};for(s in l.K5)l.K5[s]instanceof Array?_[s]=l.K5[s][Z]:_[s]=l.K5[s];a.xdata=_}return a}return null}break;case"getdata":return u=JSON.parse(p.E.json),ZC._todash_(u,!0),u;case"getoriginaljson":return u=JSON.parse(p.E.source),ZC._todash_(u,!0),u;case"getgraphlength":return p.AG.length;case"getplotlength":return(t=p.CB(n.graphid))?t.AY.A4.length:0;case"getscales":if(t=p.CB(n.graphid)){var d=[];for(A=0;A<t.BO.length;A++)d.push(t.BO[A].BD);return d}return[];case"getnodelength":return(t=p.CB(n.graphid))&&(l=t.I7(n.plotindex,n.plotid))?l.S.length:null;case"getnodevalue":return(t=p.CB(n.graphid))&&(l=t.I7(n.plotindex,n.plotid))&&null!==ZC._n_(n.nodeindex)&&(o=l.S[ZC._i_(n.nodeindex)])?l.EI?[o.BV,o.AC]:o.AC:null;case"getplotvalues":if((t=p.CB(n.graphid))&&(l=t.I7(n.plotindex,n.plotid))){for(c=[],A=0,C=l.S.length;A<C;A++)l.S[A]?l.EI?c.push([l.S[A].BV,l.S[A].AC]):c.push(l.S[A].AC):c.push(null);return c}return null}}return null};var A9R={$i:function(){var e=this;e.NY=null,e.o={},e.IB=null,e.J2=null,e.E={},e.E6=[],e.HZ=null,e.MN=""},H8:function(e,i,n,t,a){var l=this;if(e.HZ){a=a||l.MN;var r=e.HZ.call(l,t,a);n&&r&&(r[n+"-state"]?r=r[n+"-state"]:r[n+"State"]&&(r=r[n+"State"]));var o,A,C=l.getPMap(),s={},u={};for(var Z in r)o=ZC.EH(Z),A=ZC.US(Z),"backgroundColor"===o?s.A0=s.AE=ZC.AO.GD(r[Z]):"borderRadius"===o?s.F6=s.FW=s.FG=s.F2=r[Z]:"padding"===Z?s.FJ=s.FO=s.FX=s.ER=r[Z]:C[o]?s[C[o]]=r[Z]:s[o]=r[Z],u[A]=r[Z];i.o||ZC._cp_(r,s),ZC._cp_(s,i),i.o&&(ZC._cp_(u,i.o),i.L3())}},parse:function(){var s=this,H,i,oRule,KY;"dashed"!==zingchart.SYNTAX&&ZC._todash_(s.o);var AB="";if("undefined"!=typeof s.G&&(AB=s.G.AB),ZC.ZR(s.o,"html5"),""!==AB&&ZC.ZR(s.o,AB),zingchart.DEV.MEDIARULES&&s.o["media-rules"]&&"undefined"!=typeof s.G)for(i=0;i<s.o["media-rules"].length;i++)oRule=s.o["media-rules"][i],KY=!0,null!==ZC._n_(oRule["min-width"])&&ZC._i_(oRule["min-width"])>s.G.I&&(KY=!1),null!==ZC._n_(oRule["max-width"])&&ZC._i_(oRule["max-width"])<s.G.I&&(KY=!1),null!==ZC._n_(oRule["min-height"])&&ZC._i_(oRule["min-height"])>s.G.F&&(KY=!1),null!==ZC._n_(oRule["max-height"])&&ZC._i_(oRule["max-height"])<s.G.F&&(KY=!1),KY&&ZC._cp_(oRule,s.o);for(s.o.rules&&(s.E6=s.o.rules),i=0;i<s.E6.length;i++)if("*"===s.E6[i].rule&&s.E6[i].js){s.o["js-rule"]=s.E6[i].js,s.E6.splice(i,1);break}if(H=s.o["js-rule"])if("function"==typeof H)s.MN="",s.HZ=eval(H);else if("javascript:"===H.substring(0,11)||H.indexOf("(")<H.indexOf(")"))try{s.MN="";var ED=H.replace("javascript:",""),iOpen=H.indexOf("("),iClose=H.indexOf(")");-1!==iOpen&&-1!==iClose&&(s.MN=ED.substr(iOpen+1,iClose-iOpen-1),ED=ED.substr(0,iOpen)),s.HZ=ZC.evalFn(ED)}catch(e){}if("undefined"!=typeof s.G&&null!==s.G.SB)for(var g in s.G.SB)s.G.SB.hasOwnProperty(g)&&null===ZC._n_(s.o[g])&&(s.o[g]=s.G.SB[g])},getPMap:function(){return{}},addPMap:function(e,i,n){for(var t=i.split(","),a=n.split(","),l=0,r=a.length;l<r;l++)e[t[l]]=a[l]},getData:function(){return this.o},setData:function(e){this.o=e},getAttributes:function(){return this.E},getAttribute:function(e){return this.E[e]},setAttribute:function(e,i){this.E[e]=i},get:function(e){var i=this.getPMap();return i[e]?this[i[e]]:null},set:function(e,i){var n=this.getPMap();n[e]&&(this[n[e]]=i)},append:function(e,i,n){null===i&&(i=!0);var t=this;e&&(t.IB||(t.IB={},ZC._cp_(t.o,t.IB,!0,n)),t.J2||(t.J2={}),ZC._cp_(e,t.J2,!0,n),ZC._cp_(e,t.o,!0,n)),"undefined"!=typeof t.AD7&&t.AD7()&&e&&ZC._cp_(e,t.o)},AD7:function(){},assign_a:function(e){for(var i=0,n=e.length;i<n;i++)this.o.hasOwnProperty(e[i][0])&&this.YD(e[i][0],e[i][1],e[i][2],e[i][3],e[i][4])},YD:function(e,i,n,t,a){var l,r=this;if(null!==(l=r.o[e])&&void 0!==l){if(n)switch(-1!==n.indexOf("p")&&(l=ZC._p_(l),n=n.replace("p","")),-1!==n.indexOf("a")&&(l=ZC._a_(l),n=n.replace("a","")),n){case"i":l=ZC._i_(l);break;case"f":l=ZC._f_(l);break;case"b":l=ZC._b_(l);break;case"c":l=ZC.AO.Z4(l,r),(l=ZC.AO.GD(l,r))instanceof Array&&("color"===e||"font-color"===e?(r.o["text-alpha"]=l[1],r.V1=l[1],r.E["text-alpha"]=l[1]):"border-color"===e?(r.o["border-alpha"]=l[1],r.O3=l[1],r.E["b-alpha"]=l[1]):("line-color"===e&&(r.E["l-alpha"]=l[1]),null===ZC._n_(r.o.alpha)&&(r.C5=l[1])),l=l[0])}null!==ZC._n_(t)&&null!==ZC._n_(a)&&(l=ZC._l_(l,t,a)),r[i]=l}},DG:function(){for(var e=this,i=!1,n=0,t=e.E6.length;n<t;n++){var a=!1;try{a=zingchart.DEV.STRICTRULES?0!==ZC.AO.eval(e.IQ(e.E6[n].rule)):new Function("return ("+e.IQ(e.E6[n].rule)+")")()}catch(l){a=!1}a&&(i=!0,e.append(e.E6[n]))}return i},ACH:function(e){for(var i="",n=0,t=e.length;n<t;n++){var a=!1;try{a=zingchart.DEV.STRICTRULES?0!==ZC.AO.eval(this.IQ(e[n].rule)):new Function("return ("+this.IQ(e[n].rule)+")")()}catch(l){a=!1}a&&(i+="<"+e[n].rule+">")}return""!==i?[i,ZC.XR.md5(i)]:null},IQ:function(){return!0},copy:function(e){var i=this;ZC._cp_(e.o,i.o),e.IB&&(i.IB=i.IB||{},ZC._cp_(e.IB,i.IB)),e.J2&&(i.J2=i.J2||{},ZC._cp_(e.J2,i.J2)),ZC._cp_(e.E,i.E),ZC._cp_(e.E6,i.E6)}};ZC.A9R=ZC.C6.CD(A9R);var CZ={$i:function(e){this.b(e);var i=this;e&&e.G&&(i.G=e.G),i.K="",i.DF=null,i.AP=!0,i.A0="-1",i.AE="-1",i.GT="",i.HQ="",i.VN=!0,i.DC="",i.M8="repeat",i.TE="50% 50%",i.WK="",i.KZ=1,i.NJ="linear",i.NB=90,i.VS=0,i.VR=0,i.B1=0,i.B9="#000",i.GE="",i.EU=0,i.G3=0,i.AU=0,i.BX="#000",i.C5=1,i.O3=1,i.T6="butt",i.A00="round",i.ME=!1,i.ON=45,i.JZ=2,i.T7=.75,i.RW="#999",i.PA=0,i.D0=!0,i.N2=!1,i.LB=!1,i.A1Z=!1,i.LR=null,i.BH=""},getPMap:function(){var e=this.b();return this.addPMap(e,"visible,backgroundColor1,backgroundColor2,gradientColors,gradientStops,backgroundImage,backgroundRepeat,backgroundPosition,backgroundFit,backgroundScale,fillType,fillAngle,fillOffsetX,fillOffsetY,lineWidth,lineColor,lineStyle,lineSegmentSize,lineGapSize,borderWidth,borderColor,borderAlpha,alpha,lineCap,shadow,shadowAngle,shadowDistance,shadowAlpha,shadowColor,shadowBlur,class,border","AP,A0,AE,GT,HQ,DC,M8,TE,WK,KZ,NJ,NB,VS,VR,B1,B9,GE,EU,G3,AU,BX,O3,C5,T6,ME,ON,JZ,T7,RW,PA,DF,BH"),e},copy:function(e){this.b(e);for(var i="AP,A0,AE,GT,HQ,DC,VN,M8,TE,WK,KZ,NJ,NB,VS,VR,B1,B9,GE,EU,G3,AU,BX,O3,C5,T6,ME,ON,JZ,T7,RW,PA,D0,LB,DF,G,BH".split(","),n=0,t=i.length;n<t;n++)"undefined"!=typeof e[i[n]]&&(this[i[n]]=e[i[n]])},AD7:function(){var e,i,n=this,t=!1;if((n.o["class"]||n.o.cls||n.o.id)&&null!==n.G&&null!==n.G.O){if(e=n.o["class"]||n.o.cls)for(var a=e.split(/(\s+)/),l=0,r=a.length;l<r;l++)(i=n.G.O["."+a[l]])&&(t=!0,ZC._cp_(i,n.o));(e=n.o.id)&&(i=n.G.O["#"+e])&&(t=!0,ZC._cp_(i,n.o))}return null!==n.NY&&(i=n.G.O[n.NY])&&(t=!0,ZC._cp_(i,n.o)),t},L3:function(e){var i,n=this;switch(null===ZC._n_(e)&&(e=n.B1),n.GE){case"dotted":n.EU=ZC.BR(1,.75*e),n.G3=1.75*e;break;case"dashed":n.EU=4*e,n.G3=3*e;break;case"dashdot":n.EU=4*e,n.G3=2*e;break;default:n.EU=0,n.G3=0}null!==(i=ZC._n_(n.o["line-segment-size"]))&&(n.EU=parseInt(i,10)),null!==(i=ZC._n_(n.o["line-gap-size"]))&&(n.G3=parseInt(i,10))},parse:function(){var e,i,n,t,a,l,r,o,A;this.b();var C=this;if(null!==(e=ZC._n_(C.o.override))&&!C.A1Z){var s,u,Z,c=-1,p=-1;for("undefined"!=typeof C.E.plotidx&&(c=ZC._i_(C.E.plotidx)),"undefined"!=typeof C.E.nodeidx&&(p=ZC._i_(C.E.nodeidx)),r=0,o=e.length;r<o;r++){if(s=-1,u=-1,e[r].hook){if(null!==(i=ZC._n_(e[r].hook["node-index"]))){if(u=0,Z=[],"object"==typeof i)Z=i;else if("string"==typeof i){if(-1!==i.indexOf(","))Z=i.split(",");else if(-1!==i.indexOf("-"))for(n=i.split("-"),t=ZC._i_(n[0]);t<=ZC._i_(n[1]);t++)Z.push(t)}else Z=[i];-1!==ZC.AV(Z,p)&&(u=1)}if(null!==(i=e[r].hook["plot-index"])&&void 0!==i){if(s=0,Z=[],"object"==typeof i)Z=i;else if("string"==typeof i){if(-1!==i.indexOf(","))Z=i.split(",");else if(-1!==i.indexOf("-"))for(n=i.split("-"),t=ZC._i_(n[0]);t<ZC._i_(n[1]);t++)Z.push(t)}else Z=[i];-1!==ZC.AV(Z,c)&&(s=1)}}0!==s&&0!==u&&C.append(e[r])}}if(null!==(e=C.LR)&&C.append(e),e=C.o["background-color"]){if(e=ZC.AO.Z4(e,this),"rgb("===String(e).substring(0,4))for(a=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)");l=a.exec(e);)e=e.replace(l[0],ZC.AO.GD(l[0]));if("rgba("===String(e).substring(0,5))for(a=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\,\\s*([0-9.]+)\\)");l=a.exec(e);){var h=ZC.AO.GD(l[0],C);e=e.replace(l[0],h[0]),C.o.alpha=h[1],C.C5=h[1],C.E["bg-alpha"]=h[1],null===ZC._n_(C.E["b-alpha"])&&(C.E["b-alpha"]=1),null===ZC._n_(C.E["l-alpha"])&&(C.E["l-alpha"]=1)}var f=ZC.GY(String(e)).split(/\s+|;|,/);C.A0=ZC.AO.GD(f[0]),C.AE=1===f.length?C.A0:ZC.AO.GD(f[1])}if(!(null===ZC._n_(C.o["border-width"])&&null===ZC._n_(C.o["border-color"])&&null===ZC._n_(C.o["line-style"])||null===ZC._n_(C.o["border-top"])&&null===ZC._n_(C.o["border-right"])&&null===ZC._n_(C.o["border-bottom"])&&null===ZC._n_(C.o["border-left"])&&null===ZC._n_(C.o.border))){var _=["top","right","bottom","left"],d={top:[0,"solid","#000"],right:[0,"solid","#000"],bottom:[0,"solid","#000"],left:[0,"solid","#000"]};if(C.IB=C.IB||{},e=C.IB.border)for(A=e.split(/\s/),r=0;r<4;r++)d[_[r]]=[ZC._i_(A[0]||"0"),ZC.GY(A[1]||"solid"),ZC.AO.GD(A[2]||"#000000")];if(null!==ZC._n_(C.IB["border-width"]))for(r=0;r<4;r++)d[_[r]][0]=C.IB["border-width"];if(null!==ZC._n_(C.IB["line-style"]))for(r=0;r<4;r++)d[_[r]][1]=C.IB["line-style"];if(null!==ZC._n_(C.IB["border-color"]))for(r=0;r<4;r++)d[_[r]][2]=C.IB["border-color"];for(r=0;r<4;r++)(e=C.IB["border-"+_[r]])&&(A=e.split(/\s/),d[_[r]]=[ZC._i_(A[0]||"0"),ZC.GY(A[1]||"solid"),ZC.AO.GD(A[2]||"#000000")]);if(C.J2=C.J2||{},e=C.J2.border)for(A=e.split(/\s/),r=0;r<4;r++)d[_[r]]=[ZC._i_(A[0]||"0"),ZC.GY(A[1]||"solid"),ZC.AO.GD(A[2]||"#000000")];if(null!==ZC._n_(C.J2["border-width"]))for(r=0;r<4;r++)d[_[r]][0]=C.J2["border-width"];if(null!==ZC._n_(C.J2["line-style"]))for(r=0;r<4;r++)d[_[r]][1]=C.J2["line-style"];if(null!==ZC._n_(C.J2["border-color"]))for(r=0;r<4;r++)d[_[r]][2]=C.J2["border-color"];for(r=0;r<4;r++)(e=C.J2["border-"+_[r]])&&(A=e.split(/\s/),d[_[r]]=[ZC._i_(A[0]||"0"),ZC.GY(A[1]||"solid"),ZC.AO.GD(A[2]||"#000000")]);for(r=0;r<4;r++)null===ZC._n_(C.o["border-"+_[r]])&&(C.o["border-"+_[r]]=d[_[r]].join(" "))}C.assign_a([["visible","AP","b"],["background-color-1","A0","c"],["background-color-2","AE","c"],["gradient-colors","GT"],["gradient-stops","HQ"],["pixel-correction","D0","b"],["background-clip","VN","b"],["background-image","DC"],["background-repeat","M8"],["background-position","TE"],["background-fit","WK"],["background-scale","KZ","f"],["fill-type","NJ"],["fill-angle","NB","i"],["fill-offset-x","VS","f"],["fill-offset-y","VR","f"],["line-width","B1","i"],["line-color","B9","c"],["line-style","GE",""],["class","DF"],["cls","DF"],["border","BH"]]),"none"===C.NJ&&(C.AE=C.A0,C.NJ="linear"),""!==C.BH&&(A=C.BH.split(/\s/),C.AU=ZC._i_(A[0]||"0"),C.GE=ZC.GY(A[1]||"solid"),C.BX=ZC.AO.GD(A[2]||"#000000")),C.GT=ZC.AO.Z4(C.GT,this),C.L3(),C.assign_a([["line-segment-size","EU","i"],["line-gap-size","G3","i"],["border-width","AU","i"],["border-color","BX","c"],["alpha","C5","f",0,1],["shadow","ME","b"],["shadow-angle","ON","i",0,360],["shadow-distance","JZ","i"],["shadow-alpha","T7","f",0,1],["shadow-color","RW","c"],["shadow-blur","PA","i"]]),C.O3=C.C5,C.assign_a([["border-alpha","O3","f",0,1]]),".png"!==C.DC.substring(C.DC.length-4)&&"data:image/"!==C.DC.substring(0,11)&&(C.DC="")}};ZC.CZ=ZC.A9R.CD(CZ),ZC.CO={contour:function(e,i,n){var t,a,l;if(e&&n&&0!==n.length){if(!i.E["fast-vector-path"])for(t=0,a=n.length;t<a;t++)n[t]&&(n[t][0]=parseFloat(Number(n[t][0]).toFixed(2)),n[t][1]=parseFloat(Number(n[t][1]).toFixed(2)));var r=!1,o=n.length;for(t=0;t<o;t++)null!==ZC._n_(n[t])&&(l=[n[t][0],n[t][1]],null!==ZC._n_(n[t][2])&&l.push(n[t][2],n[t][3]),null!==ZC._n_(n[t][4])&&l.push(n[t][4],n[t][5]),i.N2&&(l[0]=Math.round(l[0]),l[1]=Math.round(l[1]),4===l.length&&(l[2]=Math.round(l[2]),l[3]=Math.round(l[3]))),i.D0&&i.B1%2==1&&(l[0]-=.5,l[1]-=.5,4===l.length&&(l[2]-=.5,l[3]-=.5))),0===t?e.moveTo(l[0],l[1]):n[t]?(r&&(e.moveTo(l[0],l[1]),r=!1),2===l.length?e.lineTo(l[0],l[1]):4===l.length?e.quadraticCurveTo(l[0],l[1],l[2],l[3]):6===l.length&&e.arc(l[0],l[1],l[2],ZC.TD(l[3]),ZC.TD(l[4]),l[5])):r=!0}},setup:function(e,i){var n=i.G.AB;if(1!==i.C5&&i.LB&&(null===ZC._n_(i.o["border-color"])&&(i.BX=i.A0),null===ZC._n_(i.o["border-width"])))switch(n){case"canvas":i.AU=.2}},paint:function(e,i,n,t,a,l){if(null===ZC._n_(a)&&(a=2),null===ZC._n_(t)&&(t=!1),null===ZC._n_(l)&&(l=!1),e&&n&&0!==n.length&&i){var r,o,A,C;!l&&n.length>2&&null!==n[0]&&null!==n[n.length-1]&&n[0].join(",")===n[n.length-1].join(",")&&(i.T6="round");var s=i.G.AB;if("canvas"!==s||0!==i.B1&&"-1"!==i.B9){if(i.ME&&!t){i.C8=i.C8||i.Z;var u,Z=ZC.Q._sh_(n,i);"undefined"!=typeof i.A4Q?u=i.A4Q:((u=new ZC.DT(i)).copy(i),u.K=i.K+"-sh",u.ME=!1,u.B1+=u.PA,u.B9=u.RW),u.C5=i.C5*u.T7,"undefined"==typeof i.ADG&&(i.A4Q=u),u.D0=!1,r=i.C8?i.C8.getContext("2d"):e,ZC.CO.setup(r,u),ZC.CO.paint(r,u,Z,!1,1,l)}var c=ZC._i_(i.EU||"0"),p=ZC._i_(i.G3||"0");"solid"===i.GE&&(c=p=0);var h=n.length;"undefined"==typeof i.AA&&(i.AA=0),"canvas"===s&&(e.lineJoin=i.A00,e.lineCap=i.T6,e.strokeStyle=ZC.AO.A34(ZC.AO.GD(i.B9),t?i.O3:i.C5),e.lineWidth=i.B1,e.beginPath());var f=!1;if(-1!==ZC.AV(["svg","vml"],s));else{var _=!1;"dashdot"!==i.GE&&(_=e.setLineDash)&&e.setLineDash(0===c||0===p?[]:[c,p]);var d=0,g=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX];for(C=0;C<h;C++)if(null!==n[C]){if(null!==(o=ZC.objmove?n[C]:ZC.Q._txp_(n[C],s,i,t))&&!isNaN(o[0])&&!isNaN(o[1])&&isFinite(o[0])&&isFinite(o[1]))if(h<=6&&t&&(g[0]=ZC.CY(g[0],o[0]),g[1]=ZC.CY(g[1],o[1]),g[2]=ZC.BR(g[2],o[0]),g[3]=ZC.BR(g[3],o[1])),0===C)2===o.length?e.moveTo(o[0],o[1]):6===o.length&&e.arc(o[0],o[1],o[2],ZC.TD(o[3]),ZC.TD(o[4]),o[5]);else if(f&&(e.moveTo(o[0],o[1]),f=!1),_||0===c||0===p||4===o.length||6===o.length||7===o.length)2===o.length?e.lineTo(o[0],o[1]):4===o.length?e.quadraticCurveTo(o[0],o[1],o[2],o[3]):6===o.length?e.arc(o[0],o[1],o[2],ZC.TD(o[3]),ZC.TD(o[4]),o[5]):7===o.length&&e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);else if(null!==n[C-1]){var v=ZC.Q._txp_(n[C-1],s,i,t),B=v[4===v.length?2:0],E=v[4===v.length?3:1],b=o[0],D=o[1],F=c+p,m=b-B,Y=D-E,M=Math.sqrt(m*m+Y*Y)+d;if(M>c){var I;d=0,I="dashdot"===i.GE?Math.floor(ZC._a_(M/((F+i.B1+p)/2))):Math.floor(ZC._a_(M/F));var K=Math.atan2(Y,m),X=Math.cos(K),x=Math.sin(K),L=B,P=E,w=c;for(A=0;A<I;A++)"dashdot"===i.GE&&(F=A%2?i.B1+p:c+p,w=A%2?i.B1:c),m=X*F,Y=x*F,e.moveTo(L,P),e.lineTo(L+X*w,P+x*w),L+=m,P+=Y;e.moveTo(L,P),(M=Math.sqrt((b-L)*(b-L)+(D-P)*(D-P)))>c?e.lineTo(L+X*c,P+x*c):M>0&&e.lineTo(L+X*M,P+x*M),e.moveTo(b,D)}else d=M}}else f=!0;i.G&&h<=6&&t&&(i.G.E[i.K+"-bounds"]=g)}switch(s){case"canvas":e.globalCompositeOperation=i.A0Z,e.stroke()}if(null!==ZC._n_(i.o["top-state"])&&!i.Y9&&!i.E["skip-top"]&&!i.W1){var S=new ZC.HU(i.A);S.copy(i),S.W1=!0,S.ME=!1,S.Z=i.Z,S.append(i.o["top-state"]),S.K=i.K+"-top",S.parse(),"svg"===s||"vml"===s||ZC.CO.paint(e,S,n,t,a,l)}}}},smooth:function(e,i,n){var t,a,l,r;ZC._n_(i)&&(i=!1),n=n||"h";var o=[],A=[];for(t=0,a=e.length;t<a;t++)e[t]&&("h"===n?(A.push(e[t][0]),o.push(e[t][1])):(A.push(e[t][1]),o.push(e[t][0])),0===t&&(A.push(A[0]),o.push(o[0])));for(A.push(A[A.length-1]),o.push(o[o.length-1]),e=[],l=1,r=o.length;l<r-1;l++){var C=[o[l-1],o[l],o[l+1],o[l+2]],s=ZC._a_(A[l+1]-A[l]),u=1/(s/C.length),Z=ZC.AQ.YC(i,C,s,u);for(t=0,a=Z.length;t<a;t++)null!==ZC._n_(Z[t][0])&&null!==ZC._n_(Z[t][1])?"h"===n?e.push([A[l]+Z[t][0]*s,Z[t][1]]):e.push([Z[t][1],A[l]+Z[t][0]*s]):e.push(null)}return e},_append_:function(e,i,n){i.G&&i.G.G4?(null===ZC._n_(i.G.G4[e.id])&&(i.G.G4[e.id]=document.createDocumentFragment()),i.G.G4[e.id].appendChild(n)):e.appendChild(n)},WG:function(e,i,n,t,a){},WF:function(e,i,n,t){}};var DT={$i:function(e){this.b(e);var i=this;i.A=e,i.Z=null,i.C8=null,i.HA="",i.iX=-1,i.iY=-1,i.DH="poly",i.D=[],i.D2=[0,0,0,0],i.AA=0,i.AI=0,i.JI=0,i.BK=0,i.BJ=0,i.A99=0,i.DX=0,i.B4=0,i.BL=360,i.CP=0,i.TL=!1,i.ADA=!1,i.A4D=0,i.AAN="",i.OC=!1,i.A76=1,i.JW=1,i.E9=null,i.FD=null,i.IE="auto",i.KD=!1,i.A0Z="source-over",i.QW=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"objectId,x,y,points,bounds,pieAngleStart,pieAngleEnd,pieSlice,url,target,offsetX,offsetY,offsetR,size,size2,angle,shape,flat,cursor","HA,iX,iY,D,D2,B4,BL,CP,E9,FD,BK,BJ,DX,AI,JI,AA,DH,KD,IE"),e},build:function(){},copy:function(e){this.b(e);var i,n,t=this,a="BK,BJ,DX,AI,JI,AA,DH,KD,IE".split(",");for(i=0,n=a.length;i<n;i++)"undefined"!=typeof e[a[i]]&&(t[a[i]]=e[a[i]]);if(e.D&&e.D.length>0)for(t.D=[],i=0,n=e.D.length;i<n;i++)t.D.push(e.D[i])},ll_:function(e,i){var n=this;-1!==(""+e).indexOf("lat")&&(i="y"),-1!==(""+e).indexOf("lon")&&(i="x"),e=ZC._f_((""+e).replace("lat","").replace("lon",""));var t=zingchart.maps.maps[n.A4D];return t&&(e=zingchart.maps.lonlat2xy(t._INFO_.x,t._INFO_.y,t._INFO_.width,t._INFO_.height,"x"===i?[e,0]:[0,e],t._INFO_.bbox,{map:n.A4D,item:n.AAN,zoom:t._INFO_.zoom,offsetX:t._INFO_.offsetX,offsetY:t._INFO_.offsetY},!0)),e=ZC._i_("x"===i?e[0]:e[1])},kv_:function(e,i){var n;-1!==(""+e).indexOf("val")&&(i="y"),-1!==(""+e).indexOf("key")&&(i="x"),e=ZC._f_((""+e).replace("key","").replace("val",""));var t=this.G||zingchart.HW[0];if(t){var a=this.A||t.AG[0];a&&("x"===i?null!==(n=a.BW("k")[0])&&(e=ZC._i_(n.AR(e))):null!==(n=a.BW("v")[0])&&(e=ZC._i_(n.AR(e))))}return ZC._i_(e)},xy_:function(e,i,n){var t=this;i=i||"x";var a=""+e;if(-1!==a.indexOf("lat")||-1!==a.indexOf("lon"))return t.ll_(e,i);if(-1!==a.indexOf("val")||-1!==a.indexOf("key"))return t.kv_(e,i);if(""+ZC._f_(e)!==a)return-1!==(e+="").indexOf("%")?t.xy_(parseFloat(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?t.xy_(parseFloat(e.replace("px","")),i):t.xy_(parseFloat(e),i);var l="undefined"!=typeof t.E["p-x"]?t.E["p-x"]:t.A.iX,r="undefined"!=typeof t.E["p-y"]?t.E["p-y"]:t.A.iY,o="undefined"!=typeof t.E["p-width"]?t.E["p-width"]:t.A.I,A="undefined"!=typeof t.E["p-height"]?t.E["p-height"]:t.A.F;return(e>=1||e<0||zingchart.DEV.IGNORESUBUNIT)&&!n?"x"===i?l+parseFloat(e):r+parseFloat(e):e>=0&&e<1||n?"x"===i?(o=o||1,Math.round(l+o*e)):(A=A||1,Math.round(r+A*e)):void 0},locate:function(e){var i,n=this;if(n.TL)return-1!==(""+n.o.x).indexOf("lon")?n.iX=n.ll_(n.o.x,"x"):n.YD("x","iX"),-1!==(""+n.o.y).indexOf("lat")?n.iY=n.ll_(n.o.y,"y"):n.YD("y","iY"),void n.A3Y();1===e?(null!==(i=ZC._n_(n.o.x))&&(n.iX=n.xy_(i,"x")),null!==(i=ZC._n_(n.o.y))&&(n.iY=n.xy_(i,"y")),-1===n.iX&&(n.iX=n.A.iX),-1===n.iY&&(n.iY=n.A.iY)):2===e&&(n.A3Y(),n.I=n.D2[2]-n.D2[0],n.F=n.D2[3]-n.D2[1])},A3Y:function(){var e,i=this,n=ZC.MAX,t=ZC.MAX,a=-ZC.MAX,l=-ZC.MAX;switch(i.DH){case"custom":n=0,t=0,a=0,l=0;break;case"circle":case"arc":case"pie":n=i.iX-i.AI,t=i.iY-i.AI,a=i.iX+i.AI,l=i.iY+i.AI;break;default:for(var r=0,o=i.D.length;r<o;r++)null!==(e=i.D[r])&&(n=Math.min(n,e[0]),t=Math.min(t,e[1]),a=Math.max(a,e[0]),l=Math.max(l,e[1]))}i.D2=[n,t,a,l]},F1:function(){var e,i=this;if("pie"===i.DH){var n=1,t=[],a=i.B4+i.AA,l=i.BL+i.AA,r=i.AI+Math.floor(i.AU/2),o=i.CP-Math.floor(i.AU/2);for(r>50&&(n=2),r>100&&(n=4),0===o?a%360!=l%360&&t.push([i.iX,i.iY]):t.push(ZC.AQ.BN(i.iX,i.iY,o,a),ZC.AQ.BN(i.iX,i.iY,(r+o)/2,a-.25*i.AU),ZC.AQ.BN(i.iX,i.iY,r,a)),e=a;e<=l;e+=n)t.push(ZC.AQ.BN(i.iX,i.iY,r,e));if(t.push(ZC.AQ.BN(i.iX,i.iY,r,l)),t.push(ZC.AQ.BN(i.iX,i.iY,(r+o)/2,l+.25*i.AU)),0===o)a%360!=l%360&&t.push([i.iX,i.iY]);else{for(t.push(ZC.AQ.BN(i.iX,i.iY,o,l)),e=l;e>=a;e-=n)t.push(ZC.AQ.BN(i.iX,i.iY,o,e));t.push(ZC.AQ.BN(i.iX,i.iY,o,a))}return t.push([t[0][0],t[0][1]]),ZC.AQ.PJ(t,Math.min(5,r/5),[i.BK,i.BJ])}if(0===i.AA||"rectangle"!==i.DH&&"rect"!==i.DH)return ZC.AQ.PJ(i.D,Math.min(5,i.AI/5),[i.BK,i.BJ]);var A,C,s,u,Z,c,p,h,f=[];for(s=ZC._i_((i.D2[0]+i.D2[2])/2),u=ZC._i_((i.D2[1]+i.D2[3])/2),A=0,C=i.D.length;A<C;A++)null!==i.D[A]&&(Z=i.D[A][0]-s,c=i.D[A][1]-u,p=Z*ZC.EF(i.AA)-c*ZC.EL(i.AA),h=Z*ZC.EL(i.AA)+c*ZC.EF(i.AA),f[A]=[p+s,h+u]);return ZC.AQ.PJ(f,Math.min(5,i.AI/5),[i.BK,i.BJ])},A5F:function(){var e,i,n,t,a,l,r,o,A,C=this,s=ZC.ie67?ZC.MAPTX:0;switch(C.DH){case"line":if(n=[].concat(C.D),0!==C.AA)for(t=(C.D2[0]+C.D2[2])/2,a=(C.D2[1]+C.D2[3])/2,e=0,i=n.length;e<i;e++)null!==n[e]&&(l=n[e][0]-t,r=n[e][1]-a,o=l*ZC.EF(C.AA)-r*ZC.EL(C.AA),A=l*ZC.EL(C.AA)+r*ZC.EF(C.AA),n[e]=[o+t,A+a]);var u=["poly"];for(e=0,i=n.length;e<i-1;e++)null!==n[e]&&null!==n[e+1]&&u.push(ZC.AQ.PJ(ZC.AQ.Z1([n[e],n[e+1]]),4,[C.BK,C.BJ]));return u;case"cross":case"plus":return["circle",ZC._i_(C.iX+s+C.BK)+","+ZC._i_(C.iY+s+C.BJ)+","+ZC._i_(C.AI)];case"circle":case"arc":return["circle",ZC._i_(C.iX+s+C.BK)+","+ZC._i_(C.iY+s+C.BJ)+","+ZC._i_(C.AI+2)];case"pie":return["poly",C.F1()];default:var Z,c=["poly"];for(n=[],e=0,i=C.D.length;e<i;e++)if(null!==C.D[e])if(6===C.D[e].length)for(var p=C.D[e][3];p<C.D[e][4];p+=1)n.push(ZC.AQ.BN(C.D[e][0],C.D[e][1],C.D[e][2],p));else if(4===C.D[e].length&&n[e-1]){var h={x:n[n.length-1][0],y:n[n.length-1][1]},f={x:C.D[e][2],y:C.D[e][3]},_={x:C.D[e][0],y:C.D[e][1]};for(Z=0;Z<=1;Z+=.1)n.push([(1-Z)*(1-Z)*h.x+2*Z*(1-Z)*_.x+Z*Z*f.x,(1-Z)*(1-Z)*h.y+2*Z*(1-Z)*_.y+Z*Z*f.y])}else if(7===C.D[e].length&&n[e-1]){var d={x:n[n.length-1][0],y:n[n.length-1][1]},g={x:C.D[e][0],y:C.D[e][1]},v={x:C.D[e][2],y:C.D[e][3]},B={x:C.D[e][4],y:C.D[e][5]};for(Z=0;Z<=1;Z+=.1){var E=(1-Z)*(1-Z)*(1-Z),b=3*Z*(1-Z)*(1-Z),D=3*Z*Z*(1-Z),F=Z*Z*Z;n.push([E*d.x+b*g.x+D*v.x+F*B.x,E*d.y+b*g.y+D*v.y+F*B.y])}}else n.push(C.D[e]);else n.length>-1&&c.push(ZC.AQ.PJ(n,Math.min(5,C.AI/5),[C.BK,C.BJ])),n=[];if(0!==C.AA)for(t=ZC._i_((C.D2[0]+C.D2[2])/2),a=ZC._i_((C.D2[1]+C.D2[3])/2),e=0,i=n.length;e<i;e++)null!==n[e]&&(l=n[e][0]-t,r=n[e][1]-a,o=l*ZC.EF(C.AA)-r*ZC.EL(C.AA),A=l*ZC.EL(C.AA)+r*ZC.EF(C.AA),n[e]=[o+t,A+a]);return n.length>-1&&c.push(ZC.AQ.PJ(n,Math.min(5,C.AI/5),[C.BK,C.BJ])),c}},parse:function(e){var i,n,t,a,l,r,o;null===ZC._n_(e)&&(e=!1),this.o.tween||e||this.b();var A=this;if(!A.o.tween&&!e){A.assign_a([["map","A4D"]]),"string"==typeof A.o.item&&A.assign_a([["item","AAN"]]),0!==A.A4D&&(null===ZC._n_(A.o["map-item"])||A.o["map-item"])&&(A.o["map-item"]=!0,A.o["map-skip-z-sort"]=!0);var C=["offset-x","offset-y"];for(n=0;n<2;n++){var s=C[n],u="offset-x"===s?"lon":"lat";if(null!==(i=A.o[s])&&void 0!==i&&-1!==(i=""+i).indexOf(u)){i=ZC._f_(i.replace(u,""));var Z=zingchart.maps.maps[A.A4D];Z&&(i=zingchart.maps.translate(s.replace("offset-"),i,A.A.I,A.A.F,Z._INFO_.bbox),A.o[s]=i)}}for(A.assign_a([["url","E9"],["target","FD"],["cursor","IE"],["id","HA"],["angle","AA","i"],["static","KD","b"],["flat","KD","b"],["angle-start","B4","f"],["angle-end","BL","f"],["slice","CP","i"],["size","AI","f"],["fast-vector-path","QW","b"],["type","DH"],["points","D"],["offset-x","BK"],["offset-y","BJ"],["offset-z","A99","i"],["offset-r","DX","i"],["z-sort","A76","i"],["z-index","JW","f"],["composite","A0Z"]]),"rectangle"!==A.DH&&"rect"!==A.DH||(A.JI=A.AI/2),A.assign_a([["size-2","JI","f"]]),A.BK=ZC.IO(A.BK,!0),A.BJ=ZC.IO(A.BJ,!0),A.BK>-1&&A.BK<1&&"undefined"!=typeof A.E["p-width"]&&(A.BK*=A.E["p-width"]),A.BJ>-1&&A.BJ<1&&"undefined"!=typeof A.E["p-height"]&&(A.BJ*=A.E["p-height"]),A.AI=ZC.BR(1,A.AI),A.JI=ZC.BR(1,A.JI),null!==A.o["z-sort"]&&"undefined"!=typeof A.o["z-sort"]||(A.A76=A.JW),"rectangle"!==A.DH&&"rect"!==A.DH||A.assign_a([["width","AI","f"],["height","JI","f"]]),A.A50?(A.D=JSON.parse(JSON.stringify(A.FC)),A.A50=!1):A.FC=JSON.parse(JSON.stringify(A.D)),n=0,t=A.D.length;n<t;n++)if(null!==A.D[n])for(var c=0;c<A.D[n].length;c++)-1===(""+A.D[n][c]).indexOf("lat")&&-1===(""+A.D[n][c]).indexOf("lon")||(A.A50=!0,A.D[n][c]=A.ll_(A.D[n][c],c%2==0?"x":"y")),-1===(""+A.D[n][c]).indexOf("key")&&-1===(""+A.D[n][c]).indexOf("val")||(A.A50=!0,A.D[n][c]=A.kv_(A.D[n][c],c%2==0?"x":"y"))}if(A.o.tween=null,A.AA=A.AA%360,A.locate(1),"bar"!==A.DH){var p=A.AI,h=A.JI;switch(A.DH){case"custom":break;case"triangle":p=A.AI;var f=.1*A.AI;A.D=[[A.iX-p,A.iY+p-f],[A.iX,A.iY-p-f],[A.iX+p,A.iY+p-f],[A.iX-p,A.iY+p-f]];break;case"square":p=ZC._i_(.9*A.AI),A.D=[[A.iX-p,A.iY-p],[A.iX-p,A.iY+p],[A.iX+p,A.iY+p],[A.iX+p,A.iY-p],[A.iX-p,A.iY-p]];break;case"diamond":p=ZC._i_(1.2*A.AI),h=ZC._i_(1.2*(1===A.JI?A.AI:A.JI)),A.D=[[A.iX-p,A.iY],[A.iX,A.iY+h],[A.iX+p,A.iY],[A.iX,A.iY-h],[A.iX-p,A.iY]];break;case"trapezoid":A.D=[[A.iX-p/2,A.iY+A.JI],[A.iX+p/2,A.iY+A.JI],[A.iX+p,A.iY-A.JI],[A.iX-p,A.iY-A.JI],[A.iX-p/2,A.iY+A.JI]];break;case"rectangle":case"rect":A.D=[[A.iX-p/2,A.iY-A.JI/2],[A.iX+p/2,A.iY-A.JI/2],[A.iX+p/2,A.iY+A.JI/2],[A.iX-p/2,A.iY+A.JI/2],[A.iX-p/2,A.iY-A.JI/2]];break;case"parallelogram":A.D=[[A.iX-p/2,A.iY-A.JI/2],[A.iX+3*p/2,A.iY-A.JI/2],[A.iX+p,A.iY+A.JI/2],[A.iX-p,A.iY+A.JI/2],[A.iX-p/2,A.iY-A.JI/2]];break;case"plus":p=A.AI,A.D=[[A.iX,A.iY-p],[A.iX,A.iY+p],null,[A.iX-p,A.iY],[A.iX+p,A.iY]];break;case"cross":p=A.AI,A.D=[[A.iX-p,A.iY-p],[A.iX+p,A.iY+p],null,[A.iX-p,A.iY+p],[A.iX+p,A.iY-p]];break;case"ic_line":p=A.AI/4,A.D=[[A.iX-2*p,A.iY+p],[A.iX-p,A.iY],[A.iX,A.iY+p],[A.iX+p,A.iY-p],[A.iX+2*p,A.iY]];break;case"ic_area":p=A.AI/4,A.D=[[A.iX-2*p,A.iY+2*p],[A.iX-2*p,A.iY+p],[A.iX-p,A.iY],[A.iX,A.iY+p],[A.iX+p,A.iY-p],[A.iX+2*p,A.iY],[A.iX+2*p,A.iY+2*p],[A.iX-2*p,A.iY+2*p]];break;case"ic_bars":A.D0=!1,p=A.AI/4,A.D=[[A.iX-2*p,A.iY+2*p],[A.iX-2*p,A.iY-p],[A.iX-p,A.iY-p],[A.iX-p,A.iY+2*p],[A.iX-2*p,A.iY+2*p],[A.iX-2*p,A.iY+2*p-p],null,[A.iX-p/2,A.iY+2*p],[A.iX-p/2,A.iY],[A.iX+p/2,A.iY],[A.iX+p/2,A.iY+2*p],[A.iX-p/2,A.iY+2*p],[A.iX-p/2,A.iY+2*p-p],null,[A.iX+2*p,A.iY+2*p],[A.iX+2*p,A.iY-2*p],[A.iX+p,A.iY-2*p],[A.iX+p,A.iY+2*p],[A.iX+2*p,A.iY+2*p],[A.iX+2*p,A.iY+2*p-p]];break;case"arrow":p=2*A.AI;var _=A.AA;A.AA=0;var d=ZC.AQ.BN(A.iX,A.iY,p,_-35),g=ZC.AQ.BN(A.iX,A.iY,p,_+35);A.D=[[A.iX,A.iY],d,null,[A.iX,A.iY],g];break;case"star3":case"star4":case"star5":case"star6":case"star7":case"star8":case"star9":for(A.D=[],p=2*A.AI,l=360/(a=ZC._i_(A.DH.replace("star",""))),r=a%2==0?0:-90,o=p/(a>4?2:7-a),n=0+r;n<360+r;n+=l)A.D.push(ZC.AQ.BN(A.iX,A.iY,.75*p,n),ZC.AQ.BN(A.iX,A.iY,.75*o,n+l/2));A.D.push([A.D[0][0],A.D[0][1]]);break;case"rpoly3":case"rpoly4":case"rpoly5":case"rpoly6":case"rpoly7":case"rpoly8":case"rpoly9":for(A.D=[],p=A.AI,l=360/(a=ZC._i_(A.DH.replace("rpoly",""))),r=a%2==0?0:-90,null!==ZC._n_(A.o["angle-offset"])&&(r=ZC._i_(A.o["angle-offset"])),n=0+r;n<360+r;n+=l)A.D.push(ZC.AQ.BN(A.iX,A.iY,p,n));A.D.push([A.D[0][0],A.D[0][1]]);break;case"gear3":case"gear4":case"gear5":case"gear6":case"gear7":case"gear8":case"gear9":for(A.D=[],p=2*A.AI,l=360/(2*(a=ZC._i_(A.DH.replace("gear","")))),o=.75*p,n=0+(r=a%2==0?0:-90);n<360+r;n+=2*l){var v=n+l/2;A.D.push(ZC.AQ.BN(A.iX,A.iY,.75*p,v),ZC.AQ.BN(A.iX,A.iY,.75*p,v+l),ZC.AQ.BN(A.iX,A.iY,.75*o,v+l+0*l),ZC.AQ.BN(A.iX,A.iY,.75*o,v+2*l-0*l))}A.D.push([A.D[0][0],A.D[0][1]]);break;case"hamburger":p*=2;var B=A.iX,E=A.iY-10;A.D=A.D.concat([[B-p/2,E-A.JI/2],[B+p/2,E-A.JI/2],[B+p/2,E+A.JI/2],[B-p/2,E+A.JI/2],[B-p/2,E-A.JI/2],null]),E+=5,A.D=A.D.concat([[B-p/2,E-A.JI/2],[B+p/2,E-A.JI/2],[B+p/2,E+A.JI/2],[B-p/2,E+A.JI/2],[B-p/2,E-A.JI/2],null]),E+=5,A.D=A.D.concat([[B-p/2,E-A.JI/2],[B+p/2,E-A.JI/2],[B+p/2,E+A.JI/2],[B-p/2,E+A.JI/2],[B-p/2,E-A.JI/2],null]);break;case"ellipse":for(A.D0=!1,A.D=[],n=0;n<=360;n+=5)A.D.push([A.iX+A.AI*ZC.EF(n),A.iY+A.JI*ZC.EL(n)]);A.D.push([A.D[0][0],A.D[0][1]]);break;case"arc":A.D0=!1,A.D=[ZC.AQ.BN(A.iX,A.iY,A.AI,A.B4),[A.iX,A.iY,A.AI,A.B4,A.BL,0]];break;case"pie":for(var b=(A.o["pie-transform"]||"").split(/=|,/);A.B4<0||A.BL<0;)A.B4+=360,A.BL+=360;A.D0=!1;var D=!1;-1!==ZC.AV(["svg","vml"],A.G.AB)&&A.B4%360==A.BL%360&&(A.B4+=.05,A.BL-=.05,D=!0);var F,m,Y,M,I,K=A.iX,X=A.iY,x=ZC._x_(A.B4,2),L=ZC._x_(A.BL,2),P=ZC._x_((x+L)/2,2),w=p,S=A.CP,y=0===S&&x%360!=L%360&&!D;switch(A.D=[],"circle"!==b[0]&&(0===S?x%360==L%360||D||A.D.push([K,X]):A.D.push(ZC.AQ.BN(K,X,S,x))),b[0]){case"flat":case"fold":A.D.push(ZC.AQ.BN(K,X,w,x),ZC.AQ.BN(K,X,w-("fold"===b[0]?ZC._i_(b[1]):0),L)),y||A.D.push(ZC.AQ.BN(K,X,S,L));break;case"callout":A.D.push(ZC.AQ.BN(K,X,w,x),[K,X,w,x,L,0]),y||(F=1.5*ZC._i_(b[1])*360/(2*Math.PI*w),A.D.push(ZC.AQ.BN(K,X,w,L),ZC.AQ.BN(K,X,S,L),[K,X,S,L,P+F,1],ZC.AQ.BN(K,X,S-ZC._i_(b[1]),P),ZC.AQ.BN(K,X,S,P-F),[K,X,S,P-F,x,1]));break;case"flow":F=ZC._i_(b[1]),M=ZC.AQ.BN(K,X,(S+w)/2,x),99===F||-99===F?A.D.push([M[0],M[1],(w-S)/2,x+180,x,99===F?1:0]):A.D.push(ZC.AQ.BN(K,X,(S+w)/2,x+F)),A.D.push(ZC.AQ.BN(K,X,w,x),[K,X,w,x,L,0]),I=ZC.AQ.BN(K,X,(S+w)/2,L),y?99===F||-99===F?A.D.push(ZC.AQ.BN(K,X,w,L),[I[0],I[1],(w-S)/2,L,L+180,99===F?0:1]):A.D.push(ZC.AQ.BN(K,X,(S+w)/2,L+F)):(99===F||-99===F?A.D.push([I[0],I[1],(w-S)/2,L,L+180,99===F?0:1]):A.D.push(ZC.AQ.BN(K,X,(S+w)/2,L+F)),A.D.push(ZC.AQ.BN(K,X,S,L),[K,X,S,L,x,1]));break;case"circle":var G=ZC._f_(b[1]||"1"),O=(5+ZC._a_(L-x)%360*50/360)*G;Y=L%360==x%360||D?[K,X]:ZC.AQ.BN(K,X,(w+S)/2,(x+L)/2),A.D.push(ZC.AQ.BN(Y[0],Y[1],O,0),[Y[0],Y[1],O,0,360,0]);break;case"bite":F=ZC._i_(b[1]),m=ZC._i_(2*w*ZC.EL(F/2)),Y=ZC.AQ.BN(K,X,w,x),A.D.push(ZC.AQ.BN(K,X,w-m,x),[Y[0],Y[1],m,x+180,x+90+(90-(180-F)/2),1],[K,X,w,x+F,L,0]),y||A.D.push(ZC.AQ.BN(K,X,S,L),[K,X,S,L,x,1]);break;case"droplet":for(var N=w,V=1,U=0;w*V+U>=N;)V=ZC._x_(V-.02,2),m=ZC._i_(w*V/ZC.EF((L-x)/2)),U=ZC._i_(w*V*Math.tan(ZC.TD((L-x)/2)));Y=ZC.AQ.BN(K,X,m,P),A.D.push(ZC.AQ.BN(K,X,w*V,x),[Y[0],Y[1],U,P-(360-(180-(L-x)))/2,P+(360-(180-(L-x)))/2,0]),y||A.D.push(ZC.AQ.BN(K,X,S,L),[K,X,S,L,x,1]);break;default:A.D.push(ZC.AQ.BN(K,X,w,x),[K,X,w,x,L,0]),0===S?x%360==L%360||D||A.D.push([K,X]):A.D.push(ZC.AQ.BN(K,X,w,L),ZC.AQ.BN(K,X,S,L),[K,X,S,L,x,1])}A.D.push([A.D[0][0],A.D[0][1]])}}A.locate(2)},paint:function(){var e=this;if("none"!==e.DH&&("custom"===e.DH||"circle"===e.DH||"arc"===e.DH||0!==e.D.length)){var i,n,t={x:"iX",y:"iY",width:"I",height:"F",size:"AI"};if(e.o["bottom-state"]&&!e.Y9&&!e.W1&&!e.bIsBottom){var a=new ZC.DT(e.A);for(i in a.copy(e),a.bIsBottom=!0,a.ME=!1,a.Z=e.Z,a.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),a.append(e.o["bottom-state"]),a.K=e.K+"-bottom",a.parse(),n=!1,t)null===ZC._n_(a.o[i])||-1===(""+a.o[i]).indexOf("+")&&-1===(""+a.o[i]).indexOf("-")||(a.o[i]=a[t[i]]=e[t[i]]+ZC._i_(a.o[i]),n=!0);n&&a.parse(),a.paint()}var l=e.G.AB;switch(e.ME&&e.C8&&e.AA6(),l){case"canvas":e.A1R();break;case"svg":e.WG();break;case"vml":e.WF()}if(e.o["top-state"]&&!e.Y9&&!e.W1&&!e.bIsBottom){var r=new ZC.DT(e.A);for(i in r.copy(e),r.W1=!0,r.ME=!1,r.Z=e.Z,r.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),r.append(e.o["top-state"]),r.K=e.K+"-top",r.parse(),n=!1,t)null===ZC._n_(r.o[i])||-1===(""+r.o[i]).indexOf("+")&&-1===(""+r.o[i]).indexOf("-")||(r.o[i]=r[t[i]]=e[t[i]]+ZC._i_(r.o[i]),n=!0);n&&r.parse(),r.paint()}}},AA6:function(){var e,i=this,n=new ZC.DT(i.A);n.K=i.K+"-sh",n.copy(i),n.OC=i.OC,n.Z=i.C8,n.ME=!1,n.Y9=!0,n.A0=n.AE=n.RW,n.GT=n.HQ="",n.DC="",n.GE="solid",n.BX=n.RW,n.B1=0,n.C5=n.T7*i.C5,n.K=i.K+"-sh";var t=(i.JZ-i.PA)*ZC.EF(i.ON)+i.PA,a=(i.JZ-i.PA)*ZC.EL(i.ON)+i.PA;if(n.iX=i.iX+parseInt(t,10),n.iY=i.iY+parseInt(a,10),n.AI=i.AI+i.PA,i.D.length>0){e=[];for(var l=0,r=i.D.length;l<r;l++)if(null!==i.D[l]){for(var o=[],A=0;A<i.D[l].length;A++)o[A]=i.D[l][A];o[0]=i.D[l][0]+parseInt(t,10),o[1]=i.D[l][1]+parseInt(a,10),e.push(o)}else e.push(null)}n.D2=[i.D2[0]+t,i.D2[1]+a,i.D2[2]+t,i.D2[3]+a],n.D=e,n.paint()},A1T:function(){var e=this;return{lc:"-1"===e.B9?"rgba(255,255,255,0)":1===e.C5?e.B9:ZC.AO.A34(ZC.AO.GD(e.B9),e.C5),bc:"-1"===e.BX?"rgba(255,255,255,0)":1===e.O3?e.BX:ZC.AO.A34(ZC.AO.GD(e.BX),e.O3),bgc1:"-1"===e.A0?"rgba(255,255,255,0)":1===e.C5?e.A0:ZC.AO.A34(ZC.AO.GD(e.A0),e.C5),bgc2:"-1"===e.AE?"rgba(255,255,255,0)":1===e.C5?e.AE:ZC.AO.A34(ZC.AO.GD(e.AE),e.C5)}},YE:function(e){var i,n,t,a=this;switch(a.DH){case"circle":case"arc":case"pie":i=a.iX,n=a.iY,t=a.AI;break;default:i=a.D2[0]+(a.D2[2]-a.D2[0])/2,n=a.D2[1]+(a.D2[3]-a.D2[1])/2,t=ZC._a_(ZC.EF(a.NB)*(a.D2[2]-a.D2[0])/2+ZC.EL(a.NB)*(a.D2[3]-a.D2[1])/2)}ZC.PH(i)||(i=0),ZC.PH(n)||(n=0),ZC.PH(t)||(t=0);var l=a.VS,r=a.VR;if(ZC._a_(l)<=1&&(l=l*(a.D2[2]-a.D2[0])/2),ZC._a_(r)<=1&&(r=r*(a.D2[3]-a.D2[1])/2),i+=l,n+=r,"radial"===e)return{cx:i,cy:n,r:ZC._a_(t)};if("linear"===e){var o=t*ZC.EF(a.NB),A=t*ZC.EL(a.NB),C=i-o,s=n-A,u=i+o,Z=n+A;return ZC._i_(s)===ZC._i_(Z)&&ZC._a_(u-C)<5&&(Z+=1),ZC._i_(C)===ZC._i_(u)&&ZC._a_(Z-s)<5&&(u+=1),{x1:C,y1:s,x2:u,y2:Z}}},RK:function(){var e,i,n,t,a,l,r,o=this;if(ZC.cache.data[o.DC])e=ZC.cache.data[o.DC];else{if(2===zingchart.DEV.CANVASVERSION)var{Image:A}=require("canvas");else var A=require("canvas").Image;(e=new A).src=o.DC,ZC.cache.data[o.DC]=e}switch(i=e.width*o.KZ,n=e.height*o.KZ,o.WK){case"x":i=o.I;break;case"y":n=o.F;break;case"xy":case"both":i=o.I,n=o.F}var C=o.TE.split(" "),s=C[0]||"",u=0,Z=0;switch(s){case"":case"left":t=0,u=0;break;case"center":t=(o.I-i)/2,u=.5;break;case"right":t=o.I-i,u=1;break;default:-1!==s.indexOf("%")?(u=ZC._i_(s.replace(/[^0-9\-]/g,""))/100,t=(o.I-i)*u):(u=ZC._i_(s.replace(/[^0-9\-]/g,""))/o.I,t=ZC._i_(s.replace(/[^0-9\-]/g,"")))}l=t/o.I,"undefined"!=typeof o.KS?t+=o.iX+o.BK:t+=o.D2[0]+o.BK;var c=C[1]||"";switch(c){case"":case"top":a=0,Z=0;break;case"middle":a=(o.F-n)/2,Z=.5;break;case"bottom":a=o.F-n,Z=1;break;default:-1!==c.indexOf("%")?(Z=ZC._i_(c.replace(/[^0-9\-]/g,""))/100,a=(o.F-n)*Z):(Z=ZC._i_(c.replace(/[^0-9\-]/g,""))/o.F,a=ZC._i_(c.replace(/[^0-9\-]/g,"")))}if(r=a/o.F,"undefined"!=typeof o.KS?a+=o.iY+o.BJ:a+=o.D2[1]+o.BJ,"pie"===o.DH){var p=o.AA+o.B4+(o.BL-o.B4)*u,h=ZC.AQ.BN(o.iX,o.iY,o.CP+(o.AI-o.CP)*Z,p);t=h[0]-e.width/2,a=h[1]-e.height/2}return o.E["bg-image-width"]=i,o.E["bg-image-height"]=n,{image:e,x:ZC._i_(t)+.5,y:ZC._i_(a)+.5,cx:ZC._f_(l),cy:ZC._f_(r),hPos:u,vPos:Z}},ZT:function(e){for(var i=this,n=i.GT.split(/\s+|;/),t=i.HQ.split(/\s+|;/),a=0,l=n.length;a<l;a++){var r=ZC.AO.GD(n[a],i);"object"!=typeof r&&(r=[r,i.C5]);var o=ZC.AO.A34(r[0],r[1]),A=ZC._f_(t[a]||"1");ZC.DS(A,0,1)||(A=1),e.addColorStop(A,o)}},A1R:function(){var e,i,n,t,a,l,r,o,A=this;if(A.Z){var C=A.Z.getContext("2d");C.save(),"poly"===A.DH||"line"===A.DH?(i=A.D2[0]+(A.D2[2]-A.D2[0])/2,n=A.D2[1]+(A.D2[3]-A.D2[1])/2):(i=A.iX,n=A.iY);var s=A.A1T(),u=s.lc,Z=s.bc,c=s.bgc1,p=s.bgc2;if(c!==p||""!==A.GT&&""!==A.HQ){var h=A.YE(A.NJ);"radial"===A.NJ?t=C.createRadialGradient(h.cx,h.cy,1,h.cx,h.cy,h.r):"linear"===A.NJ&&(t=C.createLinearGradient(h.x1,h.y1,h.x2,h.y2)),""!==A.GT&&""!==A.HQ?A.ZT(t):(t.addColorStop(0,c),t.addColorStop(1,p)),C.fillStyle=t}else""!==A.DC&&-1!==ZC.AV(["repeat","true",!0],A.M8)&&"-1"===A.A0&&"-1"===A.AE&&(c="rgba(255,255,255,0)"),C.fillStyle=c;switch(A.DH){case"custom":if((e=A.o.url)&&(ZC.cache.data[e]?a=ZC.cache.data[e]:((a=new Image).src=e,ZC.cache.data[e]=a),a.width=A.o.width?A.o.width:a.width,a.height=A.o.height?A.o.height:a.height,C.drawImage(a,A.iX-a.width/2+A.BK,A.iY-a.height/2+A.BJ,a.width,a.height),0===c.indexOf("#")&&7===c.length)){for(var f=parseInt(c.substring(1,3),16),_=parseInt(c.substring(3,5),16),d=parseInt(c.substring(5,7),16),g=C.getImageData(A.iX-a.width/2+A.BK,A.iY-a.height/2+A.BJ,a.width,a.height),v=0;v<g.data.length;v+=4)g.data[v]=f|g.data[v],g.data[v+1]=_|g.data[v+1],g.data[v+2]=d|g.data[v+2];C.putImageData(g,A.iX-a.width/2+A.BK,A.iY-a.height/2+A.BJ)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":C.strokeStyle=u,C.lineWidth=A.B1;break;default:C.strokeStyle=Z,C.lineWidth=A.AU}0!==A.AA&&(C.translate(i,n),isNaN(A.AA)||C.rotate(ZC.TD(A.AA)),C.translate(-i,-n));var B=-1===ZC.AV(["cross","plus","arc","line","ic_line"],A.DH);switch(isNaN(A.BK)||isNaN(A.BJ)||0===A.BK&&0===A.BJ||!B&&"arc"!==A.DH||C.translate(A.BK,A.BJ),C.beginPath(),A.DH){case"circle":case"arc":C.setLineDash&&"circle"===A.DH&&(A.L3(A.AU),C.setLineDash(0===A.EU||0===A.G3?[]:[A.EU,A.G3])),C.arc(A.iX,A.iY,A.AI,ZC.TD(A.B4),ZC.TD(A.BL),!1);break;case"line":break;default:-1!==ZC.AV(["square","plus"],A.DH)&&(A.N2=!0),ZC.CO.contour(C,A,A.D),-1!==ZC.AV(["square","plus"],A.DH)&&(A.N2=!1)}if(C.globalCompositeOperation=A.A0Z,B)if(""!==A.DC&&-1===ZC.AV(ZC.IMG404,A.DC)){var E;C.fill(),E=C.globalAlpha,C.globalAlpha=A.C5;var b=A.RK();switch(a=b.image,A.M8){case"repeat":case!0:case"true":if(C.createPattern)l=A.D2[0]-(a.width-(A.D2[2]-A.D2[0]))/2,r=A.D2[1]-(a.height-(A.D2[3]-A.D2[1]))/2,C.translate(l,r),o=C.createPattern(a,"repeat"),C.fillStyle=o,C.fill(),C.translate(-l,-r);else for(var D=ZC._i_(A.I/a.width),F=ZC._i_(A.F/a.height),m=0;m<F;m++)for(var Y=0;Y<D;Y++)(Y+1)*a.width<=A.I&&(m+1)*a.height<=A.F?C.drawImage(a,A.D2[0]+Y*a.width,A.D2[1]+m*a.height):C.drawImage(a,0,0,A.I-Y*a.width,A.F-m*a.height,A.D2[0]+Y*a.width,A.D2[1]+m*a.height,A.I-Y*a.width,A.F-m*a.height);break;case"no-repeat":case!1:case"false":C.drawImage(a,b.x-A.BK,b.y-A.BJ,A.E["bg-image-width"],A.E["bg-image-height"])}C.globalAlpha=E}else C.fill();switch(C.closePath(),C.beginPath(),A.DH){case"circle":case"arc":C.arc(A.iX,A.iY,A.AI,ZC.TD(A.B4),ZC.TD(A.BL),!1),("circle"===A.DH&&A.AU>0||"arc"===A.DH&&A.B1>0)&&C.stroke(),C.closePath();break;case"plus":case"cross":case"line":case"ic_line":A.B1>0&&(ZC.CO.setup(C,A),A.o.spline?(A.D0=!1,A.QW=!0,ZC.CO.paint(C,A,ZC.CO.smooth(A.D,!1,A.o.direction||"h"))):ZC.CO.paint(C,A,A.D));break;default:if(A.AU>0){var M=A.B9,I=A.B1;A.B9=A.BX,A.B1=A.AU,A.L3(),ZC.CO.setup(C,A),ZC.CO.paint(C,A,A.D,!0),A.B9=M,A.B1=I,A.L3()}C.closePath()}C.restore()}},A2Q:function(e){},WZ:function(e){},A3Z:function(){var e=this;if("object"==typeof e.E.imgfill&&"undefined"!=typeof e.G&&e.G){var i=e.A5F()[1].split(",");if("circle"===e.DH)e.G.KB.appendChild(ZC.Q.XL({id:e.K+"_image-clip",cx:i[0],cy:i[1],r:i[2]})),e.E["clip-path"]=e.K+"_image-clip";else if(i.length>6){for(var n="",t=0,a=i.length;t<a;t+=2)n+=ZC._i_(i[t])+ZC._i_(e.BK)+","+(ZC._i_(i[t+1])+ZC._i_(e.BJ))+" ";e.G.KB.appendChild(ZC.Q.XL({id:e.K+"_image-clip",path:n})),e.E["clip-path"]=e.K+"_image-clip"}}},WG:function(){},X0:function(e,i){},WF:function(){}};ZC.DT=ZC.CZ.CD(DT);var HU={$i:function(e){this.b(e);var i=this;i.DH="box",i.I=0,i.F=0,i.A8L="",i.EB=-1,i.EA=-1,i.DW=-1,i.E0=-1,i.F6=0,i.FW=0,i.F2=0,i.FG=0,i.A73=!1,i.KS=!1,i.EP="bottom",i.EY=0,i.M9=0,i.HD=8,i.GA=8,i.XP=[1,1],i.DN=null,i.OS=null,i.PZ=!1,i.N2=!0,i.Q1="",i.OO="",i.NQ="",i.PE="",i.VF="tl",i.FF=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"width,height,borderRadiusTopLeft,borderRadiusTopRight,borderRadiusBottomRight,borderRadiusBottomLeft,callout,calloutType,calloutPosition,calloutHook,calloutWidth,calloutHeight,calloutOffset,calloutExtension,position,borderTop,borderRight,borderBottom,borderLeft,rectShortcut","I,F,F6,FW,F2,FG,KS,EP,DN,HD,GA,EY,M9,A8L,Q1,OO,NQ,PE,FF"),e},build:function(){},wh_:function(e,i,n){var t=this;if(i=i||"w",ZC._f_(e)+""!=e+"")return-1!==(e+="").indexOf("%")?t.wh_(ZC._f_(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?t.wh_(ZC._f_(e.replace("px","")),i):t.wh_(ZC._f_(e),i);var a="undefined"!=typeof t.E["p-width"]?t.E["p-width"]:t.A.I,l="undefined"!=typeof t.E["p-height"]?t.E["p-height"]:t.A.F;return(e=ZC._a_(e))>1&&!n?ZC._i_(e):e<=1||n?"w"===i?ZC._i_(a*e):ZC._i_(l*e):void 0},m_:function(e,i,n,t,a){var l,r,o=this;if(n=n||0,t=t||0,i=i||"all",a=a||"n","all"===i){var A=String(e).split(/\s+|;|,/);return 1===A.length?[o.m_(A[0],"tb",n,t,a),o.m_(A[0],"lr",n,t,a),o.m_(A[0],"tb",n,t,a),o.m_(A[0],"lr",n,t,a)]:2===A.length?[o.m_(A[0],"tb",n,t,a),o.m_(A[1],"lr",n,t,a),o.m_(A[0],"tb",n,t,a),o.m_(A[1],"lr",n,t,a)]:3===A.length?[o.m_(A[0],"tb",n,t,a),o.m_(A[1],"lr",n,t,a),o.m_(A[2],"tb",n,t,a),o.m_(A[1],"lr",n,t,a)]:[o.m_(A[0],"tb",n,t,a),o.m_(A[1],"lr",n,t,a),o.m_(A[2],"tb",n,t,a),o.m_(A[3],"lr",n,t,a)]}return e+""=="auto"?-2:e+""=="dynamic"&&"y"===a?"dynamic":ZC._f_(e)+""!=e+""?-1!==(e+="").indexOf("%")?o.m_(ZC._f_(e.replace("%",""))/100,i):-1!==e.indexOf("px")?o.m_(ZC._f_(e.replace("px","")),i):o.m_(ZC._f_(e),i):((o.A||"undefined"!=typeof o.E["p-width"])&&(l="undefined"!=typeof o.E["p-width"]?o.E["p-width"]:o.A.I),(o.A||"undefined"!=typeof o.E["p-height"])&&(r="undefined"!=typeof o.E["p-height"]?o.E["p-height"]:o.A.F),(e=ZC._a_(e))>=1?ZC._i_(e):e<1?"lr"===i?ZC._i_((o.A?l:n)*e):ZC._i_((o.A?r:t)*e):void 0)},copy:function(e){this.b(e);for(var i="I,F,EB,DW,E0,EA,F6,FW,F2,FG,KS,EP,DN,XP,HD,GA,EY,M9,A8L,Q1,OO,NQ,PE,FF".split(","),n=0,t=i.length;n<t;n++)"undefined"!=typeof e[i[n]]&&(this[i[n]]=e[i[n]])},locate:function(e){var i,n,t,a,l,r=this;if(2!==(e=e||1))if(r.TL)r.assign_a([["x","iX"],["y","iY"],["width","I"],["height","F"]]);else{var o="undefined"!=typeof r.E["p-x"]?r.E["p-x"]:r.A.iX,A="undefined"!=typeof r.E["p-y"]?r.E["p-y"]:r.A.iY,C="undefined"!=typeof r.E["p-width"]?r.E["p-width"]:r.A.I,s="undefined"!=typeof r.E["p-height"]?r.E["p-height"]:r.A.F;if(!r.PZ){var u=0,Z=0,c=0,p=0;if(null!==ZC._n_(r.o.margin)){var h=""+r.o.margin;if(-1!==h.indexOf("dynamic")){var f=r.m_(h,"all",0,0,"y");"dynamic"===f[0]&&(r.E["d-margin-top"]=r.E["d-margin"]=!0),"dynamic"===f[1]&&(r.E["d-margin-right"]=r.E["d-margin"]=!0),"dynamic"===f[2]&&(r.E["d-margin-bottom"]=r.E["d-margin"]=!0),"dynamic"===f[3]&&(r.E["d-margin-left"]=r.E["d-margin"]=!0),r.o.margin=h.replace(/dynamic/g,"20")}}"dynamic"===r.o.margin&&(r.E["d-margin"]=r.E["d-margin-top"]=r.E["d-margin-right"]=r.E["d-margin-bottom"]=r.E["d-margin-left"]=!0,r.o.margin=null),"undefined"==typeof r.E["force-margins"]||null!==ZC._n_(r.o["adjust-layout"])&&ZC._b_(r.o["adjust-layout"])||(null!==ZC._n_(r.o["margin-top"])&&null===ZC._n_(r.o["margin-bottom"])&&(r.o["margin-bottom"]="auto"),null!==ZC._n_(r.o["margin-bottom"])&&null===ZC._n_(r.o["margin-top"])&&(r.o["margin-top"]="auto"),null!==ZC._n_(r.o["margin-left"])&&null===ZC._n_(r.o["margin-right"])&&(r.o["margin-right"]="auto"),null!==ZC._n_(r.o["margin-right"])&&null===ZC._n_(r.o["margin-left"])&&(r.o["margin-left"]="auto"));for(var _=["margin-top","margin-right","margin-bottom","margin-left"],d=0,g=_.length;d<g;d++)"dynamic"===r.o[_[d]]&&(r.E["d-"+_[d]]=r.E["d-margin"]=!0,r.o[_[d]]=null);null!==(i=ZC._n_(r.o.margin))&&(n=r.m_(i,"all"),null===ZC._n_(r.o["margin-top"])&&(u=n[0]),null===ZC._n_(r.o["margin-right"])&&(Z=n[1]),null===ZC._n_(r.o["margin-bottom"])&&(c=n[2]),null===ZC._n_(r.o["margin-left"])&&(p=n[3])),null!==(i=ZC._n_(r.o["margin-top"]))&&(u=n=r.m_(i,"tb")),null!==(i=ZC._n_(r.o["margin-right"]))&&(Z=n=r.m_(i,"lr")),null!==(i=ZC._n_(r.o["margin-bottom"]))&&(c=n=r.m_(i,"tb")),null!==(i=ZC._n_(r.o["margin-left"]))&&(p=n=r.m_(i,"lr"));var v,B=[u,Z,c,p];if(null!==ZC._n_(r.o.x)&&(r.iX=r.xy_(r.o.x,"x")),null!==ZC._n_(r.o.y)&&(r.iY=r.xy_(r.o.y,"y")),null!==(i=ZC._n_(r.o.width))){var E=ZC._p_(i);v=-1!==(""+i).indexOf("%"),r.I=E>1&&!v?ZC._i_(E):-2===p&&-2===Z?ZC._i_(C*E):-2===p&&-2!==Z?ZC._i_((C-Z)*E):-2!==p&&-2===Z?ZC._i_((C-p)*E):ZC._i_((C-p-Z)*E),-1!==r.iX?(r.E0=r.iX-o,r.EA=o+C-r.E0-r.I):-2===p&&-2===Z?(r.E0=r.EA=(C-r.I)/2,r.iX=o+r.E0):-2===p&&-2!==Z?(r.EA=Z,r.E0=C-r.EA-r.I,r.iX=o+r.E0):(r.E0=p,r.iX=o+r.E0,r instanceof ZC.DQ?r.EA=Z:r.EA=C-r.E0-r.I)}else-1!==r.iX?(r.E0=r.iX-o,r.EA=-2===Z?0:Z,r.I=C-r.E0-r.EA):-2===p&&-2===Z?(r.E0=r.EA=0,r.iX=o+r.E0,r.I=C-r.E0-r.EA):-2===p&&-2!==Z?(r.EA=Z,r.E0=0,r.iX=o+r.E0,r.I=C-r.E0-r.EA):-2!==p&&-2===Z?(r.E0=p,r instanceof ZC.DQ?r.EA=Z:r.EA=0,r.iX=o+r.E0,r.I=C-r.E0-r.EA):(r.E0=p,r.EA=Z,r.iX=o+r.E0,r.I=C-r.E0-r.EA);if(null!==(i=ZC._n_(r.o.height))){var b=ZC._p_(i);v=-1!==(""+i).indexOf("%"),r.F=b>1&&!v?ZC._i_(b):-2===u&&-2===c?ZC._i_(s*b):-2===u&&-2!==c?ZC._i_((s-c)*b):-2!==u&&-2===c?ZC._i_((s-u)*b):ZC._i_((s-u-c)*b),-1!==r.iY?(r.EB=r.iY-A,r.DW=A+s-r.EB-r.F):-2===u&&-2===c?(r.EB=r.DW=(s-r.F)/2,r.iY=A+r.EB):-2===u&&-2!==c?(r.DW=c,r.EB=s-r.DW-r.F,r.iY=A+r.EB):(r.EB=u,r.iY=A+r.EB,r instanceof ZC.DQ?r.DW=c:r.DW=s-r.EB-r.F)}else-1!==r.iY?(r.EB=r.iY-A,r.DW=-2===c?0:c,r.F=s-r.EB-r.DW):-2===u&&-2===u?(r.EB=r.EB=0,r.iY=A+r.EB,r.F=s-r.EB-r.DW):-2===u&&-2!==c?(r.DW=c,r.EB=0,r.iY=A+r.EB,r.F=s-r.EB-r.DW):-2===u&&-2!==c?(r.EB=u,r instanceof ZC.DQ?r.DW=c:r.DW=0,r.iY=A+r.EB,r.F=s-r.EB-r.DW):(r.EB=u,r.DW=c,r.iY=A+r.EB,r.F=s-r.EB-r.DW);if(null!==(i=ZC._n_(r.o.position))){if(r.A&&"undefined"!=typeof r.A.iX&&"undefined"!=typeof r.A.iY&&"undefined"!=typeof r.A.I&&"undefined"!=typeof r.A.F){switch(t=0,a=0,(l=String(i).split(/\s+/))[0]){case"left":t=0;break;case"right":t=1;break;case"center":t=.5;break;default:(t=ZC.IO(l[0]))>1&&(t/=r.A.I)}switch(l[1]){case"top":a=0;break;case"bottom":a=1;break;case"middle":a=.5;break;default:(a=ZC.IO(l[1]))>1&&(a/=r.A.F)}}r.E["position-info"]=[t,a],r.iX=r.A.iX+ZC._i_(t*(r.A.I-r.I-B[1]-B[3]))+B[3],r.iY=r.A.iY+ZC._i_(a*(r.A.F-r.F-B[0]-B[2]))+B[0]}r.D2=[r.iX,r.iY,r.iX+r.I,r.iY+r.F]}}},parse:function(){this.b();var e,i=this;if(!i.o.tween){if(i.assign_a([["anchor","VF"],["rect-shortcut","FF","b"],["center-ref","A73","b"],["callout","KS","b"],["callout-type","ACM"],["callout-position","EP"],["callout-hook","DN"],["callout-ratio","XP"],["callout-width","HD","i"],["callout-height","GA","i"],["callout-offset","EY","i"],["callout-extension","M9","i"],["border-top","Q1"],["border-right","OO"],["border-bottom","NQ"],["border-left","PE"]]),null!==(e=ZC._n_(i.o["border-radius"]))){var n=String(e).split(/\s+|;|,/);2===n.length?(i.F6=i.FW=ZC._i_(n[0]),i.F2=i.FG=ZC._i_(n[1])):4===n.length?(i.F6=ZC._i_(n[0]),i.FW=ZC._i_(n[1]),i.F2=ZC._i_(n[2]),i.FG=ZC._i_(n[3])):i.F6=i.FW=i.F2=i.FG=ZC._i_(n[0])}null!==ZC._n_(i.o["callout-tip"])&&(i.OS=new ZC.DT(i.A)),i.assign_a([["border-radius-top-left","F6","i"],["border-radius-top-right","FW","i"],["border-radius-bottom-right","F2","i"],["border-radius-bottom-left","FG","i"]])}},WY:function(e){var i=e.split(/\s/);return i[0]=ZC._i_(i[0]),i[2]=ZC.AO.GD(i[2]),i},paint:function(){var e=this;if(null!==e.DN&&!(e.DN instanceof Array)&&"zcgraph"===e.A.OJ){var i=e.A.V7(e.DN);e.DN=[i[0],i[1]],e.DN[0]-=e.BK,e.DN[1]-=e.BJ}e.A73&&(e.iX-=e.I/2,e.iY-=e.F/2);var n=!0;"-1"!==e.BX&&0!==e.AU||e.Q1+e.OO+e.NQ+e.PE!==""||"-1"!==e.A0||"-1"!==e.AE||""!==e.DC||""!==e.GT||""!==e.HQ||(n=!1);var t,a=e.G.AB;n&&e.ME&&e.C8&&e.AA6();var l={x:"iX",y:"iY",width:"I",height:"F"};if(e.o["bottom-state"]&&!e.Y9&&!e.bIsBottom&&!e.W1){var r=new ZC.HU(e.A);for(t in r.copy(e),r.bIsBottom=!0,r.ME=!1,r.Z=e.Z,r.VF=e.VF,r.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),r.append(e.o["bottom-state"]),r.K=e.K+"-bottom",r.parse(),r.setAnchor(),!1,l)null===ZC._n_(r.o[t])||-1===(""+r.o[t]).indexOf("+")&&-1===(""+r.o[t]).indexOf("-")||(r[l[t]]=e[l[t]]+ZC._i_(r.o[t]),!0);r.paint()}if(e.Q1+e.OO+e.NQ+e.PE===""){switch(a){case"canvas":e.A1R();break;case"svg":e.WG();break;case"vml":e.WF()}if(e.KS&&e.OS){var o,A;if(e.DN&&2===e.DN.length?(o=e.DN[0],A=e.DN[1]):e.E.cp&&(o=e.E.cp[0],A=e.E.cp[1]),e.OS.Z=e.OS.C8=e.Z,e.OS.copy(e),e.OS.append(e.o["callout-tip"]),e.OS.K=e.K+"-callout-tip",e.OS.o.x=o,e.OS.o.y=A,e.E.cm){var C=e.E.cm[0],s=e.E.cm[1],u=Math.atan2(ZC._i_(s)-ZC._i_(A),ZC._i_(C)-ZC._i_(o));isNaN(u)&&(u=0),null===ZC._n_(e.OS.o.angle)&&(e.OS.o.angle=ZC.U4(u))}e.OS.parse(),e.OS.paint()}}else{var Z=e.AU,c=e.BX,p=e.GE;switch(e.AU=0,a){case"canvas":e.A1R();break;case"svg":e.WG();break;case"vml":e.WF()}e.AU=Z;var h=e.A0,f=e.AE;e.A0=e.AE="-1";for(var _,d=["top","right","bottom","left"],g=["Q1","OO","NQ","PE"],v=0;v<d.length;v++)if(""!==(_=e[g[v]])&&"none"!==_){var B=e.WY(_);switch(e.AU=B[0],e.GE=B[1],e.BX=B[2],a){case"canvas":e.A1R(d[v]);break;case"svg":e.WG(d[v]);break;case"vml":e.WF(d[v])}e.AU=Z,e.BX=c,e.GE=p}e.A0=h,e.AE=f}if(e.o["top-state"]&&!e.Y9&&!e.W1&&!e.bIsBottom){var E=new ZC.HU(e.A);for(t in E.copy(e),E.W1=!0,E.ME=!1,E.Z=e.Z,E.VF=e.VF,E.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),E.append(e.o["top-state"]),E.K=e.K+"-top",E.parse(),E.setAnchor(),!1,l)null===ZC._n_(E.o[t])||-1===(""+E.o[t]).indexOf("+")&&-1===(""+E.o[t]).indexOf("-")||(E[l[t]]=e[l[t]]+ZC._i_(E.o[t]),!0);E.paint()}},setAnchor:function(){var e=this;switch(e.VF){case"tl":break;case"tr":e.iX-=e.I;break;case"bl":e.iY-=e.F;break;case"br":e.iX-=e.I,e.iY-=e.F;break;case"c":e.iX-=e.I/2,e.iY-=e.F/2;break;case"t":e.iX-=e.I/2;break;case"r":e.iX-=e.I,e.iY-=e.F/2;break;case"b":e.iX-=e.I/2,e.iY-=e.F;break;case"l":e.iY-=e.F/2}},AA6:function(){var e=this,i=new ZC.HU(e.A);i.K=e.K+"-sh",i.copy(e),i.Z=e.C8,i.ME=!1,i.Y9=!0,i.Q1=i.OO=i.NQ=i.PE="",i.A0=i.AE=i.RW,i.GT=i.HQ="",i.DC="",i.GE="solid",i.BX=i.RW,i.B1=0;var n=e.JZ*ZC.EF(e.ON),t=e.JZ*ZC.EL(e.ON);i.I=e.I+("vml"===e.G.AB?0:.5)-ZC.EF(e.ON)*e.PA/2,i.F=e.F+("vml"===e.G.AB?0:.5)-ZC.EL(e.ON)*e.PA/2,i.O3=i.C5=i.T7*e.C5,i.K=e.K+"-sh",i.iX=e.iX+ZC._i_(n),i.iY=e.iY+ZC._i_(t),i.paint()},YE:function(e){var i,n=this,t=n.iX,a=n.iY,l=t+n.I/2,r=a+n.F/2,o=n.VS,A=n.VR;if(ZC._a_(o)<=1&&(o=o*n.I/2),ZC._a_(A)<=1&&(A=A*n.F/2),l+=o,r+=A,"radial"===e){var C=ZC._i_((n.I+n.F)/2),s=ZC.CY(n.I,n.F);return i=s<C/4?(s+C)/2:s,{cx:l,cy:r,r:ZC._a_(i)}}if("linear"===e){var u=(i=n.I>=n.F?ZC._a_(ZC.EL(n.NB))>.5?n.F/2:n.I/2:ZC._a_(ZC.EF(n.NB))>.5?n.I/2:n.F/2)*ZC.EF(n.NB),Z=i*ZC.EL(n.NB);return{x1:l-u,y1:r-Z,x2:l+u,y2:r+Z}}},WH:function(e){var i,n=this;void 0===e&&(e="all");var t,a,l=n.iX,r=n.iY;n.D=[],t=a=n.AU/2;var o=1;switch(n.G.AB){case"vml":o=2,n.AU%2==1&&(t=ZC._i_((n.AU-1)/2),a=ZC._i_((n.AU+1)/2))}var A=null,C=ZC._x_(l+t,2),s=ZC._x_(l-a,2),u=ZC._x_(r+t,2),Z=ZC._x_(r-a,2),c=n.DN&&2===n.DN.length,p=ZC._i_(n.EY*(n.I-n.HD)/100),h=ZC._i_(n.EY*(n.F-n.GA)/100),f=0!==n.F6||0!==n.FW||0!==n.F2||0!==n.FG,_=n.XP[0],d=n.XP[1];switch(n.EP){case"top":n.E.cm=[n.iX+n.I/2+p,n.iY];break;case"bottom":n.E.cm=[n.iX+n.I/2+p,n.iY+n.F];break;case"left":n.E.cm=[n.iX,n.iY+n.F/2+h];break;case"right":n.E.cm=[n.iX+n.I,n.iY+n.F/2+h]}if(f){var g,v=ZC.CY(n.I/2,n.F/2);"top"!==e&&"all"!==e||(0!==n.F6?(g=n.I/2>=n.F6&&n.F/2>=n.F6?ZC._a_(n.F6):v,n.D.push([C,u+g]),n.F6>0&&n.D.push([C,u,C+o*g,u]),n.D.push([C+g,u])):n.D.push([C,u]),n.KS&&"top"===n.EP&&(n.D.push([C+n.I/2-_*n.HD/2-n.AU/2+p,u]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[C+n.I/2-n.AU/2+p,u-n.GA],n.D.push(A)),n.M9>0&&(i=n.D[n.D.length-1],n.D.push([i[0],i[1]-n.M9*(n.GA>0?1:-1)]),n.D.push([i[0],i[1]])),n.D.push([C+n.I/2-n.AU/2+d*n.HD/2+p,u])),"top"===e&&(0!==n.FW?(g=n.I/2>=n.FW&&n.F/2>=n.FW?ZC._a_(n.FW):v,n.D.push([s+n.I-g,u])):n.D.push([s+n.I,u]))),"right"!==e&&"all"!==e||(0!==n.FW?(g=n.I/2>=n.FW&&n.F/2>=n.FW?ZC._a_(n.FW):v,n.D.push([s+n.I-g,u]),n.FW>0?n.D.push([s+n.I,u,s+n.I,u+o*g]):n.D.push([s+n.I,u+g])):n.D.push([s+n.I,u]),n.KS&&"right"===n.EP&&(n.D.push([s+n.I,u+n.F/2-_*n.GA/2-n.AU/2+h]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[s+n.I+n.HD,u+n.F/2-n.AU/2+h],n.D.push(A)),n.D.push([s+n.I,u+n.F/2+d*n.GA/2-n.AU/2+h])),"right"===e&&(0!==n.F2?(g=n.I/2>=n.F2&&n.F/2>=n.F2?ZC._a_(n.F2):v,n.D.push([s+n.I,Z+n.F-g])):n.D.push([s+n.I,Z+n.F]))),"bottom"!==e&&"all"!==e||(0!==n.F2?(g=n.I/2>=n.F2&&n.F/2>=n.F2?ZC._a_(n.F2):v,n.D.push([s+n.I,Z+n.F-g]),n.F2>0?n.D.push([s+n.I,Z+n.F,s+n.I-o*g,Z+n.F]):n.D.push([s+n.I-g,Z+n.F])):n.D.push([s+n.I,Z+n.F]),n.KS&&"bottom"===n.EP&&(n.D.push([s+n.I/2+_*n.HD/2+n.AU/2+p,Z+n.F]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[s+n.I/2+n.AU/2+p,Z+n.F+n.GA],n.D.push(A)),n.M9>0&&(i=n.D[n.D.length-1],n.D.push([i[0],i[1]+n.M9*(n.GA>0?1:-1)]),n.D.push([i[0],i[1]])),n.D.push([s+n.I/2-d*n.HD/2+n.AU/2+p,Z+n.F])),"bottom"===e&&(0!==n.FG?(g=n.I/2>=n.FG&&n.F/2>=n.FG?ZC._a_(n.FG):v,n.D.push([C+g,Z+n.F])):n.D.push([C,Z+n.F]))),"left"!==e&&"all"!==e||(0!==n.FG?(g=n.I/2>=n.FG&&n.F/2>=n.FG?ZC._a_(n.FG):v,n.D.push([C+g,Z+n.F]),n.FG>0?n.D.push([C,Z+n.F,C,Z+n.F-o*g]):n.D.push([C,Z+n.F-g])):n.D.push([C,Z+n.F]),n.KS&&"left"===n.EP&&(n.D.push([C,Z+n.F/2+_*n.GA/2+n.AU/2+h]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[C-n.HD,Z+n.F/2+n.AU/2+h],n.D.push(A)),n.D.push([C,Z+n.F/2-d*n.GA/2+n.AU/2+h])),0!==n.F6?(g=n.I/2>=n.F6&&n.F/2>=n.F6?ZC._a_(n.F6):v,n.D.push([C,u+g])):(n.D.push([C,u]),n.D.push([C+.1,u])))}else"top"!==e&&"all"!==e||("top"===e?n.D.push([C+.5,u+.5]):n.D.push([C,u]),n.KS&&"top"===n.EP&&(n.D.push([C+n.I/2-_*n.HD/2-n.AU/2+p,u]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[C+n.I/2-n.AU/2+p,u-n.GA],n.D.push(A)),n.M9>0&&(i=n.D[n.D.length-1],n.D.push([i[0],i[1]-n.M9*(n.GA>0?1:-1)]),n.D.push([i[0],i[1]])),n.D.push([C+n.I/2+d*n.HD/2-n.AU/2+p,u])),"top"===e&&n.D.push([s+n.I+.5,u+.5])),"right"!==e&&"all"!==e||("right"===e?n.D.push([s+n.I+.5,u+.5]):n.D.push([s+n.I,u]),n.KS&&"right"===n.EP&&(n.D.push([s+n.I,u+n.F/2-n.AU/2-_*n.GA/2+h]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[s+n.I+n.HD,u+n.F/2-n.AU/2+h],n.D.push(A)),n.D.push([s+n.I,u+n.F/2-n.AU/2+d*n.GA/2+h])),"right"===e&&n.D.push([s+n.I+.5,Z+n.F+.5])),"bottom"!==e&&"all"!==e||("bottom"===e?n.D.push([s+n.I+.5,Z+n.F+.5]):n.D.push([s+n.I,Z+n.F]),n.KS&&"bottom"===n.EP&&(n.D.push([s+n.I/2+_*n.HD/2+n.AU/2+p,Z+n.F]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[s+n.I/2+n.AU/2+p,Z+n.F+n.GA],n.D.push(A)),n.M9>0&&(i=n.D[n.D.length-1],n.D.push([i[0],i[1]+n.M9*(n.GA>0?1:-1)]),n.D.push([i[0],i[1]])),n.D.push([s+n.I/2-d*n.HD/2+n.AU/2+p,Z+n.F])),"bottom"===e&&n.D.push([C+.5,Z+n.F+.5])),"left"!==e&&"all"!==e||("left"===e?n.D.push([C+.5,Z+n.F+.5]):n.D.push([C,Z+n.F]),n.KS&&"left"===n.EP&&(n.D.push([C,Z+n.F/2+n.AU/2+_*n.GA/2+h]),c?n.D.push([n.DN[0],n.DN[1]]):(A=[C-n.HD,Z+n.F/2+n.AU/2+h],n.D.push(A)),n.D.push([C,Z+n.F/2+n.AU/2-d*n.GA/2+h])),"left"===e?n.D.push([C+.5,u+.5]):(n.D.push([C,u]),n.D.push([C+.1,u])));A&&(n.E.cp=A)},A1R:function(e){e=e||"all";var i,n,t,a=this;if(a.Z){var l=a.Z.getContext("2d");l.save(),l.globalCompositeOperation=a.A0Z;var r=a.iX,o=a.iY,A=a.A1T(),C=A.bc,s=A.bgc1,u=A.bgc2;if("all"===e)if(s!==u||""!==a.GT&&""!==a.HQ){var Z=a.YE(a.NJ);"radial"===a.NJ?i=l.createRadialGradient(Z.cx,Z.cy,1,Z.cx,Z.cy,Z.r):"linear"===a.NJ&&(Z.x1=isNaN(Z.x1)?0:Z.x1,Z.x2=isNaN(Z.x2)?0:Z.x2,Z.y1=isNaN(Z.y1)?0:Z.y1,Z.y2=isNaN(Z.y2)?0:Z.y2,i=l.createLinearGradient(Z.x1,Z.y1,Z.x2,Z.y2)),""!==a.GT&&""!==a.HQ?a.ZT(i):(i.addColorStop(0,s),i.addColorStop(1,u)),l.fillStyle=i}else""!==a.DC&&-1!==ZC.AV(["repeat","true",!0],a.M8)&&"-1"===a.A0&&"-1"===a.AE&&(s="rgba(255,255,255,0)"),l.fillStyle=s;l.strokeStyle=C,l.lineWidth=a.AU,l.translate(a.BK,a.BJ),0!==a.AA&&(l.translate(r+a.I/2,o+a.F/2),l.rotate(ZC.TD(a.AA)),l.translate(-(r+a.I/2),-(o+a.F/2))),l.beginPath(),a.WH(e);var c=a.F6+a.FW+a.F2+a.FG!==0;t=a.B1,a.B1=a.AU;var p=a.GE;if(a.GE="",a.L3(),ZC.CO.contour(l,a,a.D),a.B1=t,a.GE=p,a.L3(),"all"===e)if(""!==a.DC&&-1===ZC.AV(ZC.IMG404,a.DC)){l.fill();var h=l.globalAlpha;l.globalAlpha=a.C5;var f=a.RK(),_=f.image;switch(a.M8){default:if(l.createPattern)r=a.D2[0]-(_.width-(a.D2[2]-a.D2[0]))/2,o=a.D2[1]-(_.height-(a.D2[3]-a.D2[1]))/2,l.translate(r,o),n=l.createPattern(_,"repeat"),l.fillStyle=n,l.fill(),l.translate(-r,-o);else for(var d=ZC._i_(a.I/_.width)+1,g=ZC._i_(a.F/_.height)+1,v=0;v<g;v++)for(var B=0;B<d;B++)(B+1)*_.width<=a.I&&(v+1)*_.height<=a.F?l.drawImage(_,a.iX+B*_.width,a.iY+v*_.height):l.drawImage(_,0,0,a.I-B*_.width,a.F-v*_.height,a.iX+B*_.width,a.iY+v*_.height,a.I-B*_.width,a.F-v*_.height);break;case"no-repeat":case"false":case!1:l.drawImage(_,f.x-a.BK,f.y-a.BJ,a.E["bg-image-width"],a.E["bg-image-height"])}l.globalAlpha=h}else l.fill();if(a.AU>0){var E=a.B9;t=a.B1,a.B9=a.BX,a.B1=a.AU,a.L3(),ZC.CO.setup(l,a),a.T6=c?"round":"square",a.EU+a.G3>0&&(a.T6="butt"),a.A00=c?"round":"miter",a.E["skip-top"]=!0,a.E.border=e,ZC.CO.paint(l,a,a.D,!0),a.B9=E,a.B1=t,a.L3()}l.closePath(),l.restore()}},WG:function(e){},WF:function(e){}};ZC.HU=ZC.DT.CD(HU);var P8={$i:function(e){this.b(e);var i=this;i.WQ=null,i.BG=null,i.M=null,i.SN=null,i.A7=null,i.KD=!1,i.OC=!1,i.L5=!1,i.A67=!1},parse:function(){var e,i=this;i.BG=zingchart.pool.getInstance("box"===i.WQ.type?"HU":"DT",i.A,i.K+"-shape",i.WQ.tween),i.BG.append(i.WQ),i.BG.iX=i.iX,i.BG.iY=i.iY,i.BG.K=i.K+"-gshape",i.BG.OC=i.OC,i.A67||null===ZC._n_(e=i.BG.o.points)||(i.BG.o.points=ZC.AO.A5M(e,i.A.iX,i.A.iY),i.A67=!0),i.BG.parse(),null!==ZC._n_(e=i.BG.o.label)&&null!==ZC._n_(e.text)&&""!==e.text&&("undefined"==typeof e.visible||ZC._b_(e.visible))&&(i.M=zingchart.pool.getInstance("DQ",i,i.A.K+"-shape-label-"+i.HA,ZC.objmove),ZC.objmove||i.M.append(e)),null!==ZC._n_(e=i.BG.o["static"])&&(i.KD=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.flat)&&(i.KD=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.dynamic)&&(i.L5=ZC._b_(e)),null!==ZC._n_(e=i.BG.o.connector)&&(i.SN=new ZC.DT(i),i.SN.append(e),i.SN.parse())},paint:function(){var e,i=this;if(i.BG.Z=i.Z,i.BG.C8=i.C8,i.BG.locate(2),i.BG.W1=!1,"box"===i.BG.o.type&&(i.iX-=i.BG.I/2,i.iY-=i.BG.F/2,i.BG.iX-=i.BG.I/2,i.BG.iY-=i.BG.F/2),i.BG.paint(),i.M){if(i.M.Z=i.M.C8=i.Z,i.M.IP=ZC.AL(i.A.A.K+"-text"),i.M.K=i.A.K+"-shape-label-"+i.HA,i.M.GN=i.A.K+"-shape-label zc-shape-label",i.M.o.anchor=i.M.o.anchor||"c",!i.WQ["map-item"])switch(i.DH){default:i.M.o.x=i.iX,i.M.o.y=i.iY;break;case"line":case"poly":case"rect":case"rectangle":i.M.o.x=ZC._i_((i.BG.D2[0]+i.BG.D2[2])/2),i.M.o.y=ZC._i_((i.BG.D2[1]+i.BG.D2[3])/2)}if(ZC.objmove||i.M.parse(),i.M.iX=i.M.iX+i.BG.BK,i.M.iY=i.M.iY+i.BG.BJ,i.M.AP){if(i.SN&&i.SN.D.length>0){if(!ZC.AL(i.A.K+"-objects-front")){var n=i.A.A.I+"/"+i.A.A.F;ZC.Q.K6({cls:"zc-abs",wh:n,id:i.A.K+"-objects-front",p:ZC.AL(i.A.A.K+"-objects-front")},i.A.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:i.A.K+"-objects-front-c",p:ZC.AL(i.A.K+"-objects-front"),wh:n},i.A.A.AB)}var t=i.SN.D,a=i.SN.o.anchor||"",l=t[t.length-1];switch(a){case"l":i.M.iX=l[0]+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BJ;break;case"r":i.M.iX=l[0]-i.M.I+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BJ;break;case"t":i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]+i.BG.BJ;break;case"b":i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]-i.M.F+i.BG.BJ;break;default:i.M.iX=l[0]-i.M.I/2+i.BG.BK,i.M.iY=l[1]-i.M.F/2+i.BG.BJ}e=ZC.Q.EE(i.A.Z,i.A.G.AB),ZC.CO.setup(e,i.SN),ZC.CO.paint(e,i.SN,t)}if(i.M.W1=!1,i.WQ["map-item"]&&(i.M.GN=i.A.K+"-mapshape-label zc-mapshape-label",i.M.iX<i.A.iX||i.M.iX+i.M.I>i.A.iX+i.A.I||i.M.iY<i.A.iY||i.M.iY+i.M.F>i.A.iY+i.A.F))return;i.M.paint()}}}};ZC.P8=ZC.DT.CD(P8);var DQ={$i:function(e){this.b(e);var i=this;i.IP=null,i.GN="",i.AN=null,i.OF="center",i.K3="middle",i.DI=zingchart.FONTSIZE,i.GJ=zingchart.FONTFAMILY,i.C2="#000",i.A96=!1,i.N3=!1,i.QR=!1,i.KE="none",i.sFontWeight="normal",i.Y8=0,i.FJ=2,i.FO=2,i.FX=2,i.ER=2,i.A8N=!1,i.A24=!1,i.FL=-1,i.KG=0,i.NM=0,i.OT=ZC.MAX,i.bRTL=!1,i.A1J=!0,i.UY=zingchart.FASTWIDTH,i.A68=1.65,i.V1=1,i.VT=!1,i.A7=null,i.VA=!1,i.A4U=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"textAlign,verticalAlign,fontSize,fontFamily,color,bold,fontWeight,italic,underline,textDecoration,paddingTop,paddingRight,paddingBottom,paddingLeft,text","OF,K3,DI,GJ,C2,A96,sFontWeight,N3,QR,KE,FJ,FO,FX,ER,AN"),e},copy:function(e){this.b(e);for(var i="OF,K3,DI,GJ,C2,A96,sFontWeight,N3,KE,QR,FJ,FO,FX,ER,AN".split(","),n=0,t=i.length;n<t;n++)"undefined"!=typeof e[i[n]]&&(this[i[n]]=e[i[n]])},overrideFormat:function(e){for(var i=["decimals","thousands-separator","decimals-separator"],n=0;n<i.length;n++)e[i[n]]="undefined"!=typeof this.o[i[n]]?this.o[i[n]]:e[i[n]];return e},K2:function(e){return e},isBold:function(e){return"bold"===e||"bolder"===e||"500"===e||"600"===e||"700"===e||"800"===e||"900"===e},cwidth:function(e){var i=this;if(i.UY)return e.replace(/(<([^>]+)>)/gi,"").length*i.DI/(i.A68*(i.isBold(i.sFontWeight)?.87:1)*(i.N3?.95:1));var n="";return"undefined"!=typeof i.o["html-mode"]&&ZC._b_(i.o["html-mode"])&&(n="[HTMLMODE]"),ZC.Q.A48(this.G.K,n+e,this.GJ,this.DI,this.sFontWeight,this.FL)},parse:function(){this.I=this.F=this.NM=this.KG=0,this.b();var e,i,n,t,a,l=this;if(!l.o.tween){if(l.YD("text","AN"),null!==ZC._n_(l.AN)&&(l.AN=""+l.AN,l.AN=l.K2(l.AN),l.AN=l.AN.replace(/\n/g,"<br>").replace(/\\n/g,"<br>"),"svg"===l.G.AB&&(l.AN=l.AN.replace(/ /g," ")),l.AN=l.AN.replace(/<audio|<video|<embed|<object/gi,""),-1!==l.AN.indexOf("<img")&&(l.AN=l.AN.replace(/onload=|onerror=/gi,""))),l.assign_a([["overlap","A1J","b"],["fast-width","UY","b"],["max-width","OT","i"],["line-height","FL","i"],["width-ratio","A68","f"],["wrap-text","A24","b"],["clip-text","A8N","b"],["bold","A96","b"],["italic","N3","b"],["underline","QR","b"],["text-decoration","KE"],["rtl","bRTL","b"],["text-align","OF"],["align","OF"],["vertical-align","K3"],["font-size","DI","f"],["max-chars","Y8","i"],["font-family","GJ"],["font-angle","AA","i"],["color","C2","c"],["font-color","C2","c"],["text-alpha","V1","f",0,1],["lock-rotation","VA","b"]]),l.DI=ZC.BR(1,l.DI),null===ZC._n_(l.o["text-alpha"])&&(l.V1=l.C5),l.A96&&(l.sFontWeight="bold"),null!==(e=ZC._n_(l.o["font-weight"]))&&(l.sFontWeight=e),null===ZC._n_(l.o["text-decoration"])&&(l.KE=l.QR?"underline":"none"),null!==(e=ZC._n_(l.o["font-style"]))&&(l.N3="italic"===e||"oblique"===e),null!==(e=ZC._n_(l.o.padding))){var r=String(e).split(/\s+|;|,/);i=1===r.length?[ZC._i_(r[0]),ZC._i_(r[0]),ZC._i_(r[0]),ZC._i_(r[0])]:2===r.length?[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[0]),ZC._i_(r[1])]:3===r.length?[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[2]),ZC._i_(r[0])]:[ZC._i_(r[0]),ZC._i_(r[1]),ZC._i_(r[2]),ZC._i_(r[3])],l.FJ=i[0],l.FO=i[1],l.FX=i[2],l.ER=i[3]}if(l.assign_a([["padding-top","FJ","i"],["padding-right","FO","i"],["padding-bottom","FX","i"],["padding-left","ER","i"]]),l.AN){l.Y8>0&&l.AN.length>l.Y8&&(l.AN=l.AN.substring(0,l.Y8)+"...");var o=l.AN.split(/<br>|<br\/>|<br \/>|\n/);"undefined"!=typeof l.o["html-mode"]&&ZC._b_(l.o["html-mode"])&&(o=[l.AN],"[HTMLMODE]");var A=o.length;if(-1===l.FL){var C,s;for(l.KG=0,n=0,t=o.length;n<t;n++){var u=1.25*l.DI;if(C=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(o[n])){C[2];var Z=C[1].replace(/\'|"/g,"").split(/;|:/);for(a=0,s=Z.length;a<s-1;a+=2)switch(ZC.GY(Z[a])){case"font-size":u=1.2*ZC._i_(ZC.GY(Z[a+1]))}}l.KG+=u}l.KG+=l.FJ+l.FX}else l.KG=ZC._i_(A*l.FL)+l.FJ+l.FX;for(n=0,t=o.length;n<t;n++)l.NM=ZC.BR(l.NM,l.cwidth(o[n])+l.ER+l.FO)}else l.AN="",l.NM=ZC._i_(1.25*l.DI),l.KG=-1===l.FL?ZC._i_(1.25*l.DI):l.FL;if((null===ZC._n_(l.o.width)||isNaN(l.I)||0===l.I)&&(l.I=l.NM),(null===ZC._n_(l.o.height)||isNaN(l.F)||0===l.F)&&(l.F=l.KG),l.I=ZC.CY(l.I,l.OT),l.A24&&l.NM>l.I&&!l.E.wrapped&&l.I>2*l.DI){var c,p="",h=0,f=l.AN.replace(/<br>/gi," [##] ").split(/\s|<br>/),_=[];for(n=0,t=f.length;n<t;n++)if((c=l.cwidth(f[n]))>.9*l.I){var d=Math.ceil(c/l.I*.9),g=Math.ceil(f[n].length/d);for(a=0;a<d;a++)_.push(f[n].substr(a*g,g))}else _.push(f[n]);for(n=0,t=_.length;n<t;n++)""!==_[n]&&("[##]"===_[n]?(p+="<br>",h=0):(h+=c=1+l.cwidth(_[n]+" "))>.9*l.I?(n>0&&(p+="<br>"),p+=_[n]+" ",h=c):p+=_[n]+" ");p=(p=p.replace(/<br><br>/g,"<br>").replace(/ <br> <br>/g," <br>")).replace(/(.+?)<br> $/g,"$1");var v=l.o.text;l.o.text=p,l.E.wrapped=!0,l.parse(),l.o.text=v,l.E.wrapped=!1}if("canvas"!==l.G.AB&&(l.AN=l.AN.replace(/</g,"<").replace(/>/g,">")),!(null!==ZC._n_(l.o.width)&&null!==ZC._n_(l.o.height)||null===ZC._n_(l.o.position)&&null===ZC._n_(l.o.margin)&&null===ZC._n_(l.o["margin-top"])&&null===ZC._n_(l.o["margin-right"])&&null===ZC._n_(l.o["margin-bottom"])&&null===ZC._n_(l.o["margin-left"]))){l.iX=-1,l.iY=-1;var B=l.o.width,E=l.o.height;null===ZC._n_(B)&&(l.o.width=l.I),null===ZC._n_(E)&&(l.o.height=l.F),l.locate(),l.o.width=B,l.o.height=E}if("undefined"==typeof l.o["html-mode"]||!l.o["html-mode"]){var b=Math.ceil((l.NM-l.ER-l.FO)/l.DI);b>0&&(l.AN=l.AN.replace(/<hr>/g,new Array(b).join("\u2014")))}}l.setAnchor()},paint:function(){var e,i,n,t,a,l,r,o,A,C=this;if(!C.VT&&!C.A1J){var s=!0;null!==ZC._n_(C.o.flexible)&&(s=ZC._b_(C.o.flexible));var u,Z,c={x:C.iX+C.ER-1,y:C.iY+C.FJ-1,width:C.I-C.ER-C.FO+2,height:C.F-C.FJ-C.FX+2,type:C.E.lbltype||""},p=[[0,0]];for(s&&(p=[[0,0],[0,2],[0,-4],[0,4],[0,-8],[3,0],[-6,0],[5,0],[-10,0]]),Z=0;Z<p.length;Z++){for(u=!0,c.x+=p[Z][0],c.y+=p[Z][0],a=0,l=C.G.SY.length;a<l;a++)ZC.AQ.VD(c,C.G.SY[a],-2)&&(u=!1);if(u){C.iX=c.x-(C.ER-1),C.iY=c.y-(C.FJ-1);break}}if(!u)return;C.G.SY.push(c)}var h=C.G.AB;if(e=C.Z.getContext("2d"),C.VT||C.b(),!C.A4U&&(C.o.width||!(C.I-C.ER-C.FO<2))&&(C.o.height||!(C.KG-C.FJ-C.FX<2))){var f=C.AA%360==0?"0":"";if((C.VT||zingchart.CANVASTEXT&&"canvas"===h)&&(f=""),ZC.vml&&"svg"===h&&""===C.GN&&(C.GN=C.K+"-class"),!C.VT&&ZC.AL(C.K)&&(h="_",ZC.objmove))return ZC.AL(C.K).style.top=C.iY+C.BJ+"px",void(ZC.AL(C.K).style.left=C.iX+C.BK+"px");var _="undefined"!=typeof C.E["html-mode"]&&C.E["html-mode"],d=_;"undefined"!=typeof C.o["html-mode"]&&(_=ZC._b_(C.o["html-mode"]));var g,v,B,E,b,D,F,m,Y,M,I,K,X,x,L,P,w,S,y,G,O=[C.AN];_||(O=C.AN.split(/<br>|<br\/>|<br \/>|\n/)),_&&!d&&"svg"===h&&"0"===f&&(f="0html");C.IP?C.IP:C.Z.parentNode;switch(h+f){case"canvas0":case"vml0":case"svg0html":break;case"canvas":if(e=C.Z.getContext("2d"),zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache||(ZC.CanvasCache={})),!zingchart.DEV.CACHECANVASTEXT||zingchart.DEV.CACHECANVASTEXT&&!ZC.CanvasCache[C.K]){for(zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache[C.K]=document.createElement("canvas"),ZC.CanvasCache[C.K].width=C.NM,ZC.CanvasCache[C.K].height=C.KG),g=-1===C.FL?0:ZC._x_(C.FL-1.25*C.DI)/2,a=0,l=O.length;a<l;a++)if(""!==ZC.GY(O[a])){switch(i=1===l?C.NM:C.cwidth(O[a])+C.FO+C.ER,B=-1===(v=O[a]).indexOf("<")?v:v.replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,""),n=0,t=0,C.OF){case"center":n+=(C.I-i)/2;break;case"right":n+=C.I-i}switch(C.K3){case"middle":t+=(C.F-C.KG)/2;break;case"bottom":t+=C.F-C.KG}if(0,v!==B){for(;b=/<(.+?)>(.*?)<\/(.+?)>/.exec(v);){switch(D="",F="",(o=/(.+?)style=(.+?)(\'|")(.*?)/.exec(b[1]))&&(F=o[2].replace(/\'|"/g,"")),b[3]){case"b":case"strong":D="font-weight:bold";break;case"i":case"em":D="font-style:italic";break;case"u":D="text-decoration:underline"}Y='[[span style="'+(""===D?"":D+";")+F+'"]]'+b[2]+"[[/span]]",v=v.replace(b[0],Y)}for(M=!1,w=0,S=(b=(v=v.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(/<span/g,"[[*]]<span").replace(/<\/span>/g,"</span>[[*]]")).split("[[*]]")).length;w<S;w++)if(""!==b[w]){if(r=C.C2,I=C.sFontWeight,K=C.N3,X=C.QR,x=C.DI,L=C.GJ,P=C.FL,C.KE,E=b[w],A=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(b[w]))for(E=A[2],y=0,G=(m=A[1].replace(/\'|"/g,"").split(/;|:/)).length;y<G-1;y+=2)switch(ZC.GY(m[y])){case"font-size":x=ZC._i_(ZC.GY(m[y+1]));break;case"font-family":L=ZC.GY(m[y+1]);break;case"font-weight":I=ZC.GY(m[y+1]);break;case"font-style":-1!==ZC.AV(["italic","oblique"],ZC.GY(m[y+1]))&&(K=!0);break;case"text-decoration":ZC.GY(m[y+1]);break;case"line-height":P=ZC._i_(ZC.GY(m[y+1]));break;case"color":r=ZC.AO.GD(ZC.GY(m[y+1]))}0===a&&(g=-1===P?0:ZC._x_(P-1.25*x)/2);var N={idx:a,ctx:e,i:K,fw:I,fs:x,lh:P,ff:L,c:r,t:E,dx:n,dy:t};N.dy+=ZC._x_(g),N.dy+=M||C.isBold(I)||X?2:0,C.paintCANVASText(N),M=K,0,n+=ZC.Q.A48(this.G.K,E,L,x,I,P)}null!==ZC._n_(P)&&null!==ZC._n_(x)&&(g+=-1===P?1.25*x:P)}else C.paintCANVASText({idx:a,ctx:e,i:C.N3,fw:C.sFontWeight,fs:C.DI,lh:C.FL,ff:C.GJ,c:C.C2,t:O[a],dx:n,dy:t+g}),g+=-1===C.FL?1.25*C.DI:C.FL}}else e.drawImage(ZC.CanvasCache[C.K],C.iX+C.BK,C.iY+C.BJ)}}},paintCANVASText:function(e){var i=this,n=(e.idx,e.ctx),t=e.i,a=e.fw,l=e.fs,r=e.ff,o=e.c,A=e.dx,C=e.dy,s=e.t;n.save(),n.globalAlpha=i.V1;var u="";t&&(u+="italic "),u+=a+" ",u+=l+"px '"+r+"'",n.font=u,n.fillStyle=o,n.textAlign="left",n.textBaseline="alphabetic",n.translate(i.iX+i.BK,i.iY+i.BJ),0!==i.AA&&(n.translate(i.I/2,i.F/2),n.rotate(ZC.TD(i.AA)),n.translate(-i.I/2,-i.F/2)),n.translate(i.ER,i.FJ+l),n.translate(A,C),n.fillText(s,0,0),n.restore()},EO:function(e){}};ZC.DQ=ZC.HU.CD(DQ);var Q9={$i:function(e){this.b(e);var i=this;i.CL="json",i.O1={graphset:!0,graph:!0,"objects-bottom":!0,"objects-top":!0,maps:!0,plotarea:!0,plots:!0,guide:!0,"static":!0,"value-box":!0},i.NK="",i.AE1=1,i.ACT="",i.bImageMap=!0,i.sFileType="png",i.bA11y=!1,i.NV="",i.ZA=!1,i.UG="en_us",i.SB=null,i.JO="",i.UE=!1,i.RV={},i.N5="",i.ADI={},i.QO="",i.EX="",i.MF={},i.HI=null,i.AG=[],i.L2="",i.A7=null,i.H6=null,i.D8=null,i.B6=new ZC.AAY(i),i.QP="",i.KR=null,i.NU=[null,null,null,null],i.OC=!1,i.N4="x",i.KD=!1,i.TM=!1,i.ABG=!1,i.A3A=!1,i.GP=!1,i.A9D={},i.NT=null,i.QS={},i.LV=!1,i.QQ=!1,i.AD1=null,i.SV=[],i.O={},i.N0=null,i.DJ=null,i.UH=0,i.A20=0,i.A4E=1,i.MK=null,i.SC="",i.AAS="F*nStrlng4Cu$tOmLlc9nc9!",i.M7="",i.A17={},i.A0B=!1,i.AB="",i.KB=null,i.ZU=!1,i.QT=["",""],i.LA=0,i.KQ=[],i.A7P=0,i.A7O=0,i.A9C=!1,i.A1D="",i.A6H=!0,i.IH=null,i.QV=[],i.NX=0,i.AAM=!1,i.SE={},i.JF=null,i.AE0=null,i.G4=null,i.SY=[]},clearLabelBoxes:function(e){var i=this;if(e)for(var n=i.SY.length-1;n>=0;n--)i.SY[n].type===e&&i.SY.splice(n,1);else i.SY=[]},usc:function(){return-1!==ZC.AV(this.KQ,"use_single_canvas")},mc:function(e){return e=e||"",ZC.AL(this.K+"-main-c"+(""===e?e:"-"+e))},hideCM:function(){var e;(e=ZC.AL(this.K+"-menu"))&&(e.style.display="none"),this.A9C=!1},ZY:function(){for(var e=this,i=e.NU.length,n=0;n<i;n++)if(null!==ZC._n_(e.NU[n])){switch(e.AB){case"svg":ZC.CO.WG(e.NU[n].ctx,e.NU[n].style,e.NU[n].path.join(" "),e.NU[n].filled);break;case"vml":ZC.CO.WF(e.NU[n].ctx,e.NU[n].style,e.NU[n].path.join(" "),e.NU[n].filled)}e.NU[n]=null}},A93:function(){var e,i=this;ZC.LICENSE=ZC.LICENSE||zingchart.LICENSE||"",ZC.BUILDCODE=ZC.BUILDCODE||zingchart.BUILDCODE||"",ZC.LICENSEKEY=ZC.LICENSEKEY||zingchart.LICENSEKEY||"",ZC.BUILDCODE instanceof Array&&2===ZC.BUILDCODE.length&&(e=(e=ZC.AD6(i.AAS)).replace("O","0"),i.SC=ZC.AC7(ZC.BUILDCODE[0],e),i.SC===ZC.BUILDCODE[1]&&(i.TM=!0,i.A3A=!0,i.UE=!0))},A47:function(){var e=this;null!==e.KR?(ZC._todash_(e.KR),e.load()):ZC.AO._load_url_(e.QP,function(i){var n;try{n=JSON.parse(i)}catch(t){return e.O5(t,"JSON parser"),!1}e.KR=n,ZC._todash_(e.KR),e.load()})},load:function(e,i){var n=this;n.M7="load",""!==(i=i||n.QO)&&0!==i.indexOf("javascript:")?ZC.AO._load_url_(i,function(i){n.load_(e,i)}):""!==n.EX?n.data_(e,n.EX):null!==n.MF&&(n.A7A?n.MF=JSON.parse(JSON.stringify(n.A7A)):n.A7A=JSON.parse(JSON.stringify(n.MF)),n.data_(e,n.MF))},data_:function(e,i){var n=this;ZC.TS[n.K]=(new Date).getTime(),ZC.AO.A8J("dataload",n)?ZC.AO.C0("dataload",n,n.FH(),i,function(i){n.load_(e,i)}):n.load_(e,i)},A5I:function(e){var i,n,t=this;if(!zingchart.DEV.RESOURCES)return[];e||(e=t.o);var a=[];if(e.graphset)for(i=0,n=e.graphset.length;i<n;i++){var l=e.graphset[i].type||"null";if(-1===ZC.AV(ZC.CHARTS,l)){for(var r in"3d"===l.substring(l.length-2)&&(l=l.substring(0,l.length-2)),ZC.EQUIV)ZC.EQUIV.hasOwnProperty(r)&&-1!==ZC.AV(ZC.EQUIV[r],l)&&(l=r);zingchart.loadModules(l),a.push(l)}}for(t.ACR(e),i=0,n=ZC.RM.length;i<n;i++)""!==ZC.GY(ZC.RM[i])&&-1===ZC.AV(ZC.WJ,ZC.GY(ZC.RM[i]))&&a.push(ZC.GY(ZC.RM[i]));for(t.ACR(e),i=0,n=ZC.RM.length;i<n;i++)""!==ZC.GY(ZC.RM[i])&&-1===ZC.AV(ZC.WJ,ZC.GY(ZC.RM[i]))&&a.push(ZC.GY(ZC.RM[i]));return a},ACR:function(e){var i,n,t,a,l;for(e||(e=this.o),n=0,t=e.graphset.length;n<t;n++)if(i=e.graphset[n].shapes)for(a=0,l=i.length;a<l;a++)"zingchart.maps"===i[a].type&&zingchart.loadModules("maps"),i[a].options&&i[a].options.name&&zingchart.loadModules("maps-"+i[a].options.name.replace(/\./g,"-"))},load_:function(JM,TW){var s=this,H;s.E.rawsource=zingchart.DEV.KEEPSOURCE?TW:"N/A";var DM=null;if("string"==typeof TW)try{DM=JSON.parse(TW)}catch(JC){try{DM=eval("("+TW+")")}catch(JC){return s.O5(JC,"JSON parser"),!1}}else DM=TW;null===ZC._n_(DM.graphset)&&(DM={graphset:[DM]}),s.E.source="N/A",zingchart.DEV.KEEPSOURCE&&(s.E.source=ZC.GY(JSON.stringify(DM))),zingchart.A1S(s,s.A5I(DM),function(){DM=ZC.AO.C0("dataparse",s,s.FH(),DM),zingchart.A1S(s,s.A5I(DM),function(){if(ZC.AO.C0("modulesready",s,{id:s.K}),null===ZC._n_(JM))s.XS(DM),s.o=DM,s.ZA?(s.parse(),s.paint()):s.QK(function(){s.parse(),s.paint()});else{var e=s.P0(JM);if(null!==e&&null!==ZC._n_(H=DM.graphset)){var i=H.length>1?H[e.L]:H[0];i.id||(i.id=e.o.id||""),s.o.graphset[e.L]=i,s.QK(function(){s.parse(JM),s.AG[e.L].paint()})}}})})},XS:function(DM){var s=this,H,i,A6,j,JD;for(null===ZC._n_(DM.graphset)&&(DM={graphset:[DM]}),1===DM.graphset.length&&null===ZC._n_(DM.graphset[0])&&(DM.graphset=[{type:"null"}]),i=0,A6=DM.graphset.length;i<A6;i++)if(null!==ZC._n_(DM.graphset[i])){if(null!==ZC._n_(H=DM.graphset[i].shapes)){var FI=[];for(DM.graphset[i].labels=DM.graphset[i].labels||[],j=0,JD=H.length;j<JD;j++)if(H[j].generated&&H[j]["map-item"]||FI.push(H[j]),null!==ZC._n_(H[j].type)&&0===H[j].type.indexOf("zingchart."))try{var M1=H[j].options||{},ED=H[j].type+"."+(M1.name||"");M1.graphid=i;var A2X=eval(ED).call(s,M1,DM,H[j]);for(var A3R in A2X)A2X.hasOwnProperty(A3R)&&("label"===A2X[A3R].objtype?DM.graphset[i].labels.push(A2X[A3R]):FI.push(A2X[A3R]))}catch(e){}DM.graphset[i].shapes=FI}var A6L;if(null!==ZC._n_(A6L=DM.graphset[i].widgets))for(var AAX=s.A5J(DM,i),k=0;k<A6L.length;k++){var A2T=A6L[k];if(null!==ZC._n_(A2T.type)&&null!==ZC._n_(zingchart.widgets[A2T.type])&&"function"==typeof zingchart.widgets[A2T.type].parse)try{var BI={};ZC._cp_(A2T,BI),BI.graph=AAX.graph,BI.loader={id:s.K,width:s.I,height:s.F};var o=zingchart.widgets[A2T.type].parse.call(s,BI);if(null!==ZC._n_(H=o.graphs))for(j=0;j<H.length;j++)DM.graphset.push({}),ZC._cp_(H[j],DM.graphset[DM.graphset.length-1]);if(null!==ZC._n_(H=o.labels))for(null===ZC._n_(DM.graphset[i].labels)&&(DM.graphset[i].labels=[]),j=0;j<H.length;j++)DM.graphset[i].labels.push(H[j]);if(null!==ZC._n_(H=o.shapes))for(null===ZC._n_(DM.graphset[i].shapes)&&(DM.graphset[i].shapes=[]),j=0;j<H.length;j++)DM.graphset[i].shapes.push(H[j])}catch(e){}}}},AAI:function(e,i){var n=this;switch(e){case"line":return new ZC.A6E(n);case"area":return new ZC.A6F(n);case"vline":return new ZC.A9X(n);case"varea":return new ZC.A9Y(n);case"bar":case"vbar":case"column":return new ZC.A2M(n);case"hbar":return new ZC.A2N(n);case"mixed":case"hmixed":case"mixed3d":for(var t=!1,a=n.o.graphset[i].series,l=0,r=a.length;l<r;l++)a[l]&&a[l].type&&-1!==a[l].type.indexOf("3d")&&(t=!0);return t?new ZC.A2Z(n):n.o.graphset[i].plot&&n.o.graphset[i].type&&n.o.graphset[i].plot&&n.o.graphset[i].plot.type&&-1!==n.o.graphset[i].plot.type.indexOf("3d")?new ZC.A2Z(n):"mixed"===e?new ZC.A57(n):new ZC.A8R(n);case"scatter":return new ZC.A7V(n);case"hscatter":return new ZC.A7B(n);case"bubble":return new ZC.A8S(n);case"hbubble":return new ZC.A7W(n);case"ring":case"pie":return new ZC.A3U(n);case"nestedpie":return new ZC.A6P(n);case"radar":case"polar":return new ZC.A9S(n);case"venn":return new ZC.AAG(n);case"bullet":case"vbullet":return new ZC.A7Z(n);case"hbullet":return new ZC.A80(n);case"funnel":case"vfunnel":return new ZC.A82(n);case"hfunnel":return new ZC.A83(n);case"heatmap":case"piano":return new ZC.A9T(n);case"stock":return new ZC.A9U(n);case"range":return new ZC.A9W(n);case"vrange":return new ZC.ZCVRangeGraph(n);case"gauge":return new ZC.A9V(n);case"line3d":return new ZC.A8W(n);case"area3d":return new ZC.A8X(n);case"ring3d":case"pie3d":return new ZC.A5C(n);case"bar3d":case"vbar3d":return new ZC.A8V(n);case"hbar3d":return new ZC.A8U(n);case"null3d":return new ZC.A90(n);default:return new ZC.AAF(n)}},P0:function(e){for(var i=this,n=0,t=i.AG.length;n<t;n++)if(i.AG[n].K===i.K+"-graph-"+e||i.AG[n].K===i.K+"-graph-id"+e||i.AG[n].K===e||n===e)return i.AG[n];return null},AAA:function(e){var i,n=this;if("undefined"==typeof n.E.themesloaded){void 0===e&&(e=!1),n.assign_a([["theme","L2"]]),n.o.graphset&&1===n.o.graphset.length&&null!==ZC._n_(i=n.o.graphset[0].theme)&&(n.L2=i),""===n.L2&&(n.L2="light"),n.L2=String(n.L2).replace("zingchart","classic");for(var t=n.L2.split(/\s+|;|,/),a=0,l=t.length;a<l;a++)n.B6.AB0(t[a]);if(n.KR instanceof Array)for(a=0;a<n.KR.length;a++)n.B6.A47(n.KR[a]);else n.KR instanceof Object&&n.B6.A47(n.KR);ZC.mobile&&n.B6.AB0("mobile"),e||(n.E.themesloaded=!0)}},parse:function(e){var i,n,t,a,l,r,o=this;o.N4="x",o.E.json=ZC.GY(JSON.stringify(o.o)),ZC._cp_(o.o.layers,o.O1),1===o.o.graphset.length&&ZC._cp_(o.o.graphset[0].layers,o.O1);var A=o.FH();if(null!==ZC._n_(e)&&(A.graphid=e),ZC.AO.C0("dataready",o,A),o.M7="parse",o.QT[1]=o.QT[0],o.QT[0]="",o.QT[0]+=o.I+":"+o.F+":",null!==ZC._n_(i=o.o.graphset))for(o.QT[0]+=i.length+":",a=0;a<i.length;a++)o.QT[0]+=(i[a].type||"")+":",o.QT[0]+=(i[a].x||"")+":"+(i[a].y||"")+":"+(i[a].width||"")+":"+(i[a].height||"")+":",null!==ZC._n_(i[a].series)&&(o.QT[0]+=i[a].series.length+":");if(ZC.AL(o.K+"-main-c")&&o.clear(e,!1),"undefined"!=typeof ZC.A56&&(o.H6=new ZC.A56(o)),o.YD("layout","N4"),null===ZC._n_(e)){o.AAA(),o.B6.B6["font-family"]&&(zingchart.FONTFAMILY=o.B6.B6["font-family"]);var C=!!o.o.gui;if(o.B6.load(o.o,"loader",!1,!0),o.assign_a([["gui","DJ"],["globals","SB"]]),o.o.graphset&&1===o.o.graphset.length&&(n=o.o.graphset[0],null!==ZC._n_(i=n.gui)&&(o.DJ=i),null!==ZC._n_(i=n.globals)&&(o.SB=i)),ZC._todash_(o.SB),ZC._cp_(o.B6.B6.root.gui,o.DJ,!1,!0,!0),o.DJ.behaviors)for(a=o.DJ.behaviors.length-1;a>=0;a--)for(r=0;r<a;r++)if(o.DJ.behaviors[a].id===o.DJ.behaviors[r].id){o.DJ.behaviors.splice(a,1);break}if(C||delete o.o.gui,ZC._todash_(o.DJ),o.O={},null!==ZC._n_(i=o.o.style))for(t in i)"url"!==t&&(o.O[t]=i[t]);if(o.o.graphset&&1===o.o.graphset.length&&(n=o.o.graphset[0],null!==ZC._n_(i=n.style)))for(t in i)"url"!==t&&(o.O[t]=i[t]);ZC._todash_(o.O),o.O1.graphset&&o.b(),o.assign_a([["locale","UG"],["set-locale","UG"],["layout","N4"],["h-space","A7P","i"],["v-space","A7O","i"],["flat","KD","b"],["show-progress","A0B","b"]]),o.o.graphset&&1===o.o.graphset.length&&(n=o.o.graphset[0],null!==ZC._n_(i=n.locale)&&(o.UG=i),null!==ZC._n_(i=n["set-locale"])&&(o.UG=i),null!==ZC._n_(i=n.flat)&&(o.KD=ZC._b_(i)),null!==ZC._n_(i=n["show-progress"])&&(o.A0B=ZC._b_(i))),null!==ZC._n_(i=zingchart.i18n[o.UG])&&(ZC.HG=i),o.AG=[]}var s=0,u=0,Z=o.I,c=o.F;if(null!==ZC._n_(o.o.margin)||null!==ZC._n_(o.o["margin-top"])||null!==ZC._n_(o.o["margin-right"])||null!==ZC._n_(o.o["margin-bottom"])||null!==ZC._n_(o.o["margin-left"])){var p=new ZC.HU(o);p.append(o.o,!1,!1),p.parse(),s=p.E0,u=p.EB,Z=Z-p.E0-p.EA,c=c-p.EB-p.DW}var h,f,_=o.P0(e);if(null!==ZC._n_(h=o.o.graphset)){var d=0;for(a=0,l=h.length;a<l;a++)f=0,null!==ZC._n_(i=h[a].page)&&(f=ZC._i_(i)),d+=o.LA===f?1:0;var g=ZC.AQ.A2F(o.N4,d),v=ZC._i_(g[0]),B=ZC._i_(g[1]),E=0,b=0,D=0;for(a=0,l=h.length;a<l;a++){if(f=0,null===_&&null!==ZC._n_(i=h[a].page)&&(f=ZC._i_(i)),(null===_||D===_.L)&&o.LA===f){if(o.AG[D]=o.AAI(h[a].type||"null",a),o.AG[D].NY=o.AG[D].AF+"graph",o.B6.load(o.AG[D].o,"graph"),o.B6.load(o.AG[D].o,h[a].type||"null"),o.AG[D].append(o.o.graph),o.AG[D].append(h[a]),o.AG[D].L=D,null===ZC._n_(h[D].id)||""===h[D].id?o.AG[D].K=o.K+"-graph-id"+D:o.AG[D].K=o.K+"-graph-"+h[a].id,h.length>0){for(var F=0,m=0,Y=ZC._i_((Z-(B+1)*o.A7P)/B),M=ZC._i_((c-(v+1)*o.A7O)/v),I=["x","y","width","height"],K=0;K<I.length;K++)null!==ZC._n_(o.E["graph-"+D+"-"+I[K]])&&(delete o.E["graph-"+D+"-"+I[K]],delete o.AG[D].o[I[K]]);null===ZC._n_(o.AG[D].o.x)?o.E["graph-"+D+"-x"]=o.AG[D].o.x=ZC._i_(o.iX+(E+1)*o.A7P+E*Y)+s:(F=ZC.IO(o.AG[D].o.x))<1&&(F=ZC._i_(o.I*F)),null===ZC._n_(o.AG[D].o.y)?o.E["graph-"+D+"-y"]=o.AG[D].o.y=ZC._i_(o.iY+(b+1)*o.A7O+b*M)+u:(m=ZC.IO(o.AG[D].o.y))<1&&(m=ZC._i_(o.F*m)),null===ZC._n_(o.AG[D].o.width)&&(o.E["graph-"+D+"-width"]=o.AG[D].o.width=Math.max(Y,Y-F)),null===ZC._n_(o.AG[D].o.height)&&(o.E["graph-"+D+"-height"]=o.AG[D].o.height=Math.max(M,M-m))}o.AG[D].parse()}o.LA===f&&(D++,++E===B&&(b++,E=0))}}null===ZC._n_(e)&&null!==ZC._n_(i=o.o.refresh)&&(o.HI={type:"full",interval:10},ZC._cp_(i,o.HI))},A46:function(e,i){i=i||"";var n=[];for(var t in e)if("object"==typeof e[t])for(var a=this.A46(e[t],i+"."+t),l=0,r=a.length;l<r;l++)-1===ZC.AV(n,a[l])&&n.push(a[l]);else{var o=i+"."+t;"background-image"!==t&&"backgroundImage"!==t||""===e[t]||"zc."===e[t].substring(0,3)||(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[t].substring(0,8)&&(e[t]=ZC.PATTERNS[e[t].substring(8)]),"!"===e[t].charAt(0)&&(e[t]=e[t].substring(1),this.E["safe-images"]=this.E["safe-images"]||[],this.E["safe-images"].push(e[t])),n.push([e[t],"image"])),"src"===t&&""!==e[t]&&"zc."!==e[t].substring(0,3)&&-1!==o.indexOf(".images.")&&(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[t].substring(0,8)&&(e[t]=ZC.PATTERNS[e[t].substring(8)]),"!"===e[t].charAt(0)&&(e[t]=e[t].substring(1),this.E["safe-images"]=this.E["safe-images"]||[],this.E["safe-images"].push(e[t])),n.push([e[t],"image"])),".csv"===o.substr(o.length-4,4)&&"string"==typeof e[t]&&n.push([e[t],"csv"]),"url"===t&&(-1!==o.indexOf(".style.")&&n.push([e[t],"css"]),-1!==o.indexOf(".csv.")&&n.push([e[t],"csv"]),-1!==o.indexOf(".marker.")&&n.push([e[t],"image"])),"string"==typeof e[t]&&"url"!==t&&(0===e[t].indexOf("url:")&&"values"===t||0===e[t].indexOf("javascript:"))&&-1===ZC.AV(["format","text","tooltipText"],ZC.EH(t))&&n.push([e[t],"data"])}return n},QK:function(e){var i=this;if(zingchart.DEV.RESOURCES){var n=i.A46(i.o).concat(i.A46(i.KR));if(0!==n.length){var t=0,a={},l=0;o(l)}else zingchart.Y1[i.K]&&e()}else zingchart.Y1[i.K]&&e();function r(){t>=n.length?(i.ABO(i.o),zingchart.Y1[i.K]&&e()):o(++l)}function o(e){if(!(e>=n.length)){var l,o=n[e][0],A=n[e][1];if("url:"===o.substring(0,4)){var C=o.substring(4);i.QS["url:"+C]="[]",ZC.AO._load_url_(C,function(e,n){i.QS["url:"+n]=e,t++,r()})}else if("javascript:"===o.substring(0,11));else if("image"===A){if(2===zingchart.DEV.CANVASVERSION)var{Image:s}=require("canvas");else var s=require("canvas").Image;if(".png"===o.substring(o.length-4))if("http"===o.substring(0,4)){var u=zingchart.TMPFOLDER+"zchttpimg"+ZC._r_(1e3,9999)+".png";ZC.AO._load_url_(o,function(e,i){""===e?(a[o]=new s,a[o].src=ZC.BLANK,ZC.cache.data[o]=a[o],t++,r()):(a[o]=new s,a[o].onload=function(){ZC.cache.data[i]=a[o],t++,r()},a[o].src=u)},!0,u)}else a[o]=new s,a[o].onload=function(){ZC.cache.data[o]=a[o],t++,r()},a[o].src=o;else t++,r()}else"css"===A?ZC.AO._load_url_(o,function(e){for(var n={},a=e.match(/[a-zA-Z0-9\.\#\-](.+?)\{((.|\s)+?)\}/gi),o=0,A=a.length;o<A;o++){l=a[o].split("{");var C=ZC.GY(l[0]),s=C.split(/\s+/);if(1===s.length||2===s.length&&ZC.GY(s[0])==="#"+i.K){n[C=ZC.GY(1===s.length?s[0]:s[1])]||(n[C]={});for(var u=0,Z=(l=l[1].replace("}","").split(";")).length;u<Z;u++){var c=l[u].split(":");2===c.length&&(n[C][ZC.GY(c[0])]=""+ZC.GY(c[1]))}}}ZC._cp_(n,i.o.style),t++,r()}):"csv"===A&&ZC.AO._load_url_(o,function(e,n){i.A9D[n]=e,t++,r()})}}},ABO:function(BZ){var s=this;for(var p in BZ)if("object"==typeof BZ[p])s.ABO(BZ[p]);else for(var EX in s.QS)EX===BZ[p]&&(BZ[p]=eval(s.QS[EX]))},resize:function(e){},clearGenerated:function(){},clear:function(e,i,n){},AB1:function(){},paintHistory:function(){},paint:function(){var e,i,n,t=this;if(t.M7="paint",2===zingchart.DEV.CANVASVERSION){var{createCanvas:a,Canvas:l}=require("canvas");t.Z=a(t.I,t.F)}else{var r=require("canvas");t.Z=new r(t.I,t.F)}for(t.b(),e=0,i=t.AG.length;e<i;e++)t.AG[e].paint();if(t.E.preservezoom=null,t.UE)C();else{if(2===zingchart.DEV.CANVASVERSION)var{Image:o}=require("canvas");else var o=(r=require("canvas")).Image;var A=0;for(e=0,i=(n=[new o]).length;e<i;e++)n[e].onload=function(){++A===n.length&&C()};n[0].src=ZC.IMAGES["zc.wm"+t.AE1]}function C(){if(!t.UE){var e=0,i=0;switch(t.ACT){case"top-left":case"tl":e=2,i=2;break;case"top-right":case"tr":e=t.I-n[0].width-2,i=2;break;case"bottom-right":case"br":e=t.I-n[0].width-2,i=t.F-n[0].height-2;break;case"bottom-left":case"bl":e=2,i=t.F-n[0].height-2}t.Z.getContext("2d").drawImage(n[0],e,i)}var a,l="";if(""!==t.NK){var r,o=require("fs");r=process.cwd(),l="/"===t.NK.substr(0,1)||/[a-zA-Z]\:/.test(t.NK.substr(0,2))?t.NK:r+"/"+t.NK;var A=o.createWriteStream(l);A.on("close",function(){var e=t.FH();e.filename=l;var i="";i+='<img border="0" class="zc-chart" id="'+t.K+'-img" src="'+t.NK+'" alt="" usemap="#'+t.K+'-map"/>\n',i+='<div id="'+t.K+'-tooltip" style="position:fixed;display:none;"></div>\n',i+='<map id="'+t.K+'-map" name="'+t.K+'-map">\n',i+=t.zcHtmlArea+"\n",i+="</map>\n",i+=t.zcNodeInfo,e.imagemap=i,ZC.AO.C0("render",t,e)})}t.AE0&&t.AE0.writeHead(200,{"Content-Type":"image/"+t.sFileType}),(a="png"===t.sFileType?t.Z.pngStream():t.Z.jpegStream()).on("data",function(e){t.AE0&&t.AE0.write(e),""!==t.NK&&A.write(e)}),a.on("end",function(){A.end(),t.AE0&&t.AE0.end()})}t.M7="",ZC[t.K+"-events"]=ZC[t.K+"-events"]||1,1===ZC[t.K+"-events"]&&(ZC[t.K+"-events"]++,t.E["fire-complete"]&&(ZC.AO.C0("complete",t,t.FH()),t.E["fire-complete"]=null),t.E["fire-load"]&&(ZC.AO.C0("load",t,t.FH()),t.E["fire-load"]=null))},togglePreviewMasks:function(e){},createPreviewMasks:function(){},AGL:function(){},A95:function(){},_unbind_:function(){},VQ:function(e,i,n){},A61:function(e,i){},destroy:function(){},N8:function(e,i){},A0O:function(){},A5J:function(e,i){var n,t,a=this;n=null!==ZC._n_(t=e.graphset)?t:[e];var l=e.layout||"",r=ZC.AQ.A2F(l,n.length),o=n[i],A=a.I/r[1],C=a.F/r[0],s=Math.floor(i/r[1]),u=i%r[1]*A,Z=s*C;o&&(null!==ZC._n_(t=o.x)&&(u=ZC._p_(t))<=1&&(u=ZC._i_(u*a.I)),null!==ZC._n_(t=o.y)&&(Z=ZC._p_(t))<=1&&(Z=ZC._i_(Z*a.F)),null!==ZC._n_(t=o.width)&&(A=ZC._p_(t))<=1&&(A=ZC._i_(A*a.I)),null!==ZC._n_(t=o.height)&&(C=ZC._p_(t))<=1&&(C=ZC._i_(C*a.F)));var c=[0,0,0,0];if(o.plotarea){if(a.B6.load(o.plotarea,["("+o.type+").plotarea"],!1,!0),null!==ZC._n_(o.plotarea.margin))c=new ZC.HU(null).m_(o.plotarea.margin,"all",A,C);for(var p=["top","right","bottom","left"],h=0;h<4;h++)if(null!==ZC._n_(o.plotarea["margin-"+p[h]])){var f=o.plotarea["margin-"+p[h]];ZC._i_(f)+""==f+""&&(c[h]=ZC._i_(f))}}return{graph:{x:ZC._i_(u),y:ZC._i_(Z),width:ZC._i_(A),height:ZC._i_(C),index:i},plotarea:{x:c[3],y:c[0],width:A-c[1]-c[3],height:C-c[0]-c[2]}}},KC:function(){var e=this;null===ZC._n_(e.o.graphset)&&(e.o={graphset:[e.o]}),e.N8(),zingchart.A1S(e,e.A5I(),function(){e.o=ZC.AO.C0("dataparse",e,e.FH(),e.o),zingchart.Y1[e.K]&&e.QK(function(){e.parse(),e.paint()})})},render:function(){var e=this;e.zcHtmlArea="",e.zcNodeInfo="",e.UW={},e.UE||e.A93(),""!==e.QP||null!==e.KR?e.A47():e.load()},Z3:function(e){},FH:function(){var e,i=this;return e=i.L2?i.L2:"light",{id:i.K,width:i.I,height:i.F,output:i.AB,x:0,y:0,targetid:i.SV[2],theme:e}},AC3:function(e){},A92:function(){},A8F:function(){},A8G:function(){},Q5:function(){},AA9:function(e,i){},A8I:function(e){},A49:function(){},AA5:function(){},O5:function(e,i){var n=this;ZC.AO.C0("error",n,{id:n.K,error:e,section:i,json:n.E.json||n.E.rawsource})},A5Y:function(){},A72:function(){},A5Z:function(){},A16:function(e,i){},Z9:function(e,i){},A5H:function(e){},A91:function(e){},ACV:function(e){},AA4:function(){},OM:function(){},Z8:function(){},AAH:function(e){},A4B:function(N){var s=this;try{var E4=ZC.AO.AAJ(N["function"]);N["function"]=E4[0],N.arguments=E4[1],ZC._cp_(s.FH(),N),eval(N["function"]).call(s,N)}catch(JC){return s.O5(JC,"JavaScript data loader"),!1}},CB:function(e){var i=this;return null!==ZC._n_(e)?i.P0(e):i.AG.length>0?i.AG[0]:null},bind:function(e,i){zingchart.bind(this.K,e,i)},unbind:function(e,i){zingchart.unbind(this.K,e,i)},exec:function(e,i){return zingchart.exec(this.K,e,i)},gc:function(){for(var e=0,i=this.AG.length;e<i;e++)this.AG[e].gc()}};ZC.Q9=ZC.HU.CD(Q9),ZC.A89={},ZC.AO.A3W=function(e,i,n,t){},ZC.AO.ABM=function(e,i,n,t,a){},ZC.Q9.prototype.AA4=function(){},ZC.Q9.prototype.OM=function(e,i,n,t){},ZC.Q9.prototype.Z8=function(e){},ZC.AO.downloadFile=function(e,i,n){},ZC.AO.XW=function(e,i){},zingchart.ABC=function(e,i,n){return null},ZC.A8Y={},ZC.AO.WX=function(e){},ZC.Q9.prototype.A5Y=function(){},ZC.Q9.prototype.A72=function(){},ZC.Q9.prototype.paintHistory=function(){},ZC.AM={A4F:1,E1:0,E2:0,FE:40},ZC.DL={A38:function(e,i){var n,t;return i.AA%180==0?(n=new ZC.CE(e,-e.I/2,i.iY-e.iY-e.F/4,0),t=new ZC.CE(e,e.I/2,i.iY-e.iY-e.F/4,0)):(n=new ZC.CE(e,i.iX-e.iX-e.I/4,-e.F/2,0),t=new ZC.CE(e,i.iX-e.iX-e.I/4,e.F/2,0)),ZC.U4(Math.atan((t.EC[1]-n.EC[1])/(t.EC[0]-n.EC[0])))+(i.AA%180==0?0:i.AA%360==90?90:-90)},DD:function(e,i,n,t,a,l,r,o,A){A=A||"z";var C,s,u,Z,c=new ZC.WD(e,i);switch(A){case"x":C=new ZC.CE(i,n,a,r),s=new ZC.CE(i,t,a,r),u=new ZC.CE(i,t,l,o),Z=new ZC.CE(i,n,l,o);break;case"y":C=new ZC.CE(i,n,a,r),s=new ZC.CE(i,n,l,r),u=new ZC.CE(i,t,l,o),Z=new ZC.CE(i,t,a,o);break;case"z":C=new ZC.CE(i,n,a,r),s=new ZC.CE(i,n,a,o),u=new ZC.CE(i,t,l,o),Z=new ZC.CE(i,t,l,r)}return c.add(C),c.add(s),c.add(u),c.add(Z),c},DA:function(e,i,n,t){void 0===t&&(t=!1);var a,l=null,r=null;n instanceof Array?l=n:(l=n.points,r=n.mathpoints);for(var o=new ZC.WD(e,i),A=0,C=l.length;A<C;A++)null!==ZC._n_(l[A])&&(t?o.add(l[A],r?r[A]:null):o.add(new ZC.CE(i,l[A][0],l[A][1],l[A][2]),r?new ZC.CE(i,r[A][0],r[A][1],r[A][2]):null));return(a=e.o["z-modifier"])&&(o.MG=[ZC._i_(a),ZC._i_(a),ZC._i_(a)]),o}};var CE={$i:function(e,i,n,t){this.parse(e,i,n,t)},parse:function(e,i,n,t){var a=this;a.C=e,a.iX=i,a.iY=n,t-=a.C.ES.depth/2,a.iZ=t,a.EG=0,a.EK=0,a.AAL=0,a.EC=[];var l=a.C.ES.angle,r=a.C.ES.zoom;if(a.C.ES.true3d){var o={x:i,y:n,z:t},A={x:0,y:0,z:0},C={x:a.C.ES["x-angle"],y:a.C.ES["y-angle"],z:a.C.ES["z-angle"]},s=2*Math.PI/360,u=Math.sin(C.x*s),Z=Math.sin(C.y*s),c=Math.sin(C.z*s),p=Math.cos(C.x*s),h=Math.cos(C.y*s),f=Math.cos(C.z*s);a.EG=h*(c*(o.y-A.y)+f*(o.x-A.x))-Z*(o.z-A.z),a.EK=u*(h*(o.z-A.z)+Z*(c*(o.y-A.y)+f*(o.x-A.x)))+p*(f*(o.y-A.y)-c*(o.x-A.x)),a.AAL=p*(h*(o.z-A.z)+Z*(c*(o.y-A.y)+f*(o.x-A.x)))-u*(f*(o.y-A.y)-c*(o.x-A.x)),a.EC[0]=ZC.AM.E1+ZC.AM.A4F/(ZC.AM.A4F+a.AAL)*a.EG*r,a.EC[1]=ZC.AM.E2+ZC.AM.A4F/(ZC.AM.A4F+a.AAL)*a.EK*r}else a.EC[0]=ZC.AM.E1+i+t*ZC.EF(l)*r,a.EC[1]=ZC.AM.E2+n-t*ZC.EL(l)*r}};ZC.CE=ZC.C6.CD(CE);var WD={$i:function(e,i){var n=this;n.C=i,n.O=e,n.K="",n.KD=!1,n.MG=[1,1,1],n.G0=-1,n.D=[],n.PD=[],n.SO=-9999,n.ZV=-9999,n.A4H=9999,n.A4G=9999,n.A9E=9999,n.A3C=0,n.A21=0,n.ABS=0},add:function(e,i){this.D.push(e),this.PD.push(i||e)},ADC:function(){for(var e=this,i=e.PD.length,n=0;n<i;n++){var t=e.PD[n];e.SO=ZC.BR(e.SO,t.iZ),ZC._b_(e.C.ES.true3d)?(e.A4H=ZC.CY(e.A4H,t.iZ),e.ZV=ZC.BR(e.ZV,t.AAL),e.A21+=t.iY):(e.A4G=ZC.CY(e.A4G,t.iX),e.A9E=ZC.CY(e.A9E,t.iY),e.A3C+=t.iX,e.A21+=t.iY,e.ABS+=t.iZ)}e.A3C/=i,e.A21/=i,e.ABS/=i},F1:function(){for(var e=this,i="",n=0,t=e.D.length;n<t;n++)i+=ZC._i_(e.D[n].EC[0]+ZC.MAPTX)+","+ZC._i_(e.D[n].EC[1]+ZC.MAPTX)+",";return i=i.substring(0,i.length-1)}};ZC.WD=ZC.C6.CD(WD);var ST={$i:function(){var e=this;e.A4I=[],e.A6M={},e.WL=[],e.SL={}},clear:function(){var e=this;e.A4I=[],e.WL=[],e.SL={}},add:function(e){this.A4I.push(e)},sortFaces:function(e,i){return 1===zingchart.V3D?e[0][0]>i[0][0]?-1:e[0][0]<i[0][0]?1:e[0][1]>i[0][1]?1:e[0][1]<i[0][1]?-1:e[0][2]>i[0][2]?-1:e[0][2]<i[0][2]?1:e[0][3]>i[0][3]?-1:e[0][3]<i[0][3]?1:0:2===zingchart.V3D?-1!==e[0][3]||-1!==i[0][3]?e[0][3]>i[0][3]?1:e[0][3]<i[0][3]?-1:0:e[0][0]>i[0][0]?-1:e[0][0]<i[0][0]?1:e[0][1]>i[0][1]?1:e[0][1]<i[0][1]?-1:e[0][2]>i[0][2]?1:e[0][2]<i[0][2]?-1:0:3===zingchart.V3D?e[0]>i[0]?-1:e[0]<i[0]?1:0:void 0}};ZC.ST=ZC.C6.CD(ST);var A29={$i:function(e){var i=this;i.G=e,i.VG=!1,i.OV=250,i.GK=0,i.H0=0,i.H5=20,i.BA="",i.CI=[],i.A7=null},onmouseout:function(){},clear:function(){},hide:function(){},show:function(e){},onmousemove:function(e){},onmouseover:function(e,i){},getPlacementInfo:function(e){}};ZC.A29=ZC.C6.CD(A29);var A56={$i:function(e){this.b(e);var i=this;i.G=e,i.IX=!1,i.C=null,i.R5=null,i.WR=null,i.ID=0,i.LK=0,i.IC=0,i.LJ=0,i.A8=null,i.AK=null,i.ZB=!1,i.AB5=0,i.A0D=!1,i.M=null},parse:function(){var e=this;e.C&&(e.C.H6&&e.append(e.C.H6.o),e.b(),e.YD("preserve-zoom","A0D","b"),e.M=new ZC.DQ(e),e.C.A.B6.load(e.M.o,"graph.zoom.label"),e.M.append(e.o.label),e.M.parse(),e.o.label&&!1!==e.o.label.visible&&(e.M.AP=!0))},unbind:function(){},bind:function(){}};ZC.A56=ZC.HU.CD(A56);var A2D={$i:function(e){this.b(e);var i=this;i.I3=!0,i.ABT=!1,i.C=e,i.G=e.A,i.IX=!1,i.A3M=!1,i.G2=null,i.AT=null,i.Z=null,i.IL=0,i.HB=0,i.PC=0,i.A0H=0,i.KU=!1,i.iScaleXLength=0,i.NO=null,i.bBind=!1,i.BY=null,i.A1N=!1},parse:function(){var e,i=this;i.K=i.C.K+"-preview",i.assign_a([["live","ABT","b"],["async","KU","b"],["min-distance","PC","i"],["min-distance-x","PC","i"],["min-distance-y","PC","i"],["visible","AP","b"]]);var n="("+i.C.AF+").preview",t=i.G.B6;function a(e){return[n+".handler",n+".handler-"+e,n+".handle",n+".handle-"+e]}i.AT=new ZC.HU(i.C),i.AT.K=i.C.K+"-preview-viewport",t.load(i.AT.o,[n]),i.AT.append(i.o),i.AT.parse(),i.o.label&&(i.BY=[]),i.o.handle&&i.o.handle.label&&(i.J9=new ZC.DQ(i.C),i.J9.append(i.o.handle.label),i.J9.append({text:" "}),i.J9.parse(),i.J9.AP&&(i.A1N=!0)),i.OW=new ZC.CZ(i.C),t.load(i.OW.o,[n+".mask"]),null!==ZC._n_(e=i.o.mask)&&i.OW.append(e),i.OW.parse(),i.UI=new ZC.CZ(i.C),t.load(i.UI.o,[n+".active"]),null!==ZC._n_(e=i.o.active)&&i.UI.append(e),i.UI.parse(),i.IT=new ZC.HU(i.AT),i.HJ=new ZC.HU(i.AT),i.JE=new ZC.HU(i.AT),i.H9=new ZC.HU(i.AT),t.load(i.IT.o,a("left")),t.load(i.HJ.o,a("right")),t.load(i.JE.o,a("top")),t.load(i.H9.o,a("bottom"));for(var l=["handle","handler"],r=0;r<l.length;r++)null!==ZC._n_(e=i.o[l[r]])&&(i.IT.append(e),i.HJ.append(e),i.JE.append(e),i.H9.append(e)),null!==ZC._n_(e=i.o[l[r]+"-left"])&&i.IT.append(e),null!==ZC._n_(e=i.o[l[r]+"-right"])&&i.HJ.append(e),null!==ZC._n_(e=i.o[l[r]+"-top"])&&i.JE.append(e),null!==ZC._n_(e=i.o[l[r]+"-bottom"])&&i.H9.append(e);i.IT.parse(),i.HJ.parse(),i.JE.parse(),i.H9.parse()},setScalesInfo:function(){var e=this;e.NO={};for(var i,n=e.C.BO,t=0,a=n.length;t<a;t++)(i=n[t])&&("k"===i.AF?e.NO[i.BD]={minindex:i.D4,maxindex:i.DP,minvalue:i.V[i.D4],maxvalue:i.V[i.DP],stepsize:i.AD,values:[].concat(i.V)}:e.NO[i.BD]={minvalue:i.FQ,maxvalue:i.GW})},paint:function(){var e=this;e.PX=ZC.mobile?40:ZC.ie67?0:20,e.AP&&(e.Z=e.AT.Z=e.AT.C8=e.G.Z,e.AT.paint())},reset:function(){var e=this,i=e.C.BW("k")[0],n=e.C.BW("v",!0)[0];n||(n=e.C.BW("v")[0]),i&&n&&e.update(i.D4,i.DP,n.FQ,n.GW,!0)},update:function(e,i,n,t,a){},zoom:function(e){},unbind:function(){},bind:function(){},gc:function(){ZC.AO.gc(this,["Z","C8","o","IB","J2","C","G","AT","UI","JV","JJ","KW","J0","K4","JE","HJ","H9","IT","oMask","OW","A3D","XA","A4V","VX"])}};ZC.A2D=ZC.CZ.CD(A2D);var WW={$i:function(e,i){this.b(e);var n=this;n.BE=e,n.IX=!1,n.Z=null,n.A78="",n.KV=1,n.H7=1,n.AF="scroll-"+(i||"y")},parse:function(){var e,i=this;i.K=i.BE.K+"-legend-"+i.AF;var n=i.BE.A.G.B6,t="("+i.BE.A.AF+")";i.B2=new ZC.HU(i.BE),n.load(i.B2.o,[t+".legend.scroll.bar",i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.B2.append(e),i.B2.parse(),i.B3=new ZC.HU(i.BE),n.load(i.B3.o,[t+".legend.scroll.handle",i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.B3.append(e),i.B3.parse()},paint:function(){},paint_:function(){},update:function(e){},unbind:function(){},bind:function(){}};ZC.WW=ZC.CZ.CD(WW);var V5={$i:function(e){this.b(e);var i=this;i.NY="legend",i.B8=null,i.Q7=null,i.N4="x1",i.I5="hide",i.R4="",i.PW="",i.UU=!1,i.V2=!1,i.TQ="none",i.UJ="header",i.EJ=9999,i.D3=null,i.BQ=null,i.ZD=null,i.A2=null,i.NN=null,i.FR=null,i.KN=null,i.QH=0,i.MI=0,i.YL=!0,i.EK=0,i.GQ=0,i.sAlign="",i.K3="",i.D6={enabled:!1,min:-1,max:-1,page:-1,pages:-1},i.M5=!1,i.NC=!1,i.ND=-1,i.PV=!1,i.A4W=1,i.WV=0,i.LH=!1,i.XO=!1,i.YS=!1,i.XQ=[]},highlightItem:function(e){},scrollTo:function(e){return!1},parse:function(){var e,i,n,t,a=this;if(a.E["force-margins"]=!0,a.QH=0,a.MI=0,null!==ZC._n_(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(null!==ZC._n_(e.x)&&(a.o.x=e.x-a.A.iX),null!==ZC._n_(e.y)&&(a.o.y=e.y-a.A.iY)),ZC.move)a.FR&&a.FR.parse(),a.KN&&a.KN.parse();else{t=a.A.G.B6;var l="("+a.A.AF+")";a.b(),a.assign_a([["collapse","M5","b"],["minimize","UU","b"],["draggable","V2","b"],["shared","PV","b"],["overflow","TQ"],["max-items","EJ","i"],["group","A4W","i"],["drag-handler","UJ"],["highlight-plot","WV","b"],["highlight-legend","LH","b"],["align","sAlign"],["vertical-align","K3"]]),a.M5&&!a.UU&&(a.M5=!1),zingchart.DEV.MEDIARULES&&(a.E["forced-align-position"]||(a.alignPosition({align:a.sAlign,"vertical-align":a.K3,layout:a.N4}),a.E["forced-align-position"]=!0)),a.WV&&null===ZC._n_(a.o["highlight-legend"])&&(a.LH=a.WV),a.BQ=new ZC.DQ(a),t.load(a.BQ.o,l+".legend.item",!1,!0),a.o.item&&null===ZC._n_(a.o.item.visible)&&(a.o.item.visible=!0),a.BQ.append(a.o.item),a.BQ.parse(),a.ZD=new ZC.DQ(a),t.load(a.ZD.o,l+".legend.item-off",!1,!0),a.o["item-off"]&&null===ZC._n_(a.o["item-off"].visible)&&(a.o["item-off"].visible=!0),a.ZD.append(a.o["item-off"]),a.ZD.parse(),a.A2=new ZC.DT(a),t.load(a.A2.o,l+".legend.marker",!1,!0),a.o.marker&&null===ZC._n_(a.o.marker.visible)&&(a.o.marker.visible=!0),a.A2.append(a.o.marker),a.A2.E.type="default",a.A2.E["show-marker"]=!0,a.A2.E["show-line"]=!1,null!==ZC._n_(e=a.A2.o.type)&&(a.A2.E.type=e),null!==ZC._n_(e=a.A2.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BQ.o["marker-style"])&&(a.A2.E.type=e),null!==ZC._n_(e=a.BQ.o["show-line"])&&(a.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BQ.o["show-marker"])&&(a.A2.o.visible=ZC._b_(e)),a.A2.parse(),a.NN=new ZC.DT(a),t.load(a.NN.o,l+".legend.marker-off",!1,!0),a.o["marker-off"]&&(a.o["marker-off"].visible=!0),a.NN.append(a.o["marker-off"]),a.NN.E.type="default",a.NN.E["show-marker"]=!0,a.NN.E["show-line"]=!1,null!==ZC._n_(e=a.NN.o.type)&&(a.NN.E.type=e),null!==ZC._n_(e=a.NN.o["show-line"])&&(a.NN.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BQ.o["marker-style"])&&(a.NN.E.type=e),null!==ZC._n_(e=a.BQ.o["show-line"])&&(a.NN.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=a.BQ.o["show-marker"])&&(a.NN.o.visible=ZC._b_(e)),a.NN.parse(),(null!==ZC._n_(e=a.o.header)||a.V2||a.UU)&&(a.FR=new ZC.DQ(a),a.FR.NY="legendheader",a.FR.GN="zc-legend-item "+a.K+"-header",a.FR.K=a.K+"-header",t.load(a.FR.o,l+".legend.header"),a.FR.o.text=a.FR.o.text||"\xa0",a.FR.append(e),a.FR.parse(),a.FR.AP||(a.FR=null)),null!==ZC._n_(e=a.o.footer)&&(a.KN=new ZC.DQ(a),a.KN.NY="legendfooter",a.KN.GN="zc-legend-item "+a.K+"-footer",a.KN.K=a.K+"-footer",t.load(a.KN.o,l+".legend.footer"),a.KN.append(e),a.KN.parse(),a.KN.AP||(a.KN=null));var r=a.A.AY.A4;null!==ZC._n_(e=a.o.layout)?a.N4=e:25*r.length>a.A.F&&(a.N4="x"+Math.ceil(25*r.length/a.A.F)),null!==ZC._n_(e=a.o["toggle-action"])&&(a.I5=e),a.R4=a.PW=a.I5,null!==ZC._n_(a.o.item)&&null!==ZC._n_(e=a.o.item["toggle-action"])&&(a.R4=e),null!==ZC._n_(a.o.marker)&&null!==ZC._n_(e=a.o.marker["toggle-action"])&&(a.PW=e);var o=function(e){if(r[i]&&r[i].FM(0)){var n=ZC.AO.OA(a.BQ.o,r[i].o);e=r[i].FM(0).K2(e,n)}return e},A=[];a.B8=[];var C=0;for(i=0,n=r.length;i<n;i++){var s=a.A.AY.MA[i];if(r[s].o["skip-paint"]||null!==ZC._n_(r[s].o["show-in-legend"])&&!ZC._b_(r[s].o["show-in-legend"]))r[s].bShowInLegend=!1;else if(!r[s].o["legend-item"]||null===ZC._n_(r[s].o["legend-item"].visible)||ZC._b_(r[s].o["legend-item"].visible)){var u=new ZC.DQ(a);u.copy(a.BQ),u.append(r[s].o["legend-item"]),null===ZC._n_(u.o.text)&&null!==ZC._n_(e=r[s].A62)&&(u.o.text=e),null===ZC._n_(u.o.text)&&null!==ZC._n_(e=r[s].AN)&&(u.o.text=e),u.AN=null===ZC._n_(u.o.text)?"Series "+(s+1):u.o.text,u.E.order=s,u.E.index=s,null!==ZC._n_(r[s].o["legend-item"])&&null!==ZC._n_(e=r[s].o["legend-item"].order)&&(u.E.order=ZC._i_(e)),A.push([C,s,u.E.order]),C++,-1!==u.AN.indexOf("%")&&(u.K2=o),u.parse(),a.B8.push(u)}else r[s].bShowInLegend=!1}for(A.sort(function(e,i){return e[2]-i[2]}),i=0;i<A.length;i++)A[i][2]=i,r[A[i][1]].o["legend-item"]=r[A[i][1]].o["legend-item"]||{},r[A[i][1]].o["legend-item"].order=A[i][2],a.B8[A[i][0]].E.order=A[i][2];(e=a.A.E["legend-info"])&&(a.NC=e.collapsed)}if(a.B8&&a.A2){"page"===a.TQ?((e=a.A.E["legend-info"])?(a.D6.min=e.min,a.D6.max=e.max,a.D6.page=e.page):(a.D6.min=0,a.D6.max=a.EJ,a.D6.page=1),a.D6.pages=Math.ceil(a.B8.length/a.EJ),a.D6.page>a.D6.pages&&(a.D6.page=a.D6.pages,a.D6.min=(a.D6.page-1)*a.EJ,a.D6.max=a.D6.page*a.EJ-1),a.D6.page=ZC.CY(a.D6.page,a.D6.pages)):"scroll"===a.TQ?(e=a.A.E["legend-info"])?(a.D6.min=e.min,a.D6.max=e.max,a.D6.page=e.page):(a.D6.min=0,a.D6.max=a.EJ,a.D6.page=1):(a.D6.min=0,a.D6.max="hidden"===a.TQ?a.EJ:a.B8.length,a.D6.page=1),a.WE(!1),a.B8.sort(function(e,i){return e.E.order-i.E.order}),a.o["reverse-series"]&&a.B8.reverse();var Z=.9*a.A.I;null!==ZC._n_(a.o.width)&&(Z=a.I);var c=0,p=0,h=-ZC.MAX,f=-ZC.MAX,_=a.A2.E["show-line"]?3:2,d=0,g=1,v=1;if("float"===a.N4){for(i=0,n=a.B8.length;i<n;i++)if(d+=a.B8[i].AP?1:0,!(i<a.D6.min||i>=a.D6.max||a.NC)&&a.B8[i].AP){var B=a.B8[i].I+a.B8[i].E0+a.B8[i].EA+_*a.B8[i].DI;f=ZC.BR(f,a.B8[i].F+a.B8[i].EB+a.B8[i].DW),c+B>Z?(h=ZC.BR(h,c),p+=f,c=B,f=ZC.BR(f,a.B8[i].F+a.B8[i].EB+a.B8[i].DW)):c+=B}h=ZC.BR(h,c),f!==-ZC.MAX&&(p+=f),h!==-ZC.MAX&&(c=h)}else{var E=0;for(i=0,n=a.B8.length;i<n;i++)d+=a.B8[i].AP?1:0,i<a.D6.min||i>=a.D6.max||a.NC||(E+=a.B8[i].AP?1:0);var b=ZC.AQ.A2F(a.N4,E);for(g=b[0],v=b[1],i=0,n=a.B8.length;i<n;i++)(i<a.D6.min||i>=a.D6.max||a.NC)&&("scroll"!==a.TQ||d<=a.EJ)||a.B8[i].AP&&(h=ZC.BR(h,a.B8[i].I+a.B8[i].E0+a.B8[i].EA+_*a.B8[i].DI),f=ZC.BR(f,a.B8[i].F+a.B8[i].EB+a.B8[i].DW),1===v&&(p+=a.B8[i].F+a.B8[i].EB+a.B8[i].DW));c=v*h,p=g*f}if("page"===a.TQ&&d>a.EJ&&(a.D6.enabled=!0),"scroll"===a.TQ&&d>a.EJ&&(a.D3||(!g||g>v?(a.D3=new ZC.WW(a,"y"),t.load(a.D3.o,".scroll-y")):(a.D3=new ZC.WW(a,"x"),t.load(a.D3.o,".scroll-x")),a.D3.append(a.o.scroll),a.D3.KV=g,a.D3.H7=v,a.D3.parse()),a.NC||("scroll-y"===a.D3.AF?c+=a.D3.B2.I:p+=a.D3.B2.F)),a.FR){var D=a.FR.I;a.V2&&"icon"===a.UJ?(D+=15,a.UU&&(D+=25)):a.UU&&(D+=15),c=ZC.BR(c,D)}a.KN&&(c=ZC.BR(c,a.KN.I));var F=!1,m=!1;if(null===ZC._n_(a.o.width)&&(a.o.width=c,F=!0),null===ZC._n_(a.o.height)&&(a.o.height=p,m=!0),a.iX=-1,a.iY=-1,!ZC.move&&a.FR&&null!==ZC._n_(e=a.A.A.E["legend"+a.A.L+"-xy-ratio"])){a.locate();var Y=a.I+a.ER+a.FO,M=a.F+a.FJ+a.FX,I=a.PV?a.A.A:a.A;a.iX=I.I*e[0],a.iX=ZC.BR(a.iX,1.1),a.o.x=a.iX=ZC.CY(a.iX,I.I-Y-2),a.iY=(I.F-a.FR.F)*e[1],a.iY=ZC.BR(a.iY,1.1),a.o.y=a.iY=ZC.CY(a.iY,I.F-M-a.FR.F-2)}if(a.locate(),null!==ZC._n_(a.o.position)&&"undefined"!=typeof a.E["position-info"]?(a.E["position-info"][0]>.5&&(a.QH+=a.ER+a.FO),a.E["position-info"][1]>.5?a.MI+=a.FJ+a.FX:(a.FR&&(a.MI-=a.FR.F),a.KN&&(a.MI-=a.KN.F),a.D6&&a.D6.enabled&&(a.MI-=20))):((0===a.A.iX||a.iX+a.I/2>a.A.iX+a.A.I/2)&&(a.QH+=a.ER+a.FO),(0===a.A.iY||a.iY+a.F/2>a.A.iY+a.A.F/2)&&(a.MI+=a.FJ+a.FX)),!ZC.move&&(e=a.A.A.E["graph-"+a.A.K+"-legend-info"])&&(e.x&&(a.iX=e.x),e.y&&(a.iY=e.y)),a.GQ=a.F,a.EK=a.iY,a.FR&&(a.F+=a.FR.F,a.EK+=a.FR.F,a.MI+=a.FR.F),a.KN&&(a.F+=a.KN.F,a.MI+=a.KN.F),a.D6.enabled&&!a.NC){var K=new ZC.DQ(a);K.AN=" ",K.append(a.o["page-status"]),null!==ZC._n_(K.o.text)&&""!==K.o.text||(K.o.text="#"),K.parse(),a.F+=K.F+4,a.MI+=K.F+4}F&&(a.o.width=null),m&&(a.o.height=null),a.NC||(a.I+=a.ER+a.FO,a.F+=a.FJ+a.FX),a.E["default-width"]&&(a.I=a.E["default-width"])}},alignPosition:function(e){var i=this;if(null!==ZC._n_(e)){var n=i.A.G.B6.B6.graph.legend,t=e.align||n.align,a=e["vertical-align"]||n["vertical-align"],l=e.layout||n.layout;(t||a)&&("center"===t?(null===ZC._n_(i.o.layout)&&(l=i.o.layout="horizontal"),i.o.position="50% "):i.o.position="left"===t?"0% ":"100% ",i.o.position+="middle"===a?"50%":"bottom"===a?"100%":"0%","horizontal"!==l&&"middle"!==a||(i.o["adjust-layout"]=!0))}},WE:function(e){var i=this;void 0===e&&(e=!0),i.A.E["legend-info"]={collapsed:i.NC,min:i.D6.min,max:i.D6.max,page:i.D6.page},e&&(i.A.A.E["graph-"+i.A.K+"-legend-info"]={x:i.iX,y:i.iY})},clear:function(e,i){},unbind:function(){},fixPlacement:function(e){var i=this;if(i.YL&&null===ZC._n_(i.o.y)||e){if(!i.o.position&&e||(i.iX-=i.QH),i.iX<i.E0&&(i.E0<i.EA||-2===i.EA)&&(i.iX=i.E0),!i.o.position&&e||(i.iY-=i.MI,i.EK-=i.MI),i.iY<i.EB&&(i.EB<i.DW||-2===i.DW)){var n=i.EK-i.iY;i.iY=i.EB,i.EK=i.EB+n}i.YL=!1}},EO:function(e){var i=this;i.FR&&i.FR.EO(e),i.KN&&i.KN.EO(e);for(var n=0;n<i.XQ.length;n++)i.XQ[n].EO(e)},paint:function(e){var i,n,t,a,l,r,o,A,C,s,u,Z,c,p,h,f=this;if(f.AP&&(f.E["default-width"]||(f.E["default-width"]=f.I),f.B8)){ZC.AL(f.G.K+"-top");var _=f.A.AY.A4,d=0;for(r=0,o=f.B8.length;r<o;r++)r<f.D6.min||r>=f.D6.max||f.NC||(d+=f.B8[r].AP?1:0);f.A4U=!0,f.b(),f.FR&&(f.FR.iX=f.iX,f.FR.iY=f.iY,f.FR.I=f.I,f.FR.Z=f.FR.C8=f.Z,f.FR.paint(),ZC.move||"canvas"!==f.A.A.AB&&f.FR.EO(),f.V2&&"icon"===f.UJ&&((t=new ZC.DT(f)).Z=f.Z,t.B9="#000",t.B1=1,t.DH="line",f.A.G.B6.load(t.o,"("+f.A.AF+").legend.icon"),t.append(f.o.icon),a=f.FR.iX+f.FR.I-10,l=f.FR.iY+f.FR.F/2,t.D=[[a-7,l],[a+7,l],null,[a,l-7],[a,l+7],null,[a-6,l-1],[a-6,l+1],null,[a-5,l-2],[a-5,l+2],null,[a+6,l-1],[a+6,l+1],null,[a+5,l-2],[a+5,l+2],null,[a-1,l-6],[a+1,l-6],null,[a-2,l-5],[a+2,l-5],null,[a-1,l+6],[a+1,l+6],null,[a-2,l+5],[a+2,l+5]],t.parse(),t.paint()),f.UU&&((n=new ZC.DT(f)).Z=f.Z,n.B9=ZC.AO.AAB(f.A0,"#fff","#000"),n.B1=1,f.A.G.B6.load(n.o,"("+f.A.AF+").legend.icon"),n.append(f.o.icon),n.DH="line",a=f.FR.iX+f.FR.I-10-(f.V2&&"icon"===f.UJ?20:0),l=f.FR.iY+f.FR.F/2,n.D=[[a-7,l-2],[a+2,l-2],[a+2,l+7],[a-7,l+7],[a-7,l-2],[a+2,l-2],null,[a-4,l-5],[a+5,l-5],[a+5,l+4],[a-4,l+4],[a-4,l-5],[a+5,l-5]],n.parse(),n.paint())),f.KN&&(f.KN.iX=f.iX,f.KN.iY=f.iY+f.F-f.KN.F,f.KN.I=f.I,f.KN.Z=f.KN.C8=f.Z,f.KN.paint(),ZC.move||"canvas"!==f.A.A.AB&&f.KN.EO());var g=ZC.AQ.A2F(f.N4,d),v=g[0],B=g[1],E=f.I/B,b=f.GQ/v,D=0,F=0;f.Q7=[];var m,Y=0,M=-ZC.MAX,I=f.A2.E["show-line"]?3:2,K=null,X=function(i){var n=i;if(null===ZC._n_(e)&&(e=0),_[m]&&_[m].S[e]){var t=ZC.AO.OA(f.BQ.o,_[m].o);i=_[m].FM(e).K2(i,t)}return f.XO=f.XO||i!==n,i},x=0;for(f.XO=!1,r=0,o=f.B8.length;r<o;r++)if(!(r-x<f.D6.min||r-x>=f.D6.max||f.NC)){var L=new ZC.DQ(f);L.copy(f.B8[r]),f.E["highlight-legend"]===r&&(L.append({bold:!0}),null!==ZC._n_(L.o["highlight-state"])&&L.append(L.o["highlight-state"])),m=L.E.index;var P=new ZC.DQ(f);P.NY="legenditem",P.K=f.K+"-item_"+m,P.GN="zc-legend-item "+f.K+"-item",P.copy(L),f.A.E["plot"+m+".visible"]&&"off"!==_[m].o["legend-status"]||P.append(f.ZD.o),P.append(_[m].o["legend-item"]),P.K2=X,P.parse(),P.AP?("float"===f.N4?(M=ZC.BR(M,L.F),null===ZC._n_(K)?(L.iX=f.iX+f.ER+L.E0+I*L.DI,L.iY=f.EK+f.FJ+L.EB,Y=f.EK):(L.iX=K.iX+K.I+K.EA+L.E0+I*L.DI,ZC._i_(L.iX+L.I+L.EA)>ZC._i_(f.iX+f.I)&&(L.iX=f.iX+f.ER+L.E0+I*L.DI,Y+=M+L.EB+L.DW,M=-ZC.MAX),L.iY=Y+f.FJ+L.EB)):(L.iX=f.iX+(0===F?f.ER:0)+F*E+L.E0+I*L.DI,L.iY=f.EK+f.FJ+D*b+L.EB,++F===B&&(F=0,D++)),K=L,P.iX=L.iX=ZC._i_(L.iX),P.iY=L.iY=ZC._i_(L.iY),P.Z=P.C8=f.Z,P.iX+=f.BK,P.iY+=f.BJ,m===f.ND&&(f.E["calculate-y"]&&(f.E["calculate-y"]=!1,f.E["dragged-offset-y"]=f.E["dragged-y"]-P.iY),P.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]-P.DI/4),P.paint(),"undefined"!=typeof f.E.showhide&&null!==ZC._n_(f.E.showhide)||ZC.move||("canvas"!==f.A.A.AB?P.EO():f.XQ.push(P))):x++;var w=f.A2.E.type;null!==ZC._n_(i=_[m].o["legend-marker"])&&null!==ZC._n_(i.type)&&(w=i.type);var S,y=!1;switch("match"!==w&&"inherit"!==w||(y=!0,null!==ZC._n_(i=_[m].A2.o.type)?(w=i,f.A2.o.type=null):w="default"),-1!==ZC.AV(["default","square"],w)?S=new ZC.HU(f):(S=new ZC.DT(f)).DH=w,S.NY="legendmarker",S.append(f.A2.o),f.A.E["plot"+m+".visible"]&&"off"!==_[m].o["legend-status"]||S.append(f.NN.o),S.NB=_[m].NB,_[m].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":S.A0=_[m].A0,S.AE=_[m].AE,S.GT=_[m].GT,S.HQ=_[m].HQ;break;case"scatter":case"hscatter":case"bubble":case"hbubble":S.A0="-1"!==_[m].A2.A0?_[m].A2.A0:_[m].A0,S.AE="-1"!==_[m].A2.AE?_[m].A2.AE:_[m].AE,S.GT=""!==_[m].A2.GT?_[m].A2.GT:_[m].GT,S.HQ=""!==_[m].A2.HQ?_[m].A2.HQ:_[m].HQ;break;default:S.A0=_[m].B9,S.AE=_[m].B9}if("line"!==S.DH&&"area"!==S.DH||(S.B9=S.A0,S.B1=2),y){var G=-1,O=!0;null!==ZC._n_(S.o.size)&&(G=S.o.size),null!==ZC._n_(S.o.visible)&&(O=S.o.visible),S.append(_[m].A2.o),-1!==G&&(S.o.size=G),S.o.visible=O}S.o["line-style"]="solid",S.o.type=S.DH,S.append(_[m].o["legend-marker"]),y&&(S.o.type=S.DH),S.E["show-marker"]=!0,S.E["show-line"]=!1,null!==ZC._n_(i=S.o["show-line"])&&(S.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=P.o["show-line"])&&(S.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=P.o["show-marker"])&&(S.o.visible=ZC._b_(i)),-1!==ZC.AV(["default","square"],w)&&null!==ZC._n_(i=S.o.size)&&(null===ZC._n_(S.o.width)&&(S.o.width=2*ZC._i_(i)),null===ZC._n_(S.o.height)&&(S.o.height=2*ZC._i_(i))),S.K=f.K+"-marker_"+m,S.Z=S.C8=f.Z,S.iX=P.iX-I*P.DI+(I-1)*P.DI/2+P.DI/2,S.iY=P.iY+(P.F-P.DI)/2+P.DI/2,S.parse(),f.E["highlight-legend"]===r&&(S.append({size:S.AI+1,width:S.I+2,height:S.F+2}),_[m]&&_[m].S[e]&&_[m].S[e].GL&&S.append({A0:_[m].S[e].GL.A0,AE:_[m].S[e].GL.AE}),null!==ZC._n_(f.o.marker)&&S.append(f.o.marker["highlight-state"]),S.parse()),"line"===S.DH?(S.o.points=[[S.iX-1.75*S.AI,S.iY],[S.iX+1.75*S.AI,S.iY]],S.parse()):"area"===S.DH&&(S.o.points=[[S.iX-1.75*S.AI,S.iY+S.AI],[S.iX+1.75*S.AI,S.iY+S.AI],[S.iX+1*S.AI,S.iY-S.AI/2],[S.iX,S.iY],[S.iX-1.25*S.AI,S.iY-S.AI],[S.iX-1.75*S.AI,S.iY+S.AI]],S.parse());var N=S.iX+S.BK,V=S.iY+S.BJ;-1!==ZC.AV(["default","square"],w)&&(S.iX-=S.I/2,S.iY-=S.F/2);if(f.A.E["plot"+m+".visible"]&&"off"!==_[m].o["legend-status"]||(S.C5/=4,"Off"),P.AP&&S.E["show-line"]){var U=ZC.Q.EE(f.Z,f.A.G.AB),Q=new ZC.CZ(f);Q.Z=f.Z,Q.copy(_[m]),Q.o["line-style"]=f.A2.GE,Q.append(_[m].o),Q.append(f.A2.o),Q.append(_[m].o["legend-item"]),Q.append(_[m].o["legend-marker"]),Q.o["top-state"]=null,Q.o["bottom-state"]=null,Q.parse(),f.A.E["plot"+m+".visible"]||(Q.C5=.25);var k=[],W=S.AP?2:1;A="box"===S.DH?S.I/2:S.AI,k.push([N-W*A-(Q.B1>1?1:0),V-(Q.B1>1?.5:0)]),k.push([N+W*A,V-(Q.B1>1?.5:0)]),Q.D0=!0,ZC.CO.paint(U,Q,k)}m===f.ND&&(S.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]/2),S.AP&&P.AP&&S.paint(),f.Q7.push(S)}if(f.D3&&!f.NC&&(f.D3.paint(),ZC.AL(f.K+"-scroll-c").style.display="block"),f.D3&&f.NC&&(ZC.AL(f.K+"-scroll-c").style.display="none"),f.D6.enabled&&!f.NC){var R=new ZC.DQ(f);R.Z=R.C8=f.Z,R.K=f.K+"-page-status",R.AN=ZC.HG["legend-pagination"].replace("%page%",f.D6.page).replace("%pages%",f.D6.pages),R.append(f.o["page-status"]),R.parse(),f.I<R.I+48&&(R.AN=f.D6.page+"/"+f.D6.pages,R.parse()),R.iX=f.iX+f.I/2-R.I/2,R.iY=f.iY+f.F-(f.KN?f.KN.F:0)-R.F-4,R.AP&&R.paint();var J=f.A.G.B6,H="("+f.A.AF+")",z={"background-color":"#999"},T={"background-color":"#f90"};J.load(z,H+".legend.page-off"),J.load(T,H+".legend.page-on"),(s=new ZC.DT(f)).Z=s.C8=f.Z,s.K=f.K+"-page-prev",s.A0=s.AE=f.D6.page>1?T["background-color"]:z["background-color"],s.append(f.D6.page>1?f.o["page-on"]:f.o["page-off"]),C=f.iX+f.I/2-R.I/2-6,u=R.iY+R.F/2,s.parse(),s.AI=ZC.BR(s.AI,8),h=ZC._i_(.75*s.AI),s.D=[[C,u-h],[C,u+h],[C-s.AI,u],[C,u-h]],s.parse(),s.AP&&s.paint(),(c=new ZC.DT(f)).Z=c.C8=f.Z,c.K=f.K+"-page-next",c.A0=c.AE=f.D6.page<f.D6.pages?T["background-color"]:z["background-color"],c.append(f.D6.page<f.D6.pages?f.o["page-on"]:f.o["page-off"]),Z=f.iX+f.I/2+R.I/2+6,p=R.iY+R.F/2,c.parse(),c.AI=ZC.BR(c.AI,8),h=ZC._i_(.75*c.AI),c.D=[[Z,p-h],[Z,p+h],[Z+c.AI,p],[Z,p-h]],c.parse(),c.AP&&c.paint()}ZC.move,f.E.showhide=null}},gc:function(){ZC.AO.gc(this,["B8","D","Q7","Z","C8","o","J2","IB","KN","FR","BQ","ZD","G","A","A2","NN","D6"])}};ZC.V5=ZC.DQ.CD(V5);var A7Y={$i:function(e){this.b(e);var i=this;i.MZ=null,i.BB=null,i.M=null,i.JW=0,i.BG=null,i.GI="bottom",i.L8=40,i.A2W=[2,4]},parse:function(){var e,i,n,t=this;(t.assign_a([["z-index","JW","i"],["length","L8","i"],["aspect","A2W"],["direction","GI"]]),null===ZC._n_(t.o.from)&&null===ZC._n_(t.o.to))&&(null!==ZC._n_(t.o.x)&&null!==ZC._n_(t.o.y)&&null!==ZC._n_(t.o.length)&&null!==ZC._n_(t.o.angle)&&(i="string"==typeof t.o.x?t.A.V7(t.o.x)[0]:ZC._i_(t.o.x),n="string"==typeof t.o.y?t.A.V7(t.o.y)[1]:ZC._i_(t.o.y),t.o.from={x:i+t.L8*ZC.EL(t.AA+180),y:n+t.L8*ZC.EF(t.AA+180)},t.o.to={x:i+t.L8*ZC.EL(t.AA),y:n+t.L8*ZC.EF(t.AA)}));null!==ZC._n_(e=t.o.from)&&(t.MZ=new ZC.DT(t.A),t.MZ.append(e),null!==e.hook&&(t.MZ.E.hook=e.hook),t.MZ.parse(),"string"==typeof e&&(t.MZ.E.hook=e)),null!==ZC._n_(e=t.o.to)&&(t.BB=new ZC.DT(t.A),t.BB.append(e),null!==e.hook&&(t.BB.E.hook=e.hook),t.BB.parse(),"string"==typeof e&&(t.BB.E.hook=e)),(null!==ZC._n_(e=t.o.label)||""!==t.o.text&&"undefined"!=typeof t.o.text)&&(t.M=new ZC.DQ(t),t.M.append(t.o),t.M.append(e),t.M.parse()),t.b()},paint:function(){var e,i,n=this;if(n.AP&&(null!==n.MZ||null!==n.BB))if(n.AI<1&&(n.AI=1),!n.MZ||null===ZC._n_(e=n.MZ.E.hook)||(i=n.A.V7(e),n.MZ.iX=i[0],n.MZ.iY=i[1],n.MZ.iX+=n.MZ.BK,n.MZ.iY+=n.MZ.BJ,ZC.DS(n.MZ.iX,n.A.P.iX-2,n.A.P.iX+n.A.P.I+2)&&ZC.DS(n.MZ.iY,n.A.P.iY-2,n.A.P.iY+n.A.P.F+2)))if(!n.BB||null===ZC._n_(e=n.BB.E.hook)||(i=n.A.V7(e),n.BB.iX=i[0],n.BB.iY=i[1],n.BB.iX+=n.BB.BK,n.BB.iY+=n.BB.BJ,ZC.DS(n.BB.iX,n.A.P.iX-2,n.A.P.iX+n.A.P.I+2)&&ZC.DS(n.BB.iY,n.A.P.iY-2,n.A.P.iY+n.A.P.F+2))){var t,a;if(n.MZ&&n.BB)t=[n.MZ.iX,n.MZ.iY],a=[n.BB.iX,n.BB.iY];else if(n.MZ&&!n.BB)switch(t=[n.MZ.iX,n.MZ.iY],n.GI){case"top":a=[n.MZ.iX,n.MZ.iY+n.L8];break;case"right":a=[n.MZ.iX+n.L8,n.MZ.iY];break;case"bottom":a=[n.MZ.iX,n.MZ.iY-n.L8];break;case"left":a=[n.MZ.iX-n.L8,n.MZ.iY]}else if(!n.MZ&&n.BB)switch(a=[n.BB.iX,n.BB.iY],n.GI){case"top":t=[n.BB.iX,n.BB.iY+n.L8];break;case"right":t=[n.BB.iX-n.L8,n.BB.iY];break;case"bottom":t=[n.BB.iX,n.BB.iY-n.L8];break;case"left":t=[n.BB.iX+n.L8,n.BB.iY]}var l,r=a[0]-t[0],o=a[1]-t[1],A=ZC.U4(Math.atan2(o,r)),C=Math.sqrt(r*r+o*o),s=[];if(s.push(t),l=ZC.AQ.BN(t[0],t[1],n.AI/2,A+90),s.push(l),l=ZC.AQ.BN(l[0],l[1],C-n.A2W[1]*n.AI/2,A),s.push(l),l=ZC.AQ.BN(l[0],l[1],n.A2W[0]*n.AI/2,A+90),s.push(l),s.push(a),l=ZC.AQ.BN(l[0],l[1],(2*n.A2W[0]+2)*n.AI/2,A-90),s.push(l),l=ZC.AQ.BN(l[0],l[1],n.A2W[0]*n.AI/2,A+90),s.push(l),l=ZC.AQ.BN(t[0],t[1],n.AI/2,A-90),s.push(l),s.push(t),n.BG=new ZC.DT(n.A),n.BG.K=n.K,n.BG.Z=n.BG.C8=n.Z,n.BG.copy(n),n.BG.D=s,n.BG.D0=!1,n.BG.parse(),n.BG.paint(),null!==n.M&&n.M.AP){n.M.Z=n.Z,n.M.K=n.A.K+"-arrow-label-"+n.HA,n.M.GN=n.A.K+"-arrow-label zc-arrow-label";var u=ZC.AQ.K1(t[0],t[1],a[0],a[1]);n.M.iX=u[0],n.M.iY=u[1],n.M.BK-=n.M.I/2,n.M.BJ-=n.M.F/2,null!==ZC._n_(n.M.o["font-angle"])&&"inherit"===n.M.o["font-angle"]&&(n.M.AA=A),n.M.paint(),n.M.EO()}}else n.AP=!1;else n.AP=!1}};ZC.A7Y=ZC.DT.CD(A7Y);var JY={$i:function(e){this.G=e},unbind:function(){},bind:function(){}};ZC.JY=ZC.C6.CD(JY),ZC.JY.clearGuide=function(e){};var A2O={$i:function(e,i){var n=this;n.o=null,n.C=e,n.NT=i},parse:function(){var e,i=this;i.o=i.C.o;var n,t,a,l,r,o,A,C,s,u=i.NT,Z="\r\n",c=",",p=!1,h=null,f=null,_=null,d=null,g=null,v=!1,B=!1,E=null,b={};null!==ZC._n_(e=i.o["html5-csv"])&&(b=e),null!==ZC._n_(e=i.o.csv)&&(b=e),null!==ZC._n_(e=b.separator)&&(c=e),null!==ZC._n_(e=b.mirrored)&&(p=ZC._b_(e)),null!==ZC._n_(e=b.title)&&(h=ZC._b_(e)),null!==ZC._n_(e=b["string-values"])&&(B=ZC._b_(e)),p?(null!==ZC._n_(e=b["horizontal-labels"])&&(_=ZC._b_(e)),null!==ZC._n_(e=b["vertical-labels"])&&(f=ZC._b_(e))):(null!==ZC._n_(e=b["horizontal-labels"])&&(f=ZC._b_(e)),null!==ZC._n_(e=b["vertical-labels"])&&(_=ZC._b_(e))),null!==ZC._n_(e=b["smart-scales"])&&(d=ZC._b_(e)),null!==ZC._n_(e=b["separate-scales"])&&(g=ZC._b_(e)),null!==ZC._n_(e=b["keyval-format"])&&(v=ZC._b_(e)),null!==ZC._n_(e=b.columns)&&(E=e);var D=null;null!==ZC._n_(e=b["thousands-separator"])&&(D=e);var F=null;if(null!==ZC._n_(e=b["decimals-separator"])&&(F=e),null!==D&&null===F&&(F="."===D?",":"."),null!==F&&null===D&&(D="."===F?",":"."),null!==ZC._n_(E)&&E.length>0){n=[],null!==ZC._n_(e=b["row-separator"])?Z=e:u.split(/\n/).length>0?Z="\n":u.split(/\r/).length>0&&(Z="\r");var m=u.split(Z),Y=0;for(l=0,r=m.length;l<r;l++)if(""!==m[l].replace(/\s+/g,"")){n[Y]=[];for(var M=0,I=0;M<m[l].length-1;)a=m[l].substring(M,M+E[I]),n[Y].push(a),M+=E[I],I++;Y++}}else{n=[[]],t=null!==ZC._n_(e=b["row-separator"])?new RegExp("(\\"+c+"|"+e+'|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+c+e+"]*))","gi"):new RegExp("(\\"+c+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+c+"\\r\\n]*))","gi");for(var K=null;K=t.exec(u);){var X=K[1];X.length&&X!==c&&n.push([]),a=K[2]?K[2].replace(new RegExp('""',"g"),'"'):K[3],n[n.length-1].push(a)}}var x=[];for(l=0,r=n.length;l<r;l++)0!==n[l].join("").replace(/\s+/g,"").length&&x.push(n[l]);var L=0,P=0;if((null===ZC._n_(h)||h)&&(x.length>1&&1===x[0].length?(null===ZC._n_(i.o.title)?i.o.title={text:x[0][0]}:null===ZC._n_(i.o.title.text)&&(i.o.title.text=x[0][0]),h=!0):h=!1),h&&L++,p){for(n=[],h&&n.push(x[0]),o=L,A=x.length;o<A;o++)for(C=0,s=x[o].length;C<s;C++)null===ZC._n_(n[C+L])&&(n[C+L]=[]),n[C+L].push(x[o][C]);x=n}if("function"==typeof zingchart.csvParser)for(o=0,A=x.length;o<A;o++)for(C=0,s=x[o].length;C<s;C++)x[o][C]=zingchart.csvParser.call(this,x[o][C],o,C,i.C.A.K);var w=0;for(l=0,r=x.length;l<r;l++)w=ZC.BR(w,x[l].length);var S=[];if(null===ZC._n_(f)){var y=x[L].join("").length;f=x[L].join("").replace(/[0-9]/g,"").length/y>.75}f&&(S=x[L],L++);var G=[];if(null===ZC._n_(_))if(f&&-1!==S[0].indexOf("\\"))_=!0;else{var O="";for(o=L,A=x.length;o<A;o++)O+=x[o][0];var N=O.length;_=O.replace(/[0-9]/g,"").length/N>.75}if(_){for(o=L,A=x.length;o<A;o++)v?G.push(ZC._i_(x[o][P])):G.push(x[o][P]);P++}var V=[],U=[];for(C=P;C<w;C++){U[C-P]=[];var Q=D,k=F,W=0,R=null;for(o=L,A=x.length;o<A;o++)if(null!==ZC._n_(x[o][C])&&""!==x[o][C]&&"undefined"!=typeof x[o][C]){if(a=x[o][C],null!==ZC._n_(R)||B||(R=a.replace(/[0-9\-\,\.\+\e]+/g,"%v")),B||(a=a.replace(/[^0-9\-\,\.\+\e]+/g,"")),null===Q||null===k){var J=a.indexOf("."),H=a.indexOf(",");-1!==J&&-1!==H?J<H?(Q=".",k=",",W=ZC.BR(0,a.length-H)):(Q=",",k=".",W=ZC.BR(0,a.length-J)):-1===J&&-1!==H?a.length-H-1==3?(Q=",",k="."):(Q=".",k=",",W=ZC.BR(0,a.length-H)):-1!==J&&-1===H&&(a.length-J-1==3?(Q=".",k=","):(Q=",",k=".",W=ZC.BR(0,a.length-J)))}"."===Q&&(a=a.replace(/\./g,"").replace(/,/g,".")),","===Q&&(a=a.replace(/,/g,"")),U[C-P].push(B?a:ZC._f_(a))}else U[C-P].push(null);V[C-P]={},null!==ZC._n_(R)&&(V[C-P].format=R),null!==ZC._n_(Q)&&(V[C-P]["thousands-separator"]=Q),null!==ZC._n_(Q)&&(V[C-P]["decimals-separator"]=k),0!==W&&(V[C-P].decimals=W)}if(v)for(l=0,r=U.length;l<r;l++)for(var z=0;z<U[l].length;z++)U[l][z]=[G[z],U[l][z]];var T=[];switch(i.C.AF){case"line":case"area":case"vbar":case"hbar":case"line3d":case"area3d":case"vbar3d":case"hbar3d":case"mixed":null===ZC._n_(i.o["scale-x"])&&(i.o["scale-x"]={});var j=[];_&&null!==ZC._n_(S[0])&&(j=S[0].split(/\\/)),null!==ZC._n_(j[0])&&(null===ZC._n_(i.o["scale-x"].label)&&(i.o["scale-x"].label={}),null===ZC._n_(i.o["scale-x"].label.text)&&(i.o["scale-x"].label.text=j[0])),_&&(null===ZC._n_(i.o["scale-x"].values)?i.o["scale-x"].values=G:null===ZC._n_(i.o["scale-x"].labels)&&(i.o["scale-x"].labels=G));var q=[];if(null!==ZC._n_(g)&&g)for(l=0,r=U.length;l<r;l++)q[l]="scale-y"+(0===l?"":"-"+(l+1));else if(null!==ZC._n_(d)&&d){var $={},ee=0,ie=[];for(l=0,r=U.length;l<r;l++){for(var ne=0,te=0,ae=U[l].length;te<ae;te++)ne+=U[l][te];ne/=U[l].length;var le=Math.round(ZC.FU(ne)/Math.LN10/2);null===ZC._n_($[le])&&($[le]="scale-y"+(0===ee?"":"-"+(ee+1))),-1===ZC.AV(ie,V[l].format)?(q[l]="scale-y"+(0===ee?"":"-"+(ee+1)),ee++):(q[l]=$[le],ee++),ie.push(V[l].format)}}for(0===q.length&&(q[0]="scale-y"),null===ZC._n_(i.o.series)&&(i.o.series=[]),l=0,r=U.length;l<r;l++)null===ZC._n_(i.o.series[l])&&(i.o.series[l]={}),i.o.series[l].values=U[l],f&&(null===ZC._n_(i.o.series[l].text)&&(i.o.series[l].text=S[l+P],T.push(S[l+P])),null===ZC._n_(i.o.series[l]["legend-text"])&&(i.o.series[l]["legend-text"]=S[l+P],T.push(S[l+P])),null===ZC._n_(i.o.series[l]["tooltip-text"])&&null!==ZC._n_(V[l].format)&&(i.o.series[l]["tooltip-text"]=V[l].format)),null!==ZC._n_(q[l])&&(null===ZC._n_(i.o[q[l]])&&(i.o[q[l]]={}),null!==ZC._n_(j[1])&&(null===ZC._n_(i.o[q[l]].label)&&(i.o[q[l]].label={}),null===ZC._n_(i.o[q[l]].label.text)&&(i.o[q[l]].label.text=j[1])),null===ZC._n_(i.o.series[l].scales)&&(i.o.series[l].scales="scale-x,"+q[l]),null===ZC._n_(i.o[q[l]].decimals)&&null!==ZC._n_(V[l].decimals)&&(i.o[q[l]].decimals=V[l].decimals),null===ZC._n_(i.o[q[l]]["thousands-separator"])&&null!==ZC._n_(V[l]["thousands-separator"])&&(i.o[q[l]]["thousands-separator"]=V[l]["thousands-separator"]),null===ZC._n_(i.o[q[l]]["decimals-separator"])&&null!==ZC._n_(V[l]["decimals-separator"])&&(i.o[q[l]]["decimals-separator"]=V[l]["decimals-separator"]),null===ZC._n_(i.o[q[l]].format)&&null!==ZC._n_(V[l].format)&&(i.o[q[l]].format=V[l].format));break;case"pie":case"pie3d":case"gauge":case"nestedpie":if(null===ZC._n_(i.o.scale)&&(i.o.scale={}),_&&null!==ZC._n_(S[0])){var re=S[0].split(/\\/);null===ZC._n_(i.o.scale.label)&&(i.o.scale.label={}),null===ZC._n_(i.o.scale.label.text)&&(i.o.scale.label.text=re[0])}for(_&&(null===ZC._n_(i.o.scale.values)?i.o.scale.values=G:null===ZC._n_(i.o.scale.labels)&&(i.o.scale.labels=G)),null===ZC._n_(i.o.series)&&(i.o.series=[]),l=0,r=U.length;l<r;l++)null===ZC._n_(i.o.series[l])&&(i.o.series[l]={}),i.o.series[l].values=U[l],f&&(null===ZC._n_(i.o.series[l].text)&&(i.o.series[l].text=S[l+P],T.push(S[l+P])),null===ZC._n_(i.o.series[l]["legend-text"])&&(i.o.series[l]["legend-text"]=S[l+P],T.push(S[l+P])),null===ZC._n_(i.o.series[l]["tooltip-text"])&&null!==ZC._n_(V[l].format)&&(i.o.series[l]["tooltip-text"]=V[l].format)),null===ZC._n_(i.o["scale-v"])&&(i.o["scale-v"]={}),null===ZC._n_(i.o["scale-v"].decimals)&&null!==ZC._n_(V[l].decimals)&&(i.o["scale-v"].decimals=V[l].decimals),null===ZC._n_(i.o["scale-v"]["thousands-separator"])&&null!==ZC._n_(V[l]["thousands-separator"])&&(i.o["scale-v"]["thousands-separator"]=V[l]["thousands-separator"]),null===ZC._n_(i.o["scale-v"]["decimals-separator"])&&null!==ZC._n_(V[l]["decimals-separator"])&&(i.o["scale-v"]["decimals-separator"]=V[l]["decimals-separator"]),null===ZC._n_(i.o["scale-v"].format)&&null!==ZC._n_(V[l].format)&&(i.o["scale-v"].format=V[l].format)}return""!==T.join("")&&null===ZC._n_(i.o.legend)&&(i.o.legend={}),i.o=JSON.parse(JSON.stringify(i.o).replace(/\\\\/g,"\\")),i.o}};ZC.A2O=ZC.C6.CD(A2O),ZC.JN=ZC.HU.CD({$i:function(e){this.b(e);var i=this;i.OJ="zcgraph",i.G=e,i.AEH=null,i.AEG=null,i.AEF=null,i.AEE=null,i.AF="",i.IM=null,i.NV="",i.JQ=null,i.MV=null,i.S9=null,i.P=null,i.B7=null,i.HO=null,i.HY=null,i.A5R=1,i.VK=1,i.A4J=1,i.L=0,i.HI=null,i.MH=[1,0],i.A9F=null,i.CG=!1,i.KT="normal",i.BO=[],i.BY=[],i.Y6=[],i.FI=[],i.L6=[],i.AY=new ZC.LQ(i),i.H6=null,i.BE=null,i.A7=null,i.CX=null,i.HF=null,i.A1A="always",i.ABH=!0,i.M7="",i.RL=null,i.KU=!1,i.UK=!1,i.NE=0,i.YJ=!1,i.Q8=!1,i.ES={true3d:1,angle:45,depth:40,"x-angle":0,"y-angle":0,"z-angle":0,zoom:1},i.AJ={"enable-guide":!1,"enable-preview":!1,"enable-scroll":!1,"enable-zooming":!0,"3d":!1,clip:!1,layout:"","enable-animation":!0,"angle-min":15,"angle-max":75,"x-angle-min":-65,"x-angle-max":65,"y-angle-min":-65,"y-angle-max":65,"z-angle-min":-65,"z-angle-max":65},i.OG=!1,i.ZE=!1,i.A9G=[],i.GG=!1,i.CF={},i.IY=[],i.KL=!1,i.HM=!1,i.LA=0,i.BP=[],i.A4Y=!0,i.UM=zingchart.DEV.STACKINGLOGIC,-1===i.UM&&(i.UM=0)},a11y:function(){if(this.A.bA11y){return ZC.Q.FP("poly","","")+'class="zc-graph-descriptor" tabindex="0" aria-label="Chart '+(this.L+1)+" of "+this.A.AG.length+", "+({vbar:"column",vbar3d:"3d column",hbar:"bar",hbar3d:"3d bar",line3d:"3d line",area3d:"3d area",pie3d:"3d pie"}[this.AF]||this.AF)+" chart. "+(this.IM?this.IM.AN:"Untitled")+". "+(this.JQ?this.JQ.AN:"")+". "+this.NV+'" id="'+this.K+'--graph" coords="0,0,1,0,1,1,0,1,0,0" data-coords="'+this.F1()+'" data-z-sort="-200" />'}return""},getPMap:function(){var e=this.b();return this.addPMap(e,"index","L"),e},getToggleAction:function(){var e,i=this,n="hide";return i.BE&&""!==i.E["legend-last-trigger"]&&"undefined"!=typeof i.E["legend-last-trigger"]?n="item"===i.E["legend-last-trigger"]?i.BE.R4:i.BE.PW:(i.o.legend&&(e=i.o.legend["toggle-action"])&&(n=e),i.o.legend&&i.o.legend.item&&(e=i.o.legend.item["toggle-action"])&&(n=e)),(i.A.KD||i.E["toggle-action-remove"])&&(n="remove"),n},BW:function(e,i){void 0===i&&(i=!1);for(var n=[],t=this,a=0,l=t.BO.length;a<l;a++)t.BO[a].AF===e&&(!i||i&&t.BO[a].V.length>0)&&n.push(t.BO[a]);return n},BM:function(e){for(var i=this,n=0,t=i.BO.length;n<t;n++)if(i.BO[n].BD===e)return i.BO[n];return null},A2P:function(e){return e},ACG:function(e){return new ZC.A2O(this,e)},ACN:function(){for(var e=this,i=0,n=e.BO.length;i<n;i++){var t=e.BO[i],a=t.BD;e.A.B6.load(t.o,["("+e.AF+").SCALE","("+e.AF+")."+a.replace(/\-[0-9]+/,""),"("+e.AF+")."+a.replace(/\-[0-9]+/,"-n"),"("+e.AF+")."+a],!1,!0);var l=a.replace(/\-[0-9]+/,"")+"-n";e.o[l]&&t.append(e.o[l]),e.o[a]&&t.append(e.o[a]),e.AJ["3d"]&&e.A.B6.load(t.o,["("+e.AF+").SCALE[3d]","("+e.AF+")."+a.replace(/\-[0-9]+/,"")+"[3d]","("+e.AF+")."+a.replace(/\-[0-9]+/,"-n")+"[3d]","("+e.AF+")."+a+"[3d]"],!1,!0),e.AJ["3d"]&&t.append(e.o[a+"[3d]"]),t.parse()}},ABF:function(){return null},AA1:function(e){var i,n,t,a=this,l=0,r=a.AY.A4.length;for(i=0;i<r;i++)l=ZC.BR(l,a.AY.A4[i].S.length);function o(e){return e=(e=(e=e.replace(/(%N|%node-count)/g,l)).replace(/(%P|%plot-count)/g,r)).replace(/(%S|%scale-values-count)/g,t.V.length)}for(i=0,n=a.BO.length;i<n;i++)(t=a.BO[i]).AA0(e),2===e&&(t.IQ=o,t.DG()&&t.parse()),null===ZC._n_(t.o["max-items"])&&null===ZC._n_(t.o["max-labels"])&&t.A8D(),null===ZC._n_(t.o["max-ticks"])&&t.ACA()},V7:function(){},O7:function(){},ADH:function(){},AC4:function(){},setupPlotArea:function(){var e=this,i=e.A.B6,n="("+e.AF+")";e.P=new ZC.HU(e),e.P.NY="plotarea",e.P.K=e.K+"-plotarea";var t=[n+".plotarea"];if(e.B7&&("xy"===e.AJ.layout?t.push(n+".plotarea[preview]"):t.push(n+".plotarea[preview[yx]]")),e.AJ["3d"]&&t.push(n+".plotarea[3d]"),i.load(e.P.o,t),e.P.append(e.o.chart),e.P.append(e.o.plotarea),e.B7&&e.P.append(e.o["plotarea[preview]"]),e.AJ["3d"]&&e.P.append(e.o["plotarea[3d]"]),"dynamic"===e.P.o["margin-top"]||"dynamic"===e.P.o["margin-right"]||"dynamic"===e.P.o["margin-bottom"]||"dynamic"===e.P.o["margin-left"]){var a=String(e.P.o.margin||"").split(/\s+|;|,/),l=a.length>0?a[0]:"",r=a.length>1?a[1]:"",o=a.length>0?a[2]||a[0]:"",A=a.length>1?a[3]||a[1]:"";"dynamic"===e.P.o["margin-top"]&&(l="dynamic"),"dynamic"===e.P.o["margin-right"]&&(r="dynamic"),"dynamic"===e.P.o["margin-bottom"]&&(o="dynamic"),"dynamic"===e.P.o["margin-left"]&&(A="dynamic"),e.P.o.margin=[l,r,o,A].join(" ")}if(e.E["plotarea-margins"]?e.P.o.margin=e.E["plotarea-margin"]:(e.E["plotarea-margins"]=!0,e.E["plotarea-margin"]=e.P.o.margin,e.E["plotarea-margin-top"]=e.P.o["margin-top"],e.E["plotarea-margin-right"]=e.P.o["margin-right"],e.E["plotarea-margin-bottom"]=e.P.o["margin-bottom"],e.E["plotarea-margin-left"]=e.P.o["margin-left"]),"undefined"!=typeof e.E["plotarea-p-x"]&&(e.P.E["p-x"]=e.E["plotarea-p-x"],e.P.E["p-y"]=e.E["plotarea-p-y"],e.P.E["p-width"]=e.E["plotarea-p-width"],e.P.E["p-height"]=e.E["plotarea-p-height"]),null!==ZC._n_(e.P.o["adjust-layout"])&&ZC._b_(e.P.o["adjust-layout"])&&(e.P.o.margin="dynamic"),e.P.parse(),e.AJ["3d"]&&!e.ES.true3d){var C=ZC._a_(ZC._i_(e.ES.depth*ZC.EL(e.ES.angle)));e.P.iY+=C,e.P.F-=C,e.P.I-=ZC._i_(e.ES.depth*ZC.EF(e.ES.angle))}if("undefined"!=typeof e.E["plotarea-p-x"])for(var s=0,u=e.BO.length;s<u;s++)e.BO[s].A5E(),e.BO[s].J6()},setupDynamicPlotArea:function(){var e,i,n,t=this,a=["top","right","bottom","left"],l={};for(i=0;i<a.length;i++)l[a[i]]=!1,t.E["plotarea.d-margin-"+a[i]]&&(t.o.plotarea["margin-"+a[i]]=null),t.o.plotarea&&"dynamic"===t.o.plotarea["margin-"+a[i]]&&(l[a[i]]=!0,t.o.plotarea["margin-"+a[i]]="20");var r=!1,o={};if("xy"===t.AJ.layout&&(r=!0),("xy"===t.AJ.layout||"yx"===t.AJ.layout)&&(t.P.E["d-margin"]||t.E["plotarea.d-margin"])){for(var A=0,C=t.BO.length;A<C;A++){var s=0,u=0,Z="",c=t.BO[A];if(c.AP&&c.TF){"k"===c.AF?Z=c.CM?"default"===c.BA?"left":"right":"default"===c.BA?"bottom":"top":"v"===c.AF&&(Z=c.CM?"default"===c.BA?"bottom":"top":"default"===c.BA?"left":"right");var p=0;if(t.P.E["d-margin-"+Z]||t.E["plotarea.d-margin-"+Z]){var h=new ZC.DQ(c);h.copy(c.BQ);var f=ZC.BR(1,ZC._i_((c.A1-c.W)/c.EJ));for(i=c.W;i<=c.A1;i+=f)if(h.AN=c.FT(i),h.A24&&("k"===c.AF&&!c.CM||"v"===c.AF&&c.CM)&&(h.o.width=ZC._i_(.9*c.AD)),h.parse(),h.AP)if(u=ZC.BR(u,h.AA%180==0?h.F:h.I),s=ZC.BR(s,h.AA%180==0?h.I:h.F),p=ZC.BR(p,1.5*h.DI*(h.AN||"").split(/<br>|<br\/>|<br \/>|\n/).length),"top"===Z||"bottom"===Z){if(p=ZC.BR(p,.465*h.DI+1.025*ZC._a_(ZC.EL(h.AA))*ZC.BR(h.I,h.F)),s=h.I,u=p,r&&"k"===c.AF){o[c.BD]||(o[c.BD]=[]);var _=null===ZC._n_(h.o["auto-align"])||ZC._b_(h.o["auto-align"]),d=.465*h.DI+1.025*ZC._a_(ZC.EF(h.AA))*ZC.BR(h.I,h.F);"default"===c.BA?(_&&(ZC.DS(ZC._ang_(h.AA),90,180)||ZC.DS(ZC._ang_(h.AA),270,360))&&o[c.BD].push(d),_||o[c.BD].push(d/2)):(_&&(ZC.DS(ZC._ang_(h.AA),0,90)||ZC.DS(ZC._ang_(h.AA),180,270))&&o[c.BD].push(d),_||o[c.BD].push(d/2))}}else h.AA%360!=0&&(s=p=ZC.BR(p,.465*h.DI+1.025*ZC._a_(ZC.EF(h.AA))*ZC.BR(h.I,h.F))),u=h.F;var g=new ZC.DQ(c);g.copy(c.M),g.AN=c.M.AN,g.parse(),""!==g.AN&&g.AP&&(u+=g.AA%180==0?g.F:g.I,s+=g.AA%180==0?g.I:g.F)}if(t.o.plotarea||(t.o.plotarea={}),("dynamic"===t.o.plotarea["margin-"+Z]||t.P.E["d-margin-"+Z])&&(t.P.E["d-margin-"+Z]=!1,l[Z]=!0,t.o.plotarea["margin-"+Z]="0"),l[Z]){t.o.plotarea["margin-"+Z]=ZC._f_(t.o.plotarea["margin-"+Z]||"0"),t.E[c.BD+"-distance"]=t.o.plotarea["margin-"+Z];var v=("top"===Z||"bottom"===Z?ZC._i_(u):ZC._i_(s))+10+(t.AJ["3d"]?20:0);c.VG?t.o.plotarea["margin-"+Z]=ZC.BR(t.o.plotarea["margin-"+Z],v):t.o.plotarea["margin-"+Z]+=v,null!==ZC._n_(t.o.plotarea["margin-"+Z+"-offset"])&&(t.o.plotarea["margin-"+Z]+=ZC._i_(t.o.plotarea["margin-"+Z+"-offset"]));if(!t.A.TM){var B={},E=t.A.DJ.watermark;t.A.B6.load(B,"loader.gui.watermark"),E&&ZC._cp_(E,B),1===t.A.o.graphset.length&&t.A.o.graphset[0].gui&&(e=t.A.o.graphset[0].gui.watermark)&&ZC._cp_(e,B);var b=B.position||"br";-1===ZC.AV(["tl","tr","br","bl"],b)&&(b="br"),("bottom"!==Z||"bl"!==b&&"br"!==b)&&("top"!==Z||"tl"!==b&&"tr"!==b)||(t.o.plotarea["margin-"+Z]+=15)}"bottom"===Z&&("xy"===t.AJ.layout&&t.HO||"yx"===t.AJ.layout&&t.HY)&&(t.o.plotarea["margin-"+Z]+=15),"left"===Z&&("xy"===t.AJ.layout&&t.HY||"yx"===t.AJ.layout&&t.HO)&&(t.o.plotarea["margin-"+Z]+=15),t.E["plotarea.d-margin-"+Z]=!0}}}if(r&&l.left&&null!==ZC._n_(t.o.plotarea["margin-left"]))for(var D in o){var F=t.BM(D);for(i=0;i<o[D].length;i++){ZC._i_(t.o.plotarea["margin-left"])+i*F.AD+(F.DE?F.AD/2:0)-o[D][i]<0&&(t.o.plotarea["margin-left"]=o[D][i]-i*F.AD-(F.DE?F.AD/2:0))}}ZC.Q.IW(ZC.AL(t.K+"-plotarea-c"),t.G.AB,t.P.iX,t.P.iY,t.P.I,t.P.F,t.K),t.E["plotarea.paint"]=!0,t.setupPlotArea()}for(i=0,n=t.BO.length;i<n;i++)t.BO[i].A5E(),t.BO[i].J6()},parse:function(){var e,i,n,t,a,l=this,r=l.A.B6,o="("+l.AF+")";(e=l.A.E["graph-state-"+l.L])&&(l.E=JSON.parse(e),null===ZC._n_(l.E["guide-on"])||ZC._b_(l.E["guide-on"])||(l.A1F=!1)),l.E.legend_toggle_action||(l.A.E["graph-"+l.K+"-legend-info"]=null),l.E.legend_toggle_action=null,l.M7="parse.init",l.b(),l.DH="box",l.ADH(),-1!==JSON.stringify(l.o).indexOf("zingchart.maps")&&(l.o.plotarea=l.o.plotarea||{},l.o.plotarea.margin=0);var A=null;if(!zingchart.SKIP.CSV&&((e=l.o["html5-csv"])&&(l.RL=e["html5-url"]),(e=l.o.csv)&&("object"==typeof e?e.url?l.RL=e.url:e["data-string"]&&(A=e["data-string"]):l.RL=e),""!==l.RL&&null!==ZC._n_(l.A.A9D[l.RL])&&(A=l.A.A9D[l.RL]),l.G.NT&&(A=l.G.NT),A)){var C=l.ACG(A);l.o=C.parse()}if(l.KU=zingchart.ASYNC,l.assign_a([["utc","UK","b"],["timezone","NE","f"],["async","KU","b"],["stacked","CG","b"],["stack-type","KT"],["animate-type","A1A"],["url-data","A9F"],["page","LA","i"],["palette","BP"],["sort-objects","A4Y","b"],["description","NV"]]),l.BP.length>0)for(r.B6.palette=[],t=0;t<l.BP.length;t++){var s=l.BP[t],u=ZC.AO.JR(l.BP[t],10),Z=ZC.AO.PP(l.BP[t],10);r.B6.palette.push(["#fff",s,u,Z])}"pie3d"===l.AF&&(l.ES.true3d=!0),(l.AJ["3d"]||l.A.ZA)&&(l.KU=!1),-1===ZC.AV(l.G.KQ,"skip_interactivity")&&((null!==ZC._n_(e=l.o.preview)||r.PU("preview",l.AF))&&l.AJ["enable-preview"]&&(l.B7&&!l.E["force-preview-parse"]||"undefined"==typeof ZC.A2D||(l.E["force-preview-parse"]=!1,l.B7=new ZC.A2D(l),l.B7.NY="preview",r.load(l.B7.o,o+".preview"),"yx"===l.AJ.layout&&r.load(l.B7.o,o+".preview[yx]"),(i=l.o.plotarea)&&l.B7.append({"background-color":i["background-color"],"background-color-1":i["background-color-1"],"background-color-2":i["background-color-2"],"gradient-stops":i["gradient-stops"],"gradient-colors":i["gradient-colors"]}),l.B7.append(e),l.B7.parse())),(null!==ZC._n_(e=l.o["scroll-x"])||r.PU("scroll-x",l.AF))&&l.AJ["enable-scroll"]&&(l.HO||"undefined"==typeof ZC.ZQ||(l.HO=new ZC.ZQ(l,"x"),l.HO.NY="scrollx",r.load(l.HO.o,o+".scroll-x"),l.HO.append(e),l.HO.parse())),(null!==ZC._n_(e=l.o["scroll-y"])||r.PU("scroll-y",l.AF))&&l.AJ["enable-scroll"]&&(l.HY||"undefined"==typeof ZC.ZQ||(l.HY=new ZC.ZQ(l,"y"),l.HY.NY="scrolly",r.load(l.HY.o,o+".scroll-y"),l.HY.append(e),l.HY.parse()))),l.setupPlotArea(),l.O7(),l.BO=[],l.ACN(),l.AA1(1),null!==ZC._n_(e=l.o.series)&&(l.AY.o=e);var c=l.AY.o;for(t=0;t<c.length;t++)if(c[t].rel)for(a=0;a<c.length;a++)c[a].id&&c[a].id===c[t].rel&&(l.AY.o[t].values=[].concat(l.AY.o[a].values));if(l.AY.parse(),l.AA1(2),(null!==ZC._n_(e=l.o.title)||r.PU("title",l.AF))&&(l.IM=new ZC.DQ(l),l.IM.NY="title",r.load(l.IM.o,o+".title"),l.IM.append(e),l.IM.K=l.K+"-title",l.IM.KD=!0,l.IM.parse(),null===ZC._n_(l.IM.o.x))){var p=l.iX,h=l.I;switch("plotarea"===l.IM.o["center-point"]&&(p=l.P.iX,h=l.P.I),l.IM.OF){case"left":l.IM.iX=p;break;case"center":l.IM.iX=p+h/2-l.IM.I/2;break;case"right":l.IM.iX=p+h-l.IM.I}}(null!==ZC._n_(e=l.o.subtitle)||r.PU("subtitle",l.AF))&&(l.JQ=new ZC.DQ(l),l.JQ.NY="subtitle",r.load(l.JQ.o,o+".subtitle"),l.JQ.append(e),l.JQ.K=l.K+"-subtitle",l.JQ.parse()),null!==ZC._n_(e=l.o.source)&&(l.MV=new ZC.DQ(l),l.MV.NY="source",r.load(l.MV.o,o+".source"),l.MV.append(e),l.MV.K=l.K+"-source",l.MV.parse()),"undefined"!=typeof ZC.V5&&(null!==ZC._n_(e=l.o.legend)||r.PU("legend",l.AF))&&(l.BE=new ZC.V5(l),l.BE.K=l.K+"-legend","undefined"!=typeof e.alpha&&e.alpha<.1&&"undefined"==typeof e["border-width"]&&"undefined"==typeof e["border-alpha"]&&(e["border-alpha"]=e.alpha),r.load(l.BE.o,o+".legend"),l.BE.alignPosition(e),(null!==ZC._n_(e)&&null!==ZC._n_(e.position)||null!==ZC._n_(l.BE.o.position))&&r.load(l.BE.o,o+".legend[position]"),l.BE.append(e),ZC._b_(l.BE.o.shared)&&(l.BE.E["p-x"]=l.A.iX,l.BE.E["p-y"]=l.A.iY,l.BE.E["p-width"]=l.A.I,l.BE.E["p-height"]=l.A.F),l.BE.alignPosition(e),l.BE.parse());var f=!1,_=l.iX,d=l.iY,g=l.I,v=l.F,B="";if(n=d,l.IM&&l.IM.AP&&l.IM.o["adjust-layout"]&&(f=!0,(n=l.IM.iY+l.IM.F/2)<d+v/2&&(B="top",v=d+v-l.IM.F-l.IM.iY,d=l.IM.iY+l.IM.F)),l.JQ&&l.JQ.AP&&l.JQ.o["adjust-layout"]){f=!0,l.IM&&l.IM.AP||(l.JQ.iY-=20);var E=l.JQ.iY+l.JQ.F/2;E<d+v/2&&E>n&&(v-=l.JQ.F,d+=l.JQ.F)}if(l.MV&&l.MV.AP&&l.MV.o["adjust-layout"]&&(f=!0,(n=l.MV.iY+l.MV.F/2)>d+v/2&&(v-=l.MV.F)),l.B7&&l.B7.AP&&l.B7.o["adjust-layout"]&&(f=!0,"xy"===l.AJ.layout?(n=l.B7.AT.iY+l.B7.AT.F/2)>d+v/2?v-=l.B7.AT.F+l.B7.AT.DW:(d=l.B7.AT.iY+l.B7.AT.F,v-=l.B7.AT.F):(p=l.B7.AT.iX+l.B7.AT.I/2)<_+g/2?(g-=l.B7.AT.I+l.B7.AT.E0,_+=l.B7.AT.I+l.B7.AT.E0):(_=l.B7.AT.iX+l.B7.AT.I,g-=l.B7.AT.I)),l.BE&&l.BE.AP&&l.BE.o["adjust-layout"]){f=!0;var b=l.BE.D6&&l.BE.D6.enabled?15:5;if("top"===B&&l.BE.iY<l.IM.iY+l.IM.F+5){if(null!==ZC._n_(l.BE.o.position)){var D=(""+l.BE.o.position).split(" ");l.BE.o.position=D[0]+" "+(l.IM.iY-l.iY+l.IM.F+l.BE.MI+b)}else l.BE.o["margin-top"]=l.IM.iY-l.iY+l.IM.F+l.BE.MI;l.BE.parse()}l.BE.fixPlacement(),n=l.BE.iY+l.BE.F/2;var F="",m=(ZC.MAX,l.BE.E["position-info"]),Y={Bottom:l.BE.iY-l.iY,Top:l.iY+l.F-l.BE.iY-l.BE.F,Right:l.BE.iX-l.iX,Left:l.iX+l.I-l.BE.iX-l.BE.I},M="";if(l.BE.I/l.BE.F>2)M="v";else if(l.BE.F/l.BE.I>2)M="h";else{M=Math.max(Y.Left*l.F,Y.Right*l.F)/Math.max(Y.Top*l.I,Y.Bottom*l.I)>1?"h":"v"}if(m)m[0]>=.8?F=m[1]<=.2?"v"===M?"top":"right":m[1]>=.8&&"v"===M?"bottom":"right":m[0]<=.2?F=m[1]<=.2?"v"===M?"top":"left":m[1]>=.8&&"v"===M?"bottom":"left":m[1]<=.2?F="top":m[1]>=.8&&(F="bottom");else Math.min(Y.Top,Y.Bottom)/Math.max(Y.Top,Y.Bottom)<Math.min(Y.Left,Y.Right)/Math.max(Y.Left,Y.Right)?Y.Top>Y.Bottom?(F="top",l.BE.EB):(F="bottom",l.BE.DW):Y.Left>Y.Right?(F="left",l.BE.E0):(F="right",l.BE.EA);var I=0;"top"===F&&(v=d+v-l.BE.F-l.BE.iY,d=l.BE.iY+l.BE.F),"bottom"===F&&(v-=I=v-l.BE.iY+d+l.BE.FJ+l.BE.FX),"left"===F&&(_+=I=l.BE.iX-l.iX+l.BE.I,g-=I),"right"===F&&(g-=I=g-(l.BE.iX-l.iX)+l.BE.ER+l.BE.FO)}else l.BE&&l.BE.fixPlacement();f&&(l.E["plotarea-p-x"]=_,l.E["plotarea-p-y"]=d,l.E["plotarea-p-width"]=g,l.E["plotarea-p-height"]=v,l.setupPlotArea()),l.setupDynamicPlotArea(),l.AY.parseLayout&&l.AY.parseLayout(!0),l.B7&&l.B7.o["adjust-layout"]&&("xy"===l.AJ.layout?(null===ZC._n_(l.B7.J2.x)&&(l.B7.AT.iX=l.P.iX),null===ZC._n_(l.B7.J2.width)&&(l.B7.AT.I=l.P.I)):(null===ZC._n_(l.B7.J2.y)&&(l.B7.AT.iY=l.P.iY),null===ZC._n_(l.B7.J2.height)&&(l.B7.AT.F=l.P.F)));var K=0;for(t=0;t<l.AY.A4.length;t++)K+=l.AY.A4[t].S.length;null!==ZC._n_(e=l.o["no-data"])&&0===K?(l.S9=new ZC.DQ(l),l.S9.NY="nodata",r.load(l.S9.o,o+".no-data"),l.S9.append({x:l.P.iX,y:l.P.iY,width:l.P.I,height:l.P.F}),l.S9.append(e),l.S9.K=l.K+"-nodata",l.S9.parse()):l.S9=null,l.E["plotarea-margins"]&&(l.E["plotarea-margins"]=null,l.o.plotarea=l.o.plotarea||{},l.o.plotarea.margin=l.E["plotarea-margin"],l.o.plotarea["margin-top"]=l.E["plotarea-margin-top"],l.o.plotarea["margin-right"]=l.E["plotarea-margin-right"],l.o.plotarea["margin-bottom"]=l.E["plotarea-margin-bottom"],l.o.plotarea["margin-left"]=l.E["plotarea-margin-left"]);var X=["top","right","bottom","left"];for(t=0;t<X.length;t++)l.E["plotarea.d-margin-"+X[t]]=null;l.E.datalength=null,-1===ZC.AV(l.G.KQ,"skip_interactivity")&&(l.H6=new ZC.HU(l),l.H6.K=l.K+"-zoom",r.load(l.H6.o,o+".zoom"),l.H6.append(l.o.zoom),l.A7=new ZC.DQ(l),l.A7.NY="tooltip",l.o.tooltip&&l.o.tooltip.placement&&l.o.tooltip.placement.indexOf("node")>-1?r.load(l.A7.o,o+".tooltip[dynamic]"):r.load(l.A7.o,o+".tooltip"),l.A7.append(l.o.tooltip),l.A7.PZ=!0,l.A7.parse()),l.P3(),ZC.AO.C0("gparse",l.A,l.H2()),null!==ZC._n_(e=l.o.refresh)&&(l.HI={type:"full",interval:10,transport:"http",method:"pull","adjust-scale":!1,"max-ticks":20,"reset-timeout":100,"stop-timeout":0,storage:!1,"storage-size":1e3},ZC._cp_(e,l.HI),l.UM=1),l.M7="parse.complete"},P3:function(){},Q6:function(){},MD:function(e,i,n){var t=this,a=(n=n||t.P).iX,l=n.iY,r=n.I,o=n.F;if("svg"===i){if(t.AJ["3d"]){var A,C=[];e=1;var s,u,Z,c,p=[],h=a-ZC.AM.E1,f=l-ZC.AM.E2;A=new ZC.CE(t,h+r/2-e,f-e,ZC.AM.FE),c=ZC._i_(A.EC[1]),A=new ZC.CE(t,h+r/2-e,f-e,0),Z=ZC._i_(A.EC[1]),p.push(new ZC.CE(t,h-e,f-e,c<Z?ZC.AM.FE:0),new ZC.CE(t,h+r+e,f-e,c<Z?ZC.AM.FE:0)),A=new ZC.CE(t,h+r-e,f+o/2-e,ZC.AM.FE),s=ZC._i_(A.EC[0]),A=new ZC.CE(t,h+r-e,f+o/2-e,0),u=ZC._i_(A.EC[0]),p.push(new ZC.CE(t,h+r+e,f-e,s>u?ZC.AM.FE:0),new ZC.CE(t,h+r+e,f+o+e,s>u?ZC.AM.FE:0)),A=new ZC.CE(t,h+r/2-e,f+o+e,ZC.AM.FE),c=ZC._i_(A.EC[1]),A=new ZC.CE(t,h+r/2-e,f+o+e,0),Z=ZC._i_(A.EC[1]),p.push(new ZC.CE(t,h+r+e,f+o+e,c>Z?ZC.AM.FE:0),new ZC.CE(t,h-e,f+o+e,c>Z?ZC.AM.FE:0)),A=new ZC.CE(t,h-e,f+o/2-e,ZC.AM.FE),s=ZC._i_(A.EC[0]),A=new ZC.CE(t,h-e,f+o/2-e,0),u=ZC._i_(A.EC[0]),p.push(new ZC.CE(t,h-e,f+o+e,s<u?ZC.AM.FE:0),new ZC.CE(t,h-e,f-e,s<u?ZC.AM.FE:0)),p.push(p[0]);for(var _=0;_<p.length;_++)A=p[_],C.push([ZC._i_(A.EC[0]),ZC._i_(A.EC[1])].join(","));return C.join(" ")}return[[a-e,l-e].join(","),[a+r+e,l-e].join(","),[a+r+e,l+o+e].join(","),[a-e,l+o+e].join(","),[a-e,l-e].join(",")].join(" ")}return"box"===i?a-e+","+(l-e)+","+(r+2*e)+","+(o+2*e):(t.AJ["3d"]&&(e+=10),"rect("+(l-e)+"px,"+(a+r+e)+"px,"+(l+o+e)+"px,"+(a-e)+"px)")},autoFit:function(){var e,i=this;if(i.AJ["3d"]&&i.ES["auto-fit"]){var n=!1;for(i.ES.zoom=1;!n&&i.ES.zoom>.25;){n=!0;var t=i.MD(0,"svg").split(" ");for(e=0;e<t.length;e++){var a=t[e].split(",");(ZC._i_(a[0])<i.iX+i.P.E0||ZC._i_(a[0])>i.iX+i.I-i.P.EA||ZC._i_(a[1])<i.iY+i.P.EB||ZC._i_(a[1])>i.iY+i.F-i.P.DW)&&(n=!1)}n||(i.ES.zoom-=.05),n&&(i.ES.zoom-=.025)}}},build:function(){var e=this;if(e.Z=e.G.Z,2===zingchart.DEV.CANVASVERSION){var{createCanvas:i,Canvas:n}=require("canvas");e.AEH=i(e.A.I,e.A.F),e.AEG=i(e.A.I,e.A.F),e.AEF=i(e.A.I,e.A.F),e.AEE=i(e.A.I,e.A.F)}else{var t=require("canvas");e.AEH=new t(e.A.I,e.A.F),e.AEG=new t(e.A.I,e.A.F),e.AEF=new t(e.A.I,e.A.F),e.AEE=new t(e.A.I,e.A.F)}},initObjectsLayers:function(){var e=this,i=e.A.I+"/"+e.A.F;!ZC.AL(e.K+"-objects-bottom")&&e.A.O1["objects-bottom"]&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.K6({cls:"zc-abs",wh:i,id:e.K+"-objects-bottom",p:ZC.AL(e.A.K+"-objects-bottom")},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-bottom-sh-c",p:ZC.AL(e.K+"-objects-bottom"),wh:i},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-bottom-c",p:ZC.AL(e.K+"-objects-bottom"),wh:i},e.A.AB)),!ZC.AL(e.K+"-objects-top")&&e.A.O1["objects-top"]&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.K6({cls:"zc-abs",wh:i,id:e.K+"-objects-top",p:ZC.AL(e.A.K+"-objects-top")},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-top-sh-c",p:ZC.AL(e.K+"-objects-top"),wh:i},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-top-c",p:ZC.AL(e.K+"-objects-top"),wh:i},e.A.AB)),(e.A.O1["objects-bottom"]||e.A.O1["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows)&&ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-print-c",p:ZC.AL(e.K+"-objects-top"),wh:i,display:"none"},e.A.AB),!ZC.AL(e.K+"-objects-click")&&(e.A.O1["objects-bottom"]||e.A.O1["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.K6({cls:"zc-abs",wh:i,id:e.K+"-objects-click",p:ZC.AL(e.A.K+"-hover")},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-click-c",p:ZC.AL(e.K+"-objects-click"),wh:i},e.A.AB)),!ZC.AL(e.K+"-objects-hover")&&(e.A.O1["objects-bottom"]||e.A.O1["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.K6({cls:"zc-abs",wh:i,id:e.K+"-objects-hover",p:ZC.AL(e.A.K+"-hover")},e.A.AB),ZC.Q.HL({cls:"zc-abs zc-layer",id:e.K+"-objects-hover-c",p:ZC.AL(e.K+"-objects-hover"),wh:i},e.A.AB))},A0P:function(){},clear_:function(){},destroy:function(){},clear:function(e,i){},unbind:function(e,i){},AC8:function(){},SI:function(){},R3:function(){},KM:function(){},SM:function(){},S5:function(){},LN:function(e,i){},hideLayer_:function(){},A71:function(e,i){},paint:function(e){null===ZC._n_(e)&&(e=!1);var i,n,t,a,l,r,o=this;o.A.GRAPHID=o.K,o.UZ=e,o.A.clearLabelBoxes("vb"+o.L);var A,C,s,u,Z,c,p,h=o.BW("k")[0],f=ZC.MAX,_=-ZC.MAX,d={},g=o.AY.A4,v=0;for(u=0;u<g.length;u++)if(g[u].o.rel)for(s=0;s<g.length;s++)if(g[s].o.id&&g[s].o.id===g[u].o.rel){v++,p=!0;var B=[];for(l=0;l<g[s].S.length;l++)(h.EI?g[s].S[l].BV>=h.B0&&g[s].S[l].BV<=h.BF:g[s].S[l].L>=h.W&&g[s].S[l].L<=h.A1)?(A=g[s].S[l].AC,f=Math.min(f,A),_=Math.max(_,A),p?(p=!1,g[s].S[l].BV?B.push([g[s].S[l].BV,0]):B.push(0),c=A):g[s].S[l].BV?B.push([g[s].S[l].BV,100*(A-c)/c]):B.push(100*(A-c)/c)):g[s].S[l].BV?B.push([g[s].S[l].BV,0]):B.push(0);d["p-"+u]=[].concat(B)}if(v>0){for(f=ZC.MAX,_=-ZC.MAX,u=0;u<g.length;u++)if(g[u].o.rel&&d["p-"+u])for(l=0;l<g[u].S.length;l++)2===(C=d["p-"+u][l]).length?(A=C[1],g[u].V[l]=C,g[u].S[l].AC=g[u].S[l].CR=C[1]):(A=C,g[u].V[l]=g[u].S[l].AC=g[u].S[l].CR=C),g[u].FM(l),f=Math.min(f,A),_=Math.max(_,A);var E=o.BW("v")[0];E.QN(f,_,!0),E.J6()}for(o.A.E["g-"+o.L+"-selection"]&&(o.CF=JSON.parse(o.A.E["g-"+o.L+"-selection"])),o.KL=!1,n=0,t=o.AY.A4.length;n<t;n++)o.IY[n]=!1;for(n in o.CF)if(o.CF.hasOwnProperty(n)){var b=ZC._i_(n.replace("p",""));for(Z in o.CF[n])if(o.CF[n].hasOwnProperty(Z)){o.IY[b]=!0,o.KL=!0;break}}function D(){if(o.AJ["3d"]){var e=ZC.DL.DD(o.P,o,o.P.iX-ZC.AM.E1,o.P.iX-ZC.AM.E1+o.P.I,o.P.iY-ZC.AM.E2,o.P.iY-ZC.AM.E2+o.P.F,ZC.AM.FE+10,ZC.AM.FE+10,"y"),n=ZC.DL.DD(o.P,o,o.P.iX-ZC.AM.E1,o.P.iX-ZC.AM.E1+o.P.I,o.P.iY-ZC.AM.E2,o.P.iY-ZC.AM.E2+o.P.F,ZC.AM.FE,ZC.AM.FE,"y");n.K=o.K+"-plotarea",n.PD=e.D,o.CN.add(n)}else{o.P.Z=o.P.C8=o.Z;var t,a=[o.P.iX,o.P.iY,o.P.I,o.P.F],l=o.P.AU,r=o.P.AU,A=o.P.AU,C=o.P.AU;""!==(i=o.P.Q1)&&(t=i.split(/\s/),l=ZC._i_(t[0])),""!==(i=o.P.OO)&&(t=i.split(/\s/),r=ZC._i_(t[0])),""!==(i=o.P.NQ)&&(t=i.split(/\s/),A=ZC._i_(t[0])),""!==(i=o.P.PE)&&(t=i.split(/\s/),C=ZC._i_(t[0])),o.P.iX-=C+1,o.P.iY-=l+1,o.P.I+=C+r+1,o.P.F+=l+A+1,o.P.paint(),o.P.iX=a[0],o.P.iY=a[1],o.P.I=a[2],o.P.F=a[3]}}if(o.A.A0O(),o.O7(),o.UZ?o.E["plotarea.paint"]&&(D(),o.E["plotarea.paint"]=null):(o.build(),o.Z&&(o.C8=o.Z,o.b()),D()),"xy"===o.AJ.layout||"yx"===o.AJ.layout){var F=o.BW("v"),m=null;for(l=0;l<F.length;l++)(0===l||F[l].o["ref-zero"])&&F[l].FQ<=0&&F[l].GW>=0&&F[l].TF&&(m=l);if(null!==ZC._n_(m)){var Y=F[m].AR(0);for(l=0;l<F.length;l++)if(l!==m&&F[l].o["sync-zero"]&&F[l].FQ<=0&&F[l].GW>=0&&F[l].TF){var M=F[l].AR(0);if(ZC._a_(M-Y)>=1)for(var I=!0,K=0;I;)M>Y?F[l].CM?F[l].AW?F[l].A9+=1:F[l].BU+=1:F[l].AW?F[l].BU+=1:F[l].A9+=1:F[l].CM?F[l].AW?F[l].BU+=1:F[l].A9+=1:F[l].AW?F[l].A9+=1:F[l].BU+=1,K++,F[l].J6(),F[l].A8D(),(K>(F[l].CM?o.P.I:o.P.F)||ZC._a_(F[l].AR(0)-Y)<1)&&(I=!1)}}}for(l=0,r=o.BO.length;l<r;l++)o.BO[l].Z=o.BO[l].C8=o.Z,o.BO[l].paint();var X="undefined"!=typeof o.E["shared-zoom"]&&null!==ZC._n_(o.E["shared-zoom"])&&o.E["shared-zoom"];o.B7&&o.B7.KU?o.B7.I3&&(o.B7.I3=!0,o.B7.paint()):o.E["skip-preview"]||!o.B7||o.UZ&&!o.B7.I3||X||(o.B7.I3=!0,o.B7.paint()),o.E["shared-zoom"]=null,o.E["skip-preview"]=null,o.HO&&o.HO.paint(),o.HY&&o.HY.paint(),o.UZ||(a=o.AEE,o.IM&&o.IM.AP&&null!==ZC._n_(o.IM.AN)&&(o.IM.Z=o.IM.C8=a,o.IM.paint(),!o.IM.KD&&ZC.AL(o.A.K+"-map")&&(ZC.AL(o.A.K+"-map").innerHTML+=ZC.AO.OB(o.G.K,o.K,o.IM))),o.JQ&&o.JQ.AP&&null!==ZC._n_(o.JQ.AN)&&(o.JQ.Z=o.JQ.C8=a,o.JQ.paint(),!o.JQ.KD&&ZC.AL(o.A.K+"-map")&&(ZC.AL(o.A.K+"-map").innerHTML+=ZC.AO.OB(o.G.K,o.K,o.JQ))),o.MV&&o.MV.AP&&null!==ZC._n_(o.MV.AN)&&(o.MV.Z=o.MV.C8=a,o.MV.paint(),!o.MV.KD&&ZC.AL(o.A.K+"-map")&&(ZC.AL(o.A.K+"-map").innerHTML+=ZC.AO.OB(o.G.K,o.K,o.MV))),o.S9&&o.S9.AP&&null!==ZC._n_(o.S9.AN)&&(o.S9.Z=o.S9.C8=a,o.S9.paint())),o.IM&&o.IM.EO(),o.JQ&&o.JQ.EO(),o.MV&&o.MV.EO(),o.G.paintHistory(),o.AJ.clip&&(ZC.BOUNDS=[o.P.iX-5,o.P.iY-5,o.P.iX+o.P.I+10,o.P.iY+o.P.F+10]),o.AY.paint(),o.AJ["3d"]||o.ACQ(),ZC.BOUNDS=[]},ACQ:function(){},clearPreview:function(){var e=this;e.B7&&(ZC.Q.IW(ZC.AL(e.K+"-preview-c"),e.A.AB,e.iX,e.iY,e.I,e.F,e.K),e.A.H6&&!e.A.H6.A0D&&e.B7.reset(),e.B7.I3=!0)},flatten:function(){var e,i=this;(e=i.A.Z.getContext("2d")).drawImage(i.AEH,0,0,i.A.I,i.A.F,0,0,i.A.I,i.A.F),e.drawImage(i.AEG,0,0,i.A.I,i.A.F,0,0,i.A.I,i.A.F),e.drawImage(i.AEF,0,0,i.A.I,i.A.F,0,0,i.A.I,i.A.F),e.drawImage(i.AEE,0,0,i.A.I,i.A.F,0,0,i.A.I,i.A.F)},_end_:function(){var e,i,n,t,a=this;for(a.E["toggle-action-remove"]=null,a.GG||a.A.ZY(),a.A.OC=!1,(a.KU||!a.GG||a.G.E["graph."+a.K+".disableanimation"]||!a.AJ["enable-animation"]||-1!==ZC.AV(a.G.KQ,"skip_interactivity")||zingchart.SKIP.ANIMATION)&&(a.M7="ready"),"initial"===a.A1A&&(a.ABH=!1,a.G.E["graph."+a.K+".disableanimation"]=!0),i=0,n=a.BO.length;i<n;i++)a.BO[i].paint_();if(!a.A.E["fire-load"]){var l=ZC.AO.C0("objectsinit",a.A,a.H2(),!0);if(l)for(var r=["labels","shapes","imges","arrows"],o=0;o<r.length;o++)l[r[o]]&&(a.o[r[o]]=(a.o[r[o]]||[]).concat(l[r[o]]))}if(ZC.BOUNDS=[],a.AJ["3d"]||(a.flatten(),a.Q6(),a.KM(),-1===ZC.AV(a.G.KQ,"skip_interactivity")&&a.S5()),a.A.E["tr-ev-"+a.L]?(a.A.E["tr-ev-"+a.L]=null,a.A8H()):a.A8H(),a.ZE){a.ZE=!1;var A={graphid:a.K};for(i=0,n=a.BW("k").length;i<n;i++){var C=a.BW("k")[i];null!==ZC._n_(e=C.KO)&&(A["zoomx"+(t=1===C.L?"":"-"+C.L)]=!0,A["xmin"+t]=e[0],A["xmax"+t]=e[1])}for(i=0,n=a.BW("v").length;i<n;i++){var s=a.BW("v")[i];null!==ZC._n_(e=s.KO)&&(A["zoomy"+(t=1===s.L?"":"-"+s.L)]=!0,A["ymin"+t]=e[0],A["ymax"+t]=e[1])}A.zoomto=!0,a.A.Q5(A)}},AC1:function(){},A8H:function(){var e=this;if(ZC["g"+e.L+"-events"]=ZC["g"+e.L+"-events"]||1,1===ZC["g"+e.L+"-events"]&&(ZC["g"+e.L+"-events"]++,e.A.A20<e.A.AG.length&&(e.A.A20++,ZC.AO.C0("gload",e.A,e.H2())),ZC.AO.C0("gcomplete",e.A,e.H2())),e.B7&&(e.B7.I3=!1),zingchart.NODE_EV&&zingchart.NODE_EV_CHART&&zingchart.NODE_EV_CHART===e.A.K){var i=ZC.A3("#"+e.A.K+"-top"),n=ZC.E5[0]-i.offset().left,t=ZC.E5[1]-i.offset().top,a=zingchart.exec(e.A.K,"getxyinfo",{x:n,y:t});if(a)for(var l=0;l<a.length;l++)if("node"===a[l].infotype&&a[l].xydistance<10){var r=a[l].graphid+"-plotset-plot-"+a[l].plotidx+"-node-"+a[l].nodeidx;zingchart.NODE_EV&&zingchart.NODE_EV.target&&zingchart.NODE_EV.target.id===r&&(e.X3(zingchart.NODE_EV),zingchart.NODE_EV=null)}}zingchart.GUIDE_EV&&e.A.D8&&e.A.D8.QJ(zingchart.GUIDE_EV),e.A.A4E<e.A.AG.length?e.A.A4E++:(e.A.A4E=1,e.A.A20===e.A.AG.length&&(e.A.A20++,e.A.E["fire-load"]=!0,e.KU&&e.AY.A4.length>1&&(zingchart.SKIP.EVENT||ZC.AO.C0("load",e.A,e.A.FH()))),e.A.E["fire-complete"]=!0,(e.E["graph-KC"]||e.KU&&e.AY.A4.length>1)&&(zingchart.SKIP.EVENT||ZC.AO.C0("complete",e.A,e.A.FH()),e.E["graph-KC"]=null)),0!==e.A.QV.length&&e.A.QV[e.A.QV.length-1]===e.A.E.json||(e.A.QV[e.A.NX]!==e.A.E.json&&(e.A.QV.length=e.A.NX+1),e.A.QV[e.A.NX]=e.A.E.json)},KC:function(e,i){var n=this;n.clear(),n.parse(),n.A.paint()},V8:function(e,i,n){},I7:function(e,i,n){var t=this;if(null===ZC._n_(n)&&(n=t.AY.A4.length-1),null!==ZC._n_(e)&&void 0!==e)return t.AY.A4[e];if(null===ZC._n_(i)||void 0===i)return t.AY.A4[n];for(var a=0,l=t.AY.A4.length;a<l;a++)if(i===t.AY.A4[a].HA)return t.AY.A4[a];return null},A3V:function(e,i){},QL:function(e){},M3:function(e){var i=this,n=!0,t=i.o.plot||{};null!==ZC._n_(t.animation)&&null!==ZC._n_(t.animation[e])&&(n=ZC._b_(t.animation[e])),i.HM="initial"===i.A1A||!n},H2:function(){return{id:this.A.K,graphidx:this.L,graphid:this.K.replace(this.A.K+"-graph-",""),x:this.iX,y:this.iY,width:this.I,height:this.F,loader:this.A.FH()}},S3:function(){},S4:function(){},gc:function(){for(var e=0;e<this.BO.length;e++)this.BO[e].gc();for(var i=0;i<this.AY.A4.length;i++)this.AY.A4[i].gc();ZC.AO.gc(this.AY,["A","C","G","F9","o","IB","J2"]),ZC.AO.gc(this,["Z","C8","AJ","IM","JQ","MV","ES"])}}),ZC.JN.prototype.Q6=function(){var e,i,n,t,a,l,r,o,A=this;A.initObjectsLayers(),A.BY=[],A.FI=[],A.Y6=[],A.L6=[],A.FB=[],A.XF={};var C,s,u,Z=A.A.B6,c="("+A.AF+")";if(null!==ZC._n_(C=A.o.labels))for(i=0,n=C.length;i<n;i++){C[i].id||(C[i].id="lbl_"+i+"_"+ZC._r_(1e3,9999)),t=C[i].id||i,a=!1,l=!1,A.E["objects.updates"]&&-1===ZC.AV(A.E["objects.updates"],t)&&(a=!0,l=!0),C[i].tween&&(a=!0);var p=zingchart.pool.getInstance("DQ",A,A.K+"-label-"+t,a);if(!l||!p._POOL_){if(Z.load(p.o,c+".label"),p.append(C[i]),null!==ZC._n_(e=p.o.parent))for(var h=0;h<A.BY.length;h++)if(""+A.BY[h].HA==""+e){p.E["p-x"]=A.BY[h].iX,p.E["p-y"]=A.BY[h].iY,p.E["p-width"]=A.BY[h].I,p.E["p-height"]=A.BY[h].F;break}if(p.HA=t,p.K=A.K+"-label-"+t,p.GN=A.K+"-label zc-label",null!==ZC._n_(e=C[i].hook)&&(p.E.hook=e),p.K2=function(i){if(!i||-1===(""+i).indexOf("%"))return i;i=""+i;var n,t=[];t.push(["%id",A.A.K]),t.push(["%graphid",A.K.replace(A.A.K+"-graph-","")]);var a=A.E.update;for(var l in a)t.push(["%"+l,a[l]]);t.sort(ZC.A1Q);for(var r=0,o=t.length;r<o;r++)n=new RegExp(t[r][0],"g"),i=i.replace(n,t[r][1]);var C,s,u,Z,c=p.o["default-value"]||" ";for(n=new RegExp("(%plot-([0-9]+?)-value(-*)([0-9]*?))|(%plot-value-([0-9]+?))|(%plot-value)|(%npv)|(%node-percent-value)","g"),i=i.replace(n,c),n=new RegExp("%plot-([0-9]+?)-data-([a-zA-Z0-9-]+)","g"),i=i.replace(n,c),n=new RegExp("\\((.+?)\\)\\(([0-9]*)\\)\\(([0-9]*)\\)");C=n.exec(i);)if("%node-value"===C[1]){s="";var h=0,f=0;""!==(e=C[2])&&(h=ZC._i_(e)),""!==(e=C[3])&&(f=ZC._i_(e)),(Z=A.AY.A4[h])&&(u=Z.FM(f,3))&&(s=u.K2(C[1])),i=i.replace(C[0],s)}return i},p.parse(),C[i]["3d"]){var f=new ZC.CE(A,p.iX+p.I/2-ZC.AM.E1,p.iY+p.F/2-ZC.AM.E2,ZC._i_(C[i].z||"0"));p.iX=f.EC[0]-p.I/2,p.iY=f.EC[1]-p.F/2}}A.BY.push(p),A.FB.push({type:"label",index:i,zindex:p.JW}),A.XF[t]={shape:"label",idx:i}}if(null!==ZC._n_(s=A.o.arrows))for(i=0,n=s.length;i<n;i++){var _=new ZC.A7Y(A);Z.load(_.o,c+".arrow"),_.append(s[i]),t=s[i].id||i,_.K=A.K+"-arrow-"+t,_.parse(),A.Y6.push(_),A.FB.push({type:"arrow",index:i,zindex:_.JW})}var d,g=0;if(null!==ZC._n_(u=A.o.shapes))for(i=0,n=u.length;i<n;i++)if(null===ZC._n_(u[i].type)||0!==u[i].type.indexOf("zingchart.")){var v,B,E;if(u[i].id||(u[i].id="shp_"+i+"_"+ZC._r_(1e3,9999)),t=u[i].id||i,l=null!==ZC._n_(zingchart.pool[A.K+"-shape-"+t])&&zingchart.SKIP.PARSE3D,a=!1,A.E["objects.updates"]&&-1===ZC.AV(A.E["objects.updates"],t)&&(a=!0,l=!0),u[i].tween&&(a=!0),u[i]["3d"]?((r=zingchart.pool.getInstance("DT",A,A.K+"-shape-"+t,!0)).o=u[i],("poly"!==u[i].type||u[i]["map-item"])&&(l=!1)):(null!==ZC._n_(u[i].label)?(r=zingchart.pool.getInstance("P8",A,A.K+"-shape-"+t,a)).WQ=u[i]:((r=zingchart.pool.getInstance("DT",A,A.K+"-shape-"+t,a)).o=u[i],r.append({},!0)),a&&r._POOL_||(l=!1)),l||(r.HA=t,r.K=A.K+"-shape-"+t,r.OC=!0,u[i]["map-item"]&&(r.OC=!1),r.parse()),null!==ZC._n_(e=u[i].hook)&&(r.E.hook=e),u[i]["3d"]){if(u[i]["map-item"]){for(v=[],B=0,E=r.D.length;B<E;B++)null!==r.D[B]?(o=new ZC.CE(A,r.D[B][0]-ZC.AM.E1,r.D[B][1]-ZC.AM.E2,ZC._i_(r.D[B][2]||u[i].z||"0")),v.push(o.EC)):v.push(null);r.D=v,A.FI.push(r),A.FB.push({type:"shape",index:g,zindex:r.JW,z3d:o.AAL}),A.XF[t]={shape:r.DH,idx:g}}else if("poly"===u[i].type){var b=ZC.DL.DA(r,A,u[i].points,!1);A.CN.add(b),A.FI.push(null)}else{if(r.D.length>0){for(v=[],B=0,E=r.D.length;B<E;B++)o=new ZC.CE(A,r.D[B][0]-ZC.AM.E1,r.D[B][1]-ZC.AM.E2,ZC._i_(r.D[B][2]||u[i].z||"0")),v.push(o.EC);r.D=v}else o=new ZC.CE(A,r.iX-ZC.AM.E1,r.iY-ZC.AM.E2,ZC._i_(u[i].z||"0")),r.iX=ZC._i_(o.EC[0]),r.iY=ZC._i_(o.EC[1]);A.FI.push(r),A.FB.push({type:"shape",index:g,zindex:r.JW,z3d:o.AAL})}r.E["3dtx"]=!0,r.E["3d"]=!0}else A.FI.push(r),r instanceof ZC.P8?(A.FB.push({type:"shape",index:g,zindex:r.BG.JW}),A.XF[t]={shape:r.BG.DH,idx:g}):(A.FB.push({type:"shape",index:g,zindex:r.JW}),A.XF[t]={shape:r.DH,idx:g});g++}if(null!==ZC._n_(d=A.o.images))for(i=0,n=d.length;i<n;i++){var D=d[i].src;if(ZC.cache.data[D]){var F=new ZC.HU(A);F.append({"background-repeat":"no-repeat","background-image":D,width:ZC.cache.data[D].width,height:ZC.cache.data[D].height}),F.append(d[i]),t=d[i].id||i,F.HA=t,F.K=A.K+"-image-"+t,F.L=i,F.parse(),A.L6.push(F),A.FB.push({type:"image",index:i,zindex:F.JW})}}A.E["objects.updates"]=null,A.FB=A.FB.sort(function(e,i){return null!==ZC._n_(e.z3d)&&null!==ZC._n_(i.z3d)?e.z3d-i.z3d>0?1:-1:0}),A.FB=A.FB.sort(function(e,i){return e.zindex-i.zindex==0?e.index-i.index:e.zindex-i.zindex})},ZC.JN.prototype.A0P=function(e,i){},ZC.JN.prototype.AC8=function(){},ZC.JN.prototype.P3=function(){var e,i,n,t,a=this;if(a.YJ=!1,null!==ZC._n_(n=a.o.labels))for(e=0,i=n.length;e<i;e++){var l=""+(n[e].text||"");if(-1!==l.indexOf("%node-")||-1!==l.indexOf("%plot-")||-1!==l.indexOf("%npv")||-1!==l.indexOf("%node-percent-value")||ZC._b_(n[e].dynamic)){a.YJ=!0;break}}if(null!==ZC._n_(t=a.o.shapes))for(e=0,i=t.length;e<i;e++)if(ZC._b_(t[e].dynamic)){a.YJ=!0;break}},ZC.JN.prototype.R3=function(e){var i=this;i.A0P(e),i.Q6(),ZC.SKIPMAPS=!1,i.KC(!0,!0)},ZC.JN.prototype.KM=function(e){void 0===e&&(e=!1);var i,n,t,a=this,l=[],r=[];function o(e){var i=a.Y6[e];if(i.AP&&(i.Z=i.C8=a.A.Z,i.paint(),i.AP&&ZC.AL(a.A.K+"-map"))){var n=i.BG.A5F(),t=ZC.Q.FP(n[0],i.BG.E9,i.BG.IE)+'class="'+a.K+'-arrow-area zc-arrow-area" id="'+i.BG.K+'-area" coords="'+n[1]+'" />';"top"===i.o.placement?r.push(t):l.push(t)}}function A(e){if(a.FI[e]){var n=a.FI[e],t=n instanceof ZC.P8?n.BG:n;if((!ZC.SKIPMAPS||!t.o["map-item"])&&t.AP){if(null!==ZC._n_(i=n.E.hook)){var l=a.V7(i);-1!==l[0]&&(t.iX=ZC._i_(l[0])),-1!==l[1]&&(t.iY=ZC._i_(l[1]))}if(!n.E["3d"]||n.E["3dtx"]){n.Z=a.A.Z,n.C8=a.A.AEG;var r="";null!==ZC._n_(i=t.o.limit)&&("x"===i?r="x":"y"===i?r="y":"xy"===i&&(r="xy")),(""===r||"x"===r&&ZC.DS(t.iX-t.BK,a.P.iX-2,a.P.iX+a.P.I+2)||"y"===r&&ZC.DS(t.iY-t.BJ,a.P.iY-2,a.P.iY+a.P.F+2)||"xy"===r&&ZC.DS(t.iX+t.BK,a.P.iX-2,a.P.iX+a.P.I-2)&&ZC.DS(t.iY+t.BJ,a.P.iY-2,a.P.iY+a.P.F+2))&&(n.W1=!1,n.E["print-canvas"]=a.K+"-"+(t.o["map-item"]?"maps":"objects")+"-print-c",n.paint())}}}}function C(e){var i=a.L6[e];if(i.AP)if(i.Z=i.C8=a.A.Z,null!==ZC._n_(i.o.repeat)&&ZC._b_(i.o.repeat)){var n=ZC._i_(ZC._c_(i.o.items,0)),t=null;if(i.o.inactive&&((t=new ZC.HU(i.A)).copy(i),t.append(i.o.inactive),t.parse(),t.Z=t.C8=i.Z),n>0||t){var l=ZC._i_(ZC._c_(i.o.rows,-1)),r=ZC._i_(ZC._c_(i.o.cols,-1)),o=ZC._i_(ZC._c_(i.o["space-x"],0)),A=ZC._i_(ZC._c_(i.o["space-y"],0)),C=ZC._i_(ZC._c_(i.o["offset-row"],0)),s=ZC._i_(ZC._c_(i.o["offset-col"],0));-1!==l&&-1===r?r=Math.ceil(n/l):-1===l&&-1!==r?l=Math.ceil(n/r):-1===l&&-1===r&&(r=Math.ceil(Math.sqrt(n)),l=Math.ceil(n/r));for(var u=i.iX,Z=i.iY,c=i.K,p=0;p<l;p++)for(var h=0;h<r;h++)i.iX=u+h*o+p*C,i.iY=Z+p*A+h*s,i.K=c+(p*r+h),p*r+h<n?i.paint():t&&(t.iX=i.iX,t.iY=i.iY,t.K=i.K,t.paint())}else i.paint()}else i.paint()}function s(e){var n=a.BY[e];if(n.AP){if(n.E.lbltype="label",null!==ZC._n_(i=n.E.hook)){var t=a.V7(i);if(-1===t[0]&&-1===t[1])return;if(-1!==t[0]&&(n.iX=t[0]),-1!==t[1]&&(n.iY=t[1]),null===ZC._n_(t[2])||n.o.anchor||null!==ZC._n_(t[2].center)&&t[2].center&&(n.iX-=n.I/2,n.iY-=n.F/2),n.o.anchor&&n.setAnchor(),n.o["3d"]){var l=0;t[2]&&t[2].z?l=t[2].z:n.o.z&&(l=ZC._i_(n.o.z));var r=new ZC.CE(a,n.iX+n.I/2-ZC.AM.E1,n.iY+n.F/2-ZC.AM.E2,l);n.iX=r.EC[0]-n.I/2,n.iY=r.EC[1]-n.F/2}}n.iX=ZC._i_(n.iX),n.iY=ZC._i_(n.iY),n.Z=a.A.Z,n.C8=a.A.AEG;var o="";null!==ZC._n_(i=n.o.limit)&&("x"===i?o="x":"y"===i?o="y":"xy"===i&&(o="xy")),(""===o||"x"===o&&ZC.DS(n.iX-n.BK,a.P.iX-n.I/2-2,a.P.iX+a.P.I-n.I/2+2)||"y"===o&&ZC.DS(n.iY-n.BJ,a.P.iY-n.F/2-2,a.P.iY+a.P.F-n.F/2+2)||"xy"===o&&ZC.DS(n.iX+n.BK,a.P.iX-n.I/2-2,a.P.iX+a.P.I-n.I/2+2)&&ZC.DS(n.iY+n.BJ,a.P.iY-n.F/2-2,a.P.iY+a.P.F-n.F/2+2))&&(n.W1=!1,n.paint(),n.EO(ZC.AL(a.K+"-objects-print-c")))}}if(a.G.clearLabelBoxes("label"),a.FB)for(n=0,t=a.FB.length;n<t;n++){var u=a.FB[n].index;switch(a.FB[n].type){case"arrow":o(u);break;case"shape":A(u);break;case"image":C(u);break;case"label":s(u)}}for(n=0;n<a.AY.A4.length;n++)a.AY.A4[n].RR=null;if(!e&&"normal"===zingchart.OBJECTMODE&&(r.length>0||l.length>0)&&ZC.AL(a.A.K+"-map")){if(a.A4Y){var Z=function(e,i){return-1!==e.indexOf("data-map")&&-1!==i.indexOf("data-map")?ZC.AO.NA(i)-ZC.AO.NA(e):ZC.AO.NA(e)-ZC.AO.NA(i)};r.sort(Z),l.sort(Z)}zingchart.DEV.MAPSONBOTTOM?window.setTimeout(function(){ZC.AO._rebuild_map_(a.A.K,r.join("")+ZC.AL(a.A.K+"-map").innerHTML+l.join(""))},33):ZC.AO._rebuild_map_(a.A.K,r.join("")+ZC.AL(a.A.K+"-map").innerHTML+l.join(""))}a.A.E["fire-load"]||ZC.AO.C0("objectsready",a.A,a.H2())},ZC.JN.prototype.SM=function(e,i,n,t){},ZC.JN.prototype.S5=function(){},ZC.JN.prototype.S3=function(e,i){},ZC.JN.prototype.S4=function(e,i){},ZC.JN.prototype.V7=function(e){var i,n,t=this;if("string"==typeof e){var a={},l=e.split(":");if(2===l.length){a.type=l[0];for(var r=0,o=(l=l[1].split(/\s|,|;/)).length;r<o;r++){var A=l[r].split("=");a[A[0]]=A[1]}}e=a}var C=[-1,-1];switch(t.E.hooks=!0,e.type){case"scale":var s,u,Z,c="",p=-1,h=null;if(null!==ZC._n_(i=e.name)&&(c=i),null!==ZC._n_(i=e.index)&&(p=ZC._i_(i)),null!==ZC._n_(i=e.value)&&(h=ZC._f_(i)),n=null,""===c&&(c="scale-x"),n=t.BM(c))switch(n.II&&-1!==p?Z=n.II(p):n.AR&&(null!==ZC._n_(h)?Z=n.AR(h):-1!==p&&(Z=n.AR(n.V[p]))),t.AJ.layout){case"radar":case"gauge":s=Z[0],u=Z[1];break;case"xy":"k"===n.AF?(s=Z,u=n.iY,"default"===n.BA&&(u+=n.F),null!==ZC._n_(n.E.iY)&&(u=n.E.iY)):"v"===n.AF&&(u=Z,s=n.iX,"opposite"===n.BA&&(s+=n.I),null!==ZC._n_(n.E.iX)&&(s=n.E.iX));break;case"yx":"k"===n.AF?(u=Z,s=n.iX,"opposite"===n.BA&&(s+=n.I),null!==ZC._n_(n.E.iX)&&(s=n.E.iX)):"v"===n.AF&&(s=Z,u=n.iY,"default"===n.BA&&(u+=n.F),null!==ZC._n_(n.E.iY)&&(u=n.E.iY))}C=[s,u,{center:!0}];break;case"node":var f=-1,_=null,d=null,g=null,v=null;null!==ZC._n_(i=e.plot)&&(g=i),null!==ZC._n_(i=e.plotindex)&&(g=i),null!==ZC._n_(i=e.plotid)&&(v=i);var B=t.I7(g,v);null!==ZC._n_(i=e.index)&&(f=ZC._i_(i)),null!==ZC._n_(i=e.value)&&(_=i),null!==ZC._n_(i=e.keyvalue)&&(d=i);var E=null;if(B){if(-1!==f&&B.S[f])E=B.FM(f,3);else if(null!==ZC._n_(_)||null!==ZC._n_(d)){var b,D;if(n=B.C.BM(B.BO[0]),null!==d&&null===_&&B.S.length>4096&&n.F7&&"date"===n.F7.o.type&&null!==(b=ZC._nfind_(d,B,0,B.S.length-1))&&(E=B.FM(b,3)),!E)for(b=0,D=B.S.length;b<D;b++)B.S[b]&&(null!==_&&B.S[b].AC==_&&(E=B.FM(b,3)),null!==d&&null!==ZC._n_(B.S[b].BV)&&B.S[b].BV==d&&(E=B.FM(b,3)))}E&&(E.setup(),C=E.V7(e),!E.J1&&ZC.DS(C[0],t.P.iX,t.P.iX+t.P.I)&&ZC.DS(C[1],t.P.iY,t.P.iY+t.P.F)&&(E.J1=!0),E.J1&&E.AP&&E.A.AP&&E.C.E["plot"+E.A.L+".visible"]||(C=[-1,-1])),B.E["z-mid"]&&(C[2].z=B.E["z-mid"])}}return null!==ZC._n_(e.x)&&(C[0]=ZC._i_(e.x)),null!==ZC._n_(e.y)&&(C[1]=ZC._i_(e.y)),null!==ZC._n_(i=e["offset-x"])&&(C[0]+=ZC._i_(i)),null!==ZC._n_(i=e["offset-y"])&&(C[1]+=ZC._i_(i)),C},zingchart.AB3=function(e,i,n){"string"==typeof(n=n||{})&&(n=JSON.parse(n));var t,a,l,r,o,A,C,s,u,Z,c,p,h,f,_=!(null!==ZC._n_(n.update)&&!ZC._b_(n.update)),d=!!n.dynamic&&ZC._b_(n.dynamic),g=zingchart.getLoader(e);if(g)switch(i){case"addobject":if((t=g.CB(n.graphid))&&n.data){if(u=(s=n.data instanceof Array)?[]:{},ZC._cp_(n.data,u),a=n.type||"label",s)for(o=0,A=u.length;o<A;o++)a=n.type||u[o].objtype||"label",t.o[a+"s"]||(t.o[a+"s"]=[]),d&&(u[o]["map-item"]=!1),t.o[a+"s"].push(u[o]);else t.o[a+"s"]||(t.o[a+"s"]=[]),d&&(u["map-item"]=!1),t.o[a+"s"].push(u);_&&(t.P3(),t.R3(d))}n.callback&&"function"==typeof n.callback&&n.callback(n);break;case"removeobject":if(t=g.CB(n.graphid),n["class"]&&(n.cls=n["class"]),t&&(n.id||n.cls||n.group)){a=n.type||"label",C=t.o[a+"s"]||[],l=n.id?"string"==typeof n.id?[n.id]:n.id:[],r=n.cls?"string"==typeof n.cls?[n.cls]:n.cls:[],Z=!1;var v=[];for(o=C.length-1;o>=0;o--)(null!==ZC._n_(C[o].id)&&-1!==ZC.AV(l,C[o].id)||null!==ZC._n_(C[o].cls)&&-1!==ZC.AV(r,C[o].cls)||null!==ZC._n_(C[o]["class"])&&-1!==ZC.AV(r,C[o]["class"])||n.group&&C[o].group===n.group)&&(null!==ZC._n_(C[o].id)&&v.push(C[o].id),C.splice(o,1),Z=!0);for(o=0;o<v.length;o++)ZC.Q.EW([t.K+"-label-"+v[o]+"-gradient",t.K+"-label-"+v[o]+"-top-gradient",t.K+"-shape-"+v[o]+"-gradient",t.K+"-shape-"+v[o]+"-top-gradient",t.K+"-shape-"+v[o]+"-gshape-gradient",t.K+"-shape-"+v[o]+"-gshape-top-gradient"]);Z&&_&&(t.P3(),t.R3(d))}n.callback&&"function"==typeof n.callback&&n.callback(n);break;case"updateobject":if(n["class"]&&(n.cls=n["class"]),(t=g.CB(n.graphid))&&n.data){t.E["objects.updates"]=[],a=n.type||"label",C=t.o[a+"s"]||[],f="label"===a?t.BY:t.FI,u=(s=n.data instanceof Array)?[]:{},ZC._cp_(n.data,u),Z=!1;var B=!0,E=function(e,i){var n,a=t.XF[e.id||""],l=!1;a&&("label"===a.shape?(n=t.BY[a.idx],Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(n.iX=e.x,n.iY=e.y,l=!0)):((n=t.FI[a.idx]).BG&&n.BG.o["map-item"]&&(B=!1),"circle"===a.shape?Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(n.BG?(n.BG.iX=e.x,n.BG.iY=e.y):(n.iX=e.x,n.iY=e.y),l=!0):"line"===a.shape&&Object.keys&&2===Object.keys(e).length&&null!==ZC._n_(e.points)&&(n.BG?n.BG.D=e.points:n.D=e.points,l=!0))),l||t.E["objects.updates"].push(e.id),ZC._cp_(e,i),Z=!0};if(s){var b=!1,D=!1;for(o=0,A=u.length;o<A;o++){if(null!==ZC._n_(u[o].objtype)&&(C=t.o[u[o].objtype+"s"]),C)for(c=0,p=C.length;c<p;c++)null!==ZC._n_(u[o].id)&&null!==ZC._n_(C[c].id)&&C[c].id===u[o].id&&E(u[o],C[c]);null!==ZC._n_(u[o].animation)?b=!0:D=!0,D&&b&&(ZC.SKIPMAPS=B,t.Q6())}}else if(n.group)for(c=0,p=C.length;c<p;c++)C[c].group===n.group&&(u.id=C[c].id,E(u,C[c]));else if(n.cls)for(c=0,p=C.length;c<p;c++)C[c].cls===n.cls&&(u.id=C[c].id,E(u,C[c]));else for(e=u.id||n.id,c=0,p=C.length;c<p;c++)null!==ZC._n_(C[c].id)&&null!==ZC._n_(e)&&C[c].id===e&&(u.id=e,E(u,C[c]));ZC.SKIPMAPS=B,!Z||!_&&t.Q8||t.Q8||(t.P3(),t.R3(d))}n.callback&&"function"==typeof n.callback&&n.callback(n);break;case"repaintobjects":(t=g.CB(n.graphid))&&(t.P3(),t.R3(d)),n.callback&&"function"==typeof n.callback&&n.callback(n);break;case"getallobjects":if(l=[],t=g.CB(n.graphid))for(a=n.type||"label",o=0,A=(C=t.o[a+"s"]||[]).length;o<A;o++)null!==ZC._n_(C[o].id)&&l.push(C[o].id);return l;case"getobjectsbyclass":if(n["class"]&&(n.cls=n["class"]),l=[],(t=g.CB(n.graphid))&&n.cls){a=n.type||"label",C=t.o[a+"s"]||[];var F=n.cls instanceof Array?n.cls:[n.cls];for(o=0,A=C.length;o<A;o++)-1===ZC.AV(F,C[o].cls)&&-1===ZC.AV(F,C[o]["class"])||null===ZC._n_(C[o].id)||l.push(C[o].id)}return l;case"getlabelinfo":case"getshapeinfo":var m={x:"iX",y:"iY",width:"I",height:"F",color:"C2",lineColor:"B9",lineWidth:"B1",borderColor:"BX",borderWidth:"AU",backgroundColor1:"A0",backgroundColor2:"AE",size:"AI",type:"DH",text:"AN",fontSize:"DI",callout:"KS",calloutPosition:"EP",offsetX:"BK",offsetY:"BJ"};if(t=g.CB(n.graphid),a=n.type||"label","getlabelinfo"===i&&"label"!==a||"getshapeinfo"===i&&"shape"!==a)return null;if(e=n.id||"",t&&""!==e){f=[],"label"===a?f=t.BY:"shape"===a&&(f=t.FI);var Y=null;for(o=0,A=f.length;o<A;o++)f[o].HA===e&&(Y=f[o]);if(Y){var M={};if("shape"===a){if(Y.M)for(h in M.label={},m)M.label[h]=Y.M[m[h]];Y.BG&&(Y=Y.BG)}for(h in m)M[h]=Y[m[h]];return M}}return null;case"setobjectsmode":zingchart.OBJECTMODE="normal",n.mode&&"flat"===n.mode&&(zingchart.OBJECTMODE="flat");break;case"settweenmode":ZC.objmove=!1,n.mode&&"position"===n.mode&&(ZC.objmove=!0)}return null},ZC.JN.prototype.A37=function(){},ZC.JN.prototype.UD=function(){},ZC.JN.prototype.AC1=function(){},zingchart.ABP=function(e,i,n){return null},ZC.JN.prototype.O7=function(){var e=this;e.AJ["3d"]&&"undefined"!=typeof ZC.AM&&(ZC.AM.A4F=2.5*ZC.BR(e.I,e.F),ZC.AM.E1=e.P.iX+e.P.I/2,ZC.AM.E2=e.P.iY+e.P.F/2,ZC.AM.FE=ZC._i_(e.ES.depth),ZC.AM.E1+=e.ES["offset-x"],ZC.AM.E2+=e.ES["offset-y"])},ZC.JN.prototype.ADH=function(){var e,i,n=this;if(n.AJ["3d"]&&"undefined"!=typeof ZC.AM){if(n.A.B6.load(n.ES,"graph.3d-aspect"),n.A.B6.load(n.ES,n.AF+".3d-aspect"),null!==ZC._n_(e=n.o["3d-aspect"])&&ZC._cp_(e,n.ES),"pie3d"===n.AF&&n.o.plot&&n.o.plot.tilt){var t=ZC._l_(ZC._f_(n.o.plot.tilt),1,3);n.ES["x-angle"]=25+(t-1)/2*(n.AJ["x-angle-max"]-n.AJ["x-angle-min"])}var a=["angle","depth","x-angle","y-angle","z-angle","zoom","offset-x","offset-y"];for(i=0;i<a.length;i++)n.ES[a[i]]=ZC._f_(n.ES[a[i]]);var l=["angle","x-angle","y-angle","z-angle"];for(i=0;i<l.length;i++)ZC.DS(n.ES[l[i]],n.AJ[l[i]+"-min"],n.AJ[l[i]+"-max"])||(n.ES[l[i]]=n.AJ[l[i]+"-min"]);n.ES.true3d=ZC._b_(n.ES.true3d)}},ZC.JN.prototype.SI=function(){var e,i,n,t=this;3!==zingchart.V3D&&(zingchart.V3D=t.ES.true3d?1:2);var a=t.CN.A4I.length;for(e=0;e<a;e++)(i=t.CN.A4I[e]).ADC(),t.ES.true3d?3===zingchart.V3D?t.CN.WL[e]=[ZC._f_(i.ZV.toFixed(1))*i.MG[2],e]:t.CN.WL[e]=[[ZC._f_(i.SO.toFixed(1))*i.MG[0],ZC._f_(i.A4H.toFixed(1))*i.MG[1],ZC._f_(i.ZV.toFixed(1))*i.MG[2],ZC._f_(i.A21.toFixed(1))],e]:t.CN.WL[e]=[[ZC._f_(i.SO.toFixed(1))*i.MG[0],ZC._f_(i.A4G.toFixed(1))*i.MG[1],ZC._f_(i.A3C.toFixed(1))*i.MG[2],ZC._i_(i.G0)],e];t.CN.WL.sort(t.CN.sortFaces);var l=new ZC.DT(t);for(n=ZC.Q.EE(t.Z,t.G.AB),e=0;e<a;e++){var r=[],o=t.CN.WL[e][1],A=(i=t.CN.A4I[o]).D.length;if(A>0){for(var C=0;C<A;C++)r.push(i.D[C].EC);r.push(i.D[0].EC),l.$i(t),l.K=t.K+"-3dshape-"+(""!==i.K?i.K:ZC.SEQ++),l.copy(i.O),l.D0=!1,l.Z=t.Z,l.locate(1),l.D=r,l.DH="poly",l.locate(2),l.paint()}}var s=[];for(var u in t.CN.SL)s.push([u,t.CN.SL[u].zIndex]);s.sort(function(e,i){return i[1]-e[1]});for(var Z=0;Z<s.length;Z++){var c=t.CN.SL[s[Z][0]];ZC.CO.setup(n,c.style),ZC.CO.paint(n,c.style,c.points)}},ZC.JN.prototype.ACQ=function(){if(!zingchart.SKIP.LEGEND){var e=this;if(e.BE){if(e.BE.PV&&e.L!==e.A.AG.length-1&&!e.BE.o.force)return;e.BE.Z=e.BE.C8=e.A.Z,e.BE.paint()}}},ZC.AAF=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="null",i.AJ.clip=!0,i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0}}),ZC.A90=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="null3d",i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["x-angle-min"]=-1800,i.AJ["x-angle-max"]=1800,i.AJ["y-angle-min"]=-1800,i.AJ["y-angle-max"]=1800,i.AJ["z-angle-min"]=-1800,i.AJ["z-angle-max"]=1800,zingchart.V3D=3},clear:function(){this.b(),this.CN.clear()},paint:function(){var e=this;e.b(),e.Q6(),e.SI(),e.flatten(),e.KM(),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.NL=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="xy",i.AJ.clip=!0,i.AJ.layout="xy"},MT:function(e){switch(e){case"x":return new ZC.QA(this);case"y":return new ZC.QB(this)}},ACN:function(){var e,i=this,n=i.MT("x","scale-x");for(n.BD="scale-x",n.K=i.K+"-scale-x",i.BO.push(n),e=2;e<200;e++)if(null!==ZC._n_(i.o["scale-x-"+e])){var t=i.MT("x","scale-x-"+e);t.L=e,t.BD="scale-x-"+e,t.K=i.K+"-scale-x-"+e,i.BO.push(t)}var a=i.MT("y","scale-y");for(a.BD="scale-y",a.K=i.K+"-scale-y",i.BO.push(a),e=2;e<200;e++)if(null!==ZC._n_(i.o["scale-y-"+e])){var l=i.MT("y","scale-y-"+e);l.L=e,l.BD="scale-y-"+e,l.K=i.K+"-scale-y-"+e,i.BO.push(l)}i.b()}}),ZC.A6E=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="line",i.AY=new ZC.A44(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A6F=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="area",i.AY=new ZC.A45(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A9X=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="vline",i.AJ.layout="yx",i.AY=new ZC.A8B(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MT:function(e){switch(e){case"x":return new ZC.SZ(this);case"y":return new ZC.T0(this)}}}),ZC.A9Y=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="varea",i.AJ.layout="yx",i.AY=new ZC.A8C(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MT:function(e){switch(e){case"x":return new ZC.SZ(this);case"y":return new ZC.T0(this)}}}),ZC.A2M=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="vbar",i.AY=new ZC.A0L(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MT:function(e,i){switch(e){case"x":var n=this.b(e,i);return n.DE=!0,n;case"y":return this.b(e,i)}}}),ZC.A2N=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="hbar",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A0M(i)},MT:function(e){switch(e){case"x":var i=new ZC.SZ(this);return i.DE=!0,i;case"y":return new ZC.T0(this)}}}),ZC.A57=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="mixed",i.AY=new ZC.ZK(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MT:function(e,i){switch(e){case"x":var n=!1;if(this.o.series)for(var t=0;t<this.o.series.length;t++)if(this.o.series[t]&&this.o.series[t].type&&-1!==ZC.AV(["bar","vbar","bullet","vbullet","stock","vbar3d"],this.o.series[t].type)){var a=(this.o.series[t].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(a,i)&&(n=!0)}var l=this.b(e,i);return l.DE=n,l;case"y":return this.b(e,i)}}}),ZC.A8R=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="hmixed",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.ZK(i)},MT:function(e,i){switch(e){case"x":var n=new ZC.SZ(this),t=!1;if(this.o.series)for(var a=0;a<this.o.series.length;a++)if(this.o.series[a]&&this.o.series[a].type&&-1!==ZC.AV(["hbar","hbullet"],this.o.series[a].type)){var l=(this.o.series[a].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(l,i)&&(t=!0)}return n.DE=t,n;case"y":return new ZC.T0(this)}}}),ZC.A2Z=ZC.A57.CD({$i:function(e){this.b(e);var i=this;i.AF="mixed3d",i.AY=new ZC.ZK(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(){this.b(),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.A7V=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="scatter",i.AY=new ZC.A6Q(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A7B=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="hscatter",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A5S(i)},MT:function(e){switch(e){case"x":return new ZC.SZ(this);case"y":return new ZC.T0(this)}}}),ZC.A8S=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="bubble",i.AY=new ZC.A7C(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A7W=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="hbubble",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A6R(i)},MT:function(e){switch(e){case"x":return new ZC.SZ(this);case"y":return new ZC.T0(this)}}}),ZC.A3U=ZC.JN.CD({$i:function(e){this.b(e),this.AF="pie",this.AY=new ZC.A58(this)},A2P:function(e){return e},MT:function(e){switch(e){case"m":return new ZC.TB(this);case"v":return new ZC.WA(this);case"r":return new ZC.A2B(this)}},ACN:function(){var e=this,i=e.MT("m","scale"),n=e.MT("v","scale-v"),t=e.MT("r","scale-r");i.BD="scale",i.K=e.K+"-scale",e.o.series&&e.o.series.length&&e.o.series[0].values&&(i.N4="1x"+e.o.series[0].values.length),n.BD="scale-v",n.K=e.K+"-scale-v",t.BD="scale-r",t.K=e.K+"-scale-r",e.BO.push(i,n,t),e.b()},clear_:function(){}}),ZC.A6P=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="nestedpie",i.AY=new ZC.A59(i)},A2P:function(e){return e},MT:function(e){switch(e){case"m":return new ZC.TB(this)}},ACN:function(){var e=this,i=e.MT("m","scale");i.BD="scale",i.K=e.K+"-scale",e.BO.push(i),e.b()}}),ZC.A9S=ZC.JN.CD({$i:function(e){this.b(e);var i=this;if(i.AF="radar",i.AJ.layout="radar",i.AY=new ZC.A7X(i),-1!==ZC.AV(i.A.K,"polar")){for(var n=1,t=0;t<i.A.MF.series.length;t++)n=ZC.BR(n,i.A.MF.series[t].values.length);n=Math.round(360/n).toString(),null===ZC._n_(i.A.MF.plot)?i.A.MF.plot={aspect:"area"}:ZC._cp_({aspect:"area"},i.A.MF.plot),null===ZC._n_(i.A.MF["scale-k"])?i.A.MF["scale-k"]={aspect:"circle",format:"%v\xb0",values:"0:330:"+n}:ZC._cp_({aspect:"circle",format:"%v\xb0",values:"0:330:"+n},i.A.MF["scale-k"],!0)}},A2P:function(e){return e},MT:function(e){var i=this;switch(e){case"m":return new ZC.TB(i);case"k":return new ZC.ZP(i);case"v":return new ZC.ZO(i)}},ACN:function(){var e=this,i=e.MT("k","scale-k");i.BD="scale-k",i.K=e.K+"-scale-k",e.BO.push(i);var n=e.MT("v","scale-v");n.BD="scale-v",n.K=e.K+"-scale-v",e.BO.push(n);var t=e.MT("m","scale");t.BD="scale",t.K=e.K+"-scale",e.BO.push(t),e.b()}}),ZC.A7Z=ZC.A2M.CD({$i:function(e){this.b(e);var i=this;i.AF="vbullet",i.AY=new ZC.A6T(i),i.AJ["enable-animation"]=!1}}),ZC.A80=ZC.A2N.CD({$i:function(e){this.b(e);var i=this;i.AF="hbullet",i.AJ.layout="yx",i.AY=new ZC.A6U(i),i.AJ["enable-animation"]=!1}}),ZC.A9T=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="piano",i.AY=new ZC.A81(i),i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},ABF:function(e){var i=this;if("v"===e&&i.o.series&&i.o.series.length){for(var n=[],t=0;t<i.o.series.length;t++)n.push(i.o.series[t].text||"Metric "+(t+1));return n}return null},MT:function(e){switch(e){case"x":var i=new ZC.QA(this);return i.DE=!0,i;case"y":var n=new ZC.QB(this);return n.DE=!0,n.append({step:1,"fixed-step":!0}),n}}}),ZC.A82=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="vfunnel",i.AY=new ZC.A6V(i),i.AJ["enable-animation"]=!1,i.AJ["enable-zooming"]=!1,i.AJ["enable-scroll"]=!1},MT:function(e,i){switch(e){case"x":var n=this.b(e,i);return n.DE=!0,n;case"y":var t=this.b(e,i);return t.DE=!0,t}},ABF:function(e){var i=this;if("v"===e&&i.o.series&&i.o.series.length){for(var n=[],t=0;t<i.o.series.length;t++)n.push("Step "+(t+1));return n}return null},paint:function(){for(var e=this,i=0,n=e.BO.length;i<n;i++)"v"===e.BO[i].AF&&(e.BO[i].AW=!e.BO[i].AW);e.b()}}),ZC.A83=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="hfunnel",i.AY=new ZC.A6W(i),i.AJ["enable-animation"]=!1,i.AJ["enable-zooming"]=!1,i.AJ["enable-scroll"]=!1},ABF:function(e){var i=this;if("v"===e&&i.o.series&&i.o.series.length){for(var n=[],t=0;t<i.o.series.length;t++)n.push("Step "+(t+1));return n}return null},MT:function(e){switch(e){case"x":var i=new ZC.SZ(this);return i.DE=!0,i;case"y":var n=new ZC.T0(this);return n.DE=!0,n}}}),ZC.A9U=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="stock",i.AY=new ZC.A84(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!0},MT:function(e,i){switch(e){case"x":var n=this.b(e,i);return n.DE=!0,n;case"y":return this.b(e,i)}}}),ZC.A9V=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="gauge",i.AJ.layout="gauge",i.AY=new ZC.A85(i)},A2P:function(e){return e},MT:function(e){var i=this;switch(e){case"m":return new ZC.TB(i);case"r":return new ZC.A86(i);case"v":return new ZC.WA(i)}},ACN:function(){var e,i=this,n=i.MT("m","scale");for(n.BD="scale",n.K=i.K+"-scale",i.BO.push(n),e=2;e<10;e++)if(null!==ZC._n_(i.o["scale-"+e])){var t=i.MT("m","scale-"+e);t.L=e,t.BD="scale-"+e,t.K=i.K+"-scale-"+e,i.BO.push(t)}var a=i.MT("r","scale-r");for(a.BD="scale-r",a.K=i.K+"-scale-r",i.BO.push(a),e=2;e<10;e++)if(null!==ZC._n_(i.o["scale-r-"+e])){var l=i.MT("r","scale-r-"+e);l.L=e,l.BD="scale-r-"+e,l.K=i.K+"-scale-r-"+e,i.BO.push(l)}i.b()},hideLayer_:function(){}}),ZC.A9W=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="range",i.AY=new ZC.A87(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!0}}),ZC.ZCVRangeGraph=ZC.NL.CD({$i:function(e){this.b(e);var i=this;i.AF="range",i.AJ.layout="yx",i.AY=new ZC.ZCVRangePlotSet(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!1},MT:function(e){switch(e){case"x":return new ZC.SZ(this);case"y":return new ZC.T0(this)}}}),ZC.A5C=ZC.A3U.CD({$i:function(e){this.b(e);var i=this;i.AF="pie3d",i.AY=new ZC.A88(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-animation"]=!1,i.AJ["x-angle-min"]=15,i.AJ["x-angle-max"]=75,i.AJ["y-angle-min"]=0,i.AJ["y-angle-max"]=0,i.AJ["z-angle-min"]=0,i.AJ["z-angle-max"]=0},clear:function(){this.b(),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.A8U=ZC.A2N.CD({$i:function(e){this.b(e);var i=this;i.AF="hbar3d",i.AY=new ZC.A7J(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-animation"]=!1,i.AJ["x-angle-min"]=-20,i.AJ["x-angle-max"]=20,i.AJ["y-angle-min"]=-20,i.AJ["y-angle-max"]=0},clear:function(){this.b(),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.A8V=ZC.A2M.CD({$i:function(e){this.b(e);var i=this;i.AF="vbar3d",i.AY=new ZC.A7I(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){this.b(e,i),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.A8W=ZC.A6E.CD({$i:function(e){this.b(e);var i=this;i.AF="line3d",i.AY=new ZC.A7K(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){this.b(e,i),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.A8X=ZC.A6F.CD({$i:function(e){this.b(e);var i=this;i.AF="area3d",i.AY=new ZC.A7L(i),i.CN=new ZC.ST,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){this.b(e,i),this.CN.clear()},paint:function(){var e=this;e.b(),e.SI(),e.flatten(),e.Q6(),e.FB.length&&(e.CN.clear(),e.KM(),e.SI()),-1===ZC.AV(e.G.KQ,"skip_interactivity")&&e.S5()}}),ZC.AAG=ZC.JN.CD({$i:function(e){this.b(e);var i=this;i.AF="venn",i.AY=new ZC.A8Z(i)},A2P:function(e){return e},MT:function(e){switch(e){case"m":return new ZC.TB(this)}},parse:function(){var e=this;e.b(),e.BE&&(e.BE.I5="remove",e.BE.R4="remove",e.BE.PW="remove")},ACN:function(){var e=this,i=e.MT("m","scale");i.BD="scale",i.K=e.K+"-scale",e.BO.push(i),e.b()}}),ZC.LQ=ZC.HU.CD({$i:function(e){this.b(e);var i=this;i.C=e,i.G=i.C.A,i.A4=[],i.H3=null,i.KH=[],i.K8=[],i.PZ=!0,i.F9=null,i.A4K=!0,i.W5=[]},ACU:function(){return new ZC.I1(this)},parse:function(){var e,i,n,t=this;for(t.K=t.A.K+"-plotset",t.F9=null,i=t.o.length-1;i>=0;i--)"undefined"==typeof t.o[i]&&t.o.splice(i,1);if(null===ZC._n_(t.E["plot-sort"])&&(t.E["plot-sort"]=!1),t.o.length>1){for(i=0,n=t.o.length;i<n;i++)"undefined"==typeof t.o[i].palette&&(t.o[i].palette=i);var a=[],l=[];for(i=0,n=t.o.length;i<n;i++)l[i]=i,a[i]={"z-index":t.o[i]["z-index"]||0};for(var r=!1;!r;)for(r=!0,i=0,n=a.length;i<n-1;i++){if(a[i]["z-index"]>a[i+1]["z-index"]){t.E["plot-sort"]=!0;var o=a[i];a[i]=a[i+1],a[i+1]=o;var A=l[i];l[i]=l[i+1],l[i+1]=A,r=!1}}t.MA=l}else t.MA=[0];for(t.A4=[],i=0,n=t.o.length;i<n;i++){var C="";t.A.o.plot&&null!==ZC._n_(e=t.A.o.plot.type)&&(C=e),null!==ZC._n_(e=t.o[i].type)&&(C=e);var s=t.ACU(C,i);s.NY=s.AF+"plot",s.L=i,s.JW=i,t.C.A.B6.load(s.o,["("+s.AF+").plot"]),s.sTypeX&&t.C.A.B6.load(s.o,["("+s.sTypeX+").plot"]),t.C.A.B6.load(s.o,["("+s.AF+").plot.animation"]),null!==ZC._n_(e=t.A.o.plot)&&s.append(e),s.append(t.o[i]),0===zingchart.DEV.COPYVALUES&&(s.o.values=[].concat(t.o[i].values||[])),s.CG=t.A.CG,s.parse(),t.A4.push(s)}var u={},Z=[],c=[],p={},h={},f=0,_=0;for(i=0,n=t.A4.length;i<n;i++)if(null!==ZC._n_(t.A.A.E["g-"+t.A.L+"-p-"+i+".visible"])&&(t.C.E["plot"+i+".visible"]=t.A.A.E["g-"+t.A.L+"-p-"+i+".visible"]),!t.A4[i].HT&&(t.C.E["plot"+i+".visible"]||"hide"===t.C.getToggleAction())){t.A4[i].CG?(-1===(_=ZC.AV(c,t.A4[i].DZ))&&(c.push(t.A4[i].DZ),_=c.length-1),null===ZC._n_(Z[_])?Z[_]=[i]:Z[_].push(i)):(c.push(-1),_=c.length-1,null===ZC._n_(Z[_])?Z[_]=[i]:Z[_].push(i));var d=t.A4[i].AF;if(t.A4[i].o.type&&d!==t.A4[i].o.type){var g=d.indexOf("3d"),v=t.A4[i].o.type.indexOf("3d");(-1===g&&-1!==v||-1===g&&-1===v)&&(d=t.A4[i].o.type)}-1!==ZC.AV(["bar","bar3d","bullet"],d)&&(d="v"+d),-1===ZC.AV(["vbar","hbar","vbullet","hbullet","stock","vbar3d","hbar3d"],d)||t.A4[i].HT||(null===ZC._n_(p[d])&&(p[d]=[]),null===ZC._n_(h[d])&&(h[d]=[]),t.A4[i].CG?(null===ZC._n_(u[t.A4[i].DZ])?u[t.A4[i].DZ]=1:u[t.A4[i].DZ]++,-1===(f=ZC.AV(h[d],t.A4[i].DZ))&&(h[d].push(t.A4[i].DZ),f=h[d].length-1),null===ZC._n_(p[d][f])?p[d][f]=[i]:p[d][f].push(i)):(h[d].push(-1),f=h[d].length-1,null===ZC._n_(p[d][f])?p[d][f]=[i]:p[d][f].push(i)))}if(t.KH=Z,t.K8=p,t.WS)for(var B in t.WS)t.WS[B].sort();for(t.A1K=[],i=0;i<t.KH.length;i++)t.A1K.push(t.KH[i][t.KH[i].length-1])},paint:function(){var e=this;function i(n){var t=e.MA[n];(e.A4[t].HZ||e.A4[t].E6.length&&e.A.B7||"none"!==e.A4[t].J4)&&(e.G.OC=!1),e.A4K=!0;var a=e.C.getToggleAction();e.A4[t].o["skip-paint"]||(e.C.AJ["3d"]?e.C.E["plot"+t+".visible"]&&(e.A4[t].paint(),e.G.ZY()):(e.C.E["plot"+t+".visible"]||"hide"===a)&&("undefined"!=typeof e.C.E["plot-"+t+"-first-run"]&&(e.A4[t].TO=0),e.A4[t].paint(),e.A4[t].TO=0,e.G.ZY(),e.C.E["plot"+t+".visible"]||"hide"!==a||(e.C.E["plot"+t+".visible"]=!0,e.A.QL({plotindex:t,"ignore-legend":!0})))),e.C.E["plot-"+t+"-first-run"]=!1,n<e.A4.length-1?e.C.KU?i(n+1):e.A4.length<=100&&i(n+1):(!e.C.KU||e.C.KU&&e.A4K)&&e._end_()}if(e.H3=e.H3||[],e.A4.length>0)if(e.A4.length>100&&!e.C.KU)for(var n=0;n<e.A4.length;n++)i(n);else i(0);else e._end_()},_end_:function(){var e=this;e.S0=null,e.VO=null;for(var i=0;i<e.C.BO.length;i++)e.C.BO[i].EV=null,e.C.BO[i].WU=null;var n,t;function a(i){var n=0,t=i.indexOf("-plotset-plot-"),a=i.indexOf("-node-",t);return-1!==t&&-1!==a&&(n=i.substr(t+14,a-t-14)),"undefined"!=typeof e.A4[n].E["z-mid"]?e.A4[n].E["z-mid"]:n}if(e.G.bImageMap&&(-1===ZC.AV(["bubble","hbubble","vbullet","hbullet","radar","vbar3d","hbar3d","mixed","mixed3d","pie3d","hmixed","hmixed3d"],e.C.AF)&&1!==zingchart.SORTTRACKERS||e.H3.sort(function(i,n){return a(i)>a(n)&&e.A.AJ["3d"]?-1:a(i)<a(n)&&e.A.AJ["3d"]?1:ZC.AO.NA(i)>ZC.AO.NA(n)?1:-1}),e.G.zcHtmlArea+=e.H3.join("\n"),e.G.zcHtmlArea=e.G.zcHtmlArea.replace(/ href="javascript:;"/g,""),e.G.zcHtmlArea=e.G.zcHtmlArea.replace(/ class=".+?"/g,""),e.A.L===e.A.A.AG.length-1)){if(e.G.zcNodeInfo+="<script>\nif (!zingchart.IMAGEMAP) {zingchart.IMAGEMAP={};};if (!zingchart.IMAGEMAP.nodes) {zingchart.IMAGEMAP.nodes={};}\n",e.G.zcNodeInfo+='zingchart.IMAGEMAP.nodes["'+e.G.K+'"]={};\n',e.H3.length>0)for(n in e.G.UW)e.G.zcNodeInfo+='zingchart.IMAGEMAP.nodes["'+e.G.K+'"]["'+n+'"]={text:"'+e.G.UW[n].text+'",tooltipCss:"'+e.G.UW[n].tooltipCss+'"};\n',""!==e.G.UW[n].url&&(t=new RegExp('( id="'+n+'")',"g"),e.G.zcHtmlArea=e.G.zcHtmlArea.replace(t,' href="'+e.G.UW[n].url+'" target="'+e.G.UW[n].target+'"$1'));e.G.zcNodeInfo+="<\/script>\n"}e.D9=null,e.C.A9G=[],e.A._end_()}}),ZC.A44=ZC.LQ.CD({ACU:function(){return new ZC.QX(this)}}),ZC.A45=ZC.LQ.CD({ACU:function(){return new ZC.QY(this)}}),ZC.A8B=ZC.LQ.CD({ACU:function(){var e=new ZC.QX(this);return e.NG=!0,e}}),ZC.A8C=ZC.LQ.CD({ACU:function(){var e=new ZC.QY(this);return e.NG=!0,e}}),ZC.A0L=ZC.LQ.CD({ACU:function(){return new ZC.QZ(this)}}),ZC.A0M=ZC.LQ.CD({ACU:function(){return new ZC.R0(this)}}),ZC.ZK=ZC.LQ.CD({ACU:function(e){var i=this;switch(e){default:return new ZC.QX(i);case"vline":var n=new ZC.QX(i);return n.NG=!0,n;case"poly":var t=new ZC.PG(i);return t.bPoly=!0,t.sTypeX="poly",t;case"area":return new ZC.QY(i);case"varea":var a=new ZC.QY(i);return a.NG=!0,a;case"bar":case"vbar":return new ZC.QZ(i);case"hbar":return new ZC.R0(i);case"scatter":return new ZC.PG(i);case"hscatter":return new ZC.PG(i,"hscatter");case"bubble":return new ZC.S2(i);case"hbubble":return new ZC.S2(i,"hbubble");case"stock":return new ZC.VJ(i);case"range":return new ZC.T1(i);case"vrange":var l=new ZC.T1(i);return l.NG=!0,l;case"line3d":return new ZC.UQ(i);case"area3d":return new ZC.UR(i);case"bar3d":case"vbar3d":return new ZC.UP(i);case"bullet":case"vbullet":return new ZC.TJ(i);case"hbullet":return new ZC.TK(i)}}}),ZC.A6Q=ZC.LQ.CD({ACU:function(){return new ZC.PG(this)}}),ZC.ACF=ZC.LQ.CD({ACU:function(){var e=new ZC.PG(this);return e.bPoly=!0,e.sTypeX="poly",e}}),ZC.A5S=ZC.LQ.CD({ACU:function(){return new ZC.PG(this,"hscatter")}}),ZC.A7C=ZC.LQ.CD({ACU:function(){return new ZC.S2(this)}}),ZC.A6R=ZC.LQ.CD({ACU:function(){return new ZC.S2(this,"hbubble")}}),ZC.A58=ZC.LQ.CD({$i:function(e){this.b(e);var i=this;i.KP=[],i.PB=[],i.TS=[]},ACU:function(){return new ZC.W9(this)},parseLayout:function(e){var i,n,t,a,l=this;e&&(l.TS=[],l.PB=[]);var r,o=l.A.BM("scale-r"),A=l.A.BM("scale"),C=.9,s=1;l.A4.length>=10&&(s=1),l.A4.length>=20&&(s=1.25),l.A4.length>=30&&(s=1.5);var u=o.DK;for(i=0,n=l.A4.length;i<n;i++)null!==ZC._n_(l.A4[i].o["ref-angle"])&&(u=l.A4[i].DK);for(i=0,n=l.A4.length;i<n;i++)if(l.C.E["plot"+i+".visible"]||"hide"===l.C.getToggleAction())for(var Z=0,c=l.A4[i].S.length;Z<c;Z++)if(l.A4[i].S[Z]){l.YB["n"+Z]=l.YB["n"+Z]||[];var p,h,f=l.A4[i].S[Z];null===ZC._n_(l.PB[Z])&&(l.PB[Z]=u),p=null!==ZC._n_(a=l.A4[i].o["angle-start"])?ZC._f_(a):l.PB[Z],h=l.KP[Z],null!==ZC._n_(l.A4[i].o.totals)&&null!==ZC._n_(l.A4[i].o.totals[Z])&&(h=l.KP[Z]=ZC._f_(l.A4[i].o.totals[Z])),t=0===h?p+o.EM*(1/n):0===f.AC&&l.A4[i].TT?p+o.EM*(.005*l.KP[Z])/h:p+o.EM*f.AC/h,l.PB[Z]=t,f.B4=p,f.BL=t;var _=f.H1(!0);if("out"===_.o.placement&&_.AP){var d=ZC._i_((p+t)/2);l.YB["n"+Z][i]=d-u,r=ZC.CY(A.I/2-s*_.I-_.DX-35,A.F/2-s*_.F-_.DX-15),C=ZC.CY(C,2*r/ZC.CY(A.I,A.F))}}if("pie3d"===l.A.AF&&(C*=.75),C=ZC.BR(.1,ZC.CY(.9,C)),"auto"===A.o["size-factor"]&&(A.JU=C),e)for(var g in l.YB)l.YB[g]=ZC.AQ.ACI(l.YB[g],u)},parse:function(){var e=this;e.A.o.plot&&"auto"===e.A.o.plot.layout&&(null===ZC._n_(e.A.o.plot["ref-angle"])&&(e.A.o.plot["ref-angle"]=-90),e.o.sort(function(e,i){return i.values[0]-e.values[0]})),e.TS=[],e.KP=[],e.PB=[],e.YB={},e.b();for(var i=0,n=e.A4.length;i<n;i++)for(var t=0,a=e.A4[i].S.length;t<a;t++)e.A4[i].S[t]&&e.A4[i].S[t]&&(e.C.E["plot"+i+".visible"]||"hide"===e.C.getToggleAction())&&0===e.A4[i].S[t].AC&&e.A4[i].TT&&(e.KP[t]+=.005*e.KP[t]);e.parseLayout()}}),ZC.A59=ZC.LQ.CD({$i:function(e){this.b(e);this.KP=[],this.PB=[]},ACU:function(){return new ZC.U1(this)},parse:function(){var e=this;e.KP=[],e.PB=[],e.b();for(var i,n=e.A.BM("scale"),t=n.iX+n.I/2,a=1,l=0,r=e.A4.length;l<r;l++)if(e.C.E["plot"+l+".visible"]||"hide"===e.C.getToggleAction())for(var o=0,A=e.A4[l].S.length;o<A;o++)if(e.A4[l].S[o]){var C=e.A4[l].S[o];null===ZC._n_(e.PB[o])&&(e.PB[o]=e.A4[l].DK);var s=e.PB[o],u=s+360*C.AC/e.KP[o];e.PB[o]=u,C.B4=s,C.BL=u;var Z=C.H1(!0);if(Z&&"in"!==Z.o.placement){var c=ZC._i_((s+u)/2);i=((c>=0&&c<=90||c>=270&&c<=360?n.iX+n.I-(Z.I+25):n.iX+(Z.I+25))-t)/ZC.EF(c),a=ZC.CY(a,2*i/n.I),i=n.F/2-(Z.F/2+10),a=ZC.CY(a,2*i/n.F)}}a=ZC.BR(.15,ZC.CY(.85,a)),"auto"===n.o["size-factor"]&&(n.o["size-factor"]=n.JU=a)}}),ZC.A7X=ZC.LQ.CD({A23:{},$i:function(e){this.b(e)},ACU:function(){return new ZC.XH(this)},paint:function(){this.A23={},this.b()}}),ZC.A6T=ZC.A0L.CD({ACU:function(){return new ZC.TJ(this)}}),ZC.A6U=ZC.A0M.CD({ACU:function(){return new ZC.TK(this)}}),ZC.A81=ZC.LQ.CD({ACU:function(){return new ZC.XI(this)}}),ZC.A2C=ZC.LQ.CD({parse:function(){var e,i,n,t,a,l=this;for(l.B0=ZC.MAX,l.BF=-ZC.MAX,l.A7T=[],l.SD=[],l.b(),e=0,i=l.A4.length;e<i;e++)for(n=0,t=l.A4[e].S.length;n<t;n++)l.A4[e].S[n]&&(a=l.A4[e].S[n],null===ZC._n_(l.SD[n])&&(l.SD[n]=ZC.MAX),null===ZC._n_(l.A7T[n])&&(l.A7T[n]=-ZC.MAX),l.SD[n]=ZC.CY(l.SD[n],a.AC),l.A7T[n]=ZC.BR(l.A7T[n],a.AC));for(e=0,i=l.A4.length;e<i;e++)for(n=0,t=l.A4[e].S.length;n<t;n++)l.A4[e].S[n]&&(a=l.A4[e].S[n],l.B0=ZC.CY(l.B0,a.AC),l.BF=ZC.BR(l.BF,a.AC))}}),ZC.A6V=ZC.A2C.CD({ACU:function(){return new ZC.VB(this)}}),ZC.A6W=ZC.A2C.CD({ACU:function(){return new ZC.VC(this)}}),ZC.A84=ZC.LQ.CD({ACU:function(){return new ZC.VJ(this)}}),ZC.A85=ZC.LQ.CD({ACU:function(){return new ZC.XJ(this)}}),ZC.A87=ZC.LQ.CD({ACU:function(){return new ZC.T1(this)}}),ZC.ZCVRangePlotSet=ZC.LQ.CD({ACU:function(){var e=new ZC.T1(this);return e.NG=!0,e}}),ZC.A88=ZC.A58.CD({ACU:function(){return new ZC.XK(this)}}),ZC.A7I=ZC.A0L.CD({ACU:function(){return new ZC.UP(this)}}),ZC.A7J=ZC.A0M.CD({ACU:function(){return new ZC.WC(this)}}),ZC.A7K=ZC.A44.CD({ACU:function(){return new ZC.UQ(this)}}),ZC.A7L=ZC.A45.CD({ACU:function(){return new ZC.UR(this)}}),ZC.A8Z=ZC.LQ.CD({$i:function(e){this.b(e),this.E4=[],this.NZ=[],this.XD=[]},ACU:function(){return new ZC.Z0(this)},paint:function(){var e,i,n,t,a,l,r,o,A,C,s=this,u=s.A.BM("scale"),Z=ZC.CY(u.GH,u.GM),c=-ZC.MAX,p=ZC.CY(3,s.A4.length);for(e=0,i=p;e<i;e++)for(C=s.A4[e].S,a=ZC.AO.OA(s.A4[e].o["value-box"],s.A4[e].o),n=0,t=C.length;n<t;n++)C[n].setup(),c=ZC.BR(c,C[n].AC),C[n].WN=ZC.AO.G5(s.A4[e].ABV[n],a);var h=Z/(4*Math.sqrt(c/Math.PI));function f(e,i){var n=ZC._a_(e[0]-i[0]),t=ZC._a_(e[1]-i[1]);return Math.sqrt(n*n+t*t)}var _,d,g,v=[],B=[],E=[],b=[],D=null;for(s.NZ=[],e=0,i=p;e<i;e++)for(v[e]||(v[e]=[]),B[e]||(B[e]=[],E[e]=[]),s.E4[e]||(s.E4[e]=[]),C=s.A4[e].S,b=s.A4[e+1]&&e+1<3?s.A4[e+1].S:s.A4[0].S,n=0,t=C.length;n<t;n++){s.NZ[n]||(s.NZ[n]=[]),s.XD[n]||(s.XD[n]={}),C[n].WO=b[n].AC,0===e?(_=h*Math.sqrt(C[n].AC/Math.PI),d=h*Math.sqrt(C[n].WO/Math.PI),v[e][n]=h*ZC.AQ.A6G(C[n].AC,C[n].WO,C[n].WN),B[e][n]=C[n].iX-ZC.BR(_,d)/2,E[e][n]=C[n].iY+C[n].F/4):1===e?(v[e][n]=h*ZC.AQ.A6G(C[n].AC,C[n].WO,C[n].WN),B[e][n]=B[0][n]+v[0][n],E[e][n]=E[0][n],2===p&&(g=(B[0][n]-_-(u.GM-(B[1][n]+d)))/2,s.A4[e-1].S[n].iX-=g,B[1][n]-=g,s.E4[0][n].x-=g,s.NZ[n][0][0]-=g,s.A4[e-1].S[n].iY=u.iY+u.GH/2,E[1][n]=u.iY+u.GH/2,s.E4[0][n].y=u.iY+u.GH/2)):2===e&&(v[e][n]=h*ZC.AQ.A6G(C[n].AC,C[n].WO,C[n].WN),r=(v[0][n]*v[0][n]-v[1][n]*v[1][n]+v[2][n]*v[2][n])/(2*v[0][n]),B[e][n]=B[0][n]+r,o=Math.sqrt(v[2][n]*v[2][n]-r*r),E[e][n]=E[0][n]-o,3===p&&(g=(B[0][n]-_-(u.GM-(B[1][n]+d)))/2,s.A4[0].S[n].iX-=g,s.A4[1].S[n].iX-=g,s.E4[0][n].x-=g,s.E4[1][n].x-=g,s.NZ[n][0][0]-=g,B[2][n]-=g)),C[n].iX=B[e][n]+u.iX,C[n].iY=E[e][n],C[n].I=h*Math.sqrt(C[n].AC/Math.PI),C[n].F=h*Math.sqrt(C[n].AC/Math.PI),C[n].AI=h*Math.sqrt(C[n].AC/Math.PI),null===ZC._n_(D)&&(D=C[n].AC/(Math.PI*C[n].AI*C[n].AI));var F=h*Math.sqrt(C[n].AC/Math.PI),m=h*Math.sqrt(C[n].WO/Math.PI),Y=F+m-v[e][n],M=(2*Y*m-Y*Y)/(2*(F+m-Y)),I=Y-M;if(s.E4[e][n]={x:B[e][n],y:E[e][n],sz:C[n].AI,r1:F,r2:m,dx1:I,dx2:M},0===e?(o=Math.sqrt(F*F-(F-M)*(F-M)),s.NZ[n].push([B[0][n]+F-M,E[0][n]-o])):2===e&&(F=s.E4[1][n].r1,m=s.E4[1][n].r2,I=s.E4[1][n].dx1,M=s.E4[1][n].dx2,l=ZC.U4(Math.asin((E[1][n]-E[2][n])/v[1][n]))-ZC.U4(Math.acos((F-M)/F)),s.NZ[n].push([B[1][n]-F*ZC.EF(l)-g,E[1][n]-F*ZC.EL(l)]),F=s.E4[2][n].r1,m=s.E4[2][n].r2,I=s.E4[2][n].dx1,M=s.E4[2][n].dx2,l=ZC.U4(Math.asin((E[0][n]-E[2][n])/v[2][n]))-ZC.U4(Math.acos((m-I)/m)),s.NZ[n].push([B[0][n]+m*ZC.EF(l)-g,E[0][n]-m*ZC.EL(l)])),e===p-1)if(3===p){if(null!==ZC._n_(s.A4[0].A9L[n]))s.XD[n].area=s.A4[0].A9L[n];else{var K=[-1],X=[-1];K[1]=f(s.NZ[n][0],s.NZ[n][2]),K[2]=f(s.NZ[n][0],s.NZ[n][1]),K[3]=f(s.NZ[n][2],s.NZ[n][1]),X[1]=s.E4[0][n].sz,X[2]=s.E4[1][n].sz,X[3]=s.E4[2][n].sz;var x=.25*Math.sqrt((K[1]+K[2]+K[3])*(K[1]+K[2]-K[3])*(K[1]+K[3]-K[2])*(K[2]+K[3]-K[1]));for(A=1;A<=3;A++)x+=X[A]*X[A]*Math.asin(K[A]/(2*X[A]))-K[A]/4*Math.sqrt(4*X[A]*X[A]-K[A]*K[A]);s.XD[n].area=D*x}s.E4[0][n].intxy=ZC.AQ.A5L(s.E4[0][n].x,s.E4[0][n].y,s.E4[1][n].x,s.E4[1][n].y,s.E4[0][n].r1-(s.E4[0][n].dx1+s.E4[0][n].dx2)/2),s.E4[1][n].intxy=ZC.AQ.A5L(s.E4[1][n].x,s.E4[1][n].y,s.E4[2][n].x,s.E4[2][n].y,-(s.E4[1][n].r1-(s.E4[1][n].dx1+s.E4[1][n].dx2)/2)),s.E4[2][n].intxy=ZC.AQ.A5L(s.E4[2][n].x,s.E4[2][n].y,s.E4[0][n].x,s.E4[0][n].y,-(s.E4[2][n].r1-(s.E4[2][n].dx1+s.E4[2][n].dx2)/2)),s.XD[n].xy=[(s.NZ[n][0][0]+s.NZ[n][1][0]+s.NZ[n][2][0])/3,(s.NZ[n][0][1]+s.NZ[n][1][1]+s.NZ[n][2][1])/3]}else 2===p&&(s.E4[0][n].intxy=ZC.AQ.A5L(s.E4[0][n].x,s.E4[0][n].y,s.E4[1][n].x,s.E4[1][n].y,s.E4[0][n].r1-(s.E4[0][n].dx1+s.E4[0][n].dx2)/2),s.E4[1][n].intxy=[-9999,-9999])}if(3===p)for(e=0,i=p;e<i;e++)for(a=ZC.AO.OA(s.A4[e].o["value-box"],s.A4[e].o),null!==ZC._n_(a.decimals)&&-1!==a.decimals||(a.decimals=0),n=0,t=s.A4[e].S.length;n<t;n++)s.XD[n].area=ZC.AO.G5(s.XD[n].area,a);s.b()}});var I1={$i:function(e){this.b(e);var i=this;i.C=e.A,i.G=i.C.A,i.A63={},i.HT=!1,i.SW=3,i.A1B=1,i.V=[],i.K5={},i.S=[],i.AF="",i.sTypeX=null,i.IK=null,i.RQ=!1,i.J4="none",i.O8="plot",i.UX=!0,i.T2=null,i.T8=null,i.TV={},i.A2=null,i.GB=null,i.PR=null,i.PQ=null,i.BP=null,i.L=-1,i.BO=[],i.CG=!1,i.KT="normal",i.DZ=0,i.U=null,i.O2=null,i.A7=null,i.JB=null,i.AN=null,i.JA=null,i.A62=null,i.NV=null,i.DV=-1,i.I6=-1,i.RD=null,i.RY=null,i.A02=!1,i.SJ=2,i.A2R=!1,i.TN="",i.A05="standard",i.CW=null,i.A0Y=null,i.MW=null,i.RZ=null,i.XZ=!0,i.XN=null,i.YA=1,i.QE=!1,i.QU=!0,i.JW=0,i.XX=null,i.T3=null,i.PZ=!0,i.K9=null,i.AAC=1,i.A2G=1,i.S7=[],i.JC=null,i.EI=!1,i.T4=[],i.A6J=-1,i.GG=!1,i.LE=0,i.JH=.6,i.LF=0,i.ABU=0,i.ABW=null,i.TO=0,i.FY=null,i.GX=!1,i.YM=!0,i.A75=!1,i.XY=1,i.YO=0,i.I9=!1,i.LH=!1,i.A3J="node",i.LT=!1,i.R9=-1,i.RU=0,i.bShowInLegend=!0,i.QI=!1,i.GS=[null,null,null,null],i.P7="line",i.fValueBoxThreshold=.1},applyRGBA:function(){var e,i=this;null!==ZC._n_(e=i.E["l-alpha"])&&null===ZC._n_(i.J2.alpha)&&(i.C5=e),null!==ZC._n_(e=i.E["bg-alpha"])&&null===ZC._n_(i.J2["alpha-area"])&&(i.o["alpha-area"]=e)},FM:function(e,i,n){var t=this;return void 0===n&&(n=!1),(void 0===i||!t.GS[i]&&t.GS[1])&&(i=1),e=parseInt(e,10),!t.GX||"xy"!==t.C.AJ.layout&&"yx"!==t.C.AJ.layout?t.S[e]:t.S[e]&&t.GS[i]?(t.GS[i].K=t.K+"-node-"+e,t.GS[i].o={value:t.V[e]},"string"==typeof t.V[e]&&(t.GS[i].A22=!0),t.GS[i].L=e,t.GS[i].parse(),"line"===t.AF||"area"===t.AF||"vline"===t.AF||"varea"===t.AF?"xy"===t.C.AJ.layout?(null!==t.S[e].BV?t.GS[i].iX=t.S[e].iX=t.AZ.AR(t.S[e].BV):t.GS[i].iX=t.S[e].iX=t.AZ.II(e),t.CG&&"100%"===t.KT?t.GS[i].iY=t.S[e].iY=t.CQ.AR(100*t.S[e].CR/t.A.F9[e]["%total-"+t.DZ]):t.GS[i].iY=t.S[e].iY=t.CQ.AR(t.S[e].CR)):(null!==t.S[e].BV?t.GS[i].iY=t.S[e].iY=t.AZ.AR(t.S[e].BV):t.GS[i].iY=t.S[e].iY=t.AZ.II(e),t.CG&&"100%"===t.KT?t.GS[i].iX=t.S[e].iX=t.CQ.AR(100*t.S[e].CR/t.A.F9[e]["%total-"+t.DZ]):t.GS[i].iX=t.S[e].iX=t.CQ.AR(t.S[e].CR)):t.GS[i].R2(),t.GS[i].J1=t.S[e].J1,t.GS[i]):null},V9:function(e,i){var n=this;n.K9[e]||(n.K9[e]=[]),(!n.GX||n.GX&&-1===ZC.AV(n.K9[e],i))&&n.K9[e].push(i)},U2:function(){return new ZC.LM(this)},AC2:function(){return{}},O6:function(){return this.YD("palette","A6J","i"),this.C.A.B6.A9Z(-1!==this.A6J?this.A6J:this.L,this.C.AF)},NR:function(){var e=this;if(e.BP[5]){for(var i in e.BP[5])i===e.AF&&ZC._cp_(e.BP[5][i],e.o,!0,!0)}var n=[];e.C.A.B6.load(n,"("+e.C.AF+").series",!0,!0),ZC._n_(n)&&ZC._cp_(n[this.L%n.length],e.o,!0,!0)},IJ:function(e,i){var n,t,a=this,l=!1,r="";if("none"!==a.J4&&(a.C.IY[a.L]||a.C.KL)){var o=!(e.E["selected-state"]||e.E["background-state"]);a.C.CF["p"+a.L]&&a.C.CF["p"+a.L]["n"+e.L]?zingchart.DEV.CACHESELECTION&&o&&a.TV["selected-state"]?(t=a.TV["selected-state"],l=!0):(r="selected-state",(t=new ZC.DQ(a)).copy(i),e.E["selected-state"]?t.LR=e.E["selected-state"]:t.LR=a.T2?a.T2.o:{}):"none"!==a.O8&&("plot"===a.O8&&a.C.IY[a.L]||"graph"===a.O8&&a.C.KL)&&(zingchart.DEV.CACHESELECTION&&o&&a.TV["background-state"]?(t=a.TV["background-state"],l=!0):(r="background-state",(t=new ZC.DQ(a)).copy(i),e.E["background-state"]?t.LR=e.E["background-state"]:t.LR=a.T8?a.T8.o:{})),l||(t?(t.PZ=!0,t.parse()):(t=new ZC.DQ(a)).copy(i),zingchart.DEV.CACHESELECTION&&o&&""!==r&&(a.TV[r]=t))}else(t=new ZC.DQ(a)).copy(i);return null!==ZC._n_(n=a.T4[e.L])&&(0===e.A.E6.length&&(e.A.E6=[{}]),"string"==typeof a.T4[e.L]?t.append({"background-color":n+" "+ZC.AO.JR(n,20),"line-color":n,"border-color":ZC.AO.JR(n,20)}):t.append(a.T4[e.L]),t.parse()),t.Z=i.Z,t.C8=i.C8,t},BW:function(e){var i=this,n=[];if(null!==ZC._n_(e))for(var t=0,a=i.BO.length;t<a;t++){var l=i.C.BM(i.BO[t]);l&&l.AF===e&&n.push(i.BO[t])}else n=i.BO;return n},MU:function(){var e=this;return{negation:e.A05,"thousands-separator":e.RD,"decimals-separator":e.RY,decimals:e.DV,"max-decimals":e.I6,short:e.A2R,"short-unit":e.TN,exponent:e.A02,"exponent-decimals":e.SJ,locale:e.G.UG}},parse:function(){var e,i,n,t=this;if(t.UL={},t.b(),t.K9={},null!==ZC._n_(e=t.o.scales))for(t.BO=e.split(/,|;|\s/),p=0;p<t.BO.length;p++)t.BO[p]=ZC.US(ZC.GY(t.BO[p]));if(t.C.o.legend&&t.C.o.legend["highlight-plot"])t.I9=!0;else{var a={};t.G.B6.load(a,"("+t.A.AF+").legend"),a["highlight-plot"]&&(t.I9=!0)}if(null!==ZC._n_(t.o.multiplier)&&null===ZC._n_(t.o.short)&&(t.o.short=t.o.multiplier),null!==ZC._n_(t.o["click-marker"])&&null===ZC._n_(t.o["selection-mode"])&&null===ZC._n_(t.o["selected-marker"])&&(t.o["selection-mode"]="multiple",t.o["selected-marker"]={},ZC._cp_(t.o["click-marker"],t.o["selected-marker"])),t.KT=t.C.KT,t.assign_a([["ignore","HT","b"],["exponent","A02","b"],["exponent-decimals","SJ","ia"],["decimals","DV","ia"],["max-decimals","I6","i"],["preview","QU","b"],["stacked","CG","b"],["stack-type","KT"],["exact","QE","b"],["text","AN"],["tooltip-text","JA"],["legend-text","A62"],["description","NV"],["stack","DZ","i"],["z-index","JW","i"],["aspect","CW"],["mode","A0Y"],["density","XY","f"],["max-nodes","MW"],["max-trackers","RZ"],["segment-trackers","XZ","b"],["sampling-step","XN","i"],["scroll-step-multiplier","YA","i"],["url","E9"],["target","FD"],["decimals-separator","RY"],["thousands-separator","RD"],["short","A2R","b"],["negation","A05"],["short-unit","TN"],["fast-rules","A75","b"],["errors","S7"],["styles","T4"],["monotone","QI","b"],["highlight","I9","b"],["highlight-legend","LH","b"],["hover-mode","A3J"],["mid-point","UX","b"],["clustered","LT","b"],["cluster-index","R9","i"],["cluster-offset","RU","i"],["selection-mode","J4"],["group-selections","RQ","b"],["background-mode","O8"],["extra-values","YO","ia"],["value-box-threshold","fValueBoxThreshold","f"]]),t.AAP=t.QE,!t.E["quick-parse"]){for(var l in ZC._todash_(t.T4),t.I9&&(null===ZC._n_(t.C.o.legend)||null===ZC._n_(t.C.o.legend["highlight-legend"]))&&ZC._n_(null===t.o["highlight-legend"])&&(t.LH=t.I9),-1!==ZC.AV(["line","area","vbar","hbar","stock","scatter","bubble","radar","piano"],t.AF)&&("fast"===t.A0Y?t.GX=!0:"normal"===t.A0Y||t.GG||-1!==JSON.stringify(t.o).indexOf('"rules"')||-1!==JSON.stringify(t.o).indexOf('"js-rule"')||0!==t.T4.length||-1!==t.G.E.json.indexOf('"override"')||-1!==t.G.E.json.indexOf('"errors"')||"none"!==t.J4?t.GX=!1:t.GX=!0),t.o)if("data-"===l.substring(0,5)){var r=l.substring(5);t.K5[r]=t.o[l]}var o=t.G.B6;if(t.I9&&(t.SA=new ZC.CZ(t),o.load(t.SA.o,E("highlight-state")),t.SA.append(t.o),null!==ZC._n_(e=t.o["highlight-state"])&&t.SA.append(e),null===ZC._n_(t.SA.o.shadow)&&(t.SA.o.shadow=!0)),null!==ZC._n_(e=t.o["selected-state"])&&(t.T2=new ZC.CZ(t),o.load(t.T2.o,E("selected-state")),t.T2.append(e)),null!==ZC._n_(e=t.o["background-state"])&&(t.T8=new ZC.CZ(t),o.load(t.T8.o,E("background-state")),t.T8.append(e)),t.A2=new ZC.CZ(t),o.load(t.A2.o,E("marker")),o.load(t.A2.o,E("marker["+t.CW+"]")),t.A2.append(t.o.marker),"auto"===t.A2.o.type){var A=["circle","square","diamond","triangle","star5"];t.A2.o.type=A[t.L%A.length]}if(t.A2.parse(),(t.A2.E6.length>0||t.T4.length>0||t.A2.o["top-state"])&&(t.YM=!1),null!==ZC._n_(e=t.o["selected-marker"])&&(t.PR=new ZC.CZ(t),o.load(t.PR.o,E("selected-marker")),t.PR.append(e)),null!==ZC._n_(e=t.o["background-marker"])&&(t.PQ=new ZC.CZ(t),o.load(t.PQ.o,E("background-marker")),t.PQ.append(e)),t.I9&&(t.V4=new ZC.CZ(t),t.V4.append(t.o.marker),o.load(t.V4.o,E("highlight-marker")),t.V4.append(e)),"normal"!==t.A0Y&&(t.T2||t.PR)&&(t.GX=!1),"fast"===t.A0Y&&(t.GX=!0),t.A7=new ZC.DQ(t),t.o.tooltip&&t.o.tooltip.placement&&t.o.tooltip.placement.indexOf("node")>-1?o.load(t.A7.o,"("+t.AF+").tooltip[dynamic]"):o.load(t.A7.o,t.AF+".tooltip"),t.A7.append(t.o.tooltip),null!==ZC._n_(e=t.o.error)&&(t.JC=new ZC.DT(t),o.load(t.JC.o,E("error")),t.JC.append(e),null===ZC._n_(t.JC.o.size)&&(t.JC.o.size=4)),null!==ZC._n_(e=t.o["value-box"])){if(e instanceof Array)for(t.U=new ZC.CZ(t),o.load(t.U.o,E("value-box")),null!==ZC._n_(i=t.C.o.plot)&&t.U.append(i["value-box"]),t.U.append(e[0]),e.length>1&&(t.O2=[]),p=1;p<e.length;p++)t.O2[p-1]=new ZC.CZ(t),o.load(t.O2[p-1].o,E("value-box")),null!==ZC._n_(i=t.C.o.plot)&&t.O2[p-1].append(i["value-box"]),t.O2[p-1].append(e[p]);else t.U=new ZC.CZ(t),o.load(t.U.o,E("value-box")),null!==ZC._n_(i=t.C.o.plot)&&t.U.append(i["value-box"]),t.U.append(e);t.U.parse()}t.G.QQ&&(t.AP=ZC.FSSTATUS["g-"+t.C.L+"-p-"+t.L]);var C=!1;for("undefined"==typeof t.C.E["plot"+t.L+".visible"]&&(C=!0),C?t.C.E["plot"+t.L+".visible"]=!0:t.AP=t.C.E["plot"+t.L+".visible"],t.AP||C&&(t.C.E["plot"+t.L+".visible"]=!1),p=0,n=t.C.BO.length;p<n;p++)null!==ZC._n_(t.C.BO[p].o.values)?t.C.BO[p].TF=!0:-1!==ZC.AV(t.BO,t.C.BO[p].BD)&&("remove"===t.C.getToggleAction()||t.C.A.KD?t.AP&&t.C.E["plot"+t.L+".visible"]&&(t.C.BO[p].TF=!0):t.C.BO[p].TF=!0);var s,u=null;if(t.K=t.A.K+"-plot-"+t.L,t.S=[],t.A.F9||(t.A.F9={}),-1!==t.AF.indexOf("area")&&-1===t.AF.indexOf("3d")&&t.CG){t.A.WS||(t.A.WS={}),t.A.WS["s"+t.DZ]||(t.A.WS["s"+t.DZ]=[]);var Z=!1;if(null!==ZC._n_(t.o.values))for(p=0,n=t.o.values.length;p<n;p++)if("object"==typeof t.o.values[p]&&null!==ZC._n_(t.o.values[p])){Z=!0;break}Z&&(t.GG=!1,t.HZ||0!==t.E6.length||(t.GX=!0,-1===zingchart.DEV.STACKINGLOGIC&&(t.C.UM=1)))}if(t.AZ=t.C.BM(t.BW("k")[0]),t.CQ=t.C.BM(t.BW("v")[0]),null!==ZC._n_(t.o.values)&&""!==t.AF){if(t.V=t.o.values,t.GX&&"area"===t.AF&&"spline"===t.CW){for(var c=!1,p=0;p<t.V.length;p++)if(null===ZC._n_(t.V[p])){c=!0;break}c&&(t.GX=!1)}var h=null;t.Q4=[ZC.MAX,-ZC.MAX];var f=[],_=[],d=0;for(p=0,n=t.V.length;p<n;p++){var g=!1;if(t.o["hint-ts"]||(null!==ZC._n_(t.V[p])&&"object"==typeof t.V[p]&&t.V[p].length>1?(null===ZC._n_(t.V[p][1])||"string"==typeof t.V[p][1]&&"NULL"===t.V[p][1].toUpperCase())&&(g=!0):(null===ZC._n_(t.V[p])||"string"==typeof t.V[p]&&"NULL"===t.V[p].toUpperCase())&&(g=!0),"piano"===t.C.AF&&(g=!1)),g)t.S.push(null);else{!t.GX||"xy"!==t.C.AJ.layout&&"yx"!==t.C.AJ.layout?u=t.U2():t.GS[1]||("bubble"===t.AF||"scatter"===t.AF?t.GS[1]=u=t.U2():(t.GS[0]=t.U2(),t.GS[1]=u=t.U2(),t.GS[2]=t.U2(),t.GS[3]=t.U2())),u.K=t.K+"-node-"+p,"string"==typeof t.V[p]&&zingchart.QUOTEDVALUES&&(t.V[p]=ZC._f_(t.V[p])),u.o={value:t.V[p]},"string"==typeof t.V[p]&&(u.A22=!0),u.L=p,t.o["hint-ts"]?(u.E.plotidx=t.L,u.E.nodeidx=u.L,u.K=t.K+"-node-"+u.L,u.BV=t.V[p][0],u.AC=t.V[p][1]):u.parse(),(n<256||zingchart.DEV.CHECKDECIMALS)&&null!==ZC._n_(u.AC)&&2===(s=u.AC.toString().split(".")).length&&(d=ZC.BR(d,s[1].length)),u.BV&&(null!==h&&ZC._a_(u.BV-h)>0&&f.push(ZC._a_(u.BV-h)),h=u.BV),t.A.WS=t.A.WS||{};var v=t.A.WS["s"+t.DZ];if(v&&(null!==h?-1===ZC.AV(v,u.BV)&&v.push(u.BV):-1===ZC.AV(v,p)&&v.push(p)),!t.GX||"xy"!==t.C.AJ.layout&&"yx"!==t.C.AJ.layout)t.S.push(u);else{var B={iX:u.iX,iY:u.iY,L:u.L,BV:u.BV,AC:u.AC,CR:u.AC,DU:u.DU,J1:u.J1};"bubble"===t.AF&&(B.SQ=u.SQ),t.S.push(B)}null!==u.BV&&(t.Q4[0]=Math.min(t.Q4[0],u.BV),t.Q4[1]=Math.max(t.Q4[1],u.BV)),t.C.E["plot"+t.L+".visible"]&&(zingchart.DEV.PLOTSTATS||"100%"===t.KT)&&t.CG&&(null===ZC._n_(t.A.F9[p])?(t.A.F9[p]={},t.A.F9[p]["%total-"+t.DZ]=u.AC):null===ZC._n_(t.A.F9[p]["%total-"+t.DZ])?t.A.F9[p]["%total-"+t.DZ]=u.AC:t.A.F9[p]["%total-"+t.DZ]+=u.AC),zingchart.DEV.PLOTSTATS&&(_.push(u.AC),t.JB?(t.JB["%plot-max-index"]=p,t.JB["%plot-sum"]+=u.AC,n<256&&(t.JB["%plot-values"]+=","+u.AC)):t.JB={"%plot-min-index":p,"%plot-max-index":p,"%plot-sum":u.AC,"%plot-values":u.AC},t.A.F9||(t.A.F9={}),t.AP&&(null===ZC._n_(t.A.F9["%pstack-"+p+"-"+t.DZ+"-sum"])?(t.A.F9["%pstack-"+p+"-"+t.DZ+"-sum"]=u.AC,t.A.F9["%pstack-"+p+"-"+t.DZ+"-stack-length"]=1):(t.A.F9["%pstack-"+p+"-"+t.DZ+"-sum"]+=u.AC,t.A.F9["%pstack-"+p+"-"+t.DZ+"-stack-length"]+=1)))}}(t.V.length<256||zingchart.DEV.CHECKDECIMALS)&&t.JB&&null!==ZC._n_(t.JB["%plot-sum"])&&2===(s=t.JB["%plot-sum"].toString().split(".")).length&&ZC._i_(s[1])>d&&(t.JB["%plot-sum"]=ZC._f_(t.JB["%plot-sum"].toFixed(ZC.CY(20,d)))),zingchart.DEV.PLOTSTATS?(t.JB&&(t.JB["%plot-average"]=t.JB["%plot-sum"]/t.V.length,t.JB["%plot-average"]=ZC._f_(t.JB["%plot-average"].toFixed(ZC.CY(20,d+2)))),_.length>0&&(t.JB["%plot-min-value"]=ZC.Y4(_),t.JB["%plot-max-value"]=ZC.A1U(_))):t.JB={"%plot-min-index":0,"%plot-max-index":t.V.length,"%plot-sum":-1,"%plot-values":"","%plot-average":-1,"%plot-min-value":-1,"%plot-max-value":-1},h&&f.length>0&&(t.AAC=ZC.Y4(f),t.A2G=ZC.A1U(f))}}function E(e){var i=["("+t.AF+").plot."+e];return t.sTypeX&&i.push("("+t.sTypeX+").plot."+e),i}},mapPointsToPreview:function(e,i){for(var n=this,t=n.C.P,a=n.C.B7.AT,l=[],r=0,o=e.length;r<o;r++)if(e[r]){"vml"===n.G.AB&&i&&(e[r][0]=e[r][0]/10,e[r][1]=e[r][1]/10);var A=(e[r][0]-t.iX)/t.I,C=(e[r][1]-t.iY)/t.F,s=a.iX+a.AU+A*(a.I-2*a.AU),u=a.iY+a.AU+C*(a.F-2*a.AU);l.push([s,u])}else l.push(null);return l},paint:function(){var e=this,i=e.C.P.I;switch(e.C.AF){case"scatter":case"bubble":i=1e6;break;case"hbar":case"hbar3d":i=e.C.P.F}null===ZC._n_(e.MW)&&(e.MW=ZC._i_(i/4)),null===ZC._n_(e.RZ)&&(e.RZ=ZC._i_(i/4)),e.YM&&(e.HH=null,e.HN=null,e.RE=null,e.QF=null)},XT:function(e){var i,n,t,a=this;for(i=0,n=a.S.length;i<n;i++)a.S[i]&&(a.S[i].J1=!1);var l=a.C.P;if(a.R8=!1,a.FV=!0,a.U8=!1,t=0,a.C.OG||"undefined"!=typeof a.AAP&&(a.QE=a.AAP),e)a.R8=!0,a.RZ<a.S.length&&(a.FV=!1);else{if(a.AZ.EI&&a.EI){for(i=0,n=a.S.length;i<n;i++)a.S[i]&&(a.AZ.IU.length>0||ZC.DS(a.S[i].BV,a.AZ.V[a.AZ.W],a.AZ.V[a.AZ.A1]))&&t++;a.RZ<t&&(a.FV=!1),t*a.XY>l.I&&(a.U8=!0),a.MW>=t&&(a.R8=!0)}else a.MW>a.AZ.A1-a.AZ.W&&(a.R8=!0);a.Y=1,a.AZ.EI&&a.EI||(t=a.AZ.A1-a.AZ.W,a.RZ<t&&(a.FV=!1),t*a.XY>l.I&&(a.U8=!0),!a.QE&&t*a.XY>l.I&&(a.Y=ZC.BR(1,ZC._i_(t*a.XY/l.I))))}null!==ZC._n_(a.XN)&&a.Y>a.XN&&(a.Y=a.XN)},PI:function(e){var i,n,t,a=this;null!==ZC._n_(e)&&e||(e=!1),a.AZ&&"log"===a.AZ.BS&&(e=!0),a.XT(e);var l=null;if(e||a.LT)a.A.A4K=!1,function p(e,i){for(var n=e;n<ZC.CY(e+i,a.S.length);n++)a.S[n]?((l=a.FM(n)).Z=a.KI,l.paint(),l.paint_(),l.J1=!0,a.S[n].J1=!0):"radar"===a.C.AF&&(n===a.S.length-1?"line"!==a.CW&&"area"!==a.CW&&"range"!==a.CW||ZC.CO.paint(a.OD,a,a.D):a.D.push(null));e+i<a.S.length?(a.C.KU,p(e+i,i)):a.C.KU&&a.L===a.A.A4.length-1&&a.A._end_()}(0,ZC.ie678||ZC.mobile?200:2e3);else{var r="vbar"!==a.AF&&"hbar"!==a.AF;if(a.AZ.EI&&a.EI){t=a.GC=a.HK=a.Y;var o=!0,A=0,C=0;for(i=0,n=a.S.length;i<n;i+=t)r&&(n-i==1?(a.GC=t,a.HK=1):n-i<a.Y&&(a.GC=a.Y,a.HK=n-i-1,t=n-i-1)),a.S[i]&&(a.AZ.IU.length>0||ZC.DS(a.S[i].BV,a.AZ.V[a.AZ.W],a.AZ.V[a.AZ.A1])||r&&o&&a.S[i+t]&&a.S[i+t].BV>=a.AZ.V[a.AZ.W])&&(r&&o&&a.S[i-t]&&((l=a.FM(i-t)).Z=a.KI,l.paint(),l.paint_(),l.J1=!0,o=!1,C++),(l=a.FM(i)).Z=a.KI,l.paint(),l.J1=!0,a.S[i].J1=!0,C++,o=!1,A=i);r&&C>0&&a.S[A+t]&&((l=a.FM(A+t)).Z=a.KI,l.paint(),l.paint_(),l.J1=!0)}else{t=a.GC=a.HK=a.Y;var s=0,u=1,Z=null;if(!r){var c="vbar"===a.AF?a.C.P.I:a.C.P.F;s=4/("vbar"===a.AF?a.C.P.F:a.C.P.I)*(a.CQ.BF-a.CQ.B0),u=1+ZC._i_((a.AZ.A1-a.AZ.W)/(2*c)),t=1}for(i=a.AZ.W;i<=a.AZ.A1;i+=t)(a.AZ.A1-a.AZ.W)%a.Y!=0&&r&&(a.AZ.A1-i==0?(a.GC=t,a.HK=1):a.AZ.A1-i<=a.Y&&(a.GC=a.Y,a.HK=a.AZ.A1-i,t=a.AZ.A1-i)),a.S[i]?(l=a.FM(i),(r||a.QE||!r&&null===Z||ZC._a_(l.AC-Z)>s||i%u==0)&&(l.Z=a.KI,l.paint(),l.paint_(),l.J1=!0,a.S[i].J1=!0),Z=l.AC):a.CG&&-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],a.AF)&&a.SU()}}},CS:function(e,i){var n=this;if(n.UL[e+i])return n.UL[e+i];var t=null;return t=n.G.usc()?ZC.AL(n.G.K+"-main-c"+("fl"===e?"-top":"")):n.G.KD||n.C.AJ["3d"]?ZC.AL(n.C.K+"-plots-"+e+"-c"):ZC.AL(n.C.K+"-plot-"+n.L+"-"+e+"-"+i+"-c"),n.UL[e+i]||(n.UL[e+i]=t),t},V6:function(e){var i=this;return{id:i.G.K,graphid:i.C.K,graphidx:i.C.L,plotid:i.HA,plotindex:i.L,plottext:i.AN,ev:e?ZC.A3.C1(e):null,xdata:i.K5}},X5:function(e,i){},applyJsRuleSvg:function(e,i,n){},sharedZScale:function(){var e=this,i=e.C,n=i.P;if(i.o["scale-z"]&&i.E["plot"+e.L+".visible"]){var t,a,l,r,o;if(t=new ZC.CE(i,n.iX+n.I-ZC.AM.E1+10,n.iY+n.F-ZC.AM.E2,e.E["z-mid"]),(a=new ZC.DQ(e)).GN=i.K+"-scale-z-item "+i.K+"-scale-item zc-scale-item",a.K=i.K+"-scale-z-item_"+e.L,a.AN=i.o["scale-z"].values[e.L],a.Z=a.C8=e.A.Z,o=i.AEF.getContext("2d"),a.IP=e.G.usc()?ZC.AL(e.G.K+"-main"):ZC.AL(e.G.K+"-text"),a.append(i.o["scale-z"].item),a.parse(),a.AA+=a.VA?0:ZC.DL.A38(i,a),a.iX=t.EC[0],a.iY=t.EC[1],a.o["auto-align"]&&a.VA&&(a.iY-=a.F/2),a.paint(),null===ZC._n_(e.E["scale-z-item-max-width"])&&(e.E["scale-z-item-max-width"]=0),e.E["scale-z-item-max-width"]=ZC.BR(e.E["scale-z-item-max-width"],a.I),e.E["z-cnt"]===e.E["z-plots"]-1&&i.o["scale-z"].label){var A,C;t=new ZC.CE(i,n.iX+n.I-ZC.AM.E1+20+e.E["scale-z-item-max-width"],n.iY+n.F-ZC.AM.E2,ZC.AM.FE/2),(a=new ZC.DQ(e)).GN=i.K+"-scale-z-label "+i.K+"-scale-label zc-scale-label",a.K=i.K+"-scale-z-label",a.Z=a.C8=e.A.Z,o=i.AEF.getContext("2d"),a.IP=e.G.usc()?ZC.AL(e.G.K+"-main"):ZC.AL(e.G.K+"-text"),a.append(i.o["scale-z"].label),a.parse(),A=new ZC.CE(i,n.iX+n.I-ZC.AM.E1,n.iY+n.F-ZC.AM.E2,0),C=new ZC.CE(i,n.iX+n.I-ZC.AM.E1,n.iY+n.F-ZC.AM.E2,ZC.AM.FE);var s=ZC.U4(Math.atan((C.EC[1]-A.EC[1])/(C.EC[0]-A.EC[0])));a.AA+=a.VA?0:s,a.iX=t.EC[0],a.iY=t.EC[1],a.paint()}if(i.o["scale-z"].tick&&((r=new ZC.DT(e)).B9="#cccccc",r.B1=1,r.AI=6,r.append(i.o["scale-z"].tick),r.parse(),r.AP&&r.B1>0)){r.K=i.K+"-scale-z-tick-"+e.L;for(var u=[],Z=[[n.iX+n.I,n.iY+n.F],[n.iX+n.I+r.AI,n.iY+n.F]],c=0;c<Z.length;c++)t=new ZC.CE(i,Z[c][0]-ZC.AM.E1,Z[c][1]-ZC.AM.E2,e.E["z-mid"]),u.push([t.EC[0],t.EC[1]]);ZC.CO.paint(o,r,u)}if(0===e.E["z-cnt"]&&((r=new ZC.CZ(e)).B9="#cccccc",r.B1=1,r.append(i.o["scale-z"].axis),r.parse(),r.B1>0&&r.AP&&(r.A0=r.AE=r.B9,(l=ZC.DL.DD(r,i,n.iX+n.I-ZC.AM.E1-r.B1,n.iX+n.I-ZC.AM.E1,n.iY+n.F-ZC.AM.E2,n.iY+n.F-ZC.AM.E2,0,ZC.AM.FE,"x")).K=i.K+"-scale-z-axis",i.CN.add(l))),e.E["z-cnt"]>0&&i.o["scale-z"].guide&&((r=new ZC.CZ(e)).B9="#cccccc",r.B1=1,r.append(i.o["scale-z"].guide),r.parse(),r.B1>0&&r.AP&&(r.A0=r.AE=r.B9,(l=ZC.DL.DD(r,i,n.iX-ZC.AM.E1,n.iX+n.I-ZC.AM.E1,n.iY+n.F-ZC.AM.E2,n.iY+n.F-ZC.AM.E2+r.B1,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"],"y")).K=i.K+"-scale-z-guideh-"+e.L,i.CN.add(l),(l=ZC.DL.DD(r,i,n.iX-ZC.AM.E1,n.iX-ZC.AM.E1,n.iY-ZC.AM.E2,n.iY+n.F-ZC.AM.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+r.B1,"y")).K=i.K+"-scale-z-guidev-"+e.L,i.CN.add(l))),i.o["scale-z"].items&&i.o["scale-z"].items.length){(r=new ZC.CZ(e)).A0=r.AE="#ff9900",r.C5=.25;var p=e.E["z-cnt"]%i.o["scale-z"].items.length;r.append(i.o["scale-z"].items[p]),r.parse(),(l=ZC.DL.DD(r,i,n.iX-ZC.AM.E1,n.iX+n.I-ZC.AM.E1,n.iY+n.F-ZC.AM.E2,n.iY+n.F-ZC.AM.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+e.E["z-depth"],"z")).K=e.K+"-item-",i.CN.add(l)}}},gc:function(){if(this.S)for(var e=0;e<this.S.length;e++)this.S[e]&&this.S[e].A&&ZC.AO.gc(this.S[e],["Z","C8","o","J2","IB","A","C","G","O","L9"]);ZC.AO.gc(this,["V","S","GS","K9","V3","A7","Z","C8","UL","A2","TU","HH","GB","IK","KI","OD","AZ","CQ","S","GS","K9","JB","o","J2","IB","A","C","G"])}};ZC.I1=ZC.HU.CD(I1),ZC.W8=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.bXY=!0,i.AF="xy",i.BO=["scale-x","scale-y"]},paint:function(){this.b()}}),ZC.QX=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.AF="line",i.CW="segmented",i.Y=1,i.SR="middle",i.V3=[],i.N6=!0,i.NG=!1},U2:function(){return new ZC.A30(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.NR(),e.b(),e.assign_a([["step-start","SR"],["smart-sampling","N6","b"]]),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},paint:function(){var e,i,n,t,a,l,r,o=this;o.b(),o.V3=[];var A=o.NG;if(o.KI=o.C.AEF,o.OD=o.C.AEF.getContext("2d"),!o.GX||o.C.AJ["3d"])o.PI(),o.D=null;else{o.XT(),o.C8=o.C.AEG;var C=!0;(null!==ZC._n_(o.A2.o.visible)&&!ZC._b_(o.A2.o.visible)||null!==ZC._n_(o.A.o.type)&&"none"===o.A2.o.type)&&(C=!1);var s=[],u=[],Z=[],c=!0,p=0,h=null;t=0;var f=-1,_=-1,d=o.A.A4[0].S7&&o.A.A4[0].S7.length,g=o.Y,v=o.CW;if(o.Y>1&&"spline"===v&&(v="segmented"),o.AZ.EI&&o.EI){for(n=o.Y,o.N6&&(n=1),e=0,i=o.S.length;e<i;e+=n)_-e<=o.Y&&(n=ZC.BR(1,_-e)),o.S[e]&&(o.AZ.IU.length>0||ZC.DS(o.S[e].BV,o.AZ.V[o.AZ.W],o.AZ.V[o.AZ.A1])||c&&o.S[e+n]&&o.S[e+n].BV>=o.AZ.V[o.AZ.W])&&(c&&o.S[e-n]&&(-1===f&&(f=e-n),_=e-n,c=!1,p++),-1===f&&(f=e),_=e,p++,c=!1,t=e);p>0&&o.S[t+n]&&(-1===f&&(f=t+n),_=t+n,o.S[t+n].J1=!0)}else f=o.AZ.W,_=o.LT||"log"===o.AZ.BS?o.S.length:o.AZ.A1;o.Y=g;var B=-1;n=o.Y,o.N6&&(n=1);var E=null,b=null,D=0,F=1;t=f,A?_-f>o.C.P.F&&(D=4/o.C.P.I*(o.CQ.BF-o.CQ.B0),F=ZC._f_((_-f)/(4*o.C.P.F))):_-f>o.C.P.I&&(D=4/o.C.P.F*(o.CQ.BF-o.CQ.B0),F=ZC._f_((_-f)/(4*o.C.P.I))),o.o["sampling-threshold"]&&(D*=Math.max(1,(_-f)/ZC._i_(o.o["sampling-threshold"])),F*=Math.max(1,(_-f)/ZC._i_(o.o["sampling-threshold"])));for(o.D=[],e=f;e<=_;e+=n){var m=!1;if(((_-f)%o.Y!=0||o.AZ.EI&&o.EI)&&_-e<=o.Y&&(n=ZC.BR(1,_-e),m=!0),o.N6&&!m&&o.S[e])if(null===ZC._n_(E))E=o.S[e].CR,t=e,b=0;else{if(Math.abs(o.S[e].CR-E)<D&&e-t<F&&(!o.EI||o.S[e].BV-b<4*o.AZ.SK))continue;E=o.S[e].CR,b=o.S[e].BV,t=e}if(0,h=o.FM(e)){switch(o.S[e].J1=!0,(o.FV||o.LT)&&h.paint(!0),h.paint_(),-1===B&&(B=h.iX),v){default:s.push([h.iX,h.iY]);break;case"spline":A?(u.push(h.iX),Z.push(h.iY),1===u.length&&(u.push(h.iX),Z.push(h.iY))):(u.push(h.iY),Z.push(h.iX),1===u.length&&(u.push(h.iY),Z.push(h.iX)));break;case"stepped":switch(o.SR){default:(l=o.FM(e-n,0))&&(l.setup(),a=ZC.AQ.K1(o.S[e-n].iX,o.S[e-n].iY,h.iX,h.iY),s.push(A?[h.iX,a[1]]:[a[0],h.iY])),s.push([h.iX,h.iY]),(r=o.FM(e+n,0))&&(r.setup(),a=ZC.AQ.K1(h.iX,h.iY,o.S[e+n].iX,o.S[e+n].iY),s.push(A?[h.iX,a[1]]:[a[0],h.iY]));break;case"before":(l=o.FM(e-n,0))&&(l.setup(),s.push([o.S[e-n].iX,o.S[e-n].iY],[o.S[e-n].iX,h.iY])),s.push([h.iX,h.iY]);break;case"after":s.push([h.iX,h.iY]),(r=o.FM(e+n,0))&&(r.setup(),s.push([o.S[e+n].iX,h.iY],[o.S[e+n].iX,o.S[e+n].iY]))}break;case"jumped":(l=o.FM(e-n,0))?(l.setup(),a=ZC.AQ.K1(o.S[e-n].iX,o.S[e-n].iY,h.iX,h.iY),s.push(A?[h.iX,a[1]]:[a[0],h.iY])):s.push(A?[h.iX,h.iY-o.AZ.AD/2]:[h.iX-o.AZ.AD/2,h.iY]),s.push([h.iX,h.iY]),(r=o.FM(e+n,0))?(r.setup(),a=ZC.AQ.K1(h.iX,h.iY,o.S[e+n].iX,o.S[e+n].iY),s.push(A?[h.iX,a[1]]:[a[0],h.iY])):s.push(A?[h.iX,h.iY+o.AZ.AD/2]:[h.iX+o.AZ.AD/2,h.iY]),s.push(null)}d&&h.N9(ZC.Q.EE(o.C.AEF,o.G.AB)),(o.R8&&C||o.FV||o.U)&&h.PK(),h.J1=!0}else null!==ZC._n_(o.o["connect-nulls"])&&ZC._b_(o.o["connect-nulls"])||(s.push(null),u.push(null),Z.push(null))}if("spline"===v){u.push(u[u.length-1]),Z.push(Z[Z.length-1]),s=[];for(var Y=1;Y<u.length-1;Y++){var M=[u[Y-1],u[Y],u[Y+1],u[Y+2]],I=ZC._a_(Z[Y+1]-Z[Y]);I=Math.min(I,Math.max(o.C.I,o.C.F));var K=ZC.AQ.YC(o.QI,M,I);for(e=0;e<K.length;e++)null!==ZC._n_(K[e][0])&&null!==ZC._n_(K[e][1])?A?s.push([K[e][1],Z[Y]+(o.AZ.AW?1:-1)*K[e][0]*I]):s.push([Z[Y]+(o.AZ.AW?-1:1)*K[e][0]*I,K[e][1]]):s.push(null)}}o.D0=!1;var X=o.G.OC;if(o.G.OC=!1,o.E["fast-vector-path"]=!0,ZC.CO.setup(o.OD,o),ZC.CO.paint(o.OD,o,s),o.G.OC=X,o.C.B7&&o.C.B7.I3&&o.QU){var x=o.mapPointsToPreview(s,!0),L=ZC.Q.EE(o.C.B7.Z,o.G.AB),P=new ZC.CZ(o);P.copy(o),P.K=o.K+"-preview",P.DF=o.K+"-preview",P.B1=1;var w=o.o["preview-state"];w&&(P.append(w),P.parse());var S=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(L,P,x,null,3),ZC.BOUNDS=S}}}}),ZC.QY=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.AF="area",i.Y=1,i.CW="segmented",i.SW=3,i.HS=i.C.AJ["3d"]?1:.5,i.SR="middle",i.A42=!0,i.V3=[],i.N6=!0,i.XE=!1,i.NG=!1},U2:function(){return new ZC.A31(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.C.AJ["3d"]||"solid"===e.o["background-color-style"]?e.A0=e.AE=e.BP[1]:(e.A0=e.BP[0],e.AE=e.BP[1]),e.NR(),e.b(),e.applyRGBA(),e.assign_a([["alpha-area","HS","f",0,1],["step-start","SR"],["active-area","XE","b"],["contour-on-top","A42","b"],["smart-sampling","N6","b"]]),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u=this;u.b(),u.V3=[];var Z=u.NG;if(-1===ZC.AV(["segmented","spline","stepped"],u.CW)&&(u.CW="segmented"),u.KI=u.C.AEF,u.A4R=u.C.AEH.getContext("2d"),u.OD=u.C.AEF.getContext("2d"),C=u.C.P,!u.GX||u.C.AJ["3d"]){var c=ZC.MAX,p=-ZC.MAX;for(e=0,i=u.S.length;e<i;e++)u.S[e]&&(c=ZC.CY(c,u.S[e].CR),p=ZC.BR(p,u.S[e].CR));var h=u.CQ.AR(c),f=u.CQ.AR(p),_=u.CQ.AR(u.CQ.HC);if(ZC.DS(_,h,f)&&(u.CQ.AW?_<h&&(h=_):_>f&&(f=_)),u.E["min-y"]=Math.min(h,f),u.E["max-y"]=Math.max(h,f),u.CG&&u.A.F3){var d=ZC.MAX,g=-ZC.MAX;for(e=0,i=u.A.F3.length;e<i;e++)if(u.A.F3[e])for(var v=0,B=u.A.F3[e].length;v<B;v++)d=ZC.CY(d,u.A.F3[e][v][1]),g=ZC.BR(g,u.A.F3[e][v][1]);u.CQ.AW?u.E["min-y"]=d:u.E["max-y"]=g}u.E["max-y"]-u.E["min-y"]<100&&(u.E["max-y"]+=50,u.E["min-y"]-=50),u.PI(),u.D=null,u.D9=null,u.AH=null}else{u.XT(),u.C8=u.C.AEG;var E=!0;(null!==ZC._n_(u.A2.o.visible)&&!ZC._b_(u.A2.o.visible)||null!==ZC._n_(u.A.o.type)&&"none"===u.A2.o.type)&&(E=!1);var b=u.CG&&0===u.C.UM,D=[],F=[],m=[],Y=[],M=[],I=u.CQ.HC;u.o["ref-value"]&&(I=ZC._f_(u.o["ref-value"]));var K=u.CQ.AR(I);Z?"xy"===u.C.AJ.layout?(K=u.AZ.AR(I),K=ZC._l_(K,u.AZ.iX,u.AZ.iX+u.AZ.I)):K=ZC._l_(K,u.CQ.iX,u.CQ.iX+u.CQ.I):"yx"===u.C.AJ.layout?(K=u.AZ.AR(I),K=ZC._l_(K,u.AZ.iY,u.AZ.iY+u.AZ.F)):K=ZC._l_(K,u.CQ.iY,u.CQ.iY+u.CQ.F);var X=!0,x=0,L=null;n=0;var P=-1,w=-1,S=u.A.A4[0].S7&&u.A.A4[0].S7.length,y=u.Y,G=u.CW;if(u.Y>1&&"spline"===G&&(G="segmented"),u.AZ.EI&&u.EI){for(t=u.Y,u.N6&&(t=1),e=0,i=u.S.length;e<i;e+=t)w-e<=u.Y&&(t=ZC.BR(1,w-e)),u.S[e]&&(u.AZ.IU.length>0||ZC.DS(u.S[e].BV,u.AZ.V[u.AZ.W],u.AZ.V[u.AZ.A1])||X&&u.S[e+t]&&u.S[e+t].BV>=u.AZ.V[u.AZ.W])&&(X&&u.S[e-t]&&(-1===P&&(P=e-t),w=e-t,X=!1,x++),-1===P&&(P=e),w=e,x++,X=!1,n=e);x>0&&u.S[n+t]&&(-1===P&&(P=n+t),w=n+t,u.S[n+t].J1=!0)}else P=u.AZ.W,w=u.LT||"log"===u.AZ.BS?u.S.length:u.AZ.A1;u.Y=y,b||u.A.D9&&(F=u.A.D9.reverse());var O=null,N=null,V=0,U=1;n=P,Z?w-P>u.C.P.F&&(V=4/u.C.P.I*(u.CQ.BF-u.CQ.B0),U=ZC._f_((w-P)/(4*u.C.P.F))):w-P>u.C.P.I&&(V=4/u.C.P.F*(u.CQ.BF-u.CQ.B0),U=ZC._f_((w-P)/(4*u.C.P.I)));var Q=!1,k=!1,W=-1;t=u.Y,u.N6&&(t=1),Q=!0,!u.A.S0&&b&&(u.A.S0={},u.A.VO={});var R=null,J=null;if(u.A.S0&&!u.A.S0["s"+u.DZ]&&b){u.A.S0["s"+u.DZ]={},u.A.VO["s"+u.DZ]={};var H=u.A.WS["s"+u.DZ];for(e=0;e<=H.length;e++)null!==ZC._n_(H[e])&&(a=u.AZ.EI?ZC._i_(u.AZ.AR(H[e])):ZC._i_(u.AZ.II(H[e])),u.A.S0["s"+u.DZ][a]=K,u.A.VO["s"+u.DZ][a]=K)}for(b&&(R=u.A.S0["s"+u.DZ],J=u.A.VO["s"+u.DZ]),e=P;e<=w;e+=t){var z=!1;if(((w-P)%u.Y!=0||u.AZ.EI&&u.EI)&&w-e<=u.Y&&(t=ZC.BR(1,w-e),z=!0),u.N6&&!z&&u.S[e])if(null===ZC._n_(O))O=u.S[e].CR,n=e,N=0;else{if(Math.abs(u.S[e].CR-O)<V&&e-n<U&&(!u.EI||u.S[e].BV-N<4*u.AZ.SK))continue;O=u.S[e].CR,N=u.S[e].BV,n=e}if(L=u.FM(e)){switch(u.S[e].J1=!0,(u.FV||u.LT)&&L.paint(!0),L.paint_(),(k||("segmented"===G||"stepped"===G)&&e===P&&0===F.length)&&(b||(F.push(Z?[K,L.iY]:[L.iX,K]),k&&m.push(Z?[K,L.iY]:[L.iX,K]))),k=!1,-1===W&&(W=L.iX),G){default:b||Q&&(Z?L.iY>u.AZ.iY&&(m.push([K,u.AZ.iY]),m.push([K,L.iY]),F.push([K,L.iY])):L.iX>u.AZ.iX&&(m.push([u.AZ.iX,K]),m.push([L.iX,K]),F.push([L.iX,K])),Q=!1),D.push([L.iX,L.iY]),b?Z?J[ZC._i_(L.iY)]=L.iX:J[ZC._i_(L.iX)]=L.iY:(m.push([L.iX,L.iY]),F.push([L.iX,L.iY]));break;case"spline":Z?(Y.push(L.iX),M.push(L.iY),1===Y.length&&(Y.push(L.iX),M.push(L.iY))):(Y.push(L.iY),M.push(L.iX),1===Y.length&&(Y.push(L.iY),M.push(L.iX)));break;case"stepped":var T=u.AZ.AW?-1:1;switch(u.SR){default:(r=u.FM(e-t,0))&&(r.setup(),l=ZC.AQ.K1(u.S[e-t].iX,u.S[e-t].iY,L.iX,L.iY),D.push(Z?[L.iX,l[1]]:[l[0],L.iY]),b?Z?J[ZC._i_(l[1])-T]=L.iX:J[ZC._i_(l[0])+T]=L.iY:(m.push(Z?[L.iX,l[1]]:[l[0],L.iY]),F.push(Z?[L.iX,l[1]]:[l[0],L.iY]))),D.push([L.iX,L.iY]),b?Z?J[ZC._i_(L.iY)]=L.iX:J[ZC._i_(L.iX)]=L.iY:(m.push([L.iX,L.iY]),F.push([L.iX,L.iY])),(o=u.FM(e+t,0))&&(o.setup(),l=ZC.AQ.K1(L.iX,L.iY,u.S[e+t].iX,u.S[e+t].iY),D.push(Z?[L.iX,l[1]]:[l[0],L.iY]),b?Z?J[ZC._i_(l[1])+T]=L.iX:J[ZC._i_(l[0])-T]=L.iY:(m.push(Z?[L.iX,l[1]]:[l[0],L.iY]),F.push(Z?[L.iX,l[1]]:[l[0],L.iY])));break;case"before":(r=u.FM(e-t,0))&&(r.setup(),D.push([u.S[e-t].iX,u.S[e-t].iY],[u.S[e-t].iX,L.iY]),b?Z?(J[ZC._i_(L.iY)+T]=u.S[e-t].iX,J[ZC._i_(L.iY)]=u.S[e-t].iX):(J[ZC._i_(u.S[e-t].iX)]=u.S[e-t].iY,J[ZC._i_(u.S[e-t].iX)+T]=L.iY):(m.push([u.S[e-t].iX,u.S[e-t].iY],[u.S[e-t].iX,L.iY]),F.push([u.S[e-t].iX,u.S[e-t].iY],[u.S[e-t].iX,L.iY]))),D.push([L.iX,L.iY]),b?Z?J[ZC._i_(L.iY)]=L.iX:J[ZC._i_(L.iX)]=L.iY:(m.push([L.iX,L.iY]),F.push([L.iX,L.iY]));break;case"after":D.push([L.iX,L.iY]),b?Z?J[ZC._i_(L.iY)]=L.iX:J[ZC._i_(L.iX)]=L.iY:(m.push([L.iX,L.iY]),F.push([L.iX,L.iY])),(o=u.FM(e+t,0))&&(o.setup(),D.push([u.S[e+t].iX,L.iY],[u.S[e+t].iX,u.S[e+t].iY]),b?Z?(J[ZC._i_(L.iY)-T]=u.S[e+t].iX,J[ZC._i_(u.S[e+t].iY)]=u.S[e+t].iX):(J[ZC._i_(u.S[e+t].iX)-T]=L.iY,J[ZC._i_(u.S[e+t].iX)]=u.S[e+t].iY):(m.push([u.S[e+t].iX,L.iY],[u.S[e+t].iX,u.S[e+t].iY]),F.push([u.S[e+t].iX,L.iY],[u.S[e+t].iX,u.S[e+t].iY])))}}S&&L.N9(ZC.Q.EE(u.C.AEF,u.G.AB)),(u.R8&&E||u.FV||u.U)&&L.PK(),L.J1=!0}else null!==ZC._n_(u.o["connect-nulls"])&&ZC._b_(u.o["connect-nulls"])||(D.push(null),Y.push(null),M.push(null),b||(F.length-1>=0&&F.push(Z?[K,F[F.length-1][1]]:[F[F.length-1][0],K]),m.length-1>=0&&m.push(Z?[K,F[F.length-1][1]]:[F[F.length-1][0],K]),k=!0))}if("segmented"!==G&&"stepped"!==G||b||F.length-1>=0&&(Z?F.push([K,F[F.length-1][1]]):F.push([F[F.length-1][0],K])),"spline"===G){Y.push(Y[Y.length-1]),M.push(M[M.length-1]),D=[],b||F.push(Z?[K,M[0]]:[M[0],K]);for(var j=1;j<Y.length-1;j++){var q=[Y[j-1],Y[j],Y[j+1],Y[j+2]],$=ZC._a_(M[j+1]-M[j]);$=Math.min($,Math.max(u.C.I,u.C.F));var ee=ZC.AQ.YC(u.QI,q,$);for(e=0;e<ee.length;e++)null!==ZC._n_(ee[e][0])&&null!==ZC._n_(ee[e][1])?(A=Z?[ee[e][1],M[j]+(u.AZ.AW?1:-1)*ee[e][0]*$]:[M[j]+(u.AZ.AW?-1:1)*ee[e][0]*$,ee[e][1]],D.push(A),b?Z?J[ZC._i_(A[1])]=A[0]:J[ZC._i_(A[0])]=A[1]:(F.push(A),m.push(A))):D.push(null)}b||F.push(Z?[K,F[F.length-1][1]]:[F[F.length-1][0],K])}if(!b&&m.length>0){var ie=m[m.length-1];Z||ie[0]<u.AZ.iX+u.AZ.I&&(m.push(Z?[K,ie[1]]:[ie[0],K]),m.push(Z?[K,u.AZ.iY]:[u.AZ.iX+u.AZ.I,K]))}if(b){var ne=[],te=[],ae=[],le=[];for(s in J)ae.push([s,J[s]]);for(s in ae.sort(function(e,i){return e[0]-i[0]}),R)le.push([s,R[s]]);for(le.sort(function(e,i){return e[0]-i[0]}),e=0;e<ae.length;e++)Z?ne.push([ae[e][1],ae[e][0]]):ne.push([ae[e][0],ae[e][1]]);for(e=0;e<le.length;e++)Z?te.push([le[e][1],le[e][0]]):te.push([le[e][0],le[e][1]]);for(s in(F=ne.concat(te.reverse()))[0]&&F.push(F[0]),R=u.A.S0["s"+u.DZ]={},J)R[s]=J[s]}var re=new ZC.DT(u);if(re.copy(u),re.D0=!0,re.LB=!0,re.B1=0,re.AU=0,re.EU=0,re.G3=0,re.NB=u.NG?180:90,re.parse(),re.C5=u.HS,re.Z=u.C.AEG,re.D=F,re.A3Y(),re.K=u.K+"-area",re.paint(),u.D0=!1,ZC.CO.setup(u.OD,u),ZC.CO.paint(u.OD,u,D),u.C.B7&&u.C.B7.I3&&u.QU){var oe,Ae=u.C.B7,Ce=u.mapPointsToPreview(F),se=new ZC.DT(u.A);se.copy(u),se.D0=!0,se.LB=!0,se.B1=0,se.AU=0,se.EU=0,se.G3=0,se.C5=u.HS,se.D2=[C.iX,C.iY,C.iX+C.I,C.iY+C.F],se.K=u.K+"-area-preview",se.DF=u.K+"-preview",se.Z=Ae.Z;var ue=u.o["preview-state"];ue&&(null!==ZC._n_(ue["alpha-area"])?(oe=ue.alpha,ue.alpha=u.o["preview-state"]["alpha-area"]):ue.alpha=se.C5,se.append(ue),se.parse(),null!==ZC._n_(oe)?ue.alpha=oe:delete ue.alpha),se.D=Ce,se.paint();var Ze=u.mapPointsToPreview(D),ce=ZC.Q.EE(Ae.Z,u.G.AB),pe=new ZC.CZ(u);pe.copy(u),pe.D0=!0,pe.LB=!0,pe.K=u.K+"-line-preview",pe.DF=u.K+"-preview",pe.B1=1,ue&&(pe.append(ue),pe.parse());var he=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(ce,pe,Ze,null,3),ZC.BOUNDS=he}u.CG&&(u.A.D9=m)}}}),ZC.A2A=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.AF="bar",i.sMetaType="bar",i.F5=.1,i.D5=0,i.bKeyWidth=!1,i.YW=-1,i.CH=.1,i.CU=.1,i.F0=0,i.TT=!1,i.LZ=[],i.P7="bg",i.A3N=!0,i.N6=!1},parse:function(){var e=this;if(e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.BX=e.BP[1],e.A0=e.BP[1],e.AE=e.BP[2],e.NR(),e.b(),"histogram"===e.CW&&(e.F5=e.CH=e.CU=0),e.assign_a([["group-bars","A3N","b"],["show-zero","TT","b"],["offset-values","LZ"],["bar-space","F5","fp"],["bar-width","D5","fp"],["key-width","bKeyWidth","b"],["bar-max-width","YW","fp"],["bars-space-left","CH","fp"],["bars-space-right","CU","fp"],["bars-overlap","F0","fp"],["smart-sampling","N6","b"]]),e.A3N||(e.F0=1),0===e.F5&&0===e.CH&&0===e.CU&&(e.FF=!1),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0]),null!==ZC._n_(e.o.column)){var i=e.o.column.split("/");if(2===i.length){var n=ZC._i_(i[0]),t=ZC._i_(i[1]),a=e.CH;e.CH>=1&&(a=e.CH/e.AZ.AD);var l=e.CU;e.CU>=1&&(l=e.CU/e.AZ.AD);var r=1-a-l,o=ZC._x_(r/(3*t+1));e.CH=a+o+3*(n-1)*o,e.CU=1-e.CH-2*o}}},SU:function(){var e,i=this;if(i.RR)return i.RR;if(i.o["fast-dimensions"]&&i.A.A4[0].RR)return i.A.A4[0].RR;i.bKeyWidth&&(i.assign_a([["bar-width","D5","fp"]]),i.D5=((i.AZ.CM?i.AZ.F:i.AZ.I)-i.AZ.A9-i.AZ.BU)*(i.D5/(i.AZ.BF-i.AZ.B0)));var n,t=i.AZ.AD*i.Y,a=0;for(i.A.K8[i.AF]=i.A.K8[i.AF]||[],e=0;e<i.A.K8[i.AF].length;e++){var l=i.A.K8[i.AF][e][0];i.A.A4[l].BO[0]===i.BO[0]&&a++}if(i.LT)for(a=0,e=0;e<i.A.A4.length;e++)"bar"===i.A.A4[e].sMetaType&&(a=ZC.BR(a,i.A.A4[e].S.length));if(null===ZC._n_(i.AZ.EV)&&(i.AZ.EV=0,i.AZ.WU={}),i.CG&&null!==ZC._n_(i.AZ.WU["stack-"+i.DZ]))n=i.AZ.WU["stack-"+i.DZ];else{for(n=i.AZ.EV,e=0;e<i.L;e++)if((i.A.A4[e].AP||"hide"===i.C.getToggleAction())&&i.BO[0]===i.A.A4[e].BO[0]&&i.A.A4[e].AF===i.AF&&(!i.CG||i.A.A4[e].DZ!==i.DZ)&&!i.A.A4[e].HT){n++;break}i.AZ.EV=n,i.AZ.WU["stack-"+i.DZ]=n}for(var r=!0,o=0,A=[],C=0;C<i.A.A4.length;C++)i.A.A4[C].D5<=1?r=!1:null!==ZC._n_(i.A.A4[C].D5)&&(i.A.A4[C].CG&&-1!==ZC.AV(A,i.A.A4[C].DZ)||(A.push(i.A.A4[C].DZ),o+=i.A.A4[C].D5));var s=i.CH;s<=1&&(s*=t);var u,Z=i.CU;Z<=1&&(Z*=t),s=ZC._i_(s),Z=ZC._i_(Z);var c,p,h,f,_=i.F0;return r?(u=o,0===i.F0||a<=1?((c=i.F5)<=1&&(c*=u/a),Z=(h=t-u-(c=ZC.BR(0,c))*(a-1))-(s=h*(f=0===Z?1:s/Z)/(1+f)),s<1&&(s=Z=0,c=t-u,a>1&&(c/=a-1),c<0&&(u=t-s-Z-(c=0)*(a-1))),p=(u=ZC.BR(u,1*a))/a):a>1&&(c=0,p=u/a,_<=1&&(_*=p),Z=(h=t-(u=a*(p-(_=ZC.CY(_,p)))+_)-c*(a-1))-(s=h*(f=0===Z?1:s/Z)/(1+f)),s<1&&(u-=1-s))):(u=t-s-Z,0===i.F0||a<=1?((c=i.F5)<=1&&(c*=u/a),Z=(h=t-u-(c=ZC.BR(0,c))*(a-1))-(s=h*(f=0===Z?1:s/Z)/(1+f)),s<1&&(s=Z=0,c=t-u,a>1&&(c/=a-1),c<0&&(u=t-s-Z-(c=0)*(a-1))),p=(u=ZC.BR(u,1*a))/a):a>1&&(c=0,p=u/a,_>1&&(_=p/_),_*=p=u/(a-a*_+_),Z=(h=t-u-c*(a-1))-(s=h*(f=0===Z?1:s/Z)/(1+f)),s<1&&(u-=1-s))),-1!==i.YW&&p>i.YW&&!i.E.bw&&(i.D5=i.YW),i.RR={AD:t,EV:n,CH:s,CU:Z,F5:c,D5:p,F0:_},{AD:t,EV:n,CH:s,CU:Z,F5:c,D5:p,F0:_}},paint:function(){var e=this;e.b(),e.KI=e.C.AEF;var i=e.FF;e.A2L=!1,e.SF=null;var n=1;e.AZ.EI&&(n=e.S.length/(e.AZ.DP-e.AZ.D4)),0!==e.E6.length||e.HZ||e.C.KL||"svg"!==e.G.AB||!(e.AZ.A1-e.AZ.W>2048||e.AZ.EI&&n*(e.AZ.A1-e.AZ.W)>2048)||(e.A2L=!0,null===ZC._n_(e.o["rect-shortcut"])&&(e.FF=!0)),e.FF||(e.A2L=!1),e.PI(),e.FF=i,e.RefNode=null,e.W2=null}}),ZC.QZ=ZC.A2A.CD({$i:function(e){this.b(e),this.AF="vbar"},U2:function(){return new ZC.ZL(this)}}),ZC.R0=ZC.A2A.CD({$i:function(e){this.b(e),this.AF="hbar"},U2:function(){return new ZC.ZM(this)}}),ZC.PG=ZC.W8.CD({$i:function(e,i){this.b(e),this.AF=i||"scatter",this.P7="markerbg",this.bPoly=!1,this.HS=.5},U2:function(){return new ZC.A5T(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.A0=e.BP[1],e.AE=e.BP[1],e.B9=e.BP[2],e.BX=e.BP[2],e.NR(),e.b(),e.assign_a([["alpha-area","HS","f",0,1]]),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},paint:function(){var e,i,n,t=this;if(t.b(),t.KI=t.C.AEF,t._oCtxNode=t.C.AEF.getContext("2d"),!t.GX||t.C.AJ["3d"]||"fast"!==t.A0Y||0!==t.RZ)t.PI(!0);else{var a=null,l=t.AZ,r=t.CQ;t.XT(!0);var o=new ZC.DT(t.A);for(o.Z=t.CS("bl",1),o.C8=t.CS("bl",0),o.B9=t.BP[4],o.BX=t.BP[4],o.A0=t.BP[2],"bubble"===t.AF||"hbubble"===t.AF?o.AE=t.BP[1]:o.AE=t.BP[2],o.append(t.A2.o),o.parse(),i=0;i<=t.S.length;i++)if(a=t.FM(i)){var A=!1;l.CM?ZC.DS(a.iX,r.iX+(r.AW?r.BU:r.A9)-1,r.iX+r.I-(r.AW?r.A9:r.BU)+1)&&ZC.DS(a.iY,l.iY+(l.AW?l.BU:l.A9)-1,l.iY+l.F-(l.AW?l.A9:l.BU)+1)&&(A=!0):ZC.DS(a.iX,l.iX+(l.AW?l.BU:l.A9)-1,l.iX+l.I-(l.AW?l.A9:l.BU)+1)&&ZC.DS(a.iY,r.iY+(r.AW?r.A9:r.BU)-1,r.iY+r.F-(r.AW?r.BU:r.A9)+1)&&(A=!0),A&&(a.J1=!0,t.S[i].J1=!0,o.K=a.K+"-marker",o.iX=a.iX,o.iY=a.iY,"circle"!==o.DH&&o.parse(),"none"!==t.J4&&(t.C.IY[t.L]||t.C.KL)&&(o.o={},o.LR={},t.C.CF["p"+t.L]&&t.C.CF["p"+t.L]["n"+i]?o.LR=t.PR?t.PR.o:{}:"none"!==t.O8&&("plot"===t.O8&&t.C.IY[i]||"graph"===t.O8&&t.C.KL)&&(o.LR=t.PQ?t.PQ.o:{}),o.B9=t.BP[4],o.BX=t.BP[4],o.A0=t.BP[2],"bubble"===t.AF||"hbubble"===t.AF?o.AE=t.BP[1]:o.AE=t.BP[2],o.append(t.A2.o),o.parse()),o.paint())}}if(t.bPoly){for(e=[],i=0,n=t.S.length;i<n;i++)e.push([t.S[i].iX,t.S[i].iY]);e.length&&e.push(e[0]);var C=new ZC.DT(t);C.copy(t),C.C5=t.HS,C.D0=!0,C.LB=!0,C.B1=0,C.AU=0,C.EU=0,C.G3=0,C.Z=t.C.AEG,C.D=e,C.A3Y(),C.K=t.K+"-area",C.paint(),t.D0=!1,ZC.CO.setup(t._oCtxNode,t),ZC.CO.paint(t._oCtxNode,t,e)}}}),ZC.S2=ZC.W8.CD({$i:function(e,i){this.b(e),this.AF=i||"bubble",this.TA=null,this.RO=null,this.A1E=1,this.JU=1,this.A6K="area",this.P7="markerbg"},U2:function(){return new ZC.A6S(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.A0=e.BP[2],e.AE=e.BP[1],e.B9=e.BP[2],e.BX=e.BP[2],e.NR(),e.b(),e.assign_a([["min-size","TA","i"],["max-size","RO","i"],["scaling","A6K"],["sizing-group","A1E","i"],["size-factor","JU","f"]]),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},getSize:function(e){var i,n,t,a=this,l=Math.min(Math.min(a.AZ.I,a.AZ.F)/10,Math.max(a.AZ.I,a.AZ.F)/20);return n="radius"===a.A6K?a.RP/a.O0:Math.sqrt(a.RP)/Math.sqrt(a.O0),null===ZC._n_(a.TA)&&null===ZC._n_(a.RO)?(a.RO=l,a.TA=Math.max(1,a.RO/n)):null===ZC._n_(a.TA)&&null!==ZC._n_(a.RO)?a.TA=Math.max(1,a.RO/n):null!==ZC._n_(a.TA)&&null===ZC._n_(a.RO)&&(a.RO=a.TA*n,a.RO>l&&(a.RO=l,a.TA=Math.max(1,a.RO/n))),e=ZC.BR(e,a.O0),t=a.RP===a.O0?e-a.O0:"radius"===a.A6K?(e-a.O0)/(a.RP-a.O0):(Math.sqrt(e)-Math.sqrt(a.O0))/(Math.sqrt(a.RP)-Math.sqrt(a.O0)),i=a.TA+a.JU*(a.RO-a.TA)*t,ZC.BR(a.TA,i)},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.RP=-ZC.MAX,e.O0=ZC.MAX;for(var i=e.A.A4,n=0,t=i.length;n<t;n++)if(i[n].A1E===e.A1E)for(var a=0,l=i[n].S.length;a<l;a++)e.RP=ZC.BR(e.RP,ZC._a_(i[n].S[a].SQ)),e.O0=ZC.CY(e.O0,ZC._a_(i[n].S[a].SQ));e.PI(!0)}}),ZC.W9=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.AF="pie",i.BO=["scale","scale-v","scale-r"],i.PY=0,i.DK=0,i.TT=!1,i.A7U=!0,i.C3=null,i.P7="bg"},U2:function(){return new ZC.A8T(this)},parse:function(){var e,i,n=this;null===ZC._n_(n.o["value-box"])&&(n.o["value-box"]={}),"ring"!==n.A.A.o.type&&"ring3d"!==n.A.A.o.type||(n.PY=.35),n.BP=n.O6(),n.C2=n.BP[0],n.A0=n.BP[1],n.AE=n.BP[2],n.BX=n.BP[4],n.B9=n.BP[4],n.NR(),n.b(),n.C3=new ZC.CZ(n),n.C.A.B6.load(n.C3.o,["graph.plot.value-box.connector",n.AF+".plot.value-box.connector"]),null!==ZC._n_(e=n.C.o.plot)&&null!==ZC._n_(e["value-box"])&&null!==ZC._n_(i=e["value-box"].connector)&&n.C3.append(i),n.C3.append(n.o["value-box"].connector),n.assign_a([["offset","DX","fp"],["slice","PY","fp"],["show-zero","TT","b"],["detach","A7U","b"],["ref-angle","DK","i"]]),n.DK%=360;for(var t=0,a=n.S.length;t<a;t++)n.S[t]&&(n.S[t].CP=n.PY,n.S[t]&&(n.C.E["plot"+n.L+".visible"]||"hide"===n.C.getToggleAction())&&(null===ZC._n_(n.A.KP[t])&&(n.A.KP[t]=0),n.A.KP[t]+=ZC._f_(n.S[t].AC)))},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.PI(!0)}}),ZC.U1=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.AF="nestedpie",i.BO=["scale"],i.U6=0,i.SP=0,i.DK=0,i.C3=null,i.P7="bg",i.aBandWidths=null},U2:function(){return new ZC.A4A(this)},parse:function(){var e,i,n=this;n.BP=n.O6(),n.C2=n.BP[0],n.A0=n.BP[1],n.AE=n.BP[2],n.BX=n.BP[0],n.B9=n.BP[0],n.NR(),n.b(),n.U&&(n.C3=new ZC.CZ(n),n.C.A.B6.load(n.C3.o,["graph.plot.value-box.connector",n.AF+".plot.value-box.connector"]),null!==ZC._n_(e=n.C.o.plot)&&null!==ZC._n_(e["value-box"])&&null!==ZC._n_(i=e["value-box"].connector)&&n.C3.append(i),n.C3.append(n.o["value-box"].connector)),n.assign_a([["slice-start","U6","fp"],["offset","U6","fp"],["slice","U6","fp"],["band-space","SP","fp"],["ref-angle","DK","i"],["band-widths","aBandWidths"]]),n.DK%=360;for(var t=0,a=n.S.length;t<a;t++)n.S[t]&&(n.C.E["plot"+n.L+".visible"]||"hide"===n.C.getToggleAction())&&(null===ZC._n_(n.A.KP[t])&&(n.A.KP[t]=0),n.A.KP[t]+=ZC._f_(n.S[t].AC))},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.PI(!0)}}),ZC.XH=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.AF="radar",i.SW=3,i.BO=["scale-k","scale-v","scale"],i.HS=.5,i.CW="line",i.A65=null,i.XE=!1,i.D=[],i.AH=[]},U2:function(){return new ZC.A7D(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.BX=e.BP[1],e.A0=e.BP[2],e.AE=e.BP[3],e.NR(),e.b(),e.applyRGBA(),e.assign_a([["active-area","XE","b"],["alpha-area","HS","f",0,1],["angle-space","A65","f"]]),e.AZ=e.C.BM("scale-k"),e.CQ=e.C.BM("scale-v"),"range"===e.CW&&(e.A0Y="normal",e.GX=!1)},paint:function(){var e=this;e.b(),e.AZ.V.length===e.V.length&&-1===ZC.AV(e.V,null)||(e.A0Y="normal",e.GX=!1),e.KI=e.C.AEF,e.A4R=e.C.AEH.getContext("2d"),e.OD=e.C.AEF.getContext("2d"),e.PI(!0)}}),ZC.A5B=ZC.A2A.CD({$i:function(e){this.b(e);var i=this;i.F5=.2,i.CH=.28,i.CU=.28,i.F0=0,i.FK=null,i.A2S=[],i.Q0=[],i.A9H=!0,i.P7="bg"},AC2:function(e){var i;if("goal"===e){if(null!==ZC._n_(i=this.FK.o.tooltip))return i;if(null!==ZC._n_(i=this.FK.o["tooltip-text"]))return{text:i}}return{}},parse:function(){var e,i=this;if(i.BP=i.O6(),i.b(),null!==ZC._n_(i.A2S=i.o.goals))for(var n=0,t=i.A2S.length;n<t;n++)null!==ZC._n_(i.A2S[n])?"string"==typeof i.A2S[n]?i.Q0[n]=ZC.AV(i.CQ.JP,i.A2S[n]):i.Q0[n]=ZC._f_(i.A2S[n]):i.Q0[n]=null;i.FK=new ZC.HU(i),i.FK.copy(i),i.FK.append({"background-color":i.BP[3]}),i.FK.o["tooltip-text"]="%node-goal-value",i.G.B6.load(i.FK.o,["("+i.AF+").plot.goal"],!0,!0),null!==ZC._n_(e=i.o.goal)&&i.FK.append(e),i.FK.parse()}}),ZC.TJ=ZC.A5B.CD({$i:function(e){this.b(e),this.AF="vbullet"},U2:function(){return new ZC.A5U(this)}}),ZC.TK=ZC.A5B.CD({$i:function(e){this.b(e),this.AF="hbullet"},U2:function(){return new ZC.A5V(this)}}),ZC.XI=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.AF="piano",i.CW="alpha",i.A74="plot-max",i.QD=.2,i.UV=1,i.P7="bg"},U2:function(){return new ZC.A7E(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.BX=e.BP[1],e.A0=e.BP[2],e.AE=e.BP[1],e.NR(),e.b(),e.assign_a([["min-ratio","QD","f",0,1],["max-ratio","UV","f",0,1],["reference","A74",""]]),e.QD>=e.UV&&(e.QD=.2,e.UV=1),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.A4S=e.A3I=-ZC.MAX,e.Y7=e.WM=ZC.MAX,e.A66=e.A4T=0;for(var i=0,n=e.A.A4.length;i<n;i++)for(var t=e.A.A4[i],a=0,l=t.S.length;a<l;a++)if(t.S[a]){var r=ZC._f_(t.S[a].AC);t.L===e.L&&(e.A4S=ZC.BR(e.A4S,r),e.Y7=ZC.CY(e.Y7,r),e.A66+=r),e.A3I=ZC.BR(e.A3I,r),e.WM=ZC.CY(e.WM,r),e.A4T+=r}e.PI()}}),ZC.WB=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.L7=.1,i.OH=.1,i.LY=0,i.A2I="dynamic",i.OX=[],i.VM=[],i.P7="bg"},parse:function(){var e,i,n,t,a=this;if(a.BP=a.O6(),a.C2=a.BP[0],a.B9=a.BP[1],a.BX=a.BP[1],a.A0=a.BP[2],a.AE=a.BP[1],a.NR(),a.b(),a.assign_a([["start-width","A2I"],["min-exit","LY","fp"],["space-entry","L7","fp"],["offset","L7","fp"],["offset","OH","fp"]]),null!==ZC._n_(n=a.o.entry))for(n instanceof Array||(n=[n]),e=0,i=n.length;e<i;e++){var l=new ZC.DT(a);l.o=n[e],l.parse(),a.OX.push(l)}if(null!==ZC._n_(t=a.o.exit))for(t instanceof Array||(t=[t]),e=0,i=t.length;e<i;e++){var r=new ZC.DT(a);r.o=t[e],r.parse(),a.VM.push(r)}a.AZ=a.C.BM(a.BW("k")[0]),a.CQ=a.C.BM(a.BW("v")[0])},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.PI()}}),ZC.VB=ZC.WB.CD({$i:function(e){this.b(e),this.AF="vfunnel"},U2:function(){return new ZC.A5W(this)}}),ZC.VC=ZC.WB.CD({$i:function(e){this.b(e),this.AF="hfunnel"},U2:function(){return new ZC.A5X(this)}}),ZC.VJ=ZC.A2A.CD({$i:function(e){this.b(e);var i=this;i.AF="stock",i.CW="candlestick",i.MY={size:0},i.P7="bg"},U2:function(){return new ZC.A7F(this)},parse:function(){this.b()},paint:function(){this.b(),this.paintPreview()},paintPreview:function(){var e=this,i=e.C.BM(e.BW("v")[0]),n=i.AR(i.HC);if(e.C.B7&&e.C.B7.I3&&e.QU){for(var t=e.C.P,a=e.C.B7,l=[],r=[],o=!0,A=0,C=e.S.length;A<C;A++)if(null!==ZC._n_(e.S[A])&&null!==ZC._n_(e.S[A].DU[2])){var s=i.AR(e.S[A].DU[2]);o&&(r.push([e.S[A].iX,n]),o=!1),l.push([e.S[A].iX,s]),r.push([e.S[A].iX,s])}r.length&&r.push([r[r.length-1][0],n]);var u=e.mapPointsToPreview(r),Z=e.o.preview||{};if("area"===(Z.type||"area")){var c=new ZC.DT(e.A);c.copy(e),c.append({"background-color":e.BX,"alpha-area":.2}),c.append(Z),c.parse(),c.D0=!0,c.LB=!0,c.B1=0,c.AU=0,c.EU=0,c.G3=0,c.C5=ZC._f_(c.o["alpha-area"]),c.D2=[t.iX,t.iY,t.iX+t.I,t.iY+t.F],c.K=e.K+"-area-preview",c.Z=a.Z,c.D=u,c.paint()}var p=e.mapPointsToPreview(l),h=ZC.Q.EE(a.Z,e.G.AB),f=new ZC.CZ(e);f.copy(e),f.append({"line-color":e.BX,"line-width":1}),f.append(Z),f.parse();var _=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(h,f,p,null,3),ZC.BOUNDS=_}}}),ZC.XJ=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.AF="gauge",i.SW=3,i.BO=["scale-r","scale-v","scale"],i.HS=.5,i.I4=[10,0,0,0,0],i.P7="bg"},U2:function(){return new ZC.A7G(this)},parse:function(){var e,i=this;i.BP=i.O6(),i.C2=i.BP[0],i.B9=i.BP[1],i.A0=i.BP[3],i.AE=i.BP[3],i.NR(),i.b(),i.assign_a([["alpha-area","HS","f",0,1],["indicator","I4"]]),null!==ZC._n_(e=i.o.csize)&&(i.I4[0]=ZC._i_(e)),i.I4=[ZC._f_(i.I4[0]||"10"),ZC._f_(i.I4[1]||"0"),ZC._f_(i.I4[2]||"0"),ZC._f_(i.I4[3]||"0"),ZC._f_(i.I4[4]||"0")]},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.PI(!0)}}),ZC.T1=ZC.W8.CD({$i:function(e){this.b(e);var i=this;i.AF="range",i.Y=1,i.CW="segmented",i.SW=3,i.HS=.5,i.bFastRange=!1,i.aPointsMin=[],i.aPointsMax=[]},U2:function(){return new ZC.A7H(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.B9=e.BP[1],e.A0=e.BP[1],e.AE=e.BP[1],e.NR(),e.b(),e.applyRGBA(),e.YD("alpha-area","HS","f",0,1),e.AZ=e.C.BM(e.BW("k")[0]),e.CQ=e.C.BM(e.BW("v")[0])},PI:function(){var e,i=this,n=i.NG;i.XT(!1);var t=i.C.P;i.Y=1;var a=n?t.F:t.I;i.AZ.EI||!i.QE&&5*(i.AZ.A1-i.AZ.W)>a&&(i.Y=ZC._i_(5*(i.AZ.A1-i.AZ.W)/a));var l=i.AZ.EI;if(l&&i.Q4[0]===ZC.MAX&&i.Q4[1]===-ZC.MAX&&(l=!1),i.bFastRange=i.S.length>1024,(i.AZ.A1-i.AZ.W)/(i.AZ.DP-i.AZ.D4)<.1&&(i.bFastRange=!1),l)for(p=0,e=i.S.length;p<e;p++)i.S[p]&&ZC.DS(i.S[p].BV,i.AZ.V[i.AZ.W],i.AZ.V[i.AZ.A1])&&(i.S[p].Z=i.KI,i.S[p].MP="min",i.S[p].paint(),i.bFastRange&&i.aPointsMin.push([i.S[p].iX,i.S[p].iY]),i.S[p].MP="max",i.S[p].paint(),i.bFastRange&&i.aPointsMax.push([i.S[p].iX,i.S[p].iY]),delete i.S[p].E["intersect.index"]);else for(p=i.AZ.W;p<=i.AZ.A1;p+=i.Y)i.S[p]&&(i.S[p].MP="min",i.S[p].paint(),i.bFastRange&&i.aPointsMin.push([i.S[p].iX,i.S[p].iY]),i.S[p].MP="max",i.S[p].paint(),i.bFastRange&&i.aPointsMax.push([i.S[p].iX,i.S[p].iY]),delete i.S[p].E["intersect.index"]);if(i.bFastRange){var r=new ZC.CZ(i);r.copy(i),r.append(i.o["min-line"]),r.K=i.K+"-min-line",r.parse(),ZC.CO.setup(i.OD,r),ZC.CO.paint(i.OD,r,i.aPointsMin);var o=new ZC.CZ(i);o.copy(i),o.append(i.o["max-line"]),o.K=i.K+"-max-line",o.parse(),ZC.CO.setup(i.OD,o),ZC.CO.paint(i.OD,o,i.aPointsMax);var A=[].concat(i.aPointsMax).reverse(),C=[].concat(i.aPointsMin).concat(A),s=new ZC.DT(i.A);s.K=i.K+"-area",s.Z=i.C.AEH,s.copy(i),s.B1=0,s.AU=0,s.EU=0,s.G3=0,s.parse(),s.D=C,s.C5=i.HS;t=i.C.P;if(s.D2=[t.iX,t.iY,t.iX+t.I,t.iY+t.F],s.paint(),i.FV)for(var u=i.NG?i.C.P.F:i.C.P.I,Z=Math.max(1,.52*u/i.aPointsMin.length),c=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.L+"-node-area zc-node-area",p=0;p<i.aPointsMin.length;p++){var h,f=i.aPointsMin[p],_=i.aPointsMax[p];h=i.NG?[[f[0],f[1]-Z],[f[0],f[1]+Z],[_[0],_[1]+Z],[_[0],_[1]-Z],[f[0],f[1]-Z]]:[[f[0]-Z,f[1]],[f[0]+Z,f[1]],[_[0]+Z,_[1]],[_[0]-Z,_[1]],[f[0]-Z,f[1]]];var d=ZC.AQ.PJ(h,4);""!==d&&i.A.H3.push(ZC.Q.FP("poly",i.E9,i.IE)+'class="'+c+'" id="'+i.K+"-node-"+p+'--area" coords="'+d+'" />')}}},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.A4R=e.C.AEH.getContext("2d"),e.OD=e.C.AEF.getContext("2d"),e.PI(),e.aPointsMin=[],e.aPointsMax=[],e.D=null,e.D9=null,e.ZW=null,e.S8=null}}),ZC.XK=ZC.W9.CD({$i:function(e){this.b(e);this.AF="pie3d",this.JK=-1},parse:function(){this.b(),this.assign_a([["thickness","JK","ia"]])},U2:function(){return new ZC.A7M(this)}}),ZC.UP=ZC.QZ.CD({$i:function(e){this.b(e),this.AF="vbar3d"},U2:function(){return new ZC.A6X(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])},paint:function(){this.b(),this.sharedZScale()}}),ZC.WC=ZC.R0.CD({$i:function(e){this.b(e),this.AF="hbar3d"},U2:function(){return new ZC.A6Y(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])}}),ZC.UQ=ZC.QX.CD({$i:function(e){this.b(e),this.AF="line3d"},U2:function(){return new ZC.A6Z(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.UR=ZC.QY.CD({$i:function(e){this.b(e),this.AF="area3d"},U2:function(){return new ZC.A70(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BX=e.BP[1])},paint:function(){this.b(),this.sharedZScale()}}),ZC.Z0=ZC.I1.CD({$i:function(e){this.b(e);var i=this;i.AF="venn",i.ABV=[],i.A9L=[],i.BO=["scale"],i.P7="bg"},U2:function(){return new ZC.A8A(this)},parse:function(){var e=this;e.BP=e.O6(),e.C2=e.BP[0],e.BX=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.NR(),e.b(),e.assign_a([["join","ABV"],["share","A9L"]])},paint:function(){var e=this;e.b(),e.KI=e.C.AEF,e.PI(!0)}});var LM={$i:function(e){this.b(e);var i=this;i.C=e.A.A,i.G=i.C.A,i.L=-1,i.AC=null,i.DU=[],i.CR=null,i.BV=null,i.CK=null,i.JS=[],i.I3=!1,i.PZ=!0,i.O=i,i.J1=!1,i.A22=!1},H8:function(e,i){this.b(this.A,e,i,this.M2(null,!1),this.A.MN)},V7:function(){return[this.iX,this.iY,{reference:this,center:!0}]},AC9:function(){return[this.iX,this.iY]},getTooltipPosition:function(e,i,n){var t,a,l,r,o=this;switch(o.paint(!0),t=o.iX,a=o.iY,l=o.I,r=o.F,i){case"center":t=o.iX+l/2,a=o.iY+r/2;break;case"top":t=o.iX+l/2,a=o.iY,a=n?a-n:a;break;case"bottom":t=o.iX+l/2,a=o.iY+r,a=n?a+n:a;break;case"left":t=o.iX,a=o.iY+r/2,t=n?t-n:t;break;case"right":t=o.iX+l,a=o.iY+r/2,t=n?t+n:t;break;default:t+=o.BK,a+=o.BJ}return{x:t,y:a}},setNodeData:function(e){var i=this;for(var n in e)e.hasOwnProperty(n)&&(i.A.GX?i.A.S[i.L][n]=e[n]:i.E[n]=e[n])},getNodeData:function(e){return this.A.GX?this.A.S[this.L][e]:this.E[e]},AB2:function(){var e,i,n=this,t=n.C.E,a=n.A.L;null===ZC._n_(t.update)&&(t.update={});var l=t.update,r=""+n.AC,o=n.A.MU();for(ZC.PH(r)&&ZC._f_(r)<0&&"currency"===o.negation&&(r=ZC._a_(ZC._f_(r))),o.utc=n.C.UK,o.timezone=n.C.NE,r=ZC.AO.G5(r,o,n.A),l["plot-"+a+"-value"]=r,l["plot-"+a+"-value-0"]=r,e=0,i=n.DU.length;e<i;e++)l["plot-"+a+"-value-"+(e+1)]=n.DU[e];for(l["plot-value"]=l["plot-value-0"]=r,e=0,i=n.DU.length;e<i;e++)l["plot-value-"+(e+1)]=n.DU[e];for(var A in n.A.K5){var C=null;C="object"==typeof n.A.K5[A]&&n.A.K5[A].length?n.A.K5[A][n.L]:n.A.K5[A],l["plot-"+a+"-data-"+A]=C}},R2:function(){var e,i,n=this,t=n.A.AZ,a=n.A.CQ,l=[t.W,t.A1,a.W,a.A1];if(n.A.GX&&(n.CR=n.A.S[n.L].CR),n.JS!==l){t.CM?(null!==n.BV?n.iY=t.AR(n.BV):n.iY=t.II(n.L),n.A.CG&&"100%"===n.A.KT?n.A.A.F9[n.L]["%total-"+n.A.DZ]>0?n.iX=a.AR(100*n.CR/n.A.A.F9[n.L]["%total-"+n.A.DZ]):n.iX=a.AR(100*n.CR):n.iX=a.AR(n.CR+0)):(null!==n.BV?n.iX=t.AR(n.BV):n.A.LT?"bar"===n.A.sMetaType?n.iX=t.II(n.A.R9):n.iX=t.II(n.A.R9)+n.A.RU+n.L*(t.AD-2*n.A.RU)/(n.A.S.length-1)-t.AD/2:"log"===t.BS?n.iX=t.AR(n.L):n.iX=t.II(n.L),n.A.CG&&"100%"===n.A.KT?n.A.A.F9[n.L]["%total-"+n.A.DZ]>0?n.iY=a.AR(100*n.CR/n.A.A.F9[n.L]["%total-"+n.A.DZ]):n.iY=a.AR(100*n.CR):n.iY=a.AR(n.CR+0)),n.A.GX&&(n.A.S[n.L].iX=n.iX,n.A.S[n.L].iY=n.iY),n.JS=l}n.I3||(n.I3=!0,0!==n.A.E6.length||-1===ZC.AV(["line","area","vbar","hbar","line3d","area3d","vbar3d","hbar3d"],n.A.AF)||n.A.o.override?n.A.o.override?(n.copy(n.A),n.E6=n.A.E6,n.DG(),n.parse(!1),n.R2(),n.O=n):(e=n.ACH(n.A.E6),null===ZC._n_(i=n.A.A63[e])?(n.copy(n.A),n.E6=n.A.E6,n.DG(),n.parse(!1),n.R2(),n.O=n,n.A.A63[e]=n):n.O=i):n.O=n.A,n.A.o.override&&(n.O.E.plotidx=n.A.L,n.O.E.nodeidx=n.L,n.O.parse(!1)))},a11y:function(){var e=this,i="";if(e.G.bA11y){if(e.A.GX){var n=this.A.FM(e.L,1,!0);n&&(i=n.K2(this.C.A7.o.text||this.A.A7.o.text||this.A.JA))}else i=e.K2(this.C.A7.o.text||this.A.A7.o.text||this.A.JA);if(e.A.AN&&-1===i.indexOf(e.A.AN)&&(i=e.A.AN+":"+i),i=i.replace(/<.+?>/gi," "),this.L>0)return'tabindex="0" aria-label="Node '+(this.L+1)+" of "+this.A.S.length+". "+i+'"';var t=this.A.AN||"Series "+(this.A.L+1);return'tabindex="0" aria-label="Series '+(this.A.L+1)+" of "+this.A.A.A4.length+". "+t+". Node "+(this.L+1)+" of "+this.A.S.length+". "+i+'"'}return""},AA0:function(){var e,i=this;if(i.o.value instanceof Array&&(i.CK=i.o.value.join(" "),"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.AZ.IU,i.o.value[0]))?i.BV=e:(i.A.AZ.IU.push(i.o.value[0]),i.BV=i.A.AZ.IU.length-1):i.BV=parseFloat(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CQ.JP,i.o.value[1]))?i.AC=e:(i.A.CQ.JP.push(i.o.value[1]),i.AC=i.A.CQ.JP.length-1):i.AC=parseFloat(i.o.value[1]),null!==i.BV&&i.A.V9(i.BV,i.L),i.A.YO>0&&i.o.value.length>i.A.YO))for(var n=i.o.value.length-i.A.YO;n<i.o.value.length;n++)i.DU.push(i.o.value[n])},parse:function(e){var i=this;if(i.E.plotidx=i.A.L,i.E.nodeidx=i.L,i.K=i.A.K+"-node-"+i.L,null===ZC._n_(e)&&(e=!0),e){if(i.o.value instanceof Array||i.A.A9H)i.AA0();else if(i.CK=i.o.value,"string"==typeof i.o.value){var n=ZC.AV(i.A.CQ.JP,i.o.value);-1!==n?i.AC=n:(i.A.CQ.JP.push(i.o.value),i.AC=i.A.CQ.JP.length-1)}else i.AC=i.o.value;null===i.CR&&(i.CR=i.AC)}else i.b()},IQ:function(e){return this.K2(e,{})},getFormatValue:function(){return this.AC},K2:function(AN,ET,LS,bUrl){var s=this,H,CK,BC,i,A6,D1,oRE;void 0===LS&&(LS=!1);var oPPI=s.A.JB,oPS=s.A.A,EZ,PN;if(!bUrl&&"javascript:"===AN.substring(0,11))try{var ED=AN.replace("javascript:","").replace("()","");eval(ED)&&(H=0===s.DU.length?s.AC:[s.AC].concat(s.DU),AN=eval(ED).call(s,H,{nodeindex:s.L,plotindex:s.A.L,plotid:s.A.HA,nodeinfo:s.M2(null,!1),plotinfo:s.A.V6()})||AN)}catch(e){}if(AN+="",s.A.A75){for(EZ in CK=s.getFormatValue(),null!==ZC._n_(s.A.CQ.JP[CK])&&s.A22&&(CK=s.A.CQ.JP[CK]),AN=AN.replace(/%node-numeric-value/g,s.AC).replace(/%node-value/g,CK).replace(/%previous-node-value/g,s.A.S[s.L-1]?s.A.S[s.L-1].AC:null).replace(/%next-node-value/g,s.A.S[s.L+1]?s.A.S[s.L+1].AC:null).replace(/%node-index/g,s.L).replace(/%plot-text/g,s.A.AN).replace(/%plot-index/g,s.A.L).replace(/%plot-count/g,oPS.A4.length).replace(/%p/g,s.A.L).replace(/%P/g,oPS.A4.length).replace(/%v/g,CK).replace(/%V/g,s.AC).replace(/%i/g,s.L).replace(/%n/g,s.L),s.A.K5)PN="",PN=s.A.K5[EZ]instanceof Array?null!==s.A.K5[EZ][s.L]?s.A.K5[EZ][s.L]:"":null!==s.A.K5[EZ]?s.A.K5[EZ]:"",oRE=new RegExp("%data-"+EZ,"g"),AN=AN.replace(oRE,PN);return AN}var PS="",S1="",RS="",TY="",R=s.C.BM(s.A.BW("k")[0]),X=s.C.BM(s.A.BW("v")[0]);R&&(null!==s.BV?PS=S1=RS=s.BV:(null!==ZC._n_(R.V[s.L])&&(PS=S1=RS=R.V[s.L]),null!==ZC._n_(R.BY[s.L])&&(RS=S1=R.BY[s.L]))),null!==ZC._n_(H=s.A.AZ.IU[PS])&&"number"==typeof PS&&(PS=H),null!==ZC._n_(H=s.A.AZ.IU[S1])&&"number"==typeof S1&&(S1=H),null!==ZC._n_(H=s.A.AZ.IU[RS])&&"number"==typeof RS&&(RS=H),TY=null!==ZC._n_(s.A.AN)?s.A.AN:"Series "+(s.A.L+1),s.A.LT&&s.A.A.A4[s.L]&&(TY=s.A.A.A4[s.L].AN||"Series "+s.L);var TX=(TY+"").split(/\s+/),A6C=PS;R&&(BC=R.MU(),ET&&ET["transform-date"]&&ZC._cp_({"transform-date":!0,"transform-date-format":ET["transform-date-format"]},BC),BC.utc=s.C.UK,BC.timezone=s.C.NE,RS=S1=ZC.AO.G5(PS,BC,R,!0),null===s.BV&&(null===ZC._n_(R.BY[s.BV])&&null===ZC._n_(R.BY[s.L])||(S1=RS=R.BY[s.BV]||R.BY[s.L])),BC["transform-date"]&&(RS=ZC.AO.G5(RS,BC,R,!0)));var A52=(S1+"").split(/\s+/),A6O=(RS+"").split(/\s+/),W3=(PS+"").split(/\s+/);CK=s.getFormatValue(),s.A.CQ&&null!==ZC._n_(s.A.CQ.JP[CK])&&s.A22&&(CK=s.A.CQ.JP[CK]);var OU=ZC.PH(CK)&&ZC._f_(CK)<0;if(BC=s.A.MU(),ZC._cp_(ET,BC),OU&&"currency"===BC.negation&&(CK=ZC._a_(ZC._f_(CK))),BC.utc=s.C.UK,BC.timezone=s.C.NE,CK=ZC.AO.G5(CK,BC,s.A,!(!X||!X.F7)&&X.F7),"%v"===AN&&"%vv"!==AN||"%node-value"===AN)return CK;if("%t"===AN||"%plot-text"===AN)return TY;var CA=s.CA||[],oNode_,YP,A69,oPlot_,p,pLen;if(X&&X.NI){var YT=X.MU();null===ZC._n_(YT.decimals)&&(YT.decimals=0);var AAW=X.CM?X.NI(this.iX,!0,"piano"===s.A.AF):X.NI(this.iY,!0,"piano"===s.A.AF),WT=X.FT(0,AAW,YT);CA.push(["%scale-value-value",WT],["%vv",WT]),null!==ZC._n_(H=X.BY[s.L])?CA.push(["%scale-value-label",H],["%vl",H]):CA.push(["%scale-value-label",WT],["%vl",WT])}if(X&&(-1!==AN.indexOf("%scale-value-text")||-1!==AN.indexOf("%vt")))for(-1!==(H=ZC.AV(X.V,s.AC))&&null!==ZC._n_(X.BY)&&null!==ZC._n_(X.BY[H])?CA.push(["%scale-value-text",X.BY[H]],["%vt",X.BY[H]]):CA.push(["%scale-value-text",s.AC],["%vt",s.AC]),oRE=-1!==AN.indexOf("%vt(")?new RegExp("(%vt)\\(([0-9]*)\\)"):new RegExp("(%scale-value-text)\\(([0-9]*)\\)");D1=oRE.exec(AN);)YP="",""!==(H=D1[2])&&(A69=ZC._i_(H),null!==ZC._n_(oPlot_=s.A.A.A4[A69])&&(oNode_=oPlot_.FM(s.L),null!==oNode_&&(YP=oNode_.K2(D1[1])))),AN=AN.replace(D1[0],YP),""!==YP&&CA.push([D1[0],YP]);for(EZ in null!==ZC._n_(s.A.LZ)&&null!==ZC._n_(s.A.LZ[s.L])&&CA.push(["%offset-values",s.A.LZ[s.L]]),s.A.A.A1K&&CA.push(["%stack-top",-1!==ZC.AV(s.A.A.A1K,s.A.L)?1:0]),s.A.K5)PN="",PN=s.A.K5[EZ]instanceof Array?null!==s.A.K5[EZ][s.L]?s.A.K5[EZ][s.L]:"":null!==s.A.K5[EZ]?s.A.K5[EZ]:"","number"==typeof PN&&(PN=ZC.AO.G5(PN,BC,s.A,!(!X||!X.F7)&&X.F7)),CA.push(["%data-"+EZ,PN]);for(i=0;i<A52.length;i++)CA.push(["%scale-key-label-"+i,A52[i]],["%kl"+i,A52[i]]);for(i=0;i<A6O.length;i++)CA.push(["%scale-key-text-"+i,A6O[i]],["%kt"+i,A6O[i]]);for(i=0;i<W3.length;i++)CA.push(["%scale-key-value-"+i,W3[i]],["%kv"+i,W3[i]],["%k"+i,W3[i]]);for(p=0,pLen=oPS.A4.length;p<pLen;p++)null!==ZC._n_(oPS.A4[p].S[s.L])&&(CA.push(["%plot-"+p+"-text",oPS.A4[p].AN||""]),CA.push(["%plot-"+p+"-value",oPS.A4[p].S[s.L].AC]));CA.push(["%scale-key-label",S1],["%scale-key-text",RS],["%scale-key-value",PS],["%scale-key-value-ts",A6C],["%kvts",A6C],["%kt",RS],["%kl",S1],["%kv",PS],["%k",PS],["%node-value",CK],["%v",CK],["%node-numeric-value",s.AC],["%previous-node-value",s.A.S[s.L-1]?s.A.S[s.L-1].AC:null],["%next-node-value",s.A.S[s.L+1]?s.A.S[s.L+1].AC:null],["%V",s.AC],["%node-index",s.L],["%node-x",s.iX],["%node-y",s.iY],["%chart-width",s.G.I],["%chart-height",s.G.F],["%i",s.L],["%n",s.L],["%node-count",s.A.S.length],["%N",s.A.S.length]);var ABL=oPPI["%plot-sum"],A3O=ABL+"",ABK=oPPI["%plot-average"],A3P=ABK+"",A8Q=ZC._f_(oPS.F9["%pstack-"+s.L+"-"+s.A.DZ+"-sum"]||"0"),A53=A8Q+"",AB8=ZC._f_(A8Q/oPS.F9["%pstack-"+s.L+"-"+s.A.DZ+"-stack-length"]),A51=String(AB8),A9M=String(oPS.F9["%pstack-"+s.L+"-"+s.A.DZ+"-stack-length"]),A79=0;null!==ZC._n_(oPS.F9)&&null!==ZC._n_(oPS.F9[s.L])&&(A79=ZC._f_(oPS.F9[s.L]["%total-"+s.A.DZ]||"0"));var A3Q=A79+"";A3O=ZC.AO.G5(A3O,BC),A3P=ZC.AO.G5(A3P,BC),A3Q=ZC.AO.G5(A3Q,BC),A53=ZC.AO.G5(A53,BC),A51=ZC.AO.G5(A51,BC),CA.push(["%node-error-plus",s.E["node-error-plus"]],["%node-error-minus",s.E["node-error-minus"]],["%stack-total",A53],["%stack-average",A51],["%stack-length",A9M],["%total",A3Q],["%plot-min-index",oPPI["%plot-min-index"]],["%pmi",oPPI["%plot-min-index"]],["%plot-max-index",oPPI["%plot-max-index"]],["%pxi",oPPI["%plot-max-index"]],["%plot-min-value",oPPI["%plot-min-value"]],["%pmv",oPPI["%plot-min-value"]],["%plot-max-value",oPPI["%plot-max-value"]],["%pxv",oPPI["%plot-max-value"]],["%plot-sum",A3O],["%psum",A3O],["%plot-average",A3P],["%pavg",A3P],["%plot-values",oPPI["%plot-values"]],["%pv",oPPI["%plot-values"]]);var A9Q=100*s.AC/oPPI["%plot-sum"],YU=A9Q+"";null!==ZC._n_(BC.decimals)&&(YU=ZC.AO.G5(YU,BC)),CA.push(["%plot-percent",YU],["%pper",YU]);var bNpv=!1,W4,AX,J,BZ;for(i=0,A6=CA.length;i<A6;i++)if("%npv"===CA[i][0]){bNpv=!0;break}if(!bNpv&&null!==ZC._n_(s.A.A.F9)&&null!==ZC._n_(s.A.A.F9[s.L])){var JT=100*s.AC/s.A.A.F9[s.L]["%total-"+s.A.DZ],HV=JT+"";null!==ZC._n_(BC.decimals)&&(HV=ZC.AO.G5(HV,BC)),CA.push(["%node-percent-value",HV],["%npv",HV])}for(i=0;i<TX.length;i++)CA.push(["%plot-text-"+i,TX[i]],["%t"+i,TX[i]]);for(CA.push(["%plot-text",TY],["%t",TY],["%plot-description",s.A.NV],["%plot-index",s.A.L],["%p",s.A.L],["%plot-count",oPS.A4.length],["%P",oPS.A4.length],["%id",s.G.K],["%graphid",s.C.K.replace(s.G.K+"-graph-","")]),-1!==AN.indexOf("%negation")&&(OU&&"currency"===BC.negation?(CA.push(["%negation","-"]),OU=!1):CA.push(["%negation",""])),CA.push(["%node-x",s.iX],["%node-y",s.iY],["%node-width",s.I],["%node-height",s.F],["%node-size",s.E["marker.size"]||1]),zingchart.DEV.SORTTOKENS&&CA.sort(ZC.A1Q),oRE=new RegExp("\\(([^(]+?)\\)\\(([0-9]*)\\)(\\(*)([0-9]*)(\\)*)");D1=oRE.exec(AN);){W4="";var CT=s.A.L,DB=s.L;""!==(H=D1[2])&&(CT=ZC._i_(H)),""!==(H=D1[4])&&(DB=ZC._i_(H)),null!==(J=oPS.A4[CT])&&(AX=J.FM(DB,3),null!==AX&&(W4=AX.K2(D1[1],ET))),AN=AN.replace(D1[0],W4)}if(-1!==AN.indexOf("%prop-")){oRE=new RegExp("%prop-([a-zA-Z0-9-]+)");for(var oMap=s.getPMap();D1=oRE.exec(AN);)null!==ZC._n_(oMap[D1[1]])&&null!==ZC._n_(s[oMap[D1[1]]])&&(AN=AN.replace(D1[0],s[oMap[D1[1]]]))}if(-1!==AN.indexOf("%linecolor"))for(oRE=new RegExp("%linecolor([0-9]*)");D1=oRE.exec(AN);)""===D1[1]?(BZ=s.O||s,BZ.B9||(BZ=s.A)):BZ=oPS.A4[D1[1]],AN=AN.replace(D1[0],BZ&&BZ.B9||"#000");if(-1!==AN.indexOf("%backgroundcolor"))for(oRE=new RegExp("%backgroundcolor([0-9]*)");D1=oRE.exec(AN);)if(""===D1[1]?(BZ=s.O||s,BZ.B9||(BZ=s.A)):BZ=oPS.A4[D1[1]],"markerbg"===s.A.P7){var sMColor="#000";BZ&&(BZ.A2?sMColor=BZ.A2.A0||"#000":BZ.L9&&(sMColor=BZ.L9.A0||"#000")),AN=AN.replace(D1[0],sMColor)}else AN=AN.replace(D1[0],BZ&&BZ.A0||"#000");if(-1!==AN.indexOf("%color"))for(oRE=new RegExp("%color([0-9]*)");D1=oRE.exec(AN);)if(""===D1[1]?(BZ=s.O||s,BZ.B9&&"line"!==s.A.P7||(BZ=s.A)):BZ=oPS.A4[D1[1]],"line"===s.A.P7)AN=AN.replace(D1[0],BZ&&BZ.B9||"#000");else if("markerbg"===s.A.P7){var sMColor="#000";BZ&&(BZ.A2?sMColor=BZ.A2.A0||"#000":BZ.L9&&(sMColor=BZ.L9.A0||"#000")),AN=AN.replace(D1[0],sMColor)}else AN=AN.replace(D1[0],BZ&&BZ.A0||"#000");for(AN=ZC.AO.Z4(AN,this),i=0,A6=CA.length;i<A6;i++)oRE=new RegExp(CA[i][0],"g"),AN="undefined"==typeof CA[i][1]?AN.replace(oRE,""):LS?AN.replace(oRE,encodeURIComponent(CA[i][1])):AN.replace(oRE,CA[i][1]);if(AN=AN.replace(new RegExp("%data-([a-zA-Z0-9]+)","g"),""),OU&&"currency"===BC.negation&&(AN="-"+AN),-1!==AN.indexOf("{{")&&-1!==AN.indexOf("}}"))for(oRE=new RegExp("{{(.+?)}}");D1=oRE.exec(AN);){var sExpr=D1[1];sExpr=sExpr.replace(/[a-zA-Z]/g,"");var mEv="";try{mEv=eval(sExpr)}catch(oException){}AN=AN.replace(D1[0],mEv+"")}return AN},paint:function(){},paint_:function(){var e=this;if(e.G.bImageMap&&e.A.FV&&!(e.C.A7&&"undefined"!=typeof e.C.A7.o.visible&&!ZC._b_(e.C.A7.o.visible)||e.A.A7&&"undefined"!=typeof e.A.A7.o.visible&&!ZC._b_(e.A.A7.o.visible))){var i=new ZC.DQ(e),n=e.Y3();i.A0=i.AE=ZC.AO.JR(n["background-color"]),i.C2=n.color,i.AN=e.A.JA,e.C.A7&&i.append(e.C.A7.o),i.append(e.A.A7.o);var t=ZC.AO.OA(i.o,e.A.o);if(i.K2=function(i){return e.K2(i,t)},i.parse(),i.AP){var a="",l="_self";null!==ZC._n_(e.A.E9)&&(a=e.K2(e.A.E9,null,null,!0)),null!==ZC._n_(e.A.FD)&&(l=e.A.FD);var r="";r+="border:"+i.AU+"px "+(""===i.GE?"solid":i.GE)+" "+i.BX+";",r+="borderRadius:"+i.F6+"px "+i.FW+"px "+i.F2+"px "+i.FG+"px;",""!==i.Q1&&(r+="borderTop:"+i.Q1+";"),""!==i.OO&&(r+="borderRight:"+i.OO+";"),""!==i.NQ&&(r+="borderBottom:"+i.NQ+";"),""!==i.PE&&(r+="borderLeft:"+i.PE+";"),i.ME?r+="boxShadow:"+i.JZ+"px "+i.JZ+"px 2px "+i.RW+";":r+="boxShadow:0px 0px 0px none;",r+="backgroundImage:url('"+i.DC+"');",r+="backgroundRepeat:"+i.M8+";",r+="backgroundPosition:"+i.TE+";",r+="textAlign:"+i.OF+";",r+="verticalAlign:"+i.K3+";",r+="color:"+i.C2+";",r+="fontFamily:"+i.GJ+";",r+="fontSize:"+i.DI+"px;",r+="fontWeight:"+i.sFontWeight+";",r+="fontStyle:"+(i.N3?"oblique":"normal")+";",r+="textDecoration:"+(i.QR?"underline":"none")+";",r+="backgroundColor:"+i.A0+";",r+="paddingTop:"+i.FJ+"px;",r+="paddingRight:"+i.FO+"px;",r+="paddingBottom:"+i.FX+"px;",r+="paddingLeft:"+i.ER+"px;",r+="opacity:"+i.C5+";",0!==i.BK&&(r+="marginLeft:"+i.BK+"px;"),0!==i.BJ&&(r+="marginTop:"+i.BJ+"px;"),null!==ZC._n_(i.o.width)&&(r+="width:"+i.I+"px;"),null!==ZC._n_(i.o.width)&&(r+="height:"+i.F+"px;"),e.G.UW[e.K]={text:i.AN,tooltipCss:r,url:a,target:l}}}},ABE:function(){return{color:this.O.A0}},Y3:function(){return{"border-color":this.O.A0,"background-color":this.O.AE,color:this.O.C2}},A8E:function(){return this.Y3()},H1:function(e,i){var n,t,a,l=this;i||(i=1);var r=l.A.AZ;if(!(l.A.V.length>128&&(r.A1-r.W)/(r.DP-r.D4)>l.A.fValueBoxThreshold)&&(l.A.O2&&l.A.O2.length>0&&l.A.O2.length>i-1&&l.H1(e,i+1),l.AP||"pie"===l.A.AF||"pie3d"===l.A.AF)){var o,A=1===i?l.A.U:l.A.O2[i-2];if(A){if(l.A.A77)(o=l.A.A77).K=l.K+"-value-box-"+i,o.Z=l.C.AEE,o.E.plotidx=l.A.L,o.E.nodeidx=l.L,a=ZC.AO.OA(o.o,l.A.o),o.K2=function(e){return l.K2(e,a)},o.parse();else{o=new ZC.DQ(l.A),A.o.rules||l.A.U.HZ||(t="all",null!==ZC._n_(n=A.o.type)&&(t=n),"pie"===l.C.AF||"nestedpie"===l.C.AF||"pie3d"===l.C.AF||"all"!==t||l.A.O2&&0!==l.A.O2.length||(l.A.A77=o)),o.append(A.o),l.appendToValueBox&&!e&&(o.parse(),o.append(l.appendToValueBox(o))),o.GN=l.C.K+"-value-box "+l.C.K+"-plot-"+l.A.L+"-value-box zc-value-box",o.K=l.K+"-value-box-"+i,o.Z=l.C.AEE,a=ZC.AO.OA(o.o,l.A.o),o.K2=function(e){return l.K2(e,a)};var C=l.ABE(o);if(null!==ZC._n_(n=C.color)&&(o.C2=n),null!==ZC._n_(n=C["background-color"])&&(o.A0=o.AE=n),o.E.plotidx=l.A.L,o.E.nodeidx=l.L,l.A.U.HZ&&(l.A.U.H8(l.A.U,o,null,l.M2(null,!1)),o.parse()),o.parse(),o.IQ=function(e){return l.IQ(e)},o.DG()&&(a=o.overrideFormat(a),o.parse()),!l.A.YN){var s=new ZC.DQ(l.A);s.copy(o),l.A.YN=s}if(t="all",null!==ZC._n_(n=A.o.type)&&(t=n),o.AP){o.AP=!1;var u=l.A.o["value-box"].text||"";if("values("===t.substring(0,7)){var Z=t.substring(7,t.length).replace(")","").split(",");-1!==ZC.AV(Z,l.AC)&&(o.AP=!0)}else{var c=t.split(","),p={min:"%plot-min-value",max:"%plot-max-value",first:"%plot-min-index",last:"%plot-max-index"};for(var h in p)-1!==ZC.AV(c,h)&&(("first"!==h&&"last"!==h||l.L!==l.A.JB[p[h]])&&("min"!==h&&"max"!==h||l.AC!==l.A.JB[p[h]])||("object"==typeof u&&null!==ZC._n_(u[h])&&(o.o.text=u[h],o.parse()),o.AP=!0));-1!==ZC.AV(c,"all")&&(o.AP=!0)}}}if(l.C.E["plot"+l.A.L+".visible"]||(o.E["css-display"]="none"),e)return o;if(o.AP&&null!==ZC._n_(o.AN)&&""!==o.AN){var f=l.AC6(o);o.E.positioninfo=f,o.iX=f[0],o.iY=f[1];var _={};if(-1!==o.iX&&-1!==o.iY){var d=!1;if(null!==ZC._n_(o.o.overlap)&&!ZC._b_(o.o.overlap)){_={x:o.iX,y:o.iY,width:o.I,height:o.F};for(var g=0,v=l.A.A.W5.length;g<v;g++)if(ZC.AQ.VD(_,l.A.A.W5[g])){if(d=!0,f.length>2)for(var B=2;B<f.length;B+=2)if(o.iX=f[B],o.iY=f[B+1],_={x:o.iX,y:o.iY,width:o.I,height:o.F},!ZC.AQ.VD(_,l.A.A.W5[g])){d=!1;break}break}}d||(l.C.E["plot"+l.A.L+".visible"]||(o.E["css-display"]="none"),o.E.lbltype="vb"+l.C.L,o.paint(),o.EO(),l.A.A.W5.push(_))}}return o}}},setupValueBoxWH:function(e){if(null!==ZC._n_(e.o.width)){var i=ZC.IO(e.o.width);i<=1&&(i=this.I*i),e.I=i}if(null!==ZC._n_(e.o.height)){var n=ZC.IO(e.o.height);n<=1&&(n=this.I*n),e.F=n}return e},AC6:function(e){var i,n=this,t=n.C.BM(n.A.BW("v")[0]),a=n.AC>=t.LG&&!t.AW||n.AC<t.LG&&t.AW?-1:1,l="auto";if(null!==ZC._n_(i=e.o.placement)&&(l=i),"auto"===l){var r=null!==ZC._n_(n.A.S[n.L-1])?n.A.S[n.L-1].AC:n.AC,o=null!==ZC._n_(n.A.S[n.L+1])?n.A.S[n.L+1].AC:n.AC;r>=n.AC&&n.AC<=o?l="bottom":r<=n.AC&&n.AC>=o?l="top":r>=n.AC&&n.AC>=o?l=r/n.AC>n.AC/o?"bottom":"top":r<=n.AC&&n.AC<=o&&(l=n.AC/r>o/n.AC?"top":"bottom")}var A=e.I,C=e.F,s=n.iX-A/2,u=n.iY-C/2;switch(l){case"top":u-=a*(C/2+4);break;case"bottom":u+=a*(C/2+4);break;case"left":s-=A/2+4;break;case"right":s+=A/2+4}n.C.AJ["3d"]||(s=ZC.BR(n.C.P.iX-A/2,s),s=ZC.CY(n.C.P.iX+n.C.P.I-A/2,s),u=ZC.BR(n.C.P.iY-C,u),u=ZC.CY(n.C.P.iY+n.C.P.F,u)),null!==ZC._n_(e.o.x)&&(s=e.iX),null!==ZC._n_(e.o.y)&&(u=e.iY);var Z=[ZC._i_(s),ZC._i_(u)];return ZC._b_(e.o.flexible)&&(Z.push(ZC._i_(n.iX-A/2),ZC._i_(n.iY-C/2-a*(C/2+5))),Z.push(ZC._i_(n.iX-A/2),ZC._i_(n.iY-C/2+a*(C/2+5))),Z.push(ZC._i_(n.iX-A/2-A/2-5),ZC._i_(n.iY-C/2)),Z.push(ZC._i_(n.iX-A/2+A/2+5),ZC._i_(n.iY-C/2)),Z.push(ZC._i_(n.iX-A/2),ZC._i_(n.iY-C/2-a*(C/2+10))),Z.push(ZC._i_(n.iX-A/2),ZC._i_(n.iY-C/2+a*(C/2+10))),Z.push(ZC._i_(n.iX-A/2-A/2-10),ZC._i_(n.iY-C/2)),Z.push(ZC._i_(n.iX-A/2+A/2+10),ZC._i_(n.iY-C/2))),Z},PK:function(e,i){var n,t,a,l,r,o=this;if("undefined"==typeof o.A.bBS&&(o.A.bBS=-1===ZC.AV(["bubble","hbubble","scatter","hscatter"],o.A.AF)),null!==ZC._n_(o.A.o["markers-on-top"])&&(o.A.bBS=ZC._b_(o.A.o["markers-on-top"])),!o.C.OG||!o.A.bBS){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var A=o.C.P.E.tolerance||2,C=!0;if(ZC.DS(o.iX,o.C.P.iX-A,o.C.P.iX+o.C.P.I+A)&&ZC.DS(o.iY,o.C.P.iY-A,o.C.P.iY+o.C.P.F+A)||(C=!1,0!==zingchart.DEV.TRACKERMASKING)){var s=o.C.K+"-node-area "+o.C.K+"-plotset-plot-"+o.A.L+"-node-area zc-node-area";if(-1===ZC.AV(o.G.KQ,"skip_segment_tracking")&&o.A.FV){if(o.A.XZ&&!zingchart.DEV.SKIPTRACKERS){var u=o.getNodeData("points");if(-1!==ZC.AV(o.G.KQ,"use_fast_mode")&&-1!==ZC.AV(["line","area"],o.A.AF)&&void 0===u&&o.paint(!0),u)if("undefined"==typeof o.E.polypoints){if(2===zingchart.DEV.TRACKERMASKING){for(var Z=[o.C.P.iX,o.C.P.iY,o.C.P.iX+o.C.P.I,o.C.P.iY+o.C.P.F],c=[[Z[0],Z[1],Z[2],Z[1]],[Z[0],Z[3],Z[2],Z[3]],[Z[0],Z[1],Z[0],Z[3]],[Z[2],Z[1],Z[2],Z[3]]],p=[],h=0;h<u.length-1;h++)p.push([[u[h][0],u[h][1]],[u[h+1][0],u[h+1][1]]]);var f=[];for(h=0;h<p.length;h++){var _=p[h],d=_[0],g=_[1],v=ZC.AQ._outside_(d,Z),B=ZC.AQ._outside_(g,Z),E=[];if(v||B){for(var b=0;b<c.length;b++){var D=c[b],F=ZC.AQ._intersect_(d,g,[D[0],D[1]],[D[2],D[3]]);F&&(E.push(F),v&&!B&&F.join(",")!==g.join(",")?(_[0]=F,f.push(_)):!v&&B&&F.join(",")!==d.join(",")&&(_[1]=F,f.push(_)))}v&&B&&(0===E.length||2===E.length&&(Math.abs(ZC.AQ._angle_(d,g)-ZC.AQ._angle_(E[0],E[1]))<.01?(_[0]=E[0],_[1]=E[1]):(_[0]=E[1],_[1]=E[0]),f.push(_)))}else f.push(_)}var m=[];for(h=0;h<f.length;h++)2===f[h].length&&m.push(f[h][0],f[h][1])}else m=u;a=ZC.AQ.PJ(ZC.AQ.Z1(m,ZC.BR(6,o.A.B1/2)),4)}else a=ZC.AQ.PJ(u,4);""!==a&&void 0!==a&&o.A.A.H3.push(ZC.Q.FP("poly",o.A.E9,o.O.IE)+'class="'+s+'" id="'+o.K+'" coords="'+a+'" />')}if(("area"===o.A.AF||"area3d"===o.A.AF||"radar"===o.A.AF&&("area"===o.A.CW||"range"===o.A.CW))&&o.A.XE){var Y=o.getNodeData("pointsarea");""!==(a=ZC.AQ.PJ(Y,4))&&o.A.A.H3.push(ZC.Q.FP("poly",o.A.E9,o.A.IE)+'class="'+s+'" id="'+o.K+'--area" coords="'+a+'" />')}}if(C&&(o.A.U||!o.A.GX||!o.A.A2.o||"none"!==o.A.A2.o.type&&(null===ZC._n_(o.A.A2.o.visible)||ZC._b_(o.A.A2.o.visible)))){if(i||o.A.R8){if(o.A.HH)l=o.A.HH,"svg"!==o.G.AB&&(e?(r=new ZC.CE(o.C,o.iX-ZC.AM.E1,o.iY-ZC.AM.E2,o.A.E["z-start"]||0),l.iX=ZC._x_(r.EC[0]),l.iY=ZC._x_(r.EC[1]),o.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(o.iX),l.iY=ZC._x_(o.iY)),l.E.plotidx=o.A.L,l.E.nodeidx=o.L,l.K=o.K+"-marker",l.parse(!0));else{if(o.GX?o.A._oMarker?l=o.A._oMarker:o.A._oMarker=l=new ZC.DT(o.A):l=new ZC.DT(o.A),l.K=o.K+"-marker",l.E["p-width"]=o.A.AZ.AD,l.E["p-height"]=o.A.CQ.AD,l.Z=o.C.AEE,l.C8=o.C.AEE,e?(r=new ZC.CE(o.C,o.iX-ZC.AM.E1,o.iY-ZC.AM.E2,o.A.E["z-start"]||0),l.iX=ZC._x_(r.EC[0]),l.iY=ZC._x_(r.EC[1]),o.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(o.iX),l.iY=ZC._x_(o.iY)),l.B9=o.A.BP[3],l.BX=o.A.BP[4],l.A0=o.A.BP[2],"bubble"===o.A.AF||"hbubble"===o.A.AF?l.AE=o.A.BP[1]:l.AE=o.A.BP[2],l.append(o.A.A2.o),null!==ZC._n_(o.E["marker.size"])&&(l.AI=o.E["marker.size"]),l.E.plotidx=o.A.L,l.E.nodeidx=o.L,"none"!==o.A.J4&&(o.C.IY[o.A.L]||o.C.KL))if(o.C.CF["p"+o.A.L]&&o.C.CF["p"+o.A.L]["n"+o.L]){if(l.LR={},o.A.PR&&ZC._cp_(o.A.PR.o,l.LR),l.LR.rules){var M=new ZC.DT(o.A);M.o=l.LR,M.parse(),M.IQ=function(e){return o.IQ(e)},M.DG()&&(l.LR=M.o)}}else"none"!==o.A.O8&&("plot"===o.A.O8&&o.C.IY[o.A.L]||"graph"===o.A.O8&&o.C.KL)&&(l.LR=o.A.PQ?o.A.PQ.o:{});null!==ZC._n_(n=o.A.o.marker)&&null!==ZC._n_(n.styles)&&null!==ZC._n_(t=n.styles[o.L])&&("string"==typeof t?l.append({"background-color":ZC.AO.PP(t,20),"line-color":ZC.AO.JR(t,20),"border-color":ZC.AO.JR(t,20)}):l.append(t)),l.parse(),l.IQ=function(e){return o.IQ(e)},l.DG()&&l.parse()}if(o.E["marker.size"]=ZC.BR(2.02,o.E["marker.size"]||l.AI),l.DF=s,!(e||ZC.DS(l.iX,o.C.P.iX-2,o.C.P.iX+o.C.P.I+2)&&ZC.DS(l.iY,o.C.P.iY-2,o.C.P.iY+o.C.P.F+2)))return;if(l.HZ&&(o.A.YM=!1,l.H8(l,l,null,o.M2(null,!1)),l.parse()),o.L9=l,l.AP&&"none"!==l.AF){var I=!1;if((!o.A.bBS||"radar"===o.A.AF&&"dots"===o.A.CW)&&(I=!0),!o.A.GG||!I||o.C.HM){var K="circle"===l.DH?"circle":"path";if(o.A.HN);else{l.paint();var X=l.A0!==l.AE;o.C.IY[o.A.L]||!o.A.YM||X||"svg"===o.G.AB||"bubble"!==o.A.AF&&"hbubble"!==o.A.AF&&(e||(o.A.HH=l))}"svg"===o.G.AB&&o.A.applyJsRuleSvg(o.A.A2,o.K+"-marker-"+K,o.M2()),function(){if(o.A.bBS||o.N9(ZC.Q.EE(o.C.AEF,o.G.AB)),o.E["marker.type"]=l.DH,o.A.FV&&-1===ZC.AV(o.G.KQ,"skip_marker_tracking")&&!zingchart.DEV.SKIPTRACKERS){var e=o.E["3dxy"]?o.E["3dxy"][0]:o.iX,i=o.E["3dxy"]?o.E["3dxy"][1]:o.iY,n=parseInt(e+l.BK+ZC.MAPTX,10),t=parseInt(i+l.BJ+ZC.MAPTX,10),a=parseInt(ZC.BR(ZC.mobile?6:3,o.E["marker.size"]+1)*(ZC.mobile?1.25:1.05),10),r=!0;"undefined"!=typeof o.A.aLastMarkerXY?Math.sqrt((n-o.A.aLastMarkerXY[0])*(n-o.A.aLastMarkerXY[0])+(t-o.A.aLastMarkerXY[1])*(t-o.A.aLastMarkerXY[1]))<zingchart.DEV.MINTRACKERDIFF&&(r=!1):o.A.aLastMarkerXY=[n,t],r&&(o.A.aLastMarkerXY=[n,t],-1!==ZC.AV(["pie","square","rect","rectangle"],l.DH)?o.A.A.H3.push(ZC.Q.FP("poly",o.A.E9,o.A.IE)+'class="'+s+'" id="'+o.K+'--marker" coords="'+l.F1()+'" />'):o.A.A.H3.push(ZC.Q.FP("circle",o.A.E9,o.A.IE)+'class="'+s+'" '+o.a11y()+' id="'+o.K+'--marker" coords="'+n+","+t+","+a+'" />'))}if(o.A.U&&(o.A.E.vboxid=o.K,o.H1()),!o.A.bBS&&o.C.B7&&o.C.B7.I3&&o.A.QU&&o.C.B7.AP){var A=o.C.P,C=o.C.B7,u=C.AT,Z=o.A.HH||l,c=new ZC.DT(o.A);c.copy(Z);var p=(o.iX-A.iX)/A.I,h=(o.iY-A.iY)/A.F,f=Math.min(u.F/A.F,u.I/A.I);c.iX=u.iX+u.AU+p*(u.I-2*u.AU),c.iY=u.iY+u.AU+h*(u.F-2*u.AU),c.K=o.K+"-marker-preview",c.DF=o.A.K+"-preview";var _=Z.AI;null!==ZC._n_(o.E["marker.size"])&&(_=o.E["marker.size"]),c.AI=ZC.BR(2.02,.9*f*_),c.Z=c.C8=C.Z,c.parse(),c.paint()}}()}}else o.A.U&&o.H1()}else o.A.U&&o.H1()}}}},LU:function(e,i){},U3:function(e){var i=this;i.A.GX&&i.A.bXY&&(i.R2(),e&&("scatter"!==i.A.AF&&"hscatter"!==i.A.AF&&"bubble"!==i.A.AF&&"hbubble"!==i.A.AF||i.paint(!0)));var n=i.A.BP;i.MC({layer:e,type:"shape",id:"marker",marker:!0,initcb:function(){this.DH=i.E["marker.type"],this.iX=i.iX,this.iY=i.iY,"bubble"===i.A.AF||"hbubble"===i.A.AF?(this.AE=n[3],this.A0=n[2]):(this.A0=n[2],this.AE=n[1]),this.B9=n[3],this.BX=n[4],this.AI=i.E["marker.size"]}})},A1W:function(e){var i=this;i.MC({layer:e,type:"line",id:"line",initcb:function(){this.B9=i.A.BP[3]}})},MC:function(e){},N9:function(){},setup:function(){},A15:function(){},LN:function(){},M2:function(e,i){var n=this;void 0===i&&(i=!0);var t=!1;"none"!==n.A.J4&&n.C.CF&&n.C.CF["p"+n.A.L]&&n.C.CF["p"+n.A.L]["n"+n.L]&&(t=!0);var a={id:n.C.A.K,graphid:n.C.K,graphindex:n.C.L,plotid:n.A.HA,plotindex:n.A.L,nodeindex:n.L,key:null===n.BV?n.L:n.BV,scaleval:n.A.AZ?n.A.AZ.V[null===n.BV?n.L:n.BV]:null,scaletext:n.A.AZ?n.A.AZ.FT(n.L,null===n.BV?null:n.A):null,value:n.AC,text:i?n.K2(n.A.JA):n.A.JA,ev:e?ZC.A3.C1(e):null,x:n.iX,y:n.iY,width:n.I,height:n.F,size:n.E["marker.size"]||1,selected:t};for(var l in n.A.K5)n.A.K5[l]instanceof Array?null!==ZC._n_(n.A.K5[l][n.L])&&(a["data-"+l]=n.A.K5[l][n.L]):a["data-"+l]=n.A.K5[l];return a},X6:function(e,i){}};ZC.LM=ZC.DQ.CD(LM),ZC.A30=ZC.LM.CD({setup:function(){this.R2()},ABE:function(){return{color:this.A.GX?this.A.B9:this.O.B9}},Y3:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L9.AI)},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var n=i.A.NG,t=i.A.OD,a=i.A.AZ,l=i.A.S;if(i.setup(),!i.A.GX||i.C.AJ["3d"]||i.A.FV){i.O.D0=i.D0=!1,i.O.C8=i.C.AEG;var r=[],o=i.A.CW;(i.C.OG||i.A.U8)&&"spline"===i.A.CW&&(o="segmented");var A="undefined"!=typeof i.A.GC?i.A.GC:i.A.Y,C="undefined"!=typeof i.A.HK?i.A.HK:i.A.Y,s=!0,u=!0;(null===ZC._n_(l[i.L-A])||"log"!==a.BS&&!a.EI&&i.L<=a.W)&&(s=!1);var Z,c,p,h=i.A.LT?i.A.S.length:a.A1;switch((null===ZC._n_(l[i.L+C])||"log"!==a.BS&&!a.EI&&i.L>=h)&&(u=!1),o){default:s&&(i.A.FM(i.L-A,0).setup(),i.A.UX&&(Z=ZC.AQ.K1(i.A.S[i.L-A].iX,i.A.S[i.L-A].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),r.push(Z))),r.push([i.iX,i.iY]),u&&(i.A.FM(i.L+C,2).setup(),Z=i.A.UX?ZC.AQ.K1(i.A.S[i.L].iX,i.A.S[i.L].iY,i.A.S[i.L+C].iX,i.A.S[i.L+C].iY,i.O.C5):[l[i.L+C].iX,l[i.L+C].iY],r.push(Z));break;case"spline":if(i.A.D&&(r=i.A.D),i.A.D=[],l[i.L+1]){var f=[],_=[];for(c=-1;c<3;c++)l[i.L+c]?(i.A.FM(i.L+c,2).setup(),n?(f.push(l[i.L+c].iX),_.push(l[i.L+c].iY)):(f.push(l[i.L+c].iY),_.push(l[i.L+c].iX))):0===f.length?n?(_.push(i.iY),f.push(i.iX)):(_.push(i.iX),f.push(i.iY)):(f.push(f[f.length-1]),_.push(_[_.length-1]));var d=ZC._a_(_[2]-_[1]);d=Math.min(d,Math.max(i.C.I,i.C.F));var g=ZC.AQ.YC(i.A.QI,f,d);if(i.A.UX){for(c=0;c<ZC._i_(g.length/2)+(1===i.O.C5?1:0);c++)g[c]&&(n?r.push([g[c][1],i.iY+(a.AW?1:-1)*g[c][0]*d]):r.push([i.iX+(a.AW?-1:1)*g[c][0]*d,g[c][1]]));for(c=ZC._i_(g.length/2)-1,p=g.length;c<p;c++)g[c]&&(n?i.A.D.push([g[c][1],i.iY+(a.AW?1:-1)*g[c][0]*d]):i.A.D.push([i.iX+(a.AW?-1:1)*g[c][0]*d,g[c][1]]))}else for(c=0;c<ZC._i_(g.length);c++)n?r.push([g[c][1],i.iY+(a.AW?1:-1)*g[c][0]*d]):r.push([i.iX+(a.AW?-1:1)*g[c][0]*d,g[c][1]])}break;case"stepped":if(s)switch(i.A.FM(i.L-A,0).setup(),Z=ZC.AQ.K1(i.A.S[i.L-A].iX,i.A.S[i.L-A].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),i.A.SR){default:n?r.push([l[i.L-A].iX,Z[1]],[i.iX,Z[1]]):r.push([Z[0],l[i.L-A].iY],[Z[0],i.iY]);break;case"before":r.push([i.A.S[i.L-A].iX,l[i.L-A].iY],[i.A.S[i.L-A].iX,i.iY]);break;case"after":}if(r.push([i.iX,i.iY]),u)switch(i.A.FM(i.L+C,0).setup(),Z=ZC.AQ.K1(i.A.S[i.L+A].iX,i.A.S[i.L+A].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),i.A.SR){default:r.push(n?[i.iX,Z[1]]:[Z[0],i.iY]);break;case"before":break;case"after":r.push([i.A.S[i.L+A].iX,i.iY],[i.A.S[i.L+A].iX,l[i.L+C].iY])}break;case"jumped":s?(i.A.FM(i.L-A,0).setup(),Z=ZC.AQ.K1(i.A.S[i.L-A].iX,i.A.S[i.L-A].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),r.push(n?[i.iX,Z[1]]:[Z[0],i.iY])):r.push(n?[i.iX,i.iY-a.AD/2]:[i.iX-a.AD/2,i.iY]),r.push([i.iX,i.iY]),u?(i.A.FM(i.L+C,0).setup(),Z=ZC.AQ.K1(i.A.S[i.L+A].iX,i.A.S[i.L+A].iY,i.A.S[i.L].iX,i.A.S[i.L].iY),r.push(n?[i.iX,Z[1]]:[Z[0],i.iY])):r.push(n?[i.iX,i.iY+a.AD/2]:[i.iX+a.AD/2,i.iY])}if(i.setNodeData({points:r}),"ready"!==i.C.M7&&(i.A.V3=i.A.V3.concat(r)),!e&&!i.C.AJ["3d"]){var v=i.O=i.A.IJ(i,i.O),B=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";v.DF=B,v.K=i.K,i.A.HZ&&i.H8(v),ZC.CO.setup(t,v),i.paintPreview(v,r),i.A.GG&&!i.C.HM||(ZC.CO.paint(t,v,r),!i.C.OG&&ZC.DS(i.iX,a.iX-1,a.iX+a.I+1)&&ZC.DS(i.iY,a.iY-1,a.iY+a.F+1)&&(i.PK(),i.N9(ZC.Q.EE(i.C.AEF,i.G.AB)),i.A.U&&i.A.U.AP&&i.A.E.vboxid!==i.K&&i.H1()))}}},paintPreview:function(e,i){var n=this;if(n.C.B7&&n.C.B7.I3&&n.A.QU){var t,a=n.A.mapPointsToPreview(i);n.A.VY?t=n.A.VY:(t=new ZC.CZ(n),n.A.VY=t),t.copy(e),t.K=n.K+"-line-preview",t.DF=n.A.K+"-preview";var l=ZC.Q.EE(n.C.B7.Z,n.G.AB);t.B1=1;var r=n.o["preview-state"];r&&(t.append(r),t.parse());var o=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(l,t,a,null,3),ZC.BOUNDS=o}},A15:function(e){}}),ZC.A31=ZC.LM.CD({setup:function(){this.R2()},ABE:function(){return{color:this.A.GX?this.A.B9:this.O.B9}},Y3:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},getTooltipPosition:function(e,i){return this.b(e,i,this.L9.AI)},paint:function(e){var i,n,t,a,l,r,o,A,C=this;void 0===e&&(e=!1),C.b();var s=C.A.NG,u=C.A.OD,Z=C.A.AZ,c=C.A.CQ,p=C.A.S;if(C.setup(),!C.A.GX||C.C.AJ["3d"]||C.A.FV){C.O.D0=C.D0=!1,C.O.C8=C.C.AEG;var h=c.HC,f=c.AR(h);f=s?ZC._l_(f,c.iX,c.iY+c.I):ZC._l_(f,c.iY,c.iY+c.F);var _=Z.DE?Z.AD/2:0,d=[],g=[],v=[],B=null;null!==ZC._n_(C.A.A.F3)&&null!==ZC._n_(C.A.A.F3[C.L])&&(B=C.A.A.F3[C.L]);var E=C.A.CW;(C.C.OG||C.A.U8)&&"spline"===C.A.CW&&(E="segmented"),n=C.O.B1/2+.5,t=0,"vml"===C.G.AB&&C.A.GG&&(t=.5),C.C.AJ["3d"]&&(t=1===C.A.HS?1:C.A.HS/3,Z.AW&&(t=-t));var b,D="undefined"!=typeof C.A.GC?C.A.GC:C.A.Y,F="undefined"!=typeof C.A.HK?C.A.HK:C.A.Y,m=!0,Y=!0;(!p[C.L-D]||"log"!==Z.BS&&!Z.EI&&C.L<=Z.W)&&(m=!1);var M=C.A.LT?C.A.S.length:Z.A1;switch((!p[C.L+F]||"log"!==Z.BS&&!Z.EI&&C.L>=M)&&(Y=!1),E){default:if(m)C.A.FM(C.L-D,0).setup(),C.A.UX?(l=ZC.AQ.K1(p[C.L-D].iX,p[C.L-D].iY,p[C.L].iX,p[C.L].iY),v.push([ZC._i_(l[0])-t,l[1]-n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(l[0])-t,f]),g.push([ZC._i_(l[0])-t,l[1]+n]),d.push([l[0],l[1]])):g.push([ZC._i_(C.iX),f]);else if(Z.EI||C.L!==Z.W)C.A.CG&&null!==ZC._n_(B)?(b=C.A.A.A4[C.A.L-1])&&b.S[C.L]&&g.push([ZC._i_(C.iX),b.S[C.L].iY+n]):(g.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX-Z.AD/2),f]),v.push([ZC._i_(C.iX),f]));else if(Z.AW)C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),f]),g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),C.iY+n]);else{var I=ZC._i_(Z.iX+Z.A9+_);C.A.LT&&(I=Z.II(C.A.R9)-Z.AD/2),C.A.CG&&null!==ZC._n_(B)||g.push([I,f]),g.push([I,C.iY+n])}v.push([ZC._i_(C.iX),C.iY-n]),g.push([ZC._i_(C.iX),C.iY+n]),d.push([C.iX,C.iY]),Y?(C.A.FM(C.L+F,2).setup(),a=C.A.UX?ZC.AQ.K1(p[C.L].iX,p[C.L].iY,p[C.L+F].iX,p[C.L+F].iY):[p[C.L+F].iX,p[C.L+F].iY],v.push([ZC._i_(a[0]),a[1]-n]),g.push([ZC._i_(a[0]),a[1]+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(a[0]),f]),l=C.A.UX?ZC.AQ.K1(p[C.L].iX,p[C.L].iY,p[C.L+F].iX,p[C.L+F].iY,C.O.C5):[p[C.L+F].iX,p[C.L+F].iY],d.push([l[0],l[1]])):C.L===Z.A1?Z.AW?(g.push([Z.iX+Z.A9-_,C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.A9-_),f])):(g.push([Z.iX+Z.I-Z.BU-_,C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),f])):C.A.CG&&null!==ZC._n_(B)?(b=C.A.A.A4[C.A.L-1])&&b.S[C.L]&&g.push([ZC._i_(C.iX),b.S[C.L].iY+n]):(g.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX+Z.AD/2),f]));break;case"spline":if(null!==ZC._n_(C.A.D9)&&(v=C.A.D9),null!==ZC._n_(C.A.AH)&&(g=C.A.AH),C.A.D9=[],C.A.AH=[],null!==ZC._n_(C.A.D)&&(d=C.A.D),C.A.D=[],p[C.L+1]){var K=[],X=[];for(r=-1;r<3;r++)p[C.L+r]?(C.A.FM(C.L+r,2).setup(),s?(K.push(p[C.L+r].iX),X.push(p[C.L+r].iY)):(K.push(p[C.L+r].iY),X.push(p[C.L+r].iX))):0===K.length?s?(X.push(C.iY),K.push(C.iX)):(X.push(C.iX),K.push(C.iY)):(K.push(K[K.length-1]),X.push(X[X.length-1]));var x=ZC._a_(X[2]-X[1]);x=Math.min(x,Math.max(C.C.I,C.C.F));var L=ZC.AQ.YC(C.A.QI,K,x);if(C.A.UX){for(0===g.length&&(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[0][0]*x),f])),r=0;r<ZC._i_(L.length/2)+(1===C.O.C5?1:0);r++)L[r]&&(s?d.push([L[r][1],C.iY+(Z.AW?1:-1)*L[r][0]*x]):d.push([C.iX+(Z.AW?-1:1)*L[r][0]*x,L[r][1]]));for(r=0;r<ZC._i_(L.length/2)+(1===C.O.HS?1:0);r++)v.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]-n]),g.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]]);for(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(g[g.length-1][0]),f]),A=1===C.HS?ZC.CY(2,ZC._i_(L.length/2)):1,r=ZC._i_(L.length/2)-1,o=L.length;r<o;r++)L[r]&&(s?C.A.D.push([L[r][1],C.iY+(Z.AW?1:-1)*L[r][0]*x]):C.A.D.push([C.iX+(Z.AW?-1:1)*L[r][0]*x,L[r][1]]));for(r=ZC._i_(L.length/2)-A,o=L.length;r<o;r++)0===C.A.AH.length&&(C.A.CG&&null!==ZC._n_(B)||C.A.AH.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),f])),C.A.AH.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]]),C.A.D9.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]-n])}else{for(0===g.length&&(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[0][0]*x),f])),r=0;r<L.length;r++)s?d.push([L[r][1],C.iY+(Z.AW?1:-1)*L[r][0]*x]):d.push([C.iX+(Z.AW?-1:1)*L[r][0]*x,L[r][1]]);for(r=0;r<L.length;r++)v.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]-n]),g.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]]);for(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(g[g.length-1][0]),f]),A=1===C.HS?ZC.CY(2,ZC._i_(L.length/2)):1,r=L.length,o=L.length;r<o;r++)s?C.A.D.push([L[r][1],C.iY+(Z.AW?1:-1)*L[r][0]*x]):C.A.D.push([C.iX+(Z.AW?-1:1)*L[r][0]*x,L[r][1]]);for(r=L.length-A,o=L.length;r<o;r++)0===C.A.AH.length&&(C.A.CG&&null!==ZC._n_(B)||C.A.AH.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),f])),C.A.AH.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]]),C.A.D9.push([ZC._i_(C.iX+(Z.AW?-1:1)*L[r][0]*x),L[r][1]-n])}}else g.length>0&&g.push([g[g.length-1][0],f]);break;case"stepped":if(m)switch(C.A.FM(C.L-D,0).setup(),l=ZC.AQ.K1(p[C.L-D].iX,p[C.L-D].iY,p[C.L].iX,p[C.L].iY),C.A.SR){default:v.push([ZC._i_(l[0])-t,C.iY-n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(l[0])-t,f]),g.push([ZC._i_(l[0])-t,C.iY+n]),d.push(s?[p[C.L-D].iX,l[1]]:[l[0],p[C.L-D].iY]),d.push(s?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":v.push([ZC._i_(p[C.L-D].iX)-t,C.iY-n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(p[C.L-D].iX)-t,f]),g.push([ZC._i_(p[C.L-D].iX)-t,C.iY+n]),d.push([p[C.L-D].iX,p[C.L-D].iY]),d.push([p[C.L-D].iX,C.iY]);break;case"after":v.push([ZC._i_(C.iX)-t,C.iY-n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(C.iX)-t,f]),g.push([ZC._i_(C.iX)-t,C.iY+n])}else Z.EI||C.L!==Z.W?C.A.CG&&null!==ZC._n_(B)?(b=C.A.A.A4[C.A.L-1])&&b.S[C.L]&&g.push([ZC._i_(C.iX),b.S[C.L].iY+n]):(g.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX-Z.AD/2),f]),v.push([ZC._i_(C.iX),f])):Z.AW?(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),f]),g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),C.iY+n])):(C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.A9+_),f]),g.push([ZC._i_(Z.iX+Z.A9+_),C.iY+n]));if(v.push([ZC._i_(C.iX),C.iY-n]),g.push([ZC._i_(C.iX),C.iY+n]),d.push([C.iX,C.iY]),Y)switch(C.A.FM(C.L+F,2).setup(),l=ZC.AQ.K1(p[C.L].iX,p[C.L].iY,p[C.L+F].iX,p[C.L+F].iY,C.O.C5),C.A.SR){default:v.push([ZC._i_(l[0]),C.iY-n]),g.push([ZC._i_(l[0]),C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(l[0]),f]),d.push(s?[C.iX,l[1]]:[l[0],C.iY]);break;case"before":v.push([ZC._i_(C.iX),C.iY-n]),g.push([ZC._i_(C.iX),C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(C.iX),f]);break;case"after":v.push([ZC._i_(p[C.L+F].iX),C.iY-n]),g.push([ZC._i_(p[C.L+F].iX),C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(p[C.L+F].iX),f]),d.push([p[C.L+F].iX,C.iY]),d.push([p[C.L+F].iX,p[C.L+F].iY])}else C.L===Z.A1?Z.AW?(g.push([Z.iX+Z.A9-_,C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.A9-_),f])):(g.push([Z.iX+Z.I-Z.BU-_,C.iY+n]),C.A.CG&&null!==ZC._n_(B)||g.push([ZC._i_(Z.iX+Z.I-Z.BU-_),f])):C.A.CG&&null!==ZC._n_(B)?(b=C.A.A.A4[C.A.L-1])&&b.S[C.L]&&g.push([ZC._i_(C.iX),b.S[C.L].iY+n]):(g.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX),f]),v.push([ZC._i_(C.iX+Z.AD/2),f]))}if(C.A.CG&&null!==ZC._n_(B))for(r=B.length-1;r>=0;r--)g.push(B[r]);if(C.setNodeData({points:d,pointsarea:g}),"ready"!==C.C.M7&&(C.A.V3=C.A.V3.concat(d)),null===ZC._n_(C.A.A.F3)&&(C.A.A.F3=[]),C.A.A.F3[C.L]=v,!e&&!C.C.AJ["3d"]){var P=C.O=C.A.IJ(C,C.O),w=C.C.K+"-node-area "+C.C.K+"-plotset-plot-"+C.A.L+"-node-area zc-node-area";P.DF=w,P.K=C.K,C.A.HZ&&C.H8(P);var S,y=C.C.P;if(0!==C.A.E6.length||C.A.HZ||"undefined"==typeof C.A.A9J||C.O.o.override||C.C.KL?((S=new ZC.DT(C.A)).copy(P),S.C5=C.A.HS):S=C.A.A9J,C.H8(S),S.C5=ZC._f_(S.o["alpha-area"]||"1"),S.D0=!1,S.LB=!0,S.B1=0,S.AU=0,S.EU=0,S.G3=0,S.Z=C.C.AEH,4===ZC.BOUNDS.length)for(o=g.length,r=0;r<o;r++)g[r][0]<ZC.BOUNDS[0]&&(g[r][0]=ZC.BOUNDS[0]),g[r][0]>ZC.BOUNDS[2]&&(g[r][0]=ZC.BOUNDS[2]),g[r][1]<ZC.BOUNDS[1]&&(g[r][1]=ZC.BOUNDS[1]),g[r][1]>ZC.BOUNDS[3]&&(g[r][1]=ZC.BOUNDS[3]),4===g[r].length&&(g[r][2]<ZC.BOUNDS[0]&&(g[r][2]=ZC.BOUNDS[0]),g[r][2]>ZC.BOUNDS[2]&&(g[r][2]=ZC.BOUNDS[2]),g[r][3]<ZC.BOUNDS[1]&&(g[r][3]=ZC.BOUNDS[1]),g[r][3]>ZC.BOUNDS[3]&&(g[r][3]=ZC.BOUNDS[3]));S.D=g,S.D2=[y.iX,y.iY,y.iX+y.I,y.iY+y.F],null!==ZC._n_(i=C.A.E["min-y"])&&(S.E["bound-1"]=i,S.D2[1]=i),null!==ZC._n_(i=C.A.E["max-y"])&&(S.E["bound-3"]=i,S.D2[3]=i),S.K=C.K+"-area",C.A.GG||(S.E.areanode=!0),ZC.CO.setup(u,P),C.paintPreview(P,d,g),C.A.GG&&!C.C.HM||(S.paint(),0!==C.A.E6.length||"undefined"!=typeof C.A.A9J||C.O.o.override||C.C.KL||C.C.HM||(C.A.A9J=S),ZC.CO.paint(u,P,d),!C.C.OG&&ZC.DS(C.iX,Z.iX-1,Z.iX+Z.I+1)&&ZC.DS(C.iY,Z.iY-1,Z.iY+Z.F+1)&&(C.PK(),C.N9(ZC.Q.EE(C.C.AEF,C.G.AB)),C.A.U&&C.A.U.AP&&C.A.E.vboxid!==C.K&&C.H1()))}}},paintPreview:function(e,i,n){var t=this;if(t.C.B7&&t.C.B7.I3&&t.A.QU){var a,l=t.C.P,r=t.C.B7,o=t.A.mapPointsToPreview(n),A=new ZC.DT(t.A);A.copy(e),A.D0=!0,A.LB=!0,A.B1=0,A.AU=0,A.EU=0,A.G3=0,A.C5=t.A.HS,A.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],A.K=t.K+"-area-preview",A.DF=t.A.K+"-preview",A.Z=r.Z;var C,s=t.A.o["preview-state"];s&&(null!==ZC._n_(s["alpha-area"])?(a=s.alpha,s.alpha=s["alpha-area"]):s.alpha=A.C5,A.append(s),A.parse(),null!==ZC._n_(a)?s.alpha=a:delete s.alpha),A.D=o,A.paint();var u=t.A.mapPointsToPreview(i);t.A.VY?C=t.A.VY:(C=new ZC.CZ(t),t.A.VY=C),C.copy(e),C.K=t.K+"-line-preview",C.DF=t.A.K+"-preview";var Z=ZC.Q.EE(r.Z,t.G.AB);C.B1=1,s&&(C.append(s),C.parse());var c=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(Z,C,u,null,3),ZC.BOUNDS=c}},A15:function(e){}}),ZC.ZL=ZC.LM.CD({setup:function(){this.R2()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+e.I/2,e.iY+(i.AW?e.F:0),{reference:e,center:!0}]},AC6:function(e){var i=this,n="top-out",t=i.C.BM(i.A.BW("v")[0]),a=i.AC>=t.HC&&!t.AW||i.AC<t.HC&&t.AW?1:-1;e=i.setupValueBoxWH(e),null!==ZC._n_(e.o.placement)&&(n=e.o.placement);var l=e.I,r=e.F,o=i.iX+i.I/2-l/2,A=i.iYVal-r/2,C=e.AA%180==90,s=C?l/2:r/2,u=C?l/2-r/2:0;switch(n){case"top-out":case"top":A-=a*(s+5);break;case"top-in":A+=a*(s+5);break;case"middle":A+=a*(i.F/2);break;case"bottom-in":A+=a*(i.F-s-5);break;case"bottom-out":case"bottom":A+=a*(i.F+r/2+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(A=e.iY);else{var Z=ZC._c_(i.A.o.tolerance,5);if(!ZC.AQ._boxoverlap2_(i,i.C.P,Z))return[-1,-1]}var c=e.o.tolerance||[i.C.P.EB,i.C.P.EA,i.C.P.DW,i.C.P.E0];return i.C.AJ["3d"]||(o=ZC.BR(i.C.P.iX+0-c[3],o),o=ZC.CY(i.C.P.iX+i.C.P.I-l-0+c[1],o),A-u<i.C.P.iY+5-c[0]&&(A=i.C.P.iY+5-c[0]+u),A+u>i.C.P.iY+i.C.P.F-r-5+c[2]&&(A=i.C.P.iY+i.C.P.F-r-5+c[2]-u)),[ZC._i_(o),ZC._i_(A)]},getPMap:function(){var e=this.b();return this.addPMap(e,"barWidth","I"),e},paint:function(e){var i,n=this;if(n.b(),!n.C.AJ["3d"]){void 0===e&&(e=!1);var t=n.A.AZ,a=n.A.CQ;n.setup();var l,r,o,A,C,s=a.HC,u=a.AR(s),Z=n.A.SU(),c=Z.AD,p=Z.EV,h=Z.CH,f=Z.CU,_=Z.F5,d=Z.D5,g=Z.F0;if(e?p=n.A.E["node-"+n.L+"-bar-index"]:n.A.E["node-"+n.L+"-bar-index"]=Z.EV,n.A.CG){l=0;for(var v=n.A.A.KH[p],B=0;B<v.length;B++){var E=n.A.A.A4[v[B]].S[n.L];E&&(l+=E.AC)}}var b=1,D=1;if(n.A.CG&&(n.CR!==n.AC&&(b=(l-n.CR+n.AC)/l),D=(l-n.CR)/l),a.AW){var F=b;b=D,D=F}n.A.LT&&(p=n.L);var m=n.iX-c/2+h+p*(d+_)-p*g;if(m=ZC._l_(m,n.iX-c/2+h,n.iX+c/2-f),n.A.D5>0){var Y=d;(d=n.A.D5)<=1&&(d*=Y),m+=(Y-d)/2}var M=d,I=n.iY,K=null!==ZC._n_(n.A.LZ[n.L])?n.A.LZ[n.L]:0;if(I=n.A.CG&&"100%"===n.A.KT?a.AR(100*(n.CR+K)/n.A.A.F9[n.L]["%total-"+n.A.DZ]):a.AR(n.CR+K),n.A.CG){r="100%"===n.A.KT?a.AR(100*(n.CR-n.AC+K)/n.A.A.F9[n.L]["%total-"+n.A.DZ]):a.AR(n.CR-n.AC+K),I=ZC._i_(I),r=ZC._i_(r);var X=!a.AW&&n.AC>=0||a.AW&&n.AC<=0?-1:1,x=0,L=0;""!==n.A.Q1?(x=n.WY(n.A.Q1)[0],L=0):x=n.A.AU,""!==n.A.NQ?(L=n.WY(n.A.NQ)[0],x=0):L=n.A.AU,x!==L&&(X=0),o=I-r+X*x,n.AC<0&&(I=r),a.AW?o>0&&(o=ZC._a_(o),I=r):o<0&&(o=ZC._a_(o),I=r-o),a.AW&&n.AC<0&&(o+=L)}else r=a.AR(K),(o=I-r)<0?(o=ZC._a_(o),I=r-o):I=r;if(n.A.TT&&n.A.CG&&n.A.L>0&&n.A.A.A4[n.A.L-1].S[n.L]&&0===n.A.A.A4[n.A.L-1].S[n.L].AC&&(o-=1,I+=a.AW?1:-1),o<2&&(n.AC>0||n.A.TT)&&(o=1,a.AW?n.A.CG&&(n.A.L>0&&(I-=1),(0===n.A.L||n.AC>0&&n.AC===n.CR)&&(I+=1)):n.A.CG?(0===n.A.L||n.AC>0&&n.AC===n.CR)&&(I-=2):I=K?r-1:u-2),n.I=M,n.F=o,n.iX=m,n.iY=I,a.AW?n.AC>=a.HC?n.iYVal=I+n.F:n.iYVal=I:n.AC>=a.HC?n.iYVal=I:n.iYVal=I+n.F,n.C.CX){var P="middle";n.C.CX.o.marker&&null!==ZC._n_(i=n.C.CX.o.marker.alignment)&&(P=i),null!==ZC._n_(n.A.o["guide-marker"])&&null!==ZC._n_(i=n.A.o["guide-marker"].alignment)&&(P=i),"node"===P&&(n.E.A5O=n.iX+n.I/2)}if(!e){var w;n.setNodeData({x:m,y:I,w:M,h:o});var S=!0;if("none"!==n.A.J4||n.C.IY[n.A.L]||n.C.KL||n.A.T4&&n.A.T4[n.L]?(w=n.O=n.A.IJ(n,n.O),S=!1):w=n.O,(0!==n.A.E6.length||n.A.HZ||n.O.o.override||n.C.KL)&&(S=!1),n.AP){var y;switch(n.A.CW){default:0!==n.A.E6.length||n.A.HZ||"undefined"==typeof n.A.TR||n.O.o.override||n.C.KL?(y=new ZC.HU(n.A)).copy(w):y=n.A.TR,n.A.HZ&&(n.H8(y),y.parse()),y.FF=n.A.FF,y.K=n.K,y.iX=m,y.iY=I,y.I=n.I,y.F=n.F,t.AD<5&&y.I<5?(y.I=ZC.BR(1,y.I)+1,y.N2=!1,y.D0=!1):y.N2=!0,y.I<5&&t.A1!==t.W&&n.C.P.I/(t.A1-t.W)<1&&(y.QW=!0);break;case"pyramid":case"cone":0!==n.A.E6.length||n.A.HZ||"undefined"==typeof n.A.TR||n.O.o.override||n.C.KL?(y=new ZC.DT(n.A)).copy(w):y=n.A.TR,n.A.HZ&&(n.H8(y),y.parse()),y.K=n.K,a.AW&&!n.A.CG?(C=n.AC>=0?0:n.F,A=n.AC>=0?n.F:0):(C=n.AC>=0?n.F:0,A=n.AC>=0?0:n.F),y.D=[],y.D.push([m+n.I/2-b*n.I/2,I+C],[m+n.I/2+b*n.I/2,I+C]),n.A.CG&&0!==D?y.D.push([m+n.I/2+D*n.I/2,I+A],[m+n.I/2-D*n.I/2,I+A]):y.D.push([m+n.I/2,I+A]),y.D.push([y.D[0][0],y.D[0][1]]),n.setNodeData({points:y.D}),y.iX=m,y.iY=I,y.locate(2)}y.Z=n.C.AEF,y.C8=n.C.AEG,n.paintPreview(w,S);var G=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area";y.DF=G;var O=ZC._c_(n.A.o.tolerance,5);if(n.A.GG&&!n.C.HM);else{if(y.AP||0===n.A.E6.length&&!n.A.HZ)if(n.A.W2||(n.A.W2={iX:y.iX,iY:y.iY,F:y.F}),n.A.A2L)if(n.A.SF)if(n.A.SF.el&&"RECT"===n.A.SF.el.tagName.toUpperCase()){var N=!1;if(n.A.N6&&n.A.W2&&ZC._a_(y.iX-n.A.W2.iX)<.75&&ZC._a_(y.iY-n.A.W2.iY)<1.5&&ZC._a_(y.F-n.A.W2.F)<1.5&&(N=!0),!N){n.A.W2={iX:y.iX,iY:y.iY,F:y.F};var V=n.A.SF.el.cloneNode(!1);V.setAttribute("id",n.K),V.setAttribute("x",n.iX),V.setAttribute("y",n.iY),V.setAttribute("height",n.F),n.A.SF.df?n.G.G4[y.Z.id].appendChild(V):n.A.SF.el.parentNode.appendChild(V)}}else y.paint();else y.paint(),n.A.SF={id:y.K+"-path"},zingchart.DEV.DOMFRAGMENTS&&document.querySelector&&n.G.G4&&n.G.G4[y.Z.id]?(n.A.SF.df=!0,n.A.SF.el=n.G.G4[y.Z.id].querySelector("#"+y.K+"-path")):(n.A.SF.df=!1,n.A.SF.el=ZC.AL(n.A.SF.id));else ZC.AQ._boxoverlap2_(n,n.C.P,O)&&y.paint();y.AP&&function(){if("undefined"!=typeof n.paint_&&n.paint_(),n.N9(ZC.Q.EE(n.C.AEF,n.G.AB)),ZC.AQ._boxoverlap2_(n,n.C.P,O)&&n.A.FV&&-1===ZC.AV(n.G.KQ,"skip_segment_tracking")){var e=M<5?.5:-.5,i=o<3?.5:-.5,t=ZC.Q.FP("rect",n.A.E9,y.IE)+'class="'+G+'" '+n.a11y()+' id="'+n.K+'" coords="'+ZC._i_(m+n.A.BK+ZC.MAPTX-e)+","+ZC._i_(I+n.A.BJ+ZC.MAPTX-i)+","+ZC._i_(m+n.A.BK+M+ZC.MAPTX+e)+","+ZC._i_(I+n.A.BJ+o+ZC.MAPTX+i)+'" />';n.A.A.H3.push(t)}n.A.U&&n.A.U.AP&&n.H1()}()}"svg"===n.G.AB&&n.A.applyJsRuleSvg(n.A,n.K+"-path",n.M2()),0!==n.A.E6.length||n.A.HZ||"undefined"!=typeof n.A.TR||n.O.o.override||n.C.KL||n.A.GG||(n.A.TR=y)}}}},paintPreview:function(e,i){var n,t,a=this;if(a.C.B7&&a.C.B7.I3&&a.A.QU){var l=a.C.P,r=a.C.B7,o=r.AT,A=(a.iX-l.iX)/l.I,C=(a.iY-l.iY)/l.F;a.A.VZ?n=a.A.VZ:(n=new ZC.HU(a.A),a.A.VZ=n,n.copy(e),(t=a.A.o["preview-state"])&&(n.append(t),n.parse())),i||(n.copy(e),(t=a.A.o["preview-state"])&&(n.append(t),n.parse())),n.K=a.K+"-preview",n.DF=a.A.K+"-preview",n.iX=o.iX+o.AU+A*(o.I-2*o.AU),n.iY=o.iY+o.AU+C*(o.F-2*o.AU),n.I=a.I/l.I*(o.I-2*o.AU),n.F=a.F/l.F*(o.F-2*o.AU),o.I/a.A.S.length<10?(n.I=n.I+.5,n.N2=!1,n.D0=!1):(n.N2=!0,n.D0=!0),n.Z=n.C8=r.Z,n.paint()}},A15:function(e){s.A.RR=null}}),ZC.ZM=ZC.LM.CD({setup:function(){this.R2()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]);return[e.iX+(i.AW?0:e.I),e.iY+e.F/2,{reference:e,center:!0}]},AC6:function(e){var i=this,n="top-out",t=i.C.BM(i.A.BW("v")[0]),a=i.AC>=t.HC&&!t.AW||i.AC<t.HC&&t.AW?-1:1;null!==ZC._n_(e.o.placement)&&(n=e.o.placement);var l=e.I,r=e.F,o=i.iXVal-l/2,A=i.iY+i.F/2-r/2,C=e.AA%180==90?r/2:l/2;switch(n){case"top-out":case"top":o-=a*(C+5);break;case"top-in":o+=a*(C+5);break;case"middle":o+=a*(i.I/2);break;case"bottom-in":o+=a*(i.I-C-5);break;case"bottom-out":case"bottom":o+=a*(i.I+C+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(A=e.iY);else{var s=ZC._c_(i.A.o.tolerance,5);if(!ZC.AQ._boxoverlap2_(i,i.C.P,s))return[-1,-1]}var u=e.o.tolerance||[i.C.P.EB,i.C.P.EA,i.C.P.DW,i.C.P.E0];return i.C.AJ["3d"]||(o=ZC.BR(i.C.P.iX+5-u[3],o),o=ZC.CY(i.C.P.iX+i.C.P.I-l-5+u[1],o),A=ZC.BR(i.C.P.iY+0-u[0],A),A=ZC.CY(i.C.P.iY+i.C.P.F-r/2-0+u[2],A)),[ZC._i_(o),ZC._i_(A)]},paint:function(e){var i=this;if(i.b(),!i.C.AJ["3d"]){void 0===e&&(e=!1);var n=i.A.AZ,t=i.A.CQ;i.setup();var a,l,r,o,A,C=i.A.SU(),s=C.AD,u=C.EV,Z=C.CH,c=C.CU,p=C.F5,h=C.D5,f=C.F0;if(e?u=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=C.EV,i.A.CG){a=0;for(var _=i.A.A.KH[u],d=0;d<_.length;d++){var g=i.A.A.A4[_[d]].S[i.L];g&&(a+=g.AC)}}var v=1,B=1;if(i.A.CG&&(i.CR!==i.AC&&(v=(a-i.CR+i.AC)/a),B=(a-i.CR)/a),t.AW){var E=v;v=B,B=E}i.A.LT&&(u=i.L);var b=i.iY-s/2+Z+u*(h+p)-u*f;if(b=ZC._l_(b,i.iY-s/2+Z,i.iY+s/2-c),i.A.D5>0){var D=h;(h=i.A.D5)<=1&&(h*=D),b+=(D-h)/2}var F=h,m=i.iX,Y=null!==ZC._n_(i.A.LZ[i.L])?i.A.LZ[i.L]:0;if(m=i.A.CG&&"100%"===i.A.KT?t.AR(100*(i.CR+Y)/i.A.A.F9[i.L]["%total-"+i.A.DZ]):t.AR(i.CR+Y),i.A.CG){l="100%"===i.A.KT?t.AR(100*(i.CR-i.AC+Y)/i.A.A.F9[i.L]["%total-"+i.A.DZ]):t.AR(i.CR-i.AC+Y),m=ZC._i_(m),l=ZC._i_(l);var M=!t.AW&&i.AC>=0||t.AW&&i.AC<=0?1:-1,I=0,K=0;""!==i.A.OO?(I=i.WY(i.A.OO)[0],K=0):I=i.A.AU,""!==i.A.PE?(K=i.WY(i.A.PE)[0],I=0):K=i.A.AU,I!==K&&(M=0),r=m-l+M*I,i.AC>0?m=l:r=ZC._a_(r),t.AW?r>0?(r=ZC._a_(r),m=l):(r=ZC._a_(r),m-=r):r<0&&(r=ZC._a_(r),m=l-r)}else l=t.AR(Y),(r=m-l)<0?(r=ZC._a_(r),m=l-r):m=l;if(i.A.TT&&i.A.CG&&i.A.L>0&&i.A.A.A4[i.A.L-1].S[i.L]&&0===i.A.A.A4[i.A.L-1].S[i.L].AC&&(r-=1,m+=t.AW?-1:1),r<1&&(i.AC>0||i.A.TT)&&(r=1,t.AW?i.A.CG?0===i.A.L&&(m-=1):m-=2:i.A.L>0&&i.A.CG&&(m-=1)),i.I=r,i.F=F,i.iX=m,i.iY=b,t.AW?i.AC>=t.HC?i.iXVal=m:i.iXVal=m+i.I:i.AC>=t.HC?i.iXVal=m+i.I:i.iXVal=m,!e){var X;i.setNodeData({x:m,y:b,w:r,h:F});var x=!0;if("none"!==i.A.J4||i.C.IY[i.A.L]||i.C.KL||i.A.T4&&i.A.T4[i.L]?(X=i.O=i.A.IJ(i,i.O),x=!1):X=i.O,(0!==i.A.E6.length||i.A.HZ||i.O.o.override||i.C.KL)&&(x=!1),i.AP){var L;switch(i.A.CW){default:0!==i.A.E6.length||i.A.HZ||"undefined"==typeof i.A.TR||i.O.o.override||i.C.KL?(L=new ZC.HU(i.A)).copy(X):L=i.A.TR,i.A.HZ&&(i.H8(L),L.parse()),L.FF=i.A.FF,L.K=i.K,L.iX=m,L.iY=b,L.I=i.I,L.F=i.F,n.AD<5&&L.F<5?(L.F=ZC.BR(1,L.F)+1,L.N2=!1,L.D0=!1):L.N2=!0,L.F<5&&n.A1!==n.W&&i.C.P.F/(n.A1-n.W)<1&&(L.QW=!0);break;case"pyramid":case"cone":0!==i.A.E6.length||i.A.HZ||"undefined"==typeof i.A.TR||i.O.o.override||i.C.KL?(L=new ZC.DT(i.A)).copy(X):L=i.A.TR,i.A.HZ&&(i.H8(L),L.parse()),L.K=i.K,t.AW&&!i.A.CG?(A=i.AC>=0?i.I:0,o=i.AC>=0?0:i.I):(A=i.AC>=0?0:i.I,o=i.AC>=0?i.I:0),L.D=[],L.D.push([m+A,b+i.F/2-v*i.F/2],[m+A,b+i.F/2+v*i.F/2]),i.A.CG&&0!==B?L.D.push([m+o,b+i.F/2+B*i.F/2],[m+o,b+i.F/2-B*i.F/2]):L.D.push([m+o,b+i.F/2]),L.D.push([L.D[0][0],L.D[0][1]]),i.E.points=L.D,L.iX=m,L.iY=b,L.locate(2)}L.Z=i.C.AEF,L.C8=i.C.AEG,i.paintPreview(X,x);var P=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";L.DF=P;var w=ZC._c_(i.A.o.tolerance,5);i.A.GG&&!i.C.HM||((L.AP||0===i.A.E6.length&&!i.A.HZ)&&ZC.AQ._boxoverlap2_(i,i.C.P,w)&&L.paint(),L.AP&&function(){if("undefined"!=typeof i.paint_&&i.paint_(),i.N9(ZC.Q.EE(i.C.AEF,i.G.AB)),ZC.AQ._boxoverlap2_(i,i.C.P,w)&&i.A.FV&&-1===ZC.AV(i.G.KQ,"skip_segment_tracking")){var e=r<3?.5:-.5,n=F<5?.5:-.5,t=ZC.Q.FP("rect",i.A.E9,L.IE)+'class="'+P+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(m+i.A.BK+ZC.MAPTX-e)+","+ZC._i_(b+i.A.BJ+ZC.MAPTX-n)+","+ZC._i_(m+i.A.BK+r+ZC.MAPTX+e)+","+ZC._i_(b+i.A.BJ+F+ZC.MAPTX+n)+'" />';i.A.A.H3.push(t)}i.A.U&&i.A.U.AP&&i.H1()}()),"svg"===i.G.AB&&i.A.applyJsRuleSvg(i.A,i.K+"-path",i.M2()),0!==i.A.E6.length||i.A.HZ||"undefined"!=typeof i.A.TR||i.O.o.override||i.C.KL||i.A.GG||(i.A.TR=L)}}}},paintPreview:function(e,i){var n,t,a=this;if(a.C.B7&&a.C.B7.I3&&a.A.QU){var l=a.C.P,r=a.C.B7,o=r.AT,A=(a.iX-l.iX)/l.I,C=(a.iY-l.iY)/l.F;a.A.VZ?n=a.A.VZ:(n=new ZC.HU(a.A),a.A.VZ=n,n.copy(e),(t=a.A.o["preview-state"])&&(n.append(t),n.parse())),i||(n.copy(e),(t=a.A.o["preview-state"])&&(n.append(t),n.parse())),n.K=a.K+"-preview",n.DF=a.A.K+"-preview",n.iX=o.iX+o.AU+A*(o.I-2*o.AU),n.iY=o.iY+o.AU+C*(o.F-2*o.AU),n.I=a.I/l.I*(o.I-2*o.AU),n.F=a.F/l.F*(o.F-2*o.AU),o.I/a.A.S.length<10?(n.I=n.I+.5,n.N2=!1,n.D0=!1):(n.N2=!0,n.D0=!0),n.Z=n.C8=r.Z,n.paint()}},A15:function(e){s.A.RR=null}}),ZC.A5T=ZC.LM.CD({setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];if(e.JS!==t){if("scatter"===e.A.AF){if(e.A.LT&&e.A.Q4){var a=ZC.AQ.WI(e.A.Q4[0],e.A.Q4[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.II(e.A.R9)-i.AD/2+e.A.RU+l*(i.AD-2*e.A.RU)}else e.iX=i.AR(e.BV);e.iY=n.AR(e.AC)}else e.iY=i.AR(e.BV),e.iX=n.AR(e.AC);e.JS=t}e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L)},ABE:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){return this.b(e,i,this.L9.AI)},Y3:function(){return{"background-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,color:this.O.C2}},paint:function(e){var i=this;i.b();var n=i.A.AZ,t=i.A.CQ;i.setup(),e||(n.CM?ZC.DS(i.iX,t.iX+(t.AW?t.BU:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BU)+1)&&ZC.DS(i.iY,n.iY+(n.AW?n.BU:n.A9)-1,n.iY+n.F-(n.AW?n.A9:n.BU)+1)&&i.PK(!1,!0):ZC.DS(i.iX,n.iX+(n.AW?n.BU:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BU)+1)&&ZC.DS(i.iY,t.iY+(t.AW?t.A9:t.BU)-1,t.iY+t.F-(t.AW?t.BU:t.A9)+1)&&i.PK(!1,!0))},A15:function(e){}}),ZC.A6S=ZC.LM.CD({$i:function(e){this.b(e),this.SQ=null},parse:function(){this.b(),this.o.value instanceof Array||(this.BV=this.L),this.o.value instanceof Array&&null!==ZC._n_(this.o.value[2])?this.SQ=ZC._f_(this.o.value[2]):this.SQ=2},ABE:function(){return{color:"-1"===this.A.A2.A0?this.O.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){var n=this.A.getSize(ZC._a_(this.SQ));return this.b(e,i,n)},Y3:function(){return{"background-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.O.AE:this.A.A2.AE,color:this.O.C2}},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l);var r=ZC.AO.G5(a.SQ,l);return a.CA=[["%v0",a.BV],["%v1",a.AC],["%v2",r],["%node-size-value",r]],e=a.b(e,i,n,t)},setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];if(e.JS!==t){if("bubble"===e.A.AF){if(e.A.LT&&e.A.Q4){var a=ZC.AQ.WI(e.A.Q4[0],e.A.Q4[1]),l=(e.BV-a[0])/(a[1]-a[0]);e.iX=i.II(e.A.R9)-i.AD/2+e.A.RU+l*(i.AD-2*e.A.RU)}else e.iX=i.AR(e.BV);e.iY=n.AR(e.AC)}else e.iY=i.AR(e.BV),e.iX=n.AR(e.AC);e.JS=t}e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},AC6:function(e){var i,n=this,t="auto";null!==ZC._n_(i=e.o.placement)&&(t=i);var a=e.I,l=e.F,r=n.E["marker.size"],o=n.iX-a/2,A=n.iY-l/2,C=0,s=0;switch(t){case"top":A-=l/2+r,s=n.iY-n.C.P.iY+r;break;case"bottom":A+=l/2+r,s=n.C.P.iY+n.C.P.F-n.iY+r;break;case"left":o-=a/2+r,C=n.iX-n.C.P.iX+r;break;case"right":o+=a/2+r,C=n.C.P.iX+n.C.P.I-n.iX+r}return null!==ZC._n_(e.o.x)&&(o=e.iX),null!==ZC._n_(e.o.y)&&(A=e.iY),o<n.C.P.iX&&(o=n.C.P.iX+C),o+a>n.C.P.iX+n.C.P.I&&(o=n.C.P.iX+n.C.P.I-a-C),A<n.C.P.iY&&(A=n.C.P.iY+s),A+l>n.C.P.iY+n.C.P.F&&(A=n.C.P.iY+n.C.P.F-l-s),[ZC._i_(o),ZC._i_(A)]},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var n=i.A.AZ,t=i.A.CQ;i.setup(),i.E["marker.size"]=i.A.getSize(ZC._a_(i.SQ)),e||(n.CM?ZC.DS(i.iX,t.iX+(t.AW?t.BU:t.A9)-1,t.iX+t.I-(t.AW?t.A9:t.BU)+1)&&ZC.DS(i.iY,n.iY+(n.AW?n.BU:n.A9)-1,n.iY+n.F-(n.AW?n.A9:n.BU)+1)&&i.PK(!1,!0):ZC.DS(i.iX,n.iX+(n.AW?n.BU:n.A9)-1,n.iX+n.I-(n.AW?n.A9:n.BU)+1)&&ZC.DS(i.iY,t.iY+(t.AW?t.A9:t.BU)-1,t.iY+t.F-(t.AW?t.BU:t.A9)+1)&&i.PK(!1,!0))},A15:function(e){}}),ZC.A8T=ZC.LM.CD({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB2:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.K2("%npv")},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var r=0,o="0";if(a.A.A.KP[a.L]>0&&(o=""+(r=100*a.AC/a.A.A.KP[a.L])),a.A.A.A4.length>1&&a.A.L===a.A.A.A4.length-1){var A=0;if(null===ZC._n_(a.A.o.totals)){for(var C=0;C<a.A.A.A4.length-1;C++)if(a.A.A.A4[C].AP&&null!==ZC._n_(a.A.A.A4[C].S[a.L])){var s=0,u="0";a.A.A.KP[a.L]>0&&(u=""+(s=100*a.A.A.A4[C].S[a.L].AC/a.A.A.KP[a.L])),null!==ZC._n_(l.decimals)&&(u=s.toFixed(ZC.BR(0,ZC._i_(l.decimals)))),A+=ZC._f_(u)}o=""+(r=Math.max(0,100-A))}}null!==ZC._n_(l.decimals)&&(o=r.toFixed(ZC.BR(0,ZC._i_(l.decimals))));var Z,c=ZC._f_(a.A.A.KP[a.L]||"0");return Z=ZC.AO.G5(c,l,a.A),a.CA=[["%node-percent-value",o],["%npv",o],["%pie-total-value",Z]],e=a.b(e,i,n,t)},getTooltipPosition:function(e,i){var n,t,a,l=this,r=(l.B4+l.BL)/2%360;switch(i){case"out":t=(n=ZC.AQ.BN(l.iX,l.iY,l.AI+l.DX+e.DX,r))[0]+l.BK,a=n[1]+l.BJ,r>270&&r<=360?a-=e.F:r>90&&r<=180?t-=e.I:r>180&&r<=270&&(t-=e.I,a-=e.F);break;case"center":t=(n=ZC.AQ.BN(l.iX,l.iY,l.CP+.5*(l.AI-l.CP)+l.DX,r))[0]+l.BK,a=n[1]+l.BJ;break;default:t=l.iX+l.BK,a=l.iY+l.BJ}return{x:t,y:a}},V7:function(e){var i,n=this,t=(n.B4+n.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=n.AI);var l=ZC.AQ.BN(n.iX,n.iY,n.CP+.6*(n.AI-n.CP)+n.DX+a,t);return[l[0],l[1],{reference:n,center:!0}]},AC9:function(){var e=this,i=(e.B4+e.BL)/2%360,n=ZC.AQ.BN(e.iX,e.iY,e.CP+.5*(e.AI-e.CP)+e.DX,i);return[n[0],n[1]]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),n=e.L%i.H7,t=Math.floor(e.L/i.H7);e.iX=i.iX+n*i.GM+i.GM/2+i.BK,e.iY=i.iY+t*i.GH+i.GH/2+i.BJ,e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},ABE:function(e){var i,n={},t="out";return null!==ZC._n_(i=e.o.placement)&&(t=i),n.color="out"===t?this.A0:this.C2,n},AC6:function(e){var i,n=this,t="out";null!==ZC._n_(i=e.o.placement)&&(t=i);var a,l,r,o,A,C=e.I,s=e.F,u=(n.B4+n.BL)/2%360,Z=u;if("out"===t){u=Z=n.A.A.YB["n"+n.L][n.A.L];var c=function(i,t){t<0&&(t=360+t),t%=360;var a=(A=ZC.AQ.BN(n.iX,n.iY,i+n.DX+e.DX+20,t))[0]+e.BK-C/2,l=A[1]+e.BJ-s/2;return t>=0&&t<=90||t>=270&&t<=360?a+=C/2+10:a-=C/2+10,[a,l]},p=c(n.AI,Z);a=p[0],l=p[1],n.U=e;var h={x:a,y:l,width:C,height:s},f=zingchart.DEV.SPREADTYPE;o=!0;for(var _=0,d=0,g=-1,v=0,B=0;o&&B<1024;){o=!1;for(var E=0,b=n.A.A.TS.length;E<b;E++)r=n.A.A.TS[E],(ZC.AQ.VD(h,r)||h.x+e.I>n.C.P.iX+n.C.P.I||h.x<n.C.P.iX||h.y+e.F>n.C.P.iY+n.C.P.F||h.y<n.C.P.iY)&&(o=!0,0===f?(_+=.4,g*=-1):1===f&&(d+=2),p=c(n.AI+d,Z+_*g),h.x=p[0],h.y=p[1],B++,++v>100&&(v=0,0===f?(_=0,d+=2):1===f&&(d=0,_+=.4,g*=-1)))}a=h.x,l=h.y,u=Z+_,r={text:n.A.AN,x:h.x,y:h.y,width:C,height:s,plotindex:n.A.L,nodeindex:n.L},n.A.A.TS.push(r)}else if("in"===t||"radial"===t){var D=n.CP<30?.65:.5;a=(A=ZC._x_(n.B4,2)%360==ZC._x_(n.BL,2)%360?0===n.CP?[n.iX,n.iY]:ZC.AQ.BN(n.iX,n.iY,n.CP+.3*(n.AI-n.CP)+n.DX+e.DX,270):ZC.AQ.BN(n.iX,n.iY,n.CP+D*(n.AI-n.CP)+n.DX+e.DX,u))[0]-C/2+n.BK,l=A[1]-s/2+n.BJ}else if(-1!==t.indexOf("fixed=")){var F=t.split(/=|;|,/),m=(n.AI+n.CP)/2,Y=u;F[1]&&(m=(m=ZC.IO(F[1],!0))>=-1&&m<=1||-1!==F[1].indexOf("%")?n.CP+n.DX+m*(n.AI-n.CP):n.CP+n.DX+m),F[2]&&(Y=(Y=ZC.IO(F[2],!0))>=-1&&Y<=1||-1!==F[2].indexOf("%")?n.B4+Y*(n.BL-n.B4):n.B4+Y),F[3]&&("+"===F[3].charAt(0)||"-"===F[3].charAt(0)?(Y%=360,e.AA=Y+ZC._f_(F[3]),e.AA>90&&e.AA<270&&(e.AA+=180)):e.AA=ZC._f_(F[3])),a=(A=ZC.AQ.BN(n.iX,n.iY,m,Y))[0]-C/2,l=A[1]-s/2}else"center"===t&&(a=n.iX-C/2+n.BK,l=n.iY-s/2+n.BJ);return o&&(a=-9999,l=-9999,e.AP=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),u]},appendToValueBox:function(e){var i=this,n={};if("radial"===e.o.placement){var t=.9*ZC._a_(i.AI-i.CP),a=Math.PI*(i.AI+i.CP)*.9*ZC._a_(i.BL-i.B4)/360,l=ZC._i_(Math.max(t,a)/(.75*e.DI));if(null===ZC._n_(e.o.visible)?n.visible=1===i.A.A.A4.length||a>1.25*e.DI:n.visible=!e.J2||e.J2.visible,null===ZC._n_(e.o["max-chars"])&&(n["max-chars"]=l),null===ZC._n_(e.o.angle)){var r=(i.B4+i.BL)/2%360;i.A.A.A4.length>1?a>t?r>0&&r<180?r-=90:r+=90:r>90&&r<270&&(r+=180):r=0,n.angle=r}}return n},H1:function(e,i){var n,t=this,a=t.b(e,i);if(e)return a;if(t.AP&&a.AP&&null!==ZC._n_(a.AN)&&""!==a.AN){var l="out";if(null!==ZC._n_(n=a.o.placement)&&(l=n),"out"===l){var r=!0;if(null!==ZC._n_(n=a.o.connected)&&(r=ZC._b_(n)),r){var o=new ZC.DT(t.A);o.Z=t.C.AEF,o.append(t.A.C3.o),o.K=t.K+"-connector",o.B9=t.A0,o.DH="line",o.D=[];var A=a.E.positioninfo,C=(t.B4+t.BL)/2%360,s=ZC.AQ.BN(t.iX,t.iY,t.AI+t.DX,C);s[0]+=t.BK,s[1]+=t.BJ,o.D.push(s);var u=ZC.AQ.BN(t.iX,t.iY,t.AI+t.DX+10,C);u[0]+=t.BK,u[1]+=t.BJ,a.iX>=t.iX?"vml"===t.G.AB?o.D.push([A[0],A[1]+a.F/2]):o.D.push([u[0],u[1],A[0],A[1]+a.F/2]):"vml"===t.G.AB?o.D.push([A[0]+a.I+2,A[1]+a.F/2]):o.D.push([u[0],u[1],A[0]+a.I+2,A[1]+a.F/2]),o.parse(),o.IQ=function(e){return t.IQ(e)},o.DG()&&o.parse(),o.AP&&o.paint()}}}},paint:function(){var e,i=this;if(i.b(),!(i.AC<0)){var n=i.C.BM(i.A.BW("k")[0]);i.setup();var t="pie-sel-"+i.A.L+"-"+i.L;if("undefined"!=typeof i.o.detached&&(i.C.E[t]=ZC._b_(i.o.detached)),i.AI=ZC.CY(n.GH,n.GM)/2,null!==ZC._n_(i.A.o.size)){var a=ZC.IO(i.A.o.size,!1);i.AI=a<=1?i.AI*a:a}else i.AI=n.JU*i.AI;i.CP<=1&&(i.CP*=i.AI),i.CP=Math.max(0,i.CP),i.o.slice=i.CP,i.DX<=1&&(i.DX*=i.AI),i.o["offset-r"]=i.DX,i.C.E[t]&&(i.DX+=ZC._i_(.15*i.AI));var l=i.O=i.A.IJ(i,i);if(i.H8(l),i.AC>=0||0===i.A.A.KP[i.L]){var r=new ZC.DT(i.A);r.K=i.K,r.Z=i.C.AEF,r.C8=i.C.AEG,r.copy(l);var o=i.iX,A=i.iY;i.DX>0&&(o=(e=ZC.AQ.BN(i.iX,i.iY,i.DX,(i.B4+i.BL)/2))[0],A=e[1]),r.iX=o,r.iY=A,r.AI=i.AI,r.o.size=i.AI,r.DH="pie",r.B4=ZC._f_(i.B4),r.BL=ZC._f_(i.BL),r.CP=i.CP,r.E.plotidx=i.A.L,r.E.nodeidx=i.L,r.parse(),i.G7=r;var C=!1;"sunburst"===i.C.o["plugin-type"]&&(C=!0),!i.AP&&C||i.A.GG&&!i.C.HM||(r.paint(),function(){if(!i.A.KD&&i.AP){var e=r.F1(),n=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t=ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+n+'" '+i.a11y()+' id="'+i.K+'" coords="'+e+'" />';i.A.A.H3.push(t)}i.A.U&&i.H1()}())}else i.A.U&&i.H1()}},A15:function(e){},X6:function(e,i){}}),ZC.A4A=ZC.LM.CD({bCXY:!0,$i:function(e){this.b(e)},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]);e.iX=i.iX+i.I/2+i.BK,e.iY=i.iY+i.F/2+i.BJ,e.I3||(e.copy(e.A),e.o.slice=null,e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},AC9:function(){var e=this,i=(e.B4+e.BL)/2%360,n=ZC.AQ.BN(e.iX,e.iY,e.CP+e.E.bandwidth/2+e.DX,i);return[n[0],n[1]]},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l);var r=100*a.AC/a.A.A.KP[a.L],o=""+r;return null!==ZC._n_(l.decimals)&&(o=r.toFixed(ZC.BR(0,ZC._i_(l.decimals)))),a.CA=[["%node-percent-value",o],["%npv",o]],e=a.b(e,i,n,t)},ABE:function(e){var i={},n="in";return null!==ZC._n_(e.o.placement)&&(n=e.o.placement),i.color="out"===n?this.A0:this.C2,i},AC6:function(e){var i=this,n="in";null!==ZC._n_(e.o.placement)&&(n=e.o.placement);var t,a,l,r=e.I,o=e.F,A=(i.B4+i.BL)/2%360;return"out"===n?i.L===i.A.S.length-1?(l=ZC.AQ.BN(i.iX,i.iY,i.A.U6+i.A.S.length*(i.E.bandwidth+i.E.bandspace)+15+e.DX,A),t=A>=0&&A<90||A>=270&&A<360?l[0]+10+i.BK:l[0]-r-10+i.BK,a=l[1]-o/2+i.BJ):(t=-1,a=-1):(t=(l=ZC.AQ.BN(i.iX,i.iY,i.CP+i.E.bandwidth/2+e.DX,A))[0]-r/2+i.BK,a=l[1]-o/2+i.BJ),null!==ZC._n_(e.o.x)&&(t=e.iX),null!==ZC._n_(e.o.y)&&(a=e.iY),[ZC._i_(t),ZC._i_(a),A]},H1:function(e){var i=this,n=i.b(e);if(e)return n;if(n.AP&&null!==ZC._n_(n.AN)&&""!==n.AN){var t="in";if(null!==ZC._n_(n.o.placement)&&(t=n.o.placement),"out"===t&&i.L===i.A.S.length-1){var a=new ZC.DT(i.A);a.Z=i.C.AEF,a.append(i.A.C3.o),a.B9=i.A0,a.DH="line",a.D=[];var l=(i.B4+i.BL)/2%360,r=ZC.AQ.BN(i.iX,i.iY,i.CP+i.E.bandwidth+n.DX,l),o=ZC.AQ.BN(i.iX,i.iY,i.A.U6+i.A.S.length*(i.E.bandwidth+i.E.bandspace)+15+n.DX,l);r[0]+=i.BK,o[0]+=i.BK,r[1]+=i.BJ,o[1]+=i.BJ,a.D.push(r),l>=0&&l<90||l>=270&&l<360?a.D.push([o[0],o[1],o[0]+10,o[1]]):a.D.push([o[0],o[1],o[0]-10,o[1]]),a.parse(),a.IQ=function(e){return i.IQ(e)},a.DG()&&a.parse(),a.AP&&a.paint()}}},paint:function(){var e=this;e.b();var i=e.C.BM(e.A.BW("k")[0]);e.setup(),e.AI=ZC.CY(i.I,i.F)/2,e.AI=i.JU*e.AI,e.CP=e.A.U6,e.CP<1&&(e.CP=e.A.U6*e.AI);var n=e.A.SP;n<1&&(n=e.A.SP*e.AI);var t=2,a=e.AI-e.CP;if(null!==ZC._n_(e.A.aBandWidths)&&null!==ZC._n_(e.A.aBandWidths[e.L])){(t=ZC._f_(e.A.aBandWidths[e.L]))>1&&(t/=100),t=ZC._i_(a*t),t=ZC.BR(t,2);for(var l=0,r=0;r<e.L;r++)l+=ZC._f_(e.A.aBandWidths[r]);l>1&&(l/=100),l=ZC._i_(a*l),e.CP+=l,e.AI=e.CP+t}else t=(a-(e.A.S.length-1)*n)/e.A.S.length,t=ZC.BR(t,2),e.CP+=e.L*(t+n),e.AI=e.CP+t;var o=e.O=e.A.IJ(e,e);e.H8(o);var A=new ZC.DT(e.A);A.K=e.K,A.Z=e.C.AEF,A.C8=e.C.AEG,A.copy(o),A.iX=e.iX,A.iY=e.iY,A.DH="pie",A.B4=e.B4,A.BL=e.BL,A.CP=e.CP,A.AI=e.AI,A.parse();var C,s,u;A.CP;e.E.bandwidth=t,e.E.bandspace=n,e.A.GG&&!e.C.HM||(A.paint(),C=A.F1(),s=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area",u=ZC.Q.FP("poly",e.A.E9,e.A.IE)+'class="'+s+'" '+e.a11y()+' id="'+e.K+'" coords="'+C+'" />',e.A.A.H3.push(u),e.A.U&&e.A.U.AP&&e.H1())},A15:function(e){}}),ZC.A7D=ZC.LM.CD({$i:function(e){this.b(e);var i=this;i.C9=null,i.CC=null,i.MP="max"},K2:function(e,i,n,t){var a=this;return"range"===a.A.CW&&(a.CA=[["%node-min-value",a.C9],["%node-max-value",a.CC]]),e=a.b(e,i,n,t)},AA0:function(){var e=this;if("range"===e.A.CW&&e.o.value instanceof Array){var i=e.o.value.length;i>2&&(e.BV=ZC._f_(e.o.value[0])),e.C9=ZC._f_(e.o.value[i-2]),e.CC=ZC._f_(e.o.value[i-1]),e.AC=e.CR=e.CC,e.DU.push(e.C9)}else e.b()},setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];if(e.JS!==t){var a;a="range"===e.A.CW?n.UC("min"===e.MP?e.C9:e.CC):n.UC(e.CR);var l=null!==ZC._n_(e.BV),r=i.A7N(l?e.BV:e.L,a,l);e.iX=r[0],e.iY=r[1],e.JS=t}e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},AC6:function(e){var i,n=this,t=n.A.AZ,a=n.A.CQ,l=n.C.BM("scale"),r=l.iX+l.I/2,o=l.iY+l.F/2,A=e.I,C=e.F,s="out";null!==ZC._n_(e.o.placement)&&(s=e.o.placement);var u=1.15;switch(s){case"out":u=1.15;break;case"over":u=1;break;case"in":u=.85;break;case"middle":u=.5}var Z,c,p=t.EM/(t.V.length-(360===t.EM||t.DE?0:1)),h=a.UC(n.CR);switch(n.A.CW){case"matrix":case"piano":var f=(ZC.CY(l.I/2,l.F/2)*l.JU-a.A9)/n.A.A.A4.length;Z=a.A9+n.A.L*f,c=a.A9+(n.A.L+1)*f,i=ZC.AQ.BN(r,o,(Z+c)/2*u+e.DX,t.DK+(t.DE?p/2:0)+n.L*p);break;default:if(null!==ZC._n_(n.BV)){var _=t.DK+t.EM*(n.BV-t.B0)/(t.BF-t.B0);i=ZC.AQ.BN(r,o,a.A9+h*u+e.DX,_)}else i=ZC.AQ.BN(r,o,a.A9+h*u+e.DX,t.DK+(t.DE?p/2:0)+n.L*p)}return i[0]-=A/2,i[1]-=C/2,null!==ZC._n_(e.o.x)&&(i[0]=e.iX),null!==ZC._n_(e.o.y)&&(i[1]=e.iY),[ZC._i_(i[0]),ZC._i_(i[1])]},ABE:function(){return{color:"rose"===this.A.CW?this.A0:this.B9}},Y3:function(){return{"background-color":"rose"===this.A.CW?this.A0:this.B9,"border-color":"rose"===this.A.CW?this.A0:this.B9,color:this.C2}},paint:function(){var e,i=this;i.b();var n,t,a=i.A.OD,l=i.A.A4R,r=i.A.AZ,o=i.A.CQ,A=i.A.S;i.setup(),i.D0=!1,i.C8=i.C.AEG;var C,s=[],u=[],Z=[],c=[],p="range"===i.A.CW;var h,f,_,d,g,v=i.O=i.A.IJ(i,i);if(i.A.HZ&&i.H8(v),-1!==ZC.AV(["line","area","range"],i.A.CW)){s=[],u=[],Z=[],c=[];var B=i.iX,E=i.iY,b=i.iX,D=i.iY;p&&(i.MP="max",i.setup(),B=i.iX,E=i.iY,i.MP="min",i.setup(),b=i.iX,D=i.iY),i.A.GX&&(i.A.D.push([B,E]),i.A.AH.push([B,E])),i.L>0?(C=A[i.L-1])&&(C.MP="max",C.setup(),t=ZC.AQ.K1(C.iX,C.iY,B,E),s.push(t),u.push(t),p&&(C.MP="min",C.setup(),t=ZC.AQ.K1(C.iX,C.iY,b,D),Z.push(t),c.push(t))):(C=A[i.A.S.length-1])&&(C.MP="max",C.setup(),t=ZC.AQ.K1(C.iX,C.iY,B,E),s.push(t),u.push(t),p&&(C.MP="min",C.setup(),t=ZC.AQ.K1(C.iX,C.iY,b,D),Z.push(t),c.push(t))),s.push([B,E]),u.push([B,E]),p&&(Z.push([b,D]),c.push([b,D])),i.L<i.A.S.length-1?(C=A[i.L+1])&&(C.MP="max",C.setup(),t=ZC.AQ.K1(B,E,C.iX,C.iY),s.push(t),u.push(t),p&&(C.MP="min",C.setup(),t=ZC.AQ.K1(b,D,C.iX,C.iY),Z.push(t),c.push(t))):(C=A[0])&&(C.MP="max",C.setup(),t=ZC.AQ.K1(B,E,C.iX,C.iY),s.push(t),u.push(t),p&&(C.MP="min",C.setup(),t=ZC.AQ.K1(b,D,C.iX,C.iY),Z.push(t),c.push(t))),ZC.CO.setup(a,v)}p&&(s.push(null),s=s.concat(Z.reverse()),u=u.concat(c.reverse()));var F,m,Y,M,I=i.C.P;if(h=i.C.BM("scale"),"area"!==i.A.CW&&"range"!==i.A.CW||(f=h.iX+h.I/2,_=h.iY+h.F/2,d=360/r.V.length,"area"===i.A.CW&&u.push([f,_]),i.A.GX||((g=new ZC.DT(i.A)).K=i.K+"-area",g.Z=i.C.AEH,g.copy(v),g.LB=!0,g.D=u,g.parse(),g.C5=i.A.HS,1===g.C5&&0===g.AU&&(g.A0=ZC.AO.PP(ZC.AO.GD(g.A0),20),g.AE=ZC.AO.PP(ZC.AO.GD(g.AE),20),g.AU=2,g.BX=g.A0),g.D2=[I.iX,I.iY,I.iX+I.I,I.iY+I.F],ZC.CO.setup(l,g))),i.E.points=s,i.E.pointsarea=u,i.setNodeData({points:s,pointsarea:u}),i.A.GX&&i.L===r.A1&&("area"===i.A.CW&&((g=new ZC.DT(i.A)).K=i.K+"-area",g.Z=i.C.AEH,g.copy(i.A),g.LB=!0,g.D=i.A.AH,g.parse(),g.C5=i.A.HS,g.D2=[I.iX,I.iY,I.iX+I.I,I.iY+I.F],g.paint()),"line"!==i.A.CW&&"area"!==i.A.CW&&"range"!==i.A.CW||(i.A.D[0]&&i.A.D.push([i.A.D[0][0],i.A.D[0][1]]),ZC.CO.paint(a,v,i.A.D))),-1!==ZC.AV(["dots","scatter","area","line"],i.A.CW))i.PK(!1,!0);else if(-1!==ZC.AV(["rose","column","bar","piano","matrix"],i.A.CW)){(n=new ZC.DT(i.A)).K=i.K+"-pie",n.copy(v),n.Z=i.C.AEF,n.C8=i.C.AEG,f=(h=i.C.BM("scale")).iX+h.I/2,_=h.iY+h.F/2;var K=.1*(d=r.EM/(r.V.length-(360===r.EM||r.DE?0:1)));i.A.CG||(K=.1*d+.4*d*i.A.L/i.A.A.A4.length),null!==ZC._n_(e=i.A.A65)&&(K=e<1?d*e:e),M=o.A9;var X=i.A.A;i.A.CG&&null!==ZC._n_(X.A23["stack"+i.L])&&(M+=X.A23["stack"+i.L]);var x=ZC._i_(o.UC(i.CR));if(i.A.CG&&(X.A23["stack"+i.L]=x),null===ZC._n_(i.BV))F=r.DK+i.L*d-d/2+K+(r.DE?d/2:0),m=r.DK+(i.L+1)*d-d/2-K+(r.DE?d/2:0);else{var L=r.DK+r.EM*(i.BV-r.B0)/(r.BF-r.B0);F=L-d/2+K,m=L+d/2-K}if(Y=x+o.A9,"piano"===i.A.CW||"matrix"===i.A.CW){var P=(ZC.CY(h.I/2,h.F/2)*h.JU-o.A9)/i.A.A.A4.length;Y=o.A9+i.A.L*P,M=o.A9+(i.A.L+1)*P}i.setNodeData({x:f,y:_,sz:Y,sl:M,as:F,ae:m}),n.iX=f,n.iY=_,n.DH="pie",n.B4=F,n.BL=m,n.AI=Y,n.CP=M,n.parse(),n.IQ=function(e){return i.IQ(e)},n.DG()&&n.parse()}if(i.A.GG&&-1!==ZC.AV(["line","area","rose","column","bar","matrix","piano"],i.A.CW));else{switch(i.A.CW){case"line":case"area":case"range":i.A.GX||(ZC.CO.paint(a,v,s),"area"!==i.A.CW&&"range"!==i.A.CW||g.paint());break;case"rose":case"column":case"bar":case"matrix":case"piano":n.paint()}!function(){if(i.A.RZ>=i.A.S.length&&i.A.XZ){var e=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t="",a="";-1!==ZC.AV(["line","area","range"],i.A.CW)?""!==(a="range"!==i.A.CW||i.A.XE?ZC.AQ.PJ(ZC.AQ.Z1(i.E.points),4):ZC.AQ.PJ(u,4))&&(t=ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+e+'" id="'+i.K+'" coords="'+a+'" />'):-1!==ZC.AV(["rose","column","bar","matrix","piano"],i.A.CW)&&(a=n.F1(),t=ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+e+'" '+i.a11y()+' id="'+i.K+'" coords="'+a+'" data-z-sort="'+(i.A.A.A4.length-i.A.L)+'" />'),i.A.A.H3.push(t)}i.A.U&&i.A.E.vboxid!==i.K&&i.H1()}()}},A15:function(e){}}),ZC.A5U=ZC.ZL.CD({$i:function(e){this.b(e),this.FK=null},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l);var r=ZC.AO.G5(a.A.Q0[a.L],l);return a.CA=[["%node-goal-value",r],["%g",r]],e=a.b(e,i,n,t)},AC6:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FK.iX+i.FK.I/2-e.I/2,i.FK.iY-e.F]:i.b(e)},AA0:function(){var e,i=this;if(i.DU=[],i.CK=i.o.value,"string"==typeof i.o.value){var n=ZC.AV(i.A.CQ.JP,i.o.value);-1!==n?i.AC=n:(i.A.CQ.JP.push(i.o.value),i.AC=i.A.CQ.JP.length-1)}else i.AC=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DU.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,n=this;if(null!==ZC._n_(n.A.Q0[n.L])&&n.AP){var t=n.A.CQ.AR(n.A.Q0[n.L]);n.FK=new ZC.HU(n.A),n.FK.K=n.K+"-goal",n.FK.copy(n.A.FK),n.FK.Z=n.C.AEF,n.FK.C8=n.C.AEG,n.FK.IQ=function(e){return n.IQ(e)},n.FK.DG()&&n.FK.parse(),null!==ZC._n_(e=n.FK.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[n.L])&&("string"==typeof i?n.FK.append({"background-color":i}):n.FK.append(i),n.FK.parse());var a=.2;if(null!==ZC._n_(e=n.FK.o.extension)&&(a=ZC._f_(e)),n.FK.iX=n.getNodeData("x")-n.I*a,n.FK.I=n.I*(1+2*a),null===ZC._n_(n.A.FK.o.height)&&(n.FK.F=ZC.CY(5,n.C.P.F/30)),n.FK.iY=t-n.FK.F/2,n.FK.AP){n.FK.paint();var l=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area";n.A.A.H3.push(ZC.Q.FP("rect",n.A.E9,n.A.IE)+'class="'+l+'" id="'+n.K+'--goal" coords="'+ZC._i_(n.FK.iX+n.A.BK+ZC.MAPTX)+","+ZC._i_(n.FK.iY+n.A.BJ+ZC.MAPTX)+","+ZC._i_(n.FK.iX+n.A.BK+n.FK.I+ZC.MAPTX)+","+ZC._i_(n.FK.iY+n.A.BJ+n.FK.F+ZC.MAPTX)+'" />')}}},A15:function(e){}}),ZC.A5V=ZC.ZM.CD({$i:function(e){this.b(e),this.FK=null},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l);var r=ZC.AO.G5(a.A.Q0[a.L],l);return a.CA=[["%node-goal-value",r],["%g",r]],e=a.b(e,i,n,t)},AC6:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FK.iX+i.FK.I,i.FK.iY+i.FK.F/2-e.F/2]:i.b(e)},AA0:function(){var e,i=this;if(i.DU=[],i.CK=i.o.value,"string"==typeof i.o.value){var n=ZC.AV(i.A.CQ.JP,i.o.value);-1!==n?i.AC=n:(i.A.CQ.JP.push(i.o.value),i.AC=i.A.CQ.JP.length-1)}else i.AC=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DU.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,n=this;if(null!==ZC._n_(n.A.Q0[n.L])&&n.AP){var t=n.A.CQ.AR(n.A.Q0[n.L]);n.FK=new ZC.HU(n.A),n.FK.K=n.K+"-goal",n.FK.copy(n.A.FK),n.FK.Z=n.C.AEF,n.FK.C8=n.C.AEG,n.FK.IQ=function(e){return n.IQ(e)},n.FK.DG()&&n.FK.parse(),null!==ZC._n_(e=n.FK.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[n.L])&&("string"==typeof i?n.FK.append({"background-color":i}):n.FK.append(i),n.FK.parse());var a=.2;if(null!==ZC._n_(e=n.FK.o.extension)&&(a=ZC._f_(e)),n.FK.iY=n.getNodeData("y")-n.F*a,n.FK.F=n.F*(1+2*a),null===ZC._n_(n.A.FK.o.width)&&(n.FK.I=ZC.CY(5,n.C.P.I/30)),n.FK.iX=t-n.FK.I/2,n.FK.AP){n.FK.paint();var l=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area";n.A.A.H3.push(ZC.Q.FP("rect",n.A.E9,n.A.IE)+'class="'+l+'" id="'+n.K+'--goal" coords="'+ZC._i_(n.FK.iX+n.A.BK+ZC.MAPTX)+","+ZC._i_(n.FK.iY+n.A.BJ+ZC.MAPTX)+","+ZC._i_(n.FK.iX+n.A.BK+n.FK.I+ZC.MAPTX)+","+ZC._i_(n.FK.iY+n.A.BJ+n.FK.F+ZC.MAPTX)+'" />')}}},A15:function(e){}}),ZC.A7E=ZC.LM.CD({AA0:function(){var e,i=this;i.o.value instanceof Array&&null!==ZC._n_(i.o.value[1])&&(i.CK=i.o.value[1],"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.AZ.IU,i.o.value[0]))?i.BV=e:(i.A.AZ.IU.push(i.o.value[0]),i.BV=i.A.AZ.IU.length-1):i.BV=ZC._f_(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CQ.JP,i.o.value[1]))?i.AC=e:(i.A.CQ.JP.push(i.o.value[1]),i.AC=i.A.CQ.JP.length-1):i.AC=ZC._f_(i.o.value[1]),null!==i.BV&&i.A.V9(i.BV,i.L))},setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];e.JS!==t&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L-i.W+1)*i.AD:e.iX=i.iX+i.A9+(e.L-i.W)*i.AD,n.AW?e.iY=n.iY+n.A9+(e.A.L-n.B0)*n.AD:e.iY=n.iY+n.F-n.A9-(e.A.L-n.B0+1)*n.AD,e.JS=t),e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0),e.H8(e)},AC6:function(e){var i=this,n="over";null!==ZC._n_(e.o.placement)&&(n=e.o.placement);var t=e.I,a=e.F,l=i.iX+i.I/2-t/2,r=i.iY+i.F/2-a/2;switch(n){case"top":r-=i.F/2+a/2+2;break;case"left":l-=i.I/2+t/2+2;break;case"bottom":r+=i.F/2+a/2+2;break;case"right":l+=i.I/2+t/2+2}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]},ABE:function(){return{color:"#000"}},getFormatValue:function(){return this.CK},K2:function(e,i,n,t){var a,l=this,r=l.A.CQ,o=l.A.L;return a=null!==ZC._n_(r.BY[o])?r.BY[o]:r.V[o],l.CA=[["%y",a],["%scale-value-label",a]],e=l.b(e,i,n,t)},R2:function(){var e=this;e.setup();var i,n=e.A.AZ,t=e.A.CQ;switch(e.A.A74){case"plot-max":i=(ZC._f_(e.AC)-e.A.Y7)/(e.A.A4S-e.A.Y7);break;case"plot-total":i=(ZC._f_(e.AC)-e.A.Y7)/(e.A.A66-e.A.Y7);break;case"chart-max":i=(ZC._f_(e.AC)-e.A.WM)/(e.A.A3I-e.A.WM);break;case"chart-total":i=(ZC._f_(e.AC)-e.A.WM)/(e.A.A4T-e.A.WM)}switch(ZC.PH(i)||(i=.5),e.I=n.AD,e.F=t.AD,e.A.CW){case"alpha":case"brightness":e.C5=e.A.QD+i*(e.A.UV-e.A.QD);break;case"horizontal":e.I=1.01+e.A.QD*n.AD+i*n.AD*(e.A.UV-e.A.QD),n.AW&&(e.iX=e.iX+n.AD-e.I);break;case"vertical":e.F=1.01+e.A.QD*t.AD+i*t.AD*(e.A.UV-e.A.QD),t.AW||(e.iY=e.iY+t.AD-e.F);break;case"size":e.I=1.01+e.A.QD*n.AD+i*n.AD*(e.A.UV-e.A.QD),e.F=1.01+e.A.QD*t.AD+i*t.AD*(e.A.UV-e.A.QD),e.iX+=(n.AD-e.I)/2,e.iY+=(t.AD-e.F)/2}e.iX-=e.AU/2,e.iY-=e.AU/2,e.I+=e.AU,e.F+=e.AU},paint:function(){var e=this;e.b(),e.R2();var i=e.C.P;if(!(e.iY+5<i.iY||e.iY+5>=i.iY+i.F)){if(e.AP){var n=zingchart.pool.getInstance("HU",e,e.A.K+"-piano-box");if(n.K=e.K,n.copy(e),("none"!==e.A.J4||e.C.IY[e.A.L]||e.C.KL||e.A.T4&&e.A.T4[e.L])&&n.copy(e.A.IJ(e,n)),n.iX=e.iX,n.iY=e.iY,n.I=e.I,n.F=e.F,n.Z=e.C.AEF,n.C8=e.C.AEG,(-1!==n.BX&&n.AU>0||n.Q1+n.OO+n.NQ+n.PE!==""||-1!==n.A0||-1!==n.AE||""!==n.DC||""!==n.GT||""!==n.HQ)&&(n.paint(),!n.KD)){var t=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area";e.A.A.H3.push(ZC.Q.FP("rect",e.A.E9,e.A.IE)+'class="'+t+'" '+e.a11y()+' id="'+e.K+'" coords="'+ZC._i_(e.iX+ZC.MAPTX)+","+ZC._i_(e.iY+ZC.MAPTX)+","+ZC._i_(e.iX+e.I+ZC.MAPTX)+","+ZC._i_(e.iY+e.F+ZC.MAPTX)+'" />')}}e.A.U&&e.A.U.AP&&e.H1()}},A15:function(e){}}),ZC.A5W=ZC.LM.CD({setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];e.JS!==t&&(i.AW?e.iX=i.iX+i.I-i.A9-(e.L+1)*i.AD:e.iX=i.iX+i.A9+e.L*i.AD,n.AW?e.iY=n.iY+n.A9+e.A.L*n.AD:e.iY=n.iY+n.F-n.A9-(e.A.L+1)*n.AD,e.JS=t),e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},K2:function(e,i,n,t){var a,l,r=this,o=ZC._f_(r.A.A.F9["%pstack-"+r.L+"-0-sum"]||"0"),A=r.A.MU();if(ZC._cp_(i,A),r.CA=[],r.A.L>0&&r.A.A.A4[r.A.L-1]&&r.A.A.A4[r.A.L-1].S[r.L]?l=""+(a=100*r.AC/r.A.A.A4[r.A.L-1].S[r.L].AC):(a=100,l="100"),null!==ZC._n_(A.decimals)&&(l=a.toFixed(ZC.BR(0,ZC._i_(A.decimals)))),r.CA.push(["%output-percent-value",l]),o>0){var C=100*r.AC/o,s=""+C;null!==ZC._n_(A.decimals)&&(s=C.toFixed(ZC.BR(0,ZC._i_(A.decimals)))),r.CA.push(["%node-percent-value",s]),r.CA.push(["%npv",s])}return e=r.b(e,i,n,t)},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c=this;c.b();var p=c.A.AZ,h=c.A.CQ;c.setup(),"static"===c.A.A2I?(c.C.AY.SD[c.L],e=c.C.AY.A7T[c.L]):(c.C.AY.B0,e=c.C.AY.BF);var f=c.A.L7;f<=1&&(f*=p.AD);var _=c.A.OH;_<=1&&(_*=p.AD);var d=c.A.LY;d<=1&&(d*=p.AD);var g=p.AD-f-_-d,v=d+g*(c.AC/e),B=0;c.A.L+1<c.A.A.A4.length&&c.A.A.A4[c.A.L+1].S[c.L]&&(B=c.A.A.A4[c.A.L+1].S[c.L].AC);var E=d+g*(B/e);c.E["entry-exit"]=[v,E];var b=c.iX+(p.AW?_:f)+g/2+d/2;if(t=[],h.AW?t.push([b-v/2,c.iY],[b+v/2,c.iY],[b+E/2,c.iY+h.AD],[b-E/2,c.iY+h.AD],[b-v/2,c.iY]):t.push([b-v/2,c.iY+h.AD],[b+v/2,c.iY+h.AD],[b+E/2,c.iY],[b-E/2,c.iY],[b-v/2,c.iY+h.AD]),c.E.points=t,c.AP){var D=new ZC.DT(c.A);D.K=c.K+"-trapeze",D.copy(c),D.D=t,D.parse(),D.Z=c.C.AEF,D.C8=c.C.AEG,D.paint();var F=D.F1(),m=c.C.K+"-node-area "+c.C.K+"-plotset-plot-"+c.A.L+"-node-area zc-node-area";c.A.A.H3.push(ZC.Q.FP("poly",c.A.E9,c.A.IE)+'class="'+m+'" '+c.a11y()+' id="'+c.K+'" coords="'+F+'" />')}for(i=0,n=c.A.OX.length;i<n;i++){var Y=c.A.OX[i];Y&&null!==ZC._n_(Y.o.values)&&null!==ZC._n_(Y.o.values[c.L])&&(null===ZC._n_(Y.o.width)&&null===ZC._n_(Y.o.height)||((a=new ZC.HU(c.A)).append(Y.o),a.parse()),l=0,r=0,null!==ZC._n_(Y.o.width)&&(l=a.I),null!==ZC._n_(Y.o.height)&&(r=a.F),0===l&&(l=ZC.BR(20,p.AD/10)),0===r&&(r=ZC.BR(16,h.AD/10)),(o=new ZC.DT(c.A)).K=c.K+"-arrow-entry",o.copy(c),o.append(Y.o),o.parse(),t=[],1===c.A.OX.length?C=c.iY+h.AD/2:(s=h.AD/(c.A.OX.length+1),C=c.iY+s+i*s),p.AW?(A=c.iX+p.AD+l-f-g/2+(v+E)/4-d/2+2,t.push([A,C-2*r/6],[A-2*l/3,C-r/6],[A-2*l/3,C-3*r/6],[A-l,C],[A-2*l/3,C+3*r/6],[A-2*l/3,C+r/6],[A,C+2*r/6],[A,C-2*r/6])):(A=c.iX+f-l+g/2-(v+E)/4+d/2-2,t.push([A,C-2*r/6],[A+2*l/3,C-r/6],[A+2*l/3,C-3*r/6],[A+l,C],[A+2*l/3,C+3*r/6],[A+2*l/3,C+r/6],[A,C+2*r/6],[A,C-2*r/6])),o.D=t,o.parse(),o.Z=c.C.AEF,o.C8=c.C.AEG,o.paint(),null!==ZC._n_(Y.o.labels)&&null!==ZC._n_(Y.o.labels[c.L])&&""!==Y.o.labels[c.L]&&(u=Y.o.labels[c.L],(Z=new ZC.DQ(c.A)).K=c.K+"-entry-label-"+i,Z.GN=c.K+"-entry-label "+c.A.K+"-entry-label zc-entry-label",Z.copy(c),Z.o.text=u,Z.append(Y.o),null!==ZC._n_(Y.o.label)&&Z.append(Y.o.label),Z.Z=c.C.AEF,Z.parse(),p.AW?Z.iX=A+2:Z.iX=A-Z.I-2,Z.iY=C-Z.F/2,Z.paint(),Z.EO()))}for(i=0,n=c.A.VM.length;i<n;i++){var M=c.A.VM[i];M&&null!==ZC._n_(M.o.values)&&null!==ZC._n_(M.o.values[c.L])&&(null===ZC._n_(M.o.width)&&null===ZC._n_(M.o.height)||((a=new ZC.HU(c.A)).append(M.o),a.parse()),l=0,r=0,null!==ZC._n_(M.o.width)&&(l=a.I),null!==ZC._n_(M.o.height)&&(r=a.F),0===l&&(l=ZC.BR(20,p.AD/10)),0===r&&(r=ZC.BR(16,h.AD/10)),(o=new ZC.DT(c.A)).K=c.K+"-arrow-exit",o.copy(c),o.append(M.o),o.parse(),t=[],1===c.A.VM.length?C=c.iY+h.AD/2:(s=h.AD/(c.A.VM.length+1),C=c.iY+s+i*s),p.AW?(A=c.iX+_+g/2-(v+E)/4+d/2-2,t.push([A,C-2*r/6],[A-2*l/3,C-r/6],[A-2*l/3,C-3*r/6],[A-l,C],[A-2*l/3,C+3*r/6],[A-2*l/3,C+r/6],[A,C+2*r/6],[A,C-2*r/6])):(A=c.iX+p.AD-_-g/2+(v+E)/4-d/2+2,t.push([A,C-2*r/6],[A+2*l/3,C-r/6],[A+2*l/3,C-3*r/6],[A+l,C],[A+2*l/3,C+3*r/6],[A+2*l/3,C+r/6],[A,C+2*r/6],[A,C-2*r/6])),o.D=t,o.parse(),o.Z=c.C.AEF,o.C8=c.C.AEG,o.paint(),null!==ZC._n_(M.o.labels)&&null!==ZC._n_(M.o.labels[c.L])&&""!==M.o.labels[c.L]&&(u=M.o.labels[c.L],(Z=new ZC.DQ(c.A)).K=c.K+"-exit-label-"+i,Z.GN=c.K+"-exit-label "+c.A.K+"-exit-label zc-exit-label",Z.copy(c),Z.o.text=u,Z.append(M.o),null!==ZC._n_(M.o.label)&&Z.append(M.o.label),Z.parse(),Z.Z=c.C.AEF,p.AW?Z.iX=A-l-Z.I-2:Z.iX=A+l+2,Z.iY=C-Z.F/2,Z.paint(),Z.EO()))}c.A.U&&c.H1()},AC6:function(e){var i,n=this,t=n.A.AZ,a=n.A.CQ;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=n.iX+t.AD/2-e.I/2,r=n.iY+a.AD/2-e.F/2,o=n.E["entry-exit"],A=(o[0]+o[1])/2;switch(i){case"in":case"auto":break;case"top":r=n.iY+5;break;case"bottom":r=n.iY+a.AD-e.F-5;break;case"left":l=n.iX+t.AD/2-A/2+5;break;case"left-out":l=n.iX+t.AD/2-A/2-e.I-5;break;case"right":l=n.iX+t.AD/2+A/2-e.I-5;break;case"right-out":l=n.iX+t.AD/2+A/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]},A15:function(){}}),ZC.A5X=ZC.LM.CD({setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];e.JS!==t&&(i.AW?e.iY=i.iY+i.A9+e.L*i.AD:e.iY=i.iY+i.F-i.A9-(e.L+1)*i.AD,n.AW?e.iX=n.iX+n.I-n.A9-(e.A.L+1)*n.AD:e.iX=n.iX+n.A9+e.A.L*n.AD,e.JS=t),e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},K2:function(e,i,n,t){var a,l,r=this,o=ZC._f_(r.A.A.F9["%pstack-"+r.L+"-0-sum"]||"0"),A=r.A.MU();if(ZC._cp_(i,A),r.CA=[],r.A.L>0&&r.A.A.A4[r.A.L-1]&&r.A.A.A4[r.A.L-1].S[r.L]?l=""+(a=100*r.AC/r.A.A.A4[r.A.L-1].S[r.L].AC):(a=100,l="100"),null!==ZC._n_(A.decimals)&&(l=a.toFixed(ZC.BR(0,ZC._i_(A.decimals)))),r.CA.push(["%output-percent-value",l]),o>0){var C=100*r.AC/o,s=""+C;null!==ZC._n_(A.decimals)&&(s=C.toFixed(ZC.BR(0,ZC._i_(A.decimals)))),r.CA.push(["%node-percent-value",s]),r.CA.push(["%npv",s])}return e=r.b(e,i,n,t)},AC6:function(e){var i,n=this,t=n.A.AZ,a=n.A.CQ;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=n.iX+a.AD/2-e.I/2,r=n.iY+t.AD/2-e.F/2,o=n.E["entry-exit"],A=(o[0]+o[1])/2;switch(i){case"in":case"auto":break;case"top":l=n.iX+a.AD-e.I-5;break;case"bottom":l=n.iX+5;break;case"left":r=n.iY+t.AD/2-A/2+5;break;case"left-out":r=n.iY+t.AD/2-A/2-e.F-5;break;case"right":r=n.iY+t.AD/2+A/2-e.F-5;break;case"right-out":r=n.iY+t.AD/2+A/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(r=e.iY),[ZC._i_(l),ZC._i_(r)]},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c=this;c.b();var p=c.A.AZ,h=c.A.CQ;c.setup(),"static"===c.A.A2I?(c.C.AY.SD[c.L],e=c.C.AY.A7T[c.L]):(c.C.AY.B0,e=c.C.AY.BF);var f=c.A.L7;f<=1&&(f*=p.AD);var _=c.A.OH;_<=1&&(_*=p.AD);var d=c.A.LY;d<=1&&(d*=p.AD);var g=p.AD-f-_-d,v=d+g*(c.AC/e),B=0;c.A.L+1<c.A.A.A4.length&&c.A.A.A4[c.A.L+1].S[c.L]&&(B=c.A.A.A4[c.A.L+1].S[c.L].AC);var E=d+g*(B/e);c.E["entry-exit"]=[v,E];var b=c.iY+(p.AW?f:_)+g/2+d/2;if(r=[],h.AW?r.push([c.iX+h.AD,b-v/2],[c.iX+h.AD,b+v/2],[c.iX,b+E/2],[c.iX,b-E/2],[c.iX+h.AD,b-v/2]):r.push([c.iX,b-v/2],[c.iX,b+v/2],[c.iX+h.AD,b+E/2],[c.iX+h.AD,b-E/2],[c.iX,b-v/2]),c.E.points=r,c.AP){var D=new ZC.DT(c.A);D.K=c.K+"-trapeze",D.copy(c),D.D=r,D.parse(),D.Z=c.C.AEF,D.C8=c.C.AEG,D.paint();var F=D.F1(),m=c.C.K+"-node-area "+c.C.K+"-plotset-plot-"+c.A.L+"-node-area zc-node-area";c.A.A.H3.push(ZC.Q.FP("poly",c.A.E9,c.A.IE)+'class="'+m+'" '+c.a11y()+' id="'+c.K+'" coords="'+F+'" />')}for(i=0,n=c.A.OX.length;i<n;i++){var Y=c.A.OX[i];Y&&null!==ZC._n_(Y.o.values)&&null!==ZC._n_(Y.o.values[c.L])&&(null===ZC._n_(Y.o.width)&&null===ZC._n_(Y.o.height)||((l=new ZC.HU(c.A)).append(Y.o),l.parse()),t=0,a=0,null!==ZC._n_(Y.o.width)&&(t=l.I),null!==ZC._n_(Y.o.height)&&(a=l.F),0===a&&(a=ZC.BR(20,p.AD/10)),0===t&&(t=ZC.BR(16,h.AD/10)),(o=new ZC.DT(c.A)).K=c.K+"-arrow-entry",o.copy(c),o.append(Y.o),o.parse(),r=[],1===c.A.OX.length?A=c.iX+h.AD/2:(s=h.AD/(c.A.OX.length+1),A=c.iX+s+i*s),p.AW?(C=c.iY+f-a+g/2-(v+E)/4+d/2-2,r.push([A-2*t/6,C],[A+2*t/6,C],[A+t/6,C+2*a/3],[A+3*t/6,C+2*a/3],[A,C+a],[A-3*t/6,C+2*a/3],[A-t/6,C+2*a/3])):(C=c.iY+p.AD+a-f-g/2+(v+E)/4-d/2+2,r.push([A-2*t/6,C],[A+2*t/6,C],[A+t/6,C-2*a/3],[A+3*t/6,C-2*a/3],[A,C-a],[A-3*t/6,C-2*a/3],[A-t/6,C-2*a/3])),o.D=r,o.parse(),o.Z=c.C.AEF,o.C8=c.C.AEG,o.paint(),null!==ZC._n_(Y.o.labels)&&null!==ZC._n_(Y.o.labels[c.L])&&""!==Y.o.labels[c.L]&&(u=Y.o.labels[c.L],(Z=new ZC.DQ(c.A)).K=c.K+"-entry-label-"+i,Z.GN=c.K+"-entry-label "+c.A.K+"-entry-label zc-entry-label",Z.copy(c),Z.o.text=u,Z.append(Y.o),null!==ZC._n_(Y.o.label)&&Z.append(Y.o.label),Z.AN=u,Z.Z=c.C.AEF,Z.parse(),Z.iX=A-Z.I/2,p.AW?Z.iY=C-Z.F-2:Z.iY=C+2,Z.paint(),Z.EO()))}for(i=0,n=c.A.VM.length;i<n;i++){var M=c.A.VM[i];M&&null!==ZC._n_(M.o.values)&&null!==ZC._n_(M.o.values[c.L])&&(null===ZC._n_(M.o.width)&&null===ZC._n_(M.o.height)||((l=new ZC.HU(c.A)).append(M.o),l.parse()),t=0,a=0,null!==ZC._n_(M.o.width)&&(t=l.I),null!==ZC._n_(M.o.height)&&(a=l.F),0===a&&(a=ZC.BR(20,p.AD/10)),0===t&&(t=ZC.BR(16,h.AD/10)),(o=new ZC.DT(c.A)).K=c.K+"-arrow-exit",o.copy(c),o.append(M.o),o.parse(),r=[],1===c.A.OX.length?A=c.iX+h.AD/2:(s=h.AD/(c.A.OX.length+1),A=c.iX+s+i*s),p.AW?(C=c.iY+f+g/2+(v+E)/4+d/2+2,r.push([A-2*t/6,C],[A+2*t/6,C],[A+t/6,C+2*a/3],[A+3*t/6,C+2*a/3],[A,C+a],[A-3*t/6,C+2*a/3],[A-t/6,C+2*a/3])):(C=c.iY+p.AD-f-g/2-(v+E)/4-d/2-2,r.push([A-2*t/6,C],[A+2*t/6,C],[A+t/6,C-2*a/3],[A+3*t/6,C-2*a/3],[A,C-a],[A-3*t/6,C-2*a/3],[A-t/6,C-2*a/3])),o.D=r,o.parse(),o.Z=c.C.AEF,o.C8=c.C.AEG,o.paint(),null!==ZC._n_(M.o.labels)&&null!==ZC._n_(M.o.labels[c.L])&&""!==M.o.labels[c.L]&&(u=M.o.labels[c.L],(Z=new ZC.DQ(c.A)).K=c.K+"-exit-label-"+i,Z.GN=c.K+"-exit-label "+c.A.K+"-exit-label zc-exit-label",Z.copy(c),Z.o.text=u,Z.append(M.o),null!==ZC._n_(M.o.label)&&Z.append(M.o.label),Z.AN=u,Z.Z=c.C.AEF,Z.parse(),Z.iX=A-Z.I/2,p.AW?Z.iY=C+a+2:Z.iY=C-a-Z.F-2,Z.paint(),Z.EO()))}c.A.U&&c.H1()},A15:function(){}}),ZC.A7F=ZC.LM.CD({$i:function(e){this.b(e),this.J5=null},setup:function(){var e=this,i=e.A.AZ,n=e.A.CQ,t=[i.W,i.A1,n.W,n.A1];if(e.JS!==t&&(null!==e.BV?e.iX=i.AR(e.BV):e.iX=i.II(e.L),e.iY=n.AR(e.AC),e.E.XB=n.AR(e.AC),e.E.A9I=n.AR(e.DU[0]),e.E.AAU=n.AR(e.DU[1]),e.E.VE=n.AR(e.DU[2]),e.JS=t),(!e.I3||e.A.GX&&e.A.MY.size<3)&&(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.J5=new ZC.DQ(e.A),e.J5.copy(e),e.DU[2]<e.AC&&(e.J5.A0=e.J5.AE=e.C2,e.J5.BX=e.B9),e.DU[2]<e.AC?(e.A.o["trend-down"]&&(e.J5.append(e.A.o["trend-down"]),e.J5.parse()),e.A.MY.down||(e.A.MY.down=new ZC.DQ(e.A),e.A.MY.down.copy(e.J5),e.A.MY.size++)):e.DU[2]>e.AC?(e.A.o["trend-up"]&&(e.J5.append(e.A.o["trend-up"]),e.J5.parse()),e.A.MY.up||(e.A.MY.up=new ZC.DQ(e.A),e.A.MY.up.copy(e.J5),e.A.MY.size++)):(e.A.o["trend-equal"]&&(e.J5.append(e.A.o["trend-equal"]),e.J5.parse()),e.A.MY.equal||(e.A.MY.equal=new ZC.DQ(e.A),e.A.MY.equal.copy(e.J5),e.A.MY.size++)),e.I3=!0),e.A.GX){e.DU[2]<e.AC?e.J5=e.A.MY.down:e.DU[2]>e.AC?e.J5=e.A.MY.up:e.J5=e.A.MY.equal;var a=ZC.CY(e.E.XB,e.E.VE),l=ZC.BR(e.E.XB,e.E.VE)-ZC.CY(e.E.XB,e.E.VE);l<2&&(l=2),e.E.A7R=a+l/2}},K2:function(e,i,n,t){var a=this,l=a.A.MU();function r(e){return ZC.AO.G5(e,l)}return ZC._cp_(i,l),a.CA=[["%node-value-stock-open",r(a.AC)],["%open",r(a.AC)],["%v0",r(a.AC)],["%node-value-stock-high",r(a.DU[0])],["%high",r(a.DU[0])],["%v1",r(a.DU[0])],["%node-value-stock-low",r(a.DU[1])],["%low",r(a.DU[1])],["%v2",r(a.DU[1])],["%node-value-stock-close",r(a.DU[2])],["%close",r(a.DU[2])],["%v3",r(a.DU[2])]],e=a.b(e,i,n,t)},AA0:function(){var e,i,n=this;if(n.DU=[],n.o.value instanceof Array&&5===n.o.value.length)n.BV=ZC._f_(n.o.value[0]),null!==n.BV&&(null!==ZC._n_(n.A.K9[n.BV])&&-1!==ZC.AV(n.A.K9[n.BV],n.L)||n.A.V9(n.BV,n.L)),i=[n.o.value[1],n.o.value[2],n.o.value[3],n.o.value[4]];else if(n.o.value[1]instanceof Array){if("string"==typeof n.o.value[0]){var t=ZC.AV(n.A.AZ.IU,n.o.value[0]);-1!==t?n.BV=t:(n.A.AZ.IU.push(n.o.value[0]),n.BV=n.A.AZ.IU.length-1)}else n.BV=ZC._f_(n.o.value[0]);null!==n.BV&&(null!==ZC._n_(n.A.K9[n.BV])&&-1!==ZC.AV(n.A.K9[n.BV],n.L)||n.A.V9(n.BV,n.L)),i=n.o.value[1]}else i=n.o.value;n.CK=i.join(" "),n.AC=ZC._f_(i[0]),null!==ZC._n_(e=i[1])&&n.DU.push(ZC._f_(e)),null!==ZC._n_(e=i[2])&&n.DU.push(ZC._f_(e)),null!==ZC._n_(e=i[3])&&n.DU.push(ZC._f_(e))},ABE:function(){var e=this,i={};return e.DU[2]<e.AC?i["background-color"]=e.J5.B9:i["background-color"]=e.J5.A0,i.color=e.J5.C2,i},Y3:function(){var e=this,i={};return e.DU[2]<e.AC?i["background-color"]=e.J5.B9:i["background-color"]=e.J5.A0,i["border-color"]=i["background-color"],i.color=e.J5.C2,i},A8E:function(){return this.Y3()},paint:function(){var e,i=this;i.b();var n=i.A.AZ;i.setup();for(var t=n.AD*i.A.Y,a=i.A.L,l=0,r=0;r<i.A.A.K8.stock.length;r++)l++,-1!==ZC.AV(i.A.A.K8[i.A.AF][r],i.A.L)&&(a=r);var o=i.A.CH;o<=1&&(o*=t);var A=i.A.CU;A<=1&&(A*=t);var C=t-o-A,s=i.A.F5;s<=1&&(s*=C),C<1&&(C=.8*t,o=.1*t,A=.1*t);var u=C,Z=i.A.F0;0!==Z&&(s=0),l>1&&(Z>1?u=(C-(l-1)*s+(l-1)*Z)/l:Z*=u=(C-(l-1)*s)/(l-(l-1)*Z)),u=ZC._l_(u,1,C);var c=i.iX-t/2+o+a*(u+s)-a*Z;c=ZC._l_(c,i.iX-t/2+o,i.iX+t/2-A);var p,h=u,f=ZC.CY(i.E.XB,i.E.VE),_=ZC.BR(i.E.XB,i.E.VE)-ZC.CY(i.E.XB,i.E.VE);if(_<2&&(_=2),o+A===0&&(c-=.5,h+=1),i.I=h,i.F=_,i.iX=c,i.E.A7R=f+_/2,i.setNodeData({x:c,y:f,w:h,h:_}),i.AP){p=i.C.AEF.getContext("2d");var d,g=i.iX+i.I/2;i.DU[2]<i.AC&&(e=i.A.o["trend-down"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DU[2]>i.AC&&(e=i.A.o["trend-up"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DU[2]===i.AC&&(e=i.A.o["trend-equal"])&&(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]);var v=i.A.IJ(i,i.J5);switch(i.A.CW){default:var B,E;(d=[]).push([g,i.E.A9I],[g,ZC.CY(i.E.XB,i.E.VE)],null,[g,i.E.AAU],[g,ZC.BR(i.E.XB,i.E.VE)]),ZC.CO.paint(p,v,d),E=i.DU[2]<i.AC?i.A.ABI:i.DU[2]>i.AC?i.A.ACL:i.A.AB6,0!==i.A.E6.length||void 0===E||i.O.o.override||i.C.KL?(B=new ZC.HU(i.A)).copy(v):B=E,i.H8(B),B.Z=i.C.AEF,B.C8=i.C.AEG,B.K=i.K,B.iX=c,B.iY=f,B.I=i.I,B.F=i.F,B.paint(),0!==i.A.E6.length||void 0!==E||i.O.o.override||i.C.KL||(i.DU[2]<i.AC?i.A.ABI=B:i.DU[2]>i.AC?i.A.ACL=B:i.A.AB6=B);break;case"whisker":case"ohlc":d=[];var b=Math.max(i.I/4,4);d.push([g,i.E.A9I],[g,i.E.AAU],null,[g-b,i.E.XB],[g,i.E.XB],null,[g+b,i.E.VE],[g,i.E.VE]),i.H8(v),ZC.CO.paint(p,v,d)}if(i.A.FV){var D=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";i.A.A.H3.push(ZC.Q.FP("rect",i.A.E9,i.A.IE)+'class="'+D+'" '+i.a11y()+' id="'+i.K+'" coords="'+ZC._i_(c+ZC.MAPTX)+","+ZC._i_(i.E.A9I+ZC.MAPTX)+","+ZC._i_(c+h+ZC.MAPTX)+","+ZC._i_(i.E.AAU+ZC.MAPTX)+'" />')}i.A.U&&i.A.U.AP&&i.H1()}},A15:function(){}}),ZC.A7G=ZC.LM.CD({setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),n=e.C.BM(e.A.BW("v")[0]),t=e.L%i.H7,a=Math.floor(e.L/i.H7),l=n.EM/(n.BF-n.B0);e.iX=i.iX+t*i.GM+i.GM/2,e.iY=i.iY+a*i.GH+i.GH/2,e.E.angle=n.DK-n.EM/2+l*(e.AC-n.B0),n.AW&&(e.E.angle=n.DK+n.EM/2-l*(e.AC-n.B0)),e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0)},AC6:function(e){var i,n,t,a=e.I,l=e.F,r=this,o=r.C.BM(r.A.BW("k")[0]),A=ZC.CY(o.GM/2,o.GH/2)*o.JU,C=r.L%o.H7,s=Math.floor(r.L/o.H7),u=o.iX+C*o.GM+o.GM/2+o.BK,Z=o.iY+s*o.GH+o.GH/2+o.BJ;switch(e.o.placement){case"center":n=u-a/2+r.BK,t=Z-l/2+r.BJ;break;case"edge":n=(i=ZC.AQ.BN(u,Z,A+e.DX,r.E.angle))[0]-a/2+r.BK,t=i[1]-l/2+r.BJ;break;case"tip":n=(i=ZC.AQ.BN(u,Z,r.E.size+e.DX,r.E.angle))[0]-a/2+r.BK,t=i[1]-l/2+r.BJ;break;default:n=(i=ZC.AQ.BN(u,Z,A/2+e.DX,r.E.angle))[0]-a/2+r.BK,t=i[1]-l/2+r.BJ}return null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(t=e.iY),[ZC._i_(n),ZC._i_(t)]},ABE:function(){return{color:this.A0}},Y3:function(){return{"background-color":this.A0,"border-color":this.B9,color:this.C2}},paint:function(){var e,i=this;i.b(),i.setup(),i.D0=!1;var n=i.C.BM(i.A.BW("k")[0]),t=ZC.CY(n.GM/2,n.GH/2)*n.JU,a=i.L%n.H7,l=Math.floor(i.L/n.H7),r=n.iX+a*n.GM+n.GM/2+n.BK,o=n.iY+l*n.GH+n.GH/2+n.BJ,A=ZC.IO(i.A.o.size||"0.9",!1);A>0&&A<=1&&(A*=t),i.E.size=A;var C=i.O=i.A.IJ(i,i),s=new ZC.DT(i.A);s.copy(C),s.Z=i.C.AEF,s.C8=i.C.AEG,s.K=i.K+"-arrow";var u,Z,c,p=i.C.BM(i.A.BW("v")[0]),h=(p.DK,p.EM,function(n){var a=[],l=i.A.I4;l[4]>-1&&l[4]<1&&(l[4]=ZC._i_(l[4]*t));var C=ZC.AQ.BN(r,o,l[4],n);if(l[0]>=0)for(e=-l[2];e<=180+l[2];e+=5)a.push(ZC.AQ.BN(C[0],C[1],l[0],n+270-e));else a.push(ZC.AQ.BN(C[0],C[1],ZC._a_(l[0]),n-90)),a.push(ZC.AQ.BN(C[0],C[1],ZC._a_(l[0]),n+90));if(0===l[1])a.push(ZC.AQ.BN(r,o,A>0?A:.9*t,n));else if(l[1]>0)for(C=ZC.AQ.BN(r,o,A>0?A:.9*t,n),e=-l[3];e<=180+l[3];e+=5)a.push(ZC.AQ.BN(C[0],C[1],l[1],n-270-e));else C=ZC.AQ.BN(r,o,(A>0?A:.9*t)+l[1],n),a.push(ZC.AQ.BN(C[0],C[1],ZC._a_(l[1]/(90/l[3])),n+90),ZC.AQ.BN(C[0],C[1],ZC._a_(l[1]),n+90),ZC.AQ.BN(r,o,A>0?A:.9*t,n),ZC.AQ.BN(C[0],C[1],ZC._a_(l[1]),n+270),ZC.AQ.BN(C[0],C[1],ZC._a_(l[1]/(90/l[3])),n+270));return a.push([a[0][0],a[0][1]]),a}(i.E.angle));i.E.points=h,s.DH="poly",s.D=h,s.parse(),s.IQ=function(e){return i.IQ(e)},s.DG()&&s.parse(),i.A.GG&&!i.C.HM?i.A.U&&i.H1():(s.paint(),i.A.U&&i.H1(),u=s.F1(),Z=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",c=ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+Z+'" '+i.a11y()+' id="'+i.K+'" coords="'+u+'" />',i.A.A.H3.push(c))},A15:function(e){}}),ZC.A7H=ZC.LM.CD({$i:function(e){this.b(e);var i=this;i.C9=null,i.CC=null,i.MP="min"},K2:function(e,i,n,t){var a=this;return a.CA=[["%range-set",a.MP],["%node-min-value",a.C9],["%node-max-value",a.CC]],e=a.b(e,i,n,t)},AA0:function(){var e,i,n=this;n.o.value[1]instanceof Array?("string"==typeof n.o.value[0]?-1!==(i=ZC.AV(n.A.AZ.IU,n.o.value[0]))?n.BV=i:(n.A.AZ.IU.push(n.o.value[0]),n.BV=n.A.AZ.IU.length-1):n.BV=ZC._f_(n.o.value[0]),null!==n.BV&&(null!==ZC._n_(n.A.K9[n.BV])&&-1!==ZC.AV(n.A.K9[n.BV],n.L)||n.A.V9(n.BV,n.L)),e=n.o.value[1]):e=n.o.value,"string"==typeof e[0]?-1!==(i=ZC.AV(n.A.CQ.JP,e[0]))?n.C9=i:(n.A.CQ.JP.push(e[0]),n.C9=n.A.CQ.JP.length-1):n.C9=ZC._f_(e[0]),n.DU.push(n.C9),"string"==typeof e[1]?-1!==(i=ZC.AV(n.A.CQ.JP,e[1]))?n.CC=i:(n.A.CQ.JP.push(e[1]),n.CC=n.A.CQ.JP.length-1):n.CC=ZC._f_(e[1]),n.CK=e.join(" "),n.AC=n.CC},setup:function(){var e=this,i=e.A.NG,n=e.A.AZ,t=e.A.CQ,a=[n.W,n.A1,t.W,t.A1,e.MP];if(null===ZC._n_(e.AH)&&(e.AH=[]),e.A.bFastRange&&(e.E.points=null,e.E.pointsarea=null),e.JS!==a&&(i?(null!==e.BV?e.iY=n.AR(e.BV):e.iY=n.II(e.L),e.iX=t.AR("min"===e.MP?e.C9:e.CC)):(null!==e.BV?e.iX=n.AR(e.BV):e.iX=n.II(e.L),e.iY=t.AR("min"===e.MP?e.C9:e.CC)),e.JS=a),e.A.bFastRange)e.I3=!1;else if(!e.I3){ZC.DS(e.iX,e.C.P.iX-10,e.C.P.iX+e.C.P.I+10)&&ZC.DS(e.iY,e.C.P.iY-10,e.C.P.iY+e.C.P.F+10)&&(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(),e.I3=!0)}e.E.NH=t.AR(e.C9),e.E.RA=t.AR(e.CC)},ABE:function(){return this.A.bFastRange?{color:this.A.B9}:{color:this.B9}},Y3:function(){return this.A.bFastRange?{"background-color":this.A.B9,"border-color":this.A.B9,color:this.A.C2}:{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},paint:function(){var e,i=this;i.b();var n=i.A.AZ,t=i.A.OD,a=i.A.NG,l=i.A.S;if(i.setup(),!i.A.bFastRange){null!==ZC._n_(i.A.o[i.MP+"-line"])&&(i.append(i.A.o[i.MP+"-line"]),i.parse()),i.D0=!1,i.C8=i.C.AEG;var r,o,A,C,s,u,Z,c,p,h,f,_,d,g=[],v=[];switch(i.A.CW){default:var B=!0;!n.EI&&i.L<=n.W&&(B=!1),l[i.L-i.A.Y]||(B=!1),B&&(l[i.L-i.A.Y].MP=i.MP,l[i.L-i.A.Y].setup(),a?(o=[i.E.NH,i.iY],A=[l[i.L-i.A.Y].E.NH,l[i.L-i.A.Y].iY],C=[i.E.RA,i.iY],s=[l[i.L-i.A.Y].E.RA,l[i.L-i.A.Y].iY],u=ZC.AQ.A5K(o,A,C,s),r=ZC.DS(u[1],l[i.L-i.A.Y].iY,i.iY)?u:ZC.AQ.K1(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([r[0],ZC._i_(r[1])]),g.push([r[0],r[1]])):(o=[i.iX,i.E.NH],A=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.NH],C=[i.iX,i.E.RA],s=[l[i.L-i.A.Y].iX,l[i.L-i.A.Y].E.RA],u=ZC.AQ.A5K(o,A,C,s),r=ZC.DS(u[0],l[i.L-i.A.Y].iX,i.iX)?u:ZC.AQ.K1(l[i.L-i.A.Y].iX,l[i.L-i.A.Y].iY,l[i.L].iX,l[i.L].iY),v.push([ZC._i_(r[0]),r[1]]),g.push([r[0],r[1]]))),a?v.push([i.iX,ZC._i_(i.iY)]):v.push([ZC._i_(i.iX),i.iY]),g.push([i.iX,i.iY]);var E=!0;!n.EI&&i.L>=n.A1&&(E=!1),l[i.L+i.A.Y]||(E=!1),E&&(l[i.L+i.A.Y].MP=i.MP,l[i.L+i.A.Y].setup(),a?(o=[i.E.NH,i.iY],A=[l[i.L+i.A.Y].E.NH,l[i.L+i.A.Y].iY],C=[i.E.RA,i.iY],s=[l[i.L+i.A.Y].E.RA,l[i.L+i.A.Y].iY],u=ZC.AQ.A5K(o,A,C,s),r=ZC.DS(u[1],l[i.L+i.A.Y].iY,i.iY)?u:ZC.AQ.K1(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([r[0],ZC._i_(r[1])]),g.push([r[0],r[1]])):(o=[i.iX,i.E.NH],A=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.NH],C=[i.iX,i.E.RA],s=[l[i.L+i.A.Y].iX,l[i.L+i.A.Y].E.RA],u=ZC.AQ.A5K(o,A,C,s),r=ZC.DS(u[0],l[i.L+i.A.Y].iX,i.iX)?u:ZC.AQ.K1(l[i.L].iX,l[i.L].iY,l[i.L+i.A.Y].iX,l[i.L+i.A.Y].iY),v.push([ZC._i_(r[0]),r[1]]),g.push([r[0],r[1]])));break;case"spline":if("undefined"==typeof i.E["intersect.index"]&&(i.E["intersect.index"]=-1,l[i.L+i.A.Y])){var b=[],D=[],F=[];for(Z=-1;Z<3;Z++)l[i.L+Z]?(l[i.L+Z].setup(),b.push(l[i.L+Z].E.NH),F.push(l[i.L+Z].E.RA),a?D.push(l[i.L+Z].iY):D.push(l[i.L+Z].iX)):(b.push(i.E.NH),F.push(i.E.RA),a?D.push(i.iY):D.push(i.iX));p=ZC._a_(D[2]-D[1]);var m=ZC.AQ.YC(i.A.QI,b,ZC._i_(p)),Y=ZC.AQ.YC(i.A.QI,F,ZC._i_(p));if(l[i.L+i.A.Y].C9===l[i.L+i.A.Y].CC)i.E["intersect.index"]=m.length;else{var M=m[0][1]-Y[0][1];for(Z=1,c=m.length;Z<c;Z++)if(Math.round(M*(m[Z][1]-Y[Z][1]),2)<=0){i.E["intersect.index"]=Z+1;break}}i.E["spline.points.min"]=m,i.E["spline.points.max"]=Y,i.E["spline.xdiff"]=p}p=i.E["spline.xdiff"]||n.AD,null===ZC._n_(i.A.ZW)&&(i.A.ZW={}),null===ZC._n_(i.A.S8)&&(i.A.S8={});var I=[],K=[];if("min"===i.MP){if(null!==ZC._n_(e=i.A.S8.max))for(Z=e.length-1;Z>=0;Z--)i.AH.push(i.A.S8.max[Z]);if(null!==ZC._n_(e=i.A.S8.min))for(Z=0,c=e.length;Z<c;Z++)i.AH.push(e[Z])}if(null!==ZC._n_(e=i.A.ZW[i.MP]))for(g=[],Z=0,c=e.length;Z<c;Z++)g.push(e[Z]);if(l[i.L+i.A.Y]&&i.L<n.A1){"min"===i.MP?h=i.E["spline.points.min"]:"max"===i.MP&&(h=i.E["spline.points.max"]),f=-1===i.E["intersect.index"]?ZC._i_(h.length/2):i.E["intersect.index"];var X=a?n.AW?1:-1:n.AW?-1:1;for(Z=0;Z<f;Z++)a?(g.push([h[Z][1],i.iY+X*h[Z][0]*p]),v.push([h[Z][1],ZC._i_(i.iY+X*h[Z][0]*p)])):(g.push([i.iX+X*h[Z][0]*p,h[Z][1]]),v.push([ZC._i_(i.iX+X*h[Z][0]*p),h[Z][1]]));var x=1===i.HS?ZC.CY(2,f):1;for(Z=f-1,c=h.length;Z<c;Z++)a?I.push([h[Z][1],i.iY+X*h[Z][0]*p]):I.push([i.iX+X*h[Z][0]*p,h[Z][1]]);for(Z=f-x,c=h.length;Z<c;Z++)a?K.push([h[Z][1],ZC._i_(i.iY+X*h[Z][0]*p)]):K.push([ZC._i_(i.iX+X*h[Z][0]*p),h[Z][1]])}else g.push([l[i.L].iX,l[i.L].iY]),a?(I.push([l[i.L].iX,ZC._i_(l[i.L].iY)]),v.push([l[i.L].iX,ZC._i_(l[i.L].iY)]),K.push([l[i.L].iX,ZC._i_(l[i.L].iY)])):(I.push([ZC._i_(l[i.L].iX),l[i.L].iY]),v.push([ZC._i_(l[i.L].iX),l[i.L].iY]),K.push([ZC._i_(l[i.L].iX),l[i.L].iY]));i.A.ZW[i.MP]=I,i.A.S8[i.MP]=K}if("min"===i.MP)for(Z=0,c=v.length;Z<c;Z++)i.AH.push(v[Z]);else for(Z=v.length-1;Z>=0;Z--)i.AH.push(v[Z]);if("max"===i.MP){var L=new ZC.DT(i.A);L.K=i.K+"-area",L.Z=i.C.AEH,L.copy(i.O),L.B1=0,L.AU=0,L.EU=0,L.G3=0,L.parse(),L.D=i.AH,L.C5=i.A.HS;var P=i.C.P;for(L.D2=[P.iX,P.iY,P.iX+P.I,P.iY+P.F],L.paint(),i.E.pointsarea=[],Z=0,c=i.AH.length;Z<c;Z++)i.E.pointsarea.push(i.AH[Z]);i.AH=[],i.A.FV&&(d=L.F1(),_=i.C.K+"-node-area "+i.C.K+"-plot-"+i.A.L+"-node-area zc-node-area",i.A.A.H3.push(ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+_+'" id="'+i.K+'--area" coords="'+d+'" />'))}"min"===i.MP?i.E.points=g:(i.E.points.push(null),i.E.points=i.E.points.concat(g));var w=new ZC.CZ(i);w.copy(i.O),w.append(i.A.o[i.MP+"-line"]),w.K=i.K+"-line",w.parse(),ZC.CO.setup(t,w),ZC.CO.paint(t,w,g),"max"===i.MP&&i.paintPreview(i,i.E.points,i.E.pointsarea);if(a?ZC.DS(i.iY,n.iY-1,n.iY+n.F+1)&&ZC.DS(i.iX,n.iX-1,n.iX+n.I+1):ZC.DS(i.iX,n.iX-1,n.iX+n.I+1)&&ZC.DS(i.iY,n.iY-1,n.iY+n.F+1)){var S=new ZC.DT(i.A);S.K=i.K+"-marker-"+i.MP,S.Z=S.C8=i.C.Z,S.iX=i.iX,S.iY=i.iY,S.B9=i.A.BP[4],S.BX=i.A.BP[4],S.A0=i.A.BP[2],S.AE=i.A.BP[2],S.append(i.A.A2.o),i.A.o[i.MP+"-marker"]&&S.append(i.A.o[i.MP+"-marker"]),S.parse(),S.IQ=function(e){return i.IQ(e)},S.DG()&&S.parse(),S.AP&&"none"!==S.AF&&(i.A.MW>n.A1-n.W&&S.paint(),i.E["marker.type"]=S.DH,_=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n.AW&&g.reverse(),i.A.FV&&(""!==(d=ZC.AQ.PJ(ZC.AQ.Z1(i.E.points),4))&&i.A.A.H3.push(ZC.Q.FP("poly",i.A.E9,i.A.IE)+'class="'+_+'" id="'+i.K+"--"+i.MP+'" coords="'+d+'" />'),i.A.A.H3.push(ZC.Q.FP("circle",i.A.E9,i.A.IE)+'class="'+_+'" '+i.a11y()+' id="'+i.K+"--"+i.MP+'" coords="'+ZC._i_(S.iX+ZC.MAPTX)+","+ZC._i_(S.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BR(3,S.AI))+'" />'))),i.A.U&&i.A.U.AP&&i.H1()}}},paintPreview:function(e,i,n){var t=this;if(t.C.B7&&t.C.B7.I3&&t.A.QU){var a,l=t.C.P,r=t.C.B7,o=t.A.mapPointsToPreview(n),A=new ZC.DT(t.A);A.copy(e),A.D0=!0,A.LB=!0,A.B1=0,A.AU=0,A.EU=0,A.G3=0,A.C5=t.A.HS,A.D2=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],A.K=t.K+"-area-preview",A.Z=r.Z,A.D=o,A.paint();var C=t.A.mapPointsToPreview(i);t.A.VY?a=t.A.VY:(a=new ZC.CZ(t),t.A.VY=a),a.copy(e);var s=ZC.Q.EE(r.Z,t.G.AB);a.B1=1;var u=ZC.BOUNDS;ZC.BOUNDS=[],ZC.CO.paint(s,a,C,null,3),ZC.BOUNDS=u}},A15:function(){}}),ZC.A7M=ZC.LM.CD({bCXY:!0,U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AB2:function(){this.b();var e=this.C.E;e.update.npv=e.update["node-percent-value"]=this.K2("%npv")},K2:function(e,i,n,t){var a=this,l=a.A.MU();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var r=0,o="0";if(a.A.A.KP[a.L]>0&&(o=""+(r=100*a.AC/a.A.A.KP[a.L])),a.A.A.A4.length>1&&a.A.L===a.A.A.A4.length-1){var A=0;if(null===ZC._n_(a.A.o.totals)){for(var C=0;C<a.A.A.A4.length-1;C++)if(a.A.A.A4[C].AP&&null!==ZC._n_(a.A.A.A4[C].S[a.L])){var s=0,u="0";a.A.A.KP[a.L]>0&&(u=""+(s=100*a.A.A.A4[C].S[a.L].AC/a.A.A.KP[a.L])),null!==ZC._n_(l.decimals)&&(u=s.toFixed(ZC.BR(0,ZC._i_(l.decimals)))),A+=ZC._f_(u)}o=""+(r=Math.max(0,100-A))}}null!==ZC._n_(l.decimals)&&(o=r.toFixed(ZC.BR(0,ZC._i_(l.decimals))));var Z,c=ZC._f_(a.A.A.KP[a.L]||"0");return Z=ZC.AO.G5(c,l,a.A),a.CA=[["%node-percent-value",o],["%npv",o],["%pie-total-value",Z]],e=a.b(e,i,n,t)},V7:function(e){var i,n=this,t=(n.B4+n.BL)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=n.AI);var l=new ZC.CE(n.C,(n.CP+.5*(n.AI-n.CP)+n.DX+a)*ZC.EF(t),(n.CP+.5*(n.AI-n.CP)+n.DX+a)*ZC.EL(t),0).EC;return[l[0],l[1],{reference:n,center:!0}]},setup:function(){var e=this,i=e.C.BM(e.A.BW("k")[0]),n=e.L%i.H7,t=Math.floor(e.L/i.H7);e.iX=i.iX+n*i.GM+i.GM/2+i.BK,e.iY=i.iY+t*i.GH+i.GH/2+i.BJ,e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(),e.I3=!0)},ABE:function(e){var i={},n="out";return null!==ZC._n_(e.o.placement)&&(n=e.o.placement),i.color="out"===n?this.A0:this.C2,i},AC6:function(e){var i,n=this,t="out";null!==ZC._n_(i=e.o.placement)&&(t=i);var a,l,r,o,A,C=e.I,s=e.F,u=(n.B4+n.BL)/2%360,Z=u;if("out"===t){u=Z=n.A.A.YB["n"+n.L][n.A.L];var c=function(i,t){t<0&&(t=360+t),t%=360;var a=ZC.AQ.BN(n.iX,n.iY,i+n.DX+e.DX+20,t),l=n.C.ES["x-angle"];l>45&&n.A.A.A4.length>10&&(n.C.ES["x-angle"]=45+(l-45)/3),A=new ZC.CE(n.C,a[0]-ZC.AM.E1,a[1]-ZC.AM.E2,0),n.C.ES["x-angle"]=l,a[0]=A.EC[0],a[1]=A.EC[1];var r=a[0]+e.BK-C/2,o=a[1]+e.BJ-s/2;return t>=0&&t<=90||t>=270&&t<=360?r+=C/2+10:r-=C/2+10,[r,o]},p=c(n.AI,Z);a=p[0],l=p[1],n.U=e;var h={x:a,y:l,width:C,height:s},f=zingchart.DEV.SPREADTYPE;o=!0;for(var _=0,d=0,g=-1,v=0,B=0;o&&B<1024;){o=!1;for(var E=0,b=n.A.A.TS.length;E<b;E++)r=n.A.A.TS[E],(ZC.AQ.VD(h,r,n.A.A.A4.length>10?-8:-2)||h.x+e.I>n.C.P.iX+n.C.P.I||h.x<n.C.P.iX||h.y+e.F>n.C.P.iY+n.C.P.F||h.y<n.C.P.iY)&&(o=!0,0===f?(_+=.4,g*=-1):1===f&&(d+=1),p=c(n.AI+d,Z+_*g),h.x=p[0],h.y=p[1],B++,++v>100&&(v=0,0===f?(_=0,d+=4):1===f&&(d=0,_+=1,g*=-1)))}a=h.x,l=h.y,u=Z+_,r={text:n.A.AN,x:h.x,y:h.y,width:C,height:s,plotindex:n.A.L,nodeindex:n.L},n.A.A.TS.push(r)}else if("in"===t){var D=n.CP<30?.65:.5,F=ZC.AQ.BN(n.iX,n.iY,n.CP+D*(n.AI-n.CP)+n.DX+e.DX,u);A=new ZC.CE(n.C,F[0]-ZC.AM.E1,F[1]-ZC.AM.E2,0),F[0]=A.EC[0],F[1]=A.EC[1],a=F[0]+e.BK-C/2,l=F[1]+e.BJ-s/2}else"center"===t&&(a=(A=new ZC.CE(n.C,n.iX-ZC.AM.E1,n.iY-ZC.AM.E2,0)).EC[0]+e.BK-C/2,l=A.EC[1]+e.BJ-s/2);return o&&(a=-9999,l=-9999,e.AP=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),u]},H1:function(e,i){var n,t=this,a=t.b(e,i);if(e)return a;if(t.AP&&a.AP&&null!==ZC._n_(a.AN)&&""!==a.AN){var l="out";if(null!==ZC._n_(a.o.placement)&&(l=a.o.placement),"out"===l){var r=!0;if(null!==ZC._n_(n=a.o.connected)&&(r=ZC._b_(n)),r){var o=new ZC.DT(t.A);o.Z=t.C.AEF,o.append(t.A.C3.o),o.B9=t.A0,o.DH="line",o.D=[];var A=a.E.positioninfo,C=(t.B4+t.BL)/2%360,s=0;C>=0&&C<=180&&(s=t.E.thickness/2);var u=ZC.AQ.BN(t.iX,t.iY,t.AI+t.DX+a.DX,C);(u=new ZC.CE(t.C,u[0]-ZC.AM.E1,u[1]-ZC.AM.E2,s).EC)[0]+=t.BK,u[1]+=t.BJ,o.D.push(u);var Z=ZC.AQ.BN(t.iX,t.iY,t.AI+t.DX+a.DX+20,C);(Z=new ZC.CE(t.C,Z[0]-ZC.AM.E1,Z[1]-ZC.AM.E2,s).EC)[0]+=t.BK,Z[1]+=t.BJ,a.iX>=t.iX?o.D.push([Z[0],Z[1],A[0],A[1]+a.F/2]):o.D.push([Z[0],Z[1],A[0]+a.I+2,A[1]+a.F/2]),o.parse(),o.IQ=function(e){return t.IQ(e)},o.DG()&&o.parse(),o.AP&&o.paint()}}}},paint:function(){var e,i,n,t,a,l,r,o,A,C=this,s=C.C.CN,u=C.C.BM(C.A.BW("k")[0]),Z=C.C.ES["x-angle"],c=C.C.ES["y-angle"];C.setup();var p="pie-sel-"+C.A.L+"-"+C.L;if("undefined"!=typeof C.o.detached&&(C.C.E[p]=ZC._b_(C.o.detached)),!(C.AC<0)){var h=ZC.BR(.7,ZC.EF(Z));C.AI=ZC.CY(u.GH/h,u.GM)/2,null!==ZC._n_(C.A.o.size)?C.AI=C.A.AI:C.AI=u.JU*C.AI,C.CP<1&&(C.CP*=C.AI),C.CP=Math.max(0,C.CP),C.o.slice=C.CP,C.DX<1&&(C.DX*=C.AI),C.o["offset-r"]=C.DX;var f=C.A.JK;-1===f&&(f=C.AI/5),C.E.thickness=f;var _=C.iX-ZC.AM.E1,d=C.iY-ZC.AM.E2;C.B4=ZC._i_(C.B4),C.BL=ZC._i_(C.BL);var g=(C.B4+C.BL)/2;C.C.E[p]&&(C.DX+=ZC._i_(.15*C.AI)),C.DX>0&&(_+=C.DX*ZC.EF(g),d+=C.DX*ZC.EL(g));var v=C.O=C.A.IJ(C,C);v.DF=C.K+"-3dfacet";var B=new ZC.CZ(C);if(B.copy(v),B.A0=ZC.AO.JR(ZC.AO.GD(B.A0)),B.AE=ZC.AO.JR(ZC.AO.GD(B.AE)),C.AC>=0||0===C.A.A.KP[C.L]){for(r=[],e=C.B4,r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),0]),e=C.B4;e<=C.BL;e+=1)r.push([_+C.AI*ZC.EF(e),d+C.AI*ZC.EL(e),0]);for(e=C.BL,r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),0]),e=C.BL;e>=C.B4;e-=1)r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),0]);if((i=ZC.DL.DA(v,C.C,r)).K=C.K+"-facet1",s.add(i),n=null,C.B4%360>=0+c&&C.B4%360<180+c||C.BL%360>0+c){o=C.B4,A=C.BL;var E=function(e,i,t){var a,l=[];for(a=e,l.push([_+C.AI*ZC.EF(a),d+C.AI*ZC.EL(a),0]),a=e;a<=i;a+=1)l.push([_+C.AI*ZC.EF(a),d+C.AI*ZC.EL(a),0]);for(a=i,l.push([_+C.AI*ZC.EF(a),d+C.AI*ZC.EL(a),f]),a=i;a>=e;a-=1)l.push([_+C.AI*ZC.EF(a),d+C.AI*ZC.EL(a),f]);(n=ZC.DL.DA(B,C.C,l)).MG=[.01,1,1,1],n.K=C.K+"-facet2"+t,s.add(n)};o<180&&A>360?(E(o=o<0?o+360:o,180,1),E(360,A,2)):(o=ZC.BR(o,A>360?365:5),(A=ZC.CY(A,A>360?535:175))>o&&E(o,A,1))}if(l=null,C.CP>0+c&&C.BL>180+c){for(r=[],e=C.B4,o=C.B4,C.B4<180+c&&C.BL>180+c&&(e=180+c,o=180+c),r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),0]),e=o;e<=C.BL;e+=1)r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),0]);for(e=C.BL,r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),f]),e=C.BL;e>=o;e-=1)r.push([_+C.CP*ZC.EF(e),d+C.CP*ZC.EL(e),f]);(l=ZC.DL.DA(B,C.C,r)).K=C.K+"-facet3",s.add(l)}var b=function(e,i,n){return[[_+e*ZC.EF(n),d+e*ZC.EL(n),0],[_+e*ZC.EF(n),d+e*ZC.EL(n),f],[_+i*ZC.EF(n),d+i*ZC.EL(n),f],[_+i*ZC.EF(n),d+i*ZC.EL(n),0]]};(t=ZC.DL.DA(B,C.C,{points:b(C.CP,C.AI,C.B4),mathpoints:b(C.CP+1,C.AI+1,C.B4-1)})).K=C.K+"-facet4",s.add(t),(a=ZC.DL.DA(B,C.C,{points:b(C.CP,C.AI,C.BL),mathpoints:b(C.CP+1,C.AI+1,C.BL+1)})).K=C.K+"-facet5",s.add(a);var D=C.C.K+"-node-area "+C.C.K+"-plotset-plot-"+C.A.L+"-node-area zc-node-area",F=ZC.Q.FP("poly",C.A.E9)+'class="'+D+'" id="'+C.K,m=C.A.A.H3;m.push(F+'--top" '+C.a11y()+' data-z-sort="1" coords="'+i.F1()+'" />'),n&&m.push(F+'--outer" data-z-sort="1" coords="'+n.F1()+'" />'),(C.CP>0||C.DX>0)&&(l&&m.push(F+'--inner" data-z-sort="2" coords="'+l.F1()+'" />'),m.push(F+'--start" data-z-sort="2" coords="'+t.F1()+'" />',F+'--end" data-z-sort="2" coords="'+a.F1()+'" />'))}C.A.U&&C.H1()}},X6:function(e,i){}}),ZC.A6X=ZC.ZL.CD({setup:function(){this.R2()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),n=e.iX+e.I/2,t=e.iY+(i.AW?e.F:0),a=new ZC.CE(e.C,n-ZC.AM.E1,t-ZC.AM.E2,e.A.E["z-start"]);return[ZC._i_(a.EC[0]),ZC._i_(a.EC[1]),{reference:e,center:!0}]},AC6:function(e){var i=this,n=i.b(e);if("-1/-1"!==n.join("/")){var t=new ZC.CE(i.C,n[0]+e.I/2-ZC.AM.E1,n[1]+e.F/2-ZC.AM.E2,i.A.E["z-mid"]);return[ZC._i_(t.EC[0])-e.I/2,ZC._i_(t.EC[1])-e.F/2]}return n},paint:function(e){var i,n=this;n.b(),void 0===e&&(e=!1);var t=n.C.CN,a=n.A.AZ,l=n.A.CQ;n.setup();var r,o,A,C,s,u,Z,c,p,h,f,_,d,g,v,B,E=n.A.SU(),b=E.AD,D=E.EV,F=E.CH,m=E.CU,Y=E.F5,M=E.D5,I=E.F0;if(e?D=n.A.E["node-"+n.L+"-bar-index"]:n.A.E["node-"+n.L+"-bar-index"]=E.EV,n.A.CG){A=0;var K=n.A.A.KH[D];for(r=0;r<K.length;r++){var X=n.A.A.A4[K[r]].S[n.L];X&&(A+=X.AC)}}var x=1,L=1;if(n.A.CG&&A>0&&(n.CR!==n.AC&&(x=(A-n.CR+n.AC)/A),L=(A-n.CR)/A),l.AW){var P=x;x=L,L=P}n.A.LT&&(D=n.L);var w=n.iX-b/2+F+D*(M+Y)-D*I;if(w=ZC._l_(w,n.iX-b/2+F,n.iX+b/2-m),n.A.D5>0){var S=M;(M=n.A.D5)<=1&&(M*=S),w+=(S-M)/2}var y=M,G=n.iY,O=null!==ZC._n_(n.A.LZ[n.L])?n.A.LZ[n.L]:0;if(G=n.A.CG&&"100%"===n.A.KT?l.AR(100*(n.CR+O)/n.A.A.F9[n.L]["%total-"+n.A.DZ]):l.AR(n.CR+O),n.A.CG?(s=G-(C="100%"===n.A.KT?l.AR(100*(n.CR-n.AC+O)/n.A.A.F9[n.L]["%total-"+n.A.DZ]):l.AR(n.CR-n.AC+O)),n.AC<0&&(G=C),l.AW?s>0&&(s=ZC._a_(s),G=C):s<0&&(G=C-(s=ZC._a_(s)))):G=(s=G-(C=l.AR(O)))<0?C-(s=ZC._a_(s)):C,F+m===0&&(w-=.5,y+=1),n.I=y,n.F=s,n.iX=w,n.iY=G,l.AW?n.AC>=l.HC?n.iYVal=G+n.F:n.iYVal=G:n.AC>=l.HC?n.iYVal=G:n.iYVal=G+n.F,n.C.CX){var N="middle";n.C.CX.o.marker&&null!==ZC._n_(i=n.C.CX.o.marker.alignment)&&(N=i),null!==ZC._n_(n.A.o["guide-marker"])&&null!==ZC._n_(i=n.A.o["guide-marker"].alignment)&&(N=i),"node"===N&&(n.E.A5O=n.iX+n.I/2)}if(!e){var V,U,Q,k=w-ZC.AM.E1,W=G-ZC.AM.E2,R=0,J=ZC.AM.FE,H=0,z=J;if(n.A.A3N){if(U=R,"mixed3d"===n.C.AF||"mixed"===n.C.AF){for(V=1,r=0,o=n.A.A.A4.length;r<o;r++)"vbar3d"!==n.A.A.A4[r].AF&&V++;U=(V-1)*(ZC.AM.FE/V),J=ZC._i_(.9*J/V)}Q=U+J}else{if(V=0,H=-1,z=ZC.AM.FE,"hide"===n.C.getToggleAction())V=n.A.A.A4.length,H=n.A.L,z/=V;else if(n.A.CG)H=0;else{for(r=0;r<n.A.A.A4.length;r++)n.C.E["plot"+r+".visible"]&&H++;for(r=0;r<n.A.A.A4.length;r++)n.C.E["plot"+r+".visible"]&&(V++,n.A.L>r&&H--);z/=V,H=V-H-1}U=H*z+.2*z,Q=(H+1)*z-.2*z}if(null!==ZC._n_(n.A.o["z-start"])&&(U=ZC._i_(n.A.o["z-start"])),null!==ZC._n_(n.A.o["z-end"])&&(Q=ZC._i_(n.A.o["z-end"])),null!==ZC._n_(n.A.o.depth)){var T=ZC._i_(n.A.o.depth);U=H*z+z/2-T,Q=H*z+z/2+T}R=U,J=Q-U,n.A.E["z-plots"]=V,n.A.E["z-cnt"]=H,n.A.E["z-depth"]=z,n.A.E["z-start"]=U,n.A.E["z-mid"]=(U+Q)/2;var j=n.O=n.A.IJ(n,n.O);if(j.DF=n.K+"-3dfacet",n.A.HZ&&(n.H8(j),j.parse()),j.AP){var q=new ZC.CZ(n);q.copy(j),q.A0=ZC.AO.JR(ZC.AO.GD(q.A0)),q.AE=ZC.AO.JR(ZC.AO.GD(q.AE)),q.BX=ZC.AO.JR(ZC.AO.GD(q.BX));var $=new ZC.CZ(n);$.copy(j),$.A0=ZC.AO.JR(ZC.AO.GD($.A0),15),$.AE=ZC.AO.JR(ZC.AO.GD($.AE),15),$.BX=ZC.AO.JR(ZC.AO.GD($.BX),15);var ee=new ZC.CZ(n);ee.copy(j);var ie=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area",ne=ZC.Q.FP("poly",n.A.E9,n.O.IE)+'class="'+ie+'" id="'+n.K,te=n.C.ES.true3d,ae=n.I/2,le=J/2,re=x*ae,oe=L*ae,Ae=L*le,Ce=x*le;l.AW&&!n.A.CG?(u=n.AC>=0?0:n.F,Z=n.AC>=0?n.F:0):(u=n.AC>=0?n.F:0,Z=n.AC>=0?0:n.F);var se=n.A.A.H3,ue=ZC.CY(le,ae),Ze=n.C.ES["y-angle"],ce=n.C.ES.angle,pe=ZC.EF(ce)*le,he=ZC.EL(ce)*le;te||(ue=ZC.CY(2*pe,ae));var fe=function(e){var i=0,t=n.A.L,r=n.L,o=n.A.A.A4.length,A=n.A.S.length;switch((n.A.CG?"s":"")+(a.AW?"k":"")+(l.AW?"v":"")){case"":case"v":i=10*t+1e4*r+e;break;case"sv":i=10*(o-t)+1e4*r+e;break;case"k":i=10*t+1e4*(A-r)+e;break;case"skv":i=10*(o-t)+1e4*(A-r)+e;break;case"kv":i=10*t+1e4*(A-r)+e;break;case"s":i=10*t+1e4*r+e;break;case"sk":i=10*t+1e4*(A-r)+e}return i},_e=ZC.MAX,de=-ZC.MAX,ge=ZC.MAX,ve=-ZC.MAX,Be=ZC.MAX,Ee=-ZC.MAX,be=ZC.MAX,De=-ZC.MAX;if("cylinder"===n.A.CW)for(B=0;B<=360;B+=4)(p=new ZC.CE(n.C,k+ZC.EL(B)*ue+ae,W,R+ZC.EF(B)*ue+le)).EC[0]<ge&&(ge=p.EC[0],_e=B),p.EC[0]>ve&&(ve=p.EC[0],de=B),(p=new ZC.CE(n.C,k+ZC.EL(B)*ue+ae,W+n.F,R+ZC.EF(B)*ue+le)).EC[0]<be&&(be=p.EC[0],Be=B),p.EC[0]>De&&(De=p.EC[0],Ee=B);var Fe=n.A.o.facets||{};switch(n.A.CW){default:Fe.bottom?((c=new ZC.CZ(n)).copy(q),c.append(Fe.bottom),c.parse(),d=ZC.DL.DD(c,n.C,k+.1,k+n.I-.1,W+n.F-.1,W+n.F-.1,R+.1,R+J-.1,"x")):d=ZC.DL.DD(q,n.C,k+.1,k+n.I-.1,W+n.F-.1,W+n.F-.1,R+.1,R+J-.1,"x"),d.K=n.K+"-facet1",d.G0=fe(1),t.add(d),Fe.top?((c=new ZC.CZ(n)).copy(q),c.append(Fe.top),c.parse(),_=ZC.DL.DD(c,n.C,k+.1,k+n.I-.1,W+.1,W+.1,R+.1,R+J-.1,"x")):_=ZC.DL.DD(q,n.C,k+.1,k+n.I-.1,W+.1,W+.1,R+.1,R+J-.1,"x"),_.K=n.K+"-facet2",_.G0=fe(3),t.add(_),Fe.left?((c=new ZC.CZ(n)).copy($),c.append(Fe.left),c.parse(),g=ZC.DL.DD(c,n.C,k+.1,k+.1,W+.1,W+n.F-.1,R+.1,R+J-.1,"z")):g=ZC.DL.DD($,n.C,k+.1,k+.1,W+.1,W+n.F-.1,R+.1,R+J-.1,"z"),g.K=n.K+"-facet3",g.G0=fe(2),t.add(g),Fe.right?((c=new ZC.CZ(n)).copy($),c.append(Fe.right),c.parse(),v=ZC.DL.DD(c,n.C,k+n.I-.1,k+n.I-.1,W+.1,W+n.F-.1,R+.1,R+J-.1,"z")):v=ZC.DL.DD($,n.C,k+n.I-.1,k+n.I-.1,W+.1,W+n.F-.1,R+.1,R+J-.1,"z"),v.K=n.K+"-facet4",v.G0=fe(4),t.add(v),Fe.front?((c=new ZC.CZ(n)).copy(ee),c.append(Fe.front),c.parse(),f=ZC.DL.DD(c,n.C,k+.1,k+n.I-.1,W+.1,W+n.F-.1,R+.1,R+.1,"y")):f=ZC.DL.DD(ee,n.C,k+.1,k+n.I-.1,W+.1,W+n.F-.1,R+.1,R+.1,"y"),f.K=n.K+"-facet5",f.G0=fe(5),t.add(f),n.A.FV&&(1===L&&se.push(ne+'--top" coords="'+_.F1()+'" />'),se.push(ne+'--left" coords="'+g.F1()+'" />',ne+'--right" coords="'+v.F1()+'" />',ne+'--front" coords="'+f.F1()+'" '+n.a11y()+' data-z-sort="-100" />'));break;case"pyramid":Fe.bottom?((c=new ZC.CZ(n)).copy(q),c.append(Fe.bottom),c.parse(),d=ZC.DL.DD(c,n.C,k+ae-re,k+ae+re,W+u,W+u,R+le-Ce,R+le+Ce,"x")):d=ZC.DL.DD(q,n.C,k+ae-re,k+ae+re,W+u,W+u,R+le-Ce,R+le+Ce,"x"),d.K=n.K+"-facet1",d.G0=fe(l.AW&&!n.A.CG?6:1),t.add(d),h=[[k+ae-re,W+u,R+le-Ce],[k+ae+re,W+u,R+le-Ce]],n.A.CG&&0!==L?h.push([k+ae+oe,W+Z,R+le-Ae],[k+ae-oe,W+Z,R+le-Ae]):h.push([k+ae,W+Z,R+le]),Fe.front?((c=new ZC.CZ(n)).copy(j),c.append(Fe.front),c.parse(),f=ZC.DL.DA(c,n.C,h)):f=ZC.DL.DA(j,n.C,h),f.K=n.K+"-facet2",f.G0=fe(3),t.add(f),h=[[k+ae-re,W+u,R+le-Ce],[k+ae-re,W+u,R+le+Ce]],n.A.CG&&0!==L?h.push([k+ae-oe,W+Z,R+le+Ae],[k+ae-oe,W+Z,R+le-Ae]):h.push([k+ae,W+Z,R+le]),Fe.left?((c=new ZC.CZ(n)).copy($),c.append(Fe.left),c.parse(),g=ZC.DL.DA(c,n.C,h)):g=ZC.DL.DA($,n.C,h),g.K=n.K+"-facet3",g.G0=fe(2),t.add(g),h=[[k+ae+re,W+u,R+le-Ce],[k+ae+re,W+u,R+le+Ce]],n.A.CG&&0!==L?h.push([k+ae+oe,W+Z,R+le+Ae],[k+ae+oe,W+Z,R+le-Ae]):h.push([k+ae,W+Z,R+le]),Fe.right?((c=new ZC.CZ(n)).copy($),c.append(Fe.right),c.parse(),v=ZC.DL.DA(c,n.C,h)):v=ZC.DL.DA($,n.C,h),v.K=n.K+"-facet4",v.G0=fe(4),t.add(v),n.A.CG&&0!==L&&(h=[[k+ae-oe,W+Z,R+le-Ae],[k+ae-oe,W+Z,R+le+Ae],[k+ae+oe,W+Z,R+le+Ae],[k+ae+oe,W+Z,R+le-Ae]],Fe.top?((c=new ZC.CZ(n)).copy(q),c.append(Fe.top),c.parse(),_=ZC.DL.DA(c,n.C,h)):_=ZC.DL.DA(q,n.C,h),_.K=n.K+"-facet5",_.G0=fe(5),t.add(_)),n.A.FV&&se.push(ne+'--left" coords="'+g.F1()+'" />',ne+'--right" coords="'+v.F1()+'" />',ne+'--front" coords="'+f.F1()+'" '+n.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(h=[],te)for(B=0;B<=360;B+=5)h.push([k+ZC.EL(B)*ue+ae,W+n.F,R+ZC.EF(B)*ue+le]);else for(B=0;B<=360;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue+ae+pe,G+n.F+ZC.EL(B)*(ue/2)-he],h.push(p);if(Fe.bottom?((c=new ZC.CZ(n)).copy(q),c.append(Fe.bottom),c.parse(),d=ZC.DL.DA(c,n.C,h,!te)):d=ZC.DL.DA(q,n.C,h,!te),d.K=n.K+"-facet1",d.G0=fe(1),t.add(d),h=[],te)for(B=0;B<=360;B+=5)h.push([k+ZC.EL(B)*ue+ae,W,R+ZC.EF(B)*ue+le]);else for(B=0;B<=360;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue+ae+pe,G+ZC.EL(B)*(ue/2)-he],h.push(p);if(Fe.top?((c=new ZC.CZ(n)).copy(q),c.append(Fe.top),c.parse(),_=ZC.DL.DA(c,n.C,h,!te)):_=ZC.DL.DA(q,n.C,h,!te),_.K=n.K+"-facet2",_.G0=fe(3),t.add(_),h=[],te){for(B=ZC.CY(_e,de);B<=ZC.BR(_e,de);B+=1)h.push([k+ZC.EL(B)*ue+ae,W,R+ZC.EF(B)*ue+le]);for(h.push([k+ZC.EL(B)*ue+ae,W+n.F,R+ZC.EF(B)*ue+le]),B=ZC.BR(Be,Ee);B>=ZC.CY(Be,Ee);B-=1)h.push([k+ZC.EL(B)*ue+ae,W+n.F,R+ZC.EF(B)*ue+le])}else{for(B=0;B<=180;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue+ae+pe,G+n.F+ZC.EL(B)*(ue/2)-he],h.push(p);for(B=180;B>=0;B-=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue+ae+pe,G+ZC.EL(B)*(ue/2)-he],h.push(p)}Fe.front?((c=new ZC.CZ(n)).copy(j),c.append(Fe.front),c.parse(),f=ZC.DL.DA(c,n.C,h,!te)):f=ZC.DL.DA(j,n.C,h,!te),f.K=n.K+"-facet3",f.G0=fe(2),t.add(f),n.A.FV&&se.push(ne+'--front" coords="'+f.F1()+'" '+n.a11y()+' data-z-sort="-100" />',ne+'--top" coords="'+_.F1()+'" />');break;case"cone":if(h=[],te)for(B=0;B<=360;B+=5)h.push([k+ZC.EL(B)*ue*x+ae,W+u,R+ZC.EF(B)*ue*x+le]);else for(B=0;B<=360;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue*x+ae+pe,G+u+ZC.EL(B)*(ue/2)*x-he],h.push(p);if(Fe.bottom?((c=new ZC.CZ(n)).copy(q),c.append(Fe.bottom),c.parse(),d=ZC.DL.DA(c,n.C,h,!te)):d=ZC.DL.DA(q,n.C,h,!te),d.K=n.K+"-facet1",d.G0=fe(1),t.add(d),h=[],te){for(B=90+Ze;B<=270+Ze;B+=5)h.push([k+ZC.EL(B)*ue*x+ae,W+u,R+ZC.EF(B)*ue*x+le]);if(n.A.CG&&0!==L)for(B=270+Ze;B>=90+Ze;B-=5)h.push([k+ZC.EL(B)*ue*L+ae,W+Z,R+ZC.EF(B)*ue*L+le]);else h.push([k+ae,W+Z,R+le])}else{for(B=0;B<=180;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue*x+ae+pe,G+u+ZC.EL(B)*(ue/2)*x-he],h.push(p);if(n.A.CG&&0!==L)for(B=180;B>=0;B-=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue*L+ae+pe,G+Z+ZC.EL(B)*(ue/2)*L-he],h.push(p);else(p=new ZC.CE(n.C,0,0,0)).EC=[w+ae+pe,G+Z-he],h.push(p)}if(Fe.front?((c=new ZC.CZ(n)).copy(j),c.append(Fe.front),c.parse(),f=ZC.DL.DA(c,n.C,h,!te)):f=ZC.DL.DA(j,n.C,h,!te),f.K=n.K+"-facet2",f.G0=fe(2),t.add(f),n.A.CG&&0!==L){if(h=[],te)for(B=0;B<=360;B+=5)h.push([k+ZC.EL(B)*ue*L+ae,W+Z,R+ZC.EF(B)*ue*L+le]);else for(B=0;B<=360;B+=5)(p=new ZC.CE(n.C,0,0,0)).EC=[w+ZC.EF(B)*ue*L+ae+pe,G+Z+ZC.EL(B)*(ue/2)*L-he],h.push(p);Fe.top?((c=new ZC.CZ(n)).copy(q),c.append(Fe.top),c.parse(),_=ZC.DL.DA(c,n.C,h,!te)):_=ZC.DL.DA(q,n.C,h,!te),_.K=n.K+"-facet3",t.add(_),_.G0=fe(3)}n.A.FV&&se.push(ne+'--front" coords="'+f.F1()+'" data-z-sort="-100" />')}n.A.U&&n.A.U.AP&&n.H1()}n.paintPreview(j)}},A15:function(){}}),ZC.A6Y=ZC.ZM.CD({setup:function(){this.R2()},V7:function(){var e=this;e.paint(!0);var i=e.C.BM(e.A.BW("v")[0]),n=e.iX+(i.AW?0:e.I),t=e.iY+e.F/2,a=new ZC.CE(e.C,n-ZC.AM.E1,t-ZC.AM.E2,e.A.E["z-start"]);return[ZC._i_(a.EC[0]),ZC._i_(a.EC[1]),{reference:e,center:!0}]},AC6:function(e){var i=this,n=i.b(e);if("-1/-1"!==n.join("/")){var t=new ZC.CE(i.C,n[0]-ZC.AM.E1,n[1]-ZC.AM.E2,i.A.E["z-start"]);return[ZC._i_(t.EC[0]),ZC._i_(t.EC[1])]}return n},paint:function(e){var i=this;i.b(),void 0===e&&(e=!1);var n=i.C.CN,t=i.A.AZ,a=i.A.CQ;i.setup();var l,r,o,A,C,s,u,Z,c,p,h,f,_,d,g=i.A.SU(),v=g.AD,B=g.EV,E=g.CH,b=g.CU,D=g.F5,F=g.D5,m=g.F0;if(e?B=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=g.EV,i.A.CG){l=0;for(var Y=i.A.A.KH[B],M=0;M<Y.length;M++){var I=i.A.A.A4[Y[M]].S[i.L];I&&(l+=I.AC)}}var K=1,X=1;if(i.A.CG&&(i.CR!==i.AC&&(K=(l-i.CR+i.AC)/l),X=(l-i.CR)/l),a.AW){var x=K;K=X,X=x}i.A.LT&&(B=i.L);var L=i.iY-v/2+E+B*(F+D)-B*m;if(L=ZC._l_(L,i.iY-v/2+E,i.iY+v/2-b),i.A.D5>0){var P=F;(F=i.A.D5)<=1&&(F*=P),L+=(P-F)/2}var w=F,S=i.iX,y=null!==ZC._n_(i.A.LZ[i.L])?i.A.LZ[i.L]:0;if(S=i.A.CG&&"100%"===i.A.KT?a.AR(100*(i.CR+y)/i.A.A.F9[i.L]["%total-"+i.A.DZ]):a.AR(i.CR+y),i.A.CG?(o=S-(r="100%"===i.A.KT?a.AR(100*(i.CR-i.AC+y)/i.A.A.F9[i.L]["%total-"+i.A.DZ]):a.AR(i.CR-i.AC+y)),i.AC>0?S=r:o=ZC._a_(o),a.AW?o>0?(o=ZC._a_(o),S=r):S-=o=ZC._a_(o):o<0&&(S=r-(o=ZC._a_(o)))):S=(o=S-(r=a.AR(y)))<0?r-(o=ZC._a_(o)):r,E+b===0&&(L-=.5,w+=1),i.I=o,i.F=w,i.iX=S,i.iY=L,a.AW?i.AC>=a.HC?i.iXVal=S:i.iXVal=S+i.I:i.AC>=a.HC?i.iXVal=S+i.I:i.iXVal=S,!e){var G=S+o-ZC.AM.E1,O=L-ZC.AM.E2,N=0,V=ZC.AM.FE;null!==ZC._n_(i.A.o["z-start"])&&(N=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(V=ZC._i_(i.A.o["z-end"])-N),i.A.E["z-start"]=N,i.A.E["z-mid"]=N+V/2;var U=i.O=i.A.IJ(i,i.O);if(U.DF=i.K+"-3dfacet",i.A.HZ&&(i.H8(U),U.parse()),U.AP){var Q=new ZC.CZ(i);Q.copy(U),Q.A0=ZC.AO.JR(ZC.AO.GD(Q.A0)),Q.AE=ZC.AO.JR(ZC.AO.GD(Q.AE)),Q.BX=ZC.AO.JR(ZC.AO.GD(Q.BX));var k=new ZC.CZ(i);k.copy(U),k.A0=ZC.AO.JR(ZC.AO.GD(k.A0),15),k.AE=ZC.AO.JR(ZC.AO.GD(k.AE),15),k.BX=ZC.AO.JR(ZC.AO.GD(k.BX),15);var W=new ZC.CZ(i);W.copy(U);var R=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",J=ZC.Q.FP("poly",i.A.E9,i.O.IE)+'class="'+R+'" id="'+i.K,H=i.C.ES.true3d,z=i.F/2,T=V/2,j=K*z,q=X*z,$=X*T,ee=K*T;a.AW&&!i.A.CG?(C=i.AC>=0?0:i.I,A=i.AC>=0?i.I:0):(C=i.AC>=0?i.I:0,A=i.AC>=0?0:i.I);var ie=i.A.A.H3,ne=ZC.CY(T,z),te=i.C.ES["x-angle"],ae=i.C.ES.angle,le=ZC.EF(ae)*T,re=ZC.EL(ae)*T;H||(ne=ZC.CY(2*re,z));var oe=function(e){var n=-1,l=i.A.L,r=i.L,o=i.A.A.A4.length,A=i.A.S.length;switch((i.A.CG?"s":"")+(t.AW?"k":"")+(a.AW?"v":"")){case"":case"v":case"sv":n=10*(o-l)+1e4*r+e;break;case"k":case"skv":case"kv":n=10*(o-l)+1e4*(A-r)+e;break;case"s":n=10*l+1e4*r+e;break;case"sk":n=10*l+1e4*(A-r)+e}return ZC._i_(n)},Ae=i.A.o.facets||{};switch(i.A.CW){default:Ae.left?((s=new ZC.CZ(i)).copy(k),s.append(Ae.left),s.parse(),u=ZC.DL.DD(s,i.C,G-i.I+.1,G-.1,O+.1,O+.1,N+.1,N+V-.1,"x")):u=ZC.DL.DD(k,i.C,G-i.I+.1,G-.1,O+.1,O+.1,N+.1,N+V-.1,"x"),u.K=i.K+"-facet1",u.G0=oe(5),n.add(u),Ae.right?((s=new ZC.CZ(i)).copy(k),s.append(Ae.right),s.parse(),h=ZC.DL.DD(s,i.C,G-i.I+.1,G-.1,O+i.F-.1,O+i.F-.1,N+.1,N+V-.1,"x")):h=ZC.DL.DD(k,i.C,G-i.I+.1,G-.1,O+i.F-.1,O+i.F-.1,N+.1,N+V-.1,"x"),h.K=i.K+"-facet2",h.G0=oe(1),n.add(h),Ae.bottom?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.bottom),s.parse(),Z=ZC.DL.DD(s,i.C,G-i.I+.1,G-i.I+.1,O+i.F-.1,O+.1,N+.1,N+V-.1,"z")):Z=ZC.DL.DD(Q,i.C,G-i.I+.1,G-i.I+.1,O+i.F-.1,O+.1,N+.1,N+V-.1,"z"),Z.K=i.K+"-facet3",Z.G0=oe(2),n.add(Z),Ae.top?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.top),s.parse(),c=ZC.DL.DD(s,i.C,G-.1,G-.1,O+i.F-.1,O+.1,N+.1,N+V-.1,"z")):c=ZC.DL.DD(Q,i.C,G-.1,G-.1,O+i.F-.1,O+.1,N+.1,N+V-.1,"z"),c.K=i.K+"-facet4",c.G0=oe(3),n.add(c),Ae.front?((s=new ZC.CZ(i)).copy(W),s.append(Ae.front),s.parse(),p=ZC.DL.DD(s,i.C,G-i.I+.1,G-.1,O+i.F-.1,O+.1,N+.1,N+.1,"y")):p=ZC.DL.DD(W,i.C,G-i.I+.1,G-.1,O+i.F-.1,O+.1,N+.1,N+.1,"y"),p.K=i.K+"-facet5",p.G0=oe(4),n.add(p),i.A.FV&&(i.A.CG||ie.push(J+'--top" coords="'+c.F1()+'" />'),ie.push(J+'--left" coords="'+u.F1()+'" />',J+'--right" coords="'+h.F1()+'" />',J+'--front" coords="'+p.F1()+'" '+i.a11y()+' data-z-sort="-100" />'));break;case"pyramid":Ae.bottom?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.bottom),s.parse(),Z=ZC.DL.DD(s,i.C,G-C,G-C,O+z-j,O+z+j,T-ee,T+ee,"z")):Z=ZC.DL.DD(Q,i.C,G-C,G-C,O+z-j,O+z+j,T-ee,T+ee,"z"),Z.K=i.K+"-facet1",Z.G0=oe(a.AW&&!i.A.CG?6:1),n.add(Z),d=[[G-C,O+z-j,T-ee],[G-C,O+z+j,T-ee]],i.A.CG&&0!==X?d.push([G-A,O+z+q,T-$],[G-A,O+z-q,T-$]):d.push([G-A,O+z,V/2]),Ae.front?((s=new ZC.CZ(i)).copy(U),s.append(Ae.front),s.parse(),p=ZC.DL.DA(s,i.C,d)):p=ZC.DL.DA(U,i.C,d),p.K=i.K+"-facet2",p.G0=oe(3),n.add(p),d=[[G-C,O+z-j,T-ee],[G-C,O+z-j,T+ee]],i.A.CG&&0!==X?d.push([G-A,O+z-q,T+$],[G-A,O+z-q,T-$]):d.push([G-A,O+i.F/2,V/2]),Ae.left?((s=new ZC.CZ(i)).copy(k),s.append(Ae.left),s.parse(),u=ZC.DL.DA(s,i.C,d)):u=ZC.DL.DA(k,i.C,d),u.K=i.K+"-facet3",u.G0=oe(4),n.add(u),d=[[G-C,O+z+j,T-ee],[G-C,O+z+j,T+ee]],i.A.CG&&0!==X?d.push([G-A,O+z+q,T+$],[G-A,O+z+q,T-$]):d.push([G-A,O+z,V/2]),Ae.right?((s=new ZC.CZ(i)).copy(k),s.append(Ae.right),s.parse(),h=ZC.DL.DA(s,i.C,d)):h=ZC.DL.DA(k,i.C,d),h.K=i.K+"-facet4",h.G0=oe(2),n.add(h),i.A.CG&&0!==X&&(Ae.top?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.top),s.parse(),c=ZC.DL.DD(s,i.C,G-A,G-A,O+z-q,O+z+q,T-$,T+$,"z")):c=ZC.DL.DD(Q,i.C,G-A,G-A,O+z-q,O+z+q,T-$,T+$,"z"),c.K=i.K+"-facet5",c.G0=oe(5),n.add(c)),i.A.FV&&ie.push(J+'--left" coords="'+u.F1()+'" />',J+'--right" coords="'+h.F1()+'" />',J+'--front" coords="'+p.F1()+'" '+i.a11y()+' data-z-sort="-100" />');break;case"cylinder":if(d=[],H)for(f=0;f<=360;f+=5)d.push([G-i.I,O+ZC.EL(f)*ne+z,N+ZC.EF(f)*ne+T]);else for(f=0;f<=360;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+ZC.EF(f)*(ne/2)+le,L+z+ZC.EL(f)*ne-re],d.push(_);if(Ae.bottom?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.bottom),s.parse(),Z=ZC.DL.DA(s,i.C,d,!H)):Z=ZC.DL.DA(Q,i.C,d,!H),Z.K=i.K+"-facet1",Z.G0=oe(1),n.add(Z),d=[],H){for(f=90-te;f<=270-te;f+=5)d.push([G-i.I,O+ZC.EL(f)*ne+z,N+ZC.EF(f)*ne+T]);for(d.push([G,O+ZC.EL(f)*ne+z,N+ZC.EF(f)*ne+T]),f=270-te;f>=90-te;f-=5)d.push([G,O+ZC.EL(f)*ne+z,N+ZC.EF(f)*ne+T])}else{for(f=90;f<=270;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+ZC.EF(f)*(ne/2)+le,L+z+ZC.EL(f)*ne-re],d.push(_);for(f=270;f>=90;f-=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+ZC.EF(f)*(ne/2)+i.I+le,L+z+ZC.EL(f)*ne-re],d.push(_)}if(Ae.front?((s=new ZC.CZ(i)).copy(U),s.append(Ae.front),s.parse(),p=ZC.DL.DA(s,i.C,d,!H)):p=ZC.DL.DA(U,i.C,d,!H),p.K=i.K+"-facet2",p.G0=oe(2),n.add(p),d=[],H)for(f=0;f<=360;f+=5)d.push([G,O+ZC.EL(f)*ne+z,N+ZC.EF(f)*ne+T]);else for(f=0;f<=360;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+ZC.EF(f)*(ne/2)+i.I+le,L+z+ZC.EL(f)*ne-re],d.push(_);Ae.top?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.top),s.parse(),c=ZC.DL.DA(s,i.C,d,!H)):c=ZC.DL.DA(Q,i.C,d,!H),c.K=i.K+"-facet3",c.G0=oe(3),n.add(c),i.A.FV&&ie.push(J+'--front" coords="'+p.F1()+'" '+i.a11y()+' data-z-sort="-100" />',J+'--top" coords="'+c.F1()+'" />');break;case"cone":if(d=[],H)for(f=0;f<=360;f+=5)d.push([G-C,O+ZC.EL(f)*ne*K+z,ZC.EF(f)*ne*K+T]);else for(f=0;f<=360;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+A+ZC.EF(f)*(ne/2)*K+le,L+z+ZC.EL(f)*ne*K-re],d.push(_);if(Ae.bottom?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.bottom),s.parse(),Z=ZC.DL.DA(s,i.C,d,!H)):Z=ZC.DL.DA(Q,i.C,d,!H),Z.K=i.K+"-facet1",Z.G0=oe(1),n.add(Z),d=[],H){for(f=90-te;f<=270-te;f+=5)d.push([G-C,O+ZC.EL(f)*ne*K+z,ZC.EF(f)*ne*K+T]);if(i.A.CG&&0!==X)for(f=270-te;f>=90-te;f-=5)d.push([G-A,O+ZC.EL(f)*ne*X+z,ZC.EF(f)*ne*X+T]);else d.push([G-A,O+z,ne])}else{for(f=90;f<=270;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+A+ZC.EF(f)*(ne/2)*K+le,L+z+ZC.EL(f)*ne*K-re],d.push(_);if(i.A.CG&&0!==X)for(f=270;f>=90;f-=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+C+ZC.EF(f)*(ne/2)*X+le,L+z+ZC.EL(f)*ne*X-re],d.push(_);else(_=new ZC.CE(i.C,0,0,0)).EC=[S+C+le,L+z-re],d.push(_)}if(Ae.front?((s=new ZC.CZ(i)).copy(U),s.append(Ae.front),s.parse(),p=ZC.DL.DA(s,i.C,d,!H)):p=ZC.DL.DA(U,i.C,d,!H),p.K=i.K+"-facet2",p.G0=oe(2),n.add(p),i.A.CG&&0!==X){if(d=[],H)for(f=0;f<=360;f+=5)d.push([G-A,O+ZC.EL(f)*ne*X+z,ZC.EF(f)*ne*X+T]);else for(f=0;f<=360;f+=5)(_=new ZC.CE(i.C,0,0,0)).EC=[S+C+ZC.EF(f)*(ne/2)*X+le,L+z+ZC.EL(f)*ne*X-re],d.push(_);Ae.top?((s=new ZC.CZ(i)).copy(Q),s.append(Ae.top),s.parse(),c=ZC.DL.DA(s,i.C,d,!H)):c=ZC.DL.DA(Q,i.C,d,!H),c.K=i.K+"-facet3",c.G0=oe(3),n.add(c)}i.A.FV&&ie.push(J+'--front" coords="'+p.F1()+'" data-z-sort="-100" />')}}i.A.U&&i.A.U.AP&&i.H1()}},A15:function(){}}),ZC.A6Z=ZC.A30.CD({setup:function(){this.R2()},ABE:function(){return{color:this.O.B9}},Y3:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},AC6:function(e){var i=this,n=i.b(e);return new ZC.CE(i.C,n[0]-ZC.AM.E1,n[1]-ZC.AM.E2,i.A.E["z-start"]).EC},paint:function(){var e,i,n=this;n.b();var t,a=n.E.points;(t="none"!==n.A.J4?n.O=n.A.IJ(n,n.O):n.O).DF=n.K+"-3dfacet",n.A.HZ&&n.H8(t);var l=0,r=-1,o=ZC.AM.FE;if("hide"===n.C.getToggleAction())n.A.CG?r=0:(l=n.A.A.A4.length,r=n.A.L,o/=l);else if(n.A.CG)r=0;else{for(e=0;e<n.A.A.A4.length;e++)n.C.E["plot"+e+".visible"]&&r++;for(e=0;e<n.A.A.A4.length;e++)n.C.E["plot"+e+".visible"]&&(l++,n.A.L>e&&r--);o/=l,r=l-r-1}t.A0=t.AE=t.B9,"spline"===n.A.CW&&(t.BX=t.B9);var A=n.A.A.H3,C=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area",s=ZC.Q.FP("poly",n.A.E9,n.O.IE)+'class="'+C+'" '+n.a11y()+' id="'+n.K,u=r*o,Z=(r+1)*o;if(null!==ZC._n_(n.A.o["z-start"])&&(u=ZC._i_(n.A.o["z-start"])),null!==ZC._n_(n.A.o["z-end"])&&(Z=ZC._i_(n.A.o["z-end"])),null!==ZC._n_(n.A.o.depth)){var c=ZC._i_(n.A.o.depth);u=r*o+o/2-c,Z=r*o+o/2+c}n.A.E["z-plots"]=l,n.A.E["z-cnt"]=r,n.A.E["z-depth"]=o,n.A.E["z-start"]=u,n.A.E["z-mid"]=(u+Z)/2;var p,h,f,_=[],d=[],g=t;ZC._a_(u-Z)<=2&&(n.C.CN.SL[n.A.K]||(n.C.CN.SL[n.A.K]={zIndex:n.A.L,style:t,points:[]},n.C.CN.SL[n.A.K].style.ME=!1,n.C.CN.SL[n.A.K].style.B1=ZC.BR(1,ZC._i_(ZC._a_(u-Z)/1))));for(var v=0;v<a.length-1;v++){if(ZC._a_(u-Z)>2){var B=-ZC._i_(ZC.U4(Math.atan((a[v+1][1]-a[v][1])/(a[v+1][0]-a[v][0]))));(g=new ZC.CZ(n)).copy(t),g.A0=ZC.AO.JR(ZC.AO.GD(g.A0),B),g.AE=ZC.AO.JR(ZC.AO.GD(g.AE),B),g.BX=ZC.AO.JR(ZC.AO.GD(g.BX),B)}var E,b,D,F;if(n.A.oP0&&ZC._a_(u-Z)<=2?((E=n.A.oP0).parse(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,u),(b=n.A.oP1).parse(n.C,a[v+1][0]-ZC.AM.E1,a[v+1][1]-ZC.AM.E2,u),(D=n.A.oP2).parse(n.C,a[v+1][0]-ZC.AM.E1,a[v+1][1]-ZC.AM.E2,Z-1),(F=n.A.oP3).parse(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,Z-1)):(E=n.A.oP0=new ZC.CE(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,u),b=n.A.oP1=new ZC.CE(n.C,a[v+1][0]-ZC.AM.E1,a[v+1][1]-ZC.AM.E2,u),D=n.A.oP2=new ZC.CE(n.C,a[v+1][0]-ZC.AM.E1,a[v+1][1]-ZC.AM.E2,Z-1),F=n.A.oP3=new ZC.CE(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,Z-1)),ZC._a_(u-Z)>2?((p=new ZC.WD(g,n.C)).K=n.K+"-facet"+v,p.add(E),p.add(b),p.add(D),p.add(F),n.C.CN.add(p)):(n.C.CN.SL[n.A.K].points.push(E.EC),v===a.length-2&&n.C.CN.SL[n.A.K].points.push(b.EC),"spline"===n.A.CW&&(E=new ZC.CE(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,u-10),F=new ZC.CE(n.C,a[v][0]-ZC.AM.E1,a[v][1]-ZC.AM.E2,Z-1+10))),_.push(E.EC),d.push(F.EC),n.A.FV&&"spline"!==n.A.CW)if(ZC._a_(u-Z)>2)i=p.F1();else{for(h=ZC.AQ.Z1([E.EC,b.EC],4),f=0;f<h.length;f++)h[f][0]=Math.round(h[f][0]),h[f][1]=Math.round(h[f][1]);i=h.join(",")}"spline"!==n.A.CW&&n.A.FV&&A.push(s+"--face"+v+'" coords="'+i+'" />')}"spline"===n.A.CW?(n.E.polypoints=!0,n.E.points=_.concat(d.reverse())):n.E.points=null,n.A.A2.o&&("spline"===n.A.CW||"none"===n.A.A2.o.type||null!==ZC._n_(n.A.A2.o.visible)&&!ZC._b_(n.A.A2.o.visible))&&"spline"!==n.A.CW||n.PK(!0),n.A.U&&n.A.U.AP&&n.H1(),n.paintPreview(t,a)},A15:function(){}}),ZC.A70=ZC.A31.CD({setup:function(){this.R2()},ABE:function(){return{color:this.O.B9}},Y3:function(){return{"background-color":this.O.B9,"border-color":this.O.B9,color:this.O.C2}},AC6:function(e){var i=this,n=i.b(e);return new ZC.CE(i.C,n[0]-ZC.AM.E1,n[1]-ZC.AM.E2,i.A.E["z-start"]).EC},paint:function(){var e,i,n=this;n.b();var t=n.A.CQ,a=t.HC,l=t.AR(a);l=ZC._l_(l,t.iY,t.iY+t.F);var r,o=n.E.points,A=n.E.pointsarea;(r="none"!==n.A.J4?n.O=n.A.IJ(n,n.O):n.O).DF=n.K+"-3dfacet",n.A.HZ&&n.H8(r);var C=0,s=-1,u=ZC.AM.FE;if("hide"===n.C.getToggleAction())n.A.CG?s=0:(C=n.A.A.A4.length,s=n.A.L,u/=C);else if(n.A.CG)s=0;else{for(e=0;e<n.A.A.A4.length;e++)n.C.E["plot"+e+".visible"]&&s++;for(e=0;e<n.A.A.A4.length;e++)n.C.E["plot"+e+".visible"]&&(C++,n.A.L>e&&s--);u/=C,s=C-s-1}var Z=new ZC.CZ(n);Z.copy(r),Z.A0=Z.AE=r.B9,"spline"===n.A.CW&&(Z.BX=r.B9);var c=new ZC.CZ(n);c.copy(r),c.LB=!0,c.AU=0,c.C5=n.A.HS,c.A0=ZC.AO.PP(ZC.AO.GD(c.A0),30),c.AE=ZC.AO.PP(ZC.AO.GD(c.AE),30);var p,h,f=n.A.A.H3,_=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area",d=ZC.Q.FP("poly",n.A.E9,n.O.IE)+'class="'+_+'"'+n.a11y()+' id="'+n.K,g=[],v=[],B=s*u,E=(s+1)*u;if(null!==ZC._n_(n.A.o["z-start"])&&(B=ZC._i_(n.A.o["z-start"])),null!==ZC._n_(n.A.o["z-end"])&&(E=ZC._i_(n.A.o["z-end"])),null!==ZC._n_(n.A.o.depth)){var b=ZC._i_(n.A.o.depth);B=s*u+u/2-b,E=s*u+u/2+b}n.A.E["z-plots"]=C,n.A.E["z-cnt"]=s,n.A.E["z-depth"]=u,n.A.E["z-start"]=B,n.A.E["z-mid"]=(B+E)/2;var D=new ZC.WD(c,n.C);for(p=0,h=A.length;p<h;p++){var F=new ZC.CE(n.C,A[p][0]-ZC.AM.E1,A[p][1]-ZC.AM.E2,B);D.add(F)}n.C.CN.add(D),n.E.pointsarea=A,n.L===n.A.S.length-1&&((D=new ZC.WD(c,n.C)).add(new ZC.CE(n.C,n.iX-.5-ZC.AM.E1,n.iY-ZC.AM.E2,B)),D.add(new ZC.CE(n.C,n.iX-.5-ZC.AM.E1,l-ZC.AM.E2,B)),D.add(new ZC.CE(n.C,n.iX-.5-ZC.AM.E1,l-ZC.AM.E2,E-1)),D.add(new ZC.CE(n.C,n.iX-.5-ZC.AM.E1,n.iY-ZC.AM.E2,E-1)),D.K=n.K+"-facet99",n.C.CN.add(D));var m=r;for(ZC._a_(B-E)<=2&&(n.C.CN.SL[n.A.K]||(n.C.CN.SL[n.A.K]={zIndex:n.A.L,style:r,points:[]},n.C.CN.SL[n.A.K].style.ME=!1,n.C.CN.SL[n.A.K].style.B1=ZC.BR(1,ZC._i_(ZC._a_(B-E)/1)))),p=0;p<o.length-1;p++){if(ZC._a_(B-E)>2){var Y=-ZC._i_(ZC.U4(Math.atan((o[p+1][1]-o[p][1])/(o[p+1][0]-o[p][0]))));(m=new ZC.CZ(n)).copy(Z),m.A0=ZC.AO.JR(ZC.AO.GD(m.A0),Y),m.AE=ZC.AO.JR(ZC.AO.GD(m.AE),Y),m.BX=ZC.AO.JR(ZC.AO.GD(m.BX),Y)}var M=new ZC.CE(n.C,o[p][0]-ZC.AM.E1,o[p][1]-ZC.AM.E2,B),I=new ZC.CE(n.C,o[p+1][0]-ZC.AM.E1,o[p+1][1]-ZC.AM.E2,B),K=new ZC.CE(n.C,o[p+1][0]-ZC.AM.E1,o[p+1][1]-ZC.AM.E2,E-1),X=new ZC.CE(n.C,o[p][0]-ZC.AM.E1,o[p][1]-ZC.AM.E2,E-1);if(ZC._a_(B-E)>2?((D=new ZC.WD(m,n.C)).K=n.K+"-facet"+p,D.add(M),D.add(I),D.add(K),D.add(X),n.C.CN.add(D)):(n.C.CN.SL[n.A.K].points.push(M.EC),p===o.length-2&&n.C.CN.SL[n.A.K].points.push(I.EC),"spline"===n.A.CW&&(M=new ZC.CE(n.C,o[p][0]-ZC.AM.E1,o[p][1]-ZC.AM.E2,B-10),X=new ZC.CE(n.C,o[p][0]-ZC.AM.E1,o[p][1]-ZC.AM.E2,E-1+10))),g.push(M.EC),v.push(X.EC),n.A.FV&&"spline"!==n.A.CW)if(ZC._a_(B-E)>2)i=D.F1();else{for(var x=ZC.AQ.Z1([D.D[0].EC,D.D[1].EC],4),L=0;L<x.length;L++)x[L][0]=Math.round(x[L][0]),x[L][1]=Math.round(x[L][1]);i=x.join(",")}"spline"!==n.A.CW&&n.A.FV&&f.push(d+"--face"+p+'" coords="'+i+'" />')}"spline"===n.A.CW?(n.E.polypoints=!0,n.E.points=g.concat(v.reverse())):n.E.points=null,n.A.A2.o&&("none"===n.A.A2.o.type||null!==ZC._n_(n.A.A2.o.visible)&&!ZC._b_(n.A.A2.o.visible))&&"spline"!==n.A.CW||n.PK(!0),n.A.U&&n.A.U.AP&&n.H1(),n.paintPreview(r,o,A)},A15:function(){}}),ZC.A8A=ZC.LM.CD({$i:function(e){this.b(e),this.WO=0,this.WN=0},K2:function(e,i,n,t){var a=this,l=null;return l=a.A.L<a.A.A.A4.length-1?a.A.A.A4[a.A.L+1]:a.A.A.A4[0],a.CA=[["%paired-plot-text",l.AN],["%paired-node-value",l.S[a.L].AC],["%joined-value",a.WN],["%shared-value",null===ZC._n_(a.A.A.XD[a.L])?0:a.A.A.XD[a.L].area]],e=a.b(e,i,n,t)},setup:function(){var e=this,i=e.C.BM("scale"),n=e.L%i.H7,t=Math.floor(e.L/i.H7);e.iX=i.iX+n*i.GM+i.GM/2+i.BK,e.iY=i.iY+t*i.GH+i.GH/2+i.BJ,e.I3||(e.copy(e.A),e.E6=e.A.E6,e.DG()&&e.parse(!1),e.I3=!0),e.I=i.GM/2,e.F=i.GH/2},AC6:function(e){var i=this,n=e.I,t=e.F,a=i.iX-n/2,l=i.iY-t/2;if(3===i.A.A.A4.length)switch(i.A.L){case 0:a-=i.AI/4,l+=i.AI/8;break;case 1:a+=i.AI/4,l+=i.AI/8;break;case 2:l-=i.AI/4}else switch(i.A.L){case 0:a-=i.AI/4;break;case 1:a+=i.AI/4}return null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a+=e.BK,l+=e.BJ,[ZC._i_(a),ZC._i_(l)]},H1:function(){var e,i,n=this,t=n.b(),a=n.C.K+"-value-box "+n.C.K+"-plot-"+n.A.L+"-value-box zc-value-box";n.G.usc()?n.G.mc("top"):n.C.AJ["3d"]||n.G.KD?ZC.AL(n.C.K+"-plots-vb-c"):ZC.AL(n.C.K+"-plot-"+n.A.L+"-vb-c"),n.G.usc()?ZC.AL(n.C.A.K+"-top"):ZC.AL(n.C.A.K+"-text");if(null!==ZC._n_(t.o.joined)){if(0===n.A.L&&!n.C.E["plot1.visible"]||1===n.A.L&&!n.C.E["plot2.visible"]||2===n.A.L&&!n.C.E["plot0.visible"])return;n.A.L<n.A.A.A4.length-1?n.A.A.A4[n.A.L+1]:n.A.A.A4[0],e=n.A.A.E4[n.A.L][n.L].intxy,(i=new ZC.DQ(n)).copy(t),i.o.text=""+n.WN,i.append(t.o.joined),i.K2=function(e){return n.K2(e,{})},i.parse(),i.GN=a,i.K=n.K+"-value-box-join",i.Z=n.C.AEF,i.iX=e[0]-i.I/2,i.iY=e[1]-i.F/2,i.AP&&(i.paint(),i.EO())}if(null!==ZC._n_(t.o.shared)&&2===n.A.L){if(!n.C.E["plot0.visible"]||!n.C.E["plot1.visible"]||!n.C.E["plot2.visible"])return;e=n.A.A.XD[n.L].xy,(i=new ZC.DQ(n)).copy(t),i.o.text=""+n.A.A.H3[n.A.L],i.append(t.o.shared),i.K2=function(e){return n.K2(e,{})},i.parse(),i.GN=a,i.K=n.K+"-value-box-shared",i.Z=n.C.AEF,i.iX=e[0]-i.I/2,i.iY=e[1]-i.F/2,i.AP&&(i.paint(),i.EO())}},ABE:function(){return{color:this.B9}},Y3:function(){return{"background-color":this.BX,"border-color":this.BX,color:this.C2}},paint:function(){var e=this;if(e.A.L>=3)e.A.U&&e.H1();else{e.b();var i=e.O=e.A.IJ(e,e),n=new ZC.DT(e.A);n.K=e.K,n.Z=e.C.AEF,n.C8=e.C.AEG,n.copy(i);var t,a,l=e.iX,r=e.iY;n.iX=l,n.iY=r,n.AI=e.AI,n.DH="circle",n.E.plotidx=e.A.L,n.E.nodeidx=e.L,n.parse(),e.FS=n,e.A.GG&&!e.C.HM||(n.paint(),t=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area",a=ZC.Q.FP("circle",e.A.E9,e.A.IE)+'class="'+t+'" '+e.a11y()+' id="'+e.K+'" coords="'+ZC._i_(e.iX+ZC.MAPTX)+","+ZC._i_(e.iY+ZC.MAPTX)+","+ZC._i_(ZC.BR(ZC.mobile?6:3,e.AI)*(ZC.mobile?2:1.2))+'" />',e.A.A.H3.push(a),e.A.U&&e.H1())}},A15:function(e){}}),ZC.LM.prototype.N9=function(e,i){var n,t,a=this;if(void 0===i&&(i=!1),i)"undefined"!=typeof a.E.pointserror&&((n=new ZC.CZ(a)).copy(a.A),a.A.JC&&(n.copy(a.A.JC),n.append(a.A.JC.o["hover-state"])),n.parse(),n.K=a.K+"--error-hover",n.DF=a.A.A.A.K+"-node-errorbars",n.AP&&ZC.CO.paint(e,n,a.E.pointserror));else{var l=a.A.CQ,r=a.A.AZ;if(0!==a.A.S7.length){var o=null,A=null,C=!0;a.A.S7.length<=2?(null!==ZC._n_(a.A.S7[0])&&a.A.S7[0]instanceof Array&&(C=!1),null!==ZC._n_(a.A.S7[1])&&a.A.S7[1]instanceof Array&&(C=!1)):C=!1,C?(o=a.A.S7[0],A=a.A.S7[1]):null!==ZC._n_(t=a.A.S7[a.L])&&t instanceof Array&&(o=A=t[0],2===t.length&&(A=t[1])),a.E["node-error-plus"]=o,a.E["node-error-minus"]=A,-1!==(o+"").indexOf("%")&&(o=ZC.IO(o))<=1&&(o*=a.AC),-1!==(A+"").indexOf("%")&&(A=ZC.IO(A))<=1&&(A*=a.AC);var s=[],u=ZC.IO(a.A.JC&&a.A.JC.o.size||.5);u<=1&&(u="vbar"===a.A.AF?ZC._i_(u*a.I):"hbar"===a.A.AF?ZC._i_(u*a.F):ZC._i_(u*r.AD));var Z,c=0;if(c=r.CM?a.F:a.I,null!==ZC._n_(o)){var p=l.AR(a.CR+o);r.CM?(Z=l.AW?a.AC<0?a.iX+a.I:a.iX:a.AC>0?a.iX+a.I:a.iX,s.push([p,a.iY+c/2-u/2],[p,a.iY+c/2+u/2],null,[p,a.iY+c/2],[Z,a.iY+c/2])):(Z=l.AW?a.AC>0?a.iY+a.F:a.iY:a.AC<0?a.iY+a.F:a.iY,s.push([a.iX+c/2-u/2,p],[a.iX+c/2+u/2,p],null,[a.iX+c/2,p],[a.iX+c/2,Z]))}if(null!==ZC._n_(A)){var h=l.AR(a.CR-A);r.CM?(Z=l.AW?a.AC<0?a.iX+a.I:a.iX:a.AC>0?a.iX+a.I:a.iX,s.push(null,[h,a.iY+c/2-u/2],[h,a.iY+c/2+u/2],null,[h,a.iY+c/2],[Z,a.iY+c/2])):(Z=l.AW?a.AC>0?a.iY+a.F:a.iY:a.AC<0?a.iY+a.F:a.iY,s.push(null,[a.iX+c/2-u/2,h],[a.iX+c/2+u/2,h],null,[a.iX+c/2,h],[a.iX+c/2,Z]))}(n=new ZC.CZ(a)).copy(a.A),a.A.JC&&n.copy(a.A.JC),n.parse(),n.K=a.K+"--error",n.DF=a.A.A.A.K+"-node-errorbars",n.D0=!1,ZC.CO.paint(e,n,s),a.E.pointserror=s}}};var F4={$i:function(e){this.b(e);var i=this;i.G=i.A.A,i.BD="",i.V=[],i.BY=[],i.A4X=[],i.DE=!1,i.M=null,i.BQ=null,i.IV=null,i.D8=null,i.FZ=0,i.IG=null,i.G8=null,i.HC=0,i.P5=null,i.L=1,i.A9=0,i.A41=0,i.BU=0,i.AW=!1,i.CM=!1,i.AD=0,i.iStepMultiplier=1,i.DV=-1,i.RD=ZC.HG["thousands-separator"]||"",i.RY=ZC.HG["decimals-separator"]||".",i.A02=!1,i.SJ=2,i.A2R=!1,i.TN="",i.A05="standard",i.CL=null,i.AF="",i.EJ=ZC.MAX,i.M4=ZC.MAX,i.GP=!1,i.Y5=!1,i.KO=null,i.NP=null,i.Q7=[],i.E3=1,i.B0=-1,i.BF=-1,i.SK=-1,i.FQ=-1,i.GW=-1,i.BS="lin",i.DY=10,i.F7=null,i.P6=1,i.PZ=!0,i.A0F=!1,i.aAutoFit=[!1,!1],i.LW=null,i.WP=null,i.TF=!1,i.I6=-1,i.YK=!1,i.BA="default",i.Q3=!1,i.VG=!1,i.R6=1,i.sMaster="",i.bNormalize=!0,i.bAllowDuplicates=!1,i.fMinValueFactor=0,i.fMaxValueFactor=0},parse:function(){this.b();var e,i=this;if(null!==ZC._n_(e=i.o.step))if(ZC.PH(e))i.E3=ZC._f_(e);else{var n=e.replace(/[0-9]/gi,""),t=parseInt(e.replace(/[^0-9]/gi,""),10);switch(t=t||1,n){case"second":i.E3=1e3*t;break;case"minute":i.E3=1e3*t*60;break;case"hour":i.E3=1e3*t*60*60;break;case"day":i.E3=1e3*t*60*60*24;break;case"week":i.E3=1e3*t*60*60*24*7;break;case"month":i.E3=2629743e3*t;break;case"year":i.E3=31556926e3*t}}if(null!==ZC._n_(i.o.multiplier)&&null===ZC._n_(i.o.short)&&(i.o.short=i.o.multiplier),i.assign_a([["labels","BY"],["tooltip-text","A4X"],["format","CL"],["offset-start","A9","i"],["offset-start","A41","i"],["offset-end","BU","i"],["minor-ticks","FZ","i"],["step-multiplier","iStepMultiplier","i"],["index","L","i"],["mirrored","AW","b"],["zooming","GP","b"],["zoom-snap","Y5","b"],["fixed-step","Q3","b"],["zoom-to","KO"],["force-view","YK","b"],["zoom-to-values","NP"],["items-overlap","A0F","b"],["used","TF","b"],["max-labels","EJ","i"],["max-items","EJ","i"],["ref-value","HC","f"],["decimals","DV","ia"],["decimals-separator","RY"],["thousands-separator","RD"],["short","A2R","b"],["short-unit","TN"],["negation","A05"],["exponent","A02","b"],["exponent-decimals","SJ","ia"],["progression","BS"],["log-base","DY","fa"],["scale-factor","P6","fa"],["show-labels","LW"],["max-decimals","I6","i"],["placement","BA"],["factor","R6","f"],["master","sMaster"],["blended","VG","b"],["ranged","DE","b"],["normalize","bNormalize","b"],["allow-duplicates","bAllowDuplicates","b"],["min-value-factor","fMinValueFactor","f"],["max-value-factor","fMaxValueFactor","f"]]),"linear"===i.BS&&(i.BS="lin"),"logarithmic"===i.BS&&(i.BS="log"),"log"===i.BS&&(i.FZ=Math.max(0,i.DY-2),null!==ZC._n_(i.KO)&&"v"===i.AF&&(i.KO[0]=ZC.FU(i.KO[0],i.DY),i.KO[1]=ZC.FU(i.KO[1],i.DY))),null!==ZC._n_(e=i.o["auto-fit"])&&(e.length?(i.aAutoFit[0]=ZC._b_(e[0]),i.aAutoFit[1]=ZC._b_(e[e.length-1])):i.aAutoFit[0]=i.aAutoFit[1]=ZC._b_(e)),"string"==typeof i.BY){var a=i.BY.split(":"),l=1;3===a.length&&(l=ZC._f_(a[2])),i.BY=[];for(var r=ZC._f_(a[0]);r<ZC._f_(a[1]);r+=l)i.BY.push(""+r);i.BY.push(""+a[1])}null!==ZC._n_(i.o["fixed-items"])&&(i.EJ=ZC.MAX),i.EJ=ZC.BR(i.EJ,2),null!==ZC._n_(e=i.o.offset)&&(i.A9=i.BU=ZC._i_(e),0!==ZC._i_(e)||"mixed"!==i.A.AF&&"mixed3d"!==i.A.AF||(i.DE=!1)),null!==ZC._n_(e=i.o["max-ticks"])?i.M4=ZC._i_(e):i.M4=i.EJ,i.M4=ZC.BR(2,i.M4),null!==ZC._n_(e=i.o.transform)&&(i.F7=new ZC.CZ,i.F7.append(e));var o=i.A.A.B6,A="("+i.A.AF+")",C=i.BD.replace(/\-[0-9]/,""),s=i.BD.replace(/\-[0-9]/,"-n");function u(e){var n=[A+".SCALE."+e,A+"."+i.BD+"."+e,A+"."+C+"."+e,A+"."+C+"["+i.BA+"]."+e,A+"."+s+"."+e];return i.A.AJ["3d"]&&(n=n.concat([A+".SCALE[3d]."+e,A+"."+i.BD+"[3d]."+e,A+"."+C+"[3d]."+e,A+"."+s+"[3d]."+e])),n}if(null===ZC._n_(i.o.placement)&&i.L>1&&(i.BA="opposite"),null!==ZC._n_(e=i.o.markers))for(var Z=0,c=e.length;Z<c;Z++){var p=new ZC.A0N(i);p.L=Z,p.K=i.K+"-marker-"+Z,o.load(p.o,u("marker")),p.append(e[Z]),p.parse(),i.Q7.push(p)}i.P5=new ZC.CZ(i),o.load(i.P5.o,u("ref-line")),i.P5.append(i.o["ref-line"]),"k"===i.AF&&(i.P5.AP=!1),i.P5.parse(),i.M=new ZC.DQ(i),o.load(i.M.o,u("label")),i.M.append(i.o.label),i.M.K=i.K+"-label",i.M.parse(),i.BQ=new ZC.DQ(i),o.load(i.BQ.o,u("item")),i.BQ.append(i.o.item),i.BQ.K=i.K+"-item",i.BQ.parse(),i.IV=new ZC.CZ(i),o.load(i.IV.o,u("tick")),i.IV.append(i.o.tick),i.IV.parse(),i.D8=new ZC.CZ(i),o.load(i.D8.o,u("guide")),i.D8.append(i.o.guide),i.D8.parse(),null===ZC._n_(i.D8.o.items)&&"-1"!==i.D8.A0&&"-1"!==i.D8.AE&&i.D8.A0!==i.D8.AE&&(i.D8.o.items=[{alpha:i.D8.C5,"background-color":i.D8.A0},{alpha:i.D8.C5,"background-color":i.D8.AE}]),i.IG=new ZC.CZ(i),o.load(i.IG.o,u("minor-tick")),i.IG.append(i.o["minor-tick"]),i.IG.parse(),i.G8=new ZC.CZ(i),o.load(i.G8.o,u("minor-guide")),i.G8.append(i.o["minor-guide"]),i.G8.parse(),i.A5E()},A5E:function(){var e,i=this,n={x:"iX",y:"iY",width:"I",height:"F"};for(var t in n){var a=i.A.P[n[t]];null!==ZC._n_(i.o[t])&&(a=ZC.IO(i.o[t]))>=0&&a<=1&&(a="x"===t||"y"===t?i.A.P["x"===t?"iX":"iY"]+ZC._i_(a*i.A.P["x"===t?"I":"F"]):ZC._i_(a*i.A.P[n[t]])),i[n[t]]=a}null!==ZC._n_(e=i.o.offset)&&(i.A9=i.BU=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-start"])&&(i.A9=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-end"])&&(i.BU=ZC._f_(ZC._p_(e)));var l="k"===i.AF&&!i.CM||"v"===i.AF&&i.CM?i.I:i.F;i.A9<1&&(i.A9*=l),i.BU<1&&(i.BU*=l)},Z5:function(e){var i=this;null!==ZC._n_(i.o.rules)&&(i.WP||(i.WP=new ZC.F4(i.A)),i.WP.append(i.o),i.WP.parse(),i.WP.IQ=e,i.WP.DG()&&(i.WP.parse(),i.DV=i.WP.DV,i.CL=i.WP.CL))},J6:function(){},A8D:function(){},ACA:function(){},AA0:function(){},clear:function(){},build:function(){},MU:function(){var e,i=this,n={negation:i.A05,"thousands-separator":i.RD,"decimals-separator":i.RY,decimals:i.DV,"max-decimals":i.I6,short:i.A2R,"short-unit":i.TN,exponent:i.A02,"exponent-decimals":i.SJ,locale:i.G.UG};if(i.F7)switch(i.F7.o.type){case"date":n["transform-date"]=!0,null!==ZC._n_(e=i.F7.o.text)&&(i.F7.o.all=e);var t=i.V[i.A1]-i.V[i.W],a="",l="",r={},o=["msecond","second","minute","hour","day","month","year"];for(var A in o)r[o[A]]=ZC.HG["date-formats"][o[A]];l=0<=t&&t<=1e3?"msecond":1e3<t&&t<=36e5?"second":36e5<t&&t<=864e5?"minute":864e5<t&&t<=26784e5?"hour":26784e5<t&&t<=316224e5?"day":316224e5<t&&t<=632448e6?"month":"year",a=null!==ZC._n_(i.F7.o[l])?i.F7.o[l]:null!==ZC._n_(i.F7.o.all)?i.F7.o.all:r[l],i.E.dateformat=a,n["transform-date-format"]=i.E.dateformat}return n},A0Q:function(){for(var e=this,i=e.A.AY.A4,n=-1,t=0,a=i.length;t<a;t++){var l=i[t].BW(e.AF);if(-1!==ZC.AV(l,e.BD)){switch(i[t].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":n=i[t].A0;break;case"scatter":case"bubble":n=-1!==i[t].A2.A0?i[t].A2.A0:i[t].A0;break;default:n=i[t].B9}break}}return n},paint:function(){var e=this;e.build(),e.A.AJ["3d"]||e.b()},N1:function(e,i,n,t){var a=this;if(null===ZC._n_(t)&&(t=5),a.A.AJ["3d"]){var l=new ZC.CE(a.A,e.iX+e.I/2-ZC.AM.E1,e.iY+e.F/2-ZC.AM.E2,0+e.A99);e.iX=l.EC[0]-e.I/2+("v"===n?"default"===a.BA?-t:t:0),e.iY=l.EC[1]-e.F/2+("h"===n?"default"===a.BA?t:-t:0);var r=ZC.DL.A38(a.A,e);null===ZC._n_(i)&&(i=e.AA,e.AA%90==0&&(i+=e.VA?0:r)),e.AA=i}return i},X8:function(e,i,n){var t=this,a=(n.items,n.lcoords),l=n.lstep,r=n.tdim,o=n.mdim,A=n.dim,C=(n.html,[e.iX+e.BK,e.iY+e.BJ,e.I,e.F]),s=ZC._a_(e.AA%180),u=!1;s%360!=0&&(u=!0),u&&(C=[e.iX+e.BK+e.I/2-e.F/2,e.iY+e.BJ+e.F/2-e.I/2,e.F,e.I]);var Z=!0;if(e.AP){if(!t.A0F)if("log"===t.BS||i!==t.W&&i!==t.A1){i%l==0&&(Z=!0);for(var c=0,p=a.length;c<p;c++)if(ZC.AQ.VD({x:C[0],y:C[1],width:C[2],height:C[3]},{x:a[c][0],y:a[c][1],width:a[c][2],height:a[c][3]})){Z=!1;break}}else Z=!0;Z&&(a.push(C),e.paint(),0,o=ZC.BR(o,1.5*e.DI*(e.AN||"").split("<br>").length),"h"===A?(r+=e.F,o=ZC.BR(o,ZC._a_(ZC.EL(s))*ZC.BR(e.I,e.F))):"w"===A&&(r+=e.I,o=ZC.BR(o,ZC._a_(ZC.EF(s))*ZC.BR(e.I,e.F))),e.EO())}return{tdim:r,mdim:o,overlaps:!Z}},VL:function(e,i){var n=this;if("v"===n.AF&&(n.HC!==n.B0&&n.HC!==n.BF||(null===ZC._n_(n.o["ref-line"])||null!==ZC._n_(n.o["ref-line"])&&null===ZC._n_(n.o["ref-line"].visible))&&(n.P5.AP=!1)),n.P5.K=n.K+"-ref-line",n.V.length>0&&n.P5.AP&&!n.A.AJ["3d"]&&n.P5.B1>0){"inherit"===n.P5.o["line-color"]&&-1!==i&&(n.P5.B9=i);var t=n.HC;if("k"===n.AF&&!n.CM||"v"===n.AF&&n.CM){var a=n.AR(t);a>=n.iX&&a<=n.iX+n.I&&ZC.CO.paint(e,n.P5,[[a,n.iY],[a,n.iY+n.F]])}else{var l=n.AR(t);l>=n.iY&&l<=n.iY+n.F&&ZC.CO.paint(e,n.P5,[[n.iX,l],[n.iX+n.I,l]])}}},paint_:function(){},XV:function(){for(var e=this,i=0,n=e.Q7.length;i<n;i++)e.V.length>0&&e.Q7[i].paint()},gc:function(){ZC.AO.gc(this,["V","BY","Z","C8","D8","BQ","M","G8","IG","P5","IV","IQ","o","IB","J2","A","G"])}};ZC.F4=ZC.HU.CD(F4);var ZN={$i:function(e){this.b(e);var i=this;i.EI=!1,i.AF="k",i.D4=-1,i.DP=-1,i.W=-1,i.A1=-1,i.V0=1,i.DV=null,i.OR=0,i.A4L=!1,i.NW=!1,i.U9={},i.IU=[],i.iMinOffset=0,i.aForcedMinMax=[null,null,1]},zoomTo:function(e,i){var n=this;if(n.GP){null!==ZC._n_(e)?n.W=e:n.W=n.D4,null!==ZC._n_(i)?n.A1=i:n.A1=n.DP;var t=n.IU;if(t.length>0?(n.B0=ZC.AV(t,n.V[n.W]),n.BF=ZC.AV(t,n.V[n.A1])):(n.B0=n.V[n.W],n.BF=n.V[n.A1]),n.G.H6.C||(n.G.H6.C=n.A),n.A.H6&&null!==ZC._n_(n.A.H6.o.shared)&&ZC._b_(n.A.H6.o.shared)&&n.A.K===n.G.H6.C.K)for(var a=0,l=n.G.AG.length;a<l;a++){var r=n.G.AG[a];if(r.K!==n.A.K&&null!==ZC._n_(r.H6.o.shared)&&ZC._b_(r.H6.o.shared)){var o=r.BM(n.BD);o&&o.GP&&(e=Math.max(o.D4,Math.min(o.DP,n.W)),i=Math.max(o.D4,Math.min(o.DP,n.A1)),o.zoomTo(e,i),ZC.AL(r.K)&&(r.clear(!0),r.E["shared-zoom"]=!0,r.paint(),r.B7&&r.B7.update(e,i,null,null,!0)))}}n.J6()}},zoomToV:function(e,i){var n=this;null!==ZC._n_(e)?n.B0=e:n.B0=n.FQ,null!==ZC._n_(i)?n.BF=i:n.BF=n.GW,n.QN(n.B0,n.BF,null===ZC._n_(e)&&null===ZC._n_(i))},FT:function(L,J,ET,bKeep,AC){var s=this,CV="";J?(CV=J.S[L].BV,s.F7&&"date"===s.F7.o.type||"number"==typeof CV||(null!==ZC._n_(s.BY[CV])?CV=s.BY[CV]:null!==ZC._n_(s.V[CV])&&(CV=s.V[CV]))):CV="log"===s.BS&&bKeep?L+1:null!==ZC._n_(s.BY[L])?s.BY[L]:s.V[L],"number"==typeof CV&&null!==ZC._n_(s.IU[CV])&&(CV=s.IU[CV]),null!==ZC._n_(AC)&&(CV=AC);var OU=ZC.PH(CV)&&ZC._f_(CV)<0,BC=s.MU();if(ZC._cp_(ET,BC),OU&&"currency"===BC.negation&&(CV=ZC._a_(ZC._f_(CV))),BC.utc=s.A.UK,BC.timezone=s.A.NE,CV=ZC.AO.G5(CV,BC,s,!0),s.CL)if("()"===s.CL.substring(s.CL.length-2)||"javascript:"===s.CL.substring(0,11))try{var ED=s.CL.replace("javascript:","").replace("()","");eval(ED)&&(CV=eval(ED).call(s,CV))}catch(e){}else CV=OU&&"currency"===BC.negation?"-"+s.CL.replace(/%v|%scale-value/g,CV):s.CL.replace(/%v|%scale-value/g,CV);return CV},K2:function(e,i,n,t,a){var l=this,r=l.FT(i,n,t,a),o=[];o.push(["%scale-label",r],["%scale-index",i],["%scale-position",i]),l.F7&&"date"===l.F7.o.type?o.push(["%scale-value",r],["%v",r]):"log"===l.BS&&a?o.push(["%scale-value",Math.pow(l.DY,i)],["%v",Math.pow(l.DY,i)]):o.push(["%scale-value",ZC._c_(l.V[i],"")],["%v",ZC._c_(l.V[i],"")]),o.push(["%l",r],["%t",r],["%i",i],["%c",i]),o.sort(ZC.A1Q);for(var A=0,C=o.length;A<C;A++){var s=new RegExp(o[A][0],"g");e=e.replace(s,o[A][1])}return e},A8D:function(){var e=this,i=ZC.BR(e.V.length,e.BY.length),n=0;if(i>0&&e.BQ.AA%180==0){for(var t=ZC.BR(1,ZC._i_(i/20)),a=0,l=0;l<i;l+=t){for(var r=((e.BY[l]||e.V[l])+"").split(/<br>|<br\/>|<br \/>|\n/),o=0,A=0,C=r.length;A<C;A++)o=ZC.BR(o,11*r[A].replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"").length);n+=o,a++}n=.75*n/Math.max(1,a)}else n=15;e.CM?e.EJ=ZC._i_((e.F-e.A9-e.BU)/15):e.EJ=ZC._i_((e.I-e.A9-e.BU)/n),e.EJ=ZC.CY(e.EJ,20),(e.BF-e.B0)/e.E3+1<e.EJ?e.EJ=ZC.BR(e.EJ,ZC._i_((e.BF-e.B0)/e.E3)+1):(e.BF-e.B0)/(2*e.E3)+1<e.EJ&&(e.EJ=ZC.BR(e.EJ,ZC._i_((e.BF-e.B0)/(2*e.E3))+1)),e.EJ=ZC.BR(2,e.EJ)},ACA:function(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.M4=e.EJ)},AA0:function(e){var i,n,t,a,l,r=this;if(1===e&&r.o.transform&&"date"===r.o.transform.type&&(null===ZC._n_(r.o.transform.uniform)||ZC._b_(r.o.transform.uniform)||(r.NW=!0)),1===e&&null!==ZC._n_(r.o.values))if(r.V=[],"object"==typeof r.o.values)for(r.V=r.o.values,0===r.BY.length&&(r.BY=r.V),t=0,a=r.V.length;t<a;t++)"string"==typeof r.V[t]&&(r.A4L=!0,r.IU.push(r.V[t]));else{var o=r.o.values.split(":"),A=r.E3;if(3===o.length&&(A=ZC._f_(o[2])),r.E3=r.SK=A,ZC._f_(o[0])>ZC._f_(o[1])){var C=o[0];o[0]=o[1],o[1]=C}if(A<=0&&(A=1),o.length>1){for(var s=0,u=0,Z=0,c=(""+A).split("."),p=ZC._f_(o[0]);p<=ZC._f_(o[1]);p+=A){var h=(""+p).split(".");c.length>1&&h.length>1&&c[1].length>0&&h[1].length>=9&&ZC._a_(h[1].length-c[1].length)>2?(s+=c[1].length,u=ZC.BR(u,c[1].length),Z++,null!==(l=ZC._n_(r.o.decimals))?r.V.push(ZC._f_(Number(p).toFixed(ZC._i_(l)))):r.V.push(ZC._f_(ZC._fixed_(Number(p),c[1].length))),p=ZC._f_(ZC._fixed_(Number(p),c[1].length))):(s+=h[1]?h[1].length:0,u=ZC.BR(u,h[1]?h[1].length:0),Z++,null!==(l=ZC._n_(r.o.decimals))?r.V.push(ZC._f_(Number(p).toFixed(ZC._i_(l)))):r.V.push(p))}null===ZC._n_(r.o.decimals)&&(s=Math.ceil(s/Z),r.DV=ZC._a_(u-s)<=1?u:s)}}if(2===e){var f=0,_=[];0===r.V.length?(i=ZC.MAX,n=-ZC.MAX):(i=r.V[0],n=r.V[r.V.length-1]);var d,g,v=r.A.AY.A4,B=!1;for(t=0,a=v.length;t<a;t++){var E=v[t].BW();if(-1!==ZC.AV(E,r.BD)){for(var b=0===_.length,D=0,F=v[t].S.length;D<F;D++)if(v[t].S[D])if(null!==v[t].S[D].BV){var m=v[t].S[D].BV;i=ZC.CY(i,m),n=ZC.BR(n,m),r.NW&&b&&_.push(m),r.EI=!0,v[t].EI=!0}else B=!0;else r.NW&&b&&_.push("");v[t].EI||(f=ZC.BR(f,v[t].S.length))}}if(null!==ZC._n_(r.o.values))for(t=0;t<r.V.length;t++)null===r.V[t]&&(r.V[t]="");if(null!==ZC._n_(r.o.labels))for(t=0;t<r.BY.length;t++)null===r.BY[t]&&(r.BY[t]="");if(f>r.V.length&&r.V.length>0&&!r.EI)for(t=r.V.length;t<f;t++);var Y=0;for(t=0;t<v.length;t++)v[t].LT&&(-1===v[t].R9&&(v[t].R9=Y),Y++,r.DE=!0);if(0===r.V.length)for(t=0;t<Y;t++)r.V.push(t),r.BY.push(t);if(0===r.V.length)if(r.EI)B&&i>0&&(i=0),B&&n<f-1&&(n=f-1),null!==ZC._n_(r.o["min-value"])&&(i=ZC._f_(r.o["min-value"])),null!==ZC._n_(r.o["max-value"])&&(n=ZC._f_(r.o["max-value"])),n-i<r.E3&&n-i>0&&(r.E3=Math.pow(10,Math.floor(ZC.FU(n-i)/Math.LN10))),r.NW||r.QN(i,n,!0),0===i&&0===n&&"0,1"===r.V.join(",")&&(r.V=[0]);else if(null!==ZC._n_(r.o["max-value"])){d=0,g=0,null!==ZC._n_(r.o["min-value"])&&(d=ZC._f_(r.o["min-value"])),g=ZC._f_(r.o["max-value"]),t=0;var M=d;if(r.F7&&null!==ZC._n_(r.F7.o.type))switch(r.F7.o.type){case"date":r.E3=r.A1Y(d,g)}else(g-d)/r.E3>1e4&&(r.E3=Math.pow(10,ZC.BR(1,ZC._i_(ZC.FU(ZC._a_(g-d),10)-4))));for(;M<g;)M=r.A.A2P(t*r.E3+d),null===ZC._n_(r.V[t])&&(r.V[t]=M),t++}else if(g=(d=null!==ZC._n_(r.o["min-value"])?ZC._f_(r.o["min-value"]):0)+(f-1)*r.E3,"log"===r.BS)r.QN(d,g,!0);else for(t=0;t<f;t++)null===ZC._n_(r.V[t])&&(r.V[t]=r.A.A2P(t*r.E3+d));r.NW&&r.EI&&(r.V=[].concat(_),r.BY=[].concat(_))}if(r.NW)for(r.U9={},t=0,a=r.BY.length;t<a;t++)r.U9[r.BY[t]]=t;if(r.W=0,r.A1=r.V.length-1,r.D4=0,r.DP=r.V.length-1,r.IU.length>0?(r.B0=r.W,r.BF=r.A1):(r.B0=ZC._f_(r.V[r.W]),r.BF=ZC._f_(r.V[r.A1])),r.NP){-1===ZC.AV(r.V,r.NP[0])&&ZC.PH(r.NP[0])&&null!==ZC._n_(r.V[0])&&-1!==r.SK&&(r.NP[0]=r.V[0]+r.SK*Math.floor((r.NP[0]-r.V[0])/r.SK)),-1===ZC.AV(r.V,r.NP[1])&&ZC.PH(r.NP[1])&&null!==ZC._n_(r.V[0])&&-1!==r.SK&&(r.NP[1]=r.V[0]+r.SK*Math.ceil((r.NP[1]-r.V[0])/r.SK));var I=ZC.AV(r.V,r.NP[0]),K=ZC.AV(r.V,r.NP[1]);r.KO=[-1===I?0:I,-1===K?r.V.length-1:K]}r.KO&&-1!==r.W&&-1!==r.A1&&((r.KO[0]>r.A1||r.KO[0]<r.W)&&(r.KO[0]=r.W),(r.KO[1]>r.A1||r.KO[1]<r.W)&&(r.KO[1]=r.A1));var X=r.G.E["graph"+r.A.L+".zoom"];if(null===ZC._n_(r.G.E.preservezoom)||r.G.E.preservezoom){var x=1===r.L?"":"-"+r.L;void 0!==X&&null!==ZC._n_(X["xmin"+x])&&null!==ZC._n_(X["xmax"+x])&&(r.KO=[X["xmin"+x],X["xmax"+x]])}else r.G.E["graph"+r.A.L+".zoom"]={};r.KO&&(r.A.ZE=!0)},QN:function(e,i,n){var t,a,l,r,o=this,A=!1,C=null!==ZC._n_(o.o.step)&&-1!==(""+o.o.step).indexOf("month");if(o.F7&&null!==ZC._n_(o.F7.o.type))switch(o.F7.o.type){case"date":var s=o.A1Y(e,i);(i-e)%s!=0&&(C||(i+=s-(i-e)%s)),t=[e,i,s,1,s],A=!0}else if("log"===o.BS)t=[e,i,1,1,1];else{var u=null!==ZC._n_(o.o.step)||null!==ZC._n_(o.o["min-value"])||null!==ZC._n_(o.o["max-value"]);t=e!==i?ZC.AQ.WI(e,i,o.E3,o.P6,u):[e,i,o.E3,1,o.E3]}-1===o.SK&&(o.SK=t[4]);var Z=t[0],c=t[1];r=t[2],n&&"log"===o.BS&&(Z=Math.floor(ZC.FU(Z,o.DY)),c=Math.ceil(ZC.FU(c,o.DY))),null===ZC._n_(o.o.step)&&(c-Z)/r>1e4&&(r=(c-Z)/1e4,l=Math.ceil(ZC.FU(r)/Math.LN10),r=Math.pow(10,l)),null===ZC._n_(o.o["min-value"])&&Z!==c&&(A&&C||(Z-=Z%r)),null===ZC._n_(o.o["max-value"])&&Z!==c&&(A&&C||(c=c-c%r+(c%r==0?0:r))),l=Math.floor(ZC.FU(r)/Math.LN10);var p,h=t[3];if(l<h&&l<0&&(h=l),"log"===o.BS&&(h=ZC.BR(1,h)),o.V=[],A&&C){var f=ZC.AO.YF(Z,"%Y-%n-%d-%H-%i-%s",!1,0).split("-"),_=new Date(Z).getTimezoneOffset(),d=!0,g=ZC._i_((""+o.o.step).replace("month",""));0===g&&(g=1);var v=ZC._i_(f[1]),B=ZC._i_(f[0]);for(o.V.push(Z);d&&Z!==c;){d=!1;var E=ZC._i_(f[2]);v+g>=12&&B++,v=(v+g)%12,(31===E&&(3===v||5===v||8===v||10===v)||E>28&&1===v)&&(E=1===v?B%4==0&&B%100!=0||B%400==0?29:28:30);var b=new Date(B,v,E,ZC._i_(f[3]),ZC._i_(f[4]),ZC._i_(f[5])),D=b.getTimezoneOffset(),F=b.getTime()+6e4*(_-D);o.V.push(F),F<c&&F<=i&&(d=!0)}}else if(n){o.FQ=e,o.GW=i,o.V0=ZC._i_((c-Z)/r);var m=Math.floor(ZC.FU(ZC._a_(r))/Math.LN10),Y=m<0?ZC._a_(m):0;if(0===Y){var M=(""+r).split(".");2===M.length&&(Y=M[1].length)}for((c-Z)%r!=0&&(c-=(c-Z)%r)<i&&(c=c-(c-Z)%r+r),a=Z;a<=c+Number.MIN_VALUE;a+=r){var I,K;p=a;var X=o.DV;if("log"===o.BS)for(var x=!0;x;)x=!1,K=I=Math.pow(o.DY,p),I=ZC._f_(ZC._fixed_(I,X)),K<1&&K!==I&&ZC.BR(K,I)/ZC.CY(K,I)>1.005&&(x=!0,++X>ZC.CY(20,-1===o.I6?99:o.I6)&&(x=!1));else I=null!==X?ZC._f_(ZC._fixed_(p,Math.max(X,Y))):ZC._f_(ZC._fixed_(p,Y));o.V.push(I)}}else for(r=ZC._f_((i-e)/o.V0),a=0;a<=o.V0;a++)p=e+r*a,h<0&&(p=ZC._f_(p.toFixed(-h))),o.V.push(p);o.W=0,o.A1=o.V.length-1,o.D4=0,o.DP=o.V.length-1,o.B0=ZC._f_(o.V[o.W]),o.BF=ZC._f_(o.V[o.A1])},A1Y:function(e,i,n){void 0===n&&(n=!1);var t=i-e,a=Math.floor(ZC.FU(t)/Math.LN10);return null===ZC._n_(this.o.step)||n?a<=3?1:4===a?1e3:5===a?1e4:6===a?2e4:7===a?3e4:8===a?6e4:9===a?6e5:10===a?12e5:11===a?18e5:36e5:this.E3},parse:function(){this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null!==ZC._n_(this.o.values)&&(this.TF=!0)}};ZC.ZN=ZC.F4.CD(ZN);var WA={$i:function(e){this.b(e);var i=this;i.AF="v",i.W=-1,i.A1=-1,i.V0=0,i.DV=null,i.KT="normal",i.JP=[],i.bExtendMinValue=!0,i.bExtendMaxValue=!0},zoomTo:function(e,i){var n,t,a=this;if(a.GP){if(null!==ZC._n_(e)?a.B0=e:a.B0=a.FQ,null!==ZC._n_(i)?a.BF=i:a.BF=a.GW,("piano"===a.A.AF||a.Q3)&&(a.B0=ZC._i_(a.B0),a.BF=ZC._i_(a.BF),a.B0===a.BF&&(a.B0=Math.floor(a.B0),a.BF=a.B0+a.E3)),a.QN(a.B0,a.BF,!1),"lin"!==a.BS&&"log"!==a.BS){var l=ZC.evalFn(a.BS,window);l&&l.valueToCoord&&l&&l.values&&(a.V=l.values.call(a,{x:a.iX,y:a.iY,width:a.I,height:a.F,offsetStart:a.A9,offsetEnd:a.BU,inversed:a.CM,mirrored:a.AW,minValue:a.B0,maxValue:a.BF,minValue_:a.FQ,maxValue_:a.GW}),a.W=0,a.A1=a.V.length-1)}var r=a.A.BW("v");for(n=0;n<r.length;n++)r[n].BD!==a.BD&&r[n].sMaster===a.BD&&r[n].zoomTo(e,i);if(""===a.sMaster){if(a.G.H6.C||(a.G.H6.C=a.A),a.A.H6&&null!==ZC._n_(a.A.H6.o.shared)&&ZC._b_(a.A.H6.o.shared)&&a.A.K===a.G.H6.C.K)for(n=0,t=a.G.AG.length;n<t;n++){var o=a.G.AG[n];if(o.K!==a.A.K&&null!==ZC._n_(o.H6.o.shared)&&ZC._b_(o.H6.o.shared)){var A=o.BM(a.BD);A&&A.GP&&(e=Math.max(A.FQ,Math.min(A.GW,a.B0)),i=Math.max(A.FQ,Math.min(A.GW,a.BF)),A.zoomTo(e,i),ZC.AL(o.K)&&(o.clear(!0),o.E["shared-zoom"]=!0,o.paint(),o.B7&&o.B7.update(null,null,e,i,!0)))}}a.J6()}}},FT:function(L,CV,ET){var s=this;void 0===CV&&(CV="",CV=null!==ZC._n_(s.BY[L])?s.BY[L]:s.V[L]),"number"==typeof CV&&null!==ZC._n_(s.JP[CV])&&(CV=s.JP[CV]);var OU=ZC.PH(CV)&&ZC._f_(CV)<0,BC=s.MU();if(ZC._cp_(ET,BC),null!==ZC._n_(s.E["max-power"])&&(BC["max-power"]=s.E["max-power"]),OU&&"currency"===BC.negation&&(CV=ZC._a_(ZC._f_(CV))),BC.utc=s.A.UK,BC.timezone=s.A.NE,CV=ZC.AO.G5(CV,BC,s,!0),s.CL)if("()"===s.CL.substring(s.CL.length-2)||"javascript:"===s.CL.substring(0,11))try{var ED=s.CL.replace("javascript:","").replace("()","");eval(ED)&&(CV=eval(ED).call(s,CV))}catch(e){}else CV=OU&&"currency"===BC.negation?"-"+s.CL.replace(/%v|%scale-value/g,CV):s.CL.replace(/%v|%scale-value/g,CV);return CV},A8D:function(){var e=this,i=ZC.BR(e.V.length,e.BY.length);if(0===i&&(i=10),"log"===e.BS)e.EJ=999;else{var n=Math.max(15,10*ZC.BR(e.V.join("").length,e.BY.join("").length)/i);e.CM?e.EJ=ZC._i_((e.I-e.A9-e.BU)/n):e.EJ=ZC._i_((e.F-e.A9-e.BU)/10),e.EJ=ZC.CY(e.EJ,10),e.EJ=ZC.BR(2,e.EJ)}},ACA:function(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.M4=e.EJ)},AA0:function(e){var i,n,t,a,l,r,o,A=this;if(""!==A.sMaster&&2===e){var C=A.A.BM(A.sMaster);if(C)return A.B0=C.B0,A.FQ=C.FQ,A.BF=C.BF,A.GW=C.GW,A.E3=C.E3,A.SK=C.SK,A.W=C.W,A.A1=C.A1,A.D4=C.D4,A.DP=C.DP,A.V=[].concat(C.V),void(A.BY=[].concat(C.BY))}1===e&&null===ZC._n_(A.o.values)&&null!==ZC._n_(i=A.A.ABF("v"))&&(A.o.values=i);var s,u=0,Z=A.JP;if(1===e&&null!==ZC._n_(A.o.values)){if(A.V=[],"object"==typeof A.o.values){var c=A.o.values,p=ZC.Y4(c),h=ZC.A1U(c),f=!0;for(n=0,t=c.length-2;n<t;n++)if("number"==typeof c[n+2]&&"number"==typeof c[n+1]&&"number"==typeof c[n]&&ZC._f_(c[n+2])-ZC._f_(c[n+1])!=ZC._f_(c[n+1])-ZC._f_(c[n])){f=!1;break}if(!f&&(A.o.values=p+":"+h,!A.LW))for(A.LW=[],n=0,t=c.length;n<t;n++)A.LW.push(""+c[n])}if("object"==typeof A.o.values){for(ZC._cpa_(A.o.values,A.V),0===A.BY.length&&ZC._cpa_(A.BY,A.V),n=0,t=A.V.length;n<t;n++)if("string"==typeof A.V[n]){var _=A.V[n],d=ZC.AV(Z,A.V[n]);-1===d||A.bAllowDuplicates?(Z.push(A.V[n]),A.V[n]=Z.length-1):A.V[n]=d,null===ZC._n_(A.BY[n])&&(A.BY[n]=_)}}else{var g=A.o.values.split(":");if(o=1,3===g.length&&(o=ZC._f_(g[2])),ZC._f_(g[0])>ZC._f_(g[1])){var v=g[0];g[0]=g[1],g[1]=v}if(o<=0&&(o=1),null!==ZC._n_(A.o["fixed-items"])&&(o=(ZC._f_(g[1])-ZC._f_(g[0]))/ZC.BR(1,ZC._i_(A.o["fixed-items"])-1),A.V0=ZC.BR(1,ZC._i_(A.o["fixed-items"])-1)),g.length>1){for(var B=0,E=0,b=0,D=(""+o).split("."),F=ZC._f_(g[0]);F<=ZC._f_(g[1]);F+=o)a=(""+F).split("."),D.length>1&&a.length>1&&D[1].length>0&&a[1].length>=9&&ZC._a_(a[1].length-D[1].length)>2?(B+=D[1].length,E=ZC.BR(E,D[1].length),b++,A.V.push(ZC._f_(ZC._fixed_(Number(F),D[1].length)))):(B+=ZC._i_(a[1]?a[1].length:0),E=ZC.BR(E,a[1]?a[1].length:0),b++,A.V.push(F));F-ZC._f_(g[1])!=0&&ZC._a_(F-ZC._f_(g[1]))/o<1e-8&&A.V.push(ZC._f_(g[1])),null===ZC._n_(A.o.decimals)&&(B=(a=(""+o).split("."))[1]?a[1].length:Math.ceil(B/b),A.DV=ZC._a_(E-B)<=1?E:B)}}A.W=0,A.A1=A.V.length-1,A.E3=o,Z.length>1?(u=ZC.Y4(A.V,!0),A.B0=ZC.Y4(A.V),A.BF=ZC.A1U(A.V)):(A.B0=A.V[0],A.BF=A.V[A.V.length-1]),"log"===A.BS&&(0===A.B0&&(s=Math.floor(ZC.FU(u,A.DY)),A.B0=Math.pow(A.DY,Math.min(-1,s))),A.QN(ZC.FU(A.B0,A.DY),ZC.FU(A.BF,A.DY),!1))}if(2===e){var m={};null===ZC._n_(A.o.values)&&(A.V=[],l=ZC.MAX,r=-ZC.MAX);var Y=[],M=A.A.AY.A4;for(n=0,t=M.length;n<t;n++)if(A.A.E["plot"+n+".visible"]||"hide"===A.A.getToggleAction()){var I=M[n].BW();if(-1!==ZC.AV(I,A.BD))for(var K=-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],M[n].AF),X=[],x=0,L=M[n].V.length;x<L;x++)if(M[n].S[x]){var P=null===M[n].S[x].BV?x:M[n].S[x].BV;if(M[n].CG&&-1!==ZC.AV(X,P))continue;X.push(P);var w=M[n].LZ&&null!==ZC._n_(M[n].LZ[x])?ZC._f_(M[n].LZ[x]):0;if(M[n].CG)null===ZC._n_(m[M[n].DZ])&&(m[M[n].DZ]=[]),null===ZC._n_(m[M[n].DZ][P])?M[n].S[x].AC>=0||!K?m[M[n].DZ][P]=[M[n].S[x].AC,0]:m[M[n].DZ][P]=[0,M[n].S[x].AC]:M[n].S[x].AC>=0||!K?m[M[n].DZ][P][0]+=M[n].S[x].AC:m[M[n].DZ][P][1]+=M[n].S[x].AC,M[n].S[x].AC>=0||!K?M[n].S[x].CR=m[M[n].DZ][P][0]:M[n].S[x].CR=m[M[n].DZ][P][1],null===ZC._n_(A.o.values)&&Y.push(m[M[n].DZ][P][0]+w,m[M[n].DZ][P][1]+w);else if(null===ZC._n_(A.o.values)){Y.push(M[n].S[x].AC+w),0!==w&&Y.push(w);for(var S=0,y=M[n].S[x].DU.length;S<y;S++)Y.push(M[n].S[x].DU[S]+w)}}}if(Y.length>0&&(u=ZC.Y4(Y,!0),l=ZC.Y4(Y),r=ZC.A1U(Y)),0!==A.V.length||l!==Number.MAX_VALUE&&r!==Number.MIN_VALUE||(A.V=[0,1],l=0,r=1),null===ZC._n_(A.o.values))if(null!==ZC._n_(A.o["min-value"])&&"auto"!==A.o["min-value"]?l=ZC._f_(A.o["min-value"]):l>0&&"auto"!==A.o["min-value"]&&"log"!==A.BS&&(l=0),null!==ZC._n_(A.o["max-value"])&&(r=ZC._f_(A.o["max-value"])),l===ZC.MAX&&r===-ZC.MAX)A.W=0,A.A1=0,A.B0=0,A.BF=0;else if("log"===A.BS)0===l&&(s=Math.floor(ZC.FU(u,A.DY)),l=Math.pow(A.DY,Math.min(-1,s))),A.QN(ZC.FU(l,A.DY),ZC.FU(r,A.DY),!1);else if("lin"===A.BS)A.QN(l,r,!0);else{A.QN(l,r,!0);var G=ZC.evalFn(A.BS,window);G&&G.values&&(A.V=G.values.call(A,{x:A.iX,y:A.iY,width:A.I,height:A.F,offsetStart:A.A9,offsetEnd:A.BU,inversed:A.CM,mirrored:A.AW,minValue:l,maxValue:r,minValue_:l,maxValue_:r}),A.W=0,A.A1=A.V.length-1)}}2===e&&(-1===A.FQ&&-1===A.GW&&(A.FQ=A.B0,A.GW=A.BF),-1===A.SK&&(A.SK=A.E3)),"auto"===A.o["min-value"]&&null===ZC._n_(A.o["ref-value"])&&(A.HC=A.B0),0===A.V0&&(A.V0=ZC._i_((A.BF-A.B0)/A.E3));var O=A.G.E["graph"+A.A.L+".zoom"];if(null===ZC._n_(A.G.E.preservezoom)||A.G.E.preservezoom){var N=1===A.L?"":"-"+A.L;2===e&&void 0!==O&&null!==ZC._n_(O["ymin"+N])&&null!==ZC._n_(O["ymax"+N])&&(ZC.DS(O["ymin"+N],A.B0,A.BF)||(O["ymin"+N]=A.B0),ZC.DS(O["ymax"+N],A.B0,A.BF)||(O["ymax"+N]=A.BF),A.KO=[O["ymin"+N],O["ymax"+N]])}else A.G.E["graph"+A.A.L+".zoom"]={};A.KO&&(A.A.ZE=!0)},QN:function(e,i,n){var t,a,l,r,o=this;e-=o.fMinValueFactor*(i-e),i+=o.fMaxValueFactor*(i-e),"piano"!==o.A.AF&&!o.Q3&&o.JP.length>1&&(e=0),o.TN.length&&null===ZC._n_(o.o["scale-factor"])&&(l=Math.floor(ZC.FU(ZC._a_(i),ZC._f_(o.TN[0]))),o.P6=Math.pow(ZC._f_(o.TN[0]),l)/Math.pow(1e3,l),o.E["max-power"]=l);var A=(r=o.F7&&"date"===o.F7.o.type?ZC.AQ.WI(e,i,"lin"===o.BS?o.E3:null,o.P6,o.bNormalize,o.EJ):ZC.AQ.WI(e,i,"lin"===o.BS?o.o.step:null,o.P6,o.bNormalize,o.EJ))[0],C=r[1],s=!1;a=Math.floor(r[0]),"log"===o.BS&&(l=Math.ceil(r[1]),r[1]-r[0]>=.5?s=!0:r=ZC.AQ.WI(Math.pow(o.DY,r[0]),Math.pow(o.DY,r[1]),null,o.P6,o.bNormalize));var u,Z,c=r[0],p=r[1],h=r[2];if(null!==ZC._n_(o.o["fixed-items"])&&(h=(p-c)/ZC.BR(1,ZC._i_(o.o["fixed-items"])-1)),o.Q3&&i===e&&(i+h<=o.BF?i+=h:e-=h),1!==o.R6&&(c*=o.R6,p*=o.R6,h*=o.R6),null!==ZC._n_(o.E["o-decimals"])?o.DV=o.E["o-decimals"]:o.E["o-decimals"]=o.DV,null===ZC._n_(o.o.decimals))if("log"===o.BS&&s)o.DV=a<0?null:0;else if(o.bNormalize)o.A2R||(o.DV=0);else{var f=ZC.FU(i-e,10);o.DV=r[3],o.DV>9&&(f>=1?o.DV=1:f>0&&f<1&&(o.DV=2))}var _,d,g,v=!0;if(s){var B,E;a=Math.floor(c),l=Math.ceil(p),_=Math.pow(o.DY,e),d=Math.pow(o.DY,i),o.V=[];var b=[0,2,5];for(E=[0,1,2,3,4,5,6,7,8,9,10],t=a;t<=l;t++){var D=r[3];if(D=t<0?Math.max(ZC._a_(t),D):0,t===l)for(B=0;B<b.length;B++)g=Math.pow(o.DY,t)+b[B]*Math.pow(o.DY,t-1),g=ZC._f_(g.toFixed(D)),-1===ZC.AV(o.V,g)&&o.V.push(g);for(B=0;B<E.length;B++)g=E[B]*Math.pow(o.DY,t),g=ZC._f_(g.toFixed(D)),-1===ZC.AV(o.V,g)&&o.V.push(g)}o.V.sort(function(e,i){return e-i});for(var F=-1,m=-1,Y=0;Y<o.V.length-1;Y++)o.V[Y]<=_&&_<=o.V[Y+1]&&(F=Y),o.V[Y]===d?m=Y:o.V[Y]<=d&&d<=o.V[Y+1]&&(m=Y+1);o.V=o.V.slice(F,m+1),0===o.V[0]&&o.V.shift(),A=ZC.FU(o.V[0],o.DY),C=ZC.FU(o.V[o.V.length-1],o.DY)}else{for("log"===o.BS&&(_=Math.pow(o.DY,e),d=Math.pow(o.DY,i));v;){v=!1,o.V=[],u=Z=c;do{Z=u,Z=ZC._f_(Z.toFixed(o.DV)),-1!==ZC.AV(o.V,Z)&&(v=!0),"log"===o.BS?Z>=c&&Z<=p&&o.V.push(Z):o.V.push(Z),u+=h,u=ZC._f_(u.toFixed(r[3]))}while(u<=p);v&&(o.DV+=1)}"log"===o.BS&&(A=ZC.FU(c,o.DY),C=ZC.FU(p,o.DY),o.V.push(c),o.V.push(p),o.V.sort(function(e,i){return e-i}))}o.E3=h,o.W=0,o.A1=o.V.length-1,n?(o.B0=o.bExtendMinValue?A:e,o.BF=o.bExtendMaxValue?C:i):(o.B0=e,o.BF=i)},parse:function(){var e=this;e.assign_a([["stack-type","KT"],["extend-min-value","bExtendMinValue","b"],["extend-max-value","bExtendMaxValue","b"]]),(e.A.CG&&"100%"===e.A.KT||"100%"===e.KT)&&null===ZC._n_(e.o.values)&&(e.o.values="0:100:20",e.o.format="%v%"),this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null===ZC._n_(this.E.decimals)&&(this.E.decimals=null!==ZC._n_(this.DV)?this.DV:-1),null!==ZC._n_(this.o.values)&&(this.TF=!0)}};ZC.WA=ZC.F4.CD(WA);var QA={$i:function(e){this.b(e)},parse:function(){this.b()},J6:function(){var e=this;e.A1===e.W?e.AD=e.I-e.A9-e.BU:e.AD=(e.I-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA0:function(e){this.b(e),this.J6()},zoomTo:function(e,i){this.b(e,i);this.J6()},clear:function(){},build:function(){this.b()},NI:function(e){var i,n=this;i=n.AW?(n.iX+n.I-n.A9-e)/(n.I-n.A9-n.BU):(e-n.iX-n.A9)/(n.I-n.A9-n.BU);var t=n.B0,a=n.BF;null!==ZC._n_(n.aForcedMinMax[0])&&n.aForcedMinMax[0]!==t&&(t=n.aForcedMinMax[0]),null!==ZC._n_(n.aForcedMinMax[1])&&n.aForcedMinMax[1]!==a&&(a=n.aForcedMinMax[1]),"log"===n.BS&&(t=ZC.FU(t,n.DY),a=ZC.FU(a,n.DY));var l=t+ZC._f_((a-t)*i);return"log"===n.BS&&(l=Math.pow(n.DY,l)),l},OL:function(e,i,n){var t,a,l,r=this;void 0===n&&(n=!1);var o=r.DE?r.AD:0;l=r.AW?(r.iX+r.I-e-r.A9-o/2)/(r.I-r.A9-r.BU-o):(e-r.iX-r.A9-o/2)/(r.I-r.A9-r.BU-o);var A,C=!1;if(i)for(A in i.K9){C=!0;break}if(i&&!r.NW&&C){var s=r.V[r.W];"string"==typeof s&&(s=ZC.AV(r.IU,s)),"log"===r.BS&&(s=ZC.FU(s,r.DY));var u=r.V[r.A1];"string"==typeof u&&(u=ZC.AV(r.IU,u)),"log"===r.BS&&(u=ZC.FU(u,r.DY));var Z=s+ZC._f_((u-s)*l);"log"===r.BS&&(Z=Math.pow(r.DY,Z));var c=ZC.MAX;for(A in a=null,i.K9)(t=Math.abs(A-Z))<c&&(c=t,a=i.K9[A]);if(null===ZC._n_(a)&&(a=Z),c>i.A2G){var p=Math.ceil((u-s)/(r.I-r.A9-r.BU));if(i.V.length<2&&(p*=100),c>p)return null}return a}var h=r.W,f=r.A1;return r.EI&&(null!==ZC._n_(t=r.V[h])&&(h=t),null!==ZC._n_(t=r.V[f])&&(f=t)),"log"===r.BS&&(h=ZC.FU(h,r.DY),f=ZC.FU(f,r.DY)),a=n?r.DE?h+(f-h+1)*l:h+(f-h)*l:(r.DE,r.W+(r.A1-r.W)*l),"log"===r.BS?(a=Math.pow(r.DY,a),a=Math.round(a)-1):(a=ZC._i_(a),a=ZC.BR(0,a),a=ZC.CY(r.DP,a)),a},II:function(e){var i=this;i.W,i.A1;return i.EI&&!i.NW&&(i.B0,i.BF),"log"===i.BS&&(e=ZC.FU(e+1,i.DY)),i.AW?i.iX+i.I-i.A9-(e-i.W+(i.DE?1:0))*i.AD+(i.DE?i.AD/2:0):i.iX+i.A9+(e-i.W)*i.AD+(i.DE?i.AD/2:0)},AR:function(e){var i,n,t,a,l,r=this;if("log"===r.BS&&(0===e&&(e=r.B0),e=ZC.FU(e,r.DY)),r.NW){var o=r.U9[e];return r.II(o)}if(-1!==(i=ZC.AV(r.IU,e)))return r.II(i);if(!r.A4L&&(r.EI||r.F7&&"date"===r.F7.o.type)){a=r.V[r.W],l=r.V[r.A1];var A=r.I;return"log"===r.BS&&(a=ZC.FU(a,r.DY),l=ZC.FU(l,r.DY),r.W===r.D4&&r.A1===r.DP&&(A=(r.A1-r.W)*r.AD+r.A9+r.BU)),l===a?n=0:(t=l-a,n=(A-r.A9-r.BU-(r.DE?r.AD:0))/t),r.AW?r.iX+A-r.A9-(e-a)*n-(r.DE?r.AD/2:0)+r.iMinOffset:r.iX+r.A9+(e-a)*n+(r.DE?r.AD/2:0)-r.iMinOffset}return a=r.B0,l=r.BF,"log"===r.BS&&(a=ZC.FU(a,r.DY),l=ZC.FU(l,r.DY)),l===a?n=0:(t=l-a+(r.DE?1:0),n=(r.I-r.A9-r.BU)/t),r.AW?r.iX+r.I-r.A9-(e-a)*n-(r.DE?r.AD/2:0):r.iX+r.A9+(e-a)*n+(r.DE?r.AD/2:0)},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c,p,h,f=this;f.b(),null!==ZC._n_(f.A.A.E[f.A.K+"-"+f.BD+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.A.K+"-"+f.BD+"-feed-offset-start"]),"bubble"!==f.A.AF&&"scatter"!==f.A.AF||(-1===f.A9&&-1===f.BU||1===f.V.length)&&(f.A9=f.BU=f.I/(f.V.length+1),f.J6());var _=f.BF,d=f.B0;if("log"===f.BS&&(null!==ZC._n_(f.o["max-value"])&&(_=ZC._f_(f.o["max-value"]),f.aForcedMinMax[1]=_),null!==ZC._n_(f.o["min-value"])&&(d=ZC._f_(f.o["min-value"]),f.aForcedMinMax[0]=d),f.iMinOffset=0,(_!==f.BF||d!==f.B0)&&f.W===f.D4&&f.A1===f.DP&&1===f.aForcedMinMax[2])){f.aForcedMinMax[2]=0;var g=f.AD;f.AD=(f.I-f.A9-f.BU)/(ZC.FU(_,f.DY)-ZC.FU(d,f.DY))-.1;var v=ZC.FU(d,f.DY)-ZC.FU(f.B0,f.DY),B=ZC.FU(f.BF,f.DY)-ZC.FU(_,f.DY);f.iMinOffset=v*(f.AD-g)*(f.V.length-1)/(B+v)}var E=f.A0Q(),b=0,D=1,F=1,m={};for(i=0,n=f.A.BO.length;i<n;i++)"scale-x"===f.A.BO[i].BD.substring(0,7)&&f.A.BO[i].BA===f.BA&&b++,"scale-x"===f.A.BO[i].BD.substring(0,7)&&("default"===f.A.BO[i].BA?(m[f.A.BO[i].BD]=D,D++):(m[f.A.BO[i].BD]=F,F++));var Y=m[f.BD],M="default"===f.BA,I=null,K=null;for(i=0,n=f.A.AY.A4.length;i<n;i++){var X=f.A.AY.A4[i],x=X.BW();if(-1!==ZC.AV(x,f.BD)){var L=f.A.BM(X.BW("v")[0]);I=L.AR(L.HC),K=X;break}}var P=8;null!==ZC._n_(f.IV.o.size)&&(P=ZC._i_(f.IV.o.size));var w=4;null!==ZC._n_(f.IG.o.size)&&(w=ZC._i_(f.IG.o.size));var S=ZC._i_(f.A.E[f.BD+"-distance"]||-1);f.VG&&(S=0),"default"===f.BA?(A=ZC._i_(f.A.P.DW/b),a=f.iY+f.F+(Y-1)*A,-1!==S&&(a=f.iY+f.F+S)):(A=ZC._i_(f.A.P.EB/b),a=f.iY-(Y-1)*A,-1!==S&&(a=f.iY-S));var y=a;if(f.A.HO&&(f.A.HO.AP=!0,f.D4===f.W&&f.DP===f.A1&&(f.A.HO.AP=!1),f.A.HO.AP&&0===f.A.HO.B2.BJ&&"default"===f.BA&&(a+=f.A.HO.B2.F+f.B1/2)),f.E.iY=a,f.AP&&f.TF){null!==ZC._n_(f.o["fixed-items"])&&(f.M4=f.EJ=ZC._i_(f.o["fixed-items"]));var G=ZC.BR(1,Math.ceil((f.A1-f.W)/(f.M4-1))),O=ZC.BR(1,Math.ceil((f.A1-f.W)/(f.EJ-1)));null===ZC._n_(f.o["fixed-items"])&&ZC._b_(f.o.normalize)&&(G=ZC.AQ.A0S(G),O=ZC.AQ.A0S(O));for(var N=f.iStepMultiplier,V=3;V>0;V--)f.iStepMultiplier>V&&f.A1-f.W<=V*f.iStepMultiplier&&(N=V);G*=N,O*=N;var U,Q,k,W=0,R=f.AD*G/(f.FZ+1),J=f.AW?f.iX+f.BU:f.iX+f.A9,H=f.AW?f.iX+f.I-f.A9:f.iX+f.I-f.BU;if(null===ZC._n_(I)&&(I=a),f.A.AEH,l=f.A.AEH,r=f.A.AEH.getContext("2d"),o=f.A.AEH.getContext("2d"),"inherit"===f.o["line-color"]&&-1!==E&&(f.B9=E),f.A.AJ["3d"]){if((c=ZC.DL.DD(f,f.A,f.iX-ZC.AM.E1,f.iX-ZC.AM.E1+f.I,a-ZC.AM.E2,a-ZC.AM.E2,-1,ZC.AM.FE+1,"x")).K=f.K+"-line",f.A.ES.true3d&&(f.A.ES["x-angle"]>0?c.MG=[1===f.L?-100:100,1,1]:c.MG=[1===f.L?100:-100,1,1]),f.A.CN.add(c),null!==ZC._n_(f.o.axis)){var z=new ZC.CZ(f);z.append(f.o.axis),z.parse(),z.A0=z.AE=z.B9,(c=ZC.DL.DD(z,f.A,f.iX-ZC.AM.E1,f.iX-ZC.AM.E1+f.I,a-ZC.AM.E2,a-ZC.AM.E2,-z.B1/2,z.B1/2,"x")).K=f.K+"-axis",f.A.CN.add(c)}}else{C=[[f.iX-1,y],[f.iX+f.I+1,y]];var T=f.K;f.K+="-line",ZC.CO.paint(r,f,C),f.K=T}if(f.V.length>0&&f.D8.AP){var j=null===ZC._n_(f.D8.o["offset-start"])?0:ZC._i_(f.D8.o["offset-start"]),q=null===ZC._n_(f.D8.o["offset-end"])?0:ZC._i_(f.D8.o["offset-end"]);if(f.D8.o.items&&f.D8.o.items.length>0&&!f.A.AJ["3d"])for(p=new ZC.HU(f),i=f.W;i<f.A1+(f.DE?1:0);i++)s=i-f.W,h=i%f.D8.o.items.length,p.append(f.D8.o.items[h]),p.K=f.K+"-guide-"+i,p.Z=f.A.Z,p.parse(),f.AW?p.iX=f.iX+f.I-f.A9-s*f.AD-f.AD:p.iX=f.iX+f.A9+s*f.AD,p.iY=f.iY+j,p.I=f.AD,p.F=f.F-j-q,p.paint();if(f.D8.B1>0)for(f.GU=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.KA=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%G==0){(f.D8.E6.length>0||i===f.W)&&((Z=new ZC.CZ(f)).Z=Z.C8=l,Z.copy(f.D8),Z.IQ=Le,Z.DG()&&Z.parse()),C=[],s=i-f.W,u="log"===f.BS?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-s*f.AD:f.iX+f.A9+s*f.AD;var $=f.iY+j,ee=f.F-j-q;if(Z.AP)if(f.A.AJ["3d"]){var ie=new ZC.CZ(f);ie.copy(Z),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(ie.append(e),ie.parse()),ie.A0=ie.AE=ie.B9,c=ZC.DL.DD(ie,f.A,u-ZC.AM.E1-ie.B1/2,u-ZC.AM.E1+ie.B1/2,a-ZC.AM.E2,a-ZC.AM.E2,0,ZC.AM.FE,"z"),f.A.CN.add(c),Z.A0=Z.AE=Z.B9,(c=ZC.DL.DD(Z,f.A,u-ZC.AM.E1-Z.B1/2,u-ZC.AM.E1+Z.B1/2,$-ZC.AM.E2,$+ee-ZC.AM.E2,ZC.AM.FE+2,ZC.AM.FE+2,"y")).K=f.K+"-guide-"+i,f.A.CN.add(c)}else C.push([u,$],[u,$+ee]),Z.K=f.K+"-guide-"+i,ZC.CO.paint(o,Z,C);f.GU++}}if(f.V.length>0&&f.G8.AP&&!f.A.AJ["3d"]&&f.G8.o.items&&f.G8.o.items.length>0)for(p=new ZC.HU(f),i=f.W;i<f.A1+(f.DE?1:0);i++)for(f.KA=i,s=i-f.W,f.GU=0,t=1;t<=f.FZ;t++)h=f.GU%f.G8.o.items.length,p.append(f.G8.o.items[h]),p.K=f.K+"-guide-"+i+"-"+t,p.Z=f.A.Z,p.parse(),f.AW?p.iX=f.iX+f.I-f.A9-s*f.AD-(t+1)*R:p.iX=f.iX+f.A9+s*f.AD+t*R,p.iY=f.iY,p.I=R,p.F=f.F,p.paint(),f.GU++;if(f.G8.B1>0)for(i=f.W;i<f.A1+(f.DE?1:0);i++)if(f.KA=i,i%G==0)for(s=i-f.W,f.GU=0,t=1;t<=f.FZ;t++)C=[],(Z=new ZC.CZ(f)).copy(f.G8),Z.IQ=Le,Z.DG()&&Z.parse(),u="log"===f.BS?f.AR(f.V[i]+t*f.V[i+1]/(f.FZ+2)):f.AW?f.iX+f.I-f.A9-s*f.AD-t*R:f.iX+f.A9+s*f.AD+t*R,ZC.DS(u,J,H)&&(C.push([u,f.iY],[u,f.iY+f.F]),Z.AP&&(Z.K=f.K+"-minor-guide-"+t,ZC.CO.paint(o,Z,C))),f.GU++;if(f.VL(o,E),f.V.length>0&&f.IV.AP){switch(f.IV.o.placement){case"inner":break;case"outer":W+=P;break;default:W+=P/2}if(!zingchart.DEV.SMARTDATELABELS||!f.F7||"date"!==f.F7.o.type)for(f.GU=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%G==0){f.KA=i;var ne=P;if(C=[],s=i-f.W,(f.IV.E6.length>0||i===f.W)&&((Z=new ZC.DT(f)).copy(f.IV),"inherit"===f.IV.o["line-color"]&&-1!==E&&(Z.B9=E),Z.IQ=Le,Z.DG()&&Z.parse(),Z.AI>1&&(ne=Z.AI)),u="log"===f.BS?f.AR(f.V[i]):f.AW?f.iX+f.I-f.A9-s*f.AD:f.iX+f.A9+s*f.AD,ZC.DS(u,J,H)){switch(Z.o.placement){case"ref-auto":C.push([u,I+ne/2],[u,I-ne/2]);break;case"ref-top":C.push([u,I-ne],[u,I]);break;case"ref-bottom":C.push([u,I+ne],[u,I]);break;case"inner":C.push([u,a-(M?ne:-ne)],[u,a]);break;case"outer":C.push([u,a],[u,a+(M?ne:-ne)]);break;default:C.push([u,a+ne/2],[u,a-ne/2])}if(Z.AP){for(Q=ZC._i_(Z.o["offset-x"]||"0"),k=ZC._i_(Z.o["offset-y"]||"0"),U=0;U<C.length;U++)C[U][0]+=Q,C[U][1]+=k;if(Z.K=f.K+"-tick-"+i,f.A.AJ["3d"])if(f.A.ES.true3d){var te,ae=[];for(U=0;U<C.length;U++)te=new ZC.CE(f.A,C[U][0]-ZC.AM.E1,C[U][1]-ZC.AM.E2,0),ae.push([te.EC[0],te.EC[1]]);ZC.CO.paint(r,Z,ae)}else{var le=this.A.ES.angle||45;for(U=0;U<C.length;U++)C[U][0]-=ZC.EF(le)*ZC.AM.FE/2,C[U][1]+=ZC.EL(le)*ZC.AM.FE/2;ZC.CO.paint(r,Z,C)}else ZC.CO.paint(r,Z,C)}}f.GU++}}var re=[];if(f.V.length>0&&f.FZ>0&&f.IG.AP&&!f.A.AJ["3d"])for(i=f.W;i<f.A1+(f.DE?1:0);i++)if(f.KA=i,i%G==0)for(s=i-f.W,f.GU=0,t=1;t<=f.FZ;t++){if(C=[],(Z=new ZC.CZ(f)).copy(f.IG),"inherit"===f.IG.o["line-color"]&&-1!==E&&(Z.B9=E),Z.IQ=Le,Z.DG()&&Z.parse(),"log"===f.BS){var oe=Math.round(ZC.FU(f.V[i],f.DY)),Ae=f.V[i]+t*f.V[i+1]/(f.FZ+2);Ae=oe<0?ZC._f_(Ae.toFixed(-oe)):ZC._f_(Ae.toFixed(oe)),re.push(Ae),u=f.AR(Ae)}else u=f.AW?f.iX+f.I-f.A9-s*f.AD-t*R:f.iX+f.A9+s*f.AD+t*R;if(ZC.DS(u,J,H)){switch(Z.o.placement){case"ref-auto":C.push([u,I+w/2],[u,I-w/2]);break;case"ref-top":C.push([u,I],[u,I-w]);break;case"ref-bottom":C.push([u,I],[u,I+w]);break;case"inner":C.push([u,a-(M?w:-w)],[u,a]);break;case"outer":C.push([u,a],[u,a+(M?w:-w)]);break;default:C.push([u,a+w/2],[u,a-w/2])}if(Z.AP){for(Q=ZC._i_(Z.o["offset-x"]||"0"),k=ZC._i_(Z.o["offset-y"]||"0"),U=0;U<C.length;U++)C[U][0]+=Q,C[U][1]+=k;Z.K=f.K+"-minor-tick-"+i,ZC.CO.paint(r,Z,C)}}f.GU++}f.XV();var Ce=null,se=null,ue=f.CL,Ze=f.DV,ce=[],pe=new ZC.DT(f);pe.copy(f.IV);var he,fe=0,_e=0,de=0,ge=[],ve=[];if(f.o["custom-items"])for(i=0;i<f.o["custom-items"].length;i++)Pe(f.o["custom-items"][i][0],!1,!0,f.o["custom-items"][i][1]);if(f.V.length>0&&f.BQ.AP)if(zingchart.DEV.SMARTDATELABELS&&f.F7&&"date"===f.F7.o.type){var Be=f.getOptimalDateInterval(f.V[f.A1]-f.V[f.W]),Ee=Be[0];he=Be[1];var be=Be[2],De=Be[3];de=Be[4];var Fe=be*Math.ceil(f.V[f.W]/be),me=be*Math.floor(f.V[f.A1]/be),Ye="";f.GU=0;var Me=!0;for(i=Fe;i<=me;i+=be){Me=!0;var Ie=ZC.AO.YF(i,Ee,f.A.UK,f.A.NE);if(Ie!==Ye){switch(De){case"yr":de>15&&(Me=ZC._i_(Ie)%2==0);break;case"mon":de>15&&(Me=ZC._i_(Ie)%3==0);break;case"day":de>45?Me=1===ZC._i_(Ie)||15===ZC._i_(Ie):de>30?Me=1===ZC._i_(Ie)||10===ZC._i_(Ie)||20===ZC._i_(Ie):de>15&&(Me=1===ZC._i_(Ie)||10===ZC._i_(Ie)||15===ZC._i_(Ie)||20===ZC._i_(Ie)||25===ZC._i_(Ie));break;case"hr":de>45?Me=ZC._i_(Ie)%12==0:de>30?Me=ZC._i_(Ie)%6==0:de>15&&(Me=ZC._i_(Ie)%3==0);break;case"min":case"sec":de>45?Me=ZC._i_(Ie)%30==0:de>30?Me=ZC._i_(Ie)%10==0:de>15&&(Me=ZC._i_(Ie)%5==0)}Me&&(Pe(i,!0),Ye=Ie)}}pe.AP&&(pe.K=f.K+"-ticks",ZC.CO.paint(r,pe,ce))}else for(f.GU=0,Pe(f.W),f.GU=f.A1-f.W,Pe(f.A1),f.GU=1,i=f.W+1;i<f.A1;i++)(i-f.W)%O==0&&Pe(i);for(i=0;i<re.length;i++){var Ke=f.FT(i,null,null,!1,re[i]);Pe(Ke,!1,!0,Ke)}if(f.M.AP&&f.M.AN&&""!==f.M.AN){(Ce=new ZC.DQ(f)).copy(f.M),Ce.K=f.A.K+"-"+f.BD.replace(/\-/g,"_")+"-item_title",Ce.GN=f.K+"-label "+f.A.K+"-scale-label zc-scale-label",Ce.AN=f.M.AN,Ce.Z=f.A.Z,Ce.IP=f.G.usc()?ZC.AL(f.G.K+"-main"):ZC.AL(f.G.K+"-text"),Ce.parse(),"inherit"!==f.M.o["font-color"]&&"inherit"!==f.M.o.color||-1===E||(Ce.C2=E);var Xe=f.iX+(f.AW?f.BU:f.A9),xe=f.I-f.A9-f.BU;switch("chart"===Ce.o["center-point"]&&(Xe=f.A.iX,xe=f.A.I),Ce.OF){case"left":Ce.iX=Xe;break;case"center":Ce.iX=Xe+xe/2-Ce.I/2;break;case"right":Ce.iX=Xe+xe-Ce.I}Ce.iY=M?a+W+_e:a-Ce.F-W-_e,f.M.iX=Ce.iX,f.M.iY=Ce.iY,Ce.AP&&(f.N1(Ce,null,"h"),Ce.paint(),Ce.EO())}ve.length>0&&ZC.AL(f.A.A.K+"-map")&&(ZC.AL(f.A.A.K+"-map").innerHTML+=ve.join("")),null!==ZC._n_(f.o.transform)&&"date"===f.o.transform.type&&f.paintTransformDate()}function Le(e){return e=(e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GU)).replace(/(%i)|(%scale-index)/g,f.KA)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.KA])?f.V[f.KA]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.KA])?f.BY[f.KA]:"")).replace(/%scale-day-of-week/g,ZC.AO.YF(f.V[f.KA],"%w",f.A.UK,f.A.NE))}function Pe(e,i,n,t){var l;if(f.KA=e,s=e-f.W,(f.BQ.E6.length>0||e===f.W||!Ce||f.BQ.HZ||n)&&(Ce=new ZC.DQ(f)),Ce.copy(f.BQ),Ce.GN=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",Ce.K=f.A.K+"-"+f.BD.replace(/\-/g,"_")+"-item_"+(t?"c"+t:e),Ce.E["p-width"]=f.AD,f.CL=ue,f.DV=Ze,n||f.Z5(Le),l=i?ZC.AO.YF(e,he,f.A.UK,f.A.NE):t||f.FT(e,null,null),!n&&f.BQ.HZ){var r=f.A.H2();ZC._cp_({index:e,cnt:s,text:l},r),f.H8(f.BQ,Ce,null,r,f.BQ.MN)}if(!(null!==ZC._n_(f.LW)&&-1===ZC.AV(f.LW,l)||(Ce.AN=l,Ce.Z=Ce.C8=f.A.Z,Ce.IP=f.G.usc()?ZC.AL(f.G.K+"-main"):ZC.AL(f.G.K+"-text"),Ce.E.nodeidx=e,Ce.parse(),f.BQ.A24&&f.BQ.AA%180==0&&(Ce.o.width=ZC._i_(.9*f.AD),Ce.parse()),"inherit"!==f.BQ.o["font-color"]&&"inherit"!==f.BQ.o.color||-1===E||(Ce.C2=E),n||(Ce.IQ=Le,Ce.DG()&&Ce.parse()),Ce.o["auto-fit"]&&(Ce.I=ZC._i_(f.AD)),i?(u=f.AR(e),Ce.iX=u-Ce.I/2-(f.DE?f.AD/2:0)):n?(u=f.AR(e),Ce.iX=u-Ce.I/2):"log"===f.BS?(u=f.AR(f.V[e]),Ce.iX=u-Ce.I/2+(f.DE?f.AD/2:0)*(f.AW?-1:1)):f.AW?(u=f.iX+f.I-f.A9-s*f.AD,Ce.iX=u-Ce.I/2-(f.DE?f.AD/2:0)):(u=f.iX+f.A9+s*f.AD,Ce.iX=u-Ce.I/2+(f.DE?f.AD/2:0)),u<f.iX-1||u>f.iX+f.I+1))){if(f.A.B7&&f.A.B7.BY&&f.A.B7.I3){for(var o=!1,A=0;A<f.A.B7.BY.length;A++)f.A.B7.BY[A].text===Ce.AN&&(o=!0);o||f.A.B7.BY.push({x:ZC._i_(u),text:Ce.AN})}switch(Ce.o.placement){case"inner":Ce.iY=M?a-Ce.F-P:a+P;break;case"ref-top":Ce.iY=I-Ce.F-P;break;case"ref-bottom":Ce.iY=I+P;break;case"ref-auto":K&&K.S[e]?(K.FM(e).setup(),K.FM(e).iY<I?Ce.iY=I+P:Ce.iY=I-Ce.F-P):Ce.iY=I+P;break;default:Ce.iY=M?a+P:a-Ce.F-P}if(se=f.N1(Ce,se,"h",0),f.BQ.o["auto-align"]&&f.BQ.AA%180!=0){var C=ZC.DS(f.BQ.AA,0,180)?M?1:-1:M?-1:1;Ce.iX+=C*Ce.I*ZC.EF(f.BQ.AA)/2,Ce.iY+=C*(Ce.I*ZC.EL(f.BQ.AA)/2-Ce.F*ZC.EL(f.BQ.AA)/2)}var Z=f.X8(Ce,e,{items:de,lcoords:ge,lstep:O,tdim:fe,mdim:_e,dim:"h",html:ve});if(fe=Z.tdim,_e=Z.mdim,!Z.overlaps&&i&&f.IV.AP)switch(pe.o.placement){case"ref-auto":ce.push([u,I+P/2],[u,I-P/2],null);break;case"ref-top":ce.push([u,I-P],[u,I],null);break;case"ref-bottom":ce.push([u,I+P],[u,I],null);break;case"inner":ce.push([u,a-(M?P:-P)],[u,a],null);break;case"outer":ce.push([u,a],[u,a+(M?P:-P)],null);break;default:ce.push([u,a+P/2],[u,a-P/2],null)}f.GU++}}},getOptimalDateInterval:function(e){var i,n,t,a,l;return 0<=e&&e<=3*ZC.SEC?(i="%q",n="%q ms",t=10,a="ms",l=ZC._i_(e/10)):3*ZC.SEC<e&&e<=3*ZC.MIN?(i="%s",n="%h:%i:%s %A",t=ZC.SEC,a="sec",l=ZC._i_(e/ZC.SEC)):3*ZC.MIN<e&&e<=3*ZC.HR?(i="%i",n="%h:%i %A",t=ZC.MIN,a="min",l=ZC._i_(e/ZC.MIN)):3*ZC.HR<e&&e<=3*ZC.DAY?(i="%h:%i",n="%M %d, %h %A",t=ZC.HR,a="hr",l=ZC._i_(e/ZC.HR)):3*ZC.DAY<e&&e<=3*ZC.MON?(i="%d",n="%M %d",t=ZC.DAY,a="day",l=ZC._i_(e/ZC.DAY)):3*ZC.MON<e&&e<=3*ZC.YR?(i="%m",n="%M %Y",t=ZC.DAY,a="mon",l=ZC._i_(e/ZC.MON)):(i="%Y",n="%Y",t=ZC.DAY,a="yr",l=ZC._i_(e/ZC.YR)),[i,n,t,a,l]},paintTransformDate:function(){var e,i,n,t,a=this;i=a.A.Z.getContext("2d");var l=[],r=1;!function c(e,i){void 0===i&&(i=!1),0<=e&&e<=2*ZC.SEC?(n="%q",t="%q ms",i&&c(60*e)):2*ZC.SEC<e&&e<=2*ZC.MIN?(n="%s",t="%h:%i:%s %A",i&&c(60*e),e>10*ZC.SEC&&(r=2),e>30*ZC.SEC&&(r=5),e>60*ZC.SEC&&(r=10)):2*ZC.MIN<e&&e<=2*ZC.HR?(n="%i",t="%h:%i %A",i&&c(24*e),e>10*ZC.MIN&&(r=2),e>30*ZC.MIN&&(r=5),e>60*ZC.MIN&&(r=10)):2*ZC.HR<e&&e<=2*ZC.DAY?(n="%h",t="%M %d, %h %A",i&&c(30*e),e>6*ZC.HR&&(r=2),e>12*ZC.HR&&(r=4),e>24*ZC.HR&&(r=6)):2*ZC.DAY<e&&e<=2*ZC.MON?(n="%d",t="%M %d",i&&c(366*e),e>12*ZC.DAY&&(l=[1,5,9,13,17,21,25,29]),e>24*ZC.DAY&&(l=[1,6,11,16,21,26])):2*ZC.MON<e&&e<=2*ZC.YR?(n="%m",t="%M %Y",i&&c(10*e),e>9*ZC.MON&&(l=[1,4,7,10])):(n="%Y",t="%Y",e>9*ZC.YR&&(r=3),e>16*ZC.YR&&(r=4),e>25*ZC.YR&&(r=5))}(a.V[a.A1]-a.V[a.W]);var o=null,A=[],C=!1,s=!1;function u(e){var s,u;if(null!==ZC._n_(a.V[e])&&""!==a.V[e]){a.NW&&e!==a.W&&e!==a.A1&&null!==ZC._n_(a.V[e-1])&&""!==a.V[e-1]&&null!==ZC._n_(a.V[e])&&a.V[e];var Z=ZC.AO.YF(a.V[e],n,a.A.UK,a.A.NE);if(Z!==o&&ZC._i_(Z)%r==0&&(0===l.length||-1!==ZC.AV(l,ZC._i_(Z)))){var c,p=!0,h=e-a.W;s=a.AW?a.iX+a.I-a.A9-h*a.AD:a.iX+a.A9+h*a.AD+(a.DE?a.AD/2:0);var f=new ZC.DQ(a);a.G.B6.load(f.o,"graph.SCALE.transform[date].item"),null!==ZC._n_(c=a.o.transform.item)&&f.append(c),f.GN=a.K+"-item "+a.A.K+"-scale-item zc-scale-item",f.K=a.K+"-date-item-"+e;var _=ZC.AO.YF(a.V[e],t,a.A.UK,a.A.NE);f.AN=_,f.Z=f.C8=a.A.Z,f.IP=a.G.usc()?ZC.AL(a.G.K+"-main"):ZC.AL(a.G.K+"-text"),f.parse(),a.AW?f.iX=s-f.I/2-(a.DE?a.AD/2:0):f.iX=s,f.iY=a.iY,a.A.AJ["3d"]&&(a.A.O7(),u=new ZC.CE(a.A,f.iX+f.I/2-ZC.AM.E1,f.iY+f.F/2-ZC.AM.E2,0),f.iX=u.EC[0]-f.I/2,f.iY=u.EC[1]-f.F/2);var d=[f.iX+f.BK,f.iY+f.BJ,f.I,f.F];if(f.AA%180==90&&(d=[f.iX+f.BK+f.I/2-f.F/2,f.iY+f.BJ+f.F/2-f.I/2,f.F,f.I]),a.A.B7&&a.A.B7.I3){for(var g=!1,v=0;v<a.A.B7.BY.length;v++)a.A.B7.BY[v].text===f.AN&&(g=!0);g||f.iX>=a.iX&&f.iX+f.I<=a.iX+a.I&&a.A.B7.BY.push({x:ZC._i_(f.iX),text:f.AN})}if(f.AP&&C){if(p=!0,!a.A0F){if(e===a.W||e===a.A1)p=!0;else for(var B=0,E=A.length;B<E;B++)if(ZC.DS(d[0],A[B][0],A[B][0]+A[B][2])||ZC.DS(d[0]+d[2],A[B][0],A[B][0]+A[B][2])){p=!1;break}f.iX+f.BK+f.I>a.iX+a.BK+a.I&&(p=!1)}if(p){A.push(d),f.paint(),f.EO();var b=new ZC.CZ(a);null!==ZC._n_(c=a.o.transform.guide)&&b.append(c),b.B1=1,b.B9="#ccc",b.parse();var D=[];if(D.push([s,a.iY],[s,a.iY+a.F]),a.A.AJ["3d"]){a.A.O7();for(var F=0,m=D.length;F<m;F++)u=new ZC.CE(a.A,D[F][0]-ZC.AM.E1,D[F][1]-ZC.AM.E2,0),D[F][0]=u.EC[0],D[F][1]=u.EC[1]}b.AP&&ZC.CO.paint(i,b,D)}}0}o=Z}}if(a.A.B7&&a.A.B7.I3&&(a.A.B7.BY=[]),a.V.length>0&&(C=!1,null!==ZC._n_(e=a.o.transform.item)&&(C=!(null!==ZC._n_(e.visible)&&!ZC._b_(e.visible))),s=!1,a.A.B7&&a.A.B7.BY&&(s=!0),C||s)){u(a.W),u(a.A1);for(var Z=a.W+1;Z<a.A1;Z++)u(Z)}}};ZC.QA=ZC.ZN.CD(QA);var QB={$i:function(e){this.b(e)},parse:function(){this.b()},J6:function(){var e=this;e.A1===e.W?e.AD=e.F-e.A9-e.BU:e.AD=(e.F-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA0:function(e){this.b(e),this.J6()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){this.b(e,i),this.J6()},NI:function(e,i,n){var t,a=this;t=a.AW?(e-a.iY-a.A9)/(a.F-a.A9-a.BU):(a.iY+a.F-a.A9-e)/(a.F-a.A9-a.BU);var l=a.B0+ZC._f_((a.BF-a.B0)*t);return n&&(l=ZC._a_(a.AW?Math.ceil(l):Math.floor(l))),"log"===a.BS&&i&&(l=Math.pow(a.DY,l)),l},AR:function(e){var i=this;if("lin"===i.BS||"log"===i.BS){var n=i.BF-i.B0,t=0===n?0:(i.F-i.A9-i.BU-(i.DE?i.AD:0))/n;return"log"===i.BS&&(e=0===e?i.FQ:ZC.FU(e,i.DY)),i.AW?i.iY+i.A9+(e-i.B0)*t:i.iY+i.F-i.A9-(e-i.B0)*t}var a=ZC.evalFn(i.BS,window);if(a&&a.valueToCoord){t=a.valueToCoord.call(i,e,{type:i.AF,x:i.iX,y:i.iY,width:i.I,height:i.F,offsetStart:i.A9,offsetEnd:i.BU,inversed:i.CM,mirrored:i.AW,minValue:i.B0,maxValue:i.BF,minValue_:i.FQ,maxValue_:i.GW});return i.AW?i.iY+i.A9+t*(i.F-i.A9-i.BU):i.iY+i.F-i.A9-t*(i.F-i.A9-i.BU)}return i.iY},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c,p,h,f,_,d=this;d.b(),"bubble"!==d.A.AF&&"scatter"!==d.A.AF||1!==d.V.length||(d.A9=d.F/2);var g=d.A0Q(),v=0,B=1,E=1,b={};for(i=0,n=d.A.BO.length;i<n;i++)d.A.BO[i].AP&&d.A.BO[i].TF&&("scale-y"===d.A.BO[i].BD.substring(0,7)&&d.A.BO[i].BA===d.BA&&v++,"scale-y"===d.A.BO[i].BD.substring(0,7)&&("default"===d.A.BO[i].BA?(b[d.A.BO[i].BD]=B,B++):(b[d.A.BO[i].BD]=E,E++)));var D=b[d.BD],F="default"===d.BA,m=null,Y=null;for(i=0,n=d.A.AY.A4.length;i<n;i++){var M=d.A.AY.A4[i],I=M.BW();if(-1!==ZC.AV(I,d.BD)){var K=d.A.BM(M.BW("k")[0]);m=K.AR(K.HC),Y=M;break}}var X=8;null!==ZC._n_(d.IV.o.size)&&(X=ZC._i_(d.IV.o.size));var x=4;null!==ZC._n_(d.IG.o.size)&&(x=ZC._i_(d.IG.o.size));var L=ZC._i_(d.A.E[d.BD+"-distance"]||-1);d.VG&&(L=0),"default"===d.BA?(_=ZC._i_(d.A.P.E0/v),t=d.iX-(D-1)*_,-1!==L&&(t=d.iX-L)):(_=ZC._i_(d.A.P.EA/v),t=d.iX+d.I+(D-1)*_,-1!==L&&(t=d.iX+d.I+L));var P=t;if(d.A.HY&&"scale-y"===d.BD&&(d.A.HY.AP=!0,d.FQ===d.B0&&d.GW===d.BF&&(d.A.HY.AP=!1),d.A.HY.AP&&0===d.A.HY.B2.BK&&"default"===d.BA&&(t-=d.A.HY.B2.I+d.B1/2)),d.E.iX=t,d.AP&&d.TF){for(var w=Math.ceil((d.A1-d.W)/(d.EJ-1)),S=Math.ceil((d.A1-d.W)/(d.M4-1)),y=d.iStepMultiplier,G=3;G>0;G--)d.iStepMultiplier>G&&d.A1-d.W<=G*d.iStepMultiplier&&(y=G);S*=y,w*=y;var O=0,N=d.AD*S/(d.FZ+1);if(d.A.AEH,l=d.A.AEH,a=d.A.AEH.getContext("2d"),r=d.A.AEH.getContext("2d"),d.TF||d.YK||null!==ZC._n_(d.A.o[d.BD])){if("inherit"===d.o["line-color"]&&-1!==g&&(d.B9=g),d.A.AJ["3d"]){if((u=ZC.DL.DD(d,d.A,t-ZC.AM.E1,t-ZC.AM.E1,d.iY-ZC.AM.E2,d.iY-ZC.AM.E2+d.F,-1,ZC.AM.FE+1,"y")).K=d.K+"-line",d.A.ES.true3d&&(d.A.ES["y-angle"]>0?u.MG=[1===d.L?-100:100,1,1]:u.MG=[1===d.L?100:-100,1,1]),d.A.CN.add(u),null!==ZC._n_(d.o.axis)){var V=new ZC.CZ(d);V.append(d.o.axis),V.parse(),V.A0=V.AE=V.B9,(u=ZC.DL.DD(V,d.A,t-ZC.AM.E1,t-ZC.AM.E1,d.iY-ZC.AM.E2,d.iY-ZC.AM.E2+d.F,-V.B1/2,V.B1/2,"y")).K=d.K+"-axis",d.A.CN.add(u)}}else{A=[[P,d.iY+d.F],[P,d.iY]];var U=d.K;d.K+="-line",ZC.CO.paint(a,d,A),d.K=U}var Q=0,k=0,W=[],R=[];if(d.TF||d.YK){if(d.V.length>0&&d.D8.AP){var J=null===ZC._n_(d.D8.o["offset-start"])?0:ZC._i_(d.D8.o["offset-start"]),H=null===ZC._n_(d.D8.o["offset-end"])?0:ZC._i_(d.D8.o["offset-end"]);if(d.D8.o.items&&d.D8.o.items.length>0&&!d.A.AJ["3d"])for(d.GU=0,Z=new ZC.HU(d),i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i%S==0){C=i-d.W,c=d.GU%d.D8.o.items.length,Z.append(d.D8.o.items[c]),Z.K=d.K+"-guide-"+i,Z.Z=d.A.Z,Z.parse(),o=d.AR(d.V[i]);var z=d.AR(d.V[Math.min(i+S,d.V.length-1)]);d.DE&&o===z&&(z=d.AR(d.V[Math.min(i-S,d.V.length-1)]),z=o-Math.abs(o-z)),Z.iX=d.iX+J,Z.iY=d.AW?o:z,Z.I=d.I-J-H,Z.F=Math.abs(o-z),Z.paint(),d.GU++}if(d.D8.B1>0)for(d.GU=0,i=d.W;i<=d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%S==0){(d.D8.E6.length>0||i===d.W||"log"===d.BS)&&((s=new ZC.CZ(d)).Z=s.C8=l,"log"===d.BS?ZC.AQ._int_(ZC.FU(d.V[i],d.DY))?s.copy(d.D8):s.copy(d.G8):s.copy(d.D8),s.IQ=ce,s.DG()&&s.parse()),A=[],C=i-d.W;var T=d.iX+J,j=d.I-J-H;if(o=(d.BS,d.AR(d.V[i])),s.AP)if(d.A.AJ["3d"]){var q=new ZC.CZ(d);q.copy(s),null!==ZC._n_(d.o["scale-z"])&&null!==ZC._n_(e=d.o["scale-z"].guide)&&(q.append(e),q.parse()),q.A0=q.AE=q.B9,u=ZC.DL.DD(q,d.A,t-ZC.AM.E1,t-ZC.AM.E1,o-ZC.AM.E2-q.B1/2,o-ZC.AM.E2+q.B1/2,0,ZC.AM.FE,"y"),d.A.CN.add(u),s.A0=s.AE=s.B9,(u=ZC.DL.DD(s,d.A,T-ZC.AM.E1,T-ZC.AM.E1+j,o-ZC.AM.E2-s.B1/2,o-ZC.AM.E2+s.B1/2,ZC.AM.FE+2,ZC.AM.FE+2,"x")).K=d.K+"-guide-"+i,d.A.CN.add(u)}else A.push([T,o],[T+j,o]),s.K=d.K+"-guide-"+i,ZC.CO.paint(r,s,A);d.GU++}}if(d.V.length>0&&d.G8.AP&&N>2&&!d.A.AJ["3d"]){if(d.G8.o.items&&d.G8.o.items.length>0)for(Z=new ZC.HU(d),i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i%S==0)for(C=i-d.W,d.GU=0,p=1;p<=d.FZ;p++)c=d.GU%d.G8.o.items.length,Z.append(d.G8.o.items[c]),Z.K=d.K+"-guide-"+i+"-"+p,Z.Z=d.A.Z,Z.parse(),Z.iX=d.iX,o=d.AW?d.iY+d.A9+C*d.AD+p*N:d.iY+d.F-d.A9-C*d.AD-(p+1)*N,Z.iY=o,Z.I=d.I,Z.F=N,Z.paint(),d.GU++;if(d.G8.B1>0&&"log"!==d.BS)for(i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%S==0)for(C=i-d.W,d.GU=0,p=1;p<=d.FZ;p++)A=[],(s=new ZC.CZ(d)).copy(d.G8),s.IQ=ce,s.DG()&&s.parse(),o="log"===d.BS?d.AR(d.V[i]+p*(d.V[i+1]-d.V[i])/(d.FZ+1)):d.AR(d.V[i]+p*w*(d.V[i+1]-d.V[i])/(d.FZ+1)),ZC.DS(o,d.iY,d.iY+d.F)&&(A.push([d.iX,o],[d.iX+d.I,o]),s.AP&&(s.K=d.K+"-minor-guide-"+p,ZC.CO.paint(r,s,A))),d.GU++}var $,ee,ie;if(d.VL(r,g),d.V.length>0&&d.IV.AP){switch(d.IV.o.placement){case"inner":break;case"outer":O+=X;break;default:O+=X/2}for(d.GU=0,h=ZC.AV(d.V,0),i=d.W;i<=d.A1+(d.DE?1:0);i++){d.KA=i;var ne=-1;if((i===d.W||i===d.A1||i%S==0||ZC._b_(d.o["show-zero"])&&i===h)&&(A=[],C=i-d.W,(d.IV.E6.length>0||i===d.W||"log"===d.BS)&&(s=new ZC.CZ(d),"log"===d.BS?ZC.AQ._int_(ZC.FU(d.V[i],d.DY))?s.copy(d.IV):(s.copy(d.IG),ne=X,X=x):s.copy(d.IV),"inherit"===d.IV.o["line-color"]&&-1!==g&&(s.B9=g),s.IQ=ce,s.DG()&&s.parse()),o=(d.BS,d.AR(d.V[i])),ZC.DS(o,d.A.P.iY,d.A.P.iY+d.A.P.F))){switch(s.o.placement){case"ref-right":A.push([m,o],[m+X,o]);break;case"ref-left":A.push([m,o],[m-X,o]);break;case"ref-auto":A.push([m-X/2,o],[m+X/2,o]);break;case"inner":A.push([t,o],[t+(F?X:-X),o]);break;case"outer":A.push([t,o],[t-(F?X:-X),o]);break;default:A.push([t+X/2,o],[t-X/2,o])}if(-1!==ne&&(X=ne,ne=-1),s.AP){for(ee=ZC._i_(s.o["offset-x"]||"0"),ie=ZC._i_(s.o["offset-y"]||"0"),$=0;$<A.length;$++)A[$][0]+=ee,A[$][1]+=ie;if(s.K=d.K+"-tick-"+i,d.A.AJ["3d"])if(d.A.ES.true3d){var te,ae=[];for($=0;$<A.length;$++)te=new ZC.CE(d.A,A[$][0]-ZC.AM.E1,A[$][1]-ZC.AM.E2,0),ae.push([te.EC[0],te.EC[1]]);ZC.CO.paint(a,s,ae)}else{var le=this.A.ES.angle||45;for($=0;$<A.length;$++)A[$][0]-=ZC.EF(le)*ZC.AM.FE/2,A[$][1]+=ZC.EL(le)*ZC.AM.FE/2;ZC.CO.paint(a,s,A)}else ZC.CO.paint(a,s,A)}d.GU++}}}if(d.V.length>0&&d.IG.AP&&d.FZ>0&&N>5&&!d.A.AJ["3d"]&&"log"!==d.BS)for(i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%S==0)for(C=i-d.W,d.GU=0,p=1;p<=d.FZ;p++){if(A=[],(s=new ZC.CZ(d)).copy(d.IG),"inherit"===d.IG.o["line-color"]&&-1!==g&&(s.B9=g),s.IQ=ce,s.DG()&&s.parse(),o="log"===d.BS?d.AR(d.V[i]+p*(d.V[i+1]-d.V[i])/(d.FZ+1)):d.AR(d.V[i]+p*w*(d.V[i+1]-d.V[i])/(d.FZ+1)),ZC.DS(o,d.iY,d.iY+d.F)){switch(s.o.placement){case"ref-right":A.push([m,o],[m+x,o]);break;case"ref-left":A.push([m,o],[m-x,o]);break;case"ref-auto":A.push([m-x/2,o],[m+x/2,o]);break;case"inner":A.push([t,o],[t+(F?x:-x),o]);break;default:A.push([t,o],[t-(F?x:-x),o]);break;case"cross":A.push([t+x/2,o],[t-x/2,o])}if(s.AP){for(ee=ZC._i_(s.o["offset-x"]||"0"),ie=ZC._i_(s.o["offset-y"]||"0"),$=0;$<A.length;$++)A[$][0]+=ee,A[$][1]+=ie;s.K=d.K+"-minor-tick-"+i,ZC.CO.paint(a,s,A)}}d.GU++}d.XV();var re=null,oe=d.CL,Ae=d.DV,Ce=function(e){var i;if(d.KA=e,C=e-d.W,(d.BQ.E6.length>0||e===d.W||!f||d.BQ.HZ)&&(f=new ZC.DQ(d)),f.copy(d.BQ),f.GN=d.K+"-item "+d.A.K+"-scale-item zc-scale-item",f.K=d.A.K+"-"+d.BD.replace(/\-/g,"_")+"-item_"+e,d.CL=oe,d.DV=Ae,d.Z5(ce),i=("piano"===d.A.AF||d.Q3)&&d.BY.length?d.FT(e+d.B0-d.FQ):d.FT(e),d.BQ.HZ){var n=d.A.H2();ZC._cp_({index:e,cnt:C,text:i},n),d.H8(d.BQ,f,null,n,d.BQ.MN)}if(null===ZC._n_(d.LW)||-1!==ZC.AV(d.LW,i)){switch(f.AN=i,f.Z=f.C8=d.A.Z,f.IP=d.G.usc()?ZC.AL(d.G.K+"-main"):ZC.AL(d.G.K+"-text"),f.parse(),"inherit"!==d.BQ.o["font-color"]&&"inherit"!==d.BQ.o.color||-1===g||(f.C2=g),f.IQ=ce,f.DG()&&f.parse(),f.o.placement){case"ref-left":f.iX=m-f.I-X;break;case"ref-right":f.iX=m+X;break;case"ref-auto":Y&&Y.S[e]?(Y.FM(e).setup(),Y.FM(e).iX<m?f.iX=m+X:f.iX=m-f.I-X):f.iX=m+X;break;case"middle":f.iX=t-f.I/2;break;case"inner":f.iX=F?t+X:t-f.I-X;break;default:f.iX=F?t-f.I-X:t+X}if("log"===d.BS?f.iY=d.AR(d.V[e])-f.F/2:f.iY=d.AR(d.V[e])-f.F/2+(d.AW?1:-1)*(d.DE?d.AD/2:0),re=d.N1(f,re,"v"),d.BQ.o["auto-align"]&&d.BQ.AA%180!=0){var a=F?1:-1;90===d.BQ.AA||270===d.BQ.AA?f.iX+=a*(f.I/2-f.F/2):ZC.DS(d.BQ.AA,0,90)||ZC.DS(d.BQ.AA,270,360)?(f.iX+=a*(f.I-f.I*ZC.EF(d.BQ.AA))/2,f.iY-=a*f.I*ZC.EL(d.BQ.AA)/2):ZC.DS(d.BQ.AA,90,270)&&(f.iX+=a*(f.I+f.I*ZC.EF(d.BQ.AA))/2,f.iY+=a*f.I*ZC.EL(d.BQ.AA)/2)}if(ZC.DS(f.iY+f.F/2,d.A.P.iY-1,d.A.P.iY+d.A.P.F+1)||d.A.AJ["3d"]){var l=d.X8(f,e,{items:0,lcoords:W,lstep:w,tdim:Q,mdim:k,dim:"w",html:R});Q=l.tdim,k=l.mdim,d.GU++}}};if(d.V.length>0&&d.BQ.AP)if("log"===d.BS){var se=[];for(i=d.W;i<=d.A1;i++)ZC.AQ._int_(ZC.FU(d.V[i],d.DY))&&(d.GU=i,Ce(i),se.push(i));for(i=d.W;i<=d.A1;i++)-1===ZC.AV(se,i)&&(d.GU=i,Ce(i))}else for(d.GU=0,Ce(d.W),d.GU=d.A1-d.W,Ce(d.A1),-1!==(h=ZC.AV(d.V,0))&&ZC._b_(d.o["show-zero"])&&(d.GU=h,Ce(h)),d.GU=1,i=d.W+1;i<d.A1;i++)i%w==0&&Ce(i)}if(d.M.AP&&d.M.AN&&""!==d.M.AN){(f=new ZC.DQ(d)).copy(d.M),f.K=d.A.K+"-"+d.BD.replace(/\-/g,"_")+"-item_title",f.GN=d.K+"-label "+d.A.K+"-scale-label zc-scale-label",f.AN=d.M.AN,f.Z=d.A.Z,f.IP=d.G.usc()?ZC.AL(d.G.K+"-main"):ZC.AL(d.G.K+"-text"),f.parse(),"inherit"!==d.M.o["font-color"]&&"inherit"!==d.M.o.color||-1===g||(f.C2=g);var ue=d.iY+(d.AW?d.A9:d.BU),Ze=d.F-d.BU-d.A9;switch("chart"===f.o["center-point"]&&(ue=d.A.iY,Ze=d.A.F),f.K3){case"top":f.iY=ue+f.I/2-f.F/2;break;case"middle":f.iY=ue+Ze/2-f.F/2;break;case"bottom":f.iY=ue+Ze-f.I/2-f.F/2}f.iX=F?t-f.I/2-f.F/2-O-k:t+k+f.F/2+O-f.I/2,d.M.iX=f.iX,d.M.iY=f.iY,f.AP&&(d.N1(f,null,"v",10),f.paint(),f.EO())}R.length>0&&ZC.AL(d.A.A.K+"-map")&&(ZC.AL(d.A.A.K+"-map").innerHTML+=R.join(""))}}function ce(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,d.A1-d.W)).replace(/(%c)|(%scale-position)/g,d.GU)).replace(/(%i)|(%scale-index)/g,d.KA)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(d.V[d.KA])?d.V[d.KA]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(d.BY[d.KA])?d.BY[d.KA]:"")}}};ZC.QB=ZC.WA.CD(QB);var SZ={$i:function(e){this.b(e),this.CM=!0},parse:function(){this.b()},J6:function(){var e=this;e.A1===e.W?e.AD=e.F-e.A9-e.BU:e.AD=(e.F-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA0:function(e){this.b(e),this.J6()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){this.b(e,i),this.J6()},NI:function(e){var i,n=this;i=n.AW?(e-n.iY-n.A9)/(n.F-n.A9-n.BU):(n.iY+n.F-n.A9-e)/(n.F-n.A9-n.BU);var t=n.B0,a=n.BF;"log"===n.BS&&(t=ZC.FU(t,n.DY),a=ZC.FU(a,n.DY));var l=t+ZC._f_((a-t)*i);return"log"===n.BS&&(l=Math.pow(n.DY,l)),l},OL:function(e,i,n){var t,a,l,r,o=this;void 0===n&&(n=!1);var A=o.DE?o.AD:0;l=o.AW?(e-o.iY-o.A9-A/2)/(o.F-o.A9-o.BU-A):(o.iY+o.F-e-o.A9-A/2)/(o.F-o.A9-o.BU-A);var C=!1;if(i)for(r in i.K9){C=!0;break}if(i&&!o.NW&&C){var s=o.V[o.W];"string"==typeof s&&(s=ZC.AV(o.IU,s)),"log"===o.BS&&(s=ZC.FU(s,o.DY));var u=o.V[o.A1];"string"==typeof u&&(u=ZC.AV(o.IU,u)),"log"===o.BS&&(u=ZC.FU(u,o.DY));var Z=s+ZC._f_((u-s)*l);"log"===o.BS&&(Z=Math.pow(o.DY,Z));var c=ZC.MAX;for(r in a=null,i.K9)(t=Math.abs(r-Z))<c&&(c=t,a=i.K9[r]);if(null===ZC._n_(a)&&(a=Z),c>i.A2G){var p=Math.ceil((u-s)/(o.I-o.A9-o.BU));if(i.V.length<2&&(p*=100),c>p)return null}return a}var h=o.W,f=o.A1;return o.EI&&(null!==ZC._n_(t=o.V[h])&&(h=t),null!==ZC._n_(t=o.V[f])&&(f=t)),"log"===o.BS&&(h=ZC.FU(h,o.DY),f=ZC.FU(f,o.DY)),a=n?o.DE?h+(f-h+1)*l:h+(f-h)*l:(o.DE,o.W+(o.A1-o.W)*l),"log"===o.BS?(a=Math.pow(o.DY,a),a=Math.floor(a)-1):(a=ZC._i_(a),a=ZC.BR(0,a),a=ZC.CY(o.DP,a)),a},II:function(e){var i=this;i.W,i.A1;return i.EI&&!i.NW&&(i.B0,i.BF),"log"===i.BS&&(e=ZC.FU(e+1,i.DY)),i.AW?i.iY+i.A9+(e-i.W)*i.AD+(i.DE?i.AD/2:0):i.iY+i.F-i.A9-(e-i.W)*i.AD-(i.DE?i.AD/2:0)},AR:function(e){var i,n,t,a,l,r=this;if("log"===r.BS&&(0===e&&(e=r.B0),e=ZC.FU(e,r.DY)),r.NW){var o=r.U9[e];return r.II(o)}if(-1!==(i=ZC.AV(r.IU,e)))return r.II(i);if(!r.A4L&&(r.EI||r.F7&&"date"===r.F7.o.type)){a=r.V[r.W],l=r.V[r.A1];var A=r.F;return"log"===r.BS&&(a=ZC.FU(a,r.DY),l=ZC.FU(l,r.DY),r.W===r.D4&&r.A1===r.DP&&(A=(r.A1-r.W)*r.AD+r.A9+r.BU)),l===a?t=0:(n=l-a,t=(A-r.A9-r.BU-(r.DE?r.AD:0))/n),r.AW?r.iY+r.A9+(e-a)*t+(r.DE?r.AD/2:0):r.iY+A-r.A9-(e-a)*t-(r.DE?r.AD/2:0)}return a=r.B0,l=r.BF,"log"===r.BS&&(a=ZC.FU(a,r.DY),l=ZC.FU(l,r.DY)),l===a?t=0:(n=l-a+(r.DE?1:0),t=(r.F-r.A9-r.BU)/n),r.AW?r.iY+r.A9+(e-a)*t+(r.DE?r.AD/2:0):r.iY+r.F-r.A9-(e-a)*t-(r.DE?r.AD/2:0)},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c,p,h,f=this;if(f.AP){f.b(),null!==ZC._n_(f.A.A.E[f.A.K+"-"+f.BD+"-feed-offset-start"])&&(f.A9=f.A.A.E[f.A.K+"-"+f.BD+"-feed-offset-start"]),"hbubble"!==f.A.AF&&"hscatter"!==f.A.AF||(-1===f.A9&&-1===f.BU||1===f.V.length)&&(f.A9=f.BU=f.F/(f.V.length+1),f.J6());var _=f.A0Q(),d=0,g=1,v=1,B={};for(i=0,n=f.A.BO.length;i<n;i++)"scale-x"===f.A.BO[i].BD.substring(0,7)&&f.A.BO[i].BA===f.BA&&d++,"scale-x"===f.A.BO[i].BD.substring(0,7)&&("default"===f.A.BO[i].BA?(B[f.A.BO[i].BD]=g,g++):(B[f.A.BO[i].BD]=v,v++));var E=B[f.BD],b="default"===f.BA,D=null,F=null;for(i=0,n=f.A.AY.A4.length;i<n;i++){var m=f.A.AY.A4[i],Y=m.BW();if(-1!==ZC.AV(Y,f.BD)){var M=f.A.BM(m.BW("v")[0]);D=M.AR(M.HC),F=m;break}}var I=8;null!==ZC._n_(f.IV.o.size)&&(I=ZC._i_(f.IV.o.size));var K=4;null!==ZC._n_(f.IG.o.size)&&(K=ZC._i_(f.IG.o.size));var X=ZC._i_(f.A.E[f.BD+"-distance"]||-1);f.VG&&(X=0),"default"===f.BA?(t=ZC._i_(f.A.P.E0/d),a=f.iX-(E-1)*t,-1!==X&&(a=f.iX-X)):(t=ZC._i_(f.A.P.EA/d),a=f.iX+f.I+(E-1)*t,-1!==X&&(a=f.iX+f.I+X));var x=a;if(f.A.HO&&"scale-x"===f.BD&&(f.A.HO.AP=!0,f.D4===f.W&&f.DP===f.A1&&(f.A.HO.AP=!1),f.A.HO.AP&&0===f.A.HO.B2.BK&&"default"===f.BA&&(a-=f.A.HO.B2.I+f.B1/2-f.A.HO.BK)),f.E.iX=a,f.AP&&f.TF){null!==ZC._n_(f.o["fixed-items"])&&(f.M4=f.EJ=ZC._i_(f.o["fixed-items"]));var L=Math.ceil((f.A1-f.W)/(f.M4-1)),P=Math.ceil((f.A1-f.W)/(f.EJ-1));null===ZC._n_(f.o["fixed-items"])&&ZC._b_(f.o.normalize)&&(L=ZC.AQ.A0S(L),P=ZC.AQ.A0S(P));for(var w=f.iStepMultiplier,S=3;S>0;S--)f.iStepMultiplier>S&&f.A1-f.W<=S*f.iStepMultiplier&&(w=S);L*=w,P*=w;var y,G,O,N=0,V=f.AD*L/(f.FZ+1);if(null===ZC._n_(D)&&(D=a),f.A.AEH,r=f.A.AEH,l=f.A.AEH.getContext("2d"),o=f.A.AEH.getContext("2d"),"inherit"===f.o["line-color"]&&-1!==_&&(f.B9=_),f.A.AJ["3d"])(Z=ZC.DL.DD(f,f.A,a-ZC.AM.E1,a-ZC.AM.E1,f.iY-ZC.AM.E2,f.iY-ZC.AM.E2+f.F,-1,ZC.AM.FE+1,"y")).K=f.K+"-line",f.A.ES.true3d&&(f.A.ES["x-angle"]>0?Z.MG=[1===f.L?-100:100,1,1]:Z.MG=[1===f.L?100:-100,1,1]),f.A.CN.add(Z);else{C=[[x,f.iY+f.F],[x,f.iY]];var U=f.K;f.K+="-line",ZC.CO.paint(l,f,C),f.K=U}if(f.V.length>0&&f.D8.AP){var Q=null===ZC._n_(f.D8.o["offset-start"])?0:ZC._i_(f.D8.o["offset-start"]),k=null===ZC._n_(f.D8.o["offset-end"])?0:ZC._i_(f.D8.o["offset-end"]);if(f.D8.o.items&&f.D8.o.items.length>0&&!f.A.AJ["3d"])for(c=new ZC.HU(f),i=f.W;i<f.A1+(f.DE?1:0);i++)A=i-f.W,h=i%f.D8.o.items.length,c.append(f.D8.o.items[h]),c.K=f.K+"-guide-"+i,c.Z=f.A.Z,c.parse(),c.iX=f.iX+Q,f.AW?c.iY=f.iY+f.A9+A*f.AD:c.iY=f.iY+f.F-f.A9-(A+1)*f.AD,c.I=f.I-Q-k,c.F=f.AD,c.paint();if(f.D8.B1>0)for(f.GU=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.KA=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%L==0){(f.D8.E6.length>0||i===f.W)&&((u=new ZC.CZ(f)).Z=u.C8=r,u.copy(f.D8),u.IQ=Ze,u.DG()&&u.parse()),A=i-f.W,C=[],s=f.AW?f.iY+f.A9+A*f.AD:f.iY+f.F-f.A9-A*f.AD;var W=f.iX+Q,R=f.I-Q-k;if(u.AP)if(f.A.AJ["3d"]){var J=new ZC.CZ(f);J.copy(u),null!==ZC._n_(f.o["scale-z"])&&null!==ZC._n_(e=f.o["scale-z"].guide)&&(J.append(e),J.parse()),J.A0=J.AE=J.B9,Z=ZC.DL.DD(J,f.A,a-ZC.AM.E1,a-ZC.AM.E1,s-ZC.AM.E2-J.B1/2,s-ZC.AM.E2+J.B1/2,0,ZC.AM.FE,"z"),f.A.CN.add(Z),u.A0=u.AE=u.B9,(Z=ZC.DL.DD(u,f.A,W-ZC.AM.E1,W-ZC.AM.E1+R,s-ZC.AM.E2-J.B1/2,s-ZC.AM.E2+J.B1/2,ZC.AM.FE+2,ZC.AM.FE+2,"x")).K=f.K+"-guide-"+i,f.A.CN.add(Z)}else C.push([W,s],[W+R,s]),u.K=f.K+"-guide-"+i,ZC.CO.paint(o,u,C);f.GU++}}if(f.V.length>0&&f.G8.AP&&!f.A.AJ["3d"]){if(f.G8.o.items&&f.G8.o.items.length>0)for(c=new ZC.HU(f),i=f.W;i<f.A1+(f.DE?1:0);i++)for(f.KA=i,A=i-f.W,f.GU=0,p=1;p<=f.FZ;p++)h=f.GU%f.G8.o.items.length,c.append(f.G8.o.items[h]),c.K=f.K+"-guide-"+i+"-"+p,c.Z=f.A.Z,c.parse(),c.iX=f.iX,f.AW?c.iY=f.iY+f.A9+(A+1)*f.AD-(p+1)*V:c.iY=f.iY+f.F-f.A9-(A+1)*f.AD+p*V,c.I=f.I,c.F=V,c.paint(),f.GU++;if(f.G8.B1>0)for(i=f.W;i<f.A1+(f.DE?1:0);i++)if(f.KA=i,i%L==0)for(A=i-f.W,f.GU=0,p=1;p<=f.FZ;p++)C=[],(u=new ZC.CZ(f)).copy(f.G8),u.IQ=Ze,u.DG()&&u.parse(),s="log"===f.BS?f.AR(f.V[i]+p*f.V[i+1]/(f.FZ+2)):f.AW?f.iY+f.A9+A*f.AD+p*V:f.iY+f.F-f.A9-A*f.AD-p*V,ZC.DS(s,f.iY,f.iY+f.F)&&(C.push([f.iX,s],[f.iX+f.I,s]),u.AP&&(u.K=f.K+"-minor-guide-"+p,ZC.CO.paint(o,u,C))),f.GU++}if(f.VL(o,_),f.V.length>0&&f.IV.AP){switch(f.IV.o.placement){case"inner":break;case"outer":N+=I;break;default:N+=I/2}for(f.GU=0,i=f.W;i<=f.A1+(f.DE?1:0);i++)if(f.KA=i,i===f.W||i===f.A1+(f.DE?1:0)||(i-f.W)%L==0){switch(C=[],A=i-f.W,(f.IV.E6.length>0||i===f.W)&&((u=new ZC.CZ(f)).copy(f.IV),"inherit"===f.IV.o["line-color"]&&-1!==_&&(u.B9=_),u.IQ=Ze,u.DG()&&u.parse()),s=f.AW?f.iY+f.A9+A*f.AD:f.iY+f.F-f.A9-A*f.AD,u.o.placement){case"ref-auto":C.push([D-I/2,s],[D+I/2,s]);break;case"ref-left":C.push([D-I,s],[D,s]);break;case"ref-right":C.push([D+I,s],[D,s]);break;case"inner":C.push([a,s],[a+(b?I:-I),s]);break;case"outer":C.push([a,s],[a-(b?I:-I),s]);break;default:C.push([a+I/2,s],[a-I/2,s])}if(u.AP){for(G=ZC._i_(u.o["offset-x"]||"0"),O=ZC._i_(u.o["offset-y"]||"0"),y=0;y<C.length;y++)C[y][0]+=G,C[y][1]+=O;if(u.K=f.K+"-tick-"+i,f.A.AJ["3d"])if(f.A.ES.true3d){var H,z=[];for(y=0;y<C.length;y++)H=new ZC.CE(f.A,C[y][0]-ZC.AM.E1,C[y][1]-ZC.AM.E2,0),z.push([H.EC[0],H.EC[1]]);ZC.CO.paint(l,u,z)}else{var T=this.A.ES.angle||45;for(y=0;y<C.length;y++)C[y][0]-=ZC.EF(T)*ZC.AM.FE/2,C[y][1]+=ZC.EL(T)*ZC.AM.FE/2;ZC.CO.paint(l,u,C)}else ZC.CO.paint(l,u,C)}f.GU++}}var j,q=[];if(f.V.length>0&&f.FZ>0&&f.IG.AP&&!f.A.AJ["3d"])for(i=f.W;i<f.A1+(f.DE?1:0);i++)if(i===f.W||i===f.A1+(f.DE?1:0)||i%L==0)for(A=i-f.W,p=1;p<=f.FZ;p++){if(C=[],(u=new ZC.CZ(f)).copy(f.IG),"inherit"===f.IG.o["line-color"]&&-1!==_&&(u.B9=_),u.IQ=Ze,u.DG()&&u.parse(),"log"===f.BS){var $=Math.round(ZC.FU(f.V[i],f.DY)),ee=f.V[i]+p*f.V[i+1]/(f.FZ+2);ee=$<0?ZC._f_(ee.toFixed(-$)):ZC._f_(ee.toFixed($)),q.push(ee),s=f.AR(ee)}else s=f.AW?f.iY+f.A9+A*f.AD+p*V:f.iY+f.F-f.A9-A*f.AD-p*V;if(ZC.DS(s,f.iY,f.iY+f.F)){switch(u.o.placement){case"ref-auto":C.push([D-K/2,s],[D+K/2,s]);break;case"ref-left":C.push([D-K,s],[D,s]);break;case"ref-right":C.push([D+K,s],[D,s]);break;case"inner":C.push([a,s],[a+(b?K:-K),s]);break;case"outer":C.push([a,s],[a-(b?K:-K),s]);break;default:C.push([a+K/2,s],[a-K/2,s])}if(u.AP){for(G=ZC._i_(u.o["offset-x"]||"0"),O=ZC._i_(u.o["offset-y"]||"0"),y=0;y<C.length;y++)C[y][0]+=G,C[y][1]+=O;u.K=f.K+"-minor-tick-"+i,ZC.CO.paint(l,u,C)}}f.GU++}f.XV();var ie=null,ne=f.CL,te=f.DV,ae=0,le=0,re=0,oe=[],Ae=[];if(1===f.V.length&&f.BQ.AP)f.GU=0,ce(f.W);else if(f.V.length>1&&f.BQ.AP)for(f.GU=0,ce(f.W),f.GU=f.A1-f.W,ce(f.A1),f.GU=1,i=f.W+1;i<f.A1;i++)(i-f.W)%P==0&&ce(i);for(i=0;i<q.length;i++){var Ce=f.FT(i,null,null,!1,q[i]);ce(Ce,!0,Ce)}if(f.M.AP&&f.M.AN&&""!==f.M.AN){(j=new ZC.DQ(f)).copy(f.M),j.K=f.A.K+"-"+f.BD.replace(/\-/g,"_")+"-item_title",j.GN=f.K+"-label "+f.A.K+"-scale-label zc-scale-label",j.AN=f.M.AN,j.Z=f.A.Z,j.IP=f.G.usc()?ZC.AL(f.G.K+"-main"):ZC.AL(f.G.K+"-text"),j.parse(),"inherit"!==f.M.o["font-color"]&&"inherit"!==f.M.o.color||-1===_||(j.C2=_);var se=f.iY+(f.AW?f.A9:f.BU),ue=f.F-f.A9-f.BU;switch("chart"===j.o["center-point"]&&(se=f.A.iY,ue=f.A.F),j.K3){case"top":j.iY=se+j.I/2-j.F/2;break;case"middle":j.iY=se+ue/2-j.F/2;break;case"bottom":j.iY=se+ue-j.I/2-j.F/2}j.iX=b?a-j.I/2-j.F/2-N-le:a+j.F/2+le+N-j.I/2,f.M.iX=j.iX,f.M.iY=j.iY,j.AP&&(f.N1(j,null,"v"),j.paint(),j.EO())}Ae.length>0&&ZC.AL(f.A.A.K+"-map")&&(ZC.AL(f.A.A.K+"-map").innerHTML+=Ae.join(""))}}function Ze(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,f.A1-f.W)).replace(/(%c)|(%scale-position)/g,f.GU)).replace(/(%i)|(%scale-index)/g,f.KA)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(f.V[f.KA])?f.V[f.KA]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(f.BY[f.KA])?f.BY[f.KA]:"")}function ce(e,i,n){f.KA=e,A=e-f.W,(f.BQ.E6.length>0||e===f.W||!j||f.BQ.HZ)&&(j=new ZC.DQ(f)),j.copy(f.BQ),j.K=f.A.K+"-"+f.BD.replace(/\-/g,"_")+"-item_"+(n?"c"+n:e),j.GN=f.K+"-item "+f.A.K+"-scale-item zc-scale-item",j.E["p-height"]=f.AD,f.CL=ne,f.DV=te,f.Z5(Ze);var t="";if(t=n||f.FT(e),f.BQ.HZ){var l=f.A.H2();ZC._cp_({index:e,cnt:A,text:t},l),f.H8(f.BQ,j,null,l,f.BQ.MN)}if(null===ZC._n_(f.LW)||-1!==ZC.AV(f.LW,t)){switch(j.AN=t,j.Z=j.C8=f.A.Z,j.IP=f.G.usc()?ZC.AL(f.G.K+"-main"):ZC.AL(f.G.K+"-text"),j.E.nodeidx=e,j.parse(),"inherit"!==f.BQ.o["font-color"]&&"inherit"!==f.BQ.o.color||-1===_||(j.C2=_),j.IQ=Ze,j.DG()&&j.parse(),j.o["auto-fit"]&&(j.F=ZC._i_(f.AD)),j.o.placement){case"inner":j.iX=b?a+I:a-j.I-I;break;case"ref-left":j.iX=D-j.I-I;break;case"ref-right":j.iX=D+I;break;case"ref-auto":F&&F.S[e]?(F.S[e].setup(),F.S[e].iX<D?j.iX=D+I:j.iX=D-j.I-I):j.iX=D+I;break;default:j.iX=b?a-j.I-I:a+I}if(i?(s=f.AR(e),j.iY=s-j.F/2-(f.DE?f.AD/2:0)):f.AW?j.iY=f.iY+f.A9+A*f.AD-j.F/2+(f.DE?f.AD/2:0):j.iY=f.iY+f.F-f.A9-A*f.AD-j.F/2-(f.DE?f.AD/2:0),ie=f.N1(j,ie,"v"),f.BQ.o["auto-align"]&&f.BQ.AA%180!=0){var r=b?1:-1;90===f.BQ.AA||270===f.BQ.AA?j.iX+=r*(j.I/2-j.F/2):ZC.DS(f.BQ.AA,0,90)||ZC.DS(f.BQ.AA,270,360)?(j.iX+=r*(j.I-j.I*ZC.EF(f.BQ.AA))/2,j.iY-=r*j.I*ZC.EL(f.BQ.AA)/2):ZC.DS(f.BQ.AA,90,270)&&(j.iX+=r*(j.I+j.I*ZC.EF(f.BQ.AA))/2,j.iY+=r*j.I*ZC.EL(f.BQ.AA)/2)}var o=f.X8(j,e,{items:re,lcoords:oe,lstep:P,tdim:ae,mdim:le,dim:"w",html:Ae});ae=o.tdim,le=o.mdim,f.GU++}}}};ZC.SZ=ZC.ZN.CD(SZ);var T0={$i:function(e){this.b(e),this.CM=!0},parse:function(){this.b()},J6:function(){var e=this;e.A1===e.W?e.AD=e.I-e.A9-e.BU:e.AD=(e.I-e.A9-e.BU)/(e.A1-e.W+(e.DE?1:0))},AA0:function(e){this.b(e),this.J6()},zoomTo:function(e,i){this.b(e,i),this.J6()},clear:function(){},build:function(){this.b()},NI:function(e,i){var n,t=this;n=t.AW?(t.iX+t.I-t.A9-e)/(t.I-t.A9-t.BU):(e-t.iX-t.A9)/(t.I-t.A9-t.BU);var a=t.B0+ZC._f_((t.BF-t.B0)*n);return"log"===t.BS&&i&&(a=Math.pow(t.DY,a)),a},AR:function(e){var i=this;if("lin"===i.BS||"log"===i.BS){var n=i.BF-i.B0,t=0===n?0:(i.I-i.A9-i.BU-(i.DE?i.AD:0))/n;return"log"===i.BS&&(e=0===e?i.FQ:ZC.FU(e,i.DY)),i.AW?i.iX+i.I-i.A9-(e-i.B0)*t:i.iX+i.A9+(e-i.B0)*t}var a=ZC.evalFn(i.BS,window);if(a&&a.valueToCoord){t=a.valueToCoord.call(i,e,{type:i.AF,x:i.iX,y:i.iY,width:i.I,height:i.F,offsetStart:i.A9,offsetEnd:i.BU,inversed:i.CM,mirrored:i.AW,minValue:i.B0,maxValue:i.BF,minValue_:i.FQ,maxValue_:i.GW});return i.AW?i.iX+i.I-i.A9-t*(i.I-i.A9-i.BU):i.iX+i.A9+t*(i.I-i.A9-i.BU)}return i.iX},paint:function(){var e,i,n,t,a,l,r,o,A,C,s,u,Z,c,p,h,f,_,d=this;if(d.AP&&0!==d.V.length){d.b(),"hbubble"!==d.A.AF&&"hscatter"!==d.A.AF||1!==d.V.length||(d.A9=d.I/2);var g=d.A0Q(),v=0,B=1,E=1,b={};for(i=0,n=d.A.BO.length;i<n;i++)"scale-y"===d.A.BO[i].BD.substring(0,7)&&d.A.BO[i].BA===d.BA&&v++,"scale-y"===d.A.BO[i].BD.substring(0,7)&&("default"===d.A.BO[i].BA?(b[d.A.BO[i].BD]=B,B++):(b[d.A.BO[i].BD]=E,E++));var D=b[d.BD],F="default"===d.BA;for(i=0,n=d.A.AY.A4.length;i<n;i++){var m=d.A.AY.A4[i],Y=m.BW();if(-1!==ZC.AV(Y,d.BD)){var M=d.A.BM(m.BW("k")[0]);M.AR(M.HC),m;break}}var I=8;null!==ZC._n_(d.IV.o.size)&&(I=ZC._i_(d.IV.o.size));var K=4;null!==ZC._n_(d.IG.o.size)&&(K=ZC._i_(d.IG.o.size));var X=ZC._i_(d.A.E[d.BD+"-distance"]||-1);d.VG&&(X=0),"default"===d.BA?(c=ZC._i_(d.A.P.DW/v),t=d.iY+d.F+(D-1)*c,-1!==X&&(t=d.iY+d.F+X)):(c=ZC._i_(d.A.P.EB/v),t=d.iY-(D-1)*c,-1!==X&&(t=d.iY-X));var x=t;if(d.A.HY&&(d.A.HY.AP=!0,d.FQ===d.B0&&d.GW===d.BF&&(d.A.HY.AP=!1),d.A.HY.AP&&0===d.A.HY.B2.BJ&&"default"===d.BA&&(t+=d.A.HY.B2.F+d.B1/2)),d.E.iY=t,d.AP&&d.TF){for(var L=Math.ceil((d.A1-d.W)/(d.EJ-1)),P=Math.ceil((d.A1-d.W)/(d.M4-1)),w=d.iStepMultiplier,S=3;S>0;S--)d.iStepMultiplier>S&&d.A1-d.W<=S*d.iStepMultiplier&&(w=S);P*=w,L*=w;var y=0,G=d.AD*P/(d.FZ+1);if(d.A.AEH,l=d.A.AEH,a=d.A.AEH.getContext("2d"),r=d.A.AEH.getContext("2d"),d.TF||d.YK||null!==ZC._n_(d.A.o[d.BD])){if("inherit"===d.o["line-color"]&&-1!==g&&(d.B9=g),d.A.AJ["3d"])(u=ZC.DL.DD(d,d.A,d.iX-ZC.AM.E1,d.iX-ZC.AM.E1+d.I,t-ZC.AM.E2,t-ZC.AM.E2,-1,ZC.AM.FE+1,"x")).K=d.K+"-line",d.A.ES.true3d&&(d.A.ES["y-angle"]>0?u.MG=[1===d.L?-100:100,1,1]:u.MG=[1===d.L?100:-100,1,1]),d.A.CN.add(u);else{o=[[d.iX,x],[d.iX+d.I,x]];var O=d.K;d.K+="-line",ZC.CO.paint(a,d,o),d.K=O}var N=[],V=0,U=0,Q=[];if(d.TF||d.YK){if(d.V.length>0&&d.D8.AP){var k=null===ZC._n_(d.D8.o["offset-start"])?0:ZC._i_(d.D8.o["offset-start"]),W=null===ZC._n_(d.D8.o["offset-end"])?0:ZC._i_(d.D8.o["offset-end"]);if(d.D8.o.items&&d.D8.o.items.length>0&&!d.A.AJ["3d"])for(d.GU=0,h=new ZC.HU(d),i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i%P==0){A=i-d.W,p=d.GU%d.D8.o.items.length,h.append(d.D8.o.items[p]),h.K=d.K+"-guide-"+i,h.Z=d.A.Z,h.parse(),C=d.AR(d.V[i]);var R=d.AR(d.V[Math.min(i+P,d.V.length-1)]);d.DE&&C===R&&(R=d.AR(d.V[Math.min(i-P,d.V.length-1)]),R=C-Math.abs(C-R)),h.iX=d.AW?R:C,h.iY=d.iY+k,h.F=d.F-k-W,h.I=Math.abs(C-R),h.paint(),d.GU++}if(d.D8.B1>0)for(d.GU=0,i=d.W;i<=d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%P==0){(d.D8.E6.length>0||i===d.W||"log"===d.BS)&&((s=new ZC.CZ(d)).Z=s.C8=l,"log"===d.BS?ZC.AQ._int_(ZC.FU(d.V[i],d.DY))?s.copy(d.D8):s.copy(d.G8):s.copy(d.D8),s.IQ=se,s.DG()&&s.parse()),o=[],A=i-d.W;var J=d.iY+k,H=d.F-k-W;if(C=(d.BS,d.AR(d.V[i])),s.AP)if(d.A.AJ["3d"]){var z=new ZC.CZ(d);z.copy(s),null!==ZC._n_(d.o["scale-z"])&&null!==ZC._n_(e=d.o["scale-z"].guide)&&(z.append(e),z.parse()),z.A0=z.AE=z.B9,u=ZC.DL.DD(z,d.A,C-ZC.AM.E1-z.B1/2,C-ZC.AM.E1+z.B1/2,t-ZC.AM.E2,t-ZC.AM.E2,0,ZC.AM.FE,"z"),d.A.CN.add(u),s.A0=s.AE=s.B9,(u=ZC.DL.DD(s,d.A,C-ZC.AM.E1-s.B1/2,C-ZC.AM.E1+s.B1/2,J-ZC.AM.E2,J-ZC.AM.E2+H,ZC.AM.FE+2,ZC.AM.FE+2,"y")).K=d.K+"-guide-"+i,d.A.CN.add(u)}else o.push([C,J],[C,J+H]),s.K=d.K+"-guide-"+i,ZC.CO.paint(r,s,o);d.GU++}}if(d.V.length>0&&d.G8.AP&&G>2&&!d.A.AJ["3d"]){if(d.G8.o.items&&d.G8.o.items.length>0)for(h=new ZC.HU(d),i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i%P==0)for(A=i-d.W,d.GU=0,Z=0;Z<=d.FZ;Z++)p=d.GU%d.G8.o.items.length,h.append(d.G8.o.items[p]),h.K=d.K+"-guide-"+i+"-"+Z,h.Z=d.A.Z,h.parse(),C=d.AW?d.iX+d.I-d.A9-A*d.AD-(Z+1)*G:d.iX+d.A9+A*d.AD+Z*G,h.iX=C,h.iY=d.iY,h.I=G,h.F=d.F,h.paint(),d.GU++;if(d.G8.B1>0&&"log"!==d.BS)for(i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%P==0)for(A=i-d.W,d.GU=0,Z=1;Z<=d.FZ;Z++)o=[],(s=new ZC.CZ(d)).copy(d.G8),s.IQ=se,s.DG()&&s.parse(),C="log"===d.BS?d.AR(d.V[i]+Z*(d.V[i+1]-d.V[i])/(d.FZ+1)):d.AR(d.V[i]+Z*L*(d.V[i+1]-d.V[i])/(d.FZ+1)),ZC.DS(C,d.iX,d.iX+d.I)&&(o.push([C,d.iY],[C,d.iY+d.F]),s.AP&&(s.K=d.K+"-minor-guide-"+Z,ZC.CO.paint(r,s,o))),d.GU++}var T,j,q;if(d.VL(r,g),d.V.length>0&&d.IV.AP){switch(d.IV.o.placement){case"inner":break;case"outer":y+=I;break;default:y+=I/2}for(d.GU=0,f=ZC.AV(d.V,0),i=d.W;i<=d.A1+(d.DE?1:0);i++){d.KA=i;var $=-1;if((i===d.W||i===d.A1||i%P==0||ZC._b_(d.o["show-zero"])&&i===f)&&(o=[],A=i-d.W,(d.IV.E6.length>0||i===d.W||"log"===d.BS)&&(s=new ZC.CZ(d),"log"===d.BS?ZC.AQ._int_(ZC.FU(d.V[i],d.DY))?s.copy(d.IV):(s.copy(d.IG),$=I,I=K):s.copy(d.IV),"inherit"===d.IV.o["line-color"]&&-1!==g&&(s.B9=g),s.IQ=se,s.DG()&&s.parse()),C=(d.BS,d.AR(d.V[i])),ZC.DS(C,d.A.P.iX,d.A.P.iX+d.A.P.I))){switch(s.o.placement){case"inner":o.push([C,t-(F?I:-I)],[C,t]);break;case"outer":o.push([C,t],[C,t+(F?I:-I)]);break;default:o.push([C,t+I/2],[C,t-I/2])}if(-1!==$&&(I=$,$=-1),s.AP){for(j=ZC._i_(s.o["offset-x"]||"0"),q=ZC._i_(s.o["offset-y"]||"0"),T=0;T<o.length;T++)o[T][0]+=j,o[T][1]+=q;if(s.K=d.K+"-tick-"+i,d.A.AJ["3d"])if(d.A.ES.true3d){var ee,ie=[];for(T=0;T<o.length;T++)ee=new ZC.CE(d.A,o[T][0]-ZC.AM.E1,o[T][1]-ZC.AM.E2,0),ie.push([ee.EC[0],ee.EC[1]]);ZC.CO.paint(a,s,ie)}else{var ne=this.A.ES.angle||45;for(T=0;T<o.length;T++)o[T][0]-=ZC.EF(ne)*ZC.AM.FE/2,o[T][1]+=ZC.EL(ne)*ZC.AM.FE/2;ZC.CO.paint(a,s,o)}else ZC.CO.paint(a,s,o)}d.GU++}}}if(d.V.length>0&&d.IG.AP&&d.FZ>0&&G>5&&!d.A.AJ["3d"]&&"log"!==d.BS)for(i=d.W;i<d.A1+(d.DE?1:0);i++)if(d.KA=i,i===d.W||i===d.A1||i%P==0)for(A=i-d.W,d.GU=0,Z=1;Z<=d.FZ;Z++){if(o=[],(s=new ZC.CZ(d)).copy(d.IG),"inherit"===d.IG.o["line-color"]&&-1!==g&&(s.B9=g),s.IQ=se,s.DG()&&s.parse(),C="log"===d.BS?d.AR(d.V[i]+Z*(d.V[i+1]-d.V[i])/(d.FZ+1)):d.AR(d.V[i]+Z*L*(d.V[i+1]-d.V[i])/(d.FZ+1)),ZC.DS(C,d.iX,d.iX+d.I)){switch(s.o.placement){case"inner":o.push([C,t-(F?K:-K)],[C,t]);break;default:o.push([C,t],[C,t+(F?K:-K)]);break;case"cross":o.push([C,t+K/2],[C,t-K/2])}if(s.AP){for(j=ZC._i_(s.o["offset-x"]||"0"),q=ZC._i_(s.o["offset-y"]||"0"),T=0;T<o.length;T++)o[T][0]+=j,o[T][1]+=q;s.K=d.K+"-minor-tick-"+i,ZC.CO.paint(a,s,o)}}d.GU++}d.XV();var te=null,ae=d.CL,le=d.DV,re=function(e){var i;if(d.KA=e,A=e-d.W,(d.BQ.E6.length>0||e===d.W||!_||d.BQ.HZ)&&(_=new ZC.DQ(d)),_.copy(d.BQ),_.GN=d.K+"-item "+d.A.K+"-scale-item zc-scale-item",_.K=d.A.K+"-"+d.BD.replace(/\-/g,"_")+"-item_"+e,d.CL=ae,d.DV=le,d.Z5(se),i=("piano"===d.A.AF||d.Q3)&&d.BY.length?d.FT(e+d.B0-d.FQ):d.FT(e),d.BQ.HZ){var n=d.A.H2();ZC._cp_({index:e,cnt:A,text:i},n),d.H8(d.BQ,_,null,n,d.BQ.MN)}if(null===ZC._n_(d.LW)||-1!==ZC.AV(d.LW,i)){switch(_.AN=i,_.Z=_.C8=d.A.Z,_.IP=d.G.usc()?ZC.AL(d.G.K+"-main"):ZC.AL(d.G.K+"-text"),_.parse(),"inherit"!==d.BQ.o["font-color"]&&"inherit"!==d.BQ.o.color||-1===g||(_.C2=g),_.IQ=se,_.E6=d.BQ.E6,_.DG()&&_.parse(),_.o.placement){case"inner":_.iY=F?t-_.KG-I:t+I;break;default:_.iY=F?t+I:t-_.KG-I}if("log"===d.BS?_.iX=d.AR(d.V[e])-_.I/2:_.iX=d.AR(d.V[e])-_.I/2-(d.AW?1:-1)*(d.DE?d.AD/2:0),te=d.N1(_,te,"h"),d.BQ.o["auto-align"]&&d.BQ.AA%180!=0){var a=ZC.DS(d.BQ.AA,0,180)?F?1:-1:1===F?-1:1;_.iX+=a*_.I*ZC.EF(d.BQ.AA)/2,_.iY+=a*(_.I*ZC.EL(d.BQ.AA)/2-_.F*ZC.EL(d.BQ.AA)/2)}if(ZC.DS(_.iX+_.I/2,d.A.P.iX-1,d.A.P.iX+d.A.P.I+1)||d.A.AJ["3d"]){var l=d.X8(_,e,{items:0,lcoords:N,lstep:L,tdim:V,mdim:U,dim:"h",html:Q});V=l.tdim,U=l.mdim,d.GU++}}};if(d.V.length>0&&d.BQ.AP)if("log"===d.BS){var oe=[];for(i=d.W;i<=d.A1;i++)ZC.AQ._int_(ZC.FU(d.V[i],d.DY))&&(d.GU=i,re(i),oe.push(i));for(i=d.W;i<=d.A1;i++)-1===ZC.AV(oe,i)&&(d.GU=i,re(i))}else for(d.GU=0,re(d.W),d.GU=d.A1-d.W,re(d.A1),-1!==(f=ZC.AV(d.V,0))&&ZC._b_(d.o["show-zero"])&&(d.GU=f,re(f)),d.GU=1,i=d.W+1;i<d.A1;i++)i%L==0&&re(i)}if(d.M.AP&&d.M.AN&&""!==d.M.AN){(_=new ZC.DQ(d)).copy(d.M),_.K=d.A.K+"-"+d.BD.replace(/\-/g,"_")+"-item_title",_.GN=d.K+"-label "+d.A.K+"-scale-label zc-scale-label",_.AN=d.M.AN,_.Z=d.A.Z,_.IP=d.G.usc()?ZC.AL(d.G.K+"-main"):ZC.AL(d.G.K+"-text"),_.parse(),"inherit"!==d.M.o["font-color"]&&"inherit"!==d.M.o.color||-1===g||(_.C2=g);var Ae=d.iX+(d.AW?d.BU:d.A9),Ce=d.I-d.A9-d.BU;switch("chart"===_.o["center-point"]&&(Ae=d.A.iX,Ce=d.A.I),_.OF){case"left":_.iX=Ae;break;case"center":_.iX=Ae+Ce/2-_.I/2;break;case"right":_.iX=Ae+Ce-_.I}_.iY=F?t+y+U:t-U-_.F-y,d.M.iX=_.iX,d.M.iY=_.iY,_.AP&&(d.N1(_,null,"h"),_.paint(),_.EO())}Q.length>0&&ZC.AL(d.A.A.K+"-map")&&(ZC.AL(d.A.A.K+"-map").innerHTML+=Q.join(""))}}}function se(e){return e=(e=(e=(e=(e=e.replace(/%scale-last-position/g,d.A1-d.W)).replace(/(%c)|(%scale-position)/g,d.GU)).replace(/(%i)|(%scale-index)/g,d.KA)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(d.V[d.KA])?d.V[d.KA]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(d.BY[d.KA])?d.BY[d.KA]:"")}}};ZC.T0=ZC.WA.CD(T0);var TB={$i:function(e){this.b(e);var i=this;i.N4="",i.KV=1,i.H7=1,i.GM=0,i.GH=0,i.JU=.6},parse:function(){var e=this;e.b(),e.iX+=e.E0,e.iY+=e.EB,e.I-=e.E0+e.EA,e.F-=e.EB+e.DW,e.YD("layout","N4"),null!==ZC._n_(e.o["size-factor"])&&(e.JU=ZC._f_(ZC._p_(e.o["size-factor"])))},AA0:function(e){var i=this;i.b(e),0===i.V.length&&(i.V=[""]);var n=ZC.AQ.A2F(i.N4,i.V.length,!1);i.KV=n[0],i.H7=n[1],i.GM=i.I/i.H7,i.GH=i.F/i.KV},A5E:function(){var e=this;e.b(),e.GM=e.I/e.H7,e.GH=e.F/e.KV},clear:function(){},build:function(){this.b()},paint:function(){var e,i,n,t,a,l=this;if(l.AP){if(l.b(),e=l.A.AEH.getContext("2d"),i=l.A.AEH.getContext("2d"),(n=[]).push([l.iX,l.iY],[l.iX+l.I,l.iY],[l.iX+l.I,l.iY+l.F],[l.iX,l.iY+l.F],[l.iX,l.iY]),ZC.CO.paint(e,l,n),l.D8.AP){if(l.D8.o.items&&l.D8.o.items.length>0)for(t=0,a=l.V.length;t<a;t++){var r=t%l.H7,o=Math.floor(t/l.H7),A=new ZC.HU(l),C=t%l.D8.o.items.length;A.o=l.D8.o.items[C],A.K=l.K+"-guide-"+t,A.Z=l.A.Z,A.parse(),A.iX=l.iX+r*l.GM,A.iY=l.iY+o*l.GH,A.I=l.GM,A.F=l.GH,A.paint()}if(l.D8.B1>0){for(n=[],t=0;t<=l.H7;t++)n.push([l.iX+t*l.GM,l.iY],[l.iX+t*l.GM,l.iY+l.F],null);for(t=0;t<=l.KV;t++)n.push([l.iX,l.iY+t*l.GH],[l.iX+l.I,l.iY+t*l.GH],null);ZC.CO.paint(i,l.D8,n)}}var s,u=[];if(l.BQ.AP){for(t=0,a=l.V.length;t<a;t++)Z(t);u.length>0&&ZC.AL(l.A.A.K+"-map")&&(ZC.AL(l.A.A.K+"-map").innerHTML+=u.join(""))}}function Z(e){(l.BQ.E6.length>0||0===e)&&(s=new ZC.DQ(l)),s.copy(l.BQ);var i=e%l.H7,n=Math.floor(e/l.H7);s.GN=l.K+"-item "+l.A.K+"-scale-item zc-scale-item",s.K=l.A.K+"-"+l.BD.replace(/\-/g,"_")+"-item_"+e;var t=l.FT(e);if((null===ZC._n_(l.LW)||-1!==ZC.AV(l.LW,t))&&(s.AN=t,s.Z=l.A.Z,s.parse(),s.IQ=function(i){return i=(i=(i=i.replace(/%i/g,e)).replace(/%v/g,null!==ZC._n_(l.V[e])?l.V[e]:"")).replace(/%l/g,null!==ZC._n_(l.BY[e])?l.BY[e]:"")},s.E6=l.BQ.E6,s.DG()&&s.parse(),s.AP)){var a="bottom";null!==ZC._n_(l.BQ.o.placement)&&(a=l.BQ.o.placement);var r=l.iX+i*l.GM,o=l.iY+n*l.GH;switch(a){case"top-left":s.iX=r,s.iY=o;break;case"top-right":s.iX=r+l.GM-s.I,s.iY=o;break;case"bottom-left":s.iX=r,s.iY=o+l.GH-s.F;break;case"bottom-right":s.iX=r+l.GM-s.I,s.iY=o+l.GH-s.F;break;case"top":s.iX=r+l.GM/2-s.I/2,s.iY=o;break;case"right":s.iX=r+l.GM-s.I,s.iY=o+l.GH/2-s.F/2;break;case"left":s.iX=r,s.iY=o+l.GH/2-s.F/2;break;default:s.iX=r+l.GM/2-s.I/2,s.iY=o+l.GH-s.F}s.paint(),s.EO()}}}};ZC.TB=ZC.ZN.CD(TB);var A2B={$i:function(e){this.b(e);this.DK=0,this.EM=360},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DK=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EM=ZC._i_(e)%360,0===i.EM&&(i.EM=360))}};ZC.A2B=ZC.ZN.CD(A2B);var A5A={$i:function(e){this.b(e)},parse:function(){this.b()},J6:function(){},AA0:function(e){this.b(e),this.J6()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b()}};ZC.A5A=ZC.WA.CD(A5A),ZC.A86=ZC.A5A.CD({$i:function(e){this.b(e);var i=this;i.DK=-90,i.EM=180,i.QG=null,i.IZ=null,i.CW="circle"},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DK=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EM=ZC._i_(e)),null!==ZC._n_(e=i.o.center)&&(i.QG=new ZC.DT(i),i.QG.append(e),i.QG.parse()),null!==ZC._n_(e=i.o.ring)&&(i.IZ=new ZC.DT(i),i.G.B6.load(i.IZ.o,[i.A.AF+"."+i.BD+".ring"]),i.IZ.append(e),i.IZ.parse())},AA0:function(e){this.b(e)},clear:function(){},build:function(){this.b()},AR:function(e){var i=this,n=i.A.BM("scale"),t=n.iX+n.I/2,a=n.iY+n.F/2,l=i.A.BM("scale-"+i.L);l||(l=i.A.BM("scale"));var r=ZC.CY(l.GM/2,l.GH/2)*l.JU,o=i.BF-i.B0,A=i.EM/o;return ZC.AQ.BN(t,a,r,i.DK-i.EM/2+A*(e-i.B0))},II:function(e){return this.AR(this.V[e])},paintMarker:function(e){var i,n=this;if(e.FA){var t,a=n.A.BM("scale-"+n.L);if(a||(a=n.A.BM("scale")),e.AP){n.A.K,e.BA;e.Z=e.C8=n.A.AEH,t=e.Z.getContext("2d");var l=ZC.CY(a.GM/2,a.GH/2)*a.JU,r=ZC.IO(e.o["offset-start"]||"0");r>0&&r<1&&(r*=l);var o=ZC.IO(e.o["offset-end"]||"0");o>0&&o<1&&(o*=l),e.M&&(e.M.Z=a.A.AEE,e.M.K=e.A.A.K+"-"+e.A.BD.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GN=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");for(var A=0;A<a.V.length;A++){var C,s=A%a.H7,u=Math.floor(A/a.H7),Z=a.iX+s*a.GM+a.GM/2+a.BK,c=a.iY+u*a.GH+a.GH/2+a.BJ;switch(e.AF){case"line":if(e.FA.length>0){var p=n.DK-n.EM/2+n.EM*(e.FA[0]-n.B0)/(n.BF-n.B0);C=p;var h=[];h.push(ZC.AQ.BN(Z,c,r,p)),h.push(ZC.AQ.BN(Z,c,l-o,p)),2===h.length&&(ZC.CO.setup(t,e),ZC.CO.paint(t,e,h))}break;case"area":if(e.FA.length>1){var f=n.DK-n.EM/2+n.EM*(e.FA[0]-n.B0)/(n.BF-n.B0),_=n.DK-n.EM/2+n.EM*(e.FA[1]-n.B0)/(n.BF-n.B0);C=(f+_)/2;var d=new ZC.DT(e);d.Z=e.Z,d.append(e.o),d.append({size:l-o,slice:r,type:"pie","angle-start":f,"angle-end":_}),d.K=a.K+"-marker-"+e.L,d.iX=Z,d.iY=c,d.parse(),d.paint()}}if(e.M){var g;null!==ZC._n_(i=e.M.o["offset-r"])?g=ZC._f_(ZC._p_(i)):g<1?g*=l-o-r:g=0;var v=ZC.AQ.BN(Z,c,(l-o-r)/2+g,C);e.M.iX=v[0]-e.M.I/2,e.M.iY=v[1]-e.M.F/2,e.M.paint()}}}}},paint:function(){var e,i,n,t,a,l,r,o,A,C=this;if(C.AP&&0!==C.V.length){C.AW&&C.V.reverse(),e=C.A.Z.getContext("2d");var s=ZC._i_(C.IV.o.size||8),u=ZC._i_(C.IG.o.size||4),Z=0,c=ZC.BR(1,Math.ceil((C.A1-C.W)/(C.M4-1))),p=ZC.BR(1,Math.ceil((C.A1-C.W)/(C.EJ-1))),h=C.A.BM("scale-"+C.L);h||(h=C.A.BM("scale"));for(var f,_,d,g=ZC.CY(h.GM/2,h.GH/2)*h.JU,v=C.EM/(C.V.length-1),B=0;B<h.V.length;B++){var E=B%h.H7,b=Math.floor(B/h.H7),D=h.iX+E*h.GM+h.GM/2+h.BK,F=h.iY+b*h.GH+h.GH/2+h.BJ,m=new ZC.DT(C);if(m.Z=C.A.Z,m.copy(C),m.K=C.K+"-"+B,m.iX=D,m.iY=F,m.AI=g-.5,m.DH=360===C.EM?"circle":"pie",m.B4=C.DK-C.EM/2+360,m.BL=C.DK+C.EM/2+360,m.CP=0,m.parse(),m.paint(),C.D8.AP){if(C.D8.o.items&&C.D8.o.items.length>0)for(i=0;i<C.V.length-1;i++)m=new ZC.DT(C),r=i%C.D8.o.items.length,m.append(C.D8.o.items[r]),m.Z=C.A.Z,m.iX=D,m.iY=F,m.K=C.K+"-pie-"+i,m.o.type="pie",m.o.size=g-C.BU,m.CP=C.A9,m.B4=C.DK-C.EM/2+i*v+360,m.BL=C.DK-C.EM/2+(i+1)*v+360,m.parse(),m.paint();if(C.D8.B1>0)for(i=0,n=C.V.length;i<n;i++)(f=new ZC.CZ(C)).copy(C.D8),f.IQ=x,f.E6=C.D8.E6,f.DG()&&f.parse(),(l=[]).push(ZC.AQ.BN(D,F,g-C.BU,C.DK-C.EM/2+i*v)),l.push(ZC.AQ.BN(D,F,C.A9,C.DK-C.EM/2+i*v)),ZC.CO.paint(e,f,l)}if(C.G8.AP&&C.G8.B1>0&&C.FZ>0)for(i=0,n=C.V.length;i<n-1;i++)for(o=C.DK-C.EM/2+i*v,_=v/(C.FZ+1),d=1;d<=C.FZ;d++)(f=new ZC.CZ(C)).copy(C.G8),f.IQ=x,f.E6=C.G8.E6,f.DG()&&f.parse(),(l=[]).push(ZC.AQ.BN(D,F,g-C.BU,C.DK-C.EM/2+i*v+d*_)),l.push(ZC.AQ.BN(D,F,C.A9,C.DK-C.EM/2+i*v+d*_)),ZC.CO.paint(e,f,l);if(C.XV(),C.G.ZY(),C.IZ&&((a=new ZC.DT(C)).append(C.IZ.o),a.Z=C.A.Z,a.K=C.K+"-ring",a.iX=D,a.iY=F,360!==C.EM?(a.o.type="pie",t=ZC._i_(a.o.size),t=ZC.BR(1,ZC.CY(t,g)),a.CP=g-t,a.o.size=g,a.B4=C.DK-C.EM/2+360,a.BL=C.DK+C.EM/2+360):(a.o.type="circle",t=ZC._i_(a.o.size),t=ZC.BR(1,ZC.CY(t,g)),a.o.size=g),a.parse(),a.AP&&t+a.AU>0&&(a.paint(),360===C.EM&&(a.K=C.K+"-ring-inner",a.o.size=g-t,a.parse(),a.paint())),C.IZ.o.items&&C.IZ.o.items.length>0||C.IZ.o.rules))for(i=0;i<C.V.length-1;i++)(a=new ZC.DT(C)).append(C.IZ.o),C.IZ.o.items&&(r=i%C.IZ.o.items.length,a.append(C.IZ.o.items[r])),a.Z=C.A.Z,a.K=C.K+"-ring-"+i,a.iX=D,a.iY=F,a.o.type="pie",t=ZC._i_(a.o.size),t=ZC.BR(0,ZC.CY(t,g)),a.CP=g-t,a.o.size=g,a.B4=C.DK-C.EM/2+i*v+360,a.BL=C.DK-C.EM/2+(i+1)*v+360+.25,a.parse(),a.IQ=x,a.E6=C.IZ.E6,a.DG()&&a.parse(),a.AP&&t+a.AU>0&&a.paint();if(C.IV.AP){switch(C.IV.o.placement){case"outer":Z+=s;break;default:Z+=s/2}for(l=[],i=0,n=C.V.length;i<n;i++)if(i===C.W||i===C.A1||i%c==0){switch(o=C.DK-C.EM/2+i*v,A=[0,0],C.IV.o.placement){case"inner":A=[-s,0];break;case"outer":A=[0,s];break;default:A=[-s/2,s/2]}l.push(ZC.AQ.BN(D,F,g+A[0],o),ZC.AQ.BN(D,F,g+A[1],o),null)}ZC.CO.paint(e,C.IV,l)}if(C.IG.AP&&C.FZ>0){for(l=[],i=0,n=C.V.length;i<n-1;i++)for(o=C.DK-C.EM/2+i*v,_=v/(C.FZ+1),d=1;d<=C.FZ;d++){switch(A=[0,0],C.IG.o.placement){case"inner":A=[-u,0];break;case"outer":A=[0,u];break;default:A=[-u/2,u/2]}l.push(ZC.AQ.BN(D,F,g+A[0],o+d*_),ZC.AQ.BN(D,F,g+A[1],o+d*_),null)}ZC.CO.paint(e,C.IG,l)}if(C.BQ.AP){var Y=[];for(i=0,n=C.V.length;i<n;i++)if(i===C.W||i===C.A1||i%p==0){var M=new ZC.DQ(C);M.append(C.BQ.o),M.GN=C.K+"-item "+C.A.K+"-scale-item zc-scale-item",M.K=C.A.K+"-"+C.BD.replace(/\-/g,"_")+"-item_"+B+"_"+i;var I=C.FT(i);if(M.AN=I,M.Z=M.C8=C.A.Z,M.parse(),"auto"===M.o.angle&&(M.AA=C.DK-C.EM/2+i*v+90),M.IQ=x,M.E6=C.BQ.E6,M.DG()&&M.parse(),M.AP){M.F=M.KG;var K,X=1.15*M.DI;switch(C.BQ.o.placement){case"inner":K=ZC.AQ.BN(D,F,g+C.BQ.DX-X-5+Z,C.DK-C.EM/2+i*v);break;default:K=ZC.AQ.BN(D,F,g+C.BQ.DX+X+Z,C.DK-C.EM/2+i*v)}M.VF="center",M.iX=K[0]-M.I/2,M.iY=K[1]-M.F/2,M.paint(),M.EO()}}Y.length>0&&ZC.AL(C.A.A.K+"-map")&&(ZC.AL(C.A.A.K+"-map").innerHTML+=Y.join(""))}}}function x(e){return e=(e=(e=(e=e.replace(/%i/g,i)).replace(/%k/g,i)).replace(/%v/g,null!==ZC._n_(C.V[i])?C.V[i]:"")).replace(/%l/g,null!==ZC._n_(C.BY[i])?C.BY[i]:"")}},paint_:function(){var e=this,i=e.A.BM("scale-"+e.L);i||(i=e.A.BM("scale"));for(var n=0;n<i.V.length;n++){var t=n%i.H7,a=Math.floor(n/i.H7),l=i.iX+t*i.GM+i.GM/2+i.BK,r=i.iY+a*i.GH+i.GH/2+i.BJ;if(e.QG){var o=new ZC.DT(e);o.append(e.QG.o),o.Z=o.C8=e.A.Z,o.K=e.K+"-"+n+"-center",o.iX=l,o.iY=r,o.o.type=o.o.type||"circle",o.parse(),o.AP&&o.paint()}}}});var ZP={$i:function(e){this.b(e);var i=this;i.DK=0,i.CW="star",i.DE=!1},parse:function(){this.b(),this.assign_a([["aspect","CW"],["ref-angle","DK","i"],["ranged","DE","b"]])},A8D:function(){var e=this,i=ZC.BR(e.V.length,e.BY.length);e.EJ=ZC.CY(30,i)},AA0:function(e){this.b(e)},clear:function(){},build:function(){this.b()},A7N:function(e,i,n){var t=this,a=t.A.BM("scale"),l=a.iX+a.I/2,r=a.iY+a.F/2,o=t.A.BM("scale-v");if(n){var A=t.DK+t.EM*(e-t.B0)/(t.BF-t.B0);return ZC.AQ.BN(l,r,i+o.A9,A)}var C=t.EM/(t.V.length-(360===t.EM||t.DE?0:1));return ZC.AQ.BN(l,r,i+o.A9,t.DK+e*C)},II:function(e){var i=this.A.BM("scale"),n=ZC.CY(i.I/2,i.F/2)*i.JU;return this.A7N(e,n)},AR:function(e){var i=this,n=ZC.AV(i.V,e);-1===n&&(n=0);var t=i.A.BM("scale"),a=ZC.CY(t.I/2,t.F/2)*t.JU;return i.A7N(n,a)},paint:function(){var e,i,n,t,a,l,r,o,A=this;if(A.AP&&0!==A.V.length){A.b();var C=ZC.BR(1,Math.floor((A.A1-A.W)/(A.M4-1))),s=ZC.BR(1,Math.floor((A.A1-A.W)/(A.EJ-1)));e=A.A.AEH.getContext("2d"),i=A.A.AEH.getContext("2d");var u,Z=ZC._i_(A.IV.o.size||8),c=0,p=A.A.BM("scale"),h=ZC.CY(p.I/2,p.F/2)*p.JU,f=A.A.BM("scale-v"),_=p.iX+p.I/2,d=p.iY+p.F/2,g=A.EM/(A.V.length-(360===A.EM||A.DE?0:1));if(A.D8.AP){if(A.D8.o.items&&A.D8.o.items.length>0){var v=0;for(n=0,t=A.V.length-(360===A.EM||A.DE?0:1);n<t;n+=C){if(o=A.DK+n*g,"circle"===A.CW){var B=new ZC.DT(A);a=v%A.D8.o.items.length,B.append(A.D8.o.items[a]),B.Z=A.A.Z,B.iX=_,B.iY=d,B.o.type="pie",B.o.size=h,B.CP=f.A9,B.B4=o,B.BL=o+C*g,B.parse(),B.paint()}else{var E=new ZC.DT(A);a=v%A.D8.o.items.length,E.o=A.D8.o.items[a],E.Z=A.A.Z,E.B1=0,E.AU=0,E.EU=0,E.G3=0,(l=[]).push(ZC.AQ.BN(_,d,f.A9,o),ZC.AQ.BN(_,d,h,o),ZC.AQ.BN(_,d,h,o+C*g),ZC.AQ.BN(_,d,f.A9,o+C*g)),E.D=l,E.parse();var b=A.A.P;E.D2=[b.iX,b.iY,b.iX+b.I,b.iY+b.F],E.paint()}v++}}if(A.D8.B1>0)for(n=0,t=A.V.length+(A.DE?1:0);n<t;n+=C)o=A.DK+n*g,(r=new ZC.CZ(A)).copy(A.D8),r.K=A.K+"-guide-"+n,r.IQ=I,r.E6=A.D8.E6,r.DG()&&r.parse(),(l=[]).push(ZC.AQ.BN(_,d,h,o),ZC.AQ.BN(_,d,f.A9,o)),ZC.CO.paint(i,r,l)}if(A.IV.AP){switch(A.IV.o.placement){case"inner":break;case"outer":c+=Z;break;default:c+=Z/2}for(l=[],n=0,t=A.V.length+(A.DE?1:0);n<t;n+=C){switch(o=A.DK+n*g,(r=new ZC.CZ(A)).copy(A.IV),r.o.placement){case"inner":l=[ZC.AQ.BN(_,d,h-Z,o),ZC.AQ.BN(_,d,h,o)];break;case"outer":l=[ZC.AQ.BN(_,d,h,o),ZC.AQ.BN(_,d,h+Z,o)];break;default:l=[ZC.AQ.BN(_,d,h-Z/2,o),ZC.AQ.BN(_,d,h+Z/2,o)]}for(var D=ZC._i_(r.o["offset-x"]||"0"),F=ZC._i_(r.o["offset-y"]||"0"),m=0;m<l.length;m++)l[m]&&(l[m][0]+=D,l[m][1]+=F);r.K=A.K+"-tick-"+n,ZC.CO.paint(e,r,l)}}var Y,M=[];if(A.BQ.AP){for(n=0,t=A.V.length;n<t;n+=s)K(n);M.length>0&&ZC.AL(A.A.A.K+"-map")&&(ZC.AL(A.A.A.K+"-map").innerHTML+=M.join(""))}}function I(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,n)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(A.V[n])?A.V[n]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(A.BY[n])?A.BY[n]:"")}function K(e){(A.BQ.E6.length>0||0===e)&&(u=new ZC.DQ(A)),u.copy(A.BQ),u.GN=A.K+"-item "+A.A.K+"-scale-item zc-scale-item",u.K=A.A.K+"-"+A.BD.replace(/\-/g,"_")+"-item_"+e;var i=A.FT(e);if(null===ZC._n_(A.LW)||-1!==ZC.AV(A.LW,i)){u.AN=i,u.Z=u.C8=A.A.Z,u.parse(),u.IQ=function(i){return i=(i=(i=i.replace(/(%i)|(%scale-index)/g,e)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(A.V[e])?A.V[e]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(A.BY[e])?A.BY[e]:"")},u.E6=A.BQ.E6,u.DG()&&u.parse();var n=ZC.IO(u.DX,!0);if(n>-1&&n<1&&(n*=h),o=A.DK+e*g+(A.DE?g/2:0),A.BQ.o["auto-align"]){var t=1.25;1-ZC._a_(ZC.EF(o))>.7&&(t=2.5*(1-ZC._a_(ZC.EF(o))));var a=(1-ZC._a_(ZC.EF(o)))*u.DI*t;Y=ZC.AQ.BN(_,d,h+n+c+a,o),ZC.EF(o)>0?(u.iX=Y[0],u.iY=Y[1]-u.F/2):(u.iX=Y[0]-u.I,u.iY=Y[1]-u.F/2)}else A.BQ.o["auto-rotate"]?(Y=ZC.AQ.BN(_,d,h+n+c+u.F/2,o),u.iX=Y[0]-u.I/2,u.iY=Y[1]-u.F/2,u.AA=o+90):(Y=ZC.AQ.BN(_,d,h+n+c+ZC._a_(10*ZC.EL(o))+ZC._a_(u.I/2*ZC.EF(o)),o),u.iX=Y[0]-u.I/2,u.iY=Y[1]-u.F/2);u.AP&&(u.paint(),u.EO())}}}};ZC.ZP=ZC.A2B.CD(ZP);var ZO={$i:function(e){this.b(e)},parse:function(){this.b()},J6:function(){var e=this,i=e.A.BM("scale"),n=ZC.CY(i.I/2,i.F/2)*i.JU;e.AD=(n-e.A9-e.BU)/(e.A1-e.W)},AA0:function(e){this.b(e),this.J6()},A8D:function(){var e=this,i=e.A.BM("scale"),n=ZC.CY(i.I/2,i.F/2)*i.JU;e.EJ=ZC.BR(2,ZC._i_((n-e.A9-e.BU)/20))},UC:function(e){var i=this,n=i.A.BM("scale"),t=ZC.CY(n.I/2,n.F/2)*n.JU,a=i.BF-i.B0,l=(t-i.A9-i.BU)/a;return(e-i.B0)*l},AR:function(e){var i=this,n=i.UC(e),t=i.A.BM("scale-k"),a=i.A.BM("scale"),l=a.iX+a.I/2+a.BK,r=a.iY+a.F/2+a.BJ;return ZC.AQ.BN(l,r,n,t.DK)},clear:function(){},build:function(){this.b()},paint:function(){var e,i,n,t,a,l,r,o=this;if(o.AP&&0!==o.V.length){o.b(),e=o.A.AEH.getContext("2d"),i=o.A.AEH.getContext("2d");var A,C,s=o.A.BM("scale-k"),u=ZC._i_(o.IV.o.size||8),Z=Math.ceil((o.A1-o.W)/(o.EJ-1)),c=Math.ceil((o.A1-o.W)/(o.M4-1)),p=o.A.BM("scale"),h=ZC.CY(p.I/2,p.F/2)*p.JU,f=p.iX+p.I/2+p.BK,_=p.iY+p.F/2+p.BJ,d=s.EM/(s.V.length-(360===s.EM||s.DE?0:1));if(o.D8.AP){if(o.D8.o.items&&o.D8.o.items.length>0)for(n=0,t=o.V.length;n<t-1;n++){var g=n%o.D8.o.items.length;if("circle"===s.CW){var v=new ZC.DT(o);v.Z=o.A.Z,v.append(o.D8.o.items[g]),v.o.type="pie",v.o.size=o.A9+(n+1)*o.AD,v.iX=f,v.iY=_,v.CP=o.A9+n*o.AD,360===s.EM?(v.B4=0,v.BL=360):(v.B4=s.DK,v.BL=s.DK+s.EM),v.parse(),v.paint()}else{var B=new ZC.DT(o);for(B.append(o.D8.o.items[g]),B.Z=o.A.Z,r=[],a=0,l=s.V.length;a<l;a++)r.push(ZC.AQ.BN(f,_,o.A9+n*o.AD,s.DK+a*d));for(360===s.EM&&r.push(ZC.AQ.BN(f,_,o.A9+n*o.AD,s.DK),ZC.AQ.BN(f,_,o.A9+(n+1)*o.AD,s.DK)),a=s.V.length-1;a>=0;a--)r.push(ZC.AQ.BN(f,_,o.A9+(n+1)*o.AD,s.DK+a*d));B.D=r,B.parse(),B.B1=0,B.AU=0,B.EU=0,B.G3=0;var E=o.A.P;B.D2=[E.iX,E.iY,E.iX+E.I,E.iY+E.F],B.paint()}}if(o.D8.B1>0)for(n=0,t=o.V.length;n<t;n++)if(n===o.W||n===o.A1||n%c==0)if("circle"===s.CW){var b=new ZC.DT(o);b.Z=o.A.Z,b.append(o.D8.o);var D=s.EM;360===D&&(D=359),b.append({type:"arc",size:o.A9+n*o.AD,angleStart:s.DK-.25,angleEnd:s.DK+D+.25}),b.K=o.K+"-guide-"+n,b.iX=f,b.iY=_,b.parse(),b.IQ=K,b.E6=o.D8.E6,b.DG()&&b.parse(),b.paint()}else{var F=new ZC.CZ(o);for(F.copy(o.D8),F.K=o.K+"-guide-"+n,F.IQ=K,F.E6=o.D8.E6,F.DG()&&F.parse(),r=[],a=0,l=s.V.length-(360===s.EM||s.DE?0:1);a<l;a++)r.push(ZC.AQ.BN(f,_,o.A9+n*o.AD,s.DK+a*d),ZC.AQ.BN(f,_,o.A9+n*o.AD,s.DK+(a+1)*d));ZC.CO.paint(i,F,r)}}if(o.P5.AP&&o.P5.B1>0&&((r=[]).push(ZC.AQ.BN(f,_,o.A9,s.DK),ZC.AQ.BN(f,_,h-o.BU,s.DK)),ZC.CO.paint(e,o.P5,r)),o.IV.AP){switch(o.IV.o.placement){case"inner":break;case"outer":u;break;default:u/2}for(r=[],n=0,t=o.V.length;n<t;n++)if(n===o.W||n===o.A1||n%c==0){var m=ZC.AQ.BN(f,_,o.A9+n*o.AD,s.DK);switch(o.IV.o.placement){case"inner":r.push([m[0],m[1]]),s.DK%180==0?r.push([m[0],m[1]-u]):r.push([m[0]-u,m[1]]),r.push(null);break;case"outer":r.push([m[0],m[1]]),s.DK%180==0?r.push([m[0],m[1]+u]):r.push([m[0]+u,m[1]]),r.push(null);break;default:s.DK%180==0?r.push([m[0],m[1]-u/2],[m[0],m[1]+u/2]):r.push([m[0]-u/2,m[1]],[m[0]+u/2,m[1]]),r.push(null)}}for(var Y=ZC._i_(o.IV.o["offset-x"]||"0"),M=ZC._i_(o.IV.o["offset-y"]||"0"),I=0;I<r.length;I++)r[I]&&(r[I][0]+=Y,r[I][1]+=M);ZC.CO.paint(e,o.IV,r)}if(C=[],o.V.length>0&&o.BQ.AP)for(o.GU=0,x(o.W),o.GU=o.A1-o.W,x(o.A1),o.GU=1,n=o.W+1;n<o.A1;n++)n%Z==0&&x(n);C.length>0&&ZC.AL(o.A.A.K+"-map")&&(ZC.AL(o.A.A.K+"-map").innerHTML+=C.join(""))}function K(e){return e=(e=(e=e.replace(/(%i)|(%scale-index)/g,n)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(o.V[n])?o.V[n]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(o.BY[n])?o.BY[n]:"")}function X(e){return e=(e=(e=(e=e.replace(/(%c)|(%scale-position)/g,o.GU)).replace(/(%i)|(%scale-index)/g,o.KA)).replace(/(%v)|(%scale-value)/g,null!==ZC._n_(o.V[o.KA])?o.V[o.KA]:"")).replace(/(%l)|(%scale-label)/g,null!==ZC._n_(o.BY[o.KA])?o.BY[o.KA]:"")}function x(e){o.KA=e,(A=new ZC.DQ(o)).copy(o.BQ),A.K=o.A.K+"-"+o.BD.replace(/\-/g,"_")+"-item_"+e,A.GN=o.K+"-item "+o.A.K+"-scale-item zc-scale-item";var i=o.FT(e);if(A.AN=i,null===ZC._n_(o.LW)||-1!==ZC.AV(o.LW,i)){A.Z=A.C8=o.A.Z,A.parse(),A.IQ=X,A.DG()&&A.parse();var n=ZC.AQ.BN(f,_,o.A9+e*o.AD,s.DK);switch(A.F=A.KG,A.I=A.NM,s.DK%180==0?(A.iX=n[0]-A.I/2,A.iY=n[1]):(A.iX=n[0],A.iY=n[1]-A.F/2),o.IV.o.placement){case"inner":break;case"outer":s.DK%180==0?A.iY+=u:A.iX+=u;break;default:s.DK%180==0?A.iY+=u/2:A.iX+=u/2}A.AP&&(A.paint(),A.EO())}}}};ZC.ZO=ZC.WA.CD(ZO);var A0N={$i:function(e){this.b(e);var i=this;i.C5=.95,i.L=0,i.AF=null,i.M=null,i.FA=null,i.A64=!1,i.BA="bottom",i.A9=0,i.BU=0,i.MM="normal",i.O9="normal",i.KF=[5,5],i.A0C=[0,0],i.YQ=""},parse:function(){this.b();var e,i=this;i.assign_a([["type","AF"],["value-range","A64","b"],["offset-start","A9","i"],["offset-end","BU","i"],["placement","BA"],["pair-scale","YQ"],["label-placement","MM"],["label-alignment","O9"],["range","FA"]]),null===ZC._n_(i.o.alpha)&&(i.o.alpha="area"===i.AF?.25:.95),null!==ZC._n_(e=i.o["label-tolerance"])&&("object"==typeof e&&e.length?(i.KF[0]=ZC._i_(e[0]||"5"),i.KF[1]=ZC._i_(e[1]||"5")):i.KF[0]=i.KF[1]=ZC._i_(e||"5")),i.assign_a([["alpha","C5","f",0,1]]),null===ZC._n_(e=i.o.label)&&null===ZC._n_(i.o.text)||(i.M=new ZC.DQ(i),i.A.A.A.B6.load(i.M.o,["("+i.A.AF+").SCALE.marker.label"]),null!==ZC._n_(i.o.text)&&i.M.append({text:i.o.text}),i.M.append(e),i.M.parse(),i.A0C=[i.M.BK,i.M.BJ])},paint:function(){var e,i,n,t,a,l,r,o,A=this;if(A.FA)if(-1===A.A.BD.indexOf("scale-r")){if(A.AP){var C,s,u,Z,c=A.A,p=A.A.A.P.AU;c.A.K,A.BA;A.Z=A.C8="top"===A.BA?c.A.AEE:c.A.AEH,e=A.Z.getContext("2d"),l=[];var h,f=0,_=0;A.BK>-1&&A.BK<1&&(A.BK=Math.ceil(A.BK*c.AD)),A.BJ>-1&&A.BJ<1&&(A.BJ=Math.ceil(A.BJ*c.AD)),A.M&&(A.M.Z=c.A.AEE,A.M.K=A.A.A.K+"-"+A.A.BD.replace(/\-/g,"_")+"-marker_"+A.L,A.M.GN=A.A.K+"-marker-label "+A.A.A.K+"-scale-marker-label zc-scale-marker-label");var d=A.A.A,g=function(e,i){var n;return-1!==(i+"").indexOf("%")?(n=ZC._f_(i.replace("%","")),n="k"===e.AF?ZC._i_(n*(e.DP-e.D4)/100):n*(e.GW-e.FQ)/100):n=i,A.A64||"v"===e.AF?e.AR(n):e.II(n)};if("poly"===A.AF){var v,B,E,b;for(d=A.A.A,"k"===c.AF?(v=c,B=""===A.YQ?d.BW("v")[0]:d.BM(A.YQ)||d.BW("v")[0]):"v"===c.AF&&(B=c,v=""===A.YQ?d.BW("k")[0]:d.BM(A.YQ)||d.BW("k")[0]),r=0,o=A.FA.length;r<o;r++)E=g(v,A.FA[r][0]),b=B.AR(A.FA[r][1]),l.push([E,b]),f+=E,_+=b;if(f/=l.length,_/=l.length,l.length>=3){if(l[0].join("/")!==l[l.length-1].join("/")&&l.push([l[0][0],l[0][1]]),c.A.AJ["3d"])for(c.A.O7(),n=0,t=l.length;n<t;n++)a=new ZC.CE(c.A,l[n][0]-ZC.AM.E1,l[n][1]-ZC.AM.E2,ZC.AM.FE),l[n][0]=a.EC[0],l[n][1]=a.EC[1];(h=new ZC.DT(A.A)).K=c.K+"-marker-"+A.L,h.Z=h.C8=c.A.AEH,"canvas"===c.G.AB&&(i=h.Z.getContext("2d")),h.copy(A),h.B1=0,h.AU=0,h.EU=0,h.G3=0,h.D=l,h.parse(),"canvas"===c.G.AB&&(i.save(),i.beginPath(),i.rect(d.P.iX-2,d.P.iY-2,d.P.I+4,d.P.F+4),i.clip()),h.paint(),"canvas"===c.G.AB&&i.restore()}}else if("line"===A.AF){if(-1!==c.BD.indexOf("scale-x")?1===A.FA.length?C=s=g(c,A.FA[0]):2===A.FA.length&&(C=g(c,A.FA[0]),s=g(c,A.FA[1])):-1!==c.BD.indexOf("scale-y")&&(1===A.FA.length?C=s=g(c,A.FA[0]):2===A.FA.length&&(C=g(c,A.FA[0]),s=g(c,A.FA[1]))),-1!==c.BD.indexOf("scale-x")&&c.CM||-1!==c.BD.indexOf("scale-y")&&!c.CM){if(l.push([c.iX+A.A9,C],[c.iX+c.I-A.BU,s]),A.o&&A.o.tooltip){d.o.labels=d.o.labels||[];for(var D=c.BD.replace(/\-/g,"")+"marker"+this.L,F=0;F<d.o.labels.length;F++)d.o.labels[F].id&&d.o.labels[F].id===D&&d.o.labels.splice(F,1);d.o.labels.push({id:D,cls:"zcScaleMarkerLabel",x:c.iX,y:C-A.B1,width:c.I,height:2*A.B1,alpha:0,tooltip:A.o.tooltip})}A.M&&("opposite"===A.MM?A.M.iX=c.iX+c.I-A.M.I-A.BU:A.M.iX=c.iX+A.A9,"opposite"===A.MM?A.M.iY=s-(c.AW?0:A.M.F):A.M.iY=C-(c.AW?0:A.M.F))}else{if(l.push([C,c.iY+c.F-A.A9],[s,c.iY+A.BU]),A.o&&A.o.tooltip){d.o.labels=d.o.labels||[];for(D=c.BD.replace(/\-/g,"")+"marker"+this.L,F=0;F<d.o.labels.length;F++)d.o.labels[F].id&&d.o.labels[F].id===D&&d.o.labels.splice(F,1);d.o.labels.push({id:D,cls:"zcScaleMarkerLabel",x:C-A.B1,y:c.iY,width:2*A.B1,height:c.F,alpha:0,tooltip:A.o.tooltip})}A.M&&("opposite"===A.MM?A.M.iX=s-(c.AW?A.M.I:0):A.M.iX=C-(c.AW?A.M.I:0),"opposite"===A.MM?A.M.iY=c.iY+A.M.I-A.M.F+A.BU:A.M.iY=c.iY+c.F-A.M.F-A.A9)}if(c.A.AJ["3d"])for(c.A.O7(),n=0,t=l.length;n<t;n++)a=new ZC.CE(c.A,l[n][0]-ZC.AM.E1,l[n][1]-ZC.AM.E2,ZC.AM.FE),l[n][0]=a.EC[0],l[n][1]=a.EC[1];2===l.length&&("canvas"===c.G.AB&&(e.save(),e.beginPath(),e.rect(d.P.iX-2,d.P.iY-2,d.P.I+4,d.P.F+4),e.clip()),ZC.CO.setup(e,A),ZC.CO.paint(e,A,l),"canvas"===c.G.AB&&e.restore())}else if("area"===A.AF&&(-1!==c.BD.indexOf("scale-x")?2===A.FA.length?(C=u=g(c,A.FA[0]),s=Z=g(c,A.FA[1])):4===A.FA.length&&(C=g(c,A.FA[0]),s=g(c,A.FA[1]),u=g(c,A.FA[2]),Z=g(c,A.FA[3])):-1!==c.BD.indexOf("scale-y")&&(2===A.FA.length?(C=u=c.AR(A.FA[0]),s=Z=c.AR(A.FA[1])):4===A.FA.length&&(C=c.AR(A.FA[0]),s=c.AR(A.FA[1]),u=c.AR(A.FA[2]),Z=c.AR(A.FA[3]))),s=C===s?s+1:s,Z=u===Z?Z+1:Z,-1!==c.BD.indexOf("scale-x")&&c.CM||-1!==c.BD.indexOf("scale-y")&&!c.CM?(l.push([c.iX+p,C],[c.iX+c.I-p,u],[c.iX+c.I-p,Z],[c.iX+p,s],[c.iX+p,C]),A.M&&("opposite"===A.MM?A.M.iX=c.iX+c.I-A.M.I-A.BU:A.M.iX=c.iX+A.A9,"opposite"===A.MM?A.M.iY=s-(c.AW?0:A.M.F):A.M.iY=C-(c.AW?0:A.M.F))):(l.push([C,c.iY+c.F-p],[u,c.iY+p],[Z,c.iY+p],[s,c.iY+c.F-p],[C,c.iY+c.F-p]),A.M&&("opposite"===A.MM?A.M.iX=s-(c.AW?A.M.I:0):A.M.iX=C-(c.AW?A.M.I:0),"opposite"===A.MM?A.M.iY=c.iY+A.M.I-A.M.F+A.BU:A.M.iY=c.iY+c.F-A.M.F-A.A9)),l.length>=4)){if(c.A.AJ["3d"])for(c.A.O7(),n=0,t=l.length;n<t;n++)a=new ZC.CE(c.A,l[n][0]-ZC.AM.E1,l[n][1]-ZC.AM.E2,ZC.AM.FE),l[n][0]=a.EC[0],l[n][1]=a.EC[1];(h=new ZC.DT(A.A)).K=c.K+"-marker-"+A.L,h.Z=h.C8=c.A.AEH,"canvas"===c.G.AB&&(i=h.Z.getContext("2d")),h.copy(A),h.B1=0,h.AU=0,h.EU=0,h.G3=0,h.D=l,h.parse(),h.BK=A.BK,h.BJ=A.BJ,"canvas"===c.G.AB&&(i.save(),i.beginPath(),i.rect(d.P.iX-2,d.P.iY-2,d.P.I+4,d.P.F+4),i.clip()),h.paint(),"canvas"===c.G.AB&&i.restore()}var m=!0,Y=c.A.P;2===l.length&&(-1!==c.BD.indexOf("scale-x")&&c.CM||-1!==c.BD.indexOf("scale-y")&&!c.CM?ZC.DS(l[0][1],Y.iY-A.KF[1],Y.iY+Y.F+A.KF[1])&&ZC.DS(l[1][1],Y.iY-A.KF[1],Y.iY+Y.F+A.KF[1])||(m=!1):ZC.DS(l[0][0],Y.iX-A.KF[0],Y.iX+Y.I+A.KF[0])&&ZC.DS(l[1][0],Y.iX-A.KF[0],Y.iX+Y.I+A.KF[0])||(m=!1));var M=A.O9;A.M&&m&&("poly"===A.AF?(A.M.iX=ZC._i_(f-A.M.I/2),A.M.iY=ZC._i_(_-A.M.F/2)):("auto"===A.O9&&(M=-1!==c.BD.indexOf("scale-x")&&!c.CM||-1!==c.BD.indexOf("scale-y")&&c.CM?C<c.iX+c.I/2?"normal":"opposite":C>c.iY+c.F/2?"normal":"opposite"),A.M.BK=A.M.BJ=0,(-1!==c.BD.indexOf("scale-x")&&!c.CM||-1!==c.BD.indexOf("scale-y")&&c.CM)&&null===ZC._n_(A.M.o.angle)&&(A.M.AA=270),-1!==c.BD.indexOf("scale-x")&&!c.CM||-1!==c.BD.indexOf("scale-y")&&c.CM?(A.M.AA%180==90&&(A.M.BK-=(c.AW?-1:1)*(A.M.I/2-A.M.F/2),A.M.BJ-=A.M.I/2-A.M.F/2,"opposite"===A.MM&&(A.M.BJ=-A.M.I/2+A.M.F/2),"opposite"===M&&(A.M.BK-=A.M.F)),A.M.AA%180==0&&("opposite"===A.MM&&(A.M.BJ=-A.M.I+A.M.F),"opposite"===M&&(A.M.BK-=A.M.I))):(A.M.AA%180==90&&(A.M.BK-=A.M.I/2-A.M.F/2,A.M.BJ-=(c.AW?-1:1)*(A.M.I/2-A.M.F/2),"opposite"===A.MM&&(A.M.BK=A.M.I/2-A.M.F/2),"opposite"===M&&(A.M.BJ+=A.M.I)),A.M.AA%180==0&&"opposite"===M&&(A.M.BJ+=A.M.F)),A.M.BK+=A.A0C[0]+A.BK,A.M.BJ+=A.A0C[1]+A.BJ),c.A.AJ["3d"]&&(a=new ZC.CE(c.A,A.M.iX-ZC.AM.E1,A.M.iY-ZC.AM.E2,ZC.AM.FE),A.M.iX=a.EC[0],A.M.iY=a.EC[1]),ZC.DS(A.M.iX+A.M.I/2+A.M.BK,A.A.A.P.iX-A.KF[0],A.A.A.P.iX+A.A.A.P.I+A.KF[0])&&ZC.DS(A.M.iY+A.M.F/2+A.M.BJ,A.A.A.P.iY-A.KF[1],A.A.A.P.iY+A.A.A.P.F+A.KF[1])&&(A.M.paint(),A.M.EO()))}}else A.A.paintMarker(A)}};ZC.A0N=ZC.DT.CD(A0N),zingchart.bind(null,"dataparse",function(e,i){for(var n,t,a=0,l=i.graphset.length;a<l;a++)if(i.graphset[a].type&&-1!==ZC.AV(["pie","line","vline","area","varea","bar","vbar","hbar","line3d","area3d","bar3d","vbar3d","hbar3d"],i.graphset[a].type)&&i.graphset[a].nav){var r=i.graphset[a];ZC._todash_(r);var o=r.nav||{};ZC._todash_(o);var A,C,s,u=ZC.IO(o.threshold||"10%"),Z=o.others||{text:"Others"},c=(o.back,o.slice||"0.3"),p=r.series||[],h=[];if("pie"===i.graphset[a].type){var f=0;for(n=0;n<p.length;n++)p[n].values&&null!==ZC._n_(p[n].values[0])&&(f+=p[n].values[0]);u>0&&u<1&&(u*=f),A=[].concat(p);var _=0,d="";for(C=1,n=p.length-1;n>=0;n--)p[n].values&&null!==ZC._n_(p[n].values[0])&&p[n].values[0]<u&&(_+=p[n].values[0],d+=(p[n].text||"Item no."+C)+":"+p[n].values[0]+"<br>",p[n].slice=c,h.push(p[n]),p.splice(n,1),C++);_>0&&(C>2?(s={values:[_],detach:!1,"data-group":[1],"tooltip-text":d=d.substring(0,d.length-4)},ZC._cp_(Z,s),p.push(s)):r.series=[].concat(A))}else{var g=0,v=[];for(n=0;n<p.length;n++){if(v[n]=0,p[n].values&&p[n].values.length)for(t=0;t<p[n].values.length;t++)v[n]+=ZC._a_(p[n].values[t]);g=ZC.BR(g,v[n])}u>0&&u<1&&(u*=g),A=[].concat(p);var B=[],E=[];for(C=1,n=p.length-1;n>=0;n--)if(v[n]<u){if(p[n].values&&p[n].values.length)for(t=0;t<p[n].values.length;t++)B[t]=ZC._f_(B[t]||"0"),B[t]+=p[n].values[t],E[t]=E[t]||"",E[t]+=(p[n].text||"Item no."+C)+":"+p[n].values[t]+"<br>";h.push(p[n]),p.splice(n,1),C++}if(B.length)if(C>2){for(t=0;t<E.length;t++)E[t]=E[t].substring(0,E[t].length-4);s={values:B,detach:!1,"data-group":[1],"data-tt-text":E,"tooltip-text":"%data-tt-text"},ZC._cp_(Z,s),p.push(s)}else r.series=[].concat(A)}}return i});
module.exports = {zingchart, ZC};