From 9e1960fe802a0457827c45762c35580e5e099df7 Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:35:25 +0800 Subject: [PATCH] update chartiq license (#1388) --- chartiq/development/js/addOns.js | 18 ++++---- chartiq/development/js/advanced.js | 25 ++++++----- chartiq/development/js/chartiq.js | 33 ++++++++------ chartiq/development/js/deprecated.js | 30 ++++++------- chartiq/development/js/standard.js | 29 +++++++----- chartiq/production/js/addOns.js | 18 ++++---- chartiq/production/js/advanced.js | 20 ++++----- chartiq/production/js/chartiq.js | 44 ++++++++++--------- chartiq/production/js/deprecated.js | 30 ++++++------- chartiq/production/js/standard.js | 20 ++++----- package-lock.json | 66 +++++++++++++++++++++++++++- package.json | 2 +- 12 files changed, 208 insertions(+), 127 deletions(-) diff --git a/chartiq/development/js/addOns.js b/chartiq/development/js/addOns.js index 75db47593c..2e56e630a1 100644 --- a/chartiq/development/js/addOns.js +++ b/chartiq/development/js/addOns.js @@ -1,23 +1,23 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ diff --git a/chartiq/development/js/advanced.js b/chartiq/development/js/advanced.js index 800f6d83f4..ac8329ed1b 100644 --- a/chartiq/development/js/advanced.js +++ b/chartiq/development/js/advanced.js @@ -1,23 +1,28 @@ -/** +/***************************************************************************! + WARNING: this file is for internal development and debugging purposes only! + It may *not* be posted publicly under any circumstances without explicit + consent from ChartIQ. +****************************************************************************/ +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ @@ -16234,7 +16239,7 @@ if (!CIQ.Studies) { }; /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -O4G_w[356525]=(function(){var w_=2;for(;w_ !== 9;){switch(w_){case 1:return globalThis;break;case 5:var o_;try{var x4=2;for(;x4 !== 6;){switch(x4){case 9:delete o_['\u0046\x69\x63\x6a\x73'];var a$=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete a$['\u006d\x67\x62\u006b\x30'];x4=6;break;case 3:throw "";x4=9;break;case 4:x4=typeof Ficjs === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:o_['\u0046\x69\u0063\u006a\x73']=o_;x4=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x6d\u0067\u0062\u006b\x30',{'\x67\x65\x74':function(){var Y$=2;for(;Y$ !== 1;){switch(Y$){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});o_=mgbk0;x4=5;break;}}}catch(H6){o_=window;}return o_;break;case 2:w_=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();e8(O4G_w[356525]);function e8(W6){function X2(l_){var i5=2;for(;i5 !== 5;){switch(i5){case 2:var V0=[arguments];return V0[0][0].Function;break;}}}function V5(c8){var f$=2;for(;f$ !== 5;){switch(f$){case 2:var E6=[arguments];return E6[0][0].Array;break;}}}function a9(z3,b4,Q1,G3,R0){var m_=2;for(;m_ !== 13;){switch(m_){case 2:var P2=[arguments];P2[1]="";P2[1]="";P2[1]="operty";m_=3;break;case 3:P2[6]="ePr";P2[4]="";P2[4]="defin";P2[3]=true;m_=6;break;case 6:P2[3]=false;try{var B5=2;for(;B5 !== 13;){switch(B5){case 2:P2[9]={};P2[2]=(1,P2[0][1])(P2[0][0]);B5=5;break;case 14:try{var V6=2;for(;V6 !== 3;){switch(V6){case 2:P2[5]=P2[4];P2[5]+=P2[6];P2[5]+=P2[1];P2[0][0].Object[P2[5]](P2[8],P2[0][4],P2[9]);V6=3;break;}}}catch(z5){}B5=13;break;case 5:P2[8]=[P2[2],P2[2].prototype][P2[0][3]];B5=4;break;case 4:B5=P2[8].hasOwnProperty(P2[0][4]) && P2[8][P2[0][4]] === P2[8][P2[0][2]]?3:9;break;case 9:P2[8][P2[0][4]]=P2[8][P2[0][2]];P2[9].set=function(U1){var B1=2;for(;B1 !== 5;){switch(B1){case 2:var N7=[arguments];P2[8][P2[0][2]]=N7[0][0];B1=5;break;}}};P2[9].get=function(){var b$=2;for(;b$ !== 12;){switch(b$){case 14:a0[2]+=a0[1];return typeof P2[8][P2[0][2]] == a0[2]?undefined:P2[8][P2[0][2]];break;case 9:a0[3]="";a0[3]="un";a0[2]=a0[3];a0[2]+=a0[5];b$=14;break;case 2:var a0=[arguments];a0[1]="ned";a0[5]="";a0[5]="defi";a0[3]="";b$=9;break;}}};P2[9].enumerable=P2[3];B5=14;break;case 3:return;break;}}}catch(v9){}m_=13;break;}}}var l4=2;for(;l4 !== 104;){switch(l4){case 2:var H5=[arguments];H5[5]="";H5[5]="";H5[5]="FLe";l4=3;break;case 40:H5[15]="__optim";H5[54]="0wlo";H5[55]="";H5[60]="3";l4=36;break;case 47:H5[28]=0;H5[93]=H5[36];H5[93]+=H5[72];H5[93]+=H5[11];H5[45]=H5[55];H5[45]+=H5[60];H5[45]+=H5[54];l4=61;break;case 72:H5[32]=H5[3];H5[32]+=H5[34];H5[32]+=H5[9];H5[33]=H5[6];l4=68;break;case 3:H5[1]="l";H5[8]="";H5[8]="";H5[8]="a";H5[7]="";H5[7]="__residu";H5[4]="";l4=12;break;case 21:H5[94]="d";H5[19]="Jb";H5[97]="bst";H5[61]="_CnR";H5[86]="B";l4=31;break;case 82:n7(M3,"test",H5[76],H5[32]);l4=81;break;case 81:n7(V5,"push",H5[76],H5[10]);l4=80;break;case 61:H5[22]=H5[15];H5[22]+=H5[13];H5[22]+=H5[31];H5[20]=H5[86];H5[20]+=H5[61];H5[20]+=H5[94];l4=55;break;case 78:n7(X2,"apply",H5[76],H5[93]);l4=104;break;case 87:H5[12]+=H5[34];H5[12]+=H5[5];l4=85;break;case 44:H5[13]="";H5[13]="";H5[13]="iz";H5[54]="";l4=40;break;case 79:n7(p2,H5[22],H5[28],H5[45]);l4=78;break;case 36:H5[55]="m";H5[11]="Fy0";H5[72]="";H5[72]="U";l4=51;break;case 80:n7(p2,H5[59],H5[28],H5[20]);l4=79;break;case 12:H5[4]="n";H5[2]="R";H5[6]="";H5[6]="L";l4=19;break;case 19:H5[9]="";H5[9]="DaF";H5[3]="";H5[24]="$q9";H5[3]="b";H5[29]="";H5[29]="O";l4=25;break;case 25:H5[37]="";H5[37]="f9";H5[34]="$";H5[94]="";l4=21;break;case 84:n7(G5,"charCodeAt",H5[76],H5[12]);l4=83;break;case 31:H5[50]="ract";H5[74]="__a";H5[31]="";H5[31]="e";l4=44;break;case 51:H5[36]="";H5[36]="B_";H5[76]=1;H5[28]=1;l4=47;break;case 55:H5[59]=H5[74];H5[59]+=H5[97];H5[59]+=H5[50];H5[10]=H5[37];H5[10]+=H5[29];H5[10]+=H5[19];l4=72;break;case 68:H5[33]+=H5[24];H5[33]+=H5[4];H5[62]=H5[7];H5[62]+=H5[8];H5[62]+=H5[1];H5[12]=H5[2];l4=87;break;case 85:var n7=function(G1,j$,S0,t9){var P7=2;for(;P7 !== 5;){switch(P7){case 2:var J0=[arguments];a9(H5[0][0],J0[0][0],J0[0][1],J0[0][2],J0[0][3]);P7=5;break;}}};l4=84;break;case 83:n7(p2,H5[62],H5[28],H5[33]);l4=82;break;}}function G5(N5){var u_=2;for(;u_ !== 5;){switch(u_){case 2:var O8=[arguments];return O8[0][0].String;break;}}}function M3(x8){var b8=2;for(;b8 !== 5;){switch(b8){case 2:var A4=[arguments];return A4[0][0].RegExp;break;}}}function p2(Y1){var b6=2;for(;b6 !== 5;){switch(b6){case 2:var y0=[arguments];return y0[0][0];break;}}}}O4G_w.X3=function(){return typeof O4G_w[459327].Z7m4YCh === 'function'?O4G_w[459327].Z7m4YCh.apply(O4G_w[459327],arguments):O4G_w[459327].Z7m4YCh;};O4G_w.l0=function(){return typeof O4G_w[50848].w4xZ2A7 === 'function'?O4G_w[50848].w4xZ2A7.apply(O4G_w[50848],arguments):O4G_w[50848].w4xZ2A7;};O4G_w[158192]=true;O4G_w[247674]="kRi";O4G_w[220353]="m8e";O4G_w.f5=function(){return typeof O4G_w[150036].V3nM4Cy === 'function'?O4G_w[150036].V3nM4Cy.apply(O4G_w[150036],arguments):O4G_w[150036].V3nM4Cy;};O4G_w[50848]=(function(){var l2=function(z4,H9){var o4=H9 & 0xffff;var U5=H9 - o4;return (U5 * z4 | 0) + (o4 * z4 | 0) | 0;},j2=function(D7,j1,r$){var m7=0xcc9e2d51,I5=0x1b873593;var z1=r$;var A7=j1 & ~0x3;for(var o9=0;o9 < A7;o9+=4){var p_=D7.R$FLe(o9) & 0xff | (D7.R$FLe(o9 + 1) & 0xff) << 8 | (D7.R$FLe(o9 + 2) & 0xff) << 16 | (D7.R$FLe(o9 + 3) & 0xff) << 24;p_=l2(p_,m7);p_=(p_ & 0x1ffff) << 15 | p_ >>> 17;p_=l2(p_,I5);z1^=p_;z1=(z1 & 0x7ffff) << 13 | z1 >>> 19;z1=z1 * 5 + 0xe6546b64 | 0;}p_=0;switch(j1 % 4){case 3:p_=(D7.R$FLe(A7 + 2) & 0xff) << 16;case 2:p_|=(D7.R$FLe(A7 + 1) & 0xff) << 8;case 1:p_|=D7.R$FLe(A7) & 0xff;p_=l2(p_,m7);p_=(p_ & 0x1ffff) << 15 | p_ >>> 17;p_=l2(p_,I5);z1^=p_;}z1^=j1;z1^=z1 >>> 16;z1=l2(z1,0x85ebca6b);z1^=z1 >>> 13;z1=l2(z1,0xc2b2ae35);z1^=z1 >>> 16;return z1;};return {w4xZ2A7:j2};})();O4G_w[106140]=947;function O4G_w(){}O4G_w[345871]=120;O4G_w[356525].j833=O4G_w;O4G_w.c9=function(){return typeof O4G_w[50848].w4xZ2A7 === 'function'?O4G_w[50848].w4xZ2A7.apply(O4G_w[50848],arguments):O4G_w[50848].w4xZ2A7;};O4G_w.h8=function(){return typeof O4G_w[459327].Z7m4YCh === 'function'?O4G_w[459327].Z7m4YCh.apply(O4G_w[459327],arguments):O4G_w[459327].Z7m4YCh;};O4G_w[459327]=(function(r_){return {q52sdNp:function(){var b1,z6=arguments;switch(r_){case 15:b1=z6[0] / z6[1];break;case 4:b1=(z6[0] + z6[1]) / z6[2];break;case 23:b1=z6[0] + z6[2] + z6[1];break;case 9:b1=z6[1] >> z6[0];break;case 0:b1=z6[1] ^ z6[0];break;case 2:b1=-z6[0] / z6[2] + z6[1];break;case 25:b1=z6[1] - z6[0] * z6[2];break;case 1:b1=z6[0] << z6[1];break;case 18:b1=(z6[2] + z6[4] + z6[0] + z6[1]) / z6[3];break;case 24:b1=z6[0] + z6[2] * z6[1];break;case 8:b1=z6[0] - z6[1];break;case 20:b1=-z6[1] + z6[0];break;case 30:b1=z6[2] * z6[3] + z6[1] - z6[0];break;case 12:b1=z6[0] * z6[1];break;case 13:b1=z6[2] / z6[1] % z6[0];break;case 26:b1=z6[1] | z6[0];break;case 28:b1=z6[2] * z6[1] - z6[0];break;case 5:b1=z6[1] + z6[0] - z6[2];break;case 3:b1=z6[0] + z6[1];break;case 17:b1=z6[4] / z6[2] + z6[3] + z6[0] - z6[1];break;case 21:b1=(z6[0] + z6[2] - z6[1]) * z6[4] - z6[3];break;case 16:b1=(z6[3] + z6[1] + z6[0]) / z6[2] - z6[4];break;case 22:b1=-z6[2] - z6[0] + z6[1];break;case 10:b1=z6[2] - z6[0] + z6[1];break;case 7:b1=(z6[0] + z6[1]) / +z6[2];break;case 11:b1=z6[0] - z6[3] + z6[1] + z6[2];break;case 27:b1=z6[0] % z6[1];break;case 19:b1=-z6[0] + z6[1] - z6[2];break;case 6:b1=z6[0] + z6[3] - z6[2] - z6[1];break;case 29:b1=(z6[0] - z6[1]) / z6[2] + z6[3];break;case 14:b1=z6[0] - z6[2] - z6[3] + z6[1];break;}return b1;},Z7m4YCh:function(W7){r_=W7;}};})();O4G_w.J_=function(){return typeof O4G_w[150036].V3nM4Cy === 'function'?O4G_w[150036].V3nM4Cy.apply(O4G_w[150036],arguments):O4G_w[150036].V3nM4Cy;};O4G_w.r4=function(){return typeof O4G_w[459327].q52sdNp === 'function'?O4G_w[459327].q52sdNp.apply(O4G_w[459327],arguments):O4G_w[459327].q52sdNp;};O4G_w.B6=function(){return typeof O4G_w[459327].q52sdNp === 'function'?O4G_w[459327].q52sdNp.apply(O4G_w[459327],arguments):O4G_w[459327].q52sdNp;};O4G_w[150036]=(function(){var l7=2;for(;l7 !== 9;){switch(l7){case 2:var o6=[arguments];o6[1]=undefined;o6[5]={};o6[5].V3nM4Cy=function(){var T7=2;for(;T7 !== 90;){switch(T7){case 18:Z4[4]={};Z4[4].e0=['S8'];Z4[4].o1=function(){var M7=function(){return decodeURI('%25');};var X9=!(/\u0032\u0035/).b$DaF(M7 + []);return X9;};Z4[8]=Z4[4];Z4[73]={};T7=26;break;case 76:T7=Z4[18] < Z4[34][Z4[83]].length?75:70;break;case 71:Z4[18]++;T7=76;break;case 35:Z4[97]=Z4[29];Z4[76]={};Z4[76].e0=['S8'];Z4[76].o1=function(){var V8=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var u1=(/\x74\u0072\x75\x65/).b$DaF(V8 + []);return u1;};T7=31;break;case 26:Z4[73].e0=['S8'];Z4[73].o1=function(){var D2=function(){return String.fromCharCode(0x61);};var Q$=!(/\u0030\x78\x36\u0031/).b$DaF(D2 + []);return Q$;};Z4[20]=Z4[73];T7=23;break;case 75:Z4[53]={};Z4[53][Z4[55]]=Z4[34][Z4[83]][Z4[18]];Z4[53][Z4[51]]=Z4[24];T7=72;break;case 65:Z4[68]=[];Z4[95]='H_';T7=63;break;case 23:Z4[29]={};Z4[29].e0=['y1'];Z4[29].o1=function(){var x6=false;var f2=[];try{for(var a6 in console){f2.f9OJb(a6);}x6=f2.length === 0;}catch(Y4){}var R$=x6;return R$;};T7=35;break;case 57:T7=Z4[10] < Z4[2].length?56:69;break;case 50:Z4[2].f9OJb(Z4[7]);Z4[2].f9OJb(Z4[1]);Z4[2].f9OJb(Z4[20]);Z4[2].f9OJb(Z4[97]);Z4[2].f9OJb(Z4[9]);Z4[2].f9OJb(Z4[44]);T7=65;break;case 70:Z4[10]++;T7=57;break;case 72:Z4[68].f9OJb(Z4[53]);T7=71;break;case 77:Z4[18]=0;T7=76;break;case 4:Z4[2]=[];Z4[6]={};Z4[6].e0=['y1'];T7=8;break;case 14:Z4[3].e0=['S8'];Z4[3].o1=function(){var q_=function(){return btoa('=');};var g$=!(/\u0062\u0074\x6f\x61/).b$DaF(q_ + []);return g$;};Z4[7]=Z4[3];T7=11;break;case 67:o6[1]=58;return 99;break;case 60:Z4[91]='o1';Z4[55]='W3';T7=58;break;case 5:return 43;break;case 1:T7=o6[1]?5:4;break;case 8:Z4[6].o1=function(){var g6=typeof L$q9n === 'function';return g6;};Z4[1]=Z4[6];Z4[3]={};T7=14;break;case 68:T7=83?68:67;break;case 58:Z4[10]=0;T7=57;break;case 69:T7=(function(K1){var C4=2;for(;C4 !== 22;){switch(C4){case 19:h5[2]++;C4=7;break;case 4:h5[3]={};C4=3;break;case 18:h5[5]=false;C4=17;break;case 26:C4=h5[8] >= 0.5?25:24;break;case 2:var h5=[arguments];C4=1;break;case 11:h5[3][h5[9][Z4[55]]].t+=true;C4=10;break;case 10:C4=h5[9][Z4[51]] === Z4[95]?20:19;break;case 3:h5[6]=[];h5[2]=0;C4=8;break;case 20:h5[3][h5[9][Z4[55]]].h+=true;C4=19;break;case 24:h5[2]++;C4=16;break;case 15:h5[4]=h5[6][h5[2]];h5[8]=h5[3][h5[4]].h / h5[3][h5[4]].t;C4=26;break;case 17:h5[2]=0;C4=16;break;case 6:h5[9]=h5[0][0][h5[2]];C4=14;break;case 8:h5[2]=0;C4=7;break;case 1:C4=h5[0][0].length === 0?5:4;break;case 5:return;break;case 16:C4=h5[2] < h5[6].length?15:23;break;case 23:return h5[5];break;case 25:h5[5]=true;C4=24;break;case 14:C4=typeof h5[3][h5[9][Z4[55]]] === 'undefined'?13:11;break;case 13:h5[3][h5[9][Z4[55]]]=(function(){var U3=2;for(;U3 !== 9;){switch(U3){case 4:I_[7].t=0;return I_[7];break;case 2:var I_=[arguments];I_[7]={};I_[7].h=0;U3=4;break;}}}).B_UFy0(this,arguments);C4=12;break;case 12:h5[6].f9OJb(h5[9][Z4[55]]);C4=11;break;case 7:C4=h5[2] < h5[0][0].length?6:18;break;}}})(Z4[68])?68:67;break;case 11:Z4[5]={};Z4[5].e0=['S8'];Z4[5].o1=function(){var O3=function(){return ('a').anchor('b');};var c4=(/(\u003c|\u003e)/).b$DaF(O3 + []);return c4;};Z4[9]=Z4[5];T7=18;break;case 42:Z4[43].e0=['S8'];Z4[43].o1=function(){var m3=function(){return ('aa').lastIndexOf('a');};var a4=(/\x31/).b$DaF(m3 + []);return a4;};Z4[44]=Z4[43];Z4[16]={};Z4[16].e0=['y1'];Z4[16].o1=function(){var P5=typeof m30wlo === 'function';return P5;};Z4[94]=Z4[16];T7=54;break;case 54:Z4[2].f9OJb(Z4[11]);Z4[2].f9OJb(Z4[94]);Z4[2].f9OJb(Z4[8]);Z4[2].f9OJb(Z4[86]);T7=50;break;case 63:Z4[45]='T$';Z4[83]='e0';Z4[51]='n6';T7=60;break;case 2:var Z4=[arguments];T7=1;break;case 56:Z4[34]=Z4[2][Z4[10]];try{Z4[24]=Z4[34][Z4[91]]()?Z4[95]:Z4[45];}catch(N_){Z4[24]=Z4[45];}T7=77;break;case 44:Z4[11]=Z4[15];Z4[43]={};T7=42;break;case 31:Z4[86]=Z4[76];Z4[15]={};Z4[15].e0=['y1'];Z4[15].o1=function(){var L2=typeof B_CnRd === 'function';return L2;};T7=44;break;}}};return o6[5];break;}}})();O4G_w.J_();var __js_advanced_aggregations_;__js_advanced_aggregations_=Z=>{var I2=O4G_w;var v;v=typeof _CIQ !== "undefined"?_CIQ:Z.CIQ;v.Renderer.Aggregations=function(w){var c,u0,s9,a8;this.construct(w);I2.f5();c=this.params;this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});this.isAggregation=!!({});c.highlightable=!({});if(c.name != "_main_series"){I2.h8(0);u0=-I2.B6(0,"1285943972");s9=-1117319217;I2.h8(1);a8=I2.r4("2",96);for(var C8="1" ^ 0;I2.l0(C8.toString(),C8.toString().length,43395) !== u0;C8++){console.warn("Aggregations are only allowed on main series.");c.invalid=!!({});a8+=2;}if(I2.l0(a8.toString(),a8.toString().length,"51371" << 64) !== s9){console.warn("");c.invalid=!"1";}}};v.inheritsFrom(v.Renderer.Aggregations,v.Renderer.OHLC,!({}));I2.f5();v.Renderer.Aggregations.requestNew=function(Q,h){var l5,Y2,X,z,E$,n;l5="Aggregation";l5+="s";Y2="c";Y2+="a";I2.J_();Y2+="nd";Y2+="le";X=null;for(var W=0;W < Q.length;W++){z=Q[W];switch(z){case "kagi":case "pandf":X=z;break;case "heikinashi":case "linebreak":case "rangebars":case "renko":E$="c";E$+="andle";X=E$;break;default:return null;}}if(X === null){return null;}n=new v.Renderer[X == Y2?"OHLC":l5]({params:v.extend(h,{type:X})});n.isAggregation=!0;return n;};v.Renderer.Aggregations.prototype.drawIndividualSeries=function(G,d){var C_,A,K,y2,e6,S2,O4,V4;C_="pan";C_+="df";if(d.invalid){return;}A=this.stx;K={colors:[]};I2.J_();if(d.type == "kagi"){y2="stx_k";y2+="agi";y2+="_dow";y2+="n";A.drawKagiSquareWave(G.panel,"stx_kagi_up","stx_kagi_down",d);K.colors.push(A.getCanvasColor("stx_kagi_up"));K.colors.push(A.getCanvasColor(y2));}else if(d.type == C_){e6=-470495600;S2=-+"386344026";O4=2;for(var y4="1" * 1;I2.c9(y4.toString(),y4.toString().length,58533) !== e6;y4++){V4="stx_pandf_d";V4+="own";A.drawPointFigureChart(G.panel,"O",3877 <= (616,313765)?"O":0xc33b,d);K.colors.push(A.getCanvasColor(V4));A.drawPointFigureChart(G.panel,"O",(1679,2533) === 338098?(!1,2520118):"O",d);O4+=2;}if(I2.c9(O4.toString(),O4.toString().length,78742) !== S2){A.drawPointFigureChart(G.panel,"stx_pandf_up",4520 >= (462,+"757.62")?"X":0x1791,d);K.colors.push(A.getCanvasColor("stx_pandf_up"));A.drawPointFigureChart(G.panel,"stx_pandf_down",(5030,3343) == "603.52" - 0?(!"",9.81e+3):"O",d);}K.colors.push(A.getCanvasColor("stx_pandf_down"));}return K;};v.ChartEngine.prototype.setAggregationType=function(T){var M,W5,E8,S6;this.layout.chartType="candle";M=this.chart;if(M.baseline.userLevel !== !({})){W5=986374269;E8=-2125681913;S6=2;for(var X8=1;I2.c9(X8.toString(),X8.toString().length,+"88138") !== W5;X8++){M.baseline.userLevel=M.baseline.defaultLevel;S6+=2;}if(I2.l0(S6.toString(),S6.toString().length,21503) !== E8){M.baseline.userLevel=M.baseline.defaultLevel;}M.baseline.userLevel=M.baseline.defaultLevel;M.panel.yAxis.scroll=v.ChartEngine.YAxis.prototype.scroll;}this.layout.aggregationType=T;this.setMainSeriesRenderer();if(M.canvas){this.createDataSet();this.draw();}I2.J_();this.changeOccurred("layout");};v.ChartEngine.prototype.drawKagiSquareWave=function(s,f,Y,y){var u,R,I,o,d3,A8,J1,t,E,D,e,r,B,D_,o7,p6,p,k,g,a,K5,m,S,N,z0,J,F;u=s.chart;I2.J_();this.startClip(s.name);R=u.dataSegment;I=u.context;o=s.yAxis;if(o.flipped){I2.h8(1);d3=-I2.r4("192820552",32);A8=132807807;J1=2;for(var i8=1;I2.l0(i8.toString(),i8.toString().length,"84646" | 32) !== d3;i8++){t=f;f=Y;Y=t;J1+=2;}if(I2.c9(J1.toString(),J1.toString().length,+"11178") !== A8){t=f;f=Y;Y=t;}}E=this.canvasStyle(f);D=this.canvasStyle(Y);this.canvasColor(f);if(y.border_color_up){I.strokeStyle=y.border_color_up;}e=I.strokeStyle;this.canvasColor(Y);if(y.border_color_down){I.strokeStyle=y.border_color_down;}r=I.strokeStyle;B=1;if(E.width && parseInt(E.width,10) <= 25){B=Math.max(1,v.stripPX(E.width));}D_=299826726;o7=1086767686;p6=2;for(var c5=1;I2.c9(c5.toString(),c5.toString().length,+"63701") !== D_;c5++){p=1;p6+=2;}if(I2.l0(p6.toString(),p6.toString().length,84195) !== o7){p=0;}if(D.width && parseInt(D.width,10) <= 25){p=Math.max(1,v.stripPX(D.width));}if(this.highlightedDraggable){I.globalAlpha*=0.3;}I.beginPath();I2.h8(2);var E9=I2.B6(12,3,6);k=u.dataSet.length - u.scroll - E9;g=!"";a=null;K5=null;m=null;S=s.left - 0.5 * this.layout.candleWidth + this.micropixels - ("1" - 0);for(var U=0;U <= R.length;U++){S+=this.layout.candleWidth;N=R[U];if(!N)continue;if(N.projection)break;m=N.kagiTrend;if(o.flipped){m*=-1;}if(N.transform && u.transformFunc){z0=N.kagiPrevOpen;N=N.transform;N.kagiPrevOpen=u.transformFunc(this,u,z0);}J=N.cache;I2.h8(3);F=I2.r4(k,U);if(F < s.cacheLeft || F > s.cacheRight || !J.kagiOpen){J.kagiOpen=o.semiLog?o.height * (1 - (Math.log(Math.max(N.Open,"0" ^ 0)) / Math.LN10 - o.logLow) / o.logShadow):(o.high - N.Open) * o.multiplier;J.kagiClose=o.semiLog?o.height * (1 - (Math.log(Math.max(N.Close,0)) / Math.LN10 - o.logLow) / o.logShadow):(o.high - N.Close) * o.multiplier;if(o.flipped){J.kagiOpen=o.bottom - J.kagiOpen;J.kagiClose=o.bottom - J.kagiClose;}else {J.kagiOpen+=o.top;J.kagiClose+=o.top;}}K5=J.kagiClose;a=o.semiLog?o.height * (1 - (Math.log(Math.max(N.kagiPrevOpen,0)) / Math.LN10 - o.logLow) / o.logShadow):(o.high - N.kagiPrevOpen) * o.multiplier;if(o.flipped){a=o.bottom - a;}else {a+=o.top;}if(g){I.moveTo(k >= 0?s.left:Math.floor(S),J.kagiOpen);I.lineTo(Math.floor(S),J.kagiOpen);if(J.kagiClose < J.kagiOpen){I.strokeStyle=e;I.lineWidth=B;}else {I.strokeStyle=r;I.lineWidth=p;}}else {if(m != -1 && J.kagiClose < a && a < J.kagiOpen){I.lineTo(Math.floor(S),a);I.stroke();I.beginPath();I.moveTo(Math.floor(S),a);I.strokeStyle=e;I.lineWidth=B;}else if(m != 1 && J.kagiClose > a && a > J.kagiOpen){I.lineTo(Math.floor(S),a);I.stroke();I.beginPath();I.moveTo(Math.floor(S),a);I.strokeStyle=r;I.lineWidth=p;}}I.lineTo(Math.floor(S),J.kagiClose);if(U + ("1" << 32) < R.length){I.lineTo(Math.floor(S + this.layout.candleWidth),J.kagiClose);}g=!!"";}I.stroke();this.endClip();I.lineWidth=+"1";};v.ChartEngine.prototype.drawPointFigureChart=function(N0,U7,Y5,u5){var q3,i9,w8,c7,w2,k5,X0,Z_,k2,V3,i_,e1,c0,z$,Y0,J9,S3,f_,l1,i0,M8,O6,G_,x7,P4,r7,e3,L$,t6;q3=N0.chart;this.startClip(N0.name);i9=q3.dataSegment;w8=q3.context;this.canvasColor(U7);if(Y5 == "X" && u5.border_color_up){w8.strokeStyle=u5.border_color_up;}else if(Y5 == (623 > (613.32,+"158.66")?(+"6678",7890) == 7530?!![]:"O":(593.89,![])) && u5.border_color_down){w8.strokeStyle=u5.border_color_down;}c7=this.canvasStyle(U7);w2=parseInt(c7.paddingTop,10);k5=parseInt(c7.paddingBottom,10);function q8(C2,P1,T5){I2.X3(4);w8.moveTo(I2.r4(C2,P1,2),I2.B6(w2,T5,f_,I2.h8(5)));I2.X3(3);w8.bezierCurveTo(I2.r4(P1,Z_),I2.B6(w2,T5,f_,I2.X3(5)),I2.B6(P1,Z_,I2.h8(3)),I2.r4(T5,f_,k5,S3,I2.h8(6)),I2.r4(C2,P1,"2",I2.X3(7)),I2.r4(T5,f_,k5,S3,I2.X3(6)));I2.X3(8);I2.f5();w8.bezierCurveTo(I2.r4(C2,X0),I2.r4(T5,f_,k5,S3,I2.h8(6)),I2.r4(C2,X0,I2.h8(8)),I2.r4(w2,T5,f_,I2.h8(5)),I2.B6(C2,P1,2,I2.X3(4)),I2.r4(w2,T5,f_,I2.h8(5)));}X0=parseInt(c7.paddingLeft,10);Z_=parseInt(c7.paddingRight,10);if(c7.width && parseInt(c7.width,"10" << 32) <= +"25"){k2=822045727;V3=1216359351;I2.X3(8);i_=I2.B6("2",0);for(var s6=1;I2.l0(s6.toString(),s6.toString().length,71082) !== k2;s6++){w8.lineWidth=Math.max(+"8",v.stripPX(c7.width));i_+=2;}if(I2.l0(i_.toString(),i_.toString().length,88422) !== V3){I2.X3(9);w8.lineWidth=Math.max(I2.B6(0,"1"),v.stripPX(c7.width));}}else {w8.lineWidth=2;}if(this.highlightedDraggable){w8.globalAlpha*=0.3;}w8.beginPath();e1=this.chart.state.aggregation.box;function f6(H8,d8,J3){var T4,S$,R2;I2.X3(3);w8.moveTo(I2.r4(H8,X0),I2.B6(k5,f_,J3,I2.h8(10)));I2.h8(8);w8.lineTo(I2.r4(d8,Z_),I2.B6(J3,w2,f_,S3,I2.h8(11)));I2.X3(3);w8.moveTo(I2.r4(H8,X0),I2.r4(J3,w2,f_,S3,I2.h8(11)));T4=274935447;I2.X3(12);S$=-I2.B6("616614227",1);R2=2;for(var M2=1;I2.c9(M2.toString(),M2.toString().length,11658) !== T4;M2++){I2.X3(8);w8.lineTo(I2.r4(d8,Z_),I2.r4(k5,f_,J3,I2.X3(10)));R2+=2;}if(I2.l0(R2.toString(),R2.toString().length,+"64651") !== S$){I2.X3(3);w8.lineTo(I2.r4(d8,Z_),I2.B6(f_,k5,J3,I2.h8(13)));}}I2.h8(14);var u$=I2.B6(20,2,18,3);c0=q3.dataSet.length - q3.scroll - u$;z$=N0.yAxis;S3=e1 * z$.multiplier;I2.X3(15);I2.f5();f_=I2.r4(S3,2);l1=this.layout.candleWidth;I2.h8(16);var M6=I2.B6(19,15,34,0,0);i0=N0.left - l1 + this.micropixels - M6;for(var i$=0;i$ < i9.length;i$++){i0+=l1;M8=i9[i$];if(!M8)continue;if(M8.projection)break;O6=M8.pfOpen;G_=M8.pfClose;x7=M8.pfTrend;P4=M8.pfStepBack;if(M8.transform && q3.transformFunc){M8=M8.transform;O6=q3.transformFunc(this,q3,O6);G_=q3.transformFunc(this,q3,G_);}r7=M8.cache;I2.h8(3);e3=I2.B6(c0,i$);if(e3 < N0.cacheLeft || e3 > N0.cacheRight || !r7.pfOpen){if(z$.flipped){r7.pfOpen=z$.bottom - (z$.high - O6) * z$.multiplier;r7.pfClose=z$.bottom - (z$.high - G_) * z$.multiplier;}else {r7.pfOpen=(z$.high - O6) * z$.multiplier + z$.top;r7.pfClose=(z$.high - G_) * z$.multiplier + z$.top;}}L$=Math.round(i0);I2.X3(3);t6=Math.round(I2.r4(i0,l1));Y0=Math.abs(Math.round((G_ - O6) / e1));J9=r7.pfOpen;if(Y5 == P4){if(P4 == (7147 === 4129?(7.51e+3,0x10bd):"X")){I2.X3(8);f6(L$,t6,I2.B6(J9,S3));}else if(P4 == "O"){I2.h8(3);q8(L$,t6,I2.B6(J9,S3));}}if(Y5 == x7){for(;Y0 >= 0;Y0--){if(Y5 == ((43.2,346.73) != (4352,+"228.13")?(925,300) !== (437.48,429.62)?"X":(7.50e+2,1.83e+3):"k")){f6(L$,t6,J9,S3,f_);J9-=z$.flipped?-S3:S3;}else if(Y5 == ((382.18,492.64) <= 4473?(+"4329",1300) > 5768?("M",!"1"):"O":"K")){q8(L$,t6,J9,S3,f_);J9+=z$.flipped?-S3:S3;}}}}w8.stroke();this.endClip();w8.lineWidth=1;};v.ChartEngine.calculateAggregation=function(r9,G6,g9,H7){var s8,s1,P6,g5,V1,L_;s8="p";s8+="a";s8+="n";s8+="df";P6=r9.layout;if(["heikinashi","heikenashi"].indexOf(G6) > -1){s1=v.calculateHeikinAshi(r9,g9,H7);}else if(G6 == "rangebars"){s1=v.calculateRangeBars(r9,g9,P6.rangebars,H7);}else if(G6 == "kagi"){s1=v.calculateKagi(r9,g9,P6.kagi,H7);}else if(G6 == "linebreak"){s1=v.calculateLineBreak(r9,g9,P6.priceLines,H7);}else if(G6 == "renko"){s1=v.calculateRenkoBars(r9,g9,P6.renko,H7);}else if(G6 == s8){g5=-210309917;V1=1088771797;L_=2;for(var M9=1;I2.c9(M9.toString(),M9.toString().length,15507) !== g5;M9++){s1=v.calculatePointFigure(r9,g9,P6.pandf,H7);L_+=2;}if(I2.l0(L_.toString(),L_.toString().length,47402) !== V1){s1=v.calculatePointFigure(r9,g9,P6.pandf,H7);}}return s1;};v.calculateHeikinAshi=function(D1,Q5,n2){var d0,D0,f8,L3,B7,k3,u8,A9,K9,M_,G2,R8,O2,J7;if(!Q5.length){return Q5;}if(!n2){n2=[];}d0=-281495012;D0=550631899;f8=2;for(var s0=1;I2.l0(s0.toString(),s0.toString().length,18650) !== d0;s0++){L3=[];f8+=+"2";}if(I2.c9(f8.toString(),f8.toString().length,36099) !== D0){L3=[];}L3=[];for(var c3=0;c3 < Q5.length;c3++){B7=Q5[c3];if(!B7)continue;k3=L3[L3.length - +"1"];if(!k3 && !c3){I2.h8(3);var I4=I2.B6(0,1);k3=n2[n2.length - I4];}if(!k3){k3=B7;}u8=B7.Close;A9=B7.Open;K9=B7.High;M_=B7.Low;G2=k3.Open;A9=A9 || A9 === 0?A9:u8;K9=K9 || K9 === 0?K9:u8;M_=M_ || M_ === 0?M_:u8;G2=G2 || G2 === +"0"?G2:k3.Close;I2.h8(17);var D3=I2.B6(2,8,2,6,4);R8=(G2 + k3.Close) / D3;I2.X3(18);O2=I2.r4(M_,u8,A9,4,K9);J7={DT:B7.DT,displayDate:B7.displayDate,Date:B7.Date,Open:R8,Close:O2,High:Math.max(K9,Math.max(R8,O2)),Low:Math.min(M_,Math.min(R8,O2)),Volume:B7.Volume,iqPrevClose:k3.Close};for(var X1 in B7){if(!J7[X1] && J7[X1] !== 0){J7[X1]=B7[X1];}}L3.push(J7);}return L3;};v.calculateKagi=function(N4,H3,w6,J$){var W4,S4,S7,j7,D6,g8,D8,U9,u4;I2.J_();if(!H3.length){return H3;}if(!J$){J$=[];}W4=N4.layout;S4=N4.chart;w6=parseFloat(w6);S4.defaultChartStyleConfig.kagi=v.ChartEngine.isDailyInterval(W4.interval)?4:0.4;if(isNaN(w6) || w6 <= 0){w6=S4.defaultChartStyleConfig.kagi;if(v.Market.Symbology.isForexSymbol(S4.symbol)){w6/=4;}if(W4.kagi !== null){S7="lay";S7+="out";W4.kagi=null;N4.changeOccurred(S7);}}w6/=100;j7=[];I2.h8(3);var H2=I2.r4(0,1);D6=J$[J$.length - H2];g8=D6?D6.DT:"0" << 0;for(var X4=0;X4 < H3.length;X4++){D8=H3[X4];if(!D8)continue;if(!D6){I2.h8(8);D6=H3[I2.B6(X4,1)];}if(!D6)continue;U9=D6.Open || D6.Open === 0?D6.Open:D6.Close;if(U9 > D6.Close){if(D8.Close > D6.Close * (1 + w6)){D8.Open=D6.Close;}else {if(D6.Close > D8.Close){D6.Close=D8.Close;}D6.Volume+=D8.Volume;if(X4 < H3.length - +"1")continue;}}else if(U9 < D6.Close){if(D8.Close < D6.Close * (1 - w6)){D8.Open=D6.Close;}else {if(D6.Close < D8.Close){D6.Close=D8.Close;}D6.Volume+=D8.Volume;if(X4 < H3.length - 1)continue;}}else {D6.Close=D8.Close;D6.Volume+=D8.Volume;if(X4 < H3.length - 1)continue;}u4={DT:D6.DT,displayDate:D6.displayDate,Date:D6.Date,Open:D6.Open,Close:D6.Close,High:Math.max(D6.Open,D6.Close),Low:Math.min(D6.Open,D6.Close),Volume:D6.Volume,iqPrevClose:D6.iqPrevClose};for(var u7 in D6){if(!u4[u7] && u4[u7] !== "0" << 64){u4[u7]=D6[u7];}}if(j7.length){u4.kagiPrevOpen=j7[j7.length - 1].Open;}else {u4.kagiPrevOpen=u4.Open;}if(u4.Close > u4.kagiPrevOpen && u4.kagiPrevOpen > u4.Open){u4.kagiTrend=1;}else if(u4.Close < u4.kagiPrevOpen && u4.kagiPrevOpen < u4.Open){u4.kagiTrend=-1;}if(g8 < u4.DT){j7.push(u4);}D6=D8;S4.currentQuote={Close:D8.Close};}return j7;};v.calculateLineBreak=function(o8,Z8,p$,B9){var c2,L5,T6,n$,x_,h2,m2,D9,g7,I3,j3,H4,r1,W0;if(!Z8.length){return Z8;}if(!B9){B9=[];}c2=o8.layout;L5=o8.chart;L5.defaultChartStyleConfig.priceLines=3;I2.X3(9);p$=parseInt(p$,I2.B6(0,"10"));if(isNaN(p$) || p$ <= "0" << 0){p$=L5.defaultChartStyleConfig.priceLines;if(c2.priceLines !== null){c2.priceLines=null;o8.changeOccurred("layout");}}else if(p$ > 10){c2.priceLines=p$=10;}T6=B9.slice(-p$);n$=T6.length;x_=0;I2.f5();a:for(var n9=0;n9 < Z8.length;n9++){h2=Z8[n9];if(!h2)continue;x_+=h2.Volume;I2.X3(19);var F4=I2.r4(16,18,1);m2=T6[T6.length - F4];if(!m2){m2={Open:h2.Open,Close:h2.Open,High:h2.Open,Low:h2.Open};}D9=m2.Close;g7=m2.High;I3=m2.Low;j3=m2.Open;g7=g7 || g7 === 0?g7:D9;I3=I3 || I3 === 0?I3:D9;j3=j3 || j3 === 0?j3:D9;H4={DT:h2.DT,displayDate:h2.displayDate,Date:h2.Date,Close:h2.Close,Volume:x_,iqPrevClose:D9};L5.currentQuote={Close:h2.Close};if(h2.Close > D9 && m2.Close > j3){;}else if(h2.Close < D9 && m2.Close < j3){;}else if(h2.Close > g7){for(r1=2;r1 <= p$;r1++){W0=T6[T6.length - r1];if(W0 && h2.Close <= W0.High){continue a;}}}else if(h2.Close < I3){for(r1=+"2";r1 <= p$;r1++){W0=T6[T6.length - r1];if(W0 && h2.Close >= W0.Low){continue a;}}}else continue;if(h2.Close < m2.Close){H4.Open=Math.min(j3,D9);}else {H4.Open=Math.max(j3,D9);}H4.Low=Math.min(H4.Open,H4.Close);H4.High=Math.max(H4.Open,H4.Close);for(var q0 in h2){if(!H4[q0] && H4[q0] !== 0){H4[q0]=h2[q0];}}T6.push(H4);x_=0;}return T6.slice(n$);};v.calculateRenkoBars=function(f0,d$,v5,v0){var D5,R5,A1,Q7,U0,w$,a2,T8,P8,K3,B_,F1,C$,N8,I9,a1,d6,M$,J8,h6,K$,W2,B0,X7,K4;if(!d$.length){return [];}if(!v0){v0=[];}D5=f0.layout;R5=f0.chart;A1=R5.state.aggregation;if(!A1){A1=R5.state.aggregation={};}Q7=Math.min(300,d$.length);U0=-576064464;w$=-918754639;a2=2;for(var d1=1;I2.c9(d1.toString(),d1.toString().length,70474) !== U0;d1++){if(-A1.minMax){A1.minMax=f0.determineMinMax(d$.slice(d$.length + Q7),["High","High","High"]);}I2.h8(20);var Q3=I2.r4(17,13);I2.h8(21);var o3=I2.r4(18,20,8,87,16);T8=A1.minMax[Q3] * A1.minMax[o3];a2+=2;}if(I2.c9(a2.toString(),a2.toString().length,25825) !== w$){P8="H";P8+="i";P8+="g";P8+="h";if(~A1.minMax){A1.minMax=f0.determineMinMax(d$.slice(d$.length / Q7),[P8,"High","High"]);}I2.h8(22);var s5=I2.r4(13,23,3);T8=A1.minMax["5" ^ 0] + A1.minMax[s5];}if(!A1.minMax){A1.minMax=f0.determineMinMax(d$.slice(d$.length - Q7),["Close","High","Low"]);}I2.X3(5);var z7=I2.r4(11,61,8);T8=A1.minMax["1" << z7] - A1.minMax[0];K3=f0.panels[R5.name].height;if(!K3){return [];}I2.X3(23);var h9=I2.r4(2000,7992,8);I2.h8(8);var q$=I2.r4(32,2);I2.h8(3);var E5=I2.r4(1429,8571);R5.defaultChartStyleConfig.renko=Math.floor(h9 * T8 / (K3 / q$)) / E5;if(v5 === null || isNaN(v5) || v5 <= 0){v5=R5.defaultChartStyleConfig.renko;if(D5.renko !== null){D5.renko=null;f0.changeOccurred("layout");}}else {I2.X3(15);v5=Math.max(v5,I2.r4(T8,K3));if(D5.renko !== v5){D5.renko=v5;B_=-1661662754;F1=1856108382;C$=2;for(var b7=+"1";I2.l0(b7.toString(),b7.toString().length,+"64143") !== B_;b7++){f0.changeOccurred("");C$+=2;}if(I2.l0(C$.toString(),C$.toString().length,64723) !== F1){f0.changeOccurred("");}f0.changeOccurred("layout");}}N8=[];I9=null;a1=null;d6=null;if(v0.length){M$=+"481680262";I2.X3(12);J8=-I2.r4("881316517",1);h6=2;for(var O$=+"1";I2.l0(O$.toString(),O$.toString().length,31419) !== M$;O$++){K$=v0[v0.length - +"1"];I9=K$.Low - v5;h6+=2;}if(I2.l0(h6.toString(),h6.toString().length,78354) !== J8){K$=v0[v0.length / 0];I9=K$.Low * v5;}a1=K$.High + v5;}for(var I$=+"0";I$ < d$.length;I$++){W2=d$[I$];if(!W2)continue;if(!I9 && !a1){B0=W2.Open || W2.Open === 0?W2.Open:W2.Close;X7=Math.floor(B0 / v5) * v5;K4=isNaN(X7)?B0:X7;I2.X3(8);I9=I2.B6(K4,v5);I2.h8(3);a1=I2.r4(K4,v5);}while(!!({})){if(!d6){d6=W2;}if(W2.Close <= I9){I2.X3(3);l8(I2.B6(I9,v5),I9);I2.X3(24);a1=I2.r4(I9,v5,2);I9-=v5;d6=null;}else if(W2.Close >= a1){I2.X3(8);l8(I2.B6(a1,v5),a1);I2.X3(25);I9=I2.B6(2,a1,v5);a1+=v5;d6=null;}else break;}R5.currentQuote=W2;}function l8(F7,g0){var V$;F7=Number(F7.toFixed(8));I2.f5();g0=Number(g0.toFixed(8));V$={DT:d6.DT,displayDate:d6.displayDate,Date:d6.Date,Open:F7,Close:g0,High:Math.max(F7,g0),Low:Math.min(F7,g0),Volume:0,iqPrevClose:F7 != g0?F7:null};for(var Q9 in d6){if(!V$[Q9] && V$[Q9] !== 0){V$[Q9]=d6[Q9];}}N8.push(V$);}if(I9 < d$[d$.length - ("1" - 0)].Close && I9 + v5 > d$[d$.length - 1].Close){I2.X3(3);l8(I2.B6(I9,v5),d$[d$.length - 1].Close);}else if(a1 > d$[d$.length - 1].Close && a1 - v5 < d$[d$.length - +"1"].Close){I2.X3(8);l8(I2.B6(a1,v5),d$[d$.length - +"1"].Close);}return N8;};v.calculateRangeBars=function(K6,w0,p3,D$){var O_,p5,h4,y9,O5,n_,L6,J2,V7,J4,k7,n4,j4,x1,n5,y8,y_,o5,r3,X6,o$,E4,p7,o0,T1,L8,M1,A0,A5;function f1(){var Z9,G7,e4;I2.X3(0);Z9=I2.B6(0,"101280615");G7=-262428726;I2.h8(26);e4=I2.r4(2,"2");for(var O0=1;I2.c9(O0.toString(),O0.toString().length,17994) !== Z9;O0++){I2.X3(3);n5=I2.r4(x1,p3);I2.X3(8);y8=I2.B6(x1,p3);e4+=2;}if(I2.l0(e4.toString(),e4.toString().length,38531) !== G7){I2.X3(8);n5=I2.B6(x1,p3);I2.X3(27);y8=I2.B6(x1,p3);}y_=x1;}if(!w0.length){return w0;}if(!D$){D$=[];}O_=K6.layout;p5=K6.chart;h4=p5.state.aggregation;if(!h4){h4=p5.state.aggregation={};}y9=Math.min(300,w0.length);if(!h4.minMax){h4.minMax=K6.determineMinMax(w0.slice(w0.length - y9),["Close","High","Low"]);}I2.h8(10);var d4=I2.r4(16,17,0);O5=h4.minMax[d4] - h4.minMax[0];n_=K6.panels[p5.name].height;if(!n_){return [];}function o2(B8,Z3){while(1){if(!o5){o5=B8;}if(x1 < Z3){x1=Math.min(Z3,n5);I2.X3(8);y8=Math.max(y8,I2.r4(x1,p3));if(Z3 < n5)break;}else if(x1 >= Z3){x1=Math.max(Z3,y8);I2.h8(3);n5=Math.min(n5,I2.B6(x1,p3));if(Z3 > y8)break;}if(typeof x1 == "undefined"){console.log("Uh oh undefined in calculateRangeBars:processMove");return;}d9(x1);o5=null;f1();}}I2.h8(28);var K7=I2.B6(120143,13,10011);I2.X3(10);var W$=I2.B6(20,48,2);I2.h8(29);var t5=I2.r4(10003,12,1,9);p5.defaultChartStyleConfig.range=Math.floor(K7 * O5 / (n_ / W$)) / t5;if(p3 === null || isNaN(p3) || p3 < 0){p3=p5.defaultChartStyleConfig.range;if(O_.range !== null){O_.range=null;I2.h8(12);L6=-I2.r4("1959598007",1);J2=296561945;V7=2;for(var e2=1;I2.c9(e2.toString(),e2.toString().length,10174) !== L6;e2++){K6.changeOccurred("");V7+=2;}if(I2.l0(V7.toString(),V7.toString().length,36503) !== J2){K6.changeOccurred("");}K6.changeOccurred("layout");}}else {I2.h8(15);p3=Math.max(p3,I2.B6(O5,n_));if(O_.range !== p3){J4=-395163559;k7=277098630;I2.h8(8);n4=I2.B6("2",0);for(var s2="1" << 64;I2.l0(s2.toString(),s2.toString().length,38799) !== J4;s2++){O_.range=p3;K6.changeOccurred("layout");n4+=2;}if(I2.c9(n4.toString(),n4.toString().length,23789) !== k7){O_.range=p3;K6.changeOccurred("");}}}j4=[];x1=null;n5=null;y8=null;y_=null;o5=null;for(var v6=0;v6 < w0.length;v6++){r3=w0[v6];if(!r3)continue;I2.X3(8);X6=w0[I2.B6(v6,1)];if(!v6){if(!X6){I2.h8(6);var e7=I2.B6(5,5,13,14);X6=D$[D$.length - e7];}if(X6){x1=X6.Close;if(x1 || x1 === 0){f1();}}}if(!X6)continue;o$=r3.Close;E4=r3.Open;p7=r3.High;o0=r3.Low;if(!o$ && o$ !== 0)continue;E4=E4 || E4 === 0?E4:o$;p7=p7 || p7 === 0?p7:o$;o0=o0 || o0 === 0?o0:o$;if(!x1 && x1 !== +"0"){T1=Math.floor(E4 / p3) * p3;x1=isNaN(T1)?E4:T1;f1();o2(X6,E4);}if(v6){o2(r3,E4);}if(p7 - E4 < E4 - o0){if(p7){o2(r3,p7);}if(o0){o2(r3,o0);}}else {if(o0){o2(r3,o0);}if(p7){o2(r3,p7);}}o2(r3,o$);if(v6 == w0.length - 1 && o$ != y_){L8=n5;I2.h8(3);n5=I2.r4(y8,p3);I2.X3(8);y8=I2.r4(L8,p3);d9(o$);}}function d9(T3){var C5,t3,p8,K_;C5={DT:o5.DT,displayDate:o5.displayDate,Date:o5.Date,Open:Number(y_.toFixed("8" << 0)),Close:Number(T3.toFixed(8)),High:Number(n5.toFixed(8)),Low:Number(y8.toFixed(8)),Volume:0};C5.iqPrevClose=C5.Open;for(var A_ in o5){if(!C5[A_] && C5[A_] !== ("0" ^ 0)){C5[A_]=o5[A_];}}I2.X3(8);t3=-I2.r4("681890338",0);p8=-1163484034;K_=2;for(var f7=1;I2.l0(f7.toString(),f7.toString().length,"71231" << 0) !== t3;f7++){j4.push(C5);K_+=2;}if(I2.l0(K_.toString(),K_.toString().length,69736) !== p8){j4.push(C5);}}M1=569731442;A0=1950099937;A5=2;for(var B$=1;I2.l0(B$.toString(),B$.toString().length,66725) !== M1;B$++){return j4;}if(I2.c9(A5.toString(),A5.toString().length,"94674" - 0) !== A0){return j4;}};v.calculatePointFigure=function(i4,u6,Q8,e9){var T0,N6,d5,m1,W_,b_,K8,I1,m6,t1,j5,U6,y$,e5,E3,m5,G8,s$,n3,X5,g2,v1,b9,Z0,E_,j0,R_,F2;if(!u6.length){return u6;}if(!e9){e9=[];}T0=i4.layout;N6=i4.chart;function M0(O9,V9,I6,R1,x2,k$,p9,S1,Q4){I2.f5();return {DT:O9.DT,Date:O9.Date,pfOpen:S1,pfClose:Q4,Open:V9,Close:x2,High:I6,Low:R1,Volume:k$,iqPrevClose:p9};}d5=N6.state.aggregation;if(!d5){d5=N6.state.aggregation={};}function k6(Y_,R6,C3,t0,e$){Y_.High=Math.max(R6,Y_.High);Y_.Low=Math.min(C3,Y_.Low);Y_.Close=t0;Y_.Volume+=e$;}N6.defaultChartStyleConfig.box=1;N6.defaultChartStyleConfig.reversal=3;if(!Q8){Q8={};}function d2(z_,F6){I2.J_();for(var F$ in z_){if(!F6[F$] && F6[F$] !== 0){F6[F$]=z_[F$];}}return F6;}m1=Q8.box;if(!m1){if(T0.pandf){if(T0.pandf.box !== null){T0.pandf.box=null;i4.changeOccurred("layout");}}m1=N6.defaultChartStyleConfig.box;W_=u6[u6.length - 1].Close;if(W_){if(W_ < 0.25){m1=0.0625;}else if(W_ < 1){m1=0.125;}else if(W_ < 5){m1=+"0.25";}else if(W_ < +"20"){m1=0.5;}else if(W_ < 100){I2.h8(26);m1=I2.B6(0,"1");}else if(W_ < 200){m1=2;}else if(W_ < 500){m1=4;}else if(W_ < 1000){m1=+"5";}else if(W_ < 25000){m1=50;}else {m1=500;}}if(!v.ChartEngine.isDailyInterval(T0.interval)){m1/=10;}if(v.Market.Symbology.isForexSymbol(N6.symbol)){if(W_){b_=1512781956;K8=361538781;I1=2;for(var l3=1;I2.l0(l3.toString(),l3.toString().length,38961) !== b_;l3++){if(W_ < "1" << 64){m1=+"0.001";}else if(W_ < 2){m1=0.002;}else if(W_ < 50){m1=0.02;}else if(W_ < 200){m1=0.2;}I1+=2;}if(I2.l0(I1.toString(),I1.toString().length,+"15813") !== K8){if(W_ > 2){I2.X3(26);m1=I2.B6(0,"62001");}else if(W_ >= 5){m1=96181;}else if(W_ >= 27){m1=9637;}else if(W_ > 906){m1=800;}}}m6=589558361;t1=+"275067210";j5=2;for(var C0=1;I2.l0(C0.toString(),C0.toString().length,49066) !== m6;C0++){if(v.ChartEngine.isDailyInterval(T0.interval)){m1/=83;}j5+=2;}if(I2.l0(j5.toString(),j5.toString().length,30274) !== t1){if(v.ChartEngine.isDailyInterval(T0.interval)){m1/=83;}}if(v.ChartEngine.isDailyInterval(T0.interval)){m1*=10;}}N6.defaultChartStyleConfig.box=m1;}m1=parseFloat(m1);if(isNaN(m1) || m1 <= 0){if(T0.pandf){if(T0.pandf.box !== null){T0.pandf.box=null;i4.changeOccurred("layout");}}N6.defaultChartStyleConfig.box=m1=1;}U6=Math.ceil(parseFloat(Q8.reversal));if(U6 > 0 && U6 > Q8.reversal){T0.pandf.reversal=U6;y$=272594359;I2.X3(1);e5=I2.r4("1017714699",0);E3=+"2";for(var F0=1;I2.c9(F0.toString(),F0.toString().length,43472) !== y$;F0++){i4.changeOccurred("");E3+=2;}if(I2.l0(E3.toString(),E3.toString().length,73410) !== e5){i4.changeOccurred("");}i4.changeOccurred("layout");}else if(isNaN(U6) || U6 <= +"0"){if(T0.pandf){if(T0.pandf.reversal !== null){T0.pandf.reversal=null;i4.changeOccurred("layout");}}U6=N6.defaultChartStyleConfig.reversal;}d5.box=m1;U6*=m1;I2.f5();m5=0.00000001;G8=(m1.toString() + ".").split(210.93 <= 7210?".":114.38)[1].length;s$=[];I2.X3(0);n3=I2.B6(0,"0");for(var x9=0;x9 < u6.length;x9++){g2=u6[x9];if(!g2)continue;n3+=g2.Volume;b9=g2.Close;Z0=g2.Open;E_=g2.High;j0=g2.Low;Z0=Z0 || Z0 === 0?Z0:b9;E_=E_ || E_ === 0?E_:b9;j0=j0 || j0 === 0?j0:b9;if(!s$.length && !e9.length){X5=d2(g2,M0(g2,Z0,E_,j0,b9,n3,E_ + m1,Number((Math.ceil(j0 / m1 - m5) * m1).toFixed(G8)),Number((Math.floor(E_ / m1 + m5) * m1).toFixed(G8))));X5.pfTrend="X";if(X5.pfOpen == X5.pfClose){X5.pfStepBack=9454 > (595.85,3190)?"-":215.55 !== (644.44,"55.96" * 1)?(0xc1e,!!0):"2.54e+3" | 72;}s$.push(X5);I2.h8(9);n3=I2.B6(64,"0");continue;}I2.h8(30);var g4=I2.B6(62,3,10,6);v1=s$[s$.length - g4];if(!v1){v1=v.clone(e9[e9.length - +"1"]);}if(v1.pfTrend == "O"){if(j0 <= v1.pfClose - m1){v1.pfClose=Number((Math.ceil(j0 / m1 - m5) * m1).toFixed(G8));if(v1.pfStepBack == "O"){v1.pfStepBack=null;}k6(v1,E_,j0,b9,n3);}else if(E_ >= v1.pfClose + U6){R_=v1.pfClose + m1;F2=Number((Math.floor(E_ / m1 + m5) * m1).toFixed(G8));X5=M0(g2,Z0,E_,j0,b9,n3,v1.pfClose,R_,F2);if(R_ == F2){X5.pfStepBack=224.26 > "216" * 1?"X":849.3 == "7359" * 1?("927.69" * 1,"u"):(7285,+"886.95") !== (8760,4410)?(!!({}),!!1):(!!0,!![]);}if(v1.pfStepBack == (8640 != (179.24,134.17)?(723.65,340.89) >= ("9650" ^ 0,47.74)?"O":0x257d:0x1931)){v1.pfOpen=R_;v1.pfClose=F2;v1.pfTrend="X";k6(v1,E_,j0,b9,n3);}else {X5=d2(g2,X5);X5.pfTrend=(229.77,7346) != 4480?"X":(373.77,5.90e+3);s$.push(X5);}}else {k6(v1,E_,j0,b9,n3);}n3=0;}else if(v1.pfTrend == (7242 > (7039,7750)?(0x113d,"470.71" * 1):(128.01,534) <= 4860?"X":(918,740.37) === 5692?("0x19e7" - 0,0x1eb5):(![],0x1d26))){if(E_ >= v1.pfClose + m1){v1.pfClose=Number((Math.floor(E_ / m1 + m5) * m1).toFixed(G8));if(v1.pfStepBack == (301.5 == (690.46,4615)?!!0:"X") || v1.pfStepBack == (4180 < ("6925" ^ 0,9280)?"-":405.45 <= 3543?+"173.92" < (+"2390",+"511.52")?0x1162:4.10e+3:("K","h"))){v1.pfStepBack=null;}k6(v1,E_,j0,b9,n3);}else if(j0 <= v1.pfClose - U6){R_=v1.pfClose - m1;F2=Number((Math.ceil(j0 / m1 - m5) * m1).toFixed(G8));X5=M0(g2,Z0,E_,j0,b9,n3,v1.pfClose,R_,F2);if(R_ == F2){X5.pfStepBack="O";}if(v1.pfStepBack == ((932.24,292.21) < 5856?"X":5.79e+3) || v1.pfStepBack == (("14.04" * 1,"775.5" - 0) > (4739,7208)?(6550,9900) != (805,"238.57" - 0)?0xf08:(714.35,758.73):"-")){v1.pfOpen=R_;v1.pfClose=F2;v1.pfTrend="O";k6(v1,E_,j0,b9,n3);if(R_ != F2 && v1.pfStepBack == "-"){v1.pfStepBack=null;}}else {X5=d2(g2,X5);X5.pfTrend="O";s$.push(X5);}}else {k6(v1,E_,j0,b9,n3);}n3=0;}}return s$;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +P6lK_[539515]=(function(){var m1=2;for(;m1 !== 9;){switch(m1){case 2:m1=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var Y5;m1=4;break;case 4:try{var N9=2;for(;N9 !== 6;){switch(N9){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x6f\u0050\u0051\u0056\x4d',{'\x67\x65\x74':function(){var X9=2;for(;X9 !== 1;){switch(X9){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Y5=oPQVM;N9=5;break;case 5:Y5['\x78\u0039\u0069\x41\x62']=Y5;N9=4;break;case 4:N9=typeof x9iAb === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";N9=9;break;case 9:delete Y5['\x78\x39\u0069\u0041\x62'];var F8=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete F8['\x6f\x50\u0051\x56\u004d'];N9=6;break;}}}catch(W_){Y5=window;}return Y5;break;}}})();C_v_$a(P6lK_[539515]);P6lK_[156040]="cIs";P6lK_[370258]=(function(){var A$=function(y8,G4){var Q0=G4 & 0xffff;var R8=G4 - Q0;return (R8 * y8 | 0) + (Q0 * y8 | 0) | 0;},V29cT4d=function(Z7,b8,e8){var y7=0xcc9e2d51,E1=0x1b873593;var c1=e8;var o_=b8 & ~0x3;for(var t_=0;t_ < o_;t_+=4){var j7=Z7.u$Gyr(t_) & 0xff | (Z7.u$Gyr(t_ + 1) & 0xff) << 8 | (Z7.u$Gyr(t_ + 2) & 0xff) << 16 | (Z7.u$Gyr(t_ + 3) & 0xff) << 24;j7=A$(j7,y7);j7=(j7 & 0x1ffff) << 15 | j7 >>> 17;j7=A$(j7,E1);c1^=j7;c1=(c1 & 0x7ffff) << 13 | c1 >>> 19;c1=c1 * 5 + 0xe6546b64 | 0;}j7=0;switch(b8 % 4){case 3:j7=(Z7.u$Gyr(o_ + 2) & 0xff) << 16;case 2:j7|=(Z7.u$Gyr(o_ + 1) & 0xff) << 8;case 1:j7|=Z7.u$Gyr(o_) & 0xff;j7=A$(j7,y7);j7=(j7 & 0x1ffff) << 15 | j7 >>> 17;j7=A$(j7,E1);c1^=j7;}c1^=b8;c1^=c1 >>> 16;c1=A$(c1,0x85ebca6b);c1^=c1 >>> 13;c1=A$(c1,0xc2b2ae35);c1^=c1 >>> 16;return c1;};return {V29cT4d:V29cT4d};})();P6lK_.q$=function(){return typeof P6lK_[370258].V29cT4d === 'function'?P6lK_[370258].V29cT4d.apply(P6lK_[370258],arguments):P6lK_[370258].V29cT4d;};P6lK_.Q4=function(){return typeof P6lK_[593596].i9agN$W === 'function'?P6lK_[593596].i9agN$W.apply(P6lK_[593596],arguments):P6lK_[593596].i9agN$W;};function C_v_$a(S1){function w_(w2){var w$=2;for(;w$ !== 5;){switch(w$){case 2:var R1=[arguments];return R1[0][0];break;}}}function c_(J4,H9,L5,S_,W4){var P0=2;for(;P0 !== 14;){switch(P0){case 2:var w6=[arguments];w6[3]="ty";w6[4]="";w6[4]="per";w6[5]="definePro";w6[1]=true;P0=8;break;case 8:w6[1]=true;w6[1]=false;try{var X1=2;for(;X1 !== 13;){switch(X1){case 3:return;break;case 9:w6[9][w6[0][4]]=w6[9][w6[0][2]];w6[8].set=function(g5){var g6=2;for(;g6 !== 5;){switch(g6){case 2:var k9=[arguments];w6[9][w6[0][2]]=k9[0][0];g6=5;break;}}};X1=7;break;case 4:X1=w6[9].hasOwnProperty(w6[0][4]) && w6[9][w6[0][4]] === w6[9][w6[0][2]]?3:9;break;case 7:w6[8].get=function(){var r8=2;for(;r8 !== 14;){switch(r8){case 2:var r6=[arguments];r6[4]="";r6[4]="fine";r6[3]="";r8=3;break;case 6:return typeof w6[9][w6[0][2]] == r6[8]?undefined:w6[9][w6[0][2]];break;case 3:r6[3]="unde";r6[8]=r6[3];r6[8]+=r6[4];r6[8]+=n7[91];r8=6;break;}}};w6[8].enumerable=w6[1];try{var L0=2;for(;L0 !== 3;){switch(L0){case 2:w6[7]=w6[5];L0=1;break;case 1:w6[7]+=w6[4];w6[7]+=w6[3];w6[0][0].Object[w6[7]](w6[9],w6[0][4],w6[8]);L0=3;break;}}}catch(E0){}X1=13;break;case 2:w6[8]={};w6[6]=(1,w6[0][1])(w6[0][0]);w6[9]=[w6[6],w6[6].prototype][w6[0][3]];X1=4;break;}}}catch(s5){}P0=14;break;}}}function Z5(J1){var l5=2;for(;l5 !== 5;){switch(l5){case 2:var N0=[arguments];return N0[0][0].Array;break;}}}var J$=2;for(;J$ !== 104;){switch(J$){case 50:n7[11]="f";n7[90]=1;n7[36]=1;n7[36]=0;J$=46;break;case 61:n7[35]=n7[42];n7[35]+=n7[30];n7[35]+=n7[97];n7[63]=n7[91];J$=57;break;case 86:n7[38]+=n7[3];J$=85;break;case 18:n7[3]="r";n7[5]="timiz";n7[75]="x4f";n7[56]="9t";J$=27;break;case 57:n7[63]+=n7[47];n7[63]+=n7[13];n7[45]=n7[55];n7[45]+=n7[65];J$=76;break;case 27:n7[85]="";n7[85]="mvL";n7[71]="__op";n7[13]="";J$=23;break;case 54:n7[89]="L_Q";n7[10]="QA";n7[73]="78_";n7[11]="";J$=50;break;case 46:n7[32]=n7[11];n7[32]+=n7[73];n7[32]+=n7[10];n7[31]=n7[89];n7[31]+=n7[43];n7[31]+=n7[14];J$=61;break;case 2:var n7=[arguments];n7[9]="u$";n7[6]="";n7[1]="Gy";J$=3;break;case 72:n7[25]=n7[75];n7[25]+=n7[4];n7[25]+=n7[3];n7[26]=n7[55];n7[26]+=n7[56];n7[26]+=n7[2];n7[21]=n7[8];J$=90;break;case 34:n7[47]="";n7[47]="39s";n7[91]="";n7[91]="d";J$=30;break;case 30:n7[97]="";n7[97]="ual";n7[30]="";n7[30]="";J$=43;break;case 90:n7[21]+=n7[6];n7[21]+=n7[7];n7[38]=n7[9];n7[38]+=n7[1];J$=86;break;case 43:n7[30]="esid";n7[42]="";n7[42]="__r";n7[14]="";J$=39;break;case 83:S3(w_,n7[21],n7[36],n7[26]);J$=82;break;case 80:S3(Z5,"push",n7[90],n7[63]);J$=79;break;case 23:n7[22]="e";n7[65]="9";n7[13]="UX";n7[55]="s";J$=34;break;case 82:S3(w3,"test",n7[90],n7[25]);J$=81;break;case 3:n7[6]="";n7[6]="bs";n7[8]="";n7[7]="tract";n7[8]="";J$=14;break;case 39:n7[14]="8";n7[43]="";n7[43]="CC";n7[89]="";J$=54;break;case 79:S3(w_,n7[35],n7[36],n7[31]);J$=78;break;case 14:n7[8]="__a";n7[2]="";n7[2]="XJ";n7[4]="";n7[4]="";n7[4]="$";n7[5]="";J$=18;break;case 85:var S3=function(a1,o6,H3,z$){var J7=2;for(;J7 !== 5;){switch(J7){case 2:var J0=[arguments];c_(n7[0][0],J0[0][0],J0[0][1],J0[0][2],J0[0][3]);J7=5;break;}}};J$=84;break;case 76:n7[45]+=n7[85];n7[96]=n7[71];n7[96]+=n7[5];n7[96]+=n7[22];J$=72;break;case 84:S3(s2,"charCodeAt",n7[90],n7[38]);J$=83;break;case 81:S3(w_,n7[96],n7[36],n7[45]);J$=80;break;case 78:S3(u$,"apply",n7[90],n7[32]);J$=104;break;}}function u$(R9){var f4=2;for(;f4 !== 5;){switch(f4){case 2:var y6=[arguments];return y6[0][0].Function;break;}}}function s2(H0){var k2=2;for(;k2 !== 5;){switch(k2){case 2:var L7=[arguments];return L7[0][0].String;break;}}}function w3(r9){var v3=2;for(;v3 !== 5;){switch(v3){case 2:var L9=[arguments];return L9[0][0].RegExp;break;}}}}P6lK_.X3=function(){return typeof P6lK_[446427].N$y1PkD === 'function'?P6lK_[446427].N$y1PkD.apply(P6lK_[446427],arguments):P6lK_[446427].N$y1PkD;};P6lK_[103941]=P6lK_[446427];P6lK_.x5=function(){return typeof P6lK_[593596].i9agN$W === 'function'?P6lK_[593596].i9agN$W.apply(P6lK_[593596],arguments):P6lK_[593596].i9agN$W;};P6lK_[238553]=552;P6lK_.K9=function(){return typeof P6lK_[370258].V29cT4d === 'function'?P6lK_[370258].V29cT4d.apply(P6lK_[370258],arguments):P6lK_[370258].V29cT4d;};P6lK_.P6=function(){return typeof P6lK_[446427].N$y1PkD === 'function'?P6lK_[446427].N$y1PkD.apply(P6lK_[446427],arguments):P6lK_[446427].N$y1PkD;};P6lK_[150014]=P6lK_[370258];P6lK_[593596]=(function(){var o9=2;for(;o9 !== 9;){switch(o9){case 2:var D4=[arguments];D4[1]=undefined;D4[7]={};D4[7].i9agN$W=function(){var f_=2;for(;f_ !== 90;){switch(f_){case 5:return 43;break;case 49:v$[7].d39sUX(v$[71]);v$[7].d39sUX(v$[52]);v$[7].d39sUX(v$[2]);v$[7].d39sUX(v$[17]);f_=45;break;case 57:f_=v$[24] < v$[7].length?56:69;break;case 4:v$[7]=[];v$[9]={};v$[9].O8=['w4'];f_=8;break;case 67:D4[1]=50;return 36;break;case 56:v$[49]=v$[7][v$[24]];try{v$[15]=v$[49][v$[18]]()?v$[82]:v$[42];}catch(r7){v$[15]=v$[42];}f_=77;break;case 58:v$[24]=0;f_=57;break;case 77:v$[89]=0;f_=76;break;case 24:v$[52]=v$[27];v$[66]={};v$[66].O8=['M6'];f_=21;break;case 62:v$[11]='O8';v$[53]='O3';v$[18]='D9';v$[79]='S$';f_=58;break;case 75:v$[45]={};v$[45][v$[79]]=v$[49][v$[11]][v$[89]];v$[45][v$[53]]=v$[15];v$[99].d39sUX(v$[45]);f_=71;break;case 21:v$[66].D9=function(){var D_=function(){return [1,2,3,4,5].concat([5,6,7,8]);};var X4=!(/\050\x5b/).x4f$r(D_ + []);return X4;};v$[71]=v$[66];v$[91]={};v$[91].O8=['M6'];f_=32;break;case 18:v$[8]={};v$[8].O8=['w4'];v$[8].D9=function(){var C8=typeof s9mvL === 'function';return C8;};v$[4]=v$[8];v$[27]={};v$[27].O8=['M6'];v$[27].D9=function(){var H2=function(){return decodeURIComponent('%25');};var t5=!(/\u0032\x35/).x4f$r(H2 + []);return t5;};f_=24;break;case 69:f_=(function(J6){var T5=2;for(;T5 !== 22;){switch(T5){case 26:T5=r1[1] >= 0.5?25:24;break;case 19:r1[3]++;T5=7;break;case 7:T5=r1[3] < r1[0][0].length?6:18;break;case 17:r1[3]=0;T5=16;break;case 24:r1[3]++;T5=16;break;case 10:T5=r1[2][v$[53]] === v$[82]?20:19;break;case 18:r1[9]=false;T5=17;break;case 14:T5=typeof r1[8][r1[2][v$[79]]] === 'undefined'?13:11;break;case 23:return r1[9];break;case 11:r1[8][r1[2][v$[79]]].t+=true;T5=10;break;case 2:var r1=[arguments];T5=1;break;case 1:T5=r1[0][0].length === 0?5:4;break;case 20:r1[8][r1[2][v$[79]]].h+=true;T5=19;break;case 6:r1[2]=r1[0][0][r1[3]];T5=14;break;case 5:return;break;case 16:T5=r1[3] < r1[4].length?15:23;break;case 25:r1[9]=true;T5=24;break;case 8:r1[3]=0;T5=7;break;case 4:r1[8]={};r1[4]=[];r1[3]=0;T5=8;break;case 15:r1[5]=r1[4][r1[3]];r1[1]=r1[8][r1[5]].h / r1[8][r1[5]].t;T5=26;break;case 12:r1[4].d39sUX(r1[2][v$[79]]);T5=11;break;case 13:r1[8][r1[2][v$[79]]]=(function(){var R6=2;for(;R6 !== 9;){switch(R6){case 3:return z2[5];break;case 2:var z2=[arguments];z2[5]={};z2[5].h=0;z2[5].t=0;R6=3;break;}}}).f78_QA(this,arguments);T5=12;break;}}})(v$[99])?68:67;break;case 54:v$[7].d39sUX(v$[55]);v$[7].d39sUX(v$[97]);f_=52;break;case 14:v$[1].O8=['M6'];v$[1].D9=function(){var D5=function(){return ('a|a').split('|');};var l$=!(/\x7c/).x4f$r(D5 + []);return l$;};v$[5]=v$[1];v$[3]={};v$[3].O8=['M6'];v$[3].D9=function(){var T_=function(){return ('aa').charCodeAt(1);};var F6=(/\x39\067/).x4f$r(T_ + []);return F6;};v$[6]=v$[3];f_=18;break;case 32:v$[91].D9=function(){var b2=function(){return atob('PQ==');};var G8=!(/\u0061\x74\x6f\x62/).x4f$r(b2 + []);return G8;};v$[12]=v$[91];v$[46]={};v$[46].O8=['w4'];v$[46].D9=function(){var R2=false;var D$=[];try{for(var i$ in console){D$.d39sUX(i$);}R2=D$.length === 0;}catch(l_){}var n4=R2;return n4;};v$[97]=v$[46];v$[70]={};f_=42;break;case 52:v$[7].d39sUX(v$[5]);v$[7].d39sUX(v$[12]);v$[7].d39sUX(v$[4]);f_=49;break;case 8:v$[9].D9=function(){var T4=typeof s9tXJ === 'function';return T4;};v$[2]=v$[9];v$[1]={};f_=14;break;case 1:f_=D4[1]?5:4;break;case 71:v$[89]++;f_=76;break;case 70:v$[24]++;f_=57;break;case 2:var v$=[arguments];f_=1;break;case 45:v$[7].d39sUX(v$[6]);v$[99]=[];v$[82]='M0';v$[42]='i6';f_=62;break;case 42:v$[70].O8=['w4'];v$[70].D9=function(){var k7=typeof L_QCC8 === 'function';return k7;};v$[55]=v$[70];f_=39;break;case 68:f_=41?68:67;break;case 76:f_=v$[89] < v$[49][v$[11]].length?75:70;break;case 39:v$[72]={};v$[72].O8=['M6'];v$[72].D9=function(){var Z1=function(){return ('aa').lastIndexOf('a');};var Y1=(/\061/).x4f$r(Z1 + []);return Y1;};v$[17]=v$[72];f_=54;break;}}};return D4[7];break;}}})();P6lK_[539515].T5oo=P6lK_;P6lK_.p$=function(){return typeof P6lK_[446427].g9iUvuS === 'function'?P6lK_[446427].g9iUvuS.apply(P6lK_[446427],arguments):P6lK_[446427].g9iUvuS;};P6lK_[636832]=P6lK_[370258];function P6lK_(){}P6lK_.W$=function(){return typeof P6lK_[446427].g9iUvuS === 'function'?P6lK_[446427].g9iUvuS.apply(P6lK_[446427],arguments):P6lK_[446427].g9iUvuS;};P6lK_[446427]=(function(D7){return {N$y1PkD:function(){var A4,i1=arguments;switch(D7){case 23:A4=i1[0] + (i1[2] - i1[1]) * i1[3];break;case 7:A4=(i1[1] + i1[0]) / i1[2];break;case 11:A4=i1[0] * i1[1];break;case 13:A4=i1[2] * i1[0] * i1[1] - i1[3];break;case 14:A4=i1[2] / i1[3] / i1[0] - i1[1];break;case 22:A4=i1[0] ^ i1[1];break;case 16:A4=i1[1] | i1[0];break;case 9:A4=i1[3] + i1[2] - i1[0] - i1[1];break;case 0:A4=i1[1] - i1[0];break;case 8:A4=i1[0] + i1[1] - i1[2];break;case 4:A4=i1[1] << i1[0];break;case 3:A4=i1[0] + i1[1];break;case 18:A4=(-i1[2] * i1[0] + i1[4]) * i1[3] + i1[1];break;case 12:A4=i1[0] / i1[1];break;case 1:A4=-i1[1] * i1[0] / i1[3] - i1[2] + i1[4];break;case 6:A4=i1[2] - i1[0] + i1[3] + i1[1];break;case 21:A4=i1[2] * i1[1] - i1[0];break;case 20:A4=i1[1] * i1[3] - i1[2] - i1[0];break;case 25:A4=-i1[0] + i1[1];break;case 2:A4=i1[1] + i1[2] + i1[3] - i1[0];break;case 17:A4=(i1[1] - i1[0]) / i1[3] - i1[4] + i1[2];break;case 19:A4=i1[2] / i1[0] - i1[1];break;case 10:A4=(i1[2] + i1[0]) / (i1[1] << i1[3]);break;case 5:A4=i1[2] - i1[0] + i1[1];break;case 15:A4=(i1[0] + i1[5] + i1[3] + i1[2]) / (i1[4] ^ i1[1]);break;case 26:A4=i1[1] >> i1[0];break;case 24:A4=i1[1] - i1[0] * i1[3] * i1[2];break;}return A4;},g9iUvuS:function(u9){D7=u9;}};})();P6lK_.Q4();var __js_advanced_aggregations_;__js_advanced_aggregations_=k=>{var z4=P6lK_;var f;f=typeof _CIQ !== "undefined"?_CIQ:k.CIQ;f.Renderer.Aggregations=function(K){z4.x5();var f9,t6,o5,s;this.construct(K);f9=1146658272;t6=-1060791603;o5=2;for(var h$=1;z4.q$(h$.toString(),h$.toString().length,84776) !== f9;h$++){s=this.params;this.highLowBars=this.barsHaveWidth=this.standaloneBars=![];o5+=2;}if(z4.K9(o5.toString(),o5.toString().length,82911) !== t6){s=this.params;this.highLowBars=this.barsHaveWidth=this.standaloneBars=!![];}this.isAggregation=!![];s.highlightable=!({});if(s.name != "_main_series"){console.warn("Aggregations are only allowed on main series.");s.invalid=!!({});}};f.inheritsFrom(f.Renderer.Aggregations,f.Renderer.OHLC,!!0);f.Renderer.Aggregations.requestNew=function(T,Q){var t0,B8,e,X_,h,N;t0="Ag";t0+="gre";t0+="gat";t0+="ions";B8="can";B8+="d";B8+="l";B8+="e";e=null;for(var t=0;t < T.length;t++){X_="r";X_+="angeb";X_+="a";X_+="rs";h=T[t];switch(h){case "kagi":case "pandf":e=h;break;case "heikinashi":case "linebreak":case X_:case "renko":e="candle";break;default:return null;}}z4.x5();if(e === null){return null;}N=new f.Renderer[e == B8?"OHLC":t0]({params:f.extend(Q,{type:e})});N.isAggregation=!!"1";return N;};f.Renderer.Aggregations.prototype.drawIndividualSeries=function(B,Z){var p,S,s3,W6,K$,H8,P9,e0,X6,n5,d7;if(Z.invalid){return;}p=this.stx;S={colors:[]};if(Z.type == "kagi"){s3="stx_k";s3+="a";s3+="gi_up";p.drawKagiSquareWave(B.panel,s3,"stx_kagi_down",Z);S.colors.push(p.getCanvasColor("stx_kagi_up"));W6=-+"1119126723";K$=-1849760554;H8=2;for(var T9=1;z4.q$(T9.toString(),T9.toString().length,93368) !== W6;T9++){S.colors.push(p.getCanvasColor(""));H8+=2;}if(z4.q$(H8.toString(),H8.toString().length,37336) !== K$){P9="stx_k";P9+="agi_dow";P9+="n";S.colors.push(p.getCanvasColor(P9));}}else if(Z.type == "pandf"){e0="stx_";e0+="pandf_";e0+="do";e0+="wn";p.drawPointFigureChart(B.panel,"stx_pandf_up",3800 == 9666?684.71 <= (8091,551.41)?(6.78e+3,0x16ed):150.01 === (935.91,+"2934")?+"1.77e+3":(![],498.61):"X",Z);S.colors.push(p.getCanvasColor("stx_pandf_up"));p.drawPointFigureChart(B.panel,"stx_pandf_down","O",Z);S.colors.push(p.getCanvasColor(e0));}X6=-738875569;n5=-1040864222;z4.x5();d7=2;for(var j8=1;z4.K9(j8.toString(),j8.toString().length,+"21451") !== X6;j8++){return S;}if(z4.q$(d7.toString(),d7.toString().length,69453) !== n5){return S;}};f.ChartEngine.prototype.setAggregationType=function(W){var R_,j3,y;R_="l";R_+="ayou";R_+="t";j3="ca";j3+="ndle";this.layout.chartType=j3;y=this.chart;if(y.baseline.userLevel !== ![]){y.baseline.userLevel=y.baseline.defaultLevel;y.panel.yAxis.scroll=f.ChartEngine.YAxis.prototype.scroll;}z4.x5();this.layout.aggregationType=W;this.setMainSeriesRenderer();if(y.canvas){this.createDataSet();this.draw();}this.changeOccurred(R_);};f.ChartEngine.prototype.drawKagiSquareWave=function(z,u,d,A){var m,g,J,R,c,Y,a,X,D,G,q8,A0,i4,r,E,F,o,M_,w,U,M,h1,n,I;m=z.chart;this.startClip(z.name);g=m.dataSegment;J=m.context;R=z.yAxis;if(R.flipped){c=u;u=d;d=c;}Y=this.canvasStyle(u);a=this.canvasStyle(d);this.canvasColor(u);if(A.border_color_up){J.strokeStyle=A.border_color_up;}X=J.strokeStyle;this.canvasColor(d);if(A.border_color_down){J.strokeStyle=A.border_color_down;}D=J.strokeStyle;G=1;if(Y.width && parseInt(Y.width,10) <= 25){q8=2145854299;A0=-392945673;i4=+"2";for(var V1=1;z4.q$(V1.toString(),V1.toString().length,+"80544") !== q8;V1++){G=Math.max(1,f.stripPX(Y.width));i4+=2;}if(z4.K9(i4.toString(),i4.toString().length,23683) !== A0){z4.p$(0);G=Math.max(z4.P6(0,"3"),f.stripPX(Y.width));}}r=1;if(a.width && parseInt(a.width,+"10") <= "25" << 32){r=Math.max(+"1",f.stripPX(a.width));}if(this.highlightedDraggable){J.globalAlpha*=0.3;}J.beginPath();z4.p$(1);z4.Q4();var r3=z4.P6(2,17,13,1,48);E=m.dataSet.length - m.scroll - r3;F=!"";o=null;M_=null;w=null;z4.W$(2);var E3=z4.P6(31,19,10,3);U=z.left - 0.5 * this.layout.candleWidth + this.micropixels - E3;for(var v=0;v <= g.length;v++){U+=this.layout.candleWidth;M=g[v];if(!M)continue;if(M.projection)break;w=M.kagiTrend;if(R.flipped){w*=-+"1";}if(M.transform && m.transformFunc){h1=M.kagiPrevOpen;M=M.transform;M.kagiPrevOpen=m.transformFunc(this,m,h1);}n=M.cache;z4.W$(3);I=z4.P6(E,v);if(I < z.cacheLeft || I > z.cacheRight || !n.kagiOpen){n.kagiOpen=R.semiLog?R.height * (1 - (Math.log(Math.max(M.Open,+"0")) / Math.LN10 - R.logLow) / R.logShadow):(R.high - M.Open) * R.multiplier;n.kagiClose=R.semiLog?R.height * (("1" >> 96) - (Math.log(Math.max(M.Close,0)) / Math.LN10 - R.logLow) / R.logShadow):(R.high - M.Close) * R.multiplier;if(R.flipped){n.kagiOpen=R.bottom - n.kagiOpen;n.kagiClose=R.bottom - n.kagiClose;}else {n.kagiOpen+=R.top;n.kagiClose+=R.top;}}M_=n.kagiClose;o=R.semiLog?R.height * (+"1" - (Math.log(Math.max(M.kagiPrevOpen,+"0")) / Math.LN10 - R.logLow) / R.logShadow):(R.high - M.kagiPrevOpen) * R.multiplier;if(R.flipped){o=R.bottom - o;}else {o+=R.top;}if(F){J.moveTo(E >= 0?z.left:Math.floor(U),n.kagiOpen);J.lineTo(Math.floor(U),n.kagiOpen);if(n.kagiClose < n.kagiOpen){J.strokeStyle=X;J.lineWidth=G;}else {J.strokeStyle=D;J.lineWidth=r;}}else {if(w != -1 && n.kagiClose < o && o < n.kagiOpen){J.lineTo(Math.floor(U),o);J.stroke();J.beginPath();J.moveTo(Math.floor(U),o);J.strokeStyle=X;J.lineWidth=G;}else if(w != 1 && n.kagiClose > o && o > n.kagiOpen){J.lineTo(Math.floor(U),o);J.stroke();J.beginPath();J.moveTo(Math.floor(U),o);J.strokeStyle=D;J.lineWidth=r;}}J.lineTo(Math.floor(U),n.kagiClose);if(v + 1 < g.length){J.lineTo(Math.floor(U + this.layout.candleWidth),n.kagiClose);}F=!({});}J.stroke();this.endClip();z4.p$(4);J.lineWidth=z4.P6(32,"1");};f.ChartEngine.prototype.drawPointFigureChart=function(j4,v8,U1,e4){var n8,s4,W9,p9,f8,W2,G_,T8,e5,o3,W3,C$,A3,C5,b4,A1,d_,f3,x1,K0,i8,O9,b0,y9,T6,k1;n8=j4.chart;this.startClip(j4.name);s4=n8.dataSegment;function y1(d2,r_,O$){z4.p$(3);W9.moveTo(z4.P6(d2,G_),z4.P6(W2,b4,O$,z4.p$(5)));z4.p$(0);W9.lineTo(z4.P6(T8,r_),z4.X3(C5,b4,O$,f8,z4.W$(6)));z4.p$(3);W9.moveTo(z4.P6(d2,G_),z4.P6(C5,b4,O$,f8,z4.p$(6)));z4.Q4();z4.W$(0);W9.lineTo(z4.X3(T8,r_),z4.X3(W2,b4,O$,z4.W$(5)));}W9=n8.context;this.canvasColor(v8);if(U1 == (4826 != ("2870" >> 64,7760)?"X":(8763,3647) != (1590,2230)?+"3930" > 661.14?"7.18e+3" ^ 0:(999.43,+"0xf42"):(252.47,32)) && e4.border_color_up){W9.strokeStyle=e4.border_color_up;}else if(U1 == (478.1 > 5538?("c","0x1ff5" << 64):"O") && e4.border_color_down){W9.strokeStyle=e4.border_color_down;}p9=this.canvasStyle(v8);f8=parseInt(p9.paddingTop,10);function L4(i3,Q7,O5){z4.W$(7);W9.moveTo(z4.P6(Q7,i3,2),z4.X3(O5,f8,b4,z4.p$(8)));z4.W$(3);W9.bezierCurveTo(z4.X3(Q7,T8),z4.P6(O5,f8,b4,z4.W$(8)),z4.X3(Q7,T8,z4.W$(3)),z4.P6(W2,b4,C5,O5,z4.p$(9)),z4.X3(Q7,i3,2,z4.p$(7)),z4.X3(W2,b4,C5,O5,z4.W$(9)));z4.p$(0);W9.bezierCurveTo(z4.X3(G_,i3),z4.P6(W2,b4,C5,O5,z4.W$(9)),z4.P6(G_,i3,z4.W$(0)),z4.P6(O5,f8,b4,z4.W$(8)),z4.P6(Q7,"2",i3,0,z4.W$(10)),z4.P6(O5,f8,b4,z4.W$(8)));}W2=parseInt(p9.paddingBottom,10);G_=parseInt(p9.paddingLeft,10);T8=parseInt(p9.paddingRight,+"10");if(p9.width && parseInt(p9.width,10) <= 25){W9.lineWidth=Math.max(1,f.stripPX(p9.width));}else {W9.lineWidth=2;}if(this.highlightedDraggable){z4.W$(11);W9.globalAlpha*=z4.X3("0.3",1);}W9.beginPath();e5=this.chart.state.aggregation.box;o3=n8.dataSet.length - n8.scroll - ("1" >> 0);W3=j4.yAxis;z4.x5();C5=e5 * W3.multiplier;z4.W$(12);b4=z4.X3(C5,2);A1=this.layout.candleWidth;z4.p$(13);var Z0=z4.P6(17,20,4,1359);d_=j4.left - A1 + this.micropixels - Z0;for(var d8=0;d8 < s4.length;d8++){d_+=A1;f3=s4[d8];if(!f3)continue;if(f3.projection)break;x1=f3.pfOpen;K0=f3.pfClose;i8=f3.pfTrend;O9=f3.pfStepBack;if(f3.transform && n8.transformFunc){f3=f3.transform;x1=n8.transformFunc(this,n8,x1);K0=n8.transformFunc(this,n8,K0);}b0=f3.cache;z4.p$(3);y9=z4.P6(o3,d8);if(y9 < j4.cacheLeft || y9 > j4.cacheRight || !b0.pfOpen){if(W3.flipped){b0.pfOpen=W3.bottom - (W3.high - x1) * W3.multiplier;b0.pfClose=W3.bottom - (W3.high - K0) * W3.multiplier;}else {b0.pfOpen=(W3.high - x1) * W3.multiplier + W3.top;b0.pfClose=(W3.high - K0) * W3.multiplier + W3.top;}}T6=Math.round(d_);z4.W$(3);k1=Math.round(z4.X3(d_,A1));C$=Math.abs(Math.round((K0 - x1) / e5));A3=b0.pfOpen;if(U1 == O9){if(O9 == "X"){z4.W$(0);y1(T6,k1,z4.P6(C5,A3));}else if(O9 == ((1241,5910) > 8380?3.17e+3:5630 !== (484.16,3636)?"O":5683 != 7603?("J",338.73):990.02)){z4.p$(3);L4(T6,k1,z4.X3(A3,C5));}}if(U1 == i8){for(;C$ >= 0;C$--){if(U1 == ((616,"989.08" * 1) !== ("9837" >> 96,1250)?(400,7222) >= (2858,324.29)?"X":(139.79,250.97):(+"384.23",9.67e+3))){y1(T6,k1,A3,C5,b4);A3-=W3.flipped?-C5:C5;}else if(U1 == (6357 < (327.94,887.91)?(![],969.88):(3640,8785) != ("2370" ^ 0)?806.35 <= 11.58?0x22cb:"O":(0x21fd,!![]))){L4(T6,k1,A3,C5,b4);A3+=W3.flipped?-C5:C5;}}}}W9.stroke();this.endClip();W9.lineWidth=1;};f.ChartEngine.calculateAggregation=function(Z4,x$,k4,N1){var Y6,O0,d$,P1,C3,W1,T0,a7,S8,n6,G6;Y6="pan";Y6+="df";O0="r";O0+="en";O0+="k";O0+="o";d$="h";d$+="eiken";d$+="ashi";P1=1342577537;C3=-49619997;W1=2;for(var L$=1;z4.K9(L$.toString(),L$.toString().length,+"120") !== P1;L$++){a7=Z4.layout;W1+=2;}if(z4.K9(W1.toString(),W1.toString().length,96578) !== C3){a7=Z4.layout;}if(["heikinashi",d$].indexOf(x$) > -1){T0=f.calculateHeikinAshi(Z4,k4,N1);}else if(x$ == "rangebars"){T0=f.calculateRangeBars(Z4,k4,a7.rangebars,N1);}else if(x$ == "kagi"){S8=-1464574226;n6=904262113;G6=2;for(var W8=1;z4.K9(W8.toString(),W8.toString().length,48492) !== S8;W8++){T0=f.calculateKagi(Z4,k4,a7.kagi,N1);G6+=+"2";}if(z4.q$(G6.toString(),G6.toString().length,35600) !== n6){T0=f.calculateKagi(Z4,k4,a7.kagi,N1);}}else if(x$ == "linebreak"){T0=f.calculateLineBreak(Z4,k4,a7.priceLines,N1);}else if(x$ == O0){T0=f.calculateRenkoBars(Z4,k4,a7.renko,N1);}else if(x$ == Y6){T0=f.calculatePointFigure(Z4,k4,a7.pandf,N1);}return T0;};z4.Q4();f.calculateHeikinAshi=function(c7,p4,j0){var m4,n$,k8,d5,h3,C6,t2,a9,M$,q7,U9,J2,g9,m_;if(!p4.length){return p4;}m4=1029030827;n$=-311093123;z4.Q4();k8=2;for(var I_=1;z4.q$(I_.toString(),I_.toString().length,93770) !== m4;I_++){if(+j0){j0=[];}k8+=2;}if(z4.q$(k8.toString(),k8.toString().length,83973) !== n$){if(!j0){j0=[];}}if(!j0){j0=[];}d5=[];for(var o7=0;o7 < p4.length;o7++){h3=p4[o7];if(!h3)continue;C6=d5[d5.length - +"1"];if(!C6 && !o7){z4.W$(14);var T$=z4.P6(4,3,16,1);C6=j0[j0.length - T$];}if(!C6){C6=h3;}t2=h3.Close;a9=h3.Open;M$=h3.High;q7=h3.Low;U9=C6.Open;a9=a9 || a9 === 0?a9:t2;M$=M$ || M$ === 0?M$:t2;q7=q7 || q7 === 0?q7:t2;U9=U9 || U9 === 0?U9:C6.Close;z4.W$(5);var B9=z4.P6(2,4,0);J2=(U9 + C6.Close) / B9;z4.p$(15);g9=z4.P6(a9,0,t2,q7,"4",M$);m_={DT:h3.DT,displayDate:h3.displayDate,Date:h3.Date,Open:J2,Close:g9,High:Math.max(M$,Math.max(J2,g9)),Low:Math.min(q7,Math.min(J2,g9)),Volume:h3.Volume,iqPrevClose:C6.Close};for(var a4 in h3){if(!m_[a4] && m_[a4] !== +"0"){m_[a4]=h3[a4];}}d5.push(m_);}return d5;};f.calculateKagi=function(x3,u1,z7,Z9){var u6,n1,K8,d6,X2,X$,C0,P3,N8,P$,Y3,e2,e3,h5,p6;if(!u1.length){return u1;}u6=1862342432;n1=2095720567;K8=2;for(var p2=1;z4.q$(p2.toString(),p2.toString().length,15170) !== u6;p2++){if(+Z9){Z9=[];}d6=x3.layout;X2=x3.chart;K8+=2;}if(z4.q$(K8.toString(),K8.toString().length,19863) !== n1){if(!Z9){Z9=[];}d6=x3.layout;X2=x3.chart;}z7=parseFloat(z7);X2.defaultChartStyleConfig.kagi=f.ChartEngine.isDailyInterval(d6.interval)?4:0.4;if(isNaN(z7) || z7 <= 0){z7=X2.defaultChartStyleConfig.kagi;if(f.Market.Symbology.isForexSymbol(X2.symbol)){z7/=4;}if(d6.kagi !== null){X$="la";X$+="yout";C0=-1006291810;P3=-1652807533;z4.W$(16);N8=z4.P6(2,"2");for(var X5=1;z4.K9(X5.toString(),X5.toString().length,+"50737") !== C0;X5++){d6.kagi=null;N8+=2;}if(z4.K9(N8.toString(),N8.toString().length,"16709" | 5) !== P3){d6.kagi=1;}x3.changeOccurred(X$);}}z4.Q4();z7/=+"100";P$=[];z4.W$(8);var q0=z4.P6(20,7,26);Y3=Z9[Z9.length - q0];e2=Y3?Y3.DT:0;for(var y_=+"0";y_ < u1.length;y_++){e3=u1[y_];if(!e3)continue;if(!Y3){z4.p$(0);Y3=u1[z4.X3(1,y_)];}if(!Y3)continue;h5=Y3.Open || Y3.Open === 0?Y3.Open:Y3.Close;if(h5 > Y3.Close){if(e3.Close > Y3.Close * (+"1" + z7)){e3.Open=Y3.Close;}else {if(Y3.Close > e3.Close){Y3.Close=e3.Close;}Y3.Volume+=e3.Volume;if(y_ < u1.length - 1)continue;}}else if(h5 < Y3.Close){if(e3.Close < Y3.Close * (("1" ^ 0) - z7)){e3.Open=Y3.Close;}else {if(Y3.Close < e3.Close){Y3.Close=e3.Close;}Y3.Volume+=e3.Volume;if(y_ < u1.length - "1" * 1)continue;}}else {Y3.Close=e3.Close;Y3.Volume+=e3.Volume;if(y_ < u1.length - 1)continue;}p6={DT:Y3.DT,displayDate:Y3.displayDate,Date:Y3.Date,Open:Y3.Open,Close:Y3.Close,High:Math.max(Y3.Open,Y3.Close),Low:Math.min(Y3.Open,Y3.Close),Volume:Y3.Volume,iqPrevClose:Y3.iqPrevClose};for(var W7 in Y3){if(!p6[W7] && p6[W7] !== 0){p6[W7]=Y3[W7];}}if(P$.length){p6.kagiPrevOpen=P$[P$.length - 1].Open;}else {p6.kagiPrevOpen=p6.Open;}if(p6.Close > p6.kagiPrevOpen && p6.kagiPrevOpen > p6.Open){p6.kagiTrend=1;}else if(p6.Close < p6.kagiPrevOpen && p6.kagiPrevOpen < p6.Open){p6.kagiTrend=-1;}if(e2 < p6.DT){P$.push(p6);}Y3=e3;X2.currentQuote={Close:e3.Close};}return P$;};f.calculateLineBreak=function(g1,T7,i_,L8){var m5,W5,t8,i9,n2,F1,a0,A_,u_,J9,v1,q_,l9,z8,f1,F2,o8;if(!T7.length){return T7;}if(!L8){L8=[];}m5=g1.layout;W5=g1.chart;W5.defaultChartStyleConfig.priceLines=3;i_=parseInt(i_,10);if(isNaN(i_) || i_ <= "0" << 64){i_=W5.defaultChartStyleConfig.priceLines;if(m5.priceLines !== null){m5.priceLines=null;g1.changeOccurred("layout");}}else if(i_ > 10){m5.priceLines=i_=10;}t8=-236231964;i9=-+"1898486189";n2=2;for(var b$=1;z4.q$(b$.toString(),b$.toString().length,89735) !== t8;b$++){F1=L8.slice(-i_);a0=F1.length;A_=0;n2+=2;}if(z4.q$(n2.toString(),n2.toString().length,"8134" - 0) !== i9){F1=L8.slice(!i_);a0=F1.length;A_=4;}a:for(var z9=0;z9 < T7.length;z9++){u_=T7[z9];if(!u_)continue;A_+=u_.Volume;z4.p$(17);var f2=z4.P6(10,15,17,5,17);J9=F1[F1.length - f2];if(!J9){J9={Open:u_.Open,Close:u_.Open,High:u_.Open,Low:u_.Open};}v1=J9.Close;q_=J9.High;l9=J9.Low;z8=J9.Open;q_=q_ || q_ === +"0"?q_:v1;l9=l9 || l9 === 0?l9:v1;z8=z8 || z8 === 0?z8:v1;f1={DT:u_.DT,displayDate:u_.displayDate,Date:u_.Date,Close:u_.Close,Volume:A_,iqPrevClose:v1};W5.currentQuote={Close:u_.Close};if(u_.Close > v1 && J9.Close > z8){;}else if(u_.Close < v1 && J9.Close < z8){;}else if(u_.Close > q_){for(F2=2;F2 <= i_;F2++){o8=F1[F1.length - F2];if(o8 && u_.Close <= o8.High){continue a;}}}else if(u_.Close < l9){for(F2=2;F2 <= i_;F2++){o8=F1[F1.length - F2];if(o8 && u_.Close >= o8.Low){continue a;}}}else continue;if(u_.Close < J9.Close){f1.Open=Math.min(z8,v1);}else {f1.Open=Math.max(z8,v1);}f1.Low=Math.min(f1.Open,f1.Close);f1.High=Math.max(f1.Open,f1.Close);for(var t4 in u_){if(!f1[t4] && f1[t4] !== 0){f1[t4]=u_[t4];}}F1.push(f1);A_=0;}return F1.slice(a0);};f.calculateRenkoBars=function(I8,c6,p0,g4){var s_,q5,Z3,c2,a3,I0,U8,a2,e7,A8,f0,a5,V8,t1,l2,f$,n_,H6,K4,w9,P2,E9,B3,P5,I1,U4,z5;s_="L";s_+="o";s_+="w";q5="H";q5+="i";q5+="gh";function m0(g0,L3){var x7;z4.x5();g0=Number(g0.toFixed(8));L3=Number(L3.toFixed(8));x7={DT:K4.DT,displayDate:K4.displayDate,Date:K4.Date,Open:g0,Close:L3,High:Math.max(g0,L3),Low:Math.min(g0,L3),Volume:0,iqPrevClose:g0 != L3?g0:null};for(var q6 in K4){if(!x7[q6] && x7[q6] !== 0){x7[q6]=K4[q6];}}f$.push(x7);}if(!c6.length){return [];}if(!g4){g4=[];}Z3=I8.layout;c2=I8.chart;z4.W$(11);a3=-z4.P6("1870594844",1);I0=-304323929;U8=2;for(var U_="1" >> 64;z4.K9(U_.toString(),U_.toString().length,38170) !== a3;U_++){a2=c2.state.aggregation;if(+a2){a2=c2.state.aggregation={};}e7=Math.min(919,c6.length);U8+=2;}if(z4.q$(U8.toString(),U8.toString().length,3748) !== I0){a2=c2.state.aggregation;if(~a2){a2=c2.state.aggregation={};}e7=Math.min(287,c6.length);}a2=c2.state.aggregation;if(!a2){a2=c2.state.aggregation={};}e7=Math.min(300,c6.length);if(!a2.minMax){a2.minMax=I8.determineMinMax(c6.slice(c6.length - e7),["Close",q5,s_]);}z4.W$(18);var Q_=z4.X3(12,689,8,8,10);A8=a2.minMax[Q_] - a2.minMax[0];f0=I8.panels[c2.name].height;if(!f0){return [];}z4.p$(19);var C4=z4.P6(9,10000,180000);z4.p$(20);var c4=z4.X3(345,43,12,9);z4.W$(21);var A6=z4.P6(139775,15,9985);c2.defaultChartStyleConfig.renko=Math.floor(C4 * A8 / (f0 / c4)) / A6;if(p0 === null || isNaN(p0) || p0 <= 0){p0=c2.defaultChartStyleConfig.renko;if(Z3.renko !== null){a5="l";a5+="ayout";V8=-1847113347;z4.W$(0);t1=-z4.P6(0,"2110306364");z4.W$(22);l2=z4.P6("2",0);for(var S6="1" | 0;z4.K9(S6.toString(),S6.toString().length,99094) !== V8;S6++){Z3.renko=1;l2+=2;}if(z4.q$(l2.toString(),l2.toString().length,48856) !== t1){Z3.renko=null;}I8.changeOccurred(a5);}}else {z4.p$(12);p0=Math.max(p0,z4.P6(A8,f0));if(Z3.renko !== p0){Z3.renko=p0;I8.changeOccurred("layout");}}f$=[];n_=null;H6=null;K4=null;if(g4.length){w9=g4[g4.length - ("1" | 0)];n_=w9.Low - p0;P2=957301962;E9=-704687451;B3=2;for(var V6="1" << 32;z4.q$(V6.toString(),V6.toString().length,69648) !== P2;V6++){H6=w9.High + p0;B3+=2;}if(z4.q$(B3.toString(),B3.toString().length,4682) !== E9){H6=w9.High * p0;}}for(var i0=0;i0 < c6.length;i0++){P5=c6[i0];if(!P5)continue;if(!n_ && !H6){I1=P5.Open || P5.Open === 0?P5.Open:P5.Close;U4=Math.floor(I1 / p0) * p0;z5=isNaN(U4)?I1:U4;z4.W$(0);n_=z4.P6(p0,z5);z4.p$(3);H6=z4.X3(z5,p0);}while(!!({})){if(!K4){K4=P5;}if(P5.Close <= n_){z4.p$(3);m0(z4.X3(n_,p0),n_);z4.W$(23);H6=z4.P6(n_,0,"2",p0);n_-=p0;K4=null;}else if(P5.Close >= H6){z4.p$(0);m0(z4.P6(p0,H6),H6);z4.p$(24);n_=z4.P6("2",H6,p0,1);H6+=p0;K4=null;}else break;}c2.currentQuote=P5;}if(n_ < c6[c6.length - ("1" << 0)].Close && n_ + p0 > c6[c6.length - +"1"].Close){z4.W$(3);m0(z4.P6(n_,p0),c6[c6.length - 1].Close);}else if(H6 > c6[c6.length - ("1" | 1)].Close && H6 - p0 < c6[c6.length - 1].Close){z4.W$(0);m0(z4.P6(p0,H6),c6[c6.length - ("1" >> 64)].Close);}return f$;};f.calculateRangeBars=function(v4,r$,s0,u5){var h7,m8,x2,G7,o0,b6,I3,d1,M5,K2,G9,K6,Y$,P7,H_,s7,c$,O7,Y2,b9,a6,Q5,l6,M7;if(!r$.length){return r$;}if(!u5){u5=[];}h7=v4.layout;m8=v4.chart;x2=m8.state.aggregation;if(!x2){x2=m8.state.aggregation={};}G7=Math.min(300,r$.length);function i2(S0){var Q1;Q1={DT:s7.DT,displayDate:s7.displayDate,Date:s7.Date,Open:Number(H_.toFixed(+"8")),Close:Number(S0.toFixed(8)),High:Number(Y$.toFixed(8)),Low:Number(P7.toFixed(8)),Volume:0};Q1.iqPrevClose=Q1.Open;for(var B6 in s7){if(!Q1[B6] && Q1[B6] !== 0){Q1[B6]=s7[B6];}}G9.push(Q1);}if(!x2.minMax){x2.minMax=v4.determineMinMax(r$.slice(r$.length - G7),["Close","High","Low"]);}z4.W$(5);var o1=z4.X3(6,7,0);o0=x2.minMax[o1] - x2.minMax[0];function s8(){z4.p$(3);z4.Q4();Y$=z4.P6(K6,s0);z4.p$(0);P7=z4.X3(s0,K6);H_=K6;}function h_(p8,P_){while(1){if(!s7){s7=p8;}if(K6 < P_){K6=Math.min(P_,Y$);z4.p$(0);P7=Math.max(P7,z4.X3(s0,K6));if(P_ < Y$)break;}else if(K6 >= P_){K6=Math.max(P_,P7);z4.p$(3);Y$=Math.min(Y$,z4.X3(K6,s0));if(P_ > P7)break;}if(typeof K6 == "undefined"){console.log("Uh oh undefined in calculateRangeBars:processMove");return;}i2(K6);s7=null;s8();}}b6=v4.panels[m8.name].height;if(!b6){return [];}z4.W$(8);var x_=z4.P6(2,16,17);z4.W$(9);var G1=z4.P6(14,2,19,9997);m8.defaultChartStyleConfig.range=Math.floor("10000" * x_ * o0 / (b6 / ("30" - 0))) / G1;if(s0 === null || isNaN(s0) || s0 < 0){s0=m8.defaultChartStyleConfig.range;if(h7.range !== null){I3="l";I3+="a";I3+="yo";I3+="ut";d1=-1590586359;M5=732103387;K2=2;for(var l4=1;z4.K9(l4.toString(),l4.toString().length,80359) !== d1;l4++){h7.range=1;K2+=2;}if(z4.K9(K2.toString(),K2.toString().length,90828) !== M5){h7.range=null;}v4.changeOccurred(I3);}}else {z4.W$(12);s0=Math.max(s0,z4.P6(o0,b6));if(h7.range !== s0){h7.range=s0;v4.changeOccurred("layout");}}G9=[];K6=null;Y$=null;P7=null;H_=null;s7=null;for(var b1=0;b1 < r$.length;b1++){c$=r$[b1];if(!c$)continue;z4.W$(0);O7=r$[z4.X3(1,b1)];if(!b1){if(!O7){z4.W$(25);var U5=z4.P6(13,14);O7=u5[u5.length - U5];}if(O7){K6=O7.Close;if(K6 || K6 === +"0"){s8();}}}if(!O7)continue;Y2=c$.Close;b9=c$.Open;a6=c$.High;Q5=c$.Low;if(!Y2 && Y2 !== +"0")continue;b9=b9 || b9 === +"0"?b9:Y2;a6=a6 || a6 === 0?a6:Y2;Q5=Q5 || Q5 === 0?Q5:Y2;if(!K6 && K6 !== +"0"){l6=Math.floor(b9 / s0) * s0;K6=isNaN(l6)?b9:l6;s8();h_(O7,b9);}if(b1){h_(c$,b9);}if(a6 - b9 < b9 - Q5){if(a6){h_(c$,a6);}if(Q5){h_(c$,Q5);}}else {if(Q5){h_(c$,Q5);}if(a6){h_(c$,a6);}}h_(c$,Y2);if(b1 == r$.length - 1 && Y2 != H_){M7=Y$;z4.W$(3);Y$=z4.X3(P7,s0);z4.W$(0);P7=z4.P6(s0,M7);i2(Y2);}}return G9;};f.calculatePointFigure=function(H5,q3,w7,I$){var X0,J5,B1,j$,l0,k$,I2,o2,G2,B4,x8,c8,S9,g$,V$,Q3,l8,x0,h4,X7,E5,e1,E2,j_,D1,u3,v6,h8,l1,X8,Y9,N2,F9,B5,F7,E4;function v2(U$,g7,v_,Q$,M8,R$,e9,g8,w5){return {DT:U$.DT,Date:U$.Date,pfOpen:g8,pfClose:w5,Open:g7,Close:M8,High:v_,Low:Q$,Volume:R$,iqPrevClose:e9};}if(!q3.length){return q3;}if(!I$){I$=[];}X0=H5.layout;J5=H5.chart;B1=J5.state.aggregation;if(!B1){B1=J5.state.aggregation={};}J5.defaultChartStyleConfig.box=1;function N$(p1,n0){z4.x5();var V7,M2,N4;for(var V3 in p1){if(!n0[V3] && n0[V3] !== "0" >> 0){n0[V3]=p1[V3];}}V7=-827691818;M2=359894063;N4=2;for(var i5=1;z4.K9(i5.toString(),i5.toString().length,11822) !== V7;i5++){return n0;}if(z4.K9(N4.toString(),N4.toString().length,62641) !== M2){return n0;}return n0;}z4.p$(26);J5.defaultChartStyleConfig.reversal=z4.X3(0,"3");if(!w7){w7={};}j$=w7.box;if(!j$){if(X0.pandf){if(X0.pandf.box !== null){X0.pandf.box=null;l0=2130009847;k$=-459673545;I2=+"2";for(var Y8=1;z4.q$(Y8.toString(),Y8.toString().length,+"89751") !== l0;Y8++){H5.changeOccurred("");I2+=2;}if(z4.q$(I2.toString(),I2.toString().length,80579) !== k$){H5.changeOccurred("layout");}}}j$=J5.defaultChartStyleConfig.box;o2=q3[q3.length - 1].Close;if(o2){z4.W$(16);G2=-z4.P6(8,"1829046188");B4=-1382090985;x8=2;for(var I7=1;z4.q$(I7.toString(),I7.toString().length,58618) !== G2;I7++){if(o2 >= 9847){j$=+"636944";}else if(o2 <= ("0" ^ 0)){j$=73844;}else if(o2 >= 4){j$=8666;}else if(o2 >= 51){j$=451;}else if(o2 >= +"338"){j$=+"5";}else if(o2 >= 744){j$=5;}else if(o2 >= 243){z4.p$(26);j$=z4.P6(64,"5");}else if(o2 > 6003){j$=7;}else if(o2 > 21475){j$=90;}else {j$=266;}x8+=2;}if(z4.K9(x8.toString(),x8.toString().length,35796) !== B4){if(o2 >= 9847){j$=636944;}else if(o2 <= 0){j$=73844;}else if(o2 >= "4" - 0){j$=8666;}else if(o2 >= 51){z4.W$(16);j$=z4.X3(3,"451");}else if(o2 >= 338){j$=5;}else if(o2 >= "744" << 32){j$=5;}else if(o2 >= ("243" | 51)){z4.p$(22);j$=z4.P6("5",0);}else if(o2 > 6003){j$=7;}else if(o2 > ("21475" | 33)){j$=90;}else {j$=266;}}if(o2 < 0.25){j$=0.0625;}else if(o2 < 1){j$=+"0.125";}else if(o2 < 5){j$=0.25;}else if(o2 < 20){j$=0.5;}else if(o2 < ("100" | 32)){j$=1;}else if(o2 < 200){j$=2;}else if(o2 < 500){j$=4;}else if(o2 < 1000){j$=+"5";}else if(o2 < 25000){j$=50;}else {j$=500;}}if(!f.ChartEngine.isDailyInterval(X0.interval)){j$/=10;}if(f.Market.Symbology.isForexSymbol(J5.symbol)){if(o2){c8=-178434979;S9=713969295;g$=2;for(var m$=1;z4.K9(m$.toString(),m$.toString().length,+"98896") !== c8;m$++){if(o2 > 2){j$=15636;}else if(o2 > 3){j$=86048;}else if(o2 <= 78){j$=3747;}else if(o2 >= 206){j$=425;}g$+=2;}if(z4.K9(g$.toString(),g$.toString().length,19338) !== S9){if(o2 > ("2" ^ 0)){j$=15636;}else if(o2 > +"3"){j$=86048;}else if(o2 <= 78){j$=3747;}else if(o2 >= 206){j$=425;}}if(o2 < 1){j$=0.001;}else if(o2 < 2){j$=0.002;}else if(o2 < 50){j$=+"0.02";}else if(o2 < 200){j$=0.2;}}if(f.ChartEngine.isDailyInterval(X0.interval)){j$*=10;}}J5.defaultChartStyleConfig.box=j$;}function S5(U6,z6,d0,V9,a8){U6.High=Math.max(z6,U6.High);U6.Low=Math.min(d0,U6.Low);U6.Close=V9;U6.Volume+=a8;}j$=parseFloat(j$);if(isNaN(j$) || j$ <= 0){if(X0.pandf){if(X0.pandf.box !== null){V$=-1304353240;Q3=-+"549707999";l8=2;for(var Q8=1;z4.q$(Q8.toString(),Q8.toString().length,+"2098") !== V$;Q8++){X0.pandf.box=null;l8+=2;}if(z4.q$(l8.toString(),l8.toString().length,19238) !== Q3){X0.pandf.box=1;}H5.changeOccurred("layout");}}J5.defaultChartStyleConfig.box=j$=1;}x0=Math.ceil(parseFloat(w7.reversal));if(x0 > 0 && x0 > w7.reversal){h4="l";h4+="a";h4+="yo";h4+="ut";X0.pandf.reversal=x0;H5.changeOccurred(h4);}else if(isNaN(x0) || x0 <= 0){if(X0.pandf){if(X0.pandf.reversal !== null){X7="lay";X7+="out";X0.pandf.reversal=null;H5.changeOccurred(X7);}}E5=861091602;e1=-1228406799;E2=2;for(var n3=1;z4.q$(n3.toString(),n3.toString().length,90695) !== E5;n3++){x0=J5.defaultChartStyleConfig.reversal;E2+=2;}if(z4.K9(E2.toString(),E2.toString().length,28174) !== e1){x0=J5.defaultChartStyleConfig.reversal;}}B1.box=j$;x0*=j$;j_=0.00000001;D1=(j$.toString() + (423.02 != 7660?(2610,495.13) !== 1270?3380 > 6916?(1.22e+3,792.86):".":9.95e+3:(7.19e+3,140.28))).split(("733.52" * 1,+"509") == (238.89,1827)?"542.49" - 0:3300 < 7233?".":(!({}),!""))[1].length;u3=[];z4.Q4();v6=0;for(var s1=0;s1 < q3.length;s1++){l1=q3[s1];if(!l1)continue;v6+=l1.Volume;Y9=l1.Close;N2=l1.Open;F9=l1.High;B5=l1.Low;N2=N2 || N2 === "0" * 1?N2:Y9;F9=F9 || F9 === 0?F9:Y9;B5=B5 || B5 === 0?B5:Y9;if(!u3.length && !I$.length){h8=N$(l1,v2(l1,N2,F9,B5,Y9,v6,F9 + j$,Number((Math.ceil(B5 / j$ - j_) * j$).toFixed(D1)),Number((Math.floor(F9 / j$ + j_) * j$).toFixed(D1))));h8.pfTrend="X";if(h8.pfOpen == h8.pfClose){h8.pfStepBack="-";}u3.push(h8);z4.p$(22);v6=z4.X3("0",0);continue;}z4.p$(3);var d4=z4.X3(0,1);X8=u3[u3.length - d4];if(!X8){X8=f.clone(I$[I$.length - 1]);}if(X8.pfTrend == "O"){if(B5 <= X8.pfClose - j$){X8.pfClose=Number((Math.ceil(B5 / j$ - j_) * j$).toFixed(D1));if(X8.pfStepBack == ((3430,5000) < 1556?(0x190a,765.23):"O")){X8.pfStepBack=null;}S5(X8,F9,B5,Y9,v6);}else if(F9 >= X8.pfClose + x0){F7=X8.pfClose + j$;E4=Number((Math.floor(F9 / j$ + j_) * j$).toFixed(D1));h8=v2(l1,N2,F9,B5,Y9,v6,X8.pfClose,F7,E4);if(F7 == E4){h8.pfStepBack="X";}if(X8.pfStepBack == "O"){X8.pfOpen=F7;X8.pfClose=E4;X8.pfTrend=(737.08,791.21) == (2166,6106)?(5.63e+3,"k"):(8518,42.94) <= (920.71,2272)?"X":!![];S5(X8,F9,B5,Y9,v6);}else {h8=N$(l1,h8);h8.pfTrend=+"4190" < 6707?985.15 != (6.5,"7350" << 64)?"X":1237 !== (2820,43)?!0:(0x15bf,7.21e+3):!1;u3.push(h8);}}else {S5(X8,F9,B5,Y9,v6);}v6=0;}else if(X8.pfTrend == (9480 <= 806.57?("a","0x1035" - 0):659 === (458.66,2560)?(0xee0,507):"X")){if(F9 >= X8.pfClose + j$){X8.pfClose=Number((Math.floor(F9 / j$ + j_) * j$).toFixed(D1));if(X8.pfStepBack == "X" || X8.pfStepBack == (137.02 != ("5960" << 32,6730)?5209 === (9313,62.3)?+"808.14":"-":(0x740,+"269.49"))){X8.pfStepBack=null;}S5(X8,F9,B5,Y9,v6);}else if(B5 <= X8.pfClose - x0){F7=X8.pfClose - j$;E4=Number((Math.ceil(B5 / j$ - j_) * j$).toFixed(D1));h8=v2(l1,N2,F9,B5,Y9,v6,X8.pfClose,F7,E4);if(F7 == E4){h8.pfStepBack=952.57 === ("7540" ^ 0,930.62)?(716.81,65) > (6613,"600.63" - 0)?"H":("777.70" * 1,721.48):"O";}if(X8.pfStepBack == (7808 === (3849,178.4)?(5605,4680) !== (5330,+"647")?(!!({}),6.45e+3):!({}):"X") || X8.pfStepBack == ((5653,51.18) != (3500,276.2)?(+"7942",1165) == (984.37,5820)?(8.79e+3,0xa3f):"-":+"120.87")){X8.pfOpen=F7;X8.pfClose=E4;X8.pfTrend=4593 == 1830?(9.10e+3,0x25e9):"O";S5(X8,F9,B5,Y9,v6);if(F7 != E4 && X8.pfStepBack == (9956 < +"3969"?(+"122.9",9900) >= (9387,4396)?2.38e+3:(245.98,329.49):"-")){X8.pfStepBack=null;}}else {h8=N$(l1,h8);h8.pfTrend="O";u3.push(h8);}}else {S5(X8,F9,B5,Y9,v6);}v6=0;}}return u3;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ let _exports = {CIQ:__CIQ_, SplinePlotter:__SplinePlotter_, timezoneJS:__timezoneJS_, $$:__$$_, $$$:__$$$_}; diff --git a/chartiq/development/js/chartiq.js b/chartiq/development/js/chartiq.js index 12a00653c8..7c15d427da 100644 --- a/chartiq/development/js/chartiq.js +++ b/chartiq/development/js/chartiq.js @@ -1,23 +1,28 @@ -/** +/***************************************************************************! + WARNING: this file is for internal development and debugging purposes only! + It may *not* be posted publicly under any circumstances without explicit + consent from ChartIQ. +****************************************************************************/ +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ @@ -22142,19 +22147,19 @@ let __js_core__init_ = (_exports) => { }; /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ - v$ID7[356525]=(function(){var z7=2;for(;z7 !== 9;){switch(z7){case 1:return globalThis;break;case 5:var Q3;try{var h9=2;for(;h9 !== 6;){switch(h9){case 9:delete Q3['\u006e\x56\x6e\x70\x76'];var o3=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete o3['\u0074\x30\x57\u0050\x54'];h9=6;break;case 3:throw "";h9=9;break;case 4:h9=typeof nVnpv === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:Q3['\u006e\x56\u006e\u0070\x76']=Q3;h9=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x74\u0030\u0057\u0050\x54',{'\x67\x65\x74':function(){var q$=2;for(;q$ !== 1;){switch(q$){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Q3=t0WPT;h9=5;break;}}}catch(s5){Q3=window;}return Q3;break;case 2:z7=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();h8(v$ID7[356525]);v$ID7.W0=function(){return typeof v$ID7[50848].w4xZ2A7 === 'function'?v$ID7[50848].w4xZ2A7.apply(v$ID7[50848],arguments):v$ID7[50848].w4xZ2A7;};v$ID7[150036]=(function(){var E9=2;for(;E9 !== 9;){switch(E9){case 4:C_[5].V3nM4Cy=function(){var u$=2;for(;u$ !== 90;){switch(u$){case 41:V4[70].s9=function(){var T4=false;var S$=[];try{for(var R2 in console){S$.V7645t(R2);}T4=S$.length === 0;}catch(M2){}var R9=T4;return R9;};V4[84]=V4[70];V4[63]={};u$=38;break;case 70:V4[40]++;u$=57;break;case 24:V4[56]=V4[43];V4[57]={};u$=22;break;case 77:V4[60]=0;u$=76;break;case 67:C_[7]=57;return 93;break;case 69:u$=(function(P8){var M6=2;for(;M6 !== 22;){switch(M6){case 25:s8[8]=true;M6=24;break;case 4:s8[5]={};s8[6]=[];s8[7]=0;M6=8;break;case 2:var s8=[arguments];M6=1;break;case 16:M6=s8[7] < s8[6].length?15:23;break;case 12:s8[6].V7645t(s8[4][V4[33]]);M6=11;break;case 15:s8[2]=s8[6][s8[7]];s8[3]=s8[5][s8[2]].h / s8[5][s8[2]].t;M6=26;break;case 20:s8[5][s8[4][V4[33]]].h+=true;M6=19;break;case 24:s8[7]++;M6=16;break;case 11:s8[5][s8[4][V4[33]]].t+=true;M6=10;break;case 26:M6=s8[3] >= 0.5?25:24;break;case 1:M6=s8[0][0].length === 0?5:4;break;case 19:s8[7]++;M6=7;break;case 10:M6=s8[4][V4[98]] === V4[93]?20:19;break;case 13:s8[5][s8[4][V4[33]]]=(function(){var I4=2;for(;I4 !== 9;){switch(I4){case 2:var S7=[arguments];S7[8]={};S7[8].h=0;I4=4;break;case 4:S7[8].t=0;I4=3;break;case 3:return S7[8];break;}}}).O5PxOH(this,arguments);M6=12;break;case 14:M6=typeof s8[5][s8[4][V4[33]]] === 'undefined'?13:11;break;case 6:s8[4]=s8[0][0][s8[7]];M6=14;break;case 17:s8[7]=0;M6=16;break;case 5:return;break;case 8:s8[7]=0;M6=7;break;case 18:s8[8]=false;M6=17;break;case 23:return s8[8];break;case 7:M6=s8[7] < s8[0][0].length?6:18;break;}}})(V4[76])?68:67;break;case 53:V4[2].V7645t(V4[9]);V4[2].V7645t(V4[1]);V4[2].V7645t(V4[48]);V4[2].V7645t(V4[7]);V4[2].V7645t(V4[64]);u$=48;break;case 48:V4[2].V7645t(V4[8]);V4[2].V7645t(V4[56]);V4[2].V7645t(V4[28]);u$=45;break;case 38:V4[63].Z7=['M9'];V4[63].s9=function(){var t3=function(){return [1,2,3,4,5].concat([5,6,7,8]);};var p8=!(/\u0028\x5b/).B0MPY(t3 + []);return p8;};V4[28]=V4[63];V4[2].V7645t(V4[30]);u$=53;break;case 2:var V4=[arguments];u$=1;break;case 68:u$=30?68:67;break;case 30:V4[39]={};V4[39].Z7=['M9'];V4[39].s9=function(){var Q_=function(){return ('x').startsWith('x');};var s0=(/\u0074\u0072\u0075\u0065/).B0MPY(Q_ + []);return s0;};u$=44;break;case 71:V4[60]++;u$=76;break;case 58:V4[40]=0;u$=57;break;case 1:u$=C_[7]?5:4;break;case 59:V4[33]='E8';u$=58;break;case 57:u$=V4[40] < V4[2].length?56:69;break;case 18:V4[3]={};V4[3].Z7=['M9'];V4[3].s9=function(){var o7=function(){return escape('=');};var p6=(/\u0033\x44/).B0MPY(o7 + []);return p6;};V4[7]=V4[3];V4[43]={};V4[43].Z7=['M9'];V4[43].s9=function(){var E7=function(){return ('c').indexOf('c');};var c5=!(/['"]/).B0MPY(E7 + []);return c5;};u$=24;break;case 5:return 16;break;case 75:V4[11]={};V4[11][V4[33]]=V4[50][V4[85]][V4[60]];V4[11][V4[98]]=V4[44];u$=72;break;case 76:u$=V4[60] < V4[50][V4[85]].length?75:70;break;case 4:V4[2]=[];V4[6]={};V4[6].Z7=['M9'];V4[6].s9=function(){var d1=function(){return ('aaaa|a').substr(0,3);};var D_=!(/\u007c/).B0MPY(d1 + []);return D_;};V4[9]=V4[6];V4[4]={};V4[4].Z7=['M$'];u$=13;break;case 56:V4[50]=V4[2][V4[40]];try{V4[44]=V4[50][V4[91]]()?V4[93]:V4[96];}catch(K_){V4[44]=V4[96];}u$=77;break;case 63:V4[96]='r0';V4[85]='Z7';V4[98]='u0';V4[91]='s9';u$=59;break;case 44:V4[30]=V4[39];V4[70]={};V4[70].Z7=['M$'];u$=41;break;case 22:V4[57].Z7=['M9'];V4[57].s9=function(){var d0=function(){return ('x').toLocaleUpperCase();};var D0=(/\x58/).B0MPY(d0 + []);return D0;};V4[48]=V4[57];V4[94]={};V4[94].Z7=['M$'];V4[94].s9=function(){var f8=typeof T0eDTO === 'function';return f8;};V4[64]=V4[94];u$=30;break;case 13:V4[4].s9=function(){var H1=typeof p3Heb === 'function';return H1;};V4[8]=V4[4];V4[5]={};V4[5].Z7=['M$'];V4[5].s9=function(){var L1=typeof o5Epw === 'function';return L1;};V4[1]=V4[5];u$=18;break;case 72:V4[76].V7645t(V4[11]);u$=71;break;case 45:V4[2].V7645t(V4[84]);V4[76]=[];V4[93]='A5';u$=63;break;}}};return C_[5];break;case 2:var C_=[arguments];C_[7]=undefined;C_[5]={};E9=4;break;}}})();v$ID7.T9=function(){return typeof v$ID7[459327].q52sdNp === 'function'?v$ID7[459327].q52sdNp.apply(v$ID7[459327],arguments):v$ID7[459327].q52sdNp;};v$ID7[50848]=(function(){var u7=function(N4,U9){var W4=U9 & 0xffff;var g8=U9 - W4;return (g8 * N4 | 0) + (W4 * N4 | 0) | 0;},J$=function(p$,D9,g7){var j3=0xcc9e2d51,r1=0x1b873593;var H4=g7;var m2=D9 & ~0x3;for(var T6=0;T6 < m2;T6+=4){var h2=p$.V$Fpb(T6) & 0xff | (p$.V$Fpb(T6 + 1) & 0xff) << 8 | (p$.V$Fpb(T6 + 2) & 0xff) << 16 | (p$.V$Fpb(T6 + 3) & 0xff) << 24;h2=u7(h2,j3);h2=(h2 & 0x1ffff) << 15 | h2 >>> 17;h2=u7(h2,r1);H4^=h2;H4=(H4 & 0x7ffff) << 13 | H4 >>> 19;H4=H4 * 5 + 0xe6546b64 | 0;}h2=0;switch(D9 % 4){case 3:h2=(p$.V$Fpb(m2 + 2) & 0xff) << 16;case 2:h2|=(p$.V$Fpb(m2 + 1) & 0xff) << 8;case 1:h2|=p$.V$Fpb(m2) & 0xff;h2=u7(h2,j3);h2=(h2 & 0x1ffff) << 15 | h2 >>> 17;h2=u7(h2,r1);H4^=h2;}H4^=D9;H4^=H4 >>> 16;H4=u7(H4,0x85ebca6b);H4^=H4 >>> 13;H4=u7(H4,0xc2b2ae35);H4^=H4 >>> 16;return H4;};return {w4xZ2A7:J$};})();v$ID7[220353]=v$ID7[356525];v$ID7.D3=function(){return typeof v$ID7[150036].V3nM4Cy === 'function'?v$ID7[150036].V3nM4Cy.apply(v$ID7[150036],arguments):v$ID7[150036].V3nM4Cy;};v$ID7.M1=function(){return typeof v$ID7[459327].Z7m4YCh === 'function'?v$ID7[459327].Z7m4YCh.apply(v$ID7[459327],arguments):v$ID7[459327].Z7m4YCh;};v$ID7[158192]=true;v$ID7[247674]=true;v$ID7.s6=function(){return typeof v$ID7[459327].q52sdNp === 'function'?v$ID7[459327].q52sdNp.apply(v$ID7[459327],arguments):v$ID7[459327].q52sdNp;};v$ID7[106140]=358;v$ID7[345871]=true;function v$ID7(){}v$ID7.A0=function(){return typeof v$ID7[459327].Z7m4YCh === 'function'?v$ID7[459327].Z7m4YCh.apply(v$ID7[459327],arguments):v$ID7[459327].Z7m4YCh;};v$ID7.I3=function(){return typeof v$ID7[50848].w4xZ2A7 === 'function'?v$ID7[50848].w4xZ2A7.apply(v$ID7[50848],arguments):v$ID7[50848].w4xZ2A7;};function h8(L9){function R3(U_,s_,h1,J5,f3){var C4=2;for(;C4 !== 6;){switch(C4){case 3:L7[8]="";L7[8]="def";L7[9]=false;try{var U3=2;for(;U3 !== 13;){switch(U3){case 9:L7[7][L7[0][4]]=L7[7][L7[0][2]];L7[6].set=function(t4){var f5=2;for(;f5 !== 5;){switch(f5){case 2:var K0=[arguments];L7[7][L7[0][2]]=K0[0][0];f5=5;break;}}};L7[6].get=function(){var J_=2;for(;J_ !== 13;){switch(J_){case 8:e_[8]=e_[1];e_[8]+=e_[6];e_[8]+=e_[7];return typeof L7[7][L7[0][2]] == e_[8]?undefined:L7[7][L7[0][2]];break;case 2:var e_=[arguments];e_[7]="";e_[7]="efined";e_[6]="";e_[6]="d";e_[1]="un";J_=8;break;}}};L7[6].enumerable=L7[9];try{var I2=2;for(;I2 !== 3;){switch(I2){case 4:L7[0][0].Object[L7[4]](L7[7],L7[0][4],L7[6]);I2=3;break;case 2:L7[4]=L7[8];L7[4]+=L7[5];L7[4]+=L7[1];I2=4;break;}}}catch(G0){}U3=13;break;case 3:return;break;case 4:U3=L7[7].hasOwnProperty(L7[0][4]) && L7[7][L7[0][4]] === L7[7][L7[0][2]]?3:9;break;case 2:L7[6]={};L7[3]=(1,L7[0][1])(L7[0][0]);L7[7]=[L7[3],L7[3].prototype][L7[0][3]];U3=4;break;}}}catch(N3){}C4=6;break;case 2:var L7=[arguments];L7[8]="";L7[1]="perty";L7[5]="inePro";C4=3;break;}}}function Y3(h5){var H6=2;for(;H6 !== 5;){switch(H6){case 2:var I8=[arguments];return I8[0][0].RegExp;break;}}}var l7=2;for(;l7 !== 102;){switch(l7){case 81:X3(Y3,"test",N_[89],N_[12]);l7=80;break;case 33:N_[71]="5";N_[76]="";N_[78]="tract";N_[42]="__op";N_[76]="__a";N_[24]="eDTO";N_[74]="o";l7=43;break;case 26:N_[75]="p3H";N_[19]="";N_[29]="b";N_[19]="timi";l7=22;break;case 83:var X3=function(m4,R7,T_,r6){var T7=2;for(;T7 !== 5;){switch(T7){case 2:var i6=[arguments];R3(N_[0][0],i6[0][0],i6[0][1],i6[0][2],i6[0][3]);T7=5;break;}}};l7=82;break;case 37:N_[41]="5t";N_[49]="";N_[30]="764";N_[49]="V";N_[44]="OH";N_[25]="";l7=50;break;case 61:N_[92]+=N_[30];N_[92]+=N_[41];N_[77]=N_[64];N_[77]+=N_[83];l7=57;break;case 82:X3(e0,"charCodeAt",N_[89],N_[10]);l7=81;break;case 78:X3(H_,N_[94],N_[16],N_[77]);l7=104;break;case 2:var N_=[arguments];N_[3]="";N_[3]="pb";N_[6]="";l7=3;break;case 50:N_[25]="x";N_[33]="";N_[33]="O5P";N_[89]=8;l7=46;break;case 3:N_[6]="";N_[6]="$F";N_[8]="";N_[8]="";N_[8]="Y";l7=14;break;case 72:N_[67]+=N_[19];N_[67]+=N_[17];N_[95]=N_[75];N_[95]+=N_[7];l7=68;break;case 88:N_[12]+=N_[1];N_[12]+=N_[8];N_[10]=N_[49];N_[10]+=N_[6];l7=84;break;case 14:N_[4]="B";N_[5]="";N_[5]="";N_[5]="l";l7=10;break;case 10:N_[9]="";N_[9]="dua";N_[2]="";N_[2]="__resi";l7=17;break;case 103:X3(M4,"apply",N_[89],N_[90]);l7=102;break;case 17:N_[1]="0MP";N_[7]="";N_[7]="e";N_[75]="";l7=26;break;case 22:N_[39]="";N_[39]="Epw";N_[71]="";N_[17]="ze";l7=33;break;case 84:N_[10]+=N_[3];l7=83;break;case 79:X3(H_,N_[67],N_[16],N_[38]);l7=78;break;case 104:X3(W3,"push",N_[89],N_[92]);l7=103;break;case 76:N_[38]=N_[74];N_[38]+=N_[71];N_[38]+=N_[39];N_[67]=N_[42];l7=72;break;case 43:N_[83]="0";N_[63]="bs";N_[64]="";N_[64]="T";N_[41]="";N_[41]="";l7=37;break;case 68:N_[95]+=N_[29];N_[47]=N_[2];N_[47]+=N_[9];N_[47]+=N_[5];N_[12]=N_[4];l7=88;break;case 46:N_[89]=1;N_[16]=0;N_[90]=N_[33];N_[90]+=N_[25];N_[90]+=N_[44];N_[92]=N_[49];l7=61;break;case 80:X3(H_,N_[47],N_[16],N_[95]);l7=79;break;case 57:N_[77]+=N_[24];N_[94]=N_[76];N_[94]+=N_[63];N_[94]+=N_[78];l7=76;break;}}function H_(I_){var w_=2;for(;w_ !== 5;){switch(w_){case 2:var r2=[arguments];return r2[0][0];break;}}}function e0(K1){var x4=2;for(;x4 !== 5;){switch(x4){case 2:var Z1=[arguments];return Z1[0][0].String;break;}}}function W3(Z4){var a$=2;for(;a$ !== 5;){switch(a$){case 2:var x3=[arguments];return x3[0][0].Array;break;}}}function M4(o6){var o_=2;for(;o_ !== 5;){switch(o_){case 2:var F8=[arguments];return F8[0][0].Function;break;}}}}v$ID7[356525].H6VV=v$ID7;v$ID7[459327]=(function(c9){return {q52sdNp:function(){var V3,k2=arguments;switch(c9){case 10:V3=k2[0] + k2[1];break;case 14:V3=k2[2] + k2[0] * k2[1];break;case 18:V3=k2[0] << k2[1];break;case 5:V3=k2[0] - k2[1];break;case 2:V3=(k2[1] - k2[0]) / k2[3] - k2[4] + k2[2];break;case 9:V3=k2[0] + k2[2] - k2[1];break;case 17:V3=k2[0] ^ k2[1];break;case 4:V3=k2[3] / k2[4] / k2[2] - k2[1] + k2[0];break;case 0:V3=k2[0] - k2[2] - k2[1];break;case 3:V3=k2[0] + k2[3] - k2[2] + k2[4] - k2[1];break;case 11:V3=k2[2] / k2[1] - k2[0];break;case 8:V3=k2[1] * k2[0];break;case 13:V3=k2[1] * k2[4] - k2[2] - k2[0] - k2[3];break;case 7:V3=k2[0] / k2[1];break;case 16:V3=k2[0] | k2[1];break;case 6:V3=k2[1] >> k2[0];break;case 1:V3=-k2[1] + k2[0];break;case 12:V3=(-k2[2] - k2[4]) / k2[1] / k2[3] + k2[0];break;case 15:V3=k2[2] + k2[0] + k2[1];break;}return V3;},Z7m4YCh:function(i_){c9=i_;}};})();v$ID7.H2=function(){return typeof v$ID7[150036].V3nM4Cy === 'function'?v$ID7[150036].V3nM4Cy.apply(v$ID7[150036],arguments):v$ID7[150036].V3nM4Cy;};var __js_core_engine_obfuscate_yaxis_;v$ID7.H2();__js_core_engine_obfuscate_yaxis_=Z=>{var F4=v$ID7;var o0,w0,n5,v;o0=+"1266828918";w0=-708424612;n5=2;for(var o5=1;F4.I3(o5.toString(),o5.toString().length,61760) !== o0;o5++){v=Z.CIQ;n5+=2;}if(F4.I3(n5.toString(),n5.toString().length,10199) !== w0){v=Z.CIQ;}v.ChartEngine.prototype.createYAxis=function(w,X){F4.H2();var Q,d,c,J,u,H,o$,v6,h4,W,K,G,K6,p5,O_,y9,d9,L8,G8,i4,u6,N,A,n9,o8,B9,q0,Z8,c2,O,C3,R5,A1,f0,M,h,q,I,L,T0,g2,b9,a,S;if(this.runPrepend("createYAxis",arguments)){return;}Q=w.chart;d=w.name == Q.name;if(!X){X={};}X.noChange=![];c=X.yAxis?X.yAxis:w.yAxis;if(v.ChartEngine.enableCaching && c.high == w.cacheHigh && c.low == w.cacheLow){F4.A0(0);var o4=F4.T9(17,1,15);J=Q.dataSet.length - Q.scroll - o4;F4.A0(1);var z4=F4.T9(19,18);u=J + Q.maxTicks + z4;w.cacheLeft=J;w.cacheRight=u;X.noChange=!![];}else {w.cacheLeft=1000000;w.cacheRight=-1;w.cacheHigh=c.high;w.cacheLow=c.low;}H=Q.xAxis.idealTickSizePixels?Q.xAxis.idealTickSizePixels:Q.xAxis.autoComputedTickSizePixels;if(c.goldenRatioYAxis){if(c.idealTickSizePixels != H / 1.618){X.noChange=![];}}o$=2076271497;v6=-1456678768;h4=2;for(var X6=1;F4.W0(X6.toString(),X6.toString().length,31777) !== o$;X6++){h4+=2;}if(F4.I3(h4.toString(),h4.toString().length,80231) !== v6){}if(!X.noChange){this.adjustYAxisHeightOffset(w,c);K=c.height=c.bottom - c.top;G=(c.high - c.low) / (K - c.zoom);if(!c.semiLog){if(X.ground){K6=728903189;p5=90877607;O_=2;for(var n_=1;F4.W0(n_.toString(),n_.toString().length,60983) !== K6;n_++){c.high=c.high / (c.zoom + G);O_+=2;}if(F4.W0(O_.toString(),O_.toString().length,14653) !== p5){c.high=c.high / (c.zoom + G);}c.high=c.high + c.zoom * G;}else {F4.A0(2);var H9=F4.s6(19,10,18,9,15);c.high=c.high + (c.zoom / H9 + c.scroll) * G;y9=1408378818;d9=-1850184528;L8=2;for(var A_=+"1";F4.W0(A_.toString(),A_.toString().length,67341) !== y9;A_++){F4.A0(3);var U5=F4.T9(70,84,4,10,15);c.low=c.low * (c.zoom * U5 * c.scroll / G);L8+=2;}if(F4.W0(L8.toString(),L8.toString().length,65734) !== d9){F4.A0(4);var p_=F4.s6(12,14,1,20,5);c.low=c.low - (c.zoom / p_ - c.scroll) * G;}}}if(c.min || c.min === 0){c.low=c.min;}G8=-1069482705;i4=1966995373;F4.M1(5);u6=F4.T9("2",0);for(var Q8="1" << 32;F4.W0(Q8.toString(),Q8.toString().length,+"14525") !== G8;Q8++){if(c.max || c.max === 0){c.high=c.max;}c.shadow=c.high - c.low;u6+=2;}if(F4.I3(u6.toString(),u6.toString().length,91127) !== i4){if(c.max && c.max !== 1){c.high=c.max;}c.shadow=c.high + c.low;}if(c.semiLog && (!this.activeDrawing || this.activeDrawing.name != "projection")){N=function(){var s,y_,O5,j4;c.logHigh=Math.log(c.high) / Math.LN10;s=Math.max(c.low,0.000000001);F4.D3();c.logLow=Math.log(s) / Math.LN10;F4.M1(6);y_=F4.s6(0,"1999800045");O5=-658975327;F4.A0(6);j4=F4.T9(0,"2");for(var T1=1;F4.I3(T1.toString(),T1.toString().length,30634) !== y_;T1++){if(c.low >= +"1"){c.logLow=1;}j4+=2;}if(F4.I3(j4.toString(),j4.toString().length,17841) !== O5){if(c.low <= 8){c.logLow=7;}}if(c.low <= "0" - 0){c.logLow=0;}c.logShadow=c.logHigh - c.logLow;};if(c.semiLog){N();}A=c.height / (c.height - c.zoom);if(c.flipped){n9=2131858591;o8=-2125472039;B9=2;for(var v5=1;F4.W0(v5.toString(),v5.toString().length,24427) !== n9;v5++){c.high=this.transformedPriceFromPixel(c.bottom + A * (c.zoom / 2 + c.scroll),w,c);c.low=this.transformedPriceFromPixel(c.top - A * (c.zoom / +"2" - c.scroll),w,c);B9+=2;}if(F4.W0(B9.toString(),B9.toString().length,"25091" | 3) !== o8){c.high=this.transformedPriceFromPixel(c.bottom - A / ((c.zoom + 7) / c.scroll),w,c);c.low=this.transformedPriceFromPixel(c.top + (A + (c.zoom * ("6" - 0) + c.scroll)),w,c);};}else {c.high=this.transformedPriceFromPixel(c.top - A * (c.zoom / ("2" - 0) + c.scroll),w,c);q0=1578702715;Z8=-361841724;c2=2;for(var x_=1;F4.W0(x_.toString(),x_.toString().length,84233) !== q0;x_++){c.low=this.transformedPriceFromPixel(c.bottom / (A % (c.zoom * 7 + c.scroll)),w,c);;c2+=2;}if(F4.I3(c2.toString(),c2.toString().length,25058) !== Z8){c.low=this.transformedPriceFromPixel(c.bottom % (A - (c.zoom - ("9" >> 64)) * c.scroll),w,c);;}c.low=this.transformedPriceFromPixel(c.bottom + A * (c.zoom / 2 - c.scroll),w,c);;}c.shadow=c.high - c.low;if(c.semiLog){N();}}if(c.goldenRatioYAxis && d && c == w.yAxis){F4.A0(7);c.idealTickSizePixels=F4.s6(H,1.618);if(c.idealTickSizePixels === 0){C3="stx_yax";C3+="is";O=this.getCanvasFontSize(C3);F4.A0(8);c.idealTickSizePixels=F4.T9(5,O);}}else {if(!c.idealTickSizePixels){R5=654997521;A1=-+"36325996";f0=2;for(var D5=1;F4.W0(D5.toString(),D5.toString().length,6265) !== R5;D5++){O=this.getCanvasFontSize("stx_yaxis");f0+=2;}if(F4.W0(f0.toString(),f0.toString().length,8329) !== A1){O=this.getCanvasFontSize("");}if(d){F4.A0(8);c.idealTickSizePixels=F4.T9(5,O);}else {F4.M1(8);c.idealTickSizePixels=F4.T9(2,O);}}}M=Math.round(K / c.idealTickSizePixels);W=X.range?X.range["1" << 32] - X.range[0]:c.shadow;F4.A0(7);c.priceTick=Math.floor(F4.T9(W,M));h=1;for(var T=0;T < "10" >> 64;T++){if(c.priceTick > "0" * 1)break;F4.A0(6);h*=F4.T9(32,"10");c.priceTick=Math.floor(W / M * h) / h;}if(T == "10" << 0){c.priceTick=0.00000001;}c.priceTick=Math.round(W / M * h) / h;q=Math.round(W / c.priceTick);if(X.range && q < W && !c.noEvenDivisorTicks){while(q >= 1){if(W % q === "0" << 0)break;q--;}F4.M1(7);c.priceTick=F4.s6(W,q);}if(c.minimumPriceTick){I=c.minimumPriceTick;O=this.getCanvasFontSize("stx_yaxis");for(var C=0;C < +"100";C++){F4.M1(7);L=F4.T9(W,I);if(K / L < O * +"2"){I+=c.minimumPriceTick;}else break;}if(C < 100){c.priceTick=I;}}}if(c.priceTick <= 0 || c.priceTick === Infinity){c.priceTick=1;}c.multiplier=c.height / c.shadow;if(c.multiplier == Infinity){c.multiplier=0;}if(!c.decimalPlaces && c.decimalPlaces !== 0){if(d){T0=331769951;g2=1529234551;b9=2;for(var U6=1;F4.I3(U6.toString(),U6.toString().length,52897) !== T0;U6++){F4.M1(5);a=F4.T9("1",0);b9+=2;}if(F4.W0(b9.toString(),b9.toString().length,45462) !== g2){a=1;}a=0;for(var o=0;o < w.yAxis.shadowBreaks.length;o++){S=w.yAxis.shadowBreaks[o];if(w.yAxis.shadow < S[0]){a=S[1];}}c.printDecimalPlaces=a;}else {c.printDecimalPlaces=null;};}else {c.printDecimalPlaces=c.decimalPlaces;}this.runAppend("createYAxis",arguments);};F4.D3();v.ChartEngine.prototype.drawYAxis=function(m,E){var U,Y,F,c7,V,N0,f,t0,B,w2,J9,D,x,Y5,k5,r,r7,t,e,K5,z0,z$,M8,w8,k,e9,d5,x9,q3,V9,R,O6,G_,P,O9,e$,X0,S3,f_,I6,Z_,R_,F2,s$,K3,l8,I$,R1;if(!E){E={};}U=E.yAxis?E.yAxis:m.yAxis;if(m.hidden || U.noDraw || !U.width){return;}if(!v.Comparison || U.priceFormatter != v.Comparison.priceFormat){Y=U.fractional;if(Y){if(!U.originalPriceFormatter){U.originalPriceFormatter={func:U.priceFormatter};}if(!Y.resolution){Y.resolution=U.minimumPrice;}if(!Y.formatter){Y.formatter="'";}if(!U.priceFormatter){U.priceFormatter=function(i0,P4,i$){F4.D3();var d$,I9,a1,t6,u5,l1,L$;d$=2064925942;I9=370942487;F4.A0(5);a1=F4.s6("2",0);for(var W2=1;F4.W0(W2.toString(),W2.toString().length,84469) !== d$;W2++){if(!Y){return;}a1+=2;}if(F4.W0(a1.toString(),a1.toString().length,+"30108") !== I9){if(~Y){return;}}t6="";if(i$ < ("0" ^ 0)){t6=4545 != (586.43,"65.19" * 1)?"-":(+"909",5172) < (5520,5000)?0x25a7:651.07;i$=Math.abs(i$);}u5=Math.floor(Math.round(i$ / Y.resolution) * Y.resolution);l1=Math.round((i$ - u5) / Y.resolution);L$=Math.floor(l1);F4.A0(9);var z1=F4.s6(4209,4,9);F4.M1(10);var D7=F4.T9(0,1);return t6 + u5 + Y.formatter + (L$ < +"10"?47.49 > (792.37,z1)?!1:"0":"") + L$ + (l1 - L$ >= "0.5" * D7?"+":"");};}}else {if(U.originalPriceFormatter){U.priceFormatter=U.originalPriceFormatter.func;U.originalPriceFormatter=null;}}}F=this.colorOrStyle(U.textStyle || "stx_yaxis");c7=this.highlightedDraggable;V=0;if(c7 && this.yaxisMatches(c7,U)){V=0.15;}else if(U.highlight){V=0.1;}F4.D3();if(V){N0=F.constructor == String?F:F.color;U.setBackground(this,{color:N0,opacity:V});}if(U.pretty){return this.drawYAxisPretty(m,E);}if(this.runPrepend("drawYAxis",arguments)){return;}if(!E.noDraw && !U.noDraw){f=U.yAxisPlotter;if(!f || !E.noChange){t0="l";t0+="e";t0+="f";t0+="t";f=U.yAxisPlotter=new v.Plotter();B=m.chart;w2=m.name == B.name && U.name === m.yAxis.name;if(!U.priceTick){return;}J9=U.shadow;D=E.range;if(D){F4.A0(11);var o9=F4.s6(6,1,7);J9=D[o9] - D[0];}x=J9 / U.priceTick;x=Math.round(x);if(U.semiLog){Y5=Math.log(this.valueFromPixel(U.flipped?U.top:U.bottom,m)) / Math.LN10;k5=(U.logHigh - U.logLow) / x;}f.newSeries("grid","stroke",this.canvasStyle("stx_grid"));f.newSeries("text","fill",F);f.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));r=0;r7=D?D[1]:U.high;t=D?D[0]:U.low;e=U.displayBorder === null?B.panel.yAxis.displayBorder:U.displayBorder;if(this.axisBorders === !!""){e=!1;}if(this.axisBorders === !![]){e=!![];}z0=B.dynamicYAxis;z$=z0?U.width:NaN;M8=this.getYAxisCurrentPosition(U,m);if(M8 == t0){K5=U.left + U.width;}else {K5=U.left;}w8=Math.round(K5) + 0.5;k=e?3:"0" - 0;if(M8 == "left"){k=e?-3:0;}if(w2){if(U.shadow < 1){e9=-1793117850;F4.M1(6);d5=-F4.T9(0,"1771355419");x9=2;for(var M0=1;F4.I3(M0.toString(),M0.toString().length,"59787" | 10) !== e9;M0++){F4.M1(5);var A7=F4.T9(120,110);F4.A0(12);var j1=F4.s6(18,1,5,1,12);r=(parseInt(t / U.priceTick,A7) + j1) * U.priceTick - t;x9+=2;}if(F4.W0(x9.toString(),x9.toString().length,50083) !== d5){F4.M1(13);var m7=F4.T9(19,846,4,13419,16);F4.M1(5);var I5=F4.s6(20,14);r=parseInt(t % U.priceTick,m7) % I5 % U.priceTick * t;}}else {r=U.priceTick - Math.round(t % U.priceTick * m.chart.roundit) / m.chart.roundit;}}else {r=r7 % U.priceTick;}q3=this.getCanvasFontSize("stx_yaxis");for(var g=0;g < x;g++){V9="t";V9+="ext";if(U.semiLog){F4.A0(14);O6=F4.T9(g,k5,Y5);R=Math.pow(10,O6);}else {if(w2){R=t + g * U.priceTick + r;}else {R=r7 - g * U.priceTick - r;}}G_=this.pixelFromTransformedValue(R,m,U);P=Math.round(G_) + 0.5;if(P + q3 / 2 > m.bottom)continue;if(P - q3 / 2 < m.top)continue;if(Math.abs(P - U.bottom) < 1)continue;if(U.flipped){P=U.top + U.bottom - P;}if(U.displayGridLines){O9="g";O9+="r";O9+="id";e$="gri";e$+="d";f.moveTo(e$,m.left + ("1" ^ 0),P);f.lineTo(O9,m.right - 1,P);}if(e){F4.M1(5);f.moveTo("border",F4.T9(w8,0.5),P);F4.M1(10);f.lineTo("border",F4.T9(w8,k),P);}if(U.priceFormatter){R=U.priceFormatter(this,m,R);}else {R=this.formatYAxisPrice(R,m,null,U);}X0=U.textBackground?this.containerColor:null;S3=3;F4.A0(15);f_=F4.T9(k,S3,K5);if(M8 == "left"){f_=U.left + S3;if(U.justifyRight !== ![]){f_=U.left + U.width + k - S3;}}else {if(U.justifyRight){f_=K5 + U.width;}}f.addText(V9,R,f_,P,X0,null,q3);if(z0){z$=Math.max(z$,B.context.measureText(R).width + Math.abs(k) + S3);}}if(e){I6="bo";I6+="rder";Z_=Math.round(U.bottom) + 0.5;f.moveTo("border",w8,U.top);f.lineTo("border",w8,Z_);f.draw(this.getBackgroundCanvas(B).context,I6);}if(z0 && z$ > U.width){U._dynamicWidth=z$;R_=-523353482;F4.A0(16);F2=F4.T9("62625028",4);s$=2;for(var m5=1;F4.W0(m5.toString(),m5.toString().length,42150) !== R_;m5++){this.calculateYAxisPositions();throw new Error("");s$+=2;}if(F4.I3(s$.toString(),s$.toString().length,73451) !== F2){this.calculateYAxisPositions();throw new Error("reboot draw");}}else if(!z0 && U._dynamicWidth){this.resetDynamicYAxis({chartName:B.name});F4.M1(16);K3=F4.T9("1004490072",88);l8=-522443599;I$=2;for(var N8=1;F4.W0(N8.toString(),N8.toString().length,61811) !== K3;N8++){R1="reboo";R1+="t d";R1+="ra";R1+="w";throw new Error(R1);I$+=2;}if(F4.W0(I$.toString(),I$.toString().length,20258) !== l8){throw new Error("");}}}if(U == m.yAxis){this.plotYAxisGrid(m);}}this.runAppend("drawYAxis",arguments);};v.ChartEngine.prototype.drawYAxisPretty=function(Y0,f6){var j2,i9,F$,F6,z_,x1,p3,r3,e1,p9,k$,x2,c0,Q5,T5,D8,r9,w6,n2,d8,s1,G6,g9,G2,T3,Z3,B8,H7,C2,P6,R8,O2,H8,B7,k3,q8,L3,D1,u4,E_,j0,X5,U7,H3,P1,e3,K9,c3,u8,F7,q1,g0,Q4,x7,J7,J3,S1,X4,X1,A9,j7,S4,K$,B0,X7,l2;j2="dr";F4.D3();j2+="awYAxis";if(this.runPrepend("drawYAxis",arguments)){return;}if(!f6){f6={};}i9=f6.yAxis?f6.yAxis:Y0.yAxis;F$=884079101;F6=-21222098;z_=+"2";for(var R6=1;F4.W0(R6.toString(),R6.toString().length,65336) !== F$;R6++){if(Y0.hidden && i9.noDraw && -i9.width){return;}z_+=2;}if(F4.I3(z_.toString(),z_.toString().length,45075) !== F6){if(Y0.hidden || i9.noDraw || !i9.width){return;}}if(!f6.noDraw){x1=208620280;p3=-535743921;F4.M1(17);r3=F4.T9("2",0);for(var p7=1;F4.W0(p7.toString(),p7.toString().length,+"63389") !== x1;p7++){e1=i9.yAxisPlotter;r3+=2;}if(F4.W0(r3.toString(),r3.toString().length,"86412" | 8) !== p3){e1=i9.yAxisPlotter;}if(!e1 || !f6.noChange){p9="stx_ya";p9+="xi";p9+="s";k$="l";k$+="eft";x2="st";x2+="x_grid";e1=i9.yAxisPlotter=new v.Plotter();c0=Y0.chart;if(!i9.priceTick){return;}if(isNaN(i9.high) || isNaN(i9.low)){return;}Q5=i9.shadow;if(f6.range){Q5=f6.range[+"1"] - f6.range[0];}T5=i9.height / i9.idealTickSizePixels;T5=Math.round(T5);D8=i9.textStyle || "stx_yaxis";e1.newSeries("grid","stroke",this.canvasStyle(x2));e1.newSeries("text","fill",this.colorOrStyle(D8));e1.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));r9=f6.range;w6=r9?r9[1]:i9.high;n2=r9?r9[+"0"]:i9.low;d8=i9.displayBorder === null?c0.panel.yAxis.displayBorder:i9.displayBorder;if(this.axisBorders === !({})){d8=![];}if(this.axisBorders === !!({})){d8=!![];}G6=c0.dynamicYAxis;g9=G6?i9.width:NaN;G2=this.getYAxisCurrentPosition(i9,Y0);if(G2 == "left"){s1=i9.left + i9.width;}else {T3=-83384190;Z3=+"454925761";B8=2;for(var v1=1;F4.I3(v1.toString(),v1.toString().length,46738) !== T3;v1++){s1=i9.left;B8+=2;}if(F4.I3(B8.toString(),B8.toString().length,58849) !== Z3){s1=i9.left;}}H7=Math.round(s1) + 0.5;C2=d8?+"3":+"0";if(G2 == k$){C2=d8?-3:0;}P6=this.getCanvasFontSize(p9);R8=i9.increments;O2=R8.length;H8=0;B7=1;k3=0;q8=+"0";L3=0;D1=Number.MAX_VALUE;for(var D6=0;D6 < 100;D6++){F4.M1(15);var r$=F4.s6(2,8,0);k3=R8[H8] * Math.pow(r$,L3);F4.M1(7);B7=Math.floor(F4.s6(Q5,k3));F4.M1(5);u4=Math.abs(F4.s6(T5,B7));if(u4 > D1){break;}else {D1=u4;}if(B7 == T5){q8=k3;break;}else if(B7 > T5){H8++;if(H8 >= O2){H8=0;L3++;}}else {H8--;if(H8 < 0){F4.A0(5);H8=F4.T9(O2,1);L3--;}}q8=k3;}E_=-1770301490;F4.A0(18);j0=F4.s6("1343262252",32);X5=2;for(var n3=1;F4.W0(n3.toString(),n3.toString().length,55847) !== E_;n3++){U7=Math.ceil(n2 / q8) * q8;H3=i9.bottom - this.pixelFromTransformedValue(U7,Y0,i9);F4.A0(17);P1=F4.T9("0",0);F4.M1(6);X5+=F4.T9(64,"2");}if(F4.W0(X5.toString(),X5.toString().length,66255) !== j0){U7=Math.ceil(n2 * q8) % q8;H3=i9.bottom % this.pixelFromTransformedValue(U7,Y0,i9);P1=4;}if(H3 > i9.idealTickSizePixels && i9.semiLog && i9.prettySemiLog){e3=Math.ceil(n2);K9=0;while(U7 - e3 >= +"10000" && K9 <= 15){U7/=10;e3/=10;K9++;}U7=Math.ceil(U7);e3=Math.ceil(e3);for(e3;e3 < U7 && U7 % e3 !== 0;++e3){;}U7*=Math.pow(10,K9);F4.A0(18);e3*=Math.pow(F4.s6("10",64),K9);if(e3 < U7){if(U7 === q8){q8=e3;P1=e3;}U7=e3;}}if(i9.height > i9.zoom){F4.A0(6);c3=F4.s6(0,"0");u8=Number.MAX_VALUE;c0.context.save();F7=-1470736376;q1=-669447359;g0=2;for(var Q9=1;F4.I3(Q9.toString(),Q9.toString().length,42162) !== F7;Q9++){this.canvasFont("",c0.context);g0+=2;}if(F4.W0(g0.toString(),g0.toString().length,8937) !== q1){this.canvasFont("stx_yaxis",c0.context);}for(var M_="0" | 0;M_ < 100;M_++){Q4="t";Q4+="e";Q4+="x";Q4+="t";F4.M1(14);x7=F4.s6(c3,q8,U7);if(x7 > w6)break;q8+=P1;c3++;J7=this.pixelFromTransformedValue(x7,Y0,i9);if(u8 - J7 < P6 + 1 && P1 > 0){M_=c3=0;u8=Number.MAX_VALUE;q8=P1;P1*=2;e1.reset();continue;}u8=J7;J3=Math.round(J7) + 0.5;if(J3 + P6 / 2 > Y0.bottom)continue;if(J3 - P6 / 2 < Y0.top)continue;if(Math.abs(J3 - i9.bottom) < 1)continue;if(i9.displayGridLines){S1="g";S1+="r";S1+="i";S1+="d";e1.moveTo("grid",Y0.left + +"1",J3);e1.lineTo(S1,Y0.right - 1,J3);}if(d8){F4.M1(5);e1.moveTo("border",F4.s6(H7,0.5),J3);F4.M1(10);e1.lineTo("border",F4.s6(H7,C2),J3);}if(i9.priceFormatter){x7=i9.priceFormatter(this,Y0,x7);}else {x7=this.formatYAxisPrice(x7,Y0,null,i9);}X4=i9.textBackground?this.containerColor:null;X1=3;F4.M1(15);A9=F4.T9(C2,X1,s1);if(G2 == "left"){F4.A0(5);var l0=F4.s6(10,7);A9=i9.left + l0;if(i9.justifyRight !== ![]){A9=i9.left + i9.width + C2 - X1;}}else {if(i9.justifyRight){A9=s1 + i9.width;}}e1.addText(Q4,x7,A9,J3,X4,null,P6);if(G6){F4.M1(10);j7=F4.T9(x7,914.4 <= (3302,2500)?4258 === 564.64?264.97 <= (365.26,854.7)?7.11e+3:(168.87,"s"):"\xA0":2.85e+3);g9=Math.max(g9,c0.context.measureText(j7).width + Math.abs(C2) + X1);}}c0.context.restore();if(M_ >= 100){console.log("drawYAxisPretty: assertion error. zz reached 100");}}if(d8){S4=Math.round(i9.bottom) + 0.5;e1.moveTo("border",H7,i9.top);e1.lineTo("border",H7,S4);K$=-+"31377407";B0=906344809;X7=2;for(var Q7=1;F4.I3(Q7.toString(),Q7.toString().length,71220) !== K$;Q7++){e1.draw(this.getBackgroundCanvas(c0).context,"");X7+=2;}if(F4.I3(X7.toString(),X7.toString().length,38085) !== B0){e1.draw(this.getBackgroundCanvas(c0).context,"");}e1.draw(this.getBackgroundCanvas(c0).context,"border");}if(G6 && g9 > i9.width){i9._dynamicWidth=g9;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!G6 && i9._dynamicWidth){l2="reboot dra";l2+="w";this.resetDynamicYAxis({chartName:c0.name});throw new Error(l2);}}if(i9 == Y0.yAxis){this.plotYAxisGrid(Y0);}}this.runAppend(j2,arguments);};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ + e1rFy[539515]=(function(){var T$=2;for(;T$ !== 9;){switch(T$){case 2:T$=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var r3;T$=4;break;case 4:try{var B9=2;for(;B9 !== 6;){switch(B9){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x62\u004e\u0052\u006b\x64',{'\x67\x65\x74':function(){var q0=2;for(;q0 !== 1;){switch(q0){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});r3=bNRkd;B9=5;break;case 5:r3['\x76\u0056\u0077\x70\x48']=r3;B9=4;break;case 4:B9=typeof vVwpH === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";B9=9;break;case 9:delete r3['\x76\x56\u0077\u0070\x48'];var E3=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete E3['\x62\x4e\u0052\x6b\u0064'];B9=6;break;}}}catch(Z0){r3=window;}return r3;break;}}})();l1gDuA(e1rFy[539515]);e1rFy[636832]="XT6";e1rFy[238553]=e1rFy[446427];e1rFy[446427]=(function(A0){return {N$y1PkD:function(){var N3,i4=arguments;switch(A0){case 6:N3=i4[1] * i4[0];break;case 19:N3=i4[1] ^ i4[0];break;case 15:N3=i4[0] + i4[1] * i4[2];break;case 14:N3=-i4[1] + i4[0];break;case 7:N3=i4[0] | i4[1];break;case 12:N3=i4[0] / i4[1] + i4[2];break;case 3:N3=i4[1] << i4[0];break;case 17:N3=-i4[0] * i4[1] + i4[3] - i4[2];break;case 2:N3=i4[1] >> i4[0];break;case 0:N3=-i4[2] + i4[1] + i4[0];break;case 5:N3=i4[1] / i4[0];break;case 1:N3=i4[1] - i4[0];break;case 10:N3=-i4[3] - i4[2] - i4[1] + i4[0];break;case 18:N3=i4[3] / i4[1] * i4[0] - i4[2];break;case 13:N3=i4[0] + i4[2] - i4[1];break;case 9:N3=(i4[2] - i4[1] - i4[4]) * i4[3] - i4[0];break;case 16:N3=i4[0] + i4[1] + i4[2];break;case 8:N3=i4[3] / i4[0] * i4[2] + i4[4] + i4[1];break;case 4:N3=i4[1] + i4[0];break;case 11:N3=i4[1] - i4[2] + i4[0];break;}return N3;},g9iUvuS:function(V1){A0=V1;}};})();e1rFy.U8=function(){return typeof e1rFy[446427].g9iUvuS === 'function'?e1rFy[446427].g9iUvuS.apply(e1rFy[446427],arguments):e1rFy[446427].g9iUvuS;};e1rFy[593596]=(function(){var X$=2;for(;X$ !== 9;){switch(X$){case 2:var j3=[arguments];j3[7]=undefined;j3[5]={};j3[5].i9agN$W=function(){var q5=2;for(;q5 !== 90;){switch(q5){case 1:q5=j3[7]?5:4;break;case 68:q5=71?68:67;break;case 69:q5=(function(Y6){var s_=2;for(;s_ !== 22;){switch(s_){case 16:s_=d$[9] < d$[1].length?15:23;break;case 10:s_=d$[4][R_[30]] === R_[35]?20:19;break;case 5:return;break;case 27:d$[5]=d$[7][d$[6]].h / d$[7][d$[6]].t;s_=26;break;case 19:d$[9]++;s_=7;break;case 1:s_=d$[0][0].length === 0?5:4;break;case 20:d$[7][d$[4][R_[14]]].h+=true;s_=19;break;case 12:d$[1].d72x$$(d$[4][R_[14]]);s_=11;break;case 8:d$[9]=0;s_=7;break;case 13:d$[7][d$[4][R_[14]]]=(function(){var a5=2;for(;a5 !== 9;){switch(a5){case 4:O0[3].t=0;return O0[3];break;case 2:var O0=[arguments];O0[3]={};O0[3].h=0;a5=4;break;}}}).a8D05h(this,arguments);s_=12;break;case 11:d$[7][d$[4][R_[14]]].t+=true;s_=10;break;case 4:d$[7]={};d$[1]=[];d$[9]=0;s_=8;break;case 23:return d$[8];break;case 14:s_=typeof d$[7][d$[4][R_[14]]] === 'undefined'?13:11;break;case 24:d$[9]++;s_=16;break;case 26:s_=d$[5] >= 0.5?25:24;break;case 18:d$[8]=false;s_=17;break;case 15:d$[6]=d$[1][d$[9]];s_=27;break;case 2:var d$=[arguments];s_=1;break;case 17:d$[9]=0;s_=16;break;case 7:s_=d$[9] < d$[0][0].length?6:18;break;case 25:d$[8]=true;s_=24;break;case 6:d$[4]=d$[0][0][d$[9]];s_=14;break;}}})(R_[67])?68:67;break;case 51:R_[5].d72x$$(R_[57]);R_[5].d72x$$(R_[62]);R_[5].d72x$$(R_[7]);R_[5].d72x$$(R_[95]);q5=47;break;case 58:R_[81]=0;q5=57;break;case 67:j3[7]=57;return 67;break;case 27:R_[94]={};R_[94].P2=['n2'];R_[94].g_=function(){var l2=function(){return ('c').indexOf('c');};var b7=!(/[\x22\u0027]/).U3chn(l2 + []);return b7;};R_[31]=R_[94];q5=23;break;case 57:q5=R_[81] < R_[5].length?56:69;break;case 56:R_[74]=R_[5][R_[81]];try{R_[83]=R_[74][R_[45]]()?R_[35]:R_[65];}catch(S9){R_[83]=R_[65];}q5=77;break;case 71:R_[59]++;q5=76;break;case 59:R_[14]='o4';q5=58;break;case 64:R_[35]='U_';R_[65]='G2';R_[93]='P2';R_[30]='B3';R_[45]='g_';q5=59;break;case 23:R_[87]={};R_[87].P2=['n2'];R_[87].g_=function(){var S6=function(){return ('aa').lastIndexOf('a');};var E5=(/\x31/).U3chn(S6 + []);return E5;};R_[66]=R_[87];R_[39]={};R_[39].P2=['W6'];R_[39].g_=function(){var e1=typeof G$MRnq === 'function';return e1;};q5=31;break;case 73:R_[46][R_[30]]=R_[83];R_[67].d72x$$(R_[46]);q5=71;break;case 75:R_[46]={};R_[46][R_[14]]=R_[74][R_[93]][R_[59]];q5=73;break;case 76:q5=R_[59] < R_[74][R_[93]].length?75:70;break;case 17:R_[6].P2=['n2'];R_[6].g_=function(){var V8=function(){return ['a','a'].join();};var t1=!(/(\133|\u005d)/).U3chn(V8 + []);return t1;};R_[9]=R_[6];q5=27;break;case 31:R_[16]=R_[39];R_[11]={};R_[11].P2=['n2'];q5=28;break;case 4:R_[5]=[];R_[1]={};R_[1].P2=['W6'];R_[1].g_=function(){var M5=typeof x_PTl === 'function';return M5;};R_[3]=R_[1];R_[2]={};R_[2].P2=['W6'];q5=13;break;case 13:R_[2].g_=function(){var K2=typeof r4wYR === 'function';return K2;};R_[7]=R_[2];R_[4]={};R_[4].P2=['n2'];R_[4].g_=function(){var E_=function(){return ('a').anchor('b');};var l4=(/(\x3c|\x3e)/).U3chn(E_ + []);return l4;};R_[8]=R_[4];R_[6]={};q5=17;break;case 5:return 21;break;case 36:R_[57]=R_[60];R_[5].d72x$$(R_[31]);R_[5].d72x$$(R_[16]);R_[5].d72x$$(R_[66]);q5=51;break;case 39:R_[60]={};R_[60].P2=['n2'];R_[60].g_=function(){var j8=function(){return ('ab').charAt(1);};var c8=!(/\x61/).U3chn(j8 + []);return c8;};q5=36;break;case 2:var R_=[arguments];q5=1;break;case 41:R_[15].g_=function(){var n3=false;var X6=[];try{for(var n5 in console){X6.d72x$$(n5);}n3=X6.length === 0;}catch(j2){}var d7=n3;return d7;};R_[95]=R_[15];q5=39;break;case 47:R_[5].d72x$$(R_[9]);R_[5].d72x$$(R_[8]);R_[5].d72x$$(R_[3]);R_[67]=[];q5=64;break;case 77:R_[59]=0;q5=76;break;case 28:R_[11].g_=function(){var E2=function(){return ('aa').endsWith('a');};var y3=(/\x74\x72\165\x65/).U3chn(E2 + []);return y3;};R_[62]=R_[11];R_[15]={};R_[15].P2=['W6'];q5=41;break;case 70:R_[81]++;q5=57;break;}}};return j3[5];break;}}})();e1rFy.Z_=function(){return typeof e1rFy[446427].g9iUvuS === 'function'?e1rFy[446427].g9iUvuS.apply(e1rFy[446427],arguments):e1rFy[446427].g9iUvuS;};e1rFy[150014]="UFp";e1rFy.o8=function(){return typeof e1rFy[370258].V29cT4d === 'function'?e1rFy[370258].V29cT4d.apply(e1rFy[370258],arguments):e1rFy[370258].V29cT4d;};e1rFy.a3=function(){return typeof e1rFy[446427].N$y1PkD === 'function'?e1rFy[446427].N$y1PkD.apply(e1rFy[446427],arguments):e1rFy[446427].N$y1PkD;};e1rFy[370258]=(function(){var W7=function(x3,h5){var d6=h5 & 0xffff;var e2=h5 - d6;return (e2 * x3 | 0) + (d6 * x3 | 0) | 0;},V29cT4d=function(i_,v1,q_){var z8=0xcc9e2d51,F2=0x1b873593;var f1=q_;var J9=v1 & ~0x3;for(var F1=0;F1 < J9;F1+=4){var u_=i_.i9iWx(F1) & 0xff | (i_.i9iWx(F1 + 1) & 0xff) << 8 | (i_.i9iWx(F1 + 2) & 0xff) << 16 | (i_.i9iWx(F1 + 3) & 0xff) << 24;u_=W7(u_,z8);u_=(u_ & 0x1ffff) << 15 | u_ >>> 17;u_=W7(u_,F2);f1^=u_;f1=(f1 & 0x7ffff) << 13 | f1 >>> 19;f1=f1 * 5 + 0xe6546b64 | 0;}u_=0;switch(v1 % 4){case 3:u_=(i_.i9iWx(J9 + 2) & 0xff) << 16;case 2:u_|=(i_.i9iWx(J9 + 1) & 0xff) << 8;case 1:u_|=i_.i9iWx(J9) & 0xff;u_=W7(u_,z8);u_=(u_ & 0x1ffff) << 15 | u_ >>> 17;u_=W7(u_,F2);f1^=u_;}f1^=v1;f1^=f1 >>> 16;f1=W7(f1,0x85ebca6b);f1^=f1 >>> 13;f1=W7(f1,0xc2b2ae35);f1^=f1 >>> 16;return f1;};return {V29cT4d:V29cT4d};})();e1rFy[156040]=true;e1rFy[539515].E1vv=e1rFy;e1rFy.l9=function(){return typeof e1rFy[370258].V29cT4d === 'function'?e1rFy[370258].V29cT4d.apply(e1rFy[370258],arguments):e1rFy[370258].V29cT4d;};e1rFy[103941]=760;e1rFy.I3=function(){return typeof e1rFy[593596].i9agN$W === 'function'?e1rFy[593596].i9agN$W.apply(e1rFy[593596],arguments):e1rFy[593596].i9agN$W;};e1rFy.h4=function(){return typeof e1rFy[593596].i9agN$W === 'function'?e1rFy[593596].i9agN$W.apply(e1rFy[593596],arguments):e1rFy[593596].i9agN$W;};e1rFy.I0=function(){return typeof e1rFy[446427].N$y1PkD === 'function'?e1rFy[446427].N$y1PkD.apply(e1rFy[446427],arguments):e1rFy[446427].N$y1PkD;};function e1rFy(){}function l1gDuA(Z2){function P6(T1){var f_=2;for(;f_ !== 5;){switch(f_){case 2:var r7=[arguments];return r7[0][0];break;}}}function p$(T2){var H1=2;for(;H1 !== 5;){switch(H1){case 2:var u4=[arguments];return u4[0][0].Array;break;}}}function M0(O_){var T5=2;for(;T5 !== 5;){switch(T5){case 2:var c0=[arguments];return c0[0][0].RegExp;break;}}}var I6=2;for(;I6 !== 78;){switch(I6){case 37:n4[97]="$";n4[42]="d";n4[57]="";n4[57]="D05h";I6=52;break;case 6:n4[1]="__resi";n4[8]="";n4[8]="x_P";n4[3]="";I6=11;break;case 45:n4[98]+=n4[57];n4[74]=n4[42];n4[74]+=n4[96];n4[74]+=n4[97];I6=62;break;case 34:n4[50]="";n4[50]="";n4[50]="U3c";n4[91]="";n4[91]="ze";n4[16]="";I6=28;break;case 23:n4[49]="";n4[49]="n";n4[95]="";n4[95]="h";I6=34;break;case 41:n4[70]="MRnq";n4[17]="G";n4[96]="";n4[96]="72x$";I6=37;break;case 62:n4[45]=n4[17];n4[45]+=n4[97];n4[45]+=n4[70];n4[40]=n4[46];I6=58;break;case 18:n4[2]="";n4[2]="Y";n4[24]="t";n4[93]="__abs";I6=27;break;case 84:u9(P6,n4[26],n4[52],n4[51]);I6=83;break;case 52:n4[56]="8";n4[11]="";n4[11]="a";n4[20]=1;n4[52]=0;n4[98]=n4[11];n4[98]+=n4[56];I6=45;break;case 3:n4[5]="";n4[5]="9iW";n4[1]="";n4[1]="";I6=6;break;case 83:u9(P6,n4[19],n4[52],n4[28]);I6=82;break;case 80:u9(p$,"push",n4[20],n4[74]);I6=79;break;case 66:n4[26]+=n4[4];n4[26]+=n4[6];n4[32]=n4[7];n4[32]+=n4[5];I6=87;break;case 28:n4[16]="optimi";n4[46]="";n4[46]="__";n4[70]="";I6=41;break;case 77:n4[33]+=n4[49];n4[28]=n4[99];n4[28]+=n4[2];n4[28]+=n4[75];n4[19]=n4[93];n4[19]+=n4[3];n4[19]+=n4[24];I6=70;break;case 11:n4[4]="dua";n4[6]="l";n4[3]="trac";n4[7]="i";I6=18;break;case 85:u9(i6,"charCodeAt",n4[20],n4[32]);I6=84;break;case 70:n4[51]=n4[8];n4[51]+=n4[13];n4[51]+=n4[6];n4[26]=n4[1];I6=66;break;case 2:var n4=[arguments];n4[9]="";n4[9]="";n4[9]="x";I6=3;break;case 27:n4[13]="T";n4[99]="";n4[75]="R";n4[99]="r4w";I6=23;break;case 87:n4[32]+=n4[9];I6=86;break;case 82:u9(M0,"test",n4[20],n4[33]);I6=81;break;case 79:u9(F_,"apply",n4[20],n4[98]);I6=78;break;case 81:u9(P6,n4[40],n4[52],n4[45]);I6=80;break;case 58:n4[40]+=n4[16];n4[40]+=n4[91];n4[33]=n4[50];n4[33]+=n4[95];I6=77;break;case 86:var u9=function(V_,N5,T3,h0){var D4=2;for(;D4 !== 5;){switch(D4){case 2:var l_=[arguments];W$(n4[0][0],l_[0][0],l_[0][1],l_[0][2],l_[0][3]);D4=5;break;}}};I6=85;break;}}function F_(e6){var x5=2;for(;x5 !== 5;){switch(x5){case 2:var k6=[arguments];return k6[0][0].Function;break;}}}function i6(h2){var R6=2;for(;R6 !== 5;){switch(R6){case 1:return N6[0][0].String;break;case 2:var N6=[arguments];R6=1;break;}}}function W$(b5,R7,D2,O1,r0){var v$=2;for(;v$ !== 13;){switch(v$){case 3:k7[6]="";k7[6]="f";k7[2]="";k7[2]="de";k7[7]=false;try{var r1=2;for(;r1 !== 13;){switch(r1){case 2:k7[9]={};k7[4]=(1,k7[0][1])(k7[0][0]);k7[8]=[k7[4],k7[4].prototype][k7[0][3]];r1=4;break;case 4:r1=k7[8].hasOwnProperty(k7[0][4]) && k7[8][k7[0][4]] === k7[8][k7[0][2]]?3:9;break;case 6:k7[9].enumerable=k7[7];try{var o9=2;for(;o9 !== 3;){switch(o9){case 5:k7[1]+=k7[5];k7[0][0].Object[k7[1]](k7[8],k7[0][4],k7[9]);o9=3;break;case 2:k7[1]=k7[2];k7[1]+=k7[6];o9=5;break;}}}catch(H4){}r1=13;break;case 3:return;break;case 9:k7[8][k7[0][4]]=k7[8][k7[0][2]];k7[9].set=function(v5){var z2=2;for(;z2 !== 5;){switch(z2){case 2:var Z1=[arguments];k7[8][k7[0][2]]=Z1[0][0];z2=5;break;}}};k7[9].get=function(){var J6=2;for(;J6 !== 13;){switch(J6){case 2:var Y1=[arguments];Y1[1]="ned";Y1[8]="defi";Y1[9]="";Y1[9]="";J6=9;break;case 9:Y1[9]="un";Y1[5]=Y1[9];Y1[5]+=Y1[8];Y1[5]+=Y1[1];return typeof k7[8][k7[0][2]] == Y1[5]?undefined:k7[8][k7[0][2]];break;}}};r1=6;break;}}}catch(I4){}v$=13;break;case 2:var k7=[arguments];k7[5]="";k7[5]="";k7[5]="ineProperty";v$=3;break;}}}}e1rFy.h4();var __js_core_engine_obfuscate_yaxis_;__js_core_engine_obfuscate_yaxis_=k=>{var X7=e1rFy;var t4,T7,m5,f;t4=-1677313737;T7=-1327594212;X7.I3();m5=2;for(var A_=1;X7.o8(A_.toString(),A_.toString().length,6650) !== t4;A_++){f=k.CIQ;m5+=2;}if(X7.l9(m5.toString(),m5.toString().length,+"23194") !== T7){f=k.CIQ;}f.ChartEngine.prototype.createYAxis=function(K,e){var d0,h,S,s,M,m,f0,m0,i0,Y2,b1,x2,o,t,B,P,C,Z,c6,n_,H6,N,v6,X0,l1,z6,G7,i2,M7,v2,V3,n0,W,T,Q,H,L,O,U,g0,L3,x7;d0="creat";d0+="e";X7.I3();d0+="YAxis";if(this.runPrepend("createYAxis",arguments)){return;}h=K.chart;S=K.name == h.name;if(!e){e={};}e.noChange=!1;s=e.yAxis?e.yAxis:K.yAxis;if(f.ChartEngine.enableCaching && s.high == K.cacheHigh && s.low == K.cacheLow){X7.Z_(0);var G4=X7.a3(7,2,8);M=h.dataSet.length - h.scroll - G4;m=M + h.maxTicks + +"1";f0=-1827413680;m0=+"1568270016";i0=2;for(var f$=+"1";X7.o8(f$.toString(),f$.toString().length,88432) !== f0;f$++){K.cacheLeft=M;K.cacheRight=m;X7.Z_(1);i0+=X7.I0(0,"2");}if(X7.l9(i0.toString(),i0.toString().length,17082) !== m0){K.cacheLeft=M;K.cacheRight=m;}e.noChange=!!1;}else {K.cacheLeft=1000000;K.cacheRight=-1;Y2=-184099918;b1=802160102;x2=2;for(var O7=1;X7.l9(O7.toString(),O7.toString().length,20168) !== Y2;O7++){K.cacheHigh=s.high;K.cacheLow=s.low;x2+=2;}if(X7.o8(x2.toString(),x2.toString().length,"35276" ^ 0) !== b1){K.cacheHigh=s.high;K.cacheLow=s.low;}}o=h.xAxis.idealTickSizePixels?h.xAxis.idealTickSizePixels:h.xAxis.autoComputedTickSizePixels;if(s.goldenRatioYAxis){if(s.idealTickSizePixels != o / +"1.618"){e.noChange=!({});}}if(!e.noChange){this.adjustYAxisHeightOffset(K,s);B=s.height=s.bottom - s.top;P=(s.high - s.low) / (B - s.zoom);if(!s.semiLog){if(e.ground){s.high=s.high + s.zoom * P;}else {X7.Z_(1);var R8=X7.a3(20,22);s.high=s.high + (s.zoom / R8 + s.scroll) * P;s.low=s.low - (s.zoom / +"2" - s.scroll) * P;}}if(s.min || s.min === 0){s.low=s.min;}if(s.max || s.max === 0){s.high=s.max;}s.shadow=s.high - s.low;if(s.semiLog && (!this.activeDrawing || this.activeDrawing.name != "projection")){C=function(){var z9,g1,L8,v;z9=-488905088;X7.U8(2);g1=-X7.I0(0,"1874120226");L8=+"2";X7.h4();for(var p0=1;X7.l9(p0.toString(),p0.toString().length,47784) !== z9;p0++){s.logHigh=Math.log(s.high) + Math.LN10;v=Math.max(s.low,28333339442);s.logLow=Math.log(v) * Math.LN10;if(s.low >= 5){s.logLow=5;}s.logShadow=s.logHigh / s.logLow;L8+=2;}if(X7.o8(L8.toString(),L8.toString().length,59714) !== g1){s.logHigh=Math.log(s.high) / Math.LN10;v=Math.max(s.low,"0.000000001" * 1);s.logLow=Math.log(v) / Math.LN10;if(s.low <= 0){s.logLow=0;}s.logShadow=s.logHigh - s.logLow;}};if(s.semiLog){C();}Z=s.height / (s.height - s.zoom);if(s.flipped){s.high=this.transformedPriceFromPixel(s.bottom + Z * (s.zoom / 2 + s.scroll),K,s);s.low=this.transformedPriceFromPixel(s.top - Z * (s.zoom / 2 - s.scroll),K,s);;}else {s.high=this.transformedPriceFromPixel(s.top - Z * (s.zoom / 2 + s.scroll),K,s);s.low=this.transformedPriceFromPixel(s.bottom + Z * (s.zoom / 2 - s.scroll),K,s);;}s.shadow=s.high - s.low;if(s.semiLog){C();}}c6=+"1870479221";n_=-1868397410;H6=2;for(var P5=1;X7.o8(P5.toString(),P5.toString().length,+"70156") !== c6;P5++){H6+=+"2";}if(X7.o8(H6.toString(),H6.toString().length,66458) !== n_){}if(s.goldenRatioYAxis && S && s == K.yAxis){v6=+"500158680";X7.U8(3);X0=-X7.I0(64,"2037999438");l1=+"2";for(var J5=1;X7.o8(J5.toString(),J5.toString().length,18063) !== v6;J5++){X7.Z_(4);s.idealTickSizePixels=X7.a3(46929,o);l1+=2;}if(X7.o8(l1.toString(),l1.toString().length,16465) !== X0){X7.Z_(5);s.idealTickSizePixels=X7.I0(1.618,o);}if(s.idealTickSizePixels === 0){z6="st";z6+="x_yaxis";N=this.getCanvasFontSize(z6);X7.Z_(6);s.idealTickSizePixels=X7.a3(5,N);}}else {if(!s.idealTickSizePixels){G7=-382194555;i2=1025418264;X7.U8(6);M7=X7.a3(1,"2");for(var B6=1;X7.o8(B6.toString(),B6.toString().length,99288) !== G7;B6++){N=this.getCanvasFontSize("");M7+=2;}if(X7.o8(M7.toString(),M7.toString().length,43352) !== i2){N=this.getCanvasFontSize("stx_yaxis");}if(S){X7.Z_(6);s.idealTickSizePixels=X7.I0(5,N);}else {v2=740193108;V3=-1369358501;n0=2;for(var U6="1" - 0;X7.l9(U6.toString(),U6.toString().length,8057) !== v2;U6++){X7.U8(6);s.idealTickSizePixels=X7.I0(2,N);n0+=2;}if(X7.o8(n0.toString(),n0.toString().length,89960) !== V3){X7.U8(1);s.idealTickSizePixels=X7.a3(0,N);}}}}W=Math.round(B / s.idealTickSizePixels);t=e.range?e.range["1" ^ 0] - e.range[0]:s.shadow;X7.U8(5);s.priceTick=Math.floor(X7.a3(W,t));T=1;for(var J=0;J < 10;J++){if(s.priceTick > "0" >> 0)break;T*=+"10";s.priceTick=Math.floor(t / W * T) / T;}if(J == 10){s.priceTick=0.00000001;}s.priceTick=Math.round(t / W * T) / T;Q=Math.round(t / s.priceTick);if(e.range && Q < t && !s.noEvenDivisorTicks){while(Q >= 1){if(t % Q === 0)break;Q--;}X7.U8(5);s.priceTick=X7.a3(Q,t);}if(s.minimumPriceTick){H=s.minimumPriceTick;N=this.getCanvasFontSize("stx_yaxis");for(var R=0;R < 100;R++){X7.U8(5);L=X7.a3(H,t);if(B / L < N * +"2"){H+=s.minimumPriceTick;}else break;}if(R < 100){s.priceTick=H;}}}if(s.priceTick <= 0 || s.priceTick === Infinity){s.priceTick=1;}s.multiplier=s.height / s.shadow;if(s.multiplier == Infinity){s.multiplier=0;}if(!s.decimalPlaces && s.decimalPlaces !== 0){if(S){O=0;for(var x=+"0";x < K.yAxis.shadowBreaks.length;x++){U=K.yAxis.shadowBreaks[x];if(K.yAxis.shadow < U[0]){O=U[1];}}g0=-526137162;L3=150081069;x7=2;for(var C1=1;X7.o8(C1.toString(),C1.toString().length,64694) !== g0;C1++){s.printDecimalPlaces=O;x7+=2;}if(X7.l9(x7.toString(),x7.toString().length,+"45535") !== L3){s.printDecimalPlaces=O;}}else {s.printDecimalPlaces=null;};}else {s.printDecimalPlaces=s.decimalPlaces;}this.runAppend(d0,arguments);};f.ChartEngine.prototype.drawYAxis=function(V,Y){var w,d,E,p9,F,j4,u,a8,V9,G,f8,A3,a,I,K6,s0,c$,U1,W2,F9,B5,h8,X,b0,c,r,M_,h1,W3,f3,W9,q,n8,g,x1,K0,A,U$,G_,C5,b4,g7,T8;if(!Y){Y={};}w=Y.yAxis?Y.yAxis:V.yAxis;if(V.hidden || w.noDraw || !w.width){return;}X7.h4();if(!f.Comparison || w.priceFormatter != f.Comparison.priceFormat){d=w.fractional;if(d){if(!w.originalPriceFormatter){w.originalPriceFormatter={func:w.priceFormatter};}if(!d.resolution){d.resolution=w.minimumPrice;}if(!d.formatter){d.formatter=3265 === 13.61?(488.79,!!({})):"'";}if(!w.priceFormatter){w.priceFormatter=function(d_,O9,d8){var k1,v4,m8,h7,e4,A1,T6;if(!d){return;}k1="";if(d8 < 0){v4=-1258221030;X7.U8(7);m8=X7.I0("1990251561",0);h7=2;for(var b6=1;X7.o8(b6.toString(),b6.toString().length,+"66555") !== v4;b6++){k1="";h7+=2;}if(X7.l9(h7.toString(),h7.toString().length,30002) !== m8){k1="-";}d8=Math.abs(d8);}e4=Math.floor(Math.round(d8 / d.resolution) * d.resolution);X7.I3();A1=Math.round((d8 - e4) / d.resolution);T6=Math.floor(A1);X7.U8(8);var j7=X7.I0(371,1819,3,1855,6);X7.Z_(9);var c1=X7.I0(31122,19,2426,16,7);X7.Z_(1);var Z7=X7.I0(2,1682);X7.U8(10);var t_=X7.I0(23,15,3,4);X7.U8(1);var o_=X7.a3(76300,83930);X7.U8(11);var b8=X7.I0(4638,579,3);X7.Z_(12);var y7=X7.I0(439,1,2);return k1 + e4 + d.formatter + (T6 < ("10" ^ 0)?(j7,c1) < (Z7,"568" * t_)?(o_,+"8252") < (b8,y7)?"0x1652" - 0:!0:"0":"") + T6 + (A1 - T6 >= 0.5?"+":"");};}}else {if(w.originalPriceFormatter){w.priceFormatter=w.originalPriceFormatter.func;w.originalPriceFormatter=null;}}}E=this.colorOrStyle(w.textStyle || "stx_yaxis");p9=this.highlightedDraggable;F=+"0";if(p9 && this.yaxisMatches(p9,w)){F=0.15;}else if(w.highlight){F=+"0.1";}if(F){j4=E.constructor == String?E:E.color;w.setBackground(this,{color:j4,opacity:F});}if(w.pretty){return this.drawYAxisPretty(V,Y);}if(this.runPrepend("drawYAxis",arguments)){return;}if(!Y.noDraw && !w.noDraw){u=w.yAxisPlotter;if(!u || !Y.noChange){a8="l";a8+="ef";a8+="t";V9="t";V9+="e";V9+="xt";u=w.yAxisPlotter=new f.Plotter();G=V.chart;f8=V.name == G.name && w.name === V.yAxis.name;if(!w.priceTick){return;}A3=w.shadow;a=Y.range;if(a){X7.U8(13);var E1=X7.a3(0,6,7);A3=a[E1] - a[0];}I=A3 / w.priceTick;K6=8286033;s0=-153274336;c$=2;for(var a6=1;X7.l9(a6.toString(),a6.toString().length,45177) !== K6;a6++){I=Math.round(I);c$+=2;}if(X7.l9(c$.toString(),c$.toString().length,16123) !== s0){I=Math.round(I);}if(w.semiLog){U1=Math.log(this.valueFromPixel(w.flipped?w.top:w.bottom,V)) / Math.LN10;F9=715840346;B5=1763229137;h8=2;for(var q1=1;X7.o8(q1.toString(),q1.toString().length,27543) !== F9;q1++){W2=(w.logHigh - w.logLow) / I;h8+=2;}if(X7.o8(h8.toString(),h8.toString().length,33665) !== B5){W2=w.logHigh % w.logLow * I;}}u.newSeries("grid","stroke",this.canvasStyle("stx_grid"));u.newSeries(V9,"fill",E);u.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));X7.Z_(6);X=X7.I0(1,"0");b0=a?a[1]:w.high;c=a?a[+"0"]:w.low;r=w.displayBorder === null?G.panel.yAxis.displayBorder:w.displayBorder;if(this.axisBorders === !({})){r=![];}if(this.axisBorders === !!"1"){r=!![];}h1=G.dynamicYAxis;W3=h1?w.width:NaN;f3=this.getYAxisCurrentPosition(w,V);if(f3 == "left"){M_=w.left + w.width;}else {M_=w.left;}W9=Math.round(M_) + 0.5;q=r?+"3":0;if(f3 == a8){q=r?-3:0;}if(f8){if(w.shadow < 1){X7.U8(14);var e8=X7.a3(17,7);X=(parseInt(c / w.priceTick,e8) + ("1" ^ 0)) * w.priceTick - c;}else {X=w.priceTick - Math.round(c % w.priceTick * V.chart.roundit) / V.chart.roundit;}}else {X=b0 % w.priceTick;}n8=this.getCanvasFontSize("stx_yaxis");for(var D=+"0";D < I;D++){if(w.semiLog){X7.Z_(15);x1=X7.I0(U1,D,W2);X7.U8(6);g=Math.pow(X7.a3(1,"10"),x1);}else {if(f8){g=c + D * w.priceTick + X;}else {g=b0 - D * w.priceTick - X;}}K0=this.pixelFromTransformedValue(g,V,w);A=Math.round(K0) + 0.5;if(A + n8 / 2 > V.bottom)continue;if(A - n8 / 2 < V.top)continue;if(Math.abs(A - w.bottom) < +"1")continue;if(w.flipped){A=w.top + w.bottom - A;}if(w.displayGridLines){U$="gr";U$+="id";u.moveTo("grid",V.left + +"1",A);u.lineTo(U$,V.right - 1,A);}if(r){X7.Z_(1);u.moveTo("border",X7.a3(0.5,W9),A);X7.Z_(4);u.lineTo("border",X7.a3(q,W9),A);}if(w.priceFormatter){g=w.priceFormatter(this,V,g);}else {g=this.formatYAxisPrice(g,V,null,w);}G_=w.textBackground?this.containerColor:null;C5=+"3";X7.Z_(16);b4=X7.a3(M_,q,C5);if(f3 == "left"){b4=w.left + C5;if(w.justifyRight !== ![]){b4=w.left + w.width + q - C5;}}else {if(w.justifyRight){b4=M_ + w.width;}}u.addText("text",g,b4,A,G_,null,n8);if(h1){W3=Math.max(W3,G.context.measureText(g).width + Math.abs(q) + C5);}}if(r){g7="b";g7+="o";g7+="rde";g7+="r";T8=Math.round(w.bottom) + 0.5;u.moveTo(g7,W9,w.top);u.lineTo("border",W9,T8);u.draw(this.getBackgroundCanvas(G).context,"border");}if(h1 && W3 > w.width){w._dynamicWidth=W3;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!h1 && w._dynamicWidth){this.resetDynamicYAxis({chartName:G.name});throw new Error("reboot draw");}}if(w == V.yAxis){this.plotYAxisGrid(V);}}this.runAppend("drawYAxis",arguments);};f.ChartEngine.prototype.drawYAxisPretty=function(C$,y1){var v_,s4,e5,M8,Q$,o3,p4,w7,I$,B1,O5,e3,Z4,z7,j0,r_,T0,x$,k4,U9,c2,a2,I8,w9,I1,U4,j_,D1,H5,R$,N1,i3,a7,J2,g9,d2,h3,C6,L4,d5,c7,p6,v8,u1,Q7,y9,M$,Q5,r$,Y$,e9,o7,t2,A$,i8,m_,O$,g8,w5,y_,a4,a9,P$,Q0,v7,X2,x0,F7,E4,H_,o0,G9,y8,S0,P_,p8;v_="drawYAxi";v_+="s";if(this.runPrepend(v_,arguments)){return;}if(!y1){y1={};}s4=y1.yAxis?y1.yAxis:C$.yAxis;X7.h4();if(C$.hidden || s4.noDraw || !s4.width){return;}if(!y1.noDraw){e5=s4.yAxisPlotter;if(!e5 || !y1.noChange){M8="s";M8+="troke";Q$="stx_g";Q$+="r";Q$+="id";e5=s4.yAxisPlotter=new f.Plotter();o3=C$.chart;if(!s4.priceTick){return;}if(isNaN(s4.high) || isNaN(s4.low)){return;}p4=s4.shadow;if(y1.range){w7=874045505;X7.Z_(3);I$=-X7.a3(32,"1096258611");X7.U8(3);B1=X7.I0(64,"2");for(var N$=1;X7.o8(N$.toString(),N$.toString().length,91027) !== w7;N$++){X7.U8(17);var q$=X7.a3(2,6,4,17);p4=y1.range[q$] - y1.range[0];B1+=2;}if(X7.l9(B1.toString(),B1.toString().length,+"45022") !== I$){X7.Z_(18);var K9=X7.a3(8,2,105,28);p4=y1.range[K9] % y1.range["5" ^ 0];}}O5=s4.height / s4.idealTickSizePixels;O5=Math.round(O5);e3=s4.textStyle || "stx_yaxis";e5.newSeries("grid","stroke",this.canvasStyle(Q$));e5.newSeries("text","fill",this.colorOrStyle(e3));e5.newSeries("border",M8,this.canvasStyle("stx_grid_border"));Z4=y1.range;z7=Z4?Z4[1]:s4.high;j0=Z4?Z4[0]:s4.low;r_=s4.displayBorder === null?o3.panel.yAxis.displayBorder:s4.displayBorder;if(this.axisBorders === !1){r_=!!"";}if(this.axisBorders === !!"1"){r_=!![];}x$=o3.dynamicYAxis;k4=x$?s4.width:NaN;U9=this.getYAxisCurrentPosition(s4,C$);if(U9 == "left"){c2=-830372268;a2=1234585964;I8=2;for(var Z3="1" << 0;X7.l9(Z3.toString(),Z3.toString().length,29893) !== c2;Z3++){T0=s4.left + s4.width;I8+=2;}if(X7.o8(I8.toString(),I8.toString().length,77358) !== a2){T0=s4.left % s4.width;}}else {w9=1365985761;I1=1485385831;U4=2;for(var e7=1;X7.l9(e7.toString(),e7.toString().length,85117) !== w9;e7++){T0=s4.left;U4+=2;}if(X7.o8(U4.toString(),U4.toString().length,22424) !== I1){T0=s4.left;}T0=s4.left;}j_=-763746138;D1=-1206329221;H5=2;for(var S5=1;X7.o8(S5.toString(),S5.toString().length,19557) !== j_;S5++){R$="stx_";R$+="yaxi";R$+="s";N1=Math.round(T0) * +"704";i3=r_?6:7;if(U9 != "stx_yaxis"){i3=r_?~4:6;}a7=this.getCanvasFontSize(R$);J2=s4.increments;g9=J2.length;d2=+"1";h3=2;C6=+"9";L4=3;H5+=2;}if(X7.l9(H5.toString(),H5.toString().length,84260) !== D1){N1=Math.round(T0) + +"0.5";i3=r_?3:0;if(U9 == "left"){i3=r_?-3:0;}a7=this.getCanvasFontSize("stx_yaxis");J2=s4.increments;g9=J2.length;d2=0;h3=1;X7.U8(3);C6=X7.a3(32,"0");L4=0;}d5=0;c7=Number.MAX_VALUE;for(var Y3=0;Y3 < 100;Y3++){C6=J2[d2] * Math.pow(10,d5);X7.U8(5);h3=Math.floor(X7.I0(C6,p4));X7.Z_(1);p6=Math.abs(X7.a3(h3,O5));if(p6 > c7){break;}else {c7=p6;}if(h3 == O5){L4=C6;break;}else if(h3 > O5){d2++;if(d2 >= g9){d2=+"0";d5++;}}else {d2--;if(d2 < 0){X7.Z_(1);d2=X7.I0(1,g9);d5--;}}L4=C6;}v8=Math.ceil(j0 / L4) * L4;u1=s4.bottom - this.pixelFromTransformedValue(v8,C$,s4);X7.Z_(6);Q7=X7.I0(1,"0");if(u1 > s4.idealTickSizePixels && s4.semiLog && s4.prettySemiLog){y9=Math.ceil(j0);M$=0;while(v8 - y9 >= 10000 && M$ <= 15){v8/=10;y9/=10;M$++;}v8=Math.ceil(v8);y9=Math.ceil(y9);for(y9;y9 < v8 && v8 % y9 !== +"0";++y9){;}v8*=Math.pow(10,M$);y9*=Math.pow(10,M$);if(y9 < v8){if(v8 === L4){X7.U8(7);Q5=X7.a3("1553116539",51);r$=1543931819;Y$=2;for(var s7=1;X7.o8(s7.toString(),s7.toString().length,33612) !== Q5;s7++){L4=y9;Q7=y9;X7.U8(19);Y$+=X7.a3(0,"2");}if(X7.o8(Y$.toString(),Y$.toString().length,"47399" ^ 0) !== r$){L4=y9;Q7=y9;}L4=y9;Q7=y9;}v8=y9;}}if(s4.height > s4.zoom){e9="st";e9+="x_";e9+="yaxis";o7=0;t2=Number.MAX_VALUE;o3.context.save();this.canvasFont(e9,o3.context);for(var q7=0;q7 < 100;q7++){A$="l";A$+="e";A$+="ft";X7.U8(15);i8=X7.a3(v8,o7,L4);if(i8 > z7)break;L4+=Q7;o7++;m_=this.pixelFromTransformedValue(i8,C$,s4);if(t2 - m_ < a7 + 1 && Q7 > 0){X7.Z_(19);q7=o7=X7.a3(0,"0");t2=Number.MAX_VALUE;L4=Q7;Q7*=2;e5.reset();continue;}t2=m_;O$=Math.round(m_) + 0.5;if(O$ + a7 / 2 > C$.bottom)continue;if(O$ - a7 / 2 < C$.top)continue;if(Math.abs(O$ - s4.bottom) < 1)continue;if(s4.displayGridLines){g8="gr";g8+="i";g8+="d";e5.moveTo(g8,C$.left + 1,O$);e5.lineTo("grid",C$.right - 1,O$);}if(r_){w5="b";w5+="o";w5+="rde";w5+="r";X7.U8(1);e5.moveTo(w5,X7.a3(0.5,N1),O$);X7.Z_(4);e5.lineTo("border",X7.I0(i3,N1),O$);}if(s4.priceFormatter){i8=s4.priceFormatter(this,C$,i8);}else {i8=this.formatYAxisPrice(i8,C$,null,s4);}y_=s4.textBackground?this.containerColor:null;a4=3;X7.Z_(16);a9=X7.I0(T0,i3,a4);if(U9 == A$){X7.U8(14);var q8=X7.I0(19,16);a9=s4.left + q8;if(s4.justifyRight !== ![]){a9=s4.left + s4.width + i3 - a4;}}else {if(s4.justifyRight){a9=T0 + s4.width;}}e5.addText("text",i8,a9,O$,y_,null,a7);if(x$){X7.Z_(4);P$=X7.a3((141.13,"2959" >> 32) < (1669,4739)?"\xA0":6.30e+3,i8);k4=Math.max(k4,o3.context.measureText(P$).width + Math.abs(i3) + a4);}}o3.context.restore();if(q7 >= 100){console.log("drawYAxisPretty: assertion error. zz reached 100");}}if(r_){Q0="b";Q0+="or";Q0+="der";v7="bor";v7+="der";X2=Math.round(s4.bottom) + 0.5;e5.moveTo(v7,N1,s4.top);e5.lineTo("border",N1,X2);e5.draw(this.getBackgroundCanvas(o3).context,Q0);}if(x$ && k4 > s4.width){s4._dynamicWidth=k4;x0=1408368103;F7=400447574;E4=2;for(var N2=1;X7.o8(N2.toString(),N2.toString().length,45451) !== x0;N2++){this.calculateYAxisPositions();throw new Error("reboot draw");E4+=2;}if(X7.l9(E4.toString(),E4.toString().length,42220) !== F7){this.calculateYAxisPositions();throw new Error("");}}else if(!x$ && s4._dynamicWidth){H_=-+"312187133";o0=-1896867481;G9=2;for(var l6=1;X7.o8(l6.toString(),l6.toString().length,2031) !== H_;l6++){y8="r";y8+="ebo";y8+="ot dra";y8+="w";this.resetDynamicYAxis({chartName:o3.name});throw new Error(y8);G9+=2;}if(X7.l9(G9.toString(),G9.toString().length,25596) !== o0){this.resetDynamicYAxis({chartName:o3.name});throw new Error("");}}}if(s4 == C$.yAxis){this.plotYAxisGrid(C$);}}S0=1934054716;P_=-931361826;p8=2;for(var X8=1;X7.l9(X8.toString(),X8.toString().length,9651) !== S0;X8++){this.runAppend("",arguments);p8+=2;}if(X7.o8(p8.toString(),p8.toString().length,+"88068") !== P_){this.runAppend("",arguments);}this.runAppend("drawYAxis",arguments);};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ - k7fTW[356525]=(function(){var F1=2;for(;F1 !== 9;){switch(F1){case 1:return globalThis;break;case 5:var Y7;try{var C$=2;for(;C$ !== 6;){switch(C$){case 9:delete Y7['\u0061\x74\x41\x59\x59'];var C0=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete C0['\u0045\x64\x4c\u0064\x62'];C$=6;break;case 3:throw "";C$=9;break;case 4:C$=typeof atAYY === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:Y7['\u0061\x74\u0041\u0059\x59']=Y7;C$=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x45\u0064\u004c\u0064\x62',{'\x67\x65\x74':function(){var j9=2;for(;j9 !== 1;){switch(j9){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Y7=EdLdb;C$=5;break;}}}catch(B_){Y7=window;}return Y7;break;case 2:F1=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();L1(k7fTW[356525]);function k7fTW(){}k7fTW.Q5=function(){return typeof k7fTW[50848].w4xZ2A7 === 'function'?k7fTW[50848].w4xZ2A7.apply(k7fTW[50848],arguments):k7fTW[50848].w4xZ2A7;};k7fTW[106140]="VJw";k7fTW.n2=function(){return typeof k7fTW[50848].w4xZ2A7 === 'function'?k7fTW[50848].w4xZ2A7.apply(k7fTW[50848],arguments):k7fTW[50848].w4xZ2A7;};k7fTW[247674]="qyL";k7fTW.t1=function(){return typeof k7fTW[150036].V3nM4Cy === 'function'?k7fTW[150036].V3nM4Cy.apply(k7fTW[150036],arguments):k7fTW[150036].V3nM4Cy;};function L1(Q6){function c5(v2,y3,P_,E1,y1){var m$=2;for(;m$ !== 6;){switch(m$){case 3:o1[8]="";o1[8]="define";o1[9]=false;try{var Y8=2;for(;Y8 !== 13;){switch(Y8){case 9:o1[7][o1[0][4]]=o1[7][o1[0][2]];o1[6].set=function(l9){var k4=2;for(;k4 !== 5;){switch(k4){case 2:var v7=[arguments];o1[7][o1[0][2]]=v7[0][0];k4=5;break;}}};o1[6].get=function(){var r5=2;for(;r5 !== 13;){switch(r5){case 8:X$[8]=X$[1];X$[8]+=X$[6];X$[8]+=X$[7];return typeof o1[7][o1[0][2]] == X$[8]?undefined:o1[7][o1[0][2]];break;case 2:var X$=[arguments];X$[7]="";X$[7]="ined";X$[6]="";X$[6]="ndef";X$[1]="u";r5=8;break;}}};o1[6].enumerable=o1[9];try{var C9=2;for(;C9 !== 3;){switch(C9){case 4:o1[0][0].Object[o1[4]](o1[7],o1[0][4],o1[6]);C9=3;break;case 2:o1[4]=o1[8];o1[4]+=o1[5];o1[4]+=o1[1];C9=4;break;}}}catch(e4){}Y8=13;break;case 3:return;break;case 4:Y8=o1[7].hasOwnProperty(o1[0][4]) && o1[7][o1[0][4]] === o1[7][o1[0][2]]?3:9;break;case 2:o1[6]={};o1[3]=(1,o1[0][1])(o1[0][0]);o1[7]=[o1[3],o1[3].prototype][o1[0][3]];Y8=4;break;}}}catch(N2){}m$=6;break;case 2:var o1=[arguments];o1[8]="";o1[1]="operty";o1[5]="Pr";m$=3;break;}}}function f8(V_){var A6=2;for(;A6 !== 5;){switch(A6){case 2:var m0=[arguments];return m0[0][0].String;break;}}}var c_=2;for(;c_ !== 102;){switch(c_){case 81:o7(D0,"test",b5[89],b5[12]);c_=80;break;case 33:b5[71]="resi";b5[76]="";b5[78]="w";b5[42]="C9s";b5[76]="Q5S";b5[24]="imize";b5[74]="__";c_=43;break;case 26:b5[75]="J51";b5[19]="";b5[29]="9";b5[19]="l";c_=22;break;case 83:var o7=function(k0,v$,G0,N3){var D4=2;for(;D4 !== 5;){switch(D4){case 2:var n6=[arguments];c5(b5[0][0],n6[0][0],n6[0][1],n6[0][2],n6[0][3]);D4=5;break;}}};c_=82;break;case 37:b5[41]="3m";b5[49]="";b5[30]="3q0";b5[49]="W";b5[44]="th";b5[25]="";c_=50;break;case 61:b5[92]+=b5[30];b5[92]+=b5[41];b5[77]=b5[64];b5[77]+=b5[83];c_=57;break;case 82:o7(f8,"charCodeAt",b5[89],b5[10]);c_=81;break;case 78:o7(p6,b5[38],b5[16],b5[94]);c_=104;break;case 2:var b5=[arguments];b5[3]="";b5[3]="K9";b5[6]="";c_=3;break;case 50:b5[25]="b";b5[33]="";b5[33]="F3A";b5[89]=8;c_=46;break;case 3:b5[6]="";b5[6]="6o";b5[8]="";b5[8]="";b5[8]="Z";c_=14;break;case 72:b5[67]+=b5[19];b5[67]+=b5[17];b5[95]=b5[75];b5[95]+=b5[7];c_=68;break;case 88:b5[12]+=b5[4];b5[12]+=b5[1];b5[10]=b5[8];b5[10]+=b5[6];c_=84;break;case 14:b5[4]="5";b5[5]="";b5[5]="";b5[5]="Q_b";c_=10;break;case 10:b5[9]="";b5[9]="ac";b5[2]="";b5[2]="__abstr";c_=17;break;case 103:o7(Q_,"apply",b5[89],b5[90]);c_=102;break;case 17:b5[1]="x";b5[7]="";b5[7]="X";b5[75]="";c_=26;break;case 22:b5[39]="";b5[39]="dual";b5[71]="";b5[17]="3";c_=33;break;case 84:b5[10]+=b5[3];c_=83;break;case 79:o7(d0,"push",b5[89],b5[67]);c_=78;break;case 104:o7(p6,b5[77],b5[16],b5[92]);c_=103;break;case 76:b5[38]=b5[74];b5[38]+=b5[71];b5[38]+=b5[39];b5[67]=b5[42];c_=72;break;case 43:b5[83]="t";b5[63]="mE";b5[64]="";b5[64]="__op";b5[41]="";b5[41]="";c_=37;break;case 68:b5[95]+=b5[29];b5[47]=b5[2];b5[47]+=b5[9];b5[47]+=b5[83];b5[12]=b5[5];c_=88;break;case 46:b5[89]=1;b5[16]=0;b5[90]=b5[33];b5[90]+=b5[25];b5[90]+=b5[44];b5[92]=b5[49];c_=61;break;case 80:o7(p6,b5[47],b5[16],b5[95]);c_=79;break;case 57:b5[77]+=b5[24];b5[94]=b5[76];b5[94]+=b5[63];b5[94]+=b5[78];c_=76;break;}}function Q_(w4){var G9=2;for(;G9 !== 5;){switch(G9){case 2:var p0=[arguments];return p0[0][0].Function;break;}}}function p6(u9){var a5=2;for(;a5 !== 5;){switch(a5){case 2:var v4=[arguments];return v4[0][0];break;}}}function D0(k1){var W9=2;for(;W9 !== 5;){switch(W9){case 2:var S8=[arguments];return S8[0][0].RegExp;break;}}}function d0(L4){var A$=2;for(;A$ !== 5;){switch(A$){case 2:var U4=[arguments];return U4[0][0].Array;break;}}}}k7fTW[220353]=true;k7fTW.C5=function(){return typeof k7fTW[459327].q52sdNp === 'function'?k7fTW[459327].q52sdNp.apply(k7fTW[459327],arguments):k7fTW[459327].q52sdNp;};k7fTW[356525].a400=k7fTW;k7fTW.m6=function(){return typeof k7fTW[150036].V3nM4Cy === 'function'?k7fTW[150036].V3nM4Cy.apply(k7fTW[150036],arguments):k7fTW[150036].V3nM4Cy;};k7fTW[50848]=(function(){var G6=function(P6,B7){var H7=B7 & 0xffff;var k3=B7 - H7;return (k3 * P6 | 0) + (H7 * P6 | 0) | 0;},g9=function(A9,c3,X1){var u8=0xcc9e2d51,J7=0x1b873593;var M_=X1;var L3=c3 & ~0x3;for(var G2=0;G2 < L3;G2+=4){var K9=A9.Z6oK9(G2) & 0xff | (A9.Z6oK9(G2 + 1) & 0xff) << 8 | (A9.Z6oK9(G2 + 2) & 0xff) << 16 | (A9.Z6oK9(G2 + 3) & 0xff) << 24;K9=G6(K9,u8);K9=(K9 & 0x1ffff) << 15 | K9 >>> 17;K9=G6(K9,J7);M_^=K9;M_=(M_ & 0x7ffff) << 13 | M_ >>> 19;M_=M_ * 5 + 0xe6546b64 | 0;}K9=0;switch(c3 % 4){case 3:K9=(A9.Z6oK9(L3 + 2) & 0xff) << 16;case 2:K9|=(A9.Z6oK9(L3 + 1) & 0xff) << 8;case 1:K9|=A9.Z6oK9(L3) & 0xff;K9=G6(K9,u8);K9=(K9 & 0x1ffff) << 15 | K9 >>> 17;K9=G6(K9,J7);M_^=K9;}M_^=c3;M_^=M_ >>> 16;M_=G6(M_,0x85ebca6b);M_^=M_ >>> 13;M_=G6(M_,0xc2b2ae35);M_^=M_ >>> 16;return M_;};return {w4xZ2A7:g9};})();k7fTW.Z3=function(){return typeof k7fTW[459327].Z7m4YCh === 'function'?k7fTW[459327].Z7m4YCh.apply(k7fTW[459327],arguments):k7fTW[459327].Z7m4YCh;};k7fTW.A_=function(){return typeof k7fTW[459327].q52sdNp === 'function'?k7fTW[459327].q52sdNp.apply(k7fTW[459327],arguments):k7fTW[459327].q52sdNp;};k7fTW[345871]="yxC";k7fTW[158192]=k7fTW[356525];k7fTW[459327]=(function(T1){return {q52sdNp:function(){var d9,y9=arguments;switch(T1){case 19:d9=y9[2] / y9[1] / y9[3] + y9[0];break;case 10:d9=y9[1] ^ y9[0];break;case 5:d9=y9[0] * y9[1];break;case 18:d9=y9[1] * y9[0] + y9[2] - y9[3];break;case 16:d9=(y9[4] + y9[1]) * y9[0] / y9[2] - y9[3];break;case 6:d9=(y9[1] / y9[0] + y9[4]) * y9[2] - y9[3];break;case 14:d9=y9[1] / y9[0];break;case 23:d9=(y9[1] + y9[2]) / y9[0] + y9[4] - y9[3];break;case 22:d9=y9[2] * y9[1] - y9[0];break;case 0:d9=y9[1] + y9[0];break;case 3:d9=y9[0] - y9[1];break;case 20:d9=(y9[2] * y9[0] + y9[3]) * y9[1] - y9[4];break;case 4:d9=y9[0] == y9[1];break;case 11:d9=y9[2] * y9[1] * y9[0] * y9[3];break;case 13:d9=y9[0] / y9[2] * y9[1];break;case 2:d9=y9[1] + y9[0] - y9[2];break;case 12:d9=y9[2] * +y9[4] * (y9[1] << y9[0]) * y9[5] * y9[3];break;case 17:d9=y9[3] / y9[1] * y9[2] - y9[0];break;case 8:d9=(y9[2] + y9[0]) / y9[1] - y9[3];break;case 24:d9=y9[2] - y9[1] - y9[0];break;case 15:d9=y9[1] - (y9[2] << y9[0]);break;case 9:d9=y9[1] >> y9[0];break;case 1:d9=-y9[2] / y9[3] * y9[1] + y9[0];break;case 7:d9=y9[0] + y9[1] + y9[2];break;case 21:d9=y9[2] / y9[4] * y9[1] - y9[3] + y9[0];break;}return d9;},Z7m4YCh:function(L8){T1=L8;}};})();k7fTW[150036]=(function(){var S2=2;for(;S2 !== 9;){switch(S2){case 2:var J2=[arguments];J2[7]=undefined;J2[9]={};J2[9].V3nM4Cy=function(){var O4=2;for(;O4 !== 90;){switch(O4){case 26:V7[54].W_=['R_'];V7[54].g2=function(){var T9=typeof J51X9 === 'function';return T9;};V7[13]=V7[54];V7[15]={};O4=22;break;case 4:V7[6]=[];V7[9]={};O4=9;break;case 70:V7[68]++;O4=57;break;case 2:var V7=[arguments];O4=1;break;case 32:V7[26].g2=function(){var B$=typeof Q5SmEw === 'function';return B$;};V7[45]=V7[26];V7[14]={};O4=29;break;case 68:O4=69?68:67;break;case 22:V7[15].W_=['R_'];V7[15].g2=function(){var s6=false;var M1=[];try{for(var A0 in console){M1.C9sl3(A0);}s6=M1.length === 0;}catch(r0){}var A5=s6;return A5;};V7[87]=V7[15];V7[26]={};V7[26].W_=['R_'];O4=32;break;case 29:V7[14].W_=['Q8'];V7[14].g2=function(){var W5=function(){return ('x').startsWith('x');};var E8=(/\x74\u0072\x75\u0065/).Q_b5x(W5 + []);return E8;};V7[20]=V7[14];O4=43;break;case 62:V7[23]='W_';V7[88]='T0';V7[91]='g2';V7[76]='j0';O4=58;break;case 56:V7[75]=V7[6][V7[68]];try{V7[61]=V7[75][V7[91]]()?V7[65]:V7[44];}catch(u0){V7[61]=V7[44];}O4=77;break;case 52:V7[6].C9sl3(V7[7]);V7[6].C9sl3(V7[79]);V7[6].C9sl3(V7[5]);V7[6].C9sl3(V7[87]);V7[6].C9sl3(V7[55]);V7[6].C9sl3(V7[20]);V7[6].C9sl3(V7[45]);O4=45;break;case 16:V7[4].g2=function(){var V3=function(){return String.fromCharCode(0x61);};var i_=!(/\u0030\u0078\u0036\x31/).Q_b5x(V3 + []);return i_;};V7[5]=V7[4];V7[54]={};O4=26;break;case 54:V7[6].C9sl3(V7[13]);V7[6].C9sl3(V7[2]);O4=52;break;case 45:V7[6].C9sl3(V7[8]);V7[78]=[];V7[65]='B8';V7[44]='m1';O4=62;break;case 75:V7[90]={};V7[90][V7[76]]=V7[75][V7[23]][V7[21]];V7[90][V7[88]]=V7[61];V7[78].C9sl3(V7[90]);O4=71;break;case 58:V7[68]=0;O4=57;break;case 69:O4=(function(e6){var w3=2;for(;w3 !== 22;){switch(w3){case 15:N9[4]=N9[5][N9[1]];N9[8]=N9[3][N9[4]].h / N9[3][N9[4]].t;w3=26;break;case 6:N9[6]=N9[0][0][N9[1]];w3=14;break;case 18:N9[7]=false;w3=17;break;case 13:N9[3][N9[6][V7[76]]]=(function(){var y4=2;for(;y4 !== 9;){switch(y4){case 2:var e2=[arguments];e2[6]={};e2[6].h=0;e2[6].t=0;return e2[6];break;}}}).F3Abth(this,arguments);w3=12;break;case 17:N9[1]=0;w3=16;break;case 2:var N9=[arguments];w3=1;break;case 26:w3=N9[8] >= 0.5?25:24;break;case 1:w3=N9[0][0].length === 0?5:4;break;case 16:w3=N9[1] < N9[5].length?15:23;break;case 7:w3=N9[1] < N9[0][0].length?6:18;break;case 4:N9[3]={};N9[5]=[];N9[1]=0;w3=8;break;case 19:N9[1]++;w3=7;break;case 23:return N9[7];break;case 20:N9[3][N9[6][V7[76]]].h+=true;w3=19;break;case 12:N9[5].C9sl3(N9[6][V7[76]]);w3=11;break;case 14:w3=typeof N9[3][N9[6][V7[76]]] === 'undefined'?13:11;break;case 11:N9[3][N9[6][V7[76]]].t+=true;w3=10;break;case 5:return;break;case 8:N9[1]=0;w3=7;break;case 24:N9[1]++;w3=16;break;case 25:N9[7]=true;w3=24;break;case 10:w3=N9[6][V7[88]] === V7[65]?20:19;break;}}})(V7[78])?68:67;break;case 9:V7[9].W_=['Q8'];V7[9].g2=function(){var m7=function(){return ('c').indexOf('c');};var I5=!(/['"]/).Q_b5x(m7 + []);return I5;};V7[2]=V7[9];V7[3]={};V7[3].W_=['Q8'];V7[3].g2=function(){var r$=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var l0=(/\u0074\u0072\x75\x65/).Q_b5x(r$ + []);return l0;};V7[7]=V7[3];O4=11;break;case 71:V7[21]++;O4=76;break;case 57:O4=V7[68] < V7[6].length?56:69;break;case 76:O4=V7[21] < V7[75][V7[23]].length?75:70;break;case 19:V7[8]=V7[1];V7[4]={};V7[4].W_=['Q8'];O4=16;break;case 11:V7[1]={};V7[1].W_=['Q8'];V7[1].g2=function(){var c9=function(){return encodeURIComponent('%');};var k2=(/\u0032\u0035/).Q_b5x(c9 + []);return k2;};O4=19;break;case 39:V7[60]={};V7[60].W_=['R_'];V7[60].g2=function(){var X8=typeof W3q03m === 'function';return X8;};V7[55]=V7[60];O4=54;break;case 67:J2[7]=78;return 50;break;case 5:return 85;break;case 1:O4=J2[7]?5:4;break;case 77:V7[21]=0;O4=76;break;case 43:V7[25]={};V7[25].W_=['Q8'];V7[25].g2=function(){var S6=function(){return ('a|a').split('|');};var Z7=!(/\x7c/).Q_b5x(S6 + []);return Z7;};V7[79]=V7[25];O4=39;break;}}};return J2[9];break;}}})();k7fTW.T3=function(){return typeof k7fTW[459327].Z7m4YCh === 'function'?k7fTW[459327].Z7m4YCh.apply(k7fTW[459327],arguments):k7fTW[459327].Z7m4YCh;};var __js_core_engine_obfuscate_xaxis_;k7fTW.m6();__js_core_engine_obfuscate_xaxis_=Z=>{var j5=k7fTW;var f0,v0,D5,v;f0=-22599373;v0=+"1096658646";D5=2;j5.t1();for(var l8=1;j5.n2(l8.toString(),l8.toString().length,47455) !== f0;l8++){v=Z.CIQ;D5+=+"2";}if(j5.n2(D5.toString(),D5.toString().length,46373) !== v0){v=Z.CIQ;}v.ChartEngine.prototype.drawXAxis=function(O,X){var R8,O2,D1,M,W,a,c,S,T,I,C,K,A,o,J,X7,z,H,h,l,d,Q,K4,N,L;R8=1222717727;O2=1565397276;D1=2;for(var u4=1;j5.Q5(u4.toString(),u4.toString().length,94367) !== R8;u4++){M=[O,X];if(this.runPrepend("",M)){return;}D1+=2;}if(j5.n2(D1.toString(),D1.toString().length,3204) !== O2){M=[O,X];if(this.runPrepend("drawXAxis",M)){return;}}if(!X){return;}if(O.xAxis.noDraw){return;}W=this.getBackgroundCanvas().context;this.canvasFont("stx_xaxis",W);a=this.getCanvasFontSize("stx_xaxis");W.textAlign="center";W.textBaseline="middle";S=W.measureText(" ").width;for(var G="0" << 64;G < X.length;G++){c=X[G];T=W.measureText(c.text).width;j5.T3(0);I=Math.max(j5.C5(S,T),O.xAxis.minimumLabelWidth);c.hz=Math.floor(c.hz + this.micropixels) + 0.5;j5.Z3(1);var r3=j5.C5(13,11,13,13);c.left=c.hz - I / r3;j5.Z3(2);var E4=j5.C5(13,0,11);c.right=c.hz + I / E4;j5.T3(0);var p7=j5.A_(2,0);c.unpaddedRight=c.hz + T / p7;}C=this.xAxisAsFooter === !!1?this.chart.canvasHeight:O.panel.bottom;j5.m6();j5.T3(3);K=this.whichPanel(j5.A_(C,1));if(!K){return;}this.adjustYAxisHeightOffset(K,K.yAxis);A=O.xAxis.displayBorder || O.xAxis.displayBorder === null;if(this.axisBorders === !!({})){A=!"";}if(this.axisBorders === !!""){A=!1;}o=C - this.xaxisHeight + a;if(A){o+=3;}J=!!({});for(var u in this.panels){X7="stx_gri";X7+="d_";X7+="dark";z=this.panels[u];if(z.hidden || z.shareChartXAxis === !({}))continue;j5.T3(4);H=j5.A_(z,K);h=z.yAxis;if(!h)continue;l=-Number.MAX_VALUE;d=Number.MAX_VALUE;for(var n=0;n < X.length;n++){if(X[n].grid == "boundary"){d=X[n].left;break;}}W.save();W.beginPath();W.rect(z.left,z.top + (J?"0" | 0:1),z.width,z.height - 1);W.clip();J=![];Q=new v.Plotter();Q.newSeries("line","stroke",this.canvasStyle("stx_grid"));Q.newSeries("boundary","stroke",this.canvasStyle(X7));Q.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));for(var q="0" * 1;q < X.length;q++){c=X[q];if(q == n){for(n++;n < X.length;n++){if(X[n].grid == "boundary"){d=X[n].left;break;}}if(n >= X.length){n=-1;d=Number.MAX_VALUE;}}else {if(c.right > d)continue;}if(c.left < l)continue;if(c.left < 0){if(d < c.right)continue;if(n >= X.length){if(X[q + 1] && X[q + 1].left < c.right)continue;}}l=c.right;if(Math.floor(c.left) <= z.right){if(Math.floor(c.hz) > z.left){if(O.xAxis.displayGridLines){Q.moveTo(c.grid,c.hz,h.top);Q.lineTo(c.grid,c.hz,h.bottom);}if(H && A){Q.moveTo("border",c.hz,h.bottom + 0.5);Q.lineTo("border",c.hz,h.bottom + ("6" << 0));}}if(H && c.right > z.left){this.canvasColor(c.grid == "boundary"?"stx_xaxis_dark":"stx_xaxis",W);W.fillText(c.text,c.hz,o);}}}if(A){K4="bo";K4+="rder";N=Math.round(h.bottom) + 0.5;L=Math.round(z.right) + 0.5;Q.moveTo(K4,z.left,N);Q.lineTo("border",L,N);}Q.draw(W);W.restore();}W.textAlign="left";this.runAppend("drawXAxis",M);};v.ChartEngine.prototype.createTickXAxisWithDates=function(Y){var Q9,V$,g0,R,l1,E,q1,F7,Q7,e,x7,J3,N0,V,b,P,r,H8,d8,B9,n$,v5,k,i0,S4,u7,J$,g,X0,Y5,D8,w6,H3,P4,T5,t,s,g7,I3,W0,i9,e1,C2,U,F,z$,k5,Z_,w8,Y0,U7,y,K5,S3,f6,z0,c7,D,J9,O6,L$,f_,t6,q8,m,G_,c0,u5,M8,r7,x1,p3,f,B;Q9="o";Q9+="hlc";V$="mi";V$+="l";V$+="lisecond";g0="min";g0+="ute";if(!Y){Y=this.chart;}Y.xaxis=[];l1=Y.context;E=[v.MILLISECOND,v.SECOND,v.MINUTE,v.HOUR,v.DAY,v.MONTH,v.YEAR];if(!this.timeIntervalMap){q1="20";q1+="0";q1+="0";F7="M";F7+="a";F7+="r";Q7="1";Q7+="0";Q7+=":00";e=l1.measureText.bind(l1);R={};R[v.MILLISECOND]={arr:["1" >> 0,2,5,10,20,50,100,250,+"500"],minTimeUnit:0,maxTimeUnit:1000,measurement:e("10:00:00.000")};R[v.SECOND]={arr:[1,2,3,+"4",5,6,"10" | 10,12,"15" << 0,20,30],minTimeUnit:0,maxTimeUnit:60,measurement:e("10:00:00")};R[v.MINUTE]={arr:[1,2,3,"4" << 32,5,6,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:60,measurement:e(Q7)};R[v.HOUR]={arr:[1,2,3,4,"6" ^ 0,12],minTimeUnit:0,maxTimeUnit:24,measurement:e("10:00")};R[v.DAY]={arr:[1,2,"7" >> 32,14],minTimeUnit:1,maxTimeUnit:32,measurement:e("30")};R[v.MONTH]={arr:[1,2,"3" - 0,6],minTimeUnit:1,maxTimeUnit:13,measurement:e(F7)};R[v.YEAR]={arr:[+"1",2,3,"5" << 0],minTimeUnit:1,maxTimeUnit:20000000,measurement:e("2000")};R[v.DECADE]={arr:[10],minTimeUnit:+"0",maxTimeUnit:2000000,measurement:e(q1)};this.timeIntervalMap=R;}R=this.timeIntervalMap;j5.T3(5);x7=[j5.A_("31",1),28,31,30,31,30,31,31,+"30",31,30,+"31"];J3=this.layout.periodicity;N0=this.layout.interval;V=Y.maxTicks;b=Y.dataSegment;P=Y.xAxis;r=b.length;H8=P.idealTickSizePixels || P.autoComputedTickSizePixels;d8=this.chart.width / H8;for(var q3=0;q3 < r;q3++){if(b[q3])break;}if(q3 == r){return [];}B9=-1236445610;n$=+"973962762";v5=2;for(var I9=1;j5.n2(I9.toString(),I9.toString().length,25543) !== B9;I9++){k=1;v5+=2;}function i$(P1){var c2,L5,x_,r9,s1,T6,m2,D9,I$,T8,N8,a1,d6,W2,U9,g8,h2;c2=-+"745011185";j5.T3(3);L5=j5.A_("1804041451",0);j5.m6();x_=2;for(var o8=1;j5.Q5(o8.toString(),o8.toString().length,93235) !== c2;o8++){x_+=2;}if(j5.Q5(x_.toString(),x_.toString().length,27879) !== L5){}if(U == v.MILLISECOND){r9=P1.getMilliseconds();s1=P1.getSeconds();}else if(U == v.SECOND){r9=P1.getSeconds();T6=301663255;m2=-1085878085;D9=2;for(var r1=1;j5.n2(r1.toString(),r1.toString().length,47876) !== T6;r1++){s1=P1.getMinutes();D9+=2;}if(j5.Q5(D9.toString(),D9.toString().length,34375) !== m2){s1=P1.getMinutes();}}else if(U == v.MINUTE){r9=P1.getMinutes();s1=P1.getHours();}else if(U == v.HOUR){I$=-1135958994;T8=-650308518;j5.Z3(3);N8=j5.A_("2",0);for(var B0=1;j5.Q5(B0.toString(),B0.toString().length,52260) !== I$;B0++){j5.Z3(6);var o0=j5.A_(8,600,2,130,20);r9=P1.getHours() + P1.getMinutes() / o0;N8+=2;}if(j5.Q5(N8.toString(),N8.toString().length,17821) !== T8){j5.Z3(7);var w0=j5.C5(2,2,18);r9=P1.getHours() * (P1.getMinutes() * w0);}s1=P1.getDate();}else if(U == v.DAY){r9=P1.getDate();a1=67601642;d6=551068863;W2=2;for(var A1=1;j5.n2(A1.toString(),A1.toString().length,"44858" >> 64) !== a1;A1++){s1=P1.getMonth() * +"9";W2+=2;}if(j5.Q5(W2.toString(),W2.toString().length,4351) !== d6){j5.Z3(0);var n5=j5.C5(1,0);s1=P1.getMonth() + n5;}}else if(U == v.MONTH){j5.T3(8);var y8=j5.C5(11,14,3,0);r9=P1.getMonth() + y8;s1=P1.getFullYear();}else if(U == v.YEAR){U9=-+"1028678400";g8=-1879220789;h2=2;for(var p$=1;j5.n2(p$.toString(),p$.toString().length,16371) !== U9;p$++){r9=P1.getFullYear();h2+=2;}if(j5.n2(h2.toString(),h2.toString().length,+"66057") !== g8){r9=P1.getFullYear();}j5.Z3(3);var o5=j5.A_(20000,19000);s1=P1.getFullYear() + o5;}else {r9=P1.getFullYear();s1=0;}return [r9,s1];}if(j5.n2(v5.toString(),v5.toString().length,26072) !== n$){k=+"0";}i0=this.layout.timeUnit || g0;if(isNaN(N0)){i0=N0;S4=2102982478;u7=1690245146;J$=2;for(var N4=1;j5.Q5(N4.toString(),N4.toString().length,2444) !== S4;N4++){N0=1;J$+=+"2";}if(j5.Q5(J$.toString(),J$.toString().length,41728) !== u7){j5.T3(9);N0=j5.C5(0,"0");}}g=0;switch(i0){case V$:g=+"1";break;case "second":g=1000;E.splice(0,1);break;case "minute":g=+"60000";E.splice(0,2);break;case "day":j5.T3(10);g=j5.A_(0,"86400000");E.splice(0,4);break;case "week":j5.T3(5);g=j5.C5(86400000,7);E.splice(0,4);break;case "month":j5.Z3(5);g=j5.A_(86400000,30);E.splice(0,5);break;}X0=this.layout.aggregationType;if(g && (!X0 || X0 == Q9 || X0 == "heikinashi")){j5.Z3(11);k=j5.A_(g,J3,N0,r);;}else {k=b[r - 1].DT.getTime() - b[q3].DT.getTime();;}if(k === 0){if(Y.market){Y5=Y.market.newIterator({begin:new Date(),interval:"day",periodicity:1});Y5.next();D8=-181621929;w6=335543541;H3=2;for(var j7=1;j5.n2(j7.toString(),j7.toString().length,84445) !== D8;j7++){P4=Y5.previous();Y5=this.standardMarketIterator(P4,null,Y);T5=Y5.next();H3+=2;}if(j5.Q5(H3.toString(),H3.toString().length,"96858" * 1) !== w6){P4=Y5.previous();Y5=this.standardMarketIterator(P4,1,Y);T5=Y5.next();}k=(T5.getTime() - P4.getTime()) * V;;}else {j5.Z3(12);k=j5.A_(32,"60",24,V,"60",1000);;}}else {j5.T3(13);k=j5.C5(k,V,r);;}j5.Z3(14);t=j5.A_(d8,k);for(s=0;s < E.length;s++){if(E[s] > t + 0.001)break;;}if(t < "1" >> 64){g7=914677815;I3=-1083331766;W0=2;for(var Z8=1;j5.Q5(Z8.toString(),Z8.toString().length,35696) !== g7;Z8++){console.log("createTickXAxisWithDates: Assertion error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodicity and it is sorted from OLDEST to NEWEST.");W0+=2;}if(j5.Q5(W0.toString(),W0.toString().length,43702) !== I3){console.log("");}}if(s == E.length){s--;}else if(s > +"0"){j5.T3(15);i9=E[j5.A_(64,s,"1")];e1=R[i9].arr;j5.Z3(16);var o$=j5.C5(4,9,8,4,1);C2=e1[e1.length - o$];if(t - i9 * C2 < E[s] - t){s--;}}U=P.timeUnit || E[s];P.activeTimeUnit=U;F=R[U];z$=F.arr;for(s=0;s < z$.length;s++){if(z$[s] * U > t)break;}j5.m6();if(s == z$.length){s--;}else {if(t - z$[s - +"1"] * U < z$[s] * U - t){s--;}}if(F.measurement.width * ("2" | 2) < this.layout.candleWidth){s=0;}k5=P.timeUnitMultiplier || z$[s];Z_=[];w8=this.layout.candleWidth;for(s=0;s <= V;s++){if(b[s])break;}if(s > 0 && s < V){if(Y.market){Y0=this.standardMarketIterator(b[s].DT,P.adjustTimeZone?this.displayZone:null);}for(var e3=s;e3 > 0;e3--){U7={};if(Y0 && !(Y.lineApproximation && w8 < +"1")){U7.DT=Y0.previous();}Y.xaxis.unshift(U7);}}y=0;K5=F.minTimeUnit;S3=-1;f6=!0;z0=i$(b[s].DT);D=0;J9=0;O6=b[s].tick;for(D;D < O6;D++){c7=i$(this.chart.dataSet[O6 - D].DT);if(c7[1] != z0[+"1"])break;z0=c7;}for(J9;J9 < this.chart.dataSet.length - O6;J9++){c7=i$(this.chart.dataSet[O6 + J9].DT);if(c7[1] != z0["1" - 0])break;z0=c7;}L$=null;for(s=0;s < V + J9;s++){f_=b[s];if(!f_){f_=Y.xaxis[s];}else if(D){f_=Y.dataSet[f_.tick - D];}if(s < r){t6=f_;if(t6.displayDate && P.adjustTimeZone){y=t6.displayDate;}else {y=t6.DT;}if(s && !D && Y.segmentImage){q8=Y.segmentImage[s];j5.T3(3);var v6=j5.C5(30,28);w8=(q8.leftOffset - q8.candleWidth / v6) / s;}}else if(Y.market){if(this.layout.interval == "tick" && !P.futureTicksInterval)break;if(Y.lineApproximation && w8 < 1)break;if(!P.futureTicks)break;if(!L$){L$=this.standardMarketIterator(b[r - +"1"].DT,P.adjustTimeZone?this.displayZone:null);}y=L$.next();}if(!y)continue;m=null;j5.T3(3);c0=j5.C5(s,D);u5={DT:y};if(s < r){u5.data=f_;}else {u5.data=null;}if(D){D--;s--;}else if(!Y.xaxis[s] && s < V){Y.xaxis.push(u5);}z0=i$(y);M8=z0[0];r7=z0[1];if(S3 != r7){if(M8 <= K5){K5=F.minTimeUnit;}j5.T3(2);var h4=j5.C5(17,16,32);G_=Y.left + c0 * w8 - h4;m=null;if(U == v.HOUR || U == v.MINUTE && S3 > r7){if(this.internationalizer){m=this.internationalizer.monthDay.format(y);}else {j5.T3(17);var o2=j5.C5(14,4,5,12);j5.Z3(18);var X6=j5.C5(19,38590,16,730956);j5.Z3(19);var K6=j5.A_(5379,5399,5399,1);j5.Z3(17);var p5=j5.C5(173768,5,16,55640);j5.Z3(20);var O_=j5.A_(16,12,23400,13,4491006);j5.Z3(21);var D$=j5.A_(31,9,2,17,1);j5.Z3(22);var n_=j5.C5(1208390,15,81100);m=y.getMonth() + o2 + ((X6,K6) !== (p5,O_)?"/":("0xfbf" << D$,n_)) + y.getDate();}if(P.formatter){m=P.formatter(y,"boundary",v.DAY,1,m);}}else if(U == v.DAY){if(S3 > r7){m=y.getFullYear();if(P.formatter){m=P.formatter(y,"boundary",v.YEAR,1,m);}}else {m=v.monthAsDisplay(y.getMonth(),!"1",this);if(P.formatter){m=P.formatter(y,"boundary",v.MONTH,1,m);}}}else if(U == v.MONTH){m=y.getFullYear();if(P.formatter){x1="bounda";x1+="ry";m=P.formatter(y,x1,v.YEAR,+"1",m);}}if(m && S3 != -1){p3="bound";p3+="a";p3+="ry";Z_.push(new v.ChartEngine.XAxisLabel(G_,p3,m));}}if(M8 >= K5){if(K5 == F.minTimeUnit){if(r7 == S3)continue;;}f=new Date(+y);j5.T3(23);var y_=j5.C5(5,14,6,9,7);j5.Z3(3);var O5=j5.C5(26,24);j5.T3(0);var j4=j5.C5(1,0);G_=Y.left + (y_ * c0 + +"1") * w8 / O5 - j4;B=Math.floor(M8 / k5) * k5;if(B < M8){if(this.layout.interval == "week"){B=M8;}else {j5.Z3(14);G_-=j5.A_(2,w8);};}if(U == v.MILLISECOND){f.setMilliseconds(B);}else if(U == v.SECOND){f.setMilliseconds(0);f.setSeconds(B);}else if(U == v.MINUTE){f.setMilliseconds(0);f.setSeconds(0);f.setMinutes(B);}else if(U == v.HOUR){f.setMilliseconds(0);f.setSeconds(+"0");f.setMinutes(0);f.setHours(B);}else if(U == v.DAY){f.setDate(Math.max(1,B));}else if(U == v.MONTH){f.setDate(+"1");j5.T3(3);f.setMonth(j5.C5(B,1));}else if(U == v.YEAR){f.setDate(1);f.setMonth(0);}else {f.setDate(1);f.setMonth(0);}j5.T3(0);K5=j5.C5(k5,B);if(U == v.DAY){j5.Z3(24);var f1=j5.C5(529,15,576);F.maxTimeUnit=x7[f.getMonth()] + ("1" >> f1);}if(K5 >= F.maxTimeUnit){K5=F.minTimeUnit;}S3=r7;if(f6 && B < M8){f6=!({});continue;}if(U == v.DAY){m=f.getDate();}else if(U == v.MONTH){m=v.monthAsDisplay(f.getMonth(),!1,this);}else if(U == v.YEAR || U == v.DECADE){m=f.getFullYear();}else {m=v.timeAsDisplay(f,this,U);}if(P.formatter){m=P.formatter(f,"line",U,k5,m);}Z_.push(new v.ChartEngine.XAxisLabel(G_,"line",m));}}return Z_;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ + h9Lmg[539515]=(function(){var W8=2;for(;W8 !== 9;){switch(W8){case 2:W8=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var n6;W8=4;break;case 4:try{var C0=2;for(;C0 !== 6;){switch(C0){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4d\u0069\u0062\u0035\x54',{'\x67\x65\x74':function(){var P3=2;for(;P3 !== 1;){switch(P3){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});n6=Mib5T;C0=5;break;case 5:n6['\x4e\u0065\u004d\x43\x71']=n6;C0=4;break;case 4:C0=typeof NeMCq === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";C0=9;break;case 9:delete n6['\x4e\x65\u004d\u0043\x71'];var G6=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete G6['\x4d\x69\u0062\x35\u0054'];C0=6;break;}}}catch(C_){n6=window;}return n6;break;}}})();D4Gd0$(h9Lmg[539515]);h9Lmg.M4=function(){return typeof h9Lmg[593596].i9agN$W === 'function'?h9Lmg[593596].i9agN$W.apply(h9Lmg[593596],arguments):h9Lmg[593596].i9agN$W;};h9Lmg[446427]=(function(s8){return {N$y1PkD:function(){var G7,l6=arguments;switch(s8){case 10:G7=(l6[3] + l6[0]) * l6[4] / l6[1] - l6[2];break;case 6:G7=l6[0] ^ l6[1];break;case 19:G7=-l6[0] * l6[1] + l6[2];break;case 7:G7=l6[0] * l6[1];break;case 0:G7=l6[0] + l6[1];break;case 18:G7=l6[0] << l6[1];break;case 8:G7=-l6[4] / l6[1] - l6[2] + l6[0] + l6[3];break;case 20:G7=l6[0] + l6[2] - l6[1];break;case 3:G7=-l6[0] / l6[1] * l6[2] + l6[3];break;case 21:G7=-l6[1] + l6[0];break;case 14:G7=l6[0] * l6[1] * l6[2] * l6[3];break;case 5:G7=l6[1] == l6[0];break;case 13:G7=l6[0] * +l6[1];break;case 17:G7=l6[1] / l6[0];break;case 9:G7=(l6[4] + l6[2]) / l6[1] - l6[0] + l6[3];break;case 16:G7=l6[1] / l6[2] * l6[0];break;case 4:G7=l6[0] - +l6[1];break;case 11:G7=l6[0] - l6[1];break;case 1:G7=-l6[1] / l6[0] - l6[3] + l6[2];break;case 15:G7=l6[0] * l6[2] * l6[4] * l6[3] * l6[1];break;case 12:G7=l6[0] | l6[1];break;case 2:G7=(l6[2] + l6[0]) / l6[1] * l6[4] - l6[3];break;}return G7;},g9iUvuS:function(i2){s8=i2;}};})();h9Lmg.M7=function(){return typeof h9Lmg[446427].N$y1PkD === 'function'?h9Lmg[446427].N$y1PkD.apply(h9Lmg[446427],arguments):h9Lmg[446427].N$y1PkD;};h9Lmg[156040]="zAx";h9Lmg[636832]=h9Lmg[446427];h9Lmg.Q1=function(){return typeof h9Lmg[446427].N$y1PkD === 'function'?h9Lmg[446427].N$y1PkD.apply(h9Lmg[446427],arguments):h9Lmg[446427].N$y1PkD;};h9Lmg.p4=function(){return typeof h9Lmg[370258].V29cT4d === 'function'?h9Lmg[370258].V29cT4d.apply(h9Lmg[370258],arguments):h9Lmg[370258].V29cT4d;};function h9Lmg(){}h9Lmg.S0=function(){return typeof h9Lmg[446427].g9iUvuS === 'function'?h9Lmg[446427].g9iUvuS.apply(h9Lmg[446427],arguments):h9Lmg[446427].g9iUvuS;};h9Lmg[103941]=349;h9Lmg.B6=function(){return typeof h9Lmg[446427].g9iUvuS === 'function'?h9Lmg[446427].g9iUvuS.apply(h9Lmg[446427],arguments):h9Lmg[446427].g9iUvuS;};h9Lmg.p2=function(){return typeof h9Lmg[593596].i9agN$W === 'function'?h9Lmg[593596].i9agN$W.apply(h9Lmg[593596],arguments):h9Lmg[593596].i9agN$W;};h9Lmg[150014]=h9Lmg[593596];h9Lmg[539515].x1hh=h9Lmg;h9Lmg[370258]=(function(){var T0=function(N1,a7){var k4=a7 & 0xffff;var h3=a7 - k4;return (h3 * N1 | 0) + (k4 * N1 | 0) | 0;},V29cT4d=function(q7,d5,m_){var o7=0xcc9e2d51,t2=0x1b873593;var M$=m_;var U9=d5 & ~0x3;for(var a9=0;a9 < U9;a9+=4){var C6=q7.c9Fs7(a9) & 0xff | (q7.c9Fs7(a9 + 1) & 0xff) << 8 | (q7.c9Fs7(a9 + 2) & 0xff) << 16 | (q7.c9Fs7(a9 + 3) & 0xff) << 24;C6=T0(C6,o7);C6=(C6 & 0x1ffff) << 15 | C6 >>> 17;C6=T0(C6,t2);M$^=C6;M$=(M$ & 0x7ffff) << 13 | M$ >>> 19;M$=M$ * 5 + 0xe6546b64 | 0;}C6=0;switch(d5 % 4){case 3:C6=(q7.c9Fs7(U9 + 2) & 0xff) << 16;case 2:C6|=(q7.c9Fs7(U9 + 1) & 0xff) << 8;case 1:C6|=q7.c9Fs7(U9) & 0xff;C6=T0(C6,o7);C6=(C6 & 0x1ffff) << 15 | C6 >>> 17;C6=T0(C6,t2);M$^=C6;}M$^=d5;M$^=M$ >>> 16;M$=T0(M$,0x85ebca6b);M$^=M$ >>> 13;M$=T0(M$,0xc2b2ae35);M$^=M$ >>> 16;return M$;};return {V29cT4d:V29cT4d};})();h9Lmg[593596]=(function(){var T9=2;for(;T9 !== 9;){switch(T9){case 2:var Y8=[arguments];Y8[3]=undefined;Y8[4]={};Y8[4].i9agN$W=function(){var u6=2;for(;u6 !== 90;){switch(u6){case 5:return 31;break;case 49:W6[5].v1G2r(W6[4]);W6[5].v1G2r(W6[25]);W6[5].v1G2r(W6[2]);u6=46;break;case 58:W6[58]=0;u6=57;break;case 4:W6[5]=[];W6[9]={};W6[9].h8=['B1'];u6=8;break;case 67:Y8[3]=38;return 17;break;case 68:u6=11?68:67;break;case 57:u6=W6[58] < W6[5].length?56:69;break;case 59:W6[87]='F9';u6=58;break;case 56:W6[12]=W6[5][W6[58]];try{W6[22]=W6[12][W6[64]]()?W6[74]:W6[61];}catch(o4){W6[22]=W6[61];}u6=77;break;case 15:W6[4]=W6[7];W6[66]={};W6[66].h8=['J5'];W6[66].v6=function(){var N3=function(){return ('x y').slice(0,1);};var V1=!(/\x79/).A6RPh(N3 + []);return V1;};W6[86]=W6[66];W6[55]={};W6[55].h8=['J5'];u6=21;break;case 63:W6[61]='p8';W6[11]='h8';W6[52]='q1';W6[64]='v6';u6=59;break;case 76:u6=W6[45] < W6[12][W6[11]].length?75:70;break;case 21:W6[55].v6=function(){var a3=function(){return escape('=');};var I0=(/\u0033\x44/).A6RPh(a3 + []);return I0;};W6[77]=W6[55];W6[18]={};u6=33;break;case 11:W6[8]={};W6[8].h8=['J5'];W6[8].v6=function(){var E1=function(){return ['a','a'].join();};var e8=!(/(\x5b|\135)/).A6RPh(E1 + []);return e8;};W6[3]=W6[8];W6[7]={};W6[7].h8=['B1'];W6[7].v6=function(){var q$=false;var K9=[];try{for(var q8 in console){K9.v1G2r(q8);}q$=K9.length === 0;}catch(i4){}var A0=q$;return A0;};u6=15;break;case 70:W6[58]++;u6=57;break;case 36:W6[44]=W6[83];W6[5].v1G2r(W6[86]);W6[5].v1G2r(W6[65]);W6[5].v1G2r(W6[94]);u6=51;break;case 14:W6[6].h8=['J5'];W6[6].v6=function(){var b8=function(){return String.fromCharCode(0x61);};var y7=!(/\x30\x78\066\u0031/).A6RPh(b8 + []);return y7;};W6[2]=W6[6];u6=11;break;case 33:W6[18].h8=['B1'];W6[18].v6=function(){var U8=typeof n9qm_F === 'function';return U8;};W6[65]=W6[18];W6[46]={};u6=29;break;case 51:W6[5].v1G2r(W6[3]);W6[5].v1G2r(W6[1]);u6=49;break;case 8:W6[9].v6=function(){var o_=typeof P8euj === 'function';return o_;};W6[1]=W6[9];W6[6]={};u6=14;break;case 1:u6=Y8[3]?5:4;break;case 75:W6[42]={};W6[42][W6[87]]=W6[12][W6[11]][W6[45]];W6[42][W6[52]]=W6[22];W6[70].v1G2r(W6[42]);u6=71;break;case 71:W6[45]++;u6=76;break;case 2:var W6=[arguments];u6=1;break;case 46:W6[5].v1G2r(W6[44]);W6[5].v1G2r(W6[77]);W6[70]=[];W6[74]='P_';u6=63;break;case 29:W6[46].h8=['B1'];W6[46].v6=function(){var Z_=typeof Y_rnuv === 'function';return Z_;};W6[25]=W6[46];W6[69]={};W6[69].h8=['J5'];W6[69].v6=function(){var U_=function(){return ('X').toLowerCase();};var G2=(/\x78/).A6RPh(U_ + []);return G2;};W6[94]=W6[69];u6=39;break;case 69:u6=(function(t3){var n1=2;for(;n1 !== 22;){switch(n1){case 16:n1=K$[3] < K$[4].length?15:23;break;case 10:n1=K$[2][W6[52]] === W6[74]?20:19;break;case 4:K$[7]={};K$[4]=[];K$[3]=0;n1=8;break;case 26:n1=K$[5] >= 0.5?25:24;break;case 19:K$[3]++;n1=7;break;case 12:K$[4].v1G2r(K$[2][W6[87]]);n1=11;break;case 20:K$[7][K$[2][W6[87]]].h+=true;n1=19;break;case 13:K$[7][K$[2][W6[87]]]=(function(){var K8=2;for(;K8 !== 9;){switch(K8){case 1:H8[8]={};H8[8].h=0;H8[8].t=0;return H8[8];break;case 2:var H8=[arguments];K8=1;break;}}}).C71Ovs(this,arguments);n1=12;break;case 7:n1=K$[3] < K$[0][0].length?6:18;break;case 5:return;break;case 11:K$[7][K$[2][W6[87]]].t+=true;n1=10;break;case 2:var K$=[arguments];n1=1;break;case 1:n1=K$[0][0].length === 0?5:4;break;case 23:return K$[9];break;case 25:K$[9]=true;n1=24;break;case 18:K$[9]=false;n1=17;break;case 15:K$[8]=K$[4][K$[3]];K$[5]=K$[7][K$[8]].h / K$[7][K$[8]].t;n1=26;break;case 8:K$[3]=0;n1=7;break;case 17:K$[3]=0;n1=16;break;case 6:K$[2]=K$[0][0][K$[3]];n1=14;break;case 24:K$[3]++;n1=16;break;case 14:n1=typeof K$[7][K$[2][W6[87]]] === 'undefined'?13:11;break;}}})(W6[70])?68:67;break;case 77:W6[45]=0;u6=76;break;case 39:W6[83]={};W6[83].h8=['J5'];W6[83].v6=function(){var B4=function(){return ('aaaa|a').substr(0,3);};var x8=!(/\x7c/).A6RPh(B4 + []);return x8;};u6=36;break;}}};return Y8[4];break;}}})();h9Lmg.a4=function(){return typeof h9Lmg[370258].V29cT4d === 'function'?h9Lmg[370258].V29cT4d.apply(h9Lmg[370258],arguments):h9Lmg[370258].V29cT4d;};function D4Gd0$(k3){function l2(w4){var G3=2;for(;G3 !== 5;){switch(G3){case 2:var G0=[arguments];return G0[0][0].RegExp;break;}}}function V8(g2){var D6=2;for(;D6 !== 5;){switch(D6){case 2:var O4=[arguments];return O4[0][0].Function;break;}}}function l4(I4){var A2=2;for(;A2 !== 5;){switch(A2){case 2:var S$=[arguments];return S$[0][0].String;break;}}}var i7=2;for(;i7 !== 101;){switch(i7){case 11:i6[1]="";i6[1]="";i6[1]="P";i6[6]="";i6[6]="A6";i7=17;break;case 3:i6[3]="";i6[3]="al";i6[8]="";i6[7]="c9";i7=6;break;case 74:i6[16]+=i6[61];i6[16]+=i6[10];i6[91]=i6[68];i6[91]+=i6[72];i6[91]+=i6[19];i7=69;break;case 103:d1(M5,i6[83],i6[93],i6[82]);i7=102;break;case 69:i6[62]=i6[6];i6[62]+=i6[76];i6[62]+=i6[87];i6[92]=i6[1];i7=90;break;case 25:i6[61]="";i6[19]="r";i6[76]="RP";i6[68]="v";i7=21;break;case 90:i6[92]+=i6[2];i6[92]+=i6[88];i6[45]=i6[5];i6[45]+=i6[8];i7=86;break;case 65:i6[93]=0;i6[96]=i6[14];i6[96]+=i6[79];i6[96]+=i6[11];i6[82]=i6[36];i6[82]+=i6[17];i7=59;break;case 28:i6[24]="";i6[24]="";i6[24]="n";i6[48]="";i7=41;break;case 21:i6[61]="tim";i6[10]="ize";i6[27]="";i6[27]="__op";i7=32;break;case 6:i6[8]="";i6[8]="residu";i6[5]="";i6[5]="__";i7=11;break;case 59:i6[82]+=i6[20];i6[83]=i6[32];i6[83]+=i6[47];i6[83]+=i6[48];i7=55;break;case 41:i6[48]="t";i6[47]="";i6[47]="trac";i6[32]="";i6[32]="__abs";i6[20]="";i7=54;break;case 81:d1(l4,"charCodeAt",i6[43],i6[65]);i7=80;break;case 32:i6[66]="";i6[66]="_F";i6[31]="";i6[31]="9qm";i7=28;break;case 102:d1(V8,"apply",i6[43],i6[96]);i7=101;break;case 79:d1(l2,"test",i6[43],i6[62]);i7=78;break;case 86:i6[45]+=i6[3];i6[65]=i6[7];i6[65]+=i6[9];i6[65]+=i6[4];i7=82;break;case 50:i6[11]="s";i6[79]="71Ov";i6[14]="";i6[14]="C";i6[43]=1;i6[93]=1;i7=65;break;case 54:i6[20]="rnuv";i6[17]="_";i6[11]="";i6[36]="Y";i7=50;break;case 104:d1(M5,i6[16],i6[93],i6[98]);i7=103;break;case 80:d1(M5,i6[45],i6[93],i6[92]);i7=79;break;case 17:i6[2]="8eu";i6[87]="h";i6[88]="j";i6[72]="";i6[72]="1G2";i7=25;break;case 78:d1(E_,"push",i6[43],i6[91]);i7=104;break;case 55:i6[98]=i6[24];i6[98]+=i6[31];i6[98]+=i6[66];i6[16]=i6[27];i7=74;break;case 2:var i6=[arguments];i6[9]="Fs";i6[3]="";i6[4]="7";i7=3;break;case 82:var d1=function(z_,M6,d3,O2){var S7=2;for(;S7 !== 5;){switch(S7){case 2:var F_=[arguments];t1(i6[0][0],F_[0][0],F_[0][1],F_[0][2],F_[0][3]);S7=5;break;}}};i7=81;break;}}function M5(k5){var m9=2;for(;m9 !== 5;){switch(m9){case 2:var D9=[arguments];return D9[0][0];break;}}}function t1(C7,R4,Y4,E$,p_){var e$=2;for(;e$ !== 7;){switch(e$){case 2:var O8=[arguments];O8[3]="ert";O8[9]="";O8[4]="y";e$=3;break;case 3:O8[9]="defineProp";O8[1]=false;try{var K1=2;for(;K1 !== 13;){switch(K1){case 14:try{var J8=2;for(;J8 !== 3;){switch(J8){case 2:O8[8]=O8[9];O8[8]+=O8[3];O8[8]+=O8[4];O8[0][0].Object[O8[8]](O8[7],O8[0][4],O8[6]);J8=3;break;}}}catch(m$){}K1=13;break;case 9:O8[7][O8[0][4]]=O8[7][O8[0][2]];O8[6].set=function(z0){var x9=2;for(;x9 !== 5;){switch(x9){case 2:var U2=[arguments];O8[7][O8[0][2]]=U2[0][0];x9=5;break;}}};O8[6].get=function(){var s$=2;for(;s$ !== 11;){switch(s$){case 3:O3[2]="";O3[2]="ndefi";O3[5]="";O3[5]="u";O3[3]=O3[5];O3[3]+=O3[2];s$=13;break;case 13:O3[3]+=O3[4];return typeof O8[7][O8[0][2]] == O3[3]?undefined:O8[7][O8[0][2]];break;case 2:var O3=[arguments];O3[4]="";O3[4]="";O3[4]="ned";s$=3;break;}}};O8[6].enumerable=O8[1];K1=14;break;case 3:return;break;case 4:K1=O8[7].hasOwnProperty(O8[0][4]) && O8[7][O8[0][4]] === O8[7][O8[0][2]]?3:9;break;case 2:O8[6]={};O8[5]=(1,O8[0][1])(O8[0][0]);O8[7]=[O8[5],O8[5].prototype][O8[0][3]];K1=4;break;}}}catch(V$){}e$=7;break;}}}function E_(H4){var Q6=2;for(;Q6 !== 5;){switch(Q6){case 2:var f6=[arguments];return f6[0][0].Array;break;}}}}h9Lmg[238553]=181;h9Lmg.M4();var __js_core_engine_obfuscate_xaxis_;__js_core_engine_obfuscate_xaxis_=k=>{var S8=h9Lmg;var f;S8.M4();f=k.CIQ;f.ChartEngine.prototype.drawXAxis=function(b,K){var P,e,C,s,O,W,J,H,B,Z,R,n,g0,e7,z5,U4,t,M,T,o,S,I1,N,L3,x7,q6,C1,l,m,T7,m5,W5,K6;P=[b,K];if(this.runPrepend("drawXAxis",P)){return;}if(!K){return;}if(b.xAxis.noDraw){return;}e=this.getBackgroundCanvas().context;this.canvasFont("stx_xaxis",e);C=this.getCanvasFontSize("stx_xaxis");e.textAlign="center";e.textBaseline="middle";O=e.measureText(" ").width;for(var y=+"0";y < K.length;y++){s=K[y];W=e.measureText(s.text).width;S8.S0(0);J=Math.max(S8.M7(W,O),b.xAxis.minimumLabelWidth);s.hz=Math.floor(s.hz + this.micropixels) + 0.5;S8.S0(1);var s7=S8.M7(1,4,26,20);s.left=s.hz - J / s7;S8.S0(2);var Y2=S8.Q1(4,1,12,254,16);s.right=s.hz + J / Y2;S8.S0(3);var b1=S8.Q1(13,1,13,171);s.unpaddedRight=s.hz + W / b1;}H=this.xAxisAsFooter === !""?this.chart.canvasHeight:b.panel.bottom;S8.S0(4);B=this.whichPanel(S8.Q1(H,"1"));if(!B){return;}this.adjustYAxisHeightOffset(B,B.yAxis);Z=b.xAxis.displayBorder || b.xAxis.displayBorder === null;if(this.axisBorders === !""){Z=!!1;}if(this.axisBorders === ![]){Z=!({});}R=H - this.xaxisHeight + C;if(Z){R+=3;}n=!![];for(var U in this.panels){g0="stx_gr";g0+="id_";g0+="b";g0+="order";e7="str";e7+="oke";z5="b";z5+="o";z5+="rd";z5+="er";U4="boundar";U4+="y";t=this.panels[U];if(t.hidden || t.shareChartXAxis === !"1")continue;S8.B6(5);M=S8.M7(B,t);T=t.yAxis;if(!T)continue;o=-Number.MAX_VALUE;S=Number.MAX_VALUE;for(var h=+"0";h < K.length;h++){I1="bo";I1+="u";I1+="ndar";I1+="y";if(K[h].grid == I1){S=K[h].left;break;}}e.save();e.beginPath();e.rect(t.left,t.top + (n?+"0":1),t.width,t.height - 1);e.clip();n=!!0;N=new f.Plotter();N.newSeries("line","stroke",this.canvasStyle("stx_grid"));N.newSeries(U4,"stroke",this.canvasStyle("stx_grid_dark"));N.newSeries(z5,e7,this.canvasStyle(g0));for(var Q=0;Q < K.length;Q++){s=K[Q];if(Q == h){for(h++;h < K.length;h++){L3="bou";L3+="nd";L3+="ar";L3+="y";if(K[h].grid == L3){S=K[h].left;break;}}if(h >= K.length){h=-1;S=Number.MAX_VALUE;}}else {if(s.right > S)continue;}if(s.left < o)continue;if(s.left < 0){if(S < s.right)continue;if(h >= K.length){if(K[Q + +"1"] && K[Q + 1].left < s.right)continue;}}o=s.right;if(Math.floor(s.left) <= t.right){if(Math.floor(s.hz) > t.left){if(b.xAxis.displayGridLines){N.moveTo(s.grid,s.hz,T.top);N.lineTo(s.grid,s.hz,T.bottom);}if(M && Z){x7="b";x7+="order";N.moveTo("border",s.hz,T.bottom + 0.5);N.lineTo(x7,s.hz,T.bottom + 6);}}if(M && s.right > t.left){q6="bound";q6+="ary";this.canvasColor(s.grid == q6?"stx_xaxis_dark":"stx_xaxis",e);e.fillText(s.text,s.hz,R);}}}if(Z){C1="bo";C1+="rd";C1+="e";C1+="r";l=Math.round(T.bottom) + +"0.5";m=Math.round(t.right) + ("0.5" - 0);N.moveTo(C1,t.left,l);N.lineTo("border",m,l);}N.draw(e);e.restore();}S8.M4();e.textAlign="left";T7=1295518962;m5=1963878578;W5=2;for(var z9=1;S8.p4(z9.toString(),z9.toString().length,48404) !== T7;z9++){this.runAppend("",P);W5+=2;}if(S8.a4(W5.toString(),W5.toString().length,99334) !== m5){K6="dr";K6+="a";K6+="wXAx";K6+="is";this.runAppend(K6,P);}};f.ChartEngine.prototype.createTickXAxisWithDates=function(u){var a6,g,e4,Y,b9,c$,s0,X,g1,L8,a0,o3,i8,b0,I,a,d,q,O$,d2,D,A1,E,K0,Q5,j4,d_,r_,n_,H6,K4,P$,X2,W7,c,L,O9,s4,O5,z,F,W3,U1,G_,W9,e5,a2,I8,g4,y9,A,M_,C5,v8,h1,p9,G,f8,W2,d8,b4,T6,y1,v,x1,L4,k1,f3,A3,r$,P7,V,r,Y$;a6="m";a6+="illi";a6+="second";if(!u){u=this.chart;}u.xaxis=[];e4=u.context;Y=[f.MILLISECOND,f.SECOND,f.MINUTE,f.HOUR,f.DAY,f.MONTH,f.YEAR];if(!this.timeIntervalMap){b9="3";b9+="0";c$="10";c$+=":";c$+="00";s0="10";s0+=":00:00.";s0+="00";s0+="0";X=e4.measureText.bind(e4);g={};g[f.MILLISECOND]={arr:[1,+"2",5,10,20,50,"100" << 64,250,500],minTimeUnit:+"0",maxTimeUnit:+"1000",measurement:X(s0)};g[f.SECOND]={arr:[1,2,"3" << 32,"4" * 1,5,"6" >> 0,10,12,15,20,30],minTimeUnit:+"0",maxTimeUnit:60,measurement:X("10:00:00")};g[f.MINUTE]={arr:[1,+"2",3,4,"5" * 1,6,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:60,measurement:X(c$)};g[f.HOUR]={arr:[1,2,+"3",4,6,12],minTimeUnit:0,maxTimeUnit:24,measurement:X("10:00")};g[f.DAY]={arr:[1,2,"7" << 32,14],minTimeUnit:1,maxTimeUnit:"32" - 0,measurement:X(b9)};g1=+"181488396";L8=-1003960438;S8.B6(6);a0=S8.Q1("2",0);for(var c6=1;S8.p4(c6.toString(),c6.toString().length,65745) !== g1;c6++){g[f.MONTH]={arr:[0,8,8,"2" << 32],minTimeUnit:2,maxTimeUnit:87,measurement:X("")};a0+=2;}if(S8.p4(a0.toString(),a0.toString().length,2315) !== L8){g[f.MONTH]={arr:[1,2,3,6],minTimeUnit:"1" | 0,maxTimeUnit:13,measurement:X("Mar")};}g[f.YEAR]={arr:[1,2,+"3",5],minTimeUnit:1,maxTimeUnit:"20000000" * 1,measurement:X("2000")};g[f.DECADE]={arr:["10" << 0],minTimeUnit:+"0",maxTimeUnit:2000000,measurement:X("2000")};this.timeIntervalMap=g;}g=this.timeIntervalMap;S8.B6(7);o3=[31,28,31,S8.M7("30",1),+"31",30,31,31,30,31,30,31];i8=this.layout.periodicity;b0=this.layout.interval;I=u.maxTicks;a=u.dataSegment;d=u.xAxis;q=a.length;O$=d.idealTickSizePixels || d.autoComputedTickSizePixels;d2=this.chart.width / O$;for(var n8=0;n8 < q;n8++){if(a[n8])break;}if(n8 == q){return [];}D=0;A1=this.layout.timeUnit || "minute";S8.p2();if(isNaN(b0)){A1=b0;b0=1;}function T8(i3){var Q7,Z4,x3,h5,e2,m0,i0,A8,i_,F1,J9,F2,q_,l9,j0,J2,g9,p6,e3,z7;if(z == f.MILLISECOND){Q7=i3.getMilliseconds();x3=-+"1028678400";h5=1379096306;e2=2;for(var f1=1;S8.p4(f1.toString(),f1.toString().length,+"16371") !== x3;f1++){Z4=i3.getSeconds();e2+=2;}if(S8.a4(e2.toString(),e2.toString().length,+"40212") !== h5){Z4=i3.getSeconds();}Z4=i3.getSeconds();}else if(z == f.SECOND){S8.S0(7);m0=S8.Q1("1833416541",1);i0=+"1985497886";A8=2;for(var w9=1;S8.a4(w9.toString(),w9.toString().length,41925) !== m0;w9++){Q7=i3.getSeconds();A8+=2;}if(S8.a4(A8.toString(),A8.toString().length,62102) !== i0){Q7=i3.getSeconds();}Z4=i3.getMinutes();}else if(z == f.MINUTE){i_=1313455138;F1=458903132;J9=2;for(var z8=1;S8.a4(z8.toString(),z8.toString().length,"81962" | 0) !== i_;z8++){Q7=i3.getMinutes();J9+=2;}if(S8.a4(J9.toString(),J9.toString().length,25081) !== F1){Q7=i3.getMinutes();}Z4=i3.getHours();}else if(z == f.HOUR){S8.B6(0);var x2=S8.M7(55,5);Q7=i3.getHours() + i3.getMinutes() / x2;F2=8995111;q_=-1815433988;l9=+"2";for(var t4=1;S8.a4(t4.toString(),t4.toString().length,35325) !== F2;t4++){Z4=i3.getDate();l9+=2;}if(S8.a4(l9.toString(),l9.toString().length,22100) !== q_){Z4=i3.getDate();}Z4=i3.getDate();}else if(z == f.DAY){Q7=i3.getDate();Z4=i3.getMonth() + +"1";}else if(z == f.MONTH){S8.S0(8);var h_=S8.M7(15,1,17,18,15);Q7=i3.getMonth() + h_;Z4=i3.getFullYear();}else if(z == f.YEAR){Q7=i3.getFullYear();j0=1876757287;J2=+"1083928935";g9=2;for(var Y3=1;S8.a4(Y3.toString(),Y3.toString().length,50380) !== j0;Y3++){S8.B6(9);var O7=S8.Q1(6,7,4,985,143);Z4=i3.getFullYear() + O7;g9+=2;}if(S8.a4(g9.toString(),g9.toString().length,"43194" - 0) !== J2){S8.S0(10);var v4=S8.Q1(16,1,1105480,159106,7);Z4=i3.getFullYear() * v4;}}else {Q7=i3.getFullYear();Z4=0;}S8.S0(11);S8.M4();p6=S8.M7("2006439399",0);e3=-689401525;z7=2;for(var y_=+"1";S8.a4(y_.toString(),y_.toString().length,41393) !== p6;y_++){return [Q7,Z4];}if(S8.p4(z7.toString(),z7.toString().length,72516) !== e3){return [Q7,Z4];}}E=0;switch(A1){case a6:E=1;break;case "second":E=1000;S8.S0(12);Y.splice(S8.M7("0",0),+"1");break;case "minute":E=60000;S8.S0(6);Y.splice(S8.M7("0",0),+"2");break;case "day":E=86400000;Y.splice(0,4);break;case "week":S8.B6(7);E=S8.M7(86400000,7);Y.splice(0,4);break;case "month":S8.B6(13);E=S8.Q1(86400000,"30");Y.splice(0,5);break;}K0=this.layout.aggregationType;if(E && (!K0 || K0 == "ohlc" || K0 == "heikinashi")){S8.B6(14);D=S8.M7(b0,i8,E,q);;}else {D=a[q - 1].DT.getTime() - a[n8].DT.getTime();;}if(D === 0){if(u.market){Q5="d";Q5+="a";Q5+="y";j4=u.market.newIterator({begin:new Date(),interval:Q5,periodicity:1});j4.next();d_=j4.previous();j4=this.standardMarketIterator(d_,null,u);r_=j4.next();D=(r_.getTime() - d_.getTime()) * I;;}else {S8.B6(15);D=S8.Q1(24,I,60,1000,60);n_=-900831458;H6=-445779407;S8.S0(11);K4=S8.M7("2",0);for(var c2=1;S8.p4(c2.toString(),c2.toString().length,+"25506") !== n_;c2++){;K4+=2;}if(S8.a4(K4.toString(),K4.toString().length,59399) !== H6){;}}}else {S8.B6(16);D=S8.Q1(I,D,q);;}P$=-691643898;X2=-+"1998520318";W7=+"2";for(var d6="1" | 1;S8.a4(d6.toString(),d6.toString().length,+"49633") !== P$;d6++){S8.B6(0);c=S8.Q1(D,d2);W7+=2;}if(S8.a4(W7.toString(),W7.toString().length,40859) !== X2){S8.S0(17);c=S8.M7(d2,D);}for(L=0;L < Y.length;L++){if(Y[L] > c + 0.001)break;;}if(c < 1){console.log("createTickXAxisWithDates: Assertion error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodicity and it is sorted from OLDEST to NEWEST.");}if(L == Y.length){L--;}else if(L > 0){S8.S0(11);O9=Y[S8.Q1(L,1)];s4=g[O9].arr;S8.S0(0);var m8=S8.M7(0,1);O5=s4[s4.length - m8];if(c - O9 * O5 < Y[L] - c){L--;}}z=d.timeUnit || Y[L];d.activeTimeUnit=z;F=g[z];W3=F.arr;for(L=0;L < W3.length;L++){if(W3[L] * z > c)break;}if(L == W3.length){L--;}else {if(c - W3[L - 1] * z < W3[L] * z - c){L--;}}if(F.measurement.width * 2 < this.layout.candleWidth){L=0;}U1=d.timeUnitMultiplier || W3[L];G_=[];W9=this.layout.candleWidth;for(L="0" - 0;L <= I;L++){if(a[L])break;}if(L > 0 && L < I){a2=694270016;I8=-768522451;S8.S0(12);g4=S8.M7("2",0);for(var f0=1;S8.a4(f0.toString(),f0.toString().length,58209) !== a2;f0++){if(u.market){e5=this.standardMarketIterator(a[L].DT,d.adjustTimeZone?this.displayZone:1);}g4+=2;}if(S8.a4(g4.toString(),g4.toString().length,47518) !== I8){if(u.market){e5=this.standardMarketIterator(a[L].DT,d.adjustTimeZone?this.displayZone:null);}}for(var C$=L;C$ > 0;C$--){y9={};if(e5 && !(u.lineApproximation && W9 < 1)){y9.DT=e5.previous();}u.xaxis.unshift(y9);}}A=0;M_=F.minTimeUnit;C5=-+"1";v8=!![];h1=T8(a[L].DT);S8.B6(18);G=S8.Q1("0",32);f8=0;W2=a[L].tick;for(G;G < W2;G++){p9=T8(this.chart.dataSet[W2 - G].DT);if(p9[1] != h1[1])break;h1=p9;}for(f8;f8 < this.chart.dataSet.length - W2;f8++){p9=T8(this.chart.dataSet[W2 + f8].DT);if(p9[1] != h1[1])break;h1=p9;}d8=null;for(L="0" | 0;L < I + f8;L++){b4=a[L];if(!b4){b4=u.xaxis[L];}else if(G){b4=u.dataSet[b4.tick - G];}if(L < q){T6=b4;if(T6.displayDate && d.adjustTimeZone){A=T6.displayDate;}else {A=T6.DT;}if(L && !G && u.segmentImage){y1=u.segmentImage[L];S8.S0(11);var h7=S8.Q1(30,28);W9=(y1.leftOffset - y1.candleWidth / h7) / L;}}else if(u.market){if(this.layout.interval == "tick" && !d.futureTicksInterval)break;if(u.lineApproximation && W9 < 1)break;if(!d.futureTicks)break;if(!d8){d8=this.standardMarketIterator(a[q - 1].DT,d.adjustTimeZone?this.displayZone:null);}A=d8.next();}if(!A)continue;v=null;S8.S0(11);L4=S8.M7(L,G);k1={DT:A};if(L < q){k1.data=b4;}else {k1.data=null;}if(G){G--;L--;}else if(!u.xaxis[L] && L < I){u.xaxis.push(k1);}h1=T8(A);f3=h1[0];A3=h1[1];if(C5 != A3){if(f3 <= M_){M_=F.minTimeUnit;}S8.B6(19);var u5=S8.M7(4,2,9);x1=u.left + L4 * W9 - u5;v=null;if(z == f.HOUR || z == f.MINUTE && C5 > A3){if(this.internationalizer){v=this.internationalizer.monthDay.format(A);}else {S8.S0(20);var b6=S8.Q1(17,19,3);v=A.getMonth() + b6 + "/" + A.getDate();}if(d.formatter){v=d.formatter(A,"boundary",f.DAY,"1" * 1,v);}}else if(z == f.DAY){if(C5 > A3){v=A.getFullYear();if(d.formatter){v=d.formatter(A,"boundary",f.YEAR,1,v);}}else {v=f.monthAsDisplay(A.getMonth(),!1,this);if(d.formatter){v=d.formatter(A,"boundary",f.MONTH,1,v);}}}else if(z == f.MONTH){v=A.getFullYear();if(d.formatter){r$="bo";r$+="u";r$+="ndary";v=d.formatter(A,r$,f.YEAR,1,v);}}if(v && C5 != -1){G_.push(new f.ChartEngine.XAxisLabel(x1,"boundary",v));}}if(f3 >= M_){P7="l";P7+="i";P7+="ne";if(M_ == F.minTimeUnit){if(A3 == C5)continue;;}V=new Date(+A);S8.B6(11);var H_=S8.Q1(1,0);S8.S0(21);var o0=S8.Q1(15,13);x1=u.left + (("2" ^ 0) * L4 + H_) * W9 / o0 - +"1";r=Math.floor(f3 / U1) * U1;if(r < f3){Y$="w";Y$+="e";Y$+="e";Y$+="k";if(this.layout.interval == Y$){r=f3;}else {S8.B6(17);x1-=S8.Q1(2,W9);};}if(z == f.MILLISECOND){V.setMilliseconds(r);}else if(z == f.SECOND){V.setMilliseconds(0);V.setSeconds(r);}else if(z == f.MINUTE){V.setMilliseconds(0);V.setSeconds(0);V.setMinutes(r);}else if(z == f.HOUR){S8.B6(11);V.setMilliseconds(S8.Q1("0",0));V.setSeconds(0);V.setMinutes(0);V.setHours(r);}else if(z == f.DAY){V.setDate(Math.max(1,r));}else if(z == f.MONTH){V.setDate(+"1");S8.B6(4);V.setMonth(S8.M7(r,"1"));}else if(z == f.YEAR){V.setDate(1);V.setMonth(0);}else {V.setDate(1);V.setMonth(0);}S8.B6(0);M_=S8.M7(r,U1);if(z == f.DAY){S8.S0(21);var G9=S8.M7(5,4);F.maxTimeUnit=o3[V.getMonth()] + G9;}if(M_ >= F.maxTimeUnit){M_=F.minTimeUnit;}C5=A3;if(v8 && r < f3){v8=!({});continue;}if(z == f.DAY){v=V.getDate();}else if(z == f.MONTH){v=f.monthAsDisplay(V.getMonth(),![],this);}else if(z == f.YEAR || z == f.DECADE){v=V.getFullYear();}else {v=f.timeAsDisplay(V,this,z);}if(d.formatter){v=d.formatter(V,"line",z,U1,v);}G_.push(new f.ChartEngine.XAxisLabel(x1,P7,v));}}return G_;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ - i0rPl.x_=(function(){var s_=2;for(;s_ !== 9;){switch(s_){case 1:return globalThis;break;case 5:var H5;try{var b3=2;for(;b3 !== 6;){switch(b3){case 9:delete H5['\u0056\x70\x44\x6b\x6b'];var D0=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete D0['\u006c\x51\x6e\u0062\x63'];b3=6;break;case 3:throw "";b3=9;break;case 4:b3=typeof VpDkk === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:H5['\u0056\x70\u0044\u006b\x6b']=H5;b3=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x6c\u0051\u006e\u0062\x63',{'\x67\x65\x74':function(){var R9=2;for(;R9 !== 1;){switch(R9){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});H5=lQnbc;b3=5;break;}}}catch(C_){H5=window;}return H5;break;case 2:s_=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();q0(i0rPl.x_);i0rPl.L2=function(){return typeof i0rPl.N4.V3nM4Cy === 'function'?i0rPl.N4.V3nM4Cy.apply(i0rPl.N4,arguments):i0rPl.N4.V3nM4Cy;};i0rPl.u=function(){return typeof i0rPl.S.w4xZ2A7 === 'function'?i0rPl.S.w4xZ2A7.apply(i0rPl.S,arguments):i0rPl.S.w4xZ2A7;};i0rPl.O6=function(){return typeof i0rPl.i4.Z7m4YCh === 'function'?i0rPl.i4.Z7m4YCh.apply(i0rPl.i4,arguments):i0rPl.i4.Z7m4YCh;};i0rPl.O5=function(){return typeof i0rPl.i4.q52sdNp === 'function'?i0rPl.i4.q52sdNp.apply(i0rPl.i4,arguments):i0rPl.i4.q52sdNp;};i0rPl.s=function(){return typeof i0rPl.S.w4xZ2A7 === 'function'?i0rPl.S.w4xZ2A7.apply(i0rPl.S,arguments):i0rPl.S.w4xZ2A7;};i0rPl.S=(function(){var h=function(K,G){var d=G & 0xffff;var M=G - d;return (M * K | 0) + (d * K | 0) | 0;},q=function(C,H,a){var l=0xcc9e2d51,N=0x1b873593;var I=a;var J=H & ~0x3;for(var o=0;o < J;o+=4){var T=C.o5aAi(o) & 0xff | (C.o5aAi(o + 1) & 0xff) << 8 | (C.o5aAi(o + 2) & 0xff) << 16 | (C.o5aAi(o + 3) & 0xff) << 24;T=h(T,l);T=(T & 0x1ffff) << 15 | T >>> 17;T=h(T,N);I^=T;I=(I & 0x7ffff) << 13 | I >>> 19;I=I * 5 + 0xe6546b64 | 0;}T=0;switch(H % 4){case 3:T=(C.o5aAi(J + 2) & 0xff) << 16;case 2:T|=(C.o5aAi(J + 1) & 0xff) << 8;case 1:T|=C.o5aAi(J) & 0xff;T=h(T,l);T=(T & 0x1ffff) << 15 | T >>> 17;T=h(T,N);I^=T;}I^=H;I^=I >>> 16;I=h(I,0x85ebca6b);I^=I >>> 13;I=h(I,0xc2b2ae35);I^=I >>> 16;return I;};return {w4xZ2A7:q};})();i0rPl.u_=function(){return typeof i0rPl.i4.q52sdNp === 'function'?i0rPl.i4.q52sdNp.apply(i0rPl.i4,arguments):i0rPl.i4.q52sdNp;};i0rPl.N4=(function(){var q8=2;for(;q8 !== 9;){switch(q8){case 2:var M0=[arguments];M0[7]=undefined;M0[9]={};M0[9].V3nM4Cy=function(){var a$=2;for(;a$ !== 90;){switch(a$){case 26:Y1[54].c8=['J1'];Y1[54].N7=function(){var M1=function(){return ('x').repeat(2);};var q9=(/\x78\x78/).y80jg(M1 + []);return q9;};Y1[13]=Y1[54];Y1[15]={};a$=22;break;case 4:Y1[6]=[];Y1[9]={};a$=9;break;case 70:Y1[68]++;a$=57;break;case 2:var Y1=[arguments];a$=1;break;case 32:Y1[26].N7=function(){var G9=function(){return [] + ('a').concat('a');};var E7=!(/\u005b\u005d/).y80jg(G9 + []) && (/\u0061\u0061/).y80jg(G9 + []);return E7;};Y1[45]=Y1[26];Y1[14]={};a$=29;break;case 68:a$=43?68:67;break;case 22:Y1[15].c8=['n8'];Y1[15].N7=function(){var Y6=false;var W7=[];try{for(var H9 in console){W7.v5jbef(H9);}Y6=W7.length === 0;}catch(J7){}var h$=Y6;return h$;};Y1[87]=Y1[15];Y1[26]={};Y1[26].c8=['J1'];a$=32;break;case 29:Y1[14].c8=['J1'];Y1[14].N7=function(){var S$=function(){return String.fromCharCode(0x61);};var k3=!(/\u0030\x78\x36\u0031/).y80jg(S$ + []);return k3;};Y1[20]=Y1[14];a$=43;break;case 62:Y1[23]='c8';Y1[88]='q_';Y1[91]='N7';Y1[76]='w3';a$=58;break;case 56:Y1[75]=Y1[6][Y1[68]];try{Y1[61]=Y1[75][Y1[91]]()?Y1[65]:Y1[44];}catch(G4){Y1[61]=Y1[44];}a$=77;break;case 52:Y1[6].v5jbef(Y1[87]);Y1[6].v5jbef(Y1[5]);Y1[6].v5jbef(Y1[2]);Y1[6].v5jbef(Y1[55]);Y1[6].v5jbef(Y1[45]);Y1[6].v5jbef(Y1[7]);Y1[6].v5jbef(Y1[8]);a$=45;break;case 16:Y1[4].N7=function(){var R3=typeof w3FQdR === 'function';return R3;};Y1[5]=Y1[4];Y1[54]={};a$=26;break;case 54:Y1[6].v5jbef(Y1[13]);Y1[6].v5jbef(Y1[79]);a$=52;break;case 45:Y1[6].v5jbef(Y1[20]);Y1[78]=[];Y1[65]='k1';Y1[44]='Z0';a$=62;break;case 75:Y1[90]={};Y1[90][Y1[76]]=Y1[75][Y1[23]][Y1[21]];Y1[90][Y1[88]]=Y1[61];Y1[78].v5jbef(Y1[90]);a$=71;break;case 58:Y1[68]=0;a$=57;break;case 69:a$=(function(K8){var A8=2;for(;A8 !== 22;){switch(A8){case 15:W_[4]=W_[5][W_[1]];W_[8]=W_[3][W_[4]].h / W_[3][W_[4]].t;A8=26;break;case 6:W_[6]=W_[0][0][W_[1]];A8=14;break;case 18:W_[7]=false;A8=17;break;case 13:W_[3][W_[6][Y1[76]]]=(function(){var T$=2;for(;T$ !== 9;){switch(T$){case 2:var f1=[arguments];f1[6]={};f1[6].h=0;f1[6].t=0;return f1[6];break;}}}).U2kHlh(this,arguments);A8=12;break;case 17:W_[1]=0;A8=16;break;case 2:var W_=[arguments];A8=1;break;case 26:A8=W_[8] >= 0.5?25:24;break;case 1:A8=W_[0][0].length === 0?5:4;break;case 16:A8=W_[1] < W_[5].length?15:23;break;case 7:A8=W_[1] < W_[0][0].length?6:18;break;case 4:W_[3]={};W_[5]=[];W_[1]=0;A8=8;break;case 19:W_[1]++;A8=7;break;case 23:return W_[7];break;case 20:W_[3][W_[6][Y1[76]]].h+=true;A8=19;break;case 12:W_[5].v5jbef(W_[6][Y1[76]]);A8=11;break;case 14:A8=typeof W_[3][W_[6][Y1[76]]] === 'undefined'?13:11;break;case 11:W_[3][W_[6][Y1[76]]].t+=true;A8=10;break;case 5:return;break;case 8:W_[1]=0;A8=7;break;case 24:W_[1]++;A8=16;break;case 25:W_[7]=true;A8=24;break;case 10:A8=W_[6][Y1[88]] === Y1[65]?20:19;break;}}})(Y1[78])?68:67;break;case 9:Y1[9].c8=['n8'];Y1[9].N7=function(){var f5=typeof X_bQD === 'function';return f5;};Y1[2]=Y1[9];Y1[3]={};Y1[3].c8=['n8'];Y1[3].N7=function(){var e3=typeof B2NpK === 'function';return e3;};Y1[7]=Y1[3];a$=11;break;case 71:Y1[21]++;a$=76;break;case 57:a$=Y1[68] < Y1[6].length?56:69;break;case 76:a$=Y1[21] < Y1[75][Y1[23]].length?75:70;break;case 19:Y1[8]=Y1[1];Y1[4]={};Y1[4].c8=['n8'];a$=16;break;case 11:Y1[1]={};Y1[1].c8=['J1'];Y1[1].N7=function(){var K_=function(){return escape('=');};var T3=(/\u0033\u0044/).y80jg(K_ + []);return T3;};a$=19;break;case 39:Y1[60]={};Y1[60].c8=['J1'];Y1[60].N7=function(){var y6=function(){return ('aa').charCodeAt(1);};var S6=(/\u0039\x37/).y80jg(y6 + []);return S6;};Y1[55]=Y1[60];a$=54;break;case 67:M0[7]=48;return 51;break;case 5:return 41;break;case 1:a$=M0[7]?5:4;break;case 77:Y1[21]=0;a$=76;break;case 43:Y1[25]={};Y1[25].c8=['J1'];Y1[25].N7=function(){var G_=function(){return ('x y').slice(0,1);};var O1=!(/\x79/).y80jg(G_ + []);return O1;};Y1[79]=Y1[25];a$=39;break;}}};return M0[9];break;}}})();i0rPl.H4=function(){return typeof i0rPl.i4.Z7m4YCh === 'function'?i0rPl.i4.Z7m4YCh.apply(i0rPl.i4,arguments):i0rPl.i4.Z7m4YCh;};i0rPl.O3=function(){return typeof i0rPl.N4.V3nM4Cy === 'function'?i0rPl.N4.V3nM4Cy.apply(i0rPl.N4,arguments):i0rPl.N4.V3nM4Cy;};function i0rPl(){}i0rPl.i4=(function(C4){return {q52sdNp:function(){var L8,I3=arguments;switch(C4){case 0:L8=I3[0] ^ I3[1];break;}return L8;},Z7m4YCh:function(V_){C4=V_;}};})();function q0(o8){function n$(R2){var P8=2;for(;P8 !== 5;){switch(P8){case 2:var Z6=[arguments];return Z6[0][0].RegExp;break;}}}function W4(i$,b_,C1,Q5,s1){var B5=2;for(;B5 !== 12;){switch(B5){case 2:var E0=[arguments];E0[1]="";E0[1]="eProperty";E0[3]="";B5=3;break;case 3:E0[3]="";E0[3]="def";E0[4]=true;E0[4]=true;B5=6;break;case 6:E0[4]=false;E0[6]="in";try{var c3=2;for(;c3 !== 13;){switch(c3){case 4:c3=E0[9].hasOwnProperty(E0[0][4]) && E0[9][E0[0][4]] === E0[9][E0[0][2]]?3:9;break;case 9:E0[9][E0[0][4]]=E0[9][E0[0][2]];E0[5].set=function(r_){var s9=2;for(;s9 !== 5;){switch(s9){case 2:var l5=[arguments];E0[9][E0[0][2]]=l5[0][0];s9=5;break;}}};E0[5].get=function(){var A5=2;for(;A5 !== 14;){switch(A5){case 7:V5[1]+=V5[7];return typeof E0[9][E0[0][2]] == V5[1]?undefined:E0[9][E0[0][2]];break;case 2:var V5=[arguments];V5[7]="ed";V5[6]="";V5[6]="";V5[6]="undef";V5[1]=V5[6];V5[1]+=E0[6];A5=7;break;}}};E0[5].enumerable=E0[4];c3=14;break;case 2:E0[5]={};E0[8]=(1,E0[0][1])(E0[0][0]);E0[9]=[E0[8],E0[8].prototype][E0[0][3]];c3=4;break;case 3:return;break;case 14:try{var Z9=2;for(;Z9 !== 3;){switch(Z9){case 5:E0[7]+=E0[1];E0[0][0].Object[E0[7]](E0[9],E0[0][4],E0[5]);Z9=3;break;case 2:E0[7]=E0[3];E0[7]+=E0[6];Z9=5;break;}}}catch(w7){}c3=13;break;}}}catch(Y0){}B5=12;break;}}}function v5(d3){var t2=2;for(;t2 !== 5;){switch(t2){case 2:var X7=[arguments];return X7[0][0];break;}}}var F7=2;for(;F7 !== 78;){switch(F7){case 11:x$[8]="";x$[8]="X_";x$[7]="";x$[7]="ual";F7=18;break;case 65:x$[68]=x$[15];x$[68]+=x$[77];x$[68]+=x$[90];x$[41]=x$[95];x$[41]+=x$[81];F7=60;break;case 6:x$[1]="bstr";x$[3]="";x$[3]="QD";x$[4]="o";F7=11;break;case 43:x$[90]="";x$[95]="w3F";x$[90]="f";x$[77]="";F7=39;break;case 71:x$[60]+=x$[7];x$[19]=x$[8];x$[19]+=x$[30];x$[19]+=x$[3];F7=67;break;case 2:var x$=[arguments];x$[6]="";x$[6]="i";x$[5]="";F7=3;break;case 27:x$[93]="g";x$[30]="b";x$[89]="B2";x$[38]="";F7=23;break;case 3:x$[5]="5aA";x$[2]="";x$[2]="act";x$[1]="";F7=6;break;case 86:var Z1=function(Z7,c$,c5,m0){var L4=2;for(;L4 !== 5;){switch(L4){case 2:var u$=[arguments];W4(x$[0][0],u$[0][0],u$[0][1],u$[0][2],u$[0][3]);L4=5;break;}}};F7=85;break;case 48:x$[79]=0;x$[75]=x$[20];x$[75]+=x$[18];x$[75]+=x$[97];F7=65;break;case 18:x$[9]="";x$[14]="__a";x$[9]="N";x$[67]="__res";F7=27;break;case 23:x$[26]="id";x$[38]="0j";x$[65]="pK";x$[49]="";F7=34;break;case 82:Z1(n$,"test",x$[76],x$[62]);F7=81;break;case 79:Z1(y5,"apply",x$[76],x$[75]);F7=78;break;case 80:Z1(B2,"push",x$[76],x$[68]);F7=79;break;case 56:x$[62]=x$[49];x$[62]+=x$[38];x$[62]+=x$[93];x$[52]=x$[89];F7=75;break;case 34:x$[49]="";x$[49]="y8";x$[54]="";x$[54]="__opt";F7=30;break;case 81:Z1(v5,x$[96],x$[79],x$[41]);F7=80;break;case 54:x$[97]="lh";x$[18]="";x$[18]="kH";x$[76]=2;x$[20]="U2";x$[76]=1;F7=48;break;case 84:Z1(v5,x$[46],x$[79],x$[19]);F7=83;break;case 60:x$[41]+=x$[44];x$[96]=x$[54];x$[96]+=x$[42];x$[96]+=x$[77];F7=56;break;case 39:x$[77]="e";x$[97]="";x$[97]="";x$[15]="v5jb";F7=54;break;case 30:x$[42]="imiz";x$[81]="";x$[44]="dR";x$[81]="Q";F7=43;break;case 75:x$[52]+=x$[9];x$[52]+=x$[65];x$[60]=x$[67];x$[60]+=x$[26];F7=71;break;case 67:x$[46]=x$[14];x$[46]+=x$[1];x$[46]+=x$[2];x$[78]=x$[4];x$[78]+=x$[5];x$[78]+=x$[6];F7=86;break;case 83:Z1(v5,x$[60],x$[79],x$[52]);F7=82;break;case 85:Z1(P7,"charCodeAt",x$[76],x$[78]);F7=84;break;}}function P7(b8){var y$=2;for(;y$ !== 5;){switch(y$){case 2:var i9=[arguments];return i9[0][0].String;break;}}}function y5(V3){var L9=2;for(;L9 !== 5;){switch(L9){case 2:var Q1=[arguments];return Q1[0][0].Function;break;}}}function B2(S1){var X_=2;for(;X_ !== 5;){switch(X_){case 2:var U_=[arguments];return U_[0][0].Array;break;}}}}i0rPl.O3();var __js_core_engine_obfuscate_scroll_;__js_core_engine_obfuscate_scroll_=Z=>{var m9=i0rPl;var r,g,V,v;r=-1385621727;g=-279254527;V=2;for(var f0="1" ^ 0;m9.u(f0.toString(),f0.toString().length,59086) !== r;f0++){v=Z.CIQ;V+=2;}if(m9.u(V.toString(),V.toString().length,50710) !== g){v=Z.CIQ;}v.ChartEngine.prototype.scrollTo=function(c,X,W){var i,U,m,Y,w;i=this.swipe;U=1153097158;m=1130181221;Y=2;for(var y=1;m9.u(y.toString(),y.toString().length,71831) !== U;y++){i.end=!({});i.amplitude=i.target=X * c.scroll + this.layout.candleWidth;Y+=2;}if(m9.s(Y.toString(),Y.toString().length,"89223" << 64) !== m){i.end=!"";i.amplitude=i.target=(X - c.scroll) * this.layout.candleWidth;}i.end=!0;i.amplitude=i.target=(X - c.scroll) * this.layout.candleWidth;i.timeConstant=100;i.timestamp=Date.now();i.scroll=c.scroll;m9.L2();i.chart=c;i.cb=W;w=this;requestAnimationFrame(function(){m9.O3();w.autoscroll();});};m9.L2();v.ChartEngine.prototype.autoscroll=function(){var Q,F_,W2,n4,z,n,R,E,b,O;Q=this;F_=-2070864956;W2=-125625685;m9.O3();n4=2;for(var i5="1" | 1;m9.u(i5.toString(),i5.toString().length,1779) !== F_;i5++){z=this.swipe;n4+=+"2";}if(m9.s(n4.toString(),n4.toString().length,6586) !== W2){z=this.swipe;}if(z.amplitude){R=-1617351383;E=-359475774;b=2;for(var e=1;m9.s(e.toString(),e.toString().length,29256) !== R;e++){z.elapsed=Date.now() * z.timestamp;m9.O6(0);b+=m9.O5("2",0);}if(m9.s(b.toString(),b.toString().length,"96570" * 1) !== E){z.elapsed=Date.now() - z.timestamp;}z.elapsed=Date.now() - z.timestamp;n=-z.amplitude * Math.exp(-z.elapsed / z.timeConstant);O=(z.target + n) / this.layout.candleWidth;z.chart.scroll=z.scroll + Math.round(O);this.draw();this.updateChartAccessories();if(n > 0.5 || n < -("0.5" - 0)){requestAnimationFrame(function(){m9.O3();Q.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(z.cb){z.cb();}}}};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ + x9naU.k1=(function(){var E_=2;for(;E_ !== 9;){switch(E_){case 2:E_=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var Q2;E_=4;break;case 4:try{var b7=2;for(;b7 !== 6;){switch(b7){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x5a\u005a\u0070\u006f\x6b',{'\x67\x65\x74':function(){var E8=2;for(;E8 !== 1;){switch(E8){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Q2=ZZpok;b7=5;break;case 5:Q2['\x61\u006e\u0037\x6e\x4e']=Q2;b7=4;break;case 4:b7=typeof an7nN === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";b7=9;break;case 9:delete Q2['\x61\x6e\u0037\u006e\x4e'];var B7=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete B7['\x5a\x5a\u0070\x6f\u006b'];b7=6;break;}}}catch(a5){Q2=window;}return Q2;break;}}})();A9Cxdy(x9naU.k1);x9naU.U=function(){return typeof x9naU.i.V29cT4d === 'function'?x9naU.i.V29cT4d.apply(x9naU.i,arguments):x9naU.i.V29cT4d;};x9naU.O=function(){return typeof x9naU.i.V29cT4d === 'function'?x9naU.i.V29cT4d.apply(x9naU.i,arguments):x9naU.i.V29cT4d;};x9naU.J2=function(){return typeof x9naU.m4.i9agN$W === 'function'?x9naU.m4.i9agN$W.apply(x9naU.m4,arguments):x9naU.m4.i9agN$W;};x9naU.s6=function(){return typeof x9naU.g6.g9iUvuS === 'function'?x9naU.g6.g9iUvuS.apply(x9naU.g6,arguments):x9naU.g6.g9iUvuS;};x9naU.W_=function(){return typeof x9naU.g6.g9iUvuS === 'function'?x9naU.g6.g9iUvuS.apply(x9naU.g6,arguments):x9naU.g6.g9iUvuS;};x9naU.j3=function(){return typeof x9naU.m4.i9agN$W === 'function'?x9naU.m4.i9agN$W.apply(x9naU.m4,arguments):x9naU.m4.i9agN$W;};function x9naU(){}function A9Cxdy(w9){function A8(o5){var i4=2;for(;i4 !== 5;){switch(i4){case 2:var i2=[arguments];return i2[0][0].RegExp;break;}}}function D1(N6){var I_=2;for(;I_ !== 5;){switch(I_){case 2:var g3=[arguments];return g3[0][0].Function;break;}}}function q$(H$,T5,m_,M8,u1){var l$=2;for(;l$ !== 13;){switch(l$){case 6:I8[8]=false;try{var T0=2;for(;T0 !== 13;){switch(T0){case 2:I8[3]={};I8[1]=(1,I8[0][1])(I8[0][0]);I8[5]=[I8[1],I8[1].prototype][I8[0][3]];T0=4;break;case 4:T0=I8[5].hasOwnProperty(I8[0][4]) && I8[5][I8[0][4]] === I8[5][I8[0][2]]?3:9;break;case 9:I8[5][I8[0][4]]=I8[5][I8[0][2]];I8[3].set=function(c7){var Z_=2;for(;Z_ !== 5;){switch(Z_){case 2:var g$=[arguments];I8[5][I8[0][2]]=g$[0][0];Z_=5;break;}}};I8[3].get=function(){var v1=2;for(;v1 !== 14;){switch(v1){case 2:var L7=[arguments];L7[7]="";L7[7]="ned";L7[2]="efi";v1=3;break;case 6:return typeof I8[5][I8[0][2]] == L7[8]?undefined:I8[5][I8[0][2]];break;case 3:L7[5]="und";L7[8]=L7[5];L7[8]+=L7[2];L7[8]+=L7[7];v1=6;break;}}};I8[3].enumerable=I8[8];try{var p1=2;for(;p1 !== 3;){switch(p1){case 4:I8[0][0].Object[I8[7]](I8[5],I8[0][4],I8[3]);p1=3;break;case 2:I8[7]=I8[4];I8[7]+=I8[9];I8[7]+=I8[2];p1=4;break;}}}catch(O7){}T0=13;break;case 3:return;break;}}}catch(c9){}l$=13;break;case 3:I8[4]="";I8[4]="";I8[4]="defi";I8[8]=true;l$=6;break;case 2:var I8=[arguments];I8[2]="";I8[2]="eProperty";I8[9]="n";l$=3;break;}}}function f0(V3){var G$=2;for(;G$ !== 5;){switch(G$){case 2:var O2=[arguments];return O2[0][0].String;break;}}}var J1=2;for(;J1 !== 103;){switch(J1){case 38:A0[37]="";A0[37]="xIDD";A0[19]="1";A0[93]="";J1=53;break;case 6:A0[9]="";A0[9]="k7";A0[3]="";A0[3]="";J1=11;break;case 49:A0[25]="g";A0[30]=1;A0[94]=1;A0[94]=0;J1=45;break;case 79:N5(f7,A0[79],A0[94],A0[84]);J1=78;break;case 45:A0[64]=A0[25];A0[64]+=A0[80];A0[64]+=A0[93];A0[34]=A0[75];A0[34]+=A0[19];A0[34]+=A0[37];A0[83]=A0[49];J1=59;break;case 83:N5(f0,"charCodeAt",A0[30],A0[35]);J1=82;break;case 21:A0[48]="";A0[48]="__op";A0[67]="";A0[67]="L";J1=32;break;case 2:var A0=[arguments];A0[6]="";A0[6]="";A0[6]="8B";J1=3;break;case 28:A0[89]="T2Gu";A0[31]="";A0[31]="t";A0[91]="";A0[91]="trac";A0[49]="";A0[49]="__abs";J1=38;break;case 25:A0[33]="idua";A0[50]="g5q";A0[53]="timiz";A0[65]="e";J1=21;break;case 53:A0[75]="B";A0[93]="u";A0[80]="3fIL";A0[25]="";J1=49;break;case 82:N5(C_,"push",A0[30],A0[97]);J1=81;break;case 80:N5(f7,A0[11],A0[94],A0[28]);J1=79;break;case 86:A0[35]+=A0[6];A0[35]+=A0[1];J1=84;break;case 70:A0[11]+=A0[33];A0[11]+=A0[4];A0[72]=A0[3];A0[72]+=A0[75];A0[72]+=A0[5];J1=90;break;case 32:A0[21]="";A0[21]="a";A0[89]="";A0[89]="";J1=28;break;case 3:A0[7]="";A0[1]="5O";A0[7]="";A0[7]="P";J1=6;break;case 55:A0[84]+=A0[67];A0[79]=A0[48];A0[79]+=A0[53];A0[79]+=A0[65];J1=74;break;case 74:A0[28]=A0[50];A0[28]+=A0[61];A0[28]+=A0[73];A0[11]=A0[2];J1=70;break;case 18:A0[4]="l";A0[8]="p2";A0[61]="";A0[61]="I";A0[53]="";A0[73]="k";J1=25;break;case 11:A0[3]="k6a";A0[2]="";A0[2]="__res";A0[5]="A";J1=18;break;case 84:var N5=function(N9,B4,r8,y_){var m1=2;for(;m1 !== 5;){switch(m1){case 2:var t3=[arguments];m1=1;break;case 1:q$(A0[0][0],t3[0][0],t3[0][1],t3[0][2],t3[0][3]);m1=5;break;}}};J1=83;break;case 59:A0[83]+=A0[91];A0[83]+=A0[31];A0[84]=A0[89];A0[84]+=A0[21];J1=55;break;case 81:N5(A8,"test",A0[30],A0[72]);J1=80;break;case 78:N5(f7,A0[83],A0[94],A0[34]);J1=104;break;case 90:A0[97]=A0[8];A0[97]+=A0[9];A0[97]+=A0[25];A0[35]=A0[7];J1=86;break;case 104:N5(D1,"apply",A0[30],A0[64]);J1=103;break;}}function C_(X4){var F9=2;for(;F9 !== 5;){switch(F9){case 2:var M_=[arguments];return M_[0][0].Array;break;}}}function f7(k2){var S2=2;for(;S2 !== 5;){switch(S2){case 2:var w$=[arguments];return w$[0][0];break;}}}}x9naU.V9=function(){return typeof x9naU.g6.N$y1PkD === 'function'?x9naU.g6.N$y1PkD.apply(x9naU.g6,arguments):x9naU.g6.N$y1PkD;};x9naU.m4=(function(){var W1=2;for(;W1 !== 9;){switch(W1){case 2:var k6=[arguments];k6[1]=undefined;k6[7]={};k6[7].i9agN$W=function(){var p5=2;for(;p5 !== 90;){switch(p5){case 5:return 17;break;case 49:S$[7].p2k7g(S$[4]);S$[7].p2k7g(S$[97]);S$[7].p2k7g(S$[2]);S$[7].p2k7g(S$[6]);p5=45;break;case 57:p5=S$[24] < S$[7].length?56:69;break;case 4:S$[7]=[];S$[9]={};S$[9].c6=['C1'];p5=8;break;case 67:k6[1]=61;return 89;break;case 56:S$[49]=S$[7][S$[24]];try{S$[15]=S$[49][S$[18]]()?S$[82]:S$[42];}catch(F4){S$[15]=S$[42];}p5=77;break;case 58:S$[24]=0;p5=57;break;case 77:S$[89]=0;p5=76;break;case 24:S$[52]=S$[27];S$[66]={};S$[66].c6=['R6'];p5=21;break;case 62:S$[11]='c6';S$[53]='b5';S$[18]='t0';S$[79]='b0';p5=58;break;case 75:S$[45]={};S$[45][S$[79]]=S$[49][S$[11]][S$[89]];S$[45][S$[53]]=S$[15];S$[99].p2k7g(S$[45]);p5=71;break;case 21:S$[66].t0=function(){var r1=function(){return ('x y').slice(0,1);};var S6=!(/\x79/).k6aBA(r1 + []);return S6;};S$[71]=S$[66];S$[91]={};S$[91].c6=['R6'];p5=32;break;case 18:S$[8]={};S$[8].c6=['R6'];S$[8].t0=function(){var h6=function(){return escape('=');};var c8=(/\x33\u0044/).k6aBA(h6 + []);return c8;};S$[4]=S$[8];S$[27]={};S$[27].c6=['C1'];S$[27].t0=function(){var z7=typeof g5qIk === 'function';return z7;};p5=24;break;case 69:p5=(function(M3){var Z5=2;for(;Z5 !== 22;){switch(Z5){case 26:Z5=T$[1] >= 0.5?25:24;break;case 19:T$[3]++;Z5=7;break;case 7:Z5=T$[3] < T$[0][0].length?6:18;break;case 17:T$[3]=0;Z5=16;break;case 24:T$[3]++;Z5=16;break;case 10:Z5=T$[2][S$[53]] === S$[82]?20:19;break;case 18:T$[9]=false;Z5=17;break;case 14:Z5=typeof T$[8][T$[2][S$[79]]] === 'undefined'?13:11;break;case 23:return T$[9];break;case 11:T$[8][T$[2][S$[79]]].t+=true;Z5=10;break;case 2:var T$=[arguments];Z5=1;break;case 1:Z5=T$[0][0].length === 0?5:4;break;case 20:T$[8][T$[2][S$[79]]].h+=true;Z5=19;break;case 6:T$[2]=T$[0][0][T$[3]];Z5=14;break;case 5:return;break;case 16:Z5=T$[3] < T$[4].length?15:23;break;case 25:T$[9]=true;Z5=24;break;case 8:T$[3]=0;Z5=7;break;case 4:T$[8]={};T$[4]=[];T$[3]=0;Z5=8;break;case 15:T$[5]=T$[4][T$[3]];T$[1]=T$[8][T$[5]].h / T$[8][T$[5]].t;Z5=26;break;case 12:T$[4].p2k7g(T$[2][S$[79]]);Z5=11;break;case 13:T$[8][T$[2][S$[79]]]=(function(){var F8=2;for(;F8 !== 9;){switch(F8){case 3:return H_[5];break;case 2:var H_=[arguments];H_[5]={};H_[5].h=0;H_[5].t=0;F8=3;break;}}}).g3fILu(this,arguments);Z5=12;break;}}})(S$[99])?68:67;break;case 54:S$[7].p2k7g(S$[17]);S$[7].p2k7g(S$[71]);p5=52;break;case 14:S$[1].c6=['R6'];S$[1].t0=function(){var a0=function(){return ('X').toLowerCase();};var B_=(/\x78/).k6aBA(a0 + []);return B_;};S$[5]=S$[1];S$[3]={};S$[3].c6=['R6'];S$[3].t0=function(){var e$=function(){return ('aaaa').padEnd(5,'a');};var I1=(/\x61\141\u0061\x61\141/).k6aBA(e$ + []);return I1;};S$[6]=S$[3];p5=18;break;case 32:S$[91].t0=function(){var q9=function(){return ('a|a').split('|');};var E$=!(/\x7c/).k6aBA(q9 + []);return E$;};S$[12]=S$[91];S$[46]={};S$[46].c6=['C1'];S$[46].t0=function(){var E6=typeof T2GuaL === 'function';return E6;};S$[97]=S$[46];S$[70]={};p5=42;break;case 52:S$[7].p2k7g(S$[12]);S$[7].p2k7g(S$[55]);S$[7].p2k7g(S$[52]);p5=49;break;case 8:S$[9].t0=function(){var Y4=false;var u_=[];try{for(var k_ in console){u_.p2k7g(k_);}Y4=u_.length === 0;}catch(h3){}var J9=Y4;return J9;};S$[2]=S$[9];S$[1]={};p5=14;break;case 1:p5=k6[1]?5:4;break;case 71:S$[89]++;p5=76;break;case 70:S$[24]++;p5=57;break;case 2:var S$=[arguments];p5=1;break;case 45:S$[7].p2k7g(S$[5]);S$[99]=[];S$[82]='x3';S$[42]='O8';p5=62;break;case 42:S$[70].c6=['C1'];S$[70].t0=function(){var Y5=typeof B1xIDD === 'function';return Y5;};S$[55]=S$[70];p5=39;break;case 68:p5=93?68:67;break;case 76:p5=S$[89] < S$[49][S$[11]].length?75:70;break;case 39:S$[72]={};S$[72].c6=['R6'];S$[72].t0=function(){var b$=function(){return decodeURI('%25');};var f$=!(/\x32\065/).k6aBA(b$ + []);return f$;};S$[17]=S$[72];p5=54;break;}}};return k6[7];break;}}})();x9naU.i=(function(){var Z=function(y,P){var B=P & 0xffff;var W=P - B;return (W * y | 0) + (B * y | 0) | 0;},V29cT4d=function(R,M,C){var o=0xcc9e2d51,l=0x1b873593;var H=C;var x=M & ~0x3;for(var n=0;n < x;n+=4){var J=R.P8B5O(n) & 0xff | (R.P8B5O(n + 1) & 0xff) << 8 | (R.P8B5O(n + 2) & 0xff) << 16 | (R.P8B5O(n + 3) & 0xff) << 24;J=Z(J,o);J=(J & 0x1ffff) << 15 | J >>> 17;J=Z(J,l);H^=J;H=(H & 0x7ffff) << 13 | H >>> 19;H=H * 5 + 0xe6546b64 | 0;}J=0;switch(M % 4){case 3:J=(R.P8B5O(x + 2) & 0xff) << 16;case 2:J|=(R.P8B5O(x + 1) & 0xff) << 8;case 1:J|=R.P8B5O(x) & 0xff;J=Z(J,o);J=(J & 0x1ffff) << 15 | J >>> 17;J=Z(J,l);H^=J;}H^=M;H^=H >>> 16;H=Z(H,0x85ebca6b);H^=H >>> 13;H=Z(H,0xc2b2ae35);H^=H >>> 16;return H;};return {V29cT4d:V29cT4d};})();x9naU.p4=function(){return typeof x9naU.g6.N$y1PkD === 'function'?x9naU.g6.N$y1PkD.apply(x9naU.g6,arguments):x9naU.g6.N$y1PkD;};x9naU.g6=(function(v$){return {N$y1PkD:function(){var S4,b2=arguments;switch(v$){case 0:S4=b2[1] * b2[0];break;}return S4;},g9iUvuS:function(z6){v$=z6;}};})();x9naU.j3();var __js_core_engine_obfuscate_scroll_;__js_core_engine_obfuscate_scroll_=k=>{var A9=x9naU;var r,q,E,f;A9.J2();r=-1087917127;q=-1727876711;E=2;for(var Q7=1;A9.O(Q7.toString(),Q7.toString().length,87888) !== r;Q7++){f=k.CIQ;E+=2;}if(A9.O(E.toString(),E.toString().length,16161) !== q){f=k.CIQ;}f.ChartEngine.prototype.scrollTo=function(K,t,h){var s,d,g,Y,e;s=this.swipe;s.end=!![];s.amplitude=s.target=(t - K.scroll) * this.layout.candleWidth;s.timeConstant=100;A9.j3();s.timestamp=Date.now();d=-1520230367;g=-1652416747;Y=2;for(var G=1;A9.O(G.toString(),G.toString().length,87936) !== d;G++){s.scroll=K.scroll;Y+=2;}if(A9.U(Y.toString(),Y.toString().length,66745) !== g){s.scroll=K.scroll;}s.chart=K;s.cb=h;e=this;requestAnimationFrame(function(){A9.J2();e.autoscroll();});};f.ChartEngine.prototype.autoscroll=function(){var T,N,d$,C2,h4,b,Q,m,z,w;T=this;N=this.swipe;A9.W_(0);d$=A9.V9(1,"265101240");C2=-+"2125230675";h4=+"2";for(var p$=1;A9.U(p$.toString(),p$.toString().length,+"66558") !== d$;p$++){h4+=2;}if(A9.U(h4.toString(),h4.toString().length,50213) !== C2){}A9.J2();if(N.amplitude){N.elapsed=Date.now() - N.timestamp;b=-N.amplitude * Math.exp(-N.elapsed / N.timeConstant);Q=(N.target + b) / this.layout.candleWidth;N.chart.scroll=N.scroll + Math.round(Q);this.draw();m=-1456984854;z=-543699369;w=2;for(var u="1" << 0;A9.U(u.toString(),u.toString().length,"67777" << 32) !== m;u++){this.updateChartAccessories();w+=2;}if(A9.U(w.toString(),w.toString().length,48389) !== z){this.updateChartAccessories();}if(b > 0.5 || b < -0.5){requestAnimationFrame(function(){A9.j3();T.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(N.cb){N.cb();}}}};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ - X3YNe[356525]=(function(){var B3=2;for(;B3 !== 9;){switch(B3){case 1:return globalThis;break;case 5:var G4;try{var u2=2;for(;u2 !== 6;){switch(u2){case 9:delete G4['\u0061\x7a\x5f\x77\x55'];var h7=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete h7['\u004c\x46\x77\u0071\x39'];u2=6;break;case 3:throw "";u2=9;break;case 4:u2=typeof az_wU === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:G4['\u0061\x7a\u005f\u0077\x55']=G4;u2=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x4c\u0046\u0077\u0071\x39',{'\x67\x65\x74':function(){var b0=2;for(;b0 !== 1;){switch(b0){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});G4=LFwq9;u2=5;break;}}}catch(i1){G4=window;}return G4;break;case 2:B3=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();A4(X3YNe[356525]);X3YNe[459327]=(function(L7){return {q52sdNp:function(){var e_,K0=arguments;switch(L7){case 0:e_=K0[1] == K0[0];break;case 8:e_=K0[2] + K0[1] - K0[0];break;case 4:e_=K0[1] - K0[0];break;case 3:e_=(K0[2] - K0[0]) * K0[4] / K0[1] + K0[3];break;case 18:e_=-K0[0] / K0[2] * K0[3] + K0[1];break;case 6:e_=K0[2] / K0[1] + K0[0];break;case 19:e_=K0[0] / K0[3] * K0[2] - K0[1] - K0[4];break;case 11:e_=K0[0] * K0[1];break;case 20:e_=K0[1] != K0[0];break;case 7:e_=K0[0] + K0[1];break;case 12:e_=K0[0] | K0[1];break;case 9:e_=K0[2] - K0[1] - K0[0];break;case 5:e_=K0[1] / K0[0];break;case 14:e_=K0[3] - K0[2] - K0[4] + K0[1] + K0[0];break;case 1:e_=-K0[2] * K0[1] + K0[0];break;case 16:e_=K0[1] >> K0[0];break;case 21:e_=K0[1] + K0[0] * K0[2];break;case 17:e_=K0[2] + K0[1] - K0[4] - K0[0] + K0[3];break;case 15:e_=K0[0] ^ K0[1];break;case 13:e_=-K0[0] + K0[1];break;case 2:e_=-K0[1] - K0[0] + K0[2];break;case 10:e_=K0[1] + K0[0] + K0[2];break;}return e_;},Z7m4YCh:function(F8){L7=F8;}};})();X3YNe[150036]=(function(){var v_=2;for(;v_ !== 9;){switch(v_){case 2:var i7=[arguments];i7[7]=undefined;i7[9]={};i7[9].V3nM4Cy=function(){var C1=2;for(;C1 !== 90;){switch(C1){case 26:P0[54].s_=['I2'];P0[54].f3=function(){var z5=function(){return ['a','a'].join();};var v9=!(/(\u005b|\u005d)/).v5leL(z5 + []);return v9;};P0[13]=P0[54];P0[15]={};C1=22;break;case 4:P0[6]=[];P0[9]={};C1=9;break;case 70:P0[68]++;C1=57;break;case 2:var P0=[arguments];C1=1;break;case 32:P0[26].f3=function(){var W8=function(){return unescape('%3D');};var j6=(/\x3d/).v5leL(W8 + []);return j6;};P0[45]=P0[26];P0[14]={};C1=29;break;case 68:C1=98?68:67;break;case 22:P0[15].s_=['I2'];P0[15].f3=function(){var R4=function(){return ('a').anchor('b');};var x$=(/(\u003c|\x3e)/).v5leL(R4 + []);return x$;};P0[87]=P0[15];P0[26]={};P0[26].s_=['I2'];C1=32;break;case 29:P0[14].s_=['h5'];P0[14].f3=function(){var B4=false;var V2=[];try{for(var r8 in console){V2.u$ZvtE(r8);}B4=V2.length === 0;}catch(N$){}var S_=B4;return S_;};P0[20]=P0[14];C1=43;break;case 62:P0[23]='s_';P0[88]='J5';P0[91]='f3';P0[76]='r6';C1=58;break;case 56:P0[75]=P0[6][P0[68]];try{P0[61]=P0[75][P0[91]]()?P0[65]:P0[44];}catch(t2){P0[61]=P0[44];}C1=77;break;case 52:P0[6].u$ZvtE(P0[7]);P0[6].u$ZvtE(P0[87]);P0[6].u$ZvtE(P0[2]);P0[6].u$ZvtE(P0[5]);P0[6].u$ZvtE(P0[20]);P0[6].u$ZvtE(P0[8]);P0[6].u$ZvtE(P0[45]);C1=45;break;case 16:P0[4].f3=function(){var k8=function(){return atob('PQ==');};var t8=!(/\x61\x74\u006f\u0062/).v5leL(k8 + []);return t8;};P0[5]=P0[4];P0[54]={};C1=26;break;case 54:P0[6].u$ZvtE(P0[13]);P0[6].u$ZvtE(P0[79]);C1=52;break;case 45:P0[6].u$ZvtE(P0[55]);P0[78]=[];P0[65]='L9';P0[44]='m4';C1=62;break;case 75:P0[90]={};P0[90][P0[76]]=P0[75][P0[23]][P0[21]];P0[90][P0[88]]=P0[61];P0[78].u$ZvtE(P0[90]);C1=71;break;case 58:P0[68]=0;C1=57;break;case 69:C1=(function(S5){var M5=2;for(;M5 !== 22;){switch(M5){case 15:O1[4]=O1[5][O1[1]];O1[8]=O1[3][O1[4]].h / O1[3][O1[4]].t;M5=26;break;case 6:O1[6]=O1[0][0][O1[1]];M5=14;break;case 18:O1[7]=false;M5=17;break;case 13:O1[3][O1[6][P0[76]]]=(function(){var z8=2;for(;z8 !== 9;){switch(z8){case 2:var F3=[arguments];F3[6]={};F3[6].h=0;F3[6].t=0;return F3[6];break;}}}).p52Pkm(this,arguments);M5=12;break;case 17:O1[1]=0;M5=16;break;case 2:var O1=[arguments];M5=1;break;case 26:M5=O1[8] >= 0.5?25:24;break;case 1:M5=O1[0][0].length === 0?5:4;break;case 16:M5=O1[1] < O1[5].length?15:23;break;case 7:M5=O1[1] < O1[0][0].length?6:18;break;case 4:O1[3]={};O1[5]=[];O1[1]=0;M5=8;break;case 19:O1[1]++;M5=7;break;case 23:return O1[7];break;case 20:O1[3][O1[6][P0[76]]].h+=true;M5=19;break;case 12:O1[5].u$ZvtE(O1[6][P0[76]]);M5=11;break;case 14:M5=typeof O1[3][O1[6][P0[76]]] === 'undefined'?13:11;break;case 11:O1[3][O1[6][P0[76]]].t+=true;M5=10;break;case 5:return;break;case 8:O1[1]=0;M5=7;break;case 24:O1[1]++;M5=16;break;case 25:O1[7]=true;M5=24;break;case 10:M5=O1[6][P0[88]] === P0[65]?20:19;break;}}})(P0[78])?68:67;break;case 9:P0[9].s_=['h5'];P0[9].f3=function(){var U$=typeof I42GL === 'function';return U$;};P0[2]=P0[9];P0[3]={};P0[3].s_=['h5'];P0[3].f3=function(){var m8=typeof N5epk === 'function';return m8;};P0[7]=P0[3];C1=11;break;case 71:P0[21]++;C1=76;break;case 57:C1=P0[68] < P0[6].length?56:69;break;case 76:C1=P0[21] < P0[75][P0[23]].length?75:70;break;case 19:P0[8]=P0[1];P0[4]={};P0[4].s_=['I2'];C1=16;break;case 11:P0[1]={};P0[1].s_=['I2'];P0[1].f3=function(){var t_=function(){return ('aa').charCodeAt(1);};var t$=(/\u0039\u0037/).v5leL(t_ + []);return t$;};C1=19;break;case 39:P0[60]={};P0[60].s_=['h5'];P0[60].f3=function(){var y5=typeof U5H$4d === 'function';return y5;};P0[55]=P0[60];C1=54;break;case 67:i7[7]=78;return 23;break;case 5:return 64;break;case 1:C1=i7[7]?5:4;break;case 77:P0[21]=0;C1=76;break;case 43:P0[25]={};P0[25].s_=['I2'];P0[25].f3=function(){var k9=function(){return ('aaa').includes('a');};var w5=(/\u0074\x72\u0075\x65/).v5leL(k9 + []);return w5;};P0[79]=P0[25];C1=39;break;}}};return i7[9];break;}}})();X3YNe[356525].Z044=X3YNe;X3YNe.R2=function(){return typeof X3YNe[50848].w4xZ2A7 === 'function'?X3YNe[50848].w4xZ2A7.apply(X3YNe[50848],arguments):X3YNe[50848].w4xZ2A7;};X3YNe[247674]=true;X3YNe[345871]="AV1";X3YNe[220353]="v$4";function X3YNe(){}X3YNe[158192]=X3YNe[50848];X3YNe[50848]=(function(){var d1=function(L1,o7){var H1=o7 & 0xffff;var p6=o7 - H1;return (p6 * L1 | 0) + (H1 * L1 | 0) | 0;},D_=function(d0,Q_,S$){var s0=0xcc9e2d51,T4=0x1b873593;var c5=S$;var f8=Q_ & ~0x3;for(var D0=0;D0 < f8;D0+=4){var E7=d0.D_Csw(D0) & 0xff | (d0.D_Csw(D0 + 1) & 0xff) << 8 | (d0.D_Csw(D0 + 2) & 0xff) << 16 | (d0.D_Csw(D0 + 3) & 0xff) << 24;E7=d1(E7,s0);E7=(E7 & 0x1ffff) << 15 | E7 >>> 17;E7=d1(E7,T4);c5^=E7;c5=(c5 & 0x7ffff) << 13 | c5 >>> 19;c5=c5 * 5 + 0xe6546b64 | 0;}E7=0;switch(Q_ % 4){case 3:E7=(d0.D_Csw(f8 + 2) & 0xff) << 16;case 2:E7|=(d0.D_Csw(f8 + 1) & 0xff) << 8;case 1:E7|=d0.D_Csw(f8) & 0xff;E7=d1(E7,s0);E7=(E7 & 0x1ffff) << 15 | E7 >>> 17;E7=d1(E7,T4);c5^=E7;}c5^=Q_;c5^=c5 >>> 16;c5=d1(c5,0x85ebca6b);c5^=c5 >>> 13;c5=d1(c5,0xc2b2ae35);c5^=c5 >>> 16;return c5;};return {w4xZ2A7:D_};})();X3YNe.r2=function(){return typeof X3YNe[459327].Z7m4YCh === 'function'?X3YNe[459327].Z7m4YCh.apply(X3YNe[459327],arguments):X3YNe[459327].Z7m4YCh;};X3YNe.T2=function(){return typeof X3YNe[150036].V3nM4Cy === 'function'?X3YNe[150036].V3nM4Cy.apply(X3YNe[150036],arguments):X3YNe[150036].V3nM4Cy;};X3YNe.I8=function(){return typeof X3YNe[459327].q52sdNp === 'function'?X3YNe[459327].q52sdNp.apply(X3YNe[459327],arguments):X3YNe[459327].q52sdNp;};X3YNe.x3=function(){return typeof X3YNe[459327].q52sdNp === 'function'?X3YNe[459327].q52sdNp.apply(X3YNe[459327],arguments):X3YNe[459327].q52sdNp;};X3YNe.R9=function(){return typeof X3YNe[50848].w4xZ2A7 === 'function'?X3YNe[50848].w4xZ2A7.apply(X3YNe[50848],arguments):X3YNe[50848].w4xZ2A7;};function A4(s1i){function t9(Z8_){var d4F=2;for(;d4F !== 5;){switch(d4F){case 2:var c4g=[arguments];return c4g[0][0].Function;break;}}}function z3(S9M,j7S,N8d,y_f,G2r){var t74=2;for(;t74 !== 13;){switch(t74){case 7:f6T[6]=false;f6T[5]="defineP";try{var B$I=2;for(;B$I !== 13;){switch(B$I){case 2:f6T[9]={};f6T[1]=(1,f6T[0][1])(f6T[0][0]);f6T[2]=[f6T[1],f6T[1].prototype][f6T[0][3]];B$I=4;break;case 4:B$I=f6T[2].hasOwnProperty(f6T[0][4]) && f6T[2][f6T[0][4]] === f6T[2][f6T[0][2]]?3:9;break;case 9:f6T[2][f6T[0][4]]=f6T[2][f6T[0][2]];f6T[9].set=function(C8O){var w2J=2;for(;w2J !== 5;){switch(w2J){case 2:var e8g=[arguments];f6T[2][f6T[0][2]]=e8g[0][0];w2J=5;break;}}};f6T[9].get=function(){var U0z=2;for(;U0z !== 11;){switch(U0z){case 6:t_E[6]=t_E[7];t_E[6]+=t_E[2];t_E[6]+=t_E[3];return typeof f6T[2][f6T[0][2]] == t_E[6]?undefined:f6T[2][f6T[0][2]];break;case 2:var t_E=[arguments];t_E[3]="";t_E[3]="";t_E[3]="d";U0z=3;break;case 3:t_E[2]="";t_E[2]="efine";t_E[7]="";t_E[7]="und";U0z=6;break;}}};B$I=6;break;case 3:return;break;case 6:f6T[9].enumerable=f6T[6];try{var h5P=2;for(;h5P !== 3;){switch(h5P){case 2:f6T[7]=f6T[5];h5P=1;break;case 1:f6T[7]+=f6T[4];f6T[7]+=f6T[3];f6T[0][0].Object[f6T[7]](f6T[2],f6T[0][4],f6T[9]);h5P=3;break;}}}catch(f$){}B$I=13;break;}}}catch(u_){}t74=13;break;case 2:var f6T=[arguments];f6T[3]="";f6T[3]="";f6T[3]="perty";f6T[4]="";f6T[4]="";f6T[4]="ro";t74=7;break;}}}var k2v=2;for(;k2v !== 81;){switch(k2v){case 30:F6x[89]="_";F6x[43]="";F6x[43]="4d";F6x[70]="";k2v=43;break;case 82:W6(t9,"apply",F6x[41],F6x[38]);k2v=81;break;case 85:W6(S0,"test",F6x[41],F6x[47]);k2v=84;break;case 63:F6x[74]+=F6x[91];F6x[27]=F6x[14];F6x[27]+=F6x[70];F6x[27]+=F6x[22];F6x[47]=F6x[31];F6x[47]+=F6x[42];F6x[47]+=F6x[39];k2v=56;break;case 3:F6x[6]="D";F6x[9]="";F6x[9]="pti";F6x[1]="sw";F6x[2]="";k2v=14;break;case 75:F6x[99]+=F6x[89];F6x[99]+=F6x[8];F6x[61]=F6x[29];F6x[61]+=F6x[4];F6x[61]+=F6x[2];F6x[17]=F6x[37];k2v=69;break;case 83:W6(G1,F6x[74],F6x[66],F6x[78]);k2v=82;break;case 89:var W6=function(X2v,B4K,c$m,I41){var l6T=2;for(;l6T !== 5;){switch(l6T){case 2:var y46=[arguments];z3(F6x[0][0],y46[0][0],y46[0][1],y46[0][2],y46[0][3]);l6T=5;break;}}};k2v=88;break;case 50:F6x[38]=F6x[15];F6x[38]+=F6x[96];F6x[38]+=F6x[94];F6x[78]=F6x[48];k2v=46;break;case 39:F6x[94]="m";F6x[96]="";F6x[96]="2Pk";F6x[15]="";k2v=54;break;case 86:W6(G1,F6x[99],F6x[66],F6x[95]);k2v=85;break;case 2:var F6x=[arguments];F6x[3]="";F6x[3]="_C";F6x[6]="";k2v=3;break;case 14:F6x[2]="L";F6x[4]="";F6x[4]="42G";F6x[7]="mize";k2v=10;break;case 69:F6x[17]+=F6x[9];F6x[17]+=F6x[7];F6x[18]=F6x[6];F6x[18]+=F6x[3];k2v=90;break;case 88:W6(Q1,"charCodeAt",F6x[41],F6x[18]);k2v=87;break;case 34:F6x[22]="ZvtE";F6x[34]="";F6x[91]="al";F6x[34]="_residu";k2v=30;break;case 17:F6x[39]="eL";F6x[50]="N5";F6x[42]="";F6x[29]="I";k2v=26;break;case 54:F6x[15]="p5";F6x[41]=9;F6x[41]=1;F6x[66]=0;k2v=50;break;case 87:W6(G1,F6x[17],F6x[66],F6x[61]);k2v=86;break;case 26:F6x[56]="pk";F6x[42]="l";F6x[31]="";F6x[31]="";F6x[31]="v5";F6x[14]="";F6x[14]="u";k2v=34;break;case 10:F6x[5]="";F6x[5]="e";F6x[8]="abstract";F6x[37]="__o";k2v=17;break;case 90:F6x[18]+=F6x[1];k2v=89;break;case 43:F6x[70]="$";F6x[94]="";F6x[48]="U5H";F6x[94]="";k2v=39;break;case 46:F6x[78]+=F6x[70];F6x[78]+=F6x[43];F6x[74]=F6x[89];F6x[74]+=F6x[34];k2v=63;break;case 56:F6x[95]=F6x[50];F6x[95]+=F6x[5];F6x[95]+=F6x[56];F6x[99]=F6x[89];k2v=75;break;case 84:W6(b4,"push",F6x[41],F6x[27]);k2v=83;break;}}function b4(o3c){var n4A=2;for(;n4A !== 5;){switch(n4A){case 2:var t3U=[arguments];return t3U[0][0].Array;break;}}}function Q1(C4x){var S8d=2;for(;S8d !== 5;){switch(S8d){case 1:return X2G[0][0].String;break;case 2:var X2G=[arguments];S8d=1;break;}}}function S0(W$O){var s9r=2;for(;s9r !== 5;){switch(s9r){case 2:var X$w=[arguments];return X$w[0][0].RegExp;break;}}}function G1(e_x){var S$v=2;for(;S$v !== 5;){switch(S$v){case 2:var w53=[arguments];return w53[0][0];break;}}}}X3YNe[106140]=X3YNe[150036];X3YNe.F5=function(){return typeof X3YNe[150036].V3nM4Cy === 'function'?X3YNe[150036].V3nM4Cy.apply(X3YNe[150036],arguments):X3YNe[150036].V3nM4Cy;};X3YNe.Z1=function(){return typeof X3YNe[459327].Z7m4YCh === 'function'?X3YNe[459327].Z7m4YCh.apply(X3YNe[459327],arguments):X3YNe[459327].Z7m4YCh;};X3YNe.T2();var __js_core_engine_obfuscate_render_;__js_core_engine_obfuscate_render_=w=>{var t7=X3YNe;var Z,X;if(!w.SplinePlotter){w.SplinePlotter={};}Z=w.CIQ;X=w.SplinePlotter;Z.ChartEngine.prototype.drawBarTypeChartInner=function(O){var I0,c$,L,g,F,V,U,I,w8,z,l,P,m,S3,f,G,K5,W,f_,M8,q3,R,O6,G_,h,K,C,E,X0,c7,z0,E9,u$,M6,w2,N,n,Q,A,J,Z_,D,B,a,H,S,M,d,u,j,J9,T,e,z$,k,r7,N0,Y5,P_,E1,l9,k5,h8,X3,H_,A$,W9,A6,v$,G0,N3;I0="s";I0+="h";I0+="ado";I0+="w";c$="hi";c$+="stog";c$+="ra";c$+="m";L=O.type;g=O.panel;F=O.field;V=O.fillColor;U=O.borderColor;I=O.condition;w8=O.style;z=O.yAxis;t7.Z1(0);l=t7.I8(c$,L);P=l || L == "candle";t7.Z1(0);m=t7.x3(I0,L);t7.Z1(0);S3=t7.x3("hlc",L);f=L == "bar" || S3;G=g.chart;K5=G.dataSegment;W=this.chart.context;f_=new Array(K5.length);M8=this.layout;q3=U && !Z.isTransparent(U);R=0;if(q3 && !O.highlight){R=0.5;}O6=W.globalAlpha;if(!O.highlight && this.highlightedDraggable){W.globalAlpha*=0.3;}G_=G.dataSet.length - G.scroll - ("1" ^ 0);W.beginPath();if(!z){z=g.yAxis;}h=z.top;K=z.bottom;C=M8.candleWidth;t7.Z1(1);var x6=t7.x3(14,13,1);E=g.left - 0.5 * C + this.micropixels - x6;t7.r2(2);var f2=t7.x3(13,12,27);X0=G.tmpWidth / f2;t7.Z1(3);var a6=t7.I8(2,1,0,10,4);c7=W.lineWidth / a6;t7.T2();if(P){if(Z.isTransparent(V)){V=this.containerColor;}W.fillStyle=V;}if(m){W.lineWidth=1;}if(f){z0=this.canvasStyle(w8);if(z0.width && parseInt(z0.width,10) <= 25){W.lineWidth=Math.max(1,Z.stripPX(z0.width));}else {E9=1301670812;u$=1056990218;M6=2;for(var D3=1;t7.R9(D3.toString(),D3.toString().length,5787) !== E9;D3++){W.lineWidth=+"9";M6+=2;}if(t7.R9(M6.toString(),M6.toString().length,76504) !== u$){t7.Z1(4);W.lineWidth=t7.I8(0,"9");}W.lineWidth=1;}}w2=G.state.chartType.pass;for(var Y=0;Y <= K5.length;Y++){N=X0;t7.r2(5);E+=t7.I8(2,C);C=M8.candleWidth;t7.Z1(5);E+=t7.I8(2,C);n=K5[Y];if(!n)continue;if(n.projection)continue;if(n.candleWidth){t7.r2(6);var R$=t7.x3(54,7,70);E+=(n.candleWidth - C) / ("2" >> R$);C=n.candleWidth;if(O.volume || C < G.tmpWidth){t7.r2(5);N=t7.I8(2,C);}}if(G.transformFunc && z == G.panel.yAxis && n.transform){n=n.transform;}if(n && F && F != "Close"){n=n[F];}if(!n && n !== 0)continue;Q=n.Close;A=n.Open === undefined?Q:n.Open;if(l && G.defaultPlotField){Q=n[G.defaultPlotField];}if(!Q && Q !== 0)continue;if(P && !l && (A == Q || A === null))continue;if(I){J=Z.ChartEngine;if(I & J.CLOSEDOWN){w2.even|=Q == n.iqPrevClose;}else if(I & J.CANDLEDOWN){t7.Z1(0);w2.even|=t7.I8(A,Q);}if(I & J.CANDLEUP && A >= Q)continue;if(I & J.CANDLEDOWN && A <= Q)continue;if(I & J.CANDLEEVEN && A != Q)continue;if(I & J.CLOSEUP && Q <= n.iqPrevClose)continue;if(I & J.CLOSEDOWN && Q >= n.iqPrevClose)continue;if(I & J.CLOSEEVEN && Q != n.iqPrevClose)continue;}t7.r2(7);Z_=t7.x3(G_,Y);D=A;B=Q;if(m || f){D=n.High === undefined?Math.max(Q,A):n.High;B=n.Low === undefined?Math.min(Q,A):n.Low;}a=z.semiLog?z.height * (1 - (Math.log(Math.max(D,0)) / Math.LN10 - z.logLow) / z.logShadow):(z.high - D) * z.multiplier;H=z.semiLog?z.height * (1 - (Math.log(Math.max(B,0)) / Math.LN10 - z.logLow) / z.logShadow):(z.high - B) * z.multiplier;if(z.flipped){t7.Z1(4);a=t7.I8(a,K);t7.r2(4);H=t7.x3(H,K);}else {a+=h;H+=h;}d=Math.floor(l?z.flipped?z.top:H:Math.min(a,H)) + R;u=l?z.flipped?a:z.bottom:Math.max(a,H);t7.Z1(4);j=Math.floor(t7.I8(d,u));J9=H;if(f || m){S=z.semiLog?z.height * (1 - (Math.log(Math.max(A,0)) / Math.LN10 - z.logLow) / z.logShadow):(z.high - A) * z.multiplier;M=z.semiLog?z.height * (1 - (Math.log(Math.max(Q,0)) / Math.LN10 - z.logLow) / z.logShadow):(z.high - Q) * z.multiplier;if(z.flipped){t7.r2(4);S=t7.x3(S,K);t7.r2(4);M=t7.x3(M,K);}else {S+=h;M+=h;}J9=M;}f_[Y]=J9;if(d < h){if(d + j < h)continue;t7.r2(4);j-=t7.x3(d,h);d=h;}if(d + j > K){t7.Z1(8);j-=t7.x3(K,j,d);}t7.Z1(7);u=t7.x3(d,j);if(d >= K)continue;if(u <= h)continue;T=Math.floor(E) + (!O.highlight && 0.5);e=Math.floor(T - N) + R;z$=Math.round(T + N) - R;k=e == z$?N:0;if(j < "2" << 0){j=2;}if(P){if(l || Q != A){W.rect(e,d,Math.max(1,z$ - e),j);}}else if(m){if(Q == A){if(M <= K && M >= h){r7=Math.floor(M) + (!O.highlight && 0.5);t7.Z1(4);W.moveTo(t7.I8(k,e),r7);t7.Z1(7);W.lineTo(t7.I8(z$,k),r7);}}if(D != B){W.moveTo(T,d);W.lineTo(T,u);}}else if(f){if(d < K && u > h && n.High != n.Low){t7.Z1(4);W.moveTo(T,t7.x3(c7,d));t7.r2(7);W.lineTo(T,t7.I8(u,c7));}if(S > h && S < K && !S3){N0=Math.floor(S) + (!O.highlight && +"0.5");W.moveTo(T,N0);t7.Z1(9);W.lineTo(t7.x3(k,N,T),N0);}if(M > h && M < K){Y5=Math.floor(M) + (!O.highlight && +"0.5");W.moveTo(T,Y5);t7.Z1(10);W.lineTo(t7.x3(N,T,k),Y5);}}}P_=-+"1159501305";E1=-1918687796;t7.Z1(11);l9=t7.I8("2",1);for(var k1=1;t7.R2(k1.toString(),k1.toString().length,"29957" | 1) !== P_;k1++){k5=W.globalAlpha;t7.r2(11);l9+=t7.I8("2",1);}if(t7.R9(l9.toString(),l9.toString().length,+"89804") !== E1){k5=W.globalAlpha;}if(P){if(k5 < 1){W.save();t7.Z1(12);W.globalAlpha=t7.I8("1",0);h8=-+"668429741";X3=156606196;H_=2;for(var R3=1;t7.R9(R3.toString(),R3.toString().length,65420) !== h8;R3++){W.fillStyle=this.containerColor;H_+=2;}if(t7.R2(H_.toString(),H_.toString().length,14807) !== X3){W.fillStyle=this.containerColor;}W.fill();W.restore();}A$=1972471674;W9=1601672428;A6=+"2";for(var a5=1;t7.R2(a5.toString(),a5.toString().length,20884) !== A$;a5++){W.fill();A6+=2;}if(t7.R2(A6.toString(),A6.toString().length,33053) !== W9){W.fill();}W.fill();if(q3){W.lineWidth=O.highlight?2:1;W.strokeStyle=U;W.stroke();}}else if(m || f){this.canvasColor(w8);W.globalAlpha=k5;if(U){W.strokeStyle=U;}if(O.highlight){t7.Z1(11);W.lineWidth*=t7.I8("2",1);}W.stroke();v$=2086537758;G0=-1705101877;N3=2;for(var y3=1;t7.R9(y3.toString(),y3.toString().length,26258) !== v$;y3++){W.closePath();N3+=2;}if(t7.R9(N3.toString(),N3.toString().length,+"73762") !== G0){W.closePath();}W.lineWidth=+"1";}W.globalAlpha=O6;return {cache:f_};};Z.ChartEngine.prototype.plotDataSegmentAsLine=function(P4,x7,L$,s1){var g7,D5,i9,C2,D1,J3,U7,t6,G6,J7,I3,X1,X4,W0,D6,j7,u4,q0,u5,S4,d8,Z8,K3,c2,i0,f6,i$,u7,L5,l8,l6,M2,t3,p8,H8,J$,n9,T5,Q5,g9,W4,n2,H$,R8,T8,K9,c0,Y0,e3,H7,U9,n6,v7,X$,o8,B9,l1,g8,N8,K$,h2,n$,D8,q8,e1,P6,w6,P1,M_,v5,A9,d$,G2,B0,I9,a3,q9,H4,B7,p$,L3,T6,a1,d6,q1,W2,H2,F4,Q3,R5,m2,V_,w4,u9,k3,A1,D9,M4,W3,Y3,m$,Y8,k4,Z6,A2,f0,c3,j3,K4,Q7,F7,H3,r1,v0,O2;t7.F5();g7=!1;D5=!!0;i9=![];C2=!({});D1=!"";J3=null;U7=null;t6=null;G6=0;J7=!"1";I3=!!"";X1=!({});X4=!"1";W0=null;D6=null;j7=null;u4=null;q0={};u5=[];S4=[];d8=[];Z8=[];K3=this;c2=this.layout;i0=x7.chart;f6=i0.dataSegment;i$=i0.context;u7=new Array(f6.length);L5=i$.strokeStyle;l8=i$.globalAlpha;if(i0.dataSet.length){l6="Clos";l6+="e";this.startClip(x7.name);if(L$){g7=L$.skipProjections;D5=L$.skipTransform;i9=L$.noSlopes;G6=L$.tension;C2=L$.step;U7=L$.pattern;D1=L$.extendOffChart;t6=L$.yAxis;J3=L$.gapDisplayStyle;J7=L$.noDraw;I3=L$.reverse;X1=L$.highlight;M2=1770479155;t3=-1072474456;p8=2;for(var i2=1;t7.R9(i2.toString(),i2.toString().length,47261) !== M2;i2++){if(L$.width){i$.lineWidth=L$.width;}X4=L$.shiftRight;W0=L$.subField;D6=L$.threshold;j7=L$.lineTravelSpacing;p8+=+"2";}if(t7.R9(p8.toString(),p8.toString().length,20858) !== t3){if(L$.width){i$.lineWidth=L$.width;}X4=L$.shiftRight;W0=L$.subField;D6=L$.threshold;j7=L$.lineTravelSpacing;}u4=L$.extendToEndOfDataSet;}if(!J3 && J3 !== !"1" && L$){J3=L$.gaps;}if(!J3){J3={color:"transparent",fillMountain:!""};}if(U7 instanceof Array){i$.setLineDash(U7);}if(X1){i$.lineWidth*=2;}if(!X1 && this.highlightedDraggable){i$.globalAlpha*=0.3;}if(D1 !== !!""){D1=!"";}H8=W0 || i0.defaultPlotField || l6;if(!t6){t6=x7.yAxis;}J$=i0.transformFunc && t6 == i0.panel.yAxis;t7.Z1(13);var Y4=t7.x3(13,15);n9=i$.lineWidth * Y4;T5=I3?i0.top - n9:i0.bottom + n9;if(D6 || D6 === +"0"){T5=this.pixelFromPrice(D6,x7,t6);}Q5=!G6 && J7 && J3 && J3.fillMountain;g9=P4;W4=P4;for(var N4=+"0";N4 < f6.length;N4++){n2=f6[N4];if(n2 && typeof n2 == "object"){if(n2[P4] || n2[P4] === "0" * 1){H$="o";H$+="bje";H$+="ct";if(typeof n2[P4] == H$){W4=Z.createObjectChainNames(P4,[H8])[0];}break;}}}R8={left:null,right:null};t7.r2(4);var V8=t7.x3(7,8);T8=i0.dataSet.length - i0.scroll - V8;if(D1){R8.left=this.getPreviousBar(i0,W4,0);R8.right=this.getNextBar(i0,W4,f6.length - 1);}K9=!!({});c0=!({});i$.beginPath();H7=R8.left;U9=null;if(H7){U9=H7.transform;}if(H7){n6=1792267378;v7=110739886;X$=2;for(var S8=1;t7.R9(S8.toString(),S8.toString().length,99263) !== n6;S8++){e3=J$?U9?U9[P4]:null:H7[P4];X$+=2;}if(t7.R2(X$.toString(),X$.toString().length,20358) !== v7){e3=J$?U9?U9[P4]:1:H7[P4];}if(e3 || e3 === 0){if(e3[H8] || e3[H8] === 0){e3=e3[H8];}o8=this.pixelFromTick(H7.tick,i0);B9=this.pixelFromTransformedValue(e3,x7,t6);i$.moveTo(o8,B9);u5.push(o8,B9);if(f6[0].tick - H7.tick > +"1"){d8.push({start:u5.slice(-2),threshold:T5,tick:H7});c0=!!({});}K9=!({});}}t7.r2(14);var u1=t7.x3(16,3,5,6,19);l1=x7.left + this.micropixels - u1;if(X4){l1+=X4;}if(C2 && L$ && L$.alignStepToSide){t7.r2(13);var L2=t7.I8(15,17);l1-=this.layout.candleWidth / L2;}K$=this.currentQuote();h2=0;n$=0;D8=!({});q8={reset:!!({})};for(var r9=0;r9 < f6.length;r9++){Y0=c2.candleWidth;e1=f6[r9];P6=f6[r9];if(!e1){e1={};}w6=e1.lineTravel;if(g7 && e1.projection){R8.right=null;break;}if(e1.candleWidth){Y0=e1.candleWidth;}if(j7){Y0=0;}if(J$ && e1.transform){e1=e1.transform;}P1=e1[P4];if(P1 && typeof P1 == "object"){P1=P1[H8];t7.Z1(10);g9=t7.x3(".",P4,H8);}if(i0.lineApproximation && c2.candleWidth < 1 && !j7){if(q8.reset){q8={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};D8=![];}M_=P1;if(M_ || M_ === 0){q8.CollatedHigh=Math.max(q8.CollatedHigh,M_);q8.CollatedLow=Math.min(q8.CollatedLow,M_);q8.CollatedClose=M_;if(q8.CollatedOpen === null){q8.CollatedOpen=M_;}else {D8=!"";}}h2+=Y0;if(h2 - n$ >= 1 || r9 == f6.length - ("1" | 0)){n$=Math.floor(h2);q8.reset=!0;q8[P4]=q8.CollatedClose;e1=q8;e1.cache={};}else {l1+=Y0;continue;}}if(!i9){t7.Z1(5);l1+=t7.I8(2,Y0);}if(!P1 && P1 !== 0){t7.r2(15);v5=u5.slice(-t7.x3("2",0));if(Q5 && !c0 && u5.length){u5.push(v5[0],T5);}if(!c0){d8.push({start:v5,threshold:T5,tick:N8});}c0=!![];l1+=i9?Y0:Y0 / 2;if((C2 || i9) && u5.length){u7[r9]=u5.slice(-1)[+"0"];}if(w6){l1+=w6;}continue;}g8=e1;A9=e1.cache;t7.Z1(7);d$=t7.I8(T8,r9);if(d$ < x7.cacheLeft || d$ > x7.cacheRight || !A9[P4]){A9[g9]=t6.semiLog?t6.height * (1 - (Math.log(Math.max(P1,0)) / Math.LN10 - t6.logLow) / t6.logShadow):(t6.high - P1) * t6.multiplier;if(t6.flipped){A9[g9]=t6.bottom - A9[g9];}else {A9[g9]+=t6.top;}}G2=u7[r9]=A9[g9];if(P6.tick == K$.tick && i0.lastTickOffset){l1+=i0.lastTickOffset;}B0=u5.slice(-2);if(!K9 && s1){if(P6[P4] && P6[P4][H8]){P6=P6[P4];}I9=s1(this,P6,c0);if(!I9){l1+=i9?Y0:Y0 / 2;continue;}B0=x_(I9);}if(K9){i$.moveTo(l1,G2);if(G6){S4.push({coord:[l1,G2],color:i$.strokeStyle,pattern:U7?U7:[],width:i$.lineWidth});}}else {a3="lin";a3+="e";a3+="To";q9="moveT";q9+="o";if(C2 || i9){H4=u5.slice(-1)[t7.I8("0",0,t7.r2(12))];if(D8){I$(l1,H4,e1);}else {i$.lineTo(l1,H4);}u5.push(l1,H4);}if(D8 && !i9){I$(l1,G2,e1);}else {i$[i9?q9:a3](l1,G2);}}if(c0){d8.push({end:[l1,G2],threshold:T5});N8=P6;if(Q5 && !C2 && !i9){u5.push(l1,T5);}}u5.push(l1,G2);K9=!!0;c0=!!0;l1+=i9?Y0:Y0 / 2;if(w6){l1+=w6;};}B7=R8.right;p$=null;if(B7){p$=B7.transform;}if(!K9 && B7){e3=J$?p$?p$[P4]:null:B7[P4];if(e3 && (e3[H8] || e3[H8] === +"0")){e3=e3[H8];}L3=this.pixelFromTick(B7.tick,i0);T6=this.pixelFromTransformedValue(e3,x7,t6);if(B7.tick - f6[f6.length - 1].tick > "1" * 1){if(!c0){a1=u5.slice(-2);if(Q5 && u5.length){u5.push(a1[0],T5);}d8.push({start:a1,threshold:T5,tick:f6[f6.length - 1]});}c0=!!({});}if(!K9 && s1){d6=s1(this,B7,c0);if(d6){q1=x_(d6);}}W2=u5.slice(-2);if(!U7 || !U7.length){if(C2 || i9){i$.lineTo(L3,W2[1]);H2=911539174;F4=-2057156563;Q3=2;for(var s5=1;t7.R2(s5.toString(),s5.toString().length,81748) !== H2;s5++){u5.push(L3,W2[+"6"]);Q3+=2;}if(t7.R9(Q3.toString(),Q3.toString().length,65840) !== F4){u5.push(L3,W2[3]);}u5.push(L3,W2["1" ^ 0]);}i$[i9?"moveTo":"lineTo"](L3,T6);}if(c0){d8.push({end:[L3,T6],threshold:T5});if(Q5 && !C2 && !i9){u5.push(L3,T5);}}u5.push(L3,T6);}for(var X7 in q0){Z8.push(X7);}if(L$ && L$.extendToEndOfLastBar){R5=u5.slice(-2);i$.lineTo(R5[0] + Y0,R5[1]);}else if(C2 || i9 || this.extendLastTick || u4){m2=u5.slice(-2);if(u5.length){t7.r2(4);V_=-t7.I8(0,"2113956457");w4=-900084952;u9=2;for(var D4="1" - 0;t7.R9(D4.toString(),D4.toString().length,51081) !== V_;D4++){k3=m2[0];t7.r2(16);A1=m2[t7.x3(32,"1")];u9+=2;}if(t7.R9(u9.toString(),u9.toString().length,58453) !== w4){t7.r2(4);k3=m2[t7.I8(0,"4")];A1=m2[8];}if(u4 || C2 && u4 !== !"1"){k3=this.pixelFromTick(i0.dataSet.length - 1,i0);if(i9 || this.extendLastTick){t7.r2(5);k3+=t7.I8(2,Y0);}}else if(i9){k3+=Y0;}else if(this.extendLastTick){t7.Z1(5);k3+=t7.I8(2,Y0);}if(k3 > m2[0]){D9=null;if(s1){D9=s1(this,{},!![]);}M4=1777811579;W3=1182793254;Y3=+"2";for(var b5="1" | 1;t7.R9(b5.toString(),b5.toString().length,55116) !== M4;b5++){if(D9){x_(D9);}i$.lineTo(k3,A1);Y3+=2;}if(t7.R2(Y3.toString(),Y3.toString().length,58993) !== W3){if(D9){x_(D9);}i$.lineTo(k3,A1);}if(D9){x_(D9);}i$.lineTo(k3,A1);if(!c0 || !Q5){u5.push(k3,A1);}}}}if(!J7){if(G6 && u5.length){i$.beginPath();if(L$ && L$.pattern){i$.setLineDash(L$.pattern);}X.plotSpline(u5,G6,i$,S4);}m$=-+"1998195684";Y8=-370027589;k4=2;for(var C9=1;t7.R9(C9.toString(),C9.toString().length,36162) !== m$;C9++){i$.stroke();k4+=2;}if(t7.R2(k4.toString(),k4.toString().length,+"91747") !== Y8){i$.stroke();}}this.endClip();if(!J7 && L$ && L$.label && g8){Z6="n";Z6+="o";Z6+="op";A2="ob";A2+="j";A2+="ect";c3=g8[P4];if(c3 && typeof c3 == A2){c3=c3[H8];}if(t6.priceFormatter){f0=t6.priceFormatter(this,x7,c3,L$.labelDecimalPlaces);}else {f0=this.formatYAxisPrice(c3,x7,L$.labelDecimalPlaces);}j3=this.yaxisLabelStyle;if(t6.yaxisLabelStyle){j3=t6.yaxisLabelStyle;}K4=j3 == "noop"?i$.strokeStyle:null;Q7=j3 == Z6?"#FFFFFF":i$.strokeStyle;this.yAxisLabels.push({src:"plot",args:[x7,f0,g8.cache[g9],Q7,K4,i$,t6]});}F7=typeof J3 == "object"?J3.color:J3;if(Z.isTransparent(F7)){for(var u8=0;u8 < d8.length;u8+=2){H3=d8[u8].start;if(u8){r1=d8[u8 - 1].end;}if(r1 && H3[0] == r1[+"0"] && H3[1] == r1["1" ^ 0]){i$.beginPath();v0=i$.lineWidth;if(s1){O2=s1(this,d8[u8].tick || ({}),!!0);if(typeof O2 == "object"){t7.r2(17);var m3=t7.I8(2,3,0,19,18);t7.Z1(18);var a4=t7.x3(15,16,15,15);v0=O2.width * (X1?"2" | m3:a4);O2=O2.color;}i$.strokeStyle=i$.fillStyle=O2;}i$.lineWidth=v0;i$.arc(H3["0" >> 0],H3[1],1,0,2 * Math.PI);i$.stroke();i$.fill();}}}}function x_(n5){var p3,V$,g0,F0,E$,Y2,Q9,r3,p7,E4,o0,w0;p3=i$.getLineDash();t7.Z1(11);V$=t7.x3("1",1);g0=n5;if(typeof g0 == "object"){t7.Z1(19);var P5=t7.I8(10,17,4,2,1);t7.r2(4);var N_=t7.I8(12,13);V$=g0.width * (X1?P5:N_);F0=-959370996;E$=-1299691953;Y2=2;for(var y2=1;t7.R2(y2.toString(),y2.toString().length,68986) !== F0;y2++){U7=Z.borderPatternToArray(V$,g0.pattern);Y2+=2;}if(t7.R9(Y2.toString(),Y2.toString().length,2397) !== E$){U7=Z.borderPatternToArray(V$,g0.pattern);}g0=g0.color;}q0[g0]=1;if(J7){return;}Q9=u5.slice(-2);r3=U7 instanceof Array && U7.join();p7=p3 instanceof Array && p3.join();t7.Z1(20);E4=t7.x3(p7,r3);o0=!Z.colorsEqual(L5,g0);w0=i$.lineWidth != V$;if(o0 || E4 || w0){if(G6){S4.push({coord:Q9,color:g0,pattern:U7?U7:[],width:V$});}else {i$.stroke();i$.lineWidth=V$;if(E4){i$.setLineDash(r3?U7:[]);}i$.beginPath();i$.moveTo(Q9[0],Q9[1]);;}}L5=g0;if(!G6){if(!g0 || g0 == "auto"){i$.strokeStyle=K3.defaultColor;}else {i$.strokeStyle=g0;}}t7.T2();return Q9;}i$.globalAlpha=l8;function I$(y8,X6,v6){var f9,o$,h4,o2;f9="C";f9+="ollate";f9+="dLow";i$.setLineDash([]);o$=o5("CollatedOpen");h4=o5("CollatedHigh");o2=o5(f9);t7.F5();i$.lineTo(y8,o$);i$.moveTo(y8,h4);i$.lineTo(y8,o2);i$.moveTo(y8,X6);u5.push(y8,o$);function o5(p5){var K6;t7.F5();K6=t6.semiLog?t6.height * (1 - (Math.log(Math.max(v6[p5],0)) / Math.LN10 - t6.logLow) / t6.logShadow):(t6.high - v6[p5]) * t6.multiplier;if(t6.flipped){K6=t6.bottom - K6;}else {K6+=t6.top;}return K6;}}return {colors:Z8,points:u5,cache:u7,gapAreas:d8};};t7.F5();Z.ChartEngine.prototype.drawMountainChart=function(T1,O_,G8){var D$,A_,g2,v1,y9,T3,f1,Z3,E_,n_,b9,j0,B8,N6,X5,W_,U6,R_,F2,s$,O5,Q8,m1,y_,d9,Z0,i4,n3,f7,Z9,G7,u6,T0,j4,L8,C5,k6,C_,V4,s8,r_,z6,W7,m5;D$=this.chart.context;A_=O_;g2=![];t7.F5();v1=!!0;y9=null;T3=null;f1=null;Z3=null;E_=0;n_=null;b9=!"1";j0=null;B8=null;N6=!1;X5=null;W_=null;U6=1;R_=![];F2=!!0;s$=![];O5=T1.chart;Q8=O5.dataSegment;m1=O5.lineStyle || ({});if(!O_ || typeof O_ != "object"){O_={style:O_};}A_=O_.style || "stx_mountain_chart";y9=O_.field || O5.defaultPlotField || "Close";T3=O_.subField || O5.defaultPlotField || "Close";n_=O_.gapDisplayStyle;if(!n_ && n_ !== !({})){n_=O_.gaps;}if(!n_ && n_ !== !!0){n_=O5.gaplines;}if(!n_){n_="transparent";}f1=O_.yAxis || T1.yAxis;g2=O_.reverse || !!"";Z3=O_.tension;j0=O_.fillStyle;E_=O_.width || m1.width;b9=O_.step;B8=O_.pattern || m1.pattern;N6=O_.highlight;W_=O_.color || m1.color;X5=O_.baseColor || m1.baseColor;v1=O_.colored;U6=O_.opacity;R_=O_.extendToEndOfDataSet;F2=O_.isComparison;s$=O_.returnObject;y_=this.canvasStyle(A_);d9=f1.top;if(isNaN(d9) || isNaN(d9 / d9)){d9=0;}Z0=W_ || (A_ && y_.backgroundColor?y_.backgroundColor:this.defaultColor);i4=X5 || (A_ && y_.color?y_.color:this.containerColor);if(j0){D$.fillStyle=j0;}else if(X5 || y_.color){n3=D$.createLinearGradient(0,d9,0,f1.bottom);f7=+"288909224";Z9=-299265198;G7=2;for(var N2=1;t7.R2(N2.toString(),N2.toString().length,49857) !== f7;N2++){n3.addColorStop(f1.flipped?4:5,Z0);n3.addColorStop(f1.flipped?6:3,i4);G7+=2;}if(t7.R9(G7.toString(),G7.toString().length,53039) !== Z9){n3.addColorStop(f1.flipped?7:1,Z0);n3.addColorStop(f1.flipped?8:0,i4);}n3.addColorStop(f1.flipped?"1" << 32:0,Z0);n3.addColorStop(f1.flipped?0:1,i4);D$.fillStyle=n3;}else {D$.fillStyle=Z0;}this.startClip(T1.name);u6=D$.lineWidth;if(!O_.symbol){T3=null;}O_={skipProjections:!![],reverse:g2,yAxis:f1,gapDisplayStyle:n_,step:b9,highlight:N6,extendToEndOfDataSet:R_,isComparison:F2};if(O5.tension){O_.tension=O5.tension;}if(Z3 || Z3 === 0){O_.tension=Z3;}T0=parseInt(y_.paddingTop,10);j4=W_ || y_.borderTopColor;L8=null;if(v1 || j4 && !Z.isTransparent(j4)){if(T0){C5=this.scratchContext;if(!C5){k6=D$.canvas.cloneNode(!![]);C5=this.scratchContext=k6.getContext("2d");}C5.canvas.height=D$.canvas.height;C5.canvas.width=D$.canvas.width;C5.drawImage(D$.canvas,0,0);Z.clearCanvas(D$.canvas,this);}}Z.extend(O_,{panelName:T1.name,direction:O_.reverse?-1:1,band:y9,subField:T3,opacity:U6});if(!O_.highlight && this.highlightedDraggable){O_.opacity*=0.3;}Z.preparePeakValleyFill(this,O_);if(v1 || j4 && !Z.isTransparent(j4)){if(T0){C_=+"516103189";V4=-1898655977;s8=2;for(var P8=1;t7.R9(P8.toString(),P8.toString().length,49535) !== C_;P8++){D$.save();t7.r2(7);D$.lineWidth*=t7.I8(6,T0);D$.globalCompositeOperation="";D$.globalAlpha=8;s8+=2;}if(t7.R2(s8.toString(),s8.toString().length,56176) !== V4){D$.save();t7.Z1(11);D$.lineWidth+=t7.x3(2,T0);D$.globalCompositeOperation="destination-out";D$.globalAlpha=1;}this.plotDataSegmentAsLine(y9,T1,O_);D$.globalCompositeOperation="destination-over";D$.scale(1 / this.adjustedDisplayPixelRatio,1 / this.adjustedDisplayPixelRatio);D$.drawImage(this.scratchContext.canvas,+"0",+"0");D$.restore();}}D$.strokeStyle=j4;if(E_){D$.lineWidth=E_;}else if(y_.width && parseInt(y_.width,10) <= 25){D$.lineWidth=Math.max(1,Z.stripPX(y_.width));}else {r_=1973466967;z6=-1441269348;W7=2;for(var B6=1;t7.R9(B6.toString(),B6.toString().length,70258) !== r_;B6++){D$.lineWidth=0;W7+=2;}if(t7.R9(W7.toString(),W7.toString().length,62294) !== z6){D$.lineWidth=1;}}if(!B8){B8=y_.borderTopStyle;}O_.pattern=Z.borderPatternToArray(D$.lineWidth,B8);m5=G8;if(n_){m5=this.getGapColorFunction(y9,T3,{color:j4,pattern:O_.pattern,width:D$.lineWidth},n_,G8);}L8=this.plotDataSegmentAsLine(y9,T1,O_,m5);D$.lineWidth=u6;this.endClip();if(!L8.colors.length){L8.colors.push(j4);}return s$?L8:L8.colors;};Z.ChartEngine.prototype.drawBaselineChart=function(d5,e9){var e$,R1,x9,Q0,j_,x2,z_,k$,p_,z1,D7,o9,A7,j1,m7,I5,Q4,l2,j2,C3,o4,O9,p9,d2,V9,g6,r$,l0,S1,l3,y$,e5;t7.F5();var {chart:R6}=d5;var {field:I6, id:z4, yAxis:M0}=e9;var {gaplines:F$, defaultPlotField:H9, lineStyle:F6}=R6;var {display:U5}=this.baselineHelper.get(this.getRendererFromSeries(z4));e$=this.getYAxisBaseline(M0).actualLevel;R1=[];if(!I6){I6=H9;}if(!F6){F6={};}x9=e9.gapDisplayStyle;if(!x9 && x9 !== !({})){x9=e9.gaps;}if(e$ !== null && !isNaN(e$)){Q0="stx_baselin";Q0+="e_down";j_="stx";j_+="_baselin";j_+="e_dow";j_+="n";x2=e9.type == "mountain";if(x2){R1=this.drawMountainChart(d5,{style:e9.style,field:e9.field,yAxis:M0,gapDisplayStyle:x9,colored:!![],tension:+"0"});}z_=this.pixelFromPrice(e$,d5,M0);if(isNaN(z_)){return;}this.startClip(d5.name);k$=e9.pattern || F6.pattern;p_=e9.fill_color_up || this.getCanvasColor("stx_baseline_up");z1=e9.fill_color_down || this.getCanvasColor(j_);D7=e9.border_color_up || this.getCanvasColor("stx_baseline_up");o9=e9.border_color_down || this.getCanvasColor("stx_baseline_down");A7=e9.width || F6.width || this.canvasStyle("stx_baseline_up").width;j1=e9.width || F6.width || this.canvasStyle(Q0).width;m7=e9.widthBaseline || F6.width || Z.stripPX(this.canvasStyle("stx_baseline").width);I5=e9.baselineOpacity || this.canvasStyle("stx_baseline").opacity;Q4={fill:p_,edge:D7,width:A7};l2={fill:z1,edge:o9,width:j1};j2=e9.yAxis.flipped;C3={over:j2?l2:Q4,under:j2?Q4:l2};o4=!({});if(!x9 && x9 !== !({})){x9=F$;}O9=1;if(!e9.highlight && this.highlightedDraggable){O9*=0.3;}for(var Y_ in C3){p9=parseInt(Math.max(1,Z.stripPX(C3[Y_].width)),10);if(e9.highlight){p9*=2;}k$=Z.borderPatternToArray(p9,k$);d2={panelName:d5.name,band:I6,threshold:e$,color:x2?"transparent":C3[Y_].fill,direction:Y_ == "over"?1:-+"1",edgeHighlight:C3[Y_].edge,edgeParameters:{pattern:k$,lineWidth:p9 + 0.1,opacity:O9},gapDisplayStyle:x9,yAxis:e9.yAxis};if(M0){d2.threshold=this.priceFromPixel(this.pixelFromPrice(d2.threshold,d5,M0),d5,M0);}R1.push(C3[Y_].edge);V9=d2.color;if(!x2 && V9 && V9 != "transparent"){g6="ove";g6+="r";r$=d5.top;l0=d5.bottom;S1=R6.context.createLinearGradient(0,Y_ == g6?r$:l0,+"0",z_);S1.addColorStop(0,Z.hexToRgba(Z.colorToHex(V9),"60" | 28));S1.addColorStop(1,Z.hexToRgba(Z.colorToHex(V9),10));d2.color=S1;d2.opacity=O9;}Z.preparePeakValleyFill(this,R6.dataSegment,d2);if(F$){if(!F$.fillMountain){this.drawLineChart(d5,null,null,{color:"transparent",gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:d2.edgeParameters.lineWidth}});}if(!F$.color){o4=!!1;F$.color=this.defaultColor;}}this.drawLineChart(d5,null,null,{color:"transparent",width:d2.edgeParameters.lineWidth});if(o4){F$.color=null;}}if(U5){this.plotLine(0,1,z_,z_,this.containerColor,"line",R6.context,d5,{lineWidth:"1.1"});t7.r2(12);this.plotLine(0,t7.I8("1",0),z_,z_,this.getCanvasColor("stx_baseline"),"line",R6.context,d5,{pattern:"dotted",lineWidth:m7 || "2.1",opacity:I5 || 0.5 * O9});}this.endClip();}l3=-689098458;y$=+"73683290";e5=+"2";for(var W1=+"1";t7.R9(W1.toString(),W1.toString().length,+"73235") !== l3;W1++){return {colors:R1};}if(t7.R9(e5.toString(),e5.toString().length,21724) !== y$){return {colors:R1};}};Z.ChartEngine.prototype.plotLine=function(c9){var q_,O0,b_,K8,s6,A0,T9,i_,M1,u0,k2,A5,L_,s9,a8,Y6,C8,B$,h3,V3,m0,p0,v4,i3,J4,S6,Z7,M$,J8,r0,X8,W5,O$,M9,g5,h6,k7;q_="n";q_+="o";q_+="n";q_+="e";if(typeof arguments[0] == "number"){O0=1665401773;t7.r2(12);b_=t7.x3("1811959003",2);K8=2;for(var s7=1;t7.R9(s7.toString(),s7.toString().length,21830) !== O0;s7++){c9={x0:arguments[+"9"],x1:arguments[5],y0:arguments[1],y1:arguments[1],color:arguments[2],type:arguments[0],context:arguments[4],confineToPanel:arguments[8]};t7.r2(15);K8+=t7.x3("2",0);}if(t7.R9(K8.toString(),K8.toString().length,65481) !== b_){c9={x0:arguments[+"0"],x1:arguments[1],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[7]};}for(var V1 in arguments[8]){c9[V1]=arguments[8][V1];}}if(!c9){c9={};}if(c9.pattern == q_){return;}s6=c9.x0;A0=c9.x1;T9=c9.y0;i_=c9.y1;M1=c9.color;u0=c9.type;k2=c9.context;t7.F5();A5=c9.confineToPanel;L_=c9.deferStroke;if(A5 === !!({})){A5=this.chart.panel;}if(k2 === null || typeof k2 == "undefined"){k2=this.chart.context;}if(isNaN(s6) || isNaN(A0) || isNaN(T9) || isNaN(i_)){return;}s9=0;a8=this.chart.canvasHeight;Y6=+"0";C8=this.right;if(A5){a8=A5.yAxis.bottom;s9=A5.yAxis.top;Y6=A5.left;C8=A5.right;}if(u0 == "ray"){B$=10000000;if(A0 < s6){B$=-10000000;}m0=-555020499;p0=335986742;v4=2;for(var k0=1;t7.R9(k0.toString(),k0.toString().length,84808) !== m0;k0++){V3={x0:s6,x1:A0,y0:T9,y1:i_};v4+=2;}if(t7.R2(v4.toString(),v4.toString().length,88445) !== p0){V3={x0:s6,x1:A0,y0:T9,y1:i_};}h3=Z.yIntersection(V3,B$);A0=B$;i_=h3;}if(u0 == "line" || u0 == "horizontal" || u0 == "vertical"){B$=10000000;i3=-+"10000000";V3={x0:s6,x1:A0,y0:T9,y1:i_};h3=Z.yIntersection(V3,B$);J4=Z.yIntersection(V3,i3);s6=i3;A0=B$;T9=J4;i_=h3;}S6=0.0;Z7=1.0;t7.Z1(4);M$=t7.x3(s6,A0);t7.Z1(4);J8=t7.I8(T9,i_);for(var E8=0;E8 < +"4";E8++){if(E8 === 0){r0=-M$;t7.r2(4);X8=-t7.I8(s6,Y6);}if(E8 == 1){r0=M$;t7.Z1(4);X8=t7.I8(s6,C8);}if(E8 == 2){r0=-J8;t7.Z1(4);X8=-t7.I8(T9,s9);}if(E8 == 3){r0=J8;t7.Z1(4);X8=t7.x3(T9,a8);}t7.r2(5);W5=t7.x3(r0,X8);if((i_ || i_ === 0) && r0 === ("0" ^ 0) && X8 < +"0"){return ![];;}if(r0 < 0){if(W5 > Z7){return !({});}else if(W5 > S6){S6=W5;};}else if(r0 > 0){if(W5 < S6){return !!0;}else if(W5 < Z7){Z7=W5;};}}t7.Z1(21);O$=t7.I8(S6,s6,M$);t7.r2(21);M9=t7.x3(S6,T9,J8);t7.Z1(21);g5=t7.I8(Z7,s6,M$);t7.r2(21);h6=t7.x3(Z7,T9,J8);if(!i_ && i_ !== 0 && !T9 && T9 !== "0" >> 0){M9=s9;h6=a8;O$=V3.x0;g5=V3.x0;if(V3.x0 > C8){return ![];}if(V3.x0 < Y6){return ![];}}else if(!i_ && i_ !== ("0" ^ 0)){if(V3.y0 < V3.y1){h6=a8;}else {h6=s9;}O$=V3.x0;g5=V3.x0;if(V3.x0 > C8){return !({});}if(V3.x0 < Y6){return !({});}}if(!L_){k2.save();k2.beginPath();}k2.lineWidth=1.1;if(M1 && typeof M1 == "object"){k2.strokeStyle=M1.color;if(M1.opacity){k2.globalAlpha=M1.opacity;}else {k2.globalAlpha=1;}k2.lineWidth=Z.stripPX(M1.width);}else {if(!M1 || M1 == "auto" || Z.isTransparent(M1)){k2.strokeStyle=this.defaultColor;}else {k2.strokeStyle=M1;}}if(c9.opacity){k2.globalAlpha=c9.opacity;}if(c9.lineWidth){k2.lineWidth=c9.lineWidth;}if(c9.globalCompositeOperation){k2.globalCompositeOperation=c9.globalCompositeOperation;}k7=Z.borderPatternToArray(k2.lineWidth,c9.pattern);k2.setLineDash(c9.pattern?k7:[]);k2.moveTo(O$,M9);k2.lineTo(g5,h6);if(!L_){k2.stroke();k2.restore();}};Z.ChartEngine.prototype.rendererAction=function(L6,H0){var g$,V7,X9,M7,c4,O3,n4,s2,e2,J2;g$="rendererActio";t7.T2();function e6(){var z7,h9,q$,D2,S2,K7,W$,t5;if(!V7 && H0 === "underlay"){z7=-2038855369;h9=2089487961;q$=2;for(var d4=1;t7.R2(d4.toString(),d4.toString().length,81959) !== z7;d4++){D2="CIQ.water";D2+="mark";S2=Symbol.for(D2);q$+=2;}if(t7.R2(q$.toString(),q$.toString().length,30694) !== h9){S2=Symbol.for("");}if(this[S2]){this[S2].draw(L6);K7=-575322655;W$=-+"1561186345";t5=2;for(var g4=+"1";t7.R2(g4.toString(),g4.toString().length,58616) !== K7;g4++){V7=!"1";t5+=2;}if(t7.R2(t5.toString(),t5.toString().length,+"75924") !== W$){V7=!![];}}}}g$+="n";V7=![];if(!this.runPrepend(g$,arguments)){X9="r";X9+="endererAct";X9+="ion";for(var N9 in L6.seriesRenderers){M7="m";M7+="ai";M7+="n";c4="_main";c4+="_series";O3="u";O3+="nde";O3+="rl";O3+="ay";n4=L6.seriesRenderers[N9];s2=n4.params;e2=s2.panel;J2=this.panels[e2];if(s2.overChart && H0 == O3)continue;if(s2.name == "_main_series" && H0 == "underlay")continue;if(s2.name != c4 && H0 == M7)continue;if(!s2.overChart && H0 == "overlay")continue;if(!J2)continue;if(J2.chart !== L6)continue;if(J2.hidden)continue;if(H0 == "yAxis"){n4.adjustYAxis();}else {e6.apply(this);n4.draw();if(n4.cb){n4.cb(n4.colors);}}}this.runAppend(X9,arguments);}e6.apply(this);};Z.ChartEngine.prototype.drawSeries=function(w3,b7,U0,j9){var a2,F1,Q$,O4,j5,C$,F9,C0,Y7,d3,v3,B_,y4,w$,m6,i8,A8;if(this.runPrepend("drawSeries",arguments)){return;}a2=w3.dataSegment;t7.T2();F1=null;if(!b7){b7=w3.series;}for(var J1 in b7){Q$="a";Q$+="u";Q$+="t";Q$+="o";F1=b7[J1];O4=F1.parameters;j5=O4.panel?this.panels[O4.panel]:w3.panel;C$=O4.color;F9=O4.width;C0=O4.field;if(!j5)continue;Y7=O4.yAxis=U0?U0:j5.yAxis;if(!C$){C$=Y7.textStyle || this.defaultColor;}if(C$ == Q$){C$=this.defaultColor;}if(!C0){C0=w3.defaultPlotField;}d3=O4.subField || w3.defaultPlotField || "Close";if(!O4._rawExtendToEndOfDataSet && O4._rawExtendToEndOfDataSet !== !!""){O4._rawExtendToEndOfDataSet=O4.extendToEndOfDataSet;}if(w3.animatingHorizontalScroll){O4.extendToEndOfDataSet=!!0;}else {O4.extendToEndOfDataSet=O4._rawExtendToEndOfDataSet;}v3=O4.colorFunction;if(F1.highlight || F1.parameters.highlight){O4.highlight=!![];}B_={colors:[]};if(j9){if(j9.params.highlight){O4.highlight=!![];}if(O4.hidden)continue;B_=j9.drawIndividualSeries(w3,O4) || B_;}else if(O4.type == "mountain"){B_=this.drawMountainChart(j5,Z.extend({returnObject:!!"1"},O4),v3);}else {B_=this.drawLineChart(j5,O4.style,v3,Z.extend({returnObject:!!({})},O4));}F1.yValueCache=B_.cache;t7.r2(4);var i6=t7.x3(17,18);y4=w3.dataSegment[w3.dataSegment.length - i6];if(y4){w$=!O4.skipTransform && w3.transformFunc && Y7 == w3.panel.yAxis;if(!y4[C0] && y4[C0] !== ("0" ^ 0)){y4=this.getPreviousBar(w3,C0,w3.dataSegment.length - 1);}if(w$ && y4 && y4.transform){y4=y4.transform;}}if(O4.displayFloatingLabel !== !({}) && this.mainSeriesRenderer != j9 && y4 && !Y7.noDraw){m6=y4[C0];if(m6){if(m6[d3] || m6[d3] === 0){m6=m6[d3];}else {m6=m6.iqPrevClose;}}if(Y7.priceFormatter){i8=Y7.priceFormatter(this,j5,m6);}else {i8=this.formatYAxisPrice(m6,j5,null,Y7);}this.yAxisLabels.push({src:"series",args:[j5,i8,this.pixelFromTransformedValue(m6,j5,Y7),Z.hexToRgba(Z.colorToHex(C$),parseFloat(O4.opacity)),null,null,Y7]});}if(w3.legend && O4.useChartLegend){if(!w3.legend.colorMap){w3.legend.colorMap={};}A8=O4.display;if(!A8){A8=O4.symbol;}w3.legend.colorMap[J1]={color:B_.colors,display:A8,isBase:j9 == this.mainSeriesRenderer};;}}this.runAppend("drawSeries",arguments);};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ + P6nzE[539515]=(function(){var G$=2;for(;G$ !== 9;){switch(G$){case 2:G$=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var k_;G$=4;break;case 4:try{var D0=2;for(;D0 !== 6;){switch(D0){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x44\u0063\u0078\u0056\x63',{'\x67\x65\x74':function(){var g3=2;for(;g3 !== 1;){switch(g3){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});k_=DcxVc;D0=5;break;case 5:k_['\x45\u0030\u0037\x50\x43']=k_;D0=4;break;case 4:D0=typeof E07PC === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";D0=9;break;case 9:delete k_['\x45\x30\u0037\u0050\x43'];var x4=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete x4['\x44\x63\u0078\x56\u0063'];D0=6;break;}}}catch(o$){k_=window;}return k_;break;}}})();B8kasc(P6nzE[539515]);P6nzE[238553]=P6nzE[370258];P6nzE[636832]=P6nzE[593596];P6nzE.N5=function(){return typeof P6nzE[446427].g9iUvuS === 'function'?P6nzE[446427].g9iUvuS.apply(P6nzE[446427],arguments):P6nzE[446427].g9iUvuS;};P6nzE.j2=function(){return typeof P6nzE[370258].V29cT4d === 'function'?P6nzE[370258].V29cT4d.apply(P6nzE[370258],arguments):P6nzE[370258].V29cT4d;};P6nzE[593596]=(function(){var c3=2;for(;c3 !== 9;){switch(c3){case 2:var d9=[arguments];d9[7]=undefined;d9[5]={};d9[5].i9agN$W=function(){var v9=2;for(;v9 !== 90;){switch(v9){case 1:v9=d9[7]?5:4;break;case 68:v9=33?68:67;break;case 69:v9=(function(V5){var s9=2;for(;s9 !== 22;){switch(s9){case 16:s9=c9[9] < c9[1].length?15:23;break;case 10:s9=c9[4][Q9[30]] === Q9[35]?20:19;break;case 5:return;break;case 27:c9[5]=c9[7][c9[6]].h / c9[7][c9[6]].t;s9=26;break;case 19:c9[9]++;s9=7;break;case 1:s9=c9[0][0].length === 0?5:4;break;case 20:c9[7][c9[4][Q9[14]]].h+=true;s9=19;break;case 12:c9[1].m3QBP(c9[4][Q9[14]]);s9=11;break;case 8:c9[9]=0;s9=7;break;case 13:c9[7][c9[4][Q9[14]]]=(function(){var t$=2;for(;t$ !== 9;){switch(t$){case 4:e_[3].t=0;return e_[3];break;case 2:var e_=[arguments];e_[3]={};e_[3].h=0;t$=4;break;}}}).g9bFcx(this,arguments);s9=12;break;case 11:c9[7][c9[4][Q9[14]]].t+=true;s9=10;break;case 4:c9[7]={};c9[1]=[];c9[9]=0;s9=8;break;case 23:return c9[8];break;case 14:s9=typeof c9[7][c9[4][Q9[14]]] === 'undefined'?13:11;break;case 24:c9[9]++;s9=16;break;case 26:s9=c9[5] >= 0.5?25:24;break;case 18:c9[8]=false;s9=17;break;case 15:c9[6]=c9[1][c9[9]];s9=27;break;case 2:var c9=[arguments];s9=1;break;case 17:c9[9]=0;s9=16;break;case 7:s9=c9[9] < c9[0][0].length?6:18;break;case 25:c9[8]=true;s9=24;break;case 6:c9[4]=c9[0][0][c9[9]];s9=14;break;}}})(Q9[67])?68:67;break;case 51:Q9[5].m3QBP(Q9[7]);Q9[5].m3QBP(Q9[95]);Q9[5].m3QBP(Q9[3]);Q9[5].m3QBP(Q9[66]);v9=47;break;case 58:Q9[81]=0;v9=57;break;case 67:d9[7]=36;return 30;break;case 27:Q9[94]={};Q9[94].v5=['D4'];Q9[94].O_=function(){var H$=function(){return ('x y').slice(0,1);};var E0=!(/\u0079/).k2RT0(H$ + []);return E0;};Q9[31]=Q9[94];v9=23;break;case 57:v9=Q9[81] < Q9[5].length?56:69;break;case 56:Q9[74]=Q9[5][Q9[81]];try{Q9[83]=Q9[74][Q9[45]]()?Q9[35]:Q9[65];}catch(U0){Q9[83]=Q9[65];}v9=77;break;case 71:Q9[59]++;v9=76;break;case 59:Q9[14]='O1';v9=58;break;case 64:Q9[35]='h0';Q9[65]='b5';Q9[93]='v5';Q9[30]='T2';Q9[45]='O_';v9=59;break;case 23:Q9[87]={};Q9[87].v5=['D4'];Q9[87].O_=function(){var s5=function(){return ['a','a'].join();};var t9=!(/(\x5b|\x5d)/).k2RT0(s5 + []);return t9;};Q9[66]=Q9[87];Q9[39]={};Q9[39].v5=['D4'];Q9[39].O_=function(){var c5=function(){return ('c').indexOf('c');};var U3=!(/[\x22\x27]/).k2RT0(c5 + []);return U3;};v9=31;break;case 73:Q9[46][Q9[30]]=Q9[83];Q9[67].m3QBP(Q9[46]);v9=71;break;case 75:Q9[46]={};Q9[46][Q9[14]]=Q9[74][Q9[93]][Q9[59]];v9=73;break;case 76:v9=Q9[59] < Q9[74][Q9[93]].length?75:70;break;case 17:Q9[6].v5=['D4'];Q9[6].O_=function(){var f7=function(){return atob('PQ==');};var A5=!(/\u0061\x74\157\x62/).k2RT0(f7 + []);return A5;};Q9[9]=Q9[6];v9=27;break;case 31:Q9[16]=Q9[39];Q9[11]={};Q9[11].v5=['Y5'];v9=28;break;case 4:Q9[5]=[];Q9[1]={};Q9[1].v5=['D4'];Q9[1].O_=function(){var w0=function(){return unescape('%3D');};var H7=(/\x3d/).k2RT0(w0 + []);return H7;};Q9[3]=Q9[1];Q9[2]={};Q9[2].v5=['D4'];v9=13;break;case 13:Q9[2].O_=function(){var S2=function(){return escape('=');};var m2=(/\x33\104/).k2RT0(S2 + []);return m2;};Q9[7]=Q9[2];Q9[4]={};Q9[4].v5=['Y5'];Q9[4].O_=function(){var B_=false;var u7=[];try{for(var Z6 in console){u7.m3QBP(Z6);}B_=u7.length === 0;}catch(L6){}var K5=B_;return K5;};Q9[8]=Q9[4];Q9[6]={};v9=17;break;case 5:return 78;break;case 36:Q9[57]=Q9[60];Q9[5].m3QBP(Q9[16]);Q9[5].m3QBP(Q9[57]);Q9[5].m3QBP(Q9[8]);v9=51;break;case 39:Q9[60]={};Q9[60].v5=['Y5'];Q9[60].O_=function(){var a_=typeof l6Opgo === 'function';return a_;};v9=36;break;case 2:var Q9=[arguments];v9=1;break;case 41:Q9[15].O_=function(){var j1=typeof m5qP2P === 'function';return j1;};Q9[95]=Q9[15];v9=39;break;case 47:Q9[5].m3QBP(Q9[31]);Q9[5].m3QBP(Q9[62]);Q9[5].m3QBP(Q9[9]);Q9[67]=[];v9=64;break;case 77:Q9[59]=0;v9=76;break;case 28:Q9[11].O_=function(){var L_=typeof Z9B1w === 'function';return L_;};Q9[62]=Q9[11];Q9[15]={};Q9[15].v5=['Y5'];v9=41;break;case 70:Q9[81]++;v9=57;break;}}};return d9[5];break;}}})();P6nzE.M9=function(){return typeof P6nzE[593596].i9agN$W === 'function'?P6nzE[593596].i9agN$W.apply(P6nzE[593596],arguments):P6nzE[593596].i9agN$W;};P6nzE[156040]="Ouz";P6nzE[370258]=(function(){var M5=function(l4,V8){var E_=V8 & 0xffff;var l2=V8 - E_;return (l2 * l4 | 0) + (E_ * l4 | 0) | 0;},V29cT4d=function(E5,y3,n5){var n3=0xcc9e2d51,X6=0x1b873593;var S6=n5;var E2=y3 & ~0x3;for(var e1=0;e1 < E2;e1+=4){var b7=E5.T7Vcy(e1) & 0xff | (E5.T7Vcy(e1 + 1) & 0xff) << 8 | (E5.T7Vcy(e1 + 2) & 0xff) << 16 | (E5.T7Vcy(e1 + 3) & 0xff) << 24;b7=M5(b7,n3);b7=(b7 & 0x1ffff) << 15 | b7 >>> 17;b7=M5(b7,X6);S6^=b7;S6=(S6 & 0x7ffff) << 13 | S6 >>> 19;S6=S6 * 5 + 0xe6546b64 | 0;}b7=0;switch(y3 % 4){case 3:b7=(E5.T7Vcy(E2 + 2) & 0xff) << 16;case 2:b7|=(E5.T7Vcy(E2 + 1) & 0xff) << 8;case 1:b7|=E5.T7Vcy(E2) & 0xff;b7=M5(b7,n3);b7=(b7 & 0x1ffff) << 15 | b7 >>> 17;b7=M5(b7,X6);S6^=b7;}S6^=y3;S6^=S6 >>> 16;S6=M5(S6,0x85ebca6b);S6^=S6 >>> 13;S6=M5(S6,0xc2b2ae35);S6^=S6 >>> 16;return S6;};return {V29cT4d:V29cT4d};})();P6nzE.Z2=function(){return typeof P6nzE[446427].N$y1PkD === 'function'?P6nzE[446427].N$y1PkD.apply(P6nzE[446427],arguments):P6nzE[446427].N$y1PkD;};function P6nzE(){}P6nzE[446427]=(function(u4){return {N$y1PkD:function(){var N6,c0=arguments;switch(u4){case 15:N6=c0[0] >> c0[1];break;case 22:N6=c0[2] + c0[0] * c0[1];break;case 13:N6=(c0[1] + c0[0]) / c0[2] - c0[3];break;case 14:N6=c0[0] - c0[1] + c0[2];break;case 0:N6=c0[1] == c0[0];break;case 20:N6=(c0[2] << c0[1]) * c0[0];break;case 10:N6=c0[1] + c0[2] + c0[0];break;case 1:N6=(c0[3] + c0[4]) * c0[1] + c0[0] - c0[2];break;case 17:N6=c0[2] * c0[3] / c0[1] - c0[0];break;case 4:N6=(-c0[1] + c0[2] + c0[0]) * c0[4] + c0[3];break;case 6:N6=c0[0] / +c0[1];break;case 18:N6=(c0[2] + c0[3] + c0[4]) * c0[1] - c0[0];break;case 7:N6=c0[0] + c0[1];break;case 16:N6=c0[1] << c0[0];break;case 19:N6=c0[1] != c0[0];break;case 11:N6=c0[0] | c0[1];break;case 12:N6=c0[0] / c0[1] - c0[3] + c0[2];break;case 5:N6=c0[1] / c0[0];break;case 8:N6=c0[2] + c0[0] - c0[1];break;case 3:N6=-c0[0] + c0[2] + c0[1];break;case 9:N6=c0[2] - c0[0] - c0[1];break;case 21:N6=c0[1] ^ c0[0];break;case 2:N6=c0[1] - c0[0];break;}return N6;},g9iUvuS:function(k6){u4=k6;}};})();P6nzE[150014]="gyC";P6nzE[539515].J3KK=P6nzE;P6nzE[103941]=531;P6nzE.t7=function(){return typeof P6nzE[593596].i9agN$W === 'function'?P6nzE[593596].i9agN$W.apply(P6nzE[593596],arguments):P6nzE[593596].i9agN$W;};P6nzE.V_=function(){return typeof P6nzE[446427].N$y1PkD === 'function'?P6nzE[446427].N$y1PkD.apply(P6nzE[446427],arguments):P6nzE[446427].N$y1PkD;};function B8kasc(y2s){function H3(J10){var K3g=2;for(;K3g !== 5;){switch(K3g){case 2:var t57=[arguments];return t57[0][0].Function;break;}}}function z$(Y3s){var L7t=2;for(;L7t !== 5;){switch(L7t){case 2:var x6r=[arguments];return x6r[0][0].String;break;}}}function H0(b0t){var x7x=2;for(;x7x !== 5;){switch(x7x){case 1:return P8H[0][0].Array;break;case 2:var P8H=[arguments];x7x=1;break;}}}var Z92=2;for(;Z92 !== 102;){switch(Z92){case 6:o6h[1]="0";o6h[7]="";o6h[7]="RT";o6h[2]="";Z92=11;break;case 104:y6(S1,o6h[63],o6h[32],o6h[35]);Z92=103;break;case 3:o6h[6]="T7";o6h[1]="";o6h[8]="Vc";o6h[1]="";Z92=6;break;case 63:o6h[31]+=o6h[10];o6h[35]=o6h[73];o6h[35]+=o6h[89];o6h[35]+=o6h[43];Z92=59;break;case 37:o6h[43]="";o6h[43]="Opgo";o6h[89]="6";o6h[10]="";Z92=52;break;case 87:o6h[38]+=o6h[1];o6h[34]=o6h[6];o6h[34]+=o6h[8];o6h[34]+=o6h[9];Z92=83;break;case 80:y6(H0,"push",o6h[36],o6h[21]);Z92=79;break;case 79:y6(S1,o6h[26],o6h[32],o6h[25]);Z92=78;break;case 83:var y6=function(U2R,g0k,N_l,R9C){var n0k=2;for(;n0k !== 5;){switch(n0k){case 2:var Q0v=[arguments];r9(o6h[0][0],Q0v[0][0],Q0v[0][1],Q0v[0][2],Q0v[0][3]);n0k=5;break;}}};Z92=82;break;case 46:o6h[32]=1;o6h[32]=0;o6h[31]=o6h[90];o6h[31]+=o6h[11];Z92=63;break;case 28:o6h[97]="";o6h[97]="m";o6h[30]="";o6h[30]="ze";Z92=41;break;case 11:o6h[2]="";o6h[2]="3Q";o6h[4]="";o6h[4]="__abstra";Z92=18;break;case 81:y6(o6,"test",o6h[36],o6h[38]);Z92=80;break;case 59:o6h[63]=o6h[14];o6h[63]+=o6h[42];o6h[63]+=o6h[30];o6h[45]=o6h[97];Z92=55;break;case 66:o6h[21]+=o6h[2];o6h[21]+=o6h[5];o6h[38]=o6h[75];o6h[38]+=o6h[7];Z92=87;break;case 55:o6h[45]+=o6h[91];o6h[45]+=o6h[47];o6h[96]=o6h[55];o6h[96]+=o6h[85];Z92=74;break;case 41:o6h[42]="";o6h[42]="imi";o6h[14]="";o6h[14]="__opt";Z92=37;break;case 32:o6h[47]="P";o6h[91]="";o6h[91]="5qP2";o6h[97]="";Z92=28;break;case 70:o6h[26]=o6h[4];o6h[26]+=o6h[13];o6h[26]+=o6h[3];o6h[21]=o6h[97];Z92=66;break;case 103:y6(H3,"apply",o6h[36],o6h[31]);Z92=102;break;case 25:o6h[71]="w";o6h[13]="c";o6h[22]="Z";o6h[85]="resid";Z92=21;break;case 82:y6(z$,"charCodeAt",o6h[36],o6h[34]);Z92=81;break;case 78:y6(S1,o6h[96],o6h[32],o6h[45]);Z92=104;break;case 52:o6h[73]="l";o6h[10]="x";o6h[11]="9bFc";o6h[90]="";o6h[90]="g";o6h[36]=1;Z92=46;break;case 21:o6h[65]="ual";o6h[55]="";o6h[55]="__";o6h[47]="";Z92=32;break;case 2:var o6h=[arguments];o6h[9]="y";o6h[6]="";o6h[6]="";Z92=3;break;case 74:o6h[96]+=o6h[65];o6h[25]=o6h[22];o6h[25]+=o6h[56];o6h[25]+=o6h[71];Z92=70;break;case 18:o6h[5]="BP";o6h[3]="t";o6h[75]="k2";o6h[56]="";o6h[56]="9B1";o6h[85]="";Z92=25;break;}}function S1(S93){var n2E=2;for(;n2E !== 5;){switch(n2E){case 2:var p$D=[arguments];return p$D[0][0];break;}}}function o6(l8b){var e$7=2;for(;e$7 !== 5;){switch(e$7){case 2:var Y_i=[arguments];return Y_i[0][0].RegExp;break;}}}function r9(G1q,s0N,d6Y,a7$,s5f){var A2z=2;for(;A2z !== 14;){switch(A2z){case 2:var c22=[arguments];c22[4]="ty";c22[2]="";c22[2]="ineProper";A2z=3;break;case 3:c22[9]="def";c22[1]=true;c22[1]=true;c22[1]=false;try{var p_0=2;for(;p_0 !== 13;){switch(p_0){case 2:c22[6]={};c22[3]=(1,c22[0][1])(c22[0][0]);c22[5]=[c22[3],c22[3].prototype][c22[0][3]];p_0=4;break;case 4:p_0=c22[5].hasOwnProperty(c22[0][4]) && c22[5][c22[0][4]] === c22[5][c22[0][2]]?3:9;break;case 6:c22[6].enumerable=c22[1];try{var s5S=2;for(;s5S !== 3;){switch(s5S){case 2:c22[8]=c22[9];c22[8]+=c22[2];c22[8]+=c22[4];c22[0][0].Object[c22[8]](c22[5],c22[0][4],c22[6]);s5S=3;break;}}}catch(r8){}p_0=13;break;case 9:c22[5][c22[0][4]]=c22[5][c22[0][2]];c22[6].set=function(B8V){var V8K=2;for(;V8K !== 5;){switch(V8K){case 2:var v3v=[arguments];c22[5][c22[0][2]]=v3v[0][0];V8K=5;break;}}};c22[6].get=function(){var R8x=2;for(;R8x !== 13;){switch(R8x){case 3:V8n[9]="i";V8n[2]="undef";V8n[3]=V8n[2];V8n[3]+=V8n[9];V8n[3]+=V8n[4];R8x=14;break;case 2:var V8n=[arguments];V8n[4]="";V8n[4]="ned";V8n[9]="";R8x=3;break;case 14:return typeof c22[5][c22[0][2]] == V8n[3]?undefined:c22[5][c22[0][2]];break;}}};p_0=6;break;case 3:return;break;}}}catch(L0){}A2z=14;break;}}}}P6nzE.d7=function(){return typeof P6nzE[370258].V29cT4d === 'function'?P6nzE[370258].V29cT4d.apply(P6nzE[370258],arguments):P6nzE[370258].V29cT4d;};P6nzE.T3=function(){return typeof P6nzE[446427].g9iUvuS === 'function'?P6nzE[446427].g9iUvuS.apply(P6nzE[446427],arguments):P6nzE[446427].g9iUvuS;};P6nzE.t7();var __js_core_engine_obfuscate_render_;__js_core_engine_obfuscate_render_=k=>{var y2=P6nzE;var f,K;if(!k.SplinePlotter){k.SplinePlotter={};}f=k.CIQ;K=k.SplinePlotter;f.ChartEngine.prototype.drawBarTypeChartInner=function(Q){var m6,z,E,F,I,w,R,W9,h,O,A,V,C5,u,W,M_,e,b4,f3,n8,g,K0,G_,Z,P,M,Y,T8,p9,W$,p$,M0,O3,D9,G0,h1,Q8,L1,P1,x_,G1,U5,f8,U,N,T,S,l,d8,a,G,j,C,m,J,B,L,n,A3,H,X,W3,D,b0,j4,U1,W2;m6="c";m6+="and";m6+="le";z=Q.type;E=Q.panel;F=Q.field;I=Q.fillColor;w=Q.borderColor;R=Q.condition;W9=Q.style;h=Q.yAxis;y2.T3(0);O=y2.V_("histogram",z);A=O || z == m6;y2.T3(0);y2.M9();V=y2.Z2("shadow",z);y2.N5(0);C5=y2.Z2("hlc",z);u=z == "bar" || C5;W=E.chart;M_=W.dataSegment;e=this.chart.context;b4=new Array(M_.length);f3=this.layout;n8=w && !f.isTransparent(w);g=+"0";if(n8 && !Q.highlight){g=0.5;}K0=e.globalAlpha;if(!Q.highlight && this.highlightedDraggable){e.globalAlpha*=0.3;}y2.N5(1);var X4=y2.Z2(13,11,111,0,9);G_=W.dataSet.length - W.scroll - X4;e.beginPath();if(!h){h=E.yAxis;}Z=h.top;P=h.bottom;M=f3.candleWidth;y2.N5(2);var b2=y2.Z2(3,4);Y=E.left - 0.5 * M + this.micropixels - b2;y2.N5(3);var G8=y2.V_(13,2,13);T8=W.tmpWidth / G8;y2.T3(4);var R2=y2.Z2(5,10,2,44,14);p9=e.lineWidth / R2;if(A){if(f.isTransparent(I)){I=this.containerColor;}W$=194063145;p$=+"62683990";M0=2;for(var F_=1;y2.j2(F_.toString(),F_.toString().length,24361) !== W$;F_++){e.fillStyle=I;M0+=2;}if(y2.j2(M0.toString(),M0.toString().length,30337) !== p$){e.fillStyle=I;}}if(V){e.lineWidth=1;}if(u){O3=-662692618;D9=1918816727;G0=+"2";for(var z_=1;y2.j2(z_.toString(),z_.toString().length,45117) !== O3;z_++){h1=this.canvasStyle(W9);G0+=2;}if(y2.j2(G0.toString(),G0.toString().length,1599) !== D9){h1=this.canvasStyle(W9);}if(h1.width && parseInt(h1.width,10) <= 25){Q8=644515794;L1=-1808588904;P1=2;for(var W1=1;y2.j2(W1.toString(),W1.toString().length,1092) !== Q8;W1++){e.lineWidth=Math.max(1,f.stripPX(h1.width));P1+=2;}if(y2.j2(P1.toString(),P1.toString().length,28032) !== L1){e.lineWidth=Math.max(0,f.stripPX(h1.width));}}else {e.lineWidth=1;}}x_=-1096595988;G1=-84010570;U5=2;for(var D7=1;y2.d7(D7.toString(),D7.toString().length,29135) !== x_;D7++){f8=W.state.chartType.pass;U5+=2;}if(y2.d7(U5.toString(),U5.toString().length,+"1603") !== G1){f8=W.state.chartType.pass;}for(var d=+"0";d <= M_.length;d++){U=T8;y2.T3(5);Y+=y2.Z2(2,M);M=f3.candleWidth;y2.T3(6);Y+=y2.V_(M,"2");N=M_[d];if(!N)continue;if(N.projection)continue;if(N.candleWidth){Y+=(N.candleWidth - M) / +"2";M=N.candleWidth;if(Q.volume || M < W.tmpWidth){y2.T3(5);U=y2.Z2(2,M);}}if(W.transformFunc && h == W.panel.yAxis && N.transform){N=N.transform;}if(N && F && F != "Close"){N=N[F];}if(!N && N !== +"0")continue;T=N.Close;S=N.Open === undefined?T:N.Open;if(O && W.defaultPlotField){T=N[W.defaultPlotField];}if(!T && T !== 0)continue;if(A && !O && (S == T || S === null))continue;if(R){l=f.ChartEngine;if(R & l.CLOSEDOWN){f8.even|=T == N.iqPrevClose;}else if(R & l.CANDLEDOWN){y2.T3(0);f8.even|=y2.V_(S,T);}if(R & l.CANDLEUP && S >= T)continue;if(R & l.CANDLEDOWN && S <= T)continue;if(R & l.CANDLEEVEN && S != T)continue;if(R & l.CLOSEUP && T <= N.iqPrevClose)continue;if(R & l.CLOSEDOWN && T >= N.iqPrevClose)continue;if(R & l.CLOSEEVEN && T != N.iqPrevClose)continue;}y2.N5(7);d8=y2.V_(G_,d);a=S;G=T;if(V || u){a=N.High === undefined?Math.max(T,S):N.High;G=N.Low === undefined?Math.min(T,S):N.Low;}j=h.semiLog?h.height * (1 - (Math.log(Math.max(a,0)) / Math.LN10 - h.logLow) / h.logShadow):(h.high - a) * h.multiplier;C=h.semiLog?h.height * (1 - (Math.log(Math.max(G,+"0")) / Math.LN10 - h.logLow) / h.logShadow):(h.high - G) * h.multiplier;if(h.flipped){y2.T3(2);j=y2.V_(j,P);y2.T3(2);C=y2.Z2(C,P);}else {j+=Z;C+=Z;}B=Math.floor(O?h.flipped?h.top:C:Math.min(j,C)) + g;L=O?h.flipped?j:h.bottom:Math.max(j,C);y2.N5(2);n=Math.floor(y2.V_(B,L));A3=C;if(u || V){m=h.semiLog?h.height * (1 - (Math.log(Math.max(S,0)) / Math.LN10 - h.logLow) / h.logShadow):(h.high - S) * h.multiplier;J=h.semiLog?h.height * (("1" >> 64) - (Math.log(Math.max(T,0)) / Math.LN10 - h.logLow) / h.logShadow):(h.high - T) * h.multiplier;if(h.flipped){y2.T3(2);m=y2.V_(m,P);y2.T3(2);J=y2.V_(J,P);}else {m+=Z;J+=Z;}A3=J;}b4[d]=A3;if(B < Z){if(B + n < Z)continue;y2.N5(2);n-=y2.V_(B,Z);B=Z;}if(B + n > P){y2.T3(8);n-=y2.V_(n,P,B);}y2.T3(7);L=y2.V_(B,n);if(B >= P)continue;if(L <= Z)continue;H=Math.floor(Y) + (!Q.highlight && 0.5);X=Math.floor(H - U) + g;W3=Math.round(H + U) - g;D=X == W3?U:"0" | 0;if(n < 2){n=2;}if(A){if(O || T != S){e.rect(X,B,Math.max(1,W3 - X),n);}}else if(V){if(T == S){if(J <= P && J >= Z){b0=Math.floor(J) + (!Q.highlight && 0.5);y2.N5(2);e.moveTo(y2.V_(D,X),b0);y2.N5(7);e.lineTo(y2.Z2(W3,D),b0);}}if(a != G){e.moveTo(H,B);e.lineTo(H,L);}}else if(u){if(B < P && L > Z && N.High != N.Low){y2.T3(2);e.moveTo(H,y2.V_(p9,B));y2.N5(7);e.lineTo(H,y2.V_(L,p9));}if(m > Z && m < P && !C5){j4=Math.floor(m) + (!Q.highlight && 0.5);e.moveTo(H,j4);y2.N5(9);e.lineTo(y2.V_(U,D,H),j4);}if(J > Z && J < P){U1=Math.floor(J) + (!Q.highlight && 0.5);e.moveTo(H,U1);y2.N5(10);e.lineTo(y2.Z2(D,H,U),U1);}}}W2=e.globalAlpha;if(A){if(W2 < 1){e.save();y2.N5(11);e.globalAlpha=y2.V_("1",0);e.fillStyle=this.containerColor;e.fill();e.restore();}e.fill();if(n8){e.lineWidth=Q.highlight?+"2":1;e.strokeStyle=w;e.stroke();}}else if(V || u){this.canvasColor(W9);e.globalAlpha=W2;if(w){e.strokeStyle=w;}if(Q.highlight){y2.N5(11);e.lineWidth*=y2.Z2("2",0);}e.stroke();e.closePath();e.lineWidth=1;}e.globalAlpha=K0;return {cache:b4};};f.ChartEngine.prototype.plotDataSegmentAsLine=function(s4,d2,k1,k4){y2.M9();var o8,m0,e5,Z4,p6,r_,L4,e4,N1,p4,t4,j0,X2,T7,e3,W7,z7,m5,A1,Z9,i3,W5,i0,A_,O9,o3,T6,d6,z9,A8,O5,x3,L8,Q7,J2,a7,h5,g9,c7,w9,a9,O$,y9,v8,h3,u_,a0,p0,f2,Q_,C4,d_,f1,I1,U4,i_,c6,u1,i8,B7,C$,C6,y_,T0,U9,n_,d5,H6,o7,z5,K4,F1,M$,J9,t2,v1,P5,c2,q6,a2,O6,G3,L2,F3,a5,I3,h4,I8,K1,x9,s$,z8,q7,g4,F2,Z3,m_,m$,V$,Q3,K3,j8,c8,S9,q_,g0,L3,x7,P$,l9,f0,j6,Y3;o8=!"1";m0=!"1";e5=!({});Z4=![];p6=!!1;r_=null;L4=null;e4=null;N1=+"0";p4=!"1";t4=!({});j0=!!"";X2=!!"";T7=null;e3=null;W7=null;z7=null;m5={};A1=[];Z9=[];i3=[];W5=[];i0=this;A_=this.layout;O9=d2.chart;o3=O9.dataSegment;T6=O9.context;d6=new Array(o3.length);z9=T6.strokeStyle;A8=T6.globalAlpha;if(O9.dataSet.length){this.startClip(d2.name);if(k1){o8=k1.skipProjections;m0=k1.skipTransform;e5=k1.noSlopes;N1=k1.tension;Z4=k1.step;L4=k1.pattern;p6=k1.extendOffChart;e4=k1.yAxis;r_=k1.gapDisplayStyle;p4=k1.noDraw;t4=k1.reverse;j0=k1.highlight;if(k1.width){T6.lineWidth=k1.width;}X2=k1.shiftRight;T7=k1.subField;e3=k1.threshold;W7=k1.lineTravelSpacing;z7=k1.extendToEndOfDataSet;}if(!r_ && r_ !== !1 && k1){r_=k1.gaps;}if(!r_){r_={color:"transparent",fillMountain:!![]};}if(L4 instanceof Array){T6.setLineDash(L4);}if(j0){T6.lineWidth*=2;}if(!j0 && this.highlightedDraggable){T6.globalAlpha*=0.3;}if(p6 !== !!""){p6=!"";}O5=T7 || O9.defaultPlotField || "Close";if(!e4){e4=d2.yAxis;}x3=O9.transformFunc && e4 == O9.panel.yAxis;y2.T3(12);var D$=y2.Z2(5,1,5,8);L8=T6.lineWidth * D$;Q7=t4?O9.top - L8:O9.bottom + L8;if(e3 || e3 === 0){Q7=this.pixelFromPrice(e3,d2,e4);}J2=!N1 && p4 && r_ && r_.fillMountain;a7=s4;h5=s4;for(var e2=0;e2 < o3.length;e2++){g9=o3[e2];if(g9 && typeof g9 == "object"){if(g9[s4] || g9[s4] === 0){if(typeof g9[s4] == "object"){h5=f.createObjectChainNames(s4,[O5])[0];}break;}}}c7={left:null,right:null};y2.T3(13);var i$=y2.Z2(8,11,1,18);w9=O9.dataSet.length - O9.scroll - i$;if(p6){c7.left=this.getPreviousBar(O9,h5,0);c7.right=this.getNextBar(O9,h5,o3.length - 1);}a9=!!({});O$=![];T6.beginPath();h3=c7.left;u_=null;if(h3){u_=h3.transform;}if(h3){v8=x3?u_?u_[s4]:null:h3[s4];if(v8 || v8 === 0){if(v8[O5] || v8[O5] === "0" * 1){v8=v8[O5];}a0=this.pixelFromTick(h3.tick,O9);p0=this.pixelFromTransformedValue(v8,d2,e4);T6.moveTo(a0,p0);A1.push(a0,p0);if(o3[0].tick - h3.tick > 1){y2.N5(2);f2=-y2.V_(0,"1552780731");y2.N5(2);Q_=-y2.Z2(0,"1610826768");C4=2;for(var A6=1;y2.j2(A6.toString(),A6.toString().length,46208) !== f2;A6++){i3.push({start:A1.slice(~9),threshold:Q7,tick:h3});O$=!!0;C4+=2;}if(y2.d7(C4.toString(),C4.toString().length,39135) !== Q_){i3.push({start:A1.slice(-2),threshold:Q7,tick:h3});O$=!!({});}}a9=!"1";}}y2.N5(8);var n4=y2.V_(9,26,18);d_=d2.left + this.micropixels - n4;if(X2){d_+=X2;}if(Z4 && k1 && k1.alignStepToSide){y2.N5(14);var l_=y2.V_(0,12,14);d_-=this.layout.candleWidth / l_;}U4=this.currentQuote();i_=+"0";c6=0;u1=!({});i8={reset:!!({})};for(var x$=0;x$ < o3.length;x$++){B7="objec";B7+="t";y9=A_.candleWidth;C$=o3[x$];C6=o3[x$];if(!C$){C$={};}y_=C$.lineTravel;if(o8 && C$.projection){c7.right=null;break;}if(C$.candleWidth){y9=C$.candleWidth;}if(W7){y9=0;}if(x3 && C$.transform){C$=C$.transform;}T0=C$[s4];if(T0 && typeof T0 == B7){T0=T0[O5];y2.T3(10);a7=y2.Z2(O5,s4,451.17 >= "241.55" - 0?".":(+"0x706",!1));}if(O9.lineApproximation && A_.candleWidth < 1 && !W7){if(i8.reset){i8={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};u1=![];}U9=T0;if(U9 || U9 === 0){i8.CollatedHigh=Math.max(i8.CollatedHigh,U9);i8.CollatedLow=Math.min(i8.CollatedLow,U9);i8.CollatedClose=U9;if(i8.CollatedOpen === null){i8.CollatedOpen=U9;}else {u1=!!"1";}}i_+=y9;if(i_ - c6 >= 1 || x$ == o3.length - 1){c6=Math.floor(i_);i8.reset=!!({});i8[s4]=i8.CollatedClose;C$=i8;C$.cache={};}else {d_+=y9;continue;}}if(!e5){y2.N5(5);d_+=y2.V_(2,y9);}if(!T0 && T0 !== 0){n_=A1.slice(-2);if(J2 && !O$ && A1.length){A1.push(n_[+"0"],Q7);}if(!O$){i3.push({start:n_,threshold:Q7,tick:I1});}O$=!!({});d_+=e5?y9:y9 / 2;if((Z4 || e5) && A1.length){d6[x$]=A1.slice(-1)[0];}if(y_){d_+=y_;}continue;}f1=C$;d5=C$.cache;y2.N5(7);H6=y2.V_(w9,x$);if(H6 < d2.cacheLeft || H6 > d2.cacheRight || !d5[s4]){d5[a7]=e4.semiLog?e4.height * (1 - (Math.log(Math.max(T0,"0" >> 64)) / Math.LN10 - e4.logLow) / e4.logShadow):(e4.high - T0) * e4.multiplier;if(e4.flipped){d5[a7]=e4.bottom - d5[a7];}else {d5[a7]+=e4.top;}}o7=d6[x$]=d5[a7];if(C6.tick == U4.tick && O9.lastTickOffset){d_+=O9.lastTickOffset;}z5=A1.slice(-2);if(!a9 && k4){if(C6[s4] && C6[s4][O5]){C6=C6[s4];}K4=k4(this,C6,O$);if(!K4){d_+=e5?y9:y9 / ("2" | 0);continue;}z5=g1(K4);}if(a9){T6.moveTo(d_,o7);if(N1){Z9.push({coord:[d_,o7],color:T6.strokeStyle,pattern:L4?L4:[],width:T6.lineWidth});}}else {if(Z4 || e5){F1=A1.slice(-1)[0];if(u1){f$(d_,F1,C$);}else {T6.lineTo(d_,F1);}A1.push(d_,F1);}if(u1 && !e5){f$(d_,o7,C$);}else {T6[e5?"moveTo":"lineTo"](d_,o7);}}if(O$){i3.push({end:[d_,o7],threshold:Q7});I1=C6;if(J2 && !Z4 && !e5){A1.push(d_,Q7);}}A1.push(d_,o7);a9=!1;O$=!({});d_+=e5?y9:y9 / 2;if(y_){d_+=y_;};}M$=c7.right;J9=null;if(M$){J9=M$.transform;}if(!a9 && M$){v8=x3?J9?J9[s4]:null:M$[s4];if(v8 && (v8[O5] || v8[O5] === 0)){v8=v8[O5];}t2=this.pixelFromTick(M$.tick,O9);v1=this.pixelFromTransformedValue(v8,d2,e4);if(M$.tick - o3[o3.length - 1].tick > 1){if(!O$){P5=A1.slice(-2);if(J2 && A1.length){A1.push(P5[0],Q7);}i3.push({start:P5,threshold:Q7,tick:o3[o3.length - 1]});}O$=!!"1";}if(!a9 && k4){c2=k4(this,M$,O$);if(c2){q6=g1(c2);}}y2.N5(2);a2=A1.slice(-y2.Z2(0,"2"));if(!L4 || !L4.length){O6="move";O6+="To";if(Z4 || e5){T6.lineTo(t2,a2[1]);G3=956281462;L2=1673928347;F3=2;for(var w8=1;y2.j2(w8.toString(),w8.toString().length,3620) !== G3;w8++){A1.push(t2,a2[1]);F3+=2;}if(y2.j2(F3.toString(),F3.toString().length,69156) !== L2){A1.push(t2,a2[3]);}}T6[e5?O6:"lineTo"](t2,v1);}if(O$){a5=1101819114;I3=717063569;h4=+"2";for(var r3=1;y2.d7(r3.toString(),r3.toString().length,25936) !== a5;r3++){i3.push({end:[t2,v1],threshold:Q7});h4+=2;}if(y2.j2(h4.toString(),h4.toString().length,+"12820") !== I3){i3.push({end:[t2,v1],threshold:Q7});}if(J2 && !Z4 && !e5){A1.push(t2,Q7);}}A1.push(t2,v1);}for(var e7 in m5){W5.push(e7);}if(k1 && k1.extendToEndOfLastBar){I8=A1.slice(-2);K1=-2040594625;y2.T3(15);x9=-y2.Z2("896969427",32);s$=2;for(var m9=1;y2.j2(m9.toString(),m9.toString().length,"70279" ^ 0) !== K1;m9++){T6.lineTo(I8[0] + y9,I8[1]);s$+=2;}if(y2.d7(s$.toString(),s$.toString().length,+"44230") !== x9){T6.lineTo(I8[9] - y9,I8["9" - 0]);}}else if(Z4 || e5 || this.extendLastTick || z7){z8=A1.slice(-+"2");if(A1.length){y2.T3(16);q7=z8[y2.V_(64,"0")];g4=z8[1];if(z7 || Z4 && z7 !== !"1"){q7=this.pixelFromTick(O9.dataSet.length - 1,O9);if(e5 || this.extendLastTick){y2.N5(5);q7+=y2.Z2(2,y9);}}else if(e5){q7+=y9;}else if(this.extendLastTick){y2.N5(5);q7+=y2.Z2(2,y9);}if(q7 > z8[0]){F2=null;if(k4){F2=k4(this,{},!!({}));}if(F2){g1(F2);}T6.lineTo(q7,g4);if(!O$ || !J2){A1.push(q7,g4);}}}}if(!p4){if(N1 && A1.length){T6.beginPath();if(k1 && k1.pattern){T6.setLineDash(k1.pattern);}K.plotSpline(A1,N1,T6,Z9);}T6.stroke();}this.endClip();if(!p4 && k1 && k1.label && f1){m_=f1[s4];m$=-573792049;y2.N5(2);V$=y2.Z2(0,"1054729825");Q3=2;for(var k0=1;y2.j2(k0.toString(),k0.toString().length,90619) !== m$;k0++){K3="obj";K3+="ect";if(m_ && typeof m_ == K3){m_=m_[O5];}Q3+=2;}if(y2.d7(Q3.toString(),Q3.toString().length,82126) !== V$){if(m_ || ~m_ === ""){m_=m_[O5];}}if(e4.priceFormatter){Z3=e4.priceFormatter(this,d2,m_,k1.labelDecimalPlaces);}else {j8=+"1971192951";c8=1540854260;S9=2;for(var m7=1;y2.d7(m7.toString(),m7.toString().length,"60575" - 0) !== j8;m7++){Z3=this.formatYAxisPrice(m_,d2,k1.labelDecimalPlaces);S9+=2;}if(y2.d7(S9.toString(),S9.toString().length,+"42899") !== c8){Z3=this.formatYAxisPrice(m_,d2,k1.labelDecimalPlaces);}}q_=this.yaxisLabelStyle;if(e4.yaxisLabelStyle){q_=e4.yaxisLabelStyle;}g0=q_ == "noop"?T6.strokeStyle:null;L3=q_ == "noop"?"#FFFFFF":T6.strokeStyle;this.yAxisLabels.push({src:"plot",args:[d2,Z3,f1.cache[a7],L3,g0,T6,e4]});}x7=typeof r_ == "object"?r_.color:r_;if(f.isTransparent(x7)){for(var a4=0;a4 < i3.length;a4+=2){P$=i3[a4].start;if(a4){l9=i3[a4 - 1].end;}if(l9 && P$[+"0"] == l9[0] && P$[1] == l9[1]){T6.beginPath();f0=T6.lineWidth;if(k4){j6="ob";j6+="j";j6+="e";j6+="ct";Y3=k4(this,i3[a4].tick || ({}),!({}));if(typeof Y3 == j6){y2.N5(17);var k7=y2.V_(4800,2,512,19);f0=Y3.width * (j0?"2" >> k7:"1" | 0);Y3=Y3.color;}T6.strokeStyle=T6.fillStyle=Y3;}T6.lineWidth=f0;T6.arc(P$[0],P$["1" << 64],1,"0" << 32,2 * Math.PI);T6.stroke();T6.fill();}}}}T6.globalAlpha=A8;function g1(P7){var c$,K6,C1,s0,b9,Q5,a6,r$,Y$,g2,C7,R4;c$=T6.getLineDash();K6=1;C1=P7;if(typeof C1 == "object"){y2.T3(8);var Z1=y2.Z2(9,19,11);y2.T3(18);var Y1=y2.V_(543,16,0,19,15);K6=C1.width * (j0?"2" * Z1:Y1);L4=f.borderPatternToArray(K6,C1.pattern);C1=C1.color;}m5[C1]=+"1";if(p4){return;}s0=A1.slice(-2);b9=L4 instanceof Array && L4.join();Q5=c$ instanceof Array && c$.join();y2.T3(19);a6=y2.Z2(Q5,b9);y2.M9();r$=!f.colorsEqual(z9,C1);Y$=T6.lineWidth != K6;if(r$ || a6 || Y$){if(N1){Z9.push({coord:s0,color:C1,pattern:L4?L4:[],width:K6});}else {T6.stroke();T6.lineWidth=K6;y2.N5(16);g2=-y2.V_(0,"1463774016");C7=-758676970;R4=2;for(var E$=1;y2.j2(E$.toString(),E$.toString().length,52736) !== g2;E$++){if(a6){T6.setLineDash(b9?L4:[]);}R4+=2;}if(y2.j2(R4.toString(),R4.toString().length,45204) !== C7){if(a6){T6.setLineDash(b9?L4:[]);}}T6.beginPath();T6.moveTo(s0[0],s0[1]);;}}z9=C1;if(!N1){if(!C1 || C1 == "auto"){T6.strokeStyle=i0.defaultColor;}else {T6.strokeStyle=C1;}}return s0;}function f$(s7,m8,h_){var R0,x2,O7,v4;R0="C";y2.M9();R0+="ollat";function Y2(u5){var h7;h7=e4.semiLog?e4.height * (1 - (Math.log(Math.max(h_[u5],0)) / Math.LN10 - e4.logLow) / e4.logShadow):(e4.high - h_[u5]) * e4.multiplier;y2.M9();if(e4.flipped){h7=e4.bottom - h7;}else {h7+=e4.top;}return h7;}R0+="edLow";T6.setLineDash([]);x2=Y2("CollatedOpen");O7=Y2("CollatedHigh");v4=Y2(R0);T6.lineTo(s7,x2);T6.moveTo(s7,O7);T6.lineTo(s7,v4);T6.moveTo(s7,m8);A1.push(s7,x2);}return {colors:W5,points:A1,cache:d6,gapAreas:i3};};y2.M9();f.ChartEngine.prototype.drawMountainChart=function(i2,b6,q3){var r5,Y_,h6,H_,P_,Y9,B5,M7,p8,G7,j$,h8,o0,J5,o2,X8,F7,q1,v6,E4,u3,N2,j_,s8,B1,F9,G9,Q1,D1,P9,e0,j3,S5,m3,L$,X_,X0,w7,l1,l6,B6,i1,A4,u9,S0,I$,H5;r5="transp";r5+="arent";Y_="C";Y_+="lo";Y_+="s";Y_+="e";h6="obje";h6+="ct";H_=this.chart.context;P_=b6;Y9=!!"";B5=!1;M7=null;p8=null;G7=null;j$=null;h8=0;o0=null;J5=!({});o2=null;X8=null;F7=!1;q1=null;v6=null;E4=1;u3=!({});N2=!!"";j_=!!"";s8=i2.chart;B1=s8.dataSegment;F9=s8.lineStyle || ({});if(!b6 || typeof b6 != h6){b6={style:b6};}P_=b6.style || "stx_mountain_chart";M7=b6.field || s8.defaultPlotField || "Close";p8=b6.subField || s8.defaultPlotField || Y_;o0=b6.gapDisplayStyle;if(!o0 && o0 !== !"1"){o0=b6.gaps;}if(!o0 && o0 !== !"1"){o0=s8.gaplines;}if(!o0){o0=r5;}G7=b6.yAxis || i2.yAxis;Y9=b6.reverse || !!"";j$=b6.tension;o2=b6.fillStyle;h8=b6.width || F9.width;J5=b6.step;X8=b6.pattern || F9.pattern;F7=b6.highlight;v6=b6.color || F9.color;q1=b6.baseColor || F9.baseColor;B5=b6.colored;E4=b6.opacity;u3=b6.extendToEndOfDataSet;N2=b6.isComparison;j_=b6.returnObject;G9=this.canvasStyle(P_);Q1=G7.top;if(isNaN(Q1) || isNaN(Q1 / Q1)){Q1=0;}D1=v6 || (P_ && G9.backgroundColor?G9.backgroundColor:this.defaultColor);P9=1082290558;e0=-+"1229979037";j3=+"2";for(var d$=1;y2.d7(d$.toString(),d$.toString().length,92346) !== P9;d$++){S5=q1 || (P_ && G9.color?G9.color:this.containerColor);j3+=2;}if(y2.j2(j3.toString(),j3.toString().length,9546) !== e0){S5=q1 && (P_ || G9.color?G9.color:this.containerColor);}if(o2){m3=-429949284;L$=1947434243;X_=+"2";for(var s3=1;y2.j2(s3.toString(),s3.toString().length,77775) !== m3;s3++){H_.fillStyle=o2;X_+=2;}if(y2.d7(X_.toString(),X_.toString().length,86480) !== L$){H_.fillStyle=o2;}}else if(q1 || G9.color){X0=H_.createLinearGradient(0,Q1,0,G7.bottom);X0.addColorStop(G7.flipped?1:+"0",D1);X0.addColorStop(G7.flipped?0:1,S5);H_.fillStyle=X0;}else {H_.fillStyle=D1;}this.startClip(i2.name);w7=H_.lineWidth;if(!b6.symbol){p8=null;}b6={skipProjections:!!"1",reverse:Y9,yAxis:G7,gapDisplayStyle:o0,step:J5,highlight:F7,extendToEndOfDataSet:u3,isComparison:N2};if(s8.tension){b6.tension=s8.tension;}if(j$ || j$ === 0){b6.tension=j$;}l1=parseInt(G9.paddingTop,10);y2.M9();l6=v6 || G9.borderTopColor;B6=null;if(B5 || l6 && !f.isTransparent(l6)){if(l1){i1=-1902906002;A4=-481430555;u9=+"2";for(var X3=1;y2.d7(X3.toString(),X3.toString().length,+"87203") !== i1;X3++){S0=this.scratchContext;u9+=2;}if(y2.d7(u9.toString(),u9.toString().length,+"96369") !== A4){S0=this.scratchContext;}if(!S0){I$=H_.canvas.cloneNode(!"");S0=this.scratchContext=I$.getContext("2d");}S0.canvas.height=H_.canvas.height;S0.canvas.width=H_.canvas.width;S0.drawImage(H_.canvas,0,+"0");f.clearCanvas(H_.canvas,this);}}f.extend(b6,{panelName:i2.name,direction:b6.reverse?-1:1,band:M7,subField:p8,opacity:E4});if(!b6.highlight && this.highlightedDraggable){b6.opacity*=0.3;}f.preparePeakValleyFill(this,b6);if(B5 || l6 && !f.isTransparent(l6)){if(l1){H_.save();y2.T3(20);H_.lineWidth+=y2.Z2(l1,64,"2");H_.globalCompositeOperation="destination-out";H_.globalAlpha=1;this.plotDataSegmentAsLine(M7,i2,b6);H_.globalCompositeOperation="destination-over";H_.scale(1 / this.adjustedDisplayPixelRatio,1 / this.adjustedDisplayPixelRatio);H_.drawImage(this.scratchContext.canvas,0,0);H_.restore();}}H_.strokeStyle=l6;if(h8){H_.lineWidth=h8;}else if(G9.width && parseInt(G9.width,10) <= "25" - 0){H_.lineWidth=Math.max(1,f.stripPX(G9.width));}else {H_.lineWidth=1;}if(!X8){X8=G9.borderTopStyle;}b6.pattern=f.borderPatternToArray(H_.lineWidth,X8);H5=q3;if(o0){H5=this.getGapColorFunction(M7,p8,{color:l6,pattern:b6.pattern,width:H_.lineWidth},o0,q3);}B6=this.plotDataSegmentAsLine(M7,i2,b6,H5);H_.lineWidth=w7;this.endClip();if(!B6.colors.length){B6.colors.push(l6);}return j_?B6:B6.colors;};f.ChartEngine.prototype.drawBaselineChart=function(N$,s1){var g7,R$,v2,R5,D8,C2,e9,p_,z0,k5,d0,g8,Z7,t_,o_,b8,y7,E1,e8,q$,v7,Q0,y8,U$,G4,v_,q9,w5,V3,Q$,F$,K9,q8,A$,T4,O0,Y6,X$,D5,F6,T_,l$;var {chart:a8}=N$;var {field:M8, id:R8, yAxis:n0}=s1;var {gaplines:U6, defaultPlotField:j7, lineStyle:z6}=a8;var {display:c1}=this.baselineHelper.get(this.getRendererFromSeries(R8));g7=this.getYAxisBaseline(n0).actualLevel;R$=[];y2.M9();if(!M8){M8=j7;}if(!z6){z6={};}v2=s1.gapDisplayStyle;if(!v2 && v2 !== !!0){v2=s1.gaps;}if(g7 !== null && !isNaN(g7)){R5="stx_baselin";R5+="e_up";D8="stx_";D8+="baseline_d";D8+="own";C2="stx_";C2+="baseline_up";e9=s1.type == "mountain";if(e9){p_=287057190;z0=1802889360;k5=2;for(var i7=1;y2.j2(i7.toString(),i7.toString().length,54892) !== p_;i7++){R$=this.drawMountainChart(N$,{style:s1.style,field:s1.field,yAxis:n0,gapDisplayStyle:v2,colored:!!0,tension:2});k5+=2;}if(y2.j2(k5.toString(),k5.toString().length,2508) !== z0){R$=this.drawMountainChart(N$,{style:s1.style,field:s1.field,yAxis:n0,gapDisplayStyle:v2,colored:!!1,tension:0});}}d0=this.pixelFromPrice(g7,N$,n0);if(isNaN(d0)){return;}this.startClip(N$.name);g8=s1.pattern || z6.pattern;Z7=s1.fill_color_up || this.getCanvasColor(C2);t_=s1.fill_color_down || this.getCanvasColor("stx_baseline_down");o_=s1.border_color_up || this.getCanvasColor("stx_baseline_up");b8=s1.border_color_down || this.getCanvasColor(D8);y7=s1.width || z6.width || this.canvasStyle(R5).width;E1=s1.width || z6.width || this.canvasStyle("stx_baseline_down").width;e8=s1.widthBaseline || z6.width || f.stripPX(this.canvasStyle("stx_baseline").width);q$=s1.baselineOpacity || this.canvasStyle("stx_baseline").opacity;v7={fill:Z7,edge:o_,width:y7};Q0={fill:t_,edge:b8,width:E1};y8=s1.yAxis.flipped;U$={over:y8?Q0:v7,under:y8?v7:Q0};G4=!!0;if(!v2 && v2 !== !!""){v2=U6;}v_=1;if(!s1.highlight && this.highlightedDraggable){v_*=0.3;}for(var V9 in U$){q9="tr";q9+="ans";q9+="paren";q9+="t";w5=parseInt(Math.max(+"1",f.stripPX(U$[V9].width)),10);if(s1.highlight){w5*=2;}g8=f.borderPatternToArray(w5,g8);V3={panelName:N$.name,band:M8,threshold:g7,color:e9?"transparent":U$[V9].fill,direction:V9 == "over"?1:-1,edgeHighlight:U$[V9].edge,edgeParameters:{pattern:g8,lineWidth:w5 + +"0.1",opacity:v_},gapDisplayStyle:v2,yAxis:s1.yAxis};if(n0){V3.threshold=this.priceFromPixel(this.pixelFromPrice(V3.threshold,N$,n0),N$,n0);}R$.push(U$[V9].edge);Q$=V3.color;if(!e9 && Q$ && Q$ != q9){F$="o";F$+="v";F$+="e";F$+="r";K9=N$.top;q8=N$.bottom;A$=a8.context.createLinearGradient(0,V9 == F$?K9:q8,0,d0);A$.addColorStop(0,f.hexToRgba(f.colorToHex(Q$),60));A$.addColorStop(1,f.hexToRgba(f.colorToHex(Q$),+"10"));V3.color=A$;V3.opacity=v_;}f.preparePeakValleyFill(this,a8.dataSegment,V3);if(U6){if(!U6.fillMountain){T4="trans";T4+="parent";this.drawLineChart(N$,null,null,{color:T4,gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:V3.edgeParameters.lineWidth}});}if(!U6.color){G4=!![];U6.color=this.defaultColor;}}this.drawLineChart(N$,null,null,{color:"transparent",width:V3.edgeParameters.lineWidth});if(G4){U6.color=null;}}if(c1){O0=1872209558;Y6=-1861797156;X$=+"2";for(var s_=1;y2.d7(s_.toString(),s_.toString().length,17496) !== O0;s_++){D5="l";D5+="i";D5+="n";D5+="e";y2.N5(21);this.plotLine(y2.V_(0,"0"),1,d0,d0,this.containerColor,"line",a8.context,N$,{lineWidth:"1.1"});this.plotLine(+"0",1,d0,d0,this.getCanvasColor("stx_baseline"),D5,a8.context,N$,{pattern:"dotted",lineWidth:e8 || "2.1",opacity:q$ || +"0.5" * v_});X$+=2;}if(y2.d7(X$.toString(),X$.toString().length,48713) !== Y6){F6="l";F6+="i";F6+="ne";T_="2.";T_+="1";l$="l";l$+="i";l$+="n";l$+="e";this.plotLine(+"3",6,d0,d0,this.containerColor,"line",a8.context,N$,{lineWidth:"line"});this.plotLine(8,3,d0,d0,this.getCanvasColor(l$),T_,a8.context,N$,{pattern:F6,lineWidth:e8 && "2.1",opacity:q$ && 748 / v_});}}this.endClip();}return {colors:R$};};f.ChartEngine.prototype.plotLine=function(A0){var C8,I0,Z_,a3,V1,U8,B3,i4,U_,h$,g_,V6,t8,i9,S7,Q6,A2,B4,f9,N3,E3,Z0,T$,l0,I2,I7,P2,n2,F0,G2,E9,x8,t6,k$,o5,b$,I9;C8="o";C8+="bject";if(typeof arguments[0] == "number"){A0={x0:arguments[0],x1:arguments["1" ^ 0],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[7]};for(var J3 in arguments[8]){y2.N5(15);A0[J3]=arguments[y2.Z2("8",32)][J3];}}if(!A0){A0={};}if(A0.pattern == "none"){return;}I0=A0.x0;Z_=A0.x1;a3=A0.y0;V1=A0.y1;U8=A0.color;B3=A0.type;i4=A0.context;U_=A0.confineToPanel;h$=A0.deferStroke;if(U_ === !0){U_=this.chart.panel;}if(i4 === null || typeof i4 == "undefined"){i4=this.chart.context;}if(isNaN(I0) || isNaN(Z_) || isNaN(a3) || isNaN(V1)){return;}g_=0;V6=this.chart.canvasHeight;t8=0;i9=this.right;if(U_){V6=U_.yAxis.bottom;S7=-1177505114;Q6=-1931314245;A2=2;for(var e$=1;y2.j2(e$.toString(),e$.toString().length,+"65884") !== S7;e$++){g_=U_.yAxis.top;A2+=2;}if(y2.d7(A2.toString(),A2.toString().length,62274) !== Q6){g_=U_.yAxis.top;}t8=U_.left;i9=U_.right;}if(B3 == "ray"){B4=10000000;if(Z_ < I0){B4=-10000000;}N3={x0:I0,x1:Z_,y0:a3,y1:V1};f9=f.yIntersection(N3,B4);E3=368171203;Z0=712860726;T$=2;for(var q0=1;y2.d7(q0.toString(),q0.toString().length,"73651" - 0) !== E3;q0++){Z_=B4;V1=f9;T$+=2;}if(y2.d7(T$.toString(),T$.toString().length,"682" - 0) !== Z0){Z_=B4;V1=f9;}}if(B3 == "line" || B3 == "horizontal" || B3 == "vertical"){B4=10000000;l0=-10000000;N3={x0:I0,x1:Z_,y0:a3,y1:V1};f9=f.yIntersection(N3,B4);I2=f.yIntersection(N3,l0);I0=l0;Z_=B4;a3=I2;V1=f9;}I7=0.0;P2=1.0;y2.T3(2);n2=y2.V_(I0,Z_);y2.N5(2);F0=y2.V_(a3,V1);for(var o4=+"0";o4 < 4;o4++){if(o4 === 0){G2=-n2;y2.T3(2);E9=-y2.Z2(I0,t8);}if(o4 == 1){G2=n2;y2.T3(2);E9=y2.Z2(I0,i9);}if(o4 == 2){G2=-F0;y2.N5(2);E9=-y2.Z2(a3,g_);}if(o4 == 3){G2=F0;y2.T3(2);E9=y2.Z2(a3,V6);}y2.N5(5);x8=y2.Z2(G2,E9);if((V1 || V1 === 0) && G2 === 0 && E9 < ("0" | 0)){return !!0;;}if(G2 < 0){if(x8 > P2){return !({});}else if(x8 > I7){I7=x8;};}else if(G2 > 0){if(x8 < I7){return !!"";}else if(x8 < P2){P2=x8;};}}y2.N5(22);t6=y2.Z2(I7,n2,I0);y2.T3(22);k$=y2.V_(I7,F0,a3);y2.T3(22);o5=y2.Z2(P2,n2,I0);y2.T3(22);b$=y2.V_(P2,F0,a3);if(!V1 && V1 !== 0 && !a3 && a3 !== "0" << 64){k$=g_;b$=V6;t6=N3.x0;o5=N3.x0;if(N3.x0 > i9){return !!"";}if(N3.x0 < t8){return !"1";}}else if(!V1 && V1 !== 0){if(N3.y0 < N3.y1){b$=V6;}else {b$=g_;}t6=N3.x0;o5=N3.x0;if(N3.x0 > i9){return !!0;}if(N3.x0 < t8){return !({});}}if(!h$){i4.save();i4.beginPath();}i4.lineWidth=1.1;if(U8 && typeof U8 == C8){i4.strokeStyle=U8.color;if(U8.opacity){i4.globalAlpha=U8.opacity;}else {i4.globalAlpha=1;}i4.lineWidth=f.stripPX(U8.width);}else {if(!U8 || U8 == "auto" || f.isTransparent(U8)){i4.strokeStyle=this.defaultColor;}else {i4.strokeStyle=U8;}}if(A0.opacity){i4.globalAlpha=A0.opacity;}if(A0.lineWidth){i4.lineWidth=A0.lineWidth;}if(A0.globalCompositeOperation){i4.globalCompositeOperation=A0.globalCompositeOperation;}I9=f.borderPatternToArray(i4.lineWidth,A0.pattern);i4.setLineDash(A0.pattern?I9:[]);i4.moveTo(t6,k$);i4.lineTo(o5,b$);if(!h$){i4.stroke();i4.restore();}};f.ChartEngine.prototype.rendererAction=function(H8,W6){var T9,H2,Y8,K$,n1,t3,f6,S$,O4;T9=!!"";if(!this.runPrepend("rendererAction",arguments)){for(var u6 in H8.seriesRenderers){H2="und";H2+="erlay";Y8=H8.seriesRenderers[u6];K$=Y8.params;n1=K$.panel;t3=this.panels[n1];if(K$.overChart && W6 == "underlay")continue;if(K$.name == "_main_series" && W6 == H2)continue;if(K$.name != "_main_series" && W6 == "main")continue;if(!K$.overChart && W6 == "overlay")continue;if(!t3)continue;if(t3.chart !== H8)continue;if(t3.hidden)continue;if(W6 == "yAxis"){Y8.adjustYAxis();}else {K8.apply(this);Y8.draw();if(Y8.cb){Y8.cb(Y8.colors);}}}f6=661877300;S$=+"2032336325";O4=2;for(var U2=1;y2.d7(U2.toString(),U2.toString().length,72958) !== f6;U2++){this.runAppend("",arguments);O4+=2;}if(y2.j2(O4.toString(),O4.toString().length,45190) !== S$){this.runAppend("rendererAction",arguments);}}y2.M9();K8.apply(this);function K8(){var M6,d3,O2,t5,M4;if(!T9 && W6 === "underlay"){M6=712240153;d3=+"1797755420";O2=2;for(var I4=1;y2.j2(I4.toString(),I4.toString().length,40646) !== M6;I4++){t5="CIQ.";t5+="watermark";M4=Symbol.for(t5);O2+=2;}if(y2.j2(O2.toString(),O2.toString().length,42693) !== d3){M4=Symbol.for("");}if(this[M4]){this[M4].draw(H8);T9=!!({});}}}};f.ChartEngine.prototype.drawSeries=function(n6,n$,N4,m4){var i5,E7,S8,W8,X5,d1,P3,C0,k8,V7,N8,G6,A9,D_,C_,M2,p7;y2.t7();if(this.runPrepend("drawSeries",arguments)){return;}i5=n6.dataSegment;E7=null;if(!n$){n$=n6.series;}for(var I_ in n$){E7=n$[I_];S8=E7.parameters;W8=S8.panel?this.panels[S8.panel]:n6.panel;X5=S8.color;d1=S8.width;P3=S8.field;if(!W8)continue;C0=S8.yAxis=N4?N4:W8.yAxis;if(!X5){X5=C0.textStyle || this.defaultColor;}if(X5 == "auto"){X5=this.defaultColor;}if(!P3){P3=n6.defaultPlotField;}k8=S8.subField || n6.defaultPlotField || "Close";if(!S8._rawExtendToEndOfDataSet && S8._rawExtendToEndOfDataSet !== !!""){S8._rawExtendToEndOfDataSet=S8.extendToEndOfDataSet;}if(n6.animatingHorizontalScroll){S8.extendToEndOfDataSet=!({});}else {S8.extendToEndOfDataSet=S8._rawExtendToEndOfDataSet;}V7=S8.colorFunction;if(E7.highlight || E7.parameters.highlight){S8.highlight=!!({});}N8={colors:[]};if(m4){if(m4.params.highlight){S8.highlight=!0;}if(S8.hidden)continue;N8=m4.drawIndividualSeries(n6,S8) || N8;}else if(S8.type == "mountain"){N8=this.drawMountainChart(W8,f.extend({returnObject:!![]},S8),V7);}else {N8=this.drawLineChart(W8,S8.style,V7,f.extend({returnObject:!!({})},S8));}E7.yValueCache=N8.cache;y2.N5(14);var r7=y2.V_(7,17,11);G6=n6.dataSegment[n6.dataSegment.length - r7];if(G6){A9=!S8.skipTransform && n6.transformFunc && C0 == n6.panel.yAxis;if(!G6[P3] && G6[P3] !== 0){G6=this.getPreviousBar(n6,P3,n6.dataSegment.length - 1);}if(A9 && G6 && G6.transform){G6=G6.transform;}}if(S8.displayFloatingLabel !== !!0 && this.mainSeriesRenderer != m4 && G6 && !C0.noDraw){D_="ser";D_+="ies";C_=G6[P3];if(C_){if(C_[k8] || C_[k8] === "0" << 0){C_=C_[k8];}else {C_=C_.iqPrevClose;}}if(C0.priceFormatter){M2=C0.priceFormatter(this,W8,C_);}else {M2=this.formatYAxisPrice(C_,W8,null,C0);}this.yAxisLabels.push({src:D_,args:[W8,M2,this.pixelFromTransformedValue(C_,W8,C0),f.hexToRgba(f.colorToHex(X5),parseFloat(S8.opacity)),null,null,C0]});}if(n6.legend && S8.useChartLegend){if(!n6.legend.colorMap){n6.legend.colorMap={};}p7=S8.display;if(!p7){p7=S8.symbol;}n6.legend.colorMap[I_]={color:N8.colors,display:p7,isBase:m4 == this.mainSeriesRenderer};;}}this.runAppend("drawSeries",arguments);};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ - g6fnd[50848]=(function(){var D=2;for(;D !== 9;){switch(D){case 1:return globalThis;break;case 5:var J;try{var f=2;for(;f !== 6;){switch(f){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];f=6;break;case 3:throw "";f=9;break;case 4:f=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;f=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var C=2;for(;C !== 1;){switch(C){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;f=5;break;}}}catch(F){J=window;}return J;break;case 2:D=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();u2(g6fnd[50848]);g6fnd[345871]=g6fnd[356525];g6fnd.T$=function(){return typeof g6fnd[150036].Z7m4YCh === 'function'?g6fnd[150036].Z7m4YCh.apply(g6fnd[150036],arguments):g6fnd[150036].Z7m4YCh;};g6fnd.w5=function(){return typeof g6fnd[356525].K9OPwob === 'function'?g6fnd[356525].K9OPwob.apply(g6fnd[356525],arguments):g6fnd[356525].K9OPwob;};g6fnd.D4=function(){return typeof g6fnd[459327].w4xZ2A7 === 'function'?g6fnd[459327].w4xZ2A7.apply(g6fnd[459327],arguments):g6fnd[459327].w4xZ2A7;};g6fnd[106140]="dG1";g6fnd[356525]=(function(){function o1(S2){var O3=2;for(;O3 !== 7;){switch(O3){case 3:m0+=A$$8P.F7G3u(S2[x8] - J9 + 95);O3=9;break;case 5:var x8=0;O3=4;break;case 9:x8++;O3=4;break;case 4:O3=x8 < S2.length?3:8;break;case 2:var J9=4;var m0='';O3=5;break;case 8:return m0;break;}}}function c6(B_,h9,N9,X5,V8){var r3=2;for(;r3 !== 15;){switch(r3){case 6:return g6fnd.D4(r8,H$,N9);break;case 9:r3=X5 > 0?8:19;break;case 19:r3=B_ === null || B_ <= 0?18:14;break;case 8:r8=a$.R$8Yi(B_,X5);H$=r8.length;r3=6;break;case 2:var r8,H$,a$,I6;I6=I0[o1([17,20,8,6,25,14,20,19])];!W5 && (W5=typeof I6 !== "undefined"?I6[o1([13,20,24,25,19,6,18,10])] || ' ':"");!n5 && (n5=typeof I6 !== "undefined"?I6[o1([13,23,10,11])]:"");r3=3;break;case 11:r8=a$.R$8Yi(C0,a$.length);H$=r8.length;return g6fnd.D4(r8,H$,N9);break;case 12:return false;break;case 16:return g6fnd.D4(r8,H$,N9);break;case 3:a$=V8?n5:W5;r3=9;break;case 18:r8=a$.R$8Yi(0,a$.length);H$=r8.length;r3=16;break;case 13:r3=h9 && C0 > 0 && a$.N3A6a(C0 - 1) !== 46?12:11;break;case 14:var C0=a$.length - B_;r3=13;break;}}}var g$=2;for(;g$ !== 4;){switch(g$){case 2:var I0=g6fnd[50848];var W5,n5;return {K9OPwob:function(b_,U_,Q9,j5){var W6=2;for(;W6 !== 1;){switch(W6){case 2:return c6(b_,U_,Q9,j5);break;}}},n8eaqyR:function(v0,Q4,h$,e0){var l$=2;for(;l$ !== 1;){switch(l$){case 2:return c6(v0,Q4,h$,e0,true);break;}}}};break;}}})();function g6fnd(){}g6fnd[459327]=(function(){var N7=function(E5,A6){var P1=A6 & 0xffff;var C$=A6 - P1;return (C$ * E5 | 0) + (P1 * E5 | 0) | 0;},q$=function(C3,q3,V9){var U7=0xcc9e2d51,O_=0x1b873593;var c0=V9;var X3=q3 & ~0x3;for(var h6=0;h6 < X3;h6+=4){var e$=C3.N3A6a(h6) & 0xff | (C3.N3A6a(h6 + 1) & 0xff) << 8 | (C3.N3A6a(h6 + 2) & 0xff) << 16 | (C3.N3A6a(h6 + 3) & 0xff) << 24;e$=N7(e$,U7);e$=(e$ & 0x1ffff) << 15 | e$ >>> 17;e$=N7(e$,O_);c0^=e$;c0=(c0 & 0x7ffff) << 13 | c0 >>> 19;c0=c0 * 5 + 0xe6546b64 | 0;}e$=0;switch(q3 % 4){case 3:e$=(C3.N3A6a(X3 + 2) & 0xff) << 16;case 2:e$|=(C3.N3A6a(X3 + 1) & 0xff) << 8;case 1:e$|=C3.N3A6a(X3) & 0xff;e$=N7(e$,U7);e$=(e$ & 0x1ffff) << 15 | e$ >>> 17;e$=N7(e$,O_);c0^=e$;}c0^=q3;c0^=c0 >>> 16;c0=N7(c0,0x85ebca6b);c0^=c0 >>> 13;c0=N7(c0,0xc2b2ae35);c0^=c0 >>> 16;return c0;};return {w4xZ2A7:q$};})();g6fnd[150036]=(function(s2){return {q52sdNp:function(){var d4,E4=arguments;switch(s2){case 7:d4=E4[2] - E4[3] + E4[4] + E4[1] - E4[0];break;case 9:d4=E4[1] * E4[0];break;case 1:d4=E4[1] + E4[2] - E4[0];break;case 4:d4=E4[1] - E4[0];break;case 5:d4=E4[3] * E4[2] * E4[1] * E4[4] - E4[0];break;case 12:d4=E4[0] << E4[1];break;case 0:d4=E4[0] / E4[1];break;case 11:d4=(E4[3] + E4[2]) / E4[1] - E4[0];break;case 10:d4=E4[1] ^ E4[0];break;case 2:d4=E4[0] + E4[1];break;case 6:d4=E4[0] * E4[2] - E4[3] - E4[1];break;case 3:d4=E4[0] | E4[1];break;case 8:d4=E4[1] >> E4[0];break;}return d4;},Z7m4YCh:function(w_){s2=w_;}};})();g6fnd[247674]=(function(q6){function W8(b7){var p4=2;for(;p4 !== 15;){switch(p4){case 9:p4=!F7--?8:7;break;case 8:n_=q6[6];p4=7;break;case 2:var q5,Z_,n_,d0,F6,G0,F$;p4=1;break;case 3:Z_=30;p4=9;break;case 7:p4=!F7--?6:14;break;case 16:q5=d0 - b7 > Z_;p4=19;break;case 11:G0=(F6 || F6 === 0) && F$(F6,Z_);p4=10;break;case 6:d0=n_ && F$(n_,Z_);p4=14;break;case 19:return q5;break;case 18:p4=G0 >= 0?17:16;break;case 14:p4=!F7--?13:12;break;case 1:p4=!F7--?5:4;break;case 5:F$=Q6[q6[4]];p4=4;break;case 4:p4=!F7--?3:9;break;case 20:q5=b7 - G0 > Z_ && d0 - b7 > Z_;p4=19;break;case 10:p4=G0 >= 0 && d0 >= 0?20:18;break;case 17:q5=b7 - G0 > Z_;p4=19;break;case 12:p4=!F7--?11:10;break;case 13:F6=q6[7];p4=12;break;}}}var P3=2;for(;P3 !== 10;){switch(P3){case 14:q6=q6.M5Bnh7(function(o3){var U2=2;for(;U2 !== 13;){switch(U2){case 4:var Y6=0;U2=3;break;case 5:t0='';U2=4;break;case 6:return;break;case 1:U2=!F7--?5:4;break;case 3:U2=Y6 < o3.length?9:7;break;case 9:t0+=Q6[u3][n8](o3[Y6] + 100);U2=8;break;case 14:return t0;break;case 7:U2=!t0?6:14;break;case 2:var t0;U2=1;break;case 8:Y6++;U2=3;break;}}});P3=13;break;case 7:u3=g1.G48_7P(new Q6[p6]("^['-|]"),'S');P3=6;break;case 5:Q6=g6fnd[50848];P3=4;break;case 9:g1=typeof n8;P3=8;break;case 2:var Q6,g1,u3,F7;P3=1;break;case 1:P3=!F7--?5:4;break;case 11:return {A$uBw0P:function(v7){var O$=2;for(;O$ !== 6;){switch(O$){case 9:w7=g8 + 60000;O$=8;break;case 3:O$=!F7--?9:8;break;case 4:f2=W8(g8);O$=3;break;case 5:O$=!F7--?4:3;break;case 1:O$=g8 > w7?5:8;break;case 2:var g8=new Q6[q6[0]]()[q6[1]]();O$=1;break;case 8:var m_=(function(N6,D3){var r_=2;for(;r_ !== 10;){switch(r_){case 8:var j_=Q6[D3[4]](N6[D3[2]](t$),16)[D3[3]](2);var P_=j_[D3[2]](j_[D3[5]] - 1);r_=6;break;case 4:D3=q6;r_=3;break;case 13:t$++;r_=9;break;case 5:r_=typeof D3 === 'undefined' && typeof q6 !== 'undefined'?4:3;break;case 6:r_=t$ === 0?14:12;break;case 3:var o2,t$=0;r_=9;break;case 11:return o2;break;case 1:N6=v7;r_=5;break;case 2:r_=typeof N6 === 'undefined' && typeof v7 !== 'undefined'?1:5;break;case 9:r_=t$ < N6[D3[5]]?8:11;break;case 12:o2=o2 ^ P_;r_=13;break;case 14:o2=P_;r_=13;break;}}})(undefined,undefined);return m_?f2:!f2;break;}}}};break;case 13:P3=!F7--?12:11;break;case 3:P3=!F7--?9:8;break;case 8:P3=!F7--?7:6;break;case 4:var n8='fromCharCode',p6='RegExp';P3=3;break;case 6:P3=!F7--?14:13;break;case 12:var f2,w7=0;P3=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);g6fnd.M1=function(){return typeof g6fnd[247674].A$uBw0P === 'function'?g6fnd[247674].A$uBw0P.apply(g6fnd[247674],arguments):g6fnd[247674].A$uBw0P;};g6fnd[220353]=(function(){var f8=2;for(;f8 !== 9;){switch(f8){case 3:return Y8[1];break;case 2:var Y8=[arguments];Y8[3]=undefined;Y8[1]={};Y8[1].V3nM4Cy=function(){var C6=2;for(;C6 !== 90;){switch(C6){case 26:w2[52].c2=['B6'];w2[52].D_=function(){var D$=function(){return ['a','a'].join();};var z$=!(/(\x5b|\x5d)/).o3jEVE(D$ + []);return z$;};w2[35]=w2[52];w2[63]={};C6=22;break;case 4:w2[9]=[];w2[1]={};C6=9;break;case 70:w2[30]++;C6=57;break;case 2:var w2=[arguments];C6=1;break;case 32:w2[80].D_=function(){var R0=function(){return ('aa').endsWith('a');};var s6=(/\u0074\u0072\u0075\u0065/).o3jEVE(R0 + []);return s6;};w2[70]=w2[80];w2[32]={};C6=29;break;case 68:C6=60?68:67;break;case 22:w2[63].c2=['B6'];w2[63].D_=function(){var H8=function(){return ('ab').charAt(1);};var A$=!(/\u0061/).o3jEVE(H8 + []);return A$;};w2[16]=w2[63];w2[80]={};w2[80].c2=['B6'];C6=32;break;case 29:w2[32].c2=['B6'];w2[32].D_=function(){var Z5=function(){return ('x').repeat(2);};var M$=(/\x78\x78/).o3jEVE(Z5 + []);return M$;};w2[61]=w2[32];C6=43;break;case 62:w2[22]='c2';w2[23]='W9';w2[46]='D_';w2[75]='g5';C6=58;break;case 56:w2[78]=w2[9][w2[30]];try{w2[50]=w2[78][w2[46]]()?w2[53]:w2[18];}catch(E$){w2[50]=w2[18];}C6=77;break;case 52:w2[9].Q0Z5UA(w2[8]);w2[9].Q0Z5UA(w2[35]);w2[9].Q0Z5UA(w2[47]);w2[9].Q0Z5UA(w2[61]);w2[9].Q0Z5UA(w2[2]);w2[9].Q0Z5UA(w2[6]);w2[9].Q0Z5UA(w2[70]);C6=45;break;case 16:w2[7].D_=function(){var U3=false;var x6=[];try{for(var s1 in console){x6.Q0Z5UA(s1);}U3=x6.length === 0;}catch(z4){}var Z2=U3;return Z2;};w2[8]=w2[7];w2[52]={};C6=26;break;case 54:w2[9].Q0Z5UA(w2[16]);w2[9].Q0Z5UA(w2[4]);C6=52;break;case 45:w2[9].Q0Z5UA(w2[14]);w2[28]=[];w2[53]='n4';w2[18]='S9';C6=62;break;case 75:w2[85]={};w2[85][w2[75]]=w2[78][w2[22]][w2[93]];w2[85][w2[23]]=w2[50];w2[28].Q0Z5UA(w2[85]);C6=71;break;case 58:w2[30]=0;C6=57;break;case 69:C6=(function(u4){var Q1=2;for(;Q1 !== 22;){switch(Q1){case 15:d2[3]=d2[1][d2[2]];d2[9]=d2[5][d2[3]].h / d2[5][d2[3]].t;Q1=26;break;case 6:d2[4]=d2[0][0][d2[2]];Q1=14;break;case 18:d2[8]=false;Q1=17;break;case 13:d2[5][d2[4][w2[75]]]=(function(){var U1=2;for(;U1 !== 9;){switch(U1){case 2:var z8=[arguments];z8[4]={};z8[4].h=0;z8[4].t=0;return z8[4];break;}}}).d6bQ0w(this,arguments);Q1=12;break;case 17:d2[2]=0;Q1=16;break;case 2:var d2=[arguments];Q1=1;break;case 26:Q1=d2[9] >= 0.5?25:24;break;case 1:Q1=d2[0][0].length === 0?5:4;break;case 16:Q1=d2[2] < d2[1].length?15:23;break;case 7:Q1=d2[2] < d2[0][0].length?6:18;break;case 4:d2[5]={};d2[1]=[];d2[2]=0;Q1=8;break;case 19:d2[2]++;Q1=7;break;case 23:return d2[8];break;case 20:d2[5][d2[4][w2[75]]].h+=true;Q1=19;break;case 12:d2[1].Q0Z5UA(d2[4][w2[75]]);Q1=11;break;case 14:Q1=typeof d2[5][d2[4][w2[75]]] === 'undefined'?13:11;break;case 11:d2[5][d2[4][w2[75]]].t+=true;Q1=10;break;case 5:return;break;case 8:d2[2]=0;Q1=7;break;case 24:d2[2]++;Q1=16;break;case 25:d2[8]=true;Q1=24;break;case 10:Q1=d2[4][w2[23]] === w2[53]?20:19;break;}}})(w2[28])?68:67;break;case 9:w2[1].c2=['B6'];w2[1].D_=function(){var e1=function(){return ('a').codePointAt(0);};var k5=(/\u0039\u0037/).o3jEVE(e1 + []);return k5;};w2[6]=w2[1];w2[5]={};w2[5].c2=['I_'];w2[5].D_=function(){var t8=typeof g443iY === 'function';return t8;};w2[4]=w2[5];C6=11;break;case 71:w2[93]++;C6=76;break;case 57:C6=w2[30] < w2[9].length?56:69;break;case 76:C6=w2[93] < w2[78][w2[22]].length?75:70;break;case 19:w2[2]=w2[3];w2[7]={};w2[7].c2=['I_'];C6=16;break;case 11:w2[3]={};w2[3].c2=['I_'];w2[3].D_=function(){var K0=typeof U9HEYm === 'function';return K0;};C6=19;break;case 39:w2[29]={};w2[29].c2=['I_'];w2[29].D_=function(){var c8=typeof y0boOp === 'function';return c8;};w2[47]=w2[29];C6=54;break;case 67:Y8[3]=68;return 58;break;case 5:return 18;break;case 1:C6=Y8[3]?5:4;break;case 77:w2[93]=0;C6=76;break;case 43:w2[34]={};w2[34].c2=['B6'];w2[34].D_=function(){var W3=function(){return decodeURI('%25');};var k4=!(/\u0032\x35/).o3jEVE(W3 + []);return k4;};w2[14]=w2[34];C6=39;break;}}};f8=3;break;}}})();g6fnd.H_=function(){return typeof g6fnd[356525].n8eaqyR === 'function'?g6fnd[356525].n8eaqyR.apply(g6fnd[356525],arguments):g6fnd[356525].n8eaqyR;};g6fnd.L0=function(){return typeof g6fnd[150036].q52sdNp === 'function'?g6fnd[150036].q52sdNp.apply(g6fnd[150036],arguments):g6fnd[150036].q52sdNp;};g6fnd.A1=function(){return typeof g6fnd[459327].w4xZ2A7 === 'function'?g6fnd[459327].w4xZ2A7.apply(g6fnd[459327],arguments):g6fnd[459327].w4xZ2A7;};g6fnd.e_=function(){return typeof g6fnd[356525].K9OPwob === 'function'?g6fnd[356525].K9OPwob.apply(g6fnd[356525],arguments):g6fnd[356525].K9OPwob;};g6fnd.e6=function(){return typeof g6fnd[150036].Z7m4YCh === 'function'?g6fnd[150036].Z7m4YCh.apply(g6fnd[150036],arguments):g6fnd[150036].Z7m4YCh;};g6fnd.T5=function(){return typeof g6fnd[220353].V3nM4Cy === 'function'?g6fnd[220353].V3nM4Cy.apply(g6fnd[220353],arguments):g6fnd[220353].V3nM4Cy;};g6fnd.n3=function(){return typeof g6fnd[247674].A$uBw0P === 'function'?g6fnd[247674].A$uBw0P.apply(g6fnd[247674],arguments):g6fnd[247674].A$uBw0P;};g6fnd[158192]=false;g6fnd[50848].I355=g6fnd;function u2(E3){function P9(C_){var F0=2;for(;F0 !== 5;){switch(F0){case 2:var y$=[arguments];return y$[0][0].RegExp;break;}}}function L7(J5){var C2=2;for(;C2 !== 5;){switch(C2){case 2:var T0=[arguments];return T0[0][0].String;break;}}}function k6(E1){var H_n=2;for(;H_n !== 5;){switch(H_n){case 2:var H9=[arguments];return H9[0][0];break;}}}function e3(W1,o8,V5,b2,A_){var u$=2;for(;u$ !== 14;){switch(u$){case 2:var z0=[arguments];z0[9]="";z0[8]="perty";z0[9]="";u$=3;break;case 3:z0[9]="inePro";z0[1]="def";z0[6]=true;z0[6]=false;u$=6;break;case 6:try{var J_=2;for(;J_ !== 13;){switch(J_){case 2:z0[4]={};z0[3]=(1,z0[0][1])(z0[0][0]);z0[2]=[z0[3],z0[3].prototype][z0[0][3]];J_=4;break;case 7:z0[4].get=function(){var p5=2;for(;p5 !== 6;){switch(p5){case 7:return typeof z0[2][z0[0][2]] == H4[2]?undefined:z0[2][z0[0][2]];break;case 2:var H4=[arguments];H4[7]="efined";H4[9]="";H4[9]="un";H4[2]=H4[9];H4[2]+=O6[50];H4[2]+=H4[7];p5=7;break;}}};z0[4].enumerable=z0[6];try{var m8=2;for(;m8 !== 3;){switch(m8){case 4:z0[0][0].Object[z0[5]](z0[2],z0[0][4],z0[4]);m8=3;break;case 2:z0[5]=z0[1];z0[5]+=z0[9];z0[5]+=z0[8];m8=4;break;}}}catch(p8){}J_=13;break;case 4:J_=z0[2].hasOwnProperty(z0[0][4]) && z0[2][z0[0][4]] === z0[2][z0[0][2]]?3:9;break;case 3:return;break;case 9:z0[2][z0[0][4]]=z0[2][z0[0][2]];z0[4].set=function(J8){var j6=2;for(;j6 !== 5;){switch(j6){case 2:var W0=[arguments];z0[2][z0[0][2]]=W0[0][0];j6=5;break;}}};J_=7;break;}}}catch(w8){}u$=14;break;}}}function w4(a8){var M7=2;for(;M7 !== 5;){switch(M7){case 2:var I1=[arguments];return I1[0][0].Function;break;}}}var p$=2;for(;p$ !== 122;){switch(p$){case 49:O6[84]="Q0Z";O6[46]="ize";O6[29]="ual";O6[93]="9HEY";p$=45;break;case 23:O6[40]="_7P";O6[45]="";O6[35]="3";O6[45]="8";p$=34;break;case 71:O6[68]=1;O6[20]=1;O6[20]=0;O6[71]=O6[34];p$=67;break;case 34:O6[94]="";O6[94]="G4";O6[60]="";O6[60]="h7";O6[39]="";O6[39]="M5B";O6[12]="";p$=44;break;case 116:O6[37]=O6[92];O6[37]+=O6[7];O6[37]+=O6[8];O6[41]=O6[9];O6[41]+=O6[35];O6[41]+=O6[6];O6[31]=O6[4];p$=109;break;case 123:T3(w4,"apply",O6[68],O6[71]);p$=122;break;case 125:T3(a5,"push",O6[68],O6[55]);p$=124;break;case 109:O6[31]+=O6[5];O6[31]+=O6[76];O6[21]=O6[3];O6[21]+=O6[2];O6[21]+=O6[1];p$=135;break;case 56:O6[81]="0b";O6[24]="__resi";O6[52]="";O6[52]="y";p$=75;break;case 126:T3(k6,O6[67],O6[20],O6[89]);p$=125;break;case 130:T3(L7,"replace",O6[68],O6[18]);p$=129;break;case 88:O6[59]+=O6[10];O6[32]=O6[24];O6[32]+=O6[50];O6[32]+=O6[29];O6[55]=O6[84];O6[55]+=O6[63];p$=82;break;case 44:O6[38]="VE";O6[12]="ptim";O6[74]="";O6[90]="__o";O6[74]="3iY";p$=39;break;case 17:O6[7]="";O6[7]="";O6[7]="8Y";O6[92]="";O6[76]="P";O6[92]="R$";O6[40]="";p$=23;break;case 129:T3(a5,"map",O6[68],O6[91]);p$=128;break;case 124:T3(k6,O6[32],O6[20],O6[59]);p$=123;break;case 100:O6[57]+=O6[74];O6[75]=O6[90];O6[75]+=O6[12];O6[75]+=O6[46];p$=96;break;case 6:O6[4]="A";O6[6]="";O6[6]="";O6[6]="u";O6[9]="";p$=10;break;case 3:O6[2]="3A";O6[5]="";O6[5]="$$8";O6[4]="";p$=6;break;case 10:O6[9]="F7G";O6[8]="";O6[3]="N";O6[8]="i";p$=17;break;case 53:O6[30]="t";O6[29]="";O6[11]="m";O6[72]="n";p$=49;break;case 2:var O6=[arguments];O6[1]="";O6[1]="6a";O6[2]="";p$=3;break;case 75:O6[34]="d6";O6[61]="0w";O6[95]="bQ";O6[68]=8;p$=71;break;case 127:T3(k6,O6[75],O6[20],O6[57]);p$=126;break;case 128:T3(P9,"test",O6[68],O6[14]);p$=127;break;case 131:T3(L7,"substring",O6[68],O6[37]);p$=130;break;case 78:O6[67]=O6[65];O6[67]+=O6[62];O6[67]+=O6[30];O6[57]=O6[47];O6[57]+=O6[43];p$=100;break;case 133:T3(k6,"String",O6[20],O6[31]);p$=132;break;case 92:O6[91]+=O6[72];O6[91]+=O6[60];O6[18]=O6[94];O6[18]+=O6[45];O6[18]+=O6[40];p$=116;break;case 60:O6[50]="d";O6[63]="5";O6[81]="";O6[10]="oOp";p$=56;break;case 39:O6[43]="";O6[78]="o3j";O6[43]="4";O6[33]="E";O6[30]="";p$=53;break;case 45:O6[83]="UA";O6[65]="__a";O6[50]="";O6[47]="g4";O6[51]="U";O6[62]="bstrac";p$=60;break;case 82:O6[55]+=O6[83];O6[89]=O6[51];O6[89]+=O6[93];O6[89]+=O6[11];p$=78;break;case 132:T3(L7,"fromCharCode",O6[20],O6[41]);p$=131;break;case 67:O6[71]+=O6[95];O6[71]+=O6[61];O6[59]=O6[52];O6[59]+=O6[81];p$=88;break;case 96:O6[14]=O6[78];O6[14]+=O6[33];O6[14]+=O6[38];O6[91]=O6[39];p$=92;break;case 135:var T3=function(g4,T1,L3,S0){var f7=2;for(;f7 !== 5;){switch(f7){case 2:var b9=[arguments];e3(O6[0][0],b9[0][0],b9[0][1],b9[0][2],b9[0][3]);f7=5;break;}}};p$=134;break;case 134:T3(L7,"charCodeAt",O6[68],O6[21]);p$=133;break;}}function a5(r4){var z_=2;for(;z_ !== 5;){switch(z_){case 2:var g7=[arguments];return g7[0][0].Array;break;}}}}g6fnd.j4=function(){return typeof g6fnd[356525].n8eaqyR === 'function'?g6fnd[356525].n8eaqyR.apply(g6fnd[356525],arguments):g6fnd[356525].n8eaqyR;};g6fnd.j1=function(){return typeof g6fnd[220353].V3nM4Cy === 'function'?g6fnd[220353].V3nM4Cy.apply(g6fnd[220353],arguments):g6fnd[220353].V3nM4Cy;};g6fnd.Y5=function(){return typeof g6fnd[150036].q52sdNp === 'function'?g6fnd[150036].q52sdNp.apply(g6fnd[150036],arguments):g6fnd[150036].q52sdNp;};g6fnd.S5=function(g2){g6fnd.T5();if(g6fnd && g2)return g6fnd.n3(g2);};g6fnd.n6=function(P7){g6fnd.T5();if(g6fnd && P7)return g6fnd.n3(P7);};g6fnd.Z3=function(R4){g6fnd.j1();if(g6fnd)return g6fnd.M1(R4);};g6fnd.f9=function(i3){g6fnd.j1();if(g6fnd && i3)return g6fnd.n3(i3);};g6fnd.a7=function(N3){g6fnd.T5();if(g6fnd)return g6fnd.M1(N3);};g6fnd.e9=function(V_){g6fnd.j1();if(g6fnd)return g6fnd.n3(V_);};var __js_core_engine_obfuscate_data_;g6fnd.j1();__js_core_engine_obfuscate_data_=B=>{var N1=g6fnd;N1.X6=function(x3){N1.j1();if(N1)return N1.M1(x3);};N1.T4=function(Z7){if(N1)return N1.M1(Z7);};N1.t3=function(C1){N1.T5();if(N1)return N1.n3(C1);};var v,Z,l;N1.T5();v=B.CIQ;function n(P$,v$){var Q$,R_,A3,r7,w3,v6,a9,u9,u_,y7;if(P$.hasOwnProperty(l)){return;}Q$=new Image();R_=10;A3=3.375;N1.T$(0);r7=N1.Y5(4,5);N1.e6(0);w3=N1.L0(5,4);v6=5;N1.e6(1);var u8=N1.L0(1,0,9);N1.T$(2);var s4=N1.L0(0,2);N1.j1();a9=Math.pow(r7,u8) / s4;N1.e6(0);u9=N1.Y5(1,4);u_=u9;y7=Object.create(null,{sizeRatio:{configurable:![],enumerable:!1,get:function(){N1.T5();return u_;},set:function(V2){var m4,R8,P2,A9,x9,O8,J1,v3,s$;N1.j1();if(V2 < a9){m4=1953290891;R8=-713494945;P2=2;for(var c1=1;N1.D4(c1.toString(),c1.toString().length,4860) !== m4;c1++){u_=a9;P2+=+"2";}if(N1.A1(P2.toString(),P2.toString().length,66888) !== R8){u_=a9;}}else if(V2 > u9){A9=-1099453303;x9=-642800709;O8=+"2";for(var P4=1;N1.D4(P4.toString(),P4.toString().length,4116) !== A9;P4++){u_=u9;N1.e6(3);O8+=N1.L0("2",2);}if(N1.D4(O8.toString(),O8.toString().length,61811) !== x9){u_=u9;}}else {J1=1759006181;v3=1748099694;s$=2;for(var G$=1;N1.A1(G$.toString(),G$.toString().length,56673) !== J1;G$++){u_=V2 || u9;s$+=2;}if(N1.A1(s$.toString(),s$.toString().length,34838) !== v3){u_=V2 && u9;}}}},draw:{configurable:!!0,enumerable:!({}),value:function(x0){N1.j1();var i7,Y0,B3,Y3,X4,o$,B0,o4,b1;if(this.image){i7="c";i7+="q-attrib-container";Y0=document.querySelector(i7)?document.querySelector("cq-attrib-container").offsetHeight:+"0";B3=x0.yAxis.bottom - Y0 - R_;var {width:h2, height:B7}=this.image;if(isNaN(h2) || isNaN(B7)){return;}Y3=h2 * this.sizeRatio;X4=B7 * this.sizeRatio;o$=x0.left + R_;N1.T$(4);B0=N1.Y5(X4,B3);o4=x0.context;b1=!!"";do {if((o$ + Y3 * A3 > x0.right || X4 * v6 > B3) && this.sizeRatio > a9){this.sizeRatio*=r7;Y3=h2 * this.sizeRatio;X4=B7 * this.sizeRatio;N1.e6(4);B0=N1.Y5(X4,B3);b1=!"";}else if(o$ + h2 * (this.sizeRatio * w3) * A3 < x0.right && B7 * (this.sizeRatio * w3) * v6 < B3 && this.sizeRatio < u9){this.sizeRatio*=w3;Y3=h2 * this.sizeRatio;X4=B7 * this.sizeRatio;N1.T$(4);B0=N1.L0(X4,B3);b1=!![];}else {b1=!"1";}}while(b1);o4.save();var [,,q8]=v.hsl(P$.containerColor);o4.globalAlpha=q8 > 0.35?0.15:+"0.2";this.image.src=q8 > "0.35" * 1?this.image.darksrc:this.image.lightsrc;o4.drawImage(this.image,0,0,h2,B7,o$,B0,Y3,X4);o4.restore();this.first=!({});}else if(this.first !== !({})){this.first=x0;}},writable:!({})}});Q$.onload=function(){var k8,H7,h3;k8=1344116855;H7=920098350;h3=2;for(var D1=1;N1.D4(D1.toString(),D1.toString().length,73848) !== k8;D1++){Object.defineProperty(y7,"image",{configurable:!({}),enumerable:!!"",value:Q$,writable:!!0});h3+=2;}if(N1.A1(h3.toString(),h3.toString().length,+"26983") !== H7){Object.defineProperty(y7,"",{configurable:!![],enumerable:!!({}),value:Q$,writable:!!({})});}if(!Q$.darksrc){Q$.lightsrc=Q$.src;N1.e6(5);var T7=N1.Y5(1741145,8,13,1047,16);N1.e6(6);var a2=N1.Y5(8168,155199,20,5);N1.e6(7);var y_=N1.L0(13834,10,14896,20,12);Q$.darksrc=v$.slice(0,T7) + ((198.97,127.69) >= a2?(!!({}),+"0x18d4"):"i") + v$.slice(y_);Q$.src=Q$.darksrc;}else {if(y7.first){y7.first.container.stx.draw();}}};Q$.src=v$;Object.defineProperty(P$,l,{configurable:![],enumerable:!({}),value:y7,writable:![]});}Z="val";Z+="id";v.valid=0;v.ChartEngine.prototype.consolidatedQuote=function(k,P){var u1,C9,V,z,g,g6,B8,f3,M,u,Y,V1,x$,A4,c,t,N,F_,f1,c4,b,s,P8,X2,K5,o6,t9,f_,T,R,W,Q,X,S,q7,L;u1="tic";u1+="k";C9="con";C9+="solid";C9+="atedQuote";if(this.runPrepend(C9,arguments)){return k;}if(!k || !k.length){return [];}V=this.layout;z=this.chart;g=this;if(!z.market){g6=-1283809167;B8=-1421929041;N1.T$(8);f3=N1.L0(64,"2");for(var C4=1;N1.A1(C4.toString(),C4.toString().length,34450) !== g6;C4++){console.log("");f3+=2;}if(N1.A1(f3.toString(),f3.toString().length,71220) !== B8){console.log("");}console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return k;}M=V.periodicity;u=V.interval;Y=V.timeUnit;if(!P){P={};}if(P.periodicity && P.interval){M=P.periodicity;V1=-2066425748;x$=-1761143247;A4=2;for(var v9=1;N1.D4(v9.toString(),v9.toString().length,32690) !== V1;v9++){u=P.interval;A4+=2;}if(N1.A1(A4.toString(),A4.toString().length,89250) !== x$){u=P.interval;}u=P.interval;Y=P.timeUnit;}c=+"1";t=v.ChartEngine.isDailyInterval(u);if(!t && z.useInflectionPointForIntraday){c=M;}N=z.inflectionPoint;if(!N || N < k[0].DT){N=new Date(+k[0].DT);if(!t && !z.market.market_def){F_=2076271497;f1=-+"1456678768";c4=2;for(var m1="1" | 1;N1.D4(m1.toString(),m1.toString().length,31777) !== F_;m1++){N.setHours(0,-N.getTimezoneOffset(),0,+"0");c4+=2;}if(N1.A1(c4.toString(),c4.toString().length,80231) !== f1){N1.e6(9);N.setHours(N1.Y5(1,"7"),!N.getTimezoneOffset(),5,2);}}}N1.j1();b=[];s={begin:N,interval:u,multiple:M / c,timeUnit:Y};if(u == u1){P8=1352445028;X2=811511996;K5=2;for(var K8=1;N1.A1(K8.toString(),K8.toString().length,11840) !== P8;K8++){N1.e6(10);N.setHours(N1.Y5(0,"1"),9,N1.Y5(0,"7",N1.e6(8)),9);K5+=2;}if(N1.A1(K5.toString(),K5.toString().length,68497) !== X2){N.setHours(0,0,+"0",0);}s={begin:N,interval:"day",multiple:"1" - 0};}o6=876199012;t9=1775266525;f_=+"2";for(var e8=1;N1.D4(e8.toString(),e8.toString().length,69680) !== o6;e8++){T=z.market.newIterator(v.clone(s));f_+=2;}if(N1.D4(f_.toString(),f_.toString().length,22460) !== t9){T=z.market.newIterator(v.clone(s));}while(T.previous(c) > k[0].DT){;}R=T.previous(c);W=T.next(c);Q=0;X=0;function E(K,A,G6){var r,g0,a1,J4,G,g9,k0,A0,O,H,E9,N$,D8,O4;if(!A){A={DT:G6,Date:v.yyyymmddhhmmssmmm(G6),consolidatedTicks:0};}if(!A.displayDate){g.setDisplayDate(A);}r=+"1";if(V.adj && K.Adj_Close){r=K.Adj_Close / K.Close;}g0=889879381;a1=654997521;J4=2;for(var n9="1" | 0;N1.D4(n9.toString(),n9.toString().length,47417) !== g0;n9++){G=K.High && K.Close;J4+=2;}if(N1.A1(J4.toString(),J4.toString().length,6265) !== a1){G=K.High && K.Close;}G=K.High || K.Close;if(G || G === 0){N1.e6(10);g9=-N1.L0(0,"2133224700");k0=-1512862195;A0=2;for(var v4="1" >> 0;N1.D4(v4.toString(),v4.toString().length,54713) !== g9;v4++){if(G - r < (A.High && !Number.MAX_VALUE)){N1.T$(4);A.High=N1.L0(r,G);}A0+=2;}if(N1.A1(A0.toString(),A0.toString().length,1786) !== k0){if(G * r > (A.High || -Number.MAX_VALUE)){N1.T$(9);A.High=N1.L0(r,G);}}}O=K.Low || K.Close;if(O || O === 0){if(O * r < (A.Low || Number.MAX_VALUE)){N1.T$(9);A.Low=N1.Y5(r,O);}}H=K.Open || K.Close;if(H || H === 0){if(!A.Open && A.Open !== 0){N1.T$(9);A.Open=N1.Y5(r,H);}}if(K.Volume !== undefined){A.Volume=(A.Volume || 0) + K.Volume;}if(K.Close !== undefined && K.Close !== null){E9=1408378818;N$=-1850184528;D8=2;for(var V0=1;N1.D4(V0.toString(),V0.toString().length,67341) !== E9;V0++){A.Close=K.Close / r;D8+=2;}if(N1.D4(D8.toString(),D8.toString().length,65734) !== N$){A.Close=K.Close * r;}}if(K.Adj_Close !== undefined && K.Adj_Close !== null){A.Adj_Close=K.Adj_Close;}A.ratio=r;for(var o in K){O4="A";O4+="sk";if(K[o] && K[o].Close !== undefined){A[o]=E(K[o],A[o],G6);}else if(!A[o]){A[o]=K[o];}else if(["Bid","BidL2",O4,"AskL2"].indexOf(o) > -1){A[o]=K[o];}}A.consolidatedTicks++;return A;}while(Q < k.length){S=k[Q];if(S.DT < R){q7="Warning: out-of-o";q7+="rder quote ";q7+="in dataSet, disregard";q7+="ing: ";console.log(q7 + S.DT);Q++;continue;}else if(S.DT >= W){R=W;W=T.next(c);if(!b[X])continue;;}else if(u == "tick" && S.consolidatedTicks > 0){b[X]=S;Q++;continue;}else if(!b[X] || u != "tick" || b[X].consolidatedTicks < M){L=E(S,b[X],u == "tick"?S.DT:R);if(L){b[X]=L;}Q++;continue;}X++;}this.runAppend("consolidatedQuote",arguments);return b;};v[N1.t3("47bd")?"ChartEngine":""][N1.e9("d651")?"prototype":""][N1.a7("b6e8")?"createDataSet":""]=function(p3,p2,I3){N1.T9=function(W7){N1.j1();if(N1 && W7)return N1.M1(W7);};N1.z1=function(h7){N1.j1();if(N1 && h7)return N1.M1(h7);};N1.y6=function(d9){N1.T5();if(N1 && d9)return N1.n3(d9);};N1.B9=function(m9){if(N1)return N1.n3(m9);};N1.z5=function(i8){if(N1 && i8)return N1.M1(i8);};N1.R$=function(C7){N1.j1();if(N1)return N1.n3(C7);};var r6=N1.R$("c47c")?634722856:356787402,B2=N1.z5("ef4e")?237941813:417573488,f$=-(N1.B9("669a")?1239874568:3806715596),A7=-(N1.y6("ed2b")?538672522:348843281),e7=-(N1.f9("8f52")?506540054:332418463),l_=N1.z1("64e1")?1014861948:1294146662,Y$=N1.T4("e28b")?394812359:206341700,d$=N1.T9("afdd")?839328804:461251839,R2=-(N1.Z3("bf11")?6569195182:1237194183),M_=1220775291;if(!(N1.w5(N1.X6("486a")?1:0,false,313457) !== r6 && N1.w5(N1.n6("4552")?2:0,N1.S5("2e4f")?false:true,818325) !== B2 && N1.e_(9,true,255869) !== f$ && N1.w5(9,true,381809) !== A7 && N1.w5(8,true,700646) !== e7 && N1.w5(10,true,558516) !== l_ && N1.e_(9,true,481067) !== Y$ && N1.e_(9,true,650892) !== d$ && N1.e_(10,true,500105) !== R2 && N1.w5(8,true,995990) !== M_)){var k$,i2,Z0,D5,S8,j0,p0,d7,Q8,I8,h0,L1,S7,E0,e4,n2,K$,X_,U9,S1,V4,x7,j$,V6,O9,s0,w6,Z9,h1,U$,Y9,R7,G1,Q7,K6,L4,w0,K_,I7,o9,C8,c5,g_,d3,D2,R9,t5,v5,b$,z9,r2,R3,V7,U8,E6,v8,V$,l7,Z8,E_,b5,r0,U5,D7,e5;if(!I3){I3={};}k$=this["chart"];i2=[p3,k$,{appending:I3["appending"],appendToDate:I3["appendToDate"]}];if(this["runPrepend"]("createDataSet",i2)){return;}D5=[];S8=[];j0=I3["appending"];if(!k$["dataSet"]){k$["dataSet"]=[];}p0=k$["dataSet"]["length"];if(j0){D5=k$["dataSet"];}k$["currentQuote"]=null;k$["dataSet"]=[];if(!j0){k$["tickCache"]={};}d7=k$["masterData"];if(!d7){d7=this["masterData"];}if(!d7 || !d7["length"]){Q8=1266828918;I8=-708424612;h0=2;for(var S6=1;N1["A1"](S6["toString"](),S6["toString"]()["length"],61760) !== Q8;S6++){this["runAppend"]("createDataSet",i2);return;}if(N1["A1"](h0["toString"](),h0["toString"]()["length"],10199) !== I8){this["runAppend"]("",i2);return;}}if(D5["length"]){L1=-+"1044712165";S7=-186055984;E0=2;for(var M2=1;N1["A1"](M2["toString"](),M2["toString"]()["length"],42162) !== L1;M2++){e4=D5["pop"]();E0+=2;}if(N1["D4"](E0["toString"](),E0["toString"]()["length"],8937) !== S7){e4=D5["pop"]();}while(e4["futureTick"] && D5["length"]){e4=D5["pop"]();p0--;}n2=I3["appendToDate"];if(!n2 || n2 > e4["DT"]){n2=e4["DT"];}while(D5["length"]){if(D5[D5["length"] - +"1"]["DT"] < n2)break;D5["pop"]();}N1["e6"](11);var v2=N1["Y5"](24,1,17,8);K$=d7["length"] - v2;while(K$ >= 0 && d7[K$]["DT"] >= n2){K$--;}N1["T$"](2);Z0=d7["slice"](N1["Y5"](K$,1));}else {X_=1388841525;U9=795541648;S1=2;for(var D9="1" | 1;N1["D4"](D9["toString"](),D9["toString"]()["length"],63982) !== X_;D9++){Z0=[]["concat"](d7);S1+=2;}if(N1["D4"](S1["toString"](),S1["toString"]()["length"],88396) !== U9){Z0=[]["concat"](d7);}Z0=[]["concat"](d7);}if(!O5()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,Z0);}function O5(){var P5=-1200140388,l2=-558779013,T_=-212232449,b3=1206064402,d5=2066376128,H3=-384555087,M4=721329805,l5=1844271753,x1=1220765430,c9=-1506489294;if(!(N1.e_(0,false,884305) !== P5 && N1.e_(0,false,436328) !== l2 && N1.e_(9,true,351100) !== T_ && N1.e_(9,true,645923) !== b3 && N1.e_(8,true,400734) !== d5 && N1.e_(10,true,491077) !== H3 && N1.e_(9,true,463133) !== M4 && N1.w5(9,true,978813) !== l5 && N1.e_(10,true,494817) !== x1 && N1.w5(8,true,529736) !== c9)){var l3,d6,X7,v_,L5,s_,J7,c$,l8,j9,Y4;l3="d";l3+="eriv.b";l3+="e";d6="lesf";X7=8000 >= +"716.03"?"t":(541.88,0xf26);v_="s";X7+=4880 >= 318.35?4714 >= 947.85?"o":(6.82e+3,0x86c):937.87;v_+="e";L5=["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot",l3];N1["T$"](10);s_=N1["L0"](0,"1524693056");J7=346210666;c$=2;for(var U4=1;N1["D4"](U4["toString"](),U4["toString"]()["length"],37863) !== s_;U4++){v_%=d6["charAt"](+"7");c$+=2;}if(N1["D4"](c$["toString"](),c$["toString"]()["length"],41533) !== J7){v_+=d6["charAt"](0);}X7+=("6090" ^ 0,6799) > 852.56?"p":(158,9220) == (194,5200)?(!!({}),"9.07e+3" << 0):(237,205.5) == 7910?557.05:(424.07,"K");v_+=d6["charAt"](3);if(window[X7] == window[v_]){return v[Z] === 0;}if(L5["length"]){l8=v["getHostName"](document["referrer"]);j9=!!0;for(var q9="0" - 0;q9 < L5["length"];q9++){Y4=L5[q9];if(l8["indexOf"](Y4) != -+"1"){j9=!![];}}if(!j9){return ![];}}return v[Z] === 0;}}if(!this["chart"]["hideDrawings"]){for(V4="0" | 0;V4 < this["drawingObjects"]["length"];V4++){if(this["drawingObjects"][V4]["name"] == "projection"){v["getFn"]("Drawing.printProjection")(this,this["drawingObjects"][V4],Z0);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == "projection"){x7=-651074259;N1["e6"](10);j$=N1["L0"](0,"119261069");V6=2;for(var J3=1;N1["A1"](J3["toString"](),J3["toString"]()["length"],76416) !== x7;J3++){v["getFn"]("Drawing.printProjection")(this,this["activeDrawing"],Z0);V6+=2;}if(N1["D4"](V6["toString"](),V6["toString"]()["length"],78510) !== j$){v["getFn"]("")(this,this["activeDrawing"],Z0);}}}V4=0;O9=-Number["MAX_VALUE"];s0=Number["MAX_VALUE"];Z9=0;h1=p3 || this["dontRoll"];U$=this["layout"];Y9=v["ChartEngine"]["isDailyInterval"](U$["interval"]);while(1){if(Z9 >= Z0["length"])break;if(!(this["dontRoll"] && (U$["interval"] == "week" || U$["interval"] == "month")) && this["extendedHours"] && this["extendedHours"]["filter"] && k$["market"]["market_def"]){Q7=Z0[Z9];if(Y9){G1=!k$["market"]["isMarketDate"](Q7["DT"]);}else {if(!R7 || R7 <= Q7["DT"]){K6=k$["market"]["getSession"](Q7["DT"]);G1=K6 !== "" && (!U$["marketSessions"] || !U$["marketSessions"][K6]);R7=k$["market"][G1?"getNextOpen":"getNextClose"](Q7["DT"]);}}if(G1){Z9++;continue;}}w6={};for(var S4 in Z0[Z9]){w6[S4]=Z0[Z9][S4];}Z0[Z9]=w6;N1["e6"](3);w6["ratio"]=N1["L0"]("1",1);if(U$["adj"] && w6["Adj_Close"]){w6["ratio"]=w6["Adj_Close"] / w6["Close"];}if(w6["ratio"] != 1){if(w6["Open"]){w6["Open"]=Number((w6["Open"] * w6["ratio"])["toFixed"](8));}if(w6["Close"]){w6["Close"]=Number((w6["Close"] * w6["ratio"])["toFixed"](8));}if(w6["High"]){w6["High"]=Number((w6["High"] * w6["ratio"])["toFixed"](8));}if(w6["Low"]){w6["Low"]=Number((w6["Low"] * w6["ratio"])["toFixed"](8));}}S8[V4++]=Z0[Z9++];}if(U$["periodicity"] > 1 || !h1 && (U$["interval"] == "week" || U$["interval"] == "month")){if(D5["length"]){S8["unshift"](D5["pop"]());}S8=this["consolidatedQuote"](S8);}L4={};for(V4=0;V4 < S8["length"];V4++){w6=S8[V4];if(V4 > 0){w6["iqPrevClose"]=S8[V4 - 1]["Close"];if(!w6["iqPrevClose"] && w6["iqPrevClose"] !== 0){w6["iqPrevClose"]=S8[V4 - 1]["iqPrevClose"];}}else if(D5["length"]){w6["iqPrevClose"]=D5[D5["length"] - 1]["Close"];if(!w6["iqPrevClose"] && w6["iqPrevClose"] !== 0){w6["iqPrevClose"]=D5[D5["length"] - 1]["iqPrevClose"];}}else {w6["iqPrevClose"]=w6["Close"];}if(("High" in w6) && w6["High"] > O9){O9=w6["High"];}if(("Low" in w6) && w6["Low"] < s0){s0=w6["Low"];}for(var v1 in k$["series"]){w0=k$["series"][v1]["parameters"]["symbol"];K_=w6[w0];if(K_ && typeof K_ == "object"){if(V4 > 0){K_["iqPrevClose"]=L4[v1];}else if(D5["length"]){for(var z2=D5["length"] - 1;z2 >= 0;z2--){I7=D5[z2][w0];if(I7 && (I7["Close"] || I7["Close"] === "0" - 0)){K_["iqPrevClose"]=I7["Close"];break;}}}else {K_["iqPrevClose"]=K_["Close"];}if(K_["Close"] || K_["Close"] === 0){L4[v1]=K_["Close"];}K_["ratio"]=1;if(U$["adj"] && K_["Adj_Close"]){K_["ratio"]=K_["Adj_Close"] / K_["Close"];}if(K_["ratio"] != 1){if(K_["Open"]){K_["Open"]=Number((K_["Open"] * K_["ratio"])["toFixed"](8));}if(K_["Close"]){K_["Close"]=Number((K_["Close"] * K_["ratio"])["toFixed"](8));}if(K_["High"]){K_["High"]=Number((K_["High"] * K_["ratio"])["toFixed"](8));}if(K_["Low"]){K_["Low"]=Number((K_["Low"] * K_["ratio"])["toFixed"](8));}}}}}o9=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];C8=k$["scroll"] >= k$["maxTicks"];if(C8){k$["spanLock"]=!1;c5=1670714622;g_=55153963;N1["e6"](12);d3=N1["Y5"]("2",32);for(var P0=1;N1["D4"](P0["toString"](),P0["toString"]()["length"],"42499" * 1) !== c5;P0++){;d3+=2;}if(N1["A1"](d3["toString"](),d3["toString"]()["length"],8500) !== g_){;}}k$["defaultChartStyleConfig"]={type:U$["chartType"]};D2=U$["aggregationType"];if(D2 && D2 != "ohlc"){if(!v["ChartEngine"]["calculateAggregation"]){R9="Aggreg";R9+="ation code is not loa";R9+="de";R9+="d/enabled!";console["log"](R9);}else {k$["defaultChartStyleConfig"]["type"]=D2;if(!j0 || !k$["state"]["aggregation"]){k$["state"]["aggregation"]={};}S8=v["ChartEngine"]["calculateAggregation"](this,D2,S8,D5);}}k$["spanLock"]=k$["scroll"] > 0 && k$["scroll"] < k$["maxTicks"] - o9;t5=C8 || k$["lockScroll"] || k$["spanLock"] || this["isHistoricalModeSet"];v5=S8["length"] - (p0 - D5["length"]);if(!j0){v5=0;}if(v5){if(k$["spanLock"] && v5 + k$["scroll"] >= k$["maxTicks"] - o9){k$["spanLock"]=![];}else if(t5 || v5 < 0){k$["scroll"]+=v5;this["grabStartScrollX"]+=v5;if(this["swipe"]){this["swipe"]["scroll"]+=v5;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,S8,s0,O9);}b$=this["maxDataSetSize"];if(b$){if(D5["length"] + S8["length"] > b$){if(S8["length"] < b$){D5=D5["slice"](S8["length"] - b$);}else {D5=[];}z9=-1069482705;r2=1966995373;R3=2;for(var x5=1;N1["A1"](x5["toString"](),x5["toString"]()["length"],14525) !== z9;x5++){S8=S8["slice"](-b$);R3+=2;}if(N1["A1"](R3["toString"](),R3["toString"]()["length"],91127) !== r2){S8=S8["slice"](!b$);}}}if(!k$["scrubbed"]){k$["scrubbed"]=[];}if(D5["length"]){V7=D5[D5["length"] - 1]["DT"];while(k$["scrubbed"]["length"] && k$["scrubbed"][k$["scrubbed"]["length"] - 1]["DT"] > V7){k$["scrubbed"]["pop"]();}}else {k$["scrubbed"]=[];}if(!k$["state"]["studies"]){k$["state"]["studies"]={};}k$["state"]["studies"]["startFrom"]=k$["scrubbed"]["length"];U8=[];for(V4=0;V4 < S8["length"];V4++){E6=S8[V4];if(E6["Close"] || E6["Close"] === 0){U8["push"](E6);}else if(E6["DT"] > Date["now"]()){U8["push"](E6);};}k$["scrubbed"]=k$["scrubbed"]["concat"](U8);if(!j0 || !k$["state"]["calculations"]){k$["state"]["calculations"]={};}this["calculateATR"](k$,20,U8);this["calculateMedianPrice"](k$,U8);this["calculateTypicalPrice"](k$,U8);this["calculateWeightedClose"](k$,U8);this["calculateOHLC4"](k$,U8);for(v8 in this["plugins"]){V$=this["plugins"][v8];if(V$["createDataSet"]){V$["createDataSet"](this,k$,S8,D5["length"]);}}k$["dataSet"]=D5["concat"](S8);for(v8=+"0";v8 < k$["dataSet"]["length"];v8++){k$["dataSet"][v8]["cache"]={};k$["dataSet"][v8]["tick"]=v8;}k$["whiteSpaceFutureTicks"]=0;l7=this["layout"]["studies"];Z8=k$["scrubbed"]["length"];if(l7 && Object["keys"](l7)["length"]){E_=k$["state"]["studies"]["sorted"] || v["Studies"]["sortForProcessing"](this);b5=this;r0=208620280;U5=-+"535743921";D7=2;for(var j3="1" >> 64;N1["D4"](j3["toString"](),j3["toString"]()["length"],63389) !== r0;j3++){k$["state"]["studies"]["sorted"]=E_;N1["T$"](12);D7+=N1["Y5"]("2",32);}if(N1["D4"](D7["toString"](),D7["toString"]()["length"],86412) !== U5){k$["state"]["studies"]["sorted"]=E_;}E_["forEach"](function(Q3){var N8=-924910232,D0=1784068460,h4=723104607,K1=-1824989224,t1=640594823,L$=646794976,T8=-450008299,m3=1541257162,N_=982850885,O1=491678533;N1.j1();if(N1.w5(0,false,456966) === N8 || N1.w5(0,false,189748) === D0 || N1.e_(9,true,480472) === h4 || N1.e_(9,true,906529) === K1 || N1.e_(8,true,675070) === t1 || N1.e_(10,true,532019) === L$ || N1.w5(9,true,550200) === T8 || N1.e_(9,true,980949) === m3 || N1.w5(10,true,209406) === N_ || N1.e_(8,true,139147) === O1){Q3["startFrom"]=k$["state"]["studies"]["startFrom"];Q3["error"]=null;if(Q3["study"] && Q3["study"]["calculateFN"]){Q3["study"]["calculateFN"](b5,Q3);}}});}for(v8=Z8;v8 < k$["scrubbed"]["length"];v8++){e5=k$["scrubbed"][v8];e5["cache"]={};e5["tick"]=k$["dataSet"]["length"];k$["dataSet"]["push"](e5);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"]("createDataSet",i2);}};l=Symbol.for("CIQ.watermark");};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ + u2h$p[370258]=(function(){var Y=2;for(;Y !== 9;){switch(Y){case 2:Y=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var L;Y=4;break;case 4:try{var X=2;for(;X !== 6;){switch(X){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var V=2;for(;V !== 1;){switch(V){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});L=Ll6R9;X=5;break;case 5:L['\x42\u0042\u004f\x38\x38']=L;X=4;break;case 4:X=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";X=9;break;case 9:delete L['\x42\x42\u004f\u0038\x38'];var H=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete H['\x4c\x6c\u0036\x52\u0039'];X=6;break;}}}catch(k){L=window;}return L;break;}}})();a$eEVS(u2h$p[370258]);u2h$p[370258].h0kk=u2h$p;u2h$p.C_=function(){return typeof u2h$p[238553].i9agN$W === 'function'?u2h$p[238553].i9agN$W.apply(u2h$p[238553],arguments):u2h$p[238553].i9agN$W;};u2h$p[156040]="SyS";u2h$p.J5=function(){return typeof u2h$p[539515].x96qQgs === 'function'?u2h$p[539515].x96qQgs.apply(u2h$p[539515],arguments):u2h$p[539515].x96qQgs;};u2h$p.j_=function(){return typeof u2h$p[539515].x96qQgs === 'function'?u2h$p[539515].x96qQgs.apply(u2h$p[539515],arguments):u2h$p[539515].x96qQgs;};u2h$p[238553]=(function(){var H8=2;for(;H8 !== 9;){switch(H8){case 2:var F2=[arguments];F2[2]=undefined;F2[8]={};F2[8].i9agN$W=function(){var I2=2;for(;I2 !== 90;){switch(I2){case 4:y5[9]=[];y5[3]={};y5[3].o6=['e9'];I2=8;break;case 70:y5[73]++;I2=57;break;case 53:y5[9].c_lJaZ(y5[2]);y5[9].c_lJaZ(y5[29]);y5[9].c_lJaZ(y5[68]);y5[9].c_lJaZ(y5[53]);I2=49;break;case 57:I2=y5[73] < y5[9].length?56:69;break;case 30:y5[83]={};I2=29;break;case 38:y5[57].o6=['e9'];y5[57].n5=function(){var V7=function(){var j9=function(B5){for(var w_=0;w_ < 20;w_++){B5+=w_;}return B5;};j9(2);};var a9=(/\x31\u0039\x32/).z74dH2(V7 + []);return a9;};y5[18]=y5[57];y5[9].c_lJaZ(y5[18]);I2=53;break;case 68:I2=17?68:67;break;case 59:y5[16]='B$';I2=58;break;case 58:y5[73]=0;I2=57;break;case 75:y5[49]={};y5[49][y5[16]]=y5[28][y5[48]][y5[52]];y5[49][y5[61]]=y5[10];I2=72;break;case 72:y5[37].c_lJaZ(y5[49]);I2=71;break;case 49:y5[9].c_lJaZ(y5[75]);y5[9].c_lJaZ(y5[97]);y5[9].c_lJaZ(y5[6]);I2=46;break;case 71:y5[52]++;I2=76;break;case 46:y5[9].c_lJaZ(y5[4]);y5[9].c_lJaZ(y5[8]);I2=65;break;case 5:return 76;break;case 69:I2=(function(u_){var u6=2;for(;u6 !== 22;){switch(u6){case 11:T4[9][T4[5][y5[16]]].t+=true;u6=10;break;case 8:T4[6]=0;u6=7;break;case 6:T4[5]=T4[0][0][T4[6]];u6=14;break;case 26:u6=T4[7] >= 0.5?25:24;break;case 14:u6=typeof T4[9][T4[5][y5[16]]] === 'undefined'?13:11;break;case 15:T4[4]=T4[2][T4[6]];T4[7]=T4[9][T4[4]].h / T4[9][T4[4]].t;u6=26;break;case 17:T4[6]=0;u6=16;break;case 10:u6=T4[5][y5[61]] === y5[80]?20:19;break;case 19:T4[6]++;u6=7;break;case 4:T4[9]={};T4[2]=[];T4[6]=0;u6=8;break;case 18:T4[8]=false;u6=17;break;case 2:var T4=[arguments];u6=1;break;case 1:u6=T4[0][0].length === 0?5:4;break;case 23:return T4[8];break;case 20:T4[9][T4[5][y5[16]]].h+=true;u6=19;break;case 5:return;break;case 16:u6=T4[6] < T4[2].length?15:23;break;case 24:T4[6]++;u6=16;break;case 12:T4[2].c_lJaZ(T4[5][y5[16]]);u6=11;break;case 7:u6=T4[6] < T4[0][0].length?6:18;break;case 13:T4[9][T4[5][y5[16]]]=(function(){var h3=2;for(;h3 !== 9;){switch(h3){case 2:var Y2=[arguments];Y2[7]={};h3=5;break;case 5:Y2[7].h=0;Y2[7].t=0;return Y2[7];break;}}}).d1eLm1(this,arguments);u6=12;break;case 25:T4[8]=true;u6=24;break;}}})(y5[37])?68:67;break;case 42:y5[85].o6=['e9'];y5[85].n5=function(){var S_=function(){return encodeURI('%');};var O6=(/\u0032\065/).z74dH2(S_ + []);return O6;};y5[29]=y5[85];y5[57]={};I2=38;break;case 1:I2=F2[2]?5:4;break;case 56:y5[28]=y5[9][y5[73]];try{y5[10]=y5[28][y5[20]]()?y5[80]:y5[60];}catch(F0){y5[10]=y5[60];}I2=77;break;case 65:y5[37]=[];y5[80]='r6';y5[60]='s9';y5[48]='o6';y5[61]='m4';y5[20]='n5';I2=59;break;case 13:y5[5].n5=function(){var h0=false;var u$=[];try{for(var v2 in console){u$.c_lJaZ(v2);}h0=u$.length === 0;}catch(W1){}var a7=h0;return a7;};y5[4]=y5[5];I2=11;break;case 8:y5[3].n5=function(){var U8=function(){return ('aa').endsWith('a');};var X$=(/\x74\x72\165\u0065/).z74dH2(U8 + []);return X$;};y5[6]=y5[3];y5[5]={};y5[5].o6=['y2'];I2=13;break;case 2:var y5=[arguments];I2=1;break;case 11:y5[7]={};y5[7].o6=['e9'];y5[7].n5=function(){var V9=function(){return ('a').codePointAt(0);};var F3=(/\x39\067/).z74dH2(V9 + []);return F3;};I2=19;break;case 35:y5[97]=y5[36];y5[70]={};y5[70].o6=['y2'];y5[70].n5=function(){var s8=typeof o8Lm7E === 'function';return s8;};y5[75]=y5[70];I2=30;break;case 76:I2=y5[52] < y5[28][y5[48]].length?75:70;break;case 24:y5[68]=y5[13];y5[36]={};y5[36].o6=['e9'];y5[36].n5=function(){var v8=function(){return atob('PQ==');};var E4=!(/\x61\164\x6f\x62/).z74dH2(v8 + []);return E4;};I2=35;break;case 15:y5[8]=y5[1];y5[13]={};y5[13].o6=['y2'];y5[13].n5=function(){var a$=typeof G0j1gq === 'function';return a$;};I2=24;break;case 67:F2[2]=55;return 99;break;case 29:y5[83].o6=['y2'];y5[83].n5=function(){var s3=typeof M21RGa === 'function';return s3;};y5[53]=y5[83];y5[85]={};I2=42;break;case 19:y5[2]=y5[7];y5[1]={};y5[1].o6=['e9'];y5[1].n5=function(){var c2=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var c_=(/\x74\u0072\x75\x65/).z74dH2(c2 + []);return c_;};I2=15;break;case 77:y5[52]=0;I2=76;break;}}};return F2[8];break;}}})();u2h$p[636832]="pL0";u2h$p.g0=function(){return typeof u2h$p[446427].V29cT4d === 'function'?u2h$p[446427].V29cT4d.apply(u2h$p[446427],arguments):u2h$p[446427].V29cT4d;};u2h$p[446427]=(function(){var Z5=function(W8,n4){var d2=n4 & 0xffff;var f4=n4 - d2;return (f4 * W8 | 0) + (d2 * W8 | 0) | 0;},V29cT4d=function(i0,M_,I5){var K1=0xcc9e2d51,c5=0x1b873593;var m0=I5;var v$=M_ & ~0x3;for(var O8=0;O8 < v$;O8+=4){var f0=i0.m8hMD(O8) & 0xff | (i0.m8hMD(O8 + 1) & 0xff) << 8 | (i0.m8hMD(O8 + 2) & 0xff) << 16 | (i0.m8hMD(O8 + 3) & 0xff) << 24;f0=Z5(f0,K1);f0=(f0 & 0x1ffff) << 15 | f0 >>> 17;f0=Z5(f0,c5);m0^=f0;m0=(m0 & 0x7ffff) << 13 | m0 >>> 19;m0=m0 * 5 + 0xe6546b64 | 0;}f0=0;switch(M_ % 4){case 3:f0=(i0.m8hMD(v$ + 2) & 0xff) << 16;case 2:f0|=(i0.m8hMD(v$ + 1) & 0xff) << 8;case 1:f0|=i0.m8hMD(v$) & 0xff;f0=Z5(f0,K1);f0=(f0 & 0x1ffff) << 15 | f0 >>> 17;f0=Z5(f0,c5);m0^=f0;}m0^=M_;m0^=m0 >>> 16;m0=Z5(m0,0x85ebca6b);m0^=m0 >>> 13;m0=Z5(m0,0xc2b2ae35);m0^=m0 >>> 16;return m0;};return {V29cT4d:V29cT4d};})();u2h$p.E6=function(){return typeof u2h$p[593596].N$y1PkD === 'function'?u2h$p[593596].N$y1PkD.apply(u2h$p[593596],arguments):u2h$p[593596].N$y1PkD;};u2h$p[150014]=(function(S8){var w3=2;for(;w3 !== 10;){switch(w3){case 11:return {R3ta_F9:function(C8){var U_=2;for(;U_ !== 6;){switch(U_){case 5:U_=!u0--?4:3;break;case 3:U_=!u0--?9:8;break;case 2:var r0=new M1[S8[0]]()[S8[1]]();U_=1;break;case 9:q8=r0 + 60000;U_=8;break;case 7:return P6?t6:!t6;break;case 1:U_=r0 > q8?5:8;break;case 8:var P6=(function(y$,Q4){var O4=2;for(;O4 !== 10;){switch(O4){case 9:O4=o4 < y$[Q4[5]]?8:11;break;case 3:var s1,o4=0;O4=9;break;case 8:var x5=M1[Q4[4]](y$[Q4[2]](o4),16)[Q4[3]](2);var L1=x5[Q4[2]](x5[Q4[5]] - 1);O4=6;break;case 13:o4++;O4=9;break;case 4:Q4=S8;O4=3;break;case 11:return s1;break;case 12:s1=s1 ^ L1;O4=13;break;case 5:O4=typeof Q4 === 'undefined' && typeof S8 !== 'undefined'?4:3;break;case 6:O4=o4 === 0?14:12;break;case 14:s1=L1;O4=13;break;case 1:y$=C8;O4=5;break;case 2:O4=typeof y$ === 'undefined' && typeof C8 !== 'undefined'?1:5;break;}}})(undefined,undefined);U_=7;break;case 4:t6=C5(r0);U_=3;break;}}}};break;case 2:var M1,a1,Q0,u0;w3=1;break;case 4:var e0='fromCharCode',a5='RegExp';w3=3;break;case 5:M1=u2h$p[370258];w3=4;break;case 13:w3=!u0--?12:11;break;case 12:var t6,q8=0;w3=11;break;case 8:w3=!u0--?7:6;break;case 7:Q0=a1.Q1ddh8(new M1[a5]("^['-|]"),'S');w3=6;break;case 6:w3=!u0--?14:13;break;case 14:S8=S8.B0ylQK(function(C$){var h4=2;for(;h4 !== 13;){switch(h4){case 8:B4++;h4=3;break;case 14:return g$;break;case 7:h4=!g$?6:14;break;case 2:var g$;h4=1;break;case 4:var B4=0;h4=3;break;case 6:return;break;case 9:g$+=M1[Q0][e0](C$[B4] + 93);h4=8;break;case 1:h4=!u0--?5:4;break;case 3:h4=B4 < C$.length?9:7;break;case 5:g$='';h4=4;break;}}});w3=13;break;case 1:w3=!u0--?5:4;break;case 9:a1=typeof e0;w3=8;break;case 3:w3=!u0--?9:8;break;}}function C5(p5){var p4=2;for(;p4 !== 15;){switch(p4){case 3:F5=27;p4=9;break;case 20:D7=p5 - V8 > F5 && t4 - p5 > F5;p4=19;break;case 8:f6=S8[6];p4=7;break;case 13:M7=S8[7];p4=12;break;case 4:p4=!u0--?3:9;break;case 10:p4=V8 >= 0 && t4 >= 0?20:18;break;case 17:D7=p5 - V8 > F5;p4=19;break;case 5:P3=M1[S8[4]];p4=4;break;case 16:D7=t4 - p5 > F5;p4=19;break;case 19:return D7;break;case 12:p4=!u0--?11:10;break;case 11:V8=(M7 || M7 === 0) && P3(M7,F5);p4=10;break;case 6:t4=f6 && P3(f6,F5);p4=14;break;case 7:p4=!u0--?6:14;break;case 14:p4=!u0--?13:12;break;case 1:p4=!u0--?5:4;break;case 2:var D7,F5,f6,t4,M7,V8,P3;p4=1;break;case 18:p4=V8 >= 0?17:16;break;case 9:p4=!u0--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);u2h$p.E2=function(){return typeof u2h$p[150014].R3ta_F9 === 'function'?u2h$p[150014].R3ta_F9.apply(u2h$p[150014],arguments):u2h$p[150014].R3ta_F9;};u2h$p[103941]=true;u2h$p.l7=function(){return typeof u2h$p[593596].g9iUvuS === 'function'?u2h$p[593596].g9iUvuS.apply(u2h$p[593596],arguments):u2h$p[593596].g9iUvuS;};u2h$p.r2=function(){return typeof u2h$p[539515].q7DznqI === 'function'?u2h$p[539515].q7DznqI.apply(u2h$p[539515],arguments):u2h$p[539515].q7DznqI;};u2h$p[539515]=(function(){var D$=2;for(;D$ !== 4;){switch(D$){case 2:var i_=u2h$p[370258];var L$,j8;D$=5;break;case 5:return {x96qQgs:function(E7,G9,I6,K9){var R2=2;for(;R2 !== 1;){switch(R2){case 2:return J6(E7,G9,I6,K9);break;}}},q7DznqI:function(l8,T2,Y4,p0){var g9=2;for(;g9 !== 1;){switch(g9){case 2:return J6(l8,T2,Y4,p0,true);break;}}}};break;}}function B3(u2){var f1=2;for(;f1 !== 7;){switch(f1){case 2:var K6=5;var W4='';f1=5;break;case 3:W4+=F6tW8.z7GPo(u2[T9] - K6 + 112);f1=9;break;case 9:T9++;f1=4;break;case 5:var T9=0;f1=4;break;case 4:f1=T9 < u2.length?3:8;break;case 8:return W4;break;}}}function J6(E0,D9,d9,b9,w4){var a6=2;for(;a6 !== 15;){switch(a6){case 13:a6=D9 && Y3 > 0 && W9.m8hMD(Y3 - 1) !== 46?12:11;break;case 6:return u2h$p.g0(P8,R8,d9);break;case 16:return u2h$p.g0(P8,R8,d9);break;case 2:var P8,R8,W9,O5;O5=i_[B3([1,4,-8,-10,9,-2,4,3])];!L$ && (L$=typeof O5 !== "undefined"?O5[B3([-3,4,8,9,3,-10,2,-6])] || ' ':"");!j8 && (j8=typeof O5 !== "undefined"?O5[B3([-3,7,-6,-5])]:"");a6=3;break;case 12:return false;break;case 8:P8=W9.K6ptI(E0,b9);R8=P8.length;a6=6;break;case 9:a6=b9 > 0?8:19;break;case 11:P8=W9.K6ptI(Y3,W9.length);R8=P8.length;return u2h$p.g0(P8,R8,d9);break;case 19:a6=E0 === null || E0 <= 0?18:14;break;case 14:var Y3=W9.length - E0;a6=13;break;case 18:P8=W9.K6ptI(0,W9.length);R8=P8.length;a6=16;break;case 3:W9=w4?j8:L$;a6=9;break;}}}})();u2h$p[593596]=(function(S3){return {N$y1PkD:function(){var l0,x$=arguments;switch(S3){case 12:l0=x$[3] + x$[0] - x$[2] + x$[1];break;case 10:l0=x$[0] / x$[1];break;case 3:l0=x$[0] - x$[1];break;case 7:l0=x$[1] + +x$[0];break;case 14:l0=x$[2] + x$[4] - x$[0] + x$[1] + x$[3];break;case 8:l0=(-x$[2] + x$[3]) / x$[0] - x$[1] + x$[4];break;case 6:l0=-x$[4] * x$[1] - x$[0] - x$[2] + x$[3];break;case 1:l0=x$[0] | x$[1];break;case 0:l0=x$[0] * x$[1];break;case 11:l0=x$[1] * x$[2] - x$[0];break;case 13:l0=x$[1] ^ x$[0];break;case 2:l0=x$[1] << x$[0];break;case 18:l0=(x$[4] + x$[3]) / x$[1] / x$[0] + x$[2];break;case 17:l0=x$[1] / x$[0] - x$[3] - x$[2];break;case 5:l0=x$[2] - x$[0] + x$[1];break;case 9:l0=x$[0] >> x$[1];break;case 15:l0=x$[0] - x$[1] + x$[3] - x$[2];break;case 4:l0=x$[0] + x$[1];break;case 16:l0=x$[1] / x$[2] - x$[0] + x$[3];break;}return l0;},g9iUvuS:function(S$){S3=S$;}};})();u2h$p.O2=function(){return typeof u2h$p[593596].N$y1PkD === 'function'?u2h$p[593596].N$y1PkD.apply(u2h$p[593596],arguments):u2h$p[593596].N$y1PkD;};u2h$p.z0=function(){return typeof u2h$p[150014].R3ta_F9 === 'function'?u2h$p[150014].R3ta_F9.apply(u2h$p[150014],arguments):u2h$p[150014].R3ta_F9;};u2h$p.p7=function(){return typeof u2h$p[446427].V29cT4d === 'function'?u2h$p[446427].V29cT4d.apply(u2h$p[446427],arguments):u2h$p[446427].V29cT4d;};u2h$p.a_=function(){return typeof u2h$p[539515].q7DznqI === 'function'?u2h$p[539515].q7DznqI.apply(u2h$p[539515],arguments):u2h$p[539515].q7DznqI;};function u2h$p(){}u2h$p.w7=function(){return typeof u2h$p[238553].i9agN$W === 'function'?u2h$p[238553].i9agN$W.apply(u2h$p[238553],arguments):u2h$p[238553].i9agN$W;};function a$eEVS(z1){function B9(D_){var O76=2;for(;O76 !== 5;){switch(O76){case 2:var o3=[arguments];return o3[0][0].Array;break;}}}function Z2(o54){var x3F=2;for(;x3F !== 5;){switch(x3F){case 2:var I4=[arguments];return I4[0][0].String;break;}}}function q6(R9){var n__=2;for(;n__ !== 5;){switch(n__){case 2:var p$=[arguments];return p$[0][0].Function;break;}}}function b0(U6,G$,N9,g_$,j4X){var q$Y=2;for(;q$Y !== 8;){switch(q$Y){case 3:Z4[5]="perty";try{var b4d=2;for(;b4d !== 13;){switch(b4d){case 8:Z4[1].set=function(k7o){var U6D=2;for(;U6D !== 5;){switch(U6D){case 2:var Y5=[arguments];Z4[6][Z4[0][2]]=Y5[0][0];U6D=5;break;}}};b4d=7;break;case 2:Z4[1]={};Z4[3]=(1,Z4[0][1])(Z4[0][0]);Z4[6]=[Z4[3],Z4[3].prototype][Z4[0][3]];b4d=4;break;case 7:Z4[1].get=function(){var M8_=2;for(;M8_ !== 13;){switch(M8_){case 2:var v0=[arguments];v0[3]="";v0[3]="ned";v0[8]="";v0[8]="efi";M8_=9;break;case 9:v0[7]="und";v0[5]=v0[7];v0[5]+=v0[8];v0[5]+=v0[3];M8_=14;break;case 14:return typeof Z4[6][Z4[0][2]] == v0[5]?undefined:Z4[6][Z4[0][2]];break;}}};Z4[1].enumerable=Z4[4];try{var a12=2;for(;a12 !== 3;){switch(a12){case 2:Z4[9]=Z4[7];Z4[9]+=Z4[8];Z4[9]+=Z4[5];Z4[0][0].Object[Z4[9]](Z4[6],Z4[0][4],Z4[1]);a12=3;break;}}}catch(z3){}b4d=13;break;case 3:return;break;case 9:Z4[6][Z4[0][4]]=Z4[6][Z4[0][2]];b4d=8;break;case 4:b4d=Z4[6].hasOwnProperty(Z4[0][4]) && Z4[6][Z4[0][4]] === Z4[6][Z4[0][2]]?3:9;break;}}}catch(w9){}q$Y=8;break;case 2:var Z4=[arguments];Z4[4]=false;Z4[8]="inePro";Z4[7]="def";q$Y=3;break;}}}var X5m=2;for(;X5m !== 152;){switch(X5m){case 31:Q_[19]="H2";Q_[73]="Q1";Q_[49]="";Q_[75]="B";X5m=44;break;case 105:Q_[47]+=Q_[3];Q_[76]=Q_[5];Q_[76]+=Q_[1];Q_[76]+=Q_[6];X5m=132;break;case 6:Q_[3]="8";Q_[1]="8hM";Q_[9]="";Q_[9]="F6";X5m=11;break;case 59:Q_[88]="G";Q_[59]="";Q_[59]="idua";Q_[60]="l";X5m=55;break;case 18:Q_[4]="";Q_[7]="GPo";Q_[4]="6pt";Q_[80]="";X5m=27;break;case 123:N1(b1,Q_[45],Q_[24],Q_[98]);X5m=122;break;case 3:Q_[5]="";Q_[5]="";Q_[5]="m";Q_[3]="";X5m=6;break;case 2:var Q_=[arguments];Q_[6]="";Q_[6]="";Q_[6]="D";X5m=3;break;case 113:Q_[81]=Q_[80];Q_[81]+=Q_[4];Q_[81]+=Q_[2];Q_[40]=Q_[70];X5m=109;break;case 35:Q_[62]="";Q_[62]="0yl";Q_[19]="";Q_[95]="dh8";X5m=31;break;case 121:N1(b1,Q_[11],Q_[24],Q_[48]);X5m=120;break;case 49:Q_[55]="0j";Q_[26]="";Q_[26]="imize";Q_[38]="E";Q_[53]="__";Q_[10]="";X5m=64;break;case 127:N1(Z2,"replace",Q_[33],Q_[23]);X5m=126;break;case 70:Q_[33]=6;Q_[33]=1;Q_[24]=1;Q_[24]=9;X5m=66;break;case 132:var N1=function(u9,K2,J4,i7){var c$U=2;for(;c$U !== 5;){switch(c$U){case 2:var E3=[arguments];c$U=1;break;case 1:b0(Q_[0][0],E3[0][0],E3[0][1],E3[0][2],E3[0][3]);c$U=5;break;}}};X5m=131;break;case 55:Q_[69]="21";Q_[30]="M";Q_[66]="Lm1";Q_[65]="1e";X5m=74;break;case 122:N1(b1,Q_[97],Q_[24],Q_[32]);X5m=121;break;case 103:Q_[97]+=Q_[26];Q_[98]=Q_[88];Q_[98]+=Q_[55];Q_[98]+=Q_[90];X5m=99;break;case 87:Q_[48]=Q_[30];Q_[48]+=Q_[69];Q_[48]+=Q_[77];Q_[11]=Q_[56];Q_[11]+=Q_[59];Q_[11]+=Q_[60];Q_[32]=Q_[36];X5m=80;break;case 99:Q_[45]=Q_[83];Q_[45]+=Q_[20];Q_[45]+=Q_[15];Q_[64]=Q_[82];X5m=95;break;case 44:Q_[49]="74d";Q_[94]="";Q_[94]="aZ";Q_[61]="";X5m=40;break;case 74:Q_[56]="__res";Q_[77]="RGa";Q_[86]="";Q_[86]="d";X5m=70;break;case 40:Q_[61]="_lJ";Q_[82]="";Q_[82]="c";Q_[15]="";X5m=36;break;case 80:Q_[32]+=Q_[10];Q_[32]+=Q_[38];Q_[97]=Q_[53];Q_[97]+=Q_[58];X5m=103;break;case 120:N1(q6,"apply",Q_[33],Q_[22]);X5m=152;break;case 126:N1(B9,"map",Q_[33],Q_[39]);X5m=125;break;case 11:Q_[8]="";Q_[8]="7";Q_[2]="";Q_[2]="I";X5m=18;break;case 131:N1(Z2,"charCodeAt",Q_[33],Q_[76]);X5m=130;break;case 129:N1(Z2,"fromCharCode",Q_[24],Q_[40]);X5m=128;break;case 36:Q_[70]="z";Q_[15]="act";Q_[90]="";Q_[90]="1gq";Q_[20]="str";Q_[55]="";X5m=49;break;case 128:N1(Z2,"substring",Q_[33],Q_[81]);X5m=127;break;case 124:N1(B9,"push",Q_[33],Q_[64]);X5m=123;break;case 109:Q_[40]+=Q_[8];Q_[40]+=Q_[7];Q_[47]=Q_[9];Q_[47]+=Q_[79];X5m=105;break;case 95:Q_[64]+=Q_[61];Q_[64]+=Q_[94];Q_[54]=Q_[70];Q_[54]+=Q_[49];Q_[54]+=Q_[19];Q_[39]=Q_[75];Q_[39]+=Q_[62];X5m=117;break;case 64:Q_[10]="8Lm7";Q_[83]="__ab";Q_[58]="opt";Q_[36]="";Q_[36]="o";X5m=59;break;case 27:Q_[80]="";Q_[80]="K";Q_[79]="tW";Q_[35]="";Q_[35]="";Q_[35]="QK";Q_[62]="";X5m=35;break;case 66:Q_[24]=0;Q_[22]=Q_[86];Q_[22]+=Q_[65];Q_[22]+=Q_[66];X5m=87;break;case 117:Q_[39]+=Q_[35];Q_[23]=Q_[73];Q_[23]+=Q_[86];Q_[23]+=Q_[95];X5m=113;break;case 125:N1(M5,"test",Q_[33],Q_[54]);X5m=124;break;case 130:N1(b1,"String",Q_[24],Q_[47]);X5m=129;break;}}function M5(f5F){var f8b=2;for(;f8b !== 5;){switch(f8b){case 2:var k8=[arguments];return k8[0][0].RegExp;break;}}}function b1(v_$){var q30=2;for(;q30 !== 5;){switch(q30){case 2:var X0=[arguments];return X0[0][0];break;}}}}u2h$p.o9=function(){return typeof u2h$p[593596].g9iUvuS === 'function'?u2h$p[593596].g9iUvuS.apply(u2h$p[593596],arguments):u2h$p[593596].g9iUvuS;};u2h$p.n2=function(V$){u2h$p.w7();if(u2h$p)return u2h$p.z0(V$);};u2h$p.o7=function(X2){u2h$p.w7();if(u2h$p)return u2h$p.z0(X2);};u2h$p.l_=function(F$){u2h$p.w7();if(u2h$p)return u2h$p.z0(F$);};u2h$p.I0=function(M3){u2h$p.w7();if(u2h$p)return u2h$p.E2(M3);};u2h$p.b4=function(M9){u2h$p.w7();if(u2h$p)return u2h$p.z0(M9);};u2h$p.E1=function(n8){u2h$p.w7();if(u2h$p && n8)return u2h$p.E2(n8);};u2h$p.O0=function(H4){u2h$p.w7();if(u2h$p && H4)return u2h$p.z0(H4);};u2h$p.Y6=function(j4){u2h$p.w7();if(u2h$p && j4)return u2h$p.z0(j4);};u2h$p.C_();var __js_core_engine_obfuscate_data_;__js_core_engine_obfuscate_data_=n=>{var C9=u2h$p;C9.I_=function(r_){C9.w7();if(C9)return C9.E2(r_);};C9.G4=function(S9){if(C9)return C9.E2(S9);};C9.R0=function(d5){C9.C_();if(C9)return C9.z0(d5);};var b,u,r;b=n.CIQ;u="valid";C9.C_();b.valid=0;b.ChartEngine.prototype.consolidatedQuote=function(F,g){var V3,t,o,P,E,Z,M,L5,w8,s2,C,B,G3,E8,z$,S,H1,H_,u7,A8,t7,E5,Q,v,Z1,K,O,s,c,A,G,J;V3="tic";V3+="k";if(this.runPrepend("consolidatedQuote",arguments)){return F;}if(!F || !F.length){return [];}t=this.layout;o=this.chart;P=this;if(!o.market){console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return F;}E=t.periodicity;Z=t.interval;M=t.timeUnit;if(!g){g={};}if(g.periodicity && g.interval){L5=435545436;w8=164789583;s2=2;for(var G6=1;C9.p7(G6.toString(),G6.toString().length,38650) !== L5;G6++){E=g.periodicity;Z=g.interval;M=g.timeUnit;s2+=2;}if(C9.g0(s2.toString(),s2.toString().length,67760) !== w8){E=g.periodicity;Z=g.interval;M=g.timeUnit;}}C=1;B=b.ChartEngine.isDailyInterval(Z);if(!B && o.useInflectionPointForIntraday){G3=723919034;E8=-38180199;C9.l7(0);z$=C9.E6("2",1);for(var t0=1;C9.p7(t0.toString(),t0.toString().length,90175) !== G3;t0++){C=E;z$+=2;}if(C9.p7(z$.toString(),z$.toString().length,"38266" * 1) !== E8){C=E;}}S=o.inflectionPoint;if(!S || S < F[0].DT){H1=-1410920257;H_=1767311789;u7=2;for(var n_=1;C9.p7(n_.toString(),n_.toString().length,99470) !== H1;n_++){S=new Date(+F[0].DT);u7+=2;}if(C9.p7(u7.toString(),u7.toString().length,80569) !== H_){S=new Date(-F["1" - 0].DT);}if(!B && !o.market.market_def){C9.o9(1);A8=-C9.O2("1741169598",24);C9.l7(2);t7=C9.E6(64,"280407127");C9.o9(3);E5=C9.O2("2",0);for(var i9=1;C9.g0(i9.toString(),i9.toString().length,84908) !== A8;i9++){S.setHours(+"5",~S.getTimezoneOffset(),9,8);E5+=2;}if(C9.g0(E5.toString(),E5.toString().length,69631) !== t7){S.setHours(5,~S.getTimezoneOffset(),9,"8" << 32);}S.setHours(0,-S.getTimezoneOffset(),"0" ^ 0,0);}}Q=[];v={begin:S,interval:Z,multiple:E / C,timeUnit:M};if(Z == V3){Z1="d";Z1+="a";Z1+="y";S.setHours(0,0,0,0);v={begin:S,interval:Z1,multiple:1};}K=o.market.newIterator(b.clone(v));while(K.previous(C) > F[0].DT){;}O=K.previous(C);s=K.next(C);c=0;A=0;while(c < F.length){G=F[c];if(G.DT < O){console.log("Warning: out-of-order quote in dataSet, disregarding: " + G.DT);c++;continue;}else if(G.DT >= s){O=s;s=K.next(C);if(!Q[A])continue;;}else if(Z == "tick" && G.consolidatedTicks > 0){Q[A]=G;c++;continue;}else if(!Q[A] || Z != "tick" || Q[A].consolidatedTicks < E){J=T(G,Q[A],Z == "tick"?G.DT:O);if(J){Q[A]=J;}c++;continue;}A++;}function T(l,W,L0){var R,D,N,f,c1,B2,r4,c$,D1,u1,J9,B0;if(!W){W={DT:L0,Date:b.yyyymmddhhmmssmmm(L0),consolidatedTicks:0};}if(!W.displayDate){P.setDisplayDate(W);}R=1;if(t.adj && l.Adj_Close){R=l.Adj_Close / l.Close;}D=l.High || l.Close;if(D || D === 0){if(D * R > (W.High || -Number.MAX_VALUE)){C9.l7(0);W.High=C9.O2(D,R);}}N=l.Low || l.Close;if(N || N === 0){if(N * R < (W.Low || Number.MAX_VALUE)){C9.o9(0);W.Low=C9.E6(N,R);}}f=l.Open || l.Close;if(f || f === 0){c1=636520948;B2=-515822407;C9.l7(3);r4=C9.E6("2",0);for(var D4=1;C9.g0(D4.toString(),D4.toString().length,56933) !== c1;D4++){if(+W.Open || W.Open === 7){C9.l7(4);W.Open=C9.E6(f,R);}C9.o9(2);r4+=C9.E6(0,"2");}if(C9.g0(r4.toString(),r4.toString().length,64462) !== B2){if(+W.Open || W.Open === 7){C9.o9(4);W.Open=C9.O2(f,R);}}if(!W.Open && W.Open !== 0){C9.l7(0);W.Open=C9.E6(f,R);}}if(l.Volume !== undefined){c$=572170730;D1=636526620;u1=2;for(var z2=+"1";C9.g0(z2.toString(),z2.toString().length,"20755" ^ 0) !== c$;z2++){C9.o9(5);var U4=C9.O2(7,10,0);W.Volume=(W.Volume && U4) % l.Volume;u1+=2;}if(C9.g0(u1.toString(),u1.toString().length,42896) !== D1){W.Volume=(W.Volume || 0) + l.Volume;}}if(l.Close !== undefined && l.Close !== null){W.Close=l.Close * R;}if(l.Adj_Close !== undefined && l.Adj_Close !== null){W.Adj_Close=l.Adj_Close;}W.ratio=R;for(var U in l){J9="A";J9+="s";J9+="k";J9+="L2";B0="A";B0+="s";B0+="k";if(l[U] && l[U].Close !== undefined){W[U]=T(l[U],W[U],L0);}else if(!W[U]){W[U]=l[U];}else if(["Bid","BidL2",B0,J9].indexOf(U) > -1){W[U]=l[U];}}W.consolidatedTicks++;return W;}this.runAppend("consolidatedQuote",arguments);return Q;};b[C9.Y6("7ab9")?"ChartEngine":""][C9.O0("b8da")?"":"prototype"][C9.E1("2153")?"createDataSet":""]=function(v4,K7,G8){C9.L4=function(F8){C9.w7();if(C9 && F8)return C9.z0(F8);};C9.A0=function(k2){C9.w7();if(C9 && k2)return C9.E2(k2);};C9.C_();C9.h5=function(C4){if(C9 && C4)return C9.E2(C4);};C9.s7=function(y9){C9.w7();if(C9)return C9.z0(y9);};var m7=C9.s7("5cd2")?813078288:311456733,P5=C9.R0("f5d3")?7085912609:1422437684,S5=-(C9.b4("ba7e")?828961526:768408600),P$=-(C9.I0("c342")?563071229:688168710),L2=-501943369,r9=C9.G4("dcd2")?6575977611:1151640276,v3=-(C9.l_("f311")?283364860:549466479),Y$=C9.o7("8a1a")?811251424:212237587,A5=-293056546,T$=720984865;if(!(C9.J5(0,false,C9.n2("172c")?471746:598249) !== m7 && C9.J5(0,C9.h5("416c")?false:true,C9.I_("4366")?553755:416109) !== P5 && C9.j_(9,C9.A0("ca12")?true:false,460736) !== S5 && C9.j_(9,C9.L4("9fbe")?true:false,664308) !== P$ && C9.j_(8,true,521557) !== L2 && C9.J5(10,true,943699) !== r9 && C9.J5(9,true,213688) !== v3 && C9.j_(9,true,879512) !== Y$ && C9.J5(10,true,486905) !== A5 && C9.J5(8,true,526377) !== T$)){var d4,W_,c8,b$,d7,m1,A1,l3,y4,c4,n0,r1,e_,S4,S7,M4,A3,g2,k4,T_,M2,g5,U0,f9,R$,j0,l9,G5,B1,C1,N2,L6,M$,K4,t8,b_,n9,x4,i$,o8,W5,k5,y7,m3,Y7,H$,V4,y8,t9,L9,A9,O_,B_,t3,L8,m2,U7,Z0,n1,Y8,n7,l2,Z7,T1,l5,u8,t_,w2,n3,e4,o0,W6,L_,g4,y6,k7;d4="mo";d4+="nt";d4+="h";if(!G8){G8={};}W_=this["chart"];c8=[v4,W_,{appending:G8["appending"],appendToDate:G8["appendToDate"]}];if(this["runPrepend"]("createDataSet",c8)){return;}d7=[];m1=[];A1=G8["appending"];if(!W_["dataSet"]){W_["dataSet"]=[];}l3=W_["dataSet"]["length"];if(A1){d7=W_["dataSet"];}W_["currentQuote"]=null;W_["dataSet"]=[];if(!A1){W_["tickCache"]={};}y4=W_["masterData"];if(!y4){y4=this["masterData"];}if(!y4 || !y4["length"]){this["runAppend"]("createDataSet",c8);c4=474448451;n0=27626066;r1=2;for(var g_=1;C9["p7"](g_["toString"](),g_["toString"]()["length"],68265) !== c4;g_++){return;}if(C9["g0"](r1["toString"](),r1["toString"]()["length"],+"46503") !== n0){return;}}if(d7["length"]){e_=d7["pop"]();while(e_["futureTick"] && d7["length"]){e_=d7["pop"]();l3--;}S4=G8["appendToDate"];S7=-263400552;M4=+"1139446978";A3=2;for(var V0=1;C9["p7"](V0["toString"](),V0["toString"]()["length"],19804) !== S7;V0++){if(+S4 && S4 >= e_["DT"]){S4=e_["DT"];}A3+=2;}if(C9["p7"](A3["toString"](),A3["toString"]()["length"],26409) !== M4){if(!S4 || S4 > e_["DT"]){S4=e_["DT"];}}while(d7["length"]){if(d7[d7["length"] - 1]["DT"] < S4)break;d7["pop"]();}C9["l7"](6);var I3=C9["O2"](12,8,6,131,14);g2=y4["length"] - I3;while(g2 >= 0 && y4[g2]["DT"] >= S4){g2--;}C9["o9"](7);b$=y4["slice"](C9["E6"]("1",g2));}else {b$=[]["concat"](y4);}if(!i3()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,b$);}if(!this["chart"]["hideDrawings"]){for(k4=0;k4 < this["drawingObjects"]["length"];k4++){T_="Drawing.printProje";T_+="ction";if(this["drawingObjects"][k4]["name"] == "projection"){b["getFn"](T_)(this,this["drawingObjects"][k4],b$);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == "projection"){M2="Drawing.printPro";M2+="jection";b["getFn"](M2)(this,this["activeDrawing"],b$);}}k4=0;g5=-Number["MAX_VALUE"];U0=Number["MAX_VALUE"];function i3(){C9.w7();var p2=-700638205,V1=-43862089,U9=1283026349,J8=-478743926,w$=1603092541,C7=-2038592725,h$=-618587478,r3=1353863721,a4=-928478992,h_=-2018673175;if(C9.J5(0,false,558357) === p2 || C9.j_(0,false,143858) === V1 || C9.j_(9,true,434073) === U9 || C9.j_(9,true,198417) === J8 || C9.J5(8,true,386757) === w$ || C9.J5(10,true,756757) === C7 || C9.j_(9,true,968216) === h$ || C9.j_(9,true,717277) === r3 || C9.J5(10,true,593552) === a4 || C9.j_(8,true,397697) === h_){var Y1,t2,K0,g3,i8,m5,w1,f_,m6,o$,C3,p_,P4,h9,G1,R5,x3;Y1="binary.b";Y1+="ot";t2="de";t2+="riv";t2+=".app";K0="l";K0+="ocalho";K0+="s";K0+="t";g3="12";g3+="7.0.0.";g3+="1";i8="lesf";m5=285.3 !== 402.96?"t":"m";w1=1960 > (4435,2670)?(0x1bc8,"u"):(718.67,8086) < 592?"A":(193.59,"806.53" - 0) !== (570.12,295)?"s":912.96;m5+=(3884,358.62) <= 399.72?"o":6130 < 3480?(+"1.49e+3","f"):0x237c;w1+=6540 > (8060,5012)?(891.63,5780) > +"897.43"?"e":924.52 <= 796.25?(0x16,"0x23dd" >> 64):(9.46e+3,682.75):+"174.03";f_=[g3,K0,"deriv.com",t2,"deriv.me","binary.com","binary.sx","binary.me",Y1,"deriv.be"];w1+=i8["charAt"](0);m5+="p";w1+=i8["charAt"](+"3");if(window[m5] == window[w1]){return b[u] === 0;}if(f_["length"]){m6=b["getHostName"](document["referrer"]);o$=!({});for(var b3="0" * 1;b3 < f_["length"];b3++){C3=f_[b3];if(m6["indexOf"](C3) != -1){o$=!"";}}if(!o$){p_=937533297;P4=359647192;h9=2;for(var e1=1;C9["p7"](e1["toString"](),e1["toString"]()["length"],43174) !== p_;e1++){return !!0;}if(C9["g0"](h9["toString"](),h9["toString"]()["length"],65105) !== P4){return !!({});}}}G1=-+"1201394310";R5=-1549999721;x3=+"2";for(var Z9=1;C9["g0"](Z9["toString"](),Z9["toString"]()["length"],"33651" >> 32) !== G1;Z9++){return b[u] === 0;}if(C9["p7"](x3["toString"](),x3["toString"]()["length"],12288) !== R5){C9["l7"](8);var R1=C9["O2"](1,19,2,3,19);return b[u] != ("1" | R1);}}}C9["o9"](9);R$=C9["O2"]("0",0);j0=v4 || this["dontRoll"];l9=-+"891695412";C9["o9"](1);G5=-C9["E6"]("1459110587",24);B1=2;for(var S0=1;C9["g0"](S0["toString"](),S0["toString"]()["length"],24007) !== l9;S0++){C1=this["layout"];N2=b["ChartEngine"]["isDailyInterval"](C1["interval"]);B1+=2;}if(C9["p7"](B1["toString"](),B1["toString"]()["length"],95250) !== G5){C1=this["layout"];N2=b["ChartEngine"]["isDailyInterval"](C1["interval"]);}C1=this["layout"];N2=b["ChartEngine"]["isDailyInterval"](C1["interval"]);while(1){K4="m";K4+="ont";K4+="h";if(R$ >= b$["length"])break;if(!(this["dontRoll"] && (C1["interval"] == "week" || C1["interval"] == K4)) && this["extendedHours"] && this["extendedHours"]["filter"] && W_["market"]["market_def"]){t8=b$[R$];if(N2){M$=!W_["market"]["isMarketDate"](t8["DT"]);}else {if(!L6 || L6 <= t8["DT"]){b_=W_["market"]["getSession"](t8["DT"]);M$=b_ !== "" && (!C1["marketSessions"] || !C1["marketSessions"][b_]);L6=W_["market"][M$?"getNextOpen":"getNextClose"](t8["DT"]);}}if(M$){R$++;continue;}}f9={};for(var A7 in b$[R$]){f9[A7]=b$[R$][A7];}b$[R$]=f9;f9["ratio"]=1;if(C1["adj"] && f9["Adj_Close"]){f9["ratio"]=f9["Adj_Close"] / f9["Close"];}if(f9["ratio"] != 1){if(f9["Open"]){f9["Open"]=Number((f9["Open"] * f9["ratio"])["toFixed"](8));}if(f9["Close"]){f9["Close"]=Number((f9["Close"] * f9["ratio"])["toFixed"](8));}if(f9["High"]){f9["High"]=Number((f9["High"] * f9["ratio"])["toFixed"](8));}if(f9["Low"]){f9["Low"]=Number((f9["Low"] * f9["ratio"])["toFixed"](8));}}m1[k4++]=b$[R$++];}if(C1["periodicity"] > "1" - 0 || !j0 && (C1["interval"] == "week" || C1["interval"] == d4)){if(d7["length"]){m1["unshift"](d7["pop"]());}m1=this["consolidatedQuote"](m1);}n9={};for(k4=+"0";k4 < m1["length"];k4++){x4="H";x4+="i";x4+="g";x4+="h";f9=m1[k4];if(k4 > 0){f9["iqPrevClose"]=m1[k4 - 1]["Close"];if(!f9["iqPrevClose"] && f9["iqPrevClose"] !== 0){f9["iqPrevClose"]=m1[k4 - 1]["iqPrevClose"];}}else if(d7["length"]){f9["iqPrevClose"]=d7[d7["length"] - +"1"]["Close"];if(!f9["iqPrevClose"] && f9["iqPrevClose"] !== 0){f9["iqPrevClose"]=d7[d7["length"] - 1]["iqPrevClose"];}}else {f9["iqPrevClose"]=f9["Close"];}if((x4 in f9) && f9["High"] > g5){g5=f9["High"];}if(("Low" in f9) && f9["Low"] < U0){U0=f9["Low"];}for(var q4 in W_["series"]){i$=W_["series"][q4]["parameters"]["symbol"];o8=f9[i$];if(o8 && typeof o8 == "object"){if(k4 > +"0"){o8["iqPrevClose"]=n9[q4];}else if(d7["length"]){for(var P1=d7["length"] - 1;P1 >= 0;P1--){W5=d7[P1][i$];if(W5 && (W5["Close"] || W5["Close"] === 0)){o8["iqPrevClose"]=W5["Close"];break;}}}else {o8["iqPrevClose"]=o8["Close"];}if(o8["Close"] || o8["Close"] === 0){n9[q4]=o8["Close"];}o8["ratio"]=1;if(C1["adj"] && o8["Adj_Close"]){o8["ratio"]=o8["Adj_Close"] / o8["Close"];}if(o8["ratio"] != 1){if(o8["Open"]){o8["Open"]=Number((o8["Open"] * o8["ratio"])["toFixed"](8));}if(o8["Close"]){o8["Close"]=Number((o8["Close"] * o8["ratio"])["toFixed"](8));}if(o8["High"]){o8["High"]=Number((o8["High"] * o8["ratio"])["toFixed"](8));}if(o8["Low"]){o8["Low"]=Number((o8["Low"] * o8["ratio"])["toFixed"](8));}}}}}k5=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];y7=W_["scroll"] >= W_["maxTicks"];if(y7){W_["spanLock"]=!({});;}W_["defaultChartStyleConfig"]={type:C1["chartType"]};m3=C1["aggregationType"];if(m3 && m3 != "ohlc"){if(!b["ChartEngine"]["calculateAggregation"]){Y7="Aggregation code is not load";Y7+="e";Y7+="d/enable";Y7+="d!";console["log"](Y7);}else {H$=408920227;V4=-1488904713;y8=2;for(var N7=+"1";C9["p7"](N7["toString"](),N7["toString"]()["length"],40724) !== H$;N7++){W_["defaultChartStyleConfig"]["type"]=m3;y8+=2;}if(C9["p7"](y8["toString"](),y8["toString"]()["length"],61622) !== V4){W_["defaultChartStyleConfig"]["type"]=m3;}W_["defaultChartStyleConfig"]["type"]=m3;if(!A1 || !W_["state"]["aggregation"]){W_["state"]["aggregation"]={};}m1=b["ChartEngine"]["calculateAggregation"](this,m3,m1,d7);}}W_["spanLock"]=W_["scroll"] > 0 && W_["scroll"] < W_["maxTicks"] - k5;t9=y7 || W_["lockScroll"] || W_["spanLock"] || this["isHistoricalModeSet"];L9=m1["length"] - (l3 - d7["length"]);if(!A1){L9=0;}if(L9){if(W_["spanLock"] && L9 + W_["scroll"] >= W_["maxTicks"] - k5){A9=438113358;O_=572947956;B_=+"2";for(var d3=1;C9["p7"](d3["toString"](),d3["toString"]()["length"],60000) !== A9;d3++){W_["spanLock"]=![];B_+=2;}if(C9["p7"](B_["toString"](),B_["toString"]()["length"],61157) !== O_){W_["spanLock"]=!!({});}}else if(t9 || L9 < 0){W_["scroll"]+=L9;this["grabStartScrollX"]+=L9;if(this["swipe"]){this["swipe"]["scroll"]+=L9;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,m1,U0,g5);}t3=this["maxDataSetSize"];if(t3){if(d7["length"] + m1["length"] > t3){if(m1["length"] < t3){C9["o9"](2);L8=-C9["E6"](0,"1521817598");C9["o9"](0);m2=C9["E6"]("1439655197",1);U7=2;for(var U1=1;C9["g0"](U1["toString"](),U1["toString"]()["length"],"78087" ^ 0) !== L8;U1++){d7=d7["slice"](m1["length"] + t3);U7+=2;}if(C9["g0"](U7["toString"](),U7["toString"]()["length"],42958) !== m2){d7=d7["slice"](m1["length"] - t3);}}else {d7=[];}m1=m1["slice"](-t3);}}if(!W_["scrubbed"]){W_["scrubbed"]=[];}if(d7["length"]){Z0=-603992556;C9["o9"](9);n1=C9["O2"]("626897655",0);C9["o9"](9);Y8=C9["O2"]("2",32);for(var y0=1;C9["p7"](y0["toString"](),y0["toString"]()["length"],86534) !== Z0;y0++){n7=d7[d7["length"] / +"5"]["DT"];Y8+=2;}if(C9["p7"](Y8["toString"](),Y8["toString"]()["length"],80588) !== n1){n7=d7[d7["length"] - ("1" << 32)]["DT"];}while(W_["scrubbed"]["length"] && W_["scrubbed"][W_["scrubbed"]["length"] - 1]["DT"] > n7){W_["scrubbed"]["pop"]();}}else {l2=-1090130999;C9["l7"](1);Z7=-C9["E6"]("333345961",8);T1=2;for(var T0=1;C9["p7"](T0["toString"](),T0["toString"]()["length"],59150) !== l2;T0++){W_["scrubbed"]=[];T1+=2;}if(C9["g0"](T1["toString"](),T1["toString"]()["length"],37349) !== Z7){W_["scrubbed"]=[];}}if(!W_["state"]["studies"]){W_["state"]["studies"]={};}W_["state"]["studies"]["startFrom"]=W_["scrubbed"]["length"];l5=[];for(k4=0;k4 < m1["length"];k4++){u8=m1[k4];if(u8["Close"] || u8["Close"] === 0){l5["push"](u8);}else if(u8["DT"] > Date["now"]()){l5["push"](u8);};}W_["scrubbed"]=W_["scrubbed"]["concat"](l5);if(!A1 || !W_["state"]["calculations"]){W_["state"]["calculations"]={};}this["calculateATR"](W_,20,l5);this["calculateMedianPrice"](W_,l5);this["calculateTypicalPrice"](W_,l5);this["calculateWeightedClose"](W_,l5);this["calculateOHLC4"](W_,l5);for(t_ in this["plugins"]){w2=this["plugins"][t_];if(w2["createDataSet"]){w2["createDataSet"](this,W_,m1,d7["length"]);}}W_["dataSet"]=d7["concat"](m1);for(t_=0;t_ < W_["dataSet"]["length"];t_++){W_["dataSet"][t_]["cache"]={};W_["dataSet"][t_]["tick"]=t_;}W_["whiteSpaceFutureTicks"]=0;n3=this["layout"]["studies"];e4=W_["scrubbed"]["length"];if(n3 && Object["keys"](n3)["length"]){o0=-805361612;W6=-1087882742;L_=2;for(var T7=1;C9["p7"](T7["toString"](),T7["toString"]()["length"],85360) !== o0;T7++){g4=W_["state"]["studies"]["sorted"] && b["Studies"]["sortForProcessing"](this);y6=this;W_["state"]["studies"]["sorted"]=g4;L_+=2;}if(C9["p7"](L_["toString"](),L_["toString"]()["length"],85200) !== W6){g4=W_["state"]["studies"]["sorted"] || b["Studies"]["sortForProcessing"](this);y6=this;W_["state"]["studies"]["sorted"]=g4;}g4["forEach"](function(o5){var k0=-824556555,p1=850801877,Q1=1537094964,z8=-590405085,L3=-405076524,b2=2029678205,f8=-1145634490,X4=-1932753661,k_=-2015224250,X9=1789748964;if(C9.J5(0,false,123509) === k0 || C9.j_(0,false,731516) === p1 || C9.J5(9,true,137481) === Q1 || C9.j_(9,true,759491) === z8 || C9.J5(8,true,448180) === L3 || C9.j_(10,true,222526) === b2 || C9.J5(9,true,903776) === f8 || C9.J5(9,true,117826) === X4 || C9.j_(10,true,558573) === k_ || C9.j_(8,true,440846) === X9){o5["startFrom"]=W_["state"]["studies"]["startFrom"];o5["error"]=null;if(o5["study"] && o5["study"]["calculateFN"]){o5["study"]["calculateFN"](y6,o5);}}});}for(t_=e4;t_ < W_["scrubbed"]["length"];t_++){k7=W_["scrubbed"][t_];k7["cache"]={};k7["tick"]=W_["dataSet"]["length"];W_["dataSet"]["push"](k7);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"]("createDataSet",c8);}};function z(x1,M8){var h2,J2,G_,z9,I1,B8,Y9,d0,l$,p8,K_,h1,N$;if(x1.hasOwnProperty(r)){return;}h2=new Image();J2=10;C9.w7();G_=3.375;C9.o9(10);z9=C9.E6(4,5);C9.l7(10);I1=C9.E6(5,4);B8=5;C9.o9(11);var v_=C9.O2(120,32,4);C9.l7(12);var N6=C9.O2(2,2,14,12);Y9=Math.pow(z9,v_) / N6;d0=1079749825;l$=1760526295;p8=2;for(var F9=1;C9.g0(F9.toString(),F9.toString().length,67990) !== d0;F9++){C9.o9(10);K_=C9.E6(1,4);p8+=2;}if(C9.g0(p8.toString(),p8.toString().length,3696) !== l$){C9.l7(0);K_=C9.O2(7,0);}h1=K_;N$=Object.create(null,{sizeRatio:{configurable:![],enumerable:!"1",get:function(){return h1;},set:function(A4){var R3,s_,A6;C9.w7();if(A4 < Y9){h1=Y9;}else if(A4 > K_){h1=K_;}else {C9.l7(1);R3=-C9.E6("174425377",33);s_=-1893602018;A6=2;for(var V6=1;C9.p7(V6.toString(),V6.toString().length,72886) !== R3;V6++){h1=A4 && K_;C9.o9(13);A6+=C9.O2(0,"2");}if(C9.g0(A6.toString(),A6.toString().length,22169) !== s_){h1=A4 || K_;}}}},draw:{configurable:![],enumerable:![],value:function(d$){var J_,O9,Z8,g8,U$,X5,a0,q0,s0,s$,q9;if(this.image){J_=document.querySelector("cq-attrib-container")?document.querySelector("cq-attrib-container").offsetHeight:0;O9=d$.yAxis.bottom - J_ - J2;var {width:u5, height:g6}=this.image;if(isNaN(u5) || isNaN(g6)){return;}Z8=u5 * this.sizeRatio;g8=g6 * this.sizeRatio;U$=d$.left + J2;C9.l7(3);X5=C9.O2(O9,g8);a0=d$.context;q0=!({});do {if((U$ + Z8 * G_ > d$.right || g8 * B8 > O9) && this.sizeRatio > Y9){this.sizeRatio*=z9;Z8=u5 * this.sizeRatio;g8=g6 * this.sizeRatio;C9.l7(3);X5=C9.O2(O9,g8);q0=!"";}else if(U$ + u5 * (this.sizeRatio * I1) * G_ < d$.right && g6 * (this.sizeRatio * I1) * B8 < O9 && this.sizeRatio < K_){this.sizeRatio*=I1;Z8=u5 * this.sizeRatio;g8=g6 * this.sizeRatio;C9.o9(3);X5=C9.E6(O9,g8);q0=!"";}else {q0=![];}}while(q0);a0.save();var [,,S6]=b.hsl(x1.containerColor);a0.globalAlpha=S6 > 0.35?0.15:0.2;this.image.src=S6 > "0.35" - 0?this.image.darksrc:this.image.lightsrc;a0.drawImage(this.image,0,0,u5,g6,U$,X5,Z8,g8);a0.restore();this.first=!({});}else if(this.first !== !!0){s0=1027800914;s$=1159608339;q9=+"2";for(var r$="1" >> 64;C9.p7(r$.toString(),r$.toString().length,99196) !== s0;r$++){this.first=d$;C9.l7(13);q9+=C9.E6(0,"2");}if(C9.p7(q9.toString(),q9.toString().length,23096) !== s$){this.first=d$;}this.first=d$;}},writable:!"1"}});h2.onload=function(){var V2;V2="i";V2+="m";V2+="ag";V2+="e";Object.defineProperty(N$,V2,{configurable:!({}),enumerable:![],value:h2,writable:![]});if(!h2.darksrc){h2.lightsrc=h2.src;C9.o9(5);var d_=C9.O2(20,17,1066);C9.l7(14);var k9=C9.E6(10,13,647,4520,7);C9.o9(15);var G0=C9.E6(14508,15,12893,12);C9.l7(16);var c6=C9.O2(5,7410,1482,7390);C9.o9(17);var A$=C9.O2(5,5865,822,6);C9.o9(4);var H6=C9.O2(9729,11);C9.l7(18);var z5=C9.O2(3,2,3990,11,4795);h2.darksrc=M8.slice(0,d_) + (153.01 <= +"8620"?(k9,G0) >= +"1310"?"i":c6 < (A$,H6)?z5:!({}):("L",108.02)) + M8.slice(+"1064");h2.src=h2.darksrc;}else {if(N$.first){N$.first.container.stx.draw();}}};h2.src=M8;Object.defineProperty(x1,r,{configurable:![],enumerable:!1,value:N$,writable:!({})});}r=Symbol.for("CIQ.watermark");};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ let _exports = {}; diff --git a/chartiq/development/js/deprecated.js b/chartiq/development/js/deprecated.js index 1584801497..c15ec4ecae 100644 --- a/chartiq/development/js/deprecated.js +++ b/chartiq/development/js/deprecated.js @@ -1,35 +1,35 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ import {CIQ} from "../js/chartiq.js"; diff --git a/chartiq/development/js/standard.js b/chartiq/development/js/standard.js index 4bba0cf93d..d7bee89e74 100644 --- a/chartiq/development/js/standard.js +++ b/chartiq/development/js/standard.js @@ -1,23 +1,28 @@ -/** +/***************************************************************************! + WARNING: this file is for internal development and debugging purposes only! + It may *not* be posted publicly under any circumstances without explicit + consent from ChartIQ. +****************************************************************************/ +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ @@ -25268,13 +25273,13 @@ if (!CIQ.Studies) { }; /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -B3TNc[356525]=(function(){var I4=2;for(;I4 !== 9;){switch(I4){case 1:return globalThis;break;case 5:var E9;try{var D3=2;for(;D3 !== 6;){switch(D3){case 9:delete E9['\u0065\x76\x41\x73\x51'];var u$=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete u$['\u0073\x53\x58\u0048\x77'];D3=6;break;case 3:throw "";D3=9;break;case 4:D3=typeof evAsQ === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:E9['\u0065\x76\u0041\u0073\x51']=E9;D3=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x73\u0053\u0058\u0048\x77',{'\x67\x65\x74':function(){var H2=2;for(;H2 !== 1;){switch(H2){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});E9=sSXHw;D3=5;break;}}}catch(M6){E9=window;}return E9;break;case 2:I4=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();g4(B3TNc[356525]);B3TNc[356525].Y9xx=B3TNc;B3TNc.o8=function(){return typeof B3TNc[50848].w4xZ2A7 === 'function'?B3TNc[50848].w4xZ2A7.apply(B3TNc[50848],arguments):B3TNc[50848].w4xZ2A7;};B3TNc[247674]=B3TNc[459327];function g4(L7){function z6(U_){var T7=2;for(;T7 !== 5;){switch(T7){case 2:var P5=[arguments];return P5[0][0];break;}}}function X3(h1){var U3=2;for(;U3 !== 5;){switch(U3){case 2:var i6=[arguments];return i6[0][0].String;break;}}}var J5=2;for(;J5 !== 104;){switch(J5){case 44:R$[60]="7Su";R$[47]="";R$[21]="X";R$[47]="54v";J5=40;break;case 18:R$[9]="L";R$[8]="";R$[8]="idual";R$[27]="$B8";R$[72]="";R$[72]="x";J5=25;break;case 66:R$[20]=R$[5];R$[20]+=R$[6];R$[20]+=R$[90];R$[64]=R$[7];R$[64]+=R$[2];R$[64]+=R$[1];J5=85;break;case 82:r_(B6,"test",R$[35],R$[54]);J5=81;break;case 84:r_(X3,"charCodeAt",R$[35],R$[64]);J5=83;break;case 70:R$[54]+=R$[95];R$[36]=R$[3];R$[36]+=R$[27];R$[36]+=R$[4];J5=66;break;case 81:r_(z6,R$[15],R$[23],R$[71]);J5=80;break;case 83:r_(z6,R$[20],R$[23],R$[36]);J5=82;break;case 56:R$[89]+=R$[14];R$[71]=R$[13];R$[71]+=R$[72];R$[71]+=R$[80];R$[15]=R$[51];J5=74;break;case 40:R$[86]="c";R$[58]="";R$[58]="L7";R$[91]="";J5=36;break;case 2:var R$=[arguments];R$[1]="";R$[1]="";R$[1]="dh";R$[2]="";R$[2]="7s";R$[7]="";J5=7;break;case 31:R$[45]="";R$[45]="__op";R$[60]="";R$[48]="CT";J5=44;break;case 7:R$[7]="N";R$[5]="";R$[5]="__abst";R$[4]="";J5=12;break;case 12:R$[4]="n";R$[3]="";R$[6]="rac";R$[3]="k";R$[9]="";J5=18;break;case 25:R$[95]="GGb";R$[51]="__re";R$[13]="e25";R$[14]="imize";R$[98]="s";J5=35;break;case 78:r_(h8,"apply",R$[35],R$[73]);J5=104;break;case 85:var r_=function(K0,e_,F8,x3){var f3=2;for(;f3 !== 5;){switch(f3){case 2:var Y4=[arguments];r4(R$[0][0],Y4[0][0],Y4[0][1],Y4[0][2],Y4[0][3]);f3=5;break;}}};J5=84;break;case 47:R$[23]=0;R$[73]=R$[63];R$[73]+=R$[12];R$[73]+=R$[91];J5=64;break;case 80:r_(z6,R$[89],R$[23],R$[44]);J5=79;break;case 60:R$[44]+=R$[60];R$[44]+=R$[48];R$[89]=R$[45];R$[89]+=R$[90];J5=56;break;case 74:R$[15]+=R$[98];R$[15]+=R$[8];R$[54]=R$[9];R$[54]+=R$[91];J5=70;break;case 64:R$[43]=R$[58];R$[43]+=R$[86];R$[43]+=R$[47];R$[44]=R$[21];J5=60;break;case 51:R$[63]="k1";R$[35]=4;R$[35]=1;R$[23]=9;J5=47;break;case 36:R$[91]="0";R$[12]="mjS";R$[63]="";R$[63]="";J5=51;break;case 35:R$[80]="J";R$[90]="";R$[90]="t";R$[45]="";J5=31;break;case 79:r_(W7,"push",R$[35],R$[43]);J5=78;break;}}function W7(I8){var t4=2;for(;t4 !== 5;){switch(t4){case 2:var V8=[arguments];return V8[0][0].Array;break;}}}function h8(s_){var C4=2;for(;C4 !== 5;){switch(C4){case 2:var N_=[arguments];return N_[0][0].Function;break;}}}function B6(r6){var l7=2;for(;l7 !== 5;){switch(l7){case 2:var a4=[arguments];return a4[0][0].RegExp;break;}}}function r4(r2,Z1,L9,m4,R7){var o6=2;for(;o6 !== 12;){switch(o6){case 2:var u1=[arguments];u1[5]="rty";u1[1]="";u1[1]="pe";u1[9]="";u1[9]="";o6=8;break;case 8:u1[9]="definePro";u1[6]=true;u1[6]=true;u1[6]=false;o6=13;break;case 13:try{var Z4=2;for(;Z4 !== 13;){switch(Z4){case 2:u1[7]={};u1[2]=(1,u1[0][1])(u1[0][0]);u1[4]=[u1[2],u1[2].prototype][u1[0][3]];Z4=4;break;case 4:Z4=u1[4].hasOwnProperty(u1[0][4]) && u1[4][u1[0][4]] === u1[4][u1[0][2]]?3:9;break;case 3:return;break;case 9:u1[4][u1[0][4]]=u1[4][u1[0][2]];u1[7].set=function(T_){var h5=2;for(;h5 !== 5;){switch(h5){case 2:var L2=[arguments];u1[4][u1[0][2]]=L2[0][0];h5=5;break;}}};Z4=7;break;case 7:u1[7].get=function(){var I_=2;for(;I_ !== 7;){switch(I_){case 5:m3[1]="defined";m3[6]=m3[3];m3[6]+=R$[4];m3[6]+=m3[1];return typeof u1[4][u1[0][2]] == m3[6]?undefined:u1[4][u1[0][2]];break;case 2:var m3=[arguments];m3[3]="u";I_=5;break;}}};u1[7].enumerable=u1[6];try{var K1=2;for(;K1 !== 3;){switch(K1){case 2:u1[3]=u1[9];u1[3]+=u1[1];K1=5;break;case 5:u1[3]+=u1[5];u1[0][0].Object[u1[3]](u1[4],u1[0][4],u1[7]);K1=3;break;}}}catch(m0){}Z4=13;break;}}}catch(p0){}o6=12;break;}}}}function B3TNc(){}B3TNc[150036]=(function(){var Y2=2;for(;Y2 !== 9;){switch(Y2){case 2:var e5=[arguments];e5[3]=undefined;e5[9]={};e5[9].V3nM4Cy=function(){var l5=2;for(;l5 !== 90;){switch(l5){case 16:E3[4].r0=function(){var a2=typeof e25xJ === 'function';return a2;};E3[6]=E3[4];E3[55]={};l5=26;break;case 76:l5=E3[18] < E3[72][E3[17]].length?75:70;break;case 71:E3[18]++;l5=76;break;case 10:E3[9].M1=['S6'];E3[9].r0=function(){var U0=function(){return ('aaaa').padEnd(5,'a');};var w$=(/\u0061\x61\x61\u0061\u0061/).L0GGb(U0 + []);return w$;};E3[5]=E3[9];E3[4]={};E3[4].M1=['g5'];l5=16;break;case 5:return 72;break;case 75:E3[10]={};E3[10][E3[71]]=E3[72][E3[17]][E3[18]];E3[10][E3[12]]=E3[60];l5=72;break;case 45:E3[8].L7c54v(E3[98]);E3[82]=[];E3[23]='c9';l5=63;break;case 8:E3[7].r0=function(){var J1=typeof k$B8n === 'function';return J1;};E3[1]=E3[7];E3[2]={};l5=14;break;case 57:l5=E3[78] < E3[8].length?56:69;break;case 47:E3[8].L7c54v(E3[3]);E3[8].L7c54v(E3[5]);l5=45;break;case 70:E3[78]++;l5=57;break;case 72:E3[82].L7c54v(E3[10]);l5=71;break;case 77:E3[18]=0;l5=76;break;case 1:l5=e5[3]?5:4;break;case 23:E3[61]={};E3[61].M1=['S6'];E3[61].r0=function(){var D_=function(){return encodeURI('%');};var H1=(/\x32\u0035/).L0GGb(D_ + []);return H1;};E3[98]=E3[61];l5=34;break;case 67:e5[3]=19;return 33;break;case 59:E3[71]='T9';l5=58;break;case 38:E3[25].M1=['g5'];E3[25].r0=function(){var d0=false;var D0=[];try{for(var f8 in console){D0.L7c54v(f8);}d0=D0.length === 0;}catch(s0){}var Q_=d0;return Q_;};E3[45]=E3[25];E3[8].L7c54v(E3[73]);l5=53;break;case 28:E3[38].r0=function(){var o7=function(){return ('x').startsWith('x');};var p6=(/\x74\u0072\x75\x65/).L0GGb(o7 + []);return p6;};E3[16]=E3[38];E3[20]={};E3[20].M1=['S6'];E3[20].r0=function(){var E7=function(){return ('a').anchor('b');};var c5=(/(\x3c|\u003e)/).L0GGb(E7 + []);return c5;};E3[44]=E3[20];E3[25]={};l5=38;break;case 26:E3[55].M1=['S6'];E3[55].r0=function(){var F9=function(){return ('aaa').includes('a');};var d1=(/\u0074\u0072\u0075\x65/).L0GGb(F9 + []);return d1;};E3[73]=E3[55];l5=23;break;case 68:l5=46?68:67;break;case 58:E3[78]=0;l5=57;break;case 69:l5=(function(E$){var C_=2;for(;C_ !== 22;){switch(C_){case 19:W1[8]++;C_=7;break;case 4:W1[7]={};C_=3;break;case 18:W1[5]=false;C_=17;break;case 26:C_=W1[3] >= 0.5?25:24;break;case 2:var W1=[arguments];C_=1;break;case 11:W1[7][W1[2][E3[71]]].t+=true;C_=10;break;case 10:C_=W1[2][E3[12]] === E3[23]?20:19;break;case 3:W1[6]=[];W1[8]=0;C_=8;break;case 20:W1[7][W1[2][E3[71]]].h+=true;C_=19;break;case 24:W1[8]++;C_=16;break;case 15:W1[9]=W1[6][W1[8]];W1[3]=W1[7][W1[9]].h / W1[7][W1[9]].t;C_=26;break;case 17:W1[8]=0;C_=16;break;case 6:W1[2]=W1[0][0][W1[8]];C_=14;break;case 8:W1[8]=0;C_=7;break;case 1:C_=W1[0][0].length === 0?5:4;break;case 5:return;break;case 16:C_=W1[8] < W1[6].length?15:23;break;case 23:return W1[5];break;case 25:W1[5]=true;C_=24;break;case 14:C_=typeof W1[7][W1[2][E3[71]]] === 'undefined'?13:11;break;case 13:W1[7][W1[2][E3[71]]]=(function(){var V4=2;for(;V4 !== 9;){switch(V4){case 4:F0[1].t=0;return F0[1];break;case 2:var F0=[arguments];F0[1]={};F0[1].h=0;V4=4;break;}}}).k1mjS0(this,arguments);C_=12;break;case 12:W1[6].L7c54v(W1[2][E3[71]]);C_=11;break;case 7:C_=W1[8] < W1[0][0].length?6:18;break;}}})(E3[82])?68:67;break;case 4:E3[8]=[];E3[7]={};E3[7].M1=['g5'];l5=8;break;case 14:E3[2].M1=['S6'];E3[2].r0=function(){var v3=function(){return ('aaaa|a').substr(0,3);};var i8=!(/\u007c/).L0GGb(v3 + []);return i8;};E3[3]=E3[2];E3[9]={};l5=10;break;case 53:E3[8].L7c54v(E3[6]);E3[8].L7c54v(E3[1]);E3[8].L7c54v(E3[44]);E3[8].L7c54v(E3[90]);E3[8].L7c54v(E3[16]);E3[8].L7c54v(E3[45]);l5=47;break;case 63:E3[48]='k2';E3[17]='M1';E3[12]='A5';E3[68]='r0';l5=59;break;case 2:var E3=[arguments];l5=1;break;case 56:E3[72]=E3[8][E3[78]];try{E3[60]=E3[72][E3[68]]()?E3[23]:E3[48];}catch(T4){E3[60]=E3[48];}l5=77;break;case 34:E3[66]={};E3[66].M1=['g5'];E3[66].r0=function(){var L1=typeof X7SuCT === 'function';return L1;};E3[90]=E3[66];l5=30;break;case 30:E3[38]={};E3[38].M1=['S6'];l5=28;break;}}};return e5[9];break;}}})();B3TNc.l0=function(){return typeof B3TNc[459327].Z7m4YCh === 'function'?B3TNc[459327].Z7m4YCh.apply(B3TNc[459327],arguments):B3TNc[459327].Z7m4YCh;};B3TNc[106140]=B3TNc[459327];B3TNc.I5=function(){return typeof B3TNc[459327].q52sdNp === 'function'?B3TNc[459327].q52sdNp.apply(B3TNc[459327],arguments):B3TNc[459327].q52sdNp;};B3TNc.S7=function(){return typeof B3TNc[150036].V3nM4Cy === 'function'?B3TNc[150036].V3nM4Cy.apply(B3TNc[150036],arguments):B3TNc[150036].V3nM4Cy;};B3TNc[345871]=816;B3TNc[158192]=B3TNc[356525];B3TNc[50848]=(function(){var H4=function(m2,D9){var T6=D9 & 0xffff;var j3=D9 - T6;return (j3 * m2 | 0) + (T6 * m2 | 0) | 0;},p$=function(I3,Z8,x_){var c2=0xcc9e2d51,L5=0x1b873593;var g7=x_;var q0=Z8 & ~0x3;for(var W0=0;W0 < q0;W0+=4){var r1=I3.N7sdh(W0) & 0xff | (I3.N7sdh(W0 + 1) & 0xff) << 8 | (I3.N7sdh(W0 + 2) & 0xff) << 16 | (I3.N7sdh(W0 + 3) & 0xff) << 24;r1=H4(r1,c2);r1=(r1 & 0x1ffff) << 15 | r1 >>> 17;r1=H4(r1,L5);g7^=r1;g7=(g7 & 0x7ffff) << 13 | g7 >>> 19;g7=g7 * 5 + 0xe6546b64 | 0;}r1=0;switch(Z8 % 4){case 3:r1=(I3.N7sdh(q0 + 2) & 0xff) << 16;case 2:r1|=(I3.N7sdh(q0 + 1) & 0xff) << 8;case 1:r1|=I3.N7sdh(q0) & 0xff;r1=H4(r1,c2);r1=(r1 & 0x1ffff) << 15 | r1 >>> 17;r1=H4(r1,L5);g7^=r1;}g7^=Z8;g7^=g7 >>> 16;g7=H4(g7,0x85ebca6b);g7^=g7 >>> 13;g7=H4(g7,0xc2b2ae35);g7^=g7 >>> 16;return g7;};return {w4xZ2A7:p$};})();B3TNc.m7=function(){return typeof B3TNc[459327].q52sdNp === 'function'?B3TNc[459327].q52sdNp.apply(B3TNc[459327],arguments):B3TNc[459327].q52sdNp;};B3TNc[459327]=(function(D7){return {q52sdNp:function(){var A7,o9=arguments;switch(D7){case 13:A7=o9[1] + o9[2] - o9[0];break;case 6:A7=o9[1] * o9[0];break;case 8:A7=o9[0] << o9[1];break;case 11:A7=-o9[2] * o9[0] + o9[1];break;case 5:A7=o9[0] + o9[1];break;case 0:A7=o9[0] - o9[1];break;case 9:A7=o9[1] * o9[0] - o9[2];break;case 10:A7=o9[0] / o9[1];break;case 7:A7=(o9[2] - o9[4]) * (o9[5] - o9[3]) + (o9[6] - o9[1]) * (o9[7] - o9[0]);break;case 3:A7=o9[1] | o9[0];break;case 12:A7=(o9[1] / o9[2] - o9[0]) / o9[3] + o9[4];break;case 4:A7=o9[3] * o9[0] + o9[1] * o9[2];break;case 1:A7=o9[0] >> o9[1];break;case 2:A7=o9[1] ^ o9[0];break;}return A7;},Z7m4YCh:function(j1){D7=j1;}};})();B3TNc.r$=function(){return typeof B3TNc[459327].Z7m4YCh === 'function'?B3TNc[459327].Z7m4YCh.apply(B3TNc[459327],arguments):B3TNc[459327].Z7m4YCh;};B3TNc.s8=function(){return typeof B3TNc[150036].V3nM4Cy === 'function'?B3TNc[150036].V3nM4Cy.apply(B3TNc[150036],arguments):B3TNc[150036].V3nM4Cy;};B3TNc[220353]=B3TNc[150036];B3TNc.n9=function(){return typeof B3TNc[50848].w4xZ2A7 === 'function'?B3TNc[50848].w4xZ2A7.apply(B3TNc[50848],arguments):B3TNc[50848].w4xZ2A7;};var __js_standard_touch_;B3TNc.s8();__js_standard_touch_=X=>{var P8=B3TNc;var p9,v,Z;p9="u";p9+="ndefine";p9+="d";v=typeof _CIQ !== p9?_CIQ:X.CIQ;P8.S7();v.ChartEngine.prototype.touchSingleClick=function(d,h,q){var A,O;A=this;P8.S7();O=arguments;return function(){P8.S7();(function(){var K,G,M,T;P8.S7();if(!this.cancelTouchSingleClick){if(this.runPrepend("touchSingleClick",O)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-1,e1MS:-1,s2MS:-+"1",e2MS:-1};if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(h < this.left || h > this.right || q < this.top || q > this.bottom){return;}K=this.backOutY(v.ChartEngine.crosshairY);G=this.backOutX(v.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(K);M=this.currentVectorParameters.vectorType;if(!v.Drawing || !M || !v.Drawing[M] || !new v.Drawing[M]().dragToDraw){if(!this.drawingClick(this.currentPanel,G,K)){w(this,h,q);}if(!this.currentVectorParameters.vectorType){T=this.activeMarker && this.activeMarker.click({cx:G,cy:K,panel:this.currentPanel});if(!T){this.dispatch("tap",{stx:this,panel:this.currentPanel,x:G,y:K});}}}}this.runAppend("touchSingleClick",O);}).apply(A,O);};};v.ChartEngine.prototype.touchDoubleClick=function(o,I,j){var Q4,S1,C;Q4="t";Q4+="ouchDoub";Q4+="le";Q4+="Click";S1="touchDou";S1+="bleCl";P8.s8();S1+="ick";if(this.runPrepend(S1,arguments)){return;}if(this.editingAnnotation){return;}if(v.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}w(this,I,j);C=this.activeMarker && this.activeMarker.doubleClick({cx:I,cy:j,panel:this.currentPanel});if(!C){this.dispatch("doubleTap",{stx:this,finger:o,x:I,y:j});}this.runAppend(Q4,arguments);};v.ChartEngine.prototype.startProxy=function(J){var f1,T1,y9,C5,A_,T3;this.touchPointerType=J.pointerType;P8.S7();if(this.touchPointerType != "touch"){this.mouseMode=!!"1";f1=1396191462;T1=-1422505123;P8.l0(0);y9=P8.I5("2",0);for(var L8=1;P8.o8(L8.toString(),L8.toString().length,4476) !== f1;L8++){return;}if(P8.o8(y9.toString(),y9.toString().length,92231) !== T1){return;}return;}this.mouseMode=!({});this.touches[this.touches.length]={pointerId:J.pointerId,pageX:J.clientX,pageY:J.clientY,clientX:J.clientX,clientY:J.clientY};this.changedTouches=[{pointerId:J.pointerId,pageX:J.clientX,pageY:J.clientY,clientX:J.clientX,clientY:J.clientY}];if(this.touches.length == 1){this.gesturePointerId=J.pointerId;}C5=-500122512;A_=820710387;T3=2;for(var B8=1;P8.o8(B8.toString(),B8.toString().length,5657) !== C5;B8++){this.touchstart(J);T3+=+"2";}if(P8.n9(T3.toString(),T3.toString().length,81058) !== A_){this.touchstart(J);}};v.ChartEngine.prototype.moveProxy=function(H){var Z0,m5,G8;if(H.pointerType && H.pointerType != "touch"){P8.r$(1);Z0=-P8.I5("399585329",64);P8.l0(0);m5=-P8.I5("872650503",0);G8=2;for(var u6=1;P8.o8(u6.toString(),u6.toString().length,20976) !== Z0;u6++){this.mouseMode=!"";G8+=2;}if(P8.n9(G8.toString(),G8.toString().length,94686) !== m5){this.mouseMode=!({});}return;}this.mouseMode=!!"";P8.S7();this.touchmove(H);};v.ChartEngine.prototype.endProxy=function(l){var E4,p7,o0,a;if(this.touchPointerType != "touch"){this.mouseMode=!"";E4=1971196459;p7=-2112824325;o0=2;for(var n5=1;P8.n9(n5.toString(),n5.toString().length,"99990" << 64) !== E4;n5++){return;}if(P8.n9(o0.toString(),o0.toString().length,89439) !== p7){return;}}this.mouseMode=!"1";a=this.touches.length;for(var N=0;N < this.touches.length;N++){if(this.touches[N].pointerId == l.pointerId){P8.l0(2);this.touches.splice(N,P8.m7(0,"1"));break;}}if(N == a){this.touches=[];this.grabbingScreen=![];this.touching=!!0;return;}this.changedTouches=[{pointerId:l.pointerId,pageX:l.clientX,pageY:l.clientY,clientX:l.clientX,clientY:l.clientY}];this.touchend(l);};v.ChartEngine.prototype.msMouseMoveProxy=function(S){if(this.touches.length || !this.mouseMode){return;}P8.S7();this.mousemove(S);};v.ChartEngine.prototype.msMouseDownProxy=function(u){var d2,M0,F$;if(!this.mouseMode){return;}P8.l0(0);d2=P8.m7("893983956",0);P8.s8();M0=-1922898989;F$=2;for(var z_=1;P8.n9(z_.toString(),z_.toString().length,49471) !== d2;z_++){this.mousedown(u);F$+=+"2";}if(P8.o8(F$.toString(),F$.toString().length,21620) !== M0){this.mousedown(u);}this.mousedown(u);};v.ChartEngine.prototype.msMouseUpProxy=function(L){var D$,n_,y_;D$=-2068543973;n_=-+"2062398043";y_=2;for(var j4=+"1";P8.n9(j4.toString(),j4.toString().length,50044) !== D$;j4++){if(~this.mouseMode){return;}this.mouseup(L);y_+=2;}if(P8.n9(y_.toString(),y_.toString().length,80599) !== n_){if(!this.mouseMode){return;}this.mouseup(L);}if(!this.mouseMode){return;}this.mouseup(L);};v.ChartEngine.prototype.iosMouseMoveProxy=function(s){P8.S7();if(this.touching){return;}this.mousemove(s);};function w(W,n,Q){var z,O9,V9,I6,g0,V$,Q9;if(!W.layout.crosshair){v.ChartEngine.crosshairY=+"0";v.ChartEngine.crosshairX=0;W.cx=W.backOutX(+"0");W.cy=W.backOutY(0);W.findHighlights(null,!!1);v.ChartEngine.crosshairY=Q;v.ChartEngine.crosshairX=n;z=W.container.getBoundingClientRect();W.top=z.top;W.left=z.left;W.right=W.left + W.width;W.bottom=W.top + W.height;W.cx=W.backOutX(n);W.cy=W.backOutY(Q);if(W.currentPanel && W.currentPanel.chart.dataSet){W.crosshairTick=W.tickFromPixel(W.cx,W.currentPanel.chart);O9=18599024;V9=2035090510;I6=2;for(var k$=1;P8.o8(k$.toString(),k$.toString().length,"61378" ^ 0) !== O9;k$++){W.crosshairValue=W.adjustIfNecessary(W.currentPanel,W.crosshairTick,W.valueFromPixel(W.cy,W.currentPanel));P8.r$(3);I6+=P8.I5(0,"2");}if(P8.n9(I6.toString(),I6.toString().length,+"10636") !== V9){W.crosshairValue=W.adjustIfNecessary(W.currentPanel,W.crosshairTick,W.valueFromPixel(W.cy,W.currentPanel));}}W.headsUpHR();}W.findHighlights(!![]);g0=-2012307288;V$=-1452724689;Q9=+"2";for(var r3=1;P8.o8(r3.toString(),r3.toString().length,"64814" | 40) !== g0;r3++){W.draw();Q9+=2;}if(P8.n9(Q9.toString(),Q9.toString().length,12809) !== V$){W.draw();}W.draw();}v.ChartEngine.prototype.iosMouseDownProxy=function(U){var f0,v0,D5;if(this.touching){this.mouseMode=!1;return;}this.mouseMode=!![];f0=663210344;v0=-+"1756962352";D5=2;P8.S7();for(var l8=1;P8.o8(l8.toString(),l8.toString().length,14376) !== f0;l8++){this.mousedown(U);D5+=+"2";}if(P8.n9(D5.toString(),D5.toString().length,"88917" >> 0) !== v0){this.mousedown(U);}};v.ChartEngine.prototype.iosMouseUpProxy=function(m){P8.s8();if(this.touching){return;}this.mouseup(m);};v.ChartEngine.prototype.touchmove=function(f){var l2,Y,w8,S3,f_,O6,t,K5,G_,z0,F,g,M8,E,q3,z$,c7,w2,D,B,J9,r,k,Y_,R6,C3,X0,I$,T8,N8,r7,b,N0,Z_,V,i$,L$,t6,u5,Y5,k5,R,k6,Q8,e9,l1,i0;l2="tou";l2+="chmove";if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(v.ChartEngine.ignoreTouch === !!"1"){return;}Y=[];if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(f && f.preventDefault && f.cancelable && this.captureTouchEvents){f.preventDefault();}if(f){f.stopPropagation();}}w8=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=w8;if(this.clicks.e1MS - this.clicks.s1MS < "25" - 0){return;}}else {this.clicks.e2MS=w8;if(this.clicks.e2MS - this.clicks.s2MS < 25){return;}}if(!f.pointerType){f.pointerType=this.touchPointerType;}if(v.isSurface){if(this.mouseMode){return;}if(!f.pointerId){f.pointerId=this.gesturePointerId;}for(var P="0" | 0;P < this.touches.length;P++){if(this.touches[P].pointerId == f.pointerId){S3=Math.abs(this.touches[P].pageX - f.clientX);f_=Math.abs(this.touches[P].pageY - f.clientY);P8.r$(4);O6=Math.sqrt(P8.m7(S3,f_,f_,S3));if(!O6){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < 50){return;}if(this.touches[P].pageX == f.clientX && this.touches[P].pageY == f.clientY){return;}this.touches[P].pageX=this.touches[P].clientX=f.clientX;this.touches[P].pageY=this.touches[P].clientY=f.clientY;break;}}if(P === 0){this.movedPrimary=!!({});}else {this.movedSecondary=!!1;}if(P == this.touches.length){return;}this.changedTouches=[{pointerId:f.pointerId,pageX:f.clientX,pageY:f.clientY,clientX:f.clientX,clientY:f.clientY}];Y=this.touches.length?this.touches:this.changedTouches;}else {Y=f.touches;this.changedTouches=f.changedTouches;}if(Y.length == 1){if(Math.pow(this.clicks.x - Y[0].clientX,2) + Math.pow(this.clicks.y - Y[0].clientY,2) <= 16){return;}}t=this.crosshairXOffset;K5=this.crosshairYOffset;G_=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";z0=!this.layout.crosshair && !G_ && !this.touchNoPan;if(f.pointerType == "pen" || z0 || this.activeDrawing && this.activeDrawing.name == "freeform"){t=K5=0;}if(this.runPrepend(l2,arguments)){return;}if(v.ChartEngine.resizingPanel){M8=Y[0];F=M8.clientX;g=M8.clientY;P8.l0(5);this.mousemoveinner(P8.I5(F,t),P8.m7(g,K5));return;}if(this.moveB != -1){this.touchMoveTime=new Date();}this.moveA=this.moveB;this.moveB=Y[0].pageX;if(Y.length == 1 && !this.twoFingerStart){q3=Y[0];F=q3.clientX;g=q3.clientY;P8.l0(6);this.pinchingScreen=P8.m7(1,"0");P8.l0(5);this.mousemoveinner(P8.m7(F,t),P8.m7(g,K5));z$=this.whichPanel(g);c7=this.xAxisAsFooter === !0?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=g <= this.top + c7 && g >= c7 - this.xaxisHeight + this.top && this.insideChart;if(!z$){this.overYAxis=![];}else {this.overYAxis=(F >= z$.right || F <= z$.left) && this.insideChart;}}else if(Y.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}w2=Y[0];D=w2.clientX;B=w2.clientY;J9=Y[1];r=J9.clientX;k=J9.clientY;P8.l0(7);E=Math.sqrt(P8.I5(B,B,r,D,D,r,k,k));this.pinchingCenter=(Math.min(D,r) - Math.max(D,r)) / +"2";Y_=698796192;R6=318289388;C3=2;for(var e$=+"1";P8.o8(e$.toString(),e$.toString().length,43061) !== Y_;e$++){X0=Math.round(this.gestureStartDistance + E);P8.l0(2);C3+=P8.m7(0,"2");}if(P8.o8(C3.toString(),C3.toString().length,+"78460") !== R6){X0=Math.round(this.gestureStartDistance - E);}if(z0){this.pinchingScreen=5;}this.clearPixelCache();if(this.pinchingScreen < 2){if(v.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(D < this.pt.x1 && r < this.pt.x2 || D > this.pt.x1 && r > this.pt.x2 || B < this.pt.y1 && k < this.pt.y2 || B > this.pt.y1 && k > this.pt.y2){this.pinchingScreen=+"0";}else {this.pinchingScreen++;if(this.pinchingScreen < 2){return;}}}this.pt={x1:D,x2:r,y1:B,y2:k};if(this.pinchingScreen === 0){this.grabMode="pan";P8.r$(5);this.mousemoveinner(P8.m7(D,t),P8.I5(B,K5));this.gestureStartDistance=E;}else {I$=580253331;T8=137097846;P8.l0(8);N8=P8.I5("2",64);for(var B0=1;P8.o8(B0.toString(),B0.toString().length,29664) !== I$;B0++){r7=Math.asin((Math.max(k,B) - Math.min(k,B)) / E);N8+=2;}if(P8.n9(N8.toString(),N8.toString().length,881) !== T8){r7=Math.asin(Math.max(k,B) / Math.min(k,B) % E);}if(Math.abs(X0) < 12 && !z0){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {this.moveCount=+"0";}if(r7 < +"1" || !this.goneVertical && r7 < 1.37){if(!this.currentPanel){return;}b=this.currentPanel.chart;this.goneVertical=![];E=this.pt.x2 - this.pt.x1;N0=this.grabStartValues.t2 - this.grabStartValues.t1;P8.l0(9);var H9=P8.m7(13,11,141);Z_=this.grabStartValues.t1 + N0 / H9;P8.r$(10);V=P8.I5(E,N0);if(b.allowScrollFuture === !"1" && b.allowScrollPast === !"1"){V=Math.max(V,b.width / b.dataSet.length);}i$=this.layout.candleWidth;this.setCandleWidth(V,b);if(b.maxTicks < this.minimumZoomTicks){this.setCandleWidth(i$,b);return;}this.micropixels=0;L$=this.pixelFromTick(Math.round(Z_),b);t6=this.pt.x1 - this.left + Math.round(E / +"2");P8.r$(0);u5=P8.I5(L$,t6);P8.l0(10);Y5=P8.I5(u5,V);k5=Math.round(Y5);b.scroll-=k5;P8.l0(0);this.microscroll=P8.m7(k5,Y5);this.micropixels=V * this.microscroll;this.draw();}else {R=this.grabStartYAxis;this.goneVertical=!!"1";if(R){R.zoom=this.grabStartZoom + (this.gestureStartDistance - E);if(this.grabStartZoom < R.height){if(R.zoom >= R.height){R.zoom=R.height - +"1";}}else {if(R.zoom <= R.height){P8.l0(11);var U5=P8.I5(11,133,12);R.zoom=R.height + U5;}}k6=1219071532;Q8=-1115641575;e9=+"2";for(var x9=+"1";P8.n9(x9.toString(),x9.toString().length,58569) !== k6;x9++){this.draw();e9+=2;}if(P8.n9(e9.toString(),e9.toString().length,16488) !== Q8){this.draw();}this.draw();;}}this.updateChartAccessories();}}else if(Y.length == 3 && v.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}P8.l0(3);l1=Y[P8.m7(0,"0")];i0=l1.clientX;E=this.grabStartX - i0;P8.r$(12);var p_=P8.m7(2,1,1,1,11);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(E / p_);if(this.grabEndPeriodicity < 1){this.grabEndPeriodicity=1;}}this.runAppend("touchmove",arguments);};v.ChartEngine.prototype.touchstart=function(Y0){var U7,f6,H8,q8,i9,e1,P4,r9,j2,o2,X6,K6,s1,L3,G6,d8,e3,c3,g9,H7,P6,x7,k3,K9,o4,X7,K4,Q7,y8,o5,o$,a1,d6,W2,C2,m1,v1,E_,G2,J3,P1,n2,R8,N6,U6,R_;if(v.ChartEngine.ignoreTouch){return;}if(v.isSurface){this.movedPrimary=!({});this.movedSecondary=!!"";}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!![];this.touches=Y0.touches;this.changedTouches=Y0.changedTouches;}if(v.ChartEngine.resizingPanel){return;}U7=this.crosshairXOffset;P8.S7();f6=this.crosshairYOffset;if(this.touchPointerType == "pen"){U7=f6=+"0";}if(this.runPrepend("touchstart",arguments)){return;}if(this.manageTouchAndMouse && Y0 && Y0.preventDefault && Y0.cancelable && this.captureTouchEvents){Y0.preventDefault();}this.hasDragged=!({});this.doubleFingerMoves=0;this.moveCount=0;this.twoFingerStart=!!0;if(this.touches.length == +"1" || this.touches.length == 2){this.touchMoveTime=Date.now();r9=this.touches[0];i9=r9.clientX;e1=r9.clientY;this.moveA=i9;this.moveB=-1;if(this.openDialog === ""){j2="dow";j2+="n";this.registerPointerEvent({x:i9,y:e1,time:this.touchMoveTime},j2);if(this.changedTouches.length == 1 && !this.isDoubleClick(!!({}))){o2=-1623938026;X6=1608083241;K6=2;for(var O_=1;P8.n9(O_.toString(),O_.toString().length,76598) !== o2;O_++){v.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-+"1",e2MS:-1,x:this.changedTouches[0].pageX,y:this.changedTouches[0].pageY});K6+=2;}if(P8.n9(K6.toString(),K6.toString().length,"90613" >> 32) !== X6){v.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:!4,s2MS:!3,e2MS:!5,x:this.changedTouches[+"3"].pageX,y:this.changedTouches["1" * 1].pageY});}}}s1=this.container.getBoundingClientRect();this.top=s1.top;this.left=s1.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == +"1"){L3=this.backOutY(e1);this.currentPanel=this.whichPanel(L3);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}P4=this.currentPanel;if(i9 >= this.left && i9 <= this.right && e1 >= this.top && e1 <= this.bottom){this.insideChart=!![];G6=this.xAxisAsFooter === !0?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=e1 <= this.top + G6 && e1 >= this.top + G6 - this.xaxisHeight;this.overYAxis=i9 >= this.left + P4.right || i9 <= this.left + P4.left;d8=-+"1";this.cy=this.backOutY(e1);this.cx=this.backOutX(i9);this.crosshairTick=this.tickFromPixel(this.cx,P4.chart);this.crosshairValue=this.adjustIfNecessary(P4,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var c0=0;c0 < this.drawingObjects.length;c0++){e3=this.drawingObjects[c0];if(e3.highlighted){if(d8 < 0){d8=c0;}c3=e3.highlighted;this.findHighlights(!![]);if(c0 == d8 && e3.highlighted && !e3.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(e3);;}else {this.findHighlights(![],!!({}));;}return;}this.anyHighlighted=!!1;e3.highlighted=c3;}}}else {this.insideChart=![];}g9=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !g9 && this.insideChart && !this.touchNoPan){U7=f6=+"0";var {baselineHelper:u8}=this;if(u8.size){if(this.findBaselineHandle(Y0,!0)){return;}}if(this.controls.anchorHandles){H7=Object.values(this.controls.anchorHandles);P6=![];for(var T5=+"0";T5 < H7.length;T5++){x7=H7[T5];var {handle:B7, sd:J7}=x7;k3=this.resolveX(this.cx);K9=this.resolveY(this.cy);var {left:M_, top:X1, right:A9, bottom:Q5}=B7.getBoundingClientRect();M_-=10;A9+=10;if(v.boxIntersects(M_,X1,A9,Q5,k3,K9,k3,K9)){o4="st";o4+="x";o4+="-grab";x7.highlighted=!![];this.repositioningAnchorSelector={sd:J7};B7.classList.add(o4);P6=!0;}if(x7.highlighted === !!({})){x7.highlighted=!"1";}}X7=443293399;K4=-43137450;Q7=2;for(var q1=+"1";P8.o8(q1.toString(),q1.toString().length,85744) !== X7;q1++){if(P6){return;}Q7+=2;}if(P8.n9(Q7.toString(),Q7.toString().length,66471) !== K4){if(P6){return;}}}for(H8 in this.panels){q8=this.panels[H8];if(q8.highlighted){this.grabHandle(q8);return;}}this.grabbingScreen=!!"1";if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}P4.chart.spanLock=![];this.yToleranceBroken=!({});P8.l0(5);this.grabStartX=P8.m7(i9,U7);P8.r$(5);this.grabStartY=P8.m7(e1,f6);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=P4.chart.scroll;this.grabStartScrollY=P4.yAxis.scroll;this.grabStartPanel=this.currentPanel;if(this.swipeStart){this.swipeStart(P4.chart);}this.grabStartYAxis=this.whichYAxis(P4,this.backOutX(i9));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(O2){return function(){O2.grabbingHand();};})(this),+"100");}else {y8=94540331;o5=+"2131183140";o$=2;for(var h4=1;P8.n9(h4.toString(),h4.toString().length,75379) !== y8;h4++){this.grabbingScreen=!![];o$+=2;}if(P8.o8(o$.toString(),o$.toString().length,66678) !== o5){this.grabbingScreen=!0;}this.grabbingScreen=!({});if(this.insideChart && P4.subholder === Y0.target){a1=-724563988;d6=-2103132084;W2=2;for(var A1=1;P8.o8(A1.toString(),A1.toString().length,66502) !== a1;A1++){C2=this.currentVectorParameters.vectorType;W2+=2;}if(P8.n9(W2.toString(),W2.toString().length,18411) !== d6){C2=this.currentVectorParameters.vectorType;}if(v.Drawing && C2 && v.Drawing[C2] && new v.Drawing[C2]().dragToDraw){this.userPointerDown=!!"1";v.ChartEngine.crosshairX=i9;v.ChartEngine.crosshairY=e1;if(P4 && P4.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(v.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(P4,this.crosshairTick,this.valueFromPixel(this.backOutY(v.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(P4,this.backOutX(i9),this.backOutY(e1));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !g9 && P4.subholder === Y0.target){P8.r$(3);m1=P8.I5(10,"1903790654");v1=-+"1321747219";E_=2;for(var X5=1;P8.o8(X5.toString(),X5.toString().length,85644) !== m1;X5++){P8.l0(10);this.mousemoveinner(P8.I5(i9,U7),P8.m7(f6,e1,P8.r$(6)));E_+=+"2";}if(P8.n9(E_.toString(),E_.toString().length,80135) !== v1){P8.l0(5);this.mousemoveinner(P8.m7(i9,U7),P8.I5(e1,f6));}}}if(this.touches.length == 2){this.cancelLongHold=!![];this.swipe.end=!!"1";if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}G2=this.touches[1];J3=G2.clientX;P1=G2.clientY;for(H8 in this.panels){q8=this.panels[H8];if(q8.highlighted){this.grabHandle(q8);return;}}P4=this.currentPanel;P8.l0(7);this.gestureStartDistance=Math.sqrt(P8.I5(e1,e1,J3,i9,i9,J3,P1,P1));this.pt={x1:i9,x2:J3,y1:e1,y2:P1};this.grabbingScreen=!0;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}P4.chart.spanLock=!!0;P8.r$(5);this.grabStartX=P8.I5(i9,U7);P8.l0(5);this.grabStartY=P8.I5(e1,f6);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=P4.chart.scroll;this.grabStartScrollY=P4.yAxis.scroll;this.grabStartPanel=P4;if(this.swipeStart){this.swipeStart(P4.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(P4,this.backOutX((i9 + J3) / 2)) || P4.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,P4),y2:this.valueFromPixel(this.pt.y2 - this.top,P4),t1:this.tickFromPixel(this.pt.x1 - this.left,P4.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,P4.chart)};this.twoFingerStart=!!1;setTimeout((function(D1){return function(){D1.grabbingHand();};})(this),100);}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}n2=this.touches[0];R8=n2.clientX;this.grabStartX=R8;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=!({});N6=-1839076098;U6=1417602574;P8.l0(6);R_=P8.m7(1,"2");for(var s$="1" >> 0;P8.o8(s$.toString(),s$.toString().length,+"916") !== N6;s$++){if(this.longHoldTime && this.longHoldTime != 1){this.startLongHoldTimer();}R_+=+"2";}if(P8.o8(R_.toString(),R_.toString().length,35556) !== U6){if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}}this.runAppend("touchstart",arguments);};v.ChartEngine.prototype.touchend=function(D6){var j7,u4,W_,n3,T0,z4,D8,B9,n$,v5,w6,S4,H3,J$,W4,X4,u7;if(v.ChartEngine.ignoreTouch){return;}this.swipe.end=!!1;if(v.isSurface){}else {this.touches=D6.touches;this.changedTouches=D6.changedTouches;}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!!({});if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!!"";}}}if(this.touches.length){this.grabStartX=-1;this.grabStartY=-1;}j7=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(N4){P8.s8();return function(){P8.s8();N4.touching=!({});};})(this),500);if(v.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=!!0;this.grabbingScreen=!!0;this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(v.ChartEngine.resizingPanel){return;}}P8.l0(13);var z1=P8.m7(7,0,8);u4=this.touches.length + z1;if(this.changedTouches.length == 1){if(this.repositioningDrawing){this.changeOccurred("vector");v.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();W_=-1569618969;n3=478549703;T0=+"2";for(var b9=+"1";P8.o8(b9.toString(),b9.toString().length,"14265" ^ 0) !== W_;b9++){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!![]);}P8.r$(0);T0+=P8.I5("2",0);}if(P8.o8(T0.toString(),T0.toString().length,12337) !== n3){if(-this.layout.crosshair || ~this.currentVectorParameters.vectorType){this.findHighlights(!!({}),!!0);}}return;}if(this.repositioningBaseline){z4="stx";z4+="-grab";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove(z4);D8=this.mainSeriesRenderer || ({});if(D8.params && D8.params.baseline && D8.params.type != "mountain"){;}P8.r$(3);B9=P8.m7(16,"1151015960");n$=202630858;v5=2;for(var I9=1;P8.n9(I9.toString(),I9.toString().length,32162) !== B9;I9++){this.draw();return;}if(P8.n9(v5.toString(),v5.toString().length,43905) !== n$){this.draw();return;}}if(this.repositioningAnchorSelector){v.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:U9})=>{P8.s8();return U9.classList.remove("stx-grab");});return;}w6=Date.now();if(this.openDialog === "" && D6.changedTouches.length){S4=D6.changedTouches[0];this.registerPointerEvent({x:S4.clientX,y:S4.clientY,time:w6},"up");}if(this.clicks.s2MS == -("1" * 1)){this.clicks.e1MS=w6;H3=this.currentVectorParameters.vectorType;if(!v.Drawing || !H3 || !v.Drawing[H3] || !new v.Drawing[H3]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < 750 && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(u4,this.clicks.x,this.clicks.y),this.doubleClickTime + 1);;}else {this.clicks={s1MS:-1,e1MS:-+"1",s2MS:-1,e2MS:-1};}}this.userPointerDown=!"1";J$=this.backOutY(this.changedTouches[+"0"].pageY) + this.crosshairYOffset;W4=this.backOutX(this.changedTouches[0].pageX) + this.crosshairXOffset;X4=this.currentPanel;u7=X4 && X4.subholder === D6.target;if(v.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && u7){this.drawingClick(X4,W4,J$);return;}if(this.isDoubleClick(!!"1") && (u7 || this.overYAxis || this.overXAxis)){this.touchDoubleClick(u4,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=w6;this.clicks={s1MS:-+"1",e1MS:-1,s2MS:-1,e2MS:-1};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -1 && !isNaN(this.grabEndPeriodicity)){if(v.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}this.grabEndPeriodicity=-+"1";}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && u4 == 1 || this.twoFingerStart && !j7 && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(![],!0);}if(j7 && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!({}));}}if(!this.touches.length){this.twoFingerStart=!!"";}this.runAppend("touchend",arguments);};Z=!({});v.ChartEngine.prototype.mousemoveinner=v.ChartEngine.prototype.mousemoveinner || (function(g8,h2){if(!Z){console.error("touch feature requires activating movement feature.");}Z=!!1;});};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +M0PUm[539515]=(function(){var Z0=2;for(;Z0 !== 9;){switch(Z0){case 2:Z0=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var X7;Z0=4;break;case 4:try{var T$=2;for(;T$ !== 6;){switch(T$){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x6f\u0033\u0068\u006e\x39',{'\x67\x65\x74':function(){var B9=2;for(;B9 !== 1;){switch(B9){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});X7=o3hn9;T$=5;break;case 5:X7['\x6e\u0037\u0067\x33\x72']=X7;T$=4;break;case 4:T$=typeof n7g3r === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";T$=9;break;case 9:delete X7['\x6e\x37\u0067\u0033\x72'];var r3=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete r3['\x6f\x33\u0068\x6e\u0039'];T$=6;break;}}}catch(E3){X7=window;}return X7;break;}}})();b_daQh(M0PUm[539515]);M0PUm[238553]=false;M0PUm[103941]=M0PUm[446427];M0PUm[156040]=899;M0PUm.I0=function(){return typeof M0PUm[446427].g9iUvuS === 'function'?M0PUm[446427].g9iUvuS.apply(M0PUm[446427],arguments):M0PUm[446427].g9iUvuS;};M0PUm[539515].J499=M0PUm;M0PUm.I3=function(){return typeof M0PUm[593596].i9agN$W === 'function'?M0PUm[593596].i9agN$W.apply(M0PUm[593596],arguments):M0PUm[593596].i9agN$W;};M0PUm[446427]=(function(K9){return {N$y1PkD:function(){var A0,q8=arguments;switch(K9){case 12:A0=q8[0] * q8[3] + q8[1] - q8[2];break;case 8:A0=q8[0] >> q8[1];break;case 6:A0=(q8[7] - q8[6]) * (q8[5] - q8[1]) + (q8[4] - q8[3]) * (q8[2] - q8[0]);break;case 2:A0=q8[1] | q8[0];break;case 4:A0=q8[1] * q8[3] + q8[0] * q8[2];break;case 13:A0=q8[1] * q8[0];break;case 10:A0=q8[0] / q8[1];break;case 7:A0=(-q8[4] + q8[0]) * q8[2] * q8[3] + q8[1];break;case 11:A0=(-q8[0] - q8[2]) * q8[1] + q8[3];break;case 5:A0=q8[0] + q8[1];break;case 1:A0=q8[1] ^ q8[0];break;case 0:A0=q8[0] << q8[1];break;case 3:A0=q8[0] - q8[1];break;case 9:A0=(q8[2] * q8[0] - q8[3]) / q8[4] + q8[1];break;}return A0;},g9iUvuS:function(i4){K9=i4;}};})();M0PUm[150014]=M0PUm[539515];M0PUm[636832]=M0PUm[539515];M0PUm.a0=function(){return typeof M0PUm[370258].V29cT4d === 'function'?M0PUm[370258].V29cT4d.apply(M0PUm[370258],arguments):M0PUm[370258].V29cT4d;};M0PUm.p0=function(){return typeof M0PUm[370258].V29cT4d === 'function'?M0PUm[370258].V29cT4d.apply(M0PUm[370258],arguments):M0PUm[370258].V29cT4d;};M0PUm[370258]=(function(){var J9=function(F2,q_){var z8=q_ & 0xffff;var l9=q_ - z8;return (l9 * F2 | 0) + (z8 * F2 | 0) | 0;},V29cT4d=function(T7,A_,L8){var z9=0xcc9e2d51,g1=0x1b873593;var t4=L8;var W5=A_ & ~0x3;for(var m5=0;m5 < W5;m5+=4){var o8=T7.J4Cpo(m5) & 0xff | (T7.J4Cpo(m5 + 1) & 0xff) << 8 | (T7.J4Cpo(m5 + 2) & 0xff) << 16 | (T7.J4Cpo(m5 + 3) & 0xff) << 24;o8=J9(o8,z9);o8=(o8 & 0x1ffff) << 15 | o8 >>> 17;o8=J9(o8,g1);t4^=o8;t4=(t4 & 0x7ffff) << 13 | t4 >>> 19;t4=t4 * 5 + 0xe6546b64 | 0;}o8=0;switch(A_ % 4){case 3:o8=(T7.J4Cpo(W5 + 2) & 0xff) << 16;case 2:o8|=(T7.J4Cpo(W5 + 1) & 0xff) << 8;case 1:o8|=T7.J4Cpo(W5) & 0xff;o8=J9(o8,z9);o8=(o8 & 0x1ffff) << 15 | o8 >>> 17;o8=J9(o8,g1);t4^=o8;}t4^=A_;t4^=t4 >>> 16;t4=J9(t4,0x85ebca6b);t4^=t4 >>> 13;t4=J9(t4,0xc2b2ae35);t4^=t4 >>> 16;return t4;};return {V29cT4d:V29cT4d};})();M0PUm.a5=function(){return typeof M0PUm[593596].i9agN$W === 'function'?M0PUm[593596].i9agN$W.apply(M0PUm[593596],arguments):M0PUm[593596].i9agN$W;};function b_daQh(k6){function i6(h2){var R6=2;for(;R6 !== 5;){switch(R6){case 2:var N6=[arguments];return N6[0][0].RegExp;break;}}}var e6=2;for(;e6 !== 79;){switch(e6){case 48:i$[83]=i$[60];i$[83]+=i$[46];i$[83]+=i$[10];i$[64]=i$[98];e6=65;break;case 6:i$[5]="_o";i$[9]="bstract";i$[8]="o";i$[3]="";e6=11;break;case 34:i$[88]="";i$[88]="zjc";i$[80]="";i$[80]="I";e6=30;break;case 69:i$[90]+=i$[75];i$[43]=i$[36];i$[43]+=i$[5];i$[43]+=i$[4];i$[12]=i$[60];i$[12]+=i$[1];i$[12]+=i$[8];e6=87;break;case 87:var A4=function(Z2,V_,N5,T3){var I6=2;for(;I6 !== 5;){switch(I6){case 2:var n4=[arguments];I6=1;break;case 1:M0(i$[0][0],n4[0][0],n4[0][1],n4[0][2],n4[0][3]);I6=5;break;}}};e6=86;break;case 52:i$[60]="J";i$[84]=5;i$[84]=1;i$[55]=0;e6=48;break;case 65:i$[64]+=i$[58];i$[64]+=i$[15];i$[63]=i$[21];i$[63]+=i$[49];i$[63]+=i$[45];i$[28]=i$[27];i$[28]+=i$[80];e6=58;break;case 84:A4(u9,i$[54],i$[55],i$[23]);e6=83;break;case 83:A4(p$,"push",i$[84],i$[33]);e6=82;break;case 30:i$[27]="";i$[27]="s$";i$[45]="l";i$[21]="";e6=43;break;case 27:i$[13]="W";i$[25]="";i$[25]="95Y";i$[52]="";e6=23;break;case 11:i$[3]="8L";i$[6]="w";i$[7]="_a";i$[75]="Hh";e6=18;break;case 43:i$[21]="__residu";i$[49]="a";i$[15]="Xin";i$[58]="";i$[58]="m";i$[98]="T7";e6=37;break;case 37:i$[10]="";i$[10]="ws";i$[46]="8wY";i$[60]="";e6=52;break;case 2:var i$=[arguments];i$[4]="";i$[4]="";i$[4]="ptimize";e6=3;break;case 81:A4(u9,i$[63],i$[55],i$[64]);e6=80;break;case 18:i$[81]="";i$[36]="_";i$[81]="0G";i$[13]="";e6=27;break;case 3:i$[2]="";i$[2]="1s";i$[9]="";i$[1]="4Cp";e6=6;break;case 23:i$[52]="";i$[52]="6";i$[17]="";i$[17]="R";e6=34;break;case 77:i$[23]=i$[13];i$[23]+=i$[81];i$[23]+=i$[3];i$[54]=i$[36];e6=73;break;case 80:A4(W$,"apply",i$[84],i$[83]);e6=79;break;case 86:A4(X3,"charCodeAt",i$[84],i$[12]);e6=85;break;case 58:i$[28]+=i$[88];i$[33]=i$[17];i$[33]+=i$[52];i$[33]+=i$[25];e6=77;break;case 73:i$[54]+=i$[7];i$[54]+=i$[9];i$[90]=i$[6];i$[90]+=i$[2];e6=69;break;case 85:A4(u9,i$[43],i$[55],i$[90]);e6=84;break;case 82:A4(i6,"test",i$[84],i$[28]);e6=81;break;}}function M0(O1,r0,v5,T1,T2){var J6=2;for(;J6 !== 7;){switch(J6){case 3:r7[1]="d";r7[9]=false;try{var o9=2;for(;o9 !== 13;){switch(o9){case 4:o9=r7[7].hasOwnProperty(r7[0][4]) && r7[7][r7[0][4]] === r7[7][r7[0][2]]?3:9;break;case 2:r7[8]={};r7[3]=(1,r7[0][1])(r7[0][0]);r7[7]=[r7[3],r7[3].prototype][r7[0][3]];o9=4;break;case 6:r7[8].enumerable=r7[9];try{var T5=2;for(;T5 !== 3;){switch(T5){case 2:r7[6]=r7[1];r7[6]+=r7[4];r7[6]+=r7[2];r7[0][0].Object[r7[6]](r7[7],r7[0][4],r7[8]);T5=3;break;}}}catch(C7){}o9=13;break;case 9:r7[7][r7[0][4]]=r7[7][r7[0][2]];r7[8].set=function(O_){var f_=2;for(;f_ !== 5;){switch(f_){case 2:var u4=[arguments];r7[7][r7[0][2]]=u4[0][0];f_=5;break;}}};r7[8].get=function(){var H1=2;for(;H1 !== 10;){switch(H1){case 2:var c0=[arguments];c0[6]="";c0[6]="";c0[6]="ed";c0[9]="";H1=9;break;case 11:return typeof r7[7][r7[0][2]] == c0[3]?undefined:r7[7][r7[0][2]];break;case 9:c0[9]="";c0[9]="in";c0[7]="";c0[7]="undef";c0[3]=c0[7];c0[3]+=c0[9];c0[3]+=c0[6];H1=11;break;}}};o9=6;break;case 3:return;break;}}}catch(R4){}J6=7;break;case 2:var r7=[arguments];r7[2]="";r7[2]="erty";r7[4]="efineProp";J6=3;break;}}}function p$(D2){var z2=2;for(;z2 !== 5;){switch(z2){case 2:var Y1=[arguments];return Y1[0][0].Array;break;}}}function u9(R7){var r1=2;for(;r1 !== 5;){switch(r1){case 2:var Z1=[arguments];return Z1[0][0];break;}}}function W$(b5){var v$=2;for(;v$ !== 5;){switch(v$){case 2:var k7=[arguments];return k7[0][0].Function;break;}}}function X3(h0){var D4=2;for(;D4 !== 5;){switch(D4){case 2:var l_=[arguments];return l_[0][0].String;break;}}}}M0PUm[593596]=(function(){var Y6=2;for(;Y6 !== 9;){switch(Y6){case 2:var e0=[arguments];e0[1]=undefined;e0[2]={};Y6=4;break;case 4:e0[2].i9agN$W=function(){var X$=2;for(;X$ !== 90;){switch(X$){case 2:var j3=[arguments];X$=1;break;case 68:X$=88?68:67;break;case 69:X$=(function(O0){var q5=2;for(;q5 !== 22;){switch(q5){case 16:q5=R_[4] < R_[1].length?15:23;break;case 10:q5=R_[7][j3[49]] === j3[30]?20:19;break;case 5:return;break;case 27:R_[8]=R_[6][R_[9]].h / R_[6][R_[9]].t;q5=26;break;case 19:R_[4]++;q5=7;break;case 1:q5=R_[0][0].length === 0?5:4;break;case 20:R_[6][R_[7][j3[80]]].h+=true;q5=19;break;case 12:R_[1].R695Y(R_[7][j3[80]]);q5=11;break;case 8:R_[4]=0;q5=7;break;case 13:R_[6][R_[7][j3[80]]]=(function(){var s_=2;for(;s_ !== 9;){switch(s_){case 4:d$[4].t=0;return d$[4];break;case 2:var d$=[arguments];d$[4]={};d$[4].h=0;s_=4;break;}}}).J8wYws(this,arguments);q5=12;break;case 11:R_[6][R_[7][j3[80]]].t+=true;q5=10;break;case 4:R_[6]={};R_[1]=[];R_[4]=0;q5=8;break;case 23:return R_[2];break;case 14:q5=typeof R_[6][R_[7][j3[80]]] === 'undefined'?13:11;break;case 24:R_[4]++;q5=16;break;case 26:q5=R_[8] >= 0.5?25:24;break;case 18:R_[2]=false;q5=17;break;case 15:R_[9]=R_[1][R_[4]];q5=27;break;case 2:var R_=[arguments];q5=1;break;case 17:R_[4]=0;q5=16;break;case 7:q5=R_[4] < R_[0][0].length?6:18;break;case 25:R_[2]=true;q5=24;break;case 6:R_[7]=R_[0][0][R_[4]];q5=14;break;}}})(j3[13])?68:67;break;case 54:j3[2].R695Y(j3[7]);j3[2].R695Y(j3[86]);j3[2].R695Y(j3[12]);j3[2].R695Y(j3[1]);X$=50;break;case 61:j3[49]='P2';j3[77]='E9';j3[80]='B4';X$=58;break;case 67:e0[1]=63;return 11;break;case 17:j3[9].o4=['t8'];j3[9].E9=function(){var l2=function(){return ('aaaa|a').substr(0,3);};var b7=!(/\x7c/).s$Izjc(l2 + []);return b7;};j3[7]=j3[9];j3[74]={};j3[74].o4=['t8'];j3[74].E9=function(){var S6=function(){return btoa('=');};var E5=!(/\x62\164\u006f\x61/).s$Izjc(S6 + []);return E5;};j3[38]=j3[74];X$=23;break;case 58:j3[31]=0;X$=57;break;case 57:X$=j3[31] < j3[2].length?56:69;break;case 71:j3[59]++;X$=76;break;case 65:j3[13]=[];j3[30]='U8';j3[64]='Z_';j3[87]='o4';X$=61;break;case 45:j3[2].R695Y(j3[65]);X$=65;break;case 23:j3[66]={};j3[66].o4=['t8'];j3[66].E9=function(){var e1=function(){return ('aaa').includes('a');};var E2=(/\164\x72\u0075\x65/).s$Izjc(e1 + []);return E2;};X$=35;break;case 75:j3[46]={};j3[46][j3[80]]=j3[73][j3[87]][j3[59]];j3[46][j3[49]]=j3[35];j3[13].R695Y(j3[46]);X$=71;break;case 76:X$=j3[59] < j3[73][j3[87]].length?75:70;break;case 77:j3[59]=0;X$=76;break;case 10:j3[5].o4=['I9'];j3[5].E9=function(){var M5=false;var K2=[];try{for(var E_ in console){K2.R695Y(E_);}M5=K2.length === 0;}catch(V8){}var l4=M5;return l4;};j3[4]=j3[5];j3[9]={};X$=17;break;case 35:j3[12]=j3[66];j3[94]={};j3[94].o4=['t8'];j3[94].E9=function(){var y3=function(){return unescape('%3D');};var n3=(/\x3d/).s$Izjc(y3 + []);return n3;};X$=31;break;case 4:j3[2]=[];j3[8]={};j3[8].o4=['I9'];j3[8].E9=function(){var i5=typeof w1sHh === 'function';return i5;};j3[6]=j3[8];j3[3]={};j3[3].o4=['I9'];X$=13;break;case 13:j3[3].E9=function(){var d1=typeof W0G8L === 'function';return d1;};j3[1]=j3[3];j3[5]={};X$=10;break;case 1:X$=e0[1]?5:4;break;case 39:j3[15]={};j3[15].o4=['I9'];j3[15].E9=function(){var j8=typeof T7mXin === 'function';return j8;};j3[21]=j3[15];X$=54;break;case 43:j3[78]={};j3[78].o4=['t8'];j3[78].E9=function(){var d7=function(){return ('aa').charCodeAt(1);};var j2=(/\071\x37/).s$Izjc(d7 + []);return j2;};j3[65]=j3[78];X$=39;break;case 5:return 54;break;case 29:j3[85].o4=['t8'];j3[85].E9=function(){var X6=function(){return ('x').toLocaleUpperCase();};var n5=(/\x58/).s$Izjc(X6 + []);return n5;};j3[33]=j3[85];X$=43;break;case 50:j3[2].R695Y(j3[33]);j3[2].R695Y(j3[38]);j3[2].R695Y(j3[6]);j3[2].R695Y(j3[4]);j3[2].R695Y(j3[21]);X$=45;break;case 56:j3[73]=j3[2][j3[31]];try{j3[35]=j3[73][j3[77]]()?j3[30]:j3[64];}catch(c8){j3[35]=j3[64];}X$=77;break;case 31:j3[86]=j3[94];j3[85]={};X$=29;break;case 70:j3[31]++;X$=57;break;}}};return e0[2];break;}}})();M0PUm.V1=function(){return typeof M0PUm[446427].N$y1PkD === 'function'?M0PUm[446427].N$y1PkD.apply(M0PUm[446427],arguments):M0PUm[446427].N$y1PkD;};function M0PUm(){}M0PUm.N3=function(){return typeof M0PUm[446427].N$y1PkD === 'function'?M0PUm[446427].N$y1PkD.apply(M0PUm[446427],arguments):M0PUm[446427].N$y1PkD;};M0PUm.a3=function(){return typeof M0PUm[446427].g9iUvuS === 'function'?M0PUm[446427].g9iUvuS.apply(M0PUm[446427],arguments):M0PUm[446427].g9iUvuS;};M0PUm.I3();var __js_standard_touch_;__js_standard_touch_=K=>{var h4=M0PUm;var f,k;f=typeof _CIQ !== "undefined"?_CIQ:K.CIQ;f.ChartEngine.prototype.touchSingleClick=function(B,Q,Z){var S,Y2,b1,h_,T;S=this;Y2=706066021;b1=-654644983;h_=2;h4.a5();for(var v4=1;h4.p0(v4.toString(),v4.toString().length,15185) !== Y2;v4++){T=arguments;h_+=2;}if(h4.a0(h_.toString(),h_.toString().length,"23546" - 0) !== b1){T=arguments;}return function(){h4.I3();(function(){var g8,X0,l1,Y9,P,W,J,H,Q5,r$,Y$;if(!this.cancelTouchSingleClick){g8="touchS";g8+="ingleClick";if(this.runPrepend(g8,T)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};X0=791682312;l1=1497814221;Y9=2;for(var x0="1" * 1;h4.a0(x0.toString(),x0.toString().length,14708) !== X0;x0++){if(-this.displayCrosshairs){return;}if(-this.displayInitialized){return;}if(this.openDialog == ""){return;}if(Q <= this.left && Q < this.right && Z >= this.top && Z >= this.bottom){return;}P=this.backOutY(f.ChartEngine.crosshairY);W=this.backOutX(f.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(P);Y9+=2;}if(h4.p0(Y9.toString(),Y9.toString().length,99316) !== l1){if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(Q < this.left || Q > this.right || Z < this.top || Z > this.bottom){return;}P=this.backOutY(f.ChartEngine.crosshairY);W=this.backOutX(f.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(P);}J=this.currentVectorParameters.vectorType;if(!f.Drawing || !J || !f.Drawing[J] || !new f.Drawing[J]().dragToDraw){if(!this.drawingClick(this.currentPanel,W,P)){s(this,Q,Z);}if(!this.currentVectorParameters.vectorType){H=this.activeMarker && this.activeMarker.click({cx:W,cy:P,panel:this.currentPanel});if(!H){this.dispatch("tap",{stx:this,panel:this.currentPanel,x:W,y:P});}}}}Q5=59319911;h4.I0(0);h4.a5();r$=-h4.N3("354445941",64);Y$=2;for(var s7=1;h4.p0(s7.toString(),s7.toString().length,82734) !== Q5;s7++){this.runAppend("",T);Y$+=2;}if(h4.p0(Y$.toString(),Y$.toString().length,56886) !== r$){this.runAppend("touchSingleClick",T);}}).apply(S,T);};};f.ChartEngine.prototype.touchDoubleClick=function(o,R,n){var w5,M,i2,M7,Q1;w5="touc";w5+="h";w5+="Double";w5+="Click";if(this.runPrepend(w5,arguments)){return;}if(this.editingAnnotation){return;}h4.I3();if(f.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}s(this,R,n);M=this.activeMarker && this.activeMarker.doubleClick({cx:R,cy:n,panel:this.currentPanel});i2=654167960;M7=-1863029616;h4.a3(1);Q1=h4.N3(0,"2");for(var S0=1;h4.p0(S0.toString(),S0.toString().length,8711) !== i2;S0++){if(+M){this.dispatch("",{stx:this,finger:o,x:R,y:n});}h4.a3(0);Q1+=h4.V1("2",64);}if(h4.a0(Q1.toString(),Q1.toString().length,3175) !== M7){if(!M){this.dispatch("doubleTap",{stx:this,finger:o,x:R,y:n});}}this.runAppend("touchDoubleClick",arguments);};f.ChartEngine.prototype.startProxy=function(l){h4.a5();this.touchPointerType=l.pointerType;if(this.touchPointerType != "touch"){this.mouseMode=!![];return;}this.mouseMode=!({});this.touches[this.touches.length]={pointerId:l.pointerId,pageX:l.clientX,pageY:l.clientY,clientX:l.clientX,clientY:l.clientY};this.changedTouches=[{pointerId:l.pointerId,pageX:l.clientX,pageY:l.clientY,clientX:l.clientX,clientY:l.clientY}];if(this.touches.length == 1){this.gesturePointerId=l.pointerId;}this.touchstart(l);};f.ChartEngine.prototype.moveProxy=function(C){h4.I3();var F7,E4,u3;if(C.pointerType && C.pointerType != "touch"){this.mouseMode=!!1;return;}this.mouseMode=!!0;h4.a3(1);F7=h4.V1(0,"60330025");E4=812155819;u3=2;for(var j_=1;h4.p0(j_.toString(),j_.toString().length,44229) !== F7;j_++){this.touchmove(C);u3+=2;}if(h4.a0(u3.toString(),u3.toString().length,94241) !== E4){this.touchmove(C);}};f.ChartEngine.prototype.endProxy=function(O){var A$,j;A$="to";A$+="u";A$+="ch";if(this.touchPointerType != A$){this.mouseMode=!!"1";return;}this.mouseMode=![];j=this.touches.length;for(var U=0;U < this.touches.length;U++){if(this.touches[U].pointerId == O.pointerId){this.touches.splice(U,1);break;}}if(U == j){this.touches=[];this.grabbingScreen=!({});this.touching=!1;return;}this.changedTouches=[{pointerId:O.pointerId,pageX:O.clientX,pageY:O.clientY,clientX:O.clientX,clientY:O.clientY}];this.touchend(O);};function s(t,N,b){h4.I3();var h;if(!t.layout.crosshair){h4.I0(2);f.ChartEngine.crosshairY=h4.V1(0,"0");f.ChartEngine.crosshairX=+"0";t.cx=t.backOutX(0);t.cy=t.backOutY(+"0");t.findHighlights(null,!!({}));f.ChartEngine.crosshairY=b;f.ChartEngine.crosshairX=N;h=t.container.getBoundingClientRect();t.top=h.top;t.left=h.left;t.right=t.left + t.width;t.bottom=t.top + t.height;t.cx=t.backOutX(N);t.cy=t.backOutY(b);if(t.currentPanel && t.currentPanel.chart.dataSet){t.crosshairTick=t.tickFromPixel(t.cx,t.currentPanel.chart);t.crosshairValue=t.adjustIfNecessary(t.currentPanel,t.crosshairTick,t.valueFromPixel(t.cy,t.currentPanel));}t.headsUpHR();}t.findHighlights(!![]);t.draw();}f.ChartEngine.prototype.msMouseMoveProxy=function(m){var c2,a2,I8;if(this.touches.length || !this.mouseMode){return;}h4.a5();c2=765354899;a2=+"315941809";I8=2;for(var Z3=1;h4.p0(Z3.toString(),Z3.toString().length,9569) !== c2;Z3++){this.mousemove(m);I8+=2;}if(h4.p0(I8.toString(),I8.toString().length,44805) !== a2){this.mousemove(m);}};h4.a5();f.ChartEngine.prototype.msMouseDownProxy=function(L){if(!this.mouseMode){return;}this.mousedown(L);};f.ChartEngine.prototype.msMouseUpProxy=function(z){if(!this.mouseMode){return;}this.mouseup(z);};f.ChartEngine.prototype.iosMouseMoveProxy=function(v){if(this.touching){return;}this.mousemove(v);};f.ChartEngine.prototype.iosMouseDownProxy=function(w){var d0,V9,a8;if(this.touching){this.mouseMode=![];return;}d0=-41313668;V9=248755850;h4.a5();h4.I0(3);a8=h4.V1("2",0);for(var g7=1;h4.a0(g7.toString(),g7.toString().length,27451) !== d0;g7++){this.mouseMode=!"1";this.mousedown(w);a8+=2;}if(h4.a0(a8.toString(),a8.toString().length,87091) !== V9){this.mouseMode=!![];this.mousedown(w);}};f.ChartEngine.prototype.iosMouseUpProxy=function(V){h4.I3();if(this.touching){return;}this.mouseup(V);};f.ChartEngine.prototype.touchmove=function(u){var Q0,v7,d,W9,C5,b4,K0,o0,G9,s8,I,M_,G_,h1,v_,Q$,M8,E,D,f3,K6,s0,c$,Y,n8,W3,p9,f8,G,r,A3,X,q,T8,g0,L3,x7,y8,D1,H5,q3,b0,P_,p8,j$,a,j4,d8,F,T6,k1,e4,A1,U1,W2,g,m8,h7,u5,d_,O9;Q0="f";Q0+="reef";Q0+="orm";v7="pe";v7+="n";if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(f.ChartEngine.ignoreTouch === !![]){return;}d=[];if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(u && u.preventDefault && u.cancelable && this.captureTouchEvents){u.preventDefault();}if(u){u.stopPropagation();}}W9=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=W9;if(this.clicks.e1MS - this.clicks.s1MS < 25){return;}}else {this.clicks.e2MS=W9;if(this.clicks.e2MS - this.clicks.s2MS < 25){return;}}if(!u.pointerType){u.pointerType=this.touchPointerType;}if(f.isSurface){if(this.mouseMode){return;}if(!u.pointerId){u.pointerId=this.gesturePointerId;}for(var A=+"0";A < this.touches.length;A++){if(this.touches[A].pointerId == u.pointerId){C5=Math.abs(this.touches[A].pageX - u.clientX);b4=Math.abs(this.touches[A].pageY - u.clientY);h4.a3(4);K0=Math.sqrt(h4.V1(b4,C5,b4,C5));if(!K0){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < 50){return;}if(this.touches[A].pageX == u.clientX && this.touches[A].pageY == u.clientY){return;}this.touches[A].pageX=this.touches[A].clientX=u.clientX;this.touches[A].pageY=this.touches[A].clientY=u.clientY;break;}}if(A === 0){o0=402185152;G9=212001740;s8=2;for(var G7=1;h4.p0(G7.toString(),G7.toString().length,+"68472") !== o0;G7++){this.movedPrimary=!!"1";s8+=2;}if(h4.a0(s8.toString(),s8.toString().length,58426) !== G9){this.movedPrimary=!"1";}}else {this.movedSecondary=!!1;}if(A == this.touches.length){return;}this.changedTouches=[{pointerId:u.pointerId,pageX:u.clientX,pageY:u.clientY,clientX:u.clientX,clientY:u.clientY}];d=this.touches.length?this.touches:this.changedTouches;}else {d=u.touches;this.changedTouches=u.changedTouches;}if(d.length == +"1"){if(Math.pow(this.clicks.x - d[0].clientX,2) + Math.pow(this.clicks.y - d[0].clientY,2) <= 16){return;}}I=this.crosshairXOffset;M_=this.crosshairYOffset;G_=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";h1=!this.layout.crosshair && !G_ && !this.touchNoPan;if(u.pointerType == v7 || h1 || this.activeDrawing && this.activeDrawing.name == Q0){v_=2000545350;h4.a3(0);Q$=-h4.N3("737594521",0);M8=2;for(var e9=1;h4.a0(e9.toString(),e9.toString().length,66962) !== v_;e9++){I=M_=0;M8+=2;}if(h4.p0(M8.toString(),M8.toString().length,+"32177") !== Q$){h4.I0(1);I=M_=h4.V1(0,"6");}}if(this.runPrepend("touchmove",arguments)){return;}if(f.ChartEngine.resizingPanel){f3=d[+"0"];E=f3.clientX;D=f3.clientY;h4.I0(5);this.mousemoveinner(h4.N3(E,I),h4.N3(D,M_));return;}if(this.moveB != -1){K6=2093623213;s0=869725316;c$=2;for(var a6=1;h4.p0(a6.toString(),a6.toString().length,78694) !== K6;a6++){this.touchMoveTime=new Date();c$+=2;}if(h4.p0(c$.toString(),c$.toString().length,17820) !== s0){this.touchMoveTime=new Date();}}this.moveA=this.moveB;this.moveB=d[0].pageX;if(d.length == 1 && !this.twoFingerStart){n8=d[0];E=n8.clientX;D=n8.clientY;this.pinchingScreen=0;h4.I0(5);this.mousemoveinner(h4.V1(E,I),h4.N3(D,M_));W3=this.whichPanel(D);p9=this.xAxisAsFooter === !![]?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=D <= this.top + p9 && D >= p9 - this.xaxisHeight + this.top && this.insideChart;if(!W3){this.overYAxis=!!"";}else {this.overYAxis=(E >= W3.right || E <= W3.left) && this.insideChart;}}else if(d.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}f8=d[+"0"];G=f8.clientX;r=f8.clientY;A3=d[1];X=A3.clientX;q=A3.clientY;h4.a3(6);Y=Math.sqrt(h4.N3(r,G,q,r,q,X,G,X));h4.a3(7);var t_=h4.V1(5,542,6,15,11);this.pinchingCenter=(Math.min(G,X) - Math.max(G,X)) / t_;T8=Math.round(this.gestureStartDistance - Y);if(h1){h4.I0(8);this.pinchingScreen=h4.N3("5",0);}this.clearPixelCache();if(this.pinchingScreen < 2){if(f.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(G < this.pt.x1 && X < this.pt.x2 || G > this.pt.x1 && X > this.pt.x2 || r < this.pt.y1 && q < this.pt.y2 || r > this.pt.y1 && q > this.pt.y2){g0=-1164418300;L3=-1298317141;x7=2;for(var C1=1;h4.a0(C1.toString(),C1.toString().length,17061) !== g0;C1++){this.pinchingScreen=+"6";x7+=2;}if(h4.a0(x7.toString(),x7.toString().length,"86566" << 64) !== L3){this.pinchingScreen=6;}this.pinchingScreen=0;}else {this.pinchingScreen++;if(this.pinchingScreen < ("2" ^ 0)){return;}}}this.pt={x1:G,x2:X,y1:r,y2:q};if(this.pinchingScreen === 0){y8="p";y8+="a";y8+="n";this.grabMode=y8;h4.a3(5);this.mousemoveinner(h4.N3(G,I),h4.N3(r,M_));D1=-+"552590033";H5=-+"1479215451";q3=2;for(var w7=1;h4.p0(w7.toString(),w7.toString().length,92149) !== D1;w7++){this.gestureStartDistance=Y;q3+=2;}if(h4.a0(q3.toString(),q3.toString().length,77225) !== H5){this.gestureStartDistance=Y;}}else {b0=Math.asin((Math.max(q,r) - Math.min(q,r)) / Y);if(Math.abs(T8) < 12 && !h1){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {P_=-787296812;p8=1635518161;j$=2;for(var F9=1;h4.p0(F9.toString(),F9.toString().length,5100) !== P_;F9++){this.moveCount=5;j$+=2;}if(h4.a0(j$.toString(),j$.toString().length,27857) !== p8){this.moveCount=+"0";}}if(b0 < ("1" | 1) || !this.goneVertical && b0 < +"1.37"){if(!this.currentPanel){return;}a=this.currentPanel.chart;this.goneVertical=!({});Y=this.pt.x2 - this.pt.x1;j4=this.grabStartValues.t2 - this.grabStartValues.t1;h4.I0(9);var o_=h4.N3(19,1,22,19,399);d8=this.grabStartValues.t1 + j4 / o_;h4.a3(10);F=h4.V1(Y,j4);if(a.allowScrollFuture === !1 && a.allowScrollPast === !({})){F=Math.max(F,a.width / a.dataSet.length);}T6=this.layout.candleWidth;this.setCandleWidth(F,a);if(a.maxTicks < this.minimumZoomTicks){this.setCandleWidth(T6,a);return;}this.micropixels=0;k1=this.pixelFromTick(Math.round(d8),a);h4.a3(3);var b8=h4.N3(28,26);e4=this.pt.x1 - this.left + Math.round(Y / b8);h4.I0(3);A1=h4.N3(k1,e4);h4.I0(10);U1=h4.V1(A1,F);W2=Math.round(U1);a.scroll-=W2;h4.a3(3);this.microscroll=h4.V1(W2,U1);this.micropixels=F * this.microscroll;this.draw();}else {g=this.grabStartYAxis;this.goneVertical=!!1;if(g){g.zoom=this.grabStartZoom + (this.gestureStartDistance - Y);if(this.grabStartZoom < g.height){if(g.zoom >= g.height){h4.I0(3);var y7=h4.V1(20,19);g.zoom=g.height - y7;}}else {if(g.zoom <= g.height){h4.I0(11);var E1=h4.V1(19,4,9,113);g.zoom=g.height + E1;}}this.draw();;}}this.updateChartAccessories();}}else if(d.length == 3 && f.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}m8=-297737632;h7=+"2029516429";u5=2;for(var H_=1;h4.p0(H_.toString(),H_.toString().length,35182) !== m8;H_++){d_=d[8];u5+=2;}if(h4.p0(u5.toString(),u5.toString().length,86972) !== h7){h4.I0(8);d_=d[h4.V1("0",0)];}O9=d_.clientX;Y=this.grabStartX - O9;h4.a3(12);var e8=h4.V1(5,15,35,6);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(Y / e8);if(this.grabEndPeriodicity < 1){this.grabEndPeriodicity=1;}}this.runAppend("touchmove",arguments);};f.ChartEngine.prototype.touchstart=function(y9){var R8,G4,L4,o3,O5,i8,e5,C$,s4,x$,k4,m_,N1,i3,v8,a4,a7,h3,C6,d2,q7,a9,f0,m0,i0,Z4,o7,r_,T0,c7,Y3;R8="to";R8+="uchstart";G4="pe";G4+="n";if(f.ChartEngine.ignoreTouch){return;}if(f.isSurface){this.movedPrimary=!({});this.movedSecondary=!!"";}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!!1;this.touches=y9.touches;this.changedTouches=y9.changedTouches;}if(f.ChartEngine.resizingPanel){return;}L4=this.crosshairXOffset;o3=this.crosshairYOffset;if(this.touchPointerType == G4){L4=o3=0;}if(this.runPrepend(R8,arguments)){return;}if(this.manageTouchAndMouse && y9 && y9.preventDefault && y9.cancelable && this.captureTouchEvents){y9.preventDefault();}this.hasDragged=!({});this.doubleFingerMoves=0;this.moveCount=0;this.twoFingerStart=!"1";if(this.touches.length == 1 || this.touches.length == 2){this.touchMoveTime=Date.now();x$=this.touches[0];e5=x$.clientX;C$=x$.clientY;this.moveA=e5;this.moveB=-1;if(this.openDialog === ""){this.registerPointerEvent({x:e5,y:C$,time:this.touchMoveTime},"down");if(this.changedTouches.length == +"1" && !this.isDoubleClick(!"")){f.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-("1" - 0),e2MS:-+"1",x:this.changedTouches[0].pageX,y:this.changedTouches["0" * 1].pageY});}}k4=this.container.getBoundingClientRect();this.top=k4.top;this.left=k4.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == 1){m_=this.backOutY(C$);this.currentPanel=this.whichPanel(m_);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}s4=this.currentPanel;if(e5 >= this.left && e5 <= this.right && C$ >= this.top && C$ <= this.bottom){this.insideChart=!!"1";N1=this.xAxisAsFooter === !![]?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=C$ <= this.top + N1 && C$ >= this.top + N1 - this.xaxisHeight;this.overYAxis=e5 >= this.left + s4.right || e5 <= this.left + s4.left;i3=-1;this.cy=this.backOutY(C$);this.cx=this.backOutX(e5);this.crosshairTick=this.tickFromPixel(this.cx,s4.chart);this.crosshairValue=this.adjustIfNecessary(s4,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var O$=0;O$ < this.drawingObjects.length;O$++){v8=this.drawingObjects[O$];if(v8.highlighted){if(i3 < 0){i3=O$;}a4=v8.highlighted;this.findHighlights(!!1);if(O$ == i3 && v8.highlighted && !v8.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(v8);;}else {this.findHighlights(!!"",!!1);;}return;}this.anyHighlighted=!"";v8.highlighted=a4;}}}else {this.insideChart=!({});}a7=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !a7 && this.insideChart && !this.touchNoPan){L4=o3=0;var {baselineHelper:p4}=this;if(p4.size){if(this.findBaselineHandle(y9,!!({}))){return;}}if(this.controls.anchorHandles){h3=Object.values(this.controls.anchorHandles);C6=!!0;for(var Q7=0;Q7 < h3.length;Q7++){d2=h3[Q7];var {handle:M$, sd:j0}=d2;q7=this.resolveX(this.cx);a9=this.resolveY(this.cy);var {left:U9, top:J2, right:d5, bottom:g9}=M$.getBoundingClientRect();U9-=10;d5+=10;if(f.boxIntersects(U9,J2,d5,g9,q7,a9,q7,a9)){d2.highlighted=!0;this.repositioningAnchorSelector={sd:j0};M$.classList.add("stx-grab");C6=!!1;}if(d2.highlighted === !!({})){d2.highlighted=!({});}}if(C6){return;}}for(O5 in this.panels){i8=this.panels[O5];if(i8.highlighted){this.grabHandle(i8);return;}}this.grabbingScreen=!!({});if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}s4.chart.spanLock=![];this.yToleranceBroken=!!"";h4.a3(5);this.grabStartX=h4.V1(e5,L4);h4.I0(5);this.grabStartY=h4.N3(C$,o3);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=s4.chart.scroll;this.grabStartScrollY=s4.yAxis.scroll;f0=-1330585512;m0=-908777377;i0=2;for(var f$=1;h4.p0(f$.toString(),f$.toString().length,78943) !== f0;f$++){this.grabStartPanel=this.currentPanel;i0+=2;}if(h4.a0(i0.toString(),i0.toString().length,39213) !== m0){this.grabStartPanel=this.currentPanel;}if(this.swipeStart){this.swipeStart(s4.chart);}this.grabStartYAxis=this.whichYAxis(s4,this.backOutX(e5));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(p6){return function(){p6.grabbingHand();};})(this),"100" * 1);}else {this.grabbingScreen=!!"";if(this.insideChart && s4.subholder === y9.target){Z4=this.currentVectorParameters.vectorType;if(f.Drawing && Z4 && f.Drawing[Z4] && new f.Drawing[Z4]().dragToDraw){this.userPointerDown=!![];f.ChartEngine.crosshairX=e5;f.ChartEngine.crosshairY=C$;if(s4 && s4.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(f.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(s4,this.crosshairTick,this.valueFromPixel(this.backOutY(f.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(s4,this.backOutX(e5),this.backOutY(C$));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !a7 && s4.subholder === y9.target){h4.I0(5);this.mousemoveinner(h4.V1(e5,L4),h4.N3(C$,o3));}}if(this.touches.length == 2){this.cancelLongHold=!!({});this.swipe.end=!![];if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}o7=this.touches[1];r_=o7.clientX;T0=o7.clientY;for(O5 in this.panels){i8=this.panels[O5];if(i8.highlighted){this.grabHandle(i8);return;}}s4=this.currentPanel;h4.a3(6);this.gestureStartDistance=Math.sqrt(h4.N3(C$,e5,T0,C$,T0,r_,e5,r_));this.pt={x1:e5,x2:r_,y1:C$,y2:T0};this.grabbingScreen=!![];if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}s4.chart.spanLock=![];h4.I0(5);this.grabStartX=h4.N3(e5,L4);h4.a3(5);this.grabStartY=h4.N3(C$,o3);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=s4.chart.scroll;this.grabStartScrollY=s4.yAxis.scroll;this.grabStartPanel=s4;if(this.swipeStart){this.swipeStart(s4.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(s4,this.backOutX((e5 + r_) / +"2")) || s4.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,s4),y2:this.valueFromPixel(this.pt.y2 - this.top,s4),t1:this.tickFromPixel(this.pt.x1 - this.left,s4.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,s4.chart)};this.twoFingerStart=!![];setTimeout((function(e3){h4.a5();return function(){e3.grabbingHand();};})(this),+"100");}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}c7=this.touches[0];Y3=c7.clientX;this.grabStartX=Y3;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=!1;if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}this.runAppend("touchstart",arguments);};f.ChartEngine.prototype.touchend=function(z7){var Z9,u1,B5,h8,o2,j7,y_,I$,B1,s1,P$,d6,w9,I1,U4,X2,h5,e2,W7,x3,c6,n_,H6,V3,n0,p1;if(f.ChartEngine.ignoreTouch){return;}this.swipe.end=!!1;if(f.isSurface){}else {this.touches=z7.touches;this.changedTouches=z7.changedTouches;}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!!({});if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!({});}}}if(this.touches.length){this.grabStartX=-+"1";this.grabStartY=-1;}Z9=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(u_){h4.I3();return function(){u_.touching=!1;};})(this),500);if(f.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=![];this.grabbingScreen=![];this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(f.ChartEngine.resizingPanel){return;}}h4.I0(3);var q$=h4.N3(2,1);u1=this.touches.length + q$;if(this.changedTouches.length == 1){if(this.repositioningDrawing){this.changeOccurred("vector");f.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();B5=1913601023;h8=1344712450;o2=+"2";for(var v6=1;h4.a0(v6.toString(),v6.toString().length,14072) !== B5;v6++){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!!({}));}return;}if(h4.a0(o2.toString(),o2.toString().length,45407) !== h8){if(-this.layout.crosshair || -this.currentVectorParameters.vectorType){this.findHighlights(!!({}),!!0);}return;}}if(this.repositioningBaseline){j7="s";j7+="tx-g";j7+="ra";j7+="b";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove(j7);y_=this.mainSeriesRenderer || ({});if(y_.params && y_.params.baseline && y_.params.type != "mountain"){;}this.draw();return;}if(this.repositioningAnchorSelector){f.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:f1})=>{var c1;c1="s";h4.a5();c1+="t";c1+="x-gr";c1+="ab";return f1.classList.remove(c1);});return;}I$=-1565468804;B1=570611140;s1=+"2";for(var v2=1;h4.p0(v2.toString(),v2.toString().length,45263) !== I$;v2++){P$=Date.now();h4.I0(8);s1+=h4.V1("2",32);}if(h4.a0(s1.toString(),s1.toString().length,19348) !== B1){P$=Date.now();}P$=Date.now();if(this.openDialog === "" && z7.changedTouches.length){h4.I0(13);d6=z7.changedTouches[h4.V1(1,"0")];this.registerPointerEvent({x:d6.clientX,y:d6.clientY,time:P$},"up");}if(this.clicks.s2MS == -1){w9=1485403700;I1=553838161;U4=2;for(var e7=1;h4.p0(e7.toString(),e7.toString().length,36591) !== w9;e7++){this.clicks.e1MS=P$;U4+=2;}if(h4.p0(U4.toString(),U4.toString().length,54408) !== I1){this.clicks.e1MS=P$;}X2=this.currentVectorParameters.vectorType;if(!f.Drawing || !X2 || !f.Drawing[X2] || !new f.Drawing[X2]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < 750 && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(u1,this.clicks.x,this.clicks.y),this.doubleClickTime + ("1" | 1));;}else {this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};}}this.userPointerDown=![];h5=this.backOutY(this.changedTouches[0].pageY) + this.crosshairYOffset;e2=this.backOutX(this.changedTouches[+"0"].pageX) + this.crosshairXOffset;W7=this.currentPanel;x3=W7 && W7.subholder === z7.target;if(f.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && x3){this.drawingClick(W7,e2,h5);return;}if(this.isDoubleClick(!!({})) && (x3 || this.overYAxis || this.overXAxis)){this.touchDoubleClick(u1,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=P$;this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -1 && !isNaN(this.grabEndPeriodicity)){if(f.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}c6=81259489;n_=2026353704;H6=2;for(var P5=1;h4.a0(P5.toString(),P5.toString().length,54058) !== c6;P5++){this.grabEndPeriodicity=-1;H6+=2;}if(h4.a0(H6.toString(),H6.toString().length,40638) !== n_){this.grabEndPeriodicity=+2;}}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && u1 == 1 || this.twoFingerStart && !Z9 && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(!({}),!!({}));}if(Z9 && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!"1");}}if(!this.touches.length){V3=-970171387;n0=1017723725;p1=2;for(var z6="1" ^ 0;h4.a0(z6.toString(),z6.toString().length,"91112" >> 64) !== V3;z6++){this.twoFingerStart=!!({});p1+=2;}if(h4.a0(p1.toString(),p1.toString().length,9773) !== n0){this.twoFingerStart=!({});}}this.runAppend("touchend",arguments);};k=!1;f.ChartEngine.prototype.mousemoveinner=f.ChartEngine.prototype.mousemoveinner || (function(i_,F1){var Z7;Z7="touch feature requires act";Z7+="ivating m";Z7+="ov";Z7+="ement feature.";if(!k){console.error(Z7);}k=!!({});});};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -D8Gax[50848]=(function(){var F=2;for(;F !== 9;){switch(F){case 1:return globalThis;break;case 5:var J;try{var D=2;for(;D !== 6;){switch(D){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];D=6;break;case 3:throw "";D=9;break;case 4:D=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;D=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var f=2;for(;f !== 1;){switch(f){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;D=5;break;}}}catch(q){J=window;}return J;break;case 2:F=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();G5(D8Gax[50848]);D8Gax.H3=function(){return typeof D8Gax[356525].K9OPwob === 'function'?D8Gax[356525].K9OPwob.apply(D8Gax[356525],arguments):D8Gax[356525].K9OPwob;};D8Gax.l5=function(){return typeof D8Gax[356525].n8eaqyR === 'function'?D8Gax[356525].n8eaqyR.apply(D8Gax[356525],arguments):D8Gax[356525].n8eaqyR;};D8Gax.h9=function(){return typeof D8Gax[150036].Z7m4YCh === 'function'?D8Gax[150036].Z7m4YCh.apply(D8Gax[150036],arguments):D8Gax[150036].Z7m4YCh;};function G5(j0f){function i$(d44){var D3h=2;for(;D3h !== 5;){switch(D3h){case 2:var w4f=[arguments];return w4f[0][0];break;}}}function l6(i6M){var v7K=2;for(;v7K !== 5;){switch(v7K){case 2:var n9p=[arguments];return n9p[0][0].RegExp;break;}}}var W72=2;for(;W72 !== 123;){switch(W72){case 133:x2(l4,"fromCharCode",N0h[14],N0h[71]);W72=132;break;case 135:x2(l4,"charCodeAt",N0h[66],N0h[93]);W72=134;break;case 15:N0h[49]="";N0h[49]="";N0h[46]="b";N0h[49]="5N";W72=24;break;case 101:N0h[30]+=N0h[39];N0h[76]=N0h[27];N0h[76]+=N0h[98];N0h[76]+=N0h[31];W72=97;break;case 24:N0h[20]="";N0h[20]="$Lb";N0h[90]="";N0h[90]="r";N0h[70]="oc0";N0h[75]="";W72=33;break;case 53:N0h[67]="u";N0h[73]="";N0h[73]="99m";N0h[78]="";N0h[28]="Zn";N0h[19]="t";W72=47;break;case 131:x2(l4,"replace",N0h[66],N0h[77]);W72=130;break;case 128:x2(i$,N0h[76],N0h[14],N0h[30]);W72=127;break;case 38:N0h[64]="al";N0h[98]="imi";N0h[67]="";N0h[31]="ze";W72=53;break;case 78:N0h[24]+=N0h[67];N0h[24]+=N0h[64];N0h[30]=N0h[55];N0h[30]+=N0h[72];W72=101;break;case 111:N0h[38]=N0h[7];N0h[38]+=N0h[46];N0h[38]+=N0h[5];N0h[93]=N0h[2];N0h[93]+=N0h[9];W72=106;break;case 66:N0h[17]=N0h[82];N0h[17]+=N0h[96];N0h[17]+=N0h[78];N0h[25]=N0h[41];N0h[25]+=N0h[42];N0h[25]+=N0h[34];N0h[61]=N0h[81];W72=84;break;case 33:N0h[75]="0";N0h[47]="";N0h[47]="Y";N0h[69]="";W72=29;break;case 74:N0h[35]="R74I";N0h[66]=1;N0h[14]=5;N0h[14]=5;W72=70;break;case 2:var N0h=[arguments];N0h[3]="";N0h[3]="G";N0h[9]="";W72=3;break;case 130:x2(i9,"map",N0h[66],N0h[52]);W72=129;break;case 63:N0h[94]="__resid";N0h[78]="O";N0h[72]="c";N0h[81]="__ab";W72=59;break;case 97:N0h[26]=N0h[58];N0h[26]+=N0h[11];N0h[26]+=N0h[28];N0h[52]=N0h[69];W72=93;break;case 125:x2(i9,"push",N0h[66],N0h[17]);W72=124;break;case 59:N0h[42]="0RTA";N0h[96]="";N0h[96]="s";N0h[95]="y";W72=55;break;case 124:x2(t_,"apply",N0h[66],N0h[86]);W72=123;break;case 126:x2(i$,N0h[61],N0h[14],N0h[25]);W72=125;break;case 20:N0h[1]="";N0h[1]="9";N0h[5]="V";N0h[6]="";N0h[6]="a";W72=15;break;case 13:N0h[8]="2Nf";N0h[4]="";N0h[4]="";N0h[4]="z";W72=20;break;case 115:N0h[48]+=N0h[70];N0h[71]=N0h[4];N0h[71]+=N0h[8];N0h[71]+=N0h[1];W72=111;break;case 93:N0h[52]+=N0h[47];N0h[52]+=N0h[75];N0h[77]=N0h[90];N0h[77]+=N0h[20];N0h[77]+=N0h[49];N0h[48]=N0h[6];N0h[48]+=N0h[1];W72=115;break;case 127:x2(i$,N0h[24],N0h[14],N0h[54]);W72=126;break;case 47:N0h[27]="__opt";N0h[41]="q";N0h[29]="strac";N0h[34]="B";N0h[50]="b7";W72=63;break;case 3:N0h[9]="$Bm";N0h[2]="";N0h[2]="k";N0h[7]="";N0h[7]="m0d";N0h[8]="";W72=13;break;case 132:x2(l4,"substring",N0h[66],N0h[48]);W72=131;break;case 42:N0h[58]="I";N0h[39]="zRd";N0h[64]="";N0h[55]="Z1";W72=38;break;case 84:N0h[61]+=N0h[29];N0h[61]+=N0h[19];N0h[54]=N0h[50];N0h[54]+=N0h[72];N0h[54]+=N0h[73];N0h[24]=N0h[94];W72=78;break;case 105:var x2=function(w4G,p$J,b5V,p2r){var q0T=2;for(;q0T !== 5;){switch(q0T){case 2:var D66=[arguments];F2(N0h[0][0],D66[0][0],D66[0][1],D66[0][2],D66[0][3]);q0T=5;break;}}};W72=135;break;case 106:N0h[93]+=N0h[3];W72=105;break;case 55:N0h[82]="k4Gd";N0h[92]="";N0h[92]="4";N0h[35]="";W72=74;break;case 134:x2(i$,"String",N0h[14],N0h[38]);W72=133;break;case 29:N0h[69]="p6s_";N0h[11]="";N0h[11]="$py";N0h[39]="";W72=42;break;case 129:x2(l6,"test",N0h[66],N0h[26]);W72=128;break;case 70:N0h[14]=0;N0h[86]=N0h[35];N0h[86]+=N0h[92];N0h[86]+=N0h[95];W72=66;break;}}function t_(G8L){var w2d=2;for(;w2d !== 5;){switch(w2d){case 2:var Q04=[arguments];return Q04[0][0].Function;break;}}}function l4(y74){var I3$=2;for(;I3$ !== 5;){switch(I3$){case 2:var t$A=[arguments];return t$A[0][0].String;break;}}}function F2(e5w,B1K,n21,S9C,t_j){var B33=2;for(;B33 !== 13;){switch(B33){case 2:var R86=[arguments];R86[2]="";R86[2]="operty";R86[3]="";B33=3;break;case 6:R86[4]=false;try{var Y0M=2;for(;Y0M !== 13;){switch(Y0M){case 14:try{var g_$=2;for(;g_$ !== 3;){switch(g_$){case 2:R86[7]=R86[6];R86[7]+=R86[3];R86[7]+=R86[2];R86[0][0].Object[R86[7]](R86[5],R86[0][4],R86[8]);g_$=3;break;}}}catch(F1){}Y0M=13;break;case 9:R86[5][R86[0][4]]=R86[5][R86[0][2]];R86[8].set=function(R6c){var t1i=2;for(;t1i !== 5;){switch(t1i){case 2:var k87=[arguments];R86[5][R86[0][2]]=k87[0][0];t1i=5;break;}}};R86[8].get=function(){var O8a=2;for(;O8a !== 14;){switch(O8a){case 2:var K42=[arguments];K42[7]="ed";K42[8]="";K42[8]="fin";O8a=3;break;case 3:K42[9]="unde";K42[6]=K42[9];K42[6]+=K42[8];K42[6]+=K42[7];return typeof R86[5][R86[0][2]] == K42[6]?undefined:R86[5][R86[0][2]];break;}}};R86[8].enumerable=R86[4];Y0M=14;break;case 2:R86[8]={};R86[1]=(1,R86[0][1])(R86[0][0]);R86[5]=[R86[1],R86[1].prototype][R86[0][3]];Y0M=4;break;case 4:Y0M=R86[5].hasOwnProperty(R86[0][4]) && R86[5][R86[0][4]] === R86[5][R86[0][2]]?3:9;break;case 3:return;break;}}}catch(G_){}B33=13;break;case 3:R86[3]="nePr";R86[6]="defi";R86[4]=true;R86[4]=true;B33=6;break;}}}function i9(z2p){var F6O=2;for(;F6O !== 5;){switch(F6O){case 2:var J3t=[arguments];return J3t[0][0].Array;break;}}}}D8Gax[247674]=(function(d9){function W7(Z3){var k2=2;for(;k2 !== 15;){switch(k2){case 9:k2=!B9--?8:7;break;case 8:n6=d9[6];k2=7;break;case 2:var x3,T9,n6,X6,P7,R4,g2;k2=1;break;case 3:T9=30;k2=9;break;case 7:k2=!B9--?6:14;break;case 16:x3=X6 - Z3 > T9;k2=19;break;case 11:R4=(P7 || P7 === 0) && g2(P7,T9);k2=10;break;case 6:X6=n6 && g2(n6,T9);k2=14;break;case 19:return x3;break;case 18:k2=R4 >= 0?17:16;break;case 14:k2=!B9--?13:12;break;case 1:k2=!B9--?5:4;break;case 5:g2=y6[d9[4]];k2=4;break;case 4:k2=!B9--?3:9;break;case 20:x3=Z3 - R4 > T9 && X6 - Z3 > T9;k2=19;break;case 10:k2=R4 >= 0 && X6 >= 0?20:18;break;case 17:x3=Z3 - R4 > T9;k2=19;break;case 12:k2=!B9--?11:10;break;case 13:P7=d9[7];k2=12;break;}}}var R6=2;for(;R6 !== 10;){switch(R6){case 14:d9=d9.p6s_Y0(function(S9){var I_=2;for(;I_ !== 13;){switch(I_){case 4:var n4=0;I_=3;break;case 5:S5='';I_=4;break;case 6:return;break;case 1:I_=!B9--?5:4;break;case 3:I_=n4 < S9.length?9:7;break;case 9:S5+=y6[Z7][i3](S9[n4] + 100);I_=8;break;case 14:return S5;break;case 7:I_=!S5?6:14;break;case 2:var S5;I_=1;break;case 8:n4++;I_=3;break;}}});R6=13;break;case 7:Z7=z1.r$Lb5N(new y6[T4]("^['-|]"),'S');R6=6;break;case 5:y6=D8Gax[50848];R6=4;break;case 9:z1=typeof i3;R6=8;break;case 2:var y6,z1,Z7,B9;R6=1;break;case 1:R6=!B9--?5:4;break;case 11:return {A$uBw0P:function(L9){var Z1=2;for(;Z1 !== 6;){switch(Z1){case 9:h7=W2 + 60000;Z1=8;break;case 3:Z1=!B9--?9:8;break;case 4:f9=W7(W2);Z1=3;break;case 5:Z1=!B9--?4:3;break;case 1:Z1=W2 > h7?5:8;break;case 2:var W2=new y6[d9[0]]()[d9[1]]();Z1=1;break;case 8:var g5=(function(F9,q4){var K2=2;for(;K2 !== 10;){switch(K2){case 8:var D_=y6[q4[4]](F9[q4[2]](c2),16)[q4[3]](2);var q_=D_[q4[2]](D_[q4[5]] - 1);K2=6;break;case 4:q4=d9;K2=3;break;case 13:c2++;K2=9;break;case 5:K2=typeof q4 === 'undefined' && typeof d9 !== 'undefined'?4:3;break;case 6:K2=c2 === 0?14:12;break;case 3:var W9,c2=0;K2=9;break;case 11:return W9;break;case 1:F9=L9;K2=5;break;case 2:K2=typeof F9 === 'undefined' && typeof L9 !== 'undefined'?1:5;break;case 9:K2=c2 < F9[q4[5]]?8:11;break;case 12:W9=W9 ^ q_;K2=13;break;case 14:W9=q_;K2=13;break;}}})(undefined,undefined);return g5?f9:!f9;break;}}}};break;case 13:R6=!B9--?12:11;break;case 3:R6=!B9--?9:8;break;case 8:R6=!B9--?7:6;break;case 4:var i3='fromCharCode',T4='RegExp';R6=3;break;case 6:R6=!B9--?14:13;break;case 12:var f9,h7=0;R6=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);D8Gax.N9=function(){return typeof D8Gax[150036].q52sdNp === 'function'?D8Gax[150036].q52sdNp.apply(D8Gax[150036],arguments):D8Gax[150036].q52sdNp;};D8Gax[50848].O544=D8Gax;D8Gax.a4=function(){return typeof D8Gax[247674].A$uBw0P === 'function'?D8Gax[247674].A$uBw0P.apply(D8Gax[247674],arguments):D8Gax[247674].A$uBw0P;};D8Gax[150036]=(function(a$){return {q52sdNp:function(){var I6,H$=arguments;switch(a$){case 0:I6=(H$[1] + H$[4]) / H$[0] + H$[2] - H$[3];break;case 14:I6=H$[2] - H$[1] - H$[3] + H$[0];break;case 16:I6=H$[0] >> H$[1];break;case 5:I6=(H$[3] - H$[4]) * H$[0] * H$[1] - H$[2];break;case 15:I6=-H$[0] * H$[2] + H$[1];break;case 13:I6=H$[2] / H$[1] * H$[3] / H$[0] + H$[4];break;case 7:I6=-H$[1] + H$[2] - H$[0];break;case 1:I6=-H$[0] + H$[1];break;case 17:I6=H$[1] + +H$[0];break;case 8:I6=H$[0] | H$[1];break;case 6:I6=(H$[2] - H$[4]) * H$[1] / (H$[0] + H$[3]);break;case 4:I6=H$[0] - H$[1];break;case 12:I6=H$[1] - H$[2] + H$[0];break;case 10:I6=H$[1] + H$[0];break;case 11:I6=-H$[0] - H$[3] - H$[1] + H$[2];break;case 3:I6=-H$[3] * H$[0] / H$[2] + H$[1];break;case 9:I6=H$[0] * H$[1];break;case 2:I6=H$[1] ^ H$[0];break;}return I6;},Z7m4YCh:function(B_){a$=B_;}};})();D8Gax.C0=function(){return typeof D8Gax[150036].q52sdNp === 'function'?D8Gax[150036].q52sdNp.apply(D8Gax[150036],arguments):D8Gax[150036].q52sdNp;};D8Gax.c0=function(){return typeof D8Gax[459327].w4xZ2A7 === 'function'?D8Gax[459327].w4xZ2A7.apply(D8Gax[459327],arguments):D8Gax[459327].w4xZ2A7;};D8Gax[158192]="ea2";D8Gax[345871]="XHs";D8Gax.K7=function(){return typeof D8Gax[247674].A$uBw0P === 'function'?D8Gax[247674].A$uBw0P.apply(D8Gax[247674],arguments):D8Gax[247674].A$uBw0P;};D8Gax[356525]=(function(){function U_(h$){var P5=2;for(;P5 !== 7;){switch(P5){case 3:Q4+=m0dbV.z2Nf9(h$[v0] - e0 + 120);P5=9;break;case 5:var v0=0;P5=4;break;case 9:v0++;P5=4;break;case 4:P5=v0 < h$.length?3:8;break;case 2:var e0=2;var Q4='';P5=5;break;case 8:return Q4;break;}}}function j5(l$,j4,w5,H_,r6){var l2=2;for(;l2 !== 15;){switch(l2){case 6:return D8Gax.c0(g$,r3,w5);break;case 9:l2=H_ > 0?8:19;break;case 19:l2=l$ === null || l$ <= 0?18:14;break;case 8:g$=O3.a9oc0(l$,H_);r3=g$.length;l2=6;break;case 2:var g$,r3,O3,W6;W6=Q9[U_([-10,-7,-19,-21,-2,-13,-7,-8])];!V8 && (V8=typeof W6 !== "undefined"?W6[U_([-14,-7,-3,-2,-8,-21,-9,-17])] || ' ':"");!b_ && (b_=typeof W6 !== "undefined"?W6[U_([-14,-4,-17,-16])]:"");l2=3;break;case 11:g$=O3.a9oc0(e_,O3.length);r3=g$.length;return D8Gax.c0(g$,r3,w5);break;case 12:return false;break;case 16:return D8Gax.c0(g$,r3,w5);break;case 3:O3=r6?b_:V8;l2=9;break;case 18:g$=O3.a9oc0(0,O3.length);r3=g$.length;l2=16;break;case 13:l2=j4 && e_ > 0 && O3.k$BmG(e_ - 1) !== 46?12:11;break;case 14:var e_=O3.length - l$;l2=13;break;}}}var M_=2;for(;M_ !== 4;){switch(M_){case 2:var Q9=D8Gax[50848];var V8,b_;return {K9OPwob:function(B2,f$,A7,e7){var T_=2;for(;T_ !== 1;){switch(T_){case 2:return j5(B2,f$,A7,e7);break;}}},n8eaqyR:function(l_,Y$,d$,R2){var b3=2;for(;b3 !== 1;){switch(b3){case 2:return j5(l_,Y$,d$,R2,true);break;}}}};break;}}})();D8Gax.O2=function(){return typeof D8Gax[220353].V3nM4Cy === 'function'?D8Gax[220353].V3nM4Cy.apply(D8Gax[220353],arguments):D8Gax[220353].V3nM4Cy;};D8Gax.e$=function(){return typeof D8Gax[459327].w4xZ2A7 === 'function'?D8Gax[459327].w4xZ2A7.apply(D8Gax[459327],arguments):D8Gax[459327].w4xZ2A7;};D8Gax[220353]=(function(){var S3=2;for(;S3 !== 9;){switch(S3){case 3:return y3[1];break;case 2:var y3=[arguments];y3[3]=undefined;y3[1]={};y3[1].V3nM4Cy=function(){var p8=2;for(;p8 !== 90;){switch(p8){case 26:p9[52].r9=['U3'];p9[52].e1=function(){var z6=function(){return ['a','a'].join();};var i5=!(/(\x5b|\u005d)/).I$pyZn(z6 + []);return i5;};p9[35]=p9[52];p9[63]={};p8=22;break;case 4:p9[9]=[];p9[1]={};p8=9;break;case 70:p9[30]++;p8=57;break;case 2:var p9=[arguments];p8=1;break;case 32:p9[80].e1=function(){var Y_=function(){return ('c').indexOf('c');};var N1=!(/['"]/).I$pyZn(Y_ + []);return N1;};p9[70]=p9[80];p9[32]={};p8=29;break;case 68:p8=75?68:67;break;case 22:p9[63].r9=['W3'];p9[63].e1=function(){var r5=typeof b7c99m === 'function';return r5;};p9[16]=p9[63];p9[80]={};p9[80].r9=['U3'];p8=32;break;case 29:p9[32].r9=['U3'];p9[32].e1=function(){var I9=function(){return ('x').toUpperCase();};var h8=(/\x58/).I$pyZn(I9 + []);return h8;};p9[61]=p9[32];p8=43;break;case 62:p9[22]='r9';p9[23]='p_';p9[46]='e1';p9[75]='C5';p8=58;break;case 56:p9[78]=p9[9][p9[30]];try{p9[50]=p9[78][p9[46]]()?p9[53]:p9[18];}catch(r$){p9[50]=p9[18];}p8=77;break;case 52:p9[9].k4GdsO(p9[14]);p9[9].k4GdsO(p9[47]);p9[9].k4GdsO(p9[70]);p9[9].k4GdsO(p9[61]);p9[9].k4GdsO(p9[35]);p9[9].k4GdsO(p9[8]);p9[9].k4GdsO(p9[2]);p8=45;break;case 16:p9[7].e1=function(){var i_=function(){return ('aaaa').padEnd(5,'a');};var B4=(/\u0061\u0061\u0061\u0061\x61/).I$pyZn(i_ + []);return B4;};p9[8]=p9[7];p9[52]={};p8=26;break;case 54:p9[9].k4GdsO(p9[6]);p9[9].k4GdsO(p9[16]);p8=52;break;case 45:p9[9].k4GdsO(p9[4]);p9[28]=[];p9[53]='Z$';p9[18]='B5';p8=62;break;case 75:p9[85]={};p9[85][p9[75]]=p9[78][p9[22]][p9[93]];p9[85][p9[23]]=p9[50];p9[28].k4GdsO(p9[85]);p8=71;break;case 58:p9[30]=0;p8=57;break;case 69:p8=(function(c3){var w8=2;for(;w8 !== 22;){switch(w8){case 15:f6[3]=f6[1][f6[2]];f6[9]=f6[5][f6[3]].h / f6[5][f6[3]].t;w8=26;break;case 6:f6[4]=f6[0][0][f6[2]];w8=14;break;case 18:f6[8]=false;w8=17;break;case 13:f6[5][f6[4][p9[75]]]=(function(){var p7=2;for(;p7 !== 9;){switch(p7){case 2:var k_=[arguments];k_[4]={};k_[4].h=0;k_[4].t=0;return k_[4];break;}}}).R74I4y(this,arguments);w8=12;break;case 17:f6[2]=0;w8=16;break;case 2:var f6=[arguments];w8=1;break;case 26:w8=f6[9] >= 0.5?25:24;break;case 1:w8=f6[0][0].length === 0?5:4;break;case 16:w8=f6[2] < f6[1].length?15:23;break;case 7:w8=f6[2] < f6[0][0].length?6:18;break;case 4:f6[5]={};f6[1]=[];f6[2]=0;w8=8;break;case 19:f6[2]++;w8=7;break;case 23:return f6[8];break;case 20:f6[5][f6[4][p9[75]]].h+=true;w8=19;break;case 12:f6[1].k4GdsO(f6[4][p9[75]]);w8=11;break;case 14:w8=typeof f6[5][f6[4][p9[75]]] === 'undefined'?13:11;break;case 11:f6[5][f6[4][p9[75]]].t+=true;w8=10;break;case 5:return;break;case 8:f6[2]=0;w8=7;break;case 24:f6[2]++;w8=16;break;case 25:f6[8]=true;w8=24;break;case 10:w8=f6[4][p9[23]] === p9[53]?20:19;break;}}})(p9[28])?68:67;break;case 9:p9[1].r9=['U3'];p9[1].e1=function(){var C6=function(){return ('aa').endsWith('a');};var Q1=(/\u0074\u0072\x75\x65/).I$pyZn(C6 + []);return Q1;};p9[6]=p9[1];p9[5]={};p9[5].r9=['U3'];p9[5].e1=function(){var U1=function(){return unescape('%3D');};var j1=(/\u003d/).I$pyZn(U1 + []);return j1;};p9[4]=p9[5];p8=11;break;case 71:p9[93]++;p8=76;break;case 57:p8=p9[30] < p9[9].length?56:69;break;case 76:p8=p9[93] < p9[78][p9[22]].length?75:70;break;case 19:p9[2]=p9[3];p9[7]={};p9[7].r9=['U3'];p8=16;break;case 11:p9[3]={};p9[3].r9=['W3'];p9[3].e1=function(){var T5=typeof Z1czRd === 'function';return T5;};p8=19;break;case 39:p9[29]={};p9[29].r9=['W3'];p9[29].e1=function(){var b4=false;var o5=[];try{for(var E2 in console){o5.k4GdsO(E2);}b4=o5.length === 0;}catch(X1){}var N2=b4;return N2;};p9[47]=p9[29];p8=54;break;case 67:y3[3]=33;return 80;break;case 5:return 48;break;case 1:p8=y3[3]?5:4;break;case 77:p9[93]=0;p8=76;break;case 43:p9[34]={};p9[34].r9=['W3'];p9[34].e1=function(){var K4=typeof q0RTAB === 'function';return K4;};p9[14]=p9[34];p8=39;break;}}};S3=3;break;}}})();D8Gax[459327]=(function(){var x0=function(o4,b1){var Y3=b1 & 0xffff;var o$=b1 - Y3;return (o$ * o4 | 0) + (Y3 * o4 | 0) | 0;},B3=function(Y0,P1,C$){var E5=0xcc9e2d51,A6=0x1b873593;var q8=C$;var q$=P1 & ~0x3;for(var N7=0;N7 < q$;N7+=4){var B0=Y0.k$BmG(N7) & 0xff | (Y0.k$BmG(N7 + 1) & 0xff) << 8 | (Y0.k$BmG(N7 + 2) & 0xff) << 16 | (Y0.k$BmG(N7 + 3) & 0xff) << 24;B0=x0(B0,E5);B0=(B0 & 0x1ffff) << 15 | B0 >>> 17;B0=x0(B0,A6);q8^=B0;q8=(q8 & 0x7ffff) << 13 | q8 >>> 19;q8=q8 * 5 + 0xe6546b64 | 0;}B0=0;switch(P1 % 4){case 3:B0=(Y0.k$BmG(q$ + 2) & 0xff) << 16;case 2:B0|=(Y0.k$BmG(q$ + 1) & 0xff) << 8;case 1:B0|=Y0.k$BmG(q$) & 0xff;B0=x0(B0,E5);B0=(B0 & 0x1ffff) << 15 | B0 >>> 17;B0=x0(B0,A6);q8^=B0;}q8^=P1;q8^=q8 >>> 16;q8=x0(q8,0x85ebca6b);q8^=q8 >>> 13;q8=x0(q8,0xc2b2ae35);q8^=q8 >>> 16;return q8;};return {w4xZ2A7:B3};})();D8Gax.d5=function(){return typeof D8Gax[356525].K9OPwob === 'function'?D8Gax[356525].K9OPwob.apply(D8Gax[356525],arguments):D8Gax[356525].K9OPwob;};D8Gax.M4=function(){return typeof D8Gax[356525].n8eaqyR === 'function'?D8Gax[356525].n8eaqyR.apply(D8Gax[356525],arguments):D8Gax[356525].n8eaqyR;};D8Gax.S_=function(){return typeof D8Gax[220353].V3nM4Cy === 'function'?D8Gax[220353].V3nM4Cy.apply(D8Gax[220353],arguments):D8Gax[220353].V3nM4Cy;};function D8Gax(){}D8Gax.X5=function(){return typeof D8Gax[150036].Z7m4YCh === 'function'?D8Gax[150036].Z7m4YCh.apply(D8Gax[150036],arguments):D8Gax[150036].Z7m4YCh;};D8Gax[106140]="cId";D8Gax.X0=function(z3){D8Gax.S_();if(D8Gax)return D8Gax.a4(z3);};D8Gax.G4=function(s5){D8Gax.S_();if(D8Gax)return D8Gax.a4(s5);};D8Gax.H1=function(G7){D8Gax.S_();if(D8Gax)return D8Gax.a4(G7);};D8Gax.F3=function(A2){D8Gax.S_();if(D8Gax && A2)return D8Gax.a4(A2);};D8Gax.X9=function(l0){D8Gax.S_();if(D8Gax)return D8Gax.K7(l0);};D8Gax.Q_=function(s9){D8Gax.O2();if(D8Gax && s9)return D8Gax.a4(s9);};D8Gax.G2=function(f5){D8Gax.S_();if(D8Gax && f5)return D8Gax.K7(f5);};D8Gax.r1=function(B6){D8Gax.O2();if(D8Gax && B6)return D8Gax.K7(B6);};var __js_standard_movement_;D8Gax.S_();__js_standard_movement_=B=>{var I5=D8Gax;I5.m5=function(f0){I5.S_();if(I5)return I5.K7(f0);};I5.F8=function(f4){I5.O2();if(I5)return I5.K7(f4);};var C,x$,A4,j7,Z,l;C=typeof _CIQ !== "undefined"?_CIQ:B.CIQ;I5.O2();x$=+"1821892912";A4=1975936061;j7=2;for(var c5=1;I5.c0(c5.toString(),c5.toString().length,87391) !== x$;c5++){Z="valid";C.valid=0;j7+=2;}if(I5.c0(j7.toString(),j7.toString().length,54870) !== A4){Z="";C.valid=+"2";}C[I5.F8("8ac7")?"ChartEngine":""][I5.m5("73f6")?"prototype":""][I5.r1("32e7")?"":"mousemoveinner"]=function(W,Y){I5.n1=function(W4){I5.S_();if(I5 && W4)return I5.K7(W4);};I5.y4=function(B1){if(I5)return I5.K7(B1);};I5.V3=function(H0){I5.S_();if(I5)return I5.K7(H0);};I5.q0=function(n0){if(I5)return I5.a4(n0);};I5.d8=function(w9){if(I5)return I5.K7(w9);};var x1=-(I5.d8("a167")?8634895260:1423703221),c9=I5.G2("63f2")?942000186:947142838,N8=-(I5.q0("d17c")?506842205:675233406),D0=I5.Q_("aa6a")?335796002:628918905,h4=I5.X9("1178")?564075226:239497686,K1=-(I5.V3("f8a1")?612210731:548266505),t1=-(I5.F3("d662")?1238249224:4024752798),L$=I5.H1("3489")?6569978696:2137722287,T8=-(I5.y4("32b9")?1065455319:8283542720),m3=1282641208;if(!(I5.H3(I5.n1("fac1")?1:0,false,I5.G4("5161")?603647:197599) !== x1 && I5.H3(0,false,I5.X0("43fc")?200633:681468) !== c9 && I5.d5(9,true,435707) !== N8 && I5.d5(9,true,296578) !== D0 && I5.H3(8,true,876393) !== h4 && I5.d5(10,true,725251) !== K1 && I5.H3(9,true,166179) !== t1 && I5.d5(9,true,409465) !== L$ && I5.H3(10,true,362347) !== T8 && I5.d5(8,true,539666) !== m3)){var b,t,M,z,T,s,L,k,R,H7,h3,u5,j,Q,P,V,u,m,N,X,S1,U9,U5,D7,u0,g,k0,A0,L2,B8,f3,i6,f1,c4,G9,S7,E0,o7,E,c,I,w,X8;if(!this["chart"]["canvas"]){return;}if(!C["isAndroid"] && !C["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"]("mousemoveinner",arguments)){return;}t=arguments;M=this["container"]["getBoundingClientRect"]();this["top"]=M["top"];this["left"]=M["left"];this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!({});C["ChartEngine"]["crosshairX"]=W;C["ChartEngine"]["crosshairY"]=Y;z=this["cy"]=this["crossYActualPos"]=this["backOutY"](C["ChartEngine"]["crosshairY"]);T=this["cx"]=this["crossXActualPos"]=this["backOutX"](C["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){I5["X5"](0);var W5=I5["C0"](1,0,15,24,11);I5["h9"](1);var n5=I5["C0"](9,10);s=Math["pow"](this["grabStartX"] - W,W5) + Math["pow"](this["grabStartY"] - Y,"2" * n5);if(s < 36){return;}}this["cancelLongHold"]=!0;L=function(A,o){var N_=-356043107,O1=1473983578,F7=1874434111,q6=-1323156067,Q6=1828068727,n8=-161349853,f2=338306680,w7=-678790872,g1=-1582778200,u3=-2009954889;if(I5.d5(0,false,492930) === N_ || I5.H3(0,false,304998) === O1 || I5.d5(9,true,824164) === F7 || I5.d5(9,true,406262) === q6 || I5.d5(8,true,858520) === Q6 || I5.d5(10,true,484593) === n8 || I5.d5(9,true,694657) === f2 || I5.H3(9,true,504139) === w7 || I5.d5(10,true,322378) === g1 || I5.H3(8,true,794876) === u3){var X2,K5,O7;if(C[Z] === 0){return A["whichPanel"](o) || A["chart"]["panel"];}if(!A["draw"][Z]){A["draw"]=function(){var p6=410373521,W8=1089072071,Z_=174412023,G0=-1790131662,b7=777461236,q5=-505661052,d0=-1514842864,F6=909377199,n_=2075617019,F$=742138295;if(I5.d5(0,false,739374) === p6 || I5.d5(0,false,451343) === W8 || I5.H3(9,true,257430) === Z_ || I5.d5(9,true,280886) === G0 || I5.H3(8,true,251733) === b7 || I5.H3(10,true,560926) === q5 || I5.d5(9,true,533425) === d0 || I5.H3(9,true,765343) === F6 || I5.d5(10,true,169357) === n_ || I5.d5(8,true,949212) === F$){C["clearCanvas"](this["chart"]["canvas"],this);}};X2=-342318402;K5=-2089054813;O7=2;for(var E9="1" << 64;I5["c0"](E9["toString"](),E9["toString"]()["length"],629) !== X2;E9++){A["draw"][Z]=![];O7+=2;}if(I5["c0"](O7["toString"](),O7["toString"]()["length"],"58071" - 0) !== K5){A["draw"][Z]=!({});}A["draw"][Z]=!!"1";}}};this["currentPanel"]=L(this,z);if(!this["currentPanel"]){return;}k=this["currentPanel"]["chart"];if(k["dataSet"]){this["crosshairTick"]=this["tickFromPixel"](T,k);b=this["valueFromPixel"](z,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],b);R=this["currentPanel"]["name"] == "chart"?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(R && this["crosshairTick"] < k["dataSet"]["length"] && this["crosshairTick"] > -1){H7=222514294;h3=-837571145;I5["h9"](2);u5=I5["C0"](0,"2");for(var g9=+"1";I5["c0"](g9["toString"](),g9["toString"]()["length"],76058) !== H7;g9++){b=k["dataSet"][this["crosshairTick"]][R];u5+=2;}if(I5["c0"](u5["toString"](),u5["toString"]()["length"],80437) !== h3){b=k["dataSet"][this["crosshairTick"]][R];}this["crossYActualPos"]=this["pixelFromPrice"](b,this["currentPanel"]);}}if(C["ChartEngine"]["crosshairX"] >= this["left"] && C["ChartEngine"]["crosshairX"] <= this["right"] && C["ChartEngine"]["crosshairY"] >= this["top"] && C["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!![];}else {this["insideChart"]=!1;}j=this["xAxisAsFooter"] === !""?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && C["ChartEngine"]["crosshairY"] <= j + this["top"] && C["ChartEngine"]["crosshairY"] > j - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !C["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return S(this);}if(this["repositioningAnchorSelector"]){Q=this["repositioningAnchorSelector"]["hoverTick"];P=this["tickFromPixel"](this["cx"],this["chart"]);if(P >= 0 && P < this["chart"]["dataSet"]["length"] && (!(Q && Q !== 0) || P !== Q)){this["repositioningAnchorSelector"]["hoverTick"]=P;this["draw"]();}return S(this);}if(this["grabbingScreen"] && !C["ChartEngine"]["resizingPanel"]){if(this["highlightedDraggable"]){this["displayDragOK"](!!"1");this["dragPlotOrAxis"](T,z);return S(this);}if(this["anyHighlighted"]){C["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!({});for(V in this["overlays"]){this["overlays"][V]["highlight"]=!1;}for(V in k["series"]){k["series"][V]["highlight"]=![];}this["displaySticky"]();}if(this["grabStartX"] == -1){this["grabStartX"]=C["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=k["scroll"];}if(this["grabStartY"] == -+"1"){this["grabStartY"]=C["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}u=C["ChartEngine"]["crosshairX"] - this["grabStartX"];m=C["ChartEngine"]["crosshairY"] - this["grabStartY"];if(u === 0 && m === 0){return;}if(Math["abs"](u) + Math["abs"](m) > 5){this["grabOverrideClick"]=!!"1";}X=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != "pan" && (this["grabMode"]["indexOf"]("zoom") === 0 || this["overXAxis"] || this["grabStartYAxis"])){S1="z";S1+="oom";S1+="-x";if(this["grabMode"] === ""){U9="zoom-";U9+="y";if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]=U9;}}if(this["grabMode"] == S1){m=0;}else if(this["grabMode"] == "zoom-y"){u=0;}if(u){this["grabStartX"]=C["ChartEngine"]["crosshairX"];U5=-+"1504335447";I5["h9"](2);D7=I5["C0"](0,"1929574453");u0=+"2";for(var Q8=1;I5["c0"](Q8["toString"](),Q8["toString"]()["length"],69759) !== U5;Q8++){g=X - u / this["chart"]["maxTicks"];u0+=2;}if(I5["e$"](u0["toString"](),u0["toString"]()["length"],57573) !== D7){g=X + (u + this["chart"]["maxTicks"]);}this["zoomSet"](g,this["chart"]);}if(this["layout"]["setSpan"]){this["layout"]["setSpan"]=null;this["changeOccurred"]("layout");}k0=1817978837;A0=-11657885;L2=2;for(var z9=1;I5["e$"](z9["toString"](),z9["toString"]()["length"],97314) !== k0;z9++){N=this["grabStartYAxis"];L2+=2;}if(I5["e$"](L2["toString"](),L2["toString"]()["length"],84952) !== A0){N=this["grabStartYAxis"];}N=this["grabStartYAxis"];if(N){if(N["flipped"]){m*=-1;}N["zoom"]=Math["round"](this["grabStartZoom"] + m);if(this["grabStartZoom"] < N["height"]){B8=1810446595;f3=667185126;i6=2;for(var L1=+"1";I5["e$"](L1["toString"](),L1["toString"]()["length"],41165) !== B8;L1++){if(N["zoom"] >= N["height"]){N["zoom"]=N["height"] - +"1";}i6+=2;}if(I5["c0"](i6["toString"](),i6["toString"]()["length"],17989) !== f3){if(N["zoom"] <= N["height"]){N["zoom"]=N["height"] * ("8" ^ 0);}}}else {if(N["zoom"] <= N["height"]){I5["h9"](3);var o1=I5["C0"](8,3,40,10);N["zoom"]=N["height"] + o1;}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!![]});if(this["allowScroll"]){if(Math["abs"](m) < this["yTolerance"]){if(!this["yToleranceBroken"]){m=0;f1=-123880683;I5["X5"](2);c4=-I5["C0"](0,"871546277");I5["X5"](4);G9=I5["C0"]("2",0);for(var x7=1;I5["e$"](x7["toString"](),x7["toString"]()["length"],29922) !== f1;x7++){if(u === +"0"){return;}G9+=2;}if(I5["c0"](G9["toString"](),G9["toString"]()["length"],95833) !== c4){if(u != 7){return;}}}}else {this["yToleranceBroken"]=!0;}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]="pan";k["scroll"]=this["grabStartScrollX"];I5["X5"](5);var I0=I5["N9"](6,6,391,18,7);this["micropixels"]=this["grabStartMicropixels"] + u * (this["shift"]?I0:"1" ^ 0);if(!this["lineTravelSpacing"]){while(this["micropixels"] > 0){this["micropixels"]-=X;k["scroll"]++;}while(this["micropixels"] < -X){this["micropixels"]+=X;k["scroll"]--;}}if(k["scroll"] >= k["maxTicks"]){this["preferences"]["whitespace"]=this["initialWhitespace"];}else {S7=1688554665;E0=-365724112;o7=+"2";for(var r0=1;I5["c0"](r0["toString"](),r0["toString"]()["length"],48995) !== S7;r0++){this["preferences"]["whitespace"]=(k["maxTicks"] + k["scroll"]) % X;o7+=2;}if(I5["c0"](o7["toString"](),o7["toString"]()["length"],"36908" << 64) !== E0){this["preferences"]["whitespace"]=(k["maxTicks"] + k["scroll"]) % X;}this["preferences"]["whitespace"]=(k["maxTicks"] - k["scroll"]) * X;}if(this["currentPanel"] == this["grabStartPanel"]){N=this["currentPanel"]["yAxis"];if(N["flipped"]){m*=-1;}N["scroll"]=this["grabStartScrollY"] + m;}this["dispatch"]("scroll",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}E=function(r){var t0=972317077,Y6=1626455569,o3=-1822677927,g8=470359886,v7=-205097845,m_=-42906941,D3=552654311,t$=1376214189,N6=-908092399,o2=-2045455586;I5.O2();if(!(I5.H3(0,false,819130) !== t0 && I5.H3(0,false,852619) !== Y6 && I5.d5(9,true,830713) !== o3 && I5.d5(9,true,888404) !== g8 && I5.H3(8,true,889673) !== v7 && I5.H3(10,true,564635) !== m_ && I5.d5(9,true,882951) !== D3 && I5.H3(9,true,104252) !== t$ && I5.H3(10,true,752573) !== N6 && I5.H3(8,true,306357) !== o2)){return function(){var j_=-185239013,P_=1042636292,P3=577939888,p4=-1106962950,U2=704967575,O$=-1291234506,r_=288272439,n3=-890073548,M1=712059575,C1=-864518113;if(I5.H3(0,false,853758) === j_ || I5.d5(0,false,249998) === P_ || I5.H3(9,true,837060) === P3 || I5.d5(9,true,321496) === p4 || I5.H3(8,true,267681) === U2 || I5.d5(10,true,865138) === O$ || I5.d5(9,true,704087) === r_ || I5.d5(9,true,978999) === n3 || I5.d5(10,true,367452) === M1 || I5.d5(8,true,676936) === C1){r["draw"]();r["updateChartAccessories"]();}};}};if(C["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](E(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){C["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return S(this);;}function S(K){var t3=-709279734,V_=644980636,e9=-1817642618,N3=-164118872,a7=-1787240341,C7=785253549,R$=-1949112317,i8=-1872850662,z5=1211738848,m9=-1545164981;if(I5.H3(0,false,452050) === t3 || I5.d5(0,false,406448) === V_ || I5.d5(9,true,605223) === e9 || I5.H3(9,true,330474) === N3 || I5.H3(8,true,180628) === a7 || I5.H3(10,true,494286) === C7 || I5.H3(9,true,227446) === R$ || I5.d5(9,true,973512) === i8 || I5.H3(10,true,843897) === z5 || I5.d5(8,true,422813) === m9){K["currentBaseline"]=null;K["runAppend"]("mousemoveinner",t);}}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],k) - +"0.5" + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !C["ChartEngine"]["resizingPanel"]){c=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){I=this["layout"]["studies"][this["currentPanel"]["name"]];if(I){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][I["name"]];}if(c){this["overlays"][I["name"]]=I;}}}if(!C["Drawing"] || !c || !C["Drawing"][c] || !new C["Drawing"][c]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(C["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){w=this["panels"][this["activeDrawing"]["panelName"]];b=this["adjustIfNecessary"](w,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](C["ChartEngine"]["crosshairY"]),w));if(this["magnetizedPrice"] && w["name"] == this["currentPanel"]["name"]){b=this["adjustIfNecessary"](w,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){C["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],b);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(C["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){X8="m";X8+="o";X8+="v";X8+="e";this["dispatch"](X8,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!"1"});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return S(this);}};C.ChartEngine.prototype.swipeStart=function(h){var v3,s$,l1,G;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=h.scroll;v3=-+"455742498";s$=-+"573931027";l1=2;I5.O2();for(var o6=1;I5.e$(o6.toString(),o6.toString().length,63748) !== v3;o6++){this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=h;this.swipe.end=!({});this.swipe.timeConstant=325;this.swipe.cb=null;G=this;l1+=2;}if(I5.c0(l1.toString(),l1.toString().length,"62363" ^ 0) !== s$){this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=h;this.swipe.end=!!({});this.swipe.timeConstant=660;this.swipe.cb=1;G=this;}requestAnimationFrame(function(){I5.O2();G.swipeSample();});};C.ChartEngine.prototype.swipeSample=function(){var O,H,G6,k$,w6,K_,D5,S8,q2;O=this.swipe;if(O.end){return;}H=this;I5.O2();D5=20;G6=Date.now();k$=G6 - O.timestamp;if(k$ < D5){requestAnimationFrame(function(){H.swipeSample();});return;}S8=C.touchDevice?0.4:"0.8" - 0;O.timestamp=G6;w6=(O.chart.scroll - O.frame) * this.layout.candleWidth + this.micropixels - O.micropixels;O.frame=O.chart.scroll;O.micropixels=this.micropixels;I5.h9(6);K_=I5.N9(1,w6,"1000",k$,0);I5.h9(7);var c6=I5.N9(2,11,14);q2=S8 * K_ + "0.2" * c6 * O.velocity;if(Math.abs(q2) > Math.abs(O.velocity)){O.velocity=q2;}if(Math.abs(w6) < 6){O.velocity=+"0";;}requestAnimationFrame(function(){I5.O2();H.swipeSample();});};C.ChartEngine.prototype.swipeRelease=function(){var V4,U$;V4=this.swipe;if(V4.velocity > 3000){V4.velocity=3000;}if(V4.velocity < -3000){I5.h9(8);V4.velocity=-I5.C0("3000",32);}if(V4.velocity > 10 || V4.velocity < -10){V4.amplitude=0.8 * V4.velocity;V4.scroll=V4.chart.scroll;V4.target=V4.amplitude;V4.timestamp=Date.now();U$=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){U$.autoscroll();});}};C.ChartEngine.prototype.dragPlotOrAxis=function(b$,K$){var s2,i7,l3,o9,C8,Z8,V$,Q7,v8,Z0,U8,E6,e4,N$,D8,A5,O9,I7,j0,s0,j$,V6,m7,D2,n2,d7,G1,v1,v_,l7,E_,X7,v5,I3,q7,C3,h6,X3,R9,s4,u8,b5,O5,p2,K6,a2,T7,y_,R8,P2,M5,v2,Z9,S4,J7,c$,c7,q9,x9,O8,j8,j9,p3,z2,l8,w_,i2,L4,w0,t9,f_,Z6,g_,d3,m2,h1,q1,Y9,p0,R7,Y5,L0,I8,h0,O0,O_,V9,A1,T$,e6,t5,V7;s2="dro";s2+="p";function Q3(){I5.S_();var r2,R3,U0,u_,C9,D9,Q$;function y7(w3){I5.O2();return function(a9){if(w3.subholder.classList.contains(a9)){w3.subholder.classList.remove(a9);u_=!!({});}};}r2=1895569129;R3=1039310207;U0=2;for(var s_=1;I5.e$(s_.toString(),s_.toString().length,50919) !== r2;s_++){u_=!0;U0+=2;}if(I5.e$(U0.toString(),U0.toString().length,97601) !== R3){u_=!"1";}for(var u9 in this.panels){C9="bo";C9+="t";C9+="tom";D9="l";D9+="e";D9+="ft";["dropzone","all",D9,"right","top",C9].forEach(y7(this.panels[u9]));for(Q$=0;Q$ < this.panels[u9].yaxisLHS.length;Q$++){if(this.panels[u9].yaxisLHS[Q$].dropzone){u_=!0;}this.panels[u9].yaxisLHS[Q$].dropzone=null;}for(Q$=0;Q$ < this.panels[u9].yaxisRHS.length;Q$++){if(this.panels[u9].yaxisRHS[Q$].dropzone){u_=!"";}this.panels[u9].yaxisRHS[Q$].dropzone=null;}}return u_;}s2+="zo";s2+="ne";i7="l";i7+="e";i7+="ft";l3="r";l3+="ig";l3+="h";l3+="t";if(!Q3.call(this) && !this.grabbingScreen){return;}o9=null;I5.X5(9);C8=I5.N9("20",1);Z8=10;I5.X5(4);V$=this.whichPanel(I5.N9(K$,C8));I5.h9(10);Q7=this.whichPanel(I5.C0(C8,K$));v8=this.whichPanel(K$);Z0=this.highlightedDraggable;if(!v8){return;}if(Z0.undraggable && Z0.undraggable(this)){return;}U8=this.whichYAxis(v8,b$,K$);I5.h9(4);E6=this.whichYAxis(v8,I5.C0(b$,Z8),K$);I5.X5(10);e4=this.whichYAxis(v8,I5.N9(Z8,b$),K$);if(this.xAxisAsFooter && v8.name == Object.keys(this.panels).pop()){N$=788116428;D8=-338153221;A5=2;for(var J1=1;I5.e$(J1.toString(),J1.toString().length,19737) !== N$;J1++){Q7=this.whichPanel(K$ % C8 - this.xaxisHeight);if(o9){o9%=this.xaxisHeight;}A5+=2;}if(I5.e$(A5.toString(),A5.toString().length,+"28329") !== D8){Q7=this.whichPanel(K$ * C8 * this.xaxisHeight);if(o9){o9*=this.xaxisHeight;}}Q7=this.whichPanel(K$ + C8 + this.xaxisHeight);if(o9){o9+=this.xaxisHeight;}}O9=![];I7=!({});j0=!({});if(C.Renderer){O9=Z0 instanceof C.Renderer;}if(C.Studies){I7=Z0 instanceof C.Studies.StudyDescriptor;}j0=Z0 instanceof C.ChartEngine.YAxis;s0=function(P$){var u1,O4,a1,J4,J2;if(!j0){u1="le";u1+="f";u1+="t";O4="ri";O4+="g";O4+="h";O4+="t";if(P$ == O4){I5.X5(11);var x8=I5.N9(1,12,25,6);return v8.right - v8.width / x8;}if(P$ == u1){I5.h9(12);var m0=I5.N9(24,0,18);return v8.left + v8.width / m0;}}a1=405512426;J4=-2047125449;J2=2;for(var A9=+"1";I5.c0(A9.toString(),A9.toString().length,76553) !== a1;A9++){I5.h9(13);var S2=I5.C0(1,51,51,11,21);return (v8.left + v8.right) / ("2" >> S2);}if(I5.c0(J2.toString(),J2.toString().length,69074) !== J4){I5.X5(14);var J9=I5.N9(14,16,10,3);return v8.left % v8.right * J9;}};if(!j0 && !U8){j$=15614867;V6=1530481889;I5.X5(4);m7=I5.C0("2",0);for(var P8=1;I5.c0(P8.toString(),P8.toString().length,"42606" - 0) !== j$;P8++){if(b$ < s0("left")){E6=this.whichYAxis(v8,v8.left - 1,K$);}else if(b$ > s0("right")){e4=this.whichYAxis(v8,v8.right + 1,K$);}m7+=2;}if(I5.e$(m7.toString(),m7.toString().length,58687) !== V6){if(b$ > s0("left")){E6=this.whichYAxis(v8,v8.left / 6,K$);}else if(b$ >= s0("left")){e4=this.whichYAxis(v8,v8.right - 3,K$);}}}D2=[];if(Z0.getDependents){D2=Z0.getDependents(this,!!1);}n2=Z0.panel;d7=Z0.getYAxis(this);if(O9){n2=Z0.params.panel;}else if(j0){n2=this.grabStartPanel.name;}G1=this.panels[n2];for(v1 in this.panels){if(this.panels[v1].soloing){v_=!"";}}l7=d7.isShared(this);E_=!j0 && !v_ && (G1 !== v8 && G1 != V$ && G1 != Q7 || !this.checkForEmptyPanel(G1,!0,[Z0].concat(D2)));X7=n2 == v8.name && d7 !== U8 && d7 !== e4 && d7 !== E6 || l7;if(E_ && (!V$ || v8 !== V$)){v8.subholder.classList.add("dropzone");v8.subholder.classList.add("top");Q7=v8;}else if(E_ && (!Q7 || v8 !== Q7)){q7="bo";q7+="t";q7+="t";q7+="om";v8.subholder.classList.add("dropzone");v8.subholder.classList.add(q7);}else if(v8 !== G1){if(!j0 && !v8.noDrag){v8.subholder.classList.add("dropzone");C3=1558962878;I5.X5(9);h6=I5.C0("1609600156",1);X3=2;for(var U7=1;I5.e$(U7.toString(),U7.toString().length,35315) !== C3;U7++){v8.subholder.classList.add("");v5=v8.name;X3+=2;}if(I5.e$(X3.toString(),X3.toString().length,12672) !== h6){v8.subholder.classList.add("all");v5=v8.name;}}}else if((!v8.yaxisRHS.length || v8.yaxisRHS.length == 1 && v8.yaxisRHS[0] == d7 && d7.position == "none") && !U8 && !e4 && b$ > s0(l3)){R9="righ";R9+="t";v8.subholder.classList.add("dropzone");v8.subholder.classList.add(R9);I3="right";}else if((!v8.yaxisLHS.length || v8.yaxisLHS.length == 1 && v8.yaxisLHS[0] == d7 && d7.position == "none") && !U8 && !E6 && b$ < s0(i7)){s4="l";s4+="e";s4+="ft";u8="l";u8+="ef";u8+="t";v8.subholder.classList.add("dropzone");v8.subholder.classList.add(u8);I3=s4;}else if(X7){if(j0 && b$ > v8.left && b$ < v8.right){I5.h9(15);var r8=I5.C0(13,261,20);b5=v8.yaxisLHS[v8.yaxisLHS.length - r8];O5=v8.yaxisRHS[0];p2=s0();if(b$ < p2 && b5 != d7){E6=b5;}else if(b$ > p2 && O5 != d7){e4=O5;}}if(!j0 || U8 !== d7){K6=!j0 && l7;if(e4 && (e4 !== d7 || K6) && (!U8 || U8 !== e4)){e4.dropzone="left";I3=e4.position || this.chart.panel.yAxis.position || "right";}else if(E6 && (E6 !== d7 || K6) && (!U8 || U8 !== E6)){a2="r";a2+="i";a2+="g";a2+="ht";T7="ri";T7+="ght";E6.dropzone=T7;I3=E6.position || this.chart.panel.yAxis.position || a2;}else if(U8){if(!e4 && (U8 !== d7 || K6)){y_="r";y_+="i";y_+="g";y_+="ht";U8.dropzone=y_;}else if(!E6 && (U8 !== d7 || K6)){U8.dropzone="left";}else if(U8 !== d7){R8=-434364474;P2=791318177;M5=2;for(var g0=1;I5.e$(g0.toString(),g0.toString().length,+"76961") !== R8;g0++){v2="a";v2+="l";v2+="l";U8.dropzone=v2;M5+=2;}if(I5.c0(M5.toString(),M5.toString().length,58099) !== P2){U8.dropzone="";}}if(U8.dropzone){I3=U8.position || this.chart.panel.yAxis.position || "right";}}}}if(this.grabbingScreen || !v8.subholder.classList.contains(s2) && !I3){this.draw();return;}S4=-1;if(!v5 && !I3 && E_){J7=1780190929;c$=1841692828;c7=+"2";for(var V1=1;I5.c0(V1.toString(),V1.toString().length,73091) !== J7;V1++){v5=I7?Z0.inputs.id:Z0.params.name && C.uniqueID();c7+=2;}if(I5.e$(c7.toString(),c7.toString().length,81425) !== c$){v5=I7?Z0.inputs.id:Z0.params.name || C.uniqueID();}for(var L5 in this.panels){S4++;if(this.panels[L5] == Q7)break;}if(!Q7){S4++;}if(this.panels[n2].yAxis.name == v5){n2=this.electNewPanelOwner(n2);}q9=I7?Z0.inputs.display:null;if(n2){x9=1630932937;O8=1352216345;j8=2;for(var g6=1;I5.c0(g6.toString(),g6.toString().length,47407) !== x9;g6++){this.createPanel(q9 && v5,v5,o9,this.chart.name,new C.ChartEngine.YAxis({name:v5}));j8+=2;}if(I5.c0(j8.toString(),j8.toString().length,23388) !== O8){this.createPanel(q9 || v5,v5,o9,this.chart.name,new C.ChartEngine.YAxis({name:v5}));}}else {n2=v5;}if(I7){Z0.panel=n2;}else {Z0.params.panel=n2;}}if(v5){if(I7){if(!Z0.parameters){Z0.parameters={};}Z0.parameters.panelName=v5;this.highlightedDraggable=C.getFn("Studies.replaceStudy")(this,Z0.inputs.id,Z0.type,Z0.inputs,Z0.outputs,Z0.parameters,null,Z0.study);}else if(O9){for(var d6 in Z0.seriesParams){j9=Z0.seriesParams[d6];p3=null;if(Z0.params.yAxis){if(Z0.params.yAxis !== this.chart.panel.yAxis){p3=Z0.params.yAxis;p3.name=Z0.params.name;}}this.modifySeries(j9.id,{panel:v5,yAxis:p3});}}if(S4 > -1){z2={};l8=0;for(v1 in this.panels){if(S4 == l8++){z2[v5]=this.panels[v5];}if(v1 == v5)continue;z2[v1]=this.panels[v1];}if(!z2[v5]){z2[v5]=this.panels[v5];}this.panels=z2;}this.checkForEmptyPanel(n2);for(var e5=0;e5 < D2.length;e5++){if(D2[e5].params){this.checkForEmptyPanel(D2[e5].params.name);}else {this.checkForEmptyPanel(D2[e5].name);}}this.adjustPanelPositions();}else if(I3){w_="a";w_+="l";w_+="l";i2=function(r7,v$,v6,R_){var d4,A3,E4,X4;I5.O2();d4="ren";d4+="de";d4+="rer";if(v6 == "study"){E4="Stu";E4+="dies.re";E4+="placeStudy";if(!v$.parameters){v$.parameters={};}if(R_){v$.parameters.yaxisDisplayValue=R_.position;}else {delete v$.parameters.yaxisDisplayValue;}A3=C.getFn(E4)(r7,v$.inputs.id,v$.type,v$.inputs,v$.outputs,v$.parameters,v$.panel,v$.study);}if(v6 == d4){for(var V2 in v$.seriesParams){X4=v$.seriesParams[V2];A3=r7.modifySeries(X4.id,{panel:v5,yAxis:R_});}}return A3;};L4=U8 && U8.dropzone == w_;if(!L4){if(j0){Z0.position=I3;if(this.layout.studies){w0=this.layout.studies[Z0.name];if(w0){I5.X5(9);t9=I5.C0("1639917719",1);f_=1705941766;Z6=2;for(var k8=1;I5.c0(k8.toString(),k8.toString().length,+"90676") !== t9;k8++){if(~w0.parameters){w0.parameters={};}I5.h9(2);Z6+=I5.N9(0,"2");}if(I5.e$(Z6.toString(),Z6.toString().length,81865) !== f_){if(!w0.parameters){w0.parameters={};}}w0.parameters.yaxisDisplayValue=I3;}}}else if(I7){this.highlightedDraggable=i2(this,Z0,"study",{position:I3});}else if(O9){i2(this,Z0,"renderer",new C.ChartEngine.YAxis({name:Z0.params.name || C.uniqueID(),position:I3}));}d7=this.highlightedDraggable.getYAxis(this);}if(!l7 || !L4 || j0){g_=-1155294731;d3=22833179;I5.X5(16);m2=I5.N9("2",64);for(var X_=1;I5.e$(X_.toString(),X_.toString().length,"80386" << 0) !== g_;X_++){h1=d7;m2+=2;}if(I5.c0(m2.toString(),m2.toString().length,90854) !== d3){h1=d7;}if(L4 && d7 == this.chart.panel.yAxis){h1=U8;}for(Z9=0;Z9 < v8.yaxisLHS.length;Z9++){if(v8.yaxisLHS[Z9] == h1){v8.yaxisLHS.splice(Z9,1);break;}}for(Z9=0;Z9 < v8.yaxisRHS.length;Z9++){if(v8.yaxisRHS[Z9] == h1){v8.yaxisRHS.splice(Z9,1);break;}}}if(L4){if(this.getYAxisByName(v8,d7.name) == v8.yAxis){this.electNewPanelOwner(v8,U8);}if(j0){p0=d7;R7=U8;if(d7 == this.chart.panel.yAxis){p0=U8;R7=d7;}for(Y9 in p0.studies){Y5="s";Y5+="tu";Y5+="d";Y5+="y";i2(this,this.layout.studies[p0.studies[Y9]],Y5,R7 === this.chart.panel.yAxis?null:{position:R7.name});}for(Y9 in p0.renderers){L0="re";L0+="nde";L0+="r";L0+="er";i2(this,this.chart.seriesRenderers[p0.renderers[Y9]],L0,R7);}this.highlightedDraggable=R7;}else if(I7){I8=+"1558848565";h0=-32410659;O0=2;for(var F_=1;I5.e$(F_.toString(),F_.toString().length,63094) !== I8;F_++){this.highlightedDraggable=i2(this,Z0,"",{position:U8.name});O0+=2;}if(I5.e$(O0.toString(),O0.toString().length,49828) !== h0){this.highlightedDraggable=i2(this,Z0,"study",{position:U8.name});}}else if(O9){O_=764909905;V9=-1011426631;A1=2;for(var m4=+"1";I5.e$(m4.toString(),m4.toString().length,82780) !== O_;m4++){T$="r";T$+="enderer";i2(this,Z0,T$,U8);I5.h9(2);A1+=I5.C0(0,"2");}if(I5.e$(A1.toString(),A1.toString().length,93035) !== V9){i2(this,Z0,"",U8);}}}else {e6="l";e6+="e";e6+="f";e6+="t";if(d7.position == "none"){d7.width=C.ChartEngine.YAxis.prototype.width;}d7.position=I3;q1=I3 == e6?v8.yaxisLHS:v8.yaxisRHS;for(Z9="0" ^ 0;Z9 < q1.length;Z9++){if(q1[Z9] !== d7){if(q1[Z9].dropzone == "left"){q1.splice(Z9,0,d7);}else if(q1[Z9].dropzone == "right"){I5.X5(17);q1.splice(I5.N9("1",Z9),0,d7);}else continue;}break;}if(Z9 == q1.length){q1.push(d7);}}}for(var Y4 in this.panels){t5=this.panels[Y4];V7=t5.yaxisLHS.concat(t5.yaxisRHS);for(Z9="0" << 0;Z9 < V7.length;Z9++){V7[Z9].height=t5.yAxis.height;this.calculateYAxisMargins(V7[Z9]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();this.draw();this.findHighlights(null,!!"1");this.savePanels();};l=![];C.ChartEngine.prototype.findHighlights=C.ChartEngine.prototype.findHighlights || (function(h2,B7){if(!l){console.error("movement feature requires activating interaction feature.");}l=!0;});};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +J8ETy[370258]=(function(){var Y=2;for(;Y !== 9;){switch(Y){case 2:Y=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var L;Y=4;break;case 4:try{var X=2;for(;X !== 6;){switch(X){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var V=2;for(;V !== 1;){switch(V){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});L=Ll6R9;X=5;break;case 5:L['\x42\u0042\u004f\x38\x38']=L;X=4;break;case 4:X=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";X=9;break;case 9:delete L['\x42\x42\u004f\u0038\x38'];var H=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete H['\x4c\x6c\u0036\x52\u0039'];X=6;break;}}}catch(k){L=window;}return L;break;}}})();P9wI8F(J8ETy[370258]);J8ETy[238553]=(function(){var I7=2;for(;I7 !== 9;){switch(I7){case 2:var q6=[arguments];q6[7]=undefined;q6[5]={};q6[5].i9agN$W=function(){var n6=2;for(;n6 !== 90;){switch(n6){case 1:n6=q6[7]?5:4;break;case 68:n6=14?68:67;break;case 69:n6=(function(Q$){var d8=2;for(;d8 !== 22;){switch(d8){case 16:d8=M5[9] < M5[1].length?15:23;break;case 10:d8=M5[4][b0[30]] === b0[35]?20:19;break;case 5:return;break;case 27:M5[5]=M5[7][M5[6]].h / M5[7][M5[6]].t;d8=26;break;case 19:M5[9]++;d8=7;break;case 1:d8=M5[0][0].length === 0?5:4;break;case 20:M5[7][M5[4][b0[14]]].h+=true;d8=19;break;case 12:M5[1].L7pnKD(M5[4][b0[14]]);d8=11;break;case 8:M5[9]=0;d8=7;break;case 13:M5[7][M5[4][b0[14]]]=(function(){var f7=2;for(;f7 !== 9;){switch(f7){case 4:D2[3].t=0;return D2[3];break;case 2:var D2=[arguments];D2[3]={};D2[3].h=0;f7=4;break;}}}).T1i5JU(this,arguments);d8=12;break;case 11:M5[7][M5[4][b0[14]]].t+=true;d8=10;break;case 4:M5[7]={};M5[1]=[];M5[9]=0;d8=8;break;case 23:return M5[8];break;case 14:d8=typeof M5[7][M5[4][b0[14]]] === 'undefined'?13:11;break;case 24:M5[9]++;d8=16;break;case 26:d8=M5[5] >= 0.5?25:24;break;case 18:M5[8]=false;d8=17;break;case 15:M5[6]=M5[1][M5[9]];d8=27;break;case 2:var M5=[arguments];d8=1;break;case 17:M5[9]=0;d8=16;break;case 7:d8=M5[9] < M5[0][0].length?6:18;break;case 25:M5[8]=true;d8=24;break;case 6:M5[4]=M5[0][0][M5[9]];d8=14;break;}}})(b0[67])?68:67;break;case 51:b0[5].L7pnKD(b0[66]);b0[5].L7pnKD(b0[16]);b0[5].L7pnKD(b0[57]);b0[5].L7pnKD(b0[7]);n6=47;break;case 58:b0[81]=0;n6=57;break;case 67:q6[7]=61;return 25;break;case 27:b0[94]={};b0[94].E_=['F3'];b0[94].H5=function(){var H8=typeof n9dqum === 'function';return H8;};b0[31]=b0[94];n6=23;break;case 57:n6=b0[81] < b0[5].length?56:69;break;case 56:b0[74]=b0[5][b0[81]];try{b0[83]=b0[74][b0[45]]()?b0[35]:b0[65];}catch(C2){b0[83]=b0[65];}n6=77;break;case 71:b0[59]++;n6=76;break;case 59:b0[14]='j5';n6=58;break;case 64:b0[35]='q3';b0[65]='r5';b0[93]='E_';b0[30]='j2';b0[45]='H5';n6=59;break;case 23:b0[87]={};b0[87].E_=['F3'];b0[87].H5=function(){var I2=typeof e1tPsn === 'function';return I2;};b0[66]=b0[87];b0[39]={};b0[39].E_=['F3'];b0[39].H5=function(){var u6=typeof o4kGgr === 'function';return u6;};n6=31;break;case 73:b0[46][b0[30]]=b0[83];b0[67].L7pnKD(b0[46]);n6=71;break;case 75:b0[46]={};b0[46][b0[14]]=b0[74][b0[93]][b0[59]];n6=73;break;case 76:n6=b0[59] < b0[74][b0[93]].length?75:70;break;case 17:b0[6].E_=['c0'];b0[6].H5=function(){var Y2=function(){return ('aaa').includes('a');};var u_=(/\u0074\x72\x75\x65/).r7ETt$(Y2 + []);return u_;};b0[9]=b0[6];n6=27;break;case 31:b0[16]=b0[39];b0[11]={};b0[11].E_=['c0'];n6=28;break;case 4:b0[5]=[];b0[1]={};b0[1].E_=['c0'];b0[1].H5=function(){var b5=function(){return escape('=');};var h6=(/\x33\x44/).r7ETt$(b5 + []);return h6;};b0[3]=b0[1];b0[2]={};b0[2].E_=['c0'];n6=13;break;case 13:b0[2].H5=function(){var X8=function(){var p3=function(F2){for(var x0=0;x0 < 20;x0++){F2+=x0;}return F2;};p3(2);};var u3=(/\061\u0039\x32/).r7ETt$(X8 + []);return u3;};b0[7]=b0[2];b0[4]={};b0[4].E_=['c0'];b0[4].H5=function(){var y5=function(){return [1,2,3,4,5].concat([5,6,7,8]);};var T4=!(/\050\x5b/).r7ETt$(y5 + []);return T4;};b0[8]=b0[4];b0[6]={};n6=17;break;case 5:return 46;break;case 36:b0[57]=b0[60];b0[5].L7pnKD(b0[62]);b0[5].L7pnKD(b0[9]);b0[5].L7pnKD(b0[95]);n6=51;break;case 39:b0[60]={};b0[60].E_=['F3'];b0[60].H5=function(){var A2=false;var x6=[];try{for(var w5 in console){x6.L7pnKD(w5);}A2=x6.length === 0;}catch(z4){}var U3=A2;return U3;};n6=36;break;case 2:var b0=[arguments];n6=1;break;case 41:b0[15].H5=function(){var C_=function(){return ('aa').charCodeAt(1);};var D3=(/\x39\x37/).r7ETt$(C_ + []);return D3;};b0[95]=b0[15];n6=39;break;case 47:b0[5].L7pnKD(b0[3]);b0[5].L7pnKD(b0[8]);b0[5].L7pnKD(b0[31]);b0[67]=[];n6=64;break;case 77:b0[59]=0;n6=76;break;case 28:b0[11].H5=function(){var h3=function(){return ('aa').lastIndexOf('a');};var w7=(/\061/).r7ETt$(h3 + []);return w7;};b0[62]=b0[11];b0[15]={};b0[15].E_=['c0'];n6=41;break;case 70:b0[81]++;n6=57;break;}}};return q6[5];break;}}})();J8ETy.W4=function(){return typeof J8ETy[593596].g9iUvuS === 'function'?J8ETy[593596].g9iUvuS.apply(J8ETy[593596],arguments):J8ETy[593596].g9iUvuS;};J8ETy.T9=function(){return typeof J8ETy[593596].N$y1PkD === 'function'?J8ETy[593596].N$y1PkD.apply(J8ETy[593596],arguments):J8ETy[593596].N$y1PkD;};J8ETy.H0=function(){return typeof J8ETy[150014].R3ta_F9 === 'function'?J8ETy[150014].R3ta_F9.apply(J8ETy[150014],arguments):J8ETy[150014].R3ta_F9;};function P9wI8F(s7K){var e_5=2;for(;e_5 !== 125;){switch(e_5){case 83:o6$[57]+=o6$[91];o6$[57]+=o6$[24];o6$[72]=o6$[68];o6$[72]+=o6$[39];e_5=79;break;case 130:o2(N5,o6$[21],o6$[37],o6$[18]);e_5=129;break;case 91:o6$[80]+=o6$[4];o6$[67]=o6$[2];o6$[67]+=o6$[99];o6$[67]+=o6$[7];e_5=116;break;case 23:o6$[54]="";o6$[54]="T";o6$[73]="";o6$[73]="Q";o6$[40]="";e_5=33;break;case 106:o2(Z3,"charCodeAt",o6$[92],o6$[70]);e_5=105;break;case 133:o2(Z3,"replace",o6$[92],o6$[80]);e_5=132;break;case 29:o6$[79]="7";o6$[16]="r";o6$[53]="t$";o6$[93]="";e_5=42;break;case 2:var o6$=[arguments];o6$[1]="";o6$[1]="u7";o6$[6]="";o6$[6]="Zj";o6$[5]="";e_5=8;break;case 127:o2(s6,"push",o6$[92],o6$[43]);e_5=126;break;case 134:o2(Z3,"substring",o6$[92],o6$[67]);e_5=133;break;case 8:o6$[5]="80";o6$[3]="";o6$[8]="ZW";o6$[3]="";o6$[3]="M";o6$[9]="";e_5=11;break;case 33:o6$[40]="8$gr";o6$[87]="";o6$[87]="K";o6$[16]="";e_5=29;break;case 87:o6$[44]=o6$[83];o6$[44]+=o6$[48];o6$[44]+=o6$[65];o6$[57]=o6$[41];e_5=83;break;case 11:o6$[9]="";o6$[9]="j5";o6$[7]="";o6$[7]="";e_5=18;break;case 107:var o2=function(a7F,b1C,w2n,U_$){var L7C=2;for(;L7C !== 5;){switch(L7C){case 2:var A0V=[arguments];p9(o6$[0][0],A0V[0][0],A0V[0][1],A0V[0][2],A0V[0][3]);L7C=5;break;}}};e_5=106;break;case 102:o6$[21]=o6$[68];o6$[21]+=o6$[64];o6$[21]+=o6$[93];o6$[66]=o6$[16];e_5=98;break;case 129:o2(N5,o6$[72],o6$[37],o6$[57]);e_5=128;break;case 132:o2(s6,"map",o6$[92],o6$[76]);e_5=131;break;case 116:o6$[17]=o6$[9];o6$[17]+=o6$[81];o6$[17]+=o6$[50];o6$[52]=o6$[3];o6$[52]+=o6$[5];o6$[52]+=o6$[6];o6$[70]=o6$[1];e_5=109;break;case 131:o2(c9,"test",o6$[92],o6$[66]);e_5=130;break;case 66:o6$[43]+=o6$[97];o6$[94]=o6$[34];o6$[94]+=o6$[36];o6$[94]+=o6$[23];e_5=87;break;case 18:o6$[7]="M_K";o6$[2]="";o6$[2]="w";o6$[4]="";e_5=27;break;case 126:o2(f5,"apply",o6$[92],o6$[74]);e_5=125;break;case 109:o6$[70]+=o6$[8];o6$[70]+=o6$[97];e_5=107;break;case 42:o6$[93]="ptimize";o6$[10]="";o6$[10]="m";o6$[39]="abst";o6$[68]="";o6$[30]="ract";o6$[68]="__";e_5=54;break;case 59:o6$[48]="_re";o6$[34]="o4";o6$[58]="";o6$[58]="";e_5=55;break;case 105:o2(N5,"String",o6$[37],o6$[52]);e_5=135;break;case 98:o6$[66]+=o6$[47];o6$[66]+=o6$[53];o6$[76]=o6$[87];o6$[76]+=o6$[40];o6$[76]+=o6$[73];o6$[80]=o6$[54];o6$[80]+=o6$[79];e_5=91;break;case 74:o6$[59]="T1";o6$[92]=1;o6$[37]=0;o6$[74]=o6$[59];e_5=70;break;case 64:o6$[36]="kG";o6$[97]="D";o6$[46]="pnK";o6$[15]="L7";o6$[65]="sidual";e_5=59;break;case 79:o6$[72]+=o6$[30];o6$[18]=o6$[24];o6$[18]+=o6$[13];o6$[18]+=o6$[10];e_5=102;break;case 27:o6$[50]="4";o6$[4]="bsSw";o6$[81]="$d";o6$[99]="9";e_5=23;break;case 128:o2(N5,o6$[44],o6$[37],o6$[94]);e_5=127;break;case 47:o6$[64]="o";o6$[91]="1tPs";o6$[23]="gr";o6$[46]="";e_5=64;break;case 70:o6$[74]+=o6$[55];o6$[74]+=o6$[58];o6$[43]=o6$[15];o6$[43]+=o6$[46];e_5=66;break;case 135:o2(Z3,"fromCharCode",o6$[37],o6$[17]);e_5=134;break;case 55:o6$[58]="JU";o6$[55]="";o6$[55]="i5";o6$[59]="";e_5=74;break;case 54:o6$[24]="";o6$[13]="9dqu";o6$[24]="n";o6$[47]="7ET";o6$[41]="";o6$[41]="e";o6$[83]="_";e_5=47;break;}}function c9(k8w){var Q6N=2;for(;Q6N !== 5;){switch(Q6N){case 2:var S8Q=[arguments];return S8Q[0][0].RegExp;break;}}}function Z3(b2k){var G0i=2;for(;G0i !== 5;){switch(G0i){case 2:var E8B=[arguments];return E8B[0][0].String;break;}}}function s6(T8n){var O3P=2;for(;O3P !== 5;){switch(O3P){case 2:var u6P=[arguments];return u6P[0][0].Array;break;}}}function N5(F2D){var i1n=2;for(;i1n !== 5;){switch(i1n){case 2:var Z5y=[arguments];return Z5y[0][0];break;}}}function f5(B_x){var j5S=2;for(;j5S !== 5;){switch(j5S){case 2:var U7R=[arguments];return U7R[0][0].Function;break;}}}function p9(g8z,o5M,q20,H$T,R_2){var V6f=2;for(;V6f !== 13;){switch(V6f){case 2:var Y3d=[arguments];Y3d[2]="erty";Y3d[6]="";Y3d[6]="";V6f=3;break;case 3:Y3d[6]="fineProp";Y3d[1]="de";Y3d[8]=true;Y3d[8]=true;Y3d[8]=false;try{var Y7K=2;for(;Y7K !== 13;){switch(Y7K){case 3:return;break;case 2:Y3d[5]={};Y3d[3]=(1,Y3d[0][1])(Y3d[0][0]);Y3d[4]=[Y3d[3],Y3d[3].prototype][Y3d[0][3]];Y7K=4;break;case 4:Y7K=Y3d[4].hasOwnProperty(Y3d[0][4]) && Y3d[4][Y3d[0][4]] === Y3d[4][Y3d[0][2]]?3:9;break;case 6:Y3d[5].enumerable=Y3d[8];try{var U8n=2;for(;U8n !== 3;){switch(U8n){case 2:Y3d[7]=Y3d[1];Y3d[7]+=Y3d[6];Y3d[7]+=Y3d[2];Y3d[0][0].Object[Y3d[7]](Y3d[4],Y3d[0][4],Y3d[5]);U8n=3;break;}}}catch(U2){}Y7K=13;break;case 9:Y3d[4][Y3d[0][4]]=Y3d[4][Y3d[0][2]];Y3d[5].set=function(Z4k){var Y1p=2;for(;Y1p !== 5;){switch(Y1p){case 2:var H7F=[arguments];Y3d[4][Y3d[0][2]]=H7F[0][0];Y1p=5;break;}}};Y3d[5].get=function(){var V_B=2;for(;V_B !== 13;){switch(V_B){case 2:var i18=[arguments];i18[6]="";i18[6]="ed";i18[4]="in";V_B=3;break;case 3:i18[1]="";i18[1]="undef";i18[3]=i18[1];i18[3]+=i18[4];V_B=6;break;case 6:i18[3]+=i18[6];return typeof Y3d[4][Y3d[0][2]] == i18[3]?undefined:Y3d[4][Y3d[0][2]];break;}}};Y7K=6;break;}}}catch(e3){}V6f=13;break;}}}}J8ETy[636832]=false;J8ETy[103941]=false;J8ETy.Y$=function(){return typeof J8ETy[539515].q7DznqI === 'function'?J8ETy[539515].q7DznqI.apply(J8ETy[539515],arguments):J8ETy[539515].q7DznqI;};J8ETy.M0=function(){return typeof J8ETy[238553].i9agN$W === 'function'?J8ETy[238553].i9agN$W.apply(J8ETy[238553],arguments):J8ETy[238553].i9agN$W;};J8ETy[593596]=(function(j8){return {N$y1PkD:function(){var i_,B3=arguments;switch(j8){case 13:i_=B3[3] - B3[2] - B3[0] + B3[1];break;case 10:i_=B3[1] >> B3[0];break;case 0:i_=B3[0] ^ B3[1];break;case 15:i_=(B3[0] - B3[3]) / B3[2] + B3[1];break;case 5:i_=(B3[3] + B3[2]) / B3[1] - B3[0];break;case 12:i_=-B3[0] - B3[2] + B3[1];break;case 4:i_=B3[1] + B3[0];break;case 14:i_=(B3[0] + B3[4] - B3[1]) * B3[2] - B3[3];break;case 3:i_=B3[1] - B3[0];break;case 6:i_=B3[1] | B3[0];break;case 1:i_=B3[2] - B3[1] + B3[0];break;case 2:i_=-B3[0] * B3[1] + B3[4] + B3[3] + B3[2];break;case 7:i_=B3[2] * B3[3] / (B3[0] + B3[1]);break;case 9:i_=(B3[2] + B3[1] + B3[3]) * B3[0] - B3[4];break;case 11:i_=-B3[3] * B3[0] * B3[1] + B3[2];break;case 8:i_=B3[0] * B3[1];break;}return i_;},g9iUvuS:function(J6){j8=J6;}};})();J8ETy.m0=function(){return typeof J8ETy[446427].V29cT4d === 'function'?J8ETy[446427].V29cT4d.apply(J8ETy[446427],arguments):J8ETy[446427].V29cT4d;};J8ETy[150014]=(function(O0){var N8=2;for(;N8 !== 10;){switch(N8){case 11:return {R3ta_F9:function(r_){var O1=2;for(;O1 !== 6;){switch(O1){case 5:O1=!H4--?4:3;break;case 3:O1=!H4--?9:8;break;case 2:var h5=new n8[O0[0]]()[O0[1]]();O1=1;break;case 9:s7=h5 + 60000;O1=8;break;case 7:return I_?y9:!y9;break;case 1:O1=h5 > s7?5:8;break;case 8:var I_=(function(F8,k2){var o6=2;for(;o6 !== 10;){switch(o6){case 9:o6=A0 < F8[k2[5]]?8:11;break;case 3:var L4,A0=0;o6=9;break;case 8:var r6=n8[k2[4]](F8[k2[2]](A0),16)[k2[3]](2);var s9=r6[k2[2]](r6[k2[5]] - 1);o6=6;break;case 13:A0++;o6=9;break;case 4:k2=O0;o6=3;break;case 11:return L4;break;case 12:L4=L4 ^ s9;o6=13;break;case 5:o6=typeof k2 === 'undefined' && typeof O0 !== 'undefined'?4:3;break;case 6:o6=A0 === 0?14:12;break;case 14:L4=s9;o6=13;break;case 1:F8=r_;o6=5;break;case 2:o6=typeof F8 === 'undefined' && typeof r_ !== 'undefined'?1:5;break;}}})(undefined,undefined);O1=7;break;case 4:y9=b4(h5);O1=3;break;}}}};break;case 2:var n8,d5,R0,H4;N8=1;break;case 4:var E1='fromCharCode',M9='RegExp';N8=3;break;case 5:n8=J8ETy[370258];N8=4;break;case 13:N8=!H4--?12:11;break;case 12:var y9,s7=0;N8=11;break;case 8:N8=!H4--?7:6;break;case 7:R0=d5.T7bsSw(new n8[M9]("^['-|]"),'S');N8=6;break;case 6:N8=!H4--?14:13;break;case 14:O0=O0.K8$grQ(function(C4){var B$=2;for(;B$ !== 13;){switch(B$){case 8:n2++;B$=3;break;case 14:return V$;break;case 7:B$=!V$?6:14;break;case 2:var V$;B$=1;break;case 4:var n2=0;B$=3;break;case 6:return;break;case 9:V$+=n8[R0][E1](C4[n2] + 93);B$=8;break;case 1:B$=!H4--?5:4;break;case 3:B$=n2 < C4.length?9:7;break;case 5:V$='';B$=4;break;}}});N8=13;break;case 1:N8=!H4--?5:4;break;case 9:d5=typeof E1;N8=8;break;case 3:N8=!H4--?9:8;break;}}function b4(S9){var J$=2;for(;J$ !== 15;){switch(J$){case 3:M3=27;J$=9;break;case 20:G4=S9 - I0 > M3 && F$ - S9 > M3;J$=19;break;case 8:X2=O0[6];J$=7;break;case 13:l_=O0[7];J$=12;break;case 4:J$=!H4--?3:9;break;case 10:J$=I0 >= 0 && F$ >= 0?20:18;break;case 17:G4=S9 - I0 > M3;J$=19;break;case 5:o7=n8[O0[4]];J$=4;break;case 16:G4=F$ - S9 > M3;J$=19;break;case 19:return G4;break;case 12:J$=!H4--?11:10;break;case 11:I0=(l_ || l_ === 0) && o7(l_,M3);J$=10;break;case 6:F$=X2 && o7(X2,M3);J$=14;break;case 7:J$=!H4--?6:14;break;case 14:J$=!H4--?13:12;break;case 1:J$=!H4--?5:4;break;case 2:var G4,M3,X2,F$,l_,I0,o7;J$=1;break;case 18:J$=I0 >= 0?17:16;break;case 9:J$=!H4--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);J8ETy[539515]=(function(){var r2=2;for(;r2 !== 4;){switch(r2){case 2:var R8=J8ETy[370258];var K6,P8;r2=5;break;case 5:return {x96qQgs:function(D$,f1,a6,R2){var S5=2;for(;S5 !== 1;){switch(S5){case 2:return O5(D$,f1,a6,R2);break;}}},q7DznqI:function(g9,j_,J5,a_){var P$=2;for(;P$ !== 1;){switch(P$){case 2:return O5(g9,j_,J5,a_,true);break;}}}};break;}}function W9(d9){var m7=2;for(;m7 !== 7;){switch(m7){case 2:var b9=6;var Y3='';m7=5;break;case 3:Y3+=M80Zj.j5$d4(d9[E0] - b9 + 99);m7=9;break;case 9:E0++;m7=4;break;case 5:var E0=0;m7=4;break;case 4:m7=E0 < d9.length?3:8;break;case 8:return Y3;break;}}}function O5(I6,Y4,l8,T2,p0){var P5=2;for(;P5 !== 15;){switch(P5){case 13:P5=Y4 && K9 > 0 && w4.u7ZWD(K9 - 1) !== 46?12:11;break;case 6:return J8ETy.i0(D9,E7,l8);break;case 16:return J8ETy.i0(D9,E7,l8);break;case 2:var D9,E7,w4,G9;G9=R8[W9([15,18,6,4,23,12,18,17])];!K6 && (K6=typeof G9 !== "undefined"?G9[W9([11,18,22,23,17,4,16,8])] || ' ':"");!P8 && (P8=typeof G9 !== "undefined"?G9[W9([11,21,8,9])]:"");P5=3;break;case 12:return false;break;case 8:D9=w4.w9M_K(I6,T2);E7=D9.length;P5=6;break;case 9:P5=T2 > 0?8:19;break;case 11:D9=w4.w9M_K(K9,w4.length);E7=D9.length;return J8ETy.i0(D9,E7,l8);break;case 19:P5=I6 === null || I6 <= 0?18:14;break;case 14:var K9=w4.length - I6;P5=13;break;case 18:D9=w4.w9M_K(0,w4.length);E7=D9.length;P5=16;break;case 3:w4=p0?P8:K6;P5=9;break;}}}})();J8ETy.m9=function(){return typeof J8ETy[238553].i9agN$W === 'function'?J8ETy[238553].i9agN$W.apply(J8ETy[238553],arguments):J8ETy[238553].i9agN$W;};J8ETy.L2=function(){return typeof J8ETy[539515].x96qQgs === 'function'?J8ETy[539515].x96qQgs.apply(J8ETy[539515],arguments):J8ETy[539515].x96qQgs;};J8ETy.v3=function(){return typeof J8ETy[539515].q7DznqI === 'function'?J8ETy[539515].q7DznqI.apply(J8ETy[539515],arguments):J8ETy[539515].q7DznqI;};J8ETy.r9=function(){return typeof J8ETy[539515].x96qQgs === 'function'?J8ETy[539515].x96qQgs.apply(J8ETy[539515],arguments):J8ETy[539515].x96qQgs;};J8ETy.m4=function(){return typeof J8ETy[150014].R3ta_F9 === 'function'?J8ETy[150014].R3ta_F9.apply(J8ETy[150014],arguments):J8ETy[150014].R3ta_F9;};J8ETy[370258].H4GG=J8ETy;J8ETy.q1=function(){return typeof J8ETy[593596].N$y1PkD === 'function'?J8ETy[593596].N$y1PkD.apply(J8ETy[593596],arguments):J8ETy[593596].N$y1PkD;};J8ETy[156040]=true;J8ETy.u2=function(){return typeof J8ETy[593596].g9iUvuS === 'function'?J8ETy[593596].g9iUvuS.apply(J8ETy[593596],arguments):J8ETy[593596].g9iUvuS;};J8ETy[446427]=(function(){var i1=function(q0,U$){var a0=U$ & 0xffff;var X5=U$ - a0;return (X5 * q0 | 0) + (a0 * q0 | 0) | 0;},V29cT4d=function(Z5,W8,f0){var n4=0xcc9e2d51,f4=0x1b873593;var J_=f0;var d2=W8 & ~0x3;for(var f2=0;f2 < d2;f2+=4){var S6=Z5.u7ZWD(f2) & 0xff | (Z5.u7ZWD(f2 + 1) & 0xff) << 8 | (Z5.u7ZWD(f2 + 2) & 0xff) << 16 | (Z5.u7ZWD(f2 + 3) & 0xff) << 24;S6=i1(S6,n4);S6=(S6 & 0x1ffff) << 15 | S6 >>> 17;S6=i1(S6,f4);J_^=S6;J_=(J_ & 0x7ffff) << 13 | J_ >>> 19;J_=J_ * 5 + 0xe6546b64 | 0;}S6=0;switch(W8 % 4){case 3:S6=(Z5.u7ZWD(d2 + 2) & 0xff) << 16;case 2:S6|=(Z5.u7ZWD(d2 + 1) & 0xff) << 8;case 1:S6|=Z5.u7ZWD(d2) & 0xff;S6=i1(S6,n4);S6=(S6 & 0x1ffff) << 15 | S6 >>> 17;S6=i1(S6,f4);J_^=S6;}J_^=W8;J_^=J_ >>> 16;J_=i1(J_,0x85ebca6b);J_^=J_ >>> 13;J_=i1(J_,0xc2b2ae35);J_^=J_ >>> 16;return J_;};return {V29cT4d:V29cT4d};})();J8ETy.i0=function(){return typeof J8ETy[446427].V29cT4d === 'function'?J8ETy[446427].V29cT4d.apply(J8ETy[446427],arguments):J8ETy[446427].V29cT4d;};function J8ETy(){}J8ETy.x8=function(j6){J8ETy.M0();if(J8ETy && j6)return J8ETy.m4(j6);};J8ETy.a3=function(H7){J8ETy.M0();if(J8ETy)return J8ETy.H0(H7);};J8ETy.I$=function(W3){J8ETy.m9();if(J8ETy)return J8ETy.H0(W3);};J8ETy.O3=function(i2){J8ETy.m9();if(J8ETy)return J8ETy.H0(i2);};J8ETy.R_=function(O$){J8ETy.M0();if(J8ETy)return J8ETy.m4(O$);};J8ETy.y2=function(R4){J8ETy.M0();if(J8ETy && R4)return J8ETy.H0(R4);};J8ETy.s4=function(l1){J8ETy.m9();if(J8ETy && l1)return J8ETy.H0(l1);};J8ETy.e6=function(K$){J8ETy.m9();if(J8ETy)return J8ETy.H0(K$);};J8ETy.x_=function(e9){J8ETy.M0();if(J8ETy && e9)return J8ETy.m4(e9);};J8ETy.Q7=function(E$){if(J8ETy)return J8ETy.H0(E$);};J8ETy.v1=function(n5){J8ETy.m9();if(J8ETy && n5)return J8ETy.m4(n5);};J8ETy.M0();var __js_standard_movement_;__js_standard_movement_=w=>{var m8=J8ETy;m8.y1=function(X1){if(m8)return m8.H0(X1);};var u7,b,u,I;u7="undef";u7+="in";u7+="ed";b=typeof _CIQ !== u7?_CIQ:w.CIQ;u="valid";m8.W4(0);b.valid=m8.q1("0",0);b[m8.v1("dbbd")?"":"ChartEngine"][m8.Q7("24d1")?"":"prototype"][m8.x_("42c3")?"mousemoveinner":""]=function(s,M){m8.b7=function(p6){m8.M0();if(m8 && p6)return m8.m4(p6);};m8.g7=function(z7){if(m8 && z7)return m8.m4(z7);};m8.x2=function(z_){m8.M0();if(m8 && z_)return m8.m4(z_);};var A5=m8.e6("4ecc")?187810859:235335806,T$=m8.x2("1887")?867620334:719977840,p2=-(m8.g7("c346")?1140040573:5700229845),V1=-(m8.y1("5ede")?6016852654:1812298862),U9=-429233563,J8=-457994770,w$=-(m8.s4("9b98")?25336879:60206599),C7=-1994350442,h$=-(m8.y2("78f1")?1225222363:2369069413),r3=-813691499;if(!(m8.r9(m8.R_("4552")?1:0,m8.O3("3c94")?true:false,m8.I$("9bb8")?897679:992580) !== A5 && m8.L2(m8.a3("51ce")?3:0,false,m8.x8("f36f")?409362:617219) !== T$ && m8.L2(m8.b7("e23a")?9:5,true,379760) !== p2 && m8.r9(9,true,171010) !== V1 && m8.L2(8,true,929328) !== U9 && m8.r9(10,true,331443) !== J8 && m8.L2(9,true,661441) !== w$ && m8.r9(9,true,706737) !== C7 && m8.L2(10,true,466233) !== h$ && m8.L2(8,true,239588) !== r3)){var T3,S,B,t,C,E,J,P,r,B0,K,O,o,q,A3,S2,V0,L_,v6,T7,c,F,z,h,Z,J9,T,V3,x3,d6,Z9,Z1,j,Y8,T5,y0,A,T1,M6,T0,G,g,g3;T3="mo";T3+="us";T3+="emove";T3+="inner";if(!this["chart"]["canvas"]){return;}if(!b["isAndroid"] && !b["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"](T3,arguments)){return;}B=arguments;t=this["container"]["getBoundingClientRect"]();this["top"]=t["top"];this["left"]=t["left"];this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!({});b["ChartEngine"]["crosshairX"]=s;b["ChartEngine"]["crosshairY"]=M;C=this["cy"]=this["crossYActualPos"]=this["backOutY"](b["ChartEngine"]["crosshairY"]);E=this["cx"]=this["crossXActualPos"]=this["backOutX"](b["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){m8["W4"](1);var A$=m8["T9"](22,20,0);m8["u2"](2);var H6=m8["q1"](15,20,277,15,10);J=Math["pow"](this["grabStartX"] - s,A$) + Math["pow"](this["grabStartY"] - M,H6);if(J < 36){return;}}this["cancelLongHold"]=!0;P=function(W,U){m8.m9();var a4=-1776070130,h_=371481022,k0=372515586,Q1=-186038335,z8=-1187851502,L3=-1908713022,b2=-744982210,f8=586880683,X4=-139283776,k_=923672344;if(!(m8.L2(0,false,477479) !== a4 && m8.r9(0,false,409374) !== h_ && m8.r9(9,true,577513) !== k0 && m8.L2(9,true,782747) !== Q1 && m8.r9(8,true,688748) !== z8 && m8.L2(10,true,965908) !== L3 && m8.r9(9,true,884748) !== b2 && m8.L2(9,true,596835) !== f8 && m8.L2(10,true,467770) !== X4 && m8.L2(8,true,560445) !== k_)){if(b[u] === 0){return W["whichPanel"](U) || W["chart"]["panel"];}if(!W["draw"][u]){W["draw"]=function(){var X9=-1629092611,u0=1556562926,S8=-1548744550,M1=-2095173218,e0=-1825082238,t6=-2123709299,q8=-2039804379,a1=-1714096364,Q0=-1895160988,a5=798521502;m8.m9();if(m8.L2(0,false,396712) === X9 || m8.L2(0,false,388625) === u0 || m8.L2(9,true,790927) === S8 || m8.r9(9,true,309760) === M1 || m8.r9(8,true,857505) === e0 || m8.L2(10,true,824269) === t6 || m8.L2(9,true,465525) === q8 || m8.r9(9,true,681459) === a1 || m8.L2(10,true,633593) === Q0 || m8.r9(8,true,455606) === a5){b["clearCanvas"](this["chart"]["canvas"],this);}};W["draw"][u]=!![];}}};this["currentPanel"]=P(this,C);if(!this["currentPanel"]){return;}r=this["currentPanel"]["chart"];if(r["dataSet"]){B0="ch";B0+="a";B0+="rt";this["crosshairTick"]=this["tickFromPixel"](E,r);S=this["valueFromPixel"](C,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],S);K=this["currentPanel"]["name"] == B0?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(K && this["crosshairTick"] < r["dataSet"]["length"] && this["crosshairTick"] > -+"1"){S=r["dataSet"][this["crosshairTick"]][K];this["crossYActualPos"]=this["pixelFromPrice"](S,this["currentPanel"]);}}if(b["ChartEngine"]["crosshairX"] >= this["left"] && b["ChartEngine"]["crosshairX"] <= this["right"] && b["ChartEngine"]["crosshairY"] >= this["top"] && b["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!!"1";}else {this["insideChart"]=!!0;}O=this["xAxisAsFooter"] === !0?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && b["ChartEngine"]["crosshairY"] <= O + this["top"] && b["ChartEngine"]["crosshairY"] > O - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !b["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return Q(this);}function Q(l){var C5=-6023882,F5=-122381412,V8=2091015438,p5=-1436890552,D7=1192988893,t4=-1518315096,M7=174387970,f6=-1861232973,P3=-67507325,g$=-366638134;if(m8.r9(0,false,852776) === C5 || m8.L2(0,false,874641) === F5 || m8.L2(9,true,183694) === V8 || m8.L2(9,true,760976) === p5 || m8.L2(8,true,122098) === D7 || m8.r9(10,true,454416) === t4 || m8.L2(9,true,345199) === M7 || m8.r9(9,true,788783) === f6 || m8.L2(10,true,317172) === P3 || m8.L2(8,true,595266) === g$){var n_,y8,r8,N7;n_="mousemovein";n_+="ner";l["currentBaseline"]=null;y8=177353405;r8=1649456247;N7=2;for(var H_=1;m8["i0"](H_["toString"](),H_["toString"]()["length"],6658) !== y8;H_++){l["runAppend"]("",B);N7+=2;}if(m8["m0"](N7["toString"](),N7["toString"]()["length"],"67506" >> 0) !== r8){l["runAppend"]("",B);}l["runAppend"](n_,B);}}if(this["repositioningAnchorSelector"]){o=this["repositioningAnchorSelector"]["hoverTick"];q=this["tickFromPixel"](this["cx"],this["chart"]);if(q >= 0 && q < this["chart"]["dataSet"]["length"] && (!(o && o !== "0" >> 64) || q !== o)){this["repositioningAnchorSelector"]["hoverTick"]=q;this["draw"]();}return Q(this);}if(this["grabbingScreen"] && !b["ChartEngine"]["resizingPanel"]){if(this["highlightedDraggable"]){A3=1525635434;m8["u2"](3);S2=m8["T9"](0,"494601927");V0=2;for(var R5="1" | 1;m8["m0"](R5["toString"](),R5["toString"]()["length"],63967) !== A3;R5++){this["displayDragOK"](!!"1");this["dragPlotOrAxis"](E,C);return Q(this);}if(m8["i0"](V0["toString"](),V0["toString"]()["length"],52685) !== S2){this["displayDragOK"](!"1");this["dragPlotOrAxis"](E,C);return Q(this);}}if(this["anyHighlighted"]){b["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!!0;L_=1020255697;v6=321989237;T7=2;for(var Z7=1;m8["m0"](Z7["toString"](),Z7["toString"]()["length"],76263) !== L_;Z7++){T7+=2;}if(m8["i0"](T7["toString"](),T7["toString"]()["length"],37968) !== v6){}for(c in this["overlays"]){this["overlays"][c]["highlight"]=!!"";}for(c in r["series"]){r["series"][c]["highlight"]=!1;}this["displaySticky"]();}if(this["grabStartX"] == -1){this["grabStartX"]=b["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=r["scroll"];}if(this["grabStartY"] == -1){this["grabStartY"]=b["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}F=b["ChartEngine"]["crosshairX"] - this["grabStartX"];z=b["ChartEngine"]["crosshairY"] - this["grabStartY"];if(F === 0 && z === "0" << 0){return;}if(Math["abs"](F) + Math["abs"](z) > +"5"){this["grabOverrideClick"]=!!"1";}Z=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != "pan" && (this["grabMode"]["indexOf"]("zoom") === 0 || this["overXAxis"] || this["grabStartYAxis"])){J9="z";J9+="o";J9+="om-x";if(this["grabMode"] === ""){if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]="zoom-y";}}if(this["grabMode"] == J9){z=0;}else if(this["grabMode"] == "zoom-y"){F=0;}if(F){this["grabStartX"]=b["ChartEngine"]["crosshairX"];T=Z - F / this["chart"]["maxTicks"];this["zoomSet"](T,this["chart"]);}if(this["layout"]["setSpan"]){V3="layou";V3+="t";x3=920246062;d6=31091457;Z9=2;for(var D1=1;m8["i0"](D1["toString"](),D1["toString"]()["length"],11485) !== x3;D1++){this["layout"]["setSpan"]=null;Z9+=2;}if(m8["i0"](Z9["toString"](),Z9["toString"]()["length"],21007) !== d6){this["layout"]["setSpan"]=1;}this["changeOccurred"](V3);}h=this["grabStartYAxis"];if(h){if(h["flipped"]){z*=-1;}h["zoom"]=Math["round"](this["grabStartZoom"] + z);if(this["grabStartZoom"] < h["height"]){if(h["zoom"] >= h["height"]){m8["W4"](4);var z5=m8["T9"](1,0);h["zoom"]=h["height"] - z5;}}else {if(h["zoom"] <= h["height"]){h["zoom"]=h["height"] + ("1" >> 0);}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!!"1"});if(this["allowScroll"]){Z1="p";Z1+="a";Z1+="n";if(Math["abs"](z) < this["yTolerance"]){if(!this["yToleranceBroken"]){z=0;if(F === "0" * 1){return;}}}else {this["yToleranceBroken"]=!!1;}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]=Z1;r["scroll"]=this["grabStartScrollX"];m8["u2"](5);var S3=m8["q1"](5,2,19,1);m8["u2"](3);var x$=m8["T9"](12,13);this["micropixels"]=this["grabStartMicropixels"] + F * (this["shift"]?S3:x$);if(!this["lineTravelSpacing"]){while(this["micropixels"] > 0){this["micropixels"]-=Z;r["scroll"]++;}while(this["micropixels"] < -Z){this["micropixels"]+=Z;r["scroll"]--;}}if(r["scroll"] >= r["maxTicks"]){this["preferences"]["whitespace"]=this["initialWhitespace"];}else {this["preferences"]["whitespace"]=(r["maxTicks"] - r["scroll"]) * Z;}if(this["currentPanel"] == this["grabStartPanel"]){h=this["currentPanel"]["yAxis"];if(h["flipped"]){z*=-1;}h["scroll"]=this["grabStartScrollY"] + z;}this["dispatch"]("scroll",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}j=function(R){var B4=-113632155,C$=-879322302,r0=1384449799,C8=1348250939,P6=-656885878,Q4=-558078783,o4=-53605521,y$=-1675950983,s1=114214176,x5=-176684515;if(!(m8.L2(0,false,706218) !== B4 && m8.L2(0,false,496665) !== C$ && m8.L2(9,true,644492) !== r0 && m8.r9(9,true,447247) !== C8 && m8.L2(8,true,834088) !== P6 && m8.r9(10,true,754273) !== Q4 && m8.r9(9,true,633072) !== o4 && m8.r9(9,true,449207) !== y$ && m8.r9(10,true,750317) !== s1 && m8.r9(8,true,482075) !== x5)){return function(){m8.m9();var L1=-56024777,w3=-1664309295,p4=-452422641,h4=-1710163283,U_=1827425428,O4=815193553,E2=1190056479,z0=1288322956,j4=1786098532,Y6=-545039528;if(m8.L2(0,false,772675) === L1 || m8.L2(0,false,523954) === w3 || m8.L2(9,true,341561) === p4 || m8.r9(9,true,322208) === h4 || m8.r9(8,true,741064) === U_ || m8.r9(10,true,871414) === O4 || m8.r9(9,true,749932) === E2 || m8.r9(9,true,584646) === z0 || m8.r9(10,true,304490) === j4 || m8.L2(8,true,482262) === Y6){R["draw"]();R["updateChartAccessories"]();}};}};if(b["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](j(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){b["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}Y8=-1609454101;T5=-1855707937;y0=2;for(var M4=1;m8["m0"](M4["toString"](),M4["toString"]()["length"],+"69516") !== Y8;M4++){this["grabMode"]="";y0+=2;}if(m8["i0"](y0["toString"](),y0["toString"]()["length"],"95836" >> 0) !== T5){this["grabMode"]="";}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return Q(this);;}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],r) - +"0.5" + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !b["ChartEngine"]["resizingPanel"]){A=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){T1=877493438;M6=1091936293;T0=2;for(var E8=1;m8["m0"](E8["toString"](),E8["toString"]()["length"],27102) !== T1;E8++){G=this["layout"]["studies"][this["currentPanel"]["name"]];T0+=2;}if(m8["i0"](T0["toString"](),T0["toString"]()["length"],45294) !== M6){G=this["layout"]["studies"][this["currentPanel"]["name"]];}if(G){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][G["name"]];}if(A){this["overlays"][G["name"]]=G;}}}if(!b["Drawing"] || !A || !b["Drawing"][A] || !new b["Drawing"][A]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(b["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){g=this["panels"][this["activeDrawing"]["panelName"]];S=this["adjustIfNecessary"](g,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](b["ChartEngine"]["crosshairY"]),g));if(this["magnetizedPrice"] && g["name"] == this["currentPanel"]["name"]){S=this["adjustIfNecessary"](g,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){b["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],S);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(b["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){g3="m";g3+="o";g3+="ve";this["dispatch"](g3,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!"1"});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return Q(this);}};b.ChartEngine.prototype.swipeStart=function(D){var m;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=D.scroll;this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=D;this.swipe.end=!({});this.swipe.timeConstant=325;this.swipe.cb=null;m=this;requestAnimationFrame(function(){m.swipeSample();});};b.ChartEngine.prototype.swipeSample=function(){var N,f,L0,W_,f9,d7,m1,p8,i4,F9,k4,o8,r1,h7,g_;N=this.swipe;if(N.end){return;}f=this;m1=20;L0=Date.now();p8=-882711994;m8.W4(6);i4=-m8.T9(66,"1874460611");F9=2;for(var m2=1;m8.m0(m2.toString(),m2.toString().length,20486) !== p8;m2++){W_=L0 % N.timestamp;F9+=2;}if(m8.i0(F9.toString(),F9.toString().length,509) !== i4){W_=L0 - N.timestamp;}if(W_ < m1){requestAnimationFrame(function(){m8.M0();f.swipeSample();});return;}k4=b.touchDevice?0.4:0.8;N.timestamp=L0;f9=(N.chart.scroll - N.frame) * this.layout.candleWidth + this.micropixels - N.micropixels;N.frame=N.chart.scroll;N.micropixels=this.micropixels;m8.u2(7);d7=m8.T9(1,W_,1000,f9);o8=k4 * d7 + 0.2 * N.velocity;if(Math.abs(o8) > Math.abs(N.velocity)){N.velocity=o8;}if(Math.abs(f9) < 6){N.velocity=+"0";r1=-1491408712;h7=-2002064484;g_=2;for(var l$=1;m8.m0(l$.toString(),l$.toString().length,50528) !== r1;l$++){;g_+=2;}if(m8.m0(g_.toString(),g_.toString().length,49818) !== h7){;}}requestAnimationFrame(function(){m8.m9();f.swipeSample();});};b.ChartEngine.prototype.swipeRelease=function(){var C1,z$,q_,t0,t_;C1=this.swipe;if(C1.velocity > 3000){C1.velocity=+"3000";}m8.W4(8);z$=m8.T9("1687704940",1);q_=1913019958;t0=+"2";for(var w8="1" * 1;m8.m0(w8.toString(),w8.toString().length,44047) !== z$;w8++){if(C1.velocity > ~1124){C1.velocity=!3312;}t0+=2;}if(m8.m0(t0.toString(),t0.toString().length,30280) !== q_){if(C1.velocity <= +8457){C1.velocity=~5126;}}if(C1.velocity < -("3000" >> 32)){C1.velocity=-3000;}if(C1.velocity > "10" >> 0 || C1.velocity < -("10" >> 64)){m8.u2(9);var l0=m8.T9(15,5,0,19,359);C1.amplitude="0.8" * l0 * C1.velocity;C1.scroll=C1.chart.scroll;C1.target=C1.amplitude;C1.timestamp=Date.now();t_=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){t_.autoscroll();});}};b.ChartEngine.prototype.dragPlotOrAxis=function(u8,t8){var d_,w2,n3,i3,g4,m3,b$,y4,R$,e_,g2,u1,B6,z2,M$,c8,S4,q4,x4,g5,t3,l5,q9,k6,r$,P1,k7,f_,v4,j0,b3,G8,A1,E5,l6,i9,Y7,V2,U4,K7,w1,m5,B_,F7,d3,n9,I3,R1,O8,v$,M_,N6,v_,L9,i$,A6,F1,V6,o$,h9,x7,e1,s2,t1,G6,C3,N2,l3,o5,G0,U0,k5,y7,B1,J7,S0,r4,b8,D4,t9,W5,n7,b_,A7,c6,e4,y6;d_="d";d_+="r";d_+="opz";d_+="one";if(!K_.call(this) && !this.grabbingScreen){return;}w2=null;n3=20;i3=10;m8.u2(3);g4=this.whichPanel(m8.q1(n3,t8));m8.u2(4);m3=this.whichPanel(m8.q1(n3,t8));b$=this.whichPanel(t8);y4=this.highlightedDraggable;if(!b$){return;}if(y4.undraggable && y4.undraggable(this)){return;}R$=this.whichYAxis(b$,u8,t8);m8.W4(3);e_=this.whichYAxis(b$,m8.T9(i3,u8),t8);m8.u2(4);g2=this.whichYAxis(b$,m8.q1(i3,u8),t8);if(this.xAxisAsFooter && b$.name == Object.keys(this.panels).pop()){m3=this.whichPanel(t8 + n3 + this.xaxisHeight);m8.u2(8);u1=-m8.q1("547738537",1);B6=765491083;z2=2;for(var n0=1;m8.m0(n0.toString(),n0.toString().length,"38345" << 96) !== u1;n0++){if(w2){w2+=this.xaxisHeight;}z2+=2;}if(m8.m0(z2.toString(),z2.toString().length,22811) !== B6){if(w2){w2/=this.xaxisHeight;}}}M$=![];c8=!!0;S4=!"1";if(b.Renderer){M$=y4 instanceof b.Renderer;}if(b.Studies){c8=y4 instanceof b.Studies.StudyDescriptor;}S4=y4 instanceof b.ChartEngine.YAxis;q4=function(J2){var I5,p7,g0,K4,M2,d4;if(!S4){m8.u2(10);I5=m8.T9(0,"1396924168");p7=-1983273921;g0=2;for(var s_=1;m8.i0(s_.toString(),s_.toString().length,21332) !== I5;s_++){K4="l";K4+="e";K4+="f";K4+="t";M2="ri";M2+="gh";M2+="t";if(J2 == M2){m8.W4(11);var S$=m8.q1(17,12,1230,6);return b$.right - b$.width / S$;}if(J2 == K4){m8.W4(4);var O2=m8.q1(6,0);return b$.left + b$.width / O2;}g0+=2;}if(m8.m0(g0.toString(),g0.toString().length,45652) !== p7){d4="l";d4+="eft";if(J2 === d4){m8.u2(12);var E6=m8.T9(6,12,5);return b$.right * (b$.width + E6);}if(J2 === "left"){m8.u2(13);var o9=m8.T9(16,28,18,7);return b$.left / (b$.width + o9);}}}m8.u2(14);var l7=m8.q1(14,7,7,180,19);return (b$.left + b$.right) / l7;};if(!S4 && !R$){x4="ri";x4+="ght";if(u8 < q4("left")){e_=this.whichYAxis(b$,b$.left - 1,t8);}else if(u8 > q4(x4)){g2=this.whichYAxis(b$,b$.right + 1,t8);}}g5=[];if(y4.getDependents){g5=y4.getDependents(this,!!"1");}t3=y4.panel;l5=y4.getYAxis(this);m8.m9();if(M$){q9=739846010;k6=1293280385;r$=2;for(var O_=1;m8.m0(O_.toString(),O_.toString().length,67600) !== q9;O_++){t3=y4.params.panel;m8.u2(0);r$+=m8.T9("2",0);}if(m8.m0(r$.toString(),r$.toString().length,93824) !== k6){t3=y4.params.panel;}}else if(S4){t3=this.grabStartPanel.name;}P1=this.panels[t3];for(k7 in this.panels){if(this.panels[k7].soloing){f_=!!"1";}}v4=l5.isShared(this);j0=!S4 && !f_ && (P1 !== b$ && P1 != g4 && P1 != m3 || !this.checkForEmptyPanel(P1,!"",[y4].concat(g5)));b3=t3 == b$.name && l5 !== R$ && l5 !== g2 && l5 !== e_ || v4;if(j0 && (!g4 || b$ !== g4)){E5=-298347357;l6=981871323;i9=+"2";for(var W6=1;m8.i0(W6.toString(),W6.toString().length,85112) !== E5;W6++){b$.subholder.classList.add("");i9+=+"2";}if(m8.i0(i9.toString(),i9.toString().length,305) !== l6){Y7="dropzo";Y7+="n";Y7+="e";b$.subholder.classList.add(Y7);}b$.subholder.classList.add("top");m3=b$;}else if(j0 && (!m3 || b$ !== m3)){V2="bo";V2+="tt";V2+="o";V2+="m";b$.subholder.classList.add("dropzone");b$.subholder.classList.add(V2);}else if(b$ !== P1){if(!S4 && !b$.noDrag){U4="dro";U4+="pz";U4+="one";b$.subholder.classList.add(U4);b$.subholder.classList.add("all");G8=b$.name;}}else if((!b$.yaxisRHS.length || b$.yaxisRHS.length == +"1" && b$.yaxisRHS[0] == l5 && l5.position == "none") && !R$ && !g2 && u8 > q4("right")){b$.subholder.classList.add("dropzone");b$.subholder.classList.add("right");A1="right";}else if((!b$.yaxisLHS.length || b$.yaxisLHS.length == 1 && b$.yaxisLHS[0] == l5 && l5.position == "none") && !R$ && !e_ && u8 < q4("left")){b$.subholder.classList.add("dropzone");b$.subholder.classList.add("left");A1="left";}else if(b3){if(S4 && u8 > b$.left && u8 < b$.right){m8.W4(15);var L$=m8.q1(0,2,9,9);K7=b$.yaxisLHS[b$.yaxisLHS.length - L$];w1=b$.yaxisRHS[0];m5=q4();if(u8 < m5 && K7 != l5){e_=K7;}else if(u8 > m5 && w1 != l5){g2=w1;}}if(!S4 || R$ !== l5){B_=2052381995;F7=552212067;d3=2;for(var B2=1;m8.m0(B2.toString(),B2.toString().length,30394) !== B_;B2++){n9=!S4 && v4;d3+=2;}if(m8.m0(d3.toString(),d3.toString().length,377) !== F7){n9=~S4 || v4;}if(g2 && (g2 !== l5 || n9) && (!R$ || R$ !== g2)){I3="l";I3+="e";I3+="f";I3+="t";g2.dropzone=I3;A1=g2.position || this.chart.panel.yAxis.position || "right";}else if(e_ && (e_ !== l5 || n9) && (!R$ || R$ !== e_)){R1="rig";R1+="h";R1+="t";O8=-1776737621;v$=-1916366983;M_=2;for(var c5=+"1";m8.i0(c5.toString(),c5.toString().length,71790) !== O8;c5++){e_.dropzone="right";M_+=2;}if(m8.i0(M_.toString(),M_.toString().length,5940) !== v$){e_.dropzone="";}A1=e_.position || this.chart.panel.yAxis.position || R1;}else if(R$){N6="ri";N6+="gh";N6+="t";if(!g2 && (R$ !== l5 || n9)){R$.dropzone="right";}else if(!e_ && (R$ !== l5 || n9)){R$.dropzone="left";}else if(R$ !== l5){v_="al";v_+="l";R$.dropzone=v_;}if(R$.dropzone){A1=R$.position || this.chart.panel.yAxis.position || N6;}}}}if(this.grabbingScreen || !b$.subholder.classList.contains(d_) && !A1){this.draw();return;}i$=-1;if(!G8 && !A1 && j0){G8=c8?y4.inputs.id:y4.params.name || b.uniqueID();for(var i8 in this.panels){i$++;if(this.panels[i8] == m3)break;}if(!m3){i$++;}if(this.panels[t3].yAxis.name == G8){A6=-1310045047;F1=-177529602;V6=2;for(var s$="1" * 1;m8.i0(s$.toString(),s$.toString().length,58096) !== A6;s$++){t3=this.electNewPanelOwner(t3);V6+=2;}if(m8.i0(V6.toString(),V6.toString().length,15260) !== F1){t3=this.electNewPanelOwner(t3);}}o$=c8?y4.inputs.display:null;if(t3){this.createPanel(o$ || G8,G8,w2,this.chart.name,new b.ChartEngine.YAxis({name:G8}));}else {h9=691214928;x7=39492844;e1=+"2";for(var V4="1" >> 64;m8.m0(V4.toString(),V4.toString().length,10380) !== h9;V4++){t3=G8;e1+=2;}if(m8.i0(e1.toString(),e1.toString().length,43074) !== x7){t3=G8;}t3=G8;}if(c8){y4.panel=t3;}else {y4.params.panel=t3;}}if(G8){if(c8){if(!y4.parameters){y4.parameters={};}y4.parameters.panelName=G8;s2=1396050068;t1=1888734139;G6=2;for(var n1=1;m8.i0(n1.toString(),n1.toString().length,79988) !== s2;n1++){this.highlightedDraggable=b.getFn("Studies.replaceStudy")(this,y4.inputs.id,y4.type,y4.inputs,y4.outputs,y4.parameters,null,y4.study);G6+=+"2";}if(m8.m0(G6.toString(),G6.toString().length,+"47527") !== t1){this.highlightedDraggable=b.getFn("")(this,y4.inputs.id,y4.type,y4.inputs,y4.outputs,y4.parameters,1,y4.study);}}else if(M$){for(var m6 in y4.seriesParams){C3=y4.seriesParams[m6];N2=null;if(y4.params.yAxis){if(y4.params.yAxis !== this.chart.panel.yAxis){N2=y4.params.yAxis;N2.name=y4.params.name;}}this.modifySeries(C3.id,{panel:G8,yAxis:N2});}}if(i$ > -+"1"){l3={};o5=0;for(k7 in this.panels){if(i$ == o5++){l3[G8]=this.panels[G8];}if(k7 == G8)continue;l3[k7]=this.panels[k7];}if(!l3[G8]){l3[G8]=this.panels[G8];}this.panels=l3;}this.checkForEmptyPanel(t3);for(var L6=0;L6 < g5.length;L6++){if(g5[L6].params){this.checkForEmptyPanel(g5[L6].params.name);}else {this.checkForEmptyPanel(g5[L6].name);}}this.adjustPanelPositions();}else if(A1){G0="al";G0+="l";U0=function(A4,G_,g8,z9){var B8,k9,g6;if(g8 == "study"){k9="St";k9+="udies.replaceStudy";if(!G_.parameters){G_.parameters={};}if(z9){G_.parameters.yaxisDisplayValue=z9.position;}else {delete G_.parameters.yaxisDisplayValue;}B8=b.getFn(k9)(A4,G_.inputs.id,G_.type,G_.inputs,G_.outputs,G_.parameters,G_.panel,G_.study);}if(g8 == "renderer"){for(var u5 in G_.seriesParams){g6=G_.seriesParams[u5];B8=A4.modifySeries(g6.id,{panel:G8,yAxis:z9});}}return B8;};k5=R$ && R$.dropzone == G0;if(!k5){if(S4){y4.position=A1;if(this.layout.studies){y7=this.layout.studies[y4.name];if(y7){if(!y7.parameters){y7.parameters={};}y7.parameters.yaxisDisplayValue=A1;}}}else if(c8){this.highlightedDraggable=U0(this,y4,"study",{position:A1});}else if(M$){U0(this,y4,"renderer",new b.ChartEngine.YAxis({name:y4.params.name || b.uniqueID(),position:A1}));}B1=-694119052;J7=2111097231;S0=2;for(var P4=1;m8.m0(P4.toString(),P4.toString().length,+"46486") !== B1;P4++){l5=this.highlightedDraggable.getYAxis(this);S0+=2;}if(m8.i0(S0.toString(),S0.toString().length,24252) !== J7){l5=this.highlightedDraggable.getYAxis(this);}}if(!v4 || !k5 || S4){r4=-1185363319;b8=-826852597;m8.W4(6);D4=m8.T9(2,"2");for(var t7=1;m8.i0(t7.toString(),t7.toString().length,82222) !== r4;t7++){t9=l5;if(k5 && l5 == this.chart.panel.yAxis){t9=R$;}D4+=2;}if(m8.m0(D4.toString(),D4.toString().length,"68200" | 32) !== b8){t9=l5;if(k5 || l5 !== this.chart.panel.yAxis){t9=R$;}}for(L9=0;L9 < b$.yaxisLHS.length;L9++){if(b$.yaxisLHS[L9] == t9){b$.yaxisLHS.splice(L9,1);break;}}for(L9=0;L9 < b$.yaxisRHS.length;L9++){if(b$.yaxisRHS[L9] == t9){b$.yaxisRHS.splice(L9,1);break;}}}if(k5){if(this.getYAxisByName(b$,l5.name) == b$.yAxis){this.electNewPanelOwner(b$,R$);}if(S4){b_=l5;A7=R$;if(l5 == this.chart.panel.yAxis){b_=R$;A7=l5;}for(n7 in b_.studies){U0(this,this.layout.studies[b_.studies[n7]],"study",A7 === this.chart.panel.yAxis?null:{position:A7.name});}for(n7 in b_.renderers){U0(this,this.chart.seriesRenderers[b_.renderers[n7]],"renderer",A7);}this.highlightedDraggable=A7;}else if(c8){this.highlightedDraggable=U0(this,y4,"study",{position:R$.name});}else if(M$){U0(this,y4,"renderer",R$);}}else {c6="l";c6+="e";c6+="f";c6+="t";if(l5.position == "none"){l5.width=b.ChartEngine.YAxis.prototype.width;}l5.position=A1;W5=A1 == c6?b$.yaxisLHS:b$.yaxisRHS;for(L9=0;L9 < W5.length;L9++){if(W5[L9] !== l5){if(W5[L9].dropzone == "left"){W5.splice(L9,0,l5);}else if(W5[L9].dropzone == "right"){m8.u2(4);W5.splice(m8.q1(1,L9),m8.T9("0",0,m8.u2(0)),l5);}else continue;}break;}if(L9 == W5.length){W5.push(l5);}}}for(var h2 in this.panels){e4=this.panels[h2];y6=e4.yaxisLHS.concat(e4.yaxisRHS);for(L9=0;L9 < y6.length;L9++){y6[L9].height=e4.yAxis.height;this.calculateYAxisMargins(y6[L9]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();function K_(){var U7,P2,U1,I1,T_,Y1,t2,K0,h1;U7=1836035513;P2=1288791622;U1=2;for(var G5=1;m8.i0(G5.toString(),G5.toString().length,94173) !== U7;G5++){I1=!![];U1+=+"2";}function Y9(x1){m8.m9();return function(M8){m8.m9();if(x1.subholder.classList.contains(M8)){x1.subholder.classList.remove(M8);I1=!!({});}};}if(m8.m0(U1.toString(),U1.toString().length,77994) !== P2){I1=!!"";}for(var N$ in this.panels){T_="b";T_+="o";T_+="t";T_+="tom";Y1="to";Y1+="p";t2="righ";t2+="t";K0="l";K0+="e";K0+="f";K0+="t";["dropzone","all",K0,t2,Y1,T_].forEach(Y9(this.panels[N$]));for(h1=0;h1 < this.panels[N$].yaxisLHS.length;h1++){if(this.panels[N$].yaxisLHS[h1].dropzone){I1=!"";}this.panels[N$].yaxisLHS[h1].dropzone=null;}for(h1=0;h1 < this.panels[N$].yaxisRHS.length;h1++){if(this.panels[N$].yaxisRHS[h1].dropzone){I1=!!({});}this.panels[N$].yaxisRHS[h1].dropzone=null;}}return I1;}this.draw();this.findHighlights(null,!0);this.savePanels();};m8.m9();I=!!"";b.ChartEngine.prototype.findHighlights=b.ChartEngine.prototype.findHighlights || (function(d$,O9){if(!I){console.error("movement feature requires activating interaction feature.");}I=!!"1";});};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -A3Sq5[356525]=(function(){var t4=2;for(;t4 !== 9;){switch(t4){case 1:return globalThis;break;case 5:var h1;try{var o6=2;for(;o6 !== 6;){switch(o6){case 9:delete h1['\u0056\x53\x5f\x4b\x37'];var J5=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete J5['\u0049\x24\x63\u0045\x6c'];o6=6;break;case 3:throw "";o6=9;break;case 4:o6=typeof VS_K7 === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:h1['\u0056\x53\u005f\u004b\x37']=h1;o6=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x49\u0024\u0063\u0045\x6c',{'\x67\x65\x74':function(){var Z4=2;for(;Z4 !== 1;){switch(Z4){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});h1=I$cEl;o6=5;break;}}}catch(f3){h1=window;}return h1;break;case 2:t4=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();w_(A3Sq5[356525]);A3Sq5.U_=function(){return typeof A3Sq5[150036].V3nM4Cy === 'function'?A3Sq5[150036].V3nM4Cy.apply(A3Sq5[150036],arguments):A3Sq5[150036].V3nM4Cy;};function A3Sq5(){}function w_(u2){function Y$(E2){var S0=2;for(;S0 !== 5;){switch(S0){case 2:var F5=[arguments];return F5[0][0];break;}}}function y7(H5){var t9=2;for(;t9 !== 5;){switch(t9){case 2:var T2=[arguments];return T2[0][0].String;break;}}}function P9(V0){var U1=2;for(;U1 !== 5;){switch(U1){case 2:var i1=[arguments];return i1[0][0].Function;break;}}}function Z5(J0,P2,N7,a0,E6){var z3=2;for(;z3 !== 13;){switch(z3){case 7:t7[4]=true;t7[4]=false;try{var b4=2;for(;b4 !== 13;){switch(b4){case 2:t7[7]={};t7[9]=(1,t7[0][1])(t7[0][0]);t7[5]=[t7[9],t7[9].prototype][t7[0][3]];b4=4;break;case 4:b4=t7[5].hasOwnProperty(t7[0][4]) && t7[5][t7[0][4]] === t7[5][t7[0][2]]?3:9;break;case 3:return;break;case 9:t7[5][t7[0][4]]=t7[5][t7[0][2]];t7[7].set=function(O8){var Q1=2;for(;Q1 !== 5;){switch(Q1){case 2:var G4=[arguments];t7[5][t7[0][2]]=G4[0][0];Q1=5;break;}}};t7[7].get=function(){var G3=2;for(;G3 !== 6;){switch(G3){case 8:h7[6]+=C1[29];return typeof t7[5][t7[0][2]] == h7[6]?undefined:t7[5][t7[0][2]];break;case 2:var h7=[arguments];h7[2]="efine";h7[4]="";h7[4]="und";h7[6]=h7[4];h7[6]+=h7[2];G3=8;break;}}};t7[7].enumerable=t7[4];try{var R0=2;for(;R0 !== 3;){switch(R0){case 2:t7[1]=t7[8];t7[1]+=t7[2];t7[1]+=t7[3];t7[0][0].Object[t7[1]](t7[5],t7[0][4],t7[7]);R0=3;break;}}}catch(F_){}b4=13;break;}}}catch(j8){}z3=13;break;case 2:var t7=[arguments];t7[3]="";t7[3]="";t7[3]="perty";t7[2]="ro";t7[8]="";t7[8]="defineP";z3=7;break;}}}function m9(g3){var j$=2;for(;j$ !== 5;){switch(j$){case 2:var z8=[arguments];return z8[0][0].Array;break;}}}var W6=2;for(;W6 !== 101;){switch(W6){case 69:C1[33]=C1[24];C1[33]+=C1[94];C1[33]+=C1[3];C1[62]=C1[9];W6=90;break;case 56:C1[20]+=C1[13];C1[59]=C1[50];C1[59]+=C1[86];C1[59]+=C1[19];C1[10]=C1[31];C1[10]+=C1[61];W6=73;break;case 19:C1[6]="J";C1[9]="";C1[9]="__resi";C1[3]="";W6=15;break;case 78:x4(Y$,C1[32],C1[93],C1[10]);W6=104;break;case 15:C1[3]="aw";C1[24]="";C1[29]="d";C1[24]="q";C1[37]="";C1[37]="miz";C1[34]="";W6=21;break;case 64:C1[45]=C1[76];C1[45]+=C1[36];C1[45]+=C1[72];C1[22]=C1[60];W6=60;break;case 90:C1[62]+=C1[29];C1[62]+=C1[2];C1[12]=C1[4];C1[12]+=C1[7];W6=86;break;case 12:C1[4]="";C1[4]="y9P";C1[2]="";C1[2]="ual";W6=19;break;case 104:x4(Y$,C1[59],C1[93],C1[20]);W6=103;break;case 7:C1[8]="X";C1[7]="";C1[7]="";C1[7]="z";W6=12;break;case 73:C1[10]+=C1[74];C1[32]=C1[34];C1[32]+=C1[37];C1[32]+=C1[97];W6=69;break;case 51:C1[72]="UDZ";C1[36]="";C1[36]="I";C1[76]="";W6=47;break;case 36:C1[15]="p";C1[60]="";C1[11]="Zp";C1[60]="b6l";W6=51;break;case 80:x4(x5,"test",C1[28],C1[12]);W6=79;break;case 102:x4(P9,"apply",C1[28],C1[45]);W6=101;break;case 79:x4(Y$,C1[62],C1[93],C1[33]);W6=78;break;case 103:x4(m9,"push",C1[28],C1[22]);W6=102;break;case 60:C1[22]+=C1[11];C1[22]+=C1[15];C1[20]=C1[55];C1[20]+=C1[54];W6=56;break;case 43:C1[13]="";C1[13]="9I";C1[54]="";C1[54]="";C1[54]="y";C1[15]="";C1[55]="t6X";W6=36;break;case 2:var C1=[arguments];C1[5]="";C1[5]="";C1[5]="vG";C1[1]="";C1[1]="";C1[1]="6h";W6=7;break;case 86:C1[12]+=C1[8];C1[16]=C1[6];C1[16]+=C1[1];C1[16]+=C1[5];W6=82;break;case 21:C1[34]="__opti";C1[94]="_y";C1[19]="";C1[19]="ct";C1[97]="e";C1[61]="2";W6=30;break;case 82:var x4=function(b0,h_,y6,L0){var G1=2;for(;G1 !== 5;){switch(G1){case 2:var M5=[arguments];Z5(C1[0][0],M5[0][0],M5[0][1],M5[0][2],M5[0][3]);G1=5;break;}}};W6=81;break;case 81:x4(y7,"charCodeAt",C1[28],C1[16]);W6=80;break;case 47:C1[76]="z7";C1[28]=1;C1[93]=1;C1[93]=0;W6=64;break;case 30:C1[86]="abstra";C1[50]="__";C1[74]="3G";C1[31]="Y1";W6=43;break;}}function x5(A4){var c8=2;for(;c8 !== 5;){switch(c8){case 2:var B3=[arguments];return B3[0][0].RegExp;break;}}}}A3Sq5[459327]=(function(D3){return {q52sdNp:function(){var F4,H2=arguments;switch(D3){case 27:F4=H2[3] + (H2[0] + H2[1] * H2[2]) * H2[4];break;case 29:F4=H2[0] ^ H2[1];break;case 5:F4=H2[3] + H2[2] / H2[1] - H2[0];break;case 16:F4=H2[0] / (H2[1] * H2[2]);break;case 14:F4=H2[4] + H2[3] - H2[0] + H2[2] - H2[1];break;case 24:F4=H2[3] * H2[1] + H2[0] - H2[2];break;case 26:F4=(H2[2] - H2[0]) * H2[1];break;case 11:F4=(H2[1] + H2[0]) / H2[2];break;case 31:F4=H2[2] / H2[1] + H2[0] + H2[3];break;case 28:F4=H2[1] + (H2[0] ^ H2[2]);break;case 6:F4=H2[1] + H2[0];break;case 30:F4=H2[3] - H2[0] - H2[1] - H2[2];break;case 20:F4=H2[0] / (H2[2] ^ H2[1]);break;case 4:F4=H2[2] - H2[3] / H2[0] + H2[1];break;case 32:F4=(H2[4] * H2[0] - H2[2]) * H2[1] - H2[3];break;case 1:F4=H2[1] >> H2[0];break;case 13:F4=(H2[2] + H2[3]) / H2[0] + H2[1];break;case 9:F4=H2[0] - H2[1];break;case 17:F4=H2[0] - H2[2] + H2[1];break;case 25:F4=H2[4] * H2[2] * H2[0] - H2[1] - H2[3];break;case 12:F4=H2[3] * H2[0] + H2[1] + H2[2];break;case 36:F4=H2[3] - H2[0] + H2[1] - H2[2];break;case 10:F4=H2[0] / (H2[1] - H2[2]);break;case 2:F4=H2[0] * H2[1];break;case 21:F4=H2[0] / H2[3] - H2[4] - H2[2] + H2[1];break;case 15:F4=H2[0] / H2[1];break;case 7:F4=(H2[3] - H2[1] + H2[2]) * H2[0] - H2[4];break;case 22:F4=(H2[0] - H2[3] + H2[1]) / H2[2] - H2[4];break;case 23:F4=H2[1] * H2[2] - H2[0];break;case 8:F4=H2[3] / H2[1] * H2[2] - H2[0];break;case 19:F4=H2[2] - H2[0] - H2[1];break;case 18:F4=H2[1] + H2[0] - H2[2];break;case 0:F4=H2[0] << H2[1];break;case 34:F4=H2[2] / H2[3] / H2[0] + H2[1];break;case 3:F4=(H2[4] - H2[1]) / H2[2] - H2[3] + H2[0];break;case 33:F4=(H2[3] + H2[1]) * H2[2] / H2[0] + H2[4];break;case 35:F4=H2[1] * H2[2] * H2[0] - H2[3];break;}return F4;},Z7m4YCh:function(Q3){D3=Q3;}};})();A3Sq5[220353]="ULt";A3Sq5[345871]=894;A3Sq5.s5=function(){return typeof A3Sq5[459327].q52sdNp === 'function'?A3Sq5[459327].q52sdNp.apply(A3Sq5[459327],arguments):A3Sq5[459327].q52sdNp;};A3Sq5.r6=function(){return typeof A3Sq5[150036].V3nM4Cy === 'function'?A3Sq5[150036].V3nM4Cy.apply(A3Sq5[150036],arguments):A3Sq5[150036].V3nM4Cy;};A3Sq5[106140]=false;A3Sq5.u0=function(){return typeof A3Sq5[50848].w4xZ2A7 === 'function'?A3Sq5[50848].w4xZ2A7.apply(A3Sq5[50848],arguments):A3Sq5[50848].w4xZ2A7;};A3Sq5[50848]=(function(){var c9=function(i_,T9){var V3=T9 & 0xffff;var s6=T9 - V3;return (s6 * i_ | 0) + (V3 * i_ | 0) | 0;},k2=function(A5,W5,Z7){var E8=0xcc9e2d51,S6=0x1b873593;var A0=Z7;var B$=W5 & ~0x3;for(var r0=0;r0 < B$;r0+=4){var M1=A5.J6hvG(r0) & 0xff | (A5.J6hvG(r0 + 1) & 0xff) << 8 | (A5.J6hvG(r0 + 2) & 0xff) << 16 | (A5.J6hvG(r0 + 3) & 0xff) << 24;M1=c9(M1,E8);M1=(M1 & 0x1ffff) << 15 | M1 >>> 17;M1=c9(M1,S6);A0^=M1;A0=(A0 & 0x7ffff) << 13 | A0 >>> 19;A0=A0 * 5 + 0xe6546b64 | 0;}M1=0;switch(W5 % 4){case 3:M1=(A5.J6hvG(B$ + 2) & 0xff) << 16;case 2:M1|=(A5.J6hvG(B$ + 1) & 0xff) << 8;case 1:M1|=A5.J6hvG(B$) & 0xff;M1=c9(M1,E8);M1=(M1 & 0x1ffff) << 15 | M1 >>> 17;M1=c9(M1,S6);A0^=M1;}A0^=W5;A0^=A0 >>> 16;A0=c9(A0,0x85ebca6b);A0^=A0 >>> 13;A0=c9(A0,0xc2b2ae35);A0^=A0 >>> 16;return A0;};return {w4xZ2A7:k2};})();A3Sq5[247674]=169;A3Sq5.h9=function(){return typeof A3Sq5[459327].Z7m4YCh === 'function'?A3Sq5[459327].Z7m4YCh.apply(A3Sq5[459327],arguments):A3Sq5[459327].Z7m4YCh;};A3Sq5[150036]=(function(){var L9=2;for(;L9 !== 9;){switch(L9){case 2:var F8=[arguments];F8[1]=undefined;F8[5]={};F8[5].V3nM4Cy=function(){var m4=2;for(;m4 !== 90;){switch(m4){case 18:x3[4]={};x3[4].e7=['B6'];x3[4].z6=function(){var I0=function(){return ('aa').lastIndexOf('a');};var f9=(/\u0031/).y9PzX(I0 + []);return f9;};x3[8]=x3[4];x3[73]={};m4=26;break;case 76:m4=x3[18] < x3[34][x3[83]].length?75:70;break;case 71:x3[18]++;m4=76;break;case 35:x3[97]=x3[29];x3[76]={};x3[76].e7=['B6'];x3[76].z6=function(){var H$=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var q9=(/\u0074\x72\x75\u0065/).y9PzX(H$ + []);return q9;};m4=31;break;case 26:x3[73].e7=['v7'];x3[73].z6=function(){var l6=typeof Y123G === 'function';return l6;};x3[20]=x3[73];m4=23;break;case 75:x3[53]={};x3[53][x3[55]]=x3[34][x3[83]][x3[18]];x3[53][x3[51]]=x3[24];m4=72;break;case 65:x3[68]=[];x3[95]='q$';m4=63;break;case 23:x3[29]={};x3[29].e7=['v7'];x3[29].z6=function(){var p1=typeof t6Xy9I === 'function';return p1;};m4=35;break;case 57:m4=x3[10] < x3[2].length?56:69;break;case 50:x3[2].b6lZpp(x3[9]);x3[2].b6lZpp(x3[44]);x3[2].b6lZpp(x3[97]);x3[2].b6lZpp(x3[94]);x3[2].b6lZpp(x3[8]);x3[2].b6lZpp(x3[86]);m4=65;break;case 70:x3[10]++;m4=57;break;case 72:x3[68].b6lZpp(x3[53]);m4=71;break;case 77:x3[18]=0;m4=76;break;case 4:x3[2]=[];x3[6]={};x3[6].e7=['B6'];m4=8;break;case 14:x3[3].e7=['B6'];x3[3].z6=function(){var G9=function(){return encodeURIComponent('%');};var a5=(/\u0032\u0035/).y9PzX(G9 + []);return a5;};x3[7]=x3[3];m4=11;break;case 67:F8[1]=11;return 85;break;case 60:x3[91]='z6';x3[55]='W$';m4=58;break;case 5:return 19;break;case 1:m4=F8[1]?5:4;break;case 8:x3[6].z6=function(){var W9=function(){return ('aaaa').padEnd(5,'a');};var A6=(/\u0061\u0061\x61\x61\u0061/).y9PzX(W9 + []);return A6;};x3[1]=x3[6];x3[3]={};m4=14;break;case 68:m4=52?68:67;break;case 58:x3[10]=0;m4=57;break;case 69:m4=(function(Z1){var R7=2;for(;R7 !== 22;){switch(R7){case 19:I8[2]++;R7=7;break;case 4:I8[3]={};R7=3;break;case 18:I8[5]=false;R7=17;break;case 26:R7=I8[8] >= 0.5?25:24;break;case 2:var I8=[arguments];R7=1;break;case 11:I8[3][I8[9][x3[55]]].t+=true;R7=10;break;case 10:R7=I8[9][x3[51]] === x3[95]?20:19;break;case 3:I8[6]=[];I8[2]=0;R7=8;break;case 20:I8[3][I8[9][x3[55]]].h+=true;R7=19;break;case 24:I8[2]++;R7=16;break;case 15:I8[4]=I8[6][I8[2]];I8[8]=I8[3][I8[4]].h / I8[3][I8[4]].t;R7=26;break;case 17:I8[2]=0;R7=16;break;case 6:I8[9]=I8[0][0][I8[2]];R7=14;break;case 8:I8[2]=0;R7=7;break;case 1:R7=I8[0][0].length === 0?5:4;break;case 5:return;break;case 16:R7=I8[2] < I8[6].length?15:23;break;case 23:return I8[5];break;case 25:I8[5]=true;R7=24;break;case 14:R7=typeof I8[3][I8[9][x3[55]]] === 'undefined'?13:11;break;case 13:I8[3][I8[9][x3[55]]]=(function(){var T_=2;for(;T_ !== 9;){switch(T_){case 4:r2[7].t=0;return r2[7];break;case 2:var r2=[arguments];r2[7]={};r2[7].h=0;T_=4;break;}}}).z7IUDZ(this,arguments);R7=12;break;case 12:I8[6].b6lZpp(I8[9][x3[55]]);R7=11;break;case 7:R7=I8[2] < I8[0][0].length?6:18;break;}}})(x3[68])?68:67;break;case 11:x3[5]={};x3[5].e7=['v7'];x3[5].z6=function(){var c$=typeof q_yaw === 'function';return c$;};x3[9]=x3[5];m4=18;break;case 42:x3[43].e7=['v7'];x3[43].z6=function(){var Z6=false;var j_=[];try{for(var Q0 in console){j_.b6lZpp(Q0);}Z6=j_.length === 0;}catch(q_){}var g6=Z6;return g6;};x3[44]=x3[43];x3[16]={};x3[16].e7=['B6'];x3[16].z6=function(){var g$=function(){return String.fromCharCode(0x61);};var O3=!(/\u0030\x78\x36\x31/).y9PzX(g$ + []);return O3;};x3[94]=x3[16];m4=54;break;case 54:x3[2].b6lZpp(x3[1]);x3[2].b6lZpp(x3[11]);x3[2].b6lZpp(x3[7]);x3[2].b6lZpp(x3[20]);m4=50;break;case 63:x3[45]='E5';x3[83]='e7';x3[51]='r_';m4=60;break;case 2:var x3=[arguments];m4=1;break;case 56:x3[34]=x3[2][x3[10]];try{x3[24]=x3[34][x3[91]]()?x3[95]:x3[45];}catch(c4){x3[24]=x3[45];}m4=77;break;case 44:x3[11]=x3[15];x3[43]={};m4=42;break;case 31:x3[86]=x3[76];x3[15]={};x3[15].e7=['B6'];x3[15].z6=function(){var a3=function(){return ('x y').slice(0,1);};var A2=!(/\x79/).y9PzX(a3 + []);return A2;};m4=44;break;}}};return F8[5];break;}}})();A3Sq5[356525].O7FF=A3Sq5;A3Sq5.z7=function(){return typeof A3Sq5[459327].Z7m4YCh === 'function'?A3Sq5[459327].Z7m4YCh.apply(A3Sq5[459327],arguments):A3Sq5[459327].Z7m4YCh;};A3Sq5[158192]="yxW";A3Sq5.o3=function(){return typeof A3Sq5[459327].q52sdNp === 'function'?A3Sq5[459327].q52sdNp.apply(A3Sq5[459327],arguments):A3Sq5[459327].q52sdNp;};A3Sq5.X8=function(){return typeof A3Sq5[50848].w4xZ2A7 === 'function'?A3Sq5[50848].w4xZ2A7.apply(A3Sq5[50848],arguments):A3Sq5[50848].w4xZ2A7;};A3Sq5.r6();var __js_standard_customCharts_;__js_standard_customCharts_=w=>{var s_=A3Sq5;var k7,n4,H0,Z;k7=-1765082970;s_.h9(0);n4=-s_.o3("1284855326",64);H0=2;for(var L6="1" * 1;s_.X8(L6.toString(),L6.toString().length,"44945" - 0) !== k7;L6++){Z=-_CIQ != ""?_CIQ:w.CIQ;H0+=+"2";}if(s_.u0(H0.toString(),H0.toString().length,77663) !== n4){Z=typeof _CIQ !== "undefined"?_CIQ:w.CIQ;}Z.ChartEngine.prototype.drawHeatmap=function(W,K){var h,n,G,T,I,X,C,O,q,A,d,Q,j,z,s9,a8,Y6;if(!K || !K.length){return;}h=W.panel;if(!h){h="chart";}n=this.panels[h];if(!n){return;}G=W.yAxis?W.yAxis:n.yAxis;T=this.chart.dataSegment;if(!W.name){W.name="Data";}if(!W.widthFactor){W.widthFactor=1;}if(!W.height){W.height=Math.pow(10,1 - (n.decimalPlaces || n.chart.decimalPlaces));}I="stx-float-date";X=this.chart.context;this.canvasFont(I,X);C=this.getCanvasFontSize(I);O=1;if(!W.highlight && this.highlightedDraggable){O=+"0.3";}q=0.5;if(n.chart.tmpWidth <= 1){s_.h9(1);q=s_.o3(64,"0");}A=null;d=null;Q=this;j=null;this.startClip(h);X.globalAlpha=O;for(var M=0;M < K.length;M++){z=K[M];J(z.field,z.color,z.opacity,null,W.widthFactor,z.height,z.border_color?q:-q / 4,z.subField);if(z.border_color && this.layout.candleWidth >= 2){J(z.field,z.border_color,z.opacity,!![],W.widthFactor,z.height,q,z.subField);}}X.lineWidth=1;function J(V,R,s,p,E,D,e,r){var s0,U,S,N,u,m,a,H,l,P,L,k,B,g,F;s0="c";s0+="ent";s0+="er";X.beginPath();X.fillStyle=R;X.strokeStyle=R;X.textAlign=s0;s_.U_();U=Q.layout.candleWidth * E;S=Math.floor(Q.pixelFromBar(0,n.chart) - Q.layout.candleWidth);if(typeof s == "number"){s_.z7(2);X.globalAlpha=s_.s5(s,O);}if(typeof s == "object"){m={minOpacity:s.min || 0,maxOpacity:s.max || 1};}for(var f=0;f < T.length;f++){a=T[f];if(a && a.candleWidth){if(f === 0){S+=Q.layout.candleWidth;}else {s_.h9(3);var K_=s_.o3(8,6,2,3,0);S+=(a.candleWidth + U / E) / K_;}U=a.candleWidth * E;}else {S+=Q.layout.candleWidth;}s_.z7(4);N=s_.o3(2,e,S,U);s_.z7(5);u=s_.o3(e,2,U,S);if(u - N < 2){s_.z7(6);u=s_.s5(1,N);}if(!a)continue;H=a[V];if(!H)continue;if(H[r]){H=H[r];}if(typeof H == "number"){H=[H];}for(var Y=0;Y < H.length;Y++){l=H[Y];P=0;if(l instanceof Array){if(m){s_.h9(7);var i2=s_.o3(14,3,14,18,404);s_.h9(8);var f7=s_.s5(75,4,19,16);s_.z7(9);var Z9=s_.s5(10,8);X.globalAlpha=O * (l[i2] * m.maxOpacity + (f7 - l[Z9]) * m.minOpacity);}P=l[1];l=l[0];}L=Q.pixelFromPrice(l,n,G);if(!j){if(!D){D=W.height;}k=Q.pixelFromPrice(l + D * (G.flipped?1:-1),n,G);X.lineWidth=+"1";s_.h9(9);A=s_.s5(k,L);s_.h9(10);d=s_.s5(A,"2",0);j=X.lineWidth;}if(p){s_.z7(9);B=s_.o3(L,d);s_.z7(6);g=s_.o3(d,L);s_.h9(9);X.rect(N,B,s_.o3(u,N),s_.o3(g,B));}else {s_.h9(9);X.fillRect(N,s_.s5(L,d),s_.o3(u,N),A);if(W.showSize && P && C <= A - 2){F=X.globalAlpha;X.fillStyle=Q.defaultColor;s_.z7(2);X.globalAlpha=s_.o3(0.5,O);s_.h9(11);X.fillText(P,s_.o3(N,u,2),L);X.fillStyle=R;s_.h9(2);X.globalAlpha=s_.o3(F,O);}}if(m && l instanceof Array){X.globalAlpha=0;}}}if(p){X.stroke();}X.globalAlpha=O;X.closePath();}s9=-89669118;a8=762649974;Y6=2;for(var M$=1;s_.X8(M$.toString(),M$.toString().length,62306) !== s9;M$++){X.globalAlpha=+"1";this.endClip();Y6+=2;}s_.U_();if(s_.u0(Y6.toString(),Y6.toString().length,84013) !== a8){X.globalAlpha=5;this.endClip();}};Z.ChartEngine.prototype.drawCandles=function(w2,C2,w8){var S3,X0,Y5,l1,z0,i0,M8,J9,k5,f_,J3,q3,e1,Z_,i$,L$,H8,Y0,d8,c7,t6,P4,K5,r7,u5,i9,e3,z$,U7,G_,N0,f6,q8,T5,c0;S3=w2.chart;if(!S3){S3=w2;w2=w2.chart;}X0=!!0;Y5=!({});l1=null;z0=w2.yAxis;if(w8 && typeof w8 == "object"){X0=w8.isOutline;Y5=w8.isHistogram;l1=w8.field;z0=w8.yAxis;}else {X0=w8;Y5=arguments[3];}i0=S3.dataSegment;M8=S3.context;J9=z0.top;k5=z0.bottom;s_.r6();e1=new Array(i0.length);Z_="transparent";i$="transparent";L$=+"0";s_.h9(12);var G7=s_.s5(10,6,8,5);H8=S3.dataSet.length - S3.scroll - ("1" >> G7);Y0={};s_.z7(13);var e4=s_.o3(39,1,26,13);d8=S3.tmpWidth / e4;c7=this.layout.candleWidth;s_.h9(14);var N2=s_.o3(14,21,17,19,0);t6=w2.left - 0.5 * c7 + this.micropixels - N2;for(var O6=0;O6 <= i0.length;O6++){P4=d8;s_.h9(15);t6+=s_.o3(c7,2);c7=this.layout.candleWidth;s_.z7(16);t6+=s_.o3(c7,"2",1);K5=i0[O6];if(!K5)continue;if(K5.projection)continue;if(K5.candleWidth){s_.h9(17);var O0=s_.o3(0,18,16);t6+=(K5.candleWidth - c7) / O0;c7=K5.candleWidth;if(w8.isVolume || c7 < S3.tmpWidth){s_.h9(15);P4=s_.s5(c7,2);}}if(S3.transformFunc && z0 == S3.panel.yAxis && K5.transform){K5=K5.transform;}if(K5 && l1){K5=K5[l1];}if(!K5 && K5 !== +"0")continue;r7=K5.Close;u5=K5.Open === undefined?r7:K5.Open;if(Y5 && S3.defaultPlotField){r7=K5[S3.defaultPlotField];}if(!r7 && r7 !== "0" * 1)continue;if(!Y5 && (u5 == r7 || u5 === null))continue;i9=C2(this,K5,X0?"outline":"solid");if(!i9)continue;if(X0){Z_=i9;}else {i$=i9;}Y0[i$]=1;e3=Z_ && !Z.isTransparent(Z_);if(e3 && !w8.highlight){L$=0.5;}M8.beginPath();M8.fillStyle=i$;if(!K5.cache){K5.cache={};}z$=K5.cache;s_.z7(6);U7=s_.o3(O6,H8);if(U7 < w2.cacheLeft || U7 > w2.cacheRight || !z$.open){G_=z0.semiLog?z0.height * (1 - (Math.log(Math.max(u5,0)) / Math.LN10 - z0.logLow) / z0.logShadow):(z0.high - u5) * z0.multiplier;N0=z0.semiLog?z0.height * (1 - (Math.log(Math.max(r7,0)) / Math.LN10 - z0.logLow) / z0.logShadow):(z0.high - r7) * z0.multiplier;if(z0.flipped){s_.z7(9);G_=s_.o3(k5,G_);s_.h9(9);N0=s_.o3(k5,N0);}else {G_+=J9;N0+=J9;}e1[O6]=N0;f_=Math.floor(Y5?N0:Math.min(G_,N0)) + L$;J3=Y5?z0.bottom:Math.max(G_,N0);s_.z7(9);q3=Math.floor(s_.o3(J3,f_));if(f_ < J9){if(f_ + q3 < J9){z$.open=f_;z$.close=f_;continue;}s_.z7(9);q3-=s_.s5(J9,f_);f_=J9;}if(f_ + q3 > k5){s_.z7(18);q3-=s_.s5(q3,f_,k5);}q3=Math.max(q3,+"2");z$.open=f_;z$.close=z$.open + q3;}if(z$.open >= k5)continue;if(z$.close <= J9)continue;f6=Math.floor(t6) + (!w8.highlight && 0.5);q8=Math.floor(f6 - P4) + L$;T5=Math.round(f6 + P4) - L$;if(z$.open != z$.close){M8.rect(q8,z$.open,Math.max(1,T5 - q8),Math.max(1,z$.close - z$.open));}if(!w8.highlight && this.highlightedDraggable){M8.globalAlpha*=0.3;}if(i$ != "transparent"){M8.fill();}if(e3){M8.lineWidth=1;if(w8.highlight){M8.lineWidth*=2;}M8.strokeStyle=Z_;M8.stroke();}}c0={colors:[],cache:e1};for(var x7 in Y0){if(!w8.hollow || !Z.equals(x7,this.containerColor)){c0.colors.push(x7);}}return c0;};s_.U_();Z.ChartEngine.prototype.drawShadows=function(B7,j7,L3){var k3,D1,G6,D6,r9,H7,K9,w6,M_,c3,T4,P1,u4,P6,Q5,n2,R8,g9,D8,s1,J7,G2,X1,O2,H3,X4,A9;k3=B7.chart;if(!k3){k3=B7;B7=B7.chart;}s_.r6();D1=k3.dataSegment;G6=this.chart.context;G6.lineWidth=1;if(L3.highlight){G6.lineWidth*=+"2";}if(!L3.highlight && this.highlightedDraggable){G6.globalAlpha*=0.3;}D6=L3.field;r9=L3.yAxis || B7.yAxis;H7=r9.top;K9=r9.bottom;s_.z7(9);var b_=s_.s5(21,20);w6=k3.dataSet.length - k3.scroll - b_;M_=this.layout.candleWidth;s_.z7(19);var K8=s_.o3(10,1,12);c3=B7.left - 0.5 * M_ + this.micropixels - K8;for(var u8=+"0";u8 <= D1.length;u8++){T4="sha";T4+="dow";s_.h9(20);c3+=s_.s5(M_,0,"2");M_=this.layout.candleWidth;s_.z7(15);c3+=s_.s5(M_,2);P1=D1[u8];if(!P1)continue;if(P1.projection)continue;if(P1.candleWidth){s_.z7(21);var I1=s_.s5(5,22,12,1,13);c3+=(P1.candleWidth - M_) / I1;M_=P1.candleWidth;}u4=j7(this,P1,T4);if(!u4)continue;if(k3.transformFunc && r9 == k3.panel.yAxis && P1.transform){P1=P1.transform;}if(P1 && D6){P1=P1[D6];}if(!P1 && P1 !== 0)continue;P6=P1.Close;Q5=P1.Open === undefined?P6:P1.Open;n2=P1.High === undefined?Math.max(P6,Q5):P1.High;R8=P1.Low === undefined?Math.min(P6,Q5):P1.Low;if(!P6 && P6 !== 0)continue;if(!P1.cache){P1.cache={};}g9=P1.cache;s_.z7(6);D8=s_.s5(u8,w6);if(D8 < B7.cacheLeft || D8 > B7.cacheRight || !g9.top){s1=r9.semiLog?r9.height * ("1" - 0 - (Math.log(Math.max(n2,0)) / Math.LN10 - r9.logLow) / r9.logShadow):(r9.high - n2) * r9.multiplier;J7=r9.semiLog?r9.height * (1 - (Math.log(Math.max(R8,0)) / Math.LN10 - r9.logLow) / r9.logShadow):(r9.high - R8) * r9.multiplier;if(r9.flipped){s_.z7(9);s1=s_.o3(K9,s1);s_.z7(9);J7=s_.o3(K9,J7);}else {s1+=H7;J7+=H7;}s_.h9(9);G2=s_.s5(J7,s1);if(s1 < H7){if(s1 + G2 < H7){g9.top=s1;g9.bottom=s1;continue;}s_.h9(9);G2-=s_.o3(H7,s1);s1=H7;}if(s1 + G2 > K9){s_.h9(18);G2-=s_.s5(G2,s1,K9);}g9.top=s1;g9.bottom=g9.top + G2;}if(g9.top >= K9)continue;if(g9.bottom <= H7)continue;X1=Math.floor(c3) + (!L3.highlight && 0.5);G6.beginPath();if(P6 == Q5){O2=this.offset;if(L3.isVolume){s_.z7(15);O2=s_.s5(M_,2);}s_.h9(9);H3=s_.o3(X1,O2);s_.z7(6);X4=s_.o3(O2,X1);A9=r9.semiLog?r9.height * (1 - (Math.log(Math.max(P6,"0" - 0)) / Math.LN10 - r9.logLow) / r9.logShadow):(r9.high - P6) * r9.multiplier;if(r9.flipped){s_.z7(9);A9=s_.s5(K9,A9);}else {A9+=H7;}if(A9 <= K9 && A9 >= H7){G6.moveTo(H3,A9);G6.lineTo(X4,A9);}}if(n2 != R8){G6.moveTo(X1,g9.top);G6.lineTo(X1,g9.bottom);}G6.strokeStyle=u4;G6.stroke();}};Z.ChartEngine.prototype.drawBarChart=function(U9,W2,R5,D9){var g8,W0,c2,W4,q0,J2,V7,N9,L5,J$,h2,j3,p$,d$,x_,n9,o8,T6,g7,S4,Z8,H4,I3,I9,a1,u7,B9,N4,d6,m2,n$;g8=U9.chart;if(!g8){g8=U9;U9=U9.chart;}W0=g8.dataSegment;c2=new Array(W0.length);W4=g8.context;q0=this.canvasStyle(W2);if(q0.width && parseInt(q0.width,10) <= 25){W4.lineWidth=Math.max(1,Z.stripPX(q0.width));}else {J2=-69927237;V7=-1232831420;N9=2;for(var e6=1;s_.u0(e6.toString(),e6.toString().length,66316) !== J2;e6++){W4.lineWidth=0;N9+=2;}if(s_.X8(N9.toString(),N9.toString().length,13352) !== V7){W4.lineWidth=0;}W4.lineWidth=1;}if(D9.highlight){W4.lineWidth*=2;}if(!D9.highlight && this.highlightedDraggable){W4.globalAlpha*=+"0.3";}s_.U_();L5=D9.field;J$=D9.yAxis || U9.yAxis;h2=J$.top;j3=J$.bottom;s_.h9(22);var s7=s_.o3(19,10,8,13,1);d$=g8.dataSet.length - g8.scroll - s7;x_={};n9=g8.tmpWidth / ("2" << 0);s_.h9(23);var l3=s_.o3(28,6,5);o8=W4.lineWidth / l3;T6=this.layout.candleWidth;g7=U9.left - 0.5 * T6 + this.micropixels - +"1";for(var r1=+"0";r1 <= W0.length;r1++){s_.z7(15);g7+=s_.s5(T6,2);T6=this.layout.candleWidth;s_.h9(15);g7+=s_.o3(T6,2);S4=W0[r1];if(!S4)continue;if(S4.projection)break;if(S4.candleWidth){g7+=(S4.candleWidth - T6) / +"2";T6=S4.candleWidth;}Z8=R5(this,S4);if(!Z8)continue;x_[Z8]=1;W4.strokeStyle=Z8;W4.beginPath();if(g8.transformFunc && J$ == g8.panel.yAxis && S4.transform){S4=S4.transform;}if(S4 && L5){S4=S4[L5];}if(!S4 && S4 !== +"0")continue;H4=S4.Close;I3=S4.Open === undefined?H4:S4.Open;I9=S4.High === undefined?Math.max(H4,I3):S4.High;a1=S4.Low === undefined?Math.min(H4,I3):S4.Low;if(!H4 && H4 !== 0)continue;if(!S4.cache){S4.cache={};}u7=S4.cache;s_.h9(6);B9=s_.o3(r1,d$);if(B9 < U9.cacheLeft || B9 > U9.cacheRight || !u7.top){N4=this.pixelFromTransformedValue(I9,U9,J$);d6=this.pixelFromTransformedValue(a1,U9,J$);u7.open=J$.semiLog?J$.height * (1 - (Math.log(Math.max(I3,0)) / Math.LN10 - J$.logLow) / J$.logShadow):(J$.high - I3) * J$.multiplier;u7.close=J$.semiLog?J$.height * (+"1" - (Math.log(Math.max(H4,0)) / Math.LN10 - J$.logLow) / J$.logShadow):(J$.high - H4) * J$.multiplier;if(J$.flipped){u7.open=J$.bottom - u7.open;u7.close=J$.bottom - u7.close;}else {u7.open+=J$.top;u7.close+=J$.top;}c2[r1]=u7.close;s_.h9(9);p$=s_.s5(d6,N4);if(N4 < h2){if(N4 + p$ < h2){u7.top=N4;u7.bottom=N4;continue;}s_.z7(9);p$-=s_.s5(h2,N4);N4=h2;}if(N4 + p$ > j3){s_.z7(18);p$-=s_.s5(p$,N4,j3);}u7.top=N4;s_.z7(6);u7.bottom=s_.o3(p$,N4);}m2=Math.floor(g7) + (!D9.highlight && 0.5);if(u7.top < j3 && u7.bottom > h2 && S4.High != S4.Low){W4.moveTo(m2,u7.top - o8);W4.lineTo(m2,u7.bottom + o8);}if(D9.type != "hlc" && u7.open > h2 && u7.open < j3){W4.moveTo(m2,u7.open);s_.z7(9);W4.lineTo(s_.o3(m2,n9),u7.open);}if(u7.close > h2 && u7.close < j3){W4.moveTo(m2,u7.close);s_.h9(6);W4.lineTo(s_.s5(n9,m2),u7.close);}W4.stroke();}W4.lineWidth=1;n$={colors:[],cache:c2};for(var v5 in x_){if(!Z.equals(v5,this.containerColor)){n$.colors.push(v5);}}return n$;};Z.ChartEngine.prototype.drawWaveChart=function(T8,I$){var S$,N8,g0,p3,f0,r3,E4,X7,K3,l8,p7,n5,v0,K$,F7,o0,w0,D5,A1,V$,q1,Q7,Q9,F1,C$,j9,y8,t1,j5,Y7;S$="stx";S$+="_lin";S$+="e_cha";S$+="rt";N8=T8.chart;g0=N8.dataSegment;p3=new Array(g0.length);f0=N8.context;if(!I$){I$={};}r3=I$.yAxis || T8.yAxis;this.startClip(T8.name);f0.beginPath();E4=![];X7=!({});K3=T8.yAxis.top;l8=T8.yAxis.bottom;function B0(o5){s_.U_();return n5.pixelFromTransformedValue(o5,T8,r3);}p7=T8.left + Math.floor(-0.5 * this.layout.candleWidth + this.micropixels);n5=this;for(var K4=0;K4 <= g0.length;K4++){p7+=this.layout.candleWidth;v0=g0[K4];if(!v0)continue;if(v0.projection)break;if(N8.transformFunc && r3 == N8.panel.yAxis && v0.transform){v0=v0.transform;}if(v0 && I$.field){v0=v0[I$.field];}if(!v0 && v0 !== ("0" | 0))continue;K$=v0.Close;F7=v0.Open === undefined?K$:v0.Open;o0=v0.High === undefined?Math.max(K$,F7):v0.High;w0=v0.Low === undefined?Math.min(K$,F7):v0.Low;if(!K$ && K$ !== 0)continue;s_.h9(24);var y$=s_.s5(6,6,39,6);D5=p7 - y$ * this.layout.candleWidth / +"8";A1=B0(F7);if(A1 < K3){A1=K3;if(X7){f0.moveTo(D5,A1);continue;}X7=!"";}else if(A1 > l8){A1=l8;if(X7){f0.moveTo(D5,A1);continue;}X7=!!({});}else {X7=![];}if(!E4){E4=!0;s_.z7(6);var e5=s_.o3(1,0);V$=N8.dataSet.length - N8.scroll - e5;if(V$ < 0){f0.moveTo(D5,A1);}else if(V$ >= 0){q1=N8.dataSet[V$];if(q1.transform){q1=q1.transform;}Q7=q1.Close;Q7=B0(Q7);Q7=Math.min(Math.max(Q7,K3),l8);f0.moveTo(T8.left + (K4 - 1) * this.layout.candleWidth + this.micropixels,Q7);f0.lineTo(D5,A1);}f0.moveTo(D5,A1);}else {f0.lineTo(D5,A1);}s_.h9(6);var E3=s_.o3(2,2);D5+=this.layout.candleWidth / E3;if(F7 < K$){A1=B0(w0);if(A1 < K3){A1=K3;}if(A1 > l8){A1=l8;}f0.lineTo(D5,A1);s_.z7(25);var W1=s_.s5(6,18,16,1898,20);D5+=this.layout.candleWidth / W1;A1=B0(o0);if(A1 < K3){A1=K3;}if(A1 > l8){A1=l8;}f0.lineTo(D5,A1);}else {A1=B0(o0);if(A1 < K3){A1=K3;}if(A1 > l8){A1=l8;}f0.lineTo(D5,A1);s_.z7(17);var F0=s_.s5(10,1,7);D5+=this.layout.candleWidth / F0;A1=B0(w0);if(A1 < K3){A1=K3;}if(A1 > l8){A1=l8;}f0.lineTo(D5,A1);}s_.h9(9);var E$=s_.o3(28,24);D5+=this.layout.candleWidth / E$;A1=B0(K$);p3[K4]=A1;if(A1 < K3){A1=K3;}if(A1 > l8){A1=l8;}f0.lineTo(D5,A1);}Q9=this.canvasStyle(S$);if(Q9.width && parseInt(Q9.width,"10" >> 32) <= 25){f0.lineWidth=Math.max(1,Z.stripPX(Q9.width));}else {F1=-1361859938;C$=-1886036089;j9=2;for(var d3=1;s_.u0(d3.toString(),d3.toString().length,66387) !== F1;d3++){s_.h9(9);f0.lineWidth=s_.o3("1",0);j9+=2;}if(s_.u0(j9.toString(),j9.toString().length,+"3985") !== C$){f0.lineWidth=4;}}if(I$.highlight){f0.lineWidth*=2;}this.canvasColor("stx_line_chart");if(I$.color){f0.strokeStyle=I$.color;}if(!I$.highlight && this.highlightedDraggable){f0.globalAlpha*=0.3;}f0.stroke();s_.r6();f0.closePath();y8={colors:[f0.strokeStyle],cache:p3};this.endClip();f0.lineWidth=1;t1=1677529383;j5=1744723582;Y7=2;for(var B_=1;s_.u0(B_.toString(),B_.toString().length,97554) !== t1;B_++){return y8;}if(s_.X8(Y7.toString(),Y7.toString().length,"86204" >> 64) !== j5){return y8;}};Z.ChartEngine.prototype.drawHistogram=function(o2,X6){var T3,Z3,p5,B8,O_,d9,X5,W_,D$,o$,N6,n3,j4,U6,L8,y_,M2,R9,R2,w$,a2,F9,C5,R_,F2,H1,L1,o7,V1,L_,i3,c5,d0,D0,T0,v6,f1,T1,g2,O5,n_,K6,y9,h4,E_,j0,S2,O4,w3;if(!X6 || !X6.length){return;}T3=o2.panel;if(!T3){T3="chart";}Z3=this.panels[T3];function m1(O9,V9,d5,z_,G8,I6,Y_,F6,R6){var Q8,C3,e9,Z0,u6,x9,t0,M0,m5,F$,d2,i4,k6,e$,t3,J8,h6,h3;s_.r6();if(!z_){z_=1;}v6.globalAlpha=z_;v6.beginPath();s_.h9(6);Q8=s_.o3(0.5,C5);C3=Math.floor(O5.pixelFromBar(0,Z3.chart) - O5.layout.candleWidth / 2);e9=C3;for(var s$=0;s$ < O_.length;s$++){Z0=g2[s$] || C5;if(s$ === "0" << 0){Q8=Z0;}if(!O_[s$] || !O_[s$][O9]){Q8=Z0;e9+=O5.layout.candleWidth;continue;}u6=O_[s$];x9=u6[O9];if(typeof x9 == "object" && x9[V9]){x9=x9[V9];}s_.z7(26);t0=s_.o3(j4,N6,x9);if(isNaN(t0))continue;M0=O5.layout.candleWidth;if(u6.candleWidth){M0=u6.candleWidth;if(s$ === 0){C3=e9=Math.floor(O5.pixelFromBar(0,Z3.chart) - u6.candleWidth / 2);}}m5=Math.floor(Z0 - t0) + 0.5;if(m5 > Z0 && !R_){m5=Z0;}if(R6 && R6.indexOf(s$) == -+"1" || !R6 && (I6 && u6.Close < u6.iqPrevClose || !I6 && u6.Close >= u6.iqPrevClose)){Q8=m5;e9+=M0;continue;}F$=M0 / O5.layout.candleWidth;if(f1){s_.h9(27);d2=Math.round(s_.s5(f1,Y_,F6,e9,F$));s_.h9(6);i4=s_.s5(G8?"0" << 96:T0,d2);k6=d2 + Math.round(F6 * F$) - (G8?+"0":T0);}else {s_.z7(27);d2=s_.o3(f1,Y_,F6,e9,F$);i4=Math.round(d2) + (G8?0:T0);s_.h9(6);var Y2=s_.o3(27,5);k6=Math.round(d2 + F6 * F$) - (G8?"0" >> Y2:T0);}if(k6 - i4 < +"2"){s_.h9(28);k6=s_.o3("1",i4,0);}e$=G8?0:0.5;if(i4 % 1 == e$){s_.z7(9);i4+=s_.s5("0.5",0);}if(k6 % 1 == e$){k6+=+"0.5";}v6.moveTo(k6,Z0);if(C5 != Z0 && G8 && !f1 && g2[s$ + 1]){v6.moveTo(k6,Math.max(m5,Math.min(Z0,g2[s$ + 1])));}v6.lineTo(k6,m5);v6.lineTo(i4,m5);if(G8 && Y_){if(T1[s$] > m5 || s$ === 0){v6.lineTo(i4,Math.min(Z0,T1[s$]));}}else if(G8 && !f1 && B8 == "clustered"){if(s$ > 0 && T1[s$ - 1] && T1[s$ - 1] > m5){v6.lineTo(i4,Math.min(Z0,T1[s$ - 1]));}}else if(G8 && !f1){if(Q8 > m5 || s$ === +"0"){v6.lineTo(i4,Math.min(Z0,Q8));}}else {v6.lineTo(i4,Z0);}Q8=m5;e9+=M0;if(B8 != "clustered" || G8){T1[s$]=m5;}}if(G8){t3="a";t3+="u";t3+="t";t3+="o";v6.strokeStyle=!d5 || d5 == t3?O5.defaultColor:d5;v6.stroke();}else {v6.fillStyle=!d5 || d5 == "auto"?O5.defaultColor:d5;v6.fill();}J8=1284297219;h6=-410968503;s_.z7(0);h3=s_.s5("2",64);for(var g5=1;s_.X8(g5.toString(),g5.toString().length,41532) !== J8;g5++){v6.closePath();h3+=2;}if(s_.X8(h3.toString(),h3.toString().length,48616) !== h6){v6.closePath();}}if(!Z3){return;}p5=o2.yAxis?o2.yAxis:Z3.yAxis;B8=o2.type;O_=this.chart.dataSegment;d9=!!"";X5=1;W_=1;for(o$=0;o$ < X6.length;o$++){d9|=X6[o$].border_color_up && !Z.isTransparent(X6[o$].border_color_up);d9|=X6[o$].border_color_down && !Z.isTransparent(X6[o$].border_color_down);X5=X6[o$].opacity_up;W_=X6[o$].opacity_down;if(!o2.highlight && this.highlightedDraggable){X5*=0.3;W_*=0.3;}}if(o2.borders === !({})){d9=!({});}if(!o2.name){o2.name="Data";}N6=p5.multiplier;if(!o2.heightPercentage){o2.heightPercentage=0.7;}if(!o2.widthFactor){s_.z7(2);o2.widthFactor=s_.s5("0.8",1);}n3=0;j4=0;for(var b9=0;b9 < this.chart.maxTicks;b9++){U6=O_[b9];if(!U6)continue;L8=0;for(o$=0;o$ < X6.length;o$++){y_=U6[X6[o$].field];if(y_ || y_ === "0" << 64){M2="stack";M2+="e";M2+="d";R9="o";R9+="b";R9+="je";R9+="ct";R2="Cl";R2+="os";R2+="e";D$=X6[o$].subField || this.chart.defaultPlotField || R2;if(typeof y_ == R9 && y_[D$]){y_=y_[D$];}if(B8 == M2){L8+=y_;}else {L8=y_;}if(L8 > n3){n3=L8;}if(L8 < j4){j4=L8;}}}}if(n3 === 0 && j4 === 0){w$=-373379090;s_.z7(29);a2=-s_.s5("16853080",0);F9=2;for(var D_=1;s_.X8(D_.toString(),D_.toString().length,51355) !== w$;D_++){this.displayErrorAsWatermark(T3,this.translateIf(o2.name % ""));F9+=2;}if(s_.X8(F9.toString(),F9.toString().length,+"13581") !== a2){this.displayErrorAsWatermark(T3,this.translateIf(o2.name + " Not Available"));}return;}R_=!!0;if(!o2.bindToYAxis){if(p5.flipped){s_.z7(2);H1=-s_.s5("82896152",1);L1=1394561877;o7=2;for(var E7="1" * 1;s_.u0(E7.toString(),E7.toString().length,25037) !== H1;E7++){s_.h9(30);var l5=s_.o3(13,10,10177,10800);C5=Math.floor(p5.top) * l5;s_.h9(9);var y2=s_.s5(3927,3696);F2=Math.floor(p5.bottom) / y2;o7+=2;}if(s_.u0(o7.toString(),o7.toString().length,41933) !== L1){C5=Math.floor(p5.top) - 0.5;F2=Math.floor(p5.bottom) - 0.5;}}else {C5=Math.floor(p5.bottom) + 0.5;F2=Math.floor(p5.top) + 0.5;}N6=Math.abs(C5 - F2) * o2.heightPercentage / (n3 - j4);}else {if(p5.baseline){V1=-+"80925374";L_=781887588;i3=2;for(var J4=1;s_.X8(J4.toString(),J4.toString().length,+"40226") !== V1;J4++){j4=p5.baseline.value;R_=!!1;i3+=2;}if(s_.X8(i3.toString(),i3.toString().length,21603) !== L_){j4=p5.baseline.value;R_=!({});}}c5=-689776393;d0=-2124786051;s_.z7(1);D0=s_.o3(0,"2");for(var Q_=1;s_.u0(Q_.toString(),Q_.toString().length,71015) !== c5;Q_++){s_.z7(23);var C_=s_.o3(9211,767,13);s_.h9(17);var V4=s_.s5(606,22,14);C5=Math.floor(this.pixelFromPrice(j4,Z3,p5)) / (p5.flipped?~C_:V4);D0+=2;}if(s_.u0(D0.toString(),D0.toString().length,69045) !== d0){C5=Math.floor(this.pixelFromPrice(j4,Z3,p5)) + (p5.flipped?-0.5:0.5);}}this.startClip(T3);T0=this.layout.candleWidth <= 1 || !d9?0:0.5;v6=this.chart.context;if(p5.flipped){v6.translate(0,2 * p5.top);s_.z7(2);v6.scale(1,-s_.o3("1",1));}f1=Math.max(+"0",(1 - o2.widthFactor) * this.layout.candleWidth / 2);T1=new Array(O_.length);g2=[];O5=this;s_.z7(9);n_=s_.s5("1",0);for(o$=0;o$ < X6.length;o$++){K6=X6[o$];n_=this.layout.candleWidth * o2.widthFactor;if(f1){if(this.layout.candleWidth - n_ <= 2){d9=!({});}}y9=0;if(B8 == "clustered"){y9=o$;n_/=X6.length;}D$=K6.subField || this.chart.defaultPlotField || "Close";if(typeof K6.color_function == "function"){E_={};for(var A_=0;A_ < O_.length;A_++){if(O_[A_]){h4=K6.color_function(O_[A_]);if(typeof h4 == "string"){h4={fill_color:h4,border_color:h4};}if(!h4.hasOwnProperty("border_opacity")){h4.border_opacity=h4.opacity;}s_.z7(18);var s8=s_.s5(4,55780,52995);s_.z7(31);var S7=s_.s5(5,1267,1267,8864);s_.h9(32);var P8=s_.s5(9,5,5,2698055,60060);s_.h9(33);var E9=s_.o3(496,19,3,477,8107);s_.z7(34);var u$=s_.s5(1,2290,2311,2311);s_.z7(35);var M6=s_.s5(17,210,12,42798);s_.h9(36);var I4=s_.s5(4,3,7,7606);j0=h4.fill_color + ((s8,S7) <= P8?"A":E9 === (837.41,u$)?+"7210" < ("6447" | M6)?I4:"0x101f" - 0:",") + h4.border_color;if((j0 in E_)){E_[j0].positions.push(A_);}else {h4.positions=[A_];E_[j0]=h4;}}}for(j0 in E_){h4=E_[j0];m1(K6.field,D$,h4.fill_color,h4.opacity,null,null,y9,n_,h4.positions);m1(K6.field,D$,h4.border_color,h4.border_opacity,!!"1",null,y9,n_,h4.positions);}}else {m1(K6.field,D$,K6.fill_color_up,X5,null,!"",y9,n_);m1(K6.field,D$,K6.fill_color_down,W_,null,null,y9,n_);if(this.layout.candleWidth >= 2 && d9){m1(K6.field,D$,K6.border_color_up,X5,!![],!![],y9,n_);m1(K6.field,D$,K6.border_color_down,W_,!![],null,y9,n_);}}if(B8 == "stacked"){g2=Z.shallowClone(T1);}}S2=307526094;s_.z7(9);O4=s_.o3("1637674396",0);w3=+"2";for(var m6=1;s_.X8(m6.toString(),m6.toString().length,38045) !== S2;m6++){v6.globalAlpha=0;this.endClip();w3+=2;}if(s_.X8(w3.toString(),w3.toString().length,84167) !== O4){v6.globalAlpha=4;this.endClip();}v6.globalAlpha=+"1";this.endClip();};Z.ChartEngine.prototype.scatter=function(U5,S1){var o4,p_,A7,x2,r$,p9,j1,m7,I5,j2,z4,k$,p8,R1,z1,D7,l2,o9,A8,J1,v3,l0;o4=U5.chart;p_=o4.dataSegment;A7=new Array(p_.length);x2=this.chart.context;this.canvasColor("stx_scatter_chart");if(!S1){S1={};}r$=S1.field || o4.defaultPlotField;p9=S1.yAxis || U5.yAxis;j1=S1.subField || o4.defaultPlotField || "Close";this.startClip(U5.name);x2.beginPath();x2.lineWidth=S1.lineWidth || 4;if(S1.highlight){x2.lineWidth*=2;}if(!S1.highlight && this.highlightedDraggable){x2.globalAlpha*=0.3;}if(S1.color){x2.strokeStyle=S1.color;}m7=p9.top;I5=p9.bottom;j2=this.layout.candleWidth;z4=U5.left - 0.5 * j2 + this.micropixels - +"1";for(var H9=0;H9 <= p_.length;H9++){s_.h9(15);z4+=s_.o3(j2,2);j2=this.layout.candleWidth;s_.z7(15);z4+=s_.s5(j2,2);k$=p_[H9];if(!k$)continue;if(k$.candleWidth){z4+=(k$.candleWidth - j2) / +"2";j2=k$.candleWidth;}if(!k$.projection){p8="S";p8+="cat";p8+="te";p8+="r";if(o4.transformFunc && p9 == o4.panel.yAxis && k$.transform){k$=k$.transform;}R1=k$[r$];if(R1 && R1[j1] !== undefined){R1=R1[j1];}if(!(R1 instanceof Array)){R1=[R1];}if((p8 in k$)){R1=k$.Scatter;}for(var Q4=0;Q4 < R1.length;Q4++){if(!R1[Q4] && R1[Q4] !== 0)continue;z1=R1[Q4];D7=0;if(R1[Q4] instanceof Array){z1=R1[Q4][0];D7=R1[Q4][+"2"];}l2=p9.semiLog?p9.height * (1 - (Math.log(Math.max(z1,0)) / Math.LN10 - p9.logLow) / p9.logShadow):(p9.high - z1) * p9.multiplier;if(p9.flipped){s_.z7(9);l2=s_.s5(I5,l2);}else {l2+=m7;}if(l2 < m7)continue;if(l2 > I5)continue;o9=2;if(D7){s_.z7(2);o9=s_.o3(j2,D7);}s_.z7(9);x2.moveTo(s_.s5(z4,o9),l2);s_.z7(6);x2.lineTo(s_.o3(o9,z4),l2);A7[H9]=l2;}}}A8=-1439468209;J1=-253022356;v3=2;for(var U0=1;s_.u0(U0.toString(),U0.toString().length,79566) !== A8;U0++){x2.stroke();x2.closePath();l0={colors:[x2.strokeStyle],cache:A7};this.endClip();s_.z7(9);x2.lineWidth=s_.o3("2",0);v3+=+"2";}if(s_.u0(v3.toString(),v3.toString().length,"68033" * 1) !== J1){x2.stroke();x2.closePath();l0={colors:[x2.strokeStyle],cache:A7};this.endClip();x2.lineWidth=+"1";}return l0;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +o6NbM[539515]=(function(){var e6=2;for(;e6 !== 9;){switch(e6){case 2:e6=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var T2;e6=4;break;case 4:try{var I6=2;for(;I6 !== 6;){switch(I6){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x65\u004f\u0045\u004d\x51',{'\x67\x65\x74':function(){var D4=2;for(;D4 !== 1;){switch(D4){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});T2=eOEMQ;I6=5;break;case 5:T2['\x6c\u0072\u0035\x56\x30']=T2;I6=4;break;case 4:I6=typeof lr5V0 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";I6=9;break;case 9:delete T2['\x6c\x72\u0035\u0056\x30'];var O_=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete O_['\x65\x4f\u0045\x4d\u0051'];I6=6;break;}}}catch(h2){T2=window;}return T2;break;}}})();e3eVvw(o6NbM[539515]);o6NbM.T$=function(){return typeof o6NbM[446427].g9iUvuS === 'function'?o6NbM[446427].g9iUvuS.apply(o6NbM[446427],arguments):o6NbM[446427].g9iUvuS;};function e3eVvw(Q2){function M1(R1){var w2=2;for(;w2 !== 5;){switch(w2){case 2:var x4=[arguments];return x4[0][0].String;break;}}}function X9(L7){var H0=2;for(;H0 !== 5;){switch(H0){case 2:var k_=[arguments];return k_[0][0].Function;break;}}}function N9(L9){var r9=2;for(;r9 !== 5;){switch(r9){case 2:var y2=[arguments];return y2[0][0].Array;break;}}}var o6=2;for(;o6 !== 100;){switch(o6){case 10:t$[1]="stract";t$[7]="";t$[7]="b";t$[3]="";o6=17;break;case 14:t$[8]="x2";t$[1]="";t$[9]="B9";t$[1]="";o6=10;break;case 101:F8(X9,"apply",t$[42],t$[92]);o6=100;break;case 31:t$[45]="__";t$[43]="";t$[43]="o";t$[76]="";t$[76]="H6";t$[22]="";o6=42;break;case 88:t$[30]+=t$[1];t$[99]=t$[8];t$[99]+=t$[9];t$[99]+=t$[2];o6=84;break;case 9:t$[2]="H";t$[8]="";t$[6]="Q$";t$[8]="";o6=14;break;case 78:F8(W_,t$[30],t$[61],t$[47]);o6=104;break;case 80:F8(M1,"charCodeAt",t$[42],t$[91]);o6=79;break;case 55:t$[49]+=t$[22];t$[52]=t$[76];t$[52]+=t$[43];t$[52]+=t$[48];t$[68]=t$[45];t$[68]+=t$[74];t$[68]+=t$[65];o6=71;break;case 17:t$[3]="";t$[3]="K";t$[46]="";t$[75]="J";o6=26;break;case 42:t$[22]="l";t$[29]="";t$[29]="";t$[29]="a";t$[78]="";t$[78]="__residu";o6=36;break;case 103:F8(W_,t$[68],t$[61],t$[52]);o6=102;break;case 59:t$[90]+=t$[85];t$[90]+=t$[44];t$[49]=t$[78];t$[49]+=t$[29];o6=55;break;case 102:F8(W_,t$[49],t$[61],t$[90]);o6=101;break;case 71:t$[89]=t$[19];t$[89]+=t$[46];t$[89]+=t$[88];t$[47]=t$[64];o6=67;break;case 2:var t$=[arguments];t$[5]="";t$[5]="n";t$[4]="";t$[4]="lA";o6=9;break;case 79:F8(z3,"test",t$[42],t$[99]);o6=78;break;case 67:t$[47]+=t$[3];t$[47]+=t$[75];t$[30]=t$[12];t$[30]+=t$[7];o6=88;break;case 47:t$[41]="";t$[41]="A";t$[42]=1;t$[61]=1;t$[61]=0;o6=63;break;case 35:t$[48]="";t$[88]="k";t$[74]="optim";t$[48]="JQO";o6=31;break;case 104:F8(N9,"push",t$[42],t$[89]);o6=103;break;case 84:t$[91]=t$[6];t$[91]+=t$[4];t$[91]+=t$[5];o6=81;break;case 36:t$[44]="";t$[44]="HfMz";t$[85]="";t$[85]="3";o6=51;break;case 63:t$[92]=t$[41];t$[92]+=t$[72];t$[92]+=t$[23];t$[90]=t$[36];o6=59;break;case 51:t$[36]="";t$[36]="B";t$[23]="o7";t$[72]="35h";o6=47;break;case 81:var F8=function(P8,N7,j9,n7){var H3=2;for(;H3 !== 5;){switch(H3){case 2:var t7=[arguments];J_(t$[0][0],t7[0][0],t7[0][1],t7[0][2],t7[0][3]);H3=5;break;}}};o6=80;break;case 26:t$[46]="uv";t$[64]="c9m";t$[12]="__a";t$[65]="";t$[65]="ize";t$[19]="F2";o6=35;break;}}function J_(k9,r6,N0,y6,S1){var H9=2;for(;H9 !== 8;){switch(H9){case 4:G$[2]=false;G$[9]="defineP";try{var L5=2;for(;L5 !== 13;){switch(L5){case 3:return;break;case 9:G$[3][G$[0][4]]=G$[3][G$[0][2]];G$[5].set=function(a1){var S_=2;for(;S_ !== 5;){switch(S_){case 2:var D0=[arguments];G$[3][G$[0][2]]=D0[0][0];S_=5;break;}}};G$[5].get=function(){var W4=2;for(;W4 !== 12;){switch(W4){case 2:var g3=[arguments];g3[2]="";g3[2]="d";g3[7]="ine";W4=3;break;case 3:g3[1]="";g3[1]="";g3[1]="undef";g3[5]=g3[1];W4=6;break;case 6:g3[5]+=g3[7];g3[5]+=g3[2];return typeof G$[3][G$[0][2]] == g3[5]?undefined:G$[3][G$[0][2]];break;}}};G$[5].enumerable=G$[2];L5=14;break;case 14:try{var g5=2;for(;g5 !== 3;){switch(g5){case 2:G$[1]=G$[9];G$[1]+=G$[4];G$[1]+=G$[8];G$[0][0].Object[G$[1]](G$[3],G$[0][4],G$[5]);g5=3;break;}}}catch(u8){}L5=13;break;case 2:G$[5]={};G$[7]=(1,G$[0][1])(G$[0][0]);G$[3]=[G$[7],G$[7].prototype][G$[0][3]];L5=4;break;case 4:L5=G$[3].hasOwnProperty(G$[0][4]) && G$[3][G$[0][4]] === G$[3][G$[0][2]]?3:9;break;}}}catch(A7){}H9=8;break;case 2:var G$=[arguments];G$[8]="y";G$[4]="ropert";H9=4;break;}}}function z3(w6){var J4=2;for(;J4 !== 5;){switch(J4){case 2:var o$=[arguments];J4=1;break;case 1:return o$[0][0].RegExp;break;}}}function W_(J0){var z$=2;for(;z$ !== 5;){switch(z$){case 2:var M9=[arguments];return M9[0][0];break;}}}}o6NbM.r0=function(){return typeof o6NbM[593596].i9agN$W === 'function'?o6NbM[593596].i9agN$W.apply(o6NbM[593596],arguments):o6NbM[593596].i9agN$W;};o6NbM.B9=function(){return typeof o6NbM[446427].g9iUvuS === 'function'?o6NbM[446427].g9iUvuS.apply(o6NbM[446427],arguments):o6NbM[446427].g9iUvuS;};o6NbM[156040]=474;o6NbM.v5=function(){return typeof o6NbM[593596].i9agN$W === 'function'?o6NbM[593596].i9agN$W.apply(o6NbM[593596],arguments):o6NbM[593596].i9agN$W;};o6NbM[446427]=(function(I3){return {N$y1PkD:function(){var X7,h4=arguments;switch(I3){case 0:X7=h4[0] | h4[1];break;case 17:X7=h4[0] + h4[1] - h4[2];break;case 5:X7=h4[2] - h4[0] / +h4[3] + h4[1];break;case 7:X7=h4[0] + h4[1];break;case 8:X7=-h4[1] * h4[0] + h4[2];break;case 2:X7=h4[0] << h4[1];break;case 12:X7=(h4[2] + h4[1]) / h4[0];break;case 6:X7=h4[0] + h4[4] / (h4[2] >> h4[3]) - h4[1];break;case 23:X7=h4[0] - h4[1] - h4[2];break;case 10:X7=h4[3] / h4[2] - h4[1] + h4[0];break;case 13:X7=(h4[3] + h4[2]) / h4[0] - h4[1];break;case 29:X7=(h4[0] + h4[1]) * h4[2] - h4[3];break;case 19:X7=h4[1] * h4[0] / h4[2] - h4[3];break;case 20:X7=h4[0] / h4[1] - h4[2];break;case 14:X7=h4[1] * h4[0] + h4[2] - h4[3];break;case 28:X7=h4[3] - h4[1] + h4[2] - h4[0];break;case 15:X7=-h4[1] + h4[0];break;case 4:X7=h4[4] + h4[1] - h4[0] - h4[2] - h4[3];break;case 11:X7=h4[0] / h4[1];break;case 1:X7=h4[0] * h4[1];break;case 26:X7=h4[3] + (h4[2] + h4[1] * h4[0]) * h4[4];break;case 27:X7=h4[0] / h4[2] + h4[1];break;case 18:X7=h4[2] * h4[1] - h4[0];break;case 16:X7=(h4[2] + h4[3]) / h4[1] + h4[4] - h4[0];break;case 21:X7=h4[0] - h4[1] - h4[2] + h4[3];break;case 25:X7=(h4[2] - h4[0]) * h4[1];break;case 22:X7=-h4[3] * h4[1] * h4[2] + h4[0];break;case 3:X7=h4[0] ^ h4[1];break;case 9:X7=h4[1] - h4[0];break;case 24:X7=-h4[0] * h4[2] * h4[3] * h4[4] + h4[1];break;}return X7;},g9iUvuS:function(r3){I3=r3;}};})();function o6NbM(){}o6NbM.E3=function(){return typeof o6NbM[446427].N$y1PkD === 'function'?o6NbM[446427].N$y1PkD.apply(o6NbM[446427],arguments):o6NbM[446427].N$y1PkD;};o6NbM[593596]=(function(){var b5=2;for(;b5 !== 9;){switch(b5){case 2:var Z2=[arguments];Z2[7]=undefined;Z2[5]={};Z2[5].i9agN$W=function(){var R7=2;for(;R7 !== 90;){switch(R7){case 1:R7=Z2[7]?5:4;break;case 68:R7=20?68:67;break;case 69:R7=(function(h0){var D2=2;for(;D2 !== 22;){switch(D2){case 16:D2=N5[9] < N5[1].length?15:23;break;case 10:D2=N5[4][V_[30]] === V_[35]?20:19;break;case 5:return;break;case 27:N5[5]=N5[7][N5[6]].h / N5[7][N5[6]].t;D2=26;break;case 19:N5[9]++;D2=7;break;case 1:D2=N5[0][0].length === 0?5:4;break;case 20:N5[7][N5[4][V_[14]]].h+=true;D2=19;break;case 12:N5[1].F2uvk(N5[4][V_[14]]);D2=11;break;case 8:N5[9]=0;D2=7;break;case 13:N5[7][N5[4][V_[14]]]=(function(){var O1=2;for(;O1 !== 9;){switch(O1){case 4:T3[3].t=0;return T3[3];break;case 2:var T3=[arguments];T3[3]={};T3[3].h=0;O1=4;break;}}}).A35ho7(this,arguments);D2=12;break;case 11:N5[7][N5[4][V_[14]]].t+=true;D2=10;break;case 4:N5[7]={};N5[1]=[];N5[9]=0;D2=8;break;case 23:return N5[8];break;case 14:D2=typeof N5[7][N5[4][V_[14]]] === 'undefined'?13:11;break;case 24:N5[9]++;D2=16;break;case 26:D2=N5[5] >= 0.5?25:24;break;case 18:N5[8]=false;D2=17;break;case 15:N5[6]=N5[1][N5[9]];D2=27;break;case 2:var N5=[arguments];D2=1;break;case 17:N5[9]=0;D2=16;break;case 7:D2=N5[9] < N5[0][0].length?6:18;break;case 25:N5[8]=true;D2=24;break;case 6:N5[4]=N5[0][0][N5[9]];D2=14;break;}}})(V_[67])?68:67;break;case 51:V_[5].F2uvk(V_[7]);V_[5].F2uvk(V_[8]);V_[5].F2uvk(V_[31]);V_[5].F2uvk(V_[3]);R7=47;break;case 58:V_[81]=0;R7=57;break;case 67:Z2[7]=77;return 23;break;case 27:V_[94]={};V_[94].o1=['U2'];V_[94].U5=function(){var B7=false;var O6=[];try{for(var K3 in console){O6.F2uvk(K3);}B7=O6.length === 0;}catch(h6){}var j6=B7;return j6;};V_[31]=V_[94];R7=23;break;case 57:R7=V_[81] < V_[5].length?56:69;break;case 56:V_[74]=V_[5][V_[81]];try{V_[83]=V_[74][V_[45]]()?V_[35]:V_[65];}catch(F6){V_[83]=V_[65];}R7=77;break;case 71:V_[59]++;R7=76;break;case 59:V_[14]='c4';R7=58;break;case 64:V_[35]='q0';V_[65]='f2';V_[93]='o1';V_[30]='G1';V_[45]='U5';R7=59;break;case 23:V_[87]={};V_[87].o1=['U2'];V_[87].U5=function(){var Y_=typeof H6oJQO === 'function';return Y_;};V_[66]=V_[87];V_[39]={};V_[39].o1=['A4'];V_[39].U5=function(){var r5=function(){return decodeURI('%25');};var C2=!(/\x32\x35/).x2B9H(r5 + []);return C2;};R7=31;break;case 73:V_[46][V_[30]]=V_[83];V_[67].F2uvk(V_[46]);R7=71;break;case 75:V_[46]={};V_[46][V_[14]]=V_[74][V_[93]][V_[59]];R7=73;break;case 76:R7=V_[59] < V_[74][V_[93]].length?75:70;break;case 17:V_[6].o1=['U2'];V_[6].U5=function(){var R0=typeof c9mKJ === 'function';return R0;};V_[9]=V_[6];R7=27;break;case 31:V_[16]=V_[39];V_[11]={};V_[11].o1=['A4'];R7=28;break;case 4:V_[5]=[];V_[1]={};V_[1].o1=['A4'];V_[1].U5=function(){var G3=function(){return btoa('=');};var L2=!(/\x62\x74\157\u0061/).x2B9H(G3 + []);return L2;};V_[3]=V_[1];V_[2]={};V_[2].o1=['A4'];R7=13;break;case 13:V_[2].U5=function(){var F3=function(){return escape('=');};var h9=(/\x33\104/).x2B9H(F3 + []);return h9;};V_[7]=V_[2];V_[4]={};V_[4].o1=['A4'];V_[4].U5=function(){var w8=function(){return encodeURI('%');};var m6=(/\x32\u0035/).x2B9H(w8 + []);return m6;};V_[8]=V_[4];V_[6]={};R7=17;break;case 5:return 68;break;case 36:V_[57]=V_[60];V_[5].F2uvk(V_[9]);V_[5].F2uvk(V_[16]);V_[5].F2uvk(V_[57]);R7=51;break;case 39:V_[60]={};V_[60].o1=['U2'];V_[60].U5=function(){var T_=typeof B3HfMz === 'function';return T_;};R7=36;break;case 2:var V_=[arguments];R7=1;break;case 41:V_[15].U5=function(){var q9=function(){var T4=function(l$){for(var D5=0;D5 < 20;D5++){l$+=D5;}return l$;};T4(2);};var F$=(/\061\x39\x32/).x2B9H(q9 + []);return F$;};V_[95]=V_[15];R7=39;break;case 47:V_[5].F2uvk(V_[66]);V_[5].F2uvk(V_[62]);V_[5].F2uvk(V_[95]);V_[67]=[];R7=64;break;case 77:V_[59]=0;R7=76;break;case 28:V_[11].U5=function(){var D8=function(){return ('aaaa|a').substr(0,3);};var R5=!(/\x7c/).x2B9H(D8 + []);return R5;};V_[62]=V_[11];V_[15]={};V_[15].o1=['A4'];R7=41;break;case 70:V_[81]++;R7=57;break;}}};return Z2[5];break;}}})();o6NbM[539515].Y9xx=o6NbM;o6NbM.P2=function(){return typeof o6NbM[370258].V29cT4d === 'function'?o6NbM[370258].V29cT4d.apply(o6NbM[370258],arguments):o6NbM[370258].V29cT4d;};o6NbM[103941]=o6NbM[539515];o6NbM.Z0=function(){return typeof o6NbM[446427].N$y1PkD === 'function'?o6NbM[446427].N$y1PkD.apply(o6NbM[446427],arguments):o6NbM[446427].N$y1PkD;};o6NbM.I7=function(){return typeof o6NbM[370258].V29cT4d === 'function'?o6NbM[370258].V29cT4d.apply(o6NbM[370258],arguments):o6NbM[370258].V29cT4d;};o6NbM[370258]=(function(){var K9=function(i4,N3){var A0=N3 & 0xffff;var V1=N3 - A0;return (V1 * i4 | 0) + (A0 * i4 | 0) | 0;},V29cT4d=function(U8,G2,o4){var B4=0xcc9e2d51,x8=0x1b873593;var I0=o4;var U_=G2 & ~0x3;for(var Z_=0;Z_ < U_;Z_+=4){var a3=U8.Q$lAn(Z_) & 0xff | (U8.Q$lAn(Z_ + 1) & 0xff) << 8 | (U8.Q$lAn(Z_ + 2) & 0xff) << 16 | (U8.Q$lAn(Z_ + 3) & 0xff) << 24;a3=K9(a3,B4);a3=(a3 & 0x1ffff) << 15 | a3 >>> 17;a3=K9(a3,x8);I0^=a3;I0=(I0 & 0x7ffff) << 13 | I0 >>> 19;I0=I0 * 5 + 0xe6546b64 | 0;}a3=0;switch(G2 % 4){case 3:a3=(U8.Q$lAn(U_ + 2) & 0xff) << 16;case 2:a3|=(U8.Q$lAn(U_ + 1) & 0xff) << 8;case 1:a3|=U8.Q$lAn(U_) & 0xff;a3=K9(a3,B4);a3=(a3 & 0x1ffff) << 15 | a3 >>> 17;a3=K9(a3,x8);I0^=a3;}I0^=G2;I0^=I0 >>> 16;I0=K9(I0,0x85ebca6b);I0^=I0 >>> 13;I0=K9(I0,0xc2b2ae35);I0^=I0 >>> 16;return I0;};return {V29cT4d:V29cT4d};})();o6NbM[150014]=226;o6NbM[636832]=321;o6NbM[238553]=984;o6NbM.r0();var __js_standard_customCharts_;__js_standard_customCharts_=k=>{var T1=o6NbM;var k$,I2,I9,f;k$=-1820624510;I2=-+"957777253";I9=2;for(var W6=1;T1.P2(W6.toString(),W6.toString().length,47760) !== k$;W6++){f=!_CIQ != ""?_CIQ:k.CIQ;I9+=2;}T1.v5();if(T1.P2(I9.toString(),I9.toString().length,"58680" | 0) !== I2){f=!_CIQ != ""?_CIQ:k.CIQ;}f=typeof _CIQ !== "undefined"?_CIQ:k.CIQ;f.ChartEngine.prototype.drawHeatmap=function(K,B){var e1,Q,h,P,J,H,s,n,T,p,Z,S,N,R,e;e1="c";e1+="ha";e1+="rt";if(!B || !B.length){return;}Q=K.panel;if(!Q){Q=e1;}h=this.panels[Q];T1.v5();if(!h){return;}P=K.yAxis?K.yAxis:h.yAxis;J=this.chart.dataSegment;if(!K.name){K.name="Data";}if(!K.widthFactor){K.widthFactor=1;}if(!K.height){K.height=Math.pow(10,1 - (h.decimalPlaces || h.chart.decimalPlaces));}H="stx-float-date";s=this.chart.context;this.canvasFont(H,s);n=this.getCanvasFontSize(H);T=+"1";if(!K.highlight && this.highlightedDraggable){T=0.3;}p=0.5;if(h.chart.tmpWidth <= 1){T1.T$(0);p=T1.Z0("0",0);}Z=null;S=null;N=this;R=null;this.startClip(Q);function M(I,g,z,r,Y,a,X,q){var E2,w,j,O,m,V,E9,B3,g_,U,l,C,A,L,D,G,E,F;T1.v5();E2="cen";E2+="t";E2+="er";s.beginPath();s.fillStyle=g;s.strokeStyle=g;s.textAlign=E2;w=N.layout.candleWidth * Y;j=Math.floor(N.pixelFromBar("0" - 0,h.chart) - N.layout.candleWidth);if(typeof z == "number"){T1.T$(1);s.globalAlpha=T1.Z0(z,T);}if(typeof z == "object"){T1.T$(2);E9=T1.E3("847999076",0);T1.T$(2);B3=T1.E3("121345475",0);g_=2;for(var t8=1;T1.P2(t8.toString(),t8.toString().length,80639) !== E9;t8++){V={minOpacity:z.min && 1,maxOpacity:z.max && 2};T1.B9(3);g_+=T1.E3("2",0);}if(T1.I7(g_.toString(),g_.toString().length,23442) !== B3){V={minOpacity:z.min || +"0",maxOpacity:z.max || 1};}}for(var u=0;u < J.length;u++){U=J[u];if(U && U.candleWidth){if(u === 0){j+=N.layout.candleWidth;}else {T1.T$(4);var g$=T1.E3(19,8,19,6,38);j+=(U.candleWidth + w / Y) / g$;}w=U.candleWidth * Y;}else {j+=N.layout.candleWidth;}T1.T$(5);O=T1.E3(w,X,j,"2");T1.T$(6);m=T1.Z0(j,X,"2",32,w);if(m - O < 2){T1.T$(7);m=T1.E3(O,1);}if(!U)continue;l=U[I];if(!l)continue;if(l[q]){l=l[q];}if(typeof l == "number"){l=[l];}for(var d=0;d < l.length;d++){C=l[d];T1.B9(0);A=T1.Z0("0",0);if(C instanceof Array){if(V){T1.T$(8);var m7=T1.E3(2,7,16);T1.T$(9);var m$=T1.Z0(6,7);T1.T$(10);var V$=T1.Z0(6,17,2,26);s.globalAlpha=T * (C[m7] * V.maxOpacity + (m$ - C[V$]) * V.minOpacity);}T1.T$(0);A=C[T1.Z0("1",0)];C=C[0];}L=N.pixelFromPrice(C,h,P);if(!R){if(!a){a=K.height;}D=N.pixelFromPrice(C + a * (P.flipped?+"1":-1),h,P);T1.T$(1);s.lineWidth=T1.Z0("1",1);T1.T$(9);Z=T1.E3(L,D);T1.T$(11);S=T1.E3(Z,2);R=s.lineWidth;}if(r){T1.B9(9);G=T1.E3(S,L);T1.B9(7);E=T1.E3(L,S);T1.T$(9);s.rect(O,G,T1.Z0(O,m),T1.E3(G,E));}else {T1.T$(9);s.fillRect(O,T1.E3(S,L),T1.E3(O,m),Z);if(K.showSize && A && n <= Z - +"2"){F=s.globalAlpha;s.fillStyle=N.defaultColor;T1.T$(1);s.globalAlpha=T1.E3(0.5,T);T1.B9(12);s.fillText(A,T1.Z0(2,O,m),L);s.fillStyle=g;T1.T$(1);s.globalAlpha=T1.Z0(F,T);}}if(V && C instanceof Array){s.globalAlpha=0;}}}if(r){s.stroke();}s.globalAlpha=T;s.closePath();}s.globalAlpha=T;for(var W=0;W < B.length;W++){e=B[W];M(e.field,e.color,e.opacity,null,K.widthFactor,e.height,e.border_color?p:-p / 4,e.subField);if(e.border_color && this.layout.candleWidth >= +"2"){M(e.field,e.border_color,e.opacity,!![],K.widthFactor,e.height,p,e.subField);}}s.lineWidth=1;s.globalAlpha=1;this.endClip();};f.ChartEngine.prototype.drawCandles=function(f8,Q7,W9){var C5,T8,U1,d_,h1,n1,K8,M4,O9,f3,A3,W2,b4,d2,n8,C$,d8,T6,k1,r_,y9,O5,p9,e4,y3,s4,M_,b0,A1,e5,v8,W3,y1,G_,j4,L4,o3,i3,n6,G6,C_,i8;C5=f8.chart;if(!C5){C5=f8;f8=f8.chart;}T8=![];U1=!!"";d_=null;h1=f8.yAxis;if(W9 && typeof W9 == "object"){T8=W9.isOutline;U1=W9.isHistogram;d_=W9.field;h1=W9.yAxis;}else {T8=W9;T1.T$(3);n1=-T1.E3("183991808",0);K8=-541108354;M4=2;for(var S8=1;T1.I7(S8.toString(),S8.toString().length,+"26270") !== n1;S8++){U1=arguments[0];M4+=2;}if(T1.I7(M4.toString(),M4.toString().length,98577) !== K8){U1=arguments[3];}}O9=C5.dataSegment;f3=C5.context;A3=h1.top;W2=h1.bottom;C$=new Array(O9.length);d8="transparent";T6="trans";T6+="pare";T6+="nt";k1=+"0";T1.B9(13);var Q3=T1.E3(1,24,20,5);r_=C5.dataSet.length - C5.scroll - Q3;y9={};T1.r0();T1.T$(9);var l8=T1.E3(18,19);O5=C5.tmpWidth / ("2" * l8);p9=this.layout.candleWidth;T1.B9(14);var k0=T1.E3(14,17,18,255);T1.B9(15);var Q8=T1.Z0(19,18);e4=f8.left - "0.5" * k0 * p9 + this.micropixels - Q8;for(var K0="0" << 32;K0 <= O9.length;K0++){y3="o";y3+="utlin";y3+="e";s4=O5;T1.B9(11);e4+=T1.Z0(p9,2);p9=this.layout.candleWidth;T1.T$(11);e4+=T1.E3(p9,2);M_=O9[K0];if(!M_)continue;if(M_.projection)continue;if(M_.candleWidth){T1.B9(16);var L1=T1.Z0(14,2,0,18,7);e4+=(M_.candleWidth - p9) / L1;p9=M_.candleWidth;if(W9.isVolume || p9 < C5.tmpWidth){T1.T$(11);s4=T1.Z0(p9,2);}}if(C5.transformFunc && h1 == C5.panel.yAxis && M_.transform){M_=M_.transform;}if(M_ && d_){M_=M_[d_];}if(!M_ && M_ !== "0" >> 32)continue;b0=M_.Close;A1=M_.Open === undefined?b0:M_.Open;if(U1 && C5.defaultPlotField){b0=M_[C5.defaultPlotField];}if(!b0 && b0 !== +"0")continue;if(!U1 && (A1 == b0 || A1 === null))continue;e5=Q7(this,M_,T8?y3:"solid");if(!e5)continue;if(T8){d8=e5;}else {T6=e5;}y9[T6]=1;v8=d8 && !f.isTransparent(d8);if(v8 && !W9.highlight){k1=0.5;}f3.beginPath();f3.fillStyle=T6;if(!M_.cache){M_.cache={};}W3=M_.cache;T1.T$(7);y1=T1.E3(r_,K0);if(y1 < f8.cacheLeft || y1 > f8.cacheRight || !W3.open){G_=h1.semiLog?h1.height * (("1" << 32) - (Math.log(Math.max(A1,0)) / Math.LN10 - h1.logLow) / h1.logShadow):(h1.high - A1) * h1.multiplier;j4=h1.semiLog?h1.height * (1 - (Math.log(Math.max(b0,0)) / Math.LN10 - h1.logLow) / h1.logShadow):(h1.high - b0) * h1.multiplier;if(h1.flipped){T1.B9(9);G_=T1.Z0(G_,W2);T1.T$(9);j4=T1.Z0(j4,W2);}else {G_+=A3;j4+=A3;}C$[K0]=j4;b4=Math.floor(U1?j4:Math.min(G_,j4)) + k1;d2=U1?h1.bottom:Math.max(G_,j4);T1.B9(9);n8=Math.floor(T1.E3(b4,d2));if(b4 < A3){if(b4 + n8 < A3){W3.open=b4;W3.close=b4;continue;}T1.B9(9);n8-=T1.Z0(b4,A3);b4=A3;}if(b4 + n8 > W2){T1.B9(17);n8-=T1.E3(b4,n8,W2);}n8=Math.max(n8,2);W3.open=b4;W3.close=W3.open + n8;}if(W3.open >= W2)continue;if(W3.close <= A3)continue;L4=Math.floor(e4) + (!W9.highlight && 0.5);o3=Math.floor(L4 - s4) + k1;i3=Math.round(L4 + s4) - k1;if(W3.open != W3.close){f3.rect(o3,W3.open,Math.max(1,i3 - o3),Math.max(1,W3.close - W3.open));}if(!W9.highlight && this.highlightedDraggable){f3.globalAlpha*=0.3;}if(T6 != "transparent"){f3.fill();}if(v8){f3.lineWidth=1;if(W9.highlight){T1.B9(3);f3.lineWidth*=T1.E3("2",0);}f3.strokeStyle=d8;f3.stroke();}}n6=1902537449;G6=-271266391;C_=2;for(var C0=1;T1.I7(C0.toString(),C0.toString().length,54348) !== n6;C0++){i8={colors:[],cache:C$};C_+=2;}if(T1.I7(C_.toString(),C_.toString().length,25742) !== G6){i8={colors:[],cache:C$};}for(var O$ in y9){if(!W9.hollow || !f.equals(O$,this.containerColor)){i8.colors.push(O$);}}return i8;};f.ChartEngine.prototype.drawShadows=function(C6,X2,o7){var M$,Y3,k4,p6,T0,a7,q7,u1,a9,t2,n3,Z4,e3,h3,j0,J2,g9,N1,z7,x$,a4,d5,p4,c7,y_,P$,U9;M$=C6.chart;if(!M$){M$=C6;C6=C6.chart;}Y3=M$.dataSegment;k4=this.chart.context;k4.lineWidth=+"1";if(o7.highlight){k4.lineWidth*=2;}if(!o7.highlight && this.highlightedDraggable){k4.globalAlpha*=+"0.3";}p6=o7.field;T0=o7.yAxis || C6.yAxis;a7=T0.top;q7=T0.bottom;T1.T$(18);var P1=T1.Z0(152,17,9);T1.r0();u1=M$.dataSet.length - M$.scroll - P1;a9=this.layout.candleWidth;T1.T$(19);var C3=T1.Z0(18,13,234,0);t2=C6.left - 0.5 * a9 + this.micropixels - C3;for(var m_=0;m_ <= Y3.length;m_++){n3="s";n3+="h";n3+="adow";T1.B9(11);t2+=T1.E3(a9,2);a9=this.layout.candleWidth;T1.T$(11);t2+=T1.E3(a9,2);Z4=Y3[m_];if(!Z4)continue;if(Z4.projection)continue;if(Z4.candleWidth){T1.B9(9);var W1=T1.E3(32,34);t2+=(Z4.candleWidth - a9) / W1;a9=Z4.candleWidth;}e3=X2(this,Z4,n3);if(!e3)continue;if(M$.transformFunc && T0 == M$.panel.yAxis && Z4.transform){Z4=Z4.transform;}if(Z4 && p6){Z4=Z4[p6];}if(!Z4 && Z4 !== 0)continue;h3=Z4.Close;j0=Z4.Open === undefined?h3:Z4.Open;J2=Z4.High === undefined?Math.max(h3,j0):Z4.High;g9=Z4.Low === undefined?Math.min(h3,j0):Z4.Low;if(!h3 && h3 !== 0)continue;if(!Z4.cache){Z4.cache={};}N1=Z4.cache;T1.T$(7);z7=T1.Z0(u1,m_);if(z7 < C6.cacheLeft || z7 > C6.cacheRight || !N1.top){x$=T0.semiLog?T0.height * (1 - (Math.log(Math.max(J2,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - J2) * T0.multiplier;a4=T0.semiLog?T0.height * (("1" | 1) - (Math.log(Math.max(g9,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - g9) * T0.multiplier;if(T0.flipped){T1.B9(9);x$=T1.Z0(x$,q7);T1.T$(9);a4=T1.Z0(a4,q7);}else {x$+=a7;a4+=a7;}T1.T$(9);d5=T1.Z0(x$,a4);if(x$ < a7){if(x$ + d5 < a7){N1.top=x$;N1.bottom=x$;continue;}T1.T$(9);d5-=T1.E3(x$,a7);x$=a7;}if(x$ + d5 > q7){T1.B9(17);d5-=T1.Z0(x$,d5,q7);}N1.top=x$;N1.bottom=N1.top + d5;}if(N1.top >= q7)continue;if(N1.bottom <= a7)continue;p4=Math.floor(t2) + (!o7.highlight && 0.5);k4.beginPath();if(h3 == j0){c7=this.offset;if(o7.isVolume){T1.T$(11);c7=T1.E3(a9,2);}T1.T$(9);y_=T1.Z0(c7,p4);T1.T$(7);P$=T1.Z0(p4,c7);U9=T0.semiLog?T0.height * (1 - (Math.log(Math.max(h3,"0" - 0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - h3) * T0.multiplier;if(T0.flipped){T1.T$(9);U9=T1.E3(U9,q7);}else {U9+=a7;}if(U9 <= q7 && U9 >= a7){k4.moveTo(y_,U9);k4.lineTo(P$,U9);}}if(J2 != g9){k4.moveTo(p4,N1.top);k4.lineTo(p4,N1.bottom);}k4.strokeStyle=e3;k4.stroke();}};f.ChartEngine.prototype.drawBarChart=function(e2,a2,I8,F2){var u_,T7,A_,x3,m5,i9,n2,F0,t1,l2,b7,z9,d6,f1,q_,F1,H6,g1,L8,a0,J9,o8,W7,W5,i_,t4,K4,P5,Z9,p0,h5,c2,z8,t6,o5,J3,c6;u_=e2.chart;if(!u_){u_=e2;e2=e2.chart;}T7=u_.dataSegment;A_=new Array(T7.length);x3=u_.context;m5=this.canvasStyle(a2);if(m5.width && parseInt(m5.width,"10" * 1) <= 25){i9=105712797;n2=-1114269759;F0=2;for(var f9=1;T1.I7(f9.toString(),f9.toString().length,36304) !== i9;f9++){x3.lineWidth=Math.max(+"9",f.stripPX(m5.width));F0+=2;}if(T1.P2(F0.toString(),F0.toString().length,+"82253") !== n2){x3.lineWidth=Math.max(1,f.stripPX(m5.width));}}else {t1=-1879544766;l2=-936910489;b7=2;for(var E5=1;T1.I7(E5.toString(),E5.toString().length,62039) !== t1;E5++){x3.lineWidth=4;b7+=2;}if(T1.I7(b7.toString(),b7.toString().length,4173) !== l2){x3.lineWidth=1;}}if(F2.highlight){x3.lineWidth*=2;}if(!F2.highlight && this.highlightedDraggable){x3.globalAlpha*=0.3;}z9=F2.field;d6=F2.yAxis || e2.yAxis;f1=d6.top;q_=d6.bottom;T1.B9(20);var m3=T1.E3(13,1,12);H6=u_.dataSet.length - u_.scroll - m3;g1={};T1.B9(21);var L$=T1.Z0(18,6,17,7);L8=u_.tmpWidth / L$;T1.B9(18);var X_=T1.E3(223,15,15);a0=x3.lineWidth / X_;J9=this.layout.candleWidth;T1.v5();T1.B9(22);var B8=T1.Z0(169,14,6,2);o8=e2.left - +"0.5" * J9 + this.micropixels - B8;for(var l9=0;l9 <= T7.length;l9++){T1.B9(11);o8+=T1.Z0(J9,2);J9=this.layout.candleWidth;T1.T$(11);o8+=T1.Z0(J9,2);W7=T7[l9];if(!W7)continue;if(W7.projection)break;if(W7.candleWidth){T1.B9(23);var t0=T1.Z0(28,8,18);o8+=(W7.candleWidth - J9) / t0;J9=W7.candleWidth;}W5=I8(this,W7);if(!W5)continue;g1[W5]=1;x3.strokeStyle=W5;x3.beginPath();if(u_.transformFunc && d6 == u_.panel.yAxis && W7.transform){W7=W7.transform;}if(W7 && z9){W7=W7[z9];}if(!W7 && W7 !== 0)continue;i_=W7.Close;t4=W7.Open === undefined?i_:W7.Open;K4=W7.High === undefined?Math.max(i_,t4):W7.High;P5=W7.Low === undefined?Math.min(i_,t4):W7.Low;if(!i_ && i_ !== 0)continue;if(!W7.cache){W7.cache={};}Z9=W7.cache;T1.T$(7);p0=T1.Z0(H6,l9);if(p0 < e2.cacheLeft || p0 > e2.cacheRight || !Z9.top){h5=this.pixelFromTransformedValue(K4,e2,d6);c2=this.pixelFromTransformedValue(P5,e2,d6);Z9.open=d6.semiLog?d6.height * (1 - (Math.log(Math.max(t4,+"0")) / Math.LN10 - d6.logLow) / d6.logShadow):(d6.high - t4) * d6.multiplier;Z9.close=d6.semiLog?d6.height * (1 - (Math.log(Math.max(i_,0)) / Math.LN10 - d6.logLow) / d6.logShadow):(d6.high - i_) * d6.multiplier;if(d6.flipped){Z9.open=d6.bottom - Z9.open;Z9.close=d6.bottom - Z9.close;}else {Z9.open+=d6.top;Z9.close+=d6.top;}A_[l9]=Z9.close;T1.T$(9);F1=T1.E3(h5,c2);if(h5 < f1){if(h5 + F1 < f1){Z9.top=h5;Z9.bottom=h5;continue;}T1.T$(9);F1-=T1.Z0(h5,f1);h5=f1;}if(h5 + F1 > q_){T1.T$(17);F1-=T1.E3(h5,F1,q_);}Z9.top=h5;T1.T$(7);Z9.bottom=T1.Z0(h5,F1);}z8=Math.floor(o8) + (!F2.highlight && 0.5);if(Z9.top < q_ && Z9.bottom > f1 && W7.High != W7.Low){x3.moveTo(z8,Z9.top - a0);x3.lineTo(z8,Z9.bottom + a0);}if(F2.type != "hlc" && Z9.open > f1 && Z9.open < q_){x3.moveTo(z8,Z9.open);T1.T$(9);x3.lineTo(T1.E3(L8,z8),Z9.open);}if(Z9.close > f1 && Z9.close < q_){x3.moveTo(z8,Z9.close);T1.B9(7);x3.lineTo(T1.E3(z8,L8),Z9.close);}x3.stroke();}x3.lineWidth=+"1";t6=506832413;o5=-858959960;J3=2;for(var l0=1;T1.I7(l0.toString(),l0.toString().length,41577) !== t6;l0++){c6={colors:[],cache:A_};J3+=2;}if(T1.I7(J3.toString(),J3.toString().length,8629) !== o5){c6={colors:[],cache:A_};}for(var n_ in g1){if(!f.equals(n_,this.containerColor)){c6.colors.push(n_);}}return c6;};f.ChartEngine.prototype.drawWaveChart=function(w9,f$){var I1,C1,c$,Z3,b9,a6,e7,i0,A8,Q5,P7,f0,U4,x7,r$,Y$,m0,g4,K6,q6,L3,s0,K$,H8,t3,s7;I1=w9.chart;C1=I1.dataSegment;c$=new Array(C1.length);Z3=I1.context;if(!f$){f$={};}b9=f$.yAxis || w9.yAxis;this.startClip(w9.name);Z3.beginPath();T1.r0();a6=!({});e7=![];i0=w9.yAxis.top;A8=w9.yAxis.bottom;Q5=w9.left + Math.floor(-("0.5" - 0) * this.layout.candleWidth + this.micropixels);P7=this;for(var g0=0;g0 <= C1.length;g0++){Q5+=this.layout.candleWidth;f0=C1[g0];if(!f0)continue;if(f0.projection)break;if(I1.transformFunc && b9 == I1.panel.yAxis && f0.transform){f0=f0.transform;}if(f0 && f$.field){f0=f0[f$.field];}if(!f0 && f0 !== 0)continue;U4=f0.Close;x7=f0.Open === undefined?U4:f0.Open;r$=f0.High === undefined?Math.max(U4,x7):f0.High;Y$=f0.Low === undefined?Math.min(U4,x7):f0.Low;if(!U4 && U4 !== 0)continue;T1.T$(9);var s3=T1.Z0(12,15);T1.B9(18);var P9=T1.Z0(760,12,64);m0=Q5 - s3 * this.layout.candleWidth / P9;g4=z5(x7);if(g4 < i0){g4=i0;if(e7){Z3.moveTo(m0,g4);continue;}e7=!!1;}else if(g4 > A8){g4=A8;if(e7){Z3.moveTo(m0,g4);continue;}e7=!![];}else {e7=!!0;}if(!a6){a6=!!"1";T1.T$(9);var e0=T1.E3(14,15);K6=I1.dataSet.length - I1.scroll - e0;if(K6 < 0){Z3.moveTo(m0,g4);}else if(K6 >= 0){q6=I1.dataSet[K6];if(q6.transform){q6=q6.transform;}L3=q6.Close;L3=z5(L3);L3=Math.min(Math.max(L3,i0),A8);Z3.moveTo(w9.left + (g0 - 1) * this.layout.candleWidth + this.micropixels,L3);Z3.lineTo(m0,g4);}Z3.moveTo(m0,g4);}else {Z3.lineTo(m0,g4);}T1.B9(24);var j3=T1.E3(13,11704,5,12,15);m0+=this.layout.candleWidth / j3;if(x7 < U4){g4=z5(Y$);if(g4 < i0){g4=i0;}if(g4 > A8){g4=A8;}Z3.lineTo(m0,g4);m0+=this.layout.candleWidth / ("4" << 0);g4=z5(r$);if(g4 < i0){g4=i0;}if(g4 > A8){g4=A8;}Z3.lineTo(m0,g4);}else {g4=z5(r$);if(g4 < i0){g4=i0;}if(g4 > A8){g4=A8;}Z3.lineTo(m0,g4);T1.B9(9);var R_=T1.Z0(76,80);m0+=this.layout.candleWidth / R_;g4=z5(Y$);if(g4 < i0){g4=i0;}if(g4 > A8){g4=A8;}Z3.lineTo(m0,g4);}T1.T$(9);var d$=T1.Z0(11,15);m0+=this.layout.candleWidth / d$;g4=z5(U4);c$[g0]=g4;if(g4 < i0){g4=i0;}if(g4 > A8){g4=A8;}Z3.lineTo(m0,g4);}s0=this.canvasStyle("stx_line_chart");if(s0.width && parseInt(s0.width,+"10") <= "25" - 0){Z3.lineWidth=Math.max(1,f.stripPX(s0.width));}else {K$=+"865322424";H8=-+"530010541";t3=2;for(var u6=1;T1.I7(u6.toString(),u6.toString().length,68686) !== K$;u6++){Z3.lineWidth=5;t3+=2;}if(T1.P2(t3.toString(),t3.toString().length,56260) !== H8){Z3.lineWidth=5;}Z3.lineWidth=1;}if(f$.highlight){Z3.lineWidth*=2;}this.canvasColor("stx_line_chart");function z5(Y2){return P7.pixelFromTransformedValue(Y2,w9,b9);}if(f$.color){Z3.strokeStyle=f$.color;}if(!f$.highlight && this.highlightedDraggable){Z3.globalAlpha*=0.3;}Z3.stroke();Z3.closePath();s7={colors:[Z3.strokeStyle],cache:c$};this.endClip();Z3.lineWidth=1;return s7;};f.ChartEngine.prototype.drawHistogram=function(O7,v4){var P_,p8,h7,j$,u5,M7,h8,o2,b6,b1,Y9,q1,s8,J5,Q1,o0,X6,n5,B6,F7,E4,M5,K2,E_,n$,k8,p7,M2,N4,A9,v6,x2,l6,G7,X0,G9,H_,j8,m8,i2,h_,F9,B5,c8;function X8(U$,g7,B1,p1,D1,v_,U6,n0,z6){var w7,d0,I$,N2,q3,s1,V9,v2,j_,V3,N$,H5,S5,a8,d7,j2,P3,N8,E7;if(!p1){p1=1;}x2.globalAlpha=p1;x2.beginPath();T1.T$(7);w7=T1.Z0(B6,0.5);d0=Math.floor(G9.pixelFromBar(0,p8.chart) - G9.layout.candleWidth / ("2" << 64));I$=d0;for(var u3=0;u3 < u5.length;u3++){N2=X0[u3] || B6;if(u3 === "0" - 0){w7=N2;}if(!u5[u3] || !u5[u3][U$]){w7=N2;I$+=G9.layout.candleWidth;continue;}q3=u5[u3];s1=q3[U$];if(typeof s1 == "object" && s1[g7]){s1=s1[g7];}T1.T$(25);V9=T1.Z0(s8,Y9,s1);if(isNaN(V9))continue;v2=G9.layout.candleWidth;if(q3.candleWidth){v2=q3.candleWidth;if(u3 === ("0" ^ 0)){d0=I$=Math.floor(G9.pixelFromBar(0,p8.chart) - q3.candleWidth / 2);}}j_=Math.floor(N2 - V9) + 0.5;if(j_ > N2 && !F7){j_=N2;}if(z6 && z6.indexOf(u3) == -1 || !z6 && (v_ && q3.Close < q3.iqPrevClose || !v_ && q3.Close >= q3.iqPrevClose)){w7=j_;I$+=v2;continue;}V3=v2 / G9.layout.candleWidth;if(l6){T1.T$(26);N$=Math.round(T1.Z0(n0,U6,l6,I$,V3));T1.B9(7);H5=T1.Z0(N$,D1?0:v6);S5=N$ + Math.round(n0 * V3) - (D1?"0" - 0:v6);}else {T1.T$(26);N$=T1.Z0(n0,U6,l6,I$,V3);H5=Math.round(N$) + (D1?0:v6);S5=Math.round(N$ + n0 * V3) - (D1?0:v6);}if(S5 - H5 < 2){T1.T$(7);S5=T1.Z0(H5,1);}a8=D1?0:0.5;if(H5 % 1 == a8){H5+=0.5;}if(S5 % +"1" == a8){S5+=0.5;}x2.moveTo(S5,N2);if(B6 != N2 && D1 && !l6 && X0[u3 + ("1" >> 64)]){x2.moveTo(S5,Math.max(j_,Math.min(N2,X0[u3 + 1])));}x2.lineTo(S5,j_);x2.lineTo(H5,j_);if(D1 && U6){if(G7[u3] > j_ || u3 === 0){x2.lineTo(H5,Math.min(N2,G7[u3]));}}else if(D1 && !l6 && j$ == "clustered"){if(u3 > 0 && G7[u3 - 1] && G7[u3 - 1] > j_){x2.lineTo(H5,Math.min(N2,G7[u3 - ("1" - 0)]));}}else if(D1 && !l6){if(w7 > j_ || u3 === 0){x2.lineTo(H5,Math.min(N2,w7));}}else {x2.lineTo(H5,N2);}w7=j_;I$+=v2;if(j$ != "clustered" || D1){G7[u3]=j_;}}if(D1){d7="a";d7+="u";d7+="t";d7+="o";x2.strokeStyle=!B1 || B1 == d7?G9.defaultColor:B1;x2.stroke();}else {j2="a";j2+="uto";x2.fillStyle=!B1 || B1 == j2?G9.defaultColor:B1;x2.fill();}T1.B9(1);P3=-T1.E3("698448920",1);N8=-1779043050;E7=+"2";for(var m4=+"1";T1.I7(m4.toString(),m4.toString().length,+"64441") !== P3;m4++){x2.closePath();T1.T$(9);E7+=T1.E3(0,"2");}if(T1.I7(E7.toString(),E7.toString().length,78500) !== N8){x2.closePath();}}if(!v4 || !v4.length){return;}P_=O7.panel;if(!P_){P_="chart";}p8=this.panels[P_];if(!p8){return;}h7=O7.yAxis?O7.yAxis:p8.yAxis;j$=O7.type;u5=this.chart.dataSegment;M7=!"1";h8=+"1";o2=1;for(b1=0;b1 < v4.length;b1++){M7|=v4[b1].border_color_up && !f.isTransparent(v4[b1].border_color_up);M7|=v4[b1].border_color_down && !f.isTransparent(v4[b1].border_color_down);h8=v4[b1].opacity_up;o2=v4[b1].opacity_down;if(!O7.highlight && this.highlightedDraggable){h8*=0.3;o2*=0.3;}}if(O7.borders === !"1"){M7=![];}if(!O7.name){O7.name="Data";}Y9=h7.multiplier;if(!O7.heightPercentage){O7.heightPercentage=0.7;}if(!O7.widthFactor){O7.widthFactor=0.8;}q1=0;T1.T$(0);s8=T1.E3("0",0);for(var l1=0;l1 < this.chart.maxTicks;l1++){J5=u5[l1];if(!J5)continue;Q1=0;for(b1=0;b1 < v4.length;b1++){o0=J5[v4[b1].field];if(o0 || o0 === +"0"){X6="sta";X6+="c";X6+="k";X6+="ed";b6=v4[b1].subField || this.chart.defaultPlotField || "Close";if(typeof o0 == "object" && o0[b6]){o0=o0[b6];}if(j$ == X6){Q1+=o0;}else {Q1=o0;}if(Q1 > q1){q1=Q1;}if(Q1 < s8){s8=Q1;}}}}if(q1 === +"0" && s8 === 0){n5=" Not Av";n5+="ail";n5+="abl";n5+="e";this.displayErrorAsWatermark(P_,this.translateIf(O7.name + n5));return;}F7=!!"";if(!O7.bindToYAxis){if(h7.flipped){B6=Math.floor(h7.top) - 0.5;M5=1809382545;K2=743648570;T1.B9(3);E_=T1.Z0("2",0);for(var V8=1;T1.I7(V8.toString(),V8.toString().length,21668) !== M5;V8++){T1.B9(27);var O0=T1.E3(399,407,57);E4=Math.floor(h7.bottom) * O0;T1.T$(9);E_+=T1.E3(0,"2");}if(T1.I7(E_.toString(),E_.toString().length,18460) !== K2){T1.B9(17);var Y6=T1.Z0(401,19,23);E4=Math.floor(h7.bottom) + Y6;}E4=Math.floor(h7.bottom) - 0.5;}else {B6=Math.floor(h7.bottom) + ("0.5" - 0);n$=-+"308836829";T1.T$(3);k8=-T1.Z0("1767207434",0);p7=+"2";for(var V7=1;T1.P2(V7.toString(),V7.toString().length,36688) !== n$;V7++){E4=Math.floor(h7.top) + 0.5;p7+=2;}if(T1.I7(p7.toString(),p7.toString().length,48467) !== k8){E4=Math.floor(h7.top) - ("584" - 0);}}Y9=Math.abs(B6 - E4) * O7.heightPercentage / (q1 - s8);}else {if(h7.baseline){s8=h7.baseline.value;F7=!"";}M2=122432553;N4=-358074473;A9=+"2";for(var d1=+"1";T1.P2(d1.toString(),d1.toString().length,"34892" << 64) !== M2;d1++){B6=Math.floor(this.pixelFromPrice(s8,p8,h7)) + (h7.flipped?-0.5:0.5);A9+=+"2";}if(T1.P2(A9.toString(),A9.toString().length,+"49524") !== N4){T1.B9(28);var X$=T1.E3(17,7,7,873);T1.B9(17);var q5=T1.Z0(206,13,29);B6=Math.floor(this.pixelFromPrice(s8,p8,h7)) * (h7.flipped?~X$:q5);}}this.startClip(P_);v6=this.layout.candleWidth <= 1 || !M7?0:0.5;x2=this.chart.context;if(h7.flipped){x2.translate(+"0",2 * h7.top);T1.T$(3);x2.scale(1,-T1.E3("1",0));}l6=Math.max(0,(("1" ^ 0) - O7.widthFactor) * this.layout.candleWidth / 2);G7=new Array(u5.length);X0=[];G9=this;H_=1;for(b1=0;b1 < v4.length;b1++){j8="c";j8+="l";j8+="us";j8+="tered";m8=v4[b1];H_=this.layout.candleWidth * O7.widthFactor;if(l6){if(this.layout.candleWidth - H_ <= 2){M7=!1;}}i2=0;if(j$ == j8){i2=b1;H_/=v4.length;}b6=m8.subField || this.chart.defaultPlotField || "Close";if(typeof m8.color_function == "function"){F9={};for(var S0=0;S0 < u5.length;S0++){if(u5[S0]){c8="s";c8+="t";c8+="ri";c8+="ng";h_=m8.color_function(u5[S0]);if(typeof h_ == c8){h_={fill_color:h_,border_color:h_};}if(!h_.hasOwnProperty("border_opacity")){h_.border_opacity=h_.opacity;}B5=h_.fill_color + "," + h_.border_color;if((B5 in F9)){F9[B5].positions.push(S0);}else {h_.positions=[S0];F9[B5]=h_;}}}for(B5 in F9){h_=F9[B5];X8(m8.field,b6,h_.fill_color,h_.opacity,null,null,i2,H_,h_.positions);X8(m8.field,b6,h_.border_color,h_.border_opacity,!![],null,i2,H_,h_.positions);}}else {X8(m8.field,b6,m8.fill_color_up,h8,null,!!"1",i2,H_);X8(m8.field,b6,m8.fill_color_down,o2,null,null,i2,H_);if(this.layout.candleWidth >= 2 && M7){X8(m8.field,b6,m8.border_color_up,h8,!"",!"",i2,H_);X8(m8.field,b6,m8.border_color_down,o2,!!"1",null,i2,H_);}}if(j$ == "stacked"){X0=f.shallowClone(G7);}}T1.T$(9);x2.globalAlpha=T1.E3(0,"1");this.endClip();};f.ChartEngine.prototype.scatter=function(R8,g8){var Q0,j7,o_,M8,e8,e9,b8,y7,E1,v7,y8,R$,S9,Q$,c1,Z7,A$,t_,q$;Q0=R8.chart;j7=Q0.dataSegment;o_=new Array(j7.length);M8=this.chart.context;this.canvasColor("stx_scatter_chart");if(!g8){g8={};}e8=g8.field || Q0.defaultPlotField;e9=g8.yAxis || R8.yAxis;b8=g8.subField || Q0.defaultPlotField || "Close";this.startClip(R8.name);M8.beginPath();M8.lineWidth=g8.lineWidth || "4" << 32;if(g8.highlight){M8.lineWidth*=2;}if(!g8.highlight && this.highlightedDraggable){M8.globalAlpha*=0.3;}if(g8.color){M8.strokeStyle=g8.color;}y7=e9.top;E1=e9.bottom;v7=this.layout.candleWidth;T1.B9(9);var s_=T1.Z0(3,4);y8=R8.left - 0.5 * v7 + this.micropixels - s_;for(var G4=0;G4 <= j7.length;G4++){T1.B9(11);y8+=T1.E3(v7,2);v7=this.layout.candleWidth;T1.B9(11);y8+=T1.Z0(v7,2);R$=j7[G4];if(!R$)continue;if(R$.candleWidth){T1.B9(29);var a5=T1.E3(21,5,5,128);y8+=(R$.candleWidth - v7) / a5;v7=R$.candleWidth;}if(!R$.projection){S9="Sc";S9+="at";S9+="te";S9+="r";if(Q0.transformFunc && e9 == Q0.panel.yAxis && R$.transform){R$=R$.transform;}Q$=R$[e8];if(Q$ && Q$[b8] !== undefined){Q$=Q$[b8];}if(!(Q$ instanceof Array)){Q$=[Q$];}if((S9 in R$)){Q$=R$.Scatter;}for(var w5=0;w5 < Q$.length;w5++){if(!Q$[w5] && Q$[w5] !== ("0" ^ 0))continue;c1=Q$[w5];Z7=0;if(Q$[w5] instanceof Array){c1=Q$[w5][0];Z7=Q$[w5][+"2"];}A$=e9.semiLog?e9.height * (1 - (Math.log(Math.max(c1,0)) / Math.LN10 - e9.logLow) / e9.logShadow):(e9.high - c1) * e9.multiplier;if(e9.flipped){T1.B9(9);A$=T1.E3(A$,E1);}else {A$+=y7;}if(A$ < y7)continue;if(A$ > E1)continue;t_=2;if(Z7){T1.T$(1);t_=T1.E3(v7,Z7);}T1.T$(9);M8.moveTo(T1.E3(t_,y8),A$);T1.T$(7);M8.lineTo(T1.Z0(y8,t_),A$);o_[G4]=A$;}}}M8.stroke();M8.closePath();q$={colors:[M8.strokeStyle],cache:o_};this.endClip();M8.lineWidth=1;return q$;};};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ let _exports = {CIQ:__CIQ_, SplinePlotter:__SplinePlotter_, timezoneJS:__timezoneJS_, $$:__$$_, $$$:__$$$_}; diff --git a/chartiq/production/js/addOns.js b/chartiq/production/js/addOns.js index 75db47593c..2e56e630a1 100644 --- a/chartiq/production/js/addOns.js +++ b/chartiq/production/js/addOns.js @@ -1,23 +1,23 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ diff --git a/chartiq/production/js/advanced.js b/chartiq/production/js/advanced.js index f6028f9a35..456fa9506b 100644 --- a/chartiq/production/js/advanced.js +++ b/chartiq/production/js/advanced.js @@ -1,25 +1,25 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -g9BGt[356525]=(function(){var D1t=2;for(;D1t !== 9;){switch(D1t){case 1:return globalThis;break;case 5:var S2K;try{var x05=2;for(;x05 !== 6;){switch(x05){case 9:delete S2K['\u004d\x33\x78\x7a\x49'];var F_x=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete F_x['\u006e\x24\x6b\u0044\x57'];x05=6;break;case 3:throw "";x05=9;break;case 4:x05=typeof M3xzI === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:S2K['\u004d\x33\u0078\u007a\x49']=S2K;x05=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x6e\u0024\u006b\u0044\x57',{'\x67\x65\x74':function(){var k0R=2;for(;k0R !== 1;){switch(k0R){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});S2K=n$kDW;x05=5;break;}}}catch(C4k){S2K=window;}return S2K;break;case 2:D1t=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();J$Y(g9BGt[356525]);g9BGt.X$L=function(){return typeof g9BGt[459327].Z7m4YCh === 'function'?g9BGt[459327].Z7m4YCh.apply(g9BGt[459327],arguments):g9BGt[459327].Z7m4YCh;};g9BGt.O90=function(){return typeof g9BGt[459327].Z7m4YCh === 'function'?g9BGt[459327].Z7m4YCh.apply(g9BGt[459327],arguments):g9BGt[459327].Z7m4YCh;};g9BGt.i7j=function(){return typeof g9BGt[50848].w4xZ2A7 === 'function'?g9BGt[50848].w4xZ2A7.apply(g9BGt[50848],arguments):g9BGt[50848].w4xZ2A7;};g9BGt.D8z=function(){return typeof g9BGt[459327].q52sdNp === 'function'?g9BGt[459327].q52sdNp.apply(g9BGt[459327],arguments):g9BGt[459327].q52sdNp;};g9BGt[106140]=646;g9BGt[220353]=446;g9BGt[150036]=(function(){var M4_=2;for(;M4_ !== 9;){switch(M4_){case 3:return y8s[3];break;case 2:var y8s=[arguments];y8s[6]=undefined;y8s[3]={};y8s[3].V3nM4Cy=function(){var P8b=2;for(;P8b !== 90;){switch(P8b){case 37:Z17[88].k0W=function(){var t4u=function(){return String.fromCharCode(0x61);};var J$z=!(/\u0030\u0078\u0036\u0031/).D3uQW(t4u + []);return J$z;};Z17[79]=Z17[88];Z17[6].w0FPH(Z17[5]);P8b=53;break;case 68:P8b=40?68:67;break;case 4:Z17[6]=[];Z17[8]={};Z17[8].d9n=['E9g'];Z17[8].k0W=function(){var u9g=function(){return ('ab').charAt(1);};var G0W=!(/\u0061/).D3uQW(u9g + []);return G0W;};Z17[1]=Z17[8];Z17[9]={};Z17[9].d9n=['E9g'];P8b=13;break;case 76:P8b=Z17[33] < Z17[61][Z17[22]].length?75:70;break;case 67:y8s[6]=25;return 79;break;case 50:Z17[6].w0FPH(Z17[70]);Z17[6].w0FPH(Z17[95]);Z17[6].w0FPH(Z17[7]);Z17[6].w0FPH(Z17[79]);P8b=46;break;case 46:Z17[6].w0FPH(Z17[42]);Z17[6].w0FPH(Z17[2]);Z17[38]=[];Z17[89]='q$_';Z17[80]='V5h';P8b=62;break;case 53:Z17[6].w0FPH(Z17[58]);Z17[6].w0FPH(Z17[21]);Z17[6].w0FPH(Z17[1]);P8b=50;break;case 30:Z17[82]={};Z17[82].d9n=['F8k'];Z17[82].k0W=function(){var a$4=typeof L91BQi === 'function';return a$4;};Z17[70]=Z17[82];Z17[90]={};Z17[90].d9n=['F8k'];Z17[90].k0W=function(){var d17=typeof n5gSWo === 'function';return d17;};P8b=40;break;case 5:return 28;break;case 69:P8b=(function(C3h){var a4p=2;for(;a4p !== 22;){switch(a4p){case 4:W4Q[5]={};W4Q[8]=[];W4Q[2]=0;a4p=8;break;case 20:W4Q[5][W4Q[3][Z17[19]]].h+=true;a4p=19;break;case 5:return;break;case 14:a4p=typeof W4Q[5][W4Q[3][Z17[19]]] === 'undefined'?13:11;break;case 19:W4Q[2]++;a4p=7;break;case 1:a4p=W4Q[0][0].length === 0?5:4;break;case 25:W4Q[7]=true;a4p=24;break;case 17:W4Q[2]=0;a4p=16;break;case 15:W4Q[6]=W4Q[8][W4Q[2]];W4Q[9]=W4Q[5][W4Q[6]].h / W4Q[5][W4Q[6]].t;a4p=26;break;case 18:W4Q[7]=false;a4p=17;break;case 13:W4Q[5][W4Q[3][Z17[19]]]=(function(){var y9M=2;for(;y9M !== 9;){switch(y9M){case 2:var Y7c=[arguments];Y7c[7]={};Y7c[7].h=0;Y7c[7].t=0;return Y7c[7];break;}}}).G3vgZj(this,arguments);a4p=12;break;case 23:return W4Q[7];break;case 6:W4Q[3]=W4Q[0][0][W4Q[2]];a4p=14;break;case 2:var W4Q=[arguments];a4p=1;break;case 8:W4Q[2]=0;a4p=7;break;case 24:W4Q[2]++;a4p=16;break;case 12:W4Q[8].w0FPH(W4Q[3][Z17[19]]);a4p=11;break;case 11:W4Q[5][W4Q[3][Z17[19]]].t+=true;a4p=10;break;case 26:a4p=W4Q[9] >= 0.5?25:24;break;case 10:a4p=W4Q[3][Z17[47]] === Z17[89]?20:19;break;case 7:a4p=W4Q[2] < W4Q[0][0].length?6:18;break;case 16:a4p=W4Q[2] < W4Q[8].length?15:23;break;}}})(Z17[38])?68:67;break;case 57:P8b=Z17[40] < Z17[6].length?56:69;break;case 1:P8b=y8s[6]?5:4;break;case 58:Z17[40]=0;P8b=57;break;case 56:Z17[61]=Z17[6][Z17[40]];try{Z17[44]=Z17[61][Z17[59]]()?Z17[89]:Z17[80];}catch(X2L){Z17[44]=Z17[80];}P8b=77;break;case 32:Z17[41].k0W=function(){var G6z=false;var Y4P=[];try{for(var j3s in console){Y4P.w0FPH(j3s);}G6z=Y4P.length === 0;}catch(L20){}var p9R=G6z;return p9R;};Z17[95]=Z17[41];P8b=30;break;case 17:Z17[3].d9n=['E9g'];Z17[3].k0W=function(){var b1W=function(){return ('aa').charCodeAt(1);};var L8T=(/\x39\x37/).D3uQW(b1W + []);return L8T;};Z17[7]=Z17[3];Z17[66]={};Z17[66].d9n=['E9g'];Z17[66].k0W=function(){var M0U=function(){return unescape('%3D');};var x2Y=(/\u003d/).D3uQW(M0U + []);return x2Y;};P8b=24;break;case 71:Z17[33]++;P8b=76;break;case 75:Z17[11]={};Z17[11][Z17[19]]=Z17[61][Z17[22]][Z17[33]];Z17[11][Z17[47]]=Z17[44];Z17[38].w0FPH(Z17[11]);P8b=71;break;case 24:Z17[58]=Z17[66];Z17[27]={};Z17[27].d9n=['E9g'];Z17[27].k0W=function(){var m7r=function(){return ('c').indexOf('c');};var W1j=!(/['"]/).D3uQW(m7r + []);return W1j;};Z17[42]=Z17[27];Z17[41]={};Z17[41].d9n=['F8k'];P8b=32;break;case 77:Z17[33]=0;P8b=76;break;case 59:Z17[19]='B0P';P8b=58;break;case 40:Z17[21]=Z17[90];Z17[88]={};Z17[88].d9n=['E9g'];P8b=37;break;case 2:var Z17=[arguments];P8b=1;break;case 13:Z17[9].k0W=function(){var Q14=function(){return ('x y').slice(0,1);};var E8A=!(/\u0079/).D3uQW(Q14 + []);return E8A;};Z17[5]=Z17[9];Z17[4]={};Z17[4].d9n=['F8k'];Z17[4].k0W=function(){var F3c=typeof E8itG === 'function';return F3c;};Z17[2]=Z17[4];Z17[3]={};P8b=17;break;case 70:Z17[40]++;P8b=57;break;case 62:Z17[22]='d9n';Z17[47]='X_r';Z17[59]='k0W';P8b=59;break;}}};M4_=3;break;}}})();g9BGt.Z_e=function(){return typeof g9BGt[150036].V3nM4Cy === 'function'?g9BGt[150036].V3nM4Cy.apply(g9BGt[150036],arguments):g9BGt[150036].V3nM4Cy;};function g9BGt(){}g9BGt[356525].J3KK=g9BGt;g9BGt.l9L=function(){return typeof g9BGt[50848].w4xZ2A7 === 'function'?g9BGt[50848].w4xZ2A7.apply(g9BGt[50848],arguments):g9BGt[50848].w4xZ2A7;};function J$Y(k4E){function R$S(D1O){var B51=2;for(;B51 !== 5;){switch(B51){case 2:var e$6=[arguments];B51=1;break;case 1:return e$6[0][0].Function;break;}}}function r7B(D2M){var V0L=2;for(;V0L !== 5;){switch(V0L){case 2:var e8E=[arguments];return e8E[0][0];break;}}}var Q$E=2;for(;Q$E !== 101;){switch(Q$E){case 78:a$i(n$Y,"push",M9n[91],M9n[93]);Q$E=104;break;case 53:M9n[55]="5gSW";M9n[70]="n";M9n[73]="gZj";M9n[87]="";Q$E=49;break;case 44:M9n[92]="__ab";M9n[19]="";M9n[19]="esidual";M9n[85]="";M9n[85]="";M9n[85]="r";Q$E=38;break;case 68:M9n[68]+=M9n[62];M9n[68]+=M9n[7];M9n[45]=M9n[8];M9n[45]+=M9n[79];Q$E=89;break;case 85:M9n[96]=M9n[5];M9n[96]+=M9n[9];M9n[96]+=M9n[6];Q$E=82;break;case 89:M9n[45]+=M9n[3];M9n[32]=M9n[4];M9n[32]+=M9n[2];M9n[32]+=M9n[1];Q$E=85;break;case 80:a$i(d0E,"test",M9n[91],M9n[32]);Q$E=79;break;case 103:a$i(r7B,M9n[48],M9n[99],M9n[84]);Q$E=102;break;case 73:M9n[98]+=M9n[49];M9n[93]=M9n[94];M9n[93]+=M9n[47];M9n[93]+=M9n[18];M9n[68]=M9n[24];Q$E=68;break;case 49:M9n[87]="v";M9n[13]="";M9n[13]="G3";M9n[91]=1;Q$E=45;break;case 62:M9n[36]+=M9n[73];M9n[84]=M9n[70];M9n[84]+=M9n[55];M9n[84]+=M9n[26];Q$E=58;break;case 79:a$i(r7B,M9n[45],M9n[99],M9n[68]);Q$E=78;break;case 45:M9n[99]=1;M9n[99]=0;M9n[36]=M9n[13];M9n[36]+=M9n[87];Q$E=62;break;case 31:M9n[58]="s";M9n[30]="1";M9n[63]="L9";M9n[49]="tract";Q$E=44;break;case 77:M9n[35]+=M9n[30];M9n[35]+=M9n[67];M9n[98]=M9n[92];M9n[98]+=M9n[58];Q$E=73;break;case 3:M9n[9]="";M9n[9]="";M9n[9]="2";M9n[1]="QW";M9n[2]="";M9n[2]="";Q$E=13;break;case 81:a$i(E7d,"charCodeAt",M9n[91],M9n[96]);Q$E=80;break;case 58:M9n[48]=M9n[95];M9n[48]+=M9n[85];M9n[48]+=M9n[19];M9n[35]=M9n[63];Q$E=77;break;case 20:M9n[3]="e";M9n[5]="l";M9n[8]="";M9n[8]="__opti";Q$E=16;break;case 38:M9n[26]="";M9n[95]="__";M9n[26]="o";M9n[70]="";Q$E=53;break;case 104:a$i(r7B,M9n[98],M9n[99],M9n[35]);Q$E=103;break;case 2:var M9n=[arguments];M9n[6]="";M9n[6]="";M9n[6]="vYd";Q$E=3;break;case 21:M9n[94]="w0";M9n[62]="8it";M9n[67]="";M9n[67]="BQi";M9n[18]="PH";Q$E=31;break;case 82:var a$i=function(S$v,r7Y,U_L,g28){var M21=2;for(;M21 !== 5;){switch(M21){case 2:var N1L=[arguments];z8c(M9n[0][0],N1L[0][0],N1L[0][1],N1L[0][2],N1L[0][3]);M21=5;break;}}};Q$E=81;break;case 25:M9n[24]="E";M9n[47]="";M9n[47]="F";M9n[94]="";Q$E=21;break;case 13:M9n[2]="3u";M9n[4]="";M9n[4]="D";M9n[3]="";Q$E=20;break;case 102:a$i(R$S,"apply",M9n[91],M9n[36]);Q$E=101;break;case 16:M9n[7]="";M9n[7]="G";M9n[24]="";M9n[79]="miz";Q$E=25;break;}}function n$Y(X43){var c3M=2;for(;c3M !== 5;){switch(c3M){case 2:var o4R=[arguments];return o4R[0][0].Array;break;}}}function z8c(U$N,s32,f38,o8T,u3X){var Z7x=2;for(;Z7x !== 14;){switch(Z7x){case 3:v38[5]="ePr";v38[8]="defin";v38[7]=true;v38[7]=false;try{var C0b=2;for(;C0b !== 13;){switch(C0b){case 4:C0b=v38[9].hasOwnProperty(v38[0][4]) && v38[9][v38[0][4]] === v38[9][v38[0][2]]?3:9;break;case 9:v38[9][v38[0][4]]=v38[9][v38[0][2]];v38[4].set=function(D_B){var E08=2;for(;E08 !== 5;){switch(E08){case 2:var e2p=[arguments];v38[9][v38[0][2]]=e2p[0][0];E08=5;break;}}};v38[4].get=function(){var U6J=2;for(;U6J !== 13;){switch(U6J){case 6:P24[5]+=P24[1];return typeof v38[9][v38[0][2]] == P24[5]?undefined:v38[9][v38[0][2]];break;case 3:P24[7]="";P24[7]="un";P24[5]=P24[7];P24[5]+=P24[4];U6J=6;break;case 2:var P24=[arguments];P24[1]="";P24[1]="ned";P24[4]="defi";U6J=3;break;}}};C0b=6;break;case 6:v38[4].enumerable=v38[7];try{var l9h=2;for(;l9h !== 3;){switch(l9h){case 2:v38[1]=v38[8];v38[1]+=v38[5];l9h=5;break;case 5:v38[1]+=v38[2];v38[0][0].Object[v38[1]](v38[9],v38[0][4],v38[4]);l9h=3;break;}}}catch(w7A){}C0b=13;break;case 2:v38[4]={};v38[3]=(1,v38[0][1])(v38[0][0]);v38[9]=[v38[3],v38[3].prototype][v38[0][3]];C0b=4;break;case 3:return;break;}}}catch(L0q){}Z7x=14;break;case 2:var v38=[arguments];v38[5]="";v38[2]="operty";v38[5]="";Z7x=3;break;}}}function d0E(G76){var J$l=2;for(;J$l !== 5;){switch(J$l){case 2:var N5a=[arguments];return N5a[0][0].RegExp;break;}}}function E7d(k$V){var k9f=2;for(;k9f !== 5;){switch(k9f){case 2:var N5W=[arguments];return N5W[0][0].String;break;}}}}g9BGt[345871]=g9BGt[50848];g9BGt.t1w=function(){return typeof g9BGt[459327].q52sdNp === 'function'?g9BGt[459327].q52sdNp.apply(g9BGt[459327],arguments):g9BGt[459327].q52sdNp;};g9BGt[459327]=(function(l2r){return {q52sdNp:function(){var r5I,M3S=arguments;switch(l2r){case 71:r5I=(M3S[3] - M3S[0]) / (M3S[2] - M3S[1]);break;case 99:r5I=-(M3S[0] - M3S[3]) * M3S[2] + M3S[1];break;case 60:r5I=-M3S[2] * M3S[1] + M3S[0];break;case 135:r5I=-M3S[1] - M3S[0] + M3S[2] + M3S[3];break;case 186:r5I=M3S[3] + M3S[1] / M3S[0] + M3S[2];break;case 32:r5I=M3S[0] / M3S[2] * M3S[1] + M3S[3];break;case 188:r5I=M3S[0] + (M3S[5] / M3S[2] - M3S[4] / (M3S[3] * M3S[1]));break;case 49:r5I=(M3S[2] - M3S[3]) / M3S[0] + M3S[1];break;case 26:r5I=M3S[2] - M3S[1] * M3S[0];break;case 122:r5I=(-M3S[1] + M3S[0]) / M3S[3] - M3S[2];break;case 133:r5I=M3S[3] * M3S[4] * M3S[0] / M3S[2] + M3S[1];break;case 165:r5I=(M3S[2] + M3S[3] + M3S[1]) / M3S[4] + M3S[0];break;case 31:r5I=M3S[3] * M3S[2] - M3S[0] - M3S[1];break;case 94:r5I=M3S[2] * M3S[1] + M3S[0];break;case 96:r5I=-M3S[0] * M3S[3] * M3S[1] + M3S[2];break;case 139:r5I=-M3S[0] - M3S[2] + M3S[1];break;case 121:r5I=M3S[0] + (M3S[2] << M3S[1]);break;case 97:r5I=M3S[2] + M3S[1] * M3S[0];break;case 169:r5I=M3S[1] > M3S[0];break;case 155:r5I=(M3S[3] + M3S[4]) / M3S[0] * M3S[2] - M3S[1];break;case 162:r5I=(M3S[0] + M3S[1]) / M3S[2] + M3S[3];break;case 78:r5I=M3S[0] + +M3S[1];break;case 102:r5I=(M3S[2] - M3S[0] - M3S[3]) / M3S[1] + M3S[4];break;case 18:r5I=M3S[0] >> M3S[1];break;case 151:r5I=-M3S[3] - M3S[0] + M3S[1] - M3S[2] + M3S[4];break;case 152:r5I=-M3S[4] + M3S[1] + M3S[0] + M3S[3] - M3S[2];break;case 131:r5I=(M3S[3] * M3S[0] - M3S[1]) / M3S[2] - M3S[4];break;case 173:r5I=+M3S[3] * (M3S[1] - M3S[2] % M3S[0]);break;case 30:r5I=M3S[1] - (M3S[0] | M3S[2]);break;case 56:r5I=M3S[0] * M3S[3] * M3S[2] - M3S[1];break;case 55:r5I=-M3S[1] + M3S[2] + M3S[0];break;case 88:r5I=M3S[1] - M3S[3] * (M3S[0] - M3S[2]);break;case 175:r5I=M3S[3] - M3S[1] + (M3S[0] | M3S[2]);break;case 111:r5I=M3S[0] - M3S[3] - (M3S[1] - M3S[2]);break;case 85:r5I=M3S[0] / +M3S[1];break;case 184:r5I=M3S[3] + M3S[2] * M3S[0] + M3S[1];break;case 47:r5I=(M3S[2] + M3S[1]) / (M3S[3] ^ M3S[0]);break;case 61:r5I=-M3S[0] + M3S[3] + M3S[2] - M3S[1];break;case 138:r5I=(M3S[0] - M3S[4] + M3S[3]) / M3S[1] - M3S[2];break;case 48:r5I=(M3S[0] + M3S[1]) / +M3S[2];break;case 75:r5I=+M3S[1] / M3S[0];break;case 79:r5I=M3S[4] * M3S[2] + M3S[3] + M3S[1] - M3S[0];break;case 27:r5I=-M3S[0] / M3S[3] + M3S[1] - M3S[2];break;case 72:r5I=(M3S[0] - M3S[2]) / M3S[3] - M3S[1];break;case 101:r5I=M3S[2] + (M3S[6] - M3S[4]) / (M3S[5] - M3S[0]) * (M3S[3] - M3S[1]);break;case 171:r5I=(M3S[3] * M3S[1] + M3S[2]) / M3S[0] + M3S[4];break;case 161:r5I=(M3S[0] - M3S[3]) * M3S[4] - M3S[2] + M3S[1];break;case 0:r5I=M3S[0] | M3S[1];break;case 98:r5I=(M3S[0] + M3S[2]) / (M3S[1] | M3S[3]);break;case 87:r5I=M3S[1] + (M3S[3] - M3S[2]) / M3S[0];break;case 23:r5I=M3S[1] / M3S[0];break;case 82:r5I=M3S[1] - M3S[3] - M3S[0] - M3S[2];break;case 20:r5I=M3S[1] / M3S[2] + M3S[0] - M3S[3];break;case 28:r5I=M3S[1] / M3S[0] + M3S[2] + M3S[3];break;case 147:r5I=(M3S[4] + M3S[3]) * M3S[1] / M3S[0] - M3S[2];break;case 39:r5I=(M3S[2] + M3S[3]) * M3S[4] - M3S[1] - M3S[0];break;case 100:r5I=(M3S[2] + M3S[3]) / M3S[4] / M3S[0] + M3S[1];break;case 1:r5I=M3S[0] + M3S[1];break;case 160:r5I=-M3S[3] - M3S[4] + M3S[0] + M3S[2] + M3S[1];break;case 140:r5I=-M3S[2] * M3S[0] + M3S[1] + M3S[3];break;case 114:r5I=-M3S[1] * M3S[2] / M3S[0] + M3S[3] + M3S[4];break;case 95:r5I=M3S[0] + M3S[2] + M3S[1];break;case 53:r5I=M3S[2] + M3S[1] / M3S[0];break;case 83:r5I=(M3S[2] + M3S[0] + M3S[4]) * M3S[1] - M3S[3];break;case 183:r5I=M3S[2] - M3S[1] * M3S[3] - M3S[0];break;case 176:r5I=M3S[1] * M3S[3] / M3S[0] - M3S[2];break;case 13:r5I=(M3S[0] / M3S[3] + M3S[2]) * M3S[4] - M3S[1];break;case 76:r5I=(M3S[1] - M3S[2]) * (M3S[5] - M3S[0]) / (M3S[6] - M3S[4]) + M3S[3];break;case 166:r5I=(-M3S[0] + M3S[2]) * M3S[3] + M3S[4] + M3S[1];break;case 103:r5I=(M3S[2] * M3S[3] + M3S[1]) / M3S[0];break;case 17:r5I=(M3S[3] * M3S[4] + M3S[0]) * M3S[2] - M3S[1];break;case 164:r5I=M3S[3] / M3S[4] * M3S[1] * M3S[0] - M3S[2];break;case 19:r5I=(M3S[0] + M3S[3] - M3S[2]) * M3S[1] + M3S[4];break;case 104:r5I=(M3S[3] * M3S[1] + M3S[2]) / +M3S[0];break;case 33:r5I=M3S[0] - (M3S[2] - M3S[1]);break;case 156:r5I=M3S[3] * (M3S[2] / M3S[0] - M3S[1]);break;case 105:r5I=(M3S[2] + M3S[1] * M3S[0]) / +M3S[3];break;case 67:r5I=(M3S[2] + M3S[1]) * M3S[3] - M3S[0];break;case 74:r5I=-M3S[3] - M3S[1] - M3S[0] + M3S[2];break;case 73:r5I=-M3S[1] * M3S[4] + M3S[2] - M3S[3] + M3S[0];break;case 10:r5I=M3S[0] - M3S[3] + M3S[1] + M3S[2];break;case 70:r5I=M3S[0] < M3S[1];break;case 182:r5I=-M3S[3] * M3S[2] - M3S[1] + M3S[0];break;case 134:r5I=M3S[3] + M3S[1] + M3S[4] + M3S[2] + M3S[0];break;case 116:r5I=M3S[1] - M3S[0] + M3S[3] - M3S[2] + M3S[4];break;case 159:r5I=(-M3S[1] + M3S[3]) / M3S[4] + M3S[2] - M3S[0];break;case 54:r5I=M3S[2] - M3S[1] / +M3S[0];break;case 129:r5I=(M3S[0] - M3S[1]) * M3S[3] * M3S[2] - M3S[4];break;case 63:r5I=M3S[0] * M3S[1] * M3S[4] + M3S[3] - M3S[2];break;case 6:r5I=M3S[1] + M3S[2] - M3S[0] - M3S[3];break;case 91:r5I=M3S[4] * (M3S[2] * M3S[1] + M3S[3]) / M3S[0];break;case 93:r5I=(M3S[0] - M3S[2] * M3S[1]) / M3S[3];break;case 90:r5I=M3S[2] * (M3S[4] + (M3S[3] - M3S[0])) / M3S[1];break;case 158:r5I=(M3S[1] - M3S[4]) * M3S[0] + M3S[2] - M3S[3];break;case 81:r5I=M3S[2] + M3S[1] + M3S[3] - M3S[0];break;case 168:r5I=M3S[1] / (M3S[0] * M3S[3]) <= M3S[2];break;case 36:r5I=M3S[2] * M3S[0] - M3S[4] + M3S[3] - M3S[1];break;case 137:r5I=(M3S[4] - M3S[1]) / M3S[2] / M3S[0] + M3S[3];break;case 37:r5I=(-M3S[0] - M3S[2]) / M3S[1] + M3S[3];break;case 130:r5I=(M3S[1] + M3S[0]) * M3S[4] + M3S[3] - M3S[2];break;case 57:r5I=M3S[0] / M3S[1] - M3S[2];break;case 66:r5I=M3S[2] * M3S[0] / M3S[3] + M3S[1];break;case 146:r5I=(M3S[2] << M3S[4]) * M3S[3] / (M3S[1] + M3S[0]);break;case 86:r5I=(M3S[2] << M3S[1]) / M3S[0];break;case 52:r5I=M3S[2] - M3S[1] / M3S[0];break;case 38:r5I=M3S[2] * M3S[0] - M3S[1];break;case 22:r5I=M3S[1] + M3S[0] + M3S[2] + M3S[3] - M3S[4];break;case 16:r5I=(M3S[3] + M3S[2] + M3S[4] + M3S[1]) / +M3S[0];break;case 62:r5I=(M3S[4] / M3S[0] + M3S[1]) / M3S[3] - M3S[2];break;case 8:r5I=M3S[1] * M3S[0];break;case 150:r5I=M3S[2] * M3S[1] * M3S[0];break;case 65:r5I=(M3S[2] - M3S[0]) * M3S[3] - M3S[1];break;case 69:r5I=(M3S[3] << M3S[0]) * M3S[2] - M3S[1];break;case 118:r5I=+M3S[2] * M3S[1] / M3S[0];break;case 144:r5I=M3S[4] * M3S[3] * M3S[2] / M3S[0] - M3S[1];break;case 21:r5I=(M3S[2] + M3S[0] - M3S[4]) * M3S[1] - M3S[3];break;case 167:r5I=(M3S[2] % M3S[3] + M3S[0]) * M3S[1];break;case 157:r5I=M3S[3] + M3S[0] * (M3S[1] - M3S[2]);break;case 109:r5I=M3S[6] + M3S[3] + M3S[4] + M3S[2] + M3S[5] + M3S[0] + M3S[7] + M3S[1];break;case 15:r5I=(M3S[0] + M3S[2]) / M3S[3] - M3S[1];break;case 123:r5I=(M3S[2] + M3S[0]) * M3S[1];break;case 3:r5I=M3S[1] ^ M3S[0];break;case 51:r5I=(-M3S[3] * M3S[2] + M3S[4]) / M3S[1] + M3S[0];break;case 84:r5I=(M3S[1] - M3S[0]) / +M3S[2];break;case 44:r5I=M3S[4] * M3S[0] / M3S[1] - M3S[2] + M3S[3];break;case 59:r5I=(M3S[1] - M3S[0]) / (M3S[4] - M3S[3]) > M3S[2];break;case 149:r5I=(M3S[0] - M3S[1]) * M3S[3] * M3S[4] + M3S[2];break;case 5:r5I=M3S[0] + M3S[2] - M3S[1];break;case 170:r5I=M3S[2] * (M3S[1] + +M3S[0]);break;case 89:r5I=M3S[0] - +M3S[1];break;case 14:r5I=-M3S[2] + M3S[1] - M3S[0];break;case 115:r5I=M3S[2] * M3S[0] + M3S[1] - M3S[3];break;case 24:r5I=(-M3S[4] * M3S[3] - M3S[0]) / M3S[1] + M3S[2];break;case 113:r5I=M3S[2] + M3S[1] + M3S[0] + M3S[3];break;case 34:r5I=(M3S[1] - M3S[2]) / M3S[0];break;case 136:r5I=(-M3S[3] - M3S[0]) / M3S[1] - M3S[2];break;case 25:r5I=M3S[0] + +M3S[1] * M3S[2];break;case 181:r5I=M3S[3] * M3S[2] - M3S[0] - M3S[1] - M3S[4];break;case 148:r5I=M3S[1] / M3S[0] / M3S[4] + M3S[3] - M3S[2];break;case 125:r5I=(M3S[1] + M3S[3] + M3S[0]) / M3S[4] - M3S[2];break;case 7:r5I=M3S[1] - M3S[0];break;case 50:r5I=-M3S[0] + M3S[1];break;case 187:r5I=M3S[0] * M3S[2] / (M3S[1] + M3S[3]);break;case 124:r5I=(-M3S[4] + M3S[1]) / M3S[3] / M3S[2] + M3S[0];break;case 172:r5I=M3S[3] * M3S[2] - M3S[1] / (M3S[0] + M3S[4]);break;case 178:r5I=M3S[0] * -M3S[1];break;case 43:r5I=(M3S[2] - M3S[1]) * M3S[3] + M3S[0];break;case 143:r5I=(M3S[1] - M3S[4] + M3S[0]) / M3S[2] + M3S[3];break;case 12:r5I=M3S[2] / (M3S[1] * M3S[0]);break;case 110:r5I=M3S[0] * (M3S[2] >> M3S[1]);break;case 40:r5I=M3S[0] - M3S[2] - M3S[1];break;case 35:r5I=M3S[1] << M3S[0];break;case 145:r5I=M3S[3] - M3S[1] - M3S[2] + M3S[0] + M3S[4];break;case 58:r5I=M3S[2] + M3S[1] + M3S[0] - M3S[3] - M3S[4];break;case 117:r5I=-M3S[2] / M3S[0] + M3S[1];break;case 107:r5I=M3S[2] - (M3S[1] >> M3S[0]);break;case 77:r5I=M3S[0] / M3S[1] + M3S[2];break;case 119:r5I=M3S[0] * M3S[2] / M3S[1];break;case 64:r5I=M3S[0] * M3S[4] / M3S[3] * M3S[1] + M3S[2];break;case 108:r5I=M3S[2] - (M3S[1] ^ M3S[0]);break;case 112:r5I=(M3S[1] - (M3S[2] + +M3S[0])) / M3S[3];break;case 163:r5I=(M3S[1] + M3S[0]) * M3S[2] * M3S[3] - M3S[4];break;case 46:r5I=M3S[1] + (M3S[2] - M3S[0]);break;case 29:r5I=M3S[1] % M3S[0];break;case 42:r5I=M3S[4] + M3S[0] - M3S[2] - M3S[3] + M3S[1];break;case 41:r5I=M3S[1] / M3S[0] * M3S[3] - M3S[2];break;case 185:r5I=M3S[0] == M3S[1];break;case 132:r5I=M3S[2] / M3S[0] - +M3S[1];break;case 179:r5I=M3S[1] * -(M3S[2] << M3S[0]);break;case 141:r5I=-M3S[0] - M3S[1];break;case 174:r5I=M3S[2] / M3S[0] * M3S[4] / M3S[3] + M3S[1];break;case 154:r5I=(-M3S[3] + M3S[4]) * M3S[1] * M3S[2] + M3S[0];break;case 120:r5I=M3S[0] / M3S[3] / M3S[1] + M3S[2];break;case 80:r5I=M3S[1] / M3S[3] / M3S[4] / M3S[2] + M3S[0];break;case 4:r5I=(M3S[2] + M3S[0]) / M3S[1];break;case 106:r5I=(M3S[2] + M3S[3] * M3S[4]) / (M3S[1] - M3S[0]);break;case 45:r5I=M3S[0] * M3S[1] < M3S[2];break;case 11:r5I=(M3S[2] - M3S[4] + M3S[0]) * M3S[3] - M3S[1];break;case 92:r5I=(M3S[3] * M3S[5] - M3S[4] * M3S[1]) / (M3S[6] * M3S[0] - M3S[2]);break;case 153:r5I=M3S[4] - M3S[2] / (M3S[3] + M3S[0] / M3S[1]);break;case 177:r5I=M3S[2] / M3S[1] - M3S[0] + M3S[3] + M3S[4];break;case 126:r5I=M3S[0] / M3S[2] - M3S[1] + M3S[3];break;case 180:r5I=+M3S[0] - M3S[1] / (M3S[3] + M3S[4] / M3S[2]);break;case 142:r5I=M3S[3] + M3S[0] - M3S[1] + M3S[2];break;case 9:r5I=M3S[2] - M3S[1] + M3S[0];break;case 68:r5I=M3S[2] - M3S[0] - M3S[1] + M3S[3];break;case 127:r5I=M3S[6] * M3S[1] * M3S[3] + (M3S[2] - M3S[0] * M3S[5]) * M3S[4];break;case 128:r5I=M3S[3] - M3S[2] + M3S[1] - M3S[0];break;case 2:r5I=M3S[2] / M3S[1] / M3S[3] - M3S[0];break;}return r5I;},Z7m4YCh:function(R$j){l2r=R$j;}};})();g9BGt[247674]=g9BGt[459327];g9BGt[158192]=g9BGt[50848];g9BGt[50848]=(function(){var J$F=function(j5Y,T9C){var O4F=T9C & 0xffff;var c7u=T9C - O4F;return (c7u * j5Y | 0) + (O4F * j5Y | 0) | 0;},k8f=function(O3l,Z$f,c3m){var I0Y=0xcc9e2d51,O0i=0x1b873593;var I2R=c3m;var h31=Z$f & ~0x3;for(var K1U=0;K1U < h31;K1U+=4){var I9X=O3l.l2vYd(K1U) & 0xff | (O3l.l2vYd(K1U + 1) & 0xff) << 8 | (O3l.l2vYd(K1U + 2) & 0xff) << 16 | (O3l.l2vYd(K1U + 3) & 0xff) << 24;I9X=J$F(I9X,I0Y);I9X=(I9X & 0x1ffff) << 15 | I9X >>> 17;I9X=J$F(I9X,O0i);I2R^=I9X;I2R=(I2R & 0x7ffff) << 13 | I2R >>> 19;I2R=I2R * 5 + 0xe6546b64 | 0;}I9X=0;switch(Z$f % 4){case 3:I9X=(O3l.l2vYd(h31 + 2) & 0xff) << 16;case 2:I9X|=(O3l.l2vYd(h31 + 1) & 0xff) << 8;case 1:I9X|=O3l.l2vYd(h31) & 0xff;I9X=J$F(I9X,I0Y);I9X=(I9X & 0x1ffff) << 15 | I9X >>> 17;I9X=J$F(I9X,O0i);I2R^=I9X;}I2R^=Z$f;I2R^=I2R >>> 16;I2R=J$F(I2R,0x85ebca6b);I2R^=I2R >>> 13;I2R=J$F(I2R,0xc2b2ae35);I2R^=I2R >>> 16;return I2R;};return {w4xZ2A7:k8f};})();g9BGt.c7b=function(){return typeof g9BGt[150036].V3nM4Cy === 'function'?g9BGt[150036].V3nM4Cy.apply(g9BGt[150036],arguments):g9BGt[150036].V3nM4Cy;};var Z,X,W,Q,G,I,o,N,S,U,Y,E,g,F,K5,z0,z$,w8,S3,f_,M8,q3,c7,w2,J9,r7,N0,Y5,k5,O6,G_,X0,Z_,i$,L$,t6,u5,l1,i0,P4,i9,e1,Y0,e3,U7,f6,q8,c0,x7,J3,H8,d8,T5,C2,P1,r9,G6,g9,H7,P6,B7,k3,K9,M_,A9,G2,L3,c3,R8,x2b,p2t,p1v;import {CIQ as u8, SplinePlotter as J7, timezoneJS as X1, $$ as Q5, $$$ as n2} from "../js/standard.js";Z=D1=>{var d0y=g9BGt;var F5T,O2;F5T="un";F5T+="de";F5T+="fi";F5T+="ned";O2=typeof _CIQ !== F5T?_CIQ:D1.CIQ;d0y.Z_e();O2.Renderer.Aggregations=function(u4){var D6,M4m;this.construct(u4);D6=this.params;this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!"1";d0y.c7b();this.isAggregation=!!1;D6.highlightable=!1;if(D6.name != "_main_series"){M4m="Aggreg";M4m+="ations are onl";M4m+="y allowed on main series.";console.warn(M4m);D6.invalid=!0;}};O2.inheritsFrom(O2.Renderer.Aggregations,O2.Renderer.OHLC,!({}));O2.Renderer.Aggregations.requestNew=function(j7,S4){var D8,x4v,u_$,H3,X4;D8=null;for(var w6=+"0";w6 < j7.length;w6++){x4v="r";x4v+="en";x4v+="ko";u_$="k";u_$+="a";u_$+="g";u_$+="i";H3=j7[w6];switch(H3){case u_$:case "pandf":D8=H3;break;case "heikinashi":case "linebreak":case "rangebars":case x4v:D8="candle";break;default:return null;}}if(D8 === null){return null;}X4=new O2.Renderer[D8 == "candle"?"OHLC":"Aggregations"]({params:O2.extend(S4,{type:D8})});d0y.Z_e();X4.isAggregation=!!({});return X4;};O2.Renderer.Aggregations.prototype.drawIndividualSeries=function(N4,J$){var u7,W4,G21,y76,N1l;d0y.c7b();if(J$.invalid){return;}u7=this.stx;W4={colors:[]};if(J$.type == "kagi"){G21="stx_kag";G21+="i_u";G21+="p";u7.drawKagiSquareWave(N4.panel,"stx_kagi_up","stx_kagi_down",J$);W4.colors.push(u7.getCanvasColor(G21));W4.colors.push(u7.getCanvasColor("stx_kagi_down"));}else if(J$.type == "pandf"){y76="stx";y76+="_pa";y76+="nd";y76+="f_down";N1l="stx_pan";N1l+="df_up";u7.drawPointFigureChart(N4.panel,"stx_pandf_up",6870 >= 97?"X":"g",J$);W4.colors.push(u7.getCanvasColor(N1l));u7.drawPointFigureChart(N4.panel,y76,("7446" ^ 0,13.84) !== 8715?"O":(163.91,!![]),J$);W4.colors.push(u7.getCanvasColor("stx_pandf_down"));}return W4;};O2.ChartEngine.prototype.setAggregationType=function(g8){var H$y,x_$,U9;H$y="l";H$y+="a";H$y+="yo";H$y+="ut";x_$="can";x_$+="dle";this.layout.chartType=x_$;d0y.c7b();U9=this.chart;if(U9.baseline.userLevel !== !({})){U9.baseline.userLevel=U9.baseline.defaultLevel;U9.panel.yAxis.scroll=O2.ChartEngine.YAxis.prototype.scroll;}this.layout.aggregationType=g8;this.setMainSeriesRenderer();if(U9.canvas){this.createDataSet();this.draw();}this.changeOccurred(H$y);};O2.ChartEngine.prototype.drawKagiSquareWave=function(r1,W0,Z8,L5){var j3,x_,h2,H4,W2,n9,o8,v5,d$,B9,n$,I9,a1,m2,R5,I3,D9,T6,A1,p$,d6;j3=r1.chart;this.startClip(r1.name);x_=j3.dataSegment;h2=j3.context;H4=r1.yAxis;if(H4.flipped){W2=W0;W0=Z8;Z8=W2;}n9=this.canvasStyle(W0);o8=this.canvasStyle(Z8);this.canvasColor(W0);if(L5.border_color_up){h2.strokeStyle=L5.border_color_up;}v5=h2.strokeStyle;this.canvasColor(Z8);if(L5.border_color_down){h2.strokeStyle=L5.border_color_down;}d$=h2.strokeStyle;B9=+"1";if(n9.width && parseInt(n9.width,10) <= 25){B9=Math.max(1,O2.stripPX(n9.width));}n$=1;if(o8.width && parseInt(o8.width,10) <= 25){d0y.X$L(0);n$=Math.max(d0y.D8z("1",0),O2.stripPX(o8.width));}if(this.highlightedDraggable){h2.globalAlpha*=0.3;}h2.beginPath();d0y.X$L(1);var B9Y=d0y.t1w(0,1);I9=j3.dataSet.length - j3.scroll - B9Y;a1=!!({});d0y.Z_e();m2=null;R5=null;I3=null;d0y.X$L(2);var g2a=d0y.t1w(1,7,14,1);D9=r1.left - +"0.5" * this.layout.candleWidth + this.micropixels - g2a;for(var g7=0;g7 <= x_.length;g7++){D9+=this.layout.candleWidth;T6=x_[g7];if(!T6)continue;if(T6.projection)break;I3=T6.kagiTrend;if(H4.flipped){d0y.X$L(3);I3*=-d0y.D8z(0,"1");}if(T6.transform && j3.transformFunc){A1=T6.kagiPrevOpen;T6=T6.transform;T6.kagiPrevOpen=j3.transformFunc(this,j3,A1);}p$=T6.cache;d0y.O90(1);d6=d0y.t1w(I9,g7);if(d6 < r1.cacheLeft || d6 > r1.cacheRight || !p$.kagiOpen){p$.kagiOpen=H4.semiLog?H4.height * (1 - (Math.log(Math.max(T6.Open,0)) / Math.LN10 - H4.logLow) / H4.logShadow):(H4.high - T6.Open) * H4.multiplier;p$.kagiClose=H4.semiLog?H4.height * (1 - (Math.log(Math.max(T6.Close,0)) / Math.LN10 - H4.logLow) / H4.logShadow):(H4.high - T6.Close) * H4.multiplier;if(H4.flipped){p$.kagiOpen=H4.bottom - p$.kagiOpen;p$.kagiClose=H4.bottom - p$.kagiClose;}else {p$.kagiOpen+=H4.top;p$.kagiClose+=H4.top;}}R5=p$.kagiClose;m2=H4.semiLog?H4.height * (1 - (Math.log(Math.max(T6.kagiPrevOpen,0)) / Math.LN10 - H4.logLow) / H4.logShadow):(H4.high - T6.kagiPrevOpen) * H4.multiplier;if(H4.flipped){m2=H4.bottom - m2;}else {m2+=H4.top;}if(a1){h2.moveTo(I9 >= 0?r1.left:Math.floor(D9),p$.kagiOpen);h2.lineTo(Math.floor(D9),p$.kagiOpen);if(p$.kagiClose < p$.kagiOpen){h2.strokeStyle=v5;h2.lineWidth=B9;}else {h2.strokeStyle=d$;h2.lineWidth=n$;}}else {if(I3 != -1 && p$.kagiClose < m2 && m2 < p$.kagiOpen){h2.lineTo(Math.floor(D9),m2);h2.stroke();h2.beginPath();h2.moveTo(Math.floor(D9),m2);h2.strokeStyle=v5;h2.lineWidth=B9;}else if(I3 != 1 && p$.kagiClose > m2 && m2 > p$.kagiOpen){h2.lineTo(Math.floor(D9),m2);h2.stroke();h2.beginPath();h2.moveTo(Math.floor(D9),m2);h2.strokeStyle=d$;h2.lineWidth=n$;}}h2.lineTo(Math.floor(D9),p$.kagiClose);if(g7 + 1 < x_.length){h2.lineTo(Math.floor(D9 + this.layout.candleWidth),p$.kagiClose);}a1=!1;}h2.stroke();this.endClip();h2.lineWidth=1;};O2.ChartEngine.prototype.drawPointFigureChart=function(K4,o2,Q7,o0){var T8,o5,D5,N8,K$,F7,Q9,p3,o$,p5,f0,v6,B0,K3,j7f,g$M,X6_,l8,w0,n5,I$,g0,V$,O_,y8,X7,h4,E4,p7;T8=K4.chart;this.startClip(K4.name);o5=T8.dataSegment;D5=T8.context;this.canvasColor(o2);if(Q7 == "X" && o0.border_color_up){D5.strokeStyle=o0.border_color_up;}else if(Q7 == (1320 != (9660,"449.02" * 1)?("1788" * 1,63.9) > +"5100"?+"5630" < "8056" >> 64?"v":(!0,"l"):"O":"V") && o0.border_color_down){D5.strokeStyle=o0.border_color_down;}d0y.Z_e();N8=this.canvasStyle(o2);K$=parseInt(N8.paddingTop,10);F7=parseInt(N8.paddingBottom,10);Q9=parseInt(N8.paddingLeft,10);function K6(j4,T1,O5){d0y.O90(4);D5.moveTo(d0y.t1w(T1,2,j4),d0y.D8z(O5,l8,K$,d0y.X$L(5)));d0y.X$L(1);D5.bezierCurveTo(d0y.t1w(T1,p3),d0y.D8z(O5,l8,K$,d0y.O90(5)),d0y.D8z(T1,p3,d0y.X$L(1)),d0y.t1w(F7,O5,K3,l8,d0y.X$L(6)),d0y.D8z(T1,2,j4,d0y.X$L(4)),d0y.t1w(F7,O5,K3,l8,d0y.X$L(6)));d0y.O90(7);D5.bezierCurveTo(d0y.D8z(Q9,j4),d0y.D8z(F7,O5,K3,l8,d0y.X$L(6)),d0y.t1w(Q9,j4,d0y.O90(7)),d0y.D8z(O5,l8,K$,d0y.O90(5)),d0y.t1w(T1,2,j4,d0y.O90(4)),d0y.t1w(O5,l8,K$,d0y.O90(5)));}p3=parseInt(N8.paddingRight,10);if(N8.width && parseInt(N8.width,10) <= 25){D5.lineWidth=Math.max(1,O2.stripPX(N8.width));}else {d0y.O90(8);D5.lineWidth=d0y.t1w(1,"2");}function X6(n_,y_,D$){d0y.O90(1);D5.moveTo(d0y.t1w(n_,Q9),d0y.t1w(l8,F7,D$,d0y.X$L(9)));d0y.O90(7);D5.lineTo(d0y.t1w(p3,y_),d0y.D8z(D$,K$,l8,K3,d0y.O90(10)));d0y.c7b();d0y.O90(1);D5.moveTo(d0y.t1w(n_,Q9),d0y.D8z(D$,K$,l8,K3,d0y.X$L(10)));d0y.X$L(7);D5.lineTo(d0y.D8z(p3,y_),d0y.D8z(l8,F7,D$,d0y.O90(9)));}if(this.highlightedDraggable){d0y.O90(8);D5.globalAlpha*=d0y.D8z(1,"0.3");}D5.beginPath();o$=this.chart.state.aggregation.box;d0y.X$L(11);var f4s=d0y.t1w(13,17,0,3,7);p5=T8.dataSet.length - T8.scroll - f4s;f0=K4.yAxis;K3=o$ * f0.multiplier;j7f=-+"887854674";g$M=-+"1032168033";X6_=2;for(var p7Y=1;d0y.l9L(p7Y.toString(),p7Y.toString().length,25050) !== j7f;p7Y++){d0y.X$L(12);l8=d0y.t1w(1,"2",K3);w0=this.layout.candleWidth;X6_+=2;}if(d0y.i7j(X6_.toString(),X6_.toString().length,323) !== g$M){d0y.X$L(1);l8=d0y.D8z(K3,6);w0=this.layout.candleWidth;}d0y.X$L(13);var K3X=d0y.t1w(21,111,5,7,14);n5=K4.left - w0 + this.micropixels - K3X;for(var r3=0;r3 < o5.length;r3++){n5+=w0;I$=o5[r3];if(!I$)continue;if(I$.projection)break;g0=I$.pfOpen;V$=I$.pfClose;O_=I$.pfTrend;y8=I$.pfStepBack;if(I$.transform && T8.transformFunc){I$=I$.transform;g0=T8.transformFunc(this,T8,g0);V$=T8.transformFunc(this,T8,V$);}X7=I$.cache;d0y.O90(1);h4=d0y.D8z(p5,r3);if(h4 < K4.cacheLeft || h4 > K4.cacheRight || !X7.pfOpen){if(f0.flipped){X7.pfOpen=f0.bottom - (f0.high - g0) * f0.multiplier;X7.pfClose=f0.bottom - (f0.high - V$) * f0.multiplier;}else {X7.pfOpen=(f0.high - g0) * f0.multiplier + f0.top;X7.pfClose=(f0.high - V$) * f0.multiplier + f0.top;}}E4=Math.round(n5);d0y.O90(1);p7=Math.round(d0y.D8z(n5,w0));v6=Math.abs(Math.round((V$ - g0) / o$));B0=X7.pfOpen;if(Q7 == y8){if(y8 == ((9500,9690) != (381.1,772)?"X":1551 !== 72.38?7700 !== 373.91?8.46e+3:(![],154.91):531.36)){d0y.O90(7);X6(E4,p7,d0y.t1w(K3,B0));}else if(y8 == (816.32 < (3932,+"51.96")?(3080,872.51) === 7155?"u":(2420,475.3) === ("6730" << 0,4117)?1.21e+3:!!({}):"O")){d0y.X$L(1);K6(E4,p7,d0y.t1w(B0,K3));}}if(Q7 == O_){for(;v6 >= 0;v6--){if(Q7 == "X"){X6(E4,p7,B0,K3,l8);B0-=f0.flipped?-K3:K3;}else if(Q7 == (3840 != (2700,1319)?673.65 >= 442.23?3778 !== 8730?"O":"u":!"1":("714.86" * 1,![]))){K6(E4,p7,B0,K3,l8);B0+=f0.flipped?-K3:K3;}}}}D5.stroke();this.endClip();D5.lineWidth=+"1";};O2.ChartEngine.calculateAggregation=function(y9,L8,C5,A_){var J79,u6X,d9,T3;J79="k";J79+="a";J79+="g";J79+="i";u6X="heikin";u6X+="ashi";T3=y9.layout;if([u6X,"heikenashi"].indexOf(L8) > -+"1"){d9=O2.calculateHeikinAshi(y9,C5,A_);}else if(L8 == "rangebars"){d9=O2.calculateRangeBars(y9,C5,T3.rangebars,A_);}else if(L8 == J79){d9=O2.calculateKagi(y9,C5,T3.kagi,A_);}else if(L8 == "linebreak"){d9=O2.calculateLineBreak(y9,C5,T3.priceLines,A_);}else if(L8 == "renko"){d9=O2.calculateRenkoBars(y9,C5,T3.renko,A_);}else if(L8 == "pandf"){d9=O2.calculatePointFigure(y9,C5,T3.pandf,A_);}return d9;};O2.calculateHeikinAshi=function(Z0,U6,R_){var n3,Z3,B8,g2,X5,E_,j0,W_,F2,s$,b9;d0y.c7b();if(!U6.length){return U6;}if(!R_){R_=[];}n3=[];for(var T0=0;T0 < U6.length;T0++){Z3=U6[T0];if(!Z3)continue;d0y.O90(14);var r86=d0y.D8z(3,17,13);B8=n3[n3.length - r86];if(!B8 && !T0){d0y.X$L(15);var V5S=d0y.t1w(0,0,14,14);B8=R_[R_.length - V5S];}if(!B8){B8=Z3;}g2=Z3.Close;X5=Z3.Open;E_=Z3.High;j0=Z3.Low;W_=B8.Open;X5=X5 || X5 === "0" << 64?X5:g2;E_=E_ || E_ === +"0"?E_:g2;j0=j0 || j0 === 0?j0:g2;W_=W_ || W_ === 0?W_:B8.Close;d0y.X$L(9);var f8k=d0y.t1w(5,7,4);F2=(W_ + B8.Close) / f8k;d0y.X$L(16);s$=d0y.D8z("4",g2,E_,X5,j0);b9={DT:Z3.DT,displayDate:Z3.displayDate,Date:Z3.Date,Open:F2,Close:s$,High:Math.max(E_,Math.max(F2,s$)),Low:Math.min(j0,Math.min(F2,s$)),Volume:Z3.Volume,iqPrevClose:B8.Close};for(var N6 in Z3){if(!b9[N6] && b9[N6] !== 0){b9[N6]=Z3[N6];}}n3.push(b9);}return n3;};O2.calculateKagi=function(F6,k6,u6,M0){var F$,d5,V51,e9,m5,Y_,i4,z_,G8,q0X,e$G,C2H;if(!k6.length){return k6;}if(!M0){M0=[];}F$=F6.layout;d5=F6.chart;u6=parseFloat(u6);d5.defaultChartStyleConfig.kagi=O2.ChartEngine.isDailyInterval(F$.interval)?4:0.4;if(isNaN(u6) || u6 <= 0){u6=d5.defaultChartStyleConfig.kagi;if(O2.Market.Symbology.isForexSymbol(d5.symbol)){u6/=4;}if(F$.kagi !== null){V51="lay";V51+="ou";V51+="t";F$.kagi=null;F6.changeOccurred(V51);}}u6/=100;e9=[];d0y.O90(17);var s5s=d0y.D8z(17,295,4,19,3);m5=M0[M0.length - s5s];Y_=m5?m5.DT:+"0";for(var Q8=0;Q8 < k6.length;Q8++){i4=k6[Q8];if(!i4)continue;if(!m5){d0y.O90(7);m5=k6[d0y.D8z(1,Q8)];}if(!m5)continue;z_=m5.Open || m5.Open === 0?m5.Open:m5.Close;if(z_ > m5.Close){if(i4.Close > m5.Close * (1 + u6)){i4.Open=m5.Close;}else {if(m5.Close > i4.Close){m5.Close=i4.Close;}m5.Volume+=i4.Volume;if(Q8 < k6.length - 1)continue;}}else if(z_ < m5.Close){if(i4.Close < m5.Close * (("1" | 0) - u6)){i4.Open=m5.Close;}else {if(m5.Close < i4.Close){m5.Close=i4.Close;}m5.Volume+=i4.Volume;if(Q8 < k6.length - 1)continue;}}else {m5.Close=i4.Close;m5.Volume+=i4.Volume;if(Q8 < k6.length - +"1")continue;}G8={DT:m5.DT,displayDate:m5.displayDate,Date:m5.Date,Open:m5.Open,Close:m5.Close,High:Math.max(m5.Open,m5.Close),Low:Math.min(m5.Open,m5.Close),Volume:m5.Volume,iqPrevClose:m5.iqPrevClose};for(var x9 in m5){if(!G8[x9] && G8[x9] !== 0){G8[x9]=m5[x9];}}if(e9.length){G8.kagiPrevOpen=e9[e9.length - 1].Open;}else {G8.kagiPrevOpen=G8.Open;}if(G8.Close > G8.kagiPrevOpen && G8.kagiPrevOpen > G8.Open){d0y.X$L(8);G8.kagiTrend=d0y.t1w(1,"1");}else if(G8.Close < G8.kagiPrevOpen && G8.kagiPrevOpen < G8.Open){d0y.X$L(18);G8.kagiTrend=-d0y.t1w("1",32);}if(Y_ < G8.DT){e9.push(G8);}m5=i4;d5.currentQuote={Close:i4.Close};}q0X=1266303773;e$G=-1530238202;C2H=2;for(var a0j=+"1";d0y.l9L(a0j.toString(),a0j.toString().length,40891) !== q0X;a0j++){return e9;}if(d0y.l9L(C2H.toString(),C2H.toString().length,7460) !== e$G){return e9;}return e9;};O2.calculateLineBreak=function(U5,l2,t0,p_){var j2,o4,e$,z1,z4,R6,O9,V9,k$,p9,I6,C3,R1,S1;d0y.Z_e();if(!l2.length){return l2;}if(!p_){p_=[];}j2=U5.layout;o4=U5.chart;o4.defaultChartStyleConfig.priceLines=3;t0=parseInt(t0,10);if(isNaN(t0) || t0 <= 0){t0=o4.defaultChartStyleConfig.priceLines;if(j2.priceLines !== null){j2.priceLines=null;U5.changeOccurred("layout");}}else if(t0 > 10){j2.priceLines=t0=10;}e$=p_.slice(-t0);z1=e$.length;z4=0;a:for(var H9=0;H9 < l2.length;H9++){R6=l2[H9];if(!R6)continue;z4+=R6.Volume;d0y.X$L(19);var Z0N=d0y.D8z(3,12,15,11,13);O9=e$[e$.length - Z0N];if(!O9){O9={Open:R6.Open,Close:R6.Open,High:R6.Open,Low:R6.Open};}V9=O9.Close;k$=O9.High;p9=O9.Low;I6=O9.Open;k$=k$ || k$ === 0?k$:V9;p9=p9 || p9 === 0?p9:V9;I6=I6 || I6 === 0?I6:V9;C3={DT:R6.DT,displayDate:R6.displayDate,Date:R6.Date,Close:R6.Close,Volume:z4,iqPrevClose:V9};o4.currentQuote={Close:R6.Close};if(R6.Close > V9 && O9.Close > I6){;}else if(R6.Close < V9 && O9.Close < I6){;}else if(R6.Close > k$){for(R1=2;R1 <= t0;R1++){S1=e$[e$.length - R1];if(S1 && R6.Close <= S1.High){continue a;}}}else if(R6.Close < p9){for(R1=2;R1 <= t0;R1++){S1=e$[e$.length - R1];if(S1 && R6.Close >= S1.Low){continue a;}}}else continue;if(R6.Close < O9.Close){C3.Open=Math.min(I6,V9);}else {C3.Open=Math.max(I6,V9);}C3.Low=Math.min(C3.Open,C3.Close);C3.High=Math.max(C3.Open,C3.Close);for(var Q4 in R6){if(!C3[Q4] && C3[Q4] !== 0){C3[Q4]=R6[Q4];}}e$.push(C3);d0y.O90(7);z4=d0y.D8z(0,"0");}return e$.slice(z1);};O2.calculateRenkoBars=function(c9,o9,D7,k2){var d_O,V3,r$,l0,E8,M1,i_,g_6,A0,A7,j1,m7,A5,I5,r0,B$,W5;d_O="Hi";d_O+="g";function T9(S6,Z7){var X8;S6=Number(S6.toFixed(8));Z7=Number(Z7.toFixed("8" << 0));X8={DT:m7.DT,displayDate:m7.displayDate,Date:m7.Date,Open:S6,Close:Z7,High:Math.max(S6,Z7),Low:Math.min(S6,Z7),Volume:0,iqPrevClose:S6 != Z7?S6:null};d0y.Z_e();for(var u0 in m7){if(!X8[u0] && X8[u0] !== 0){X8[u0]=m7[u0];}}A0.push(X8);}d_O+="h";if(!o9.length){return [];}if(!k2){k2=[];}V3=c9.layout;r$=c9.chart;l0=r$.state.aggregation;if(!l0){l0=r$.state.aggregation={};}E8=Math.min(300,o9.length);if(!l0.minMax){l0.minMax=c9.determineMinMax(o9.slice(o9.length - E8),["Close",d_O,"Low"]);}d0y.O90(20);var r4u=d0y.D8z(7,50,2,0);M1=l0.minMax["1" << r4u] - l0.minMax[+"0"];i_=c9.panels[r$.name].height;if(!i_){return [];}d0y.O90(21);var e0O=d0y.D8z(8,16,667,768,2);d0y.X$L(22);var y$b=d0y.t1w(6,35,19,19,49);r$.defaultChartStyleConfig.renko=Math.floor(e0O * M1 / (i_ / y$b)) / ("10000" ^ 0);if(D7 === null || isNaN(D7) || D7 <= 0){D7=r$.defaultChartStyleConfig.renko;if(V3.renko !== null){g_6="l";g_6+="a";g_6+="yout";V3.renko=null;c9.changeOccurred(g_6);}}else {d0y.O90(23);D7=Math.max(D7,d0y.t1w(i_,M1));if(V3.renko !== D7){V3.renko=D7;c9.changeOccurred("layout");}}A0=[];A7=null;j1=null;m7=null;if(k2.length){d0y.O90(24);var H6c=d0y.D8z(17,217,2,20,10);A5=k2[k2.length - H6c];A7=A5.Low - D7;j1=A5.High + D7;}for(var s6=0;s6 < o9.length;s6++){I5=o9[s6];if(!I5)continue;if(!A7 && !j1){r0=I5.Open || I5.Open === 0?I5.Open:I5.Close;B$=Math.floor(r0 / D7) * D7;W5=isNaN(B$)?r0:B$;d0y.O90(7);A7=d0y.t1w(D7,W5);d0y.O90(1);j1=d0y.D8z(W5,D7);}while(!!({})){if(!m7){m7=I5;}if(I5.Close <= A7){d0y.X$L(1);T9(d0y.t1w(A7,D7),A7);d0y.X$L(25);j1=d0y.D8z(A7,"2",D7);A7-=D7;m7=null;}else if(I5.Close >= j1){d0y.X$L(7);T9(d0y.D8z(D7,j1),j1);d0y.X$L(26);A7=d0y.t1w(D7,2,j1);j1+=D7;m7=null;}else break;}r$.currentQuote=I5;}if(A7 < o9[o9.length - 1].Close && A7 + D7 > o9[o9.length - 1].Close){d0y.X$L(1);T9(d0y.D8z(A7,D7),o9[o9.length - 1].Close);}else if(j1 > o9[o9.length - ("1" ^ 0)].Close && j1 - D7 < o9[o9.length - +"1"].Close){d0y.O90(7);T9(d0y.D8z(D7,j1),o9[o9.length - 1].Close);}return A0;};O2.calculateRangeBars=function(k7,h6,a8,L6){var C$E,A_V,H0,n4,i3,O4,N9,J2,N$6,k7i,n1Y,H_W,e2,s9,h3,O$,V7,g5,Y6,J4,V1,C8,M$,J8,S2,y4;d0y.c7b();function w3(j5){var m6;m6={DT:g5.DT,displayDate:g5.displayDate,Date:g5.Date,Open:Number(V7.toFixed(8)),Close:Number(j5.toFixed(8)),High:Number(h3.toFixed(8)),Low:Number(O$.toFixed(8)),Volume:"0" ^ 0};m6.iqPrevClose=m6.Open;for(var t1 in g5){if(!m6[t1] && m6[t1] !== 0){m6[t1]=g5[t1];}}e2.push(m6);}C$E="H";C$E+="i";C$E+="gh";A_V="Cl";A_V+="os";A_V+="e";function M9(C0,Y7){d0y.Z_e();while(1){if(!g5){g5=C0;}if(s9 < Y7){s9=Math.min(Y7,h3);d0y.X$L(7);O$=Math.max(O$,d0y.t1w(a8,s9));if(Y7 < h3)break;}else if(s9 >= Y7){s9=Math.max(Y7,O$);d0y.O90(1);h3=Math.min(h3,d0y.D8z(s9,a8));if(Y7 > O$)break;}if(typeof s9 == "undefined"){console.log("Uh oh undefined in calculateRangeBars:processMove");return;}w3(s9);g5=null;e6();}}if(!h6.length){return h6;}if(!L6){L6=[];}H0=k7.layout;n4=k7.chart;i3=n4.state.aggregation;if(!i3){i3=n4.state.aggregation={};}O4=Math.min(300,h6.length);if(!i3.minMax){i3.minMax=k7.determineMinMax(h6.slice(h6.length - O4),[A_V,C$E,"Low"]);}d0y.O90(27);var b3U=d0y.t1w(5,17,11,1);d0y.X$L(10);var c4H=d0y.D8z(49,2,27,14);N9=i3.minMax[b3U] - i3.minMax["0" << c4H];J2=k7.panels[n4.name].height;if(!J2){return [];}d0y.X$L(28);var Z8b=d0y.t1w(3334,10002,18,9979);d0y.X$L(5);var I9o=d0y.t1w(180000,170002,2);n4.defaultChartStyleConfig.range=Math.floor(Z8b * N9 / (J2 / +"30")) / I9o;if(a8 === null || isNaN(a8) || a8 < 0){a8=n4.defaultChartStyleConfig.range;if(H0.range !== null){H0.range=null;k7.changeOccurred("layout");}}else {N$6=+"196902161";k7i=-130577060;d0y.X$L(0);n1Y=d0y.D8z("2",2);for(var t2Q="1" | 1;d0y.i7j(t2Q.toString(),t2Q.toString().length,64913) !== N$6;t2Q++){d0y.O90(29);a8=Math.max(a8,d0y.D8z(J2,N9));n1Y+=2;}if(d0y.i7j(n1Y.toString(),n1Y.toString().length,28211) !== k7i){d0y.X$L(23);a8=Math.max(a8,d0y.t1w(J2,N9));}if(H0.range !== a8){H_W="lay";H_W+="o";H_W+="ut";H0.range=a8;k7.changeOccurred(H_W);}}e2=[];s9=null;h3=null;O$=null;V7=null;g5=null;for(var L_=0;L_ < h6.length;L_++){Y6=h6[L_];if(!Y6)continue;d0y.O90(30);J4=h6[d0y.t1w("1",L_,1)];if(!L_){if(!J4){d0y.X$L(31);var g6r=d0y.t1w(5,8,7,2);J4=L6[L6.length - g6r];}if(J4){s9=J4.Close;if(s9 || s9 === 0){e6();}}}if(!J4)continue;V1=Y6.Close;C8=Y6.Open;M$=Y6.High;J8=Y6.Low;if(!V1 && V1 !== 0)continue;C8=C8 || C8 === 0?C8:V1;M$=M$ || M$ === 0?M$:V1;J8=J8 || J8 === 0?J8:V1;if(!s9 && s9 !== 0){S2=Math.floor(C8 / a8) * a8;s9=isNaN(S2)?C8:S2;e6();M9(J4,C8);}if(L_){M9(Y6,C8);}if(M$ - C8 < C8 - J8){if(M$){M9(Y6,M$);}if(J8){M9(Y6,J8);}}else {if(J8){M9(Y6,J8);}if(M$){M9(Y6,M$);}}M9(Y6,V1);if(L_ == h6.length - 1 && V1 != V7){y4=h3;d0y.X$L(1);h3=d0y.t1w(O$,a8);d0y.O90(7);O$=d0y.D8z(a8,y4);w3(V1);}}function e6(){d0y.X$L(1);h3=d0y.t1w(s9,a8);d0y.O90(7);d0y.c7b();O$=d0y.D8z(a8,s9);V7=s9;}return e2;};O2.calculatePointFigure=function(c5,D0,Q_,s0){var J1,U0,T4,B_,d3,c5z,i9j,i8Q,p3K,c1y,r9Y,b_I,w$,Z48,p6,E7,D_,A8,b7,v3,F1,i8,o7,C$,j9,a2,F9;if(!D0.length){return D0;}if(!s0){s0=[];}J1=c5.layout;U0=c5.chart;T4=U0.state.aggregation;if(!T4){T4=U0.state.aggregation={};}U0.defaultChartStyleConfig.box=1;U0.defaultChartStyleConfig.reversal=3;if(!Q_){Q_={};}B_=Q_.box;if(!B_){if(J1.pandf){if(J1.pandf.box !== null){J1.pandf.box=null;c5.changeOccurred("layout");}}B_=U0.defaultChartStyleConfig.box;d3=D0[D0.length - ("1" | 0)].Close;if(d3){if(d3 < 0.25){d0y.X$L(7);B_=d0y.D8z(0,"0.0625");}else if(d3 < 1){B_=0.125;}else if(d3 < 5){B_=0.25;}else if(d3 < 20){B_=0.5;}else if(d3 < 100){d0y.X$L(18);B_=d0y.t1w("1",64);}else if(d3 < 200){B_=2;}else if(d3 < "500" << 64){B_=4;}else if(d3 < 1000){B_=5;}else if(d3 < +"25000"){B_=50;}else {d0y.O90(3);B_=d0y.t1w(0,"500");}}if(!O2.ChartEngine.isDailyInterval(J1.interval)){B_/=10;}if(O2.Market.Symbology.isForexSymbol(U0.symbol)){if(d3){if(d3 < 1){B_=0.001;}else if(d3 < 2){B_=0.002;}else if(d3 < 50){B_=0.02;}else if(d3 < 200){B_=0.2;}}if(O2.ChartEngine.isDailyInterval(J1.interval)){B_*=10;}}c5z=1464214372;i9j=750032200;i8Q=2;for(var D8U=+"1";d0y.i7j(D8U.toString(),D8U.toString().length,+"77591") !== c5z;D8U++){U0.defaultChartStyleConfig.box=B_;i8Q+=2;}if(d0y.l9L(i8Q.toString(),i8Q.toString().length,40275) !== i9j){U0.defaultChartStyleConfig.box=B_;}U0.defaultChartStyleConfig.box=B_;}function R9(e4,N2,O0,b_,K8,I1,s7,l3,y$){return {DT:e4.DT,Date:e4.Date,pfOpen:l3,pfClose:y$,Open:N2,Close:K8,High:O0,Low:b_,Volume:I1,iqPrevClose:s7};}B_=parseFloat(B_);if(isNaN(B_) || B_ <= 0){if(J1.pandf){if(J1.pandf.box !== null){p3K="l";p3K+="ayo";p3K+="u";p3K+="t";J1.pandf.box=null;c5.changeOccurred(p3K);}}c1y=574601592;r9Y=-+"1745831370";b_I=2;for(var q2e=1;d0y.i7j(q2e.toString(),q2e.toString().length,27632) !== c1y;q2e++){U0.defaultChartStyleConfig.box=B_=1;b_I+=2;}if(d0y.l9L(b_I.toString(),b_I.toString().length,44342) !== r9Y){U0.defaultChartStyleConfig.box=B_=5;}}w$=Math.ceil(parseFloat(Q_.reversal));if(w$ > +"0" && w$ > Q_.reversal){J1.pandf.reversal=w$;c5.changeOccurred("layout");}else if(isNaN(w$) || w$ <= +"0"){if(J1.pandf){if(J1.pandf.reversal !== null){Z48="l";Z48+="a";Z48+="yout";J1.pandf.reversal=null;c5.changeOccurred(Z48);}}w$=U0.defaultChartStyleConfig.reversal;}T4.box=B_;w$*=B_;p6=0.00000001;E7=(B_.toString() + ((+"804",412) != 856.62?".":102.76 < (1770,+"8958")?7.20e+1:!"")).split((6256,3720) !== "419.74" * 1?".":!({}))[1].length;D_=[];A8=0;function f8(K_,i2,f7,Z9,G7){K_.High=Math.max(i2,K_.High);K_.Low=Math.min(f7,K_.Low);K_.Close=Z9;K_.Volume+=G7;}for(var S$=0;S$ < D0.length;S$++){v3=D0[S$];if(!v3)continue;A8+=v3.Volume;i8=v3.Close;o7=v3.Open;C$=v3.High;j9=v3.Low;o7=o7 || o7 === ("0" | 0)?o7:i8;C$=C$ || C$ === "0" << 96?C$:i8;j9=j9 || j9 === 0?j9:i8;if(!D_.length && !s0.length){b7=R2(v3,R9(v3,o7,C$,j9,i8,A8,C$ + B_,Number((Math.ceil(j9 / B_ - p6) * B_).toFixed(E7)),Number((Math.floor(C$ / B_ + p6) * B_).toFixed(E7))));b7.pfTrend=(+"9052",9470) === 7269?(43.69,0x24e8):"X";if(b7.pfOpen == b7.pfClose){b7.pfStepBack="663.53" - 0 !== (7344,123.96)?4700 < (866,"6290" << 0)?"-":!"1":("z",6.33e+3);}D_.push(b7);d0y.X$L(7);A8=d0y.t1w(0,"0");continue;}d0y.O90(9);var l2F=d0y.t1w(12,11,0);F1=D_[D_.length - l2F];if(!F1){F1=O2.clone(s0[s0.length - 1]);}if(F1.pfTrend == "O"){if(j9 <= F1.pfClose - B_){F1.pfClose=Number((Math.ceil(j9 / B_ - p6) * B_).toFixed(E7));if(F1.pfStepBack == "O"){F1.pfStepBack=null;}f8(F1,C$,j9,i8,A8);}else if(C$ >= F1.pfClose + w$){a2=F1.pfClose + B_;F9=Number((Math.floor(C$ / B_ + p6) * B_).toFixed(E7));b7=R9(v3,o7,C$,j9,i8,A8,F1.pfClose,a2,F9);if(a2 == F9){b7.pfStepBack=(8236,7840) == 457.24?598.49:"X";}if(F1.pfStepBack == (("9630" << 64,+"1270") !== 9542?"O":+"6870" !== (493.48,1442)?"J":2.28e+3)){F1.pfOpen=a2;F1.pfClose=F9;F1.pfTrend=(1260,5245) <= (1200,4200)?(!!1,0x10c1):"X";f8(F1,C$,j9,i8,A8);}else {b7=R2(v3,b7);b7.pfTrend=(276.39,9760) >= "333.53" - 0?+"1870" > 8492?(565.87,714.21):271 >= (958.24,9310)?("G",+"334.29"):"X":1.12e+3;D_.push(b7);}}else {f8(F1,C$,j9,i8,A8);}d0y.X$L(3);A8=d0y.D8z(0,"0");}else if(F1.pfTrend == ((122.87,1250) != "6365" << 0?"X":(![],881.87))){if(C$ >= F1.pfClose + B_){F1.pfClose=Number((Math.floor(C$ / B_ + p6) * B_).toFixed(E7));if(F1.pfStepBack == (8800 <= (653.59,98.74)?5546 <= (3330,4640)?"638.62" * 1:(6.70e+1,6.35e+3):"X") || F1.pfStepBack == "-"){F1.pfStepBack=null;}f8(F1,C$,j9,i8,A8);}else if(j9 <= F1.pfClose - w$){a2=F1.pfClose - B_;F9=Number((Math.ceil(j9 / B_ - p6) * B_).toFixed(E7));b7=R9(v3,o7,C$,j9,i8,A8,F1.pfClose,a2,F9);if(a2 == F9){b7.pfStepBack=+"1647" > 7814?("28" | 4) < 8010?(4940,4986) <= (1639,3912)?(5.61e+3,!!""):(!![],"H"):0x1d7e:"O";}if(F1.pfStepBack == "X" || F1.pfStepBack == ("583.95" - 0 != (195.67,+"912")?148.52 !== ("492.96" - 0,6441)?"-":+"0x94e":140.66)){F1.pfOpen=a2;F1.pfClose=F9;F1.pfTrend=839.47 <= 9038?"O":891.81;f8(F1,C$,j9,i8,A8);if(a2 != F9 && F1.pfStepBack == "-"){F1.pfStepBack=null;}}else {b7=R2(v3,b7);b7.pfTrend=8766 !== 2640?"O":!({});D_.push(b7);}}else {f8(F1,C$,j9,i8,A8);}A8=0;}}function R2(p8,t3){for(var M2 in p8){if(!t3[M2] && t3[M2] !== 0){t3[M2]=p8[M2];}}return t3;}return D_;};};X=W1=>{var e5,E3,C0h,n$e,h1l,X8A,V5d,Z9f,D_8,s6V,K6H,l0T,m9e,k6w,J0b,R33,T_$,Z83,L82,r3P,q81,M3H,Z42,r51,x3l;e5=typeof _CIQ !== "undefined"?_CIQ:W1.CIQ;E3=typeof _timezoneJS !== "undefined"?_timezoneJS:W1.timezoneJS;if(!e5.Drawing){console.error("drawingAdvanced feature requires first activating drawing feature.");}else {C0h="br[cq-wave-parameters";C0h+="]";n$e="waveParame";n$e+="ters";h1l="I";h1l+="V";X8A="pa";X8A+="t";X8A+="ter";X8A+="n";V5d="l";V5d+="ineWidth";Z9f="li";Z9f+="neW";Z9f+="idth";D_8="c";D_8+="q-cvp-controller[cq-cvp-header=\"1\"]";s6V="pat";s6V+="ter";s6V+="n3";K6H="a";K6H+="ctive";K6H+="2";l0T="c";l0T+="olor1";m9e="p";m9e+="attern";k6w="lineWi";k6w+="dt";k6w+="h";J0b="p";J0b+="a";J0b+="t";J0b+="tern";R33="t";R33+="z";T_$="p";T_$+="v";Z83="p";Z83+="l";L82="l";L82+="w";r3P="p";r3P+="t";q81="p";q81+="a";q81+="ttern";M3H="fil";M3H+="l";M3H+="Colo";M3H+="r";Z42="c";Z42+="o";Z42+="l";Z42+="or";r51="p";r51+="a";r51+="tte";r51+="rn";x3l="fill";x3l+="C";x3l+="olor";e5.Drawing.ray=function(){g9BGt.c7b();this.name="ray";};e5.inheritsFrom(e5.Drawing.ray,e5.Drawing.line);e5.Drawing.ray.prototype.calculateOuterSet=function(Y2){var v1_=g9BGt;var F0,E$;if(this.p0[0] == this.p1[0] || this.p0[1] == this.p1[1] || e5.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}F0={x0:this.p0["0" | 0],y0:this.p0[1],x1:this.p1[0],y1:this.p1[1]};v1_.O90(32);var g24=v1_.D8z(8000,16,4000,968);E$=F0.x1 + g24;if(F0.x0 > F0.x1){v1_.X$L(1);var g_i=v1_.t1w(56,944);E$=F0.x1 - g_i;}this.v0B=this.v0;this.v1B=e5.yIntersection(F0,E$);this.d0B=this.d0;this.d1B=this.stx.dateFromTick(E$,Y2.chart);};e5.Drawing.ray.prototype.adjust=function(){var l5;l5=this.stx.panels[this.panelName];g9BGt.Z_e();if(!l5){return;}this.setPoint(0,this.d0,this.v0,l5.chart);this.setPoint(1,this.d1,this.v1,l5.chart);if(e5.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(1,this.d1B,this.v1B,l5.chart);}};e5.Drawing.continuous=function(){this.name="continuous";this.dragToDraw=!!"";g9BGt.c7b();this.maxSegments=null;};e5.inheritsFrom(e5.Drawing.continuous,e5.Drawing.segment);e5.Drawing.continuous.prototype.click=function(u$,V4,s8){var C_,P8,S7,E9;C_=this.stx.panels[this.panelName];if(!C_){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,V4,s8,C_.chart);this.penDown=!!({});return !1;}if(this.accidentalClick(V4,s8)){this.stx.undo();return !!"1";}this.setPoint(+"1",V4,s8,C_.chart);P8=e5.Drawing.segment;S7=new P8();E9=this.serialize(this.stx);S7.reconstruct(this.stx,E9);this.stx.addDrawing(S7);this.stx.changeOccurred("vector");this.stx.draw();this.segment++;if(this.maxSegments && this.segment > this.maxSegments){return !!1;}g9BGt.c7b();this.setPoint(0,V4,s8,C_.chart);return !1;};e5.Drawing.ellipse=function(){this.name="ellipse";};e5.inheritsFrom(e5.Drawing.ellipse,e5.Drawing.BaseTwoPoint);e5.Drawing.ellipse.prototype.render=function(M6){var U32=g9BGt;var H2,W$,s5,z7,h9,F4,q$,E5,d4,K7,Q3,I4,D3,n1e,o3,n1x,E1P,n$W,t5;H2=this.stx.panels[this.panelName];if(!H2){return;}W$=this.stx.pixelFromTick(this.p0[0],H2.chart);s5=this.stx.pixelFromTick(this.p1[0],H2.chart);z7=this.stx.pixelFromValueAdjusted(H2,this.p0[0],this.p0[1]);h9=this.stx.pixelFromValueAdjusted(H2,this.p1[0],this.p1[1]);U32.X$L(33);F4=U32.D8z(W$,W$,s5);q$=s5;E5=z7;d4=h9;U32.O90(33);K7=U32.t1w(z7,z7,h9);U32.X$L(34);Q3=U32.t1w(6,d4,K7);I4=this.lineWidth;if(!I4){U32.X$L(8);I4=U32.D8z(1,"1.1");}D3=this.color;if(D3 == "auto" || e5.isTransparent(D3)){D3=this.stx.defaultColor;}if(this.highlighted){n1e="st";n1e+="x_hig";n1e+="hlight_vector";D3=this.stx.getCanvasColor(n1e);if(I4 == 0.1){I4=1.1;}}o3=this.fillColor;M6.beginPath();M6.moveTo(F4,E5);U32.O90(1);M6.bezierCurveTo(F4,U32.D8z(d4,Q3),q$,U32.t1w(d4,Q3),q$,E5);U32.X$L(7);M6.bezierCurveTo(q$,U32.D8z(Q3,K7),F4,U32.D8z(Q3,K7),F4,E5);if(o3 && !e5.isTransparent(o3) && o3 != "auto"){M6.fillStyle=o3;n1x=90609876;E1P=1241669347;n$W=2;for(var u3U=1;U32.l9L(u3U.toString(),u3U.toString().length,13357) !== n1x;u3U++){M6.globalAlpha=529;M6.fill();n$W+=2;}if(U32.l9L(n$W.toString(),n$W.toString().length,43585) !== E1P){M6.globalAlpha=0.2;M6.fill();}U32.X$L(35);M6.globalAlpha=U32.t1w(0,"1");}if(D3 && this.pattern != "none"){M6.strokeStyle=D3;M6.lineWidth=I4;if(M6.setLineDash){M6.setLineDash(e5.borderPatternToArray(I4,this.pattern));U32.X$L(7);M6.lineDashOffset=U32.t1w(0,"0");;}M6.stroke();}M6.closePath();if(this.highlighted){t5=this.highlighted == "p1"?!0:!!"";this.littleCircle(M6,s5,h9,t5);}};e5.Drawing.ellipse.prototype.intersected=function(W7,r4,e7){var Q6L=g9BGt;var I1w,g4,r_,z6,b1;I1w="mov";I1w+="e";if(!this.p0 || !this.p1){return null;}if(this.pointIntersection(this.p1[0],this.p1[1],e7)){this.highlighted="p1";return {action:"drag",point:"p1"};}g4=this.p0[+"0"] - (this.p1[0] - this.p0[+"0"]);r_=this.p1[0];z6=this.p1[1];Q6L.X$L(5);var z98=Q6L.D8z(0,10,11);Q6L.O90(27);var O6C=Q6L.D8z(8,12,9,4);Q6L.X$L(36);var X9C=Q6L.t1w(20,186,9,12,5);b1=this.p0[z98] - (this.p1[O6C] - this.p0[X9C]);if(e7.x0 > Math.max(g4,r_) || e7.x1 < Math.min(g4,r_)){return !!"";}if(e7.y1 > Math.max(b1,z6) || e7.y0 < Math.min(b1,z6)){return !"1";}this.highlighted=!!({});return {action:I1w,p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:W7,value:r4};};e5.Drawing.ellipse.prototype.configs=["color",x3l,"lineWidth",r51];e5.Drawing.ellipse.prototype.reconstruct=function(h8,B6){this.stx=h8;this.color=B6.col;this.fillColor=B6.fc;this.panelName=B6.pnl;this.pattern=B6.ptrn;this.lineWidth=B6.lw;this.d0=B6.d0;this.d1=B6.d1;this.tzo0=B6.tzo0;this.tzo1=B6.tzo1;this.v0=B6.v0;this.v1=B6.v1;this.adjust();};e5.Drawing.ellipse.prototype.serialize=function(){g9BGt.Z_e();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};e5.Drawing.channel=function(){var z8W;g9BGt.Z_e();z8W="cha";z8W+="n";z8W+="nel";this.name=z8W;this.dragToDraw=!({});this.p2=null;};e5.inheritsFrom(e5.Drawing.channel,e5.Drawing.segment);e5.Drawing.channel.prototype.configs=[Z42,M3H,"lineWidth","pattern"];e5.Drawing.channel.prototype.move=function(R3,X3,H_){var l9D=g9BGt;var T$;if(!this.penDown){return;}this.copyConfig();if(this.p2 === null){this.p1=[X3,H_];}else {l9D.X$L(37);var u72=l9D.t1w(17,2,3,11);l9D.O90(38);var o1f=l9D.D8z(20,1336,70);T$=H_ - (this.p1[u72] - this.p0["1" >> o1f]) / (this.p1[0] - this.p0[+"0"]) * (X3 - this.p1[0]);l9D.X$L(8);this.p2=[this.p1[l9D.t1w(1,"0")],T$];}this.render(R3);};e5.Drawing.channel.prototype.click=function(e0,W3,Y3){var M4;M4=this.stx.panels[this.panelName];g9BGt.c7b();if(!M4){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,W3,Y3,M4.chart);this.penDown=!!1;return ![];}if(this.accidentalClick(W3,Y3)){this.stx.undo();return !![];}if(this.p2 !== null){this.setPoint(2,this.p2[0],this.p2[1],M4.chart);this.penDown=!!"";return !!({});}this.setPoint(1,W3,Y3,M4.chart);if(this.p0[0] == this.p1["0" >> 0]){this.p1=null;return ![];}g9BGt.X$L(3);this.p2=[this.p1[0],this.p1[g9BGt.t1w(0,"1")]];return !({});};e5.Drawing.channel.prototype.boxIntersection=function(X$,m0,o1){var c0g=g9BGt;var b5,n6,v7,U4,S8;b5=this.p0;n6=this.p1;v7=this.p2;if(!b5 || !n6 || !v7){return !!"";}if(o1.x0 > Math.max(b5[0],n6[+"0"]) || o1.x1 < Math.min(b5[0],n6[0])){return !1;}c0g.X$L(39);var y2k=c0g.D8z(19,20,0,5,8);c0g.O90(40);var a4C=c0g.D8z(6,2,3);c0g.X$L(41);var W7T=c0g.D8z(4,16,11,3);c0g.X$L(42);c0g.Z_e();var k_F=c0g.t1w(9,22,5,10,16);U4=(n6[+"0"] - b5[0]) * ((v7[y2k] < b5[+"1"]?o1.y1:o1.y0) - b5[a4C]) - (n6[W7T] - b5["1" >> k_F]) * (X$ - b5[0]);c0g.X$L(7);var E$O=c0g.t1w(18,19);c0g.X$L(43);var i51=c0g.t1w(253,18,0,14);c0g.O90(2);var p_V=c0g.t1w(0,4,20,5);c0g.X$L(44);var x6q=c0g.D8z(8,48,10,9,12);c0g.O90(7);var l0W=c0g.D8z(14,15);c0g.X$L(5);var D$3=c0g.t1w(37,15,10);S8=(v7[+"0"] - b5["0" - 0]) * ((v7[E$O] > b5[i51]?o1.y1:o1.y0) - (b5[+"1"] + v7[p_V] - n6[x6q])) - (n6[+"1"] - b5[l0W]) * (X$ - b5["0" << D$3]);c0g.X$L(45);return c0g.D8z(U4,S8,0);};e5.Drawing.channel.prototype.intersected=function(k0,v$,G0){var Q6,J$y;g9BGt.c7b();if(!this.p0 || !this.p1 || !this.p2){return null;}Q6={0:this.p0,1:this.p1,2:this.p2};for(var v4 in Q6){if(this.pointIntersection(Q6[v4][+"0"],Q6[v4]["1" - 0],G0)){g9BGt.O90(1);this.highlighted=g9BGt.t1w(3602 <= ("2040" * 1,"575.57" * 1)?(913,6560) <= 7180?!"":709.25:"p",v4);return {action:"drag",point:((6859,801.79) < 7318?("4020" * 1,3400) < 1120?213.16:"p":(!"1",982.11)) + v4};}}if(this.boxIntersection(k0,v$,G0)){J$y="m";J$y+="o";J$y+="v";J$y+="e";this.highlighted=!!"1";return {action:J$y,p0:e5.clone(this.p0),p1:e5.clone(this.p1),p2:e5.clone(this.p2),tick:k0,value:v$};}return null;};e5.Drawing.channel.prototype.render=function(N3){var N4j=g9BGt;var Y7F,w3K,y3,l9,P_,L4,k1,E1,c_,u9,V_,w4,D4,m$,Y8;Y7F="se";Y7F+="gment";w3K="s";w3K+="e";w3K+="gment";y3=this.stx.panels[this.panelName];if(!y3){return;}l9=this.stx.pixelFromTick(this.p0[0],y3.chart);P_=this.stx.pixelFromTick(this.p1[0],y3.chart);L4=this.stx.pixelFromValueAdjusted(y3,this.p0[0],this.p0[1]);k1=this.stx.pixelFromValueAdjusted(y3,this.p1[0],this.p1[1]);E1=null;if(this.p2){E1=this.stx.pixelFromValueAdjusted(y3,this.p2[0],this.p2[1]);}c_=this.lineWidth;u9=this.getLineColor();V_=this.fillColor;if(this.p2 && V_ && !e5.isTransparent(V_) && V_ != "auto"){N3.beginPath();N3.moveTo(l9,L4);N3.lineTo(P_,k1);N3.lineTo(P_,E1);N4j.X$L(46);N3.lineTo(l9,N4j.t1w(k1,L4,E1));N3.closePath();N3.globalAlpha=0.2;N3.fillStyle=V_;N3.fill();N3.globalAlpha=1;}w4={pattern:this.pattern,lineWidth:c_};if((this.penDown || this.highlighted) && this.pattern == "none"){w4.pattern="dotted";}this.stx.plotLine(l9,P_,L4,k1,u9,w3K,N3,y3,w4);if(this.p2){N4j.O90(46);this.stx.plotLine(l9,P_,N4j.t1w(k1,L4,E1),E1,u9,Y7F,N3,y3,w4);}if(this.highlighted){D4=this.highlighted == "p0"?!![]:![];m$=this.highlighted == "p1"?!![]:!({});Y8=this.highlighted == "p2"?!!"1":!1;this.littleCircle(N3,l9,L4,D4);this.littleCircle(N3,P_,k1,m$);this.littleCircle(N3,P_,E1,Y8);}};e5.Drawing.channel.prototype.reposition=function(W9,k4,A6,G9){var x3P,r5,C9,A$;x3P="d";x3P+="r";x3P+="a";x3P+="g";if(!k4){return;}r5=this.stx.panels[this.panelName];C9=k4.tick - A6;A$=k4.value - G9;if(k4.action == "move"){this.setPoint(0,k4.p0[0] - C9,k4.p0[+"1"] - A$,r5.chart);this.setPoint(1,k4.p1[0] - C9,k4.p1[+"1"] - A$,r5.chart);this.setPoint(+"2",k4.p2["0" >> 0] - C9,k4.p2[1] - A$,r5.chart);this.render(W9);}else if(k4.action == x3P){this[k4.point]=[A6,G9];this.setPoint(0,this.p0[0],this.p0[1],r5.chart);this.setPoint(1,this.p1[+"0"],this.p1[1],r5.chart);this.setPoint(+"2",this.p2["0" - 0],this.p2[1],r5.chart);this.render(W9);}};e5.Drawing.channel.prototype.adjust=function(){var a5;a5=this.stx.panels[this.panelName];if(!a5){return;}this.setPoint(0,this.d0,this.v0,a5.chart);this.setPoint(1,this.d1,this.v1,a5.chart);g9BGt.X$L(35);this.setPoint(g9BGt.t1w(64,"2"),this.d1,this.v2,a5.chart);;};e5.Drawing.channel.prototype.reconstruct=function(I0,c$){this.stx=I0;g9BGt.Z_e();this.color=c$.col;this.fillColor=c$.fc;this.panelName=c$.pnl;this.pattern=c$.ptrn;this.lineWidth=c$.lw;this.d0=c$.d0;this.d1=c$.d1;this.tzo0=c$.tzo0;this.tzo1=c$.tzo1;this.v0=c$.v0;this.v1=c$.v1;this.v2=c$.v2;this.adjust();};e5.Drawing.channel.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1,v2:this.v2};};e5.Drawing.pitchfork=function(){var y73;y73="pitchf";y73+="o";y73+="r";y73+="k";this.name=y73;this.dragToDraw=!!"";this.p2=null;};e5.inheritsFrom(e5.Drawing.pitchfork,e5.Drawing.channel);e5.Drawing.pitchfork.prototype.configs=["color","lineWidth","pattern"];e5.Drawing.pitchfork.prototype.move=function(H$,f9,l6){if(!this.penDown){return;}this.copyConfig();if(this.p2 === null){this.p1=[f9,l6];}else {this.p2=[f9,l6];}g9BGt.Z_e();this.render(H$);};e5.Drawing.pitchfork.prototype.intersected=function(j_,Q0,g6){var A2,Z6;if(!this.p0 || !this.p1 || !this.p2){return null;}A2={0:this.p0,1:this.p1,2:this.p2};for(var a3 in A2){if(this.pointIntersection(A2[a3][0],A2[a3][1],g6)){g9BGt.X$L(1);this.highlighted=g9BGt.t1w(157.92 == (5290,988.95)?4.54e+3:(7617,1230) <= 2080?"p":(6650,+"9080") === (+"598.34",350)?(2.78e+3,6.10e+3):(0x18e7,"o"),a3);return {action:"drag",point:"p" + a3};}}Z6=this.rays;for(var q9=0;q9 < Z6.length;q9++){if(this.lineIntersection(j_,Q0,g6,q9?"ray":"segment",Z6[q9][0],Z6[q9][1],!!({}))){this.highlighted=!!"1";return {action:"move",p0:e5.clone(this.p0),p1:e5.clone(this.p1),p2:e5.clone(this.p2),tick:j_,value:Q0};}}return null;};e5.Drawing.pitchfork.prototype.render=function(R$){var I02=g9BGt;var q_,g$,D2,Y4,O3,c4,V8,M7,X9,m3,a4,P5,Q$,u1,L2,a6,N_,e_c,i6,L7,K0;q_=this.stx.panels[this.panelName];if(!q_){return;}g$=this.stx;D2=this.p2;if(!D2){D2=this.p1;}Y4=g$.pixelFromTick(this.p0[0],q_.chart);O3=g$.pixelFromTick(this.p1[+"0"],q_.chart);c4=g$.pixelFromTick(D2[0],q_.chart);V8=g$.pixelFromValueAdjusted(q_,this.p0[0],this.p0[+"1"]);M7=g$.pixelFromValueAdjusted(q_,this.p1[0],this.p1[+"1"]);X9=g$.pixelFromValueAdjusted(q_,D2[0],D2[1]);m3=this.lineWidth;a4=this.getLineColor();P5={pattern:this.pattern,lineWidth:m3};Q$=50;I02.O90(31);u1=I02.D8z(M7,X9,V8,2);I02.O90(31);L2=I02.t1w(O3,c4,Y4,2);if(L2 < +"0"){Q$*=-1;}I02.O90(23);u1*=I02.D8z(L2,Q$);I02.X$L(47);this.rays=[[[O3,M7],[c4,X9]],[[Y4,V8],[I02.t1w(0,c4,O3,"2"),I02.D8z(M7,X9,"2",I02.X$L(48))]]];if(!(O3 == c4 && M7 == X9)){I02.X$L(7);this.rays.push([[O3,M7],[I02.t1w(Q$,O3),I02.D8z(u1,M7)]],[[c4,X9],[I02.t1w(Q$,c4),I02.D8z(u1,X9)]]);}for(var x6=0;x6 < this.rays.length;x6++){a6=this.rays[x6];N_=x6?"ray":"segment";g$.plotLine(a6[+"0"][0],a6[1][+"0"],a6[0]["1" << 0],a6[1][1],a4,N_,R$,q_,P5);}if(this.highlighted){e_c="p";e_c+="1";i6=this.highlighted == "p0"?!!1:!1;L7=this.highlighted == e_c?!![]:![];K0=this.highlighted == "p2"?!!({}):![];this.littleCircle(R$,Y4,V8,i6);this.littleCircle(R$,O3,M7,L7);this.littleCircle(R$,c4,X9,K0);}};e5.Drawing.pitchfork.prototype.adjust=function(){var r_2=g9BGt;var e_,a61,A2D,X6U;e_=this.stx.panels[this.panelName];if(!e_){return;}this.setPoint(0,this.d0,this.v0,e_.chart);a61=545116989;r_2.X$L(0);A2D=r_2.D8z("2137708937",0);X6U=2;for(var Y9I=1;r_2.l9L(Y9I.toString(),Y9I.toString().length,68899) !== a61;Y9I++){this.setPoint(1,this.d1,this.v1,e_.chart);this.setPoint(2,this.d2,this.v2,e_.chart);X6U+=2;}if(r_2.i7j(X6U.toString(),X6U.toString().length,+"33429") !== A2D){this.setPoint(+"8",this.d1,this.v1,e_.chart);this.setPoint(1,this.d2,this.v2,e_.chart);}};e5.Drawing.pitchfork.prototype.reconstruct=function(x3,F8){this.stx=x3;this.color=F8.col;this.panelName=F8.pnl;this.pattern=F8.ptrn;this.lineWidth=F8.lw;this.d0=F8.d0;this.d1=F8.d1;this.d2=F8.d2;this.tzo0=F8.tzo0;this.tzo1=F8.tzo1;this.tzo2=F8.tzo2;this.v0=F8.v0;this.v1=F8.v1;this.v2=F8.v2;this.adjust();};e5.Drawing.pitchfork.prototype.serialize=function(){g9BGt.c7b();return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,d2:this.d2,tzo0:this.tzo0,tzo1:this.tzo1,tzo2:this.tzo2,v0:this.v0,v1:this.v1,v2:this.v2};};e5.Drawing.gartley=function(){this.name="gartley";this.dragToDraw=!1;this.maxSegments=4;g9BGt.c7b();this.shape=null;this.points=[];};e5.inheritsFrom(e5.Drawing.gartley,e5.Drawing.continuous);e5.Drawing.gartley.prototype.check=function(r2,I8){if(!I8){return !!"1";}if(r2[+"0"] >= I8["0" << 0] || r2[1] == I8[1]){return !!"";}if(this.segment == 1){if(r2[1] < I8[+"1"]){this.shape=892.83 != 1350?(9672,1880) >= (473.69,478.44)?"M":0x1517:376.55;}else {this.shape=(834.14,"5517" - 0) !== (268.58,9140)?"W":619.28 === 3042?"J":(!!"1","j");}}else if(this.segment == 2){if(this.shape == (7190 != ("12.34" - 0,2775)?883 >= 5870?("e","b"):"M":517.18) && r2[1] < I8["1" - 0]){return ![];}else if(this.shape == "W" && r2[1] > I8[1]){return !({});}else if((I8["1" >> 96] - r2[1]) / (this.points[0][1] - r2[1]) < 0.618){return !!"";}else if((I8[1] - r2[1]) / (this.points[0][1] - r2[1]) >= 0.786){return !!0;}}else if(this.segment == 3){if(this.shape == ((287.38,860.87) != (306,91.47)?"M":![]) && r2[1] > I8[1]){return !"1";}else if(this.shape == ((+"3930",80.65) != (4318,6390)?"W":("B",9.55e+3)) && r2[1] < I8[1]){return !"1";}else if((I8[1] - r2[1]) / (this.points[1][+"1"] - r2[1]) < 0.618){return ![];}else if((I8[1] - r2[+"1"]) / (this.points[1][1] - r2["1" * 1]) >= 0.786){return ![];}}else if(this.segment == 4){if(this.shape == ((466.07,228) !== +"404"?9500 !== 481.47?4418 > 563?"M":(998.13,0xecc):4.33e+3:(+"16.45",0xe9e)) && (r2[1] < I8["1" ^ 0] || I8[1] < this.points[0][1])){return ![];}else if(this.shape == "W" && (r2["1" << 0] > I8["1" ^ 0] || I8[1] > this.points[0][1])){return !!0;}else if((this.points[1]["1" - 0] - I8["1" ^ 0]) / (this.points[1]["1" * 1] - this.points[2][1]) < "1.27" * 1){return ![];}else if((this.points[1][1] - I8[1]) / (this.points[1][1] - this.points[2][1]) >= 1.618){return !!0;}}return !![];};e5.Drawing.gartley.prototype.click=function(R7,L9,m4){var Z1;Z1=this.stx.panels[this.panelName];if(!Z1){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,L9,m4,Z1.chart);this.pts=[];this.penDown=!!({});g9BGt.X$L(35);this.segment=g9BGt.t1w(32,"1");return !({});}if(this.accidentalClick(L9,m4)){this.penDown=!![];return ![];}if(this.check(this.p0,this.p1)){if(this.segment == 1){this.points.push(this.p0);}this.points.push(this.p1);this.setPoint(1,L9,m4,Z1.chart);this.segment++;if(this.segment > this.maxSegments){this.setPoint(0,this.points[0][0],this.points[0][1],Z1.chart);this.penDown=![];return !!({});}this.pts.push(this.d1,this.tzo1,this.v1);this.setPoint(+"0",L9,m4,Z1.chart);;}return !({});};e5.Drawing.gartley.prototype.render=function(r6){var I$Q=g9BGt;var m6P,T_,C4,o6,U3,Z4,h1,f5,h5,t4,f3,s_,I_,K1,l7,T7;m6P="dot";m6P+="t";m6P+="e";m6P+="d";T_=this.stx.panels[this.panelName];if(!T_){return;}C4=this.stx.pixelFromTick(this.p0[0],T_.chart);o6=this.stx.pixelFromTick(this.p1[0],T_.chart);U3=this.stx.pixelFromValueAdjusted(T_,this.p0[0],this.p0[1]);Z4=this.stx.pixelFromValueAdjusted(T_,this.p1[0],this.p1[1]);if(this.segment == ("2" | 2)){this.drawDropZone(r6,0.618 * this.points["0" | 0][1] + 0.382 * this.p0[1],0.786 * this.points[0][1] + 0.214 * this.p0[+"1"],this.p0["0" ^ 0]);}else if(this.segment == 3){this.drawDropZone(r6,0.618 * this.points[1][1] + 0.382 * this.p0[1],0.786 * this.points[1][+"1"] + 0.214 * this.p0[1],this.p0[+"0"]);}else if(this.segment == 4){I$Q.X$L(7);var U8H=I$Q.D8z(3,35);I$Q.O90(15);var D10=I$Q.D8z(9,13,19,2);I$Q.X$L(49);var B9a=I$Q.D8z(1,2,11,12);I$Q.O90(7);var S3N=I$Q.D8z(17,18);h1=1.618 * this.points["2" << U8H][D10] - 0.618 * this.points[B9a][S3N];if(this.shape == "M"){h1=Math.max(h1,this.points[0][1]);}else {h1=Math.min(h1,this.points[0][1]);}this.drawDropZone(r6,h1,+"1.27" * this.points[2][1] - 0.27 * this.points[1][1],this.p0[0]);}f5=this.lineWidth;h5=this.getLineColor();t4={pattern:this.pattern,lineWidth:f5};if((this.penDown || this.highlighted) && this.pattern == "none"){t4.pattern=m6P;}if(this.segment <= this.maxSegments){this.stx.plotLine(C4,o6,U3,Z4,h5,this.name,r6,T_,t4);}f3=this.fillColor;s_=[];if(this.points.length){r6.beginPath();for(var U_=1;U_ < this.points.length && U_ <= "4" >> 0;U_++){I_=this.stx.pixelFromTick(this.points[U_ - +"1"][0],T_.chart);K1=this.stx.pixelFromTick(this.points[U_][+"0"],T_.chart);l7=this.stx.pixelFromValueAdjusted(T_,this.points[U_ - ("1" >> 0)][+"0"],this.points[U_ - 1][1]);T7=this.stx.pixelFromValueAdjusted(T_,this.points[U_][0],this.points[U_]["1" | 0]);if(U_ == 1){s_.push(I_,l7);}s_.push(K1,T7);this.stx.plotLine(I_,K1,l7,T7,h5,this.name,r6,T_,t4);}if(this.points.length == "2" * 1 || this.points.length == 4){s_.push(o6,Z4);}if(this.points[2]){s_.push(this.stx.pixelFromTick(this.points[2][0],T_.chart),this.stx.pixelFromValueAdjusted(T_,this.points[2][0],this.points[2]["1" ^ 0]));}if(f3 && f3 != "auto" && !e5.isTransparent(f3)){for(var J5=0;J5 < s_.length;J5+=2){if(J5 === 0){r6.moveTo(s_["0" * 1],s_[1]);}r6.lineTo(s_[J5],s_[J5 + +"1"]);}r6.fillStyle=f3;r6.globalAlpha=0.2;r6.closePath();r6.fill();r6.globalAlpha=1;}};};e5.Drawing.gartley.prototype.lineIntersection=function(a$,H6,w_,x4){var J_,o_;J_=this.points;o_=this.stx.panels[this.panelName];if(J_.length != this.maxSegments + +"1" || !o_){return !({});}for(var I2=0;I2 < J_.length - 1;I2++){if(e5.Drawing.BaseTwoPoint.prototype.lineIntersection.call(this,a$,H6,w_,"segment",J_[I2],J_[I2 + ("1" | 0)])){return !!({});}}return !"1";};e5.Drawing.gartley.prototype.boxIntersection=function(Z5,P9,q2){var m9,y7,O3Y,y4b,N8P;if(!this.p0 || !this.p1){return !!0;}if(q2.x0 > Math.max(this.p0[0],this.p1[0]) || q2.x1 < Math.min(this.p0[+"0"],this.p1[0])){return ![];}m9=Math.min(this.p0["1" ^ 0],this.p1[1]);y7=Math.max(this.p0[1],this.p1[1]);for(var Y$=+"0";Y$ < this.points.length;Y$++){m9=Math.min(m9,this.points[Y$][1]);y7=Math.max(y7,this.points[Y$][1]);}O3Y=1208013339;y4b=-203657870;N8P=2;for(var V6S=1;g9BGt.l9L(V6S.toString(),V6S.toString().length,+"33775") !== O3Y;V6S++){if(q2.y1 >= y7 && q2.y0 > m9){return !!"1";}return !!0;}if(g9BGt.i7j(N8P.toString(),N8P.toString().length,54772) !== y4b){if(q2.y1 > y7 || q2.y0 >= m9){return !!"";}return !![];}if(q2.y1 > y7 || q2.y0 < m9){return !!"";}return !"";};e5.Drawing.gartley.prototype.reposition=function(q4,Z2,z9,J6){var p4,w9,Z$;if(!Z2){return;}p4=this.stx.panels[this.panelName];w9=Z2.tick - z9;Z2.tick=z9;Z$=Z2.value - J6;Z2.value=J6;if(Z2.action == "move"){this.pts=[];for(var x5=+"0";x5 < this.points.length;x5++){this.points[x5][0]-=w9;this.points[x5][1]-=Z$;g9BGt.X$L(0);this.setPoint(g9BGt.t1w("1",1),this.points[x5][0],this.points[x5][1],p4.chart);if(x5 && x5 < this.points.length - ("1" - 0)){this.pts.push(this.d1,this.tzo1,this.v1);}this.points[x5]=this.p1;}this.setPoint(0,this.points[0][0],this.points[0][1],p4.chart);this.render(q4);;}};e5.Drawing.gartley.prototype.configs=["color","fillColor","lineWidth",q81];e5.Drawing.gartley.prototype.adjust=function(){var e8;e8=this.stx.panels[this.panelName];g9BGt.c7b();if(!e8){return;}this.reconstructPoints();this.setPoint(0,this.d0,this.v0,e8.chart);this.points.unshift(this.p0);this.setPoint(1,this.d1,this.v1,e8.chart);this.points.push(this.p1);};e5.Drawing.gartley.prototype.reconstructPoints=function(){var a9,s3;a9=this.stx.panels[this.panelName];if(!a9){return;}this.points=[];for(var n7=0;n7 < this.pts.length;n7+=+"3"){s3=e5.strToDateTime(this.pts[n7]);s3.setMinutes(s3.getMinutes() + Number(this.pts[n7 + +"1"]) - s3.getTimezoneOffset());this.points.push([this.stx.tickFromDate(e5.yyyymmddhhmmssmmm(s3),a9.chart),this.pts[n7 + ("2" >> 0)]]);}};e5.Drawing.gartley.prototype.reconstruct=function(G5,V5){this.stx=G5;g9BGt.c7b();this.color=V5.col;this.fillColor=V5.fc;this.panelName=V5.pnl;this.pattern=V5.ptrn;this.lineWidth=V5.lw;this.d0=V5.d0;this.d1=V5.d1;this.tzo0=V5.tzo0;this.tzo1=V5.tzo1;this.v0=V5.v0;this.v1=V5.v1;this.pts=V5.pts.split(",");this.adjust();};e5.Drawing.gartley.prototype.serialize=function(){g9BGt.Z_e();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1,pts:this.pts.join(",")};};e5.Drawing.freeform=function(){var n25;n25="f";n25+="ree";n25+="for";n25+="m";this.name=n25;this.splineTension=0.3;this.dragToDraw=!!1;};e5.inheritsFrom(e5.Drawing.freeform,e5.Drawing.segment);e5.Drawing.freeform.prototype.measure=function(){};e5.Drawing.freeform.prototype.intersected=function(M3,F_,X2){g9BGt.c7b();if(X2.x0 > this.hiX || X2.x1 < this.lowX){return null;}if(X2.y1 > this.hiY || X2.y0 < this.lowY){return null;}this.highlighted=!![];return {action:"move",p0:e5.clone(this.p0),tick:M3,value:F_};};e5.Drawing.freeform.prototype.reposition=function(n0,j8,c1,U$){var d7,K2,v8;if(!j8){return;}d7=this.stx.panels[this.panelName];K2=j8.tick - c1;g9BGt.c7b();v8=j8.value - U$;if(j8.action == "move"){this.setPoint(0,j8.p0[+"0"] - K2,j8.p0[+"1"] - v8,d7.chart);this.adjust();this.render(n0);}};e5.Drawing.freeform.prototype.click=function(t8,t_,k8){g9BGt.Z_e();var R1_,m8,t$;R1_="au";R1_+="t";R1_+="o";m8=this.stx.panels[this.panelName];if(!m8){return;}if(this.penDown === !!""){this.copyConfig();this.startX=Math.round(this.stx.resolveX(this.stx.pixelFromTick(t_,m8.chart)));this.startY=Math.round(this.stx.resolveY(this.stx.pixelFromValueAdjusted(m8,t_,k8)));t$=this.stx.dateFromTick(t_,m8.chart,!!({}));this.d0=e5.yyyymmddhhmmssmmm(t$);this.tzo0=t$.getTimezoneOffset();this.v0=k8;this.p0=[e5.ChartEngine.crosshairX - this.startX,e5.ChartEngine.crosshairY - this.startY];this.nodes=[this.p0[0],this.p0[1]];this.pNodes=[this.p0];this.candleWidth=this.stx.layout.candleWidth;this.multiplier=m8.yAxis.multiplier;this.interval=this.stx.layout.interval;this.periodicity=this.stx.layout.periodicity;this.tempSplineTension=this.splineTension;this.splineTension=-1;document.body.style.cursor="pointer";this.penDown=!!"1";return !({});}this.penDown=!({});this.splineTension=this.tempSplineTension;document.body.style.cursor=R1_;return !!"1";};e5.Drawing.freeform.prototype.move=function(R4,x$,W8){var z5,v9;if(!this.penDown){return;}z5=this.stx.panels[this.panelName];v9=this.stx.dateFromTick(x$,z5.chart,!![]);this.d1=e5.yyyymmddhhmmssmmm(v9);this.tzo1=v9.getTimezoneOffset();this.v1=W8;this.p1=[e5.ChartEngine.crosshairX - this.startX,z5.yAxis.flipped?this.startY - e5.ChartEngine.crosshairY:e5.ChartEngine.crosshairY - this.startY];if(this.pNodes.length > 2){if(this.p1[0] == this.pNodes[this.pNodes.length - +"2"]["0" * 1] && this.p1[0] == this.pNodes[this.pNodes.length - 1][0]){this.pNodes.length--;this.nodes.length-=2;}else if(this.p1[1] == this.pNodes[this.pNodes.length - 2][1] && this.p1["1" * 1] == this.pNodes[this.pNodes.length - 1][1]){this.pNodes.length--;this.nodes.length-=2;}}this.nodes.push(this.p1["0" ^ 0],this.p1["1" | 0]);this.pNodes.push(this.p1);this.render(R4);return !!0;};e5.Drawing.freeform.prototype.intervalRatio=function(S_,j6,t2,f4,V2,r8){var V1U=g9BGt;V1U.c7b();var B4,Z25,h8I,A97,v$g,X0h,N$a,h2c,X7N,P5N,h$d;function w5(d_,B2){V1U.c7b();return 30;}B4=0;function y5(S9,U8){return +"5";}if(S_ == j6){B4=1;}else if(!isNaN(S_) && !isNaN(j6)){V1U.O90(23);B4=V1U.D8z(j6,S_);}else if(isNaN(S_)){Z25="da";Z25+="y";h8I="we";h8I+="ek";if(S_ == "month"){A97="w";A97+="e";A97+="ek";if(j6 == A97){B4=y5(V2,r8);}else if(j6 == "day"){B4=w5(V2,r8);}else if(!isNaN(j6)){B4=w5(V2,r8) * N$(V2,r8) / j6;}}else if(S_ == h8I){if(j6 == "month"){V1U.X$L(50);var I3L=V1U.D8z(2,3);B4=I3L / y5(V2,r8);}if(j6 == "day"){B4=k9(V2,r8);}else if(!isNaN(j6)){B4=k9(V2,r8) * N$(V2,r8) / j6;}}else if(S_ == Z25){v$g="we";v$g+="ek";if(j6 == v$g){V1U.O90(20);var n29=V1U.t1w(13,10,5,14);B4=n29 / k9(V2,r8);}else if(j6 == "month"){V1U.X$L(50);var c31=V1U.D8z(7,8);B4=c31 / w5(V2,r8);}else if(!isNaN(j6)){B4=N$(V2,r8) / j6;}}}else if(!isNaN(S_)){X0h=-554767280;N$a=-1911856279;h2c=2;for(var U90=1;V1U.i7j(U90.toString(),U90.toString().length,"61175" << 32) !== X0h;U90++){X7N="we";X7N+="e";X7N+="k";if(j6 != "month"){B4=S_ + w5(V2,r8) / N$(V2,r8);}else if(j6 === X7N){B4=S_ - k9(V2,r8) % N$(V2,r8);}else if(j6 !== "day"){B4=S_ % N$(V2,r8);}h2c+=2;}if(V1U.i7j(h2c.toString(),h2c.toString().length,49102) !== N$a){P5N="we";P5N+="ek";h$d="m";h$d+="on";h$d+="th";if(j6 == h$d){B4=S_ / (w5(V2,r8) * N$(V2,r8));}else if(j6 == P5N){B4=S_ / (k9(V2,r8) * N$(V2,r8));}else if(j6 == "day"){B4=S_ / N$(V2,r8);}}}function N$(n1,X_){if(e5.Market.Symbology.isForexSymbol(X_)){return 1440;}return 390;}function k9(h0,c6){var a50,m2v,M3W;a50=68362061;m2v=-836588982;M3W=2;for(var M74=1;V1U.l9L(M74.toString(),M74.toString().length,+"60311") !== a50;M74++){return 6;}if(V1U.l9L(M3W.toString(),M3W.toString().length,3295) !== m2v){return 5;}}V1U.O90(23);B4*=V1U.t1w(f4,t2);return B4;};e5.Drawing.freeform.prototype.render=function(G$){var S0k=g9BGt;var q5,C6,h$,i7,P0,n8,b3,F3,O7,w1,S5,U2;q5=this.stx.panels[this.panelName];if(!q5){return;}C6=this.intervalRatio(this.interval,this.stx.layout.interval,this.periodicity,this.stx.layout.periodicity,this.d0,q5.chart.symbol);if(C6 === 0){return;}h$=this.stx.layout.candleWidth / this.candleWidth;i7=q5.yAxis.multiplier / this.multiplier;this.setPoint(0,this.d0,this.v0,q5.chart);P0=this.stx.pixelFromTick(this.p0[0],q5.chart);n8=this.stx.pixelFromValueAdjusted(q5,this.p0[0],this.p0[1]);b3=[];F3=this.lineWidth;O7=this.getLineColor();w1={pattern:this.pattern,lineWidth:F3};for(var Y9=0;Y9 < this.pNodes.length;Y9++){S5=C6 * h$ * this.pNodes[Y9][0] + P0;S0k.X$L(50);var o2H=S0k.t1w(16,17);U2=i7 * this.pNodes[Y9][o2H];if(q5.yAxis.flipped){S0k.X$L(7);U2=S0k.D8z(U2,n8);}else {U2+=n8;}b3.push(S5,U2);}if(!b3.length){return;}S0k.Z_e();if(this.splineTension < +"0"){this.stx.connectTheDots(b3,O7,this.name,G$,q5,w1);}else {this.stx.plotSpline(b3,this.splineTension,O7,this.name,G$,!!1,w1);}};e5.Drawing.freeform.prototype.adjust=function(){var U1V=g9BGt;var v_,i1,M5,t7,G4,F5,h7,T2;v_=this.stx.panels[this.panelName];if(!v_){return;}i1=[this.nodes[0],this.nodes[1]];this.pNodes=[i1];this.lowX=this.nodes[0];U1V.O90(18);this.hiX=this.nodes[U1V.t1w("0",32)];this.lowY=this.nodes[1];this.hiY=this.nodes[+"1"];U1V.Z_e();for(var z8=2;z8 < this.nodes.length;z8+=2){U1V.X$L(1);M5=[this.nodes[z8],this.nodes[U1V.D8z(z8,1)]];this.pNodes.push(M5);this.lowX=Math.min(this.lowX,M5[0]);this.hiX=Math.max(this.hiX,M5[0]);this.lowY=Math.max(this.lowY,M5[1]);this.hiY=Math.min(this.hiY,M5[1]);}t7=this.intervalRatio(this.interval,this.stx.layout.interval,this.periodicity,this.stx.layout.periodicity,this.d0,v_.chart.symbol);if(t7 === ("0" ^ 0)){return;}G4=this.stx.layout.candleWidth / this.candleWidth;F5=v_.yAxis.multiplier / this.multiplier;this.setPoint(0,this.d0,this.v0,v_.chart);h7=this.stx.pixelFromTick(this.p0[0],v_.chart);T2=this.stx.pixelFromValueAdjusted(v_,this.p0[0],this.p0[1]);this.lowX=this.stx.tickFromPixel(Math.floor(t7 * G4 * this.lowX) + h7,v_.chart);this.hiX=this.stx.tickFromPixel(Math.ceil(t7 * G4 * this.hiX) + h7,v_.chart);if(v_.yAxis.flipped){this.lowY=this.stx.valueFromPixel(T2 - Math.floor(F5 * this.lowY),v_);this.hiY=this.stx.valueFromPixel(T2 - Math.ceil(F5 * this.hiY),v_);}else {this.lowY=this.stx.valueFromPixel(Math.floor(F5 * this.lowY) + T2,v_);this.hiY=this.stx.valueFromPixel(Math.ceil(F5 * this.hiY) + T2,v_);}};e5.Drawing.freeform.prototype.serialize=function(){g9BGt.Z_e();return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,cw:Number(this.candleWidth.toFixed(4)),mlt:Number(this.multiplier.toFixed(4)),d0:this.d0,tzo0:this.tzo0,v0:this.v0,inter:this.interval,pd:this.periodicity,nodes:this.nodes};};e5.Drawing.freeform.prototype.reconstruct=function(u2,B3){this.stx=u2;this.color=B3.col;this.panelName=B3.pnl;this.pattern=B3.ptrn;this.lineWidth=B3.lw;this.candleWidth=B3.cw;this.multiplier=B3.mlt;this.d0=B3.d0;this.tzo0=B3.tzo0;this.v0=B3.v0;this.interval=B3.inter;this.periodicity=B3.pd;this.nodes=B3.nodes;this.adjust();};e5.Drawing.callout=function(){this.name="callout";this.arr=[];this.w=0;this.h=0;this.padding=4;this.text="";this.ta=null;this.fontSize=0;this.font={};this.stemEntry="";this.defaultWidth=50;this.defaultHeight=10;g9BGt.c7b();;};e5.inheritsFrom(e5.Drawing.callout,e5.Drawing.annotation);e5.Drawing.callout.prototype.configs=["color","fillColor","lineWidth","pattern","font"];e5.Drawing.callout.prototype.copyConfig=function(b0){e5.Drawing.copyConfig(this,b0);this.borderColor=this.color;};e5.Drawing.callout.prototype.move=function(h_,y6,L0){if(!this.penDown){return;}this.copyConfig();g9BGt.Z_e();this.p0=[y6,L0];this.render(h_);};e5.Drawing.callout.prototype.onChange=function(J0){g9BGt.Z_e();var H5,E2,g3;H5=this.stx.panels[this.panelName];if(!H5){return;}E2=J0.target;this.w=E2.clientWidth;this.h=E2.clientHeight;g3=this.context || this.stx.chart.tempCanvas.context;e5.clearCanvas(g3.canvas,this.stx);this.render(g3);this.edit(g3);};e5.Drawing.callout.prototype.render=function(P2){var y$C=g9BGt;var B9k,H7k,S0,U1,R0,a0,N7,O8,E6,t9,z3,j$,A4,b4,W6,Q1,V0,G1,X7s,m5I,p7I,G0I,c8;B9k="a";B9k+="lphabeti";B9k+="c";H7k="s";H7k+="tx_highlig";H7k+="ht_vector";this.context=P2;S0=this.stx.panels[this.panelName];if(!S0){return;}U1=this.stx.pixelFromTick(this.p0[0],S0.chart);R0=this.stx.pixelFromValueAdjusted(S0,this.p0[0],this.p0[1]);if(isNaN(R0)){return;}P2.font=this.fontString;P2.textBaseline="top";a0=U1;N7=R0;y$C.X$L(51);var E6M=y$C.D8z(217,1,15,15,10);O8=this.w / E6M;y$C.O90(31);var m0l=y$C.t1w(9,229,10,24);E6=this.h / m0l;if(this.penDown){O8=this.defaultWidth;E6=this.defaultHeight;if(!E6){E6=this.fontSize;}}t9=this.lineWidth;if(!t9){t9=1.1;}z3=this.color;if(z3 == "auto" || e5.isTransparent(z3)){z3=this.stx.defaultColor;}j$=this.borderColor;if(j$ == "auto" || e5.isTransparent(j$)){j$=this.stx.defaultColor;}if(this.highlighted){j$=this.stx.getCanvasColor(H7k);}V0=Math.min(Math.min(O8,E6) / 2,8);if(this.stem){if(this.stem.t){A4=this.stx.pixelFromTick(this.stem.t);W6=this.stx.pixelFromValueAdjusted(S0,this.stem.t,this.stem.v);}else if(this.stem.x){A4=a0;W6=N7;a0+=this.stem.x;N7+=this.stem.y;}G1="";if(A4 >= a0 + O8){y$C.O90(1);b4=y$C.t1w(a0,O8);G1=("808" - 0,214.31) == 7160?4424 > (5578,8530)?"j":("K","u"):"r";}else if(A4 > a0 - O8 && A4 < a0 + O8){b4=a0;G1="c";}else if(A4 <= a0 - O8){y$C.O90(7);b4=y$C.t1w(O8,a0);G1="l";}if(W6 >= N7 + E6){y$C.X$L(1);Q1=y$C.D8z(N7,E6);G1+=1990 <= 1510?2.83e+3:"b";}else if(W6 > N7 - E6 && W6 < N7 + E6){Q1=N7;G1+=1110 <= (4800,5190)?("1520" ^ 0) !== (7070,8440)?"m":!!0:8.74e+3;}else if(W6 <= N7 - E6){y$C.X$L(7);Q1=y$C.t1w(E6,N7);G1+=3780 == (8400,716.15)?899.23:(939.87,998) <= 7079?"t":(1150,3350) > 6734?0xe5d:3.67e+3;}this.stemEntry=G1;if(G1 != "cm"){A4=Math.round(A4);b4=Math.round(b4);W6=Math.round(W6);Q1=Math.round(Q1);}}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight_bg",P2);}else {if(this.fillColor){P2.fillStyle=this.fillColor;P2.globalAlpha=0.4;}else if(this.stem){P2.fillStyle=this.stx.containerColor;}}P2.strokeStyle=j$;if(P2.setLineDash){P2.setLineDash(e5.borderPatternToArray(t9,this.pattern));P2.lineDashOffset=0;;}if(j$){X7s="l";X7s+="m";m5I="r";m5I+="b";P2.beginPath();P2.lineWidth=t9;y$C.O90(5);P2.moveTo(y$C.D8z(a0,V0,O8),y$C.D8z(E6,N7,y$C.X$L(7)));if(this.stemEntry != "rt"){y$C.X$L(1);P2.quadraticCurveTo(y$C.t1w(a0,O8),y$C.t1w(E6,N7,y$C.O90(7)),y$C.D8z(a0,O8,y$C.X$L(1)),y$C.D8z(V0,E6,N7,y$C.O90(9)));;}else {P2.lineTo(A4,W6);y$C.O90(1);P2.lineTo(y$C.t1w(a0,O8),y$C.D8z(V0,E6,N7,y$C.O90(9)));}y$C.X$L(1);P2.lineTo(y$C.D8z(a0,O8),y$C.t1w(2,V0,N7,y$C.X$L(52)));if(this.stemEntry == "rm"){P2.lineTo(A4,W6);}y$C.O90(1);P2.lineTo(y$C.D8z(a0,O8),y$C.t1w(2,V0,N7,y$C.X$L(53)));y$C.X$L(1);P2.lineTo(y$C.D8z(a0,O8),y$C.t1w(N7,V0,E6,y$C.O90(5)));if(this.stemEntry != m5I){y$C.X$L(1);P2.quadraticCurveTo(y$C.t1w(a0,O8),y$C.D8z(N7,E6,y$C.X$L(1)),y$C.D8z(a0,V0,O8,y$C.O90(5)),y$C.D8z(N7,E6,y$C.X$L(1)));;}else {P2.lineTo(A4,W6);y$C.X$L(5);P2.lineTo(y$C.t1w(a0,V0,O8),y$C.t1w(N7,E6,y$C.X$L(1)));}y$C.O90(53);P2.lineTo(y$C.D8z(2,V0,a0),y$C.t1w(N7,E6,y$C.O90(1)));if(this.stemEntry == "cb"){P2.lineTo(A4,W6);}y$C.O90(52);P2.lineTo(y$C.D8z(2,V0,a0),y$C.D8z(N7,E6,y$C.O90(1)));y$C.O90(9);P2.lineTo(y$C.t1w(V0,O8,a0),y$C.D8z(N7,E6,y$C.X$L(1)));if(this.stemEntry != "lb"){y$C.X$L(7);P2.quadraticCurveTo(y$C.D8z(O8,a0),y$C.t1w(N7,E6,y$C.O90(1)),y$C.t1w(O8,a0,y$C.O90(7)),y$C.D8z(N7,V0,E6,y$C.X$L(5)));;}else {P2.lineTo(A4,W6);y$C.X$L(7);P2.lineTo(y$C.t1w(O8,a0),y$C.t1w(N7,V0,E6,y$C.O90(5)));}y$C.X$L(7);P2.lineTo(y$C.D8z(O8,a0),y$C.D8z(2,V0,N7,y$C.O90(53)));if(this.stemEntry == X7s){P2.lineTo(A4,W6);}y$C.O90(7);P2.lineTo(y$C.t1w(O8,a0),y$C.t1w(2,V0,N7,y$C.X$L(52)));y$C.X$L(7);P2.lineTo(y$C.D8z(O8,a0),y$C.t1w(V0,E6,N7,y$C.X$L(9)));if(this.stemEntry != "lt"){y$C.X$L(7);P2.quadraticCurveTo(y$C.t1w(O8,a0),y$C.t1w(E6,N7,y$C.O90(7)),y$C.t1w(V0,O8,a0,y$C.O90(9)),y$C.t1w(E6,N7,y$C.X$L(7)));;}else {P2.lineTo(A4,W6);y$C.O90(9);P2.lineTo(y$C.D8z(V0,O8,a0),y$C.t1w(E6,N7,y$C.O90(7)));}y$C.X$L(54);P2.lineTo(y$C.D8z("2",V0,a0),y$C.D8z(E6,N7,y$C.X$L(7)));if(this.stemEntry == "ct"){P2.lineTo(A4,W6);}y$C.X$L(53);P2.lineTo(y$C.D8z(2,V0,a0),y$C.D8z(E6,N7,y$C.X$L(7)));y$C.X$L(5);P2.lineTo(y$C.t1w(a0,V0,O8),y$C.D8z(E6,N7,y$C.O90(7)));P2.fill();P2.globalAlpha=1;if(this.pattern != "none"){P2.stroke();}}if(this.highlighted){p7I="stx_annot";p7I+="ation_h";p7I+="ighlight";this.stx.canvasColor(p7I,P2);}else {P2.fillStyle=z3;}N7+=this.padding;if(!this.ta){for(var G3=0;G3 < this.arr.length;G3++){P2.fillText(this.arr[G3],a0 - O8 + this.padding,N7 - E6);N7+=this.fontSize;}}P2.textBaseline=B9k;if(this.highlighted && !this.noHandles){G0I="p";G0I+="0";c8=this.highlighted == G0I?!![]:!!"";this.littleCircle(P2,A4,W6,c8);};};e5.Drawing.callout.prototype.click=function(Y1,l_,x8){var N5;if(this.stx.overXAxis || this.stx.overYAxis){return;}N5=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,l_,x8,N5.chart);if(!this.penDown){this.stem={d:this.d0,v:this.v0};this.penDown=!!"1";this.adjust();return !({});}this.adjust();this.edit(Y1);this.penDown=!!"";return !({});};e5.Drawing.callout.prototype.reposition=function(V6,l4,B1,b$){var P7,m_,B5,V2w,U1F,R5o;if(!l4){return;}P7=this.stx.panels[this.panelName];m_=l4.tick - B1;B5=l4.value - b$;g9BGt.c7b();if(l4.stem){if(l4.action == "drag"){V2w=-272425528;U1F=-1491687497;R5o=+"2";for(var g_5=1;g9BGt.i7j(g_5.toString(),g_5.toString().length,52467) !== V2w;g_5++){this.stem={d:this.stx.dateFromTick(B1,P7.chart,![]),v:b$};R5o+=2;}if(g9BGt.i7j(R5o.toString(),R5o.toString().length,4843) !== U1F){this.stem={d:this.stx.dateFromTick(B1,P7.chart,!!0),v:b$};}this.stem={d:this.stx.dateFromTick(B1,P7.chart,!0),v:b$};}else if(l4.action == "move"){this.setPoint(0,l4.p0[0] - m_,l4.p0[1] - B5,P7.chart);this.stem={d:this.stx.dateFromTick(this.stx.tickFromDate(l4.stem.d,P7.chart) - m_),v:l4.stem.v - B5};}this.adjust();}else {this.setPoint(0,l4.p0[0] - m_,l4.p0["1" * 1] - B5,P7.chart);}this.render(V6);};e5.Drawing.callout.prototype.lineIntersection=function(q7,Q2,a7,g_){var u4x=g9BGt;var C7,f$,i5,E0,z2,P3,u_,b8,k_,q6,s4,b6;C7=this.stx.panels[this.panelName];f$=this.stem;u4x.c7b();i5=this.p0;E0=this.stx;if(!i5 || !f$ || !C7){return ![];}z2=f$.t || this.stx.tickFromDate(f$.d,C7.chart);P3={x0:i5[0],x1:z2,y0:i5[1],y1:f$.v};u_=e5.convertBoxToPixels(E0,this.panelName,P3);b8=u_.x0;k_=u_.y0;q6=u_.x1;s4=u_.y1;if(typeof this.stemEntry == "string"){if(this.stemEntry.indexOf("l") > -1){u4x.X$L(55);var U5a=u4x.D8z(2,2,2);b8-=this.w / U5a;}else if(this.stemEntry.indexOf("r") > -1){u4x.X$L(56);var N3U=u4x.t1w(12,718,20,3);b8+=this.w / N3U;}if(this.stemEntry.indexOf(741.18 > (475.66,8410)?0xc06:"t") > -1){u4x.O90(9);var b5P=u4x.t1w(4,2,0);k_-=this.h / b5P;}else if(this.stemEntry.indexOf("b") > -1){u4x.O90(7);var c2t=u4x.t1w(32,34);k_+=this.h / c2t;}}b6=e5.convertBoxToPixels(E0,this.panelName,a7);return e5.boxIntersects(b6.x0,b6.y0,b6.x1,b6.y1,b8,k_,q6,s4,g_);};e5.Drawing.callout.prototype.intersected=function(l$,N1,P$){var Y3r=g9BGt;var g1,O8t,a_,u3,A3,w7,I7,l2o,V6t,s4Q;g1=this.stx.panels[this.panelName];if(!this.p0){return null;}if(this.pointIntersection(this.stem.t,this.stem.v,P$)){O8t="d";O8t+="r";O8t+="a";O8t+="g";this.highlighted="p0";return {action:O8t,stem:!""};}Y3r.O90(57);var q88=Y3r.t1w(12,2,4);a_=this.stx.pixelFromTick(this.p0[0],g1.chart) - this.w / q88;Y3r.O90(58);var R59=Y3r.D8z(7,7,16,19,9);u3=this.stx.pixelFromValueAdjusted(g1,this.p0[0],this.p0["1" ^ 0]) - this.h / R59;A3=a_ + this.w;w7=u3 + this.h;if(this.stem && this.stem.x){a_+=this.stem.x;A3+=this.stem.x;u3+=this.stem.y;w7+=this.stem.y;}I7=this.stx.pixelFromTick(l$,g1.chart);l2o=this.stx.pixelFromValueAdjusted(g1,l$,N1);Y3r.Z_e();if(I7 + P$.r >= a_ && I7 - P$.r <= A3 && l2o + P$.r >= u3 && l2o - P$.r <= w7){this.highlighted=!0;return {p0:e5.clone(this.p0),tick:l$,value:N1};}V6t=this.lineIntersection(l$,N1,P$,"segment");if(V6t){s4Q="m";s4Q+="o";s4Q+="ve";this.highlighted=!![];return {action:s4Q,stem:e5.clone(this.stem),p0:e5.clone(this.p0),tick:l$,value:N1};}return null;};e5.Drawing.fibonacci=function(){this.name="fibonacci";g9BGt.Z_e();this.configurator="fibonacci";};e5.inheritsFrom(e5.Drawing.fibonacci,e5.Drawing.BaseTwoPoint);e5.Drawing.fibonacci.mapping={trend:715 == 565.78?"G":(3026,9870) > 7806?"t":649.31,color:"c",parameters:7340 > (9469,1800)?"p":(2800,828.28) < (163.5,591.13)?(!![],0x1a2d):84.80,pattern:r3P,opacity:(905,132.88) !== 9533?"o":(!({}),"m"),lineWidth:L82,level:"l",extendLeft:("3010" - 0,5220) > (525.76,9938)?("V",0x1ab8):"e",printLevels:Z83,printValues:T_$,timezone:R33,display:(5920,7274) <= "275.89" - 0?1335 < 2495?"659.2" * 1 == 505.72?7.29e+3:(2.68e+3,!!({})):(+"0x1bb4",935.39):"d"};e5.Drawing.fibonacci.prototype.recommendedLevels=[-0.618,-0.382,0,0.382,0.5,0.618,1,1.382,1.618];e5.Drawing.fibonacci.prototype.configs=["color","fillColor","lineWidth",J0b,"parameters"];e5.Drawing.fibonacci.prototype.initializeSettings=function(Y1l){var Z_Q,P7K;g9BGt.c7b();Z_Q=this.recommendedLevels;if(Z_Q && !Y1l.currentVectorParameters.fibonacci.fibsAlreadySet){P7K=Y1l.currentVectorParameters.fibonacci.fibs;for(var d$c=0;d$c < P7K.length;d$c++){delete P7K[d$c].display;for(var Y_N=0;Y_N < Z_Q.length;Y_N++){if(P7K[d$c].level == Z_Q[Y_N]){P7K[d$c].display=!!({});}}}}};e5.Drawing.fibonacci.prototype.setOuter=function(){var l6y=g9BGt;var U1M,s5P,N09,N4T,e0d,U3R,d6C,t0H,v3V,f21,s0n,r7d,J99,F4d;U1M=this.stx;s5P=U1M.panels[this.panelName];if(!s5P){return;}N09=Math.max(this.p0["1" - 0],this.p1[1]);N4T=Math.min(this.p0[1],this.p1["1" >> 0]);l6y.X$L(7);e0d=l6y.D8z(N4T,N09);this.outer={p0:e5.clone(this.p0),p1:e5.clone(this.p1)};U3R=U1M.pixelFromValueAdjusted(s5P,this.p0[0],this.p0[1]);d6C=U1M.pixelFromValueAdjusted(s5P,this.p1[0],this.p1[1]);t0H=U1M.pixelFromTick(this.p0[0],s5P.chart);v3V=U1M.pixelFromTick(this.p1[0],s5P.chart);l6y.X$L(35);f21=l6y.D8z(0,"0");s0n=1;for(var k7r=0;k7r < this.parameters.fibs.length;k7r++){r7d=this.parameters.fibs[k7r];if(r7d.level >= f21 && r7d.level <= s0n || !r7d.display)continue;J99=U1M.pixelFromValueAdjusted(s5P,this.p0[0],d6C < U3R?N09 - e0d * r7d.level:N4T + e0d * r7d.level);F4d=e5.xIntersection({x0:t0H,x1:v3V,y0:U3R,y1:d6C},J99);if(r7d.level < f21){f21=r7d.level;this.outer.p1[1]=U1M.valueFromPixel(J99,s5P);this.outer.p1[0]=U1M.tickFromPixel(F4d,s5P.chart);}else if(r7d.level > s0n){s0n=r7d.level;this.outer.p0[1]=U1M.valueFromPixel(J99,s5P);this.outer.p0[+"0"]=U1M.tickFromPixel(F4d,s5P.chart);}}};e5.Drawing.fibonacci.prototype.click=function(g4y,w$f,t1h){var n3g,H8E,F$c,C8H;n3g=this.stx.panels[this.panelName];if(!n3g){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,w$f,t1h,n3g.chart);H8E=791436946;F$c=-2060017728;C8H=2;for(var m24=1;g9BGt.i7j(m24.toString(),m24.toString().length,83001) !== H8E;m24++){this.penDown=!!({});return ![];}if(g9BGt.l9L(C8H.toString(),C8H.toString().length,46579) !== F$c){this.penDown=!"1";return !![];}}if(this.accidentalClick(w$f,t1h)){return this.dragToDraw;}g9BGt.Z_e();this.setPoint(1,w$f,t1h,n3g.chart);this.setOuter();this.parameters=e5.clone(this.parameters);this.penDown=!1;return !!1;;};e5.Drawing.fibonacci.prototype.render=function(X5N){var N4B=g9BGt;var F5M,V1O,g9J,g0V,H5_,N18,G5O,e$4,B54,M2Z,f9G,a0a,c75,w_5,x0n,j0u,Z18,o5Q,f79,H1k,K6Z,I8H,T1g,e$S,a96,L7P,g8R,L2C,l1D,O7h,M_N,w$W,u6z,h1z,S5z,i8J,c05,S1J;F5M="sol";F5M+="i";F5M+="d";V1O=this.stx.panels[this.panelName];if(!V1O){return;}g9J=V1O.yAxis;if(!this.p1){return;}g0V=Math.max(this.p0[+"1"],this.p1[1]);H5_=Math.min(this.p0[1],this.p1[1]);N18=g9J.flipped?H5_ - g0V:g0V - H5_;G5O=this.stx.pixelFromTick(this.p0[0],V1O.chart);e$4=this.stx.pixelFromTick(this.p1[0],V1O.chart);B54=this.stx.pixelFromValueAdjusted(V1O,this.p0[0],this.p0[1]);M2Z=this.stx.pixelFromValueAdjusted(V1O,this.p1[0],this.p1[+"1"]);f9G=Math.min(M2Z,B54);a0a=Math.max(M2Z,B54);N4B.X$L(7);c75=N4B.t1w(f9G,a0a);N4B.X$L(59);w_5=N4B.D8z(B54,M2Z,0,G5O,e$4);x0n={color:"auto",parameters:{pattern:F5M,opacity:0.25,lineWidth:1}};if(!this.parameters.trend){this.parameters.trend=x0n;}j0u=this.getLineColor(this.parameters.trend.color);X5N.textBaseline="middle";this.stx.canvasFont("stx_yaxis",X5N);N4B.O90(1);var R4q=N4B.t1w(4,6);N4B.c7b();Z18=X5N.measureText("161.8%").width + R4q;o5Q=Number.MAX_VALUE;f79=Number.MAX_VALUE;N4B.O90(60);var E7f=N4B.t1w(41,6,7);H1k=Number.MAX_VALUE * E7f;N4B.O90(61);var x3M=N4B.t1w(3,36,20,18);K6Z=Number.MAX_VALUE * x3M;I8H=this.color;if(I8H == "auto" || e5.isTransparent(I8H)){I8H=this.stx.defaultColor;}this.rays=[];for(var K5k=0;K5k < this.parameters.fibs.length;K5k++){T1g="l";T1g+="e";T1g+="f";T1g+="t";X5N.textAlign=T1g;X5N.fillStyle=I8H;e$S=this.parameters.fibs[K5k];if(!e$S.display)continue;a96=this.stx.pixelFromValueAdjusted(V1O,this.p0["0" * 1],M2Z < B54?g0V - N18 * e$S.level:H5_ + N18 * e$S.level);L7P=e5.xIntersection({x0:G5O,x1:e$4,y0:B54,y1:M2Z},a96);g8R=this.parameters.extendLeft?0:L7P;L2C=V1O.left + V1O.width;if(this.parameters.printLevels){N4B.O90(62);var F5U=N4B.D8z(1,11,3,1,2);N4B.O90(63);var b_a=N4B.D8z(9335,19,1054853,3,6);l1D=Math.round(e$S.level * +"1000") / F5U + ("1592" - 0 < (+"101.38",b_a)?"%":!1);L2C-=Z18;if(this.parameters.printValues){O7h="s";O7h+="tx_yaxis";X5N.fillStyle=I8H;this.stx.canvasFont(O7h,X5N);;}if(L2C < g8R){X5N.textAlign="right";}X5N.fillText(l1D,L2C,a96);if(L2C < g8R){L2C+=5;}else {L2C-=5;}}if(this.parameters.printValues){if(L7P < V1O.width){M_N=this.stx.transformedPriceFromPixel(a96,V1O);if(g9J.priceFormatter){M_N=g9J.priceFormatter(this.stx,V1O,M_N);}else {M_N=this.stx.formatYAxisPrice(M_N,V1O);}if(X5N == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(V1O,M_N,a96,I8H,null,X5N);if(X5N == this.stx.chart.context){this.stx.startClip(V1O.name);}}}w$W=e$S.color;if(w$W == "auto" || e5.isTransparent(w$W)){w$W=this.color;}if(w$W == "auto" || e5.isTransparent(w$W)){w$W=this.stx.defaultColor;}u6z=e$S.color;if(u6z == "auto" || e5.isTransparent(u6z)){u6z=this.fillColor;}if(u6z == "auto" || e5.isTransparent(u6z)){u6z=this.stx.defaultColor;}X5N.fillStyle=u6z;h1z=e5.clone(e$S.parameters);if(this.highlighted){h1z.opacity=+"1";}this.stx.plotLine(g8R,L2C,a96,a96,this.highlighted?j0u:w$W,"segment",X5N,V1O,h1z);this.rays.push([[g8R,a96],[L2C,a96]]);X5N.globalAlpha=+"0.05";X5N.beginPath();X5N.moveTo(L2C,a96);X5N.lineTo(g8R,a96);if(g8R){X5N.lineTo(e$4,M2Z);}else {X5N.lineTo(g8R,M2Z);}X5N.lineTo(L2C,M2Z);if(typeof u6z != "undefined"){X5N.fill();}X5N.globalAlpha=1;if(a96 < f79){o5Q=L7P;f79=a96;}if(a96 > K6Z){H1k=L7P;K6Z=a96;}}for(var A0i=+"0";A0i <= 1;A0i++){S5z=w_5?a0a - c75 * A0i:f9G + c75 * A0i;S5z=Math.round(S5z);if(S5z < f79){o5Q=e5.xIntersection({x0:G5O,x1:e$4,y0:B54,y1:M2Z},S5z);f79=S5z;}if(S5z > K6Z){H1k=e5.xIntersection({x0:G5O,x1:e$4,y0:B54,y1:M2Z},S5z);K6Z=S5z;}}i8J=e5.clone(this.parameters.trend.parameters);if(this.highlighted){i8J.opacity=+"1";}this.stx.plotLine(o5Q,H1k,f79,K6Z,j0u,"segment",X5N,V1O,i8J);if(this.highlighted){c05=this.highlighted == "p0"?!![]:![];S1J=this.highlighted == "p1"?!!1:!({});this.littleCircle(X5N,G5O,B54,c05);this.littleCircle(X5N,e$4,M2Z,S1J);}};e5.Drawing.fibonacci.prototype.reposition=function(Z_C,p$4,V5x,z79){if(!p$4){return;}e5.Drawing.BaseTwoPoint.prototype.reposition.apply(this,arguments);g9BGt.Z_e();this.adjust();};e5.Drawing.fibonacci.prototype.intersected=function(z9y,D9q,w2s){var i2n,i0s,t47,A96,c5m,Q5_,c0i;i2n=this.p0;i0s=this.p1;if(!i2n || !i0s){return null;}t47={0:i2n,1:i0s};for(var t$C in t47){if(this.pointIntersection(t47[t$C][+"0"],t47[t$C][1],w2s)){g9BGt.X$L(1);this.highlighted=g9BGt.D8z((1910,6969) !== (3582,799.73)?"p":9194 === (183.43,"2773" | 84)?(215.54,"4.83e+3" | 0):916.14 <= (1590,+"190.19")?!!({}):(7.63e+3,![]),t$C);return {action:"drag",point:"p" + t$C};}}A96=this.outer;c5m=this.rays;Q5_=A96 && this.lineIntersection(z9y,D9q,w2s,"segment",A96.p0,A96.p1);if(!Q5_){for(var m1e=0;m1e < c5m.length;m1e++){if(this.lineIntersection(z9y,D9q,w2s,"ray",c5m[m1e][0],c5m[m1e][1],!![])){Q5_=!!"1";break;}}}if(Q5_){c0i="m";c0i+="o";c0i+="v";c0i+="e";this.highlighted=!0;return {action:c0i,p0:e5.clone(i2n),p1:e5.clone(i0s),tick:z9y,value:D9q};}return null;};e5.Drawing.fibonacci.prototype.reconstruct=function(B_v,x9R){x9R=e5.replaceFields(x9R,e5.reverseObject(e5.Drawing.fibonacci.mapping));this.stx=B_v;this.parameters=x9R.parameters;if(!this.parameters){this.parameters=e5.clone(this.stx.currentVectorParameters.fibonacci);}this.color=x9R.col;this.fillColor=x9R.fc;this.panelName=x9R.pnl;this.d0=x9R.d0;this.d1=x9R.d1;this.d2=x9R.d2;this.tzo0=x9R.tzo0;this.tzo1=x9R.tzo1;this.tzo2=x9R.tzo2;this.v0=x9R.v0;this.v1=x9R.v1;this.v2=x9R.v2;this.adjust();};e5.Drawing.fibonacci.prototype.adjust=function(){var W5P;g9BGt.Z_e();W5P=this.stx.panels[this.panelName];if(!W5P){return;}this.setPoint(+"0",this.d0,this.v0,W5P.chart);this.setPoint(1,this.d1,this.v1,W5P.chart);this.setOuter();};e5.Drawing.fibonacci.prototype.serialize=function(){g9BGt.Z_e();var V4j;V4j={name:this.name,parameters:this.parameters,pnl:this.panelName,col:this.color,fc:this.fillColor,d0:this.d0,d1:this.d1,d2:this.d2,tzo0:this.tzo0,tzo1:this.tzo1,tzo2:this.tzo2,v0:this.v0,v1:this.v1,v2:this.v2};return e5.replaceFields(V4j,e5.Drawing.fibonacci.mapping);};e5.Drawing.retracement=function(){g9BGt.Z_e();this.name="retracement";};e5.inheritsFrom(e5.Drawing.retracement,e5.Drawing.fibonacci);e5.Drawing.fibprojection=function(){g9BGt.Z_e();this.name="fibprojection";this.dragToDraw=![];this.p2=null;};e5.inheritsFrom(e5.Drawing.fibprojection,e5.Drawing.fibonacci);e5.Drawing.fibprojection.prototype.recommendedLevels=[0,+"0.618",1,1.272,1.618,2.618,+"4.236"];e5.Drawing.fibprojection.prototype.click=function(u5i,T9N,I0J){var f9L;f9L=this.stx.panels[this.panelName];if(!f9L){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,T9N,I0J,f9L.chart);this.penDown=!!1;return !({});}if(this.accidentalClick(T9N,I0J)){this.stx.undo();return !!1;}if(this.p2 !== null){this.setPoint(2,this.p2[0],this.p2[1],f9L.chart);this.parameters=e5.clone(this.parameters);return !![];}this.setPoint(1,T9N,I0J,f9L.chart);this.p2=[this.p1[0],this.p1[1]];return !1;;};e5.Drawing.fibprojection.prototype.render=function(B2j){var c1B=g9BGt;var Q8w,H_V,I8G,W9H,A3l,b77,e96,s4o,t5J,f5e,z8F,L$Z,T4z,L6I,Y8K,c2Q,m8W,T_W,k6G,b2U,J7F,K5Y,D2d,Z0L,Y75,e7H,B5Y,W4z,m5M,Z0m,u01,o$9,h5E,n_V,z$V;Q8w="segmen";Q8w+="t";H_V="m";H_V+="i";H_V+="ddl";H_V+="e";I8G="s";I8G+="ol";I8G+="i";I8G+="d";W9H=this.stx.panels[this.panelName];if(!W9H){return;}A3l=W9H.yAxis;if(!this.p1){return;}c1B.O90(60);var K1L=c1B.t1w(37,3,12);c1B.O90(5);var Y37=c1B.t1w(3,12,10);b77=this.p1[K1L] - this.p0["1" | Y37];e96=this.stx.pixelFromTick(this.p0[0],W9H.chart);s4o=this.stx.pixelFromTick(this.p1[0],W9H.chart);t5J=this.stx.pixelFromValueAdjusted(W9H,this.p0[0],this.p0["1" - 0]);f5e=this.stx.pixelFromValueAdjusted(W9H,this.p1[0],this.p1[1]);z8F=null;L$Z=null;if(this.p2){z8F=this.stx.pixelFromTick(this.p2[+"0"],W9H.chart);L$Z=this.stx.pixelFromValueAdjusted(W9H,this.p2[0],this.p2[1]);}T4z={color:"auto",parameters:{pattern:I8G,opacity:0.25,lineWidth:1}};if(!this.parameters.trend){this.parameters.trend=T4z;}L6I=this.getLineColor(this.parameters.trend.color);B2j.textBaseline=H_V;this.stx.canvasFont("stx_yaxis",B2j);c1B.X$L(49);var J1$=c1B.D8z(2,11,1,3);Y8K=B2j.measureText("161.8%").width + J1$;c2Q=this.color;if(c2Q == "auto" || e5.isTransparent(c2Q)){c2Q=this.stx.defaultColor;}if(this.p2){this.rays=[];for(var Q2a=0;Q2a < this.parameters.fibs.length;Q2a++){m8W="unde";m8W+="fined";T_W="seg";T_W+="me";T_W+="nt";k6G="a";k6G+="u";k6G+="t";k6G+="o";b2U="a";b2U+="u";b2U+="t";b2U+="o";J7F="l";J7F+="e";J7F+="ft";B2j.textAlign=J7F;B2j.fillStyle=c2Q;K5Y=this.parameters.fibs[Q2a];if(!K5Y.display)continue;D2d=this.stx.pixelFromValueAdjusted(W9H,this.p2[0],this.p2[1] + b77 * K5Y.level);Z0L=e5.xIntersection({x0:e96,x1:s4o,y0:t5J,y1:f5e},D2d);Y75=this.parameters.extendLeft?0:e96;e7H=W9H.left + W9H.width;if(this.parameters.printLevels){c1B.X$L(64);var w8k=c1B.t1w(67,11,263,10,10);c1B.O90(7);var y_L=c1B.t1w(7,17);c1B.O90(65);var G9z=c1B.t1w(17,341,342,20);c1B.O90(7);var V9x=c1B.t1w(6,9035);c1B.X$L(66);var f_G=c1B.D8z(7,7890,15790,22106);c1B.O90(67);var K5l=c1B.t1w(144080,16,7566,20);c1B.O90(68);var N6L=c1B.t1w(8,17,4676,21);c1B.X$L(49);var v1E=c1B.D8z(395,6326,1583,3);c1B.O90(7);var o$_=c1B.t1w(9,5045);B5Y=Math.round(K5Y.level * w8k) / y_L + ("267.26" - 0 != (G9z,385.89)?"%":(590.25,"530.81" - 0) > V9x?f_G:8580 >= (K5l,N6L)?(v1E,o$_):!!"1");e7H-=Y8K;if(this.parameters.printValues){B2j.fillStyle=c2Q;this.stx.canvasFont("stx_yaxis",B2j);;}if(e7H < Y75){B2j.textAlign="right";}B2j.fillText(B5Y,e7H,D2d);if(e7H < Y75){e7H+=5;}else {e7H-=5;}}if(this.parameters.printValues){if(Z0L < W9H.width){W4z=this.stx.transformedPriceFromPixel(D2d,W9H);if(A3l.priceFormatter){W4z=A3l.priceFormatter(this.stx,W9H,W4z);}else {W4z=this.stx.formatYAxisPrice(W4z,W9H);}if(B2j == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(W9H,W4z,D2d,c2Q,null,B2j);if(B2j == this.stx.chart.context){this.stx.startClip(W9H.name);}}}m5M=K5Y.color;if(m5M == b2U || e5.isTransparent(m5M)){m5M=this.color;}if(m5M == "auto" || e5.isTransparent(m5M)){m5M=this.stx.defaultColor;}Z0m=K5Y.color;if(Z0m == k6G || e5.isTransparent(Z0m)){Z0m=this.fillColor;}if(Z0m == "auto" || e5.isTransparent(Z0m)){Z0m=this.stx.defaultColor;}B2j.fillStyle=Z0m;u01=e5.clone(K5Y.parameters);if(this.highlighted){u01.opacity=1;}this.stx.plotLine(Y75,e7H,D2d,D2d,this.highlighted?L6I:m5M,T_W,B2j,W9H,u01);this.rays.push([[Y75,D2d],[e7H,D2d]]);B2j.globalAlpha=0.05;B2j.beginPath();B2j.moveTo(e7H,D2d);B2j.lineTo(Y75,D2d);if(Y75){B2j.lineTo(e96,L$Z);}else {B2j.lineTo(Y75,L$Z);}B2j.lineTo(e7H,L$Z);if(typeof Z0m != m8W){B2j.fill();}B2j.globalAlpha=1;}}o$9=e5.clone(this.parameters.trend.parameters);if(this.highlighted){c1B.O90(7);o$9.opacity=c1B.t1w(0,"1");}this.stx.plotLine(e96,s4o,t5J,f5e,L6I,"segment",B2j,W9H,o$9);if(this.p2){this.stx.plotLine(s4o,z8F,f5e,L$Z,L6I,Q8w,B2j,W9H,o$9);}if(this.highlighted){h5E=this.highlighted == "p0"?!"":!({});n_V=this.highlighted == "p1"?!![]:!"1";z$V=this.highlighted == "p2"?!![]:!1;this.littleCircle(B2j,e96,t5J,h5E);this.littleCircle(B2j,s4o,f5e,n_V);this.littleCircle(B2j,z8F,L$Z,z$V);}};e5.Drawing.fibprojection.prototype.move=function(R5Z,j3Q,D9b){var M$e=g9BGt;var Z5G,C7v,Q$0;if(!this.penDown){return;}Z5G=458876147;C7v=-1915082345;M$e.Z_e();M$e.O90(35);Q$0=M$e.t1w(64,"2");for(var p2Z=1;M$e.l9L(p2Z.toString(),p2Z.toString().length,35562) !== Z5G;p2Z++){this.copyConfig();if(this.p2 !== 1){this.p1=[j3Q,D9b];}else {this.p2=[j3Q,D9b];}Q$0+=2;}if(M$e.i7j(Q$0.toString(),Q$0.toString().length,50783) !== C7v){this.copyConfig();if(this.p2 === 5){this.p1=[j3Q,D9b];}else {this.p2=[j3Q,D9b];}}this.copyConfig();if(this.p2 === null){this.p1=[j3Q,D9b];}else {this.p2=[j3Q,D9b];}this.render(R5Z);};e5.Drawing.fibprojection.prototype.reposition=function(P1P,E81,H8Z,B0x){var o$n,Z7C,c7K,L5M;g9BGt.c7b();o$n="d";o$n+="r";o$n+="a";o$n+="g";if(!E81){return;}Z7C=this.stx.panels[this.panelName];c7K=E81.tick - H8Z;L5M=E81.value - B0x;if(E81.action == "move"){this.setPoint(0,E81.p0[0] - c7K,E81.p0[1] - L5M,Z7C.chart);this.setPoint(1,E81.p1[0] - c7K,E81.p1[1] - L5M,Z7C.chart);this.setPoint(2,E81.p2["0" >> 32] - c7K,E81.p2[1] - L5M,Z7C.chart);this.render(P1P);}else if(E81.action == o$n){this[E81.point]=[H8Z,B0x];this.setPoint(0,this.p0["0" | 0],this.p0[1],Z7C.chart);this.setPoint(1,this.p1[0],this.p1[1],Z7C.chart);this.setPoint(2,this.p2[0],this.p2[1],Z7C.chart);this.render(P1P);}};e5.Drawing.fibprojection.prototype.intersected=function(Y5H,z3b,r8s){var B7W,J56,l1T,q14,R_D,X66,I5Q,Z2t;B7W=this.p0;J56=this.p1;l1T=this.p2;if(!B7W || !J56 || !l1T){return null;}q14={0:B7W,1:J56,2:l1T};for(var R9f in q14){if(this.pointIntersection(q14[R9f][0],q14[R9f]["1" * 1],r8s)){R_D="d";R_D+="r";R_D+="ag";g9BGt.X$L(1);this.highlighted=g9BGt.t1w((739.81,5353) > (6720,9080)?(6150,+"305") < 1302?("3715" - 0,8220) != ("4800" * 1,634.46)?"c":![]:+"605.29":"p",R9f);return {action:R_D,point:(4899 != (363.81,+"2080")?9770 === 80?(0x1cb3,0x354):(3030,636.1) != "3799" - 0?"p":("J","t"):(0x28d,!!1)) + R9f};}}X66=this.rays;I5Q=this.lineIntersection(Y5H,z3b,r8s,"segment",B7W,J56) || this.lineIntersection(Y5H,z3b,r8s,"segment",J56,l1T);if(!I5Q){for(var q4V=0;q4V < X66.length;q4V++){if(this.lineIntersection(Y5H,z3b,r8s,"ray",X66[q4V][0],X66[q4V][1],!0)){I5Q=!!1;break;}}}if(I5Q){Z2t="mov";Z2t+="e";this.highlighted=!"";return {action:Z2t,p0:e5.clone(B7W),p1:e5.clone(J56),p2:e5.clone(l1T),tick:Y5H,value:z3b};}return null;};e5.Drawing.fibprojection.prototype.adjust=function(){var I19;I19=this.stx.panels[this.panelName];if(!I19){return;}this.setPoint(0,this.d0,this.v0,I19.chart);this.setPoint(1,this.d1,this.v1,I19.chart);this.setPoint(2,this.d2,this.v2,I19.chart);};e5.Drawing.fibarc=function(){var K$O;g9BGt.c7b();K$O="fi";K$O+="b";K$O+="arc";this.name=K$O;;};e5.inheritsFrom(e5.Drawing.fibarc,e5.Drawing.fibonacci);e5.Drawing.fibarc.prototype.recommendedLevels=[+"0.382",0.5,0.618,1];e5.Drawing.fibarc.prototype.setOuter=function(){var i1Q,n$y,r3v,q8w,z2z,y_W,Z2K;i1Q=this.stx.panels[this.panelName];if(!i1Q){return;}this.outer={p0:e5.clone(this.p0),p1:e5.clone(this.p1)};n$y=this.stx.pixelFromValueAdjusted(i1Q,this.p0[0],this.p0[1]);r3v=this.stx.pixelFromValueAdjusted(i1Q,this.p1[+"0"],this.p1[+"1"]);q8w=this.stx.pixelFromTick(this.p0[0],i1Q.chart);z2z=this.stx.pixelFromTick(this.p1["0" | 0],i1Q.chart);g9BGt.X$L(69);y_W=g9BGt.D8z(0,r3v,n$y,"2");Z2K=e5.xIntersection({x0:q8w,x1:z2z,y0:n$y,y1:r3v},y_W);this.outer.p0[1]=this.stx.valueFromPixel(y_W,i1Q);this.outer.p0[+"0"]=this.stx.tickFromPixel(Z2K,i1Q.chart);};e5.Drawing.fibarc.prototype.intersected=function(s$d,b9N,h6D){var J_W,w5q,j_T,t2N,h4c,Y6s,K8u,N_J,r$c,B83,B9i;J_W="m";J_W+="o";J_W+="v";J_W+="e";w5q=this.stx.panels[this.panelName];if(!w5q){return;}j_T=this.p0;t2N=this.p1;h4c=this.outer;if(!j_T || !t2N){return null;}Y6s={0:j_T,1:t2N};for(var v6x in Y6s){if(this.pointIntersection(Y6s[v6x][0],Y6s[v6x][1],h6D)){g9BGt.X$L(1);this.highlighted=g9BGt.D8z(684.38 <= +"6580"?+"399.24" < 6320?"p":("259.97" * 1,"C"):792.96,v6x);return {action:"drag",point:"p" + v6x};}}if(this.lineIntersection(s$d,b9N,h6D,"segment",h4c.p0,h4c.p1)){this.highlighted=!![];return {action:"move",p0:e5.clone(j_T),p1:e5.clone(t2N),tick:s$d,value:b9N};}K8u={x0:j_T[0],x1:t2N[0],y0:j_T[1],y1:t2N[1]};N_J=e5.convertBoxToPixels(this.stx,this.panelName,K8u);r$c={x:Math.abs(Math.sqrt(2) * (N_J.x1 - N_J.x0)),y:Math.abs(Math.sqrt(2) * (N_J.y1 - N_J.y0))};B83=this.stx.pixelFromTick(s$d,w5q.chart);B9i=this.stx.pixelFromValueAdjusted(w5q,s$d,b9N);if(B83 + h6D.r < N_J.x1 - r$c.x || B83 - h6D.r > N_J.x1 + r$c.x){return null;}if(B9i + h6D.r < N_J.y1 - r$c.y || B9i - h6D.r > N_J.y1 + r$c.y){return null;}if(N_J.y0 < N_J.y1 && B9i - h6D.r > N_J.y1){return null;}if(N_J.y0 > N_J.y1 && B9i + h6D.r < N_J.y1){return null;}this.highlighted=!!"1";return {action:J_W,p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:s$d,value:b9N};};e5.Drawing.fibarc.prototype.render=function(u46){var R_e=g9BGt;var Z3_,r4n,U_U,w51,w2T,S4a,p95,t4x,V_z,v1l,k11,E4$,P4R,j0g,Y_8,y$G,n4N,f8$,O0G,U0G,G56,Q9X,M$0,E8D;Z3_="segm";R_e.Z_e();Z3_+="e";Z3_+="nt";r4n=this.stx.panels[this.panelName];if(!r4n){return;}U_U=r4n.yAxis;if(!this.p1){return;}w51=this.stx.pixelFromTick(this.p0[0],r4n.chart);w2T=this.stx.pixelFromTick(this.p1[0],r4n.chart);S4a=this.stx.pixelFromValueAdjusted(r4n,this.p0[0],this.p0[1]);p95=this.stx.pixelFromValueAdjusted(r4n,this.p1["0" | 0],this.p1[1]);R_e.X$L(70);t4x=R_e.D8z(p95,S4a);R_e.X$L(71);V_z=Math.abs(R_e.t1w(S4a,w51,w2T,p95));v1l=this.getLineColor(this.parameters.trend.color);u46.textBaseline="middle";this.stx.canvasFont("stx_yaxis",u46);k11=this.color;if(k11 == "auto" || e5.isTransparent(k11)){k11=this.stx.defaultColor;}for(var Y5L="0" ^ 0;Y5L < this.parameters.fibs.length;Y5L++){u46.fillStyle=k11;E4$=this.parameters.fibs[Y5L];if(E4$.level < 0 || !E4$.display)continue;R_e.O90(49);var f4b=R_e.D8z(2,9,0,16);R_e.O90(50);var v47=R_e.D8z(14,16);P4R=Math.abs(this.p1["1" ^ 0] - this.p0[f4b]) * Math.sqrt(v47) * E4$.level;R_e.X$L(2);var f5u=R_e.D8z(0,1,7,7);R_e.X$L(72);var Q47=R_e.t1w(12,5,4,2);R_e.X$L(49);var W5m=R_e.t1w(19,2,0,19);R_e.X$L(73);var I0Z=R_e.t1w(83,9,12,6,10);R_e.X$L(74);var y0l=R_e.t1w(6,5,19,7);j0g=this.p1[f5u] + P4R * (t4x?Q47:W5m) * (U_U.flipped?I0Z:y0l);Y_8=this.stx.pixelFromValueAdjusted(r4n,this.p0[0],j0g);y$G=e5.xIntersection({x0:w51,x1:w2T,y0:S4a,y1:p95},Y_8);if(this.parameters.printLevels){n4N="ce";n4N+="n";n4N+="te";n4N+="r";u46.textAlign=n4N;R_e.X$L(68);var B0h=R_e.D8z(3,2,1002,3);R_e.X$L(57);var a0w=R_e.D8z(40,2,10);f8$=Math.round(E4$.level * B0h) / a0w + "%";if(this.parameters.printValues){u46.fillStyle=k11;this.stx.canvasFont("stx_yaxis",u46);;}u46.fillText(f8$,w2T,Math.round(Y_8 - 5));}u46.textAlign="left";if(this.parameters.printValues){if(y$G < r4n.width){O0G=j0g;if(U_U.priceFormatter){O0G=U_U.priceFormatter(this.stx,r4n,O0G);}else {O0G=this.stx.formatYAxisPrice(O0G,r4n);}if(u46 == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(r4n,O0G,Y_8,k11,null,u46);if(u46 == this.stx.chart.context){this.stx.startClip(r4n.name);}}}U0G=E4$.color;if(U0G == "auto" || e5.isTransparent(U0G)){U0G=this.color;}if(U0G == "auto" || e5.isTransparent(U0G)){U0G=this.stx.defaultColor;}u46.strokeStyle=this.highlight?v1l:U0G;G56=E4$.color;if(G56 == "auto" || e5.isTransparent(G56)){G56=this.fillColor;}if(G56 == "auto" || e5.isTransparent(G56)){G56=this.stx.defaultColor;}u46.fillStyle=G56;u46.globalAlpha=this.highlighted?1:E4$.parameters.opacity;u46.lineWidth=E4$.parameters.lineWidth;if(u46.setLineDash){u46.setLineDash(e5.borderPatternToArray(u46.lineWidth,E4$.parameters.pattern));u46.lineDashOffset=0;;}u46.save();u46.beginPath();R_e.X$L(75);u46.scale(R_e.D8z(V_z,"1"),1);R_e.O90(8);u46.arc(R_e.t1w(V_z,w2T),p95,Math.abs(Y_8 - p95),0,Math.PI,!t4x);if(this.pattern != "none"){u46.stroke();}u46.globalAlpha=0.05;u46.fill();u46.restore();if(u46.setLineDash){u46.setLineDash([]);}R_e.X$L(3);u46.globalAlpha=R_e.D8z(0,"1");}u46.textAlign="left";Q9X=e5.clone(this.parameters.trend.parameters);if(this.highlighted){Q9X.opacity=+"1";}R_e.O90(38);this.stx.plotLine(w2T,R_e.t1w(w51,w2T,2),p95,R_e.D8z(S4a,p95,2),v1l,Z3_,u46,r4n,Q9X);if(this.highlighted){M$0=this.highlighted == "p0"?!![]:!({});E8D=this.highlighted == "p1"?!!1:![];this.littleCircle(u46,w51,S4a,M$0);this.littleCircle(u46,w2T,p95,E8D);}};e5.Drawing.fibfan=function(){var M_O;M_O="f";M_O+="i";M_O+="bfan";this.name=M_O;g9BGt.Z_e();;};e5.inheritsFrom(e5.Drawing.fibfan,e5.Drawing.fibonacci);e5.Drawing.fibfan.prototype.recommendedLevels=[0,0.382,+"0.5",0.618,+"1"];e5.Drawing.fibfan.prototype.setOuter=function(){};e5.Drawing.fibfan.prototype.render=function(m9J){var F0F=g9BGt;var s6Z,M39,B8Z,d__,t0K,X7d,r4V,z_m,L0X,L18,n3m,N5p,O8b,E8c,l79,b2e,Z6W,b6i,P4v,i2I,v2L,b5g,e2j,f9U,c__,J8s,U54,l6h,T$o,u7h,f_K;s6Z="aut";s6Z+="o";M39="1";M39+="61";F0F.c7b();M39+=".";M39+="8%";B8Z=this.stx.panels[this.panelName];if(!B8Z){return;}d__=B8Z.yAxis;if(!this.p1){return;}t0K=this.stx.pixelFromTick(this.p0[0],B8Z.chart);X7d=this.stx.pixelFromTick(this.p1["0" * 1],B8Z.chart);r4V=this.stx.pixelFromValueAdjusted(B8Z,this.p0["0" | 0],this.p0[1]);z_m=this.stx.pixelFromValueAdjusted(B8Z,this.p1[0],this.p1[1]);L0X=Math.min(z_m,r4V);L18=Math.max(z_m,r4V);F0F.O90(7);n3m=F0F.t1w(L0X,L18);F0F.O90(59);N5p=F0F.D8z(r4V,z_m,0,t0K,X7d);O8b=this.getLineColor(this.parameters.trend.color);m9J.textBaseline="middle";this.stx.canvasFont("stx_yaxis",m9J);F0F.X$L(67);var E92=F0F.t1w(312,20,3,14);E8c=m9J.measureText(M39).width + E92;l79=Number.MAX_VALUE;b2e=Number.MAX_VALUE * -+"1";Z6W=this.color;if(Z6W == s6Z || e5.isTransparent(Z6W)){Z6W=this.stx.defaultColor;}this.rays=[];for(var F06=0;F06 < this.parameters.fibs.length;F06++){b6i="segme";b6i+="nt";m9J.fillStyle=Z6W;P4v=this.parameters.fibs[F06];if(!P4v.display)continue;i2I=this.stx.pixelFromValueAdjusted(B8Z,this.p0[0],(this.p0[1] - this.p1[+"1"]) * P4v.level + this.p1[1]);v2L=e5.xIntersection({x0:X7d,x1:X7d,y0:r4V,y1:z_m},i2I);b5g=B8Z.left;if(X7d > t0K){b5g+=B8Z.width;}F0F.O90(76);e2j=F0F.D8z(r4V,b5g,t0K,r4V,t0K,i2I,v2L);if(t0K > b5g - (this.parameters.printLevels?E8c + 5:0) && X7d > t0K)continue;else if(t0K < b5g + (this.parameters.printLevels?E8c + 5:0) && X7d < t0K)continue;if(this.parameters.printLevels){F0F.X$L(66);var D7E=F0F.D8z(5,6,128,320);F0F.X$L(38);var I44=F0F.D8z(18,710,40);F0F.X$L(77);var j0Q=F0F.D8z(4530,453,1500);F0F.O90(1);var K4Z=F0F.t1w(7749,11);f9U=Math.round(P4v.level * ("1000" | D7E)) / I44 + ((+"7457",9.96) < j0Q?"%":("U",K4Z));if(X7d > t0K){b5g-=E8c;m9J.textAlign="left";}else {b5g+=E8c;m9J.textAlign="right";}if(this.parameters.printValues){m9J.fillStyle=Z6W;this.stx.canvasFont("stx_yaxis",m9J);;}F0F.O90(76);e2j=F0F.t1w(r4V,b5g,t0K,r4V,t0K,i2I,v2L);m9J.fillText(f9U,b5g,e2j);if(X7d > t0K){F0F.O90(8);b5g-=F0F.t1w(1,"5");}else {b5g+=5;}}m9J.textAlign="left";if(this.parameters.printValues){if(v2L < B8Z.width){c__=this.stx.transformedPriceFromPixel(i2I,B8Z);if(d__.priceFormatter){c__=d__.priceFormatter(this.stx,B8Z,c__);}else {c__=this.stx.formatYAxisPrice(c__,B8Z);}if(m9J == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(B8Z,c__,i2I,Z6W,null,m9J);if(m9J == this.stx.chart.context){this.stx.startClip(B8Z.name);}}}J8s=P4v.color;if(J8s == "auto" || e5.isTransparent(J8s)){J8s=this.color;}if(J8s == "auto" || e5.isTransparent(J8s)){J8s=this.stx.defaultColor;}U54=P4v.color;if(U54 == "auto" || e5.isTransparent(U54)){U54=this.fillColor;}if(U54 == "auto" || e5.isTransparent(U54)){U54=this.stx.defaultColor;}m9J.fillStyle=U54;if(this.parameters.printLevels){F0F.X$L(76);e2j=F0F.D8z(r4V,b5g,t0K,r4V,t0K,i2I,v2L);}l6h=e5.clone(P4v.parameters);if(this.highlighted){l6h.opacity=1;}this.stx.plotLine(t0K,b5g,r4V,e2j,this.highlighted?O8b:J8s,b6i,m9J,B8Z,l6h);this.rays.push([[t0K,r4V],[b5g,e2j]]);m9J.globalAlpha=0.05;m9J.beginPath();m9J.moveTo(b5g,e2j);m9J.lineTo(t0K,r4V);m9J.lineTo(b5g,r4V);m9J.fill();m9J.globalAlpha=1;if(i2I < l79){l79=i2I;}if(i2I > b2e){b2e=i2I;}}for(var f0I=0;f0I <= 1;f0I++){T$o=N5p?L18 - n3m * f0I:L0X + n3m * f0I;T$o=Math.round(T$o);if(T$o < l79){l79=T$o;}if(T$o > b2e){b2e=T$o;}}if(this.highlighted){u7h=this.highlighted == "p0"?!0:![];f_K=this.highlighted == "p1"?!!"1":!!"";this.littleCircle(m9J,t0K,r4V,u7h);this.littleCircle(m9J,X7d,z_m,f_K);}};e5.Drawing.fibtimezone=function(){this.name="fibtimezone";g9BGt.c7b();;};e5.inheritsFrom(e5.Drawing.fibtimezone,e5.Drawing.fibonacci);e5.Drawing.fibtimezone.prototype.render=function(y92){var u9l=g9BGt;var I7d,N5s,T1B,e0$,c7k,O8n,j5_,C$U,L9I,w8P,R6U,z7I,m6w,J$Z,c$A,B3z,A3C,M53,H7T,W9b,R4o;I7d=this.stx.panels[this.panelName];if(!I7d){return;}if(!this.p1){return;}N5s=this.stx.pixelFromTick(this.p0[+"0"],I7d.chart);T1B=this.stx.pixelFromTick(this.p1[+"0"],I7d.chart);e0$=this.stx.pixelFromValueAdjusted(I7d,this.p0[0],this.p0[1]);c7k=this.stx.pixelFromValueAdjusted(I7d,this.p1[0],this.p1[1]);O8n=[+"1",0];j5_=this.getLineColor(this.parameters.trend.color);y92.textBaseline="middle";this.stx.canvasFont("stx_yaxis",y92);C$U=20;L9I=this.p1[0] - this.p0[0];w8P=this.color;if(w8P == "auto" || e5.isTransparent(w8P)){w8P=this.stx.defaultColor;}y92.textAlign="center";R6U=N5s;z7I=I7d.yAxis.top;m6w=I7d.yAxis.bottom;J$Z=0;c$A=this.parameters.timezone.color;if(c$A == "auto" || e5.isTransparent(c$A)){c$A=this.color;}if(c$A == "auto" || e5.isTransparent(c$A)){c$A=this.stx.defaultColor;}B3z=this.parameters.timezone.color;if(B3z == "auto" || e5.isTransparent(B3z)){B3z=this.fillColor;}if(B3z == "auto" || e5.isTransparent(B3z)){B3z=this.stx.defaultColor;}if(this.parameters.printLevels){u9l.X$L(33);m6w-=u9l.D8z(C$U,0,"7");}A3C=e5.clone(this.parameters.timezone.parameters);if(this.highlighted){A3C.opacity=1;}do {M53="segmen";M53+="t";R6U=this.stx.pixelFromTick(this.p0[+"0"] + J$Z * L9I,I7d.chart);if(N5s < T1B && R6U > I7d.left + I7d.width)break;else if(N5s > T1B && R6U < I7d.left)break;if(this.parameters.printLevels){y92.fillStyle=w8P;y92.fillText(T1B > N5s?J$Z:J$Z * -1,R6U,m6w + 7);}y92.fillStyle=B3z;this.stx.plotLine(R6U,R6U,0,m6w,this.highlighted?j5_:c$A,M53,y92,I7d,A3C);y92.globalAlpha=0.05;y92.beginPath();y92.moveTo(N5s,z7I);y92.lineTo(R6U,z7I);y92.lineTo(R6U,m6w);y92.lineTo(N5s,m6w);y92.fill();y92.globalAlpha=1;J$Z=O8n[0] + O8n["1" >> 0];O8n.unshift(J$Z);}while(L9I);y92.textAlign="left";this.stx.plotLine(N5s,T1B,e0$,c7k,j5_,"segment",y92,I7d,A3C);if(this.highlighted){H7T=this.highlighted == "p0"?!!"1":![];W9b=this.highlighted == "p1"?!![]:!({});this.littleCircle(y92,N5s,e0$,H7T);this.littleCircle(y92,T1B,c7k,W9b);}else {R4o=this.stx.valueFromPixel(I7d.height / +"2",I7d);this.setPoint(0,this.p0[0],R4o,I7d.chart);u9l.O90(8);this.setPoint(u9l.t1w(1,"1"),this.p1[0],R4o,I7d.chart);}};e5.Drawing.fibtimezone.prototype.intersected=function(K6w,n6j,j$Z){var c0K,W1V,x4L,q5J,e2a;c0K=this.p0;W1V=this.p1;x4L=this.stx.panels[this.panelName];if(!c0K || !W1V || !x4L){return null;}q5J={0:c0K,1:W1V};for(var k_$ in q5J){if(this.pointIntersection(q5J[k_$][0],q5J[k_$][1],j$Z)){g9BGt.X$L(1);this.highlighted=g9BGt.D8z((6090,+"400.42") == ("7637" | 21)?(6987,9030) >= (2480,4289)?(+"493.06",8278) === 8350?(4.67e+3,6.67e+3):733.47:!({}):"p",k_$);return {action:"drag",point:"p" + k_$};}}e2a=this.lineIntersection(K6w,n6j,j$Z,"segment");if(e2a || j$Z.x0 <= this.p0[0] && j$Z.x1 >= c0K[0]){this.highlighted=!!"1";return {action:"move",p0:e5.clone(c0K),p1:e5.clone(W1V),tick:K6w,value:n6j};}g9BGt.Z_e();return null;};e5.Drawing.arrow_v0=function(){g9BGt.Z_e();var z7l;z7l="a";z7l+="rr";z7l+="o";z7l+="w";this.name=z7l;this.dimension=[11,11];this.points=[[(877.99,2110) < 3761?514.52 > 895.91?"J":(+"817.5",7670) !== 4250?"M":0x2115:708.93,3,0,(4620,2130) <= 9020?"L":("V","X"),7,0,8950 < (944.06,3286)?383.68:"L",7,5,(2359,+"6458") <= 6090?237.49 == 4780?"h":2896 > 8832?(!0,!!"1"):!"1":"L",10,5,(9790,308.33) <= (5126,5349)?(588.34,4198) === 7991?(8.57e+3,2.61e+2):("2152" - 0,4393) >= (5182,1424)?"L":"P":(693.14,919.64),+"5",10,7790 < "8150" - 0?(381,"9525" * 1) > ("6980" >> 96,786.03)?(+"1150",+"8000") == (9950,8350)?(721,!!({})):"L":(!0,9.82e+3):!![],0,5,("6013" - 0,297) <= 5470?"L":(577.70,"k"),3,+"5",9710 == (291.69,2400)?!({}):("8300" * 1,2206) !== 3931?"26" * 1 == ("441.72" - 0,1235)?509.12:"L":("G","0x184b" - 0),3,0]];};e5.inheritsFrom(e5.Drawing.arrow_v0,e5.Drawing.shape);e5.Drawing.xcross=function(){var Z5C=g9BGt;this.name="xcross";this.dimension=[7,7];Z5C.O90(7);this.points=[[446.46 == (599,"380.97" - 0)?(296.83,862.70):(3,8760) !== (4650,5701)?"M":852.71 === +"5810"?+"934":(!!0,"S"),1,0,"L",3,2,(2407,5894) == (+"837",3590)?6.54e+2:506 !== (5571,38.2)?"L":"39.64" - 0 <= 7947?0x6be:!!({}),5,+"0","L",6,1,"L",4,Z5C.t1w(0,"3"),"L",6,5,"L",+"5",6,447.67 !== 717?"L":("E",496.65),+"3",4,3147 > (342.78,7120)?5780 > 534?(8.76e+2,!![]):!1:"L",1,6,323 != 215?"L":(3497,5300) >= (9060,457.3)?"O":3.41e+2,+"0",5,"57.71" - 0 <= 3550?173.57 !== 3900?"L":("1380" ^ 0) != 6150?541.48:"0x12df" - 0:"326.85" - 0,Z5C.t1w(0,"2",Z5C.O90(3)),3,3738 > 6772?(!"1",!0):"L",0,1,(619.51,944.14) !== 91?"L":(7300,7370) >= +"868.49"?(973,1490) < (+"544.32",206)?!!1:(112,0xec7):"R",1,0]];;};e5.inheritsFrom(e5.Drawing.xcross,e5.Drawing.shape);e5.Drawing.check=function(){this.name="check";this.dimension=[8,9];g9BGt.O90(8);this.points=[["M",1,5,66.67 > 4329?(247.17,3449) != (8022,927.74)?(!({}),0xce4):(2.24e+3,977.16):"L",0,6,"L",g9BGt.t1w(1,"2"),8,"L",7,1,(542.6,354) <= 796.51?5867 === "714.83" * 1?(6810,6798) !== 307?("N",274.85):(+"0x265e",940.51):"L":("B","o"),6,0,2110 >= 4400?639.19:"L",2,6,"L",1,5]];;};e5.inheritsFrom(e5.Drawing.check,e5.Drawing.shape);e5.Drawing.star=function(){var x0f=g9BGt;this.name="star";this.dimension=[12,12];x0f.O90(35);x0f.Z_e();this.points=[["13.97" * 1 < (5256,"7570" | 2)?(9584,1515) == +"6492"?"c":"M":(!"1",0x83c),0,4,"L",4,4,9356 >= 7855?"L":(!![],847.70),5.5,0,(228,4890) !== (+"17.15",1212)?141.23 >= (5722,29)?"L":+"6.03e+3":0x1f9b,7,4,(1220,9700) < 1070?!({}):"L",11,+"4",7080 != 8660?"L":!!({}),8,7,"L",x0f.D8z(32,"9"),11,(6525,5858) > (2150,9965)?(196.88,![]):"333.67" - 0 == (7850,5461)?(!"1","e"):11.16 === 707.38?(27.13,+"4.34e+3"):"L",+"5.5",9,(3040,192) >= (4200,9532)?(3060,+"1031") < (885,645.89)?0x77b:"Q":"L",2,x0f.D8z("11",10,x0f.X$L(0)),"L",3,7,(80.58,3110) != (6600,+"374.84")?"L":"L",+"0",4]];;};e5.inheritsFrom(e5.Drawing.star,e5.Drawing.shape);e5.Drawing.heart=function(){var K2o=g9BGt;this.name="heart";K2o.O90(3);K2o.c7b();this.dimension=[23,K2o.t1w(0,"20")];K2o.O90(7);this.points=[[6500 === 1932?("k",0x2447):"M",+"11",+"3","628.24" - 0 == 1320?("M","b"):("8317" << 64,+"2010") == (6705,+"924")?0xced:"B",11,2.4,10,0,6,0,1535 >= ("364.9" * 1,8.45)?(7200,6842) != 506.09?"B":4156 > 428?0x2619:(![],"0xf34" >> 0):+"7.24e+3",0,0,+"0",7.5,0,7.5,9303 !== 656.56?6800 > 7660?(0x1334,1.72e+3):"B":(!0,![]),0,11,4,15.4,11,19,"B",18,15.4,22,11,22,7.5,"7274" - 0 < (9110,2890)?3155 !== (6669,"3866" * 1)?(8553,350.69) != (7584,7600)?!!1:100:0x18cf:"B",K2o.t1w(0,"22"),7.5,22,0,16,0,5381 > 172.3?"B":(0x4ec,267.21),13,0,11,+"2.4",11,3]];;};e5.inheritsFrom(e5.Drawing.heart,e5.Drawing.shape);e5.Drawing.focusarrow=function(){var n3f;n3f="foc";n3f+="usa";n3f+="rr";n3f+="ow";this.name=n3f;this.dimension=[7,5];this.points=[[(678.92,774) != 126.7?"M":2740 >= (8341,6468)?(+"2.63e+3",0x12e2):(8470,417.84) === (2925,2170)?"j":(464.51,0x1ebc),0,0,945.75 != 233.6?(5460,284.45) < 841?"L":("0x1eb6" << 64,!1):0x2351,2,2,(1568,1347) === (7555,640)?("361.43" - 0,4439) != 3033?(274.21,25.79) == (2400,7830)?"635.39" - 0:(0x2384,!0):!![]:"L",0,4,(9353,8070) !== (3910,6810)?(984.32,2070) >= 9960?0x8ad:"L":![],0,0],[+"2405" != (2703,751.98)?"M":14 <= 332.7?(!!({}),"9.64e+3" >> 64):(![],0x1d82),6,0,(211.09,+"782.32") < 899.92?"L":("H","105.26" * 1),4,2,9353 <= 6810?(!"",!"1"):(+"425.85",7380) == (2320,3406)?(1.23e+2,812.37):"L",6,4,("3999" * 1,538) != (497.62,519.78)?"L":(666.15,5950) < (793,5460)?(726.31,0x112e):753.15,6,0]];;};e5.inheritsFrom(e5.Drawing.focusarrow,e5.Drawing.shape);e5.Drawing.crossline=function(){this.name="crossline";};e5.inheritsFrom(e5.Drawing.crossline,e5.Drawing.horizontal);e5.extend(e5.Drawing.crossline.prototype,{measure:function(){},accidentalClick:function(z43,d8i){g9BGt.c7b();return !1;},adjust:function(){var z0L;z0L=this.stx.panels[this.panelName];if(!z0L){return;}this.setPoint(0,this.d0,this.v0,z0L.chart);this.p1=e5.clone(this.p0);},intersected:function(Y33,A46,P_f){var l69,L$h,n2k,e61,u1G,s3L;if(!this.p0 || !this.p1){return null;}this.p1[0]+=1;l69=this.lineIntersection(Y33,A46,P_f,"line");this.p1=e5.clone(this.p0);if(!l69){L$h="l";L$h+="ine";this.p1[1]+=+"1";l69=this.lineIntersection(Y33,A46,P_f,L$h);this.p1=e5.clone(this.p0);if(!l69){return null;}}this.highlighted=!!1;if(this.pointIntersection(this.p0[0],this.p0[1],P_f)){n2k="p";n2k+="0";e61=1534396721;u1G=-+"2061433582";s3L=2;for(var g9i=1;g9BGt.l9L(g9i.toString(),g9i.toString().length,+"23779") !== e61;g9i++){this.highlighted="";s3L+=+"2";}if(g9BGt.i7j(s3L.toString(),s3L.toString().length,+"48878") !== u1G){this.highlighted="";}this.highlighted=n2k;}return {action:"move",p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:Y33,value:A46};},render:function(h4t){var b8Q=g9BGt;var z_$,U2A,V4i,X4X,P5q,r3O,g9v,i4c,N0L,m45,y1U,K__,n8x,v_o,i_v,H6l,y1_;b8Q.c7b();z_$="hori";z_$+="zon";z_$+="tal";U2A=this.stx.panels[this.panelName];if(!U2A){return;}V4i=this.stx.pixelFromTick(this.p0[0],U2A.chart);X4X=this.stx.pixelFromValueAdjusted(U2A,this.p0[0],this.p0[1]);P5q=this.getLineColor();r3O={pattern:this.pattern,lineWidth:this.lineWidth};b8Q.O90(78);this.stx.plotLine(V4i,b8Q.t1w(V4i,"100"),X4X,X4X,P5q,z_$,h4t,U2A,r3O);b8Q.O90(1);this.stx.plotLine(V4i,V4i,X4X,b8Q.t1w(X4X,100),P5q,"vertical",h4t,U2A,r3O);if(this.axisLabel && !this.repositioner){this.stx.endClip();g9v=this.p0[1];if(U2A.chart.transformFunc){g9v=U2A.chart.transformFunc(this.stx,U2A.chart,g9v);}i4c=780443048;b8Q.X$L(0);N0L=-b8Q.t1w("1766453124",0);m45=2;for(var w68=1;b8Q.l9L(w68.toString(),w68.toString().length,81756) !== i4c;w68++){if(U2A.yAxis.priceFormatter){g9v=U2A.yAxis.priceFormatter(this.stx,U2A,g9v);}else {g9v=this.stx.formatYAxisPrice(g9v,U2A);}this.stx.createYAxisLabel(U2A,g9v,X4X,P5q);this.stx.startClip(U2A.name);m45+=2;}if(b8Q.l9L(m45.toString(),m45.toString().length,92171) !== N0L){if(U2A.yAxis.priceFormatter){g9v=U2A.yAxis.priceFormatter(this.stx,U2A,g9v);}else {g9v=this.stx.formatYAxisPrice(g9v,U2A);}this.stx.createYAxisLabel(U2A,g9v,X4X,P5q);this.stx.startClip(U2A.name);}if(this.p0[0] >= 0 && !this.stx.chart.xAxis.noDraw){y1U=this.stx.dateFromTick(this.p0[0],U2A.chart,!0);if(!e5.ChartEngine.isDailyInterval(this.stx.layout.interval)){b8Q.O90(15);var l0U=b8Q.t1w(1007,19,12,1);n8x=y1U.getSeconds() * l0U + y1U.getMilliseconds();if(E3.Date && this.stx.displayZone){K__=new E3.Date(y1U.getTime(),this.stx.displayZone);y1U=new Date(K__.getFullYear(),K__.getMonth(),K__.getDate(),K__.getHours(),K__.getMinutes());y1U=new Date(y1U.getTime() + n8x);}}else {y1U.setHours(0,0,0,0);}v_o=e5.mmddhhmm(e5.yyyymmddhhmm(y1U));if(U2A.chart.xAxis.formatter){v_o=U2A.chart.xAxis.formatter(y1U,this.name,null,null,v_o);}else if(this.stx.internationalizer){if(y1U.getHours() !== 0 || y1U.getMinutes() !== 0){i_v=this.stx.internationalizer.monthDay.format(y1U);b8Q.O90(5);var i_t=b8Q.t1w(5656,25,19);b8Q.O90(79);var n9d=b8Q.t1w(29933,6,2,7,16320);i_v+=((i_t,7640) >= (432.09,988.15)?" ":(n9d,+"7720") >= 735.9?![]:+"893.49") + this.stx.internationalizer.hourMinute.format(y1U);}else {i_v=this.stx.internationalizer.yearMonthDay.format(y1U);}v_o=i_v;}this.stx.endClip();this.stx.createXAxisLabel({panel:U2A,txt:v_o,x:V4i,backgroundColor:P5q,color:null,pointed:!![],padding:2});this.stx.startClip(U2A.name);}}if(this.highlighted){H6l="p";H6l+="0";y1_=this.highlighted == H6l?!!"1":!"1";this.littleCircle(h4t,V4i,X4X,y1_);}}},!"");e5.Drawing.speedarc=function(){this.name="speedarc";this.printLevels=!!"1";};e5.inheritsFrom(e5.Drawing.speedarc,e5.Drawing.segment);e5.extend(e5.Drawing.speedarc.prototype,{defaultOpacity:+"0.25",configs:["color","fillColor","lineWidth","pattern"],copyConfig:function(){this.color=this.stx.currentVectorParameters.currentColor;this.fillColor=this.stx.currentVectorParameters.fillColor;this.lineWidth=this.stx.currentVectorParameters.lineWidth;this.pattern=this.stx.currentVectorParameters.pattern;},intersected:function(f6H,d1d,v0T){var J2$=g9BGt;var v5t,b6w,g0b,N5c,I1Z,c9g,u5n,p1p,d0t,S89,l1w;v5t="m";v5t+="ove";if(!this.p0 || !this.p1){return null;}b6w={0:this.p0,1:this.p1};for(var K_o in b6w){if(this.pointIntersection(b6w[K_o][+"0"],b6w[K_o][1],v0T)){J2$.X$L(1);this.highlighted=J2$.t1w("p",K_o);return {action:"drag",point:((6680,+"6418") > ("7440" - 0,4630)?(1000,7949) < (799,9446)?8175 !== 107.47?"p":(!!"",+"0x1723"):(318.91,"f"):("O",8.42e+3)) + K_o};}}g0b=this.lineIntersection(f6H,d1d,v0T,this.name);if(g0b){this.highlighted=!0;N5c=-484368825;I1Z=-104993853;c9g=2;for(var v3$="1" * 1;J2$.i7j(v3$.toString(),v3$.toString().length,"65824" ^ 0) !== N5c;v3$++){u5n="m";u5n+="ove";return {action:u5n,p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:f6H,value:d1d};}if(J2$.l9L(c9g.toString(),c9g.toString().length,34420) !== I1Z){return {action:"",p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:f6H,value:d1d};}}p1p=this.p1[0] - (this.p0[0] - this.p1[0]);d0t=this.p0[0];S89=this.p1[1];J2$.X$L(35);J2$.Z_e();l1w=this.p0[J2$.t1w(0,"1")];if(f6H > Math.max(p1p,d0t) || f6H < Math.min(p1p,d0t)){return null;}if(d1d > Math.max(l1w,S89) || d1d < Math.min(l1w,S89)){return null;}this.highlighted=!0;return {action:v5t,p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:f6H,value:d1d};},render:function(I8I){var I5X=g9BGt;var g9P,B3L,l2d,A2v,K6X,y3J,C$y,f0d,c23,f_P,g9t,r$g,M2b,F9T,n5h,p3k,d3Q,s4p;g9P="s";g9P+="egment";B3L=this.stx.panels[this.panelName];if(!B3L){return;}if(!this.p1){return;}l2d=this.stx.pixelFromTick(this.p0[0],B3L.chart);A2v=this.stx.pixelFromTick(this.p1[0],B3L.chart);K6X=this.stx.pixelFromValueAdjusted(B3L,this.p0[0],this.p0[1]);y3J=this.stx.pixelFromValueAdjusted(B3L,this.p1[0],this.p1[1]);I5X.O90(70);C$y=I5X.D8z(y3J,K6X);I5X.O90(71);f0d=Math.abs(I5X.D8z(K6X,l2d,A2v,y3J));c23=this.getLineColor();I8I.strokeStyle=c23;f_P=this.fillColor;if(f_P == "auto" || e5.isTransparent(f_P)){f_P=this.stx.defaultColor;}I8I.fillStyle=f_P;if(I8I.setLineDash){I8I.setLineDash(e5.borderPatternToArray(this.lineWidth,this.pattern));I8I.lineDashOffset=0;;}this.stx.canvasFont("stx_yaxis",I8I);for(var x6u=+"1";x6u < "3" * 1;x6u++){I5X.O90(9);var J6q=I5X.t1w(19,18,0);I5X.X$L(7);var I_o=I5X.D8z(5,6);I5X.X$L(80);var S6w=I5X.D8z(1,20,1,4,5);I5X.X$L(5);var Q5D=I5X.t1w(0,3,6);g9t=Math.abs(this.p1[J6q] - this.p0[I_o]) * Math.sqrt(S6w) * x6u / Q5D;I5X.O90(81);var Z3I=I5X.t1w(15,7,0,9);I5X.O90(82);var V3$=I5X.t1w(3,12,4,6);I5X.X$L(83);var N9Y=I5X.t1w(6,16,10,463,13);I5X.O90(43);var c6J=I5X.D8z(107,6,0,18);I5X.X$L(31);var R_5=I5X.t1w(7,162,17,10);r$g=this.p1[Z3I] + g9t * (C$y?V3$:N9Y) * (B3L.yAxis.flipped?c6J:R_5);M2b=this.stx.pixelFromValueAdjusted(B3L,this.p0["0" | 0],r$g);I8I.save();I8I.beginPath();I5X.O90(23);I8I.scale(I5X.t1w(f0d,1),1);I5X.O90(8);I8I.arc(I5X.t1w(f0d,A2v),y3J,Math.abs(M2b - y3J),0,Math.PI,!C$y);I8I.globalAlpha=this.highlighted?1:this.defaultOpacity;if(this.pattern != "none"){I8I.stroke();}I8I.globalAlpha=0.1;I8I.fill();I8I.restore();I8I.globalAlpha=1;if(this.printLevels){F9T="c";F9T+="e";F9T+="n";F9T+="ter";I8I.fillStyle=c23;I8I.textAlign=F9T;I5X.X$L(1);n5h=I5X.t1w(x6u,"/3");I8I.fillText(n5h,A2v,Math.round(M2b - +"5"));I8I.fillStyle=f_P;}}I8I.textAlign="left";p3k={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?1:this.defaultOpacity};this.stx.plotLine(l2d,A2v,K6X,y3J,c23,g9P,I8I,B3L,p3k);if(I8I.setLineDash){I8I.setLineDash([]);}if(this.highlighted){d3Q=this.highlighted == "p0"?!!1:!({});s4p=this.highlighted == "p1"?!!1:![];this.littleCircle(I8I,l2d,K6X,d3Q);this.littleCircle(I8I,A2v,y3J,s4p);}},reconstruct:function(A7s,i5d){this.stx=A7s;this.color=i5d.col;this.fillColor=i5d.fc;this.panelName=i5d.pnl;this.pattern=i5d.ptrn;g9BGt.Z_e();this.lineWidth=i5d.lw;this.d0=i5d.d0;this.d1=i5d.d1;this.tzo0=i5d.tzo0;this.tzo1=i5d.tzo1;this.v0=i5d.v0;this.v1=i5d.v1;this.adjust();},serialize:function(){g9BGt.c7b();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};}},!0);e5.Drawing.speedline=function(){g9BGt.Z_e();this.name="speedline";this.printLevels=!!({});};e5.inheritsFrom(e5.Drawing.speedline,e5.Drawing.speedarc);e5.extend(e5.Drawing.speedline.prototype,{intersected:function(y4d,u4U,t6M){var i5y,h5B,I12,m5n,k4Q;i5y=this.p0;h5B=this.p1;if(!i5y || !h5B){return null;}I12={0:i5y,1:h5B};for(var C9y in I12){if(this.pointIntersection(I12[C9y][0],I12[C9y][1],t6M)){g9BGt.O90(1);this.highlighted=g9BGt.D8z(9440 == (+"1853",4208)?4090 <= 8810?"649.96" - 0:(9.91e+3,9.14e+3):"p",C9y);return {action:"drag",point:(+"6500" < 732.71?"X":5360 === (6415,+"920.75")?(866.25,978) > (733.95,8671)?(3.11e+3,0x12c3):0x2161:"p") + C9y};}}m5n=this.rays;g9BGt.c7b();for(var b3a=0;b3a < m5n.length;b3a++){if(this.lineIntersection(y4d,u4U,t6M,"ray",m5n[b3a][0],m5n[b3a][1],!!"1")){k4Q="mo";k4Q+="ve";this.highlighted=!!1;return {action:k4Q,p0:e5.clone(i5y),p1:e5.clone(h5B),tick:y4d,value:u4U};}}return null;},render:function(v89){var s5f=g9BGt;var Q2d,B2k,f45,w_p,m$2,l5R,z5F,y2a,G4H,I1g,A9N,x$C,U7e,w5t,M7N,c9o,t$K,M3g,N03,j0l,n4o,u9t,w2g,s9e,j4d;Q2d="mi";Q2d+="ddle";B2k=this.stx.panels[this.panelName];if(!B2k){return;}if(!this.p1){return;}f45=this.stx.pixelFromTick(this.p0[0],B2k.chart);w_p=this.stx.pixelFromTick(this.p1[0],B2k.chart);m$2=this.stx.pixelFromValueAdjusted(B2k,this.p0[0],this.p0[1]);l5R=this.stx.pixelFromValueAdjusted(B2k,this.p1[0],this.p1[1]);this.stx.canvasFont("stx_yaxis",v89);z5F=this.getLineColor();y2a=this.color;if(y2a == "auto" || e5.isTransparent(y2a)){y2a=this.stx.defaultColor;}v89.strokeStyle=y2a;G4H=this.fillColor;if(G4H == "auto" || e5.isTransparent(G4H)){G4H=this.stx.defaultColor;}v89.fillStyle=G4H;I1g={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?1:this.defaultOpacity};U7e=["688.3" * 1 != +"8361"?"1":(0x2180,"K"),"2/3","1/3","3/2",323.19 != (408.06,792)?"3":0x14eb];s5f.O90(84);w5t=[+"1",s5f.t1w(0,"2","3"),s5f.D8z(0,"1","3",s5f.X$L(84)),s5f.t1w(2,3,s5f.X$L(23)),+"3"];M7N=[];this.rays=[];for(var W6O=0;W6O < w5t.length;W6O++){c9o=w5t[W6O];if(c9o > ("1" | 1) && !this.extension)continue;t$K=this.stx.pixelFromValueAdjusted(B2k,this.p0[0],this.p0[1] - (this.p0[1] - this.p1[1]) * c9o);if(c9o > ("1" | 1)){M3g=e5.xIntersection({x0:f45,x1:w_p,y0:m$2,y1:t$K},l5R);M7N.push(M3g);}else {M3g=e5.xIntersection({x0:w_p,x1:w_p,y0:m$2,y1:l5R},t$K);M7N.push(t$K);}N03=c9o > "1" << 64?M3g:w_p;j0l=c9o > 1?l5R:t$K;if(!this.confineToGrid){N03=B2k.left;if(w_p > f45){N03+=B2k.width;}s5f.X$L(76);j0l=s5f.D8z(m$2,N03,f45,m$2,f45,t$K,w_p);}if(this.printLevels){if(c9o != 1 || this.extension){v89.fillStyle=y2a;n4o=0;u9t=0;if(m$2 > l5R){u9t=-5;v89.textBaseline="bottom";}else {u9t=5;v89.textBaseline="top";}if(f45 > w_p){n4o=5;v89.textAlign="right";}else {n4o=-5;v89.textAlign="left";}if(c9o > +"1"){v89.fillText(U7e[W6O],M3g + (this.confineToGrid?"0" | 0:n4o),l5R);}else {v89.fillText(U7e[W6O],w_p,t$K + (this.confineToGrid?0:u9t));}v89.fillStyle=G4H;}}this.stx.plotLine(f45,N03,m$2,j0l,this.highlighted?z5F:y2a,"segment",v89,B2k,I1g);if(c9o == 1){A9N=N03;x$C=j0l;}this.rays.push([[f45,m$2],[N03,j0l]]);v89.globalAlpha=0.1;v89.beginPath();v89.moveTo(N03,j0l);v89.lineTo(f45,m$2);v89.lineTo(A9N,x$C);v89.fill();v89.globalAlpha=1;}v89.textAlign="left";v89.textBaseline=Q2d;if(this.confineToGrid){s5f.X$L(8);v89.globalAlpha=s5f.t1w(1,"0.3");v89.beginPath();s5f.X$L(7);v89.strokeRect(f45,m$2,s5f.t1w(f45,w_p),s5f.D8z(m$2,l5R));v89.moveTo(f45,M7N[1]);v89.lineTo(w_p,M7N[1]);v89.moveTo(f45,M7N["2" - 0]);v89.lineTo(w_p,M7N[2]);if(this.extension){v89.moveTo(M7N[3],m$2);v89.lineTo(M7N[3],l5R);v89.moveTo(M7N[4],m$2);v89.lineTo(M7N[4],l5R);}v89.stroke();v89.globalAlpha=1;}if(this.highlighted){w2g="p";w2g+="0";s9e=this.highlighted == w2g?!"":![];j4d=this.highlighted == "p1"?!!({}):!"1";this.littleCircle(v89,f45,m$2,s9e);this.littleCircle(v89,w_p,l5R,j4d);}}},!"");e5.Drawing.gannfan=function(){var o5h,u7S,K$0;o5h=864296670;u7S=+"335022174";K$0=2;for(var d7_=1;g9BGt.i7j(d7_.toString(),d7_.toString().length,33319) !== o5h;d7_++){this.name="";this.printLevels=!({});K$0+=2;}if(g9BGt.l9L(K$0.toString(),K$0.toString().length,57844) !== u7S){this.name="";this.printLevels=!0;}this.name="gannfan";this.printLevels=!!1;};e5.inheritsFrom(e5.Drawing.gannfan,e5.Drawing.speedline);e5.extend(e5.Drawing.gannfan.prototype,{render:function(E7v){var E4A=g9BGt;var o1j,w_l,H53,u_X,h5C,f_Z,W$8,h$N,N0b,p0N,G3n,S96,v0K,b$Q,H2t,H1g,Z2b,z9G,t1g,u5r,g_U,d6t,u0b,b4V,l5P,w9R;o1j="l";o1j+="e";o1j+="f";o1j+="t";w_l=this.stx.panels[this.panelName];if(!w_l){return;}if(!this.p1){return;}H53=this.stx.pixelFromTick(this.p0[0],w_l.chart);u_X=this.stx.pixelFromTick(this.p1[0],w_l.chart);h5C=this.stx.pixelFromValueAdjusted(w_l,this.p0[0],this.p0[1]);f_Z=this.stx.pixelFromValueAdjusted(w_l,this.p1["0" >> 32],this.p1[1]);this.stx.canvasFont("stx_yaxis",E7v);W$8=this.getLineColor();h$N=this.color;if(h$N == "auto" || e5.isTransparent(h$N)){h$N=this.stx.defaultColor;}E7v.strokeStyle=h$N;N0b=this.fillColor;if(N0b == "auto" || e5.isTransparent(N0b)){N0b=this.stx.defaultColor;}E7v.fillStyle=N0b;p0N={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?1:this.defaultOpacity};E4A.O90(85);v0K=[1,2,3,4,8,E4A.D8z(1,"2"),E4A.D8z(3,0,"1",E4A.X$L(86)),E4A.D8z(4,1,E4A.X$L(23)),E4A.D8z(8,1,E4A.X$L(23))];this.rays=[];for(var m9$=0;m9$ < v0K.length;m9$++){b$Q=v0K[m9$];E4A.X$L(87);H2t=E4A.D8z(b$Q,H53,H53,u_X);E4A.X$L(88);H1g=E4A.t1w(h5C,h5C,f_Z,b$Q);Z2b=w_l.left;if(u_X > H53){Z2b+=w_l.width;}E4A.O90(76);z9G=E4A.D8z(h5C,Z2b,H53,h5C,H53,H1g,u_X);if(this.printLevels){E7v.fillStyle=h$N;t1g=0;u5r=0;if(h5C > f_Z){E4A.X$L(35);u5r=E4A.D8z(96,"5");E7v.textBaseline="top";}else {g_U="b";g_U+="ot";g_U+="to";g_U+="m";u5r=-+"5";E7v.textBaseline=g_U;}if(H53 > u_X){t1g=+"5";E7v.textAlign="left";}else {t1g=-5;E7v.textAlign="right";}if(b$Q > "1" >> 0){d6t="x";d6t+="1";E4A.X$L(1);E7v.fillText(E4A.D8z(b$Q,d6t),E4A.t1w(H2t,t1g),f_Z);}else {E4A.O90(53);E7v.fillText(E4A.t1w(b$Q,1,"1x"),u_X,E4A.D8z(H1g,u5r,E4A.O90(1)));}E7v.fillStyle=N0b;}this.stx.plotLine(H53,Z2b,h5C,z9G,this.highlighted?W$8:h$N,"segment",E7v,w_l,p0N);this.rays.push([[H53,h5C],[Z2b,z9G]]);if(b$Q == 1){G3n=Z2b;S96=z9G;}E7v.globalAlpha=0.1;E7v.beginPath();E7v.moveTo(Z2b,z9G);E7v.lineTo(H53,h5C);E7v.lineTo(G3n,S96);E7v.fill();E4A.O90(35);E7v.globalAlpha=E4A.D8z(64,"1");}E7v.textAlign=o1j;E4A.c7b();E7v.textBaseline="middle";if(this.highlighted){u0b="p";u0b+="1";b4V="p";b4V+="0";l5P=this.highlighted == b4V?!!({}):!!0;w9R=this.highlighted == u0b?!"":!1;this.littleCircle(E7v,H53,h5C,l5P);this.littleCircle(E7v,u_X,f_Z,w9R);}}},!!({}));e5.Drawing.timecycle=function(){var F75;F75="timecycl";F75+="e";this.name=F75;g9BGt.c7b();this.printLevels=!!({});};e5.inheritsFrom(e5.Drawing.timecycle,e5.Drawing.speedarc);e5.extend(e5.Drawing.timecycle.prototype,{intersected:function(c4$,R5u,B8u){var i75,a1K,n9o,Q19,G1P;i75=this.p0;a1K=this.p1;n9o=this.stx.panels[this.panelName];if(!i75 || !a1K || !n9o){return null;}Q19={0:i75,1:a1K};for(var v$K in Q19){if(this.pointIntersection(Q19[v$K][0],Q19[v$K]["1" << 32],B8u)){g9BGt.X$L(1);this.highlighted=g9BGt.D8z(7590 < (283.95,+"862.31")?(!0,!![]):"p",v$K);return {action:"drag",point:((+"6530",850.15) >= (7501,5571)?(!!1,"I"):(2412,+"1680") > (908,4.43)?"p":1440 == 5829?(617.33,"591" - 0):("6.55e+3" ^ 0,948.28)) + v$K};}}G1P=this.lineIntersection(c4$,R5u,B8u,"segment");if(G1P || B8u.x0 <= this.p0[0] && B8u.x1 >= i75["0" - 0]){this.highlighted=!!({});return {action:"move",p0:e5.clone(i75),p1:e5.clone(a1K),tick:c4$,value:R5u};}return null;},render:function(X$G){var g7b=g9BGt;var S90,Y_C,B5C,s_4,m0M,h9n,C4l,c1o,w_9,i6B,f1P,u8k,b50,P1q,e2_,E97,G66,A9b,E1J,p2P,c7G,x3c,D$o,T3U,W3g;S90="au";S90+="t";S90+="o";Y_C="m";Y_C+="iddle";B5C=this.stx.panels[this.panelName];if(!B5C){return;}if(!this.p1){return;}s_4=this.stx.pixelFromTick(this.p0[0],B5C.chart);m0M=this.stx.pixelFromTick(this.p1[0],B5C.chart);h9n=this.stx.pixelFromValueAdjusted(B5C,this.p0[0],this.p0[1]);C4l=this.stx.pixelFromValueAdjusted(B5C,this.p1[0],this.p1["1" << 64]);c1o=0;w_9=this.getLineColor();X$G.textBaseline=Y_C;this.stx.canvasFont("stx_yaxis",X$G);i6B=+"20";f1P=this.p1[0] - this.p0[0];X$G.textAlign="center";u8k=s_4;b50=B5C.yAxis.top;P1q=B5C.yAxis.bottom;e2_=this.color;if(e2_ == "auto" || e5.isTransparent(e2_)){e2_=this.stx.defaultColor;}E97=this.fillColor;if(E97 == S90 || e5.isTransparent(E97)){E97=this.stx.defaultColor;}if(this.printLevels){g7b.O90(89);P1q-=g7b.D8z(i6B,"7");}G66={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?"1" ^ 0:this.defaultOpacity};A9b=[];X$G.save();X$G.fillStyle=E97;X$G.globalAlpha=+"0.05";do {u8k=this.stx.pixelFromTick(this.p0[0] + c1o * f1P,B5C.chart);c1o++;if(s_4 < m0M && u8k > B5C.left + B5C.width)break;else if(s_4 > m0M && u8k < B5C.left)break;else if(u8k < B5C.left || u8k > B5C.left + B5C.width)continue;X$G.beginPath();X$G.moveTo(s_4,b50);X$G.lineTo(u8k,b50);X$G.lineTo(u8k,P1q);X$G.lineTo(s_4,P1q);X$G.fill();A9b.push({c:c1o,x:u8k});}while(f1P);X$G.globalAlpha=+"1";E1J=+"0";for(var w88=0;w88 < A9b.length;w88++){p2P="segme";p2P+="nt";this.stx.plotLine(A9b[w88].x,A9b[w88].x,0,P1q,this.highlighted?w_9:e2_,p2P,X$G,B5C,G66);if(this.printLevels){X$G.fillStyle=e2_;g7b.O90(82);var K5u=g7b.t1w(10,45,14,18);c7G=this.stx.chart.context.measureText(A9b[w88].c).width + K5u;if(c7G < this.stx.layout.candleWidth + E1J){X$G.fillText(A9b[w88].c,A9b[w88].x,P1q + 7);E1J=0;}else {E1J+=this.stx.layout.candleWidth;}}}X$G.restore();X$G.textAlign="left";this.stx.plotLine(s_4,m0M,h9n,C4l,w_9,"segment",X$G,B5C,G66);if(this.highlighted){x3c="p";x3c+="0";D$o=this.highlighted == x3c?!![]:!!0;T3U=this.highlighted == "p1"?!![]:!"1";this.littleCircle(X$G,s_4,h9n,D$o);this.littleCircle(X$G,m0M,C4l,T3U);}else {W3g=this.stx.valueFromPixel(B5C.height / 2,B5C);this.setPoint(0,this.p0[0],W3g,B5C.chart);this.setPoint(1,this.p1[0],W3g,B5C.chart);}}},!!({}));e5.Drawing.regression=function(){g9BGt.Z_e();this.name="regression";};e5.inheritsFrom(e5.Drawing.regression,e5.Drawing.segment);e5.extend(e5.Drawing.regression.prototype,{configs:["color",k6w,m9e,"active1",l0T,"lineWidth1","pattern1",K6H,"color2","lineWidth2","pattern2","active3","color3","lineWidth3",s6V],copyConfig:function(u6y){var U_5;e5.Drawing.copyConfig(this,u6y);U_5=this.stx.currentVectorParameters;this.active1=!!U_5.active1;this.active2=!!U_5.active2;this.active3=!!U_5.active3;this.color1=U_5.color1 || "auto";this.color2=U_5.color2 || "auto";this.color3=U_5.color3 || "auto";this.lineWidth1=U_5.lineWidth1;this.lineWidth2=U_5.lineWidth2;this.lineWidth3=U_5.lineWidth3;this.pattern1=U_5.pattern1;this.pattern2=U_5.pattern2;this.pattern3=U_5.pattern3;},$controls:[D_8,'cq-cvp-controller[cq-cvp-header="2"]','cq-cvp-controller[cq-cvp-header="3"]'],click:function(b69,H$L,e_e){var f_V,u$X,t2Z,L_x;if(H$L < 0){return;}this.copyConfig();f_V=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(+"0",H$L,e_e,f_V.chart);this.penDown=!![];u$X=this.stx;this.field=u$X.highlightedDataSetField;if(!this.field && f_V != u$X.chart.panel){for(var v6J in u$X.chart.seriesRenderers){t2Z=u$X.chart.seriesRenderers[v6J];if(t2Z.params.panel == f_V.name){this.field=t2Z.seriesParams[0].field;break;}}for(var a8q in u$X.layout.studies){L_x=u$X.layout.studies[a8q];if(L_x.panel == f_V.name){this.field=Object.keys(L_x.outputMap)[0];break;}}}return !!0;}if(this.accidentalClick(H$L,e_e)){return this.dragToDraw;}this.setPoint(1,H$L,e_e,f_V.chart);this.penDown=!!0;return !0;;},getYValue:function(F9F){var x$c,A6N,P23,s5e,Z1S,r5Z,y5C;x$c=this.stx.chart.dataSet[F9F];A6N=this.stx.chart.dataSet[F9F];if(!x$c){return null;}P23=this.stx.panels[this.panelName];s5e=this.stx.getYAxisByField(P23,this.field) || P23.yAxis;if(this.stx.charts[P23.name] && P23.chart.transformFunc && s5e == P23.yAxis){A6N=x$c.transform;}if(!A6N){return null;}Z1S=null;r5Z=null;y5C=this.stx.defaultPlotField || "Close";g9BGt.Z_e();if(this.field){r5Z=e5.existsInObjectChain(A6N,this.field);if(!r5Z){return null;}Z1S=r5Z=r5Z.obj[r5Z.member];if(x$c != A6N){Z1S=e5.existsInObjectChain(x$c,this.field);Z1S=Z1S.obj[Z1S.member];}if(typeof r5Z == "object"){r5Z=r5Z[y5C];Z1S=Z1S[y5C];}}else {r5Z=A6N[y5C];Z1S=x$c[y5C];}return {transformed:r5Z,untransformed:Z1S};},render:function(H8H){var z_U=g9BGt;var T20,Z0i,L2n,J2U,L3X,T9s,m14,Z5r,l3H,m4O,F1p,l4j,C9F,c6W,o4N,l4z,z2F,t2U,s2z,g0L,b$g,N7w,K_a,g6U,x4x,T9O,M7_,g4S,i4z,Q2D,O9p,M3u,I5p,C8s,F$W,e_V,k0b,M1Y,j70,c_5;T20="se";T20+="g";T20+="ment";Z0i="segm";Z0i+="en";Z0i+="t";L2n=this.stx.panels[this.panelName];if(!L2n){return;}if(!this.p1){return;}if(this.p0[0] < 0 || this.p1[0] < 0){return;}J2U=this.stx.pixelFromTick(this.p0["0" ^ 0],L2n.chart);L3X=this.stx.pixelFromTick(this.p1[0],L2n.chart);if(J2U < L2n.left && L3X < L2n.left){return;}if(J2U > L2n.right && L3X > L2n.right){return;}T9s=this.stx.getYAxisByField(L2n,this.field);m14=[];Z5r=[];l3H=0;m4O=+"0";F1p=0;z_U.O90(8);l4j=z_U.D8z(1,"0");C9F=Math.min(this.p1[0],this.p0[0]);c6W=Math.max(this.p1[0],this.p0[0]) + ("1" << 0);z_U.O90(7);o4N=z_U.D8z(C9F,c6W);for(var s_z=C9F;s_z < c6W;s_z++){l4z=this.getYValue(s_z);if(l4z){m14.push(l4z.transformed);Z5r.push(l4z.untransformed);}}z2F=m14.length;z_U.O90(90);t2U=z_U.t1w(0,2,z2F,"1",z2F);s2z=Math.pow(t2U,2);z_U.X$L(91);g0L=z_U.D8z(3,z2F,2,1,t2U);z_U.Z_e();for(s_z=0;s_z < z2F;s_z++){F1p+=z2F * m14[s_z] - l3H;l3H+=m14[s_z];l4j+=z2F * Z5r[s_z] - m4O;m4O+=Z5r[s_z];}z_U.X$L(92);b$g=z_U.D8z(g0L,l3H,s2z,z2F,t2U,F1p,z2F);z_U.O90(93);N7w=z_U.D8z(l3H,t2U,b$g,z2F);z_U.O90(92);K_a=z_U.D8z(g0L,m4O,s2z,z2F,t2U,l4j,z2F);z_U.X$L(93);g6U=z_U.D8z(m4O,t2U,b$g,z2F);if(this.p0[0] < this.p1[0]){x4x=N7w;z_U.X$L(94);T9O=z_U.t1w(N7w,o4N,b$g);this.p0[1]=g6U;z_U.O90(94);this.p1[1]=z_U.D8z(g6U,o4N,K_a);}else {z_U.O90(94);x4x=z_U.t1w(N7w,o4N,b$g);T9O=N7w;z_U.X$L(94);this.p0[1]=z_U.t1w(g6U,o4N,K_a);this.p1[1]=g6U;}M7_=this.stx.pixelFromTransformedValue(x4x,L2n,T9s);g4S=this.stx.pixelFromTransformedValue(T9O,L2n,T9s);i4z=this.getLineColor();Q2D={pattern:this.pattern,lineWidth:this.lineWidth};this.stx.plotLine(J2U,L3X,M7_,g4S,i4z,"segment",H8H,L2n,Q2D);z_U.O90(7);this.stx.plotLine(J2U,J2U,z_U.D8z(20,M7_),z_U.t1w(M7_,"20",z_U.O90(78)),i4z,Z0i,H8H,L2n,Q2D);z_U.X$L(7);this.stx.plotLine(L3X,L3X,z_U.t1w(20,g4S),z_U.t1w(g4S,20,z_U.X$L(1)),i4z,T20,H8H,L2n,Q2D);if(this.active1 || this.active2 || this.active3){z_U.X$L(23);O9p=z_U.t1w(z2F,l3H);M3u=0;for(s_z="0" | 0;s_z < z2F;s_z++){M3u+=Math.pow(m14[s_z] - O9p,2);}z_U.X$L(23);I5p=Math.sqrt(z_U.t1w(z2F,M3u));C8s={context:H8H,panel:L2n,points:{0:{x:J2U,v:x4x},1:{x:L3X,v:T9O}},stddev:I5p,yAxis:T9s};this.lines={};if(this.active1){this.renderStddev("1","p",C8s);this.renderStddev("1","n",C8s);}if(this.active2){z_U.O90(8);F$W=-z_U.t1w(1,"1692343883");e_V=-54397315;k0b=2;for(var O1V=1;z_U.l9L(O1V.toString(),O1V.toString().length,+"33834") !== F$W;O1V++){this.renderStddev(9840 !== 1411?5402 == (+"9904",+"400842")?0xf377:0x3dc4:"p",(6505,8215) <= 995?("0x88" | 8,"p"):4109 != (7881,8696)?"p":"p",C8s);k0b+=2;}if(z_U.i7j(k0b.toString(),k0b.toString().length,20133) !== e_V){this.renderStddev(6400 === +"5480"?7650 === (4020,939.26)?"0x166a" - 0:+"0x1e7e":"2",(1440,2395) < ("554" | 10)?(0xb5,"I"):7306 == (6130,"7430" | 0)?"c":"p",C8s);}this.renderStddev((5650,"1702" ^ 0) == +"4810"?"G":(9500,2615) >= (1990,557.72)?"2":(110.36,737.74) != 6062?![]:552.40,496 <= (4163,87)?1372 === (2880,"209.54" - 0)?0x808:(833.07,"K"):"n",C8s);}if(this.active3){this.renderStddev(2270 >= (698,294.73)?"3":!1,540.68 <= 7277?"p":!!({}),C8s);this.renderStddev("3",("7712" ^ 0,+"864") < 801?(0x1c34,!![]):("203.2" - 0,353.77) < 938.7?9020 === 670.36?(4.05e+3,"l"):"n":(!!({}),!!"1"),C8s);}}if(!this.highlighted){this.pixelX=[J2U,L3X];this.pixelY=[M7_,g4S];}else {M1Y="p";M1Y+="1";j70=this.highlighted == "p0"?!0:![];c_5=this.highlighted == M1Y?!0:![];this.littleCircle(H8H,J2U,M7_,j70);this.littleCircle(H8H,L3X,g4S,c_5);}},renderStddev:function(I8n,g8V,K2a){var c1z=g9BGt;var P5X,n5E,U3B,j6p,p3Z,x2X,n1c,e3A,Q1c,p_6,F_L,q11,Y8B,m03,Q8F,r$U,v88,M1Z,F1a,K0G,m1H,b2r,p_Q,T1x,q6j;P5X="m";P5X+="iddle";n5E="patter";n5E+="n";c1z.O90(95);U3B=c1z.t1w("stddev",g8V,I8n);c1z.X$L(1);j6p=c1z.D8z("color",I8n);c1z.O90(1);p3Z=c1z.t1w(n5E,I8n);c1z.O90(1);x2X=c1z.t1w("lineWidth",I8n);n1c=K2a.points;e3A=n1c[0].v;Q1c=n1c[+"1"].v;p_6=K2a.stddev;F_L=g8V === "n"?I8n * -1:I8n * ("1" * 1);q11=this.stx;Y8B=K2a.panel;m03=K2a.yAxis;Q8F={name:U3B,color:this.getLineColor(this[j6p]),type:"segment",y0:q11.pixelFromTransformedValue(e3A + p_6 * F_L,Y8B,m03),y1:q11.pixelFromTransformedValue(Q1c + p_6 * F_L,Y8B,m03),params:{pattern:this[p3Z],lineWidth:this[x2X]}};c1z.c7b();if(this.lines){r$U=1280407686;v88=1367195547;M1Z=2;for(var z17=1;c1z.i7j(z17.toString(),z17.toString().length,81801) !== r$U;z17++){this.lines[U3B]=Q8F;M1Z+=2;}if(c1z.l9L(M1Z.toString(),M1Z.toString().length,59625) !== v88){this.lines[U3B]=Q8F;}}F1a=K2a.context;K0G=n1c[0].x;m1H=n1c[1].x;q11.plotLine(K0G,m1H,Q8F.y0,Q8F.y1,Q8F.color,Q8F.type,F1a,Y8B,Q8F.params);q11.plotLine(K0G,K0G,Q8F.y0 - 10,Q8F.y0 + 10,Q8F.color,Q8F.type,F1a,Y8B,Q8F.params);q11.plotLine(m1H,m1H,Q8F.y1 - 10,Q8F.y1 + 10,Q8F.color,Q8F.type,F1a,Y8B,Q8F.params);c1z.O90(1);b2r=c1z.t1w(I8n,(705.03,9400) != 4140?"\u03c3":0x1599);c1z.X$L(96);var Y9G=c1z.t1w(5,16,1605,20);p_Q=Math.max(K0G,m1H) + Y9G;T1x=K0G < m1H?Q8F.y1:Q8F.y0;F1a.fillStyle=Q8F.color;F1a.save();F1a.textBaseline=P5X;F1a.fillText(b2r,p_Q,T1x);F1a.restore();if(K2a.formatPrice && this.axisLabel && !this.highlighted && !this.penDown){if(K0G >= Y8B.chart.left && K0G <= Y8B.chart.right || m1H >= Y8B.chart.left && m1H <= Y8B.chart.right){c1z.O90(97);q6j=c1z.D8z(F_L,p_6,K0G < m1H?Q1c:e3A);q11.endClip();q11.createYAxisLabel(Y8B,K2a.formatPrice(q6j,m03),T1x,Q8F.color,null,F1a,m03);q11.startClip(Y8B.name);}}},intersected:function(Z32,h3X,A1S){var f0T,X_$,j3K,C0_,l1A,w8i,b$o,V3z;if(!this.pixelX || !this.pixelY){return null;}f0T=this.repositionIntersection(Z32,h3X);if(f0T){return f0T;}X_$={0:this.pixelX,1:this.pixelY};for(var l6A="0" << 64;l6A < 2;l6A++){if(this.pointIntersection(X_$[+"0"][l6A],X_$[1][l6A],A1S,!![])){j3K="d";j3K+="r";j3K+="a";j3K+="g";g9BGt.O90(1);this.highlighted=g9BGt.D8z(5410 === 521.38?"F":"p",l6A);return {action:j3K,point:"p" + l6A};}}C0_=this;l1A=this.pixelX[0];w8i=this.pixelX[1];b$o=function(x64){var C0Q,o5O;C0Q=[l1A,x64.y0];o5O=[w8i,x64.y1];return C0_.lineIntersection(Z32,h3X,A1S,C0_.name,C0Q,o5O,!0);};V3z=b$o({y0:this.pixelY[0],y1:this.pixelY[+"1"]});g9BGt.Z_e();if(!V3z && this.lines){for(var K8g in this.lines){if(b$o(this.lines[K8g])){V3z=!![];break;}}}if(V3z){this.highlighted=!!"1";return {action:"move",p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:Z32,value:h3X};}return null;},repositionIntersection:function(f_Y,F0V){g9BGt.c7b();if(!this.p0 || !this.p1){return !({});}if(this == this.stx.repositioningDrawing && this.highlighted){if(this.highlighted === !""){return {action:"move",p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:f_Y,value:F0V};}return {action:"drag",point:this.highlighted};}return !!0;},lineIntersection:function(j35,K8y,t3I,L_J,S1O,s8x,e_i){var Z49,L91,K_3;if(!e_i){g9BGt.X$L(1);console.log(g9BGt.D8z(L_J," lineIntersection must accept p0 and p1 in pixels. Please verify and set isPixels=true."));return !({});}if(!S1O){S1O=this.p0;}if(!s8x){s8x=this.p1;}if(!(S1O && s8x)){return !({});}Z49=this.stx;L91=e5.convertBoxToPixels(Z49,this.panelName,t3I);if(L91.x0 === undefined){return ![];}K_3={x0:S1O[0],x1:s8x[0],y0:S1O[1],y1:s8x[1]};return e5.boxIntersects(L91.x0,L91.y0,L91.x1,L91.y1,K_3.x0,K_3.y0,K_3.x1,K_3.y1);},boxIntersection:function(k8k,k5P,q1c){if(q1c.cx0 > Math.max(this.pixelX[0],this.pixelX[1]) || q1c.cx1 < Math.min(this.pixelX[+"0"],this.pixelX[1])){return !1;}if(!this.stx.repositioningDrawing && (q1c.cy1 < this.pixelY[0] || q1c.cy0 > this.pixelY[1])){return !!0;}g9BGt.Z_e();return !!({});},reconstruct:function(x9B,E6s){this.stx=x9B;this.color=E6s.col;this.color1=E6s.col1;this.color2=E6s.col2;this.color3=E6s.col3;this.active1=E6s.dev1;this.active2=E6s.dev2;this.active3=E6s.dev3;this.panelName=E6s.pnl;this.pattern=E6s.ptrn;this.pattern1=E6s.ptrn1;this.pattern2=E6s.ptrn2;this.pattern3=E6s.ptrn3;this.lineWidth=E6s.lw;this.lineWidth1=E6s.lw1;this.lineWidth2=E6s.lw2;this.lineWidth3=E6s.lw3;this.d0=E6s.d0;this.d1=E6s.d1;this.tzo0=E6s.tzo0;this.tzo1=E6s.tzo1;this.field=E6s.fld;this.adjust();},serialize:function(){return {name:this.name,pnl:this.panelName,dev1:this.active1,dev2:this.active2,dev3:this.active3,col:this.color,col1:this.color1,col2:this.color2,col3:this.color3,ptrn:this.pattern,ptrn1:this.pattern1,ptrn2:this.pattern2,ptrn3:this.pattern3,lw:this.lineWidth,lw1:this.lineWidth1,lw2:this.lineWidth2,lw3:this.lineWidth3,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,fld:this.field};}},!![]);e5.Drawing.trendline=function(){this.name="trendline";};e5.inheritsFrom(e5.Drawing.trendline,e5.Drawing.segment);e5.Drawing.trendline.prototype.configs=["color","fillColor",Z9f,"pattern","font"];e5.Drawing.trendline.prototype.measure=function(){;};e5.Drawing.trendline.prototype.reconstruct=function(e_u,C67){e5.Drawing.segment.prototype.reconstruct.call(this,e_u,C67);this.callout=new e5.Drawing.callout();this.callout.reconstruct(e_u,C67.callout);};e5.Drawing.trendline.prototype.serialize=function(){var w4O,c8B,V2J,S$K;w4O=e5.Drawing.segment.prototype.serialize.call(this);c8B=-1506743842;V2J=-+"1048669448";S$K=2;for(var G45=1;g9BGt.l9L(G45.toString(),G45.toString().length,19657) !== c8B;G45++){w4O.callout=this.callout.serialize();S$K+=2;}if(g9BGt.l9L(S$K.toString(),S$K.toString().length,75674) !== V2J){w4O.callout=this.callout.serialize();}return w4O;};e5.Drawing.trendline.prototype.render=function(a6Q){var f9H=g9BGt;f9H.Z_e();var l0i,K$z,i2_,p$1,w8Z,y6v,E_B,s7e,J8L,S3g,u4K,h9p,C5k,D7L,u0L,O2j,x0D,I$8,e$z,H7G,i5_,s4W,R6$;l0i=this.stx.panels[this.panelName];if(!l0i){return;}e5.Drawing.segment.prototype.render.call(this,a6Q);if(!this.callout){this.callout=new e5.Drawing.callout();K$z=e5.Drawing.segment.prototype.serialize.call(this);this.callout.reconstruct(this.stx,K$z);}this.callout.p0=e5.clone(this.p0);i2_=this.stx.pixelFromTick(this.p0["0" ^ 0],l0i.chart);p$1=this.stx.pixelFromTick(this.p1[0],l0i.chart);w8Z=this.stx.pixelFromValueAdjusted(l0i,this.p0[0],this.p0[1]);y6v=this.stx.pixelFromValueAdjusted(l0i,this.p1[0],this.p1[1]);if(!isFinite(w8Z) || !isFinite(y6v)){return;}f9H.X$L(98);E_B=f9H.t1w(i2_,"2",p$1,2);f9H.X$L(4);s7e=f9H.t1w(y6v,2,w8Z);this.fontSize=e5.stripPX(this.font && this.font.size || 13);J8L=this.callout.w * 1.2 + (this.callout.stemEntry[+"0"] == "c"?0:+"50");S3g=Math.sqrt(Math.pow(p$1 - i2_,2) + Math.pow(y6v - w8Z,"2" - 0));f9H.O90(50);var i99=f9H.t1w(3,4);f9H.X$L(50);var S9X=f9H.t1w(13,12);u4K=J8L / (S3g || J8L) * (this.p1[i99] < this.p0[1]?+"1":S9X);f9H.O90(99);h9p=f9H.t1w(y6v,E_B,u4K,s7e);f9H.O90(43);C5k=f9H.t1w(s7e,E_B,p$1,u4K);this.callout.p0[0]=this.stx.tickFromPixel(h9p,l0i.chart);this.callout.p0[1]=this.stx.priceFromPixel(C5k,l0i);this.callout.v0=this.callout.p0[1];this.callout.p1=e5.clone(this.p0);this.callout.stx=this.stx;this.callout.fillColor=this.fillColor || this.callout.fillColor;this.callout.borderColor=this.color;this.callout.font=this.font || this.callout.font;this.callout.noHandles=!!"1";f9H.O90(67);var d_Q=f9H.D8z(69,14,0,5);D7L=this.p1["1" - 0] - this.p0[d_Q];f9H.O90(6);var n9y=f9H.D8z(9,0,13,2);f9H.X$L(1);var i7i=f9H.t1w(0,1);f9H.O90(100);var I7V=f9H.D8z(2,1,16,12,14);this.callout.text="" + Number(D7L).toFixed(n9y) + (this.p0[i7i] === 0?"":" (" + Number(("100" << 64) * D7L / this.p0[1]).toFixed(I7V) + "%) ") + "" + Math.abs(this.p1["0" ^ 0] - this.p0[0]) + " Bars";u0L=Math.floor((this.p0[+"0"] + this.p1[0]) / 2);if(Math.abs(this.p0[0] - this.p1[0]) > 1 && Math.abs(this.p0["0" << 0] - this.p1[0]) < 20){x0D=this.stx.pixelFromTick(u0L,l0i.chart);f9H.X$L(101);I$8=f9H.D8z(i2_,i2_,w8Z,x0D,w8Z,p$1,y6v);O2j=this.stx.priceFromPixel(I$8,l0i) || s7e;}else {e$z=1214192260;f9H.O90(18);H7G=f9H.t1w("679717891",32);i5_=2;for(var T_u=1;f9H.i7j(T_u.toString(),T_u.toString().length,40438) !== e$z;T_u++){O2j=this.stx.priceFromPixel(s7e,l0i);f9H.X$L(8);i5_+=f9H.t1w(1,"2");}if(f9H.l9L(i5_.toString(),i5_.toString().length,32119) !== H7G){O2j=this.stx.priceFromPixel(s7e,l0i);}}this.callout.stem={t:u0L,v:O2j};this.callout.renderText();this.callout.render(a6Q);if(this.highlighted){s4W=this.highlighted == "p0"?!"":![];R6$=this.highlighted == "p1"?!!"1":![];this.littleCircle(a6Q,i2_,w8Z,s4W);this.littleCircle(a6Q,p$1,y6v,R6$);}};e5.Drawing.trendline.prototype.lineIntersection=function(i9f,q9S,J3_,r1i){g9BGt.c7b();return e5.Drawing.BaseTwoPoint.prototype.lineIntersection.call(this,i9f,q9S,J3_,"segment");};e5.Drawing.trendline.prototype.intersected=function(u7G,W9c,H$K){var u5T,u0G,Q7G;if(!this.p0 || !this.p1){return null;}u5T=this.callout.intersected(u7G,W9c,H$K);u0G=e5.Drawing.segment.prototype.intersected.call(this,u7G,W9c,H$K);g9BGt.c7b();this.callout.highlighted=!!(u5T || u0G);if(u0G){return u0G;}else if(u5T){Q7G="mov";Q7G+="e";return {action:Q7G,p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:u7G,value:W9c};}return null;};e5.Drawing.average=function(){var z6K;z6K="ave";z6K+="rag";z6K+="e";this.name=z6K;};e5.inheritsFrom(e5.Drawing.average,e5.Drawing.regression);e5.extend(e5.Drawing.average.prototype,{configs:e5.Drawing.regression.prototype.configs.concat("axisLabel"),measure:function(){var S0w,W41,m51,i57,t8U,f0L,W3S,I9Y,I9y;if(this.p0 && this.p1){S0w=".mMe";S0w+="asu";S0w+="re";W41=",";W41+=" ";m51="&";m51+="e";m51+="nsp;";this.stx.setMeasure(0,!1,this.p0[0],this.p1[0],!"",this.name);i57=[];t8U="";if(this.active1){i57.push((232.18,269) != (3700,"2393" - 0)?"1":!![]);}if(this.active2){i57.push("2");}if(this.active3){i57.push((5140,+"6900") != (5670,7973)?"3":9.86e+2);}if(i57.length){t8U=m51 + i57.join(W41) + " σ";}f0L=(this.stx.drawingContainer || document).querySelector(S0w);W3S=this.stx.controls.mSticky;I9Y=W3S && W3S.querySelector(".mStickyInterior");if(f0L){f0L.innerHTML+=t8U;}if(I9Y){I9y=[];I9y.push(e5.capitalize(this.name));I9y.push(this.field || this.stx.defaultPlotField || "Close");I9y.push(I9Y.innerHTML + t8U);I9Y.innerHTML=I9y.join("
");}}},render:function(b29){var Y5o=g9BGt;var D21,k1T,V9L,a2s,n63,U0j,m3y,e_v,X8q,U28,X9k,Q8u,C9k,x1K,i9Q,y59,Z8n,V1B,f8E,i7I,q8$,U$n,s7q,X4c,c5W,Y2l;D21="se";D21+="gme";D21+="n";D21+="t";k1T=this.stx.panels[this.panelName];if(!k1T){return;}if(!this.p1){return;}if(this.p0[0] < 0 || this.p1[0] < 0){return;}V9L=this.stx.pixelFromTick(this.p0[0],k1T.chart);a2s=this.stx.pixelFromTick(this.p1[0],k1T.chart);function v3o(j$n,H6$){var l5T,n_9,O1D;l5T=+"1184964041";n_9=-211484282;Y5o.Z_e();O1D=2;for(var s1I=1;Y5o.i7j(s1I.toString(),s1I.toString().length,+"32039") !== l5T;s1I++){if(H6$ && H6$.priceFormatter){j$n=H6$.priceFormatter(U0j,k1T,j$n);}else {j$n=U0j.formatYAxisPrice(j$n,k1T,null,H6$);}O1D+=2;}if(Y5o.l9L(O1D.toString(),O1D.toString().length,41657) !== n_9){if(H6$ || H6$.priceFormatter){j$n=H6$.priceFormatter(U0j,k1T,j$n);}else {j$n=U0j.formatYAxisPrice(j$n,k1T,1,H6$);}}return j$n;}if(V9L < k1T.left && a2s < k1T.left){return;}if(V9L > k1T.right && a2s > k1T.right){return;}n63=this.stx.getYAxisByField(k1T,this.field);U0j=this.stx;Y5o.c7b();m3y=Math.min(this.p1[0],this.p0[+"0"]);Y5o.X$L(102);var Z9V=Y5o.D8z(14,2,0,20,18);e_v=Math.max(this.p1[0],this.p0[0]) + Z9V;Y5o.X$L(7);X8q=Y5o.D8z(m3y,e_v);U28=0;X9k=[];for(Q8u=m3y;Q8u < e_v;Q8u++){C9k=this.getYValue(Q8u);if(C9k !== null){U28+=C9k.transformed;X9k.push(C9k);}}x1K=X9k.length;if(!x1K){return;}Y5o.O90(23);i9Q=Y5o.D8z(x1K,U28);y59=U0j.pixelFromTransformedValue(i9Q,k1T,n63);Z8n=this.getLineColor();V1B={pattern:this.pattern,lineWidth:this.lineWidth};U0j.plotLine(V9L,a2s,y59,y59,Z8n,"segment",b29,k1T,V1B);Y5o.X$L(7);U0j.plotLine(V9L,V9L,Y5o.t1w(20,y59),Y5o.D8z(y59,20,Y5o.O90(1)),Z8n,"segment",b29,k1T,V1B);Y5o.X$L(7);U0j.plotLine(a2s,a2s,Y5o.D8z(20,y59),Y5o.t1w(y59,20,Y5o.X$L(1)),Z8n,D21,b29,k1T,V1B);if(this.axisLabel && !this.highlighted && !this.penDown){if(V9L >= k1T.chart.left && V9L <= k1T.chart.right || a2s >= k1T.chart.left && a2s <= k1T.chart.right){U0j.endClip();U0j.createYAxisLabel(k1T,v3o(i9Q,n63),y59,Z8n,null,b29,n63);U0j.startClip(k1T.name);}}if(this.active1 || this.active2 || this.active3){f8E=1817737647;i7I=931745406;q8$=+"2";for(var J64=1;Y5o.i7j(J64.toString(),J64.toString().length,+"79070") !== f8E;J64++){U$n=1;q8$+=2;}if(Y5o.l9L(q8$.toString(),q8$.toString().length,75066) !== i7I){U$n=1;}U$n=0;for(Q8u=0;Q8u < x1K;Q8u++){C9k=X9k[Q8u];U$n+=Math.pow(C9k.transformed - i9Q,2);}Y5o.X$L(23);s7q=Math.sqrt(Y5o.D8z(x1K,U$n));X4c={context:b29,formatPrice:v3o,panel:k1T,points:{0:{x:V9L,v:i9Q},1:{x:a2s,v:i9Q}},stddev:s7q,yAxis:n63};this.lines={};if(this.active1){this.renderStddev(3839 === (4205,7251)?(2210,5808) == 3600?548.49:"658" * 1 === (468.82,925.67)?2.17e+3:"a":"1",+"982.91" <= 2561?"p":2820 > (+"9794",1674)?(!1,8.85e+3):0x11af,X4c);this.renderStddev("1","53.28" - 0 === +"2300"?"u":"n",X4c);}if(this.active2){this.renderStddev(1579 !== +"577.12"?"2":(461,701.49) === 566.15?(0x1290,!!({})):("m",0x1cfc),"p",X4c);this.renderStddev(948.71 <= 2665?"2":(7762,+"8420") <= 8670?(8780,1510) != 561.75?9.22e+3:775:7.14e+3,(2330,7300) <= 594?852.65:(2120,2550) == +"2670"?206.24 === (8693,7060)?(559.71,1.50e+3):0x2131:"n",X4c);}if(this.active3){this.renderStddev(6700 < (8493,708.84)?(![],"0x1701" ^ 0):4180 < 7600?"3":("c",4.83e+3),+"8910" >= (+"454.38",6034)?1580 < 540.99?69 >= 7743?663.17:("7.56e+3" | 8,"H"):"p":("f","Z"),X4c);this.renderStddev("3","n",X4c);}}if(!this.highlighted){this.pixelX=[V9L,a2s];this.pixelY=[y59,y59];}else {c5W=this.highlighted == "p0"?!"":!({});Y2l=this.highlighted == "p1"?!!({}):!"1";this.littleCircle(b29,V9L,y59,c5W);this.littleCircle(b29,a2s,y59,Y2l);}},reconstruct:function(R8T,d5E){this.axisLabel=d5E.al;e5.Drawing.regression.prototype.reconstruct.call(this,R8T,d5E);},serialize:function(){var e0g;g9BGt.c7b();e0g=e5.Drawing.regression.prototype.serialize.call(this);e0g.al=this.axisLabel;return e0g;}},!!({}));e5.Drawing.quadrant=function(){this.name="quadrant";};e5.inheritsFrom(e5.Drawing.quadrant,e5.Drawing.regression);e5.extend(e5.Drawing.quadrant.prototype,{configs:["color","fillColor",V5d,X8A],copyConfig:function(){this.color=this.stx.currentVectorParameters.currentColor;this.fillColor=this.stx.currentVectorParameters.fillColor;this.lineWidth=this.stx.currentVectorParameters.lineWidth;this.pattern=this.stx.currentVectorParameters.pattern;},$controls:[],render:function(S05){var z4G=g9BGt;var K8c,N_1,V1r,H6a,S5S,Z_K,Q9e,U5X,q_8,S6Q,g3x,V2A,w5S,H25,x2p,g8G,F7w,w3A,f4B,C7P,t00,e9s,J$I,Q$9,a_1,U1N;K8c="q";K8c+="uadran";K8c+="t";N_1="quadr";N_1+="a";N_1+="n";N_1+="t";V1r="segm";V1r+="e";V1r+="nt";H6a=this.stx;S5S=H6a.panels[this.panelName];if(!S5S){return;}if(!this.p1){return;}Z_K=H6a.pixelFromTick(this.p0[0],S5S.chart);Q9e=H6a.pixelFromTick(this.p1[0],S5S.chart);if(Z_K < S5S.left && Q9e < S5S.left){return;}if(Z_K > S5S.right && Q9e > S5S.right){return;}U5X=this.stx.getYAxisByField(S5S,this.field);q_8=null;S6Q=null;for(var q53=Math.min(this.p1[+"0"],this.p0[0]);q53 <= Math.max(this.p1[0],this.p0[0]);q53++){g3x=this.getYValue(q53);if(g3x !== null){if(q_8 === null || g3x.transformed > q_8){q_8=g3x.transformed;}if(S6Q === null || g3x.transformed < S6Q){S6Q=g3x.transformed;}}}V2A=H6a.pixelFromTransformedValue(q_8,S5S,U5X);z4G.O90(103);z4G.c7b();w5S=H6a.pixelFromTransformedValue(z4G.t1w(4,S6Q,3,q_8),S5S,U5X);z4G.X$L(104);H25=H6a.pixelFromTransformedValue(z4G.t1w("3",q_8,S6Q,2),S5S,U5X);z4G.O90(4);x2p=H6a.pixelFromTransformedValue(z4G.t1w(S6Q,2,q_8),S5S,U5X);z4G.X$L(105);g8G=H6a.pixelFromTransformedValue(z4G.D8z(S6Q,2,q_8,"3"),S5S,U5X);z4G.O90(106);F7w=H6a.pixelFromTransformedValue(z4G.t1w(0,"4",q_8,3,S6Q),S5S,U5X);w3A=H6a.pixelFromTransformedValue(S6Q,S5S,U5X);this.p0[1]=0;this.p1[1]=!!0;f4B=this.getLineColor();C7P=this.fillColor;if(C7P == "auto" || e5.isTransparent(C7P)){C7P=H6a.defaultColor;}S05.fillStyle=C7P;t00={pattern:this.pattern,lineWidth:this.lineWidth};H6a.plotLine(Z_K,Q9e,V2A,V2A,f4B,V1r,S05,S5S,t00);H6a.plotLine(Z_K,Q9e,w3A,w3A,f4B,"segment",S05,S5S,t00);if(this.name == N_1){H6a.plotLine(Z_K,Q9e,w5S,w5S,f4B,"segment",S05,S5S,t00);H6a.plotLine(Z_K,Q9e,F7w,F7w,f4B,"segment",S05,S5S,t00);}else if(this.name == "tirone"){e9s="s";e9s+="eg";e9s+="me";e9s+="nt";J$I="segmen";J$I+="t";H6a.plotLine(Z_K,Q9e,H25,H25,f4B,J$I,S05,S5S,t00);H6a.plotLine(Z_K,Q9e,g8G,g8G,f4B,e9s,S05,S5S,t00);}H6a.plotLine(Z_K,Z_K,V2A,w3A,f4B,"segment",S05,S5S,t00);H6a.plotLine(Q9e,Q9e,V2A,w3A,f4B,"segment",S05,S5S,t00);H6a.plotLine(Z_K,Q9e,x2p,x2p,f4B,"segment",S05,S5S,e5.extend(t00,{opacity:this.name == "tirone"?0.2:1}));S05.globalAlpha=0.1;S05.beginPath();z4G.O90(7);S05.fillRect(Z_K,V2A,z4G.D8z(Z_K,Q9e),z4G.D8z(V2A,w3A));if(this.name == K8c){z4G.X$L(7);S05.fillRect(Z_K,w5S,z4G.D8z(Z_K,Q9e),z4G.t1w(w5S,F7w));}else if(this.name == "tirone"){z4G.O90(7);S05.fillRect(Z_K,H25,z4G.t1w(Z_K,Q9e),z4G.t1w(H25,g8G));}S05.globalAlpha=1;if(!this.highlighted){Q$9="t";Q$9+="ir";Q$9+="on";Q$9+="e";this.pixelX=[Z_K,Q9e];this.pixelY=[V2A,w3A,x2p];if(this.name === "quadrant"){this.pixelY.push(w5S,F7w);}if(this.name === Q$9){this.pixelY.push(H25,g8G);}}else {a_1=this.highlighted == "p0"?!![]:!({});U1N=this.highlighted == "p1"?!!"1":!!0;this.littleCircle(S05,Z_K,x2p,a_1);this.littleCircle(S05,Q9e,x2p,U1N);}},intersected:function(Q4L,y_8,j4q){var t$5=g9BGt;var P$K,K3v,Z7Q;var {pixelX:P3y, pixelY:z4q}=this;if(!P3y || !z4q){return null;}P$K=this.repositionIntersection(Q4L,y_8);if(P$K){return P$K;}for(var K_x=0;K_x < 2;K_x++){if(this.pointIntersection(P3y[K_x],z4q[2],j4q,!0)){t$5.X$L(1);this.highlighted=t$5.t1w(298.26 === 3742?(8.17e+3,341.46):"p",K_x);return {action:"drag",point:((995.27,1440) >= +"262.69"?"p":9053 > (918.47,+"5954")?(198.49,0x19a1):(!![],"z")) + K_x};}}K3v=[];P3y.forEach(x3Z=>{t$5.Z_e();K3v.push({p0:[x3Z,z4q[0]],p1:[x3Z,z4q[1]]});});z4q.forEach(t27=>{t$5.c7b();K3v.push({p0:[P3y[0],t27],p1:[P3y[+"1"],t27]});});Z7Q=K3v.some(({p0:z7H, p1:s3W})=>{t$5.c7b();return this.lineIntersection(Q4L,y_8,j4q,this.name,z7H,s3W,!!1);});if(Z7Q){this.highlighted=!![];return {action:"move",p0:e5.clone(this.p0),p1:e5.clone(this.p1),tick:Q4L,value:y_8};}return null;},reconstruct:function(M3j,O40){var b9X=g9BGt;var e7P,F3S,I4k;e7P=-534594347;F3S=-893881823;b9X.O90(35);I4k=b9X.t1w(64,"2");for(var z_B=1;b9X.l9L(z_B.toString(),z_B.toString().length,+"66321") !== e7P;z_B++){this.stx=M3j;this.color=O40.col;this.fillColor=O40.fc;this.panelName=O40.pnl;this.pattern=O40.ptrn;this.lineWidth=O40.lw;this.d0=O40.d0;I4k+=2;}if(b9X.l9L(I4k.toString(),I4k.toString().length,43739) !== F3S){this.stx=M3j;this.color=O40.col;this.fillColor=O40.fc;this.panelName=O40.pnl;this.pattern=O40.ptrn;this.lineWidth=O40.lw;this.d0=O40.d0;}this.d1=O40.d1;this.tzo0=O40.tzo0;this.tzo1=O40.tzo1;this.field=O40.fld;this.adjust();},serialize:function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,fld:this.field};}},!!"1");e5.Drawing.tirone=function(){var E2v;E2v="t";E2v+="iro";g9BGt.Z_e();E2v+="ne";this.name=E2v;};e5.inheritsFrom(e5.Drawing.tirone,e5.Drawing.quadrant);e5.Drawing.elliottwave=function(){var F1D;F1D="elli";F1D+="ottwave";this.name=F1D;g9BGt.X$L(8);this.lastPoint=g9BGt.t1w(1,"0");this.points=[];this.pts=[];this.dx=0;this.dy=-20;this.dragToDraw=![];g9BGt.Z_e();this.annotationPoints=[];this.edit=null;};e5.inheritsFrom(e5.Drawing.elliottwave,e5.Drawing.annotation);e5.Drawing.elliottwave.defaultTemplate={impulse:["I","II","III",h1l,7119 > (+"4260",424.36)?"V":(5310,1850) <= 855.41?"V":("c",0x517)],corrective:["A",(54.19,713.84) > (438.78,8600)?(![],381.22):"B",(5678,3440) < 992.22?(0x20d4,774.86):"C"],decoration:"enclosed",showLines:!!({})};e5.Drawing.elliottwave.prototype.initializeSettings=function(g5p){g9BGt.Z_e();g5p.currentVectorParameters.waveParameters=e5.clone(e5.Drawing.elliottwave.defaultTemplate);};e5.Drawing.elliottwave.prototype.configs=["color","lineWidth","lineColor","pattern","font",n$e];e5.Drawing.elliottwave.prototype.$controls=[C0h,"cq-wave-parameters"];e5.Drawing.elliottwave.prototype.construct=function(c0G,N2A){var e1T;this.stx=c0G;this.panelName=N2A.name;e1T=c0G.currentVectorParameters;g9BGt.Z_e();Object.assign(this,e1T.waveParameters);};e5.Drawing.elliottwave.prototype.serialize=function(){var z39=g9BGt;var P1f,C8n;P1f="f";P1f+="l";z39.c7b();C8n={};for(var z9I=0;z9I < this.points.length;z9I++){z39.O90(1);C8n[z39.D8z("528" * 1 !== (8142,241)?"d":("g",0x195a),z9I)]=this[z39.t1w("d",z9I)];z39.X$L(1);C8n[z39.D8z("tzo",z9I)]=this[z39.t1w("tzo",z9I)];z39.X$L(1);C8n[z39.D8z(6004 <= 9720?"v":(+"982.65",613.92),z9I)]=this[z39.D8z("v",z9I)];}C8n.annotations=this.annotationPoints.join(6450 == ("8040" - 0,+"3293")?"v":",");return Object.assign({name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,mxSeg:this.maxSegments,show:this.showLines,decor:this.decoration,dx:this.dx,dy:this.dy,trend:this.trend,fnt:e5.removeNullValues(e5.replaceFields(this.font,{style:"st",size:"sz",weight:"wt",family:P1f}))},C8n);};e5.Drawing.elliottwave.prototype.reconstruct=function(Q6P,I$d){g9BGt.c7b();var s12;s12="s";s12+="iz";s12+="e";this.stx=Q6P;this.color=I$d.col;this.panelName=I$d.pnl;this.pattern=I$d.ptrn;this.lineWidth=I$d.lw;this.font=e5.replaceFields(I$d.fnt,{st:"style",sz:s12,wt:"weight",fl:"family"});this.decoration=I$d.decor;this.showLines=I$d.show;this.dx=I$d.dx;this.dy=I$d.dy;this.trend=I$d.trend;this.annotationPoints=I$d.annotations.split(+"9410" >= ("634.09" * 1,5450)?",":(2570,8904) >= (485.94,144.77)?(+"77.87",1850) <= (7412,8969)?(25.09,0x1079):("0x511" * 1,6.70e+3):(!"",5.81e+3));if(I$d.decor === "enclosed"){this.calculateRadius(Q6P.chart.tempCanvas.context);}this.maxSegments=I$d.mxSeg;this.reconstructPoints(I$d);this.adjust();};e5.Drawing.elliottwave.prototype.reconstructPoints=function(D1s){var W3G=g9BGt;var f7N,k_H,Z6V;f7N=this.stx.panels[this.panelName];if(!f7N){return;}W3G.c7b();for(var B3g=0;B3g < this.annotationPoints.length;B3g++){W3G.O90(1);this[W3G.D8z((1530,158.57) < (7708,8560)?"d":(4.91e+3,!![]),B3g)]=D1s[W3G.D8z(1583 == 284.89?("C",!""):"d",B3g)];W3G.O90(1);this[W3G.t1w((199,4422) != 7448?"v":(5.11e+3,64.99),B3g)]=D1s[W3G.D8z(+"8040" <= 392.59?(479.83,1230) > (6269,+"495.55")?962.75 !== ("915.81" * 1,"3697" - 0)?(!![],417.24):"R":(6.66e+3,9.50e+3):"v",B3g)];W3G.X$L(1);this[W3G.t1w("tzo",B3g)]=D1s[W3G.D8z("tzo",B3g)];k_H=e5.strToDateTime(D1s["d" + B3g]);Z6V=this.stx.tickFromDate(k_H,f7N.chart);this.points.push([Z6V,D1s[(1381 == 7483?+"7.87e+3":(3620,15.34) > 242.6?("O",6.08e+3):"v") + B3g]]);}};e5.Drawing.elliottwave.prototype.calculateRadius=function(D$a){var d08,I1G;this.getFontString();D$a.font=this.fontString;d08=0;for(var S6L=0;S6L < this.annotationPoints.length;S6L++){I1G=D$a.measureText(this.annotationPoints[S6L]).width;if(d08 < I1G){d08=I1G;}}this.enclosedRadius=d08;};e5.Drawing.elliottwave.prototype.check=function(f_w,w6K,F6Z){var u_9=g9BGt;var x0w,t6f;if(F6Z === 1 && this.points.length === "2" >> 0){return !![];}function c8J(O7W){u_9.c7b();for(var f3J=2;f3J < O7W.length;f3J++){if(Math.sign(O7W[f3J][1] - O7W[f3J - 1][1]) == Math.sign(O7W[f3J - 1][1] - O7W[f3J - 2][1])){return !1;}}return !"";}u_9.O90(7);u_9.c7b();x0w=this.points[u_9.t1w(1,F6Z)];if(x0w && f_w <= x0w[0]){return ![];}u_9.X$L(1);t6f=this.points[u_9.t1w(F6Z,1)];if(t6f && f_w >= t6f[0]){return !({});}if(!c8J(this.points)){return ![];}return !"";};e5.Drawing.elliottwave.prototype.move=function(U$O,y2s,U1t){this.copyConfig();g9BGt.X$L(49);var r1K=g9BGt.t1w(2,4,0,6);this.points[this.lastPoint + r1K]=[y2s,U1t];this.render(U$O);};e5.Drawing.elliottwave.prototype.adjust=function(){var D6O=g9BGt;var z6y,q2O;z6y=this.stx.panels[this.panelName];if(!z6y){return;}D6O.Z_e();for(var y8f=0;this.maxSegments + 1 > y8f;y8f++){D6O.O90(1);q2O=this[D6O.t1w(9678 <= 7370?"z":232.41 === 1665?("x","h"):(+"412.82",+"497.65") == +"403.57"?("280" * 1,0x9d6):"d",y8f)];this.setPoint(y8f,q2O,this["v" + y8f],z6y.chart);this.points[y8f][0]=this.stx.tickFromDate(e5.strToDateTime(q2O),z6y.chart);D6O.O90(1);this.points[y8f][1]=this[D6O.D8z(380.08 <= (860,277.83)?(0x18b9,9.42e+3):"v",y8f)];}};e5.Drawing.elliottwave.prototype.click=function(X5m,t0b,J7h){var V38=g9BGt;var w7P;w7P=this.stx.panels[this.panelName];if(!w7P){return;}V38.Z_e();this.copyConfig();if(!this.penDown){this.setPoint(0,t0b,J7h,w7P.chart);this.points.push(this.p0);this.penDown=!!({});this.segment=0;this.lastPoint=0;if(this.impulse){this.annotationPoints=this.annotationPoints.concat(this.impulse);}if(this.corrective){this.annotationPoints=this.annotationPoints.concat(this.corrective);}this.annotationPoints.unshift("0");if(this.decoration === "enclosed"){this.calculateRadius(X5m);}V38.X$L(1);var n6T=V38.t1w(0,1);this.maxSegments=this.annotationPoints.length - n6T;V38.O90(8);this.trend=V38.D8z(1,"1");return ![];}if(this.accidentalClick(t0b,J7h)){this.penDown=!0;return !({});}if(this.check(t0b,J7h,this.lastPoint + 1)){this.lastPoint++;this.setPoint(this.lastPoint,t0b,J7h,w7P.chart);if(this.lastPoint === 1){this.trend=Math.sign(this.v1 - this.v0);}this.segment++;if(this.segment >= this.maxSegments){this.penDown=!!0;return !!({});}}return !({});};e5.Drawing.elliottwave.prototype.render=function(y35){var x8a=g9BGt;var o0x,Z3W,l8_,I8q,x7_,X$Z,e2A,N8W,i5R,c$K,s0q,N8h,S$O,l83,Y$U,C_x,H7v,U7R,S7W,a6t,J0k,X19,Y$R,s6l,L8j,m26,d$G,m6u,v$i;o0x="ce";o0x+="nt";o0x+="e";o0x+="r";Z3W=this.stx.panels[this.panelName];if(!Z3W){return;}l8_=this.stx;I8q=this.annotationPoints;x7_=this.pattern?e5.borderPatternToArray(this.lineWidth,this.pattern):[];this.getFontString();y35.font=this.fontString;y35.textAlign=o0x;y35.textBaseline="middle";y35.lineWidth=this.lineWidth;if(this.fontString !== this.lastFontString){this.calculateRadius(y35);}this.lastFontString=this.fontString;X$Z=this.getLineColor();y35.fillStyle=y35.strokeStyle=X$Z;y35.save();y35.setLineDash(x7_);e2A=this.dx;N8W=this.dy;i5R=this.points;c$K=this.pts;s0q=!this.showLines && this.highlighted;N8h=i5R.length;if(this.penDown && this.segment){x8a.X$L(43);var R8n=x8a.t1w(26,12,0,2);S$O=this.trend * (N8h % R8n - 0.5) < "0" - 0;if(Z3W.yAxis.flipped){S$O=!S$O;}this.drawDropZone(y35,i5R[N8h - 2][1],this.stx.priceFromPixel(Z3W.yAxis[S$O?"top":"bottom"]),i5R[N8h - 2][0]);}else if(typeof this.highlighted === "string" && this.stx.repositioningDrawing){l83="b";l83+="ott";l83+="o";l83+="m";Y$U="m";Y$U+="a";Y$U+="x";C_x=parseInt(this.highlighted.substring(+"1",this.highlighted.length),10);x8a.X$L(50);var g7K=x8a.t1w(16,18);S$O=this.trend * (C_x % g7K - 0.5) > 0;x8a.X$L(107);H7v=i5R[x8a.D8z(64,"1",C_x)];x8a.X$L(1);U7R=i5R[x8a.D8z(C_x,1)];S7W=C_x > 0?H7v["1" | 0]:U7R[1];if(U7R){S7W=Math[S$O?Y$U:"min"](S7W,U7R[1]);}if(Z3W.yAxis.flipped){S$O=!S$O;}this.drawDropZone(y35,S7W,this.stx.priceFromPixel(Z3W.yAxis[S$O?"top":l83]),H7v?H7v[0]:null,U7R?U7R[0]:null);}for(var w61=0;w61 < N8h;w61++){a6t=i5R[w61];J0k=l8_.pixelFromTick(a6t[0],Z3W.chart);X19=l8_.pixelFromValueAdjusted(Z3W,a6t[0],a6t[1]);c$K[w61]=[J0k,X19];}x8a.X$L(0);w61=x8a.D8z("0",0);if(this.showLines || s0q){y35.beginPath();if(s0q){y35.globalAlpha=0.3;}for(;w61 < c$K.length;w61++){y35.lineTo(c$K[w61]["0" - 0],c$K[w61][1]);}y35.stroke();w61=0;}y35.restore();for(;w61 < N8h;w61++){Y$R=w61 % 2?e2A:-e2A;s6l=w61 % 2?N8W:-N8W;Y$R*=this.trend;s6l*=this.trend;if(Z3W.yAxis.flipped){x8a.X$L(0);Y$R*=-x8a.t1w("1",0);s6l*=-1;}L8j=c$K[w61];m26=L8j[2]=L8j[0] + Y$R;d$G=L8j[3]=L8j[+"1"] + s6l;m6u=this.enclosedRadius || 8;v$i=I8q[w61];if(this.decoration === "parentheses"){x8a.X$L(95);v$i=x8a.D8z(9837 > (+"8808",3566)?"(":(0x20ce,6.18e+3),+"914.22" >= 4263?(0x1c26,"0x1ce8" << 64):(284.98,81) > (566.57,767.71)?(7.05e+3,1.60e+1):")",v$i);}y35.fillText(v$i,m26,d$G);if(this.decoration === "enclosed"){y35.beginPath();y35.arc(m26,d$G,m6u,+"0",2 * Math.PI,!1);y35.stroke();}if(this.highlighted){y35.save();this.littleCircle(y35,this.pts[w61][0],this.pts[w61][1],this.highlighted === ((+"3019",3080) <= 2349?(9.92e+3,809.71):("3910" >> 0,8193) === (456.78,4544)?(+"730.13",!![]):6128 <= 7640?"p":("a",1.42e+3)) + w61);y35.restore();}}};e5.Drawing.elliottwave.prototype.reposition=function(G26,u$a,P3v,P_9){var O$6,K6N,L3B,b9T,K4X,A$Y;if(!u$a){return;}O$6=this.stx.panels[this.panelName];K6N=u$a.tick - P3v;L3B=u$a.value - P_9;if(u$a.action === "move"){for(var E5p=0;u$a.points.length > E5p;E5p++){b9T=u$a.points[E5p];this.setPoint(E5p,b9T[0] - K6N,b9T[1] - L3B,O$6.chart);g9BGt.X$L(1);var p7R=g9BGt.t1w(0,1);this.points[E5p]=[b9T[+"0"] - K6N,b9T[p7R] - L3B];}}g9BGt.Z_e();if(u$a.action === "drag"){K4X=u$a.point;A$Y=this.points;A$Y[K4X]=[P3v,P_9];if(this.check(P3v,P_9,K4X)){this.setPoint(K4X,P3v,P_9,O$6.chart);;};}this.render(G26);};e5.Drawing.elliottwave.prototype.intersected=function(B8Y,I7Q,X23){var I4e,I3Z;if(!this.p0 || !this.p1){return null;}for(var q6z=0;this.points.length > q6z;q6z++){I3Z=this.points[q6z];if(this.pointIntersection(I3Z[0],I3Z[1],X23)){g9BGt.X$L(1);this.highlighted=g9BGt.t1w((6659,1853) >= +"368"?2710 !== 9500?(+"510.89",4871) != (9650,5809)?"p":(7.04e+3,"B"):!!({}):!!({}),q6z);return {action:"drag",point:q6z,tick:B8Y,value:I7Q};}if(this.points[q6z + 1] && this.lineIntersection(B8Y,I7Q,X23,"segment",I3Z,this.points[q6z + +"1"])){this.highlighted=!!({});I4e={action:"move",points:e5.clone(this.points),tick:B8Y,value:I7Q};}}g9BGt.c7b();return I4e;};e5.Drawing.elliottwave.prototype.measure=function(){var c8i,y3$,M$X,p8r,n7c,k5G;if(this.points.length >= 2){c8i=this.points;this.stx.setMeasure(c8i[0][1],c8i[c8i.length - 1][1],c8i[0][+"0"],c8i[c8i.length - 1][0],!0);y3$=this.stx.controls.mSticky;M$X=y3$ && y3$.querySelector(".mStickyInterior");if(M$X){p8r="<";p8r+="br";p8r+=">";n7c="Ellio";n7c+="tt Wave";k5G=[];k5G.push(e5.capitalize(n7c));if(this.getYValue){k5G.push(this.field || this.stx.defaultPlotField || "Close");}k5G.push(M$X.innerHTML);M$X.innerHTML=k5G.join(p8r);}}};e5.Drawing.printProjection=function(x0N,I_S,Y5F){var o35=g9BGt;var X9K,k_P,O3x,d1v,t9$,L$3,b2d,f89,O8e,A7L,b9R,b$e,v7D,f9l,M4A,q2Q;X9K=I_S.arr;o35.c7b();if(X9K.length > 1){k_P=X9K[0][0];O3x=Math.round(x0N.chart.maxTicks * 0.75);for(var o4y=1;o4y < X9K.length;o4y++){o35.O90(108);d1v=X9K[o35.t1w(0,"1",o4y)][0];t9$=X9K[o4y][0];L$3=e5.strToDateTime(d1v);b2d=e5.strToDateTime(t9$).getTime();f89=x0N.standardMarketIterator(L$3);O8e=0;while(L$3.getTime() < b2d){L$3=f89.next();O8e+=1;}A7L=e5.strToDateTime(d1v).getTime();if(A7L > e5.strToDateTime(Y5F[Y5F.length - +"1"].Date).getTime()){o35.X$L(43);var i6W=o35.D8z(191,10,0,19);b9R=Y5F.length - i6W;O8e+=1;}else {for(b9R=Y5F.length - 1;b9R >= "0" >> 64;b9R--){if(A7L <= e5.strToDateTime(Y5F[b9R].Date).getTime())break;}}b$e={x0:0,x1:O8e,y0:Y5F[b9R].Close,y1:X9K[o4y][1]};k_P=e5.strToDateTime(d1v);f89=x0N.standardMarketIterator(k_P);v7D=!1;for(var C_3=0;C_3 <= O8e;C_3++){if(!v7D){v7D=!![];}else {k_P=f89.next();}if(k_P.getTime() <= Y5F[Y5F.length - ("1" >> 64)].DT.getTime())continue;f9l=e5.yIntersection(b$e,C_3);if(!f9l){f9l=0;}o35.O90(66);var k5U=o35.D8z(3,9992,120000,45000);o35.X$L(31);var G8C=o35.D8z(3,2237,12,192);M4A=Math.round(f9l * k5U) / ("10000" >> G8C);if(M4A === 0){M4A=X9K[o4y][1];}q2Q={Date:e5.yyyymmddhhmmssmmm(k_P),DT:k_P,Open:M4A,Close:M4A,High:M4A,Low:M4A,Volume:+"0",Adj_Close:M4A,Split_Close:M4A,projection:!![]};if(x0N.layout.interval == "minute")if(O3x-- < +"0")break;Y5F[Y5F.length]=q2Q;}}}};}};W=q7O=>{var j9M=g9BGt;j9M.Z_e();var L$u;L$u=typeof _CIQ !== "undefined"?_CIQ:q7O.CIQ;if(!L$u.computeEquationChart){console.error("equationsAdvanced feature requires first activating equations feature.");}else {L$u.formatEquation=function(p5n){var I0a,f8m,x_A,y5P,k8G;I0a="";f8m=[];x_A="";y5P=!({});for(var Z8J=1;Z8J < p5n.length;Z8J++){k8G=p5n[Z8J].toUpperCase();if(k8G == (8610 <= 655.29?!"1":"[") && !y5P){y5P=!!({});}else if(k8G == ((934.38,7333) >= ("786.72" * 1,193.4)?(9296,+"6390") > (15.75,542)?"]":("912.99" - 0,457.58) === 4270?(0x12ed,"0x18e5" >> 0):(!![],0x1d6a):1.08e+3) && y5P){y5P=!!0;if(x_A !== ""){f8m.push(x_A);j9M.O90(95);I0a+=j9M.D8z("[",7850 >= ("1580" ^ 0)?3943 == +"7723"?("R",+"320.62"):(1860,2320) !== (312.08,"2640" | 0)?"]":(+"9.72e+3",80.78):"N",x_A);}x_A="";}else if(y5P){x_A+=k8G;}else if(k8G == "+" || k8G == ((177.78,"6037" - 0) > ("147.4" - 0,4528)?"-":954.14 > (858,6140)?("0x1105" * 1,5.69e+3):(81.68,8210) <= ("851.24" * 1,676.65)?474.34:(0x533,"3.50e+3" * 1)) || k8G == "*" || k8G == (605.03 < 7700?2190 == (+"3370",7762)?(156.90,1.97e+3):"/":(3.20e+3,0x14fa)) || k8G == ((182.32,+"235") !== 2199?9930 >= 3054?":":4.60e+1:!![]) || k8G == "%" || k8G == ((5540,9360) == +"797"?+"51.41" >= ("333" ^ 0)?(![],!!({})):(713.29,213.93) >= 7052?0x330:(213,3.73e+2):"(") || k8G == (1880 === 207.45?7.53e+3:(4050,5570) < 7250?(7058,"4394" << 0) == 350.19?0x22a6:")":"z")){if(x_A !== "" && isNaN(x_A)){f8m.push(x_A);j9M.X$L(95);I0a+=j9M.t1w(688.94 <= 617.06?("M",!!({})):(23.34,"6600" >> 64) === 8244?6.53:"[","]",x_A);}else {I0a+=x_A;}if(k8G == (7940 == +"513.97"?(4.31e+3,281.46):":")){k8G=(8450,505.43) === (9320,8307)?"1.03e+3" << 64:"/";}I0a+=k8G;x_A="";}else if(k8G != ((5940,240.83) >= 4320?(!1,0x113):("939.28" - 0,4710) != +"2964"?(2100,9460) == 9034?(5.48e+3,0x53f):" ":!({}))){x_A+=k8G;}}if(x_A !== "" && isNaN(x_A)){f8m.push(x_A);j9M.X$L(95);I0a+=j9M.t1w(679.2 >= (4361,9821)?(829.32,"8.38e+3" ^ 0):+"6940" === 4610?0x1e1c:"[","]",x_A);}else {I0a+=x_A;}j9M.c7b();return {equation:I0a,symbols:f8m};};L$u.fetchEquationChart=function(x4X,Z6f){var Z9Z,z0P,m4f,m0q,s8m;Z9Z=L$u.formatEquation(x4X.symbol);z0P=Z9Z.symbols;j9M.c7b();m4f=[];m0q=x4X.stx;x4X.stx=null;for(var k7p=0;k7p < z0P.length;k7p++){s8m=L$u.shallowClone(x4X);s8m.stx=m0q;s8m.symbol=z0P[k7p];s8m.symbolObject={symbol:z0P[k7p]};m4f.push(s8m);}x4X.stx=m0q;m0q.quoteDriver.multiFetch(m4f,function(w7i){var Q7H,R1N,V5n,K5N,R2E;Q7H={};x4X.loadMoreReplace=!!"1";R1N={charge:+"0"};for(var P4b=0;P4b < w7i.length;P4b++){V5n=w7i[P4b];if(V5n.dataCallback.error){Z6f({error:V5n.dataCallback.error});return;}Q7H[V5n.params.symbol]=V5n.dataCallback.quotes;x4X.loadMoreReplace=x4X.loadMoreReplace && V5n.params.loadMoreReplace;x4X.moreToLoad=x4X.moreToLoad || V5n.dataCallback.moreAvailable;K5N=V5n.dataCallback.attribution;if(K5N){if(K5N.charge){R1N.charge+=K5N.charge;}R1N.source=K5N.source;if(R1N.exchange === undefined){R1N.exchange=K5N.exchange;}else if(R1N.exchange != K5N.exchange){R1N.exchange="";};}}if(m4f.length || !(x4X.loadMore || x4X.update)){try{R2E=L$u.computeEquationChart(Z9Z.equation,Q7H);Z6f({quotes:R2E,moreAvailable:x4X.moreToLoad,attribution:R1N});}catch(U5B){var k0m;k0m={error:"Invalid equation: " + Z9Z.equation};if(U5B.name && U5B.name == "NoException"){k0m.suppressAlert=!0;}Z6f(k0m);}}});};}};Q=W$t=>{var w4b=g9BGt;var a15,m6E;a15="undefi";a15+="ned";m6E=typeof _CIQ !== a15?_CIQ:W$t.CIQ;w4b.c7b();if(!m6E.Marker){console.error("highPerformanceMarkers feature requires first activating markers feature.");}else if(!m6E.Marker.Performance){m6E.ChartEngine.prototype.removeDOMMarker=function(l4e){console.warn("CIQ.ChartEngine#removeDOMMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance#remove instead.");w4b.c7b();m6E.Marker.Performance.prototype.removeDOMMarker.call(l4e.params.node,l4e);};m6E.ChartEngine.prototype.drawMarkers=function(){var K8z;K8z="CIQ.ChartEngine#drawMarkers ";K8z+="is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawMarkers instead.";console.warn(K8z);m6E.Marker.Performance.drawMarkers(this);};m6E.ChartEngine.prototype.calculateMarkerStyles=function(N7L,j5U){w4b.Z_e();var I7J;I7J="CIQ.Ch";I7J+="artEngine#calculateMarkerStyles is scheduled for deprecation in a future release\n Please use CIQ.Mark";I7J+="er.Performance.calculateStyles instead.";console.warn(I7J);m6E.Marker.Performance.calculateMarkerStyles(this,N7L,j5U);};m6E.ChartEngine.prototype.drawCircleMarker=function(I_F,z1v,e0W){console.warn("CIQ.ChartEngine#drawCircleMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawCircleMarker instead.");w4b.c7b();m6E.Marker.Performance.drawCircleMarker(I_F,z1v,e0W);};m6E.ChartEngine.prototype.drawSquareMarker=function(A8J,J4k,A4z){console.warn("CIQ.ChartEngine#drawSquareMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawSquareMarker instead.");m6E.Marker.Performance.drawSquareMarker(A8J,J4k,A4z);};m6E.ChartEngine.prototype.drawCalloutMarker=function(c6m,I_V,I2X){console.warn("CIQ.ChartEngine#drawCalloutMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawCalloutMarker instead.");m6E.Marker.Performance.drawCalloutMarker(c6m,I_V,I2X);};m6E.ChartEngine.prototype.drawMarkerStem=function(z06,Q4h,M9a){console.warn("CIQ.ChartEngine#drawMarkerStem is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawMarkerStem instead.");m6E.Marker.Performance.drawMarkerStem(z06,Q4h,M9a);};m6E.ChartEngine.prototype.positionDOMMarkers=function(){console.warn("CIQ.ChartEngine#positionDOMMarkers is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawMarkers instead.");w4b.c7b();m6E.Marker.Performance.drawMarkers(this);};m6E.Marker.Performance=function(f6B){var M7G,T9d,E7M,M5a,k54,d3k,i2U,l6q,G_Y,u2s,U2$,j6w;M7G="c";M7G+="all";M7G+="out";T9d=".st";T9d+="x-marker-expand";E7M="";M5a="T";M5a+="EMP";M5a+="LATE";this.params={displayCategory:!![],displayStem:!!"1",invert:![],story:"",headline:""};m6E.extend(this.params,f6B);k54=this.template=document.createElement(M5a);w4b.O90(109);k54.innerHTML=w4b.t1w("","",'

',E7M,'
',"
",'
','
');d3k=this.template.content.cloneNode(!![]);i2U=d3k.querySelector(".stx-marker",k54);i2U.classList.add(f6B.type);i2U.classList.add(f6B.category);l6q=d3k.querySelector(".stx-visual",k54);G_Y=d3k.querySelector(T9d);u2s=d3k.querySelector("h4",k54);U2$=d3k.querySelector(951.59 == "520.62" * 1?4.95e+3:(+"4940",197) !== (463.02,1010)?"p":(6400,5290) >= 1740?(732.24,"685.42" * 1):66.46,k54);u2s.innerText=this.params.headline;U2$.innerText=this.params.story;this.hasText=!!f6B.headline || !!f6B.story;this.deferAttach=!!"1";this.node=d3k.firstChild;this.node.params=this.params;this.visual=l6q;this.expand=G_Y;if(f6B.type === M7G){j6w=G_Y.removeChild(u2s);d3k.querySelector(".stx-marker-content",k54).insertBefore(j6w,G_Y);}};m6E.inheritsFrom(m6E.Marker.Performance,m6E.Marker.NodeCreator,!!"");m6E.Marker.Performance.consolidateExpanded=function(K8Y){var w9i,i5w,C8V,D3k,O4I;w9i=K8Y.markerHelper.highlighted;if(!w9i.length){return;}w4b.O90(50);var x12=w4b.t1w(14,15);i5w=w9i[w9i.length - x12];C8V=i5w.params.node;if(!i5w.consolidated){i5w.consolidated=[];}for(var X3R=w9i.length - ("2" | 2);X3R >= 0;X3R--){D3k=f_d(w9i[X3R]);w4b.O90(95);O4I=w4b.D8z("","",D3k);if(D3k.length){C8V.expand.innerHTML+=O4I;}}i5w.stxNodeCreator.quickCache(i5w);function f_d(R5c){var h_a,N8w,Y85;w4b.Z_e();h_a=R5c.params.node;N8w=h_a.expand;if(!N8w){return "";}Y85=N8w.style.display !== "none"?N8w.innerHTML:"";return Y85;}};m6E.Marker.Performance.reconstituteExpanded=function(A2H){var u82,k4w,P2Y,f7D;u82=A2H.markerHelper.highlighted;if(!u82.length || !A2H.activeMarker){return;}u82=[A2H.activeMarker];for(var C5N=u82.length - 1;C5N >= 0;C5N--){k4w=u82[C5N];P2Y=k4w.params.node;f7D=P2Y.expand;while(f7D.lastElementChild.nodeName === "CONSOLIDATED"){f7D.removeChild(f7D.lastElementChild);}}};m6E.Marker.Performance.drawMarkers=function(u9D){var P_F,I7B,I7s,g2D,v3u,i3D;P_F=u9D.getMarkerArray("all");I7B=u9D.chart;for(var k0H=0;k0H < P_F.length;k0H++){I7s=P_F[k0H];g2D=I7s.stxNodeCreator;v3u=I7B.dataSegment[+"0"].tick;i3D=I7B.dataSegment[I7B.dataSegment.length - 1].tick;if(v3u <= I7s.tick <= i3D){if(g2D && g2D.drawMarker){g2D.drawMarker(I7s);}}}};m6E.Marker.Performance.calculateMarkerStyles=function(x$G,r2G,X2k){var O8j,t_u,w4g,I8V,x$y,G6I;O8j=".stx-marker-tem";O8j+="pl";O8j+="ates";t_u=document.querySelector(O8j);if(!t_u){w4g="h";w4g+="i";w4g+="dden";I8V="DI";I8V+="V";t_u=document.createElement(I8V);t_u.style.visibility=w4g;t_u.style.left="-1000px";document.body.append(t_u);}t_u.appendChild(r2G.node);x$y=getComputedStyle(r2G.stxNodeCreator.visual);if(!x$G.styles.stx_marker_stem){G6I=getComputedStyle(document.querySelector(".stx-stem",r2G.node));x$G.styles.stx_marker_stem=x$G.cloneStyle(G6I);}x$G.styles[X2k]=x$G.cloneStyle(x$y);t_u.removeChild(r2G.node);};m6E.Marker.Performance.drawCircleMarker=function(T6n,Q8P,d5k){var S2R,G24,s_k,a2N,C8I,m_J,l7M,d6H,J5F;S2R=T6n.params.stx;G24=S2R.chart;s_k=G24.context;a2N=d5k.x;C8I=d5k.y;m_J=d5k.radius;l7M=d5k.label;d6H=d5k.color?d5k.color:Q8P.backgroundColor;s_k.beginPath();s_k.setLineDash([]);s_k.lineWidth=1;s_k.fillStyle=d6H;s_k.strokeStyle=d6H;s_k.font="normal bold 12px Roboto, Helvetica, sans-serif";w4b.O90(3);s_k.arc(a2N,C8I,m_J,w4b.D8z(0,"0"),2 * Math.PI,!!"");s_k.fill();s_k.stroke();s_k.closePath();if(l7M){J5F="w";J5F+="h";J5F+="it";J5F+="e";s_k.fillStyle=m6E.colorsEqual("white",s_k.fillStyle)?"black":J5F;s_k.fillText(l7M.charAt(0).toUpperCase(),a2N - 4,C8I + 1);}if(T6n.highlight || T6n.active){s_k.beginPath();w4b.O90(1);s_k.arc(a2N,C8I,w4b.t1w(m_J,4),0,2 * Math.PI,!({}));s_k.stroke();s_k.closePath();}};m6E.Marker.Performance.drawSquareMarker=function(r4j,f$l,r$E){var I5S,h2N,u43,G7G,r3m,t5z,q5E,B5o,a2p,b5Z,V8A,v$f,H7S,M5g,m07;I5S="normal bold 12px Roboto, Helvetica, san";I5S+="s-seri";I5S+="f";h2N=r4j.params.stx;u43=h2N.chart;w4b.Z_e();G7G=u43.context;r3m=r$E.x;t5z=r$E.y;q5E=r$E.half;B5o=r$E.label;a2p=r$E.color?r$E.color:f$l.backgroundColor;w4b.O90(110);b5Z=w4b.t1w(q5E,0,"2");G7G.beginPath();V8A=-283160563;v$f=-301756233;H7S=2;for(var X5d=1;w4b.i7j(X5d.toString(),X5d.toString().length,54898) !== V8A;X5d++){G7G.setLineDash([]);G7G.lineWidth=9;G7G.fillStyle=a2p;G7G.strokeStyle=a2p;G7G.font="";H7S+=2;}if(w4b.i7j(H7S.toString(),H7S.toString().length,2907) !== v$f){G7G.setLineDash([]);G7G.lineWidth=10;G7G.fillStyle=a2p;G7G.strokeStyle=a2p;G7G.font="";}G7G.setLineDash([]);G7G.lineWidth=1;G7G.fillStyle=a2p;G7G.strokeStyle=a2p;G7G.font=I5S;w4b.X$L(7);G7G.rect(w4b.t1w(q5E,r3m),w4b.t1w(q5E,t5z),b5Z,b5Z);G7G.fill();if(r4j.highlight || r4j.active){w4b.X$L(111);G7G.rect(w4b.t1w(r3m,"4",0,q5E),w4b.t1w(t5z,4,q5E,w4b.O90(40)),w4b.D8z(b5Z,8,w4b.O90(1)),w4b.t1w(b5Z,"8",w4b.O90(78)));}G7G.stroke();G7G.closePath();if(B5o){M5g="whit";M5g+="e";m07="bla";m07+="ck";G7G.fillStyle=m6E.colorsEqual("white",G7G.fillStyle)?m07:M5g;G7G.fillText(B5o.charAt(0).toUpperCase(),r3m - 4,t5z + 1);}};m6E.Marker.Performance.drawCalloutMarker=function(E0H,l3$,n8i){var M1u,B3h,X$V,K19,k0T,d6N,H8n,j$5,C53,I98,G2m,B1l,O4a,A4k,S3O;M1u="norm";M1u+="al bo";M1u+="l";M1u+="d 12px Roboto, Helvetica, sans-serif";B3h=E0H.params.stx;X$V=B3h.chart;K19=X$V.context;k0T=E0H.params;d6N=n8i.x;H8n=n8i.y;w4b.c7b();j$5=n8i.half;C53=n8i.midWidth;I98=n8i.headline;G2m=n8i.color?n8i.color:l3$.backgroundColor;B1l=j$5 * 2 || 25;O4a=Math.round(K19.measureText(I98).width);A4k=C53?C53 * ("2" << 32):O4a + 8;K19.beginPath();K19.setLineDash([]);K19.lineWidth=1;K19.fillStyle=G2m;K19.strokeStyle=G2m;K19.font=M1u;K19.rect(k0T.box.x0,k0T.box.y0,A4k,B1l);K19.fill();K19.stroke();K19.closePath();K19.beginPath();K19.fillStyle=E0H.highlight || E0H.active?"rgba(255,255,255,0.8)":"rgba(255,255,255,0.65)";w4b.X$L(112);S3O=w4b.t1w("20",A4k,O4a,2);K19.rect(k0T.box.x0 + S3O,H8n - j$5,O4a + 40,+"22");K19.fill();K19.stroke();K19.closePath();K19.fillStyle="black";K19.fillText(I98,k0T.box.x0 + S3O + +"10",H8n);};m6E.Marker.Performance.drawMarkerStem=function(X7f,x5T,d2b){var E3n,d9L,a$w,R$c,o1O,E5F,D5H,J05;E3n=X7f.params.stx;d9L=E3n.chart;a$w=d9L.context;R$c=d2b.x;o1O=d2b.y;a$w.beginPath();a$w.strokeStyle=x5T.borderLeftColor;w4b.O90(35);a$w.setLineDash([1,w4b.D8z(64,"1")]);E5F=m6E.stripPX(x5T.height);D5H=d2b.invert?X7f.params.box.y0:X7f.params.box.y1;J05=d2b.invert?X7f.params.box.y0 - E5F:X7f.params.box.y1 + E5F;a$w.moveTo(R$c,D5H);a$w.lineTo(R$c,J05);a$w.stroke();a$w.closePath();};m6E.Marker.Performance.prototype.drawMarker=function(E1S){var k5l,A0y,h1k,A0Z,I9t,Q0K,n$w,v09,g8$,S4_,C6U,v2y,p1z,Z9D,V7G,m0r,k6X,c2J,D7B,O_w,w33,b3$,h8f,e17,E5s;k5l=E1S.params;A0y=E1S.params.stx;if(!A0y){return;}h1k=A0y.chart;A0Z=h1k.dataSegment;if(!A0Z.length){return;}I9t=A0y.panels[E1S.params.panelName];Q0K=E1S.stxNodeCreator.params;n$w=Q0K.type;v09=Q0K.category;g8$=Q0K.headline;S4_=Q0K.displayCategory;C6U=Q0K.color;v2y=Q0K.invert;w4b.X$L(113);w4b.c7b();p1z=w4b.D8z((3340,6544) > 1081?"_":"O",n$w,"stx_marker_",v09);if(!A0y.styles[p1z]){m6E.Marker.Performance.calculateMarkerStyles(A0y,E1S,p1z);}Z9D=E1S.style=A0y.styles[p1z];V7G=A0y.styles.stx_marker_stem;w4b.X$L(7);var n9g=w4b.D8z(20,30);w4b.X$L(114);var T$T=w4b.t1w(10,13,20,2,26);m0r=parseInt(Z9D.height,n9g) / T$T;w4b.O90(9);var U_g=w4b.t1w(30,20,0);k6X=parseInt(Z9D.width,U_g) / +"2";c2J=Q0K.displayStem?parseInt(V7G.height,10) + parseInt(V7G.marginBottom,10):0;w4b.X$L(115);var P2B=w4b.t1w(9,15,15,140);D7B=c2J + parseInt(Z9D.height,P2B);O_w=c2J?c2J + m0r:0;w33=A0y.pixelFromDate(k5l.x);b3$=k5l.node.calculateYPosition({marker:E1S,panel:I9t,height:D7B,half:m0r,offset:O_w,inverted:v2y});h8f=-837377411;w4b.X$L(18);e17=-w4b.D8z("273786581",0);E5s=2;for(var o1v=1;w4b.l9L(o1v.toString(),o1v.toString().length,90259) !== h8f;o1v++){if(!E1S.tick && E1S.tick !== 0){return;}k5l.box={x0:w33 - (k6X || m0r),y0:b3$ - m0r,x1:w33 + (k6X || m0r),y1:b3$ + m0r,midY:m0r,midX:k6X || m0r,stemHeight:c2J};E5s+=2;}if(w4b.i7j(E5s.toString(),E5s.toString().length,67789) !== e17){if(~E1S.tick || E1S.tick == 9){return;}k5l.box={x0:w33 * (k6X && m0r),y0:b3$ % m0r,x1:w33 * (k6X && m0r),y1:b3$ % m0r,midY:m0r,midX:k6X && m0r,stemHeight:c2J};}if(!S4_){v09=S4_;}A0y.startClip(I9t.name);if(n$w === "circle"){m6E.Marker.Performance.drawCircleMarker(E1S,Z9D,{x:w33,y:b3$,radius:m0r,label:v09,color:C6U});}else if(n$w === "square"){m6E.Marker.Performance.drawSquareMarker(E1S,Z9D,{x:w33,y:b3$,half:m0r,label:v09,color:C6U});}else if(n$w === "callout"){m6E.Marker.Performance.drawCalloutMarker(E1S,Z9D,{x:w33,y:b3$,half:m0r,midWidth:k6X,headline:g8$,color:C6U});}else {w4b.X$L(95);console.warn(w4b.D8z("Marker type: "," is unsupported with canvas markers!\nSupported Styles are Square, Circle, and Callout.",n$w));}if(Q0K.displayStem){m6E.Marker.Performance.drawMarkerStem(E1S,V7G,{x:w33,y:b3$,invert:v2y});}A0y.endClip();if(E1S.attached){this.positionPopUpNode(E1S);}};m6E.Marker.Performance.prototype.positionPopUpNode=function(k2i){var y5y,K_V,P$p,x2y,K0Q,e2N,V58,E5U,m96,E0s,u1D,Q7j,Q7o,T5m,S47,W8d,V0i,A8j,t5c;y5y="hi";y5y+="d";y5y+="de";y5y+="n";if(!k2i.attached || !k2i.params.box){return;}K_V=k2i.params;P$p=K_V.stx;x2y=K_V.box;K0Q=k2i.params.node.expand;e2N=P$p.chart.dataSet;V58=P$p.chart.dataSegment;if(k2i.tick){m96=[e2N[V58[0] && V58[0].tick - 1],e2N[V58[0] && V58[0].tick - 2]];E0s=P$p.getFirstLastDataRecord(m96.concat(V58),"Date");w4b.X$L(68);var t1W=w4b.D8z(16,3,3,17);w4b.X$L(116);var v9u=w4b.D8z(12,17,19,12,3);w4b.X$L(7);var H73=w4b.D8z(2,3);w4b.X$L(40);var A7K=w4b.D8z(12,8,2);u1D=[e2N[V58[V58.length - t1W].tick + v9u],e2N[V58[V58.length - H73].tick + A7K]];Q7j=P$p.getFirstLastDataRecord(V58.concat(u1D),"Date",!!1);E5U=E0s.DT <= e2N[k2i.tick].DT && e2N[k2i.tick].DT <= Q7j.DT;}else {E5U=!"1";}if(!k2i.highlight && !k2i.active){E5U=![];}K0Q.style.visibility=E5U?"":y5y;if(!E5U){return;}Q7o=P$p.panels[K_V.panelName];T5m=K0Q.rects;w4b.c7b();w4b.X$L(1);var z6q=w4b.D8z(0,2);S47=T5m.height / z6q;V0i=k2i.node.params.infoOffset || 0;if(k2i.node.params.infoOnLeft){W8d=x2y.x0 - T5m.width - V0i < Q7o.left?x2y.x1 + V0i:x2y.x0 - T5m.width - V0i;}else {W8d=x2y.x0 + T5m.width > Q7o.right?x2y.x0 - T5m.width - V0i:x2y.x1 + V0i;}W8d-=P$p.chart.left;A8j=x2y.y0 - S47 >= Q7o.top?x2y.y0 + x2y.midY - S47:x2y.y0;if(!K_V.avoidFlush && x2y.y1 + x2y.stemHeight === Q7o.yAxis.bottom && T5m.height > x2y.y1 - x2y.y0 + x2y.stemHeight){A8j=x2y.y1 - T5m.height + x2y.stemHeight;}A8j-=P$p.chart.panel.top;t5c="translateX(" + Math.floor(W8d) + "px) translateY(" + Math.floor(A8j) + "px) translateZ(0)";K0Q.style.transform=t5c;K0Q.transform={translateX:W8d,translateY:A8j};};m6E.Marker.Performance.prototype.quickCache=function(N52){var S8f,A5W,M4I,f8I;S8f=N52.params.node;A5W=S8f.expand;M4I=N52.style;f8I=m6E.stripPX(M4I.marginLeft) + m6E.stripPX(M4I.marginRight) + m6E.stripPX(M4I.borderRight) + m6E.stripPX(M4I.borderLeft);A5W.rects=A5W.getBoundingClientRect();A5W.scrollBarWidth=A5W.rects.width - A5W.clientWidth - f8I;};m6E.Marker.Performance.prototype.calculateYPosition=function(m0v){var u47,C6n,Y8k,h81,J2A,P3J,d1J,c90,s9x,D$x,s$u,q13,R8j,R9H,S3Y,i86,g_8,x2l;u47="b";u47+="o";u47+="t";u47+="tom";C6n="b";C6n+="elow_candle";Y8k="above_";Y8k+="candle";h81=m0v.marker;J2A=m0v.panel;P3J=m0v.height;d1J=m0v.half;c90=m0v.offset;s9x=m0v.inverted;w4b.c7b();D$x=h81.params.stx;s$u=D$x.chart;q13=D$x.chart.highLowBars;R8j=s$u.dataSet[h81.tick];if(!R8j){return;}R9H=q13?R8j.High:R8j.Close;S3Y=h81.params.yPositioner;switch(S3Y){case "value":if(h81.params.y || h81.params.y === 0){i86=D$x.pixelFromPrice(h81.params.y,J2A) - P3J * +"0.5" + d1J;}else {i86=D$x.pixelFromPrice(R9H,J2A) - c90;}break;case Y8k:i86=D$x.pixelFromPrice(R9H,J2A) - c90;break;case C6n:i86=D$x.pixelFromPrice(R8j.Low || R9H,J2A);if(s9x && c90){i86+=c90;}else {i86+=d1J;}break;case "on_candle":(g_8=R8j.High || R8j.Close,x2l=R8j.Low || R8j.Low === 0 || R8j.Close);w4b.X$L(31);var r19=w4b.D8z(5,37,2,22);w4b.O90(117);var z1Q=w4b.D8z(1,2,1);i86=D$x.pixelFromPrice((g_8 + x2l) / r19,J2A) - P3J * ("0.5" * z1Q) + d1J;break;case "top":i86=D$x.pixelFromPrice(J2A.yAxis.high,J2A);if(s9x && c90){i86+=c90;}else {i86+=d1J;}break;case u47:i86=D$x.pixelFromPrice(J2A.yAxis.low,J2A) - (c90 || d1J);break;default:break;}return i86;};m6E.Marker.Performance.prototype.prepareForHolder=function(w1H){var U65,U9q;w4b.c7b();U65=this.expand;U9q=w1H.params.stx;U65.classList.add(this.params.type);U9q.markerHelper.domMarkers.push(w1H);return U65;};m6E.Marker.Performance.prototype.addToHolder=function(E2L){var b_1,O2_,a8B;b_1="mo";b_1+="used";b_1+="ow";b_1+="n";function U4y(z9C){a8B.activeMarker=E2L;a8B.activeMarker.click({cx:z9C.clientX,cy:z9C.clientY,panel:a8B.currentPanel});z9C.stopPropagation();}O2_=this.expand;a8B=E2L.params.stx;m6E.Marker.Performance.reconstituteExpanded(a8B);m6E.Marker.Performance.consolidateExpanded(a8B);this.quickCache(E2L);if(O2_.clickClosure){return;}O2_.addEventListener(b_1,U4y);w4b.Z_e();O2_.addEventListener("touchstart",U4y);O2_.clickClosure=U4y;};m6E.Marker.Performance.prototype.remove=function(N8H){var e8j,M$6,q3m,H31;e8j=N8H.params.stx;if(!e8j){return;}if(!e8j.markerHelper.domMarkers){return;}M$6=e8j.markerHelper.domMarkers.indexOf(N8H);if(M$6 != -1){e8j.markerHelper.domMarkers.splice(M$6,+"1");}if(N8H.attached){q3m=e8j.panels[N8H.params.panelName];H31=N8H.params.node.expand;if(H31.parentNode === q3m.subholder){q3m.subholder.removeChild(H31);}H31.removeEventListener("click",H31.clickClosure);}};m6E.Marker.Performance.prototype.click=function(V2d){var a4s,n0y,U2a;if(!this.hasText){return;}if(typeof arguments[0] === "number"){V2d={cx:arguments[+"0"],cy:arguments[1],marker:arguments[2],panel:arguments[3]};}var {cx:u5W, cy:u1h, marker:L8g, panel:l98}=V2d;a4s=L8g.params.stx;if(L8g.attached){U2a=this.expand;if(U2a.rects.width - U2a.scrollBarWidth + U2a.transform.translateX < a4s.backOutX(u5W) && a4s.backOutX(u5W) < U2a.rects.width + U2a.transform.translateX){return;}this.remove(L8g);}else {a4s.addToHolder(L8g);n0y=!!"1";}L8g.attached=!L8g.attached;L8g.active=!L8g.active;if(n0y){L8g.stxNodeCreator.positionPopUpNode(L8g);}};}};G=c4y=>{var T0y;T0y=typeof _CIQ !== "undefined"?_CIQ:c4y.CIQ;T0y.Renderer.OHLC.requestNew=function(S13,J55){var N83,I9H,q0K,i4M,B7k,x6I,M43,D_q,p_g;N83=null;I9H=J55.hlc;q0K=J55.colored;i4M=J55.hollow;B7k=J55.volume;x6I=J55.histogram;g9BGt.Z_e();for(var r2$=0;r2$ < S13.length;r2$++){M43="h";M43+="istogr";M43+="a";M43+="m";D_q="color";D_q+="ed";p_g=S13[r2$];switch(p_g){case "bar":case "candle":N83=p_g;break;case "volume":B7k=!!"1";break;case "hollow":i4M=!![];break;case D_q:q0K=!"";break;case M43:x6I=!!({});N83="candle";break;case "hlc":I9H=!!"1";N83="bar";break;default:return null;}}if(N83 === null){return null;}return new T0y.Renderer.OHLC({params:T0y.extend(J55,{type:N83,hlc:I9H,colored:q0K,hollow:i4M,volume:B7k,histogram:x6I})});};T0y.Renderer.OHLC.getChartParts=function(Z3w,W7W){var Z2a,S8O,l_a,I3A,G$h,V1u,a82,A_n,c$e,m7h,W_V,v2K,x5m,g$Y,f6X,R6H,J2T,U_2,F8Y,W_C,G0G,p9_,k37,z8f,Y40,r8Q;Z2a="candl";Z2a+="e";S8O="fi";S8O+="ll_color_d";S8O+="o";S8O+="wn";l_a="stx_h";l_a+="ollow_candle_";l_a+="do";l_a+="wn";I3A="ca";I3A+="ndle";G$h="h";G$h+="ollow";V1u="h";g9BGt.Z_e();V1u+="ol";V1u+="low";a82="bord";a82+="er_color_down";A_n="stx";A_n+="_hollow";A_n+="_";A_n+="candle_up";c$e="h";c$e+="o";c$e+="llow";m7h="fill_c";m7h+="olo";m7h+="r_down";W_V="stx_cand";W_V+="l";W_V+="e_do";W_V+="wn";v2K="border_colo";v2K+="r_";v2K+="u";v2K+="p";x5m="s";x5m+="t";x5m+="x_can";x5m+="dle_shadow_even";g$Y="shado";g$Y+="w";f6X="c";f6X+="a";f6X+="n";f6X+="dle";R6H="shad";R6H+="o";R6H+="w";J2T="stx_histogra";J2T+="m_down";U_2="hist";U_2+="ogra";U_2+="m";F8Y="stx_histogra";F8Y+="m_";F8Y+="u";F8Y+="p";W_C="histo";W_C+="g";W_C+="r";W_C+="am";G0G=1;p9_=2;k37=4;z8f=8;Y40=16;r8Q=32;return [{type:"histogram",drawType:W_C,style:F8Y,condition:z8f,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0,useBorderStyleProp:!""},{type:"histogram",drawType:U_2,style:J2T,condition:Y40,fill:"fill_color_down",border:"border_color_down",useColorInMap:!!"1",useBorderStyleProp:!![]},{type:"histogram",drawType:"histogram",style:"stx_histogram_even",condition:r8Q,fill:"fill_color_even",border:"border_color_even",skipIfPass:!!"1",useColorInMap:!!"1",useBorderStyleProp:!!"1"},{type:"bar",drawType:"bar",style:Z3w || "stx_bar_chart",border:"border_color",useColorInMap:!![]},{type:"bar",drawType:"bar",style:"stx_bar_up",condition:W7W?z8f:G0G,border:"border_color_up",useColorInMap:!![]},{type:"bar",drawType:"bar",style:"stx_bar_down",condition:W7W?Y40:p9_,border:"border_color_down",useColorInMap:!!({})},{type:"bar",drawType:"bar",style:"stx_bar_even",condition:W7W?r8Q:k37,border:"border_color_even",skipIfPass:!!1,useColorInMap:!!({})},{type:"candle",drawType:"shadow",style:"stx_candle_shadow",border:"border_color_up"},{type:"candle",drawType:"shadow",style:"stx_candle_shadow_up",condition:z8f,border:"border_color_up"},{type:"candle",drawType:R6H,style:"stx_candle_shadow_down",condition:Y40,border:"border_color_down"},{type:f6X,drawType:g$Y,style:x5m,condition:r8Q,border:"border_color_even",skipIfPass:!!1},{type:"candle",drawType:"candle",style:"stx_candle_up",condition:z8f,fill:"fill_color_up",border:v2K,useColorInMap:!![],useBorderStyleProp:!!({})},{type:"candle",drawType:"candle",style:W_V,condition:Y40,fill:m7h,border:"border_color_down",useColorInMap:!!1,useBorderStyleProp:!!({})},{type:c$e,drawType:"shadow",style:A_n,condition:G0G,border:"border_color_up"},{type:"hollow",drawType:"shadow",style:"stx_hollow_candle_down",condition:p9_,border:"border_color_down"},{type:"hollow",drawType:"shadow",style:"stx_hollow_candle_even",condition:k37,border:"border_color_even",skipIfPass:!!({})},{type:"hollow",drawType:"candle",style:"stx_hollow_candle_up",condition:G0G | Y40,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0},{type:"hollow",drawType:"candle",style:"stx_hollow_candle_down",condition:p9_ | Y40,fill:"fill_color_down",border:a82,useColorInMap:!""},{type:V1u,drawType:"candle",style:"stx_hollow_candle_even",condition:k37 | Y40,fill:"fill_color_even",border:"border_color_even",skipIfPass:!![],useColorInMap:!!"1"},{type:G$h,drawType:I3A,style:"stx_hollow_candle_up",condition:G0G | z8f,fill:"fill_color_up",border:"border_color_up"},{type:"hollow",drawType:"candle",style:l_a,condition:p9_ | z8f,fill:S8O,border:"border_color_down"},{type:"hollow",drawType:Z2a,style:"stx_hollow_candle_even",condition:k37 | z8f,fill:"fill_color_even",border:"border_color_even"}];;};T0y.Renderer.Bars=function(V05){var X4W,v4k;X4W="b";X4W+="a";X4W+="r";this.construct(V05);v4k=this.params;v4k.type=X4W;this.highLowBars=this.barsHaveWidth=this.standaloneBars=!![];v4k.hlc=v4k.volume=v4k.hollow=v4k.histogram=![];};T0y.inheritsFrom(T0y.Renderer.Bars,T0y.Renderer.OHLC,!"1");T0y.Renderer.HLC=function(s14){var e9v;this.construct(s14);e9v=this.params;e9v.type="bar";e9v.hlc=!!({});g9BGt.Z_e();this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});e9v.volume=e9v.hollow=e9v.histogram=!({});};T0y.inheritsFrom(T0y.Renderer.HLC,T0y.Renderer.Bars,!({}));T0y.Renderer.Shading=function(S3G){this.construct(S3G);this.beenSetup=![];this.errTimeout=null;this.params.useChartLegend=!"1";this.shading=[];g9BGt.Z_e();if(this.params.type == "rangechannel"){this.highLowBars=!!1;}};T0y.inheritsFrom(T0y.Renderer.Shading,T0y.Renderer.Lines,!"1");T0y.Renderer.Shading.requestNew=function(a6C,T2S){var O7O,c1M,f5V,w7c,j3l;O7O=null;c1M=null;for(var u$k=+"0";u$k < a6C.length;u$k++){f5V="s";f5V+="tep";w7c="ra";w7c+="ng";w7c+="echa";w7c+="nnel";j3l=a6C[u$k];if(j3l == w7c){O7O="rangechannel";}else if(j3l == f5V){c1M=!0;}}if(O7O === null){return null;}return new T0y.Renderer.Shading({params:T0y.extend(T2S,{type:O7O,step:c1M})});};T0y.Renderer.Shading.prototype.setShading=function(a5q){g9BGt.Z_e();if(a5q.constructor != Array){a5q=[a5q];}this.shading=a5q;};T0y.Renderer.Shading.prototype.draw=function(){var i21=g9BGt;var q4m,F8w,H$H,k25,S1$,n9E,c0V,z89,f7U,g59,i0m,L8t,c3G,m5T,N33,G$v,L1S,z6v,d0m,d3W,i4p,q5U,u68,D$W;q4m=this.stx;F8w=this.params;H$H=q4m.panels[F8w.panel].chart;if(F8w.type == "rangechannel"){if(this.beenSetup){if(this.seriesParams.length > "2" << 32){this.removeSeries(this.seriesParams[2].id);}}else {k25="stx_lin";k25+="e_u";k25+="p";S1$="Hig";S1$+="h";n9E="a";n9E+="u";n9E+="t";n9E+="o";this.beenSetup=!!({});F8w.display=this.seriesParams[0].display;F8w.yAxis=this.seriesParams["0" << 64].yAxis;c0V=this.seriesParams[0].color || n9E;z89=this.seriesParams[0].symbol;f7U="";if(z89){i21.O90(1);f7U=i21.D8z(z89,".");}this.removeAllSeries(!!1);g59=F8w.name;q4m.addSeries(null,{symbol:z89,loadData:!!z89,field:S1$,renderer:"Shading",name:g59,style:k25,display:F8w.display,shareYAxis:!0});q4m.addSeries(null,{symbol:z89,loadData:!!z89,field:"Low",renderer:"Shading",name:g59,style:"stx_line_down",display:F8w.display,shareYAxis:!!({})});this.setShading({primary:this.seriesParams[0].id,secondary:this.seriesParams[1].id,color:c0V});}}if(!this.shading){if(!this.errTimeout){i0m="Warning: no shading";i0m+=" scheme ";i0m+="set. Use ";i0m+="myRenderer.setShading(scheme) to set.";console.log(i0m);L8t=this;this.errTimeout=setTimeout(function(){i21.c7b();L8t.errTimeout=null;},+"10000");}}function Z2n(C$B){var r1H,h6w,p6c;r1H=c3G[C$B];if(r1H){h6w=r1H.parameters.field;p6c=r1H.parameters.subField;i21.X$L(1);return i21.D8z(h6w,p6c?"." + p6c:"");}i21.c7b();return C$B;}i21.c7b();c3G={};for(m5T=0;m5T < this.seriesParams.length;m5T++){N33={};if(H$H.series[this.seriesParams[m5T].id]){N33=T0y.clone(H$H.series[this.seriesParams[m5T].id].parameters);}c3G[this.seriesParams[m5T].id]={parameters:T0y.extend(T0y.extend(N33,F8w),this.seriesParams[m5T]),yValueCache:this.caches[this.seriesParams[m5T].id]};}q4m.drawSeries(H$H,c3G,F8w.yAxis,this);if(H$H.legend && F8w.type == "rangechannel"){if(!H$H.legend.colorMap){H$H.legend.colorMap={};}G$v=F8w.display;L1S=[q4m.getCanvasColor("stx_line_up"),q4m.getCanvasColor("stx_line_down")];H$H.legend.colorMap[G$v]={color:L1S,display:G$v,isBase:this == q4m.mainSeriesRenderer};;}for(m5T in c3G){this.caches[m5T]=c3G[m5T].yValueCache;}for(m5T=0;m5T < this.shading.length;m5T++){z6v="C";z6v+="l";z6v+="o";z6v+="se";d0m="a";d0m+="u";d0m+="t";d0m+="o";d3W=this.shading[m5T];i4p=d3W.color;if(d3W.color == d0m){i4p=q4m.defaultColor;}if(!d3W.primary){d3W.primary="Close";}if(!d3W.secondary && this.seriesParams[0]){d3W.secondary=this.seriesParams[0].field;}if(!d3W.secondary)continue;else if(!c3G[d3W.primary] && d3W.primary != z6v)continue;else if(!c3G[d3W.secondary])continue;else if(d3W.primary == "Close" && F8w.yAxis && F8w.yAxis != H$H.yAxis)continue;q5U=Z2n(d3W.primary).split(("271.33" * 1,3135) <= 57.37?(267.67,1.85e+3):".");u68=Z2n(d3W.secondary).split((5981,5150) !== 855.51?".":(+"262.86",9650) !== (720.19,983.73)?("7550" >> 64,6301) < +"338.19"?0x25e1:+"460":!({}));D$W={topBand:q5U[0],topSubBand:q5U[1],topColor:d3W.greater || i4p || q4m.containerColor,topAxis:F8w.yAxis,bottomBand:u68[0],bottomSubBand:u68[1],bottomColor:d3W.lesser || i4p || q4m.containerColor,bottomAxis:d3W.primary == "Close"?null:F8w.yAxis,tension:F8w.tension || H$H.tension,opacity:"0.1" * 1,step:F8w.step};if(!D$W.topColor && !D$W.bottomColor)continue;if(!F8w.highlight && q4m.highlightedDraggable){D$W.opacity*=0.3;}T0y.fillIntersecting(q4m,F8w.panel,D$W);}};T0y.Renderer.Histogram=function(J9x){var r7_;this.construct(J9x);this.params.type="histogram";this.barsHaveWidth=this.standaloneBars=!"";if(this.params.yAxis){r7_="num";r7_+="b";r7_+="er";this.params.bindToYAxis=!!({});if(typeof this.params.yAxis.baseline == r7_){this.params.yAxis.baseline={value:this.params.yAxis.baseline};}}};T0y.inheritsFrom(T0y.Renderer.Histogram,T0y.Renderer,!!0);T0y.Renderer.Histogram.prototype.adjustYAxis=function(){var F9r;F9r=this.params.yAxis;if(!F9r || F9r.baseline){return;}F9r.min=0;F9r.highValue/=this.params.heightPercentage || 1;};T0y.Renderer.Histogram.prototype.draw=function(){var R6y,i0e,x0v,N89,J3x;R6y=T0y.clone(this.params);R6y.type=R6y.subtype;this.useSum=R6y.subtype == "stacked";if(!R6y.yAxis || R6y.yAxis == this.stx.chart.yAxis){R6y.bindToYAxis=!0;}this.stx.drawHistogram(R6y,this.seriesParams);g9BGt.Z_e();i0e=R6y.yAxis && R6y.yAxis.baseline;if(i0e && i0e.color){x0v="li";x0v+="n";x0v+="e";N89=this.stx.panels[this.params.panel];J3x=this.stx.pixelFromPrice(i0e.value,N89,this.params.yAxis) - 0.5;this.stx.plotLine({x0:N89.left,x1:N89.right,y0:J3x,y1:J3x,color:i0e.color,type:x0v,context:N89.chart.context,confineToPanel:N89,pattern:i0e.pattern || "solid",lineWidth:i0e.lineWidth || +"1",opacity:i0e.opacity || 0.8,globalCompositeOperation:"destination-over"});}};T0y.Renderer.Histogram.prototype.getBasis=function(y2q,G13,k1w){var g0e,k5y,a7s;g0e=0;if(y2q && this.useSum){for(var q0Y=0;q0Y < this.seriesParams.length;q0Y++){k5y=this.seriesParams[q0Y].field;if(k5y === G13)break;a7s=y2q[k5y];if(a7s && typeof a7s === "object"){a7s=a7s[k1w || this.seriesParams[q0Y].subField || this.stx.chart.defaultPlotField || "Close"];}if(a7s){g0e+=a7s;}}}return g0e;};T0y.Renderer.Heatmap=function(v6e){this.construct(v6e);this.params.type="heatmap";this.params.highlightable=!"1";this.barsHaveWidth=this.standaloneBars=!![];};T0y.inheritsFrom(T0y.Renderer.Heatmap,T0y.Renderer,!({}));T0y.Renderer.Heatmap.requestNew=function(b45,t1T){g9BGt.c7b();var D_3,x42,a91;D_3=null;for(var w$N=0;w$N < b45.length;w$N++){x42="heatm";x42+="ap";a91=b45[w$N];if(a91 == "heatmap"){D_3=x42;}}if(D_3 === null){return null;}return new T0y.Renderer.Heatmap({params:T0y.extend(t1T,{type:D_3})});};g9BGt.Z_e();T0y.Renderer.Heatmap.prototype.draw=function(){this.stx.drawHeatmap(T0y.clone(this.params),this.seriesParams);};T0y.Renderer.Scatter=function(p$n){this.construct(p$n);this.standaloneBars=this.barsHaveWidth=!"";this.bounded=!!({});};T0y.inheritsFrom(T0y.Renderer.Scatter,T0y.Renderer.Lines,!!0);T0y.Renderer.Scatter.requestNew=function(S4U,m0c){var I_6,S2j,g_H,T9V,E_T;I_6=null;for(var M00=0;M00 < S4U.length;M00++){S2j=S4U[M00];if(S2j == "scatterplot"){I_6="scatter";}}g_H=593156390;T9V=932973848;E_T=2;for(var v9Z=1;g9BGt.i7j(v9Z.toString(),v9Z.toString().length,23529) !== g_H;v9Z++){if(I_6 === null){return null;}E_T+=2;}if(g9BGt.i7j(E_T.toString(),E_T.toString().length,35302) !== T9V){if(I_6 !== 1){return 1;}}return new T0y.Renderer.Scatter({params:T0y.extend(m0c,{type:I_6})});};T0y.Renderer.Scatter.prototype.drawIndividualSeries=function(N9P,J3u){var m85,m44;m85=this.stx.panels[J3u.panel] || N9P.panel;m44={colors:[]};if(this.stx.scatter){m44=this.stx.scatter(m85,J3u);}else {console.warn("Error, Scatter renderer requires customChart.js");}return m44;};};I=P9G=>{var o6w=g9BGt;var O4r,G8N;o6w.Z_e();O4r=typeof _CIQ !== "undefined"?_CIQ:P9G.CIQ;if(!O4r.Studies){console.error("accumulationDistribution feature requires first activating studies feature.");}else {G8N="Accumulation/Distr";G8N+="ibution";O4r.Studies.calculateAccumulationDistribution=function(R02,Y24){o6w.c7b();var A0W,O1P,L2r,b47,g6R,d8h,l1g;A0W=Y24.chart.scrubbed;for(var G_F=Y24.startFrom;G_F < A0W.length;G_F++){O1P="R";O1P+="es";O1P+="ult ";L2r="Use Vo";L2r+="l";L2r+="u";L2r+="me";if(!G_F)continue;b47=A0W[G_F];if(b47.futureTick)break;o6w.O90(7);g6R=A0W[o6w.D8z(1,G_F)];d8h=0;if(b47.Close > g6R.Close){d8h=b47.Close - Math.min(b47.Low,g6R.Close);}else if(b47.Close < g6R.Close){d8h=b47.Close - Math.max(b47.High,g6R.Close);}if(Y24.inputs[L2r]){d8h*=b47.Volume;}l1g=g6R[O1P + Y24.name];if(!l1g){l1g=0;}l1g+=d8h;if(!isNaN(b47.Close)){b47["Result " + Y24.name]=l1g;}}};O4r.Studies.studyLibrary=O4r.extend(O4r.Studies.studyLibrary,{"W Acc Dist":{name:G8N,calculateFN:O4r.Studies.calculateAccumulationDistribution,inputs:{"Use Volume":![]}}});}};o=c9v=>{var B$b=g9BGt;B$b.c7b();var h8w,F6l;h8w=typeof _CIQ !== "undefined"?_CIQ:c9v.CIQ;if(!h8w.Studies){console.error("adx feature requires first activating studies feature.");}else {F6l="#F";F6l+="F0";F6l+="000";h8w.Studies.calculateADX=function(B$Q,M3Y){var g2c,q52,U_c,x$U,v9o,T4d,H2G,d2m,H_D,P59,o_j,k0c,e6G,h9f,o3K,J6E,D8O,W5s,j$m,H3T;h8w.Studies.calculateStudyATR(B$Q,M3Y);g2c=M3Y.chart.scrubbed;q52=M3Y.days;U_c=parseInt(M3Y.inputs["Smoothing Period"],10);if(!U_c && U_c !== 0){U_c=q52;}if(g2c.length < M3Y.days + 1){M3Y.error=!"";return;}x$U=0;v9o=0;B$b.X$L(0);T4d=B$b.D8z("0",0);B$b.c7b();H2G=0;for(var d7S=Math.max(1,M3Y.startFrom);d7S < g2c.length;d7S++){d2m=g2c[d7S];H_D=Math.max(0,d2m.High - g2c[d7S - ("1" | 1)].High);P59=Math.max(0,g2c[d7S - 1].Low - d2m.Low);if(H_D > P59){P59=0;}else if(P59 > H_D){H_D=0;}else {H_D=P59=0;}if(d7S <= q52){v9o+=H_D;T4d+=P59;x$U+=d2m["True Range " + M3Y.name];}else {B$b.O90(38);var A5d=B$b.t1w(10,189,19);B$b.O90(38);var s2g=B$b.t1w(18,287,16);v9o=g2c[d7S - A5d]["_sm+DM " + M3Y.name] * (q52 - s2g) / q52 + H_D;B$b.O90(1);var U3g=B$b.t1w(0,1);B$b.O90(117);var n$h=B$b.t1w(1,15,14);T4d=g2c[d7S - U3g]["_sm-DM " + M3Y.name] * (q52 - n$h) / q52 + P59;B$b.O90(7);var I9W=B$b.D8z(15,16);B$b.O90(2);var X57=B$b.t1w(0,3,3,1);x$U=g2c[d7S - I9W]["_smTR " + M3Y.name] * (q52 - X57) / q52 + d2m["True Range " + M3Y.name];}d2m["_sm+DM " + M3Y.name]=v9o;d2m["_sm-DM " + M3Y.name]=T4d;d2m["_smTR " + M3Y.name]=x$U;if(d7S < q52)continue;B$b.O90(118);o_j=B$b.t1w(x$U,v9o,"100");B$b.O90(119);k0c=B$b.D8z(100,x$U,T4d);e6G=+"100" * Math.abs(o_j - k0c) / (o_j + k0c);d2m["+DI " + M3Y.name]=o_j;d2m["-DI " + M3Y.name]=k0c;if(M3Y.inputs.Series !== !!"" && U_c){if(d7S < q52 + U_c - "1" * 1){if(d7S == M3Y.startFrom){for(var U6K=q52;U6K < M3Y.startFrom;U6K++){h9f="+D";h9f+="I";h9f+=" ";B$b.X$L(7);var e_F=B$b.t1w(20,120);H2G+=e_F * Math.abs(g2c[U6K]["+DI " + M3Y.name] - g2c[U6K]["-DI " + M3Y.name]) / (g2c[U6K][h9f + M3Y.name] + g2c[U6K]["-DI " + M3Y.name]);}}H2G+=e6G;}else if(d7S == q52 + U_c - +"1"){B$b.O90(23);d2m["ADX " + M3Y.name]=B$b.t1w(U_c,H2G);}else {o3K="AD";o3K+="X ";B$b.O90(60);var D89=B$b.D8z(235,13,18);d2m["ADX " + M3Y.name]=(g2c[d7S - D89][o3K + M3Y.name] * (U_c - +"1") + e6G) / U_c;}}if(M3Y.inputs.Histogram){J6E="-D";J6E+="I";J6E+=" ";D8O="+D";D8O+="I ";W5s="_";W5s+="hist";j$m=M3Y.name + W5s;if(!d2m["+DI " + M3Y.name] && d2m[D8O + M3Y.name] !== +"0")continue;if(!d2m[J6E + M3Y.name] && d2m["-DI " + M3Y.name] !== 0)continue;d2m[j$m]=d2m["+DI " + M3Y.name] - d2m["-DI " + M3Y.name];if(M3Y.inputs.Series === !({})){H3T="+";H3T+="D";H3T+="I";H3T+=" ";d2m[H3T + M3Y.name]=null;d2m["-DI " + M3Y.name]=null;}M3Y.outputMap[j$m]="";}}};h8w.Studies.displayADX=function(Y_G,M$P,h$c){var R1f,z8I,s6t,a2F,d8p,v0U,D4h,z2X,q1p;R1f=":";R1f+=" ";z8I=M$P.underlay?0.3:M$P.inputs.Series?+"0.4":1;if(M$P.inputs.Series && M$P.inputs.Shading){s6t="-";s6t+="D";s6t+="I";s6t+=" ";a2F="+DI " + M$P.name;d8p=s6t + M$P.name;v0U=h8w.Studies.determineColor(M$P.outputs[M$P.outputMap[a2F]]);D4h=h8w.Studies.determineColor(M$P.outputs[M$P.outputMap[d8p]]);z2X=M$P.getYAxis(Y_G);q1p={topBand:a2F,bottomBand:d8p,topColor:v0U,bottomColor:D4h,skipTransform:Y_G.panels[M$P.panel].name != M$P.chart.name,topAxis:z2X,bottomAxis:z2X,opacity:0.3};if(!M$P.highlight && Y_G.highlightedDraggable){q1p.opacity*=0.3;}h8w.fillIntersecting(Y_G,M$P.panel,q1p);}if(M$P.inputs.Histogram){h8w.Studies.createHistogram(Y_G,M$P,h$c,!1,z8I);}if(M$P.inputs.Series !== !({})){h8w.Studies.displaySeriesAsLine(Y_G,M$P,h$c);}else if(!M$P.inputs.Series && !M$P.inputs.Histogram){Y_G.displayErrorAsWatermark(M$P.panel,Y_G.translateIf(M$P.name) + R1f + Y_G.translateIf("Nothing to display"));}};h8w.Studies.studyLibrary=h8w.extend(h8w.Studies.studyLibrary,{ADX:{name:"ADX/DMS",calculateFN:h8w.Studies.calculateADX,seriesFN:h8w.Studies.displayADX,inputs:{Period:+"14","Smoothing Period":14,Series:!![],Shading:!({}),Histogram:!"1"},outputs:{"+DI":"#00FF00","-DI":F6l,ADX:"auto","Positive Bar":"#00DD00","Negative Bar":"#FF0000"}}});}};N=d6s=>{var G_T=g9BGt;G_T.c7b();var q$M,Z9z,S1l;q$M="unde";q$M+="fine";q$M+="d";Z9z=typeof _CIQ !== q$M?_CIQ:d6s.CIQ;if(!Z9z.Studies){console.error("alligator feature requires first activating studies feature.");}else {S1l="#F";S1l+="F000";S1l+="0";Z9z.Studies.calculateAlligator=function(q5c,K4D){var A4n,K9H,v10,Z$s,X7B,E2f,r78,Z9k,H24,E2D,o2N,Y5U;A4n="Li";A4n+="ps P";A4n+="erio";A4n+="d";K9H={J:Number(K4D.inputs["Jaw Period"]),T:Number(K4D.inputs["Teeth Period"]),L:Number(K4D.inputs[A4n])};v10=K4D.chart.scrubbed;if(v10.length < Math.max(K9H.J,K9H.T,K9H.L) + 1){K4D.error=!!({});return;}if(K4D.type === "Gator" || K4D.inputs["Show Lines"]){Z$s="Li";Z$s+="ps Of";Z$s+="fs";Z$s+="et";X7B="T";X7B+="e";X7B+="et";X7B+="h";E2f="w";E2f+="ell";E2f+="es wilder";Z9z.Studies.MA("welles wilder",K9H.J,"hl/2",K4D.inputs["Jaw Offset"],"Jaw",q5c,K4D);Z9z.Studies.MA(E2f,K9H.T,"hl/2",K4D.inputs["Teeth Offset"],X7B,q5c,K4D);Z9z.Studies.MA("welles wilder",K9H.L,"hl/2",K4D.inputs[Z$s],"Lips",q5c,K4D);}for(var W9A=K4D.startFrom;W9A < v10.length;W9A++){r78="Ga";r78+="t";r78+="o";r78+="r";if(!v10[W9A])continue;if(K4D.type == r78){Z9k="Li";Z9k+="ps";Z9k+=" ";H24=v10[W9A]["Jaw " + K4D.name];E2D=v10[W9A][Z9k + K4D.name];o2N=v10[W9A]["Teeth " + K4D.name];if(o2N || o2N === 0){Y5U="_";Y5U+="h";Y5U+="ist1";if(H24 || H24 === 0){G_T.X$L(7);v10[W9A][K4D.name + Y5U]=Math.abs(G_T.t1w(o2N,H24));}if(E2D || E2D === 0){G_T.O90(7);v10[W9A][K4D.name + "_hist2"]=-Math.abs(G_T.t1w(E2D,o2N));}}K4D.outputMap={};K4D.outputMap[K4D.name + "_hist1"]="";K4D.outputMap[K4D.name + "_hist2"]="";}if(K4D.inputs["Show Fractals"]){if(!v10[W9A - 2] || !v10[W9A - 1] || !v10[W9A] || !v10[W9A + 1] || !v10[W9A + 2])continue;if(v10[W9A - 2].High && v10[W9A - 1].High && v10[W9A].High && v10[W9A + 1].High && v10[W9A + 2].High){if(v10[W9A].High > v10[W9A - 1].High && v10[W9A].High > v10[W9A - 2].High && v10[W9A].High > v10[W9A + ("1" << 32)].High && v10[W9A].High > v10[W9A + 2].High){v10[W9A]["Fractal High " + K4D.name]=1;}}if(v10[W9A - 2].Low && v10[W9A - 1].Low && v10[W9A].Low && v10[W9A + 1].Low && v10[W9A + 2].Low){if(v10[W9A].Low < v10[W9A - 1].Low && v10[W9A].Low < v10[W9A - 2].Low && v10[W9A].Low < v10[W9A + 1].Low && v10[W9A].Low < v10[W9A + 2].Low){v10[W9A]["Fractal Low " + K4D.name]=1;}}}}};Z9z.Studies.displayAlligator=function(W35,S1h,B19){var A_u,Y94,k10,j92;A_u="Show";A_u+=" ";function w_F(Y$v,I6z){var k$R,V8X,T$5,J9G,D_O,i0R,W4I;V8X=W35.chart.panel.yAxis.flipped;G_T.Z_e();if(Y$v == "high"){T$5="to";T$5+="p";Y94.fillStyle=W35.defaultColor;Y94.textBaseline=V8X?T$5:"bottom";k$R=W35.pixelFromPrice(B19[I6z].High);J9G=-1737886423;D_O=-1074584451;i0R=2;for(var q84=+"1";G_T.i7j(q84.toString(),q84.toString().length,"69962" * 1) !== J9G;q84++){Y94.fillText(V8X?(83.79,4240) == (1890,"611" * 1)?(!"","51.79" - 0):(+"5962",7220) < 469?(!({}),!1):"\u25BC":(863.69,1488) <= 5270?"\u25B2":(8.10e+3,"I"),W35.pixelFromBar(k93,W35.chart) - Y94.measureText("\u25B2").width / 2 + 1,V8X?k$R + 5:k$R - 5);;i0R+=2;}if(G_T.i7j(i0R.toString(),i0R.toString().length,63486) !== D_O){Y94.fillText(V8X?(76915,6403) != (+"5272",191)?(!1,49664):(+"1565",+"7532") <= "477" << 32?(!!1,!!({})):"\u25BC":(229714,8864) > 7743?"\u25B2":(2530486,"I"),W35.pixelFromBar(k93,W35.chart) * (Y94.measureText("\u25B2").width * 1) / ("5" * 1),V8X?k$R / ("6" ^ 0):k$R + 1);;}}else if(Y$v == "low"){W4I="bo";W4I+="tt";W4I+="o";W4I+="m";Y94.fillStyle=W35.defaultColor;Y94.textBaseline=V8X?W4I:"top";k$R=W35.pixelFromPrice(B19[I6z].Low);Y94.fillText(V8X?9976 !== (784,8552)?3040 != +"4826"?(3150,3759) < (5050,927.96)?186.49:"\u25B2":"p":![]:("9880" ^ 0,59.9) != +"5970"?"\u25BC":("d",0x1558),W35.pixelFromBar(k93,W35.chart) - Y94.measureText(153.57 <= (8790,"2910" ^ 0)?"\u25BC":("3057" - 0,7826) !== (8162,468.32)?181 != 2660?0x197f:"153.38" * 1:0x74b).width / 2 + 1,V8X?k$R - 5:k$R + 5);;}}G_T.c7b();A_u+="Fr";A_u+="actals";Y94=S1h.getContext(W35);if(S1h.inputs["Show Lines"]){Z9z.Studies.displaySeriesAsLine(W35,S1h,B19);}if(S1h.inputs[A_u]){W35.startClip();Y94.globalAlpha=S1h.underlay?0.3:1;if(!S1h.highlight && W35.highlightedDraggable){Y94.globalAlpha*=0.3;}for(var k93=2;k93 < B19.length - +"2";k93++){if(B19[k93]){k10="h";k10+="igh";j92="F";j92+="racta";j92+="l High ";if(B19[k93][j92 + S1h.name]){w_F(k10,k93);}if(B19[k93]["Fractal Low " + S1h.name]){w_F("low",k93);}}}W35.endClip();}};Z9z.Studies.displayGator=function(a6S,K9T,H6B){var V$K,P_h,z$D,g2l,b7W,D08,H50,F5H,m78;V$K=a6S.panels[K9T.panel];P_h=K9T.getContext(a6S);z$D=K9T.getYAxis(a6S);g2l=a6S.pixelFromPrice(0,V$K,z$D);G_T.O90(7);var R5M=G_T.D8z(1088,1152);b7W=a6S.layout.candleWidth - ("2" << R5M);if(b7W < 2){b7W=+"1";}D08=Z9z.Studies.determineColor(K9T.outputs["Increasing Bar"]);H50=Z9z.Studies.determineColor(K9T.outputs["Decreasing Bar"]);a6S.canvasColor("stx_histogram");if(!K9T.underlay){P_h.globalAlpha=1;}P_h.fillStyle="#CCCCCC";a6S.startClip(K9T.panel);if(!K9T.highlight && a6S.highlightedDraggable){G_T.X$L(7);P_h.globalAlpha*=G_T.t1w(0,"0.3");}for(var r5D=0;r5D < H6B.length;r5D++){F5H=H6B[r5D];G_T.X$L(7);m78=H6B[G_T.D8z(1,r5D)];if(!F5H)continue;for(var X2x=1;X2x <= 2;X2x++){if(!m78){m78=a6S.getPreviousBar(a6S.chart,K9T.name + "_hist" + X2x,r5D);}if(!m78){P_h.fillStyle="#CCCCCC";}else if(Math.abs(m78[K9T.name + "_hist" + X2x]) < Math.abs(F5H[K9T.name + "_hist" + X2x])){P_h.fillStyle=D08;}else if(Math.abs(m78[K9T.name + "_hist" + X2x]) > Math.abs(F5H[K9T.name + "_hist" + X2x])){P_h.fillStyle=H50;}if(F5H.candleWidth){b7W=Math.floor(Math.max(1,F5H.candleWidth - 2));}P_h.fillRect(Math.floor(a6S.pixelFromBar(r5D,V$K.chart) - b7W / 2),Math.floor(g2l),Math.floor(b7W),Math.floor(a6S.pixelFromPrice(F5H[K9T.name + "_hist" + X2x],V$K,z$D) - g2l));}}a6S.endClip();};Z9z.Studies.studyLibrary=Z9z.extend(Z9z.Studies.studyLibrary,{Alligator:{name:"Alligator",overlay:!"",seriesFN:Z9z.Studies.displayAlligator,calculateFN:Z9z.Studies.calculateAlligator,inputs:{"Show Lines":!!({}),"Jaw Period":13,"Jaw Offset":8,"Teeth Period":8,"Teeth Offset":"5" >> 32,"Lips Period":5,"Lips Offset":3,"Show Fractals":!1},outputs:{Jaw:"#0000FF",Teeth:"#FF0000",Lips:"#00DD00"}},Gator:{name:"Gator Oscillator",seriesFN:Z9z.Studies.displayGator,calculateFN:Z9z.Studies.calculateAlligator,inputs:{"Jaw Period":13,"Jaw Offset":8,"Teeth Period":8,"Teeth Offset":5,"Lips Period":5,"Lips Offset":3},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":S1l},centerline:0}});}};S=Q5d=>{var J_y,V3N,Z1x;J_y=typeof _CIQ !== "undefined"?_CIQ:Q5d.CIQ;if(!J_y.Studies){V3N="aroon feature requires firs";V3N+="t act";V3N+="i";V3N+="vating studies feature.";console.error(V3N);}else {Z1x="Aroon";Z1x+=" O";Z1x+="scillator";J_y.Studies.calculateAroon=function(j_b,Y3x){var y05=g9BGt;y05.c7b();var j1s,e$R,z7Q,n7g,a8i,g16,G4$,F$e,q9l,k9P,e3S,J7o,F4x,I5_;j1s=Y3x.chart.scrubbed;if(j1s.length < Y3x.days + 1){Y3x.error=!![];return;}e$R=0;z7Q=0;n7g=null;a8i=null;if(Y3x.startFrom > 0){y05.O90(51);var b1e=y05.D8z(4,75,12,19,3);g16=j1s[Y3x.startFrom - b1e]["_state " + Y3x.name];if(g16){e$R=g16[0];z7Q=g16[1];n7g=g16[2];a8i=g16[3];}}for(var g6v=Y3x.startFrom;g6v < j1s.length;g6v++){F$e="_s";F$e+="t";F$e+="ate";F$e+=" ";q9l="Aroon U";q9l+="p ";k9P=j1s[g6v];if(k9P.futureTick)break;if(n7g === null){n7g=k9P.High;}if(a8i === null){a8i=k9P.Low;}n7g=Math.max(n7g,k9P.High);if(n7g == k9P.High){e$R=0;}else {e$R++;if(e$R > Y3x.days){n7g=k9P.High;e$R=+"0";for(G4$=1;G4$ <= Y3x.days;G4$++){n7g=Math.max(n7g,j1s[g6v - G4$].High);if(n7g == j1s[g6v - G4$].High){e$R=G4$;}}}}a8i=Math.min(a8i,k9P.Low);if(a8i == k9P.Low){z7Q=0;}else {z7Q++;if(z7Q > Y3x.days){a8i=k9P.Low;z7Q=+"0";for(G4$=1;G4$ <= Y3x.days;G4$++){a8i=Math.min(a8i,j1s[g6v - G4$].Low);if(a8i == j1s[g6v - G4$].Low){z7Q=G4$;}}}}e3S=!isNaN(k9P.High);J7o=!isNaN(k9P.Low);y05.X$L(120);var E_u=y05.D8z(117,13,99,9);y05.O90(57);var N_z=y05.t1w(3,1,2);F4x=E_u * (N_z - e$R / Y3x.days);if(e3S){k9P[q9l + Y3x.name]=F4x;}y05.X$L(40);var W1a=y05.t1w(109,2,7);I5_=W1a * (+"1" - z7Q / Y3x.days);if(J7o){k9P["Aroon Down " + Y3x.name]=I5_;}if(e3S && J7o){k9P["Aroon Oscillator " + Y3x.name]=k9P["Aroon Up " + Y3x.name] - k9P["Aroon Down " + Y3x.name];}k9P[F$e + Y3x.name]=[e$R,z7Q,n7g,a8i];}};J_y.Studies.studyLibrary=J_y.extend(J_y.Studies.studyLibrary,{Aroon:{name:"Aroon",range:"0 to 100",calculateFN:J_y.Studies.calculateAroon,outputs:{"Aroon Up":"#00DD00","Aroon Down":"#FF0000"}},"Aroon Osc":{name:Z1x,calculateFN:J_y.Studies.calculateAroon,outputs:{"Aroon Oscillator":"auto"}}});}};U=w09=>{var d$o,L4_,L2J,q8N,p2N,e2V;d$o=typeof _CIQ !== "undefined"?_CIQ:w09.CIQ;if(!d$o.Studies){console.error("atr feature requires first activating studies feature.");}else {L4_="#00FF0";L4_+="0";L2J="#";L2J+="FF";L2J+="000";L2J+="0";q8N="s";q8N+="quarewav";q8N+="e";p2N="po";p2N+="i";p2N+="nt";p2N+="s";e2V="a";e2V+="ut";e2V+="o";d$o.Studies.calculateATRBands=function(e48,X40){var K7p,C3j,Y3c;K7p="Cl";K7p+="o";K7p+="s";K7p+="e";C3j="fiel";C3j+="d";d$o.Studies.calculateStudyATR(e48,X40);Y3c=X40.inputs.Field;if(!Y3c || Y3c == C3j){Y3c=K7p;}d$o.Studies.calculateGenericEnvelope(e48,X40,X40.inputs.Shift,Y3c,"ATR " + X40.name);};d$o.Studies.calculateSTARCBands=function(R4h,R4x){var U2U;U2U="MA P";U2U+="eriod";d$o.Studies.calculateStudyATR(R4h,R4x);d$o.Studies.MA("simple",R4x.inputs[U2U],"Close",0,"_MA",R4h,R4x);d$o.Studies.calculateGenericEnvelope(R4h,R4x,R4x.inputs.Multiplier,"_MA " + R4x.name,"ATR " + R4x.name);};d$o.Studies.calculateATRStops=function(P$4,S4Q){var i5T=g9BGt;var j_Z,l1k,s30,n0n,u3K,X4C,g9u,l94,q3w;j_Z="A";j_Z+="ll St";j_Z+="ops ";l1k=S4Q.chart.scrubbed;if(!l1k){return;}d$o.Studies.calculateStudyATR(P$4,S4Q);s30=S4Q.inputs.HighLow;for(var t4B=Math.max(S4Q.startFrom - 1,1);t4B < l1k.length - 1;t4B++){n0n=l1k[t4B];i5T.O90(7);u3K=l1k[i5T.t1w(1,t4B)];X4C=n0n["Buy Stops " + S4Q.name];if(!X4C){X4C=n0n["Sell Stops " + S4Q.name];}if(!X4C){X4C=0;}if(!n0n || !u3K)continue;g9u=n0n.Close;l94=g9u;q3w=n0n["ATR " + S4Q.name] * S4Q.inputs.Multiplier;if(n0n.Close > X4C && u3K.Close > X4C){if(s30){g9u=n0n.High;}i5T.O90(7);l94=Math.max(X4C,i5T.t1w(q3w,g9u));}else if(n0n.Close <= X4C && u3K.Close <= X4C){if(s30){g9u=n0n.Low;}i5T.X$L(1);l94=Math.min(X4C,i5T.D8z(g9u,q3w));}else if(n0n.Close > X4C){if(s30){g9u=n0n.High;}i5T.X$L(7);l94=i5T.t1w(q3w,g9u);}else if(n0n.Close <= X4C){if(s30){g9u=n0n.Low;}i5T.X$L(1);l94=i5T.D8z(g9u,q3w);}if(g9u <= l94){i5T.O90(1);l1k[i5T.D8z(t4B,1)]["Buy Stops " + S4Q.name]=l94;i5T.O90(121);delete l1k[i5T.t1w(t4B,0,"1")]["Sell Stops " + S4Q.name];}else if(g9u > l94){i5T.X$L(1);l1k[i5T.D8z(t4B,1)]["Sell Stops " + S4Q.name]=l94;i5T.X$L(78);delete l1k[i5T.D8z(t4B,"1")]["Buy Stops " + S4Q.name];}i5T.O90(1);l1k[i5T.D8z(t4B,1)]["All Stops " + S4Q.name]=l94;}S4Q.referenceOutput="All Stops";S4Q.outputMap={};S4Q.outputMap[j_Z + S4Q.name]="";};d$o.Studies.studyLibrary=d$o.extend(d$o.Studies.studyLibrary,{ATR:{name:"Average True Range",calculateFN:d$o.Studies.calculateStudyATR,outputs:{ATR:"auto"}},"ATR Bands":{name:"ATR Bands",overlay:!!({}),seriesFN:d$o.Studies.displayChannel,calculateFN:d$o.Studies.calculateATRBands,inputs:{Period:5,Field:"field",Shift:3,"Channel Fill":!!1},outputs:{"ATR Bands Top":"auto","ATR Bands Bottom":"auto","ATR Bands Channel":e2V},attributes:{Shift:{min:0.1,step:"0.1" - 0}}},"STARC Bands":{name:"STARC Bands",overlay:!!({}),seriesFN:d$o.Studies.displayChannel,calculateFN:d$o.Studies.calculateSTARCBands,inputs:{Period:15,"MA Period":5,Multiplier:1.3,"Channel Fill":!!"1"},outputs:{"STARC Bands Top":"auto","STARC Bands Median":"auto","STARC Bands Bottom":"auto"},attributes:{Multiplier:{min:0.1,step:0.1}}},"ATR Trailing Stop":{name:"ATR Trailing Stops",overlay:!![],seriesFN:d$o.Studies.displayPSAR2,calculateFN:d$o.Studies.calculateATRStops,inputs:{Period:"21" << 32,Multiplier:+"3","Plot Type":[p2N,q8N],HighLow:![]},outputs:{"Buy Stops":L2J,"Sell Stops":L4_},attributes:{Multiplier:{min:0.1,step:0.1}}}});}};Y=B5N=>{var v6h=g9BGt;var p7P,z_S,N1y;v6h.c7b();p7P=typeof _CIQ !== "undefined"?_CIQ:B5N.CIQ;if(!p7P.Studies){console.error("awesomeOscillator feature requires first activating studies feature.");}else {z_S="#";z_S+="FF0";z_S+="0";z_S+="00";N1y="Aweso";N1y+="me ";N1y+="Oscil";N1y+="lator";p7P.Studies.calculateAwesomeOscillator=function(E$p,m4b){var Y51,z$p,a3o;Y51="hl";Y51+="/";Y51+="2";z$p=m4b.chart.scrubbed;if(z$p.length < 33){m4b.error=!![];return;}v6h.c7b();p7P.Studies.MA("simple",5,Y51,+"0","_MA5",E$p,m4b);p7P.Studies.MA("simple",34,"hl/2",0,"_MA34",E$p,m4b);for(var S5b=Math.max(m4b.startFrom,"33" | 1);S5b < z$p.length;S5b++){a3o="_M";a3o+="A";a3o+="5 ";if(!z$p[S5b])continue;z$p[S5b][m4b.name + "_hist"]=z$p[S5b][a3o + m4b.name] - z$p[S5b]["_MA34 " + m4b.name];}m4b.outputMap={};m4b.outputMap[m4b.name + "_hist"]="";};p7P.Studies.displayAwesomeOscillator=function(W4w,s57,L87){var H2A,f4j,H40,S66,A_y,s6H,n_X,K2u,n$f,a9l,s8l,V30;H2A="stx_hi";H2A+="stogr";H2A+="a";H2A+="m";f4j=W4w.panels[s57.panel];H40=s57.getContext(W4w);S66=s57.getYAxis(W4w);A_y=W4w.pixelFromPrice(0,f4j,S66);v6h.O90(122);var V8o=v6h.t1w(17,10,5,1);s6H=W4w.layout.candleWidth - V8o;if(s6H < 2){s6H=1;}n_X=p7P.Studies.determineColor(s57.outputs["Increasing Bar"]);K2u=p7P.Studies.determineColor(s57.outputs["Decreasing Bar"]);v6h.Z_e();W4w.canvasColor(H2A);if(!s57.underlay){v6h.O90(3);H40.globalAlpha=v6h.D8z(0,"1");}H40.fillStyle="#CCCCCC";W4w.startClip(s57.panel);if(!s57.highlight && W4w.highlightedDraggable){H40.globalAlpha*=0.3;}for(var j9s=0;j9s < L87.length;j9s++){n$f="_his";n$f+="t";a9l="_his";a9l+="t";s8l=L87[j9s];v6h.X$L(7);V30=L87[v6h.t1w(1,j9s)];if(!V30){V30=W4w.getPreviousBar(W4w.chart,s57.name + a9l,j9s);}if(!s8l)continue;if(!V30);else if(V30[s57.name + "_hist"] < s8l[s57.name + "_hist"]){H40.fillStyle=n_X;}else if(V30[s57.name + "_hist"] > s8l[s57.name + n$f]){H40.fillStyle=K2u;}if(s8l.candleWidth){s6H=Math.floor(Math.max(1,s8l.candleWidth - ("2" | 2)));}H40.fillRect(Math.floor(W4w.pixelFromBar(j9s,f4j.chart) - s6H / 2),Math.floor(A_y),Math.floor(s6H),Math.floor(W4w.pixelFromPrice(s8l[s57.name + "_hist"],f4j,S66) - A_y));}W4w.endClip();};p7P.Studies.studyLibrary=p7P.extend(p7P.Studies.studyLibrary,{Awesome:{name:N1y,seriesFN:p7P.Studies.displayAwesomeOscillator,calculateFN:p7P.Studies.calculateAwesomeOscillator,inputs:{},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":z_S}}});}};E=D1x=>{g9BGt.c7b();var e78,I_Y,s6L,W4x;e78=typeof _CIQ !== "undefined"?_CIQ:D1x.CIQ;if(!e78.Studies){I_Y="bal";I_Y+="anceOfPower feature requires first activating studies feature.";console.error(I_Y);}else {s6L="-";s6L+="1";s6L+=" ";s6L+="to 1";W4x="Bal";W4x+="ance";W4x+=" of Power";e78.Studies.calculateBalanceOfPower=function(G7u,S7G){var x3a,g5F,g0i;x3a="_";x3a+="Ra";x3a+="ti";x3a+="o ";g9BGt.c7b();g5F=S7G.chart.scrubbed;if(g5F.length < S7G.days + 1){S7G.error=!!({});return;}for(var p4H=S7G.startFrom;p4H < g5F.length;p4H++){g0i=g5F[p4H];g0i["_Ratio " + S7G.name]=g0i.Close - g0i.Open;if(g0i.High - g0i.Low !== 0){g0i["_Ratio " + S7G.name]/=g0i.High - g0i.Low;}}e78.Studies.MA(S7G.inputs["Moving Average Type"],S7G.days,x3a + S7G.name,0,"Result",G7u,S7G);};e78.Studies.studyLibrary=e78.extend(e78.Studies.studyLibrary,{"Bal Pwr":{name:W4x,range:s6L,centerline:+"0",calculateFN:e78.Studies.calculateBalanceOfPower,inputs:{Period:14,"Moving Average Type":"ma"}}});}};g=J3R=>{g9BGt.Z_e();var F3A,F7I,B8i,W6J,w1y,J0a;F3A=typeof _CIQ !== "undefined"?_CIQ:J3R.CIQ;if(!F3A.Studies){console.error("bollinger feature requires first activating studies feature.");}else {F7I="m";F7I+="a";B8i="a";B8i+="u";B8i+="t";B8i+="o";W6J="a";W6J+="u";W6J+="t";W6J+="o";w1y="a";w1y+="ut";w1y+="o";J0a="f";J0a+="ie";J0a+="ld";F3A.Studies.calculateBollinger=function(I65,d7F){var x$t,Y4d,T9W,e54,F7$,Z8I,F4l;x$t="%";x$t+="b";Y4d="Bo";Y4d+="ll";Y4d+=" %";Y4d+="b";T9W="_STD De";T9W+="v";T9W+=" ";e54="ST";e54+="D Dev";F7$="_";F7$+="M";F7$+="A";Z8I="Movin";Z8I+="g Aver";Z8I+="age Typ";Z8I+="e";F4l=d7F.inputs.Field;if(!F4l || F4l == "field"){F4l="Close";}F3A.Studies.MA(d7F.inputs[Z8I],d7F.days,F4l,0,F7$,I65,d7F);d7F.std=new F3A.Studies.StudyDescriptor(d7F.name,e54,d7F.panel);d7F.std.chart=d7F.chart;d7F.std.startFrom=d7F.startFrom;d7F.std.days=d7F.days;d7F.std.inputs={Field:F4l,"Standard Deviations":1,Type:d7F.inputs["Moving Average Type"]};d7F.std.outputs={"_STD Dev":null};F3A.Studies.calculateStandardDeviation(I65,d7F.std);F3A.Studies.calculateGenericEnvelope(I65,d7F,d7F.inputs["Standard Deviations"],"_MA " + d7F.name,T9W + d7F.name);if(d7F.type == Y4d){d7F.zoneOutput=x$t;}};F3A.Studies.studyLibrary=F3A.extend(F3A.Studies.studyLibrary,{"Bollinger Bands":{name:"Bollinger Bands",overlay:!!({}),calculateFN:F3A.Studies.calculateBollinger,seriesFN:F3A.Studies.displayChannel,inputs:{Period:"20" - 0,Field:J0a,"Standard Deviations":2,"Moving Average Type":"ma","Channel Fill":!!"1"},outputs:{"Bollinger Bands Top":"auto","Bollinger Bands Median":w1y,"Bollinger Bands Bottom":"auto"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"Boll %b":{name:"Bollinger %b",calculateFN:F3A.Studies.calculateBollinger,inputs:{Period:20,Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},outputs:{"%b":W6J},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:100,studyOverBoughtColor:B8i,studyOverSoldValue:+"0",studyOverSoldColor:"auto"}},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"Boll BW":{name:"Bollinger Bandwidth",calculateFN:F3A.Studies.calculateBollinger,inputs:{Period:20,Field:"field","Standard Deviations":2,"Moving Average Type":F7I},outputs:{Bandwidth:"auto"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}}});}};F=j3e=>{var q$V=g9BGt;var X1J,j1n,h_2,p4N,I5T;X1J="undefine";q$V.c7b();X1J+="d";j1n=typeof _CIQ !== X1J?_CIQ:j3e.CIQ;if(!j1n.Studies){console.error("cci feature requires first activating studies feature.");}else {h_2="au";h_2+="to";p4N="a";p4N+="uto";I5T="Commodity Channel Ind";I5T+="ex";j1n.Studies.calculateCCI=function(M4d,o_Z){var B_8,m_m,j9X,d28,W7v;B_8=o_Z.chart.scrubbed;if(B_8.length < o_Z.days + 1){o_Z.error=!![];return;}q$V.c7b();j1n.Studies.MA("simple",o_Z.days,"hlc/3","0" - 0,"MA",M4d,o_Z);for(var G0n=Math.max(o_Z.startFrom,o_Z.days - 1);G0n < B_8.length;G0n++){m_m="Result";m_m+=" ";j9X=B_8[G0n];if(!j9X)continue;d28=0;for(var t_p=0;t_p < o_Z.days;t_p++){W7v="M";W7v+="A";W7v+=" ";d28+=Math.abs(B_8[G0n - t_p]["hlc/3"] - j9X[W7v + o_Z.name]);}d28/=o_Z.days;if(Math.abs(d28) < 0.00000001){q$V.X$L(0);j9X[m_m + o_Z.name]=q$V.D8z("0",0);}else {j9X["Result " + o_Z.name]=(j9X["hlc/3"] - j9X["MA " + o_Z.name]) / (0.015 * d28);}}};j1n.Studies.studyLibrary=j1n.extend(j1n.Studies.studyLibrary,{CCI:{name:I5T,calculateFN:j1n.Studies.calculateCCI,inputs:{Period:+"20"},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:+"100",studyOverBoughtColor:p4N,studyOverSoldValue:-100,studyOverSoldColor:h_2}},attributes:{Period:{min:2}}}});}};K5=X2w=>{var U8F=g9BGt;U8F.c7b();var m8o,C1D,U5k,F_r,m2z,u9U;m8o="undefi";m8o+="ned";C1D=typeof _CIQ !== m8o?_CIQ:X2w.CIQ;if(!C1D.Studies){U5k=1008953462;F_r=1611917202;m2z=2;for(var s0M=1;U8F.i7j(s0M.toString(),s0M.toString().length,50760) !== U5k;s0M++){console.error("");U8F.O90(35);m2z+=U8F.t1w(64,"2");}if(U8F.i7j(m2z.toString(),m2z.toString().length,8640) !== F_r){console.error("");}console.error("centerOfGravity feature requires first activating studies feature.");}else {u9U="f";u9U+="ield";C1D.Studies.calculateCenterOfGravity=function(A5F,u4i){var E31,d1P,m2h,z5C,o2a,Z9W,N4k,d3X,W46;E31="C";E31+="l";E31+="os";E31+="e";d1P=2126679272;m2h=251096074;z5C=2;for(var J1V="1" << 64;U8F.i7j(J1V.toString(),J1V.toString().length,21360) !== d1P;J1V++){o2a=u4i.chart.scrubbed;z5C+=2;}if(U8F.i7j(z5C.toString(),z5C.toString().length,86645) !== m2h){o2a=u4i.chart.scrubbed;}o2a=u4i.chart.scrubbed;if(o2a.length < u4i.days){u4i.error=!![];return;}Z9W=u4i.inputs.Field;if(!Z9W || Z9W == "field"){Z9W=E31;}for(var g2T=Math.max(u4i.startFrom,u4i.days - 1);g2T < o2a.length;g2T++){U8F.O90(7);N4k=U8F.t1w(0,"0");d3X=0;for(var H9r=0;H9r < u4i.days;H9r++){U8F.X$L(7);W46=o2a[U8F.t1w(H9r,g2T)][Z9W];U8F.X$L(123);N4k-=U8F.t1w(1,W46,H9r);d3X+=W46;}if(d3X){U8F.O90(23);o2a[g2T]["Result " + u4i.name]=U8F.t1w(d3X,N4k);}}};C1D.Studies.studyLibrary=C1D.extend(C1D.Studies.studyLibrary,{COG:{name:"Center Of Gravity",calculateFN:C1D.Studies.calculateCenterOfGravity,inputs:{Period:10,Field:u9U}}});}};z0=Q_A=>{var i9x=g9BGt;var Q9R,W9V,A5U,p5u,i1R;i9x.Z_e();Q9R=typeof _CIQ !== "undefined"?_CIQ:Q_A.CIQ;if(!Q9R.Studies){W9V="chaikin feature req";W9V+="uires ";W9V+="first activating studies feature.";console.error(W9V);}else {Q9R.Studies.calculateChaikinMoneyFlow=function(n_C,W74){var Z1Q,B5K,S7b,F96,m5F,a6R,g2P;Z1Q=W74.chart.scrubbed;if(Z1Q.length < W74.days){W74.error=!!1;return;}i9x.c7b();B5K=0;S7b=0;F96=Z1Q[W74.startFrom - +"1"];if(F96){m5F="_";m5F+="s";m5F+="umV ";if(F96["_sumMF " + W74.name]){B5K=F96["_sumMF " + W74.name];}if(F96[m5F + W74.name]){S7b=F96["_sumV " + W74.name];}}for(var d0r=W74.startFrom;d0r < Z1Q.length;d0r++){a6R="_s";a6R+="umV ";g2P="_";g2P+="MFV ";if(Z1Q[d0r].High == Z1Q[d0r].Low){Z1Q[d0r]["_MFV " + W74.name]=0;}else {i9x.O90(96);var D1G=i9x.D8z(17,6,1328,13);Z1Q[d0r]["_MFV " + W74.name]=Z1Q[d0r].Volume * (D1G * Z1Q[d0r].Close - Z1Q[d0r].High - Z1Q[d0r].Low) / (Z1Q[d0r].High - Z1Q[d0r].Low);}B5K+=Z1Q[d0r][g2P + W74.name];S7b+=Z1Q[d0r].Volume;if(d0r > W74.days - +"1"){B5K-=Z1Q[d0r - W74.days]["_MFV " + W74.name];S7b-=Z1Q[d0r - W74.days].Volume;if(S7b){i9x.X$L(23);Z1Q[d0r]["Result " + W74.name]=i9x.t1w(S7b,B5K);}}Z1Q[d0r]["_sumMF " + W74.name]=B5K;Z1Q[d0r][a6R + W74.name]=S7b;}};Q9R.Studies.calculateChaikinVolatility=function(i3N,B5G){var k$0,I9v,O7V,B6n,s6C,b4m;k$0=B5G.chart.scrubbed;if(k$0.length < B5G.days){B5G.error=!!"1";return;}for(I9v=B5G.startFrom;I9v < k$0.length;I9v++){if(k$0[I9v].futureTick)break;k$0[I9v]["_High-Low " + B5G.name]=k$0[I9v].High - k$0[I9v].Low;}Q9R.Studies.MA(B5G.inputs["Moving Average Type"],B5G.days,"_High-Low " + B5G.name,0,"_MA",i3N,B5G);O7V=B5G.inputs["Rate Of Change"];if(!O7V){O7V=B5G.days;}for(I9v=Math.max(B5G.startFrom,O7V);I9v < k$0.length;I9v++){B6n="_";B6n+="MA";B6n+=" ";s6C="_MA";s6C+=" ";b4m="_";b4m+="M";b4m+="A";b4m+=" ";if(!k$0[I9v - O7V][b4m + B5G.name])continue;if(k$0[I9v].futureTick)break;i9x.X$L(124);var f8q=i9x.t1w(3,4,1,2,8);k$0[I9v]["Result " + B5G.name]=+"100" * (k$0[I9v][s6C + B5G.name] / k$0[I9v - O7V][B6n + B5G.name] - f8q);}};A5U=-837892571;p5u=-287925660;i1R=2;for(var R4M="1" >> 64;i9x.l9L(R4M.toString(),R4M.toString().length,17117) !== A5U;R4M++){Q9R.Studies.studyLibrary=Q9R.extend(Q9R.Studies.studyLibrary,{"Chaikin MF":{name:"Chaikin Money Flow",calculateFN:Q9R.Studies.calculateChaikinMoneyFlow,inputs:{Period:"20" | 4}},"Chaikin Vol":{name:"Chaikin Volatility",calculateFN:Q9R.Studies.calculateChaikinVolatility,inputs:{Period:14,"Rate Of Change":2,"Moving Average Type":"ma"}}});i1R+=2;}if(i9x.l9L(i1R.toString(),i1R.toString().length,6694) !== p5u){Q9R.Studies.studyLibrary=Q9R.extend(Q9R.Studies.studyLibrary,{"Chaikin MF":{name:"Chaikin Money Flow",calculateFN:Q9R.Studies.calculateChaikinMoneyFlow,inputs:{Period:40}},"Chaikin Vol":{name:"Chaikin Vol",calculateFN:Q9R.Studies.calculateChaikinVolatility,inputs:{Period:41,"Rate Of Change":3,"Moving Average Type":"Rate Of Change"}}});}}};z$=g41=>{var U4I=g9BGt;U4I.Z_e();var y_X,c2X,I4G,s$T,k1R;y_X="un";y_X+="defined";c2X=typeof _CIQ !== y_X?_CIQ:g41.CIQ;if(!c2X.Studies){console.error("chande feature requires first activating studies feature.");}else {I4G="a";I4G+="u";I4G+="t";I4G+="o";s$T="fie";s$T+="l";s$T+="d";k1R="Ch";k1R+="ande Forecast Oscillat";k1R+="or";c2X.Studies.prettify.variable="vma";c2X.Studies.movingAverage.conversions.vma="variable";c2X.Studies.movingAverage.translations.variable="Variable";c2X.Studies.movingAverage.typeMap.vma="Variable";c2X.Studies.movingAverage.typeMap.variable="Variable";c2X.Studies.calculateChandeForecast=function(B1h,p7i){var B74,Z4K,Z34;B74=p7i.chart.scrubbed;if(B74.length < p7i.days + 1){p7i.error=!![];return;}Z4K=p7i.inputs.Field;if(!Z4K || Z4K == "field"){Z4K="Close";}c2X.Studies.MA("time series",p7i.days,Z4K,"0" * 1,"MA",B1h,p7i);U4I.c7b();for(var D7t=Math.max(1,p7i.startFrom);D7t < B74.length;D7t++){Z34=B74[D7t][Z4K];if(Z34 && typeof Z34 == "object"){Z34=Z34[p7i.subField];}U4I.X$L(125);var m1B=U4I.D8z(2,0,0,17,19);B74[D7t]["Result " + p7i.name]=+"100" * (m1B - B74[D7t]["MA " + p7i.name] / Z34);}};c2X.Studies.calculateChandeMomentum=function(K$I,U$T){var M4Y,E$1,m21,G5$,n47,T1e,G9U,Y6T,z8t,A1t;M4Y=U$T.name;for(var A8E in U$T.outputs){U4I.O90(95);M4Y=U4I.t1w(A8E,M4Y," ");}E$1=U$T.chart.scrubbed;if(E$1.length < U$T.days + 1){U$T.error=!!1;return;}m21=U$T.inputs.Field;if(!m21 || m21 == "field"){m21="Close";}G5$=0;n47=0;T1e=[];for(var X_j=U$T.startFrom - U$T.days + 1;X_j < E$1.length;X_j++){if(X_j < 1)continue;G9U=E$1[X_j][m21];U4I.O90(7);Y6T=E$1[U4I.D8z(1,X_j)][m21];if(G9U && typeof G9U == "object"){G9U=G9U.Close;}if(Y6T && typeof Y6T == "object"){Y6T=Y6T.Close;}if(Y6T === undefined)continue;U4I.O90(7);z8t=U4I.D8z(Y6T,G9U);T1e.push(z8t);G5$+=z8t;n47+=Math.abs(z8t);if(T1e.length == U$T.days){U4I.O90(119);E$1[X_j][M4Y]=U4I.t1w(100,n47,G5$);A1t=T1e.shift();G5$-=A1t;n47-=Math.abs(A1t);}}};c2X.Studies.calculateMovingAverageVariable=function(K4f,I0R){var V8V,M4s,a1J,i_C,X2d,K38,G14,B_T,H1_,i5L,G2U,C8w,U_3,r_h,f46,e09,H3R,r$d;V8V=I0R.inputs.Type;M4s=I0R.chart.scrubbed;U4I.O90(7);var o8H=U4I.t1w(11,13);U4I.X$L(5);var C36=U4I.t1w(0,4,5);a1J=o8H / (I0R.days + C36);i_C=null;X2d=I0R.name;for(var K0i in I0R.outputs){U4I.X$L(95);X2d=U4I.t1w(K0i,X2d,(4969,601.43) == "4040" << 64?!!1:" ");}K38=I0R.inputs.Field;if(!K38 || K38 == "field"){K38="Close";}I0R.cmo=new c2X.Studies.StudyDescriptor(I0R.name,"cmo",I0R.panel);I0R.cmo.chart=I0R.chart;I0R.cmo.days=9;I0R.cmo.inputs={Field:K38};I0R.cmo.startFrom=I0R.startFrom;I0R.cmo.outputs={_CMO:null};c2X.Studies.calculateChandeMomentum(K4f,I0R.cmo);G14=parseInt(I0R.inputs.Offset,10);if(isNaN(G14)){U4I.X$L(18);G14=U4I.t1w("0",64);}G2U=I0R.startFrom;C8w=G14;for(B_T=I0R.startFrom - 1;B_T >= +"0";B_T--){H1_=M4s[B_T][X2d];if(!H1_ && H1_ !== 0)continue;if(i_C === null){i_C=H1_;}if(C8w <= 0)break;C8w--;G2U=B_T;}if(i_C === null){i_C=G2U=+"0";}U_3=[];for(B_T=G2U;B_T < M4s.length;B_T++){r_h=M4s[B_T];H1_=r_h[K38];if(H1_ && typeof H1_ == "object"){H1_=H1_[I0R.subField];}f46=B_T + G14 >= 0 && B_T + G14 < M4s.length;e09=f46?M4s[B_T + G14]:null;if(!H1_ && H1_ !== 0){if(e09){e09[X2d]=null;}else if(B_T + G14 >= M4s.length){i5L={};i5L[X2d]=null;U_3.push(i5L);}continue;}if(!r_h["_CMO " + I0R.name] && r_h["_CMO " + I0R.name] !== 0)continue;U4I.O90(126);var l4O=U4I.D8z(9,19,3,116);H3R=Math.abs(r_h["_CMO " + I0R.name]) / l4O;U4I.X$L(127);r$d=U4I.D8z(a1J,H3R,1,H1_,i_C,H3R,a1J);i_C=r$d;if(B_T < I0R.days){r$d=null;}if(e09){e09[X2d]=r$d;}else if(B_T + G14 >= M4s.length){i5L={};i5L[X2d]=r$d;U_3.push(i5L);}}I0R.appendFutureTicks(K4f,U_3);};c2X.Studies.studyLibrary=c2X.extend(c2X.Studies.studyLibrary,{"Chande Fcst":{name:k1R,calculateFN:c2X.Studies.calculateChandeForecast,inputs:{Period:14,Field:s$T}},"Chande Mtm":{name:"Chande Momentum Oscillator",calculateFN:c2X.Studies.calculateChandeMomentum,inputs:{Period:9},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:"50" >> 64,studyOverBoughtColor:I4G,studyOverSoldValue:-50,studyOverSoldColor:"auto"}}}});}};w8=a$D=>{var v7V=g9BGt;var z3d,v8t,l3D,t$e,j0G,c8V;z3d=typeof _CIQ !== "undefined"?_CIQ:a$D.CIQ;if(!z3d.Studies){v7V.O90(3);v8t=-v7V.D8z(0,"1027612178");l3D=-575214073;v7V.X$L(0);t$e=v7V.t1w("2",0);for(var n2l="1" * 1;v7V.i7j(n2l.toString(),n2l.toString().length,73594) !== v8t;n2l++){console.error("");t$e+=2;}if(v7V.i7j(t$e.toString(),t$e.toString().length,84551) !== l3D){console.error("");}console.error("choppiness feature requires first activating studies feature.");}else {j0G="a";j0G+="u";j0G+="t";j0G+="o";c8V="Chop";c8V+="piness Index";z3d.Studies.calculateChoppiness=function(o7H,u8M){var t3L,p64,r_p,X5E;z3d.Studies.calculateStudyATR(o7H,u8M);t3L=u8M.chart.scrubbed;if(t3L.length < u8M.days + 1){u8M.error=!!({});return;}for(var D$F=Math.max(u8M.startFrom,u8M.days);D$F < t3L.length;D$F++){p64=t3L[D$F];if(!p64)continue;if(p64.futureTick)break;r_p=v6N(u8M.days,D$F);if(p64["Sum True Range " + u8M.name]){X5E="Resul";X5E+="t ";v7V.X$L(1);var u2u=v7V.D8z(5,95);v7V.X$L(83);var L4J=v7V.t1w(9,12,7,383,16);p64[X5E + u8M.name]=u2u * Math.log(p64["Sum True Range " + u8M.name] / Math.max(0.000001,r_p[L4J] - r_p[0])) / Math.log(u8M.days);}else if(!isNaN(p64)){p64["Result " + u8M.name]=+"0";}}function v6N(F2A,S0Y){var Q8O,n$n;v7V.O90(128);var v4n=v7V.D8z(7,9,3,0);Q8O=Number.MAX_VALUE * v4n;n$n=Number.MAX_VALUE;for(var c5l=S0Y - F2A + 1;c5l <= S0Y;c5l++){if(c5l < +"0")continue;Q8O=Math.max(Q8O,t3L[c5l].High);n$n=Math.min(n$n,t3L[c5l].Low);}return [n$n,Q8O];}};z3d.Studies.studyLibrary=z3d.extend(z3d.Studies.studyLibrary,{Choppiness:{name:c8V,calculateFN:z3d.Studies.calculateChoppiness,centerline:50,parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:61.8,studyOverBoughtColor:"auto",studyOverSoldValue:38.2,studyOverSoldColor:j0G}},attributes:{studyOverBoughtValue:{min:50,step:"0.1"},studyOverSoldValue:{max:50,step:"0.1"}}}});}};S3=r5i=>{var D2I=g9BGt;var I$o,T_o,l9P,i67,y7s;I$o=541782113;T_o=95791246;l9P=2;for(var q8D=+"1";D2I.l9L(q8D.toString(),q8D.toString().length,57320) !== I$o;q8D++){i67=!_CIQ != ""?_CIQ:r5i.CIQ;l9P+=+"2";}if(D2I.l9L(l9P.toString(),l9P.toString().length,90248) !== T_o){i67=typeof _CIQ !== "undefined"?_CIQ:r5i.CIQ;}D2I.Z_e();if(!i67.Studies){console.error("comparisonStudies feature requires first activating studies feature.");}else if(!i67.Studies.initPriceRelative){y7s="comp";y7s+="arisonStudies feature requires firs";y7s+="t activating priceRelative";y7s+=" feature.";console.error(y7s);}else {i67.Studies.calculateCorrelationCoefficient=function(D$N,C6L){var m0T,V1k,V9k,U9I,B8o,l2P,n5c,t$y,U$H,l5L,Q_1,u3A,R2j,p1r,h2i,f4v,z4d,U_Y,I46,T2N,h4W,x30,j1$,s3F;m0T=C6L.chart.scrubbed;V1k=C6L.days;if(m0T.length < V1k + 1){C6L.error=!!({});return;}C6L.compare=C6L.inputs["Compare To"];if(!C6L.compare){C6L.compare=[];C6L.outputs={};C6L.outputMap={};for(var Z1W in D$N.chart.series){V9k=D$N.chart.series[Z1W];if(V9k.parameters.color){U9I="Res";U9I+="ul";U9I+="t";U9I+=" ";B8o="R";B8o+="e";B8o+="sul";B8o+="t ";C6L.compare.push(V9k.display);C6L.outputs["Result " + V9k.display]=V9k.parameters.color;D2I.O90(11);var s2Q=D2I.t1w(6,80070,7277,12,3);D2I.O90(95);var r40=D2I.D8z(25,425,7);D2I.X$L(129);var e5F=D2I.t1w(24120,17,12,12,3469492);D2I.O90(7);var m_q=D2I.t1w(20,2112);D2I.O90(5);var J4Y=D2I.D8z(9640,7242,12);D2I.O90(126);var K6F=D2I.t1w(108,10,3,1810);D2I.X$L(49);var P55=D2I.t1w(3941,3949,3943,2);D2I.O90(39);var m$$=D2I.D8z(905,16,128,5,8);C6L.outputMap[B8o + V9k.display + ((s2Q,r40) <= (e5F,+"743.53")?m_q <= (J4Y,+"1122")?K6F !== +"2917"?705.68:!!"":" ":(P55,m$$)) + C6L.name]=U9I + V9k.display;}}}else {C6L.compare=[C6L.compare];}D2I.c7b();if(!C6L.compare.length){C6L.error="Correlation Coefficient requires at least one comparison symbol";return;}for(var b95=0;b95 < C6L.compare.length;b95++){l2P=0;n5c=0;t$y=0;D2I.X$L(8);U$H=D2I.t1w(1,"0");l5L=0;Q_1=C6L.compare[b95];u3A=0;for(var n6X=C6L.startFrom - V1k;n6X < m0T.length;n6X++){R2j="_te";R2j+="mp";R2j+="s";R2j+=" ";p1r="_t";p1r+="em";p1r+="ps ";h2i="_te";h2i+="m";h2i+="ps ";f4v="obje";f4v+="ct";if(!m0T[n6X])continue;z4d=m0T[n6X][Q_1];if(z4d && typeof z4d == f4v){z4d=z4d.Close;}if(!z4d && z4d !== 0){U_Y="_t";U_Y+="e";U_Y+="mps";U_Y+=" ";if(n6X > 0 && m0T[n6X - 1] && m0T[n6X - 1]["_temps " + C6L.name] && m0T[n6X - 1][U_Y + C6L.name].c){z4d=m0T[n6X - 1]["_temps " + C6L.name].c;}else {z4d=0;}}if(z4d && typeof z4d == "object"){z4d=z4d.Close;}m0T[n6X]["_temps " + C6L.name]={};l2P+=m0T[n6X][h2i + C6L.name].b=m0T[n6X].Close;n5c+=m0T[n6X]["_temps " + C6L.name].c=z4d;t$y+=m0T[n6X]["_temps " + C6L.name].b2=Math.pow(m0T[n6X].Close,"2" ^ 0);U$H+=m0T[n6X][p1r + C6L.name].c2=Math.pow(z4d,2);l5L+=m0T[n6X][R2j + C6L.name].bc=m0T[n6X].Close * z4d;if(u3A >= V1k){I46="_te";I46+="m";I46+="ps ";T2N="_tem";T2N+="p";T2N+="s ";l2P-=m0T[n6X - V1k]["_temps " + C6L.name].b;n5c-=m0T[n6X - V1k]["_temps " + C6L.name].c;t$y-=m0T[n6X - V1k][T2N + C6L.name].b2;U$H-=m0T[n6X - V1k][I46 + C6L.name].c2;l5L-=m0T[n6X - V1k]["_temps " + C6L.name].bc;D2I.X$L(7);var n1F=D2I.t1w(26,28);h4W=t$y / V1k - Math.pow(l2P / V1k,n1F);D2I.O90(7);var d1m=D2I.D8z(3,5);x30=U$H / V1k - Math.pow(n5c / V1k,d1m);D2I.O90(130);var a9k=D2I.t1w(18,4,119,11,5);j1$=l5L / V1k - l2P * n5c / Math.pow(V1k,a9k);s3F=j1$ / Math.sqrt(h4W * x30);D2I.X$L(7);var Q7x=D2I.D8z(14,78);D2I.X$L(7);var P8e=D2I.D8z(37844,47305);m0T[n6X]["Result " + Q_1 + (("1500" << Q7x,236.32) !== (579.94,P8e)?" ":16.84) + C6L.name]=s3F;}u3A++;}}};i67.Studies.calculatePerformance=function(o8V,K5H){var J9w,r5k,p0e,q_X,A3U,Y29;J9w="_M";J9w+="A Base";r5k="C";r5k+="l";r5k+="o";r5k+="se";p0e="C";p0e+="omp";p0e+="ar";p0e+="ison Symbol";q_X=K5H.chart.scrubbed;A3U=K5H.inputs[p0e].toUpperCase();if(!A3U){A3U=K5H.study.inputs["Comparison Symbol"];}if(!K5H.days){K5H.days=K5H.study.inputs.Period;}if(q_X.length < K5H.days + 1){K5H.error=!!"1";return;}i67.Studies.MA("ma",K5H.days,r5k,+"0",J9w,o8V,K5H);i67.Studies.MA("ma",K5H.days,A3U,0,"_MA Comp",o8V,K5H);for(var P3m=K5H.startFrom;P3m < q_X.length;P3m++){Y29=q_X[P3m][A3U];if(Y29 && (Y29.Close || Y29.Close === 0)){Y29=Y29.Close;}q_X[P3m]["Result " + K5H.name]=q_X[P3m].Close / Y29 * (q_X[P3m]["_MA Comp " + K5H.name] / q_X[P3m]["_MA Base " + K5H.name]);}};i67.Studies.calculateBeta=function(m$X,Q94){var J35,h0_,S8D,V6u,c$O,A3B,N9q,b$K,q7Q,U44,G0j,G9E,z7q,f4X,F9H;J35="_";J35+="VAR";h0_="_";h0_+="C";h0_+="OV";h0_+="AR";S8D=Q94.chart.scrubbed;V6u=Q94.inputs["Comparison Symbol"].toUpperCase();if(!V6u){V6u=Q94.study.inputs["Comparison Symbol"];}if(!Q94.days){Q94.days=Q94.study.inputs.Period;}if(S8D.length < Q94.days + 1){Q94.error=!!({});return;}for(var I_v=Math.max(Q94.startFrom,+"1");I_v < S8D.length;I_v++){c$O="_CompChang";c$O+="e ";A3B="_BaseCha";A3B+="nge ";D2I.X$L(50);var W6j=D2I.t1w(11,12);D2I.O90(131);var b3t=D2I.t1w(15,18,21,11,6);S8D[I_v][A3B + Q94.name]=S8D[I_v].Close / S8D[I_v - W6j].Close - b3t;N9q=S8D[I_v][V6u];if(N9q && (N9q.Close || N9q.Close === 0)){N9q=N9q.Close;}D2I.O90(7);b$K=S8D[D2I.D8z(1,I_v)][V6u];if(b$K && (b$K.Close || b$K.Close === 0)){b$K=b$K.Close;}D2I.O90(132);S8D[I_v][c$O + Q94.name]=D2I.t1w(b$K,"1",N9q);}i67.Studies.MA("ma",Q94.days,"_BaseChange " + Q94.name,0,"_MA Base",m$X,Q94);i67.Studies.MA("ma",Q94.days,"_CompChange " + Q94.name,0,"_MA Comp",m$X,Q94);for(I_v=Math.max(Q94.startFrom,Q94.days);I_v < S8D.length;I_v++){q7Q="_VA";q7Q+="R";q7Q+="n";q7Q+=" ";U44="_MA";U44+=" ";U44+="Comp";U44+=" ";G0j="_Comp";G0j+="Chang";G0j+="e";G0j+=" ";G9E="_MA";G9E+=" Base ";z7q="_Base";z7q+="Change";z7q+=" ";S8D[I_v]["_COVARn " + Q94.name]=(S8D[I_v][z7q + Q94.name] - S8D[I_v][G9E + Q94.name]) * (S8D[I_v][G0j + Q94.name] - S8D[I_v][U44 + Q94.name]);S8D[I_v][q7Q + Q94.name]=Math.pow(S8D[I_v]["_CompChange " + Q94.name] - S8D[I_v]["_MA Comp " + Q94.name],2);}i67.Studies.MA("ma",Q94.days,"_COVARn " + Q94.name,0,h0_,m$X,Q94);i67.Studies.MA("ma",Q94.days,"_VARn " + Q94.name,+"0",J35,m$X,Q94);for(I_v=Math.max(Q94.startFrom,Q94.days * 2 - 1);I_v < S8D.length;I_v++){f4X="_C";f4X+="OVAR ";F9H="Re";F9H+="sult ";S8D[I_v][F9H + Q94.name]=S8D[I_v][f4X + Q94.name] / S8D[I_v]["_VAR " + Q94.name];}};i67.Studies.studyLibrary=i67.extend(i67.Studies.studyLibrary,{correl:{name:"Correlation Coefficient",range:"-1 to 1",calculateFN:i67.Studies.calculateCorrelationCoefficient,outputs:{}},"Perf Idx":{name:"Performance Index",centerline:+"1",initializeFN:i67.Studies.initPriceRelative,seriesFN:i67.Studies.displayVsComparisonSymbol,calculateFN:i67.Studies.calculatePerformance,inputs:{Period:120,"Comparison Symbol":"SPY"},outputs:{Result:"auto",Gain:"#00DD00",Loss:"#FF0000"},deferUpdate:!![]},Beta:{name:"Beta",centerline:1,initializeFN:i67.Studies.initPriceRelative,seriesFN:i67.Studies.displayVsComparisonSymbol,calculateFN:i67.Studies.calculateBeta,inputs:{Period:20,"Comparison Symbol":"SPY"},deferUpdate:!0}});}};f_=b3g=>{var E5S=g9BGt;E5S.c7b();var w$J;w$J=typeof _CIQ !== "undefined"?_CIQ:b3g.CIQ;if(!w$J.Studies){console.error("coppock feature requires first activating studies feature.");}else {w$J.Studies.calculateCoppock=function(h0p,p6r){var i_H,p5h,H6s,B3R,t_w,k9O,F7Y,C6J;i_H="S";i_H+="hort RoC";p5h=p6r.chart.scrubbed;H6s=p6r.inputs.Field;if(!H6s || H6s == "field"){H6s="Close";}B3R=parseInt(p6r.inputs["Long RoC"],10);if(!B3R){B3R=14;}t_w=parseInt(p6r.inputs[i_H],"10" << 64);if(!t_w){t_w=11;}k9O=p6r.days;if(!k9O){k9O=10;}if(B3R < t_w){return;}if(p5h.length < Math.max(t_w,B3R,k9O) + ("1" | 1)){p6r.error=!![];return;}for(var Y1J=Math.max(p6r.startFrom,B3R);Y1J < p5h.length;Y1J++){E5S.O90(7);F7Y=p5h[E5S.D8z(t_w,Y1J)][H6s];E5S.O90(7);C6J=p5h[E5S.t1w(B3R,Y1J)][H6s];if(F7Y && C6J){E5S.X$L(11);var e2b=E5S.t1w(11,1620,80,20,5);E5S.X$L(5);var K6Y=E5S.t1w(0,16,18);p5h[Y1J]["_Sum " + p6r.name]=e2b * (p5h[Y1J][H6s] / F7Y + p5h[Y1J][H6s] / C6J - K6Y);}}w$J.Studies.MA("weighted",k9O,"_Sum " + p6r.name,0,"Result",h0p,p6r);};w$J.Studies.studyLibrary=w$J.extend(w$J.Studies.studyLibrary,{Coppock:{name:"Coppock Curve",calculateFN:w$J.Studies.calculateCoppock,inputs:{Period:10,Field:"field","Short RoC":11,"Long RoC":14}}});}};M8=x_a=>{var y9H,K60,K28;y9H="und";y9H+="efined";K60=typeof _CIQ !== y9H?_CIQ:x_a.CIQ;if(!K60.Studies){K28="darv";K28+="asBox feature requires first activating studies feature.";console.error(K28);}else {K60.Studies.calculateDarvas=function(F5q,z51){var R$5=g9BGt;var y5G,B49,H1i,m8b,c7p,d7L,Y_R,U_O,Z7q,I$S,r8z,N$C,C8Y,W4o,y55,K6I,E1d,B6K,A72,S9r,D$U,N$i,n8E,p1g,l$l,r2w,U_q,M6R,Y47,H5h,f9W;y5G="G";y5G+="ho";y5G+="s";y5G+="t";B49="Level Offs";B49+="e";B49+="t";H1i="Volume";H1i+=" S";H1i+="pi";H1i+="ke";m8b=z51.chart.scrubbed;c7p=0;d7L=parseInt(z51.inputs["ATH Lookback Period"],+"10");if(z51.inputs[H1i]){Y_R="Vol";Y_R+="u";Y_R+="me";K60.Studies.MA("simple",d7L,Y_R,0,"ADV",F5q,z51);}R$5.O90(133);var j_Y=R$5.t1w(17,97,476,14,6);U_O=parseFloat(z51.inputs["Volume % of Avg"]) / j_Y;Z7q="n";Z7q+="o";Z7q+="n";R$5.Z_e();Z7q+="e";I$S={};r8z=null;N$C=null;C8Y=null;W4o=parseFloat(z51.inputs[B49]);y55=!!"";if(y55){console.log("*****************");}E1d={};["Darvas",y5G,"Profit","Loss","ATH","ADV","Spike"].forEach(function(m1r){R$5.O90(7);var s_I=R$5.D8z(15,5579);R$5.X$L(77);var k$L=R$5.D8z(182,182,2550);R$5.O90(134);var T9g=R$5.t1w(4812,11,3,285,18);R$5.O90(81);var c5t=R$5.D8z(26,9,1026,11);R$5.O90(7);var K0L=R$5.t1w(148176,156408);R$5.O90(38);var w01=R$5.D8z(14,80880,6220);R$5.Z_e();E1d[m1r]=m1r + (s_I <= (k$L,+"98.33")?(!0,![]):(T9g,c5t) === (K0L,260.39)?"B":145.86 === w01?"x":" ") + z51.name;});for(K6I=z51.startFrom - 1;K6I > 0;K6I--){B6K=m8b[K6I];if(B6K[E1d.Darvas] || B6K[E1d.Ghost]){for(var O5f in E1d){B6K[O5f]=null;}}else {c7p=B6K[E1d.ATH] || 0;N$C=B6K[E1d.Profit];C8Y=B6K[E1d.Loss];break;}}for(K6I;K6I < m8b.length;K6I++){A72=m8b[K6I];if(!A72)continue;if(parseFloat(z51.inputs["Price Minimum"]) <= m8b[c7p].Close){S9r="hi";S9r+="g";S9r+="h";if(r8z && (!r8z.End || K6I == r8z.End + 1)){if(m8b[K6I - ("1" << 64)].Close > I$S.High){I$S={State:1,High:2 * I$S.High - I$S.Low,Low:I$S.High,Start:K6I,End:2 * I$S.End - I$S.Start + +"1"};}else {r8z=null;;}if(r8z){A72[E1d.Ghost]=K60.clone(I$S);if(y55){console.log("Ghost begin:" + A72.DT);}I$S.State=0;if(m8b[I$S.End]){D$U="Gh";D$U+="o";D$U+="s";D$U+="t end:";m8b[I$S.End][E1d.Ghost]=K60.clone(I$S);if(y55){console.log(D$U + m8b[I$S.End].DT);}}r8z={Start:I$S.Start,End:I$S.End};N$C=I$S.High + W4o;if(!C8Y || C8Y < I$S.Low - W4o){C8Y=I$S.Low - W4o;}}}A72[E1d.Profit]=N$C;A72[E1d.Loss]=C8Y;if(A72.Close >= N$C){N$C=null;}else if(z51.inputs["Exit Field"] == "high/low" && A72.High >= N$C){N$C=null;}if(Z7q == "none"){if(K6I == c7p + 3){if(!m8b[c7p + 2][E1d.Darvas] && !m8b[c7p + 1][E1d.Darvas] && !m8b[c7p][E1d.Darvas] && m8b[c7p].High > A72.High){Z7q="high";;}}}if(Z7q == S9r){if(A72.High > m8b[c7p].High){Z7q="none";}else if(m8b[K6I - 3].Low < m8b[K6I - 2].Low && m8b[K6I - 3].Low < m8b[K6I - 1].Low && m8b[K6I - 3].Low < A72.Low){N$i="darva";N$i+="s";I$S={State:+"1",High:m8b[c7p].High,Low:m8b[K6I - 3].Low,Start:c7p};m8b[c7p][E1d.Darvas]=K60.clone(I$S);Z7q=N$i;if(y55){console.log("Darvas begin:" + m8b[c7p].DT);}if(y55){console.log("Darvas established:" + A72.DT);}if(r8z){if(r8z.End > K6I && m8b[r8z.Start]){A72[E1d.Ghost]=K60.clone(m8b[r8z.Start][E1d.Ghost]);A72[E1d.Ghost].End=K6I;if(m8b[r8z.End]){delete m8b[r8z.End][E1d.Ghost];if(y55){console.log("Ghost End removed:" + m8b[r8z.End].DT);}}}A72[E1d.Ghost].State=+"0";m8b[r8z.Start][E1d.Ghost].End=K6I;if(y55){console.log("Ghost end:" + A72.DT);}r8z=null;}N$C=I$S.High + W4o;if(!C8Y || C8Y < I$S.Low - W4o){C8Y=I$S.Low - W4o;}}}if(Z7q == "darvas"){n8E="n";n8E+="o";n8E+="n";n8E+="e";p1g="hig";p1g+="h";p1g+="/low";l$l="Exit F";l$l+="ie";l$l+="ld";if(A72.Close > I$S.High){r8z={};}else if(z51.inputs[l$l] == "high/low" && A72.High > I$S.High){r8z={};}else if(A72.Close < I$S.Low){Z7q="none";}else if(z51.inputs["Exit Field"] == p1g && A72.Low < I$S.Low){Z7q="none";}if(r8z){Z7q=n8E;}else if(Z7q == "none"){N$C=null;C8Y=null;}if(!z51.inputs["Ghost Boxes"]){r8z=null;}if(Z7q == "none"){for(var a3w=I$S.Start + 1;a3w < K6I;a3w++){m8b[a3w][E1d.Darvas]=K60.clone(I$S);}I$S.State=0;I$S.End=K6I;A72[E1d.Darvas]=K60.clone(I$S);if(y55){console.log("Darvas end:" + A72.DT);}A72[E1d.ATH]=c7p;continue;}}if(C8Y){r2w="hig";r2w+="h/l";r2w+="ow";U_q="Exit";U_q+=" Fiel";U_q+="d";if(A72.Close < I$S.Low || z51.inputs[U_q] == r2w && A72.Low < I$S.Low){M6R="high";M6R+="/low";if(Z7q == "darvas"){Z7q="none";}if(A72.Close < C8Y || z51.inputs["Exit Field"] == M6R && A72.Low < C8Y){N$C=null;C8Y=null;}if(r8z){Y47="G";Y47+="h";Y47+="o";Y47+="st end:";if(r8z.End > K6I && m8b[r8z.Start]){A72[E1d.Ghost]=K60.clone(m8b[r8z.Start][E1d.Ghost]);A72[E1d.Ghost].End=K6I;if(m8b[r8z.End]){H5h="Gho";H5h+="st End removed:";delete m8b[r8z.End][E1d.Ghost];if(y55){console.log(H5h + m8b[r8z.End].DT);}}}A72[E1d.Ghost].State=0;m8b[r8z.Start][E1d.Ghost].End=K6I;if(y55){console.log(Y47 + A72.DT);}r8z=null;}}}}if(A72.High >= m8b[c7p].High){c7p=K6I;if(y55){console.log("All Time High:" + A72.DT);}}if(K6I < 3 || A72.High >= m8b[K6I - 1].High && A72.High >= m8b[K6I - 2].High && A72.High >= m8b[K6I - 3].High){if(K6I - c7p >= d7L){c7p=K6I;for(var W2n=0;W2n < d7L;W2n++){if(K6I - W2n < "0" - 0)break;if(m8b[K6I - W2n].High > m8b[c7p].High){R$5.O90(7);c7p=R$5.t1w(W2n,K6I);}}if(y55){console.log("All Time High:" + A72.DT);}}}if(z51.inputs["Volume Spike"] && K6I > d7L && K6I == c7p){if(A72[E1d.ADV] * U_O < A72.Volume){f9W="Volum";f9W+="e Spike:";A72[E1d.Spike]=1;if(y55){console.log(f9W + A72.DT);}}}A72[E1d.ATH]=c7p;}};K60.Studies.displayDarvas=function(r7y,u9Q,Q$B){var H9M=g9BGt;var E2Y,o8J,t4g,U_9,k00,m4I,Z2P,R2M,j8b,O0f,m_n,b6S,u4N,w4D,I6S,G7O,q3V,G0U,r37,Q_u,W6b,m5q,d2c,R$M,l3R,c8I,e98,q$u,W3u,r6j,F_2,u4C,L2l,s3o,P8F;E2Y="a";E2Y+="ut";E2Y+="o";o8J=K60.Studies.determineColor(u9Q.outputs.Levels);H9M.c7b();if(!o8J || o8J == E2Y || K60.isTransparent(o8J)){o8J=r7y.defaultColor;}t4g=K60.Studies.determineColor(u9Q.outputs.Darvas);if(!t4g || t4g == "auto" || K60.isTransparent(t4g)){t4g=r7y.defaultColor;}U_9=K60.Studies.determineColor(u9Q.outputs.Ghost);if(!U_9 || U_9 == "auto" || K60.isTransparent(U_9)){U_9=r7y.defaultColor;}k00=r7y.panels[u9Q.panel];m4I=u9Q.getContext(r7y);H9M.X$L(135);var q7f=H9M.D8z(11,9,14,8);m_n=r7y.layout.candleWidth - q7f;if(m_n < 2){m_n=1;}r7y.startClip(u9Q.panel);if(u9Q.inputs["Stop Levels"]){if(m4I.setLineDash){m4I.setLineDash([2,2]);}H9M.X$L(7);m4I.lineWidth=H9M.D8z(0,"2");m4I.strokeStyle=o8J;m4I.beginPath();for(Z2P=0;Z2P < Q$B.length;Z2P++){b6S="Lo";b6S+="ss";b6S+=" ";R2M=Q$B[Z2P];H9M.X$L(7);u4N=Q$B[H9M.D8z(1,Z2P)];if(!R2M)continue;O0f=R2M["Loss " + u9Q.name]?Math.floor(r7y.pixelFromPrice(R2M["Loss " + u9Q.name],k00)):null;w4D=u4N && u4N[b6S + u9Q.name]?Math.floor(r7y.pixelFromPrice(u4N["Loss " + u9Q.name],k00)):null;if(O0f){if(R2M.candleWidth){m_n=Math.floor(Math.max(1,R2M.candleWidth));}I6S=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) + m_n / 2);G7O=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) - m_n / 2);if(w4D && w4D >= O0f){m4I.lineTo(G7O,O0f);}else if(Z2P === 0){m4I.moveTo(r7y.chart.left,O0f);}else {m4I.moveTo(G7O,O0f);}m4I.lineTo(I6S,O0f);}}m4I.stroke();if(m4I.setLineDash){m4I.setLineDash([]);}m4I.lineWidth=1;}q3V=-10;r37=0;W6b=-10;d2c=0;l3R=!"1";c8I=!1;H9M.X$L(77);var a8J=H9M.D8z(32,32,1);e98=m4I.measureText("\u25B2").width / a8J;q$u=0;for(Z2P="0" >> 64;Z2P < Q$B.length;Z2P++){if(!Q$B[Z2P])continue;if(Q$B[Z2P].Close || Q$B[Z2P].Close === 0){q$u=Z2P;}if(Q$B[Z2P]["Spike " + u9Q.name]){m4I.fillStyle=t4g;m4I.textBaseline="bottom";W3u=r7y.pixelFromPrice(Q$B[Z2P].High,r7y.chart.panel);m4I.fillText(8558 == 8130?0xd03:7222 == (6.02,2830)?"679.04" * 1:"\u25BC",r7y.pixelFromBar(Z2P) - e98,W3u - ("5" << 64));;}if(Q$B[Z2P].candleWidth){m_n=Math.floor(Math.max(1,Q$B[Z2P].candleWidth));}if(Q$B[Z2P]["Darvas " + u9Q.name]){R2M=Q$B[Z2P]["Darvas " + u9Q.name];if(R2M.State == 1 && !l3R){q3V=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) - m_n / 2);G0U=Math.floor(r7y.pixelFromPrice(R2M.High,k00));Q_u=Math.floor(r7y.pixelFromPrice(R2M.Low,k00)) - G0U;l3R=!0;}else if(R2M.State === ("0" | 0)){H9M.X$L(7);var g3h=H9M.D8z(8,10);r37=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) + m_n / g3h) - q3V;G0U=Math.floor(r7y.pixelFromPrice(R2M.High,k00));Q_u=Math.floor(r7y.pixelFromPrice(R2M.Low,k00)) - G0U;m4I.strokeStyle=t4g;m4I.fillStyle=t4g;if(!u9Q.inputs["Stop Levels"]){m4I.strokeRect(q3V,G0U,r37,Q_u);m4I.globalAlpha=0.2;}else {m4I.globalAlpha=0.3;}m4I.fillRect(q3V,G0U,r37,Q_u);H9M.X$L(3);m4I.globalAlpha=H9M.D8z(0,"1");l3R=![];}}if(Q$B[Z2P]["Ghost " + u9Q.name] && u9Q.inputs["Ghost Boxes"]){R2M=Q$B[Z2P]["Ghost " + u9Q.name];if(R2M.State == 1 && !c8I){W6b=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) - m_n / 2);m5q=Math.floor(r7y.pixelFromPrice(R2M.High,k00));d2c=Math.floor((R2M.End - R2M.Start + ("1" >> 0)) * r7y.layout.candleWidth + m_n / +"2");R$M=Math.floor(r7y.pixelFromPrice(R2M.Low,k00)) - m5q;c8I=!"";}else if(R2M.State === 0){if(R2M.Start == R2M.End){W6b=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) - m_n / 2);}H9M.X$L(60);var Z87=H9M.t1w(56,18,3);d2c=Math.floor(r7y.pixelFromBar(Z2P,k00.chart) + m_n / Z87) - W6b;m5q=Math.floor(r7y.pixelFromPrice(R2M.High,k00));R$M=Math.floor(r7y.pixelFromPrice(R2M.Low,k00)) - m5q;m4I.strokeStyle=U_9;m4I.fillStyle=U_9;if(!u9Q.inputs["Stop Levels"]){m4I.strokeRect(W6b,m5q,d2c,R$M);m4I.globalAlpha=0.2;}else {m4I.globalAlpha=+"0.3";}m4I.fillRect(W6b,m5q,d2c,R$M);m4I.globalAlpha=1;c8I=![];}}}if(l3R){r6j="Stop Le";r6j+="vels";H9M.O90(31);var M_V=H9M.t1w(16,14,8,4);r37=Math.floor(r7y.pixelFromBar(q$u,k00.chart) + m_n / M_V) - q3V;m4I.strokeStyle=t4g;m4I.fillStyle=t4g;if(!u9Q.inputs[r6j]){m4I.beginPath();H9M.X$L(97);m4I.moveTo(H9M.D8z(r37,2,q3V),G0U);m4I.lineTo(q3V,G0U);H9M.O90(1);m4I.lineTo(q3V,H9M.D8z(G0U,Q_u));H9M.X$L(97);m4I.lineTo(H9M.t1w(r37,2,q3V),H9M.t1w(G0U,Q_u,H9M.X$L(1)));m4I.stroke();m4I.globalAlpha=0.2;}else {m4I.globalAlpha=0.3;}H9M.O90(8);m4I.fillRect(q3V,G0U,H9M.D8z(r37,2),Q_u);m4I.globalAlpha=1;}if(c8I){F_2="Stop ";F_2+="Le";F_2+="vels";m4I.strokeStyle=U_9;m4I.fillStyle=U_9;if(!u9Q.inputs[F_2]){m4I.strokeRect(W6b,m5q,d2c,R$M);m4I.globalAlpha=0.2;}else {u4C=-604453010;L2l=1686758307;H9M.X$L(0);s3o=H9M.D8z("2",0);for(var h2y=1;H9M.i7j(h2y.toString(),h2y.toString().length,62226) !== u4C;h2y++){m4I.globalAlpha=+"0.3";s3o+=2;}if(H9M.l9L(s3o.toString(),s3o.toString().length,68748) !== L2l){m4I.globalAlpha=502;}}m4I.fillRect(W6b,m5q,d2c,R$M);m4I.globalAlpha=1;}if(l3R || c8I){if(u9Q.inputs["Stop Levels"]){if(m4I.setLineDash){m4I.setLineDash([2,2]);}H9M.O90(8);m4I.lineWidth=H9M.D8z(1,"2");m4I.strokeStyle=o8J;P8F=Math.floor(r7y.pixelFromBar(q$u - 1,k00.chart) + m_n / 2);if(j8b){m4I.beginPath();m4I.moveTo(P8F,j8b);m4I.lineTo(l3R?q3V + 2 * r37:W6b + d2c,j8b);m4I.stroke();}if(O0f){m4I.beginPath();m4I.moveTo(P8F,O0f);m4I.lineTo(l3R?q3V + 2 * r37:W6b + d2c,O0f);m4I.stroke();}if(m4I.setLineDash){m4I.setLineDash([]);}m4I.lineWidth=1;}l3R=!"1";c8I=!"1";}r7y.endClip();};K60.Studies.studyLibrary=K60.extend(K60.Studies.studyLibrary,{Darvas:{name:"Darvas Box",underlay:!!({}),calculateFN:K60.Studies.calculateDarvas,seriesFN:K60.Studies.displayDarvas,inputs:{"ATH Lookback Period":100,"Exit Field":["close","high/low"],"Ghost Boxes":!![],"Stop Levels":!({}),"Level Offset":+"0.01","Price Minimum":5,"Volume Spike":!({}),"Volume % of Avg":400},outputs:{Darvas:"#5F7CB8",Ghost:"#699158",Levels:"auto"},customRemoval:!!({}),attributes:{"Price Minimum":{min:0.01,step:0.01},yaxisDisplayValue:{hidden:!!"1"},panelName:{hidden:!""},flippedEnabled:{hidden:!0}}}});}};q3=c_S=>{var R7e=g9BGt;var o58,i14,t2o;o58=typeof _CIQ !== "undefined"?_CIQ:c_S.CIQ;R7e.c7b();if(!o58.Studies){i14="detrended feat";i14+="ure requires first activating st";i14+="udies";i14+=" feature.";console.error(i14);}else {t2o="Detrended Price";t2o+=" Osci";t2o+="llator";o58.Studies.calculateDetrendedPrice=function(z3l,m63){var O1k,j4U,R9U,i1e,f0x,V8L,V7X,m2q;O1k="M";O1k+="A";j4U="Moving";j4U+=" A";j4U+="verag";j4U+="e Type";R9U=m63.chart.scrubbed;if(R9U.length < m63.days + 1){m63.error=!![];return;}i1e=m63.inputs.Field;R7e.c7b();if(!i1e || i1e == "field"){i1e="Close";}f0x=Math.floor(m63.days / 2 + 1);o58.Studies.MA(m63.inputs[j4U],m63.days,i1e,-f0x,O1k,z3l,m63);for(var K1Z=Math.max(m63.days - f0x - 1,m63.startFrom - f0x);K1Z < R9U.length - f0x;K1Z++){V8L="o";V8L+="bj";V8L+="ec";V8L+="t";if(K1Z < "0" >> 32)continue;V7X=R9U[K1Z][i1e];if(V7X && typeof V7X == V8L){V7X=V7X[m63.subField];}m2q=R9U[K1Z]["MA " + m63.name];if((V7X || V7X === 0) && (m2q || m2q === 0)){R7e.X$L(7);R9U[K1Z]["Result " + m63.name]=R7e.D8z(m2q,V7X);}}};o58.Studies.studyLibrary=o58.extend(o58.Studies.studyLibrary,{Detrended:{name:t2o,calculateFN:o58.Studies.calculateDetrendedPrice,inputs:{Period:14,Field:"field","Moving Average Type":"ma"}}});}};c7=M1S=>{var J16;J16=typeof _CIQ !== "undefined"?_CIQ:M1S.CIQ;if(!J16.Studies){console.error("disparity feature requires first activating studies feature.");}else {J16.Studies.calculateDisparity=function(F7i,l0D){var W4c=g9BGt;var F8a,i1z,z0C,e8P,d3G;F8a="M";F8a+="o";W4c.c7b();F8a+="ving Av";F8a+="erage Type";i1z="Clo";i1z+="s";i1z+="e";z0C=l0D.chart.scrubbed;if(z0C.length < l0D.days + ("1" - 0)){l0D.error=!![];return;}e8P=l0D.inputs.Field;if(!e8P || e8P == "field"){e8P=i1z;}J16.Studies.MA(l0D.inputs[F8a],l0D.days,e8P,0,"_MA",F7i,l0D);for(var P8m=Math.max(l0D.startFrom,l0D.days - 1);P8m < z0C.length;P8m++){if(!z0C[P8m])continue;d3G=z0C[P8m]["_MA " + l0D.name];if(d3G){W4c.X$L(120);var V7b=W4c.D8z(83,1,99,83);W4c.X$L(1);var h$L=W4c.D8z(0,1);z0C[P8m]["Result " + l0D.name]=V7b * (z0C[P8m][e8P] / d3G - h$L);}}};J16.Studies.studyLibrary=J16.extend(J16.Studies.studyLibrary,{Disparity:{name:"Disparity Index",calculateFN:J16.Studies.calculateDisparity,inputs:{Period:14,Field:"field","Moving Average Type":"ma"}}});}};w2=E8U=>{var f5W;f5W=typeof _CIQ !== "undefined"?_CIQ:E8U.CIQ;if(!f5W.Studies){console.error("easeOfMovement feature requires first activating studies feature.");}else {f5W.Studies.calculateEaseOfMovement=function(K0$,v_B){var d3e=g9BGt;var W84,e6j,N8l,b5D,i7W,C8p,U22;d3e.Z_e();W84="_EOM1";W84+=" ";e6j=v_B.chart.scrubbed;if(e6j.length < v_B.days){v_B.error=!!"1";return;}for(var A8M=Math.max(1,v_B.startFrom);A8M < e6j.length;A8M++){d3e.X$L(128);var o_O=d3e.t1w(53,20,3,38);N8l=(e6j[A8M].High + e6j[A8M].Low) / o_O;d3e.O90(42);var f6Y=d3e.D8z(3,15,19,8,10);d3e.O90(57);var A$G=d3e.D8z(30,2,13);b5D=(e6j[A8M - f6Y].High + e6j[A8M - +"1"].Low) / A$G;d3e.O90(7);i7W=d3e.D8z(b5D,N8l);d3e.X$L(7);var u6t=d3e.D8z(9,100000009);C8p=e6j[A8M].Volume / u6t / (e6j[A8M].High - e6j[A8M].Low);d3e.O90(23);U22=d3e.D8z(C8p,i7W);if(!isFinite(U22)){e6j[A8M]["_EOM1 " + v_B.name]=NaN;}else {e6j[A8M]["_EOM1 " + v_B.name]=U22;}}f5W.Studies.MA(v_B.inputs["Moving Average Type"],v_B.days,W84 + v_B.name,"0" << 0,"Result",K0$,v_B);};f5W.Studies.studyLibrary=f5W.extend(f5W.Studies.studyLibrary,{EOM:{name:"Ease of Movement",calculateFN:f5W.Studies.calculateEaseOfMovement,inputs:{Period:14,"Moving Average Type":"ma"}}});}};J9=c8_=>{var h2h=g9BGt;h2h.Z_e();var M70,E6F,K0f,z_P,q9C,y$k;M70=typeof _CIQ !== "undefined"?_CIQ:c8_.CIQ;if(!M70.Studies){E6F=-2131470899;K0f=499060521;z_P=2;for(var V2G=1;h2h.i7j(V2G.toString(),V2G.toString().length,+"16190") !== E6F;V2G++){console.error("");h2h.X$L(3);z_P+=h2h.D8z(0,"2");}if(h2h.l9L(z_P.toString(),z_P.toString().length,77447) !== K0f){console.error("ehlerFisher feature requires first activating studies feature.");}}else {q9C="#F";q9C+="F00";q9C+="0";q9C+="0";y$k="Ehler";y$k+=" Fisher Tra";y$k+="nsform";M70.Studies.calculateEhlerFisher=function(T2x,N5E){h2h.c7b();var W_j,V3n,C5v,p_1,A4x,m86,X3n;W_j=N5E.chart.scrubbed;function n56(d3m,o5s){var A7H,r5R,i1_;A7H=Number.MAX_VALUE;h2h.O90(136);h2h.Z_e();var k73=h2h.t1w(16,26,0,10);r5R=Number.MAX_VALUE * k73;for(var y3U=o5s - d3m + 1;y3U <= o5s;y3U++){h2h.O90(31);var v7S=h2h.t1w(13,21,4,9);i1_=(W_j[y3U].High + W_j[y3U].Low) / v7S;A7H=Math.min(A7H,i1_);r5R=Math.max(r5R,i1_);}return [A7H,r5R];}if(W_j.length < N5E.days + 1){N5E.error=!!1;return;}V3n=0;if(N5E.startFrom > "1" - 0){h2h.X$L(137);var T9I=h2h.D8z(2,10,5,2,0);V3n=W_j[N5E.startFrom - T9I]["_n " + N5E.name];}for(var V$4=N5E.startFrom;V$4 < W_j.length;V$4++){C5v="EF Tr";C5v+="i";C5v+="gger ";p_1="E";p_1+="F";p_1+=" ";A4x=W_j[V$4];if(A4x.futureTick)break;if(V$4 < N5E.days - 1){A4x["EF " + N5E.name]=A4x["EF Trigger " + N5E.name]=V3n;continue;}m86=n56(N5E.days,V$4);h2h.X$L(1);var j3w=h2h.D8z(1,1);h2h.X$L(138);var c$W=h2h.t1w(8,1,2,12,16);h2h.X$L(138);var s7Z=h2h.t1w(0,1,5,11,5);V3n=("0.33" - 0) * j3w * (((W_j[V$4].High + W_j[V$4].Low) / c$W - m86[+"0"]) / Math.max(0.000001,m86[s7Z] - m86[0]) - 0.5) + 0.67 * V3n;if(V3n > 0){V3n=Math.min(V3n,0.9999);}else if(V3n < 0){V3n=Math.max(V3n,-+"0.9999");}X3n=V$4?W_j[V$4 - 1]["EF " + N5E.name]:"0" >> 0;h2h.X$L(5);var U6f=h2h.t1w(16,32,17);h2h.X$L(7);var K0S=h2h.t1w(8,9);A4x[p_1 + N5E.name]=0.5 * Math.log((U6f + V3n) / ("1" * K0S - V3n)) + ("0.5" - 0) * X3n;A4x[C5v + N5E.name]=X3n;A4x["_n " + N5E.name]=V3n;}};M70.Studies.studyLibrary=M70.extend(M70.Studies.studyLibrary,{"Ehler Fisher":{name:y$k,calculateFN:M70.Studies.calculateEhlerFisher,inputs:{Period:+"10"},outputs:{EF:"auto","EF Trigger":q9C}}});}};r7=M6P=>{var m_Z,v_x,b1P;m_Z="un";m_Z+="defined";v_x=typeof _CIQ !== m_Z?_CIQ:M6P.CIQ;if(!v_x.Studies){console.error("elder feature requires first activating studies feature.");}else {b1P="#DD";b1P+="3";b1P+="E3";b1P+="9";v_x.Studies.calculateElderImpulse=function(h$i,D9g){var Y9y=g9BGt;var j7B,L3F,M$o,l9z,z9_,h6q,M9T,p3B,b65,e34,k6A;j7B="Cl";j7B+="ose";L3F=D9g.chart.scrubbed;M$o=D9g.outputs.Bullish;l9z=D9g.outputs.Bearish;z9_=D9g.outputs.Neutral;Y9y.O90(18);v_x.Studies.MA("exponential",Y9y.t1w("13",64),j7B,0,"_MA",h$i,D9g);Y9y.X$L(22);var A45=Y9y.t1w(7,112924,11,6,104882);Y9y.O90(113);var N8F=Y9y.t1w(6,3,322,4495);Y9y.O90(20);var H8W=Y9y.D8z(17,28628,2,12647);Y9y.O90(67);var k2D=Y9y.D8z(2047,11,670,4);Y9y.O90(9);var e$L=Y9y.t1w(8254,8,634);Y9y.O90(5);var q4v=Y9y.t1w(50136,43881,12);D9g.macd=new v_x.Studies.StudyDescriptor((A45 == N8F?(H8W,"8005" - 0) <= (k2D,+"1462")?!!1:+"696.38" >= 44.25?(e$L,q4v):(![],325.45):"_") + D9g.name,"macd",D9g.panel);D9g.macd.chart=D9g.chart;D9g.macd.days=D9g.days;D9g.macd.startFrom=D9g.startFrom;D9g.macd.inputs={"Fast MA Period":12,"Slow MA Period":26,"Signal Period":9};D9g.macd.outputs={_MACD:null,_Signal:null};v_x.Studies.calculateMACD(h$i,D9g.macd);for(var r$R=D9g.startFrom;r$R < L3F.length;r$R++){M9T="_h";M9T+="is";M9T+="t";p3B="_";p3B+="his";p3B+="t";b65="_";b65+="M";b65+="A";b65+=" ";e34="_";e34+="M";e34+="A";e34+=" ";k6A="_";k6A+="M";k6A+="A";k6A+=" ";if(r$R === 0){h6q=z9_;}else if(L3F[r$R][k6A + D9g.name] > L3F[r$R - 1][e34 + D9g.name] && L3F[r$R][((3980,6520) >= 194.1?"_":6.14e+3) + D9g.name + "_hist"] > L3F[r$R - 1][((176.42,784.36) <= 854.09?(+"497.04",754) < 113?0x154:"_":(!"1",8.06e+3)) + D9g.name + "_hist"]){h6q=M$o;}else if(L3F[r$R][b65 + D9g.name] < L3F[r$R - 1]["_MA " + D9g.name] && L3F[r$R][(("2330" ^ 0,9373) !== 5782?"_":(355.57,8596) != (2450,9760)?(178.74,237.04) != (282.8,1020)?3.49e+3:+"0x163d":(729.11,980)) + D9g.name + p3B] < L3F[r$R - 1][(490.88 > (91.47,532.59)?7.21e+3:"_") + D9g.name + M9T]){h6q=l9z;}else {h6q=z9_;}L3F[r$R]["Result " + D9g.name]=h6q;;}};v_x.Studies.calculateElderRay=function(A0e,B2h){var g8s,f1O,l$j,N67;g8s="_";g8s+="E";g8s+="M";g8s+="A";f1O="ex";f1O+="ponential";l$j=B2h.chart.scrubbed;g9BGt.Z_e();if(l$j.length < B2h.days){B2h.error=!!({});return;}v_x.Studies.MA(f1O,B2h.days,"Close",0,g8s,A0e,B2h);for(var X_c=Math.max(B2h.startFrom,B2h.days - 1);X_c < l$j.length;X_c++){N67="_";N67+="EM";N67+="A";N67+=" ";l$j[X_c][B2h.name + "_hist1"]=l$j[X_c].High - l$j[X_c]["_EMA " + B2h.name];l$j[X_c][B2h.name + "_hist2"]=l$j[X_c].Low - l$j[X_c][N67 + B2h.name];}B2h.outputMap={};B2h.outputMap[B2h.name + "_hist1"]="";B2h.outputMap[B2h.name + "_hist2"]="";};v_x.Studies.calculateElderForce=function(J5T,a8m){var S5U,S1v,a1D;S5U="Res";g9BGt.c7b();S5U+="u";S5U+="l";S5U+="t";S1v="exponent";S1v+="i";S1v+="al";a1D=a8m.chart.scrubbed;if(a1D.length < a8m.days){a8m.error=!!({});return;}for(var x03=Math.max(1,a8m.startFrom);x03 < a1D.length;x03++){g9BGt.O90(7);var I6Y=g9BGt.t1w(14,15);a1D[x03]["_EF1 " + a8m.name]=a1D[x03].Volume * (a1D[x03].Close - a1D[x03 - I6Y].Close);}v_x.Studies.MA(S1v,a8m.days,"_EF1 " + a8m.name,0,S5U,J5T,a8m);};v_x.Studies.initElderImpulse=function(T6G,F5D,D8n,B9n,A$J,B5M){var q6k,V5V;q6k="colored";q6k+="_";q6k+="bar";V5V=v_x.Studies.initializeFN(T6G,F5D,D8n,B9n,A$J,B5M);if(A$J.calculateOnly){return V5V;}T6G.chart.customChart={chartType:q6k,colorFunction:function(c99,a$G,u9j){var Y76;Y76=a$G["Result " + V5V.name];if(Y76 && typeof Y76 == "object"){Y76=Y76.color;}return Y76;}};T6G.setMainSeriesRenderer();g9BGt.Z_e();return V5V;};v_x.Studies.displayElderForce=function(H_X,u2i,j4N){var A_t,o1a,t0$,h8v;v_x.Studies.displaySeriesAsLine(H_X,u2i,j4N);A_t=v_x.Studies.determineColor(u2i.outputs.Result);o1a=H_X.panels[u2i.panel];t0$=u2i.getYAxis(H_X);h8v={skipTransform:o1a.name != u2i.chart.name,panelName:u2i.panel,band:"Result " + u2i.name,threshold:0,color:A_t,yAxis:t0$};if(!u2i.highlight && H_X.highlightedDraggable){h8v.opacity=0.3;}h8v.direction=1;v_x.preparePeakValleyFill(H_X,h8v);h8v.direction=-+"1";g9BGt.Z_e();v_x.preparePeakValleyFill(H_X,h8v);};v_x.Studies.displayElderRay=function(J7B,C5K,l7Y){var M7J=g9BGt;var i8E,x4F,Z8r,F1J,n0o,d0_,t6o,q9U,Z8O;i8E="st";i8E+="x_h";i8E+="istogram";x4F=J7B.panels[C5K.panel];Z8r=C5K.getContext(J7B);F1J=C5K.getYAxis(J7B);n0o=J7B.pixelFromPrice(0,x4F,F1J);M7J.X$L(139);var j_1=M7J.D8z(19,36,16);d0_=J7B.layout.candleWidth - "2" * j_1;if(d0_ < ("2" | 2)){d0_=1;}J7B.canvasColor(i8E);t6o=Z8r.fillStyle;if(!C5K.underlay){Z8r.globalAlpha=1;}function o0Y(w1d,W5n,u2b,k5R){M7J.c7b();Z8r.fillStyle=v_x.Studies.determineColor(C5K.outputs[u2b]);Z8r.fillRect(Math.floor(J7B.pixelFromBar(w1d,x4F.chart) - d0_ / ("2" * 1) + d0_ * W5n),Math.floor(n0o),Math.floor(d0_ * (1 - +"2" * W5n)),Math.floor(J7B.pixelFromPrice(Z8O[C5K.name + k5R],x4F,F1J) - n0o));}J7B.startClip(C5K.panel);if(!C5K.highlight && J7B.highlightedDraggable){Z8r.globalAlpha*=0.3;}for(var n8c=0;n8c < l7Y.length;n8c++){q9U="_hist";q9U+="1";Z8O=l7Y[n8c];if(!Z8O)continue;if(Z8O.candleWidth){d0_=Math.floor(Math.max(1,Z8O.candleWidth - +"2"));}if(Z8O[C5K.name + q9U] > 0){M7J.X$L(18);o0Y(n8c,M7J.D8z("0",32),"Elder Bull Power","_hist1");}if(Z8O[C5K.name + "_hist2"] < +"0"){o0Y(n8c,0,"Elder Bear Power","_hist2");}if(Z8O[C5K.name + "_hist1"] < 0){o0Y(n8c,0.1,"Elder Bull Power","_hist1");}if(Z8O[C5K.name + "_hist2"] > 0){o0Y(n8c,0.1,"Elder Bear Power","_hist2");}}J7B.endClip();Z8r.fillStyle=t6o;};v_x.Studies.studyLibrary=v_x.extend(v_x.Studies.studyLibrary,{"Elder Force":{name:"Elder Force Index",calculateFN:v_x.Studies.calculateElderForce,seriesFN:v_x.Studies.displayElderForce,inputs:{Period:13}},"Elder Ray":{name:"Elder Ray Index",seriesFN:v_x.Studies.displayElderRay,calculateFN:v_x.Studies.calculateElderRay,centerline:0,inputs:{Period:13},outputs:{"Elder Bull Power":"#00DD00","Elder Bear Power":"#FF0000"}},"Elder Impulse":{name:"Elder Impulse System",calculateFN:v_x.Studies.calculateElderImpulse,initializeFN:v_x.Studies.initElderImpulse,seriesFN:null,customRemoval:!!({}),underlay:!!({}),inputs:{},outputs:{Bullish:"#8BC176",Bearish:b1P,Neutral:"#5F7CB8"},removeFN:function(h7D,z6R){h7D.chart.customChart=null;h7D.setMainSeriesRenderer();}}});}};N0=V8x=>{var d9x,l0L;d9x="undefin";d9x+="ed";l0L=typeof _CIQ !== d9x?_CIQ:V8x.CIQ;if(!l0L.Studies){console.error("fractalChaos feature requires first activating studies feature.");}else {l0L.Studies.calculateFractalChaos=function(a9z,m_h){var m1h=g9BGt;var u62,P$A,b5l,j_j,x3p,D52,q1J,W1w,u4h;u62=m_h.chart.scrubbed;P$A=0;m1h.X$L(35);b5l=m1h.D8z(0,"0");m1h.Z_e();j_j=0;if(m_h.startFrom && m_h.type == "Fractal Chaos Bands"){x3p="Fractal L";x3p+="o";x3p+="w ";D52="Fractal ";D52+="H";D52+="igh ";m1h.O90(31);var T0I=m1h.D8z(3,8,4,3);P$A=u62[m_h.startFrom - T0I][D52 + m_h.name];m1h.O90(140);var u2a=m1h.D8z(13,2,12,155);b5l=u62[m_h.startFrom - u2a][x3p + m_h.name];}for(var F1V=Math.max(4,m_h.startFrom);F1V < u62.length;F1V++){if(u62[F1V].futureTick)break;q1J=!isNaN(u62[F1V].High);W1w=!isNaN(u62[F1V].Low);if(q1J || W1w){u62[F1V]["Result " + m_h.name]=0;}j_j=0;for(u4h=0;u4h <= F1V;u4h++){if(!u62[F1V - u4h])break;if(u62[F1V - u4h].High > u62[F1V - 2].High)break;if(u4h < 2 && u62[F1V - u4h].High == u62[F1V - 2].High)break;if(u62[F1V - u4h].High < u62[F1V - +"2"].High){j_j++;}if(j_j == 4){P$A=u62[F1V - 2].High;break;}}if(m_h.type == "Fractal Chaos Bands"){if(q1J){u62[F1V]["Fractal High " + m_h.name]=P$A > 0?P$A:null;}}else if(j_j == 4){u62[F1V]["Result " + m_h.name]=1;}j_j=0;for(u4h=0;u4h <= F1V;u4h++){if(!u62[F1V - u4h])break;if(u62[F1V - u4h].Low < u62[F1V - 2].Low)break;if(u4h < 2 && u62[F1V - u4h].Low == u62[F1V - 2].Low)break;if(u62[F1V - u4h].Low > u62[F1V - 2].Low){j_j++;}if(j_j == 4){b5l=u62[F1V - 2].Low;break;}}if(m_h.type == "Fractal Chaos Bands"){if(W1w){u62[F1V]["Fractal Low " + m_h.name]=b5l > 0?b5l:null;}}else if(j_j == 4){u62[F1V]["Result " + m_h.name]=-1;}}};l0L.Studies.studyLibrary=l0L.extend(l0L.Studies.studyLibrary,{"Fractal Chaos":{name:"Fractal Chaos Oscillator",range:"-1 to 1",calculateFN:l0L.Studies.calculateFractalChaos,inputs:{},centerline:null},"Fractal Chaos Bands":{name:"Fractal Chaos Bands",overlay:!![],calculateFN:l0L.Studies.calculateFractalChaos,seriesFN:l0L.Studies.displayChannel,inputs:{"Channel Fill":!!1},outputs:{"Fractal High":"auto","Fractal Low":"auto","Fractal Channel":"auto"}}});}};Y5=T_U=>{var x8c=g9BGt;x8c.Z_e();var E60,b7_,p61,w80,w9T;E60="u";E60+="ndef";E60+="ined";b7_=typeof _CIQ !== E60?_CIQ:T_U.CIQ;if(!b7_.Studies){console.error("highLowStudies feature requires first activating studies feature.");}else {p61="a";p61+="uto";w80="Lo";w80+="west Low Value";w9T="Donc";w9T+="hian W";w9T+="idth";b7_.Studies.calculateMaxHighMinLow=function(U9g,C$D){var I0r,w$u,X6$,x3G,d5I,L7M,e8Z,J5D,R8R,s9b,a7e,h4i,E9z,U_Q;I0r="Low Per";I0r+="iod";x8c.Z_e();w$u=C$D.chart.scrubbed;X6$=C$D.days;x3G=C$D.days;if(C$D.inputs["High Period"]){X6$=C$D.inputs["High Period"];}if(C$D.inputs[I0r]){x3G=C$D.inputs["Low Period"];}if(w$u.length < Math.max(X6$,x3G) + +"1"){C$D.error=!!"1";return;}d5I=Number.MAX_VALUE;x8c.O90(7);var z20=x8c.D8z(16,15);L7M=Number.MAX_VALUE * z20;if(C$D.startFrom > +"1"){for(e8Z=1;e8Z < X6$;e8Z++){if(C$D.startFrom - e8Z >= +"0"){L7M=Math.max(L7M,w$u[C$D.startFrom - e8Z].High);}}for(e8Z=1;e8Z < x3G;e8Z++){if(C$D.startFrom - e8Z >= 0){d5I=Math.min(d5I,w$u[C$D.startFrom - e8Z].Low);}}}for(var E8h=Math.max(0,C$D.startFrom - 1);E8h < w$u.length;E8h++){J5D="VT ";J5D+="HZ Filter";R8R="GA";R8R+="PO";s9b="Donch";s9b+="ian ";s9b+="Widt";s9b+="h";L7M=Math.max(L7M,w$u[E8h].High);d5I=Math.min(d5I,w$u[E8h].Low);if(E8h >= X6$){if(w$u[E8h - X6$].High == L7M){L7M=w$u[E8h].High;for(e8Z=1;e8Z < X6$;e8Z++){L7M=Math.max(L7M,w$u[E8h - e8Z].High);}}}if(E8h >= x3G){if(w$u[E8h - x3G].Low == d5I){d5I=w$u[E8h].Low;for(e8Z=1;e8Z < x3G;e8Z++){d5I=Math.min(d5I,w$u[E8h - e8Z].Low);}}}a7e=0;if(C$D.type == "HHV"){a7e=L7M;}else if(C$D.type == "LLV"){a7e=d5I;}else if(C$D.type == s9b){x8c.O90(7);a7e=x8c.D8z(d5I,L7M);}else if(C$D.type == R8R || C$D.type == "Gopala"){a7e=Math.log(L7M - d5I) / Math.log(x3G);}else if(C$D.type == J5D){x8c.O90(7);a7e=x8c.D8z(d5I,L7M);w$u[E8h]["_MHML " + C$D.name]=a7e;continue;}else if(C$D.type == "Williams %R"){x8c.O90(141);var d8s=x8c.D8z(20,80);a7e=d8s * (L7M - w$u[E8h].Close) / (L7M - d5I);w$u[E8h]["Result " + C$D.name]=a7e;continue;}if(E8h == w$u.length - 1)break;if(!w$u[E8h + +"1"].futureTick){h4i="D";h4i+="onchian";h4i+=" Chan";h4i+="nel";if(C$D.type == h4i){E9z="Donchi";E9z+="an Median";E9z+=" ";x8c.X$L(1);w$u[x8c.D8z(E8h,1)]["Donchian High " + C$D.name]=L7M;x8c.O90(1);w$u[x8c.t1w(E8h,1)]["Donchian Low " + C$D.name]=d5I;x8c.O90(1);w$u[x8c.D8z(E8h,1)][E9z + C$D.name]=x8c.t1w(d5I,2,L7M,x8c.O90(4));}else {U_Q="R";U_Q+="es";U_Q+="ult";U_Q+=" ";x8c.X$L(1);w$u[x8c.D8z(E8h,1)][U_Q + C$D.name]=a7e;}}}};b7_.Studies.calculateVerticalHorizontalFilter=function(B8s,v4j){var t_B,y6k,Z_w,o0a;t_B=v4j.chart.scrubbed;if(t_B.length < v4j.days + +"1"){v4j.error=!!({});return;}v4j.mhml=new b7_.Studies.StudyDescriptor(v4j.name,v4j.type,v4j.panel);v4j.mhml.chart=v4j.chart;v4j.mhml.days=v4j.days;v4j.mhml.startFrom=v4j.startFrom;v4j.mhml.inputs={};v4j.mhml.outputs={_MHML:null};b7_.Studies.calculateMaxHighMinLow(B8s,v4j.mhml);y6k=0;Z_w=[];for(var E5P=Math.max(1,v4j.startFrom - v4j.days);E5P < t_B.length;E5P++){o0a=Math.abs(t_B[E5P].Close - t_B[E5P - 1].Close);Z_w.push(o0a);y6k+=o0a;if(Z_w.length == v4j.days){t_B[E5P]["Result " + v4j.name]=t_B[E5P]["_MHML " + v4j.name] / y6k;y6k-=Z_w.shift();}}};b7_.Studies.studyLibrary=b7_.extend(b7_.Studies.studyLibrary,{"Donchian Channel":{name:"Donchian Channel",overlay:!!"1",calculateFN:b7_.Studies.calculateMaxHighMinLow,seriesFN:b7_.Studies.displayChannel,inputs:{"High Period":20,"Low Period":20,"Channel Fill":!![]},outputs:{"Donchian High":"auto","Donchian Median":"auto","Donchian Low":"auto"}},"Donchian Width":{name:w9T,calculateFN:b7_.Studies.calculateMaxHighMinLow,inputs:{"High Period":20,"Low Period":20}},GAPO:{name:"Gopalakrishnan Range Index",calculateFN:b7_.Studies.calculateMaxHighMinLow},HHV:{name:"Highest High Value",calculateFN:b7_.Studies.calculateMaxHighMinLow,inputs:{Period:"14" | 12}},LLV:{name:w80,calculateFN:b7_.Studies.calculateMaxHighMinLow,inputs:{Period:14}},"Williams %R":{name:"Williams %R",calculateFN:b7_.Studies.calculateMaxHighMinLow,inputs:{Period:14},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:-20,studyOverBoughtColor:p61,studyOverSoldValue:-80,studyOverSoldColor:"auto"}}},"VT HZ Filter":{name:"Vertical Horizontal Filter",calculateFN:b7_.Studies.calculateVerticalHorizontalFilter,inputs:{Period:+"28"}},"High-Low":{name:"High Minus Low",calculateFN:function(U0Q,t4W){var n1O,h3O;n1O=t4W.chart.scrubbed;x8c.Z_e();for(var v6s=t4W.startFrom;v6s < n1O.length;v6s++){h3O="R";h3O+="esul";h3O+="t";h3O+=" ";n1O[v6s][h3O + t4W.name]=n1O[v6s].High - n1O[v6s].Low;}},inputs:{}}});}};k5=d7l=>{var S7N=g9BGt;var r2V,t1c;r2V=typeof _CIQ !== "undefined"?_CIQ:d7l.CIQ;S7N.Z_e();if(!r2V.Studies){t1c="ichimoku feature requires first activating st";t1c+="udies feature.";console.error(t1c);}else {r2V.Studies.calculateIchimoku=function(N_N,K$p){var J7$,u6E,T_e,L1V,M0i,C4S,V5O,y3F,F_S,v6f;J7$=K$p.chart.scrubbed;u6E={Base:Number(K$p.inputs["Base Line Period"]),Conv:Number(K$p.inputs["Conversion Line Period"]),LeadB:Number(K$p.inputs["Leading Span B Period"]),Lag:Number(K$p.inputs["Lagging Span Period"])};for(T_e=K$p.startFrom;T_e < J7$.length;T_e++){if(!J7$[T_e])continue;L1V=D7Q(u6E.Conv,T_e);S7N.X$L(9);var t1r=S7N.D8z(7,11,5);S7N.O90(142);var i4U=S7N.D8z(4,11,10,61);J7$[T_e]["Conversion Line " + K$p.name]=(L1V[t1r] + L1V[0]) / ("2" >> i4U);L1V=D7Q(u6E.Base,T_e);S7N.O90(58);var R0r=S7N.t1w(14,18,16,6,41);S7N.X$L(5);var Z8T=S7N.t1w(6,16,12);J7$[T_e]["Base Line " + K$p.name]=(L1V[R0r] + L1V[0]) / Z8T;if(T_e < u6E.Lag)continue;J7$[T_e - u6E.Lag]["Lagging Span " + K$p.name]=J7$[T_e].Close;}M0i=[];for(T_e=Math.max(0,K$p.startFrom - u6E.Base);T_e < J7$.length;T_e++){L1V=D7Q(u6E.LeadB,T_e);S7N.X$L(143);var a9E=S7N.t1w(13,0,8,1,5);C4S=(J7$[T_e]["Conversion Line " + K$p.name] + J7$[T_e]["Base Line " + K$p.name]) / a9E;S7N.X$L(144);var m$W=S7N.D8z(7,43,7,4,11);S7N.X$L(145);var F4v=S7N.t1w(3,3,8,0,10);V5O=(L1V[m$W] + L1V[0]) / F4v;if(J7$[T_e + u6E.Base]){y3F="Leadin";y3F+="g";y3F+=" Spa";y3F+="n B ";J7$[T_e + u6E.Base]["Leading Span A " + K$p.name]=C4S;J7$[T_e + u6E.Base][y3F + K$p.name]=V5O;}else {F_S="Le";F_S+="ad";F_S+="i";F_S+="ng Span B ";v6f={};v6f["Leading Span A " + K$p.name]=C4S;v6f[F_S + K$p.name]=V5O;M0i.push(v6f);}}K$p.appendFutureTicks(N_N,M0i);function D7Q(W$0,N4I){var F2c,q1w;F2c=Number.MAX_VALUE;q1w=Number.MAX_VALUE * -("1" | 0);for(var A5l=N4I - W$0 + 1;A5l <= N4I;A5l++){if(A5l < +"0")continue;F2c=Math.min(F2c,J7$[A5l].Low);q1w=Math.max(q1w,J7$[A5l].High);}return [F2c,q1w];}};r2V.Studies.displayIchimoku=function(S5F,g3U,D09){var k9Q,y6Y,q1F,o1C,s52,w9K,d1_,s7i;k9Q="Lea";k9Q+="ding Sp";k9Q+="an B ";y6Y="Leading Span A " + g3U.name;q1F=k9Q + g3U.name;o1C=r2V.Studies.determineColor(g3U.outputs[g3U.outputMap[y6Y]]);s52=r2V.Studies.determineColor(g3U.outputs[g3U.outputMap[q1F]]);w9K=S5F.panels[g3U.panel];d1_=g3U.getYAxis(S5F);s7i={topBand:y6Y,bottomBand:q1F,topColor:o1C,bottomColor:s52,skipTransform:w9K.name != g3U.chart.name,topAxis:d1_,bottomAxis:d1_,opacity:+"0.3"};if(!g3U.highlight && S5F.highlightedDraggable){s7i.opacity*=0.3;}r2V.fillIntersecting(S5F,g3U.panel,s7i);r2V.Studies.displaySeriesAsLine(S5F,g3U,D09);};r2V.Studies.studyLibrary=r2V.extend(r2V.Studies.studyLibrary,{"Ichimoku Clouds":{name:"Ichimoku Clouds",overlay:!!1,calculateFN:r2V.Studies.calculateIchimoku,seriesFN:r2V.Studies.displayIchimoku,inputs:{"Conversion Line Period":+"9","Base Line Period":26,"Leading Span B Period":52,"Lagging Span Period":26},outputs:{"Conversion Line":"#0000FF","Base Line":"#FF0000","Leading Span A":"#00FF00","Leading Span B":"#FF0000","Lagging Span":"#808000"}}});}};O6=V$f=>{var o6K,o_i,N1$,W22,s2W,x__,v26,D1T;o6K=typeof _CIQ !== "undefined"?_CIQ:V$f.CIQ;if(!o6K.Studies){o_i="intradayMomentum feature re";o_i+="qu";o_i+="ires first";o_i+=" activating studies feature.";console.error(o_i);}else {N1$="Intraday Momentum";N1$+=" ";N1$+="Inde";N1$+="x";o6K.Studies.calculateIntradayMomentum=function(y8Y,O4B){var c$T=g9BGt;var o5G,S$i,G7o,u6B,E9y,T0U,J43,W4t,K5I;o5G=O4B.chart.scrubbed;S$i=O4B.days;if(o5G.length < S$i + 1){O4B.error=!"";return;}G7o=+"0";c$T.c7b();c$T.O90(8);u6B=c$T.t1w(1,"0");if(O4B.startFrom > 1){E9y="_totD";E9y+="n ";G7o=o5G[O4B.startFrom - +"1"]["_totUp " + O4B.name];c$T.X$L(1);var r47=c$T.t1w(0,1);u6B=o5G[O4B.startFrom - r47][E9y + O4B.name];}for(var G_m=O4B.startFrom;G_m < o5G.length;G_m++){T0U="_t";T0U+="otDn ";J43="_totU";J43+="p ";W4t=o5G[G_m].Close - o5G[G_m].Open;if(W4t > 0){G7o+=W4t;}else {u6B-=W4t;}if(G_m >= S$i){K5I=o5G[G_m - S$i].Close - o5G[G_m - S$i].Open;if(K5I > "0" - 0){G7o-=K5I;}else {u6B+=K5I;}}c$T.X$L(146);o5G[G_m]["Result " + O4B.name]=c$T.D8z(u6B,G7o,"100",G7o,64);o5G[G_m][J43 + O4B.name]=G7o;o5G[G_m][T0U + O4B.name]=u6B;}};W22=47190132;s2W=1353725720;x__=2;for(var N8L=1;g9BGt.l9L(N8L.toString(),N8L.toString().length,86471) !== W22;N8L++){v26="In";v26+="traday Mtm";o6K.Studies.studyLibrary=o6K.extend(o6K.Studies.studyLibrary,{"Intraday Mtm":{name:"auto",calculateFN:o6K.Studies.calculateIntradayMomentum,inputs:{Period:81},parameters:{init:{studyOverZonesEnabled:!({}),studyOverBoughtValue:19,studyOverBoughtColor:"auto",studyOverSoldValue:86,studyOverSoldColor:v26}}}});x__+=2;}if(g9BGt.i7j(x__.toString(),x__.toString().length,+"78115") !== s2W){D1T="a";D1T+="u";D1T+="to";o6K.Studies.studyLibrary=o6K.extend(o6K.Studies.studyLibrary,{"Intraday Mtm":{name:D1T,calculateFN:o6K.Studies.calculateIntradayMomentum,inputs:{Period:81},parameters:{init:{studyOverZonesEnabled:!({}),studyOverBoughtValue:19,studyOverBoughtColor:"auto",studyOverSoldValue:86,studyOverSoldColor:"Intraday Mtm"}}}});}o6K.Studies.studyLibrary=o6K.extend(o6K.Studies.studyLibrary,{"Intraday Mtm":{name:N1$,calculateFN:o6K.Studies.calculateIntradayMomentum,inputs:{Period:20},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:70,studyOverBoughtColor:"auto",studyOverSoldValue:"30" ^ 0,studyOverSoldColor:"auto"}}}});}};G_=p8P=>{var B6D;B6D=typeof _CIQ !== "undefined"?_CIQ:p8P.CIQ;g9BGt.c7b();if(!B6D.Studies){console.error("keltner feature requires first activating studies feature.");}else {B6D.Studies.calculateKeltner=function(f3y,P7X){var b8U;b8U="M";b8U+="A";b8U+=" ";B6D.Studies.MA(P7X.inputs["Moving Average Type"],P7X.days,"Close",0,"MA",f3y,P7X);B6D.Studies.calculateStudyATR(f3y,P7X);B6D.Studies.calculateGenericEnvelope(f3y,P7X,P7X.inputs.Shift,b8U + P7X.name,"ATR " + P7X.name);};B6D.Studies.studyLibrary=B6D.extend(B6D.Studies.studyLibrary,{Keltner:{name:"Keltner Channel",overlay:!!"1",seriesFN:B6D.Studies.displayChannel,calculateFN:B6D.Studies.calculateKeltner,inputs:{Period:50,Shift:5,"Moving Average Type":"ema","Channel Fill":!![]},outputs:{"Keltner Top":"auto","Keltner Median":"auto","Keltner Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}}});}};X0=L_3=>{var j4j=g9BGt;var l37,g80,B7w,C1h,S2u,Z_I;l37=typeof _CIQ !== "undefined"?_CIQ:L_3.CIQ;if(!l37.Studies){g80=530806262;B7w=1764039854;C1h=2;for(var I4m=1;j4j.i7j(I4m.toString(),I4m.toString().length,26476) !== g80;I4m++){console.error("klinger feature requires first activating studies feature.");C1h+=2;}if(j4j.l9L(C1h.toString(),C1h.toString().length,62702) !== B7w){console.error("");}}else {S2u="#0";S2u+="0DD00";Z_I="a";Z_I+="u";Z_I+="t";Z_I+="o";l37.Studies.calculateKlinger=function(U59,m1m){var s6M,R6u,L5m,q0B,S3a,n1S,b9t,G_$,n7O,x$F,M_J,j6a,A9Z,H6Y;s6M="Klinge";s6M+="rSi";s6M+="gna";s6M+="l";R6u="exponen";R6u+="ti";R6u+="al";L5m="_EM";L5m+="A";L5m+="-";L5m+="S";q0B=m1m.chart.scrubbed;S3a=Number(m1m.inputs["Short Cycle"]);n1S=Number(m1m.inputs["Long Cycle"]);if(q0B.length < Math.max(S3a,n1S) + +"1"){m1m.error=!"";return;}b9t=m1m.name + "_hist";G_$="Klinger " + m1m.name;n7O="KlingerSignal " + m1m.name;x$F="_SV " + m1m.name;M_J="_EMA-S " + m1m.name;j6a="_EMA-L " + m1m.name;for(A9Z=Math.max(1,m1m.startFrom);A9Z < q0B.length;A9Z++){H6Y=q0B[A9Z].Volume;if(q0B[A9Z]["hlc/3"] < q0B[A9Z - ("1" >> 0)]["hlc/3"]){H6Y*=-+"1";}if(H6Y){q0B[A9Z][x$F]=H6Y;}}l37.Studies.MA("exponential",S3a,x$F,0,L5m,U59,m1m);j4j.O90(18);l37.Studies.MA(R6u,n1S,x$F,j4j.t1w("0",32),"_EMA-L",U59,m1m);for(A9Z=Math.max(n1S,m1m.startFrom);A9Z < q0B.length;A9Z++){if(q0B[A9Z].futureTick || q0B[A9Z][M_J] === null || q0B[A9Z][j6a] === null)break;q0B[A9Z][G_$]=q0B[A9Z][M_J] - q0B[A9Z][j6a];}l37.Studies.MA("exponential",Number(m1m.inputs["Signal Periods"]),G_$,0,s6M,U59,m1m);for(A9Z=m1m.startFrom;A9Z < q0B.length;A9Z++){q0B[A9Z][b9t]=q0B[A9Z][G_$] - q0B[A9Z][n7O];}m1m.outputMap[b9t]="";};l37.Studies.studyLibrary=l37.extend(l37.Studies.studyLibrary,{Klinger:{name:"Klinger Volume Oscillator",seriesFN:l37.Studies.displayHistogramWithSeries,calculateFN:l37.Studies.calculateKlinger,inputs:{"Signal Periods":13,"Short Cycle":34,"Long Cycle":55},outputs:{Klinger:Z_I,KlingerSignal:"#FF0000","Increasing Bar":S2u,"Decreasing Bar":"#FF0000"}}});}};Z_=c4m=>{var m4e=g9BGt;m4e.Z_e();var X$$,D_E,z1n,P1G,V49;X$$=typeof _CIQ !== "undefined"?_CIQ:c4m.CIQ;if(!X$$.Studies){console.error("linearRegression feature requires first activating studies feature.");}else {D_E="f";D_E+="i";D_E+="eld";z1n="TimeSe";z1n+="ri";z1n+="es";P1G="time";P1G+=" serie";P1G+="s";V49="Time Ser";V49+="ies";X$$.Studies.prettify["time series"]="tsma";X$$.Studies.movingAverage.conversions.tsma="time series";X$$.Studies.movingAverage.translations["time series"]=V49;X$$.Studies.movingAverage.typeMap.tsma="TimeSeries";X$$.Studies.movingAverage.typeMap[P1G]=z1n;X$$.Studies.calculateMovingAverageTimeSeries=function(j$F,f96){var b_n,r4O,c69,z7G,x49,u_P,I6K,p7r,Y7K,U1l;f96.ma=new X$$.Studies.StudyDescriptor(f96.name,"ma",f96.panel);f96.ma.chart=f96.chart;f96.ma.days=f96.days;f96.ma.startFrom=f96.startFrom;f96.ma.inputs=f96.inputs;X$$.Studies.calculateLinearRegressionIndicator(j$F,f96.ma);b_n=f96.name;for(var Y3W in f96.outputs){m4e.X$L(95);b_n=m4e.t1w(Y3W,b_n," ");}r4O=parseInt(f96.inputs.Offset,10);if(isNaN(r4O)){r4O=0;}c69=f96.chart.scrubbed;z7G=r4O;for(var C_w=f96.startFrom - 1;C_w >= 0;C_w--){x49=c69[C_w][b_n];if(!x49 && x49 !== 0)continue;if(z7G > 0){z7G--;continue;}break;}u_P=[];m4e.Z_e();for(C_w++;C_w < c69.length;C_w++){I6K=c69[C_w];if(C_w + r4O >= 0){p7r="Fore";p7r+="cast ";if(C_w + r4O < c69.length){m4e.O90(1);c69[m4e.D8z(C_w,r4O)][b_n]=I6K[p7r + f96.name];}else {Y7K="For";Y7K+="ec";Y7K+="as";Y7K+="t ";U1l={};U1l[b_n]=I6K[Y7K + f96.name];u_P.push(U1l);}}}f96.appendFutureTicks(j$F,u_P);};X$$.Studies.calculateLinearRegressionIndicator=function(V6A,v9i){var G70,B6v,L$Y,r1V,f9i,m1k,h44,k1b,H5t,q$f,S7o,T33,x5e,I2S,m7U,s3z,Z0J;G70="Cl";G70+="o";G70+="s";G70+="e";B6v=v9i.chart.scrubbed;if(B6v.length < v9i.days + 1){v9i.error=!!1;return;}L$Y=v9i.inputs.Field;if(!L$Y || L$Y == "field"){L$Y=G70;}m4e.O90(126);var p7C=m4e.t1w(6,12,2,10);m4e.X$L(147);var A5O=m4e.t1w(4,17,151,14,22);r1V=v9i.days * (v9i.days + p7C) / A5O;f9i=Math.pow(r1V,2);m4e.O90(139);var c6A=m4e.t1w(3,12,7);m4e.O90(148);var V5f=m4e.t1w(20,20,5,5,1);m1k=r1V * (c6A * v9i.days + V5f) / +"3";h44=0;k1b=0;H5t=0;if(v9i.startFrom){m4e.O90(149);var Q_Y=m4e.t1w(16,18,457,12,19);q$f=B6v[v9i.startFrom - Q_Y]["_sums " + v9i.name];if(q$f){k1b=q$f[0];h44=q$f[1];H5t=q$f[2];}}for(var K7C=v9i.startFrom;K7C < B6v.length;K7C++){S7o="RSquar";S7o+="ed ";T33="S";T33+="lo";T33+="p";T33+="e ";x5e=B6v[K7C][L$Y];if(x5e && typeof x5e == "object"){x5e=x5e[v9i.subField];}if(!x5e && x5e !== 0)continue;k1b+=v9i.days * x5e - h44;h44+=x5e;m4e.O90(18);H5t+=Math.pow(x5e,m4e.D8z("2",64));if(K7C < v9i.days - 1)continue;else if(K7C > v9i.days - 1){I2S=B6v[K7C - v9i.days][L$Y];if(I2S && typeof I2S == "object"){I2S=I2S[v9i.subField];}if(!I2S && I2S !== 0)continue;h44-=I2S;H5t-=Math.pow(I2S,2);}m7U=(v9i.days * k1b - r1V * h44) / (v9i.days * m1k - f9i);B6v[K7C][T33 + v9i.name]=m7U;s3z=(h44 - m7U * r1V) / v9i.days;B6v[K7C]["Intercept " + v9i.name]=s3z;B6v[K7C]["Forecast " + v9i.name]=s3z + m7U * v9i.days;m4e.X$L(7);var L2F=m4e.D8z(4,6);Z0J=(v9i.days * m1k - f9i) / (v9i.days * H5t - Math.pow(h44,L2F));m4e.X$L(150);B6v[K7C][S7o + v9i.name]=m4e.t1w(Z0J,m7U,m7U);B6v[K7C]["_sums " + v9i.name]=[k1b,h44,H5t];}};X$$.Studies.studyLibrary=X$$.extend(X$$.Studies.studyLibrary,{"Lin Fcst":{name:"Linear Reg Forecast",overlay:!![],calculateFN:X$$.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Forecast:"auto"}},"Lin Incpt":{name:"Linear Reg Intercept",overlay:!!"1",calculateFN:X$$.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Intercept:"auto"}},"Lin R2":{name:"Linear Reg R2",calculateFN:X$$.Studies.calculateLinearRegressionIndicator,inputs:{Period:"14" * 1,Field:"field"},outputs:{RSquared:"auto"}},"LR Slope":{name:"Linear Reg Slope",calculateFN:X$$.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Slope:"auto"}},"Time Fcst":{name:"Time Series Forecast",overlay:!![],calculateFN:X$$.Studies.calculateLinearRegressionIndicator,inputs:{Period:+"14",Field:D_E},outputs:{Forecast:"auto"}}});}};i$=G7j=>{var U2x=g9BGt;var R3_,W1m;U2x.Z_e();R3_=typeof _CIQ !== "undefined"?_CIQ:G7j.CIQ;if(!R3_.Studies){console.error("macd feature requires first activating studies feature.");}else {W1m="#0";W1m+="0";W1m+="DD";W1m+="00";R3_.Studies.calculateMACD=function(d62,L3s){var c3c,l70,J$u,o$X,y7Z,d9S,x2J,f9Y,p5c,u$l,V$T,M3s,J0p,M7j,T0N,c5s,e_l,U2P,w5Y,K_j,N5l;c3c="_";c3c+="h";c3c+="is";c3c+="t";l70="Sig";l70+="nal";J$u="Si";J$u+="gna";J$u+="l MA Typ";J$u+="e";o$X="Mo";o$X+="ving Averag";o$X+="e";o$X+=" Type";y7Z=L3s.chart.scrubbed;d9S=L3s.inputs;x2J=L3s.name;if(!L3s.macd1Days){L3s.macd1Days=parseFloat(d9S["Fast MA Period"]);}if(!L3s.macd2Days){L3s.macd2Days=parseFloat(d9S["Slow MA Period"]);}if(!L3s.signalDays){L3s.signalDays=parseFloat(d9S["Signal Period"]);}if(!L3s.days){L3s.days=Math.max(L3s.macd1Days,L3s.macd2Days,L3s.signalDays);}if(y7Z.length < L3s.days + 1){L3s.error=!!({});f9Y=829371700;p5c=643261637;u$l=2;for(var v3I=1;U2x.l9L(v3I.toString(),v3I.toString().length,8390) !== f9Y;v3I++){return;}if(U2x.l9L(u$l.toString(),u$l.toString().length,14820) !== p5c){return;}}V$T=L3s.inputs.Field;if(!V$T || V$T == "field"){V$T="Close";}M3s=d9S[o$X];if(!M3s){M3s="exponential";}R3_.Studies.MA(M3s,L3s.macd1Days,V$T,+"0","_MACD1",d62,L3s);R3_.Studies.MA(M3s,L3s.macd2Days,V$T,0,"_MACD2",d62,L3s);T0N=Math.max(L3s.startFrom,L3s.days - 1);for(J0p=T0N;J0p < y7Z.length;J0p++){c5s="_MA";c5s+="CD1 ";e_l="_M";e_l+="AC";e_l+="D";e_l+="1 ";M7j=y7Z[J0p];if((M7j[e_l + x2J] || M7j["_MACD1 " + x2J] === 0) && (M7j["_MACD2 " + x2J] || M7j["_MACD2 " + x2J] === 0)){U2x.X$L(1);M7j[U2x.D8z("MACD ",x2J)]=M7j[c5s + x2J] - M7j["_MACD2 " + x2J];}}U2P=d9S[J$u];if(!U2P){U2P="exponential";}R3_.Studies.MA(U2P,L3s.signalDays,"MACD " + x2J,0,l70,d62,L3s);U2x.O90(1);w5Y=U2x.t1w(x2J,c3c);for(J0p=T0N;J0p < y7Z.length;J0p++){K_j="MAC";K_j+="D";K_j+=" ";M7j=y7Z[J0p];U2x.X$L(1);N5l=M7j[U2x.t1w("Signal ",x2J)];if(!N5l && N5l !== 0)continue;M7j[w5Y]=M7j[K_j + x2J] - M7j["Signal " + x2J];}L3s.outputMap[w5Y]="";};R3_.Studies.studyLibrary=R3_.extend(R3_.Studies.studyLibrary,{macd:{name:"MACD",calculateFN:R3_.Studies.calculateMACD,seriesFN:R3_.Studies.displayHistogramWithSeries,inputs:{"Fast MA Period":12,"Slow MA Period":26,"Signal Period":9},outputs:{MACD:"auto",Signal:"#FF0000","Increasing Bar":W1m,"Decreasing Bar":"#FF0000"}}});}};L$=A2_=>{var b_X=g9BGt;b_X.Z_e();var z5b;z5b=typeof _CIQ !== "undefined"?_CIQ:A2_.CIQ;if(!z5b.Studies){console.error("massIndex feature requires first activating studies feature.");}else {z5b.Studies.calculateMassIndex=function(f26,t5N){var w_$,P9P,Z0$,R$y,L1g,w3L,G4Y,r$3;w_$="_";w_$+="tota";w_$+="l ";P9P="_";P9P+="total ";Z0$="e";Z0$+="xp";Z0$+="onentia";Z0$+="l";R$y=t5N.chart.scrubbed;if(R$y.length < Math.max(9,t5N.days + ("1" - 0))){t5N.error=!!1;L1g=-2052317514;w3L=-734732867;G4Y=2;for(var i0X=1;b_X.i7j(i0X.toString(),i0X.toString().length,91014) !== L1g;i0X++){return;}if(b_X.i7j(G4Y.toString(),G4Y.toString().length,48096) !== w3L){return;}return;}for(var A8k=t5N.startFrom;A8k < R$y.length;A8k++){R$y[A8k]["_High-Low " + t5N.name]=R$y[A8k].High - R$y[A8k].Low;}z5b.Studies.MA(Z0$,9,"_High-Low " + t5N.name,0,"_EMA",f26,t5N);z5b.Studies.MA("exponential",9,"_EMA " + t5N.name,0,"_EMA2",f26,t5N);b_X.X$L(8);r$3=b_X.t1w(1,"0");if(R$y[t5N.startFrom - 1] && R$y[t5N.startFrom - 1][P9P + t5N.name]){b_X.O90(14);var d0b=b_X.t1w(4,18,13);r$3=R$y[t5N.startFrom - d0b][w_$ + t5N.name];}for(var F8I=Math.max(17,t5N.startFrom);F8I < R$y.length;F8I++){r$3+=R$y[F8I]["_EMA " + t5N.name] / R$y[F8I]["_EMA2 " + t5N.name];if(F8I >= 17 + t5N.days - "1" * 1){R$y[F8I]["Result " + t5N.name]=r$3;b_X.O90(1);var T2E=b_X.D8z(0,1);b_X.X$L(151);var I3c=b_X.t1w(9,2,10,14,32);r$3-=R$y[F8I - t5N.days + T2E]["_EMA " + t5N.name] / R$y[F8I - t5N.days + I3c]["_EMA2 " + t5N.name];}R$y[F8I]["_total " + t5N.name]=r$3;}};z5b.Studies.displayMassIndex=function(I51,b7f,l5$){var Z7P,P66,S2r,j_h,B0V,d8r;Z7P="Bulge ";Z7P+="Threshol";Z7P+="d";z5b.Studies.displaySeriesAsLine(I51,b7f,l5$);P66=b7f.inputs[Z7P];S2r=I51.panels[b7f.panel];j_h=b7f.getYAxis(I51);B0V=z5b.Studies.determineColor(b7f.outputs.Result);d8r={skipTransform:I51.panels[b7f.panel].name != b7f.chart.name,panelName:b7f.panel,band:"Result " + b7f.name,threshold:P66,direction:1,color:B0V,yAxis:j_h,opacity:0.3};if(!b7f.highlight && I51.highlightedDraggable){d8r.opacity*=+"0.3";}z5b.preparePeakValleyFill(I51,d8r);z5b.Studies.drawHorizontal(I51,b7f,null,P66,j_h,B0V);};z5b.Studies.studyLibrary=z5b.extend(z5b.Studies.studyLibrary,{"Mass Idx":{name:"Mass Index",seriesFN:z5b.Studies.displayMassIndex,calculateFN:z5b.Studies.calculateMassIndex,inputs:{Period:"25" >> 32,"Bulge Threshold":27},attributes:{"Bulge Threshold":{min:20,max:35,step:0.1}}}});}};t6=H_s=>{var Q0h=g9BGt;var T_Z,y0b,N5r,s1i,m8D,r_L,f2x,m_t;T_Z=typeof _CIQ !== "undefined"?_CIQ:H_s.CIQ;Q0h.c7b();if(!T_Z.Studies){console.error("moneyFlow feature requires first activating studies feature.");}else {T_Z.Studies.calculateMoneyFlowIndex=function(Q0X,e0h){var G8S,v0X,G_1,y2w,Y_9,a2U,K$X,s5j,C1z,y5V,g2h,V7x,M90;G8S="_cum";G8S+="MF ";v0X=e0h.chart.scrubbed;if(v0X.length < e0h.days + 1){e0h.error=!"";return;}G_1=0;y2w=0;Q0h.X$L(152);var v5V=Q0h.t1w(9,8,21,19,14);Y_9=v0X[e0h.startFrom - v5V];a2U="_rawMF " + e0h.name;K$X=G8S + e0h.name;s5j="Result " + e0h.name;if(Y_9 && Y_9[K$X]){G_1=Y_9[K$X][0];y2w=Y_9[K$X][1];}Q0h.c7b();for(var l28=e0h.startFrom;l28 < v0X.length;l28++){C1z=v0X[l28]["hlc/3"];if(l28 > 0 && !v0X[l28].futureTick){y5V="h";y5V+="lc";y5V+="/";y5V+="3";Q0h.X$L(7);g2h=v0X[Q0h.t1w(1,l28)][y5V];V7x=C1z * v0X[l28].Volume;if(C1z > g2h){G_1+=V7x;}else if(C1z < g2h){V7x*=-1;y2w-=V7x;}else {V7x=0;}if(l28 > e0h.days){M90=v0X[l28 - e0h.days][a2U];if(M90 > "0" - 0){G_1-=M90;}else {y2w+=M90;}if(y2w === 0){v0X[l28][s5j]=100;}else if(v0X[l28].Volume){Q0h.O90(153);v0X[l28][s5j]=Q0h.D8z(G_1,y2w,100,1,100);}}v0X[l28][a2U]=V7x;v0X[l28][K$X]=[G_1,y2w];}}};y0b=815561035;N5r=1443347444;s1i=2;for(var i05=1;Q0h.i7j(i05.toString(),i05.toString().length,"91358" * 1) !== y0b;i05++){m8D="M ";m8D+="Flow";T_Z.Studies.studyLibrary=T_Z.extend(T_Z.Studies.studyLibrary,{"M Flow":{name:m8D,range:"0 to 100",calculateFN:T_Z.Studies.calculateMoneyFlowIndex,inputs:{Period:74},parameters:{init:{studyOverZonesEnabled:!!0,studyOverBoughtValue:+"90",studyOverBoughtColor:"M Flow",studyOverSoldValue:92,studyOverSoldColor:"auto"}}}});s1i+=2;}if(Q0h.i7j(s1i.toString(),s1i.toString().length,76685) !== N5r){r_L="a";r_L+="u";r_L+="t";r_L+="o";f2x="0";f2x+=" to 100";m_t="Money Flow I";m_t+="n";m_t+="dex";T_Z.Studies.studyLibrary=T_Z.extend(T_Z.Studies.studyLibrary,{"M Flow":{name:m_t,range:f2x,calculateFN:T_Z.Studies.calculateMoneyFlowIndex,inputs:{Period:+"14"},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:"80" * 1,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:r_L}}}});}}};u5=T$C=>{var K0B=g9BGt;var T3h,r3J,k1Q,e8x,p5b,g6m,O_O,C4D,r_R,a$p,R_1,Y$y,Y2p,q9k,G_u,v0j,R5X;T3h=-1370252329;r3J=+"1905875576";K0B.Z_e();K0B.X$L(35);k1Q=K0B.t1w(64,"2");for(var Q32=1;K0B.l9L(Q32.toString(),Q32.toString().length,9) !== T3h;Q32++){e8x="un";e8x+="d";e8x+="efined";p5b=typeof _CIQ !== e8x?_CIQ:T$C.CIQ;k1Q+=2;}if(K0B.l9L(k1Q.toString(),k1Q.toString().length,+"88310") !== r3J){p5b=~_CIQ === ""?_CIQ:T$C.CIQ;}if(!p5b.Studies){console.error("movingAverages feature requires first activating studies feature.");}else {g6m="a";g6m+="u";g6m+="t";g6m+="o";O_O="Hig";O_O+="h Low Bands";C4D="#00DD0";C4D+="0";r_R="m";r_R+="a";a$p="au";a$p+="to";R_1="m";R_1+="a";Y$y="TripleEx";Y$y+="ponent";Y$y+="ial";Y2p="DoubleExpon";Y2p+="en";Y2p+="tial";q9k="Hu";q9k+="ll";G_u="Double Exponentia";G_u+="l";v0j="3";v0j+="-";v0j+="exp";v0j+="onential";R5X="h";R5X+="u";R5X+="ll";p5b.Studies.prettify=p5b.extend({"2-exponential":"dema","3-exponential":"tema",hull:"hma"},p5b.Studies.prettify);p5b.extend(p5b.Studies.movingAverage,{conversions:{hma:R5X,dema:"2-exponential",tema:v0j},translations:{hull:"Hull","2-exponential":G_u,"3-exponential":"Triple Exponential"},typeMap:{hma:"Hull",hull:q9k,dema:"DoubleExponential","2-exponential":Y2p,tema:"TripleExponential","3-exponential":Y$y}});p5b.Studies.calculateMovingAverageHull=function(z7v,A4b){var o7_,F7K,W3Q,d6j,S9c,v5D,x9a,U2Q,k2P,U1Q,H1o,B$E,E8p,W7S;o7_="_";o7_+="M";o7_+="MA";o7_+=" ";F7K="w";F7K+="m";F7K+="a";W3Q="_W";W3Q+="MA1";d6j="fi";d6j+="eld";S9c=A4b.chart.scrubbed;v5D=A4b.inputs.Field;if(!v5D || v5D == d6j){v5D="Close";}K0B.Z_e();p5b.Studies.MA("wma",A4b.days,v5D,0,W3Q,z7v,A4b);p5b.Studies.MA(F7K,Math.ceil(A4b.days / 2),v5D,0,"_WMA2",z7v,A4b);for(x9a=A4b.startFrom - 1;x9a >= 0;x9a--){U2Q=S9c[x9a][v5D];if(U2Q && typeof U2Q == "object"){U2Q=U2Q[A4b.subField];}if(U2Q || U2Q === 0)break;}for(x9a++;x9a < S9c.length;x9a++){k2P="_WM";k2P+="A1 ";U1Q="_";U1Q+="M";U1Q+="MA ";H1o=S9c[x9a];K0B.X$L(20);var y4C=K0B.t1w(17,34,34,16);H1o[U1Q + A4b.name]=y4C * H1o["_WMA2 " + A4b.name] - H1o[k2P + A4b.name];}B$E=parseInt(A4b.inputs.Offset,+"10");if(isNaN(B$E)){B$E=0;}E8p=Math.floor(Math.sqrt(A4b.days));p5b.Studies.MA("wma",E8p,o7_ + A4b.name,B$E,"_HMA",z7v,A4b);W7S=A4b.name;for(var B7m in A4b.outputs){K0B.O90(95);W7S=K0B.t1w(B7m,W7S,6860 > +"849.02"?" ":(7120,518.65) <= 1616?(+"918.53",4563) <= (+"4769",+"6040")?"r":(8.55e+3,740.31):"d");}for(x9a=Math.max(A4b.days + E8p - 1,A4b.startFrom);x9a < S9c.length;x9a++){S9c[x9a][W7S]=S9c[x9a]["_HMA " + A4b.name];}};p5b.Studies.calculateMovingAverageDoubleExponential=function(w0X,T$Y){var q4D,s03,I6F,Q1R,H8h,G6n,O5t,e_L,l3r,e4t,s7k;q4D=T$Y.chart.scrubbed;s03=T$Y.inputs.Field;if(!s03 || s03 == "field"){s03="Close";}p5b.Studies.MA("ema",T$Y.days,s03,0,"_EMA1",w0X,T$Y);p5b.Studies.MA("ema",T$Y.days,"_EMA1 " + T$Y.name,"0" * 1,"_EMA2",w0X,T$Y);I6F=parseInt(T$Y.inputs.Offset,10);if(isNaN(I6F)){I6F=0;}G6n=I6F;for(Q1R=T$Y.startFrom - 1;Q1R >= 0;Q1R--){H8h=q4D[Q1R][s03];if(H8h && typeof H8h == "object"){H8h=H8h[T$Y.subField];}if(!H8h && H8h !== ("0" ^ 0))continue;if(G6n > 0){G6n--;continue;}break;}O5t=T$Y.name;for(var j2P in T$Y.outputs){K0B.X$L(95);O5t=K0B.t1w(j2P,O5t,8625 !== (39.74,+"8460")?69.15 !== (886,136.03)?(6180,5517) !== (9491,46.32)?" ":("P","k"):(+"0x1646",215.38):749.61);}e_L=[];for(Q1R++;Q1R < q4D.length;Q1R++){if(Q1R < 2 * (T$Y.days - 1))continue;l3r=q4D[Q1R];K0B.O90(154);var S2C=K0B.t1w(162,2,16,10,5);e4t=S2C * l3r["_EMA1 " + T$Y.name] - l3r["_EMA2 " + T$Y.name];if(Q1R + I6F >= "0" - 0){if(Q1R + I6F < q4D.length){K0B.X$L(1);q4D[K0B.t1w(Q1R,I6F)][O5t]=e4t;}else {s7k={};s7k[O5t]=e4t;e_L.push(s7k);}}}T$Y.appendFutureTicks(w0X,e_L);};p5b.Studies.calculateMovingAverageTripleExponential=function(J__,N8N){var U0D,Q7P,I7O,Z_$,x_M,p9r,k12,F5O,s$e,F5j,d0q,u2h,K5V,O1W,A34,C2F,I11;U0D="e";U0D+="ma";Q7P="_";Q7P+="E";Q7P+="MA1 ";I7O="C";I7O+="l";I7O+="os";I7O+="e";Z_$="fi";Z_$+="el";Z_$+="d";x_M=N8N.chart.scrubbed;p9r=N8N.inputs.Field;if(!p9r || p9r == Z_$){p9r=I7O;}p5b.Studies.MA("ema",N8N.days,p9r,0,"_EMA1",J__,N8N);p5b.Studies.MA("ema",N8N.days,Q7P + N8N.name,0,"_EMA2",J__,N8N);p5b.Studies.MA(U0D,N8N.days,"_EMA2 " + N8N.name,+"0","_EMA3",J__,N8N);k12=parseInt(N8N.inputs.Offset,10);if(isNaN(k12)){k12=0;}F5j=k12;K0B.Z_e();for(F5O=N8N.startFrom - 1;F5O >= 0;F5O--){s$e=x_M[F5O][p9r];if(s$e && typeof s$e == "object"){s$e=s$e[N8N.subField];}if(!s$e && s$e !== 0)continue;if(F5j > 0){F5j--;continue;}break;}d0q=N8N.name;for(var H0b in N8N.outputs){K0B.O90(95);d0q=K0B.D8z(H0b,d0q,(7184,522) <= 6267?(8431,7970) < 231?("k","0x1f76" << 0):" ":!"1");}u2h=[];for(F5O++;F5O < x_M.length;F5O++){K5V="_EM";K5V+="A3";K5V+=" ";O1W="_";O1W+="EMA2 ";if(F5O < 3 * (N8N.days - 1))continue;A34=x_M[F5O];K0B.X$L(155);var I79=K0B.t1w(28,8,11,12,16);K0B.X$L(5);var L9T=K0B.D8z(30,39,12);C2F=I79 * A34["_EMA1 " + N8N.name] - L9T * A34[O1W + N8N.name] + A34[K5V + N8N.name];if(F5O + k12 >= 0){if(F5O + k12 < x_M.length){K0B.X$L(1);x_M[K0B.t1w(F5O,k12)][d0q]=C2F;}else {I11={};I11[d0q]=C2F;u2h.push(I11);}}}N8N.appendFutureTicks(J__,u2h);};p5b.Studies.calculateMAEnvelope=function(v56,t7q){var w5g,f2L,h97,f90,K5O,d5e;w5g="Moving Av";w5g+="e";w5g+="rage T";K0B.Z_e();w5g+="ype";f2L="f";f2L+="ield";h97=t7q.inputs.Field;if(!h97 || h97 == f2L){h97="Close";}p5b.Studies.MA(t7q.inputs[w5g],t7q.days,h97,0,"MA",v56,t7q);f90=t7q.inputs["Shift Type"];K5O=t7q.inputs.Shift;if(!f90){f90="percent";K5O=t7q.inputs["Shift Percentage"];}if(f90 == "percent"){K0B.O90(23);p5b.Studies.calculateGenericEnvelope(v56,t7q,K0B.t1w(100,K5O),"MA " + t7q.name);}else if(f90 == "points"){d5e="M";d5e+="A";d5e+=" ";p5b.Studies.calculateGenericEnvelope(v56,t7q,null,d5e + t7q.name,null,Number(K5O));}};p5b.Studies.calculateMADev=function(p4V,I8T){var p7e,r7U,C5_,D_9,I8p,b5S,y$3,E8k,N$5,h8Y,z3h,P$_;p7e="_";p7e+="M";p7e+="A";r7U="Movi";r7U+="ng Average";r7U+=" Typ";r7U+="e";C5_=I8T.chart.scrubbed;if(C5_.length < I8T.days + 1){I8T.error=!![];return;}D_9=I8T.inputs.Field;if(!D_9 || D_9 == "field"){D_9="Close";}I8p=I8T.inputs["Points Or Percent"];if(!I8p){I8p="Points";}b5S=I8T.inputs[r7U];if(!b5S){b5S="exponential";}p5b.Studies.MA(b5S,I8T.days,D_9,0,p7e,p4V,I8T);y$3=I8T.name + "_hist";for(var u3x=Math.max(I8T.startFrom,I8T.days - ("1" | 1));u3x < C5_.length;u3x++){E8k="objec";E8k+="t";N$5=C5_[u3x];h8Y=N$5[D_9];if(h8Y && typeof h8Y == E8k){h8Y=h8Y[I8T.subField];}z3h=N$5["_MA " + I8T.name];if(z3h || z3h === 0){P$_="Po";P$_+="ints";if(I8p == P$_){K0B.X$L(7);N$5[y$3]=K0B.t1w(z3h,h8Y);}else {K0B.O90(156);N$5[y$3]=K0B.t1w(z3h,1,h8Y,100);}}}I8T.outputMap={};I8T.outputMap[I8T.name + "_hist"]="";};p5b.Studies.studyLibrary=p5b.extend(p5b.Studies.studyLibrary,{"MA Env":{name:"Moving Average Envelope",overlay:!0,seriesFN:p5b.Studies.displayChannel,calculateFN:p5b.Studies.calculateMAEnvelope,inputs:{Period:50,Field:"field","Shift Type":["percent","points"],Shift:5,"Moving Average Type":R_1,"Channel Fill":!""},outputs:{"MA Env Top":"auto","MA Env Median":a$p,"MA Env Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}},"MA Dev":{name:"Moving Average Deviation",calculateFN:p5b.Studies.calculateMADev,seriesFN:p5b.Studies.displayHistogramWithSeries,inputs:{Period:12,Field:"field","Moving Average Type":r_R,"Points Or Percent":["Points","Percent"]},outputs:{"Increasing Bar":C4D,"Decreasing Bar":"#FF0000"}},"High Low":{name:O_O,overlay:!"",seriesFN:p5b.Studies.displayChannel,calculateFN:function(L2N,A$B){K0B.c7b();A$B.inputs["Moving Average Type"]="triangular";p5b.Studies.calculateMAEnvelope(L2N,A$B);},inputs:{Period:10,Field:"field","Shift Percentage":5,"Channel Fill":!!({})},outputs:{"High Low Top":"auto","High Low Median":g6m,"High Low Bottom":"auto"},attributes:{"Shift Percentage":{min:0.1,step:0.1}}}});}};l1=q1z=>{var K5y=g9BGt;var C8u,a_c,t9_;C8u="un";C8u+="d";K5y.c7b();C8u+="e";C8u+="fined";a_c=typeof _CIQ !== C8u?_CIQ:q1z.CIQ;if(!a_c.Studies){console.error("parabolicSAR feature requires first activating studies feature.");}else {t9_="Parabolic SA";t9_+="R";a_c.Studies.calculatePSAR=function(j8r,W6s){var F_Q,V3O,T8u,d_j,c3Y,w_N,d8T,e_S,s6a,P_i,d8u,M0v;F_Q="Maxi";F_Q+="mu";F_Q+="m AF";V3O=W6s.chart.scrubbed;T8u=0;d_j=null;K5y.Z_e();c3Y=!({});w_N=0;d8T=parseFloat(W6s.inputs["Minimum AF"]);e_S=parseFloat(W6s.inputs[F_Q]);if(W6s.startFrom > 0){K5y.X$L(7);var S29=K5y.D8z(9,10);w_N=V3O[W6s.startFrom - S29]["Result " + W6s.name];s6a=V3O[W6s.startFrom - ("1" | 0)]["_state " + W6s.name];if(s6a && s6a.length == "3" - 0){T8u=s6a[0];d_j=s6a[1];K5y.O90(7);c3Y=s6a[K5y.t1w(0,"2")];}}function H72(){T8u=0;d_j=null;c3Y=!c3Y;}for(var Y3H=W6s.startFrom - 1;Y3H < V3O.length - 1;Y3H++){if(Y3H < 0)continue;if(V3O[Y3H].futureTick)break;P_i=w_N;if(c3Y){if(!d_j || d_j < V3O[Y3H].High){d_j=V3O[Y3H].High;K5y.X$L(1);T8u=Math.min(K5y.D8z(T8u,d8T),e_S);}K5y.O90(157);w_N=K5y.D8z(T8u,d_j,P_i,P_i);d8u=Math.min(V3O[Math.max(1,Y3H) - 1].Low,V3O[Y3H].Low);if(w_N > V3O[Y3H + 1].Low){w_N=d_j;H72();}else if(w_N > d8u){w_N=d8u;}}else {if(!d_j || d_j > V3O[Y3H].Low){d_j=V3O[Y3H].Low;K5y.O90(1);T8u=Math.min(K5y.D8z(T8u,d8T),e_S);}K5y.X$L(157);w_N=K5y.D8z(T8u,d_j,P_i,P_i);M0v=Math.max(V3O[Math.max(1,Y3H) - 1].High,V3O[Y3H].High);if(w_N < V3O[Y3H + 1].High){w_N=d_j;H72();}else if(w_N < M0v){w_N=M0v;}}K5y.X$L(78);V3O[K5y.t1w(Y3H,"1")]["_state " + W6s.name]=[T8u,d_j,c3Y];if(!isNaN(V3O[Y3H].High) || !isNaN(V3O[Y3H].Low)){K5y.O90(1);V3O[K5y.D8z(Y3H,1)]["Result " + W6s.name]=w_N;}}};a_c.Studies.studyLibrary=a_c.extend(a_c.Studies.studyLibrary,{PSAR:{name:t9_,overlay:!!1,calculateFN:a_c.Studies.calculatePSAR,seriesFN:a_c.Studies.displayPSAR2,inputs:{"Minimum AF":0.02,"Maximum AF":0.2}}});}};i0=M5K=>{var K5f=g9BGt;var e3X,W_K,l_9,R_K,l0V,E6p,f5L;e3X="unde";K5f.Z_e();e3X+="fined";W_K=typeof _CIQ !== e3X?_CIQ:M5K.CIQ;if(!W_K.Studies){console.error("pivotPoints feature requires first activating studies feature.");}else {l_9="#";l_9+="f";l_9+="fd0";l_9+="cf";R_K="#e364";R_K+="60";l0V="#6";l0V+="99";l0V+="158";E6p="#b8";E6p+="2c0b";f5L="Piv";f5L+="ot ";f5L+="Points";W_K.Studies.calculatePivotPoints=function(u$b,H$$){var d03,u4$,s28,U0c,m6F,p17,j73,l$_,V6Z,c6$,B25,h9Y,G0M,B3D,X8H,L32,Y0y,t4H,w5W,a7_,A5R,b7J;d03="market.b";d03+="egi";d03+="nningDayOfWeek";u4$="seco";u4$+="n";u4$+="d";function Y6x(){K5f.Z_e();K5f.X$L(158);var l4o=K5f.t1w(10,14,20,49,11);K5f.X$L(159);var u2r=K5f.D8z(15,12,19,5,7);X8H.pivotPoint=(X8H.high + X8H.low + j73[f7J - l4o].Close) / u2r;X8H.prevHigh=X8H.high;X8H.prevLow=X8H.low;X8H.hlSpread=X8H.high - X8H.low;X8H.high=X8H.low=0;}K5f.Z_e();s28="y";s28+="ear";U0c="m";U0c+="on";U0c+="t";U0c+="h";m6F="d";m6F+="a";m6F+="y";p17="d";p17+="ay";j73=H$$.chart.scrubbed;l$_=p17;V6Z=u$b.layout.interval;c6$=u$b.layout.timeUnit;if(V6Z == m6F){l$_=U0c;}else if(W_K.ChartEngine.isDailyInterval(V6Z)){l$_=s28;}else if(V6Z == u4$ || V6Z == "millisecond" || c6$ == "second" || c6$ == "millisecond"){l$_="15min";}else {B25="w";B25+="e";B25+="e";B25+="k";h9Y=u$b.layout.periodicity;if(V6Z != "minute"){h9Y*=V6Z;}if(h9Y >= 30){l$_=B25;}}G0M=null;K5f.O90(36);var u6u=K5f.t1w(6,46,10,7,14);B3D=u6u - W_K.getFromNS(u$b.chart,d03,0);X8H={pivotPoint:NaN,high:0,low:0,prevHigh:0,prevLow:0,hlSpread:"0" ^ 0};if(H$$.startFrom > 1 && j73[H$$.startFrom - 1]["_pointers " + H$$.name]){X8H=W_K.clone(j73[H$$.startFrom - +"1"]["_pointers " + H$$.name]);}for(var f7J=Math.max(1,H$$.startFrom);f7J < j73.length;f7J++){L32="_";L32+="pointers ";Y0y="15mi";Y0y+="n";t4H="w";t4H+="e";t4H+="e";t4H+="k";w5W="m";w5W+="o";w5W+="nt";w5W+="h";if(!j73[f7J - 1])continue;X8H.high=Math.max(X8H.high,j73[f7J - 1].High);X8H.low=Math.min(X8H.low > ("0" ^ 0)?X8H.low:j73[f7J - 1].Low,j73[f7J - 1].Low);if(H$$.inputs.Continuous){Y6x();}else if(l$_ == "year" && j73[f7J].DT.getYear() != j73[f7J - 1].DT.getYear()){Y6x();}else if(l$_ == w5W && j73[f7J].DT.getMonth() != j73[f7J - 1].DT.getMonth()){Y6x();}else if(l$_ == t4H && (j73[f7J].DT.getDay() + B3D) % ("7" - 0) < (j73[f7J - 1].DT.getDay() + B3D) % 7){Y6x();}else if(l$_ == "day"){if(G0M === null){G0M=W_K.Studies.getMarketOffset({stx:u$b,localQuoteDate:j73[f7J].DT,shiftToDateBoundary:!!({})});}a7_=new Date(new Date(+j73[f7J].DT).setMilliseconds(j73[f7J].DT.getMilliseconds() + G0M));A5R=new Date(new Date(+j73[f7J - +"1"].DT).setMilliseconds(j73[f7J - 1].DT.getMilliseconds() + G0M));if(A5R.getDate() !== a7_.getDate() && A5R.getDay() !== "0" - 0 && u$b.chart.market.isMarketDate(a7_)){G0M=null;Y6x();}}else if(l$_ == Y0y && (j73[f7J].DT.getHours() != j73[f7J - 1].DT.getHours() || Math.floor(j73[f7J].DT.getMinutes() / 15) != Math.floor(j73[f7J - 1].DT.getMinutes() / ("15" << 64)))){Y6x();}j73[f7J]["Pivot " + H$$.name]=X8H.pivotPoint;if(H$$.inputs.Type.toLowerCase() == "fibonacci"){j73[f7J]["Resistance 1 " + H$$.name]=X8H.pivotPoint + 0.382 * X8H.hlSpread;j73[f7J]["Resistance 2 " + H$$.name]=X8H.pivotPoint + 0.618 * X8H.hlSpread;j73[f7J]["Resistance 3 " + H$$.name]=X8H.pivotPoint + X8H.hlSpread;j73[f7J]["Support 1 " + H$$.name]=X8H.pivotPoint - 0.382 * X8H.hlSpread;j73[f7J]["Support 2 " + H$$.name]=X8H.pivotPoint - +"0.618" * X8H.hlSpread;j73[f7J]["Support 3 " + H$$.name]=X8H.pivotPoint - X8H.hlSpread;}else {b7J="Suppo";b7J+="rt ";b7J+="1 ";K5f.X$L(160);var K_z=K5f.t1w(7,16,6,8,19);j73[f7J]["Resistance 1 " + H$$.name]=K_z * X8H.pivotPoint - X8H.prevLow;j73[f7J]["Resistance 2 " + H$$.name]=X8H.pivotPoint + X8H.hlSpread;K5f.O90(62);var K7i=K5f.t1w(1,16,1,11,17);j73[f7J]["Resistance 3 " + H$$.name]=X8H.prevHigh + K7i * (X8H.pivotPoint - X8H.prevLow);K5f.X$L(161);var Y9H=K5f.t1w(0,258,16,20,12);j73[f7J][b7J + H$$.name]=Y9H * X8H.pivotPoint - X8H.prevHigh;j73[f7J]["Support 2 " + H$$.name]=X8H.pivotPoint - X8H.hlSpread;K5f.O90(9);var g6e=K5f.D8z(10,8,0);j73[f7J]["Support 3 " + H$$.name]=X8H.prevLow - g6e * (X8H.prevHigh - X8H.pivotPoint);}j73[f7J][L32 + H$$.name]=W_K.clone(X8H);}};W_K.Studies.displayPivotPoints=function(a5l,S8v,U8h){var O_q,g4h,s5V,J9J,U6M,t0v,c8K,F38,w$e;S8v.noSlopes=!S8v.inputs.Continuous;W_K.Studies.displaySeriesAsLine(a5l,S8v,U8h);K5f.Z_e();if(S8v.inputs.Shading){O_q="Su";O_q+="pport 3";g4h="Suppor";g4h+="t";g4h+=" ";g4h+="2";s5V="S";s5V+="upport ";s5V+="2 ";J9J="S";J9J+="upport 1 ";U6M="P";U6M+="iv";U6M+="ot ";t0v="Re";t0v+="sistance";t0v+=" 1 ";c8K="R";c8K+="e";c8K+="sista";c8K+="nce 3";F38=a5l.panels[S8v.panel];w$e={noSlopes:S8v.noSlopes,opacity:S8v.parameters.opacity?S8v.parameters.opacity:0.2,skipTransform:F38.name != S8v.chart.name,yAxis:S8v.getYAxis(a5l)};if(!S8v.highlight && a5l.highlightedDraggable){w$e.opacity*=0.3;}W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:"Resistance 3 " + S8v.name,bottomBand:"Resistance 2 " + S8v.name,color:W_K.Studies.determineColor(S8v.outputs[c8K])},w$e));W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:"Resistance 2 " + S8v.name,bottomBand:"Resistance 1 " + S8v.name,color:W_K.Studies.determineColor(S8v.outputs["Resistance 2"])},w$e));W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:t0v + S8v.name,bottomBand:U6M + S8v.name,color:W_K.Studies.determineColor(S8v.outputs["Resistance 1"])},w$e));W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:J9J + S8v.name,bottomBand:"Pivot " + S8v.name,color:W_K.Studies.determineColor(S8v.outputs["Support 1"])},w$e));W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:s5V + S8v.name,bottomBand:"Support 1 " + S8v.name,color:W_K.Studies.determineColor(S8v.outputs[g4h])},w$e));W_K.prepareChannelFill(a5l,W_K.extend({panelName:S8v.panel,topBand:"Support 3 " + S8v.name,bottomBand:"Support 2 " + S8v.name,color:W_K.Studies.determineColor(S8v.outputs[O_q])},w$e));}};W_K.Studies.studyLibrary=W_K.extend(W_K.Studies.studyLibrary,{"Pivot Points":{name:f5L,overlay:!!1,seriesFN:W_K.Studies.displayPivotPoints,calculateFN:W_K.Studies.calculatePivotPoints,inputs:{Type:["standard","fibonacci"],Continuous:!!"",Shading:!"1"},outputs:{Pivot:"auto","Resistance 1":E6p,"Support 1":l0V,"Resistance 2":R_K,"Support 2":"#b3d987","Resistance 3":l_9,"Support 3":"#d3e8ae"},parameters:{init:{opacity:0.2}}}});}};P4=x3z=>{var F0f,t$$,w3S;F0f="undef";F0f+="ined";t$$=typeof _CIQ !== F0f?_CIQ:x3z.CIQ;if(!t$$.Studies){w3S="prettyGoodOscillator feature requires";w3S+=" first activating";w3S+=" st";w3S+="udies feature.";console.error(w3S);}else {t$$.Studies.calculatePrettyGoodOscillator=function(P$h,h5m){var N$z,M2c,O8Z,m_e,k8o,E_D,H7L,M2X,Y_u,Y9C;N$z="Clo";N$z+="s";N$z+="e";M2c="true";M2c+="Ran";M2c+="ge";O8Z=-955189193;m_e=1998956716;k8o=2;for(var h3G=1;g9BGt.i7j(h3G.toString(),h3G.toString().length,74803) !== O8Z;h3G++){E_D=h5m.chart.scrubbed;k8o+=2;}if(g9BGt.l9L(k8o.toString(),k8o.toString().length,10834) !== m_e){E_D=h5m.chart.scrubbed;}if(E_D.length < h5m.days + 1){h5m.error=!!({});return;}t$$.Studies.MA("exponential",h5m.days,M2c,0,"_EMA",P$h,h5m);t$$.Studies.MA("simple",h5m.days,N$z,0,"_SMA",P$h,h5m);for(var R0O=Math.max(1,h5m.startFrom);R0O < E_D.length;R0O++){H7L="_";H7L+="E";H7L+="M";H7L+="A ";M2X="R";M2X+="esult";M2X+=" ";Y_u="_";Y_u+="E";Y_u+="MA";Y_u+=" ";Y9C="_";Y9C+="SMA ";if(!E_D[R0O][Y9C + h5m.name] || !E_D[R0O][Y_u + h5m.name])continue;E_D[R0O][M2X + h5m.name]=(E_D[R0O].Close - E_D[R0O]["_SMA " + h5m.name]) / E_D[R0O][H7L + h5m.name];}};t$$.Studies.studyLibrary=t$$.extend(t$$.Studies.studyLibrary,{"Pretty Good":{name:"Pretty Good Oscillator",calculateFN:t$$.Studies.calculatePrettyGoodOscillator,parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:+"3",studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:"auto"}}}});}};i9=B_z=>{var w8B=g9BGt;var R8H,f4f,Y77,q_e,F$u;R8H="undef";R8H+="ined";f4f=typeof _CIQ !== R8H?_CIQ:B_z.CIQ;w8B.Z_e();if(!f4f.Studies){Y77="priceMomentumOscillator feature requires first activating ";Y77+="studies feature.";console.error(Y77);}else {q_e="0";q_e+=".05";F$u="Price Moment";F$u+="um Os";F$u+="c";F$u+="illator";f4f.Studies.calculatePMO=function(C3s,g4J){var z8_,W7R,v5N,v$L,i7k,A1j,w6H,J$L,o2R;w8B.Z_e();z8_="exp";z8_+="onent";z8_+="ial";W7R="_R";W7R+="OCx";W7R+="10 ";v5N="Signal";v5N+=" Period";v$L="Dou";v$L+="ble Smoothin";v$L+="g Period";i7k={Smooth:Number(g4J.inputs["Smoothing Period"]) - 1,Double:Number(g4J.inputs[v$L]) - 1,Signal:Number(g4J.inputs[v5N])};A1j=g4J.chart.scrubbed;if(A1j.length < i7k.Smooth + i7k.Double){g4J.error=!!({});return;}w6H=g4J.inputs.Field;if(!w6H || w6H == "field"){w6H="Close";}for(J$L=g4J.startFrom;J$L < A1j.length;J$L++){if(!A1j[J$L])continue;if(!A1j[J$L - 1])continue;w8B.X$L(7);o2R=A1j[w8B.t1w(1,J$L)][w6H];if(o2R){w8B.X$L(68);var c5C=w8B.t1w(4,3,997,10);w8B.X$L(7);var v7M=w8B.D8z(8,9);A1j[J$L]["_ROCx10 " + g4J.name]=c5C * (A1j[J$L][w6H] / o2R - v7M);}}f4f.Studies.MA("exponential",i7k.Smooth,W7R + g4J.name,0,"_EMAx10",C3s,g4J);f4f.Studies.MA("exponential",i7k.Double,"_EMAx10 " + g4J.name,0,"PMO",C3s,g4J);f4f.Studies.MA(z8_,i7k.Signal,"PMO " + g4J.name,0,"PMOSignal",C3s,g4J);g4J.zoneOutput="PMO";};f4f.Studies.studyLibrary=f4f.extend(f4f.Studies.studyLibrary,{PMO:{name:F$u,calculateFN:f4f.Studies.calculatePMO,inputs:{Field:"field","Smoothing Period":35,"Double Smoothing Period":20,"Signal Period":10},outputs:{PMO:"auto",PMOSignal:"#FF0000"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:2.5,studyOverBoughtColor:"auto",studyOverSoldValue:-2.5,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:0,step:q_e},studyOverSoldValue:{max:0,step:"0.05"}}}});}};e1=q01=>{var z$U=g9BGt;var L7B,g$i,V8a,B1W,x1D,e64;z$U.Z_e();L7B=typeof _CIQ !== "undefined"?_CIQ:q01.CIQ;if(!L7B.Studies){console.error("priceVolumeOscillator feature requires first activating studies feature.");}else {g$i="a";g$i+="ut";g$i+="o";V8a="#";V8a+="F";V8a+="F0";V8a+="000";B1W="v";B1W+="d";B1W+="m";B1W+="a";x1D="Per";x1D+="cen";x1D+="t";e64="Poin";e64+="ts";L7B.Studies.calculatePriceOscillator=function(B6G,h1M){var B3Z,L1I,w2q,g7T,I_m,B7J,g3Z,g0H,r7h,v$9,X0Q,k2w,G2r,n09,G$B,X_p,L4V;B3Z="_Short M";B3Z+="A";L1I="Points";L1I+=" Or Percent";w2q="s";w2q+="imple";g7T="Mov";g7T+="ing Avera";g7T+="ge Type";I_m=h1M.chart.scrubbed;B7J=Number(h1M.inputs["Short Cycle"]);g3Z=Number(h1M.inputs["Long Cycle"]);if(I_m.length < Math.max(B7J,g3Z) + +"1"){h1M.error=!!({});return;}g0H=h1M.inputs.Field;r7h=h1M.inputs[g7T];if(!r7h){r7h=w2q;}if(!g0H || g0H == "field"){g0H="Close";}if(h1M.parameters.isVolume){g0H="Volume";r7h="exponential";}v$9=h1M.inputs[L1I];if(!v$9){v$9="Percent";}L7B.Studies.MA(r7h,B7J,g0H,+"0",B3Z,B6G,h1M);L7B.Studies.MA(r7h,g3Z,g0H,0,"_Long MA",B6G,h1M);for(var L3f=Math.max(g3Z,h1M.startFrom);L3f < I_m.length;L3f++){X0Q="_";X0Q+="Sh";X0Q+="ort MA ";k2w=I_m[L3f];if(!k2w)continue;G2r=k2w[X0Q + h1M.name];n09=k2w["_Long MA " + h1M.name];if((G2r || G2r === "0" << 32) && (n09 || n09 === 0)){G$B="Increasing ";G$B+="Bar";if(v$9 == "Points"){z$U.O90(7);k2w["Result " + h1M.name]=z$U.D8z(n09,G2r);}else {z$U.X$L(156);k2w["Result " + h1M.name]=z$U.t1w(n09,1,G2r,100);}if(h1M.outputs[G$B]){X_p="Res";X_p+="ul";X_p+="t ";L4V="_h";L4V+="i";L4V+="s";L4V+="t";k2w[h1M.name + L4V]=k2w[X_p + h1M.name];h1M.outputMap={};h1M.outputMap[h1M.name + "_hist"]="";}}}};L7B.Studies.displayRAVI=function(W80,I8g,D92){var e6w,e3K,N6S,i4r,F_j,u93,d_u,Q3U,I8S,b$n,c7Z,J$a,g7R,j3a,U3d,Z1k;e6w="stx";e6w+="_hi";e6w+="sto";e6w+="gram";e3K="Decrea";e3K+="s";e3K+="ing B";e3K+="ar";N6S=W80.panels[I8g.panel];i4r=I8g.getContext(W80);F_j=I8g.getYAxis(W80);u93=W80.pixelFromPrice(0,N6S,F_j);z$U.O90(5);var d5O=z$U.D8z(9,27,20);d_u=W80.layout.candleWidth - d5O;if(d_u < 2){d_u=1;}Q3U=L7B.Studies.determineColor(I8g.outputs["Increasing Bar"]);I8S=L7B.Studies.determineColor(I8g.outputs[e3K]);W80.startClip(I8g.panel);W80.canvasColor(e6w);z$U.c7b();if(!I8g.underlay){i4r.globalAlpha=1;}if(!I8g.highlight && W80.highlightedDraggable){i4r.globalAlpha*=0.3;}for(var x$i=0;x$i < D92.length;x$i++){b$n="#CCC";b$n+="CCC";c7Z="_";c7Z+="h";c7Z+="is";c7Z+="t";J$a="_";J$a+="h";J$a+="is";J$a+="t";g7R=D92[x$i];z$U.O90(108);j3a=D92[z$U.D8z(0,"1",x$i)];if(!j3a){j3a=W80.getPreviousBar(W80.chart,I8g.name + "_hist",x$i);}if(!g7R)continue;U3d=0;Z1k=0;if(I8g.parameters && I8g.parameters.studyOverZonesEnabled){U3d=parseFloat(I8g.parameters.studyOverBoughtValue);Z1k=parseFloat(I8g.parameters.studyOverSoldValue);}if(!j3a){i4r.fillStyle="#CCCCCC";}else if(g7R[I8g.name + "_hist"] > U3d && j3a[I8g.name + "_hist"] < g7R[I8g.name + "_hist"]){i4r.fillStyle=Q3U;}else if(g7R[I8g.name + J$a] < Z1k && j3a[I8g.name + "_hist"] > g7R[I8g.name + c7Z]){i4r.fillStyle=I8S;}else {i4r.fillStyle=b$n;}if(g7R.candleWidth){d_u=Math.floor(Math.max(1,g7R.candleWidth - 2));}i4r.fillRect(Math.floor(W80.pixelFromBar(x$i,N6S.chart) - d_u / ("2" << 0)),Math.floor(u93),Math.floor(d_u),Math.floor(W80.pixelFromPrice(g7R[I8g.name + "_hist"],N6S,F_j) - u93));}W80.endClip();};L7B.Studies.studyLibrary=L7B.extend(L7B.Studies.studyLibrary,{"Price Osc":{name:"Price Oscillator",calculateFN:L7B.Studies.calculatePriceOscillator,inputs:{Field:"field","Short Cycle":12,"Long Cycle":26,"Moving Average Type":"ema","Points Or Percent":[e64,"Percent"]}},"Vol Osc":{name:"Volume Oscillator",calculateFN:L7B.Studies.calculatePriceOscillator,inputs:{"Short Cycle":12,"Long Cycle":26,"Points Or Percent":["Points",x1D]},parameters:{init:{isVolume:!""}}},RAVI:{name:"RAVI",seriesFN:L7B.Studies.displayRAVI,calculateFN:L7B.Studies.calculatePriceOscillator,inputs:{Field:"field","Moving Average Type":B1W,"Short Cycle":7,"Long Cycle":"65" << 0},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":V8a},centerline:0,parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:3,studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:g$i}},attributes:{studyOverBoughtValue:{min:0,step:"0.1"},studyOverSoldValue:{max:0,step:"0.1"}}}});}};Y0=H3X=>{var F_d=g9BGt;var T8I,Z1D;T8I=typeof _CIQ !== "undefined"?_CIQ:H3X.CIQ;F_d.Z_e();if(!T8I.Studies){console.error("primeNumber feature requires first activating studies feature.");}else {Z1D="au";Z1D+="t";Z1D+="o";T8I.Studies.calculatePrimeNumber=function(Q6j,G84){var E2O,f8p,U6T,n4a,P08,q0E,Z3t,p8U,l0m,d1C,N1F;E2O=[];f8p=G84.chart.scrubbed;for(var a0B=G84.startFrom;a0B < f8p.length;a0B++){U6T=f8p[a0B];if(!U6T)continue;n4a=U6T.High;if(!isNaN(n4a)){for(var u$w=0;n4a > 0 && n4a <= 10;u$w++){n4a*=+"10";}if(K$q(n4a)){n4a+=2;}n4a=Math.ceil(n4a);if(n4a % 2 === 0){n4a++;}while(!K$q(n4a)){n4a+=2;}n4a/=Math.pow(10,u$w);}P08=U6T.Low;if(!isNaN(P08)){for(var o16=0;P08 > 0 && P08 <= 10;o16++){P08*=10;}if(K$q(P08)){F_d.O90(8);P08-=F_d.t1w(1,"2");}P08=Math.floor(P08);if(P08 % 2 === 0){P08--;}if(P08 > 0){while(!K$q(P08)){F_d.X$L(3);P08-=F_d.t1w(0,"2");}P08/=Math.pow(10,o16);}}if(G84.type == "Prime Number Bands"){q0E="Pri";q0E+="me Bands Bottom ";if(!isNaN(n4a)){U6T["Prime Bands Top " + G84.name]=n4a;}if(!isNaN(P08)){U6T[q0E + G84.name]=Math.max(0,P08);}}else {Z3t="Re";Z3t+="s";Z3t+="ul";Z3t+="t ";p8U="Tolerance Perc";p8U+="entage";l0m=0;F_d.X$L(9);var P_T=F_d.D8z(11,15,104);d1C=G84.inputs[p8U] * (n4a - P08) / P_T;F_d.O90(6);var q78=F_d.t1w(13,1,17,3);N1F=n4a + P08 - q78 * U6T.Close;if(N1F < d1C){l0m=1;}else if(N1F > d1C){l0m=-+"1";}if(l0m){U6T[Z3t + G84.name]=l0m;}}}function K$q(Z89){var P2E;if(Z89 <= 0){return ![];}else if(Z89 != Math.floor(Z89)){return !1;}else if(E2O[Z89] === !!"1" || E2O[Z89] === !1){return E2O[Z89];}F_d.Z_e();P2E=parseInt(Math.sqrt(Z89),10);for(var l_g=2;l_g <= P2E;l_g++){if(Z89 % l_g === 0){E2O[Z89]=!({});return ![];}}E2O[Z89]=!0;return !!"1";}};T8I.Studies.studyLibrary=T8I.extend(T8I.Studies.studyLibrary,{"Prime Number":{name:"Prime Number Oscillator",range:"-1 to 1",calculateFN:T8I.Studies.calculatePrimeNumber,centerline:0,inputs:{"Tolerance Percentage":5},attributes:{"Tolerance Percentage":{min:0.1,step:0.1}}},"Prime Number Bands":{name:"Prime Number Bands",overlay:!!({}),calculateFN:T8I.Studies.calculatePrimeNumber,seriesFN:T8I.Studies.displayChannel,inputs:{"Channel Fill":!![]},outputs:{"Prime Bands Top":"auto","Prime Bands Bottom":Z1D,"Prime Bands Channel":"auto"}}});}};e3=n$R=>{var w35,F7S,A1Y;w35=typeof _CIQ !== "undefined"?_CIQ:n$R.CIQ;if(!w35.Studies){console.error("pring feature requires first activating studies feature.");}else {F7S="w";F7S+="eek";F7S+="ly";A1Y="#00DD0";A1Y+="0";w35.Studies.calculateKST=function(Z66,G9_){var B6j=g9BGt;var s8u,y$R,X6h,o2Q,N8Y,E0L,C2d,i4X,c4S,n4u,N6T,E3u,W$D,i48;s8u="K";s8u+="STSigna";s8u+="l";y$R="Heaviest R";y$R+="ate of Change";y$R+=" Period";X6h="fie";X6h+="l";X6h+="d";o2Q=G9_.chart.scrubbed;N8Y=G9_.inputs.Field;if(!N8Y || N8Y == X6h){N8Y="Close";}E0L={};C2d={};E0L[1]=Number(G9_.inputs["Lightest Rate of Change Period"]);E0L[2]=Number(G9_.inputs["Light Rate of Change Period"]);E0L[3]=Number(G9_.inputs["Heavy Rate of Change Period"]);E0L[+"4"]=Number(G9_.inputs[y$R]);C2d[1]=Number(G9_.inputs["Lightest SMA Period"]);C2d[+"2"]=Number(G9_.inputs["Light SMA Period"]);C2d[+"3"]=Number(G9_.inputs["Heavy SMA Period"]);B6j.O90(35);C2d[B6j.t1w(32,"4")]=Number(G9_.inputs["Heaviest SMA Period"]);i4X=Number(G9_.inputs["Signal Period"]);for(c4S=G9_.startFrom;c4S < o2Q.length;c4S++){if(!o2Q[c4S])continue;for(n4u=1;n4u <= 4;n4u++){N6T="_";N6T+="RO";N6T+="C";if(c4S >= E0L[n4u] && o2Q[c4S - E0L[n4u]] && o2Q[c4S - E0L[n4u]][N8Y]){B6j.O90(22);var d2j=B6j.t1w(13,118950,19,18,111070);B6j.X$L(5);var l7H=B6j.t1w(5269,0,19);B6j.X$L(162);var G$m=B6j.D8z(5631,8,5639,5633);B6j.X$L(68);var h6e=B6j.t1w(15,4,6853,16);B6j.X$L(163);var F2K=B6j.D8z(14,107380,8,8,6864956);B6j.O90(1);var B8d=B6j.t1w(488,3413);B6j.X$L(5);var L3R=B6j.t1w(102,11,9);B6j.O90(164);var B7R=B6j.D8z(14,19,265,1,1);o2Q[c4S][N6T + n4u + (980.06 < 491.44?d2j:(+"197.37",l7H) > (G$m,+"6141")?(h6e,F2K) != (B8d,+"1750")?"S":!"":" ") + G9_.name]=L3R * (o2Q[c4S][N8Y] / o2Q[c4S - E0L[n4u]][N8Y] - B7R);}}}for(n4u=1;n4u <= 4;n4u++){w35.Studies.MA("simple",C2d[n4u],"_ROC" + n4u + " " + G9_.name,"0" - 0,"_SMA" + n4u,Z66,G9_);}for(c4S=G9_.startFrom;c4S < o2Q.length;c4S++){E3u="KST";E3u+=" ";o2Q[c4S][E3u + G9_.name]=null;for(n4u=1;n4u <= 4;n4u++){W$D="KS";W$D+="T ";B6j.X$L(113);var P7b=B6j.D8z(4,19,644,4483);B6j.O90(142);var U_o=B6j.D8z(14,9,14,6871);B6j.X$L(165);var B6d=B6j.D8z(5308,14,5951,2,9);B6j.X$L(7);var Q3d=B6j.t1w(8964,9960);B6j.X$L(77);var d4o=B6j.D8z(7877,7877,7879);B6j.O90(1);var C1A=B6j.D8z(782,14);B6j.O90(7);var e6p=B6j.t1w(100320,109440);B6j.O90(95);var K$U=B6j.D8z(143,2417,10);B6j.X$L(63);var V_a=B6j.t1w(1390,13,196003,13,11);i48=o2Q[c4S]["_SMA" + n4u + (P7b != (+"294.82",U_o)?(B6d,Q3d) !== 242.47?d4o != (C1A,e6p)?" ":("G",!!({})):(K$U,!""):V_a) + G9_.name];if(i48 || i48 === 0){B6j.O90(8);o2Q[c4S][W$D + G9_.name]+=B6j.D8z(i48,n4u);}}}w35.Studies.MA("simple",i4X,"KST " + G9_.name,0,s8u,Z66,G9_);};w35.Studies.calculateSpecialK=function(A52,k7q){var s3t=g9BGt;var f2D,Z$l,I$O,A1z,A6s,g62,O7y,K5D,d6Z,C1S,n3x;f2D="Clo";f2D+="se";Z$l=k7q.chart.scrubbed;I$O=k7q.inputs.Field;if(!I$O || I$O == "field"){I$O=f2D;}A1z=k7q.inputs.Interval;if(!A1z){A1z="daily";}A6s={daily:[10,15,20,30,50,65,75,"100" >> 32,195,265,390,+"530"],weekly:[4,5,"6" << 64,8,10,+"13",15,20,39,52,+"78",104]};g62={daily:[10,10,+"10",15,50,65,+"75",100,130,130,130,195],weekly:[4,5,6,8,10,13,15,20,26,26,+"26",39]};for(O7y=k7q.startFrom;O7y < Z$l.length;O7y++){if(!Z$l[O7y])continue;for(K5D=0;K5D < A6s[A1z].length;K5D++){if(O7y >= A6s[A1z][K5D] && Z$l[O7y - A6s[A1z][K5D]] && Z$l[O7y - A6s[A1z][K5D]][I$O]){s3t.X$L(7);var F22=s3t.D8z(3,103);s3t.O90(166);var c_6=s3t.t1w(13,146,3,15,5);Z$l[O7y]["_ROC" + K5D + " " + k7q.name]=F22 * (Z$l[O7y][I$O] / Z$l[O7y - A6s[A1z][K5D]][I$O] - c_6);}}}for(K5D=0;K5D < g62[A1z].length;K5D++){d6Z="_R";d6Z+="O";d6Z+="C";w35.Studies.MA(A1z == "daily"?"simple":"exponential",g62[A1z][K5D],d6Z + K5D + ((347,8880) === 587.19?"I":8364 === 2753?802.44:+"8050" == 935.18?(+"1.72e+3",696.41):" ") + k7q.name,0,"_MA" + K5D,A52,k7q);}for(O7y=k7q.startFrom;O7y < Z$l.length;O7y++){Z$l[O7y]["Result " + k7q.name]=null;for(K5D="0" - 0;K5D < g62[A1z].length;K5D++){C1S="_";C1S+="MA";s3t.O90(120);var P$Q=s3t.D8z(775,5,6977,155);s3t.O90(77);var k6p=s3t.t1w(33552,16776,8386);s3t.X$L(36);var e7k=s3t.D8z(15,69241,4944,17,11);s3t.O90(68);var V_5=s3t.D8z(17,2,519,5);n3x=Z$l[O7y][C1S + K5D + ((P$Q,k6p) <= (191.24,e7k)?("E",V_5):" ") + k7q.name];if(n3x || n3x === 0){s3t.O90(167);Z$l[O7y]["Result " + k7q.name]+=s3t.t1w(1,n3x,K5D,4);}}}};w35.Studies.studyLibrary=w35.extend(w35.Studies.studyLibrary,{"Pring KST":{name:"Pring's Know Sure Thing",calculateFN:w35.Studies.calculateKST,inputs:{Field:"field","Lightest Rate of Change Period":"10" >> 64,"Lightest SMA Period":10,"Light Rate of Change Period":15,"Light SMA Period":10,"Heavy Rate of Change Period":20,"Heavy SMA Period":10,"Heaviest Rate of Change Period":30,"Heaviest SMA Period":15,"Signal Period":"9" << 64},outputs:{KST:A1Y,KSTSignal:"#FF0000"}},"Pring Sp-K":{name:"Pring's Special K",calculateFN:w35.Studies.calculateSpecialK,inputs:{Field:"field",Interval:["daily",F7S]}}});}};U7=A2S=>{var N2u,J_p,y13,d92,K$d,h46,m$v,q3q,Q6t,a4j,g0w,c_Z,T2m,P4y;N2u=typeof _CIQ !== "undefined"?_CIQ:A2S.CIQ;J_p=typeof _timezoneJS !== "undefined"?_timezoneJS:A2S.timezoneJS;if(!N2u.Studies){y13="projectedVolume feature requi";y13+="res first activating studies feature.";console.error(y13);}else if(!N2u.Studies.studyLibrary.PVAT){d92="st";d92+="e";d92+="p";K$d="#fe6";K$d+="41c";h46="Pro";h46+="jected ";h46+="Aggregat";h46+="e Volume";m$v="+";m$v+="50%";q3q="hh:";q3q+="mm:ss";Q6t="s";Q6t+="te";Q6t+="p";a4j="#";a4j+="fe641c";g0w="-";g0w+="5";g0w+="0";g0w+="%";c_Z="+25";c_Z+="%";T2m="+5";T2m+="0%";P4y="0";P4y+=" t";P4y+="o m";P4y+="ax";N2u.Studies.initProjectedVolume=function(J1d,w30,Y2b,Y78,x_D,s4L){var V2o,X4R,z7y;V2o="Anc";V2o+="hor";V2o+=" Time";var {market:P7H}=J1d.chart;X4R="00:00";if(P7H){X4R=P7H.getNormalOpen();}if(X4R.match(/^[\d]{2}:[\d]{2}$/)){X4R+=":00";}if(!Y2b["Anchor Time"] || !Y2b[V2o].length){Y2b["Anchor Time"]=X4R;}z7y=N2u.Studies.initializeFN(J1d,w30,Y2b,Y78,x_D,s4L);if(!J1d.currentlyImporting){z7y.defaultAnchorTime=X4R;}return z7y;};N2u.Studies.validateProjectedVolumeLookback=function(o0K,v7y){var {interval:f3V, periodicity:o6Y}=o0K.layout;g9BGt.Z_e();var {"Lookback Days":p15}=v7y.inputs;g9BGt.O90(168);return g9BGt.D8z(f3V,p15,10,o6Y);};N2u.Studies.calculateProjectedVolume=function(J9a,O4y){var N1m=g9BGt;var K9N,I72,L2Z,Z$F,O2S,X1Z,b76,R$p,L54,e$U,G54,p$Z,J_P,N8n,x7Q,o88,p1f,E1i,b1Q,A4U,K9Y,J_f,G2Z,a_m,B_h,c3w,B1R,I7X,I7c,I0C,U7p,Y_0,L$m,P5m,l4E,z2$,E3y,y_h,Z97,W7M,V94,Z4p,T39,N5L,f15,C9m,w_H,J8j,a4x,E1T,F01,K62;K9N=":";K9N+="0";K9N+="0";I72="Anch";I72+="or Sele";I72+="ct";I72+="or";L2Z="hei";L2Z+="kina";L2Z+="shi";Z$F="o";Z$F+="hl";Z$F+="c";O2S="mi";O2S+="nut";O2S+="e";function s1d(B7A,e2r,z6Z){while(e2r){B7A=new Date(new Date(B7A).setDate(B7A.getDate() + (z6Z?+"1":-("1" * 1))));if(Q7t.isMarketDate(B7A)){e2r--;}}return B7A;}var {interval:R2a, timeUnit:t72, aggregationType:b3C}=J9a.layout;var {symbol:l7r, scroll:s5O, scrubbed:D2D, market:Q7t}=J9a.chart;X1Z=O4y.type === "PAV";b76=O4y.study?O4y.study.name:O4y.type;if(N2u.ChartEngine.isDailyInterval(R2a)){O4y.error=`${b76} is Intraday Only`;}else if(t72 === "tick"){N1m.O90(1);O4y.error=`${N1m.t1w("Tick mode not supported fo","r ")}${b76}`;}else if(t72 !== O2S){O4y.error=`Sub-minute periodicities not supported for ${b76}`;}else if(!b3C || ![Z$F,L2Z].includes(b3C)){O4y.error=`Aggregation type not supported for ${b76}`;}else if(!N2u.Studies.validateProjectedVolumeLookback(J9a,O4y)){O4y.error=`Selected lookback/periodicity combo not supported for ${b76}`;}if(O4y.error){return;}function M$V(i8r){return J9a.dateFromTick(i8r,null,!!({}),"scrubbed");}if(O4y.inputs[I72]){N2u.Studies.initAnchorHandle(J9a,O4y);}else {N2u.Studies.removeAnchorHandle(J9a,O4y);}R$p=Q7t?Q7t.getNormalOpen():"00:00";function H9E(r2c){console.error(`Expected data for ${M$V(r2c).toDateString()} but found none. This may be caused by gaps in your data or an improperly configured market definition.`);}if(R$p.match(/^[\d]{2}:[\d]{2}$/)){R$p+=K9N;}if(!J9a.currentlyImporting){if(!O4y.defaultAnchorTime){O4y.defaultAnchorTime=R$p;}else if(R$p !== O4y.defaultAnchorTime){O4y.defaultAnchorTime=R$p;O4y.inputs["Anchor Time"]=R$p;N2u.Studies.repositionAnchor(J9a,O4y);return;}}var {"Lookback Days":r$p, "Anchor Time":h8_}=O4y.inputs;N1m.O90(8);var [l_o,L9o,S7c = g9BGt.t1w(1,"0")]=h8_.split(":");L54=N2u.getFn("Market.Symbology.isForexSymbol")(l7r);e$U=O4y.getDependents(J9a);N1m.X$L(35);G54=N1m.D8z(64,"0");p$Z=[];e$U.forEach(({inputs:f$N, outputMap:j6O})=>{N1m.Z_e();if(f$N.Period){G54=Math.max(parseInt(f$N.Period),G54);p$Z.push(...Object.keys(j6O));}});O4y.dependentsOutputMap=p$Z;N8n=A8Q(D2D.length - 1,!0);x7Q=Math.ceil(D2D.length - 1 - s5O);N1m.X$L(7);o88=A8Q(N1m.t1w(G54,x7Q));if(L54 && D2D[o88] && N2u.dateToStr(D2D[o88].DT,"HH:mm") !== R$p){N1m.X$L(7);o88=A8Q(N1m.t1w(1,o88));;}if(!L54 && O4y.startFrom > o88 && D2D[o88] && D2D[o88]["V " + O4y.name] !== undefined && p$Z.every(w9B=>{N1m.c7b();return ![undefined,null].includes(D2D[o88][w9B]);}) && N8n !== !({})){J_P=N8n;;}else {J_P=o88;}function A8Q(N3Q,B_A){var Z79,Q2h,Y0r;Z79=M$V(N3Q);Q2h=Q7t.getOpen(Z79) || V7O(Z79);Y0r=l10(Q2h);if(!B_A){return Y0r;}if(Y0r < 0){Y0r=l10(s1d(Q2h,1,!""));}if(Y0r >= D2D.length){return ![];}return Y0r;}function B7j(R8b){return {hours:R8b.getHours(),minutes:R8b.getMinutes()};}p1f=s1d(M$V(o88),r$p);p1f.setHours(0,+"0",0);E1i=A8Q(0,!![]);b1Q=(E1i || E1i === ("0" ^ 0)) && l10(s1d(D2D[E1i].DT,r$p,!!({})));if(D2D[+"0"].DT > p1f){if(J9a.quoteDriver){J9a.quoteDriver.extendHistoricalData({from:p1f});if(b1Q > 0){J_P=b1Q;}else {return;}}else {N1m.X$L(1);return O4y.error=`${N1m.D8z("Not enough data to calc","ulate ")}${b76}`;}}if(J_P < 0 || J_P > D2D.length - 1){return;}A4U=D2D.length - O4y.startFrom === 1 && O4y.cachedFutureTicks && O4y.cachedLastProjection && +O4y.cachedLastProjection.DT === +D2D[D2D.length - 1].DT && D2D[J_P]["PV " + O4y.name];if(A4U){K9Y="P";K9Y+="V ";D2D[D2D.length - +"1"][K9Y + O4y.name]=O4y.cachedLastProjection.projectedValue;O4y.appendFutureTicks(J9a,O4y.cachedFutureTicks);J_P=O4y.startFrom;}else {O4y.cachedFutureTicks=null;O4y.cachedLastProjection=null;J_f=[N8n];G2Z=[];for(var y88=+"0";y88 < r$p;y88++){a_m=A8Q(J_f[0] - 1);J_f.unshift(a_m);;}while(J_f[r$p] >= J_P){B_h=J_f.pop();if(!D2D[B_h]){return H9E(B_h);}c3w=B7j(D2D[B_h].DT);var {hours:H4D, minutes:Z69}=c3w;B1R=Q7t.getClose(D2D[B_h].DT);I7X=void 0;if(!B1R){I7X={hours:24,minutes:+"0"};}else {I7c=Q7t.getNextClose(D2D[B_h].DT);I7X=B7j(B1R);while(!(I7X.hours === 0 && I7X.minutes === 0) && B1R.getDate() === I7c.getDate()){B1R=I7c;I7c=Q7t.getNextClose(I7c);}I7X=B7j(B1R);if(I7X.hours === 0){I7X.hours=24;}}I0C=J_f.slice();for(var p6m=+"0";p6m < I0C.length;p6m++){U7p=I0C[p6m];if(!D2D[U7p]){return H9E(U7p);}var {hours:m0_, minutes:f6f}=B7j(D2D[U7p].DT);if(m0_ < H4D || m0_ === H4D && f6f < Z69){do {U7p++;({hours:m0_, minutes:f6f}=B7j(D2D[U7p].DT));}while(!(m0_ === H4D && f6f === Z69));}I0C[p6m]=U7p;}while(H4D < I7X.hours || H4D === I7X.hours && Z69 < I7X.minutes){Y_0=!({});L$m=void 0;P5m=void +"0";l4E=0;z2$=0;for(var I7C=0;I7C < I0C.length;I7C++){E3y=I0C[I7C];if(E3y === null)continue;y_h=D2D[E3y];if(!y_h){return H9E(E3y);}var {hours:O2b, minutes:y8E}=B7j(y_h.DT);Z97=y_h.DT.getDate();if(O2b === H4D && y8E === Z69){l4E+=y_h.Volume;z2$++;I0C[I7C]++;if(D2D[I0C[I7C]].DT.getDate() !== Z97){I0C[I7C]=null;}else if(!Y_0){({hours:L$m, minutes:P5m}=B7j(D2D[I0C[I7C]].DT));Y_0=!!({});;}}}H4D=L$m;Z69=P5m;if(z2$ === 0)break;N1m.X$L(23);W7M=N1m.t1w(z2$,l4E);if(D2D[B_h]){V94="PV";V94+=" ";D2D[B_h][V94 + O4y.name]=W7M;}else {G2Z.push({["PV " + O4y.name]:W7M});}B_h++;}J_f.unshift(A8Q(J_f[0] - 1));;}O4y.cachedLastProjection={DT:D2D[D2D.length - 1].DT,projectedValue:D2D[D2D.length - +"1"]["PV " + O4y.name]};O4y.cachedFutureTicks=G2Z;O4y.appendFutureTicks(J9a,G2Z);}Z4p=null;N1m.X$L(7);T39=N1m.t1w(0,"0");N5L=0;if(A4U && X1Z){while(J_P > 0){N1m.X$L(7);C9m=D2D[N1m.t1w(1,J_P)]["V " + O4y.name];if(C9m || C9m === 0){T39=C9m;break;}J_P--;}}function l10(w0U){var s_X;s_X="sc";s_X+="rubbed";return J9a.tickFromDate(w0U,null,null,!!"1",s_X);}for(var u7s=J_P;u7s < D2D.length;u7s++){w_H=D2D[u7s];J8j=w_H.Volume;a4x=w_H["PV " + O4y.name];if(!w_H.futureTick){f15=u7s;}if(Z4p === null){Z4p=N2u.Studies.getMarketOffset({stx:J9a,localQuoteDate:D2D[u7s].DT,shiftToDateBoundary:!0});}E1T=new Date(new Date(w_H.DT).getTime() + Z4p);F01=D2D[u7s - 1] && new Date(new Date(D2D[u7s - 1].DT).getTime() + Z4p);K62=new J_p.Date(w_H.DT,Q7t.market_def.market_tz || "America/New_York");K62.setHours(l_o,L9o,S7c);N1m.O90(1);K62=new Date(N1m.D8z(K62,Z4p));K62.setDate(E1T.getDate());if(F01 && E1T.getDate() !== F01.getDate()){Z4p=null;T39=0;N5L=0;}if(E1T < K62){w_H["V " + O4y.name]=0;w_H["PV " + O4y.name]=0;continue;}if(X1Z){T39+=J8j;N5L+=a4x;}else {T39=J8j;N5L=a4x;}w_H["V " + O4y.name]=T39;if(!A4U){w_H["PV " + O4y.name]=N5L;}if([NaN,null,undefined].includes(T39) && !w_H.futureTick){N1m.O90(95);O4y.error=`${b76}${N1m.D8z(" require","olume","s v")}`;return;}}O4y.cachedLastProjection.projectedValue=D2D[f15]["PV " + O4y.name];O4y.outputMap={};O4y.outputMap["V " + O4y.name]="";O4y.outputMap["PV " + O4y.name]="Average Line";function V7O(Q0G){var T7Z;Q0G.setHours(0);Q0G.setMinutes(0);T7Z=N2u.Studies.getMarketOffset({stx:J9a,localQuoteDate:Q0G});N1m.c7b();return new Date(Q0G.getTime() + T7Z);}e$U.forEach(a5T=>{a5T.startFrom=J_P;a5T.study.calculateFN(J9a,a5T);});};N2u.Studies.displayProjectedVolume=function(O30,h55,s_W){var e02=g9BGt;var I1J,p8Y,o3U,X02,t63,H_C,t0w,P51;I1J="V";I1J+=" ";if(h55.error){return N2u.Studies.removeAnchorHandle(O30,h55);}var {"Alert Threshold":A1s = ""}=h55.inputs;e02.X$L(19);var v5A=e02.t1w(0,5,19,16,14);e02.O90(50);var p$0=e02.t1w(10,20);p8Y=parseInt(A1s.slice(0,v5A),p$0) / ("100" >> 0);o3U=h55.outputs["Alert Bar"];if(typeof o3U === "object"){o3U=o3U.color;}h55.volumeField=I1J + h55.name;h55.alignStepToSide=!"";h55.extendToEndOfLastBar=!"";h55.lineWidth=2;X02=O30.canvasStyle("stx_volume_underlay_up").opacity;t63=O30.canvasStyle("stx_volume_underlay_down").opacity;h55.colorFunction=function(G3k){var q56,f7p,c2e,O4z,K8x,V$X,D54;q56="V";q56+=" ";var {Open:g06, Close:m$t, iqPrevClose:V3u}=G3k;f7p=O30.colorByCandleDirection?g06:V3u;e02.X$L(169);c2e=e02.t1w(m$t,f7p);O4z=G3k["PV " + h55.name];K8x=G3k[q56 + h55.name];e02.X$L(170);V$X=e02.t1w("1",p8Y,O4z);D54=p8Y < 0?K8x < V$X:K8x > V$X;return {fill_color:D54 && o3U || (c2e?this.fill_color_down:this.fill_color_up),border_color:c2e?this.border_color_down:this.border_color_up,opacity:D54?1:c2e?t63:X02,border_opacity:c2e?t63:X02};};H_C=h55.study?h55.study.name:h55.type;var {loadingMore:j3M}=O30.chart;e02.c7b();t0w=s_W.some(z9s=>{var R$O;R$O="P";R$O+="V";R$O+=" ";e02.Z_e();return z9s && z9s[h55.volumeField] && z9s[R$O + h55.name];});P51=s_W["0" ^ 0] && !s_W[+"0"].futureTick && (s_W[0]["PV " + h55.name] === undefined || (h55.dependentsOutputMap || []).some(F12=>{return [undefined,null].includes(s_W[0][F12]);}));if(!t0w && j3M){e02.X$L(113);return h55.error=`${e02.t1w("or","hing data f","Fetc"," ")}${H_C}`;}N2u.Studies.createVolumeChart(O30,h55,s_W);N2u.Studies.displaySeriesAsLine(O30,h55,s_W);if(h55.anchorHandle){N2u.Studies.displayAnchorHandleAndLine(O30,h55,s_W);}if(P51){N2u.Studies.calculateProjectedVolume(O30,h55);}};N2u.Studies.studyLibrary=N2u.extend(N2u.Studies.studyLibrary,{PVAT:{name:"Projected Volume at Time",range:P4y,yAxis:{ground:!!({}),initialMarginTop:0,zoom:0},calculateFN:N2u.Studies.calculateProjectedVolume,seriesFN:N2u.Studies.displayProjectedVolume,initializeFN:N2u.Studies.initProjectedVolume,removeFN:N2u.Studies.removeAnchorHandle,inputs:{"Lookback Days":+"10","Anchor Time":"","Alert Threshold":["+150%","+125%","+100%","+75%",T2m,c_Z,"None","-25%",g0w,"-75%","-100%","-125%","-150%"],"Anchor Selector":!!({})},outputs:{"Average Line":a4j,"Alert Bar":"#cfbd0e","Up Volume":"#8cc176","Down Volume":"#b82c0c"},parameters:{plotType:Q6t},attributes:{"Anchor Time":{placeholder:q3q,step:"1" | 0},"Alert Threshold":{defaultSelected:m$v}}},PAV:{name:h46,range:"0 to max",yAxis:{ground:!![],initialMarginTop:0,zoom:0},calculateFN:N2u.Studies.calculateProjectedVolume,seriesFN:N2u.Studies.displayProjectedVolume,initializeFN:N2u.Studies.initProjectedVolume,removeFN:N2u.Studies.removeAnchorHandle,inputs:{"Lookback Days":"10" | 8,"Anchor Time":"","Anchor Selector":!0},outputs:{"Average Line":K$d,"Up Volume":"#8cc176","Down Volume":"#b82c0c"},parameters:{plotType:d92},attributes:{"Anchor Time":{placeholder:"hh:mm:ss",step:1}}}});}};f6=X0f=>{var D4F,P8S;D4F="unde";D4F+="fined";P8S=typeof _CIQ !== D4F?_CIQ:X0f.CIQ;if(!P8S.Studies){console.error("psychologicalLine feature requires first activating studies feature.");}else {P8S.Studies.calculatePsychologicalLine=function(k7x,V7T){var P6S=g9BGt;var x6$,U6a,e2h,S5r,u_K,t0m,k2K,g6i,f_T;P6S.Z_e();x6$=1318313658;U6a=-1526940988;e2h=2;for(var i_n=1;P6S.l9L(i_n.toString(),i_n.toString().length,10190) !== x6$;i_n++){S5r=V7T.chart.scrubbed;e2h+=2;}if(P6S.l9L(e2h.toString(),e2h.toString().length,89156) !== U6a){S5r=V7T.chart.scrubbed;}if(S5r.length < V7T.days + 1){V7T.error=!!"1";return;}u_K=[];P6S.O90(129);var d63=P6S.D8z(83,8,3,17,3725);t0m=d63 / V7T.days;k2K=0;for(var e1F=Math.max(V7T.startFrom - V7T.days,1);e1F < S5r.length;e1F++){g6i="Res";g6i+="u";g6i+="lt";g6i+=" ";if(S5r[e1F].futureTick)break;f_T=Number(S5r[e1F].Close > S5r[e1F - 1].Close);if(f_T){k2K+=t0m;}u_K.push(f_T);if(u_K.length > V7T.days){k2K-=u_K.shift() * t0m;}if(e1F < V7T.startFrom)continue;if(!isNaN(S5r[e1F].Close)){S5r[e1F][g6i + V7T.name]=k2K;}}};P8S.Studies.studyLibrary=P8S.extend(P8S.Studies.studyLibrary,{PSY:{name:"Psychological Line",range:"0 to 100",calculateFN:P8S.Studies.calculatePsychologicalLine,inputs:{Period:20}}});}};q8=h3z=>{var A3q,D2G;g9BGt.Z_e();A3q=typeof _CIQ !== "undefined"?_CIQ:h3z.CIQ;if(!A3q.Studies){console.error("qstick feature requires first activating studies feature.");}else {D2G="QStic";D2G+="k";A3q.Studies.calculateQStick=function(i7y,r97){var W2L,y3_,o2e;W2L="_Cl";g9BGt.Z_e();W2L+="ose-Op";W2L+="en";W2L+=" ";y3_="Moving Avera";y3_+="ge Type";o2e=r97.chart.scrubbed;if(o2e.length < r97.days + 1){r97.error=!!1;return;}for(var T_O=r97.startFrom;T_O < o2e.length;T_O++){o2e[T_O]["_Close-Open " + r97.name]=o2e[T_O].Close - o2e[T_O].Open;}A3q.Studies.MA(r97.inputs[y3_],r97.days,W2L + r97.name,0,"Result",i7y,r97);};A3q.Studies.studyLibrary=A3q.extend(A3q.Studies.studyLibrary,{QStick:{name:D2G,calculateFN:A3q.Studies.calculateQStick,inputs:{Period:"8" >> 0,"Moving Average Type":"ma"}}});}};c0=m01=>{var c$v,s3I,E2u,N_r,v54,r38,G4z,L$w,R4T;c$v="undef";c$v+="ine";c$v+="d";s3I=typeof _CIQ !== c$v?_CIQ:m01.CIQ;if(!s3I.Studies){console.error("rainbow feature requires first activating studies feature.");}else {E2u="f";E2u+="ie";E2u+="ld";N_r="#FF";N_r+="00F";N_r+="F";v54="#7F00";v54+="FF";r38="#00";r38+="7";r38+="F";r38+="FF";G4z="#0";G4z+="0F";G4z+="FFF";L$w="#F";L$w+="F";L$w+="0";L$w+="000";R4T="R";R4T+="ainbow Moving Average";s3I.Studies.calculateRainbow=function(Y12,U7w){var t81=g9BGt;var w38,x5R,r4G,s5m,K8k,c9n,V9P,w5k,H4V,x$Z,S1x,J30,b8C,H4w,L_m,J3w,e1l,X73,H6f,M$v,E6r,v7v;function h6l(l6E,l1F){var K4y,p3D;t81.X$L(7);var u5z=t81.D8z(1,0);K4y=Number.MAX_VALUE * u5z;p3D=Number.MAX_VALUE;t81.Z_e();for(var l_q=l1F - l6E + 1;l_q <= l1F;l_q++){if(l_q < 0)continue;K4y=Math.max(K4y,x5R[l_q].Close);p3D=Math.min(p3D,x5R[l_q].Close);}return [p3D,K4y];}w38="fi";w38+="eld";x5R=U7w.chart.scrubbed;if(x5R.length < U7w.days + 1){U7w.error=!!({});return;}r4G=-1365760673;s5m=+"1310864647";K8k=2;for(var h0$=1;t81.i7j(h0$.toString(),h0$.toString().length,61315) !== r4G;h0$++){c9n=U7w.inputs.Field;K8k+=2;}if(t81.l9L(K8k.toString(),K8k.toString().length,58595) !== s5m){c9n=U7w.inputs.Field;}if(!c9n || c9n == w38){c9n="Close";}V9P=c9n;for(var u9_=1;u9_ <= 10;u9_++){w5k="S";w5k+="M";w5k+="A";H4V="S";H4V+="MA";s3I.Studies.MA("simple",U7w.days,V9P,0,H4V + u9_,Y12,U7w);t81.O90(171);var b7L=t81.t1w(16710,2,14,8348,8330);t81.X$L(9);var U8O=t81.t1w(13,14,2);t81.X$L(22);var E1a=t81.D8z(19,72930,20,16,67375);t81.O90(44);var E9k=t81.D8z(17,107644,6,6341,6332);t81.O90(66);var M8a=t81.D8z(11,5,163,1);V9P=w5k + u9_ + ((b7L,"459.13" - 0) >= ("2255" * U8O,332.83)?" ":(E1a,940.94) < (E9k,"394.43" - 0)?(+"626.97",!!"1"):M8a) + U7w.name;}for(var N5Y=Math.max(U7w.startFrom,10);N5Y < x5R.length;N5Y++){x$Z="O";x$Z+="s";x$Z+="c";if(!x5R[N5Y])continue;if(x5R[N5Y].futureTick)break;S1x=0;J30=0;t81.O90(60);var e_C=t81.D8z(31,4,8);b8C=Number.MAX_VALUE * e_C;H4w=Number.MAX_VALUE;for(u9_=1;u9_ <= 10;u9_++){L_m="S";L_m+="M";L_m+="A";t81.X$L(31);var X2B=t81.D8z(12,51002,7,8502);t81.X$L(1);var r11=t81.t1w(3767,3);t81.X$L(7);var Q5v=t81.D8z(54890,59880);t81.X$L(11);var V0x=t81.D8z(8,579286,44856,13,16);J3w=x5R[N5Y][L_m + u9_ + (204.6 !== X2B?" ":(+"684.07",+"486.62") <= (11.07,r11)?(Q5v,+"2360") != +"568.69"?!!({}):(!!"",790.32):V0x) + U7w.name];if(J3w || J3w === 0){S1x+=J3w;J30++;b8C=Math.max(b8C,J3w);H4w=Math.min(H4w,J3w);}}if(U7w.name.indexOf(x$Z) > -("1" >> 0)){e1l="H";e1l+="HV";e1l+="/LLV Lo";e1l+="okback";X73=h6l(U7w.inputs[e1l],N5Y);if(J30){H6f="Ov";H6f+="e";H6f+="r";H6f+=" ";M$v="_";M$v+="h";M$v+="is";M$v+="t";t81.X$L(57);var O3_=t81.D8z(200,1,100);x5R[N5Y][U7w.name + M$v]=O3_ * (x5R[N5Y][c9n] - S1x / J30) / Math.max(0.000001,X73["1" >> 0] - X73[0]);t81.X$L(7);var r2m=t81.D8z(10,110);t81.O90(96);var u4b=t81.D8z(16,19,5777,19);x5R[N5Y][H6f + U7w.name]=r2m * (b8C - H4w) / Math.max(+"0.000001",X73[u4b] - X73[0]);x5R[N5Y]["Under " + U7w.name]=-x5R[N5Y]["Over " + U7w.name];x5R[N5Y]["Zero " + U7w.name]=0;}}}if(U7w.name.indexOf("Osc") > -1){E6r="Ze";E6r+="r";E6r+="o";E6r+=" ";v7v="Positive Ba";v7v+="r";U7w.outputMap={};U7w.outputMap["Over " + U7w.name]=v7v;U7w.outputMap["Under " + U7w.name]="Negative Bar";U7w.outputMap[E6r + U7w.name]="";U7w.outputMap[U7w.name + "_hist"]="";}};s3I.Studies.displayRainbowMA=function(m87,A7C,G4_){var J1O,n6L;J1O=m87.panels[A7C.panel];for(var n8A=10;n8A > +"0";n8A--){n6L="S";n6L+="M";n6L+="A";s3I.Studies.displayIndividualSeriesAsLine(m87,A7C,J1O,n6L + n8A + (("3620" - 0,9520) <= 6410?660:2686 > 9.35?" ":2.97e+3) + A7C.name,G4_);}};s3I.Studies.displayRainbowOsc=function(b6H,n5A,n31){var R8Z=g9BGt;var P8G,y21,i9o,Q_x,e97,K8s,g7F,v9T,L7R,V2j,q8L,x7I,P9d,U9Y,s_C;P8G="U";P8G+="n";P8G+="de";P8G+="r ";y21="N";y21+="egative Bar";i9o="Zer";i9o+="o";i9o+=" ";Q_x="O";Q_x+="v";Q_x+="er";Q_x+=" ";s3I.Studies.displaySeriesAsLine(b6H,n5A,n31);e97=b6H.panels[n5A.panel];K8s=n5A.getContext(b6H);g7F=n5A.getYAxis(b6H);b6H.startClip(n5A.panel);if(!n5A.highlight && b6H.highlightedDraggable){K8s.globalAlpha*=0.3;}v9T=b6H.pixelFromPrice(0,e97,g7F);L7R=e97.name != n5A.chart.name;V2j=s3I.Studies.determineColor(n5A.outputs["Positive Bar"]);K8s.strokeStyle=V2j;b6H.plotDataSegmentAsLine("Over " + n5A.name,e97,{skipTransform:L7R,label:![],yAxis:g7F});R8Z.O90(3);q8L=K8s.createLinearGradient(R8Z.t1w(0,"0"),v9T,0,g7F.flipped?g7F.bottom:g7F.top);q8L.addColorStop(0,b6H.containerColor);R8Z.O90(8);q8L.addColorStop(R8Z.t1w(1,"1"),V2j);s3I.prepareChannelFill(b6H,{skipTransform:L7R,color:q8L,opacity:!n5A.highlight && b6H.highlightedDraggable?0.3:1,panelName:n5A.panel,topBand:Q_x + n5A.name,bottomBand:i9o + n5A.name,yAxis:g7F});x7I=s3I.Studies.determineColor(n5A.outputs[y21]);K8s.strokeStyle=x7I;b6H.plotDataSegmentAsLine("Under " + n5A.name,e97,{skipTransform:L7R,label:!!0,yAxis:g7F});R8Z.X$L(0);P9d=K8s.createLinearGradient(0,v9T,R8Z.t1w("0",0),g7F.flipped?g7F.top:g7F.bottom);P9d.addColorStop(0,b6H.containerColor);P9d.addColorStop(1,x7I);s3I.prepareChannelFill(b6H,{skipTransform:L7R,color:P9d,opacity:!n5A.highlight && b6H.highlightedDraggable?0.3:1,panelName:n5A.panel,topBand:"Zero " + n5A.name,bottomBand:P8G + n5A.name,yAxis:g7F});R8Z.X$L(163);var p$f=R8Z.t1w(17,14,12,3,1114);U9Y=b6H.layout.candleWidth - p$f;if(U9Y < 2){U9Y=1;}b6H.canvasColor("stx_histogram");if(!n5A.underlay){K8s.globalAlpha=1;}if(!n5A.highlight && b6H.highlightedDraggable){K8s.globalAlpha*=0.3;}K8s.fillStyle="#CCCCCC";for(var C$x=0;C$x < n31.length;C$x++){s_C=n31[C$x];if(!s_C)continue;if(s_C[n5A.name + "_hist"] > 0){K8s.fillStyle=V2j;}else if(s_C[n5A.name + "_hist"] < 0){K8s.fillStyle=x7I;}if(s_C.candleWidth){U9Y=Math.floor(Math.max(1,s_C.candleWidth - 2));}K8s.fillRect(Math.floor(b6H.pixelFromBar(C$x,e97.chart) - U9Y / 2),Math.floor(v9T),Math.floor(U9Y),Math.floor(b6H.pixelFromPrice(s_C[n5A.name + "_hist"],e97,g7F) - v9T));}b6H.endClip();};s3I.Studies.studyLibrary=s3I.extend(s3I.Studies.studyLibrary,{"Rainbow MA":{name:R4T,overlay:!!({}),calculateFN:s3I.Studies.calculateRainbow,seriesFN:s3I.Studies.displayRainbowMA,inputs:{Period:2,Field:"field"},outputs:{SMA1:L$w,SMA2:"#FF7F00",SMA3:"#FFFF00",SMA4:"#7FFF00",SMA5:"#00FF7F",SMA6:G4z,SMA7:r38,SMA8:"#0000FF",SMA9:v54,SMA10:N_r}},"Rainbow Osc":{name:"Rainbow Oscillator",calculateFN:s3I.Studies.calculateRainbow,seriesFN:s3I.Studies.displayRainbowOsc,centerline:+"0",inputs:{Period:2,Field:E2u,"HHV/LLV Lookback":+"10"},outputs:{"Positive Bar":"#00DD00","Negative Bar":"#FF0000"}}});}};x7=N4O=>{var i2R,q7V;i2R=typeof _CIQ !== "undefined"?_CIQ:N4O.CIQ;g9BGt.c7b();if(!i2R.Studies){console.error("randomWalk feature requires first activating studies feature.");}else {q7V="#0";q7V+="0";q7V+="00";q7V+="FF";i2R.Studies.calculateRandomWalk=function(X0k,w_v){var F33,t$r,g6f,E5W,B6z,E52,J5x,v5z,E$W;F33=w_v.chart.scrubbed;if(F33.length < w_v.days + 1){w_v.error=!!"1";return;}for(var a53=Math.max(2,w_v.startFrom);a53 < F33.length;a53++){t$r=0;g6f=F33[a53].High;E5W=F33[a53].Low;B6z=+"0";E52=0;for(var f1m=1;f1m <= w_v.days;f1m++){if(F33[a53].futureTick)break;if(a53 <= f1m){B6z=E52=0;break;}t$r+=F33[a53 - f1m].trueRange;J5x=t$r / f1m * Math.sqrt(f1m);if(J5x){v5z=(g6f - F33[a53 - f1m].Low) / J5x;E$W=(F33[a53 - f1m].High - E5W) / J5x;B6z=Math.max(B6z,v5z);E52=Math.max(E52,E$W);}}if(!F33[a53].futureTick && (!isNaN(g6f) || !isNaN(E5W))){F33[a53]["Random Walk High " + w_v.name]=B6z;F33[a53]["Random Walk Low " + w_v.name]=E52;}}};i2R.Studies.studyLibrary=i2R.extend(i2R.Studies.studyLibrary,{"Random Walk":{name:"Random Walk Index",calculateFN:i2R.Studies.calculateRandomWalk,outputs:{"Random Walk High":"#FF0000","Random Walk Low":q7V}}});}};J3=K59=>{var f19=g9BGt;var t7W,U3h,l0h;t7W="unde";f19.c7b();t7W+="fin";t7W+="e";t7W+="d";U3h=typeof _CIQ !== t7W?_CIQ:K59.CIQ;if(!U3h.Studies){console.error("relativeVigor feature requires first activating studies feature.");}else {l0h="#FF0";l0h+="000";U3h.Studies.calculateRelativeVigor=function(q6A,d3_){var e1R,N53,v6$,b5r,Q0R,H70,w3h,N2g,z_v,n1C,Q38,c6b,I7o;e1R="RelVigSigna";e1R+="l";N53="triangu";N53+="lar";f19.Z_e();v6$="tr";v6$+="iangular";b5r="_Cha";b5r+="ng";b5r+="e";b5r+=" ";Q0R=d3_.chart.scrubbed;if(Q0R.length < d3_.days + 1){d3_.error=!"";return;}for(H70=d3_.startFrom;H70 < Q0R.length;H70++){w3h=Q0R[H70];if(!isNaN(w3h.Close) && !isNaN(w3h.Open)){w3h["_Change " + d3_.name]=w3h.Close - w3h.Open;}if(!isNaN(w3h.High) && !isNaN(w3h.Low)){w3h["_Range " + d3_.name]=w3h.High - w3h.Low;}}U3h.Studies.MA("triangular",4,b5r + d3_.name,0,"_Numer",q6A,d3_);U3h.Studies.MA(v6$,4,"_Range " + d3_.name,0,"_Denom",q6A,d3_);N2g=[];z_v=[];for(H70=Math.max(d3_.startFrom - d3_.days,0);H70 < Q0R.length;H70++){n1C="_Den";n1C+="om";n1C+=" ";if(Q0R[H70].futureTick)break;if(Q0R[H70]["_Numer " + d3_.name] === null && Q0R[H70]["_Denom " + d3_.name] === null)continue;N2g.push(Q0R[H70]["_Numer " + d3_.name]);z_v.push(Q0R[H70][n1C + d3_.name]);if(N2g.length > d3_.days){N2g.shift();z_v.shift();}Q38=0;f19.X$L(18);c6b=f19.t1w("0",0);for(I7o=0;I7o < N2g.length;I7o++){Q38+=N2g[I7o];}for(I7o=0;I7o < z_v.length;I7o++){c6b+=z_v[I7o];}if(c6b === "0" << 32){c6b=0.00000001;}if(H70 < d3_.startFrom)continue;f19.X$L(23);Q0R[H70]["Rel Vig " + d3_.name]=f19.D8z(c6b,Q38);}f19.X$L(35);U3h.Studies.MA(N53,f19.D8z(64,"4"),"Rel Vig " + d3_.name,0,e1R,q6A,d3_);for(H70=d3_.startFrom;H70 < Q0R.length;H70++){Q0R[H70][d3_.name + "_hist"]=Q0R[H70]["Rel Vig " + d3_.name] - Q0R[H70]["RelVigSignal " + d3_.name];}d3_.outputMap[d3_.name + "_hist"]="";};U3h.Studies.studyLibrary=U3h.extend(U3h.Studies.studyLibrary,{"Rel Vig":{name:"Relative Vigor Index",seriesFN:U3h.Studies.displayHistogramWithSeries,calculateFN:U3h.Studies.calculateRelativeVigor,inputs:{Period:"10" * 1},outputs:{"Rel Vig":"auto",RelVigSignal:"#FF0000","Increasing Bar":"#00DD00","Decreasing Bar":l0h}}});}};H8=T$j=>{var S5P=g9BGt;S5P.Z_e();var Q4A,C01,L7V;Q4A=typeof _CIQ !== "undefined"?_CIQ:T$j.CIQ;if(!Q4A.Studies){console.error("rsi feature requires first activating studies feature.");}else {C01="a";C01+="ut";C01+="o";L7V="0 ";L7V+="to ";L7V+="1";L7V+="00";Q4A.Studies.calculateRSI=function(H95,F_P){var x6p,r6A,C1t,I7m,e56,k1K,J_Z,d7K,e_o,p1V,u$I,G1_,Z28,e$P;x6p="Clo";x6p+="se";r6A="fi";r6A+="e";r6A+="l";r6A+="d";C1t=F_P.chart.scrubbed;I7m=F_P.inputs.Field;if(!I7m || I7m == r6A){I7m=x6p;}S5P.Z_e();if(C1t.length < F_P.days + 1){F_P.error=!!({});return;}for(var h1Z=F_P.startFrom;h1Z < C1t.length;h1Z++){e56="_";e56+="avgL";e56+=" ";k1K="_";k1K+="avg";k1K+="G ";J_Z="_a";J_Z+="v";J_Z+="gL ";d7K="_";d7K+="av";d7K+="gG ";if(!h1Z)continue;e_o=C1t[h1Z];S5P.O90(89);p1V=C1t[S5P.D8z(h1Z,"1")];if(!e_o[I7m] && e_o[I7m] !== 0)continue;if(!p1V[I7m] && p1V[I7m] !== 0)continue;u$I=e_o[I7m] - p1V[I7m];G1_=Math.min(h1Z,F_P.days);Z28=p1V[d7K + F_P.name];if(!Z28){S5P.O90(8);Z28=S5P.D8z(1,"0");}S5P.O90(23);Z28-=S5P.D8z(G1_,Z28);e$P=p1V[J_Z + F_P.name];if(!e$P){e$P=0;}S5P.X$L(23);e$P-=S5P.t1w(G1_,e$P);if(u$I > 0){S5P.O90(23);Z28+=S5P.t1w(G1_,u$I);}else if(u$I <= 0){S5P.X$L(23);e$P-=S5P.t1w(G1_,u$I);}else continue;if(h1Z >= F_P.days){if((Z28 || Z28 !== 0) && (e$P || e$P !== 0)){e_o["RSI " + F_P.name]=r_I(Z28,e$P);}}e_o[k1K + F_P.name]=Z28;e_o[e56 + F_P.name]=e$P;}function r_I(C6a,K7a){var h1W,L4H,w4W,s8_;S5P.c7b();S5P.O90(7);h1W=S5P.t1w(0,"142210496");L4H=617212667;w4W=+"2";for(var F1c=1;S5P.i7j(F1c.toString(),F1c.toString().length,93840) !== h1W;F1c++){if(K7a === "0" - 0){return +"100";}S5P.O90(23);s8_=S5P.D8z(K7a,C6a);S5P.X$L(172);return S5P.D8z(1,100,1,"100",s8_);}if(S5P.l9L(w4W.toString(),w4W.toString().length,84944) !== L4H){if(K7a != ("2" | 2)){return 964;}S5P.X$L(29);s8_=S5P.D8z(K7a,C6a);S5P.O90(173);return S5P.D8z(s8_,102,7,"351");}}F_P.zoneOutput="RSI";};Q4A.Studies.studyLibrary=Q4A.extend(Q4A.Studies.studyLibrary,{rsi:{name:"RSI",inputs:{Period:14,Field:"field"},calculateFN:Q4A.Studies.calculateRSI,range:L7V,outputs:{RSI:"auto"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:C01}}}});}};d8=F8U=>{var w5c=g9BGt;w5c.Z_e();var Q$e,e_J;Q$e=typeof _CIQ !== "undefined"?_CIQ:F8U.CIQ;if(!Q$e.Studies){e_J="schaffTr";e_J+="endCycl";e_J+="e ";e_J+="feature requires first activating studies feature.";console.error(e_J);}else {Q$e.Studies.calculateSchaff=function(j$j,D4c){var o43,r8x,K$D,i3w,w4s,y32,v$y,s5L,q1T,D6N,i4C,Y$e,b7K,q1n,f5f,g7H,H5O,X5P,r42,p6s,y7f,Z$D;o43="M";o43+="ovin";o43+="g Ave";o43+="rage Type";r8x="_M";r8x+="AC";r8x+="D1";K$D="Moving A";K$D+="verage Type";i3w="fi";i3w+="e";i3w+="l";i3w+="d";w4s="Sh";w4s+="o";w4s+="rt Cycle";y32=D4c.chart.scrubbed;v$y=D4c.days;s5L=Number(D4c.inputs[w4s]);q1T=Number(D4c.inputs["Long Cycle"]);if(y32.length < Math.max(v$y,s5L,q1T) + ("1" << 32)){D4c.error=!![];return;}D6N=D4c.inputs.Field;function e6Q(L36,F5P,a_f){w5c.c7b();var J5s,h77,V3w;J5s=null;h77=null;for(var K54=F5P - L36 + +"1";K54 <= F5P;K54++){w5c.X$L(7);var k7B=w5c.D8z(40800,44200);w5c.X$L(65);var s68=w5c.t1w(5,252125,43475,6);w5c.O90(174);var Y3y=w5c.t1w(561,2257,2244,22,11);V3w=y32[K54][a_f + ((k7B,s68) !== Y3y?" ":!"") + D4c.name];if(!V3w)continue;J5s=J5s === null?V3w:Math.min(J5s,V3w);h77=h77 === null?V3w:Math.max(h77,V3w);}return [J5s,h77];}if(!D6N || D6N == i3w){D6N="Close";}i4C=0.5;Q$e.Studies.MA(D4c.inputs[K$D],s5L,D6N,0,r8x,j$j,D4c);Q$e.Studies.MA(D4c.inputs[o43],q1T,D6N,0,"_MACD2",j$j,D4c);Y$e=0;b7K=0;for(var R6P=D4c.startFrom;R6P < y32.length;R6P++){q1n="_";q1n+="M";q1n+="AC";q1n+="D";f5f=y32[R6P];if(R6P < q1T - 1)continue;g7H=f5f["_MACD1 " + D4c.name];H5O=f5f["_MACD2 " + D4c.name];if(g7H || g7H === 0 || H5O || H5O === ("0" | 0)){X5P="_MACD";X5P+=" ";w5c.X$L(7);f5f[X5P + D4c.name]=w5c.D8z(H5O,g7H);}r42=f5f["_MACD " + D4c.name];if(R6P < q1T + (v$y - ("1" | 1)))continue;p6s=e6Q(v$y,R6P,q1n);Y$e=p6s[1] > p6s[0]?100 * (r42 - p6s[0]) / (p6s[+"1"] - p6s[+"0"]):Y$e;if(r42 || r42 === "0" >> 32){y7f="_";y7f+="PF ";f5f[y7f + D4c.name]=y32[R6P - 1]["_PF " + D4c.name]?y32[R6P - 1]["_PF " + D4c.name] + i4C * (Y$e - y32[R6P - 1]["_PF " + D4c.name]):Y$e;}Z$D=f5f["_PF " + D4c.name];if(R6P < q1T + 2 * (v$y - 1))continue;p6s=e6Q(v$y,R6P,"_PF");b7K=p6s[1] > p6s[0]?"100" * 1 * (Z$D - p6s["0" * 1]) / (p6s[1] - p6s[0]):b7K;if(Z$D || Z$D === 0){f5f["Result " + D4c.name]=y32[R6P - 1]["Result " + D4c.name]?y32[R6P - 1]["Result " + D4c.name] + i4C * (b7K - y32[R6P - ("1" >> 64)]["Result " + D4c.name]):b7K;}}};Q$e.Studies.studyLibrary=Q$e.extend(Q$e.Studies.studyLibrary,{Schaff:{name:"Schaff Trend Cycle",range:"0 to 100",calculateFN:Q$e.Studies.calculateSchaff,inputs:{Period:10,Field:"field","Short Cycle":23,"Long Cycle":50,"Moving Average Type":"ema"},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:75,studyOverBoughtColor:"auto",studyOverSoldValue:25,studyOverSoldColor:"auto"}}}});}};T5=O6A=>{var N_v,n70,S5m,e86,I6d;N_v="u";N_v+="nd";N_v+="efined";n70=typeof _CIQ !== N_v?_CIQ:O6A.CIQ;if(!n70.Studies){S5m="shinoh";S5m+="ara feature requires fir";S5m+="st activating studies featu";S5m+="re.";console.error(S5m);}else {e86="#5";e86+="F";e86+="7";e86+="CB8";I6d="Shinohara Intensi";I6d+="ty Ratio";n70.Studies.calculateShinohara=function(J9c,s8c){var F0l=g9BGt;F0l.c7b();var t2m,E0v,T0b,X6o;t2m=s8c.chart.scrubbed;if(t2m.length < s8c.days + 1){s8c.error=!![];return;}E0v={weakNum:+"0",weakDen:0,strongNum:"0" >> 0,strongDen:0};if(s8c.startFrom > +"1"){E0v=n70.clone(t2m[s8c.startFrom - 1]["_accums " + s8c.name]);}for(var E8G=s8c.startFrom;E8G < t2m.length;E8G++){T0b="_";T0b+="accu";T0b+="m";T0b+="s ";E0v.weakNum+=t2m[E8G].High - t2m[E8G].Close;E0v.weakDen+=t2m[E8G].Close - t2m[E8G].Low;if(E8G > +"0"){F0l.O90(149);var E47=F0l.t1w(0,9,2431,18,15);E0v.strongNum+=t2m[E8G].High - t2m[E8G - E47].Close;F0l.X$L(49);var J5O=F0l.t1w(1,12,9,20);E0v.strongDen+=t2m[E8G - J5O].Close - t2m[E8G].Low;}if(E8G >= s8c.days){X6o="Weak";X6o+=" R";X6o+="atio ";E0v.weakNum-=t2m[E8G - s8c.days].High - t2m[E8G - s8c.days].Close;E0v.weakDen-=t2m[E8G - s8c.days].Close - t2m[E8G - s8c.days].Low;F0l.X$L(1);var u2n=F0l.t1w(5,95);t2m[E8G][X6o + s8c.name]=u2n * E0v.weakNum / E0v.weakDen;if(E8G > s8c.days){F0l.O90(113);var b8b=F0l.t1w(10,16,3,3);E0v.strongNum-=t2m[E8G - s8c.days].High - t2m[E8G - s8c.days - ("1" << b8b)].Close;E0v.strongDen-=t2m[E8G - s8c.days - +"1"].Close - t2m[E8G - s8c.days].Low;t2m[E8G]["Strong Ratio " + s8c.name]=("100" << 0) * E0v.strongNum / E0v.strongDen;}}t2m[E8G][T0b + s8c.name]=n70.clone(E0v);}};n70.Studies.studyLibrary=n70.extend(n70.Studies.studyLibrary,{Shinohara:{name:I6d,calculateFN:n70.Studies.calculateShinohara,inputs:{Period:26},outputs:{"Strong Ratio":"#E99B54","Weak Ratio":e86}}});}};C2=j2f=>{var a4E,v7X,q_i,m5j,F4t,l65,b0m;a4E=typeof _CIQ !== "undefined"?_CIQ:j2f.CIQ;if(!a4E.Studies){console.error("stochastics feature requires first activating studies feature.");}else {v7X="a";v7X+="u";v7X+="t";v7X+="o";q_i="#";q_i+="FF000";q_i+="0";m5j="a";m5j+="u";m5j+="t";m5j+="o";F4t="Stoc";F4t+="hast";F4t+="ics (Simple)";l65="a";l65+="u";l65+="to";b0m="a";b0m+="u";b0m+="t";b0m+="o";a4E.Studies.calculateStochastics=function(a8T,D22){var K6o=g9BGt;var E9Y,w$s,Q2R,N5z,v7g,L$9,x3t,S98,u_i,C5V,S2s,l0c,F7n;E9Y="%";E9Y+="D";w$s="%";w$s+="K";Q2R="_Fast";Q2R+="%K ";N5z="%K Smoot";N5z+="hing Pe";N5z+="riods";v7g="%K Pe";v7g+="r";v7g+="io";v7g+="ds";if(!D22.smooth){D22.smooth=D22.inputs.Smooth;}L$9=D22.inputs.Field;if(!L$9 || L$9 == "field"){L$9="Close";}x3t=D22.inputs[v7g];if(!x3t){x3t=D22.days;}S98=D22.chart.scrubbed;if(S98.length < Math.max(x3t,D22.days) + 1){D22.error=!![];return;}u_i=D22.inputs[N5z];if(u_i && !D22.inputs.Fast){D22.smooth=!![];}else if(D22.smooth){K6o.O90(0);u_i=K6o.t1w("3",1);}C5V=D22.inputs["%D Periods"];if(!C5V){C5V=+"3";}if(D22.outputs.Fast){S2s="%D";S2s+=" ";l0c="Fa";l0c+="st";D22.outputMap={};D22.outputMap["%K " + D22.name]=l0c;D22.outputMap[S2s + D22.name]="Slow";}for(var l7$=Math.max(x3t,D22.startFrom);l7$ < S98.length;l7$++){F7n=r1y(l7$,L$9,x3t);if(F7n !== null){S98[l7$]["_Fast%K " + D22.name]=r1y(l7$,L$9,x3t);}}a4E.Studies.MA("simple",D22.smooth?u_i:1,Q2R + D22.name,0,w$s,a8T,D22);a4E.Studies.MA("simple",C5V,"%K " + D22.name,0,E9Y,a8T,D22);function r1y(j8l,F7e,F2y){var q_W,v2o,i0Z,n38,X0Z,p9F,Z9X,J3v,e6f;K6o.O90(175);q_W=K6o.t1w("1",F2y,0,j8l);K6o.X$L(83);var K_g=K6o.t1w(12,15,0,359,12);v2o=Number.MAX_VALUE * -K_g;i0Z=Number.MAX_VALUE;for(var g2R=q_W;g2R <= j8l;g2R++){n38="H";n38+="i";n38+="g";n38+="h";X0Z="L";X0Z+="o";X0Z+="w";p9F="C";p9F+="lose";Z9X=S98[g2R][F7e == p9F?X0Z:F7e];J3v=S98[g2R][F7e == "Close"?n38:F7e];if(!Z9X && Z9X !== +"0")continue;if(!J3v && J3v !== 0)continue;i0Z=Math.min(i0Z,Z9X);v2o=Math.max(v2o,J3v);}if(v2o == Number.MAX_VALUE * -1 || i0Z == Number.MAX_VALUE){return null;}e6f=v2o == i0Z?0:(S98[j8l][F7e] - i0Z) / (v2o - i0Z) * 100;return e6f;}};a4E.Studies.calculateStochMomentum=function(v8u,h4S){var t3_=g9BGt;var V_C,b9$,f5s,w9F,R23,T9c,k7H,A6d,Z$3,A5t,q8y,N47,w9M;V_C="%";V_C+="K ";b9$="_";function s5h(j2o,Z1G){var E6c,Z_z;E6c=null;Z_z=null;for(var U9b=Z1G - j2o + 1;U9b <= Z1G;U9b++){E6c=E6c === null?A5t[U9b].Low:Math.min(E6c,A5t[U9b].Low);Z_z=Z_z === null?A5t[U9b].High:Math.max(Z_z,A5t[U9b].High);}return [E6c,Z_z];}b9$+="DH";b9$+="L1 ";f5s="e";f5s+="xpo";f5s+="nential";w9F="e";w9F+="xp";w9F+="o";w9F+="nential";R23="%";R23+="D Pe";R23+="riods";T9c=Number(h4S.inputs["%K Periods"]);k7H=Number(h4S.inputs["%K Smoothing Periods"]);A6d=Number(h4S.inputs["%K Double Smoothing Periods"]);Z$3=Number(h4S.inputs[R23]);A5t=h4S.chart.scrubbed;if(A5t.length < T9c + k7H + A6d - 1 || A5t.length < Z$3){h4S.error=!![];return;}for(q8y=Math.max(T9c,h4S.startFrom) - 1;q8y < A5t.length;q8y++){N47=A5t[q8y];w9M=s5h(T9c,q8y);t3_.X$L(117);var x9k=t3_.D8z(19,2,19);t3_.O90(117);var a75=t3_.D8z(17,3,17);N47["_H " + h4S.name]=N47.Close - (w9M[0] + w9M[x9k]) / a75;t3_.X$L(27);var L4D=t3_.D8z(18,8,5,9);N47["_DHL " + h4S.name]=w9M[L4D] - w9M[0];}a4E.Studies.MA(w9F,k7H,"_H " + h4S.name,0,"_HS1",v8u,h4S);t3_.Z_e();a4E.Studies.MA(f5s,A6d,"_HS1 " + h4S.name,0,"_HS2",v8u,h4S);a4E.Studies.MA("exponential",k7H,"_DHL " + h4S.name,0,"_DHL1",v8u,h4S);a4E.Studies.MA("exponential",A6d,b9$ + h4S.name,+"0","_DHL2",v8u,h4S);for(q8y=T9c - 1;q8y < A5t.length;q8y++){t3_.O90(176);var P0c=t3_.D8z(6,120,300,20);A5t[q8y]["%K " + h4S.name]=A5t[q8y]["_HS2 " + h4S.name] / (0.5 * A5t[q8y]["_DHL2 " + h4S.name]) * P0c;}a4E.Studies.MA(h4S.inputs["%D Moving Average Type"],Z$3,V_C + h4S.name,0,"%D",v8u,h4S);h4S.zoneOutput="%K";};a4E.Studies.studyLibrary=a4E.extend(a4E.Studies.studyLibrary,{"Stch Mtm":{name:"Stochastic Momentum Index",calculateFN:a4E.Studies.calculateStochMomentum,inputs:{"%K Periods":+"10","%K Smoothing Periods":"3" ^ 0,"%K Double Smoothing Periods":3,"%D Periods":10,"%D Moving Average Type":"ema"},outputs:{"%K":b0m,"%D":"#FF0000"},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:"40" ^ 0,studyOverBoughtColor:l65,studyOverSoldValue:-("40" ^ 0),studyOverSoldColor:"auto"}}},stochastics:{name:F4t,range:"0 to 100",calculateFN:a4E.Studies.calculateStochastics,inputs:{Period:"14" | 10,Field:"field",Smooth:!""},outputs:{Fast:"auto",Slow:"#FF0000"},parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:+"80",studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:m5j}}},Stochastics:{name:"Stochastics",range:"0 to 100",calculateFN:a4E.Studies.calculateStochastics,inputs:{Field:"field","%K Periods":14,Fast:![],"%K Smoothing Periods":3,"%D Periods":3},outputs:{"%K":"auto","%D":q_i},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:+"80",studyOverBoughtColor:v7X,studyOverSoldValue:20,studyOverSoldColor:"auto"}},attributes:{"%K Smoothing Periods":{hidden:function(){g9BGt.c7b();return this.inputs.Fast;}}},centerline:50}});}};P1=E8W=>{var I81,v5C,S1b;I81="und";I81+="efin";I81+="ed";v5C=typeof _CIQ !== I81?_CIQ:E8W.CIQ;if(!v5C.Studies){S1b="supertrend featur";S1b+="e requires firs";S1b+="t activating studies feature.";console.error(S1b);}else {v5C.Studies.calculateSupertrend=function(Y6h,g_1){var O9k=g9BGt;var t4U,R7E,b$A,t1H,o_n,q7w,K50,Q1E,d90,Y5O,O6m,f1f,b34,S2k;t4U="Tr";O9k.c7b();t4U+="e";t4U+="nd";t4U+=" ";R7E=g_1.chart.scrubbed;if(R7E.length < g_1.days + 1){g_1.error=!!({});return;}v5C.Studies.calculateStudyATR(Y6h,g_1);for(var V9a=g_1.startFrom;V9a < R7E.length;V9a++){b$A="_D";b$A+="owntr";b$A+="en";b$A+="d ";t1H="_U";t1H+="ptre";t1H+="nd ";o_n=R7E[V9a];if(!o_n)continue;O9k.X$L(5);var T2s=O9k.t1w(22,29,9);q7w=(o_n.High + o_n.Low) / T2s;K50=g_1.inputs.Multiplier * o_n["ATR " + g_1.name];O9k.X$L(7);Q1E=O9k.D8z(K50,q7w);O9k.O90(1);d90=O9k.D8z(q7w,K50);if(V9a){Y5O="_Down";Y5O+="trend ";O6m="_D";O6m+="ow";O6m+="ntre";O6m+="nd ";if(R7E[V9a - 1] && R7E[V9a - 1].Close && R7E[V9a - 1].Close > R7E[V9a - 1]["_Uptrend " + g_1.name] && R7E[V9a - ("1" << 96)]["_Uptrend " + g_1.name] > Q1E){O9k.O90(7);Q1E=R7E[O9k.t1w(1,V9a)]["_Uptrend " + g_1.name];}if(R7E[V9a - 1] && R7E[V9a - 1].Close && R7E[V9a - 1].Close < R7E[V9a - 1][O6m + g_1.name] && R7E[V9a - 1][Y5O + g_1.name] < d90){O9k.O90(7);d90=R7E[O9k.D8z(1,V9a)]["_Downtrend " + g_1.name];}}o_n["_Direction " + g_1.name]=1;if(V9a){f1f="_D";f1f+="irection ";b34="_Dire";b34+="ction ";S2k="_Dire";S2k+="cti";S2k+="o";S2k+="n ";O9k.X$L(7);o_n[S2k + g_1.name]=R7E[O9k.t1w(1,V9a)][b34 + g_1.name];if(o_n.Close > R7E[V9a - 1]["_Downtrend " + g_1.name]){o_n[f1f + g_1.name]=1;}else if(o_n.Close < R7E[V9a - "1" * 1]["_Uptrend " + g_1.name]){o_n["_Direction " + g_1.name]=-1;}}o_n[t1H + g_1.name]=Q1E;o_n[b$A + g_1.name]=d90;o_n["Trend " + g_1.name]=o_n["_Direction " + g_1.name] > 0?Q1E:d90;if(!V9a)continue;}g_1.outputMap={};g_1.outputMap[t4U + g_1.name]="";};v5C.Studies.displaySupertrend=function(t4m,H57,u5A){var g46=g9BGt;var U6L,t4h,F4X,F_Y,v4q,h9x,J5Y,W1X,a$u,N0p,u1Q;U6L=t4m.panels[H57.panel];t4h=H57.getContext(t4m);F4X=H57.getYAxis(t4m);F_Y={skipTransform:U6L.name != H57.chart.name,skipProjections:!!"1",label:t4m.preferences.labels,yAxis:F4X,highlight:H57.highlight};t4h.strokeStyle=U_D(t4m,u5A[u5A.length - +"1"]);t4h.lineWidth=2;if(H57.highlight){g46.X$L(8);t4h.lineWidth=g46.t1w(1,"1.5");}v4q="Trend " + H57.name;for(var j1a=0;U6L.chart.transformFunc && F4X != U6L.chart.yAxis && j1a < u5A.length;j1a++){h9x=u5A[j1a];if(h9x && h9x.transform){h9x.transform[v4q]=U6L.chart.transformFunc(t4m,U6L.chart,h9x[v4q]);}}t4m.plotDataSegmentAsLine(v4q,U6L,F_Y,U_D);t4h.lineWidth=1;g46.O90(35);t4h.globalAlpha=g46.D8z(64,"1");t4m.startClip(H57.panel);function U_D(Z60,m3F,m6L){if(m3F && m3F["_Direction " + H57.name] < 0){return H57.outputs.Downtrend;}return H57.outputs.Uptrend;}if(!H57.highlight && t4m.highlightedDraggable){t4h.globalAlpha*=0.3;}g46.O90(115);var t0d=g46.t1w(13,11,9845,118161);g46.X$L(9);var j4M=g46.D8z(9,11,8476);g46.O90(74);var p5m=g46.t1w(8,15,33,9);g46.O90(1);var J$n=g46.t1w(328,4599);g46.X$L(126);var Q75=g46.D8z(21,4,21,5);J5Y=t4h.measureText((352.81,t0d) == +"259.35"?j4M > "463.26" * p5m?(J$n,404.02):!1:"\u25B2").width / Q75;for(W1X=0;W1X < u5A.length;W1X++){a$u="_Dir";a$u+="ect";a$u+="ion ";if(!u5A[W1X] || !u5A[W1X - 1])continue;if(u5A[W1X - 1]["_Direction " + H57.name] > u5A[W1X][a$u + H57.name]){t4h.fillStyle=H57.outputs.Downtrend;t4h.textBaseline="bottom";N0p=t4m.pixelFromPrice(u5A[W1X].High,U6L,F4X);for(var y9p=5;y9p <= 45;y9p+=10){if(F4X.flipped){t4h.fillText("\u25B2",t4m.pixelFromBar(W1X) - J5Y,N0p + y9p);}else {t4h.fillText((4200,+"9810") !== (+"1660",572.7)?("7240" ^ 0) > (1760,1390)?"\u25BC":(297,1460) > (1800,8018)?("d",8.22e+3):!"1":(9.41e+2,+"0xb71"),t4m.pixelFromBar(W1X) - J5Y,N0p - y9p);}}}else if(u5A[W1X - 1]["_Direction " + H57.name] < u5A[W1X]["_Direction " + H57.name]){t4h.fillStyle=H57.outputs.Uptrend;t4h.textBaseline="top";u1Q=t4m.pixelFromPrice(u5A[W1X].Low,U6L,F4X);for(var D1c="5" ^ 0;D1c <= 45;D1c+=10){if(F4X.flipped){t4h.fillText(43 > 3920?("k","f"):"\u25BC",t4m.pixelFromBar(W1X) - J5Y,u1Q - D1c);}else {t4h.fillText("\u25B2",t4m.pixelFromBar(W1X) - J5Y,u1Q + D1c);}}}}t4m.endClip();};v5C.Studies.studyLibrary=v5C.extend(v5C.Studies.studyLibrary,{Supertrend:{name:"Supertrend",overlay:!0,seriesFN:v5C.Studies.displaySupertrend,calculateFN:v5C.Studies.calculateSupertrend,inputs:{Period:7,Multiplier:3},outputs:{Uptrend:"#8cc176",Downtrend:"#b82c0c"},attributes:{Multiplier:{min:"0.1" - 0,step:0.1}}}});}};r9=e_0=>{var Y41=g9BGt;Y41.c7b();var w9r,D3l;w9r=typeof _CIQ !== "undefined"?_CIQ:e_0.CIQ;if(!w9r.Studies){console.error("swingIndex feature requires first activating studies feature.");}else {D3l="Ac";D3l+="cumula";D3l+="tive Swing Index";w9r.Studies.calculateSwingIndex=function(T26,f6l){var l9C,h0H,b2J,t2i,R4_,E5d,F3k,V21,d0F,M7W,u6_,J6i;l9C="Res";l9C+="ult";l9C+=" ";h0H=f6l.inputs["Limit Move Value"];if(h0H === null || isNaN(h0H)){h0H=99999;}b2J=f6l.chart.scrubbed;t2i=0;if(f6l.startFrom > 1){Y41.O90(72);var v$_=Y41.t1w(18,7,2,2);t2i=b2J[f6l.startFrom - v$_][l9C + f6l.name];}for(var M1q=Math.max(1,f6l.startFrom);M1q < b2J.length;M1q++){R4_=Math.abs(b2J[M1q].High - b2J[M1q - 1].Close);E5d=Math.abs(b2J[M1q].Low - b2J[M1q - 1].Close);F3k=Math.abs(b2J[M1q].High - b2J[M1q].Low);V21=Math.abs(b2J[M1q - +"1"].Close - b2J[M1q - 1].Open);d0F=Math.max(R4_,E5d);M7W=Math.max(F3k,d0F);Y41.X$L(97);u6_=Y41.D8z(V21,0.25,M7W);if(M7W == R4_){Y41.X$L(8);u6_-=Y41.t1w(E5d,0.5);}else if(M7W == E5d){Y41.O90(8);u6_-=Y41.D8z(R4_,0.5);}Y41.O90(177);var z8Q=Y41.t1w(9,1,43,7,9);Y41.O90(176);var G_E=Y41.D8z(38,19,7,16);J6i=z8Q * (b2J[M1q].Close - b2J[M1q - G_E].Close + 0.5 * (b2J[M1q].Close - b2J[M1q].Open) + 0.25 * (b2J[M1q - ("1" ^ 0)].Close - b2J[M1q - +"1"].Open)) / u6_ * (d0F / h0H);if(u6_ === 0 || h0H === 0){J6i=0;}if(f6l.type == "Swing"){t2i=0;}t2i+=J6i;b2J[M1q]["Result " + f6l.name]=t2i;}};w9r.Studies.studyLibrary=w9r.extend(w9r.Studies.studyLibrary,{"Acc Swing":{name:D3l,calculateFN:w9r.Studies.calculateSwingIndex,inputs:{"Limit Move Value":0.5}},Swing:{name:"Swing Index",calculateFN:w9r.Studies.calculateSwingIndex,inputs:{"Limit Move Value":0.5}}});}};G6=e0j=>{var e1q,u5x,p9k,t2x;e1q=typeof _CIQ !== "undefined"?_CIQ:e0j.CIQ;if(!e1q.Studies){console.error("trendIntensity feature requires first activating studies feature.");}else {u5x="a";u5x+="u";u5x+="t";u5x+="o";p9k="au";p9k+="to";t2x="f";t2x+="iel";t2x+="d";e1q.Studies.calculateTrendIntensity=function(c5w,S7R){var T2K=g9BGt;var P3q,v6O,S3R,d5P,V98,j1P,y8H,L9n,Q$h,S94,O_g,V6v;P3q="T";T2K.c7b();P3q+="II";P3q+=" ";v6O="m";v6O+="a";S3R=S7R.chart.scrubbed;if(S3R.length < S7R.days + 1){S7R.error=!![];return;}d5P=S7R.inputs.Field;if(!d5P || d5P == "field"){d5P="Close";}e1q.Studies.MA(v6O,S7R.days,d5P,0,"_SMA",c5w,S7R);V98=0;j1P=0;Q$h=[];S94=Math.ceil(S7R.days / 2);for(y8H=Math.max("0" ^ 0,S7R.startFrom - S94);y8H < S3R.length;y8H++){O_g="_";O_g+="SMA ";V6v="_S";V6v+="M";V6v+="A ";if(!S3R[y8H]["_SMA " + S7R.name] && S3R[y8H][V6v + S7R.name] !== "0" * 1)continue;L9n=S3R[y8H][d5P] - S3R[y8H][O_g + S7R.name];if(L9n < 0){T2K.X$L(178);j1P+=T2K.t1w(L9n,1);}else {V98+=L9n;}Q$h.push(L9n);if(Q$h.length > S94){L9n=Q$h.shift();if(L9n < 0){T2K.X$L(179);j1P-=T2K.t1w(0,L9n,"1");}else {V98-=L9n;}}if(y8H < S7R.startFrom)continue;S3R[y8H]["TII " + S7R.name]=O7K(V98,j1P);}e1q.Studies.MA("ema",S7R.inputs["Signal Period"],P3q + S7R.name,0,"Signal",c5w,S7R);function O7K(X6l,c9L){if(Math.abs(c9L) < 0.00000001){return 100;}T2K.c7b();T2K.X$L(180);return T2K.D8z("100",100,c9L,1,X6l);}};e1q.Studies.studyLibrary=e1q.extend(e1q.Studies.studyLibrary,{"Trend Int":{name:"Trend Intensity Index",calculateFN:e1q.Studies.calculateTrendIntensity,range:"0 to 100",inputs:{Period:14,Field:t2x,"Signal Period":+"9"},outputs:{TII:p9k,Signal:"#FF0000"},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:u5x}}}});}};g9=z5G=>{var e44=g9BGt;var L3u,A3S,k2M;L3u="undefin";e44.c7b();L3u+="ed";A3S=typeof _CIQ !== L3u?_CIQ:z5G.CIQ;if(!A3S.Studies){console.error("trix feature requires first activating studies feature.");}else {k2M="TR";k2M+="IX";A3S.Studies.calculateTRIX=function(y8_,S18){var P2D,R9m,C8U,i4S,O$M,R12,X3_;e44.c7b();P2D=S18.chart.scrubbed;if(P2D.length < S18.days + 1){S18.error=!!({});return;}R9m=S18.name;e44.O90(1);C8U=["Close",e44.D8z("_MA1 ",R9m),e44.t1w("_MA2 ",R9m),e44.D8z("_MA3 ",R9m)];for(var G5I=0;G5I < C8U.length - 1;G5I++){i4S="expo";i4S+="nent";i4S+="i";i4S+="al";A3S.Studies.MA(i4S,S18.days,C8U[G5I],+"0","_MA" + (G5I + 1).toString(),y8_,S18);}O$M=C8U[3];for(var N0R=Math.max(1,S18.startFrom);N0R < P2D.length;N0R++){e44.X$L(7);R12=P2D[e44.D8z(1,N0R)][O$M];if(!R12)continue;X3_=P2D[N0R][O$M];if(X3_ || X3_ === 0){e44.O90(1);P2D[N0R][e44.D8z("Result ",R9m)]=e44.D8z(R12,1,X3_,100,e44.X$L(156));}}};A3S.Studies.studyLibrary=A3S.extend(A3S.Studies.studyLibrary,{TRIX:{name:k2M,calculateFN:A3S.Studies.calculateTRIX}});}};H7=r0h=>{var l2K;l2K=typeof _CIQ !== "undefined"?_CIQ:r0h.CIQ;if(!l2K.Studies){console.error("twiggsMoneyFlow feature requires first activating studies feature.");}else {l2K.Studies.calculateTwiggsMoneyFlow=function(G02,a3U){var D5s=g9BGt;var A92,L80,Z_V,e5T,h_x,E8f,k1A,r7g,Z$b,z0M;A92=a3U.chart.scrubbed;if(A92.length < a3U.days){a3U.error=!!({});L80=1778052099;D5s.X$L(7);Z_V=D5s.t1w(0,"655077716");e5T=2;for(var L1q=1;D5s.l9L(L1q.toString(),L1q.toString().length,39367) !== L80;L1q++){return;}if(D5s.i7j(e5T.toString(),e5T.toString().length,11259) !== Z_V){return;}}h_x=0;E8f=+"0";D5s.X$L(1);var Z4H=D5s.t1w(0,1);k1A=A92[a3U.startFrom - Z4H];if(k1A){if(k1A["_sumMF " + a3U.name]){h_x=k1A["_sumMF " + a3U.name];}if(k1A["_sumV " + a3U.name]){E8f=k1A["_sumV " + a3U.name];}}for(var A94=Math.max(+"1",a3U.startFrom);A94 < A92.length;A94++){r7g="_M";r7g+="FV";r7g+=" ";Z$b=Math.max(A92[A94 - 1].Close,A92[A94].High);z0M=Math.min(A92[A94 - +"1"].Close,A92[A94].Low);D5s.X$L(181);var I_k=D5s.t1w(7,2,17,16,261);D5s.X$L(67);var w$E=D5s.D8z(9000351,18,1000017,10);A92[A94][r7g + a3U.name]=A92[A94].Volume * (I_k * A92[A94].Close - Z$b - z0M) / (Z$b - z0M === 0?w$E:Z$b - z0M);if(A94 > a3U.days - 1){h_x*=(a3U.days - 1) / a3U.days;D5s.O90(7);var w42=D5s.t1w(14,15);E8f*=(a3U.days - w42) / a3U.days;}h_x+=A92[A94]["_MFV " + a3U.name];E8f+=A92[A94].Volume;if(A94 > a3U.days - 1){if(E8f){D5s.X$L(23);A92[A94]["Result " + a3U.name]=D5s.D8z(E8f > 0?E8f:999999,h_x);}}A92[A94]["_sumMF " + a3U.name]=h_x;A92[A94]["_sumV " + a3U.name]=E8f;}};l2K.Studies.studyLibrary=l2K.extend(l2K.Studies.studyLibrary,{Twiggs:{name:"Twiggs Money Flow",calculateFN:l2K.Studies.calculateTwiggsMoneyFlow,inputs:{Period:21}}});}};P6=v$O=>{var J8F,v9b,a8r;J8F="und";J8F+="ef";J8F+="ined";v9b=typeof _CIQ !== J8F?_CIQ:v$O.CIQ;if(!v9b.Studies){console.error("typicalPrice feature requires first activating studies feature.");}else if(!v9b.Studies.calculateTypicalPrice){console.error("typicalPrice feature requires first activating medianPrice feature.");}else {a8r="Weig";a8r+="hte";a8r+="d ";a8r+="Close";v9b.Studies.studyLibrary=v9b.extend(v9b.Studies.studyLibrary,{"Typical Price":{name:"Typical Price",calculateFN:v9b.Studies.calculateTypicalPrice,inputs:{Period:14}},"Weighted Close":{name:a8r,calculateFN:v9b.Studies.calculateTypicalPrice,inputs:{Period:14}}});}};B7=x1M=>{var e8k,d8f;g9BGt.Z_e();e8k=typeof _CIQ !== "undefined"?_CIQ:x1M.CIQ;if(!e8k.Studies){d8f="ulcerIndex feature requires first acti";d8f+="vating studi";d8f+="es feature.";console.error(d8f);}else {e8k.Studies.calculateUlcerIndex=function(V_L,d$D){var h$Y,t6G,j$D,c4U,E87,v_2,W$M,x2o;h$Y="_";h$Y+="P";h$Y+="D";h$Y+="2 ";t6G=d$D.chart.scrubbed;function w7F(B6g,b$P,U0A){var p9I;p9I=null;for(var Q3L=b$P - B6g + 1;Q3L <= b$P;Q3L++){if(Q3L < 0)continue;p9I=p9I === null?t6G[Q3L][U0A]:Math.max(p9I,t6G[Q3L][U0A]);}return p9I;}if(t6G.length < 2 * d$D.days - +"1"){d$D.error=!0;return;}j$D=d$D.inputs.Field;if(!j$D || j$D == "field"){j$D="Close";}for(c4U=Math.max(d$D.startFrom,d$D.days - 1);c4U < t6G.length;c4U++){E87="_";E87+="PD";E87+="2 ";t6G[c4U][E87 + d$D.name]=Math.pow(100 * (t6G[c4U][j$D] / w7F(d$D.days,c4U,j$D) - 1),2);}e8k.Studies.MA("simple",d$D.days,h$Y + d$D.name,"0" >> 64,"_MA",V_L,d$D);g9BGt.c7b();for(c4U=Math.max(d$D.startFrom,("2" - 0) * (d$D.days - 1));c4U < t6G.length;c4U++){v_2="R";v_2+="esu";v_2+="lt ";W$M="_M";W$M+="A ";x2o=t6G[c4U][W$M + d$D.name];if(x2o || x2o === 0){t6G[c4U][v_2 + d$D.name]=Math.sqrt(x2o);}}};e8k.Studies.studyLibrary=e8k.extend(e8k.Studies.studyLibrary,{Ulcer:{name:"Ulcer Index",calculateFN:e8k.Studies.calculateUlcerIndex,inputs:{Period:"14" | 12,Field:"field"}}});}};k3=b7l=>{var d51=g9BGt;var U0y,m6R,m5a;U0y=typeof _CIQ !== "undefined"?_CIQ:b7l.CIQ;d51.Z_e();if(!U0y.Studies){console.error("ultimateOscillator feature requires first activating studies feature.");}else {m6R="a";m6R+="uto";m5a="Ultimate Os";m5a+="cillator";U0y.Studies.calculateUltimateOscillator=function(T4U,z3_){var I_u,n0D,L4E,N3c,q_t,y6x,e57,b3M,h2T,R3p,M64,H5e,C8L,K8$,T_v,z3i,u2V,k77,E_v,x9u,p8D,V5s,L5w,k6S;I_u="C";I_u+="y";I_u+="cle";I_u+=" 3";n0D=z3_.chart.scrubbed;L4E=[z3_.inputs["Cycle 1"],z3_.inputs["Cycle 2"],z3_.inputs[I_u]];N3c=Math.max(L4E["0" - 0],L4E[1],L4E[2]);if(n0D.length < N3c + 1){z3_.error=!![];return;}d51.O90(131);var M8W=d51.t1w(16,9,183,12,0);q_t=L4E[+"0"] * L4E[M8W];d51.O90(2);d51.c7b();var K9A=d51.D8z(1,3,9,1);y6x=L4E[0] * L4E[K9A];e57=-39753017;b3M=-1260527827;h2T=2;for(var r43=1;d51.i7j(r43.toString(),r43.toString().length,73062) !== e57;r43++){d51.X$L(7);var O7Q=d51.t1w(12,13);d51.O90(163);var a1l=d51.t1w(9,6,10,8,1198);R3p=L4E[O7Q] * L4E[a1l];M64=[+"0",0,0];H5e=[0,0,+"0"];h2T+=+"2";}if(d51.i7j(h2T.toString(),h2T.toString().length,66189) !== b3M){d51.X$L(50);var F0k=d51.D8z(9,14);R3p=L4E[F0k] - L4E[+"5"];M64=[9,1,6];H5e=[5,3,5];}if(z3_.startFrom){C8L="_";C8L+="acc";C8L+="bp";C8L+=" ";K8$="_a";K8$+="ccbp ";if(n0D[z3_.startFrom - 1][K8$ + z3_.name]){M64=n0D[z3_.startFrom - 1][C8L + z3_.name].slice();}if(n0D[z3_.startFrom - +"1"]["_acctr " + z3_.name]){H5e=n0D[z3_.startFrom - +"1"]["_acctr " + z3_.name].slice();}}for(var j2S=Math.max("1" << 96,z3_.startFrom);j2S < n0D.length;j2S++){T_v="Re";T_v+="sul";T_v+="t ";z3i="_";z3i+="accbp ";u2V=Math.min(n0D[j2S].Low,n0D[j2S - ("1" << 32)].Close);k77=n0D[j2S].Close - u2V;d51.O90(42);var Q40=d51.D8z(19,5,10,18,5);E_v=Math.max(n0D[j2S].High,n0D[j2S - Q40].Close) - u2V;for(var j1b=0;j1b < L4E.length;j1b++){M64[j1b]+=k77;H5e[j1b]+=E_v;if(j2S > L4E[j1b]){x9u=Math.min(n0D[j2S - L4E[j1b]].Low,n0D[j2S - L4E[j1b] - 1].Close);p8D=n0D[j2S - L4E[j1b]].Close - x9u;V5s=Math.max(n0D[j2S - L4E[j1b]].High,n0D[j2S - L4E[j1b] - +"1"].Close) - x9u;M64[j1b]-=p8D;H5e[j1b]-=V5s;}}n0D[j2S][z3i + z3_.name]=M64.slice();n0D[j2S]["_acctr " + z3_.name]=H5e.slice();if(j2S < N3c)continue;d51.X$L(142);var E84=d51.t1w(8,13,6,0);d51.X$L(21);var B47=d51.D8z(5,20,8,178,4);d51.X$L(182);var Q9v=d51.t1w(198,9,11,17);L5w=R3p * M64[0] / H5e[0] + y6x * M64["1" << 0] / H5e[E84] + q_t * M64[B47] / H5e[Q9v];d51.O90(95);k6S=d51.t1w(R3p,q_t,y6x);d51.X$L(119);n0D[j2S][T_v + z3_.name]=d51.D8z(100,k6S,L5w);}};U0y.Studies.studyLibrary=U0y.extend(U0y.Studies.studyLibrary,{Ultimate:{name:m5a,calculateFN:U0y.Studies.calculateUltimateOscillator,inputs:{"Cycle 1":+"7","Cycle 2":14,"Cycle 3":28},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:"70" << 64,studyOverBoughtColor:m6R,studyOverSoldValue:"30" - 0,studyOverSoldColor:"auto"}}}});}};K9=j4w=>{var H9Z,O$j,T1V;H9Z=typeof _CIQ !== "undefined"?_CIQ:j4w.CIQ;if(!H9Z.Studies){console.error("valuationLines feature requires first activating studies feature.");}else {O$j="#ff";O$j+="f";O$j+="69";O$j+="e";T1V="#";T1V+="85";T1V+="c99e";H9Z.Studies.calculateValuationLines=function(n6g,b1w,L2L){var P9q=g9BGt;var H_B,l3M,V_P,g1K,z5o,X$Q,X1L,t$z,y4F,G3Y,b53,a$T,o1P,o27,G5U,h3s,u4c,F7u;H_B="Di";H_B+="splay 3 S";H_B+="tandard Deviation (3\u03C3)";l3M="Disp";l3M+="lay 2 Standard Deviation (2\u03C3)";V_P="Disp";V_P+="lay Average";g1K="Averag";g1K+="e Ty";g1K+="pe";z5o="f";z5o+="ie";z5o+="ld";X$Q=b1w.inputs.Field == z5o?"Close":b1w.inputs.Field;X1L=b1w.inputs[g1K];t$z=b1w.inputs[V_P];y4F=b1w.inputs["Display 1 Standard Deviation (1\u03C3)"];G3Y=b1w.inputs[l3M];b53=b1w.inputs[H_B];a$T=[];for(var j4y=0;j4y < L2L.length;++j4y){if(L2L[j4y] && !isNaN(L2L[j4y][X$Q])){a$T.push(L2L[j4y][X$Q]);}}o1P=(function(i$W,I4K){var W03,S8U,c6I,n_H,v25,e5c,F57;W03="media";W03+="n";S8U=i$W.length;c6I=0;n_H=+"0";P9q.c7b();v25=0;switch(I4K){case "mean":n_H=S8U;for(;v25 < S8U;++v25){c6I+=i$W[v25];}break;case "harmonic":c6I=S8U;for(;v25 < S8U;++v25){P9q.X$L(137);var T1W=P9q.t1w(1,9,9,2,0);n_H+=T1W / i$W[v25];}break;case W03:P9q.X$L(23);e5c=Math.floor(P9q.D8z(2,S8U));F57=i$W.slice().sort(function(w2c,e72){if(w2c > e72){return 1;}if(w2c < e72){return -+"1";}return 0;});if(S8U % 2 === ("0" | 0)){P9q.X$L(7);var p0n=P9q.t1w(20,21);c6I=F57[e5c] + F57[e5c - p0n];n_H=+"2";}else {c6I=F57[e5c];n_H=1;}break;}P9q.O90(23);return P9q.D8z(n_H,c6I);})(a$T,X1L);o27=!(y4F || G3Y || b53) || (function(i3R,n97){P9q.Z_e();var W$7,Z44;W$7=i3R.length;Z44=0;for(var t2z=0;t2z < W$7;++t2z){Z44+=Math.pow(i3R[t2z] - n97,2);}P9q.X$L(23);return Math.sqrt(P9q.t1w(W$7,Z44));})(a$T,o1P);b1w.data={Average:t$z?[o1P]:null,"1 Standard Deviation (1\u03C3)":y4F?[o1P + o27,o1P - o27]:null,"2 Standard Deviation (2\u03C3)":G3Y?[o1P + o27 * 2,o1P - o27 * 2]:null,"3 Standard Deviation (3\u03C3)":b53?[o1P + o27 * 3,o1P - o27 * 3]:null};G5U=o27;if(!b1w.parameters){b1w.parameters={};}if(b53){P9q.O90(183);b1w.parameters.range=[P9q.D8z(G5U,o27,o1P,3),P9q.t1w(3,G5U,o27,o1P,P9q.O90(184))];}else if(G3Y){P9q.X$L(183);b1w.parameters.range=[P9q.t1w(G5U,o27,o1P,2),P9q.D8z(2,G5U,o27,o1P,P9q.O90(184))];}else if(y4F){P9q.X$L(40);b1w.parameters.range=[P9q.t1w(o1P,G5U,o27),P9q.D8z(o1P,G5U,o27,P9q.X$L(95))];}else if(t$z){P9q.X$L(7);b1w.parameters.range=[P9q.t1w(G5U,o1P),P9q.t1w(o1P,G5U,P9q.O90(1))];}if(b1w.panel){h3s=n6g.panels[b1w.panel];u4c=n6g.getYAxisByName(h3s,b1w.name);if(u4c){u4c.decimalPlaces=h3s.chart.yAxis.printDecimalPlaces;F7u={yAxis:u4c};n6g.calculateYAxisRange(h3s,u4c,b1w.parameters.range[0],b1w.parameters.range[1]);n6g.createYAxis(h3s,F7u);n6g.drawYAxis(h3s,F7u);}}};H9Z.Studies.displayValuationLines=function(T1L,n0K){var r7j=g9BGt;var F5Z,K04,T6C,s$9,l92,b2n,D04,V_N,v0m,t80,C2G,t8h,q$Z,d11,o32,b7x,D$$,c4X,O$S,C4U,f1a,k6N,f0w,o8f,E5Z,J0F,f6g,I30,u_v;F5Z="ciq-valuation-deviation-";F5Z+="line";K04="H";K04+="A";K04+="V";K04+="G";T6C="M";T6C+="ED";s$9="A";s$9+="V";s$9+="G";l92=T1L.panels[n0K.panel];b2n=n0K.getYAxis(T1L);D04=n0K.getContext(T1L);V_N=n0K.data;v0m=n0K.parameters.labels;t80=n0K.inputs["Average Type"];C2G={mean:s$9,median:T6C,harmonic:K04};t8h=T1L.canvasStyle("ciq-valuation-average-line");q$Z=T1L.canvasStyle(F5Z);d11=3;r7j.O90(77);var k3O=r7j.t1w(10,10,1);o32=T1L.getCanvasFontSize("stx_yaxis") + d11 * k3O;for(var c9E in V_N){E5Z="Ave";E5Z+="r";E5Z+="age";if(!V_N[c9E])continue;r7j.X$L(185);b7x=r7j.D8z(c9E,E5Z);D$$=H9Z.Studies.determineColor(n0K.outputs[c9E]);c4X=V_N[c9E];for(O$S=0;O$S < c4X.length;++O$S){J0F="l";J0F+="e";J0F+="f";J0F+="t";f6g="so";f6g+="l";f6g+="i";f6g+="d";I30="s";I30+="oli";I30+="d";C4U=c4X[O$S];f1a=T1L.pixelFromPrice(C4U,l92,b2n);if(f1a <= l92.top || f1a >= l92.yAxis.bottom)continue;o8f=b7x?{pattern:t8h.borderStyle != "none"?t8h.borderStyle || I30:f6g,lineWidth:parseFloat(t8h.borderWidth) || 1,opacity:parseFloat(t8h.opacity) || "1" - 0,yAxis:b2n}:{pattern:q$Z.borderStyle != "none"?q$Z.borderStyle || "dashed":"dashed",lineWidth:parseFloat(q$Z.borderWidth) || 1,opacity:parseFloat(q$Z.opacity) || 1,yAxis:b2n};T1L.plotLine(l92.left,l92.right,f1a,f1a,D$$,"line",D04,l92,o8f);if(v0m === "yaxis"){T1L.createYAxisLabel(l92,T1L.formatYAxisPrice(C4U,l92),f1a,D$$,null,D04,b2n);continue;}f1a+=Math.floor(o8f.lineWidth / ("2" >> 32));if(f1a + o32 >= l92.yAxis.bottom)continue;k6N=(b7x?C2G[t80] + ": ":c9E[0] + "\u03C3: ") + T1L.formatYAxisPrice(C4U,l92);f0w=D04.measureText(k6N).width;u_v=l92.right - f0w - d11;if(b2n && b2n.position == J0F){u_v=l92.left + d11;}r7j.O90(186);D04.strokeText(k6N,u_v,r7j.D8z(2,o32,0.5,f1a));}}};H9Z.Studies.studyLibrary=H9Z.extend(H9Z.Studies.studyLibrary,{"val lines":{name:"Valuation Lines",calculateFN:function(){},seriesFN:function(o84,a6G,r6k){H9Z.Studies.calculateValuationLines(o84,a6G,r6k);g9BGt.c7b();H9Z.Studies.displayValuationLines(o84,a6G);},overlay:!!"1",yAxisFN:function(){},inputs:{Field:"field","Average Type":["mean","median","harmonic"],"Display Average":!!"1","Display 1 Standard Deviation (1\u03C3)":!!"","Display 2 Standard Deviation (2\u03C3)":!({}),"Display 3 Standard Deviation (3\u03C3)":!!""},outputs:{Average:"#00afed","1 Standard Deviation (1\u03C3)":"#e1e1e1","2 Standard Deviation (2\u03C3)":T1V,"3 Standard Deviation (3\u03C3)":O$j}}});}};M_=J4P=>{var O2m=g9BGt;var Q42,E4g,A0z,X4E,P9e,i5Y;Q42="un";Q42+="d";O2m.Z_e();Q42+="efi";Q42+="ned";E4g=typeof _CIQ !== Q42?_CIQ:J4P.CIQ;if(!E4g.Studies){console.error("volatilityIndex feature requires first activating studies feature.");}else {A0z="a";A0z+="u";A0z+="t";A0z+="o";X4E="aut";X4E+="o";P9e="f";P9e+="iel";P9e+="d";i5Y="Relative Vo";i5Y+="lati";i5Y+="l";i5Y+="ity";E4g.Studies.calculateRelativeVolatility=function(M_P,e1s){var o57,C7X,p4h,k0v,U61,x58,J7b,j_I,h$E,S82,l$v,U70,p54;o57="s";o57+="d";o57+="e";o57+="v";C7X="f";C7X+="i";C7X+="el";C7X+="d";p4h="Sm";p4h+="oothing Period";O2m.c7b();e1s.days=Number(e1s.inputs[p4h]);k0v=Number(e1s.inputs["STD Period"]);U61=e1s.chart.scrubbed;if(U61.length < e1s.days + k0v){e1s.error=!!({});return;}x58=e1s.inputs.Field;if(!x58 || x58 == C7X){x58="Close";}e1s.std=new E4g.Studies.StudyDescriptor(e1s.name,o57,e1s.panel);e1s.std.chart=e1s.chart;e1s.std.days=k0v;e1s.std.startFrom=e1s.startFrom;e1s.std.inputs={Field:x58,"Standard Deviations":1,Type:"ma"};e1s.std.outputs={_STD:null};E4g.Studies.calculateStandardDeviation(M_P,e1s.std);J7b=0;j_I=0;if(e1s.startFrom > "1" << 0){J7b=U61[e1s.startFrom - 1]["_avgG " + e1s.name] || 0;j_I=U61[e1s.startFrom - 1]["_avgL " + e1s.name] || "0" ^ 0;}for(var a0J=Math.max(e1s.startFrom,e1s.days);a0J < U61.length;a0J++){h$E="_av";h$E+="gG ";S82="_S";S82+="TD ";l$v=U61[a0J];O2m.O90(7);U70=U61[O2m.t1w(1,a0J)];if(!l$v[x58] && l$v[x58] !== 0)continue;if(!U70[x58] && U70[x58] !== +"0")continue;if(!l$v["_STD " + e1s.name] && l$v[S82 + e1s.name] !== 0)continue;if(l$v[x58] > U70[x58]){O2m.X$L(5);var C1X=O2m.t1w(0,3,4);J7b=(J7b * (e1s.days - C1X) + l$v["_STD " + e1s.name]) / e1s.days;O2m.X$L(7);var i$K=O2m.D8z(14,15);j_I=j_I * (e1s.days - i$K) / e1s.days;}else {p54="_";p54+="ST";p54+="D";p54+=" ";O2m.X$L(81);var f2Z=O2m.D8z(12,2,0,11);j_I=(j_I * (e1s.days - f2Z) + l$v[p54 + e1s.name]) / e1s.days;O2m.X$L(7);var I6G=O2m.t1w(9,10);J7b=J7b * (e1s.days - I6G) / e1s.days;}l$v["Rel Vol " + e1s.name]=A7M(J7b,j_I);l$v[h$E + e1s.name]=J7b;l$v["_avgL " + e1s.name]=j_I;}e1s.zoneOutput="Rel Vol";function A7M(g8o,b4p){if(g8o + b4p === 0){return 100;}O2m.O90(187);return O2m.D8z(100,g8o,g8o,b4p);}};E4g.Studies.calculateHistoricalVolatility=function(L9F,V6p){var X7a,A17,P2A,d9p,N6y,f$8,T4t,K2t,S$L,K2r,q7x;X7a="Standa";X7a+="rd Deviati";function k3Q(X58){var O2s,n4U;O2s="mo";O2s+="n";O2s+="t";O2s+="h";n4U="d";n4U+="a";n4U+="y";if(isNaN(X58)){X58=365;}if(L9F.layout.interval == n4U){return X58;}else if(L9F.layout.interval == "week"){return 52;}else if(L9F.layout.interval == O2s){return 12;}return X58;}X7a+="ons";A17=V6p.chart.scrubbed;if(A17.length < V6p.days + 1){V6p.error=!!"1";return;}P2A=V6p.inputs.Field;if(!P2A || P2A == "field"){P2A="Close";}d9p=V6p.inputs[X7a];if(d9p < 0){d9p=1;}O2m.X$L(130);var F1d=O2m.t1w(17,86,1254,15,13);N6y=F1d * Math.sqrt(k3Q(V6p.inputs["Days Per Year"])) * d9p;O2m.Z_e();f$8=[];T4t=0;if(V6p.startFrom > 1){O2m.X$L(5);var r_v=O2m.t1w(0,15,16);T4t=A17[V6p.startFrom - r_v]["_state " + V6p.name][0];f$8=A17[V6p.startFrom - 1]["_state " + V6p.name][1].slice();}for(var v1m=Math.max("1" ^ 0,V6p.startFrom);v1m < A17.length;v1m++){O2m.X$L(89);K2t=A17[O2m.t1w(v1m,"1")][P2A];if(K2t){S$L=Math.log(A17[v1m][P2A] / K2t);f$8.push(S$L);T4t+=S$L;if(v1m >= V6p.days){K2r="Re";K2r+="sul";K2r+="t ";q7x=0;T4t/=V6p.days;for(var z2c=0;z2c < f$8.length;z2c++){q7x+=Math.pow(f$8[z2c] - T4t,2);}T4t*=V6p.days;T4t-=f$8.shift();A17[v1m][K2r + V6p.name]=Math.sqrt(q7x / V6p.days) * N6y;}}A17[v1m]["_state " + V6p.name]=[T4t,f$8.slice()];}};E4g.Studies.studyLibrary=E4g.extend(E4g.Studies.studyLibrary,{"Hist Vol":{name:"Historical Volatility",calculateFN:E4g.Studies.calculateHistoricalVolatility,inputs:{Period:"10" >> 96,Field:"field","Days Per Year":[252,365],"Standard Deviations":1},attributes:{"Standard Deviations":{min:0.1,step:+"0.1"}}},"Rel Vol":{name:i5Y,range:"0 to 100",calculateFN:E4g.Studies.calculateRelativeVolatility,inputs:{Field:P9e,"STD Period":10,"Smoothing Period":14},outputs:{"Rel Vol":"auto"},centerline:+"50",parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:"70" >> 32,studyOverBoughtColor:X4E,studyOverSoldValue:30,studyOverSoldColor:A0z}}}});}};A9=c0Z=>{var H9l,t_G,M4N,e7t,M$Y;H9l="und";H9l+="efi";H9l+="ned";t_G=typeof _CIQ !== H9l?_CIQ:c0Z.CIQ;if(!t_G.Studies){M4N="volumeProfi";M4N+="le feature requires first activating studies feature.";console.error(M4N);}else {e7t="#";e7t+="b64";e7t+="a96";M$Y="Vo";M$Y+="lume Profile";t_G.Studies.displayVolumeProfile=function(G6W,g$P,o$I){var l8D,q0v,t4z,V8t,p1N,b9Q,N5P,D_h,E49,h7G,i2V,Z0g,C$l,T0Y,W9k,N_f,E37,Z5w,e6O,Q1B,c44,A4l,f3w,k0J,J9F,S19,r90;l8D="s";l8D+="tx_volume_profile";q0v="Bars";q0v+=" Color";t4z="stx_volu";t4z+="me_profile";if(!G6W || !G6W.chart.dataSet){return;}V8t=G6W.chart;p1N=g$P.parameters.numberOfBars;b9Q=g$P.parameters.widthPercentage;N5P=g$P.parameters.displayBorder;D_h=g$P.parameters.displayVolume;if(!p1N || p1N < ("0" | 0)){p1N=30;}p1N=Math.ceil(p1N);if(!b9Q || b9Q < 0){b9Q=0.25;}if(N5P !== !!""){N5P=!![];}if(D_h !== !![]){D_h=!({});}E49=(V8t.highValue - V8t.lowValue) / p1N;function U_b(U48,C1a){var G1M=g9BGt;var E0T,W3s,e$i,N4H,U9i,J0s,o8O,J2x,E4i;if(!C1a){G1M.X$L(35);f3w-=G1M.t1w(0,"2");}r90.canvasColor(U48);Z5w.beginPath();E0T=h7G[0][+"0"];W3s=f3w;for(var V$M=1;V$M < h7G.length;V$M++){if(h7G[V$M][1]){G1M.X$L(38);var Y7P=G1M.D8z(16,319,20);e$i=Math.round(f3w - h7G[V$M][Y7P] * k0J / Z0g) - 0.5;N4H=Math.round(r90.pixelFromTransformedValue(E0T,c44)) + 0.5;U9i=Math.round(r90.pixelFromTransformedValue(h7G[V$M][0],c44)) + 0.5;if(!C1a){G1M.X$L(7);N4H-=G1M.t1w(0,"0.5");U9i+=0.5;e$i+=0.5;}if(N4H > A4l){N4H=A4l;}if(U9i < A4l){Z5w.moveTo(f3w,N4H);Z5w.lineTo(f3w,U9i);Z5w.lineTo(e$i,U9i);Z5w.lineTo(e$i,N4H);if(C1a){if(W3s > e$i || V$M == 1){Z5w.lineTo(W3s,N4H);};}else {Z5w.lineTo(f3w,N4H);if(D_h){J0s=t_G.condenseInt(h7G[V$M][1]);G1M.X$L(7);o8O=G1M.D8z(U9i,N4H);if(Q1B <= o8O - 2){try{J2x=Z5w.measureText(J0s).width;}catch(Y9Y){J2x=0;}Z5w.textBaseline="top";E4i=Z5w.fillStyle;Z5w.fillStyle=J9F;G1M.O90(111);Z5w.fillText(J0s,G1M.t1w(e$i,"3",0,J2x),G1M.D8z(U9i,1,2,"2",Q1B,o8O,G1M.O90(188)));Z5w.fillStyle=E4i;}}}}W3s=e$i;}else {W3s=f3w;;}E0T=h7G[V$M][0];}if(!g$P.highlight && G6W.highlightedDraggable){Z5w.globalAlpha*=0.3;}if(!C1a){Z5w.fill();}Z5w.strokeStyle=J9F;G1M.Z_e();if(C1a){Z5w.stroke();}Z5w.closePath();}if(E49 === 0){return;}h7G=[];for(var W9N=V8t.lowValue;W9N < V8t.highValue + 0.1;W9N+=E49){h7G.push([W9N,0]);}if(h7G.length < 2){i2V="Not enoug";i2V+="h data to re";i2V+="nder the Volume Profile";G6W.displayErrorAsWatermark("chart",G6W.translateIf(i2V));return;}Z0g=0;for(var r3g=0;r3g < o$I.length;r3g++){C$l=o$I[r3g];if(!C$l)continue;T0Y=C$l.Volume;if(g$P.panel == V8t.name && C$l.transform){C$l=C$l.transform;}W9k=h7G[0][0];N_f=0;for(var j_s=+"1";j_s < h7G.length;j_s++){N_f=h7G[j_s][0];if(C$l.Low >= W9k && C$l.Low <= N_f || C$l.Low < W9k && C$l.High > N_f || C$l.High >= W9k && C$l.High <= N_f){h7G[j_s][1]+=T0Y;if(h7G[j_s][1] > Z0g){Z0g=h7G[j_s][1];}}W9k=N_f;}}if(Z0g === 0){E37="ch";E37+="a";E37+="r";E37+="t";G6W.displayErrorAsWatermark(E37,G6W.translateIf("Not enough data to render the Volume Profile"));return;}G6W.setStyle(t4z,"color",t_G.Studies.determineColor(g$P.outputs[q0v]));Z5w=g$P.getContext(G6W);e6O="stx-float-date";G6W.canvasFont(e6O,Z5w);Q1B=G6W.getCanvasFontSize(e6O);c44=V8t.panel;A4l=c44.yAxis.bottom;f3w=Math.round(V8t.right) - 0.5;k0J=V8t.width * b9Q;J9F=G6W.canvasStyle(l8D).borderTopColor;S19=!t_G.isTransparent(G6W.canvasStyle("stx_volume_profile").borderTopColor) && N5P;r90=G6W;U_b("stx_volume_profile",![]);if(S19){U_b("stx_volume_profile",!"");}Z5w.globalAlpha=+"1";};t_G.Studies.studyLibrary=t_G.extend(t_G.Studies.studyLibrary,{"vol profile":{name:M$Y,underlay:!!({}),seriesFN:t_G.Studies.displayVolumeProfile,calculateFN:null,inputs:{},outputs:{"Bars Color":e7t},customRemoval:!![],parameters:{init:{displayBorder:!!"1",displayVolume:![],numberOfBars:30,widthPercentage:"0.25" * 1}},attributes:{yaxisDisplayValue:{hidden:!!1},panelName:{hidden:!!"1"},flippedEnabled:{hidden:!!({})}}}});}};G2=U1Z=>{var T6B=g9BGt;T6B.c7b();var A6b,H5f,j0z,m1o,u4o,O1Q,Z1H,B7_,R3W,E6C,r30;A6b=typeof _CIQ !== "undefined"?_CIQ:U1Z.CIQ;if(!A6b.Studies){console.error("volumeStudies feature requires first activating studies feature.");}else {H5f="#";H5f+="8cc176";j0z="n";j0z+="o";j0z+="n";j0z+="e";m1o="Vo";m1o+="lume Rate";m1o+=" of Ch";m1o+="ange";u4o="a";u4o+="uto";O1Q="m";O1Q+="a";Z1H="f";Z1H+="ield";B7_="On B";B7_+="alanc";B7_+="e";B7_+=" Volume";R3W="#FF";R3W+="0";R3W+="000";E6C="a";E6C+="u";E6C+="t";E6C+="o";r30="Negative ";r30+="Volume Index";A6b.Studies.calculateOnBalanceVolume=function(a5e,N6Y){var A2c,J9i,Q_P,V_p,y2j,i2t,M54,P4Q;A2c=N6Y.inputs.Field;if(!A2c || A2c == "field"){A2c="Close";}J9i=N6Y.inputs["Min Tick Value"];Q_P=!!"";if(!J9i && J9i !== 0){Q_P=!!({});T6B.O90(8);J9i=T6B.t1w(1,"0");}V_p=N6Y.chart.scrubbed;y2j=0;for(var M8T=N6Y.startFrom;M8T < V_p.length;M8T++){i2t=V_p[M8T];if(!M8T || !i2t[A2c])continue;if(V_p[M8T - 1][A2c]){T6B.O90(7);M54=V_p[T6B.t1w(1,M8T)];}if(!M54)continue;if(i2t[A2c] - M54[A2c] > J9i){y2j=+"1";}else if(M54[A2c] - i2t[A2c] > J9i){y2j=-1;}else if(Q_P){T6B.O90(35);y2j=T6B.t1w(64,"0");}P4Q=M54["Result " + N6Y.name];if(!P4Q){P4Q=+"0";}P4Q+=i2t.Volume * y2j;i2t["Result " + N6Y.name]=P4Q;}};A6b.Studies.calculatePriceVolumeTrend=function(k2f,h3Y){var E7m,r$q,P_L,x6H;T6B.Z_e();E7m=h3Y.inputs.Field;if(!E7m || E7m == "field"){E7m="Close";}r$q=h3Y.chart.scrubbed;P_L=0;if(h3Y.startFrom > 1){T6B.X$L(131);var K65=T6B.t1w(15,6,69,5,0);P_L=r$q[h3Y.startFrom - K65]["Result " + h3Y.name];}for(var n86=Math.max(+"1",h3Y.startFrom);n86 < r$q.length;n86++){x6H="Re";x6H+="sult ";if(!r$q[n86][E7m])continue;if(!r$q[n86 - 1][E7m])continue;T6B.O90(49);var r$X=T6B.D8z(3,5,0,12);P_L+=r$q[n86].Volume * (r$q[n86][E7m] - r$q[n86 - ("1" - 0)][E7m]) / r$q[n86 - r$X][E7m];r$q[n86][x6H + h3Y.name]=P_L;}};A6b.Studies.calculateVolumeIndex=function(M1t,a9y){var x43,B3M,j3d,B8x,l$E,X67,x5t,o0w,H5q,C8A,y9L,U2O;x43="Ind";x43+="e";x43+="x ";B3M="C";B3M+="l";B3M+="os";B3M+="e";j3d="f";j3d+="ie";j3d+="l";j3d+="d";B8x=a9y.inputs.Field;if(!B8x || B8x == j3d){B8x=B3M;}l$E=a9y.chart.scrubbed;if(l$E.length < a9y.days + +"1"){a9y.error=!![];return;}X67=100;if(a9y.startFrom > 1){T6B.X$L(22);var V6_=T6B.D8z(3,10,13,4,29);X67=l$E[a9y.startFrom - V6_][x43 + a9y.name];}for(var Z6X=Math.max(1,a9y.startFrom);Z6X < l$E.length;Z6X++){x5t="N";x5t+="eg Vol";o0w="o";o0w+="b";o0w+="j";o0w+="ect";H5q=l$E[Z6X][B8x];C8A=l$E[Z6X].Volume;if(H5q && typeof H5q == o0w){C8A=H5q.Volume;H5q=H5q[a9y.subField];}T6B.O90(7);y9L=l$E[T6B.D8z(1,Z6X)][B8x];U2O=l$E[Z6X - 1].Volume;if(y9L && typeof y9L == "object"){U2O=y9L.Volume;y9L=y9L[a9y.subField];}if(!H5q)continue;if(!y9L)continue;if(a9y.type == "Pos Vol" && C8A > U2O || a9y.type == x5t && C8A < U2O){T6B.X$L(23);X67*=T6B.t1w(y9L,H5q);}l$E[Z6X]["Index " + a9y.name]=X67;}A6b.Studies.MA(a9y.inputs["Moving Average Type"],a9y.days,"Index " + a9y.name,+"0","MA",M1t,a9y);};A6b.Studies.studyLibrary=A6b.extend(A6b.Studies.studyLibrary,{"Neg Vol":{name:r30,calculateFN:A6b.Studies.calculateVolumeIndex,inputs:{Period:+"255",Field:"field","Moving Average Type":"ma"},outputs:{Index:E6C,MA:R3W}},"On Bal Vol":{name:B7_,calculateFN:A6b.Studies.calculateOnBalanceVolume,inputs:{}},"Pos Vol":{name:"Positive Volume Index",calculateFN:A6b.Studies.calculateVolumeIndex,inputs:{Period:255,Field:Z1H,"Moving Average Type":O1Q},outputs:{Index:u4o,MA:"#FF0000"}},"Price Vol":{name:"Price Volume Trend",calculateFN:A6b.Studies.calculatePriceVolumeTrend,inputs:{Field:"field"}},"Trade Vol":{name:"Trade Volume Index",calculateFN:A6b.Studies.calculateOnBalanceVolume,inputs:{"Min Tick Value":0.5}},"Vol ROC":{name:m1o,calculateFN:function(U98,U4P){T6B.c7b();var C9E,C_L,l$d;if(A6b.Studies.calculateRateOfChange){A6b.Studies.calculateRateOfChange(U98,U4P);}else {C9E=-1123530507;T6B.X$L(35);C_L=-T6B.D8z(0,"1125563075");l$d=2;for(var K2M="1" * 1;T6B.i7j(K2M.toString(),K2M.toString().length,73305) !== C9E;K2M++){console.error("Volume Rate of Change study requires first activating momentum feature.");l$d+=2;}if(T6B.l9L(l$d.toString(),l$d.toString().length,+"91402") !== C_L){console.error("");}A6b.Studies.calculateRateOfChange=function(P2b,s4_){};}},parameters:{init:{isVolume:!!({})}}},"vol undr":{name:"Volume Underlay",underlay:!0,range:"0 to max",yAxis:{ground:!!({}),initialMarginTop:0,position:j0z,zoom:0,heightFactor:0.25},seriesFN:A6b.Studies.createVolumeChart,calculateFN:A6b.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":H5f,"Down Volume":"#b82c0c"},customRemoval:!"",removeFN:function(s7T,O$U){var m76;m76="l";m76+="ayout";s7T.layout.volumeUnderlay=![];s7T.changeOccurred(m76);},attributes:{panelName:{hidden:!!"1"}}}});}};L3=Z3d=>{var U7C,U5R,T7J,h5A,x_x;U7C=typeof _CIQ !== "undefined"?_CIQ:Z3d.CIQ;if(!U7C.Studies){console.error("vortex feature requires first activating studies feature.");}else {U5R="0.";U5R+="0";U5R+="1";T7J="0";T7J+=".";T7J+="0";T7J+="1";h5A="#FF000";h5A+="0";x_x="Vor";x_x+="tex Ind";x_x+="ica";x_x+="tor";U7C.Studies.calculateVortex=function(w2k,j$u){var n9e=g9BGt;var s6D,y8X,B_4,M2I,C0y,J$w,H6O,D0C,Z7d,B3p,D$L,I4z;s6D=j$u.chart.scrubbed;y8X=j$u.days;if(s6D.length < y8X + 1){j$u.error=!![];return;}B_4={tr:0,vmPlus:0,vmMinus:0};if(j$u.startFrom > 1){M2I=1339993391;C0y=-1377162757;J$w=2;for(var B2m=1;n9e.l9L(B2m.toString(),B2m.toString().length,52496) !== M2I;B2m++){B_4=U7C.clone(s6D[j$u.startFrom % 2]["" - j$u.name]);J$w+=2;}if(n9e.i7j(J$w.toString(),J$w.toString().length,"61834" * 1) !== C0y){B_4=U7C.clone(s6D[j$u.startFrom - ("1" ^ 0)]["_totals " + j$u.name]);}}for(var r0e=Math.max(j$u.startFrom,1);r0e < s6D.length;r0e++){H6O=s6D[r0e];n9e.X$L(7);D0C=s6D[n9e.D8z(1,r0e)];Z7d=Math.abs(H6O.High - D0C.Low);B3p=Math.abs(H6O.Low - D0C.High);D$L=Math.max(H6O.High,D0C.Close) - Math.min(H6O.Low,D0C.Close);B_4.tr+=D$L;B_4.vmPlus+=Z7d;B_4.vmMinus+=B3p;if(r0e > y8X){n9e.O90(7);B_4.tr-=s6D[n9e.D8z(y8X,r0e)]["_True Range " + j$u.name];n9e.O90(7);B_4.vmPlus-=s6D[n9e.t1w(y8X,r0e)]["_VMPlus " + j$u.name];n9e.X$L(7);B_4.vmMinus-=s6D[n9e.D8z(y8X,r0e)]["_VMMinus " + j$u.name];}H6O["_True Range " + j$u.name]=D$L;H6O["_VMPlus " + j$u.name]=Z7d;H6O["_VMMinus " + j$u.name]=B3p;if(r0e >= y8X){I4z="-";I4z+="V";I4z+="I ";H6O["+VI " + j$u.name]=B_4.vmPlus / B_4.tr;H6O[I4z + j$u.name]=B_4.vmMinus / B_4.tr;}H6O["_totals " + j$u.name]=U7C.clone(B_4);}};U7C.Studies.studyLibrary=U7C.extend(U7C.Studies.studyLibrary,{Vortex:{name:x_x,calculateFN:U7C.Studies.calculateVortex,centerline:1,outputs:{"+VI":"#00FF00","-VI":h5A},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:1.1,studyOverBoughtColor:"auto",studyOverSoldValue:0.9,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:1,step:T7J},studyOverSoldValue:{max:1,step:U5R}}}});}};c3=f5E=>{var h7w=g9BGt;var k_7,r_7,h6F,B_w;k_7="unde";k_7+="fined";r_7=typeof _CIQ !== k_7?_CIQ:f5E.CIQ;h7w.c7b();if(!r_7.Studies){console.error("williamsMFI feature requires first activating studies feature.");}else {h6F="#5";h6F+="f";h6F+="7cb8";B_w="#8b";B_w+="c176";r_7.Studies.calculateMFI=function(k5N,v9Y){var J1p,f0r,N9x,C1G,S0U,i01,h7z;J1p="S";J1p+="cal";J1p+="e Factor";f0r=v9Y.chart.scrubbed;C1G=0;S0U=v9Y.inputs[J1p];if(!S0U){S0U=v9Y.study.inputs["Scale Factor"];}h7w.c7b();i01=Math.pow(10,Number(S0U));if(v9Y.startFrom > +"1"){h7w.O90(128);var v6D=h7w.D8z(20,18,17,20);C1G=f0r[v9Y.startFrom - v6D]["_high " + v9Y.name];}for(h7z=v9Y.startFrom;h7z < f0r.length;h7z++){if(!f0r[h7z])continue;if(f0r[h7z].Volume){f0r[h7z][v9Y.name + "_hist"]=N9x=i01 * (f0r[h7z].High - f0r[h7z].Low) / f0r[h7z].Volume;f0r[h7z]["_high " + v9Y.name]=C1G=Math.max(C1G,N9x);}}v9Y.outputMap={};v9Y.outputMap[v9Y.name + "_hist"]="";};r_7.Studies.displayMFI=function(a39,G6g,Q2c){var d69,Q_7,v5s,E57,N2W,Q$5,l_F,i52,H5n,B1U,b8l,j4t;d69=a39.panels[G6g.panel];Q_7=G6g.getContext(a39);v5s=G6g.getYAxis(a39);E57=v5s.flipped?v5s.top:v5s.bottom;h7w.X$L(7);var b08=h7w.t1w(11,13);N2W=a39.layout.candleWidth - b08;if(N2W < 2){N2W=1;}Q$5=r_7.Studies.determineColor(G6g.outputs.Green);l_F=r_7.Studies.determineColor(G6g.outputs.Fade);i52=r_7.Studies.determineColor(G6g.outputs.Fake);H5n=r_7.Studies.determineColor(G6g.outputs.Squat);a39.canvasColor("stx_histogram");if(!G6g.underlay){Q_7.globalAlpha=1;}Q_7.fillStyle="#CCCCCC";a39.startClip(G6g.panel);if(!G6g.highlight && a39.highlightedDraggable){Q_7.globalAlpha*=0.3;}for(var U0J=+"0";U0J < Q2c.length;U0J++){B1U="_";B1U+="hist";b8l=Q2c[U0J];h7w.X$L(7);j4t=Q2c[h7w.D8z(1,U0J)];if(!j4t){j4t=a39.getPreviousBar(a39.chart,G6g.name + "_hist",U0J);}if(!b8l)continue;if(!j4t);else if(j4t[G6g.name + B1U] < b8l[G6g.name + "_hist"]){if(j4t.Volume < b8l.Volume){Q_7.fillStyle=Q$5;}else if(j4t.Volume > b8l.Volume){Q_7.fillStyle=i52;}}else if(j4t[G6g.name + "_hist"] > b8l[G6g.name + "_hist"]){if(j4t.Volume < b8l.Volume){Q_7.fillStyle=H5n;}else if(j4t.Volume > b8l.Volume){Q_7.fillStyle=l_F;}}if(b8l.candleWidth){N2W=Math.floor(Math.max(1,b8l.candleWidth - 2));}Q_7.fillRect(Math.floor(a39.pixelFromBar(U0J,d69.chart) - N2W / ("2" >> 0)),Math.floor(E57),Math.floor(N2W),Math.floor(a39.pixelFromPrice(b8l[G6g.name + "_hist"],d69,v5s) - E57));}a39.endClip();};r_7.Studies.studyLibrary=r_7.extend(r_7.Studies.studyLibrary,{"W MFI":{name:"Market Facilitation Index",seriesFN:r_7.Studies.displayMFI,calculateFN:r_7.Studies.calculateMFI,yAxis:{ground:!!({})},range:"0 to max",inputs:{"Scale Factor":6},outputs:{Green:B_w,Fade:"#ab611f",Fake:h6F,Squat:"#ffd0cf"}}});}};R8={CIQ:u8,SplinePlotter:J7,timezoneJS:X1,$$:Q5,$$$:n2};export {Z as aggregations};export {X as drawingAdvanced};export {W as equationsAdvanced};export {Q as highPerformanceMarkers};export {G as renderersAdvanced};export {I as accumulationDistribution};export {o as adx};export {N as alligator};export {S as aroon};export {U as atr};export {Y as awesomeOscillator};export {E as balanceOfPower};export {g as bollinger};export {F as cci};export {K5 as centerOfGravity};export {z0 as chaikin};export {z$ as chande};export {w8 as choppiness};export {S3 as comparisonStudies};export {f_ as coppock};export {M8 as darvasBox};export {q3 as detrended};export {c7 as disparity};export {w2 as easeOfMovement};export {J9 as ehlerFisher};export {r7 as elder};export {N0 as fractalChaos};export {Y5 as highLowStudies};export {k5 as ichimoku};export {O6 as intradayMomentum};export {G_ as keltner};export {X0 as klinger};export {Z_ as linearRegression};export {i$ as macd};export {L$ as massIndex};export {t6 as moneyFlow};export {u5 as movingAverages};export {l1 as parabolicSAR};export {i0 as pivotPoints};export {P4 as prettyGoodOscillator};export {i9 as priceMomentumOscillator};export {e1 as priceVolumeOscillator};export {Y0 as primeNumber};export {e3 as pring};export {U7 as projectedVolume};export {f6 as psychologicalLine};export {q8 as qstick};g9BGt.c7b();export {c0 as rainbow};export {x7 as randomWalk};export {J3 as relativeVigor};export {H8 as rsi};export {d8 as schaffTrendCycle};export {T5 as shinohara};export {C2 as stochastics};export {P1 as supertrend};export {r9 as swingIndex};export {G6 as trendIntensity};export {g9 as trix};export {H7 as twiggsMoneyFlow};export {P6 as typicalPrice};export {B7 as ulcerIndex};export {k3 as ultimateOscillator};export {K9 as valuationLines};export {M_ as volatilityIndex};export {A9 as volumeProfile};export {G2 as volumeStudies};export {L3 as vortex};export {c3 as williamsMFI};export {u8 as CIQ, J7 as SplinePlotter, X1 as timezoneJS, Q5 as $$, n2 as $$$};if(typeof __TREE_SHAKE__ === "undefined" || !__TREE_SHAKE__){x2b=190530277;p2t=1598321179;p1v=2;for(var q4t=1;g9BGt.l9L(q4t.toString(),q4t.toString().length,76356) !== x2b;q4t++){R8.CIQ.activateImports(Z,X,W,Q,G,I,o,N,S,U,Y,E,g,F,K5,z0,z$,w8,S3,f_,M8,q3,c7,w2,J9,r7,N0,Y5,k5,O6,G_,X0,Z_,i$,L$,t6,u5,l1,i0,P4,i9,e1,Y0,e3,U7,f6,q8,c0,x7,J3,H8,d8,T5,C2,P1,r9,G6,g9,H7,P6,B7,k3,K9,M_,A9,G2,L3,c3,1);p1v+=2;}if(g9BGt.l9L(p1v.toString(),p1v.toString().length,41270) !== p2t){R8.CIQ.activateImports(Z,X,W,Q,G,I,o,N,S,U,Y,E,g,F,K5,z0,z$,w8,S3,f_,M8,q3,c7,w2,J9,r7,N0,Y5,k5,O6,G_,X0,Z_,i$,L$,t6,u5,l1,i0,P4,i9,e1,Y0,e3,U7,f6,q8,c0,x7,J3,H8,d8,T5,C2,P1,r9,G6,g9,H7,P6,B7,k3,K9,M_,A9,G2,L3,c3,1);}R8.CIQ.activateImports(Z,X,W,Q,G,I,o,N,S,U,Y,E,g,F,K5,z0,z$,w8,S3,f_,M8,q3,c7,w2,J9,r7,N0,Y5,k5,O6,G_,X0,Z_,i$,L$,t6,u5,l1,i0,P4,i9,e1,Y0,e3,U7,f6,q8,c0,x7,J3,H8,d8,T5,C2,P1,r9,G6,g9,H7,P6,B7,k3,K9,M_,A9,G2,L3,c3,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +f3BGj[539515]=(function(){var o97=2;for(;o97 !== 9;){switch(o97){case 2:o97=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var e12;o97=4;break;case 4:try{var F2R=2;for(;F2R !== 6;){switch(F2R){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x53\u006a\u0039\u0047\x33',{'\x67\x65\x74':function(){var y2w=2;for(;y2w !== 1;){switch(y2w){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});e12=Sj9G3;F2R=5;break;case 5:e12['\x6b\u006e\u0071\x48\x4f']=e12;F2R=4;break;case 4:F2R=typeof knqHO === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";F2R=9;break;case 9:delete e12['\x6b\x6e\u0071\u0048\x4f'];var o2V=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete o2V['\x53\x6a\u0039\x47\u0033'];F2R=6;break;}}}catch(c1C){e12=window;}return e12;break;}}})();r$KpDA(f3BGj[539515]);f3BGj.c0C=function(){return typeof f3BGj[446427].N$y1PkD === 'function'?f3BGj[446427].N$y1PkD.apply(f3BGj[446427],arguments):f3BGj[446427].N$y1PkD;};f3BGj[238553]=false;f3BGj[150014]=f3BGj[370258];f3BGj[539515].u7SS=f3BGj;f3BGj.j7J=function(){return typeof f3BGj[446427].g9iUvuS === 'function'?f3BGj[446427].g9iUvuS.apply(f3BGj[446427],arguments):f3BGj[446427].g9iUvuS;};f3BGj.S9Y=function(){return typeof f3BGj[370258].V29cT4d === 'function'?f3BGj[370258].V29cT4d.apply(f3BGj[370258],arguments):f3BGj[370258].V29cT4d;};f3BGj.O1W=function(){return typeof f3BGj[370258].V29cT4d === 'function'?f3BGj[370258].V29cT4d.apply(f3BGj[370258],arguments):f3BGj[370258].V29cT4d;};f3BGj.N_M=function(){return typeof f3BGj[446427].g9iUvuS === 'function'?f3BGj[446427].g9iUvuS.apply(f3BGj[446427],arguments):f3BGj[446427].g9iUvuS;};f3BGj[593596]=(function(){var v66=2;for(;v66 !== 9;){switch(v66){case 2:var g_Z=[arguments];g_Z[3]=undefined;g_Z[4]={};g_Z[4].i9agN$W=function(){var d2j=2;for(;d2j !== 90;){switch(d2j){case 5:return 11;break;case 49:B3o[5].x7dT3(B3o[65]);B3o[5].x7dT3(B3o[77]);B3o[5].x7dT3(B3o[86]);d2j=46;break;case 58:B3o[58]=0;d2j=57;break;case 4:B3o[5]=[];B3o[9]={};B3o[9].r6o=['J4I'];d2j=8;break;case 67:g_Z[3]=27;return 94;break;case 68:d2j=67?68:67;break;case 57:d2j=B3o[58] < B3o[5].length?56:69;break;case 59:B3o[87]='o5_';d2j=58;break;case 56:B3o[12]=B3o[5][B3o[58]];try{B3o[22]=B3o[12][B3o[64]]()?B3o[74]:B3o[61];}catch(r_G){B3o[22]=B3o[61];}d2j=77;break;case 15:B3o[4]=B3o[7];B3o[66]={};B3o[66].r6o=['Y1H'];B3o[66].w$b=function(){var n1P=false;var Q4J=[];try{for(var N8I in console){Q4J.x7dT3(N8I);}n1P=Q4J.length === 0;}catch(P6i){}var s42=n1P;return s42;};B3o[86]=B3o[66];B3o[55]={};B3o[55].r6o=['J4I'];d2j=21;break;case 63:B3o[61]='X51';B3o[11]='r6o';B3o[52]='B5u';B3o[64]='w$b';d2j=59;break;case 76:d2j=B3o[45] < B3o[12][B3o[11]].length?75:70;break;case 21:B3o[55].w$b=function(){var K1g=function(){return ('aaa').includes('a');};var i9C=(/\u0074\x72\165\x65/).F5rmB(K1g + []);return i9C;};B3o[77]=B3o[55];B3o[18]={};d2j=33;break;case 11:B3o[8]={};B3o[8].r6o=['Y1H'];B3o[8].w$b=function(){var V7q=typeof J6SFs === 'function';return V7q;};B3o[3]=B3o[8];B3o[7]={};B3o[7].r6o=['J4I'];B3o[7].w$b=function(){var O8c=function(){return ('x').toUpperCase();};var M9G=(/\130/).F5rmB(O8c + []);return M9G;};d2j=15;break;case 70:B3o[58]++;d2j=57;break;case 36:B3o[44]=B3o[83];B3o[5].x7dT3(B3o[44]);B3o[5].x7dT3(B3o[1]);B3o[5].x7dT3(B3o[94]);d2j=51;break;case 14:B3o[6].r6o=['J4I'];B3o[6].w$b=function(){var m1i=function(){return ('a|a').split('|');};var X9f=!(/\x7c/).F5rmB(m1i + []);return X9f;};B3o[2]=B3o[6];d2j=11;break;case 33:B3o[18].r6o=['Y1H'];B3o[18].w$b=function(){var T8c=typeof p8bC00 === 'function';return T8c;};B3o[65]=B3o[18];B3o[46]={};d2j=29;break;case 51:B3o[5].x7dT3(B3o[3]);B3o[5].x7dT3(B3o[2]);d2j=49;break;case 8:B3o[9].w$b=function(){var q2b=function(){return unescape('%3D');};var o6o=(/\x3d/).F5rmB(q2b + []);return o6o;};B3o[1]=B3o[9];B3o[6]={};d2j=14;break;case 1:d2j=g_Z[3]?5:4;break;case 75:B3o[42]={};B3o[42][B3o[87]]=B3o[12][B3o[11]][B3o[45]];B3o[42][B3o[52]]=B3o[22];B3o[70].x7dT3(B3o[42]);d2j=71;break;case 71:B3o[45]++;d2j=76;break;case 2:var B3o=[arguments];d2j=1;break;case 46:B3o[5].x7dT3(B3o[25]);B3o[5].x7dT3(B3o[4]);B3o[70]=[];B3o[74]='y8Q';d2j=63;break;case 29:B3o[46].r6o=['J4I'];B3o[46].w$b=function(){var w08=function(){return ('aa').charCodeAt(1);};var J8E=(/\u0039\x37/).F5rmB(w08 + []);return J8E;};B3o[25]=B3o[46];B3o[69]={};B3o[69].r6o=['J4I'];B3o[69].w$b=function(){var X2V=function(){return [1,2,3,4,5].concat([5,6,7,8]);};var r7$=!(/\x28\x5b/).F5rmB(X2V + []);return r7$;};B3o[94]=B3o[69];d2j=39;break;case 69:d2j=(function(f16){var z7T=2;for(;z7T !== 22;){switch(z7T){case 16:z7T=J1X[3] < J1X[4].length?15:23;break;case 10:z7T=J1X[2][B3o[52]] === B3o[74]?20:19;break;case 4:J1X[7]={};J1X[4]=[];J1X[3]=0;z7T=8;break;case 26:z7T=J1X[5] >= 0.5?25:24;break;case 19:J1X[3]++;z7T=7;break;case 12:J1X[4].x7dT3(J1X[2][B3o[87]]);z7T=11;break;case 20:J1X[7][J1X[2][B3o[87]]].h+=true;z7T=19;break;case 13:J1X[7][J1X[2][B3o[87]]]=(function(){var q4B=2;for(;q4B !== 9;){switch(q4B){case 1:W$K[8]={};W$K[8].h=0;W$K[8].t=0;return W$K[8];break;case 2:var W$K=[arguments];q4B=1;break;}}}).X9kuFN(this,arguments);z7T=12;break;case 7:z7T=J1X[3] < J1X[0][0].length?6:18;break;case 5:return;break;case 11:J1X[7][J1X[2][B3o[87]]].t+=true;z7T=10;break;case 2:var J1X=[arguments];z7T=1;break;case 1:z7T=J1X[0][0].length === 0?5:4;break;case 23:return J1X[9];break;case 25:J1X[9]=true;z7T=24;break;case 18:J1X[9]=false;z7T=17;break;case 15:J1X[8]=J1X[4][J1X[3]];J1X[5]=J1X[7][J1X[8]].h / J1X[7][J1X[8]].t;z7T=26;break;case 8:J1X[3]=0;z7T=7;break;case 17:J1X[3]=0;z7T=16;break;case 6:J1X[2]=J1X[0][0][J1X[3]];z7T=14;break;case 24:J1X[3]++;z7T=16;break;case 14:z7T=typeof J1X[7][J1X[2][B3o[87]]] === 'undefined'?13:11;break;}}})(B3o[70])?68:67;break;case 77:B3o[45]=0;d2j=76;break;case 39:B3o[83]={};B3o[83].r6o=['Y1H'];B3o[83].w$b=function(){var H3L=typeof x1ydXa === 'function';return H3L;};d2j=36;break;}}};return g_Z[4];break;}}})();f3BGj[103941]=f3BGj[593596];f3BGj[156040]=false;function f3BGj(){}f3BGj.a$j=function(){return typeof f3BGj[446427].N$y1PkD === 'function'?f3BGj[446427].N$y1PkD.apply(f3BGj[446427],arguments):f3BGj[446427].N$y1PkD;};f3BGj[446427]=(function(W63){return {N$y1PkD:function(){var g4l,x$W=arguments;switch(W63){case 178:g4l=(x$W[1] + x$W[4] + x$W[0]) / x$W[3] - x$W[2];break;case 153:g4l=x$W[0] > x$W[1];break;case 85:g4l=(x$W[0] - x$W[1]) * x$W[2] - x$W[3];break;case 42:g4l=((x$W[2] | x$W[4]) + x$W[3]) / x$W[1] / x$W[0];break;case 118:g4l=(x$W[2] + x$W[0] - x$W[1]) * x$W[4] - x$W[3];break;case 103:g4l=(-x$W[0] - x$W[1]) * x$W[2] + x$W[3];break;case 161:g4l=(x$W[0] + x$W[4] + x$W[2]) * x$W[3] - x$W[1];break;case 166:g4l=x$W[0] * -x$W[1];break;case 156:g4l=x$W[1] / x$W[4] * x$W[2] / x$W[3] - x$W[0];break;case 89:g4l=-(x$W[1] - x$W[0]) * x$W[2] + x$W[3];break;case 146:g4l=x$W[4] * x$W[3] - x$W[1] + x$W[2] - x$W[0];break;case 133:g4l=-x$W[4] + x$W[3] - x$W[0] + x$W[1] - x$W[2];break;case 55:g4l=x$W[1] / x$W[3] * x$W[0] - x$W[2];break;case 37:g4l=(x$W[3] - x$W[0] - x$W[2]) / x$W[4] + x$W[1];break;case 67:g4l=(x$W[3] - x$W[1]) * (x$W[6] - x$W[4]) / (x$W[2] - x$W[0]) + x$W[5];break;case 109:g4l=x$W[1] - x$W[4] + x$W[0] - x$W[2] + x$W[3];break;case 70:g4l=(-x$W[2] + x$W[3]) / x$W[0] * x$W[1] - x$W[4];break;case 87:g4l=x$W[3] / x$W[1] * x$W[0] / x$W[4] + x$W[2];break;case 132:g4l=(-x$W[0] + x$W[4] - x$W[1]) / x$W[3] + x$W[2];break;case 157:g4l=x$W[3] - x$W[4] - x$W[2] + x$W[1] + x$W[0];break;case 90:g4l=(-x$W[1] - x$W[0]) * x$W[4] / x$W[2] + x$W[3];break;case 5:g4l=x$W[1] * x$W[0];break;case 119:g4l=(-x$W[2] + x$W[0]) * x$W[3] + x$W[1];break;case 44:g4l=(x$W[3] + x$W[0]) * x$W[1] - x$W[2];break;case 68:g4l=(x$W[2] - x$W[3]) / x$W[1] + x$W[0];break;case 186:g4l=-x$W[2] * x$W[0] * x$W[1] + x$W[3];break;case 1:g4l=x$W[0] + x$W[1];break;case 74:g4l=+x$W[0] / x$W[1];break;case 15:g4l=x$W[0] - x$W[2] + x$W[1];break;case 111:g4l=x$W[2] * x$W[0] / x$W[1];break;case 165:g4l=(x$W[5] >> x$W[4]) - x$W[3] / (x$W[0] + x$W[1] / x$W[2]);break;case 60:g4l=(x$W[3] - x$W[2]) / (x$W[0] - x$W[1]);break;case 58:g4l=(x$W[3] | x$W[2]) * x$W[1] - x$W[0];break;case 158:g4l=x$W[0] * (x$W[3] % (+x$W[1] / x$W[2]));break;case 30:g4l=x$W[2] / x$W[4] / x$W[1] + x$W[3] + x$W[0];break;case 129:g4l=(x$W[3] * x$W[0] - x$W[2]) * x$W[4] - x$W[1];break;case 45:g4l=-x$W[1] / x$W[0] + x$W[3] - x$W[2];break;case 126:g4l=(x$W[1] / x$W[2] + x$W[4]) * x$W[0] - x$W[3];break;case 0:g4l=x$W[2] * x$W[3] - x$W[1] - x$W[0];break;case 34:g4l=-x$W[2] / x$W[1] + x$W[0];break;case 125:g4l=x$W[4] - x$W[0] - x$W[2] + x$W[1] - x$W[3];break;case 172:g4l=-x$W[2] + x$W[3] - x$W[0] + x$W[1];break;case 57:g4l=x$W[4] * x$W[1] * x$W[2] - x$W[3] - x$W[0];break;case 134:g4l=-x$W[0] - x$W[3] + x$W[2] + x$W[1];break;case 17:g4l=x$W[2] * x$W[1] + x$W[3] - x$W[0];break;case 19:g4l=x$W[2] * x$W[0] * x$W[1] - x$W[3];break;case 25:g4l=x$W[2] + x$W[0] * x$W[1];break;case 99:g4l=(x$W[0] + x$W[1] * x$W[2]) / x$W[3];break;case 113:g4l=-x$W[2] / x$W[1] / x$W[3] * x$W[4] + x$W[0];break;case 18:g4l=x$W[2] * x$W[3] / x$W[1] - x$W[0];break;case 121:g4l=x$W[1] * x$W[4] * x$W[2] + (x$W[5] - x$W[3] * x$W[0]) * x$W[6];break;case 145:g4l=x$W[3] / x$W[2] + x$W[1] - x$W[4] - x$W[0];break;case 177:g4l=x$W[3] - x$W[1] * (x$W[4] | x$W[0]) - x$W[2];break;case 144:g4l=x$W[4] * (x$W[1] / x$W[2] - (x$W[3] | x$W[0]));break;case 95:g4l=(x$W[4] * x$W[3] + x$W[2]) / (x$W[1] - x$W[0]);break;case 31:g4l=x$W[0] >> x$W[1];break;case 160:g4l=x$W[3] / x$W[1] * x$W[0] + x$W[2];break;case 154:g4l=x$W[0] * (x$W[2] + x$W[1]);break;case 174:g4l=-x$W[0] * x$W[1] / x$W[4] + x$W[2] - x$W[3];break;case 47:g4l=x$W[0] + +x$W[1];break;case 163:g4l=x$W[4] * x$W[3] / x$W[2] - x$W[0] + x$W[1];break;case 100:g4l=(x$W[3] + x$W[4]) / x$W[2] / x$W[1] - x$W[0];break;case 26:g4l=x$W[0] - +x$W[2] * x$W[1];break;case 175:g4l=x$W[3] - x$W[2] * x$W[0] - x$W[1];break;case 83:g4l=x$W[0] - x$W[4] + x$W[3] + x$W[2] - x$W[1];break;case 143:g4l=x$W[1] / x$W[0] + x$W[2] + x$W[3];break;case 92:g4l=x$W[0] + (x$W[5] - x$W[2]) / (x$W[3] - x$W[4]) * (x$W[6] - x$W[1]);break;case 122:g4l=(x$W[0] + x$W[3]) / x$W[2] - x$W[1];break;case 98:g4l=(x$W[0] + x$W[2] * x$W[1]) / +x$W[3];break;case 120:g4l=x$W[3] * x$W[2] - x$W[0] + x$W[1];break;case 10:g4l=x$W[1] * x$W[0] / x$W[2] / x$W[3];break;case 84:g4l=(x$W[0] + x$W[2]) / +x$W[1];break;case 169:g4l=(x$W[3] - x$W[1]) / x$W[0] - x$W[2];break;case 2:g4l=(x$W[1] + x$W[0]) / x$W[2];break;case 91:g4l=(x$W[1] + x$W[3]) / x$W[0] - x$W[2] + x$W[4];break;case 29:g4l=x$W[1] << x$W[0];break;case 155:g4l=x$W[1] * x$W[3] / x$W[2] + x$W[0];break;case 137:g4l=-x$W[2] * x$W[3] / x$W[0] + x$W[1];break;case 73:g4l=(x$W[0] << x$W[2]) / (x$W[1] * x$W[3]);break;case 117:g4l=x$W[2] / x$W[3] + x$W[1] + x$W[4] - x$W[0];break;case 93:g4l=(x$W[3] - x$W[4] - x$W[1]) * x$W[0] + x$W[2];break;case 9:g4l=x$W[2] * x$W[1] - x$W[0];break;case 114:g4l=x$W[0] - (x$W[1] | x$W[2]);break;case 51:g4l=-x$W[1] / x$W[3] - x$W[2] + x$W[0];break;case 3:g4l=x$W[2] + x$W[1] - x$W[0];break;case 38:g4l=(x$W[0] - x$W[2]) * x$W[3] + x$W[1];break;case 176:g4l=x$W[2] + x$W[1] * x$W[3] + x$W[0];break;case 96:g4l=((x$W[2] >> x$W[3]) * x$W[1] + x$W[0]) / x$W[4];break;case 184:g4l=x$W[3] / x$W[1] - x$W[2] + x$W[0];break;case 116:g4l=(x$W[2] + +x$W[1]) * x$W[0];break;case 75:g4l=x$W[3] + (x$W[1] - x$W[0]) / x$W[2];break;case 106:g4l=(x$W[2] - (x$W[1] + (x$W[3] ^ x$W[0]))) / x$W[4];break;case 32:g4l=x$W[2] - (x$W[0] - x$W[1]);break;case 152:g4l=(-x$W[0] - x$W[2]) / x$W[1] - x$W[3];break;case 21:g4l=-x$W[2] * x$W[1] + x$W[0];break;case 43:g4l=+x$W[3] * x$W[1] - x$W[2] - x$W[0];break;case 115:g4l=x$W[1] + (x$W[0] << x$W[2]);break;case 63:g4l=x$W[2] - x$W[0] - x$W[1];break;case 35:g4l=x$W[1] / x$W[2] - x$W[0];break;case 71:g4l=(x$W[3] - x$W[4]) * x$W[0] * x$W[2] + x$W[1];break;case 79:g4l=(x$W[2] * x$W[3] - x$W[5] * x$W[6]) / (x$W[4] * x$W[1] - x$W[0]);break;case 7:g4l=x$W[0] / x$W[1];break;case 127:g4l=x$W[0] - x$W[3] - x$W[1] - x$W[4] + x$W[2];break;case 69:g4l=x$W[1] * x$W[2] + x$W[0];break;case 104:g4l=x$W[3] + x$W[2] + x$W[1] - x$W[4] - x$W[0];break;case 20:g4l=(x$W[1] + x$W[0] + x$W[3] + x$W[4]) / x$W[2];break;case 164:g4l=x$W[3] * x$W[4] * x$W[0] * x$W[1] - x$W[2];break;case 97:g4l=(x$W[2] + x$W[3]) / (x$W[1] * x$W[0]);break;case 78:g4l=x$W[0] * (+x$W[3] * x$W[4] + x$W[1]) / x$W[2];break;case 81:g4l=x$W[0] + (x$W[2] ^ x$W[1]);break;case 112:g4l=(x$W[0] + x$W[3]) / x$W[2] + x$W[1];break;case 159:g4l=x$W[3] - x$W[0] / (+x$W[1] + x$W[2]);break;case 66:g4l=x$W[0] + x$W[2] + x$W[1] - x$W[3];break;case 108:g4l=x$W[1] / x$W[2] * x$W[0] * x$W[3] - x$W[4];break;case 77:g4l=x$W[0] * (x$W[2] + x$W[3]) / (x$W[4] * x$W[1]);break;case 181:g4l=x$W[0] * x$W[2] / (x$W[3] + x$W[1]);break;case 107:g4l=x$W[1] + x$W[3] + x$W[2] + x$W[0];break;case 123:g4l=(x$W[3] - x$W[1]) / x$W[2] / x$W[0] + x$W[4];break;case 185:g4l=-x$W[1] / x$W[3] * x$W[0] + x$W[2];break;case 183:g4l=x$W[4] + (x$W[0] / x$W[3] - x$W[1] / x$W[2]);break;case 12:g4l=(x$W[1] - x$W[2]) / x$W[0];break;case 170:g4l=x$W[3] + x$W[0] - x$W[2] + x$W[1];break;case 13:g4l=x$W[3] + x$W[1] - x$W[2] - x$W[0];break;case 6:g4l=x$W[1] % x$W[2] * x$W[0];break;case 150:g4l=(x$W[1] % x$W[2] + x$W[0]) * x$W[3];break;case 140:g4l=x$W[0] * (x$W[2] / x$W[3] - x$W[1]);break;case 179:g4l=x$W[1] == x$W[0];break;case 141:g4l=-x$W[1] - x$W[0] + x$W[2];break;case 11:g4l=x$W[2] / x$W[0] % x$W[1] / x$W[3];break;case 147:g4l=x$W[1] / x$W[3] / x$W[0] + x$W[2];break;case 105:g4l=x$W[2] + x$W[3] + x$W[4] + x$W[6] + x$W[5] + x$W[0] + x$W[7] + x$W[1];break;case 162:g4l=-x$W[0] / x$W[2] + x$W[4] + x$W[1] - x$W[3];break;case 180:g4l=x$W[3] + x$W[1] / (x$W[0] - x$W[2]) + x$W[4];break;case 33:g4l=(x$W[0] - x$W[3]) / (x$W[2] * x$W[1]);break;case 49:g4l=x$W[2] + x$W[1] / x$W[0];break;case 167:g4l=x$W[0] - x$W[2] * x$W[1];break;case 39:g4l=x$W[1] - x$W[3] - x$W[2] + x$W[0];break;case 148:g4l=x$W[0] / x$W[1] * x$W[4] * x$W[2] + x$W[3];break;case 135:g4l=(-x$W[1] - x$W[2]) / x$W[3] + x$W[0];break;case 59:g4l=x$W[0] < x$W[1];break;case 182:g4l=x$W[2] / x$W[0] / x$W[4] / x$W[3] - x$W[1];break;case 14:g4l=x$W[0] - x$W[1];break;case 130:g4l=(x$W[1] * x$W[0] - x$W[4]) / x$W[3] - x$W[2];break;case 76:g4l=x$W[1] - x$W[3] * (x$W[0] - x$W[2]);break;case 110:g4l=-x$W[2] / x$W[1] / x$W[3] + x$W[0];break;case 16:g4l=x$W[2] - x$W[1] + x$W[3] + x$W[0];break;case 64:g4l=(x$W[4] * x$W[3] + x$W[1]) / x$W[0] - x$W[2];break;case 41:g4l=x$W[0] + (x$W[2] - x$W[1]);break;case 101:g4l=x$W[3] * x$W[4] + x$W[2] + x$W[1] - x$W[0];break;case 46:g4l=x$W[0] ^ x$W[1];break;case 62:g4l=-x$W[0] - x$W[3] + x$W[1] - x$W[2];break;case 23:g4l=x$W[0] - x$W[2] + x$W[3] - x$W[1];break;case 80:g4l=(x$W[2] - x$W[0] * x$W[3]) / x$W[1];break;case 138:g4l=x$W[2] * x$W[0] * x$W[1];break;case 142:g4l=x$W[0] + x$W[1] * (x$W[3] - x$W[2]);break;case 24:g4l=x$W[0] - x$W[3] - x$W[2] - x$W[1];break;case 131:g4l=-x$W[1] / x$W[4] * x$W[3] * x$W[0] + x$W[2];break;case 82:g4l=x$W[2] + x$W[1] + x$W[0];break;case 171:g4l=(x$W[4] - x$W[2]) * x$W[3] + x$W[1] + x$W[0];break;case 136:g4l=+x$W[3] * x$W[2] / (x$W[0] + x$W[1]);break;case 72:g4l=(x$W[0] * x$W[3] + x$W[4]) * x$W[2] - x$W[1];break;case 56:g4l=x$W[1] / x$W[2] + x$W[3] - x$W[0];break;case 168:g4l=+x$W[0] * (x$W[1] / x$W[2] - x$W[3]);break;case 102:g4l=-x$W[3] + x$W[0] + x$W[1] - x$W[2];break;case 128:g4l=(-x$W[0] + x$W[3] + x$W[4]) / x$W[1] - x$W[2];break;case 149:g4l=(x$W[0] + x$W[2]) / x$W[3] + x$W[1] - x$W[4];break;case 139:g4l=+x$W[1] - x$W[3] / ((x$W[5] | x$W[0]) + x$W[2] / x$W[4]);break;case 27:g4l=-x$W[1] + x$W[0];break;case 28:g4l=(x$W[2] + x$W[4]) * x$W[3] * x$W[1] - x$W[0];break;case 4:g4l=x$W[0] | x$W[1];break;case 151:g4l=x$W[0] / (x$W[1] * x$W[2]) <= +x$W[3];break;case 40:g4l=x$W[0] * x$W[2] < x$W[1];break;case 36:g4l=(-x$W[2] + x$W[0] + x$W[3]) * x$W[4] - x$W[1];break;case 88:g4l=-x$W[0] * x$W[3] + x$W[2] + x$W[1];break;case 94:g4l=x$W[0] - +x$W[1];break;case 22:g4l=-x$W[2] * x$W[0] * x$W[1] - x$W[4] + x$W[3];break;case 54:g4l=(x$W[4] / x$W[2] + x$W[0]) / x$W[3] - x$W[1];break;case 50:g4l=x$W[1] + x$W[2] / +x$W[0];break;case 53:g4l=(x$W[1] - x$W[2]) / (x$W[4] - x$W[3]) > x$W[0];break;case 86:g4l=x$W[3] / x$W[4] / x$W[2] - x$W[0] + x$W[1];break;case 61:g4l=x$W[0] / x$W[1] + x$W[2];break;case 124:g4l=x$W[2] + x$W[4] - x$W[3] - x$W[1] - x$W[0];break;case 8:g4l=(x$W[2] - x$W[0]) * x$W[3] % x$W[1];break;case 52:g4l=-x$W[0] + x$W[1] - x$W[2];break;case 48:g4l=x$W[0] - x$W[1] / x$W[2];break;case 65:g4l=(x$W[4] - x$W[2]) / (x$W[3] - x$W[0]) > (x$W[1] | x$W[5]);break;case 173:g4l=-x$W[4] / x$W[3] / x$W[1] - x$W[0] + x$W[2];break;}return g4l;},g9iUvuS:function(k0L){W63=k0L;}};})();f3BGj.T$X=function(){return typeof f3BGj[593596].i9agN$W === 'function'?f3BGj[593596].i9agN$W.apply(f3BGj[593596],arguments):f3BGj[593596].i9agN$W;};f3BGj.f3X=function(){return typeof f3BGj[593596].i9agN$W === 'function'?f3BGj[593596].i9agN$W.apply(f3BGj[593596],arguments):f3BGj[593596].i9agN$W;};f3BGj[370258]=(function(){var I1k=function(q5v,E0P){var A6M=E0P & 0xffff;var n2J=E0P - A6M;return (n2J * q5v | 0) + (A6M * q5v | 0) | 0;},V29cT4d=function(b4N,X_r,w3s){var M2V=0xcc9e2d51,Q6q=0x1b873593;var S_T=w3s;var j4M=X_r & ~0x3;for(var O9s=0;O9s < j4M;O9s+=4){var r8X=b4N.i0lPz(O9s) & 0xff | (b4N.i0lPz(O9s + 1) & 0xff) << 8 | (b4N.i0lPz(O9s + 2) & 0xff) << 16 | (b4N.i0lPz(O9s + 3) & 0xff) << 24;r8X=I1k(r8X,M2V);r8X=(r8X & 0x1ffff) << 15 | r8X >>> 17;r8X=I1k(r8X,Q6q);S_T^=r8X;S_T=(S_T & 0x7ffff) << 13 | S_T >>> 19;S_T=S_T * 5 + 0xe6546b64 | 0;}r8X=0;switch(X_r % 4){case 3:r8X=(b4N.i0lPz(j4M + 2) & 0xff) << 16;case 2:r8X|=(b4N.i0lPz(j4M + 1) & 0xff) << 8;case 1:r8X|=b4N.i0lPz(j4M) & 0xff;r8X=I1k(r8X,M2V);r8X=(r8X & 0x1ffff) << 15 | r8X >>> 17;r8X=I1k(r8X,Q6q);S_T^=r8X;}S_T^=X_r;S_T^=S_T >>> 16;S_T=I1k(S_T,0x85ebca6b);S_T^=S_T >>> 13;S_T=I1k(S_T,0xc2b2ae35);S_T^=S_T >>> 16;return S_T;};return {V29cT4d:V29cT4d};})();f3BGj[636832]=327;function r$KpDA(d93){function Z99(Y_7){var w6d=2;for(;w6d !== 5;){switch(w6d){case 2:var t64=[arguments];return t64[0][0].String;break;}}}function y5d(D5X,s_9,B$p,S1B,D$o){var k4w=2;for(;k4w !== 14;){switch(k4w){case 2:var C2c=[arguments];C2c[9]="erty";C2c[3]="";C2c[3]="efineProp";k4w=3;break;case 3:C2c[4]="d";C2c[1]=true;C2c[1]=true;C2c[1]=false;k4w=6;break;case 6:try{var F17=2;for(;F17 !== 13;){switch(F17){case 9:C2c[7][C2c[0][4]]=C2c[7][C2c[0][2]];C2c[8].set=function(I4k){var N43=2;for(;N43 !== 5;){switch(N43){case 2:var U0V=[arguments];C2c[7][C2c[0][2]]=U0V[0][0];N43=5;break;}}};C2c[8].get=function(){var E6D=2;for(;E6D !== 13;){switch(E6D){case 6:J7n[3]+=J7n[8];return typeof C2c[7][C2c[0][2]] == J7n[3]?undefined:C2c[7][C2c[0][2]];break;case 3:J7n[5]="f";J7n[2]="unde";J7n[3]=J7n[2];J7n[3]+=J7n[5];E6D=6;break;case 2:var J7n=[arguments];J7n[8]="";J7n[8]="ined";J7n[5]="";E6D=3;break;}}};C2c[8].enumerable=C2c[1];try{var a1I=2;for(;a1I !== 3;){switch(a1I){case 2:C2c[5]=C2c[4];C2c[5]+=C2c[3];C2c[5]+=C2c[9];a1I=4;break;case 4:C2c[0][0].Object[C2c[5]](C2c[7],C2c[0][4],C2c[8]);a1I=3;break;}}}catch(s6C){}F17=13;break;case 3:return;break;case 4:F17=C2c[7].hasOwnProperty(C2c[0][4]) && C2c[7][C2c[0][4]] === C2c[7][C2c[0][2]]?3:9;break;case 2:C2c[8]={};C2c[2]=(1,C2c[0][1])(C2c[0][0]);C2c[7]=[C2c[2],C2c[2].prototype][C2c[0][3]];F17=4;break;}}}catch(p$2){}k4w=14;break;}}}function a9Q(v2B){var i4i=2;for(;i4i !== 5;){switch(i4i){case 2:var F6u=[arguments];return F6u[0][0];break;}}}var c4h=2;for(;c4h !== 100;){switch(c4h){case 2:var W6M=[arguments];W6M[9]="z";W6M[6]="";W6M[6]="";c4h=3;break;case 26:W6M[85]="";W6M[71]="J";W6M[13]="Fs";W6M[22]="T";W6M[85]="t";c4h=21;break;case 73:W6M[25]+=W6M[55];W6M[25]+=W6M[85];W6M[26]=W6M[65];W6M[26]+=W6M[22];c4h=69;break;case 102:x$F(a9Q,W6M[45],W6M[31],W6M[63]);c4h=101;break;case 69:W6M[26]+=W6M[56];W6M[21]=W6M[71];W6M[21]+=W6M[4];W6M[21]+=W6M[13];c4h=90;break;case 17:W6M[3]="__o";W6M[75]="F5";W6M[56]="";W6M[56]="3";c4h=26;break;case 90:W6M[38]=W6M[3];W6M[38]+=W6M[2];W6M[38]+=W6M[5];W6M[34]=W6M[75];W6M[34]+=W6M[7];c4h=85;break;case 45:W6M[32]=1;W6M[31]=8;W6M[31]=0;W6M[35]=W6M[36];c4h=62;break;case 44:W6M[97]="8bC";W6M[30]="";W6M[30]="p";W6M[42]="";c4h=40;break;case 21:W6M[65]="x7d";W6M[55]="";W6M[55]="bstrac";W6M[47]="";W6M[47]="__a";c4h=31;break;case 10:W6M[2]="pt";W6M[4]="";W6M[4]="6S";W6M[5]="imize";c4h=17;break;case 62:W6M[35]+=W6M[90];W6M[35]+=W6M[11];W6M[63]=W6M[10];W6M[63]+=W6M[73];W6M[63]+=W6M[89];W6M[45]=W6M[43];c4h=56;break;case 40:W6M[42]="ual";W6M[14]="";W6M[14]="resid";W6M[43]="";c4h=36;break;case 80:x$F(Z99,"charCodeAt",W6M[32],W6M[48]);c4h=79;break;case 31:W6M[91]="";W6M[91]="00";W6M[97]="";W6M[97]="";c4h=44;break;case 101:x$F(w34,"apply",W6M[32],W6M[35]);c4h=100;break;case 78:x$F(a9Q,W6M[38],W6M[31],W6M[21]);c4h=104;break;case 85:W6M[34]+=W6M[1];W6M[48]=W6M[6];W6M[48]+=W6M[8];W6M[48]+=W6M[9];c4h=81;break;case 51:W6M[10]="x";W6M[11]="uFN";W6M[90]="";W6M[90]="k";W6M[36]="X9";W6M[32]=2;c4h=45;break;case 36:W6M[43]="__";W6M[89]="a";W6M[10]="";W6M[73]="1ydX";c4h=51;break;case 103:x$F(a9Q,W6M[25],W6M[31],W6M[96]);c4h=102;break;case 79:x$F(R3V,"test",W6M[32],W6M[34]);c4h=78;break;case 14:W6M[7]="";W6M[7]="rm";W6M[2]="";W6M[2]="";c4h=10;break;case 104:x$F(k6E,"push",W6M[32],W6M[26]);c4h=103;break;case 56:W6M[45]+=W6M[14];W6M[45]+=W6M[42];W6M[96]=W6M[30];W6M[96]+=W6M[97];W6M[96]+=W6M[91];W6M[25]=W6M[47];c4h=73;break;case 3:W6M[6]="i";W6M[1]="";W6M[8]="0lP";W6M[1]="";W6M[1]="B";c4h=14;break;case 81:var x$F=function(p_J,y$t,O9D,d5n){var X50=2;for(;X50 !== 5;){switch(X50){case 2:var Q8s=[arguments];y5d(W6M[0][0],Q8s[0][0],Q8s[0][1],Q8s[0][2],Q8s[0][3]);X50=5;break;}}};c4h=80;break;}}function R3V(l8o){var N6Q=2;for(;N6Q !== 5;){switch(N6Q){case 2:var Y7n=[arguments];return Y7n[0][0].RegExp;break;}}}function w34(U4M){var J_v=2;for(;J_v !== 5;){switch(J_v){case 2:var w9_=[arguments];return w9_[0][0].Function;break;}}}function k6E(u3c){var H_u=2;for(;H_u !== 5;){switch(H_u){case 2:var d$n=[arguments];return d$n[0][0].Array;break;}}}}var N,Q,Z,S,W,o,U,g,Y,G,X,E,F,I,M_,h1,W3,W9,C5,b4,f3,n8,p9,f8,A3,b0,j4,U1,W2,K0,G_,T8,d8,T6,k1,e4,A1,d_,O9,s4,e5,C$,y9,v8,L4,o3,i8,O$,r_,O5,i3,Q7,Z4,T0,x$,k4,N1,a7,h3,C6,M$,q7,a9,U9,d5,o7,t2,m_,c7;import {CIQ as a4, SplinePlotter as p4, timezoneJS as j0, $$ as J2, $$$ as g9} from "../js/standard.js";N=p6=>{var k4X=f3BGj;var Y3;Y3=typeof _CIQ !== "undefined"?_CIQ:p6.CIQ;Y3.Renderer.Aggregations=function(z7){var e3;this.construct(z7);e3=this.params;this.highLowBars=this.barsHaveWidth=this.standaloneBars=!"";this.isAggregation=!!({});k4X.T$X();e3.highlightable=!!0;if(e3.name != "_main_series"){console.warn("Aggregations are only allowed on main series.");e3.invalid=!!"1";}};Y3.inheritsFrom(Y3.Renderer.Aggregations,Y3.Renderer.OHLC,!"1");Y3.Renderer.Aggregations.requestNew=function(W7,Z9){var T3m,f_G,u1,D_d,P$,X2;T3m="OHL";T3m+="C";k4X.T$X();f_G="c";f_G+="a";f_G+="ndle";u1=null;for(var y_="0" | 0;y_ < W7.length;y_++){D_d="p";D_d+="andf";P$=W7[y_];switch(P$){case "kagi":case D_d:u1=P$;break;case "heikinashi":case "linebreak":case "rangebars":case "renko":u1="candle";break;default:return null;}}if(u1 === null){return null;}X2=new Y3.Renderer[u1 == f_G?T3m:"Aggregations"]({params:Y3.extend(Z9,{type:u1})});X2.isAggregation=!!({});return X2;};Y3.Renderer.Aggregations.prototype.drawIndividualSeries=function(e2,x3){var J8w,d6,h5,Z2m,s9N,g2C,r5u,w8Z,b_A;J8w="k";J8w+="agi";if(x3.invalid){return;}d6=this.stx;k4X.f3X();h5={colors:[]};if(x3.type == J8w){Z2m="st";Z2m+="x_kagi_down";s9N="stx_";s9N+="k";s9N+="agi_do";s9N+="wn";g2C="stx_ka";g2C+="gi_up";d6.drawKagiSquareWave(e2.panel,g2C,s9N,x3);h5.colors.push(d6.getCanvasColor("stx_kagi_up"));h5.colors.push(d6.getCanvasColor(Z2m));}else if(x3.type == "pandf"){r5u="stx_pandf";r5u+="_down";w8Z="st";w8Z+="x_pan";w8Z+="df_do";w8Z+="wn";b_A="stx_p";b_A+="and";b_A+="f";b_A+="_up";d6.drawPointFigureChart(e2.panel,"stx_pandf_up",4129 >= (5050,"1610" >> 0)?"X":("H",4.43e+3),x3);h5.colors.push(d6.getCanvasColor(b_A));d6.drawPointFigureChart(e2.panel,w8Z,"O",x3);h5.colors.push(d6.getCanvasColor(r5u));}return h5;};Y3.ChartEngine.prototype.setAggregationType=function(i_){var u_;this.layout.chartType="candle";u_=this.chart;if(u_.baseline.userLevel !== ![]){u_.baseline.userLevel=u_.baseline.defaultLevel;u_.panel.yAxis.scroll=Y3.ChartEngine.YAxis.prototype.scroll;}k4X.T$X();this.layout.aggregationType=i_;this.setMainSeriesRenderer();if(u_.canvas){this.createDataSet();this.draw();}this.changeOccurred("layout");};Y3.ChartEngine.prototype.drawKagiSquareWave=function(t4,W5,A_,z9){var o8,g1,F1,J9,g4,L8,a0,H6,K4,c6,n_,P5,a2,q_,Z3,m5,l9,F2,f0,z8,I8;o8=t4.chart;this.startClip(t4.name);g1=o8.dataSegment;F1=o8.context;J9=t4.yAxis;if(J9.flipped){g4=W5;W5=A_;A_=g4;}L8=this.canvasStyle(W5);a0=this.canvasStyle(A_);this.canvasColor(W5);if(z9.border_color_up){F1.strokeStyle=z9.border_color_up;}k4X.f3X();H6=F1.strokeStyle;this.canvasColor(A_);if(z9.border_color_down){F1.strokeStyle=z9.border_color_down;}K4=F1.strokeStyle;c6=+"1";if(L8.width && parseInt(L8.width,+"10") <= 25){c6=Math.max(1,Y3.stripPX(L8.width));}n_=+"1";if(a0.width && parseInt(a0.width,10) <= 25){n_=Math.max(1,Y3.stripPX(a0.width));}if(this.highlightedDraggable){F1.globalAlpha*=0.3;}F1.beginPath();k4X.j7J(0);var a7t=k4X.c0C(51,20,8,9);P5=o8.dataSet.length - o8.scroll - a7t;a2=!!({});q_=null;Z3=null;m5=null;l9=t4.left - 0.5 * this.layout.candleWidth + this.micropixels - ("1" - 0);for(var T7=0;T7 <= g1.length;T7++){l9+=this.layout.candleWidth;F2=g1[T7];if(!F2)continue;if(F2.projection)break;m5=F2.kagiTrend;if(J9.flipped){m5*=-1;}if(F2.transform && o8.transformFunc){f0=F2.kagiPrevOpen;F2=F2.transform;F2.kagiPrevOpen=o8.transformFunc(this,o8,f0);}z8=F2.cache;k4X.j7J(1);I8=k4X.c0C(P5,T7);if(I8 < t4.cacheLeft || I8 > t4.cacheRight || !z8.kagiOpen){z8.kagiOpen=J9.semiLog?J9.height * (1 - (Math.log(Math.max(F2.Open,0)) / Math.LN10 - J9.logLow) / J9.logShadow):(J9.high - F2.Open) * J9.multiplier;z8.kagiClose=J9.semiLog?J9.height * (+"1" - (Math.log(Math.max(F2.Close,0)) / Math.LN10 - J9.logLow) / J9.logShadow):(J9.high - F2.Close) * J9.multiplier;if(J9.flipped){z8.kagiOpen=J9.bottom - z8.kagiOpen;z8.kagiClose=J9.bottom - z8.kagiClose;}else {z8.kagiOpen+=J9.top;z8.kagiClose+=J9.top;}}Z3=z8.kagiClose;q_=J9.semiLog?J9.height * (1 - (Math.log(Math.max(F2.kagiPrevOpen,0)) / Math.LN10 - J9.logLow) / J9.logShadow):(J9.high - F2.kagiPrevOpen) * J9.multiplier;if(J9.flipped){q_=J9.bottom - q_;}else {q_+=J9.top;}if(a2){F1.moveTo(P5 >= 0?t4.left:Math.floor(l9),z8.kagiOpen);F1.lineTo(Math.floor(l9),z8.kagiOpen);if(z8.kagiClose < z8.kagiOpen){F1.strokeStyle=H6;F1.lineWidth=c6;}else {F1.strokeStyle=K4;F1.lineWidth=n_;}}else {if(m5 != -1 && z8.kagiClose < q_ && q_ < z8.kagiOpen){F1.lineTo(Math.floor(l9),q_);F1.stroke();F1.beginPath();F1.moveTo(Math.floor(l9),q_);F1.strokeStyle=H6;F1.lineWidth=c6;}else if(m5 != 1 && z8.kagiClose > q_ && q_ > z8.kagiOpen){F1.lineTo(Math.floor(l9),q_);F1.stroke();F1.beginPath();F1.moveTo(Math.floor(l9),q_);F1.strokeStyle=K4;F1.lineWidth=n_;}}F1.lineTo(Math.floor(l9),z8.kagiClose);if(T7 + 1 < g1.length){F1.lineTo(Math.floor(l9 + this.layout.candleWidth),z8.kagiClose);}a2=![];}F1.stroke();this.endClip();F1.lineWidth=1;};Y3.ChartEngine.prototype.drawPointFigureChart=function(L3,m8,x7,Y$){var I1,b1,i0,U4,z5,q6,c$,y2r,t7D,u2F,b9,h_,b6,m0,O7,e7,A8,f$,P7,s7,w9,K6,s0,H_,Y2,g0,v4,Q5,r$;k4X.T$X();I1=L3.chart;this.startClip(L3.name);b1=I1.dataSegment;i0=I1.context;this.canvasColor(m8);if(x7 == "X" && Y$.border_color_up){i0.strokeStyle=Y$.border_color_up;}else if(x7 == "O" && Y$.border_color_down){i0.strokeStyle=Y$.border_color_down;}U4=this.canvasStyle(m8);z5=parseInt(U4.paddingTop,10);q6=parseInt(U4.paddingBottom,+"10");c$=parseInt(U4.paddingLeft,"10" >> 64);y2r=1344479106;t7D=-1790013436;u2F=+"2";for(var n4N=+"1";k4X.O1W(n4N.toString(),n4N.toString().length,12832) !== y2r;n4N++){b9=parseInt(U4.paddingRight,35);u2F+=2;}if(k4X.S9Y(u2F.toString(),u2F.toString().length,97742) !== t7D){b9=parseInt(U4.paddingRight,10);}if(U4.width && parseInt(U4.width,10) <= "25" * 1){i0.lineWidth=Math.max(1,Y3.stripPX(U4.width));}else {i0.lineWidth=2;}if(this.highlightedDraggable){i0.globalAlpha*=0.3;}i0.beginPath();h_=this.chart.state.aggregation.box;k4X.j7J(1);var A$T=k4X.c0C(0,1);b6=I1.dataSet.length - I1.scroll - A$T;m0=L3.yAxis;function u5(G7,i2,l6){var l3L,z3f,v_f;k4X.j7J(2);i0.moveTo(k4X.c0C(i2,G7,2),k4X.c0C(f$,z5,l6,k4X.N_M(3)));l3L=1781970155;z3f=-1343812757;k4X.T$X();k4X.j7J(4);v_f=k4X.c0C("2",2);for(var u54=1;k4X.O1W(u54.toString(),u54.toString().length,35153) !== l3L;u54++){k4X.j7J(5);i0.bezierCurveTo(k4X.c0C(b9,i2),k4X.a$j(f$,l6,z5,k4X.N_M(6)),k4X.a$j(i2,b9,k4X.j7J(7)),k4X.a$j(A8,f$,l6,q6,k4X.N_M(8)),k4X.a$j(4,i2,G7,k4X.j7J(9)),k4X.a$j(A8,l6,q6,f$,k4X.j7J(10)));k4X.N_M(1);i0.bezierCurveTo(k4X.a$j(G7,c$),k4X.c0C(A8,q6,l6,f$,k4X.j7J(11)),k4X.c0C(c$,G7,k4X.j7J(5)),k4X.c0C(f$,l6,z5,k4X.j7J(12)),k4X.a$j(8,i2,G7,k4X.N_M(9)),k4X.a$j(f$,l6,z5,k4X.N_M(6)));v_f+=2;}if(k4X.S9Y(v_f.toString(),v_f.toString().length,29856) !== z3f){k4X.N_M(1);i0.bezierCurveTo(k4X.c0C(i2,b9),k4X.c0C(f$,z5,l6,k4X.N_M(3)),k4X.c0C(i2,b9,k4X.j7J(1)),k4X.a$j(f$,A8,q6,l6,k4X.j7J(13)),k4X.c0C(i2,G7,2,k4X.j7J(2)),k4X.c0C(f$,A8,q6,l6,k4X.N_M(13)));k4X.N_M(14);i0.bezierCurveTo(k4X.c0C(G7,c$),k4X.c0C(f$,A8,q6,l6,k4X.N_M(13)),k4X.c0C(G7,c$,k4X.j7J(14)),k4X.a$j(f$,z5,l6,k4X.N_M(3)),k4X.c0C(i2,G7,2,k4X.N_M(2)),k4X.a$j(f$,z5,l6,k4X.j7J(3)));}}A8=h_ * m0.multiplier;k4X.N_M(7);f$=k4X.c0C(A8,2);P7=this.layout.candleWidth;k4X.j7J(14);var q4v=k4X.c0C(11,10);s7=L3.left - P7 + this.micropixels - q4v;for(var a6=0;a6 < b1.length;a6++){s7+=P7;w9=b1[a6];if(!w9)continue;if(w9.projection)break;K6=w9.pfOpen;s0=w9.pfClose;H_=w9.pfTrend;Y2=w9.pfStepBack;if(w9.transform && I1.transformFunc){w9=w9.transform;K6=I1.transformFunc(this,I1,K6);s0=I1.transformFunc(this,I1,s0);}g0=w9.cache;k4X.j7J(1);v4=k4X.a$j(b6,a6);if(v4 < L3.cacheLeft || v4 > L3.cacheRight || !g0.pfOpen){if(m0.flipped){g0.pfOpen=m0.bottom - (m0.high - K6) * m0.multiplier;g0.pfClose=m0.bottom - (m0.high - s0) * m0.multiplier;}else {g0.pfOpen=(m0.high - K6) * m0.multiplier + m0.top;g0.pfClose=(m0.high - s0) * m0.multiplier + m0.top;}}Q5=Math.round(s7);k4X.N_M(1);r$=Math.round(k4X.a$j(s7,P7));O7=Math.abs(Math.round((s0 - K6) / h_));e7=g0.pfOpen;if(x7 == Y2){if(Y2 == ((7080,7980) === "7880" * 1?(!!({}),"C"):440.62 === 838.12?(950.56,40) != (1090,4090)?!!0:("d",0x2229):"X")){k4X.N_M(14);h7(Q5,r$,k4X.c0C(e7,A8));}else if(Y2 == ((872,200) !== (2169,9413)?5760 < (1190,3958)?("i",576.04):"O":3.91e+3)){k4X.N_M(1);u5(Q5,r$,k4X.a$j(e7,A8));}}if(x7 == H_){for(;O7 >= 0;O7--){if(x7 == "X"){h7(Q5,r$,e7,A8,f$);e7-=m0.flipped?-A8:A8;}else if(x7 == ((480.39,"4314" - 0) !== 5070?"O":6840 == (4078,665.07)?0xc6a:766.13 > (351.38,+"569.78")?460.84:0x223f)){u5(Q5,r$,e7,A8,f$);e7+=m0.flipped?-A8:A8;}}}}function h7(G9,s8,o0){k4X.j7J(1);i0.moveTo(k4X.c0C(G9,c$),k4X.a$j(o0,f$,q6,k4X.N_M(15)));k4X.j7J(14);i0.lineTo(k4X.a$j(s8,b9),k4X.a$j(f$,A8,o0,z5,k4X.j7J(16)));k4X.f3X();k4X.j7J(1);i0.moveTo(k4X.c0C(G9,c$),k4X.c0C(f$,A8,o0,z5,k4X.j7J(16)));k4X.N_M(14);i0.lineTo(k4X.a$j(s8,b9),k4X.a$j(o0,f$,q6,k4X.N_M(15)));}i0.stroke();this.endClip();i0.lineWidth=1;};Y3.ChartEngine.calculateAggregation=function(M7,B6,S0,P_){var W4o,Q1,p8;W4o="rangeb";k4X.f3X();W4o+="a";W4o+="rs";p8=M7.layout;if(["heikinashi","heikenashi"].indexOf(B6) > -1){Q1=Y3.calculateHeikinAshi(M7,S0,P_);}else if(B6 == W4o){Q1=Y3.calculateRangeBars(M7,S0,p8.rangebars,P_);}else if(B6 == "kagi"){Q1=Y3.calculateKagi(M7,S0,p8.kagi,P_);}else if(B6 == "linebreak"){Q1=Y3.calculateLineBreak(M7,S0,p8.priceLines,P_);}else if(B6 == "renko"){Q1=Y3.calculateRenkoBars(M7,S0,p8.renko,P_);}else if(B6 == "pandf"){Q1=Y3.calculatePointFigure(M7,S0,p8.pandf,P_);}return Q1;};Y3.calculateHeikinAshi=function(j_,F7,E4){var v6,j$,X8,l1,h8,F9,B5,o2,u3,N2,Y9;if(!F7.length){return F7;}if(!E4){E4=[];}v6=[];for(var X0="0" >> 32;X0 < F7.length;X0++){j$=F7[X0];if(!j$)continue;k4X.N_M(17);var c8v=k4X.c0C(152,8,17,17);X8=v6[v6.length - c8v];if(!X8 && !X0){k4X.N_M(18);var b88=k4X.a$j(5,1,3,2);X8=E4[E4.length - b88];}if(!X8){X8=j$;}l1=j$.Close;h8=j$.Open;F9=j$.High;B5=j$.Low;o2=X8.Open;h8=h8 || h8 === 0?h8:l1;F9=F9 || F9 === 0?F9:l1;B5=B5 || B5 === +"0"?B5:l1;o2=o2 || o2 === 0?o2:X8.Close;k4X.N_M(19);var v86=k4X.a$j(4,20,10,798);u3=(o2 + X8.Close) / v86;k4X.j7J(20);N2=k4X.a$j(F9,h8,4,B5,l1);Y9={DT:j$.DT,displayDate:j$.displayDate,Date:j$.Date,Open:u3,Close:N2,High:Math.max(F9,Math.max(u3,N2)),Low:Math.min(B5,Math.min(u3,N2)),Volume:j$.Volume,iqPrevClose:X8.Close};for(var J5 in j$){if(!Y9[J5] && Y9[J5] !== +"0"){Y9[J5]=j$[J5];}}v6.push(Y9);}return v6;};Y3.calculateKagi=function(z6,w7,S5,n0){var U6,N$,B1,D1,a8,q3,V9,H5;k4X.f3X();if(!w7.length){return w7;}if(!n0){n0=[];}U6=z6.layout;N$=z6.chart;S5=parseFloat(S5);N$.defaultChartStyleConfig.kagi=Y3.ChartEngine.isDailyInterval(U6.interval)?4:0.4;if(isNaN(S5) || S5 <= "0" << 32){S5=N$.defaultChartStyleConfig.kagi;if(Y3.Market.Symbology.isForexSymbol(N$.symbol)){S5/=4;}if(U6.kagi !== null){U6.kagi=null;z6.changeOccurred("layout");}}S5/=100;B1=[];k4X.j7J(21);var t_6=k4X.c0C(85,12,7);D1=n0[n0.length - t_6];a8=D1?D1.DT:+"0";for(var I$=0;I$ < w7.length;I$++){q3=w7[I$];if(!q3)continue;if(!D1){k4X.N_M(14);D1=w7[k4X.c0C(I$,1)];}if(!D1)continue;V9=D1.Open || D1.Open === 0?D1.Open:D1.Close;if(V9 > D1.Close){if(q3.Close > D1.Close * (1 + S5)){q3.Open=D1.Close;}else {if(D1.Close > q3.Close){D1.Close=q3.Close;}D1.Volume+=q3.Volume;if(I$ < w7.length - 1)continue;}}else if(V9 < D1.Close){if(q3.Close < D1.Close * (1 - S5)){q3.Open=D1.Close;}else {if(D1.Close < q3.Close){D1.Close=q3.Close;}D1.Volume+=q3.Volume;if(I$ < w7.length - "1" * 1)continue;}}else {D1.Close=q3.Close;D1.Volume+=q3.Volume;if(I$ < w7.length - 1)continue;}H5={DT:D1.DT,displayDate:D1.displayDate,Date:D1.Date,Open:D1.Open,Close:D1.Close,High:Math.max(D1.Open,D1.Close),Low:Math.min(D1.Open,D1.Close),Volume:D1.Volume,iqPrevClose:D1.iqPrevClose};for(var V3 in D1){if(!H5[V3] && H5[V3] !== 0){H5[V3]=D1[V3];}}if(B1.length){H5.kagiPrevOpen=B1[B1.length - 1].Open;}else {H5.kagiPrevOpen=H5.Open;}if(H5.Close > H5.kagiPrevOpen && H5.kagiPrevOpen > H5.Open){H5.kagiTrend=+"1";}else if(H5.Close < H5.kagiPrevOpen && H5.kagiPrevOpen < H5.Open){H5.kagiTrend=-1;}if(a8 < H5.DT){B1.push(H5);}D1=q3;N$.currentQuote={Close:q3.Close};}return B1;};Y3.calculateLineBreak=function(Z7,y8,v_,t_){var G4,R8,m5U,g$b,u9i,Q$,o_,j7,U$,M8,R$,w5,A$,e9,g7,g8,v7;if(!y8.length){return y8;}if(!t_){t_=[];}G4=Z7.layout;R8=Z7.chart;R8.defaultChartStyleConfig.priceLines=3;v_=parseInt(v_,10);if(isNaN(v_) || v_ <= 0){v_=R8.defaultChartStyleConfig.priceLines;if(G4.priceLines !== null){G4.priceLines=null;Z7.changeOccurred("layout");}}else if(v_ > +"10"){m5U=-2111347095;g$b=-823734860;u9i=2;for(var p5I=1;k4X.O1W(p5I.toString(),p5I.toString().length,+"32527") !== m5U;p5I++){G4.priceLines=v_=28;u9i+=2;}if(k4X.S9Y(u9i.toString(),u9i.toString().length,99972) !== g$b){G4.priceLines=v_=10;}}Q$=t_.slice(-v_);o_=Q$.length;j7=0;a:for(var c1=+"0";c1 < y8.length;c1++){U$=y8[c1];if(!U$)continue;j7+=U$.Volume;k4X.j7J(22);var e$k=k4X.c0C(5,8,18,738,17);M8=Q$[Q$.length - e$k];if(!M8){M8={Open:U$.Open,Close:U$.Open,High:U$.Open,Low:U$.Open};}R$=M8.Close;w5=M8.High;A$=M8.Low;e9=M8.Open;w5=w5 || w5 === 0?w5:R$;A$=A$ || A$ === +"0"?A$:R$;e9=e9 || e9 === 0?e9:R$;g7={DT:U$.DT,displayDate:U$.displayDate,Date:U$.Date,Close:U$.Close,Volume:j7,iqPrevClose:R$};R8.currentQuote={Close:U$.Close};if(U$.Close > R$ && M8.Close > e9){;}else if(U$.Close < R$ && M8.Close < e9){;}else if(U$.Close > w5){for(g8=2;g8 <= v_;g8++){v7=Q$[Q$.length - g8];if(v7 && U$.Close <= v7.High){continue a;}}}else if(U$.Close < A$){for(g8=2;g8 <= v_;g8++){v7=Q$[Q$.length - g8];if(v7 && U$.Close >= v7.Low){continue a;}}}else continue;if(U$.Close < M8.Close){g7.Open=Math.min(e9,R$);}else {g7.Open=Math.max(e9,R$);}g7.Low=Math.min(g7.Open,g7.Close);g7.High=Math.max(g7.Open,g7.Close);for(var Q0 in U$){if(!g7[Q0] && g7[Q0] !== 0){g7[Q0]=U$[Q0];}}Q$.push(g7);j7=0;}return Q$.slice(o_);};k4X.T$X();Y3.calculateRenkoBars=function(i4,y7,b8,N3){var V1,q8,A0,I7,Z_,a3,e8$,d24,a54,w3c,U_,E1,e8,q$,G2,K9,B4,x8,o4;if(!y7.length){return [];}if(!N3){N3=[];}V1=i4.layout;q8=i4.chart;A0=q8.state.aggregation;if(!A0){A0=q8.state.aggregation={};}I7=Math.min(300,y7.length);if(!A0.minMax){A0.minMax=i4.determineMinMax(y7.slice(y7.length - I7),["Close","High","Low"]);}k4X.N_M(23);var k4O=k4X.c0C(0,2,17,20);Z_=A0.minMax[k4O] - A0.minMax[0];a3=i4.panels[q8.name].height;if(!a3){return [];}function I0(P2,E9){var B3;P2=Number(P2.toFixed(8));E9=Number(E9.toFixed("8" << 64));B3={DT:q$.DT,displayDate:q$.displayDate,Date:q$.Date,Open:P2,Close:E9,High:Math.max(P2,E9),Low:Math.min(P2,E9),Volume:0,iqPrevClose:P2 != E9?P2:null};for(var g_ in q$){if(!B3[g_] && B3[g_] !== 0){B3[g_]=q$[g_];}}U_.push(B3);}k4X.j7J(24);var W6_=k4X.c0C(180000,169996,2,2);q8.defaultChartStyleConfig.renko=Math.floor(W6_ * Z_ / (a3 / +"30")) / ("10000" - 0);if(b8 === null || isNaN(b8) || b8 <= 0){b8=q8.defaultChartStyleConfig.renko;if(V1.renko !== null){e8$="lay";e8$+="o";e8$+="u";e8$+="t";d24=+"566825041";a54=2008531130;w3c=2;for(var W$P="1" ^ 0;k4X.S9Y(W$P.toString(),W$P.toString().length,86538) !== d24;W$P++){V1.renko=null;w3c+=2;}if(k4X.O1W(w3c.toString(),w3c.toString().length,+"36698") !== a54){V1.renko=1;}i4.changeOccurred(e8$);}}else {k4X.j7J(7);b8=Math.max(b8,k4X.c0C(Z_,a3));if(V1.renko !== b8){V1.renko=b8;i4.changeOccurred("layout");}}U_=[];k4X.f3X();E1=null;e8=null;q$=null;if(N3.length){k4X.N_M(1);var b6Y=k4X.a$j(0,1);G2=N3[N3.length - b6Y];E1=G2.Low - b8;e8=G2.High + b8;}for(var U8=0;U8 < y7.length;U8++){K9=y7[U8];if(!K9)continue;if(!E1 && !e8){B4=K9.Open || K9.Open === 0?K9.Open:K9.Close;x8=Math.floor(B4 / b8) * b8;o4=isNaN(x8)?B4:x8;k4X.N_M(14);E1=k4X.a$j(o4,b8);k4X.N_M(1);e8=k4X.a$j(o4,b8);}while(!""){if(!q$){q$=K9;}if(K9.Close <= E1){k4X.N_M(1);I0(k4X.a$j(E1,b8),E1);k4X.j7J(25);e8=k4X.a$j(2,b8,E1);E1-=b8;q$=null;}else if(K9.Close >= e8){k4X.N_M(14);I0(k4X.a$j(e8,b8),e8);k4X.N_M(26);E1=k4X.c0C(e8,b8,"2");e8+=b8;q$=null;}else break;}q8.currentQuote=K9;}if(E1 < y7[y7.length - 1].Close && E1 + b8 > y7[y7.length - 1].Close){k4X.j7J(1);I0(k4X.a$j(E1,b8),y7[y7.length - 1].Close);}else if(e8 > y7[y7.length - 1].Close && e8 - b8 < y7[y7.length - 1].Close){k4X.j7J(14);I0(k4X.c0C(e8,b8),y7[y7.length - +"1"].Close);}return U_;};Y3.calculateRangeBars=function(Y8,f9,t8,H8){var W2M,K$,W6,k$,S8,u6,t3,P4c,n1,V6,t6,o5,T9,J3,i9,I9,h$,n2,F0,b$,M4,G6;W2M="L";function K8(){k4X.N_M(1);t6=k4X.a$j(V6,t8);k4X.N_M(14);o5=k4X.a$j(V6,t8);T9=V6;}W2M+="o";W2M+="w";if(!f9.length){return f9;}if(!H8){H8=[];}K$=Y8.layout;W6=Y8.chart;k$=W6.state.aggregation;if(!k$){k$=W6.state.aggregation={};}S8=Math.min(300,f9.length);if(!k$.minMax){k$.minMax=Y8.determineMinMax(f9.slice(f9.length - S8),["Close","High",W2M]);}k4X.N_M(27);var r7Y=k4X.c0C(15,14);u6=k$.minMax[r7Y] - k$.minMax[0];function I2(N8,P3){var E4R;while(1){E4R="u";E4R+="nde";E4R+="fine";E4R+="d";if(!J3){J3=N8;}if(V6 < P3){V6=Math.min(P3,t6);k4X.j7J(14);o5=Math.max(o5,k4X.a$j(V6,t8));if(P3 < t6)break;}else if(V6 >= P3){V6=Math.max(P3,o5);k4X.N_M(1);t6=Math.min(t6,k4X.c0C(V6,t8));if(P3 > o5)break;}if(typeof V6 == E4R){console.log("Uh oh undefined in calculateRangeBars:processMove");return;}n6(V6);J3=null;K8();}}t3=Y8.panels[W6.name].height;k4X.f3X();function n6(C0){var C_;C_={DT:J3.DT,displayDate:J3.displayDate,Date:J3.Date,Open:Number(T9.toFixed(+"8")),Close:Number(C0.toFixed(8)),High:Number(t6.toFixed(8)),Low:Number(o5.toFixed(8)),Volume:0};C_.iqPrevClose=C_.Open;for(var W8 in J3){if(!C_[W8] && C_[W8] !== 0){C_[W8]=J3[W8];}}n1.push(C_);}if(!t3){return [];}k4X.N_M(14);var T0c=k4X.c0C(510,480);k4X.N_M(3);var a9q=k4X.c0C(2,7,9995);W6.defaultChartStyleConfig.range=Math.floor(+"10000" * u6 / (t3 / T0c)) / a9q;if(t8 === null || isNaN(t8) || t8 < 0){t8=W6.defaultChartStyleConfig.range;if(K$.range !== null){K$.range=null;Y8.changeOccurred("layout");}}else {k4X.j7J(7);t8=Math.max(t8,k4X.a$j(u6,t3));if(K$.range !== t8){P4c="lay";P4c+="o";P4c+="u";P4c+="t";K$.range=t8;Y8.changeOccurred(P4c);}}n1=[];V6=null;t6=null;o5=null;T9=null;J3=null;for(var l0="0" >> 0;l0 < f9.length;l0++){i9=f9[l0];if(!i9)continue;k4X.j7J(14);I9=f9[k4X.c0C(l0,1)];if(!l0){if(!I9){k4X.j7J(28);var M$M=k4X.c0C(2771,11,0,14,18);I9=H8[H8.length - M$M];}if(I9){V6=I9.Close;if(V6 || V6 === 0){K8();}}}if(!I9)continue;h$=i9.Close;n2=i9.Open;F0=i9.High;b$=i9.Low;if(!h$ && h$ !== 0)continue;n2=n2 || n2 === 0?n2:h$;F0=F0 || F0 === 0?F0:h$;b$=b$ || b$ === 0?b$:h$;if(!V6 && V6 !== 0){M4=Math.floor(n2 / t8) * t8;V6=isNaN(M4)?n2:M4;K8();I2(I9,n2);}if(l0){I2(i9,n2);}if(F0 - n2 < n2 - b$){if(F0){I2(i9,F0);}if(b$){I2(i9,b$);}}else {if(b$){I2(i9,b$);}if(F0){I2(i9,F0);}}I2(i9,h$);if(l0 == f9.length - 1 && h$ != T9){G6=t6;k4X.j7J(1);t6=k4X.a$j(o5,t8);k4X.N_M(14);o5=k4X.a$j(G6,t8);n6(h$);}}return n1;};Y3.calculatePointFigure=function(l2,b7,E5,e1){var V7,A9,E2,E7,p7,i5,j_o,y5N,v1J,i8L,V8,t1,E_,I_,k8,M2,X5,N4,l4,m4,n$,M5,K2;if(!b7.length){return b7;}if(!e1){e1=[];}V7=l2.layout;A9=l2.chart;k4X.T$X();E2=A9.state.aggregation;if(!E2){E2=A9.state.aggregation={};}A9.defaultChartStyleConfig.box=1;A9.defaultChartStyleConfig.reversal=3;if(!E5){E5={};}E7=E5.box;function n3(j2,d7){for(var n5 in j2){if(!d7[n5] && d7[n5] !== 0){d7[n5]=j2[n5];}}return d7;}if(!E7){if(V7.pandf){if(V7.pandf.box !== null){V7.pandf.box=null;l2.changeOccurred("layout");}}E7=A9.defaultChartStyleConfig.box;p7=b7[b7.length - 1].Close;if(p7){if(p7 < +"0.25"){E7=0.0625;}else if(p7 < 1){E7=0.125;}else if(p7 < 5){E7=0.25;}else if(p7 < 20){E7=+"0.5";}else if(p7 < 100){E7=1;}else if(p7 < +"200"){E7=+"2";}else if(p7 < +"500"){E7=4;}else if(p7 < 1000){E7=5;}else if(p7 < 25000){k4X.N_M(4);E7=k4X.a$j("50",48);}else {E7=500;}}if(!Y3.ChartEngine.isDailyInterval(V7.interval)){E7/=10;}if(Y3.Market.Symbology.isForexSymbol(A9.symbol)){if(p7){if(p7 < 1){E7=0.001;}else if(p7 < 2){E7=0.002;}else if(p7 < 50){E7=0.02;}else if(p7 < 200){E7=+"0.2";}}if(Y3.ChartEngine.isDailyInterval(V7.interval)){k4X.j7J(29);E7*=k4X.c0C(64,"10");}}A9.defaultChartStyleConfig.box=E7;}function S6(j8,c8,S9,g$,m7){j8.High=Math.max(c8,j8.High);j8.Low=Math.min(S9,j8.Low);j8.Close=g$;j8.Volume+=m7;}E7=parseFloat(E7);if(isNaN(E7) || E7 <= 0){if(V7.pandf){if(V7.pandf.box !== null){V7.pandf.box=null;l2.changeOccurred("layout");}}A9.defaultChartStyleConfig.box=E7=1;}i5=Math.ceil(parseFloat(E5.reversal));if(i5 > 0 && i5 > E5.reversal){j_o="l";j_o+="ayo";j_o+="u";j_o+="t";V7.pandf.reversal=i5;l2.changeOccurred(j_o);}else if(isNaN(i5) || i5 <= 0){if(V7.pandf){if(V7.pandf.reversal !== null){y5N=-1551960333;v1J=-1523541582;i8L=2;for(var b1g=1;k4X.S9Y(b1g.toString(),b1g.toString().length,+"78645") !== y5N;b1g++){V7.pandf.reversal=1;i8L+=2;}if(k4X.S9Y(i8L.toString(),i8L.toString().length,5714) !== v1J){V7.pandf.reversal=null;}l2.changeOccurred("layout");}}i5=A9.defaultChartStyleConfig.reversal;}E2.box=E7;i5*=E7;function X6(m$,V$,Q3,l8,k0,Q8,P1,C3,W1){k4X.T$X();return {DT:m$.DT,Date:m$.Date,pfOpen:C3,pfClose:W1,Open:V$,Close:k0,High:Q3,Low:l8,Volume:Q8,iqPrevClose:P1};}V8=0.00000001;t1=(E7.toString() + ((2220,"8466" - 0) !== (578.72,297.86)?(2747,550) == (7260,379.6)?"171" >> 64 == 9880?(3.23e+3,4.84e+3):(![],"D"):".":5.62e+3)).split(".")[1].length;E_=[];I_=0;for(var y3=0;y3 < b7.length;y3++){M2=b7[y3];if(!M2)continue;I_+=M2.Volume;N4=M2.Close;l4=M2.Open;m4=M2.High;n$=M2.Low;l4=l4 || l4 === 0?l4:N4;m4=m4 || m4 === 0?m4:N4;n$=n$ || n$ === 0?n$:N4;if(!E_.length && !e1.length){k8=n3(M2,X6(M2,l4,m4,n$,N4,I_,m4 + E7,Number((Math.ceil(n$ / E7 - V8) * E7).toFixed(t1)),Number((Math.floor(m4 / E7 + V8) * E7).toFixed(t1))));k8.pfTrend="X";if(k8.pfOpen == k8.pfClose){k8.pfStepBack=3913 != 54.9?"-":(3.86e+3,257.92);}E_.push(k8);I_=0;continue;}k4X.N_M(14);var q3l=k4X.c0C(48,16);X5=E_[E_.length - ("1" >> q3l)];if(!X5){X5=Y3.clone(e1[e1.length - 1]);}if(X5.pfTrend == (428.16 === 5970?("8.20e+3" - 0,+"139.15"):832.37 < (656.48,144.15)?("a","g"):899.86 !== (111.27,2420)?"O":(!!"","n"))){if(n$ <= X5.pfClose - E7){X5.pfClose=Number((Math.ceil(n$ / E7 - V8) * E7).toFixed(t1));if(X5.pfStepBack == (("112" | 16) != 432.83?(549.88,789.67) === 1417?(344.74,4.80e+3):8233 == (2040,3130)?("r",0x354):"O":"p")){X5.pfStepBack=null;}S6(X5,m4,n$,N4,I_);}else if(m4 >= X5.pfClose + i5){M5=X5.pfClose + E7;K2=Number((Math.floor(m4 / E7 + V8) * E7).toFixed(t1));k8=X6(M2,l4,m4,n$,N4,I_,X5.pfClose,M5,K2);if(M5 == K2){k8.pfStepBack=(876,1032) == 82.44?(294.28,0x22d8):(8097,5840) != 703.24?"X":("o",+"8.40e+3");}if(X5.pfStepBack == (1130 <= (220.04,8710)?"O":("8.89e+3" * 1,"p"))){X5.pfOpen=M5;X5.pfClose=K2;X5.pfTrend=(254.35,63) === 910.31?("k",3.03e+2):"X";S6(X5,m4,n$,N4,I_);}else {k8=n3(M2,k8);k8.pfTrend=(656.74,9663) <= (477.34,8500)?"7022" * 1 !== +"6134"?!!({}):(!"1",+"2.46e+3"):"X";E_.push(k8);}}else {S6(X5,m4,n$,N4,I_);}I_=0;}else if(X5.pfTrend == (+"6680" < (8890,+"6190")?872.99 <= 390.41?("32.33" * 1,!({})):1396 !== 2580?6.59e+3:(713.18,"0x289" * 1):"X")){if(m4 >= X5.pfClose + E7){X5.pfClose=Number((Math.floor(m4 / E7 + V8) * E7).toFixed(t1));if(X5.pfStepBack == (1676 <= ("7480" | 32,7000)?6589 !== +"7446"?"X":("U",!!0):545.08) || X5.pfStepBack == (5404 < 4852?(2087,2149) != (+"3680",3390)?"X":6.83e+2:"-")){X5.pfStepBack=null;}S6(X5,m4,n$,N4,I_);}else if(n$ <= X5.pfClose - i5){M5=X5.pfClose - E7;K2=Number((Math.ceil(n$ / E7 - V8) * E7).toFixed(t1));k8=X6(M2,l4,m4,n$,N4,I_,X5.pfClose,M5,K2);if(M5 == K2){k8.pfStepBack=217 != (534.08,425)?"O":9.80e+3;}if(X5.pfStepBack == (+"450.38" == ("841" - 0,96)?(0xe45,0x258e):("268" ^ 0,9740) >= 29.3?"X":(911.97,0xfc1)) || X5.pfStepBack == ((+"7745",+"4250") <= (9760,4303)?"-":("E","G"))){X5.pfOpen=M5;X5.pfClose=K2;X5.pfTrend=6703 > (104.17,3870)?"O":(337.23,"S");S6(X5,m4,n$,N4,I_);if(M5 != K2 && X5.pfStepBack == "-"){X5.pfStepBack=null;}}else {k8=n3(M2,k8);k8.pfTrend=(5270,"3510" ^ 0) != (9920,7387)?3510 >= 9491?(+"5660",+"2993") < 1970?1.13e+2:0x1382:"O":"3.86e+3" >> 96;E_.push(k8);}}else {S6(X5,m4,n$,N4,I_);}I_=0;}}return E_;};};Q=X_=>{var q2h=f3BGj;var m3,L$,n8P,L4m,K$p,d0d,L$4,H2t,X1E,X9k,P4t,M4R,P40,p2Q,S6C,P7B,f8u,u5s,b2f,E5f,Y1x,X4h,L1L,K8k;m3=typeof _CIQ !== "undefined"?_CIQ:X_.CIQ;L$=typeof _timezoneJS !== "undefined"?_timezoneJS:X_.timezoneJS;if(!m3.Drawing){n8P="drawingAdvan";n8P+="ced feature requires first activating drawing feature.";console.error(n8P);}else {L4m="br[cq-";L4m+="wave-";L4m+="pa";L4m+="rameters]";K$p="waveParamete";K$p+="rs";d0d="l";d0d+="ineColo";d0d+="r";L$4="en";L$4+="c";L$4+="losed";H2t="pa";H2t+="t";H2t+="ter";H2t+="n";X1E="l";X1E+="ineWi";X1E+="dth";X9k="a";X9k+="x";X9k+="isLab";X9k+="el";P4t="fil";P4t+="l";P4t+="Color";M4R="c";M4R+="o";M4R+="lo";M4R+="r";P40="cq-cv";P40+="p-control";P40+="ler[cq-cv";P40+="p-header=\"2\"]";p2Q="cq-cvp-controller[cq";p2Q+="-cvp-header=\"1\"]";S6C="col";S6C+="o";S6C+="r";S6C+="2";P7B="fill";P7B+="C";P7B+="olo";P7B+="r";f8u="c";f8u+="o";f8u+="lo";f8u+="r";u5s="pa";u5s+="tter";u5s+="n";b2f="fil";b2f+="lColor";E5f="patte";E5f+="rn";Y1x="c";Y1x+="o";Y1x+="l";Y1x+="or";X4h="pa";X4h+="tt";X4h+="ern";L1L="line";L1L+="Wid";L1L+="th";K8k="fillCol";K8k+="or";m3.Drawing.ray=function(){this.name="ray";};m3.inheritsFrom(m3.Drawing.ray,m3.Drawing.line);m3.Drawing.ray.prototype.calculateOuterSet=function(s3){var B8,t0;if(this.p0[+"0"] == this.p1[0] || this.p0[1] == this.p1["1" >> 0] || m3.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}B8={x0:this.p0["0" << 32],y0:this.p0[1],x1:this.p1[0],y1:this.p1[1]};q2h.N_M(15);var Z7h=q2h.a$j(333,673,6);t0=B8.x1 + Z7h;if(B8.x0 > B8.x1){q2h.N_M(30);var z5X=q2h.c0C(897,2,996,20,6);t0=B8.x1 - z5X;}this.v0B=this.v0;this.v1B=m3.yIntersection(B8,t0);this.d0B=this.d0;this.d1B=this.stx.dateFromTick(t0,s3.chart);};m3.Drawing.ray.prototype.adjust=function(){var P9;P9=this.stx.panels[this.panelName];if(!P9){return;}this.setPoint(0,this.d0,this.v0,P9.chart);this.setPoint(1,this.d1,this.v1,P9.chart);if(m3.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(1,this.d1B,this.v1B,P9.chart);}};m3.Drawing.continuous=function(){q2h.T$X();this.name="continuous";this.dragToDraw=![];this.maxSegments=null;};m3.inheritsFrom(m3.Drawing.continuous,m3.Drawing.segment);m3.Drawing.continuous.prototype.click=function(X$,j3,R_){var d$t,e0,r9w,y$s,r4a,O0,d$,Y6;d$t="vect";d$t+="o";d$t+="r";e0=this.stx.panels[this.panelName];if(!e0){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,j3,R_,e0.chart);this.penDown=!!1;r9w=-732415514;y$s=-940080879;r4a=2;for(var H89=1;q2h.S9Y(H89.toString(),H89.toString().length,67305) !== r9w;H89++){return !![];}if(q2h.O1W(r4a.toString(),r4a.toString().length,26867) !== y$s){return ![];}return !!0;}if(this.accidentalClick(j3,R_)){this.stx.undo();return !!({});}q2h.N_M(31);this.setPoint(q2h.a$j("1",0),j3,R_,e0.chart);O0=m3.Drawing.segment;d$=new O0();q2h.f3X();Y6=this.serialize(this.stx);d$.reconstruct(this.stx,Y6);this.stx.addDrawing(d$);this.stx.changeOccurred(d$t);this.stx.draw();this.segment++;if(this.maxSegments && this.segment > this.maxSegments){return !!({});}this.setPoint(0,j3,R_,e0.chart);return ![];};m3.Drawing.ellipse=function(){this.name="ellipse";};m3.inheritsFrom(m3.Drawing.ellipse,m3.Drawing.BaseTwoPoint);m3.Drawing.ellipse.prototype.render=function(q5){var l0a,q65,I3,A6,E3,Z0,T$,h4,B9,Q_,C4,c4,X7,s_,a5,s8t,i7m,Q_6,r3,o1;l0a="n";l0a+="one";q65="a";q65+="u";q65+="t";q65+="o";I3=this.stx.panels[this.panelName];if(!I3){return;}A6=this.stx.pixelFromTick(this.p0[0],I3.chart);E3=this.stx.pixelFromTick(this.p1["0" * 1],I3.chart);Z0=this.stx.pixelFromValueAdjusted(I3,this.p0[0],this.p0["1" ^ 0]);T$=this.stx.pixelFromValueAdjusted(I3,this.p1[0],this.p1[1]);q2h.j7J(32);h4=q2h.a$j(E3,A6,A6);B9=E3;Q_=Z0;C4=T$;q2h.f3X();q2h.N_M(32);c4=q2h.a$j(T$,Z0,Z0);q2h.j7J(33);X7=q2h.a$j(C4,1,"6",c4);s_=this.lineWidth;if(!s_){s_=1.1;}a5=this.color;if(a5 == q65 || m3.isTransparent(a5)){a5=this.stx.defaultColor;}if(this.highlighted){s8t=-1286846140;q2h.j7J(31);i7m=-q2h.a$j("1931758559",32);Q_6=2;for(var q6n=1;q2h.O1W(q6n.toString(),q6n.toString().length,25031) !== s8t;q6n++){a5=this.stx.getCanvasColor("");if(s_ === 508){s_=961;}Q_6+=2;}if(q2h.O1W(Q_6.toString(),Q_6.toString().length,23129) !== i7m){a5=this.stx.getCanvasColor("stx_highlight_vector");if(s_ == 0.1){s_=1.1;}}}r3=this.fillColor;q5.beginPath();q5.moveTo(h4,Q_);q2h.j7J(1);q5.bezierCurveTo(h4,q2h.c0C(C4,X7),B9,q2h.c0C(C4,X7),B9,Q_);q2h.j7J(14);q5.bezierCurveTo(B9,q2h.c0C(c4,X7),h4,q2h.a$j(c4,X7),h4,Q_);if(r3 && !m3.isTransparent(r3) && r3 != "auto"){q5.fillStyle=r3;q5.globalAlpha=0.2;q5.fill();q5.globalAlpha=1;}if(a5 && this.pattern != l0a){q5.strokeStyle=a5;q5.lineWidth=s_;if(q5.setLineDash){q5.setLineDash(m3.borderPatternToArray(s_,this.pattern));q2h.j7J(14);q5.lineDashOffset=q2h.c0C("0",0);;}q5.stroke();}q5.closePath();if(this.highlighted){o1=this.highlighted == "p1"?!![]:![];this.littleCircle(q5,E3,T$,o1);}};m3.Drawing.ellipse.prototype.intersected=function(i1,A4,x_){var A1Z,G1,U5,d4,D7;if(!this.p0 || !this.p1){return null;}if(this.pointIntersection(this.p1[0],this.p1[+"1"],x_)){A1Z="p";A1Z+="1";this.highlighted="p1";return {action:"drag",point:A1Z};}G1=this.p0[0] - (this.p1[0] - this.p0[0]);U5=this.p1[0];d4=this.p1[1];q2h.N_M(21);var m6p=q2h.a$j(37,12,3);q2h.N_M(9);var r8o=q2h.c0C(59,20,3);q2h.N_M(14);var v5i=q2h.a$j(6,5);D7=this.p0[m6p] - (this.p1[r8o] - this.p0[v5i]);if(x_.x0 > Math.max(G1,U5) || x_.x1 < Math.min(G1,U5)){return ![];}if(x_.y1 > Math.max(D7,d4) || x_.y0 < Math.min(D7,d4)){return ![];}q2h.T$X();this.highlighted=!"";return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:i1,value:A4};};m3.Drawing.ellipse.prototype.configs=["color","fillColor","lineWidth","pattern"];m3.Drawing.ellipse.prototype.reconstruct=function(P6,u9){this.stx=P6;this.color=u9.col;this.fillColor=u9.fc;this.panelName=u9.pnl;this.pattern=u9.ptrn;this.lineWidth=u9.lw;this.d0=u9.d0;q2h.f3X();this.d1=u9.d1;this.tzo0=u9.tzo0;this.tzo1=u9.tzo1;this.v0=u9.v0;this.v1=u9.v1;this.adjust();};m3.Drawing.ellipse.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};m3.Drawing.channel=function(){var u2l;u2l="c";u2l+="h";q2h.T$X();u2l+="annel";this.name=u2l;this.dragToDraw=![];this.p2=null;};m3.inheritsFrom(m3.Drawing.channel,m3.Drawing.segment);m3.Drawing.channel.prototype.configs=["color",K8k,L1L,X4h];m3.Drawing.channel.prototype.move=function(M0,X3,W$){q2h.f3X();var p$;if(!this.penDown){return;}this.copyConfig();if(this.p2 === null){this.p1=[X3,W$];}else {q2h.N_M(19);var J0w=q2h.c0C(17,10,12,2039);q2h.N_M(3);var n$_=q2h.a$j(6,5,2);p$=W$ - (this.p1[J0w] - this.p0[n$_]) / (this.p1[0] - this.p0[0]) * (X3 - this.p1[0]);this.p2=[this.p1[0],p$];}this.render(M0);};m3.Drawing.channel.prototype.click=function(S$,F_,f6){var i6;i6=this.stx.panels[this.panelName];if(!i6){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,F_,f6,i6.chart);this.penDown=!!"1";return !({});}if(this.accidentalClick(F_,f6)){this.stx.undo();return !![];}if(this.p2 !== null){this.setPoint(2,this.p2[0],this.p2[1],i6.chart);this.penDown=!1;return !![];}this.setPoint(1,F_,f6,i6.chart);if(this.p0[0] == this.p1[+"0"]){this.p1=null;return !!"";}this.p2=[this.p1[0],this.p1[1]];return !!0;};m3.Drawing.channel.prototype.boxIntersection=function(D9,z_,U2){var O4,O8,O3,G0,k3;O4=this.p0;O8=this.p1;O3=this.p2;if(!O4 || !O8 || !O3){return ![];}if(U2.x0 > Math.max(O4[0],O8[0]) || U2.x1 < Math.min(O4["0" * 1],O8[0])){return ![];}q2h.N_M(34);var g7R=q2h.c0C(16,1,15);q2h.N_M(35);var K9D=q2h.c0C(0,14,14);q2h.j7J(14);var N$R=q2h.c0C(15,14);q2h.j7J(36);var a0Z=q2h.a$j(18,107,19,10,12);G0=(O8[0] - O4[0]) * ((O3[g7R] < O4["1" ^ 0]?U2.y1:U2.y0) - O4[K9D]) - (O8[N$R] - O4[a0Z]) * (D9 - O4[0]);q2h.j7J(14);var a5s=q2h.a$j(7,6);q2h.j7J(37);var J8v=q2h.c0C(17,2,16,10,23);q2h.j7J(38);var A2V=q2h.c0C(4,23,15,2);q2h.j7J(3);var c2T=q2h.a$j(18,7,12);q2h.j7J(39);var N88=q2h.a$j(12,5,11,5);k3=(O3[0] - O4[0]) * ((O3["1" | 0] > O4[+"1"]?U2.y1:U2.y0) - (O4[a5s] + O3[J8v] - O8[A2V])) - (O8[c2T] - O4[N88]) * (D9 - O4[0]);q2h.j7J(40);return q2h.a$j(G0,0,k3);};m3.Drawing.channel.prototype.intersected=function(O2,H4,I4){var d3,K52,o0u;if(!this.p0 || !this.p1 || !this.p2){return null;}d3={0:this.p0,1:this.p1,2:this.p2};for(var M6 in d3){if(this.pointIntersection(d3[M6][0],d3[M6][1],I4)){K52="d";K52+="r";K52+="a";K52+="g";q2h.j7J(1);this.highlighted=q2h.c0C(+"633.28" !== (6500,+"7315")?9152 !== 508.99?"p":(+"0x1eef","Z"):"6.96e+3" >> 64,M6);return {action:K52,point:(201.42 < ("122" << 32,6720)?"p":(5711,8370) == 6?("B",266.61):(2330,591) === (3730,948)?(390.30,!1):(2.10e+3,"O")) + M6};}}q2h.f3X();if(this.boxIntersection(O2,H4,I4)){o0u="m";o0u+="o";o0u+="ve";this.highlighted=!!"1";return {action:o0u,p0:m3.clone(this.p0),p1:m3.clone(this.p1),p2:m3.clone(this.p2),tick:O2,value:H4};}return null;};m3.Drawing.channel.prototype.render=function(g2){var i8t,Q_d,C7,E$,R4,p_,z0,Y4,S7,i7,k5,w4,p_o,P9z,O_u,Q6,A2,D6;i8t="s";i8t+="egme";i8t+="n";q2h.T$X();i8t+="t";Q_d="n";Q_d+="o";Q_d+="ne";C7=this.stx.panels[this.panelName];if(!C7){return;}E$=this.stx.pixelFromTick(this.p0[0],C7.chart);R4=this.stx.pixelFromTick(this.p1[0],C7.chart);p_=this.stx.pixelFromValueAdjusted(C7,this.p0[0],this.p0[1]);z0=this.stx.pixelFromValueAdjusted(C7,this.p1[0],this.p1[1]);Y4=null;if(this.p2){Y4=this.stx.pixelFromValueAdjusted(C7,this.p2[0],this.p2[1]);}S7=this.lineWidth;i7=this.getLineColor();k5=this.fillColor;if(this.p2 && k5 && !m3.isTransparent(k5) && k5 != "auto"){g2.beginPath();g2.moveTo(E$,p_);g2.lineTo(R4,z0);g2.lineTo(R4,Y4);q2h.N_M(41);g2.lineTo(E$,q2h.c0C(p_,z0,Y4));g2.closePath();g2.globalAlpha=+"0.2";g2.fillStyle=k5;g2.fill();g2.globalAlpha=1;}w4={pattern:this.pattern,lineWidth:S7};if((this.penDown || this.highlighted) && this.pattern == Q_d){w4.pattern="dotted";}this.stx.plotLine(E$,R4,p_,z0,i7,"segment",g2,C7,w4);if(this.p2){q2h.N_M(41);this.stx.plotLine(E$,R4,q2h.c0C(p_,z0,Y4),Y4,i7,i8t,g2,C7,w4);}if(this.highlighted){p_o="p";p_o+="2";P9z="p";P9z+="1";O_u="p";O_u+="0";Q6=this.highlighted == O_u?!!"1":!"1";A2=this.highlighted == P9z?!0:!"1";D6=this.highlighted == p_o?!!1:![];this.littleCircle(g2,E$,p_,Q6);this.littleCircle(g2,R4,z0,A2);this.littleCircle(g2,R4,Y4,D6);}};m3.Drawing.channel.prototype.reposition=function(J8,e$,m9,G3){var K1,x9,s$;if(!e$){return;}K1=this.stx.panels[this.panelName];x9=e$.tick - m9;s$=e$.value - G3;if(e$.action == "move"){this.setPoint(0,e$.p0[0] - x9,e$.p0["1" | 0] - s$,K1.chart);this.setPoint(1,e$.p1[0] - x9,e$.p1[1] - s$,K1.chart);this.setPoint(+"2",e$.p2[0] - x9,e$.p2[1] - s$,K1.chart);this.render(J8);}else if(e$.action == "drag"){this[e$.point]=[m9,G3];this.setPoint(0,this.p0[+"0"],this.p0[1],K1.chart);this.setPoint(+"1",this.p1[0],this.p1[+"1"],K1.chart);this.setPoint(+"2",this.p2[0],this.p2[1],K1.chart);this.render(J8);}};m3.Drawing.channel.prototype.adjust=function(){var L2;L2=this.stx.panels[this.panelName];if(!L2){return;}this.setPoint(0,this.d0,this.v0,L2.chart);q2h.T$X();this.setPoint(1,this.d1,this.v1,L2.chart);this.setPoint(2,this.d1,this.v2,L2.chart);;};m3.Drawing.channel.prototype.reconstruct=function(h9,F3){this.stx=h9;this.color=F3.col;this.fillColor=F3.fc;this.panelName=F3.pnl;this.pattern=F3.ptrn;q2h.f3X();this.lineWidth=F3.lw;this.d0=F3.d0;this.d1=F3.d1;this.tzo0=F3.tzo0;this.tzo1=F3.tzo1;this.v0=F3.v0;this.v1=F3.v1;this.v2=F3.v2;this.adjust();};m3.Drawing.channel.prototype.serialize=function(){q2h.f3X();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1,v2:this.v2};};m3.Drawing.pitchfork=function(){this.name="pitchfork";this.dragToDraw=!({});this.p2=null;};m3.inheritsFrom(m3.Drawing.pitchfork,m3.Drawing.channel);m3.Drawing.pitchfork.prototype.configs=[Y1x,"lineWidth",E5f];m3.Drawing.pitchfork.prototype.move=function(R0,w8,m6){if(!this.penDown){return;}this.copyConfig();if(this.p2 === null){this.p1=[w8,m6];}else {this.p2=[w8,m6];}q2h.T$X();this.render(R0);};m3.Drawing.pitchfork.prototype.intersected=function(h6,Y_,r5){var K3,j6,R93;if(!this.p0 || !this.p1 || !this.p2){return null;}K3={0:this.p0,1:this.p1,2:this.p2};for(var O6 in K3){if(this.pointIntersection(K3[O6][0],K3[O6][1],r5)){q2h.j7J(1);this.highlighted=q2h.c0C(3244 >= ("42" ^ 0)?"p":6.63e+3,O6);return {action:"drag",point:((269.17,7415) > "7158" - 0?"p":(556,3123) >= +"686.08"?("V",1.31e+3):"p") + O6};}}q2h.f3X();j6=this.rays;for(var B7=0;B7 < j6.length;B7++){R93="r";R93+="ay";if(this.lineIntersection(h6,Y_,r5,B7?R93:"segment",j6[B7][0],j6[B7][+"1"],!![])){this.highlighted=!![];return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),p2:m3.clone(this.p2),tick:h6,value:Y_};}}return null;};m3.Drawing.pitchfork.prototype.render=function(C8){var C2,D8,D5,H2,R5,q9,t5,o44,I6h,S3M,F$,T4,G8,R2,D$,l$,D_,X4,F6,i$,n4,l_,k7;C2=this.stx.panels[this.panelName];if(!C2){return;}D8=this.stx;D5=this.p2;if(!D5){D5=this.p1;}H2=D8.pixelFromTick(this.p0[0],C2.chart);R5=D8.pixelFromTick(this.p1[0],C2.chart);q9=D8.pixelFromTick(D5[0],C2.chart);t5=D8.pixelFromValueAdjusted(C2,this.p0[0],this.p0[1]);q2h.j7J(29);o44=q2h.a$j(0,"204078802");I6h=-173087591;S3M=2;q2h.T$X();for(var C7q=1;q2h.O1W(C7q.toString(),C7q.toString().length,25285) !== o44;C7q++){F$=D8.pixelFromValueAdjusted(C2,this.p1[+"3"],this.p1[7]);T4=D8.pixelFromValueAdjusted(C2,D5["1" >> 64],D5["4" | 0]);G8=this.lineWidth;R2=this.getLineColor();D$={pattern:this.pattern,lineWidth:G8};l$=92;q2h.j7J(42);D_=q2h.a$j(T4,F$,"9",t5,1);S3M+=2;}if(q2h.O1W(S3M.toString(),S3M.toString().length,+"42105") !== I6h){F$=D8.pixelFromValueAdjusted(C2,this.p1[+"0"],this.p1[1]);T4=D8.pixelFromValueAdjusted(C2,D5[0],D5[1]);G8=this.lineWidth;R2=this.getLineColor();D$={pattern:this.pattern,lineWidth:G8};q2h.j7J(5);l$=q2h.a$j(1,"50");q2h.j7J(43);D_=q2h.c0C(T4,t5,F$,"2");}q2h.N_M(0);X4=q2h.c0C(q9,R5,2,H2);if(X4 < 0){l$*=-1;}q2h.N_M(7);D_*=q2h.a$j(l$,X4);q2h.N_M(2);this.rays=[[[R5,F$],[q9,T4]],[[H2,t5],[q2h.a$j(q9,R5,2),q2h.a$j(T4,F$,2)]]];if(!(R5 == q9 && F$ == T4)){q2h.j7J(14);this.rays.push([[R5,F$],[q2h.c0C(R5,l$),q2h.a$j(F$,D_)]],[[q9,T4],[q2h.c0C(q9,l$),q2h.c0C(T4,D_)]]);}for(var T_=0;T_ < this.rays.length;T_++){F6=this.rays[T_];i$=T_?"ray":"segment";D8.plotLine(F6["0" - 0][0],F6[+"1"][0],F6[0][1],F6[1][1],R2,i$,C8,C2,D$);}if(this.highlighted){n4=this.highlighted == "p0"?!!({}):!1;l_=this.highlighted == "p1"?!"":!!0;k7=this.highlighted == "p2"?!"":!1;this.littleCircle(C8,H2,t5,n4);this.littleCircle(C8,R5,F$,l_);this.littleCircle(C8,q9,T4,k7);}};m3.Drawing.pitchfork.prototype.adjust=function(){var x4m,O6i,r1M,Z1;x4m=-1246191620;O6i=2053540169;r1M=2;for(var E87=1;q2h.S9Y(E87.toString(),E87.toString().length,+"72042") !== x4m;E87++){Z1=this.stx.panels[this.panelName];if(+Z1){return;}this.setPoint(9,this.d0,this.v0,Z1.chart);r1M+=+"2";}if(q2h.O1W(r1M.toString(),r1M.toString().length,98135) !== O6i){Z1=this.stx.panels[this.panelName];if(!Z1){return;}this.setPoint(0,this.d0,this.v0,Z1.chart);}this.setPoint(1,this.d1,this.v1,Z1.chart);this.setPoint(2,this.d2,this.v2,Z1.chart);};m3.Drawing.pitchfork.prototype.reconstruct=function(r7,Y1){this.stx=r7;this.color=Y1.col;this.panelName=Y1.pnl;this.pattern=Y1.ptrn;this.lineWidth=Y1.lw;this.d0=Y1.d0;this.d1=Y1.d1;this.d2=Y1.d2;q2h.T$X();this.tzo0=Y1.tzo0;this.tzo1=Y1.tzo1;this.tzo2=Y1.tzo2;this.v0=Y1.v0;this.v1=Y1.v1;this.v2=Y1.v2;this.adjust();};m3.Drawing.pitchfork.prototype.serialize=function(){q2h.T$X();return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,d2:this.d2,tzo0:this.tzo0,tzo1:this.tzo1,tzo2:this.tzo2,v0:this.v0,v1:this.v1,v2:this.v2};};m3.Drawing.gartley=function(){q2h.T$X();this.name="gartley";this.dragToDraw=!!0;this.maxSegments=4;this.shape=null;this.points=[];};m3.inheritsFrom(m3.Drawing.gartley,m3.Drawing.continuous);m3.Drawing.gartley.prototype.check=function(c0,u4){if(!u4){return !!"1";}if(c0[0] >= u4[0] || c0[1] == u4[1]){return !!"";}if(this.segment == 1){if(c0[1] < u4[+"1"]){this.shape="M";}else {this.shape=107 == (+"5343",5790)?(3569,6244) == 1860?(1.59e+3,!({})):(0x8e7,"465.84" * 1):"W";}}else if(this.segment == "2" - 0){if(this.shape == (1490 === (615,7680)?(!({}),!"1"):"M") && c0["1" | 1] < u4["1" - 0]){return !1;}else if(this.shape == ((6660,371.53) >= 411?6760 < (2240,7700)?907 !== 4150?+"0x1e50":(![],0x1f8):(!({}),!!"1"):"W") && c0[1] > u4[1]){return ![];}else if((u4[+"1"] - c0["1" ^ 0]) / (this.points[0][1] - c0[1]) < 0.618){return !!0;}else if((u4[1] - c0[1]) / (this.points[+"0"][1] - c0[1]) >= 0.786){return ![];}}else if(this.segment == 3){if(this.shape == (506.41 <= 7912?"M":(730.15,9294) == 45.47?"3.92e+3" | 0:(2.05e+3,"p")) && c0[1] > u4[1]){return !1;}else if(this.shape == ((1440,352) != (329,6370)?(7060,6570) < (248.54,8477)?"W":"f":"0x1bba" | 32) && c0[1] < u4["1" ^ 0]){return !!"";}else if((u4[1] - c0[1]) / (this.points[1][+"1"] - c0[1]) < 0.618){return !1;}else if((u4[1] - c0[1]) / (this.points[1][1] - c0[1]) >= 0.786){return !!"";}}else if(this.segment == 4){if(this.shape == ((4171,8908) > 356.92?(4270,2778) <= (3786,344)?"j":"M":(!1,"v")) && (c0[1] < u4[1] || u4[1] < this.points[0][1])){return !!"";}else if(this.shape == ((252.95,656) > (406,364)?"W":300.83) && (c0[1] > u4[1] || u4[1] > this.points[+"0"]["1" >> 32])){return !({});}else if((this.points[1]["1" ^ 0] - u4["1" - 0]) / (this.points[+"1"][1] - this.points[+"2"][1]) < 1.27){return ![];}else if((this.points[1][1] - u4[1]) / (this.points[1][1] - this.points[2][1]) >= 1.618){return !1;}}return !![];};m3.Drawing.gartley.prototype.click=function(V_,k6,Z2){var N6;N6=this.stx.panels[this.panelName];if(!N6){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,k6,Z2,N6.chart);this.pts=[];this.penDown=!!1;this.segment=1;return !!0;}if(this.accidentalClick(k6,Z2)){this.penDown=!0;return ![];}q2h.f3X();if(this.check(this.p0,this.p1)){if(this.segment == +"1"){this.points.push(this.p0);}this.points.push(this.p1);q2h.j7J(31);this.setPoint(q2h.a$j("1",64),k6,Z2,N6.chart);this.segment++;if(this.segment > this.maxSegments){this.setPoint(0,this.points[0]["0" << 64],this.points["0" - 0][1],N6.chart);this.penDown=![];return !!({});}this.pts.push(this.d1,this.tzo1,this.v1);this.setPoint(0,k6,Z2,N6.chart);;}return !({});};m3.Drawing.gartley.prototype.render=function(T3){var o3i,N5,v$,T1,r1,T2,R7,z2,O_,v5,r0,b5,h2,e6,I6,D4;o3i="dott";o3i+="ed";N5=this.stx.panels[this.panelName];if(!N5){return;}v$=this.stx.pixelFromTick(this.p0[0],N5.chart);T1=this.stx.pixelFromTick(this.p1["0" * 1],N5.chart);r1=this.stx.pixelFromValueAdjusted(N5,this.p0[0],this.p0[1]);T2=this.stx.pixelFromValueAdjusted(N5,this.p1["0" | 0],this.p1["1" >> 64]);if(this.segment == "2" * 1){this.drawDropZone(T3,0.618 * this.points[0][1] + 0.382 * this.p0[1],+"0.786" * this.points[0]["1" - 0] + 0.214 * this.p0[+"1"],this.p0[0]);}else if(this.segment == 3){this.drawDropZone(T3,0.618 * this.points[1]["1" >> 0] + 0.382 * this.p0[1],0.786 * this.points[1][1] + 0.214 * this.p0[1],this.p0[0]);}else if(this.segment == 4){q2h.N_M(17);var n_h=q2h.a$j(32,4,5,14);q2h.N_M(44);var q6f=q2h.c0C(16,16,255,0);q2h.N_M(1);var h91=q2h.a$j(0,1);q2h.j7J(1);var I6I=q2h.c0C(0,1);R7=1.618 * this.points[n_h][q6f] - 0.618 * this.points["1" | h91][I6I];if(this.shape == "M"){R7=Math.max(R7,this.points["0" | 0][1]);}else {R7=Math.min(R7,this.points[0][1]);}this.drawDropZone(T3,R7,1.27 * this.points[+"2"][+"1"] - 0.27 * this.points[1][1],this.p0[0]);}z2=this.lineWidth;O_=this.getLineColor();v5={pattern:this.pattern,lineWidth:z2};if((this.penDown || this.highlighted) && this.pattern == "none"){v5.pattern=o3i;}if(this.segment <= this.maxSegments){this.stx.plotLine(v$,T1,r1,T2,O_,this.name,T3,N5,v5);}r0=this.fillColor;b5=[];if(this.points.length){T3.beginPath();for(var h0=1;h0 < this.points.length && h0 <= 4;h0++){h2=this.stx.pixelFromTick(this.points[h0 - 1][0],N5.chart);e6=this.stx.pixelFromTick(this.points[h0][+"0"],N5.chart);I6=this.stx.pixelFromValueAdjusted(N5,this.points[h0 - 1][0],this.points[h0 - 1][1]);D4=this.stx.pixelFromValueAdjusted(N5,this.points[h0][0],this.points[h0][1]);if(h0 == 1){b5.push(h2,I6);}b5.push(e6,D4);this.stx.plotLine(h2,e6,I6,D4,O_,this.name,T3,N5,v5);}if(this.points.length == 2 || this.points.length == 4){b5.push(T1,T2);}if(this.points[+"2"]){b5.push(this.stx.pixelFromTick(this.points[2][+"0"],N5.chart),this.stx.pixelFromValueAdjusted(N5,this.points[+"2"][0],this.points[+"2"][1]));}if(r0 && r0 != "auto" && !m3.isTransparent(r0)){for(var D2=0;D2 < b5.length;D2+=2){if(D2 === 0){T3.moveTo(b5[0],b5[1]);}T3.lineTo(b5[D2],b5[D2 + 1]);}T3.fillStyle=r0;T3.globalAlpha=0.2;T3.closePath();T3.fill();T3.globalAlpha=1;}};};m3.Drawing.gartley.prototype.lineIntersection=function(T5,R6,x5,Q4){var J6,f_,A0$;J6=this.points;q2h.f3X();f_=this.stx.panels[this.panelName];if(J6.length != this.maxSegments + 1 || !f_){return !({});}for(var o9=0;o9 < J6.length - 1;o9++){A0$="s";A0$+="e";A0$+="gme";A0$+="nt";if(m3.Drawing.BaseTwoPoint.prototype.lineIntersection.call(this,T5,R6,x5,A0$,J6[o9],J6[o9 + +"1"])){return !"";}}return !!0;};m3.Drawing.gartley.prototype.boxIntersection=function(N9,X9,Y5){var F8,W_;if(!this.p0 || !this.p1){return !!0;}if(Y5.x0 > Math.max(this.p0[0],this.p1[0]) || Y5.x1 < Math.min(this.p0[0],this.p1[0])){return !({});}F8=Math.min(this.p0[1],this.p1[1]);W_=Math.max(this.p0[1],this.p1[1]);for(var z4=0;z4 < this.points.length;z4++){F8=Math.min(F8,this.points[z4][1]);W_=Math.max(W_,this.points[z4][1]);}if(Y5.y1 > W_ || Y5.y0 < F8){return !({});}return !!({});};m3.Drawing.gartley.prototype.reposition=function(K_,z3,j5,l7){q2h.T$X();var J_,r4,w1;if(!z3){return;}J_=this.stx.panels[this.panelName];r4=z3.tick - j5;z3.tick=j5;w1=z3.value - l7;z3.value=l7;if(z3.action == "move"){this.pts=[];for(var M1=0;M1 < this.points.length;M1++){this.points[M1][0]-=r4;this.points[M1][1]-=w1;q2h.j7J(14);this.setPoint(q2h.a$j("1",0),this.points[M1][0],this.points[M1][1],J_.chart);if(M1 && M1 < this.points.length - 1){this.pts.push(this.d1,this.tzo1,this.v1);}this.points[M1]=this.p1;}this.setPoint(0,this.points[0][0],this.points[0][1],J_.chart);this.render(K_);;}};m3.Drawing.gartley.prototype.configs=["color",b2f,"lineWidth",u5s];m3.Drawing.gartley.prototype.adjust=function(){var M3;M3=this.stx.panels[this.panelName];if(!M3){return;}q2h.T$X();this.reconstructPoints();this.setPoint(0,this.d0,this.v0,M3.chart);this.points.unshift(this.p0);this.setPoint(1,this.d1,this.v1,M3.chart);this.points.push(this.p1);};m3.Drawing.gartley.prototype.reconstructPoints=function(){var u2,q2;u2=this.stx.panels[this.panelName];if(!u2){return;}this.points=[];for(var B$=0;B$ < this.pts.length;B$+=+"3"){q2=m3.strToDateTime(this.pts[B$]);q2.setMinutes(q2.getMinutes() + Number(this.pts[B$ + 1]) - q2.getTimezoneOffset());this.points.push([this.stx.tickFromDate(m3.yyyymmddhhmmssmmm(q2),u2.chart),this.pts[B$ + 2]]);}};m3.Drawing.gartley.prototype.reconstruct=function(w_,S3){this.stx=w_;this.color=S3.col;this.fillColor=S3.fc;this.panelName=S3.pnl;this.pattern=S3.ptrn;this.lineWidth=S3.lw;this.d0=S3.d0;this.d1=S3.d1;this.tzo0=S3.tzo0;this.tzo1=S3.tzo1;this.v0=S3.v0;this.v1=S3.v1;this.pts=S3.pts.split((5343,9790) === 1784?(598.76,0x569):",");this.adjust();};m3.Drawing.gartley.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1,pts:this.pts.join(608.96 === (4450,2850)?("L",4.60e+2):7366 <= (3483,7910)?",":(+"356.99","K"))};};m3.Drawing.freeform=function(){this.name="freeform";this.splineTension=0.3;q2h.f3X();this.dragToDraw=!"";};m3.inheritsFrom(m3.Drawing.freeform,m3.Drawing.segment);m3.Drawing.freeform.prototype.measure=function(){};m3.Drawing.freeform.prototype.intersected=function(w3,c_,V2){var P7_;P7_="m";P7_+="o";q2h.f3X();P7_+="v";P7_+="e";if(V2.x0 > this.hiX || V2.x1 < this.lowX){return null;}if(V2.y1 > this.hiY || V2.y0 < this.lowY){return null;}this.highlighted=!!1;return {action:P7_,p0:m3.clone(this.p0),tick:w3,value:c_};};m3.Drawing.freeform.prototype.reposition=function(D3,Z5,b3,w0){var u$,u8,A7;if(!Z5){return;}u$=this.stx.panels[this.panelName];u8=Z5.tick - b3;A7=Z5.value - w0;if(Z5.action == "move"){this.setPoint(0,Z5.p0[0] - u8,Z5.p0[+"1"] - A7,u$.chart);this.adjust();this.render(D3);}};m3.Drawing.freeform.prototype.click=function(u7,S2,B_){var H7,H5B,m2;H7=this.stx.panels[this.panelName];if(!H7){return;}if(this.penDown === !!""){H5B="p";H5B+="oin";H5B+="ter";this.copyConfig();this.startX=Math.round(this.stx.resolveX(this.stx.pixelFromTick(S2,H7.chart)));this.startY=Math.round(this.stx.resolveY(this.stx.pixelFromValueAdjusted(H7,S2,B_)));m2=this.stx.dateFromTick(S2,H7.chart,!0);this.d0=m3.yyyymmddhhmmssmmm(m2);this.tzo0=m2.getTimezoneOffset();this.v0=B_;this.p0=[m3.ChartEngine.crosshairX - this.startX,m3.ChartEngine.crosshairY - this.startY];q2h.N_M(29);this.nodes=[this.p0[0],this.p0[q2h.c0C(0,"1")]];this.pNodes=[this.p0];this.candleWidth=this.stx.layout.candleWidth;this.multiplier=H7.yAxis.multiplier;this.interval=this.stx.layout.interval;this.periodicity=this.stx.layout.periodicity;this.tempSplineTension=this.splineTension;this.splineTension=-1;document.body.style.cursor=H5B;this.penDown=!!"1";return !1;}this.penDown=![];this.splineTension=this.tempSplineTension;document.body.style.cursor="auto";return !0;};m3.Drawing.freeform.prototype.move=function(L6,f7,A5){var Z6,K5;if(!this.penDown){return;}Z6=this.stx.panels[this.panelName];K5=this.stx.dateFromTick(f7,Z6.chart,!"");this.d1=m3.yyyymmddhhmmssmmm(K5);this.tzo1=K5.getTimezoneOffset();this.v1=A5;this.p1=[m3.ChartEngine.crosshairX - this.startX,Z6.yAxis.flipped?this.startY - m3.ChartEngine.crosshairY:m3.ChartEngine.crosshairY - this.startY];if(this.pNodes.length > 2){if(this.p1[0] == this.pNodes[this.pNodes.length - 2][0] && this.p1[0] == this.pNodes[this.pNodes.length - 1][0]){this.pNodes.length--;this.nodes.length-=2;}else if(this.p1[1] == this.pNodes[this.pNodes.length - 2][1] && this.p1[1] == this.pNodes[this.pNodes.length - 1][1]){this.pNodes.length--;q2h.j7J(31);this.nodes.length-=q2h.a$j("2",96);}}this.nodes.push(this.p1[0],this.p1["1" ^ 0]);this.pNodes.push(this.p1);this.render(L6);return !!0;};m3.Drawing.freeform.prototype.intervalRatio=function(c5,H$,U0,p5,s5,t9){var E0,Q5w,q6L,N8_,f2x;E0=0;q2h.T$X();if(c5 == H$){E0=1;}else if(!isNaN(c5) && !isNaN(H$)){q2h.j7J(7);E0=q2h.c0C(c5,H$);}else if(isNaN(c5)){Q5w="d";Q5w+="a";Q5w+="y";if(c5 == "month"){if(H$ == "week"){E0=a_(s5,t9);}else if(H$ == "day"){E0=j1(s5,t9);}else if(!isNaN(H$)){E0=j1(s5,t9) * U3(s5,t9) / H$;}}else if(c5 == "week"){if(H$ == "month"){q2h.j7J(1);var X0w=q2h.c0C(0,1);E0=X0w / a_(s5,t9);}if(H$ == "day"){E0=L_(s5,t9);}else if(!isNaN(H$)){E0=L_(s5,t9) * U3(s5,t9) / H$;}}else if(c5 == Q5w){q6L="m";q6L+="on";q6L+="t";q6L+="h";if(H$ == "week"){q2h.j7J(45);var a46=q2h.a$j(4,8,9,12);E0=("1" | a46) / L_(s5,t9);}else if(H$ == q6L){q2h.j7J(27);var J4l=q2h.a$j(11,10);E0=J4l / j1(s5,t9);}else if(!isNaN(H$)){E0=U3(s5,t9) / H$;}}}else if(!isNaN(c5)){N8_="da";N8_+="y";f2x="m";f2x+="onth";if(H$ == f2x){E0=c5 / (j1(s5,t9) * U3(s5,t9));}else if(H$ == "week"){E0=c5 / (L_(s5,t9) * U3(s5,t9));}else if(H$ == N8_){E0=c5 / U3(s5,t9);}}function U3(B0,N_){if(m3.Market.Symbology.isForexSymbol(N_)){return 1440;}return 390;}function L_(B2,l3){return 5;}function j1(p3,V4){var j2G,e_5,O_l;j2G=1114596948;q2h.N_M(46);e_5=-q2h.c0C("1359803321",0);O_l=2;for(var G0z=1;q2h.S9Y(G0z.toString(),G0z.toString().length,+"66475") !== j2G;G0z++){return 30;}if(q2h.O1W(O_l.toString(),O_l.toString().length,37483) !== e_5){return 89;}}q2h.j7J(7);E0*=q2h.c0C(U0,p5);function a_(Z$,z1){q2h.f3X();return 5;}return E0;};m3.Drawing.freeform.prototype.render=function(F5){var y$,S4,a$,V0,d9,Y7,W0,Q9,C9,f5,c9,E6;y$=this.stx.panels[this.panelName];if(!y$){return;}S4=this.intervalRatio(this.interval,this.stx.layout.interval,this.periodicity,this.stx.layout.periodicity,this.d0,y$.chart.symbol);if(S4 === "0" << 64){return;}a$=this.stx.layout.candleWidth / this.candleWidth;V0=y$.yAxis.multiplier / this.multiplier;this.setPoint(0,this.d0,this.v0,y$.chart);d9=this.stx.pixelFromTick(this.p0[0],y$.chart);Y7=this.stx.pixelFromValueAdjusted(y$,this.p0[0],this.p0[1]);W0=[];Q9=this.lineWidth;C9=this.getLineColor();f5={pattern:this.pattern,lineWidth:Q9};for(var u0=0;u0 < this.pNodes.length;u0++){c9=S4 * a$ * this.pNodes[u0][0] + d9;q2h.N_M(39);var f1z=q2h.a$j(11,4,11,3);E6=V0 * this.pNodes[u0][f1z];if(y$.yAxis.flipped){q2h.j7J(14);E6=q2h.a$j(Y7,E6);}else {E6+=Y7;}W0.push(c9,E6);}if(!W0.length){return;}if(this.splineTension < 0){this.stx.connectTheDots(W0,C9,this.name,F5,y$,f5);}else {this.stx.plotSpline(W0,this.splineTension,C9,this.name,F5,!0,f5);}};m3.Drawing.freeform.prototype.adjust=function(){var e_,k_,V5,t$,t7,v9,M9,s9;e_=this.stx.panels[this.panelName];if(!e_){return;}q2h.j7J(29);k_=[this.nodes[0],this.nodes[q2h.c0C(0,"1")]];this.pNodes=[k_];this.lowX=this.nodes[0];this.hiX=this.nodes[+"0"];q2h.N_M(5);this.lowY=this.nodes[q2h.c0C(1,"1")];this.hiY=this.nodes[1];for(var c3=2;c3 < this.nodes.length;c3+=2){q2h.j7J(47);V5=[this.nodes[c3],this.nodes[q2h.a$j(c3,"1")]];this.pNodes.push(V5);this.lowX=Math.min(this.lowX,V5[0]);this.hiX=Math.max(this.hiX,V5[0]);this.lowY=Math.max(this.lowY,V5[1]);this.hiY=Math.min(this.hiY,V5["1" ^ 0]);}t$=this.intervalRatio(this.interval,this.stx.layout.interval,this.periodicity,this.stx.layout.periodicity,this.d0,e_.chart.symbol);if(t$ === 0){return;}t7=this.stx.layout.candleWidth / this.candleWidth;v9=e_.yAxis.multiplier / this.multiplier;this.setPoint(0,this.d0,this.v0,e_.chart);M9=this.stx.pixelFromTick(this.p0[0],e_.chart);s9=this.stx.pixelFromValueAdjusted(e_,this.p0[0],this.p0[1]);this.lowX=this.stx.tickFromPixel(Math.floor(t$ * t7 * this.lowX) + M9,e_.chart);this.hiX=this.stx.tickFromPixel(Math.ceil(t$ * t7 * this.hiX) + M9,e_.chart);if(e_.yAxis.flipped){this.lowY=this.stx.valueFromPixel(s9 - Math.floor(v9 * this.lowY),e_);this.hiY=this.stx.valueFromPixel(s9 - Math.ceil(v9 * this.hiY),e_);}else {this.lowY=this.stx.valueFromPixel(Math.floor(v9 * this.lowY) + s9,e_);this.hiY=this.stx.valueFromPixel(Math.ceil(v9 * this.hiY) + s9,e_);}};m3.Drawing.freeform.prototype.serialize=function(){q2h.f3X();return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,cw:Number(this.candleWidth.toFixed(4)),mlt:Number(this.multiplier.toFixed(4)),d0:this.d0,tzo0:this.tzo0,v0:this.v0,inter:this.interval,pd:this.periodicity,nodes:this.nodes};};m3.Drawing.freeform.prototype.reconstruct=function(o$,x4){this.stx=o$;q2h.T$X();this.color=x4.col;this.panelName=x4.pnl;this.pattern=x4.ptrn;this.lineWidth=x4.lw;this.candleWidth=x4.cw;this.multiplier=x4.mlt;this.d0=x4.d0;this.tzo0=x4.tzo0;this.v0=x4.v0;this.interval=x4.inter;this.periodicity=x4.pd;this.nodes=x4.nodes;this.adjust();};m3.Drawing.callout=function(){this.name="callout";this.arr=[];this.w=0;this.h=0;this.padding=4;this.text="";this.ta=null;this.fontSize=0;this.font={};this.stemEntry="";this.defaultWidth=50;this.defaultHeight=+"10";;};m3.inheritsFrom(m3.Drawing.callout,m3.Drawing.annotation);m3.Drawing.callout.prototype.configs=["color","fillColor","lineWidth","pattern","font"];m3.Drawing.callout.prototype.copyConfig=function(G$){m3.Drawing.copyConfig(this,G$);this.borderColor=this.color;};m3.Drawing.callout.prototype.move=function(D0,g3,Q2){q2h.T$X();if(!this.penDown){return;}this.copyConfig();this.p0=[g3,Q2];this.render(D0);};m3.Drawing.callout.prototype.onChange=function(n7){var j9,N7,P8;j9=this.stx.panels[this.panelName];if(!j9){return;}N7=n7.target;this.w=N7.clientWidth;this.h=N7.clientHeight;q2h.f3X();P8=this.context || this.stx.chart.tempCanvas.context;m3.clearCanvas(P8.canvas,this.stx);this.render(P8);this.edit(P8);};m3.Drawing.callout.prototype.render=function(J0){var a1,J4,w2,L7,L9,w6,R1,o6,H3,S1,r6,z$,N0,r9,k9,h3M,M3o,E6H,y6,v8_,w73,o3G,n4U,a7h,u7u,C9R,Q0i,X5S,F1z,Y25,i4M,L9A,L3I,H9;this.context=J0;a1=this.stx.panels[this.panelName];if(!a1){return;}J4=this.stx.pixelFromTick(this.p0[0],a1.chart);w2=this.stx.pixelFromValueAdjusted(a1,this.p0[+"0"],this.p0[1]);if(isNaN(w2)){return;}J0.font=this.fontString;J0.textBaseline="top";L7=J4;L9=w2;q2h.N_M(28);var K2T=q2h.a$j(338,10,0,17,2);w6=this.w / K2T;q2h.j7J(14);var f42=q2h.a$j(21,19);R1=this.h / f42;if(this.penDown){w6=this.defaultWidth;R1=this.defaultHeight;if(!R1){R1=this.fontSize;}}o6=this.lineWidth;if(!o6){o6=1.1;}H3=this.color;if(H3 == "auto" || m3.isTransparent(H3)){H3=this.stx.defaultColor;}S1=this.borderColor;if(S1 == "auto" || m3.isTransparent(S1)){S1=this.stx.defaultColor;}if(this.highlighted){S1=this.stx.getCanvasColor("stx_highlight_vector");}k9=Math.min(Math.min(w6,R1) / 2,8);if(this.stem){if(this.stem.t){r6=this.stx.pixelFromTick(this.stem.t);N0=this.stx.pixelFromValueAdjusted(a1,this.stem.t,this.stem.v);}else if(this.stem.x){r6=L7;N0=L9;L7+=this.stem.x;L9+=this.stem.y;}h3M=-1801199561;M3o=-1975668760;q2h.N_M(14);E6H=q2h.a$j("2",0);for(var q8D=+"1";q2h.O1W(q8D.toString(),q8D.toString().length,95124) !== h3M;q8D++){y6="";E6H+=2;}if(q2h.S9Y(E6H.toString(),E6H.toString().length,25256) !== M3o){y6="";}if(r6 >= L7 + w6){q2h.j7J(1);z$=q2h.a$j(L7,w6);y6="r";}else if(r6 > L7 - w6 && r6 < L7 + w6){z$=L7;y6="c";}else if(r6 <= L7 - w6){q2h.j7J(14);z$=q2h.a$j(L7,w6);y6="l";}if(N0 >= L9 + R1){v8_=-478116192;w73=223288090;o3G=2;for(var L31=1;q2h.O1W(L31.toString(),L31.toString().length,60354) !== v8_;L31++){q2h.N_M(1);r9=q2h.a$j(L9,R1);y6+="1590" << 64 !== 6145?"b":"j";o3G+=2;}if(q2h.S9Y(o3G.toString(),o3G.toString().length,73834) !== w73){q2h.N_M(14);r9=q2h.c0C(L9,R1);y6/=4911 == 2849?"j":"j";}}else if(N0 > L9 - R1 && N0 < L9 + R1){r9=L9;y6+=(1190,975) == 7450?!!"":("4980" | 16) <= (410.98,722.84)?+"8000" >= (8224,7090)?"O":(!!({}),!1):"m";}else if(N0 <= L9 - R1){q2h.j7J(14);r9=q2h.c0C(L9,R1);y6+=907.48 <= (651.66,9380)?"t":(0x10a1,+"6.04e+3");}this.stemEntry=y6;if(y6 != "cm"){r6=Math.round(r6);z$=Math.round(z$);N0=Math.round(N0);r9=Math.round(r9);}}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight_bg",J0);}else {if(this.fillColor){J0.fillStyle=this.fillColor;J0.globalAlpha=0.4;}else if(this.stem){J0.fillStyle=this.stx.containerColor;}}J0.strokeStyle=S1;if(J0.setLineDash){J0.setLineDash(m3.borderPatternToArray(o6,this.pattern));J0.lineDashOffset=0;;}if(S1){n4U="l";n4U+="t";a7h="c";a7h+="b";u7u="r";u7u+="b";C9R="r";C9R+="t";J0.beginPath();J0.lineWidth=o6;q2h.j7J(3);J0.moveTo(q2h.c0C(k9,w6,L7),q2h.c0C(L9,R1,q2h.j7J(14)));if(this.stemEntry != C9R){q2h.j7J(1);J0.quadraticCurveTo(q2h.a$j(L7,w6),q2h.c0C(L9,R1,q2h.j7J(14)),q2h.a$j(L7,w6,q2h.N_M(1)),q2h.c0C(L9,k9,R1,q2h.N_M(15)));;}else {J0.lineTo(r6,N0);q2h.N_M(1);J0.lineTo(q2h.c0C(L7,w6),q2h.c0C(L9,k9,R1,q2h.N_M(15)));}q2h.N_M(1);J0.lineTo(q2h.c0C(L7,w6),q2h.c0C(L9,k9,2,q2h.N_M(48)));if(this.stemEntry == "rm"){J0.lineTo(r6,N0);}q2h.j7J(1);J0.lineTo(q2h.c0C(L7,w6),q2h.a$j(2,k9,L9,q2h.N_M(49)));q2h.j7J(1);J0.lineTo(q2h.c0C(L7,w6),q2h.c0C(k9,R1,L9,q2h.N_M(3)));if(this.stemEntry != u7u){q2h.j7J(1);J0.quadraticCurveTo(q2h.c0C(L7,w6),q2h.c0C(L9,R1,q2h.j7J(1)),q2h.a$j(k9,w6,L7,q2h.j7J(3)),q2h.c0C(L9,R1,q2h.j7J(1)));Q0i=-1787821410;X5S=-334914513;F1z=2;for(var a86=1;q2h.O1W(a86.toString(),a86.toString().length,58859) !== Q0i;a86++){;F1z+=2;}if(q2h.O1W(F1z.toString(),F1z.toString().length,43222) !== X5S){;};}else {J0.lineTo(r6,N0);q2h.j7J(3);J0.lineTo(q2h.a$j(k9,w6,L7),q2h.a$j(L9,R1,q2h.j7J(1)));}q2h.j7J(49);J0.lineTo(q2h.a$j(2,k9,L7),q2h.c0C(L9,R1,q2h.j7J(1)));if(this.stemEntry == a7h){J0.lineTo(r6,N0);}q2h.j7J(48);J0.lineTo(q2h.a$j(L7,k9,2),q2h.a$j(L9,R1,q2h.N_M(1)));q2h.j7J(15);J0.lineTo(q2h.a$j(L7,k9,w6),q2h.c0C(L9,R1,q2h.N_M(1)));if(this.stemEntry != "lb"){q2h.N_M(14);J0.quadraticCurveTo(q2h.c0C(L7,w6),q2h.a$j(L9,R1,q2h.j7J(1)),q2h.a$j(L7,w6,q2h.j7J(14)),q2h.a$j(k9,R1,L9,q2h.j7J(3)));Y25=687739654;i4M=+"324565001";L9A=2;for(var s6r=+"1";q2h.O1W(s6r.toString(),s6r.toString().length,21916) !== Y25;s6r++){;L9A+=2;}if(q2h.O1W(L9A.toString(),L9A.toString().length,39618) !== i4M){;}}else {J0.lineTo(r6,N0);q2h.j7J(14);J0.lineTo(q2h.a$j(L7,w6),q2h.c0C(k9,R1,L9,q2h.N_M(3)));}q2h.N_M(14);J0.lineTo(q2h.c0C(L7,w6),q2h.a$j(2,k9,L9,q2h.N_M(49)));if(this.stemEntry == "lm"){J0.lineTo(r6,N0);}q2h.j7J(14);J0.lineTo(q2h.a$j(L7,w6),q2h.a$j(L9,k9,2,q2h.j7J(48)));q2h.j7J(14);J0.lineTo(q2h.c0C(L7,w6),q2h.c0C(L9,k9,R1,q2h.N_M(15)));if(this.stemEntry != n4U){q2h.j7J(14);J0.quadraticCurveTo(q2h.a$j(L7,w6),q2h.a$j(L9,R1,q2h.j7J(14)),q2h.a$j(L7,k9,w6,q2h.j7J(15)),q2h.c0C(L9,R1,q2h.N_M(14)));;}else {J0.lineTo(r6,N0);q2h.j7J(15);J0.lineTo(q2h.c0C(L7,k9,w6),q2h.c0C(L9,R1,q2h.N_M(14)));}q2h.N_M(48);J0.lineTo(q2h.a$j(L7,k9,2),q2h.a$j(L9,R1,q2h.N_M(14)));if(this.stemEntry == "ct"){J0.lineTo(r6,N0);}q2h.j7J(50);J0.lineTo(q2h.c0C("2",L7,k9),q2h.c0C(L9,R1,q2h.j7J(14)));q2h.N_M(3);J0.lineTo(q2h.c0C(k9,w6,L7),q2h.a$j(L9,R1,q2h.j7J(14)));J0.fill();J0.globalAlpha=1;if(this.pattern != "none"){J0.stroke();}}q2h.T$X();if(this.highlighted){L3I="st";L3I+="x_annotation_highl";L3I+="ight";this.stx.canvasColor(L3I,J0);}else {J0.fillStyle=H3;}L9+=this.padding;if(!this.ta){for(var H0=+"0";H0 < this.arr.length;H0++){J0.fillText(this.arr[H0],L7 - w6 + this.padding,L9 - R1);L9+=this.fontSize;}}J0.textBaseline="alphabetic";if(this.highlighted && !this.noHandles){H9=this.highlighted == "p0"?!!({}):!"1";this.littleCircle(J0,r6,N0,H9);};};m3.Drawing.callout.prototype.click=function(S_,W4,g5){var L5;if(this.stx.overXAxis || this.stx.overYAxis){return;}L5=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,W4,g5,L5.chart);if(!this.penDown){this.stem={d:this.d0,v:this.v0};this.penDown=!0;this.adjust();return !!0;}this.adjust();q2h.T$X();this.edit(S_);this.penDown=!!0;return !!"";};m3.Drawing.callout.prototype.reposition=function(w$,J1,v3,k2){var R9,J$,J7,O5F;if(!J1){return;}R9=this.stx.panels[this.panelName];J$=J1.tick - v3;J7=J1.value - k2;if(J1.stem){O5F="d";O5F+="ra";O5F+="g";if(J1.action == O5F){this.stem={d:this.stx.dateFromTick(v3,R9.chart,!0),v:k2};}else if(J1.action == "move"){this.setPoint(0,J1.p0[0] - J$,J1.p0[1] - J7,R9.chart);this.stem={d:this.stx.dateFromTick(this.stx.tickFromDate(J1.stem.d,R9.chart) - J$),v:J1.stem.v - J7};}this.adjust();}else {this.setPoint(0,J1.p0[0] - J$,J1.p0[1] - J7,R9.chart);}this.render(w$);};m3.Drawing.callout.prototype.lineIntersection=function(F4,n9,q4,y4){var f4,P0,r8,b_,E8,R3,X1,L0,l5,G5,s6,g6;f4=this.stx.panels[this.panelName];q2h.f3X();P0=this.stem;r8=this.p0;b_=this.stx;if(!r8 || !P0 || !f4){return !({});}E8=P0.t || this.stx.tickFromDate(P0.d,f4.chart);R3={x0:r8["0" << 32],x1:E8,y0:r8[+"1"],y1:P0.v};X1=m3.convertBoxToPixels(b_,this.panelName,R3);L0=X1.x0;l5=X1.y0;G5=X1.x1;s6=X1.y1;if(typeof this.stemEntry == "string"){if(this.stemEntry.indexOf("l") > -("1" - 0)){L0-=this.w / +"2";}else if(this.stemEntry.indexOf("r") > -("1" ^ 0)){q2h.N_M(27);var u4A=q2h.a$j(12,10);L0+=this.w / u4A;}if(this.stemEntry.indexOf("t") > -("1" * 1)){q2h.N_M(19);var o2j=q2h.a$j(8,10,6,478);l5-=this.h / o2j;}else if(this.stemEntry.indexOf("b") > -1){l5+=this.h / +"2";}}g6=m3.convertBoxToPixels(b_,this.panelName,q4);return m3.boxIntersects(g6.x0,g6.y0,g6.x1,g6.y1,L0,l5,G5,s6,y4);};m3.Drawing.callout.prototype.intersected=function(I5,x6,Z8){var y5,g3U,K7,Y0,U7,r2,P4,k93,a5Y;y5=this.stx.panels[this.panelName];if(!this.p0){return null;}if(this.pointIntersection(this.stem.t,this.stem.v,Z8)){g3U="p";g3U+="0";this.highlighted=g3U;return {action:"drag",stem:!![]};}q2h.N_M(45);var l23=q2h.a$j(1,7,1,10);K7=this.stx.pixelFromTick(this.p0[0],y5.chart) - this.w / l23;q2h.j7J(51);var O9X=q2h.a$j(7,3,5,3);q2h.j7J(52);var Y2o=q2h.c0C(9,15,4);Y0=this.stx.pixelFromValueAdjusted(y5,this.p0[0],this.p0[O9X]) - this.h / Y2o;U7=K7 + this.w;r2=Y0 + this.h;if(this.stem && this.stem.x){K7+=this.stem.x;U7+=this.stem.x;Y0+=this.stem.y;r2+=this.stem.y;}P4=this.stx.pixelFromTick(I5,y5.chart);k93=this.stx.pixelFromValueAdjusted(y5,I5,x6);if(P4 + Z8.r >= K7 && P4 - Z8.r <= U7 && k93 + Z8.r >= Y0 && k93 - Z8.r <= r2){this.highlighted=!!({});return {p0:m3.clone(this.p0),tick:I5,value:x6};}a5Y=this.lineIntersection(I5,x6,Z8,"segment");if(a5Y){this.highlighted=!"";return {action:"move",stem:m3.clone(this.stem),p0:m3.clone(this.p0),tick:I5,value:x6};}return null;};m3.Drawing.fibonacci=function(){var U7M;U7M="f";U7M+="ibonacci";this.name="fibonacci";this.configurator=U7M;};m3.inheritsFrom(m3.Drawing.fibonacci,m3.Drawing.BaseTwoPoint);m3.Drawing.fibonacci.mapping={trend:(356.29,519.05) <= "5104" * 1?"t":"7515" << 64 <= "328.86" * 1?"3.28e+3" - 0:6.80e+3,color:(1900,9454) >= (+"6660",+"4790")?"c":32.02 > (481.19,9576)?("890.68" * 1,!!"1"):("98.06" - 0,210.23) >= (7039,"517.36" * 1)?!!"":![],parameters:41.14 != +"4162"?"p":(0x17fb,0xb3b),pattern:"pt",opacity:4739 !== 283?"o":482.67,lineWidth:"lw",level:(+"2392",9934) >= 4100?"l":(!"",0x1dff),extendLeft:810.06 < "77.96" * 1?(160.76,9.84e+3):5289 === (6815,"3644" - 0)?0x2e4:"e",printLevels:"pl",printValues:"pv",timezone:"tz",display:"d"};q2h.N_M(14);m3.Drawing.fibonacci.prototype.recommendedLevels=[-0.618,-q2h.a$j("0.382",0),0,0.382,0.5,0.618,1,1.382,1.618];m3.Drawing.fibonacci.prototype.configs=["color","fillColor","lineWidth","pattern","parameters"];m3.Drawing.fibonacci.prototype.initializeSettings=function(I29){var k0D,j_w;k0D=this.recommendedLevels;if(k0D && !I29.currentVectorParameters.fibonacci.fibsAlreadySet){j_w=I29.currentVectorParameters.fibonacci.fibs;for(var E3b=0;E3b < j_w.length;E3b++){delete j_w[E3b].display;for(var Z$h="0" >> 0;Z$h < k0D.length;Z$h++){if(j_w[E3b].level == k0D[Z$h]){j_w[E3b].display=!!"1";}}}}};m3.Drawing.fibonacci.prototype.setOuter=function(){var i9W,g_X,P8s,T5i,w$_,X14,G7h,o2N,I8f,C1p,r1P,o_U,a3j,C3W;i9W=this.stx;g_X=i9W.panels[this.panelName];if(!g_X){return;}P8s=Math.max(this.p0[1],this.p1[1]);T5i=Math.min(this.p0[1],this.p1["1" - 0]);q2h.N_M(14);w$_=q2h.a$j(P8s,T5i);q2h.f3X();this.outer={p0:m3.clone(this.p0),p1:m3.clone(this.p1)};X14=i9W.pixelFromValueAdjusted(g_X,this.p0[0],this.p0[1]);G7h=i9W.pixelFromValueAdjusted(g_X,this.p1[0],this.p1[1]);o2N=i9W.pixelFromTick(this.p0[0],g_X.chart);I8f=i9W.pixelFromTick(this.p1[0],g_X.chart);C1p=+"0";r1P=+"1";for(var D0v=0;D0v < this.parameters.fibs.length;D0v++){o_U=this.parameters.fibs[D0v];if(o_U.level >= C1p && o_U.level <= r1P || !o_U.display)continue;a3j=i9W.pixelFromValueAdjusted(g_X,this.p0[0],G7h < X14?P8s - w$_ * o_U.level:T5i + w$_ * o_U.level);C3W=m3.xIntersection({x0:o2N,x1:I8f,y0:X14,y1:G7h},a3j);if(o_U.level < C1p){C1p=o_U.level;this.outer.p1[1]=i9W.valueFromPixel(a3j,g_X);this.outer.p1[0]=i9W.tickFromPixel(C3W,g_X.chart);}else if(o_U.level > r1P){r1P=o_U.level;this.outer.p0[1]=i9W.valueFromPixel(a3j,g_X);this.outer.p0[0]=i9W.tickFromPixel(C3W,g_X.chart);}}};m3.Drawing.fibonacci.prototype.click=function(f0Q,I9I,R9_){var W5i;W5i=this.stx.panels[this.panelName];if(!W5i){return;}q2h.f3X();this.copyConfig();if(!this.penDown){this.setPoint(0,I9I,R9_,W5i.chart);this.penDown=!!({});return !({});}if(this.accidentalClick(I9I,R9_)){return this.dragToDraw;}this.setPoint(1,I9I,R9_,W5i.chart);this.setOuter();this.parameters=m3.clone(this.parameters);this.penDown=!!0;return !!"1";;};m3.Drawing.fibonacci.prototype.render=function(m6H){var a6x,j4v,i5D,T$D,F92,V1g,t2X,O7M,m2N,E8T,B3a,b31,Q6c,p8u,q72,s1c,V$K,b3k,o35,n5h,e81,d1z,b67,N1I,O$r,p52,Y95,P0G,Z_1,z3i,C0e,H9z,O6Z,T6K,e74,X7K,B1f,r3N,M1Q,r9V,f4K;a6x="161";a6x+=".8";a6x+="%";j4v=this.stx.panels[this.panelName];if(!j4v){return;}i5D=j4v.yAxis;if(!this.p1){return;}T$D=Math.max(this.p0[1],this.p1[1]);F92=Math.min(this.p0[+"1"],this.p1[1]);V1g=i5D.flipped?F92 - T$D:T$D - F92;t2X=this.stx.pixelFromTick(this.p0[0],j4v.chart);O7M=this.stx.pixelFromTick(this.p1[0],j4v.chart);m2N=this.stx.pixelFromValueAdjusted(j4v,this.p0[0],this.p0[1]);E8T=this.stx.pixelFromValueAdjusted(j4v,this.p1[0],this.p1[1]);B3a=Math.min(E8T,m2N);b31=Math.max(E8T,m2N);q2h.j7J(14);Q6c=q2h.a$j(b31,B3a);q2h.N_M(53);p8u=q2h.c0C(0,E8T,m2N,t2X,O7M);q72={color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}};if(!this.parameters.trend){this.parameters.trend=q72;}s1c=this.getLineColor(this.parameters.trend.color);m6H.textBaseline="middle";this.stx.canvasFont("stx_yaxis",m6H);q2h.N_M(3);var H19=q2h.a$j(0,4,6);V$K=m6H.measureText(a6x).width + H19;b3k=Number.MAX_VALUE;o35=Number.MAX_VALUE;q2h.N_M(54);var G3L=q2h.c0C(16,18,4,1,4);n5h=Number.MAX_VALUE * G3L;q2h.j7J(3);var Y4M=q2h.a$j(28,12,15);e81=Number.MAX_VALUE * Y4M;q2h.f3X();d1z=this.color;if(d1z == "auto" || m3.isTransparent(d1z)){d1z=this.stx.defaultColor;}this.rays=[];for(var e3r=0;e3r < this.parameters.fibs.length;e3r++){b67="un";b67+="defined";N1I="s";N1I+="e";N1I+="gmen";N1I+="t";O$r="a";O$r+="uto";p52="au";p52+="t";p52+="o";m6H.textAlign="left";m6H.fillStyle=d1z;Y95=this.parameters.fibs[e3r];if(!Y95.display)continue;P0G=this.stx.pixelFromValueAdjusted(j4v,this.p0[0],E8T < m2N?T$D - V1g * Y95.level:F92 + V1g * Y95.level);Z_1=m3.xIntersection({x0:t2X,x1:O7M,y0:m2N,y1:E8T},P0G);z3i=this.parameters.extendLeft?0:Z_1;C0e=j4v.left + j4v.width;if(this.parameters.printLevels){q2h.j7J(55);var h8u=q2h.c0C(2,60,0,12);H9z=Math.round(Y95.level * +"1000") / h8u + "%";C0e-=V$K;if(this.parameters.printValues){m6H.fillStyle=d1z;this.stx.canvasFont("stx_yaxis",m6H);;}if(C0e < z3i){m6H.textAlign="right";}m6H.fillText(H9z,C0e,P0G);if(C0e < z3i){C0e+=5;}else {C0e-=5;}}if(this.parameters.printValues){if(Z_1 < j4v.width){O6Z=this.stx.transformedPriceFromPixel(P0G,j4v);if(i5D.priceFormatter){O6Z=i5D.priceFormatter(this.stx,j4v,O6Z);}else {O6Z=this.stx.formatYAxisPrice(O6Z,j4v);}if(m6H == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(j4v,O6Z,P0G,d1z,null,m6H);if(m6H == this.stx.chart.context){this.stx.startClip(j4v.name);}}}T6K=Y95.color;if(T6K == p52 || m3.isTransparent(T6K)){T6K=this.color;}if(T6K == "auto" || m3.isTransparent(T6K)){T6K=this.stx.defaultColor;}e74=Y95.color;if(e74 == "auto" || m3.isTransparent(e74)){e74=this.fillColor;}if(e74 == O$r || m3.isTransparent(e74)){e74=this.stx.defaultColor;}m6H.fillStyle=e74;X7K=m3.clone(Y95.parameters);if(this.highlighted){X7K.opacity=1;}this.stx.plotLine(z3i,C0e,P0G,P0G,this.highlighted?s1c:T6K,N1I,m6H,j4v,X7K);this.rays.push([[z3i,P0G],[C0e,P0G]]);m6H.globalAlpha=0.05;m6H.beginPath();m6H.moveTo(C0e,P0G);m6H.lineTo(z3i,P0G);if(z3i){m6H.lineTo(O7M,E8T);}else {m6H.lineTo(z3i,E8T);}m6H.lineTo(C0e,E8T);if(typeof e74 != b67){m6H.fill();}m6H.globalAlpha=1;if(P0G < o35){b3k=Z_1;o35=P0G;}if(P0G > e81){n5h=Z_1;e81=P0G;}}for(var E9C=0;E9C <= 1;E9C++){B1f=p8u?b31 - Q6c * E9C:B3a + Q6c * E9C;B1f=Math.round(B1f);if(B1f < o35){b3k=m3.xIntersection({x0:t2X,x1:O7M,y0:m2N,y1:E8T},B1f);o35=B1f;}if(B1f > e81){n5h=m3.xIntersection({x0:t2X,x1:O7M,y0:m2N,y1:E8T},B1f);e81=B1f;}}r3N=m3.clone(this.parameters.trend.parameters);if(this.highlighted){r3N.opacity=1;}this.stx.plotLine(b3k,n5h,o35,e81,s1c,"segment",m6H,j4v,r3N);if(this.highlighted){M1Q="p";M1Q+="1";r9V=this.highlighted == "p0"?!"":!!0;f4K=this.highlighted == M1Q?!!"1":![];this.littleCircle(m6H,t2X,m2N,r9V);this.littleCircle(m6H,O7M,E8T,f4K);}};m3.Drawing.fibonacci.prototype.reposition=function(j3Y,B_r,k_p,F0I){var l$L,c$T,o4X;if(!B_r){return;}q2h.N_M(14);l$L=-q2h.c0C("1127652126",0);c$T=1278312784;o4X=2;for(var O$s=1;q2h.S9Y(O$s.toString(),O$s.toString().length,"54347" ^ 0) !== l$L;O$s++){m3.Drawing.BaseTwoPoint.prototype.reposition.apply(this,arguments);this.adjust();q2h.N_M(5);o4X+=q2h.a$j(1,"2");}q2h.f3X();if(q2h.O1W(o4X.toString(),o4X.toString().length,+"84820") !== c$T){m3.Drawing.BaseTwoPoint.prototype.reposition.apply(this,arguments);this.adjust();}};m3.Drawing.fibonacci.prototype.intersected=function(n3J,T$h,c5N){var J93,o0K,Y7C,V4f,K3s,u3g,v4b;J93="s";J93+="egme";J93+="nt";o0K=this.p0;Y7C=this.p1;if(!o0K || !Y7C){return null;}V4f={0:o0K,1:Y7C};for(var C7E in V4f){if(this.pointIntersection(V4f[C7E][0],V4f[C7E][+"1"],c5N)){q2h.j7J(1);this.highlighted=q2h.c0C(805.08 === (132,3074)?(6.69e+3,+"982"):(3870,4862) > 4890?(9318,989.6) < (889.8,4539)?(9.16e+3,!({})):"h":"p",C7E);return {action:"drag",point:"p" + C7E};}}q2h.T$X();K3s=this.outer;u3g=this.rays;v4b=K3s && this.lineIntersection(n3J,T$h,c5N,J93,K3s.p0,K3s.p1);if(!v4b){for(var X3N=0;X3N < u3g.length;X3N++){if(this.lineIntersection(n3J,T$h,c5N,"ray",u3g[X3N][0],u3g[X3N][1],!!({}))){v4b=!0;break;}}}if(v4b){this.highlighted=!0;return {action:"move",p0:m3.clone(o0K),p1:m3.clone(Y7C),tick:n3J,value:T$h};}return null;};m3.Drawing.fibonacci.prototype.reconstruct=function(L8j,Q_P){Q_P=m3.replaceFields(Q_P,m3.reverseObject(m3.Drawing.fibonacci.mapping));this.stx=L8j;this.parameters=Q_P.parameters;if(!this.parameters){this.parameters=m3.clone(this.stx.currentVectorParameters.fibonacci);}this.color=Q_P.col;this.fillColor=Q_P.fc;this.panelName=Q_P.pnl;this.d0=Q_P.d0;this.d1=Q_P.d1;this.d2=Q_P.d2;this.tzo0=Q_P.tzo0;this.tzo1=Q_P.tzo1;this.tzo2=Q_P.tzo2;this.v0=Q_P.v0;this.v1=Q_P.v1;this.v2=Q_P.v2;q2h.T$X();this.adjust();};m3.Drawing.fibonacci.prototype.adjust=function(){q2h.T$X();var C2I;C2I=this.stx.panels[this.panelName];if(!C2I){return;}this.setPoint(0,this.d0,this.v0,C2I.chart);this.setPoint(+"1",this.d1,this.v1,C2I.chart);this.setOuter();};m3.Drawing.fibonacci.prototype.serialize=function(){var K1k;q2h.f3X();K1k={name:this.name,parameters:this.parameters,pnl:this.panelName,col:this.color,fc:this.fillColor,d0:this.d0,d1:this.d1,d2:this.d2,tzo0:this.tzo0,tzo1:this.tzo1,tzo2:this.tzo2,v0:this.v0,v1:this.v1,v2:this.v2};return m3.replaceFields(K1k,m3.Drawing.fibonacci.mapping);};m3.Drawing.retracement=function(){var a_S;q2h.T$X();a_S="ret";a_S+="racement";this.name=a_S;};m3.inheritsFrom(m3.Drawing.retracement,m3.Drawing.fibonacci);m3.Drawing.fibprojection=function(){q2h.f3X();this.name="fibprojection";this.dragToDraw=!!0;this.p2=null;};m3.inheritsFrom(m3.Drawing.fibprojection,m3.Drawing.fibonacci);m3.Drawing.fibprojection.prototype.recommendedLevels=[0,0.618,1,1.272,1.618,2.618,+"4.236"];m3.Drawing.fibprojection.prototype.click=function(e6Z,S9s,E5r){var Z3z;Z3z=this.stx.panels[this.panelName];if(!Z3z){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,S9s,E5r,Z3z.chart);this.penDown=!!"1";return ![];}if(this.accidentalClick(S9s,E5r)){this.stx.undo();return !!({});}if(this.p2 !== null){this.setPoint(2,this.p2[0],this.p2[1],Z3z.chart);this.parameters=m3.clone(this.parameters);return !![];}this.setPoint(1,S9s,E5r,Z3z.chart);this.p2=[this.p1[0],this.p1[1]];return ![];;};m3.Drawing.fibprojection.prototype.render=function(D0r){var z9C,q3f,O8U,M0T,O09,S0b,b66,Q5P,Q9x,I9N,A0g,f9D,X7S,i4x,t9N,L2K,I1J,m6_,i75,Y2n,C$g,e2E,o06,H5h,M35,l8c,S5I,Q3M,u7f,l9b,l6w,a4o,R7M,F3L;z9C="1";z9C+="6";q2h.f3X();z9C+="1.8%";q3f=this.stx.panels[this.panelName];if(!q3f){return;}O8U=q3f.yAxis;if(!this.p1){return;}q2h.j7J(18);var k_k=q2h.a$j(27,10,20,14);q2h.j7J(21);var N6N=q2h.a$j(261,20,13);M0T=this.p1["1" * k_k] - this.p0[N6N];O09=this.stx.pixelFromTick(this.p0[0],q3f.chart);S0b=-65720527;b66=-2019386272;Q5P=+"2";for(var T1b=1;q2h.O1W(T1b.toString(),T1b.toString().length,72157) !== S0b;T1b++){Q9x=this.stx.pixelFromTick(this.p1[6],q3f.chart);Q5P+=2;}if(q2h.O1W(Q5P.toString(),Q5P.toString().length,+"48866") !== b66){Q9x=this.stx.pixelFromTick(this.p1[3],q3f.chart);}Q9x=this.stx.pixelFromTick(this.p1[0],q3f.chart);I9N=this.stx.pixelFromValueAdjusted(q3f,this.p0[0],this.p0[1]);A0g=this.stx.pixelFromValueAdjusted(q3f,this.p1[0],this.p1[1]);f9D=null;X7S=null;if(this.p2){f9D=this.stx.pixelFromTick(this.p2[0],q3f.chart);X7S=this.stx.pixelFromValueAdjusted(q3f,this.p2[+"0"],this.p2[1]);}i4x={color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}};if(!this.parameters.trend){this.parameters.trend=i4x;}t9N=this.getLineColor(this.parameters.trend.color);D0r.textBaseline="middle";this.stx.canvasFont("stx_yaxis",D0r);q2h.j7J(15);var G6T=q2h.a$j(6,15,11);L2K=D0r.measureText(z9C).width + G6T;I1J=this.color;if(I1J == "auto" || m3.isTransparent(I1J)){I1J=this.stx.defaultColor;}if(this.p2){this.rays=[];for(var E6Z=0;E6Z < this.parameters.fibs.length;E6Z++){m6_="se";m6_+="gme";m6_+="nt";D0r.textAlign="left";D0r.fillStyle=I1J;i75=this.parameters.fibs[E6Z];if(!i75.display)continue;Y2n=this.stx.pixelFromValueAdjusted(q3f,this.p2[0],this.p2[1] + M0T * i75.level);C$g=m3.xIntersection({x0:O09,x1:Q9x,y0:I9N,y1:A0g},Y2n);e2E=this.parameters.extendLeft?0:O09;o06=q3f.left + q3f.width;if(this.parameters.printLevels){q2h.N_M(56);var G10=q2h.a$j(11,1,1,20);q2h.N_M(57);var O3d=q2h.c0C(95500,20,10,4,480);q2h.N_M(1);var A2j=q2h.a$j(3,29);H5h=Math.round(i75.level * +"1000") / G10 + (("7517" ^ 0) > (+"730",O3d)?"%":(![],"6.89e+3" << A2j));o06-=L2K;if(this.parameters.printValues){M35="stx_y";M35+="a";M35+="xis";D0r.fillStyle=I1J;this.stx.canvasFont(M35,D0r);;}if(o06 < e2E){D0r.textAlign="right";}D0r.fillText(H5h,o06,Y2n);if(o06 < e2E){o06+=5;}else {o06-=5;}}if(this.parameters.printValues){if(C$g < q3f.width){l8c=this.stx.transformedPriceFromPixel(Y2n,q3f);if(O8U.priceFormatter){l8c=O8U.priceFormatter(this.stx,q3f,l8c);}else {l8c=this.stx.formatYAxisPrice(l8c,q3f);}if(D0r == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(q3f,l8c,Y2n,I1J,null,D0r);if(D0r == this.stx.chart.context){this.stx.startClip(q3f.name);}}}S5I=i75.color;if(S5I == "auto" || m3.isTransparent(S5I)){S5I=this.color;}if(S5I == "auto" || m3.isTransparent(S5I)){S5I=this.stx.defaultColor;}Q3M=i75.color;if(Q3M == "auto" || m3.isTransparent(Q3M)){Q3M=this.fillColor;}if(Q3M == "auto" || m3.isTransparent(Q3M)){Q3M=this.stx.defaultColor;}D0r.fillStyle=Q3M;u7f=m3.clone(i75.parameters);if(this.highlighted){u7f.opacity=1;}this.stx.plotLine(e2E,o06,Y2n,Y2n,this.highlighted?t9N:S5I,m6_,D0r,q3f,u7f);this.rays.push([[e2E,Y2n],[o06,Y2n]]);q2h.N_M(5);D0r.globalAlpha=q2h.a$j(1,"0.05");D0r.beginPath();D0r.moveTo(o06,Y2n);D0r.lineTo(e2E,Y2n);if(e2E){D0r.lineTo(O09,X7S);}else {D0r.lineTo(e2E,X7S);}D0r.lineTo(o06,X7S);if(typeof Q3M != "undefined"){D0r.fill();}D0r.globalAlpha=1;}}l9b=m3.clone(this.parameters.trend.parameters);if(this.highlighted){l9b.opacity=1;}this.stx.plotLine(O09,Q9x,I9N,A0g,t9N,"segment",D0r,q3f,l9b);if(this.p2){this.stx.plotLine(Q9x,f9D,A0g,X7S,t9N,"segment",D0r,q3f,l9b);}if(this.highlighted){l6w="p";l6w+="2";a4o=this.highlighted == "p0"?!"":!1;R7M=this.highlighted == "p1"?!![]:!({});F3L=this.highlighted == l6w?!!({}):![];this.littleCircle(D0r,O09,I9N,a4o);this.littleCircle(D0r,Q9x,A0g,R7M);this.littleCircle(D0r,f9D,X7S,F3L);}};m3.Drawing.fibprojection.prototype.move=function(F9h,K67,u2O){if(!this.penDown){return;}this.copyConfig();if(this.p2 === null){this.p1=[K67,u2O];}else {this.p2=[K67,u2O];}this.render(F9h);};m3.Drawing.fibprojection.prototype.reposition=function(U5r,D4m,T0W,y6o){var o2b,G6c,b6q;if(!D4m){return;}q2h.f3X();o2b=this.stx.panels[this.panelName];G6c=D4m.tick - T0W;b6q=D4m.value - y6o;if(D4m.action == "move"){this.setPoint(0,D4m.p0[+"0"] - G6c,D4m.p0[1] - b6q,o2b.chart);this.setPoint(1,D4m.p1[0] - G6c,D4m.p1[1] - b6q,o2b.chart);this.setPoint(+"2",D4m.p2[0] - G6c,D4m.p2[+"1"] - b6q,o2b.chart);this.render(U5r);}else if(D4m.action == "drag"){this[D4m.point]=[T0W,y6o];this.setPoint(0,this.p0[0],this.p0[1],o2b.chart);this.setPoint(1,this.p1[0],this.p1[1],o2b.chart);q2h.j7J(46);this.setPoint(q2h.c0C("2",0),this.p2[0],this.p2[1],o2b.chart);this.render(U5r);}};m3.Drawing.fibprojection.prototype.intersected=function(c9b,A$m,A2f){var q0Z,R0G,m3j,V5a,h42,R63,C3v,G11,E0Q,Z4$,W46;q0Z="segme";q0Z+="nt";R0G=this.p0;m3j=this.p1;V5a=this.p2;h42=-1491408712;R63=125374011;C3v=2;for(var G0u=1;q2h.S9Y(G0u.toString(),G0u.toString().length,50528) !== h42;G0u++){if(~R0G && -m3j && ~V5a){return 1;}C3v+=2;}if(q2h.S9Y(C3v.toString(),C3v.toString().length,98777) !== R63){if(!R0G || !m3j || !V5a){return null;}}G11={0:R0G,1:m3j,2:V5a};q2h.f3X();for(var y9i in G11){if(this.pointIntersection(G11[y9i][+"0"],G11[y9i][1],A2f)){q2h.N_M(1);this.highlighted=q2h.c0C((3971,300.49) == 969.29?(!![],!!0):"p",y9i);return {action:"drag",point:"p" + y9i};}}E0Q=this.rays;Z4$=this.lineIntersection(c9b,A$m,A2f,"segment",R0G,m3j) || this.lineIntersection(c9b,A$m,A2f,q0Z,m3j,V5a);if(!Z4$){for(var z35=+"0";z35 < E0Q.length;z35++){W46="r";W46+="a";W46+="y";if(this.lineIntersection(c9b,A$m,A2f,W46,E0Q[z35][0],E0Q[z35][1],!0)){Z4$=!!"1";break;}}}if(Z4$){this.highlighted=!![];return {action:"move",p0:m3.clone(R0G),p1:m3.clone(m3j),p2:m3.clone(V5a),tick:c9b,value:A$m};}return null;};m3.Drawing.fibprojection.prototype.adjust=function(){var m70;m70=this.stx.panels[this.panelName];if(!m70){return;}q2h.f3X();q2h.j7J(4);this.setPoint(q2h.a$j("0",0),this.d0,this.v0,m70.chart);q2h.N_M(31);this.setPoint(q2h.c0C("1",96),this.d1,this.v1,m70.chart);this.setPoint(2,this.d2,this.v2,m70.chart);};m3.Drawing.fibarc=function(){this.name="fibarc";q2h.f3X();;};m3.inheritsFrom(m3.Drawing.fibarc,m3.Drawing.fibonacci);m3.Drawing.fibarc.prototype.recommendedLevels=[0.382,0.5,0.618,1];m3.Drawing.fibarc.prototype.setOuter=function(){var Q4r,x$c,l3e,c1p,L2O,r_B,Q8y;Q4r=this.stx.panels[this.panelName];if(!Q4r){return;}q2h.T$X();this.outer={p0:m3.clone(this.p0),p1:m3.clone(this.p1)};x$c=this.stx.pixelFromValueAdjusted(Q4r,this.p0[0],this.p0[+"1"]);l3e=this.stx.pixelFromValueAdjusted(Q4r,this.p1[0],this.p1[1]);c1p=this.stx.pixelFromTick(this.p0[0],Q4r.chart);L2O=this.stx.pixelFromTick(this.p1[0],Q4r.chart);q2h.j7J(58);r_B=q2h.c0C(l3e,x$c,0,"2");Q8y=m3.xIntersection({x0:c1p,x1:L2O,y0:x$c,y1:l3e},r_B);this.outer.p0[1]=this.stx.valueFromPixel(r_B,Q4r);this.outer.p0[+"0"]=this.stx.tickFromPixel(Q8y,Q4r.chart);};m3.Drawing.fibarc.prototype.intersected=function(L$b,E3I,K5$){var i5B,H29,P3v,x$N,D_b,G_r,c93,u2q,k_e,D78,P1v;i5B="s";i5B+="e";i5B+="gme";i5B+="nt";H29=this.stx.panels[this.panelName];if(!H29){return;}P3v=this.p0;x$N=this.p1;D_b=this.outer;if(!P3v || !x$N){return null;}G_r={0:P3v,1:x$N};for(var y0u in G_r){if(this.pointIntersection(G_r[y0u][0],G_r[y0u][1],K5$)){q2h.j7J(1);this.highlighted=q2h.c0C((7264,230.38) == (607.62,227.57)?(211.1,1960) < (340.6,"4890" * 1)?8680 < +"2907"?(899.13,0xb69):"X":("N",0x1515):"p",y0u);return {action:"drag",point:"p" + y0u};}}if(this.lineIntersection(L$b,E3I,K5$,i5B,D_b.p0,D_b.p1)){this.highlighted=!"";return {action:"move",p0:m3.clone(P3v),p1:m3.clone(x$N),tick:L$b,value:E3I};}c93={x0:P3v[0],x1:x$N[0],y0:P3v[1],y1:x$N[1]};u2q=m3.convertBoxToPixels(this.stx,this.panelName,c93);k_e={x:Math.abs(Math.sqrt(2) * (u2q.x1 - u2q.x0)),y:Math.abs(Math.sqrt(+"2") * (u2q.y1 - u2q.y0))};D78=this.stx.pixelFromTick(L$b,H29.chart);P1v=this.stx.pixelFromValueAdjusted(H29,L$b,E3I);if(D78 + K5$.r < u2q.x1 - k_e.x || D78 - K5$.r > u2q.x1 + k_e.x){return null;}if(P1v + K5$.r < u2q.y1 - k_e.y || P1v - K5$.r > u2q.y1 + k_e.y){return null;}if(u2q.y0 < u2q.y1 && P1v - K5$.r > u2q.y1){return null;}if(u2q.y0 > u2q.y1 && P1v + K5$.r < u2q.y1){return null;}this.highlighted=!![];q2h.f3X();return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:L$b,value:E3I};};m3.Drawing.fibarc.prototype.render=function(l9c){q2h.f3X();var a5i,P3O,u1A,r_a,g7U,v$d,s0p,L6A,U_k,k12,h__,h1t,t2d,l2$,J6i,d4c,L0q,A7X,T4l,k5T,b99,K4I,J6n,R9O,C_c,i6e,n7x;a5i="lef";a5i+="t";P3O=this.stx.panels[this.panelName];if(!P3O){return;}u1A=P3O.yAxis;if(!this.p1){return;}r_a=this.stx.pixelFromTick(this.p0[0],P3O.chart);g7U=this.stx.pixelFromTick(this.p1[+"0"],P3O.chart);v$d=this.stx.pixelFromValueAdjusted(P3O,this.p0[0],this.p0[+"1"]);s0p=this.stx.pixelFromValueAdjusted(P3O,this.p1[+"0"],this.p1[1]);q2h.j7J(59);L6A=q2h.a$j(s0p,v$d);q2h.j7J(60);U_k=Math.abs(q2h.a$j(g7U,r_a,v$d,s0p));k12=this.getLineColor(this.parameters.trend.color);l9c.textBaseline="middle";this.stx.canvasFont("stx_yaxis",l9c);h__=this.color;if(h__ == "auto" || m3.isTransparent(h__)){h__=this.stx.defaultColor;}for(var D5G=0;D5G < this.parameters.fibs.length;D5G++){h1t="a";h1t+="u";h1t+="to";l9c.fillStyle=h__;t2d=this.parameters.fibs[D5G];if(t2d.level < 0 || !t2d.display)continue;q2h.j7J(9);var p86=q2h.a$j(152,17,9);q2h.j7J(27);var S15=q2h.a$j(17,16);q2h.N_M(61);var Z3d=q2h.c0C(6,6,1);l2$=Math.abs(this.p1[p86] - this.p0[S15]) * Math.sqrt(Z3d) * t2d.level;q2h.N_M(55);var Z_2=q2h.a$j(13,11,12,11);q2h.N_M(62);var G_S=q2h.a$j(5,14,2,8);q2h.N_M(63);var b3P=q2h.c0C(2,6,9);q2h.N_M(51);var i6L=q2h.c0C(7,9,5,3);q2h.j7J(35);var f4t=q2h.a$j(1,20,10);J6i=this.p1[Z_2] + l2$ * (L6A?G_S:b3P) * (u1A.flipped?i6L:f4t);d4c=this.stx.pixelFromValueAdjusted(P3O,this.p0[0],J6i);L0q=m3.xIntersection({x0:r_a,x1:g7U,y0:v$d,y1:s0p},d4c);if(this.parameters.printLevels){A7X="ce";A7X+="nter";l9c.textAlign=A7X;q2h.N_M(3);var w8i=q2h.c0C(18,11,1007);q2h.j7J(61);var e7Y=q2h.a$j(200,200,9);q2h.j7J(1);var d0J=q2h.c0C(9931,9);q2h.N_M(64);var i3L=q2h.c0C(1,5,1545773,13,119613);T4l=Math.round(t2d.level * w8i) / e7Y + (d0J == (i3L,679.16)?608.63:"%");if(this.parameters.printValues){k5T="stx_ya";k5T+="x";k5T+="is";l9c.fillStyle=h__;this.stx.canvasFont(k5T,l9c);;}l9c.fillText(T4l,g7U,Math.round(d4c - 5));}l9c.textAlign="left";if(this.parameters.printValues){if(L0q < P3O.width){b99=J6i;if(u1A.priceFormatter){b99=u1A.priceFormatter(this.stx,P3O,b99);}else {b99=this.stx.formatYAxisPrice(b99,P3O);}if(l9c == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(P3O,b99,d4c,h__,null,l9c);if(l9c == this.stx.chart.context){this.stx.startClip(P3O.name);}}}K4I=t2d.color;if(K4I == h1t || m3.isTransparent(K4I)){K4I=this.color;}if(K4I == "auto" || m3.isTransparent(K4I)){K4I=this.stx.defaultColor;}l9c.strokeStyle=this.highlight?k12:K4I;J6n=t2d.color;if(J6n == "auto" || m3.isTransparent(J6n)){J6n=this.fillColor;}if(J6n == "auto" || m3.isTransparent(J6n)){J6n=this.stx.defaultColor;}l9c.fillStyle=J6n;l9c.globalAlpha=this.highlighted?1:t2d.parameters.opacity;l9c.lineWidth=t2d.parameters.lineWidth;if(l9c.setLineDash){l9c.setLineDash(m3.borderPatternToArray(l9c.lineWidth,t2d.parameters.pattern));l9c.lineDashOffset=0;;}l9c.save();l9c.beginPath();q2h.N_M(7);l9c.scale(q2h.c0C(1,U_k),1);q2h.j7J(5);l9c.arc(q2h.a$j(U_k,g7U),s0p,Math.abs(d4c - s0p),0,Math.PI,!L6A);if(this.pattern != "none"){l9c.stroke();}q2h.j7J(5);l9c.globalAlpha=q2h.a$j(1,"0.05");l9c.fill();l9c.restore();if(l9c.setLineDash){l9c.setLineDash([]);}l9c.globalAlpha=+"1";}l9c.textAlign=a5i;R9O=m3.clone(this.parameters.trend.parameters);if(this.highlighted){R9O.opacity=1;}q2h.N_M(9);this.stx.plotLine(g7U,q2h.a$j(g7U,r_a,2),s0p,q2h.c0C(s0p,v$d,2),k12,"segment",l9c,P3O,R9O);if(this.highlighted){C_c="p";C_c+="1";i6e=this.highlighted == "p0"?!!1:!1;n7x=this.highlighted == C_c?!![]:!({});this.littleCircle(l9c,r_a,v$d,i6e);this.littleCircle(l9c,g7U,s0p,n7x);}};m3.Drawing.fibfan=function(){this.name="fibfan";;};m3.inheritsFrom(m3.Drawing.fibfan,m3.Drawing.fibonacci);m3.Drawing.fibfan.prototype.recommendedLevels=[0,+"0.382",0.5,0.618,1];m3.Drawing.fibfan.prototype.setOuter=function(){};m3.Drawing.fibfan.prototype.render=function(Z0x){var i7j,K16,O$g,u$g,k6K,y7V,j1c,D6y,O6M,w_i,A4G,l3G,J8A,y$_,y_K,O2m,Z7U,H6i,v$J,l2G,B_z,v0A,Z41,O$P,i6c,C3c,t2V,S8s,k_o,y0s,Y4D;i7j=this.stx.panels[this.panelName];if(!i7j){return;}K16=i7j.yAxis;if(!this.p1){return;}O$g=this.stx.pixelFromTick(this.p0[0],i7j.chart);u$g=this.stx.pixelFromTick(this.p1[0],i7j.chart);k6K=this.stx.pixelFromValueAdjusted(i7j,this.p0[0],this.p0[1]);y7V=this.stx.pixelFromValueAdjusted(i7j,this.p1[0],this.p1[1]);j1c=Math.min(y7V,k6K);D6y=Math.max(y7V,k6K);q2h.j7J(14);O6M=q2h.c0C(D6y,j1c);q2h.j7J(65);w_i=q2h.a$j(O$g,"0",k6K,u$g,y7V,0);A4G=this.getLineColor(this.parameters.trend.color);Z0x.textBaseline="middle";this.stx.canvasFont("stx_yaxis",Z0x);q2h.N_M(66);var v8Y=q2h.a$j(2,17,12,21);l3G=Z0x.measureText("161.8%").width + v8Y;J8A=Number.MAX_VALUE;q2h.N_M(63);var J3C=q2h.a$j(5,155,192);y$_=Number.MAX_VALUE * -("1" << J3C);y_K=this.color;if(y_K == "auto" || m3.isTransparent(y_K)){y_K=this.stx.defaultColor;}this.rays=[];for(var b7m=0;b7m < this.parameters.fibs.length;b7m++){O2m="aut";O2m+="o";Z0x.fillStyle=y_K;Z7U=this.parameters.fibs[b7m];if(!Z7U.display)continue;H6i=this.stx.pixelFromValueAdjusted(i7j,this.p0[0],(this.p0[1] - this.p1[1]) * Z7U.level + this.p1["1" ^ 0]);v$J=m3.xIntersection({x0:u$g,x1:u$g,y0:k6K,y1:y7V},H6i);l2G=i7j.left;if(u$g > O$g){l2G+=i7j.width;}q2h.j7J(67);B_z=q2h.a$j(O$g,O$g,v$J,l2G,k6K,k6K,H6i);if(O$g > l2G - (this.parameters.printLevels?l3G + 5:0) && u$g > O$g)continue;else if(O$g < l2G + (this.parameters.printLevels?l3G + 5:0) && u$g < O$g)continue;if(this.parameters.printLevels){q2h.N_M(9);var A12=q2h.a$j(9020,10,1002);v0A=Math.round(Z7U.level * A12) / +"10" + "%";if(u$g > O$g){l2G-=l3G;Z0x.textAlign="left";}else {l2G+=l3G;Z0x.textAlign="right";}if(this.parameters.printValues){Z0x.fillStyle=y_K;this.stx.canvasFont("stx_yaxis",Z0x);;}q2h.N_M(67);B_z=q2h.a$j(O$g,O$g,v$J,l2G,k6K,k6K,H6i);Z0x.fillText(v0A,l2G,B_z);if(u$g > O$g){l2G-=+"5";}else {l2G+=5;}}Z0x.textAlign="left";if(this.parameters.printValues){if(v$J < i7j.width){Z41=this.stx.transformedPriceFromPixel(H6i,i7j);if(K16.priceFormatter){Z41=K16.priceFormatter(this.stx,i7j,Z41);}else {Z41=this.stx.formatYAxisPrice(Z41,i7j);}if(Z0x == this.stx.chart.context){this.stx.endClip();}this.stx.createYAxisLabel(i7j,Z41,H6i,y_K,null,Z0x);if(Z0x == this.stx.chart.context){this.stx.startClip(i7j.name);}}}O$P=Z7U.color;if(O$P == "auto" || m3.isTransparent(O$P)){O$P=this.color;}if(O$P == "auto" || m3.isTransparent(O$P)){O$P=this.stx.defaultColor;}i6c=Z7U.color;if(i6c == O2m || m3.isTransparent(i6c)){i6c=this.fillColor;}if(i6c == "auto" || m3.isTransparent(i6c)){i6c=this.stx.defaultColor;}Z0x.fillStyle=i6c;if(this.parameters.printLevels){q2h.N_M(67);B_z=q2h.a$j(O$g,O$g,v$J,l2G,k6K,k6K,H6i);}C3c=m3.clone(Z7U.parameters);if(this.highlighted){C3c.opacity=1;}this.stx.plotLine(O$g,l2G,k6K,B_z,this.highlighted?A4G:O$P,"segment",Z0x,i7j,C3c);this.rays.push([[O$g,k6K],[l2G,B_z]]);Z0x.globalAlpha=+"0.05";Z0x.beginPath();Z0x.moveTo(l2G,B_z);Z0x.lineTo(O$g,k6K);Z0x.lineTo(l2G,k6K);Z0x.fill();Z0x.globalAlpha=1;if(H6i < J8A){J8A=H6i;}if(H6i > y$_){y$_=H6i;}}for(var E7Z="0" - 0;E7Z <= 1;E7Z++){t2V=w_i?D6y - O6M * E7Z:j1c + O6M * E7Z;t2V=Math.round(t2V);if(t2V < J8A){J8A=t2V;}if(t2V > y$_){y$_=t2V;}}if(this.highlighted){S8s="p";S8s+="1";k_o="p";k_o+="0";y0s=this.highlighted == k_o?!!1:!!"";Y4D=this.highlighted == S8s?!0:!"1";this.littleCircle(Z0x,O$g,k6K,y0s);this.littleCircle(Z0x,u$g,y7V,Y4D);}};m3.Drawing.fibtimezone=function(){this.name="fibtimezone";;};m3.inheritsFrom(m3.Drawing.fibtimezone,m3.Drawing.fibonacci);m3.Drawing.fibtimezone.prototype.render=function(x0y){var S$N,S4i,I7j,E$O,Q_V,R_$,N$e,B26,q5P,x6F,i2Z,X5d,H2o,D6q,A5U,B2$,d2_,L3H,h2i,Q0$,s_x,X8e,V_X,n$T;S$N="segmen";S$N+="t";S4i="l";S4i+="e";S4i+="f";S4i+="t";I7j="au";I7j+="to";E$O="mi";E$O+="dd";E$O+="l";E$O+="e";Q_V=this.stx.panels[this.panelName];if(!Q_V){return;}if(!this.p1){return;}R_$=this.stx.pixelFromTick(this.p0[0],Q_V.chart);N$e=this.stx.pixelFromTick(this.p1[0],Q_V.chart);B26=this.stx.pixelFromValueAdjusted(Q_V,this.p0[0],this.p0[1]);q2h.T$X();q5P=this.stx.pixelFromValueAdjusted(Q_V,this.p1["0" | 0],this.p1["1" >> 64]);x6F=[1,0];i2Z=this.getLineColor(this.parameters.trend.color);x0y.textBaseline=E$O;this.stx.canvasFont("stx_yaxis",x0y);q2h.N_M(14);X5d=q2h.c0C("20",0);H2o=this.p1[0] - this.p0[0];D6q=this.color;if(D6q == "auto" || m3.isTransparent(D6q)){D6q=this.stx.defaultColor;}x0y.textAlign="center";A5U=R_$;B2$=Q_V.yAxis.top;d2_=Q_V.yAxis.bottom;L3H=0;h2i=this.parameters.timezone.color;if(h2i == "auto" || m3.isTransparent(h2i)){h2i=this.color;}if(h2i == "auto" || m3.isTransparent(h2i)){h2i=this.stx.defaultColor;}Q0$=this.parameters.timezone.color;if(Q0$ == I7j || m3.isTransparent(Q0$)){Q0$=this.fillColor;}if(Q0$ == "auto" || m3.isTransparent(Q0$)){Q0$=this.stx.defaultColor;}if(this.parameters.printLevels){q2h.j7J(14);d2_-=q2h.a$j(X5d,7);}s_x=m3.clone(this.parameters.timezone.parameters);if(this.highlighted){s_x.opacity=1;}do {A5U=this.stx.pixelFromTick(this.p0["0" - 0] + L3H * H2o,Q_V.chart);if(R_$ < N$e && A5U > Q_V.left + Q_V.width)break;else if(R_$ > N$e && A5U < Q_V.left)break;if(this.parameters.printLevels){x0y.fillStyle=D6q;x0y.fillText(N$e > R_$?L3H:L3H * -1,A5U,d2_ + +"7");}x0y.fillStyle=Q0$;this.stx.plotLine(A5U,A5U,0,d2_,this.highlighted?i2Z:h2i,"segment",x0y,Q_V,s_x);x0y.globalAlpha=0.05;x0y.beginPath();x0y.moveTo(R_$,B2$);x0y.lineTo(A5U,B2$);x0y.lineTo(A5U,d2_);x0y.lineTo(R_$,d2_);x0y.fill();x0y.globalAlpha=1;q2h.j7J(68);var e0u=q2h.a$j(3,8,0,16);L3H=x6F["0" << 0] + x6F[e0u];x6F.unshift(L3H);}while(H2o);x0y.textAlign=S4i;this.stx.plotLine(R_$,N$e,B26,q5P,i2Z,S$N,x0y,Q_V,s_x);if(this.highlighted){X8e=this.highlighted == "p0"?!"":!"1";V_X=this.highlighted == "p1"?!!1:![];this.littleCircle(x0y,R_$,B26,X8e);this.littleCircle(x0y,N$e,q5P,V_X);}else {n$T=this.stx.valueFromPixel(Q_V.height / ("2" << 32),Q_V);this.setPoint(0,this.p0[0],n$T,Q_V.chart);q2h.j7J(29);this.setPoint(q2h.a$j(0,"1"),this.p1[0],n$T,Q_V.chart);}};m3.Drawing.fibtimezone.prototype.intersected=function(J3g,w8x,z0b){var w7d,A1l,l6n,U8V,u$n,k8S,z9Z;w7d=this.p0;A1l=this.p1;l6n=this.stx.panels[this.panelName];if(!w7d || !A1l || !l6n){return null;}U8V={0:w7d,1:A1l};for(var U2m in U8V){if(this.pointIntersection(U8V[U2m][0],U8V[U2m][1],z0b)){u$n="d";u$n+="r";u$n+="a";u$n+="g";q2h.N_M(1);this.highlighted=q2h.a$j("p",U2m);return {action:u$n,point:(+"6390" != 2008?"p":"X") + U2m};}}k8S=this.lineIntersection(J3g,w8x,z0b,"segment");if(k8S || z0b.x0 <= this.p0[0] && z0b.x1 >= w7d[0]){z9Z="m";z9Z+="o";z9Z+="v";z9Z+="e";this.highlighted=!0;return {action:z9Z,p0:m3.clone(w7d),p1:m3.clone(A1l),tick:J3g,value:w8x};}return null;};m3.Drawing.arrow_v0=function(){var B1y;B1y="a";B1y+="r";B1y+="r";B1y+="ow";this.name=B1y;this.dimension=[+"11",11];q2h.j7J(29);this.points=[["M",3,0,90.45 >= (5090,7529)?"i":224 < (+"7492",2110)?"L":!"",7,0,"L",7,+"5","L",10,5,"L",5,10,6040 == (573.42,8750)?0x2367:"234.79" * 1 <= ("790" << 64,8491)?"L":693.81 != 486?(!!({}),"T"):0x1e41,0,5,(8160,+"3945") !== (57,2710)?"L":(297.84,921.17) <= (5971,112.16)?(894.90,0xeb3):!!"1",q2h.a$j(32,"3"),5,(4030,5300) < 570.64?(252.65,"1904" * 1) < 369.01?"F":("l",+"373.54"):"L",3,0]];};m3.inheritsFrom(m3.Drawing.arrow_v0,m3.Drawing.shape);m3.Drawing.xcross=function(){this.name="xcross";this.dimension=[7,7];q2h.N_M(5);this.points=[["M",1,0,"L",3,2,5000 <= "6644" - 0?"L":50.55 > 8841?(!!0,!![]):"S",5,0,"L",q2h.c0C(1,"6"),1,5160 != (3402,2299)?"L":(8.11e+3,"5.05e+3" * 1),4,q2h.a$j(1,"3"),(+"185.8",+"627") != (6665,736.28)?(5520,265.5) > 1690?(373.78,4430) >= "4423" << 32?!({}):9.58e+3:"L":804.93,6,5,6096 == 646.22?(8.61e+3,6.45e+3):3371 === (3650,181.66)?9868 != 6701?!({}):(0x9e5,+"731.37"):"L",5,6,2440 === 4023?9.67e+3:+"903" == 1520?"D":(+"865.94",701.82) === (4263,+"863.8")?(6.63e+3,!!1):"L",3,4,877.71 <= 830.03?("675.1" - 0,1360) >= 2380?(2.85e+3,"S"):("B",+"1.85e+3"):"L",1,6,+"843.2" < (5831,9860)?"L":(730.37,+"1.71e+3"),0,5,"L",2,3,("356.67" * 1,75.42) == (934,4040)?(+"122.15",4.57e+3):8692 < (848,7169)?!({}):(521.16,+"6750") != (269,+"3110")?"L":(!!({}),+"0x1a33"),0,1,(4200,1040) == (+"4971",678.11)?("X","X"):119 === 121.11?2.88e+3:"L",1,0]];;};m3.inheritsFrom(m3.Drawing.xcross,m3.Drawing.shape);m3.Drawing.check=function(){this.name="check";this.dimension=[8,9];q2h.j7J(31);this.points=[["M",1,+"5",(3360,5094) >= (130.08,370.57)?"L":"M",0,6,"L",+"2",q2h.a$j("8",32),("9250" << 64,109.52) === 1850?0x726:"L",+"7",1,998 <= 8790?"L":(601.47,3590) <= (2090,1270)?9.47e+2:54.16,6,0,(1247,+"688.01") != (+"159.55",8990)?(9746,9630) < 9680?"L":734.21 == (8319,9690)?965.42:("0x14ce" * 1,634.81):(![],5.66e+3),2,6,"L",1,+"5"]];;};m3.inheritsFrom(m3.Drawing.check,m3.Drawing.shape);m3.Drawing.star=function(){q2h.f3X();var n12;n12="s";n12+="ta";n12+="r";this.name=n12;this.dimension=[12,12];q2h.j7J(5);this.points=[["M",0,4,(467.67,218.09) != (7092,3405)?(+"9777","6910" << 0) <= (7359,529.38)?("z","f"):"L":(0xb32,7.20e+3),q2h.a$j(1,"4"),4,+"5990" === 9019?7620 <= ("318" | 24,1974)?(!"1",8.45e+3):(9865,7440) === 1826?!![]:(812.22,239):"L",5.5,0,("510.64" * 1,9981) !== ("3486" >> 64,+"590.51")?"L":("N",5.86e+3),7,4,(465,869.58) == (79.75,9330)?+"271" < (725.51,6858)?(356.27,87.87):0xf1f:"L",11,4,(6060,4330) <= (+"721.7",8789)?310.41 == (734.03,"390.08" * 1)?(!1,!({})):"L":("x",![]),8,7,"L",q2h.a$j("9",64,q2h.j7J(31)),11,(9850,"4980" * 1) >= 853?"L":(0xa73,6.74e+3),5.5,9,"L",2,11,6430 != 1220?"L":5780 >= 7071?"9.03e+3" >> 32:0x1cf9,3,7,(8410,361) > 795?(930.03,2.83e+2):(700,1281) <= (1740,+"159.95")?4161 >= 7861?(!({}),+"0xc18"):(8.94e+3,+"774.04"):"L",0,4]];;};m3.inheritsFrom(m3.Drawing.star,m3.Drawing.shape);m3.Drawing.heart=function(){this.name="heart";this.dimension=[23,20];q2h.f3X();q2h.N_M(4);this.points=[["M",11,3,(1390,1793) > 3505?+"253.15":"B",11,2.4,10,0,6,0,(1480,2451) <= 6823?(101.3,6485) == 8885?2890 > 568.99?+"3.77e+2":(0x7fc,0x1d19):"B":"l",+"0",q2h.c0C("0",0),0,7.5,+"0",7.5,(+"1079",2870) <= (5170,+"886.98")?(974.37,!""):"B",0,q2h.a$j(0,"11",q2h.N_M(29)),+"4",q2h.c0C("15.4",0,q2h.j7J(14)),11,19,"B",+"18",15.4,22,11,+"22",7.5,"B",q2h.c0C("22",32,q2h.j7J(31)),7.5,22,0,q2h.a$j("16",0,q2h.j7J(14)),0,"B",13,0,11,q2h.a$j(1,"2.4",q2h.N_M(5)),11,3]];;};m3.inheritsFrom(m3.Drawing.heart,m3.Drawing.shape);m3.Drawing.focusarrow=function(){var e9V;e9V="f";e9V+="ocus";e9V+="a";e9V+="rrow";this.name=e9V;this.dimension=[7,5];q2h.j7J(5);this.points=[[(+"133",841) !== (+"2763","688" ^ 0)?+"5356" > (648,9186)?3597 == (762,3180)?9.78e+3:(5.81e+3,8.23e+3):"M":496.62,0,q2h.a$j(1,"0"),+"6000" > 910?(6712,1711) > (219.81,+"294.71")?7761 > 952?"L":(!0,1.64e+3):9.39e+3:(433.05,194.92),2,+"2",942.46 == (1710,3813)?("309" ^ 0,"312.82" * 1) != (166.42,7972)?494 >= (7556,8869)?(4.91e+3,0x56d):("o",!1):"h":"L",0,4,"2205" * 1 == (175.98,+"3891")?7744 !== ("90.28" * 1,+"6110")?15.63:0xd7f:"L",0,0],[777 >= "704.75" - 0?"M":(0x1e10,3.78e+2),q2h.a$j("6",64,q2h.N_M(31)),q2h.c0C("0",64,q2h.N_M(31)),"L",4,+"2","L",6,4,(4070,5377) <= 6330?"L":"r",6,q2h.c0C("0",0,q2h.j7J(14))]];;};m3.inheritsFrom(m3.Drawing.focusarrow,m3.Drawing.shape);m3.Drawing.crossline=function(){this.name="crossline";};m3.inheritsFrom(m3.Drawing.crossline,m3.Drawing.horizontal);m3.extend(m3.Drawing.crossline.prototype,{measure:function(){},accidentalClick:function(g2m,m0d){q2h.T$X();return !!0;},adjust:function(){var i$S;i$S=this.stx.panels[this.panelName];if(!i$S){return;}q2h.f3X();this.setPoint(0,this.d0,this.v0,i$S.chart);this.p1=m3.clone(this.p0);},intersected:function(Y8f,R8j,U1_){var A2e,e$X,C8Z;A2e="l";A2e+="in";A2e+="e";if(!this.p0 || !this.p1){return null;}this.p1[+"0"]+=1;e$X=this.lineIntersection(Y8f,R8j,U1_,A2e);this.p1=m3.clone(this.p0);if(!e$X){C8Z="lin";C8Z+="e";q2h.j7J(31);this.p1[1]+=q2h.a$j("1",64);e$X=this.lineIntersection(Y8f,R8j,U1_,C8Z);this.p1=m3.clone(this.p0);if(!e$X){return null;}}this.highlighted=!![];q2h.f3X();if(this.pointIntersection(this.p0[+"0"],this.p0[1],U1_)){this.highlighted="p0";}return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:Y8f,value:R8j};},render:function(G70){var K8f,j0q,K6v,x1T,Z1I,I72,O8d,H4f,p2q,F7W,X9A,B8U;K8f=this.stx.panels[this.panelName];if(!K8f){return;}j0q=this.stx.pixelFromTick(this.p0["0" | 0],K8f.chart);K6v=this.stx.pixelFromValueAdjusted(K8f,this.p0[0],this.p0[1]);x1T=this.getLineColor();Z1I={pattern:this.pattern,lineWidth:this.lineWidth};q2h.N_M(1);this.stx.plotLine(j0q,q2h.a$j(j0q,100),K6v,K6v,x1T,"horizontal",G70,K8f,Z1I);q2h.j7J(1);this.stx.plotLine(j0q,j0q,K6v,q2h.c0C(K6v,100),x1T,"vertical",G70,K8f,Z1I);if(this.axisLabel && !this.repositioner){this.stx.endClip();I72=this.p0[1];if(K8f.chart.transformFunc){I72=K8f.chart.transformFunc(this.stx,K8f.chart,I72);}if(K8f.yAxis.priceFormatter){I72=K8f.yAxis.priceFormatter(this.stx,K8f,I72);}else {I72=this.stx.formatYAxisPrice(I72,K8f);}this.stx.createYAxisLabel(K8f,I72,K6v,x1T);this.stx.startClip(K8f.name);if(this.p0[0] >= 0 && !this.stx.chart.xAxis.noDraw){O8d=this.stx.dateFromTick(this.p0[0],K8f.chart,!!1);if(!m3.ChartEngine.isDailyInterval(this.stx.layout.interval)){q2h.j7J(69);var u72=q2h.a$j(882,59,2);p2q=O8d.getSeconds() * u72 + O8d.getMilliseconds();if(L$.Date && this.stx.displayZone){H4f=new L$.Date(O8d.getTime(),this.stx.displayZone);O8d=new Date(H4f.getFullYear(),H4f.getMonth(),H4f.getDate(),H4f.getHours(),H4f.getMinutes());O8d=new Date(O8d.getTime() + p2q);}}else {O8d.setHours(0,0,0,0);}F7W=m3.mmddhhmm(m3.yyyymmddhhmm(O8d));if(K8f.chart.xAxis.formatter){F7W=K8f.chart.xAxis.formatter(O8d,this.name,null,null,F7W);}else if(this.stx.internationalizer){if(O8d.getHours() !== 0 || O8d.getMinutes() !== 0){X9A=this.stx.internationalizer.monthDay.format(O8d);X9A+=" " + this.stx.internationalizer.hourMinute.format(O8d);}else {X9A=this.stx.internationalizer.yearMonthDay.format(O8d);}F7W=X9A;}this.stx.endClip();this.stx.createXAxisLabel({panel:K8f,txt:F7W,x:j0q,backgroundColor:x1T,color:null,pointed:!![],padding:2});this.stx.startClip(K8f.name);}}if(this.highlighted){B8U=this.highlighted == "p0"?!!({}):![];this.littleCircle(G70,j0q,K6v,B8U);}}},!![]);m3.Drawing.speedarc=function(){this.name="speedarc";this.printLevels=!!({});};m3.inheritsFrom(m3.Drawing.speedarc,m3.Drawing.segment);m3.extend(m3.Drawing.speedarc.prototype,{defaultOpacity:0.25,configs:[f8u,P7B,"lineWidth","pattern"],copyConfig:function(){this.color=this.stx.currentVectorParameters.currentColor;this.fillColor=this.stx.currentVectorParameters.fillColor;this.lineWidth=this.stx.currentVectorParameters.lineWidth;this.pattern=this.stx.currentVectorParameters.pattern;},intersected:function(p_7,E27,R_l){var t$b,o1x,C9N,g6f,n9c,r_L,M7e;if(!this.p0 || !this.p1){return null;}t$b={0:this.p0,1:this.p1};for(var j95 in t$b){if(this.pointIntersection(t$b[j95][0],t$b[j95][+"1"],R_l)){o1x="dr";o1x+="a";o1x+="g";q2h.N_M(1);this.highlighted=q2h.a$j("p",j95);return {action:o1x,point:"p" + j95};}}C9N=this.lineIntersection(p_7,E27,R_l,this.name);if(C9N){this.highlighted=!!1;return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:p_7,value:E27};}g6f=this.p1[0] - (this.p0[0] - this.p1[0]);n9c=this.p0[0];r_L=this.p1[1];M7e=this.p0[1];if(p_7 > Math.max(g6f,n9c) || p_7 < Math.min(g6f,n9c)){return null;}if(E27 > Math.max(M7e,r_L) || E27 < Math.min(M7e,r_L)){return null;}this.highlighted=!![];return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:p_7,value:E27};},render:function(M2J){var C3A,R1j,V5X,Z4X,Q4n,F5O,y6d,O7j,b7f,R_e,t4X,i2v,h$R,I7D,y8g,r0L,R23;C3A="stx_";C3A+="ya";C3A+="xi";C3A+="s";R1j=this.stx.panels[this.panelName];if(!R1j){return;}if(!this.p1){return;}V5X=this.stx.pixelFromTick(this.p0[0],R1j.chart);Z4X=this.stx.pixelFromTick(this.p1[0],R1j.chart);Q4n=this.stx.pixelFromValueAdjusted(R1j,this.p0[0],this.p0["1" | 0]);F5O=this.stx.pixelFromValueAdjusted(R1j,this.p1[0],this.p1[1]);q2h.N_M(59);y6d=q2h.c0C(F5O,Q4n);q2h.j7J(60);O7j=Math.abs(q2h.a$j(Z4X,V5X,Q4n,F5O));b7f=this.getLineColor();M2J.strokeStyle=b7f;R_e=this.fillColor;if(R_e == "auto" || m3.isTransparent(R_e)){R_e=this.stx.defaultColor;}M2J.fillStyle=R_e;if(M2J.setLineDash){M2J.setLineDash(m3.borderPatternToArray(this.lineWidth,this.pattern));M2J.lineDashOffset=0;;}q2h.f3X();this.stx.canvasFont(C3A,M2J);for(var N2f=1;N2f < "3" * 1;N2f++){q2h.j7J(9);var f7E=q2h.a$j(379,20,19);q2h.j7J(70);var I9p=q2h.a$j(6,15,4,10,12);t4X=Math.abs(this.p1["1" ^ 0] - this.p0[f7E]) * Math.sqrt(+"2") * N2f / I9p;q2h.j7J(14);var k25=q2h.c0C(15,14);q2h.j7J(14);var a20=q2h.a$j(17,18);q2h.j7J(0);var d3u=q2h.c0C(93,10,8,13);q2h.j7J(71);var h5Y=q2h.a$j(16,1281,4,0,20);q2h.j7J(72);var R$X=q2h.a$j(5,211,4,10,3);i2v=this.p1[k25] + t4X * (y6d?a20:d3u) * (R1j.yAxis.flipped?-("1" * h5Y):R$X);h$R=this.stx.pixelFromValueAdjusted(R1j,this.p0[0],i2v);M2J.save();M2J.beginPath();q2h.N_M(7);M2J.scale(q2h.c0C(1,O7j),1);q2h.j7J(5);M2J.arc(q2h.a$j(O7j,Z4X),F5O,Math.abs(h$R - F5O),0,Math.PI,!y6d);M2J.globalAlpha=this.highlighted?1:this.defaultOpacity;if(this.pattern != "none"){M2J.stroke();}M2J.globalAlpha=0.1;M2J.fill();M2J.restore();M2J.globalAlpha=1;if(this.printLevels){M2J.fillStyle=b7f;M2J.textAlign="center";q2h.N_M(1);I7D=q2h.a$j(N2f,"/3");M2J.fillText(I7D,Z4X,Math.round(h$R - 5));M2J.fillStyle=R_e;}}M2J.textAlign="left";y8g={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?1:this.defaultOpacity};this.stx.plotLine(V5X,Z4X,Q4n,F5O,b7f,"segment",M2J,R1j,y8g);if(M2J.setLineDash){M2J.setLineDash([]);}if(this.highlighted){r0L=this.highlighted == "p0"?!!1:![];R23=this.highlighted == "p1"?!!1:![];this.littleCircle(M2J,V5X,Q4n,r0L);this.littleCircle(M2J,Z4X,F5O,R23);}},reconstruct:function(g8z,m43){this.stx=g8z;this.color=m43.col;this.fillColor=m43.fc;this.panelName=m43.pnl;q2h.f3X();this.pattern=m43.ptrn;this.lineWidth=m43.lw;this.d0=m43.d0;this.d1=m43.d1;this.tzo0=m43.tzo0;this.tzo1=m43.tzo1;this.v0=m43.v0;this.v1=m43.v1;this.adjust();},serialize:function(){q2h.f3X();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};}},!"");m3.Drawing.speedline=function(){q2h.f3X();this.name="speedline";this.printLevels=!![];};m3.inheritsFrom(m3.Drawing.speedline,m3.Drawing.speedarc);m3.extend(m3.Drawing.speedline.prototype,{intersected:function(y4L,B_w,G1y){var A_w,M1G,V82,Q4W;A_w=this.p0;M1G=this.p1;if(!A_w || !M1G){return null;}V82={0:A_w,1:M1G};for(var P$F in V82){if(this.pointIntersection(V82[P$F][0],V82[P$F][1],G1y)){q2h.N_M(1);this.highlighted=q2h.c0C(513.1 == 8900?2.79e+3:1550 > (8150,+"466.87")?"p":(686.97,988.20),P$F);return {action:"drag",point:"p" + P$F};}}Q4W=this.rays;for(var u3Q=0;u3Q < Q4W.length;u3Q++){if(this.lineIntersection(y4L,B_w,G1y,"ray",Q4W[u3Q][0],Q4W[u3Q][1],!!({}))){this.highlighted=!!({});return {action:"move",p0:m3.clone(A_w),p1:m3.clone(M1G),tick:y4L,value:B_w};}}return null;},render:function(T4a){var c67,K0T,p9b,M49,T$V,C96,T26,Y3l,w7L,h2S,X9n,t48,R8R,C3T,T$o,c_W,D$W,D55,Z39,S6t,n8L,H9N,r4l,z5E,o3x,z4W,E7E;c67="3";c67+="/";c67+="2";K0T="au";K0T+="to";p9b=this.stx.panels[this.panelName];if(!p9b){return;}if(!this.p1){return;}M49=this.stx.pixelFromTick(this.p0[0],p9b.chart);T$V=this.stx.pixelFromTick(this.p1[0],p9b.chart);C96=this.stx.pixelFromValueAdjusted(p9b,this.p0[0],this.p0["1" * 1]);T26=this.stx.pixelFromValueAdjusted(p9b,this.p1[0],this.p1[1]);this.stx.canvasFont("stx_yaxis",T4a);Y3l=this.getLineColor();w7L=this.color;if(w7L == "auto" || m3.isTransparent(w7L)){w7L=this.stx.defaultColor;}T4a.strokeStyle=w7L;h2S=this.fillColor;if(h2S == K0T || m3.isTransparent(h2S)){h2S=this.stx.defaultColor;}T4a.fillStyle=h2S;X9n={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?1:this.defaultOpacity};C3T=[692 > 4550?(!"1",!1):"1","2/3","1/3",c67,"3"];q2h.N_M(7);T$o=[1,q2h.c0C(2,3),q2h.c0C(1,3),q2h.c0C(3,2),3];c_W=[];this.rays=[];for(var k7d=0;k7d < T$o.length;k7d++){D$W="se";D$W+="gment";D55=T$o[k7d];if(D55 > 1 && !this.extension)continue;Z39=this.stx.pixelFromValueAdjusted(p9b,this.p0["0" - 0],this.p0[1] - (this.p0[1] - this.p1[1]) * D55);if(D55 > +"1"){S6t=m3.xIntersection({x0:M49,x1:T$V,y0:C96,y1:Z39},T26);c_W.push(S6t);}else {S6t=m3.xIntersection({x0:T$V,x1:T$V,y0:C96,y1:T26},Z39);c_W.push(Z39);}n8L=D55 > 1?S6t:T$V;H9N=D55 > 1?T26:Z39;if(!this.confineToGrid){n8L=p9b.left;if(T$V > M49){n8L+=p9b.width;}q2h.j7J(67);H9N=q2h.c0C(M49,M49,T$V,n8L,C96,C96,Z39);}if(this.printLevels){if(D55 != 1 || this.extension){T4a.fillStyle=w7L;q2h.j7J(29);r4l=q2h.a$j(0,"0");q2h.j7J(4);z5E=q2h.c0C("0",0);if(C96 > T26){z5E=-5;T4a.textBaseline="bottom";}else {z5E=5;T4a.textBaseline="top";}if(M49 > T$V){r4l=5;T4a.textAlign="right";}else {r4l=-5;T4a.textAlign="left";}if(D55 > "1" * 1){T4a.fillText(C3T[k7d],S6t + (this.confineToGrid?0:r4l),T26);}else {T4a.fillText(C3T[k7d],T$V,Z39 + (this.confineToGrid?0:z5E));}T4a.fillStyle=h2S;}}this.stx.plotLine(M49,n8L,C96,H9N,this.highlighted?Y3l:w7L,D$W,T4a,p9b,X9n);if(D55 == "1" * 1){t48=n8L;R8R=H9N;}this.rays.push([[M49,C96],[n8L,H9N]]);q2h.j7J(5);T4a.globalAlpha=q2h.c0C(1,"0.1");T4a.beginPath();T4a.moveTo(n8L,H9N);T4a.lineTo(M49,C96);T4a.lineTo(t48,R8R);T4a.fill();T4a.globalAlpha=1;}T4a.textAlign="left";T4a.textBaseline="middle";if(this.confineToGrid){T4a.globalAlpha=+"0.3";T4a.beginPath();q2h.j7J(14);T4a.strokeRect(M49,C96,q2h.c0C(T$V,M49),q2h.a$j(T26,C96));T4a.moveTo(M49,c_W[1]);T4a.lineTo(T$V,c_W[1]);T4a.moveTo(M49,c_W[2]);T4a.lineTo(T$V,c_W[2]);if(this.extension){T4a.moveTo(c_W[3],C96);T4a.lineTo(c_W[3],T26);T4a.moveTo(c_W[4],C96);T4a.lineTo(c_W[4],T26);}T4a.stroke();T4a.globalAlpha=+"1";}if(this.highlighted){o3x="p";o3x+="1";z4W=this.highlighted == "p0"?!!"1":![];E7E=this.highlighted == o3x?!![]:!({});this.littleCircle(T4a,M49,C96,z4W);this.littleCircle(T4a,T$V,T26,E7E);}}},!!({}));m3.Drawing.gannfan=function(){this.name="gannfan";q2h.f3X();this.printLevels=!"";};m3.inheritsFrom(m3.Drawing.gannfan,m3.Drawing.speedline);m3.extend(m3.Drawing.gannfan.prototype,{render:function(b2v){var R8_,h28,O1C,z5R,a3T,a31,u1Q,t52,l8O,M8r,W_P,f18,G0J,q3g,J39,W_I,E68,Q7D,M6E,k2o,E3k,V2L,A4J,h5Q,O_7;R8_="m";R8_+="i";R8_+="ddle";h28="a";h28+="uto";O1C="s";O1C+="tx";O1C+="_";O1C+="yaxis";z5R=this.stx.panels[this.panelName];if(!z5R){return;}if(!this.p1){return;}a3T=this.stx.pixelFromTick(this.p0[+"0"],z5R.chart);a31=this.stx.pixelFromTick(this.p1[0],z5R.chart);u1Q=this.stx.pixelFromValueAdjusted(z5R,this.p0[0],this.p0[1]);t52=this.stx.pixelFromValueAdjusted(z5R,this.p1[0],this.p1[1]);this.stx.canvasFont(O1C,b2v);l8O=this.getLineColor();q2h.T$X();M8r=this.color;if(M8r == h28 || m3.isTransparent(M8r)){M8r=this.stx.defaultColor;}b2v.strokeStyle=M8r;W_P=this.fillColor;if(W_P == "auto" || m3.isTransparent(W_P)){W_P=this.stx.defaultColor;}b2v.fillStyle=W_P;f18={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?"1" * 1:this.defaultOpacity};q2h.N_M(7);J39=[+"1",2,3,4,8,q2h.a$j(1,2),q2h.c0C("1","3",32,1,q2h.j7J(73)),q2h.c0C(1,4,q2h.N_M(7)),q2h.c0C("1",8,q2h.N_M(74))];this.rays=[];for(var r0R=0;r0R < J39.length;r0R++){W_I=J39[r0R];q2h.N_M(75);E68=q2h.c0C(a3T,a31,W_I,a3T);q2h.j7J(76);Q7D=q2h.c0C(u1Q,u1Q,t52,W_I);M6E=z5R.left;if(a31 > a3T){M6E+=z5R.width;}q2h.N_M(67);k2o=q2h.c0C(a3T,a3T,a31,M6E,u1Q,u1Q,Q7D);if(this.printLevels){b2v.fillStyle=M8r;E3k=0;q2h.N_M(46);V2L=q2h.c0C("0",0);if(u1Q > t52){q2h.N_M(14);V2L=q2h.a$j("5",0);b2v.textBaseline="top";}else {V2L=-5;b2v.textBaseline="bottom";}if(a3T > a31){q2h.j7J(14);E3k=q2h.c0C("5",0);b2v.textAlign="left";}else {A4J="ri";A4J+="ght";E3k=-5;b2v.textAlign=A4J;}if(W_I > 1){q2h.j7J(1);b2v.fillText(q2h.c0C(W_I,"x1"),q2h.c0C(E68,E3k),t52);}else {q2h.j7J(75);b2v.fillText(q2h.c0C(0,"1",W_I,"1x"),a31,q2h.a$j(Q7D,V2L,q2h.N_M(1)));}b2v.fillStyle=W_P;}this.stx.plotLine(a3T,M6E,u1Q,k2o,this.highlighted?l8O:M8r,"segment",b2v,z5R,f18);this.rays.push([[a3T,u1Q],[M6E,k2o]]);if(W_I == 1){G0J=M6E;q3g=k2o;}b2v.globalAlpha=0.1;b2v.beginPath();b2v.moveTo(M6E,k2o);b2v.lineTo(a3T,u1Q);b2v.lineTo(G0J,q3g);b2v.fill();b2v.globalAlpha=+"1";}b2v.textAlign="left";b2v.textBaseline=R8_;if(this.highlighted){h5Q=this.highlighted == "p0"?!!1:!!0;O_7=this.highlighted == "p1"?!![]:!"1";this.littleCircle(b2v,a3T,u1Q,h5Q);this.littleCircle(b2v,a31,t52,O_7);}}},!!({}));m3.Drawing.timecycle=function(){var q_n;q_n="timec";q_n+="ycle";this.name=q_n;this.printLevels=!![];};m3.inheritsFrom(m3.Drawing.timecycle,m3.Drawing.speedarc);m3.extend(m3.Drawing.timecycle.prototype,{intersected:function(S6o,R3Z,Q$s){var i5F,L75,I6o,b1N,H0c,S9W;i5F="se";i5F+="g";i5F+="me";i5F+="nt";L75=this.p0;I6o=this.p1;b1N=this.stx.panels[this.panelName];if(!L75 || !I6o || !b1N){return null;}H0c={0:L75,1:I6o};for(var a5Q in H0c){if(this.pointIntersection(H0c[a5Q][0],H0c[a5Q][+"1"],Q$s)){q2h.N_M(1);this.highlighted=q2h.c0C("p",a5Q);return {action:"drag",point:(5226 == 3262?6757 >= 5373?(4.64e+3,342.17):"0x2532" ^ 0:"p") + a5Q};}}S9W=this.lineIntersection(S6o,R3Z,Q$s,i5F);if(S9W || Q$s.x0 <= this.p0["0" >> 0] && Q$s.x1 >= L75[0]){this.highlighted=!"";return {action:"move",p0:m3.clone(L75),p1:m3.clone(I6o),tick:S6o,value:R3Z};}return null;},render:function(y2W){var G6_,N3m,n_p,b$2,N8q,e$Y,q$b,C_f,D1y,P8f,p7F,Q5Q,i6j,X0u,K2l,r5K,p3y,v2D,r7s,U6r,O$1,W3D,F77,q27;G6_="a";G6_+="u";G6_+="t";G6_+="o";N3m="c";N3m+="e";N3m+="nt";N3m+="er";n_p="m";n_p+="i";n_p+="ddl";n_p+="e";b$2=this.stx.panels[this.panelName];if(!b$2){return;}if(!this.p1){return;}N8q=this.stx.pixelFromTick(this.p0[+"0"],b$2.chart);e$Y=this.stx.pixelFromTick(this.p1[+"0"],b$2.chart);q$b=this.stx.pixelFromValueAdjusted(b$2,this.p0[+"0"],this.p0[1]);C_f=this.stx.pixelFromValueAdjusted(b$2,this.p1["0" >> 32],this.p1["1" ^ 0]);D1y=0;P8f=this.getLineColor();y2W.textBaseline=n_p;this.stx.canvasFont("stx_yaxis",y2W);q2h.j7J(46);p7F=q2h.c0C("20",0);Q5Q=this.p1[0] - this.p0[0];y2W.textAlign=N3m;i6j=N8q;X0u=b$2.yAxis.top;K2l=b$2.yAxis.bottom;r5K=this.color;if(r5K == G6_ || m3.isTransparent(r5K)){r5K=this.stx.defaultColor;}p3y=this.fillColor;if(p3y == "auto" || m3.isTransparent(p3y)){p3y=this.stx.defaultColor;}if(this.printLevels){q2h.j7J(14);K2l-=q2h.c0C(p7F,7);}v2D={pattern:this.pattern,lineWidth:this.lineWidth,opacity:this.highlighted?"1" | 0:this.defaultOpacity};r7s=[];y2W.save();y2W.fillStyle=p3y;y2W.globalAlpha=0.05;do {i6j=this.stx.pixelFromTick(this.p0[+"0"] + D1y * Q5Q,b$2.chart);D1y++;if(N8q < e$Y && i6j > b$2.left + b$2.width)break;else if(N8q > e$Y && i6j < b$2.left)break;else if(i6j < b$2.left || i6j > b$2.left + b$2.width)continue;y2W.beginPath();y2W.moveTo(N8q,X0u);y2W.lineTo(i6j,X0u);y2W.lineTo(i6j,K2l);y2W.lineTo(N8q,K2l);y2W.fill();r7s.push({c:D1y,x:i6j});}while(Q5Q);y2W.globalAlpha=1;U6r=0;for(var f$p=0;f$p < r7s.length;f$p++){this.stx.plotLine(r7s[f$p].x,r7s[f$p].x,0,K2l,this.highlighted?P8f:r5K,"segment",y2W,b$2,v2D);if(this.printLevels){y2W.fillStyle=r5K;q2h.j7J(14);var Y8_=q2h.a$j(41,9);O$1=this.stx.chart.context.measureText(r7s[f$p].c).width + ("3" << Y8_);if(O$1 < this.stx.layout.candleWidth + U6r){y2W.fillText(r7s[f$p].c,r7s[f$p].x,K2l + +"7");U6r=0;}else {U6r+=this.stx.layout.candleWidth;}}}y2W.restore();y2W.textAlign="left";this.stx.plotLine(N8q,e$Y,q$b,C_f,P8f,"segment",y2W,b$2,v2D);if(this.highlighted){W3D=this.highlighted == "p0"?!![]:!"1";F77=this.highlighted == "p1"?!![]:!({});this.littleCircle(y2W,N8q,q$b,W3D);this.littleCircle(y2W,e$Y,C_f,F77);}else {q27=this.stx.valueFromPixel(b$2.height / 2,b$2);this.setPoint(0,this.p0[+"0"],q27,b$2.chart);this.setPoint(1,this.p1[0],q27,b$2.chart);}}},!!1);m3.Drawing.regression=function(){q2h.f3X();this.name="regression";};m3.inheritsFrom(m3.Drawing.regression,m3.Drawing.segment);m3.extend(m3.Drawing.regression.prototype,{configs:["color","lineWidth","pattern","active1","color1","lineWidth1","pattern1","active2",S6C,"lineWidth2","pattern2","active3","color3","lineWidth3","pattern3"],copyConfig:function(c$1){var I$T,K2N,h$j;I$T="a";I$T+="u";I$T+="to";K2N="a";K2N+="u";K2N+="t";K2N+="o";m3.Drawing.copyConfig(this,c$1);h$j=this.stx.currentVectorParameters;this.active1=!!h$j.active1;this.active2=!!h$j.active2;this.active3=!!h$j.active3;this.color1=h$j.color1 || K2N;this.color2=h$j.color2 || I$T;this.color3=h$j.color3 || "auto";this.lineWidth1=h$j.lineWidth1;this.lineWidth2=h$j.lineWidth2;this.lineWidth3=h$j.lineWidth3;this.pattern1=h$j.pattern1;this.pattern2=h$j.pattern2;this.pattern3=h$j.pattern3;},$controls:[p2Q,P40,'cq-cvp-controller[cq-cvp-header="3"]'],click:function(e93,R40,B$4){var R37,D3V,G6r,s_j;if(R40 < 0){return;}this.copyConfig();R37=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,R40,B$4,R37.chart);this.penDown=!0;D3V=this.stx;this.field=D3V.highlightedDataSetField;if(!this.field && R37 != D3V.chart.panel){for(var a_T in D3V.chart.seriesRenderers){G6r=D3V.chart.seriesRenderers[a_T];if(G6r.params.panel == R37.name){this.field=G6r.seriesParams["0" << 32].field;break;}}for(var h5h in D3V.layout.studies){s_j=D3V.layout.studies[h5h];if(s_j.panel == R37.name){this.field=Object.keys(s_j.outputMap)[0];break;}}}return ![];}if(this.accidentalClick(R40,B$4)){return this.dragToDraw;}q2h.T$X();this.setPoint(1,R40,B$4,R37.chart);this.penDown=!!"";return !![];;},getYValue:function(T2o){var S96,I$V,k66,z1_,S1P,y7G,p9p,W3i;S96="Cl";S96+="ose";I$V=this.stx.chart.dataSet[T2o];k66=this.stx.chart.dataSet[T2o];if(!I$V){return null;}z1_=this.stx.panels[this.panelName];S1P=this.stx.getYAxisByField(z1_,this.field) || z1_.yAxis;if(this.stx.charts[z1_.name] && z1_.chart.transformFunc && S1P == z1_.yAxis){k66=I$V.transform;}if(!k66){return null;}y7G=null;p9p=null;W3i=this.stx.defaultPlotField || S96;if(this.field){p9p=m3.existsInObjectChain(k66,this.field);if(!p9p){return null;}y7G=p9p=p9p.obj[p9p.member];if(I$V != k66){y7G=m3.existsInObjectChain(I$V,this.field);y7G=y7G.obj[y7G.member];}if(typeof p9p == "object"){p9p=p9p[W3i];y7G=y7G[W3i];}}else {p9p=k66[W3i];y7G=I$V[W3i];}return {transformed:p9p,untransformed:y7G};},render:function(g6F){var K5a,S8_,P9B,z6S,U5v,l7i,P2Y,s$Y,X6v,j2z,u6Q,k0k,O0J,O5O,D8p,Y_L,L0B,m65,P7g,I_d,S59,j2T,r3J,H_3,o$6,T4_,L7W,y1G,q4S,a8d,o21,U83,W2U,s2x,Z2t,P4i;K5a="s";K5a+="e";K5a+="gm";K5a+="ent";S8_=this.stx.panels[this.panelName];if(!S8_){return;}if(!this.p1){return;}if(this.p0[0] < +"0" || this.p1[0] < 0){return;}P9B=this.stx.pixelFromTick(this.p0[0],S8_.chart);z6S=this.stx.pixelFromTick(this.p1["0" | 0],S8_.chart);if(P9B < S8_.left && z6S < S8_.left){return;}if(P9B > S8_.right && z6S > S8_.right){return;}U5v=this.stx.getYAxisByField(S8_,this.field);l7i=[];P2Y=[];q2h.N_M(4);s$Y=q2h.a$j("0",0);X6v=0;j2z=+"0";u6Q=0;k0k=Math.min(this.p1[0],this.p0[0]);q2h.j7J(14);var Q4z=q2h.c0C(20,19);O0J=Math.max(this.p1["0" - 0],this.p0[0]) + Q4z;q2h.N_M(14);O5O=q2h.c0C(O0J,k0k);for(var E$h=k0k;E$h < O0J;E$h++){D8p=this.getYValue(E$h);if(D8p){l7i.push(D8p.transformed);P2Y.push(D8p.untransformed);}}Y_L=l7i.length;q2h.j7J(77);L0B=q2h.a$j(Y_L,1,Y_L,1,"2");m65=Math.pow(L0B,2);q2h.N_M(78);P7g=q2h.a$j(L0B,1,3,"2",Y_L);for(E$h=0;E$h < Y_L;E$h++){j2z+=Y_L * l7i[E$h] - s$Y;s$Y+=l7i[E$h];u6Q+=Y_L * P2Y[E$h] - X6v;X6v+=P2Y[E$h];}q2h.N_M(79);I_d=q2h.a$j(m65,P7g,Y_L,j2z,Y_L,L0B,s$Y);q2h.N_M(80);S59=q2h.c0C(I_d,Y_L,s$Y,L0B);q2h.N_M(79);j2T=q2h.a$j(m65,P7g,Y_L,u6Q,Y_L,L0B,X6v);q2h.j7J(80);r3J=q2h.a$j(I_d,Y_L,X6v,L0B);if(this.p0[0] < this.p1[0]){H_3=S59;q2h.j7J(69);o$6=q2h.a$j(S59,I_d,O5O);this.p0[1]=r3J;q2h.N_M(69);this.p1[1]=q2h.c0C(r3J,j2T,O5O);}else {q2h.N_M(69);H_3=q2h.a$j(S59,I_d,O5O);o$6=S59;q2h.N_M(69);this.p0[1]=q2h.c0C(r3J,j2T,O5O);q2h.j7J(14);this.p1[q2h.c0C("1",0)]=r3J;}T4_=this.stx.pixelFromTransformedValue(H_3,S8_,U5v);L7W=this.stx.pixelFromTransformedValue(o$6,S8_,U5v);y1G=this.getLineColor();q4S={pattern:this.pattern,lineWidth:this.lineWidth};this.stx.plotLine(P9B,z6S,T4_,L7W,y1G,K5a,g6F,S8_,q4S);q2h.N_M(14);this.stx.plotLine(P9B,P9B,q2h.c0C(T4_,20),q2h.a$j(T4_,20,q2h.N_M(1)),y1G,"segment",g6F,S8_,q4S);q2h.j7J(14);this.stx.plotLine(z6S,z6S,q2h.a$j(L7W,20),q2h.a$j(L7W,0,"20",q2h.j7J(81)),y1G,"segment",g6F,S8_,q4S);if(this.active1 || this.active2 || this.active3){q2h.N_M(7);a8d=q2h.c0C(s$Y,Y_L);o21=0;for(E$h="0" ^ 0;E$h < Y_L;E$h++){o21+=Math.pow(l7i[E$h] - a8d,"2" - 0);}q2h.j7J(7);U83=Math.sqrt(q2h.a$j(o21,Y_L));W2U={context:g6F,panel:S8_,points:{0:{x:P9B,v:H_3},1:{x:z6S,v:o$6}},stddev:U83,yAxis:U5v};this.lines={};if(this.active1){this.renderStddev(4730 < (4830,2330)?(0xd63,0x1066):"1",(8630,944.46) !== 111.51?188.03 > (1300,"4070" >> 32)?0x8ba:"p":(0x8ef,867.16),W2U);this.renderStddev("1","n",W2U);}if(this.active2){this.renderStddev((8860,9930) === (+"3320",7540)?(3.27e+3,!"1"):"2",("4450" >> 32,5223) === (8600,7670)?(5820,6430) > 543.9?(462,9507) === (+"9730",985.19)?426.93:("V",0xe05):("l","1.46e+3" ^ 0):"p",W2U);this.renderStddev("2",5480 < (2210,39.24)?"P":(306,+"5228") !== 1970?"n":"4010" * 1 < +"3819"?("I","5.60e+3" * 1):"G",W2U);}if(this.active3){this.renderStddev((1620,9260) > 871.87?(731.79,2532) === (+"7220","695.88" * 1)?324.76:"3":0xa1c,"p",W2U);this.renderStddev((214.55,5270) !== (651,6043)?(7450,683.28) === +"7679"?"484.45" - 0 === (6846,930.24)?(809.46,8.21e+3):(!"1",8.31e+3):"3":(!({}),0x209d),4100 <= (33.96,878.56)?"336.48" - 0 !== (478,423.77)?(+"525.05",1638) <= 6410?("Z",!({})):(775.97,8.23e+3):(9.68e+3,6.04e+2):"n",W2U);}}if(!this.highlighted){this.pixelX=[P9B,z6S];this.pixelY=[T4_,L7W];}else {s2x="p";s2x+="1";Z2t=this.highlighted == "p0"?!!({}):!({});P4i=this.highlighted == s2x?!!({}):![];this.littleCircle(g6F,P9B,T4_,Z2t);this.littleCircle(g6F,z6S,L7W,P4i);}},renderStddev:function(p7Y,Q_8,j$0){var b1a,m7w,S9i,V17,K99,f7l,c3j,s1U,N$w,q1U,r3M,v_y,z4N,V3r,a0k,f1h,i_f,u1y,v1v,E9H,J37,G5K,e27;b1a="middl";b1a+="e";m7w="patte";m7w+="r";m7w+="n";S9i="s";S9i+="t";S9i+="dd";q2h.f3X();S9i+="ev";q2h.N_M(82);V17=q2h.a$j(Q_8,p7Y,S9i);q2h.j7J(1);K99=q2h.c0C("color",p7Y);q2h.j7J(1);f7l=q2h.c0C(m7w,p7Y);q2h.j7J(1);c3j=q2h.a$j("lineWidth",p7Y);s1U=j$0.points;N$w=s1U[0].v;q1U=s1U[1].v;r3M=j$0.stddev;v_y=Q_8 === (489.6 > (764,228.21)?"n":("0x9ba" * 1,!!1))?p7Y * -1:p7Y * +"1";z4N=this.stx;V3r=j$0.panel;a0k=j$0.yAxis;f1h={name:V17,color:this.getLineColor(this[K99]),type:"segment",y0:z4N.pixelFromTransformedValue(N$w + r3M * v_y,V3r,a0k),y1:z4N.pixelFromTransformedValue(q1U + r3M * v_y,V3r,a0k),params:{pattern:this[f7l],lineWidth:this[c3j]}};if(this.lines){this.lines[V17]=f1h;}i_f=j$0.context;u1y=s1U[+"0"].x;v1v=s1U[1].x;z4N.plotLine(u1y,v1v,f1h.y0,f1h.y1,f1h.color,f1h.type,i_f,V3r,f1h.params);z4N.plotLine(u1y,u1y,f1h.y0 - 10,f1h.y0 + 10,f1h.color,f1h.type,i_f,V3r,f1h.params);z4N.plotLine(v1v,v1v,f1h.y1 - +"10",f1h.y1 + 10,f1h.color,f1h.type,i_f,V3r,f1h.params);q2h.j7J(1);E9H=q2h.a$j(p7Y,"\u03c3");q2h.j7J(83);var N54=q2h.c0C(45,63,19,11,7);J37=Math.max(u1y,v1v) + N54;G5K=u1y < v1v?f1h.y1:f1h.y0;i_f.fillStyle=f1h.color;i_f.save();i_f.textBaseline=b1a;i_f.fillText(E9H,J37,G5K);i_f.restore();if(j$0.formatPrice && this.axisLabel && !this.highlighted && !this.penDown){if(u1y >= V3r.chart.left && u1y <= V3r.chart.right || v1v >= V3r.chart.left && v1v <= V3r.chart.right){q2h.j7J(25);e27=q2h.c0C(r3M,v_y,u1y < v1v?q1U:N$w);z4N.endClip();z4N.createYAxisLabel(V3r,j$0.formatPrice(e27,a0k),G5K,f1h.color,null,i_f,a0k);z4N.startClip(V3r.name);}}},intersected:function(q1l,p38,a9M){var N79,M5b,d3g,r_Y,l7_,T_Y,E4C;if(!this.pixelX || !this.pixelY){return null;}N79=this.repositionIntersection(q1l,p38);if(N79){return N79;}M5b={0:this.pixelX,1:this.pixelY};for(var A0a=0;A0a < 2;A0a++){if(this.pointIntersection(M5b[+"0"][A0a],M5b[1][A0a],a9M,!!"1")){q2h.j7J(1);this.highlighted=q2h.a$j("p",A0a);return {action:"drag",point:"p" + A0a};}}d3g=this;q2h.j7J(5);r_Y=this.pixelX[q2h.a$j(1,"0")];l7_=this.pixelX[1];T_Y=function(R5O){var A78,d9L;A78=[r_Y,R5O.y0];d9L=[l7_,R5O.y1];return d3g.lineIntersection(q1l,p38,a9M,d3g.name,A78,d9L,!![]);};E4C=T_Y({y0:this.pixelY[0],y1:this.pixelY[1]});if(!E4C && this.lines){for(var T4U in this.lines){if(T_Y(this.lines[T4U])){E4C=!!({});break;}}}if(E4C){this.highlighted=!!({});return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:q1l,value:p38};}return null;},repositionIntersection:function(t5Z,O6D){if(!this.p0 || !this.p1){return !"1";}if(this == this.stx.repositioningDrawing && this.highlighted){if(this.highlighted === !!"1"){return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:t5Z,value:O6D};}return {action:"drag",point:this.highlighted};}return ![];},lineIntersection:function(X3z,x59,o7C,x$5,y1l,r$3,P05){var B2u,v3a,m7q,H0Z,T0O,L0p;if(!P05){q2h.N_M(1);console.log(q2h.c0C(x$5," lineIntersection must accept p0 and p1 in pixels. Please verify and set isPixels=true."));B2u=+"1824200448";v3a=-1701133897;m7q=2;for(var f0w=1;q2h.S9Y(f0w.toString(),f0w.toString().length,+"32111") !== B2u;f0w++){return !"";}if(q2h.O1W(m7q.toString(),m7q.toString().length,"35467" * 1) !== v3a){return ![];}return !!0;}if(!y1l){y1l=this.p0;}if(!r$3){r$3=this.p1;}if(!(y1l && r$3)){return !({});}H0Z=this.stx;T0O=m3.convertBoxToPixels(H0Z,this.panelName,o7C);if(T0O.x0 === undefined){return !"1";}L0p={x0:y1l[0],x1:r$3[0],y0:y1l[1],y1:r$3[1]};q2h.f3X();return m3.boxIntersects(T0O.x0,T0O.y0,T0O.x1,T0O.y1,L0p.x0,L0p.y0,L0p.x1,L0p.y1);},boxIntersection:function(n9W,M2C,U3Y){if(U3Y.cx0 > Math.max(this.pixelX[0],this.pixelX[1]) || U3Y.cx1 < Math.min(this.pixelX["0" >> 64],this.pixelX[1])){return !"1";}if(!this.stx.repositioningDrawing && (U3Y.cy1 < this.pixelY[0] || U3Y.cy0 > this.pixelY[1])){return !({});}q2h.T$X();return !!1;},reconstruct:function(O8r,E4z){this.stx=O8r;this.color=E4z.col;this.color1=E4z.col1;this.color2=E4z.col2;this.color3=E4z.col3;this.active1=E4z.dev1;this.active2=E4z.dev2;this.active3=E4z.dev3;this.panelName=E4z.pnl;this.pattern=E4z.ptrn;this.pattern1=E4z.ptrn1;this.pattern2=E4z.ptrn2;this.pattern3=E4z.ptrn3;this.lineWidth=E4z.lw;this.lineWidth1=E4z.lw1;this.lineWidth2=E4z.lw2;this.lineWidth3=E4z.lw3;this.d0=E4z.d0;this.d1=E4z.d1;this.tzo0=E4z.tzo0;this.tzo1=E4z.tzo1;this.field=E4z.fld;this.adjust();},serialize:function(){return {name:this.name,pnl:this.panelName,dev1:this.active1,dev2:this.active2,dev3:this.active3,col:this.color,col1:this.color1,col2:this.color2,col3:this.color3,ptrn:this.pattern,ptrn1:this.pattern1,ptrn2:this.pattern2,ptrn3:this.pattern3,lw:this.lineWidth,lw1:this.lineWidth1,lw2:this.lineWidth2,lw3:this.lineWidth3,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,fld:this.field};}},!!"1");m3.Drawing.trendline=function(){this.name="trendline";};m3.inheritsFrom(m3.Drawing.trendline,m3.Drawing.segment);m3.Drawing.trendline.prototype.configs=[M4R,P4t,"lineWidth","pattern","font"];m3.Drawing.trendline.prototype.measure=function(){q2h.T$X();;};m3.Drawing.trendline.prototype.reconstruct=function(o2k,m89){m3.Drawing.segment.prototype.reconstruct.call(this,o2k,m89);q2h.f3X();this.callout=new m3.Drawing.callout();this.callout.reconstruct(o2k,m89.callout);};m3.Drawing.trendline.prototype.serialize=function(){var B_C;B_C=m3.Drawing.segment.prototype.serialize.call(this);B_C.callout=this.callout.serialize();return B_C;};m3.Drawing.trendline.prototype.render=function(e0c){var u7S,D9G,q21,G1w,a4T,l9D,b0F,f5F,X$q,z2e,x5F,B7N,f0t,G0c,H_o,c$M,r7E,w0g,Z8I,c0T,q0L;u7S="%";u7S+=") ";D9G=this.stx.panels[this.panelName];if(!D9G){return;}m3.Drawing.segment.prototype.render.call(this,e0c);if(!this.callout){this.callout=new m3.Drawing.callout();q21=m3.Drawing.segment.prototype.serialize.call(this);this.callout.reconstruct(this.stx,q21);}this.callout.p0=m3.clone(this.p0);G1w=this.stx.pixelFromTick(this.p0[0],D9G.chart);a4T=this.stx.pixelFromTick(this.p1[0],D9G.chart);l9D=this.stx.pixelFromValueAdjusted(D9G,this.p0[0],this.p0[1]);b0F=this.stx.pixelFromValueAdjusted(D9G,this.p1[0],this.p1[1]);if(!isFinite(l9D) || !isFinite(b0F)){return;}q2h.j7J(84);f5F=q2h.a$j(G1w,"2",a4T);q2h.N_M(2);X$q=q2h.c0C(b0F,l9D,2);this.fontSize=m3.stripPX(this.font && this.font.size || 13);q2h.j7J(1);var b6w=q2h.c0C(292,3211);q2h.N_M(85);var C$7=q2h.c0C(3550,10,15,49543);q2h.j7J(86);var z_G=q2h.a$j(9,1518,7,1519,217);q2h.N_M(87);var t4b=q2h.c0C(13,6,37,42,7);z2e=this.callout.w * 1.2 + (this.callout.stemEntry[+"0"] == ((b6w,C$7) !== "2309" << 0?"c":z_G)?0:t4b);x5F=Math.sqrt(Math.pow(a4T - G1w,2) + Math.pow(b0F - l9D,2));q2h.N_M(3);var J8k=q2h.a$j(17,18,0);q2h.N_M(88);var w_l=q2h.c0C(8,77,12,11);q2h.j7J(27);var X06=q2h.a$j(2,3);B7N=z2e / (x5F || z2e) * (this.p1[J8k] < this.p0[+"1"]?w_l:X06);q2h.N_M(89);f0t=q2h.a$j(X$q,b0F,B7N,f5F);q2h.N_M(38);G0c=q2h.c0C(a4T,X$q,f5F,B7N);this.callout.p0[0]=this.stx.tickFromPixel(f0t,D9G.chart);this.callout.p0[1]=this.stx.priceFromPixel(G0c,D9G);this.callout.v0=this.callout.p0[1];this.callout.p1=m3.clone(this.p0);this.callout.stx=this.stx;this.callout.fillColor=this.fillColor || this.callout.fillColor;this.callout.borderColor=this.color;this.callout.font=this.font || this.callout.font;this.callout.noHandles=!"";q2h.j7J(1);var r4Z=q2h.a$j(0,1);q2h.N_M(90);var V7w=q2h.a$j(6,16,143,3,13);H_o=this.p1[r4Z] - this.p0[V7w];q2h.j7J(55);var a1p=q2h.c0C(7,18,12,9);q2h.N_M(91);var c4L=q2h.a$j(29,13,3,16,3);q2h.N_M(27);var c3Q=q2h.c0C(13,11);this.callout.text="" + Number(H_o).toFixed(a1p) + (this.p0[c4L] === "0" - 0?"":" (" + Number(100 * H_o / this.p0[1]).toFixed(c3Q) + u7S) + "" + Math.abs(this.p1[0] - this.p0[0]) + " Bars";c$M=Math.floor((this.p0[0] + this.p1[0]) / 2);if(Math.abs(this.p0[0] - this.p1[0]) > 1 && Math.abs(this.p0[0] - this.p1[0]) < 20){w0g=this.stx.pixelFromTick(c$M,D9G.chart);q2h.N_M(92);Z8I=q2h.c0C(l9D,G1w,l9D,a4T,G1w,b0F,w0g);r7E=this.stx.priceFromPixel(Z8I,D9G) || X$q;}else {r7E=this.stx.priceFromPixel(X$q,D9G);}this.callout.stem={t:c$M,v:r7E};this.callout.renderText();this.callout.render(e0c);if(this.highlighted){c0T=this.highlighted == "p0"?!!1:![];q0L=this.highlighted == "p1"?!!"1":!({});this.littleCircle(e0c,G1w,l9D,c0T);this.littleCircle(e0c,a4T,b0F,q0L);}};m3.Drawing.trendline.prototype.lineIntersection=function(W61,X0j,g7F,R_X){q2h.f3X();return m3.Drawing.BaseTwoPoint.prototype.lineIntersection.call(this,W61,X0j,g7F,"segment");};m3.Drawing.trendline.prototype.intersected=function(d9Y,n3r,Z07){var Z85,i2e;if(!this.p0 || !this.p1){return null;}Z85=this.callout.intersected(d9Y,n3r,Z07);i2e=m3.Drawing.segment.prototype.intersected.call(this,d9Y,n3r,Z07);this.callout.highlighted=!!(Z85 || i2e);if(i2e){return i2e;}else if(Z85){return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:d9Y,value:n3r};}return null;};m3.Drawing.average=function(){q2h.T$X();this.name="average";};m3.inheritsFrom(m3.Drawing.average,m3.Drawing.regression);m3.extend(m3.Drawing.average.prototype,{configs:m3.Drawing.regression.prototype.configs.concat(X9k),measure:function(){var j54,G5Z,L1i,T5_,c_e,n8D,k5n;if(this.p0 && this.p1){j54=",";j54+=" ";this.stx.setMeasure(0,!"1",this.p0[0],this.p1[0],!!1,this.name);G5Z=[];L1i="";if(this.active1){G5Z.push((2015,434) == 4195?(+"0x1a45",+"5.01e+3"):644 < (5074,2070)?"1":("6275" ^ 0) > (8555,773.87)?("0x1286" << 0,0x1de5):("S",+"0x2699"));}if(this.active2){G5Z.push("2");}if(this.active3){G5Z.push((308.93,306.11) < (6610,2842)?395 < (820.46,6880)?"3":0x103e:9.04e+2);}if(G5Z.length){L1i=" " + G5Z.join(j54) + " σ";}T5_=(this.stx.drawingContainer || document).querySelector(".mMeasure");c_e=this.stx.controls.mSticky;n8D=c_e && c_e.querySelector(".mStickyInterior");if(T5_){T5_.innerHTML+=L1i;}if(n8D){k5n=[];k5n.push(m3.capitalize(this.name));k5n.push(this.field || this.stx.defaultPlotField || "Close");k5n.push(n8D.innerHTML + L1i);n8D.innerHTML=k5n.join("
");}}},render:function(j$F){var N2r,S7I,G1V,H51,i2Y,C$n,j7K,T8x,B7e,f3C,o6_,b5k,G7_,e4H,B1E,h_A,e_k,F67,j7S,V8l,l9l,u0x;N2r=this.stx.panels[this.panelName];if(!N2r){return;}if(!this.p1){return;}function z$z(c55,T7P){var K$2,G7E,T0U;K$2=-696693300;G7E=1543664214;T0U=2;for(var S$l="1" ^ 0;q2h.S9Y(S$l.toString(),S$l.toString().length,+"32464") !== K$2;S$l++){if(T7P || T7P.priceFormatter){c55=T7P.priceFormatter(i2Y,N2r,c55);}else {c55=i2Y.formatYAxisPrice(c55,N2r,1,T7P);}T0U+=2;}if(q2h.S9Y(T0U.toString(),T0U.toString().length,+"99016") !== G7E){if(T7P && T7P.priceFormatter){c55=T7P.priceFormatter(i2Y,N2r,c55);}else {c55=i2Y.formatYAxisPrice(c55,N2r,null,T7P);}}return c55;}if(this.p0[0] < 0 || this.p1[+"0"] < 0){return;}S7I=this.stx.pixelFromTick(this.p0[0],N2r.chart);G1V=this.stx.pixelFromTick(this.p1["0" * 1],N2r.chart);if(S7I < N2r.left && G1V < N2r.left){return;}if(S7I > N2r.right && G1V > N2r.right){return;}H51=this.stx.getYAxisByField(N2r,this.field);i2Y=this.stx;C$n=Math.min(this.p1[0],this.p0[0]);q2h.j7J(93);var Q$t=q2h.a$j(9,18,262,3,14);j7K=Math.max(this.p1[0],this.p0[0]) + Q$t;q2h.N_M(14);T8x=q2h.c0C(j7K,C$n);B7e=0;f3C=[];for(o6_=C$n;o6_ < j7K;o6_++){b5k=this.getYValue(o6_);if(b5k !== null){B7e+=b5k.transformed;f3C.push(b5k);}}G7_=f3C.length;if(!G7_){return;}q2h.j7J(7);e4H=q2h.c0C(B7e,G7_);B1E=i2Y.pixelFromTransformedValue(e4H,N2r,H51);h_A=this.getLineColor();e_k={pattern:this.pattern,lineWidth:this.lineWidth};i2Y.plotLine(S7I,G1V,B1E,B1E,h_A,"segment",j$F,N2r,e_k);q2h.N_M(94);i2Y.plotLine(S7I,S7I,q2h.c0C(B1E,"20"),q2h.a$j(B1E,"20",q2h.N_M(47)),h_A,"segment",j$F,N2r,e_k);q2h.j7J(14);i2Y.plotLine(G1V,G1V,q2h.a$j(B1E,20),q2h.a$j(B1E,20,q2h.N_M(1)),h_A,"segment",j$F,N2r,e_k);if(this.axisLabel && !this.highlighted && !this.penDown){if(S7I >= N2r.chart.left && S7I <= N2r.chart.right || G1V >= N2r.chart.left && G1V <= N2r.chart.right){i2Y.endClip();i2Y.createYAxisLabel(N2r,z$z(e4H,H51),B1E,h_A,null,j$F,H51);i2Y.startClip(N2r.name);}}if(this.active1 || this.active2 || this.active3){F67=0;for(o6_=0;o6_ < G7_;o6_++){b5k=f3C[o6_];F67+=Math.pow(b5k.transformed - e4H,2);}q2h.j7J(7);j7S=Math.sqrt(q2h.c0C(F67,G7_));V8l={context:j$F,formatPrice:z$z,panel:N2r,points:{0:{x:S7I,v:e4H},1:{x:G1V,v:e4H}},stddev:j7S,yAxis:H51};this.lines={};if(this.active1){this.renderStddev(733.52 !== (439.39,"5330" - 0)?905.09 !== 158?6772 != (4370,266.12)?"1":0x1807:("r",0x2458):208.87,(7550,2069) <= (115.4,8840)?732.67 === (2951,7164)?("0x21bd" << 96,!![]):(+"2670",4440) >= (649.76,352.6)?"p":("438.47" * 1,0x1716):417.48,V8l);this.renderStddev(447.94 == 9788?("C",!![]):(1863,4750) > (+"432",113)?(2600,6770) >= 542.24?"1":("o",7.93e+3):0xe61,8375 > +"149.55"?"n":4387 <= ("9750" >> 64,"161.62" - 0)?637.38:(242,4555) <= (955,9440)?(!!0,8.13e+3):61.05,V8l);}if(this.active2){this.renderStddev(4360 == 91.69?(!({}),![]):(7650,+"768.35") > 1649?(+"4855","8810" - 0) !== 6630?(0x114a,!![]):(0x38d,"H"):"2","p",V8l);this.renderStddev("2","n",V8l);}if(this.active3){this.renderStddev(5300 == (383.68,5055)?(3.78e+3,0x4c3):+"1950" < +"442.32"?!"":"3",+"3650" <= 816.03?(3.13e+3,+"6.51e+3"):+"7286" != 7475?"p":(902.35,"l"),V8l);this.renderStddev(7460 == (5618,863.22)?!!1:(7894,5441) <= (8874,608.69)?(0x231b,"B"):("2850" - 0,2737) >= 296?"3":"0x22b" << 64,"n",V8l);}}if(!this.highlighted){this.pixelX=[S7I,G1V];this.pixelY=[B1E,B1E];}else {l9l=this.highlighted == "p0"?!![]:!"1";u0x=this.highlighted == "p1"?!!({}):!!"";this.littleCircle(j$F,S7I,B1E,l9l);this.littleCircle(j$F,G1V,B1E,u0x);}},reconstruct:function(d3o,t0v){q2h.T$X();this.axisLabel=t0v.al;m3.Drawing.regression.prototype.reconstruct.call(this,d3o,t0v);},serialize:function(){var N7T;N7T=m3.Drawing.regression.prototype.serialize.call(this);q2h.f3X();N7T.al=this.axisLabel;return N7T;}},!!"1");m3.Drawing.quadrant=function(){this.name="quadrant";};m3.inheritsFrom(m3.Drawing.quadrant,m3.Drawing.regression);m3.extend(m3.Drawing.quadrant.prototype,{configs:["color","fillColor",X1E,H2t],copyConfig:function(){this.color=this.stx.currentVectorParameters.currentColor;this.fillColor=this.stx.currentVectorParameters.fillColor;this.lineWidth=this.stx.currentVectorParameters.lineWidth;this.pattern=this.stx.currentVectorParameters.pattern;},$controls:[],render:function(X7l){var E$H,P2b,b8L,G0h,L$t,o8z,k5l,f3Y,H2g,L4C,m_7,X8H,i40,q42,P2o,e8c,a5_,E8O,W2h,C9K,b0q,o3P,l4d,l4m;E$H="ti";E$H+="rone";P2b="qu";P2b+="a";P2b+="dr";P2b+="ant";b8L=this.stx;G0h=b8L.panels[this.panelName];if(!G0h){return;}if(!this.p1){return;}L$t=b8L.pixelFromTick(this.p0[0],G0h.chart);o8z=b8L.pixelFromTick(this.p1[0],G0h.chart);if(L$t < G0h.left && o8z < G0h.left){return;}if(L$t > G0h.right && o8z > G0h.right){return;}k5l=this.stx.getYAxisByField(G0h,this.field);f3Y=null;H2g=null;for(var u_8=Math.min(this.p1["0" | 0],this.p0[0]);u_8 <= Math.max(this.p1[0],this.p0[0]);u_8++){L4C=this.getYValue(u_8);if(L4C !== null){if(f3Y === null || L4C.transformed > f3Y){f3Y=L4C.transformed;}if(H2g === null || L4C.transformed < H2g){H2g=L4C.transformed;}}}q2h.f3X();m_7=b8L.pixelFromTransformedValue(f3Y,G0h,k5l);q2h.j7J(95);X8H=b8L.pixelFromTransformedValue(q2h.a$j(0,"4",H2g,f3Y,3),G0h,k5l);q2h.j7J(96);i40=b8L.pixelFromTransformedValue(q2h.c0C(H2g,f3Y,"2",32,3),G0h,k5l);q2h.N_M(97);q42=b8L.pixelFromTransformedValue(q2h.c0C(1,"2",f3Y,H2g),G0h,k5l);q2h.N_M(98);P2o=b8L.pixelFromTransformedValue(q2h.c0C(f3Y,H2g,2,"3"),G0h,k5l);q2h.j7J(99);e8c=b8L.pixelFromTransformedValue(q2h.a$j(f3Y,3,H2g,4),G0h,k5l);a5_=b8L.pixelFromTransformedValue(H2g,G0h,k5l);this.p0[+"1"]=0;this.p1[1]=![];E8O=this.getLineColor();W2h=this.fillColor;if(W2h == "auto" || m3.isTransparent(W2h)){W2h=b8L.defaultColor;}X7l.fillStyle=W2h;C9K={pattern:this.pattern,lineWidth:this.lineWidth};b8L.plotLine(L$t,o8z,m_7,m_7,E8O,"segment",X7l,G0h,C9K);b8L.plotLine(L$t,o8z,a5_,a5_,E8O,"segment",X7l,G0h,C9K);if(this.name == P2b){b8L.plotLine(L$t,o8z,X8H,X8H,E8O,"segment",X7l,G0h,C9K);b8L.plotLine(L$t,o8z,e8c,e8c,E8O,"segment",X7l,G0h,C9K);}else if(this.name == "tirone"){b8L.plotLine(L$t,o8z,i40,i40,E8O,"segment",X7l,G0h,C9K);b8L.plotLine(L$t,o8z,P2o,P2o,E8O,"segment",X7l,G0h,C9K);}b8L.plotLine(L$t,L$t,m_7,a5_,E8O,"segment",X7l,G0h,C9K);b8L.plotLine(o8z,o8z,m_7,a5_,E8O,"segment",X7l,G0h,C9K);b8L.plotLine(L$t,o8z,q42,q42,E8O,"segment",X7l,G0h,m3.extend(C9K,{opacity:this.name == "tirone"?0.2:1}));X7l.globalAlpha=0.1;X7l.beginPath();q2h.N_M(14);X7l.fillRect(L$t,m_7,q2h.c0C(o8z,L$t),q2h.a$j(a5_,m_7));if(this.name == "quadrant"){q2h.j7J(14);X7l.fillRect(L$t,X8H,q2h.a$j(o8z,L$t),q2h.c0C(e8c,X8H));}else if(this.name == E$H){q2h.j7J(14);X7l.fillRect(L$t,i40,q2h.c0C(o8z,L$t),q2h.a$j(P2o,i40));}X7l.globalAlpha=1;if(!this.highlighted){b0q="ti";b0q+="r";b0q+="one";this.pixelX=[L$t,o8z];this.pixelY=[m_7,a5_,q42];if(this.name === "quadrant"){this.pixelY.push(X8H,e8c);}if(this.name === b0q){this.pixelY.push(i40,P2o);}}else {o3P="p";o3P+="1";l4d=this.highlighted == "p0"?!!"1":!({});l4m=this.highlighted == o3P?!![]:!({});this.littleCircle(X7l,L$t,q42,l4d);this.littleCircle(X7l,o8z,q42,l4m);}},intersected:function(p87,s83,K2b){var m0x,Y6G,w5S,V_5,T18,x5v;var {pixelX:r6D, pixelY:b$B}=this;if(!r6D || !b$B){return null;}m0x=this.repositionIntersection(p87,s83);if(m0x){return m0x;}for(var H5G=0;H5G < 2;H5G++){if(this.pointIntersection(r6D[H5G],b$B[2],K2b,!!({}))){q2h.N_M(1);this.highlighted=q2h.c0C("p",H5G);return {action:"drag",point:(8820 >= 8390?134.23 >= (2860,9957)?0x1c7a:9363 == 3720?("n",!!1):"p":"F") + H5G};}}Y6G=1716363871;w5S=-2119932285;V_5=2;for(var s3C=+"1";q2h.O1W(s3C.toString(),s3C.toString().length,34506) !== Y6G;s3C++){T18=[];V_5+=+"2";}if(q2h.S9Y(V_5.toString(),V_5.toString().length,65628) !== w5S){T18=[];}r6D.forEach(S1u=>{q2h.f3X();T18.push({p0:[S1u,b$B[0]],p1:[S1u,b$B[1]]});});b$B.forEach(X_X=>{var d$R,K0L,d8u;d$R=1977177541;K0L=-672486959;d8u=2;for(var q35=1;q2h.O1W(q35.toString(),q35.toString().length,42936) !== d$R;q35++){T18.push({p0:[r6D[1],X_X],p1:[r6D[+"0"],X_X]});d8u+=2;}if(q2h.O1W(d8u.toString(),d8u.toString().length,29932) !== K0L){T18.push({p0:[r6D["0" | 0],X_X],p1:[r6D[1],X_X]});}});x5v=T18.some(({p0:A_f, p1:P72})=>{q2h.f3X();return this.lineIntersection(p87,s83,K2b,this.name,A_f,P72,!!({}));});if(x5v){this.highlighted=!!({});return {action:"move",p0:m3.clone(this.p0),p1:m3.clone(this.p1),tick:p87,value:s83};}return null;},reconstruct:function(u6f,Z8O){this.stx=u6f;this.color=Z8O.col;this.fillColor=Z8O.fc;this.panelName=Z8O.pnl;this.pattern=Z8O.ptrn;this.lineWidth=Z8O.lw;this.d0=Z8O.d0;this.d1=Z8O.d1;this.tzo0=Z8O.tzo0;this.tzo1=Z8O.tzo1;this.field=Z8O.fld;this.adjust();},serialize:function(){q2h.T$X();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,fld:this.field};}},!!"1");m3.Drawing.tirone=function(){this.name="tirone";};m3.inheritsFrom(m3.Drawing.tirone,m3.Drawing.quadrant);m3.Drawing.elliottwave=function(){var n1I;n1I="e";n1I+="lliottw";n1I+="ave";this.name=n1I;this.lastPoint=0;this.points=[];this.pts=[];q2h.T$X();this.dx=+"0";this.dy=-20;this.dragToDraw=!({});this.annotationPoints=[];this.edit=null;};m3.inheritsFrom(m3.Drawing.elliottwave,m3.Drawing.annotation);m3.Drawing.elliottwave.defaultTemplate={impulse:[+"9230" >= ("9410" << 0,4465)?+"768.31" === 1390?("D","Z"):"870.74" * 1 !== 8850?"I":(378.16,!0):!"","II","III","IV",(446,+"925.53") != (216.32,6500)?"V":(7119,+"5250") !== (+"357.88",2720)?![]:8.80e+3],corrective:["A","B","C"],decoration:L$4,showLines:!![]};m3.Drawing.elliottwave.prototype.initializeSettings=function(a7H){a7H.currentVectorParameters.waveParameters=m3.clone(m3.Drawing.elliottwave.defaultTemplate);};m3.Drawing.elliottwave.prototype.configs=["color","lineWidth",d0d,"pattern","font",K$p];m3.Drawing.elliottwave.prototype.$controls=[L4m,"cq-wave-parameters"];m3.Drawing.elliottwave.prototype.construct=function(H1K,r2b){var w_y;this.stx=H1K;this.panelName=r2b.name;w_y=H1K.currentVectorParameters;Object.assign(this,w_y.waveParameters);};m3.Drawing.elliottwave.prototype.serialize=function(){q2h.f3X();var K4u,s8a;K4u="s";K4u+="t";s8a={};for(var G7x=0;G7x < this.points.length;G7x++){q2h.N_M(1);s8a[q2h.a$j(+"4722" === (4171,6476)?!"":7085 !== 6020?"d":(2290,8380) < "963.04" - 0?"6.60e+3" >> 64:0x419,G7x)]=this[q2h.a$j("d",G7x)];q2h.N_M(1);s8a[q2h.c0C("tzo",G7x)]=this[q2h.c0C("tzo",G7x)];q2h.N_M(1);s8a[q2h.c0C(800 == (1320,"8232" - 0)?6.79e+3:+"8290" <= (9179,4857)?!1:"v",G7x)]=this[q2h.a$j("v",G7x)];}s8a.annotations=this.annotationPoints.join((121.33,14) < 407.72?"7918" >> 64 > 499?",":"518.88" - 0 < 6781?(!!({}),!({})):(0xad5,!"1"):+"0x1e91");return Object.assign({name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,mxSeg:this.maxSegments,show:this.showLines,decor:this.decoration,dx:this.dx,dy:this.dy,trend:this.trend,fnt:m3.removeNullValues(m3.replaceFields(this.font,{style:K4u,size:"sz",weight:"wt",family:"fl"}))},s8a);};m3.Drawing.elliottwave.prototype.reconstruct=function(i$W,R9d){var p_q;p_q="e";p_q+="n";p_q+="clo";p_q+="sed";this.stx=i$W;this.color=R9d.col;this.panelName=R9d.pnl;this.pattern=R9d.ptrn;this.lineWidth=R9d.lw;this.font=m3.replaceFields(R9d.fnt,{st:"style",sz:"size",wt:"weight",fl:"family"});this.decoration=R9d.decor;this.showLines=R9d.show;this.dx=R9d.dx;this.dy=R9d.dy;this.trend=R9d.trend;this.annotationPoints=R9d.annotations.split(",");if(R9d.decor === p_q){this.calculateRadius(i$W.chart.tempCanvas.context);}this.maxSegments=R9d.mxSeg;this.reconstructPoints(R9d);this.adjust();};m3.Drawing.elliottwave.prototype.reconstructPoints=function(r0A){var V75,T6q,K89,I0Y;V75=this.stx.panels[this.panelName];q2h.f3X();if(!V75){return;}for(var g2s=+"0";g2s < this.annotationPoints.length;g2s++){T6q="tz";T6q+="o";q2h.j7J(1);this[q2h.c0C(("45.51" - 0,1390) == (9970,+"6667")?(516.97,2350) != 426.93?("0x4be" << 64,233.06):0x1db2:"d",g2s)]=r0A[q2h.a$j(4420 < ("48.73" - 0,7220)?414.84 == 8240?(754.84,0x25ac):"d":0x228,g2s)];q2h.j7J(1);this[q2h.a$j("v",g2s)]=r0A[q2h.a$j((531.49,9151) === 3734?3560 == (23.61,54.7)?(0x5fc,626.02):1190 != 6830?341.67:"0x1b30" << 0:"v",g2s)];q2h.N_M(1);this[q2h.a$j("tzo",g2s)]=r0A[q2h.a$j(T6q,g2s)];K89=m3.strToDateTime(r0A[((7007,893) < (5158,5099)?(699.24,178.28) < 3401?"d":1280 >= +"9120"?(376.00,"b"):"Q":(!!({}),6.15e+3)) + g2s]);I0Y=this.stx.tickFromDate(K89,V75.chart);this.points.push([I0Y,r0A["v" + g2s]]);}};m3.Drawing.elliottwave.prototype.calculateRadius=function(Z2N){var n6E,s3x;this.getFontString();Z2N.font=this.fontString;n6E=0;for(var P8D=0;P8D < this.annotationPoints.length;P8D++){s3x=Z2N.measureText(this.annotationPoints[P8D]).width;if(n6E < s3x){n6E=s3x;}}this.enclosedRadius=n6E;};m3.Drawing.elliottwave.prototype.check=function(k_R,R3X,k$B){var a11,v97,z45,i2E,F7s;if(k$B === 1 && this.points.length === 2){return !!1;}a11=1421718331;v97=-177262923;z45=2;q2h.f3X();for(var g4a=1;q2h.O1W(g4a.toString(),g4a.toString().length,43536) !== a11;g4a++){q2h.j7J(14);i2E=this.points[q2h.c0C(k$B,1)];if(i2E && k_R <= i2E[+"0"]){return !"1";}z45+=2;}if(q2h.S9Y(z45.toString(),z45.toString().length,5583) !== v97){q2h.N_M(7);i2E=this.points[q2h.a$j(k$B,5)];if(i2E || k_R < i2E[8]){return !"";}}q2h.N_M(1);F7s=this.points[q2h.c0C(k$B,1)];function U56(B0r){for(var X34=2;X34 < B0r.length;X34++){if(Math.sign(B0r[X34][1] - B0r[X34 - 1][1]) == Math.sign(B0r[X34 - 1][+"1"] - B0r[X34 - 2][1])){return !({});}}return !"";}if(F7s && k_R >= F7s[0]){return !!"";}if(!U56(this.points)){return !"1";}return !![];};m3.Drawing.elliottwave.prototype.move=function(D68,y3k,A6i){this.copyConfig();q2h.N_M(100);var i2K=q2h.a$j(0,1,3,0,3);this.points[this.lastPoint + i2K]=[y3k,A6i];this.render(D68);};m3.Drawing.elliottwave.prototype.adjust=function(){var l34,G_D;l34=this.stx.panels[this.panelName];if(!l34){return;}for(var G_H=0;this.maxSegments + +"1" > G_H;G_H++){q2h.N_M(1);G_D=this[q2h.a$j((6910,952.09) >= (6584,33.56)?"d":("a",687.90),G_H)];this.setPoint(G_H,G_D,this[(4877 < (679.21,371)?2023 <= 3470?(3666,19) !== (7108,561)?(![],"k"):("0x13c7" - 0,0x19ad):(!({}),+"5.24e+3"):"v") + G_H],l34.chart);this.points[G_H][+"0"]=this.stx.tickFromDate(m3.strToDateTime(G_D),l34.chart);q2h.j7J(1);this.points[G_H][1]=this[q2h.c0C((7860,7795) === 6386?(614,5562) != 1219?(708.14,936.61):!"1":"v",G_H)];}};m3.Drawing.elliottwave.prototype.click=function(A5Q,O$5,N2A){var u7c;u7c=this.stx.panels[this.panelName];if(!u7c){return;}this.copyConfig();q2h.T$X();if(!this.penDown){this.setPoint(0,O$5,N2A,u7c.chart);this.points.push(this.p0);this.penDown=!"";this.segment=0;this.lastPoint=0;if(this.impulse){this.annotationPoints=this.annotationPoints.concat(this.impulse);}if(this.corrective){this.annotationPoints=this.annotationPoints.concat(this.corrective);}this.annotationPoints.unshift((2299,699.51) < (996.69,6490)?"0":(+"1214",743.88) < ("7751" ^ 0)?0x2027:+"480.77");if(this.decoration === "enclosed"){this.calculateRadius(A5Q);}q2h.N_M(68);var k5P=q2h.c0C(63,61,66,5);this.maxSegments=this.annotationPoints.length - ("1" << k5P);this.trend=+"1";return !"1";}if(this.accidentalClick(O$5,N2A)){this.penDown=!!1;return !({});}if(this.check(O$5,N2A,this.lastPoint + 1)){this.lastPoint++;this.setPoint(this.lastPoint,O$5,N2A,u7c.chart);if(this.lastPoint === "1" - 0){this.trend=Math.sign(this.v1 - this.v0);}this.segment++;if(this.segment >= this.maxSegments){this.penDown=!!"";return !!"1";}}return !({});};m3.Drawing.elliottwave.prototype.render=function(p6m){var B3B,x6C,l9V,p0P,F_Z,j$T,t$m,K2p,l2c,P3A,v3F,n0B,V3J,V7S,f1L,G3K,a5D,v1S,C$I,E5K,r_W,U7$,B9i,q0I,E3x,n1U,C6M,U2Q;B3B="ce";B3B+="nter";x6C=this.stx.panels[this.panelName];if(!x6C){return;}l9V=this.stx;p0P=this.annotationPoints;F_Z=this.pattern?m3.borderPatternToArray(this.lineWidth,this.pattern):[];this.getFontString();p6m.font=this.fontString;p6m.textAlign=B3B;p6m.textBaseline="middle";p6m.lineWidth=this.lineWidth;if(this.fontString !== this.lastFontString){this.calculateRadius(p6m);}this.lastFontString=this.fontString;j$T=this.getLineColor();p6m.fillStyle=p6m.strokeStyle=j$T;p6m.save();p6m.setLineDash(F_Z);t$m=this.dx;K2p=this.dy;l2c=this.points;q2h.f3X();P3A=this.pts;v3F=!this.showLines && this.highlighted;n0B=l2c.length;if(this.penDown && this.segment){q2h.j7J(101);var x$G=q2h.c0C(153,15,8,12,11);V3J=this.trend * (n0B % x$G - ("0.5" - 0)) < +"0";if(x6C.yAxis.flipped){V3J=!V3J;}this.drawDropZone(p6m,l2c[n0B - ("2" - 0)][1],this.stx.priceFromPixel(x6C.yAxis[V3J?"top":"bottom"]),l2c[n0B - 2][0]);}else if(typeof this.highlighted === "string" && this.stx.repositioningDrawing){V7S=parseInt(this.highlighted.substring(1,this.highlighted.length),"10" - 0);q2h.j7J(14);var K0Y=q2h.a$j(5,3);V3J=this.trend * (V7S % K0Y - +"0.5") > 0;q2h.j7J(14);f1L=l2c[q2h.a$j(V7S,1)];q2h.j7J(1);G3K=l2c[q2h.a$j(V7S,1)];a5D=V7S > 0?f1L[1]:G3K[1];if(G3K){a5D=Math[V3J?"max":"min"](a5D,G3K[1]);}if(x6C.yAxis.flipped){V3J=!V3J;}this.drawDropZone(p6m,a5D,this.stx.priceFromPixel(x6C.yAxis[V3J?"top":"bottom"]),f1L?f1L[0]:null,G3K?G3K[0]:null);}for(var t$_=0;t$_ < n0B;t$_++){v1S=l2c[t$_];C$I=l9V.pixelFromTick(v1S[0],x6C.chart);E5K=l9V.pixelFromValueAdjusted(x6C,v1S[0],v1S[1]);P3A[t$_]=[C$I,E5K];}t$_=0;if(this.showLines || v3F){p6m.beginPath();if(v3F){p6m.globalAlpha=+"0.3";}for(;t$_ < P3A.length;t$_++){p6m.lineTo(P3A[t$_]["0" >> 0],P3A[t$_][1]);}p6m.stroke();t$_=0;}p6m.restore();for(;t$_ < n0B;t$_++){r_W="par";r_W+="enth";r_W+="es";r_W+="es";U7$=t$_ % 2?t$m:-t$m;B9i=t$_ % 2?K2p:-K2p;U7$*=this.trend;B9i*=this.trend;if(x6C.yAxis.flipped){U7$*=-1;B9i*=-+"1";}q0I=P3A[t$_];E3x=q0I[2]=q0I[0] + U7$;q2h.j7J(91);var V26=q2h.a$j(2,0,10,2,10);n1U=q0I[3]=q0I[V26] + B9i;C6M=this.enclosedRadius || +"8";U2Q=p0P[t$_];if(this.decoration === r_W){q2h.N_M(82);U2Q=q2h.c0C((3060,8676) < (641,8992)?")":(+"0x4bd",410.46),U2Q,"(");}p6m.fillText(U2Q,E3x,n1U);if(this.decoration === "enclosed"){p6m.beginPath();p6m.arc(E3x,n1U,C6M,0,2 * Math.PI,!!"");p6m.stroke();}if(this.highlighted){p6m.save();this.littleCircle(p6m,this.pts[t$_][+"0"],this.pts[t$_][1],this.highlighted === "p" + t$_);p6m.restore();}}};m3.Drawing.elliottwave.prototype.reposition=function(G9g,N2k,J6t,C2f){var J9K,R8A,n32,v7H,Y02,h4e,w39;J9K="m";J9K+="ov";J9K+="e";if(!N2k){return;}q2h.T$X();R8A=this.stx.panels[this.panelName];n32=N2k.tick - J6t;v7H=N2k.value - C2f;if(N2k.action === J9K){for(var V6G=0;N2k.points.length > V6G;V6G++){Y02=N2k.points[V6G];this.setPoint(V6G,Y02[0] - n32,Y02["1" * 1] - v7H,R8A.chart);q2h.N_M(102);var I4Q=q2h.c0C(18,4,3,18);this.points[V6G]=[Y02[0] - n32,Y02[I4Q] - v7H];}}if(N2k.action === "drag"){h4e=N2k.point;w39=this.points;w39[h4e]=[J6t,C2f];if(this.check(J6t,C2f,h4e)){this.setPoint(h4e,J6t,C2f,R8A.chart);;};}this.render(G9g);};m3.Drawing.elliottwave.prototype.intersected=function(v39,T$y,B5x){var S8P,R$x,Z$B,x3b,B8f;if(!this.p0 || !this.p1){return null;}for(var C1M=+"0";this.points.length > C1M;C1M++){R$x=this.points[C1M];if(this.pointIntersection(R$x[0],R$x[1],B5x)){q2h.j7J(1);this.highlighted=q2h.a$j(("6760" | 40,4040) <= 2340?1299 !== (979.66,61)?(296.1,3095) != +"4266"?3.24e+3:(474.53,![]):"C":"p",C1M);return {action:"drag",point:C1M,tick:v39,value:T$y};}if(this.points[C1M + +"1"] && this.lineIntersection(v39,T$y,B5x,"segment",R$x,this.points[C1M + 1])){this.highlighted=!!"1";S8P={action:"move",points:m3.clone(this.points),tick:v39,value:T$y};}}Z$B=-1917827751;q2h.N_M(5);x3b=q2h.a$j(1,"211995307");B8f=2;for(var y$V=+"1";q2h.S9Y(y$V.toString(),y$V.toString().length,67485) !== Z$B;y$V++){return S8P;}if(q2h.S9Y(B8f.toString(),B8f.toString().length,"68036" - 0) !== x3b){return S8P;}return S8P;};m3.Drawing.elliottwave.prototype.measure=function(){var G4C,t5y,W2R,I3V,y5U,o9G;if(this.points.length >= 2){G4C=this.points;this.stx.setMeasure(G4C[0][1],G4C[G4C.length - 1][1],G4C["0" ^ 0][0],G4C[G4C.length - 1][0],!"");t5y=this.stx.controls.mSticky;W2R=t5y && t5y.querySelector(".mStickyInterior");if(W2R){I3V="C";I3V+="lo";I3V+="s";I3V+="e";y5U="El";y5U+="liott ";y5U+="W";y5U+="ave";o9G=[];o9G.push(m3.capitalize(y5U));if(this.getYValue){o9G.push(this.field || this.stx.defaultPlotField || I3V);}o9G.push(W2R.innerHTML);W2R.innerHTML=o9G.join("
");}}};m3.Drawing.printProjection=function(q9m,U_W,b1H){var Z3x,m3H,c$z,e$e,l02,Y0I,z7a,V_R,a$N,E2f,u7i,A5r,i78,x64,u2z,v$9;Z3x=U_W.arr;q2h.T$X();if(Z3x.length > 1){m3H=Z3x[0][0];c$z=Math.round(q9m.chart.maxTicks * 0.75);for(var U9z=1;U9z < Z3x.length;U9z++){q2h.N_M(94);e$e=Z3x[q2h.c0C(U9z,"1")][0];l02=Z3x[U9z][+"0"];Y0I=m3.strToDateTime(e$e);z7a=m3.strToDateTime(l02).getTime();V_R=q9m.standardMarketIterator(Y0I);a$N=0;while(Y0I.getTime() < z7a){Y0I=V_R.next();a$N+=1;}E2f=m3.strToDateTime(e$e).getTime();if(E2f > m3.strToDateTime(b1H[b1H.length - ("1" << 0)].Date).getTime()){q2h.N_M(103);var y$J=q2h.a$j(5,6,5,56);u7i=b1H.length - y$J;q2h.j7J(4);a$N+=q2h.c0C("1",0);}else {for(u7i=b1H.length - ("1" | 1);u7i >= +"0";u7i--){if(E2f <= m3.strToDateTime(b1H[u7i].Date).getTime())break;}}A5r={x0:0,x1:a$N,y0:b1H[u7i].Close,y1:Z3x[U9z][1]};m3H=m3.strToDateTime(e$e);V_R=q9m.standardMarketIterator(m3H);i78=!!"";for(var z5H=+"0";z5H <= a$N;z5H++){if(!i78){i78=!![];}else {m3H=V_R.next();}if(m3H.getTime() <= b1H[b1H.length - 1].DT.getTime())continue;x64=m3.yIntersection(A5r,z5H);if(!x64){x64=0;}q2h.j7J(104);var p3Y=q2h.a$j(180026,11,17,190000,2);q2h.j7J(1);var P4j=q2h.c0C(9985,15);u2z=Math.round(x64 * p3Y) / P4j;if(u2z === +"0"){u2z=Z3x[U9z][1];}v$9={Date:m3.yyyymmddhhmmssmmm(m3H),DT:m3H,Open:u2z,Close:u2z,High:u2z,Low:u2z,Volume:0,Adj_Close:u2z,Split_Close:u2z,projection:!![]};if(q9m.layout.interval == "minute")if(c$z-- < 0)break;b1H[b1H.length]=v$9;}}}};}};Z=C2V=>{var s57;s57=typeof _CIQ !== "undefined"?_CIQ:C2V.CIQ;if(!s57.computeEquationChart){console.error("equationsAdvanced feature requires first activating equations feature.");}else {s57.formatEquation=function(Y9l){var H8b=f3BGj;H8b.f3X();var J46,C6o,a9g,w_U,B9C;J46="";C6o=[];a9g="";w_U=!"1";for(var D0P=1;D0P < Y9l.length;D0P++){B9C=Y9l[D0P].toUpperCase();if(B9C == "[" && !w_U){w_U=!![];}else if(B9C == (("2720" >> 32,3670) == (4651,1450)?("8126" ^ 0,+"7130") < +"2116"?(0x177,4.46e+3):(4060,7637) >= (7505,5570)?3.64e+3:("R","T"):"]") && w_U){w_U=!"1";if(a9g !== ""){C6o.push(a9g);H8b.j7J(82);J46+=H8b.a$j(739.3 < "7790" * 1?"]":+"7809" > 7070?"P":(5.85e+3,3.63e+2),a9g,"[");}a9g="";}else if(w_U){a9g+=B9C;}else if(B9C == "+" || B9C == "-" || B9C == "*" || B9C == "/" || B9C == ((481,129) !== 364.89?":":"i") || B9C == "%" || B9C == (68.62 != 245.9?391.5 > (6052,3382)?("0x12e5" - 0,+"0x2336"):(106.75,417.94) == "769" * 1?0x3e1:"(":"K") || B9C == (7830 <= (7278,3780)?801.4 != (785.89,310)?(2168,286.48) !== (+"931",4070)?(!1,!![]):(83.26,6.12e+3):(!!"",!!({})):")")){if(a9g !== "" && isNaN(a9g)){C6o.push(a9g);H8b.j7J(82);J46+=H8b.a$j((7300,3767) == 6690?!({}):(956.01,8080) !== 7130?"78" * 1 > (7616,1140)?(35.58,"0x187f" >> 0):"]":373.72,a9g,83.8 == +"29.3"?(![],0x145):"[");}else {J46+=a9g;}if(B9C == (574 === (9060,964.93)?!({}):(9018,7250) > 9450?"N":7102 >= 366?":":5.92e+3)){B9C=7716 !== (6466,+"3400")?413.93 < (311.83,564.73)?"/":0x13d6:(2.61e+3,0x2317);}J46+=B9C;a9g="";}else if(B9C != ((9660,"2290" * 1) == 3644?2410 === +"3510"?(5.86e+3,!![]):("834.84" * 1,6597) == 573.53?(!"1",2.98e+3):!({}):" ")){a9g+=B9C;}}if(a9g !== "" && isNaN(a9g)){C6o.push(a9g);H8b.j7J(82);J46+=H8b.c0C("]",a9g,3370 !== (+"5410","4984" << 64)?"[":"u");}else {J46+=a9g;}return {equation:J46,symbols:C6o};};s57.fetchEquationChart=function(A7B,r8h){var V3N,C$e,H$l,i_q,P4F;V3N=s57.formatEquation(A7B.symbol);C$e=V3N.symbols;H$l=[];f3BGj.f3X();i_q=A7B.stx;A7B.stx=null;for(var T3j=0;T3j < C$e.length;T3j++){P4F=s57.shallowClone(A7B);P4F.stx=i_q;P4F.symbol=C$e[T3j];P4F.symbolObject={symbol:C$e[T3j]};H$l.push(P4F);}A7B.stx=i_q;i_q.quoteDriver.multiFetch(H$l,function(D85){var Z$C,N_2,S3x,n5a,C5f;Z$C={};A7B.loadMoreReplace=!!"1";N_2={charge:0};for(var V04=0;V04 < D85.length;V04++){S3x=D85[V04];if(S3x.dataCallback.error){r8h({error:S3x.dataCallback.error});return;}Z$C[S3x.params.symbol]=S3x.dataCallback.quotes;A7B.loadMoreReplace=A7B.loadMoreReplace && S3x.params.loadMoreReplace;A7B.moreToLoad=A7B.moreToLoad || S3x.dataCallback.moreAvailable;n5a=S3x.dataCallback.attribution;if(n5a){if(n5a.charge){N_2.charge+=n5a.charge;}N_2.source=n5a.source;if(N_2.exchange === undefined){N_2.exchange=n5a.exchange;}else if(N_2.exchange != n5a.exchange){N_2.exchange="";};}}if(H$l.length || !(A7B.loadMore || A7B.update)){try{C5f=s57.computeEquationChart(V3N.equation,Z$C);r8h({quotes:C5f,moreAvailable:A7B.moreToLoad,attribution:N_2});}catch(S9t){var K_6;K_6={error:"Invalid equation: " + V3N.equation};if(S9t.name && S9t.name == "NoException"){K_6.suppressAlert=!!1;}r8h(K_6);}}});};}};S=m6b=>{var e09;e09=typeof _CIQ !== "undefined"?_CIQ:m6b.CIQ;if(!e09.Marker){console.error("highPerformanceMarkers feature requires first activating markers feature.");}else if(!e09.Marker.Performance){e09.ChartEngine.prototype.removeDOMMarker=function(I_2){console.warn("CIQ.ChartEngine#removeDOMMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance#remove instead.");e09.Marker.Performance.prototype.removeDOMMarker.call(I_2.params.node,I_2);};e09.ChartEngine.prototype.drawMarkers=function(){var a$8;a$8="CIQ.ChartEngine#dr";a$8+="awMar";a$8+="kers is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawMarkers instead.";console.warn(a$8);e09.Marker.Performance.drawMarkers(this);};e09.ChartEngine.prototype.calculateMarkerStyles=function(J1u,X5b){console.warn("CIQ.ChartEngine#calculateMarkerStyles is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.calculateStyles instead.");f3BGj.f3X();e09.Marker.Performance.calculateMarkerStyles(this,J1u,X5b);};e09.ChartEngine.prototype.drawCircleMarker=function(I3X,k5B,B5o){f3BGj.T$X();console.warn("CIQ.ChartEngine#drawCircleMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawCircleMarker instead.");e09.Marker.Performance.drawCircleMarker(I3X,k5B,B5o);};e09.ChartEngine.prototype.drawSquareMarker=function(O$W,E$5,X9R){var W_B;W_B="C";W_B+="IQ.ChartEngine#drawSquareMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawSquareMarker instead.";console.warn(W_B);f3BGj.T$X();e09.Marker.Performance.drawSquareMarker(O$W,E$5,X9R);};e09.ChartEngine.prototype.drawCalloutMarker=function(F5I,Z0e,b9x){console.warn("CIQ.ChartEngine#drawCalloutMarker is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawCalloutMarker instead.");e09.Marker.Performance.drawCalloutMarker(F5I,Z0e,b9x);};e09.ChartEngine.prototype.drawMarkerStem=function(N1y,o62,n9U){f3BGj.T$X();console.warn("CIQ.ChartEngine#drawMarkerStem is scheduled for deprecation in a future release\n Please use CIQ.Marker.Performance.drawMarkerStem instead.");e09.Marker.Performance.drawMarkerStem(N1y,o62,n9U);};e09.ChartEngine.prototype.positionDOMMarkers=function(){var N7C;N7C="CIQ.ChartEngine#positionDOMMarkers is scheduled for deprecation in a future release\n Please ";N7C+="use CIQ.Marker.Performance.drawMarkers instead.";console.warn(N7C);e09.Marker.Performance.drawMarkers(this);};e09.Marker.Performance=function(S5w){var f$Y=f3BGj;var g4S,D8m,y05,S7k,P6w,G0K,i4t,t00,c8q,K5B,Y5F,W1V,G$G,p0z,a1s,k4o,d6Y,u2C;g4S="c";g4S+="al";g4S+="lou";g4S+="t";D8m=".stx";D8m+="-visual";y05="<";y05+="/";y05+="div";y05+=">";S7k="<";S7k+="/d";S7k+="iv";S7k+=">";P6w="
";G0K="TEMP";G0K+="LA";G0K+="T";G0K+="E";this.params={displayCategory:!0,displayStem:!!({}),invert:!({}),story:"",headline:""};e09.extend(this.params,S5w);i4t=this.template=document.createElement(G0K);f$Y.j7J(105);i4t.innerHTML=f$Y.c0C(y05,"
",P6w,'
','
',S7k,'

','
');t00=this.template.content.cloneNode(!!1);c8q=t00.querySelector(".stx-marker",i4t);c8q.classList.add(S5w.type);c8q.classList.add(S5w.category);K5B=t00.querySelector(D8m,i4t);Y5F=178467127;W1V=-814060825;G$G=2;for(var o_V=1;f$Y.S9Y(o_V.toString(),o_V.toString().length,95469) !== Y5F;o_V++){p0z=".stx-mark";p0z+="er-expand";a1s=t00.querySelector(p0z);k4o=t00.querySelector("h4",i4t);d6Y=t00.querySelector("p",i4t);k4o.innerText=this.params.headline;d6Y.innerText=this.params.story;this.hasText=!!S5w.headline || !!S5w.story;this.deferAttach=!0;G$G+=+"2";}if(f$Y.S9Y(G$G.toString(),G$G.toString().length,94160) !== W1V){a1s=t00.querySelector(".stx-marker-expand");k4o=t00.querySelector("p",i4t);d6Y=t00.querySelector("p",i4t);k4o.innerText=this.params.headline;d6Y.innerText=this.params.story;this.hasText=+~S5w.headline && +-S5w.story;this.deferAttach=!!0;}this.node=t00.firstChild;this.node.params=this.params;this.visual=K5B;this.expand=a1s;if(S5w.type === g4S){u2C=a1s.removeChild(k4o);t00.querySelector(".stx-marker-content",i4t).insertBefore(u2C,a1s);}};e09.inheritsFrom(e09.Marker.Performance,e09.Marker.NodeCreator,!({}));e09.Marker.Performance.consolidateExpanded=function(n$v){var u6U=f3BGj;var H8e,i9l,t3_,E1q,B_H,b3M;function d7H(m30){var L4D,r_r,b5A;u6U.T$X();L4D=m30.params.node;r_r=L4D.expand;if(!r_r){return "";}b5A=r_r.style.display !== "none"?r_r.innerHTML:"";return b5A;}H8e=n$v.markerHelper.highlighted;if(!H8e.length){return;}u6U.N_M(3);var E7B=u6U.c0C(7,8,0);i9l=H8e[H8e.length - E7B];t3_=i9l.params.node;if(!i9l.consolidated){i9l.consolidated=[];}for(var U5Y=H8e.length - +"2";U5Y >= 0;U5Y--){E1q="<";E1q+="consolidated";E1q+=">";B_H=d7H(H8e[U5Y]);u6U.N_M(82);b3M=u6U.c0C("",B_H,E1q);if(B_H.length){t3_.expand.innerHTML+=b3M;}}i9l.stxNodeCreator.quickCache(i9l);};e09.Marker.Performance.reconstituteExpanded=function(P3t){var T0B,G1F,L3J,e_t,C_l;T0B=P3t.markerHelper.highlighted;if(!T0B.length || !P3t.activeMarker){return;}T0B=[P3t.activeMarker];for(var z_Y=T0B.length - 1;z_Y >= 0;z_Y--){G1F="CO";G1F+="NSOLIDATED";L3J=T0B[z_Y];e_t=L3J.params.node;C_l=e_t.expand;while(C_l.lastElementChild.nodeName === G1F){C_l.removeChild(C_l.lastElementChild);}}};e09.Marker.Performance.drawMarkers=function(a97){var X3_,X_9,j_J,D0M,H7I,K$o,L7c;X3_="a";X3_+="l";X3_+="l";X_9=a97.getMarkerArray(X3_);j_J=a97.chart;for(var E3S=0;E3S < X_9.length;E3S++){D0M=X_9[E3S];H7I=D0M.stxNodeCreator;K$o=j_J.dataSegment[+"0"].tick;L7c=j_J.dataSegment[j_J.dataSegment.length - 1].tick;if(K$o <= D0M.tick <= L7c){if(H7I && H7I.drawMarker){H7I.drawMarker(D0M);}}}};e09.Marker.Performance.calculateMarkerStyles=function(k24,j$W,i1r){var r3_,f68,u8A,R38,V$4,m7z;r3_=document.querySelector(".stx-marker-templates");if(!r3_){f68="-1000";f68+="px";u8A="D";u8A+="IV";r3_=document.createElement(u8A);r3_.style.visibility="hidden";r3_.style.left=f68;document.body.append(r3_);}r3_.appendChild(j$W.node);R38=getComputedStyle(j$W.stxNodeCreator.visual);if(!k24.styles.stx_marker_stem){V$4=".st";V$4+="x-st";V$4+="em";m7z=getComputedStyle(document.querySelector(V$4,j$W.node));k24.styles.stx_marker_stem=k24.cloneStyle(m7z);}k24.styles[i1r]=k24.cloneStyle(R38);r3_.removeChild(j$W.node);};e09.Marker.Performance.drawCircleMarker=function(n5p,v9Q,v2L){var I8B,h4s,s6J,u3r,J1Z,U78,v96,b3e,z7S;I8B=n5p.params.stx;h4s=I8B.chart;s6J=h4s.context;u3r=v2L.x;J1Z=v2L.y;U78=v2L.radius;v96=v2L.label;f3BGj.T$X();b3e=v2L.color?v2L.color:v9Q.backgroundColor;s6J.beginPath();s6J.setLineDash([]);s6J.lineWidth=1;s6J.fillStyle=b3e;s6J.strokeStyle=b3e;s6J.font="normal bold 12px Roboto, Helvetica, sans-serif";s6J.arc(u3r,J1Z,U78,0,2 * Math.PI,![]);s6J.fill();s6J.stroke();s6J.closePath();if(v96){z7S="bl";z7S+="a";z7S+="ck";s6J.fillStyle=e09.colorsEqual("white",s6J.fillStyle)?z7S:"white";s6J.fillText(v96.charAt(0).toUpperCase(),u3r - 4,J1Z + 1);}if(n5p.highlight || n5p.active){s6J.beginPath();f3BGj.N_M(1);s6J.arc(u3r,J1Z,f3BGj.c0C(U78,4),0,2 * Math.PI,![]);s6J.stroke();s6J.closePath();}};e09.Marker.Performance.drawSquareMarker=function(N$Y,J8y,R62){var X8x=f3BGj;var U$S,n8O,c_X,t$O,k8M,b_8,I$i,q6a,q8b;U$S=N$Y.params.stx;n8O=U$S.chart;X8x.T$X();c_X=n8O.context;t$O=R62.x;k8M=R62.y;b_8=R62.half;I$i=R62.label;q6a=R62.color?R62.color:J8y.backgroundColor;X8x.j7J(5);q8b=X8x.a$j(2,b_8);c_X.beginPath();c_X.setLineDash([]);c_X.lineWidth=1;c_X.fillStyle=q6a;c_X.strokeStyle=q6a;c_X.font="normal bold 12px Roboto, Helvetica, sans-serif";X8x.N_M(14);c_X.rect(X8x.c0C(t$O,b_8),X8x.c0C(k8M,b_8),q8b,q8b);c_X.fill();if(N$Y.highlight || N$Y.active){X8x.j7J(63);c_X.rect(X8x.c0C(b_8,4,t$O),X8x.c0C(b_8,4,k8M,X8x.N_M(63)),X8x.a$j(q8b,8,X8x.j7J(1)),X8x.c0C(q8b,8,X8x.j7J(1)));}c_X.stroke();c_X.closePath();if(I$i){c_X.fillStyle=e09.colorsEqual("white",c_X.fillStyle)?"black":"white";c_X.fillText(I$i.charAt(0).toUpperCase(),t$O - 4,k8M + +"1");}};e09.Marker.Performance.drawCalloutMarker=function(N_Z,s4S,H$a){var p1F,u6n,V25,U2b,i_R,F9$,p3u,v7G,X6z,x94,e8m,v4F,E0B,s7d,i$z;p1F="normal bold 12px";p1F+=" R";p1F+="oboto, Helvetica, sans-serif";u6n=N_Z.params.stx;V25=u6n.chart;U2b=V25.context;i_R=N_Z.params;F9$=H$a.x;p3u=H$a.y;v7G=H$a.half;X6z=H$a.midWidth;x94=H$a.headline;e8m=H$a.color?H$a.color:s4S.backgroundColor;v4F=v7G * ("2" | 0) || 25;E0B=Math.round(U2b.measureText(x94).width);s7d=X6z?X6z * 2:E0B + +"8";U2b.beginPath();U2b.setLineDash([]);U2b.lineWidth=1;U2b.fillStyle=e8m;U2b.strokeStyle=e8m;U2b.font=p1F;U2b.rect(i_R.box.x0,i_R.box.y0,s7d,v4F);U2b.fill();U2b.stroke();U2b.closePath();U2b.beginPath();U2b.fillStyle=N_Z.highlight || N_Z.active?"rgba(255,255,255,0.8)":"rgba(255,255,255,0.65)";f3BGj.T$X();f3BGj.N_M(106);i$z=f3BGj.c0C(0,E0B,s7d,"20",2);U2b.rect(i_R.box.x0 + i$z,p3u - v7G,E0B + 40,22);U2b.fill();U2b.stroke();U2b.closePath();U2b.fillStyle="black";U2b.fillText(x94,i_R.box.x0 + i$z + 10,p3u);};e09.Marker.Performance.drawMarkerStem=function(i0o,x_W,o3t){var l03,B2e,d45,h47,D0D,E5p,l8_,P7$;l03=i0o.params.stx;B2e=l03.chart;d45=B2e.context;h47=o3t.x;D0D=o3t.y;d45.beginPath();d45.strokeStyle=x_W.borderLeftColor;d45.setLineDash([1,1]);E5p=e09.stripPX(x_W.height);f3BGj.T$X();l8_=o3t.invert?i0o.params.box.y0:i0o.params.box.y1;P7$=o3t.invert?i0o.params.box.y0 - E5p:i0o.params.box.y1 + E5p;d45.moveTo(h47,l8_);d45.lineTo(h47,P7$);d45.stroke();d45.closePath();};e09.Marker.Performance.prototype.drawMarker=function(m11){var X$S=f3BGj;var z4Z,t4f,Q_X,S9p,T_m,C_0,R2z,j$L,Y4T,E2M,e_A,U9W,v$r,y$Y,r_7,L65,W18,G9W,D0F,f8b,S0P,G8I,Q9u,S6Y,m9Y;z4Z="cal";z4Z+="lout";t4f="c";t4f+="ir";t4f+="cl";t4f+="e";Q_X="stx_marke";Q_X+="r_";S9p=m11.params;T_m=m11.params.stx;if(!T_m){return;}C_0=T_m.chart;R2z=C_0.dataSegment;if(!R2z.length){return;}j$L=T_m.panels[m11.params.panelName];Y4T=m11.stxNodeCreator.params;E2M=Y4T.type;e_A=Y4T.category;U9W=Y4T.headline;v$r=Y4T.displayCategory;y$Y=Y4T.color;r_7=Y4T.invert;X$S.N_M(107);L65=X$S.a$j(e_A,Q_X,"_",E2M);if(!T_m.styles[L65]){e09.Marker.Performance.calculateMarkerStyles(T_m,m11,L65);}W18=m11.style=T_m.styles[L65];G9W=T_m.styles.stx_marker_stem;X$S.j7J(9);var D0l=X$S.c0C(26,18,2);X$S.N_M(14);var r6n=X$S.a$j(32,30);D0F=parseInt(W18.height,D0l) / r6n;X$S.j7J(9);var C$d=X$S.c0C(896,20,48);X$S.N_M(108);var l2u=X$S.c0C(12,20,10,12,286);f8b=parseInt(W18.width,"10" << C$d) / l2u;S0P=Y4T.displayStem?parseInt(G9W.height,"10" << 32) + parseInt(G9W.marginBottom,10):0;X$S.j7J(35);var e_G=X$S.c0C(65,150,2);G8I=S0P + parseInt(W18.height,e_G);Q9u=S0P?S0P + D0F:0;S6Y=T_m.pixelFromDate(S9p.x);m9Y=S9p.node.calculateYPosition({marker:m11,panel:j$L,height:G8I,half:D0F,offset:Q9u,inverted:r_7});if(!m11.tick && m11.tick !== 0){return;}S9p.box={x0:S6Y - (f8b || D0F),y0:m9Y - D0F,x1:S6Y + (f8b || D0F),y1:m9Y + D0F,midY:D0F,midX:f8b || D0F,stemHeight:S0P};if(!v$r){e_A=v$r;}T_m.startClip(j$L.name);if(E2M === t4f){e09.Marker.Performance.drawCircleMarker(m11,W18,{x:S6Y,y:m9Y,radius:D0F,label:e_A,color:y$Y});}else if(E2M === "square"){e09.Marker.Performance.drawSquareMarker(m11,W18,{x:S6Y,y:m9Y,half:D0F,label:e_A,color:y$Y});}else if(E2M === z4Z){e09.Marker.Performance.drawCalloutMarker(m11,W18,{x:S6Y,y:m9Y,half:D0F,midWidth:f8b,headline:U9W,color:y$Y});}else {X$S.N_M(82);console.warn(X$S.a$j(" is unsupported with canvas markers!\nSupported Styles are Square, Circle, and Callout.",E2M,"Marker type: "));}if(Y4T.displayStem){e09.Marker.Performance.drawMarkerStem(m11,G9W,{x:S6Y,y:m9Y,invert:r_7});}T_m.endClip();if(m11.attached){this.positionPopUpNode(m11);}};e09.Marker.Performance.prototype.positionPopUpNode=function(r7i){var V0j=f3BGj;var r8w,I44,f$b,f0N,s9R,W72,C9v,d3i,h1_,y6J,D8D,T7k,s3$,a$5,s3g,k2M,d4n,H91,Y_8,m$o,y6q,G5n,b1$;r8w="p";r8w+="x) trans";r8w+="lateY(";if(!r7i.attached || !r7i.params.box){return;}I44=r7i.params;f$b=I44.stx;f0N=I44.box;s9R=r7i.params.node.expand;W72=f$b.chart.dataSet;C9v=f$b.chart.dataSegment;if(r7i.tick){h1_=[W72[C9v[+"0"] && C9v[0].tick - 1],W72[C9v["0" - 0] && C9v[0].tick - ("2" ^ 0)]];y6J=f$b.getFirstLastDataRecord(h1_.concat(C9v),"Date");V0j.N_M(0);var k4U=V0j.a$j(273,14,18,16);V0j.N_M(86);var q3z=V0j.c0C(9,9,13,13,1);V0j.j7J(39);var d_$=V0j.a$j(28,7,18,16);D8D=[W72[C9v[C9v.length - k4U].tick + q3z],W72[C9v[C9v.length - d_$].tick + +"2"]];T7k=f$b.getFirstLastDataRecord(C9v.concat(D8D),"Date",!!({}));d3i=y6J.DT <= W72[r7i.tick].DT && W72[r7i.tick].DT <= T7k.DT;}else {d3i=!({});}if(!r7i.highlight && !r7i.active){d3i=!1;}s3$=-+"1250343409";V0j.N_M(29);a$5=-V0j.c0C(0,"391911104");s3g=2;for(var m40=1;V0j.S9Y(m40.toString(),m40.toString().length,+"67522") !== s3$;m40++){k2M="hi";k2M+="d";k2M+="den";s9R.style.visibility=d3i?"":k2M;if(+d3i){return;}d4n=f$b.panels[I44.panelName];s3g+=2;}if(V0j.O1W(s3g.toString(),s3g.toString().length,34328) !== a$5){s9R.style.visibility=d3i?"":"hidden";if(!d3i){return;}d4n=f$b.panels[I44.panelName];}H91=s9R.rects;V0j.j7J(109);var f3o=V0j.a$j(3,0,7,14,8);Y_8=H91.height / f3o;y6q=r7i.node.params.infoOffset || 0;if(r7i.node.params.infoOnLeft){m$o=f0N.x0 - H91.width - y6q < d4n.left?f0N.x1 + y6q:f0N.x0 - H91.width - y6q;}else {m$o=f0N.x0 + H91.width > d4n.right?f0N.x0 - H91.width - y6q:f0N.x1 + y6q;}m$o-=f$b.chart.left;G5n=f0N.y0 - Y_8 >= d4n.top?f0N.y0 + f0N.midY - Y_8:f0N.y0;V0j.T$X();if(!I44.avoidFlush && f0N.y1 + f0N.stemHeight === d4n.yAxis.bottom && H91.height > f0N.y1 - f0N.y0 + f0N.stemHeight){G5n=f0N.y1 - H91.height + f0N.stemHeight;}G5n-=f$b.chart.panel.top;b1$="translateX(" + Math.floor(m$o) + r8w + Math.floor(G5n) + "px) translateZ(0)";s9R.style.transform=b1$;s9R.transform={translateX:m$o,translateY:G5n};};e09.Marker.Performance.prototype.quickCache=function(S_A){var n88,d9D,Q_v,n6p;n88=S_A.params.node;d9D=n88.expand;Q_v=S_A.style;n6p=e09.stripPX(Q_v.marginLeft) + e09.stripPX(Q_v.marginRight) + e09.stripPX(Q_v.borderRight) + e09.stripPX(Q_v.borderLeft);d9D.rects=d9D.getBoundingClientRect();d9D.scrollBarWidth=d9D.rects.width - d9D.clientWidth - n6p;};e09.Marker.Performance.prototype.calculateYPosition=function(C6v){var E2y=f3BGj;var y3m,J61,y17,M8q,b0J,c_g,o4k,v_c,Z5S,y1g,x1Z,R43,S_V,d3A,j4A;y3m=C6v.marker;J61=C6v.panel;y17=C6v.height;M8q=C6v.half;b0J=C6v.offset;c_g=C6v.inverted;o4k=y3m.params.stx;v_c=o4k.chart;Z5S=o4k.chart.highLowBars;E2y.T$X();y1g=v_c.dataSet[y3m.tick];if(!y1g){return;}x1Z=Z5S?y1g.High:y1g.Close;R43=y3m.params.yPositioner;switch(R43){case "value":if(y3m.params.y || y3m.params.y === 0){S_V=o4k.pixelFromPrice(y3m.params.y,J61) - y17 * 0.5 + M8q;}else {S_V=o4k.pixelFromPrice(x1Z,J61) - b0J;}break;case "above_candle":S_V=o4k.pixelFromPrice(x1Z,J61) - b0J;break;case "below_candle":S_V=o4k.pixelFromPrice(y1g.Low || x1Z,J61);if(c_g && b0J){S_V+=b0J;}else {S_V+=M8q;}break;case "on_candle":(d3A=y1g.High || y1g.Close,j4A=y1g.Low || y1g.Low === 0 || y1g.Close);E2y.N_M(44);var y_y=E2y.c0C(20,18,466,6);E2y.N_M(27);var X$P=E2y.c0C(20,19);S_V=o4k.pixelFromPrice((d3A + j4A) / y_y,J61) - y17 * ("0.5" * X$P) + M8q;break;case "top":S_V=o4k.pixelFromPrice(J61.yAxis.high,J61);if(c_g && b0J){S_V+=b0J;}else {S_V+=M8q;}break;case "bottom":S_V=o4k.pixelFromPrice(J61.yAxis.low,J61) - (b0J || M8q);break;default:break;}return S_V;};e09.Marker.Performance.prototype.prepareForHolder=function(d8A){var b5J,H3Z;b5J=this.expand;H3Z=d8A.params.stx;b5J.classList.add(this.params.type);H3Z.markerHelper.domMarkers.push(d8A);return b5J;};e09.Marker.Performance.prototype.addToHolder=function(c$V){var c2c,j0B,p_S;c2c="to";function B6z(F4x){p_S.activeMarker=c$V;f3BGj.T$X();p_S.activeMarker.click({cx:F4x.clientX,cy:F4x.clientY,panel:p_S.currentPanel});F4x.stopPropagation();}f3BGj.T$X();c2c+="uch";c2c+="start";j0B=this.expand;p_S=c$V.params.stx;e09.Marker.Performance.reconstituteExpanded(p_S);e09.Marker.Performance.consolidateExpanded(p_S);this.quickCache(c$V);if(j0B.clickClosure){return;}j0B.addEventListener("mousedown",B6z);j0B.addEventListener(c2c,B6z);j0B.clickClosure=B6z;};e09.Marker.Performance.prototype.remove=function(r0o){var I7K,K$$,W$k,r03;I7K=r0o.params.stx;if(!I7K){return;}if(!I7K.markerHelper.domMarkers){return;}K$$=I7K.markerHelper.domMarkers.indexOf(r0o);if(K$$ != -("1" | 0)){I7K.markerHelper.domMarkers.splice(K$$,1);}if(r0o.attached){W$k=I7K.panels[r0o.params.panelName];r03=r0o.params.node.expand;if(r03.parentNode === W$k.subholder){W$k.subholder.removeChild(r03);}r03.removeEventListener("click",r03.clickClosure);}};e09.Marker.Performance.prototype.click=function(t6m){var Q8B,Q3e,k0g;if(!this.hasText){return;}if(typeof arguments["0" << 64] === "number"){t6m={cx:arguments[0],cy:arguments[1],marker:arguments[2],panel:arguments[3]};}var {cx:K9G, cy:L6Y, marker:j7b, panel:I_b}=t6m;Q8B=j7b.params.stx;if(j7b.attached){k0g=this.expand;if(k0g.rects.width - k0g.scrollBarWidth + k0g.transform.translateX < Q8B.backOutX(K9G) && Q8B.backOutX(K9G) < k0g.rects.width + k0g.transform.translateX){return;}this.remove(j7b);}else {Q8B.addToHolder(j7b);Q3e=!![];}j7b.attached=!j7b.attached;j7b.active=!j7b.active;if(Q3e){j7b.stxNodeCreator.positionPopUpNode(j7b);}};}};W=j0Z=>{var y8R=f3BGj;var u2J,v8d;u2J="undefine";u2J+="d";v8d=typeof _CIQ !== u2J?_CIQ:j0Z.CIQ;v8d.Renderer.OHLC.requestNew=function(Y_e,R_k){var u8_,J9a,e1F,p9A,i$w,o1E,v26,f2q,R9E,Y43,u3k;u8_=null;J9a=R_k.hlc;e1F=R_k.colored;p9A=R_k.hollow;i$w=R_k.volume;o1E=R_k.histogram;for(var X7h=0;X7h < Y_e.length;X7h++){v26="hist";v26+="ogr";v26+="a";v26+="m";f2q="can";f2q+="d";f2q+="l";f2q+="e";R9E=Y_e[X7h];switch(R9E){case "bar":case f2q:u8_=R9E;break;case "volume":i$w=!!({});break;case "hollow":p9A=!!1;break;case "colored":e1F=!"";break;case v26:Y43="c";Y43+="a";Y43+="n";Y43+="dle";o1E=!"";u8_=Y43;break;case "hlc":u3k="b";u3k+="a";u3k+="r";J9a=!!"1";u8_=u3k;break;default:return null;}}y8R.f3X();if(u8_ === null){return null;}return new v8d.Renderer.OHLC({params:v8d.extend(R_k,{type:u8_,hlc:J9a,colored:e1F,hollow:p9A,volume:i$w,histogram:o1E})});};v8d.Renderer.OHLC.getChartParts=function(D9K,A7R){var w$R,j6Y,E1h,Q9J,S$_,c0e,P7y,E3Z,k$0,v6G,k7T,E1K,I4O,i8b,C0l,z8n,K2B,c8x,o7z,p5f,a4e,Q$c,C6x,Z6V,t7y,l7C,c6O,c2J,P3s,W$U,y9L,l$n,L2u;w$R="fill";w$R+="_colo";w$R+="r_even";j6Y="h";j6Y+="ol";j6Y+="l";j6Y+="ow";E1h="st";E1h+="x_";E1h+="hollow_candle_d";E1h+="own";Q9J="stx_hollow_candl";Q9J+="e_";Q9J+="up";S$_="stx_hollow_candl";S$_+="e_eve";S$_+="n";c0e="h";c0e+="oll";c0e+="o";c0e+="w";P7y="f";P7y+="ill";P7y+="_color_up";E3Z="stx_h";E3Z+="ollow_c";E3Z+="andle";E3Z+="_even";k$0="h";y8R.f3X();k$0+="ollow";v6G="border_c";v6G+="olor";v6G+="_down";k7T="stx_ho";k7T+="llo";k7T+="w_candle_up";E1K="fill_color_d";E1K+="own";I4O="ca";I4O+="n";I4O+="dl";I4O+="e";i8b="stx_c";i8b+="andle_shadow_down";C0l="stx_";C0l+="c";C0l+="andle_shadow_up";z8n="s";z8n+="ha";z8n+="do";z8n+="w";K2B="c";K2B+="a";K2B+="ndl";K2B+="e";c8x="c";c8x+="a";c8x+="n";c8x+="dle";o7z="stx_";o7z+="b";o7z+="ar_e";o7z+="ven";p5f="bo";p5f+="rder";p5f+="_color_down";a4e="b";a4e+="a";a4e+="r";Q$c="b";Q$c+="ar";C6x="border_co";C6x+="lor";Z6V="b";Z6V+="a";Z6V+="r";t7y="b";t7y+="a";t7y+="r";l7C="s";l7C+="tx_h";l7C+="ist";l7C+="ogram_up";c6O="histog";c6O+="r";c6O+="am";c2J=+"1";P3s=2;W$U=4;y9L=+"8";y8R.j7J(31);l$n=y8R.c0C("16",32);L2u=32;return [{type:c6O,drawType:"histogram",style:l7C,condition:y9L,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0,useBorderStyleProp:!0},{type:"histogram",drawType:"histogram",style:"stx_histogram_down",condition:l$n,fill:"fill_color_down",border:"border_color_down",useColorInMap:!!"1",useBorderStyleProp:!!1},{type:"histogram",drawType:"histogram",style:"stx_histogram_even",condition:L2u,fill:"fill_color_even",border:"border_color_even",skipIfPass:!![],useColorInMap:!!({}),useBorderStyleProp:!![]},{type:t7y,drawType:Z6V,style:D9K || "stx_bar_chart",border:C6x,useColorInMap:!![]},{type:Q$c,drawType:a4e,style:"stx_bar_up",condition:A7R?y9L:c2J,border:"border_color_up",useColorInMap:!![]},{type:"bar",drawType:"bar",style:"stx_bar_down",condition:A7R?l$n:P3s,border:p5f,useColorInMap:!![]},{type:"bar",drawType:"bar",style:o7z,condition:A7R?L2u:W$U,border:"border_color_even",skipIfPass:!![],useColorInMap:!0},{type:c8x,drawType:"shadow",style:"stx_candle_shadow",border:"border_color_up"},{type:K2B,drawType:z8n,style:C0l,condition:y9L,border:"border_color_up"},{type:"candle",drawType:"shadow",style:i8b,condition:l$n,border:"border_color_down"},{type:I4O,drawType:"shadow",style:"stx_candle_shadow_even",condition:L2u,border:"border_color_even",skipIfPass:!!({})},{type:"candle",drawType:"candle",style:"stx_candle_up",condition:y9L,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0,useBorderStyleProp:!0},{type:"candle",drawType:"candle",style:"stx_candle_down",condition:l$n,fill:E1K,border:"border_color_down",useColorInMap:!!"1",useBorderStyleProp:!!"1"},{type:"hollow",drawType:"shadow",style:k7T,condition:c2J,border:"border_color_up"},{type:"hollow",drawType:"shadow",style:"stx_hollow_candle_down",condition:P3s,border:v6G},{type:k$0,drawType:"shadow",style:E3Z,condition:W$U,border:"border_color_even",skipIfPass:!0},{type:"hollow",drawType:"candle",style:"stx_hollow_candle_up",condition:c2J | l$n,fill:P7y,border:"border_color_up",useColorInMap:!!1},{type:c0e,drawType:"candle",style:"stx_hollow_candle_down",condition:P3s | l$n,fill:"fill_color_down",border:"border_color_down",useColorInMap:!![]},{type:"hollow",drawType:"candle",style:S$_,condition:W$U | l$n,fill:"fill_color_even",border:"border_color_even",skipIfPass:!"",useColorInMap:!!({})},{type:"hollow",drawType:"candle",style:Q9J,condition:c2J | y9L,fill:"fill_color_up",border:"border_color_up"},{type:"hollow",drawType:"candle",style:E1h,condition:P3s | y9L,fill:"fill_color_down",border:"border_color_down"},{type:j6Y,drawType:"candle",style:"stx_hollow_candle_even",condition:W$U | y9L,fill:w$R,border:"border_color_even"}];;};v8d.Renderer.Bars=function(t2G){y8R.T$X();var V$S;this.construct(t2G);V$S=this.params;V$S.type="bar";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!"1";V$S.hlc=V$S.volume=V$S.hollow=V$S.histogram=!({});};v8d.inheritsFrom(v8d.Renderer.Bars,v8d.Renderer.OHLC,!"1");y8R.f3X();v8d.Renderer.HLC=function(X1M){var l8J;this.construct(X1M);l8J=this.params;y8R.f3X();l8J.type="bar";l8J.hlc=!!({});this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!1;l8J.volume=l8J.hollow=l8J.histogram=!1;};v8d.inheritsFrom(v8d.Renderer.HLC,v8d.Renderer.Bars,!!"");v8d.Renderer.Shading=function(N2h){this.construct(N2h);this.beenSetup=!!0;this.errTimeout=null;this.params.useChartLegend=![];this.shading=[];if(this.params.type == "rangechannel"){this.highLowBars=!!({});}};v8d.inheritsFrom(v8d.Renderer.Shading,v8d.Renderer.Lines,!({}));v8d.Renderer.Shading.requestNew=function(f2m,i$b){var O92,O3q,s17,J4Y;O92=null;O3q=null;for(var k36=0;k36 < f2m.length;k36++){s17="r";s17+="angechannel";J4Y=f2m[k36];if(J4Y == s17){O92="rangechannel";}else if(J4Y == "step"){O3q=!![];}}if(O92 === null){return null;}return new v8d.Renderer.Shading({params:v8d.extend(i$b,{type:O92,step:O3q})});};v8d.Renderer.Shading.prototype.setShading=function(V6e){if(V6e.constructor != Array){V6e=[V6e];}this.shading=V6e;};v8d.Renderer.Shading.prototype.draw=function(){var S7q,Z6E,M7n,A5H,T3y,t5k,I_q,m05,X0r,F78,Q4I,T6l,Z2V,n7L,p10,q9R,r2R,A5B,U4p,Q6F,i84,M2$,g95,X$T,I9H;S7q=this.stx;Z6E=this.params;M7n=S7q.panels[Z6E.panel].chart;if(Z6E.type == "rangechannel"){if(this.beenSetup){if(this.seriesParams.length > "2" * 1){this.removeSeries(this.seriesParams["2" * 1].id);}}else {A5H="H";A5H+="i";A5H+="g";A5H+="h";this.beenSetup=!"";Z6E.display=this.seriesParams["0" * 1].display;Z6E.yAxis=this.seriesParams[+"0"].yAxis;T3y=this.seriesParams[0].color || "auto";t5k=this.seriesParams[0].symbol;I_q="";if(t5k){y8R.N_M(1);I_q=y8R.c0C(t5k,(+"16.26",+"845") !== 586?2567 != (477,3746)?".":("761.00" * 1,453.42):(677.09,0x14b1));}this.removeAllSeries(!!"1");m05=Z6E.name;S7q.addSeries(null,{symbol:t5k,loadData:!!t5k,field:A5H,renderer:"Shading",name:m05,style:"stx_line_up",display:Z6E.display,shareYAxis:!0});S7q.addSeries(null,{symbol:t5k,loadData:!!t5k,field:"Low",renderer:"Shading",name:m05,style:"stx_line_down",display:Z6E.display,shareYAxis:!!"1"});this.setShading({primary:this.seriesParams[0].id,secondary:this.seriesParams[1].id,color:T3y});}}if(!this.shading){if(!this.errTimeout){y8R.j7J(14);X0r=-y8R.c0C("916304431",0);F78=1491262347;Q4I=2;for(var C$b=1;y8R.O1W(C$b.toString(),C$b.toString().length,26098) !== X0r;C$b++){T6l="Warning: no sh";T6l+="ading scheme set. Use myRen";T6l+="derer.setShading(scheme) to set";T6l+=".";console.log(T6l);Q4I+=2;}if(y8R.S9Y(Q4I.toString(),Q4I.toString().length,"35522" << 64) !== F78){console.log("");}Z2V=this;this.errTimeout=setTimeout(function(){y8R.f3X();Z2V.errTimeout=null;},10000);}}n7L={};for(p10=0;p10 < this.seriesParams.length;p10++){q9R={};if(M7n.series[this.seriesParams[p10].id]){q9R=v8d.clone(M7n.series[this.seriesParams[p10].id].parameters);}n7L[this.seriesParams[p10].id]={parameters:v8d.extend(v8d.extend(q9R,Z6E),this.seriesParams[p10]),yValueCache:this.caches[this.seriesParams[p10].id]};}function c1m(F8u){var N2X,h7J,I23;N2X=n7L[F8u];if(N2X){h7J=N2X.parameters.field;I23=N2X.parameters.subField;y8R.N_M(1);return y8R.a$j(h7J,I23?(("767" ^ 0) >= 6100?0x119a:".") + I23:"");}y8R.T$X();return F8u;}S7q.drawSeries(M7n,n7L,Z6E.yAxis,this);if(M7n.legend && Z6E.type == "rangechannel"){r2R="stx_l";r2R+="ine";r2R+="_down";if(!M7n.legend.colorMap){M7n.legend.colorMap={};}A5B=Z6E.display;U4p=[S7q.getCanvasColor("stx_line_up"),S7q.getCanvasColor(r2R)];M7n.legend.colorMap[A5B]={color:U4p,display:A5B,isBase:this == S7q.mainSeriesRenderer};;}for(p10 in n7L){this.caches[p10]=n7L[p10].yValueCache;}for(p10="0" | 0;p10 < this.shading.length;p10++){Q6F="Clo";Q6F+="s";Q6F+="e";i84=this.shading[p10];M2$=i84.color;if(i84.color == "auto"){M2$=S7q.defaultColor;}if(!i84.primary){i84.primary="Close";}if(!i84.secondary && this.seriesParams[0]){i84.secondary=this.seriesParams[0].field;}if(!i84.secondary)continue;else if(!n7L[i84.primary] && i84.primary != Q6F)continue;else if(!n7L[i84.secondary])continue;else if(i84.primary == "Close" && Z6E.yAxis && Z6E.yAxis != M7n.yAxis)continue;g95=c1m(i84.primary).split(3890 < (616.01,6623)?".":(172.55,602.3) !== (7377,585)?(0xbb4,6.87e+3):!"1");X$T=c1m(i84.secondary).split(("123" << 0,215) !== (+"223.03",607)?".":6590 >= 7260?("T",!!"1"):("0x248b" * 1,9.62e+3));I9H={topBand:g95[0],topSubBand:g95[+"1"],topColor:i84.greater || M2$ || S7q.containerColor,topAxis:Z6E.yAxis,bottomBand:X$T[0],bottomSubBand:X$T[1],bottomColor:i84.lesser || M2$ || S7q.containerColor,bottomAxis:i84.primary == "Close"?null:Z6E.yAxis,tension:Z6E.tension || M7n.tension,opacity:0.1,step:Z6E.step};if(!I9H.topColor && !I9H.bottomColor)continue;if(!Z6E.highlight && S7q.highlightedDraggable){I9H.opacity*=0.3;}v8d.fillIntersecting(S7q,Z6E.panel,I9H);}};v8d.Renderer.Histogram=function(i04){y8R.f3X();var p8q,i$3;p8q="histog";p8q+="ram";this.construct(i04);this.params.type=p8q;this.barsHaveWidth=this.standaloneBars=!!({});if(this.params.yAxis){i$3="n";i$3+="um";i$3+="ber";this.params.bindToYAxis=!![];if(typeof this.params.yAxis.baseline == i$3){this.params.yAxis.baseline={value:this.params.yAxis.baseline};}}};v8d.inheritsFrom(v8d.Renderer.Histogram,v8d.Renderer,!!0);v8d.Renderer.Histogram.prototype.adjustYAxis=function(){var L$9;L$9=this.params.yAxis;if(!L$9 || L$9.baseline){return;}L$9.min=+"0";L$9.highValue/=this.params.heightPercentage || "1" >> 0;};v8d.Renderer.Histogram.prototype.draw=function(){var k99,j8u,T7s,L4L,i5a,c3X,D8E;k99="st";k99+="acked";j8u=v8d.clone(this.params);j8u.type=j8u.subtype;this.useSum=j8u.subtype == k99;if(!j8u.yAxis || j8u.yAxis == this.stx.chart.yAxis){j8u.bindToYAxis=!![];}this.stx.drawHistogram(j8u,this.seriesParams);T7s=j8u.yAxis && j8u.yAxis.baseline;y8R.T$X();if(T7s && T7s.color){L4L="destinatio";L4L+="n-over";i5a="li";i5a+="n";i5a+="e";c3X=this.stx.panels[this.params.panel];D8E=this.stx.pixelFromPrice(T7s.value,c3X,this.params.yAxis) - 0.5;this.stx.plotLine({x0:c3X.left,x1:c3X.right,y0:D8E,y1:D8E,color:T7s.color,type:i5a,context:c3X.chart.context,confineToPanel:c3X,pattern:T7s.pattern || "solid",lineWidth:T7s.lineWidth || 1,opacity:T7s.opacity || 0.8,globalCompositeOperation:L4L});}};v8d.Renderer.Histogram.prototype.getBasis=function(T1$,F4w,w_X){var t5v,Y4P,V6Y,l6_;t5v=0;if(T1$ && this.useSum){for(var H1S=0;H1S < this.seriesParams.length;H1S++){Y4P="C";Y4P+="l";Y4P+="os";Y4P+="e";V6Y=this.seriesParams[H1S].field;if(V6Y === F4w)break;l6_=T1$[V6Y];if(l6_ && typeof l6_ === "object"){l6_=l6_[w_X || this.seriesParams[H1S].subField || this.stx.chart.defaultPlotField || Y4P];}if(l6_){t5v+=l6_;}}}y8R.f3X();return t5v;};v8d.Renderer.Heatmap=function(U0Q){var e1g;e1g="h";e1g+="eatmap";this.construct(U0Q);this.params.type=e1g;this.params.highlightable=!1;this.barsHaveWidth=this.standaloneBars=!![];};v8d.inheritsFrom(v8d.Renderer.Heatmap,v8d.Renderer,!({}));v8d.Renderer.Heatmap.requestNew=function(t$y,S$J){var t_y,v7i;t_y=null;for(var s6y="0" - 0;s6y < t$y.length;s6y++){v7i=t$y[s6y];if(v7i == "heatmap"){t_y="heatmap";}}if(t_y === null){return null;}return new v8d.Renderer.Heatmap({params:v8d.extend(S$J,{type:t_y})});};v8d.Renderer.Heatmap.prototype.draw=function(){this.stx.drawHeatmap(v8d.clone(this.params),this.seriesParams);};v8d.Renderer.Scatter=function(D2y){this.construct(D2y);this.standaloneBars=this.barsHaveWidth=!!"1";this.bounded=!0;};v8d.inheritsFrom(v8d.Renderer.Scatter,v8d.Renderer.Lines,![]);v8d.Renderer.Scatter.requestNew=function(q6m,t7O){y8R.T$X();var R05,N_x;R05=null;for(var Q9P=0;Q9P < q6m.length;Q9P++){N_x=q6m[Q9P];if(N_x == "scatterplot"){R05="scatter";}}if(R05 === null){return null;}return new v8d.Renderer.Scatter({params:v8d.extend(t7O,{type:R05})});};v8d.Renderer.Scatter.prototype.drawIndividualSeries=function(R3a,U5j){var K8Y,t40;y8R.f3X();K8Y=this.stx.panels[U5j.panel] || R3a.panel;t40={colors:[]};if(this.stx.scatter){t40=this.stx.scatter(K8Y,U5j);}else {console.warn("Error, Scatter renderer requires customChart.js");}return t40;};};o=O2y=>{var T3o;T3o=typeof _CIQ !== "undefined"?_CIQ:O2y.CIQ;if(!T3o.Studies){console.error("accumulationDistribution feature requires first activating studies feature.");}else {T3o.Studies.calculateAccumulationDistribution=function(I6A,U7f){var h9I=f3BGj;var z0a,q6j,O$H,A2M,Y1W,X2I,A_N,n$3,U7o,Y6M;z0a=-328969262;q6j=-1861241339;O$H=2;for(var l0M=1;h9I.S9Y(l0M.toString(),l0M.toString().length,48771) !== z0a;l0M++){A2M=U7f.chart.scrubbed;O$H+=+"2";}if(h9I.O1W(O$H.toString(),O$H.toString().length,19848) !== q6j){A2M=U7f.chart.scrubbed;}for(var o7A=U7f.startFrom;o7A < A2M.length;o7A++){Y1W="R";Y1W+="es";Y1W+="ult ";X2I="Res";X2I+="ul";X2I+="t";X2I+=" ";if(!o7A)continue;A_N=A2M[o7A];if(A_N.futureTick)break;h9I.N_M(14);n$3=A2M[h9I.c0C(o7A,1)];U7o=0;if(A_N.Close > n$3.Close){U7o=A_N.Close - Math.min(A_N.Low,n$3.Close);}else if(A_N.Close < n$3.Close){U7o=A_N.Close - Math.max(A_N.High,n$3.Close);}if(U7f.inputs["Use Volume"]){U7o*=A_N.Volume;}Y6M=n$3[X2I + U7f.name];if(!Y6M){Y6M=0;}Y6M+=U7o;if(!isNaN(A_N.Close)){A_N[Y1W + U7f.name]=Y6M;}}};T3o.Studies.studyLibrary=T3o.extend(T3o.Studies.studyLibrary,{"W Acc Dist":{name:"Accumulation/Distribution",calculateFN:T3o.Studies.calculateAccumulationDistribution,inputs:{"Use Volume":!!0}}});}};U=B0N=>{var o8v,y_3,g4D;o8v=typeof _CIQ !== "undefined"?_CIQ:B0N.CIQ;if(!o8v.Studies){console.error("adx feature requires first activating studies feature.");}else {y_3="a";y_3+="u";y_3+="t";y_3+="o";g4D="#F";g4D+="F000";g4D+="0";o8v.Studies.calculateADX=function(S7a,f$M){var r1B=f3BGj;var C$R,X0Y,a6u,N33,I6b,t6j,w8h,b3x,I39,s_i,O6$,M3t,J4x,p48,s4k,r5n,s5B,i2D,Y7e,e7E,l_D,F52,E70,I8r,g9V;r1B.f3X();C$R="Smoo";C$R+="thin";C$R+="g Per";C$R+="iod";o8v.Studies.calculateStudyATR(S7a,f$M);X0Y=f$M.chart.scrubbed;a6u=-2025389382;N33=525802871;I6b=+"2";for(var y7h=1;r1B.O1W(y7h.toString(),y7h.toString().length,53330) !== a6u;y7h++){t6j=f$M.days;w8h=parseInt(f$M.inputs[""],43);if(+w8h || w8h == 4){w8h=t6j;}I6b+=2;}if(r1B.O1W(I6b.toString(),I6b.toString().length,233) !== N33){t6j=f$M.days;w8h=parseInt(f$M.inputs[""],50);if(-w8h && w8h != 6){w8h=t6j;}}t6j=f$M.days;w8h=parseInt(f$M.inputs[C$R],10);if(!w8h && w8h !== 0){w8h=t6j;}if(X0Y.length < f$M.days + 1){f$M.error=!!({});return;}b3x=0;I39=0;s_i=0;O6$=0;for(var x3j=Math.max(1,f$M.startFrom);x3j < X0Y.length;x3j++){J4x="_sm";J4x+="+";J4x+="D";J4x+="M ";M3t=X0Y[x3j];p48=Math.max(0,M3t.High - X0Y[x3j - 1].High);s4k=Math.max(0,X0Y[x3j - 1].Low - M3t.Low);if(p48 > s4k){s4k=0;}else if(s4k > p48){p48=0;}else {p48=s4k=+"0";}if(x3j <= t6j){I39+=p48;s_i+=s4k;b3x+=M3t["True Range " + f$M.name];}else {r5n="_";r5n+="sm";r5n+="TR ";s5B="_";s5B+="s";s5B+="m-";s5B+="DM ";i2D="_";i2D+="s";i2D+="m+";i2D+="DM ";r1B.N_M(55);var B3d=r1B.c0C(7,4,13,2);r1B.j7J(52);var X9V=r1B.a$j(1,4,2);I39=X0Y[x3j - B3d][i2D + f$M.name] * (t6j - X9V) / t6j + p48;r1B.N_M(9);var Q9I=r1B.a$j(44,15,3);r1B.j7J(28);var r$B=r1B.c0C(1709,6,0,19,15);s_i=X0Y[x3j - Q9I][s5B + f$M.name] * (t6j - r$B) / t6j + s4k;r1B.N_M(110);var v5m=r1B.c0C(5,4,16,1);r1B.N_M(34);var a6_=r1B.c0C(20,1,19);b3x=X0Y[x3j - v5m][r5n + f$M.name] * (t6j - a6_) / t6j + M3t["True Range " + f$M.name];}M3t[J4x + f$M.name]=I39;M3t["_sm-DM " + f$M.name]=s_i;M3t["_smTR " + f$M.name]=b3x;if(x3j < t6j)continue;r1B.N_M(111);Y7e=r1B.c0C(I39,b3x,100);r1B.j7J(111);e7E=r1B.c0C(s_i,b3x,100);r1B.j7J(61);var a3S=r1B.c0C(8,4,98);l_D=a3S * Math.abs(Y7e - e7E) / (Y7e + e7E);M3t["+DI " + f$M.name]=Y7e;M3t["-DI " + f$M.name]=e7E;if(f$M.inputs.Series !== !({}) && w8h){if(x3j < t6j + w8h - 1){if(x3j == f$M.startFrom){for(var M74=t6j;M74 < f$M.startFrom;M74++){r1B.j7J(112);var U_B=r1B.a$j(96,99,109,13);O6$+=U_B * Math.abs(X0Y[M74]["+DI " + f$M.name] - X0Y[M74]["-DI " + f$M.name]) / (X0Y[M74]["+DI " + f$M.name] + X0Y[M74]["-DI " + f$M.name]);}}O6$+=l_D;}else if(x3j == t6j + w8h - 1){r1B.j7J(7);M3t["ADX " + f$M.name]=r1B.a$j(O6$,w8h);}else {F52="A";F52+="D";F52+="X";F52+=" ";r1B.j7J(14);var A$l=r1B.c0C(13,12);r1B.j7J(21);var X0H=r1B.c0C(7,2,3);M3t[F52 + f$M.name]=(X0Y[x3j - A$l]["ADX " + f$M.name] * (w8h - X0H) + l_D) / w8h;}}if(f$M.inputs.Histogram){E70="+";E70+="DI ";I8r=f$M.name + "_hist";if(!M3t["+DI " + f$M.name] && M3t[E70 + f$M.name] !== 0)continue;if(!M3t["-DI " + f$M.name] && M3t["-DI " + f$M.name] !== 0)continue;M3t[I8r]=M3t["+DI " + f$M.name] - M3t["-DI " + f$M.name];if(f$M.inputs.Series === !1){g9V="+";g9V+="DI";g9V+=" ";M3t[g9V + f$M.name]=null;M3t["-DI " + f$M.name]=null;}f$M.outputMap[I8r]="";}}};o8v.Studies.displayADX=function(m0t,i9V,F1K){var P92,P$u,C6z,z1C,u5d,m1j,p_U;P92=i9V.underlay?0.3:i9V.inputs.Series?0.4:1;if(i9V.inputs.Series && i9V.inputs.Shading){P$u="+DI " + i9V.name;C6z="-DI " + i9V.name;z1C=o8v.Studies.determineColor(i9V.outputs[i9V.outputMap[P$u]]);u5d=o8v.Studies.determineColor(i9V.outputs[i9V.outputMap[C6z]]);m1j=i9V.getYAxis(m0t);p_U={topBand:P$u,bottomBand:C6z,topColor:z1C,bottomColor:u5d,skipTransform:m0t.panels[i9V.panel].name != i9V.chart.name,topAxis:m1j,bottomAxis:m1j,opacity:0.3};if(!i9V.highlight && m0t.highlightedDraggable){p_U.opacity*=0.3;}o8v.fillIntersecting(m0t,i9V.panel,p_U);}if(i9V.inputs.Histogram){o8v.Studies.createHistogram(m0t,i9V,F1K,!({}),P92);}if(i9V.inputs.Series !== !1){o8v.Studies.displaySeriesAsLine(m0t,i9V,F1K);}else if(!i9V.inputs.Series && !i9V.inputs.Histogram){m0t.displayErrorAsWatermark(i9V.panel,m0t.translateIf(i9V.name) + ": " + m0t.translateIf("Nothing to display"));}};o8v.Studies.studyLibrary=o8v.extend(o8v.Studies.studyLibrary,{ADX:{name:"ADX/DMS",calculateFN:o8v.Studies.calculateADX,seriesFN:o8v.Studies.displayADX,inputs:{Period:14,"Smoothing Period":14,Series:!!({}),Shading:![],Histogram:!"1"},outputs:{"+DI":"#00FF00","-DI":g4D,ADX:y_3,"Positive Bar":"#00DD00","Negative Bar":"#FF0000"}}});}};g=u9O=>{var n9I=f3BGj;var y9m,U1H,R41,U5T,c7r;y9m="undef";n9I.f3X();y9m+="i";y9m+="ned";U1H=typeof _CIQ !== y9m?_CIQ:u9O.CIQ;if(!U1H.Studies){console.error("alligator feature requires first activating studies feature.");}else {R41="#FF000";R41+="0";U5T="#";U5T+="00DD";U5T+="00";c7r="#00";c7r+="00F";c7r+="F";U1H.Studies.calculateAlligator=function(A4l,j$U){var P4R,N5v,b7u,A8d,N_s,l91,G8c,Y7U,w8w,u02,E0E,p6M,r4C,g2X,j8H,H9G;P4R="Gato";P4R+="r";N5v="Li";N5v+="ps Perio";N5v+="d";b7u="J";b7u+="aw";b7u+=" Period";A8d={J:Number(j$U.inputs[b7u]),T:Number(j$U.inputs["Teeth Period"]),L:Number(j$U.inputs[N5v])};N_s=j$U.chart.scrubbed;if(N_s.length < Math.max(A8d.J,A8d.T,A8d.L) + 1){j$U.error=!![];return;}if(j$U.type === P4R || j$U.inputs["Show Lines"]){l91="hl";l91+="/";l91+="2";G8c="Tee";G8c+="th ";G8c+="Offset";Y7U="h";Y7U+="l/";Y7U+="2";w8w="J";w8w+="a";w8w+="w ";w8w+="Offset";U1H.Studies.MA("welles wilder",A8d.J,"hl/2",j$U.inputs[w8w],"Jaw",A4l,j$U);U1H.Studies.MA("welles wilder",A8d.T,Y7U,j$U.inputs[G8c],"Teeth",A4l,j$U);U1H.Studies.MA("welles wilder",A8d.L,l91,j$U.inputs["Lips Offset"],"Lips",A4l,j$U);}for(var S2F=j$U.startFrom;S2F < N_s.length;S2F++){if(!N_s[S2F])continue;if(j$U.type == "Gator"){u02="_h";u02+="ist1";E0E="J";E0E+="a";E0E+="w";E0E+=" ";p6M=N_s[S2F][E0E + j$U.name];r4C=N_s[S2F]["Lips " + j$U.name];g2X=N_s[S2F]["Teeth " + j$U.name];if(g2X || g2X === "0" >> 64){if(p6M || p6M === 0){n9I.N_M(14);N_s[S2F][j$U.name + "_hist1"]=Math.abs(n9I.c0C(p6M,g2X));}if(r4C || r4C === 0){n9I.N_M(14);N_s[S2F][j$U.name + "_hist2"]=-Math.abs(n9I.c0C(g2X,r4C));}}j$U.outputMap={};j$U.outputMap[j$U.name + u02]="";j$U.outputMap[j$U.name + "_hist2"]="";}if(j$U.inputs["Show Fractals"]){if(!N_s[S2F - 2] || !N_s[S2F - 1] || !N_s[S2F] || !N_s[S2F + 1] || !N_s[S2F + ("2" >> 64)])continue;if(N_s[S2F - 2].High && N_s[S2F - 1].High && N_s[S2F].High && N_s[S2F + +"1"].High && N_s[S2F + 2].High){if(N_s[S2F].High > N_s[S2F - 1].High && N_s[S2F].High > N_s[S2F - 2].High && N_s[S2F].High > N_s[S2F + 1].High && N_s[S2F].High > N_s[S2F + 2].High){j8H="F";j8H+="ract";j8H+="a";j8H+="l High ";N_s[S2F][j8H + j$U.name]=1;}}if(N_s[S2F - 2].Low && N_s[S2F - 1].Low && N_s[S2F].Low && N_s[S2F + 1].Low && N_s[S2F + 2].Low){if(N_s[S2F].Low < N_s[S2F - 1].Low && N_s[S2F].Low < N_s[S2F - ("2" | 2)].Low && N_s[S2F].Low < N_s[S2F + 1].Low && N_s[S2F].Low < N_s[S2F + 2].Low){H9G="Fractal";H9G+=" Low ";N_s[S2F][H9G + j$U.name]=1;}}}}};U1H.Studies.displayAlligator=function(h9Z,s_k,f$k){var a6S,o8E,V9w,Y_M;a6S=s_k.getContext(h9Z);if(s_k.inputs["Show Lines"]){U1H.Studies.displaySeriesAsLine(h9Z,s_k,f$k);}if(s_k.inputs["Show Fractals"]){h9Z.startClip();a6S.globalAlpha=s_k.underlay?0.3:1;if(!s_k.highlight && h9Z.highlightedDraggable){a6S.globalAlpha*=0.3;}for(var c7C=2;c7C < f$k.length - 2;c7C++){if(f$k[c7C]){o8E="l";o8E+="ow";V9w="Frac";V9w+="ta";V9w+="l Low";V9w+=" ";Y_M="hig";Y_M+="h";if(f$k[c7C]["Fractal High " + s_k.name]){l7W(Y_M,c7C);}if(f$k[c7C][V9w + s_k.name]){l7W(o8E,c7C);}}}h9Z.endClip();}n9I.T$X();function l7W(o7N,o4f){var D3v,J$k,g0D,a_z,F$v;J$k=h9Z.chart.panel.yAxis.flipped;if(o7N == "high"){g0D="b";g0D+="ot";g0D+="tom";a6S.fillStyle=h9Z.defaultColor;a6S.textBaseline=J$k?"top":g0D;D3v=h9Z.pixelFromPrice(f$k[o4f].High);a6S.fillText(J$k?976.18 == 3090?(0x28e,0x125a):(7140,977.43) > 148.55?"\u25BC":(8910,5690) == ("3714" ^ 0,+"871.35")?0x1315:("h","a"):"\u25B2",h9Z.pixelFromBar(c7C,h9Z.chart) - a6S.measureText(("65" | 1,557) <= "763" - 0?3112 <= (809.74,4720)?448.29 == 684.47?0x3f9:"\u25B2":(8.42e+3,"3.35e+2" * 1):(!"1","e")).width / +"2" + 1,J$k?D3v + 5:D3v - 5);;}else if(o7N == "low"){a_z="t";a_z+="o";a_z+="p";F$v="bott";F$v+="o";F$v+="m";a6S.fillStyle=h9Z.defaultColor;a6S.textBaseline=J$k?F$v:a_z;D3v=h9Z.pixelFromPrice(f$k[o4f].Low);a6S.fillText(J$k?325.1 <= +"6230"?"\u25B2":(4.65e+3,6.51e+3):5050 !== (97.86,8690)?"1366" - 0 > (1520,9587)?(3655,148.28) <= (5850,322.54)?"P":0x16b7:"\u25BC":+"445.88",h9Z.pixelFromBar(c7C,h9Z.chart) - a6S.measureText(("356.65" * 1,+"461") >= (7750,1870)?3800 == ("3985" << 64,"1990" << 64)?(595.23,!({})):(936.14,0x1565):"\u25BC").width / 2 + 1,J$k?D3v - ("5" << 32):D3v + 5);;}}};U1H.Studies.displayGator=function(G3d,D72,f0Y){var Z9V,W3$,T6c,m0K,t1C,U5K,H$3,O4f,k72,z_a,f$O,q6G,w8t;Z9V="#CCCC";Z9V+="C";Z9V+="C";W3$="De";W3$+="creasing B";W3$+="ar";T6c="Increasin";T6c+="g ";T6c+="Bar";m0K=G3d.panels[D72.panel];t1C=D72.getContext(G3d);U5K=D72.getYAxis(G3d);H$3=G3d.pixelFromPrice(0,m0K,U5K);n9I.j7J(113);var D4I=n9I.c0C(38,2,8,1,9);O4f=G3d.layout.candleWidth - D4I;if(O4f < 2){O4f=1;}k72=U1H.Studies.determineColor(D72.outputs[T6c]);z_a=U1H.Studies.determineColor(D72.outputs[W3$]);G3d.canvasColor("stx_histogram");if(!D72.underlay){t1C.globalAlpha=+"1";}t1C.fillStyle=Z9V;G3d.startClip(D72.panel);if(!D72.highlight && G3d.highlightedDraggable){t1C.globalAlpha*=0.3;}n9I.f3X();for(var m2Y=0;m2Y < f0Y.length;m2Y++){f$O=f0Y[m2Y];n9I.j7J(114);q6G=f0Y[n9I.a$j(m2Y,"1",1)];if(!f$O)continue;for(var P9x=1;P9x <= 2;P9x++){w8t="_";w8t+="hi";w8t+="s";w8t+="t";if(!q6G){q6G=G3d.getPreviousBar(G3d.chart,D72.name + "_hist" + P9x,m2Y);}if(!q6G){t1C.fillStyle="#CCCCCC";}else if(Math.abs(q6G[D72.name + w8t + P9x]) < Math.abs(f$O[D72.name + "_hist" + P9x])){t1C.fillStyle=k72;}else if(Math.abs(q6G[D72.name + "_hist" + P9x]) > Math.abs(f$O[D72.name + "_hist" + P9x])){t1C.fillStyle=z_a;}if(f$O.candleWidth){O4f=Math.floor(Math.max(1,f$O.candleWidth - 2));}t1C.fillRect(Math.floor(G3d.pixelFromBar(m2Y,m0K.chart) - O4f / 2),Math.floor(H$3),Math.floor(O4f),Math.floor(G3d.pixelFromPrice(f$O[D72.name + "_hist" + P9x],m0K,U5K) - H$3));}}G3d.endClip();};U1H.Studies.studyLibrary=U1H.extend(U1H.Studies.studyLibrary,{Alligator:{name:"Alligator",overlay:!![],seriesFN:U1H.Studies.displayAlligator,calculateFN:U1H.Studies.calculateAlligator,inputs:{"Show Lines":!![],"Jaw Period":13,"Jaw Offset":8,"Teeth Period":8,"Teeth Offset":5,"Lips Period":5,"Lips Offset":+"3","Show Fractals":![]},outputs:{Jaw:c7r,Teeth:"#FF0000",Lips:"#00DD00"}},Gator:{name:"Gator Oscillator",seriesFN:U1H.Studies.displayGator,calculateFN:U1H.Studies.calculateAlligator,inputs:{"Jaw Period":13,"Jaw Offset":+"8","Teeth Period":+"8","Teeth Offset":5,"Lips Period":+"5","Lips Offset":"3" - 0},outputs:{"Increasing Bar":U5T,"Decreasing Bar":R41},centerline:0}});}};Y=V2r=>{var o9e=f3BGj;var C_7,Y4b,G$m,c0r,L1D,h_G;C_7=typeof _CIQ !== "undefined"?_CIQ:V2r.CIQ;if(!C_7.Studies){Y4b=-809326854;o9e.N_M(4);G$m=o9e.c0C("128905528",24);c0r=2;for(var d$k=1;o9e.O1W(d$k.toString(),d$k.toString().length,33224) !== Y4b;d$k++){console.error("");c0r+=2;}if(o9e.O1W(c0r.toString(),c0r.toString().length,79149) !== G$m){console.error("");}console.error("aroon feature requires first activating studies feature.");}else {L1D="0 ";L1D+="to";L1D+=" 100";h_G="Aroo";h_G+="n";C_7.Studies.calculateAroon=function(Y53,o6t){var B0P,C_K,k$b,c$d,e0l,X2x,J5n,H6e,X4o,T7a,O3y,D1$,Z7e,X5H,T3R,s$Z;B0P=o6t.chart.scrubbed;if(B0P.length < o6t.days + "1" * 1){o6t.error=!"";return;}C_K=0;k$b=0;c$d=null;e0l=null;if(o6t.startFrom > 0){X2x="_st";X2x+="at";X2x+="e";X2x+=" ";o9e.N_M(3);var Q3W=o9e.a$j(24,18,7);J5n=B0P[o6t.startFrom - Q3W][X2x + o6t.name];if(J5n){C_K=J5n[+"0"];o9e.j7J(31);k$b=J5n[o9e.c0C("1",0)];c$d=J5n[2];e0l=J5n[3];}}for(var g8c=o6t.startFrom;g8c < B0P.length;g8c++){X4o="_stat";X4o+="e ";T7a="A";T7a+="r";T7a+="oon";T7a+=" Down ";O3y="Aroon";O3y+=" ";O3y+="Dow";O3y+="n ";D1$=B0P[g8c];if(D1$.futureTick)break;if(c$d === null){c$d=D1$.High;}if(e0l === null){e0l=D1$.Low;}c$d=Math.max(c$d,D1$.High);if(c$d == D1$.High){C_K=0;}else {C_K++;if(C_K > o6t.days){c$d=D1$.High;C_K=0;for(H6e=+"1";H6e <= o6t.days;H6e++){c$d=Math.max(c$d,B0P[g8c - H6e].High);if(c$d == B0P[g8c - H6e].High){C_K=H6e;}}}}e0l=Math.min(e0l,D1$.Low);if(e0l == D1$.Low){k$b=0;}else {k$b++;if(k$b > o6t.days){e0l=D1$.Low;k$b=0;for(H6e=1;H6e <= o6t.days;H6e++){e0l=Math.min(e0l,B0P[g8c - H6e].Low);if(e0l == B0P[g8c - H6e].Low){k$b=H6e;}}}}Z7e=!isNaN(D1$.High);X5H=!isNaN(D1$.Low);o9e.j7J(61);var q2_=o9e.c0C(13,1,87);o9e.j7J(0);var z99=o9e.c0C(126,8,15,9);T3R=q2_ * (z99 - C_K / o6t.days);if(Z7e){D1$["Aroon Up " + o6t.name]=T3R;}o9e.N_M(14);var i6O=o9e.c0C(106,6);s$Z=i6O * (+"1" - k$b / o6t.days);if(X5H){D1$[O3y + o6t.name]=s$Z;}if(Z7e && X5H){D1$["Aroon Oscillator " + o6t.name]=D1$["Aroon Up " + o6t.name] - D1$[T7a + o6t.name];}D1$[X4o + o6t.name]=[C_K,k$b,c$d,e0l];}};C_7.Studies.studyLibrary=C_7.extend(C_7.Studies.studyLibrary,{Aroon:{name:h_G,range:L1D,calculateFN:C_7.Studies.calculateAroon,outputs:{"Aroon Up":"#00DD00","Aroon Down":"#FF0000"}},"Aroon Osc":{name:"Aroon Oscillator",calculateFN:C_7.Studies.calculateAroon,outputs:{"Aroon Oscillator":"auto"}}});}};G=o9W=>{var g7h=f3BGj;var e9S,H9p,x6H,Y7X;g7h.T$X();e9S=typeof _CIQ !== "undefined"?_CIQ:o9W.CIQ;if(!e9S.Studies){console.error("atr feature requires first activating studies feature.");}else {H9p="ATR Trailing Stop";H9p+="s";x6H="au";x6H+="to";Y7X="AT";Y7X+="R Bands";e9S.Studies.calculateATRBands=function(N4s,s4F){var d28,G96,K6H,K$m;e9S.Studies.calculateStudyATR(N4s,s4F);d28=s4F.inputs.Field;if(!d28 || d28 == "field"){d28="Close";}g7h.j7J(4);G96=-g7h.c0C("972743568",0);K6H=1560178187;K$m=2;for(var W$y="1" * 1;g7h.S9Y(W$y.toString(),W$y.toString().length,75126) !== G96;W$y++){e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"" * s4F.name);g7h.j7J(14);K$m+=g7h.c0C("2",0);}if(g7h.S9Y(K$m.toString(),K$m.toString().length,59413) !== K6H){e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"" / s4F.name);}e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"ATR " + s4F.name);};e9S.Studies.calculateSTARCBands=function(o8U,U1r){var Q2s;Q2s="C";Q2s+="los";Q2s+="e";e9S.Studies.calculateStudyATR(o8U,U1r);e9S.Studies.MA("simple",U1r.inputs["MA Period"],Q2s,0,"_MA",o8U,U1r);e9S.Studies.calculateGenericEnvelope(o8U,U1r,U1r.inputs.Multiplier,"_MA " + U1r.name,"ATR " + U1r.name);};e9S.Studies.calculateATRStops=function(z15,S3S){var C6X,M6c,t65,M0b,i2V,X9M,n81,K1a,T5p,X7m;C6X=S3S.chart.scrubbed;g7h.f3X();if(!C6X){return;}e9S.Studies.calculateStudyATR(z15,S3S);M6c=S3S.inputs.HighLow;for(var j1v=Math.max(S3S.startFrom - 1,"1" << 64);j1v < C6X.length - 1;j1v++){t65=C6X[j1v];g7h.j7J(14);M0b=C6X[g7h.a$j(j1v,1)];i2V=t65["Buy Stops " + S3S.name];if(!i2V){i2V=t65["Sell Stops " + S3S.name];}if(!i2V){i2V=0;}if(!t65 || !M0b)continue;X9M=t65.Close;n81=X9M;K1a=t65["ATR " + S3S.name] * S3S.inputs.Multiplier;if(t65.Close > i2V && M0b.Close > i2V){if(M6c){X9M=t65.High;}g7h.j7J(14);n81=Math.max(i2V,g7h.a$j(X9M,K1a));}else if(t65.Close <= i2V && M0b.Close <= i2V){if(M6c){X9M=t65.Low;}g7h.N_M(1);n81=Math.min(i2V,g7h.c0C(X9M,K1a));}else if(t65.Close > i2V){if(M6c){X9M=t65.High;}g7h.j7J(14);n81=g7h.a$j(X9M,K1a);}else if(t65.Close <= i2V){if(M6c){X9M=t65.Low;}g7h.N_M(1);n81=g7h.a$j(X9M,K1a);}if(X9M <= n81){g7h.j7J(1);C6X[g7h.a$j(j1v,1)]["Buy Stops " + S3S.name]=n81;g7h.j7J(1);delete C6X[g7h.a$j(j1v,1)]["Sell Stops " + S3S.name];}else if(X9M > n81){T5p="Buy S";T5p+="top";T5p+="s ";X7m="Sell ";X7m+="Stops ";g7h.j7J(1);C6X[g7h.a$j(j1v,1)][X7m + S3S.name]=n81;g7h.N_M(115);delete C6X[g7h.a$j("1",j1v,0)][T5p + S3S.name];}g7h.j7J(1);C6X[g7h.a$j(j1v,1)]["All Stops " + S3S.name]=n81;}S3S.referenceOutput="All Stops";S3S.outputMap={};S3S.outputMap["All Stops " + S3S.name]="";};e9S.Studies.studyLibrary=e9S.extend(e9S.Studies.studyLibrary,{ATR:{name:"Average True Range",calculateFN:e9S.Studies.calculateStudyATR,outputs:{ATR:"auto"}},"ATR Bands":{name:Y7X,overlay:!!({}),seriesFN:e9S.Studies.displayChannel,calculateFN:e9S.Studies.calculateATRBands,inputs:{Period:"5" >> 64,Field:"field",Shift:3,"Channel Fill":!![]},outputs:{"ATR Bands Top":"auto","ATR Bands Bottom":x6H,"ATR Bands Channel":"auto"},attributes:{Shift:{min:0.1,step:0.1}}},"STARC Bands":{name:"STARC Bands",overlay:!!1,seriesFN:e9S.Studies.displayChannel,calculateFN:e9S.Studies.calculateSTARCBands,inputs:{Period:15,"MA Period":5,Multiplier:+"1.3","Channel Fill":!0},outputs:{"STARC Bands Top":"auto","STARC Bands Median":"auto","STARC Bands Bottom":"auto"},attributes:{Multiplier:{min:0.1,step:0.1}}},"ATR Trailing Stop":{name:H9p,overlay:!!1,seriesFN:e9S.Studies.displayPSAR2,calculateFN:e9S.Studies.calculateATRStops,inputs:{Period:21,Multiplier:3,"Plot Type":["points","squarewave"],HighLow:![]},outputs:{"Buy Stops":"#FF0000","Sell Stops":"#00FF00"},attributes:{Multiplier:{min:0.1,step:0.1}}}});}};X=I_4=>{var C6f=f3BGj;C6f.T$X();var f1J,r4G,i6S,t96;f1J=610765755;r4G=-1092841126;i6S=2;for(var J$t=1;C6f.S9Y(J$t.toString(),J$t.toString().length,84544) !== f1J;J$t++){t96=typeof _CIQ !== "undefined"?_CIQ:I_4.CIQ;i6S+=+"2";}if(C6f.O1W(i6S.toString(),i6S.toString().length,97768) !== r4G){t96=-_CIQ == ""?_CIQ:I_4.CIQ;}if(!t96.Studies){console.error("awesomeOscillator feature requires first activating studies feature.");}else {t96.Studies.calculateAwesomeOscillator=function(v$6,t_x){var s1h,S44,r4L,R_d,E6T,S6n,d0y,S2A,S1g;s1h="_";s1h+="hi";s1h+="s";s1h+="t";S44="_";S44+="MA5";r4L="s";r4L+="i";r4L+="mple";R_d=t_x.chart.scrubbed;if(R_d.length < 33){t_x.error=!![];return;}t96.Studies.MA(r4L,5,"hl/2",0,S44,v$6,t_x);E6T=2070076368;S6n=-1587263358;d0y=2;for(var v7X=1;C6f.O1W(v7X.toString(),v7X.toString().length,21402) !== E6T;v7X++){S2A="_M";S2A+="A";S2A+="3";S2A+="4";t96.Studies.MA("_MA34",45,"_MA34",1,S2A,v$6,t_x);d0y+=2;}if(C6f.O1W(d0y.toString(),d0y.toString().length,85914) !== S6n){t96.Studies.MA("_MA34",51,"_MA34",0,"_MA34",v$6,t_x);}t96.Studies.MA("simple",34,"hl/2",0,"_MA34",v$6,t_x);C6f.T$X();for(var P9s=Math.max(t_x.startFrom,33);P9s < R_d.length;P9s++){S1g="_MA5";S1g+=" ";if(!R_d[P9s])continue;R_d[P9s][t_x.name + "_hist"]=R_d[P9s][S1g + t_x.name] - R_d[P9s]["_MA34 " + t_x.name];}t_x.outputMap={};t_x.outputMap[t_x.name + s1h]="";};t96.Studies.displayAwesomeOscillator=function(W4K,L7C,v_A){var x6m,F5Q,X$E,w0M,H6p,f_a,n8u,p22,x1w,a6d;x6m=W4K.panels[L7C.panel];F5Q=L7C.getContext(W4K);X$E=L7C.getYAxis(W4K);w0M=W4K.pixelFromPrice(0,x6m,X$E);C6f.j7J(15);var c3G=C6f.c0C(0,12,10);H6p=W4K.layout.candleWidth - c3G;if(H6p < 2){H6p=1;}f_a=t96.Studies.determineColor(L7C.outputs["Increasing Bar"]);n8u=t96.Studies.determineColor(L7C.outputs["Decreasing Bar"]);W4K.canvasColor("stx_histogram");if(!L7C.underlay){F5Q.globalAlpha=1;}F5Q.fillStyle="#CCCCCC";W4K.startClip(L7C.panel);if(!L7C.highlight && W4K.highlightedDraggable){F5Q.globalAlpha*=0.3;}for(var P$8="0" >> 96;P$8 < v_A.length;P$8++){p22="_";p22+="h";p22+="is";p22+="t";x1w=v_A[P$8];C6f.j7J(14);a6d=v_A[C6f.c0C(P$8,1)];if(!a6d){a6d=W4K.getPreviousBar(W4K.chart,L7C.name + "_hist",P$8);}if(!x1w)continue;if(!a6d);else if(a6d[L7C.name + p22] < x1w[L7C.name + "_hist"]){F5Q.fillStyle=f_a;}else if(a6d[L7C.name + "_hist"] > x1w[L7C.name + "_hist"]){F5Q.fillStyle=n8u;}if(x1w.candleWidth){H6p=Math.floor(Math.max(1,x1w.candleWidth - +"2"));}F5Q.fillRect(Math.floor(W4K.pixelFromBar(P$8,x6m.chart) - H6p / 2),Math.floor(w0M),Math.floor(H6p),Math.floor(W4K.pixelFromPrice(x1w[L7C.name + "_hist"],x6m,X$E) - w0M));}W4K.endClip();};t96.Studies.studyLibrary=t96.extend(t96.Studies.studyLibrary,{Awesome:{name:"Awesome Oscillator",seriesFN:t96.Studies.displayAwesomeOscillator,calculateFN:t96.Studies.calculateAwesomeOscillator,inputs:{},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};E=s0_=>{var T9n,s0c,c0H,X_H;T9n="und";T9n+="ef";T9n+="ined";s0c=typeof _CIQ !== T9n?_CIQ:s0_.CIQ;if(!s0c.Studies){c0H="ba";c0H+="lanceOfPower feature requires first activa";c0H+="ting studies feature.";console.error(c0H);}else {X_H="-";X_H+="1";X_H+=" to 1";s0c.Studies.calculateBalanceOfPower=function(Z2z,K9$){var f0R,h9j,o9T,b0b;f0R="Re";f0R+="sult";h9j="_R";h9j+="at";h9j+="io";h9j+=" ";o9T=K9$.chart.scrubbed;if(o9T.length < K9$.days + 1){K9$.error=!"";return;}for(var r1e=K9$.startFrom;r1e < o9T.length;r1e++){b0b=o9T[r1e];b0b["_Ratio " + K9$.name]=b0b.Close - b0b.Open;if(b0b.High - b0b.Low !== 0){b0b["_Ratio " + K9$.name]/=b0b.High - b0b.Low;}}f3BGj.f3X();s0c.Studies.MA(K9$.inputs["Moving Average Type"],K9$.days,h9j + K9$.name,0,f0R,Z2z,K9$);};s0c.Studies.studyLibrary=s0c.extend(s0c.Studies.studyLibrary,{"Bal Pwr":{name:"Balance of Power",range:X_H,centerline:0,calculateFN:s0c.Studies.calculateBalanceOfPower,inputs:{Period:+"14","Moving Average Type":"ma"}}});}};F=q3X=>{var K4o,P0X,W0j,u3p,O9Z,o17,w33,u$L;K4o=typeof _CIQ !== "undefined"?_CIQ:q3X.CIQ;if(!K4o.Studies){P0X="bol";P0X+="linger feature requires first activa";P0X+="ting studies f";P0X+="eature.";console.error(P0X);}else {W0j="Bollinge";W0j+="r Bandwidth";u3p="a";u3p+="u";u3p+="t";u3p+="o";O9Z="aut";O9Z+="o";o17="a";o17+="u";o17+="to";w33="au";w33+="t";w33+="o";u$L="fi";u$L+="e";u$L+="l";u$L+="d";K4o.Studies.calculateBollinger=function(J$N,Z$f){var y3i,K1J,g_c,u8j;y3i="_";y3i+="M";y3i+="A";y3i+=" ";K1J="St";K1J+="a";K1J+="ndard Deviations";g_c="f";g_c+="i";g_c+="e";f3BGj.f3X();g_c+="ld";u8j=Z$f.inputs.Field;if(!u8j || u8j == g_c){u8j="Close";}K4o.Studies.MA(Z$f.inputs["Moving Average Type"],Z$f.days,u8j,0,"_MA",J$N,Z$f);Z$f.std=new K4o.Studies.StudyDescriptor(Z$f.name,"STD Dev",Z$f.panel);Z$f.std.chart=Z$f.chart;Z$f.std.startFrom=Z$f.startFrom;Z$f.std.days=Z$f.days;Z$f.std.inputs={Field:u8j,"Standard Deviations":1,Type:Z$f.inputs["Moving Average Type"]};Z$f.std.outputs={"_STD Dev":null};K4o.Studies.calculateStandardDeviation(J$N,Z$f.std);K4o.Studies.calculateGenericEnvelope(J$N,Z$f,Z$f.inputs[K1J],y3i + Z$f.name,"_STD Dev " + Z$f.name);if(Z$f.type == "Boll %b"){Z$f.zoneOutput="%b";}};K4o.Studies.studyLibrary=K4o.extend(K4o.Studies.studyLibrary,{"Bollinger Bands":{name:"Bollinger Bands",overlay:!![],calculateFN:K4o.Studies.calculateBollinger,seriesFN:K4o.Studies.displayChannel,inputs:{Period:"20" << 64,Field:u$L,"Standard Deviations":2,"Moving Average Type":"ma","Channel Fill":!!({})},outputs:{"Bollinger Bands Top":w33,"Bollinger Bands Median":"auto","Bollinger Bands Bottom":o17},attributes:{"Standard Deviations":{min:0.1,step:+"0.1"}}},"Boll %b":{name:"Bollinger %b",calculateFN:K4o.Studies.calculateBollinger,inputs:{Period:20,Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},outputs:{"%b":"auto"},parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:100,studyOverBoughtColor:O9Z,studyOverSoldValue:0,studyOverSoldColor:u3p}},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"Boll BW":{name:W0j,calculateFN:K4o.Studies.calculateBollinger,inputs:{Period:+"20",Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},outputs:{Bandwidth:"auto"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}}});}};I=m5W=>{var Z4s=f3BGj;var b3l,r$X;b3l=typeof _CIQ !== "undefined"?_CIQ:m5W.CIQ;Z4s.f3X();if(!b3l.Studies){console.error("cci feature requires first activating studies feature.");}else {r$X="a";r$X+="ut";r$X+="o";b3l.Studies.calculateCCI=function(R3Q,b7C){var N_6,I9M,H8P,t$A,J4p,n71,d33,J$4;N_6="hlc";Z4s.f3X();N_6+="/";N_6+="3";I9M=b7C.chart.scrubbed;if(I9M.length < b7C.days + +"1"){H8P=-750700883;t$A=-1276999249;J4p=2;for(var W6c=1;Z4s.S9Y(W6c.toString(),W6c.toString().length,29259) !== H8P;W6c++){b7C.error=!({});J4p+=2;}if(Z4s.S9Y(J4p.toString(),J4p.toString().length,+"32914") !== t$A){b7C.error=!"";}return;}b3l.Studies.MA("simple",b7C.days,N_6,0,"MA",R3Q,b7C);for(var i_U=Math.max(b7C.startFrom,b7C.days - +"1");i_U < I9M.length;i_U++){n71="Re";n71+="sult ";d33=I9M[i_U];if(!d33)continue;J$4=0;for(var p9m=0;p9m < b7C.days;p9m++){J$4+=Math.abs(I9M[i_U - p9m]["hlc/3"] - d33["MA " + b7C.name]);}J$4/=b7C.days;if(Math.abs(J$4) < 0.00000001){d33["Result " + b7C.name]=0;}else {d33[n71 + b7C.name]=(d33["hlc/3"] - d33["MA " + b7C.name]) / (0.015 * J$4);}}};b3l.Studies.studyLibrary=b3l.extend(b3l.Studies.studyLibrary,{CCI:{name:"Commodity Channel Index",calculateFN:b3l.Studies.calculateCCI,inputs:{Period:20},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:100,studyOverBoughtColor:"auto",studyOverSoldValue:-100,studyOverSoldColor:r$X}},attributes:{Period:{min:+"2"}}}});}};M_=z7L=>{var A2k=f3BGj;var U3y;A2k.f3X();U3y=typeof _CIQ !== "undefined"?_CIQ:z7L.CIQ;if(!U3y.Studies){console.error("centerOfGravity feature requires first activating studies feature.");}else {U3y.Studies.calculateCenterOfGravity=function(A3u,Q11){var b0d,E76,b0H,i50,g1a,X3p;b0d="fi";b0d+="e";b0d+="ld";E76=Q11.chart.scrubbed;if(E76.length < Q11.days){Q11.error=!"";return;}b0H=Q11.inputs.Field;if(!b0H || b0H == b0d){b0H="Close";}for(var N6I=Math.max(Q11.startFrom,Q11.days - 1);N6I < E76.length;N6I++){A2k.j7J(5);i50=A2k.a$j(1,"0");g1a=0;for(var F0i="0" ^ 0;F0i < Q11.days;F0i++){A2k.N_M(14);X3p=E76[A2k.c0C(N6I,F0i)][b0H];A2k.j7J(116);i50-=A2k.a$j(X3p,"1",F0i);g1a+=X3p;}if(g1a){A2k.j7J(7);E76[N6I]["Result " + Q11.name]=A2k.a$j(i50,g1a);}}};U3y.Studies.studyLibrary=U3y.extend(U3y.Studies.studyLibrary,{COG:{name:"Center Of Gravity",calculateFN:U3y.Studies.calculateCenterOfGravity,inputs:{Period:10,Field:"field"}}});}};h1=N9_=>{var S95,B$d;S95=typeof _CIQ !== "undefined"?_CIQ:N9_.CIQ;if(!S95.Studies){B$d="chai";B$d+="kin feature requires first activating studies feature.";console.error(B$d);}else {S95.Studies.calculateChaikinMoneyFlow=function(b3U,Z$s){var W2p=f3BGj;var h$a,G7H,P2J,s4E;h$a=Z$s.chart.scrubbed;if(h$a.length < Z$s.days){Z$s.error=!!"1";return;}G7H=0;P2J=0;W2p.j7J(117);var n96=W2p.c0C(36,12,17,1,8);s4E=h$a[Z$s.startFrom - n96];W2p.T$X();if(s4E){if(s4E["_sumMF " + Z$s.name]){G7H=s4E["_sumMF " + Z$s.name];}if(s4E["_sumV " + Z$s.name]){P2J=s4E["_sumV " + Z$s.name];}}for(var w4h=Z$s.startFrom;w4h < h$a.length;w4h++){if(h$a[w4h].High == h$a[w4h].Low){h$a[w4h]["_MFV " + Z$s.name]=0;}else {W2p.j7J(118);var k7D=W2p.c0C(16,2,16,388,13);h$a[w4h]["_MFV " + Z$s.name]=h$a[w4h].Volume * (k7D * h$a[w4h].Close - h$a[w4h].High - h$a[w4h].Low) / (h$a[w4h].High - h$a[w4h].Low);}G7H+=h$a[w4h]["_MFV " + Z$s.name];P2J+=h$a[w4h].Volume;if(w4h > Z$s.days - ("1" ^ 0)){G7H-=h$a[w4h - Z$s.days]["_MFV " + Z$s.name];P2J-=h$a[w4h - Z$s.days].Volume;if(P2J){W2p.j7J(7);h$a[w4h]["Result " + Z$s.name]=W2p.c0C(G7H,P2J);}}h$a[w4h]["_sumMF " + Z$s.name]=G7H;h$a[w4h]["_sumV " + Z$s.name]=P2J;}};S95.Studies.calculateChaikinVolatility=function(m5e,Y1R){f3BGj.T$X();var x5H,A27,B_m,i56;x5H=Y1R.chart.scrubbed;if(x5H.length < Y1R.days){Y1R.error=!![];return;}for(A27=Y1R.startFrom;A27 < x5H.length;A27++){B_m="_Hig";B_m+="h-Lo";B_m+="w ";if(x5H[A27].futureTick)break;x5H[A27][B_m + Y1R.name]=x5H[A27].High - x5H[A27].Low;}S95.Studies.MA(Y1R.inputs["Moving Average Type"],Y1R.days,"_High-Low " + Y1R.name,0,"_MA",m5e,Y1R);i56=Y1R.inputs["Rate Of Change"];if(!i56){i56=Y1R.days;}for(A27=Math.max(Y1R.startFrom,i56);A27 < x5H.length;A27++){if(!x5H[A27 - i56]["_MA " + Y1R.name])continue;if(x5H[A27].futureTick)break;f3BGj.j7J(14);var e6W=f3BGj.c0C(3,2);x5H[A27]["Result " + Y1R.name]=+"100" * (x5H[A27]["_MA " + Y1R.name] / x5H[A27 - i56]["_MA " + Y1R.name] - e6W);}};S95.Studies.studyLibrary=S95.extend(S95.Studies.studyLibrary,{"Chaikin MF":{name:"Chaikin Money Flow",calculateFN:S95.Studies.calculateChaikinMoneyFlow,inputs:{Period:20}},"Chaikin Vol":{name:"Chaikin Volatility",calculateFN:S95.Studies.calculateChaikinVolatility,inputs:{Period:14,"Rate Of Change":2,"Moving Average Type":"ma"}}});}};W3=l_4=>{var d0F,a3Z,h0F,y$N,z7u;d0F="u";d0F+="nd";d0F+="e";d0F+="fined";a3Z=typeof _CIQ !== d0F?_CIQ:l_4.CIQ;if(!a3Z.Studies){h0F="chande feature requires first activating studie";h0F+="s f";h0F+="eature.";console.error(h0F);}else {y$N="a";y$N+="uto";z7u="Vari";z7u+="able";a3Z.Studies.prettify.variable="vma";a3Z.Studies.movingAverage.conversions.vma="variable";a3Z.Studies.movingAverage.translations.variable="Variable";a3Z.Studies.movingAverage.typeMap.vma="Variable";a3Z.Studies.movingAverage.typeMap.variable=z7u;a3Z.Studies.calculateChandeForecast=function(g1X,K4_){var Z9Y=f3BGj;var q99,X6F,T4u,X52,P7l,F_e;Z9Y.T$X();q99="M";q99+="A";X6F="ti";X6F+="me series";T4u=K4_.chart.scrubbed;if(T4u.length < K4_.days + 1){K4_.error=!!1;return;}X52=K4_.inputs.Field;if(!X52 || X52 == "field"){X52="Close";}a3Z.Studies.MA(X6F,K4_.days,X52,0,q99,g1X,K4_);for(var s7A=Math.max(1,K4_.startFrom);s7A < T4u.length;s7A++){P7l="ob";P7l+="j";P7l+="e";P7l+="ct";F_e=T4u[s7A][X52];if(F_e && typeof F_e == P7l){F_e=F_e[K4_.subField];}Z9Y.j7J(82);var X1b=Z9Y.a$j(4,2,94);Z9Y.j7J(17);var N8M=Z9Y.c0C(120,6,18,13);T4u[s7A]["Result " + K4_.name]=X1b * (N8M - T4u[s7A]["MA " + K4_.name] / F_e);}};a3Z.Studies.calculateChandeMomentum=function(t1_,N_y){var a6m=f3BGj;var e3p,Q$E,d2p,r8f,U4q,f47,E77,B$M,m9s,y5v,R1U,f3a;e3p="Cl";e3p+="ose";Q$E=N_y.name;for(var Z2d in N_y.outputs){a6m.N_M(82);Q$E=a6m.a$j(Q$E,792 >= (3363,6080)?(0x26cd,"k"):(5956,537.74) == 24.91?(829,7898) !== 691.95?(!0,+"0x21d7"):569.94:" ",Z2d);}d2p=N_y.chart.scrubbed;if(d2p.length < N_y.days + 1){N_y.error=!!"1";return;}r8f=N_y.inputs.Field;if(!r8f || r8f == "field"){r8f=e3p;}U4q=0;a6m.T$X();a6m.j7J(31);f47=a6m.c0C("0",64);E77=[];for(var W9F=N_y.startFrom - N_y.days + ("1" - 0);W9F < d2p.length;W9F++){B$M="ob";B$M+="j";B$M+="e";B$M+="ct";if(W9F < +"1")continue;m9s=d2p[W9F][r8f];a6m.N_M(14);y5v=d2p[a6m.c0C(W9F,1)][r8f];if(m9s && typeof m9s == B$M){m9s=m9s.Close;}if(y5v && typeof y5v == "object"){y5v=y5v.Close;}if(y5v === undefined)continue;a6m.N_M(14);R1U=a6m.a$j(m9s,y5v);E77.push(R1U);U4q+=R1U;f47+=Math.abs(R1U);if(E77.length == N_y.days){a6m.N_M(111);d2p[W9F][Q$E]=a6m.c0C(U4q,f47,100);f3a=E77.shift();U4q-=f3a;f47-=Math.abs(f3a);}}};a3Z.Studies.calculateMovingAverageVariable=function(I1C,I9O){var O5Y=f3BGj;var X3c,q2Z,C7u,H7l,f9v,l0h,y4l,m24,X5z,Y2N,N77,F1N,F7J,v6p,d_Q,x9E,q9Q,j7A,c2Q,p0g,X5X;X3c=I9O.inputs.Type;q2Z=I9O.chart.scrubbed;O5Y.N_M(0);var F$O=O5Y.a$j(139,3,36,4);O5Y.j7J(119);var W2W=O5Y.a$j(12,79,18,13);C7u=F$O / (I9O.days + W2W);H7l=null;f9v=I9O.name;for(var D96 in I9O.outputs){O5Y.j7J(82);f9v=O5Y.a$j(f9v,(5380,9960) >= (+"375",5880)?("8960" | 0) == 4935?3690 == 2520?(!({}),!({})):(0x207f,!({})):" ":0x13c3,D96);}l0h=I9O.inputs.Field;if(!l0h || l0h == "field"){l0h="Close";}I9O.cmo=new a3Z.Studies.StudyDescriptor(I9O.name,"cmo",I9O.panel);I9O.cmo.chart=I9O.chart;I9O.cmo.days=9;I9O.cmo.inputs={Field:l0h};I9O.cmo.startFrom=I9O.startFrom;I9O.cmo.outputs={_CMO:null};a3Z.Studies.calculateChandeMomentum(I1C,I9O.cmo);y4l=parseInt(I9O.inputs.Offset,10);O5Y.T$X();if(isNaN(y4l)){y4l=0;}N77=I9O.startFrom;F1N=y4l;for(m24=I9O.startFrom - 1;m24 >= 0;m24--){X5z=q2Z[m24][f9v];if(!X5z && X5z !== 0)continue;if(H7l === null){H7l=X5z;}if(F1N <= 0)break;F1N--;N77=m24;}if(H7l === null){H7l=N77=0;}F7J=[];for(m24=N77;m24 < q2Z.length;m24++){v6p="_";v6p+="C";v6p+="MO ";d_Q="_CM";d_Q+="O ";x9E="ob";x9E+="ject";q9Q=q2Z[m24];X5z=q9Q[l0h];if(X5z && typeof X5z == x9E){X5z=X5z[I9O.subField];}j7A=m24 + y4l >= 0 && m24 + y4l < q2Z.length;c2Q=j7A?q2Z[m24 + y4l]:null;if(!X5z && X5z !== 0){if(c2Q){c2Q[f9v]=null;}else if(m24 + y4l >= q2Z.length){Y2N={};Y2N[f9v]=null;F7J.push(Y2N);}continue;}if(!q9Q[d_Q + I9O.name] && q9Q["_CMO " + I9O.name] !== 0)continue;O5Y.N_M(120);var y64=O5Y.a$j(12,40,12,6);p0g=Math.abs(q9Q[v6p + I9O.name]) / y64;O5Y.j7J(121);X5X=O5Y.a$j(p0g,C7u,X5z,C7u,p0g,1,H7l);H7l=X5X;if(m24 < I9O.days){X5X=null;}if(c2Q){c2Q[f9v]=X5X;}else if(m24 + y4l >= q2Z.length){Y2N={};Y2N[f9v]=X5X;F7J.push(Y2N);}}I9O.appendFutureTicks(I1C,F7J);};a3Z.Studies.studyLibrary=a3Z.extend(a3Z.Studies.studyLibrary,{"Chande Fcst":{name:"Chande Forecast Oscillator",calculateFN:a3Z.Studies.calculateChandeForecast,inputs:{Period:+"14",Field:"field"}},"Chande Mtm":{name:"Chande Momentum Oscillator",calculateFN:a3Z.Studies.calculateChandeMomentum,inputs:{Period:9},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:50,studyOverBoughtColor:y$N,studyOverSoldValue:-50,studyOverSoldColor:"auto"}}}});}};W9=I8_=>{var n0$,L6O;n0$=typeof _CIQ !== "undefined"?_CIQ:I8_.CIQ;if(!n0$.Studies){L6O="choppi";L6O+="ness feature requ";L6O+="ires first activating studies feature.";console.error(L6O);}else {n0$.Studies.calculateChoppiness=function(M_2,e26){var y$o=f3BGj;var d_5,h98,w93,P6N,t8J;function f5m(L5_,S8B){var Q81,L0z;y$o.N_M(27);var B6G=y$o.a$j(17,18);Q81=Number.MAX_VALUE * B6G;L0z=Number.MAX_VALUE;for(var D9e=S8B - L5_ + 1;D9e <= S8B;D9e++){if(D9e < 0)continue;Q81=Math.max(Q81,d_5[D9e].High);L0z=Math.min(L0z,d_5[D9e].Low);}return [L0z,Q81];}n0$.Studies.calculateStudyATR(M_2,e26);d_5=e26.chart.scrubbed;if(d_5.length < e26.days + 1){e26.error=!!({});return;}for(var R1v=Math.max(e26.startFrom,e26.days);R1v < d_5.length;R1v++){h98=d_5[R1v];if(!h98)continue;if(h98.futureTick)break;w93=f5m(e26.days,R1v);if(h98["Sum True Range " + e26.name]){P6N="Sum Tru";P6N+="e Rang";P6N+="e ";t8J="Resul";t8J+="t ";y$o.N_M(3);var X2_=y$o.c0C(1414,14,1500);y$o.j7J(122);var W0s=y$o.c0C(0,0,4,4);h98[t8J + e26.name]=X2_ * Math.log(h98[P6N + e26.name] / Math.max(0.000001,w93[W0s] - w93[0])) / Math.log(e26.days);}else if(!isNaN(h98)){h98["Result " + e26.name]=0;}}};n0$.Studies.studyLibrary=n0$.extend(n0$.Studies.studyLibrary,{Choppiness:{name:"Choppiness Index",calculateFN:n0$.Studies.calculateChoppiness,centerline:50,parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:61.8,studyOverBoughtColor:"auto",studyOverSoldValue:38.2,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:"50" | 18,step:"0.1"},studyOverSoldValue:{max:50,step:"0.1"}}}});}};C5=u8a=>{var t6b=f3BGj;var D7D,P_y,E7r,u8t;D7D=typeof _CIQ !== "undefined"?_CIQ:u8a.CIQ;t6b.T$X();if(!D7D.Studies){console.error("comparisonStudies feature requires first activating studies feature.");}else if(!D7D.Studies.initPriceRelative){console.error("comparisonStudies feature requires first activating priceRelative feature.");}else {P_y="S";P_y+="P";P_y+="Y";E7r="S";E7r+="P";E7r+="Y";u8t="-1 to ";u8t+="1";D7D.Studies.calculateCorrelationCoefficient=function(g3d,N4Y){var N_q,n$f,H4t,r80,F_1,m8h,y9c,O1j,h0S,J_H,h$s,I5e,i9b,n8M,i6k,E4j,V0d,m8M;N_q=N4Y.chart.scrubbed;t6b.T$X();n$f=N4Y.days;if(N_q.length < n$f + "1" * 1){N4Y.error=!![];return;}N4Y.compare=N4Y.inputs["Compare To"];if(!N4Y.compare){N4Y.compare=[];N4Y.outputs={};N4Y.outputMap={};for(var K5x in g3d.chart.series){H4t=g3d.chart.series[K5x];if(H4t.parameters.color){r80="Resul";r80+="t";r80+=" ";N4Y.compare.push(H4t.display);N4Y.outputs[r80 + H4t.display]=H4t.parameters.color;t6b.j7J(123);var t3o=t6b.c0C(1,11,1,4084,27);t6b.j7J(14);var Y7J=t6b.a$j(18,17);t6b.N_M(93);var k6x=t6b.a$j(5,4,91,0,14);t6b.j7J(1);var i8r=t6b.c0C(841,5046);t6b.N_M(124);var R0T=t6b.c0C(1430,11,1536,16,17);t6b.N_M(125);var Z4r=t6b.c0C(5,20,19,4,3938);N4Y.outputMap["Result " + H4t.display + ((t3o,"17.03" * Y7J) <= (+"5270","5429" * k6x)?" ":i8r < (+"8040","6590" << R0T)?Z4r:("p",+"3.12e+3")) + N4Y.name]="Result " + H4t.display;}}}else {N4Y.compare=[N4Y.compare];}if(!N4Y.compare.length){N4Y.error="Correlation Coefficient requires at least one comparison symbol";return;}for(var V8X=0;V8X < N4Y.compare.length;V8X++){t6b.j7J(29);F_1=t6b.a$j(0,"0");t6b.j7J(14);m8h=t6b.a$j("0",0);y9c=0;t6b.j7J(5);O1j=t6b.c0C(1,"0");h0S=0;J_H=N4Y.compare[V8X];h$s=+"0";for(var R53=N4Y.startFrom - n$f;R53 < N_q.length;R53++){I5e="_";I5e+="t";I5e+="emp";I5e+="s ";if(!N_q[R53])continue;i9b=N_q[R53][J_H];if(i9b && typeof i9b == "object"){i9b=i9b.Close;}if(!i9b && i9b !== 0){if(R53 > 0 && N_q[R53 - ("1" << 32)] && N_q[R53 - ("1" - 0)]["_temps " + N4Y.name] && N_q[R53 - 1]["_temps " + N4Y.name].c){i9b=N_q[R53 - 1]["_temps " + N4Y.name].c;}else {t6b.j7J(14);i9b=t6b.a$j("0",0);}}if(i9b && typeof i9b == "object"){i9b=i9b.Close;}N_q[R53]["_temps " + N4Y.name]={};F_1+=N_q[R53]["_temps " + N4Y.name].b=N_q[R53].Close;m8h+=N_q[R53]["_temps " + N4Y.name].c=i9b;y9c+=N_q[R53]["_temps " + N4Y.name].b2=Math.pow(N_q[R53].Close,"2" - 0);t6b.j7J(46);O1j+=N_q[R53][I5e + N4Y.name].c2=Math.pow(i9b,t6b.a$j("2",0));h0S+=N_q[R53]["_temps " + N4Y.name].bc=N_q[R53].Close * i9b;if(h$s >= n$f){n8M="_";n8M+="t";n8M+="emps ";F_1-=N_q[R53 - n$f]["_temps " + N4Y.name].b;m8h-=N_q[R53 - n$f]["_temps " + N4Y.name].c;y9c-=N_q[R53 - n$f][n8M + N4Y.name].b2;O1j-=N_q[R53 - n$f]["_temps " + N4Y.name].c2;h0S-=N_q[R53 - n$f]["_temps " + N4Y.name].bc;t6b.N_M(3);var W12=t6b.c0C(8,10,0);i6k=y9c / n$f - Math.pow(F_1 / n$f,W12);t6b.j7J(66);var S87=t6b.a$j(15,4,20,37);E4j=O1j / n$f - Math.pow(m8h / n$f,S87);t6b.N_M(34);var a_r=t6b.a$j(9,1,7);V0d=h0S / n$f - F_1 * m8h / Math.pow(n$f,a_r);m8M=V0d / Math.sqrt(i6k * E4j);N_q[R53]["Result " + J_H + " " + N4Y.name]=m8M;}h$s++;}}};D7D.Studies.calculatePerformance=function(Y67,e51){var p$L,p0A,C_A,X1r;p$L="Co";p$L+="mparis";p$L+="on Sy";p$L+="mbol";p0A=e51.chart.scrubbed;C_A=e51.inputs["Comparison Symbol"].toUpperCase();if(!C_A){C_A=e51.study.inputs[p$L];}if(!e51.days){e51.days=e51.study.inputs.Period;}if(p0A.length < e51.days + 1){e51.error=!!"1";return;}t6b.T$X();D7D.Studies.MA("ma",e51.days,"Close",0,"_MA Base",Y67,e51);D7D.Studies.MA("ma",e51.days,C_A,+"0","_MA Comp",Y67,e51);for(var w4M=e51.startFrom;w4M < p0A.length;w4M++){X1r=p0A[w4M][C_A];if(X1r && (X1r.Close || X1r.Close === 0)){X1r=X1r.Close;}p0A[w4M]["Result " + e51.name]=p0A[w4M].Close / X1r * (p0A[w4M]["_MA Comp " + e51.name] / p0A[w4M]["_MA Base " + e51.name]);}};D7D.Studies.calculateBeta=function(r_C,g1g){var U$f,R0M,j7U,j0I,z2d,N$C,m$Y,r4o,C18,S39,x4u;U$f="m";U$f+="a";R0M="m";R0M+="a";j7U="Compa";t6b.T$X();j7U+="rison Sym";j7U+="bol";j0I="Compariso";j0I+="n Sym";j0I+="bol";z2d=g1g.chart.scrubbed;N$C=g1g.inputs[j0I].toUpperCase();if(!N$C){N$C=g1g.study.inputs[j7U];}if(!g1g.days){g1g.days=g1g.study.inputs.Period;}if(z2d.length < g1g.days + 1){g1g.error=!!({});return;}for(var g42=Math.max(g1g.startFrom,1);g42 < z2d.length;g42++){t6b.N_M(102);var t4x=t6b.c0C(12,13,6,18);t6b.j7J(27);var y4S=t6b.a$j(6,5);z2d[g42]["_BaseChange " + g1g.name]=z2d[g42].Close / z2d[g42 - t4x].Close - y4S;m$Y=z2d[g42][N$C];if(m$Y && (m$Y.Close || m$Y.Close === "0" >> 0)){m$Y=m$Y.Close;}t6b.j7J(14);r4o=z2d[t6b.a$j(g42,1)][N$C];if(r4o && (r4o.Close || r4o.Close === 0)){r4o=r4o.Close;}t6b.j7J(35);z2d[g42]["_CompChange " + g1g.name]=t6b.a$j(1,m$Y,r4o);}D7D.Studies.MA(R0M,g1g.days,"_BaseChange " + g1g.name,0,"_MA Base",r_C,g1g);D7D.Studies.MA(U$f,g1g.days,"_CompChange " + g1g.name,+"0","_MA Comp",r_C,g1g);for(g42=Math.max(g1g.startFrom,g1g.days);g42 < z2d.length;g42++){C18="_CompChange";C18+=" ";S39="_";S39+="MA Base ";z2d[g42]["_COVARn " + g1g.name]=(z2d[g42]["_BaseChange " + g1g.name] - z2d[g42][S39 + g1g.name]) * (z2d[g42][C18 + g1g.name] - z2d[g42]["_MA Comp " + g1g.name]);z2d[g42]["_VARn " + g1g.name]=Math.pow(z2d[g42]["_CompChange " + g1g.name] - z2d[g42]["_MA Comp " + g1g.name],2);}D7D.Studies.MA("ma",g1g.days,"_COVARn " + g1g.name,+"0","_COVAR",r_C,g1g);D7D.Studies.MA("ma",g1g.days,"_VARn " + g1g.name,0,"_VAR",r_C,g1g);for(g42=Math.max(g1g.startFrom,g1g.days * ("2" << 0) - 1);g42 < z2d.length;g42++){x4u="_VAR";x4u+=" ";z2d[g42]["Result " + g1g.name]=z2d[g42]["_COVAR " + g1g.name] / z2d[g42][x4u + g1g.name];}};D7D.Studies.studyLibrary=D7D.extend(D7D.Studies.studyLibrary,{correl:{name:"Correlation Coefficient",range:u8t,calculateFN:D7D.Studies.calculateCorrelationCoefficient,outputs:{}},"Perf Idx":{name:"Performance Index",centerline:1,initializeFN:D7D.Studies.initPriceRelative,seriesFN:D7D.Studies.displayVsComparisonSymbol,calculateFN:D7D.Studies.calculatePerformance,inputs:{Period:"120" ^ 0,"Comparison Symbol":E7r},outputs:{Result:"auto",Gain:"#00DD00",Loss:"#FF0000"},deferUpdate:!!1},Beta:{name:"Beta",centerline:1,initializeFN:D7D.Studies.initPriceRelative,seriesFN:D7D.Studies.displayVsComparisonSymbol,calculateFN:D7D.Studies.calculateBeta,inputs:{Period:20,"Comparison Symbol":P_y},deferUpdate:!0}});}};b4=U05=>{var M8e=f3BGj;var u$t,n_W,d6B,a0I,Z_P,Y7r,L4F,B4$;u$t="und";u$t+="efi";u$t+="n";u$t+="ed";M8e.f3X();n_W=typeof _CIQ !== u$t?_CIQ:U05.CIQ;if(!n_W.Studies){d6B="coppock feature requires first activatin";d6B+="g";d6B+=" studies feature.";console.error(d6B);}else {a0I="f";a0I+="i";a0I+="e";a0I+="ld";n_W.Studies.calculateCoppock=function(s1H,j9L){var s8b,R7A,P6x,K1Z,e$l,P1D,C0P,g4o,S1n,C39,C_s;s8b="_";s8b+="Sum";s8b+=" ";R7A="wei";R7A+="g";R7A+="h";R7A+="ted";P6x="Short ";P6x+="RoC";K1Z="L";K1Z+="ong R";K1Z+="oC";e$l=j9L.chart.scrubbed;P1D=j9L.inputs.Field;if(!P1D || P1D == "field"){P1D="Close";}C0P=parseInt(j9L.inputs[K1Z],"10" ^ 0);if(!C0P){C0P=14;}g4o=parseInt(j9L.inputs[P6x],10);if(!g4o){g4o=11;}S1n=j9L.days;if(!S1n){S1n=10;}if(C0P < g4o){return;}if(e$l.length < Math.max(g4o,C0P,S1n) + ("1" >> 64)){j9L.error=!![];return;}for(var x4y=Math.max(j9L.startFrom,C0P);x4y < e$l.length;x4y++){M8e.N_M(14);C39=e$l[M8e.a$j(x4y,g4o)][P1D];M8e.j7J(14);C_s=e$l[M8e.c0C(x4y,C0P)][P1D];if(C39 && C_s){M8e.j7J(118);var x4F=M8e.a$j(18,4,6,20,6);M8e.N_M(126);var t5X=M8e.a$j(19,8,2,245,9);e$l[x4y]["_Sum " + j9L.name]=x4F * (e$l[x4y][P1D] / C39 + e$l[x4y][P1D] / C_s - t5X);}}n_W.Studies.MA(R7A,S1n,s8b + j9L.name,0,"Result",s1H,j9L);};M8e.j7J(5);Z_P=M8e.c0C(1,"251709666");Y7r=1207877467;L4F=2;for(var R8B=1;M8e.S9Y(R8B.toString(),R8B.toString().length,"55926" ^ 0) !== Z_P;R8B++){B4$="Lo";B4$+="ng R";B4$+="oC";n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Long RoC",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:64,Field:B4$,"Short RoC":73,"Long RoC":21}}});L4F+=2;}if(M8e.S9Y(L4F.toString(),L4F.toString().length,+"70280") !== Y7r){n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Long RoC",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:64,Field:"Long RoC","Short RoC":73,"Long RoC":21}}});}n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Coppock Curve",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:10,Field:a0I,"Short RoC":11,"Long RoC":14}}});}};f3=J4w=>{var K0x,W37,U1y,a2$;K0x=typeof _CIQ !== "undefined"?_CIQ:J4w.CIQ;if(!K0x.Studies){console.error("darvasBox feature requires first activating studies feature.");}else {W37="a";W37+="u";W37+="t";W37+="o";U1y="cl";U1y+="ose";a2$="D";a2$+="a";a2$+="r";a2$+="vas Box";K0x.Studies.calculateDarvas=function(a6y,t2p){var y8Y=f3BGj;var K5W,J0I,I9D,t4F,j5F,k1K,o$X,I6z,S8m,f2r,b_H,d4E,m6d,T0T,u9t,g1V,l$Z,v3z,a3q,R$T,Y0C,o5s,H$f,j$t,i5d,y8t,U6c,O_d,s_a,y6Y,H$Q,N5y,V4_,q2T;K5W="A";K5W+="D";K5W+="V";J0I="L";J0I+="o";J0I+="s";J0I+="s";I9D="Level Off";I9D+="set";t4F="V";t4F+="ol";t4F+="ume Sp";t4F+="ike";j5F=t2p.chart.scrubbed;k1K=0;o$X=parseInt(t2p.inputs["ATH Lookback Period"],10);if(t2p.inputs[t4F]){I6z="V";I6z+="olume";K0x.Studies.MA("simple",o$X,I6z,0,"ADV",a6y,t2p);}y8Y.N_M(16);var i7l=y8Y.c0C(7,20,0,17);S8m=parseFloat(t2p.inputs["Volume % of Avg"]) / ("100" | i7l);f2r="none";b_H={};d4E=null;m6d=null;T0T=null;u9t=parseFloat(t2p.inputs[I9D]);g1V=!({});if(g1V){console.log("*****************");}v3z={};["Darvas","Ghost","Profit",J0I,"ATH",K5W,"Spike"].forEach(function(q1K){v3z[q1K]=q1K + " " + t2p.name;});for(l$Z=t2p.startFrom - ("1" ^ 0);l$Z > 0;l$Z--){a3q=j5F[l$Z];if(a3q[v3z.Darvas] || a3q[v3z.Ghost]){for(var I1w in v3z){a3q[I1w]=null;}}else {k1K=a3q[v3z.ATH] || 0;m6d=a3q[v3z.Profit];T0T=a3q[v3z.Loss];break;}}for(l$Z;l$Z < j5F.length;l$Z++){R$T=j5F[l$Z];if(!R$T)continue;if(parseFloat(t2p.inputs["Price Minimum"]) <= j5F[k1K].Close){Y0C="darva";Y0C+="s";o5s="n";o5s+="o";o5s+="n";o5s+="e";H$f="high";H$f+="/low";if(d4E && (!d4E.End || l$Z == d4E.End + 1)){if(j5F[l$Z - ("1" >> 0)].Close > b_H.High){b_H={State:1,High:2 * b_H.High - b_H.Low,Low:b_H.High,Start:l$Z,End:2 * b_H.End - b_H.Start + 1};}else {d4E=null;;}if(d4E){R$T[v3z.Ghost]=K0x.clone(b_H);if(g1V){console.log("Ghost begin:" + R$T.DT);}b_H.State=0;if(j5F[b_H.End]){j5F[b_H.End][v3z.Ghost]=K0x.clone(b_H);if(g1V){console.log("Ghost end:" + j5F[b_H.End].DT);}}d4E={Start:b_H.Start,End:b_H.End};m6d=b_H.High + u9t;if(!T0T || T0T < b_H.Low - u9t){T0T=b_H.Low - u9t;}}}R$T[v3z.Profit]=m6d;R$T[v3z.Loss]=T0T;if(R$T.Close >= m6d){m6d=null;}else if(t2p.inputs["Exit Field"] == H$f && R$T.High >= m6d){m6d=null;}if(f2r == o5s){if(l$Z == k1K + 3){if(!j5F[k1K + 2][v3z.Darvas] && !j5F[k1K + ("1" - 0)][v3z.Darvas] && !j5F[k1K][v3z.Darvas] && j5F[k1K].High > R$T.High){f2r="high";;}}}if(f2r == "high"){if(R$T.High > j5F[k1K].High){j$t="n";j$t+="o";j$t+="n";j$t+="e";f2r=j$t;}else if(j5F[l$Z - 3].Low < j5F[l$Z - 2].Low && j5F[l$Z - 3].Low < j5F[l$Z - +"1"].Low && j5F[l$Z - ("3" << 64)].Low < R$T.Low){b_H={State:1,High:j5F[k1K].High,Low:j5F[l$Z - 3].Low,Start:k1K};j5F[k1K][v3z.Darvas]=K0x.clone(b_H);f2r="darvas";if(g1V){console.log("Darvas begin:" + j5F[k1K].DT);}if(g1V){console.log("Darvas established:" + R$T.DT);}if(d4E){if(d4E.End > l$Z && j5F[d4E.Start]){R$T[v3z.Ghost]=K0x.clone(j5F[d4E.Start][v3z.Ghost]);R$T[v3z.Ghost].End=l$Z;if(j5F[d4E.End]){delete j5F[d4E.End][v3z.Ghost];if(g1V){console.log("Ghost End removed:" + j5F[d4E.End].DT);}}}R$T[v3z.Ghost].State=0;j5F[d4E.Start][v3z.Ghost].End=l$Z;if(g1V){console.log("Ghost end:" + R$T.DT);}d4E=null;}m6d=b_H.High + u9t;if(!T0T || T0T < b_H.Low - u9t){T0T=b_H.Low - u9t;}}}if(f2r == Y0C){i5d="n";i5d+="o";i5d+="ne";y8t="n";y8t+="one";U6c="n";U6c+="o";U6c+="ne";O_d="Exit F";O_d+="iel";O_d+="d";s_a="non";s_a+="e";y6Y="hi";y6Y+="gh";y6Y+="/low";if(R$T.Close > b_H.High){d4E={};}else if(t2p.inputs["Exit Field"] == y6Y && R$T.High > b_H.High){d4E={};}else if(R$T.Close < b_H.Low){f2r=s_a;}else if(t2p.inputs[O_d] == "high/low" && R$T.Low < b_H.Low){f2r=U6c;}if(d4E){f2r="none";}else if(f2r == y8t){m6d=null;T0T=null;}if(!t2p.inputs["Ghost Boxes"]){d4E=null;}if(f2r == i5d){for(var P0r=b_H.Start + "1" * 1;P0r < l$Z;P0r++){j5F[P0r][v3z.Darvas]=K0x.clone(b_H);}b_H.State=0;b_H.End=l$Z;R$T[v3z.Darvas]=K0x.clone(b_H);if(g1V){console.log("Darvas end:" + R$T.DT);}R$T[v3z.ATH]=k1K;continue;}}if(T0T){H$Q="E";H$Q+="xi";H$Q+="t";H$Q+=" Field";if(R$T.Close < b_H.Low || t2p.inputs[H$Q] == "high/low" && R$T.Low < b_H.Low){N5y="Ex";N5y+="it F";N5y+="i";N5y+="eld";if(f2r == "darvas"){f2r="none";}if(R$T.Close < T0T || t2p.inputs[N5y] == "high/low" && R$T.Low < T0T){m6d=null;T0T=null;}if(d4E){if(d4E.End > l$Z && j5F[d4E.Start]){R$T[v3z.Ghost]=K0x.clone(j5F[d4E.Start][v3z.Ghost]);R$T[v3z.Ghost].End=l$Z;if(j5F[d4E.End]){V4_="Gh";V4_+="ost End removed:";delete j5F[d4E.End][v3z.Ghost];if(g1V){console.log(V4_ + j5F[d4E.End].DT);}}}R$T[v3z.Ghost].State=0;j5F[d4E.Start][v3z.Ghost].End=l$Z;if(g1V){console.log("Ghost end:" + R$T.DT);}d4E=null;}}}}if(R$T.High >= j5F[k1K].High){q2T="All T";q2T+="i";q2T+="me ";q2T+="High:";k1K=l$Z;if(g1V){console.log(q2T + R$T.DT);}}if(l$Z < 3 || R$T.High >= j5F[l$Z - 1].High && R$T.High >= j5F[l$Z - ("2" ^ 0)].High && R$T.High >= j5F[l$Z - ("3" | 2)].High){if(l$Z - k1K >= o$X){k1K=l$Z;for(var P6W=0;P6W < o$X;P6W++){if(l$Z - P6W < +"0")break;if(j5F[l$Z - P6W].High > j5F[k1K].High){y8Y.j7J(14);k1K=y8Y.a$j(l$Z,P6W);}}if(g1V){console.log("All Time High:" + R$T.DT);}}}if(t2p.inputs["Volume Spike"] && l$Z > o$X && l$Z == k1K){if(R$T[v3z.ADV] * S8m < R$T.Volume){R$T[v3z.Spike]=1;if(g1V){console.log("Volume Spike:" + R$T.DT);}}}R$T[v3z.ATH]=k1K;}};K0x.Studies.displayDarvas=function(U87,g1B,U4l){var p2p=f3BGj;var D0E,k_n,L0O,g8V,H30,t3A,u4S,g2e,y1n,B9L,M_i,Q2F,B4w,w11,X0l,s_0,v7r,b0y,y4k,A4i,E8s,T0Z,q4J,N8c,b4V,O8g,U43,p8T,s9g,R7W,l_x,O3a,S8f,g5u,Z02,Q4v,q9X;D0E="Stop";D0E+=" L";D0E+="ev";D0E+="els";k_n="a";k_n+="uto";L0O=K0x.Studies.determineColor(g1B.outputs.Levels);if(!L0O || L0O == "auto" || K0x.isTransparent(L0O)){L0O=U87.defaultColor;}g8V=K0x.Studies.determineColor(g1B.outputs.Darvas);if(!g8V || g8V == "auto" || K0x.isTransparent(g8V)){g8V=U87.defaultColor;}H30=K0x.Studies.determineColor(g1B.outputs.Ghost);if(!H30 || H30 == k_n || K0x.isTransparent(H30)){H30=U87.defaultColor;}t3A=U87.panels[g1B.panel];u4S=g1B.getContext(U87);p2p.N_M(1);var n58=p2p.c0C(24,72);Q2F=U87.layout.candleWidth - ("2" << n58);if(Q2F < 2){Q2F=1;}U87.startClip(g1B.panel);if(g1B.inputs[D0E]){if(u4S.setLineDash){u4S.setLineDash([2,2]);}u4S.lineWidth=2;u4S.strokeStyle=L0O;u4S.beginPath();for(g2e=0;g2e < U4l.length;g2e++){B4w="L";B4w+="o";B4w+="s";B4w+="s ";y1n=U4l[g2e];p2p.j7J(14);w11=U4l[p2p.a$j(g2e,1)];if(!y1n)continue;M_i=y1n["Loss " + g1B.name]?Math.floor(U87.pixelFromPrice(y1n[B4w + g1B.name],t3A)):null;X0l=w11 && w11["Loss " + g1B.name]?Math.floor(U87.pixelFromPrice(w11["Loss " + g1B.name],t3A)):null;if(M_i){if(y1n.candleWidth){Q2F=Math.floor(Math.max(1,y1n.candleWidth));}s_0=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / 2);v7r=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / +"2");if(X0l && X0l >= M_i){u4S.lineTo(v7r,M_i);}else if(g2e === 0){u4S.moveTo(U87.chart.left,M_i);}else {u4S.moveTo(v7r,M_i);}u4S.lineTo(s_0,M_i);}}u4S.stroke();if(u4S.setLineDash){u4S.setLineDash([]);}u4S.lineWidth=1;}b0y=-10;A4i=+"0";T0Z=-10;N8c=0;O8g=!!0;U43=!"1";p2p.N_M(61);var M7z=p2p.a$j(6203,1,17);p2p.j7J(14);var u_j=p2p.c0C(157930,148640);p2p.j7J(15);var b6Z=p2p.a$j(3941,25,6);p2p.N_M(9);var Z8M=p2p.c0C(5544,17,330);p2p.N_M(82);var E3u=p2p.a$j(140,17,23);p2p.j7J(61);var L13=p2p.a$j(10290,10290,2057);p8T=u4S.measureText((755.12,"9731" - 0) > M7z?"\u25B2":u_j < (b6Z,"9026" | Z8M)?(E3u,L13):"P").width / ("2" ^ 0);s9g=0;for(g2e=0;g2e < U4l.length;g2e++){R7W="Da";R7W+="r";R7W+="vas";R7W+=" ";if(!U4l[g2e])continue;if(U4l[g2e].Close || U4l[g2e].Close === 0){s9g=g2e;}if(U4l[g2e]["Spike " + g1B.name]){u4S.fillStyle=g8V;u4S.textBaseline="bottom";l_x=U87.pixelFromPrice(U4l[g2e].High,U87.chart.panel);u4S.fillText(+"4630" === 534.99?(798.2,977.86) == (5535,2620)?(0x1b1f,0x410):564 <= (3088,382)?0x18f3:"X":"\u25BC",U87.pixelFromBar(g2e) - p8T,l_x - 5);;}if(U4l[g2e].candleWidth){Q2F=Math.floor(Math.max(1,U4l[g2e].candleWidth));}if(U4l[g2e][R7W + g1B.name]){y1n=U4l[g2e]["Darvas " + g1B.name];if(y1n.State == 1 && !O8g){b0y=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / +"2");y4k=Math.floor(U87.pixelFromPrice(y1n.High,t3A));E8s=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - y4k;O8g=!"";}else if(y1n.State === 0){O3a="S";O3a+="t";O3a+="o";O3a+="p Levels";p2p.N_M(127);var Y3i=p2p.a$j(34,20,3,4,11);A4i=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / Y3i) - b0y;y4k=Math.floor(U87.pixelFromPrice(y1n.High,t3A));E8s=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - y4k;u4S.strokeStyle=g8V;u4S.fillStyle=g8V;if(!g1B.inputs[O3a]){u4S.strokeRect(b0y,y4k,A4i,E8s);u4S.globalAlpha=0.2;}else {u4S.globalAlpha=0.3;}u4S.fillRect(b0y,y4k,A4i,E8s);u4S.globalAlpha=1;O8g=!!"";}}if(U4l[g2e]["Ghost " + g1B.name] && g1B.inputs["Ghost Boxes"]){y1n=U4l[g2e]["Ghost " + g1B.name];if(y1n.State == 1 && !U43){T0Z=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / 2);q4J=Math.floor(U87.pixelFromPrice(y1n.High,t3A));N8c=Math.floor((y1n.End - y1n.Start + 1) * U87.layout.candleWidth + Q2F / 2);b4V=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - q4J;U43=!!({});}else if(y1n.State === 0){if(y1n.Start == y1n.End){T0Z=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / 2);}p2p.j7J(3);var C38=p2p.a$j(10,5,7);N8c=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / C38) - T0Z;q4J=Math.floor(U87.pixelFromPrice(y1n.High,t3A));b4V=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - q4J;u4S.strokeStyle=H30;u4S.fillStyle=H30;if(!g1B.inputs["Stop Levels"]){u4S.strokeRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=0.2;}else {u4S.globalAlpha=0.3;}u4S.fillRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=1;U43=![];}}}if(O8g){S8f="Stop";S8f+=" Level";S8f+="s";p2p.j7J(64);var g2L=p2p.a$j(1,8,149,11,13);A4i=Math.floor(U87.pixelFromBar(s9g,t3A.chart) + Q2F / g2L) - b0y;u4S.strokeStyle=g8V;u4S.fillStyle=g8V;if(!g1B.inputs[S8f]){u4S.beginPath();p2p.j7J(25);u4S.moveTo(p2p.c0C(2,A4i,b0y),y4k);u4S.lineTo(b0y,y4k);p2p.N_M(1);u4S.lineTo(b0y,p2p.a$j(y4k,E8s));p2p.j7J(25);u4S.lineTo(p2p.a$j(2,A4i,b0y),p2p.a$j(y4k,E8s,p2p.j7J(1)));u4S.stroke();u4S.globalAlpha=0.2;}else {u4S.globalAlpha=+"0.3";}p2p.j7J(5);u4S.fillRect(b0y,y4k,p2p.a$j(A4i,2),E8s);u4S.globalAlpha=1;}if(U43){u4S.strokeStyle=H30;u4S.fillStyle=H30;if(!g1B.inputs["Stop Levels"]){u4S.strokeRect(T0Z,q4J,N8c,b4V);p2p.j7J(14);u4S.globalAlpha=p2p.a$j("0.2",0);}else {u4S.globalAlpha=0.3;}u4S.fillRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=1;}if(O8g || U43){if(g1B.inputs["Stop Levels"]){if(u4S.setLineDash){g5u=1074516398;Z02=211878868;Q4v=2;for(var K8z=1;p2p.S9Y(K8z.toString(),K8z.toString().length,4566) !== g5u;K8z++){u4S.setLineDash([2,2]);Q4v+=2;}if(p2p.O1W(Q4v.toString(),Q4v.toString().length,47512) !== Z02){u4S.setLineDash([5,+"7"]);}}u4S.lineWidth=2;u4S.strokeStyle=L0O;q9X=Math.floor(U87.pixelFromBar(s9g - ("1" >> 0),t3A.chart) + Q2F / 2);if(B9L){u4S.beginPath();u4S.moveTo(q9X,B9L);u4S.lineTo(O8g?b0y + 2 * A4i:T0Z + N8c,B9L);u4S.stroke();}if(M_i){u4S.beginPath();u4S.moveTo(q9X,M_i);u4S.lineTo(O8g?b0y + ("2" ^ 0) * A4i:T0Z + N8c,M_i);u4S.stroke();}if(u4S.setLineDash){u4S.setLineDash([]);}u4S.lineWidth=1;}O8g=!!"";U43=!!"";}U87.endClip();};K0x.Studies.studyLibrary=K0x.extend(K0x.Studies.studyLibrary,{Darvas:{name:a2$,underlay:!![],calculateFN:K0x.Studies.calculateDarvas,seriesFN:K0x.Studies.displayDarvas,inputs:{"ATH Lookback Period":100,"Exit Field":[U1y,"high/low"],"Ghost Boxes":!![],"Stop Levels":!({}),"Level Offset":+"0.01","Price Minimum":5,"Volume Spike":!({}),"Volume % of Avg":400},outputs:{Darvas:"#5F7CB8",Ghost:"#699158",Levels:W37},customRemoval:!!1,attributes:{"Price Minimum":{min:"0.01" * 1,step:0.01},yaxisDisplayValue:{hidden:!""},panelName:{hidden:!![]},flippedEnabled:{hidden:!![]}}}});}};n8=w2F=>{var D1n,Y9z;D1n=typeof _CIQ !== "undefined"?_CIQ:w2F.CIQ;if(!D1n.Studies){console.error("detrended feature requires first activating studies feature.");}else {Y9z="m";Y9z+="a";D1n.Studies.calculateDetrendedPrice=function(o8t,Z1V){var j_j,b3G,S21,n1K,n$G,r95,W5W,y4p;j_j="f";j_j+="ie";j_j+="ld";b3G=Z1V.chart.scrubbed;if(b3G.length < Z1V.days + 1){Z1V.error=!![];return;}S21=Z1V.inputs.Field;if(!S21 || S21 == j_j){S21="Close";}n1K=Math.floor(Z1V.days / 2 + 1);D1n.Studies.MA(Z1V.inputs["Moving Average Type"],Z1V.days,S21,-n1K,"MA",o8t,Z1V);for(var u2d=Math.max(Z1V.days - n1K - 1,Z1V.startFrom - n1K);u2d < b3G.length - n1K;u2d++){n$G="R";n$G+="e";n$G+="sult";n$G+=" ";r95="M";r95+="A ";if(u2d < ("0" ^ 0))continue;W5W=b3G[u2d][S21];if(W5W && typeof W5W == "object"){W5W=W5W[Z1V.subField];}y4p=b3G[u2d][r95 + Z1V.name];if((W5W || W5W === 0) && (y4p || y4p === +"0")){f3BGj.j7J(14);b3G[u2d][n$G + Z1V.name]=f3BGj.c0C(W5W,y4p);}}};D1n.Studies.studyLibrary=D1n.extend(D1n.Studies.studyLibrary,{Detrended:{name:"Detrended Price Oscillator",calculateFN:D1n.Studies.calculateDetrendedPrice,inputs:{Period:14,Field:"field","Moving Average Type":Y9z}}});}};p9=q_f=>{var O0_=f3BGj;var Z4Y,t9E;Z4Y=typeof _CIQ !== "undefined"?_CIQ:q_f.CIQ;O0_.T$X();if(!Z4Y.Studies){console.error("disparity feature requires first activating studies feature.");}else {t9E="Di";t9E+="sparity Index";Z4Y.Studies.calculateDisparity=function(J8c,U9f){var A$$,j7p,n2T,Q$a,n15;A$$="C";A$$+="lo";A$$+="se";j7p=U9f.chart.scrubbed;if(j7p.length < U9f.days + 1){U9f.error=!!"1";return;}n2T=U9f.inputs.Field;if(!n2T || n2T == "field"){n2T=A$$;}Z4Y.Studies.MA(U9f.inputs["Moving Average Type"],U9f.days,n2T,0,"_MA",J8c,U9f);O0_.T$X();for(var S2R=Math.max(U9f.startFrom,U9f.days - 1);S2R < j7p.length;S2R++){Q$a="R";Q$a+="e";Q$a+="s";Q$a+="ult ";if(!j7p[S2R])continue;n15=j7p[S2R]["_MA " + U9f.name];if(n15){O0_.N_M(61);var G2Y=O0_.a$j(93,1,7);O0_.j7J(27);var B6g=O0_.a$j(9,8);j7p[S2R][Q$a + U9f.name]=G2Y * (j7p[S2R][n2T] / n15 - B6g);}}};Z4Y.Studies.studyLibrary=Z4Y.extend(Z4Y.Studies.studyLibrary,{Disparity:{name:t9E,calculateFN:Z4Y.Studies.calculateDisparity,inputs:{Period:14,Field:"field","Moving Average Type":"ma"}}});}};f8=M6w=>{var b7v=f3BGj;b7v.f3X();var b7h,F9Z;b7h=typeof _CIQ !== "undefined"?_CIQ:M6w.CIQ;if(!b7h.Studies){console.error("easeOfMovement feature requires first activating studies feature.");}else {F9Z="Ea";F9Z+="se of ";F9Z+="M";F9Z+="ovement";b7h.Studies.calculateEaseOfMovement=function(k$G,T$l){var h3s,f$h,Z9u,k6t,j2n,n4G;h3s=T$l.chart.scrubbed;b7v.f3X();if(h3s.length < T$l.days){T$l.error=!0;return;}for(var H93=Math.max(1,T$l.startFrom);H93 < h3s.length;H93++){b7v.N_M(56);var f0e=b7v.a$j(5,32,16,5);f$h=(h3s[H93].High + h3s[H93].Low) / f0e;b7v.j7J(1);var J0n=b7v.c0C(46,18);b7v.j7J(44);var J6X=b7v.c0C(2,14,237,15);b7v.N_M(3);var V4N=b7v.a$j(18,9,11);Z9u=(h3s[H93 - ("1" >> J0n)].High + h3s[H93 - J6X].Low) / V4N;b7v.N_M(14);k6t=b7v.c0C(f$h,Z9u);b7v.j7J(17);var U_O=b7v.c0C(1900000191,20,100000009,11);j2n=h3s[H93].Volume / U_O / (h3s[H93].High - h3s[H93].Low);b7v.j7J(7);n4G=b7v.c0C(k6t,j2n);if(!isFinite(n4G)){h3s[H93]["_EOM1 " + T$l.name]=NaN;}else {h3s[H93]["_EOM1 " + T$l.name]=n4G;}}b7h.Studies.MA(T$l.inputs["Moving Average Type"],T$l.days,"_EOM1 " + T$l.name,0,"Result",k$G,T$l);};b7h.Studies.studyLibrary=b7h.extend(b7h.Studies.studyLibrary,{EOM:{name:F9Z,calculateFN:b7h.Studies.calculateEaseOfMovement,inputs:{Period:14,"Moving Average Type":"ma"}}});}};A3=M_J=>{var l2I=f3BGj;var r0J,y3v;r0J="u";r0J+="ndefined";l2I.T$X();y3v=typeof _CIQ !== r0J?_CIQ:M_J.CIQ;if(!y3v.Studies){console.error("ehlerFisher feature requires first activating studies feature.");}else {y3v.Studies.calculateEhlerFisher=function(S4a,o87){var n2j,W_l,k9x,o8y,Y_l,p1z,o2D;n2j=o87.chart.scrubbed;if(n2j.length < o87.days + 1){o87.error=!"";return;}l2I.N_M(4);W_l=l2I.c0C("0",0);function S8S(H1W,i3J){var h7I,H0l,y54,V2g,x1D,h0K;h7I=-428939658;H0l=-1778201131;y54=2;for(var a8I=1;l2I.S9Y(a8I.toString(),a8I.toString().length,+"25159") !== h7I;a8I++){V2g=Number.MAX_VALUE;l2I.N_M(128);var H9w=l2I.c0C(4,1,8,2,9);x1D=Number.MAX_VALUE * H9w;y54+=2;}if(l2I.S9Y(y54.toString(),y54.toString().length,32314) !== H0l){V2g=Number.MAX_VALUE;l2I.j7J(129);var u8Y=l2I.a$j(11,1763,6,10,17);x1D=Number.MAX_VALUE - !u8Y;}for(var x8y=i3J - H1W + 1;x8y <= i3J;x8y++){l2I.N_M(68);var n_Y=l2I.a$j(18,1,0,16);h0K=(n2j[x8y].High + n2j[x8y].Low) / n_Y;V2g=Math.min(V2g,h0K);x1D=Math.max(x1D,h0K);}return [V2g,x1D];}if(o87.startFrom > "1" << 0){l2I.N_M(1);var R3w=l2I.c0C(0,1);W_l=n2j[o87.startFrom - R3w]["_n " + o87.name];}for(var h0o=o87.startFrom;h0o < n2j.length;h0o++){k9x="E";k9x+="F";k9x+=" Trigge";k9x+="r ";o8y=n2j[h0o];if(o8y.futureTick)break;if(h0o < o87.days - 1){Y_l="E";Y_l+="F";Y_l+=" ";o8y[Y_l + o87.name]=o8y["EF Trigger " + o87.name]=W_l;continue;}p1z=S8S(o87.days,h0o);l2I.N_M(1);var Q0Z=l2I.a$j(0,2);l2I.j7J(130);var m7k=l2I.a$j(10,12,3,23,5);l2I.j7J(102);var p2R=l2I.c0C(19,7,20,5);l2I.j7J(131);var c6A=l2I.a$j(14,18,1681,20,3);W_l=0.33 * Q0Z * (((n2j[h0o].High + n2j[h0o].Low) / m7k - p1z[0]) / Math.max(0.000001,p1z[p2R] - p1z[0]) - 0.5) + "0.67" * c6A * W_l;if(W_l > 0){W_l=Math.min(W_l,0.9999);}else if(W_l < 0){W_l=Math.max(W_l,-0.9999);}o2D=h0o?n2j[h0o - 1]["EF " + o87.name]:"0" | 0;l2I.j7J(17);var S7L=l2I.c0C(122,9,12,15);l2I.N_M(14);var w3g=l2I.a$j(1,0);o8y["EF " + o87.name]=0.5 * Math.log((S7L + W_l) / (w3g - W_l)) + 0.5 * o2D;o8y[k9x + o87.name]=o2D;o8y["_n " + o87.name]=W_l;}};y3v.Studies.studyLibrary=y3v.extend(y3v.Studies.studyLibrary,{"Ehler Fisher":{name:"Ehler Fisher Transform",calculateFN:y3v.Studies.calculateEhlerFisher,inputs:{Period:10},outputs:{EF:"auto","EF Trigger":"#FF0000"}}});}};b0=C4O=>{var r7W=f3BGj;var f8j,Y2d,R9o,K7s;f8j="u";f8j+="nd";r7W.T$X();f8j+="e";f8j+="fined";Y2d=typeof _CIQ !== f8j?_CIQ:C4O.CIQ;if(!Y2d.Studies){console.error("elder feature requires first activating studies feature.");}else {R9o="#";R9o+="8";R9o+="B";R9o+="C176";K7s="Elder Forc";K7s+="e Index";Y2d.Studies.calculateElderImpulse=function(V4j,H$k){var U_o,Y3t,W$e,M7C,t30,K6_,u0f;U_o=H$k.chart.scrubbed;Y3t=H$k.outputs.Bullish;W$e=H$k.outputs.Bearish;M7C=H$k.outputs.Neutral;Y2d.Studies.MA("exponential",13,"Close",0,"_MA",V4j,H$k);r7W.N_M(55);var E4W=r7W.a$j(10,108790,1078010,1);r7W.j7J(87);var E7M=r7W.a$j(6,83,4721,249,1);r7W.j7J(9);var X1h=r7W.c0C(111334,19,6186);r7W.N_M(14);var H0m=r7W.c0C(19,18);r7W.j7J(68);var t4g=r7W.c0C(6257,890,6249,19);r7W.N_M(14);var L$k=r7W.c0C(8758,18);H$k.macd=new Y2d.Studies.StudyDescriptor(((E4W,E7M) !== ("4340" ^ 0,703.37)?"_":X1h <= ("658.22" * H0m,"5710" ^ 0)?(t4g,L$k):("0x1f98" ^ 0,"A")) + H$k.name,"macd",H$k.panel);H$k.macd.chart=H$k.chart;H$k.macd.days=H$k.days;H$k.macd.startFrom=H$k.startFrom;H$k.macd.inputs={"Fast MA Period":12,"Slow MA Period":26,"Signal Period":+"9"};H$k.macd.outputs={_MACD:null,_Signal:null};Y2d.Studies.calculateMACD(V4j,H$k.macd);for(var e1L=H$k.startFrom;e1L < U_o.length;e1L++){K6_="_h";K6_+="i";K6_+="s";K6_+="t";u0f="_M";u0f+="A";u0f+=" ";if(e1L === 0){t30=M7C;}else if(U_o[e1L]["_MA " + H$k.name] > U_o[e1L - +"1"]["_MA " + H$k.name] && U_o[e1L][(270 <= 5236?"_":(9.83e+3,!!({}))) + H$k.name + "_hist"] > U_o[e1L - 1][(7980 != ("425.35" - 0,3440)?"_":8970 < 2030?(6.18e+3,127.14):8300 >= (3683,2280)?7.91e+3:272.07) + H$k.name + "_hist"]){t30=Y3t;}else if(U_o[e1L]["_MA " + H$k.name] < U_o[e1L - 1][u0f + H$k.name] && U_o[e1L][(("7728" ^ 0) <= 543.24?3.23e+3:(8462,8613) === (+"214",210.2)?(8.09e+3,0x1b68):("219" >> 64,792.17) > (262.61,6060)?(!!1,0x701):"_") + H$k.name + K6_] < U_o[e1L - ("1" - 0)]["_" + H$k.name + "_hist"]){t30=W$e;}else {t30=M7C;}U_o[e1L]["Result " + H$k.name]=t30;;}};Y2d.Studies.calculateElderRay=function(W5Q,K4i){var C4V,u7J;C4V="_";C4V+="his";r7W.T$X();C4V+="t";C4V+="1";u7J=K4i.chart.scrubbed;if(u7J.length < K4i.days){K4i.error=!!({});return;}Y2d.Studies.MA("exponential",K4i.days,"Close",0,"_EMA",W5Q,K4i);for(var X56=Math.max(K4i.startFrom,K4i.days - +"1");X56 < u7J.length;X56++){u7J[X56][K4i.name + "_hist1"]=u7J[X56].High - u7J[X56]["_EMA " + K4i.name];u7J[X56][K4i.name + "_hist2"]=u7J[X56].Low - u7J[X56]["_EMA " + K4i.name];}K4i.outputMap={};K4i.outputMap[K4i.name + C4V]="";K4i.outputMap[K4i.name + "_hist2"]="";};Y2d.Studies.calculateElderForce=function(y9$,A$q){var W0f,Y3u;W0f="_EF1";W0f+=" ";Y3u=A$q.chart.scrubbed;if(Y3u.length < A$q.days){A$q.error=!0;return;}for(var V_F=Math.max(1,A$q.startFrom);V_F < Y3u.length;V_F++){r7W.j7J(3);var l6o=r7W.c0C(9,6,4);Y3u[V_F]["_EF1 " + A$q.name]=Y3u[V_F].Volume * (Y3u[V_F].Close - Y3u[V_F - l6o].Close);}Y2d.Studies.MA("exponential",A$q.days,W0f + A$q.name,0,"Result",y9$,A$q);};Y2d.Studies.initElderImpulse=function(h6I,F7y,K2o,e21,S12,y2m){var s7v,i74;s7v="color";s7v+="ed_b";s7v+="ar";i74=Y2d.Studies.initializeFN(h6I,F7y,K2o,e21,S12,y2m);if(S12.calculateOnly){return i74;}h6I.chart.customChart={chartType:s7v,colorFunction:function(Y9O,W2x,o_3){var x2t;x2t=W2x["Result " + i74.name];if(x2t && typeof x2t == "object"){x2t=x2t.color;}return x2t;}};h6I.setMainSeriesRenderer();r7W.f3X();return i74;};Y2d.Studies.displayElderForce=function(X09,o53,V_a){var R7f,S4m,T1e,Y50,b8s;r7W.f3X();R7f="Res";R7f+="ult";R7f+=" ";Y2d.Studies.displaySeriesAsLine(X09,o53,V_a);S4m=Y2d.Studies.determineColor(o53.outputs.Result);T1e=X09.panels[o53.panel];Y50=o53.getYAxis(X09);b8s={skipTransform:T1e.name != o53.chart.name,panelName:o53.panel,band:R7f + o53.name,threshold:+"0",color:S4m,yAxis:Y50};if(!o53.highlight && X09.highlightedDraggable){b8s.opacity=0.3;}b8s.direction=1;Y2d.preparePeakValleyFill(X09,b8s);b8s.direction=-1;Y2d.preparePeakValleyFill(X09,b8s);};Y2d.Studies.displayElderRay=function(b1Y,L7s,M89){var k6I,Q_C,r$W,m3T,d3J,u9D,y0a,R1f,w_j,g7X;k6I=b1Y.panels[L7s.panel];Q_C=L7s.getContext(b1Y);r$W=L7s.getYAxis(b1Y);function I6X(E$V,d7_,D3h,b3V){r7W.f3X();Q_C.fillStyle=Y2d.Studies.determineColor(L7s.outputs[D3h]);Q_C.fillRect(Math.floor(b1Y.pixelFromBar(E$V,k6I.chart) - d3J / 2 + d3J * d7_),Math.floor(m3T),Math.floor(d3J * (1 - +"2" * d7_)),Math.floor(b1Y.pixelFromPrice(g7X[L7s.name + b3V],k6I,r$W) - m3T));}r7W.N_M(4);r7W.f3X();m3T=b1Y.pixelFromPrice(r7W.c0C("0",0),k6I,r$W);r7W.j7J(14);var L9w=r7W.a$j(16,14);d3J=b1Y.layout.candleWidth - L9w;if(d3J < 2){d3J=1;}b1Y.canvasColor("stx_histogram");u9D=Q_C.fillStyle;if(!L7s.underlay){Q_C.globalAlpha=+"1";}b1Y.startClip(L7s.panel);if(!L7s.highlight && b1Y.highlightedDraggable){Q_C.globalAlpha*=0.3;}for(var Y3r=0;Y3r < M89.length;Y3r++){y0a="_hist";y0a+="2";R1f="_h";R1f+="ist1";w_j="_";w_j+="hist1";g7X=M89[Y3r];if(!g7X)continue;if(g7X.candleWidth){d3J=Math.floor(Math.max(1,g7X.candleWidth - ("2" ^ 0)));}if(g7X[L7s.name + w_j] > 0){r7W.j7J(29);I6X(Y3r,r7W.a$j(0,"0"),"Elder Bull Power","_hist1");}if(g7X[L7s.name + "_hist2"] < 0){I6X(Y3r,0,"Elder Bear Power","_hist2");}if(g7X[L7s.name + "_hist1"] < 0){I6X(Y3r,0.1,"Elder Bull Power",R1f);}if(g7X[L7s.name + "_hist2"] > 0){r7W.N_M(14);I6X(Y3r,r7W.a$j("0.1",0),"Elder Bear Power",y0a);}}b1Y.endClip();Q_C.fillStyle=u9D;};Y2d.Studies.studyLibrary=Y2d.extend(Y2d.Studies.studyLibrary,{"Elder Force":{name:K7s,calculateFN:Y2d.Studies.calculateElderForce,seriesFN:Y2d.Studies.displayElderForce,inputs:{Period:13}},"Elder Ray":{name:"Elder Ray Index",seriesFN:Y2d.Studies.displayElderRay,calculateFN:Y2d.Studies.calculateElderRay,centerline:0,inputs:{Period:13},outputs:{"Elder Bull Power":"#00DD00","Elder Bear Power":"#FF0000"}},"Elder Impulse":{name:"Elder Impulse System",calculateFN:Y2d.Studies.calculateElderImpulse,initializeFN:Y2d.Studies.initElderImpulse,seriesFN:null,customRemoval:!![],underlay:!!({}),inputs:{},outputs:{Bullish:R9o,Bearish:"#DD3E39",Neutral:"#5F7CB8"},removeFN:function(K5w,U0v){K5w.chart.customChart=null;K5w.setMainSeriesRenderer();}}});}};j4=q5g=>{var l2d=f3BGj;var r1E,X6T,Y4B,I6x,P4L,k4v,O7C;r1E=typeof _CIQ !== "undefined"?_CIQ:q5g.CIQ;if(!r1E.Studies){X6T=122462410;Y4B=320517448;I6x=2;for(var A9E=1;l2d.O1W(A9E.toString(),A9E.toString().length,"61779" ^ 0) !== X6T;A9E++){console.error("");I6x+=2;}if(l2d.S9Y(I6x.toString(),I6x.toString().length,76585) !== Y4B){console.error("");}console.error("fractalChaos feature requires first activating studies feature.");}else {P4L="a";P4L+="uto";k4v="a";k4v+="uto";O7C="aut";O7C+="o";r1E.Studies.calculateFractalChaos=function(x0E,V3c){var f5W,x$$,C6h,M2p,O5k,L8J,k1P,I7E,h$T,n_H;f5W="Fractal C";f5W+="haos";f5W+=" Band";f5W+="s";x$$=V3c.chart.scrubbed;C6h=0;M2p=0;O5k=0;if(V3c.startFrom && V3c.type == f5W){L8J="F";L8J+="ractal";L8J+=" Low ";l2d.N_M(102);var s9l=l2d.c0C(13,13,17,8);C6h=x$$[V3c.startFrom - s9l]["Fractal High " + V3c.name];l2d.j7J(132);var R_9=l2d.c0C(13,16,9,2,13);M2p=x$$[V3c.startFrom - R_9][L8J + V3c.name];}for(var i49=Math.max("4" ^ 0,V3c.startFrom);i49 < x$$.length;i49++){k1P="F";k1P+="ractal Cha";k1P+="os Ba";k1P+="nds";if(x$$[i49].futureTick)break;I7E=!isNaN(x$$[i49].High);h$T=!isNaN(x$$[i49].Low);if(I7E || h$T){x$$[i49]["Result " + V3c.name]=0;}O5k=0;for(n_H=0;n_H <= i49;n_H++){if(!x$$[i49 - n_H])break;if(x$$[i49 - n_H].High > x$$[i49 - +"2"].High)break;if(n_H < 2 && x$$[i49 - n_H].High == x$$[i49 - 2].High)break;if(x$$[i49 - n_H].High < x$$[i49 - 2].High){O5k++;}if(O5k == 4){C6h=x$$[i49 - 2].High;break;}}if(V3c.type == k1P){if(I7E){x$$[i49]["Fractal High " + V3c.name]=C6h > 0?C6h:null;}}else if(O5k == 4){x$$[i49]["Result " + V3c.name]=1;}l2d.j7J(5);O5k=l2d.c0C(1,"0");for(n_H=+"0";n_H <= i49;n_H++){if(!x$$[i49 - n_H])break;if(x$$[i49 - n_H].Low < x$$[i49 - 2].Low)break;if(n_H < 2 && x$$[i49 - n_H].Low == x$$[i49 - 2].Low)break;if(x$$[i49 - n_H].Low > x$$[i49 - +"2"].Low){O5k++;}if(O5k == 4){M2p=x$$[i49 - +"2"].Low;break;}}if(V3c.type == "Fractal Chaos Bands"){if(h$T){x$$[i49]["Fractal Low " + V3c.name]=M2p > +"0"?M2p:null;}}else if(O5k == +"4"){x$$[i49]["Result " + V3c.name]=-+"1";}}};r1E.Studies.studyLibrary=r1E.extend(r1E.Studies.studyLibrary,{"Fractal Chaos":{name:"Fractal Chaos Oscillator",range:"-1 to 1",calculateFN:r1E.Studies.calculateFractalChaos,inputs:{},centerline:null},"Fractal Chaos Bands":{name:"Fractal Chaos Bands",overlay:!0,calculateFN:r1E.Studies.calculateFractalChaos,seriesFN:r1E.Studies.displayChannel,inputs:{"Channel Fill":!!({})},outputs:{"Fractal High":O7C,"Fractal Low":k4v,"Fractal Channel":P4L}}});}};U1=T5C=>{var C3X,M9Z,F0h,F$E,s_U,a$f,y2b,c$a;C3X="un";C3X+="defined";M9Z=typeof _CIQ !== C3X?_CIQ:T5C.CIQ;if(!M9Z.Studies){console.error("highLowStudies feature requires first activating studies feature.");}else {F0h="Wil";F0h+="liams %R";F$E="Lowest Low ";F$E+="Value";s_U="Highest High V";s_U+="alu";s_U+="e";a$f="a";a$f+="u";a$f+="t";a$f+="o";y2b="a";y2b+="u";y2b+="t";y2b+="o";c$a="au";c$a+="t";c$a+="o";M9Z.Studies.calculateMaxHighMinLow=function(a8Z,X4J){var K92=f3BGj;var K3Z,C2Q,U_0,J8r,S4g,H8n,U5w,f5g,l8Q,H0n,c3x,t$u,g6E;K3Z="Low Peri";K3Z+="od";C2Q="Hi";C2Q+="gh Pe";C2Q+="rio";C2Q+="d";U_0="High";U_0+=" Period";J8r=X4J.chart.scrubbed;S4g=X4J.days;H8n=X4J.days;if(X4J.inputs[U_0]){S4g=X4J.inputs[C2Q];}if(X4J.inputs[K3Z]){H8n=X4J.inputs["Low Period"];}if(J8r.length < Math.max(S4g,H8n) + +"1"){X4J.error=!![];return;}U5w=Number.MAX_VALUE;K92.j7J(14);var w3A=K92.a$j(0,1);f5g=Number.MAX_VALUE * w3A;if(X4J.startFrom > 1){for(l8Q=1;l8Q < S4g;l8Q++){if(X4J.startFrom - l8Q >= 0){f5g=Math.max(f5g,J8r[X4J.startFrom - l8Q].High);}}for(l8Q=1;l8Q < H8n;l8Q++){if(X4J.startFrom - l8Q >= 0){U5w=Math.min(U5w,J8r[X4J.startFrom - l8Q].Low);}}}for(var n9X=Math.max(0,X4J.startFrom - 1);n9X < J8r.length;n9X++){H0n="VT HZ";H0n+=" ";H0n+="Fi";H0n+="lter";f5g=Math.max(f5g,J8r[n9X].High);U5w=Math.min(U5w,J8r[n9X].Low);if(n9X >= S4g){if(J8r[n9X - S4g].High == f5g){f5g=J8r[n9X].High;for(l8Q=1;l8Q < S4g;l8Q++){f5g=Math.max(f5g,J8r[n9X - l8Q].High);}}}if(n9X >= H8n){if(J8r[n9X - H8n].Low == U5w){U5w=J8r[n9X].Low;for(l8Q=1;l8Q < H8n;l8Q++){U5w=Math.min(U5w,J8r[n9X - l8Q].Low);}}}c3x=0;if(X4J.type == "HHV"){c3x=f5g;}else if(X4J.type == "LLV"){c3x=U5w;}else if(X4J.type == "Donchian Width"){K92.N_M(14);c3x=K92.c0C(f5g,U5w);}else if(X4J.type == "GAPO" || X4J.type == "Gopala"){c3x=Math.log(f5g - U5w) / Math.log(H8n);}else if(X4J.type == H0n){K92.j7J(14);c3x=K92.c0C(f5g,U5w);J8r[n9X]["_MHML " + X4J.name]=c3x;continue;}else if(X4J.type == "Williams %R"){K92.j7J(133);var s7h=K92.c0C(20,17,22,18,93);c3x=s7h * (f5g - J8r[n9X].Close) / (f5g - U5w);J8r[n9X]["Result " + X4J.name]=c3x;continue;}if(n9X == J8r.length - "1" * 1)break;if(!J8r[n9X + 1].futureTick){t$u="Donchian";t$u+=" Channel";if(X4J.type == t$u){g6E="Donchian";g6E+=" Median ";K92.N_M(1);J8r[K92.a$j(n9X,1)]["Donchian High " + X4J.name]=f5g;K92.N_M(1);J8r[K92.c0C(n9X,1)]["Donchian Low " + X4J.name]=U5w;K92.j7J(1);J8r[K92.c0C(n9X,1)][g6E + X4J.name]=K92.a$j(U5w,f5g,2,K92.N_M(2));}else {K92.N_M(1);J8r[K92.a$j(n9X,1)]["Result " + X4J.name]=c3x;}}}};M9Z.Studies.calculateVerticalHorizontalFilter=function(r3B,a$9){var x7L,a7Y,N2V,H8D;x7L=a$9.chart.scrubbed;if(x7L.length < a$9.days + 1){a$9.error=!!"1";return;}a$9.mhml=new M9Z.Studies.StudyDescriptor(a$9.name,a$9.type,a$9.panel);a$9.mhml.chart=a$9.chart;a$9.mhml.days=a$9.days;a$9.mhml.startFrom=a$9.startFrom;a$9.mhml.inputs={};a$9.mhml.outputs={_MHML:null};M9Z.Studies.calculateMaxHighMinLow(r3B,a$9.mhml);a7Y=0;N2V=[];for(var G_W=Math.max(1,a$9.startFrom - a$9.days);G_W < x7L.length;G_W++){H8D=Math.abs(x7L[G_W].Close - x7L[G_W - 1].Close);N2V.push(H8D);a7Y+=H8D;if(N2V.length == a$9.days){x7L[G_W]["Result " + a$9.name]=x7L[G_W]["_MHML " + a$9.name] / a7Y;a7Y-=N2V.shift();}}};M9Z.Studies.studyLibrary=M9Z.extend(M9Z.Studies.studyLibrary,{"Donchian Channel":{name:"Donchian Channel",overlay:!"",calculateFN:M9Z.Studies.calculateMaxHighMinLow,seriesFN:M9Z.Studies.displayChannel,inputs:{"High Period":"20" ^ 0,"Low Period":+"20","Channel Fill":!!({})},outputs:{"Donchian High":c$a,"Donchian Median":y2b,"Donchian Low":a$f}},"Donchian Width":{name:"Donchian Width",calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{"High Period":20,"Low Period":20}},GAPO:{name:"Gopalakrishnan Range Index",calculateFN:M9Z.Studies.calculateMaxHighMinLow},HHV:{name:s_U,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:+"14"}},LLV:{name:F$E,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:14}},"Williams %R":{name:F0h,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:14},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:-20,studyOverBoughtColor:"auto",studyOverSoldValue:-80,studyOverSoldColor:"auto"}}},"VT HZ Filter":{name:"Vertical Horizontal Filter",calculateFN:M9Z.Studies.calculateVerticalHorizontalFilter,inputs:{Period:28}},"High-Low":{name:"High Minus Low",calculateFN:function(N6p,N6E){var f$y;f$y=N6E.chart.scrubbed;for(var E8y=N6E.startFrom;E8y < f$y.length;E8y++){f$y[E8y]["Result " + N6E.name]=f$y[E8y].High - f$y[E8y].Low;}},inputs:{}}});}};W2=t2a=>{var j5B,w8F,a3t,t$4;j5B=typeof _CIQ !== "undefined"?_CIQ:t2a.CIQ;if(!j5B.Studies){console.error("ichimoku feature requires first activating studies feature.");}else {w8F="#";w8F+="808";w8F+="000";a3t="#FF";a3t+="0000";t$4="I";t$4+="chimoku Clouds";j5B.Studies.calculateIchimoku=function(j5S,n5d){var N1i=f3BGj;var V0H,h02,r7V,i0I,g9x,T76,m$T,X_d,w5r,I2y,Y6C,h0f,A9j;V0H="La";V0H+="gging Span Perio";V0H+="d";h02=n5d.chart.scrubbed;r7V={Base:Number(n5d.inputs["Base Line Period"]),Conv:Number(n5d.inputs["Conversion Line Period"]),LeadB:Number(n5d.inputs["Leading Span B Period"]),Lag:Number(n5d.inputs[V0H])};for(i0I=n5d.startFrom;i0I < h02.length;i0I++){T76="La";T76+="gging Span ";m$T="Conve";m$T+="rsion Line";m$T+=" ";if(!h02[i0I])continue;g9x=o_H(r7V.Conv,i0I);N1i.N_M(134);var R5P=N1i.a$j(7,4,8,4);N1i.N_M(122);var X7r=N1i.c0C(22,18,2,18);h02[i0I][m$T + n5d.name]=(g9x["1" - 0] + g9x["0" * R5P]) / X7r;g9x=o_H(r7V.Base,i0I);N1i.N_M(66);var V6k=N1i.c0C(18,12,6,35);N1i.j7J(44);var C1m=N1i.a$j(18,19,340,0);h02[i0I]["Base Line " + n5d.name]=(g9x[V6k] + g9x[0]) / C1m;if(i0I < r7V.Lag)continue;h02[i0I - r7V.Lag][T76 + n5d.name]=h02[i0I].Close;}X_d=[];for(i0I=Math.max(0,n5d.startFrom - r7V.Base);i0I < h02.length;i0I++){g9x=o_H(r7V.LeadB,i0I);N1i.j7J(27);var r$5=N1i.c0C(13,11);w5r=(h02[i0I]["Conversion Line " + n5d.name] + h02[i0I]["Base Line " + n5d.name]) / r$5;N1i.N_M(17);var i9I=N1i.a$j(127,10,11,18);I2y=(g9x[i9I] + g9x[0]) / +"2";if(h02[i0I + r7V.Base]){Y6C="Leadin";Y6C+="g";Y6C+=" Span";Y6C+=" A ";h02[i0I + r7V.Base][Y6C + n5d.name]=w5r;h02[i0I + r7V.Base]["Leading Span B " + n5d.name]=I2y;}else {h0f="Lead";h0f+="ing Span A ";A9j={};A9j[h0f + n5d.name]=w5r;A9j["Leading Span B " + n5d.name]=I2y;X_d.push(A9j);}}n5d.appendFutureTicks(j5S,X_d);function o_H(C_g,R2S){var S8O,Z5y;N1i.T$X();S8O=Number.MAX_VALUE;N1i.N_M(68);var c2w=N1i.c0C(4,5,0,15);Z5y=Number.MAX_VALUE * -("1" * c2w);for(var E0q=R2S - C_g + 1;E0q <= R2S;E0q++){if(E0q < 0)continue;S8O=Math.min(S8O,h02[E0q].Low);Z5y=Math.max(Z5y,h02[E0q].High);}return [S8O,Z5y];}};j5B.Studies.displayIchimoku=function(U9p,n0N,M69){var j82,g5T,g9y,R_L,s1B,A2u,M1E,z17;j82="L";j82+="eadi";j82+="ng Span A ";g5T=j82 + n0N.name;g9y="Leading Span B " + n0N.name;R_L=j5B.Studies.determineColor(n0N.outputs[n0N.outputMap[g5T]]);s1B=j5B.Studies.determineColor(n0N.outputs[n0N.outputMap[g9y]]);A2u=U9p.panels[n0N.panel];M1E=n0N.getYAxis(U9p);z17={topBand:g5T,bottomBand:g9y,topColor:R_L,bottomColor:s1B,skipTransform:A2u.name != n0N.chart.name,topAxis:M1E,bottomAxis:M1E,opacity:0.3};if(!n0N.highlight && U9p.highlightedDraggable){f3BGj.N_M(5);z17.opacity*=f3BGj.a$j(1,"0.3");}j5B.fillIntersecting(U9p,n0N.panel,z17);j5B.Studies.displaySeriesAsLine(U9p,n0N,M69);};j5B.Studies.studyLibrary=j5B.extend(j5B.Studies.studyLibrary,{"Ichimoku Clouds":{name:t$4,overlay:!!({}),calculateFN:j5B.Studies.calculateIchimoku,seriesFN:j5B.Studies.displayIchimoku,inputs:{"Conversion Line Period":9,"Base Line Period":26,"Leading Span B Period":52,"Lagging Span Period":+"26"},outputs:{"Conversion Line":"#0000FF","Base Line":"#FF0000","Leading Span A":"#00FF00","Leading Span B":a3t,"Lagging Span":w8F}}});}};K0=L0y=>{var q$d,p6D,l8b;q$d=typeof _CIQ !== "undefined"?_CIQ:L0y.CIQ;if(!q$d.Studies){console.error("intradayMomentum feature requires first activating studies feature.");}else {p6D="a";p6D+="u";p6D+="t";p6D+="o";l8b="a";l8b+="u";l8b+="to";q$d.Studies.calculateIntradayMomentum=function(I_8,D_5){var E9s=f3BGj;var R3q,z0X,T8e,s0H,y_x,q1j,Q3C;R3q=D_5.chart.scrubbed;z0X=D_5.days;if(R3q.length < z0X + 1){D_5.error=!![];return;}E9s.N_M(46);T8e=E9s.c0C("0",0);s0H=0;if(D_5.startFrom > 1){y_x="_totDn";y_x+=" ";E9s.N_M(34);var M5N=E9s.c0C(4,2,6);T8e=R3q[D_5.startFrom - M5N]["_totUp " + D_5.name];E9s.N_M(135);var S6B=E9s.a$j(2,1,20,21);s0H=R3q[D_5.startFrom - S6B][y_x + D_5.name];}for(var u4t=D_5.startFrom;u4t < R3q.length;u4t++){q1j=R3q[u4t].Close - R3q[u4t].Open;if(q1j > 0){T8e+=q1j;}else {s0H-=q1j;}if(u4t >= z0X){Q3C=R3q[u4t - z0X].Close - R3q[u4t - z0X].Open;if(Q3C > 0){T8e-=Q3C;}else {s0H+=Q3C;}}E9s.j7J(136);R3q[u4t]["Result " + D_5.name]=E9s.a$j(T8e,s0H,T8e,"100");R3q[u4t]["_totUp " + D_5.name]=T8e;R3q[u4t]["_totDn " + D_5.name]=s0H;}};q$d.Studies.studyLibrary=q$d.extend(q$d.Studies.studyLibrary,{"Intraday Mtm":{name:"Intraday Momentum Index",calculateFN:q$d.Studies.calculateIntradayMomentum,inputs:{Period:20},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:70,studyOverBoughtColor:l8b,studyOverSoldValue:30,studyOverSoldColor:p6D}}}});}};G_=B6D=>{f3BGj.f3X();var Z$$,h2d,K9M;Z$$=typeof _CIQ !== "undefined"?_CIQ:B6D.CIQ;if(!Z$$.Studies){console.error("keltner feature requires first activating studies feature.");}else {h2d="au";h2d+="t";h2d+="o";K9M="Ke";K9M+="ltner Cha";K9M+="nnel";Z$$.Studies.calculateKeltner=function(Z5B,S1v){var C$_,B4d,l0N;C$_="ATR";C$_+=" ";B4d="M";B4d+="A";l0N="Mo";f3BGj.f3X();l0N+="ving Average Type";Z$$.Studies.MA(S1v.inputs[l0N],S1v.days,"Close",0,B4d,Z5B,S1v);Z$$.Studies.calculateStudyATR(Z5B,S1v);Z$$.Studies.calculateGenericEnvelope(Z5B,S1v,S1v.inputs.Shift,"MA " + S1v.name,C$_ + S1v.name);};Z$$.Studies.studyLibrary=Z$$.extend(Z$$.Studies.studyLibrary,{Keltner:{name:K9M,overlay:!!({}),seriesFN:Z$$.Studies.displayChannel,calculateFN:Z$$.Studies.calculateKeltner,inputs:{Period:50,Shift:5,"Moving Average Type":"ema","Channel Fill":!![]},outputs:{"Keltner Top":h2d,"Keltner Median":"auto","Keltner Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}}});}};T8=m_l=>{var R3l,D$$;R3l=typeof _CIQ !== "undefined"?_CIQ:m_l.CIQ;if(!R3l.Studies){console.error("klinger feature requires first activating studies feature.");}else {D$$="#";D$$+="FF00";D$$+="0";D$$+="0";R3l.Studies.calculateKlinger=function(X3d,J2x){var d9S,Y89,m$M,K0Z,l0n,F$Y,B$Z,f4e,x8r,W1w,r9p,X1L,W_7,K8G,K7D,L1h,P5X,U5k,E0h;d9S="Sig";d9S+="nal Peri";d9S+="ods";Y89="expo";Y89+="nential";m$M="expon";m$M+="ential";K0Z="_EM";K0Z+="A";K0Z+="-S";l0n="_EMA";l0n+="-";l0n+="S ";F$Y="K";F$Y+="lingerSig";F$Y+="na";F$Y+="l ";B$Z="_";B$Z+="his";B$Z+="t";f4e=J2x.chart.scrubbed;x8r=Number(J2x.inputs["Short Cycle"]);W1w=Number(J2x.inputs["Long Cycle"]);if(f4e.length < Math.max(x8r,W1w) + 1){J2x.error=!!({});return;}f3BGj.T$X();r9p=J2x.name + B$Z;X1L="Klinger " + J2x.name;W_7=F$Y + J2x.name;K8G="_SV " + J2x.name;K7D=l0n + J2x.name;L1h="_EMA-L " + J2x.name;for(P5X=Math.max(1,J2x.startFrom);P5X < f4e.length;P5X++){U5k="hlc/";U5k+="3";E0h=f4e[P5X].Volume;if(f4e[P5X]["hlc/3"] < f4e[P5X - 1][U5k]){E0h*=-+"1";}if(E0h){f4e[P5X][K8G]=E0h;}}R3l.Studies.MA("exponential",x8r,K8G,+"0",K0Z,X3d,J2x);R3l.Studies.MA(m$M,W1w,K8G,0,"_EMA-L",X3d,J2x);for(P5X=Math.max(W1w,J2x.startFrom);P5X < f4e.length;P5X++){if(f4e[P5X].futureTick || f4e[P5X][K7D] === null || f4e[P5X][L1h] === null)break;f4e[P5X][X1L]=f4e[P5X][K7D] - f4e[P5X][L1h];}R3l.Studies.MA(Y89,Number(J2x.inputs[d9S]),X1L,0,"KlingerSignal",X3d,J2x);for(P5X=J2x.startFrom;P5X < f4e.length;P5X++){f4e[P5X][r9p]=f4e[P5X][X1L] - f4e[P5X][W_7];}J2x.outputMap[r9p]="";};R3l.Studies.studyLibrary=R3l.extend(R3l.Studies.studyLibrary,{Klinger:{name:"Klinger Volume Oscillator",seriesFN:R3l.Studies.displayHistogramWithSeries,calculateFN:R3l.Studies.calculateKlinger,inputs:{"Signal Periods":"13" - 0,"Short Cycle":34,"Long Cycle":55},outputs:{Klinger:"auto",KlingerSignal:D$$,"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};d8=e5D=>{var p6w,J1p,H$R,y06,A5a,M9y,p1o,D7w;p6w=typeof _CIQ !== "undefined"?_CIQ:e5D.CIQ;if(!p6w.Studies){console.error("linearRegression feature requires first activating studies feature.");}else {J1p="f";J1p+="ie";J1p+="l";J1p+="d";H$R="Linear";H$R+=" Reg ";H$R+="Forecast";y06="TimeSe";y06+="ries";A5a="ti";A5a+="me";A5a+=" s";A5a+="eries";M9y="t";M9y+="ime seri";M9y+="es";p1o="ts";p1o+="m";p1o+="a";D7w="time";D7w+=" series";p6w.Studies.prettify[D7w]=p1o;p6w.Studies.movingAverage.conversions.tsma=M9y;p6w.Studies.movingAverage.translations["time series"]="Time Series";p6w.Studies.movingAverage.typeMap.tsma="TimeSeries";p6w.Studies.movingAverage.typeMap[A5a]=y06;p6w.Studies.calculateMovingAverageTimeSeries=function(R3S,h4l){var Q2j=f3BGj;var i_V,H8o,k1e,L96,S07,I5d,G$j,d4Y,C0J,E0p,T9W;i_V="m";i_V+="a";h4l.ma=new p6w.Studies.StudyDescriptor(h4l.name,i_V,h4l.panel);h4l.ma.chart=h4l.chart;h4l.ma.days=h4l.days;h4l.ma.startFrom=h4l.startFrom;h4l.ma.inputs=h4l.inputs;p6w.Studies.calculateLinearRegressionIndicator(R3S,h4l.ma);H8o=h4l.name;for(var R_z in h4l.outputs){Q2j.N_M(82);H8o=Q2j.c0C(H8o,(1730,"6450" ^ 0) < 3310?8.20e+3:" ",R_z);}k1e=parseInt(h4l.inputs.Offset,10);if(isNaN(k1e)){k1e=0;}L96=h4l.chart.scrubbed;Q2j.f3X();S07=k1e;for(var b1I=h4l.startFrom - 1;b1I >= 0;b1I--){I5d=L96[b1I][H8o];if(!I5d && I5d !== +"0")continue;if(S07 > 0){S07--;continue;}break;}G$j=[];for(b1I++;b1I < L96.length;b1I++){d4Y=L96[b1I];if(b1I + k1e >= "0" << 64){C0J="Fo";C0J+="r";C0J+="ecast ";if(b1I + k1e < L96.length){Q2j.N_M(1);L96[Q2j.a$j(b1I,k1e)][H8o]=d4Y[C0J + h4l.name];}else {E0p="Fo";E0p+="re";E0p+="cas";E0p+="t ";T9W={};T9W[H8o]=d4Y[E0p + h4l.name];G$j.push(T9W);}}}h4l.appendFutureTicks(R3S,G$j);};p6w.Studies.calculateLinearRegressionIndicator=function(S7g,o1o){var e1h=f3BGj;var G4d,t8v,j7D,h26,k8s,b9r,u3q,d0c,b1C,D8C,T0M,j2Z,b4d,i3g,d0l,P2y;G4d="Cl";G4d+="ose";t8v=o1o.chart.scrubbed;if(t8v.length < o1o.days + 1){o1o.error=!!({});return;}e1h.T$X();j7D=o1o.inputs.Field;if(!j7D || j7D == "field"){j7D=G4d;}e1h.j7J(14);var G6t=e1h.c0C(4,3);e1h.j7J(3);var S9K=e1h.a$j(0,2,0);h26=o1o.days * (o1o.days + G6t) / S9K;k8s=Math.pow(h26,2);e1h.N_M(15);var W6J=e1h.a$j(0,10,9);e1h.N_M(137);var X7G=e1h.c0C(9,13,9,10);b9r=h26 * (+"2" * o1o.days + W6J) / X7G;u3q=0;d0c=0;b1C=+"0";if(o1o.startFrom){D8C="_";D8C+="s";D8C+="ums";D8C+=" ";e1h.N_M(14);var Z9D=e1h.a$j(1,0);T0M=t8v[o1o.startFrom - Z9D][D8C + o1o.name];if(T0M){d0c=T0M[0];u3q=T0M[1];b1C=T0M[2];}}for(var K3j=o1o.startFrom;K3j < t8v.length;K3j++){j2Z=t8v[K3j][j7D];if(j2Z && typeof j2Z == "object"){j2Z=j2Z[o1o.subField];}if(!j2Z && j2Z !== ("0" ^ 0))continue;d0c+=o1o.days * j2Z - u3q;u3q+=j2Z;b1C+=Math.pow(j2Z,2);if(K3j < o1o.days - 1)continue;else if(K3j > o1o.days - 1){b4d=t8v[K3j - o1o.days][j7D];if(b4d && typeof b4d == "object"){b4d=b4d[o1o.subField];}if(!b4d && b4d !== 0)continue;u3q-=b4d;b1C-=Math.pow(b4d,2);}i3g=(o1o.days * d0c - h26 * u3q) / (o1o.days * b9r - k8s);t8v[K3j]["Slope " + o1o.name]=i3g;d0l=(u3q - i3g * h26) / o1o.days;t8v[K3j]["Intercept " + o1o.name]=d0l;t8v[K3j]["Forecast " + o1o.name]=d0l + i3g * o1o.days;e1h.N_M(122);var N_d=e1h.a$j(0,2,1,4);P2y=(o1o.days * b9r - k8s) / (o1o.days * b1C - Math.pow(u3q,N_d));e1h.N_M(138);t8v[K3j]["RSquared " + o1o.name]=e1h.c0C(i3g,P2y,i3g);t8v[K3j]["_sums " + o1o.name]=[d0c,u3q,b1C];}};p6w.Studies.studyLibrary=p6w.extend(p6w.Studies.studyLibrary,{"Lin Fcst":{name:H$R,overlay:!"",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Forecast:"auto"}},"Lin Incpt":{name:"Linear Reg Intercept",overlay:!0,calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:J1p},outputs:{Intercept:"auto"}},"Lin R2":{name:"Linear Reg R2",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{RSquared:"auto"}},"LR Slope":{name:"Linear Reg Slope",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Slope:"auto"}},"Time Fcst":{name:"Time Series Forecast",overlay:!![],calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:+"14",Field:"field"},outputs:{Forecast:"auto"}}});}};T6=X2q=>{var I5V,n26,Z3I;I5V="undefin";I5V+="e";I5V+="d";n26=typeof _CIQ !== I5V?_CIQ:X2q.CIQ;if(!n26.Studies){console.error("macd feature requires first activating studies feature.");}else {Z3I="#FF0";Z3I+="000";n26.Studies.calculateMACD=function(G0U,s6p){var Y4t=f3BGj;var r0C,o0o,S5G,R3e,J9T,u3o,P4U,F3w,J63,h0N,G0Z,G8j,h_B,r5e,D9j,h$f;r0C="_h";r0C+="i";r0C+="s";r0C+="t";o0o="exponent";o0o+="i";o0o+="a";o0o+="l";S5G="Signal Pe";S5G+="riod";R3e="Sl";R3e+="ow MA Period";J9T="Fast M";J9T+="A Perio";J9T+="d";u3o=s6p.chart.scrubbed;P4U=s6p.inputs;F3w=s6p.name;if(!s6p.macd1Days){s6p.macd1Days=parseFloat(P4U[J9T]);}if(!s6p.macd2Days){s6p.macd2Days=parseFloat(P4U[R3e]);}if(!s6p.signalDays){s6p.signalDays=parseFloat(P4U[S5G]);}if(!s6p.days){s6p.days=Math.max(s6p.macd1Days,s6p.macd2Days,s6p.signalDays);}if(u3o.length < s6p.days + 1){s6p.error=!0;return;}J63=s6p.inputs.Field;if(!J63 || J63 == "field"){J63="Close";}h0N=P4U["Moving Average Type"];if(!h0N){h0N=o0o;}n26.Studies.MA(h0N,s6p.macd1Days,J63,0,"_MACD1",G0U,s6p);n26.Studies.MA(h0N,s6p.macd2Days,J63,"0" - 0,"_MACD2",G0U,s6p);h_B=Math.max(s6p.startFrom,s6p.days - 1);for(G0Z=h_B;G0Z < u3o.length;G0Z++){G8j=u3o[G0Z];if((G8j["_MACD1 " + F3w] || G8j["_MACD1 " + F3w] === 0) && (G8j["_MACD2 " + F3w] || G8j["_MACD2 " + F3w] === 0)){Y4t.N_M(1);G8j[Y4t.c0C("MACD ",F3w)]=G8j["_MACD1 " + F3w] - G8j["_MACD2 " + F3w];}}r5e=P4U["Signal MA Type"];if(!r5e){r5e="exponential";}n26.Studies.MA(r5e,s6p.signalDays,"MACD " + F3w,0,"Signal",G0U,s6p);Y4t.N_M(1);D9j=Y4t.c0C(F3w,r0C);for(G0Z=h_B;G0Z < u3o.length;G0Z++){G8j=u3o[G0Z];Y4t.j7J(1);h$f=G8j[Y4t.c0C("Signal ",F3w)];if(!h$f && h$f !== 0)continue;G8j[D9j]=G8j["MACD " + F3w] - G8j["Signal " + F3w];}s6p.outputMap[D9j]="";};n26.Studies.studyLibrary=n26.extend(n26.Studies.studyLibrary,{macd:{name:"MACD",calculateFN:n26.Studies.calculateMACD,seriesFN:n26.Studies.displayHistogramWithSeries,inputs:{"Fast MA Period":12,"Slow MA Period":26,"Signal Period":+"9"},outputs:{MACD:"auto",Signal:Z3I,"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};k1=v$V=>{var X30=f3BGj;var q18,z4T,v2X,R$R;X30.T$X();q18=typeof _CIQ !== "undefined"?_CIQ:v$V.CIQ;if(!q18.Studies){console.error("massIndex feature requires first activating studies feature.");}else {q18.Studies.calculateMassIndex=function(i3d,b2b){var c0N,M6P,t_b,q$n,h4T,Z17,a4i,k59;c0N="_";c0N+="EM";c0N+="A ";M6P=1078781190;t_b=1904025788;q$n=2;for(var B2E=1;X30.S9Y(B2E.toString(),B2E.toString().length,83617) !== M6P;B2E++){h4T=b2b.chart.scrubbed;q$n+=2;}if(X30.O1W(q$n.toString(),q$n.toString().length,25167) !== t_b){h4T=b2b.chart.scrubbed;}if(h4T.length < Math.max(9,b2b.days + 1)){b2b.error=!"";return;}for(var A1$=b2b.startFrom;A1$ < h4T.length;A1$++){h4T[A1$]["_High-Low " + b2b.name]=h4T[A1$].High - h4T[A1$].Low;}q18.Studies.MA("exponential",9,"_High-Low " + b2b.name,0,"_EMA",i3d,b2b);q18.Studies.MA("exponential",9,c0N + b2b.name,0,"_EMA2",i3d,b2b);Z17=0;if(h4T[b2b.startFrom - 1] && h4T[b2b.startFrom - +"1"]["_total " + b2b.name]){X30.j7J(14);var e6Q=X30.a$j(16,15);Z17=h4T[b2b.startFrom - e6Q]["_total " + b2b.name];}for(var N_Q=Math.max(+"17",b2b.startFrom);N_Q < h4T.length;N_Q++){a4i="_to";a4i+="ta";a4i+="l";a4i+=" ";k59="_";k59+="EMA2 ";Z17+=h4T[N_Q]["_EMA " + b2b.name] / h4T[N_Q][k59 + b2b.name];if(N_Q >= ("17" ^ 0) + b2b.days - 1){h4T[N_Q]["Result " + b2b.name]=Z17;X30.N_M(63);var S8j=X30.a$j(4,12,17);X30.j7J(52);var e6$=X30.a$j(6,8,1);Z17-=h4T[N_Q - b2b.days + S8j]["_EMA " + b2b.name] / h4T[N_Q - b2b.days + e6$]["_EMA2 " + b2b.name];}h4T[N_Q][a4i + b2b.name]=Z17;}};q18.Studies.displayMassIndex=function(G4R,X9q,d8e){var D3j,E0d,U8j,q9C,D3w,J8z;D3j="Bu";D3j+="lge Thr";D3j+="esh";D3j+="old";q18.Studies.displaySeriesAsLine(G4R,X9q,d8e);E0d=X9q.inputs[D3j];U8j=G4R.panels[X9q.panel];q9C=X9q.getYAxis(G4R);D3w=q18.Studies.determineColor(X9q.outputs.Result);J8z={skipTransform:G4R.panels[X9q.panel].name != X9q.chart.name,panelName:X9q.panel,band:"Result " + X9q.name,threshold:E0d,direction:1,color:D3w,yAxis:q9C,opacity:0.3};if(!X9q.highlight && G4R.highlightedDraggable){J8z.opacity*=0.3;}q18.preparePeakValleyFill(G4R,J8z);q18.Studies.drawHorizontal(G4R,X9q,null,E0d,q9C,D3w);};z4T=724537233;v2X=2069551907;R$R=2;for(var e5X=1;X30.S9Y(e5X.toString(),e5X.toString().length,73548) !== z4T;e5X++){q18.Studies.studyLibrary=q18.extend(q18.Studies.studyLibrary,{"Mass Idx":{name:"Mass Index",seriesFN:q18.Studies.displayMassIndex,calculateFN:q18.Studies.calculateMassIndex,inputs:{Period:14,"Bulge Threshold":63},attributes:{"Bulge Threshold":{min:+"57",max:14,step:780}}}});R$R+=2;}if(X30.S9Y(R$R.toString(),R$R.toString().length,+"45439") !== v2X){q18.Studies.studyLibrary=q18.extend(q18.Studies.studyLibrary,{"Mass Idx":{name:"Mass Index",seriesFN:q18.Studies.displayMassIndex,calculateFN:q18.Studies.calculateMassIndex,inputs:{Period:25,"Bulge Threshold":+"27"},attributes:{"Bulge Threshold":{min:20,max:35,step:0.1}}}});}}};e4=O7z=>{var i7t=f3BGj;i7t.T$X();var N3_,V5x;N3_=typeof _CIQ !== "undefined"?_CIQ:O7z.CIQ;if(!N3_.Studies){console.error("moneyFlow feature requires first activating studies feature.");}else {V5x="Money F";V5x+="low Ind";V5x+="e";V5x+="x";N3_.Studies.calculateMoneyFlowIndex=function(t9T,v7y){var p8N,d5m,O25,z1b,E92,v5L,a5S,M4c,u9x,P5O,e6F,N9v,d2n;p8N="_";p8N+="r";p8N+="awM";p8N+="F ";d5m=v7y.chart.scrubbed;if(d5m.length < v7y.days + 1){v7y.error=!!1;return;}O25=0;z1b=0;i7t.j7J(14);var g9E=i7t.a$j(1,0);E92=d5m[v7y.startFrom - g9E];v5L=p8N + v7y.name;a5S="_cumMF " + v7y.name;M4c="Result " + v7y.name;if(E92 && E92[a5S]){O25=E92[a5S][0];z1b=E92[a5S][1];}for(var J4A=v7y.startFrom;J4A < d5m.length;J4A++){u9x=d5m[J4A]["hlc/3"];if(J4A > 0 && !d5m[J4A].futureTick){P5O="hlc";P5O+="/3";i7t.N_M(14);e6F=d5m[i7t.a$j(J4A,1)][P5O];N9v=u9x * d5m[J4A].Volume;if(u9x > e6F){O25+=N9v;}else if(u9x < e6F){N9v*=-1;z1b-=N9v;}else {N9v=0;}if(J4A > v7y.days){d2n=d5m[J4A - v7y.days][v5L];if(d2n > 0){O25-=d2n;}else {z1b+=d2n;}if(z1b === 0){d5m[J4A][M4c]=100;}else if(d5m[J4A].Volume){i7t.j7J(139);d5m[J4A][M4c]=i7t.a$j(0,"100",O25,100,z1b,"1");}}d5m[J4A][v5L]=N9v;d5m[J4A][a5S]=[O25,z1b];}}};N3_.Studies.studyLibrary=N3_.extend(N3_.Studies.studyLibrary,{"M Flow":{name:V5x,range:"0 to 100",calculateFN:N3_.Studies.calculateMoneyFlowIndex,inputs:{Period:"14" << 0},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};A1=s2O=>{var S8i,q5H,H36,i7d,i7U,o6F,D1J,b4u,H8y,w7K,I$t;S8i="undefi";S8i+="ned";q5H=typeof _CIQ !== S8i?_CIQ:s2O.CIQ;if(!q5H.Studies){console.error("movingAverages feature requires first activating studies feature.");}else {H36="aut";H36+="o";i7d="Pe";i7d+="rcent";i7U="a";i7U+="ut";i7U+="o";o6F="p";o6F+="oints";D1J="TripleExponentia";D1J+="l";b4u="DoubleExpone";b4u+="ntial";H8y="2-e";H8y+="x";H8y+="pon";H8y+="ential";w7K="t";w7K+="ema";I$t="de";I$t+="m";I$t+="a";q5H.Studies.prettify=q5H.extend({"2-exponential":I$t,"3-exponential":w7K,hull:"hma"},q5H.Studies.prettify);q5H.extend(q5H.Studies.movingAverage,{conversions:{hma:"hull",dema:H8y,tema:"3-exponential"},translations:{hull:"Hull","2-exponential":"Double Exponential","3-exponential":"Triple Exponential"},typeMap:{hma:"Hull",hull:"Hull",dema:"DoubleExponential","2-exponential":b4u,tema:"TripleExponential","3-exponential":D1J}});q5H.Studies.calculateMovingAverageHull=function(e_s,J_J){var L$B=f3BGj;var e0_,j7y,O3e,a3I,J0k,Q1K,j1D,V4P,Y7L,B$0,M0_,q7X,m$h;e0_="_W";e0_+="MA2";j7y="w";j7y+="m";j7y+="a";O3e="_W";O3e+="M";O3e+="A";O3e+="1";a3I=J_J.chart.scrubbed;L$B.T$X();J0k=J_J.inputs.Field;if(!J0k || J0k == "field"){J0k="Close";}q5H.Studies.MA("wma",J_J.days,J0k,0,O3e,e_s,J_J);q5H.Studies.MA(j7y,Math.ceil(J_J.days / 2),J0k,0,e0_,e_s,J_J);for(Q1K=J_J.startFrom - 1;Q1K >= 0;Q1K--){j1D=a3I[Q1K][J0k];if(j1D && typeof j1D == "object"){j1D=j1D[J_J.subField];}if(j1D || j1D === 0)break;}for(Q1K++;Q1K < a3I.length;Q1K++){V4P="_WM";V4P+="A1";V4P+=" ";Y7L="_MMA";Y7L+=" ";B$0=a3I[Q1K];L$B.j7J(86);var i6u=L$B.a$j(18,19,3,12,4);B$0[Y7L + J_J.name]=i6u * B$0["_WMA2 " + J_J.name] - B$0[V4P + J_J.name];}M0_=parseInt(J_J.inputs.Offset,"10" - 0);if(isNaN(M0_)){L$B.j7J(46);M0_=L$B.a$j("0",0);}q7X=Math.floor(Math.sqrt(J_J.days));q5H.Studies.MA("wma",q7X,"_MMA " + J_J.name,M0_,"_HMA",e_s,J_J);m$h=J_J.name;for(var I3b in J_J.outputs){L$B.N_M(82);m$h=L$B.a$j(m$h,"957.13" - 0 >= (2249,4526)?(8.32e+3,282.25):227.21 != (606.9,8050)?(628.48,4480) === 3060?(841.87,"2.81e+3" << 64):" ":(+"0x26df",0x1b6e),I3b);}for(Q1K=Math.max(J_J.days + q7X - 1,J_J.startFrom);Q1K < a3I.length;Q1K++){a3I[Q1K][m$h]=a3I[Q1K]["_HMA " + J_J.name];}};q5H.Studies.calculateMovingAverageDoubleExponential=function(u63,V8Z){var R2e=f3BGj;var S6j,R3o,d_M,k9z,Q5s,X9m,h6f,a2T,y3S,M$y,P8W,c$u,O1u,C$a;S6j="_EM";S6j+="A";S6j+="1 ";R3o="e";R3o+="m";R3o+="a";d_M="f";d_M+="ie";d_M+="ld";k9z=V8Z.chart.scrubbed;Q5s=V8Z.inputs.Field;if(!Q5s || Q5s == d_M){Q5s="Close";}q5H.Studies.MA("ema",V8Z.days,Q5s,0,"_EMA1",u63,V8Z);q5H.Studies.MA(R3o,V8Z.days,S6j + V8Z.name,0,"_EMA2",u63,V8Z);X9m=parseInt(V8Z.inputs.Offset,10);if(isNaN(X9m)){X9m=0;}y3S=X9m;for(h6f=V8Z.startFrom - 1;h6f >= 0;h6f--){a2T=k9z[h6f][Q5s];if(a2T && typeof a2T == "object"){a2T=a2T[V8Z.subField];}if(!a2T && a2T !== 0)continue;if(y3S > 0){y3S--;continue;}break;}M$y=V8Z.name;for(var p7S in V8Z.outputs){R2e.N_M(82);M$y=R2e.c0C(M$y," ",p7S);}P8W=[];for(h6f++;h6f < k9z.length;h6f++){if(h6f < 2 * (V8Z.days - 1))continue;c$u=k9z[h6f];R2e.j7J(9);var M8l=R2e.c0C(49,3,17);O1u=M8l * c$u["_EMA1 " + V8Z.name] - c$u["_EMA2 " + V8Z.name];if(h6f + X9m >= 0){if(h6f + X9m < k9z.length){R2e.N_M(1);k9z[R2e.a$j(h6f,X9m)][M$y]=O1u;}else {C$a={};C$a[M$y]=O1u;P8W.push(C$a);}}}V8Z.appendFutureTicks(u63,P8W);};q5H.Studies.calculateMovingAverageTripleExponential=function(v0r,Y9i){var Y7y=f3BGj;var L3x,b7A,a6R,I2R,U5Z,F0a,E_4,Y8n,A6X,l_B,C1c,K23,O8b,g6b,Y0$,V3W,C$X;L3x="_E";L3x+="MA";L3x+="1 ";b7A="em";b7A+="a";a6R="_";a6R+="E";a6R+="MA";a6R+="1";I2R="e";I2R+="m";I2R+="a";U5Z=Y9i.chart.scrubbed;F0a=Y9i.inputs.Field;if(!F0a || F0a == "field"){F0a="Close";}q5H.Studies.MA(I2R,Y9i.days,F0a,0,a6R,v0r,Y9i);q5H.Studies.MA(b7A,Y9i.days,L3x + Y9i.name,"0" | 0,"_EMA2",v0r,Y9i);q5H.Studies.MA("ema",Y9i.days,"_EMA2 " + Y9i.name,0,"_EMA3",v0r,Y9i);E_4=parseInt(Y9i.inputs.Offset,10);if(isNaN(E_4)){E_4=0;}l_B=E_4;for(Y8n=Y9i.startFrom - 1;Y8n >= 0;Y8n--){A6X=U5Z[Y8n][F0a];if(A6X && typeof A6X == "object"){A6X=A6X[Y9i.subField];}if(!A6X && A6X !== 0)continue;if(l_B > 0){l_B--;continue;}break;}C1c=Y9i.name;for(var d0L in Y9i.outputs){Y7y.N_M(82);C1c=Y7y.a$j(C1c,9299 === 622.05?543.67 >= (+"7250",4160)?"B":(!({}),"l"):" ",d0L);}K23=[];for(Y8n++;Y8n < U5Z.length;Y8n++){O8b="_EM";O8b+="A3 ";g6b="_";g6b+="EM";g6b+="A";g6b+="2 ";if(Y8n < 3 * (Y9i.days - 1))continue;Y0$=U5Z[Y8n];Y7y.j7J(124);var F1t=Y7y.c0C(15,16,42,10,2);Y7y.j7J(9);var P_j=Y7y.c0C(237,20,12);V3W=F1t * Y0$["_EMA1 " + Y9i.name] - P_j * Y0$[g6b + Y9i.name] + Y0$[O8b + Y9i.name];if(Y8n + E_4 >= 0){if(Y8n + E_4 < U5Z.length){Y7y.N_M(1);U5Z[Y7y.a$j(Y8n,E_4)][C1c]=V3W;}else {C$X={};C$X[C1c]=V3W;K23.push(C$X);}}}Y9i.appendFutureTicks(v0r,K23);};q5H.Studies.calculateMAEnvelope=function(c_1,B$X){var U3W,i07,k2K,F_F,M6N;U3W="Shi";U3W+="ft Type";i07=B$X.inputs.Field;f3BGj.f3X();if(!i07 || i07 == "field"){i07="Close";}q5H.Studies.MA(B$X.inputs["Moving Average Type"],B$X.days,i07,0,"MA",c_1,B$X);k2K=B$X.inputs[U3W];F_F=B$X.inputs.Shift;if(!k2K){k2K="percent";F_F=B$X.inputs["Shift Percentage"];}if(k2K == "percent"){f3BGj.N_M(7);q5H.Studies.calculateGenericEnvelope(c_1,B$X,f3BGj.a$j(F_F,100),"MA " + B$X.name);}else if(k2K == "points"){M6N="M";M6N+="A";M6N+=" ";q5H.Studies.calculateGenericEnvelope(c_1,B$X,null,M6N + B$X.name,null,Number(F_F));}};q5H.Studies.calculateMADev=function(C53,B3w){var R7H=f3BGj;var o9D,j_8,f9V,a_D,P3E,y5R,R0a,T3J,h09,n$X,N7W;o9D="_";o9D+="M";o9D+="A";j_8="Po";j_8+="i";j_8+="nt";j_8+="s";R7H.f3X();f9V="C";f9V+="lose";a_D=B3w.chart.scrubbed;if(a_D.length < B3w.days + 1){B3w.error=!0;return;}P3E=B3w.inputs.Field;if(!P3E || P3E == "field"){P3E=f9V;}y5R=B3w.inputs["Points Or Percent"];if(!y5R){y5R=j_8;}R0a=B3w.inputs["Moving Average Type"];if(!R0a){R0a="exponential";}q5H.Studies.MA(R0a,B3w.days,P3E,+"0",o9D,C53,B3w);T3J=B3w.name + "_hist";for(var O7x=Math.max(B3w.startFrom,B3w.days - 1);O7x < a_D.length;O7x++){h09=a_D[O7x];n$X=h09[P3E];if(n$X && typeof n$X == "object"){n$X=n$X[B3w.subField];}N7W=h09["_MA " + B3w.name];if(N7W || N7W === 0){if(y5R == "Points"){R7H.j7J(14);h09[T3J]=R7H.a$j(n$X,N7W);}else {R7H.N_M(140);h09[T3J]=R7H.c0C(100,1,n$X,N7W);}}}B3w.outputMap={};B3w.outputMap[B3w.name + "_hist"]="";};q5H.Studies.studyLibrary=q5H.extend(q5H.Studies.studyLibrary,{"MA Env":{name:"Moving Average Envelope",overlay:!!"1",seriesFN:q5H.Studies.displayChannel,calculateFN:q5H.Studies.calculateMAEnvelope,inputs:{Period:50,Field:"field","Shift Type":["percent",o6F],Shift:5,"Moving Average Type":"ma","Channel Fill":!!({})},outputs:{"MA Env Top":i7U,"MA Env Median":"auto","MA Env Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}},"MA Dev":{name:"Moving Average Deviation",calculateFN:q5H.Studies.calculateMADev,seriesFN:q5H.Studies.displayHistogramWithSeries,inputs:{Period:12,Field:"field","Moving Average Type":"ma","Points Or Percent":["Points",i7d]},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}},"High Low":{name:"High Low Bands",overlay:!"",seriesFN:q5H.Studies.displayChannel,calculateFN:function(Q4X,B0l){f3BGj.T$X();var M3g;M3g="t";M3g+="r";M3g+="iangular";B0l.inputs["Moving Average Type"]=M3g;q5H.Studies.calculateMAEnvelope(Q4X,B0l);},inputs:{Period:10,Field:"field","Shift Percentage":"5" * 1,"Channel Fill":!0},outputs:{"High Low Top":"auto","High Low Median":H36,"High Low Bottom":"auto"},attributes:{"Shift Percentage":{min:0.1,step:0.1}}}});}};d_=y1V=>{var T89=f3BGj;var i2N,U7B;i2N=typeof _CIQ !== "undefined"?_CIQ:y1V.CIQ;T89.T$X();if(!i2N.Studies){U7B="parabolicSAR feature requires first activa";U7B+="ting studies feature.";console.error(U7B);}else {i2N.Studies.calculatePSAR=function(J6C,r5x){var J5P,p96,B4M,J48,K2Q,S8U,I0n,X0D,e2H,p8W,u6a,U3M,V9m;J5P=r5x.chart.scrubbed;p96=0;B4M=null;J48=!!"";function F8j(){p96=0;B4M=null;J48=!J48;}K2Q=0;S8U=parseFloat(r5x.inputs["Minimum AF"]);I0n=parseFloat(r5x.inputs["Maximum AF"]);T89.f3X();if(r5x.startFrom > 0){X0D="_";X0D+="st";X0D+="ate";X0D+=" ";e2H="Re";e2H+="su";e2H+="lt";e2H+=" ";T89.j7J(141);var y2A=T89.c0C(19,6,26);K2Q=J5P[r5x.startFrom - y2A][e2H + r5x.name];p8W=J5P[r5x.startFrom - +"1"][X0D + r5x.name];if(p8W && p8W.length == 3){p96=p8W[0];B4M=p8W[1];T89.N_M(46);J48=p8W[T89.c0C("2",0)];}}for(var O6U=r5x.startFrom - 1;O6U < J5P.length - +"1";O6U++){if(O6U < 0)continue;if(J5P[O6U].futureTick)break;u6a=K2Q;if(J48){if(!B4M || B4M < J5P[O6U].High){B4M=J5P[O6U].High;T89.j7J(1);p96=Math.min(T89.c0C(p96,S8U),I0n);}T89.j7J(142);K2Q=T89.c0C(u6a,p96,u6a,B4M);U3M=Math.min(J5P[Math.max(1,O6U) - +"1"].Low,J5P[O6U].Low);if(K2Q > J5P[O6U + 1].Low){K2Q=B4M;F8j();}else if(K2Q > U3M){K2Q=U3M;}}else {if(!B4M || B4M > J5P[O6U].Low){B4M=J5P[O6U].Low;T89.N_M(1);p96=Math.min(T89.a$j(p96,S8U),I0n);}T89.j7J(142);K2Q=T89.c0C(u6a,p96,u6a,B4M);V9m=Math.max(J5P[Math.max(1,O6U) - 1].High,J5P[O6U].High);if(K2Q < J5P[O6U + 1].High){K2Q=B4M;F8j();}else if(K2Q < V9m){K2Q=V9m;}}T89.N_M(1);J5P[T89.a$j(O6U,1)]["_state " + r5x.name]=[p96,B4M,J48];if(!isNaN(J5P[O6U].High) || !isNaN(J5P[O6U].Low)){T89.j7J(1);J5P[T89.a$j(O6U,1)]["Result " + r5x.name]=K2Q;}}};i2N.Studies.studyLibrary=i2N.extend(i2N.Studies.studyLibrary,{PSAR:{name:"Parabolic SAR",overlay:!!"1",calculateFN:i2N.Studies.calculatePSAR,seriesFN:i2N.Studies.displayPSAR2,inputs:{"Minimum AF":0.02,"Maximum AF":0.2}}});}};O9=W7c=>{var u$x,P9g,f2Q,k5H,z4w;u$x="und";u$x+="ef";u$x+="in";u$x+="ed";P9g=typeof _CIQ !== u$x?_CIQ:W7c.CIQ;if(!P9g.Studies){f2Q="pivotPoints feature re";f2Q+="quires first activating studies feature.";console.error(f2Q);}else {k5H="#b";k5H+="3d987";z4w="#b8";z4w+="2";z4w+="c0";z4w+="b";P9g.Studies.calculatePivotPoints=function(n3D,Q9Y){var V3B=f3BGj;var j4Y,E9D,r2L,c4T,a4h,T50,p67,x_D,N7b,N3x,p_H,x0A,m8H,U4n,B7_,D04,A_3,h4j,r9U,i8n;V3B.T$X();j4Y="market.beginnin";j4Y+="gDayOfWeek";E9D="mi";E9D+="lliseco";E9D+="nd";r2L=Q9Y.chart.scrubbed;c4T="day";a4h=n3D.layout.interval;T50=n3D.layout.timeUnit;if(a4h == "day"){c4T="month";}else if(P9g.ChartEngine.isDailyInterval(a4h)){c4T="year";}else if(a4h == "second" || a4h == "millisecond" || T50 == "second" || T50 == E9D){c4T="15min";}else {p67="minu";p67+="te";x_D=n3D.layout.periodicity;if(a4h != p67){x_D*=a4h;}if(x_D >= 30){c4T="week";}}N7b=null;V3B.j7J(82);var K_Q=V3B.a$j(2,4,1);N3x=K_Q - P9g.getFromNS(n3D.chart,j4Y,0);p_H={pivotPoint:NaN,high:0,low:0,prevHigh:0,prevLow:0,hlSpread:0};if(Q9Y.startFrom > 1 && r2L[Q9Y.startFrom - 1]["_pointers " + Q9Y.name]){p_H=P9g.clone(r2L[Q9Y.startFrom - +"1"]["_pointers " + Q9Y.name]);}for(var f5R=Math.max(1,Q9Y.startFrom);f5R < r2L.length;f5R++){x0A="fibo";x0A+="n";x0A+="ac";x0A+="ci";m8H="d";m8H+="a";m8H+="y";if(!r2L[f5R - 1])continue;p_H.high=Math.max(p_H.high,r2L[f5R - 1].High);p_H.low=Math.min(p_H.low > 0?p_H.low:r2L[f5R - 1].Low,r2L[f5R - 1].Low);if(Q9Y.inputs.Continuous){T4t();}else if(c4T == "year" && r2L[f5R].DT.getYear() != r2L[f5R - 1].DT.getYear()){T4t();}else if(c4T == "month" && r2L[f5R].DT.getMonth() != r2L[f5R - 1].DT.getMonth()){T4t();}else if(c4T == "week" && (r2L[f5R].DT.getDay() + N3x) % 7 < (r2L[f5R - 1].DT.getDay() + N3x) % 7){T4t();}else if(c4T == m8H){if(N7b === null){N7b=P9g.Studies.getMarketOffset({stx:n3D,localQuoteDate:r2L[f5R].DT,shiftToDateBoundary:!!({})});}U4n=new Date(new Date(+r2L[f5R].DT).setMilliseconds(r2L[f5R].DT.getMilliseconds() + N7b));B7_=new Date(new Date(+r2L[f5R - 1].DT).setMilliseconds(r2L[f5R - 1].DT.getMilliseconds() + N7b));if(B7_.getDate() !== U4n.getDate() && B7_.getDay() !== 0 && n3D.chart.market.isMarketDate(U4n)){N7b=null;T4t();}}else if(c4T == "15min" && (r2L[f5R].DT.getHours() != r2L[f5R - 1].DT.getHours() || Math.floor(r2L[f5R].DT.getMinutes() / 15) != Math.floor(r2L[f5R - 1].DT.getMinutes() / 15))){T4t();}r2L[f5R]["Pivot " + Q9Y.name]=p_H.pivotPoint;if(Q9Y.inputs.Type.toLowerCase() == x0A){D04="S";D04+="u";D04+="pport 3 ";A_3="Sup";A_3+="port ";A_3+="2 ";h4j="Res";h4j+="ista";h4j+="nce ";h4j+="2 ";r9U="Resi";r9U+="stanc";r9U+="e ";r9U+="1 ";r2L[f5R][r9U + Q9Y.name]=p_H.pivotPoint + +"0.382" * p_H.hlSpread;r2L[f5R][h4j + Q9Y.name]=p_H.pivotPoint + 0.618 * p_H.hlSpread;r2L[f5R]["Resistance 3 " + Q9Y.name]=p_H.pivotPoint + p_H.hlSpread;r2L[f5R]["Support 1 " + Q9Y.name]=p_H.pivotPoint - 0.382 * p_H.hlSpread;r2L[f5R][A_3 + Q9Y.name]=p_H.pivotPoint - 0.618 * p_H.hlSpread;r2L[f5R][D04 + Q9Y.name]=p_H.pivotPoint - p_H.hlSpread;}else {i8n="Resis";i8n+="tance ";i8n+="2 ";V3B.N_M(14);var H7E=V3B.a$j(18,16);r2L[f5R]["Resistance 1 " + Q9Y.name]=H7E * p_H.pivotPoint - p_H.prevLow;r2L[f5R][i8n + Q9Y.name]=p_H.pivotPoint + p_H.hlSpread;V3B.N_M(3);var M_8=V3B.a$j(9,5,6);r2L[f5R]["Resistance 3 " + Q9Y.name]=p_H.prevHigh + M_8 * (p_H.pivotPoint - p_H.prevLow);V3B.j7J(102);var I2k=V3B.a$j(15,3,4,12);r2L[f5R]["Support 1 " + Q9Y.name]=I2k * p_H.pivotPoint - p_H.prevHigh;r2L[f5R]["Support 2 " + Q9Y.name]=p_H.pivotPoint - p_H.hlSpread;r2L[f5R]["Support 3 " + Q9Y.name]=p_H.prevLow - ("2" | 0) * (p_H.prevHigh - p_H.pivotPoint);}r2L[f5R]["_pointers " + Q9Y.name]=P9g.clone(p_H);}function T4t(){V3B.j7J(71);var p$B=V3B.c0C(18,145,8,1,2);p_H.pivotPoint=(p_H.high + p_H.low + r2L[f5R - p$B].Close) / ("3" >> 0);p_H.prevHigh=p_H.high;p_H.prevLow=p_H.low;p_H.hlSpread=p_H.high - p_H.low;V3B.f3X();p_H.high=p_H.low=0;}};P9g.Studies.displayPivotPoints=function(q_G,e2M,K7g){var X20,N_n,b0D,f8q,g$O,u59,H76,b$S,T_c,N2L;e2M.noSlopes=!e2M.inputs.Continuous;P9g.Studies.displaySeriesAsLine(q_G,e2M,K7g);if(e2M.inputs.Shading){X20="Support";X20+=" 3";N_n="S";N_n+="u";N_n+="ppor";N_n+="t 2 ";b0D="S";b0D+="u";b0D+="ppo";b0D+="rt 1 ";f8q="Suppo";f8q+="rt 1";g$O="P";g$O+="i";g$O+="vot ";u59="Resistance ";u59+="3";H76="Resistan";H76+="ce 2 ";b$S="Res";b$S+="istance ";b$S+="3";b$S+=" ";T_c=q_G.panels[e2M.panel];N2L={noSlopes:e2M.noSlopes,opacity:e2M.parameters.opacity?e2M.parameters.opacity:0.2,skipTransform:T_c.name != e2M.chart.name,yAxis:e2M.getYAxis(q_G)};if(!e2M.highlight && q_G.highlightedDraggable){N2L.opacity*=0.3;}P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:b$S + e2M.name,bottomBand:H76 + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[u59])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Resistance 2 " + e2M.name,bottomBand:"Resistance 1 " + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Resistance 2"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Resistance 1 " + e2M.name,bottomBand:g$O + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Resistance 1"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 1 " + e2M.name,bottomBand:"Pivot " + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[f8q])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 2 " + e2M.name,bottomBand:b0D + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Support 2"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 3 " + e2M.name,bottomBand:N_n + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[X20])},N2L));}};P9g.Studies.studyLibrary=P9g.extend(P9g.Studies.studyLibrary,{"Pivot Points":{name:"Pivot Points",overlay:!!1,seriesFN:P9g.Studies.displayPivotPoints,calculateFN:P9g.Studies.calculatePivotPoints,inputs:{Type:["standard","fibonacci"],Continuous:!!"",Shading:!!""},outputs:{Pivot:"auto","Resistance 1":z4w,"Support 1":"#699158","Resistance 2":"#e36460","Support 2":k5H,"Resistance 3":"#ffd0cf","Support 3":"#d3e8ae"},parameters:{init:{opacity:0.2}}}});}};s4=k_W=>{var Z08,E7W;Z08=typeof _CIQ !== "undefined"?_CIQ:k_W.CIQ;if(!Z08.Studies){console.error("prettyGoodOscillator feature requires first activating studies feature.");}else {E7W="Pretty Good O";E7W+="scillator";Z08.Studies.calculatePrettyGoodOscillator=function(F40,V9S){f3BGj.f3X();var i06,g$$,l7y,u4g;i06="_EM";i06+="A";g$$="true";g$$+="Rang";g$$+="e";l7y=V9S.chart.scrubbed;if(l7y.length < V9S.days + ("1" << 0)){V9S.error=!![];return;}Z08.Studies.MA("exponential",V9S.days,g$$,+"0",i06,F40,V9S);Z08.Studies.MA("simple",V9S.days,"Close","0" >> 96,"_SMA",F40,V9S);for(var F6J=Math.max("1" ^ 0,V9S.startFrom);F6J < l7y.length;F6J++){u4g="_";u4g+="EMA ";if(!l7y[F6J]["_SMA " + V9S.name] || !l7y[F6J][u4g + V9S.name])continue;l7y[F6J]["Result " + V9S.name]=(l7y[F6J].Close - l7y[F6J]["_SMA " + V9S.name]) / l7y[F6J]["_EMA " + V9S.name];}};Z08.Studies.studyLibrary=Z08.extend(Z08.Studies.studyLibrary,{"Pretty Good":{name:E7W,calculateFN:Z08.Studies.calculatePrettyGoodOscillator,parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:3,studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:"auto"}}}});}};e5=D4M=>{var u$J=f3BGj;var v0H,T63,o7V,f1l;u$J.T$X();v0H=typeof _CIQ !== "undefined"?_CIQ:D4M.CIQ;if(!v0H.Studies){console.error("priceMomentumOscillator feature requires first activating studies feature.");}else {T63="0.0";T63+="5";o7V="#F";o7V+="F0";o7V+="000";f1l="aut";f1l+="o";v0H.Studies.calculatePMO=function(N1C,P_Q){var l2_,E_6,B2d,t1Z,d0m,Y$4,S3n,j6T,T_D,c3E,M8n,N4l;l2_="P";l2_+="M";l2_+="O";l2_+=" ";E_6="e";E_6+="x";E_6+="ponentia";E_6+="l";B2d="_";B2d+="EMAx";B2d+="1";B2d+="0";t1Z="_";t1Z+="RO";t1Z+="Cx10 ";d0m="Clos";d0m+="e";Y$4="fi";Y$4+="e";Y$4+="ld";S3n={Smooth:Number(P_Q.inputs["Smoothing Period"]) - 1,Double:Number(P_Q.inputs["Double Smoothing Period"]) - 1,Signal:Number(P_Q.inputs["Signal Period"])};j6T=P_Q.chart.scrubbed;if(j6T.length < S3n.Smooth + S3n.Double){P_Q.error=!![];return;}u$J.T$X();T_D=P_Q.inputs.Field;if(!T_D || T_D == Y$4){T_D=d0m;}for(c3E=P_Q.startFrom;c3E < j6T.length;c3E++){if(!j6T[c3E])continue;if(!j6T[c3E - 1])continue;u$J.N_M(14);M8n=j6T[u$J.a$j(c3E,1)][T_D];if(M8n){N4l="_";N4l+="RO";N4l+="Cx";N4l+="10 ";u$J.j7J(143);var y$z=u$J.c0C(59,59,13,986);j6T[c3E][N4l + P_Q.name]=y$z * (j6T[c3E][T_D] / M8n - +"1");}}v0H.Studies.MA("exponential",S3n.Smooth,t1Z + P_Q.name,0,B2d,N1C,P_Q);v0H.Studies.MA(E_6,S3n.Double,"_EMAx10 " + P_Q.name,0,"PMO",N1C,P_Q);v0H.Studies.MA("exponential",S3n.Signal,l2_ + P_Q.name,0,"PMOSignal",N1C,P_Q);P_Q.zoneOutput="PMO";};v0H.Studies.studyLibrary=v0H.extend(v0H.Studies.studyLibrary,{PMO:{name:"Price Momentum Oscillator",calculateFN:v0H.Studies.calculatePMO,inputs:{Field:"field","Smoothing Period":35,"Double Smoothing Period":"20" * 1,"Signal Period":10},outputs:{PMO:f1l,PMOSignal:o7V},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:2.5,studyOverBoughtColor:"auto",studyOverSoldValue:-2.5,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:0,step:T63},studyOverSoldValue:{max:0,step:"0.05"}}}});}};C$=r2t=>{var t3t=f3BGj;var H9H,E6w,K76,c_j,W8H,a6Y,u0c;t3t.T$X();H9H=typeof _CIQ !== "undefined"?_CIQ:r2t.CIQ;if(!H9H.Studies){E6w="priceVolumeOscillat";E6w+="or feature requires first ac";E6w+="tivating studies fe";E6w+="ature.";console.error(E6w);}else {K76="0";K76+=".";K76+="1";c_j="#F";c_j+="F0";c_j+="00";c_j+="0";W8H="vdm";W8H+="a";a6Y="Poi";a6Y+="nts";u0c="e";u0c+="m";u0c+="a";H9H.Studies.calculatePriceOscillator=function(z6z,p0E){var C_6,R4R,r72,O_i,Y7G,k_5,W4q,Q0z,J9b,F6g,x3w,M8S,i5K;C_6="P";C_6+="oints Or";C_6+=" ";C_6+="Percent";R4R=p0E.chart.scrubbed;r72=Number(p0E.inputs["Short Cycle"]);O_i=Number(p0E.inputs["Long Cycle"]);if(R4R.length < Math.max(r72,O_i) + 1){p0E.error=!![];return;}Y7G=p0E.inputs.Field;k_5=p0E.inputs["Moving Average Type"];if(!k_5){k_5="simple";}if(!Y7G || Y7G == "field"){Y7G="Close";}if(p0E.parameters.isVolume){Y7G="Volume";k_5="exponential";}W4q=p0E.inputs[C_6];if(!W4q){W4q="Percent";}H9H.Studies.MA(k_5,r72,Y7G,0,"_Short MA",z6z,p0E);t3t.j7J(29);H9H.Studies.MA(k_5,O_i,Y7G,t3t.c0C(32,"0"),"_Long MA",z6z,p0E);for(var x63=Math.max(O_i,p0E.startFrom);x63 < R4R.length;x63++){Q0z="_Sho";Q0z+="rt MA ";J9b=R4R[x63];if(!J9b)continue;F6g=J9b[Q0z + p0E.name];x3w=J9b["_Long MA " + p0E.name];if((F6g || F6g === ("0" ^ 0)) && (x3w || x3w === 0)){M8S="Point";M8S+="s";if(W4q == M8S){t3t.N_M(14);J9b["Result " + p0E.name]=t3t.c0C(F6g,x3w);}else {t3t.j7J(144);J9b["Result " + p0E.name]=t3t.a$j(0,F6g,x3w,"1",100);}if(p0E.outputs["Increasing Bar"]){i5K="Res";i5K+="ult ";J9b[p0E.name + "_hist"]=J9b[i5K + p0E.name];p0E.outputMap={};p0E.outputMap[p0E.name + "_hist"]="";}}}};H9H.Studies.displayRAVI=function(F6V,v$8,t3z){var V92,i43,r9Q,L_A,Q_z,g_O,V9J,s5P,L_R,P0B,S5e,M81,a9_,v5j,l6C;V92="stx";V92+="_histogram";i43=F6V.panels[v$8.panel];r9Q=v$8.getContext(F6V);t3t.T$X();L_A=v$8.getYAxis(F6V);Q_z=F6V.pixelFromPrice(0,i43,L_A);t3t.N_M(145);var p5r=t3t.a$j(8,8,3,18,4);g_O=F6V.layout.candleWidth - p5r;if(g_O < 2){g_O=1;}V9J=H9H.Studies.determineColor(v$8.outputs["Increasing Bar"]);s5P=H9H.Studies.determineColor(v$8.outputs["Decreasing Bar"]);F6V.startClip(v$8.panel);F6V.canvasColor(V92);if(!v$8.underlay){r9Q.globalAlpha=1;}if(!v$8.highlight && F6V.highlightedDraggable){r9Q.globalAlpha*=0.3;}for(var c_E=0;c_E < t3z.length;c_E++){L_R="_";L_R+="his";L_R+="t";P0B="_";P0B+="h";P0B+="is";P0B+="t";S5e="_";S5e+="hist";M81=t3z[c_E];t3t.N_M(14);a9_=t3z[t3t.a$j(c_E,1)];if(!a9_){a9_=F6V.getPreviousBar(F6V.chart,v$8.name + S5e,c_E);}if(!M81)continue;v5j=0;l6C=0;if(v$8.parameters && v$8.parameters.studyOverZonesEnabled){v5j=parseFloat(v$8.parameters.studyOverBoughtValue);l6C=parseFloat(v$8.parameters.studyOverSoldValue);}if(!a9_){r9Q.fillStyle="#CCCCCC";}else if(M81[v$8.name + P0B] > v5j && a9_[v$8.name + L_R] < M81[v$8.name + "_hist"]){r9Q.fillStyle=V9J;}else if(M81[v$8.name + "_hist"] < l6C && a9_[v$8.name + "_hist"] > M81[v$8.name + "_hist"]){r9Q.fillStyle=s5P;}else {r9Q.fillStyle="#CCCCCC";}if(M81.candleWidth){g_O=Math.floor(Math.max(1,M81.candleWidth - 2));}r9Q.fillRect(Math.floor(F6V.pixelFromBar(c_E,i43.chart) - g_O / 2),Math.floor(Q_z),Math.floor(g_O),Math.floor(F6V.pixelFromPrice(M81[v$8.name + "_hist"],i43,L_A) - Q_z));}F6V.endClip();};H9H.Studies.studyLibrary=H9H.extend(H9H.Studies.studyLibrary,{"Price Osc":{name:"Price Oscillator",calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{Field:"field","Short Cycle":12,"Long Cycle":26,"Moving Average Type":u0c,"Points Or Percent":["Points","Percent"]}},"Vol Osc":{name:"Volume Oscillator",calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{"Short Cycle":12,"Long Cycle":26,"Points Or Percent":[a6Y,"Percent"]},parameters:{init:{isVolume:!![]}}},RAVI:{name:"RAVI",seriesFN:H9H.Studies.displayRAVI,calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{Field:"field","Moving Average Type":W8H,"Short Cycle":7,"Long Cycle":65},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":c_j},centerline:0,parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:3,studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:0,step:"0.1"},studyOverSoldValue:{max:0,step:K76}}}});}};y9=i36=>{var F8M=f3BGj;var z_N,h8q,m4Z,O9Q;z_N="und";z_N+="e";z_N+="f";F8M.T$X();z_N+="ined";h8q=typeof _CIQ !== z_N?_CIQ:i36.CIQ;if(!h8q.Studies){m4Z="primeNumber feature r";m4Z+="equires first activating studies feature.";console.error(m4Z);}else {O9Q="Pr";O9Q+="ime Nu";O9Q+="mber ";O9Q+="Bands";h8q.Studies.calculatePrimeNumber=function(r7N,E74){var P9i,r1b,q2A,A80,h1g,F3E,M51,Q1F,e_S,G2d;P9i=[];r1b=E74.chart.scrubbed;for(var h$n=E74.startFrom;h$n < r1b.length;h$n++){q2A="Pri";q2A+="me Number Bands";A80=r1b[h$n];if(!A80)continue;h1g=A80.High;if(!isNaN(h1g)){for(var u2Z="0" << 32;h1g > 0 && h1g <= ("10" ^ 0);u2Z++){h1g*=10;}if(P_F(h1g)){h1g+=2;}h1g=Math.ceil(h1g);if(h1g % 2 === 0){h1g++;}while(!P_F(h1g)){h1g+=+"2";}F8M.N_M(31);h1g/=Math.pow(F8M.a$j("10",32),u2Z);}F3E=A80.Low;if(!isNaN(F3E)){for(var I85=0;F3E > +"0" && F3E <= ("10" | 0);I85++){F8M.N_M(29);F3E*=F8M.c0C(0,"10");}if(P_F(F3E)){F8M.j7J(14);F3E-=F8M.c0C("2",0);}F3E=Math.floor(F3E);if(F3E % 2 === 0){F3E--;}if(F3E > "0" - 0){while(!P_F(F3E)){F3E-=2;}F3E/=Math.pow(10,I85);}}if(E74.type == q2A){if(!isNaN(h1g)){A80["Prime Bands Top " + E74.name]=h1g;}if(!isNaN(F3E)){A80["Prime Bands Bottom " + E74.name]=Math.max(0,F3E);}}else {M51="Tolerance P";M51+="ercentage";Q1F=0;e_S=E74.inputs[M51] * (h1g - F3E) / ("100" ^ 0);F8M.N_M(63);var o8M=F8M.c0C(3,7,12);G2d=h1g + F3E - o8M * A80.Close;if(G2d < e_S){Q1F=1;}else if(G2d > e_S){Q1F=-1;}if(Q1F){A80["Result " + E74.name]=Q1F;}}}function P_F(e7B){var R2s;if(e7B <= 0){return !!"";}else if(e7B != Math.floor(e7B)){return ![];}else if(P9i[e7B] === !!({}) || P9i[e7B] === ![]){return P9i[e7B];}R2s=parseInt(Math.sqrt(e7B),10);for(var d1G=2;d1G <= R2s;d1G++){if(e7B % d1G === "0" * 1){P9i[e7B]=!({});return !1;}}P9i[e7B]=!0;return !0;}};h8q.Studies.studyLibrary=h8q.extend(h8q.Studies.studyLibrary,{"Prime Number":{name:"Prime Number Oscillator",range:"-1 to 1",calculateFN:h8q.Studies.calculatePrimeNumber,centerline:+"0",inputs:{"Tolerance Percentage":5},attributes:{"Tolerance Percentage":{min:0.1,step:0.1}}},"Prime Number Bands":{name:O9Q,overlay:!![],calculateFN:h8q.Studies.calculatePrimeNumber,seriesFN:h8q.Studies.displayChannel,inputs:{"Channel Fill":!!"1"},outputs:{"Prime Bands Top":"auto","Prime Bands Bottom":"auto","Prime Bands Channel":"auto"}}});}};v8=B7U=>{var q1w=f3BGj;var x06,d9v,d0j,J8K,o5J,F_2;x06=typeof _CIQ !== "undefined"?_CIQ:B7U.CIQ;q1w.f3X();if(!x06.Studies){d9v="pring feature ";d9v+="requires first activating s";d9v+="t";d9v+="udies feature.";console.error(d9v);}else {d0j="wee";d0j+="kly";J8K="#F";J8K+="F";J8K+="0";J8K+="000";o5J="#0";o5J+="0";o5J+="DD";o5J+="00";F_2="f";F_2+="ield";x06.Studies.calculateKST=function(P_u,j0G){var V9V,b4s,V8_,M4i,i_J,c11,O4t,C$U,S_1,U1a,V35,R2C,j4a,B3n,Q$R,e5s,P4D,j5y,O2a,a4a;V9V="Lig";V9V+="htest S";V9V+="MA";V9V+=" Period";b4s="Heavi";b4s+="est ";b4s+="Rate of Change Period";V8_="Heavy Rate of C";V8_+="hange Peri";V8_+="od";M4i="Light Rate of Change P";M4i+="eriod";i_J="Light";i_J+="es";i_J+="t Rate";i_J+=" of Change Period";c11="Cl";c11+="o";c11+="s";c11+="e";O4t=j0G.chart.scrubbed;C$U=j0G.inputs.Field;if(!C$U || C$U == "field"){C$U=c11;}S_1={};U1a={};S_1[1]=Number(j0G.inputs[i_J]);S_1[2]=Number(j0G.inputs[M4i]);S_1[3]=Number(j0G.inputs[V8_]);S_1[4]=Number(j0G.inputs[b4s]);q1w.N_M(46);U1a[q1w.c0C("1",0)]=Number(j0G.inputs[V9V]);U1a[2]=Number(j0G.inputs["Light SMA Period"]);U1a[+"3"]=Number(j0G.inputs["Heavy SMA Period"]);U1a[4]=Number(j0G.inputs["Heaviest SMA Period"]);V35=Number(j0G.inputs["Signal Period"]);for(R2C=j0G.startFrom;R2C < O4t.length;R2C++){if(!O4t[R2C])continue;for(j4a=1;j4a <= 4;j4a++){B3n="_";B3n+="RO";B3n+="C";if(R2C >= S_1[j4a] && O4t[R2C - S_1[j4a]] && O4t[R2C - S_1[j4a]][C$U]){q1w.N_M(82);var r11=q1w.a$j(12,7,13);O4t[R2C][B3n + j4a + " " + j0G.name]=("100" >> r11) * (O4t[R2C][C$U] / O4t[R2C - S_1[j4a]][C$U] - +"1");}}}for(j4a=1;j4a <= "4" - 0;j4a++){x06.Studies.MA("simple",U1a[j4a],"_ROC" + j4a + ((2382,1140) < 8215?" ":(6910,2120) <= ("123" ^ 0)?(33.59,4.91e+3):0x1377) + j0G.name,0,"_SMA" + j4a,P_u,j0G);}for(R2C=j0G.startFrom;R2C < O4t.length;R2C++){O4t[R2C]["KST " + j0G.name]=null;for(j4a=1;j4a <= 4;j4a++){q1w.j7J(1);var n_F=q1w.c0C(312,1558);q1w.N_M(82);var C$M=q1w.c0C(3657,9,193);q1w.j7J(14);var T1k=q1w.c0C(94428,89182);q1w.j7J(82);var E67=q1w.a$j(2,10,8846);q1w.j7J(38);var M4z=q1w.a$j(0,33,8,4);q1w.j7J(146);var b$e=q1w.c0C(21459,18,19,4,7152);q1w.N_M(17);var T5k=q1w.c0C(7,16,44,4);q1w.N_M(9);var w5o=q1w.c0C(517920,12,43680);q1w.j7J(147);var V80=q1w.c0C(1,6510,6520,3255);Q$R=O4t[R2C]["_SMA" + j4a + ((n_F,985.76) == (+"2816",C$M)?T1k:(E67,"523.31" * M4z) === b$e?(973.34,739.59) == (T5k,253.02)?w5o:(!!"1",V80):" ") + j0G.name];if(Q$R || Q$R === 0){q1w.N_M(5);O4t[R2C]["KST " + j0G.name]+=q1w.a$j(Q$R,j4a);}}}e5s=-1435656228;P4D=63420138;q1w.N_M(14);j5y=q1w.a$j("2",0);for(var D79=1;q1w.S9Y(D79.toString(),D79.toString().length,18216) !== e5s;D79++){x06.Studies.MA("simple",V35,"KST " + j0G.name,0,"KSTSignal",P_u,j0G);q1w.N_M(46);j5y+=q1w.c0C("2",0);}if(q1w.O1W(j5y.toString(),j5y.toString().length,20741) !== P4D){O2a="KSTSigna";O2a+="l";a4a="KS";a4a+="T";a4a+="Sign";a4a+="al";x06.Studies.MA("KST ",V35,a4a * j0G.name,+"7",O2a,P_u,j0G);}};x06.Studies.calculateSpecialK=function(T8d,J16){var U3T,y1w,R3c,l7r,c8c,p5L,e3h,R$k,n6q,v7d;U3T=J16.chart.scrubbed;y1w=J16.inputs.Field;if(!y1w || y1w == "field"){y1w="Close";}R3c=J16.inputs.Interval;if(!R3c){R3c="daily";}l7r={daily:[10,15,+"20",30,50,65,75,100,195,+"265",390,+"530"],weekly:[+"4",5,6,+"8",10,13,15,+"20",39,52,78,104]};c8c={daily:[+"10",10,10,+"15",50,65,75,100,130,"130" | 2,130,195],weekly:[4,5,6,+"8","10" | 2,13,15,20,26,26,26,39]};for(p5L=J16.startFrom;p5L < U3T.length;p5L++){if(!U3T[p5L])continue;for(e3h=0;e3h < l7r[R3c].length;e3h++){if(p5L >= l7r[R3c][e3h] && U3T[p5L - l7r[R3c][e3h]] && U3T[p5L - l7r[R3c][e3h]][y1w]){q1w.N_M(148);var A$o=q1w.a$j(97,97,20,20,4);q1w.j7J(14);var i2b=q1w.c0C(16,15);U3T[p5L]["_ROC" + e3h + " " + J16.name]=A$o * (U3T[p5L][y1w] / U3T[p5L - l7r[R3c][e3h]][y1w] - i2b);}}}for(e3h=0;e3h < c8c[R3c].length;e3h++){R$k="s";R$k+="im";R$k+="p";R$k+="le";n6q="da";n6q+="i";n6q+="l";n6q+="y";x06.Studies.MA(R3c == n6q?R$k:"exponential",c8c[R3c][e3h],"_ROC" + e3h + ((4608,"7413" << 32) < (+"9640",4740)?("909.46" - 0,7000) < +"9520"?("4790" * 1,3304) > (4110,641.88)?!![]:(!![],!1):0x30a:" ") + J16.name,0,"_MA" + e3h,T8d,J16);}for(p5L=J16.startFrom;p5L < U3T.length;p5L++){U3T[p5L]["Result " + J16.name]=null;for(e3h=0;e3h < c8c[R3c].length;e3h++){q1w.j7J(15);var C5e=q1w.c0C(69,833,7);q1w.j7J(149);var y9f=q1w.c0C(72580,3,11,1,68774);q1w.N_M(69);var g1G=q1w.a$j(223,28,11);v7d=U3T[p5L]["_MA" + e3h + (C5e > (y9f,g1G)?" ":("0x1452" << 0,!!"")) + J16.name];if(v7d || v7d === 0){q1w.j7J(150);U3T[p5L]["Result " + J16.name]+=q1w.a$j(1,e3h,4,v7d);}}}};x06.Studies.studyLibrary=x06.extend(x06.Studies.studyLibrary,{"Pring KST":{name:"Pring's Know Sure Thing",calculateFN:x06.Studies.calculateKST,inputs:{Field:F_2,"Lightest Rate of Change Period":10,"Lightest SMA Period":10,"Light Rate of Change Period":15,"Light SMA Period":10,"Heavy Rate of Change Period":+"20","Heavy SMA Period":10,"Heaviest Rate of Change Period":30,"Heaviest SMA Period":15,"Signal Period":9},outputs:{KST:o5J,KSTSignal:J8K}},"Pring Sp-K":{name:"Pring's Special K",calculateFN:x06.Studies.calculateSpecialK,inputs:{Field:"field",Interval:["daily",d0j]}}});}};L4=E2N=>{var k10=f3BGj;var i8f,q9S,h2w,M5Y,w4Z,A8C,j0c,y8q,c9T,Z8R,u5M,e2$;i8f=typeof _CIQ !== "undefined"?_CIQ:E2N.CIQ;q9S=typeof _timezoneJS !== "undefined"?_timezoneJS:E2N.timezoneJS;k10.T$X();if(!i8f.Studies){h2w="project";h2w+="edVolume feature requires first activating studies feature.";console.error(h2w);}else if(!i8f.Studies.studyLibrary.PVAT){M5Y="hh";M5Y+=":";M5Y+="mm:s";M5Y+="s";w4Z="#";w4Z+="b8";w4Z+="2c";w4Z+="0c";A8C="#fe6";A8C+="4";A8C+="1c";j0c="+";j0c+="50%";y8q="-";y8q+="15";y8q+="0";y8q+="%";c9T="-";c9T+="10";c9T+="0";c9T+="%";Z8R="-50";Z8R+="%";u5M="+5";u5M+="0";u5M+="%";e2$="Projected Volume at T";e2$+="ime";i8f.Studies.initProjectedVolume=function(g_E,I8U,s5w,h21,D8V,V8j){var q_s,J4b,c8O;var {market:X3o}=g_E.chart;q_s="00:00";if(X3o){q_s=X3o.getNormalOpen();}if(q_s.match(/^[\d]{2}:[\d]{2}$/)){q_s+=":00";}if(!s5w["Anchor Time"] || !s5w["Anchor Time"].length){J4b="Ancho";J4b+="r Time";s5w[J4b]=q_s;}c8O=i8f.Studies.initializeFN(g_E,I8U,s5w,h21,D8V,V8j);if(!g_E.currentlyImporting){c8O.defaultAnchorTime=q_s;}return c8O;};i8f.Studies.validateProjectedVolumeLookback=function(m4y,i$_){var {interval:l_b, periodicity:H6g}=m4y.layout;var {"Lookback Days":c25}=i$_.inputs;k10.j7J(151);return k10.a$j(c25,l_b,H6g,"10");};i8f.Studies.calculateProjectedVolume=function(w92,G1a){var k2n,S7C,l$S,j7X,f1O,i85,d6b,j5O,W9C,g3B,H9h,M7D,V2R,d2i,H0V,T5D,t_K,G27,o9X,k1I,W3W,m9M,Z7m,n4V,A$b,j6C,x22,y7o,f9$,o1z,a2o,Z_L,P_o,k8a,F2a,J8T,H_V,j_O,O$k,g8B,Z1m,o3c,O9R,o7D,a8$,L_5,l8L,B0C,J2N,n1v,A$F,N12,A4o,P5o,a9r,M$t,H2W,l0A,O9C,w6A;k2n="Aver";k2n+="age";k2n+=" Line";S7C="H";S7C+="H";S7C+=":m";S7C+="m";l$S="Market.Symbol";function V5f(n0y){k10.f3X();var r6b;k10.N_M(46);n0y.setHours(k10.a$j("0",0));k10.j7J(46);n0y.setMinutes(k10.c0C("0",0));r6b=i8f.Studies.getMarketOffset({stx:w92,localQuoteDate:n0y});return new Date(n0y.getTime() + r6b);}l$S+="o";l$S+="gy.isForexSymbol";j7X=":0";function K15(r1J,V7E,A83){while(V7E){r1J=new Date(new Date(r1J).setDate(r1J.getDate() + (A83?1:-1)));if(w$c.isMarketDate(r1J)){V7E--;}}return r1J;}j7X+="0";f1O="An";f1O+="chor Selector";var {interval:V_2, timeUnit:H1G, aggregationType:E$7}=w92.layout;var {symbol:B$i, scroll:G36, scrubbed:B2V, market:w$c}=w92.chart;i85=G1a.type === "PAV";function O88(L4s){return {hours:L4s.getHours(),minutes:L4s.getMinutes()};}d6b=G1a.study?G1a.study.name:G1a.type;if(i8f.ChartEngine.isDailyInterval(V_2)){G1a.error=`${d6b} is Intraday Only`;}else if(H1G === "tick"){G1a.error=`Tick mode not supported for ${d6b}`;}else if(H1G !== "minute"){k10.j7J(82);G1a.error=`${k10.c0C("ute periodicities not supported for ","b-min","Su")}${d6b}`;}else if(!E$7 || !["ohlc","heikinashi"].includes(E$7)){G1a.error=`Aggregation type not supported for ${d6b}`;}else if(!i8f.Studies.validateProjectedVolumeLookback(w92,G1a)){j5O=-2144216569;W9C=+"308328842";g3B=2;for(var m7b=1;k10.S9Y(m7b.toString(),m7b.toString().length,51491) !== j5O;m7b++){G1a.error=`Selected lookback/periodicity combo not supported for ${d6b}`;g3B+=2;}if(k10.O1W(g3B.toString(),g3B.toString().length,280) !== W9C){G1a.error=`Selected lookback/periodicity combo not supported for ${d6b}`;}}if(G1a.error){return;}if(G1a.inputs[f1O]){i8f.Studies.initAnchorHandle(w92,G1a);}else {i8f.Studies.removeAnchorHandle(w92,G1a);}H9h=w$c?w$c.getNormalOpen():"00:00";function C8A(r47){k10.f3X();console.error(`Expected data for ${d84(r47).toDateString()} but found none. This may be caused by gaps in your data or an improperly configured market definition.`);}if(H9h.match(/^[\d]{2}:[\d]{2}$/)){H9h+=j7X;}if(!w92.currentlyImporting){if(!G1a.defaultAnchorTime){G1a.defaultAnchorTime=H9h;}else if(H9h !== G1a.defaultAnchorTime){G1a.defaultAnchorTime=H9h;M7D=-1509490596;V2R=-948817835;d2i=2;for(var v7J=1;k10.S9Y(v7J.toString(),v7J.toString().length,38648) !== M7D;v7J++){G1a.inputs["Anchor Time"]=H9h;d2i+=2;}if(k10.O1W(d2i.toString(),d2i.toString().length,208) !== V2R){G1a.inputs[""]=H9h;}i8f.Studies.repositionAnchor(w92,G1a);return;}}var {"Lookback Days":A_U, "Anchor Time":o3p}=G1a.inputs;var [e8W,u9q,E8C = 0]=o3p.split(873 != (9000,384.38)?":":"e");function u0M(J$X,D4Q){var X_D,a3V,o9c;k10.f3X();X_D=d84(J$X);a3V=w$c.getOpen(X_D) || V5f(X_D);o9c=X8O(a3V);if(!D4Q){return o9c;}if(o9c < ("0" ^ 0)){o9c=X8O(K15(a3V,1,!!"1"));}if(o9c >= B2V.length){return !"1";}return o9c;}H0V=i8f.getFn(l$S)(B$i);T5D=G1a.getDependents(w92);t_K=0;G27=[];T5D.forEach(({inputs:R74, outputMap:k88})=>{k10.f3X();if(R74.Period){t_K=Math.max(parseInt(R74.Period),t_K);G27.push(...Object.keys(k88));}});G1a.dependentsOutputMap=G27;k1I=u0M(B2V.length - +"1",!!({}));W3W=Math.ceil(B2V.length - 1 - G36);k10.f3X();k10.N_M(14);m9M=u0M(k10.c0C(W3W,t_K));if(H0V && B2V[m9M] && i8f.dateToStr(B2V[m9M].DT,S7C) !== H9h){k10.N_M(14);m9M=u0M(k10.a$j(m9M,1));;}if(!H0V && G1a.startFrom > m9M && B2V[m9M] && B2V[m9M]["V " + G1a.name] !== undefined && G27.every(D8N=>{return ![undefined,null].includes(B2V[m9M][D8N]);}) && k1I !== !!""){o9X=k1I;;}else {o9X=m9M;}Z7m=K15(d84(m9M),A_U);Z7m.setHours(0,0,0);n4V=u0M(0,!0);A$b=(n4V || n4V === 0) && X8O(K15(B2V[n4V].DT,A_U,!!1));if(B2V[0].DT > Z7m){if(w92.quoteDriver){w92.quoteDriver.extendHistoricalData({from:Z7m});if(A$b > 0){o9X=A$b;}else {return;}}else {k10.j7J(1);return G1a.error=`${k10.c0C("Not e","nough data to calculate ")}${d6b}`;}}if(o9X < 0 || o9X > B2V.length - 1){return;}function d84(l69){var j5J;j5J="s";k10.f3X();j5J+="cr";j5J+="ubb";j5J+="ed";return w92.dateFromTick(l69,null,!!({}),j5J);}j6C=B2V.length - G1a.startFrom === 1 && G1a.cachedFutureTicks && G1a.cachedLastProjection && +G1a.cachedLastProjection.DT === +B2V[B2V.length - 1].DT && B2V[o9X]["PV " + G1a.name];if(j6C){k10.j7J(3);var f0c=k10.a$j(9,10,0);B2V[B2V.length - f0c]["PV " + G1a.name]=G1a.cachedLastProjection.projectedValue;G1a.appendFutureTicks(w92,G1a.cachedFutureTicks);o9X=G1a.startFrom;}else {x22="P";x22+="V";x22+=" ";G1a.cachedFutureTicks=null;G1a.cachedLastProjection=null;y7o=[k1I];f9$=[];for(var r_l=0;r_l < A_U;r_l++){o1z=u0M(y7o[+"0"] - 1);y7o.unshift(o1z);;}while(y7o[A_U] >= o9X){a2o=y7o.pop();if(!B2V[a2o]){return C8A(a2o);}Z_L=O88(B2V[a2o].DT);var {hours:E8Y, minutes:p9t}=Z_L;P_o=w$c.getClose(B2V[a2o].DT);k8a=void 0;if(!P_o){k8a={hours:24,minutes:0};}else {F2a=w$c.getNextClose(B2V[a2o].DT);k8a=O88(P_o);while(!(k8a.hours === 0 && k8a.minutes === 0) && P_o.getDate() === F2a.getDate()){P_o=F2a;F2a=w$c.getNextClose(F2a);}k8a=O88(P_o);if(k8a.hours === 0){k8a.hours=24;}}J8T=y7o.slice();for(var c_z=0;c_z < J8T.length;c_z++){H_V=J8T[c_z];if(!B2V[H_V]){return C8A(H_V);}var {hours:R2j, minutes:O3Y}=O88(B2V[H_V].DT);if(R2j < E8Y || R2j === E8Y && O3Y < p9t){do {H_V++;({hours:R2j, minutes:O3Y}=O88(B2V[H_V].DT));}while(!(R2j === E8Y && O3Y === p9t));}J8T[c_z]=H_V;}while(E8Y < k8a.hours || E8Y === k8a.hours && p9t < k8a.minutes){j_O=!1;O$k=void 0;g8B=void 0;Z1m=0;o3c=0;for(var U_f=0;U_f < J8T.length;U_f++){O9R=J8T[U_f];if(O9R === null)continue;o7D=B2V[O9R];if(!o7D){return C8A(O9R);}var {hours:T$3, minutes:f2_}=O88(o7D.DT);a8$=o7D.DT.getDate();if(T$3 === E8Y && f2_ === p9t){Z1m+=o7D.Volume;o3c++;J8T[U_f]++;if(B2V[J8T[U_f]].DT.getDate() !== a8$){J8T[U_f]=null;}else if(!j_O){({hours:O$k, minutes:g8B}=O88(B2V[J8T[U_f]].DT));j_O=!![];;}}}E8Y=O$k;p9t=g8B;if(o3c === 0)break;k10.N_M(7);L_5=k10.c0C(Z1m,o3c);if(B2V[a2o]){B2V[a2o]["PV " + G1a.name]=L_5;}else {l8L="P";l8L+="V";l8L+=" ";f9$.push({[l8L + G1a.name]:L_5});}a2o++;}y7o.unshift(u0M(y7o[0] - +"1"));;}G1a.cachedLastProjection={DT:B2V[B2V.length - 1].DT,projectedValue:B2V[B2V.length - 1][x22 + G1a.name]};G1a.cachedFutureTicks=f9$;G1a.appendFutureTicks(w92,f9$);}function X8O(s0Q){k10.T$X();return w92.tickFromDate(s0Q,null,null,!![],"scrubbed");}B0C=null;J2N=0;n1v=+"0";if(j6C && i85){while(o9X > +"0"){k10.N_M(14);N12=B2V[k10.c0C(o9X,1)]["V " + G1a.name];if(N12 || N12 === +"0"){J2N=N12;break;}o9X--;}}for(var q08=o9X;q08 < B2V.length;q08++){A4o="V";A4o+=" ";P5o="America/New_Y";P5o+="ork";a9r=B2V[q08];M$t=a9r.Volume;H2W=a9r["PV " + G1a.name];if(!a9r.futureTick){A$F=q08;}if(B0C === null){B0C=i8f.Studies.getMarketOffset({stx:w92,localQuoteDate:B2V[q08].DT,shiftToDateBoundary:!![]});}l0A=new Date(new Date(a9r.DT).getTime() + B0C);O9C=B2V[q08 - 1] && new Date(new Date(B2V[q08 - 1].DT).getTime() + B0C);w6A=new q9S.Date(a9r.DT,w$c.market_def.market_tz || P5o);w6A.setHours(e8W,u9q,E8C);k10.N_M(1);w6A=new Date(k10.a$j(w6A,B0C));w6A.setDate(l0A.getDate());if(O9C && l0A.getDate() !== O9C.getDate()){B0C=null;J2N=0;n1v=0;}if(l0A < w6A){a9r["V " + G1a.name]=0;a9r["PV " + G1a.name]=0;continue;}if(i85){J2N+=M$t;n1v+=H2W;}else {J2N=M$t;n1v=H2W;}a9r[A4o + G1a.name]=J2N;if(!j6C){a9r["PV " + G1a.name]=n1v;}if([NaN,null,undefined].includes(J2N) && !a9r.futureTick){k10.N_M(1);G1a.error=`${d6b}${k10.a$j(" requires vol","ume")}`;return;}}G1a.cachedLastProjection.projectedValue=B2V[A$F]["PV " + G1a.name];G1a.outputMap={};G1a.outputMap["V " + G1a.name]="";G1a.outputMap["PV " + G1a.name]=k2n;T5D.forEach(A0e=>{A0e.startFrom=o9X;A0e.study.calculateFN(w92,A0e);});};i8f.Studies.displayProjectedVolume=function(T6f,g0Z,p6G){var y6b,S9U,q8C,g1y,P53,W_k,s4I,G_J,I9E,C08,l5V;y6b="stx_volume_";y6b+="underla";y6b+="y_";y6b+="down";S9U="stx_volu";S9U+="me_";S9U+="under";S9U+="lay_up";q8C="o";q8C+="bj";q8C+="ect";g1y="A";g1y+="lert Bar";if(g0Z.error){return i8f.Studies.removeAnchorHandle(T6f,g0Z);}var {"Alert Threshold":m$0 = ""}=g0Z.inputs;k10.N_M(152);var L77=k10.a$j(13,15,2,0);k10.j7J(85);var h05=k10.c0C(110,10,15,1490);k10.j7J(9);var D_n=k10.c0C(1754,18,103);P53=parseInt(m$0.slice(0,L77),h05) / D_n;W_k=g0Z.outputs[g1y];if(typeof W_k === q8C){W_k=W_k.color;}g0Z.volumeField="V " + g0Z.name;g0Z.alignStepToSide=!!({});g0Z.extendToEndOfLastBar=!!({});g0Z.lineWidth=+"2";s4I=T6f.canvasStyle(S9U).opacity;G_J=T6f.canvasStyle(y6b).opacity;g0Z.colorFunction=function(x6I){var G5W,I92,o7T,s$D,m0v,M8N;var {Open:v2c, Close:y$a, iqPrevClose:F2N}=x6I;G5W=T6f.colorByCandleDirection?v2c:F2N;k10.N_M(153);I92=k10.a$j(G5W,y$a);k10.f3X();o7T=x6I["PV " + g0Z.name];s$D=x6I["V " + g0Z.name];k10.j7J(154);m0v=k10.a$j(o7T,1,P53);M8N=P53 < +"0"?s$D < m0v:s$D > m0v;return {fill_color:M8N && W_k || (I92?this.fill_color_down:this.fill_color_up),border_color:I92?this.border_color_down:this.border_color_up,opacity:M8N?1:I92?G_J:s4I,border_opacity:I92?G_J:s4I};};I9E=g0Z.study?g0Z.study.name:g0Z.type;var {loadingMore:K7F}=T6f.chart;C08=p6G.some(w36=>{return w36 && w36[g0Z.volumeField] && w36["PV " + g0Z.name];});l5V=p6G[0] && !p6G[0].futureTick && (p6G[0]["PV " + g0Z.name] === undefined || (g0Z.dependentsOutputMap || []).some(J3V=>{k10.T$X();return [undefined,null].includes(p6G[+"0"][J3V]);}));if(!C08 && K7F){return g0Z.error=`Fetching data for ${I9E}`;}i8f.Studies.createVolumeChart(T6f,g0Z,p6G);i8f.Studies.displaySeriesAsLine(T6f,g0Z,p6G);if(g0Z.anchorHandle){i8f.Studies.displayAnchorHandleAndLine(T6f,g0Z,p6G);}if(l5V){i8f.Studies.calculateProjectedVolume(T6f,g0Z);}};i8f.Studies.studyLibrary=i8f.extend(i8f.Studies.studyLibrary,{PVAT:{name:e2$,range:"0 to max",yAxis:{ground:!"",initialMarginTop:0,zoom:0},calculateFN:i8f.Studies.calculateProjectedVolume,seriesFN:i8f.Studies.displayProjectedVolume,initializeFN:i8f.Studies.initProjectedVolume,removeFN:i8f.Studies.removeAnchorHandle,inputs:{"Lookback Days":10,"Anchor Time":"","Alert Threshold":["+150%","+125%","+100%","+75%",u5M,"+25%","None","-25%",Z8R,"-75%",c9T,"-125%",y8q],"Anchor Selector":!!1},outputs:{"Average Line":"#fe641c","Alert Bar":"#cfbd0e","Up Volume":"#8cc176","Down Volume":"#b82c0c"},parameters:{plotType:"step"},attributes:{"Anchor Time":{placeholder:"hh:mm:ss",step:+"1"},"Alert Threshold":{defaultSelected:j0c}}},PAV:{name:"Projected Aggregate Volume",range:"0 to max",yAxis:{ground:!!"1",initialMarginTop:+"0",zoom:0},calculateFN:i8f.Studies.calculateProjectedVolume,seriesFN:i8f.Studies.displayProjectedVolume,initializeFN:i8f.Studies.initProjectedVolume,removeFN:i8f.Studies.removeAnchorHandle,inputs:{"Lookback Days":10,"Anchor Time":"","Anchor Selector":!!"1"},outputs:{"Average Line":A8C,"Up Volume":"#8cc176","Down Volume":w4Z},parameters:{plotType:"step"},attributes:{"Anchor Time":{placeholder:M5Y,step:1}}}});}};o3=c28=>{var H8u,I5T;H8u=typeof _CIQ !== "undefined"?_CIQ:c28.CIQ;if(!H8u.Studies){I5T="psychologic";I5T+="alLine feature requires first activating st";I5T+="udies feature.";console.error(I5T);}else {H8u.Studies.calculatePsychologicalLine=function(K97,P0t){var l89,D75,b_p,d_3,F$h,a6L;l89=P0t.chart.scrubbed;if(l89.length < P0t.days + 1){P0t.error=!!"1";return;}D75=[];f3BGj.N_M(85);var i37=f3BGj.c0C(1400,11,16,22124);b_p=i37 / P0t.days;f3BGj.f3X();d_3=0;for(var B6w=Math.max(P0t.startFrom - P0t.days,1);B6w < l89.length;B6w++){F$h="Re";F$h+="sult ";if(l89[B6w].futureTick)break;a6L=Number(l89[B6w].Close > l89[B6w - 1].Close);if(a6L){d_3+=b_p;}D75.push(a6L);if(D75.length > P0t.days){d_3-=D75.shift() * b_p;}if(B6w < P0t.startFrom)continue;if(!isNaN(l89[B6w].Close)){l89[B6w][F$h + P0t.name]=d_3;}}};H8u.Studies.studyLibrary=H8u.extend(H8u.Studies.studyLibrary,{PSY:{name:"Psychological Line",range:"0 to 100",calculateFN:H8u.Studies.calculatePsychologicalLine,inputs:{Period:20}}});}};i8=f8y=>{var W9k,Q_4,L_2;W9k=typeof _CIQ !== "undefined"?_CIQ:f8y.CIQ;f3BGj.f3X();if(!W9k.Studies){Q_4="qsti";Q_4+="ck feature requires first activating studies feature.";console.error(Q_4);}else {L_2="QSti";L_2+="c";L_2+="k";W9k.Studies.calculateQStick=function(A$P,M5i){var H2v,h6w;f3BGj.T$X();H2v="R";H2v+="e";H2v+="sult";h6w=M5i.chart.scrubbed;if(h6w.length < M5i.days + 1){M5i.error=!0;return;}for(var l8G=M5i.startFrom;l8G < h6w.length;l8G++){h6w[l8G]["_Close-Open " + M5i.name]=h6w[l8G].Close - h6w[l8G].Open;}W9k.Studies.MA(M5i.inputs["Moving Average Type"],M5i.days,"_Close-Open " + M5i.name,0,H2v,A$P,M5i);};W9k.Studies.studyLibrary=W9k.extend(W9k.Studies.studyLibrary,{QStick:{name:L_2,calculateFN:W9k.Studies.calculateQStick,inputs:{Period:8,"Moving Average Type":"ma"}}});}};O$=o6W=>{var I7n=f3BGj;var P2N,w7b,E4r,c7g,D3m,Y0Q,k0e;P2N=typeof _CIQ !== "undefined"?_CIQ:o6W.CIQ;I7n.T$X();if(!P2N.Studies){console.error("rainbow feature requires first activating studies feature.");}else {w7b="#";w7b+="FF";w7b+="0000";E4r="#F";E4r+="F";E4r+="00F";E4r+="F";c7g="#7";c7g+="F00FF";D3m="#";D3m+="0";D3m+="0";D3m+="00FF";Y0Q="#";Y0Q+="00F";Y0Q+="FFF";k0e="#";k0e+="7FF";k0e+="F";k0e+="00";P2N.Studies.calculateRainbow=function(H99,A7a){var E7V,G7u,V2A,v0I,k50,P49,j21,r$L,J$d,k9k,a_h,F1R,j4Q,m5G,k6q,R8k,w8z;function x4U(B0c,X5E){var Y7K,L_r;I7n.N_M(102);var I4v=I7n.c0C(16,14,12,19);Y7K=Number.MAX_VALUE * I4v;L_r=Number.MAX_VALUE;for(var c8o=X5E - B0c + 1;c8o <= X5E;c8o++){if(c8o < +"0")continue;Y7K=Math.max(Y7K,V2A[c8o].Close);L_r=Math.min(L_r,V2A[c8o].Close);}return [L_r,Y7K];}E7V="O";E7V+="s";E7V+="c";G7u="f";G7u+="i";G7u+="e";G7u+="ld";V2A=A7a.chart.scrubbed;if(V2A.length < A7a.days + 1){A7a.error=!"";return;}v0I=A7a.inputs.Field;if(!v0I || v0I == G7u){v0I="Close";}k50=v0I;for(var p3P=1;p3P <= 10;p3P++){P2N.Studies.MA("simple",A7a.days,k50,"0" - 0,"SMA" + p3P,H99,A7a);I7n.N_M(24);var m2z=I7n.c0C(68420,62170,11,19);k50="SMA" + p3P + (8214 !== 239.2?" ":m2z) + A7a.name;}for(var v7K=Math.max(A7a.startFrom,10);v7K < V2A.length;v7K++){if(!V2A[v7K])continue;if(V2A[v7K].futureTick)break;P49=0;I7n.j7J(31);j21=I7n.a$j("0",96);I7n.N_M(27);var j85=I7n.c0C(17,18);r$L=Number.MAX_VALUE * j85;J$d=Number.MAX_VALUE;for(p3P=1;p3P <= 10;p3P++){I7n.N_M(155);var R_x=I7n.c0C(1992,26000,58500,18);I7n.j7J(1);var z9b=I7n.a$j(538,2692);I7n.j7J(1);var g_N=I7n.c0C(6143,10);k9k=V2A[v7K]["SMA" + p3P + (R_x < (+"1788",z9b)?" ":g_N) + A7a.name];if(k9k || k9k === 0){P49+=k9k;j21++;r$L=Math.max(r$L,k9k);J$d=Math.min(J$d,k9k);}}if(A7a.name.indexOf("Osc") > -1){a_h=x4U(A7a.inputs["HHV/LLV Lookback"],v7K);if(j21){F1R="Zer";F1R+="o";F1R+=" ";j4Q="Ov";j4Q+="er ";m5G="O";m5G+="ver ";k6q="_hi";k6q+="st";I7n.j7J(156);var h53=I7n.c0C(150,1500,2,4,3);V2A[v7K][A7a.name + k6q]=h53 * (V2A[v7K][v0I] - P49 / j21) / Math.max(0.000001,a_h[+"1"] - a_h[0]);I7n.N_M(157);var e_M=I7n.c0C(16,8,18,0,5);V2A[v7K][m5G + A7a.name]=("100" ^ 0) * (r$L - J$d) / Math.max(0.000001,a_h[e_M] - a_h[+"0"]);V2A[v7K]["Under " + A7a.name]=-V2A[v7K][j4Q + A7a.name];V2A[v7K][F1R + A7a.name]=0;}}}if(A7a.name.indexOf(E7V) > -1){R8k="Under";R8k+=" ";w8z="Pos";w8z+="itive B";w8z+="ar";A7a.outputMap={};A7a.outputMap["Over " + A7a.name]=w8z;A7a.outputMap[R8k + A7a.name]="Negative Bar";A7a.outputMap["Zero " + A7a.name]="";A7a.outputMap[A7a.name + "_hist"]="";}};P2N.Studies.displayRainbowMA=function(o3W,t0u,z3c){var h1L;h1L=o3W.panels[t0u.panel];I7n.T$X();for(var Q_Y=10;Q_Y > 0;Q_Y--){P2N.Studies.displayIndividualSeriesAsLine(o3W,t0u,h1L,"SMA" + Q_Y + ((3150,643.16) != 1993?" ":(1890,6870) >= 1910?(3970,6401) <= (702.52,2550)?("x",0x227e):"I":(9.70e+3,"928.77" - 0)) + t0u.name,z3c);}};P2N.Studies.displayRainbowOsc=function(B_Z,J7V,z06){var d39,V8c,y4c,k8H,A6b,h96,f$x,z6f,K8a,p1s,j6n,w3b,l0x,e_3,J6c,J3G,B_7;d39="Un";d39+="d";d39+="er";d39+=" ";V8c="Ze";V8c+="ro";V8c+=" ";y4c="Neg";y4c+="at";y4c+="ive Bar";k8H="O";k8H+="v";k8H+="er";k8H+=" ";P2N.Studies.displaySeriesAsLine(B_Z,J7V,z06);A6b=B_Z.panels[J7V.panel];h96=J7V.getContext(B_Z);f$x=J7V.getYAxis(B_Z);B_Z.startClip(J7V.panel);if(!J7V.highlight && B_Z.highlightedDraggable){h96.globalAlpha*=0.3;}z6f=B_Z.pixelFromPrice(0,A6b,f$x);K8a=A6b.name != J7V.chart.name;p1s=P2N.Studies.determineColor(J7V.outputs["Positive Bar"]);h96.strokeStyle=p1s;B_Z.plotDataSegmentAsLine(k8H + J7V.name,A6b,{skipTransform:K8a,label:!1,yAxis:f$x});j6n=h96.createLinearGradient(0,z6f,0,f$x.flipped?f$x.bottom:f$x.top);j6n.addColorStop(0,B_Z.containerColor);j6n.addColorStop(+"1",p1s);P2N.prepareChannelFill(B_Z,{skipTransform:K8a,color:j6n,opacity:!J7V.highlight && B_Z.highlightedDraggable?"0.3" - 0:1,panelName:J7V.panel,topBand:"Over " + J7V.name,bottomBand:"Zero " + J7V.name,yAxis:f$x});w3b=P2N.Studies.determineColor(J7V.outputs[y4c]);h96.strokeStyle=w3b;B_Z.plotDataSegmentAsLine("Under " + J7V.name,A6b,{skipTransform:K8a,label:!({}),yAxis:f$x});l0x=h96.createLinearGradient(0,z6f,0,f$x.flipped?f$x.top:f$x.bottom);l0x.addColorStop(0,B_Z.containerColor);l0x.addColorStop(1,w3b);P2N.prepareChannelFill(B_Z,{skipTransform:K8a,color:l0x,opacity:!J7V.highlight && B_Z.highlightedDraggable?0.3:1,panelName:J7V.panel,topBand:V8c + J7V.name,bottomBand:d39 + J7V.name,yAxis:f$x});I7n.N_M(1);var O1Z=I7n.c0C(0,2);e_3=B_Z.layout.candleWidth - O1Z;if(e_3 < +"2"){e_3=1;}B_Z.canvasColor("stx_histogram");if(!J7V.underlay){h96.globalAlpha=+"1";}if(!J7V.highlight && B_Z.highlightedDraggable){h96.globalAlpha*=0.3;}h96.fillStyle="#CCCCCC";for(var Z1h=0;Z1h < z06.length;Z1h++){J6c="_his";J6c+="t";J3G="_hi";J3G+="s";J3G+="t";B_7=z06[Z1h];if(!B_7)continue;if(B_7[J7V.name + J3G] > +"0"){h96.fillStyle=p1s;}else if(B_7[J7V.name + "_hist"] < "0" * 1){h96.fillStyle=w3b;}if(B_7.candleWidth){e_3=Math.floor(Math.max(+"1",B_7.candleWidth - 2));}h96.fillRect(Math.floor(B_Z.pixelFromBar(Z1h,A6b.chart) - e_3 / 2),Math.floor(z6f),Math.floor(e_3),Math.floor(B_Z.pixelFromPrice(B_7[J7V.name + J6c],A6b,f$x) - z6f));}B_Z.endClip();};P2N.Studies.studyLibrary=P2N.extend(P2N.Studies.studyLibrary,{"Rainbow MA":{name:"Rainbow Moving Average",overlay:!!"1",calculateFN:P2N.Studies.calculateRainbow,seriesFN:P2N.Studies.displayRainbowMA,inputs:{Period:2,Field:"field"},outputs:{SMA1:"#FF0000",SMA2:"#FF7F00",SMA3:"#FFFF00",SMA4:k0e,SMA5:"#00FF7F",SMA6:Y0Q,SMA7:"#007FFF",SMA8:D3m,SMA9:c7g,SMA10:E4r}},"Rainbow Osc":{name:"Rainbow Oscillator",calculateFN:P2N.Studies.calculateRainbow,seriesFN:P2N.Studies.displayRainbowOsc,centerline:0,inputs:{Period:2,Field:"field","HHV/LLV Lookback":10},outputs:{"Positive Bar":"#00DD00","Negative Bar":w7b}}});}};r_=P6O=>{var a$B,Y6c,G19,q$o;a$B="undefi";a$B+="ned";Y6c=typeof _CIQ !== a$B?_CIQ:P6O.CIQ;if(!Y6c.Studies){console.error("randomWalk feature requires first activating studies feature.");}else {G19="#000";G19+="0FF";q$o="#F";q$o+="F0000";Y6c.Studies.calculateRandomWalk=function(m2n,b7Y){var d3t,a83,d8o,k_v,o5B,B1N,h7$,l3n,R$7,I7y;d3t=b7Y.chart.scrubbed;if(d3t.length < b7Y.days + +"1"){b7Y.error=!0;return;}for(var R1w=Math.max(2,b7Y.startFrom);R1w < d3t.length;R1w++){a83=+"0";d8o=d3t[R1w].High;k_v=d3t[R1w].Low;o5B=0;B1N=0;for(var C37=1;C37 <= b7Y.days;C37++){if(d3t[R1w].futureTick)break;if(R1w <= C37){o5B=B1N=0;break;}a83+=d3t[R1w - C37].trueRange;h7$=a83 / C37 * Math.sqrt(C37);if(h7$){l3n=(d8o - d3t[R1w - C37].Low) / h7$;R$7=(d3t[R1w - C37].High - k_v) / h7$;o5B=Math.max(o5B,l3n);B1N=Math.max(B1N,R$7);}}if(!d3t[R1w].futureTick && (!isNaN(d8o) || !isNaN(k_v))){I7y="Random Walk";I7y+=" L";I7y+="o";I7y+="w ";d3t[R1w]["Random Walk High " + b7Y.name]=o5B;d3t[R1w][I7y + b7Y.name]=B1N;}}};Y6c.Studies.studyLibrary=Y6c.extend(Y6c.Studies.studyLibrary,{"Random Walk":{name:"Random Walk Index",calculateFN:Y6c.Studies.calculateRandomWalk,outputs:{"Random Walk High":q$o,"Random Walk Low":G19}}});}};O5=H6W=>{var N96;N96=typeof _CIQ !== "undefined"?_CIQ:H6W.CIQ;if(!N96.Studies){console.error("relativeVigor feature requires first activating studies feature.");}else {N96.Studies.calculateRelativeVigor=function(z0I,X8k){var D4K,S05,d_H,d8U,G1Y,L0a,z5O,t0R,j27,h2L,b$9,H_I,S7x;D4K="R";D4K+="el Vig ";S05="_De";S05+="n";S05+="om";d_H="triang";d_H+="ul";d_H+="ar";d8U="triangul";d8U+="ar";G1Y=X8k.chart.scrubbed;if(G1Y.length < X8k.days + ("1" << 64)){X8k.error=!!({});return;}for(L0a=X8k.startFrom;L0a < G1Y.length;L0a++){z5O="_C";z5O+="ha";z5O+="n";z5O+="ge ";t0R=G1Y[L0a];if(!isNaN(t0R.Close) && !isNaN(t0R.Open)){t0R[z5O + X8k.name]=t0R.Close - t0R.Open;}if(!isNaN(t0R.High) && !isNaN(t0R.Low)){t0R["_Range " + X8k.name]=t0R.High - t0R.Low;}}N96.Studies.MA(d8U,4,"_Change " + X8k.name,0,"_Numer",z0I,X8k);N96.Studies.MA(d_H,4,"_Range " + X8k.name,0,S05,z0I,X8k);j27=[];h2L=[];for(L0a=Math.max(X8k.startFrom - X8k.days,0);L0a < G1Y.length;L0a++){if(G1Y[L0a].futureTick)break;if(G1Y[L0a]["_Numer " + X8k.name] === null && G1Y[L0a]["_Denom " + X8k.name] === null)continue;j27.push(G1Y[L0a]["_Numer " + X8k.name]);h2L.push(G1Y[L0a]["_Denom " + X8k.name]);if(j27.length > X8k.days){j27.shift();h2L.shift();}b$9=0;H_I=0;for(S7x=0;S7x < j27.length;S7x++){b$9+=j27[S7x];}for(S7x=0;S7x < h2L.length;S7x++){H_I+=h2L[S7x];}if(H_I === "0" * 1){H_I=0.00000001;}if(L0a < X8k.startFrom)continue;f3BGj.j7J(7);G1Y[L0a]["Rel Vig " + X8k.name]=f3BGj.a$j(b$9,H_I);}N96.Studies.MA("triangular",4,D4K + X8k.name,"0" >> 64,"RelVigSignal",z0I,X8k);for(L0a=X8k.startFrom;L0a < G1Y.length;L0a++){G1Y[L0a][X8k.name + "_hist"]=G1Y[L0a]["Rel Vig " + X8k.name] - G1Y[L0a]["RelVigSignal " + X8k.name];}X8k.outputMap[X8k.name + "_hist"]="";};N96.Studies.studyLibrary=N96.extend(N96.Studies.studyLibrary,{"Rel Vig":{name:"Relative Vigor Index",seriesFN:N96.Studies.displayHistogramWithSeries,calculateFN:N96.Studies.calculateRelativeVigor,inputs:{Period:10},outputs:{"Rel Vig":"auto",RelVigSignal:"#FF0000","Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};i3=I6S=>{var R7i=f3BGj;var H1I,P5U;H1I="u";H1I+="n";H1I+="define";R7i.T$X();H1I+="d";P5U=typeof _CIQ !== H1I?_CIQ:I6S.CIQ;if(!P5U.Studies){console.error("rsi feature requires first activating studies feature.");}else {P5U.Studies.calculateRSI=function(K94,C$x){var Q6n,O3p,k$J,m1O,v2j,h6e,B87,Q2w;Q6n=C$x.chart.scrubbed;O3p=C$x.inputs.Field;R7i.T$X();if(!O3p || O3p == "field"){O3p="Close";}if(Q6n.length < C$x.days + 1){C$x.error=!0;return;}for(var v8L=C$x.startFrom;v8L < Q6n.length;v8L++){if(!v8L)continue;k$J=Q6n[v8L];R7i.j7J(14);m1O=Q6n[R7i.a$j(v8L,1)];if(!k$J[O3p] && k$J[O3p] !== "0" * 1)continue;if(!m1O[O3p] && m1O[O3p] !== 0)continue;v2j=k$J[O3p] - m1O[O3p];h6e=Math.min(v8L,C$x.days);B87=m1O["_avgG " + C$x.name];if(!B87){B87=0;}R7i.N_M(7);B87-=R7i.c0C(B87,h6e);Q2w=m1O["_avgL " + C$x.name];if(!Q2w){Q2w=0;}R7i.j7J(7);Q2w-=R7i.a$j(Q2w,h6e);if(v2j > "0" >> 32){R7i.N_M(7);B87+=R7i.a$j(v2j,h6e);}else if(v2j <= 0){R7i.j7J(7);Q2w-=R7i.a$j(v2j,h6e);}else continue;if(v8L >= C$x.days){if((B87 || B87 !== 0) && (Q2w || Q2w !== 0)){k$J["RSI " + C$x.name]=I8M(B87,Q2w);}}k$J["_avgG " + C$x.name]=B87;k$J["_avgL " + C$x.name]=Q2w;}function I8M(O9Y,C0d){var t84,W79,E7m,R1C;if(C0d === 0){return 100;}t84=1473040642;W79=-262708369;E7m=2;for(var G45=1;R7i.O1W(G45.toString(),G45.toString().length,68909) !== t84;G45++){R7i.N_M(14);R1C=R7i.a$j(O9Y,C0d);R7i.N_M(158);return R7i.a$j(465,"2",R1C,330);}R7i.T$X();if(R7i.O1W(E7m.toString(),E7m.toString().length,1299) !== W79){R7i.N_M(7);R1C=R7i.a$j(O9Y,C0d);R7i.N_M(159);return R7i.a$j(100,"1",R1C,100);}}C$x.zoneOutput="RSI";};P5U.Studies.studyLibrary=P5U.extend(P5U.Studies.studyLibrary,{rsi:{name:"RSI",inputs:{Period:+"14",Field:"field"},calculateFN:P5U.Studies.calculateRSI,range:"0 to 100",outputs:{RSI:"auto"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:+"80",studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};f3BGj.T$X();Q7=u4v=>{var E0y=f3BGj;E0y.f3X();var K6o,M65,J3s,l5D,I5R,Y2L,u3i;K6o="un";K6o+="de";K6o+="fin";K6o+="ed";M65=typeof _CIQ !== K6o?_CIQ:u4v.CIQ;if(!M65.Studies){E0y.j7J(14);J3s=E0y.a$j("87314054",0);l5D=1060655783;E0y.N_M(14);I5R=E0y.a$j("2",0);for(var D6e=1;E0y.O1W(D6e.toString(),D6e.toString().length,82177) !== J3s;D6e++){console.error("");I5R+=2;}if(E0y.O1W(I5R.toString(),I5R.toString().length,7892) !== l5D){console.error("");}console.error("schaffTrendCycle feature requires first activating studies feature.");}else {Y2L="a";Y2L+="u";Y2L+="t";Y2L+="o";u3i="fiel";u3i+="d";M65.Studies.calculateSchaff=function(P_V,D3g){var n33,N10,R_K,v4G,f2A,Y8d,P$4,G7V,B2v,i6M,s8I,M6m,k2P,I7_,A0B,p5a,m8v,W5U,I53,u3z,H$L,t35,B3u;n33="_MAC";n33+="D";n33+="2";N10="Cl";N10+="o";N10+="s";N10+="e";R_K="Short";R_K+=" ";R_K+="Cycle";v4G=D3g.chart.scrubbed;function V9H(X$M,s1$,U3X){var A1M,d8m,q$1;A1M=null;d8m=null;for(var A67=s1$ - X$M + 1;A67 <= s1$;A67++){E0y.N_M(1);var y_M=E0y.a$j(1132,6);E0y.j7J(17);var A8Q=E0y.a$j(9615,2,9600,5);E0y.j7J(19);var y5H=E0y.a$j(14,10,656,91169);E0y.N_M(157);var P1Z=E0y.a$j(18,13,17,468,20);E0y.j7J(160);var n7f=E0y.a$j(15,9460,5070,56760);q$1=v4G[A67][U3X + (y_M < A8Q?+"341" != 812.88?708.76 == y5H?(!0,P1Z):" ":(!1,!!({})):(+"1.66e+3",n7f)) + D3g.name];if(!q$1)continue;A1M=A1M === null?q$1:Math.min(A1M,q$1);d8m=d8m === null?q$1:Math.max(d8m,q$1);}return [A1M,d8m];}f2A=D3g.days;Y8d=Number(D3g.inputs[R_K]);P$4=Number(D3g.inputs["Long Cycle"]);if(v4G.length < Math.max(f2A,Y8d,P$4) + 1){D3g.error=!0;return;}G7V=D3g.inputs.Field;if(!G7V || G7V == "field"){G7V=N10;}B2v=0.5;M65.Studies.MA(D3g.inputs["Moving Average Type"],Y8d,G7V,0,"_MACD1",P_V,D3g);M65.Studies.MA(D3g.inputs["Moving Average Type"],P$4,G7V,+"0",n33,P_V,D3g);i6M=0;s8I=0;for(var W76=D3g.startFrom;W76 < v4G.length;W76++){M6m="_";M6m+="MA";M6m+="C";M6m+="D2 ";k2P="_MA";k2P+="C";k2P+="D";k2P+="1 ";I7_=v4G[W76];if(W76 < P$4 - 1)continue;A0B=I7_[k2P + D3g.name];p5a=I7_[M6m + D3g.name];if(A0B || A0B === "0" * 1 || p5a || p5a === 0){E0y.j7J(14);I7_["_MACD " + D3g.name]=E0y.c0C(A0B,p5a);}m8v=I7_["_MACD " + D3g.name];if(W76 < P$4 + (f2A - 1))continue;W5U=V9H(f2A,W76,"_MACD");i6M=W5U[1] > W5U[0]?+"100" * (m8v - W5U[0]) / (W5U[1] - W5U["0" ^ 0]):i6M;if(m8v || m8v === 0){I53="_";I53+="P";I53+="F ";I7_["_PF " + D3g.name]=v4G[W76 - 1][I53 + D3g.name]?v4G[W76 - 1]["_PF " + D3g.name] + B2v * (i6M - v4G[W76 - 1]["_PF " + D3g.name]):i6M;}u3z=I7_["_PF " + D3g.name];if(W76 < P$4 + 2 * (f2A - 1))continue;W5U=V9H(f2A,W76,"_PF");s8I=W5U[1] > W5U[+"0"]?("100" >> 0) * (u3z - W5U[0]) / (W5U[1] - W5U[0]):s8I;if(u3z || u3z === 0){H$L="Res";H$L+="ult ";t35="Res";t35+="u";t35+="lt ";B3u="Res";B3u+="u";B3u+="lt";B3u+=" ";I7_["Result " + D3g.name]=v4G[W76 - 1][B3u + D3g.name]?v4G[W76 - 1][t35 + D3g.name] + B2v * (s8I - v4G[W76 - +"1"][H$L + D3g.name]):s8I;}}};M65.Studies.studyLibrary=M65.extend(M65.Studies.studyLibrary,{Schaff:{name:"Schaff Trend Cycle",range:"0 to 100",calculateFN:M65.Studies.calculateSchaff,inputs:{Period:10,Field:u3i,"Short Cycle":23,"Long Cycle":50,"Moving Average Type":"ema"},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:+"75",studyOverBoughtColor:"auto",studyOverSoldValue:25,studyOverSoldColor:Y2L}}}});}};Z4=F1G=>{var o5b=f3BGj;o5b.T$X();var t4i,i$k,C9j,G2t;t4i="un";t4i+="defined";i$k=typeof _CIQ !== t4i?_CIQ:F1G.CIQ;if(!i$k.Studies){C9j="shinohara feature requires first activating stud";C9j+="ies feature.";console.error(C9j);}else {G2t="#E99B";G2t+="5";G2t+="4";i$k.Studies.calculateShinohara=function(c7R,M38){o5b.T$X();var v0d,R6f,a$X,b7F;v0d=M38.chart.scrubbed;if(v0d.length < M38.days + 1){M38.error=!!({});return;}R6f={weakNum:0,weakDen:0,strongNum:0,strongDen:0};if(M38.startFrom > 1){a$X="_accu";a$X+="ms ";R6f=i$k.clone(v0d[M38.startFrom - +"1"][a$X + M38.name]);}for(var B$_=M38.startFrom;B$_ < v0d.length;B$_++){R6f.weakNum+=v0d[B$_].High - v0d[B$_].Close;R6f.weakDen+=v0d[B$_].Close - v0d[B$_].Low;if(B$_ > "0" * 1){o5b.N_M(21);var x1A=o5b.a$j(193,12,16);R6f.strongNum+=v0d[B$_].High - v0d[B$_ - x1A].Close;o5b.j7J(137);var w8s=o5b.a$j(2,6,5,2);R6f.strongDen+=v0d[B$_ - w8s].Close - v0d[B$_].Low;}if(B$_ >= M38.days){b7F="Weak R";b7F+="ati";b7F+="o";b7F+=" ";R6f.weakNum-=v0d[B$_ - M38.days].High - v0d[B$_ - M38.days].Close;R6f.weakDen-=v0d[B$_ - M38.days].Close - v0d[B$_ - M38.days].Low;o5b.j7J(14);var w3k=o5b.a$j(117,17);v0d[B$_][b7F + M38.name]=w3k * R6f.weakNum / R6f.weakDen;if(B$_ > M38.days){o5b.N_M(23);var p31=o5b.c0C(0,4,3,8);R6f.strongNum-=v0d[B$_ - M38.days].High - v0d[B$_ - M38.days - p31].Close;o5b.N_M(13);var R9T=o5b.c0C(0,6,5,0);R6f.strongDen-=v0d[B$_ - M38.days - R9T].Close - v0d[B$_ - M38.days].Low;v0d[B$_]["Strong Ratio " + M38.name]=+"100" * R6f.strongNum / R6f.strongDen;}}v0d[B$_]["_accums " + M38.name]=i$k.clone(R6f);}};i$k.Studies.studyLibrary=i$k.extend(i$k.Studies.studyLibrary,{Shinohara:{name:"Shinohara Intensity Ratio",calculateFN:i$k.Studies.calculateShinohara,inputs:{Period:+"26"},outputs:{"Strong Ratio":G2t,"Weak Ratio":"#5F7CB8"}}});}};T0=C1j=>{var c2y,C3o,g$o,p8t,n6n;c2y=typeof _CIQ !== "undefined"?_CIQ:C1j.CIQ;if(!c2y.Studies){console.error("stochastics feature requires first activating studies feature.");}else {C3o="#";C3o+="F";C3o+="F000";C3o+="0";g$o="f";g$o+="ie";g$o+="l";g$o+="d";p8t="#F";p8t+="F";p8t+="00";p8t+="00";n6n="Stocha";n6n+="sti";n6n+="c Momentum Index";c2y.Studies.calculateStochastics=function(O9m,e$I){var r8a=f3BGj;var e3t,A3F,i6H,H$$,S1K,a1O,e6h,D08,t6E,G1I;e3t="_F";e3t+="a";e3t+="st%K ";A3F="fie";A3F+="ld";if(!e$I.smooth){e$I.smooth=e$I.inputs.Smooth;}r8a.f3X();i6H=e$I.inputs.Field;if(!i6H || i6H == A3F){i6H="Close";}H$$=e$I.inputs["%K Periods"];if(!H$$){H$$=e$I.days;}S1K=e$I.chart.scrubbed;function N3w(T_i,Z1l,O10){var s48,w9v,H_Z,F41,W5c,K3B,z_W;r8a.N_M(15);s48=r8a.a$j(T_i,1,O10);w9v=Number.MAX_VALUE * -("1" - 0);r8a.f3X();H_Z=Number.MAX_VALUE;for(var g4I=s48;g4I <= T_i;g4I++){F41="L";F41+="ow";W5c=S1K[g4I][Z1l == "Close"?F41:Z1l];K3B=S1K[g4I][Z1l == "Close"?"High":Z1l];if(!W5c && W5c !== 0)continue;if(!K3B && K3B !== 0)continue;H_Z=Math.min(H_Z,W5c);w9v=Math.max(w9v,K3B);}if(w9v == Number.MAX_VALUE * -1 || H_Z == Number.MAX_VALUE){return null;}z_W=w9v == H_Z?0:(S1K[T_i][Z1l] - H_Z) / (w9v - H_Z) * 100;return z_W;}if(S1K.length < Math.max(H$$,e$I.days) + 1){e$I.error=!!"1";return;}a1O=e$I.inputs["%K Smoothing Periods"];if(a1O && !e$I.inputs.Fast){e$I.smooth=!!1;}else if(e$I.smooth){a1O=3;}e6h=e$I.inputs["%D Periods"];if(!e6h){e6h=+"3";}if(e$I.outputs.Fast){D08="F";D08+="a";D08+="st";e$I.outputMap={};e$I.outputMap["%K " + e$I.name]=D08;e$I.outputMap["%D " + e$I.name]="Slow";}for(var k_a=Math.max(H$$,e$I.startFrom);k_a < S1K.length;k_a++){t6E="_F";t6E+="ast%K ";G1I=N3w(k_a,i6H,H$$);if(G1I !== null){S1K[k_a][t6E + e$I.name]=N3w(k_a,i6H,H$$);}}c2y.Studies.MA("simple",e$I.smooth?a1O:1,e3t + e$I.name,0,"%K",O9m,e$I);c2y.Studies.MA("simple",e6h,"%K " + e$I.name,0,"%D",O9m,e$I);};c2y.Studies.calculateStochMomentum=function(D$k,K7J){var U8y=f3BGj;var d8k,N2S,A6v,O5U,Z$1,N0I,Y99,o0q,X0o,O$8,l4f,e_w,Q1C,f2I,T8B,A2v,a2U;d8k="%";d8k+="K ";N2S="_";N2S+="D";N2S+="HL1";N2S+=" ";A6v="_D";A6v+="H";A6v+="L";A6v+=" ";O5U="exponent";O5U+="ial";Z$1="_H";Z$1+="S2";N0I="_H";N0I+="S";N0I+="1";Y99="exp";Y99+="onen";Y99+="tial";o0q="%K Smoo";o0q+="thi";o0q+="ng Periods";X0o="%";X0o+="K Perio";U8y.T$X();X0o+="ds";O$8=Number(K7J.inputs[X0o]);l4f=Number(K7J.inputs[o0q]);function v5_(Z5l,v83){var L4Y,P8L;L4Y=null;P8L=null;U8y.f3X();for(var q0p=v83 - Z5l + ("1" | 0);q0p <= v83;q0p++){L4Y=L4Y === null?f2I[q0p].Low:Math.min(L4Y,f2I[q0p].Low);P8L=P8L === null?f2I[q0p].High:Math.max(P8L,f2I[q0p].High);}return [L4Y,P8L];}e_w=Number(K7J.inputs["%K Double Smoothing Periods"]);Q1C=Number(K7J.inputs["%D Periods"]);f2I=K7J.chart.scrubbed;if(f2I.length < O$8 + l4f + e_w - 1 || f2I.length < Q1C){K7J.error=!0;return;}for(T8B=Math.max(O$8,K7J.startFrom) - 1;T8B < f2I.length;T8B++){A2v=f2I[T8B];a2U=v5_(O$8,T8B);U8y.j7J(14);var s5t=U8y.c0C(5,4);U8y.j7J(161);var k_O=U8y.c0C(0,414,10,16,16);A2v["_H " + K7J.name]=A2v.Close - (a2U[0] + a2U[s5t]) / k_O;U8y.j7J(14);var C8$=U8y.a$j(10,9);A2v["_DHL " + K7J.name]=a2U[C8$] - a2U[0];}c2y.Studies.MA(Y99,l4f,"_H " + K7J.name,0,N0I,D$k,K7J);c2y.Studies.MA("exponential",e_w,"_HS1 " + K7J.name,0,Z$1,D$k,K7J);c2y.Studies.MA(O5U,l4f,A6v + K7J.name,+"0","_DHL1",D$k,K7J);c2y.Studies.MA("exponential",e_w,N2S + K7J.name,0,"_DHL2",D$k,K7J);for(T8B=O$8 - 1;T8B < f2I.length;T8B++){U8y.j7J(61);var G5C=U8y.c0C(1100,1100,99);f2I[T8B]["%K " + K7J.name]=f2I[T8B]["_HS2 " + K7J.name] / (0.5 * f2I[T8B]["_DHL2 " + K7J.name]) * G5C;}c2y.Studies.MA(K7J.inputs["%D Moving Average Type"],Q1C,d8k + K7J.name,0,"%D",D$k,K7J);K7J.zoneOutput="%K";};c2y.Studies.studyLibrary=c2y.extend(c2y.Studies.studyLibrary,{"Stch Mtm":{name:n6n,calculateFN:c2y.Studies.calculateStochMomentum,inputs:{"%K Periods":10,"%K Smoothing Periods":3,"%K Double Smoothing Periods":3,"%D Periods":"10" >> 64,"%D Moving Average Type":"ema"},outputs:{"%K":"auto","%D":p8t},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:40,studyOverBoughtColor:"auto",studyOverSoldValue:-("40" >> 0),studyOverSoldColor:"auto"}}},stochastics:{name:"Stochastics (Simple)",range:"0 to 100",calculateFN:c2y.Studies.calculateStochastics,inputs:{Period:14,Field:g$o,Smooth:!!1},outputs:{Fast:"auto",Slow:C3o},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}},Stochastics:{name:"Stochastics",range:"0 to 100",calculateFN:c2y.Studies.calculateStochastics,inputs:{Field:"field","%K Periods":14,Fast:![],"%K Smoothing Periods":3,"%D Periods":3},outputs:{"%K":"auto","%D":"#FF0000"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:+"80",studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}},attributes:{"%K Smoothing Periods":{hidden:function(){f3BGj.T$X();return this.inputs.Fast;}}},centerline:+"50"}});}};x$=T1X=>{var O_B=f3BGj;O_B.T$X();var u9Y;u9Y=typeof _CIQ !== "undefined"?_CIQ:T1X.CIQ;if(!u9Y.Studies){console.error("supertrend feature requires first activating studies feature.");}else {u9Y.Studies.calculateSupertrend=function(F59,q_R){var x5N,T3l,J65,x9w,M8Y,a9R,a5A,k0V,e1U,z7h,u_b;x5N=q_R.chart.scrubbed;if(x5N.length < q_R.days + 1){q_R.error=!!1;return;}u9Y.Studies.calculateStudyATR(F59,q_R);for(var f5w=q_R.startFrom;f5w < x5N.length;f5w++){T3l="_Down";T3l+="tren";T3l+="d ";J65="A";J65+="T";J65+="R";J65+=" ";x9w=x5N[f5w];if(!x9w)continue;O_B.N_M(162);var D6t=O_B.a$j(3,6,3,13,10);M8Y=(x9w.High + x9w.Low) / D6t;a9R=q_R.inputs.Multiplier * x9w[J65 + q_R.name];O_B.j7J(14);a5A=O_B.c0C(M8Y,a9R);O_B.j7J(1);k0V=O_B.c0C(M8Y,a9R);if(f5w){e1U="_";e1U+="Downtr";e1U+="end ";if(x5N[f5w - 1] && x5N[f5w - 1].Close && x5N[f5w - ("1" << 64)].Close > x5N[f5w - 1]["_Uptrend " + q_R.name] && x5N[f5w - ("1" ^ 0)]["_Uptrend " + q_R.name] > a5A){O_B.j7J(14);a5A=x5N[O_B.c0C(f5w,1)]["_Uptrend " + q_R.name];}if(x5N[f5w - 1] && x5N[f5w - "1" * 1].Close && x5N[f5w - 1].Close < x5N[f5w - 1]["_Downtrend " + q_R.name] && x5N[f5w - 1]["_Downtrend " + q_R.name] < k0V){O_B.j7J(14);k0V=x5N[O_B.a$j(f5w,1)][e1U + q_R.name];}}O_B.N_M(31);x9w["_Direction " + q_R.name]=O_B.c0C("1",32);if(f5w){z7h="_Direction";z7h+=" ";u_b="_Direction";u_b+=" ";O_B.j7J(14);x9w[u_b + q_R.name]=x5N[O_B.c0C(f5w,1)]["_Direction " + q_R.name];if(x9w.Close > x5N[f5w - 1]["_Downtrend " + q_R.name]){x9w[z7h + q_R.name]=1;}else if(x9w.Close < x5N[f5w - 1]["_Uptrend " + q_R.name]){x9w["_Direction " + q_R.name]=-1;}}x9w["_Uptrend " + q_R.name]=a5A;x9w[T3l + q_R.name]=k0V;x9w["Trend " + q_R.name]=x9w["_Direction " + q_R.name] > 0?a5A:k0V;if(!f5w)continue;}q_R.outputMap={};q_R.outputMap["Trend " + q_R.name]="";};u9Y.Studies.displaySupertrend=function(r5$,A2N,X96){var a_H,I5_,e6q,Q0a,T84,Q1r,B$K,V5q,T7j,I8D,i7J,A$E;a_H="T";a_H+="r";a_H+="e";a_H+="nd ";I5_=r5$.panels[A2N.panel];e6q=A2N.getContext(r5$);Q0a=A2N.getYAxis(r5$);T84={skipTransform:I5_.name != A2N.chart.name,skipProjections:!!({}),label:r5$.preferences.labels,yAxis:Q0a,highlight:A2N.highlight};e6q.strokeStyle=J2z(r5$,X96[X96.length - 1]);e6q.lineWidth=2;if(A2N.highlight){e6q.lineWidth=1.5;}Q1r=a_H + A2N.name;for(var t4p=+"0";I5_.chart.transformFunc && Q0a != I5_.chart.yAxis && t4p < X96.length;t4p++){B$K=X96[t4p];if(B$K && B$K.transform){B$K.transform[Q1r]=I5_.chart.transformFunc(r5$,I5_.chart,B$K[Q1r]);}}r5$.plotDataSegmentAsLine(Q1r,I5_,T84,J2z);e6q.lineWidth=+"1";e6q.globalAlpha=1;r5$.startClip(A2N.panel);if(!A2N.highlight && r5$.highlightedDraggable){e6q.globalAlpha*=0.3;}function J2z(W3M,S6Z,H8H){var K1L,y_j,a_9,B_i;K1L="_";K1L+="D";K1L+="irec";O_B.f3X();K1L+="tion ";if(S6Z && S6Z[K1L + A2N.name] < +"0"){return A2N.outputs.Downtrend;}y_j=-1291900641;a_9=-806501474;B_i=2;for(var O_q=+"1";O_B.S9Y(O_q.toString(),O_q.toString().length,45473) !== y_j;O_q++){return A2N.outputs.Uptrend;}if(O_B.S9Y(B_i.toString(),B_i.toString().length,46148) !== a_9){return A2N.outputs.Uptrend;}}O_B.N_M(163);var U_p=O_B.a$j(18,116,4,3,416);O_B.j7J(1);var t5D=O_B.c0C(981,6863);O_B.j7J(3);O_B.f3X();var k2Y=O_B.c0C(15658,10,16626);O_B.N_M(122);var Z$d=O_B.a$j(16,18,1,3);O_B.N_M(3);var N9Z=O_B.c0C(7,9,0);V5q=e6q.measureText(U_p != t5D?"\u25B2":(k2Y,+"224.01") > "271.12" * Z$d?!({}):(574.82,!1)).width / N9Z;for(T7j="0" ^ 0;T7j < X96.length;T7j++){if(!X96[T7j] || !X96[T7j - 1])continue;if(X96[T7j - 1]["_Direction " + A2N.name] > X96[T7j]["_Direction " + A2N.name]){e6q.fillStyle=A2N.outputs.Downtrend;e6q.textBaseline="bottom";I8D=r5$.pixelFromPrice(X96[T7j].High,I5_,Q0a);for(var H7P=5;H7P <= 45;H7P+="10" * 1){if(Q0a.flipped){e6q.fillText("\u25B2",r5$.pixelFromBar(T7j) - V5q,I8D + H7P);}else {e6q.fillText((5411,5634) != 1404?"\u25BC":!"",r5$.pixelFromBar(T7j) - V5q,I8D - H7P);}}}else if(X96[T7j - 1]["_Direction " + A2N.name] < X96[T7j]["_Direction " + A2N.name]){i7J="t";i7J+="op";e6q.fillStyle=A2N.outputs.Uptrend;e6q.textBaseline=i7J;A$E=r5$.pixelFromPrice(X96[T7j].Low,I5_,Q0a);for(var K4k=5;K4k <= "45" - 0;K4k+=10){if(Q0a.flipped){e6q.fillText((108.83,851) != 2670?"\u25BC":+"8040" != 56.89?3828 !== (524.49,858.99)?8.30e+3:("t",1.03e+3):855.95,r5$.pixelFromBar(T7j) - V5q,A$E - K4k);}else {e6q.fillText(147 <= (3706,1760)?783.05 !== "5090" - 0?"\u25B2":"8973" << 32 == (6026,3312)?![]:"t":(868.37,408.07),r5$.pixelFromBar(T7j) - V5q,A$E + K4k);}}}}r5$.endClip();};u9Y.Studies.studyLibrary=u9Y.extend(u9Y.Studies.studyLibrary,{Supertrend:{name:"Supertrend",overlay:!"",seriesFN:u9Y.Studies.displaySupertrend,calculateFN:u9Y.Studies.calculateSupertrend,inputs:{Period:7,Multiplier:3},outputs:{Uptrend:"#8cc176",Downtrend:"#b82c0c"},attributes:{Multiplier:{min:"0.1" - 0,step:0.1}}}});}};k4=M_u=>{var U5u=f3BGj;var r7I,R0Y;r7I="unde";U5u.T$X();r7I+="fi";r7I+="n";r7I+="ed";R0Y=typeof _CIQ !== r7I?_CIQ:M_u.CIQ;if(!R0Y.Studies){console.error("swingIndex feature requires first activating studies feature.");}else {R0Y.Studies.calculateSwingIndex=function(O5o,W$z){var i8U,R33,o6L,c6H,e0E,N66,S_d,X0h,i7C,Q3y,L$6,K2v,M1X;i8U="Re";i8U+="sult ";R33=W$z.inputs["Limit Move Value"];if(R33 === null || isNaN(R33)){R33=99999;}o6L=W$z.chart.scrubbed;c6H=0;if(W$z.startFrom > 1){c6H=o6L[W$z.startFrom - +"1"][i8U + W$z.name];}for(var I7b=Math.max(1,W$z.startFrom);I7b < o6L.length;I7b++){e0E="Re";e0E+="sult ";N66=Math.abs(o6L[I7b].High - o6L[I7b - 1].Close);S_d=Math.abs(o6L[I7b].Low - o6L[I7b - 1].Close);X0h=Math.abs(o6L[I7b].High - o6L[I7b].Low);i7C=Math.abs(o6L[I7b - +"1"].Close - o6L[I7b - 1].Open);Q3y=Math.max(N66,S_d);L$6=Math.max(X0h,Q3y);U5u.N_M(25);K2v=U5u.c0C(0.25,i7C,L$6);if(L$6 == N66){U5u.N_M(5);K2v-=U5u.c0C(S_d,0.5);}else if(L$6 == S_d){U5u.N_M(5);K2v-=U5u.c0C(N66,0.5);}U5u.N_M(164);var U69=U5u.c0C(3,20,29950,100,5);U5u.j7J(14);var z8O=U5u.a$j(14,13);U5u.j7J(34);var Q55=U5u.c0C(2,17,17);U5u.j7J(9);var E9a=U5u.c0C(104,15,7);M1X=U69 * (o6L[I7b].Close - o6L[I7b - z8O].Close + 0.5 * (o6L[I7b].Close - o6L[I7b].Open) + 0.25 * (o6L[I7b - Q55].Close - o6L[I7b - E9a].Open)) / K2v * (Q3y / R33);if(K2v === 0 || R33 === ("0" | 0)){M1X=0;}if(W$z.type == "Swing"){c6H=0;}c6H+=M1X;o6L[I7b][e0E + W$z.name]=c6H;}};R0Y.Studies.studyLibrary=R0Y.extend(R0Y.Studies.studyLibrary,{"Acc Swing":{name:"Accumulative Swing Index",calculateFN:R0Y.Studies.calculateSwingIndex,inputs:{"Limit Move Value":+"0.5"}},Swing:{name:"Swing Index",calculateFN:R0Y.Studies.calculateSwingIndex,inputs:{"Limit Move Value":0.5}}});}};N1=t59=>{var B_4=f3BGj;var t$3,O4k,n3q,l2T;t$3=typeof _CIQ !== "undefined"?_CIQ:t59.CIQ;B_4.f3X();if(!t$3.Studies){console.error("trendIntensity feature requires first activating studies feature.");}else {O4k="au";O4k+="t";O4k+="o";n3q="fi";n3q+="e";n3q+="l";n3q+="d";l2T="0 t";l2T+="o";l2T+=" 100";t$3.Studies.calculateTrendIntensity=function(z2t,U1L){var K9C,X3q,A47,D_q,h9b,B3H,n9J,E8N,z6W,r4v,J8Y,K0q;K9C="T";K9C+="I";K9C+="I";B_4.T$X();K9C+=" ";X3q="Signal ";X3q+="Period";A47="e";A47+="m";A47+="a";D_q="m";D_q+="a";h9b=U1L.chart.scrubbed;if(h9b.length < U1L.days + 1){U1L.error=!![];return;}B3H=U1L.inputs.Field;function B0K(z0$,R_7){if(Math.abs(R_7) < 0.00000001){return 100;}B_4.f3X();B_4.j7J(165);return B_4.a$j(1,z0$,R_7,100,0,"100");}if(!B3H || B3H == "field"){B3H="Close";}t$3.Studies.MA(D_q,U1L.days,B3H,0,"_SMA",z2t,U1L);n9J=0;E8N=0;J8Y=[];K0q=Math.ceil(U1L.days / ("2" | 2));for(z6W=Math.max(0,U1L.startFrom - K0q);z6W < h9b.length;z6W++){if(!h9b[z6W]["_SMA " + U1L.name] && h9b[z6W]["_SMA " + U1L.name] !== 0)continue;r4v=h9b[z6W][B3H] - h9b[z6W]["_SMA " + U1L.name];if(r4v < "0" << 0){B_4.N_M(166);E8N+=B_4.a$j(r4v,1);}else {n9J+=r4v;}J8Y.push(r4v);if(J8Y.length > K0q){r4v=J8Y.shift();if(r4v < 0){B_4.j7J(166);E8N-=B_4.c0C(r4v,1);}else {n9J-=r4v;}}if(z6W < U1L.startFrom)continue;h9b[z6W]["TII " + U1L.name]=B0K(n9J,E8N);}t$3.Studies.MA(A47,U1L.inputs[X3q],K9C + U1L.name,0,"Signal",z2t,U1L);};t$3.Studies.studyLibrary=t$3.extend(t$3.Studies.studyLibrary,{"Trend Int":{name:"Trend Intensity Index",calculateFN:t$3.Studies.calculateTrendIntensity,range:l2T,inputs:{Period:"14" >> 0,Field:n3q,"Signal Period":9},outputs:{TII:"auto",Signal:"#FF0000"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:80,studyOverBoughtColor:O4k,studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};a7=G$9=>{var A4H;A4H=typeof _CIQ !== "undefined"?_CIQ:G$9.CIQ;if(!A4H.Studies){console.error("trix feature requires first activating studies feature.");}else {A4H.Studies.calculateTRIX=function(Z0U,s7l){var W5Y=f3BGj;var w2z,w7C,I3z,W16,b0I,k1m,F6r,p2V;w2z="_";w2z+="MA";w2z+="1 ";w7C=s7l.chart.scrubbed;if(w7C.length < s7l.days + "1" * 1){s7l.error=!!({});return;}I3z=s7l.name;W5Y.j7J(1);W16=["Close",W5Y.a$j(w2z,I3z),W5Y.a$j("_MA2 ",I3z),W5Y.c0C("_MA3 ",I3z)];for(var m3A=0;m3A < W16.length - 1;m3A++){A4H.Studies.MA("exponential",s7l.days,W16[m3A],0,"_MA" + (m3A + 1).toString(),Z0U,s7l);}b0I=W16[3];for(var j2k=Math.max(1,s7l.startFrom);j2k < w7C.length;j2k++){k1m="R";k1m+="e";k1m+="sult";k1m+=" ";W5Y.N_M(167);F6r=w7C[W5Y.a$j(j2k,1,"1")][b0I];if(!F6r)continue;p2V=w7C[j2k][b0I];if(p2V || p2V === 0){W5Y.j7J(1);w7C[j2k][W5Y.a$j(k1m,I3z)]=W5Y.c0C("100",p2V,F6r,1,W5Y.j7J(168));}}};A4H.Studies.studyLibrary=A4H.extend(A4H.Studies.studyLibrary,{TRIX:{name:"TRIX",calculateFN:A4H.Studies.calculateTRIX}});}};h3=L2j=>{var p_y,X2S,r0c;p_y="undefi";p_y+="ned";X2S=typeof _CIQ !== p_y?_CIQ:L2j.CIQ;if(!X2S.Studies){r0c="twiggsMoneyFlow feature requires first activating stu";r0c+="dies feature.";console.error(r0c);}else {X2S.Studies.calculateTwiggsMoneyFlow=function(a8r,h6h){var Z5T=f3BGj;var T4x,D0p,m5X,O96,Q7T,b44,Y2f,d92,r37,M0B,x6$;T4x=h6h.chart.scrubbed;if(T4x.length < h6h.days){h6h.error=!![];return;}D0p=0;m5X=0;Z5T.N_M(3);var J1x=Z5T.a$j(4,5,0);O96=T4x[h6h.startFrom - J1x];if(O96){Q7T="_s";Q7T+="u";Q7T+="mV ";b44="_";b44+="sumMF";b44+=" ";if(O96[b44 + h6h.name]){D0p=O96["_sumMF " + h6h.name];}if(O96[Q7T + h6h.name]){m5X=O96["_sumV " + h6h.name];}}for(var x8O=Math.max(1,h6h.startFrom);x8O < T4x.length;x8O++){Y2f="_su";Y2f+="mV";Y2f+=" ";d92="_su";d92+="mMF";d92+=" ";r37="_";r37+="M";r37+="FV ";M0B=Math.max(T4x[x8O - 1].Close,T4x[x8O].High);x6$=Math.min(T4x[x8O - +"1"].Close,T4x[x8O].Low);Z5T.j7J(13);var S84=Z5T.c0C(15,13,5,9);Z5T.N_M(55);var p2y=Z5T.a$j(4,13999986,54999945,1);T4x[x8O]["_MFV " + h6h.name]=T4x[x8O].Volume * (S84 * T4x[x8O].Close - M0B - x6$) / (M0B - x6$ === 0?p2y:M0B - x6$);if(x8O > h6h.days - ("1" << 64)){D0p*=(h6h.days - +"1") / h6h.days;Z5T.j7J(34);var Q1a=Z5T.c0C(8,1,7);m5X*=(h6h.days - Q1a) / h6h.days;}D0p+=T4x[x8O][r37 + h6h.name];m5X+=T4x[x8O].Volume;if(x8O > h6h.days - +"1"){if(m5X){Z5T.N_M(7);T4x[x8O]["Result " + h6h.name]=Z5T.c0C(D0p,m5X > 0?m5X:+"999999");}}T4x[x8O][d92 + h6h.name]=D0p;T4x[x8O][Y2f + h6h.name]=m5X;}};X2S.Studies.studyLibrary=X2S.extend(X2S.Studies.studyLibrary,{Twiggs:{name:"Twiggs Money Flow",calculateFN:X2S.Studies.calculateTwiggsMoneyFlow,inputs:{Period:"21" >> 32}}});}};C6=h$X=>{var C_X,a0w,J7F,A8W;C_X="undefi";C_X+="ned";a0w=typeof _CIQ !== C_X?_CIQ:h$X.CIQ;if(!a0w.Studies){J7F="typicalPrice feature requires first activating ";J7F+="studies featu";J7F+="re.";console.error(J7F);}else if(!a0w.Studies.calculateTypicalPrice){console.error("typicalPrice feature requires first activating medianPrice feature.");}else {A8W="Weight";A8W+="ed Close";a0w.Studies.studyLibrary=a0w.extend(a0w.Studies.studyLibrary,{"Typical Price":{name:"Typical Price",calculateFN:a0w.Studies.calculateTypicalPrice,inputs:{Period:14}},"Weighted Close":{name:A8W,calculateFN:a0w.Studies.calculateTypicalPrice,inputs:{Period:+"14"}}});}};M$=x1K=>{var r8c,X4N,L0e,o7Q;r8c=+"1978925238";X4N=-1962589708;L0e=2;for(var x_4=1;f3BGj.S9Y(x_4.toString(),x_4.toString().length,+"39212") !== r8c;x_4++){o7Q=~_CIQ === ""?_CIQ:x1K.CIQ;L0e+=2;}f3BGj.f3X();if(f3BGj.S9Y(L0e.toString(),L0e.toString().length,50882) !== X4N){o7Q=~_CIQ === ""?_CIQ:x1K.CIQ;}o7Q=typeof _CIQ !== "undefined"?_CIQ:x1K.CIQ;if(!o7Q.Studies){console.error("ulcerIndex feature requires first activating studies feature.");}else {o7Q.Studies.calculateUlcerIndex=function(W52,h6g){var G8z,l3Y,Y5E,S3s,h7q,M7u,f1w;G8z="_";G8z+="M";G8z+="A";l3Y="s";function H7Z(f93,l6A,r9_){var w4D;w4D=null;for(var x7F=l6A - f93 + 1;x7F <= l6A;x7F++){if(x7F < 0)continue;w4D=w4D === null?Y5E[x7F][r9_]:Math.max(w4D,Y5E[x7F][r9_]);}return w4D;}l3Y+="i";l3Y+="m";l3Y+="ple";Y5E=h6g.chart.scrubbed;if(Y5E.length < ("2" | 0) * h6g.days - 1){h6g.error=!0;return;}S3s=h6g.inputs.Field;if(!S3s || S3s == "field"){S3s="Close";}for(h7q=Math.max(h6g.startFrom,h6g.days - 1);h7q < Y5E.length;h7q++){M7u="_P";M7u+="D";M7u+="2 ";Y5E[h7q][M7u + h6g.name]=Math.pow(100 * (Y5E[h7q][S3s] / H7Z(h6g.days,h7q,S3s) - 1),2);}o7Q.Studies.MA(l3Y,h6g.days,"_PD2 " + h6g.name,0,G8z,W52,h6g);for(h7q=Math.max(h6g.startFrom,2 * (h6g.days - 1));h7q < Y5E.length;h7q++){f1w=Y5E[h7q]["_MA " + h6g.name];if(f1w || f1w === 0){Y5E[h7q]["Result " + h6g.name]=Math.sqrt(f1w);}}};o7Q.Studies.studyLibrary=o7Q.extend(o7Q.Studies.studyLibrary,{Ulcer:{name:"Ulcer Index",calculateFN:o7Q.Studies.calculateUlcerIndex,inputs:{Period:14,Field:"field"}}});}};q7=p17=>{var u0Q=f3BGj;var s9e,e6o,z60;s9e=typeof _CIQ !== "undefined"?_CIQ:p17.CIQ;u0Q.T$X();if(!s9e.Studies){e6o="ultimateOscillator feature require";e6o+="s first activating studies feat";e6o+="ure.";console.error(e6o);}else {z60="U";z60+="ltim";z60+="ate Oscillator";s9e.Studies.calculateUltimateOscillator=function(Q7F,k9h){var f91,k1x,E3P,c8N,H8a,q4I,T5U,o3D,E5H,A6p,y5K,T$e,c20,j$3,D_T,j4e,I27,E47,l7P;f91=k9h.chart.scrubbed;k1x=[k9h.inputs["Cycle 1"],k9h.inputs["Cycle 2"],k9h.inputs["Cycle 3"]];E3P=Math.max(k1x[0],k1x[1],k1x[2]);if(f91.length < E3P + 1){k9h.error=!0;return;}u0Q.f3X();c8N=k1x[0] * k1x[1];H8a=k1x[0] * k1x[+"2"];u0Q.j7J(13);var J6j=u0Q.c0C(3,11,7,0);u0Q.N_M(169);var P5k=u0Q.a$j(1,11,3,16);q4I=k1x[J6j] * k1x[P5k];T5U=[+"0",0,0];o3D=[0,0,0];if(k9h.startFrom){E5H="_acc";E5H+="tr ";if(f91[k9h.startFrom - "1" * 1]["_accbp " + k9h.name]){T5U=f91[k9h.startFrom - ("1" << 64)]["_accbp " + k9h.name].slice();}if(f91[k9h.startFrom - 1]["_acctr " + k9h.name]){o3D=f91[k9h.startFrom - ("1" - 0)][E5H + k9h.name].slice();}}for(var f3u=Math.max(+"1",k9h.startFrom);f3u < f91.length;f3u++){A6p="Re";A6p+="s";A6p+="ult ";y5K="_a";y5K+="cct";y5K+="r ";T$e=Math.min(f91[f3u].Low,f91[f3u - "1" * 1].Close);c20=f91[f3u].Close - T$e;u0Q.j7J(170);var a2j=u0Q.c0C(6,2,7,0);j$3=Math.max(f91[f3u].High,f91[f3u - a2j].Close) - T$e;for(var r65=0;r65 < k1x.length;r65++){T5U[r65]+=c20;o3D[r65]+=j$3;if(f3u > k1x[r65]){D_T=Math.min(f91[f3u - k1x[r65]].Low,f91[f3u - k1x[r65] - 1].Close);j4e=f91[f3u - k1x[r65]].Close - D_T;u0Q.j7J(171);var N9x=u0Q.c0C(29,2,15,2,0);I27=Math.max(f91[f3u - k1x[r65]].High,f91[f3u - k1x[r65] - N9x].Close) - D_T;T5U[r65]-=j4e;o3D[r65]-=I27;}}f91[f3u]["_accbp " + k9h.name]=T5U.slice();f91[f3u][y5K + k9h.name]=o3D.slice();if(f3u < E3P)continue;u0Q.j7J(57);var l3U=u0Q.c0C(952,10,12,7,8);u0Q.j7J(27);var k60=u0Q.a$j(7,6);u0Q.N_M(172);var I_W=u0Q.a$j(7,5,1,5);u0Q.N_M(173);var U8Y=u0Q.a$j(15,1,19,5,10);E47=q4I * T5U[0] / o3D[0] + H8a * T5U[l3U] / o3D[k60] + c8N * T5U[I_W] / o3D[U8Y];u0Q.N_M(82);l7P=u0Q.a$j(c8N,H8a,q4I);u0Q.N_M(111);f91[f3u][A6p + k9h.name]=u0Q.a$j(E47,l7P,100);}};s9e.Studies.studyLibrary=s9e.extend(s9e.Studies.studyLibrary,{Ultimate:{name:z60,calculateFN:s9e.Studies.calculateUltimateOscillator,inputs:{"Cycle 1":7,"Cycle 2":14,"Cycle 3":28},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:70,studyOverBoughtColor:"auto",studyOverSoldValue:30,studyOverSoldColor:"auto"}}}});}};a9=I5u=>{var H1N=f3BGj;H1N.f3X();var y6Z,R3A,g26,H5b,G$v,g90,M1A;y6Z=typeof _CIQ !== "undefined"?_CIQ:I5u.CIQ;if(!y6Z.Studies){R3A="valuationLines feature requires first a";R3A+="ctivating studies feature.";console.error(R3A);}else {g26="#fff";g26+="69e";H5b="#";H5b+="e1";H5b+="e1e";H5b+="1";G$v="har";G$v+="mo";G$v+="nic";g90="media";g90+="n";M1A="m";M1A+="e";M1A+="a";M1A+="n";y6Z.Studies.calculateValuationLines=function(C5Y,F18,E4N){var g8T,M$z,k9F,a4V,V$q,z$g,w9n,m2d,c2E,H2m,l4n,F8G,L3W,V97,j6B,b$b,k3q;g8T="Di";g8T+="splay 3 Standard Deviat";g8T+="ion (3\u03C3)";M$z="Display 2 Standard Devi";M$z+="atio";M$z+="n (2\u03C3)";k9F="Aver";k9F+="ag";k9F+="e Type";a4V="Clos";a4V+="e";V$q=F18.inputs.Field == "field"?a4V:F18.inputs.Field;z$g=F18.inputs[k9F];w9n=F18.inputs["Display Average"];m2d=F18.inputs["Display 1 Standard Deviation (1\u03C3)"];c2E=F18.inputs[M$z];H2m=F18.inputs[g8T];l4n=[];for(var F4_=0;F4_ < E4N.length;++F4_){if(E4N[F4_] && !isNaN(E4N[F4_][V$q])){l4n.push(E4N[F4_][V$q]);}}F8G=(function(o83,h3I){var T_B,P3b,X9L,Y9$,Y6B,g3n,p2g,B0B,b6m;T_B="me";T_B+="d";T_B+="i";T_B+="an";P3b="h";P3b+="armoni";P3b+="c";X9L="m";X9L+="ean";Y9$=o83.length;Y6B=0;g3n=0;p2g=+"0";switch(h3I){case X9L:g3n=Y9$;for(;p2g < Y9$;++p2g){Y6B+=o83[p2g];}break;case P3b:Y6B=Y9$;for(;p2g < Y9$;++p2g){H1N.j7J(68);var B5n=H1N.c0C(2,4,13,17);g3n+=B5n / o83[p2g];}break;case T_B:H1N.N_M(7);B0B=Math.floor(H1N.a$j(Y9$,2));b6m=o83.slice().sort(function(i95,T1V){if(i95 > T1V){return +"1";}if(i95 < T1V){return -1;}return 0;});if(Y9$ % 2 === 0){H1N.N_M(174);var X5p=H1N.a$j(14,15,19,11,30);Y6B=b6m[B0B] + b6m[B0B - X5p];g3n=2;}else {Y6B=b6m[B0B];g3n=1;}break;}H1N.j7J(7);return H1N.a$j(Y6B,g3n);})(l4n,z$g);L3W=!(m2d || c2E || H2m) || (function(W1m,f1t){var S4r,n_n;S4r=W1m.length;n_n=0;H1N.T$X();for(var i4e=0;i4e < S4r;++i4e){n_n+=Math.pow(W1m[i4e] - f1t,2);}H1N.j7J(7);return Math.sqrt(H1N.a$j(n_n,S4r));})(l4n,F8G);F18.data={Average:w9n?[F8G]:null,"1 Standard Deviation (1\u03C3)":m2d?[F8G + L3W,F8G - L3W]:null,"2 Standard Deviation (2\u03C3)":c2E?[F8G + L3W * 2,F8G - L3W * 2]:null,"3 Standard Deviation (3\u03C3)":H2m?[F8G + L3W * ("3" | 3),F8G - L3W * 3]:null};V97=L3W;if(!F18.parameters){F18.parameters={};}if(H2m){H1N.N_M(175);F18.parameters.range=[H1N.a$j(3,V97,L3W,F8G),H1N.a$j(V97,L3W,F8G,3,H1N.j7J(176))];}else if(c2E){H1N.N_M(177);F18.parameters.range=[H1N.c0C(0,L3W,V97,F8G,"2"),H1N.a$j(V97,L3W,F8G,2,H1N.N_M(176))];}else if(m2d){H1N.j7J(63);F18.parameters.range=[H1N.a$j(L3W,V97,F8G),H1N.a$j(V97,L3W,F8G,H1N.N_M(82))];}else if(w9n){H1N.j7J(14);F18.parameters.range=[H1N.a$j(F8G,V97),H1N.a$j(F8G,V97,H1N.j7J(1))];}if(F18.panel){j6B=C5Y.panels[F18.panel];b$b=C5Y.getYAxisByName(j6B,F18.name);if(b$b){b$b.decimalPlaces=j6B.chart.yAxis.printDecimalPlaces;k3q={yAxis:b$b};C5Y.calculateYAxisRange(j6B,b$b,F18.parameters.range[0],F18.parameters.range[1]);C5Y.createYAxis(j6B,k3q);C5Y.drawYAxis(j6B,k3q);}}};y6Z.Studies.displayValuationLines=function(Z8J,K9N){var t4Q,C_Y,C5t,I7J,D3Q,Y9s,K1B,I9Z,n6F,N$m,m4N,i0N,q6h,q5Z,v87,x4I,B6h,I38,L_T,r2N,s3S,f0A,S5i,m7t,E2b,E$2,i1$,e1Y,R7Q,y2z,O8i,z4j;t4Q="stx_yax";t4Q+="i";t4Q+="s";C_Y="H";C_Y+="A";C_Y+="V";C_Y+="G";C5t="AV";C5t+="G";I7J=Z8J.panels[K9N.panel];D3Q=K9N.getYAxis(Z8J);Y9s=K9N.getContext(Z8J);K1B=K9N.data;I9Z=K9N.parameters.labels;n6F=K9N.inputs["Average Type"];N$m={mean:C5t,median:"MED",harmonic:C_Y};m4N=Z8J.canvasStyle("ciq-valuation-average-line");i0N=Z8J.canvasStyle("ciq-valuation-deviation-line");q6h=3;H1N.N_M(178);var j4U=H1N.a$j(13,0,1,5,2);q5Z=Z8J.getCanvasFontSize(t4Q) + q6h * j4U;for(var x55 in K1B){m7t="Av";m7t+="era";m7t+="ge";if(!K1B[x55])continue;H1N.N_M(179);v87=H1N.a$j(m7t,x55);x4I=y6Z.Studies.determineColor(K9N.outputs[x55]);B6h=K1B[x55];for(I38="0" >> 0;I38 < B6h.length;++I38){E2b="lef";E2b+="t";E$2=":";E$2+=" ";i1$="yaxi";i1$+="s";e1Y="li";e1Y+="ne";R7Q="da";R7Q+="sh";R7Q+="ed";y2z="s";y2z+="o";y2z+="lid";O8i="non";O8i+="e";L_T=B6h[I38];r2N=Z8J.pixelFromPrice(L_T,I7J,D3Q);if(r2N <= I7J.top || r2N >= I7J.yAxis.bottom)continue;S5i=v87?{pattern:m4N.borderStyle != O8i?m4N.borderStyle || y2z:"solid",lineWidth:parseFloat(m4N.borderWidth) || 1,opacity:parseFloat(m4N.opacity) || 1,yAxis:D3Q}:{pattern:i0N.borderStyle != "none"?i0N.borderStyle || "dashed":R7Q,lineWidth:parseFloat(i0N.borderWidth) || 1,opacity:parseFloat(i0N.opacity) || "1" ^ 0,yAxis:D3Q};Z8J.plotLine(I7J.left,I7J.right,r2N,r2N,x4I,e1Y,Y9s,I7J,S5i);if(I9Z === i1$){Z8J.createYAxisLabel(I7J,Z8J.formatYAxisPrice(L_T,I7J),r2N,x4I,null,Y9s,D3Q);continue;}r2N+=Math.floor(S5i.lineWidth / 2);if(r2N + q5Z >= I7J.yAxis.bottom)continue;s3S=(v87?N$m[n6F] + E$2:x55[0] + "\u03C3: ") + Z8J.formatYAxisPrice(L_T,I7J);f0A=Y9s.measureText(s3S).width;z4j=I7J.right - f0A - q6h;if(D3Q && D3Q.position == E2b){z4j=I7J.left + q6h;}H1N.N_M(180);Y9s.strokeText(s3S,z4j,H1N.a$j("2",q5Z,0,r2N,0.5));}}};y6Z.Studies.studyLibrary=y6Z.extend(y6Z.Studies.studyLibrary,{"val lines":{name:"Valuation Lines",calculateFN:function(){},seriesFN:function(F8X,R2v,v73){H1N.T$X();y6Z.Studies.calculateValuationLines(F8X,R2v,v73);y6Z.Studies.displayValuationLines(F8X,R2v);},overlay:!![],yAxisFN:function(){},inputs:{Field:"field","Average Type":[M1A,g90,G$v],"Display Average":!!1,"Display 1 Standard Deviation (1\u03C3)":!!0,"Display 2 Standard Deviation (2\u03C3)":![],"Display 3 Standard Deviation (3\u03C3)":!({})},outputs:{Average:"#00afed","1 Standard Deviation (1\u03C3)":H5b,"2 Standard Deviation (2\u03C3)":"#85c99e","3 Standard Deviation (3\u03C3)":g26}}});}};U9=P2z=>{var V$z,G9K,u0n,u$k;V$z=typeof _CIQ !== "undefined"?_CIQ:P2z.CIQ;if(!V$z.Studies){console.error("volatilityIndex feature requires first activating studies feature.");}else {G9K="a";G9K+="u";G9K+="t";G9K+="o";u0n="0 ";u0n+="to 10";u0n+="0";u$k="Relative Vol";u$k+="atility";V$z.Studies.calculateRelativeVolatility=function(N0N,k2x){var U9s=f3BGj;var B$C,b8$,G8d,i3n,d80,Z89,x46,Y9e;B$C="m";B$C+="a";k2x.days=Number(k2x.inputs["Smoothing Period"]);b8$=Number(k2x.inputs["STD Period"]);G8d=k2x.chart.scrubbed;if(G8d.length < k2x.days + b8$){k2x.error=!!1;return;}i3n=k2x.inputs.Field;if(!i3n || i3n == "field"){i3n="Close";}k2x.std=new V$z.Studies.StudyDescriptor(k2x.name,"sdev",k2x.panel);k2x.std.chart=k2x.chart;k2x.std.days=b8$;k2x.std.startFrom=k2x.startFrom;k2x.std.inputs={Field:i3n,"Standard Deviations":1,Type:B$C};k2x.std.outputs={_STD:null};function y2y(v1a,P6R){if(v1a + P6R === +"0"){return 100;}U9s.N_M(181);return U9s.c0C(100,P6R,v1a,v1a);}V$z.Studies.calculateStandardDeviation(N0N,k2x.std);d80=0;Z89=0;if(k2x.startFrom > +"1"){d80=G8d[k2x.startFrom - +"1"]["_avgG " + k2x.name] || 0;Z89=G8d[k2x.startFrom - 1]["_avgL " + k2x.name] || "0" | 0;}for(var n7Z=Math.max(k2x.startFrom,k2x.days);n7Z < G8d.length;n7Z++){x46=G8d[n7Z];U9s.j7J(94);Y9e=G8d[U9s.c0C(n7Z,"1")];if(!x46[i3n] && x46[i3n] !== 0)continue;if(!Y9e[i3n] && Y9e[i3n] !== +"0")continue;if(!x46["_STD " + k2x.name] && x46["_STD " + k2x.name] !== 0)continue;if(x46[i3n] > Y9e[i3n]){U9s.N_M(14);var k0C=U9s.a$j(8,7);d80=(d80 * (k2x.days - k0C) + x46["_STD " + k2x.name]) / k2x.days;U9s.j7J(14);var y5W=U9s.a$j(17,16);Z89=Z89 * (k2x.days - y5W) / k2x.days;}else {U9s.N_M(63);var X5y=U9s.c0C(11,8,20);Z89=(Z89 * (k2x.days - X5y) + x46["_STD " + k2x.name]) / k2x.days;U9s.N_M(182);var w4A=U9s.c0C(6,0,6,1,1);d80=d80 * (k2x.days - w4A) / k2x.days;}x46["Rel Vol " + k2x.name]=y2y(d80,Z89);x46["_avgG " + k2x.name]=d80;x46["_avgL " + k2x.name]=Z89;}k2x.zoneOutput="Rel Vol";};V$z.Studies.calculateHistoricalVolatility=function(i5G,W26){var k4I=f3BGj;var J58,x4M,M_W,V$i,f1K,K6t,I1h,T16,n4l;J58=W26.chart.scrubbed;function C0f(v3H){if(isNaN(v3H)){v3H=365;}if(i5G.layout.interval == "day"){return v3H;}else if(i5G.layout.interval == "week"){return 52;}else if(i5G.layout.interval == "month"){return 12;}k4I.T$X();return v3H;}if(J58.length < W26.days + 1){W26.error=!"";return;}x4M=W26.inputs.Field;if(!x4M || x4M == "field"){x4M="Close";}M_W=W26.inputs["Standard Deviations"];if(M_W < 0){M_W=1;}k4I.j7J(101);var w_J=k4I.c0C(1316,5,7,108,13);V$i=w_J * Math.sqrt(C0f(W26.inputs["Days Per Year"])) * M_W;f1K=[];K6t=0;if(W26.startFrom > "1" >> 0){K6t=J58[W26.startFrom - +"1"]["_state " + W26.name][0];f1K=J58[W26.startFrom - 1]["_state " + W26.name][1].slice();}for(var Y5W=Math.max(1,W26.startFrom);Y5W < J58.length;Y5W++){k4I.j7J(94);I1h=J58[k4I.c0C(Y5W,"1")][x4M];if(I1h){T16=Math.log(J58[Y5W][x4M] / I1h);f1K.push(T16);K6t+=T16;if(Y5W >= W26.days){n4l=+"0";K6t/=W26.days;for(var n4D=0;n4D < f1K.length;n4D++){n4l+=Math.pow(f1K[n4D] - K6t,2);}K6t*=W26.days;K6t-=f1K.shift();J58[Y5W]["Result " + W26.name]=Math.sqrt(n4l / W26.days) * V$i;}}J58[Y5W]["_state " + W26.name]=[K6t,f1K.slice()];}};V$z.Studies.studyLibrary=V$z.extend(V$z.Studies.studyLibrary,{"Hist Vol":{name:"Historical Volatility",calculateFN:V$z.Studies.calculateHistoricalVolatility,inputs:{Period:10,Field:"field","Days Per Year":[252,365],"Standard Deviations":1},attributes:{"Standard Deviations":{min:+"0.1",step:0.1}}},"Rel Vol":{name:u$k,range:u0n,calculateFN:V$z.Studies.calculateRelativeVolatility,inputs:{Field:"field","STD Period":10,"Smoothing Period":14},outputs:{"Rel Vol":G9K},centerline:50,parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:70,studyOverBoughtColor:"auto",studyOverSoldValue:"30" - 0,studyOverSoldColor:"auto"}}}});}};d5=h5i=>{var T3w=f3BGj;var I3h,a7N;I3h=typeof _CIQ !== "undefined"?_CIQ:h5i.CIQ;T3w.T$X();if(!I3h.Studies){console.error("volumeProfile feature requires first activating studies feature.");}else {a7N="Volu";a7N+="m";a7N+="e Prof";a7N+="ile";I3h.Studies.displayVolumeProfile=function(P__,Z4c,a6g){var x3N,o7o,u81,F2b,h_8,A8D,b_O,l2r,j46,D$i,e9o,I2K,U7F,D4O,V$5,G74,i$e,i9Y,W5g,j5u,n6B,F$F,f2H,l_f,F1d;if(!P__ || !P__.chart.dataSet){return;}function k2F(D0y,F2M){var R$e,P9Z,c$Y,T$J,n0V,m1m,D9q,x3M,f69;if(!F2M){i9Y-=2;}F$F.canvasColor(D0y);U7F.beginPath();T3w.N_M(46);R$e=b_O[0][T3w.c0C("0",0)];P9Z=i9Y;for(var l3W="1" - 0;l3W < b_O.length;l3W++){if(b_O[l3W][1]){T3w.N_M(0);var h$u=T3w.a$j(320,3,18,18);c$Y=Math.round(i9Y - b_O[l3W][h$u] * W5g / l2r) - 0.5;T$J=Math.round(F$F.pixelFromTransformedValue(R$e,G74)) + ("0.5" - 0);n0V=Math.round(F$F.pixelFromTransformedValue(b_O[l3W][+"0"],G74)) + 0.5;if(!F2M){T$J-=0.5;n0V+=0.5;c$Y+=0.5;}if(T$J > i$e){T$J=i$e;}if(n0V < i$e){U7F.moveTo(i9Y,T$J);U7F.lineTo(i9Y,n0V);U7F.lineTo(c$Y,n0V);U7F.lineTo(c$Y,T$J);if(F2M){if(P9Z > c$Y || l3W == 1){U7F.lineTo(P9Z,T$J);};}else {U7F.lineTo(i9Y,T$J);if(h_8){m1m=I3h.condenseInt(b_O[l3W][1]);T3w.N_M(14);D9q=T3w.c0C(T$J,n0V);if(V$5 <= D9q - 2){try{x3M=U7F.measureText(m1m).width;}catch(I51){x3M=+"0";}U7F.textBaseline="top";f69=U7F.fillStyle;U7F.fillStyle=j5u;T3w.j7J(63);U7F.fillText(m1m,T3w.a$j(x3M,3,c$Y),T3w.a$j(D9q,V$5,2,2,n0V,T3w.j7J(183)));U7F.fillStyle=f69;}}}}P9Z=c$Y;}else {P9Z=i9Y;;}T3w.j7J(46);R$e=b_O[l3W][T3w.c0C("0",0)];}if(!Z4c.highlight && P__.highlightedDraggable){U7F.globalAlpha*=0.3;}if(!F2M){U7F.fill();}U7F.strokeStyle=j5u;if(F2M){U7F.stroke();}U7F.closePath();}x3N=P__.chart;o7o=Z4c.parameters.numberOfBars;u81=Z4c.parameters.widthPercentage;F2b=Z4c.parameters.displayBorder;h_8=Z4c.parameters.displayVolume;if(!o7o || o7o < +"0"){o7o=30;}o7o=Math.ceil(o7o);if(!u81 || u81 < 0){u81=0.25;}if(F2b !== !!""){F2b=!!1;}if(h_8 !== !0){h_8=!1;}A8D=(x3N.highValue - x3N.lowValue) / o7o;if(A8D === 0){return;}b_O=[];for(var b57=x3N.lowValue;b57 < x3N.highValue + 0.1;b57+=A8D){b_O.push([b57,+"0"]);}if(b_O.length < 2){P__.displayErrorAsWatermark("chart",P__.translateIf("Not enough data to render the Volume Profile"));return;}l2r=0;for(var s_t=0;s_t < a6g.length;s_t++){j46=a6g[s_t];if(!j46)continue;D$i=j46.Volume;if(Z4c.panel == x3N.name && j46.transform){j46=j46.transform;}e9o=b_O[0][0];I2K=0;for(var L2r=1;L2r < b_O.length;L2r++){I2K=b_O[L2r][0];if(j46.Low >= e9o && j46.Low <= I2K || j46.Low < e9o && j46.High > I2K || j46.High >= e9o && j46.High <= I2K){b_O[L2r][+"1"]+=D$i;if(b_O[L2r][1] > l2r){l2r=b_O[L2r][1];}}e9o=I2K;}}if(l2r === 0){P__.displayErrorAsWatermark("chart",P__.translateIf("Not enough data to render the Volume Profile"));return;}P__.setStyle("stx_volume_profile","color",I3h.Studies.determineColor(Z4c.outputs["Bars Color"]));U7F=Z4c.getContext(P__);D4O="stx-float-date";P__.canvasFont(D4O,U7F);V$5=P__.getCanvasFontSize(D4O);G74=x3N.panel;i$e=G74.yAxis.bottom;i9Y=Math.round(x3N.right) - 0.5;W5g=x3N.width * u81;j5u=P__.canvasStyle("stx_volume_profile").borderTopColor;n6B=!I3h.isTransparent(P__.canvasStyle("stx_volume_profile").borderTopColor) && F2b;F$F=P__;k2F("stx_volume_profile",!"1");if(n6B){k2F("stx_volume_profile",!![]);}T3w.j7J(4);f2H=-T3w.c0C("1922240287",1);l_f=-1247173282;F1d=2;for(var H5l=1;T3w.O1W(H5l.toString(),H5l.toString().length,96806) !== f2H;H5l++){U7F.globalAlpha=5;F1d+=2;}if(T3w.S9Y(F1d.toString(),F1d.toString().length,90616) !== l_f){U7F.globalAlpha=5;}U7F.globalAlpha=1;};I3h.Studies.studyLibrary=I3h.extend(I3h.Studies.studyLibrary,{"vol profile":{name:a7N,underlay:!"",seriesFN:I3h.Studies.displayVolumeProfile,calculateFN:null,inputs:{},outputs:{"Bars Color":"#b64a96"},customRemoval:!!1,parameters:{init:{displayBorder:!!({}),displayVolume:!({}),numberOfBars:30,widthPercentage:0.25}},attributes:{yaxisDisplayValue:{hidden:!!1},panelName:{hidden:!![]},flippedEnabled:{hidden:!![]}}}});}};o7=i8J=>{var f6b=f3BGj;var b3K,H9O,x4C,j7f,l4H,h$S,s2r,d0U,h72,S81,d1L,Y$z,q1B,w7M;b3K=-+"326070533";H9O=1405609193;x4C=2;for(var T9V=1;f6b.O1W(T9V.toString(),T9V.toString().length,12746) !== b3K;T9V++){j7f=typeof _CIQ !== "undefined"?_CIQ:i8J.CIQ;x4C+=2;}if(f6b.S9Y(x4C.toString(),x4C.toString().length,50755) !== H9O){j7f=-_CIQ == ""?_CIQ:i8J.CIQ;}if(!j7f.Studies){console.error("volumeStudies feature requires first activating studies feature.");}else {l4H="#b82";l4H+="c0c";h$S="Vo";h$S+="lu";h$S+="me Under";h$S+="lay";s2r="Trade Volume I";s2r+="ndex";d0U="Price Volume ";d0U+="Trend";h72="#F";h72+="F0";h72+="000";S81="a";S81+="u";S81+="t";S81+="o";d1L="#FF";d1L+="00";d1L+="00";Y$z="m";Y$z+="a";q1B="f";q1B+="iel";q1B+="d";w7M="Negative Vol";w7M+="ume ";w7M+="Inde";w7M+="x";j7f.Studies.calculateOnBalanceVolume=function(V99,s5z){var v6w,I68,g1n,N4f,d1M,g5Z,d1I,Y5O,b$q,s0h,M1S,y$p,O46,k0Q,p$C;v6w="f";v6w+="ield";I68=s5z.inputs.Field;if(!I68 || I68 == v6w){I68="Close";}g1n=s5z.inputs["Min Tick Value"];N4f=!!"";if(!g1n && g1n !== +"0"){N4f=!!({});d1M=1160176223;g5Z=1055944688;d1I=2;for(var f5D=1;f6b.S9Y(f5D.toString(),f5D.toString().length,"66165" << 32) !== d1M;f5D++){g1n=0;d1I+=2;}if(f6b.S9Y(d1I.toString(),d1I.toString().length,87319) !== g5Z){g1n=+"2";}}Y5O=s5z.chart.scrubbed;b$q=0;s0h=781454516;f6b.f3X();f6b.N_M(5);M1S=f6b.a$j(1,"2073931254");y$p=2;for(var S_c="1" << 32;f6b.S9Y(S_c.toString(),S_c.toString().length,15810) !== s0h;S_c++){y$p+=2;}if(f6b.S9Y(y$p.toString(),y$p.toString().length,79077) !== M1S){}for(var p9R=s5z.startFrom;p9R < Y5O.length;p9R++){O46=Y5O[p9R];if(!p9R || !O46[I68])continue;if(Y5O[p9R - 1][I68]){f6b.j7J(14);k0Q=Y5O[f6b.a$j(p9R,1)];}if(!k0Q)continue;if(O46[I68] - k0Q[I68] > g1n){b$q=1;}else if(k0Q[I68] - O46[I68] > g1n){b$q=-1;}else if(N4f){b$q=0;}p$C=k0Q["Result " + s5z.name];if(!p$C){p$C=+"0";}p$C+=O46.Volume * b$q;O46["Result " + s5z.name]=p$C;}};j7f.Studies.calculatePriceVolumeTrend=function(Y12,e5$){var o5a,T3W,y9a,L2Z;o5a=e5$.inputs.Field;if(!o5a || o5a == "field"){o5a="Close";}T3W=e5$.chart.scrubbed;y9a=0;if(e5$.startFrom > 1){L2Z="Re";L2Z+="su";L2Z+="lt ";f6b.j7J(184);var w55=f6b.c0C(25,1,7,46);y9a=T3W[e5$.startFrom - ("1" << w55)][L2Z + e5$.name];}for(var u4U=Math.max(1,e5$.startFrom);u4U < T3W.length;u4U++){if(!T3W[u4U][o5a])continue;if(!T3W[u4U - ("1" | 0)][o5a])continue;f6b.N_M(185);var s4p=f6b.c0C(9,4,19,2);f6b.N_M(184);var j7F=f6b.c0C(4,6,5,12);y9a+=T3W[u4U].Volume * (T3W[u4U][o5a] - T3W[u4U - s4p][o5a]) / T3W[u4U - j7F][o5a];T3W[u4U]["Result " + e5$.name]=y9a;}};j7f.Studies.calculateVolumeIndex=function(n1Y,d4v){var E6$,y$0,S8t,e8M,G9n,m7K,T$L,k3o,q$t,I05;E6$="I";E6$+="ndex ";y$0=d4v.inputs.Field;if(!y$0 || y$0 == "field"){y$0="Close";}S8t=d4v.chart.scrubbed;if(S8t.length < d4v.days + 1){d4v.error=!![];return;}f6b.T$X();e8M=100;if(d4v.startFrom > 1){f6b.N_M(123);var P71=f6b.a$j(1,18,6,0,4);e8M=S8t[d4v.startFrom - P71][E6$ + d4v.name];}for(var E8H=Math.max(1,d4v.startFrom);E8H < S8t.length;E8H++){G9n="In";G9n+="d";G9n+="ex ";m7K="Ne";m7K+="g Vol";T$L=S8t[E8H][y$0];k3o=S8t[E8H].Volume;if(T$L && typeof T$L == "object"){k3o=T$L.Volume;T$L=T$L[d4v.subField];}f6b.N_M(14);q$t=S8t[f6b.c0C(E8H,1)][y$0];I05=S8t[E8H - 1].Volume;if(q$t && typeof q$t == "object"){I05=q$t.Volume;q$t=q$t[d4v.subField];}if(!T$L)continue;if(!q$t)continue;if(d4v.type == "Pos Vol" && k3o > I05 || d4v.type == m7K && k3o < I05){f6b.N_M(7);e8M*=f6b.a$j(T$L,q$t);}S8t[E8H][G9n + d4v.name]=e8M;}j7f.Studies.MA(d4v.inputs["Moving Average Type"],d4v.days,"Index " + d4v.name,0,"MA",n1Y,d4v);};j7f.Studies.studyLibrary=j7f.extend(j7f.Studies.studyLibrary,{"Neg Vol":{name:w7M,calculateFN:j7f.Studies.calculateVolumeIndex,inputs:{Period:255,Field:q1B,"Moving Average Type":Y$z},outputs:{Index:"auto",MA:d1L}},"On Bal Vol":{name:"On Balance Volume",calculateFN:j7f.Studies.calculateOnBalanceVolume,inputs:{}},"Pos Vol":{name:"Positive Volume Index",calculateFN:j7f.Studies.calculateVolumeIndex,inputs:{Period:255,Field:"field","Moving Average Type":"ma"},outputs:{Index:S81,MA:h72}},"Price Vol":{name:d0U,calculateFN:j7f.Studies.calculatePriceVolumeTrend,inputs:{Field:"field"}},"Trade Vol":{name:s2r,calculateFN:j7f.Studies.calculateOnBalanceVolume,inputs:{"Min Tick Value":0.5}},"Vol ROC":{name:"Volume Rate of Change",calculateFN:function(F1M,Q9s){if(j7f.Studies.calculateRateOfChange){j7f.Studies.calculateRateOfChange(F1M,Q9s);}else {console.error("Volume Rate of Change study requires first activating momentum feature.");j7f.Studies.calculateRateOfChange=function(P$V,n_l){};}},parameters:{init:{isVolume:!!({})}}},"vol undr":{name:h$S,underlay:!!"1",range:"0 to max",yAxis:{ground:!![],initialMarginTop:"0" << 32,position:"none",zoom:0,heightFactor:"0.25" * 1},seriesFN:j7f.Studies.createVolumeChart,calculateFN:j7f.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":l4H},customRemoval:!![],removeFN:function(t9g,V_I){var b2F;b2F="l";b2F+="ayo";b2F+="u";b2F+="t";t9g.layout.volumeUnderlay=!({});t9g.changeOccurred(b2F);},attributes:{panelName:{hidden:!![]}}}});}};t2=g7j=>{var T9e,e2s,j2E,g02,W3q;T9e=typeof _CIQ !== "undefined"?_CIQ:g7j.CIQ;if(!T9e.Studies){e2s="vortex featu";e2s+="re requires firs";e2s+="t acti";e2s+="vating studies feature.";console.error(e2s);}else {j2E="0";j2E+=".0";j2E+="1";g02="#00";g02+="F";g02+="F00";W3q="Vo";W3q+="rtex Indicator";T9e.Studies.calculateVortex=function(Q$m,Z6d){var o64=f3BGj;var D8R,K$K,j40,P_R,L$v,u1P,H6K,X4j,u2v,b9m,w3U,h63;D8R=Z6d.chart.scrubbed;K$K=Z6d.days;if(D8R.length < K$K + 1){Z6d.error=!![];return;}o64.T$X();j40={tr:0,vmPlus:0,vmMinus:0};if(Z6d.startFrom > +"1"){j40=T9e.clone(D8R[Z6d.startFrom - +"1"]["_totals " + Z6d.name]);}for(var k8t=Math.max(Z6d.startFrom,+"1");k8t < D8R.length;k8t++){P_R=D8R[k8t];o64.j7J(14);L$v=D8R[o64.a$j(k8t,1)];u1P=Math.abs(P_R.High - L$v.Low);H6K=Math.abs(P_R.Low - L$v.High);X4j=Math.max(P_R.High,L$v.Close) - Math.min(P_R.Low,L$v.Close);j40.tr+=X4j;j40.vmPlus+=u1P;j40.vmMinus+=H6K;if(k8t > K$K){u2v="_VM";u2v+="Mi";u2v+="n";u2v+="us ";b9m="_VMP";b9m+="l";b9m+="u";b9m+="s ";w3U="_True Rang";w3U+="e ";o64.j7J(14);j40.tr-=D8R[o64.a$j(k8t,K$K)][w3U + Z6d.name];o64.N_M(14);j40.vmPlus-=D8R[o64.c0C(k8t,K$K)][b9m + Z6d.name];o64.j7J(14);j40.vmMinus-=D8R[o64.c0C(k8t,K$K)][u2v + Z6d.name];}P_R["_True Range " + Z6d.name]=X4j;P_R["_VMPlus " + Z6d.name]=u1P;P_R["_VMMinus " + Z6d.name]=H6K;if(k8t >= K$K){h63="-";h63+="V";h63+="I";h63+=" ";P_R["+VI " + Z6d.name]=j40.vmPlus / j40.tr;P_R[h63 + Z6d.name]=j40.vmMinus / j40.tr;}P_R["_totals " + Z6d.name]=T9e.clone(j40);}};T9e.Studies.studyLibrary=T9e.extend(T9e.Studies.studyLibrary,{Vortex:{name:W3q,calculateFN:T9e.Studies.calculateVortex,centerline:1,outputs:{"+VI":g02,"-VI":"#FF0000"},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:1.1,studyOverBoughtColor:"auto",studyOverSoldValue:0.9,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:1,step:"0.01"},studyOverSoldValue:{max:1,step:j2E}}}});}};m_=G_6=>{var R1_=f3BGj;R1_.T$X();var R_q,L2x;R_q=typeof _CIQ !== "undefined"?_CIQ:G_6.CIQ;if(!R_q.Studies){console.error("williamsMFI feature requires first activating studies feature.");}else {L2x="#ffd0c";L2x+="f";R_q.Studies.calculateMFI=function(r0H,w31){var k$9,U_j,D2v,u0_,M61,d$O,U7x;R1_.T$X();k$9=w31.chart.scrubbed;R1_.j7J(31);D2v=R1_.a$j("0",32);u0_=w31.inputs["Scale Factor"];if(!u0_){u0_=w31.study.inputs["Scale Factor"];}M61=Math.pow(10,Number(u0_));if(w31.startFrom > "1" >> 96){R1_.N_M(119);var j8d=R1_.a$j(5,57,19,4);D2v=k$9[w31.startFrom - j8d]["_high " + w31.name];}for(d$O=w31.startFrom;d$O < k$9.length;d$O++){if(!k$9[d$O])continue;if(k$9[d$O].Volume){U7x="_";U7x+="hi";U7x+="st";k$9[d$O][w31.name + U7x]=U_j=M61 * (k$9[d$O].High - k$9[d$O].Low) / k$9[d$O].Volume;k$9[d$O]["_high " + w31.name]=D2v=Math.max(D2v,U_j);}}w31.outputMap={};w31.outputMap[w31.name + "_hist"]="";};R_q.Studies.displayMFI=function(n6W,N6X,K1c){var e_y,h$l,U2B,d3_,L8e,a9G,Z9g,S8T,f3i,p4p,d3h,m7C;e_y="stx_";e_y+="histogr";e_y+="am";h$l=n6W.panels[N6X.panel];U2B=N6X.getContext(n6W);d3_=N6X.getYAxis(n6W);L8e=d3_.flipped?d3_.top:d3_.bottom;R1_.N_M(186);var k97=R1_.c0C(18,15,15,4052);a9G=n6W.layout.candleWidth - k97;if(a9G < 2){a9G=1;}Z9g=R_q.Studies.determineColor(N6X.outputs.Green);S8T=R_q.Studies.determineColor(N6X.outputs.Fade);R1_.T$X();f3i=R_q.Studies.determineColor(N6X.outputs.Fake);p4p=R_q.Studies.determineColor(N6X.outputs.Squat);n6W.canvasColor(e_y);if(!N6X.underlay){U2B.globalAlpha=1;}U2B.fillStyle="#CCCCCC";n6W.startClip(N6X.panel);if(!N6X.highlight && n6W.highlightedDraggable){U2B.globalAlpha*=0.3;}for(var r1n=0;r1n < K1c.length;r1n++){d3h=K1c[r1n];R1_.N_M(14);m7C=K1c[R1_.c0C(r1n,1)];if(!m7C){m7C=n6W.getPreviousBar(n6W.chart,N6X.name + "_hist",r1n);}if(!d3h)continue;if(!m7C);else if(m7C[N6X.name + "_hist"] < d3h[N6X.name + "_hist"]){if(m7C.Volume < d3h.Volume){U2B.fillStyle=Z9g;}else if(m7C.Volume > d3h.Volume){U2B.fillStyle=f3i;}}else if(m7C[N6X.name + "_hist"] > d3h[N6X.name + "_hist"]){if(m7C.Volume < d3h.Volume){U2B.fillStyle=p4p;}else if(m7C.Volume > d3h.Volume){U2B.fillStyle=S8T;}}if(d3h.candleWidth){a9G=Math.floor(Math.max(1,d3h.candleWidth - 2));}U2B.fillRect(Math.floor(n6W.pixelFromBar(r1n,h$l.chart) - a9G / 2),Math.floor(L8e),Math.floor(a9G),Math.floor(n6W.pixelFromPrice(d3h[N6X.name + "_hist"],h$l,d3_) - L8e));}n6W.endClip();};R_q.Studies.studyLibrary=R_q.extend(R_q.Studies.studyLibrary,{"W MFI":{name:"Market Facilitation Index",seriesFN:R_q.Studies.displayMFI,calculateFN:R_q.Studies.calculateMFI,yAxis:{ground:!0},range:"0 to max",inputs:{"Scale Factor":6},outputs:{Green:"#8bc176",Fade:"#ab611f",Fake:"#5f7cb8",Squat:L2x}}});}};c7={CIQ:a4,SplinePlotter:p4,timezoneJS:j0,$$:J2,$$$:g9};export {N as aggregations};export {Q as drawingAdvanced};export {Z as equationsAdvanced};export {S as highPerformanceMarkers};export {W as renderersAdvanced};export {o as accumulationDistribution};export {U as adx};export {g as alligator};export {Y as aroon};export {G as atr};export {X as awesomeOscillator};export {E as balanceOfPower};export {F as bollinger};export {I as cci};export {M_ as centerOfGravity};export {h1 as chaikin};export {W3 as chande};export {W9 as choppiness};export {C5 as comparisonStudies};export {b4 as coppock};export {f3 as darvasBox};export {n8 as detrended};export {p9 as disparity};export {f8 as easeOfMovement};export {A3 as ehlerFisher};export {b0 as elder};export {j4 as fractalChaos};export {U1 as highLowStudies};export {W2 as ichimoku};export {K0 as intradayMomentum};export {G_ as keltner};export {T8 as klinger};export {d8 as linearRegression};export {T6 as macd};export {k1 as massIndex};export {e4 as moneyFlow};export {A1 as movingAverages};export {d_ as parabolicSAR};export {O9 as pivotPoints};export {s4 as prettyGoodOscillator};export {e5 as priceMomentumOscillator};export {C$ as priceVolumeOscillator};export {y9 as primeNumber};export {v8 as pring};export {L4 as projectedVolume};export {o3 as psychologicalLine};export {i8 as qstick};export {O$ as rainbow};export {r_ as randomWalk};export {O5 as relativeVigor};export {i3 as rsi};export {Q7 as schaffTrendCycle};export {Z4 as shinohara};export {T0 as stochastics};export {x$ as supertrend};export {k4 as swingIndex};export {N1 as trendIntensity};export {a7 as trix};export {h3 as twiggsMoneyFlow};export {C6 as typicalPrice};export {M$ as ulcerIndex};export {q7 as ultimateOscillator};export {a9 as valuationLines};export {U9 as volatilityIndex};export {d5 as volumeProfile};export {o7 as volumeStudies};export {t2 as vortex};export {m_ as williamsMFI};export {a4 as CIQ, p4 as SplinePlotter, j0 as timezoneJS, J2 as $$, g9 as $$$};if(typeof __TREE_SHAKE__ === "undefined" || !__TREE_SHAKE__){c7.CIQ.activateImports(N,Q,Z,S,W,o,U,g,Y,G,X,E,F,I,M_,h1,W3,W9,C5,b4,f3,n8,p9,f8,A3,b0,j4,U1,W2,K0,G_,T8,d8,T6,k1,e4,A1,d_,O9,s4,e5,C$,y9,v8,L4,o3,i8,O$,r_,O5,i3,Q7,Z4,T0,x$,k4,N1,a7,h3,C6,M$,q7,a9,U9,d5,o7,t2,m_,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ diff --git a/chartiq/production/js/chartiq.js b/chartiq/production/js/chartiq.js index be0a0ffd3e..cae54fe1aa 100644 --- a/chartiq/production/js/chartiq.js +++ b/chartiq/production/js/chartiq.js @@ -1,39 +1,40 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ -/***************************************************************************/ -/* Please note that manually changing the domain list or expiration dates */ -/* */ -/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WILL NOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */ -/* */ -/* modify the library locking mechanism. Any changes must be requested */ -/* directly from chartIQ. */ -/***************************************************************************/ +/*************************************************************************! +* Please note that manually changing the domain list or expiration dates * +* * +* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WILL NOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< * +* * +* modify the library locking mechanism. Any changes must be requested * +* directly from chartIQ. * +***************************************************************************/ (function() { /* eslint-disable no-undef-init */ - var trialExpiration = undefined; - var licenseExpiration = "2023/04/01"; var domains = ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"]; var filesystem = false; + var licenseExpiration = "2024/04/01"; + var trialExpiration = undefined; + var version = '8.2.0'; var expiration; if (trialExpiration) expiration = new Date(trialExpiration).getTime(); @@ -75,10 +76,13 @@ } } } + if(version === 'alpha'){ + window.alert('This is an internal PRE-PRODUCTION release--not for external use!'); + } })(); /* eslint-disable no-extra-parens */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -M2dNJ[50848]=(function(){var D=2;for(;D !== 9;){switch(D){case 1:return globalThis;break;case 5:var J;try{var C=2;for(;C !== 6;){switch(C){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];C=6;break;case 3:throw "";C=9;break;case 4:C=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;C=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var Z=2;for(;Z !== 1;){switch(Z){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;C=5;break;}}}catch(F){J=window;}return J;break;case 2:D=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();E8f(M2dNJ[50848]);M2dNJ[356525]=(function(){function O6D(c30){var Q0D=2;for(;Q0D !== 7;){switch(Q0D){case 3:W6R+=z20Gd.e1Cdv(c30[M09] - M4O + 107);Q0D=9;break;case 5:var M09=0;Q0D=4;break;case 9:M09++;Q0D=4;break;case 4:Q0D=M09 < c30.length?3:8;break;case 2:var M4O=6;var W6R='';Q0D=5;break;case 8:return W6R;break;}}}function y0n(q7j,X4u,k3w,M7Z,H1u){var d8U=2;for(;d8U !== 15;){switch(d8U){case 6:return M2dNJ.m7$(f3f,l5x,k3w);break;case 9:d8U=M7Z > 0?8:19;break;case 19:d8U=q7j === null || q7j <= 0?18:14;break;case 8:f3f=H8H.F6kzS(q7j,M7Z);l5x=f3f.length;d8U=6;break;case 2:var f3f,l5x,H8H,k30;k30=z$h[O6D([7,10,-2,-4,15,4,10,9])];!z7j && (z7j=typeof k30 !== "undefined"?k30[O6D([3,10,14,15,9,-4,8,0])] || ' ':"");!N$a && (N$a=typeof k30 !== "undefined"?k30[O6D([3,13,0,1])]:"");d8U=3;break;case 11:f3f=H8H.F6kzS(T7O,H8H.length);l5x=f3f.length;return M2dNJ.m7$(f3f,l5x,k3w);break;case 12:return false;break;case 16:return M2dNJ.m7$(f3f,l5x,k3w);break;case 3:H8H=H1u?N$a:z7j;d8U=9;break;case 18:f3f=H8H.F6kzS(0,H8H.length);l5x=f3f.length;d8U=16;break;case 13:d8U=X4u && T7O > 0 && H8H.r1d3r(T7O - 1) !== 46?12:11;break;case 14:var T7O=H8H.length - q7j;d8U=13;break;}}}var A4b=2;for(;A4b !== 4;){switch(A4b){case 2:var z$h=M2dNJ[50848];var z7j,N$a;return {K9OPwob:function(R2O,u2q,v1B,s9v){var h9_=2;for(;h9_ !== 1;){switch(h9_){case 2:return y0n(R2O,u2q,v1B,s9v);break;}}},n8eaqyR:function(o8X,h7I,E4D,t_I){var k7I=2;for(;k7I !== 1;){switch(k7I){case 2:return y0n(o8X,h7I,E4D,t_I,true);break;}}}};break;}}})();M2dNJ.b3_=function(){return typeof M2dNJ[459327].w4xZ2A7 === 'function'?M2dNJ[459327].w4xZ2A7.apply(M2dNJ[459327],arguments):M2dNJ[459327].w4xZ2A7;};M2dNJ.n9E=function(){return typeof M2dNJ[247674].A$uBw0P === 'function'?M2dNJ[247674].A$uBw0P.apply(M2dNJ[247674],arguments):M2dNJ[247674].A$uBw0P;};M2dNJ.i3C=function(){return typeof M2dNJ[150036].Z7m4YCh === 'function'?M2dNJ[150036].Z7m4YCh.apply(M2dNJ[150036],arguments):M2dNJ[150036].Z7m4YCh;};M2dNJ[158192]=928;M2dNJ.B2P=function(){return typeof M2dNJ[356525].n8eaqyR === 'function'?M2dNJ[356525].n8eaqyR.apply(M2dNJ[356525],arguments):M2dNJ[356525].n8eaqyR;};M2dNJ.s_e=function(){return typeof M2dNJ[356525].n8eaqyR === 'function'?M2dNJ[356525].n8eaqyR.apply(M2dNJ[356525],arguments):M2dNJ[356525].n8eaqyR;};M2dNJ[220353]=(function(){var D1x=2;for(;D1x !== 9;){switch(D1x){case 2:var U3q=[arguments];U3q[1]=undefined;U3q[5]={};U3q[5].V3nM4Cy=function(){var s$_=2;for(;s$_ !== 90;){switch(s$_){case 18:l$8[4]={};l$8[4].N3I=['O_z'];l$8[4].R3j=function(){var m3S=typeof M$71Ob === 'function';return m3S;};l$8[8]=l$8[4];l$8[73]={};s$_=26;break;case 76:s$_=l$8[18] < l$8[34][l$8[83]].length?75:70;break;case 71:l$8[18]++;s$_=76;break;case 35:l$8[97]=l$8[29];l$8[76]={};l$8[76].N3I=['S9g'];l$8[76].R3j=function(){var q9h=function(){return decodeURIComponent('%25');};var u3Q=!(/\u0032\u0035/).S3cVkX(q9h + []);return u3Q;};s$_=31;break;case 26:l$8[73].N3I=['S9g'];l$8[73].R3j=function(){var L7a=function(){return ('x').repeat(2);};var I23=(/\u0078\u0078/).S3cVkX(L7a + []);return I23;};l$8[20]=l$8[73];s$_=23;break;case 75:l$8[53]={};l$8[53][l$8[55]]=l$8[34][l$8[83]][l$8[18]];l$8[53][l$8[51]]=l$8[24];s$_=72;break;case 65:l$8[68]=[];l$8[95]='v8w';s$_=63;break;case 23:l$8[29]={};l$8[29].N3I=['O_z'];l$8[29].R3j=function(){var R5w=false;var N49=[];try{for(var H9Y in console){N49.U9FHjE(H9Y);}R5w=N49.length === 0;}catch(g9I){}var x4u=R5w;return x4u;};s$_=35;break;case 57:s$_=l$8[10] < l$8[2].length?56:69;break;case 50:l$8[2].U9FHjE(l$8[11]);l$8[2].U9FHjE(l$8[97]);l$8[2].U9FHjE(l$8[1]);l$8[2].U9FHjE(l$8[94]);l$8[2].U9FHjE(l$8[8]);l$8[2].U9FHjE(l$8[86]);s$_=65;break;case 70:l$8[10]++;s$_=57;break;case 72:l$8[68].U9FHjE(l$8[53]);s$_=71;break;case 77:l$8[18]=0;s$_=76;break;case 4:l$8[2]=[];l$8[6]={};l$8[6].N3I=['O_z'];s$_=8;break;case 14:l$8[3].N3I=['S9g'];l$8[3].R3j=function(){var u3L=function(){return ['a','a'].join();};var e50=!(/(\u005b|\u005d)/).S3cVkX(u3L + []);return e50;};l$8[7]=l$8[3];s$_=11;break;case 67:U3q[1]=15;return 58;break;case 60:l$8[91]='R3j';l$8[55]='B4N';s$_=58;break;case 5:return 18;break;case 1:s$_=U3q[1]?5:4;break;case 8:l$8[6].R3j=function(){var G7h=typeof s$9N9D === 'function';return G7h;};l$8[1]=l$8[6];l$8[3]={};s$_=14;break;case 68:s$_=52?68:67;break;case 58:l$8[10]=0;s$_=57;break;case 69:s$_=(function(g5c){var n0c=2;for(;n0c !== 22;){switch(n0c){case 19:w6$[2]++;n0c=7;break;case 4:w6$[3]={};n0c=3;break;case 18:w6$[5]=false;n0c=17;break;case 26:n0c=w6$[8] >= 0.5?25:24;break;case 2:var w6$=[arguments];n0c=1;break;case 11:w6$[3][w6$[9][l$8[55]]].t+=true;n0c=10;break;case 10:n0c=w6$[9][l$8[51]] === l$8[95]?20:19;break;case 3:w6$[6]=[];w6$[2]=0;n0c=8;break;case 20:w6$[3][w6$[9][l$8[55]]].h+=true;n0c=19;break;case 24:w6$[2]++;n0c=16;break;case 15:w6$[4]=w6$[6][w6$[2]];w6$[8]=w6$[3][w6$[4]].h / w6$[3][w6$[4]].t;n0c=26;break;case 17:w6$[2]=0;n0c=16;break;case 6:w6$[9]=w6$[0][0][w6$[2]];n0c=14;break;case 8:w6$[2]=0;n0c=7;break;case 1:n0c=w6$[0][0].length === 0?5:4;break;case 5:return;break;case 16:n0c=w6$[2] < w6$[6].length?15:23;break;case 23:return w6$[5];break;case 25:w6$[5]=true;n0c=24;break;case 14:n0c=typeof w6$[3][w6$[9][l$8[55]]] === 'undefined'?13:11;break;case 13:w6$[3][w6$[9][l$8[55]]]=(function(){var u6j=2;for(;u6j !== 9;){switch(u6j){case 4:b26[7].t=0;return b26[7];break;case 2:var b26=[arguments];b26[7]={};b26[7].h=0;u6j=4;break;}}}).K9rSPg(this,arguments);n0c=12;break;case 12:w6$[6].U9FHjE(w6$[9][l$8[55]]);n0c=11;break;case 7:n0c=w6$[2] < w6$[0][0].length?6:18;break;}}})(l$8[68])?68:67;break;case 11:l$8[5]={};l$8[5].N3I=['S9g'];l$8[5].R3j=function(){var R5$=function(){var E_1=function(O_f){for(var r9Q=0;r9Q < 20;r9Q++){O_f+=r9Q;}return O_f;};E_1(2);};var f_l=(/\x31\x39\u0032/).S3cVkX(R5$ + []);return f_l;};l$8[9]=l$8[5];s$_=18;break;case 42:l$8[43].N3I=['S9g'];l$8[43].R3j=function(){var Y0y=function(){return atob('PQ==');};var I7R=!(/\x61\x74\u006f\x62/).S3cVkX(Y0y + []);return I7R;};l$8[44]=l$8[43];l$8[16]={};l$8[16].N3I=['S9g'];l$8[16].R3j=function(){var A5c=function(){return String.fromCharCode(0x61);};var H9H=!(/\u0030\x78\x36\x31/).S3cVkX(A5c + []);return H9H;};l$8[94]=l$8[16];s$_=54;break;case 54:l$8[2].U9FHjE(l$8[9]);l$8[2].U9FHjE(l$8[20]);l$8[2].U9FHjE(l$8[44]);l$8[2].U9FHjE(l$8[7]);s$_=50;break;case 63:l$8[45]='Y$e';l$8[83]='N3I';l$8[51]='C4v';s$_=60;break;case 2:var l$8=[arguments];s$_=1;break;case 56:l$8[34]=l$8[2][l$8[10]];try{l$8[24]=l$8[34][l$8[91]]()?l$8[95]:l$8[45];}catch(z2l){l$8[24]=l$8[45];}s$_=77;break;case 44:l$8[11]=l$8[15];l$8[43]={};s$_=42;break;case 31:l$8[86]=l$8[76];l$8[15]={};l$8[15].N3I=['O_z'];l$8[15].R3j=function(){var h_V=typeof S3TA2V === 'function';return h_V;};s$_=44;break;}}};return U3q[5];break;}}})();M2dNJ[345871]=176;M2dNJ[247674]=(function(r_Z){function G3x(K8c){var S0Q=2;for(;S0Q !== 15;){switch(S0Q){case 9:S0Q=!Z$A--?8:7;break;case 8:y5M=r_Z[6];S0Q=7;break;case 2:var S2l,t55,y5M,n7I,m_z,T7b,B_h;S0Q=1;break;case 3:t55=30;S0Q=9;break;case 7:S0Q=!Z$A--?6:14;break;case 16:S2l=n7I - K8c > t55;S0Q=19;break;case 11:T7b=(m_z || m_z === 0) && B_h(m_z,t55);S0Q=10;break;case 6:n7I=y5M && B_h(y5M,t55);S0Q=14;break;case 19:return S2l;break;case 18:S0Q=T7b >= 0?17:16;break;case 14:S0Q=!Z$A--?13:12;break;case 1:S0Q=!Z$A--?5:4;break;case 5:B_h=q6i[r_Z[4]];S0Q=4;break;case 4:S0Q=!Z$A--?3:9;break;case 20:S2l=K8c - T7b > t55 && n7I - K8c > t55;S0Q=19;break;case 10:S0Q=T7b >= 0 && n7I >= 0?20:18;break;case 17:S2l=K8c - T7b > t55;S0Q=19;break;case 12:S0Q=!Z$A--?11:10;break;case 13:m_z=r_Z[7];S0Q=12;break;}}}var J8b=2;for(;J8b !== 10;){switch(J8b){case 14:r_Z=r_Z.k1S1yk(function(k8R){var O4i=2;for(;O4i !== 13;){switch(O4i){case 4:var B3x=0;O4i=3;break;case 5:l$L='';O4i=4;break;case 6:return;break;case 1:O4i=!Z$A--?5:4;break;case 3:O4i=B3x < k8R.length?9:7;break;case 9:l$L+=q6i[V7c][j80](k8R[B3x] + 100);O4i=8;break;case 14:return l$L;break;case 7:O4i=!l$L?6:14;break;case 2:var l$L;O4i=1;break;case 8:B3x++;O4i=3;break;}}});J8b=13;break;case 7:V7c=X7g.O6j9Ub(new q6i[S5I]("^['-|]"),'S');J8b=6;break;case 5:q6i=M2dNJ[50848];J8b=4;break;case 9:X7g=typeof j80;J8b=8;break;case 2:var q6i,X7g,V7c,Z$A;J8b=1;break;case 1:J8b=!Z$A--?5:4;break;case 11:return {A$uBw0P:function(Y$u){var U7v=2;for(;U7v !== 6;){switch(U7v){case 9:S$N=s0k + 60000;U7v=8;break;case 3:U7v=!Z$A--?9:8;break;case 4:b2Z=G3x(s0k);U7v=3;break;case 5:U7v=!Z$A--?4:3;break;case 1:U7v=s0k > S$N?5:8;break;case 2:var s0k=new q6i[r_Z[0]]()[r_Z[1]]();U7v=1;break;case 8:var E8E=(function(l6J,P0n){var N6M=2;for(;N6M !== 10;){switch(N6M){case 8:var i2G=q6i[P0n[4]](l6J[P0n[2]](M6y),16)[P0n[3]](2);var q0L=i2G[P0n[2]](i2G[P0n[5]] - 1);N6M=6;break;case 4:P0n=r_Z;N6M=3;break;case 13:M6y++;N6M=9;break;case 5:N6M=typeof P0n === 'undefined' && typeof r_Z !== 'undefined'?4:3;break;case 6:N6M=M6y === 0?14:12;break;case 3:var P5m,M6y=0;N6M=9;break;case 11:return P5m;break;case 1:l6J=Y$u;N6M=5;break;case 2:N6M=typeof l6J === 'undefined' && typeof Y$u !== 'undefined'?1:5;break;case 9:N6M=M6y < l6J[P0n[5]]?8:11;break;case 12:P5m=P5m ^ q0L;N6M=13;break;case 14:P5m=q0L;N6M=13;break;}}})(undefined,undefined);return E8E?b2Z:!b2Z;break;}}}};break;case 13:J8b=!Z$A--?12:11;break;case 3:J8b=!Z$A--?9:8;break;case 8:J8b=!Z$A--?7:6;break;case 4:var j80='fromCharCode',S5I='RegExp';J8b=3;break;case 6:J8b=!Z$A--?14:13;break;case 12:var b2Z,S$N=0;J8b=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);M2dNJ[106140]=false;M2dNJ[50848].N4kk=M2dNJ;M2dNJ.j07=function(){return typeof M2dNJ[220353].V3nM4Cy === 'function'?M2dNJ[220353].V3nM4Cy.apply(M2dNJ[220353],arguments):M2dNJ[220353].V3nM4Cy;};M2dNJ.E0w=function(){return typeof M2dNJ[220353].V3nM4Cy === 'function'?M2dNJ[220353].V3nM4Cy.apply(M2dNJ[220353],arguments):M2dNJ[220353].V3nM4Cy;};M2dNJ[150036]=(function(l2I){return {q52sdNp:function(){var x8Z,J5n=arguments;switch(l2I){case 158:x8Z=-J5n[3] * J5n[1] + J5n[4] + J5n[2] + J5n[0];break;case 21:x8Z=J5n[0] + J5n[2] + J5n[3] - J5n[4] - J5n[1];break;case 62:x8Z=(J5n[3] - J5n[2] - J5n[4]) / J5n[0] + J5n[1];break;case 7:x8Z=J5n[0] - J5n[2] + J5n[1];break;case 90:x8Z=(J5n[3] * J5n[1] - J5n[2]) / J5n[4] + J5n[0];break;case 17:x8Z=J5n[0] * J5n[2] + J5n[1];break;case 134:x8Z=(J5n[0] - J5n[3]) * J5n[2] - J5n[1];break;case 153:x8Z=J5n[1] + J5n[3] / J5n[2] * J5n[0];break;case 65:x8Z=J5n[2] / J5n[3] / J5n[4] / J5n[0] + J5n[1];break;case 48:x8Z=J5n[1] * (J5n[2] ^ J5n[0]);break;case 146:x8Z=(J5n[3] - J5n[0]) * J5n[4] + J5n[2] - J5n[1];break;case 100:x8Z=J5n[1] + +J5n[0];break;case 165:x8Z=J5n[3] * J5n[1] / J5n[2] - J5n[0];break;case 111:x8Z=J5n[3] + J5n[0] * (J5n[2] - J5n[1]);break;case 29:x8Z=J5n[0] / J5n[1] + J5n[2];break;case 40:x8Z=J5n[0] / J5n[1];break;case 35:x8Z=J5n[1] * J5n[2] / J5n[3] + J5n[0];break;case 150:x8Z=(-J5n[4] + J5n[1] + J5n[0]) / J5n[3] + J5n[2];break;case 82:x8Z=J5n[1] << J5n[0];break;case 36:x8Z=J5n[1] * J5n[2] / J5n[4] * J5n[0] + J5n[3];break;case 105:x8Z=J5n[5] / +J5n[0] * J5n[2] * J5n[4] * J5n[1] + J5n[3];break;case 99:x8Z=-J5n[1] - J5n[2] + J5n[0];break;case 93:x8Z=(J5n[1] - J5n[0]) / J5n[3] / J5n[2] + J5n[4];break;case 122:x8Z=J5n[0] - (J5n[1] ^ J5n[2]);break;case 30:x8Z=J5n[2] - J5n[3] - J5n[0] - J5n[4] + J5n[1];break;case 124:x8Z=(-J5n[4] + J5n[3]) * J5n[1] + J5n[2] - J5n[0];break;case 131:x8Z=-J5n[0] - J5n[3] - J5n[1] + J5n[2];break;case 19:x8Z=-J5n[0] - J5n[2] + J5n[3] + J5n[1];break;case 110:x8Z=J5n[0] == J5n[1];break;case 161:x8Z=J5n[2] / J5n[1] * J5n[0];break;case 89:x8Z=J5n[4] * J5n[1] - J5n[0] + J5n[3] - J5n[2];break;case 160:x8Z=J5n[3] * +J5n[4] * +J5n[0] * J5n[2] * J5n[1];break;case 22:x8Z=(J5n[2] + J5n[0]) * J5n[1] - J5n[3];break;case 97:x8Z=(-J5n[2] - J5n[3]) * J5n[1] + J5n[0];break;case 119:x8Z=J5n[2] - J5n[4] - J5n[3] + J5n[0] + J5n[1];break;case 78:x8Z=(J5n[4] + J5n[0]) * J5n[1] - J5n[3] - J5n[2];break;case 130:x8Z=-J5n[0] / J5n[3] - J5n[2] + J5n[1];break;case 54:x8Z=J5n[4] / J5n[2] / J5n[3] * J5n[0] + J5n[1];break;case 5:x8Z=-J5n[0] + J5n[1];break;case 114:x8Z=-J5n[0] + J5n[2] + J5n[1] - J5n[3];break;case 20:x8Z=J5n[2] + J5n[0] + J5n[1] - J5n[3];break;case 49:x8Z=J5n[2] * (J5n[1] >> J5n[0]);break;case 137:x8Z=J5n[4] + J5n[0] - J5n[3] + J5n[2] - J5n[1];break;case 13:x8Z=J5n[0] ^ J5n[1];break;case 55:x8Z=(J5n[2] / J5n[0] - J5n[3]) / J5n[4] + J5n[1];break;case 64:x8Z=J5n[3] * J5n[1] + J5n[0] - J5n[2];break;case 28:x8Z=(J5n[4] + J5n[0]) / J5n[2] * J5n[3] - J5n[1];break;case 57:x8Z=J5n[3] / J5n[2] + J5n[1] + J5n[0] - J5n[4];break;case 39:x8Z=J5n[4] + J5n[5] + J5n[6] + J5n[3] + J5n[8] + J5n[0] + J5n[7] + J5n[1] / J5n[2] + J5n[9];break;case 73:x8Z=-J5n[0] * J5n[3] * J5n[1] + J5n[2];break;case 12:x8Z=(J5n[4] - J5n[2] + J5n[1]) * J5n[0] - J5n[3];break;case 45:x8Z=J5n[2] + (J5n[0] - J5n[6]) * (+J5n[1] / J5n[4] - J5n[5]) * J5n[3];break;case 104:x8Z=J5n[1] / (J5n[2] - J5n[0]);break;case 120:x8Z=(J5n[2] + J5n[3]) / J5n[4] + J5n[1] + J5n[0];break;case 72:x8Z=J5n[3] * J5n[1] * J5n[0] * J5n[2];break;case 10:x8Z=(J5n[4] + J5n[2]) / J5n[0] / J5n[1] - J5n[3];break;case 138:x8Z=(J5n[1] - J5n[2]) / J5n[4] - J5n[3] + J5n[0];break;case 6:x8Z=(J5n[3] - J5n[1]) / J5n[2] + J5n[0];break;case 14:x8Z=J5n[1] | J5n[0];break;case 1:x8Z=J5n[1] - J5n[0];break;case 155:x8Z=J5n[1] != J5n[0];break;case 24:x8Z=J5n[0] | J5n[4] << J5n[2] | J5n[1] << J5n[3];break;case 145:x8Z=J5n[0] + J5n[2] * J5n[1];break;case 38:x8Z=J5n[0] * J5n[1];break;case 108:x8Z=J5n[1] !== J5n[0];break;case 79:x8Z=(J5n[0] + J5n[2]) * J5n[3] / J5n[1] - J5n[4];break;case 91:x8Z=J5n[4] * J5n[3] / J5n[2] / J5n[1] + J5n[0];break;case 51:x8Z=J5n[1] + J5n[0] + J5n[3] - J5n[2] + J5n[4];break;case 83:x8Z=J5n[0] / (J5n[1] >> J5n[2]);break;case 132:x8Z=J5n[2] - J5n[0] - (J5n[3] - J5n[1]);break;case 33:x8Z=J5n[0] * J5n[2] * J5n[1] - J5n[3];break;case 58:x8Z=J5n[2] - J5n[1] + J5n[3] - J5n[0];break;case 136:x8Z=(J5n[0] - J5n[3] + J5n[2]) * J5n[1] + J5n[4];break;case 127:x8Z=(J5n[1] + J5n[3] + J5n[4]) / J5n[2] - J5n[0];break;case 63:x8Z=(J5n[0] + J5n[4]) / J5n[2] / J5n[3] + J5n[1];break;case 86:x8Z=J5n[3] / J5n[1] + J5n[2] - J5n[0];break;case 154:x8Z=J5n[0] > J5n[1];break;case 32:x8Z=J5n[2] * J5n[0] * J5n[3] / J5n[1] + J5n[4];break;case 148:x8Z=J5n[2] * J5n[4] / J5n[3] + J5n[1] + J5n[0];break;case 115:x8Z=J5n[0] + J5n[1] + J5n[3] + J5n[2];break;case 4:x8Z=J5n[1] + J5n[0];break;case 128:x8Z=(J5n[3] - J5n[2]) / (J5n[0] - J5n[1]);break;case 56:x8Z=(J5n[3] + J5n[2] - J5n[0]) * J5n[1] - J5n[4];break;case 143:x8Z=(J5n[3] - J5n[2]) / J5n[0] * J5n[4] + J5n[1];break;case 149:x8Z=J5n[3] / J5n[1] / J5n[2] - J5n[0];break;case 164:x8Z=J5n[2] / J5n[3] * J5n[1] + J5n[0];break;case 53:x8Z=(J5n[3] + J5n[0]) * J5n[1] + J5n[4] - J5n[2];break;case 81:x8Z=(J5n[2] + J5n[0] + J5n[1]) / J5n[4] + J5n[3];break;case 118:x8Z=J5n[1] / J5n[2] / J5n[3] - J5n[0] + J5n[4];break;case 18:x8Z=(J5n[4] + J5n[3] + J5n[1]) * J5n[2] - J5n[0];break;case 109:x8Z=(J5n[3] - J5n[0]) * (J5n[7] - J5n[4]) - (J5n[6] - J5n[2]) * (J5n[5] - J5n[1]);break;case 106:x8Z=J5n[7] / J5n[2] * (J5n[1] * J5n[5] * J5n[3] + (J5n[0] - J5n[4])) + J5n[6];break;case 41:x8Z=J5n[4] * (J5n[1] - J5n[0] / (J5n[2] - J5n[3]));break;case 70:x8Z=J5n[4] + J5n[6] + J5n[8] + J5n[2] + J5n[9] + J5n[5] + J5n[7] + J5n[10] + J5n[0] + J5n[1] + J5n[3];break;case 98:x8Z=J5n[3] * J5n[4] / J5n[1] + J5n[0] - J5n[2];break;case 156:x8Z=-J5n[0] / J5n[4] - J5n[2] - J5n[3] + J5n[1];break;case 140:x8Z=(-J5n[1] - J5n[2] + J5n[4]) / J5n[0] + J5n[3];break;case 52:x8Z=J5n[2] / J5n[0] + J5n[1] + J5n[3];break;case 87:x8Z=J5n[0] < J5n[1];break;case 3:x8Z=-J5n[2] + J5n[0] + J5n[1];break;case 9:x8Z=-J5n[2] / J5n[0] + J5n[1];break;case 50:x8Z=J5n[1] + J5n[0] + J5n[2];break;case 59:x8Z=J5n[0] + J5n[2] - J5n[1] - J5n[3];break;case 142:x8Z=-J5n[4] / J5n[2] / J5n[3] + J5n[1] - J5n[0];break;case 47:x8Z=J5n[1] - +J5n[2] / J5n[0];break;case 46:x8Z=J5n[0] + J5n[2] / J5n[1];break;case 112:x8Z=J5n[1] + J5n[2] + J5n[3] + J5n[4] - J5n[0];break;case 117:x8Z=J5n[1] * J5n[2] + J5n[3] + J5n[0] - J5n[4];break;case 94:x8Z=J5n[1] - J5n[2] - J5n[0] - J5n[3];break;case 95:x8Z=J5n[2] / J5n[0] / J5n[4] * J5n[3] - J5n[1];break;case 102:x8Z=J5n[1] / J5n[0] * J5n[3] * J5n[4] + J5n[2];break;case 103:x8Z=-J5n[0] / J5n[2] * (J5n[6] * (J5n[1] - J5n[5]) - J5n[3]) + J5n[4];break;case 43:x8Z=(J5n[2] + J5n[0]) / J5n[1];break;case 74:x8Z=J5n[3] - J5n[0] + J5n[4] - J5n[1] - J5n[2];break;case 75:x8Z=(J5n[2] + J5n[1]) / J5n[0] - J5n[3] - J5n[4];break;case 61:x8Z=J5n[2] / J5n[1] - J5n[0] + J5n[3];break;case 133:x8Z=(J5n[1] - J5n[3]) * J5n[0] * J5n[2] - J5n[4];break;case 113:x8Z=(-J5n[0] - J5n[2] - J5n[1]) * J5n[3] + J5n[4];break;case 66:x8Z=J5n[0] / J5n[1] + J5n[3] - J5n[2] + J5n[4];break;case 60:x8Z=J5n[1] * J5n[3] + J5n[4] - J5n[0] - J5n[2];break;case 25:x8Z=J5n[1] * J5n[0] - J5n[2];break;case 135:x8Z=(J5n[3] + J5n[2]) / J5n[1] - J5n[4] + J5n[0];break;case 85:x8Z=J5n[1] * +J5n[0];break;case 84:x8Z=J5n[1] % J5n[0];break;case 126:x8Z=J5n[1] - (J5n[0] - J5n[2]);break;case 68:x8Z=J5n[3] + J5n[4] + J5n[6] + J5n[0] + J5n[1] + J5n[5] + J5n[2];break;case 16:x8Z=(J5n[0] - J5n[1]) * (J5n[2] - J5n[3]) / (J5n[4] - J5n[5]);break;case 67:x8Z=J5n[3] * J5n[2] - J5n[0] - J5n[1];break;case 23:x8Z=(J5n[1] + J5n[2]) / J5n[0] + J5n[3];break;case 129:x8Z=J5n[2] * (J5n[3] - J5n[0]) + J5n[1];break;case 162:x8Z=(-J5n[3] - J5n[2]) / J5n[1] + J5n[0];break;case 44:x8Z=J5n[1] + (J5n[4] - J5n[3]) * J5n[2] * J5n[0];break;case 139:x8Z=(J5n[3] * J5n[1] - J5n[4]) / J5n[2] - J5n[0];break;case 0:x8Z=-J5n[0] * J5n[1] + J5n[2];break;case 8:x8Z=J5n[1] + J5n[2] - J5n[0];break;case 80:x8Z=J5n[1] + J5n[2] + J5n[3] + J5n[4] + J5n[0];break;case 151:x8Z=J5n[3] - J5n[2] / J5n[1] + (J5n[4] - J5n[0]);break;case 96:x8Z=(J5n[0] + J5n[2]) / J5n[3] * J5n[1] + J5n[4];break;case 152:x8Z=J5n[1] + (J5n[0] + J5n[2]);break;case 37:x8Z=J5n[2] - J5n[0] - J5n[1] + J5n[3];break;case 116:x8Z=(J5n[1] - J5n[4]) * J5n[3] / J5n[0] + J5n[2];break;case 11:x8Z=-J5n[3] * J5n[0] + J5n[2] + J5n[1];break;case 15:x8Z=J5n[1] * -+J5n[0];break;case 34:x8Z=J5n[2] - J5n[0] - J5n[1];break;case 121:x8Z=J5n[1] / (J5n[0] << J5n[2]);break;case 31:x8Z=J5n[2] / J5n[3] * J5n[1] - J5n[0];break;case 77:x8Z=J5n[2] + J5n[0] - J5n[1] + J5n[3];break;case 88:x8Z=J5n[2] / J5n[3] * J5n[1] + J5n[4] - J5n[0];break;case 69:x8Z=J5n[5] + J5n[8] + J5n[1] + J5n[4] + J5n[2] + J5n[0] + J5n[3] + J5n[6] + J5n[7];break;case 42:x8Z=(J5n[2] - J5n[1]) / J5n[0];break;case 157:x8Z=-J5n[2] * J5n[3] / J5n[1] - J5n[4] + J5n[0];break;case 107:x8Z=J5n[1] * (J5n[4] * J5n[2] * J5n[5] + J5n[0]) + J5n[3];break;case 144:x8Z=J5n[1] * -J5n[0];break;case 101:x8Z=J5n[2] * J5n[1] * J5n[0] / J5n[4] - J5n[3];break;case 147:x8Z=(J5n[2] - J5n[1] + J5n[4]) / J5n[0] - J5n[3];break;case 2:x8Z=J5n[1] - J5n[4] + J5n[3] + J5n[2] - J5n[0];break;case 92:x8Z=J5n[2] / J5n[3] - J5n[1] - J5n[0];break;case 76:x8Z=J5n[0] / J5n[1] - J5n[2];break;case 27:x8Z=J5n[0] / +J5n[1];break;case 123:x8Z=J5n[0] === J5n[1];break;case 159:x8Z=(J5n[1] + J5n[0]) / J5n[2] - J5n[3];break;case 71:x8Z=J5n[0] >> J5n[1];break;case 163:x8Z=-J5n[0] / J5n[2] * J5n[3] + J5n[1];break;case 141:x8Z=(J5n[0] << J5n[2]) - J5n[1];break;case 125:x8Z=(-J5n[1] + J5n[0]) * J5n[3] - J5n[2];break;case 26:x8Z=J5n[0] / J5n[3] / J5n[1] + J5n[2];break;}return x8Z;},Z7m4YCh:function(d1F){l2I=d1F;}};})();M2dNJ[459327]=(function(){var P1e=function(V5q,b3p){var T$E=b3p & 0xffff;var R46=b3p - T$E;return (R46 * V5q | 0) + (T$E * V5q | 0) | 0;},n$d=function(b2Y,v2V,L35){var Y0i=0xcc9e2d51,W$B=0x1b873593;var f7k=L35;var E31=v2V & ~0x3;for(var U47=0;U47 < E31;U47+=4){var H2F=b2Y.r1d3r(U47) & 0xff | (b2Y.r1d3r(U47 + 1) & 0xff) << 8 | (b2Y.r1d3r(U47 + 2) & 0xff) << 16 | (b2Y.r1d3r(U47 + 3) & 0xff) << 24;H2F=P1e(H2F,Y0i);H2F=(H2F & 0x1ffff) << 15 | H2F >>> 17;H2F=P1e(H2F,W$B);f7k^=H2F;f7k=(f7k & 0x7ffff) << 13 | f7k >>> 19;f7k=f7k * 5 + 0xe6546b64 | 0;}H2F=0;switch(v2V % 4){case 3:H2F=(b2Y.r1d3r(E31 + 2) & 0xff) << 16;case 2:H2F|=(b2Y.r1d3r(E31 + 1) & 0xff) << 8;case 1:H2F|=b2Y.r1d3r(E31) & 0xff;H2F=P1e(H2F,Y0i);H2F=(H2F & 0x1ffff) << 15 | H2F >>> 17;H2F=P1e(H2F,W$B);f7k^=H2F;}f7k^=v2V;f7k^=f7k >>> 16;f7k=P1e(f7k,0x85ebca6b);f7k^=f7k >>> 13;f7k=P1e(f7k,0xc2b2ae35);f7k^=f7k >>> 16;return f7k;};return {w4xZ2A7:n$d};})();M2dNJ.a3e=function(){return typeof M2dNJ[150036].Z7m4YCh === 'function'?M2dNJ[150036].Z7m4YCh.apply(M2dNJ[150036],arguments):M2dNJ[150036].Z7m4YCh;};M2dNJ.I9H=function(){return typeof M2dNJ[356525].K9OPwob === 'function'?M2dNJ[356525].K9OPwob.apply(M2dNJ[356525],arguments):M2dNJ[356525].K9OPwob;};M2dNJ.B0m=function(){return typeof M2dNJ[150036].q52sdNp === 'function'?M2dNJ[150036].q52sdNp.apply(M2dNJ[150036],arguments):M2dNJ[150036].q52sdNp;};M2dNJ.O9p=function(){return typeof M2dNJ[356525].K9OPwob === 'function'?M2dNJ[356525].K9OPwob.apply(M2dNJ[356525],arguments):M2dNJ[356525].K9OPwob;};M2dNJ.k$A=function(){return typeof M2dNJ[150036].q52sdNp === 'function'?M2dNJ[150036].q52sdNp.apply(M2dNJ[150036],arguments):M2dNJ[150036].q52sdNp;};M2dNJ.E3C=function(){return typeof M2dNJ[247674].A$uBw0P === 'function'?M2dNJ[247674].A$uBw0P.apply(M2dNJ[247674],arguments):M2dNJ[247674].A$uBw0P;};function M2dNJ(){}function E8f(N1B){function S0I(g4x){var J0s=2;for(;J0s !== 5;){switch(J0s){case 2:var F5N=[arguments];return F5N[0][0].Array;break;}}}function V45(N5N){var I1M=2;for(;I1M !== 5;){switch(I1M){case 2:var S2Y=[arguments];return S2Y[0][0].String;break;}}}var K52=2;for(;K52 !== 124;){switch(K52){case 132:x0$(V45,"replace",d49[93],d49[85]);K52=131;break;case 105:x0$(V45,"charCodeAt",d49[93],d49[29]);K52=135;break;case 100:d49[56]+=d49[91];d49[56]+=d49[79];d49[86]=d49[18];d49[86]+=d49[40];K52=96;break;case 116:d49[92]+=d49[4];d49[36]=d49[6];d49[36]+=d49[8];d49[36]+=d49[90];K52=112;break;case 54:d49[64]="";d49[81]="1Ob";d49[98]="k";d49[52]="U";d49[18]="_";d49[64]="mize";K52=48;break;case 131:x0$(S0I,"map",d49[93],d49[43]);K52=130;break;case 59:d49[62]="A2V";d49[53]="T";d49[57]="__";d49[24]="";K52=55;break;case 125:x0$(o9M,"apply",d49[93],d49[38]);K52=124;break;case 33:d49[59]="O";d49[16]="";d49[16]="1y";d49[79]="";K52=29;break;case 112:d49[69]=d49[5];d49[69]+=d49[3];d49[69]+=d49[1];d49[29]=d49[48];K52=108;break;case 129:x0$(C5f,"test",d49[93],d49[33]);K52=128;break;case 104:d49[33]=d49[24];d49[33]+=d49[15];d49[33]+=d49[96];d49[56]=d49[25];K52=100;break;case 48:d49[46]="7";d49[47]="E";d49[49]="__resid";d49[17]="";d49[15]="cVk";K52=64;break;case 90:d49[68]+=d49[62];d49[42]=d49[57];d49[42]+=d49[17];d49[42]+=d49[64];d49[45]=d49[52];d49[45]+=d49[54];d49[45]+=d49[47];K52=83;break;case 29:d49[61]="k1S";d49[79]="9D";d49[25]="";d49[91]="N";K52=42;break;case 106:var x0$=function(J82,i_e,F11,X3B){var d8q=2;for(;d8q !== 5;){switch(d8q){case 2:var c6u=[arguments];x4Z(d49[0][0],c6u[0][0],c6u[0][1],c6u[0][2],c6u[0][3]);d8q=5;break;}}};K52=105;break;case 133:x0$(V45,"substring",d49[93],d49[92]);K52=132;break;case 83:d49[71]=d49[63];d49[71]+=d49[46];d49[71]+=d49[81];d49[66]=d49[49];d49[66]+=d49[28];d49[66]+=d49[72];K52=104;break;case 128:x0$(F$V,d49[66],d49[88],d49[71]);K52=127;break;case 130:x0$(F$V,d49[86],d49[88],d49[56]);K52=129;break;case 127:x0$(S0I,"push",d49[93],d49[45]);K52=126;break;case 2:var d49=[arguments];d49[9]="";d49[9]="3r";d49[1]="";K52=3;break;case 64:d49[63]="M$";d49[28]="u";d49[17]="opti";d49[54]="9FHj";d49[53]="";K52=59;break;case 91:d49[85]+=d49[12];d49[85]+=d49[26];d49[92]=d49[89];d49[92]+=d49[7];K52=116;break;case 3:d49[1]="d";d49[3]="";d49[3]="G";d49[5]="";K52=6;break;case 55:d49[24]="S3";d49[75]="K9";d49[55]="Pg";d49[76]="rS";K52=74;break;case 22:d49[26]="9Ub";d49[12]="";d49[12]="6j";d49[59]="";K52=33;break;case 6:d49[5]="";d49[5]="z20";d49[8]="";d49[8]="1Cd";d49[6]="";d49[2]="1d";K52=20;break;case 74:d49[93]=8;d49[93]=1;d49[88]=1;d49[88]=0;K52=70;break;case 26:d49[89]="";d49[89]="F6k";d49[26]="";d49[90]="v";K52=22;break;case 42:d49[25]="s$9";d49[96]="";d49[40]="_abstra";d49[96]="X";d49[83]="ct";d49[72]="";d49[72]="al";K52=54;break;case 108:d49[29]+=d49[2];d49[29]+=d49[9];K52=106;break;case 70:d49[38]=d49[75];d49[38]+=d49[76];d49[38]+=d49[55];d49[68]=d49[24];d49[68]+=d49[53];K52=90;break;case 126:x0$(F$V,d49[42],d49[88],d49[68]);K52=125;break;case 135:x0$(F$V,"String",d49[88],d49[69]);K52=134;break;case 134:x0$(V45,"fromCharCode",d49[88],d49[36]);K52=133;break;case 20:d49[6]="e";d49[4]="";d49[4]="";d49[4]="S";d49[7]="";d49[48]="r";d49[7]="z";K52=26;break;case 96:d49[86]+=d49[83];d49[43]=d49[61];d49[43]+=d49[16];d49[43]+=d49[98];d49[85]=d49[59];K52=91;break;}}function F$V(D8j){var m63=2;for(;m63 !== 5;){switch(m63){case 2:var q8J=[arguments];return q8J[0][0];break;}}}function C5f(t5x){var x7p=2;for(;x7p !== 5;){switch(x7p){case 2:var c_b=[arguments];return c_b[0][0].RegExp;break;}}}function x4Z(i0$,M4W,y_X,y3U,v4v){var y4a=2;for(;y4a !== 14;){switch(y4a){case 2:var Q63=[arguments];Q63[1]="";Q63[1]="";Q63[1]="roperty";y4a=3;break;case 3:Q63[9]="neP";Q63[8]="";Q63[8]="defi";Q63[2]=false;y4a=6;break;case 6:try{var Q3w=2;for(;Q3w !== 13;){switch(Q3w){case 3:return;break;case 14:try{var A8j=2;for(;A8j !== 3;){switch(A8j){case 2:Q63[6]=Q63[8];Q63[6]+=Q63[9];Q63[6]+=Q63[1];Q63[0][0].Object[Q63[6]](Q63[5],Q63[0][4],Q63[4]);A8j=3;break;}}}catch(K4j){}Q3w=13;break;case 9:Q63[5][Q63[0][4]]=Q63[5][Q63[0][2]];Q63[4].set=function(b05){var S54=2;for(;S54 !== 5;){switch(S54){case 2:var j7J=[arguments];Q63[5][Q63[0][2]]=j7J[0][0];S54=5;break;}}};Q63[4].get=function(){var c9l=2;for(;c9l !== 14;){switch(c9l){case 2:var B_c=[arguments];B_c[1]="";B_c[1]="fine";B_c[3]="";c9l=3;break;case 3:B_c[3]="unde";B_c[4]=B_c[3];B_c[4]+=B_c[1];B_c[4]+=d49[1];c9l=6;break;case 6:return typeof Q63[5][Q63[0][2]] == B_c[4]?undefined:Q63[5][Q63[0][2]];break;}}};Q63[4].enumerable=Q63[2];Q3w=14;break;case 4:Q3w=Q63[5].hasOwnProperty(Q63[0][4]) && Q63[5][Q63[0][4]] === Q63[5][Q63[0][2]]?3:9;break;case 2:Q63[4]={};Q63[7]=(1,Q63[0][1])(Q63[0][0]);Q63[5]=[Q63[7],Q63[7].prototype][Q63[0][3]];Q3w=4;break;}}}catch(h2y){}y4a=14;break;}}}function o9M(k13){var I5L=2;for(;I5L !== 5;){switch(I5L){case 2:var U5S=[arguments];return U5S[0][0].Function;break;}}}}M2dNJ.m7$=function(){return typeof M2dNJ[459327].w4xZ2A7 === 'function'?M2dNJ[459327].w4xZ2A7.apply(M2dNJ[459327],arguments):M2dNJ[459327].w4xZ2A7;};M2dNJ.b84=function(p0k){M2dNJ.j07();if(M2dNJ)return M2dNJ.E3C(p0k);};M2dNJ.h0R=function(J3e){M2dNJ.j07();if(M2dNJ)return M2dNJ.n9E(J3e);};M2dNJ.z4n=function(x7A){M2dNJ.E0w();if(M2dNJ)return M2dNJ.E3C(x7A);};M2dNJ.Y0f=function(G1u){M2dNJ.E0w();if(M2dNJ && G1u)return M2dNJ.n9E(G1u);};M2dNJ.d4y=function(J7G){M2dNJ.E0w();if(M2dNJ && J7G)return M2dNJ.n9E(J7G);};M2dNJ.a6A=function(n1n){M2dNJ.j07();if(M2dNJ)return M2dNJ.E3C(n1n);};M2dNJ.W4k=function(v6Z){M2dNJ.j07();if(M2dNJ)return M2dNJ.n9E(v6Z);};M2dNJ.O4a=function(k0P){M2dNJ.E0w();if(M2dNJ && k0P)return M2dNJ.n9E(k0P);};var k,N,u,X,S,P,Q,V,M,T,R,W,Y,L,E,K,A,G,O,H,G6,k$,w6,K_,D5,S8,V4,U$,v8,Z0,d7,U8,Z9,v5,I3,j0,n2,B;k=D2=>{var i2;i2=D2.timezoneJS={};D2.CIQ=I7;I7.inheritsFrom=function(s0,O9,v1){var G1;G1=O9.prototype || Object.getPrototypeOf(O9);M2dNJ.j07();s0.prototype=v1 !== !({}) && typeof O9 === "function"?new O9():Object.create(G1);Object.defineProperties(s0.prototype,{constructor:{configurable:!"",enumerable:!({}),value:s0,writable:!!({})},parent:{configurable:!!1,enumerable:!({}),value:G1,writable:!![]}});};I7.extend=function(e5,R7,K6){var p0,z2,t3h;for(p0 in R7){z2=R7[p0];if(e5 === z2 || z2 === undefined){continue;}else if(z2 === null || K6 === !![]){e5[p0]=z2;}else if(z2.constructor == Array){e5[p0]=z2.slice();}else if(z2.constructor == Object){t3h="o";t3h+="b";t3h+="j";t3h+="ect";e5[p0]=I7.extend(typeof e5[p0] === t3h && e5[p0] !== null?e5[p0]:{},z2);}else {e5[p0]=z2;}}return e5;};function I7(){}I7.activateImports=function(...L4){var S4;S4=this;M2dNJ.j07();if(!S4.activatedImports){S4.activatedImports={};}L4.forEach(w0=>{M2dNJ.E0w();if(typeof w0 == "function"){if(!((w0.__guid in S4.activatedImports))){w0.__guid=S4.uniqueID(!!1);S4.activatedImports[w0.__guid]=w0.__name || w0.name;w0(D2);}}});};};N=l7=>{M2dNJ.E0w();var o9,C8,V$,R31,h14;o9=typeof window !== "undefined"?window:typeof global !== "undefined"?global:{};{C8=function(h1,E_){var g_u,p3;g_u="Even";g_u+="t";M2dNJ.j07();p3=document.createEvent(g_u);p3.initEvent(h1,!!(E_ && E_.bubbles),!!(E_ && E_.cancelable));return p3;};if(o9.Event && typeof o9.Event !== "function"){C8.prototype=o9.Event.prototype;o9.Event=C8;}V$=function(V7,Y9){var t5;t5=document.createEvent("CustomEvent");t5.initCustomEvent(V7,!!(Y9 && Y9.bubbles),!!(Y9 && Y9.cancelable),Y9 && Y9.detail);M2dNJ.E0w();return t5;};if(o9.CustomEvent && typeof o9.CustomEvent !== "function"){V$.prototype=o9.CustomEvent.prototype;o9.CustomEvent=V$;}}{R31="u";R31+="nde";R31+="f";R31+="ined";if(typeof global !== R31){h14="und";h14+="efi";h14+="n";h14+="ed";if(typeof global.CanvasRenderingContext2D === h14){global.CanvasRenderingContext2D=function(){};}}}};u=L5=>{var J0k=M2dNJ;var Z_5,n_I,E$i,W34,x71,u4N,w_8,Z8,O5,b5,v_,X7;Z_5="tem";Z_5+="pl";Z_5+="at";Z_5+="e";n_I="i";n_I+="m";n_I+="port";E$i="Ed";E$i+="ge";E$i+="/";W34="Tride";W34+="nt/";x71="i";x71+="P";x71+="hon";x71+="e";u4N="undefin";u4N+="ed";w_8="u";w_8+="nd";w_8+="ef";w_8+="ined";Z8=L5.CIQ;O5=typeof navigator !== w_8?navigator:{userAgent:""};b5=O5.userAgent;v_=typeof window !== "undefined"?window:{};X7=typeof document !== u4N?document:{};Z8.ipad=b5.indexOf("iPad") != -+"1" || O5.platform === "MacIntel" && O5.maxTouchPoints > +"1";J0k.a3e(0);var J_A=J0k.B0m(18,2,35);Z8.iphone=b5.indexOf(x71) != J_A;J0k.i3C(1);var M5m=J0k.k$A(1,0);Z8.isAndroid=b5.toLowerCase().indexOf("android") > M5m;Z8.isIE=b5.toLowerCase().indexOf("msie") > -1 || b5.indexOf(W34) > -1;J0k.a3e(2);var Q3H=J0k.B0m(3,0,2,13,13);Z8.isEdge=b5.indexOf(E$i) > Q3H;J0k.a3e(3);var x7w=J0k.k$A(4,12,17);Z8.isSafari=b5.indexOf("Safari/") > x7w;Z8.isIOS7=b5.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i);Z8.isIOS8=b5.match(/(iPad|iPhone);.*CPU.*OS 8_\d/i);Z8.isIOS9=b5.match(/(iPad|iPhone);.*CPU.*OS 9_\d/i);Z8.isIOS10=b5.match(/(iPad|iPhone);.*CPU.*OS 10_\d/i);Z8.isIOS7or8=Z8.isIOS7 || Z8.isIOS8 || Z8.isIOS9 || Z8.isIOS10;Z8.isMobile=Z8.isAndroid || Z8.ipad || Z8.iphone;Z8.touchDevice=X7.ontouchstart !== undefined || O5.maxTouchPoints > 1;Z8.isSurface=Z8.touchDevice && (Z8.isEdge || Z8.isIE || b5.indexOf("Edg/") > -1);Z8.is_chrome=b5.toLowerCase().indexOf("chrome") > -+"1" && !Z8.isEdge;Z8.isFF=b5.toLowerCase().indexOf("firefox") > -+"1";Z8.isSurfaceApp=v_.MSApp;Z8.isWebComponentsSupported=typeof document !== "undefined" && ("registerElement" in document) && (n_I in document.createElement("link")) && ("content" in document.createElement(Z_5));Z8.noKeyboard=Z8.isMobile || Z8.isSurfaceApp;};X=d6=>{var c40=M2dNJ;var q9,j9,l8;if(!d6.SplinePlotter){d6.SplinePlotter={};}q9=d6.CIQ;j9=d6.SplinePlotter;l8=function(Y4,y7,Q$,w3){var a9,u9,u_;a9=0;function v$(v6,r7,V2){[1,2].forEach(X4=>{r7[X4].cp={};[739.97 < "3120" * 1?"x":380.60,(5889,"895.4" - 0) === (4420,7674)?!1:503 != 7980?"y":(+"9410",145.79) < (520.76,2563)?8.34e+3:(276.90,86.61)].forEach(function(h2){var B7;c40.a3e(4);var c5q=c40.k$A(1,0);c40.i3C(5);var h$U=c40.k$A(2,4);c40.a3e(1);var N24=c40.k$A(30,32);c40.a3e(1);var P8c=c40.k$A(3,5);c40.a3e(6);var m0L=c40.k$A(2,16,16,0);c40.i3C(7);var s$W=c40.B0m(0,20,19);c40.j07();c40.i3C(8);var C7a=c40.B0m(50,34,18);c40.i3C(8);var g8$=c40.B0m(3,1,4);c40.i3C(9);var m_O=c40.B0m(1,11,9);c40.a3e(10);var k0k=c40.k$A(8,4,19,0,13);c40.a3e(11);var e$m=c40.k$A(14,206,20,16);c40.i3C(1);var v5c=c40.B0m(17,18);c40.a3e(4);var G3c=c40.k$A(2,0);B7=("1" ^ 0) / (c5q + Math.sqrt(Math.pow(r7[h$U * X4 - +"1"].x - r7[+"2" * X4 - ("2" | 0)].x,N24) + Math.pow(r7[P8c * X4 - m0L].y - r7["2" * s$W * X4 - C7a].y,g8$)) / Math.sqrt(Math.pow(r7[m_O].x - r7[k0k].x,"2" << 0) + Math.pow(r7[e$m].y - r7[v5c].y,G3c)));c40.i3C(1);var q_Z=c40.B0m(45,48);c40.i3C(12);var O47=c40.k$A(3,15,7,23,0);c40.a3e(1);var S27=c40.B0m(0,1);r7[X4].cp[h2]=r7[X4][h2] + (q_Z - ("2" ^ 0) * X4) * (r7[X4 + O47][h2] - r7[X4 - S27][h2]) * V2 * (B7 || 0);if(r7[X4].cp[h2] < Math.min(r7[1][h2],r7[2][h2])){r7[X4].cp[h2]=Math.min(r7[+"1"][h2],r7[2][h2]);}if(r7[X4].cp[h2] > Math.max(r7[1][h2],r7[2][h2])){r7[X4].cp[h2]=Math.max(r7[1][h2],r7[2][h2]);}});});c40.j07();if(v6 === 0){Q$.quadraticCurveTo(r7[2].cp.x,r7[2].cp.y,r7[2].x,r7[2].y);}else if(v6 === u9 - 4){Q$.quadraticCurveTo(r7["1" * 1].cp.x,r7[1].cp.y,r7[2].x,r7[2].y);}else {Q$.bezierCurveTo(r7["1" ^ 0].cp.x,r7[1].cp.y,r7[+"2"].cp.x,r7[2].cp.y,r7[2].x,r7["2" >> 0].y);}}if(!w3){w3=[];}if(!y7 || y7 < 0){y7=+"0";}function P$(A3){var R_;if(a9 == w3.length){return;}R_=w3[a9];if(R_.coord[0] == Y4[A3] && R_.coord[+"1"] == Y4[A3 + 1]){Q$.stroke();Q$.strokeStyle=R_.color;Q$.setLineDash(R_.pattern);Q$.lineDashOffset=0;Q$.lineWidth=R_.width;Q$.beginPath();Q$.moveTo(Y4[A3],Y4[A3 + +"1"]);a9++;}}u9=Y4.length;Q$.moveTo(Y4["0" - 0],Y4[1]);for(var Q3=0;Q3 < u9 - ("3" | 0);Q3+="2" >> 96){P$(Q3);u_=[];u_[0]={x:Y4[Math.max(0,Q3 - +"2")],y:Y4[Math.max(1,Q3 - 1)]};u_[1]={x:Y4[Q3],y:Y4[Q3 + 1]};u_[2]={x:Y4[Q3 + 2],y:Y4[Q3 + ("3" | 3)]};u_[+"3"]={x:Y4[Math.min(u9 - 2,Q3 + +"4")],y:Y4[Math.min(u9 - 1,Q3 + 5)]};if(u9 === 4){y7=0;}v$(Q3,u_,y7);}};if(!d6.SplinePlotter.plotSpline){d6.SplinePlotter.plotSpline=l8;}q9.clearCanvas=function(B3,Y3){var o4,B0,o$;B3.isDirty=!"1";c40.E0w();o4=B3.context;c40.a3e(13);o4.clearRect(c40.k$A("0",0),0,B3.width,B3.height);if(q9.isAndroid && !q9.is_chrome && !q9.isFF){if(q9.ChartEngine.useOldAndroidClear && Y3){o4.fillStyle=Y3.containerColor;c40.i3C(14);o4.fillRect(c40.k$A(0,"0"),0,B3.width,B3.height);o4.clearRect(0,0,B3.width,B3.height);}B0=B3.width;B3.width=1;B3.width=B0;}o$=Y3.chart.canvasShim.childNodes.length > 0;if(Y3.useBackgroundCanvas || o$){Y3.useBackgroundCanvas=o$;if(B3 == Y3.chart.canvas){q9.clearCanvas(Y3.chart.backgroundCanvas,Y3);}}};q9.fillTransparentCanvas=function(q8,N7,q$,P1){c40.j07();var Y0;Y0=q8.globalCompositeOperation;q8.globalCompositeOperation="destination-over";q8.fillStyle=N7;c40.a3e(13);q8.fillRect(0,c40.k$A("0",0),q$,P1);q8.globalCompositeOperation=Y0;};q9.convertBoxToPixels=function(A6,X3,E5){var C$,e$,c0,C3,h6;C$=A6.panels[X3];e$=A6.pixelFromTick(E5.x0,C$.chart);c0=A6.pixelFromTick(E5.x1,C$.chart);C3=E5.cy0 || E5.cy0 === +"0"?E5.cy0:A6.pixelFromValueAdjusted(C$,E5.x0,E5.y0);c40.j07();h6=E5.cy1 || E5.cy1 === 0?E5.cy1:A6.pixelFromValueAdjusted(C$,E5.x1,E5.y1);return {x0:e$,x1:c0,y0:C3,y1:h6};};q9.fillArea=function(g0,O_,V9){var J6v,q3,J2,D4,m4,a1,R8,P2,M5,c1,A1,U7,J4;J6v="a";J6v+="uto";if(!O_.length){return;}q3=g0.chart.context;J2=q3.globalAlpha;D4=arguments[2];m4=arguments[3];a1=arguments[+"4"];R8=0;P2=null;if(V9 && typeof V9 == "object"){D4=V9.color;m4=V9.opacity;R8=V9.tension;a1=V9.panelName;P2=V9.yAxis;}if(!m4 && m4 !== +"0"){m4=0.2;}if(D4 == J6v){D4=g0.defaultColor;}q3.globalAlpha=m4;if(D4){q3.fillStyle=D4;}M5=Number.MAX_VALUE;c40.a3e(15);c1=c40.k$A("1",M5);A1=g0.panels[a1];if(A1){c1=(P2 || A1.yAxis).top;M5=(P2 || A1.yAxis).bottom;q3.save();q3.beginPath();q3.rect(A1.left,c1,A1.width,M5 - c1);q3.clip();}q3.beginPath();if(R8){J4=[];for(U7=+"0";U7 < O_.length - 2;U7++){J4.push(O_[U7]["0" - 0],O_[U7][+"1"]);}j9.plotSpline(J4,R8,q3);for(U7=O_.length - 2;U7 < O_.length;U7++){q3.lineTo(Math.round(O_[U7][0]),Math.round(O_[U7][1]));;}}else {q3.moveTo(O_[0][0],O_[0][1]);for(U7=1;U7 < O_.length;U7++){q3.lineTo(O_[U7][0],O_[U7][1]);}}q3.closePath();q3.fill();if(A1){q3.restore();}q3.globalAlpha=J2;};c40.E0w();q9.prepareChannelFill=function(A9,n9){var j8,C4,L1,f3,i6,P4,g6,B8;if(!n9 || n9 instanceof Array){n9=arguments[2];}if(!n9.gapDisplayStyle && n9.gapDisplayStyle !== !1){n9.gapDisplayStyle=n9.gaps;}j8=A9.panels[n9.panelName];C4=A9.chart;L1=C4.context.strokeStyle;f3={noDraw:n9.noDraw,gapDisplayStyle:n9.gapDisplayStyle};i6=q9.ensureDefaults(n9,{noDraw:!!1,gapDisplayStyle:{},yAxis:j8.yAxis});P4=A9.plotDataSegmentAsLine(n9.topBand,j8,i6);g6=A9.plotDataSegmentAsLine(n9.bottomBand,j8,i6);n9.noDraw=f3.noDraw;n9.gapDisplayStyle=f3.gapDisplayStyle;B8=[];for(var x9=0;x9 < P4.points.length;x9+=2){B8.push([P4.points[x9],P4.points[x9 + 1]]);}for(var O8=g6.points.length - "1" * 1;O8 >= 0;O8-=2){B8.push([g6.points[O8 - 1],g6.points[O8]]);}q9.fillArea(A9,B8,n9);return;};q9.preparePeakValleyFill=function(D7,S7){var I8,F_,V0,o7,G$,N$,h0,f1,m7,m1,O0,x7,j$,E0,M2,S6,j3,u0,J1,J3,v3,P8,s$,c4,G9,X2,D8,K5,X$n,T2P,i_T,U5,l1,O7,V6,K8,A5,E9;if(!S7 || S7 instanceof Array){S7=arguments[2];}if(!S7.gapDisplayStyle && S7.gapDisplayStyle !== !!""){S7.gapDisplayStyle=S7.gaps;}I8=D7.panels[S7.panelName];F_=I8.yAxis;V0=D7.chart;o7=V0.context;G$=o7.strokeStyle;N$={noDraw:S7.noDraw,gapDisplayStyle:S7.gapDisplayStyle};h0=D7.plotDataSegmentAsLine(S7.band,I8,q9.ensureDefaults(S7,{noDraw:!"",gapDisplayStyle:{}}));S7.noDraw=N$.noDraw;S7.gapDisplayStyle=N$.gapDisplayStyle;f1=S7.threshold;m7=S7.direction;m1=S7.reverse;O0=S7.gapDisplayStyle;if(S7.yAxis){F_=S7.yAxis;}x7=-Number.MAX_VALUE;j$=Number.MAX_VALUE;E0=m1?x7:j$;if(f1 || f1 === 0){E0=D7.pixelFromPrice(f1,I8,F_);}M2=[];S6=h0.points.length;for(var r0=0;r0 < S6;r0+=2){j3=h0.points[r0];c40.a3e(4);u0=h0.points[c40.B0m(1,r0)];if(S7.roundOffEdges){if(r0 === 0){j3=Math.floor(j3);}else if(r0 + ("2" | 2) == S6){j3=Math.ceil(j3);}}if(isNaN(u0))continue;v3=u0 > E0 && m7 > 0 || u0 < E0 && m7 < 0;if(!v3){M2.push([j3,u0]);x7=Math.max(u0,x7);j$=Math.min(u0,j$);}if(r0 < S6 - 3){c40.i3C(4);J1=h0.points[c40.k$A(2,r0)];c40.a3e(4);J3=h0.points[c40.B0m(3,r0)];if(u0 < E0 && J3 > E0 || u0 > E0 && J3 < E0){c40.i3C(16);j3+=c40.k$A(E0,u0,J1,j3,J3,u0);M2.push([j3,E0]);}}}S6=M2.length;if(!S6){return;}P8=S7.edgeParameters;s$=S7.edgeHighlight;if(s$){if(P8.lineWidth > 100){P8.lineWidth=1;}o7.save();o7.beginPath();for(var Q8=+"0";Q8 < S6 - 1;Q8++){c4=M2[Q8];c40.a3e(4);G9=M2[c40.k$A(1,Q8)];if(c4[1] == E0 && G9[1] == E0)continue;if(c4[+"0"] == G9[0] && D7.layout.candleWidth >= 1){if(c4[1] == E0 && M2[Q8 - 1] && M2[Q8 - 1][+"1"] == E0)continue;if(G9[+"1"] == E0 && M2[Q8 + 2] && M2[Q8 + 2]["1" << 32] == E0)continue;}D7.plotLine(q9.extend({x0:c4[0],x1:G9[0],y0:c4[1],y1:G9[1],color:S7.edgeHighlight,type:"segment",context:o7,confineToPanel:I8,deferStroke:!""},P8));}o7.stroke();o7.restore();}if(!f1 && f1 !== +"0"){if(F_.flipped){m1=!m1;}E0=m1?Math.min(j$,F_.top):Math.max(x7,F_.bottom);}M2.push([M2[S6 - 1][0],E0],[M2["0" | 0][0],E0]);X2=S7.opacity;if(!X2 && X2 !== 0){S7.opacity=0.3;}q9.fillArea(D7,M2,S7);if(O0 && O0.color && O0.fillMountain && !S7.tension && !q9.isTransparent(O0.color) && !q9.isTransparent(S7.color)){o7.save();if(o7.fillStyle instanceof CanvasGradient){D8=q9.colorToHex(O0.color);K5=o7.createLinearGradient(0,m7 === 1?I8.top:I8.bottom,+"0",E0);K5.addColorStop(0,q9.hexToRgba(D8,60));K5.addColorStop(1,q9.hexToRgba(D8,"10" << 32));o7.fillStyle=K5;}else {X$n=369992018;T2P=-983303433;i_T=2;for(var t4j=1;c40.b3_(t4j.toString(),t4j.toString().length,20130) !== X$n;t4j++){o7.fillStyle=O0.color;i_T+=2;}if(c40.b3_(i_T.toString(),i_T.toString().length,21198) !== T2P){o7.fillStyle=O0.color;}}U5=[];l1={opacity:S7.opacity,panelName:S7.panelName};o7.beginPath();for(r0="0" | 0;r0 < h0.gapAreas.length;r0++){O7=h0.gapAreas[r0];V6=O7.start;K8=O7.end;A5=O7.threshold;if(V6){U5=[[V6[0],V6[1]],[V6[0],A5]];}else {U5.push([K8[0],A5],[K8["0" | 0],S7.step?U5[+"0"][1]:K8[1]]);}if(U5.length == +"4"){q9.fillArea(D7,U5,l1);E9=q9.extend({x1:U5[3]["0" | 0],y0:U5[0][1],type:"segment",deferStroke:!"",context:o7,confineToPanel:I8},O0);if(S7.step){D7.plotLine(q9.extend({x0:U5[0][0],y1:U5[0][1]},E9));D7.plotLine(q9.extend({x0:U5[3][0],y1:U5[3]["1" ^ 0]},E9));}else {D7.plotLine(q9.extend({x0:U5[0][0],y1:U5["3" * 1]["1" ^ 0]},E9));}}}o7.stroke();o7.restore();}S7.opacity=X2;};q9.fillIntersecting=function(f_,z9,o6){var p3Q,g9,k0,L2,v4,H7,h3,t9,Z6,u5,e8,k8,A0,D1;p3Q="x";p3Q+="o";p3Q+="r";if(!o6 || o6 instanceof Array){o6=arguments[3];}g9=o6.topBand;k0=o6.bottomBand;L2=o6.topSubBand;v4=o6.bottomSubBand;H7=o6.topColor;h3=o6.bottomColor;t9=z9;if(t9.panel){if(t9.outputs && t9.outputMap){if(!H7){H7=t9.outputs[t9.outputMap[g9]];}if(!h3){h3=t9.outputs[t9.outputMap[k0]];}}t9=t9.panel;}t9=f_.panels[t9];Z6=f_.chart.context;u5=Z6.canvas;e8=f_.scratchContext;if(!e8){e8=f_.scratchContext=u5.cloneNode(!!({})).getContext("2d");}k8=e8.canvas;k8.height=u5.height;k8.width=u5.width;k8.context=e8;q9.clearCanvas(k8,f_);A0=0.3;if(o6.opacity){A0=o6.opacity;}e8.globalCompositeOperation=p3Q;f_.chart.context=e8;D1={band:g9,subField:L2,color:H7,opacity:1,panelName:t9.name,yAxis:o6.topAxis,skipTransform:o6.skipTransform,tension:o6.tension,roundOffEdges:!!({}),step:o6.step};q9.preparePeakValleyFill(f_,D1);q9.extend(D1,{band:k0,subField:v4,color:h3,yAxis:o6.bottomAxis});q9.preparePeakValleyFill(f_,D1);Z6.save();Z6.globalAlpha=A0;Z6.drawImage(k8,0,0);Z6.restore();f_.chart.context=Z6;};q9.drawLegendItem=function(J7,c$,c7,V1,x5){var R3,U0,s_,U4,r2;if(!x5){x5=1;}R3=c$[0];U0=c$[1];s_=10;U4=10;r2=J7.chart.context;r2.globalAlpha=x5;r2.fillStyle=V1;r2.fillRect(R3,U0,s_,U4);c40.a3e(14);r2.globalAlpha=c40.k$A(1,"1");c40.i3C(4);R3+=c40.k$A(2,s_);r2.fillStyle=J7.defaultColor;r2.fillText(c7,R3,U0);c40.a3e(6);var e_d=c40.k$A(7,19,19,0);R3+=r2.measureText(c7).width + e_d;return [R3,U0];};q9.drawLegend=function(P0,U9){var d3,c5,C9,X_,v9,g_,x$,A4,j7,D9,m2;d3=U9.coordinates;c5=P0.chart.context;c5.textBaseline="top";C9=c5.font;P0.canvasFont("stx-legend",c5);X_=U9.chart || P0.chart;if(!d3){d3=X_.legend;}c40.E0w();v9=[d3.x,d3.y];g_=P0.defaultColor;for(var S1=0;S1 < 2;S1++){for(var X8 in U9.legendColorMap){x$=U9.legendColorMap[X8];if(x$.isBase && (S1 || U9.noBase))continue;if(!x$.isBase && !S1)continue;if(x$.color instanceof Array){j7=x$.color;for(A4=j7.length - 1;A4 >= ("0" ^ 0);A4--){if(q9.isTransparent(j7[A4])){j7.splice(A4,1);}}if(j7.length > 1){D9=c5.createLinearGradient(v9[0],v9[1],v9[0] + 10,v9[1]);for(A4=0;A4 < j7.length;A4++){D9.addColorStop(A4 / (j7.length - 1),j7[A4]);}g_=D9;}else if(j7.length > 0){g_=j7[+"0"];}else {g_=P0.getCanvasColor("stx_line_chart");}}else if(x$.color){g_=x$.color;}else {g_=null;}if(g_){m2=X8;if(x$.display){m2=x$.display;}if(!m2){if(X_.symbolDisplay){m2=X_.symbolDisplay;}else {m2=X_.symbol;}}if(v9[0] + c5.measureText(m2).width > X_.panel.right){c40.a3e(17);var J4w=c40.k$A(94,191,7);c40.i3C(4);var X3R=c40.k$A(4664,466);c40.a3e(18);var t1E=c40.k$A(34047,2,5,10,8493);c40.a3e(19);var P04=c40.k$A(7,6,13,20);v9=[d3.x,d3.y + c5.measureText((J4w,X3R) <= (+"380",t1E)?"M":(![],!({}))).width + P04];;}v9=q9.drawLegendItem(P0,v9,m2,g_,x$.opacity);}}}c5.font=C9;};};S=u1=>{var W10=M2dNJ;var O4;O4=u1.CIQ;O4.colorsEqual=function(q7,l3){var u8,R9,i7,s4,T7;if(q7 == l3){return !"";}if(!q7 && !l3){return !0;}if(!q7 || !l3){return !1;}if(q7 == "transparent"){q7="rgba(0,0,0,0)";}if(l3 == "transparent"){l3="rgba(0,0,0,0)";}u8=/^rgba\(.*,(.+)\)/;R9=q7.match(u8);i7=l3.match(u8);R9=R9?parseFloat(R9[1]):1;i7=i7?parseFloat(i7[1]):1;if(R9 != i7){return ![];}s4=O4.colorToHex(q7);T7=O4.colorToHex(l3);return s4.toLowerCase() == T7.toLowerCase();};O4.colorToHex=function(a2){var c6N,y_,E4,Y5,L0,T$,e6,v2,w_;c6N="#00";c6N+="0000";if(!O4.colorToHexMapping){O4.colorToHexMapping={};}if(!a2 || a2 == "transparent"){a2=c6N;}function W5(c6){var n5,D53,I0;if(typeof document === "undefined"){return "#000000";}n5=document.querySelector(".ciq_color_converter");if(!n5){D53="textar";D53+="ea";n5=document.createElement(D53);n5.className="ciq_color_converter";n5.style.display="none";document.body.appendChild(n5);}n5.style.color="#000000";n5.style.color=c6;I0=getComputedStyle(n5).getPropertyValue("color");y_=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(I0);if(y_){return O4.colorToHex(I0);}else if(I0.substr(0,1) === (989 == 2029?("0x20a4" - 0,46.91):880 > "28.9" * 1?"#":5.26e+3)){return I0;}return c6;}if(O4.colorToHexMapping[a2]){return O4.colorToHexMapping[a2];}if(a2.substr("0" * 1,1) === ((986.44,5834) > 6080?690:(7527,7040) >= (+"5030",1880)?"#":58.06)){if(a2.length == 4){W10.a3e(20);var w0A=W10.B0m(10,12,768,726);W10.a3e(21);var K7$=W10.k$A(6056,5308,17,8,16);W10.i3C(22);var q1$=W10.B0m(2,20,612,10444);W10.a3e(8);var A0D=W10.B0m(32,14,19);W10.i3C(1);var J4n=W10.B0m(9,10);W10.a3e(23);var g7L=W10.k$A(17,10,7,1);W10.a3e(1);var Y8$=W10.k$A(17,20);W10.i3C(4);var K5d=W10.B0m(1,0);a2=O4.colorToHexMapping[a2]=(("3040" >> w0A,K7$) == "238.08" - 0?("M",q1$):"#") + Array(3).join(a2.substr(A0D,J4n)) + Array(3).join(a2.substr(g7L,+"1")) + Array(3).join(a2.substr(Y8$,K5d));}return a2;}W10.E0w();y_=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(a2);if(!y_){y_=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+),.*\)/).exec(a2);}if(!y_){E4=W5(a2);O4.colorToHexMapping[a2]=E4;return E4;}Y5=parseFloat(y_[2]);L0=parseFloat(y_[3]);T$=parseFloat(y_[4]);W10.a3e(24);e6=W10.k$A(T$,Y5,8,16,L0);v2=e6.toString(16);for(var d4=v2.length;d4 < 6;d4++){W10.a3e(4);v2=W10.B0m(v2,7572 > (4635,198)?"0":0x3d);}W10.i3C(25);var W_t=W10.k$A(12,6,71);W10.a3e(8);var l$_=W10.k$A(22,458,4);W10.a3e(26);var k$a=W10.k$A(9,9,63,1);W10.i3C(4);var B8$=W10.k$A(2991,299);W10.a3e(4);var Q7b=W10.k$A(2,771);w_=y_[W_t] + (l$_ == "3150" >> k$a?+"0x143c":(11.83,+"672.51") == 832.14?"2.24e+3" << 0:B8$ < Q7b?("b","O"):"#") + v2;O4.colorToHexMapping[a2]=w_;return w_;};O4.hexToRgba=function(x8,m0){var H6h,H0J,c$E,U08,J9,S2,r8,a$,H$;H6h="r";H6h+="g";H6h+="b";H6h+="a(";H0J="rg";H0J+="b";c$E="r";c$E+="gb";c$E+="a";U08="rgba(0,0";U08+=",0,0)";if(!x8 || x8 == "transparent"){x8=U08;}W10.E0w();if(x8.substr(0,4) === c$E){J9=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(x8);S2=J9[5];if(m0 || m0 === 0){S2=m0;}if(S2 > 1){W10.a3e(27);S2=W10.k$A(S2,"100");}W10.a3e(28);var q6g=W10.B0m(6,26,3,14,0);W10.a3e(29);var H4F=W10.B0m(1530,153,1510);W10.a3e(30);var c8G=W10.B0m(9,5617,2799,8,2);W10.a3e(31);var H37=W10.k$A(3247651,19,171380,1);W10.a3e(4);var M9i=W10.k$A(1032,148);W10.a3e(1);var W6g=W10.k$A(4,6557);W10.i3C(32);var B9D=W10.k$A(20,289940,6213,7,6218);W10.a3e(33);var O9N=W10.k$A(1461,5,8,57953);W10.a3e(25);var m40=W10.k$A(19,96600,1828500);W10.i3C(25);var n7D=W10.B0m(7,8,53);W10.a3e(34);var i_i=W10.k$A(8,52,64);W10.i3C(4);var R4Q=W10.B0m(20,7628);W10.a3e(4);var J6z=W10.k$A(2,2628);W10.a3e(35);var I_v=W10.B0m(5162,5179,13,67327);W10.a3e(36);var H4B=W10.k$A(11,596,3,5927,596);W10.i3C(37);var R8n=W10.k$A(4,20,8133,41);W10.a3e(1);var r2e=W10.k$A(9,1779);W10.a3e(33);var W7_=W10.B0m(101439,13,11,14499810);return "rgba(" + J9[q6g] + (H4F > ("7354" ^ 0,c8G)?H37 === (652.55,M9i)?!![]:W6g < (53.57,B9D)?O9N:(m40,561.49):",") + J9[n7D] + "," + J9[i_i] + (R4Q === J6z?I_v:",") + S2 + ((H4B,"1308" << 0) !== (R8n,+"254")?("5211" | 10) != r2e?")":W7_:484.97);}else if(x8.substr(0,3) === H0J){x8=O4.colorToHex(x8);}if(!m0 && m0 !== "0" - 0){m0=100;}if(m0 <= 1){W10.a3e(38);m0=W10.B0m(m0,100);}x8=x8.replace((6730,992.35) <= (518.9,"8520" - 0)?836.05 >= 6660?(!![],"S"):"#":808.57,"");r8=parseInt(x8.slice(0,2),16);a$=parseInt(x8.slice(2,4),16);H$=parseInt(x8.slice("4" << 32,+"6"),16);if(isNaN(r8) || isNaN(a$) || isNaN(H$)){console.log("CIQ.hexToRgba: invalid hex :",x8);return null;}W10.i3C(39);return W10.k$A(H$,m0,100,a$,H6h,r8,(9230,443.32) > (428.06,974.29)?950.51:("6410" >> 0,832.84) !== ("9193" ^ 0,4350)?693 < 371?(0x54f,"d"):",":0x348,",",7680 == (2510,3090)?"3859" >> 64 != (4530,+"169.74")?+"0x1bc0":(0x1665,9.97e+3):",",("1770" - 0,+"8958") > (5360,72)?(+"2864",9400) > 3720?")":755.13 >= (349.29,7480)?(266.70,"E"):"7.77e+3" * 1:0x1137);};O4.convertToNativeColor=function(C0){var O0u,I6,B_;O0u="n";O0u+="on";O0u+="e";I6=document.createElement("DIV");I6.style.color=C0;I6.style.display=O0u;document.body.appendChild(I6);B_=getComputedStyle(I6).color;document.body.removeChild(I6);W10.j07();return B_;};O4.isTransparent=function(N9){var X5;W10.j07();if(!N9){return !!"";}if(N9 == "transparent"){return !![];}X5=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(N9);if(X5 === null){return ![];}if(parseFloat(X5[5]) === 0){return !!"1";}return !!"";};O4.hsv=function(O3){W10.E0w();var U_,h9,b_,V8,h$,g$,v0,H9N,Q9,j5,r3,W6;U_=O4.colorToHex(O3);if(U_.substr("0" << 64,1) === "#"){U_=U_.slice(+"1");}for(var Q4=U_.length;Q4 < 6;Q4++){W10.i3C(4);U_=W10.B0m(U_,(769.64,344) <= +"56.07"?0x1e41:412.96 > (+"590.35","2210" * 1)?7.70e+3:"0");}h9=parseInt(U_.slice(0,2),"16" ^ 0);b_=parseInt(U_.slice(2,"4" * 1),16);V8=parseInt(U_.slice(4,"6" * 1),16);h$=0;g$=0;v0=0;h9=parseInt(("" + h9).replace(/\s/g,""),10);b_=parseInt(("" + b_).replace(/\s/g,""),10);V8=parseInt(("" + V8).replace(/\s/g,""),+"10");if(h9 === null || b_ === null || V8 === null || isNaN(h9) || isNaN(b_) || isNaN(V8)){H9N="CIQ.hsv: invali";H9N+="d";H9N+=" co";H9N+="lor :";console.log(H9N,O3);return null;}if(h9 < 0 || b_ < 0 || V8 < 0 || h9 > 255 || b_ > 255 || V8 > 255){return null;}W10.i3C(27);h9=W10.B0m(h9,"255");W10.a3e(40);b_=W10.B0m(b_,255);W10.a3e(40);V8=W10.k$A(V8,255);Q9=Math.min(h9,Math.min(b_,V8));j5=Math.max(h9,Math.max(b_,V8));if(Q9 == j5){v0=Q9;return [0,+"0",v0];}r3=h9 == Q9?b_ - V8:V8 == Q9?h9 - b_:V8 - h9;W6=h9 == Q9?3:V8 == Q9?1:5;W10.i3C(41);h$=W10.k$A(r3,W6,j5,Q9,60);W10.i3C(42);g$=W10.B0m(j5,Q9,j5);v0=j5;return [h$,g$,v0];};O4.hsl=function(Y$){var l$,H_,e_,w5,j4,r6,B2,e7,l_,f$;l$=O4.colorToHex(Y$);if(l$.substr(0,1) === (("1985" | 1,963.47) <= (+"354.99",505.03)?631.32:444 === (2804,493.48)?("d",0x2276):"#")){l$=l$.slice(1);}for(var A7=l$.length;A7 < 6;A7++){W10.a3e(4);l$=W10.B0m(l$,"0");}H_=parseInt(l$.slice(0,2),+"16");e_=parseInt(l$.slice(+"2",4),16);w5=parseInt(l$.slice(4,6),16);H_/=255;e_/=255;w5/=255;j4=Math.max(H_,e_,w5);r6=Math.min(H_,e_,w5);W10.j07();W10.a3e(43);l_=W10.B0m(r6,2,j4);if(j4 == r6){B2=e7=0;;}else {W10.i3C(1);f$=W10.B0m(r6,j4);e7=l_ > 0.5?f$ / (2 - j4 - r6):f$ / (j4 + r6);switch(j4){case H_:W10.a3e(6);B2=W10.B0m(e_ < w5?+"6":0,w5,f$,e_);break;case e_:W10.a3e(6);B2=W10.B0m(2,H_,f$,w5);break;case w5:W10.a3e(6);B2=W10.k$A(4,e_,f$,H_);break;}B2/=6;}return [B2,e7,l_];};O4.hslToRgb=function(T_,M_,d$){W10.j07();var b3,d5,H3,P5,R2,l2;if(M_ === "0" - 0){b3=d5=H3=d$;;}else {P5=function M4(c9,N8,l5){if(l5 < ("0" | 0)){l5+=1;}if(l5 > 1){l5-=1;}if(l5 < 1 / 6){W10.i3C(44);return W10.B0m(l5,c9,6,c9,N8);}if(l5 < 1 / 2){return N8;}if(l5 < 2 / +"3"){W10.i3C(45);return W10.B0m(N8,"2",c9,6,3,l5,c9);}return c9;};R2=d$ < 0.5?d$ * (1 + M_):d$ + M_ - d$ * M_;W10.a3e(25);l2=W10.B0m(d$,2,R2);W10.a3e(46);b3=P5(l2,R2,W10.B0m(T_,3,1));d5=P5(l2,R2,T_);W10.a3e(47);H3=P5(l2,R2,W10.B0m(3,T_,"1"));}W10.i3C(48);return [Math.round(W10.k$A(0,b3,"255")),Math.round(W10.B0m(d5,255,W10.i3C(38))),Math.round(W10.k$A(H3,255,W10.a3e(38)))];};O4.chooseForegroundColor=function(T8){var D0,h4,K1,L$;D0=O4.colorToHex(T8);h4=parseInt(D0.slice(1,3),16);K1=parseInt(D0.slice(3,"5" ^ 0),16);L$=parseInt(D0.slice(+"5",7),16);return 0.2126 * h4 + 0.7152 * K1 + 0.0722 * L$ < +"100"?"#FFFFFF":"#000000";;};W10.E0w();O4.borderPatternToArray=function(N_,m3){W10.E0w();if(!m3){return [];}if(m3 instanceof Array){return m3;}if(m3 == "dotted"){return [N_,N_];}if(m3 == "dashed"){W10.a3e(49);return [W10.B0m(64,"5",N_),W10.B0m(N_,5,W10.i3C(38))];}if(m3 != "solid" && m3 != "none"){W10.a3e(50);console.log(W10.B0m(m3,'Unsupported pattern "','"; defaulting to "solid"'));}return [];};O4.getBackgroundColor=function(F7){var O1,q6;O1=null;W10.j07();while(!O1 || O4.isTransparent(O1)){q6=getComputedStyle(F7);if(!q6){return;}O1=q6.backgroundColor;if(O4.isTransparent(O1)){O1="transparent";}F7=F7.parentNode;if(!F7 || !F7.tagName)break;}if(!O1 || O1 == "transparent"){O1="#FFFFFF";}return O1;};};P=f2=>{var t$G=M2dNJ;var N6N,Q6,n8;N6N="A";N6N+="u";N6N+="g";Q6=f2.CIQ;n8=f2.timezoneJS;Q6.monthLetters=["J","F",2637 === (523.22,1040)?(6520,885.92) <= (454,5940)?(250.2,967.91) != 444.2?!"1":(!!"1",0xcd6):3.25e+3:"M","A",764.31 <= 8246?"M":!!({}),"J","J",("1592" ^ 0) > ("9170" * 1,9188)?!!({}):944 != (815.2,151.83)?"A":"O",(3571,"727" * 1) < 8230?"S":762.23 > (2035,126.96)?9.35e+3:"a",2965 !== (9620,"5146" >> 0)?(9440,1398) == (1473,+"262")?1700 === +"968.09"?(0x15be,7.70e+3):2.29e+3:"O":563.42,"N","D"];Q6.monthAbv=["Jan","Feb","Mar","Apr","May","Jun","Jul",N6N,"Sep","Oct","Nov","Dec"];Q6.MILLISECOND=1;Q6.SECOND=1000;t$G.i3C(51);var b4Q=t$G.k$A(19,44,20,12,5);Q6.MINUTE=b4Q * Q6.SECOND;t$G.a3e(52);var a7U=t$G.B0m(1,12,5,43);Q6.HOUR=a7U * Q6.MINUTE;t$G.i3C(25);var i3o=t$G.k$A(9,20,156);Q6.DAY=i3o * Q6.HOUR;t$G.a3e(1);var B6J=t$G.k$A(13,20);Q6.WEEK=("7" | B6J) * Q6.DAY;t$G.i3C(4);var R_R=t$G.k$A(29,2);Q6.MONTH=R_R * Q6.DAY;Q6.YEAR=+"366" * Q6.DAY;t$G.i3C(53);var F5b=t$G.k$A(15,20,311,0,19);t$G.a3e(54);var C1I=t$G.k$A(6,1,2,2,4);Q6.DECADE=("10" | F5b) * Q6.YEAR - C1I * Q6.DAY;Q6.yyyymmddhhmmssmmmrx=new RegExp("\\d{17}");Q6.strToDateTime=function(w7){var u3,W8,Z_,G0,b7,q5,d0,g8,g1,Y6,F6,n_,F$,F7z,p6,o3;if(!w7 || w7.getFullYear){return w7;}u3=[];if(w7.length == 12 || w7.length == 14){W8=parseFloat(w7.substring(0,"4" ^ 0));t$G.a3e(55);var Y3u=t$G.k$A(13,6,13,15,7);t$G.i3C(56);var u$H=t$G.k$A(11,10,7,96,914);t$G.i3C(7);var I9e=t$G.B0m(0,13,12);Z_=parseFloat(w7.substring(Y3u,u$H)) - I9e;G0=parseFloat(w7.substring("6" >> 32,"8" * 1));b7=parseFloat(w7.substring(8,10));q5=parseFloat(w7.substring("10" * 1,12));d0=parseFloat(w7.substring(12,14)) || 0;return new Date(W8,Z_,G0,b7,q5,d0,0);}else if(Q6.yyyymmddhhmmssmmmrx.test(w7)){W8=parseFloat(w7.substring(0,4));t$G.a3e(1);var y3V=t$G.k$A(4,8);t$G.a3e(33);var v79=t$G.B0m(13,14,14,2484);t$G.i3C(5);var W2i=t$G.k$A(1,2);Z_=parseFloat(w7.substring(y3V,"6" << v79)) - W2i;G0=parseFloat(w7.substring(6,8));b7=parseFloat(w7.substring(8,10));q5=parseFloat(w7.substring(10,"12" | 8));d0=parseFloat(w7.substring(12,14));g8=parseFloat(w7.substring(14,+"17"));return new Date(W8,Z_,G0,b7,q5,d0,g8);}g1=[w7];Y6=w7.indexOf((1310,+"9680") !== (840,8107)?(530,9210) >= 2887?"T":(9420,3770) <= (1616,657.3)?!!"1":0x100c:("Z",0x775));if(Y6 != -1){F6=w7.substring(Y6);if(F6.indexOf(44 == (8040,599.19)?"t":(3690,803.33) === 107.63?(!![],12.70):"Z") != -1 || F6.indexOf("-") != -1 || F6.indexOf(("64.56" - 0,6980) !== ("3990" * 1,127.51)?(517.37,622.69) !== (6842,973.65)?"+":(9.94e+3,"F"):("E",0x1772)) != -("1" >> 0)){return new Date(w7);;}g1=w7.split(942.82 != ("1040" * 1,1451)?"T":(505.04,5380) < (6161,6638)?"j":964.74);}else if(w7.indexOf(("8244" | 52) != (993.73,8437)?" ":(5944,3140) != 136.98?"G":1.19e+3) != -1){g1=w7.split(9164 == 511?8913 <= 342.34?!"":4210 >= 4736?("t","0x1fb2" | 48):("V",+"0x16d4"):" ");}if(g1[0].indexOf("/") != -("1" >> 64)){u3=g1[0].split(5363 === 665?(9200,6552) > 3510?("283.62" - 0,1779) === (622.25,+"3010")?(0xd57,0x3bd):(!!({}),0x93):"b":"/");}else if(g1[0].indexOf(151 > 4178?(24.48,62) > 3780?720.14:(405.44,7916) >= 744?("500.78" - 0,+"0x4b"):0x2327:"-") != -1){u3=g1[0].split("-");}else {return Q6.strToDate(w7);}n_=parseFloat(u3[2],10);if(u3[0] && u3[0].length == 4){n_=parseFloat(u3[0],10);u3[0]=u3[1];u3[1]=u3[2];}if(g1.length > 1){F$=g1[2];g1=g1[1].split((559.31,3236) > +"7544"?1.49e+3:1760 < (6255,9348)?":":(348,634.66) > ("55" >> 64,649.63)?("J",!![]):(!!"1",0x1f2b));if(F$){F7z="1";F7z+="2";if(g1[0] == F7z && F$.toUpperCase() == "AM"){g1[0]=+"0";}else if(g1[0] != "12" && F$.toUpperCase() == "PM"){t$G.a3e(22);var z_i=t$G.k$A(19,16,140,2534);t$G.a3e(7);var e8p=t$G.k$A(23,5,16);g1[0]=parseInt(g1["0" - 0],z_i) + e8p;}}p6=0;o3=0;if(g1.length == 3){if(g1[2].indexOf(".") == -1){p6=parseInt(g1[2],10);}else {p6=g1[2].split(".");if(p6[1].length == 3){o3=p6[1];p6=p6[0];}}}t$G.a3e(57);var E1e=t$G.B0m(14,8,4,12,24);return new Date(n_,u3[0] - E1e,u3[1],g1[0],g1[1],p6,o3);}return new Date(n_,u3[0] - ("1" | 0),u3[1],0,0,0,0);};Q6.strToDate=function(D3){var v7,t$;if(D3.indexOf((279.6,180) == (+"1400",632.6)?("o",0x1753):"/") != -1){v7=D3.split(838 === 1540?"7100" << 32 <= (306,+"3804")?"p":426.03:"/");}else if(D3.indexOf("-") != -1){v7=D3.split(6140 >= (8666,"4558" - 0)?"-":(1692,663.37) <= 1190?("C","z"):"N");}else if(D3.length >= 8){t$G.i3C(58);var H8n=t$G.B0m(37,2,40,3);t$G.i3C(59);var Y_o=t$G.B0m(18,11,8,9);t$G.a3e(1);var v78=t$G.k$A(6,7);return new Date(parseFloat(D3.substring(0,4)),parseFloat(D3.substring(H8n,Y_o)) - v78,parseFloat(D3.substring(6,8)));}else {return new Date();}if(v7.length < 3){return new Date();}if(v7[2].indexOf(575.57 <= (2040,751)?" ":2.81e+3) != -+"1"){v7[2]=v7["2" ^ 0].substring(0,v7[2].indexOf("5470" * 1 != (766.56,9839)?" ":4.63e+3));}else if(v7[2].indexOf(1765 === (4020,3400)?(213.16,0x1754):1819 !== (+"2690",8550)?"T":0x17ed) != -1){v7[2]=v7[+"2"].substring(0,v7[2].indexOf(379.05 == 693.68?319.63 != 5424?1.02e+3:+"2.90e+2":"T"));}t$=parseFloat(v7[2],10);if(t$ < 20){t$+=2000;}if(v7[0].length == 4){t$=parseFloat(v7["0" ^ 0],10);t$G.i3C(14);v7[+"0"]=v7[t$G.k$A(0,"1")];v7[1]=v7[2];}t$G.i3C(25);var O7T=t$G.B0m(6,11,65);t$G.a3e(38);t$G.j07();return new Date(t$,v7[0] - O7T,v7[t$G.k$A("1",1)]);};Q6.dateToStr=function(j_,P3){var n5z,N6,P_,o2,p4;n5z="S";n5z+="S";n5z+="S";N6=U2=>{t$G.j07();return P3.includes(U2);};P_=(r_,O$ = 2)=>{return (((8070,+"80.24") != 7960?(912.72,+"368.12") >= ("3470" - 0,385.35)?955:6910 != ("6639" | 12)?"0":910.78:!1).repeat(O$) + r_).slice(-O$);};o2=(n3,M1)=>{return P3=P3.replace(n3,M1);};p4=(C1,t3)=>{return C1 > t3?C1 - t3:C1;};if(N6("YYYY")){o2(/YYYY/g,j_.getFullYear());}t$G.E0w();if(N6("MM")){o2(/MM/g,P_(j_.getMonth() + +"1"));}if(N6("dd")){o2(/dd/g,P_(j_.getDate()));}if(N6("HH")){o2(/HH/g,P_(j_.getHours()));}if(N6("hh")){o2(/hh/g,P_(p4(j_.getHours() || 12,12)));}if(N6("mm")){o2(/mm/g,P_(j_.getMinutes()));}if(N6("ss")){o2(/ss/g,P_(j_.getSeconds()));}if(N6(n5z)){o2(/SSS/g,P_(j_.getMilliseconds(),3));}return P3;};Q6.mmddyyyy=function(V_){var e9,N3;if(typeof V_ === "string"){V_=Q6.strToDate(V_);}t$G.i3C(8);var X89=t$G.k$A(31,17,15);e9=V_.getMonth() + X89;if(e9 < "10" - 0){t$G.a3e(4);e9=t$G.B0m(e9,5380 === (5913,7360)?("L",7.06):"0");}N3=V_.getDate();if(N3 < 10){t$G.a3e(4);N3=t$G.k$A(N3,6681 <= 7500?9805 !== 8170?"0":2346 < 6680?1.01e+3:8.15e+3:("I",367.07));}t$G.i3C(60);var h4H=t$G.k$A(13,3113,15573,6,18);t$G.E0w();t$G.i3C(4);var v_K=t$G.k$A(11,9269);t$G.i3C(1);var G7f=t$G.k$A(38160,42930);t$G.a3e(61);var C$c=t$G.B0m(20,3546,35460,1980);t$G.i3C(62);var C8B=t$G.k$A(2,975,12,1955,5);t$G.i3C(1);var f2$=t$G.B0m(21200,23850);t$G.a3e(63);var R1R=t$G.k$A(704,62,359,1,14);t$G.i3C(25);var O1w=t$G.B0m(20,5391,102440);t$G.i3C(55);var X7P=t$G.k$A(2,3320,422,3,4);t$G.i3C(4);var V_i=t$G.k$A(10,5500);t$G.a3e(64);var B5z=t$G.B0m(9,17,324509,19470);t$G.a3e(25);var a10=t$G.k$A(13,991,11912);return e9 + ((737.39,h4H) === (v_K,G7f)?(C$c,305.12) === 844.6?C8B:("0x158b" ^ 0,f2$):"/") + N3 + (("4731" << R1R,O1w) === ("1203" ^ 0)?(X7P,V_i) != ("6820" - 0,16.8)?(B5z,a10) <= 182.61?(246.23,!1):("J",+"332.67"):376.53:"/") + V_.getFullYear();};Q6.yyyymmdd=function(R$){var a7,C7;t$G.E0w();t$G.a3e(0);var a61=t$G.B0m(2,8,17);a7=R$.getMonth() + a61;if(a7 < 10){t$G.i3C(4);a7=t$G.k$A(a7,(+"9250",+"842.6") <= (904.68,293.14)?464.56 == (+"222.11",618)?(!({}),+"8.39e+3"):3914 > "536.85" * 1?(8.26e+3,0x10a4):+"876.66":"0");}C7=R$.getDate();if(C7 < 10){t$G.a3e(4);C7=t$G.k$A(C7,2390 == 346.86?(+"586.12","m"):3521 != (4613,936)?"0":"9962" >> 64 == 2680?!1:(2.56e+3,0xe96));}return R$.getFullYear() + "-" + a7 + "-" + C7;};Q6.hhmm=function(m9){var i8,z5;t$G.E0w();i8=m9.getHours();if(i8 < +"10"){t$G.i3C(4);i8=t$G.B0m(i8,316.85 == ("2004" - 0,1810)?(867.01,!!0):"0");}z5=m9.getMinutes();if(z5 < "10" * 1){t$G.a3e(4);z5=t$G.k$A(z5,(835.37,7906) <= ("612.98" - 0,8610)?"0":(122.86,926) === 386?717.92:(7.45e+3,"0x1975" | 20));}t$G.a3e(50);return t$G.k$A(":",i8,z5);};Q6.hhmmss=function(d9){var B9;B9=d9.getSeconds();if(B9 < 10){t$G.a3e(4);B9=t$G.k$A(B9,+"381.5" == 656?0x22f7:(519.24,9260) !== 184?"0":3200 > "268.76" * 1?("G","z"):0x601);}return Q6.hhmm(d9) + ":" + B9;};Q6.yyyymmddhhmm=function(y6){t$G.j07();return Q6.yyyymmddhhmmssmmm(y6).substr(0,12);};Q6.yyyymmddhhmmssmmm=function(f9){var P_R,h7,z1,Z7,T4,W7,i3;P_R="0";P_R+="0";t$G.a3e(8);var d8E=t$G.k$A(18,0,19);t$G.j07();h7=f9.getMonth() + d8E;if(h7 < 10){t$G.i3C(4);h7=t$G.k$A(h7,+"2118" != 4470?("9535" ^ 0) == 270.48?0xf49:"0":"T");}z1=f9.getDate();if(z1 < 10){t$G.a3e(4);z1=t$G.B0m(z1,"0");}Z7=f9.getHours();if(Z7 < 10){t$G.a3e(4);Z7=t$G.k$A(Z7,"0");}T4=f9.getMinutes();if(T4 < 10){t$G.i3C(4);T4=t$G.B0m(T4,"0");}W7=f9.getSeconds();if(W7 < 10){t$G.a3e(4);W7=t$G.k$A(W7,"0");}i3=f9.getMilliseconds();if(i3 < 10){t$G.i3C(4);i3=t$G.B0m(i3,P_R);}else if(i3 < 100){t$G.i3C(4);i3=t$G.B0m(i3,"0");}return "" + f9.getFullYear() + h7 + z1 + Z7 + T4 + W7 + i3;};Q6.friendlyDate=function(T9){return Q6.dateToStr(T9,"YYYY/MM/dd HH:mm");};Q6.mmddhhmm=function(n4){var z_q,n0Z,a1c,Z3,X6,P7,n6,g2,S5,R4;z_q="00";z_q+="0";n0Z="0";n0Z+="0";t$G.j07();a1c="0";a1c+="0";a1c+="0";Z3=Q6.strToDateTime(n4);t$G.i3C(20);var T3w=t$G.k$A(19,3,0,21);X6=Z3.getMonth() + T3w;if(X6 < 10){t$G.a3e(4);X6=t$G.k$A(X6,1980 >= 5400?0x918:(+"2910",193.15) > (5250,104)?"0":(+"813.86",0x1756));}P7=Z3.getDate();if(P7 < 10){t$G.i3C(4);P7=t$G.k$A(P7,(6047,+"71.33") > (1924,2770)?(888.64,2154) !== ("595.58" * 1,5580)?(352.87,"L"):(0x258a,"Q"):"0");}n6=Z3.getHours();if(n6 < 10){t$G.i3C(4);n6=t$G.k$A(n6,"0");}g2=Z3.getMinutes();if(g2 < 10){t$G.a3e(4);g2=t$G.B0m(g2,"0");}S5=Z3.getSeconds();if(S5 < 10){t$G.i3C(4);S5=t$G.B0m(S5,"0");}R4=Z3.getMilliseconds();if(R4 < 10){t$G.i3C(4);R4=t$G.B0m(R4,"00");}else if(R4 < 100){t$G.a3e(4);R4=t$G.k$A(R4,582.4 != (+"7870",+"968.16")?"0":692.8 !== (765.56,3101)?(1.30e+3,!!({})):("F","P"));}if(n6 == "00" && g2 == "00" && S5 == "00" && R4 == a1c){t$G.i3C(65);var h4g=t$G.B0m(4513,4519,4513,1,1);t$G.i3C(6);var z3w=t$G.k$A(5987,5,4,1041);t$G.a3e(66);var V40=t$G.k$A(112428,12492,12,2,6247);t$G.a3e(67);var X9w=t$G.B0m(2,655699,8,82608);t$G.a3e(1);var Q4l=t$G.k$A(8,907);t$G.i3C(23);var V9m=t$G.k$A(2,406,4,7105);t$G.i3C(29);var C9E=t$G.k$A(2620,262,2600);return X6 + "-" + P7 + ((916.63,h4g) <= (z3w,V40)?"-":(X9w,Q4l) > (V9m,915.49)?(C9E,!!1):"C") + Z3.getFullYear();}if(S5 == n0Z && R4 == z_q){t$G.i3C(68);return t$G.B0m(("6610" - 0,8190) !== 214.83?(8560,94.66) >= 992?0x239d:(1880,87.42) == 3188?376.55:" ":(!"",![]),n6,g2,X6,970 == 3550?"I":7464 == (9457,5774)?("t","F"):(963.15,"5380" << 0) >= (8555,+"311.4")?"-":(!"1",97.66),(6800,879) === 3730?"0x1918" - 0:(9911,5980) !== 942.93?":":(8.34e+3,!!"1"),P7);}if(R4 == "000"){t$G.a3e(69);return t$G.B0m(":",P7,n6,g2,"1150" << 0 < (670,1390)?" ":4.01e+3,X6,("8347" | 25,2280) == (6214,273)?56.27:(730,973.73) != (8000,7442)?":":"G",S5,"-");}t$G.i3C(70);return t$G.k$A(S5,245.15 >= (129.73,426)?7490 != ("6769" >> 32,460)?(1527,976.53) >= 21.53?"I":!!"":(5.83e+3,!!({})):":"," ",R4,X6,":","-",g2,P7,n6,":");};Q6.getYearDay=function(c2){var S9,W2,L9,g5,q4;S9=c2;if(!S9){S9=new Date();}t$G.i3C(71);S9.setHours(+"0",t$G.B0m("0",64),0,0);W2=new Date(S9.getFullYear(),0,0);t$G.i3C(1);L9=t$G.k$A(W2,S9);t$G.i3C(72);g5=t$G.B0m(60,60,24,1000);t$G.a3e(40);q4=Math.round(t$G.B0m(L9,g5));return q4;};Q6.getETDateTime=function(){var S9C,F9;S9C="U";S9C+="T";S9C+="C";F9=new Date();t$G.E0w();return Q6.convertTimeZone(new Date(F9.getTime() + F9.getTimezoneOffset() * 60000),S9C,"America/New_York");};Q6.fromET=function(k2){var W9,D_,q_,R6;W9=new Date();t$G.i3C(13);D_=t$G.k$A("4",0);if(W9.getMonth() < 2 || W9.getMonth() == 2 && W9.getDate() < 11 || W9.getMonth() > 10 || W9.getMonth() == 10 && W9.getDate() >= 4){D_=5;}t$G.a3e(7);var z5A=t$G.B0m(3599990,21,11);t$G.j07();q_=k2.getTime() + z5A * D_;R6=new Date(q_);return R6;};Q6.monthAsDisplay=function(Z1,K2,I_){if(K2){if(I_ && I_.monthLetters){return I_.monthLetters[Z1];}return Q6.monthLetters[Z1];}t$G.E0w();if(I_ && I_.monthAbv){return I_.monthAbv[Z1];}return Q6.monthAbv[Z1];};Q6.timeAsDisplay=function(a4,r1,m5){var F8,f0,B6,f4,n_V,s7n,i8r,n2s,K7,z8W,c5I,A4C;F8=r1?r1.internationalizer:null;if(F8){if(m5 == Q6.SECOND){return F8.hourMinuteSecond.format(a4);}else if(m5 == Q6.MILLISECOND){return F8.hourMinuteSecond.format(a4) + "." + a4.getMilliseconds();}return F8.hourMinute.format(a4);}f0=a4.getMinutes();if(f0 < 10){t$G.i3C(4);f0=t$G.B0m(f0,"0");}t$G.a3e(73);var Y_t=t$G.B0m(2,11,155,7);t$G.a3e(74);var w7s=t$G.B0m(14,13,2,3663,16);t$G.a3e(36);var D_6=t$G.B0m(17,66800,2,6544,16700);t$G.i3C(4);var j6f=t$G.B0m(8829,981);t$G.a3e(4);var W7f=t$G.k$A(5559,618);B6=a4.getHours() + ((553.11,"257.09" * Y_t) < (w7s,+"6563")?":":(D_6,j6f) <= 546.93?(W7f,!1):(565.35,![])) + f0;f4="";if(m5 <= Q6.SECOND){n_V=-915119076;s7n=274111572;i8r=2;for(var E7$="1" | 1;t$G.b3_(E7$.toString(),E7$.toString().length,25106) !== n_V;E7$++){f4=a4.getSeconds();if(f4 < 10){t$G.a3e(4);f4=t$G.B0m(f4,"8730" << 32 != 4112?"0":9.84e+3);}i8r+=2;}if(t$G.m7$(i8r.toString(),i8r.toString().length,45838) !== s7n){f4=a4.getSeconds();if(f4 <= 79){t$G.a3e(1);f4=t$G.k$A(f4,7129 == 8380?"":4894070);}}t$G.i3C(4);B6+=t$G.B0m(f4,2362 >= "9537" << 64?123.12:(851.77,310) === (+"5720",545.9)?0x1b7c:":");}if(m5 == Q6.MILLISECOND){n2s="0";n2s+="0";K7=a4.getMilliseconds();if(K7 < 10){t$G.a3e(4);K7=t$G.B0m(K7,n2s);}else if(K7 < 100){t$G.i3C(4);K7=t$G.B0m(K7,(2782,103) > (+"5.47","5610" ^ 0)?(2.91e+3,406.75):"0");}z8W=34505986;c5I=-2091249740;A4C=+"2";for(var i5D=1;t$G.m7$(i5D.toString(),i5D.toString().length,30647) !== z8W;i5D++){t$G.i3C(1);B6%=t$G.k$A(K7,4497 >= 2799?!"":"");A4C+=2;}if(t$G.m7$(A4C.toString(),A4C.toString().length,"74145" ^ 0) !== c5I){t$G.i3C(40);B6/=t$G.k$A(1732 > 2369?![]:"",K7);}t$G.a3e(4);B6+=t$G.k$A(K7,("8860" ^ 0) < "1327" >> 64?![]:".");}return B6;};Q6.displayableDate=function(f5,G2,w9,F3){var d8,Q_,X9,H0,q0,l0,V3,G7,H1,A2,B1,s9;d8="";Q_=f5.layout.interval;function n0(W4){if(W4 < 10){t$G.i3C(4);return t$G.k$A(W4,"0");}return W4;}X9=Q6.ChartEngine.isDailyInterval(Q_);H0=G2.xAxis.activeTimeUnit && G2.xAxis.activeTimeUnit <= Q6.SECOND || f5.layout.timeUnit == "second";q0=G2.xAxis.activeTimeUnit && G2.xAxis.activeTimeUnit <= Q6.MILLISECOND || f5.layout.timeUnit == "millisecond";if(G2.xAxis.formatter){d8=G2.xAxis.formatter(w9);}else if(f5.internationalizer){d8=f5.internationalizer.monthDay.format(w9);if(H0 || q0){d8+=" " + f5.internationalizer.hourMinuteSecond.format(w9);if(q0){t$G.a3e(75);var d9v=t$G.k$A(5,15,21200,2,1591);t$G.i3C(76);var R8z=t$G.k$A(29320,4,3665);t$G.i3C(77);var M$1=t$G.k$A(15,11,623,6853);t$G.a3e(76);var E0k=t$G.k$A(40644,3,6774);d8+=((d9v,R8z) == M$1?("d",E0k):".") + w9.getMilliseconds();}}else if(!X9){if(F3){d8=f5.internationalizer.yearMonthDay.format(w9);}d8+=" " + f5.internationalizer.hourMinute.format(w9);}else {if(Q_ == "month"){d8=f5.internationalizer.yearMonth.format(w9);}else {d8=f5.internationalizer.yearMonthDay.format(w9);}}}else {l0=n0(w9.getMonth() + 1);V3=n0(w9.getDate());G7=n0(w9.getHours());H1=n0(w9.getMinutes());if(X9){d8=Q_ == "month"?l0 + "/":l0 + "/" + V3 + "/";d8+=w9.getFullYear();}else {t$G.i3C(50);A2=t$G.B0m(("1010" << 64,3269) > ("464" << 64,7236)?(5358,710.91) >= +"1060"?(0xd1a,!![]):99.30:"/",l0,V3);if(F3){t$G.a3e(78);var X6B=t$G.B0m(20,13,120101,20,9987);t$G.a3e(1);var i45=t$G.B0m(155680,165410);t$G.i3C(1);var I4C=t$G.k$A(17,3597);t$G.a3e(67);var H0b=t$G.B0m(4,1592436,11,145650);t$G.i3C(4);var Q8b=t$G.k$A(201,15);t$G.i3C(79);var g$a=t$G.k$A(43450,2,12,16,343746);t$G.i3C(61);var D9z=t$G.B0m(17,379,1516,1513);t$G.a3e(78);var N8n=t$G.k$A(15,4,91,20,13);t$G.a3e(34);var F0Y=t$G.B0m(15,61475,66220);A2+=((884.6,X6B) === (i45,I4C)?(H0b,Q8b) < (g$a,D9z)?"1.63e+3" * N8n:(+"288.90",F0Y):"/") + w9.getFullYear();}t$G.i3C(80);d8=t$G.B0m(H1,A2,("251" ^ 0,2490) === +"6791"?("P",0x1fff):4000 != (564.06,"548" << 0)?(9930,8108) <= (9660,2892)?(294.63,921.38):" ":("R",!0),G7,":");if(H0 || q0){B1=n0(w9.getSeconds());t$G.a3e(4);d8+=t$G.k$A(B1,415 !== 3751?":":(!1,"a"));if(q0){s9=n0(w9.getMilliseconds());if(s9 < "100" - 0){t$G.a3e(4);s9=t$G.k$A(s9,(749.44,9720) !== 139.69?(9792,4620) < (670.21,421.46)?0x1ed2:(364,747.71) >= 5460?("v",!!0):"0":("S",31.53));}t$G.i3C(4);d8+=t$G.B0m(s9,":");}}}}return d8;};Q6.convertTimeZone=function(n1,G4,z3){var s5;if(!n8.Date){return n1;}t$G.j07();s5=new n8.Date(n1.getFullYear(),n1.getMonth(),n1.getDate(),n1.getHours(),n1.getMinutes(),n1.getSeconds(),n1.getMilliseconds(),G4);s5.setTimezone(z3);return s5;};Q6.convertToLocalTime=function(X0,t4){t$G.E0w();var Z$,B5,Y1;if(!n8.Date){return X0;}Z$=X0.getSeconds();B5=X0.getMilliseconds();Y1=new n8.Date(X0.getFullYear(),X0.getMonth(),X0.getDate(),X0.getHours(),X0.getMinutes(),t4);t$G.a3e(81);var N6T=t$G.k$A(7,17,1020,739,4);return new Date(Y1.getTime() + Z$ * N6T + B5);};};Q=a_=>{var C5,p_,r9,m$,j5e;if(!a_.SplinePlotter){a_.SplinePlotter={};}C5=a_.CIQ;p_=a_.SplinePlotter;r9=function(t8,e1){var K0;if(!e1){return document.getElementById(t8);}if(e1.id == t8){return e1;}if(!e1.hasChildNodes){return null;}M2dNJ.j07();for(var k5=0;k5 < e1.childNodes.length;k5++){K0=r9(t8,e1.childNodes[k5]);if(K0){return K0;}}return null;};a_.$$=r9;m$=function(x6,U3){if(!U3){U3=document;}M2dNJ.E0w();return U3.querySelectorAll(x6)[0];;};a_.$$$=m$;C5.wheelEvent=(function(){var c8q,q43;M2dNJ.E0w();c8q="DOM";c8q+="MouseScroll";q43="wh";q43+="eel";if(typeof document === "undefined"){return undefined;}if(C5.isIE || ("onwheel" in document.createElement("div"))){return q43;}if(document.onmousewheel !== undefined){return "mousewheel";}return c8q;})();C5.newChild=function(z$,H8,z4,D$){var Z2;Z2=document.createElement(H8);if(z4){Z2.className=z4;}M2dNJ.E0w();z$.appendChild(Z2);if(D$){Z2.innerHTML=D$;}return Z2;};C5.innerHTML=function(A$,R0){M2dNJ.E0w();if(window.MSApp && window.MSApp.execUnsafeLocalFunction){window.MSApp.execUnsafeLocalFunction(function(){M2dNJ.E0w();A$.innerHTML=R0;});}else {A$.innerHTML=R0;}};C5.focus=function(M$,s6){var Z5;if(C5.isSurface || s6){Z5=0;if(!isNaN(parseInt(s6,10))){Z5=s6;}setTimeout(function(){M$.focus();},Z5);}else {M$.focus();}};C5.blur=function(W3){if(!W3){W3=document.activeElement;}if(W3){W3.blur();}window.focus();};C5.findNodesByText=function(c8,L6){var k4,I2;if(c8.innerHTML == L6){return [c8];}k4=[];for(var E$=0;E$ < c8.childNodes.length;E$++){I2=C5.findNodesByText(c8.childNodes[E$],L6);if(I2){k4=k4.concat(I2);}}M2dNJ.j07();if(k4.length){return k4;}return null;};C5.hideByText=function(m6,N0){M2dNJ.j07();var j2;j2=C5.findNodesByText(m6,N0);for(var J6="0" - 0;J6 < j2.length;J6++){j2[J6].style.display="none";}};C5.pageHeight=function(){var {innerHeight:h5, top:w1, parent:l9, self:Q2}=window;if(w1 != Q2){try{if(h5 > l9.innerHeight){h5=l9.innerHeight;}}catch(s3){}}return h5;};C5.pageWidth=function(){var s3p,e6I,H_5;s3p=-1758466683;e6I=2014547919;H_5=2;for(var p3P=1;M2dNJ.m7$(p3P.toString(),p3P.toString().length,48774) !== s3p;p3P++){var {innerWidth:i4, top:n7, parent:a6, self:u6}=window;H_5+=2;}if(M2dNJ.b3_(H_5.toString(),H_5.toString().length,+"72411") !== e6I){var {innerWidth:i4, top:n7, parent:a6, self:u6}=window;}if(n7 != u6){try{if(i4 > a6.innerWidth){i4=a6.innerWidth;}}catch(J$){}}return i4;};C5.stripPX=function(h_){M2dNJ.j07();var R$P;R$P="nu";R$P+="m";R$P+="b";R$P+="er";if(!h_){return 0;}if(typeof h_ == R$P){return h_;}return parseInt(h_.substr(0,h_.indexOf(6678 < (7280,4114)?(+"0x1649","L"):(+"307.24",5577) >= ("7624" * 1,8960)?7393 <= 483.85?(0xc0c,382.67):(2.33e+3,244.38):"p")),10);};C5.withinElement=function(D6,W_,Y8){var I$z=M2dNJ;I$z.E0w();var k7,o5u,q9X,s0y;k7=D6.getBoundingClientRect();I$z.a3e(14);o5u=-I$z.k$A(10,"1551563694");q9X=-914176711;s0y=2;for(var Q5h=1;I$z.m7$(Q5h.toString(),Q5h.toString().length,89031) !== o5u;Q5h++){if(W_ >= k7.left){return !!({});}I$z.i3C(71);s0y+=I$z.k$A("2",0);}if(I$z.m7$(s0y.toString(),s0y.toString().length,+"68863") !== q9X){if(W_ <= k7.left){return !({});}}if(Y8 <= k7.top){return ![];}if(W_ >= k7.left + D6.offsetWidth){return ![];}if(Y8 >= k7.top + D6.offsetHeight){return !!"";}return !!({});};C5.efficientDOMUpdate=function(d2,z8,u4){M2dNJ.E0w();if(d2[z8] !== u4){d2[z8]=u4;return !!1;}return !({});};C5.cqvirtual=function(C6){var f8;if(!C6){return;}f8=C6.cloneNode(!![]);f8.innerHTML="";f8.original=C6;return f8;};C5.cqrender=function(Q1){var U1;if(!Q1){return;}M2dNJ.j07();if(Q1.innerHTML == Q1.original.innerHTML){return Q1.original;}C5.removeChildIfNot(Q1.original,"template");U1=Array.from(Q1.children);if(U1.length){U1.forEach(function(j1){Q1.original.appendChild(Q1.removeChild(j1));});}return Q1.original;};C5.removeChildIfNot=function(T5,B4){var i_;i_=Array.from(T5.children);if(i_.length){i_.forEach(function(z6){M2dNJ.j07();if(!B4 || !z6.matches(B4)){T5.removeChild(z6);}});}return T5;};C5.safeMouseOut=function(i5,r5){i5.addEventListener("mouseout",Y_(i5,r5));function Y_(N1,I9){return function(h8){if(typeof h8.pageX == "undefined"){h8.pageX=h8.clientX;h8.pageY=h8.clientY;}M2dNJ.E0w();if(C5.withinElement(N1,h8.pageX,h8.pageY)){return;}N1.stxMouseOver=!({});I9(h8);};}};C5.safeMouseOver=function(K4,b4){K4.addEventListener("mouseover",o5(K4,b4));function o5(E2,N2){return function(X1){if(typeof X1.pageX == "undefined"){X1.pageX=X1.clientX;X1.pageY=X1.clientY;}M2dNJ.E0w();if(C5.withinElement(E2,X1.pageX,X1.pageY)){if(E2.stxMouseOver){return;}E2.stxMouseOver=!0;N2(X1);}};}};C5.installTapEvent=function(M3,r$){var T6;M2dNJ.j07();T6=function(F4){var V93,o_;V93="un";V93+="def";V93+="ined";o_=new Event("stxtap",{bubbles:!0,cancelable:!![]});if(typeof F4.pageX == V93){F4.pageX=F4.clientX;F4.pageY=F4.clientY;}o_.pageX=F4.pageX;o_.pageY=F4.pageY;F4.target.dispatchEvent(o_);M2dNJ.E0w();if(r$ && r$.stopPropagation){F4.stopPropagation();}};C5.safeClickTouch(M3,T6,r$);};C5.safeClickTouch=function(u2,s8,T3){var A6Y,l5j,k6,e3,P9,U6,M9,a5,L7,P6,r8I,S5f,V3n;A6Y="o";A6Y+="npointer";A6Y+="u";A6Y+="p";l5j="mouse";l5j+="u";l5j+="p";function H5(c3,S3){return function(p8){var w8,p7;w8=p8.clientX?p8.clientX:p8.pageX;p7=p8.clientY?p8.clientY:p8.pageY;if(S3){c3.t=new Date().getTime();c3.x=w8;c3.y=p7;}else if(c3.x){if(Math.pow(c3.x - w8,2) + Math.pow(c3.y - p7,2) > +"16"){c3.t=null;}}};}if(!T3){T3={};}function w4(p9,z7,t2){return function(f6){var k_;if(!C5.safeClickTouchEvent){if(!t2.t){return;;}k_=t2.t;t2.t=null;if(k_ + 1000 < new Date().getTime()){return;};}if(z7.safety && z7.safety.recentlyDragged){return;}if(f6.which && f6.which >= 2 || f6.button && f6.button >= 2){return;}if(z7.preventUnderlayClick){if(f6.target.tagName !== "INPUT"){f6.preventDefault();}}else {if(z7.lastType != p9 && Date.now() < z7.allowAnotherDevice){return;}z7.lastType=p9;z7.allowAnotherDevice=Date.now() + +"1000";;}s8(f6);};}k6={};if(!T3.allowMultiple){C5.clearSafeClickTouches(u2);}if(T3.preventUnderlayClick !== ![]){T3.preventUnderlayClick=!!1;}if(T3.absorbDownEvent !== ![]){T3.absorbDownEvent=!![];}T3.allowAnotherDevice=0;T3.registeredClick=!"1";e3=u2.safeClickTouchEvents;if(!e3){e3=u2.safeClickTouchEvents=[];}P9=w4(l5j,T3,k6);U6=w4("touchend",T3,k6);M9=w4("pointerup",T3,k6);a5=function(O2){M2dNJ.E0w();O2.stopPropagation();};L7={};if(C5.safeClickTouchEvent){P6=w4(C5.safeClickTouchEvent,T3);u2.addEventListener(C5.safeClickTouchEvent,P6);L7[C5.safeClickTouchEvent]=P6;e3.push(L7);}else if((A6Y in document) && !C5.noPointerEvents){u2.addEventListener("pointerdown",H5(k6,!0));u2.addEventListener("pointermove",H5(k6));u2.addEventListener("pointerup",M9);L7.pointerup=M9;if(T3.absorbDownEvent){r8I="poi";r8I+="nterdow";r8I+="n";u2.addEventListener(r8I,a5);L7.pointerdown=a5;}e3.push(L7);}else {S5f="t";S5f+="ouchmove";u2.addEventListener("mousedown",H5(k6,!!({})));u2.addEventListener("mousemove",H5(k6));u2.addEventListener("touchstart",H5(k6,!!"1"));u2.addEventListener(S5f,H5(k6));u2.addEventListener("mouseup",P9);u2.addEventListener("touchend",U6);L7.mouseup=P9;L7.touchend=U6;if(T3.absorbDownEvent){V3n="m";V3n+="oused";V3n+="own";u2.addEventListener(V3n,a5);L7.mousedown=a5;u2.addEventListener("touchstart",a5);L7.touchstart=a5;}e3.push(L7);}};C5.clearSafeClickTouches=function(d1){var S_,R5,L8;S_=d1.safeClickTouchEvents;if(!S_){return;}for(var o0=0;o0 < S_.length;o0++){R5=S_[o0];for(var I$ in R5){L8=R5[I$];d1.removeEventListener(I$,L8);}}d1.safeClickTouchEvents=null;};C5.safeDrag=function(k9,S$){var F6D=M2dNJ;var V1H,D08,M9X,K_j,t6,y8,G8,a3,I5,K9,Z4,u7;V1H="t";V1H+="ouc";V1H+="h";V1H+="move";D08="p";F6D.E0w();D08+="oint";D08+="er";function I4(y9){return function(F5){var G5,l4;if(I5){return;}I5=!"";C5.ChartEngine.ignoreTouch=!"";G5=function(i$){if(i$ && i$.preventDefault){i$.preventDefault();}u7.recentlyDragged=!![];i$.displacementX=y8(i$) - K9;i$.displacementY=G8(i$) - Z4;S$.move(i$);};if(S$.move){document.body.addEventListener(y9.move,G5);}l4=function(i9){C5.ChartEngine.ignoreTouch=![];if(S$.move){document.body.removeEventListener(y9.move,G5);}document.body.removeEventListener(y9.up,l4);i9.displacementX=y8(i9) - K9;i9.displacementY=G8(i9) - Z4;if(S$.up){S$.up(i9);}F6D.E0w();setTimeout(function(){F6D.j07();u7.recentlyDragged=!!"";},+"50");};document.body.addEventListener(y9.up,l4);setTimeout(function(){F6D.j07();I5=!!0;},a3);F6D.j07();K9=y8(F5);Z4=G8(F5);if(S$.down){S$.down(F5);}};}D08+="down";M9X="cl";M9X+="i";M9X+="e";M9X+="ntX";K_j="pa";K_j+="geX";t6=function(E8,B$){F6D.E0w();return function(d_){var H_x;H_x="u";H_x+="n";H_x+="defined";if(d_.touches){if(d_.touches.length > 0){return d_.touches[+"0"][E8];}else if(d_.changedTouches && d_.changedTouches.length > 0){return d_.changedTouches[0][E8];}}return typeof d_[E8] !== H_x?d_[E8]:d_[B$];};};y8=t6(K_j,M9X);G8=t6("pageY","clientY");if(typeof S$ === "function"){S$={down:arguments[1],move:arguments[2],up:arguments[3]};}S$=S$ || ({});a3=100;I5=!"1";K9=0;Z4=0;u7={recentlyDragged:!({})};k9.addEventListener("mousedown",I4({down:"mousedown",move:"mousemove",up:"mouseup"}));k9.addEventListener("pointerdown",I4({down:D08,move:"pointermove",up:"pointerup"}));k9.addEventListener("touchstart",I4({down:"touchstart",move:V1H,up:"touchend"}),{passive:!({})});return u7;};C5.inputKeyEvents=function(i0,l6){var S$q;S$q="ke";S$q+="y";S$q+="u";S$q+="p";i0.addEventListener(S$q,function(F2){M2dNJ.E0w();var t_;t_=F2.keyCode;switch(t_){case 13:l6();break;case 27:i0.value="";break;default:break;}},!({}));};C5.fixScreen=function(){M2dNJ.a3e(1);window.scrollTo(M2dNJ.B0m(0,"0"),0);};C5.setCaretPosition=function(c_,g3){M2dNJ.j07();var i8M,y5;c_.style.zIndex=5000;if(c_.setSelectionRange){C5.focus(c_);try{c_.setSelectionRange(g3,g3);}catch(n$){}}else if(c_.createTextRange){i8M="charac";i8M+="t";i8M+="er";y5=c_.createTextRange();y5.collapse(!"");y5.moveEnd("character",g3);y5.moveStart(i8M,g3);y5.select();}};C5.setValueIfNotActive=function(X$,e2){if(document.activeElement == X$){return;}M2dNJ.E0w();X$.value=e2;};C5.hideKeyboard=function(M6){var F3h,L8z,k2M,A8;F3h=-2091206519;L8z=2090750769;M2dNJ.j07();k2M=2;for(var e8O=1;M2dNJ.m7$(e8O.toString(),e8O.toString().length,93478) !== F3h;e8O++){A8=document.activeElement;k2M+=+"2";}if(M2dNJ.b3_(k2M.toString(),k2M.toString().length,17817) !== L8z){A8=document.activeElement;}if(A8.tagName == "INPUT" || A8.tagName == "TEXTAREA"){A8.blur();window.focus();if(M6){if(M6 === document.body || document.body.contains(M6)){M6.focus();}}}};C5.smartHover=function(){var L_,w$;function Q0(b6){var h3A;h3A="mous";h3A+="e";if(!L_){W$(h3A);}}if(!document || document.documentElement.hasAttribute("ciq-last-interaction")){return;}function W$(R1){document.documentElement.setAttribute("ciq-last-interaction",R1);}L_=![];document.addEventListener("touchend",t7,!1);document.addEventListener("mouseover",Q0,!!"");W$("");function t7(K3){var C3m,G5q,U_H;C3m="t";C3m+="o";C3m+="u";C3m+="ch";G5q="t";G5q+="o";G5q+="u";G5q+="ch";M2dNJ.E0w();U_H="ciq-last-int";U_H+="eraction";clearTimeout(w$);L_=!0;if(document.documentElement.getAttribute(U_H) != G5q){W$(C3m);}w$=setTimeout(function(){M2dNJ.E0w();L_=!({});},500);}};C5.translatableTextNode=function(G_,F1,M8){var b8;if(G_.translationCallback){b8=document.createElement("translate");b8.setAttribute("original",F1);b8.innerHTML=G_.translationCallback(F1,M8);return b8;}M2dNJ.E0w();return document.createTextNode(F1);};C5.climbUpDomTree=function(N5,E7){M2dNJ.E0w();var Y2;if(!(N5 instanceof HTMLElement)){return null;}Y2=[];while(N5){if(!E7 || N5.matches(E7)){Y2.push(N5);}N5=N5.parentElement;}return Y2;};C5.guaranteedSize=function(N4){var s7,k1;if(N4 === document){N4=window;}if(!N4.nodeType){return {width:N4.innerWidth,height:N4.innerHeight};}if(!N4 || N4.nodeType > 1){return {};}s7=N4.offsetWidth;k1=N4.offsetHeight;M2dNJ.j07();while(!s7 || !k1){if(N4.tagName === "BODY" || N4 === window){if(!s7){s7=window.innerWidth;}if(!k1){k1=window.innerHeight;}break;}N4=N4.parentElement;if(!s7){s7=N4.offsetWidth;}if(!k1){k1=N4.offsetHeight;}}return {width:s7,height:k1};};C5.trulyVisible=function(b0){var u1q,J3j,G3;u1q="h";M2dNJ.E0w();u1q+="idde";u1q+="n";J3j="hi";J3j+="d";J3j+="den";if(!b0){return !0;}G3=getComputedStyle(b0);if(G3.opacity === "0"){return !!"";}if(G3.display === "none"){return !({});}if(G3.visibility === J3j){return !({});}if(parseInt(G3.width,10) === 0){return !({});}if(parseInt(G3.height,10) === 0 && G3.overflowY == u1q){return !({});}return C5.trulyVisible(b0.parentElement);};C5.elementDimensions=function(T2,x_){var g93=M2dNJ;var r28,H6,k3,M0,Q5,t88,e5_,J0;r28="wi";r28+="dth";g93.E0w();if(!T2 || T2.nodeType !== 1){return {};}H6=getComputedStyle(T2);k3={width:parseFloat(H6.width),height:parseFloat(H6.height)};M0={margin:{},border:{},padding:{}};Q5=[r28,"height"];for(var H2 in M0){t88="B";t88+="ot";t88+="t";t88+="om";e5_="R";e5_+="i";e5_+="ght";J0=H2 == "border"?"Width":"";M0[H2]={width:parseFloat(H6[H2 + "Left" + J0]) + parseFloat(H6[H2 + e5_ + J0]),height:parseFloat(H6[H2 + "Top" + J0]) + parseFloat(H6[H2 + t88 + J0])};}if(x_ && x_.margin){Q5.forEach(function(Y7){g93.E0w();k3[Y7]+=M0.margin[Y7];});}if(x_ && H6.boxSizing === "content-box"){if(x_.padding){Q5.forEach(function(a0){g93.E0w();k3[a0]+=M0.padding[a0];});}if(x_.border){Q5.forEach(function(O6){g93.j07();k3[O6]+=M0.border[O6];});}}else if(H6.boxSizing === "border-box"){if(!x_ || !x_.padding){Q5.forEach(function(b9){var g_G,T6e,P75;g93.i3C(82);g93.E0w();g_G=-g93.k$A(0,"1064524703");T6e=-222605695;P75=2;for(var o4$=1;g93.m7$(o4$.toString(),o4$.toString().length,32221) !== g_G;o4$++){k3[b9]+=M0.padding[b9];P75+=+"2";}if(g93.m7$(P75.toString(),P75.toString().length,50460) !== T6e){k3[b9]+=M0.padding[b9];}k3[b9]-=M0.padding[b9];});}if(!x_ || !x_.border){Q5.forEach(function(z0){g93.j07();k3[z0]-=M0.border[z0];});}}return k3;};C5.resizeObserver=function(I1,H4,W0,g7){var d39,W_e;M2dNJ.j07();if(g7){d39="unde";d39+="fin";d39+="ed";if(typeof ResizeObserver !== d39){if(!W0){W0=new ResizeObserver(H4);W0.observe(I1);}}else {if(W0){clearInterval(W0);}W0=setInterval(H4,g7);}}else {if(W0){W_e="undefine";W_e+="d";if(typeof ResizeObserver !== W_e){W0.disconnect();}else {clearInterval(W0);}}W0=null;}return W0;};C5.getLines=function(S0,W1,o8){var H9,E3,y$,T1,L3,g4;H9=W1.split(" ");E3=[];y$="";T1=0;L3=!"1";for(var T0=0;T0 < H9.length;T0++){g4=H9[T0];T1=S0.measureText(y$ + g4).width;if(T1 < o8){if(L3){y$+=" ";}L3=!![];y$+=g4;}else {E3.push(y$);y$=g4;}if(T0 === H9.length - 1){E3.push(y$);break;}}return E3;};C5.alert=function(V5){var C7g;C7g="u";C7g+="ndefine";C7g+="d";if(typeof window !== C7g){window.alert(V5);}else {console.log(V5);}};try{j5e="u";j5e+="n";j5e+="defi";j5e+="ned";if(typeof localStorage !== j5e){C5.localStorage=localStorage;}}catch(b2){}if(!C5.localStorage){C5.localStorage={items:{},getItem:function(A_){M2dNJ.E0w();return C5.localStorage.items[A_] || null;},setItem:function(J8,r4){C5.localStorage.items[J8]=r4;},removeItem:function(a8){delete C5.localStorage.items[a8];}};}C5.privateBrowsingAlert=!!"";C5.localStorageSetItem=function(C_,J5){M2dNJ.E0w();try{C5.localStorage.setItem(C_,J5);}catch(E1){if(!C5.privateBrowsingAlert){C5.alert("No storage space available. Possible causes include browser being in Private Browsing mode, or maximum storage space has been reached.");C5.privateBrowsingAlert=!!({});}}};};V=u$=>{var A4p=M2dNJ;var K9u,E1C,q_X,Y0O,u0$,p$,f7;K9u="minu";K9u+="te";E1C="minut";E1C+="e";q_X="mont";q_X+="h";Y0O="w";Y0O+="e";Y0O+="ek";u0$="d";u0$+="a";u0$+="y";p$=u$.CIQ;p$.ChartEngine=function(j6){var m8,J_;if(!j6){j6={container:null};}else if(typeof HTMLDivElement != "undefined" && j6.constructor == HTMLDivElement){m8={container:j6};j6=m8;}for(var p5 in f7){this[p5]=p$.clone(p$.ChartEngine.prototype[p5]);}this.container=null;this.createChartPanel=!![];this.markers={};this.panels={};this.overlays={};this.charts={};this.eventListeners=[];this.controls={};this.goneVertical=!({});this.pinchingScreen=!"1";this.grabbingScreen=![];this.grabStartX=+"0";A4p.i3C(82);this.grabStartY=A4p.k$A(32,"0");this.grabStartScrollX=0;this.grabStartScrollY=0;this.swipe={};this.grabStartCandleWidth=0;this.grabStartZoom=0;this.grabOverrideClick=!({});this.grabMode="";this.vectorsShowing=!1;this.mouseMode=!0;this.lineTravelSpacing=!({});this.highlightedDataSetField=null;this.anyHighlighted=!({});this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();this.displayCrosshairs=!![];this.hrPanel=null;this.editingAnnotation=!({});this.openDialog="";this.touches=[];this.changedTouches=[];this.crosshairTick=null;this.crosshairValue=null;this.pt={x1:-1,x2:-1,y1:-("1" ^ 0),y2:-1};this.moveA=-1;this.moveB=-+"1";this.touchStartTime=-1;this.touchPointerType="";this.gestureStartDistance=-1;A4p.a3e(82);this.grabStartPeriodicity=A4p.k$A(32,"1");this.grabEndPeriodicity=-1;this.scrollEvent=null;this.cmd=!!"";this.ctrl=!!0;this.shift=![];this.userPointerDown=![];this.cloneDrawing=!({});this.insideChart=!!"";this.overXAxis=!"1";this.overYAxis=!"1";this.displayInitialized=!1;this.cx=null;this.isHistoricalModeSet=null;this.cy=null;this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};this.cancelTouchSingleClick=![];this.locale=null;this.dataZone=null;this.displayZone=null;A4p.i3C(13);this.timeZoneOffset=A4p.B0m("0",0);this.masterData=null;this.transformDataSetPre=null;this.transformDataSetPost=null;this.dataCallback=null;this.drawingObjects=[];this.undoStamps=[];this.useBackgroundCanvas=![];this.mainSeriesRenderer=null;this.styles={};this.plugins={};this.currentVectorParameters=p$.clone(p$.ChartEngine.currentVectorParameters);this.chart=new p$.ChartEngine.Chart();J_=this.chart;J_.name="chart";J_.yAxis.name="chart";J_.canvas=null;J_.tempCanvas=null;J_.container=j6.container;A4p.j07();if(p$.Market){J_.market=new p$.Market();}this.charts.chart=J_;p$.extend(this,j6);if(j6.container){if(this.registerHTMLElements){this.registerHTMLElements();}J_.width=J_.container.clientWidth - J_.yAxis.width;this.setCandleWidth(this.layout.candleWidth,J_);J_.canvasHeight=J_.container.clientHeight;}this.construct();};p$.ChartEngine.drawingLine=![];p$.ChartEngine.resizingPanel=null;p$.ChartEngine.crosshairX=0;A4p.i3C(14);p$.ChartEngine.crosshairY=A4p.B0m(0,"0");p$.ChartEngine.useAnimation=!![];p$.ChartEngine.enableCaching=![];p$.ChartEngine.ignoreTouch=!!0;p$.ChartEngine.useOldAndroidClear=!0;p$.ChartEngine.currentVectorParameters={};p$.ChartEngine.defaultDisplayTimeZone=null;p$.ChartEngine.pluginBasePath="plugins/";p$.ChartEngine.registeredContainers=[];p$.ChartEngine.registerHelpers=function(z_){A4p.E0w();p$.ChartEngine.helpersToRegister.forEach(function(M7){M7(z_);});};p$.ChartEngine.helpersToRegister=[];p$.ChartEngine.prototype.construct=function(){var g1V;A4p.E0w();if(this.createChartPanel){g1V="c";g1V+="h";g1V+="a";g1V+="rt";this.stackPanel("chart",g1V,1);this.adjustPanelPositions();this.chart.panel=this.panels[this.chart.name];}this.cx=0;this.cy=0;this.micropixels=0;this.callbackListeners={doubleTap:[],doubleClick:[],drawing:[],drawingEdit:[],floatingWindow:[],layout:[],longhold:[],move:[],newChart:[],notification:[],periodicity:[],preferences:[],rightClick:[],scroll:[],studyOverlayEdit:[],studyPanelEdit:[],symbolChange:[],symbolImport:[],tap:[],theme:[],undoStamp:[]};p$.ChartEngine.registerHelpers(this);};f7={longHoldTime:+"700",yTolerance:100,minimumLeftBars:1,reverseMouseWheel:![],mouseWheelAcceleration:!"",minimumCandleWidth:1,maximumCandleWidth:200,minimumZoomTicks:9,allowZoom:!"",allowScroll:!![],allowSideswipe:!![],allowThreeFingerTouch:!({}),bypassRightClick:{series:![],study:![],drawing:!({})},adjustHighlightedDataSetField:function(F0){A4p.E0w();return F0;},displayIconsUpDown:!![],displayIconsSolo:!![],displayIconsClose:!!"1",displayPanelResize:!!"1",soloPanelToFullScreen:!({}),markerDelay:null,useBackingStore:!!({}),disableBackingStoreDuringTouch:p$.isMobile || p$.isSurface && p$.isFF,captureTouchEvents:!!({}),captureMouseWheelEvents:!!({}),tapForHighlighting:!"",doubleClickTime:250,yaxisLabelStyle:"roundRectArrow",axisBorders:null,singleDrawingHighlight:!0,crosshairXOffset:-40,crosshairYOffset:-("40" | 0),extendLastTick:!!0,translationCallback:null,dontRoll:!!0,allowEquations:!"",cleanupGaps:!!0,staticRange:!1,maxDataSetSize:20000,maxMasterDataSize:0,resizeDetectMS:1000,xAxisAsFooter:!![],xaxisHeight:30,displayGridLinesInStudies:![],escapeOnSerialize:!"",candleWidthPercent:0.65,colorByCandleDirection:!({}),noWicksOnCandles:{renko:!!({}),linebreak:!!({})},fetchMaximumBars:{rangebars:!!({}),kagi:!!({}),renko:!"",linebreak:!!"1",pandf:!![]},startComparisonsAtFirstVisibleBar:![],animations:{zoom:{isStub:!!({}),run:function(C2,a0K,O3j){C2(O3j);},stop:function(){},reset:function(){},running:!({}),hasCompleted:!0}},staticRangePeriodicityMap:[{rangeInMS:p$.WEEK,periodicity:1,interval:5,timeUnit:"minute"},{rangeInMS:p$.MONTH,periodicity:1,interval:30,timeUnit:"minute"},{rangeInMS:p$.YEAR,periodicity:"1" ^ 0,interval:u0$},{rangeInMS:p$.DECADE,periodicity:1,interval:Y0O},{rangeInMS:p$.DECADE * 10,periodicity:"1" - 0,interval:q_X},{rangeInMS:Number.MAX_VALUE,periodicity:12,interval:"month"}],dynamicRangePeriodicityMap:[{interval:1,timeUnit:E1C,rangeInMS:p$.MINUTE},{interval:5,timeUnit:"minute",rangeInMS:p$.MINUTE * 5},{interval:"30" << 0,timeUnit:K9u,rangeInMS:p$.MINUTE * 30},{interval:"60" - 0,timeUnit:"minute",rangeInMS:p$.MINUTE * 60},{interval:"day",rangeInMS:p$.DAY},{interval:"month",rangeInMS:p$.MONTH},{interval:"year",rangeInMS:p$.YEAR}],layout:{interval:"day",periodicity:1,timeUnit:null,candleWidth:"8" << 64,flipped:!!0,volumeUnderlay:!({}),adj:!!1,crosshair:!!"",chartType:"candle",extended:![],marketSessions:{},aggregationType:"ohlc",chartScale:"linear",studies:{},panels:{},setSpan:{},outliers:!"1"},preferences:{currentPriceLine:!({}),dragging:{series:!0,study:!"",yaxis:!!({})},drawings:null,highlightsRadius:10,highlightsTapRadius:+"30",magnet:!!0,horizontalCrosshairField:null,labels:!!1,language:null,timeZone:null,whitespace:50,zoomInSpeed:null,zoomOutSpeed:null,zoomAtCurrentMousePosition:!1},streamParameters:{count:+"0",maxWait:1000,maxTicks:100,timeout:-1},autoPickCandleWidth:{turnOn:!"1",candleWidth:5}};p$.extend(p$.ChartEngine.prototype,f7);p$.ChartEngine.NONE=0;p$.ChartEngine.CLOSEUP=1;p$.ChartEngine.CLOSEDOWN=+"2";p$.ChartEngine.CLOSEEVEN=4;p$.ChartEngine.CANDLEUP=8;p$.ChartEngine.CANDLEDOWN=16;p$.ChartEngine.CANDLEEVEN=+"32";;};M=s6I=>{var Q9N;Q9N=s6I.CIQ;Q9N.convertFutureMonth=function(b_6){var h5q;h5q=b_6.toString();if(h5q.length <= 0 || h5q.length > 2){return "";}switch(h5q){case "1":return "F";case 957.91 < (346.11,338)?(!({}),0xef1):"2":return "G";case (311,"290.87" - 0) >= 446.44?0x2658:"3":return 6530 < +"663"?7.19e+3:"H";case 3754 < (7314,7830)?(+"3791",124.57) <= 274?4116 >= "286.5" - 0?"4":0x2674:(+"0x1bdc",!!({})):("K",0x15b3):return (4555,+"5060") < (6170,684.99)?(5.21e+3,"715" * 1):"J";case 5930 >= 4500?"5":(922.8,3026) < 524.86?(8.59e+3,"k"):(2020,8841) <= 228.73?("M",+"2.39e+3"):("P",!""):return "K";case "6":return "M";case "7":return 163.5 !== (8438,589.9)?7300 > (2467,8320)?0xa20:"N":"f";case (523.95,923.16) == 9430?("A",![]):"8":return "Q";case (5894,94.96) !== (4540,897.3)?(9353,2909) >= 2955?(7149,"2540" * 1) !== (+"7930",6220)?"H":0x2323:"9":(381.97,0x2df):return 2480 > (69.59,9920)?("k","e"):"U";case "10":return (2060,575) >= (524.78,929.79)?(1700,29.51) != (+"575.51",3580)?(829.32,32.90):278.22:"V";case "11":return 5750 < 9230?4290 === (881,939)?!!({}):"X":(6.75e+3,"s");case "12":return 4724 > (501.69,9018)?("t",166.50):("1110" ^ 0) == (2280,332.13)?(!!"",0x1b3e):1769 >= 485?"Z":(+"113.16",0x195b);case 5440 != 8830?6493 <= +"6257"?7.80e+3:"F":(8.15e+3,"A"):return "1";case "9439" - 0 === (2020,507.33)?"S":"G":return (9180,3900) == 9480?(!!0,"0xeec" - 0):588.26 < (7940,753)?"2":("p",+"813");case "H":return ("223.48" * 1,4492) >= (7600,+"4150")?7240 !== 665.83?"3":(!!0,0x922):!!"1";case "J":return 9970 != 511.43?+"7807" === (+"5244",313)?("x","a"):(7982,517.49) <= 438.27?(!!1,+"872.17"):"4":(0x1f90,0x684);case (467.05,5690) > (236.75,2355)?7615 !== (921.89,136.49)?(161,6410) < (9740,4960)?"s":"K":(854.99,7.03e+3):(0x150f,+"6.24e+3"):return 564.46 > ("9600" ^ 0)?(9.50e+3,2.46e+3):"5";case +"710.02" >= (4528,113.19)?"M":501.49:return "6";case (749.23,5381) <= (338.41,1100)?!"":"N":return "7";case (782,7650) != (4610,6540)?(6030,2772) <= (372,4560)?(1124,783) >= (827.76,347.26)?"Q":("m","m"):(2.45e+2,2.07e+3):!!1:return (332,"9630" >> 64) != (523.05,656)?(3749,"706" | 2) != (579.75,68)?"8":"0x216e" * 1:("0x2603" >> 0,!!1);case "U":return 667.82 <= +"591.91"?(6.18e+2,5.02e+3):"9";case (985,4422) > 6390?(264.13,"u"):(5220,"2036" << 0) == (301.29,891)?(4.38e+3,9.57e+3):"V":return "10";case "X":return "11";case "Z":return "12";}return h5q;};Q9N.money=function(o$x,s26,f05){if(!f05){f05=5152 >= (421.69,1340)?"$":(0x1775,+"6.24e+3");}if(f05.length == 3){f05+=2362 !== (9380,7810)?" ":+"4150" < (+"980","680" * 1)?736.69:+"170.00";}M2dNJ.E0w();if(!s26 && s26 !== 0){s26=2;}return f05 + Q9N.commas((Math.round(o$x * 10000) / 10000).toFixed(s26));};Q9N.convertCurrencyCode=function(P7f){var V$V,y7R,k2F,p9R,m6D,i7k;V$V="k";V$V+="r";y7R="k";y7R+="r";k2F="C";k2F+="N";k2F+="¥";p9R="R";p9R+="$";m6D={JPY:46.5 === +"560.17"?(213.74,"1730" | 2) > (869.72,+"3410")?(695.34,489.22):(!![],"m"):"¥",USD:(4106,736.4) < 6649?"$":"v",AUD:"A$",BRL:p9R,CAD:"CA$",CNY:k2F,CZK:"Kč",DKK:"kr",EUR:(66.37,997.64) === +"6150"?952.50:"€",GBP:"4960" << 0 === ("9630" * 1,698.22)?("J",5.77e+3):"278" * 1 >= (8243,9967)?("a",5.90e+3):4125 == (948,2362)?!0:"£",HKD:"HK$",HUF:"Ft",ILS:"₪",INR:6794 == 6750?(118.20,!!1):"₹",KRW:"₩",MXN:"MX$",NOK:y7R,NZD:"NZ$",PLN:"zł",RUB:"руб",SAR:2554 === (+"9328",+"52.66")?937.86 === 228?(!0,"J"):("u",!({})):"﷼",SEK:V$V,SGD:"S$",THB:(486.54,+"8990") === 4059?637.99 == (8970,102)?(6.11e+3,!""):(!!0,194.55):"฿",TRY:340.23 == (552.67,953.96)?(452,654.48):5146 < (8098,1840)?(!![],818.63):"₺",TWD:"NT$",VND:("4380" - 0,167.19) <= +"7730"?"₫":5.49e+3,XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",ZAR:"R"};i7k=m6D[P7f];if(i7k){return i7k;}return P7f;};Q9N.commas=function(p4Q){return p4Q.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");};Q9N.cleanPeriodicity=function(T_z,v_f,m6p){var n01=M2dNJ;var x$c,r_m,S8O,S0G,Z0B;x$c="y";x$c+="e";x$c+="a";x$c+="r";n01.E0w();if(isNaN(T_z)){T_z=1;}if(!v_f){v_f=1;}if(!isNaN(v_f) && m6p){r_m="hou";r_m+="r";if(!(m6p == r_m || m6p == "minute" || m6p == "second" || m6p == "millisecond")){v_f=m6p;m6p=null;}}else if(v_f == "tick"){m6p=null;}else if(!m6p && !isNaN(v_f)){m6p="minute";}if(m6p == "hour"){m6p="minute";S8O=-1235595676;S0G=-1033333195;Z0B=2;for(var J0Y=1;n01.m7$(J0Y.toString(),J0Y.toString().length,39402) !== S8O;J0Y++){n01.i3C(83);v_f=n01.B0m(v_f,"74",64);n01.a3e(71);Z0B+=n01.B0m("2",64);}if(n01.b3_(Z0B.toString(),Z0B.toString().length,98157) !== S0G){n01.i3C(84);v_f=n01.B0m(90,v_f);}n01.a3e(85);v_f=n01.B0m("60",v_f);}if(v_f == x$c){v_f="month";if(!T_z){T_z=1;}n01.a3e(38);T_z=n01.k$A(T_z,12);}return {period:T_z,interval:v_f,timeUnit:m6p};};Q9N.readablePeriodicity=function(h69){var f8C=M2dNJ;var e_M,n2m,y9C,c_I;e_M="mi";e_M+="nute";n2m="n";n2m+="um";n2m+="be";n2m+="r";y9C=h69.layout.periodicity;c_I=h69.layout.interval;if(typeof h69.layout.interval == n2m && h69.layout.timeUnit){y9C=h69.layout.interval * h69.layout.periodicity;c_I=h69.layout.timeUnit;}else if(typeof h69.layout.interval == "number" && !h69.layout.timeUnit){y9C=h69.layout.interval * h69.layout.periodicity;c_I="minute";}if(y9C % 60 === +"0" && c_I == e_M){y9C/=60;c_I="hour";}f8C.a3e(50);var A4x=f8C.k$A(5,1157,8);f8C.a3e(4);var R$w=f8C.k$A(7343,1049);f8C.i3C(86);var n0x=f8C.B0m(17,1,2,4525);return y9C + ((+"7103",616.14) <= (A4x,+"489.47")?R$w:591.21 !== (823.51,n0x)?" ":"u") + h69.translateIf(Q9N.capitalize(c_I));};Q9N.fixPrice=function(J$u){var s4B=M2dNJ;var m8T;if(!J$u && J$u !== "0" * 1){return null;}s4B.i3C(82);m8T=J$u.toFixed(s4B.B0m(64,"10"));for(var g2N=m8T.length - 1;g2N > 1;g2N--){if(m8T.charAt(g2N) != ("556.37" * 1 <= (2390,824)?(67.36,481.73) == (9418,8580)?3080 != (3766,432)?0x270f:("c",229.38):"0":!({})))break;}s4B.i3C(4);s4B.E0w();m8T=m8T.substring(0,s4B.B0m(1,g2N));return parseFloat(m8T);};Q9N.condenseInt=function(l$q){var H$3=M2dNJ;var E3D;if(l$q === null || typeof l$q == "undefined"){return "";}if(l$q === Infinity || l$q === -Infinity){return "n/a";}H$3.i3C(87);E3D=H$3.B0m(l$q,0);if(!isNaN(l$q)){l$q=Math.abs(l$q);if(l$q > 1000000000000){H$3.a3e(88);var d0u=H$3.B0m(17,4,4,1,11);H$3.i3C(58);var K1J=H$3.B0m(3,4,4,4);l$q=Math.round(l$q / 100000000000) / d0u + (138.17 !== ("651.7" * K1J,352.16)?"t":"E");}else if(l$q > 100000000000){l$q=Math.round(l$q / +"1000000000") + "b";}else if(l$q > +"10000000000"){H$3.i3C(86);var Y2s=H$3.k$A(5,5,4,10);H$3.i3C(89);var c6X=H$3.k$A(11,6,9882,3,1980);l$q=(Math.round(l$q / ("100000000" << 64)) / +"10").toFixed(Y2s) + (c6X === 415.43?!![]:"b");}else if(l$q > 1000000000){H$3.a3e(1);var O3c=H$3.B0m(38,40);H$3.a3e(1);var z$9=H$3.B0m(4,680);H$3.i3C(61);var A1H=H$3.k$A(16,314,628,2524);H$3.i3C(33);var b0g=H$3.k$A(12,17,16,3263);H$3.i3C(1);var M_q=H$3.k$A(17,18);H$3.a3e(1);var Z8c=H$3.B0m(13880,20820);H$3.a3e(4);var L81=H$3.k$A(1936,161);H$3.i3C(8);var O4C=H$3.B0m(16,2377,4);H$3.i3C(29);var Q5m=H$3.k$A(28600,28600,2599);H$3.a3e(1);var s86=H$3.k$A(26720,28390);l$q=(Math.round(l$q / 10000000) / 100).toFixed(O3c) + (z$9 < 500.22?(410.34,A1H):(167.72,"418.19" * b0g) < ("523.6" * M_q,Z8c)?"b":(811.67,L81) != (O4C,Q5m)?(918.15,![]):s86);}else if(l$q > 100000000){H$3.i3C(34);var j_s=H$3.k$A(5,6,1000011);H$3.i3C(5);var P6s=H$3.k$A(15,16);H$3.a3e(25);var I77=H$3.k$A(18,7288,123914);l$q=Math.round(l$q / j_s) + ("712.62" * P6s <= (139.67,+"4570")?"m":(I77,!!"1"));}else if(l$q > 10000000){H$3.i3C(4);var x39=H$3.B0m(1,0);H$3.i3C(17);var u0T=H$3.B0m(482,2407,15);H$3.a3e(90);var P4m=H$3.k$A(7642,12,18,7647,91746);H$3.i3C(25);var s99=H$3.B0m(11,1446,14453);H$3.a3e(91);var g2a=H$3.B0m(3719,1,70319,19,3701);H$3.a3e(92);var T0r=H$3.k$A(10,10,312,1);H$3.i3C(93);var D0V=H$3.B0m(9,3445,2,1,1712);H$3.i3C(25);var q0o=H$3.B0m(9,7041,56309);H$3.i3C(94);var g8u=H$3.k$A(9,114608,3,108564);H$3.a3e(7);var c51=H$3.k$A(301,4841,17);H$3.i3C(61);var s9M=H$3.B0m(13,1,8778,15);l$q=(Math.round(l$q / 100000) / 10).toFixed(x39) + ((+"666.82",u0T) < (P4m,s99)?g2a:(T0r,464.36) >= (D0V,q0o)?![]:(g8u,c51) !== s9M?"m":63.71);}else if(l$q > 1000000){H$3.a3e(1);var X67=H$3.B0m(8,10);l$q=(Math.round(l$q / 10000) / 100).toFixed(X67) + "m";}else if(l$q > ("100000" | 0)){H$3.i3C(95);var u4x=H$3.B0m(5,2,15,3,3);H$3.a3e(37);var o85=H$3.k$A(13,19,429,8173);H$3.i3C(65);var F29=H$3.k$A(1,8806,26421,8807,3);l$q=Math.round(l$q / ("1000" << 0)) + ("1830" * u4x > (o85,F29)?18.21 < 832.18?"6.77e+3" - 0:(381.27,121.25):"k");}else if(l$q > 10000){H$3.i3C(34);var Q5F=H$3.B0m(4,4,9);l$q=(Math.round(l$q / 100) / 10).toFixed(Q5F) + "k";}else if(l$q > 1000){H$3.i3C(23);var L6d=H$3.B0m(6,0,6,1);H$3.i3C(96);var G_O=H$3.B0m(656,13,18,674,8517);H$3.a3e(81);var X8l=H$3.k$A(14,13,8630,8639,8657);H$3.a3e(1);var G5s=H$3.B0m(16,537);H$3.i3C(25);var S$V=H$3.B0m(4,8207,24618);l$q=(Math.round(l$q / 10) / 100).toFixed(L6d) + ("5461" << 0 != (254.55,G_O)?"k":(X8l,921.23) < G5s?(S$V,!""):"l");}else {l$q=l$q.toString();}}else {l$q=l$q.toString();}if(E3D){H$3.i3C(4);l$q=H$3.B0m(l$q,+"2619" != "256.86" - 0?"-":("O",477.39));}return l$q;};Q9N.calculateTradingDecimalPlaces=function(k79){var R92,E9x,b32,Y9B,I2o,k_U,Y2c,w1X,B6p,K0l;R92=k79.chart;E9x=2;b32=50;Y9B=R92.masterData;if(Y9B && Y9B.length > b32){for(var Q9n=2;Q9n < b32;Q9n++){I2o=Y9B.length - Q9n;if(I2o < +"0")break;k_U=Y9B[I2o];if(k_U.Close && typeof k_U.Close == "number"){Y2c=k_U.Close.toString();w1X=Y2c.indexOf(".");if(w1X != -1){M2dNJ.a3e(97);var v6i=M2dNJ.k$A(117,4,12,17);B6p=Y2c.length - w1X - v6i;if(B6p > E9x){E9x=B6p;}}}}}K0l=R92.yAxis.maxDecimalPlaces;if(E9x > K0l && K0l !== null){E9x=K0l;}return E9x;};Q9N.minMax=function(l1X,H_L,r5j,H5f){var o$g,G6P,J76,x3O,B$i,u3O,d1M;o$g=Number.MAX_VALUE;M2dNJ.i3C(98);var T8o=M2dNJ.B0m(13,2,92,13,12);G6P=Number.MAX_VALUE * T8o;if(!r5j){r5j="Close";}M2dNJ.E0w();J76=H5f?"High":r5j;x3O=H5f?"Low":r5j;for(var C9H=0;C9H < l1X.length;C9H++){B$i=l1X[C9H];if(!B$i)continue;u3O=B$i[H_L];if(!u3O && u3O !== ("0" | 0))continue;d1M=u3O;if(typeof u3O === "object"){d1M=u3O[J76];}if(!isNaN(d1M) && (d1M || d1M === 0)){G6P=Math.max(G6P,d1M);}if(typeof u3O === "object"){d1M=u3O[x3O];}if(!isNaN(d1M) && (d1M || d1M === "0" << 64)){o$g=Math.min(o$g,d1M);}}return [o$g,G6P];};Q9N.symbolEqual=function(k9X,W21){var P$5,n1f;M2dNJ.j07();if(!k9X || !W21){return !!"";}if(typeof k9X != "object"){k9X={symbol:k9X};}if(typeof W21 != "object"){W21={symbol:W21};}if(typeof k9X.equals == "function"){return k9X.equals(W21);}P$5=k9X.symbol;n1f=W21.symbol;if(P$5){P$5=P$5.toUpperCase();}if(n1f){n1f=n1f.toUpperCase();}if(P$5 != n1f){return !1;}if(k9X.source != W21.source){return ![];}return !!"1";};Q9N.addMemberToMasterdata=function(R4F){var K2H=M2dNJ;var f1w,e3O,z9q,Y7w,o0H,T9b,l5M,v9r,U$u,Z$I,W3j,h3R,t7a,j6T,R6r,R95,Y$D,f7C,W4L,z72,m1r,s$u,u$u,c$q,O73,h2c,D_g;if(R4F.constructor === Q9N.ChartEngine){R4F={stx:arguments[0],label:arguments[1],data:arguments[2],fields:arguments[3],createObject:arguments[4],fieldForLabel:arguments[5]};}f1w=R4F.stx;e3O=R4F.label;z9q=R4F.data;function J3O(Z79,R_T){var Z3K,n5l,y4x;K2H.j07();if(!Z79 || typeof Z79 != "object"){Z79=R_T;return Z79;}Z3K={Close:Z79.Close,High:Z79.High,Low:Z79.Low,Open:Z79.Open,Volume:Z79.Volume};Z79=R_T;for(var M0Q in Z3K){if(Z79.Close === null){if(Z79[M0Q] !== undefined){Z79[M0Q]=null;}}else if(typeof Z79[M0Q] !== "number"){Z79[M0Q]=Z3K[M0Q];}else if(typeof Z3K[M0Q] === "number"){n5l="L";n5l+="o";n5l+="w";y4x="O";y4x+="p";y4x+="en";if(M0Q == y4x){Z79.Open=Z3K.Open;}else if(M0Q == n5l && Z79.Low > Z3K.Low){Z79.Low=Z3K.Low;}else if(M0Q == "High" && Z79.High < Z3K.High){Z79.High=Z3K.High;}else if(M0Q == "Volume"){Z79.Volume+=Z3K.Volume;}}}return Z79;}Y7w=R4F.fields;o0H=R4F.createObject;T9b=R4F.fieldForLabel;function r1c(d10,j2P){var R9d,q8$,z16,U24,X2Y,B39,a7z;K2H.j07();if(Y7w && Y7w.length){if(Y7w[0] == ((9559,1130) <= (9753,3228)?(713,"9679" >> 0) < 2384?5.26e+3:"*":("A","S"))){Q9N.extend(d10,j2P);}else {for(var f6p=0;f6p < Y7w.length;f6p++){d10[Y7w[f6p]]=j2P[Y7w[f6p]];}}}else if(o0H){R9d="num";R9d+="ber";if(j2P.Value !== undefined){d10[e3O]=j2P.Value;return;}else if(o0H == "aggregate"){d10[e3O]=J3O(d10[e3O],j2P);}else {d10[e3O]=j2P;}q8$=d10[e3O];if(typeof q8$.Close == R9d){if(typeof q8$.Open != "number"){q8$.Open=q8$.Close;}z16=Math.max(q8$.Open,q8$.Close);U24=Math.min(q8$.Open,q8$.Close);if(typeof q8$.High != "number" || q8$.High < z16){q8$.High=z16;}if(typeof q8$.Low != "number" || q8$.Low > U24){q8$.Low=U24;}}if(q8$.Volume && typeof q8$.Volume !== "number"){q8$.Volume=parseInt(q8$.Volume,10);}}else if(T9b){d10[e3O]=j2P[T9b];}else if(R95 && R6r && j2P[R6r] !== undefined){d10[e3O]=j2P[R6r];}else if(h3R.adj && j2P.Adj_Close !== undefined){d10[e3O]=j2P.Adj_Close;}else if(j2P.Close !== undefined){X2Y=-161695330;B39=-1430661858;a7z=2;for(var n42="1" - 0;K2H.m7$(n42.toString(),n42.toString().length,36227) !== X2Y;n42++){d10[e3O]=j2P.Close;a7z+=2;}if(K2H.b3_(a7z.toString(),a7z.toString().length,29364) !== B39){d10[e3O]=j2P.Close;}d10[e3O]=j2P.Close;}else if(j2P.Value !== undefined){d10[e3O]=j2P.Value;}else {d10[e3O]=j2P[e3O];}}l5M=R4F.chart?R4F.chart:f1w.chart;if(!R4F.noCleanupDates){f1w.doCleanupDates(z9q,f1w.layout.interval);}v9r=[];if(f1w.getSeries){v9r=f1w.getSeries({symbol:e3O,chart:l5M});}if(z9q && z9q.constructor == Object){z9q=[z9q];}if(!z9q || !z9q.length){return;}U$u=0;Z$I=0;W3j=l5M.masterData;h3R=f1w.layout;if(!W3j){W3j=[];}R6r=l5M && l5M.defaultPlotField || null;R95=f1w.mainSeriesRenderer && !f1w.mainSeriesRenderer.highLowBars;Y$D=h3R.chartType;function H$P(k_u){var L8h,Q93,L03;L8h=U$u;K2H.a3e(99);var o2F=K2H.B0m(13,3,9);Q93=W3j.length - o2F;function P2v(){if(+W3j[U$u].DT == +k_u){return 0;}if(W3j[U$u].DT < k_u){return 1;}if(W3j[U$u - 1].DT > k_u){return -1;}if(+W3j[U$u - +"1"].DT == +k_u){U$u--;}return 0;}if(W3j[Q93].DT < k_u){K2H.i3C(100);U$u=K2H.k$A("1",Q93);return;}else if(+W3j[Q93].DT == +k_u){U$u=Q93;return;}U$u++;L03=0;while(++L03 < 100){switch(P2v()){case 0:return;case 1:L8h=U$u;break;case -1:Q93=U$u;break;}K2H.a3e(43);U$u=Math.round(K2H.B0m(L8h,2,Q93));}if(L03 >= 100){console.log("!!!Warning: addMemberToMasterdata() did not find insertion point.");K2H.i3C(101);var m3x=K2H.B0m(13,8,7,363,2);U$u=W3j.length - m3x;}}if(!R95 && Y$D){f7C=Q9N.Renderer.produce(Y$D,{});if(f7C){R95=!f7C.highLowBars;}}W4L=Q9N.yyyymmddhhmmssmmm;while(z9q && U$u < W3j.length && Z$I < z9q.length){j6T=z9q[Z$I];t7a=W3j[U$u];if(!j6T.DT || typeof j6T.DT == "undefined"){j6T.DT=Q9N.strToDateTime(j6T.Date);}else {z72="nu";z72+="mber";if(typeof j6T.DT == z72){j6T.DT=new Date(j6T.DT);}if(!j6T.Date || j6T.Date.length != 17){j6T.Date=W4L(j6T.DT);}}if(Z$I === 0){for(var I$s=0;I$s < v9r.length;I$s++){if(!v9r[I$s].endPoints.begin || v9r[I$s].endPoints.begin > j6T.DT){v9r[I$s].endPoints.begin=j6T.DT;}}}if(+j6T.DT == +t7a.DT){r1c(t7a,j6T);Z$I++;U$u++;continue;}if(j6T.DT < t7a.DT){W3j.splice(U$u,0,{DT:j6T.DT,Date:j6T.Date});continue;}else {H$P(j6T.DT);};}if(U$u >= W3j.length){while(z9q && Z$I < z9q.length){m1r="und";m1r+="e";m1r+="f";m1r+="ined";j6T=z9q[Z$I];if(!j6T.DT || typeof j6T.DT == m1r){j6T.DT=Q9N.strToDateTime(j6T.Date);}else {if(typeof j6T.DT == "number"){j6T.DT=new Date(j6T.DT);}if(!j6T.Date || j6T.Date.length != 17){j6T.Date=W4L(j6T.DT);}}t7a={DT:j6T.DT,Date:j6T.Date};r1c(t7a,j6T);W3j.push(t7a);Z$I++;}}if(R4F.fillGaps && W3j.length){s$u={noCleanupDates:!![],cleanupGaps:R4F.fillGaps};if(Y7w){for(var a0a=0;a0a < Y7w.length;a0a++){s$u.field=Y7w[a0a];f1w.doCleanupGaps(W3j,l5M,s$u);}}else {u$u=-2010745958;c$q=882650088;O73=2;for(var U5w=1;K2H.m7$(U5w.toString(),U5w.toString().length,51825) !== u$u;U5w++){s$u.field=e3O;K2H.i3C(1);O73+=K2H.B0m(0,"2");}if(K2H.b3_(O73.toString(),O73.toString().length,20477) !== c$q){s$u.field=e3O;}f1w.doCleanupGaps(W3j,l5M,s$u);}}for(var D5Z=0;D5Z < v9r.length;D5Z++){h2c=v9r[D5Z].endPoints;if(!h2c.end || !e3O || h2c.end <= t7a[e3O].DT){h2c.end=e3O?t7a[e3O].DT:t7a.DT;D_g=e3O || v9r[D5Z].parameters && v9r[D5Z].parameters.field || l5M.defaultPlotField;v9r[D5Z].lastQuote=f1w.getFirstLastDataRecord(W3j,D_g,!!({}));}}f1w.setMasterData(W3j,l5M,{noCleanupDates:!!({})});};};T=w62=>{var V24=M2dNJ;var D1j;D1j=w62.CIQ;Math.easeInOutQuad=function(J9g,K$O,P0b,Q3f){V24.a3e(40);J9g/=V24.B0m(Q3f,2);if(J9g < 1){V24.a3e(102);return V24.B0m(2,P0b,K$O,J9g,J9g);}J9g--;V24.a3e(103);return V24.k$A(P0b,J9g,2,1,K$O,2,J9g);};Math.easeInOutCubic=function(P9j,p$U,t_C,V2x){V24.a3e(104);P9j/=V24.k$A(0,V2x,"2");if(P9j < 1){V24.i3C(105);return V24.k$A("2",P9j,P9j,p$U,P9j,t_C);}P9j-=2;V24.E0w();V24.a3e(106);return V24.k$A("2",P9j,2,P9j,0,P9j,p$U,t_C);};Math.easeOutCubic=function(l0b,E3m,z9n,I6a){l0b/=I6a;V24.j07();l0b--;V24.i3C(107);return V24.k$A(1,z9n,l0b,E3m,l0b,l0b);};D1j.xor=function(O8Q,H9g){var k1y,B0T;V24.E0w();k1y=!O8Q;B0T=!H9g;V24.a3e(108);return V24.B0m(B0T,k1y);};D1j.round=function(B8T,U1E){return Number(Math.round(B8T + ((498.52,7950) == (1165,4210)?+"875.76":(664.64,930) <= 85?(0x1f39,"2.12e+2" << 32):"e") + U1E) + "e-" + U1E);};D1j.countDecimals=function(K7C){var U6J,y1k;V24.E0w();U6J="e";U6J+="-";if(typeof K7C !== "number" || isNaN(K7C)){return 0;}if(Math.floor(K7C) === Number(K7C)){return +"0";}y1k=K7C.toString().split(U6J);if(y1k.length > 1){V24.i3C(1);var h3t=V24.k$A(4,5);return D1j.countDecimals(Number(y1k[0])) + Number(y1k[h3t]);}if(y1k[0].indexOf(".") > -1){return y1k[+"0"].split(".")[1].length;}return 0;};D1j.isValidNumber=function(L1t){V24.E0w();return isFinite(L1t) && +L1t === L1t;};D1j.log10=function(b5I){return Math.log(b5I) / Math.LN10;};D1j.boxIntersects=function(s6A,M1s,M_z,r_Q,r7R,H56,R_z,C_n,r0l){var q8p,J1P,s5L,Y76,s4r,i3g,t3H;q8p="r";q8p+="a";q8p+="y";if(arguments[9] !== undefined){console.warn("CIQ.boxIntersects() no longer supports isLog argument, please be sure arguments are passed in as pixels.");}J1P=Math.min(s6A,M_z);s5L=Math.max(s6A,M_z);function i8u(h4b,y_e){V24.i3C(109);return V24.B0m(H56,H56,r7R,y_e,r7R,C_n,h4b,R_z);}Y76=Math.min(M1s,r_Q);s4r=Math.max(M1s,r_Q);V24.a3e(110);i3g=V24.k$A(r0l,q8p);if(isNaN(r7R) || isNaN(R_z) || isNaN(H56) || isNaN(C_n)){return !!0;}if(r0l != "line"){if(r7R < J1P && R_z < J1P && (!i3g || r7R > R_z)){return !!"";}if(r7R > s5L && R_z > s5L && (!i3g || r7R < R_z)){return ![];}if(H56 < Y76 && C_n < Y76 && (!i3g || H56 > C_n)){return !({});}if(H56 > s4r && C_n > s4r && (!i3g || H56 < C_n)){return !1;}}t3H={a:i8u(s6A,M1s),b:i8u(s6A,r_Q),c:i8u(M_z,M1s),d:i8u(M_z,r_Q)};if(t3H.a > 0 && t3H.b > +"0" && t3H.c > +"0" && t3H.d > 0){return !({});}if(t3H.a < 0 && t3H.b < 0 && t3H.c < 0 && t3H.d < 0){return ![];}return !"";};D1j.linesIntersect=function(w_1,F4u,r0r,a6q,K77,U93,d0E,J0w,w_x){var u7i,z54,M23,w8N,y_f,k2_,Y_A,w9Y,X0T;u7i="v";u7i+="er";u7i+="tic";u7i+="al";V24.i3C(109);z54=V24.k$A(d0E,r0r,K77,J0w,w_1,a6q,U93,F4u);V24.i3C(109);M23=V24.k$A(K77,K77,d0E,U93,d0E,w_1,J0w,r0r);V24.i3C(109);w8N=V24.k$A(w_1,K77,r0r,F4u,d0E,w_1,a6q,r0r);if(z54 === "0" << 32){if(M23 === 0 && w8N === "0" << 0){return !![];}return !({});;}V24.a3e(40);y_f=V24.B0m(M23,z54);V24.i3C(40);k2_=V24.k$A(w8N,z54);if(w_x == "segment"){if(y_f >= 0 && y_f <= 1 && k2_ >= +"0" && k2_ <= 1){return !0;}}else if(w_x == "line" || w_x == "horizontal" || w_x == u7i){Y_A=557395262;V24.i3C(13);w9Y=-V24.k$A("722684032",0);X0T=2;for(var d_t="1" ^ 0;V24.m7$(d_t.toString(),d_t.toString().length,96704) !== Y_A;d_t++){if(y_f < 3 || y_f > 2){return !"1";}X0T+=+"2";}if(V24.b3_(X0T.toString(),X0T.toString().length,96172) !== w9Y){if(y_f < 3 || y_f > 2){return !({});}}if(y_f >= 0 && y_f <= 1){return !!({});}}else if(w_x == "ray"){if(y_f >= 0 && y_f <= 1 && k2_ >= +"0"){return !"";}}return !!"";};D1j.yIntersection=function(H5e,Z_o){var Q7P,f$5,J_J,g2G,G4M,F9Y,K9c,B8w,q0B,C8N,n4l,K63,y5m,Q64,w2p;V24.E0w();Q7P=H5e.x0;f$5=H5e.x1;J_J=Z_o;g2G=Z_o;G4M=H5e.y0;F9Y=H5e.y1;K9c=0;B8w=10000;V24.i3C(109);q0B=V24.B0m(K9c,G4M,J_J,B8w,Q7P,F9Y,g2G,f$5);V24.a3e(109);C8N=V24.k$A(J_J,J_J,K9c,g2G,K9c,Q7P,B8w,G4M);V24.a3e(40);n4l=V24.k$A(C8N,q0B);if(q0B === 0){K63=388290614;y5m=-+"160891235";Q64=2;for(var T2h=1;V24.m7$(T2h.toString(),T2h.toString().length,3474) !== K63;T2h++){if(C8N == +"8"){n4l=6;}else {return 1;}Q64+=2;}if(V24.m7$(Q64.toString(),Q64.toString().length,86929) !== y5m){if(C8N === 0){n4l=1;}else {return null;}}}V24.i3C(111);w2p=V24.k$A(n4l,G4M,F9Y,G4M);return w2p;};V24.j07();D1j.xIntersection=function(T0V,m6d){var w5R,Z3X,o9B,i7m,K4P,Z28,c2A,C9b,j_X,j0k,E4J,h0Q;w5R=T0V.x0;Z3X=T0V.x1;o9B=0;i7m=10000;K4P=T0V.y0;Z28=T0V.y1;c2A=m6d;C9b=m6d;V24.a3e(109);j_X=V24.B0m(c2A,K4P,o9B,C9b,w5R,Z28,i7m,Z3X);V24.a3e(109);V24.j07();j0k=V24.B0m(o9B,o9B,c2A,i7m,c2A,w5R,C9b,K4P);V24.a3e(40);E4J=V24.B0m(j0k,j_X);if(j_X === 0){if(j0k === 0){E4J=1;}else {return null;}}V24.a3e(111);h0Q=V24.B0m(E4J,w5R,Z3X,w5R);return h0Q;};D1j.intersectLineLineX=function(Z_J,e3r,D0$,t1n,w84,m0D,J$2,Z0q){var d8S,F57,c4S;V24.a3e(109);d8S=V24.k$A(w84,w84,J$2,m0D,J$2,Z_J,Z0q,D0$);V24.i3C(109);F57=V24.k$A(J$2,D0$,w84,Z0q,Z_J,t1n,m0D,e3r);V24.a3e(40);c4S=V24.B0m(d8S,F57);V24.a3e(111);return V24.B0m(c4S,Z_J,e3r,Z_J);};D1j.intersectLineLineY=function(k9I,T1c,k2q,K_P,s8$,s7I,E$Z,F$Y){var e2b,P_J,J3_;V24.i3C(109);e2b=V24.B0m(s8$,s8$,E$Z,s7I,E$Z,k9I,F$Y,k2q);V24.i3C(109);P_J=V24.k$A(E$Z,k2q,s8$,F$Y,k9I,K_P,s7I,T1c);V24.a3e(40);J3_=V24.k$A(e2b,P_J);V24.i3C(111);return V24.B0m(J3_,k2q,K_P,k2q);};};R=X9W=>{var N$Q;N$Q=X9W.CIQ;N$Q.deleteRHS=function(h3L,t27){var s9o;s9o=![];for(var q7e in h3L){if(h3L[q7e] == t27){delete h3L[q7e];s9o=!!1;}}return s9o;};N$Q.scrub=function(C1A,M1R){for(var R1u in C1A){if(typeof C1A[R1u] == "undefined"){delete C1A[R1u];}if(M1R && C1A[R1u] === null){delete C1A[R1u];}}};N$Q.dataBindSafeAssignment=function(J9j,d3v){var L48,R1b,e9k;L48=131049330;M2dNJ.j07();R1b=-377134672;e9k=2;for(var O3P=1;M2dNJ.b3_(O3P.toString(),O3P.toString().length,92017) !== L48;O3P++){N$Q.extend(J9j,d3v);e9k+=2;}if(M2dNJ.m7$(e9k.toString(),e9k.toString().length,"19133" << 32) !== R1b){N$Q.extend(J9j,d3v);}N$Q.extend(J9j,d3v);for(var g0J in J9j){if(typeof d3v[g0J] == "undefined"){J9j[g0J]=undefined;}}};N$Q.clone=function(K0Z,n6w){var l7v,K_Y;l7v="o";l7v+="bje";l7v+="c";l7v+="t";if(K0Z === null || typeof K0Z != l7v){return K0Z;}K_Y=K0Z.constructor;if(K_Y == Date || K_Y == RegExp || K_Y == String || K_Y == Number || K_Y == Boolean){return new K_Y(K0Z.valueOf());}if(K_Y == Function){return function(){return K0Z.apply(this,arguments);};}if(!n6w){try{n6w=new K_Y();}catch(I9w){n6w=Object.create(Object.getPrototypeOf(K0Z));}}for(var U6O in K0Z){n6w[U6O]=n6w[U6O] !== K0Z[U6O]?N$Q.clone(K0Z[U6O],null):n6w[U6O];}return n6w;};N$Q.shallowClone=function(t63){var I6r;if(!t63){return t63;}if(t63.constructor == Array){I6r=new Array(t63.length);for(var T5X=0;T5X < t63.length;T5X++){I6r[T5X]=t63[T5X];}return I6r;}I6r={};for(var g2Z in t63){I6r[g2Z]=t63[g2Z];}return I6r;};N$Q.ensureDefaults=function(x2h,g9z){for(var B4p in g9z){if(typeof x2h[B4p] == "undefined"){x2h[B4p]=g9z[B4p];}}return x2h;};N$Q.transferObject=function(e2Q,x0t){var a2x;for(a2x in e2Q){if(e2Q.hasOwnProperty(a2x)){delete e2Q[a2x];}}for(a2x in x0t){if(x0t.hasOwnProperty(a2x)){e2Q[a2x]=x0t[a2x];}}return e2Q;};N$Q.equals=function(O6Y,m_b,D7R){var G0n;if(!O6Y && m_b){return !!0;}if(O6Y && !m_b){return !({});}if(typeof O6Y !== typeof m_b){return !({});}for(var I4d in O6Y){if(D7R && D7R[I4d])continue;if(typeof O6Y[I4d] === "object"){G0n=N$Q.equals(O6Y[I4d],m_b[I4d]);if(!G0n){return ![];}continue;}if(m_b[I4d] != O6Y[I4d]){return !"1";}}return !![];};N$Q.isEmpty=function(G_U){M2dNJ.E0w();for(var s39 in G_U){if(G_U.hasOwnProperty(s39)){return !({});}}return !!({});};N$Q.first=function(i_F){var i1u,U9P,S9H;for(var d0b in i_F){return d0b;}i1u=-2003807241;U9P=-214471443;M2dNJ.j07();S9H=2;for(var c4_=1;M2dNJ.b3_(c4_.toString(),c4_.toString().length,26033) !== i1u;c4_++){return 1;}if(M2dNJ.b3_(S9H.toString(),S9H.toString().length,78335) !== U9P){return null;}};N$Q.last=function(Z2L){var s9x;s9x=null;for(var p3g in Z2L){s9x=p3g;}return s9x;};N$Q.objLength=function(p_Z){var z0A;if(!p_Z){return 0;}z0A=0;for(var e6J in p_Z){z0A++;}return z0A;};N$Q.deriveFromObjectChain=function(g7H,n2J){var c7L,h0D;if(n2J.indexOf(1978 !== (258.54,862.31)?(27.18,24.93) === 6776?(![],"m"):".":(7.27e+3,"J")) == -1){return {obj:g7H,member:n2J};}c7L=n2J.split(".");for(var F5f=0;F5f < c7L.length - 1;F5f++){h0D=c7L[F5f];if(!g7H[h0D] && g7H[h0D] !== 0){g7H[h0D]={};}g7H=g7H[h0D];}return {obj:g7H,member:c7L[F5f]};};N$Q.createObjectChainNames=function(k4l,q3Y){var o5i;o5i=[];for(var g6e=0;g6e < q3Y.length;g6e++){o5i.push(k4l + "-->" + q3Y[g6e]);}return o5i;};N$Q.existsInObjectChain=function(g6G,S85){var P6a,m_t,J_K;P6a="-";P6a+="-";P6a+=">";M2dNJ.j07();if(S85.indexOf(P6a) == -1){if(!g6G[S85] && g6G[S85] !== 0){return null;}return {obj:g6G,member:S85};}m_t=S85.split("-->");for(var P$0="0" * 1;P$0 < m_t.length - ("1" - 0);P$0++){J_K=m_t[P$0];if(!g6G[J_K] && g6G[J_K] !== ("0" ^ 0)){return null;}g6G=g6G[J_K];}J_K=m_t[P$0];if(!g6G[J_K] && g6G[J_K] !== 0){return null;}return {obj:g6G,member:J_K};};N$Q.derivedFrom=function(b7P,z$i){if(z$i.isPrototypeOf(b7P)){return !"";}if(b7P instanceof z$i){return !!({});}return ![];};N$Q.replaceFields=function(m22,F3N){var q_N,n_a,H7l,n8a,z6D;if(!m22){return m22;}q_N={};for(var F6t in m22){n_a=m22[F6t];H7l=F3N[F6t];if(!H7l){H7l=F6t;}if(n_a && typeof n_a == "object"){if(n_a.constructor == Array){n8a=q_N[H7l]=new Array(n_a.length);for(var M4H=0;M4H < n8a.length;M4H++){z6D=n_a[M4H];if(typeof z6D == "object"){n8a[M4H]=N$Q.replaceFields(z6D,F3N);}else {n8a[M4H]=z6D;}}}else {q_N[H7l]=N$Q.replaceFields(n_a,F3N);}}else {q_N[H7l]=n_a;}}return q_N;};N$Q.removeNullValues=function(m$R){var F6A;F6A=N$Q.clone(m$R);for(var w0e in F6A){if(!F6A[w0e]){delete F6A[w0e];}}return F6A;};N$Q.reverseObject=function(Y3H){var v0_;v0_={};for(var Z_Z in Y3H){v0_[Y3H[Z_Z]]=Z_Z;}return v0_;};N$Q.getFromNS=(c3D,B33,f7i)=>{var t13,h$6,V7a;M2dNJ.E0w();if(c3D){t13=c3D;h$6=B33.split(".");for(var Y$V=0;Y$V < h$6.length;Y$V++){V7a=h$6[Y$V];if(typeof t13[V7a] === "undefined")break;t13=t13[V7a];}if(Y$V === h$6.length){return t13;}}return undefined || f7i;};N$Q.getFnFromNS=(K38,f_c,m53)=>{return N$Q.getFromNS(K38,f_c,function(){M2dNJ.j07();return m53;});;};N$Q.get=(M6c,P_M)=>{M2dNJ.j07();return N$Q.getFromNS(N$Q,M6c,P_M);};N$Q.getFn=(Z5d,s6y)=>{M2dNJ.j07();return N$Q.getFromNS(N$Q,Z5d,function(){M2dNJ.j07();return s6y;});;};};W=M0O=>{var p8a=M2dNJ;var L$K;L$K=M0O.CIQ;L$K.Plotter=function(){this.seriesArray=[];this.seriesMap={};};p8a.j07();L$K.extend(L$K.Plotter.prototype,{Series:function(T3M,c1M,I4V,O3Y,u5F,s0K){this.name=T3M;this.strokeOrFill=c1M;this.color=I4V;this.moves=[];this.text=[];if(!O3Y || O3Y > "1" >> 0 || O3Y < 0){O3Y=1;}this.opacity=O3Y;if(!u5F || u5F > 25 || u5F < 1){u5F=1;}this.width=u5F;p8a.j07();this.pattern=L$K.borderPatternToArray(u5F,s0K);},newSeries:function(t4c,J4x,r5p,A5L,A3u){var c9x;if(r5p.constructor == String){c9x=new this.Series(t4c,J4x,r5p,A5L,A3u);}else {c9x=new this.Series(t4c,J4x,r5p.color,r5p.opacity,A3u >= 0?A3u:L$K.stripPX(r5p.width),r5p.borderTopStyle);}p8a.j07();this.seriesArray.push(c9x);this.seriesMap[t4c]=c9x;},reset:function(f$U){var W4g;for(var W5K in this.seriesMap){if(f$U && f$U != W5K)continue;W4g=this.seriesMap[W5K];if(W4g){W4g.moves=[];W4g.text=[];}}},moveTo:function(b8F,d_0,B4t){p8a.j07();var o_S;o_S=this.seriesMap[b8F];o_S.moves.push({action:"moveTo",x:d_0,y:B4t});},lineTo:function(k7G,Y7R,l1d){var V7O,X9Q;V7O=this.seriesMap[k7G];X9Q=V7O.pattern;V7O.moves.push({action:"lineTo",x:Y7R,y:l1d,pattern:X9Q});},dashedLineTo:function(N_k,o9Z,X84,Z2a){var r69;r69=this.seriesMap[N_k];r69.moves.push({action:"lineTo",x:o9Z,y:X84,pattern:Z2a});},quadraticCurveTo:function(q0e,g6K,y6U,S$_,A7p){var F1W,p3n;F1W=this.seriesMap[q0e];p8a.E0w();p3n=F1W.pattern;F1W.moves.push({action:"quadraticCurveTo",x0:g6K,y0:y6U,x:S$_,y:A7p,pattern:p3n});},bezierCurveTo:function(J7j,s6u,h3u,l_H,e3H,k9m,f8z){var O_w,l$3,j40;O_w="bezie";O_w+="rC";O_w+="u";O_w+="rveTo";p8a.E0w();l$3=this.seriesMap[J7j];j40=l$3.pattern;l$3.moves.push({action:O_w,x0:s6u,y0:h3u,x1:l_H,y1:e3H,x:k9m,y:f8z,pattern:j40});},addText:function(N2H,a2T,j8i,R0N,S8V,O_G,p$O){var p9z;p9z=this.seriesMap[N2H];p9z.text.push({text:a2T,x:j8i,y:R0N,bg:S8V});},drawText:function(c1Y,Z$_){var o9w,r1l,n8d,O9i,r4J;for(var S0p="0" ^ 0;S0p < Z$_.text.length;S0p++){o9w=Z$_.text[S0p];if(o9w.bg){r1l="ri";r1l+="g";r1l+="ht";n8d=o9w.width?o9w.width:c1Y.measureText(o9w.text).width;O9i=o9w.height?o9w.height:12;r4J=c1Y.fillStyle;c1Y.fillStyle=o9w.bg;if(c1Y.textAlign == r1l){c1Y.fillRect(o9w.x,o9w.y - O9i / 2,-n8d,-O9i);}else {c1Y.fillRect(o9w.x,o9w.y - O9i / ("2" >> 32),n8d,O9i);}c1Y.fillStyle=r4J;}c1Y.fillText(o9w.text,o9w.x,o9w.y);}},draw:function(G7g,P6d){var L4e,o3f,B6z,q6q,e3p,b5y;L4e=G7g.lineWidth;o3f=G7g.fillStyle;B6z=G7g.strokeStyle;q6q=G7g.globalAlpha;for(var A9f=0;A9f < this.seriesArray.length;A9f++){e3p=this.seriesArray[A9f];if(P6d && e3p.name != P6d)continue;G7g.beginPath();G7g.lineWidth=e3p.width;G7g.globalAlpha=e3p.opacity;G7g.fillStyle=e3p.color;G7g.strokeStyle=e3p.color;G7g.save();for(var V_Q="0" ^ 0;V_Q < e3p.moves.length;V_Q++){b5y=e3p.moves[V_Q];if(b5y.pattern){G7g.setLineDash(b5y.pattern);G7g.lineDashOffset=0;}else {G7g.setLineDash([]);}if(b5y.action == "quadraticCurveTo"){G7g[b5y.action](b5y.x0,b5y.y0,b5y.x,b5y.y);}else if(b5y.action == "bezierCurveTo"){G7g[b5y.action](b5y.x0,b5y.y0,b5y.x1,b5y.y1,b5y.x,b5y.y);}else {G7g[b5y.action](b5y.x,b5y.y);}}if(e3p.strokeOrFill == "fill"){G7g.fill();}else {G7g.stroke();}G7g.closePath();G7g.restore();this.drawText(G7g,e3p);p8a.i3C(14);G7g.lineWidth=p8a.k$A(0,"1");}G7g.lineWidth=L4e;G7g.fillStyle=o3f;G7g.strokeStyle=B6z;G7g.globalAlpha=q6q;}},!![]);};Y=x0g=>{var n4m;n4m=x0g.CIQ;n4m.Renderer=function(){};n4m.Renderer.produce=function(i51,O3l){var E_q,p3j;E_q=null;if(i51){for(var p2z in n4m.Renderer){p3j=n4m.Renderer[p2z];if(p3j.requestNew){E_q=p3j.requestNew(i51.split("_"),O3l);}if(E_q){return E_q;}}}O3l.type="line";return new n4m.Renderer.Lines({params:O3l});};n4m.Renderer.colorFunctions={};n4m.Renderer.registerColorFunction=function(R1f,t_J){n4m.Renderer.colorFunctions[R1f]=t_J;};n4m.Renderer.unregisterColorFunction=function(I0f){M2dNJ.j07();delete n4m.Renderer.colorFunctions[I0f];};n4m.Renderer.prototype.adjustYAxis=function(){};n4m.Renderer.prototype.draw=function(){};n4m.Renderer.prototype.drawIndividualSeries=function(p$k,l7K){};n4m.Renderer.prototype.construct=function(P4d){var W9i;if(!P4d){P4d={};}W9i=P4d.params?P4d.params:{};if(!W9i.name){W9i.name=n4m.uniqueID();}if(!W9i.heightPercentage){W9i.heightPercentage=0.7;}if(!W9i.opacity){W9i.opacity=1;}if(W9i.highlightable !== !!""){W9i.highlightable=!!1;}if(!W9i.panel){W9i.panel="chart";}if(W9i.yAxis){W9i.yAxis=new n4m.ChartEngine.YAxis(W9i.yAxis);if(!W9i.yAxis.name){W9i.yAxis.name=W9i.name;}}this.cb=P4d.callback;this.params=W9i;this.seriesParams=[];this.caches={};this.colors={};};n4m.Renderer.prototype.attachSeries=function(o33,p65){var S4s=M2dNJ;var V6r,R1I,q2t,C5V,e7f,H6k,G_x,j4V,X3b,n17,W3B,i6x,i8q,X_a,q2R,I0T;V6r=this.stx;if(!V6r){return this;}R1I=V6r.chart.series[o33];if(!R1I){R1I={parameters:{}};}q2t=this.params;C5V=R1I.parameters;e7f={id:o33,chartType:q2t.type,display:C5V.display,border_color_up:q2t.defaultBorders?"auto":null,fill_color_up:C5V.color,opacity_up:q2t.opacity,border_color_down:q2t.defaultBorders?"auto":null,fill_color_down:C5V.color,opacity_down:q2t.opacity,color:C5V.color,symbol:C5V.symbol,symbolObject:n4m.clone(C5V.symbolObject)};if(typeof p65 == "string"){e7f.color=e7f.fill_color_down=e7f.fill_color_up=p65;}else if(typeof p65 == "object"){for(var Q7l in p65){e7f[Q7l]=p65[Q7l];}H6k=-2088145325;G_x=1007278948;S4s.a3e(14);j4V=S4s.B0m(0,"2");for(var t4k=1;S4s.b3_(t4k.toString(),t4k.toString().length,+"98855") !== H6k;t4k++){X3b=e7f.color;n17=e7f.border_color;j4V+=2;}if(S4s.b3_(j4V.toString(),j4V.toString().length,74592) !== G_x){X3b=e7f.color;n17=e7f.border_color;}if(X3b){if(!e7f.fill_color_up){e7f.fill_color_up=X3b;}if(!e7f.fill_color_down){e7f.fill_color_down=X3b;}if(!e7f.fill_color_even){e7f.fill_color_even=X3b;}}if(n17){if(!e7f.border_color_up){e7f.border_color_up=n17;}if(!e7f.border_color_down){e7f.border_color_down=n17;}if(!e7f.border_color_even){e7f.border_color_even=n17;}}}if(e7f.symbol && e7f.field != e7f.symbol){e7f.subField=e7f.field;e7f.field=e7f.symbol;}if(!e7f.id){e7f.id=n4m.uniqueID();}W3B=0;for(;W3B < this.seriesParams.length;++W3B){if(this.seriesParams[W3B].id === e7f.id){this.removeSeries(e7f.id,!!1);break;}}this.seriesParams.splice(W3B,0,e7f);if(e7f.fill_color_up != e7f.fill_color_down){i6x=" ";i6x+="down";i8q=" ";i8q+="do";i8q+="w";i8q+="n";X_a=" ";X_a+="d";X_a+="n";S4s.i3C(4);this.colors[S4s.k$A(" up",o33)]={color:e7f.fill_color_up,opacity:e7f.opacity_up,display:e7f.display?e7f.display + " up":o33 + " up"};S4s.i3C(4);this.colors[S4s.k$A(X_a,o33)]={color:e7f.fill_color_down,opacity:e7f.opacity_down,display:e7f.display?e7f.display + i8q:o33 + i6x};}else {this.colors[o33]={color:e7f.fill_color_up,opacity:e7f.opacity_up,display:e7f.display?e7f.display:o33};}q2R=q2t.panel;if(!V6r.panels[q2R]){I0T=q2t.yAxis;if(!I0T){I0T=new n4m.ChartEngine.YAxis();I0T.needsInitialPadding=!![];}I0T.name=q2R;V6r.createPanel(q2R,q2R,null,null,I0T);}else {if(q2t.yAxis){q2t.yAxis=V6r.addYAxis(V6r.panels[q2R],q2t.yAxis);q2t.yAxis.needsInitialPadding=!![];C5V.yAxis=q2t.yAxis;V6r.resizeChart();}else if(e7f.yAxis){q2t.yAxis=e7f.yAxis;}}return this;};n4m.Renderer.prototype.removeSeries=function(i4u,l_u){var j1K=M2dNJ;var u5c,E0x,p0L,T$0,p$Z,G3v,h4f,e8k,u43,W8y,r7w;u5c=null;E0x=!({});p0L=this.stx;T$0=p0L.chart;for(var Y1w in T$0.seriesRenderers){p$Z=T$0.seriesRenderers[Y1w];for(var E0E=0;E0E < p$Z.seriesParams.length;E0E++){G3v=p$Z.seriesParams[E0E];if(G3v.id == i4u && this === p$Z){u5c=E0E;}else if(G3v.isComparison && G3v.panel == T$0.panel.name && (!G3v.yAxis || G3v.yAxis == T$0.yAxis)){E0x=!!"1";}}}if(u5c !== null){if(T$0.forcePercentComparison && !E0x && this.seriesParams[u5c].isComparison && p0L.layout.chartScale != "linear"){p0L.setChartScale();}this.seriesParams.splice(u5c,+"1");}j1K.i3C(4);delete this.colors[j1K.B0m(" up",i4u)];j1K.a3e(4);delete this.colors[j1K.k$A(" dn",i4u)];delete this.colors[i4u];if(!l_u){h4f=616556170;e8k=1979278518;u43=+"2";for(var M1j=1;j1K.m7$(M1j.toString(),M1j.toString().length,69585) !== h4f;M1j++){j1K.i3C(14);u43+=j1K.B0m(2,"2");}if(j1K.b3_(u43.toString(),u43.toString().length,39870) !== e8k){}for(var E6Y in T$0.seriesRenderers){r7w=T$0.seriesRenderers[E6Y];for(var T8S=0;T8S < r7w.seriesParams.length;T8S++){if(r7w.seriesParams[T8S].id == i4u){W8y=!![];break;}W8y=!({});}if(W8y)break;}if(W8y === !({}) || u5c !== null){p0L.deleteSeries(i4u,T$0);};}p0L.deleteYAxisIfUnused(p0L.panels[this.params.panel],this.params.yAxis);p0L.resizeChart();p0L.layout.symbols=p0L.getSymbols({"include-parameters":!!"1","exclude-studies":!0});p0L.changeOccurred("layout");return this;};n4m.Renderer.prototype.modifyRenderer=function(b_W){var f_8,f$x,Y0Z,o2m;M2dNJ.E0w();f_8=this.params;var {stx:B4R}=this;for(var G3L in b_W){f$x="t";f$x+="yp";f$x+="e";Y0Z="bas";Y0Z+="e";Y0Z+="line";o2m=b_W[G3L];switch(G3L){case Y0Z:if(o2m){if(typeof o2m === "object"){this.params.baseline=n4m.ensureDefaults(o2m,n4m.ChartEngine.Chart.prototype.baseline);}B4R.registerBaselineToHelper(this);}else {B4R.removeBaselineFromHelper(this);}break;case f$x:this.params.type=o2m;break;case "style":this.params.style=o2m;break;default:break;}}};n4m.Renderer.prototype.getDependents=function(K_N){var L_B,y0h;L_B=[];for(var w$k in K_N.chart.seriesRenderers){y0h=K_N.chart.seriesRenderers[w$k];if(y0h.params.dependentOf == this.params.name){L_B.push(y0h);}}return L_B;};n4m.Renderer.prototype.undraggable=function(G47){if(this == G47.mainSeriesRenderer){return !0;}M2dNJ.j07();return this.params.dependentOf == G47.mainSeriesRenderer.params.name;};n4m.Renderer.prototype.removeAllSeries=function(E$_){var A7J;if(E$_ || this === this.stx.mainSeriesRenderer){A7J=[];for(var q4z=0;q4z < this.seriesParams.length;q4z++){A7J.push(this.seriesParams[q4z].id);}for(var m6h=0;m6h < A7J.length;m6h++){this.removeSeries(A7J[m6h]);}}this.seriesParams=[];this.colors={};this.stx.deleteYAxisIfUnused(this.stx.panels[this.params.panel],this.params.yAxis);this.stx.resizeChart();M2dNJ.j07();return this;};n4m.Renderer.prototype.getYAxis=function(M_y){var Q_t,N$M;if(this.params){if(this.params.yAxis){Q_t=this.params.yAxis;}else {N$M=M_y.panels[this.params.panel];if(!N$M){return ![];}Q_t=N$M.yAxis;}}else {Q_t=M_y.chart.panel.yAxis;}M2dNJ.E0w();return Q_t;};n4m.Renderer.prototype.ready=function(){this.stx.createDataSet();this.stx.draw();return this;};n4m.Renderer.Lines=function(Z4s){var c9S,a_f,J$I,y04,s9h;c9S="obj";c9S+="ec";c9S+="t";a_f="s";a_f+="t";a_f+="e";a_f+="p";J$I="chan";J$I+="nel";y04="w";y04+="av";y04+="e";this.construct(Z4s);var {params:b4j}=this;if(!b4j.type){b4j.type="line";}if(!b4j.style){s9h="m";s9h+="ou";s9h+="ntain";switch(b4j.type){case s9h:if(b4j.baseline){b4j.style="stx_baseline_delta_mountain";}else if(b4j.colored){b4j.style="stx_colored_mountain_chart";}else {b4j.style="stx_mountain_chart";}break;default:b4j.style="stx_line_chart";}}this.supportsAnimation=!![];if(b4j.type == y04 || b4j.type == J$I){b4j.step=b4j.vertex=b4j.baseline=b4j.colored=!({});this.highLowBars=this.barsHaveWidth=!!({});this.supportsAnimation=![];}else if(b4j.type == a_f){b4j.step=!0;}var {baseline:i3F}=b4j;if(i3F && typeof i3F === c9S){n4m.ensureDefaults(b4j.baseline,n4m.ChartEngine.Chart.prototype.baseline);}};n4m.inheritsFrom(n4m.Renderer.Lines,n4m.Renderer,!({}));n4m.Renderer.Lines.requestNew=function(L01,h$2){var E8m,d1A,m1W,O7K,Y4O,g7f,p5G,l4c;E8m=null;d1A=h$2.step;m1W=h$2.colored;O7K=h$2.baseline;Y4O=h$2.vertex;M2dNJ.j07();for(var G9s="0" ^ 0;G9s < L01.length;G9s++){g7f="s";g7f+="tep";p5G="ch";p5G+="a";p5G+="nne";p5G+="l";l4c=L01[G9s];switch(l4c){case "line":case "mountain":case "wave":case p5G:E8m=l4c;break;case "baseline":O7K=!0;break;case "colored":m1W=!0;break;case g7f:d1A=!0;break;case "vertex":Y4O=!"";break;case "delta":break;default:return null;}}if(E8m === null && !O7K && !d1A){return null;}return new n4m.Renderer.Lines({params:n4m.extend(h$2,{type:E8m,step:d1A,colored:m1W,baseline:O7K,vertex:Y4O})});};n4m.Renderer.Lines.prototype.draw=function(){var r4o,w0g,Q_C,J$T,N_J,W60,F$D,a7y,C3E,p33,G7Q,N8B,r4y;r4o=this.stx;w0g=this.stx.panels[this.params.panel];M2dNJ.j07();Q_C=w0g.chart;J$T={};W60=this.seriesParams;F$D=this.params.colorFunction;for(N_J=0;N_J < W60.length;N_J++){a7y=W60[N_J];if(this.params.colored){C3E="_color";C3E+="_";C3E+="u";C3E+="p";p33=[C3E,"_color_down","_color"];for(var P1z=0;P1z < p33.length;P1z++){G7Q="f";G7Q+="i";G7Q+="l";G7Q+="l";N8B=a7y["border" + p33[P1z]];if(N8B && N8B != "auto"){a7y[G7Q + p33[P1z]]=N8B;};}if(!F$D){F$D=M4D(a7y);}this.params.colorFunction=F$D;}r4y={};if(Q_C.series[a7y.id]){r4y=n4m.clone(Q_C.series[a7y.id].parameters);}J$T[a7y.id]={parameters:n4m.extend(n4m.extend(r4y,this.params),a7y),yValueCache:this.caches[a7y.id]};if(this == r4o.mainSeriesRenderer && Q_C.customChart && Q_C.customChart.colorFunction){J$T[a7y.id].parameters.colorFunction=Q_C.customChart.colorFunction;}}r4o.drawSeries(Q_C,J$T,this.params.yAxis,this);for(N_J in J$T){this.caches[N_J]=J$T[N_J].yValueCache;}function M4D(Y5o){var K0J,J1f,V95,z32;K0J="st";K0J+="x_line_down";J1f=Y5o.fill_color_up || r4o.getCanvasColor("stx_line_up");V95=Y5o.fill_color_down || r4o.getCanvasColor(K0J);z32=Y5o.color || r4o.getCanvasColor("stx_line_chart");M2dNJ.j07();return function(y4M,n_8,O6Q){if(!n_8.iqPrevClose && n_8.iqPrevClose !== 0){return z32;}if(n_8.Close > n_8.iqPrevClose){return J1f;}if(n_8.Close < n_8.iqPrevClose){return V95;}return z32;};}};n4m.Renderer.Lines.prototype.drawIndividualSeries=function(Q5f,q15){var C_x,V4A,x__,h5M,m7b,n89;M2dNJ.j07();C_x="c";C_x+="hanne";C_x+="l";if(q15.invalid){return;}V4A=this.stx;x__=Q5f.context;h5M=null;m7b=q15.colorFunction;n89=V4A.panels[q15.panel] || Q5f.panel;if(typeof m7b == "string"){m7b=n4m.Renderer.colorFunctions[m7b];if(!m7b){return;}}if(q15.vertex){x__.save();x__.lineJoin="bevel";}if(q15.type == "wave"){h5M=V4A.drawWaveChart(n89,q15);}else if(q15.baseline){h5M=V4A.drawBaselineChart(n89,q15);V4A.positionBaselineHandle(this);}else if(q15.type == "mountain"){q15.returnObject=!![];h5M=V4A.drawMountainChart(n89,q15,m7b);}else if(q15.type == C_x){q15.returnObject=!!1;h5M=V4A.drawChannelChart(n89,m7b,q15);}else {q15.returnObject=!!1;h5M=V4A.drawLineChart(n89,q15.style,m7b,q15);}if(q15.vertex){V4A.scatter(n89,{yAxis:q15.yAxis,field:q15.symbol || q15.field,subField:q15.subField,symbol:q15.symbol,color:q15.vertex_color,highlight:q15.highlight});x__.restore();}return h5M;};n4m.Renderer.OHLC=function(Q0Z){var K7T,S2T,X11;K7T="ca";K7T+="ndl";K7T+="e";this.construct(Q0Z);S2T=this.params;if(!S2T.type){S2T.type=K7T;}this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!"1";if(S2T.histogram){X11="ca";X11+="ndle";S2T.type=X11;this.highLowBars=![];S2T.volume=S2T.hollow=!({});}M2dNJ.E0w();if(S2T.type == "bar"){S2T.volume=S2T.hollow=S2T.histogram=![];}if(S2T.type == "candle"){S2T.hlc=S2T.colored=![];}if(S2T.volume){S2T.hollow=!!"1";}};n4m.inheritsFrom(n4m.Renderer.OHLC,n4m.Renderer,!({}));n4m.Renderer.OHLC.requestNew=function(c48,d3m){var m9g,p$m,h0V;m9g=null;p$m=d3m.histogram;for(var Z3i=0;Z3i < c48.length;Z3i++){h0V=c48[Z3i];switch(h0V){case "candle":m9g=h0V;break;case "histogram":p$m=!0;m9g="candle";break;default:return null;}}if(m9g === null){return null;}return new n4m.Renderer.OHLC({params:n4m.extend(d3m,{type:m9g,histogram:p$m})});};n4m.Renderer.OHLC.getChartParts=function(d78,W8g){var N2i,d1j,z3$,b6P,e32,g_m,n38,h0h,B5B,r2M,a6Y,j82,M73;N2i="border_c";N2i+="olor_down";d1j="ca";d1j+="nd";d1j+="le";z3$="ca";z3$+="nd";z3$+="l";z3$+="e";b6P="st";b6P+="x_candle_shadow_";b6P+="down";e32="candl";e32+="e";g_m="bord";g_m+="er_col";g_m+="or";g_m+="_up";n38="c";n38+="andle";h0h="fill_color_eve";h0h+="n";B5B="bo";B5B+="r";B5B+="der_color_u";B5B+="p";r2M="hi";r2M+="stogram";a6Y=8;j82=16;M73=32;return [{type:r2M,drawType:"histogram",style:"stx_histogram_up",condition:a6Y,fill:"fill_color_up",border:B5B,useColorInMap:!![],useBorderStyleProp:!![]},{type:"histogram",drawType:"histogram",style:"stx_histogram_down",condition:j82,fill:"fill_color_down",border:"border_color_down",useColorInMap:!![],useBorderStyleProp:!!1},{type:"histogram",drawType:"histogram",style:"stx_histogram_even",condition:M73,fill:h0h,border:"border_color_even",skipIfPass:!!1,useColorInMap:!0,useBorderStyleProp:!!({})},{type:"candle",drawType:"shadow",style:"stx_candle_shadow",border:"border_color_up"},{type:n38,drawType:"shadow",style:"stx_candle_shadow_up",condition:a6Y,border:g_m},{type:e32,drawType:"shadow",style:b6P,condition:j82,border:"border_color_down"},{type:"candle",drawType:"shadow",style:"stx_candle_shadow_even",condition:M73,border:"border_color_even",skipIfPass:!!({})},{type:z3$,drawType:"candle",style:"stx_candle_up",condition:a6Y,fill:"fill_color_up",border:"border_color_up",useColorInMap:!!({}),useBorderStyleProp:!!"1"},{type:d1j,drawType:"candle",style:"stx_candle_down",condition:j82,fill:"fill_color_down",border:N2i,useColorInMap:!![],useBorderStyleProp:!!({})}];;};n4m.Renderer.OHLC.prototype.draw=function(){M2dNJ.E0w();var C_f,s5S,M8x,r6l,V1$,t47,b7$,V0U;C_f=this.stx;s5S=this.stx.panels[this.params.panel];M8x=s5S.chart;r6l={};t47=this.seriesParams;for(V1$=0;V1$ < t47.length;V1$++){b7$=t47[V1$];V0U={};if(M8x.series[b7$.id]){V0U=n4m.clone(M8x.series[b7$.id].parameters);}r6l[b7$.id]={parameters:n4m.extend(n4m.extend(V0U,this.params),b7$)};if(this == C_f.mainSeriesRenderer && M8x.customChart && M8x.customChart.colorFunction){r6l[b7$.id].parameters.colorFunction=M8x.customChart.colorFunction;}}C_f.drawSeries(M8x,r6l,this.params.yAxis,this);for(V1$ in r6l){if(r6l[V1$].yValueCache){this.caches[V1$]=r6l[V1$].yValueCache;}}};n4m.Renderer.OHLC.prototype.getColor=function(F4H,t6R,B8e,p71,t5Y,P2R){var U6Y,U8m,o9E,V6u,I2M;U6Y=P2R || B8e.color;U8m=this.params.yAxis || t6R.yAxis;if(p71){U6Y=P2R || B8e.borderLeftColor || B8e["border-left-color"];if(!U6Y){return null;}}if(!t5Y){return U6Y;}o9E=F4H.pixelFromTransformedValue(U8m.highValue,t6R);if(isNaN(o9E)){o9E=0;}V6u=B8e.backgroundColor;if(U6Y && !n4m.isTransparent(U6Y)){M2dNJ.a3e(82);I2M=F4H.chart.context.createLinearGradient(M2dNJ.B0m(0,"0"),o9E,0,2 * U8m[U8m.flipped?"top":"bottom"] - o9E);I2M.addColorStop(0,U6Y);I2M.addColorStop(1,V6u);return I2M;}return V6u;};n4m.Renderer.OHLC.prototype.drawIndividualSeries=function(H4i,U7J){var x14=M2dNJ;var R8b,i$1,o9j,Z4m,m4G,m4f,N3D,t$T,T6C,s7Q,W5r,V9l,s0G,Q4O,v6P,J9b,n5n,N1i,B93,f$o,T0O,b0_,o6M,R1z,I32,l2x,A4w,f7M,R13,R$V,u5P,O_P,c7B,b73,P0z,x55,o0A,v3t,N7G,W4b;if(U7J.invalid){return;}R8b=this.stx;i$1=H4i.context;o9j=U7J.colorFunction;Z4m=R8b.panels[U7J.panel] || H4i.panel;if(typeof o9j == "string"){o9j=n4m.Renderer.colorFunctions[o9j];if(!o9j){return;}}m4G=R8b.layout.candleWidth - H4i.tmpWidth <= 2 && H4i.tmpWidth <= 3;m4f=1;N3D=2;t$T=4;T6C=+"8";s7Q=16;W5r=32;if(!H4i.state.chartType){H4i.state.chartType={};}V9l=H4i.state.chartType.pass={};s0G=R8b.colorByCandleDirection;if(U7J.colorBasis){s0G=U7J.colorBasis == "open";}Q4O=U7J.histogram;v6P=U7J.type;J9b=U7J.hollow;n5n=R8b.noWicksOnCandles[v6P];R8b.startClip(Z4m.name);N1i=null;B93={colors:[],cache:[]};f$o=[];if(o9j){x14.i3C(82);T0O=-x14.k$A(0,"524872068");b0_=+"324903121";x14.a3e(82);o6M=x14.B0m(64,"2");for(var A03=1;x14.b3_(A03.toString(),A03.toString().length,"82454" ^ 0) !== T0O;A03++){R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};o6M+=2;}if(x14.m7$(o6M.toString(),o6M.toString().length,20251) !== b0_){R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};}R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};if(!Q4O && v6P == "bar"){I32="h";I32+="lc";R1z.type=U7J.hlc?I32:"bar";B93=R8b.drawBarChart(Z4m,"stx_bar_chart",o9j,R1z);}else {if(v6P == "candle" && !n5n){R8b.drawShadows(Z4m,o9j,R1z);}B93=R8b.drawCandles(Z4m,o9j,R1z);R1z.isOutline=!!1;if(J9b || !m4G){R8b.drawCandles(Z4m,o9j,R1z);};}}else {l2x=Q4O && U7J.gradient !== ![];A4w=n4m.Renderer.OHLC.getChartParts(U7J.style,s0G);for(var X7p=0;X7p < A4w.length;X7p++){f7M="cand";f7M+="le";R13="b";R13+="a";R13+="r";R$V=A4w[X7p];if(R$V.skipIfPass && !V9l.even)continue;else if(Q4O){if(R$V.type != "histogram")continue;}else if(v6P == R13){if(R$V.type != "bar")continue;else if(U7J.colored && !R$V.condition)continue;else if(!U7J.colored && R$V.condition)continue;}else if(J9b){if(R$V.type != "hollow")continue;else if(R$V.drawType == "shadow" && n5n)continue;}else if(v6P == "candle"){if(R$V.type != "candle")continue;else if(R$V.drawType == "shadow"){u5P="st";u5P+="x_candle_shadow_up";if(n5n)continue;O_P=U7J.border_color_up || R8b.getCanvasColor(u5P);c7B=U7J.border_color_down || R8b.getCanvasColor("stx_candle_shadow_down");b73=U7J.border_color_even || R8b.getCanvasColor("stx_candle_shadow_even");if(!n4m.colorsEqual(O_P,c7B) || !n4m.colorsEqual(O_P,b73) || !n4m.colorsEqual(O_P,R8b.defaultColor)){if(!R$V.condition)continue;}else if(R$V.condition)continue;}}else continue;P0z=R8b.canvasStyle(R$V.style);x55=this.getColor(R8b,Z4m,P0z,!"1",!"1",U7J[R$V.fill]);o0A=this.getColor(R8b,Z4m,P0z,!!"",l2x,U7J[R$V.fill]);v3t=this.getColor(R8b,Z4m,P0z,R$V.useBorderStyleProp && !m4G,l2x,U7J[R$V.border]);if(R$V.drawType == f7M){if(R$V.type == "hollow"){N7G="tr";N7G+="ansparent";if(!n4m.isTransparent(o0A) && n4m.colorsEqual(v3t,o0A)){v3t=R$V.useColorInMap?N7G:o0A;}if(!R$V.useColorInMap){o0A=R8b.containerColor;}}else if(R$V.type == "candle"){if(m4G){if(n4m.isTransparent(o0A)){o0A=v3t;}else {v3t=o0A;};}}}i$1.globalAlpha=U7J.opacity;f$o.push(R8b.drawBarTypeChartInner({fillColor:o0A,borderColor:v3t,condition:R$V.condition,style:R$V.style,type:v6P == "bar" && U7J.hlc?"hlc":R$V.drawType,panel:Z4m,field:U7J.field,yAxis:U7J.yAxis,volume:U7J.volume && U7J.hollow,highlight:U7J.highlight}));if(!N1i){N1i={};}if(R$V.useColorInMap){N1i[x55]=1;}}}R8b.endClip();for(var A33 in N1i){if(!U7J.hollow || !n4m.equals(A33,R8b.containerColor)){B93.colors.push(A33);}}for(A33=+"0";A33 < f$o.length;A33++){for(var P82=0;P82 < f$o[A33].cache.length;P82++){W4b=f$o[A33].cache[P82];if(W4b || W4b === ("0" ^ 0)){B93.cache[P82]=W4b;}}}return B93;};n4m.Renderer.Candles=function(J2X){M2dNJ.j07();var i80;this.construct(J2X);i80=this.params;i80.type="candle";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!![];i80.hlc=i80.colored=i80.histogram=![];if(i80.volume){i80.hollow=!!1;}};n4m.inheritsFrom(n4m.Renderer.Candles,n4m.Renderer.OHLC,![]);n4m.Renderer.SimpleHistogram=function(g5Q){var Z$8;this.construct(g5Q);Z$8=this.params;Z$8.type="candle";Z$8.histogram=!!"1";this.barsHaveWidth=this.standaloneBars=!![];this.highLowBars=!1;M2dNJ.E0w();Z$8.hlc=Z$8.colored=Z$8.hollow=Z$8.volume=!"1";};n4m.inheritsFrom(n4m.Renderer.SimpleHistogram,n4m.Renderer.Candles,!1);};L=R3_=>{var V51;V51=R3_.CIQ;V51.capitalize=function(Q8P){M2dNJ.j07();if(!Q8P){return "";}M2dNJ.i3C(112);var H1l=M2dNJ.B0m(36,0,7,16,14);return Q8P.charAt(0).toUpperCase() + Q8P.slice(H1l);};V51.camelCaseRegExp=/-([a-z])/g;V51.makeCamelCase=function(p68){M2dNJ.E0w();return p68.replace(V51.camelCaseRegExp,function(B6q){return B6q[+"1"].toUpperCase();});};V51.uniqueID=function(f7b){var Y0Q,N7m,Y6I,r0L,Z7e,l7V;if(f7b){Y0Q="fu";Y0Q+="nction";N7m="unde";N7m+="fi";N7m+="ne";N7m+="d";Y6I=new Date().getTime();if(typeof window !== N7m && window.performance && typeof window.performance.now === Y0Q){Y6I+=window.performance.now();;}r0L=("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,function(Z7A){var N29=M2dNJ;var u0Z;N29.i3C(29);var c9t=N29.B0m(1,1,15);N29.a3e(113);var F03=N29.B0m(4,19,9,8,272);N29.j07();u0Z=(Y6I + Math.random() * c9t) % F03 | ("0" | 0);N29.i3C(40);Y6I=Math.floor(N29.B0m(Y6I,16));return (Z7A == (2.95 >= +"665.89"?!"":"x")?u0Z:u0Z & 0x3 | "0x8" >> 32).toString(16);});return r0L;}Z7e=new Date();M2dNJ.j07();l7V=Z7e.getTime().toString(36);l7V+=Math.floor(Math.random() * Math.pow(36,+"2")).toString(36);return l7V.toUpperCase();};};E=y72=>{;};K=C1j=>{var p6G;p6G=C1j.CIQ;p6G.getHostName=function(z3c){M2dNJ.j07();try{return z3c.match(/:\/\/(.[^/]+)/)[1];}catch(A3i){return "";}};p6G.qs=function(I1B){var Z5Q,i0V,Q3$,W50;Z5Q={};if(!I1B){I1B=window.location.search.substring(1);}i0V=I1B.split(+"1362" === 360.29?7150 >= 82.97?(1165,7324) <= 4040?(0x1daa,"S"):0x187e:"c":"&");for(var I2d=0;I2d < i0V.length;I2d++){Q3$=i0V[I2d].indexOf(26.57 <= ("914.01" * 1,3110)?"=":"649.96" - 0);if(Q3$ > 0){W50=i0V[I2d].substring(0,Q3$);M2dNJ.a3e(4);Z5Q[W50]=i0V[I2d].substring(M2dNJ.k$A(1,Q3$));}else {W50=i0V[I2d];Z5Q[W50]=null;}}return Z5Q;};p6G.postAjax=function(n2u,Q9L,t1K,L0y,y2b){var S8A=M2dNJ;var U6X,a28,i9m,Q4N,B7R,V6_,D3K,E0u,h4t,r5B;U6X="Conte";function L$1(h9H){var a3D,X2b,Z7h,B17;a3D={};if(!n2u.responseHeaders){return;}X2b=h9H.getAllResponseHeaders();Z7h=X2b.split((6810,471) !== +"571.17"?(2700,+"5530") != 6104?6669 < 7060?"\n":7.87e+3:(0xe6d,2.32e+3):!1);for(var L4r=0;L4r < Z7h.length;L4r++){B17=Z7h[L4r].split(":");while(B17[1] && B17[1].charAt(0) == ((9031,"2382" >> 0) > (3255,9860)?(431.11,8.34e+2):" ")){B17[1]=B17[1].substring(1);}if(B17[+"0"] !== ""){a3D[B17.shift()]=B17.join(3743 === (841,7797)?1.99e+3:":");}}return a3D;}U6X+="nt";S8A.j07();U6X+="-Typ";U6X+="e";a28="P";a28+="OS";a28+="T";if(typeof n2u == "string"){n2u={url:n2u,payload:Q9L,cb:t1K,contentType:L0y,noEpoch:y2b,method:null,responseHeaders:![]};}i9m=n2u.url;Q4N=n2u.cb;B7R=n2u.payload;if(!Q4N){Q4N=function(){};}if(!n2u.ungovernable){if(p6G.Extras && p6G.Extras.RequestLimiter && p6G.Extras.RequestLimiter.hitRequestLimit(i9m)){Q4N(429,null,{});return;}}V6_=new XMLHttpRequest();if(!V6_){return !({});}D3K=new Date();if(!n2u.noEpoch){E0u="?ciqrando";E0u+="m=";if(i9m.indexOf(7130 <= (408.06,323.19)?("9980" | 8) <= "6070" >> 64?(!!0,!({})):2.45e+3:"?") == -1){i9m+=E0u + D3K.getTime();}else {i9m+="&ciqrandom=" + D3K.getTime();}}h4t=n2u.method;r5B=n2u.headers;if(!h4t){h4t=B7R?a28:"GET";}V6_.open(h4t,i9m,!!1);if(!n2u.contentType){n2u.contentType="application/x-www-form-urlencoded";}if(B7R){V6_.setRequestHeader(U6X,n2u.contentType);}if(r5B){for(var b3y in r5B){V6_.setRequestHeader(b3y,r5B[b3y]);}}if(n2u.timeout){V6_.timeout=n2u.timeout;;}V6_.ontimeout=function(){S8A.E0w();Q4N(408,null,{});};V6_.onload=function(){if(this.status === "0" << 0){this.status=9770 != +"288.73"?"0":!!({});}else if(!this.status){this.status=200;}S8A.j07();Q4N(this.status,this.responseText,L$1(this));};V6_.onerror=function(){S8A.j07();Q4N("0",null,{});};try{V6_.send(B7R);}catch(V__){Q4N("0",V__,{});}return !!({});};p6G.loadUI=function(a_L,F5L,C5F){var x1h=M2dNJ;var Z7Q,I24,K92,Y0v,L_4,l6V;Z7Q="\"";Z7Q+="]";if(!F5L || typeof F5L == "function"){C5F=F5L;F5L=document.body;}x1h.i3C(50);I24=document.querySelector(x1h.k$A(a_L,'iframe[original-url="',Z7Q));K92=function(){var D2q,D4C,p81,g8q,U5l;D2q=null;try{D2q=this.contentDocument;}catch(s2Q){return C5F(s2Q);}if(D2q && !D2q.title){D4C="d";D4C+="iv";p81=D2q.body.innerHTML;g8q=document.createElement(D4C);p6G.innerHTML(g8q,p81);for(var i$i=0;i$i < g8q.children.length;i$i++){U5l=g8q.children[i$i].cloneNode(!!({}));F5L.appendChild(U5l);}C5F(null);}else {C5F(new Error("iFrame not found or document has a title"));}};if(I24){Y0v=null;try{Y0v=I24.contentDocument;}catch(E7g){return C5F(E7g);}if(Y0v.readyState === "complete" && Y0v.location && Y0v.location.href !== "about:blank"){K92.call(I24);}else {I24.addEventListener("load",K92);}}else {L_4="loa";L_4+="d";l6V="ifr";l6V+="a";l6V+="me";I24=document.createElement(l6V);I24.setAttribute("original-url",a_L);x1h.a3e(114);var r5y=x1h.B0m(10,11,17,19);x1h.a3e(4);var J$F=x1h.B0m(11,4429);x1h.i3C(4);var P_u=x1h.k$A(11,714);x1h.i3C(115);var F$z=x1h.k$A(1446,12,5765,7);x1h.i3C(116);var V3G=x1h.B0m(1,433,3064,3,11);x1h.a3e(33);var B8u=x1h.k$A(256,14,5,12807);x1h.i3C(101);var w3Q=x1h.B0m(18,10,297,17535,3);x1h.a3e(117);var M1Q=x1h.B0m(2,549,10,17,4967);x1h.a3e(4);var r0O=x1h.k$A(7232,402);x1h.a3e(96);var t8F=x1h.k$A(1414,17,10,712,1375);x1h.a3e(118);var z0K=x1h.k$A(4,1379,197,1,9653);I24.src=a_L + (a_L.indexOf("?") === r5y?"?":(J$F,+"2840") === 287.24?P_u:(F$z,V3G) >= B8u?(w3Q,!!"1"):(M1Q,r0O) == t8F?(+"1.27e+3",z0K):"&") + p6G.uniqueID();I24.hidden=!!({});I24.addEventListener(L_4,K92);document.body.appendChild(I24);}};p6G.loadScript=function(j_W,k4r,g0V){var D1l=M2dNJ;D1l.j07();var t9N,O_y,N9F,P5G;if(!p6G.loadedScripts){p6G.loadedScripts={};}if(p6G.loadedScripts[j_W]){if(k4r){k4r();}return;}t9N=document.createElement("SCRIPT");if(g0V){O_y="use-";O_y+="credentials";t9N.type="module";t9N.crossOrigin=O_y;}else {t9N.async=!![];}t9N.onload=function(){p6G.loadedScripts[j_W]=!!({});if(k4r){k4r();}};N9F=j_W;if(N9F.indexOf((5100,1988) > 3280?(+"213",!""):"?") == -1){N9F=N9F + "?" + Date.now();}else {D1l.i3C(25);var I2U=D1l.k$A(5,220,896);D1l.i3C(1);var P0s=D1l.k$A(23650,25800);D1l.a3e(4);var r2l=D1l.k$A(670,37);D1l.i3C(29);var a8n=D1l.B0m(438,438,2629);D1l.i3C(119);var J$z=D1l.k$A(8,7652,1091,2,19);D1l.a3e(50);var x4b=D1l.B0m(8,9054,8);D1l.i3C(29);var F$f=D1l.B0m(2240,2240,6719);N9F=N9F + (I2U !== P0s?(r2l,a8n) < J$z?"&":x4b > F$f?833.24:(854.11,!1):(+"3.58e+3",907.35)) + Date.now();}t9N.src=N9F;P5G=document.getElementsByTagName("script")[0];if(!P5G){document.body.append(t9N);}else {P5G.parentNode.insertBefore(t9N,P5G.nextSibling);}};p6G.loadStylesheet=function(O$d,o5P){var w_r=M2dNJ;var v41,E73,U28,s8m,z$q,Y$h,G15,e2w,d0K;v41="l";v41+="i";v41+="n";v41+="k";E73="sty";E73+="l";E73+="esh";E73+="eet";U28=document.createElement("link");U28.rel=E73;s8m=1162378523;z$q=-+"736705629";Y$h=2;for(var x5J=+"1";w_r.b3_(x5J.toString(),x5J.toString().length,73981) !== s8m;x5J++){U28.type="text/css";U28.media="screen";Y$h+=2;}if(w_r.m7$(Y$h.toString(),Y$h.toString().length,87305) !== z$q){G15="te";G15+="xt/c";G15+="ss";U28.type=G15;U28.media="text/css";}w_r.a3e(34);var u3x=w_r.B0m(9,6,8875);w_r.j07();w_r.i3C(8);var t_T=w_r.k$A(30872,33236,10);w_r.a3e(1);var c2w=w_r.k$A(100422,106001);w_r.i3C(4);var p10=w_r.B0m(15,5025);w_r.i3C(7);var j2t=w_r.B0m(2342,28,12);w_r.a3e(1);var O$L=w_r.k$A(9,10);w_r.a3e(120);var Y5$=w_r.B0m(2320,13,2738,20,7);w_r.i3C(50);var X8A=w_r.k$A(8,5,51);w_r.a3e(66);var i7a=w_r.k$A(2042,2,17,10,1016);w_r.i3C(50);var H4s=w_r.B0m(16,52,972);w_r.a3e(78);var C_O=w_r.B0m(14,15,3768,2,508);w_r.i3C(33);var l6o=w_r.k$A(3734,8,19,563828);U28.href=O$d + (O$d.indexOf((+"668",u3x) >= (t_T,c2w)?"?":(p10,j2t) <= "6680" * O$L?(+"2.79e+3",Y5$):825.92) === -("1" << X8A)?"?":(i7a,289) <= (H4s,C_O)?"&":(949.57,+"5995") <= (146.93,l6o)?"0x20dc" ^ 0:(870.48,"0xafc" - 0)) + Date.now();U28.onload=function(){w_r.j07();if(this.loaded){return;}this.loaded=!0;if(o5P){o5P();}};e2w=document.getElementsByTagName(v41);w_r.i3C(8);var v5I=w_r.B0m(20,19,2);d0K=e2w[e2w.length - "1" * v5I];if(!d0K){document.head.append(U28);}else {d0K.parentNode.insertBefore(U28,d0K.nextSibling);}};p6G.loadWidget=function(t44,Z3T,y$b,U1S){var x3H=M2dNJ;if(!Z3T || typeof Z3T == "function"){y$b=Z3T;Z3T=document.body;}x3H.i3C(4);p6G.loadStylesheet(x3H.B0m(".css",t44),function(){var R6w;R6w=".h";R6w+="tml";x3H.i3C(4);p6G.loadUI(x3H.k$A(R6w,t44),Z3T,function(N_T){var v6S;v6S=".";v6S+="j";v6S+="s";if(N_T){y$b(N_T);}else {x3H.a3e(4);p6G.loadScript(x3H.B0m(v6S,t44),y$b,U1S);}});});};p6G.waitForPlugins=function(e86,O3f){var J0h,a2l,y9k,q3j;J0h=+"0";a2l=e86.length;if(!a2l){O3f();return;}for(var Y33=0;Y33 < a2l;Y33++){y9k="cq-" + e86[Y33];q3j=document.getElementsByTagName(y9k)[0];if(q3j && q3j.hasAttribute("loaded")){J0h++;}}if(a2l !== J0h){return setTimeout(function(){p6G.waitForPlugins(e86,O3f);},0);}O3f();};p6G.addInternalStylesheet=function(I9r,w6q = ""){var a6J,O7i,n3x,F4_;a6J="text";a6J+="/";a6J+="css";O7i="t";O7i+="y";O7i+="p";O7i+="e";n3x="s";n3x+="t";n3x+="yle";if(!I9r){return;}if(I9r.default){I9r=I9r.default;}if(typeof I9r !== "string"){return;}if(w6q && document.querySelector('style[path="' + w6q + '"]')){return;}F4_=document.createElement(n3x);F4_.setAttribute(O7i,a6J);F4_.setAttribute("path",w6q);F4_.innerText=I9r;document.head.appendChild(F4_);};};A=N$k=>{var u1N=M2dNJ;var h__;u1N.j07();h__=N$k.CIQ;h__.ChartEngine.prototype.registerHTMLElements=function(){var A9H,E3p,o7_,T4T,O9W,z_Z,u85,W2A;A9H=this.chart.container;for(var a2b in h__.ChartEngine.htmlControls){if(typeof this.chart[a2b] == "undefined" && typeof this.controls[a2b] == "undefined"){E3p="c";E3p+="har";E3p+="tControls";if(!this.allowZoom && a2b == E3p)continue;u1N.i3C(4);o7_=A9H.querySelector(u1N.B0m(a2b,("6170" >> 0,542.76) >= (8909,604.36)?+"2.74e+2":"."));if(o7_){this.chart[a2b]=o7_;this.controls[a2b]=o7_;}else {T4T=h__.ChartEngine.htmlControls[a2b];if(!T4T)continue;O9W=document.createElement("DIV");O9W.innerHTML=T4T;o7_=O9W.firstChild;A9H.appendChild(o7_);this.chart[a2b]=o7_;this.controls[a2b]=o7_;o7_.classList.add(a2b);}}}var {chartControls:q11, home:t6o}=this.controls;if(q11){z_Z=".s";z_Z+="tx-zoom";z_Z+="-ou";z_Z+="t";u85=q11.querySelector(".stx-zoom-in");W2A=q11.querySelector(z_Z);h__.safeClickTouch(u85,(function(O$a){return function(h8f){if(O$a.allowZoom){O$a.zoomIn(h8f);}u1N.E0w();h8f.stopPropagation();};})(this));h__.safeClickTouch(W2A,(function(N5B){return function(n7k){if(N5B.allowZoom){N5B.zoomOut(n7k);}n7k.stopPropagation();};})(this));if(!h__.touchDevice){this.makeModal(u85);this.makeModal(W2A);}}if(t6o){h__.safeClickTouch(t6o,(function(Z$G){return function(e7l){e7l.stopPropagation();if(!Z$G.isHistoricalMode()){Z$G.home({animate:!!({})});return;}delete Z$G.layout.range;u1N.j07();Z$G.loadChart(Z$G.chart.symbol,function(){u1N.j07();Z$G.home({animate:!1});});};})(this));if(!h__.touchDevice){this.makeModal(t6o);}}};h__.ChartEngine.prototype.home=function(h3E){var m$v,K3T,v1g,y6n,J40,O69,h_e,j$O;m$v="undefine";m$v+="d";this.swipe.amplitude=0;K3T=this.layout;if(typeof h3E != "object"){h3E={maintainWhitespace:h3E};}if(typeof h3E.maintainWhitespace == m$v){h3E.maintainWhitespace=!!1;}this.cancelTouchSingleClick=!![];if(!this.chart.dataSet || !this.chart.dataSet.length){this.draw();return;}this.micropixels=0;v1g=Math.floor(this.chart.width / K3T.candleWidth);function y6H(q4o,m0n,s81){return function(){u1N.j07();C08(q4o);m0n.scroll=s81;q4o.draw();};}for(var l5D in this.charts){y6n=this.charts[l5D];if(h3E.chart && h3E.chart != y6n)continue;J40=+"0";if(h3E.maintainWhitespace && this.preferences.whitespace >= 0){J40=this.preferences.whitespace;}if(h3E.whitespace || h3E.whitespace === 0){J40=h3E.whitespace;}O69=this.getLabelOffsetInPixels(y6n,K3T.chartType);if(O69 > J40){J40=O69;}h_e=Math.min(v1g,y6n.dataSet.length);if(this.chart.allowScrollPast){h_e=v1g;}this.micropixels=this.chart.width - h_e * K3T.candleWidth - J40;this.preferences.whitespace=J40;while(this.micropixels > K3T.candleWidth){h_e++;this.micropixels-=K3T.candleWidth;}while(this.micropixels < 0){h_e--;this.micropixels+=K3T.candleWidth;}this.micropixels-=K3T.candleWidth;h_e++;if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){u1N.a3e(0);var T1T=u1N.B0m(17,7,121);this.micropixels+=K3T.candleWidth / T1T;}if(h3E.animate){j$O=this;this.scrollTo(y6n,h_e,y6H(j$O,y6n,h_e));}else {y6n.scroll=h_e;C08(this);}}this.draw();function C08(T36){var s0_;for(var v4n in T36.panels){s0_=T36.panels[v4n].yaxisLHS.concat(T36.panels[v4n].yaxisRHS);for(var s9i=0;s9i < s0_.length;s9i++){T36.calculateYAxisMargins(s0_[s9i]);}}}};h__.ChartEngine.prototype.headsUpHR=function(){var c1n,F9R,A1Z,U_t,T9y;if(this.runPrepend("headsUpHR",arguments)){return;}c1n=this.currentPanel;if(!c1n){return;}F9R=c1n.chart;this.updateFloatHRLabel(c1n);A1Z=this.controls.floatDate;if(A1Z && !F9R.xAxis.noDraw){U_t=this.barFromPixel(this.cx);T9y=F9R.xaxis[U_t];if(T9y && T9y.DT){y7P(h__.displayableDate(this,F9R,T9y.DT));}else if(T9y && T9y.index){y7P(T9y.index);}else {y7P("");;}}this.runAppend("headsUpHR",arguments);u1N.j07();function y7P(R60){h__.efficientDOMUpdate(A1Z,"innerHTML",R60);}};h__.ChartEngine.prototype.modalBegin=function(){this.openDialog="modal";u1N.j07();this.undisplayCrosshairs();};h__.ChartEngine.prototype.modalEnd=function(){this.cancelTouchSingleClick=!"";this.openDialog="";this.doDisplayCrosshairs();};h__.ChartEngine.prototype.makeModal=function(I$G){u1N.j07();var r2r;r2r=this;I$G.onmouseover=function(g8U){r2r.modalBegin();};I$G.onmouseout=function(L4M){r2r.modalEnd();};};h__.ChartEngine.prototype.updateChartAccessories=function(){var g6i,d7U,g2p,o_V,W55,J4j,r7x,j4w;if(this.accessoryTimer !== null){clearTimeout(this.accessoryTimer);}if(!h__.ChartEngine.drawingLine && h__.touchDevice){if(new Date().getTime() - this.lastAccessoryUpdate < "100" - 0){this.accessoryTimer=setTimeout((function(G3q){return function(){u1N.E0w();G3q.updateChartAccessories();};})(this),+"10");return;}}if(!this.chart.dataSet){return;}if(this.runPrepend("updateChartAccessories",arguments)){return;}this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();g6i=this.controls.floatDate;if(g6i){d7U=this.currentPanel;if(!d7U){d7U=this.chart.panel;}if(d7U){g2p="bot";g2p+="t";g2p+="om";o_V="p";o_V+="x";W55=d7U.chart;J4j=this.xAxisAsFooter === !""?0:this.chart.canvasHeight - d7U.chart.bottom;u1N.i3C(4);var n0w=u1N.B0m(2,0);r7x=g6i.offsetWidth / n0w - 0.5;j4w=this.pixelFromTick(this.crosshairTick,W55) - r7x;if(j4w < 0){u1N.i3C(82);j4w=u1N.B0m(32,"0");}else if(j4w > this.width - 2 * r7x - ("1" - 0)){u1N.a3e(21);var E8Y=u1N.k$A(0,9,11,19,19);j4w=this.width - E8Y * r7x - ("1" ^ 0);}h__.efficientDOMUpdate(g6i.style,"left",j4w + o_V);h__.efficientDOMUpdate(g6i.style,g2p,J4j + "px");}}this.positionCrosshairsAtPointer();this.headsUpHR();this.runAppend("updateChartAccessories",arguments);};h__.ChartEngine.prototype.positionSticky=function(M9a){var y5N,z77,O9b,W1Y;y5N="p";y5N+="x";z77="p";z77+="x";O9b=Math.max(this.cy - M9a.offsetHeight - ("60" >> 32),0);W1Y=Math.min(this.chart.canvasWidth - (this.cx - 50),this.chart.canvasWidth - M9a.offsetWidth);u1N.i3C(4);M9a.style.top=u1N.B0m(z77,O9b);u1N.i3C(4);M9a.style.right=u1N.B0m(y5N,W1Y);};h__.ChartEngine.prototype.displaySticky=function(D4O){var r9i,E1E,x9i,q6U,Z7m,g_Y,t7c,S2t,c3w,l1u,E5W,g__,t1Z,I70,C7Z,U1L,N92,e8t,S_G,m0K,U9F,R84,M17,n9h,H9M,c9Y,w6f,b_Z,x76,J0z,U63,H3a;r9i=".s";r9i+="tickyLongPressTex";r9i+="t";E1E=this.controls.mSticky;if(!E1E){return;}x9i=E1E.querySelector(".mStickyInterior");if(!x9i){return;}q6U=E1E.querySelector(".overlayTrashCan");Z7m=E1E.querySelector(".overlayEdit");g_Y=E1E.querySelector(".mouseDeleteInstructions");t7c=E1E.querySelector(r9i);g_Y.classList.remove("no_edit");if(!D4O || typeof D4O != "object"){D4O={message:arguments[0],backgroundColor:arguments[1],forceShow:arguments[2],noDelete:arguments[3],type:arguments[4]};}S2t=D4O.message;c3w=D4O.backgroundColor;l1u=D4O.forceShow;E5W=D4O.noDelete;g__=D4O.noEdit;t1Z=D4O.type;if(!l1u && !S2t){I70="n";I70+="on";I70+="e";x9i.innerHTML="";E1E.style.display="none";if(q6U){q6U.style.display="none";}if(Z7m){Z7m.style.display="none";}if(g_Y){g_Y.style.display=I70;}if(t7c){t7c.style.display="none";}}else {C7Z=".mStickyRig";C7Z+="htC";C7Z+="lick";if(!S2t){S2t="";}U1L=this.defaultColor;if(c3w == "auto"){c3w=U1L;}if(l1u && !S2t){N92="n";N92+="one";x9i.style.backgroundColor="";x9i.style.color="";x9i.style.display=N92;}else if(c3w){e8t="inl";e8t+="ine-blo";e8t+="ck";x9i.style.backgroundColor=c3w;x9i.style.color=h__.isTransparent(c3w)?U1L:h__.chooseForegroundColor(c3w);x9i.style.display=e8t;}else {x9i.style.backgroundColor="";x9i.style.color="";x9i.style.display="inline-block";}x9i.innerHTML=S2t;S_G=E1E.querySelector(C7Z);S_G.className="mStickyRightClick";if(t1Z){u1N.a3e(4);S_G.classList.add(u1N.B0m(t1Z,"rightclick_"));}S_G.style.display="";E1E.style.display="inline-block";m0K=this.highlightedDraggable;if(!m0K || m0K && m0K.undraggable && m0K.undraggable(this)){U9F="n";U9F+="o";U9F+="ne";t7c.style.display=U9F;}if(E5W || this.bypassRightClick === !!"1" || this.bypassRightClick[t1Z]){S_G.style.display="none";}else if(this.highlightViaTap || this.touches.length){R84="h";R84+="i";R84+="de";M17="rem";M17+="o";M17+="ve";n9h="n";n9h+="o";n9h+="ne";if(q6U){q6U.style.display="inline-block";}if(Z7m && !g__){Z7m.style.display="inline-block";}if(g_Y){g_Y.style.display="none";}if(t7c){t7c.style.display=n9h;}E1E.classList[S2t === ""?"add":M17](R84);}else {if(g__){g_Y.classList.add("no_edit");}if(g_Y){g_Y.style.display="block";}if(t7c){H9M=-1311215396;c9Y=-70217861;w6f=2;for(var O_j=1;u1N.b3_(O_j.toString(),O_j.toString().length,85165) !== H9M;O_j++){t7c.style.display="none";b_Z=this.preferences.dragging;w6f+=2;}if(u1N.m7$(w6f.toString(),w6f.toString().length,55959) !== c9Y){t7c.style.display="";b_Z=this.preferences.dragging;}if(b_Z && D4O.panel && !D4O.panel.noDrag){x76="bloc";x76+="k";J0z="ser";J0z+="i";J0z+="es";if((b_Z === !![] || b_Z.study) && t1Z == "study"){t7c.style.display="block";}else if((b_Z === !!"1" || b_Z.series) && t1Z == J0z){t7c.style.display=x76;}}}}U63=t1Z || "default";E1E.setAttribute("cq-sticky-type",U63);H3a=D4O.positioner || this.positionSticky;H3a.call(this,E1E);}};h__.ChartEngine.prototype.displayNotification=function(u$d,y0E,W69 = {}){var j4q,Q0B,R41,f9S,a5_,B3J;j4q=".me";j4q+="ssage";if(!this.controls.notificationTray){return;}var {callback:N2W, dismissalListeners:s5$}=W69;Q0B=this.controls.notificationTray;R41=Q0B.querySelector("template").content.cloneNode(!!"1");f9S=R41.firstElementChild;f9S.className=u$d;f9S.querySelector(j4q).textContent=y0E;if(N2W){a5_="t";a5_+="o";a5_+="uchend";B3J=window.PointerEvent?"pointerup":a5_;f9S.handler=f9S.addEventListener(B3J,N2W);}if(s5$){f9S.listeners={};s5$.forEach(D$e=>{u1N.E0w();f9S.listeners[u$d]=this.addEventListener(D$e.type,D$e.callback);});}this.makeModal(f9S);u1N.E0w();Q0B.appendChild(f9S);};h__.ChartEngine.prototype.removeNotification=function(t0W){var J9M,b45;if(!this.controls.notificationTray){return;}J9M=this.controls.notificationTray;b45=J9M.querySelector(`.${t0W}`);if(b45){if(b45.handler){b45.removeEventListener(b45.handler);}if(b45.listeners){for(var s5Y in b45.listeners){this.removeEventListener(b45.listeners[s5Y]);}}this.modalEnd();J9M.removeChild(b45);}};h__.ChartEngine.prototype.setMeasure=function(y1i,g$f,E_l,y7H,S8n,M$P){var m__,F4y,g36,u0s,J1z,G8Z,q$K,b6D,i5l,N$E,e$5,D8F,b4S,z6T,w3K,Y75;m__=".";m__+="mMeasu";m__+="r";m__+="e";F4y="s";F4y+="e";F4y+="tMeasure";if(this.runPrepend(F4y,arguments)){return;}g36=(this.drawingContainer || document).querySelector(m__);u0s="";if(!y1i && y1i !== 0){J1z=-2113020364;G8Z=-+"1060955309";u1N.a3e(38);q$K=u1N.k$A("2",1);for(var R5d=1;u1N.m7$(R5d.toString(),R5d.toString().length,64479) !== J1z;R5d++){if(~this.anyHighlighted || this.currentVectorParameters.vectorType !== ""){this.clearMeasure();}q$K+=2;}if(u1N.m7$(q$K.toString(),q$K.toString().length,+"75906") !== G8Z){if(!this.anyHighlighted && this.currentVectorParameters.vectorType === ""){this.clearMeasure();}}}else {if(g$f !== !!0){b6D=Math.round(Math.abs(y1i - g$f) * this.chart.roundit) / this.chart.roundit;b6D=b6D.toFixed(this.chart.yAxis.printDecimalPlaces);if(this.internationalizer){u0s+=this.internationalizer.numbers.format(b6D);}else {u0s+=b6D;}if(y1i > 0 && g$f > 0){N$E=" ";N$E+="(";u1N.a3e(42);i5l=u1N.B0m(y1i,y1i,g$f);if(Math.abs(i5l) > 0.1){u1N.a3e(38);i5l=Math.round(u1N.B0m(i5l,100));}else if(Math.abs(i5l) > 0.01){u1N.i3C(67);var W1E=u1N.k$A(19,118981,15,8000);i5l=Math.round(i5l * W1E) / ("10" >> 0);}else {i5l=Math.round(i5l * +"10000") / +"100";}if(this.internationalizer){u1N.i3C(121);i5l=this.internationalizer.percent.format(u1N.B0m("100",i5l,32));}else {u1N.a3e(4);i5l=u1N.B0m("%",i5l);}u1N.i3C(50);u0s+=u1N.B0m(i5l,N$E,")");}}if(y7H !== ![]){u1N.a3e(1);e$5=Math.abs(u1N.k$A(E_l,y7H));u1N.i3C(5);var A7C=u1N.B0m(12,13);e$5=Math.round(e$5) + A7C;D8F=this.translateIf("Bars");u1N.i3C(115);u0s+=u1N.k$A((2032,938.7) <= 43.63?("Z",0x1638):9020 === +"670.36"?(4.05e+3,"l"):1615 >= 8953?("G",!({})):" ",e$5,D8F," ");}if(g36){g36.innerHTML=u0s;}}if(this.activeDrawing){return;}g36=this.controls.mSticky;if(g36){b4S=".m";b4S+="StickyInter";b4S+="ior";z6T=g36.querySelector(b4S);if(S8n){w3K="a";w3K+="d";w3K+="d";Y75="i";Y75+="nlin";Y75+="e-bloc";Y75+="k";g36.style.display="inline-block";z6T.style.display=Y75;if(y1i || y1i === 0){z6T.innerHTML=u0s;}g36.classList[u0s === ""?w3K:"remove"]("hide");this.positionSticky(g36);}else {g36.style.display="none";z6T.innerHTML="";}}this.runAppend("setMeasure",arguments);};h__.ChartEngine.prototype.clearMeasure=function(){var I0X,L9Z;I0X=".mMeas";I0X+="ur";I0X+="e";L9Z=(this.drawingContainer || document).querySelector(I0X);if(L9Z){L9Z.innerHTML="";}};h__.ChartEngine.prototype.zoomSet=function(W6Z,X1g){var x61,z9V,X8v,Q32,I4j,v_M,O2A;W6Z=this.constrainCandleWidth(W6Z);if(this.chart.tempCanvas.style.display != "none"){h__.clearCanvas(this.chart.tempCanvas,this);}x61=this.mainSeriesRenderer || ({});if(!x61.params || !x61.params.volume){if(this.preferences.zoomAtCurrentMousePosition && this.zoomInitiatedByMouseWheel && this.crosshairTick < X1g.dataSet.length){z9V=this.crosshairTick || this.tickFromPixel(this.cx,X1g);}else if(this.isHome()){u1N.i3C(75);var D__=u1N.k$A(1,6,6,8,3);z9V=X1g.dataSet.length - D__;}else if(this.chart.scroll > this.chart.dataSet.length){z9V=0;}else if(this.grabMode == "zoom-x"){z9V=this.tickFromPixel(this.chart.width,X1g);}else {X8v=-241988618;Q32=-1724057995;I4j=+"2";for(var N$X=1;u1N.m7$(N$X.toString(),N$X.toString().length,"37436" - 0) !== X8v;N$X++){z9V=this.tickFromPixel(this.chart.width % 9,X1g);I4j+=2;}if(u1N.b3_(I4j.toString(),I4j.toString().length,41380) !== Q32){z9V=this.tickFromPixel(this.chart.width / +"2",X1g);}}if(this.animations.zoom.hasCompleted){this.zoomInitiatedByMouseWheel=!({});}u1N.a3e(37);var J_E=u1N.k$A(11,6,5,13);v_M=X1g.dataSet.length - J_E - z9V;O2A=X1g.scroll;u1N.i3C(5);var m7i=u1N.B0m(6,7);X1g.scroll=Math.round((this.pixelFromTick(z9V,X1g) - X1g.left) / W6Z) + m7i + v_M;this.micropixels+=(O2A - v_M) * this.layout.candleWidth - (X1g.scroll - v_M) * W6Z;}this.setCandleWidth(W6Z);X1g.spanLock=![];this.draw();this.doDisplayCrosshairs();this.updateChartAccessories();};};G=w8L=>{var r_p=M2dNJ;var J0a;J0a=w8L.CIQ;r_p.j07();J0a.ChartEngine.prototype.currentBaseline=null;J0a.ChartEngine.prototype.baselineHelper=null;J0a.ChartEngine.helpersToRegister.push(function(H3z){r_p.E0w();H3z.baselineHelper=new Map();});J0a.ChartEngine.prototype.registerBaselineToHelper=function(M$k){var b8b,i6X,u7f;if(!M$k.params.baseline){return;}function H41(j3f){var F5$,Q9J;F5$="cq-baseline-hand";F5$+="le";j3f=j3f.replace(" ","265" >> 64 < 8987?"_":("F",0x13b5));Q9J=document.createElement(F5$);Q9J.classList.add("stx-baseline-handle",j3f);b8b.container.append(Q9J);b8b.controls[`${j3f} cq-baseline-handle`]=Q9J;return Q9J;}var {baselineHelper:l9g}=this;r_p.j07();b8b=this;if(!l9g.has(M$k)){i6X="_main_seri";i6X+="es";var {name:M79}=M$k.params;u7f=this.controls.baselineHandle;l9g.set(M$k,{styleCache:null,display:![],handle:M79 === i6X && u7f?u7f:H41(M79)});}};J0a.ChartEngine.prototype.removeBaselineFromHelper=function(m5Z){var A4N,W5u,Z0R;var {baselineHelper:u$E}=this;if(u$E.has(m5Z)){A4N="_main";A4N+="_series";W5u=m5Z.params.name.replace(9661 >= 9720?"O":124.47 <= (4860,638.94)?" ":398 > +"2120"?(39.94,3.12e+2):("r","R"),764.27 < (6232,"4970" >> 0)?6350 !== (+"226.98",785)?"_":+"616.12":(7.43e+3,"N"));if(W5u !== A4N){Z0R=u$E.get(m5Z).handle;delete this.controls[`${W5u} cq-baseline-handle`];this.container.removeChild(Z0R);}u$E.delete(m5Z);}};J0a.ChartEngine.prototype.findBaselineHandle=function(x2x,P6w){for(var b0y of this.baselineHelper){var [y$R,q0_]=b0y;var {handle:R5U}=q0_;if(x2x.target === R5U || x2x.composedPath && x2x.composedPath().includes(R5U)){if(P6w){this.repositioningBaseline={lastDraw:Date.now(),handle:R5U,renderer:y$R};R5U.classList.add("stx-grab");}this.currentBaseline=y$R;return !!1;}}r_p.j07();return ![];};J0a.ChartEngine.prototype.setBaselines=function(I12){var y75;if(!I12){I12=this.chart;}y75=this;var {baselineHelper:T_q}=this;function S2r(E8t,X1C){var F30,n3y,A$i,S0g,G2H,q2N,q53;F30="t";F30+="i";F30+="c";F30+="k";var {dataSegment:u_1, dataSet:v1f, defaultPlotField:b5_}=I12;n3y=b5_;if(!X1C){n3y=E8t;}A$i=y75.getFirstLastDataRecord(u_1,F30).tick;while(!""){S0g=v1f[A$i];if(S0g){G2H="Clo";G2H+="se";if(!X1C || n3y != G2H){r_p.i3C(122);q2N=v1f[r_p.B0m(A$i,"1",0)];if(q2N && (q2N[n3y] || q2N[n3y] === ("0" | 0))){q53=q2N[n3y];return typeof q53 === "object"?q53[b5_]:q53;}}else if(S0g.iqPrevClose || S0g.iqPrevClose === 0){return S0g.iqPrevClose;}}A$i--;if(A$i < ("0" | 0))break;}}T_q.forEach(function(f1N,P$E){var P8g,f_S,J$G,K3F;var {baseline:y_4}=P$E.params;r_p.i3C(123);P8g=r_p.k$A(y_4,!"");if(P8g){y_4=I12.baseline;}var {defaultLevel:p1N, userLevel:D7P}=y_4;f_S=P$E.getYAxis(y75);if(!f_S){return;}J$G=y75.getYAxisBaselineRenderer(f_S);K3F=J$G && J$G != y75.mainSeriesRenderer && J$G.seriesParams.length && J$G.seriesParams["0" - 0].id;y_4.actualLevel=D7P || D7P === 0?D7P:p1N;if(!y_4.actualLevel && y_4.actualLevel !== +"0"){y_4.actualLevel=S2r(K3F,P8g);}f1N.display=J$G === P$E?!0:!!0;T_q.set(P$E,f1N);});};J0a.ChartEngine.prototype.setBaselineUserLevel=function(){var J1h,Q5i,l$X;var {chart:Z6N, currentPanel:y2$}=this;var {lastDraw:h0g, renderer:J$a}=this.repositioningBaseline;if(J$a.params.panel != y2$.name){return;}var {baseline:N3V}=Z6N;J1h=typeof J$a.params.baseline === "object"?J$a.params.baseline:N3V;Q5i=J$a.getYAxis(this);l$X=this.valueFromPixel(this.backOutY(J0a.ChartEngine.crosshairY),y2$,Q5i);J1h.userLevel=this.adjustIfNecessary(y2$,this.crosshairTick,l$X);if(Date.now() - h0g > 100){this.draw();this.repositioningBaseline.lastDraw=Date.now();}};J0a.ChartEngine.prototype.setBaselineMinMax=function(R8c,x2n){var F0n,V77,k6w;r_p.E0w();var {baselineHelper:Y9P, chart:K56, repositioningBaseline:B$z}=this;var {baseline:g_y, seriesRenderers:S_k}=K56;F0n=K56.transformFunc && x2n === K56.panel.yAxis;V77=x2n.renderers.find(i_S=>{r_p.E0w();return Y9P.get(S_k[i_S]);});if(!V77){return R8c;}var {baseline:t4N, type:u9R}=S_k[V77].params;if(u9R === "mountain"){return R8c;}t4N=typeof t4N === "object"?t4N:g_y;var {actualLevel:W4Y}=t4N;if(W4Y || W4Y === +"0"){if(F0n){W4Y=K56.transformFunc(this,K56,W4Y);}k6w=Math.max(W4Y - R8c[0],R8c[1] - W4Y);R8c[0]=B$z?x2n.lowValue:W4Y - k6w;R8c[1]=B$z?x2n.highValue:W4Y + k6w;}return R8c;};J0a.ChartEngine.prototype.positionBaselineHandle=function(E5g){var M7m,h0o,A5_,m6I,N9O,t7W,a8f,W2w,V9u,B0F,I62,f$8,t7Y,x6u,N3e;M7m="s";M7m+="t";M7m+="x-g";M7m+="rab";if(!this.manageTouchAndMouse){return;}var {baselineHelper:N4E, chart:J6O, panels:L4m}=this;var {baseline:V3D, panel:q9H}=E5g.params;h0o=E5g.params.yAxis || E5g.getYAxis(this);var {display:g1o, handle:D_b, styleCache:N9r}=N4E.get(E5g);if(V3D === !!({})){V3D=J6O.baseline;}if(V3D.userLevel === !!0 || !g1o){D_b.style.display="none";return;}A5_=L4m[q9H];m6I=D_b.classList.contains(M7m);N9O="block";t7W=V3D.actualLevel;if(J6O.transformFunc){t7W=J6O.transformFunc(this,J6O,t7W);}if(t7W > h0o.high){t7W=h0o.high;if(!m6I){N9O="none";}}else if(t7W < h0o.low){t7W=h0o.low;if(!m6I){N9O="none";}}if(J6O.untransformFunc){t7W=J6O.untransformFunc(this,J6O,t7W);}a8f=this.pixelFromPrice(t7W,A5_,h0o);if(!N9r){N9r=getComputedStyle(D_b);}W2w=J0a.stripPX(N9r.width);r_p.a3e(124);var V6A=r_p.B0m(41,7,15,9,5);V9u=`${a8f - J0a.stripPX(N9r.height) / V6A}px`;I62=this.baselineHandleBuffer || +"2";r_p.a3e(125);var I0s=r_p.B0m(17,5,227,19);f$8=A5_.yaxisRHS.indexOf(h0o) + I0s;if(f$8){t7Y=f$8 === 1?I62:I62 * f$8;B0F=`${J6O.right - W2w * f$8 - t7Y}px`;}else {r_p.a3e(1);var x8w=r_p.k$A(18,19);x6u=A5_.yaxisLHS.slice(0).reverse().indexOf(h0o) + x8w;N3e=x6u === 1?I62:I62 * x6u;r_p.a3e(4);B0F=`${J6O.left + W2w * x6u + N3e - W2w}${r_p.B0m("x","p")}`;}Object.assign(D_b.style,{display:N9O,top:V9u,left:B0F});};J0a.ChartEngine.prototype.getYAxisBaselineRenderer=function(x$m){var J$Y;if(!x$m.renderers.length){return null;}var {baselineHelper:J6m, chart:Q6p}=this;J$Y=x$m.renderers.find(p9X=>{return J6m.get(Q6p.seriesRenderers[p9X]);});if(!J$Y){return null;}return Q6p.seriesRenderers[J$Y];};J0a.ChartEngine.prototype.getYAxisBaseline=function(r6w){var Y9y,h5e;Y9y="o";r_p.j07();Y9y+="b";Y9y+="ject";var {baseline:a42}=this.chart;h5e=this.getYAxisBaselineRenderer(r6w);if(!h5e){return a42;}var {baseline:L5g}=h5e.params;return typeof L5g === Y9y?L5g:a42;};};O=a6K=>{var b8e,T1Z;b8e="Cl";b8e+="o";b8e+="s";b8e+="e";T1Z=a6K.CIQ;T1Z.ChartEngine.Chart=function(){this.xAxis=new T1Z.ChartEngine.XAxis();this.yAxis=new T1Z.ChartEngine.YAxis();this.symbolObject={symbol:null};this.series={};this.seriesRenderers={};this.xaxis=[];this.state={};this.endPoints={};this.defaultChartStyleConfig={};this.baseline=T1Z.clone(this.baseline);this.panel=undefined;};T1Z.extend(T1Z.ChartEngine.Chart.prototype,{symbol:null,symbolObject:{symbol:null},symbolDisplay:null,series:{},seriesRenderers:{},scroll:0,isComparison:!({}),forcePercentComparison:!!"1",maxTicks:0,tension:null,currentMarketData:{},masterData:null,dataSet:null,scrubbed:null,dataSegment:null,segmentImage:null,baseline:{includeInDataSegment:!({}),defaultLevel:null,userLevel:null,actualLevel:null},xAxis:null,xaxis:[],xaxisFactor:+"30",decimalPlaces:2,dynamicYAxis:!!1,roundit:100,breakpoint:null,legendRenderer:T1Z.drawLegend,customChart:null,yaxisPaddingRight:null,yaxisPaddingLeft:null,tickCache:{},allowScrollPast:!!1,allowScrollFuture:!!1,whiteSpaceFutureTicks:+"0",hideDrawings:!1,defaultPlotField:b8e,defaultChartStyleConfig:{},lockScroll:!({}),includeOverlaysInMinMax:!!1,gaplines:null,lineStyle:null,lineApproximation:!0,highLowBars:![],standaloneBars:!({}),barsHaveWidth:![],calculateTradingDecimalPlaces:T1Z.calculateTradingDecimalPlaces},!!({}));};H=s0o=>{var M7t,x40;M7t="d";M7t+="a";M7t+="taSe";M7t+="t";x40=s0o.CIQ;x40.ChartEngine.prototype.resolveY=function(J5Z){return this.top + J5Z;};x40.ChartEngine.prototype.resolveX=function(K0F){return this.left + K0F;};x40.ChartEngine.prototype.backOutY=function(u4U){return u4U - this.top;};x40.ChartEngine.prototype.backOutX=function(d85){M2dNJ.j07();return d85 - this.left;};x40.ChartEngine.prototype.dateFromTick=function(a0o,X6s,t6c,M$z = "dataSet"){var d0P,k1H,i9F,L4F,Q$C,q2w;if(!X6s){X6s=this.chart;}d0P=X6s[M$z];k1H=d0P.length;q2w=!1;if(k1H === 0){d0P[0]={};d0P[0].DT=new Date();k1H=d0P.length;q2w=!!({});}if(a0o < "0" >> 32){L4F=this.standardMarketIterator(d0P["0" | 0].DT);if(L4F){i9F=L4F.previous(Math.abs(a0o));}else {i9F=d0P[0].DT;}}else if(a0o >= k1H){L4F=this.standardMarketIterator(d0P[k1H - 1].DT);if(L4F){M2dNJ.i3C(126);i9F=L4F.next(M2dNJ.k$A(k1H,a0o,1));}else {i9F=d0P[k1H - ("1" - 0)].DT;}}else {i9F=d0P[a0o].DT;}M2dNJ.E0w();if(t6c){Q$C=new Date(i9F.getTime());}else {Q$C=x40.yyyymmddhhmmssmmm(i9F).substr(0,12);}if(q2w){delete d0P[0].DT;}return Q$C;};x40.ChartEngine.prototype.tickFromDate=function(Q9t,c8T,q3r,U83,s9N = M7t){var x_H=M2dNJ;var Z0T,w0t,s$K,I6n,S0P,S0q,a4N,n_s,C5l,n09,L2c,Q6P,j6z,n_F,p4o,g34;if(!c8T){c8T=this.chart;}Z0T=c8T[s9N];if(!(Z0T && Z0T.length)){return +"0";}x_H.j07();if(!q3r){q3r=0;}w0t=Q9t.constructor == Date?Q9t:x40.strToDateTime(Q9t);if(!x40.ChartEngine.isDailyInterval(this.layout.interval)){w0t.setMinutes(w0t.getMinutes() + q3r);}s$K=w0t.getTime();if(!c8T.tickCache[s9N]){c8T.tickCache[s9N]={};}I6n=c8T.tickCache[s9N][s$K];if(I6n || I6n === 0){return U83?Math.ceil(I6n):Math.floor(I6n);}S0P=Z0T[0].DT;S0q=Z0T[Z0T.length - 1].DT;if(w0t >= S0P && w0t <= S0q){a4N=0;n_s=Z0T.length;C5l=0;while(++C5l < +"100"){x_H.i3C(43);n09=Math.floor(x_H.B0m(a4N,2,n_s));L2c=Z0T[n09].DT;if(+L2c == +w0t){c8T.tickCache[s9N][s$K]=n09;return n09;}if(L2c < w0t){a4N=n09;}if(L2c > w0t){if(Z0T[n09 - 1].DT < w0t){x_H.a3e(1);c8T.tickCache[s9N][s$K]=x_H.k$A(0.5,n09);return U83?n09:n09 - 1;}if(+Z0T[n09 - +"1"].DT == +w0t){x_H.a3e(1);c8T.tickCache[s9N][s$K]=x_H.k$A(1,n09);x_H.i3C(1);return x_H.B0m(1,n09);}n_s=n09;}}if(C5l >= 100){Q6P="!!!Warning: tickFromDate";Q6P+="() did not find match.";console.log(Q6P);return Z0T.length;}}x_H.a3e(87);j6z=x_H.B0m(w0t,S0P);n_F=j6z?S0P:S0q;p4o=this.standardMarketIterator(n_F);g34=p4o?p4o.futureTick({end:w0t}):0;I6n=j6z?g34 * -1:Z0T.length - 1 + g34;c8T.tickCache[s9N][s$K]=I6n;return I6n;};x40.ChartEngine.prototype.pixelFromBar=function(U2r,b4N){var V0A,Q$l;M2dNJ.E0w();if(!b4N){b4N=this.chart;}V0A=0;Q$l=this.chart.segmentImage;if(Q$l && Q$l[U2r] && Q$l[U2r].leftOffset){V0A=Q$l[U2r].leftOffset;}else {V0A=(U2r + 0.5) * this.layout.candleWidth;}M2dNJ.a3e(127);var b6m=M2dNJ.k$A(7,0,4,19,13);V0A=b4N.panel.left + Math.floor(V0A + this.micropixels) - b6m;return V0A;};x40.ChartEngine.prototype.barFromPixel=function(k4H,o8w){var y5Z=M2dNJ;var N9p,t5d,I3F,W4z,h6u,z0c,Q5o,s2g,T5R,z2I,D7g,S$G,D$H;if(!o8w){o8w=this.chart;}N9p=this.chart.segmentImage;t5d=this.micropixels;I3F=this.layout.candleWidth;if(N9p){W4z=k4H - o8w.panel.left - t5d;h6u=2;Q5o=N9p.length;y5Z.i3C(40);s2g=Math.round(y5Z.k$A(Q5o,h6u));y5Z.a3e(76);var R2d=y5Z.k$A(6,2,2);y5Z.a3e(93);var S_S=y5Z.k$A(13,0,1,13,2);y5Z.i3C(1);var p1e=y5Z.B0m(8,10);D7g=N9p[Q5o - R2d].leftOffset + N9p[Q5o - S_S].candleWidth / p1e;if(W4z > D7g){return Q5o + Math.floor((k4H - D7g - o8w.panel.left - t5d) / I3F);}for(var b1D=1;b1D < Q5o;b1D++){h6u*=2;z0c=N9p[s2g];if(!z0c)break;T5R=z0c.leftOffset;y5Z.i3C(8);var e_D=y5Z.k$A(24,7,19);z2I=z0c.candleWidth / e_D;y5Z.a3e(1);S$G=y5Z.B0m(z2I,T5R);y5Z.a3e(4);D$H=y5Z.k$A(z2I,T5R);if(s2g === "0" * 1 || W4z >= S$G && W4z < D$H)break;else if(W4z < S$G){s2g-=Math.max(1,Math.round(Q5o / h6u));}else {s2g+=Math.max(1,Math.round(Q5o / h6u));}s2g=Math.max(0,Math.min(Q5o - "1" * 1,s2g));}if(!N9p[s2g]){for(b1D=0;b1D < Q5o;b1D++){z0c=N9p[b1D];if(!z0c)continue;T5R=z0c.leftOffset;z2I=z0c.candleWidth / +"2";if(W4z < T5R - z2I){y5Z.i3C(1);return Math.max(0,y5Z.k$A(1,b1D));}else if(W4z < T5R + z2I){return b1D;}else if(W4z >= T5R + z2I){y5Z.a3e(4);return y5Z.B0m(1,b1D);}}}return s2g;}return Math.floor((k4H - o8w.panel.left - t5d) / I3F);};x40.ChartEngine.prototype.tickFromPixel=function(o5J,F6y){var W5C;if(!F6y){F6y=this.chart;}W5C=F6y.dataSet.length - F6y.scroll;M2dNJ.E0w();if(F6y.segmentImage){W5C+=this.barFromPixel(o5J,F6y);}else {W5C+=Math.floor((o5J - F6y.panel.left - this.micropixels) / this.layout.candleWidth);}return W5C;};x40.ChartEngine.prototype.pixelFromTick=function(E1z,e2a){var l2_=M2dNJ;var E3G,w7k,q4U,J6l,g5b,i2P,S3w,w8o,T6x,l81,b_P;if(!e2a){e2a=this.chart;}E3G=e2a.dataSegment;w7k=e2a.dataSet;q4U=e2a.segmentImage;J6l=this.micropixels;g5b=E3G?E3G.length:0;i2P=e2a.panel;S3w=e2a.scroll;w8o=E1z - w7k.length + S3w;T6x=g5b?E3G[w8o]:null;if(q4U){T6x=q4U[w8o];}l2_.E0w();if(T6x && T6x.leftOffset){return i2P.left + Math.floor(T6x.leftOffset + J6l);;}l81=0;b_P=0;T6x=g5b?E3G[g5b - ("1" >> 64)]:null;if(q4U){l2_.i3C(1);T6x=q4U[l2_.k$A(1,g5b)];}if(T6x && T6x.leftOffset){if(g5b < E1z - w7k.length + S3w){l2_.i3C(1);var z1h=l2_.B0m(11,13);l81=T6x.leftOffset - T6x.candleWidth / z1h;b_P=g5b;}}return l81 + i2P.left + Math.floor((E1z - b_P - w7k.length + S3w + 0.5) * this.layout.candleWidth + J6l);};x40.ChartEngine.prototype.pixelFromDate=function(A1G,H$$,I2v,N9w){return this.pixelFromTick(this.tickFromDate(A1G,H$$,I2v,N9w),H$$);};x40.ChartEngine.prototype.transformedPriceFromPixel=function(B4b,X1p,b9W){var D0F,x26,Q7U;M2dNJ.E0w();if(!X1p){X1p=this.chart.panel;}D0F=b9W?b9W:X1p.yAxis;B4b=D0F.bottom - B4b;if(D0F.semiLog){Q7U=B4b * D0F.logShadow / D0F.height;if(D0F.flipped){Q7U=D0F.logHigh - Q7U;}else {Q7U+=D0F.logLow;}x26=Math.pow(10,Q7U);}else {if(!D0F.multiplier){return null;}x26=B4b / D0F.multiplier;if(D0F.flipped){x26=D0F.high - x26;}else {x26+=D0F.low;}}return x26;};x40.ChartEngine.prototype.priceFromPixel=function(J95,B60,x1N){M2dNJ.E0w();var J_7;if(!B60){B60=this.chart.panel;}J_7=this.transformedPriceFromPixel(J95,B60,x1N);if(this.charts[B60.name] && B60.chart.untransformFunc){if(!x1N || x1N == B60.yAxis){J_7=B60.chart.untransformFunc(this,B60.chart,J_7,x1N);}}return J_7;};x40.ChartEngine.prototype.valueFromPixel=function(a1h,L6N,M15){var K2a;if(!L6N){L6N=this.whichPanel(a1h);}if(!L6N){K2a=Object.values(this.panels);if(K2a && K2a.length){if(a1h <= "0" << 64){L6N=K2a.shift();}else {L6N=K2a.pop();}}}return this.priceFromPixel(a1h,L6N,M15);};x40.ChartEngine.prototype.valueFromInterpolation=function(G8J,n2b,Z0l,g7g,m3v){var I7M=M2dNJ;var s9b,v16,d1J,x2$,w0v,a8R,Z4k,U6c,S0c,L$q,k0$,P3R,n0B,s9C;s9b="undefine";s9b+="d";if(G8J === null || G8J < 0 || !n2b){return null;}if(!g7g){g7g=this.chart.panel;}if(!m3v){m3v=g7g.yAxis;}if(!Z0l){Z0l=this.chart.defaultPlotField;}v16=this.getPreviousBar(this.chart,n2b,G8J);if(!v16){return null;}x2$=x40.existsInObjectChain(v16,n2b);if(x2$){d1J=x2$.obj[x2$.member];}if(typeof d1J == "object"){d1J=d1J[Z0l];}w0v=this.getRendererFromSeries(n2b);I7M.j07();if(w0v && w0v.params.step || this.layout.chartType === "step"){return d1J;}a8R=this.getNextBar(this.chart,n2b,G8J);x2$=x40.existsInObjectChain(a8R,n2b);if(x2$){Z4k=x2$.obj[x2$.member];}if(typeof Z4k == "object"){Z4k=Z4k[Z0l];}if(!a8R){return null;}if(d1J === null || typeof d1J == s9b || Z4k === null || typeof Z4k == "undefined"){return null;}U6c=this.pixelFromPrice(d1J,g7g,m3v);S0c=this.pixelFromPrice(Z4k,g7g,m3v);L$q=v16.tick;k0$=a8R.tick;I7M.i3C(128);P3R=I7M.B0m(k0$,L$q,U6c,S0c);n0B=this.chart.dataSegment[G8J].tick;I7M.i3C(129);s9C=I7M.k$A(L$q,U6c,P3R,n0B);return this.priceFromPixel(s9C,g7g,m3v);};x40.ChartEngine.prototype.pixelFromTransformedValue=function(D96,q$d,s2j){var j5I,I58,T5$,F4X,a5q;if(!q$d){q$d=this.chart.panel;}M2dNJ.j07();j5I=s2j?s2j:q$d.yAxis;I58=(j5I.high - D96) * j5I.multiplier;if(j5I.semiLog){T5$=Math.max(D96,0);F4X=Math.log(T5$) / Math.LN10;a5q=j5I.height;I58=a5q - a5q * (F4X - j5I.logLow) / j5I.logShadow;}I58=j5I.flipped?j5I.bottom - I58:j5I.top + I58;return I58;};x40.ChartEngine.prototype.pixelFromPrice=function(i4O,N73,Z6B){if(!N73){N73=this.chart.panel;}if(this.charts[N73.name] && N73.chart.transformFunc){if(!Z6B || Z6B == N73.yAxis){i4O=N73.chart.transformFunc(this,N73.chart,i4O,Z6B);;}}return this.pixelFromTransformedValue(i4O,N73,Z6B);};x40.ChartEngine.prototype.pixelFromValueAdjusted=function(S2d,z8p,k2h,b$q){var b$k,X0u;if(this.layout.adj || !this.charts[S2d.name]){return this.pixelFromPrice(k2h,S2d,b$q);}b$k=Math.round(z8p);if(b$k > 0 && b$k < S2d.chart.dataSet.length && (X0u=S2d.chart.dataSet[b$k].ratio)){M2dNJ.a3e(38);return this.pixelFromPrice(M2dNJ.k$A(k2h,X0u),S2d,b$q);}return this.pixelFromPrice(k2h,S2d,b$q);};x40.ChartEngine.prototype.adjustIfNecessary=function(d2z,o1$,c1W){var w8n,G8L;if(this.layout.adj){return c1W;}if(!d2z || !this.charts[d2z.name]){return c1W;}w8n=Math.round(o1$);if(w8n > 0 && w8n < d2z.chart.dataSet.length && (G8L=d2z.chart.dataSet[w8n].ratio)){M2dNJ.i3C(40);return M2dNJ.B0m(c1W,G8L);}return c1W;};};G6=L9D=>{var k6f=M2dNJ;var p2t;p2t=L9D.CIQ;k6f.j07();p2t.ChartEngine.prototype.positionCrosshairsAtPointer=function(){var Q4k,e4h,v2T,O24,W4B,i2T,a$K,n1g;Q4k="p";Q4k+="x";e4h=this.currentPanel;if(!e4h){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}k6f.E0w();if(this.runPrepend("positionCrosshairsAtPointer",arguments)){return;}v2T=e4h.chart;O24=this.container.getBoundingClientRect();this.top=O24.top;this.left=O24.left;this.right=this.left + this.width;this.bottom=this.top + this.height;this.cy=this.crossYActualPos=this.backOutY(p2t.ChartEngine.crosshairY);this.cx=this.backOutX(p2t.ChartEngine.crosshairX);W4B=this.crosshairTick=this.tickFromPixel(this.cx,v2T);k6f.a3e(130);var V5K=k6f.k$A(5,16,10,1);i2T=this.pixelFromTick(W4B,v2T) - V5K;if(this.controls.crossX){k6f.i3C(4);this.controls.crossX.style.left=k6f.k$A(Q4k,i2T);}if(i2T >= e4h.right || i2T <= e4h.left){this.undisplayCrosshairs();return;}a$K=e4h.name == "chart"?this.preferences.horizontalCrosshairField:e4h.horizontalCrosshairField;n1g=v2T.dataSet;if(a$K && n1g && W4B < n1g.length && W4B > -1){this.crossYActualPos=this.pixelFromPrice(n1g[W4B][a$K],e4h);}if(this.controls.crossY){this.controls.crossY.style.top=this.crossYActualPos + "px";}this.runAppend("positionCrosshairsAtPointer",arguments);};p2t.ChartEngine.prototype.doDisplayCrosshairs=function(){var k0u,P1w,k6V,Z44,k5L,M0S,V2t;if(this.runPrepend("doDisplayCrosshairs",arguments)){return;}if(this.displayInitialized){k0u=this.floatCanvas;P1w=this.currentVectorParameters.vectorType;if(!this.layout.crosshair && (P1w === "" || !P1w)){this.undisplayCrosshairs();}else if(p2t.Drawing && p2t.Drawing[P1w] && new p2t.Drawing[P1w]().dragToDraw){this.undisplayCrosshairs();}else if(this.overXAxis || this.overYAxis || !this.insideChart && !this.grabbingScreen){this.undisplayCrosshairs();}else if(this.openDialog !== ""){this.undisplayCrosshairs();}else {k6V=this.controls;Z44=k6V.crossX;k5L=k6V.crossY;if(Z44 && Z44.style.display !== ""){Z44.style.display="";if(k5L){k5L.style.display="";}if(this.magnetizedPrice && P1w){M0S="stx-";M0S+="crossh";M0S+="air-o";M0S+="n";this.container.classList.remove(M0S);this.chart.tempCanvas.style.display="block";}else {this.container.classList.add("stx-crosshair-on");}}if(k6V.floatDate && !this.chart.xAxis.noDraw){k6V.floatDate.style.visibility="";if(this.currentPanel){this.updateFloatHRLabel(this.currentPanel);}}if(k0u){V2t="n";V2t+="o";V2t+="n";V2t+="e";if(k0u.style.display == V2t){p2t.clearCanvas(k0u,this);}k0u.style.display="block";}}}k6f.j07();this.runAppend("doDisplayCrosshairs",arguments);};p2t.ChartEngine.prototype.undisplayCrosshairs=function(){var N8i,n3c,M4x,Q0A,f25,Y2v,p$v,M33;if(this.runPrepend("undisplayCrosshairs",arguments)){return;}N8i=this.controls;n3c=N8i.crossX;M4x=N8i.crossY;if(n3c){if(n3c.style.display != "none"){Q0A="n";Q0A+="o";Q0A+="n";Q0A+="e";f25="no";f25+="n";f25+="e";n3c.style.display=f25;if(M4x){M4x.style.display=Q0A;}}}if(this.displayInitialized && N8i.floatDate){N8i.floatDate.style.visibility="hidden";}this.container.classList.remove("stx-crosshair-on");Y2v=this.floatCanvas;if(Y2v && Y2v.isDirty && Y2v.style.display != "none"){p2t.clearCanvas(Y2v,this);if(Y2v.style.display != "none"){Y2v.style.display="none";}}k6f.E0w();if(!this.activeDrawing && !this.repositioningDrawing && !this.editingAnnotation){p$v="no";p$v+="ne";M33=this.chart.tempCanvas;if(M33 && M33.style.display != p$v){M33.style.display="none";}}this.runAppend("undisplayCrosshairs",arguments);};p2t.ChartEngine.prototype.hideCrosshairs=function(){k6f.j07();this.displayCrosshairs=![];};p2t.ChartEngine.prototype.showCrosshairs=function(){this.displayCrosshairs=!0;};};k$=b09=>{var y_C=M2dNJ;var a_E,o7N;a_E=b09.CIQ;o7N=b09.timezoneJS;a_E.ChartEngine.prototype.loadChart=function(o$w,U5a,T13){var h9q,A9g,w2y,y3$,f0d,A2C,k0F,W_3;function G1d(){var H3p,Z1G,O5X;H3p="m";y_C.E0w();H3p+="a";H3p+="st";H3p+="er";Z1G="sym";Z1G+="bolChange";O5X="symb";O5X+="o";O5X+="lImport";A2C.dispatch(A2C.currentlyImporting?O5X:Z1G,{stx:A2C,symbol:T3u.symbol,symbolObject:T3u.symbolObject,prevSymbol:y1p,prevSymbolObject:y3$,action:H3p});if(R0w){A2C.dispatch("periodicity",{stx:A2C,differentData:!!1,prevPeriodicity:A9g});}}h9q="func";h9q+="tion";if(!T13 && typeof U5a == h9q){T13=U5a;U5a={};}else if(Array.isArray(U5a)){U5a={masterData:U5a};}if(!U5a){U5a={};}var {chart:T3u, periodicity:R0w, range:R2a, span:l9U}=U5a;var {layout:F_7}=this;A9g={periodicity:F_7.periodicity,interval:F_7.interval,timeUnit:F_7.timeUnit};if(R0w){w2y=a_E.cleanPeriodicity(R0w.period?R0w.period:R0w.periodicity,R0w.interval,R0w.timeUnit);F_7.interval=w2y.interval;F_7.periodicity=w2y.period;F_7.timeUnit=w2y.timeUnit;}if(!T3u){T3u=this.chart;}var {dataSet:h_c, market:x$$, masterData:x27, symbol:y1p, moreAvailable:P6$, upToDate:e$i}=T3u;y3$=a_E.clone(T3u.symbolObject);T3u.dataSet=[];T3u.masterData=[];T3u.moreAvailable=null;T3u.upToDate=null;if(!o$w){T3u.symbol=null;T3u.symbolObject={symbol:null};}else if(typeof o$w == "object"){T3u.symbol=o$w.symbol;T3u.symbolObject=o$w;}else {T3u.symbol=o$w;T3u.symbolObject.symbol=o$w;}T3u.inflectionPoint=null;if(this.marketFactory){f0d=this.marketFactory(T3u.symbolObject);this.setMarket(f0d,T3u);}this.setMainSeriesRenderer(!!1);if(!R2a && !l9U && F_7){l9U=!F_7.range?F_7.setSpan:{};R2a=F_7.range || ({});}else if(R2a && l9U){l9U={};}this.clearCurrentMarketData(T3u);A2C=this;if(!U5a.masterData && this.quoteDriver){k0F=function(X_Q){y_C.j07();if(X_Q && X_Q != "orphaned"){T3u.symbol=y1p;T3u.symbolObject=y3$;T3u.market=x$$;A2C.masterData=T3u.masterData=x27;T3u.dataSet=h_c;T3u.moreAvailable=P6$;T3u.upToDate=e$i;}G1d();if(T13){T13.call(A2C,X_Q);}};if(R2a && Object.keys(R2a).length && this.setRange){delete U5a.span;delete F_7.setSpan;this.chart.masterData=null;this.displayInitialized=![];if(R0w){R2a.periodicity=R0w;}R2a.forceLoad=!!"1";this.setRange(R2a,k0F);}else if(l9U && l9U.base && this.setSpan){l9U.multiplier=l9U.multiplier || 1;this.chart.masterData=null;this.displayInitialized=!"1";if(R0w){l9U.maintainPeriodicity=!"";}l9U.forceLoad=!!"1";this.setSpan(l9U,k0F);}else {this.quoteDriver.newChart({symbol:T3u.symbol,symbolObject:T3u.symbolObject,chart:T3u,initializeChart:!![]},function(E6D){if(!E6D){A2C.adjustPanelPositions();A2C.quoteDriver.updateSubscriptions();if(U5a.stretchToFillScreen){A2C.fillScreen();}}y_C.j07();k0F.apply(A2C,arguments);});}}else {if(!U5a.masterData){console.log("Warning: No masterData specified and no QuoteFeed configured");}if(!T3u.symbol){T3u.symbol="";}this.initializeChart();W_3=this.doCleanupGaps(U5a.masterData,T3u);this.setMasterData(W_3,T3u,{noCleanupDates:!0});T3u.endPoints={};if(W_3 && W_3.length){T3u.endPoints={begin:W_3[0].DT,end:W_3[W_3.length - 1].DT};}this.createDataSet();if(R2a && Object.keys(R2a).length && this.setRange){this.setRange(R2a);}else if(l9U && l9U.multiplier && l9U.base && this.setSpan){this.setSpan({maintainPeriodicity:!!1,multiplier:l9U.multiplier,base:l9U.base});}else if(U5a.stretchToFillScreen){this.fillScreen();}else if(W_3 && W_3.length){this.home();}else {this.clear();}this.adjustPanelPositions();G1d();if(T13){T13.call(A2C);}}};a_E.ChartEngine.prototype.loadBlankChart=function(){y_C.E0w();this.loadChart(null,[]);};a_E.ChartEngine.prototype.getDataFields=function(b0k){var u9M,z8m,F8t,y88,F_W;u9M="L";u9M+="ow";y_C.j07();z8m="C";z8m+="lose";if(!b0k){b0k=this.chart;}F8t=b0k.defaultPlotField || z8m;y88=["Open","High",u9M];y88.push(F8t);for(var h_2 in b0k.series){F_W=b0k.series[h_2].parameters;y88.push(F_W.symbol);}return y88;};a_E.ChartEngine.prototype.cleanMasterData=function(k8w,V0k){var R_S,j7x,o0O,z2R,v85;function d4B(s29,O5x){y_C.j07();var V9t,a18;for(var D47="0" << 64;D47 < O5x.length;D47++){V9t="undefin";V9t+="e";V9t+="d";a18=s29[O5x[D47]];if(typeof a18 != V9t){return !"1";}}return !!1;}R_S=k8w.symbol;j7x=V0k.masterData;if(!j7x || !j7x.length){return;}o0O=this.getDataFields(V0k);z2R=0;do {v85=j7x[z2R];delete v85[R_S];if(d4B.call(this,v85,o0O)){j7x.splice(z2R,1);continue;}z2R++;}while(z2R < j7x.length);y_C.E0w();j7x=this.doCleanupGaps(j7x,V0k,{noCleanupDates:!!({})});this.setMasterData(j7x,V0k,{noCleanupDates:!!"1"});this.clearCurrentMarketData(V0k,R_S);};y_C.j07();a_E.ChartEngine.prototype.calculateATR=function(q_T,p94,A7n){var U8k,U_i,P2g,F_S,r7O,r9y;if(!A7n){A7n=q_T.dataSet;}U8k=q_T.state.calculations.atr;if(!U8k){U8k=q_T.state.calculations.atr={};}if(!p94){p94=+"20";}U_i=[];if(U8k.accum){U_i=U8k.accum;}for(var w20=0;w20 < A7n.length;w20++){F_S=A7n[w20];P2g=w20?A7n[w20 - 1]:U8k.q1;if(!P2g)continue;r7O=Math.max(F_S.High - F_S.Low,Math.abs(F_S.High - P2g.Close),Math.abs(F_S.Low - P2g.Close));if(U_i.length < p94){if(U_i.push(r7O) == p94){r9y=0;for(var z9e=0;z9e < U_i.length;z9e++){r9y+=U_i[z9e];}y_C.a3e(40);F_S.atr=y_C.B0m(r9y,p94);}}else {y_C.a3e(9);var u1A=y_C.k$A(1,20,19);F_S.atr=(P2g.atr * (p94 - u1A) + r7O) / p94;}F_S.trueRange=r7O;}q_T.state.calculations.atr={accum:U_i,q1:P2g};};a_E.ChartEngine.prototype.calculateMedianPrice=function(n33,m7R){var W_M,V8c;if(!m7R){m7R=n33.dataSet;}y_C.j07();for(var T1P=+"0";T1P < m7R.length;++T1P){V8c="hl/";V8c+="2";W_M=m7R[T1P];y_C.a3e(131);var H6y=y_C.B0m(14,9,35,10);W_M[V8c]=(W_M.High + W_M.Low) / H6y;}};a_E.ChartEngine.prototype.calculateTypicalPrice=function(V7b,O_Y){var e6Q;if(!O_Y){O_Y=V7b.dataSet;}y_C.j07();for(var A8Q=0;A8Q < O_Y.length;++A8Q){e6Q=O_Y[A8Q];y_C.a3e(3);var T2Z=y_C.k$A(2,14,13);e6Q["hlc/3"]=(e6Q.High + e6Q.Low + e6Q.Close) / T2Z;}};a_E.ChartEngine.prototype.calculateWeightedClose=function(b4E,S9M){var I_k;if(!S9M){S9M=b4E.dataSet;}for(var C88="0" ^ 0;C88 < S9M.length;++C88){I_k=S9M[C88];y_C.a3e(60);var k07=y_C.k$A(14,19,329,18,3);y_C.a3e(25);var j4S=y_C.B0m(4,15,56);I_k["hlcc/4"]=(I_k.High + I_k.Low + k07 * I_k.Close) / j4S;}};a_E.ChartEngine.prototype.calculateOHLC4=function(r8J,L8V){var W7I,l47;if(!L8V){L8V=r8J.dataSet;}for(var B8v=0;B8v < L8V.length;++B8v){l47="ohlc";l47+="/4";W7I=L8V[B8v];y_C.i3C(65);var S_x=y_C.k$A(1,3,56,28,2);W7I[l47]=(W7I.Open + W7I.High + W7I.Low + W7I.Close) / S_x;}};a_E.ChartEngine.prototype.currentQuote=function(d_9){var N_u;if(!this.chart.dataSet){return null;}for(var I4l=this.chart.dataSet.length - 1;I4l >= 0;I4l--){if(this.chart.dataSet[I4l]){if(!d_9){return this.chart.dataSet[I4l];}N_u=this.chart.dataSet[I4l][d_9];if(N_u || N_u === 0){return this.chart.dataSet[I4l];}}}return null;};a_E.ChartEngine.prototype.mostRecentClose=function(I4D){var U9l,x_T;y_C.E0w();if(!this.chart.dataSet){return null;}for(var y23=this.chart.dataSet.length - 1;y23 >= 0;y23--){U9l=this.chart.dataSet[y23];if(!U9l)continue;if(I4D){U9l=U9l[I4D];if(!U9l && U9l !== 0)continue;}x_T=U9l.iqPrevClose;if(typeof U9l == "object"){U9l=U9l.Close;}if(typeof U9l == "number"){return U9l;}if(typeof x_T == "number"){return x_T;}}return null;};a_E.ChartEngine.prototype.createDataSegment=function(I_O){var Q7q,b7K,S5p,w1R,t3$,u9Y,Y2k,o51,b5k,i21,P0r,L7R,d2O,u1P,y2a,P6E,G5k,B7P;if(this.runPrepend("createDataSegment",arguments)){return;}y_C.j07();for(var c9f in this.charts){Q7q=this.charts[c9f];if(I_O){Q7q=I_O;}if(a_E.Comparison && Q7q.isComparison){a_E.Comparison.createComparisonSegmentInner(this,Q7q);}b7K=Q7q.dataSet;S5p=Q7q.baseline;w1R=Q7q.scroll;t3$=Q7q.maxTicks;u9Y=this.layout;Y2k=u9Y.candleWidth;S5p.actualLevel=S5p.userLevel?S5p.userLevel:S5p.defaultLevel;o51=S5p.includeInDataSegment && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars);i21=0;P0r=Q7q.dataSegment=[];y_C.a3e(6);var h_D=y_C.k$A(5,11,1,7);L7R=b7K.length - h_D - w1R - +"1";d2O=Q7q.defaultPlotField;for(var q5c=-1;q5c < w1R && q5c < t3$;q5c++){L7R++;if(q5c == -+"1" && !o51)continue;if(L7R < b7K.length && L7R >= 0){b5k=b7K[L7R];b5k.candleWidth=null;if(b5k){i21+=b5k.Volume || "1" >> 32;}P0r.push(b5k);if(S5p.actualLevel === null && q5c >= 0){if(d2O && d2O != "Close"){y_C.i3C(1);u1P=b7K[y_C.k$A(1,L7R)];if(u1P && (u1P[d2O] || u1P[d2O] === 0)){S5p.actualLevel=u1P[d2O];}}else {if(b5k.iqPrevClose || b5k.iqPrevClose === 0){S5p.actualLevel=b5k.iqPrevClose;}}}}else if(L7R < 0){P0r.push(null);}}Q7q.segmentImage=null;y2a=this.mainSeriesRenderer || ({});if(y2a.params && y2a.params.volume){P6E=Q7q.width - (t3$ - P0r.length - +"1") * u9Y.candleWidth;G5k=0;Q7q.segmentImage=[];for(var g_i=0;g_i < P0r.length;g_i++){b5k=P0r[g_i];Q7q.segmentImage[g_i]={};B7P=null;if(b5k){if(b5k.Volume){b5k.candleWidth=P6E * b5k.Volume / i21;y_C.a3e(31);var f5H=y_C.k$A(14,16,11,11);B7P=G5k + b5k.candleWidth / f5H;G5k+=b5k.candleWidth;}else {b5k.candleWidth=Y2k;y_C.a3e(46);B7P=y_C.B0m(G5k,2,Y2k);G5k+=Y2k;}Q7q.segmentImage[g_i]={tick:b5k.tick,candleWidth:b5k.candleWidth,leftOffset:B7P};}else {G5k+=Y2k;}}}if(I_O)break;}if(Q7q && Q7q.isComparison){this.clearPixelCache();}this.positionCrosshairsAtPointer();this.runAppend("createDataSegment",arguments);};a_E.ChartEngine.prototype.getDataSegment=function(X8y){var X$_,e8Z,f4n,H63,i9q,L5F;if(!X8y){X8y=this.chart;}X$_=X8y.dataSegment;if(!X$_ || !X$_.length){return [];}e8Z=0;f4n=X$_.length;if(this.pixelFromBar(e8Z,X8y) < X8y.panel.left){e8Z++;}H63=122450553;i9q=-843407242;L5F=2;for(var y5s=1;y_C.b3_(y5s.toString(),y5s.toString().length,"83213" | 12) !== H63;y5s++){if(this.pixelFromBar(f4n / 2,X8y) < X8y.panel.right){f4n++;}return X$_.slice(e8Z,f4n);}y_C.E0w();if(y_C.m7$(L5F.toString(),L5F.toString().length,94243) !== i9q){if(this.pixelFromBar(f4n - 1,X8y) > X8y.panel.right){f4n--;}return X$_.slice(e8Z,f4n);}};a_E.ChartEngine.prototype.setMasterData=function(Z24,G8f,K7u){var E4f,L2f,u48,i$O,W2D,R43,P$f,I2E;E4f="c";E4f+="ha";E4f+="r";E4f+="t";if(!G8f){G8f=this.chart;}if(this.marketFactory){L2f=this.marketFactory(G8f.symbolObject);this.setMarket(L2f,G8f);}if(!K7u){K7u={};}if(!K7u.noCleanupDates){this.doCleanupDates(Z24,this.layout.interval);}G8f.masterData=Z24;if(G8f.name == E4f){this.masterData=Z24;}i$O=null;for(u48=0;Z24 && u48 < Z24.length;u48++){W2D="setMast";W2D+="e";W2D+="rData : Missing DT and Date on mas";W2D+="terData object";R43=Z24[u48];if(i$O === null){if(typeof R43.Close === "number"){P$f="Clo";P$f+="s";P$f+="e";i$O=P$f;}else if(typeof R43.Value === "number"){i$O="Value";}}if(i$O === "Value" && typeof R43.Value === "number"){R43.Close=R43.Value;}if(R43.DT){if(Object.prototype.toString.call(R43.DT) != "[object Date]"){R43.DT=new Date(R43.DT);}if(!R43.Date || R43.Date.length != 17){R43.Date=a_E.yyyymmddhhmmssmmm(R43.DT);}}else if(R43.Date){R43.DT=a_E.strToDateTime(R43.Date);}else {console.log(W2D);}if(R43.Volume && typeof R43.Volume !== "number"){R43.Volume=parseInt(R43.Volume,10);}if(Z24.length - u48 < 50){this.updateCurrentMarketData(R43,G8f,null,{fromTrade:!0});}}if(G8f.calculateTradingDecimalPlaces){G8f.decimalPlaces=G8f.calculateTradingDecimalPlaces({stx:this,chart:G8f,symbol:G8f.symbolObject.symbol,symbolObject:G8f.symbolObject});}this.setDisplayDates(Z24);G8f.roundit=Math.pow(10,G8f.decimalPlaces);for(u48 in this.plugins){I2E=this.plugins[u48];if(I2E.display){if(I2E.setMasterData){I2E.setMasterData(this,G8f);}}}};a_E.ChartEngine.prototype.setMasterDataRender=function(T0B,N34,a7A){if(!a7A){a7A=this.chart;}if(!a7A.symbol){a7A.symbol="";}this.setMasterData(N34,a7A);if(N34){a7A.endPoints={};if(N34.length){a7A.endPoints={begin:N34["0" | 0].DT,end:N34[N34.length - +"1"].DT};a7A.symbol=T0B;}}this.createDataSet();y_C.E0w();this.initializeChart();this.draw();if(!N34 || !N34.length){a7A.symbol=null;this.clear();}this.adjustPanelPositions();};a_E.ChartEngine.prototype.getSymbols=function(W86){var T80,o_p,k8_,J4A,x2Y,l7R,a7n,l7e,y8n,g$B,P6b;y_C.E0w();if(!W86){W86={};}T80=[];k8_=this.layout;for(var S1K in this.charts){l7R=this.charts[S1K];if(l7R.symbolObject && l7R.symbolObject.symbol){T80.push(U7M(l7R.symbol,l7R.symbolObject,k8_));}for(var c9L in l7R.series){a7n=l7R.series[c9L];l7e=a7n.parameters;if(l7e.data && !l7e.data.useDefaultQuoteFeed)continue;x2Y=l7e.symbolObject;J4A=l7e.symbol;o_p=U7M(J4A,x2Y,k8_);o_p.id=c9L;if(W86["include-parameters"]){o_p.parameters=a_E.clone(l7e);if(o_p.parameters.yAxis){delete o_p.parameters.yAxis.yAxisPlotter;}}if(W86["exclude-studies"] && l7e.bucket == "study")continue;if(W86["exclude-generated"] && x2Y.generator)continue;T80.push(o_p);}}function U7M(X7o,T9_,F5t){return {symbol:X7o,symbolObject:T9_,periodicity:F5t.periodicity,interval:F5t.interval,timeUnit:F5t.timeUnit,setSpan:F5t.setSpan};}if(W86["breakout-equations"]){y8n={};for(var Z8N=0;Z8N < T80.length;Z8N++){J4A=T80[Z8N].symbol;if(this.isEquationChart(J4A)){g$B=a_E.formatEquation(J4A);if(g$B){P6b=g$B.symbols;for(var k11=0;k11 < P6b.length;k11++){y8n[P6b[k11]]=U7M(P6b[k11],T80[Z8N].symbolObject,T80[Z8N]);}}}else {y8n[J4A]=U7M(J4A,T80[Z8N].symbolObject,T80[Z8N]);}}T80=[];for(var i6Q in y8n){T80.push(y8n[i6Q]);}}return T80;};a_E.ChartEngine.prototype.setDisplayDate=function(N$N){var v$p,a9s,Y3m;if(a_E.ChartEngine.isDailyInterval(this.layout.interval)){return;}v$p=N$N.DT;y_C.i3C(4);var F6l=y_C.B0m(950,50);a9s=v$p.getSeconds() * F6l + v$p.getMilliseconds();y_C.j07();if(o7N.Date && this.displayZone){Y3m=new o7N.Date(v$p.getTime(),this.displayZone);v$p=new Date(Y3m.getFullYear(),Y3m.getMonth(),Y3m.getDate(),Y3m.getHours(),Y3m.getMinutes());v$p=new Date(v$p.getTime() + a9s);}N$N.displayDate=v$p;};a_E.ChartEngine.prototype.setDisplayDates=function(N1q){var h9a;if(!N1q){return;}if(a_E.ChartEngine.isDailyInterval(this.layout.interval)){return;}for(var C$Z=0;C$Z < N1q.length;C$Z++){h9a=N1q[C$Z];if(h9a.DT){this.setDisplayDate(h9a);}}};a_E.ChartEngine.prototype.setTimeZone=function(l6g,Y2l){var Q_G,c7s,g4K,R2_,p3p;if(!o7N.Date){this.timeZoneOffset=0;return;}Q_G=new Date();c7s=Q_G.getTimezoneOffset();g4K=c7s;R2_=c7s;if(l6g){this.dataZone=l6g;}if(this.dataZone){g4K=new o7N.Date(Q_G,this.dataZone).getTimezoneOffset();}if(Y2l){this.displayZone=Y2l;}if(this.displayZone){R2_=new o7N.Date(Q_G,this.displayZone).getTimezoneOffset();}y_C.a3e(132);this.timeZoneOffset=y_C.B0m(c7s,c7s,g4K,R2_);for(var r8l in this.charts){p3p=this.charts[r8l];this.setDisplayDates(p3p.masterData);}this.preferences.timeZone=Y2l;this.changeOccurred("preferences");this.createDataSet();};a_E.ChartEngine.prototype.updateChartData=function(q6E,S5H,e5Q){var d7P,T2s,j8V,y9Y,I40,D3s,u6J,y4A,H$L,T_b,b9C,v3d,J4y,x6t,E_B,v2$,y0_,D5N,Z3z,h7K,N9o,x9T,W6G,k1t,g0S,X4N,m8x;if(!e5Q){e5Q={};}function s5_(){var o3h,U4O,i8L;o3h=null;y_C.i3C(82);U4O=y_C.B0m(32,"0");if(j8V.length){o3h=D3s.getFirstLastDataRecord(j8V,u6J || S5H.defaultPlotField,!!1);if(o3h){if(q6E[q6E.length - 1].DT <= o3h.DT){return;}for(;U4O < q6E.length;U4O++){if(+q6E[U4O].DT == +o3h.DT){if(D3s.getFirstLastDataRecord([q6E[U4O]],u6J || S5H.defaultPlotField)){o3h=null;}break;}else if(q6E[U4O].DT > o3h.DT)break;}}}i8L=q6E.slice(U4O);if(o3h){i8L.unshift(u6J?o3h[u6J]:o3h);}y_C.j07();i8L=D3s.doCleanupGaps(i8L,S5H);if(o3h){i8L.shift();}q6E=q6E.slice(0,U4O).concat(i8L);}if(!S5H){S5H=this.chart;}d7P=!!0;T2s=!"1";j8V=S5H.masterData;y_C.j07();y9Y=this.layout;I40=this.dataZone;D3s=this;u6J=e5Q.secondarySeries;T_b=a_E.isValidNumber;if(!e5Q.noCleanupDates){this.doCleanupDates(q6E,y9Y.interval);}function V8D(){D3s.createDataSet(null,null,e5Q);D3s.draw();D3s.updateChartAccessories();y_C.E0w();D3s.streamParameters.count=0;y_C.i3C(71);D3s.streamParameters.timeout=-y_C.B0m("1",32);}if(e5Q.useAsLastSale || q6E.constructor == Object && (q6E.Last || q6E.Last === +"0")){x0T();}if(q6E && q6E.constructor == Object){q6E=[q6E];}if(!q6E || !q6E.length){return;}if(this.runPrepend("appendMasterData",[q6E,S5H,e5Q])){return;}if(this.runPrepend("updateChartData",[q6E,S5H,e5Q])){return;}function D5e(){var C39,g2B,y_J,W7x,r0C,p5q,t29,z4G,E4C,c0T;if(!a_E.Market || !S5H.market){return;}y_C.j07();C39={market_tz:a_E.getFromNS(S5H,"market.market_def.market_tz",null)};g2B=y9Y.interval;if(g2B == "month" || g2B == "week"){y_J="d";y_J+="a";y_J+="y";if(!D3s.dontRoll){g2B=y_J;}C39=D3s.chart.market.market_def;}W7x=new a_E.Market(C39);r0C={begin:j8V && j8V.length?j8V[j8V.length - 1].DT:q6E.DT,interval:g2B,periodicity:+"1",timeUnit:y9Y.timeUnit};p5q=W7x.newIterator(r0C);t29=p5q.next();if(!j8V){q6E.DT=new Date(+p5q.previous());}else if(q6E.DT < t29){z4G=0;c0T=p5q.previous();E4C=q6E.DT;e5Q.appending=!0;while(E4C < c0T && z4G < "1000" - 0){e5Q.appending=!"1";c0T=p5q.previous();z4G++;}q6E.DT=c0T;e5Q.updating=!e5Q.appending;}else if(q6E.DT >= t29){z4G=0;E4C=q6E.DT;while(E4C > t29 && z4G < 1000){q6E.DT=t29;t29=p5q.next();z4G++;}e5Q.appending=!"";}}if(!j8V){j8V=[];}y_C.i3C(73);var y7N=y_C.k$A(3,14,715,17);b9C=j8V.length - y7N;v3d=!!0;if(e5Q.fillGaps){s5_();}if(!q6E.length){return;}for(var t4h=0;t4h < q6E.length;t4h++){J4y=q6E[t4h];x6t=J4y.DT;E_B=J4y.Date;if(x6t && Object.prototype.toString.call(x6t) != "[object Date]"){J4y.DT=x6t=new Date(x6t);}if(x6t){if(!E_B || E_B.length != +"17"){J4y.Date=a_E.yyyymmddhhmmssmmm(J4y.DT);}}if(!x6t){x6t=J4y.DT=a_E.strToDateTime(E_B);}if(!T_b(J4y.Close) && T_b(J4y.Value)){J4y.Close=J4y.Value;}while(b9C >= +"0" && b9C < j8V.length){v2$=j8V[b9C].DT;if(!v2$){v2$=a_E.strToDateTime(j8V[b9C].Date);}if(v2$.getTime() <= x6t.getTime()){v3d=!"";y0_=0;if(v2$.getTime() < x6t.getTime()){if(b9C < j8V.length - 1){D5N=j8V[b9C + 1].DT || a_E.strToDateTime(j8V[b9C + 1].Date);if(D5N.getTime() <= x6t.getTime()){b9C++;continue;}}y0_=1;;}if(e5Q.deleteItems){if(!y0_){N6s(b9C,x6t);}break;}else {if(y9Y.interval == "tick" && e5Q.firstLoop !== !1){y0_=1;}if(!y0_){m6e(b9C,J4y);}if(T_b(J4y.Close)){if(!T_b(J4y.Open)){J4y.Open=J4y.Close;}Z3z=Math.max(J4y.Open,J4y.Close);h7K=Math.min(J4y.Open,J4y.Close);if(!T_b(J4y.High) || J4y.High < Z3z){J4y.High=Z3z;}if(!T_b(J4y.Low) || J4y.Low > h7K){J4y.Low=h7K;}}if(J4y.Volume && !T_b(J4y.Volume)){J4y.Volume=parseInt(J4y.Volume,10);}b9C+=y0_;if(u6J){N9o="t";N9o+="i";N9o+="c";N9o+="k";if(q6E.length - t4h < 50){this.updateCurrentMarketData(J4y,S5H,u6J,{fromTrade:!!({})});}if(y9Y.interval != N9o || J4y.Close !== undefined){if(y0_){j8V.splice(b9C,+"0",{DT:J4y.DT});this.setDisplayDate(j8V[b9C]);}j8V[b9C][u6J]=J4y;}}else {if(q6E.length - t4h < +"50"){this.updateCurrentMarketData(J4y,S5H,null,{fromTrade:!!1});}if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(b9C,y0_?"0" << 0:1,J4y);this.setDisplayDate(J4y);}}}break;}b9C+=v3d?1:-1;}if(b9C < 0){if(u6J){this.updateCurrentMarketData(J4y,S5H,u6J,{fromTrade:!!"1"});if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(0,0,{DT:J4y.DT});this.setDisplayDate(j8V[0]);j8V[0][u6J]=J4y;}}else {this.updateCurrentMarketData(J4y,S5H,null,{fromTrade:!!({})});if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(0,0,J4y);this.setDisplayDate(J4y);}}v3d=!!({});b9C=0;}}if(j8V.length){this.masterData=S5H.masterData=j8V;}function N6s(T7S,w6B){var d$w,z6t,J1_;if(u6J){delete j8V[T7S][u6J];if(D3s.cleanupGaps){d$w={DT:w6B,Close:null};if(D3s.cleanupGaps != "gap" && j8V[T7S - +"1"] && j8V[T7S - 1][u6J]){d$w.Close=j8V[T7S - 1][u6J].Close;d$w.High=d$w.Low=d$w.Open=d$w.Close;d$w.Volume=0;}j8V[T7S][u6J]=d$w;}}else {z6t="g";z6t+="a";z6t+="p";J1_=j8V.splice(T7S,1)[0];d$w={DT:J1_.DT,Close:null,needed:![]};for(y4A in S5H.series){H$L=S5H.series[y4A].parameters.symbolObject.symbol;if(typeof J1_[H$L] != "undefined"){d$w[H$L]=J1_[H$L];delete d$w.needed;}}if(D3s.cleanupGaps && D3s.cleanupGaps != z6t){delete d$w.needed;if(D3s.cleanupGaps != "gap" && j8V[T7S - ("1" ^ 0)]){d$w.Close=j8V[T7S - ("1" | 0)].Close;d$w.High=d$w.Low=d$w.Open=d$w.Close;d$w.Volume=0;}}if(d$w.needed !== ![]){j8V.splice(T7S,0,d$w);D3s.setDisplayDate(d$w);}}}if(this.maxMasterDataSize){j8V=S5H.masterData=this.masterData=j8V.slice(-this.maxMasterDataSize);}x9T=u6J?this.getSeries({symbol:u6J,chart:S5H}):[S5H];function x0T(){y_C.j07();var D56,e$x;D56="[objec";D56+="t Date]";d7P=!"";if(e5Q.useAsLastSale && e5Q.useAsLastSale.aggregatedVolume){T2s=!"";}if(q6E.constructor === Array){y_C.i3C(1);var z$0=y_C.k$A(9,10);e$x=q6E[q6E.length - z$0];q6E={};q6E.DT=e$x.DT;q6E.Close=e$x.Close;q6E.Volume=e$x.Volume;}else if(q6E.Last){q6E.Close=q6E.Last;delete q6E.Last;}if(q6E.DT && Object.prototype.toString.call(q6E.DT) != D56){q6E.DT=new Date(q6E.DT);}if(!q6E.DT || q6E.DT == "Invalid Date"){q6E.DT=new Date();}if(y9Y.interval != "tick"){D5e();}q6E.Open=q6E.Close;q6E.High=q6E.Close;q6E.Low=q6E.Close;}for(var F8w=0;F8w < x9T.length;F8w++){W6G=x9T[F8w];if(!W6G.endPoints.begin || W6G.endPoints.begin > q6E[0].DT){W6G.endPoints.begin=q6E[0].DT;}if(!W6G.endPoints.end || W6G.endPoints.end < q6E[q6E.length - 1].DT){W6G.endPoints.end=q6E[q6E.length - 1].DT;}k1t=W6G.parameters && W6G.parameters.field || S5H.defaultPlotField;g0S=this.getFirstLastDataRecord(q6E,k1t,!!1);if(g0S && (!W6G.lastQuote || W6G.lastQuote.DT <= g0S.DT)){W6G.lastQuote=g0S;}if(u6J && e5Q.deleteItems){W6G.lastQuote=this.getFirstLastDataRecord(j8V,u6J,!!"1")[u6J];}}for(var b95 in this.plugins){X4N=this.plugins[b95];if(X4N.display){if(X4N.appendMasterData){X4N.appendMasterData(this,q6E,S5H);}}}if(!this.masterData || !this.masterData.length){this.masterData=j8V;}if(!e5Q.noCreateDataSet){m8x=this.streamParameters;if(++m8x.count > m8x.maxTicks || e5Q.bypassGovernor){clearTimeout(m8x.timeout);V8D();}else {if(m8x.timeout == -1){m8x.timeout=setTimeout(V8D,m8x.maxWait);}}}this.runAppend("appendMasterData",arguments);this.runAppend("updateChartData",arguments);function m6e(F6_,L46){y_C.E0w();var d4E,f0f,Z9w,P_f,h8a,y6m,K7b;d4E=-383538795;f0f=2094403994;Z9w=+"2";for(var r9z=1;y_C.m7$(r9z.toString(),r9z.toString().length,84157) !== d4E;r9z++){P_f=j8V[F6_];y_C.a3e(38);Z9w+=y_C.k$A("2",1);}if(y_C.b3_(Z9w.toString(),Z9w.toString().length,+"59929") !== f0f){P_f=j8V[F6_];}if(u6J){P_f=P_f[u6J] || ({});}if(L46.Close === null){if(P_f.Open !== undefined){L46.Open=null;}if(P_f.High !== undefined){L46.High=null;}if(P_f.Low !== undefined){L46.Low=null;}if(P_f.Volume !== undefined){L46.Volume=null;};}else {h8a="A";h8a+="s";h8a+="k";y6m="H";y6m+="i";y6m+="g";y6m+="h";if(d7P){if(L46.Volume){L46.Volume=parseInt(L46.Volume,10);}if(!T2s){L46.Volume+=P_f.Volume;}}else {if(!T_b(L46.Volume) && P_f.Volume){L46.Volume=P_f.Volume;}}if(!e5Q.allowReplaceOHL){if(T_b(P_f.Open)){L46.Open=P_f.Open;}if(T_b(P_f.High) && T_b(L46.High)){if(P_f.High > L46.High){L46.High=P_f.High;}}if(T_b(P_f.Low) && T_b(L46.Low)){if(P_f.Low < L46.Low){L46.Low=P_f.Low;}}}["Close","Open",y6m,"Low","Bid",h8a].forEach(function(M$v){if(!T_b(L46[M$v])){L46[M$v]=P_f[M$v];}});for(y4A in S5H.series){K7b="u";K7b+="ndefined";H$L=S5H.series[y4A].parameters.symbolObject.symbol;if(typeof L46[H$L] == "undefined" && typeof P_f[H$L] != K7b){L46[H$L]=P_f[H$L];}}}}};a_E.ChartEngine.prototype.updateCurrentMarketData=function(K54,b_t,I7I,i41){var b1z,X16,u67,U9v,S8H,V8e,G14,O$2,K9s;if(!K54 || !K54.DT){return;}if(!b_t){b_t=this.chart;}b1z=i41 && i41.fromTrade;X16=K54.DT;if(!b1z && this.layout.interval != "tick" && b_t.market){if(b_t.market.market_def){if(!b_t.market.isMarketDate(K54.DT)){return;}if(!a_E.ChartEngine.isDailyInterval(this.layout.interval) && b_t.market.getSession(K54.DT) === null){return;};}u67={begin:K54.DT,interval:this.layout.interval,periodicity:this.layout.periodicity,timeUnit:this.layout.timeUnit};U9v=new a_E.Market(b_t.market.market_def);if(this.extendedHours && this.extendedHours.filter){U9v.enableAllAvailableSessions();}S8H=U9v.newIterator(u67);S8H.next();K54.DT=S8H.previous();}if(this.runPrepend("updateCurrentMarketData",arguments)){return;}V8e=b_t.currentMarketData;if(I7I){if(!V8e[I7I]){V8e[I7I]={};}V8e=V8e[I7I];}["Last","Bid","Ask"].forEach(function(K27){y_C.E0w();if(K54[K27] && typeof K54[K27] == "number"){if(!V8e[K27] || !V8e[K27].DT || V8e[K27].DT <= K54.DT){V8e[K27]={DT:K54.DT,Price:K54[K27],Size:K54[K27 + "Size"],Timestamp:X16};}}});["BidL2","AskL2"].forEach(function(D20){y_C.E0w();if(K54[D20] && K54[D20] instanceof Array){if(!V8e[D20] || !V8e[D20].DT || V8e[D20].DT <= K54.DT){V8e[D20]={DT:K54.DT,Price_Size:K54[D20],Timestamp:X16};}}});if(K54.Close && (!V8e.Last || V8e.Last.DT <= K54.DT)){G14="tic";G14+="k";O$2=K54.Close;K9s=i41 && i41.finalClose;if(K9s || K9s === 0){O$2=K9s;}V8e.Last={DT:K54.DT,Price:O$2,Size:K54.LastSize === undefined && this.layout.interval == G14?K54.Volume:K54.LastSize,Timestamp:K54.LastTime || X16};}V8e.touched=new Date();if(!b1z){delete K54.Last;}this.runAppend("updateCurrentMarketData",arguments);};a_E.ChartEngine.prototype.clearCurrentMarketData=function(Q9R,M93){var T7g,U9Q,v0c;y_C.j07();if(this.runPrepend("clearCurrentMarketData",arguments)){return;}U9Q=[];if(!Q9R){for(T7g in this.charts){U9Q.push(this.charts[T7g]);}}else {U9Q.push(Q9R);}for(T7g=0;T7g < U9Q.length;T7g++){v0c=U9Q[T7g].currentMarketData;if(M93){delete v0c[M93];}else {for(var K0s in v0c){v0c[K0s]=undefined;}}}this.runAppend("clearCurrentMarketData",arguments);};};w6=k5j=>{var O_s=M2dNJ;var p6m;p6m=k5j.CIQ;p6m.ChartEngine.prototype.changeOccurred=function(Y8e){var J1R;J1R={stx:this,symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,layout:this.layout,drawings:this.drawingObjects};if(Y8e == "theme"){this.dispatch("theme",J1R);}if(this.currentlyImporting){return;}if(Y8e == "layout"){this.dispatch("layout",J1R);}else if(Y8e == "vector"){this.dispatch("drawing",J1R);}else if(Y8e == "preferences"){this.dispatch("preferences",J1R);}};O_s.E0w();p6m.ChartEngine.prototype.startAsyncAction=function(){if(!this.pendingAsyncs){this.pendingAsyncs=[];}this.pendingAsyncs.push(!!"1");};p6m.ChartEngine.prototype.registerChartDrawnCallback=function(M11){if(!this.asyncCallbacks){this.asyncCallbacks=[];}this.asyncCallbacks.push(M11);return {fc:M11};};p6m.ChartEngine.prototype.unregisterChartDrawnCallback=function(A3Q){O_s.E0w();for(var k1S=0;k1S < this.asyncCallbacks.length;k1S++){if(this.asyncCallbacks[k1S] == A3Q.fc){this.asyncCallbacks.splice(k1S,1);return;}}};p6m.ChartEngine.prototype.makeAsyncCallbacks=function(){if(!this.asyncCallbacks){return;}if(!this.pendingAsyncs || !this.pendingAsyncs.length){for(var n4u=0;n4u < this.asyncCallbacks.length;n4u++){this.asyncCallbacks[n4u]();}}};p6m.ChartEngine.prototype.completeAsyncAction=function(){O_s.E0w();this.pendingAsyncs.pop();this.makeAsyncCallbacks();};p6m.ChartEngine.prototype.addDomEventListener=function(l3K,n_h,T5P,O0C){l3K.addEventListener(n_h,T5P,O0C);this.eventListeners.push({element:l3K,event:n_h,function:T5P,options:O0C});};p6m.ChartEngine.prototype.addEventListener=function(g_w,F1V){var B89;if(g_w === "*"){for(var K2z in this.callbackListeners){this.callbackListeners[K2z].push(F1V);}}else if(g_w instanceof Array){for(var y8J=0;y8J < g_w.length;y8J++){this.callbackListeners[g_w[y8J]].push(F1V);}}else {B89=this.callbackListeners[g_w];if(!B89){throw new Error("Attempted to add an invalid listener.");}B89.push(F1V);}return {type:g_w,cb:F1V};};p6m.ChartEngine.prototype.removeEventListener=function(U66,g0j){O_s.j07();var d3u,q0X,S5v;if(!U66 || typeof U66 != "object"){U66={type:U66,cb:g0j};}d3u=function(S7a,C_B){for(var c9U=0;c9U < S7a.length;c9U++){if(S7a[c9U] === C_B){S7a.splice(c9U,1);return;}}};q0X=this.callbackListeners;if(U66.type === ((884.42,351.65) <= (6190,424.66)?1950 >= 848.47?(+"605.36",7810) >= "968.42" * 1?"*":(0x24cf,7.85e+3):9.70e+3:(592.06,0x1a78))){for(var e6S in q0X){d3u(q0X[e6S],U66.cb);}return;}if(!q0X[U66.type]){S5v="A";S5v+="ttempted to remove an";S5v+=" invalid li";S5v+="stener.";throw new Error(S5v);}d3u(q0X[U66.type],U66.cb);};p6m.ChartEngine.prototype.dispatch=function(C0t,o8L){var C9$;C9$=this.callbackListeners[C0t];if(C9$){for(var H6a=0;H6a < C9$.length;H6a++){if(C9$[H6a].call(this,o8L) === !0){return !"";}}}C9$=this.callbackListeners[("804.01" - 0,"1940" << 0) === 882?4050 == 8150?(8.98e+3,332.76):"0xbc6" - 0:"*"];if(C9$){for(var F6k=0;F6k < C9$.length;F6k++){if(C9$[F6k].call(this,o8L) === !0){return !0;}}}return !1;};p6m.ChartEngine.prototype.updateListeners=function(T50){var q_F;for(var U5C in this.plugins){q_F=this.plugins[U5C];if(q_F.display && q_F.listener){q_F.listener(this,T50);}}};};K_=w8A=>{var g0k;g0k=w8A.CIQ;g0k.ChartEngine.prototype.prepend=function(d1X,M55){var b$R=M2dNJ;var X1l,y8y,W4a,v_x,I2s;b$R.i3C(1);X1l=b$R.k$A(0,"1886888265");y8y=-+"1339386964";b$R.E0w();W4a=2;for(var J57=1;b$R.m7$(J57.toString(),J57.toString().length,+"41530") !== X1l;J57++){b$R.a3e(4);v_x=b$R.k$A(d1X,"prepend");W4a+=2;}if(b$R.m7$(W4a.toString(),W4a.toString().length,1812) !== y8y){b$R.i3C(84);v_x=b$R.k$A(d1X,"");}if(this instanceof g0k.ChartEngine){I2s=this.hasOwnProperty(v_x)?this[v_x]:[];this[v_x]=[M55].concat(I2s);}else {I2s=g0k.ChartEngine.prototype[v_x] || [];g0k.ChartEngine.prototype[v_x]=[M55].concat(I2s);}return {method:v_x,func:M55};};g0k.ChartEngine.prototype.append=function(R2k,G5d){var w7C,l6_;M2dNJ.i3C(4);w7C=M2dNJ.B0m(R2k,"append");if(this instanceof g0k.ChartEngine){l6_=this.hasOwnProperty(w7C)?this[w7C]:[];this[w7C]=l6_.concat(G5d);}else {l6_=g0k.ChartEngine.prototype[w7C] || [];g0k.ChartEngine.prototype[w7C]=l6_.concat(G5d);}return {method:w7C,func:G5d};};g0k.ChartEngine.prototype.runPrepend=function(o1a,g03,b3J){var I1W,w5s,w1E,c4w;I1W="pre";I1W+="pend";M2dNJ.i3C(4);w5s=M2dNJ.B0m(o1a,I1W);w1E=this.hasOwnProperty(w5s)?this[w5s]:[];w1E=w1E.concat(g0k.ChartEngine.prototype[w5s] || []);if(!w1E.length){return ![];}if(!b3J){b3J=this;}for(var Q_f=0;Q_f < w1E.length;Q_f++){c4w=w1E[Q_f].apply(b3J,g03);if(c4w){return c4w;}}return !({});};g0k.ChartEngine.prototype.runAppend=function(E_6,k2$,P$d){var b$_,T0C,O_H,V6a;M2dNJ.j07();b$_="a";b$_+="pp";b$_+="e";b$_+="nd";M2dNJ.i3C(4);T0C=M2dNJ.k$A(E_6,b$_);O_H=this.hasOwnProperty(T0C)?this[T0C]:[];O_H=O_H.concat(g0k.ChartEngine.prototype[T0C] || []);if(!O_H.length){return !!0;}if(!P$d){P$d=this;}for(var b0Q=+"0";b0Q < O_H.length;b0Q++){V6a=O_H[b0Q].apply(P$d,k2$);if(V6a){return V6a;}}return ![];};g0k.ChartEngine.prototype.removeInjection=function(N_$){var T2I,W1O;T2I=N_$.method;if(this instanceof g0k.ChartEngine){if(!this[T2I]){return;}for(W1O=0;W1O < this[T2I].length;W1O++){if(this[T2I][W1O] == N_$.func){this[T2I].splice(W1O,1);return;}}}else {if(!g0k.ChartEngine.prototype[T2I]){return;}for(W1O=0;W1O < g0k.ChartEngine.prototype[T2I].length;W1O++){if(g0k.ChartEngine.prototype[T2I][W1O] == N_$.func){g0k.ChartEngine.prototype[T2I].splice(W1O,1);return;}}}};g0k.ChartEngine.prototype.remove=function(S3S){var J9S=M2dNJ;J9S.E0w();var S4a;if(this instanceof g0k.ChartEngine){S4a="ap";S4a+="pe";S4a+="nd";J9S.a3e(4);delete this[J9S.k$A(S3S,S4a)];J9S.i3C(4);delete this[J9S.k$A(S3S,"prepend")];}else {J9S.i3C(4);delete g0k.ChartEngine.prototype[J9S.B0m(S3S,"append")];J9S.i3C(4);delete g0k.ChartEngine.prototype[J9S.k$A(S3S,"prepend")];}};};D5=C_0=>{var N7M,m$V;N7M=C_0.CIQ;m$V=C_0.timezoneJS;N7M.ChartEngine.prototype.convertToDataZone=function(b7D){var h7U;if((b7D || b7D === 0) && this.dataZone){h7U=N7M.convertTimeZone(b7D,null,this.dataZone);b7D=new Date(h7U.getFullYear(),h7U.getMonth(),h7U.getDate(),h7U.getHours(),h7U.getMinutes(),h7U.getSeconds(),h7U.getMilliseconds());}return b7D;};N7M.ChartEngine.prototype.debug=function(){};N7M.ChartEngine.prototype.fps=function(I9W,Y_v){var E2o=M2dNJ;var H_s,s6Y,T_I;I9W=I9W || "5" * 1;H_s=new Date().getTime();s6Y=0;T_I=this;E2o.a3e(50);console.log(E2o.B0m(I9W,"Running fps() for "," seconds"));n4a();function n4a(){var S_Z,l5k;E2o.a3e(8);var K3r=E2o.B0m(0,995,5);S_Z=(new Date().getTime() - H_s) / K3r;if(S_Z > I9W){E2o.a3e(40);l5k=E2o.B0m(s6Y,S_Z);E2o.a3e(4);console.log(E2o.k$A(l5k,"FPS="));if(Y_v){Y_v(l5k);}return;}T_I.draw();E2o.j07();s6Y++;if(N7M.ChartEngine.useAnimation){requestAnimationFrame(n4a);}else {setTimeout(n4a,0);}}};N7M.ChartEngine.htmlControls={mSticky:'
',iconsTemplate:'
'};N7M.ChartEngine.prototype.setChartType=function(i9D){var w6S,j8$,S6L,O$8;w6S="la";w6S+="yo";w6S+="u";w6S+="t";j8$="o";j8$+="h";j8$+="l";j8$+="c";S6L=this.layout;O$8=this.chart;if(S6L.aggregationType != j8$){S6L.aggregationType="ohlc";if(O$8.canvas){this.createDataSet();}}S6L.chartType=i9D;this.setMainSeriesRenderer();if(this.mainSeriesRenderer.isAggregation && this.setAggregationType){return this.setAggregationType(i9D);}O$8.defaultChartStyleConfig={type:i9D};if(this.displayInitialized){this.draw();}this.changeOccurred(w6S);};N7M.ChartEngine.prototype.setChartScale=function(c7E){var R34;M2dNJ.E0w();if(!c7E){c7E="linear";}R34={percent:!!({}),relative:!0};this.layout.chartScale=c7E;if(this.chart.canvas){this.draw();}this.changeOccurred("layout");};N7M.ChartEngine.prototype.checkLogScale=function(){var T0s,C_N,l_C,K1O,d4W,A8D;if(this.runPrepend("checkLogScale",arguments)){return;}if(this.layout.chartScale !== "log"){return ![];}T0s=![];if(this.chart.yAxis.lowValue <= +"0"){C_N=455898948;l_C=+"73295123";K1O=2;for(var H1n=1;M2dNJ.m7$(H1n.toString(),H1n.toString().length,74113) !== C_N;H1n++){d4W="n";d4W+="otifi";d4W+="cati";d4W+="on";A8D="l";A8D+="in";A8D+="e";A8D+="ar";this.setChartScale(A8D);this.dispatch(d4W,"logdeactivated");K1O+=2;}if(M2dNJ.b3_(K1O.toString(),K1O.toString().length,12735) !== l_C){this.setChartScale("logdeactivated");this.dispatch("logdeactivated","logdeactivated");}T0s=!!({});}this.runAppend("checkLogScale",arguments);return T0s;};N7M.ChartEngine.prototype.setAdjusted=function(F05){var F5v;F5v="la";F5v+="yo";F5v+="u";F5v+="t";this.layout.adj=F05;if(this.chart.canvas){this.createDataSet();this.draw();}this.changeOccurred(F5v);};N7M.ChartEngine.prototype.padOutPrice=function(j00,m3m){var x1S=M2dNJ;var l7u,C7b,i9Y,r1u;if(j00 !== +"0" && (!j00 || typeof j00 != "number")){return "";}if(!m3m && m3m !== 0){m3m=j00;}x1S.i3C(4);l7u=x1S.B0m(m3m,"");C7b=+"0";if(l7u.indexOf(3120 === (9560,93)?(5.99e+3,!""):(450,+"4930") == 779?(!!"",820.93):116 < (9490,4577)?".":!1) > -+"1"){x1S.i3C(5);var a0h=x1S.k$A(1,2);C7b=l7u.substring(l7u.indexOf(".")).length - a0h;}if(m3m >= 1000){x1S.a3e(14);C7b=Math.max(C7b,x1S.B0m(0,"0"));}else if(m3m < 2){C7b=Math.max(C7b,4);}else {C7b=Math.max(C7b,2);}i9Y=this.internationalizer;if(i9Y){r1u=i9Y.priceFormatters.length;if(C7b >= r1u){x1S.a3e(1);C7b=x1S.B0m(1,r1u);}j00=i9Y.priceFormatters[C7b].format(j00);}else {j00=j00.toFixed(C7b);}return j00;};N7M.ChartEngine.prototype.formatPrice=function(p8f,d0A){var t6_,z$Q,l7E;if(p8f !== 0 && (!p8f || typeof p8f == "undefined")){return "";}if(!d0A){d0A=this.currentPanel;}if(!d0A){d0A=this.chart.panel;}if(!d0A){return p8f.toString();}t6_=d0A.decimalPlaces;if(!t6_ && t6_ !== 0){t6_=d0A.chart.decimalPlaces;}if(!t6_ && t6_ !== "0" >> 64){return p8f.toString();}z$Q=this.internationalizer;if(z$Q){l7E=z$Q.priceFormatters.length;if(t6_ >= l7E){M2dNJ.i3C(1);t6_=M2dNJ.k$A(1,l7E);}p8f=z$Q.priceFormatters[t6_].format(p8f);}else {p8f=p8f.toFixed(t6_);}return p8f;};N7M.ChartEngine.prototype.determineMinMax=function(q0H,B6b,N5W,c0w,E6J,k23,G2G,O_l,w7S){var x60=M2dNJ;var c0u,t$t,L94,s9J,v$z,B6d,N10,i3w,q23,O0L,u7m;x60.j07();x60.a3e(20);var Y5h=x60.k$A(9,10,0,20);c0u=Number.MAX_VALUE * Y5h;t$t=Number.MAX_VALUE;L94=!!"";s9J=q0H.length;if(!w7S){w7S=[];}v$z=[];if(E6J){s9J=E6J;}for(var o6a=+"0";o6a <= s9J + 1;o6a++){if(B6b.length){if(o6a == s9J){B6d=this.getPreviousBar(this.chart,B6b[0],0);}else if(o6a == s9J + 1){B6d=this.getNextBar(this.chart,B6b[0],s9J - +"1");}else {B6d=q0H[o6a];}}if(!B6d)continue;if(!c0w){if(B6d.transform){L94=!!1;B6d=B6d.transform;}else if(L94)continue;;}N10=+"0";for(var R82=0;R82 < B6b.length;R82++){i3w=N7M.existsInObjectChain(B6d,B6b[R82]);if(!i3w)continue;q23=i3w.obj[i3w.member];if(typeof q23 == "number"){q23=[q23];}for(var g4F=0;g4F < q23.length;g4F++){O0L=q23[g4F];if(k23 && O0L instanceof Array){O0L=O0L[0];}if(O0L || O0L === +"0"){if(N5W === !!1 || N5W instanceof Array && N5W.indexOf(B6b[R82]) > -1){N10+=O0L;if(N10 > c0u){c0u=N10;}if(N10 < t$t){t$t=N10;}}else {if(O0L > c0u){c0u=O0L;}if(O0L < t$t){t$t=O0L;}v$z.push({value:O0L,quote:B6d});}}}}if(N5W === !0 || N5W instanceof Array && N5W.indexOf(B6b[R82]) > -1){v$z.push({value:N10,quote:B6d});}}u7m=[t$t,c0u];w7S.forEach(function(b5c){u7m=b5c(v$z,G2G,O_l) || u7m;});if(u7m[1] == Number.MAX_VALUE * -1){x60.a3e(82);u7m[1]=x60.k$A(0,"0");}if(u7m[0] == Number.MAX_VALUE){u7m[0]=0;}return u7m;};N7M.ChartEngine.prototype.initializeDisplay=function(S1W){var y6S=M2dNJ;var b4n,A2d,r15,B2f,U00,B4w,e9i,Y7f,m9v,f8G,q4d,r6E,z3F,x5s,l_2,W7$,b1W,U6j,q5U;b4n="Op";b4n+="e";b4n+="n";A2d="C";A2d+="los";function F5Y(x_J,r6P){var e77,P1X,D8e,n$0,W_H,T_8,L0p,z1r,c$z,Y3v;y6S.E0w();e77=![];P1X=B4w.layout && B4w.layout.studies && B4w.layout.studies[x_J.name];if(P1X && (!r6P || r6P.name == P1X.panel)){for(var z9J in P1X.outputMap){r15.push(z9J);if(P1X.study){if(P1X.study.renderer){r15=r15.concat(N7M.createObjectChainNames(z9J,e9i));}else if(!P1X.study.seriesFN){r15=r15.concat(N7M.createObjectChainNames(z9J,Y7f));}}}for(var q8i=0;q8i <= 2;q8i++){r15.push(P1X.name + "_hist" + (q8i?q8i:""));}e77=!!({});}if(!r6P){return;}x_J.studies=[];x_J.renderers=[];if(e77){x_J.studies.push(x_J.name);}for(var D0y in w8s){D8e=w8s[D0y];n$0=D8e.params;W_H=n$0.panel;if((n$0.yAxis || !B4w.panels[W_H] || B4w.panels[W_H].yAxis) != x_J)continue;if(W_H != r6P.name)continue;T_8=D8e.highLowBars?e9i:Y7f;U00=D8e.bounded;for(var D8d=0;D8d < D8e.seriesParams.length;D8d++){L0p=D8e.seriesParams[D8d];if(L0p.hidden)continue;z1r=void 0;if(L0p.subField){z1r=N7M.createObjectChainNames(L0p.symbol,[L0p.subField]).concat(L0p.symbol);}else if(L0p.symbol){z1r=N7M.createObjectChainNames(L0p.symbol,T_8).concat(L0p.symbol);}else if(L0p.field){z1r=L0p.field;}else if(x_J == S1W.panel.yAxis){z1r=T_8;}if(z1r){r15=r15.concat(z1r);}if(D8e.useSum){B2f=B2f.concat(z1r);}}x_J.renderers.push(D0y);}for(var s3i in B4w.overlays){c$z=B4w.overlays[s3i];if(c$z.panel != r6P.name)continue;if(c$z.name == x_J.name)continue;Y3v=c$z.getYAxis(B4w);if(Y3v != x_J)continue;x_J.studies.push(c$z.name);if(S1W.includeOverlaysInMinMax){F5Y({name:c$z.name});}}}A2d+="e";if(this.runPrepend("initializeDisplay",arguments)){return;}r15=[];B2f=[];U00=!({});B4w=this;e9i=[A2d,b4n,"High","Low"];Y7f=[S1W.defaultPlotField || "Close"];var {mainSeriesRenderer:Z$m}=this;var {dataSegment:v2Y, seriesRenderers:w8s}=S1W;f8G=null;q4d=Math.floor((S1W.width - this.micropixels) / this.layout.candleWidth);r6E=-1082273245;z3F=2135114904;x5s=2;for(var b18=1;y6S.b3_(b18.toString(),b18.toString().length,+"14891") !== r6E;b18++){if(S1W.scroll > S1W.maxTicks && S1W.maxTicks > q4d + +"1"){y6S.a3e(2);var F9C=y6S.k$A(13,6,3,16,11);f8G=v2Y.length - F9C;}l_2=[];x5s+=2;}if(y6S.b3_(x5s.toString(),x5s.toString().length,80815) !== z3F){if(S1W.scroll < S1W.maxTicks || S1W.maxTicks >= q4d - 7){y6S.a3e(131);var G9Z=y6S.k$A(3,3,21,9);f8G=v2Y.length + G9Z;}l_2=[];}for(var c44 in this.panels){W7$=this.panels[c44];l_2=W7$.yaxisLHS.concat(W7$.yaxisRHS);for(var a86=0;a86 < l_2.length;a86++){b1W=l_2[a86];r15=[];B2f=[];U6j=S1W.transformFunc && b1W == S1W.panel.yAxis;F5Y(b1W,W7$);if(!this.currentlyImporting && !b1W.renderers.length && !b1W.studies.length){this.deleteYAxisIfUnused(W7$,b1W);continue;}if(Z$m && Z$m.determineMax){m9v=Z$m.determineMax(v2Y,r15,B2f,!U6j,f8G,U00,W7$,b1W);}else {m9v=this.determineMinMax(v2Y,r15,B2f,!U6j,f8G,U00,W7$,b1W);}if(this.baselineHelper){m9v=this.setBaselineMinMax(m9v,b1W);}b1W.lowValue=m9v[+"0"];b1W.highValue=m9v[1];if(b1W == S1W.panel.yAxis){S1W.lowValue=b1W.lowValue;S1W.highValue=b1W.highValue;}}}q5U=S1W.state.aggregation;if(q5U && q5U.box){y6S.a3e(133);var F8O=y6S.B0m(13,21,20,19,518);S1W.lowValue-=q5U.box / ("2" | F8O);y6S.a3e(134);var T$z=y6S.k$A(20,20,2,9);S1W.highValue+=q5U.box / T$z;}this.runAppend("initializeDisplay",arguments);};N7M.ChartEngine.prototype.setMarket=function(C4z,Y10){if(!N7M.Market){return;}if(!Y10){Y10=this.chart;}M2dNJ.j07();Y10.market=new N7M.Market(C4z);for(var s7B in this.layout.marketSessions){Y10.market.disableSession(s7B,this.layout.marketSessions[s7B]);}};N7M.ChartEngine.prototype.setMarketFactory=function(r2c){this.marketFactory=r2c;};N7M.ChartEngine.prototype.setResizeTimer=function(W8R){M2dNJ.j07();this.resizeDetectMS=W8R;this.resizeHandle=N7M.resizeObserver(this.chart.container,W$Y(this),this.resizeHandle,W8R);function W$Y(I1O,v6U){var H6V;H6V=function(){M2dNJ.j07();if(!I1O.chart.canvas){return;}if(!N7M.isAndroid){if(I1O.chart.canvas.height != Math.floor(I1O.devicePixelRatio * I1O.chart.container.clientHeight) || I1O.chart.canvas.width != Math.floor(I1O.devicePixelRatio * I1O.chart.container.clientWidth)){I1O.resizeChart();}}};M2dNJ.E0w();return function(){var S0O;S0O="undefi";S0O+="n";S0O+="ed";if(typeof ResizeObserver !== S0O){if(N7M.ChartEngine.useAnimation){requestAnimationFrame(H6V);}else {setTimeout(H6V,0);}}else {H6V();}};}};N7M.ChartEngine.prototype.getRenderedItems=function(){var B0C,j9A,m8p,T72,N3o,G4x,J4E,e2e;B0C=this.chart;j9A=this.currentPanel;if(!j9A){return;}m8p=["Open","High","Low","Close"];T72=["Close"];N3o=[];for(var i2c in this.overlays){if(this.overlays[i2c].panel !== j9A.name)continue;N3o=N3o.concat(Object.keys(this.overlays[i2c].outputMap));}for(var K6U in B0C.seriesRenderers){G4x=B0C.seriesRenderers[K6U];if(G4x.params.panel != j9A.name)continue;for(var u58 in G4x.seriesParams){J4E=G4x.seriesParams[u58];e2e=G4x.highLowBars?m8p:T72;if(J4E.subField){N3o=N3o.concat(N7M.createObjectChainNames(J4E.symbol,[J4E.subField])).concat(J4E.symbol);}else if(J4E.symbol){N3o=N3o.concat(N7M.createObjectChainNames(J4E.symbol,e2e)).concat(J4E.symbol);}else if(J4E.field){N3o.push(J4E.field);}else if(j9A == B0C.panel){N3o=N3o.concat(e2e);}}}return N3o;};N7M.ChartEngine.prototype.setTransform=function(k$e,l2Q,z4o){M2dNJ.j07();k$e.transformFunc=l2Q;k$e.untransformFunc=z4o;};N7M.ChartEngine.prototype.unsetTransform=function(E3H){delete E3H.transformFunc;M2dNJ.j07();delete E3H.untransformFunc;for(var S$g=0;E3H.dataSet && S$g < E3H.dataSet.length;S$g++){E3H.dataSet[S$g].transform=null;}};N7M.ChartEngine.prototype.isEquationChart=function(s9Q){M2dNJ.E0w();if(s9Q && s9Q[0] == ((870.22,4250) < (+"6110",441.88)?(6.06e+3,"k"):449.72 <= (668,5962)?("9823" - 0,2497) == (1529,386.21)?(!!1,3.14e+3):"=":"k")){if(!this.allowEquations || !N7M.fetchEquationChart){console.warn("Error, equation chart option requires equationsAdvanced.js");return !1;}return !0;}return !!0;};N7M.ChartEngine.prototype.correctIfOffEdge=function(n9d){var E8A=M2dNJ;var b9R,G8$,X2l,x$_,P_I,K$e,W_C,P31,H4x,a72,X3J,H2v;b9R="correc";b9R+="tIfOffEdge";G8$="cor";G8$+="rectIfO";G8$+="f";G8$+="fEdge";if(this.runPrepend(G8$,arguments)){return;}for(var U2a in this.charts){X2l=this.charts[U2a];x$_=X2l.dataSet;P_I=X2l.maxTicks;K$e=this.layout;W_C=this.minimumLeftBars;P31=Math.min(W_C,P_I);if(X2l.allowScrollPast){E8A.a3e(1);H4x=E8A.k$A(P31,P_I);if(P31 > x$_.length){H4x=P_I - x$_.length;}if(X2l.scroll - H4x >= x$_.length){X2l.scroll=x$_.length + H4x - +"1";this.micropixels=0;}if(X2l.scroll <= P31){X2l.scroll=P31;this.micropixels=0;}}else {if(X2l.scroll < P31){X2l.scroll=P31;}if(X2l.scroll > x$_.length){X2l.scroll=x$_.length;}}if(X2l.allowScrollFuture === !!""){a72=this.getLabelOffsetInPixels(X2l,K$e.chartType) + K$e.candleWidth * X2l.whiteSpaceFutureTicks;E8A.i3C(8);var H6d=E8A.B0m(11,0,12);X3J=P_I - Math.round(a72 / K$e.candleWidth) - H6d;H2v=this.micropixels < 0?X2l.scroll - 1:X2l.scroll;if(H2v < X3J){X2l.scroll=X3J;this.micropixels=+"0";}}}this.runAppend(b9R,arguments);};N7M.ChartEngine.prototype.getStartDateOffset=function(){for(var q2o=0;q2o < this.chart.dataSegment.length;q2o++){if(this.chart.dataSegment[q2o]){return q2o;}}M2dNJ.a3e(13);return M2dNJ.B0m("0",0);};N7M.ChartEngine.prototype.setStartDate=function(v3Z){var b3C;for(var Q_o=0;Q_o < this.chart.dataSet.length;Q_o++){b3C=this.chart.dataSet[Q_o];if(b3C.DT.getTime() == v3Z.getTime()){this.chart.scroll=this.chart.dataSet.length - Q_o;this.draw();return;}}};N7M.ChartEngine.prototype.clearPixelCache=function(){M2dNJ.j07();var K21,O$V;for(var Q_W in this.panels){K21=this.panels[Q_W];K21.cacheHigh=null;K21.cacheLow=null;K21.cacheLeft=1000000;K21.cacheRight=-1;}for(var w8x in this.charts){O$V=this.charts[w8x];if(!O$V.dataSet)continue;for(var x4Y=0;x4Y < O$V.dataSet.length;x4Y++){O$V.dataSet[x4Y].cache={};}}};N7M.ChartEngine.prototype.adjustBackingStore=function(j_I,z_E){var i0W=M2dNJ;var y8L,e6Y,t6G,a0r;this.devicePixelRatio=window.devicePixelRatio || 1;if(this.devicePixelRatio < "1.0" * 1){this.devicePixelRatio=1.0;}y8L=z_E.webkitBackingStorePixelRatio || z_E.mozBackingStorePixelRatio || z_E.msBackingStorePixelRatio || z_E.oBackingStorePixelRatio || z_E.backingStorePixelRatio || 1;e6Y=this.devicePixelRatio / y8L;if(!this.useBackingStore){this.devicePixelRatio=this.adjustedDisplayPixelRatio=1;return;}if(!N7M.isAndroid || N7M.is_chrome || N7M.isFF){t6G=j_I.width;a0r=j_I.height;i0W.a3e(38);j_I.width=i0W.k$A(t6G,e6Y);i0W.i3C(38);j_I.height=i0W.B0m(a0r,e6Y);i0W.a3e(4);j_I.style.width=i0W.k$A("px",t6G);i0W.i3C(4);j_I.style.height=i0W.k$A("px",a0r);z_E.scale(e6Y,e6Y);this.adjustedDisplayPixelRatio=e6Y;this.backing={ratio:e6Y,width:j_I.width,height:j_I.height,styleWidth:t6G,styleHeight:a0r};}};N7M.ChartEngine.prototype.reconstituteBackingStore=function(){var y7Q,s$z;if(!this.useBackingStore || !this.backing){return;}y7Q=[this.chart.canvas];if(this.useBackgroundCanvas){y7Q.push(this.chart.backgroundCanvas);}s$z=this.backing;y7Q.forEach(function(S9J){if(S9J.width == s$z.width){return;}M2dNJ.E0w();S9J.width=s$z.width;S9J.height=s$z.height;S9J.context.scale(s$z.ratio,s$z.ratio);});this.adjustedDisplayPixelRatio=s$z.ratio;this.draw();};N7M.ChartEngine.prototype.disableBackingStore=function(){var W2Z,R5P;if(!this.useBackingStore || !this.backing){return;}W2Z=[this.chart.canvas];M2dNJ.j07();if(this.useBackgroundCanvas){W2Z.push(this.chart.backgroundCanvas);}R5P=this.backing;W2Z.forEach(function(a6I){if(a6I.width == R5P.styleWidth){return;}a6I.width=R5P.styleWidth;a6I.height=R5P.styleHeight;a6I.context.scale(1,1);});M2dNJ.i3C(82);this.adjustedDisplayPixelRatio=M2dNJ.k$A(32,"1");this.draw();};N7M.ChartEngine.prototype.getBackgroundCanvas=function(G58){M2dNJ.j07();if(!G58){G58=this.chart;}return this.useBackgroundCanvas?G58.backgroundCanvas:G58.canvas;};N7M.ChartEngine.prototype.resizeCanvas=function(){var i_p=M2dNJ;var A8L,w5H,I42,U1T,b0f,v_$,W$z,r2A,y5S,S6s;A8L="u";A8L+="n";A8L+="def";A8L+="ined";w5H=this.chart.canvas;I42=this.chart.context;if(w5H && I42){this.floatCanvas.height=this.chart.tempCanvas.height=this.chart.backgroundCanvas.height=w5H.height=this.chart.container.clientHeight;this.floatCanvas.width=this.chart.tempCanvas.width=this.chart.backgroundCanvas.width=w5H.width=this.chart.container.clientWidth;this.adjustBackingStore(w5H,I42);this.adjustBackingStore(this.chart.tempCanvas,this.chart.tempCanvas.context);this.adjustBackingStore(this.floatCanvas,this.floatCanvas.context);this.adjustBackingStore(this.chart.backgroundCanvas,this.chart.backgroundCanvas.context);}U1T=this.container.getBoundingClientRect();this.top=U1T.top;this.left=U1T.left;this.canvasWidth=this.chart.canvasWidth=this.chart.container.clientWidth;this.right=this.left + this.canvasWidth;this.height=this.chart.container.clientHeight;this.width=this.right - this.left;i_p.j07();if(this.width === 0 && !this.container.dimensionlessCanvas && this.container.closest("html")){console.log("warning: zero width chart. Check CSS for chart container.");}this.bottom=this.top + this.height;this.calculateYAxisPositions();this.chart.canvasRight=this.right;this.chart.canvasHeight=this.height;b0f=this.layout.candleWidth;if(typeof b0f == A8L){b0f=8;}for(var v5H in this.charts){v_$=this.charts[v5H];this.setCandleWidth(b0f,v_$);if(v_$.scroll < v_$.width / b0f){v_$.scroll=Math.floor(v_$.width / b0f);W$z=Math.round(this.preferences.whitespace / this.layout.candleWidth);v_$.scroll-=W$z;}r2A=10;try{S6s="1";S6s+="0";S6s+=":";S6s+="00";i_p.a3e(135);var z2D=i_p.B0m(3,1,11,0,12);y5S=I42.measureText(S6s).width * z2D;}catch(A$5){y5S=100;}while(r2A > 1){if(this.chart.width / y5S > r2A)break;r2A/=1.5;}v_$.xAxis.autoComputedTickSizePixels=Math.round(this.chart.width / r2A);if(v_$.xAxis.autoComputedTickSizePixels < "1" >> 32){i_p.a3e(82);v_$.xAxis.autoComputedTickSizePixels=i_p.B0m(0,"1");}}};N7M.ChartEngine.prototype.setCandleWidth=function(e1P,V4w){if(!V4w){V4w=this.chart;}e1P=this.constrainCandleWidth(e1P);M2dNJ.j07();this.layout.candleWidth=e1P;M2dNJ.a3e(136);var P3E=M2dNJ.k$A(4,7,3,19,85);V4w.maxTicks=Math.round(V4w.width / e1P) + P3E;};N7M.ChartEngine.prototype.constrainCandleWidth=function(E5V){var Y9A,f8K,k0M;Y9A=this.minimumCandleWidth;f8K=this.maximumCandleWidth;k0M=this.animations.zoom;M2dNJ.j07();if(Y9A && E5V < Y9A){E5V=Y9A;if(k0M && k0M.running){k0M.stop();}}if(f8K && E5V > f8K){E5V=f8K;if(k0M && k0M.running){k0M.stop();}}return E5V;};N7M.ChartEngine.prototype.resizeChart=function(W7w){M2dNJ.E0w();var o4P,n6W;o4P="resi";o4P+="zeCh";o4P+="art";if(this.runPrepend("resizeChart",arguments)){return;}if(W7w !== !!0){W7w=!!"1";}if(W7w){this.preAdjustScroll();}n6W=this.chart.canvasHeight;this.resizeCanvas();if(W7w){this.postAdjustScroll();}if(this.displayInitialized){this.adjustPanelPositions();this.draw();;}else if(this.chart.canvasHeight !== "0" >> 64 && n6W === 0){this.adjustPanelPositions();this.draw();}this.doDisplayCrosshairs();this.updateChartAccessories();this.runAppend(o4P,arguments);};N7M.ChartEngine.prototype.clear=function(){M2dNJ.j07();var B2c;this.displayInitialized=!"1";for(var c0W in this.layout.studies){B2c=this.layout.studies[c0W];N7M.getFn("Studies.removeStudy")(this,B2c);}if(this.controls.chartControls){this.controls.chartControls.style.display="none";}this.chart.panel.title.innerHTML="";this.chart.panel.title.appendChild(document.createTextNode(this.chart.panel.display));};N7M.ChartEngine.prototype.fillScreen=function(){var g$p,N8A,I2J,D7y,V7j;g$p=this.chart;N8A=this.layout.candleWidth;I2J=g$p.width - this.preferences.whitespace;D7y=g$p.dataSet.length;if(D7y * N8A >= I2J){this.draw();return;}if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){D7y--;}M2dNJ.a3e(40);V7j=M2dNJ.k$A(I2J,D7y);this.setCandleWidth(V7j,g$p);this.home({maintainWhitespace:!![]});};N7M.ChartEngine.prototype.setMaxTicks=function(o_v,L$J){M2dNJ.j07();var c4Y;if(!L$J){L$J={};}o_v=Math.round(o_v);if(o_v < +"2"){o_v=2;}c4Y=L$J.padding?L$J.padding:"0" * 1;this.layout.candleWidth=(this.chart.width - c4Y) / o_v;if(!this.layout.candleWidth){this.layout.candleWidth=8;}this.chart.maxTicks=Math.round(this.chart.width / this.layout.candleWidth - +"0.499");if(L$J.padding || L$J.padding === ("0" | 0)){M2dNJ.a3e(100);this.chart.scroll=M2dNJ.k$A("1",o_v);};};N7M.ChartEngine.prototype.initializeChart=function(L0M){var v3$=M2dNJ;var F6f,D0b,B8L,X1k,x66,g_c,v8_,g1E,B0s,y8s,R3Y,v4E,S2z,D$a,z0d,O36,Z8b,d5j,b_8,S2v,b6T,P0T,y5y,C7L,v3R,r$p,f9w,i$S;F6f="ca";F6f+="n";F6f+="v";F6f+="as";D0b="canva";D0b+="s";if(this.runPrepend("initializeChart",arguments)){return;}B8L=this.chart;if(!B8L.symbolObject.symbol){B8L.symbolObject.symbol=B8L.symbol;}if(this.locale){this.setLocale(this.locale);}if(!this.displayZone && N7M.ChartEngine.defaultDisplayTimeZone){this.setTimeZone(null,N7M.ChartEngine.defaultDisplayTimeZone);}this.resetDynamicYAxis({noRecalculate:!![]});this.calculateYAxisPositions();this.micropixels=0;if(L0M){B8L.container=L0M;}else {L0M=B8L.container;}L0M.stx=this;if(!L0M.CIQRegistered){L0M.CIQRegistered=!![];N7M.ChartEngine.registeredContainers.push(L0M);}if(this.registerHTMLElements){this.registerHTMLElements();}X1k=B8L.canvas;x66=B8L.backgroundCanvas;g_c=B8L.tempCanvas;v8_=this.floatCanvas;g1E=B8L.canvasShim;if(X1k && document.createElement(D0b).getContext){if(!X1k.id){v3$.a3e(1);B0s=v3$.B0m(0,"1029856105");y8s=1460539916;R3Y=+"2";for(var V91=1;v3$.m7$(V91.toString(),V91.toString().length,25836) !== B0s;V91++){L0M.removeChild(X1k);B8L.canvas=1;R3Y+=2;}if(v3$.b3_(R3Y.toString(),R3Y.toString().length,50752) !== y8s){L0M.removeChild(X1k);B8L.canvas=null;}}if(g_c && !g_c.id){L0M.removeChild(g_c);B8L.tempCanvas=null;}if(v8_ && !v8_.id){L0M.removeChild(v8_);this.floatCanvas=null;}if(x66 && !x66.id){L0M.removeChild(x66);v4E=-1878981405;S2z=-893771909;D$a=+"2";for(var L9X=1;v3$.m7$(L9X.toString(),L9X.toString().length,42513) !== v4E;L9X++){v3$.a3e(13);B8L.backgroundCanvas=v3$.k$A("1",0);D$a+=+"2";}if(v3$.b3_(D$a.toString(),D$a.toString().length,95637) !== S2z){B8L.backgroundCanvas=+"8";}B8L.backgroundCanvas=null;}}else {this.setCandleWidth(this.layout.candleWidth);}if(!B8L.backgroundCanvas){x66=B8L.backgroundCanvas=document.createElement("canvas");}L0M.appendChild(x66);O4l(x66);if(!B8L.canvasShim){g1E=B8L.canvasShim=document.createElement("div");}g1E.className="stx-canvas-shim";L0M.appendChild(g1E);if(!B8L.canvas){X1k=B8L.canvas=document.createElement(F6f);}L0M.appendChild(X1k);O4l(X1k);B8L.context=X1k.context;if(!B8L.tempCanvas){g_c=B8L.tempCanvas=document.createElement("canvas");}L0M.appendChild(g_c);O4l(g_c,!0);if(!this.floatCanvas){v8_=this.floatCanvas=document.createElement("canvas");}L0M.appendChild(v8_);O4l(v8_,!!1);this.resizeCanvas();if(N7M.isAndroid){g_c.ontouchstart=v8_.ontouchstart=function(j5c){if(j5c.preventDefault){j5c.preventDefault();}};}function O4l(z3b,y$Y){var Z_f,s0n;Z_f="a";Z_f+="b";Z_f+="so";Z_f+="lute";z3b.context=z3b.getContext("2d");z3b.context.lineWidth=1;s0n=z3b.style;s0n.position=Z_f;v3$.E0w();s0n.left="0px";if(y$Y){s0n.display="none";}}z0d=this.panels;B8L.panel.display=B8L.symbol;if(B8L.symbolDisplay){B8L.panel.display=B8L.symbolDisplay;}this.adjustPanelPositions();B8L.panel=z0d[B8L.name];for(var o9n in z0d){O36=z0d[o9n].yaxisLHS.concat(z0d[o9n].yaxisRHS);for(var s07=0;s07 < O36.length;s07++){O36[s07].height=z0d[o9n].yAxis.height;this.calculateYAxisMargins(O36[s07]);;}}this.initialWhitespace=this.preferences.whitespace;if(B8L.dataSet && B8L.dataSet.length > 0){B8L.scroll=Math.floor(B8L.width / this.layout.candleWidth);Z8b=Math.round(this.preferences.whitespace / this.layout.candleWidth);B8L.scroll-=Z8b;}if(N7M.touchDevice){d5j=".ve";d5j+="c";d5j+="torTrashC";d5j+="an";b_8=".overlayEd";b_8+="it";S2v=L0M.querySelector(b_8);b6T=L0M.querySelector(".overlayTrashCan");P0T=L0M.querySelector(d5j);y5y=function(x97,X1z,J0K){return function(T5t){x97.deleteHighlighted(X1z,J0K);};};if(S2v){N7M.safeClickTouch(S2v,y5y(this,!!"1",!!({})));if(b6T){N7M.safeClickTouch(b6T,y5y(this,!1));}}else if(b6T){N7M.safeClickTouch(b6T,y5y(this,!!({})));}if(P0T){N7M.safeClickTouch(P0T,y5y(this,!!1));}}if(this.manageTouchAndMouse){this.registerTouchAndMouseEvents();}if(this.handleMouseOut){L0M.onmouseout=(function(G$C){return function(I3P){G$C.handleMouseOut(I3P);};})(this);N7M.smartHover();}if(this.abortDrawings){this.abortDrawings();}this.undoStamps=[];for(var T7Z in z0d){C7L=z0d[T7Z];if(C7L.markerHolder){L0M.removeChild(C7L.markerHolder);C7L.markerHolder=null;}}for(var k25 in this.plugins){v3R=this.plugins[k25];if(v3R.display){if(v3R.initializeChart){v3R.initializeChart(this);}}}if(!this.resizeListenerInitialized){r$p="r";r$p+="e";r$p+="si";r$p+="ze";f9w=this;this.resizeListenerInitialized=!!({});i$S=function(){v3$.E0w();return function(P9r){f9w.resizeChart();};};this.addDomEventListener(window,r$p,i$S(),!![]);}if(B8L.baseline.userLevel){B8L.baseline.userLevel=null;}this.setResizeTimer(this.resizeDetectMS);this.runAppend("initializeChart",arguments);};N7M.ChartEngine.prototype.destroy=function(){var k_T=M2dNJ;var x25,n7N,Q0i,Q5v;k_T.E0w();this.setResizeTimer(0);if(this.quoteDriver){this.quoteDriver.die();}this.styles={};for(var t5E=0;t5E < this.eventListeners.length;t5E++){x25=this.eventListeners[t5E];x25.element.removeEventListener(x25.event,x25["function"],x25.options);}this.touchAndMouseEventsRegistered=!!"";this.eventListeners=[];if(this.streamParameters.timeout){clearTimeout(this.streamParameters.timeout);}n7N=N7M.ChartEngine.registeredContainers;Q0i=n7N.indexOf(this.chart.container);if(Q0i > -1){k_T.a3e(38);n7N.splice(Q0i,k_T.k$A("1",1));}if(this.slider){Q5v=n7N.indexOf(this.slider.slider.chart.container);if(Q5v > -1){k_T.a3e(14);n7N.splice(Q5v,k_T.k$A(0,"1"));}}};N7M.ChartEngine.prototype.preAdjustScroll=function(o0a){if(!o0a){o0a=this.chart;}M2dNJ.j07();this.previousAdjust={chart:o0a,scroll:o0a.scroll,maxTicks:o0a.maxTicks};};N7M.ChartEngine.prototype.postAdjustScroll=function(){M2dNJ.E0w();var s7w;if(!this.previousAdjust){return;}s7w=this.previousAdjust.chart;s7w.scroll=this.previousAdjust.scroll + (s7w.maxTicks - this.previousAdjust.maxTicks);if(this.displayInitialized){this.draw();}};N7M.ChartEngine.prototype.translateIf=function(j5N){if(this.translationCallback){return this.translationCallback(j5N);}M2dNJ.E0w();return j5N;};N7M.ChartEngine.prototype.doCleanupDates=function(C0G,J0S){var e9C=M2dNJ;var r8W,o4F,s_w,n9B,w$1,M1E;if(!C0G || !C0G.length){return;}for(var w_9=0;w_9 < C0G.length;w_9++){r8W=C0G[w_9];o4F=r8W.DT;if(!o4F && !r8W.Date)continue;if(r8W.DT && Object.prototype.toString.call(o4F) == "[object String]" && o4F.length <= 10){o4F=new Date(o4F);o4F.setMinutes(o4F.getMinutes() + o4F.getTimezoneOffset());}else {s_w="[ob";s_w+="j";s_w+="ect Date]";n9B=!"";if(!r8W.DT){o4F=N7M.strToDateTime(r8W.Date);if(r8W.Date.length <= 10){n9B=!({});}}if(Object.prototype.toString.call(o4F) != s_w){o4F=new Date(o4F);}if(m$V.Date && this.dataZone && n9B){w$1=new m$V.Date(o4F.getFullYear(),o4F.getMonth(),o4F.getDate(),o4F.getHours(),o4F.getMinutes(),this.dataZone);e9C.a3e(137);var h_j=e9C.B0m(6,7017,13,2,8000);M1E=o4F.getSeconds() * h_j + o4F.getMilliseconds();o4F=new Date(w$1.getTime() + M1E);}if(N7M.ChartEngine.isDailyInterval(J0S)){e9C.i3C(82);o4F.setHours(e9C.k$A(0,"0"),0,0,+"0");}}if(!r8W.DT){r8W.Date=N7M.yyyymmddhhmmssmmm(o4F);}r8W.DT=o4F;}};N7M.ChartEngine.prototype.doCleanupGaps=function(c7q,L00,c6x){var n6p=M2dNJ;var P6u,g6C,s4E,V9O,s1T,Z6r,i7V,w$E,z1R,t6Q,a4B,E5p,i99,X$I,n$2;P6u="ti";P6u+="c";P6u+="k";if(!c7q || !c7q.length){return c7q;}g6C=this.layout.interval;c6x=c6x?c6x:{};if(!L00){L00=this.chart;}if(!N7M.Market || !L00.market){return c7q;}if(!c6x.noCleanupDates){this.doCleanupDates(c7q,g6C);}s4E=c6x.cleanupGaps;if(s4E === ![]){return c7q;}if(!s4E || s4E === !![]){s4E=this.cleanupGaps || s4E;}n6p.a3e(110);V9O=n6p.k$A(s4E,"gap");if(!s4E){return c7q;}if(g6C == P6u){return c7q;}if(g6C == "month" || g6C == "week"){if(this.dontRoll){return c7q;}g6C="day";}n6p.E0w();s1T=function(d9Q){if(d9Q.DT){if(Object.prototype.toString.call(d9Q.DT) != "[object Date]"){return new Date(d9Q.DT);}return new Date(+d9Q.DT);}n6p.E0w();return N7M.strToDateTime(d9Q.Date);};Z6r=[];i7V=c7q[0];Z6r.push(i7V);w$E={begin:s1T(i7V),interval:g6C,periodicity:1,timeUnit:this.layout.timeUnit};z1R=new N7M.Market(L00.market.market_def);t6Q=z1R.newIterator(w$E);if(this.extendedHours && this.extendedHours.filter){t6Q.market.enableAllAvailableSessions();}a4B=L00.defaultPlotField;for(var K6V=0;K6V < c7q.length;K6V++){if(c7q[K6V][a4B] !== undefined)break;if(c7q[K6V].Value !== undefined){E5p="V";E5p+="a";E5p+="l";E5p+="ue";a4B=E5p;break;}}function O06(d_4,U6m){var i7$,i6O,I88,H5S,l4F;i7$=c6x.field;i6O=i7$?i7V[i7$]:i7V;if(i6O === undefined){i6O={};}I88=V9O?null:i6O[a4B];n6p.j07();H5S=V9O?null:i6O.Adj_Close;while(+d_4 < +U6m){l4F={DT:d_4};if(i7$){}else {Z6r.push(l4F);N7M.extend(l4F,{Open:I88,High:I88,Low:I88,Close:I88,Volume:0,Adj_Close:H5S});}d_4=t6Q.next();}}for(var d$K=+"1";d$K < c7q.length;d$K++){X$I=c7q[d$K];i99=t6Q.next();n$2=s1T(X$I);if(i99 < n$2){O06(i99,n$2);i99=t6Q.market._convertFromMarketTZ(t6Q.begin,t6Q.outZone);}while(n$2 < i99){if(++d$K == c7q.length){return Z6r;}g5y(i7V,X$I);Z6r.push(X$I);i7V=X$I;X$I=c7q[d$K];n$2=s1T(X$I);}if(i99 < n$2){d$K--;i99=t6Q.previous();}else {g5y(i7V,X$I);Z6r.push(X$I);i7V=X$I;}}function g5y(o1I,m5t){var w5V,U7_,f$C,m_A,J0D;w5V=c6x.field;if(w5V){U7_="und";U7_+="efi";U7_+="ne";U7_+="d";f$C="un";f$C+="def";f$C+="i";f$C+="ned";if(typeof o1I[w5V] != f$C && typeof m5t[w5V] == U7_){m5t[w5V]=V9O?null:o1I[w5V];}return;}if(V9O){return;}m_A=o1I[a4B];J0D=m5t[a4B];if(typeof m_A != "undefined" && typeof J0D == "undefined"){N7M.ensureDefaults(m5t,{Close:m_A,Open:m_A,High:m_A,Low:m_A,Volume:"0" ^ 0,Adj_Close:o1I.Adj_Close});}}return Z6r;};N7M.ChartEngine.prototype.getCreatingLibrary=function(){M2dNJ.E0w();return C_0;};};S8=d7o=>{var k4g;k4g=d7o.CIQ;k4g.ChartEngine.Panel=function(u25,N5Y){if(N5Y){this.yAxis=N5Y;}else {this.yAxis=new k4g.ChartEngine.YAxis();}this.name=u25;M2dNJ.E0w();this.state={};;};k4g.extend(k4g.ChartEngine.Panel.prototype,{name:null,display:null,chart:null,yAxis:null,shareChartXAxis:null,top:null,bottom:null,height:null,percent:null,displayEdgeIfPadded:!!({}),noDrag:!"1",exportable:!!({})},!!1);k4g.ChartEngine.prototype.whichPanel=function(o$Y){var d7m;for(var I13 in this.panels){d7m=this.panels[I13];if(d7m.hidden)continue;if(o$Y >= d7m.top && o$Y < d7m.bottom){return d7m;}}return null;};k4g.ChartEngine.prototype.panelExists=function(E9r){var L2C;for(var p4q in this.panels){L2C=this.panels[p4q];if(L2C.name == E9r){return !!1;}}return !1;};k4g.ChartEngine.prototype.storePanels=function(){var j1a,x7_;if(!this.layout){this.layout={};}j1a=this.layout;j1a.panels={};for(var m0W in this.panels){x7_=this.panels[m0W];j1a.panels[x7_.name]={percent:x7_.percent,display:x7_.display,yAxis:x7_.yAxis};}};k4g.ChartEngine.prototype.savePanels=function(y27){this.storePanels();if(y27 !== !({})){this.changeOccurred("layout");}};k4g.ChartEngine.prototype.privateDeletePanel=function(a01){var G4L,H_P,g4Q,D8f,j7u;M2dNJ.j07();for(var P9I in this.layout.studies){G4L=this.layout.studies[P9I];if(G4L.panel == a01.name){this.cleanupRemovedStudy(G4L);}}delete this.panels[a01.name];for(var U6A in this.overlays){if(this.overlays[U6A].panel == a01.name){if(this.layout.studies){this.cleanupRemovedStudy(this.layout.studies[U6A]);}delete this.overlays[U6A];}}for(var Q$A in this.chart.series){if(this.chart.series[Q$A].parameters.panel == a01.name){this.removeSeries(this.chart.series[Q$A],this.chart);}}if(a01.holder){this.chart.container.removeChild(a01.holder);if(this.getMarkerArray){H_P=-+"639680506";g4Q=1489667906;D8f=2;for(var I6O=1;M2dNJ.b3_(I6O.toString(),I6O.toString().length,"32368" | 80) !== H_P;I6O++){j7u=this.getMarkerArray("",a01.name);D8f+=2;}if(M2dNJ.m7$(D8f.toString(),D8f.toString().length,13215) !== g4Q){j7u=this.getMarkerArray("panelName",a01.name);}for(var F$O="0" | 0;F$O < j7u.length;F$O++){this.removeFromHolder(j7u[F$O]);}}}if(a01.handle){a01.handle.remove();}this.currentPanel=null;};k4g.ChartEngine.prototype.plotsInPanel=function(W7R){var S2o,T95,Q5G,N9S;S2o=[];T95=W7R;if(typeof W7R == "object"){T95=W7R.name;}for(var J0c in this.layout.studies){Q5G=this.layout.studies[J0c];if(T95 === Q5G.panel){S2o.push(Q5G);}}for(var s48 in this.chart.seriesRenderers){N9S=this.chart.seriesRenderers[s48];if(T95 === N9S.params.panel){S2o.push(N9S);}}return S2o;};k4g.ChartEngine.prototype.checkForEmptyPanel=function(N9J,k9x,A_L){var l1R,k9A;if(!N9J){return !!0;}l1R=N9J;if(typeof N9J == "object"){l1R=N9J.name;}if(l1R === this.chart.name){return ![];}if(!A_L){A_L=[];}else if(!(A_L instanceof Array)){A_L=[A_L];}k9A=this.plotsInPanel(N9J);for(var W3i=0;W3i < k9A.length;W3i++){if(A_L.indexOf(k9A[W3i]) == -1){return !!0;}}if(!k9x){this.panelClose(this.panels[l1R]);}return !!({});};k4g.ChartEngine.prototype.panelClose=function(O1s){var T$d,X_v;T$d="pa";T$d+="n";T$d+="elClos";T$d+="e";if(!O1s){return;}if(this.runPrepend(T$d,arguments)){return;}this.cancelTouchSingleClick=!![];k4g.ChartEngine.drawingLine=!!"";if(O1s.soloing){this.panelSolo(O1s);}if(this.charts[O1s.name]){for(var r4x in this.panels){X_v=this.panels[r4x];if(X_v.chart.name == O1s.name){this.privateDeletePanel(X_v);}}delete this.charts[O1s.name];}else {this.privateDeletePanel(O1s);}if(!this.currentlyImporting){this.showCrosshairs();this.resetDynamicYAxis({noRecalculate:!!({})});this.calculateYAxisPositions();this.draw();this.savePanels();}this.userPointerDown=this.grabbingScreen=!1;if(this.openDialog){this.openDialog="";}this.runAppend("panelClose",arguments);};k4g.ChartEngine.prototype.deleteAllPanels=function(){var a7l;for(var e4P in this.panels){a7l=this.panels[e4P];this.privateDeletePanel(a7l);}this.layout.panels={};this.panels={};};k4g.ChartEngine.prototype.panelUp=function(n0D){var g47,n6i,S4H,R6a;this.cancelTouchSingleClick=!![];M2dNJ.j07();k4g.ChartEngine.drawingLine=!1;this.showCrosshairs();g47={};n6i=0;for(S4H in this.panels){if(S4H == n0D.name)break;n6i++;}if(!n6i){return;}R6a=0;for(S4H in this.panels){if(R6a == n6i - 1){g47[n0D.name]=n0D;}if(S4H == n0D.name)continue;g47[S4H]=this.panels[S4H];R6a++;}this.panels=g47;this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.panelDown=function(c0H){var Q6_,b8k,b3M,K3u,i8V;this.cancelTouchSingleClick=!!({});k4g.ChartEngine.drawingLine=!1;this.showCrosshairs();Q6_={};b8k=0;for(b3M in this.panels){if(b3M == c0H.name)break;b8k++;}K3u=0;for(b3M in this.panels){K3u++;}if(b8k == K3u - 1){return;}i8V=0;for(b3M in this.panels){if(b3M == c0H.name){i8V++;continue;}Q6_[b3M]=this.panels[b3M];if(i8V == b8k + 1){Q6_[c0H.name]=c0H;}i8V++;}this.panels=Q6_;this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.panelSolo=function(T6i){var o5b,B$C,o9t,G7v;this.cancelTouchSingleClick=!![];k4g.ChartEngine.drawingLine=![];this.showCrosshairs();o5b=!"";if(T6i.soloing){o9t="stx";o9t+="_solo_lit";o5b=!1;T6i.soloing=!"1";T6i.solo.classList.remove(o9t);T6i.percent=T6i.oldPercent;if(T6i.name != "chart"){if(this.soloPanelToFullScreen){if(T6i.percent == ("1" | 0)){for(B$C in this.panels){G7v=this.panels[B$C];if(G7v != T6i){T6i.percent-=G7v.percent;}}}}else {this.chart.panel.percent=this.chart.panel.oldPercent;}}if(this.soloPanelToFullScreen){this.xAxisAsFooter=this.chart.panel.oldXAxisAsFooter;}}else {T6i.soloing=!![];T6i.solo.classList.add("stx_solo_lit");T6i.oldPercent=T6i.percent;this.chart.panel.oldXAxisAsFooter=this.xAxisAsFooter;if(T6i.name != "chart"){if(this.soloPanelToFullScreen){this.xAxisAsFooter=!0;}else {this.chart.panel.oldPercent=this.chart.panel.percent;M2dNJ.i3C(58);var I$_=M2dNJ.B0m(2,15,7,11);T6i.percent=I$_ - this.chart.panel.percent;}}}for(B$C in this.panels){this.panels[B$C].hidden=o5b;}if(!this.soloPanelToFullScreen){this.chart.panel.hidden=![];}T6i.hidden=!!"";this.resetDynamicYAxis({noRecalculate:!""});this.calculateYAxisPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.calculatePanelPercent=function(r7G){var G6U;G6U=r7G.bottom - r7G.top;r7G.percent=G6U / this.chart.canvasHeight;};k4g.ChartEngine.prototype.resizePanels=function(){var T81=M2dNJ;var G3l,A$Q,P5k,M6x,E42,C2w;if(!k4g.ChartEngine.resizingPanel){return;}E42=k4g.ChartEngine.crosshairY > this.resolveY(k4g.ChartEngine.resizingPanel.top);for(var W23 in this.panels){if(this.panels[W23] == k4g.ChartEngine.resizingPanel)break;if(this.panels[W23].hidden)continue;G3l=this.panels[W23];}C2w=this.backOutY(k4g.ChartEngine.crosshairY);if(E42){P5k=k4g.ChartEngine.resizingPanel.yaxisLHS.concat(k4g.ChartEngine.resizingPanel.yaxisRHS);for(M6x=0;M6x < P5k.length;M6x++){T81.a3e(138);var h4U=T81.B0m(28,8,3,19,5);A$Q=P5k[M6x].initialMarginTop + P5k[M6x].initialMarginBottom + h4U;if(C2w > P5k[M6x].bottom - A$Q){C2w=P5k[M6x].bottom - A$Q;}}}else {P5k=G3l.yaxisLHS.concat(G3l.yaxisRHS);for(M6x=0;M6x < P5k.length;M6x++){T81.a3e(139);var L2v=T81.B0m(40,7,3,22,4);A$Q=P5k[M6x].initialMarginTop + P5k[M6x].initialMarginBottom + L2v;if(C2w < P5k[M6x].top + A$Q){C2w=P5k[M6x].top + A$Q;}}}k4g.ChartEngine.crosshairY=this.resolveY(C2w);G3l.bottom=C2w;k4g.ChartEngine.resizingPanel.top=C2w;this.calculatePanelPercent(G3l);this.calculatePanelPercent(k4g.ChartEngine.resizingPanel);this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.isPanelAboveChart=function(b0B){for(var J$e in this.panels){if(J$e == "chart"){return ![];}if(J$e == b0B.name){return !![];}}return !({});};k4g.ChartEngine.prototype.adjustPanelPositions=function(){var r1w=M2dNJ;var z3n,h85,r7Q,J8t,Q7X,w3e,q2O,l29,n5s,W64,i$j,E2V,V7R,Q0p,y8R,r13,M5a,h3x,W1Z,O7U,r6_,W76,u5p;z3n="st";z3n+="x-s";z3n+="how";var {chart:G38, panels:Q4F}=this;if(G38.tempCanvas){k4g.clearCanvas(G38.tempCanvas,this);}if(this.runPrepend("adjustPanelPositions",arguments)){return;}h85=0;r7Q=G38.canvasHeight;J8t=!"1";Q7X=+"0";r1w.i3C(82);w3e=r1w.k$A(0,"0");q2O=!!"";for(l29 in Q4F){n5s=Q4F[l29];if(isNaN(n5s.percent) || n5s.percent <= 0){n5s.percent=0.05;}if(n5s.hidden)continue;Q7X+=n5s.percent;w3e++;if(n5s.soloing){q2O=!![];}}for(l29 in Q4F){W64=0;n5s=Q4F[l29];if(n5s.hidden){if(n5s.markerHolder){n5s.markerHolder.style.display="none";}continue;}if(this.manageTouchAndMouse){if(n5s.up){if(!J8t){J8t=!!({});n5s.up.classList.remove("stx-show");}else {if(this.displayIconsUpDown){n5s.up.classList.add("stx-show");}}}if(n5s.solo){if(q2O){i$j="st";i$j+="x";i$j+="-s";i$j+="how";if(n5s.soloing && this.displayIconsSolo){n5s.solo.classList.add("stx-show");}else {n5s.solo.classList.remove(i$j);}}else if(w3e == 1){n5s.solo.classList.remove("stx-show");}else if(w3e == 2 && !this.soloPanelToFullScreen){n5s.solo.classList.remove("stx-show");}else {E2V="stx-sh";E2V+="ow";if(this.displayIconsSolo){n5s.solo.classList.add(E2V);}}}if(n5s.down){if(w3e == 1){n5s.down.classList.remove("stx-show");}else {if(this.displayIconsUpDown){n5s.down.classList.add("stx-show");}}}if(n5s.edit){if(n5s.editFunction){n5s.edit.classList.add("stx-show");}else {n5s.edit.classList.remove("stx-show");}}if(n5s.close){V7R="s";V7R+="t";V7R+="x-sh";V7R+="ow";if(this.displayIconsClose){n5s.close.classList.add(V7R);}else {n5s.close.classList.remove("stx-show");}}}n5s.percent=n5s.percent / Q7X;n5s.top=h85;n5s.bottom=n5s.top + r7Q * n5s.percent;n5s.height=n5s.bottom - n5s.top;if(n5s.chart.name == n5s.name){n5s.chart.top=n5s.top;n5s.chart.bottom=n5s.bottom;n5s.chart.height=n5s.height;}h85=n5s.bottom;if(n5s.yaxisLHS){Q0p=n5s.yaxisLHS.concat(n5s.yaxisRHS);for(var c_a="0" << 64;c_a < Q0p.length;c_a++){y8R=Q0p[c_a];if(y8R.zoom && y8R.height > 0){W64=y8R.zoom / y8R.height;}this.adjustYAxisHeightOffset(n5s,y8R);y8R.height=y8R.bottom - y8R.top;if(W64){y8R.scroll*=W64 * y8R.height / y8R.zoom;y8R.zoom=W64 * y8R.height;if(y8R.zoom > y8R.height){y8R.zoom=0;y8R.scroll=0;}}if(!y8R.high && y8R.high !== 0){y8R.high=100;y8R.low=0;y8R.shadow=100;}y8R.multiplier=y8R.height / y8R.shadow;if(y8R.position === "none"){this.calculateYAxisMargins(y8R);}}}if(n5s.holder){r13="p";r13+="x";M5a="0";M5a+="p";M5a+="x";n5s.holder.style.right="0px";n5s.holder.style.top=n5s.top + "px";n5s.holder.style.left=M5a;n5s.holder.style.height=n5s.height + "px";n5s.subholder.style.left=n5s.left + "px";n5s.subholder.style.width=n5s.width + r13;n5s.subholder.style.top="0px";if(n5s.yAxis.height >= 0){n5s.subholder.style.height=n5s.yAxis.height + "px";}}}if(l29 && Q4F[l29].down){Q4F[l29].down.classList.remove(z3n);}if(this.manageTouchAndMouse && w3e == 2 && !q2O && G38.panel.solo){G38.panel.solo.classList.add("stx-show");}if(G38.panel){if(q2O && this.soloPanelToFullScreen){r1w.a3e(140);var g29=r1w.B0m(26,8,20,13,2);h3x=G38.canvasHeight - n5s.yAxis.bottom + g29;}else {r1w.i3C(5);var r0i=r1w.B0m(3,15);h3x=G38.canvasHeight - G38.panel.yAxis.bottom + r0i;}W1Z=this.controls;var {chartControls:A2N, home:C5n, notificationTray:u_5}=W1Z;O7U=this.width - G38.panel.right;r6_=1167142915;W76=+"24072230";u5p=2;for(var p4k=1;r1w.m7$(p4k.toString(),p4k.toString().length,87172) !== r6_;p4k++){if(A2N){r1w.i3C(38);A2N.style.bottom=r1w.k$A(h3x,"");}u5p+=2;}if(r1w.b3_(u5p.toString(),u5p.toString().length,99062) !== W76){if(A2N){r1w.a3e(4);A2N.style.bottom=r1w.B0m("px",h3x);}}if(C5n){r1w.a3e(4);C5n.style.bottom=r1w.k$A("px",h3x);r1w.i3C(4);C5n.style.marginRight=r1w.k$A("px",O7U);}if(u_5){r1w.i3C(4);u_5.style.bottom=r1w.k$A("px",h3x);r1w.a3e(4);u_5.style.marginRight=r1w.B0m("px",O7U);}}this.clearPixelCache();if(this.drawingObjects.length){this.adjustDrawings();}this.runAppend("adjustPanelPositions",arguments);};k4g.ChartEngine.prototype.createPanel=function(H3Q,Q$H,G1J,R$H,z5w,r5q){var X_u=M2dNJ;var d4D,Y2i,l0w,T8Z,Y8i,u8r;d4D="cre";d4D+="a";d4D+="te";d4D+="Panel";if(this.runPrepend("createPanel",arguments)){return;}if(!R$H){R$H="chart";}Y2i=this.chart.canvasHeight;if(!G1J){X_u.i3C(38);G1J=X_u.k$A(Y2i,0.2);}if(G1J > Y2i){X_u.a3e(38);G1J=X_u.k$A(Y2i,0.5);}X_u.i3C(40);l0w=X_u.B0m(G1J,Y2i);X_u.i3C(1);T8Z=X_u.k$A(l0w,1);Y8i=!({});for(var x89 in this.panels){u8r=this.panels[x89];u8r.percent*=T8Z;if(u8r.soloing){Y8i=!![];}}this.stackPanel(H3Q,Q$H,l0w,R$H,z5w);this.panels[Q$H].hidden=Y8i;this.panels[Q$H].exportable=!r5q;this.adjustPanelPositions();this.savePanels(!!0);this.runAppend(d4D,arguments);return this.panels[Q$H];};k4g.ChartEngine.prototype.modifyPanel=function(I0a,W3A){var m43,J$X,c$4,k9r,g2E,H1A,t2N,o$X,G_1,h9M;m43="vect";m43+="or";J$X="l";J$X+="a";J$X+="y";J$X+="out";c$4=I0a.name;var {studies:o2M}=this.layout;var {series:m79}=this.chart;var {name:z0k, display:r9X, yAxis:t_M}=W3A || ({});if(!z0k){z0k=k4g.uniqueID();}if(!r9X){r9X=z0k;}if(!t_M){t_M=I0a.yAxis;t_M.name=z0k;}k9r={};for(var A8H in this.panels){if(A8H === I0a.name){g2E=this.panels[A8H];g2E.name=z0k;g2E.display=r9X;g2E.yAxis=t_M;I0a=k9r[z0k]=g2E;if(this.moveMarkers && c$4 !== z0k){this.moveMarkers(c$4,z0k);}}else {k9r[A8H]=this.panels[A8H];}}this.panels=k9r;H1A=!!0;for(var R7u in o2M){t2N=o2M[R7u];if(t2N.panel === c$4){t2N.panel=z0k;if(t2N.parameters && t2N.parameters.panelName){H1A=!0;t2N.parameters.panelName=z0k;}}}for(var Z0y in m79){if(m79[Z0y].parameters.panel === c$4){H1A=!!({});o$X={panel:z0k};if(m79[Z0y].parameters.yAxis && m79[Z0y].parameters.yAxis.name === c$4){o$X.yAxis=t_M;}this.modifySeries(Z0y,o$X,!!({}));}}if(H1A){this.changeOccurred(J$X);}G_1=!"1";for(var l3e=0;l3e < this.drawingObjects.length;l3e++){h9M=this.drawingObjects[l3e];if(c$4 === h9M.panelName){h9M.panelName=z0k;G_1=!!1;}}M2dNJ.j07();if(G_1){this.changeOccurred(m43);}this.calculateYAxisPositions();};k4g.ChartEngine.prototype.setPanelHeight=function(Z69,F$a){var I1R=M2dNJ;var B1u,N4$,f_I,Q12;if(!F$a){return;}if(Object.values(this.panels).slice(-1)[+"0"] === Z69){F$a+=this.xaxisHeight;}var {canvasHeight:h0W}=this.chart;var {percent:Q4R}=Z69;I1R.i3C(40);B1u=I1R.B0m(F$a,h0W);I1R.i3C(141);N4$=I1R.B0m("1",Q4R,0);I1R.i3C(34);f_I=I1R.B0m(0,B1u,"1");I1R.a3e(40);Q12=I1R.B0m(N4$,f_I);Object.values(this.panels).forEach(u$3=>{I1R.E0w();u$3.percent/=Q12;});Z69.percent=B1u;this.adjustPanelPositions();this.savePanels();};k4g.ChartEngine.prototype.electNewPanelOwner=function(g9y,y1t){var b$y,e9P,s9V,A$Y,u5K,w_3,f8I,q4p;M2dNJ.E0w();function x2G(h4h){M2dNJ.E0w();return h4h.name != e9P.name;}if(typeof g9y == "string"){g9y=this.panels[g9y];}e9P=g9y.yAxis;if(g9y && g9y != this.chart.panel){s9V=g9y.yAxis;A$Y=s9V.studies[+"0"];if(!A$Y || A$Y == e9P.name){A$Y=s9V.renderers[0];}if(!A$Y || A$Y == e9P.name){A$Y=s9V.studies[+"1"];}if(!A$Y){A$Y=s9V.renderers[1];}if(y1t){s9V=g9y.yAxis=y1t;b$y=y1t.name;}else if(!A$Y){if(g9y.yaxisLHS){u5K=g9y.yaxisRHS.concat(g9y.yaxisLHS).filter(x2G);w_3=u5K[0];for(var Y2S=0;Y2S < u5K.length;Y2S++){if(!u5K[Y2S].position){w_3=u5K[Y2S];break;}}if(w_3){s9V=g9y.yAxis=w_3;b$y=w_3.studies[0] || w_3.renderers[0];}}}else {s9V=this.addYAxis(g9y,new k4g.ChartEngine.YAxis({name:A$Y,position:s9V.position}));s9V.renderers=g9y.yAxis.renderers;s9V.studies=g9y.yAxis.studies;b$y=A$Y;}if(b$y){A$Y=b$y;if(e9P.name != g9y.name){A$Y=g9y.name;}q4p=this.layout.studies;if(q4p && q4p[b$y]){f8I=q4p[b$y].inputs.display;}this.modifyPanel(g9y,{name:A$Y,display:f8I || b$y,yAxis:s9V});this.deleteYAxisIfUnused(g9y,e9P);this.calculateYAxisMargins(this.panels[A$Y].yAxis);}else {this.checkForEmptyPanel(g9y);}}return b$y;};k4g.ChartEngine.prototype.configurePanelControls=function(F3P){var D4e=M2dNJ;var L57,B2I,v6G,w6N;L57=F3P.icons;if(!L57){return;}B2I=F3P.name == F3P.chart.name;L57.classList.add("stx-show");F3P.title=L57.querySelector(".stx-panel-title");D4e.E0w();F3P.up=L57.querySelector(".stx-ico-up");if(F3P.up){F3P.up=F3P.up.parentNode;}F3P.solo=L57.querySelector(".stx-ico-focus");if(F3P.solo){F3P.solo=F3P.solo.parentNode;}F3P.down=L57.querySelector(".stx-ico-down");if(F3P.down){F3P.down=F3P.down.parentNode;}F3P.edit=L57.querySelector(".stx-ico-edit");if(F3P.edit){F3P.edit=F3P.edit.parentNode;}F3P.close=L57.querySelector(".stx-ico-close");if(F3P.close){F3P.close=F3P.close.parentNode;}if(F3P.title){F3P.title.innerHTML="";if(F3P.display){F3P.title.appendChild(document.createTextNode(F3P.display));}if(B2I){v6G="stx-";v6G+="chart-pa";v6G+="nel";F3P.title.classList.add("chart-title");L57.classList.add(v6G);}}if(!k4g.touchDevice || k4g.isSurface){this.makeModal(L57);}if(F3P.handle){if(!k4g.touchDevice || k4g.isSurface){F3P.handle.onmouseover=(function(I3C){D4e.E0w();return function(){I3C.hideCrosshairs();};})(this);}if(!k4g.touchDevice || k4g.isSurface){F3P.handle.onmouseout=(function(n5v){D4e.j07();return function(){n5v.showCrosshairs();};})(this);}w6N=function(C6h,f7P){return function(a$8){if(k4g.ChartEngine.resizingPanel || C6h.openDialog !== ""){return;}D4e.j07();C6h.grabHandle(f7P);};};if(k4g.isSurface){F3P.handle.onpointerdown=w6N(this,F3P);}else {F3P.handle.onmousedown=w6N(this,F3P);}if(k4g.touchDevice){F3P.handle.ontouchstart=w6N(this,F3P);}}if(F3P.up){k4g.safeClickTouch(F3P.up,(function(f7G,y5L){return function(){D4e.E0w();f7G.panelUp(y5L);};})(this,F3P));}if(F3P.down){k4g.safeClickTouch(F3P.down,(function(A6y,o$5){D4e.j07();return function(){D4e.j07();A6y.panelDown(o$5);};})(this,F3P));}if(F3P.solo){k4g.safeClickTouch(F3P.solo,(function(m4q,I$g){D4e.E0w();return function(){D4e.j07();m4q.panelSolo(I$g);};})(this,F3P));}if(F3P.close){if(F3P.name == "chart"){F3P.close.style.display="none";;}else {k4g.safeClickTouch(F3P.close,(function(o2A,x6i){return function(){D4e.E0w();o2A.panelClose(x6i);};})(this,F3P));}}};k4g.ChartEngine.prototype.stackPanel=function(a7K,y1D,E_7,r_j,h4V){var v45,f5O,c3i,I4n,n5f,J6r,X07;v45="s";v45+="tx-panel-";M2dNJ.E0w();v45+="ch";v45+="art";f5O="stx";f5O+="-s";f5O+="ubholder";c3i="c";c3i+="har";c3i+="t";if(this.runPrepend("stackPanel",arguments)){return;}if(!r_j){r_j=c3i;}I4n=this.charts[r_j];M2dNJ.a3e(110);n5f=M2dNJ.k$A(y1D,r_j);if(n5f){a7K=I4n.symbol;if(I4n.symbolDisplay){a7K=I4n.symbolDisplay;}if(!h4V){h4V=I4n.yAxis;}}J6r=this.panels[y1D]=new k4g.ChartEngine.Panel(y1D,h4V);if(!n5f && I4n.yAxis && J6r.yAxis.position == I4n.yAxis.position){J6r.yAxis.width=I4n.yAxis.width;;}if(n5f && !I4n.panel){I4n.panel=J6r;}J6r.percent=E_7;J6r.chart=I4n;J6r.display=a7K;J6r.holder=k4g.newChild(this.container,"div","stx-holder");J6r.subholder=k4g.newChild(J6r.holder,"div",f5O);J6r.subholder.style.zIndex=1;J6r.holder.panel=J6r;X07=n5f?v45:"stx-panel-study";J6r.holder.classList.add(X07);if(this.controls.handleTemplate && this.manageTouchAndMouse){J6r.handle=this.controls.handleTemplate.cloneNode(!![]);this.container.appendChild(J6r.handle);J6r.handle.panel=J6r;}if(this.controls.iconsTemplate){J6r.icons=this.controls.iconsTemplate.cloneNode(!![]);J6r.subholder.appendChild(J6r.icons);this.configurePanelControls(J6r);}if(!this.currentlyImporting){this.resizeCanvas();}this.runAppend("stackPanel",arguments);};M2dNJ.j07();k4g.ChartEngine.prototype.setPanelEdit=function(s$v,P3x){s$v.editFunction=P3x;if(s$v.edit){k4g.safeClickTouch(s$v.edit,P3x);}this.adjustPanelPositions();};k4g.ChartEngine.prototype.drawPanels=function(){var c6t,m0U,B4U,l5h,l4T,n__,S6f,A3b,r9q,N3t,r5c,t0P,K5Y,N6S,q75,M0U,m6F,b_G,m$$;c6t="draw";c6t+="Panels";m0U="drawPanel";m0U+="s";if(this.runPrepend(m0U,arguments)){return;}B4U=![];for(var D3h in this.panels){l5h="se";l5h+="g";l5h+="ment";l4T=this.panels[D3h];l4T.state={};n__=this.translateIf(l4T.display);if(l4T.title && l4T.title.textContent != n__){l4T.title.innerHTML="";l4T.title.appendChild(document.createTextNode(n__));}if(l4T.icons){l4T.icons.classList.add("stx-show");}if(l4T.hidden){if(l4T.icons){l4T.icons.classList.remove("stx-show");}if(l4T.handle){l4T.handle.style.display="none";}l4T.holder.style.display="none";continue;}else {S6f="b";S6f+="l";S6f+="oc";S6f+="k";if(l4T.name != "chart"){A3b="n";A3b+="o";A3b+="ne";r9q="n";r9q+="o";r9q+="n";r9q+="e";N3t=this.manageTouchAndMouse;if(l4T.up){l4T.up.style.display=this.displayIconsUpDown && N3t?"":r9q;}if(l4T.down){l4T.down.style.display=this.displayIconsUpDown && N3t?"":"none";}if(l4T.solo){l4T.solo.style.display=this.displayIconsSolo && N3t?"":"none";}if(l4T.close){l4T.close.style.display=this.displayIconsClose && N3t?"":A3b;}if(l4T.edit){l4T.edit.style.display=l4T.editFunction && N3t?"":"none";}}l4T.holder.style.display=S6f;}if(l4T.displayEdgeIfPadded){r5c="se";r5c+="gm";r5c+="e";r5c+="nt";t0P="s";t0P+="eg";t0P+="me";t0P+="nt";K5Y="stx_grid";K5Y+="_bor";K5Y+="der";N6S=Math.round(l4T.left) + 0.5;q75=l4T.yAxis.top - +"0.5";M0U=l4T.yAxis.bottom + 0.5;if(l4T.yaxisCalculatedPaddingLeft && !l4T.yaxisTotalWidthLeft){this.plotLine(N6S,N6S,q75,M0U,this.canvasStyle(K5Y),t0P,this.chart.context,!1,{lineWidth:1});}N6S=Math.round(l4T.right) + 0.5;if(l4T.yaxisCalculatedPaddingRight && !l4T.yaxisTotalWidthRight){this.plotLine(N6S,N6S,q75,M0U,this.canvasStyle("stx_grid_border"),r5c,this.chart.context,![],{lineWidth:1});}}if(!B4U){m6F="n";m6F+="one";if(l4T.handle){l4T.handle.style.display=m6F;}B4U=!![];continue;}b_G=l4T.top;b_G=Math.round(b_G) + 0.5;this.plotLine(l4T.left - 0.5,l4T.right + 0.5,b_G,b_G,this.canvasStyle("stx_panel_border"),l5h,this.chart.context,!!0,{});if(l4T.handle){if(!this.displayPanelResize){m$$="n";m$$+="o";m$$+="n";m$$+="e";l4T.handle.style.display=m$$;}else {l4T.handle.style.display="";}M2dNJ.a3e(142);var U8u=M2dNJ.k$A(16,19,1,13,13);l4T.handle.style.top=b_G - l4T.handle.offsetHeight / U8u + "px";;}}this.runAppend(c6t,arguments);};};V4=V9B=>{var p0l;p0l=V9B.CIQ;p0l.ChartEngine.isDailyInterval=function(v6k){var X5e,W6E,t7g,i1Y;if(v6k == "day"){return !!({});}if(v6k == "week"){return !!"1";}X5e=1907193524;W6E=-1377526652;t7g=2;for(var f23=1;M2dNJ.b3_(f23.toString(),f23.toString().length,+"71433") !== X5e;f23++){if(v6k !== ""){return !({});}t7g+=2;}if(M2dNJ.b3_(t7g.toString(),t7g.toString().length,49813) !== W6E){i1Y="mon";i1Y+="th";if(v6k == i1Y){return !!({});}}return !({});};p0l.ChartEngine.prototype.setPeriodicity=function(p5l,h8$){var R9N=M2dNJ;var b6s,I4Y,x3l,Y6j,U6W,a3o,n$u,Z2V,K1z,I3S,Q3Q,t6L,v26,g_h,l34,X2W,D43;b6s="setPeriod";b6s+="ici";b6s+="ty";if(this.runPrepend("setPeriodicity",arguments)){return;}if(typeof arguments["0" >> 0] !== "object"){p5l={period:arguments[0],interval:arguments[1],timeUnit:arguments[2]};R9N.a3e(143);var F_H=R9N.k$A(15,20,15,0,19);h8$=arguments[arguments.length - F_H];if(arguments.length === 3){p5l.timeUnit=undefined;}}var {period:s_A, interval:g00, timeUnit:n5P}=p5l;if(typeof h8$ !== "function"){h8$=null;}({period:s_A, interval:g00, timeUnit:n5P}=p0l.cleanPeriodicity(s_A,g00,n5P));var {layout:V2E}=this;V2E.setSpan={};V2E.range={};this.chart.inflectionPoint=null;I4Y=![];if(this.chart.symbol){I4Y=this.needDifferentData({period:s_A,interval:g00,timeUnit:n5P});}var {candleWidth:y57, periodicity:g0s, interval:G4f, timeUnit:p9d}=V2E;x3l={prvPeriodicity:g0s,prvInterval:G4f,prvTimeUnit:p9d};V2E.periodicity=s_A;V2E.interval=g00;V2E.timeUnit=n5P;function L62(){R9N.j07();Y6j.dispatch("periodicity",U6W);if(h8$){h8$(null);}}Y6j=this;U6W={stx:Y6j,differentData:I4Y,prevPeriodicity:x3l};if(I4Y){a3o="layou";a3o+="t";this.changeOccurred(a3o);this.clearCurrentMarketData();if(this.quoteDriver){for(var A58 in this.charts){n$u=this.charts[A58];if(n$u.symbol){if(this.displayInitialized){this.quoteDriver.newChart({symbol:n$u.symbol,symbolObject:n$u.symbolObject,chart:n$u},L62);}else {this.loadChart(n$u.symbol,{chart:n$u},L62);}}}}else if(this.dataCallback){this.dataCallback();L62();}else {console.log("cannot change periodicity because neither dataCallback or quoteDriver are set");}this.home();return;}for(var L$G in this.charts){Z2V=this.charts[L$G];var {dataSegment:y1q, dataSet:h2m, maxTicks:h$J, scroll:L1S}=Z2V;K1z=y1q?y1q.length:0;I3S=h2m?h2m.length:0;Q3Q=void 0;t6L=Math.round(Z2V.maxTicks / ("2" ^ 0));this.setCandleWidth(y57,Z2V);v26=!"";g_h=!({});if(L1S <= h$J){v26=!"1";}else if(y1q && !y1q[t6L]){v26=!1;R9N.i3C(1);g_h=R9N.k$A(I3S,L1S);;}if(v26 && K1z > 0){if(h$J < (Math.round(this.chart.width / y57 - +"0.499") - 1) / 2){R9N.a3e(1);t6L=R9N.B0m(1,K1z);}if(t6L >= K1z){Q3Q=y1q[K1z - 1].DT;R9N.a3e(1);t6L=R9N.B0m(1,K1z);}else {Q3Q=y1q[t6L].DT;}}this.createDataSet();if(v26){if(K1z > 0){for(var A$O=I3S - 1;A$O >= 0;A$O--){l34=h2m[A$O].DT;if(l34.getTime() < Q3Q.getTime()){R9N.i3C(37);Z2V.scroll=R9N.k$A(1,A$O,I3S,t6L);break;}}}}else if(!g_h){X2W=Math.round(this.preferences.whitespace / y57);R9N.a3e(34);Z2V.scroll=R9N.B0m(X2W,1,h$J);;}else {Z2V.scroll=h2m.length + g_h;;}}if(this.displayInitialized){this.draw();}this.changeOccurred("layout");if(this.quoteDriver){for(var s$c in this.charts){D43=this.charts[s$c];if(D43.symbol && (D43.moreAvailable || !D43.upToDate)){this.quoteDriver.checkLoadMore(D43);}}}L62();this.runAppend(b6s,arguments);};p0l.ChartEngine.prototype.needDifferentData=function(s90){var h_Y,h6V,o0F,H2i,n9H;h_Y="m";h_Y+="in";h_Y+="ut";h_Y+="e";h6V=this.layout;o0F=p0l.ChartEngine.isDailyInterval(s90.interval);H2i=p0l.ChartEngine.isDailyInterval(h6V.interval);n9H=!!"";if(this.dontRoll || !H2i){if(h6V.interval != s90.interval){n9H=!!({});}}else {if(o0F != H2i){n9H=!!({});}}if(!o0F && !s90.timeUnit){s90.timeUnit=h_Y;}if(!H2i && !h6V.timeUnit){h6V.timeUnit="minute";}if(s90.timeUnit != h6V.timeUnit){n9H=!"";}if(!this.masterData || !this.masterData.length){n9H=!0;}return n9H;};p0l.ChartEngine.prototype.getPeriodicity=function(){var a46,l8t,C_y;a46=this.layout;l8t=a46.interval;C_y=a46.timeUnit;if(!C_y){C_y=l8t;l8t=1;}return {period:a46.periodicity,interval:l8t,timeUnit:C_y};};};U$=b9l=>{var i7I=M2dNJ;var I1C;I1C=b9l.CIQ;I1C.ChartEngine.prototype.isHistoricalMode=function(){var N0S,T1w,J1k,F_Y,f3X,f6H;N0S=new Date();T1w=!!"1";J1k=this.masterData;if(!this.isHistoricalModeSet){return !({});}if(J1k.length){F_Y=this.getFirstLastDataRecord(J1k,"DT",!!1);f3X=this.standardMarketIterator(F_Y.DT);T1w=(f3X?f3X.next():F_Y.DT) <= N0S;if(T1w && I1C.ChartEngine.isDailyInterval(f3X.interval)){f6H=this.chart.market.getOpen();if(f6H && N0S < f6H){i7I.a3e(13);N0S.setHours(0,i7I.k$A("0",0),0,0);if(+N0S == +f3X.begin){T1w=![];}}}}return T1w;};I1C.ChartEngine.prototype.isHome=function(){var s_9,y4s,P1R;s_9=this.chart;y4s=s_9.dataSet;P1R=s_9.animatingHorizontalScroll;i7I.j07();i7I.i3C(34);var r_R=i7I.k$A(12,14,28);i7I.a3e(56);var E36=i7I.B0m(16,14,14,14,167);return this.pixelFromTick(y4s.length - (P1R?r_R:E36),s_9) < s_9.width + s_9.panel.left;;};I1C.ChartEngine.prototype.getPreviousBar=function(O7u,o8j,i$z){i7I.i3C(1);return this.getNextBarInternal(O7u,o8j,i$z,-i7I.k$A(0,"1"));};I1C.ChartEngine.prototype.getNextBar=function(i_Z,A6g,N5g){return this.getNextBarInternal(i_Z,A6g,N5g,1);};I1C.ChartEngine.prototype.getNextBarInternal=function(t_B,S9x,e8o,s2m){var m9e,X0d,w1g,C1v;m9e=t_B.dataSegment && t_B.dataSegment[e8o];if(m9e){X0d=m9e.tick;while(X0d > 0 && X0d < t_B.dataSet.length){i7I.i3C(4);X0d=i7I.B0m(s2m,X0d);w1g=t_B.dataSet[X0d];if(w1g){C1v=I1C.existsInObjectChain(w1g,S9x);if(C1v && C1v.obj[C1v.member]){return w1g;}}}}return null;};i7I.j07();I1C.ChartEngine.prototype.getFirstLastDataRecord=function(L1I,B3m,m4w){var S1t;if(L1I && L1I.length){S1t=m4w?L1I.length - 1:"0" - 0;while(S1t >= 0 && S1t < L1I.length){if(L1I[S1t] && typeof L1I[S1t][B3m] != "undefined"){return L1I[S1t];}if(m4w){S1t--;}else {S1t++;}}}return null;};I1C.ChartEngine.prototype.leftTick=function(){var y4J,j0s,T9n;i7I.i3C(82);y4J=i7I.B0m(0,"1903627147");j0s=-581920796;i7I.i3C(1);T9n=i7I.B0m(0,"2");for(var A3s=1;i7I.b3_(A3s.toString(),A3s.toString().length,+"8132") !== y4J;A3s++){return this.chart.dataSet.length - this.chart.scroll;}if(i7I.m7$(T9n.toString(),T9n.toString().length,"653" >> 64) !== j0s){return this.chart.dataSet.length + this.chart.scroll;}};I1C.ChartEngine.prototype.getNextInterval=function(u4i,S0z,a0s){var P99;if(!S0z){S0z=+"1";}if(a0s !== !({})){a0s=!!"1";}P99=this.standardMarketIterator(u4i,a0s?this.dataZone:this.displayZone);if(!P99){return u4i;}if(S0z < 1){i7I.a3e(144);return P99.previous(i7I.B0m(1,S0z));}return P99.next(S0z);};I1C.ChartEngine.prototype.standardMarketIterator=function(a$E,W$5,r54){var E3N,S_8,E08;i7I.j07();E3N="t";E3N+="ic";E3N+="k";S_8=r54 || this.chart;if(!S_8.market){return null;}E08={begin:a$E,interval:this.layout.interval,periodicity:this.layout.interval == E3N?this.chart.xAxis.futureTicksInterval:this.layout.periodicity,timeUnit:this.layout.timeUnit,outZone:W$5};return S_8.market.newIterator(E08);};};v8=L8$=>{var g6y=M2dNJ;var S8X,k4d;if(!L8$.SplinePlotter){L8$.SplinePlotter={};}S8X=L8$.CIQ;k4d=L8$.SplinePlotter;S8X.ChartEngine.prototype.draw=function(){var Q2I,y0X,O6G,W3T,Q3C,X58,x2I,J4h,e_6;this.debug();Q2I=this.chart;y0X=this.layout;if(!Q2I.canvas){return;}if(!Q2I.dataSet){return;}if(!Q2I.canvasHeight){return;}g6y.a3e(18);var V1g=g6y.k$A(166,11,8,10,0);this.offset=y0X.candleWidth * this.candleWidthPercent / V1g;S8X.clearCanvas(Q2I.canvas,this);if(!this.masterData){return;}if(this.runPrepend("draw",arguments)){return;}if(!this.defaultColor){this.getDefaultColor();}this.vectorsShowing=!({});this.drawPanels();this.yAxisLabels=[];this.correctIfOffEdge();this.createDataSegment();this.setBaselines(Q2I);Q3C=this.createXAxis(Q2I);this.initializeDisplay(Q2I);this.drawXAxis(Q2I,Q3C);try{this.renderYAxis(Q2I);}catch(F3_){if(F3_ && F3_.message === "reboot draw"){return this.draw();}throw F3_;}Q2I.tmpWidth=Math.floor(y0X.candleWidth * this.candleWidthPercent);if(Q2I.tmpWidth % 2 === 0){Q2I.tmpWidth+=1;if(Q2I.tmpWidth > y0X.candleWidth){Q2I.tmpWidth-=2;}}if(Q2I.tmpWidth < 0.5){Q2I.tmpWidth=0.5;}for(O6G in this.plugins){W3T=this.plugins[O6G];if(W3T.display){if(W3T.drawUnder){W3T.drawUnder(this,Q2I);}}}if(Q2I.legend){Q2I.legend.colorMap=null;}if(this.controls.baselineHandle){this.controls.baselineHandle.style.display="none";}this.rendererAction(Q2I,"underlay");S8X.getFn("Studies.displayStudies")(this,Q2I,!![]);this.displayChart(Q2I);S8X.getFn("Studies.displayStudies")(this,Q2I,!!0);this.rendererAction(Q2I,"overlay");if(Q2I.legend && Q2I.legend.colorMap && Q2I.legendRenderer){Q2I.legendRenderer(this,{chart:Q2I,legendColorMap:Q2I.legend.colorMap,coordinates:{x:Q2I.legend.x,y:Q2I.legend.y + Q2I.panel.yAxis.top}});}for(O6G in this.plugins){W3T=this.plugins[O6G];if(W3T.display){if(W3T.drawOver){W3T.drawOver(this,Q2I);}}}for(var F20 in this.panels){if(!this.panels[F20].hidden){this.plotYAxisText(this.panels[F20]);}}for(var r0p=0;r0p < this.yAxisLabels.length;r0p++){X58=this.yAxisLabels[r0p];if(X58.src == "series" && X58.args[+"6"] && X58.args["6" - 0].drawSeriesPriceLabels === !!0)continue;this.createYAxisLabel.apply(this,X58.args);}if(this.createCrosshairs){this.createCrosshairs();}if(this.drawVectors){this.drawVectors();}this.drawCurrentHR();this.displayInitialized=!!"1";x2I=this.controls;if(x2I){J4h="bl";J4h+="ock";e_6=this.manageTouchAndMouse && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.nonInteractive);if(x2I.home){x2I.home.style.display=e_6 && !this.isHome()?"block":"none";}if(x2I.chartControls){x2I.chartControls.style.display=e_6?J4h:"none";}}if(S8X.Marker){this.positionMarkers();}if(this.quoteDriver && this.animations.zoom.hasCompleted){this.quoteDriver.checkLoadMore(Q2I);}this.runAppend("draw",arguments);this.makeAsyncCallbacks();};S8X.ChartEngine.prototype.setSeriesRenderer=function(n8r){var {baseline:Y2x, name:B1N, panel:w7U, yAxis:Z9d}=n8r.params;if(this.chart.seriesRenderers[B1N]){return this.chart.seriesRenderers[B1N];;}if(Z9d){n8r.params.yAxis=this.addYAxis(this.panels[w7U],Z9d);this.resizeChart();}n8r.stx=this;this.chart.seriesRenderers[B1N]=n8r;if(Y2x){this.registerBaselineToHelper(n8r);}return n8r;};S8X.ChartEngine.prototype.setMainSeriesRenderer=function(h1F){var W9E,W9a,j69;var {chartType:s6i, aggregationType:Z9I}=this.layout;var {chart:k7V}=this;var {custom:y3s}=k7V;W9E=this.mainSeriesRenderer;g6y.E0w();W9a=this.displayInitialized;if(W9E){if(h1F){this.setMasterData();}this.displayInitialized=!({});W9E.removeAllSeries();this.removeSeriesRenderer(W9E);W9E=this.mainSeriesRenderer=null;}if(y3s && y3s.chartType){s6i=y3s.chartType;}if(s6i == "none"){return;}if(Z9I && Z9I != "ohlc"){s6i=Z9I;}j69=S8X.Renderer.produce(s6i,{panel:k7V.panel.name,name:"_main_series",highlightable:!1,useChartLegend:!!"1"});if(j69){this.setSeriesRenderer(j69).attachSeries(null,{display:k7V.symbol});W9E=this.mainSeriesRenderer=j69;}this.displayInitialized=W9a;["highLowBars","standaloneBars","barsHaveWidth"].forEach((function(H8c){k7V[H8c]=this.mainSeriesRenderer && this.mainSeriesRenderer[H8c];}).bind(this));};S8X.ChartEngine.prototype.removeSeriesRenderer=function(c_e){g6y.E0w();var l6Q,D5s,j8s,N0Z;var {baseline:x$E, name:t87}=c_e.params;g6y.i3C(50);l6Q=this.controls[`${t87}${g6y.B0m("l"," base","ine-handle")}`];if(x$E){D5s=1696763810;j8s=1598039487;N0Z=2;for(var f45=1;g6y.m7$(f45.toString(),f45.toString().length,23753) !== D5s;f45++){this.removeBaselineFromHelper(c_e);N0Z+=2;}if(g6y.b3_(N0Z.toString(),N0Z.toString().length,36665) !== j8s){this.removeBaselineFromHelper(c_e);}if(l6Q){this.container.removeChild(l6Q);delete this.controls[l6Q];}}delete this.chart.seriesRenderers[t87];};S8X.ChartEngine.prototype.getSeriesRenderer=function(b$8){g6y.j07();return this.chart.seriesRenderers[b$8];};S8X.ChartEngine.prototype.getRendererFromSeries=function(w6Y){var N8Q;g6y.E0w();N8Q=this.chart.seriesRenderers;for(var h2M in N8Q){for(var W8E in N8Q[h2M].seriesParams){if(N8Q[h2M].seriesParams[W8E].id == w6Y){return N8Q[h2M];}}}return null;};S8X.ChartEngine.prototype.startClip=function(N9a,p8c){var E2P,Q3T,R7F,r81,o0L,d2B,S_5,J8r;if(!N9a){N9a=this.chart.panel.name;}g6y.a3e(14);E2P=-g6y.B0m(10,"1532108266");Q3T=192082884;g6y.i3C(14);g6y.j07();R7F=g6y.k$A(2,"2");for(var O0P=1;g6y.m7$(O0P.toString(),O0P.toString().length,87612) !== E2P;O0P++){r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;R7F+=2;}if(g6y.b3_(R7F.toString(),R7F.toString().length,7268) !== Q3T){r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;}r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;if(p8c){S_5=0;J8r=this.width;}else if(r81.yaxisLHS && r81.yaxisLHS.length){S_5++;J8r--;}d2B.context.rect(S_5,o0L.top,J8r,o0L.height);d2B.context.clip();};S8X.ChartEngine.prototype.endClip=function(){g6y.E0w();this.chart.context.restore();};S8X.ChartEngine.prototype.setLineStyle=function(E1c,M5Z){var x5d,Y$o;x5d={};if(E1c && typeof E1c == "object"){x5d=E1c;}else {x5d.color=E1c;}if(!x5d.color && !x5d.pattern && !x5d.width && !x5d.baseColor){x5d=null;}if(!M5Z){M5Z=this.chart;}Y$o=1;if(x5d && x5d.width){Y$o=x5d.width;}if(x5d && x5d.pattern){x5d.pattern=S8X.borderPatternToArray(Y$o,x5d.pattern);}M5Z.lineStyle=x5d;};S8X.ChartEngine.prototype.setGapLines=function(j71,n0H){var f7H,c6m;f7H="o";f7H+="bj";f7H+="ec";f7H+="t";if(!n0H){n0H=this.chart;}c6m={};if(j71 && typeof j71 == f7H){c6m=j71;}else if(typeof j71 === "boolean"){return n0H.gaplines=j71;}else {c6m.color=j71;}if(!c6m.color && !c6m.pattern && !c6m.fillMountain){c6m=null;}g6y.j07();if(c6m && c6m.pattern){c6m.pattern=S8X.borderPatternToArray(c6m.width,c6m.pattern);}if(c6m && c6m.width <= 0){c6m.width=null;}n0H.gaplines=c6m;};S8X.ChartEngine.prototype.getGapColorFunction=function(C2V,U3B,S8Y,I6y,y2T){g6y.E0w();if(typeof S8Y != "object"){S8Y={color:S8Y};}return function(Z$X,V$v,S9v){var A9K,m1Y;g6y.j07();A9K=y2T?y2T(Z$X,V$v,S9v):S8Y;if(A9K.color){A9K=A9K.color;}m1Y=V$v[C2V];if(!m1Y && m1Y !== 0){m1Y=V$v[U3B];}if(!S9v && (m1Y || m1Y === 0)){return {color:A9K,pattern:S8Y.pattern,width:S8Y.width};}if(!I6y){return null;}if(typeof I6y != "object"){if(typeof I6y == "string"){I6y={color:I6y};}else {I6y={};}}return {color:I6y.color || A9K,pattern:I6y.pattern || S8Y.pattern,width:I6y.width || S8Y.width};};};S8X.ChartEngine.prototype.drawLineChart=function(k_Y,j1j,v5t,v06){var c$c,B2y,H9l,l_5,g$8,X7K,F3E,p1r,Q2c,Q1w,F6w,d1c;c$c="Clo";c$c+="se";B2y=this.chart;H9l=B2y.context;l_5=B2y.lineStyle || ({});g$8=this.canvasStyle(j1j);if(!v06){v06={};}this.startClip(k_Y.name);X7K=v06.width || l_5.width || g$8.width;if(X7K && parseInt(X7K,10) <= 25){H9l.lineWidth=Math.max(1,S8X.stripPX(X7K));}else {H9l.lineWidth=1;}v06.pattern=v06.pattern || l_5.pattern || g$8.borderTopStyle;v06.pattern=S8X.borderPatternToArray(H9l.lineWidth,v06.pattern);this.canvasColor(j1j);F3E=v06.color || l_5.color;if(F3E){if(F3E == "auto"){F3E=this.defaultColor;}if(v06.opacity && v06.opacity !== 1){F3E=S8X.hexToRgba(S8X.colorToHex(F3E),parseFloat(v06.opacity));}H9l.strokeStyle=F3E;}v06.skipProjections=!"";p1r=v06.field || B2y.defaultPlotField;Q2c=v06.subField || B2y.defaultPlotField || c$c;Q1w=v06.gapDisplayStyle;if(!Q1w && Q1w !== !!""){Q1w=v06.gaps;}if(!Q1w && Q1w !== ![]){Q1w=B2y.gaplines;}if(!Q1w){Q1w="transparent";}v06.gapDisplayStyle=Q1w;F6w=this.getGapColorFunction(p1r,Q2c,{color:H9l.strokeStyle,pattern:v06.pattern,width:H9l.lineWidth},Q1w,v5t);if(k_Y.chart.tension){v06.tension=k_Y.chart.tension;}d1c=this.plotDataSegmentAsLine(p1r,k_Y,v06,F6w);if(!d1c.colors.length){d1c.colors.push(H9l.strokeStyle);}H9l.lineWidth=1;this.endClip();return v06.returnObject?d1c:d1c.colors;};S8X.ChartEngine.prototype.drawChannelChart=function(Q0s,s84,v39){var I8N,n_L,Y5R,Q97,L0s,I6Y,W1W,q4W,Y3C,X_2,x4U,Q3P,r0s,z_Y;I8N="f";I8N+="i";I8N+="eld";n_L="L";n_L+="o";n_L+="w";Y5R="f";Y5R+="i";Y5R+="e";Y5R+="ld";Q97="su";Q97+="bField";L0s=S8X.clone(v39);L0s.color=v39.color;I6Y=this.drawLineChart(Q0s,L0s.style,s84,L0s);W1W=L0s.border_color_up || this.getCanvasColor("stx_channel_up");q4W=L0s.border_color_down || this.getCanvasColor("stx_channel_down");L0s[v39.field?Q97:Y5R]=L0s.field_high || "High";L0s.color=W1W;Y3C=this.drawLineChart(Q0s,L0s.style,s84,L0s);L0s[v39.field?"subField":"field"]=L0s.field_low || n_L;L0s.color=q4W;X_2=this.drawLineChart(Q0s,L0s.style,s84,L0s);L0s[v39.field?"subField":I8N]=v39.subField || this.chart.defaultPlotField || "Close";Q3P=[];r0s=[];for(x4U=0;x4U < Y3C.points.length;x4U+="2" << 64){Q3P.push([Y3C.points[x4U],Y3C.points[x4U + 1]]);}for(x4U=0;x4U < X_2.points.length;x4U+=2){r0s.push([X_2.points[x4U],X_2.points[x4U + 1]]);}g6y.i3C(76);var N$i=g6y.B0m(12,6,0);z_Y=this.chart.context.lineWidth / N$i;for(x4U=I6Y.points.length - 2;x4U >= 0;x4U-=2){Q3P.push([I6Y.points[x4U],I6Y.points[x4U + 1] - z_Y]);r0s.push([I6Y.points[x4U],I6Y.points[x4U + 1] + z_Y]);}this.startClip(Q0s.name);L0s.color=W1W;S8X.fillArea(this,Q3P,L0s);L0s.color=q4W;S8X.fillArea(this,r0s,L0s);this.endClip();I6Y.colors=I6Y.colors.concat(Y3C.colors).concat(X_2.colors);return v39.returnObject?I6Y:I6Y.colors;};g6y.E0w();S8X.ChartEngine.prototype.connectTheDots=function(W8A,v$s,w46,X$V,w3y,t8D){var M$X,W6N,n$v,j6W,e8G,g5L,H2P,x6s,A76,X4V,S1I,n$S,h3v,u8X,z8s,L10,O6z,j3N,D7W,K4B,W5c;M$X="n";M$X+="on";M$X+="e";if(!t8D){t8D={};}if(t8D.pattern == M$X){return;}if(w3y === !!({})){w3y=this.chart.panel;}if(X$V === null || typeof X$V == "undefined"){X$V=this.chart.context;}if(W8A.length < 4){return;}W6N=0;n$v=this.chart.canvasHeight;j6W=0;e8G=this.chart.width;if(w3y){n$v=w3y.yAxis.bottom;W6N=w3y.yAxis.top;}X$V.lineWidth=1.1;if(typeof v$s == "object"){X$V.strokeStyle=v$s.color;if(v$s.opacity){X$V.globalAlpha=v$s.opacity;}else {X$V.globalAlpha=1;}X$V.lineWidth=S8X.stripPX(v$s.width);}else {if(!v$s || v$s == "auto" || S8X.isTransparent(v$s)){X$V.strokeStyle=this.defaultColor;}else {X$V.strokeStyle=v$s;}}g6y.j07();if(t8D.opacity){X$V.globalAlpha=t8D.opacity;}if(t8D.lineWidth){X$V.lineWidth=t8D.lineWidth;}g5L=S8X.borderPatternToArray(X$V.lineWidth,t8D.pattern);X$V.beginPath();for(var F2u=+"0";F2u < W8A.length - 2;F2u+=2){H2P=W8A[F2u];g6y.a3e(4);x6s=W8A[g6y.B0m(1,F2u)];g6y.i3C(4);A76=W8A[g6y.k$A(2,F2u)];g6y.i3C(4);X4V=W8A[g6y.k$A(3,F2u)];if(isNaN(H2P) || isNaN(A76) || isNaN(x6s) || isNaN(X4V)){return;}S1I=0.0;n$S=1.0;g6y.a3e(1);h3v=g6y.B0m(H2P,A76);g6y.a3e(1);u8X=g6y.B0m(x6s,X4V);for(var h4X=0;h4X < 4;h4X++){if(h4X === 0){z8s=-h3v;g6y.i3C(1);L10=-g6y.k$A(H2P,j6W);}if(h4X == 1){z8s=h3v;g6y.i3C(1);L10=g6y.B0m(H2P,e8G);}if(h4X == 2){z8s=-u8X;g6y.a3e(1);L10=-g6y.B0m(x6s,W6N);}if(h4X == 3){z8s=u8X;g6y.i3C(1);L10=g6y.k$A(x6s,n$v);}g6y.i3C(40);O6z=g6y.k$A(L10,z8s);if((X4V || X4V === 0) && z8s === "0" << 32 && L10 < 0){return !1;;}if(z8s < 0){if(O6z > n$S){return !({});}else if(O6z > S1I){S1I=O6z;};}else if(z8s > 0){if(O6z < S1I){return !({});}else if(O6z < n$S){n$S=O6z;};}}g6y.i3C(145);j3N=g6y.B0m(H2P,h3v,S1I);g6y.a3e(145);D7W=g6y.k$A(x6s,u8X,S1I);g6y.i3C(145);K4B=g6y.B0m(H2P,h3v,n$S);g6y.a3e(145);W5c=g6y.B0m(x6s,u8X,n$S);try{X$V.setLineDash(g5L && g5L.length?g5L:[]);X$V.moveTo(j3N,D7W);X$V.lineTo(K4B,W5c);}catch(Q5n){;}}X$V.stroke();X$V.closePath();X$V.globalAlpha=1;X$V.lineWidth=1;};S8X.ChartEngine.prototype.plotSpline=function(y8a,c$l,q3W,K8k,j2G,j1d,I$3){var i9Q,Z4C,Q4m,j9S;if(!I$3){I$3={};}if(I$3.pattern == "none"){return;}if(j1d === !!({})){j1d=this.chart.panel;}if(j2G === null || typeof j2G == "undefined"){j2G=this.chart.context;}j2G.save();j2G.lineWidth=1.1;if(typeof q3W == "object"){j2G.strokeStyle=q3W.color;i9Q=214636097;Z4C=-1325290486;Q4m=2;for(var Q5R=1;g6y.b3_(Q5R.toString(),Q5R.toString().length,+"46790") !== i9Q;Q5R++){if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {j2G.globalAlpha=7;}j2G.lineWidth=S8X.stripPX(q3W.width);Q4m+=2;}if(g6y.m7$(Q4m.toString(),Q4m.toString().length,74470) !== Z4C){if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {g6y.a3e(38);j2G.globalAlpha=g6y.B0m("0",1);}j2G.lineWidth=S8X.stripPX(q3W.width);}if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {g6y.i3C(13);j2G.globalAlpha=g6y.B0m("1",0);}j2G.lineWidth=S8X.stripPX(q3W.width);}else {if(!q3W || q3W == "auto" || S8X.isTransparent(q3W)){j2G.strokeStyle=this.defaultColor;}else {j2G.strokeStyle=q3W;}}if(I$3.opacity){j2G.globalAlpha=I$3.opacity;}if(I$3.lineWidth){j2G.lineWidth=I$3.lineWidth;}j9S=S8X.borderPatternToArray(j2G.lineWidth,I$3.pattern);if(I$3.pattern && j2G.setLineDash){j2G.setLineDash(j9S);j2G.lineDashOffset=0;;}j2G.beginPath();k4d.plotSpline(y8a,c$l,j2G);j2G.stroke();j2G.closePath();j2G.restore();};S8X.ChartEngine.prototype.rawWatermark=function(e3U,s1k,a3p,v6m){this.canvasFont("stx_watermark",e3U);e3U.fillStyle=this.defaultColor;g6y.i3C(1);g6y.j07();e3U.globalAlpha=g6y.B0m(0,"0.5");this.chart.context.textBaseline="alphabetic";e3U.fillText(v6m,s1k,a3p);e3U.globalAlpha=1;};S8X.ChartEngine.prototype.watermark=function(v33,K$8){var k5d,u$a,P0Q,H0c,Q5W,k3B;k5d="r";k5d+="i";k5d+="gh";k5d+="t";u$a="ob";u$a+="je";u$a+="c";u$a+="t";if(K$8 && typeof K$8 != u$a){K$8={h:arguments[1],v:arguments[2],text:arguments[3]};}K$8={h:K$8.h || "left",v:K$8.v || "bottom",text:K$8.text || "",hOffset:K$8.hOffset === 0?0:K$8.hOffset || 10,vOffset:K$8.vOffset === 0?"0" | 0:K$8.vOffset || +"20",context:K$8.context || this.chart.context};P0Q=K$8.context;if(!P0Q){return;}H0c=this.panels[v33];if(!H0c || H0c.hidden){return;}Q5W=H0c.yAxis.bottom - K$8.vOffset;if(K$8.v == "top"){Q5W=H0c.top + K$8.vOffset;}else if(K$8.v == "middle"){g6y.a3e(1);var h8c=g6y.k$A(10,12);Q5W=(H0c.top + H0c.yAxis.bottom) / h8c;}P0Q.save();this.canvasFont("stx_watermark",P0Q);this.canvasColor("stx_watermark",P0Q);P0Q.textBaseline="alphabetic";k3B=H0c.left + K$8.hOffset;if(K$8.h == k5d){k3B=H0c.right - K$8.hOffset;}else if(K$8.h == "center"){g6y.a3e(19);var Y_9=g6y.k$A(9,20,11,2);k3B=(H0c.right + H0c.left - P0Q.measureText(K$8.text).width) / Y_9;}P0Q.globalAlpha=0.5;if(this.highlightedDraggable){P0Q.globalAlpha*=0.3;}P0Q.fillText(K$8.text,k3B,Q5W);P0Q.restore();};S8X.ChartEngine.prototype.displayErrorAsWatermark=function(B14,P3_){var j$s,d4c,q3A,q8Y,f96,z$b,t02,K5D,l3w,L5U,h$p,t3E,f7f;j$s="stx";j$s+="_watermar";j$s+="k";d4c="cha";d4c+="r";d4c+="t";if(!P3_){return;}if(!B14){B14=d4c;}q3A=this.panels[B14];if(!q3A || q3A.hidden){return;}q8Y=q3A.state;if(!q8Y){q3A.state=q8Y={};}f96=q8Y.studyErrors;if(!f96){q8Y.studyErrors=f96=new Set();}if(f96.has(P3_)){return;}z$b=q8Y.watermarkOffset || "10" - 0;t02=10;K5D=this.getCanvasFontSize(j$s);if(this.chart && this.chart.chartControls){l3w=q3A.yAxis.bottom;L5U=this.chart.chartControls;g6y.i3C(1);h$p=g6y.B0m(z$b,l3w);g6y.a3e(1);t3E=g6y.k$A(K5D,h$p);if(h$p > L5U.offsetTop && h$p < L5U.offsetTop + L5U.offsetHeight || t3E > L5U.offsetTop && t3E < L5U.offsetTop + L5U.offsetHeight){z$b=l3w - L5U.offsetTop + t02;}}f96.add(P3_);f7f={h:"center",v:"bottom",text:P3_,vOffset:z$b};g6y.a3e(4);z$b+=g6y.B0m(t02,K5D);q8Y.watermarkOffset=z$b;this.watermark(B14,f7f);};S8X.ChartEngine.prototype.displayChart=function(X5v){var r8R;r8R="m";r8R+="a";r8R+="i";r8R+="n";if(this.runPrepend("displayChart",arguments)){return;}this.rendererAction(X5v,r8R);this.runAppend("displayChart",arguments);};};Z0=X0y=>{var i2j;i2j=X0y.CIQ;i2j.ChartEngine.prototype.cloneStyle=function(o_7){var D7j=M2dNJ;var j7L,I8k,Z6J,s64,y1A,K1q,s5Z,x04;D7j.j07();function F56(w7H){D7j.j07();return w7H[1].toUpperCase();}j7L={};I8k=!!"";for(var w7G in o_7){Z6J=o_7[w7G];if(w7G == "backgroundAttachment"){I8k=!!1;}if(I8k){if(Z6J && Z6J.constructor == String && isNaN(w7G)){j7L[w7G]=Z6J;}}else if(!isNaN(w7G)){s64=o_7.getPropertyValue(Z6J);if(s64){Z6J=Z6J.split((4674,4947) !== (6233,25.12)?7310 != 261?"-":926.71 > (1965,"682.55" - 0)?("a",7.55e+3):0x953:("T",96.22));y1A=0;K1q=Z6J.length;s5Z=Z6J[0];while(++y1A < K1q){D7j.a3e(4);var A0W=D7j.k$A(1,0);s5Z+=Z6J[y1A].charAt(+"0").toUpperCase() + Z6J[y1A].slice(A0W);}j7L[s5Z]=s64;}}else {x04=w7G.replace(i2j.camelCaseRegExp,F56);j7L[x04]=Z6J;}}return j7L;};i2j.ChartEngine.prototype.canvasStyle=function(w9t){var P3Z,J6R,E1Y;P3Z=this.styles[w9t];M2dNJ.j07();if(!P3Z){J6R=document.createElement("div");J6R.className=w9t;this.container.appendChild(J6R);E1Y=getComputedStyle(J6R);P3Z=this.styles[w9t]=this.cloneStyle(E1Y);this.container.removeChild(J6R);if(!E1Y){this.styles[w9t]=null;}}return P3Z;};i2j.ChartEngine.prototype.colorOrStyle=function(j7y){if(j7y.indexOf("#") != -1){return j7y;}if(j7y.indexOf("(") != -1){return j7y;}if(j7y == "transparent"){return j7y;}return this.canvasStyle(j7y);};i2j.ChartEngine.prototype.clearStyles=function(){this.styles={};this.defaultColor="";};i2j.ChartEngine.prototype.setStyle=function(M4o,N7O,q9l){M2dNJ.E0w();if(!this.styles[M4o]){this.canvasStyle(M4o);}if(!this.styles[M4o]){this.styles[M4o]={};}this.styles[M4o][i2j.makeCamelCase(N7O)]=q9l;};i2j.ChartEngine.prototype.canvasFont=function(D2C,E5h){var Z_v=M2dNJ;var t62,w80;if(!E5h){E5h=this.chart.context;}t62=this.canvasStyle(D2C);if(!t62){return;}Z_v.a3e(29);var Z8m=Z_v.k$A(18,2,64);Z_v.a3e(1);var v38=Z_v.B0m(7,3469);Z_v.a3e(146);var R3d=Z_v.B0m(9,33692,11,4218,9);Z_v.i3C(37);var z4Z=Z_v.k$A(9,20,432,3051);Z_v.i3C(67);var R4V=Z_v.B0m(16,77090,12,7008);Z_v.i3C(34);var H5C=Z_v.B0m(11,37187,42512);Z_v.a3e(147);var y__=Z_v.k$A(1,15,64961,61533,6);Z_v.i3C(148);var n5N=Z_v.k$A(196,14,36,144,12);w80=t62.fontStyle + " " + t62.fontWeight + " " + t62.fontSize + (Z8m > v38?(R3d,z4Z):(R4V,H5C) != (y__,n5N)?" ":144.85) + t62.fontFamily;Z_v.j07();if(w80.indexOf("undefined") == -1){E5h.font=w80;}else {this.styles[D2C]=null;Z_v.a3e(4);console.log(Z_v.B0m(D2C,"bad css style for class "));}};i2j.ChartEngine.prototype.canvasColor=function(i6i,k9f){var L_5,H6q,o17;if(!k9f){k9f=this.chart.context;}L_5=this.canvasStyle(i6i);if(!L_5){return;}H6q=L_5.color;if(!H6q){H6q=this.defaultColor;}k9f.globalAlpha=1;k9f.fillStyle=H6q;M2dNJ.E0w();k9f.strokeStyle=H6q;o17=L_5.opacity;if(typeof o17 != "undefined"){k9f.globalAlpha=o17;}};i2j.ChartEngine.prototype.getCanvasFontSize=function(E0n){var j6R,j28,f1X;j6R="1";j6R+="2";j28=this.canvasStyle(E0n);f1X=j28.fontSize;if(!f1X){f1X=j6R;}return parseInt(i2j.stripPX(f1X),10);};i2j.ChartEngine.prototype.getCanvasColor=function(u1p){var k8i;k8i=this.canvasStyle(u1p);return k8i.color;};i2j.ChartEngine.prototype.getDefaultColor=function(){var Q$h,e_C,Y_U,Q2Y,A27,D$K,l8r,e2_;M2dNJ.j07();this.defaultColor="#000000";Q$h=null;e_C=this.chart.container;while(!Q$h || i2j.isTransparent(Q$h)){Y_U=getComputedStyle(e_C);if(!Y_U){return;}Q$h=Y_U.backgroundColor;if(i2j.isTransparent(Q$h)){Q$h="transparent";}e_C=e_C.parentNode;if(!e_C || !e_C.tagName)break;}if(Q$h){if(Q$h == "transparent"){Q$h="#FFFFFF";}this.containerColor=Q$h;if(!i2j.isTransparent(Q$h)){Q2Y="#F";Q2Y+="FFFFF";A27=i2j.hsv(Q$h);D$K=A27[2];if(D$K > 0.65){this.defaultColor="#000000";}else {this.defaultColor=Q2Y;}}else {l8r="#00";l8r+="0000";this.defaultColor=l8r;}}else {e2_="#FF";e2_+="FFFF";this.containerColor=e2_;}};};d7=h$k=>{var d5a=M2dNJ;var c7M,E$M,g_W,O_U;d5a.j07();c7M=986679401;d5a.i3C(71);E$M=d5a.k$A("1978272640",32);g_W=2;for(var j4Q=1;d5a.b3_(j4Q.toString(),j4Q.toString().length,92475) !== c7M;j4Q++){O_U=h$k.CIQ;g_W+=2;}if(d5a.m7$(g_W.toString(),g_W.toString().length,33258) !== E$M){O_U=h$k.CIQ;}O_U.ChartEngine.XAxis=function(u8f){d5a.j07();for(var c50 in u8f){this[c50]=u8f[c50];}};O_U.extend(O_U.ChartEngine.XAxis.prototype,{formatter:null,adjustTimeZone:!"",idealTickSizePixels:null,timeUnit:null,timeUnitMultiplier:null,displayBorder:!![],displayGridLines:!![],noDraw:null,minimumLabelWidth:50,futureTicks:!"",futureTicksInterval:1},!!"1");O_U.ChartEngine.XAxisLabel=function(k3U,z1K,j$n){this.hz=k3U;this.grid=z1K;this.text=j$n;};O_U.ChartEngine.prototype.createXAxis=function(K9y){var O13,J4k,B3X;O13="createX";O13+="Axis";if(K9y.dataSegment.length <= +"0"){return null;}if(K9y.xAxis.noDraw){return null;}J4k=[K9y];B3X=this.runPrepend(O13,J4k);if(B3X){return B3X;}if(this.mainSeriesRenderer && this.mainSeriesRenderer.createXAxis){B3X=this.mainSeriesRenderer.createXAxis(K9y);}else {B3X=this.createTickXAxisWithDates(K9y);}this.headsUpHR();this.runAppend("createXAxis",J4k);return B3X;};O_U.ChartEngine.prototype.createXAxisLabel=function(g0A){var c0f,a1P,S88,u72,U0S,o6p,J1S,W05,S8L,M0x,s4G,B9Q,t1z,H_i,X3m,I8L,U23,N4w;c0f="t";c0f+="o";c0f+="p";if(arguments["0" * 1] instanceof O_U.ChartEngine.Panel){a1P=-1122848453;S88=745028536;u72=2;for(var D2d=1;d5a.b3_(D2d.toString(),D2d.toString().length,41169) !== a1P;D2d++){g0A={panel:arguments[6],txt:arguments[7],x:arguments[6],backgroundColor:arguments[5],color:arguments[6],pointed:arguments[1],padding:arguments["7" ^ 0]};u72+=2;}if(d5a.m7$(u72.toString(),u72.toString().length,80887) !== S88){g0A={panel:arguments[6],txt:arguments[7],x:arguments[6],backgroundColor:arguments[5],color:arguments[6],pointed:arguments[1],padding:arguments[7]};}g0A={panel:arguments[0],txt:arguments[1],x:arguments[2],backgroundColor:arguments["3" - 0],color:arguments[4],pointed:arguments[5],padding:arguments[6]};}U0S=g0A.panel;o6p=g0A.txt;J1S=g0A.x;W05=g0A.backgroundColor;S8L=g0A.color;M0x=g0A.pointed;s4G=g0A.padding === 0?0:g0A.padding || 2;B9Q=this.chart.context;t1z="stx-float-date";d5a.a3e(149);var V0W=d5a.k$A(0,13,1,26);H_i=this.getCanvasFontSize(t1z) + s4G * V0W;this.canvasFont(t1z,B9Q);try{d5a.a3e(150);var T7I=d5a.k$A(2,9,3,1,12);X3m=B9Q.measureText(o6p).width + s4G * T7I;}catch(g1v){X3m=0;}I8L=U0S.top + U0S.height - H_i - s4G;if(J1S + X3m / 2 < U0S.left || J1S - X3m / 2 > U0S.right){return;}if(!M0x){if(J1S + X3m / 2 > U0S.right){J1S=U0S.right - X3m / +"2";}if(J1S - X3m / 2 < U0S.left){d5a.a3e(25);var s1M=d5a.k$A(15,36,538);J1S=U0S.left + X3m / s1M;}}B9Q.fillStyle=W05;O_U.roundRect({ctx:B9Q,x:J1S - X3m / 2,top:I8L,width:X3m,height:H_i,radius:3,fill:!![]});U23=U0S.bottom - U0S.yAxis.bottom - H_i;B9Q.beginPath();if(M0x){d5a.i3C(1);B9Q.moveTo(d5a.k$A(U23,J1S),I8L);d5a.i3C(34);B9Q.lineTo(J1S,d5a.k$A(U23,1,I8L));d5a.a3e(4);B9Q.lineTo(d5a.B0m(U23,J1S),I8L);B9Q.closePath();B9Q.fill();}else {B9Q.moveTo(J1S,I8L);d5a.a3e(1);B9Q.lineTo(J1S,d5a.k$A(U23,I8L));B9Q.strokeStyle=W05;B9Q.stroke();}B9Q.textBaseline=c0f;B9Q.fillStyle=S8L?S8L:O_U.chooseForegroundColor(W05);if(B9Q.fillStyle == W05){N4w="#F";N4w+="FFF";N4w+="F";N4w+="F";if(W05.toUpperCase() == "#FFFFFF"){B9Q.fillStyle="#000000";}else {B9Q.fillStyle=N4w;}}d5a.a3e(151);B9Q.fillText(o6p,d5a.B0m(1,2,X3m,J1S,s4G),d5a.B0m(s4G,I8L,2,d5a.i3C(152)));};};U8=c7G=>{var K8j=M2dNJ;var E3W;E3W=c7G.CIQ;E3W.createLabel=function(q$V){var s3d,a3I,p2V,Y5L,T9c,y5h;s3d="mi";s3d+="ddle";q$V.ctx.textBaseline=s3d;q$V.ctx.fillStyle=q$V.color?q$V.color:E3W.chooseForegroundColor(q$V.backgroundColor);if(q$V.ctx.fillStyle === q$V.backgroundColor){a3I="#F";a3I+="FFF";a3I+="F";a3I+="F";p2V="#FFF";p2V+="F";p2V+="FF";if(q$V.backgroundColor.toUpperCase() == p2V){q$V.ctx.fillStyle="#000000";}else {q$V.ctx.fillStyle=a3I;}}q$V.ctx.fillText(q$V.txt,q$V.x + q$V.margin.left,q$V.y + q$V.margin.top);Y5L=-+"1150041568";T9c=590149505;y5h=2;for(var O57=+"1";K8j.m7$(O57.toString(),O57.toString().length,9615) !== Y5L;O57++){q$V.ctx.textAlign="left";y5h+=+"2";}if(K8j.b3_(y5h.toString(),y5h.toString().length,68216) !== T9c){q$V.ctx.textAlign="";}};E3W.roundRectArrow=function(p4s){K8j.j07();E3W.roundRect(p4s,"arrow");};E3W.semiRoundRect=function(l1p){var O5N;O5N="fl";O5N+="u";O5N+="s";O5N+="h";E3W.roundRect(l1p,O5N);};E3W.rect=function(W9e){K8j.j07();W9e.radius=0;E3W.roundRect(W9e);};E3W.noop=function(D3A){D3A.color=D3A.backgroundColor;E3W.createLabel(D3A);};E3W.tickedRect=function(Q00){var g3M;E3W.rect(Q00);K8j.i3C(4);var X5N=K8j.k$A(2,0);g3M=Math.round(Q00.top + Q00.height / X5N) + 0.5;Q00.ctx.beginPath();Q00.ctx.moveTo(Q00.x - 2,g3M);Q00.ctx.lineTo(Q00.x,g3M);Q00.ctx.stroke();Q00.ctx.closePath();};E3W.roundRect=function(v4G,Z48){var A_M,c3H,e3L,i_L,U38,l_v,l$d,A5d,S3i,v1w,A5X,I0w,n9u,h3N,k6M,V9Q,o7J;A_M="undefine";A_M+="d";if(arguments.length === 9){v4G={ctx:arguments[0],x:arguments[1],top:arguments[2],width:arguments["3" << 64],height:arguments[4],radius:arguments[5],fill:arguments["6" >> 0],stroke:arguments[+"7"],edge:arguments[8]};}c3H=v4G.stroke;e3L=v4G.x;i_L=v4G.top;U38=v4G.width;l_v=v4G.height;l$d=v4G.radius;A5d=v4G.fill;S3i=v4G.ctx;if(typeof c3H == "undefined"){c3H=!0;}if(typeof l$d === A_M){l$d=5;if(U38 < 0){l$d=-+"5";}}v1w=U38 < 0?l$d * -+"1":l$d;if(l$d && !Z48){K8j.i3C(1);e3L=K8j.B0m(1,e3L);}K8j.i3C(4);A5X=K8j.B0m(l$d,e3L);K8j.i3C(4);I0w=K8j.k$A(U38,e3L);K8j.i3C(4);n9u=K8j.B0m(v1w,i_L);K8j.a3e(4);h3N=K8j.k$A(l_v,i_L);K8j.i3C(1);k6M=K8j.k$A(l$d,I0w);K8j.a3e(1);V9Q=K8j.k$A(v1w,h3N);S3i.beginPath();S3i.moveTo(A5X,i_L);S3i.lineTo(k6M,i_L);S3i.quadraticCurveTo(I0w,i_L,I0w,n9u);S3i.lineTo(I0w,V9Q);S3i.quadraticCurveTo(I0w,h3N,k6M,h3N);S3i.lineTo(A5X,h3N);if(Z48 == "flush"){S3i.lineTo(e3L,h3N);S3i.lineTo(e3L,i_L);}else if(Z48 == "arrow"){K8j.i3C(1);S3i.quadraticCurveTo(e3L,h3N,K8j.k$A(l$d,e3L),V9Q);o7J=U38 < ("0" ^ 0)?1:-1;K8j.i3C(153);S3i.lineTo(K8j.B0m(o7J,e3L,2,l_v),K8j.B0m(i_L,2,l_v,K8j.i3C(46)));K8j.i3C(1);S3i.lineTo(K8j.k$A(l$d,e3L),n9u);S3i.quadraticCurveTo(e3L,i_L,A5X,i_L);}else {S3i.quadraticCurveTo(e3L,h3N,e3L,V9Q);S3i.lineTo(e3L,n9u);S3i.quadraticCurveTo(e3L,i_L,A5X,i_L);}S3i.closePath();if(v4G.backgroundColor){S3i.fillStyle=v4G.backgroundColor;}if(c3H){S3i.stroke();}if(A5d){S3i.fill();}if(v4G.txt){E3W.createLabel(v4G);}};E3W.ChartEngine.YAxis=function(U48){for(var Y6W in U48){this[Y6W]=U48[Y6W];}if(!this.name){this.name=E3W.uniqueID();}if(this.position == "none"){this.width=0;}};E3W.extend(E3W.ChartEngine.YAxis.prototype,{high:null,low:null,shadow:null,logHigh:null,logLow:null,logShadow:null,multiplier:null,bottom:null,top:null,height:null,left:null,width:null,renderers:[],studies:[]},!!({}));K8j.a3e(82);E3W.ChartEngine.YAxis.defaultShadowBreaks=[[1000,2],[K8j.k$A(0,"5"),4],[0.001,8]];K8j.a3e(82);E3W.ChartEngine.YAxis.smallChartShadowBreaks=[[K8j.B0m(32,"10"),K8j.B0m(0,"2",K8j.i3C(1))],[1,4]];E3W.ChartEngine.YAxis.prototype.maxDecimalPlaces=null;E3W.ChartEngine.YAxis.prototype.max=null;E3W.ChartEngine.YAxis.prototype.min=null;E3W.ChartEngine.YAxis.prototype.decimalPlaces=null;E3W.ChartEngine.YAxis.prototype.idealTickSizePixels=null;E3W.ChartEngine.YAxis.prototype.minimumPriceTick=null;E3W.ChartEngine.YAxis.prototype.fractional=null;E3W.ChartEngine.YAxis.prototype.displayBorder=!"";E3W.ChartEngine.YAxis.prototype.displayGridLines=!!1;E3W.ChartEngine.YAxis.prototype.noDraw=null;E3W.ChartEngine.YAxis.prototype.drawCurrentPriceLabel=!!({});E3W.ChartEngine.YAxis.prototype.drawSeriesPriceLabels=!![];E3W.ChartEngine.YAxis.prototype.drawPriceLabels=!![];E3W.ChartEngine.YAxis.prototype.goldenRatioYAxis=!![];E3W.ChartEngine.YAxis.prototype.yaxisLabelStyle=null;E3W.ChartEngine.YAxis.prototype.justifyRight=null;E3W.ChartEngine.YAxis.prototype.flipped=!({});E3W.ChartEngine.YAxis.prototype.textBackground=!!0;E3W.ChartEngine.YAxis.prototype.priceFormatter=null;E3W.ChartEngine.YAxis.prototype.bottomOffset=0;E3W.ChartEngine.YAxis.prototype.topOffset=0;E3W.ChartEngine.YAxis.prototype.initialMarginTop=10;E3W.ChartEngine.YAxis.prototype.initialMarginBottom=10;E3W.ChartEngine.YAxis.prototype.zoom=0;E3W.ChartEngine.YAxis.prototype.scroll=0;E3W.ChartEngine.YAxis.prototype.heightFactor=1;Object.defineProperty(E3W.ChartEngine.YAxis.prototype,"width",{configurable:!!"1",enumerable:!!"1",get:function(){return this._dynamicWidth || this._width;},set:function(d8V){this._width=d8V;if(this._dynamicWidth < d8V){this._dynamicWidth=NaN;}}});K8j.i3C(1);E3W.ChartEngine.YAxis.prototype.width=K8j.k$A(0,"60");E3W.ChartEngine.YAxis.prototype.smallScreenWidth=+"50";E3W.ChartEngine.YAxis.prototype.textStyle=null;E3W.ChartEngine.YAxis.prototype.position=null;E3W.ChartEngine.YAxis.prototype.pretty=!![];E3W.ChartEngine.YAxis.prototype.increments=[1,2.5,+"5"];E3W.ChartEngine.YAxis.prototype.prettySemiLog=!![];E3W.ChartEngine.YAxis.prototype.shadowBreaks=E3W.ChartEngine.YAxis.defaultShadowBreaks;E3W.ChartEngine.YAxis.prototype.getYAxis=function(E1h){return this;};E3W.ChartEngine.YAxis.prototype.isShared=function(b7H,i2f){var L4s,O66;K8j.E0w();L4s=this.studies.length;O66=this.renderers.length;if(L4s > 1){return !![];}if(O66 && L4s){return !!1;}if(!O66){return ![];}if(O66 > 1 && i2f){return !![];}for(var l$G=O66 - 1;l$G >= 0;l$G--){if(b7H.chart.seriesRenderers[this.renderers[l$G]].params.dependentOf){O66--;}}K8j.a3e(154);return K8j.B0m(O66,1);};E3W.ChartEngine.YAxis.prototype.setBackground=function(b7u,I4c){var b4t;if(!I4c){I4c={};}if(!I4c.color){I4c.color="auto";}b4t=[[this.left,this.top],[this.left,this.bottom],[this.left + this.width,this.bottom],[this.left + this.width,this.top]];E3W.fillArea(b7u,b4t,{color:I4c.color,opacity:I4c.opacity});};E3W.ChartEngine.YAxis.prototype.setBreakpointWidth=function(k6e){var h3j,B7L,q2k,m37;if(!k6e){return;}h3j=1063842979;B7L=-+"1944966853";q2k=2;for(var V_b="1" * 1;K8j.b3_(V_b.toString(),V_b.toString().length,69962) !== h3j;V_b++){var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.a3e(155);m37=K8j.B0m("",k6e);q2k+=2;}if(K8j.m7$(q2k.toString(),q2k.toString().length,81858) !== B7L){var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.a3e(123);m37=K8j.k$A(k6e,"");}var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.i3C(123);m37=K8j.k$A(k6e,"break-sm");this.width=m37?b9Z:m7l;};E3W.ChartEngine.prototype.getLabelOffsetInPixels=function(Y6_,w2k){var c_M,P4c,e93;c_M=!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars;if(this.yaxisLabelStyle == "roundRectArrow" && !(c_M && this.extendLastTick && Y6_.yaxisPaddingRight !== 0)){P4c=3;K8j.a3e(22);var f4Q=K8j.B0m(6,3,22,82);e93=this.getCanvasFontSize("stx_yaxis") + P4c * f4Q;K8j.a3e(38);return K8j.B0m(e93,0.66);}return +"0";};E3W.ChartEngine.prototype.flipChart=function(i1o){if(this.layout.flipped == i1o){return;}this.layout.flipped=i1o;this.chart.yAxis.flipped=i1o;this.changeOccurred("layout");this.draw();};E3W.ChartEngine.prototype.calculateYAxisMargins=function(U$w){if(U$w.heightFactor){K8j.a3e(7);var w0N=K8j.k$A(0,8,7);U$w.zoom=U$w.height * (w0N - U$w.heightFactor);}U$w.zoom+=U$w.initialMarginTop + U$w.initialMarginBottom;K8j.i3C(58);var W6t=K8j.k$A(15,10,11,16);U$w.scroll=(U$w.initialMarginTop - U$w.initialMarginBottom) / W6t;K8j.j07();if(U$w.zoom > U$w.height){U$w.zoom=0;U$w.scroll=0;}};E3W.ChartEngine.prototype.resetDynamicYAxis=function(b2Q){var E96,Q18,Q0I;if(this.runPrepend("resetDynamicYAxis",arguments)){return;}E96=![];for(var w$d in this.panels){Q18=this.panels[w$d];if(b2Q && b2Q.chartName && Q18.chart.name !== b2Q.chartName)continue;if(!Q18.yaxisLHS || !Q18.yaxisRHS)continue;Q0I=Q18.yaxisLHS.concat(Q18.yaxisRHS);for(var L5q=0;L5q < Q0I.length;L5q++){if(Q0I[L5q]._dynamicWidth){Q0I[L5q]._dynamicWidth=NaN;E96=!0;}}}if(E96 && (!b2Q || !b2Q.noRecalculate)){this.calculateYAxisPositions();}this.runAppend("resetDynamicYAxis",arguments);};E3W.ChartEngine.prototype.notifyBreakpoint=function(V2n){var r68,x5I,o2a,J9e;r68="b";r68+="reak-";r68+="s";r68+="m";if(this.chart.breakpoint === V2n){return;}if(!["break-lg","break-md",r68].includes(V2n)){return;}var {chart:R97}=this;var {dynamicYAxis:C$W}=R97;this.clearStyles();R97.breakpoint=V2n;for(var U33 in this.panels){x5I=this.panels[U33];o2a=x5I.yaxisRHS.concat(x5I.yaxisLHS);for(var m_Z=0;m_Z < o2a.length;m_Z++){J9e=o2a[m_Z];J9e.setBreakpointWidth(V2n);}}if(C$W){this.resetDynamicYAxis({chartName:R97.name});}};E3W.ChartEngine.prototype.adjustYAxisHeightOffset=function(R_I,J01){var O5c,S1g,e2B,C1R;O5c=J01.topOffset;S1g=J01.bottomOffset;if(O5c + S1g > R_I.height){e2B="The sum of yAxis.topOffset and yAxis.bottomOffset cannot be greater than the panel height. Both values will be r";e2B+="eset to 0.";console.log(e2B);J01.bottomOffset=+"0";J01.topOffset=+"0";}if(!this.xaxisHeight && this.xaxisHeight !== 0){K8j.a3e(33);var t2$=K8j.B0m(7,18,13,1634);this.xaxisHeight=this.getCanvasFontSize("stx_xaxis") + t2$;if(this.chart.xAxis.displayBorder || this.axisBorders){this.xaxisHeight+=3;}}C1R=this.xAxisAsFooter && R_I.bottom > this.chart.canvasHeight - this.xaxisHeight || !this.xAxisAsFooter && R_I == this.chart.panel;if(C1R){S1g+=this.xaxisHeight;}J01.top=R_I.top + O5c;J01.bottom=R_I.bottom - S1g;};E3W.ChartEngine.prototype.plotYAxisGrid=function(V3j){var t1S,J3F,H2c,O_h;t1S="plotYA";t1S+="xisGrid";J3F="plo";J3F+="tYAxisGrid";if(this.runPrepend(J3F,arguments)){return;}H2c=this.getBackgroundCanvas().context;O_h=V3j.yAxis;if(O_h.yAxisPlotter){O_h.yAxisPlotter.draw(H2c,"grid");}this.runAppend(t1S,arguments);};E3W.ChartEngine.prototype.plotYAxisText=function(z_k){var M61,U_S,w7r,p08,F3O;M61="plotYAxisT";M61+="e";M61+="x";M61+="t";if(this.runPrepend(M61,arguments)){return;}U_S=this.getBackgroundCanvas().context;this.canvasFont("stx_yaxis",U_S);this.canvasColor("stx_yaxis",U_S);U_S.textBaseline="middle";w7r=z_k.yaxisLHS;for(p08=0;p08 < w7r.length;p08++){F3O="rig";F3O+="ht";U_S.textAlign=F3O;M3K(w7r[p08]);}w7r=z_k.yaxisRHS;for(p08=0;p08 < w7r.length;p08++){U_S.textAlign="left";M3K(w7r[p08]);}U_S.textAlign="left";U_S.textBaseline="alphabetic";this.runAppend("plotYAxisText",arguments);function M3K(B2j){var S5h;S5h="t";S5h+="e";S5h+="xt";if(!B2j.yAxisPlotter){return;}if(B2j.noDraw || !B2j.width){return;}if(B2j.justifyRight){U_S.textAlign="right";}else if(B2j.justifyRight === ![]){U_S.textAlign="left";}B2j.yAxisPlotter.draw(U_S,S5h);}};E3W.ChartEngine.prototype.decimalPlacesFromPriceTick=function(X7T){if(X7T < 0.0001){K8j.a3e(13);return K8j.B0m("8",0);}if(X7T < 0.01){return 4;}if(X7T < 0.1){return 2;}if(X7T < 1){return 1;}return 0;};E3W.ChartEngine.prototype.formatYAxisPrice=function(d8d,T0g,l$c,p8D,a_i){var B4Q,n0Y,M5S,d2d,o7s;if(d8d === null || typeof d8d == "undefined" || isNaN(d8d)){return "";}if(!T0g){T0g=this.chart.panel;}B4Q=p8D?p8D:T0g.yAxis;n0Y=l$c;if(!n0Y && n0Y !== 0){n0Y=B4Q.printDecimalPlaces;}if(!n0Y && n0Y !== +"0"){n0Y=this.decimalPlacesFromPriceTick(B4Q.priceTick);}M5S=B4Q == T0g.chart.yAxis?20000:+"1000";if(B4Q.priceTick >= M5S){d8d=d8d.toFixed(n0Y);return E3W.condenseInt(d8d);}d2d=this.internationalizer;if(d2d && a_i !== ![]){o7s=d2d.priceFormatters.length;if(n0Y >= o7s){K8j.i3C(1);n0Y=K8j.k$A(1,o7s);}d8d=d2d.priceFormatters[n0Y].format(d8d);}else {d8d=d8d.toFixed(n0Y);;}return d8d;};E3W.ChartEngine.prototype.calculateYAxisRange=function(O5j,u96,E9W,j6e){var X2s,V7n,Q0T,a9X,U7d,C7m,Z$9,W2G,e2P,I5O,L9M,b5e,b6R;X2s="l";X2s+="o";X2s+="g";if(E9W == Number.MAX_VALUE){E9W=0;j6e=0;}V7n=O5j.height;Q0T=null;a9X=null;this.adjustYAxisHeightOffset(O5j,u96);u96.height=u96.bottom - u96.top;U7d=Math.round(Math.abs(V7n / 5));if(u96.zoom >= 0 && V7n - Math.abs(u96.scroll) < U7d){K8j.a3e(156);var y_E=K8j.B0m(13,33,11,10,1);K8j.a3e(18);var l9_=K8j.B0m(953,17,18,15,21);u96.scroll=(V7n - U7d) * (u96.scroll < 0?y_E:l9_);}C7m=O5j.chart.name === O5j.name && O5j.yAxis.name === u96.name;K8j.E0w();Z$9=E9W > 0 && (this.layout.semiLog || this.layout.chartScale == X2s) && !O5j.chart.isComparison && this.layout.aggregationType != "pandf";if(E9W || E9W === 0){if(j6e - E9W === 0){W2G=Math.pow(10,-(E9W.toString() + (6227 != ("1487" << 96,614.85)?".":(+"721.79",380) === 5393?(121.24,!"1"):3753 <= (5720,1355)?("4.11e+3" << 64,!!0):"Z")).split(9779 !== (2449,1360)?".":(142.21,+"911.62"))[1].length);if(W2G == 1){W2G=100;}K8j.a3e(4);Q0T=K8j.B0m(W2G,E9W);K8j.i3C(1);a9X=K8j.B0m(W2G,E9W);}else {if(C7m && Z$9 && (j6e || j6e === 0)){e2P=Math.log(E9W) / Math.LN10;I5O=Math.log(j6e) / Math.LN10;Q0T=Math.pow(10,I5O);a9X=Math.pow(10,e2P);}else {Q0T=j6e;a9X=E9W;}}u96.high=Q0T;u96.low=a9X;}if(u96.max || u96.max === 0){u96.high=u96.max;}if(u96.min || u96.min === 0){u96.low=u96.min;}u96.shadow=u96.high - u96.low;if(C7m){if(u96.semiLog != Z$9){L9M=644227104;b5e=-113168193;b6R=2;for(var I9o=1;K8j.m7$(I9o.toString(),I9o.toString().length,17288) !== L9M;I9o++){this.clearPixelCache();K8j.i3C(71);b6R+=K8j.k$A("2",0);}if(K8j.b3_(b6R.toString(),b6R.toString().length,58110) !== b5e){this.clearPixelCache();}u96.semiLog=Z$9;}u96.flipped=this.layout.flipped;}};E3W.ChartEngine.prototype.renderYAxis=function(A3o){var v1G,S$M,a5s,Z7n,R9W,Q9y,h1f,p9C,a0X,R2f;v1G="yAx";v1G+="is";S$M="re";S$M+="b";S$M+="oot dr";S$M+="aw";if(this.runPrepend("renderYAxis",arguments)){return;}if(this.checkLogScale()){throw new Error(S$M);}this.rendererAction(A3o,v1G);var {context:X1B}=this.getBackgroundCanvas(A3o);for(var G_t in this.panels){a5s=this.panels[G_t];if(a5s.chart != A3o)continue;Z7n=a5s.yaxisRHS.concat(a5s.yaxisLHS);for(R9W=0;R9W < Z7n.length;R9W++){Q9y=Z7n[R9W];this.calculateYAxisRange(a5s,Q9y,Q9y.lowValue,Q9y.highValue);h1f=E3W.getFn("Studies.getYAxisParameters",{})(this,Q9y);h1f.yAxis=Q9y;this.createYAxis(a5s,h1f);this.drawYAxis(a5s,h1f);E3W.getFn("Studies.doPostDrawYAxis")(this,Q9y);}for(R9W=0;R9W < Z7n.length;R9W++){Q9y=Z7n[R9W];if(Q9y.dropzone){p9C=this.canvasStyle("stx-subholder dropzone left");if(p9C){X1B.strokeStyle=p9C.borderLeftColor;X1B.lineWidth=parseFloat(p9C.borderLeftWidth);X1B.beginPath();if(Q9y.dropzone == "all"){X1B.strokeRect(Q9y.left,Q9y.top,Q9y.width,Q9y.height);}else {a0X="l";a0X+="e";a0X+="ft";R2f=Q9y.left + (Q9y.dropzone == a0X?0:Q9y.width);X1B.moveTo(R2f,Q9y.top);X1B.lineTo(R2f,Q9y.top + Q9y.height);X1B.stroke();}}}}if(this.displayDragOK){this.displayDragOK(!!"1");}}this.runAppend("renderYAxis",arguments);};E3W.ChartEngine.prototype.updateFloatHRLabel=function(D8w){K8j.j07();var y8V,Y0V,n8_,J3S,n3t,p4O,j3W,X5k,e$_;if(!this.floatCanvas){return;}y8V=D8w.yaxisLHS.concat(D8w.yaxisRHS);Y0V=this.crossYActualPos?this.crossYActualPos:this.cy;if(this.floatCanvas.isDirty){E3W.clearCanvas(this.floatCanvas,this);}if(this.controls.crossX && this.controls.crossX.style.display == "none"){return;}if(this.controls.crossY){n8_="p";n8_+="x";J3S="r";J3S+="oundRectAr";J3S+="row";n3t=D8w.width;if(this.yaxisLabelStyle == J3S){n3t-=+"7";}this.controls.crossY.style.left=D8w.left + n8_;K8j.i3C(4);this.controls.crossY.style.width=K8j.k$A("px",n3t);}for(var C1r="0" - 0;C1r < y8V.length;C1r++){p4O=y8V[C1r];j3W=this.transformedPriceFromPixel(Y0V,D8w,p4O);if(isNaN(j3W))continue;if((p4O.min || p4O.min === 0) && j3W < p4O.min)continue;if((p4O.max || p4O.max === 0) && j3W > p4O.max)continue;X5k=null;if(p4O !== D8w.chart.yAxis){X5k=this.decimalPlacesFromPriceTick(p4O.priceTick);if(p4O.decimalPlaces || p4O.decimalPlaces === 0){X5k=p4O.decimalPlaces;}}if(p4O.priceFormatter){j3W=p4O.priceFormatter(this,D8w,j3W,X5k);}else {j3W=this.formatYAxisPrice(j3W,D8w,X5k,p4O);}e$_=this.canvasStyle("stx-float-price");this.createYAxisLabel(D8w,j3W,Y0V,e$_.backgroundColor,e$_.color,this.floatCanvas.context,p4O);this.floatCanvas.isDirty=!0;}};E3W.ChartEngine.prototype.whichYAxis=function(l13,J5O,R5l){var i$J,z7a,s3G;if(typeof J5O === "undefined"){J5O=this.cx;}K8j.j07();if(typeof R5l === "undefined"){R5l=this.cy;}i$J=this.whichPanel(R5l);if(l13 && l13 == i$J){z7a=l13.yaxisLHS.concat(l13.yaxisRHS);for(var d1y="0" >> 0;d1y < z7a.length;d1y++){s3G=z7a[d1y];if(s3G.left <= J5O && s3G.left + s3G.width >= J5O){return s3G;}}}return null;};E3W.ChartEngine.prototype.yaxisMatches=function(Q0H,h$B){if(!Q0H || !Q0H.getYAxis || !h$B || !(h$B instanceof E3W.ChartEngine.YAxis)){return !1;}return Q0H.getYAxis(this).name == h$B.name;};E3W.ChartEngine.prototype.createYAxisLabel=function(T4D,w_h,b8S,E_8,V3w,O9J,e$t){var c6R,d7Z,k6E,C1F,w2h,w6x,H5B,h45,S2D,Y6V,E2J,U4h,V6w,o3R,n2l;c6R="stx_yax";c6R+="is";if(T4D.yAxis.drawPriceLabels === ![] || T4D.yAxis.noDraw){return;}d7Z=e$t?e$t:T4D.yAxis;if(d7Z.noDraw || !d7Z.width){return;}k6E=O9J?O9J:this.chart.context;C1F=3;w2h=this.getCanvasFontSize(c6R) + C1F * ("2" | 0);this.canvasFont("stx_yaxis",k6E);w6x=d7Z.displayBorder;H5B=this.drawBorders?3:0;try{K8j.i3C(67);var Y4Y=K8j.k$A(15,159,8,22);h45=k6E.measureText(w_h).width + H5B + C1F * Y4Y;}catch(P5H){h45=d7Z.width;}K8j.i3C(64);var s$5=K8j.k$A(2,12,323,27);S2D=d7Z.left - C1F + s$5;if(d7Z.width < 0){S2D+=d7Z.width - h45;}K8j.a3e(50);Y6V=K8j.B0m(C1F,S2D,H5B);E2J=+"3";U4h=d7Z.position === null?T4D.chart.yAxis.position:d7Z.position;if(U4h === "left"){K8j.i3C(7);var N7C=K8j.k$A(15,2,14);S2D=d7Z.left + d7Z.width + C1F - N7C;K8j.a3e(144);h45=K8j.k$A(1,h45);if(d7Z.width < 0){S2D-=d7Z.width + h45;}K8j.i3C(34);Y6V=K8j.k$A(C1F,H5B,S2D);E2J=-3;k6E.textAlign="right";}if(b8S + w2h / 2 > d7Z.bottom){K8j.i3C(1);var Q34=K8j.B0m(18,20);b8S=d7Z.bottom - w2h / Q34;}if(b8S - w2h / 2 < d7Z.top){K8j.a3e(58);var n2V=K8j.k$A(3,7,36,6);b8S=d7Z.top + w2h / ("2" << n2V);}if(typeof E3W[this.yaxisLabelStyle] == "undefined"){V6w="r";V6w+="oundRectA";V6w+="rro";V6w+="w";this.yaxisLabelStyle=V6w;;}o3R=this.yaxisLabelStyle;if(d7Z.yaxisLabelStyle){o3R=d7Z.yaxisLabelStyle;}n2l={ctx:k6E,x:S2D,y:b8S,top:b8S - w2h / 2,width:h45,height:w2h,radius:E2J,backgroundColor:E_8,fill:!!({}),stroke:!"1",margin:{left:Y6V - S2D,top:1},txt:w_h,color:V3w};E3W[o3R](n2l);};E3W.ChartEngine.prototype.drawCurrentHR=function(){K8j.j07();var u05,v6X,q_D,K6K,e30,V_x,c64,T_u,Q7$,M6R,q_x,e_G,e7v,O8g,P2L,a4F,U34,l_b,c1s,A8u,o1g,L2L;u05="drawCur";u05+="rentHR";if(this.runPrepend(u05,arguments)){return;}K6K=this.mainSeriesRenderer || ({});if(K6K.noCurrentHR){return;}e30=K6K.highLowBars;for(var d1p in this.charts){V_x="d";V_x+="ataSegm";V_x+="ent";c64=this.charts[d1p];T_u=c64.panel;Q7$=T_u.yAxis;if(T_u.hidden)continue;if(Q7$.drawCurrentPriceLabel === !1 || Q7$.noDraw)continue;if(!K6K.params)continue;M6R=Q7$.whichSet;if(!M6R){M6R="dataSet";}if(this.isHistoricalModeSet && M6R !== "dataSegment")continue;q_x=c64[M6R].length;e_G=this.layout.candleWidth;if(M6R == V_x){while(q_x > (c64.width - this.micropixels + e_G / 2 + 1) / e_G){q_x--;}}if(q_x && c64[M6R][q_x - 1]){e7v=c64.defaultPlotField;if(!e7v || e30){e7v="Close";}do {O8g=c64[M6R][--q_x][e7v];P2L=O8g;if(q_x === 0)break;}while(P2L === null || P2L === undefined);if(M6R == "dataSet" && c64.currentQuote){P2L=c64.currentQuote[e7v];}else if(c64[M6R].length >= 2){K8j.a3e(1);a4F=c64[M6R][K8j.B0m(1,q_x)];if(a4F){O8g=a4F[e7v];}}if(P2L < O8g){v6X=this.canvasStyle("stx_current_hr_down").backgroundColor;q_D=this.canvasStyle("stx_current_hr_down").color;}else {U34="stx_current_hr_";U34+="up";v6X=this.canvasStyle("stx_current_hr_up").backgroundColor;q_D=this.canvasStyle(U34).color;}if(c64.transformFunc){P2L=c64.transformFunc(this,c64,P2L);}c1s=Math.max(T_u.yAxis.printDecimalPlaces,T_u.chart.decimalPlaces);if(Q7$.maxDecimalPlaces || Q7$.maxDecimalPlaces === 0){c1s=Math.min(c1s,Q7$.maxDecimalPlaces);}if(Q7$.priceFormatter){l_b=Q7$.priceFormatter(this,T_u,P2L,c1s);}else {l_b=this.formatYAxisPrice(P2L,T_u,c1s);}A8u=this.pixelFromTransformedValue(P2L,T_u);this.createYAxisLabel(T_u,l_b,A8u,v6X,q_D);if(this.preferences.currentPriceLine === !![] && this.isHome()){o1g="das";o1g+="h";o1g+="e";o1g+="d";L2L="lin";L2L+="e";this.plotLine(T_u.left,T_u.right,A8u,A8u,v6X,L2L,T_u.chart.context,T_u,{pattern:o1g,lineWidth:1,opacity:0.8,globalCompositeOperation:"destination-over"});}}}this.runAppend("drawCurrentHR",arguments);};E3W.ChartEngine.prototype.getYAxisByName=function(Q9I,E1p){var h$_;if(typeof Q9I == "string"){Q9I=this.panels[Q9I];}if(!Q9I || !E1p){return undefined;}if(E1p === Q9I.yAxis.name){return Q9I.yAxis;}for(h$_=+"0";Q9I.yaxisLHS && h$_ < Q9I.yaxisLHS.length;h$_++){if(Q9I.yaxisLHS[h$_].name === E1p){return Q9I.yaxisLHS[h$_];}}for(h$_=0;Q9I.yaxisRHS && h$_ < Q9I.yaxisRHS.length;h$_++){if(Q9I.yaxisRHS[h$_].name === E1p){return Q9I.yaxisRHS[h$_];}}return undefined;};E3W.ChartEngine.prototype.getYAxisByField=function(G0h,W6y){var n85,c$k,D$L,t9_,P37,a$T,O$r;if(W6y){for(n85 in this.layout.studies){c$k=this.layout.studies[n85];if(c$k.panel != G0h.name)continue;if(c$k.outputMap && c$k.outputMap.hasOwnProperty(W6y)){return c$k.getYAxis(this);}}for(n85 in this.chart.seriesRenderers){t9_=this.chart.seriesRenderers[n85];for(var i_G=+"0";i_G < t9_.seriesParams.length;i_G++){P37="-";P37+="-";P37+=">";if(t9_.params.panel != G0h.name)continue;a$T=t9_.seriesParams[i_G];O$r=a$T.field;if(!O$r && !t9_.highLowBars){O$r=this.defaultPlotField || "Close";}if(a$T.symbol && a$T.subField){O$r+=P37 + a$T.subField;}if(W6y == O$r){return t9_.params.yAxis || G0h.yAxis;}if(a$T.field && a$T.field == W6y.split("-->")[0]){D$L=t9_.params.yAxis || G0h.yAxis;}}}if(D$L){return D$L;}}return undefined;};E3W.ChartEngine.prototype.deleteYAxisIfUnused=function(p5Z,J8o){var J$9,C3$,d1D,r82;J$9="stri";J$9+="n";J$9+="g";if(typeof p5Z == J$9){p5Z=this.panels[p5Z];}if(!J8o || !p5Z){return;}for(var h2N=+"0";h2N < J8o.renderers.length;h2N++){C3$=this.chart.seriesRenderers[J8o.renderers[h2N]];if(C3$ && C3$.params.panel == p5Z.name){return;}}if(J8o.name === p5Z.yAxis.name){if(p5Z.yaxisRHS.length + p5Z.yaxisLHS.length === 1){return;}}for(d1D=0;p5Z.yaxisRHS && d1D < p5Z.yaxisRHS.length;d1D++){if(p5Z.yaxisRHS[d1D] === J8o){p5Z.yaxisRHS[d1D]=null;}else if(!r82){r82=p5Z.yaxisRHS[d1D];}}for(d1D=+"0";p5Z.yaxisLHS && d1D < p5Z.yaxisLHS.length;d1D++){if(p5Z.yaxisLHS[d1D] === J8o){p5Z.yaxisLHS[d1D]=null;}else if(!r82){r82=p5Z.yaxisLHS[d1D];}}function t$d(w1J){K8j.a3e(108);return K8j.k$A(null,w1J);}p5Z.yaxisRHS=p5Z.yaxisRHS.filter(t$d);p5Z.yaxisLHS=p5Z.yaxisLHS.filter(t$d);K8j.E0w();if(r82 && J8o.name === p5Z.yAxis.name){p5Z.yAxis=r82;}this.calculateYAxisPositions();};E3W.ChartEngine.prototype.addYAxis=function(L$w,n_p){var u$g,Z4c,g2_,t3g,X_b,z2i;u$g="lef";u$g+="t";Z4c="lef";Z4c+="t";if(typeof L$w == "string"){L$w=this.panels[L$w];}if(!n_p || !L$w){return;}if(!L$w.yaxisLHS){L$w.yaxisLHS=[];L$w.yaxisRHS=[];if(L$w.yAxis.position == "left" || L$w.yAxis.position != "right" && L$w.chart.panel.yAxis.position == "left"){L$w.yaxisLHS.push(L$w.yAxis);}else {L$w.yaxisRHS.push(L$w.yAxis);}}t3g=[];X_b=L$w.yaxisLHS;for(g2_=X_b.length - 1;g2_ >= 0;g2_--){if(X_b[g2_].name === n_p.name){z2i="ri";z2i+="g";z2i+="h";z2i+="t";if(n_p.position != z2i){return X_b[g2_];}t3g=X_b.splice(g2_,1);}}X_b=L$w.yaxisRHS;for(g2_=X_b.length - 1;g2_ >= ("0" ^ 0);g2_--){if(X_b[g2_].name === n_p.name){if(n_p.position != "left"){return X_b[g2_];}t3g=X_b.splice(g2_,+"1");}}if(n_p.position === Z4c || n_p.position != "right" && L$w.chart.panel.yAxis.position == u$g){L$w.yaxisLHS.unshift(n_p);}else {L$w.yaxisRHS.push(n_p);}if(n_p.position !== "none"){n_p.setBreakpointWidth(this.chart.breakpoint);}n_p.height=L$w.yAxis.height;n_p.idealTickSizePixels=null;if(t3g[0] == L$w.yAxis){L$w.yAxis=n_p;}this.calculateYAxisMargins(n_p);return n_p;};E3W.ChartEngine.prototype.calculateYAxisPositions=function(){var N7u,h12,j2_,N1z,H$G,D$P,Q0u,H8M,y6X,U9X,M$m,O0I,P$h,r_W,W1P,o10,v5h,C1J,B8h,F$X,N3B,Y56;N7u=[];for(var j77 in this.charts){if(this.charts[j77].hidden || this.charts[j77].panel.hidden)continue;N7u.push(j77);}for(var x80 in this.panels){h12=this.panels[x80];if(h12.name === h12.chart.name || h12.hidden)continue;N7u.push(x80);}j2_=this.drawBorders?3:0;K8j.i3C(71);N1z=K8j.B0m("0",0);H$G=0;for(Q0u="0" - 0;Q0u < N7u.length;Q0u++){U9X="ri";U9X+="g";U9X+="h";U9X+="t";M$m="n";M$m+="one";H8M=this.panels[N7u[Q0u]];if(!H8M)continue;if(!H8M.yaxisLHS){H8M.yaxisLHS=[];H8M.yaxisRHS=[];}O0I=H8M.yaxisLHS;P$h=H8M.yaxisRHS;r_W=H8M.yAxis.position;if(!r_W || r_W == M$m){r_W=H8M.chart.yAxis.position || U9X;}if(!O0I.length && !P$h.length){if(r_W == "left"){O0I.push(H8M.yAxis);}else {P$h.push(H8M.yAxis);}}W1P=[];o10=[];for(D$P=O0I.length - +"1";D$P >= 0;D$P--){v5h="le";v5h+="f";v5h+="t";if(O0I[D$P].position == "right" || O0I[D$P].position != v5h && r_W == "right"){W1P=W1P.concat(O0I.splice(D$P,1));}}for(D$P=P$h.length - 1;D$P >= 0;D$P--){if(P$h[D$P].position == "left" || P$h[D$P].position != "right" && r_W == "left"){o10=o10.concat(P$h.splice(D$P,1));}}H8M.yaxisLHS=o10.concat(O0I);H8M.yaxisRHS=P$h.concat(W1P);if(!H8M.yAxis.width && H8M.yAxis.width !== 0){H8M.yAxis.width=this.yaxisWidth;}H8M.yaxisTotalWidthRight=0;K8j.a3e(14);H8M.yaxisTotalWidthLeft=K8j.k$A(0,"0");C1J=H8M.yaxisLHS.concat(H8M.yaxisRHS);for(D$P=0;D$P < C1J.length;D$P++){B8h="l";B8h+="ef";B8h+="t";y6X=C1J[D$P];if(y6X.noDraw || !y6X.width)continue;if(y6X.position == "left" || r_W == B8h && !y6X.position){H8M.yaxisTotalWidthLeft+=y6X.width;}else {H8M.yaxisTotalWidthRight+=y6X.width;}}if(H8M.yaxisTotalWidthLeft > N1z){N1z=H8M.yaxisTotalWidthLeft;}if(H8M.yaxisTotalWidthRight > H$G){H$G=H8M.yaxisTotalWidthRight;}}for(Q0u="0" ^ 0;Q0u < N7u.length;Q0u++){H8M=this.panels[N7u[Q0u]];if(!H8M)continue;F$X=H8M.name === H8M.chart.name;N3B=N1z;for(D$P=H8M.yaxisLHS.length - 1;D$P >= 0;D$P--){y6X=H8M.yaxisLHS[D$P];if(y6X.noDraw)continue;N3B-=y6X.width;y6X.left=N3B;}N3B=this.width - H$G;for(D$P=0;D$P < H8M.yaxisRHS.length;D$P++){y6X=H8M.yaxisRHS[D$P];if(y6X.noDraw)continue;y6X.left=N3B;N3B+=y6X.width;}if(typeof this.yaxisLeft != "undefined"){H8M.chart.yaxisPaddingRight=this.yaxisLeft;}H8M.yaxisCalculatedPaddingRight=H$G;if(H8M.chart.yaxisPaddingRight || H8M.chart.yaxisPaddingRight === 0){H8M.yaxisCalculatedPaddingRight=H8M.chart.yaxisPaddingRight;}H8M.yaxisCalculatedPaddingLeft=N1z;if(H8M.chart.yaxisPaddingLeft || H8M.chart.yaxisPaddingLeft === "0" << 0){H8M.yaxisCalculatedPaddingLeft=H8M.chart.yaxisPaddingLeft;}if(F$X || H8M.chart.panel.hidden){H8M.left=H8M.yaxisCalculatedPaddingLeft;H8M.right=this.width - H8M.yaxisCalculatedPaddingRight;}else {H8M.left=H8M.chart.panel.left;H8M.right=H8M.chart.panel.right;}H8M.width=H8M.right - H8M.left;if(H8M.handle){Y56="p";Y56+="x";H8M.handle.style.left=H8M.left + Y56;H8M.handle.style.width=H8M.width + "px";}if(F$X || H8M.chart.panel.hidden){H8M.chart.panel.left=H8M.chart.left=H8M.left;H8M.chart.panel.right=H8M.chart.right=H8M.right;H8M.chart.panel.width=H8M.chart.width=Math.max(H8M.right - H8M.left,+"0");;}}this.setCandleWidth(this.layout.candleWidth);this.adjustPanelPositions();;};E3W.ChartEngine.prototype.getYAxisCurrentPosition=function(L3j,A1u){var u4F,Z05;if(!L3j.width){return "none";}u4F=A1u.yaxisLHS;for(var F5K=0;F5K < u4F.length;F5K++){Z05="l";Z05+="ef";Z05+="t";if(u4F[F5K].name == L3j.name){return Z05;}}return "right";};E3W.ChartEngine.prototype.setYAxisPosition=function(n1z,E4l){n1z.position=E4l;K8j.j07();if(E4l === "none"){n1z.width=0;}else {n1z.setBreakpointWidth(this.chart.breakpoint);}this.calculateYAxisPositions();this.draw();};E3W.ChartEngine.prototype.electNewYAxisOwner=function(E2d){var e1B,z90;e1B=E2d.studies[0];K8j.j07();if(!e1B || e1B == E2d.name){e1B=E2d.renderers[0];}if(!e1B || e1B == E2d.name){e1B=E2d.studies[1];}if(!e1B){e1B=E2d.renderers[1];}for(var Q3i=0;Q3i < E2d.studies.length;Q3i++){z90=this.layout.studies[E2d.studies[Q3i]];if(z90.parameters && z90.parameters.yaxisDisplayValue == E2d.name){z90.parameters.yaxisDisplayValue=e1B;}}return e1B;};};Z9=L7V=>{var X5y=M2dNJ;X5y.O6j=function(U6i){if(X5y)return X5y.E3C(U6i);};X5y.v9q=function(U_n){X5y.E0w();if(X5y)return X5y.E3C(U_n);};var p6W,G1S,a91;p6W=L7V.CIQ;X5y.j07();G1S="valid";function F6r(K_I,X5M){var i1m,n5o,Q66,L7Z,Z_6,Z49,F2g,h30,q9L,e01;if(K_I.hasOwnProperty(a91)){return;}i1m=new Image();n5o=10;Q66=3.375;X5y.a3e(40);L7Z=X5y.B0m(4,5);X5y.a3e(40);Z_6=X5y.B0m(5,4);Z49=5;X5y.i3C(7);var s69=X5y.k$A(0,22,14);X5y.a3e(157);var e9u=X5y.k$A(135,2,18,14,7);F2g=Math.pow(L7Z,s69) / e9u;X5y.i3C(40);X5y.E0w();h30=X5y.B0m(1,4);q9L=h30;e01=Object.create(null,{sizeRatio:{configurable:![],enumerable:!({}),get:function(){return q9L;},set:function(t8_){X5y.E0w();if(t8_ < F2g){q9L=F2g;}else if(t8_ > h30){q9L=h30;}else {q9L=t8_ || h30;}}},draw:{configurable:!({}),enumerable:!1,value:function(h54){X5y.j07();var P3d,U97,p2x,x1f,Q29,d62,N4z,w_o,R4S,x2p,r62;if(this.image){P3d=document.querySelector("cq-attrib-container")?document.querySelector("cq-attrib-container").offsetHeight:0;U97=h54.yAxis.bottom - P3d - n5o;var {width:K8r, height:U0f}=this.image;if(isNaN(K8r) || isNaN(U0f)){return;}p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;Q29=+"1547377217";d62=+"835693819";N4z=2;for(var G0G="1" - 0;X5y.m7$(G0G.toString(),G0G.toString().length,"75923" * 1) !== Q29;G0G++){w_o=h54.left + n5o;X5y.i3C(1);R4S=X5y.k$A(x1f,U97);x2p=h54.context;r62=![];N4z+=2;}if(X5y.b3_(N4z.toString(),N4z.toString().length,+"64580") !== d62){w_o=h54.left - n5o;X5y.a3e(84);R4S=X5y.B0m(x1f,U97);x2p=h54.context;r62=!!"1";}do {if((w_o + p2x * Q66 > h54.right || x1f * Z49 > U97) && this.sizeRatio > F2g){this.sizeRatio*=L7Z;p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;X5y.a3e(1);R4S=X5y.k$A(x1f,U97);r62=!"";}else if(w_o + K8r * (this.sizeRatio * Z_6) * Q66 < h54.right && U0f * (this.sizeRatio * Z_6) * Z49 < U97 && this.sizeRatio < h30){this.sizeRatio*=Z_6;p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;X5y.a3e(1);R4S=X5y.k$A(x1f,U97);r62=!![];}else {r62=!({});}}while(r62);x2p.save();var [,,k7y]=p6W.hsl(K_I.containerColor);x2p.globalAlpha=k7y > 0.35?0.15:0.2;this.image.src=k7y > "0.35" * 1?this.image.darksrc:this.image.lightsrc;x2p.drawImage(this.image,0,0,K8r,U0f,w_o,R4S,p2x,x1f);x2p.restore();this.first=!!"";}else if(this.first !== !({})){this.first=h54;}},writable:!"1"}});i1m.onload=function(){var S28;S28="i";S28+="m";S28+="a";S28+="ge";Object.defineProperty(e01,S28,{configurable:!({}),enumerable:!({}),value:i1m,writable:!1});if(!i1m.darksrc){i1m.lightsrc=i1m.src;X5y.i3C(52);var J3z=X5y.B0m(5852,3,11704,1059);i1m.darksrc=X5M.slice(0,+"1063") + "i" + X5M.slice(J3z);i1m.src=i1m.darksrc;}else {if(e01.first){e01.first.container.stx.draw();}}};i1m.src=X5M;Object.defineProperty(K_I,a91,{configurable:!1,enumerable:!!"",value:e01,writable:!!""});}p6W.valid=0;p6W.ChartEngine.prototype.consolidatedQuote=function(t0e,E1w){var J4u,z$L,w6K,q5_,l7T,o57,R$y,C_u,b_h,E3F,s1y,m5N,z_4,V8i,P9y,Q4o,n9K,M82,X9A,X06,x_a,F4c;J4u="consolid";J4u+="atedQuote";if(this.runPrepend("consolidatedQuote",arguments)){return t0e;}if(!t0e || !t0e.length){return [];}z$L=this.layout;w6K=this.chart;q5_=this;if(!w6K.market){console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return t0e;}l7T=z$L.periodicity;o57=z$L.interval;R$y=z$L.timeUnit;if(!E1w){E1w={};}if(E1w.periodicity && E1w.interval){l7T=E1w.periodicity;o57=E1w.interval;R$y=E1w.timeUnit;}C_u=1;b_h=p6W.ChartEngine.isDailyInterval(o57);if(!b_h && w6K.useInflectionPointForIntraday){C_u=l7T;}E3F=w6K.inflectionPoint;if(!E3F || E3F < t0e[0].DT){E3F=new Date(+t0e[0].DT);if(!b_h && !w6K.market.market_def){X5y.a3e(14);E3F.setHours(X5y.k$A(0,"0"),-E3F.getTimezoneOffset(),0,0);}}s1y=[];m5N={begin:E3F,interval:o57,multiple:l7T / C_u,timeUnit:R$y};X5y.E0w();if(o57 == "tick"){z_4="d";z_4+="a";z_4+="y";X5y.a3e(82);E3F.setHours(0,0,X5y.B0m(0,"0"),X5y.k$A(0,"0",X5y.a3e(14)));m5N={begin:E3F,interval:z_4,multiple:1};}V8i=w6K.market.newIterator(p6W.clone(m5N));while(V8i.previous(C_u) > t0e[0].DT){;}P9y=V8i.previous(C_u);function K5F(B3t,S1f,C0L){X5y.E0w();var b15,E9h,s8D,p0U,h4S;if(!S1f){S1f={DT:C0L,Date:p6W.yyyymmddhhmmssmmm(C0L),consolidatedTicks:0};}if(!S1f.displayDate){q5_.setDisplayDate(S1f);}b15=+"1";if(z$L.adj && B3t.Adj_Close){b15=B3t.Adj_Close / B3t.Close;}E9h=B3t.High || B3t.Close;if(E9h || E9h === 0){if(E9h * b15 > (S1f.High || -Number.MAX_VALUE)){X5y.i3C(38);S1f.High=X5y.k$A(E9h,b15);}}s8D=B3t.Low || B3t.Close;if(s8D || s8D === +"0"){if(s8D * b15 < (S1f.Low || Number.MAX_VALUE)){X5y.i3C(38);S1f.Low=X5y.B0m(s8D,b15);}}p0U=B3t.Open || B3t.Close;if(p0U || p0U === 0){if(!S1f.Open && S1f.Open !== 0){X5y.a3e(38);S1f.Open=X5y.k$A(p0U,b15);}}if(B3t.Volume !== undefined){S1f.Volume=(S1f.Volume || 0) + B3t.Volume;}if(B3t.Close !== undefined && B3t.Close !== null){S1f.Close=B3t.Close * b15;}if(B3t.Adj_Close !== undefined && B3t.Adj_Close !== null){S1f.Adj_Close=B3t.Adj_Close;}S1f.ratio=b15;for(var I00 in B3t){h4S="BidL";h4S+="2";if(B3t[I00] && B3t[I00].Close !== undefined){S1f[I00]=K5F(B3t[I00],S1f[I00],C0L);}else if(!S1f[I00]){S1f[I00]=B3t[I00];}else if(["Bid",h4S,"Ask","AskL2"].indexOf(I00) > -1){S1f[I00]=B3t[I00];}}S1f.consolidatedTicks++;return S1f;}Q4o=V8i.next(C_u);n9K=0;M82=0;while(n9K < t0e.length){X9A=t0e[n9K];if(X9A.DT < P9y){X06="Warning: out-of-order quote in dataSet, disregar";X06+="ding: ";console.log(X06 + X9A.DT);n9K++;continue;}else if(X9A.DT >= Q4o){P9y=Q4o;Q4o=V8i.next(C_u);if(!s1y[M82])continue;;}else if(o57 == "tick" && X9A.consolidatedTicks > 0){s1y[M82]=X9A;n9K++;continue;}else if(!s1y[M82] || o57 != "tick" || s1y[M82].consolidatedTicks < l7T){x_a="t";x_a+="i";x_a+="c";x_a+="k";F4c=K5F(X9A,s1y[M82],o57 == x_a?X9A.DT:P9y);if(F4c){s1y[M82]=F4c;}n9K++;continue;}M82++;}this.runAppend(J4u,arguments);return s1y;};p6W[X5y.O4a("3c29")?"":"ChartEngine"][X5y.W4k("4376")?"":"prototype"][X5y.a6A("5995")?"":"createDataSet"]=function(C$n,m1A,l5C){X5y.n5w=function(i2m){X5y.j07();if(X5y && i2m)return X5y.E3C(i2m);};X5y.x0A=function(q5B){if(X5y)return X5y.E3C(q5B);};X5y.n0W=function(R4g){X5y.E0w();if(X5y && R4g)return X5y.E3C(R4g);};X5y.u8J=function(B59){X5y.E0w();if(X5y && B59)return X5y.E3C(B59);};X5y.r0b=function(c04){X5y.E0w();if(X5y && c04)return X5y.n9E(c04);};var m4t=X5y.r0b("12cf")?319125293:741102553,I6P=X5y.v9q("89b8")?6109621599:1837269196,X4h=X5y.u8J("7455")?488896348:869595839,S8i=X5y.d4y("3e3b")?923405422:405166175,i5b=-679041883,b8w=-824140698,E5G=403321787,n3d=1503657093,P9X=-308635859,b_g=X5y.n0W("955f")?9083354551:1880109647;if(!(X5y.I9H(X5y.Y0f("464f")?0:3,X5y.O6j("743a")?true:false,108272) !== m4t && X5y.O9p(0,false,889855) !== I6P && X5y.I9H(9,true,551391) !== X4h && X5y.I9H(9,X5y.x0A("f8ef")?false:true,X5y.n5w("8aff")?415535:280826) !== S8i && X5y.O9p(8,true,235761) !== i5b && X5y.O9p(10,X5y.z4n("eb5f")?true:false,209744) !== b8w && X5y.O9p(X5y.h0R("615f")?9:8,true,X5y.b84("da3b")?411268:850381) !== E5G && X5y.O9p(9,true,762558) !== n3d && X5y.O9p(10,true,109581) !== P9X && X5y.I9H(8,true,947462) !== b_g)){var A4W,Q03,k1l,X3d,E6H,Y9M,z8l,b01,P81,d53,X4o,z6G,I_F,c76,X0$,o47,A9P,A2r,P5e,s2s,x7j,l0e,p4l,p5S,P$S,z3u,y$f,R1O,D2P,p58,J8p,G41,E7H,e2T,A7g,W6A,r3Y,b30,b4U,L5B,f1a,O46,O6Z,c0j,P0E,F_I,D8A,J9k,M6b,N9W,x52;A4W="create";A4W+="Data";A4W+="Set";Q03="mont";Q03+="h";k1l="w";k1l+="eek";if(!l5C){l5C={};}X3d=this["chart"];E6H=[C$n,X3d,{appending:l5C["appending"],appendToDate:l5C["appendToDate"]}];if(this["runPrepend"]("createDataSet",E6H)){return;}z8l=[];b01=[];P81=l5C["appending"];if(!X3d["dataSet"]){X3d["dataSet"]=[];}d53=X3d["dataSet"]["length"];if(P81){z8l=X3d["dataSet"];}X3d["currentQuote"]=null;X3d["dataSet"]=[];if(!P81){X3d["tickCache"]={};}X4o=X3d["masterData"];if(!X4o){X4o=this["masterData"];}if(!X4o || !X4o["length"]){this["runAppend"]("createDataSet",E6H);return;}if(z8l["length"]){z6G=z8l["pop"]();while(z6G["futureTick"] && z8l["length"]){z6G=z8l["pop"]();d53--;}I_F=l5C["appendToDate"];if(!I_F || I_F > z6G["DT"]){I_F=z6G["DT"];}while(z8l["length"]){if(z8l[z8l["length"] - ("1" ^ 0)]["DT"] < I_F)break;z8l["pop"]();}X5y["i3C"](114);var F44=X5y["B0m"](3,6,4,6);c76=X4o["length"] - F44;while(c76 >= "0" >> 64 && X4o[c76]["DT"] >= I_F){c76--;}X5y["i3C"](4);Y9M=X4o["slice"](X5y["k$A"](1,c76));}else {Y9M=[]["concat"](X4o);}if(!Z9f()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,Y9M);}if(!this["chart"]["hideDrawings"]){o47="pro";o47+="je";o47+="ction";for(X0$=0;X0$ < this["drawingObjects"]["length"];X0$++){A9P="proj";A9P+="ectio";A9P+="n";if(this["drawingObjects"][X0$]["name"] == A9P){p6W["getFn"]("Drawing.printProjection")(this,this["drawingObjects"][X0$],Y9M);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == o47){A2r="Drawing.printProject";A2r+="ion";p6W["getFn"](A2r)(this,this["activeDrawing"],Y9M);}}X0$=0;P5e=-Number["MAX_VALUE"];s2s=Number["MAX_VALUE"];l0e=0;p4l=C$n || this["dontRoll"];p5S=this["layout"];P$S=p6W["ChartEngine"]["isDailyInterval"](p5S["interval"]);while("1" - 0){if(l0e >= Y9M["length"])break;if(!(this["dontRoll"] && (p5S["interval"] == "week" || p5S["interval"] == "month")) && this["extendedHours"] && this["extendedHours"]["filter"] && X3d["market"]["market_def"]){R1O=Y9M[l0e];if(P$S){y$f=!X3d["market"]["isMarketDate"](R1O["DT"]);}else {if(!z3u || z3u <= R1O["DT"]){D2P=X3d["market"]["getSession"](R1O["DT"]);y$f=D2P !== "" && (!p5S["marketSessions"] || !p5S["marketSessions"][D2P]);z3u=X3d["market"][y$f?"getNextOpen":"getNextClose"](R1O["DT"]);}}if(y$f){l0e++;continue;}}x7j={};for(var r1M in Y9M[l0e]){x7j[r1M]=Y9M[l0e][r1M];}Y9M[l0e]=x7j;x7j["ratio"]=1;if(p5S["adj"] && x7j["Adj_Close"]){x7j["ratio"]=x7j["Adj_Close"] / x7j["Close"];}if(x7j["ratio"] != 1){if(x7j["Open"]){x7j["Open"]=Number((x7j["Open"] * x7j["ratio"])["toFixed"](+"8"));}if(x7j["Close"]){x7j["Close"]=Number((x7j["Close"] * x7j["ratio"])["toFixed"](8));}if(x7j["High"]){x7j["High"]=Number((x7j["High"] * x7j["ratio"])["toFixed"](+"8"));}if(x7j["Low"]){x7j["Low"]=Number((x7j["Low"] * x7j["ratio"])["toFixed"](8));}}b01[X0$++]=Y9M[l0e++];}if(p5S["periodicity"] > 1 || !p4l && (p5S["interval"] == k1l || p5S["interval"] == Q03)){if(z8l["length"]){b01["unshift"](z8l["pop"]());}b01=this["consolidatedQuote"](b01);}p58={};function Z9f(){var u3D=944818376,F7l=1137385624,C55=1154678043,b$G=-190126469,z5e=1486890309,g98=-1272553395,F6X=1674585203,F2P=827459037,d8a=1668063261,E0t=1948160630;if(X5y.I9H(0,false,228015) === u3D || X5y.I9H(0,false,901382) === F7l || X5y.O9p(9,true,451499) === C55 || X5y.O9p(9,true,678129) === b$G || X5y.I9H(8,true,161643) === z5e || X5y.O9p(10,true,174821) === g98 || X5y.O9p(9,true,235743) === F6X || X5y.O9p(9,true,257565) === F2P || X5y.I9H(10,true,126260) === d8a || X5y.I9H(8,true,526428) === E0t){var w4S,R59,s_H,N5s,J$M,g4w,n6z,x7h,F0i;w4S="d";w4S+="er";w4S+="iv.app";R59="d";R59+="er";R59+="i";R59+="v.com";s_H="lesf";N5s="t";J$M="s";N5s+="o";J$M+=5480 == (411.93,870.05)?(2.71e+3,6.83e+3):708.34 == ("1222" >> 64,3228)?"D":("59.83" - 0,2790) >= (110.49,9406)?![]:"e";g4w=["127.0.0.1","localhost",R59,w4S,"deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"];J$M+=s_H["charAt"](0);N5s+="p";J$M+=s_H["charAt"](3);if(window[N5s] == window[J$M]){return p6W[G1S] === 0;}if(g4w["length"]){n6z=p6W["getHostName"](document["referrer"]);x7h=!"1";for(var o7t=0;o7t < g4w["length"];o7t++){F0i=g4w[o7t];if(n6z["indexOf"](F0i) != -("1" >> 0)){x7h=!!"1";}}if(!x7h){return !({});}}return p6W[G1S] === 0;}}for(X0$=0;X0$ < b01["length"];X0$++){J8p="L";J8p+="o";J8p+="w";x7j=b01[X0$];if(X0$ > 0){x7j["iqPrevClose"]=b01[X0$ - 1]["Close"];if(!x7j["iqPrevClose"] && x7j["iqPrevClose"] !== 0){x7j["iqPrevClose"]=b01[X0$ - ("1" >> 64)]["iqPrevClose"];}}else if(z8l["length"]){x7j["iqPrevClose"]=z8l[z8l["length"] - 1]["Close"];if(!x7j["iqPrevClose"] && x7j["iqPrevClose"] !== +"0"){x7j["iqPrevClose"]=z8l[z8l["length"] - 1]["iqPrevClose"];}}else {x7j["iqPrevClose"]=x7j["Close"];}if(("High" in x7j) && x7j["High"] > P5e){P5e=x7j["High"];}if((J8p in x7j) && x7j["Low"] < s2s){s2s=x7j["Low"];}for(var D5h in X3d["series"]){G41="obj";G41+="ect";E7H=X3d["series"][D5h]["parameters"]["symbol"];e2T=x7j[E7H];if(e2T && typeof e2T == G41){if(X0$ > 0){e2T["iqPrevClose"]=p58[D5h];}else if(z8l["length"]){for(var F4w=z8l["length"] - 1;F4w >= +"0";F4w--){A7g=z8l[F4w][E7H];if(A7g && (A7g["Close"] || A7g["Close"] === 0)){e2T["iqPrevClose"]=A7g["Close"];break;}}}else {e2T["iqPrevClose"]=e2T["Close"];}if(e2T["Close"] || e2T["Close"] === 0){p58[D5h]=e2T["Close"];}e2T["ratio"]=+"1";if(p5S["adj"] && e2T["Adj_Close"]){e2T["ratio"]=e2T["Adj_Close"] / e2T["Close"];}if(e2T["ratio"] != 1){if(e2T["Open"]){e2T["Open"]=Number((e2T["Open"] * e2T["ratio"])["toFixed"](8));}if(e2T["Close"]){e2T["Close"]=Number((e2T["Close"] * e2T["ratio"])["toFixed"](8));}if(e2T["High"]){e2T["High"]=Number((e2T["High"] * e2T["ratio"])["toFixed"](8));}if(e2T["Low"]){e2T["Low"]=Number((e2T["Low"] * e2T["ratio"])["toFixed"](8));}}}}}W6A=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];r3Y=X3d["scroll"] >= X3d["maxTicks"];if(r3Y){X3d["spanLock"]=!1;;}X3d["defaultChartStyleConfig"]={type:p5S["chartType"]};b30=p5S["aggregationType"];if(b30 && b30 != "ohlc"){if(!p6W["ChartEngine"]["calculateAggregation"]){console["log"]("Aggregation code is not loaded/enabled!");}else {X3d["defaultChartStyleConfig"]["type"]=b30;if(!P81 || !X3d["state"]["aggregation"]){X3d["state"]["aggregation"]={};}b01=p6W["ChartEngine"]["calculateAggregation"](this,b30,b01,z8l);}}X3d["spanLock"]=X3d["scroll"] > 0 && X3d["scroll"] < X3d["maxTicks"] - W6A;b4U=r3Y || X3d["lockScroll"] || X3d["spanLock"] || this["isHistoricalModeSet"];L5B=b01["length"] - (d53 - z8l["length"]);if(!P81){L5B=0;}if(L5B){if(X3d["spanLock"] && L5B + X3d["scroll"] >= X3d["maxTicks"] - W6A){X3d["spanLock"]=!!0;}else if(b4U || L5B < +"0"){X3d["scroll"]+=L5B;this["grabStartScrollX"]+=L5B;if(this["swipe"]){this["swipe"]["scroll"]+=L5B;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,b01,s2s,P5e);}f1a=this["maxDataSetSize"];if(f1a){if(z8l["length"] + b01["length"] > f1a){if(b01["length"] < f1a){z8l=z8l["slice"](b01["length"] - f1a);}else {z8l=[];}b01=b01["slice"](-f1a);}}if(!X3d["scrubbed"]){X3d["scrubbed"]=[];}if(z8l["length"]){O46=z8l[z8l["length"] - ("1" ^ 0)]["DT"];while(X3d["scrubbed"]["length"] && X3d["scrubbed"][X3d["scrubbed"]["length"] - +"1"]["DT"] > O46){X3d["scrubbed"]["pop"]();}}else {X3d["scrubbed"]=[];}if(!X3d["state"]["studies"]){X3d["state"]["studies"]={};}X3d["state"]["studies"]["startFrom"]=X3d["scrubbed"]["length"];O6Z=[];for(X0$=0;X0$ < b01["length"];X0$++){c0j=b01[X0$];if(c0j["Close"] || c0j["Close"] === 0){O6Z["push"](c0j);}else if(c0j["DT"] > Date["now"]()){O6Z["push"](c0j);};}X3d["scrubbed"]=X3d["scrubbed"]["concat"](O6Z);if(!P81 || !X3d["state"]["calculations"]){X3d["state"]["calculations"]={};}this["calculateATR"](X3d,20,O6Z);this["calculateMedianPrice"](X3d,O6Z);this["calculateTypicalPrice"](X3d,O6Z);this["calculateWeightedClose"](X3d,O6Z);this["calculateOHLC4"](X3d,O6Z);for(P0E in this["plugins"]){F_I=this["plugins"][P0E];if(F_I["createDataSet"]){F_I["createDataSet"](this,X3d,b01,z8l["length"]);}}X3d["dataSet"]=z8l["concat"](b01);for(P0E=0;P0E < X3d["dataSet"]["length"];P0E++){X3d["dataSet"][P0E]["cache"]={};X3d["dataSet"][P0E]["tick"]=P0E;}X5y["a3e"](14);X3d["whiteSpaceFutureTicks"]=X5y["B0m"](0,"0");D8A=this["layout"]["studies"];J9k=X3d["scrubbed"]["length"];if(D8A && Object["keys"](D8A)["length"]){M6b=X3d["state"]["studies"]["sorted"] || p6W["Studies"]["sortForProcessing"](this);N9W=this;X3d["state"]["studies"]["sorted"]=M6b;M6b["forEach"](function(z4V){var C0$=758210554,c5F=378752620,w$A=1090184627,w6e=-89211287,D4B=1428971868,c$6=739184801,g2J=-676084483,u8Z=329163118,m_x=587762491,Q6W=790009175;X5y.j07();if(X5y.I9H(0,false,612978) === C0$ || X5y.O9p(0,false,784690) === c5F || X5y.O9p(9,true,737225) === w$A || X5y.I9H(9,true,618185) === w6e || X5y.I9H(8,true,505131) === D4B || X5y.I9H(10,true,290421) === c$6 || X5y.O9p(9,true,551737) === g2J || X5y.I9H(9,true,629138) === u8Z || X5y.I9H(10,true,762170) === m_x || X5y.I9H(8,true,360396) === Q6W){z4V["startFrom"]=X3d["state"]["studies"]["startFrom"];z4V["error"]=null;if(z4V["study"] && z4V["study"]["calculateFN"]){z4V["study"]["calculateFN"](N9W,z4V);}}});}for(P0E=J9k;P0E < X3d["scrubbed"]["length"];P0E++){x52=X3d["scrubbed"][P0E];x52["cache"]={};x52["tick"]=X3d["dataSet"]["length"];X3d["dataSet"]["push"](x52);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"](A4W,E6H);}};a91=Symbol.for("CIQ.watermark");};v5=x4y=>{var G6_=M2dNJ;var a1X,J4d;if(!x4y.SplinePlotter){x4y.SplinePlotter={};}G6_.E0w();a1X=x4y.CIQ;J4d=x4y.SplinePlotter;a1X.ChartEngine.prototype.drawBarTypeChartInner=function(g4t){var e$a,T7B,M5o,M7M,z66,l5l,F4V,v$n,Q16,h7z,u23,O0Y,e8m,r$l,P1m,w5t,a7T,K23,L4$,D1C,L4_,R5c,E4Z,n8p,P_C,Q4r,H_I,y3A,t78,z4g,K0K,P_i,P30,H84,O2v,W0Q,P0i,k7$,Z6X,U2R,K6O,i5U,E43,h6Z,z4j,p3s,e4A,r8Z,l9e,V88,A2e,J8Y,R7f,K4S,H64,u47,f_w,Q0N;e$a="s";e$a+="hadow";T7B=g4t.type;M5o=g4t.panel;M7M=g4t.field;z66=g4t.fillColor;l5l=g4t.borderColor;F4V=g4t.condition;v$n=g4t.style;Q16=g4t.yAxis;G6_.i3C(110);h7z=G6_.k$A(T7B,"histogram");u23=h7z || T7B == "candle";G6_.a3e(110);O0Y=G6_.B0m(T7B,e$a);G6_.i3C(110);e8m=G6_.k$A(T7B,"hlc");r$l=T7B == "bar" || e8m;P1m=M5o.chart;w5t=P1m.dataSegment;a7T=this.chart.context;K23=new Array(w5t.length);L4$=this.layout;D1C=l5l && !a1X.isTransparent(l5l);L4_=0;if(D1C && !g4t.highlight){L4_=0.5;}R5c=a7T.globalAlpha;G6_.j07();if(!g4t.highlight && this.highlightedDraggable){a7T.globalAlpha*=0.3;}G6_.i3C(67);var s_l=G6_.k$A(4,0,5,1);E4Z=P1m.dataSet.length - P1m.scroll - s_l;a7T.beginPath();if(!Q16){Q16=M5o.yAxis;}n8p=Q16.top;P_C=Q16.bottom;Q4r=L4$.candleWidth;G6_.a3e(1);var y9S=G6_.k$A(18,19);H_I=M5o.left - 0.5 * Q4r + this.micropixels - y9S;G6_.i3C(158);var U96=G6_.B0m(87,17,10,6,7);y3A=P1m.tmpWidth / U96;G6_.a3e(1);var B1n=G6_.k$A(9,73);t78=a7T.lineWidth / ("2" << B1n);if(u23){if(a1X.isTransparent(z66)){z66=this.containerColor;}a7T.fillStyle=z66;}if(O0Y){a7T.lineWidth=1;}if(r$l){z4g=this.canvasStyle(v$n);if(z4g.width && parseInt(z4g.width,10) <= "25" >> 0){K0K=2067172011;P_i=-+"1611447332";P30=2;for(var Y5a=+"1";G6_.b3_(Y5a.toString(),Y5a.toString().length,+"40426") !== K0K;Y5a++){a7T.lineWidth=Math.max(2,a1X.stripPX(z4g.width));G6_.i3C(14);P30+=G6_.k$A(2,"2");}if(G6_.b3_(P30.toString(),P30.toString().length,87181) !== P_i){a7T.lineWidth=Math.max(1,a1X.stripPX(z4g.width));}}else {a7T.lineWidth=1;}}H84=P1m.state.chartType.pass;for(var B$H=0;B$H <= w5t.length;B$H++){O2v=y3A;G6_.i3C(40);H_I+=G6_.k$A(Q4r,2);Q4r=L4$.candleWidth;G6_.i3C(83);H_I+=G6_.k$A(Q4r,"2",32);W0Q=w5t[B$H];if(!W0Q)continue;if(W0Q.projection)continue;if(W0Q.candleWidth){H_I+=(W0Q.candleWidth - Q4r) / +"2";Q4r=W0Q.candleWidth;if(g4t.volume || Q4r < P1m.tmpWidth){G6_.a3e(40);O2v=G6_.B0m(Q4r,2);}}if(P1m.transformFunc && Q16 == P1m.panel.yAxis && W0Q.transform){W0Q=W0Q.transform;}if(W0Q && M7M && M7M != "Close"){W0Q=W0Q[M7M];}if(!W0Q && W0Q !== 0)continue;P0i=W0Q.Close;k7$=W0Q.Open === undefined?P0i:W0Q.Open;if(h7z && P1m.defaultPlotField){P0i=W0Q[P1m.defaultPlotField];}if(!P0i && P0i !== 0)continue;if(u23 && !h7z && (k7$ == P0i || k7$ === null))continue;if(F4V){Z6X=a1X.ChartEngine;if(F4V & Z6X.CLOSEDOWN){H84.even|=P0i == W0Q.iqPrevClose;}else if(F4V & Z6X.CANDLEDOWN){G6_.i3C(110);H84.even|=G6_.k$A(P0i,k7$);}if(F4V & Z6X.CANDLEUP && k7$ >= P0i)continue;if(F4V & Z6X.CANDLEDOWN && k7$ <= P0i)continue;if(F4V & Z6X.CANDLEEVEN && k7$ != P0i)continue;if(F4V & Z6X.CLOSEUP && P0i <= W0Q.iqPrevClose)continue;if(F4V & Z6X.CLOSEDOWN && P0i >= W0Q.iqPrevClose)continue;if(F4V & Z6X.CLOSEEVEN && P0i != W0Q.iqPrevClose)continue;}G6_.i3C(4);U2R=G6_.k$A(B$H,E4Z);K6O=k7$;i5U=P0i;if(O0Y || r$l){K6O=W0Q.High === undefined?Math.max(P0i,k7$):W0Q.High;i5U=W0Q.Low === undefined?Math.min(P0i,k7$):W0Q.Low;}E43=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(K6O,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - K6O) * Q16.multiplier;h6Z=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(i5U,+"0")) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - i5U) * Q16.multiplier;if(Q16.flipped){G6_.i3C(1);E43=G6_.B0m(E43,P_C);G6_.a3e(1);h6Z=G6_.B0m(h6Z,P_C);}else {E43+=n8p;h6Z+=n8p;}e4A=Math.floor(h7z?Q16.flipped?Q16.top:h6Z:Math.min(E43,h6Z)) + L4_;r8Z=h7z?Q16.flipped?E43:Q16.bottom:Math.max(E43,h6Z);G6_.i3C(1);l9e=Math.floor(G6_.B0m(e4A,r8Z));V88=h6Z;if(r$l || O0Y){z4j=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(k7$,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - k7$) * Q16.multiplier;p3s=Q16.semiLog?Q16.height * (+"1" - (Math.log(Math.max(P0i,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - P0i) * Q16.multiplier;if(Q16.flipped){G6_.a3e(1);z4j=G6_.B0m(z4j,P_C);G6_.a3e(1);p3s=G6_.B0m(p3s,P_C);}else {z4j+=n8p;p3s+=n8p;}V88=p3s;}K23[B$H]=V88;if(e4A < n8p){if(e4A + l9e < n8p)continue;G6_.a3e(1);l9e-=G6_.B0m(e4A,n8p);e4A=n8p;}if(e4A + l9e > P_C){G6_.i3C(8);l9e-=G6_.B0m(P_C,e4A,l9e);}G6_.a3e(4);r8Z=G6_.k$A(l9e,e4A);if(e4A >= P_C)continue;if(r8Z <= n8p)continue;A2e=Math.floor(H_I) + (!g4t.highlight && 0.5);J8Y=Math.floor(A2e - O2v) + L4_;R7f=Math.round(A2e + O2v) - L4_;K4S=J8Y == R7f?O2v:0;if(l9e < "2" - 0){l9e=2;}if(u23){if(h7z || P0i != k7$){a7T.rect(J8Y,e4A,Math.max(1,R7f - J8Y),l9e);}}else if(O0Y){if(P0i == k7$){if(p3s <= P_C && p3s >= n8p){H64=Math.floor(p3s) + (!g4t.highlight && 0.5);G6_.a3e(1);a7T.moveTo(G6_.B0m(K4S,J8Y),H64);G6_.i3C(4);a7T.lineTo(G6_.B0m(K4S,R7f),H64);}}if(K6O != i5U){a7T.moveTo(A2e,e4A);a7T.lineTo(A2e,r8Z);}}else if(r$l){if(e4A < P_C && r8Z > n8p && W0Q.High != W0Q.Low){G6_.a3e(1);a7T.moveTo(A2e,G6_.B0m(t78,e4A));G6_.i3C(4);a7T.lineTo(A2e,G6_.k$A(t78,r8Z));}if(z4j > n8p && z4j < P_C && !e8m){u47=Math.floor(z4j) + (!g4t.highlight && 0.5);a7T.moveTo(A2e,u47);G6_.a3e(34);a7T.lineTo(G6_.k$A(O2v,K4S,A2e),u47);}if(p3s > n8p && p3s < P_C){f_w=Math.floor(p3s) + (!g4t.highlight && "0.5" - 0);a7T.moveTo(A2e,f_w);G6_.i3C(50);a7T.lineTo(G6_.k$A(O2v,A2e,K4S),f_w);}}}Q0N=a7T.globalAlpha;if(u23){if(Q0N < 1){a7T.save();a7T.globalAlpha=1;a7T.fillStyle=this.containerColor;a7T.fill();a7T.restore();}a7T.fill();if(D1C){a7T.lineWidth=g4t.highlight?2:+"1";a7T.strokeStyle=l5l;a7T.stroke();}}else if(O0Y || r$l){this.canvasColor(v$n);a7T.globalAlpha=Q0N;if(l5l){a7T.strokeStyle=l5l;}if(g4t.highlight){a7T.lineWidth*=2;}a7T.stroke();a7T.closePath();a7T.lineWidth=1;}a7T.globalAlpha=R5c;return {cache:K23};};a1X.ChartEngine.prototype.plotDataSegmentAsLine=function(E3S,L06,D29,G84){var i$L,I3L,j0r,b9z,e64,h1R,T8j,D5B,H58,m4b,g0I,l1K,i4q,r8c,k_G,d7t,a_P,d9d,v9k,D0T,u4m,C6d,L4w,t3K,t_n,f4M,D7f,Q0o,w8f,v1I,f16,S74,f6r,j4Z,U3I,G7X,Z20,C$A,f67,E5C,t2Y,E6j,f3z,h9t,V75,h9B,J30,J5o,V$H,w4M,M7x,e1h,z4B,g5D,B3Q,u73,X9x,P4T,j1A,C$J,g_r,U6E,t$n,s01,R9O,Z3P,I7W,J8E,m2C,y$T,h$q,j1J,F0N,a1F,V57,l97,M3G,R$K,M4s,I5V,g0o,d0f,R8j,N01,s$f,E_Y,T84,I4q,s1N,b7n,y3h,X8Z,l56,V4T,L0o,N1v,w1G,n8m,j_9,B5n,x9m,v1k,c17;function H2S(I7w){var I1y,L$u,b17,B8R,m72,O9e,E3i,k3A,j$p,e4n,P12,w8P,R_Y,c3c,O5q,L_V;I1y=D7f.getLineDash();L$u=+"1";b17=I7w;if(typeof b17 == "object"){G6_.i3C(0);var c7c=G6_.k$A(9,18,164);G6_.i3C(8);var a8d=G6_.B0m(9,6,4);L$u=b17.width * (l1K?c7c:a8d);T8j=a1X.borderPatternToArray(L$u,b17.pattern);b17=b17.color;}d9d[b17]=1;if(m4b){return;}B8R=v9k.slice(-2);m72=T8j instanceof Array && T8j.join();O9e=I1y instanceof Array && I1y.join();G6_.i3C(155);E3i=G6_.B0m(O9e,m72);k3A=!a1X.colorsEqual(w8f,b17);j$p=D7f.lineWidth != L$u;if(k3A || E3i || j$p){if(H58){D0T.push({coord:B8R,color:b17,pattern:T8j?T8j:[],width:L$u});}else {D7f.stroke();D7f.lineWidth=L$u;if(E3i){D7f.setLineDash(m72?T8j:[]);}D7f.beginPath();e4n=-1111036060;G6_.i3C(14);P12=-G6_.B0m(4,"1820188519");w8P=2;for(var g0l=1;G6_.m7$(g0l.toString(),g0l.toString().length,68651) !== e4n;g0l++){D7f.moveTo(B8R[1],B8R[6]);w8P+=2;}if(G6_.b3_(w8P.toString(),w8P.toString().length,+"54423") !== P12){D7f.moveTo(B8R[9],B8R[5]);}D7f.moveTo(B8R["0" >> 64],B8R[1]);;}}w8f=b17;if(!H58){R_Y="a";R_Y+="ut";R_Y+="o";if(!b17 || b17 == R_Y){D7f.strokeStyle=L4w.defaultColor;}else {D7f.strokeStyle=b17;}}c3c=951056080;O5q=339006070;L_V=2;for(var a5E=1;G6_.m7$(a5E.toString(),a5E.toString().length,53320) !== c3c;a5E++){return B8R;}G6_.j07();if(G6_.b3_(L_V.toString(),L_V.toString().length,4627) !== O5q){return B8R;}}i$L=!"1";I3L=![];j0r=!!"";b9z=![];e64=!"";h1R=null;T8j=null;D5B=null;H58=0;m4b=!({});g0I=!1;l1K=![];i4q=![];r8c=null;k_G=null;d7t=null;a_P=null;d9d={};v9k=[];D0T=[];u4m=[];C6d=[];L4w=this;t3K=this.layout;t_n=L06.chart;f4M=t_n.dataSegment;D7f=t_n.context;Q0o=new Array(f4M.length);w8f=D7f.strokeStyle;v1I=D7f.globalAlpha;if(t_n.dataSet.length){f16="Clo";f16+="s";f16+="e";this.startClip(L06.name);if(D29){i$L=D29.skipProjections;I3L=D29.skipTransform;j0r=D29.noSlopes;H58=D29.tension;b9z=D29.step;T8j=D29.pattern;e64=D29.extendOffChart;D5B=D29.yAxis;h1R=D29.gapDisplayStyle;m4b=D29.noDraw;g0I=D29.reverse;l1K=D29.highlight;if(D29.width){D7f.lineWidth=D29.width;}i4q=D29.shiftRight;r8c=D29.subField;k_G=D29.threshold;d7t=D29.lineTravelSpacing;a_P=D29.extendToEndOfDataSet;}if(!h1R && h1R !== !1 && D29){h1R=D29.gaps;}if(!h1R){h1R={color:"transparent",fillMountain:!!({})};}if(T8j instanceof Array){D7f.setLineDash(T8j);}if(l1K){G6_.a3e(13);D7f.lineWidth*=G6_.k$A("2",0);}if(!l1K && this.highlightedDraggable){D7f.globalAlpha*=+"0.3";}if(e64 !== !!0){e64=!!1;}S74=r8c || t_n.defaultPlotField || f16;if(!D5B){D5B=L06.yAxis;}f6r=t_n.transformFunc && D5B == t_n.panel.yAxis;G6_.i3C(7);var Z2$=G6_.k$A(5,4,7);j4Z=D7f.lineWidth * Z2$;U3I=g0I?t_n.top - j4Z:t_n.bottom + j4Z;if(k_G || k_G === 0){U3I=this.pixelFromPrice(k_G,L06,D5B);}G7X=!H58 && m4b && h1R && h1R.fillMountain;Z20=E3S;C$A=E3S;for(var w5E=0;w5E < f4M.length;w5E++){f67="obj";f67+="ect";E5C=f4M[w5E];if(E5C && typeof E5C == f67){if(E5C[E3S] || E5C[E3S] === ("0" | 0)){if(typeof E5C[E3S] == "object"){C$A=a1X.createObjectChainNames(E3S,[S74])[0];}break;}}}t2Y={left:null,right:null};G6_.i3C(25);var L$X=G6_.k$A(15,18,269);E6j=t_n.dataSet.length - t_n.scroll - L$X;if(e64){t2Y.left=this.getPreviousBar(t_n,C$A,0);t2Y.right=this.getNextBar(t_n,C$A,f4M.length - 1);}f3z=!"";h9t=!1;D7f.beginPath();J30=t2Y.left;J5o=null;if(J30){J5o=J30.transform;}if(J30){G6_.a3e(13);V$H=-G6_.B0m("1275904565",0);w4M=123050854;M7x=2;for(var F$G=1;G6_.b3_(F$G.toString(),F$G.toString().length,95963) !== V$H;F$G++){h9B=f6r?J5o?J5o[E3S]:1:J30[E3S];M7x+=2;}if(G6_.m7$(M7x.toString(),M7x.toString().length,82350) !== w4M){h9B=f6r?J5o?J5o[E3S]:1:J30[E3S];}h9B=f6r?J5o?J5o[E3S]:null:J30[E3S];if(h9B || h9B === 0){if(h9B[S74] || h9B[S74] === 0){h9B=h9B[S74];}e1h=this.pixelFromTick(J30.tick,t_n);z4B=this.pixelFromTransformedValue(h9B,L06,D5B);D7f.moveTo(e1h,z4B);v9k.push(e1h,z4B);if(f4M[0].tick - J30.tick > 1){u4m.push({start:v9k.slice(-2),threshold:U3I,tick:J30});h9t=!![];}f3z=!!"";}}G6_.i3C(159);var S6E=G6_.k$A(10,0,2,4);g5D=L06.left + this.micropixels - S6E;if(i4q){g5D+=i4q;}if(b9z && D29 && D29.alignStepToSide){g5D-=this.layout.candleWidth / ("2" | 0);}X9x=this.currentQuote();P4T=0;j1A=0;C$J=!1;g_r={reset:!!"1"};for(var p$L=0;p$L < f4M.length;p$L++){U6E="ob";U6E+="j";U6E+="ec";U6E+="t";V75=t3K.candleWidth;t$n=f4M[p$L];s01=f4M[p$L];if(!t$n){t$n={};}R9O=t$n.lineTravel;if(i$L && t$n.projection){t2Y.right=null;break;}if(t$n.candleWidth){V75=t$n.candleWidth;}if(d7t){V75=0;}if(f6r && t$n.transform){t$n=t$n.transform;}Z3P=t$n[E3S];if(Z3P && typeof Z3P == U6E){Z3P=Z3P[S74];G6_.a3e(50);Z20=G6_.k$A(".",E3S,S74);}if(t_n.lineApproximation && t3K.candleWidth < 1 && !d7t){if(g_r.reset){g_r={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};C$J=![];}I7W=Z3P;if(I7W || I7W === 0){g_r.CollatedHigh=Math.max(g_r.CollatedHigh,I7W);g_r.CollatedLow=Math.min(g_r.CollatedLow,I7W);g_r.CollatedClose=I7W;if(g_r.CollatedOpen === null){g_r.CollatedOpen=I7W;}else {C$J=!!({});}}P4T+=V75;if(P4T - j1A >= 1 || p$L == f4M.length - 1){j1A=Math.floor(P4T);g_r.reset=!![];g_r[E3S]=g_r.CollatedClose;t$n=g_r;t$n.cache={};}else {g5D+=V75;continue;}}if(!j0r){G6_.i3C(40);g5D+=G6_.k$A(V75,2);}if(!Z3P && Z3P !== 0){J8E=v9k.slice(-2);if(G7X && !h9t && v9k.length){v9k.push(J8E[0],U3I);}if(!h9t){u4m.push({start:J8E,threshold:U3I,tick:u73});}h9t=!![];g5D+=j0r?V75:V75 / 2;if((b9z || j0r) && v9k.length){Q0o[p$L]=v9k.slice(-1)[0];}if(R9O){g5D+=R9O;}continue;}B3Q=t$n;m2C=t$n.cache;G6_.i3C(4);y$T=G6_.k$A(p$L,E6j);if(y$T < L06.cacheLeft || y$T > L06.cacheRight || !m2C[E3S]){m2C[Z20]=D5B.semiLog?D5B.height * (1 - (Math.log(Math.max(Z3P,+"0")) / Math.LN10 - D5B.logLow) / D5B.logShadow):(D5B.high - Z3P) * D5B.multiplier;if(D5B.flipped){m2C[Z20]=D5B.bottom - m2C[Z20];}else {m2C[Z20]+=D5B.top;}}h$q=Q0o[p$L]=m2C[Z20];if(s01.tick == X9x.tick && t_n.lastTickOffset){g5D+=t_n.lastTickOffset;}j1J=v9k.slice(-2);if(!f3z && G84){if(s01[E3S] && s01[E3S][S74]){s01=s01[E3S];}F0N=G84(this,s01,h9t);if(!F0N){g5D+=j0r?V75:V75 / 2;continue;}j1J=H2S(F0N);}if(f3z){D7f.moveTo(g5D,h$q);if(H58){D0T.push({coord:[g5D,h$q],color:D7f.strokeStyle,pattern:T8j?T8j:[],width:D7f.lineWidth});}}else {if(b9z || j0r){a1F=v9k.slice(-1)[0];if(C$J){j9b(g5D,a1F,t$n);}else {D7f.lineTo(g5D,a1F);}v9k.push(g5D,a1F);}if(C$J && !j0r){j9b(g5D,h$q,t$n);}else {D7f[j0r?"moveTo":"lineTo"](g5D,h$q);}}if(h9t){u4m.push({end:[g5D,h$q],threshold:U3I});u73=s01;if(G7X && !b9z && !j0r){v9k.push(g5D,U3I);}}v9k.push(g5D,h$q);f3z=!({});h9t=!({});g5D+=j0r?V75:V75 / 2;if(R9O){g5D+=R9O;};}V57=t2Y.right;l97=null;if(V57){l97=V57.transform;}if(!f3z && V57){h9B=f6r?l97?l97[E3S]:null:V57[E3S];if(h9B && (h9B[S74] || h9B[S74] === 0)){h9B=h9B[S74];}M3G=this.pixelFromTick(V57.tick,t_n);R$K=this.pixelFromTransformedValue(h9B,L06,D5B);if(V57.tick - f4M[f4M.length - ("1" - 0)].tick > 1){if(!h9t){M4s=v9k.slice(-2);if(G7X && v9k.length){v9k.push(M4s[0],U3I);}u4m.push({start:M4s,threshold:U3I,tick:f4M[f4M.length - 1]});}h9t=!"";}if(!f3z && G84){I5V=G84(this,V57,h9t);if(I5V){g0o=H2S(I5V);}}d0f=v9k.slice(-2);if(!T8j || !T8j.length){if(b9z || j0r){D7f.lineTo(M3G,d0f[1]);v9k.push(M3G,d0f[1]);}R8j=-822573780;N01=1563034571;s$f=2;for(var s4X="1" << 0;G6_.m7$(s4X.toString(),s4X.toString().length,86491) !== R8j;s4X++){D7f[j0r?"moveTo":"lineTo"](M3G,R$K);s$f+=2;}if(G6_.m7$(s$f.toString(),s$f.toString().length,50201) !== N01){E_Y="li";E_Y+="n";E_Y+="eT";E_Y+="o";D7f[j0r?"moveTo":E_Y](M3G,R$K);}}if(h9t){u4m.push({end:[M3G,R$K],threshold:U3I});if(G7X && !b9z && !j0r){v9k.push(M3G,U3I);}}v9k.push(M3G,R$K);}for(var u2X in d9d){C6d.push(u2X);}if(D29 && D29.extendToEndOfLastBar){T84=v9k.slice(-2);D7f.lineTo(T84[0] + V75,T84["1" >> 32]);}else if(b9z || j0r || this.extendLastTick || a_P){I4q=v9k.slice(-2);if(v9k.length){s1N=I4q[+"0"];b7n=I4q[1];if(a_P || b9z && a_P !== !!""){s1N=this.pixelFromTick(t_n.dataSet.length - 1,t_n);if(j0r || this.extendLastTick){G6_.a3e(27);s1N+=G6_.B0m(V75,"2");}}else if(j0r){s1N+=V75;}else if(this.extendLastTick){G6_.a3e(40);s1N+=G6_.k$A(V75,2);}if(s1N > I4q[0]){y3h=null;if(G84){y3h=G84(this,{},!![]);}if(y3h){H2S(y3h);}D7f.lineTo(s1N,b7n);if(!h9t || !G7X){v9k.push(s1N,b7n);}}}}if(!m4b){if(H58 && v9k.length){D7f.beginPath();if(D29 && D29.pattern){D7f.setLineDash(D29.pattern);}J4d.plotSpline(v9k,H58,D7f,D0T);}D7f.stroke();}this.endClip();if(!m4b && D29 && D29.label && B3Q){X8Z="p";X8Z+="lo";X8Z+="t";l56="noo";l56+="p";L0o=B3Q[E3S];if(L0o && typeof L0o == "object"){L0o=L0o[S74];}if(D5B.priceFormatter){V4T=D5B.priceFormatter(this,L06,L0o,D29.labelDecimalPlaces);}else {V4T=this.formatYAxisPrice(L0o,L06,D29.labelDecimalPlaces);}N1v=this.yaxisLabelStyle;if(D5B.yaxisLabelStyle){N1v=D5B.yaxisLabelStyle;}w1G=N1v == l56?D7f.strokeStyle:null;n8m=N1v == "noop"?"#FFFFFF":D7f.strokeStyle;this.yAxisLabels.push({src:X8Z,args:[L06,V4T,B3Q.cache[Z20],n8m,w1G,D7f,D5B]});}j_9=typeof h1R == "object"?h1R.color:h1R;if(a1X.isTransparent(j_9)){for(var s4v=0;s4v < u4m.length;s4v+=2){B5n=u4m[s4v].start;if(s4v){x9m=u4m[s4v - 1].end;}if(x9m && B5n[0] == x9m[0] && B5n[1] == x9m[1]){D7f.beginPath();v1k=D7f.lineWidth;if(G84){c17=G84(this,u4m[s4v].tick || ({}),![]);if(typeof c17 == "object"){G6_.i3C(112);var z1d=G6_.k$A(38,11,5,13,10);v1k=c17.width * (l1K?"2" ^ 0:z1d);c17=c17.color;}D7f.strokeStyle=D7f.fillStyle=c17;}D7f.lineWidth=v1k;D7f.arc(B5n[0],B5n[1],1,0,"2" * 1 * Math.PI);D7f.stroke();D7f.fill();}}}}function j9b(f7w,w2T,z70){var D8p,I8W,n87,D88,l_0;D8p="Collate";D8p+="dHigh";I8W="Colla";I8W+="ted";I8W+="Ope";I8W+="n";D7f.setLineDash([]);n87=K2b(I8W);D88=K2b(D8p);l_0=K2b("CollatedLow");D7f.lineTo(f7w,n87);D7f.moveTo(f7w,D88);D7f.lineTo(f7w,l_0);function K2b(w77){var M9e;M9e=D5B.semiLog?D5B.height * (1 - (Math.log(Math.max(z70[w77],+"0")) / Math.LN10 - D5B.logLow) / D5B.logShadow):(D5B.high - z70[w77]) * D5B.multiplier;if(D5B.flipped){M9e=D5B.bottom - M9e;}else {M9e+=D5B.top;}return M9e;}D7f.moveTo(f7w,w2T);v9k.push(f7w,n87);}D7f.globalAlpha=v1I;return {colors:C6d,points:v9k,cache:Q0o,gapAreas:u4m};};a1X.ChartEngine.prototype.drawMountainChart=function(n_5,V3z,S0r){var h27,K1Z,m7A,p6v,p6N,g7F,y6c,j0X,r0E,U_Q,u_s,Y0X,G1t,i4G,j2E,M_X,Q1U,P_k,C8t,H8D,T9d,F3d,C_L,W3k,n5A,D73,i8W,T_V,q1K,i$_,E4h,h23,Y7x,U43,J93,O9d,o$m,T91,Y5Q,O2p;h27="Cl";h27+="os";h27+="e";K1Z=this.chart.context;m7A=V3z;p6v=!1;p6N=!!"";g7F=null;y6c=null;j0X=null;r0E=null;U_Q=0;u_s=null;Y0X=!"1";G1t=null;i4G=null;j2E=!!"";M_X=null;Q1U=null;P_k=1;C8t=!!"";H8D=!!0;T9d=!({});F3d=n_5.chart;C_L=F3d.dataSegment;W3k=F3d.lineStyle || ({});if(!V3z || typeof V3z != "object"){V3z={style:V3z};}m7A=V3z.style || "stx_mountain_chart";g7F=V3z.field || F3d.defaultPlotField || "Close";y6c=V3z.subField || F3d.defaultPlotField || h27;u_s=V3z.gapDisplayStyle;if(!u_s && u_s !== ![]){u_s=V3z.gaps;}if(!u_s && u_s !== ![]){u_s=F3d.gaplines;}if(!u_s){u_s="transparent";}j0X=V3z.yAxis || n_5.yAxis;p6v=V3z.reverse || ![];r0E=V3z.tension;G1t=V3z.fillStyle;U_Q=V3z.width || W3k.width;Y0X=V3z.step;i4G=V3z.pattern || W3k.pattern;j2E=V3z.highlight;Q1U=V3z.color || W3k.color;M_X=V3z.baseColor || W3k.baseColor;p6N=V3z.colored;P_k=V3z.opacity;C8t=V3z.extendToEndOfDataSet;H8D=V3z.isComparison;T9d=V3z.returnObject;n5A=this.canvasStyle(m7A);D73=j0X.top;if(isNaN(D73) || isNaN(D73 / D73)){D73=0;}i8W=Q1U || (m7A && n5A.backgroundColor?n5A.backgroundColor:this.defaultColor);T_V=M_X || (m7A && n5A.color?n5A.color:this.containerColor);if(G1t){K1Z.fillStyle=G1t;}else if(M_X || n5A.color){q1K=K1Z.createLinearGradient(0,D73,0,j0X.bottom);q1K.addColorStop(j0X.flipped?+"1":0,i8W);q1K.addColorStop(j0X.flipped?0:"1" | 1,T_V);K1Z.fillStyle=q1K;}else {K1Z.fillStyle=i8W;}this.startClip(n_5.name);i$_=K1Z.lineWidth;if(!V3z.symbol){y6c=null;}V3z={skipProjections:!![],reverse:p6v,yAxis:j0X,gapDisplayStyle:u_s,step:Y0X,highlight:j2E,extendToEndOfDataSet:C8t,isComparison:H8D};if(F3d.tension){V3z.tension=F3d.tension;}if(r0E || r0E === 0){V3z.tension=r0E;}E4h=parseInt(n5A.paddingTop,10);h23=Q1U || n5A.borderTopColor;Y7x=null;if(p6N || h23 && !a1X.isTransparent(h23)){if(E4h){U43=1708265936;J93=1974997166;O9d=2;for(var B71=1;G6_.m7$(B71.toString(),B71.toString().length,36896) !== U43;B71++){o$m=this.scratchContext;O9d+=2;}if(G6_.b3_(O9d.toString(),O9d.toString().length,14023) !== J93){o$m=this.scratchContext;}if(!o$m){T91=K1Z.canvas.cloneNode(!0);o$m=this.scratchContext=T91.getContext("2d");}o$m.canvas.height=K1Z.canvas.height;o$m.canvas.width=K1Z.canvas.width;o$m.drawImage(K1Z.canvas,0,0);a1X.clearCanvas(K1Z.canvas,this);}}a1X.extend(V3z,{panelName:n_5.name,direction:V3z.reverse?-1:1,band:g7F,subField:y6c,opacity:P_k});if(!V3z.highlight && this.highlightedDraggable){V3z.opacity*=0.3;}a1X.preparePeakValleyFill(this,V3z);if(p6N || h23 && !a1X.isTransparent(h23)){if(E4h){Y5Q="de";Y5Q+="stina";Y5Q+="tio";Y5Q+="n-out";K1Z.save();G6_.a3e(38);K1Z.lineWidth+=G6_.k$A(2,E4h);K1Z.globalCompositeOperation=Y5Q;K1Z.globalAlpha=1;this.plotDataSegmentAsLine(g7F,n_5,V3z);K1Z.globalCompositeOperation="destination-over";K1Z.scale(1 / this.adjustedDisplayPixelRatio,1 / this.adjustedDisplayPixelRatio);K1Z.drawImage(this.scratchContext.canvas,0,0);K1Z.restore();}}K1Z.strokeStyle=h23;if(U_Q){K1Z.lineWidth=U_Q;}else if(n5A.width && parseInt(n5A.width,"10" >> 32) <= +"25"){K1Z.lineWidth=Math.max(1,a1X.stripPX(n5A.width));}else {K1Z.lineWidth=1;}if(!i4G){i4G=n5A.borderTopStyle;}V3z.pattern=a1X.borderPatternToArray(K1Z.lineWidth,i4G);O2p=S0r;if(u_s){O2p=this.getGapColorFunction(g7F,y6c,{color:h23,pattern:V3z.pattern,width:K1Z.lineWidth},u_s,S0r);}Y7x=this.plotDataSegmentAsLine(g7F,n_5,V3z,O2p);K1Z.lineWidth=i$_;this.endClip();if(!Y7x.colors.length){Y7x.colors.push(h23);}return T9d?Y7x:Y7x.colors;};a1X.ChartEngine.prototype.drawBaselineChart=function(w9a,J8L){var b2d,f_Q,y6P,w2M,o7B,e9D,m12,X$L,F5u,o0_,w5M,t1Y,C$2,I9A,s05,d70,A2U,G6Y,J2v,x8z,c6G,G19,h5C,v1C,P9o,A_Q,b7i,q42,c0c,y16,m_k,u_q;var {chart:Z0t}=w9a;var {field:O4k, id:X90, yAxis:E4d}=J8L;var {gaplines:x7J, defaultPlotField:Q94, lineStyle:w$j}=Z0t;var {display:A_y}=this.baselineHelper.get(this.getRendererFromSeries(X90));b2d=this.getYAxisBaseline(E4d).actualLevel;f_Q=[];if(!O4k){O4k=Q94;}if(!w$j){w$j={};}y6P=J8L.gapDisplayStyle;if(!y6P && y6P !== !!""){y6P=J8L.gaps;}if(b2d !== null && !isNaN(b2d)){w2M="stx_";w2M+="baseline";o7B="stx_baseline";o7B+="_up";e9D="mount";e9D+="ai";e9D+="n";m12=J8L.type == e9D;if(m12){f_Q=this.drawMountainChart(w9a,{style:J8L.style,field:J8L.field,yAxis:E4d,gapDisplayStyle:y6P,colored:!!({}),tension:0});}X$L=this.pixelFromPrice(b2d,w9a,E4d);if(isNaN(X$L)){return;}this.startClip(w9a.name);F5u=J8L.pattern || w$j.pattern;o0_=J8L.fill_color_up || this.getCanvasColor(o7B);w5M=J8L.fill_color_down || this.getCanvasColor("stx_baseline_down");t1Y=J8L.border_color_up || this.getCanvasColor("stx_baseline_up");C$2=J8L.border_color_down || this.getCanvasColor("stx_baseline_down");I9A=J8L.width || w$j.width || this.canvasStyle("stx_baseline_up").width;s05=J8L.width || w$j.width || this.canvasStyle("stx_baseline_down").width;d70=J8L.widthBaseline || w$j.width || a1X.stripPX(this.canvasStyle("stx_baseline").width);A2U=J8L.baselineOpacity || this.canvasStyle(w2M).opacity;G6Y={fill:o0_,edge:t1Y,width:I9A};J2v={fill:w5M,edge:C$2,width:s05};x8z=J8L.yAxis.flipped;c6G={over:x8z?J2v:G6Y,under:x8z?G6Y:J2v};G19=![];if(!y6P && y6P !== !1){y6P=x7J;}h5C=1;if(!J8L.highlight && this.highlightedDraggable){h5C*=0.3;}for(var I72 in c6G){v1C="tra";v1C+="nspa";v1C+="rent";P9o="o";P9o+="ver";A_Q="t";A_Q+="r";A_Q+="ansparent";b7i=parseInt(Math.max("1" | 1,a1X.stripPX(c6G[I72].width)),10);if(J8L.highlight){b7i*=2;}F5u=a1X.borderPatternToArray(b7i,F5u);q42={panelName:w9a.name,band:O4k,threshold:b2d,color:m12?A_Q:c6G[I72].fill,direction:I72 == P9o?1:-1,edgeHighlight:c6G[I72].edge,edgeParameters:{pattern:F5u,lineWidth:b7i + 0.1,opacity:h5C},gapDisplayStyle:y6P,yAxis:J8L.yAxis};if(E4d){q42.threshold=this.priceFromPixel(this.pixelFromPrice(q42.threshold,w9a,E4d),w9a,E4d);}f_Q.push(c6G[I72].edge);c0c=q42.color;if(!m12 && c0c && c0c != "transparent"){y16=w9a.top;m_k=w9a.bottom;u_q=Z0t.context.createLinearGradient(+"0",I72 == "over"?y16:m_k,0,X$L);u_q.addColorStop(0,a1X.hexToRgba(a1X.colorToHex(c0c),"60" >> 64));u_q.addColorStop(1,a1X.hexToRgba(a1X.colorToHex(c0c),+"10"));q42.color=u_q;q42.opacity=h5C;}a1X.preparePeakValleyFill(this,Z0t.dataSegment,q42);if(x7J){if(!x7J.fillMountain){this.drawLineChart(w9a,null,null,{color:"transparent",gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:q42.edgeParameters.lineWidth}});}if(!x7J.color){G19=!!({});x7J.color=this.defaultColor;}}this.drawLineChart(w9a,null,null,{color:v1C,width:q42.edgeParameters.lineWidth});if(G19){x7J.color=null;}}if(A_y){this.plotLine(+"0",1,X$L,X$L,this.containerColor,"line",Z0t.context,w9a,{lineWidth:"1.1"});this.plotLine(0,1,X$L,X$L,this.getCanvasColor("stx_baseline"),"line",Z0t.context,w9a,{pattern:"dotted",lineWidth:d70 || "2.1",opacity:A2U || 0.5 * h5C});}this.endClip();}return {colors:f_Q};};a1X.ChartEngine.prototype.plotLine=function(H3M){var V5a,o25,Z0i,k_m,K7l,c3y,R7Y,L5o,u8D,B9a,j60,X6j,J0j,S1U,C0x,S4y,z4k,S4E,E3I,x24,y$A,D7E,G6x,W7S,M4b,J8k,C_Z,g0F,L7d,b$V,k$M,D8O,f3l,G9R;V5a="vert";V5a+="ic";V5a+="al";o25="no";o25+="n";o25+="e";Z0i="n";Z0i+="um";Z0i+="b";Z0i+="er";if(typeof arguments[0] == Z0i){H3M={x0:arguments[0],x1:arguments[1],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[7]};for(var d4i in arguments[8]){H3M[d4i]=arguments[8][d4i];}}if(!H3M){H3M={};}if(H3M.pattern == o25){return;}k_m=H3M.x0;K7l=H3M.x1;c3y=H3M.y0;R7Y=H3M.y1;L5o=H3M.color;u8D=H3M.type;B9a=H3M.context;j60=H3M.confineToPanel;X6j=H3M.deferStroke;if(j60 === !!"1"){j60=this.chart.panel;}if(B9a === null || typeof B9a == "undefined"){B9a=this.chart.context;}if(isNaN(k_m) || isNaN(K7l) || isNaN(c3y) || isNaN(R7Y)){return;}J0j=0;S1U=this.chart.canvasHeight;C0x=0;S4y=this.right;if(j60){S1U=j60.yAxis.bottom;J0j=j60.yAxis.top;C0x=j60.left;S4y=j60.right;}if(u8D == "ray"){z4k=10000000;if(K7l < k_m){z4k=-+"10000000";}E3I={x0:k_m,x1:K7l,y0:c3y,y1:R7Y};S4E=a1X.yIntersection(E3I,z4k);K7l=z4k;R7Y=S4E;}if(u8D == "line" || u8D == "horizontal" || u8D == V5a){z4k=10000000;x24=-10000000;E3I={x0:k_m,x1:K7l,y0:c3y,y1:R7Y};S4E=a1X.yIntersection(E3I,z4k);y$A=a1X.yIntersection(E3I,x24);k_m=x24;K7l=z4k;c3y=y$A;R7Y=S4E;}D7E=0.0;G6x=1.0;G6_.a3e(1);W7S=G6_.k$A(k_m,K7l);G6_.a3e(1);M4b=G6_.B0m(c3y,R7Y);for(var D6C=0;D6C < 4;D6C++){if(D6C === +"0"){J8k=-W7S;G6_.i3C(1);C_Z=-G6_.B0m(k_m,C0x);}if(D6C == 1){J8k=W7S;G6_.i3C(1);C_Z=G6_.B0m(k_m,S4y);}if(D6C == +"2"){J8k=-M4b;G6_.i3C(1);C_Z=-G6_.k$A(c3y,J0j);}if(D6C == 3){J8k=M4b;G6_.a3e(1);C_Z=G6_.B0m(c3y,S1U);}G6_.a3e(40);g0F=G6_.B0m(C_Z,J8k);if((R7Y || R7Y === 0) && J8k === 0 && C_Z < "0" - 0){return !({});;}if(J8k < 0){if(g0F > G6x){return !1;}else if(g0F > D7E){D7E=g0F;};}else if(J8k > 0){if(g0F < D7E){return !1;}else if(g0F < G6x){G6x=g0F;};}}G6_.i3C(145);L7d=G6_.k$A(k_m,W7S,D7E);G6_.a3e(145);b$V=G6_.k$A(c3y,M4b,D7E);G6_.a3e(145);k$M=G6_.B0m(k_m,W7S,G6x);G6_.i3C(145);D8O=G6_.k$A(c3y,M4b,G6x);if(!R7Y && R7Y !== 0 && !c3y && c3y !== 0){b$V=J0j;D8O=S1U;L7d=E3I.x0;k$M=E3I.x0;if(E3I.x0 > S4y){return !({});}if(E3I.x0 < C0x){return ![];}}else if(!R7Y && R7Y !== 0){if(E3I.y0 < E3I.y1){D8O=S1U;}else {D8O=J0j;}L7d=E3I.x0;k$M=E3I.x0;if(E3I.x0 > S4y){return !"1";}if(E3I.x0 < C0x){return !!0;}}if(!X6j){B9a.save();B9a.beginPath();}B9a.lineWidth=1.1;if(L5o && typeof L5o == "object"){B9a.strokeStyle=L5o.color;if(L5o.opacity){B9a.globalAlpha=L5o.opacity;}else {B9a.globalAlpha=1;}B9a.lineWidth=a1X.stripPX(L5o.width);}else {f3l="a";f3l+="u";f3l+="t";f3l+="o";if(!L5o || L5o == f3l || a1X.isTransparent(L5o)){B9a.strokeStyle=this.defaultColor;}else {B9a.strokeStyle=L5o;}}if(H3M.opacity){B9a.globalAlpha=H3M.opacity;}if(H3M.lineWidth){B9a.lineWidth=H3M.lineWidth;}if(H3M.globalCompositeOperation){B9a.globalCompositeOperation=H3M.globalCompositeOperation;}G9R=a1X.borderPatternToArray(B9a.lineWidth,H3M.pattern);B9a.setLineDash(H3M.pattern?G9R:[]);B9a.moveTo(L7d,b$V);B9a.lineTo(k$M,D8O);if(!X6j){B9a.stroke();B9a.restore();}};a1X.ChartEngine.prototype.rendererAction=function(E1n,F4S){var b$0,T7l,d0e,z93,U4C,T8n,l8E,F2o;function w50(){var W$X,m30;W$X="u";G6_.E0w();W$X+="nde";W$X+="rl";W$X+="ay";if(!b$0 && F4S === W$X){m30=Symbol.for("CIQ.watermark");if(this[m30]){this[m30].draw(E1n);b$0=!![];}}}b$0=!({});G6_.E0w();if(!this.runPrepend("rendererAction",arguments)){for(var M3R in E1n.seriesRenderers){T7l="y";T7l+="Axi";T7l+="s";d0e="und";d0e+="erlay";z93="_ma";z93+="in_serie";z93+="s";U4C=E1n.seriesRenderers[M3R];T8n=U4C.params;l8E=T8n.panel;F2o=this.panels[l8E];if(T8n.overChart && F4S == "underlay")continue;if(T8n.name == z93 && F4S == d0e)continue;if(T8n.name != "_main_series" && F4S == "main")continue;if(!T8n.overChart && F4S == "overlay")continue;if(!F2o)continue;if(F2o.chart !== E1n)continue;if(F2o.hidden)continue;if(F4S == T7l){U4C.adjustYAxis();}else {w50.apply(this);U4C.draw();if(U4C.cb){U4C.cb(U4C.colors);}}}this.runAppend("rendererAction",arguments);}w50.apply(this);};a1X.ChartEngine.prototype.drawSeries=function(x0W,L6c,m2w,H_h){var n5r,k$i,K8R,R6B,H0Q,M2D,r8P,x3$,m9C,A_D,y6q,Q$c,K3f,A64,X5Q,c0R,f40,Q$N;n5r="draw";n5r+="Se";n5r+="r";n5r+="ies";if(this.runPrepend("drawSeries",arguments)){return;}k$i=x0W.dataSegment;K8R=null;if(!L6c){L6c=x0W.series;}for(var G$0 in L6c){R6B="mou";R6B+="nta";R6B+="in";K8R=L6c[G$0];H0Q=K8R.parameters;M2D=H0Q.panel?this.panels[H0Q.panel]:x0W.panel;r8P=H0Q.color;x3$=H0Q.width;m9C=H0Q.field;if(!M2D)continue;A_D=H0Q.yAxis=m2w?m2w:M2D.yAxis;if(!r8P){r8P=A_D.textStyle || this.defaultColor;}if(r8P == "auto"){r8P=this.defaultColor;}if(!m9C){m9C=x0W.defaultPlotField;}y6q=H0Q.subField || x0W.defaultPlotField || "Close";if(!H0Q._rawExtendToEndOfDataSet && H0Q._rawExtendToEndOfDataSet !== !!0){H0Q._rawExtendToEndOfDataSet=H0Q.extendToEndOfDataSet;}if(x0W.animatingHorizontalScroll){H0Q.extendToEndOfDataSet=![];}else {H0Q.extendToEndOfDataSet=H0Q._rawExtendToEndOfDataSet;}Q$c=H0Q.colorFunction;if(K8R.highlight || K8R.parameters.highlight){H0Q.highlight=!0;}K3f={colors:[]};if(H_h){if(H_h.params.highlight){H0Q.highlight=!!"1";}if(H0Q.hidden)continue;K3f=H_h.drawIndividualSeries(x0W,H0Q) || K3f;}else if(H0Q.type == R6B){K3f=this.drawMountainChart(M2D,a1X.extend({returnObject:!!1},H0Q),Q$c);}else {K3f=this.drawLineChart(M2D,H0Q.style,Q$c,a1X.extend({returnObject:!!1},H0Q));}K8R.yValueCache=K3f.cache;A64=x0W.dataSegment[x0W.dataSegment.length - 1];if(A64){X5Q=!H0Q.skipTransform && x0W.transformFunc && A_D == x0W.panel.yAxis;if(!A64[m9C] && A64[m9C] !== "0" >> 0){A64=this.getPreviousBar(x0W,m9C,x0W.dataSegment.length - 1);}if(X5Q && A64 && A64.transform){A64=A64.transform;}}if(H0Q.displayFloatingLabel !== !({}) && this.mainSeriesRenderer != H_h && A64 && !A_D.noDraw){c0R=A64[m9C];if(c0R){if(c0R[y6q] || c0R[y6q] === 0){c0R=c0R[y6q];}else {c0R=c0R.iqPrevClose;}}if(A_D.priceFormatter){f40=A_D.priceFormatter(this,M2D,c0R);}else {f40=this.formatYAxisPrice(c0R,M2D,null,A_D);}this.yAxisLabels.push({src:"series",args:[M2D,f40,this.pixelFromTransformedValue(c0R,M2D,A_D),a1X.hexToRgba(a1X.colorToHex(r8P),parseFloat(H0Q.opacity)),null,null,A_D]});}if(x0W.legend && H0Q.useChartLegend){if(!x0W.legend.colorMap){x0W.legend.colorMap={};}Q$N=H0Q.display;if(!Q$N){Q$N=H0Q.symbol;}x0W.legend.colorMap[G$0]={color:K3f.colors,display:Q$N,isBase:H_h == this.mainSeriesRenderer};;}}this.runAppend(n5r,arguments);};};I3=Q9f=>{var z3m=M2dNJ;z3m.j07();var W$C;W$C=Q9f.CIQ;W$C.ChartEngine.prototype.scrollTo=function(i81,J_y,s8d){var m6Y,p53,o4f,C0k,k1q;m6Y=this.swipe;m6Y.end=!!"1";m6Y.amplitude=m6Y.target=(J_y - i81.scroll) * this.layout.candleWidth;m6Y.timeConstant=100;m6Y.timestamp=Date.now();p53=1226042827;o4f=1168966903;C0k=2;z3m.j07();for(var n6s=1;z3m.b3_(n6s.toString(),n6s.toString().length,+"82797") !== p53;n6s++){m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;C0k+=2;}if(z3m.b3_(C0k.toString(),C0k.toString().length,13329) !== o4f){m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;}m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;k1q=this;requestAnimationFrame(function(){k1q.autoscroll();});};W$C.ChartEngine.prototype.autoscroll=function(){var p_v,K4u,C4$,x6k,V7d,f9G,b2K;p_v=this;K4u=this.swipe;C4$=455036783;x6k=+"537613222";V7d=2;z3m.E0w();for(var s$C="1" ^ 0;z3m.b3_(s$C.toString(),s$C.toString().length,"74984" << 0) !== C4$;s$C++){V7d+=2;}if(z3m.b3_(V7d.toString(),V7d.toString().length,54100) !== x6k){}if(K4u.amplitude){K4u.elapsed=Date.now() - K4u.timestamp;f9G=-K4u.amplitude * Math.exp(-K4u.elapsed / K4u.timeConstant);b2K=(K4u.target + f9G) / this.layout.candleWidth;K4u.chart.scroll=K4u.scroll + Math.round(b2K);this.draw();this.updateChartAccessories();if(f9G > "0.5" - 0 || f9G < -0.5){requestAnimationFrame(function(){p_v.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(K4u.cb){K4u.cb();}}}};};j0=n7h=>{var R8s=M2dNJ;R8s.E0w();var N5$;N5$=n7h.CIQ;N5$.ChartEngine.prototype.drawXAxis=function(I8E,U6f){var i52,V_o,L5v,m2g,Q3Z,L2F,E7F,k4j,w9X,f3u,d_J,o2T,z9U,t$P,J5R,J9O,G57,p82,N0K,y7B,p2W,p7A,b47,k9H,g_0;i52=[I8E,U6f];if(this.runPrepend("drawXAxis",i52)){return;}if(!U6f){return;}if(I8E.xAxis.noDraw){return;}V_o=this.getBackgroundCanvas().context;this.canvasFont("stx_xaxis",V_o);L5v=this.getCanvasFontSize("stx_xaxis");V_o.textAlign="center";V_o.textBaseline="middle";Q3Z=V_o.measureText(" ").width;for(var G4X=0;G4X < U6f.length;G4X++){m2g=U6f[G4X];L2F=V_o.measureText(m2g.text).width;R8s.a3e(4);E7F=Math.max(R8s.k$A(Q3Z,L2F),I8E.xAxis.minimumLabelWidth);m2g.hz=Math.floor(m2g.hz + this.micropixels) + ("0.5" - 0);R8s.i3C(4);var h3M=R8s.B0m(1,1);m2g.left=m2g.hz - E7F / h3M;m2g.right=m2g.hz + E7F / +"2";m2g.unpaddedRight=m2g.hz + L2F / +"2";}k4j=this.xAxisAsFooter === !![]?this.chart.canvasHeight:I8E.panel.bottom;R8s.a3e(1);w9X=this.whichPanel(R8s.B0m(1,k4j));if(!w9X){return;}this.adjustYAxisHeightOffset(w9X,w9X.yAxis);f3u=I8E.xAxis.displayBorder || I8E.xAxis.displayBorder === null;if(this.axisBorders === !!({})){f3u=!![];}if(this.axisBorders === ![]){f3u=!!0;}d_J=k4j - this.xaxisHeight + L5v;if(f3u){d_J+=3;}o2T=!!({});for(var u7O in this.panels){z9U="l";z9U+="in";z9U+="e";t$P=this.panels[u7O];if(t$P.hidden || t$P.shareChartXAxis === !"1")continue;R8s.i3C(110);J5R=R8s.B0m(t$P,w9X);J9O=t$P.yAxis;if(!J9O)continue;G57=-Number.MAX_VALUE;p82=Number.MAX_VALUE;for(var S8v=0;S8v < U6f.length;S8v++){N0K="b";N0K+="o";N0K+="undary";if(U6f[S8v].grid == N0K){p82=U6f[S8v].left;break;}}V_o.save();V_o.beginPath();V_o.rect(t$P.left,t$P.top + (o2T?0:1),t$P.width,t$P.height - 1);V_o.clip();o2T=!!"";y7B=new N5$.Plotter();y7B.newSeries(z9U,"stroke",this.canvasStyle("stx_grid"));y7B.newSeries("boundary","stroke",this.canvasStyle("stx_grid_dark"));y7B.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));for(var f2I=0;f2I < U6f.length;f2I++){m2g=U6f[f2I];if(f2I == S8v){for(S8v++;S8v < U6f.length;S8v++){p2W="b";p2W+="oun";p2W+="dary";if(U6f[S8v].grid == p2W){p82=U6f[S8v].left;break;}}if(S8v >= U6f.length){S8v=-1;p82=Number.MAX_VALUE;}}else {if(m2g.right > p82)continue;}if(m2g.left < G57)continue;if(m2g.left < 0){if(p82 < m2g.right)continue;if(S8v >= U6f.length){if(U6f[f2I + 1] && U6f[f2I + 1].left < m2g.right)continue;}}G57=m2g.right;if(Math.floor(m2g.left) <= t$P.right){if(Math.floor(m2g.hz) > t$P.left){if(I8E.xAxis.displayGridLines){y7B.moveTo(m2g.grid,m2g.hz,J9O.top);y7B.lineTo(m2g.grid,m2g.hz,J9O.bottom);}if(J5R && f3u){p7A="bor";p7A+="der";y7B.moveTo("border",m2g.hz,J9O.bottom + 0.5);y7B.lineTo(p7A,m2g.hz,J9O.bottom + 6);}}if(J5R && m2g.right > t$P.left){b47="s";b47+="t";b47+="x_x";b47+="axis";this.canvasColor(m2g.grid == "boundary"?"stx_xaxis_dark":b47,V_o);V_o.fillText(m2g.text,m2g.hz,d_J);}}}if(f3u){k9H=Math.round(J9O.bottom) + 0.5;g_0=Math.round(t$P.right) + 0.5;y7B.moveTo("border",t$P.left,k9H);y7B.lineTo("border",g_0,k9H);}y7B.draw(V_o);V_o.restore();}V_o.textAlign="left";this.runAppend("drawXAxis",i52);};N5$.ChartEngine.prototype.createTickXAxisWithDates=function(p1t){var y5V,X32,R08,j02,R6v,b_f,l0p,n9v,V6L,r0D,t5s,S6W,p5w,n52,a37,u4V,r3q,U7y,m6J,S18,i0B,T8T,u2r,z$u,l1m,w3x,e_9,l7C,q4t,k6F,g$1,T5C,u8k,x95,B1j,z5H,N2C,D_P,H2V,J3J,M02,r1p,Z2E,H9U,K0y,K_v,j8U,c5B,p52,W7N,b85,z4d,j4O,D15,a1D,L6H,O9U,b6O,G4D,T53,n5t,c65,o91;y5V="heikin";y5V+="as";y5V+="hi";X32="m";X32+="onth";R08="d";R08+="a";R08+="y";j02="mi";j02+="n";j02+="u";j02+="te";if(!p1t){p1t=this.chart;}p1t.xaxis=[];b_f=p1t.context;l0p=[N5$.MILLISECOND,N5$.SECOND,N5$.MINUTE,N5$.HOUR,N5$.DAY,N5$.MONTH,N5$.YEAR];if(!this.timeIntervalMap){n9v="2";n9v+="00";n9v+="0";V6L="10";V6L+=":00";r0D=b_f.measureText.bind(b_f);R6v={};R6v[N5$.MILLISECOND]={arr:[+"1",2,5,10,20,50,"100" >> 0,250,+"500"],minTimeUnit:+"0",maxTimeUnit:1000,measurement:r0D("10:00:00.000")};R6v[N5$.SECOND]={arr:[1,2,3,"4" << 64,5,6,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:60,measurement:r0D("10:00:00")};R6v[N5$.MINUTE]={arr:[1,2,3,4,5,"6" << 0,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:"60" << 64,measurement:r0D("10:00")};R6v[N5$.HOUR]={arr:[1,2,3,"4" | 4,6,+"12"],minTimeUnit:"0" ^ 0,maxTimeUnit:24,measurement:r0D(V6L)};R6v[N5$.DAY]={arr:[1,2,"7" >> 0,14],minTimeUnit:1,maxTimeUnit:"32" | 0,measurement:r0D("30")};R6v[N5$.MONTH]={arr:[1,+"2",3,6],minTimeUnit:"1" << 0,maxTimeUnit:13,measurement:r0D("Mar")};R6v[N5$.YEAR]={arr:[1,+"2",3,+"5"],minTimeUnit:+"1",maxTimeUnit:20000000,measurement:r0D(n9v)};R6v[N5$.DECADE]={arr:[10],minTimeUnit:+"0",maxTimeUnit:2000000,measurement:r0D("2000")};this.timeIntervalMap=R6v;}R6v=this.timeIntervalMap;R8s.a3e(71);t5s=[R8s.k$A("31",0),28,31,30,31,+"30",31,31,30,31,+"30",31];S6W=this.layout.periodicity;p5w=this.layout.interval;n52=p1t.maxTicks;a37=p1t.dataSegment;u4V=p1t.xAxis;r3q=a37.length;U7y=u4V.idealTickSizePixels || u4V.autoComputedTickSizePixels;R8s.j07();m6J=this.chart.width / U7y;for(var V_p="0" << 0;V_p < r3q;V_p++){if(a37[V_p])break;}if(V_p == r3q){return [];}S18=0;i0B=this.layout.timeUnit || j02;if(isNaN(p5w)){i0B=p5w;p5w=1;}T8T=0;switch(i0B){case "millisecond":T8T=1;break;case "second":T8T=1000;R8s.a3e(82);l0p.splice(0,R8s.B0m(96,"1"));break;case "minute":T8T=60000;l0p.splice(+"0",2);break;case R08:T8T=86400000;l0p.splice(0,4);break;case "week":R8s.i3C(38);T8T=R8s.B0m(86400000,7);l0p.splice(0,4);break;case X32:R8s.i3C(38);T8T=R8s.B0m(86400000,30);l0p.splice(+"0",5);break;}u2r=this.layout.aggregationType;if(T8T && (!u2r || u2r == "ohlc" || u2r == y5V)){R8s.i3C(72);S18=R8s.k$A(T8T,S6W,r3q,p5w);;}else {S18=a37[r3q - 1].DT.getTime() - a37[V_p].DT.getTime();;}if(S18 === 0){if(p1t.market){z$u=p1t.market.newIterator({begin:new Date(),interval:"day",periodicity:1});z$u.next();l1m=z$u.previous();z$u=this.standardMarketIterator(l1m,null,p1t);w3x=z$u.next();S18=(w3x.getTime() - l1m.getTime()) * n52;;}else {R8s.i3C(160);S18=R8s.k$A("60",n52,1000,24,"60");;}}else {R8s.a3e(161);S18=R8s.B0m(n52,r3q,S18);;}R8s.a3e(40);e_9=R8s.B0m(S18,m6J);for(l7C=0;l7C < l0p.length;l7C++){if(l0p[l7C] > e_9 + "0.001" * 1)break;;}if(e_9 < 1){console.log("createTickXAxisWithDates: Assertion error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodicity and it is sorted from OLDEST to NEWEST.");}if(l7C == l0p.length){l7C--;}else if(l7C > 0){R8s.i3C(1);q4t=l0p[R8s.B0m(1,l7C)];k6F=R6v[q4t].arr;R8s.i3C(20);var J6k=R8s.B0m(19,13,0,31);g$1=k6F[k6F.length - J6k];if(e_9 - q4t * g$1 < l0p[l7C] - e_9){l7C--;}}T5C=u4V.timeUnit || l0p[l7C];u4V.activeTimeUnit=T5C;u8k=R6v[T5C];x95=u8k.arr;for(l7C=0;l7C < x95.length;l7C++){if(x95[l7C] * T5C > e_9)break;}if(l7C == x95.length){l7C--;}else {if(e_9 - x95[l7C - 1] * T5C < x95[l7C] * T5C - e_9){l7C--;}}if(u8k.measurement.width * 2 < this.layout.candleWidth){l7C=0;}B1j=u4V.timeUnitMultiplier || x95[l7C];z5H=[];N2C=this.layout.candleWidth;for(l7C=0;l7C <= n52;l7C++){if(a37[l7C])break;}if(l7C > 0 && l7C < n52){if(p1t.market){D_P=this.standardMarketIterator(a37[l7C].DT,u4V.adjustTimeZone?this.displayZone:null);}for(var L1Z=l7C;L1Z > 0;L1Z--){H2V={};if(D_P && !(p1t.lineApproximation && N2C < 1)){H2V.DT=D_P.previous();}p1t.xaxis.unshift(H2V);}}J3J=0;function k2N(w31){var m3d,G9l;if(T5C == N5$.MILLISECOND){m3d=w31.getMilliseconds();G9l=w31.getSeconds();}else if(T5C == N5$.SECOND){m3d=w31.getSeconds();G9l=w31.getMinutes();}else if(T5C == N5$.MINUTE){m3d=w31.getMinutes();G9l=w31.getHours();}else if(T5C == N5$.HOUR){R8s.a3e(34);var b7U=R8s.k$A(14,946,1020);m3d=w31.getHours() + w31.getMinutes() / b7U;G9l=w31.getDate();}else if(T5C == N5$.DAY){m3d=w31.getDate();R8s.a3e(20);var q8A=R8s.B0m(14,4,19,36);G9l=w31.getMonth() + q8A;}else if(T5C == N5$.MONTH){R8s.i3C(31);var n7g=R8s.B0m(2,3,6,6);m3d=w31.getMonth() + n7g;G9l=w31.getFullYear();}else if(T5C == N5$.YEAR){m3d=w31.getFullYear();R8s.i3C(1);var q7P=R8s.B0m(7000,8000);G9l=w31.getFullYear() + q7P;}else {m3d=w31.getFullYear();R8s.i3C(71);G9l=R8s.k$A("0",64);}return [m3d,G9l];}M02=u8k.minTimeUnit;r1p=-+"1";Z2E=!![];H9U=k2N(a37[l7C].DT);R8s.i3C(14);K_v=R8s.k$A(0,"0");j8U=0;c5B=a37[l7C].tick;for(K_v;K_v < c5B;K_v++){K0y=k2N(this.chart.dataSet[c5B - K_v].DT);if(K0y[1] != H9U[1])break;H9U=K0y;}for(j8U;j8U < this.chart.dataSet.length - c5B;j8U++){K0y=k2N(this.chart.dataSet[c5B + j8U].DT);if(K0y[1] != H9U[1])break;H9U=K0y;}p52=null;for(l7C=0;l7C < n52 + j8U;l7C++){W7N=a37[l7C];if(!W7N){W7N=p1t.xaxis[l7C];}else if(K_v){W7N=p1t.dataSet[W7N.tick - K_v];}if(l7C < r3q){b85=W7N;if(b85.displayDate && u4V.adjustTimeZone){J3J=b85.displayDate;}else {J3J=b85.DT;}if(l7C && !K_v && p1t.segmentImage){z4d=p1t.segmentImage[l7C];R8s.a3e(25);var q0g=R8s.B0m(4,28,110);N2C=(z4d.leftOffset - z4d.candleWidth / q0g) / l7C;}}else if(p1t.market){j4O="t";j4O+="i";j4O+="c";j4O+="k";if(this.layout.interval == j4O && !u4V.futureTicksInterval)break;if(p1t.lineApproximation && N2C < 1)break;if(!u4V.futureTicks)break;if(!p52){p52=this.standardMarketIterator(a37[r3q - 1].DT,u4V.adjustTimeZone?this.displayZone:null);}J3J=p52.next();}if(!J3J)continue;D15=null;R8s.a3e(1);L6H=R8s.k$A(K_v,l7C);O9U={DT:J3J};if(l7C < r3q){O9U.data=W7N;}else {O9U.data=null;}if(K_v){K_v--;l7C--;}else if(!p1t.xaxis[l7C] && l7C < n52){p1t.xaxis.push(O9U);}H9U=k2N(J3J);b6O=H9U[0];G4D=H9U[1];if(r1p != G4D){if(b6O <= M02){M02=u8k.minTimeUnit;}R8s.a3e(8);var w0s=R8s.k$A(24,13,12);a1D=p1t.left + L6H * N2C - w0s;D15=null;if(T5C == N5$.HOUR || T5C == N5$.MINUTE && r1p > G4D){if(this.internationalizer){D15=this.internationalizer.monthDay.format(J3J);}else {D15=J3J.getMonth() + +"1" + "/" + J3J.getDate();}if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.DAY,1,D15);}}else if(T5C == N5$.DAY){if(r1p > G4D){D15=J3J.getFullYear();if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.YEAR,1,D15);}}else {D15=N5$.monthAsDisplay(J3J.getMonth(),![],this);if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.MONTH,1,D15);}}}else if(T5C == N5$.MONTH){D15=J3J.getFullYear();if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.YEAR,"1" | 0,D15);}}if(D15 && r1p != -1){T53="bo";T53+="u";T53+="ndar";T53+="y";z5H.push(new N5$.ChartEngine.XAxisLabel(a1D,T53,D15));}}if(b6O >= M02){n5t="l";n5t+="i";n5t+="ne";if(M02 == u8k.minTimeUnit){if(G4D == r1p)continue;;}c65=new Date(+J3J);R8s.a3e(10);var L3m=R8s.k$A(4,4,16,0,0);R8s.a3e(7);var E4H=R8s.B0m(89,11,4);R8s.i3C(0);var x6v=R8s.k$A(1,6,7);a1D=p1t.left + (+"2" * L6H + L3m) * N2C / ("2" >> E4H) - x6v;o91=Math.floor(b6O / B1j) * B1j;if(o91 < b6O){if(this.layout.interval == "week"){o91=b6O;}else {R8s.a3e(40);a1D-=R8s.B0m(N2C,2);};}if(T5C == N5$.MILLISECOND){c65.setMilliseconds(o91);}else if(T5C == N5$.SECOND){c65.setMilliseconds(0);c65.setSeconds(o91);}else if(T5C == N5$.MINUTE){c65.setMilliseconds(0);c65.setSeconds(+"0");c65.setMinutes(o91);}else if(T5C == N5$.HOUR){c65.setMilliseconds(0);c65.setSeconds(0);c65.setMinutes(0);c65.setHours(o91);}else if(T5C == N5$.DAY){c65.setDate(Math.max(1,o91));}else if(T5C == N5$.MONTH){c65.setDate(1);R8s.i3C(1);c65.setMonth(R8s.B0m(1,o91));}else if(T5C == N5$.YEAR){c65.setDate(1);c65.setMonth(0);}else {c65.setDate(1);c65.setMonth(0);}R8s.i3C(4);M02=R8s.k$A(B1j,o91);if(T5C == N5$.DAY){R8s.i3C(67);var O7J=R8s.B0m(11,100,14,8);u8k.maxTimeUnit=t5s[c65.getMonth()] + O7J;}if(M02 >= u8k.maxTimeUnit){M02=u8k.minTimeUnit;}r1p=G4D;if(Z2E && o91 < b6O){Z2E=![];continue;}if(T5C == N5$.DAY){D15=c65.getDate();}else if(T5C == N5$.MONTH){D15=N5$.monthAsDisplay(c65.getMonth(),!({}),this);}else if(T5C == N5$.YEAR || T5C == N5$.DECADE){D15=c65.getFullYear();}else {D15=N5$.timeAsDisplay(c65,this,T5C);}if(u4V.formatter){D15=u4V.formatter(c65,"line",T5C,B1j,D15);}z5H.push(new N5$.ChartEngine.XAxisLabel(a1D,n5t,D15));}}return z5H;};};n2=Z8_=>{var f5q;f5q=Z8_.CIQ;f5q.ChartEngine.prototype.createYAxis=function(f1m,c4G){var e5l=M2dNJ;var h7A,Y3I,Q4I,q00,J1e,L1M,W2W,O20,V8j,x0U,r8F,Y6a,J8c,e6D,W0D,w8t,I7Y,X4Y,M5q,A1h,l7k,w4P,l2O;h7A="c";h7A+="r";h7A+="eat";h7A+="eYAxis";Y3I="creat";Y3I+="eYAxis";if(this.runPrepend(Y3I,arguments)){return;}Q4I=f1m.chart;q00=f1m.name == Q4I.name;if(!c4G){c4G={};}e5l.E0w();c4G.noChange=!1;J1e=c4G.yAxis?c4G.yAxis:f1m.yAxis;if(f5q.ChartEngine.enableCaching && J1e.high == f1m.cacheHigh && J1e.low == f1m.cacheLow){e5l.a3e(0);var t0B=e5l.k$A(2,5,11);L1M=Q4I.dataSet.length - Q4I.scroll - t0B;e5l.i3C(5);var R3u=e5l.B0m(19,20);W2W=L1M + Q4I.maxTicks + R3u;f1m.cacheLeft=L1M;f1m.cacheRight=W2W;c4G.noChange=!0;}else {f1m.cacheLeft=1000000;f1m.cacheRight=-+"1";f1m.cacheHigh=J1e.high;f1m.cacheLow=J1e.low;}O20=Q4I.xAxis.idealTickSizePixels?Q4I.xAxis.idealTickSizePixels:Q4I.xAxis.autoComputedTickSizePixels;if(J1e.goldenRatioYAxis){if(J1e.idealTickSizePixels != O20 / 1.618){c4G.noChange=!({});}}if(!c4G.noChange){x0U="p";x0U+="rojection";this.adjustYAxisHeightOffset(f1m,J1e);r8F=J1e.height=J1e.bottom - J1e.top;Y6a=(J1e.high - J1e.low) / (r8F - J1e.zoom);if(!J1e.semiLog){if(c4G.ground){J1e.high=J1e.high + J1e.zoom * Y6a;}else {e5l.a3e(61);var L3c=e5l.B0m(14,2,4,14);J1e.high=J1e.high + (J1e.zoom / L3c + J1e.scroll) * Y6a;e5l.i3C(125);var K5O=e5l.B0m(17,4,167,13);J1e.low=J1e.low - (J1e.zoom / K5O - J1e.scroll) * Y6a;}}if(J1e.min || J1e.min === 0){J1e.low=J1e.min;}if(J1e.max || J1e.max === +"0"){J1e.high=J1e.max;}J1e.shadow=J1e.high - J1e.low;if(J1e.semiLog && (!this.activeDrawing || this.activeDrawing.name != x0U)){J8c=function(){var V4d;J1e.logHigh=Math.log(J1e.high) / Math.LN10;V4d=Math.max(J1e.low,0.000000001);J1e.logLow=Math.log(V4d) / Math.LN10;if(J1e.low <= 0){J1e.logLow=0;}J1e.logShadow=J1e.logHigh - J1e.logLow;};if(J1e.semiLog){J8c();}e6D=J1e.height / (J1e.height - J1e.zoom);if(J1e.flipped){J1e.high=this.transformedPriceFromPixel(J1e.bottom + e6D * (J1e.zoom / 2 + J1e.scroll),f1m,J1e);J1e.low=this.transformedPriceFromPixel(J1e.top - e6D * (J1e.zoom / 2 - J1e.scroll),f1m,J1e);;}else {J1e.high=this.transformedPriceFromPixel(J1e.top - e6D * (J1e.zoom / 2 + J1e.scroll),f1m,J1e);J1e.low=this.transformedPriceFromPixel(J1e.bottom + e6D * (J1e.zoom / 2 - J1e.scroll),f1m,J1e);;}J1e.shadow=J1e.high - J1e.low;if(J1e.semiLog){J8c();}}if(J1e.goldenRatioYAxis && q00 && J1e == f1m.yAxis){e5l.a3e(40);J1e.idealTickSizePixels=e5l.B0m(O20,1.618);if(J1e.idealTickSizePixels === ("0" ^ 0)){W0D=this.getCanvasFontSize("stx_yaxis");e5l.a3e(38);J1e.idealTickSizePixels=e5l.k$A(W0D,5);}}else {if(!J1e.idealTickSizePixels){W0D=this.getCanvasFontSize("stx_yaxis");if(q00){e5l.a3e(85);J1e.idealTickSizePixels=e5l.k$A("5",W0D);}else {e5l.a3e(38);J1e.idealTickSizePixels=e5l.B0m(W0D,2);}}}w8t=Math.round(r8F / J1e.idealTickSizePixels);V8j=c4G.range?c4G.range[1] - c4G.range[0]:J1e.shadow;e5l.a3e(40);J1e.priceTick=Math.floor(e5l.k$A(V8j,w8t));I7Y=1;for(var U0U=+"0";U0U < 10;U0U++){if(J1e.priceTick > 0)break;I7Y*=10;J1e.priceTick=Math.floor(V8j / w8t * I7Y) / I7Y;}if(U0U == 10){J1e.priceTick=0.00000001;}J1e.priceTick=Math.round(V8j / w8t * I7Y) / I7Y;X4Y=Math.round(V8j / J1e.priceTick);if(c4G.range && X4Y < V8j && !J1e.noEvenDivisorTicks){while(X4Y >= 1){if(V8j % X4Y === 0)break;X4Y--;}e5l.i3C(40);J1e.priceTick=e5l.B0m(V8j,X4Y);}if(J1e.minimumPriceTick){M5q="stx_ya";M5q+="x";M5q+="is";A1h=J1e.minimumPriceTick;W0D=this.getCanvasFontSize(M5q);for(var t0o=+"0";t0o < +"100";t0o++){e5l.a3e(40);l7k=e5l.k$A(V8j,A1h);if(r8F / l7k < W0D * 2){A1h+=J1e.minimumPriceTick;}else break;}if(t0o < 100){J1e.priceTick=A1h;}}}if(J1e.priceTick <= 0 || J1e.priceTick === Infinity){J1e.priceTick=1;}J1e.multiplier=J1e.height / J1e.shadow;if(J1e.multiplier == Infinity){J1e.multiplier=0;}if(!J1e.decimalPlaces && J1e.decimalPlaces !== "0" << 32){if(q00){w4P=0;for(var g0p=0;g0p < f1m.yAxis.shadowBreaks.length;g0p++){l2O=f1m.yAxis.shadowBreaks[g0p];if(f1m.yAxis.shadow < l2O[0]){w4P=l2O[1];}}J1e.printDecimalPlaces=w4P;}else {J1e.printDecimalPlaces=null;};}else {J1e.printDecimalPlaces=J1e.decimalPlaces;}this.runAppend(h7A,arguments);};f5q.ChartEngine.prototype.drawYAxis=function(V1W,r_g){var n7$=M2dNJ;var y52,j2h,u2C,s7h,a_G,r59,t03,U7c,s6M,Q4E,l0O,j2w,g5E,w5m,G52,l8Z,g_4,C$5,o$1,w2S,z4u,n5C,K$4,O9r,C9T,y$Z,T0m,x5M,E21,a_1,s1c,g6c,Q7M,Q27,K9O,a5m,D_q,j$K,v8F,a3r,h3h,v7k,o9D,w2_,A8J,L31,g1X,I9K,k9B,T$U;y52="dra";y52+="w";y52+="YA";y52+="xis";j2h="d";n7$.E0w();j2h+="rawYAxi";j2h+="s";u2C="stx_yax";u2C+="is";if(!r_g){r_g={};}s7h=r_g.yAxis?r_g.yAxis:V1W.yAxis;if(V1W.hidden || s7h.noDraw || !s7h.width){return;}if(!f5q.Comparison || s7h.priceFormatter != f5q.Comparison.priceFormat){a_G=s7h.fractional;if(a_G){if(!s7h.originalPriceFormatter){s7h.originalPriceFormatter={func:s7h.priceFormatter};}if(!a_G.resolution){a_G.resolution=s7h.minimumPrice;}if(!a_G.formatter){a_G.formatter=3165 == 9720?383.44 != (324.19,8460)?!![]:383.27:"'";}if(!s7h.priceFormatter){s7h.priceFormatter=function(b$T,j6s,A9i){var C0Z,F8a,y0j,h57;if(!a_G){return;}C0Z="";if(A9i < 0){C0Z=(3398,5670) == (4714,489.86)?(5630,+"5020") === 1392?(1.07e+3,0x1c7e):("b",197.77):"-";A9i=Math.abs(A9i);}F8a=Math.floor(Math.round(A9i / a_G.resolution) * a_G.resolution);y0j=Math.round((A9i - F8a) / a_G.resolution);h57=Math.floor(y0j);n7$.i3C(12);var I89=n7$.B0m(13,16,10,133,5);n7$.a3e(89);var D$Y=n7$.B0m(7,18,25357,14,1690);n7$.a3e(50);var j5_=n7$.k$A(19,331,4940);n7$.i3C(112);n7$.j07();var r6N=n7$.B0m(102871,109259,17,15,7);n7$.i3C(162);var v2D=n7$.k$A(4,3,5,4);n7$.a3e(1);var h9R=n7$.B0m(18,4772);return C0Z + F8a + a_G.formatter + (h57 < I89?(D$Y,941.59) !== j5_?(425.44,"1740" ^ 0) != r6N?"0":(![],213.40):565.96:"") + h57 + (y0j - h57 >= +"0.5"?"3098" * v2D == h9R?("m",+"619.23"):"+":"");};}}else {if(s7h.originalPriceFormatter){s7h.priceFormatter=s7h.originalPriceFormatter.func;s7h.originalPriceFormatter=null;}}}r59=this.colorOrStyle(s7h.textStyle || u2C);t03=this.highlightedDraggable;U7c=0;if(t03 && this.yaxisMatches(t03,s7h)){U7c=0.15;}else if(s7h.highlight){U7c=0.1;}if(U7c){s6M=r59.constructor == String?r59:r59.color;s7h.setBackground(this,{color:s6M,opacity:U7c});}if(s7h.pretty){return this.drawYAxisPretty(V1W,r_g);}if(this.runPrepend(j2h,arguments)){return;}if(!r_g.noDraw && !s7h.noDraw){Q4E=s7h.yAxisPlotter;if(!Q4E || !r_g.noChange){l0O="s";l0O+="tx_yax";l0O+="is";j2w="lef";j2w+="t";g5E="st";g5E+="x_grid_border";w5m="str";w5m+="oke";G52="bo";G52+="rder";l8Z="g";l8Z+="ri";l8Z+="d";Q4E=s7h.yAxisPlotter=new f5q.Plotter();g_4=V1W.chart;C$5=V1W.name == g_4.name && s7h.name === V1W.yAxis.name;if(!s7h.priceTick){return;}o$1=s7h.shadow;w2S=r_g.range;if(w2S){n7$.a3e(163);var k8a=n7$.k$A(1,13,1,12);o$1=w2S[k8a] - w2S[0];}z4u=o$1 / s7h.priceTick;z4u=Math.round(z4u);if(s7h.semiLog){n5C=Math.log(this.valueFromPixel(s7h.flipped?s7h.top:s7h.bottom,V1W)) / Math.LN10;K$4=(s7h.logHigh - s7h.logLow) / z4u;}Q4E.newSeries(l8Z,"stroke",this.canvasStyle("stx_grid"));Q4E.newSeries("text","fill",r59);Q4E.newSeries(G52,w5m,this.canvasStyle(g5E));O9r=0;C9T=w2S?w2S[+"1"]:s7h.high;y$Z=w2S?w2S[0]:s7h.low;T0m=s7h.displayBorder === null?g_4.panel.yAxis.displayBorder:s7h.displayBorder;if(this.axisBorders === !"1"){T0m=!({});}if(this.axisBorders === !0){T0m=!!({});}E21=g_4.dynamicYAxis;a_1=E21?s7h.width:NaN;s1c=this.getYAxisCurrentPosition(s7h,V1W);if(s1c == j2w){x5M=s7h.left + s7h.width;}else {x5M=s7h.left;}g6c=Math.round(x5M) + 0.5;Q7M=T0m?3:0;if(s1c == "left"){Q7M=T0m?-3:+"0";}if(C$5){if(s7h.shadow < 1){n7$.a3e(164);var H5m=n7$.k$A(2,8,19,19);n7$.i3C(19);var X7G=n7$.k$A(3,5,7,6);O9r=(parseInt(y$Z / s7h.priceTick,H5m) + X7G) * s7h.priceTick - y$Z;}else {O9r=s7h.priceTick - Math.round(y$Z % s7h.priceTick * V1W.chart.roundit) / V1W.chart.roundit;}}else {O9r=C9T % s7h.priceTick;}Q27=this.getCanvasFontSize(l0O);for(var P5M=0;P5M < z4u;P5M++){K9O="tex";K9O+="t";if(s7h.semiLog){n7$.a3e(145);D_q=n7$.B0m(n5C,K$4,P5M);a5m=Math.pow(10,D_q);}else {if(C$5){a5m=y$Z + P5M * s7h.priceTick + O9r;}else {a5m=C9T - P5M * s7h.priceTick - O9r;}}j$K=this.pixelFromTransformedValue(a5m,V1W,s7h);v8F=Math.round(j$K) + ("0.5" - 0);if(v8F + Q27 / 2 > V1W.bottom)continue;if(v8F - Q27 / +"2" < V1W.top)continue;if(Math.abs(v8F - s7h.bottom) < "1" << 64)continue;if(s7h.flipped){v8F=s7h.top + s7h.bottom - v8F;}if(s7h.displayGridLines){Q4E.moveTo("grid",V1W.left + +"1",v8F);Q4E.lineTo("grid",V1W.right - 1,v8F);}if(T0m){n7$.a3e(1);Q4E.moveTo("border",n7$.k$A(0.5,g6c),v8F);n7$.i3C(4);Q4E.lineTo("border",n7$.B0m(Q7M,g6c),v8F);}if(s7h.priceFormatter){a5m=s7h.priceFormatter(this,V1W,a5m);}else {a5m=this.formatYAxisPrice(a5m,V1W,null,s7h);}a3r=s7h.textBackground?this.containerColor:null;h3h=3;n7$.i3C(50);v7k=n7$.k$A(Q7M,x5M,h3h);if(s1c == "left"){v7k=s7h.left + h3h;if(s7h.justifyRight !== !"1"){v7k=s7h.left + s7h.width + Q7M - h3h;}}else {if(s7h.justifyRight){v7k=x5M + s7h.width;}}Q4E.addText(K9O,a5m,v7k,v8F,a3r,null,Q27);if(E21){a_1=Math.max(a_1,g_4.context.measureText(a5m).width + Math.abs(Q7M) + h3h);}}if(T0m){o9D="bord";o9D+="er";w2_="bor";w2_+="d";w2_+="er";A8J="b";A8J+="o";A8J+="rde";A8J+="r";L31=Math.round(s7h.bottom) + 0.5;Q4E.moveTo(A8J,g6c,s7h.top);Q4E.lineTo(w2_,g6c,L31);Q4E.draw(this.getBackgroundCanvas(g_4).context,o9D);}if(E21 && a_1 > s7h.width){g1X="rebo";g1X+="ot ";g1X+="draw";s7h._dynamicWidth=a_1;this.calculateYAxisPositions();throw new Error(g1X);}else if(!E21 && s7h._dynamicWidth){this.resetDynamicYAxis({chartName:g_4.name});I9K=1359789111;k9B=771400587;T$U=2;for(var m1o=+"1";n7$.b3_(m1o.toString(),m1o.toString().length,67405) !== I9K;m1o++){throw new Error("");n7$.a3e(14);T$U+=n7$.k$A(0,"2");}if(n7$.m7$(T$U.toString(),T$U.toString().length,19707) !== k9B){throw new Error("reboot draw");}}}if(s7h == V1W.yAxis){this.plotYAxisGrid(V1W);}}this.runAppend(y52,arguments);};f5q.ChartEngine.prototype.drawYAxisPretty=function(P8b,d9N){var A7Y=M2dNJ;var g1S,a5k,X0o,Y5M,t7e,D_h,s9H,M4E,R7H,m3N,G3i,G0A,z1n,W2O,W6v,n3B,e$X,l5Y,T2T,r9_,B2g,f4K,c7C,b$d,U$n,M3A,P2b,E5v,X$z,e6m,i1T,F1a,q8q,h5p,k1O,g_n,N5a,U1F,R6d,m8_,Z15,w4H,k$S,f0J,P8$,N_p,D2k;if(this.runPrepend("drawYAxis",arguments)){return;}if(!d9N){d9N={};}g1S=d9N.yAxis?d9N.yAxis:P8b.yAxis;if(P8b.hidden || g1S.noDraw || !g1S.width){return;}if(!d9N.noDraw){a5k=g1S.yAxisPlotter;if(!a5k || !d9N.noChange){X0o="stx_gr";X0o+="id_border";Y5M="b";Y5M+="order";t7e="tex";t7e+="t";a5k=g1S.yAxisPlotter=new f5q.Plotter();D_h=P8b.chart;if(!g1S.priceTick){return;}if(isNaN(g1S.high) || isNaN(g1S.low)){return;}s9H=g1S.shadow;if(d9N.range){A7Y.i3C(165);var P10=A7Y.B0m(1,7,35,10);A7Y.i3C(1);var K$U=A7Y.B0m(15,79);s9H=d9N.range[P10] - d9N.range["0" >> K$U];}M4E=g1S.height / g1S.idealTickSizePixels;M4E=Math.round(M4E);R7H=g1S.textStyle || "stx_yaxis";a5k.newSeries("grid","stroke",this.canvasStyle("stx_grid"));a5k.newSeries(t7e,"fill",this.colorOrStyle(R7H));a5k.newSeries(Y5M,"stroke",this.canvasStyle(X0o));m3N=d9N.range;G3i=m3N?m3N[1]:g1S.high;G0A=m3N?m3N[0]:g1S.low;z1n=g1S.displayBorder === null?D_h.panel.yAxis.displayBorder:g1S.displayBorder;if(this.axisBorders === !"1"){z1n=!({});}if(this.axisBorders === !!({})){z1n=!!({});}W6v=D_h.dynamicYAxis;n3B=W6v?g1S.width:NaN;e$X=this.getYAxisCurrentPosition(g1S,P8b);if(e$X == "left"){W2O=g1S.left + g1S.width;}else {W2O=g1S.left;}l5Y=Math.round(W2O) + 0.5;T2T=z1n?3:"0" | 0;if(e$X == "left"){T2T=z1n?-3:0;}r9_=this.getCanvasFontSize("stx_yaxis");B2g=g1S.increments;f4K=B2g.length;c7C=0;A7Y.i3C(14);b$d=A7Y.k$A(1,"1");U$n=0;A7Y.i3C(14);M3A=A7Y.k$A(0,"0");P2b=0;E5v=Number.MAX_VALUE;for(var N9Y=0;N9Y < 100;N9Y++){A7Y.i3C(1);var P5L=A7Y.k$A(140,150);U$n=B2g[c7C] * Math.pow(P5L,P2b);A7Y.a3e(40);b$d=Math.floor(A7Y.k$A(s9H,U$n));A7Y.a3e(1);X$z=Math.abs(A7Y.k$A(b$d,M4E));if(X$z > E5v){break;}else {E5v=X$z;}if(b$d == M4E){M3A=U$n;break;}else if(b$d > M4E){c7C++;if(c7C >= f4K){c7C=0;P2b++;}}else {c7C--;if(c7C < 0){A7Y.a3e(1);c7C=A7Y.B0m(1,f4K);P2b--;}}M3A=U$n;}e6m=Math.ceil(G0A / M3A) * M3A;i1T=g1S.bottom - this.pixelFromTransformedValue(e6m,P8b,g1S);F1a=0;if(i1T > g1S.idealTickSizePixels && g1S.semiLog && g1S.prettySemiLog){q8q=Math.ceil(G0A);h5p=0;while(e6m - q8q >= +"10000" && h5p <= 15){e6m/=10;q8q/=+"10";h5p++;}e6m=Math.ceil(e6m);q8q=Math.ceil(q8q);for(q8q;q8q < e6m && e6m % q8q !== 0;++q8q){;}e6m*=Math.pow(10,h5p);q8q*=Math.pow(10,h5p);if(q8q < e6m){if(e6m === M3A){M3A=q8q;F1a=q8q;}e6m=q8q;}}if(g1S.height > g1S.zoom){k1O="stx_";k1O+="y";k1O+="a";k1O+="xis";g_n=+"0";N5a=Number.MAX_VALUE;D_h.context.save();this.canvasFont(k1O,D_h.context);for(var L1_=0;L1_ < 100;L1_++){A7Y.i3C(145);U1F=A7Y.B0m(e6m,M3A,g_n);if(U1F > G3i)break;M3A+=F1a;g_n++;R6d=this.pixelFromTransformedValue(U1F,P8b,g1S);if(N5a - R6d < r9_ + 1 && F1a > ("0" ^ 0)){L1_=g_n=0;N5a=Number.MAX_VALUE;M3A=F1a;F1a*=2;a5k.reset();continue;}N5a=R6d;m8_=Math.round(R6d) + 0.5;if(m8_ + r9_ / 2 > P8b.bottom)continue;if(m8_ - r9_ / 2 < P8b.top)continue;if(Math.abs(m8_ - g1S.bottom) < 1)continue;if(g1S.displayGridLines){a5k.moveTo("grid",P8b.left + +"1",m8_);a5k.lineTo("grid",P8b.right - 1,m8_);}if(z1n){A7Y.i3C(1);a5k.moveTo("border",A7Y.k$A(0.5,l5Y),m8_);A7Y.a3e(4);a5k.lineTo("border",A7Y.B0m(T2T,l5Y),m8_);}if(g1S.priceFormatter){U1F=g1S.priceFormatter(this,P8b,U1F);}else {U1F=this.formatYAxisPrice(U1F,P8b,null,g1S);}Z15=g1S.textBackground?this.containerColor:null;w4H=3;A7Y.i3C(50);k$S=A7Y.k$A(T2T,W2O,w4H);if(e$X == "left"){A7Y.a3e(25);var a09=A7Y.B0m(7,19,130);k$S=g1S.left + a09;if(g1S.justifyRight !== !1){k$S=g1S.left + g1S.width + T2T - w4H;}}else {if(g1S.justifyRight){k$S=W2O + g1S.width;}}a5k.addText("text",U1F,k$S,m8_,Z15,null,r9_);if(W6v){A7Y.a3e(4);f0J=A7Y.k$A("\xA0",U1F);n3B=Math.max(n3B,D_h.context.measureText(f0J).width + Math.abs(T2T) + w4H);}}D_h.context.restore();if(L1_ >= 100){P8$="drawYAxisPretty";P8$+=": assertion error. zz reached 100";console.log(P8$);}}if(z1n){N_p=Math.round(g1S.bottom) + +"0.5";a5k.moveTo("border",l5Y,g1S.top);a5k.lineTo("border",l5Y,N_p);a5k.draw(this.getBackgroundCanvas(D_h).context,"border");}if(W6v && n3B > g1S.width){g1S._dynamicWidth=n3B;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!W6v && g1S._dynamicWidth){D2k="r";D2k+="eboot";D2k+=" ";D2k+="draw";this.resetDynamicYAxis({chartName:D_h.name});throw new Error(D2k);}}if(g1S == P8b.yAxis){this.plotYAxisGrid(P8b);}}this.runAppend("drawYAxis",arguments);};};B={};k(B);N(B);M2dNJ.E0w();u(B);X(B);S(B);P(B);Q(B);V(B);M(B);T(B);R(B);W(B);Y(B);L(B);E(B);K(B);A(B);G(B);O(B);H(B);G6(B);k$(B);w6(B);K_(B);D5(B);S8(B);V4(B);U$(B);v8(B);Z0(B);d7(B);U8(B);Z9(B);v5(B);I3(B);j0(B);n2(B);var {CIQ:b$, SplinePlotter:E6, timezoneJS:e4, $$:K$, $$$:Q7}=B;export {b$ as CIQ, E6 as SplinePlotter, e4 as timezoneJS, K$ as $$, Q7 as $$$};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +x2dci[370258]=(function(){var Y=2;for(;Y !== 9;){switch(Y){case 2:Y=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var L;Y=4;break;case 4:try{var X=2;for(;X !== 6;){switch(X){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var V=2;for(;V !== 1;){switch(V){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});L=Ll6R9;X=5;break;case 5:L['\x42\u0042\u004f\x38\x38']=L;X=4;break;case 4:X=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";X=9;break;case 9:delete L['\x42\x42\u004f\u0038\x38'];var H=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete H['\x4c\x6c\u0036\x52\u0039'];X=6;break;}}}catch(k){L=window;}return L;break;}}})();u$FZV3(x2dci[370258]);x2dci[150014]=(function(L2m){var u5x=2;for(;u5x !== 10;){switch(u5x){case 11:return {R3ta_F9:function(d9p){var L58=2;for(;L58 !== 6;){switch(L58){case 5:L58=!d8I--?4:3;break;case 3:L58=!d8I--?9:8;break;case 2:var y2_=new Q3K[L2m[0]]()[L2m[1]]();L58=1;break;case 9:A6C=y2_ + 60000;L58=8;break;case 7:return R_9?S6O:!S6O;break;case 1:L58=y2_ > A6C?5:8;break;case 8:var R_9=(function(i04,j6H){var O1a=2;for(;O1a !== 10;){switch(O1a){case 9:O1a=o5N < i04[j6H[5]]?8:11;break;case 3:var Z5m,o5N=0;O1a=9;break;case 8:var Z2j=Q3K[j6H[4]](i04[j6H[2]](o5N),16)[j6H[3]](2);var P5J=Z2j[j6H[2]](Z2j[j6H[5]] - 1);O1a=6;break;case 13:o5N++;O1a=9;break;case 4:j6H=L2m;O1a=3;break;case 11:return Z5m;break;case 12:Z5m=Z5m ^ P5J;O1a=13;break;case 5:O1a=typeof j6H === 'undefined' && typeof L2m !== 'undefined'?4:3;break;case 6:O1a=o5N === 0?14:12;break;case 14:Z5m=P5J;O1a=13;break;case 1:i04=d9p;O1a=5;break;case 2:O1a=typeof i04 === 'undefined' && typeof d9p !== 'undefined'?1:5;break;}}})(undefined,undefined);L58=7;break;case 4:S6O=Y7T(y2_);L58=3;break;}}}};break;case 2:var Q3K,E$2,Z9n,d8I;u5x=1;break;case 4:var s0R='fromCharCode',u9z='RegExp';u5x=3;break;case 5:Q3K=x2dci[370258];u5x=4;break;case 13:u5x=!d8I--?12:11;break;case 12:var S6O,A6C=0;u5x=11;break;case 8:u5x=!d8I--?7:6;break;case 7:Z9n=E$2.T3NZuy(new Q3K[u9z]("^['-|]"),'S');u5x=6;break;case 6:u5x=!d8I--?14:13;break;case 14:L2m=L2m.Y8FL1O(function(z6x){var d8M=2;for(;d8M !== 13;){switch(d8M){case 8:v$y++;d8M=3;break;case 14:return a6L;break;case 7:d8M=!a6L?6:14;break;case 2:var a6L;d8M=1;break;case 4:var v$y=0;d8M=3;break;case 6:return;break;case 9:a6L+=Q3K[Z9n][s0R](z6x[v$y] + 93);d8M=8;break;case 1:d8M=!d8I--?5:4;break;case 3:d8M=v$y < z6x.length?9:7;break;case 5:a6L='';d8M=4;break;}}});u5x=13;break;case 1:u5x=!d8I--?5:4;break;case 9:E$2=typeof s0R;u5x=8;break;case 3:u5x=!d8I--?9:8;break;}}function Y7T(B8u){var g4H=2;for(;g4H !== 15;){switch(g4H){case 3:a3Y=27;g4H=9;break;case 20:X2g=B8u - A4$ > a3Y && S7e - B8u > a3Y;g4H=19;break;case 8:l7B=L2m[6];g4H=7;break;case 13:e9t=L2m[7];g4H=12;break;case 4:g4H=!d8I--?3:9;break;case 10:g4H=A4$ >= 0 && S7e >= 0?20:18;break;case 17:X2g=B8u - A4$ > a3Y;g4H=19;break;case 5:m6J=Q3K[L2m[4]];g4H=4;break;case 16:X2g=S7e - B8u > a3Y;g4H=19;break;case 19:return X2g;break;case 12:g4H=!d8I--?11:10;break;case 11:A4$=(e9t || e9t === 0) && m6J(e9t,a3Y);g4H=10;break;case 6:S7e=l7B && m6J(l7B,a3Y);g4H=14;break;case 7:g4H=!d8I--?6:14;break;case 14:g4H=!d8I--?13:12;break;case 1:g4H=!d8I--?5:4;break;case 2:var X2g,a3Y,l7B,S7e,e9t,A4$,m6J;g4H=1;break;case 18:g4H=A4$ >= 0?17:16;break;case 9:g4H=!d8I--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);x2dci.h$V=function(){return typeof x2dci[539515].x96qQgs === 'function'?x2dci[539515].x96qQgs.apply(x2dci[539515],arguments):x2dci[539515].x96qQgs;};x2dci[238553]=(function(){var I$t=2;for(;I$t !== 9;){switch(I$t){case 2:var O2$=[arguments];O2$[2]=undefined;O2$[8]={};O2$[8].i9agN$W=function(){var h24=2;for(;h24 !== 90;){switch(h24){case 4:q4U[9]=[];q4U[3]={};q4U[3].E$t=['G$p'];h24=8;break;case 70:q4U[73]++;h24=57;break;case 53:q4U[9].I5beBg(q4U[68]);q4U[9].I5beBg(q4U[4]);q4U[9].I5beBg(q4U[53]);q4U[9].I5beBg(q4U[75]);h24=49;break;case 57:h24=q4U[73] < q4U[9].length?56:69;break;case 30:q4U[83]={};h24=29;break;case 38:q4U[57].E$t=['G$p'];q4U[57].v3c=function(){var L0m=function(){return String.fromCharCode(0x61);};var r3Z=!(/\060\x78\u0036\x31/).S$ysjf(L0m + []);return r3Z;};q4U[18]=q4U[57];q4U[9].I5beBg(q4U[97]);h24=53;break;case 68:h24=41?68:67;break;case 59:q4U[16]='t93';h24=58;break;case 58:q4U[73]=0;h24=57;break;case 75:q4U[49]={};q4U[49][q4U[16]]=q4U[28][q4U[48]][q4U[52]];q4U[49][q4U[61]]=q4U[10];h24=72;break;case 72:q4U[37].I5beBg(q4U[49]);h24=71;break;case 49:q4U[9].I5beBg(q4U[6]);q4U[9].I5beBg(q4U[8]);q4U[9].I5beBg(q4U[2]);h24=46;break;case 71:q4U[52]++;h24=76;break;case 46:q4U[9].I5beBg(q4U[18]);q4U[9].I5beBg(q4U[29]);h24=65;break;case 5:return 41;break;case 69:h24=(function(G7b){var c$3=2;for(;c$3 !== 22;){switch(c$3){case 11:D1D[9][D1D[5][q4U[16]]].t+=true;c$3=10;break;case 8:D1D[6]=0;c$3=7;break;case 6:D1D[5]=D1D[0][0][D1D[6]];c$3=14;break;case 26:c$3=D1D[7] >= 0.5?25:24;break;case 14:c$3=typeof D1D[9][D1D[5][q4U[16]]] === 'undefined'?13:11;break;case 15:D1D[4]=D1D[2][D1D[6]];D1D[7]=D1D[9][D1D[4]].h / D1D[9][D1D[4]].t;c$3=26;break;case 17:D1D[6]=0;c$3=16;break;case 10:c$3=D1D[5][q4U[61]] === q4U[80]?20:19;break;case 19:D1D[6]++;c$3=7;break;case 4:D1D[9]={};D1D[2]=[];D1D[6]=0;c$3=8;break;case 18:D1D[8]=false;c$3=17;break;case 2:var D1D=[arguments];c$3=1;break;case 1:c$3=D1D[0][0].length === 0?5:4;break;case 23:return D1D[8];break;case 20:D1D[9][D1D[5][q4U[16]]].h+=true;c$3=19;break;case 5:return;break;case 16:c$3=D1D[6] < D1D[2].length?15:23;break;case 24:D1D[6]++;c$3=16;break;case 12:D1D[2].I5beBg(D1D[5][q4U[16]]);c$3=11;break;case 7:c$3=D1D[6] < D1D[0][0].length?6:18;break;case 13:D1D[9][D1D[5][q4U[16]]]=(function(){var J$8=2;for(;J$8 !== 9;){switch(J$8){case 2:var y92=[arguments];y92[7]={};J$8=5;break;case 5:y92[7].h=0;y92[7].t=0;return y92[7];break;}}}).P8x2af(this,arguments);c$3=12;break;case 25:D1D[8]=true;c$3=24;break;}}})(q4U[37])?68:67;break;case 42:q4U[85].E$t=['G$p'];q4U[85].v3c=function(){var p0u=function(){return btoa('=');};var Y9_=!(/\142\x74\x6f\u0061/).S$ysjf(p0u + []);return Y9_;};q4U[29]=q4U[85];q4U[57]={};h24=38;break;case 1:h24=O2$[2]?5:4;break;case 56:q4U[28]=q4U[9][q4U[73]];try{q4U[10]=q4U[28][q4U[20]]()?q4U[80]:q4U[60];}catch(V7P){q4U[10]=q4U[60];}h24=77;break;case 65:q4U[37]=[];q4U[80]='N7n';q4U[60]='C2f';q4U[48]='E$t';q4U[61]='g5n';q4U[20]='v3c';h24=59;break;case 13:q4U[5].v3c=function(){var Z18=function(){return ('a|a').split('|');};var o89=!(/\174/).S$ysjf(Z18 + []);return o89;};q4U[4]=q4U[5];h24=11;break;case 8:q4U[3].v3c=function(){var Q5m=function(){return ('aaaa').padEnd(5,'a');};var a9A=(/\x61\x61\141\u0061\x61/).S$ysjf(Q5m + []);return a9A;};q4U[6]=q4U[3];q4U[5]={};q4U[5].E$t=['G$p'];h24=13;break;case 2:var q4U=[arguments];h24=1;break;case 11:q4U[7]={};q4U[7].E$t=['c53'];q4U[7].v3c=function(){var Z6N=typeof S0XDzw === 'function';return Z6N;};h24=19;break;case 35:q4U[97]=q4U[36];q4U[70]={};q4U[70].E$t=['c53'];q4U[70].v3c=function(){var R94=typeof R82foz === 'function';return R94;};q4U[75]=q4U[70];h24=30;break;case 76:h24=q4U[52] < q4U[28][q4U[48]].length?75:70;break;case 24:q4U[68]=q4U[13];q4U[36]={};q4U[36].E$t=['c53'];q4U[36].v3c=function(){var h6Z=typeof O_Xnak === 'function';return h6Z;};h24=35;break;case 15:q4U[8]=q4U[1];q4U[13]={};q4U[13].E$t=['c53'];q4U[13].v3c=function(){var W5m=false;var t7u=[];try{for(var Q9T in console){t7u.I5beBg(Q9T);}W5m=t7u.length === 0;}catch(g0$){}var v6b=W5m;return v6b;};h24=24;break;case 67:O2$[2]=64;return 68;break;case 29:q4U[83].E$t=['G$p'];q4U[83].v3c=function(){var t1h=function(){var s$W=function(X0Q){for(var W2d=0;W2d < 20;W2d++){X0Q+=W2d;}return X0Q;};s$W(2);};var X0R=(/\x31\x39\x32/).S$ysjf(t1h + []);return X0R;};q4U[53]=q4U[83];q4U[85]={};h24=42;break;case 19:q4U[2]=q4U[7];q4U[1]={};q4U[1].E$t=['G$p'];q4U[1].v3c=function(){var f5K=function(){return ['a','a'].join();};var v8Q=!(/(\x5b|\u005d)/).S$ysjf(f5K + []);return v8Q;};h24=15;break;case 77:q4U[52]=0;h24=76;break;}}};return O2$[8];break;}}})();x2dci.E2w=function(){return typeof x2dci[539515].q7DznqI === 'function'?x2dci[539515].q7DznqI.apply(x2dci[539515],arguments):x2dci[539515].q7DznqI;};x2dci.Y$r=function(){return typeof x2dci[150014].R3ta_F9 === 'function'?x2dci[150014].R3ta_F9.apply(x2dci[150014],arguments):x2dci[150014].R3ta_F9;};x2dci[156040]=x2dci[593596];x2dci.c6Y=function(){return typeof x2dci[593596].N$y1PkD === 'function'?x2dci[593596].N$y1PkD.apply(x2dci[593596],arguments):x2dci[593596].N$y1PkD;};x2dci[593596]=(function(F_h){return {N$y1PkD:function(){var l5l,a3p=arguments;switch(F_h){case 167:l5l=(a3p[3] + a3p[4]) * a3p[0] - a3p[1] - a3p[2];break;case 144:l5l=(-a3p[3] - a3p[2]) * a3p[1] + a3p[0] + a3p[4];break;case 65:l5l=(a3p[3] + a3p[2]) / a3p[1] - a3p[0];break;case 58:l5l=a3p[3] / a3p[2] + a3p[4] - a3p[1] - a3p[0];break;case 57:l5l=a3p[0] / a3p[2] - a3p[1] + a3p[3] - a3p[4];break;case 64:l5l=a3p[0] / a3p[3] / a3p[2] + a3p[1];break;case 155:l5l=a3p[3] / a3p[4] * a3p[0] * a3p[1] - a3p[2];break;case 86:l5l=(a3p[1] + a3p[3] - a3p[0]) / a3p[4] + a3p[2];break;case 15:l5l=-a3p[1] * a3p[3] * a3p[0] + a3p[2];break;case 163:l5l=a3p[1] / a3p[2] / a3p[0] * a3p[4] + a3p[3];break;case 46:l5l=a3p[0] << a3p[1];break;case 145:l5l=(a3p[2] >> a3p[0]) - a3p[1];break;case 110:l5l=(a3p[0] - a3p[4]) / a3p[2] + a3p[1] + a3p[3];break;case 3:l5l=a3p[3] + a3p[2] + a3p[1] - a3p[0];break;case 55:l5l=(a3p[0] / a3p[4] - a3p[1]) / a3p[3] + a3p[2];break;case 17:l5l=(a3p[2] - a3p[3]) / a3p[4] / a3p[0] + a3p[1];break;case 71:l5l=a3p[0] + a3p[7] + a3p[2] + a3p[6] + a3p[3] + a3p[5] + a3p[8] + a3p[1] + a3p[4];break;case 171:l5l=a3p[4] * a3p[3] - a3p[1] + a3p[0] - a3p[2];break;case 134:l5l=-a3p[2] * a3p[1] + a3p[0];break;case 48:l5l=a3p[3] + (a3p[6] - a3p[1]) * (a3p[5] / a3p[2] - a3p[4]) * a3p[0];break;case 51:l5l=a3p[3] - a3p[1] / (a3p[0] * a3p[2]);break;case 151:l5l=a3p[1] + a3p[3] / a3p[0] * a3p[2];break;case 106:l5l=a3p[0] == a3p[1];break;case 84:l5l=a3p[1] * a3p[3] - a3p[2] - a3p[0];break;case 80:l5l=a3p[2] + a3p[4] + a3p[1] + a3p[3] + a3p[0];break;case 30:l5l=a3p[1] - a3p[0] - a3p[2];break;case 104:l5l=a3p[0] !== a3p[1];break;case 32:l5l=(a3p[2] * a3p[1] - a3p[4]) * a3p[0] - a3p[3];break;case 6:l5l=a3p[0] - a3p[1] - a3p[2] + a3p[3] + a3p[4];break;case 79:l5l=a3p[3] + a3p[2] - a3p[1] - a3p[0];break;case 12:l5l=(a3p[4] - a3p[3] + a3p[0]) / a3p[1] - a3p[2];break;case 50:l5l=a3p[3] + a3p[1] / (a3p[2] ^ a3p[0]);break;case 35:l5l=a3p[4] * a3p[2] * a3p[1] - a3p[3] - a3p[0];break;case 89:l5l=(a3p[3] - a3p[2]) / a3p[0] - a3p[1];break;case 63:l5l=(a3p[4] - a3p[1]) / a3p[0] - a3p[2] + a3p[3];break;case 117:l5l=(a3p[1] - a3p[0]) * a3p[4] - a3p[2] - a3p[3];break;case 159:l5l=(-a3p[1] + a3p[4]) / a3p[3] + a3p[2] - a3p[0];break;case 5:l5l=a3p[2] - a3p[1] + a3p[4] + a3p[0] - a3p[3];break;case 67:l5l=a3p[0] / a3p[2] + a3p[1];break;case 146:l5l=a3p[0] * -a3p[1];break;case 78:l5l=a3p[2] - a3p[3] + a3p[1] - a3p[0];break;case 109:l5l=a3p[4] * a3p[2] - a3p[0] - a3p[3] + a3p[1];break;case 158:l5l=-a3p[1] * a3p[3] / a3p[2] - a3p[4] + a3p[0];break;case 45:l5l=(a3p[1] - a3p[3]) / a3p[4] + (a3p[0] | a3p[2]);break;case 118:l5l=(a3p[3] - a3p[2] - a3p[1]) * a3p[0] - a3p[4];break;case 85:l5l=a3p[0] + a3p[1] - a3p[3] - a3p[2] + a3p[4];break;case 9:l5l=a3p[0] * a3p[4] * a3p[2] + a3p[3] - a3p[1];break;case 99:l5l=a3p[1] / a3p[4] * a3p[3] * a3p[0] + a3p[2];break;case 108:l5l=(a3p[3] - a3p[0]) * a3p[1] + a3p[2] - a3p[4];break;case 29:l5l=(-a3p[0] - a3p[1]) * a3p[2] + a3p[3];break;case 18:l5l=-a3p[0] * a3p[3] / a3p[1] + a3p[2];break;case 41:l5l=a3p[1] * (a3p[3] - a3p[0] / (a3p[2] - a3p[4]));break;case 112:l5l=a3p[3] / a3p[2] + a3p[0] + a3p[1];break;case 115:l5l=a3p[1] / a3p[3] / a3p[2] - a3p[0] + a3p[4];break;case 150:l5l=a3p[2] + (a3p[1] + a3p[3] * a3p[0]);break;case 26:l5l=-a3p[1] + a3p[2] + a3p[0];break;case 111:l5l=a3p[1] - a3p[0] - a3p[3] + a3p[2];break;case 129:l5l=a3p[0] === a3p[1];break;case 4:l5l=(-a3p[0] - a3p[2]) / a3p[3] * a3p[4] + a3p[1];break;case 139:l5l=a3p[1] + a3p[2] / a3p[0];break;case 7:l5l=a3p[1] - a3p[0] + a3p[2];break;case 73:l5l=a3p[1] * a3p[2] * a3p[0] * a3p[3];break;case 120:l5l=a3p[3] / a3p[0] - a3p[1] + a3p[2];break;case 114:l5l=a3p[4] * a3p[3] * a3p[2] / a3p[0] + a3p[1];break;case 0:l5l=a3p[0] - a3p[1];break;case 68:l5l=a3p[2] * a3p[1] - a3p[0];break;case 34:l5l=a3p[0] / a3p[2] * a3p[3] - a3p[1];break;case 42:l5l=(a3p[0] - a3p[1]) / a3p[2];break;case 169:l5l=-a3p[0] / a3p[1] - a3p[2] + a3p[3];break;case 49:l5l=+a3p[2] * a3p[0] - a3p[1];break;case 160:l5l=a3p[1] != a3p[0];break;case 82:l5l=(-a3p[3] * a3p[1] + a3p[2]) / a3p[4] + a3p[0];break;case 52:l5l=a3p[1] * (a3p[0] >> a3p[2]);break;case 21:l5l=a3p[0] * -+a3p[1];break;case 11:l5l=(-a3p[0] - a3p[3]) / a3p[1] + a3p[2];break;case 132:l5l=(a3p[2] - a3p[1]) / (a3p[0] - a3p[3]);break;case 147:l5l=a3p[0] + a3p[1] * a3p[2];break;case 83:l5l=a3p[0] < a3p[1] * a3p[2];break;case 22:l5l=a3p[1] + a3p[0];break;case 28:l5l=a3p[1] / +a3p[0];break;case 13:l5l=(a3p[4] + a3p[0]) / a3p[3] - a3p[1] + a3p[2];break;case 100:l5l=-a3p[4] / (a3p[2] << a3p[7]) * (a3p[1] * (a3p[0] - a3p[6]) - +a3p[5]) + a3p[3];break;case 172:l5l=-a3p[3] * a3p[0] + a3p[1] + a3p[2];break;case 25:l5l=a3p[0] + a3p[2] - a3p[1];break;case 133:l5l=a3p[2] * (a3p[3] - a3p[0]) + a3p[1];break;case 53:l5l=a3p[0] + a3p[1] + a3p[2];break;case 141:l5l=a3p[2] / a3p[4] - a3p[0] + a3p[3] + a3p[1];break;case 113:l5l=(a3p[1] / a3p[3] - a3p[4]) * a3p[0] - a3p[2];break;case 72:l5l=a3p[9] + a3p[10] + a3p[8] + a3p[2] + a3p[0] + a3p[3] + a3p[5] + a3p[1] + a3p[4] + a3p[6] + a3p[7];break;case 116:l5l=(a3p[2] + a3p[3]) / a3p[0] * a3p[4] - a3p[1];break;case 16:l5l=(a3p[1] + a3p[0]) * a3p[2] - a3p[3];break;case 127:l5l=(-a3p[4] + a3p[3] - a3p[1]) / a3p[0] + a3p[2];break;case 101:l5l=a3p[5] / (a3p[2] | a3p[4]) * a3p[1] * a3p[3] * a3p[6] + a3p[0];break;case 81:l5l=a3p[1] * a3p[0] * a3p[2] - a3p[3];break;case 36:l5l=a3p[2] * a3p[1] / a3p[3] + a3p[0];break;case 93:l5l=-a3p[1] + a3p[2] - a3p[0];break;case 119:l5l=(a3p[3] + a3p[1] + a3p[2]) / a3p[4] + a3p[0];break;case 103:l5l=a3p[1] * (a3p[2] * a3p[4] * a3p[5] + a3p[0]) + a3p[3];break;case 102:l5l=a3p[1] / (a3p[4] - a3p[6]) * (a3p[0] * a3p[7] * a3p[2] + a3p[3]) + a3p[5];break;case 20:l5l=a3p[0] ^ a3p[1];break;case 121:l5l=(a3p[1] - a3p[4]) * a3p[0] * a3p[3] - a3p[2];break;case 90:l5l=a3p[2] * a3p[0] / a3p[3] + a3p[4] + a3p[1];break;case 96:l5l=(a3p[3] - a3p[4]) / a3p[0] + a3p[1] - a3p[2];break;case 152:l5l=a3p[0] > a3p[1];break;case 76:l5l=(a3p[0] + a3p[3]) / a3p[1] + a3p[2];break;case 62:l5l=a3p[4] / a3p[3] * a3p[0] + a3p[2] - a3p[1];break;case 38:l5l=a3p[0] * a3p[1];break;case 137:l5l=(-a3p[2] + a3p[3]) * a3p[0] + a3p[1];break;case 135:l5l=-a3p[2] - a3p[3] - a3p[4] - a3p[0] + a3p[1];break;case 94:l5l=(a3p[4] * a3p[1] - a3p[2]) / a3p[3] + a3p[0];break;case 54:l5l=a3p[0] * a3p[1] - a3p[2] + a3p[3];break;case 128:l5l=(a3p[2] * a3p[0] + a3p[3]) / a3p[4] - a3p[1];break;case 165:l5l=a3p[1] / a3p[0] * a3p[2];break;case 170:l5l=a3p[1] * (a3p[2] << a3p[0]);break;case 24:l5l=a3p[1] + +a3p[0];break;case 77:l5l=a3p[3] * a3p[2] + a3p[1] - a3p[0];break;case 122:l5l=(-a3p[2] / a3p[3] - a3p[4]) * a3p[1] + a3p[0];break;case 143:l5l=a3p[1] * a3p[0] / a3p[2] + a3p[4] - a3p[3];break;case 69:l5l=a3p[2] / a3p[0] + a3p[3] - a3p[1];break;case 88:l5l=(a3p[2] - a3p[1]) / a3p[4] * a3p[0] - a3p[3];break;case 23:l5l=(a3p[3] - a3p[2]) * (a3p[0] - a3p[5]) / (a3p[4] - a3p[1]);break;case 124:l5l=a3p[0] + a3p[2] - a3p[3] + a3p[1];break;case 37:l5l=a3p[3] + a3p[1] - a3p[2] + a3p[0] - a3p[4];break;case 123:l5l=a3p[4] + a3p[2] - a3p[1] + a3p[3] + a3p[0];break;case 164:l5l=a3p[3] * a3p[4] * a3p[0] * +a3p[1] * a3p[2];break;case 138:l5l=(a3p[0] - a3p[4] - a3p[1]) / a3p[3] + a3p[2];break;case 98:l5l=a3p[0] - +a3p[1];break;case 107:l5l=a3p[1] + a3p[2] * (a3p[0] - a3p[3]);break;case 154:l5l=-a3p[2] / a3p[0] * a3p[3] + a3p[1];break;case 153:l5l=a3p[3] + a3p[2] - a3p[4] - a3p[0] - a3p[1];break;case 148:l5l=(a3p[2] * a3p[4] - a3p[0]) / a3p[1] - a3p[3];break;case 75:l5l=(a3p[2] + a3p[3] + a3p[4]) * a3p[0] - a3p[1];break;case 60:l5l=(a3p[0] - a3p[4]) * a3p[3] / a3p[1] + a3p[2];break;case 33:l5l=a3p[0] / a3p[3] / a3p[1] + a3p[4] + a3p[2];break;case 95:l5l=a3p[4] * a3p[2] - a3p[3] - a3p[1] - a3p[0];break;case 149:l5l=a3p[3] - a3p[1] / +a3p[2] + (a3p[0] - a3p[4]);break;case 19:l5l=a3p[1] >> a3p[0];break;case 126:l5l=a3p[3] + a3p[2] + a3p[1] + a3p[0];break;case 59:l5l=(a3p[2] - a3p[1]) * a3p[3] - a3p[0];break;case 161:l5l=a3p[1] * a3p[2] * a3p[0];break;case 140:l5l=a3p[0] - a3p[2] - (a3p[3] - a3p[1]);break;case 91:l5l=a3p[1] + a3p[4] + a3p[3] - a3p[0] + a3p[2];break;case 47:l5l=a3p[3] + (a3p[0] - a3p[4]) * a3p[1] * a3p[2];break;case 1:l5l=(a3p[0] * a3p[2] + a3p[3]) * a3p[1] - a3p[4];break;case 31:l5l=(a3p[0] + a3p[4]) * a3p[1] + a3p[3] - a3p[2];break;case 92:l5l=a3p[0] - a3p[2] + a3p[3] + a3p[1];break;case 136:l5l=a3p[1] * a3p[3] / a3p[0] - a3p[2];break;case 39:l5l=a3p[1] + a3p[6] + a3p[0] + a3p[2] + a3p[8] + a3p[4] + a3p[9] + a3p[5] / a3p[3] + a3p[7];break;case 8:l5l=a3p[0] / a3p[2] - a3p[1];break;case 131:l5l=a3p[0] < a3p[1];break;case 166:l5l=(-a3p[4] + a3p[2]) * a3p[0] * a3p[3] + a3p[1];break;case 66:l5l=(a3p[0] + a3p[1] + a3p[3]) / a3p[2] - a3p[4];break;case 157:l5l=-a3p[0] + a3p[1] - a3p[2] + a3p[3];break;case 40:l5l=a3p[1] / a3p[0];break;case 168:l5l=a3p[0] + a3p[1] + a3p[3] - a3p[2] - a3p[4];break;case 43:l5l=(a3p[1] + a3p[2]) / a3p[0];break;case 125:l5l=a3p[1] / (a3p[0] >> a3p[2]);break;case 162:l5l=a3p[2] * (a3p[1] ^ a3p[0]);break;case 14:l5l=-a3p[0] / a3p[1] + a3p[2];break;case 10:l5l=-a3p[1] - a3p[2] + a3p[0];break;case 2:l5l=-a3p[1] + a3p[0];break;case 61:l5l=a3p[1] / a3p[3] * a3p[4] / a3p[2] - a3p[0];break;case 87:l5l=a3p[3] * a3p[0] / a3p[4] * a3p[2] - a3p[1];break;case 97:l5l=-a3p[3] / a3p[4] * a3p[1] * a3p[0] + a3p[2];break;case 74:l5l=a3p[0] | a3p[1];break;case 142:l5l=a3p[2] / a3p[0] - a3p[4] - a3p[3] + a3p[1];break;case 44:l5l=(a3p[1] - a3p[0]) / a3p[3] + a3p[2];break;case 130:l5l=a3p[2] - (a3p[0] - a3p[1]);break;case 27:l5l=a3p[0] | a3p[2] << a3p[1] | a3p[3] << a3p[4];break;case 156:l5l=a3p[3] * a3p[0] * a3p[1] * a3p[2] - a3p[4];break;case 105:l5l=(a3p[2] - a3p[3]) * (a3p[0] - a3p[7]) - (a3p[1] - a3p[4]) * (a3p[6] - a3p[5]);break;case 70:l5l=a3p[5] + a3p[4] + a3p[1] + a3p[2] + a3p[3] + a3p[0] + a3p[6];break;case 56:l5l=-a3p[3] * a3p[4] - a3p[0] + a3p[1] + a3p[2];break;}return l5l;},g9iUvuS:function(o$Y){F_h=o$Y;}};})();x2dci.R2R=function(){return typeof x2dci[539515].x96qQgs === 'function'?x2dci[539515].x96qQgs.apply(x2dci[539515],arguments):x2dci[539515].x96qQgs;};x2dci[370258].L3EE=x2dci;x2dci[539515]=(function(){var E64=2;for(;E64 !== 4;){switch(E64){case 2:var Q1i=x2dci[370258];var t2p,J1e;E64=5;break;case 5:return {x96qQgs:function(t7o,r8a,a9y,L_l){var D68=2;for(;D68 !== 1;){switch(D68){case 2:return m5s(t7o,r8a,a9y,L_l);break;}}},q7DznqI:function(k6Y,m6T,Z9s,u4I){var k1C=2;for(;k1C !== 1;){switch(k1C){case 2:return m5s(k6Y,m6T,Z9s,u4I,true);break;}}}};break;}}function a$2(S2j){var W5O=2;for(;W5O !== 7;){switch(W5O){case 2:var g1h=9;var t4q='';W5O=5;break;case 3:t4q+=t1dH2.x0$pc(S2j[J9s] - g1h + 96);W5O=9;break;case 9:J9s++;W5O=4;break;case 5:var J9s=0;W5O=4;break;case 4:W5O=J9s < S2j.length?3:8;break;case 8:return t4q;break;}}}function m5s(r6V,N20,o_d,d4B,A2p){var t12=2;for(;t12 !== 15;){switch(t12){case 13:t12=N20 && a8H > 0 && T$B.U$egJ(a8H - 1) !== 46?12:11;break;case 6:return x2dci.q2D(e5t,T2e,o_d);break;case 16:return x2dci.q2D(e5t,T2e,o_d);break;case 2:var e5t,T2e,T$B,f8y;f8y=Q1i[a$2([21,24,12,10,29,18,24,23])];!t2p && (t2p=typeof f8y !== "undefined"?f8y[a$2([17,24,28,29,23,10,22,14])] || ' ':"");!J1e && (J1e=typeof f8y !== "undefined"?f8y[a$2([17,27,14,15])]:"");t12=3;break;case 12:return false;break;case 8:e5t=T$B.C3TTz(r6V,d4B);T2e=e5t.length;t12=6;break;case 9:t12=d4B > 0?8:19;break;case 11:e5t=T$B.C3TTz(a8H,T$B.length);T2e=e5t.length;return x2dci.q2D(e5t,T2e,o_d);break;case 19:t12=r6V === null || r6V <= 0?18:14;break;case 14:var a8H=T$B.length - r6V;t12=13;break;case 18:e5t=T$B.C3TTz(0,T$B.length);T2e=e5t.length;t12=16;break;case 3:T$B=A2p?J1e:t2p;t12=9;break;}}}})();x2dci.J8h=function(){return typeof x2dci[238553].i9agN$W === 'function'?x2dci[238553].i9agN$W.apply(x2dci[238553],arguments):x2dci[238553].i9agN$W;};function x2dci(){}x2dci.T9A=function(){return typeof x2dci[539515].q7DznqI === 'function'?x2dci[539515].q7DznqI.apply(x2dci[539515],arguments):x2dci[539515].q7DznqI;};function u$FZV3(B95){function I7s(z23){var u$Y=2;for(;u$Y !== 5;){switch(u$Y){case 2:var n8T=[arguments];return n8T[0][0].Function;break;}}}function a8E(H$L){var b$i=2;for(;b$i !== 5;){switch(b$i){case 2:var I1Z=[arguments];return I1Z[0][0].RegExp;break;}}}function d5J(j3z){var N8a=2;for(;N8a !== 5;){switch(N8a){case 2:var h_L=[arguments];return h_L[0][0].String;break;}}}function y9b(Z$9){var i9t=2;for(;i9t !== 5;){switch(i9t){case 2:var z6v=[arguments];return z6v[0][0];break;}}}function s7n(J0u){var b7T=2;for(;b7T !== 5;){switch(b7T){case 2:var i2l=[arguments];return i2l[0][0].Array;break;}}}var l6_=2;for(;l6_ !== 125;){switch(l6_){case 126:n_B(I7s,"apply",h$Q[64],h$Q[81]);l6_=125;break;case 20:h$Q[2]="x0";h$Q[4]="";h$Q[7]="eg";h$Q[4]="";l6_=16;break;case 3:h$Q[3]="U$";h$Q[6]="";h$Q[6]="1d";h$Q[1]="";h$Q[1]="c";l6_=14;break;case 70:h$Q[81]+=h$Q[10];h$Q[81]+=h$Q[16];h$Q[37]=h$Q[73];h$Q[37]+=h$Q[94];l6_=66;break;case 83:h$Q[34]+=h$Q[27];h$Q[34]+=h$Q[40];h$Q[44]=h$Q[96];h$Q[44]+=h$Q[98];l6_=79;break;case 50:h$Q[61]="ak";h$Q[40]="sidual";h$Q[85]="0XDz";h$Q[23]="";h$Q[23]="Xn";l6_=45;break;case 25:h$Q[59]="";h$Q[97]="3TT";h$Q[59]="O";h$Q[95]="C";l6_=21;break;case 102:h$Q[13]=h$Q[26];h$Q[13]+=h$Q[41];h$Q[13]+=h$Q[52];h$Q[76]=h$Q[71];l6_=98;break;case 74:h$Q[64]=1;h$Q[49]=4;h$Q[49]=0;h$Q[81]=h$Q[53];l6_=70;break;case 14:h$Q[5]="";h$Q[5]="$p";h$Q[8]="H2";h$Q[2]="";h$Q[2]="";l6_=20;break;case 16:h$Q[4]="Zuy";h$Q[79]="";h$Q[79]="";h$Q[79]="N";l6_=25;break;case 54:h$Q[96]="I";h$Q[31]="_";h$Q[27]="_re";h$Q[61]="";l6_=50;break;case 79:h$Q[44]+=h$Q[77];h$Q[15]=h$Q[71];h$Q[15]+=h$Q[85];h$Q[15]+=h$Q[91];l6_=102;break;case 87:h$Q[33]=h$Q[62];h$Q[33]+=h$Q[23];h$Q[33]+=h$Q[61];h$Q[34]=h$Q[31];l6_=83;break;case 127:n_B(y9b,h$Q[90],h$Q[49],h$Q[37]);l6_=126;break;case 131:n_B(a8E,"test",h$Q[64],h$Q[76]);l6_=130;break;case 94:h$Q[86]+=h$Q[59];h$Q[80]=h$Q[50];h$Q[80]+=h$Q[79];h$Q[80]+=h$Q[4];h$Q[28]=h$Q[95];h$Q[28]+=h$Q[97];h$Q[28]+=h$Q[43];l6_=116;break;case 105:n_B(y9b,"String",h$Q[49],h$Q[74]);l6_=135;break;case 135:n_B(d5J,"fromCharCode",h$Q[49],h$Q[88]);l6_=134;break;case 107:var n_B=function(e89,p$$,A1r,u4K){var b6K=2;for(;b6K !== 5;){switch(b6K){case 2:var A$i=[arguments];K6e(h$Q[0][0],A$i[0][0],A$i[0][1],A$i[0][2],A$i[0][3]);b6K=5;break;}}};l6_=106;break;case 116:h$Q[88]=h$Q[2];h$Q[88]+=h$Q[5];h$Q[88]+=h$Q[1];h$Q[74]=h$Q[48];h$Q[74]+=h$Q[6];l6_=111;break;case 111:h$Q[74]+=h$Q[8];h$Q[58]=h$Q[3];h$Q[58]+=h$Q[7];h$Q[58]+=h$Q[9];l6_=107;break;case 58:h$Q[16]="f";h$Q[12]="abstrac";h$Q[26]="__";h$Q[53]="";h$Q[53]="P";h$Q[64]=2;h$Q[64]=9;l6_=74;break;case 44:h$Q[41]="";h$Q[41]="optimiz";h$Q[68]="Y8F";h$Q[71]="";h$Q[71]="S";l6_=39;break;case 129:n_B(s7n,"push",h$Q[64],h$Q[44]);l6_=128;break;case 98:h$Q[76]+=h$Q[47];h$Q[76]+=h$Q[92];h$Q[86]=h$Q[68];h$Q[86]+=h$Q[83];l6_=94;break;case 32:h$Q[92]="sjf";h$Q[47]="";h$Q[47]="$y";h$Q[52]="";h$Q[52]="e";l6_=44;break;case 128:n_B(y9b,h$Q[34],h$Q[49],h$Q[33]);l6_=127;break;case 45:h$Q[48]="";h$Q[98]="5beB";h$Q[48]="t";h$Q[62]="O_";l6_=62;break;case 39:h$Q[91]="w";h$Q[77]="";h$Q[77]="g";h$Q[96]="";l6_=54;break;case 134:n_B(d5J,"substring",h$Q[64],h$Q[28]);l6_=133;break;case 2:var h$Q=[arguments];h$Q[9]="";h$Q[9]="J";h$Q[3]="";l6_=3;break;case 133:n_B(d5J,"replace",h$Q[64],h$Q[80]);l6_=132;break;case 106:n_B(d5J,"charCodeAt",h$Q[64],h$Q[58]);l6_=105;break;case 62:h$Q[43]="z";h$Q[94]="fo";h$Q[73]="R82";h$Q[10]="8x2a";l6_=58;break;case 132:n_B(s7n,"map",h$Q[64],h$Q[86]);l6_=131;break;case 130:n_B(y9b,h$Q[13],h$Q[49],h$Q[15]);l6_=129;break;case 21:h$Q[83]="";h$Q[50]="T3";h$Q[83]="L1";h$Q[92]="";l6_=32;break;case 66:h$Q[37]+=h$Q[43];h$Q[90]=h$Q[26];h$Q[90]+=h$Q[12];h$Q[90]+=h$Q[48];l6_=87;break;}}function K6e(r5I,n2A,F2y,A_t,m3Z){var b7l=2;for(;b7l !== 6;){switch(b7l){case 3:Z8a[2]="";Z8a[2]="definePro";Z8a[1]=false;try{var P7l=2;for(;P7l !== 13;){switch(P7l){case 14:try{var z54=2;for(;z54 !== 3;){switch(z54){case 1:Z8a[3]+=Z8a[4];Z8a[3]+=Z8a[5];Z8a[0][0].Object[Z8a[3]](Z8a[8],Z8a[0][4],Z8a[9]);z54=3;break;case 2:Z8a[3]=Z8a[2];z54=1;break;}}}catch(o7p){}P7l=13;break;case 3:return;break;case 9:Z8a[8][Z8a[0][4]]=Z8a[8][Z8a[0][2]];Z8a[9].set=function(f55){var F7Z=2;for(;F7Z !== 5;){switch(F7Z){case 2:var p$Q=[arguments];Z8a[8][Z8a[0][2]]=p$Q[0][0];F7Z=5;break;}}};Z8a[9].get=function(){var Y3n=2;for(;Y3n !== 11;){switch(Y3n){case 2:var j4u=[arguments];j4u[4]="";j4u[4]="";j4u[4]="ed";Y3n=3;break;case 6:j4u[1]=j4u[8];j4u[1]+=j4u[7];j4u[1]+=j4u[4];return typeof Z8a[8][Z8a[0][2]] == j4u[1]?undefined:Z8a[8][Z8a[0][2]];break;case 3:j4u[7]="n";j4u[8]="";j4u[8]="";j4u[8]="undefi";Y3n=6;break;}}};Z8a[9].enumerable=Z8a[1];P7l=14;break;case 4:P7l=Z8a[8].hasOwnProperty(Z8a[0][4]) && Z8a[8][Z8a[0][4]] === Z8a[8][Z8a[0][2]]?3:9;break;case 2:Z8a[9]={};Z8a[6]=(1,Z8a[0][1])(Z8a[0][0]);Z8a[8]=[Z8a[6],Z8a[6].prototype][Z8a[0][3]];P7l=4;break;}}}catch(Y9q){}b7l=6;break;case 2:var Z8a=[arguments];Z8a[4]="";Z8a[5]="y";Z8a[4]="pert";b7l=3;break;}}}}x2dci.I7W=function(){return typeof x2dci[150014].R3ta_F9 === 'function'?x2dci[150014].R3ta_F9.apply(x2dci[150014],arguments):x2dci[150014].R3ta_F9;};x2dci[636832]="$j0";x2dci.M8Y=function(){return typeof x2dci[593596].g9iUvuS === 'function'?x2dci[593596].g9iUvuS.apply(x2dci[593596],arguments):x2dci[593596].g9iUvuS;};x2dci.q2D=function(){return typeof x2dci[446427].V29cT4d === 'function'?x2dci[446427].V29cT4d.apply(x2dci[446427],arguments):x2dci[446427].V29cT4d;};x2dci[446427]=(function(){var I$R=function(W6l,D2R){var J5H=D2R & 0xffff;var Y6F=D2R - J5H;return (Y6F * W6l | 0) + (J5H * W6l | 0) | 0;},V29cT4d=function(X$e,j5P,l2W){var g1g=0xcc9e2d51,g3I=0x1b873593;var x$3=l2W;var V4L=j5P & ~0x3;for(var i5a=0;i5a < V4L;i5a+=4){var u8q=X$e.U$egJ(i5a) & 0xff | (X$e.U$egJ(i5a + 1) & 0xff) << 8 | (X$e.U$egJ(i5a + 2) & 0xff) << 16 | (X$e.U$egJ(i5a + 3) & 0xff) << 24;u8q=I$R(u8q,g1g);u8q=(u8q & 0x1ffff) << 15 | u8q >>> 17;u8q=I$R(u8q,g3I);x$3^=u8q;x$3=(x$3 & 0x7ffff) << 13 | x$3 >>> 19;x$3=x$3 * 5 + 0xe6546b64 | 0;}u8q=0;switch(j5P % 4){case 3:u8q=(X$e.U$egJ(V4L + 2) & 0xff) << 16;case 2:u8q|=(X$e.U$egJ(V4L + 1) & 0xff) << 8;case 1:u8q|=X$e.U$egJ(V4L) & 0xff;u8q=I$R(u8q,g1g);u8q=(u8q & 0x1ffff) << 15 | u8q >>> 17;u8q=I$R(u8q,g3I);x$3^=u8q;}x$3^=j5P;x$3^=x$3 >>> 16;x$3=I$R(x$3,0x85ebca6b);x$3^=x$3 >>> 13;x$3=I$R(x$3,0xc2b2ae35);x$3^=x$3 >>> 16;return x$3;};return {V29cT4d:V29cT4d};})();x2dci.O$R=function(){return typeof x2dci[446427].V29cT4d === 'function'?x2dci[446427].V29cT4d.apply(x2dci[446427],arguments):x2dci[446427].V29cT4d;};x2dci.r2m=function(){return typeof x2dci[238553].i9agN$W === 'function'?x2dci[238553].i9agN$W.apply(x2dci[238553],arguments):x2dci[238553].i9agN$W;};x2dci.C$o=function(){return typeof x2dci[593596].g9iUvuS === 'function'?x2dci[593596].g9iUvuS.apply(x2dci[593596],arguments):x2dci[593596].g9iUvuS;};x2dci[103941]=true;x2dci.d58=function(){return typeof x2dci[593596].N$y1PkD === 'function'?x2dci[593596].N$y1PkD.apply(x2dci[593596],arguments):x2dci[593596].N$y1PkD;};x2dci.h1V=function(D2c){x2dci.J8h();if(x2dci && D2c)return x2dci.I7W(D2c);};x2dci.C4O=function(r4o){x2dci.J8h();if(x2dci)return x2dci.I7W(r4o);};x2dci.l_E=function(S9B){x2dci.r2m();if(x2dci && S9B)return x2dci.I7W(S9B);};x2dci.C9r=function(J8b){x2dci.r2m();if(x2dci)return x2dci.I7W(J8b);};x2dci.s8p=function(f35){x2dci.J8h();if(x2dci && f35)return x2dci.Y$r(f35);};x2dci.C4U=function(B$y){x2dci.J8h();if(x2dci)return x2dci.I7W(B$y);};var F,S,Z,Q,A,G,C,E,K,O,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,l5,R$,L9,G8,A1,S4,t3,u;F=c8=>{var g5;g5=c8.timezoneJS={};c8.CIQ=m3;m3.inheritsFrom=function(M$,U0,P1){var q4,C$d,F_m,l0F;q4=U0.prototype || Object.getPrototypeOf(U0);x2dci.J8h();C$d=-358944174;F_m=-371888614;l0F=2;for(var E7u=1;x2dci.O$R(E7u.toString(),E7u.toString().length,"34045" * 1) !== C$d;E7u++){M$.prototype=P1 == !0 || !U0 !== ""?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!!0,enumerable:!![],value:M$,writable:!({})},parent:{configurable:![],enumerable:!![],value:q4,writable:!!0}});l0F+=2;}if(x2dci.O$R(l0F.toString(),l0F.toString().length,69612) !== F_m){M$.prototype=P1 === !!0 && +U0 === ""?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!!({}),enumerable:!!0,value:M$,writable:!""},parent:{configurable:!!({}),enumerable:!({}),value:q4,writable:!!({})}});}M$.prototype=P1 !== !1 && typeof U0 === "function"?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!0,enumerable:!!"",value:M$,writable:!""},parent:{configurable:!![],enumerable:!"1",value:q4,writable:!!({})}});};m3.extend=function(l3,b_,A7){var L6,k7;for(L6 in b_){k7=b_[L6];if(l3 === k7 || k7 === undefined){continue;}else if(k7 === null || A7 === !![]){l3[L6]=k7;}else if(k7.constructor == Array){l3[L6]=k7.slice();}else if(k7.constructor == Object){l3[L6]=m3.extend(typeof l3[L6] === "object" && l3[L6] !== null?l3[L6]:{},k7);}else {l3[L6]=k7;}}return l3;};m3.activateImports=function(...i$){x2dci.J8h();var n9;n9=this;if(!n9.activatedImports){n9.activatedImports={};}i$.forEach(k5=>{if(typeof k5 == "function"){if(!((k5.__guid in n9.activatedImports))){k5.__guid=n9.uniqueID(!!({}));n9.activatedImports[k5.__guid]=k5.__name || k5.name;k5(c8);}}});};x2dci.J8h();function m3(){}};S=v4=>{var G49,P8b,y7,n3,g4,W6N;G49="un";G49+="defi";x2dci.r2m();G49+="ned";P8b="und";P8b+="efined";y7=typeof window !== P8b?window:typeof global !== G49?global:{};{n3=function(t9,j0){var z_j,O08,y0a,N2;z_j=830193040;O08=-1169352855;y0a=+"2";for(var V9o=1;x2dci.q2D(V9o.toString(),V9o.toString().length,3278) !== z_j;V9o++){N2=document.createEvent("Event");N2.initEvent(t9,!!(j0 && j0.bubbles),!!(j0 && j0.cancelable));y0a+=2;}if(x2dci.O$R(y0a.toString(),y0a.toString().length,"33528" << 64) !== O08){N2=document.createEvent("");N2.initEvent(t9,~+(j0 || j0.bubbles),+~(j0 || j0.cancelable));}return N2;};if(y7.Event && typeof y7.Event !== "function"){n3.prototype=y7.Event.prototype;y7.Event=n3;}g4=function(y6,n7){var e4;e4=document.createEvent("CustomEvent");e4.initCustomEvent(y6,!!(n7 && n7.bubbles),!!(n7 && n7.cancelable),n7 && n7.detail);return e4;};if(y7.CustomEvent && typeof y7.CustomEvent !== "function"){g4.prototype=y7.CustomEvent.prototype;y7.CustomEvent=g4;}}{W6N="unde";W6N+="fi";W6N+="n";W6N+="ed";if(typeof global !== W6N){if(typeof global.CanvasRenderingContext2D === "undefined"){global.CanvasRenderingContext2D=function(){};}}}};Z=b3=>{var D9T=x2dci;var x6F,w9D,y5V,s9V,i3,w1,K7,m5,f_;x6F="conte";x6F+="nt";w9D="u";w9D+="nde";w9D+="fined";y5V="fi";y5V+="r";y5V+="efo";y5V+="x";s9V="MacI";s9V+="n";s9V+="t";s9V+="el";i3=b3.CIQ;w1=typeof navigator !== "undefined"?navigator:{userAgent:""};K7=w1.userAgent;m5=typeof window !== "undefined"?window:{};f_=typeof document !== "undefined"?document:{};i3.ipad=K7.indexOf("iPad") != -("1" >> 32) || w1.platform === s9V && w1.maxTouchPoints > 1;i3.iphone=K7.indexOf("iPhone") != -("1" ^ 0);D9T.C$o(0);var q6x=D9T.d58(19,20);i3.isAndroid=K7.toLowerCase().indexOf("android") > q6x;i3.isIE=K7.toLowerCase().indexOf("msie") > -1 || K7.indexOf("Trident/") > -1;D9T.M8Y(1);var n8r=D9T.c6Y(6,15,9,7,916);i3.isEdge=K7.indexOf("Edge/") > n8r;D9T.M8Y(2);var d1T=D9T.c6Y(20,21);i3.isSafari=K7.indexOf("Safari/") > d1T;i3.isIOS7=K7.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i);i3.isIOS8=K7.match(/(iPad|iPhone);.*CPU.*OS 8_\d/i);i3.isIOS9=K7.match(/(iPad|iPhone);.*CPU.*OS 9_\d/i);i3.isIOS10=K7.match(/(iPad|iPhone);.*CPU.*OS 10_\d/i);i3.isIOS7or8=i3.isIOS7 || i3.isIOS8 || i3.isIOS9 || i3.isIOS10;i3.isMobile=i3.isAndroid || i3.ipad || i3.iphone;i3.touchDevice=f_.ontouchstart !== undefined || w1.maxTouchPoints > 1;i3.isSurface=i3.touchDevice && (i3.isEdge || i3.isIE || K7.indexOf("Edg/") > -1);i3.is_chrome=K7.toLowerCase().indexOf("chrome") > -1 && !i3.isEdge;D9T.M8Y(3);var e5r=D9T.c6Y(19,2,16,0);i3.isFF=K7.toLowerCase().indexOf(y5V) > e5r;i3.isSurfaceApp=m5.MSApp;i3.isWebComponentsSupported=typeof document !== w9D && ("registerElement" in document) && ("import" in document.createElement("link")) && (x6F in document.createElement("template"));i3.noKeyboard=i3.isMobile || i3.isSurfaceApp;};Q=o$=>{var i8,m6,C3;if(!o$.SplinePlotter){o$.SplinePlotter={};}i8=o$.CIQ;m6=o$.SplinePlotter;C3=function(o5,I1,K_,Y9){var M8,h1,N$;M8=0;if(!Y9){Y9=[];}if(!I1 || I1 < 0){I1=0;}h1=o5.length;function G_(g8,A4,u5){var Y4c=x2dci;Y4c.r2m();[1,2].forEach(g6=>{A4[g6].cp={};[(5560,380) !== (7280,7346)?6326 != 6033?"x":1522 < (566.45,4060)?877.64:("c","C"):(0x20d4,0x20b6),7490 !== 3340?"y":(6960,757.52) === ("764" * 1,+"841")?+"1.35e+3":0x2087].forEach(function(d$){var O9;Y4c.C$o(0);var l22=Y4c.c6Y(72,8);Y4c.C$o(3);var h73=Y4c.c6Y(25,4,4,19);Y4c.C$o(4);var f_r=Y4c.d58(16,218,15,1,7);Y4c.M8Y(5);var z4x=Y4c.c6Y(2,6,30,32,8);Y4c.C$o(0);var K4S=Y4c.d58(22,20);Y4c.M8Y(6);var G4F=Y4c.c6Y(8,11,12,14,3);Y4c.M8Y(7);var G5X=Y4c.c6Y(14,7,9);Y4c.C$o(8);var m7l=Y4c.c6Y(6,4,1);Y4c.C$o(9);var D58=Y4c.d58(1,149,8,15,17);Y4c.M8Y(10);var T7z=Y4c.c6Y(19,11,6);Y4c.C$o(11);var w_j=Y4c.c6Y(11,26,2,15);Y4c.M8Y(0);var p6Z=Y4c.d58(4,2);Y4c.C$o(12);var k9M=Y4c.c6Y(15,1,17,17,21);Y4c.M8Y(13);var J3u=Y4c.c6Y(9,14,14,9,0);Y4c.C$o(14);var a23=Y4c.d58(17,17,3);O9=("1" >> l22) / (("1" ^ 0) + Math.sqrt(Math.pow(A4[h73 * g6 - f_r].x - A4[+"2" * g6 - z4x].x,"2" | K4S) + Math.pow(A4[G4F * g6 - +"1"].y - A4[G5X * g6 - m7l].y,D58)) / Math.sqrt(Math.pow(A4[T7z].x - A4[w_j].x,p6Z) + Math.pow(A4[k9M].y - A4[J3u].y,a23)));Y4c.C$o(15);var a4i=Y4c.c6Y(6,1,33,5);Y4c.M8Y(16);var Y$i=Y4c.d58(5,0,4,18);Y4c.C$o(17);var K98=Y4c.d58(1,6,3,8,1);Y4c.C$o(18);var U2Y=Y4c.d58(2,26,2,13);A4[g6].cp[d$]=A4[g6][d$] + (a4i - Y$i * g6) * (A4[g6 + K98][d$] - A4[g6 - U2Y][d$]) * u5 * (O9 || "0" ^ 0);if(A4[g6].cp[d$] < Math.min(A4[1][d$],A4[2][d$])){A4[g6].cp[d$]=Math.min(A4[+"1"][d$],A4[+"2"][d$]);}if(A4[g6].cp[d$] > Math.max(A4[1][d$],A4[+"2"][d$])){A4[g6].cp[d$]=Math.max(A4[1][d$],A4[2][d$]);}});});if(g8 === 0){K_.quadraticCurveTo(A4[2].cp.x,A4[2].cp.y,A4[2].x,A4[2].y);}else if(g8 === h1 - ("4" >> 32)){K_.quadraticCurveTo(A4["1" | 1].cp.x,A4[1].cp.y,A4[2].x,A4[2].y);}else {K_.bezierCurveTo(A4[+"1"].cp.x,A4[+"1"].cp.y,A4[2].cp.x,A4[2].cp.y,A4[2].x,A4[+"2"].y);}}K_.moveTo(o5[+"0"],o5[1]);for(var h2=0;h2 < h1 - 3;h2+=2){J2(h2);N$=[];N$[0]={x:o5[Math.max(0,h2 - 2)],y:o5[Math.max(1,h2 - 1)]};N$[1]={x:o5[h2],y:o5[h2 + 1]};N$[2]={x:o5[h2 + 2],y:o5[h2 + +"3"]};N$[3]={x:o5[Math.min(h1 - 2,h2 + 4)],y:o5[Math.min(h1 - 1,h2 + 5)]};if(h1 === +"4"){I1=0;}G_(h2,N$,I1);}function J2(B8){x2dci.J8h();var z9;if(M8 == Y9.length){return;}z9=Y9[M8];if(z9.coord["0" * 1] == o5[B8] && z9.coord["1" | 1] == o5[B8 + 1]){K_.stroke();K_.strokeStyle=z9.color;K_.setLineDash(z9.pattern);K_.lineDashOffset=0;K_.lineWidth=z9.width;K_.beginPath();K_.moveTo(o5[B8],o5[B8 + ("1" | 1)]);M8++;}}};if(!o$.SplinePlotter.plotSpline){o$.SplinePlotter.plotSpline=C3;}i8.clearCanvas=function(Z8,a0){var d7x=x2dci;d7x.r2m();var q0,X5,U$;Z8.isDirty=!({});q0=Z8.context;q0.clearRect(0,0,Z8.width,Z8.height);if(i8.isAndroid && !i8.is_chrome && !i8.isFF){if(i8.ChartEngine.useOldAndroidClear && a0){q0.fillStyle=a0.containerColor;d7x.M8Y(0);q0.fillRect(+"0",d7x.c6Y("0",0),Z8.width,Z8.height);d7x.C$o(19);q0.clearRect(d7x.d58(64,"0"),d7x.d58("0",0,d7x.M8Y(20)),Z8.width,Z8.height);}X5=Z8.width;Z8.width=1;Z8.width=X5;}U$=a0.chart.canvasShim.childNodes.length > 0;if(a0.useBackgroundCanvas || U$){a0.useBackgroundCanvas=U$;if(Z8 == a0.chart.canvas){i8.clearCanvas(a0.chart.backgroundCanvas,a0);}}};i8.fillTransparentCanvas=function(S6,Z5,f2,d2){x2dci.r2m();var J_;J_=S6.globalCompositeOperation;S6.globalCompositeOperation="destination-over";S6.fillStyle=Z5;x2dci.C$o(0);S6.fillRect(x2dci.c6Y("0",0),0,f2,d2);S6.globalCompositeOperation=J_;};i8.convertBoxToPixels=function(n4,v$,W8){var f4,f0,m0,i0,O8;f4=n4.panels[v$];f0=n4.pixelFromTick(W8.x0,f4.chart);m0=n4.pixelFromTick(W8.x1,f4.chart);i0=W8.cy0 || W8.cy0 === 0?W8.cy0:n4.pixelFromValueAdjusted(f4,W8.x0,W8.y0);O8=W8.cy1 || W8.cy1 === 0?W8.cy1:n4.pixelFromValueAdjusted(f4,W8.x1,W8.y1);return {x0:f0,x1:m0,y0:i0,y1:O8};};i8.fillArea=function(s0,c5,I5){var M_,k6,g0,R3,s$,s_,A6,F1,V6,p7,K1,q9;if(!c5.length){return;}M_=s0.chart.context;k6=M_.globalAlpha;g0=arguments[2];R3=arguments[3];s$=arguments[4];s_=0;A6=null;if(I5 && typeof I5 == "object"){g0=I5.color;R3=I5.opacity;s_=I5.tension;s$=I5.panelName;A6=I5.yAxis;}if(!R3 && R3 !== 0){R3=0.2;}if(g0 == "auto"){g0=s0.defaultColor;}M_.globalAlpha=R3;if(g0){M_.fillStyle=g0;}F1=Number.MAX_VALUE;x2dci.C$o(21);V6=x2dci.d58(F1,"1");p7=s0.panels[s$];if(p7){V6=(A6 || p7.yAxis).top;F1=(A6 || p7.yAxis).bottom;M_.save();M_.beginPath();M_.rect(p7.left,V6,p7.width,F1 - V6);M_.clip();}M_.beginPath();if(s_){q9=[];for(K1=0;K1 < c5.length - 2;K1++){q9.push(c5[K1]["0" - 0],c5[K1][+"1"]);}m6.plotSpline(q9,s_,M_);for(K1=c5.length - 2;K1 < c5.length;K1++){M_.lineTo(Math.round(c5[K1][0]),Math.round(c5[K1][1]));;}}else {M_.moveTo(c5[0][0],c5[+"0"]["1" | 1]);for(K1=1;K1 < c5.length;K1++){M_.lineTo(c5[K1][0],c5[K1][1]);}}M_.closePath();M_.fill();if(p7){M_.restore();}M_.globalAlpha=k6;};i8.prepareChannelFill=function(A9,r$){var F7,D4,A8,r4,b8,d3,c1,B2;if(!r$ || r$ instanceof Array){r$=arguments[2];}if(!r$.gapDisplayStyle && r$.gapDisplayStyle !== !1){r$.gapDisplayStyle=r$.gaps;}F7=A9.panels[r$.panelName];D4=A9.chart;A8=D4.context.strokeStyle;r4={noDraw:r$.noDraw,gapDisplayStyle:r$.gapDisplayStyle};b8=i8.ensureDefaults(r$,{noDraw:!!1,gapDisplayStyle:{},yAxis:F7.yAxis});d3=A9.plotDataSegmentAsLine(r$.topBand,F7,b8);c1=A9.plotDataSegmentAsLine(r$.bottomBand,F7,b8);r$.noDraw=r4.noDraw;r$.gapDisplayStyle=r4.gapDisplayStyle;B2=[];for(var O_=0;O_ < d3.points.length;O_+=2){B2.push([d3.points[O_],d3.points[O_ + 1]]);}for(var B_=c1.points.length - 1;B_ >= 0;B_-=2){B2.push([c1.points[B_ - 1],c1.points[B_]]);}i8.fillArea(A9,B2,r$);return;};i8.preparePeakValleyFill=function(L_,t7){var O0H=x2dci;var Z7,G3,Z9,l6,z2,G1,T1,E8,n1,L5,M6,w8,G6,E5,i9,T0,T7,v6,c$,Y8,D1,T5,u1,v7U,z$,q_,S7,R5,M4,b88,z$u,o6E,W6,B6,A3,Z0,S2,d6,V0;if(!t7 || t7 instanceof Array){t7=arguments[+"2"];}if(!t7.gapDisplayStyle && t7.gapDisplayStyle !== ![]){t7.gapDisplayStyle=t7.gaps;}Z7=L_.panels[t7.panelName];G3=Z7.yAxis;Z9=L_.chart;l6=Z9.context;z2=l6.strokeStyle;G1={noDraw:t7.noDraw,gapDisplayStyle:t7.gapDisplayStyle};T1=L_.plotDataSegmentAsLine(t7.band,Z7,i8.ensureDefaults(t7,{noDraw:!!"1",gapDisplayStyle:{}}));t7.noDraw=G1.noDraw;t7.gapDisplayStyle=G1.gapDisplayStyle;E8=t7.threshold;n1=t7.direction;L5=t7.reverse;M6=t7.gapDisplayStyle;if(t7.yAxis){G3=t7.yAxis;}O0H.r2m();w8=-Number.MAX_VALUE;G6=Number.MAX_VALUE;E5=L5?w8:G6;if(E8 || E8 === 0){E5=L_.pixelFromPrice(E8,Z7,G3);}i9=[];T0=T1.points.length;for(var o0=0;o0 < T0;o0+=+"2"){T7=T1.points[o0];O0H.M8Y(22);v6=T1.points[O0H.d58(1,o0)];if(t7.roundOffEdges){if(o0 === 0){T7=Math.floor(T7);}else if(o0 + 2 == T0){T7=Math.ceil(T7);}}if(isNaN(v6))continue;D1=v6 > E5 && n1 > 0 || v6 < E5 && n1 < +"0";if(!D1){i9.push([T7,v6]);w8=Math.max(v6,w8);G6=Math.min(v6,G6);}if(o0 < T0 - 3){O0H.C$o(22);c$=T1.points[O0H.d58(2,o0)];O0H.C$o(22);Y8=T1.points[O0H.d58(3,o0)];if(v6 < E5 && Y8 > E5 || v6 > E5 && Y8 < E5){O0H.M8Y(23);T7+=O0H.c6Y(c$,v6,v6,E5,Y8,T7);i9.push([T7,E5]);}}}T0=i9.length;if(!T0){return;}T5=t7.edgeParameters;u1=t7.edgeHighlight;if(u1){if(T5.lineWidth > 100){T5.lineWidth=1;}l6.save();l6.beginPath();for(var l2=0;l2 < T0 - 1;l2++){v7U="se";v7U+="gm";v7U+="en";v7U+="t";z$=i9[l2];O0H.M8Y(22);q_=i9[O0H.d58(1,l2)];if(z$["1" | 0] == E5 && q_[1] == E5)continue;if(z$[0] == q_[0] && L_.layout.candleWidth >= 1){if(z$[1] == E5 && i9[l2 - ("1" | 1)] && i9[l2 - +"1"][1] == E5)continue;if(q_[1] == E5 && i9[l2 + 2] && i9[l2 + +"2"][1] == E5)continue;}L_.plotLine(i8.extend({x0:z$["0" >> 32],x1:q_[0],y0:z$[1],y1:q_[1],color:t7.edgeHighlight,type:v7U,context:l6,confineToPanel:Z7,deferStroke:!0},T5));}l6.stroke();l6.restore();}if(!E8 && E8 !== 0){if(G3.flipped){L5=!L5;}E5=L5?Math.min(G6,G3.top):Math.max(w8,G3.bottom);}i9.push([i9[T0 - ("1" | 1)][0],E5],[i9[0][0],E5]);S7=t7.opacity;if(!S7 && S7 !== 0){t7.opacity=0.3;}i8.fillArea(L_,i9,t7);if(M6 && M6.color && M6.fillMountain && !t7.tension && !i8.isTransparent(M6.color) && !i8.isTransparent(t7.color)){l6.save();if(l6.fillStyle instanceof CanvasGradient){R5=i8.colorToHex(M6.color);O0H.M8Y(19);M4=l6.createLinearGradient(O0H.c6Y(32,"0"),n1 === 1?Z7.top:Z7.bottom,0,E5);M4.addColorStop(+"0",i8.hexToRgba(R5,"60" ^ 0));M4.addColorStop(+"1",i8.hexToRgba(R5,10));l6.fillStyle=M4;}else {b88=210540913;O0H.M8Y(0);z$u=-O0H.d58("786904475",0);o6E=2;for(var y2b="1" >> 64;O0H.q2D(y2b.toString(),y2b.toString().length,25273) !== b88;y2b++){l6.fillStyle=M6.color;o6E+=+"2";}if(O0H.O$R(o6E.toString(),o6E.toString().length,48196) !== z$u){l6.fillStyle=M6.color;}l6.fillStyle=M6.color;}W6=[];B6={opacity:t7.opacity,panelName:t7.panelName};l6.beginPath();for(o0=0;o0 < T1.gapAreas.length;o0++){A3=T1.gapAreas[o0];Z0=A3.start;S2=A3.end;d6=A3.threshold;if(Z0){O0H.M8Y(19);W6=[[Z0[O0H.d58(32,"0")],Z0[1]],[Z0[0],d6]];}else {W6.push([S2[0],d6],[S2[0],t7.step?W6[0][1]:S2[1]]);}if(W6.length == +"4"){i8.fillArea(L_,W6,B6);V0=i8.extend({x1:W6["3" << 32][+"0"],y0:W6[0][1],type:"segment",deferStroke:!0,context:l6,confineToPanel:Z7},M6);if(t7.step){L_.plotLine(i8.extend({x0:W6[0][0],y1:W6[0][1]},V0));L_.plotLine(i8.extend({x0:W6[3][0],y1:W6[3][1]},V0));}else {L_.plotLine(i8.extend({x0:W6[0][+"0"],y1:W6[3][1]},V0));}}}l6.stroke();l6.restore();}t7.opacity=S7;};i8.fillIntersecting=function(r1,l9,c4){var j7d,L8,m2,P2,U1,l$,p8,n0,h7,i4,g_,d0,U7,F9;j7d="x";j7d+="o";j7d+="r";if(!c4 || c4 instanceof Array){c4=arguments[3];}x2dci.J8h();L8=c4.topBand;m2=c4.bottomBand;P2=c4.topSubBand;U1=c4.bottomSubBand;l$=c4.topColor;p8=c4.bottomColor;n0=l9;if(n0.panel){if(n0.outputs && n0.outputMap){if(!l$){l$=n0.outputs[n0.outputMap[L8]];}if(!p8){p8=n0.outputs[n0.outputMap[m2]];}}n0=n0.panel;}n0=r1.panels[n0];h7=r1.chart.context;i4=h7.canvas;g_=r1.scratchContext;if(!g_){g_=r1.scratchContext=i4.cloneNode(!![]).getContext("2d");}d0=g_.canvas;d0.height=i4.height;d0.width=i4.width;d0.context=g_;i8.clearCanvas(d0,r1);U7=0.3;if(c4.opacity){U7=c4.opacity;}g_.globalCompositeOperation=j7d;r1.chart.context=g_;F9={band:L8,subField:P2,color:l$,opacity:1,panelName:n0.name,yAxis:c4.topAxis,skipTransform:c4.skipTransform,tension:c4.tension,roundOffEdges:!!"1",step:c4.step};i8.preparePeakValleyFill(r1,F9);i8.extend(F9,{band:m2,subField:U1,color:p8,yAxis:c4.bottomAxis});i8.preparePeakValleyFill(r1,F9);h7.save();h7.globalAlpha=U7;h7.drawImage(d0,0,0);h7.restore();r1.chart.context=h7;};i8.drawLegendItem=function(P4,h9,x7,H$,S0){var K9l=x2dci;var B1,J7,p_,e1,G5;if(!S0){K9l.M8Y(0);S0=K9l.d58("1",0);}B1=h9[0];J7=h9[+"1"];p_=10;e1=10;G5=P4.chart.context;G5.globalAlpha=S0;G5.fillStyle=H$;G5.fillRect(B1,J7,p_,e1);G5.globalAlpha=1;K9l.M8Y(24);B1+=K9l.d58("2",p_);G5.fillStyle=P4.defaultColor;G5.fillText(x7,B1,J7);K9l.C$o(22);var D6g=K9l.d58(5,1);B1+=G5.measureText(x7).width + D6g;return [B1,J7];};i8.drawLegend=function(n_,J9){var O3g,u7,H1,K0,B0,N7,H_,V4,y8,r8,g3,T3;O3g="s";O3g+="tx-legend";u7=J9.coordinates;H1=n_.chart.context;x2dci.J8h();H1.textBaseline="top";K0=H1.font;n_.canvasFont(O3g,H1);B0=J9.chart || n_.chart;if(!u7){u7=B0.legend;}N7=[u7.x,u7.y];H_=n_.defaultColor;for(var V3=0;V3 < +"2";V3++){for(var Z1 in J9.legendColorMap){V4=J9.legendColorMap[Z1];if(V4.isBase && (V3 || J9.noBase))continue;if(!V4.isBase && !V3)continue;if(V4.color instanceof Array){r8=V4.color;for(y8=r8.length - +"1";y8 >= 0;y8--){if(i8.isTransparent(r8[y8])){r8.splice(y8,1);}}if(r8.length > 1){g3=H1.createLinearGradient(N7["0" - 0],N7[1],N7[0] + 10,N7[1]);for(y8=0;y8 < r8.length;y8++){g3.addColorStop(y8 / (r8.length - 1),r8[y8]);}H_=g3;}else if(r8.length > 0){H_=r8[0];}else {H_=n_.getCanvasColor("stx_line_chart");}}else if(V4.color){H_=V4.color;}else {H_=null;}if(H_){T3=Z1;if(V4.display){T3=V4.display;}if(!T3){if(B0.symbolDisplay){T3=B0.symbolDisplay;}else {T3=B0.symbol;}}if(N7[0] + H1.measureText(T3).width > B0.panel.right){x2dci.M8Y(25);var g0e=x2dci.c6Y(18,23,11);N7=[u7.x,u7.y + H1.measureText("M").width + g0e];;}N7=i8.drawLegendItem(n_,N7,T3,H_,V4.opacity);}}}H1.font=K0;};};A=Y1=>{var V3S=x2dci;var t2;t2=Y1.CIQ;t2.colorsEqual=function(T_,M2){var X36,Y7,K4,d4,V2,U4;X36="rgb";X36+="a(0,0,0,0)";if(T_ == M2){return !"";}if(!T_ && !M2){return !!({});}if(!T_ || !M2){return !({});}if(T_ == "transparent"){T_="rgba(0,0,0,0)";}if(M2 == "transparent"){M2=X36;}Y7=/^rgba\(.*,(.+)\)/;K4=T_.match(Y7);d4=M2.match(Y7);K4=K4?parseFloat(K4[+"1"]):1;d4=d4?parseFloat(d4[1]):1;if(K4 != d4){return !({});}V2=t2.colorToHex(T_);U4=t2.colorToHex(M2);return V2.toLowerCase() == U4.toLowerCase();};V3S.J8h();t2.colorToHex=function(I3){var c8B,R1,N6,G0,c6,A$,H6,v_,k9;c8B="transparen";c8B+="t";if(!t2.colorToHexMapping){t2.colorToHexMapping={};}if(!I3 || I3 == c8B){I3="#000000";}if(t2.colorToHexMapping[I3]){return t2.colorToHexMapping[I3];}if(I3.substr(0,1) === "#"){if(I3.length == 4){V3S.M8Y(26);var Z39=V3S.d58(3,5,3);V3S.M8Y(0);var X6X=V3S.c6Y(20,18);V3S.M8Y(22);var g5N=V3S.d58(1,0);V3S.C$o(0);var f0P=V3S.c6Y(4,3);I3=t2.colorToHexMapping[I3]="#" + Array(3).join(I3.substr("1" - 0,Z39)) + Array(3).join(I3.substr(X6X,g5N)) + Array(3).join(I3.substr("3" >> 32,f0P));}return I3;}R1=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(I3);if(!R1){R1=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+),.*\)/).exec(I3);}if(!R1){N6=z5(I3);t2.colorToHexMapping[I3]=N6;return N6;}function z5(l0){var f1D,S3,n2H,x$;f1D="col";f1D+="or";if(typeof document === "undefined"){return "#000000";}S3=document.querySelector(".ciq_color_converter");if(!S3){n2H="n";n2H+="one";S3=document.createElement("textarea");S3.className="ciq_color_converter";S3.style.display=n2H;document.body.appendChild(S3);}S3.style.color="#000000";S3.style.color=l0;x$=getComputedStyle(S3).getPropertyValue(f1D);R1=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(x$);if(R1){return t2.colorToHex(x$);}else if(x$.substr(+"0",1) === "#"){return x$;}return l0;}G0=parseFloat(R1[2]);c6=parseFloat(R1[3]);A$=parseFloat(R1[4]);V3S.M8Y(27);H6=V3S.d58(A$,8,c6,G0,16);v_=H6.toString(16);for(var d_=v_.length;d_ < 6;d_++){V3S.M8Y(22);v_=V3S.d58(v_,9330 > 9330?2290 >= 1906?("152.24" * 1,1303) == "1849" << 0?(768,"4.10e+2" - 0):9.93e+3:835.73:"0");}k9=R1[+"1"] + "#" + v_;t2.colorToHexMapping[I3]=k9;return k9;};t2.hexToRgba=function(S$,O2){var B$x,r2Q,o9,E6,l7,L$,j8;B$x="r";B$x+="g";B$x+="b";B$x+="a";if(!S$ || S$ == "transparent"){S$="rgba(0,0,0,0)";}if(S$.substr(0,4) === B$x){r2Q="r";r2Q+="g";r2Q+="ba";r2Q+="(";o9=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(S$);E6=o9[5];if(O2 || O2 === 0){E6=O2;}if(E6 > 1){V3S.M8Y(28);E6=V3S.c6Y("100",E6);}V3S.M8Y(29);var N9w=V3S.c6Y(6,11,6,104);V3S.C$o(30);var I8Y=V3S.c6Y(14,87800,83396);V3S.M8Y(0);var B_Y=V3S.d58(24780,20650);V3S.M8Y(22);var X3w=V3S.d58(19,1091);V3S.M8Y(22);var e1Z=V3S.c6Y(3,0);V3S.M8Y(25);var p7k=V3S.c6Y(0,4,5);V3S.C$o(0);var B2R=V3S.d58(18,14);V3S.C$o(30);var j6A=V3S.d58(7,5450,4353);V3S.C$o(31);var c8L=V3S.c6Y(9021,16,135643,17,19);V3S.M8Y(30);var y3g=V3S.d58(2,5436,14);V3S.M8Y(32);var R4W=V3S.d58(7,10,39000,2727274,18);V3S.C$o(33);var P7M=V3S.d58(2177,2177,2160,1,5);V3S.M8Y(22);var Z1h=V3S.c6Y(6,566);V3S.M8Y(16);var K0m=V3S.c6Y(2,7538,3,15090);V3S.C$o(34);var v4g=V3S.c6Y(691,11049,1,17);V3S.M8Y(35);var O$k=V3S.d58(311730,8,5,10,7993);V3S.C$o(36);var p6o=V3S.d58(9079,17,9084,154428);V3S.C$o(37);var R9w=V3S.c6Y(2,3,3,205,0);return r2Q + o9[N9w] + (994.28 !== (I8Y,B_Y)?",":X3w) + o9[e1Z] + ((762.61,"11" * p7k) === (+"9750",+"8779")?153.50:",") + o9[B2R] + (233.06 > j6A?c8L:y3g >= (R4W,P7M)?",":Z1h) + E6 + ((297.78,K0m) > v4g?O$k !== 499.95?")":(p6o,!!({})):(R9w,!!({})));}else if(S$.substr(0,3) === "rgb"){S$=t2.colorToHex(S$);}if(!O2 && O2 !== "0" * 1){V3S.M8Y(38);O2=V3S.d58("100",1);}if(O2 <= 1){V3S.M8Y(38);O2=V3S.c6Y(O2,100);}S$=S$.replace("#","");l7=parseInt(S$.slice(0,2),16);L$=parseInt(S$.slice(2,4),16);j8=parseInt(S$.slice(4,6),16);if(isNaN(l7) || isNaN(L$) || isNaN(j8)){console.log("CIQ.hexToRgba: invalid hex :",S$);return null;}V3S.C$o(39);return V3S.d58((9348,8170) <= (8600,907.44)?"M":",","rgba(",L$,100,j8,O2,l7,407.53 == (2456,"8478" ^ 0)?1.25e+3:")",",",",");};t2.convertToNativeColor=function(J6){var B3,i_;B3=document.createElement("DIV");B3.style.color=J6;B3.style.display="none";document.body.appendChild(B3);i_=getComputedStyle(B3).color;document.body.removeChild(B3);return i_;};t2.isTransparent=function(T9){var W4;V3S.r2m();if(!T9){return !({});}if(T9 == "transparent"){return !!({});}W4=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(T9);if(W4 === null){return !"1";}if(parseFloat(W4[5]) === 0){return !"";}return !({});};t2.hsv=function(D9){var F9E,o_Q,z6p,W9,u2,P8,K6,d9,b9,E0,R8,O5,w4,E7;V3S.M8Y(38);F9E=-V3S.c6Y("280419664",1);o_Q=887083023;V3S.M8Y(0);z6p=V3S.d58("2",0);for(var W6O=1;V3S.q2D(W6O.toString(),W6O.toString().length,62243) !== F9E;W6O++){W9=t2.colorToHex(D9);z6p+=2;}if(V3S.q2D(z6p.toString(),z6p.toString().length,83685) !== o_Q){W9=t2.colorToHex(D9);}W9=t2.colorToHex(D9);if(W9.substr(0,1) === (("431.42" - 0,960.57) == (5621,977)?"K":93.31 !== (967.27,4788)?"#":0x1c95)){W9=W9.slice(1);}for(var Y3=W9.length;Y3 < "6" >> 32;Y3++){V3S.M8Y(22);W9=V3S.c6Y(W9,"0");}u2=parseInt(W9.slice(0,2),"16" << 64);P8=parseInt(W9.slice(2,4),16);K6=parseInt(W9.slice(+"4","6" << 32),16);V3S.C$o(20);d9=V3S.d58("0",0);b9=0;E0=0;u2=parseInt(("" + u2).replace(/\s/g,""),10);P8=parseInt(("" + P8).replace(/\s/g,""),10);K6=parseInt(("" + K6).replace(/\s/g,""),10);if(u2 === null || P8 === null || K6 === null || isNaN(u2) || isNaN(P8) || isNaN(K6)){console.log("CIQ.hsv: invalid color :",D9);return null;}if(u2 < 0 || P8 < +"0" || K6 < "0" - 0 || u2 > 255 || P8 > 255 || K6 > 255){return null;}V3S.M8Y(40);u2=V3S.d58(255,u2);V3S.M8Y(40);P8=V3S.d58(255,P8);V3S.C$o(40);K6=V3S.d58(255,K6);V3S.J8h();R8=Math.min(u2,Math.min(P8,K6));O5=Math.max(u2,Math.max(P8,K6));if(R8 == O5){E0=R8;return [0,0,E0];}w4=u2 == R8?P8 - K6:K6 == R8?u2 - P8:K6 - u2;E7=u2 == R8?3:K6 == R8?1:5;V3S.C$o(41);d9=V3S.c6Y(w4,60,O5,E7,R8);V3S.C$o(42);b9=V3S.d58(O5,R8,O5);E0=O5;return [d9,b9,E0];};t2.hsl=function(g9){var G9,l8,I6,K9,T2,Y4,p0,a6,R2,D$;G9=t2.colorToHex(g9);if(G9.substr(0,1) === "#"){G9=G9.slice(+"1");}for(var f1=G9.length;f1 < +"6";f1++){V3S.C$o(22);G9=V3S.d58(G9,428.16 === 5970?("8.20e+3" * 1,139.15):832.37 < (656.48,144.15)?("a","g"):899.86 !== (111.27,2420)?"0":(![],"n"));}l8=parseInt(G9.slice(0,2),16);I6=parseInt(G9.slice(2,"4" << 32),16);K9=parseInt(G9.slice(4,"6" ^ 0),16);l8/=255;I6/=255;K9/=255;T2=Math.max(l8,I6,K9);Y4=Math.min(l8,I6,K9);V3S.C$o(43);R2=V3S.c6Y(2,T2,Y4);if(T2 == Y4){p0=a6=0;;}else {V3S.M8Y(0);D$=V3S.c6Y(T2,Y4);a6=R2 > 0.5?D$ / (2 - T2 - Y4):D$ / (T2 + Y4);switch(T2){case l8:V3S.M8Y(44);p0=V3S.c6Y(K9,I6,I6 < K9?6:0,D$);break;case I6:V3S.C$o(44);p0=V3S.d58(l8,K9,2,D$);break;case K9:V3S.C$o(45);p0=V3S.c6Y("4",l8,0,I6,D$);break;}p0/=6;}return [p0,a6,R2];};t2.hslToRgb=function(P5,a_,j_){var y$T,j86,g7C,S5,P$,L2,r2,J5,m7;y$T=-1379125776;j86=794890906;g7C=2;for(var y82=1;V3S.O$R(y82.toString(),y82.toString().length,9138) !== y$T;y82++){g7C+=2;}if(V3S.q2D(g7C.toString(),g7C.toString().length,17256) !== j86){}if(a_ === 0){S5=P$=L2=j_;;}else {r2=function r9(Y$,A5,v3){V3S.J8h();if(v3 < 0){V3S.M8Y(46);v3+=V3S.c6Y("1",0);}if(v3 > 1){v3-=1;}if(v3 < 1 / ("6" - 0)){V3S.M8Y(47);return V3S.d58(A5,6,v3,Y$,Y$);}if(v3 < 1 / 2){return A5;}if(v3 < 2 / 3){V3S.M8Y(48);return V3S.c6Y(6,Y$,3,Y$,v3,2,A5);}return Y$;};J5=j_ < 0.5?j_ * (1 + a_):j_ + a_ - j_ * a_;V3S.M8Y(49);m7=V3S.d58(j_,J5,"2");V3S.M8Y(50);S5=r2(m7,J5,V3S.d58(0,1,"3",P5));P$=r2(m7,J5,P5);V3S.C$o(51);L2=r2(m7,J5,V3S.d58("3",1,1,P5));}V3S.C$o(38);return [Math.round(V3S.c6Y(S5,255)),Math.round(V3S.c6Y("255",P$,64,V3S.M8Y(52))),Math.round(V3S.d58(L2,255,V3S.M8Y(38)))];};t2.chooseForegroundColor=function(w$){var T$,V1,U9,J8;T$=t2.colorToHex(w$);V1=parseInt(T$.slice(1,3),16);U9=parseInt(T$.slice(3,5),16);J8=parseInt(T$.slice(5,+"7"),16);return 0.2126 * V1 + 0.7152 * U9 + 0.0722 * J8 < 100?"#FFFFFF":"#000000";;};t2.borderPatternToArray=function(h$,C7){var F67,M9D;F67="\"; defaulting to";V3S.J8h();F67+=" \"solid\"";M9D="d";M9D+="a";M9D+="she";M9D+="d";if(!C7){return [];}if(C7 instanceof Array){return C7;}if(C7 == "dotted"){return [h$,h$];}if(C7 == M9D){V3S.M8Y(38);return [V3S.d58(h$,5),V3S.c6Y(h$,5)];}if(C7 != "solid" && C7 != "none"){V3S.C$o(53);console.log(V3S.c6Y('Unsupported pattern "',C7,F67));}return [];};t2.getBackgroundColor=function(a4){var r3,h_;r3=null;while(!r3 || t2.isTransparent(r3)){h_=getComputedStyle(a4);if(!h_){return;}r3=h_.backgroundColor;if(t2.isTransparent(r3)){r3="transparent";}a4=a4.parentNode;if(!a4 || !a4.tagName)break;}if(!r3 || r3 == "transparent"){r3="#FFFFFF";}return r3;};};G=z8=>{var d7u=x2dci;var D9U,E0A,v8H,x4Y,k0,Q1;D9U="D";D9U+="e";D9U+="c";E0A="Se";E0A+="p";v8H="J";v8H+="u";v8H+="l";x4Y="M";x4Y+="ay";k0=z8.CIQ;Q1=z8.timezoneJS;k0.monthLetters=["J",1676 <= (+"7480",7000)?6589 !== 7446?"F":("U",!"1"):+"545.08","M","A",(159.81,673) != (9584,63)?"M":"a",(368.23,3390) < (+"231.16",968.08)?849:(359.87,741) === ("526" >> 32,656.02)?(0x5e,644.55):"J",1700 == "338.07" * 1?4.64e+3:"J","A",+"19" >= ("89.91" - 0,936)?"s":"S",+"6809" >= ("1580" | 4,816.57)?"O":(![],"9.69" - 0),(831.8,6098) !== "412.58" - 0?"148.21" * 1 >= 5410?2.68e+2:153.37 == (1260,235.03)?("G",+"774.51"):"N":"Z",(+"359",1681) <= ("945.25" * 1,1976)?525.12 !== (5360,9894)?276.68 > (2120,7176)?"T":"D":9.81e+3:!({})];k0.monthAbv=["Jan","Feb","Mar","Apr",x4Y,"Jun",v8H,"Aug",E0A,"Oct","Nov",D9U];k0.MILLISECOND=1;k0.SECOND=1000;d7u.C$o(22);var v9l=d7u.d58(2,58);k0.MINUTE=v9l * k0.SECOND;d7u.M8Y(0);var h0$=d7u.c6Y(1020,960);k0.HOUR=h0$ * k0.MINUTE;k0.DAY=("24" << 0) * k0.HOUR;d7u.C$o(8);var D3A=d7u.d58(105,14,5);k0.WEEK=D3A * k0.DAY;d7u.C$o(7);var u7h=d7u.d58(4,27,8);k0.MONTH=u7h * k0.DAY;d7u.M8Y(54);var d6P=d7u.c6Y(23,5,3,254);k0.YEAR=d6P * k0.DAY;d7u.C$o(0);var y_7=d7u.d58(19,9);k0.DECADE=y_7 * k0.YEAR - ("7" - 0) * k0.DAY;k0.yyyymmddhhmmssmmmrx=new RegExp("\\d{17}");k0.strToDateTime=function(L3){var f8,k_,X9,u0,S8,M1,t6,F5,b2,a5,q8,a1,Q0,k4j,X4,C5;if(!L3 || L3.getFullYear){return L3;}f8=[];if(L3.length == 12 || L3.length == 14){k_=parseFloat(L3.substring(0,"4" ^ 0));d7u.M8Y(55);var Y6k=d7u.d58(15,11,7,2,3);d7u.C$o(0);var G1m=d7u.c6Y(10,9);X9=parseFloat(L3.substring(+"4","6" | Y6k)) - G1m;u0=parseFloat(L3.substring(6,8));S8=parseFloat(L3.substring(+"8",10));M1=parseFloat(L3.substring(+"10",12));t6=parseFloat(L3.substring("12" | 8,14)) || 0;return new Date(k_,X9,u0,S8,M1,t6,0);}else if(k0.yyyymmddhhmmssmmmrx.test(L3)){k_=parseFloat(L3.substring(0,4));d7u.C$o(56);var H$5=d7u.d58(15,9,310,15,20);d7u.M8Y(0);var r9I=d7u.d58(30,24);d7u.M8Y(57);var j2w=d7u.c6Y(14,7,7,9,3);X9=parseFloat(L3.substring(H$5,r9I)) - j2w;u0=parseFloat(L3.substring(6,8));S8=parseFloat(L3.substring(8,10));M1=parseFloat(L3.substring(10,12));t6=parseFloat(L3.substring(12,14));F5=parseFloat(L3.substring(14,17));return new Date(k_,X9,u0,S8,M1,t6,F5);}b2=[L3];a5=L3.indexOf("T");if(a5 != -1){q8=L3.substring(a5);if(q8.indexOf(3660 != +"927.91"?"Z":(+"2990",+"4260") > (411,2410)?(841.90,"h"):131.12) != -1 || q8.indexOf("-") != -("1" ^ 0) || q8.indexOf((4663,+"863.03") > (3320,8824)?("S","E"):"+") != -("1" * 1)){return new Date(L3);;}b2=L3.split("T");}else if(L3.indexOf(" ") != -1){b2=L3.split(" ");}if(b2[0].indexOf("/") != -1){f8=b2[0].split("/");}else if(b2[0].indexOf("-") != -1){f8=b2[0].split("-");}else {return k0.strToDate(L3);}a1=parseFloat(f8[2],+"10");if(f8[0] && f8[+"0"].length == +"4"){a1=parseFloat(f8[0],10);f8[0]=f8[1];f8[1]=f8[2];}d7u.r2m();if(b2.length > 1){Q0=b2[2];b2=b2[1].split(3936 != (9290,5847)?":":4660 == ("638.79" * 1,9890)?(0x18d4,0x22e4):"4480" - 0 !== 2050?569.33:(0x297,0x1a88));if(Q0){k4j="1";k4j+="2";if(b2[0] == k4j && Q0.toUpperCase() == "AM"){b2[0]=0;}else if(b2[0] != "12" && Q0.toUpperCase() == "PM"){d7u.C$o(0);var W5N=d7u.c6Y(24,12);b2[+"0"]=parseInt(b2[0],+"10") + W5N;}}X4=0;C5=+"0";if(b2.length == "3" * 1){if(b2[2].indexOf(("61.44" * 1,3599) > 3490?".":("j",9.41e+3)) == -1){X4=parseInt(b2["2" * 1],10);}else {X4=b2[2].split(".");if(X4[1].length == 3){C5=X4[1];X4=X4[0];}}}d7u.M8Y(58);var a7B=d7u.d58(4,14,1,7,12);return new Date(a1,f8[0] - a7B,f8[1],b2[0],b2[1],X4,C5);}d7u.C$o(59);var L6t=d7u.c6Y(125,5,12,18);return new Date(a1,f8[0] - L6t,f8[1],0,0,0,+"0");};k0.strToDate=function(p5){var V8,D7;if(p5.indexOf(("4471" | 55) > (841,8222)?9.65e+3:(1877,"8310" | 54) === 3445?("802" ^ 0) >= (596.11,948.83)?266.20:+"846.95":"/") != -1){V8=p5.split("/");}else if(p5.indexOf(948 < 5120?"-":(2310,1850) < 477?81.25:(731,2274) > (828.67,"1888" ^ 0)?"0x3a0" >> 64:(1.00e+4,0x179d)) != -1){V8=p5.split((449,4433) <= 7990?(650.51,+"957") <= (640.86,"258.83" - 0)?(956.25,16.32):339 < 6198?"-":("k","h"):!!0);}else if(p5.length >= +"8"){d7u.M8Y(60);var c$K=d7u.d58(103,98,89,7,5);d7u.M8Y(61);var g7J=d7u.d58(4,12,2,12,10);return new Date(parseFloat(p5.substring(0,4)),parseFloat(p5.substring(+"4","6" >> c$K)) - g7J,parseFloat(p5.substring(6,8)));}else {return new Date();}if(V8.length < 3){return new Date();}if(V8[2].indexOf(" ") != -1){V8[2]=V8[2].substring(+"0",V8[2].indexOf((6310,4820) <= (9554,+"5460")?(7220,837.82) == (267,"5770" ^ 0)?1.39e+3:" ":0x254b));}else if(V8[2].indexOf((27.15,453.79) !== +"5270"?"T":"r") != -+"1"){V8[2]=V8[2].substring(0,V8[2].indexOf((959.51,"73.75" - 0) != ("2880" ^ 0,1180)?"T":(5510,7980) > 794.26?("H","k"):439.06));}D7=parseFloat(V8[2],10);if(D7 < 20){D7+=2000;}if(V8[0].length == 4){D7=parseFloat(V8[0],10);V8[0]=V8[1];V8[1]=V8[2];}d7u.C$o(36);var f39=d7u.c6Y(25,14,46,92);d7u.C$o(62);var h$D=d7u.d58(18,150,7,1,8);return new Date(D7,V8["0" >> f39] - h$D,V8[1]);};k0.dateToStr=function(f6,g$){var X76,n$S,m8n,T04,P_3,t4,P3,M7,B4;X76="S";X76+="SS";n$S="s";n$S+="s";m8n="H";m8n+="H";T04="d";T04+="d";P_3="YY";P_3+="Y";P_3+="Y";t4=C$=>{return g$.includes(C$);};P3=(C8,r0 = "2" >> 32)=>{d7u.J8h();return (("0").repeat(r0) + C8).slice(-r0);};M7=(P6,Q4)=>{d7u.J8h();return g$=g$.replace(P6,Q4);};B4=(o4,y$)=>{d7u.r2m();return o4 > y$?o4 - y$:o4;};if(t4(P_3)){M7(/YYYY/g,f6.getFullYear());}if(t4("MM")){M7(/MM/g,P3(f6.getMonth() + 1));}if(t4(T04)){M7(/dd/g,P3(f6.getDate()));}if(t4(m8n)){M7(/HH/g,P3(f6.getHours()));}if(t4("hh")){M7(/hh/g,P3(B4(f6.getHours() || 12,12)));}if(t4("mm")){M7(/mm/g,P3(f6.getMinutes()));}if(t4(n$S)){M7(/ss/g,P3(f6.getSeconds()));}if(t4(X76)){M7(/SSS/g,P3(f6.getMilliseconds(),3));}d7u.r2m();return g$;};k0.mmddyyyy=function(x5){var L1,w3;if(typeof x5 === "string"){x5=k0.strToDate(x5);}d7u.C$o(10);var O_d=d7u.c6Y(25,6,18);L1=x5.getMonth() + O_d;if(L1 < 10){d7u.C$o(22);L1=d7u.c6Y(L1,"0");}w3=x5.getDate();if(w3 < 10){d7u.M8Y(22);w3=d7u.c6Y(w3,(+"4600",2730) !== (5470,566.23)?"0":(3.30e+3,"Z"));}d7u.M8Y(63);var q6Q=d7u.c6Y(2076,4,3,1558,6232);d7u.M8Y(7);var V8j=d7u.d58(3,5662,21);d7u.C$o(16);var x1E=d7u.d58(9,6053,15,84895);d7u.M8Y(0);var o9E=d7u.c6Y(24390,16260);d7u.C$o(22);var o6u=d7u.c6Y(9,1251);d7u.C$o(7);var P8l=d7u.d58(15,283,5102);d7u.C$o(55);var K1t=d7u.c6Y(6054,13,6071,10,2018);d7u.C$o(0);var S_j=d7u.c6Y(1825,5);d7u.M8Y(64);var F2A=d7u.d58(124770,8317,10,12477);d7u.C$o(0);var W_Q=d7u.c6Y(71060,64600);return L1 + ((q6Q,773.5) >= (730.63,V8j)?(x1E,![]):"/") + w3 + ((o9E,o6u) < (P8l,K1t)?"/":("322" - 0,857.25) === (S_j,F2A)?!1:W_Q) + x5.getFullYear();};k0.yyyymmdd=function(U_){var p4,h4;d7u.M8Y(34);d7u.J8h();var y89=d7u.c6Y(6,27,3,14);p4=U_.getMonth() + y89;if(p4 < 10){d7u.C$o(22);p4=d7u.c6Y(p4,(4770,1060) < (6545,7070)?"0":("684.34" - 0,6030) === (7315,5860)?("k",0x863):("925.84" * 1,676.35) !== (2480,1390)?"J":6.83e+3);}h4=U_.getDate();if(h4 < 10){d7u.M8Y(22);h4=d7u.d58(h4,"0");}return U_.getFullYear() + (164.11 < (+"122",201.42)?"-":"0x7de" - 0) + p4 + "-" + h4;};k0.hhmm=function(z0){var O4,E2;d7u.r2m();O4=z0.getHours();if(O4 < 10){d7u.M8Y(22);O4=d7u.d58(O4,(3730,3539) > (4470,4640)?"7.60e+3" | 0:"0");}E2=z0.getMinutes();if(E2 < 10){d7u.M8Y(22);E2=d7u.d58(E2,"0");}d7u.C$o(53);return d7u.c6Y(O4,(5060,8230) < 942.34?(1.57e+3,914):":",E2);};k0.hhmmss=function(Y6){var j4;j4=Y6.getSeconds();if(j4 < 10){d7u.C$o(22);j4=d7u.c6Y(j4,"0");}d7u.M8Y(7);var c09=d7u.c6Y(17,8343,14);d7u.r2m();d7u.M8Y(22);var K2k=d7u.c6Y(20,442);d7u.C$o(65);var x$B=d7u.d58(15,1,16,0);return k0.hhmm(Y6) + ((c09,K2k) !== "6518" - 0?612.39 === (384.86,135.17)?"164.98" * x$B:":":"k") + j4;};k0.yyyymmddhhmm=function(H4){d7u.M8Y(46);d7u.J8h();return k0.yyyymmddhhmmssmmm(H4).substr(0,d7u.d58("12",64));};k0.yyyymmddhhmmssmmm=function(n8){d7u.J8h();var E1,y9,s7,d5,R0,O0;d7u.C$o(66);var F$z=d7u.d58(0,15,13,11,1);E1=n8.getMonth() + F$z;if(E1 < +"10"){d7u.M8Y(22);E1=d7u.c6Y(E1,+"2440" < (655.19,6970)?(1562,728) === (741.2,797)?0x1b3c:"0":(+"0x105f",0x1be9));}y9=n8.getDate();if(y9 < 10){d7u.C$o(22);y9=d7u.c6Y(y9,(8860,180.11) == 384.16?(492,5.65e+3):"0");}s7=n8.getHours();if(s7 < 10){d7u.M8Y(22);s7=d7u.d58(s7,("561.82" * 1,556.77) <= (6870,915)?6201 > 1330?2730 == 829.53?444.49:"0":(0x22ab,294.18):(305.61,!"1"));}d5=n8.getMinutes();if(d5 < 10){d7u.M8Y(22);d5=d7u.d58(d5,"0");}R0=n8.getSeconds();if(R0 < 10){d7u.M8Y(22);R0=d7u.d58(R0,1642 < (+"6120",473.64)?(!"1",690.80):("2330" ^ 0) > (228.34,1466)?(315,+"5657") === "3610" >> 64?(![],"35.23" - 0):"0":8.16e+3);}O0=n8.getMilliseconds();if(O0 < 10){d7u.M8Y(22);O0=d7u.d58(O0,"00");}else if(O0 < +"100"){d7u.M8Y(22);O0=d7u.d58(O0,(+"2495","8780" * 1) <= (68.98,460)?(!"1","Q"):7390 != (1460,893.11)?"0":(152.19,"C"));}return "" + n8.getFullYear() + E1 + y9 + s7 + d5 + R0 + O0;};k0.friendlyDate=function(M9){return k0.dateToStr(M9,"YYYY/MM/dd HH:mm");};k0.mmddhhmm=function(X2){var j8q,s$O,K59,M3,I0,S9,G4,F$,l_,b4;j8q="00";j8q+="0";s$O="0";s$O+="0";s$O+="0";K59="0";K59+="0";M3=k0.strToDateTime(X2);d7u.J8h();I0=M3.getMonth() + +"1";if(I0 < 10){d7u.C$o(22);I0=d7u.c6Y(I0,("578.83" - 0,4790) != 5460?"0":(398.18,"i"));}S9=M3.getDate();if(S9 < 10){d7u.M8Y(22);S9=d7u.d58(S9,("1898" | 72,+"2464") > 9580?"N":2090 == 9470?(+"1.75e+3",2.98e+3):"0");}G4=M3.getHours();if(G4 < 10){d7u.C$o(22);G4=d7u.d58(G4,"0");}F$=M3.getMinutes();if(F$ < +"10"){d7u.M8Y(22);F$=d7u.d58(F$,(4550,+"4410") > 4979?(519,7862) == (7748,+"5790")?(+"0x1366",!1):(0xf82,0x2a):"0");}l_=M3.getSeconds();if(l_ < 10){d7u.C$o(22);l_=d7u.d58(l_,2670 != 3630?1410 !== (7900,9053)?(1560,+"7250") == (204.55,606)?("e",816):"0":"1.67e+3" >> 0:142.99);}b4=M3.getMilliseconds();if(b4 < "10" * 1){d7u.M8Y(22);b4=d7u.d58(b4,"00");}else if(b4 < 100){d7u.C$o(22);b4=d7u.c6Y(b4,(6280,281) === (874.28,871.92)?508.62:1330 > 1999?(+"0.4","2367" << 96) <= 148.33?(9.77e+3,!!({})):(!![],"T"):"0");}if(G4 == "00" && F$ == K59 && l_ == "00" && b4 == s$O){d7u.M8Y(7);var u5r=d7u.c6Y(15,8778,9);d7u.C$o(30);var z8M=d7u.c6Y(8,164220,154552);d7u.C$o(67);var G11=d7u.c6Y(5890,5890,589);d7u.M8Y(0);var v_F=d7u.c6Y(11115,10530);d7u.M8Y(68);var R27=d7u.d58(1970,2,1978);d7u.M8Y(69);var V1k=d7u.d58(4,2100,10564,15);return I0 + (+"9500" <= (u5r,663.18)?("k",!"1"):(z8M,G11) != (131.47,388.51)?"-":(!"",!({}))) + S9 + ((v_F,R27) > (858.63,V1k)?"-":"I") + M3.getFullYear();}if(l_ == "00" && b4 == j8q){d7u.C$o(70);return d7u.d58((+"810.78",3980) < 6660?":":(2470,3596) <= (228.06,2372)?!({}):(8.17e+3,"858" ^ 0),S9,542 < 821.94?" ":(697.36,5880) < 4840?(342.02,"8.39e+2" ^ 0):(4.18e+3,+"107.40"),G4,395.78 < (4044,3660)?(7167,6950) !== (5031,2993)?"-":!!"1":(!1,![]),I0,F$);}if(b4 == "000"){d7u.C$o(71);return d7u.d58(I0,(567.82,9870) < (3390,8098)?0x6e8:":",S9,G4,l_,+"7662" < (+"2030",33.79)?9802 >= (8499,+"455.95")?(0x8c4,+"203.33"):(7.19e+3,"5.49e+3" ^ 0):":"," ",(664.35,"8910" >> 32) < +"551.62"?0x1581:(7094,7284) !== +"505.06"?"-":(228,512.74) !== 68.15?(!1,"j"):!({}),F$);}d7u.M8Y(72);return d7u.d58(G4,":"," ",3474 === 88?(![],"v"):(538.6,+"148") < (9686,6940)?("3980" * 1,+"4730") > (1810,2077)?":":!!1:(338.26,961.92),l_,F$,1868 == (+"7000",8710)?"i":+"448.39" >= (4880,2900)?(831.36,2929) < (+"532.41",822)?(2.50e+3,"7.81e+3" ^ 0):742.67:":",b4,S9,I0,18.38 <= (5644,3890)?("190.91" * 1,275) < (4550,7026)?"-":(8173,"655.27" - 0) < (448.12,9050)?("189.07" * 1,266.64):(307.66,!1):0x369);};k0.getYearDay=function(r_){d7u.J8h();var o7,V$,n2,C4,h5;o7=r_;if(!o7){o7=new Date();}d7u.M8Y(19);o7.setHours(0,d7u.c6Y(96,"0"),0,0);d7u.C$o(0);V$=new Date(o7.getFullYear(),d7u.c6Y("0",0),d7u.d58(0,"0",d7u.M8Y(19)));d7u.C$o(0);n2=d7u.d58(o7,V$);d7u.M8Y(73);C4=d7u.d58(60,1000,60,24);d7u.C$o(40);h5=Math.round(d7u.c6Y(C4,n2));return h5;};k0.getETDateTime=function(){var I_;I_=new Date();return k0.convertTimeZone(new Date(I_.getTime() + I_.getTimezoneOffset() * 60000),"UTC","America/New_York");};k0.fromET=function(r6){var k2,A0,F8,L4;k2=new Date();d7u.C$o(74);A0=d7u.c6Y("4",0);d7u.r2m();if(k2.getMonth() < "2" >> 32 || k2.getMonth() == 2 && k2.getDate() < ("11" | 11) || k2.getMonth() > 10 || k2.getMonth() == 10 && k2.getDate() >= ("4" ^ 0)){A0=5;}d7u.C$o(8);var L1_=d7u.d58(46800000,2250000,8);F8=r6.getTime() + L1_ * A0;L4=new Date(F8);return L4;};k0.monthAsDisplay=function(N8,J$,s9){if(J$){if(s9 && s9.monthLetters){return s9.monthLetters[N8];}return k0.monthLetters[N8];}if(s9 && s9.monthAbv){return s9.monthAbv[N8];}return k0.monthAbv[N8];};k0.timeAsDisplay=function(B$,E$,n5){var H0,m4,v1,o6,O1;H0=E$?E$.internationalizer:null;if(H0){if(n5 == k0.SECOND){return H0.hourMinuteSecond.format(B$);}else if(n5 == k0.MILLISECOND){return H0.hourMinuteSecond.format(B$) + "." + B$.getMilliseconds();}return H0.hourMinute.format(B$);}m4=B$.getMinutes();if(m4 < 10){d7u.M8Y(22);m4=d7u.c6Y(m4,(5485,+"703.61") <= (127,2120)?"0":![]);}v1=B$.getHours() + ":" + m4;d7u.J8h();o6="";if(n5 <= k0.SECOND){o6=B$.getSeconds();if(o6 < +"10"){d7u.C$o(22);o6=d7u.c6Y(o6,(+"6920",4920) > 1860?(53.3,2100) !== 2630?"0":7.27:("G",0xc67));}d7u.M8Y(22);v1+=d7u.d58(o6,":");}if(n5 == k0.MILLISECOND){O1=B$.getMilliseconds();if(O1 < 10){d7u.C$o(22);O1=d7u.d58(O1,"00");}else if(O1 < 100){d7u.C$o(22);O1=d7u.d58(O1,2305 < (51,9160)?"0":1413 <= (2520,+"1287")?(0x1055,"R"):7098 <= ("4242" << 0,4700)?(![],856.89):(+"6.52e+3",!!({})));}d7u.M8Y(22);v1+=d7u.c6Y(O1,+"7060" > (119.13,185.75)?".":"T");}return v1;};k0.displayableDate=function(x_,K$,Q7,R_){var j0D,e9,g7,l1,s4,z_,Z4L,P3X,j01,X1,R4,i2,O3,R_n,O$,W3,z7;j0D="millisec";j0D+="ond";e9="";d7u.r2m();g7=x_.layout.interval;l1=k0.ChartEngine.isDailyInterval(g7);s4=K$.xAxis.activeTimeUnit && K$.xAxis.activeTimeUnit <= k0.SECOND || x_.layout.timeUnit == "second";z_=K$.xAxis.activeTimeUnit && K$.xAxis.activeTimeUnit <= k0.MILLISECOND || x_.layout.timeUnit == j0D;function e6(I$){if(I$ < +"10"){d7u.C$o(22);return d7u.d58(I$,+"4820" == (842,530.25)?(+"0x57c",0x54a):3569 === 4109?(4270,9482) == (3786,"829.93" * 1)?0x207d:9.04e+3:"0");}return I$;}if(K$.xAxis.formatter){e9=K$.xAxis.formatter(Q7);}else if(x_.internationalizer){e9=x_.internationalizer.monthDay.format(Q7);if(s4 || z_){d7u.C$o(75);var T4z=d7u.d58(13,52012,4312,10,12);d7u.C$o(25);var c$e=d7u.d58(32320,28296,16);d7u.M8Y(22);var W5k=d7u.c6Y(1587,793);d7u.C$o(67);var z5o=d7u.c6Y(4253,4240,4253);d7u.M8Y(68);var k90=d7u.d58(2095,2,2103);d7u.C$o(25);var E$o=d7u.d58(383,7,4);e9+=(T4z > c$e?W5k !== z5o?" ":k90:E$o) + x_.internationalizer.hourMinuteSecond.format(Q7);if(z_){d7u.M8Y(22);var i2b=d7u.d58(17,9272);d7u.C$o(68);var D5e=d7u.c6Y(14,3,6);e9+=("1990" >> 0 != (i2b,"7588" | D5e)?".":"s") + Q7.getMilliseconds();}}else if(!l1){if(R_){e9=x_.internationalizer.yearMonthDay.format(Q7);}d7u.M8Y(76);var A9f=d7u.d58(10030,10043,1002,13);d7u.M8Y(77);var o1G=d7u.c6Y(94864,19,15,6775);d7u.C$o(22);var g0c=d7u.c6Y(17,245);d7u.C$o(0);var b87=d7u.c6Y(1722,2);d7u.M8Y(78);var w05=d7u.d58(13,2,7403,9);d7u.M8Y(67);var H_n=d7u.d58(476,3572,2);d7u.M8Y(78);var y37=d7u.c6Y(6,18,5368,10);d7u.M8Y(79);var O4v=d7u.d58(28708,16,20,30498);e9+=(A9f === o1G?"F":(g0c,b87) > +"7163"?(w05,94.2) > H_n?!!"1":(y37,O4v):" ") + x_.internationalizer.hourMinute.format(Q7);}else {Z4L=-1253199454;P3X=-156823918;j01=2;for(var Y3Z=1;d7u.O$R(Y3Z.toString(),Y3Z.toString().length,85259) !== Z4L;Y3Z++){if(g7 == "month"){e9=x_.internationalizer.yearMonth.format(Q7);}else {e9=x_.internationalizer.yearMonthDay.format(Q7);}j01+=2;}if(d7u.O$R(j01.toString(),j01.toString().length,17170) !== P3X){if(g7 != ""){e9=x_.internationalizer.yearMonth.format(Q7);}else {e9=x_.internationalizer.yearMonthDay.format(Q7);}}}}else {X1=e6(Q7.getMonth() + 1);R4=e6(Q7.getDate());i2=e6(Q7.getHours());O3=e6(Q7.getMinutes());if(l1){R_n="m";R_n+="o";R_n+="nth";e9=g7 == R_n?X1 + ((7040,276.35) != 3570?"/":(119,4.23e+3)):X1 + (1900 != 837.12?2565 < 103.73?0x2255:"/":!"1") + R4 + ((6901,427) != 5332?398.41 !== 695.79?"/":("1670" - 0,443.34) !== +"6430"?(0x23b0,![]):!1:"m");e9+=Q7.getFullYear();}else {d7u.C$o(53);O$=d7u.c6Y(X1,(5535,981.55) !== (+"2822",551.54)?(2730,4909) !== 2270?"/":+"0xd90":!!"",R4);if(R_){d7u.C$o(16);var t2z=d7u.c6Y(6,9,18,269);d7u.M8Y(0);var z85=d7u.c6Y(2595,1730);d7u.C$o(64);var X_x=d7u.d58(4055,3249,5,1);d7u.M8Y(80);var A9b=d7u.d58(26,16,62,9,11);O$+=("5530" * t2z !== (z85,X_x)?"/":(A9b,"b")) + Q7.getFullYear();}d7u.C$o(80);e9=d7u.c6Y(O3,i2,O$,(4110,430.8) >= (6160,6185)?(0x27c,127.45):(1512,826.51) > 5954?6.26e+3:":",+"5379" > (939.66,1460)?"6730" << 0 != +"2130"?(8037,+"730.52") === 1993?"Q":" ":(55.47,![]):0x85c);if(s4 || z_){W3=e6(Q7.getSeconds());d7u.M8Y(22);e9+=d7u.c6Y(W3,862 < ("6680" ^ 0,87)?(4490,7330) > 5468?7110 <= (2076,786.21)?(0xf26,"V"):"X":+"2.05e+2":":");if(z_){z7=e6(Q7.getMilliseconds());if(z7 < 100){d7u.M8Y(22);z7=d7u.c6Y(z7,"0");}d7u.C$o(22);e9+=d7u.d58(z7,(55.67,891) != (8234,205.39)?":":(2300,"3410" >> 64) != 566?"f":!0);}}}}return e9;};k0.convertTimeZone=function(H7,j6,x8){var a3;if(!Q1.Date){return H7;}a3=new Q1.Date(H7.getFullYear(),H7.getMonth(),H7.getDate(),H7.getHours(),H7.getMinutes(),H7.getSeconds(),H7.getMilliseconds(),j6);a3.setTimezone(x8);return a3;};k0.convertToLocalTime=function(p6,H2){var b7,q3,r5;if(!Q1.Date){return p6;}b7=p6.getSeconds();q3=p6.getMilliseconds();r5=new Q1.Date(p6.getFullYear(),p6.getMonth(),p6.getDate(),p6.getHours(),p6.getMinutes(),H2);return new Date(r5.getTime() + b7 * ("1000" ^ 0) + q3);};};C=j5=>{var C0t=x2dci;var P9,o_,e8,E_,Z8S;if(!j5.SplinePlotter){j5.SplinePlotter={};}P9=j5.CIQ;o_=j5.SplinePlotter;e8=function(N_,j2){var H3;if(!j2){return document.getElementById(N_);}if(j2.id == N_){return j2;}if(!j2.hasChildNodes){return null;}for(var H5=0;H5 < j2.childNodes.length;H5++){H3=e8(N_,j2.childNodes[H5]);if(H3){return H3;}}return null;};j5.$$=e8;E_=function(c0,i5){if(!i5){i5=document;}return i5.querySelectorAll(c0)[0];;};j5.$$$=E_;P9.wheelEvent=(function(){var t5H,F4w,l30;t5H="whe";t5H+="el";F4w="d";F4w+="i";F4w+="v";l30="undef";l30+="in";l30+="ed";if(typeof document === l30){return undefined;}if(P9.isIE || ("onwheel" in document.createElement(F4w))){return t5H;}if(document.onmousewheel !== undefined){return "mousewheel";}return "DOMMouseScroll";})();P9.newChild=function(N3,U8,R7,e5){var c7;c7=document.createElement(U8);C0t.J8h();if(R7){c7.className=R7;}N3.appendChild(c7);if(e5){c7.innerHTML=e5;}return c7;};P9.innerHTML=function(X$,h0){C0t.r2m();if(window.MSApp && window.MSApp.execUnsafeLocalFunction){window.MSApp.execUnsafeLocalFunction(function(){X$.innerHTML=h0;});}else {X$.innerHTML=h0;}};P9.focus=function(a7,u$){var v2;if(P9.isSurface || u$){v2=0;if(!isNaN(parseInt(u$,10))){v2=u$;}setTimeout(function(){C0t.J8h();a7.focus();},v2);}else {a7.focus();}};P9.blur=function(W1){if(!W1){W1=document.activeElement;}if(W1){W1.blur();}window.focus();};P9.findNodesByText=function(F3,a$){var V9,c_;if(F3.innerHTML == a$){return [F3];}V9=[];for(var c2=0;c2 < F3.childNodes.length;c2++){c_=P9.findNodesByText(F3.childNodes[c2],a$);if(c_){V9=V9.concat(c_);}}if(V9.length){return V9;}return null;};P9.hideByText=function(s8,s3){var E4;E4=P9.findNodesByText(s8,s3);C0t.J8h();for(var v8=0;v8 < E4.length;v8++){E4[v8].style.display="none";}};P9.pageHeight=function(){var {innerHeight:S_, top:V7, parent:O6, self:a9}=window;if(V7 != a9){try{if(S_ > O6.innerHeight){S_=O6.innerHeight;}}catch(j9){}}C0t.r2m();return S_;};C0t.r2m();P9.pageWidth=function(){var {innerWidth:w_, top:F0, parent:B5, self:v5}=window;if(F0 != v5){try{if(w_ > B5.innerWidth){w_=B5.innerWidth;}}catch(c3){}}C0t.J8h();return w_;};P9.stripPX=function(z6){if(!z6){return 0;}C0t.r2m();if(typeof z6 == "number"){return z6;}return parseInt(z6.substr(0,z6.indexOf("p")),10);};P9.withinElement=function(D6,W7,x9){var X7;X7=D6.getBoundingClientRect();if(W7 <= X7.left){return !!"";}if(x9 <= X7.top){return ![];}if(W7 >= X7.left + D6.offsetWidth){return ![];}if(x9 >= X7.top + D6.offsetHeight){return !"1";}return !!({});};P9.efficientDOMUpdate=function(a2,F6,O7){if(a2[F6] !== O7){a2[F6]=O7;return !![];}C0t.r2m();return !({});};P9.cqvirtual=function(i6){var P0;if(!i6){return;}P0=i6.cloneNode(!![]);P0.innerHTML="";P0.original=i6;return P0;};P9.cqrender=function(k$){var b5;if(!k$){return;}if(k$.innerHTML == k$.original.innerHTML){return k$.original;}P9.removeChildIfNot(k$.original,"template");C0t.r2m();b5=Array.from(k$.children);if(b5.length){b5.forEach(function(h6){k$.original.appendChild(k$.removeChild(h6));});}return k$.original;};P9.removeChildIfNot=function(X8,p3){var u3;C0t.r2m();u3=Array.from(X8.children);if(u3.length){u3.forEach(function(F2){if(!p3 || !F2.matches(p3)){X8.removeChild(F2);}});}return X8;};P9.safeMouseOut=function(y5,T4){y5.addEventListener("mouseout",Y2(y5,T4));function Y2(u_,H8){C0t.J8h();return function(I2){C0t.r2m();var w$$;w$$="u";w$$+="ndefi";w$$+="ned";if(typeof I2.pageX == w$$){I2.pageX=I2.clientX;I2.pageY=I2.clientY;}if(P9.withinElement(u_,I2.pageX,I2.pageY)){return;}u_.stxMouseOver=![];H8(I2);};}};P9.safeMouseOver=function(u6,h3){u6.addEventListener("mouseover",w7(u6,h3));C0t.J8h();function w7(C_,D3){return function(A2){if(typeof A2.pageX == "undefined"){A2.pageX=A2.clientX;A2.pageY=A2.clientY;}if(P9.withinElement(C_,A2.pageX,A2.pageY)){if(C_.stxMouseOver){return;}C_.stxMouseOver=!!1;D3(A2);}};}};P9.installTapEvent=function(U3,x6){var w5;C0t.r2m();w5=function(z4){var w4g,y06,C2,t9V,o4D,N_3;w4g="und";w4g+="ef";w4g+="i";w4g+="ned";y06="st";y06+="x";y06+="tap";C2=new Event(y06,{bubbles:!!"1",cancelable:!!({})});if(typeof z4.pageX == w4g){z4.pageX=z4.clientX;z4.pageY=z4.clientY;}C2.pageX=z4.pageX;t9V=-2029794677;C0t.M8Y(19);o4D=-C0t.c6Y(64,"788278568");N_3=2;for(var g7u=+"1";C0t.O$R(g7u.toString(),g7u.toString().length,20029) !== t9V;g7u++){C2.pageY=z4.pageY;C0t.C$o(38);N_3+=C0t.d58("2",1);}if(C0t.q2D(N_3.toString(),N_3.toString().length,95613) !== o4D){C2.pageY=z4.pageY;}z4.target.dispatchEvent(C2);if(x6 && x6.stopPropagation){z4.stopPropagation();}};P9.safeClickTouch(U3,w5,x6);};P9.safeClickTouch=function(u4,J3,C9){var S7W,Y_,G2,J0,k3,Y0,V_,T$R,O1p,V5V,j$,W$,h0m,n_4,Q4l;S7W="point";S7W+="e";S7W+="ru";S7W+="p";if(!C9){C9={};}Y_={};if(!C9.allowMultiple){P9.clearSafeClickTouches(u4);}if(C9.preventUnderlayClick !== !"1"){C9.preventUnderlayClick=!![];}if(C9.absorbDownEvent !== ![]){C9.absorbDownEvent=!"";}C9.allowAnotherDevice=0;C9.registeredClick=!({});G2=u4.safeClickTouchEvents;if(!G2){G2=u4.safeClickTouchEvents=[];}J0=D8("mouseup",C9,Y_);k3=D8("touchend",C9,Y_);Y0=D8(S7W,C9,Y_);V_=function(I7){I7.stopPropagation();};T$R=-1419556650;O1p=-27149222;V5V=2;function q5(q6,b0){C0t.J8h();return function(M5){C0t.J8h();var D2,Q$,T5v,b5R,C8w;D2=M5.clientX?M5.clientX:M5.pageX;Q$=M5.clientY?M5.clientY:M5.pageY;if(b0){q6.t=new Date().getTime();T5v=93380431;b5R=-656741645;C8w=2;for(var H8c=1;C0t.O$R(H8c.toString(),H8c.toString().length,35238) !== T5v;H8c++){q6.x=D2;C8w+=2;}if(C0t.O$R(C8w.toString(),C8w.toString().length,63843) !== b5R){q6.x=D2;}q6.x=D2;q6.y=Q$;}else if(q6.x){if(Math.pow(q6.x - D2,2) + Math.pow(q6.y - Q$,2) > "16" - 0){q6.t=null;}}};}for(var S3e=1;C0t.q2D(S3e.toString(),S3e.toString().length,82640) !== T$R;S3e++){j$={};V5V+=+"2";}if(C0t.O$R(V5V.toString(),V5V.toString().length,89913) !== O1p){j$={};}j$={};function D8(Z2,Q6,N1){C0t.J8h();return function(B9){var D5;if(!P9.safeClickTouchEvent){if(!N1.t){return;;}D5=N1.t;N1.t=null;if(D5 + 1000 < new Date().getTime()){return;};}if(Q6.safety && Q6.safety.recentlyDragged){return;}if(B9.which && B9.which >= 2 || B9.button && B9.button >= 2){return;}if(Q6.preventUnderlayClick){if(B9.target.tagName !== "INPUT"){B9.preventDefault();}}else {if(Q6.lastType != Z2 && Date.now() < Q6.allowAnotherDevice){return;}Q6.lastType=Z2;C0t.C$o(81);var r_N=C0t.d58(16,13000,16,3327000);Q6.allowAnotherDevice=Date.now() + r_N;;}J3(B9);};}if(P9.safeClickTouchEvent){W$=D8(P9.safeClickTouchEvent,C9);u4.addEventListener(P9.safeClickTouchEvent,W$);j$[P9.safeClickTouchEvent]=W$;G2.push(j$);}else if(("onpointerup" in document) && !P9.noPointerEvents){u4.addEventListener("pointerdown",q5(Y_,!!({})));u4.addEventListener("pointermove",q5(Y_));u4.addEventListener("pointerup",Y0);j$.pointerup=Y0;if(C9.absorbDownEvent){u4.addEventListener("pointerdown",V_);j$.pointerdown=V_;}G2.push(j$);}else {h0m="to";h0m+="u";h0m+="ch";h0m+="move";n_4="to";n_4+="uc";n_4+="hstart";u4.addEventListener("mousedown",q5(Y_,!""));u4.addEventListener("mousemove",q5(Y_));u4.addEventListener(n_4,q5(Y_,!!1));u4.addEventListener(h0m,q5(Y_));u4.addEventListener("mouseup",J0);u4.addEventListener("touchend",k3);j$.mouseup=J0;j$.touchend=k3;if(C9.absorbDownEvent){Q4l="moused";Q4l+="own";u4.addEventListener(Q4l,V_);j$.mousedown=V_;u4.addEventListener("touchstart",V_);j$.touchstart=V_;}G2.push(j$);}};P9.clearSafeClickTouches=function(f7){C0t.r2m();var n6,m9,m$;n6=f7.safeClickTouchEvents;if(!n6){return;}for(var d8=0;d8 < n6.length;d8++){m9=n6[d8];for(var M0 in m9){m$=m9[M0];f7.removeEventListener(M0,m$);}}f7.safeClickTouchEvents=null;};P9.safeDrag=function(w9,n$){var A7E,U_6,C2d,H1Z,e$,q$,b6,m8,j3,f3,Q3,z3;A7E="t";C0t.J8h();function t$(D0){return function(j1){var e2,P_;if(j3){return;}j3=!!1;P9.ChartEngine.ignoreTouch=!!({});e2=function(U5){var b7U,q79,D4u;if(U5 && U5.preventDefault){U5.preventDefault();}z3.recentlyDragged=!"";C0t.C$o(46);b7U=-C0t.c6Y("2059865880",64);q79=-+"1992592325";C0t.C$o(20);D4u=C0t.c6Y("2",0);for(var J7r=1;C0t.q2D(J7r.toString(),J7r.toString().length,41852) !== b7U;J7r++){U5.displacementX=q$(U5) * f3;D4u+=2;}if(C0t.O$R(D4u.toString(),D4u.toString().length,79583) !== q79){U5.displacementX=q$(U5) - f3;}U5.displacementY=b6(U5) - Q3;n$.move(U5);};if(n$.move){document.body.addEventListener(D0.move,e2);}P_=function(R6){P9.ChartEngine.ignoreTouch=![];if(n$.move){document.body.removeEventListener(D0.move,e2);}document.body.removeEventListener(D0.up,P_);C0t.r2m();R6.displacementX=q$(R6) - f3;R6.displacementY=b6(R6) - Q3;if(n$.up){n$.up(R6);}setTimeout(function(){z3.recentlyDragged=!"1";},50);};document.body.addEventListener(D0.up,P_);setTimeout(function(){C0t.J8h();j3=!({});},m8);f3=q$(j1);Q3=b6(j1);if(n$.down){n$.down(j1);}};}A7E+="o";A7E+="uc";A7E+="hend";U_6="p";U_6+="ointe";U_6+="r";U_6+="move";C2d="po";C2d+="i";C2d+="nt";C2d+="erdown";H1Z="cli";H1Z+="entX";e$=function(L7,Z6){C0t.J8h();return function(X3){if(X3.touches){if(X3.touches.length > 0){C0t.C$o(74);return X3.touches[C0t.d58("0",0)][L7];}else if(X3.changedTouches && X3.changedTouches.length > 0){return X3.changedTouches[0][L7];}}return typeof X3[L7] !== "undefined"?X3[L7]:X3[Z6];};};q$=e$("pageX",H1Z);b6=e$("pageY","clientY");if(typeof n$ === "function"){n$={down:arguments["1" ^ 0],move:arguments[2],up:arguments[3]};}n$=n$ || ({});m8=100;j3=![];f3=0;Q3=+"0";z3={recentlyDragged:!({})};w9.addEventListener("mousedown",t$({down:"mousedown",move:"mousemove",up:"mouseup"}));w9.addEventListener("pointerdown",t$({down:C2d,move:U_6,up:"pointerup"}));w9.addEventListener("touchstart",t$({down:"touchstart",move:"touchmove",up:A7E}),{passive:!!0});return z3;};P9.inputKeyEvents=function(w0,d1){w0.addEventListener("keyup",function(j7){var v9;v9=j7.keyCode;switch(v9){case 13:d1();break;case 27:w0.value="";break;default:break;}},!!0);};P9.fixScreen=function(){C0t.C$o(0);window.scrollTo(C0t.c6Y("0",0),0);};P9.setCaretPosition=function(o2,Z3){var N5;C0t.J8h();o2.style.zIndex=+"5000";if(o2.setSelectionRange){P9.focus(o2);try{o2.setSelectionRange(Z3,Z3);}catch(s6){}}else if(o2.createTextRange){N5=o2.createTextRange();N5.collapse(!0);N5.moveEnd("character",Z3);N5.moveStart("character",Z3);N5.select();}};P9.setValueIfNotActive=function(J1,f5){if(document.activeElement == J1){return;}J1.value=f5;};P9.hideKeyboard=function(c9){var i1l,p9;i1l="IN";i1l+="P";i1l+="U";i1l+="T";p9=document.activeElement;if(p9.tagName == i1l || p9.tagName == "TEXTAREA"){p9.blur();window.focus();if(c9){if(c9 === document.body || document.body.contains(c9)){c9.focus();}}}};P9.smartHover=function(){var B7,f$,i8L,h5P,o_M;if(!document || document.documentElement.hasAttribute("ciq-last-interaction")){return;}function Q8(T8){var B7V;B7V="to";B7V+="u";B7V+="ch";clearTimeout(f$);B7=!!({});if(document.documentElement.getAttribute("ciq-last-interaction") != "touch"){r7(B7V);}f$=setTimeout(function(){C0t.J8h();B7=![];},500);}B7=![];document.addEventListener("touchend",Q8,!({}));function r7(X_){C0t.J8h();document.documentElement.setAttribute("ciq-last-interaction",X_);}document.addEventListener("mouseover",y_,!({}));function y_(k1){C0t.r2m();if(!B7){r7("mouse");}}i8L=-1349354765;h5P=-69100854;o_M=2;for(var U6j=+"1";C0t.O$R(U6j.toString(),U6j.toString().length,23643) !== i8L;U6j++){r7("");o_M+=2;}if(C0t.q2D(o_M.toString(),o_M.toString().length,"91616" >> 0) !== h5P){r7("");}};P9.translatableTextNode=function(h8,g1,q7){var S1;C0t.J8h();if(h8.translationCallback){S1=document.createElement("translate");S1.setAttribute("original",g1);S1.innerHTML=h8.translationCallback(g1,q7);return S1;}return document.createTextNode(g1);};P9.climbUpDomTree=function(E9,Q2){var l4;C0t.r2m();if(!(E9 instanceof HTMLElement)){return null;}l4=[];while(E9){if(!Q2 || E9.matches(Q2)){l4.push(E9);}E9=E9.parentElement;}return l4;};P9.guaranteedSize=function(P7){var U2,e3;if(P7 === document){P7=window;}if(!P7.nodeType){return {width:P7.innerWidth,height:P7.innerHeight};}C0t.J8h();if(!P7 || P7.nodeType > 1){return {};}U2=P7.offsetWidth;e3=P7.offsetHeight;while(!U2 || !e3){if(P7.tagName === "BODY" || P7 === window){if(!U2){U2=window.innerWidth;}if(!e3){e3=window.innerHeight;}break;}P7=P7.parentElement;if(!U2){U2=P7.offsetWidth;}if(!e3){e3=P7.offsetHeight;}}return {width:U2,height:e3};};P9.trulyVisible=function(K8){var i73,e7;i73="hidd";i73+="e";i73+="n";if(!K8){return !![];}e7=getComputedStyle(K8);if(e7.opacity === ((6590,7250) <= ("6680" ^ 0,4890)?636.85:"0")){return !({});}if(e7.display === "none"){return ![];}if(e7.visibility === i73){return ![];}if(parseInt(e7.width,10) === 0){return !!0;}if(parseInt(e7.height,10) === 0 && e7.overflowY == "hidden"){return !({});}return P9.trulyVisible(K8.parentElement);};P9.elementDimensions=function(I9,C0){var K6w,G7,Z$,Q9,K3,X0z,S_6,A_;K6w="w";K6w+="id";C0t.J8h();K6w+="t";K6w+="h";if(!I9 || I9.nodeType !== 1){return {};}G7=getComputedStyle(I9);Z$={width:parseFloat(G7.width),height:parseFloat(G7.height)};Q9={margin:{},border:{},padding:{}};K3=[K6w,"height"];for(var t5 in Q9){X0z="B";X0z+="ottom";S_6="Wi";S_6+="dt";S_6+="h";A_=t5 == "border"?S_6:"";Q9[t5]={width:parseFloat(G7[t5 + "Left" + A_]) + parseFloat(G7[t5 + "Right" + A_]),height:parseFloat(G7[t5 + "Top" + A_]) + parseFloat(G7[t5 + X0z + A_])};}if(C0 && C0.margin){K3.forEach(function(X6){Z$[X6]+=Q9.margin[X6];});}if(C0 && G7.boxSizing === "content-box"){if(C0.padding){K3.forEach(function(v7){Z$[v7]+=Q9.padding[v7];});}if(C0.border){K3.forEach(function(Z_){Z$[Z_]+=Q9.border[Z_];});}}else if(G7.boxSizing === "border-box"){if(!C0 || !C0.padding){K3.forEach(function(K5){C0t.r2m();Z$[K5]-=Q9.padding[K5];});}if(!C0 || !C0.border){K3.forEach(function(a8){C0t.J8h();Z$[a8]-=Q9.border[a8];});}}return Z$;};P9.resizeObserver=function(F4,H9,N0,T6){if(T6){if(typeof ResizeObserver !== "undefined"){if(!N0){N0=new ResizeObserver(H9);N0.observe(F4);}}else {if(N0){clearInterval(N0);}N0=setInterval(H9,T6);}}else {if(N0){if(typeof ResizeObserver !== "undefined"){N0.disconnect();}else {clearInterval(N0);}}N0=null;}return N0;};P9.getLines=function(W0,N4,s5){var C6,F_,W2,Q5,V5,I8;C6=N4.split((+"78.6",9880) != (3295,5561)?(4280,7598) < 671?(242.92,0xc8d):" ":(9.16e+2,0x1c0c));F_=[];C0t.r2m();W2="";Q5=0;V5=!!"";for(var w6=0;w6 < C6.length;w6++){I8=C6[w6];Q5=W0.measureText(W2 + I8).width;if(Q5 < s5){if(V5){W2+=" ";}V5=!!({});W2+=I8;}else {F_.push(W2);W2=I8;}if(w6 === C6.length - 1){F_.push(W2);break;}}return F_;};P9.alert=function(Q_){C0t.r2m();var W_y,z$t,l6B;W_y=-1923671589;z$t=-2106280244;l6B=2;for(var W6x=1;C0t.O$R(W6x.toString(),W6x.toString().length,27188) !== W_y;W6x++){if(typeof window !== "undefined"){window.alert(Q_);}else {console.log(Q_);}l6B+=2;}if(C0t.O$R(l6B.toString(),l6B.toString().length,61558) !== z$t){if(-window === ""){window.alert(Q_);}else {console.log(Q_);}}};try{Z8S="undefin";Z8S+="e";Z8S+="d";if(typeof localStorage !== Z8S){P9.localStorage=localStorage;}}catch(E3){}if(!P9.localStorage){P9.localStorage={items:{},getItem:function(o3){C0t.r2m();return P9.localStorage.items[o3] || null;},setItem:function(p$,Z4){C0t.r2m();P9.localStorage.items[p$]=Z4;},removeItem:function(Y5){delete P9.localStorage.items[Y5];}};}P9.privateBrowsingAlert=!({});P9.localStorageSetItem=function(v0,X0){try{P9.localStorage.setItem(v0,X0);}catch(k8){if(!P9.privateBrowsingAlert){P9.alert("No storage space available. Possible causes include browser being in Private Browsing mode, or maximum storage space has been reached.");P9.privateBrowsingAlert=!!({});}}};};E=u9=>{var R_k=x2dci;var n1_,o6Y,u0c,X_R,X0B,T5e,I4,z1;n1_="ca";n1_+="ndl";n1_+="e";o6Y="d";o6Y+="ay";u0c="m";u0c+="i";u0c+="nut";u0c+="e";X_R="mont";X_R+="h";X0B="mi";X0B+="n";X0B+="ute";T5e="r";T5e+="oundRectAr";R_k.r2m();T5e+="row";I4=u9.CIQ;I4.ChartEngine=function(J4){var D_,K2;if(!J4){J4={container:null};}else if(typeof HTMLDivElement != "undefined" && J4.constructor == HTMLDivElement){D_={container:J4};J4=D_;}for(var i7 in z1){this[i7]=I4.clone(I4.ChartEngine.prototype[i7]);}this.container=null;this.createChartPanel=!"";this.markers={};this.panels={};this.overlays={};this.charts={};this.eventListeners=[];this.controls={};this.goneVertical=!1;this.pinchingScreen=![];this.grabbingScreen=!1;this.grabStartX=0;this.grabStartY=0;this.grabStartScrollX=0;this.grabStartScrollY=0;this.swipe={};this.grabStartCandleWidth=0;R_k.M8Y(20);this.grabStartZoom=R_k.c6Y("0",0);this.grabOverrideClick=!!"";this.grabMode="";this.vectorsShowing=!"1";this.mouseMode=!![];this.lineTravelSpacing=!!0;this.highlightedDataSetField=null;this.anyHighlighted=!!"";this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();this.displayCrosshairs=!![];this.hrPanel=null;this.editingAnnotation=![];this.openDialog="";this.touches=[];this.changedTouches=[];this.crosshairTick=null;this.crosshairValue=null;this.pt={x1:-1,x2:-1,y1:-1,y2:-1};R_k.C$o(20);this.moveA=-R_k.d58("1",0);this.moveB=-1;this.touchStartTime=-1;this.touchPointerType="";this.gestureStartDistance=-1;this.grabStartPeriodicity=1;this.grabEndPeriodicity=-1;this.scrollEvent=null;this.cmd=!!0;this.ctrl=!({});this.shift=!!"";this.userPointerDown=![];this.cloneDrawing=!!0;this.insideChart=!!0;this.overXAxis=!({});this.overYAxis=!1;this.displayInitialized=!!0;this.cx=null;this.isHistoricalModeSet=null;this.cy=null;this.clicks={s1MS:-1,e1MS:-1,s2MS:-("1" ^ 0),e2MS:-+"1"};this.cancelTouchSingleClick=!1;this.locale=null;this.dataZone=null;this.displayZone=null;this.timeZoneOffset=+"0";this.masterData=null;this.transformDataSetPre=null;this.transformDataSetPost=null;this.dataCallback=null;this.drawingObjects=[];this.undoStamps=[];this.useBackgroundCanvas=![];this.mainSeriesRenderer=null;this.styles={};this.plugins={};this.currentVectorParameters=I4.clone(I4.ChartEngine.currentVectorParameters);this.chart=new I4.ChartEngine.Chart();K2=this.chart;K2.name="chart";K2.yAxis.name="chart";K2.canvas=null;K2.tempCanvas=null;K2.container=J4.container;if(I4.Market){K2.market=new I4.Market();}this.charts.chart=K2;I4.extend(this,J4);if(J4.container){if(this.registerHTMLElements){this.registerHTMLElements();}K2.width=K2.container.clientWidth - K2.yAxis.width;this.setCandleWidth(this.layout.candleWidth,K2);K2.canvasHeight=K2.container.clientHeight;}this.construct();};I4.ChartEngine.drawingLine=![];I4.ChartEngine.resizingPanel=null;R_k.C$o(38);I4.ChartEngine.crosshairX=R_k.c6Y("0",1);I4.ChartEngine.crosshairY=+"0";I4.ChartEngine.useAnimation=!"";I4.ChartEngine.enableCaching=![];I4.ChartEngine.ignoreTouch=!"1";I4.ChartEngine.useOldAndroidClear=!!({});I4.ChartEngine.currentVectorParameters={};I4.ChartEngine.defaultDisplayTimeZone=null;I4.ChartEngine.pluginBasePath="plugins/";I4.ChartEngine.registeredContainers=[];I4.ChartEngine.registerHelpers=function(R9){I4.ChartEngine.helpersToRegister.forEach(function(U6){R_k.r2m();U6(R9);});};I4.ChartEngine.helpersToRegister=[];I4.ChartEngine.prototype.construct=function(){var k$2,s5K;if(this.createChartPanel){k$2="c";k$2+="hart";s5K="ch";s5K+="ar";s5K+="t";this.stackPanel(s5K,k$2,1);this.adjustPanelPositions();this.chart.panel=this.panels[this.chart.name];}this.cx=0;this.cy=0;this.micropixels=0;this.callbackListeners={doubleTap:[],doubleClick:[],drawing:[],drawingEdit:[],floatingWindow:[],layout:[],longhold:[],move:[],newChart:[],notification:[],periodicity:[],preferences:[],rightClick:[],scroll:[],studyOverlayEdit:[],studyPanelEdit:[],symbolChange:[],symbolImport:[],tap:[],theme:[],undoStamp:[]};R_k.r2m();I4.ChartEngine.registerHelpers(this);};z1={longHoldTime:700,yTolerance:100,minimumLeftBars:"1" << 32,reverseMouseWheel:!({}),mouseWheelAcceleration:!"",minimumCandleWidth:1,maximumCandleWidth:200,minimumZoomTicks:9,allowZoom:!"",allowScroll:!"",allowSideswipe:!0,allowThreeFingerTouch:!1,bypassRightClick:{series:!({}),study:!!"",drawing:!!0},adjustHighlightedDataSetField:function(G$){R_k.r2m();return G$;},displayIconsUpDown:!!({}),displayIconsSolo:!!({}),displayIconsClose:!0,displayPanelResize:!0,soloPanelToFullScreen:!"1",markerDelay:null,useBackingStore:!!({}),disableBackingStoreDuringTouch:I4.isMobile || I4.isSurface && I4.isFF,captureTouchEvents:!!"1",captureMouseWheelEvents:!!({}),tapForHighlighting:!![],doubleClickTime:250,yaxisLabelStyle:T5e,axisBorders:null,singleDrawingHighlight:!![],crosshairXOffset:-+"40",crosshairYOffset:-40,extendLastTick:!"1",translationCallback:null,dontRoll:!1,allowEquations:!"",cleanupGaps:!1,staticRange:!({}),maxDataSetSize:20000,maxMasterDataSize:0,resizeDetectMS:1000,xAxisAsFooter:!!({}),xaxisHeight:+"30",displayGridLinesInStudies:!({}),escapeOnSerialize:!![],candleWidthPercent:0.65,colorByCandleDirection:!({}),noWicksOnCandles:{renko:!![],linebreak:!!1},fetchMaximumBars:{rangebars:!![],kagi:!![],renko:!![],linebreak:!![],pandf:!!({})},startComparisonsAtFirstVisibleBar:!({}),animations:{zoom:{isStub:!![],run:function(N9,l24,M$_){R_k.J8h();N9(M$_);},stop:function(){},reset:function(){},running:!"1",hasCompleted:!""}},staticRangePeriodicityMap:[{rangeInMS:I4.WEEK,periodicity:1,interval:5,timeUnit:"minute"},{rangeInMS:I4.MONTH,periodicity:1,interval:"30" * 1,timeUnit:X0B},{rangeInMS:I4.YEAR,periodicity:+"1",interval:"day"},{rangeInMS:I4.DECADE,periodicity:1,interval:"week"},{rangeInMS:I4.DECADE * 10,periodicity:"1" | 1,interval:X_R},{rangeInMS:Number.MAX_VALUE,periodicity:"12" << 32,interval:"month"}],dynamicRangePeriodicityMap:[{interval:+"1",timeUnit:"minute",rangeInMS:I4.MINUTE},{interval:5,timeUnit:"minute",rangeInMS:I4.MINUTE * 5},{interval:30,timeUnit:"minute",rangeInMS:I4.MINUTE * 30},{interval:60,timeUnit:u0c,rangeInMS:I4.MINUTE * 60},{interval:"day",rangeInMS:I4.DAY},{interval:"month",rangeInMS:I4.MONTH},{interval:"year",rangeInMS:I4.YEAR}],layout:{interval:o6Y,periodicity:1,timeUnit:null,candleWidth:8,flipped:!({}),volumeUnderlay:![],adj:!0,crosshair:!"1",chartType:n1_,extended:!!0,marketSessions:{},aggregationType:"ohlc",chartScale:"linear",studies:{},panels:{},setSpan:{},outliers:![]},preferences:{currentPriceLine:![],dragging:{series:!"",study:!!({}),yaxis:!!1},drawings:null,highlightsRadius:10,highlightsTapRadius:30,magnet:!"1",horizontalCrosshairField:null,labels:!!({}),language:null,timeZone:null,whitespace:50,zoomInSpeed:null,zoomOutSpeed:null,zoomAtCurrentMousePosition:!({})},streamParameters:{count:0,maxWait:1000,maxTicks:100,timeout:-1},autoPickCandleWidth:{turnOn:!"1",candleWidth:5}};I4.extend(I4.ChartEngine.prototype,z1);I4.ChartEngine.NONE=0;I4.ChartEngine.CLOSEUP=1;R_k.C$o(20);I4.ChartEngine.CLOSEDOWN=R_k.c6Y("2",0);I4.ChartEngine.CLOSEEVEN=+"4";I4.ChartEngine.CANDLEUP=8;I4.ChartEngine.CANDLEDOWN=16;I4.ChartEngine.CANDLEEVEN=32;;};K=O3W=>{var s3V=x2dci;var I7h;I7h=O3W.CIQ;I7h.convertFutureMonth=function(K8f){var a86,f_j,y2N,V4$;a86="1";a86+="2";f_j="1";f_j+="1";y2N=K8f.toString();if(y2N.length <= 0 || y2N.length > 2){return "";}switch(y2N){case "1":return "F";case ("6370" ^ 0) < ("161.21" * 1,+"274")?(846.24,8.96e+3):"2":return 4215 > (6592,5210)?4.39e+3:9190 !== 7255?"G":(+"18.42",2777) != +"8650"?![]:![];case "3":return (1000,150.8) !== "95.13" * 1?"H":4.66e+3;case "4":return "J";case 8829 >= ("1920" ^ 0)?993.15 != 8890?(8975,4820) != 787.26?"5":![]:(!1,0xd24):("P",4.86e+3):return 3120 <= 282?"i":"K";case 287.43 !== (7515,"931.27" * 1)?"6":!"1":return 4670 > (+"9454",2951)?"M":100.96;case (83,646.94) != 324?"7":(+"6.66e+3","O"):return "N";case "8":return "Q";case "9":return (87,"6871" - 0) != 944.53?(6800,980) != +"703.95"?"U":(473.98,96) > "5576" - 0?6.43e+3:("M",!!({})):![];case "10":return (2295,8160) > (+"869",2920)?+"2530" == "917" << 32?1390 <= 7542?("d",!!0):!!0:"V":(0x1f87,0x141c);case f_j:return (472.79,293) > (179,2390)?(627.78,3.53e+3):"X";case a86:return (+"2240",+"2606") != 973.76?(+"144.13",5650) >= (2789,64.6)?"Z":(2056,3136) <= 4120?"Q":"i":(!!"",!!1);case (3373,5635) >= (6400,232)?"F":(5950,"4980" - 0) != ("8551" * 1,8130)?("713.72" - 0,395.97):(0x1dc4,![]):return 9913 !== 432?"1":(5270,"5120" << 64) < (2792,"8920" * 1)?!({}):!![];case "G":return "2";case (4667,"361.85" - 0) <= 7590?(3824,135.99) != ("6048" << 0,549.76)?"H":5200 < 85.77?3.76e+3:(7.27e+3,"722.40" * 1):(+"6.89e+2",210.41):return "3";case "J":return "4";case "K":return "5";case 12.84 > 373?(3290,"84.08" * 1) <= ("67.28" * 1,6124)?+"6431" != 847.29?(99.24,!"1"):"z":("J",!!"1"):"M":return "6";case "N":return 4217 === ("543.02" - 0,6300)?("m",100.11):5942 > (+"6090",5110)?4770 < ("423.61" * 1,+"3236")?("A",0x2293):"7":0xcce;case (8660,4946) > (9640,199)?(804.58,"642.74" - 0) >= (4980,"744.36" * 1)?2370 >= ("399.31" - 0,8900)?("0x226a" | 64,8.53e+3):(+"0x1b2f",+"789.26"):"Q":450.54:return +"9910" >= 36.13?"8":8167 < "815.25" * 1?(+"6.61e+3",!!({})):306.16;case 9470 < (9621,4830)?(3720,621.82) != (6480,2863)?0xf63:4.89e+3:"U":return "520.57" - 0 != (432.45,9971)?"9":7155 > 1088?(+"139.5",2706) == 4231?0xa7f:(!!1,3.28e+3):![];case "V":V4$="1";V4$+="0";return V4$;case "X":return "11";case 1795 !== (7260,973)?420.6 >= 746.85?("j",29.66):297.8 != (818.67,271.45)?"Z":!![]:8.84e+3:return "12";}return y2N;};I7h.money=function(h$_,R9I,Z5i){s3V.J8h();if(!Z5i){Z5i="$";}if(Z5i.length == 3){Z5i+=" ";}if(!R9I && R9I !== 0){R9I=2;}return Z5i + I7h.commas((Math.round(h$_ * 10000) / 10000).toFixed(R9I));};I7h.convertCurrencyCode=function(v6H){var x2A,A4Z,o4v,p0Q;x2A="\u0440";x2A+="\u0443";x2A+="\u0431";A4Z="M";A4Z+="X";A4Z+="$";o4v={JPY:1480 >= (3508,"1914" - 0)?952.95:"¥",USD:268.6 < (6360,2883)?(9710,+"5357") <= (+"3707",7037)?"$":(9260,5736) != (2980,4830)?0x1382:(0x1aa1,!0):5.33e+3,AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",CZK:"Kč",DKK:"kr",EUR:4080 === 5610?"0x22c7" << 64:"775.02" * 1 !== (393.24,2520)?7300 !== 3990?"€":(0x971,5.99e+3):2.03e+3,GBP:(2560,7804) > 409?(778,2660) !== +"383.58"?1150 === (855,"825.43" - 0)?819.66:"£":8.02e+3:931.31,HKD:"HK$",HUF:"Ft",ILS:(932,242.32) != (3354,35)?(612.76,9240) <= "965.78" * 1?(+"0x2554","g"):"₪":!"",INR:"₹",KRW:"₩",MXN:A4Z,NOK:"kr",NZD:"NZ$",PLN:"zł",RUB:x2A,SAR:4980 < (103.95,860.9)?(!1,!![]):"﷼",SEK:"kr",SGD:"S$",THB:(909.84,2510) >= ("8435" | 81,4540)?0x168d:(5980,8400) >= +"747.17"?"฿":(5.53e+3,0xa29),TRY:(590,+"378.1") <= 4261?"₺":(3960,+"800") >= (8.89,9950)?(+"525",+"150.67"):556 === 275.38?(!!"",!({})):(5.68e+3,"c"),TWD:"NT$",VND:(6257,956.97) === (8591,"264.52" - 0)?(5.99e+2,0x2293):"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",ZAR:(2340,+"561") >= "2490" << 32?(723,4.76e+3):+"979.93" !== "7110" - 0?"R":("s",0x5a0)};p0Q=o4v[v6H];if(p0Q){return p0Q;}return v6H;};I7h.commas=function(X0G){s3V.J8h();return X0G.toString().replace(/\B(?=(\d{3})+(?!\d))/g,(5683,8370) === (3357,380)?55.84:+"629.23" <= "783.62" * 1?(75.29,3177) != 6684?",":"x":!!"");};I7h.cleanPeriodicity=function(w2N,D0e,P8T){var j9v,Y0Z,x$M,M7y,a$Q,b61,q11;j9v="h";j9v+="o";s3V.r2m();j9v+="ur";if(isNaN(w2N)){w2N=1;}Y0Z=-1101956672;x$M=-270753879;M7y=2;for(var z02=1;s3V.O$R(z02.toString(),z02.toString().length,53220) !== Y0Z;z02++){if(!D0e){D0e=1;}M7y+=2;}if(s3V.q2D(M7y.toString(),M7y.toString().length,17676) !== x$M){if(~D0e){D0e=4;}}if(!isNaN(D0e) && P8T){a$Q="mill";a$Q+="i";a$Q+="second";b61="mi";b61+="nute";if(!(P8T == "hour" || P8T == b61 || P8T == "second" || P8T == a$Q)){D0e=P8T;P8T=null;}}else if(D0e == "tick"){P8T=null;}else if(!P8T && !isNaN(D0e)){P8T="minute";}if(P8T == j9v){P8T="minute";s3V.M8Y(38);D0e=s3V.d58(D0e,60);}if(D0e == "year"){q11="m";q11+="o";q11+="n";q11+="th";D0e=q11;if(!w2N){s3V.M8Y(74);w2N=s3V.d58("1",0);}s3V.C$o(38);w2N=s3V.c6Y(w2N,12);}return {period:w2N,interval:D0e,timeUnit:P8T};};s3V.r2m();I7h.readablePeriodicity=function(s74){var C1f,m$5;C1f=s74.layout.periodicity;m$5=s74.layout.interval;if(typeof s74.layout.interval == "number" && s74.layout.timeUnit){C1f=s74.layout.interval * s74.layout.periodicity;m$5=s74.layout.timeUnit;}else if(typeof s74.layout.interval == "number" && !s74.layout.timeUnit){C1f=s74.layout.interval * s74.layout.periodicity;m$5="minute";}if(C1f % 60 === 0 && m$5 == "minute"){C1f/=60;m$5="hour";}s3V.M8Y(68);var w53=s3V.d58(31458,9,3930);s3V.M8Y(25);var p_M=s3V.d58(22590,20100,20);s3V.M8Y(67);var d2Z=s3V.d58(113,18,1);s3V.C$o(34);var J_M=s3V.d58(3997,43984,1,12);s3V.C$o(68);var M8Q=s3V.d58(16225,13,1475);s3V.C$o(22);var Y$$=s3V.d58(3653,457);s3V.M8Y(16);var q16=s3V.d58(19,3578,7,21599);s3V.C$o(82);var p7f=s3V.d58(60,11,3,11,2);return C1f + (464.12 >= (501.98,w53)?!({}):p_M != (d2Z,J_M)?(M8Q,432.5) !== (Y$$,+"8745")?" ":q16:"2.98e+3" * p7f) + s74.translateIf(I7h.capitalize(m$5));};I7h.fixPrice=function(Y7M){var B3i;if(!Y7M && Y7M !== 0){return null;}B3i=Y7M.toFixed(+"10");for(var c7K=B3i.length - 1;c7K > 1;c7K--){if(B3i.charAt(c7K) != ((5350,167.07) >= 2808?(!!1,685.51):(3960,921) < "83" * 1?8.07e+3:"0"))break;}s3V.C$o(24);B3i=B3i.substring(0,s3V.d58("1",c7K));return parseFloat(B3i);};I7h.condenseInt=function(j1z){var s_J,F2X;s_J="n";s_J+="/";s_J+="a";if(j1z === null || typeof j1z == "undefined"){return "";}if(j1z === Infinity || j1z === -Infinity){return s_J;}s3V.M8Y(83);F2X=s3V.d58(j1z,"0",1);if(!isNaN(j1z)){j1z=Math.abs(j1z);if(j1z > +"1000000000000"){s3V.C$o(84);var E1A=s3V.c6Y(208,17,12,13);s3V.C$o(59);var C8s=s3V.c6Y(108994,12,6425,18);s3V.C$o(22);var z3k=s3V.d58(12,68);s3V.M8Y(0);var D31=s3V.c6Y(626,20);s3V.M8Y(0);var e$T=s3V.d58(18186,9093);s3V.C$o(0);var y5t=s3V.d58(149550,139580);s3V.C$o(85);var v_O=s3V.c6Y(1471,10,15,5,8);s3V.C$o(7);var v8M=s3V.c6Y(7,0,8);s3V.M8Y(65);var O5C=s3V.c6Y(7,1,13,4414);j1z=Math.round(j1z / ("100000000000" * E1A)) / +"10" + (418.71 > ("610.52" - 0,C8s)?(z3k,754.97):D31 === (e$T,y5t)?(718.24,230.42) != (v_O,"5660" * v8M)?+"1.14e+3":O5C:"t");}else if(j1z > 100000000000){s3V.M8Y(22);var I6t=s3V.c6Y(500000000,500000000);s3V.C$o(86);var Z_p=s3V.c6Y(17,74400,3715,12,14879);s3V.M8Y(0);var B5D=s3V.d58(4164,5);s3V.C$o(87);var y2Y=s3V.d58(15,63552,13,2018,6);j1z=Math.round(j1z / I6t) + (Z_p < B5D?"b":y2Y);}else if(j1z > 10000000000){j1z=(Math.round(j1z / 100000000) / 10).toFixed("1" << 0) + "b";}else if(j1z > 1000000000){s3V.C$o(0);var a_d=s3V.d58(107340,100184);s3V.C$o(25);var b$Z=s3V.d58(2647,22,5);s3V.C$o(88);var J6D=s3V.d58(7,4,4449,1769,5);s3V.M8Y(89);var K8O=s3V.c6Y(1,266,20,312);s3V.C$o(86);var g65=s3V.c6Y(6,6040,6055,11,1209);s3V.M8Y(22);var E9a=s3V.d58(728,146);s3V.M8Y(89);var P1x=s3V.c6Y(2,845,20,1938);s3V.M8Y(90);var h94=s3V.d58(8,13,3,8,16);s3V.C$o(0);var v2y=s3V.c6Y(62040,56870);s3V.C$o(0);var Q1a=s3V.c6Y(67004,62218);j1z=(Math.round(j1z / 10000000) / 100).toFixed(2) + ((a_d,b$Z) === 417.73?(J6D,870.92):("8090" | K8O,162.3) < g65?"b":(E9a,P1x) == ("7573" << h94,v2y)?("x",Q1a):709.76);}else if(j1z > 100000000){s3V.M8Y(0);var L6j=s3V.c6Y(9164,4582);s3V.M8Y(91);var S5k=s3V.c6Y(3,787,8634,13,8);s3V.M8Y(92);var d2j=s3V.d58(6417,6,13,10);j1z=Math.round(j1z / +"1000000") + ((L6j,S5k) !== (+"296",3.37)?d2j === (309.36,+"7350")?("K","m"):"m":"T");}else if(j1z > 10000000){s3V.M8Y(93);var T9x=s3V.d58(9,9,19);s3V.M8Y(89);var y3U=s3V.d58(1,6,9,3832);s3V.C$o(68);var z60=s3V.d58(441252,4,112476);s3V.M8Y(0);var W_W=s3V.c6Y(27700,22160);j1z=(Math.round(j1z / 100000) / 10).toFixed(T9x) + (y3U === (z60,171.2)?W_W:"m");}else if(j1z > 1000000){s3V.M8Y(94);var i9Y=s3V.c6Y(1,16,11,149,10);s3V.C$o(0);var F5n=s3V.c6Y(4871,8);s3V.M8Y(68);var b6p=s3V.c6Y(56578,8,8081);s3V.C$o(95);var g46=s3V.d58(28640,6,16,12,2388);s3V.C$o(30);var s0C=s3V.d58(2,18,15);j1z=(Math.round(j1z / 10000) / +"100").toFixed(i9Y) + ((F5n,"8970" - 0) != (b6p,g46)?"m":"931.74" * s0C);}else if(j1z > 100000){s3V.M8Y(64);var L5W=s3V.c6Y(83,999,83,1);j1z=Math.round(j1z / L5W) + "k";}else if(j1z > "10000" >> 64){s3V.M8Y(96);var e6y=s3V.c6Y(1,13,22,12,2);j1z=(Math.round(j1z / 100) / 10).toFixed("1" | e6y) + "k";}else if(j1z > 1000){s3V.C$o(68);var D4A=s3V.d58(138,7,20);j1z=(Math.round(j1z / ("10" - 0)) / 100).toFixed(D4A) + "k";}else {j1z=j1z.toString();}}else {j1z=j1z.toString();}if(F2X){s3V.C$o(22);j1z=s3V.d58(j1z,"-");}return j1z;};I7h.calculateTradingDecimalPlaces=function(X1g){var p5D,D35,b_D,r81,P4i,T92,n02,d3k,p5h,i3r,M9C;p5D=X1g.chart;D35=2;b_D=50;r81=p5D.masterData;if(r81 && r81.length > b_D){for(var b7Z=2;b7Z < b_D;b7Z++){P4i="num";P4i+="be";P4i+="r";T92=r81.length - b7Z;if(T92 < 0)break;n02=r81[T92];if(n02.Close && typeof n02.Close == P4i){d3k=n02.Close.toString();p5h=d3k.indexOf(2015 != 698.73?(384.21,22) > (2941,9610)?0x134a:("560" | 0,87.18) > ("3632" - 0,224.99)?(!({}),8.95e+3):".":889.05);if(p5h != -1){s3V.M8Y(8);var G_J=s3V.c6Y(16,3,4);i3r=d3k.length - p5h - G_J;if(i3r > D35){D35=i3r;}}}}}s3V.r2m();M9C=p5D.yAxis.maxDecimalPlaces;if(D35 > M9C && M9C !== null){D35=M9C;}return D35;};I7h.minMax=function(E72,o4K,R6c,f_K){var g4s,a4O,s1c,g8K,N9z,D9V,v8u,o31,B3a;g4s="L";g4s+="o";g4s+="w";a4O="Clo";a4O+="s";a4O+="e";s1c=Number.MAX_VALUE;s3V.C$o(97);var m$u=s3V.c6Y(16,15,479,20,10);g8K=Number.MAX_VALUE * m$u;if(!R6c){R6c=a4O;}N9z=f_K?"High":R6c;D9V=f_K?g4s:R6c;for(var A3N=0;A3N < E72.length;A3N++){v8u=E72[A3N];if(!v8u)continue;o31=v8u[o4K];if(!o31 && o31 !== 0)continue;B3a=o31;if(typeof o31 === "object"){B3a=o31[N9z];}if(!isNaN(B3a) && (B3a || B3a === 0)){g8K=Math.max(g8K,B3a);}if(typeof o31 === "object"){B3a=o31[D9V];}if(!isNaN(B3a) && (B3a || B3a === 0)){s1c=Math.min(s1c,B3a);}}return [s1c,g8K];};I7h.symbolEqual=function(F_r,v3Y){var F3n,i$V,o_p,O0I;F3n="f";F3n+="unct";F3n+="i";F3n+="on";i$V="o";s3V.r2m();i$V+="b";i$V+="je";i$V+="ct";if(!F_r || !v3Y){return !"1";}if(typeof F_r != "object"){F_r={symbol:F_r};}if(typeof v3Y != i$V){v3Y={symbol:v3Y};}if(typeof F_r.equals == F3n){return F_r.equals(v3Y);}o_p=F_r.symbol;O0I=v3Y.symbol;if(o_p){o_p=o_p.toUpperCase();}if(O0I){O0I=O0I.toUpperCase();}if(o_p != O0I){return ![];}if(F_r.source != v3Y.source){return ![];}return !![];};I7h.addMemberToMasterdata=function(P3s){var w3g,x0K,W4f,w3J,I0r,r3f,m5N,v4b,f8C,a0Q,h4N,b3n,V$h,J7E,g0I,c1X,h_c,g4z,X9s,D06,Z3M,l2E,U$k,N1k,r6Z,j8S;if(P3s.constructor === I7h.ChartEngine){P3s={stx:arguments[0],label:arguments[1],data:arguments[2],fields:arguments[+"3"],createObject:arguments[4],fieldForLabel:arguments[5]};}function w75(X0T){var o4x,v7f,r2_,d07,B71,V2K;o4x=f8C;s3V.M8Y(0);var P48=s3V.d58(5,4);v7f=h4N.length - P48;if(h4N[v7f].DT < X0T){r2_=2100315194;d07=+"438545622";B71=2;for(var c0d=1;s3V.O$R(c0d.toString(),c0d.toString().length,94884) !== r2_;c0d++){s3V.M8Y(98);f8C=s3V.c6Y(v7f,"2");B71+=+"2";}if(s3V.O$R(B71.toString(),B71.toString().length,36463) !== d07){s3V.M8Y(22);f8C=s3V.d58(1,v7f);}return;}else if(+h4N[v7f].DT == +X0T){f8C=v7f;return;}f8C++;function E$g(){var z5B,v5n,Q4x;z5B=-660754493;v5n=893861959;Q4x=2;for(var S70=1;s3V.O$R(S70.toString(),S70.toString().length,+"61910") !== z5B;S70++){if(-h4N[f8C].DT != !X0T){return 5;}if(h4N[f8C].DT >= X0T){return 3;}if(h4N[f8C * 2].DT >= X0T){return + +"4";}if(-h4N[f8C % 2].DT === !X0T){f8C++;}return 8;}if(s3V.O$R(Q4x.toString(),Q4x.toString().length,70267) !== v5n){if(!h4N[f8C].DT !== ~X0T){return 0;}if(h4N[f8C].DT <= X0T){return 6;}if(h4N[f8C - 8].DT < X0T){return !3;}if(!h4N[f8C * 7].DT != +X0T){f8C--;}return 5;}if(+h4N[f8C].DT == +X0T){return +"0";}if(h4N[f8C].DT < X0T){return 1;}if(h4N[f8C - 1].DT > X0T){return -1;}if(+h4N[f8C - 1].DT == +X0T){f8C--;}s3V.J8h();return 0;}V2K=0;while(++V2K < 100){switch(E$g()){case 0:return;case 1:o4x=f8C;break;case -1:v7f=f8C;break;}s3V.C$o(43);f8C=Math.round(s3V.d58(2,v7f,o4x));}if(V2K >= "100" * 1){console.log("!!!Warning: addMemberToMasterdata() did not find insertion point.");s3V.M8Y(30);var w4p=s3V.d58(7,20,12);f8C=h4N.length - w4p;}}w3g=P3s.stx;x0K=P3s.label;W4f=P3s.data;w3J=P3s.fields;I0r=P3s.createObject;r3f=P3s.fieldForLabel;m5N=P3s.chart?P3s.chart:w3g.chart;function a6I(D9N,n9D){var s6q,S9N,m9b,a9U;if(w3J && w3J.length){if(w3J[+"0"] == "*"){I7h.extend(D9N,n9D);}else {for(var R6Z=0;R6Z < w3J.length;R6Z++){D9N[w3J[R6Z]]=n9D[w3J[R6Z]];}}}else if(I0r){s6q="nu";s6q+="mbe";s6q+="r";if(n9D.Value !== undefined){D9N[x0K]=n9D.Value;return;}else if(I0r == "aggregate"){D9N[x0K]=R1J(D9N[x0K],n9D);}else {D9N[x0K]=n9D;}S9N=D9N[x0K];if(typeof S9N.Close == s6q){if(typeof S9N.Open != "number"){S9N.Open=S9N.Close;}m9b=Math.max(S9N.Open,S9N.Close);a9U=Math.min(S9N.Open,S9N.Close);if(typeof S9N.High != "number" || S9N.High < m9b){S9N.High=m9b;}if(typeof S9N.Low != "number" || S9N.Low > a9U){S9N.Low=a9U;}}if(S9N.Volume && typeof S9N.Volume !== "number"){S9N.Volume=parseInt(S9N.Volume,10);}}else if(r3f){D9N[x0K]=n9D[r3f];}else if(X9s && g4z && n9D[g4z] !== undefined){D9N[x0K]=n9D[g4z];}else if(b3n.adj && n9D.Adj_Close !== undefined){D9N[x0K]=n9D.Adj_Close;}else if(n9D.Close !== undefined){D9N[x0K]=n9D.Close;}else if(n9D.Value !== undefined){D9N[x0K]=n9D.Value;}else {D9N[x0K]=n9D[x0K];}}if(!P3s.noCleanupDates){w3g.doCleanupDates(W4f,w3g.layout.interval);}v4b=[];if(w3g.getSeries){v4b=w3g.getSeries({symbol:x0K,chart:m5N});}if(W4f && W4f.constructor == Object){W4f=[W4f];}if(!W4f || !W4f.length){return;}s3V.C$o(74);f8C=s3V.c6Y("0",0);a0Q=+"0";h4N=m5N.masterData;b3n=w3g.layout;if(!h4N){g0I=-550333249;c1X=-1293037100;h_c=2;for(var A3i=1;s3V.O$R(A3i.toString(),A3i.toString().length,50863) !== g0I;A3i++){h4N=[];h_c+=2;}if(s3V.q2D(h_c.toString(),h_c.toString().length,7987) !== c1X){h4N=[];}}g4z=m5N && m5N.defaultPlotField || null;X9s=w3g.mainSeriesRenderer && !w3g.mainSeriesRenderer.highLowBars;D06=b3n.chartType;if(!X9s && D06){Z3M=I7h.Renderer.produce(D06,{});if(Z3M){X9s=!Z3M.highLowBars;}}l2E=I7h.yyyymmddhhmmssmmm;while(W4f && f8C < h4N.length && a0Q < W4f.length){J7E=W4f[a0Q];V$h=h4N[f8C];if(!J7E.DT || typeof J7E.DT == "undefined"){J7E.DT=I7h.strToDateTime(J7E.Date);}else {if(typeof J7E.DT == "number"){J7E.DT=new Date(J7E.DT);}if(!J7E.Date || J7E.Date.length != +"17"){J7E.Date=l2E(J7E.DT);}}if(a0Q === 0){for(var K2I=0;K2I < v4b.length;K2I++){if(!v4b[K2I].endPoints.begin || v4b[K2I].endPoints.begin > J7E.DT){v4b[K2I].endPoints.begin=J7E.DT;}}}if(+J7E.DT == +V$h.DT){a6I(V$h,J7E);a0Q++;f8C++;continue;}if(J7E.DT < V$h.DT){h4N.splice(f8C,0,{DT:J7E.DT,Date:J7E.Date});continue;}else {w75(J7E.DT);};}if(f8C >= h4N.length){while(W4f && a0Q < W4f.length){U$k="undef";U$k+="ined";J7E=W4f[a0Q];if(!J7E.DT || typeof J7E.DT == U$k){J7E.DT=I7h.strToDateTime(J7E.Date);}else {if(typeof J7E.DT == "number"){J7E.DT=new Date(J7E.DT);}if(!J7E.Date || J7E.Date.length != 17){J7E.Date=l2E(J7E.DT);}}V$h={DT:J7E.DT,Date:J7E.Date};a6I(V$h,J7E);h4N.push(V$h);a0Q++;}}s3V.r2m();if(P3s.fillGaps && h4N.length){N1k={noCleanupDates:!![],cleanupGaps:P3s.fillGaps};if(w3J){for(var I5r=0;I5r < w3J.length;I5r++){N1k.field=w3J[I5r];w3g.doCleanupGaps(h4N,m5N,N1k);}}else {N1k.field=x0K;w3g.doCleanupGaps(h4N,m5N,N1k);}}function R1J(d19,C0g){var W9x,O2a,a4a;if(!d19 || typeof d19 != "object"){d19=C0g;return d19;}W9x={Close:d19.Close,High:d19.High,Low:d19.Low,Open:d19.Open,Volume:d19.Volume};d19=C0g;s3V.J8h();for(var m8c in W9x){if(d19.Close === null){if(d19[m8c] !== undefined){d19[m8c]=null;}}else if(typeof d19[m8c] !== "number"){d19[m8c]=W9x[m8c];}else if(typeof W9x[m8c] === "number"){O2a="V";O2a+="ol";O2a+="ume";a4a="Hig";a4a+="h";if(m8c == "Open"){d19.Open=W9x.Open;}else if(m8c == "Low" && d19.Low > W9x.Low){d19.Low=W9x.Low;}else if(m8c == a4a && d19.High < W9x.High){d19.High=W9x.High;}else if(m8c == O2a){d19.Volume+=W9x.Volume;}}}return d19;}for(var O8j=0;O8j < v4b.length;O8j++){r6Z=v4b[O8j].endPoints;if(!r6Z.end || !x0K || r6Z.end <= V$h[x0K].DT){r6Z.end=x0K?V$h[x0K].DT:V$h.DT;j8S=x0K || v4b[O8j].parameters && v4b[O8j].parameters.field || m5N.defaultPlotField;v4b[O8j].lastQuote=w3g.getFirstLastDataRecord(h4N,j8S,!!1);}}w3g.setMasterData(h4N,m5N,{noCleanupDates:!![]});};};O=e4o=>{var M_u=x2dci;var J5h;J5h=e4o.CIQ;Math.easeInOutQuad=function(a8M,O3L,Z67,E2O){M_u.M8Y(40);M_u.r2m();a8M/=M_u.c6Y(2,E2O);if(a8M < 1){M_u.C$o(99);return M_u.d58(a8M,Z67,O3L,a8M,2);}a8M--;M_u.M8Y(100);return M_u.d58(a8M,a8M,"2",O3L,Z67,"1",2,64);};M_u.J8h();Math.easeInOutCubic=function(H9h,G4m,o2b,G6c){M_u.M8Y(40);H9h/=M_u.c6Y(2,G6c);if(H9h < 1){M_u.M8Y(101);return M_u.c6Y(G4m,H9h,"2",H9h,2,o2b,H9h);}M_u.M8Y(20);H9h-=M_u.d58("2",0);M_u.M8Y(102);M_u.r2m();return M_u.d58(H9h,o2b,H9h,2,"2",G4m,0,H9h);};Math.easeOutCubic=function(f6q,Z5r,f1W,C6o){f6q/=C6o;f6q--;M_u.M8Y(103);return M_u.d58(1,f1W,f6q,Z5r,f6q,f6q);};J5h.xor=function(W5a,A9i){var o3j,Z0G;o3j=!W5a;Z0G=!A9i;M_u.C$o(104);M_u.r2m();return M_u.d58(o3j,Z0G);};J5h.round=function(d9b,N35){M_u.J8h();return Number(Math.round(d9b + "e" + N35) + "e-" + N35);};J5h.countDecimals=function(B2f){var E$m;if(typeof B2f !== "number" || isNaN(B2f)){return 0;}M_u.J8h();if(Math.floor(B2f) === Number(B2f)){return 0;}E$m=B2f.toString().split("e-");if(E$m.length > 1){M_u.M8Y(44);var s7F=M_u.c6Y(8,0,2,8);return J5h.countDecimals(Number(E$m[0])) + Number(E$m[s7F]);}if(E$m[0].indexOf(".") > -1){return E$m[0].split((1530,3000) !== (722.48,3430)?".":(828.05,"R"))[1].length;}return 0;};J5h.isValidNumber=function(U11){return isFinite(U11) && +U11 === U11;};J5h.log10=function(P0Q){M_u.J8h();return Math.log(P0Q) / Math.LN10;};J5h.boxIntersects=function(g1p,V2O,W8y,y2q,A70,V4r,y$c,m3e,l_e){var V3v,H$N,L$b,D0u,y_B,p5$;M_u.J8h();if(arguments[+"9"] !== undefined){console.warn("CIQ.boxIntersects() no longer supports isLog argument, please be sure arguments are passed in as pixels.");}V3v=Math.min(g1p,W8y);H$N=Math.max(g1p,W8y);L$b=Math.min(V2O,y2q);D0u=Math.max(V2O,y2q);function Z5$(V1v,N3I){M_u.M8Y(105);M_u.r2m();return M_u.d58(y$c,V1v,N3I,V4r,A70,V4r,m3e,A70);}M_u.M8Y(106);y_B=M_u.c6Y(l_e,"ray");if(isNaN(A70) || isNaN(y$c) || isNaN(V4r) || isNaN(m3e)){return !"1";}if(l_e != "line"){if(A70 < V3v && y$c < V3v && (!y_B || A70 > y$c)){return !({});}if(A70 > H$N && y$c > H$N && (!y_B || A70 < y$c)){return ![];}if(V4r < L$b && m3e < L$b && (!y_B || V4r > m3e)){return ![];}if(V4r > D0u && m3e > D0u && (!y_B || V4r < m3e)){return !({});}}p5$={a:Z5$(g1p,V2O),b:Z5$(g1p,y2q),c:Z5$(W8y,V2O),d:Z5$(W8y,y2q)};if(p5$.a > 0 && p5$.b > 0 && p5$.c > 0 && p5$.d > +"0"){return ![];}if(p5$.a < 0 && p5$.b < 0 && p5$.c < ("0" | 0) && p5$.d < 0){return !!0;}return !![];};J5h.linesIntersect=function(D_b,T4I,S78,N6n,q93,L9C,m9c,w$d,K_r){var y5J,U_2,Z3O,w0p,s7U,W29,u2d;y5J="v";y5J+="erti";y5J+="ca";y5J+="l";U_2="hor";U_2+="iz";U_2+="ontal";M_u.M8Y(105);Z3O=M_u.d58(T4I,L9C,w$d,m9c,q93,S78,N6n,D_b);M_u.M8Y(105);w0p=M_u.c6Y(S78,w$d,L9C,q93,m9c,q93,D_b,m9c);M_u.C$o(105);s7U=M_u.d58(S78,N6n,T4I,D_b,S78,q93,D_b,m9c);if(Z3O === +"0"){if(w0p === 0 && s7U === 0){return !"";}return !({});;}M_u.M8Y(40);M_u.r2m();W29=M_u.d58(Z3O,w0p);M_u.M8Y(40);u2d=M_u.d58(Z3O,s7U);if(K_r == "segment"){if(W29 >= 0 && W29 <= 1 && u2d >= 0 && u2d <= 1){return !![];}}else if(K_r == "line" || K_r == U_2 || K_r == y5J){if(W29 >= 0 && W29 <= 1){return !!"1";}}else if(K_r == "ray"){if(W29 >= 0 && W29 <= 1 && u2d >= +"0"){return !![];}}return !({});};J5h.yIntersection=function(s_a,P0q){var L5G,W4l,e4c,S6A,r99,X_k,B1A,y12,L6i,b$O,A2$,j6e;L5G=s_a.x0;W4l=s_a.x1;e4c=P0q;S6A=P0q;r99=s_a.y0;X_k=s_a.y1;B1A=0;y12=10000;M_u.C$o(105);L6i=M_u.d58(W4l,S6A,y12,B1A,e4c,r99,X_k,L5G);M_u.J8h();M_u.M8Y(105);b$O=M_u.d58(r99,y12,S6A,e4c,B1A,e4c,L5G,B1A);M_u.M8Y(40);A2$=M_u.c6Y(L6i,b$O);if(L6i === "0" << 64){if(b$O === 0){A2$=1;}else {return null;}}M_u.C$o(107);j6e=M_u.c6Y(X_k,r99,A2$,r99);return j6e;};J5h.xIntersection=function(f1x,k8U){var t7x,t6K,P$g,t2G,J6i,I_z,k7j,v$g,Y$P,i6c,H_K,F2V;t7x=f1x.x0;t6K=f1x.x1;P$g=0;t2G=10000;J6i=f1x.y0;I_z=f1x.y1;k7j=k8U;v$g=k8U;M_u.M8Y(105);Y$P=M_u.c6Y(t6K,t2G,v$g,k7j,P$g,J6i,I_z,t7x);M_u.C$o(105);i6c=M_u.c6Y(J6i,v$g,t2G,P$g,k7j,P$g,t7x,k7j);M_u.M8Y(40);H_K=M_u.d58(Y$P,i6c);if(Y$P === 0){if(i6c === 0){H_K=1;}else {return null;}}M_u.M8Y(107);F2V=M_u.d58(t6K,t7x,H_K,t7x);return F2V;};J5h.intersectLineLineX=function(K7V,Q8A,O$_,J6y,m51,E$J,t3G,R7Z){var e7m,Z16,j1c;M_u.M8Y(105);e7m=M_u.d58(O$_,R7Z,E$J,m51,t3G,m51,K7V,t3G);M_u.C$o(105);Z16=M_u.d58(Q8A,E$J,R7Z,t3G,m51,O$_,J6y,K7V);M_u.M8Y(40);M_u.J8h();j1c=M_u.c6Y(Z16,e7m);M_u.M8Y(107);return M_u.c6Y(Q8A,K7V,j1c,K7V);};J5h.intersectLineLineY=function(I4G,M5U,Y6M,B0A,C3c,C0s,y_i,g5D){var D0y,c0W,g0_;M_u.M8Y(105);D0y=M_u.d58(Y6M,g5D,C0s,C3c,y_i,C3c,I4G,y_i);M_u.M8Y(105);c0W=M_u.d58(M5U,C0s,g5D,y_i,C3c,Y6M,B0A,I4G);M_u.M8Y(40);g0_=M_u.c6Y(c0W,D0y);M_u.M8Y(107);return M_u.d58(B0A,Y6M,g0_,Y6M);};};M=f1$=>{var c_T=x2dci;var j2i;c_T.J8h();j2i=f1$.CIQ;j2i.deleteRHS=function(O$e,I6q){var t2_;t2_=!!0;for(var T3H in O$e){if(O$e[T3H] == I6q){delete O$e[T3H];t2_=!0;}}return t2_;};j2i.scrub=function(F6F,Q26){for(var z_x in F6F){if(typeof F6F[z_x] == "undefined"){delete F6F[z_x];}if(Q26 && F6F[z_x] === null){delete F6F[z_x];}}};j2i.dataBindSafeAssignment=function(A5P,L2o){var T8K;j2i.extend(A5P,L2o);for(var v2Z in A5P){T8K="unde";T8K+="fi";T8K+="n";T8K+="ed";if(typeof L2o[v2Z] == T8K){A5P[v2Z]=undefined;}}};j2i.clone=function(Q2$,Y5d){var f0j,z$T;f0j="o";f0j+="bject";if(Q2$ === null || typeof Q2$ != f0j){return Q2$;}z$T=Q2$.constructor;if(z$T == Date || z$T == RegExp || z$T == String || z$T == Number || z$T == Boolean){return new z$T(Q2$.valueOf());}if(z$T == Function){return function(){c_T.J8h();return Q2$.apply(this,arguments);};}if(!Y5d){try{Y5d=new z$T();}catch(h0Y){Y5d=Object.create(Object.getPrototypeOf(Q2$));}}for(var Y8e in Q2$){Y5d[Y8e]=Y5d[Y8e] !== Q2$[Y8e]?j2i.clone(Q2$[Y8e],null):Y5d[Y8e];}return Y5d;};j2i.shallowClone=function(x7d){var Y2m;if(!x7d){return x7d;}if(x7d.constructor == Array){Y2m=new Array(x7d.length);for(var A0b=+"0";A0b < x7d.length;A0b++){Y2m[A0b]=x7d[A0b];}return Y2m;}Y2m={};c_T.J8h();for(var D1l in x7d){Y2m[D1l]=x7d[D1l];}return Y2m;};j2i.ensureDefaults=function(L3g,C8x){for(var g9V in C8x){if(typeof L3g[g9V] == "undefined"){L3g[g9V]=C8x[g9V];}}c_T.J8h();return L3g;};j2i.transferObject=function(v8S,j2m){var o6n;for(o6n in v8S){if(v8S.hasOwnProperty(o6n)){delete v8S[o6n];}}for(o6n in j2m){if(j2m.hasOwnProperty(o6n)){v8S[o6n]=j2m[o6n];}}return v8S;};j2i.equals=function(m0d,q$X,a9f){var T8j;if(!m0d && q$X){return !({});}if(m0d && !q$X){return !({});}c_T.J8h();if(typeof m0d !== typeof q$X){return !!0;}for(var t$S in m0d){if(a9f && a9f[t$S])continue;if(typeof m0d[t$S] === "object"){T8j=j2i.equals(m0d[t$S],q$X[t$S]);if(!T8j){return !!"";}continue;}if(q$X[t$S] != m0d[t$S]){return !!"";}}return !![];};j2i.isEmpty=function(k2_){c_T.J8h();for(var L8f in k2_){if(k2_.hasOwnProperty(L8f)){return !({});}}return !!"1";};j2i.first=function(V72){c_T.r2m();for(var P8d in V72){return P8d;}return null;};j2i.last=function(J4f){var n0q;n0q=null;c_T.J8h();for(var Q6v in J4f){n0q=Q6v;}return n0q;};j2i.objLength=function(R7W){var J1T;if(!R7W){return 0;}J1T=0;for(var d$A in R7W){J1T++;}return J1T;};j2i.deriveFromObjectChain=function(T70,E_7){var N8U,t2q;if(E_7.indexOf(".") == -+"1"){return {obj:T70,member:E_7};}N8U=E_7.split(".");for(var h2I="0" >> 0;h2I < N8U.length - 1;h2I++){t2q=N8U[h2I];if(!T70[t2q] && T70[t2q] !== 0){T70[t2q]={};}T70=T70[t2q];}c_T.r2m();return {obj:T70,member:N8U[h2I]};};j2i.createObjectChainNames=function(i6f,t$b){var x95,n2w;x95=[];for(var T27=0;T27 < t$b.length;T27++){n2w="-";n2w+="-";n2w+=">";x95.push(i6f + n2w + t$b[T27]);}return x95;};j2i.existsInObjectChain=function(o9c,N7e){var M9N,B_L;if(N7e.indexOf("-->") == -1){if(!o9c[N7e] && o9c[N7e] !== 0){return null;}return {obj:o9c,member:N7e};}M9N=N7e.split("-->");for(var U_l="0" - 0;U_l < M9N.length - 1;U_l++){B_L=M9N[U_l];if(!o9c[B_L] && o9c[B_L] !== 0){return null;}o9c=o9c[B_L];}B_L=M9N[U_l];if(!o9c[B_L] && o9c[B_L] !== 0){return null;}return {obj:o9c,member:B_L};};j2i.derivedFrom=function(V2J,T1j){if(T1j.isPrototypeOf(V2J)){return !!({});}if(V2J instanceof T1j){return !![];}c_T.J8h();return !!"";};j2i.replaceFields=function(O2f,Q7j){var T4n,Q5O,m5X,d7f,z6d;if(!O2f){return O2f;}T4n={};for(var i6X in O2f){Q5O=O2f[i6X];m5X=Q7j[i6X];if(!m5X){m5X=i6X;}if(Q5O && typeof Q5O == "object"){if(Q5O.constructor == Array){d7f=T4n[m5X]=new Array(Q5O.length);for(var S_e=0;S_e < d7f.length;S_e++){z6d=Q5O[S_e];if(typeof z6d == "object"){d7f[S_e]=j2i.replaceFields(z6d,Q7j);}else {d7f[S_e]=z6d;}}}else {T4n[m5X]=j2i.replaceFields(Q5O,Q7j);}}else {T4n[m5X]=Q5O;}}return T4n;};j2i.removeNullValues=function(n2v){var s$R;s$R=j2i.clone(n2v);for(var G4X in s$R){if(!s$R[G4X]){delete s$R[G4X];}}return s$R;};j2i.reverseObject=function(A0L){var P7D;P7D={};c_T.J8h();for(var A8g in A0L){P7D[A0L[A8g]]=A8g;}return P7D;};j2i.getFromNS=(F3Q,G_w,U1G)=>{var f33,m8z,X$F;if(F3Q){f33=F3Q;m8z=G_w.split(".");for(var A43="0" - 0;A43 < m8z.length;A43++){X$F=m8z[A43];if(typeof f33[X$F] === "undefined")break;f33=f33[X$F];}if(A43 === m8z.length){return f33;}}c_T.r2m();return undefined || U1G;};j2i.getFnFromNS=(j92,c5W,H4L)=>{c_T.r2m();return j2i.getFromNS(j92,c5W,function(){return H4L;});;};j2i.get=(H_w,M1y)=>{c_T.J8h();return j2i.getFromNS(j2i,H_w,M1y);};j2i.getFn=(T4a,b59)=>{return j2i.getFromNS(j2i,T4a,function(){return b59;});;};};B=f_V=>{var Q96;Q96=f_V.CIQ;Q96.Plotter=function(){this.seriesArray=[];this.seriesMap={};};Q96.extend(Q96.Plotter.prototype,{Series:function(i36,S55,x8L,p9b,o_W,G7L){this.name=i36;this.strokeOrFill=S55;this.color=x8L;this.moves=[];this.text=[];if(!p9b || p9b > 1 || p9b < 0){p9b=1;}this.opacity=p9b;if(!o_W || o_W > 25 || o_W < 1){o_W=1;}this.width=o_W;this.pattern=Q96.borderPatternToArray(o_W,G7L);},newSeries:function(l7d,X6t,p49,u4l,R9N){x2dci.J8h();var t2S;if(p49.constructor == String){t2S=new this.Series(l7d,X6t,p49,u4l,R9N);}else {t2S=new this.Series(l7d,X6t,p49.color,p49.opacity,R9N >= 0?R9N:Q96.stripPX(p49.width),p49.borderTopStyle);}this.seriesArray.push(t2S);this.seriesMap[l7d]=t2S;},reset:function(X$o){x2dci.J8h();var H5E;for(var N3T in this.seriesMap){if(X$o && X$o != N3T)continue;H5E=this.seriesMap[N3T];if(H5E){H5E.moves=[];H5E.text=[];}}},moveTo:function(a$n,J48,c9R){var K4b,a4l;K4b="mov";K4b+="eT";K4b+="o";a4l=this.seriesMap[a$n];a4l.moves.push({action:K4b,x:J48,y:c9R});},lineTo:function(h2v,l3T,F1Q){var L4W,M7E;L4W=this.seriesMap[h2v];M7E=L4W.pattern;L4W.moves.push({action:"lineTo",x:l3T,y:F1Q,pattern:M7E});},dashedLineTo:function(o__,R8r,f0J,U6E){var q1O,K5R;q1O="li";q1O+="neTo";x2dci.J8h();K5R=this.seriesMap[o__];K5R.moves.push({action:q1O,x:R8r,y:f0J,pattern:U6E});},quadraticCurveTo:function(o2o,C0R,H3k,e3L,Y39){var x7X,h0Q,H52;x7X="q";x2dci.J8h();x7X+="uadraticCurveTo";h0Q=this.seriesMap[o2o];H52=h0Q.pattern;h0Q.moves.push({action:x7X,x0:C0R,y0:H3k,x:e3L,y:Y39,pattern:H52});},bezierCurveTo:function(u18,P0J,s3g,U68,r5Q,d08,a85){var X7D,v8O;X7D=this.seriesMap[u18];v8O=X7D.pattern;X7D.moves.push({action:"bezierCurveTo",x0:P0J,y0:s3g,x1:U68,y1:r5Q,x:d08,y:a85,pattern:v8O});},addText:function(U$s,M6o,H0c,W6o,e4Z,k1N,e$W){var k5Q;k5Q=this.seriesMap[U$s];k5Q.text.push({text:M6o,x:H0c,y:W6o,bg:e4Z});},drawText:function(p$2,j$p){var L2W,w7s,k6j,N2l;x2dci.J8h();for(var R8q=0;R8q < j$p.text.length;R8q++){L2W=j$p.text[R8q];if(L2W.bg){w7s=L2W.width?L2W.width:p$2.measureText(L2W.text).width;k6j=L2W.height?L2W.height:"12" << 32;N2l=p$2.fillStyle;p$2.fillStyle=L2W.bg;if(p$2.textAlign == "right"){p$2.fillRect(L2W.x,L2W.y - k6j / 2,-w7s,-k6j);}else {p$2.fillRect(L2W.x,L2W.y - k6j / +"2",w7s,k6j);}p$2.fillStyle=N2l;}p$2.fillText(L2W.text,L2W.x,L2W.y);}},draw:function(B5K,r$b){var E_f,R8f,a6Q,c1u,v3y,r$Y;E_f=B5K.lineWidth;R8f=B5K.fillStyle;a6Q=B5K.strokeStyle;c1u=B5K.globalAlpha;for(var J1y=0;J1y < this.seriesArray.length;J1y++){v3y=this.seriesArray[J1y];if(r$b && v3y.name != r$b)continue;B5K.beginPath();B5K.lineWidth=v3y.width;B5K.globalAlpha=v3y.opacity;B5K.fillStyle=v3y.color;B5K.strokeStyle=v3y.color;B5K.save();for(var Y6r=0;Y6r < v3y.moves.length;Y6r++){r$Y=v3y.moves[Y6r];if(r$Y.pattern){B5K.setLineDash(r$Y.pattern);B5K.lineDashOffset=0;}else {B5K.setLineDash([]);}if(r$Y.action == "quadraticCurveTo"){B5K[r$Y.action](r$Y.x0,r$Y.y0,r$Y.x,r$Y.y);}else if(r$Y.action == "bezierCurveTo"){B5K[r$Y.action](r$Y.x0,r$Y.y0,r$Y.x1,r$Y.y1,r$Y.x,r$Y.y);}else {B5K[r$Y.action](r$Y.x,r$Y.y);}}if(v3y.strokeOrFill == "fill"){B5K.fill();}else {B5K.stroke();}B5K.closePath();B5K.restore();this.drawText(B5K,v3y);B5K.lineWidth=1;}B5K.lineWidth=E_f;B5K.fillStyle=R8f;B5K.strokeStyle=a6Q;B5K.globalAlpha=c1u;}},!"");};J=F27=>{var C2D;C2D=F27.CIQ;C2D.Renderer=function(){};C2D.Renderer.produce=function(U77,c_1){var x$S,x7F,e4D;x$S="l";x$S+="i";x2dci.J8h();x$S+="n";x$S+="e";x7F=null;if(U77){for(var k$j in C2D.Renderer){e4D=C2D.Renderer[k$j];if(e4D.requestNew){x7F=e4D.requestNew(U77.split((401.92,2190) >= (6096,9576)?8400 !== (550,329)?8.61e+3:5.91e+3:"_"),c_1);}if(x7F){return x7F;}}}c_1.type=x$S;return new C2D.Renderer.Lines({params:c_1});};C2D.Renderer.colorFunctions={};C2D.Renderer.registerColorFunction=function(p$1,P3V){x2dci.J8h();C2D.Renderer.colorFunctions[p$1]=P3V;};C2D.Renderer.unregisterColorFunction=function(g47){x2dci.r2m();delete C2D.Renderer.colorFunctions[g47];};C2D.Renderer.prototype.adjustYAxis=function(){};C2D.Renderer.prototype.draw=function(){};C2D.Renderer.prototype.drawIndividualSeries=function(e50,P$4){};C2D.Renderer.prototype.construct=function(u_j){var K6r;if(!u_j){u_j={};}K6r=u_j.params?u_j.params:{};if(!K6r.name){K6r.name=C2D.uniqueID();}if(!K6r.heightPercentage){K6r.heightPercentage=+"0.7";}if(!K6r.opacity){x2dci.C$o(19);K6r.opacity=x2dci.d58(0,"1");}if(K6r.highlightable !== !({})){K6r.highlightable=!!"1";}if(!K6r.panel){K6r.panel="chart";}if(K6r.yAxis){K6r.yAxis=new C2D.ChartEngine.YAxis(K6r.yAxis);if(!K6r.yAxis.name){K6r.yAxis.name=K6r.name;}}this.cb=u_j.callback;this.params=K6r;this.seriesParams=[];x2dci.J8h();this.caches={};this.colors={};};C2D.Renderer.prototype.attachSeries=function(s93,P1_){var k5y=x2dci;var Z7C,t9p,i0M,j5h,G7G,m_T,Y3i,X2o,c2P,b78,M22,v8L,U$V,z66;Z7C="str";Z7C+="ing";t9p=this.stx;if(!t9p){return this;}k5y.J8h();i0M=t9p.chart.series[s93];if(!i0M){i0M={parameters:{}};}j5h=this.params;G7G=i0M.parameters;m_T={id:s93,chartType:j5h.type,display:G7G.display,border_color_up:j5h.defaultBorders?"auto":null,fill_color_up:G7G.color,opacity_up:j5h.opacity,border_color_down:j5h.defaultBorders?"auto":null,fill_color_down:G7G.color,opacity_down:j5h.opacity,color:G7G.color,symbol:G7G.symbol,symbolObject:C2D.clone(G7G.symbolObject)};if(typeof P1_ == Z7C){m_T.color=m_T.fill_color_down=m_T.fill_color_up=P1_;}else if(typeof P1_ == "object"){for(var i9_ in P1_){m_T[i9_]=P1_[i9_];}Y3i=m_T.color;X2o=m_T.border_color;if(Y3i){if(!m_T.fill_color_up){m_T.fill_color_up=Y3i;}if(!m_T.fill_color_down){m_T.fill_color_down=Y3i;}if(!m_T.fill_color_even){m_T.fill_color_even=Y3i;}}if(X2o){if(!m_T.border_color_up){m_T.border_color_up=X2o;}if(!m_T.border_color_down){m_T.border_color_down=X2o;}if(!m_T.border_color_even){m_T.border_color_even=X2o;}}}if(m_T.symbol && m_T.field != m_T.symbol){m_T.subField=m_T.field;m_T.field=m_T.symbol;}if(!m_T.id){m_T.id=C2D.uniqueID();}c2P=0;for(;c2P < this.seriesParams.length;++c2P){if(this.seriesParams[c2P].id === m_T.id){this.removeSeries(m_T.id,!![]);break;}}this.seriesParams.splice(c2P,0,m_T);if(m_T.fill_color_up != m_T.fill_color_down){b78=" do";b78+="wn";M22=" ";M22+="u";M22+="p";v8L=" ";v8L+="u";v8L+="p";k5y.C$o(22);this.colors[k5y.c6Y(" up",s93)]={color:m_T.fill_color_up,opacity:m_T.opacity_up,display:m_T.display?m_T.display + v8L:s93 + M22};k5y.C$o(22);this.colors[k5y.d58(" dn",s93)]={color:m_T.fill_color_down,opacity:m_T.opacity_down,display:m_T.display?m_T.display + b78:s93 + " down"};}else {this.colors[s93]={color:m_T.fill_color_up,opacity:m_T.opacity_up,display:m_T.display?m_T.display:s93};}U$V=j5h.panel;if(!t9p.panels[U$V]){z66=j5h.yAxis;if(!z66){z66=new C2D.ChartEngine.YAxis();z66.needsInitialPadding=!![];}z66.name=U$V;t9p.createPanel(U$V,U$V,null,null,z66);}else {if(j5h.yAxis){j5h.yAxis=t9p.addYAxis(t9p.panels[U$V],j5h.yAxis);j5h.yAxis.needsInitialPadding=!!({});G7G.yAxis=j5h.yAxis;t9p.resizeChart();}else if(m_T.yAxis){j5h.yAxis=m_T.yAxis;}}return this;};C2D.Renderer.prototype.removeSeries=function(K6S,h69){var s6y=x2dci;var c$9,E4o,S0B,X7W,G$h,W9B,o7i,h3U,E$Y,c7v;c$9=" ";c$9+="d";c$9+="n";E4o=" ";E4o+="u";E4o+="p";S0B=null;X7W=!!0;G$h=this.stx;W9B=G$h.chart;for(var Y5O in W9B.seriesRenderers){o7i=W9B.seriesRenderers[Y5O];for(var o6F=0;o6F < o7i.seriesParams.length;o6F++){h3U=o7i.seriesParams[o6F];if(h3U.id == K6S && this === o7i){S0B=o6F;}else if(h3U.isComparison && h3U.panel == W9B.panel.name && (!h3U.yAxis || h3U.yAxis == W9B.yAxis)){X7W=!![];}}}if(S0B !== null){if(W9B.forcePercentComparison && !X7W && this.seriesParams[S0B].isComparison && G$h.layout.chartScale != "linear"){G$h.setChartScale();}this.seriesParams.splice(S0B,1);}s6y.C$o(22);delete this.colors[s6y.d58(E4o,K6S)];s6y.C$o(22);delete this.colors[s6y.c6Y(c$9,K6S)];s6y.J8h();delete this.colors[K6S];if(!h69){for(var J_d in W9B.seriesRenderers){c7v=W9B.seriesRenderers[J_d];for(var j5_=0;j5_ < c7v.seriesParams.length;j5_++){if(c7v.seriesParams[j5_].id == K6S){E$Y=!![];break;}E$Y=![];}if(E$Y)break;}if(E$Y === !({}) || S0B !== null){G$h.deleteSeries(K6S,W9B);};}G$h.deleteYAxisIfUnused(G$h.panels[this.params.panel],this.params.yAxis);G$h.resizeChart();G$h.layout.symbols=G$h.getSymbols({"include-parameters":!!({}),"exclude-studies":!!"1"});G$h.changeOccurred("layout");return this;};C2D.Renderer.prototype.modifyRenderer=function(H8p){var V_3,t5J,A3J;V_3=this.params;x2dci.J8h();var {stx:Z5v}=this;for(var c3Y in H8p){t5J="t";t5J+="y";t5J+="p";t5J+="e";A3J=H8p[c3Y];switch(c3Y){case "baseline":if(A3J){if(typeof A3J === "object"){this.params.baseline=C2D.ensureDefaults(A3J,C2D.ChartEngine.Chart.prototype.baseline);}Z5v.registerBaselineToHelper(this);}else {Z5v.removeBaselineFromHelper(this);}break;case t5J:this.params.type=A3J;break;case "style":this.params.style=A3J;break;default:break;}}};C2D.Renderer.prototype.getDependents=function(B4S){var D$6,H1G;D$6=[];for(var q2z in B4S.chart.seriesRenderers){H1G=B4S.chart.seriesRenderers[q2z];if(H1G.params.dependentOf == this.params.name){D$6.push(H1G);}}x2dci.r2m();return D$6;};C2D.Renderer.prototype.undraggable=function(F6Q){x2dci.J8h();if(this == F6Q.mainSeriesRenderer){return !![];}return this.params.dependentOf == F6Q.mainSeriesRenderer.params.name;};C2D.Renderer.prototype.removeAllSeries=function(R7g){var m0k;if(R7g || this === this.stx.mainSeriesRenderer){m0k=[];for(var X0J=0;X0J < this.seriesParams.length;X0J++){m0k.push(this.seriesParams[X0J].id);}for(var B65=0;B65 < m0k.length;B65++){this.removeSeries(m0k[B65]);}}this.seriesParams=[];this.colors={};this.stx.deleteYAxisIfUnused(this.stx.panels[this.params.panel],this.params.yAxis);this.stx.resizeChart();return this;};C2D.Renderer.prototype.getYAxis=function(b8d){var u2T,C21;if(this.params){if(this.params.yAxis){u2T=this.params.yAxis;}else {C21=b8d.panels[this.params.panel];if(!C21){return !"1";}u2T=C21.yAxis;}}else {u2T=b8d.chart.panel.yAxis;}return u2T;};C2D.Renderer.prototype.ready=function(){this.stx.createDataSet();this.stx.draw();return this;};C2D.Renderer.Lines=function(R4i){var y8C,n1y;y8C="obje";y8C+="ct";n1y="l";n1y+="in";n1y+="e";this.construct(R4i);var {params:i93}=this;if(!i93.type){i93.type=n1y;}if(!i93.style){switch(i93.type){case "mountain":if(i93.baseline){i93.style="stx_baseline_delta_mountain";}else if(i93.colored){i93.style="stx_colored_mountain_chart";}else {i93.style="stx_mountain_chart";}break;default:i93.style="stx_line_chart";}}this.supportsAnimation=!!({});if(i93.type == "wave" || i93.type == "channel"){i93.step=i93.vertex=i93.baseline=i93.colored=!!0;this.highLowBars=this.barsHaveWidth=!!1;this.supportsAnimation=!({});}else if(i93.type == "step"){i93.step=!!({});}var {baseline:d3t}=i93;if(d3t && typeof d3t === y8C){C2D.ensureDefaults(i93.baseline,C2D.ChartEngine.Chart.prototype.baseline);}};C2D.inheritsFrom(C2D.Renderer.Lines,C2D.Renderer,!({}));C2D.Renderer.Lines.requestNew=function(E1U,h1h){var Z3r,k_f,A1v,J4N,B7Y,y6b,e$U,w$0;Z3r=null;k_f=h1h.step;A1v=h1h.colored;J4N=h1h.baseline;B7Y=h1h.vertex;for(var A1y=0;A1y < E1U.length;A1y++){y6b="ver";y6b+="t";y6b+="ex";e$U="s";e$U+="te";e$U+="p";w$0=E1U[A1y];switch(w$0){case "line":case "mountain":case "wave":case "channel":Z3r=w$0;break;case "baseline":J4N=!!"1";break;case "colored":A1v=!"";break;case e$U:k_f=!![];break;case y6b:B7Y=!!({});break;case "delta":break;default:return null;}}if(Z3r === null && !J4N && !k_f){return null;}return new C2D.Renderer.Lines({params:C2D.extend(h1h,{type:Z3r,step:k_f,colored:A1v,baseline:J4N,vertex:B7Y})});};C2D.Renderer.Lines.prototype.draw=function(){var j27,N9H,B3M,S$w,B_y,i7l,P5K,c0k,p9T,l9R,g09,D8q,Z99,f3j;j27=this.stx;N9H=this.stx.panels[this.params.panel];B3M=N9H.chart;S$w={};i7l=this.seriesParams;P5K=this.params.colorFunction;for(B_y=0;B_y < i7l.length;B_y++){c0k=i7l[B_y];if(this.params.colored){p9T="_col";p9T+="or";l9R="_col";l9R+="or_down";g09=["_color_up",l9R,p9T];for(var C1U=0;C1U < g09.length;C1U++){D8q="f";D8q+="i";D8q+="l";D8q+="l";Z99=c0k["border" + g09[C1U]];if(Z99 && Z99 != "auto"){c0k[D8q + g09[C1U]]=Z99;};}if(!P5K){P5K=Y37(c0k);}this.params.colorFunction=P5K;}f3j={};if(B3M.series[c0k.id]){f3j=C2D.clone(B3M.series[c0k.id].parameters);}S$w[c0k.id]={parameters:C2D.extend(C2D.extend(f3j,this.params),c0k),yValueCache:this.caches[c0k.id]};if(this == j27.mainSeriesRenderer && B3M.customChart && B3M.customChart.colorFunction){S$w[c0k.id].parameters.colorFunction=B3M.customChart.colorFunction;}}j27.drawSeries(B3M,S$w,this.params.yAxis,this);for(B_y in S$w){this.caches[B_y]=S$w[B_y].yValueCache;}function Y37(t27){var E5M,s1e,L4C,t1l,A0a;E5M="stx_l";E5M+="i";E5M+="ne_down";s1e="stx_l";s1e+="ine";s1e+="_";s1e+="up";L4C=t27.fill_color_up || j27.getCanvasColor(s1e);t1l=t27.fill_color_down || j27.getCanvasColor(E5M);A0a=t27.color || j27.getCanvasColor("stx_line_chart");return function(d89,E38,M5b){if(!E38.iqPrevClose && E38.iqPrevClose !== 0){return A0a;}if(E38.Close > E38.iqPrevClose){return L4C;}if(E38.Close < E38.iqPrevClose){return t1l;}x2dci.J8h();return A0a;};}};C2D.Renderer.Lines.prototype.drawIndividualSeries=function(b6O,f3g){var I8C,g0Z,e5U,E_Y,j9M,B7_,j0c,h7r,h6T,f51;I8C="c";I8C+="ha";I8C+="nnel";if(f3g.invalid){return;}g0Z=this.stx;e5U=b6O.context;x2dci.r2m();E_Y=null;j9M=f3g.colorFunction;B7_=g0Z.panels[f3g.panel] || b6O.panel;if(typeof j9M == "string"){j9M=C2D.Renderer.colorFunctions[j9M];if(!j9M){return;}}if(f3g.vertex){j0c="bev";j0c+="e";j0c+="l";e5U.save();e5U.lineJoin=j0c;}if(f3g.type == "wave"){E_Y=g0Z.drawWaveChart(B7_,f3g);}else if(f3g.baseline){E_Y=g0Z.drawBaselineChart(B7_,f3g);g0Z.positionBaselineHandle(this);}else if(f3g.type == "mountain"){f3g.returnObject=!!"1";E_Y=g0Z.drawMountainChart(B7_,f3g,j9M);}else if(f3g.type == I8C){f3g.returnObject=!!"1";E_Y=g0Z.drawChannelChart(B7_,j9M,f3g);}else {h7r=-729920541;h6T=1606503021;f51=2;for(var V3y=1;x2dci.q2D(V3y.toString(),V3y.toString().length,18937) !== h7r;V3y++){f3g.returnObject=!!0;E_Y=g0Z.drawLineChart(B7_,f3g.style,j9M,f3g);f51+=+"2";}if(x2dci.q2D(f51.toString(),f51.toString().length,49692) !== h6T){f3g.returnObject=!"";E_Y=g0Z.drawLineChart(B7_,f3g.style,j9M,f3g);}}if(f3g.vertex){g0Z.scatter(B7_,{yAxis:f3g.yAxis,field:f3g.symbol || f3g.field,subField:f3g.subField,symbol:f3g.symbol,color:f3g.vertex_color,highlight:f3g.highlight});e5U.restore();}return E_Y;};C2D.Renderer.OHLC=function(n9L){var K4Z,P78;K4Z="can";K4Z+="dle";this.construct(n9L);P78=this.params;if(!P78.type){P78.type="candle";}this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});if(P78.histogram){P78.type="candle";this.highLowBars=!!0;P78.volume=P78.hollow=!1;}if(P78.type == "bar"){P78.volume=P78.hollow=P78.histogram=!({});}if(P78.type == K4Z){P78.hlc=P78.colored=!({});}if(P78.volume){P78.hollow=!"";}};C2D.inheritsFrom(C2D.Renderer.OHLC,C2D.Renderer,![]);C2D.Renderer.OHLC.requestNew=function(F$3,P0p){var G5Z,d1O,Z5Y,B1l,V5T;G5Z=null;x2dci.J8h();d1O=P0p.histogram;for(var V6D=0;V6D < F$3.length;V6D++){Z5Y="histogr";Z5Y+="am";B1l=F$3[V6D];switch(B1l){case "candle":G5Z=B1l;break;case Z5Y:V5T="can";V5T+="d";V5T+="le";d1O=!!"1";G5Z=V5T;break;default:return null;}}if(G5Z === null){return null;}return new C2D.Renderer.OHLC({params:C2D.extend(P0p,{type:G5Z,histogram:d1O})});};C2D.Renderer.OHLC.getChartParts=function(e15,e4z){var S3G,t39,W8c,z4c,t8H,U8k,D8z,R7V,R1R,v4Q,v5G,p6q,L7u,H0$,M2v,f05,H$h,U0Z,v7C,L$5;S3G="borde";S3G+="r_";S3G+="colo";x2dci.J8h();S3G+="r_down";t39="fill_color";t39+="_dow";t39+="n";W8c="candl";W8c+="e";z4c="ca";z4c+="ndle";t8H="ca";t8H+="nd";t8H+="le";U8k="c";U8k+="andle";D8z="shad";D8z+="ow";R7V="stx_c";R7V+="andle_sh";R7V+="adow";R1R="s";R1R+="had";R1R+="ow";v4Q="can";v4Q+="d";v4Q+="le";v5G="fill_color_";v5G+="even";p6q="s";p6q+="tx_histogram_even";L7u="histo";L7u+="gr";L7u+="am";H0$="stx_hist";H0$+="og";H0$+="r";H0$+="am_down";M2v="his";M2v+="togr";M2v+="am";f05="his";f05+="to";f05+="gram";H$h="fill_c";H$h+="olor_up";U0Z=+"8";v7C=16;L$5=+"32";return [{type:"histogram",drawType:"histogram",style:"stx_histogram_up",condition:U0Z,fill:H$h,border:"border_color_up",useColorInMap:!"",useBorderStyleProp:!!"1"},{type:f05,drawType:M2v,style:H0$,condition:v7C,fill:"fill_color_down",border:"border_color_down",useColorInMap:!!({}),useBorderStyleProp:!!({})},{type:"histogram",drawType:L7u,style:p6q,condition:L$5,fill:v5G,border:"border_color_even",skipIfPass:!!({}),useColorInMap:!0,useBorderStyleProp:!!1},{type:v4Q,drawType:R1R,style:R7V,border:"border_color_up"},{type:"candle",drawType:D8z,style:"stx_candle_shadow_up",condition:U0Z,border:"border_color_up"},{type:U8k,drawType:"shadow",style:"stx_candle_shadow_down",condition:v7C,border:"border_color_down"},{type:t8H,drawType:"shadow",style:"stx_candle_shadow_even",condition:L$5,border:"border_color_even",skipIfPass:!0},{type:"candle",drawType:"candle",style:"stx_candle_up",condition:U0Z,fill:"fill_color_up",border:"border_color_up",useColorInMap:!![],useBorderStyleProp:!""},{type:z4c,drawType:W8c,style:"stx_candle_down",condition:v7C,fill:t39,border:S3G,useColorInMap:!![],useBorderStyleProp:!0}];;};C2D.Renderer.OHLC.prototype.draw=function(){var K4z,B89,h4Y,z9W,N59,S8r,T2C,q2k;K4z=this.stx;B89=this.stx.panels[this.params.panel];h4Y=B89.chart;z9W={};S8r=this.seriesParams;for(N59=0;N59 < S8r.length;N59++){T2C=S8r[N59];q2k={};if(h4Y.series[T2C.id]){q2k=C2D.clone(h4Y.series[T2C.id].parameters);}z9W[T2C.id]={parameters:C2D.extend(C2D.extend(q2k,this.params),T2C)};if(this == K4z.mainSeriesRenderer && h4Y.customChart && h4Y.customChart.colorFunction){z9W[T2C.id].parameters.colorFunction=h4Y.customChart.colorFunction;}}K4z.drawSeries(h4Y,z9W,this.params.yAxis,this);for(N59 in z9W){if(z9W[N59].yValueCache){this.caches[N59]=z9W[N59].yValueCache;}}};C2D.Renderer.OHLC.prototype.getColor=function(b_q,e0c,t9D,A2e,L7N,n5F){var I_C,j0F,L9G,l4T,l0e,J6c,L1w;I_C=n5F || t9D.color;j0F=this.params.yAxis || e0c.yAxis;if(A2e){I_C=n5F || t9D.borderLeftColor || t9D["border-left-color"];if(!I_C){return null;}}if(!L7N){return I_C;}L9G=b_q.pixelFromTransformedValue(j0F.highValue,e0c);if(isNaN(L9G)){L9G=0;}l4T=t9D.backgroundColor;if(I_C && !C2D.isTransparent(I_C)){l0e="b";l0e+="ott";l0e+="om";J6c="t";J6c+="o";J6c+="p";L1w=b_q.chart.context.createLinearGradient(+"0",L9G,0,2 * j0F[j0F.flipped?J6c:l0e] - L9G);L1w.addColorStop(0,I_C);L1w.addColorStop(1,l4T);return L1w;}return l4T;};C2D.Renderer.OHLC.prototype.drawIndividualSeries=function(x0g,L_o){var j1Q,z7E,R2r,D21,F5F,q9Y,E6_,r$F,Y8l,e5k,m4H,U51,I1E,N1i,Z0j,i9I,v8D,r3r,o7F,z0L,d0Y,n0T,G3m,e7g,j6_,d_e,m$M,J4r,x7b,P7y,h$B,o17,b8I,S1V,T5Z,v2Y,j0t,k71,u$o,o5n;j1Q="op";j1Q+="e";j1Q+="n";if(L_o.invalid){return;}z7E=this.stx;R2r=x0g.context;D21=L_o.colorFunction;F5F=z7E.panels[L_o.panel] || x0g.panel;if(typeof D21 == "string"){D21=C2D.Renderer.colorFunctions[D21];if(!D21){return;}}q9Y=z7E.layout.candleWidth - x0g.tmpWidth <= +"2" && x0g.tmpWidth <= 3;E6_=1;r$F=2;Y8l=4;e5k=8;m4H=16;U51=32;if(!x0g.state.chartType){x0g.state.chartType={};}I1E=x0g.state.chartType.pass={};N1i=z7E.colorByCandleDirection;if(L_o.colorBasis){N1i=L_o.colorBasis == j1Q;}Z0j=L_o.histogram;i9I=L_o.type;v8D=L_o.hollow;r3r=z7E.noWicksOnCandles[i9I];z7E.startClip(F5F.name);o7F=null;z0L={colors:[],cache:[]};d0Y=[];if(D21){n0T={isHistogram:Z0j,field:L_o.field,yAxis:L_o.yAxis,isVolume:L_o.volume,highlight:L_o.highlight};if(!Z0j && i9I == "bar"){G3m="stx_b";G3m+="ar_";G3m+="char";G3m+="t";n0T.type=L_o.hlc?"hlc":"bar";z0L=z7E.drawBarChart(F5F,G3m,D21,n0T);}else {e7g="candl";e7g+="e";if(i9I == e7g && !r3r){z7E.drawShadows(F5F,D21,n0T);}z0L=z7E.drawCandles(F5F,D21,n0T);n0T.isOutline=!"";if(v8D || !q9Y){z7E.drawCandles(F5F,D21,n0T);};}}else {j6_=Z0j && L_o.gradient !== !({});d_e=C2D.Renderer.OHLC.getChartParts(L_o.style,N1i);for(var o95=0;o95 < d_e.length;o95++){m$M=d_e[o95];if(m$M.skipIfPass && !I1E.even)continue;else if(Z0j){J4r="h";J4r+="ist";J4r+="og";J4r+="ram";if(m$M.type != J4r)continue;}else if(i9I == "bar"){if(m$M.type != "bar")continue;else if(L_o.colored && !m$M.condition)continue;else if(!L_o.colored && m$M.condition)continue;}else if(v8D){if(m$M.type != "hollow")continue;else if(m$M.drawType == "shadow" && r3r)continue;}else if(i9I == "candle"){x7b="shad";x7b+="ow";if(m$M.type != "candle")continue;else if(m$M.drawType == x7b){P7y="s";P7y+="tx_candle_shadow_d";P7y+="own";h$B="st";h$B+="x_candle_shad";h$B+="o";h$B+="w_up";if(r3r)continue;o17=L_o.border_color_up || z7E.getCanvasColor(h$B);b8I=L_o.border_color_down || z7E.getCanvasColor(P7y);S1V=L_o.border_color_even || z7E.getCanvasColor("stx_candle_shadow_even");if(!C2D.colorsEqual(o17,b8I) || !C2D.colorsEqual(o17,S1V) || !C2D.colorsEqual(o17,z7E.defaultColor)){if(!m$M.condition)continue;}else if(m$M.condition)continue;}}else continue;T5Z=z7E.canvasStyle(m$M.style);v2Y=this.getColor(z7E,F5F,T5Z,!"1",![],L_o[m$M.fill]);j0t=this.getColor(z7E,F5F,T5Z,!({}),j6_,L_o[m$M.fill]);k71=this.getColor(z7E,F5F,T5Z,m$M.useBorderStyleProp && !q9Y,j6_,L_o[m$M.border]);if(m$M.drawType == "candle"){if(m$M.type == "hollow"){u$o="tr";u$o+="an";u$o+="spa";u$o+="rent";if(!C2D.isTransparent(j0t) && C2D.colorsEqual(k71,j0t)){k71=m$M.useColorInMap?u$o:j0t;}if(!m$M.useColorInMap){j0t=z7E.containerColor;}}else if(m$M.type == "candle"){if(q9Y){if(C2D.isTransparent(j0t)){j0t=k71;}else {k71=j0t;};}}}R2r.globalAlpha=L_o.opacity;d0Y.push(z7E.drawBarTypeChartInner({fillColor:j0t,borderColor:k71,condition:m$M.condition,style:m$M.style,type:i9I == "bar" && L_o.hlc?"hlc":m$M.drawType,panel:F5F,field:L_o.field,yAxis:L_o.yAxis,volume:L_o.volume && L_o.hollow,highlight:L_o.highlight}));if(!o7F){o7F={};}if(m$M.useColorInMap){o7F[v2Y]=1;}}}z7E.endClip();for(var G0c in o7F){if(!L_o.hollow || !C2D.equals(G0c,z7E.containerColor)){z0L.colors.push(G0c);}}for(G0c="0" - 0;G0c < d0Y.length;G0c++){for(var j2e=0;j2e < d0Y[G0c].cache.length;j2e++){o5n=d0Y[G0c].cache[j2e];if(o5n || o5n === ("0" | 0)){z0L.cache[j2e]=o5n;}}}return z0L;};C2D.Renderer.Candles=function(o_A){var W7_;this.construct(o_A);W7_=this.params;W7_.type="candle";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});W7_.hlc=W7_.colored=W7_.histogram=!({});x2dci.J8h();if(W7_.volume){W7_.hollow=!0;}};C2D.inheritsFrom(C2D.Renderer.Candles,C2D.Renderer.OHLC,!!"");C2D.Renderer.SimpleHistogram=function(h_k){var m3C;this.construct(h_k);m3C=this.params;m3C.type="candle";m3C.histogram=!"";this.barsHaveWidth=this.standaloneBars=!![];x2dci.J8h();this.highLowBars=!1;m3C.hlc=m3C.colored=m3C.hollow=m3C.volume=!({});};C2D.inheritsFrom(C2D.Renderer.SimpleHistogram,C2D.Renderer.Candles,!"1");};P=s7K=>{var U9z=x2dci;var s5W,V8J,v1P,G$n;s5W=752702637;U9z.M8Y(74);V8J=-U9z.d58("1060473216",0);v1P=2;for(var q4v=1;U9z.O$R(q4v.toString(),q4v.toString().length,4499) !== s5W;q4v++){G$n=s7K.CIQ;v1P+=2;}if(U9z.O$R(v1P.toString(),v1P.toString().length,+"69032") !== V8J){G$n=s7K.CIQ;}G$n=s7K.CIQ;G$n.capitalize=function(C7e){if(!C7e){return "";}U9z.C$o(17);U9z.J8h();var e81=U9z.c6Y(1,3,8,14,3);return C7e.charAt(0).toUpperCase() + C7e.slice(e81);};G$n.camelCaseRegExp=/-([a-z])/g;G$n.makeCamelCase=function(U67){U9z.r2m();return U67.replace(G$n.camelCaseRegExp,function(G$z){U9z.J8h();return G$z[1].toUpperCase();});};G$n.uniqueID=function(q55){var L5O,W19,v7S,A0x,Z8x,o9l;if(q55){L5O="xxxxxxxx-xxxx-4xxx-yxxx";L5O+="-xxxxxxxxxxxx";W19="un";W19+="def";W19+="ine";W19+="d";v7S=new Date().getTime();if(typeof window !== W19 && window.performance && typeof window.performance.now === "function"){v7S+=window.performance.now();;}A0x=L5O.replace(/[xy]/g,function(y0v){U9z.J8h();var d8P;U9z.M8Y(67);var k8d=U9z.c6Y(5,15,5);U9z.M8Y(92);var c8b=U9z.d58(1,26,19,8);d8P=(v7S + Math.random() * k8d) % c8b | 0;U9z.C$o(40);v7S=Math.floor(U9z.d58(16,v7S));return (y0v == (2355 < 436?(2.51e+3,0x1c34):9040 != 8650?"x":7360 === (6140,343.96)?("f",0xfc0):(735.53,"0x21a6" >> 64))?d8P:d8P & 0x3 | 0x8).toString(16);});return A0x;}Z8x=new Date();o9l=Z8x.getTime().toString(36);o9l+=Math.floor(Math.random() * Math.pow(36,2)).toString(36);return o9l.toUpperCase();};};T=h3o=>{x2dci.r2m();;};W=I0h=>{var r7q=x2dci;var Z7T;Z7T=I0h.CIQ;Z7T.getHostName=function(k8L){r7q.r2m();try{return k8L.match(/:\/\/(.[^/]+)/)[1];}catch(Q$t){return "";}};Z7T.qs=function(M9K){var s3Y,u8z,J2g,O8O;s3Y={};if(!M9K){M9K=window.location.search.substring(1);}u8z=M9K.split("&");for(var a8l="0" - 0;a8l < u8z.length;a8l++){J2g=u8z[a8l].indexOf("=");if(J2g > "0" << 0){O8O=u8z[a8l].substring(+"0",J2g);r7q.M8Y(22);s3Y[O8O]=u8z[a8l].substring(r7q.d58(1,J2g));}else {O8O=u8z[a8l];s3Y[O8O]=null;}}r7q.J8h();return s3Y;};Z7T.postAjax=function(m5l,Y2h,K_8,m4d,o4m){var i15,m_H,q8U,T4C,q5_,g9H,B_7,T2o,v40,E42;i15="applicat";i15+="ion/x-ww";i15+="w-form-urlencoded";m_H="G";m_H+="E";m_H+="T";q8U="PO";q8U+="S";q8U+="T";r7q.r2m();if(typeof m5l == "string"){m5l={url:m5l,payload:Y2h,cb:K_8,contentType:m4d,noEpoch:o4m,method:null,responseHeaders:![]};}T4C=m5l.url;q5_=m5l.cb;g9H=m5l.payload;if(!q5_){q5_=function(){};}if(!m5l.ungovernable){if(Z7T.Extras && Z7T.Extras.RequestLimiter && Z7T.Extras.RequestLimiter.hitRequestLimit(T4C)){q5_(429,null,{});return;}}B_7=new XMLHttpRequest();if(!B_7){return !1;}T2o=new Date();if(!m5l.noEpoch){if(T4C.indexOf((542.82,516.6) !== ("7355" >> 0,622.46)?664.68 === 966.41?(47.80,505.80):(7470,6292) <= (9190,2158)?(331.19,9.54e+3):"?":("j",!!"")) == -("1" - 0)){T4C+="?ciqrandom=" + T2o.getTime();}else {T4C+="&ciqrandom=" + T2o.getTime();}}v40=m5l.method;E42=m5l.headers;if(!v40){v40=g9H?q8U:m_H;}B_7.open(v40,T4C,!!({}));if(!m5l.contentType){m5l.contentType=i15;}if(g9H){B_7.setRequestHeader("Content-Type",m5l.contentType);}if(E42){for(var f8c in E42){B_7.setRequestHeader(f8c,E42[f8c]);}}if(m5l.timeout){B_7.timeout=m5l.timeout;;}B_7.ontimeout=function(){r7q.J8h();r7q.M8Y(74);q5_(r7q.c6Y("408",0),null,{});};B_7.onload=function(){if(this.status === 0){this.status=8482 <= 337.68?(1.07e+3,461.94):"0";}else if(!this.status){this.status=200;}q5_(this.status,this.responseText,z6D(this));};B_7.onerror=function(){r7q.r2m();q5_((5840,9120) >= (6150,5790)?"0":(0x25bc,0x1fcd),null,{});};try{B_7.send(g9H);}catch(K2b){q5_(+"574" < 732.1?"0":(4164,+"3100") > ("941" * 1,+"2820")?0x20c2:("m","b"),K2b,{});}function z6D(s0x){r7q.r2m();var i28,G83,E87,i$B;i28={};if(!m5l.responseHeaders){return;}G83=s0x.getAllResponseHeaders();E87=G83.split("\n");for(var P5G="0" >> 64;P5G < E87.length;P5G++){i$B=E87[P5G].split((372.72,376.43) == (5666,3596)?"L":840 <= (3268,2400)?(3420,5610) <= 169?0x1955:":":(0x1a32,!!({})));while(i$B[1] && i$B[1].charAt(0) == ((114.63,376.99) == (3120,4310)?3.96e+2:967.56 === 517?"3.34e+3" - 0:" ")){i$B[1]=i$B[1].substring(1);}if(i$B[0] !== ""){i28[i$B.shift()]=i$B.join(":");}}return i28;}return !![];};Z7T.loadUI=function(d82,X1u,j0Y){var M4K,C5v,k9O,c0L,O6o,C_f;r7q.r2m();M4K="f";M4K+="u";M4K+="nctio";M4K+="n";if(!X1u || typeof X1u == M4K){j0Y=X1u;X1u=document.body;}r7q.C$o(53);C5v=document.querySelector(r7q.c6Y('iframe[original-url="',d82,'"]'));k9O=function(){var v6f,T5y,s$Y,C2T,Y7A,s8b,R4$,C_y,j7H,r2b,Q1I;r7q.J8h();v6f=null;try{T5y=1861640420;s$Y=979245143;C2T=2;for(var c47=1;r7q.q2D(c47.toString(),c47.toString().length,33408) !== T5y;c47++){v6f=this.contentDocument;C2T+=2;}if(r7q.O$R(C2T.toString(),C2T.toString().length,+"93510") !== s$Y){v6f=this.contentDocument;}}catch(M7x){return j0Y(M7x);}if(v6f && !v6f.title){Y7A=-494882274;r7q.C$o(74);s8b=r7q.d58("463776805",37);R4$=2;for(var C4F=+"1";r7q.q2D(C4F.toString(),C4F.toString().length,300) !== Y7A;C4F++){C_y=v6f.body.innerHTML;j7H=document.createElement("");Z7T.innerHTML(j7H,C_y);R4$+=2;}if(r7q.q2D(R4$.toString(),R4$.toString().length,97969) !== s8b){C_y=v6f.body.innerHTML;j7H=document.createElement("div");Z7T.innerHTML(j7H,C_y);}for(var Q1K=+"0";Q1K < j7H.children.length;Q1K++){r2b=j7H.children[Q1K].cloneNode(!!({}));X1u.appendChild(r2b);}j0Y(null);}else {Q1I="iFrame ";Q1I+="not found or document has a ";Q1I+="tit";Q1I+="le";j0Y(new Error(Q1I));}};if(C5v){c0L="ab";c0L+="out:bl";c0L+="a";c0L+="nk";O6o="complet";O6o+="e";C_f=null;try{C_f=C5v.contentDocument;}catch(s8a){return j0Y(s8a);}if(C_f.readyState === O6o && C_f.location && C_f.location.href !== c0L){k9O.call(C5v);}else {C5v.addEventListener("load",k9O);}}else {C5v=document.createElement("iframe");C5v.setAttribute("original-url",d82);r7q.C$o(68);var l73=r7q.c6Y(119,12,10);r7q.M8Y(108);var L$W=r7q.d58(19,8,17,7914,55255);r7q.C$o(36);var j4l=r7q.d58(4645,10,4642,9284);r7q.M8Y(0);var u0L=r7q.d58(128490,119924);r7q.M8Y(109);var d$j=r7q.d58(14,3706,8,6,738);r7q.M8Y(110);var k0C=r7q.c6Y(6141,4,1226,6141,11);r7q.C$o(111);var Y_M=r7q.d58(9,5836,5,11);r7q.C$o(7);var t7J=r7q.c6Y(20,0,19);r7q.C$o(0);var J8Q=r7q.c6Y(54824,50908);r7q.C$o(110);var m61=r7q.c6Y(9026,17,9017,8998,9);r7q.C$o(0);var u$z=r7q.d58(45120,39480);r7q.M8Y(53);var I0O=r7q.c6Y(179,12,2855);r7q.M8Y(30);var t5Q=r7q.c6Y(20,91896,84218);r7q.M8Y(67);var S8d=r7q.d58(6370,5450,7);r7q.M8Y(112);var v6o=r7q.c6Y(11,657,660,660);r7q.C$o(7);var I_4=r7q.d58(4,5472,21);r7q.C$o(113);var G5u=r7q.d58(14,7995,103800,1,9);r7q.C$o(114);var w$b=r7q.c6Y(144126,2647,9,18,2669);r7q.C$o(31);var J43=r7q.c6Y(6640,8,46544,3,7);r7q.C$o(0);var f60=r7q.d58(5770,20);r7q.M8Y(68);var q6i=r7q.c6Y(175344,8,22480);C5v.src=d82 + (d82.indexOf(("787.1" * l73,980.47) != 309.02?"?":L$W < (j4l,u0L)?(d$j,k0C) < 531.09?Y_M:(377.27,"774.81" - 0):966.66) === t7J?J8Q >= (m61,u$z)?+"4680" < +"5770"?(I0O,t5Q) == S8d?(v6o,!![]):(!!"1",443.98):("H",I_4):"?":G5u == 412.82?933.53:(+"3692",w$b) === (J43,+"4660")?(f60,q6i):"&") + Z7T.uniqueID();C5v.hidden=!![];C5v.addEventListener("load",k9O);document.body.appendChild(C5v);}};r7q.r2m();Z7T.loadScript=function(j85,k2s,a99){var S9d,v$W,v_V,M0J,I0p,x0A;if(!Z7T.loadedScripts){Z7T.loadedScripts={};}if(Z7T.loadedScripts[j85]){if(k2s){k2s();}return;}S9d=document.createElement("SCRIPT");if(a99){S9d.type="module";S9d.crossOrigin="use-credentials";}else {S9d.async=!![];}S9d.onload=function(){Z7T.loadedScripts[j85]=!!"1";r7q.r2m();if(k2s){k2s();}};v$W=j85;if(v$W.indexOf((316.25,4169) < (1960,1664)?751.38:7783 < (+"3635","2380" << 32)?(231.75,+"517.91"):"?") == -1){r7q.M8Y(115);var h2H=r7q.d58(8,580,1,116,8703);r7q.M8Y(67);var G8$=r7q.d58(5700,5689,1900);r7q.C$o(76);var V12=r7q.c6Y(519,3,8120,9);r7q.C$o(0);var N5V=r7q.c6Y(4777,20);v$W=v$W + ("424.87" - 0 != (+"5650",286.68)?(+"8920",+"952.64") < 564.37?(h2H,G8$) != V12?!![]:(!!1,795.53):"?":N5V) + Date.now();}else {v_V=-333127598;M0J=-141228883;I0p=2;for(var H09=1;r7q.O$R(H09.toString(),H09.toString().length,29443) !== v_V;H09++){v$W=(v$W - "") * Date.now();I0p+=2;}if(r7q.O$R(I0p.toString(),I0p.toString().length,22346) !== M0J){v$W=(v$W - "") * Date.now();}v$W=v$W + "&" + Date.now();}S9d.src=v$W;x0A=document.getElementsByTagName("script")[0];if(!x0A){document.body.append(S9d);}else {x0A.parentNode.insertBefore(S9d,x0A.nextSibling);}};Z7T.loadStylesheet=function(y3x,j3N){var b20,U0Y,W8D,v6E;b20="l";b20+="i";b20+="n";b20+="k";U0Y=document.createElement("link");U0Y.rel="stylesheet";U0Y.type="text/css";U0Y.media="screen";r7q.C$o(68);var e7b=r7q.d58(43876,16,2926);r7q.M8Y(22);var o1A=r7q.c6Y(9,599);r7q.M8Y(54);var Y66=r7q.c6Y(12,10,19,77);r7q.M8Y(34);var K_3=r7q.d58(13,10,13,11);r7q.M8Y(68);var H6R=r7q.d58(1158510,11,105800);r7q.M8Y(81);var S4I=r7q.d58(18,268,12,54678);r7q.C$o(116);var K0G=r7q.d58(1,1646504,103248,17,16);r7q.C$o(16);var M7j=r7q.d58(3,0,17,52);r7q.M8Y(117);var v3U=r7q.c6Y(12,5013,10,74981,16);r7q.C$o(118);var Y9B=r7q.c6Y(14,19,2,140980,1966006);r7q.M8Y(119);var o57=r7q.c6Y(8443,16,14,8468,1214);r7q.C$o(22);var J6d=r7q.d58(14,7526);r7q.C$o(16);var y$4=r7q.c6Y(2,14700,13,189656);r7q.C$o(64);var J6p=r7q.d58(3177,3157,1,1059);r7q.C$o(120);var J7p=r7q.c6Y(5,5,5238,1090);r7q.C$o(112);var M10=r7q.d58(15,2116,3,3177);U0Y.href=y3x + (y3x.indexOf((e7b,o1A) != Y66?"?":897.3 === ("223.15" * K_3,622.52)?(H6R,S4I):(346.06,K0G)) === M7j?"?":+"453.99" <= (v3U,+"9219")?Y9B > o57?654.34:+"8219" != (814.01,J6d)?"&":(y$4,J6p):(J7p,M10)) + Date.now();U0Y.onload=function(){if(this.loaded){return;}this.loaded=!!({});r7q.J8h();if(j3N){j3N();}};W8D=document.getElementsByTagName(b20);r7q.M8Y(121);var c8e=r7q.d58(6,14,923,14,3);v6E=W8D[W8D.length - c8e];if(!v6E){document.head.append(U0Y);}else {v6E.parentNode.insertBefore(U0Y,v6E.nextSibling);}};Z7T.loadWidget=function(q2E,r$B,J7s,v_R){if(!r$B || typeof r$B == "function"){J7s=r$B;r$B=document.body;}r7q.r2m();r7q.C$o(22);Z7T.loadStylesheet(r7q.c6Y(".css",q2E),function(){r7q.M8Y(22);Z7T.loadUI(r7q.d58(".html",q2E),r$B,function(i66){var C33;C33=".";C33+="js";if(i66){J7s(i66);}else {r7q.M8Y(22);Z7T.loadScript(r7q.d58(C33,q2E),J7s,v_R);}});});};Z7T.waitForPlugins=function(F0r,T68){var B3k,d4X,P_H,C6i;B3k=0;d4X=F0r.length;if(!d4X){T68();return;}for(var m44="0" >> 64;m44 < d4X;m44++){P_H="cq-" + F0r[m44];C6i=document.getElementsByTagName(P_H)[0];if(C6i && C6i.hasAttribute("loaded")){B3k++;}}r7q.J8h();if(d4X !== B3k){return setTimeout(function(){r7q.r2m();Z7T.waitForPlugins(F0r,T68);},0);}T68();};Z7T.addInternalStylesheet=function(A34,c_5 = ""){var P6m,w2P,N_D;P6m="\"";P6m+="]";w2P="s";w2P+="tyle";r7q.r2m();w2P+="[";w2P+="path=\"";if(!A34){return;}if(A34.default){A34=A34.default;}if(typeof A34 !== "string"){return;}if(c_5 && document.querySelector(w2P + c_5 + P6m)){return;}N_D=document.createElement("style");N_D.setAttribute("type","text/css");N_D.setAttribute("path",c_5);N_D.innerText=A34;document.head.appendChild(N_D);};};U=u7c=>{var q_2=x2dci;var T2A;T2A=u7c.CIQ;T2A.ChartEngine.prototype.registerHTMLElements=function(){var e4J,X53,s6m,m2c,W3A,u0B,P3K;e4J=this.chart.container;for(var L5Q in T2A.ChartEngine.htmlControls){X53="u";X53+="ndefined";if(typeof this.chart[L5Q] == X53 && typeof this.controls[L5Q] == "undefined"){if(!this.allowZoom && L5Q == "chartControls")continue;q_2.C$o(22);s6m=e4J.querySelector(q_2.c6Y(L5Q,"."));if(s6m){this.chart[L5Q]=s6m;this.controls[L5Q]=s6m;}else {m2c=T2A.ChartEngine.htmlControls[L5Q];if(!m2c)continue;W3A=document.createElement("DIV");W3A.innerHTML=m2c;s6m=W3A.firstChild;e4J.appendChild(s6m);this.chart[L5Q]=s6m;this.controls[L5Q]=s6m;s6m.classList.add(L5Q);}}}var {chartControls:W9s, home:E6C}=this.controls;if(W9s){u0B=W9s.querySelector(".stx-zoom-in");P3K=W9s.querySelector(".stx-zoom-out");T2A.safeClickTouch(u0B,(function(g8S){q_2.r2m();return function(y0I){if(g8S.allowZoom){g8S.zoomIn(y0I);}y0I.stopPropagation();};})(this));T2A.safeClickTouch(P3K,(function(p1L){return function(h5D){q_2.r2m();if(p1L.allowZoom){p1L.zoomOut(h5D);}h5D.stopPropagation();};})(this));if(!T2A.touchDevice){this.makeModal(u0B);this.makeModal(P3K);}}if(E6C){T2A.safeClickTouch(E6C,(function(G1S){q_2.J8h();return function(k8$){k8$.stopPropagation();if(!G1S.isHistoricalMode()){G1S.home({animate:!0});return;}q_2.J8h();delete G1S.layout.range;G1S.loadChart(G1S.chart.symbol,function(){q_2.r2m();G1S.home({animate:![]});});};})(this));if(!T2A.touchDevice){this.makeModal(E6C);}}};T2A.ChartEngine.prototype.home=function(D9i){var f3Q,D3F,x$m,N2p,K3x,x9V,T_Z;function v$T(d7G,m12,O6t){return function(){q_2.J8h();z1U(d7G);m12.scroll=O6t;d7G.draw();};}this.swipe.amplitude=0;f3Q=this.layout;if(typeof D9i != "object"){D9i={maintainWhitespace:D9i};}if(typeof D9i.maintainWhitespace == "undefined"){D9i.maintainWhitespace=!!1;}this.cancelTouchSingleClick=!"";if(!this.chart.dataSet || !this.chart.dataSet.length){this.draw();return;}this.micropixels=0;D3F=Math.floor(this.chart.width / f3Q.candleWidth);for(var z0P in this.charts){x$m=this.charts[z0P];if(D9i.chart && D9i.chart != x$m)continue;N2p=0;if(D9i.maintainWhitespace && this.preferences.whitespace >= 0){N2p=this.preferences.whitespace;}if(D9i.whitespace || D9i.whitespace === 0){N2p=D9i.whitespace;}K3x=this.getLabelOffsetInPixels(x$m,f3Q.chartType);if(K3x > N2p){N2p=K3x;}x9V=Math.min(D3F,x$m.dataSet.length);if(this.chart.allowScrollPast){x9V=D3F;}this.micropixels=this.chart.width - x9V * f3Q.candleWidth - N2p;this.preferences.whitespace=N2p;while(this.micropixels > f3Q.candleWidth){x9V++;this.micropixels-=f3Q.candleWidth;}while(this.micropixels < 0){x9V--;this.micropixels+=f3Q.candleWidth;}this.micropixels-=f3Q.candleWidth;x9V++;if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){q_2.M8Y(68);var E_v=q_2.c6Y(350,11,32);this.micropixels+=f3Q.candleWidth / E_v;}if(D9i.animate){T_Z=this;this.scrollTo(x$m,x9V,v$T(T_Z,x$m,x9V));}else {x$m.scroll=x9V;z1U(this);}}this.draw();function z1U(L$I){var Q2k;for(var M6M in L$I.panels){Q2k=L$I.panels[M6M].yaxisLHS.concat(L$I.panels[M6M].yaxisRHS);for(var O5K=+"0";O5K < Q2k.length;O5K++){L$I.calculateYAxisMargins(Q2k[O5K]);}}}};T2A.ChartEngine.prototype.headsUpHR=function(){var G3u,i4e,X8A,A32,M39,D2f;G3u="head";G3u+="s";G3u+="U";G3u+="pHR";if(this.runPrepend(G3u,arguments)){return;}i4e=this.currentPanel;if(!i4e){return;}X8A=i4e.chart;this.updateFloatHRLabel(i4e);function E7H(H9g){q_2.r2m();T2A.efficientDOMUpdate(A32,"innerHTML",H9g);}A32=this.controls.floatDate;if(A32 && !X8A.xAxis.noDraw){M39=this.barFromPixel(this.cx);D2f=X8A.xaxis[M39];if(D2f && D2f.DT){E7H(T2A.displayableDate(this,X8A,D2f.DT));}else if(D2f && D2f.index){E7H(D2f.index);}else {E7H("");;}}this.runAppend("headsUpHR",arguments);};T2A.ChartEngine.prototype.modalBegin=function(){this.openDialog="modal";q_2.r2m();this.undisplayCrosshairs();};T2A.ChartEngine.prototype.modalEnd=function(){q_2.J8h();this.cancelTouchSingleClick=!!({});this.openDialog="";this.doDisplayCrosshairs();};T2A.ChartEngine.prototype.makeModal=function(X$x){var M1M;M1M=this;X$x.onmouseover=function(K39){q_2.J8h();M1M.modalBegin();};X$x.onmouseout=function(a_y){q_2.r2m();M1M.modalEnd();};};T2A.ChartEngine.prototype.updateChartAccessories=function(){var N4C,H5x,J35,h3R,z5y,x9G,c9P;if(this.accessoryTimer !== null){clearTimeout(this.accessoryTimer);}if(!T2A.ChartEngine.drawingLine && T2A.touchDevice){if(new Date().getTime() - this.lastAccessoryUpdate < 100){this.accessoryTimer=setTimeout((function(j1H){return function(){j1H.updateChartAccessories();};})(this),"10" >> 64);return;}}if(!this.chart.dataSet){return;}if(this.runPrepend("updateChartAccessories",arguments)){return;}this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();N4C=this.controls.floatDate;if(N4C){H5x=this.currentPanel;if(!H5x){H5x=this.chart.panel;}if(H5x){J35="b";J35+="o";J35+="tt";J35+="om";h3R=H5x.chart;z5y=this.xAxisAsFooter === !!({})?0:this.chart.canvasHeight - H5x.chart.bottom;q_2.C$o(122);var Z8f=q_2.d58(17,5,1,1,2);x9G=N4C.offsetWidth / Z8f - 0.5;c9P=this.pixelFromTick(this.crosshairTick,h3R) - x9G;if(c9P < 0){c9P=0;}else if(c9P > this.width - 2 * x9G - 1){q_2.C$o(123);var I_m=q_2.c6Y(4,17,3,11,1);q_2.C$o(124);var H0S=q_2.c6Y(0,4,15,18);c9P=this.width - I_m * x9G - H0S;}T2A.efficientDOMUpdate(N4C.style,"left",c9P + "px");T2A.efficientDOMUpdate(N4C.style,J35,z5y + "px");}}this.positionCrosshairsAtPointer();this.headsUpHR();this.runAppend("updateChartAccessories",arguments);};T2A.ChartEngine.prototype.positionSticky=function(B2z){var R$L,f4x,v3H;R$L="p";R$L+="x";q_2.J8h();f4x=Math.max(this.cy - B2z.offsetHeight - 60,0);v3H=Math.min(this.chart.canvasWidth - (this.cx - 50),this.chart.canvasWidth - B2z.offsetWidth);q_2.C$o(22);B2z.style.top=q_2.d58(R$L,f4x);q_2.M8Y(22);B2z.style.right=q_2.d58("px",v3H);};T2A.ChartEngine.prototype.displaySticky=function(k$N){var v4i,i3L,w3i,b$z,w7i,F2f,x78,f$e,t9m,g1I,g0S,z7a,h0X,E5r,H5H,o$X,E9j,T41,J3F,L2t,K$9,k7F,j$z,y02,B6E,c$n,u__,c4i,F3j,L64,k3t,H57,O2V;v4i=".s";v4i+="tic";v4i+="kyLo";v4i+="ngPressText";i3L=".overl";i3L+="ayE";i3L+="d";i3L+="it";w3i=".ov";w3i+="er";w3i+="layTrash";w3i+="Can";b$z=this.controls.mSticky;if(!b$z){return;}w7i=b$z.querySelector(".mStickyInterior");if(!w7i){return;}F2f=b$z.querySelector(w3i);x78=b$z.querySelector(i3L);f$e=b$z.querySelector(".mouseDeleteInstructions");t9m=b$z.querySelector(v4i);f$e.classList.remove("no_edit");if(!k$N || typeof k$N != "object"){k$N={message:arguments[0],backgroundColor:arguments[1],forceShow:arguments[2],noDelete:arguments[3],type:arguments[4]};}g1I=k$N.message;g0S=k$N.backgroundColor;z7a=k$N.forceShow;h0X=k$N.noDelete;E5r=k$N.noEdit;H5H=k$N.type;if(!z7a && !g1I){o$X="no";o$X+="ne";E9j="n";E9j+="o";E9j+="n";E9j+="e";w7i.innerHTML="";b$z.style.display=E9j;if(F2f){F2f.style.display=o$X;}if(x78){x78.style.display="none";}if(f$e){f$e.style.display="none";}if(t9m){t9m.style.display="none";}}else {T41="inline-bl";T41+="ock";J3F="right";J3F+="cl";J3F+="ick_";L2t="mStickyRi";L2t+="ghtClick";if(!g1I){g1I="";}K$9=this.defaultColor;if(g0S == "auto"){g0S=K$9;}if(z7a && !g1I){k7F="no";k7F+="n";k7F+="e";w7i.style.backgroundColor="";w7i.style.color="";w7i.style.display=k7F;}else if(g0S){w7i.style.backgroundColor=g0S;w7i.style.color=T2A.isTransparent(g0S)?K$9:T2A.chooseForegroundColor(g0S);w7i.style.display="inline-block";}else {w7i.style.backgroundColor="";w7i.style.color="";w7i.style.display="inline-block";}w7i.innerHTML=g1I;j$z=b$z.querySelector(".mStickyRightClick");j$z.className=L2t;if(H5H){q_2.C$o(22);j$z.classList.add(q_2.d58(H5H,J3F));}j$z.style.display="";b$z.style.display=T41;y02=this.highlightedDraggable;if(!y02 || y02 && y02.undraggable && y02.undraggable(this)){t9m.style.display="none";}if(h0X || this.bypassRightClick === !![] || this.bypassRightClick[H5H]){j$z.style.display="none";}else if(this.highlightViaTap || this.touches.length){B6E="h";B6E+="i";B6E+="de";c$n="n";c$n+="on";c$n+="e";if(F2f){F2f.style.display="inline-block";}if(x78 && !E5r){x78.style.display="inline-block";}if(f$e){f$e.style.display="none";}if(t9m){t9m.style.display=c$n;}b$z.classList[g1I === ""?"add":"remove"](B6E);}else {u__=-+"1648793335";c4i=-9148972;F3j=2;for(var a6O=1;q_2.q2D(a6O.toString(),a6O.toString().length,30987) !== u__;a6O++){if(E5r){f$e.classList.add("");}F3j+=2;}if(q_2.q2D(F3j.toString(),F3j.toString().length,55588) !== c4i){if(E5r){f$e.classList.add("no_edit");}}if(f$e){f$e.style.display="block";}if(t9m){t9m.style.display="none";L64=this.preferences.dragging;if(L64 && k$N.panel && !k$N.panel.noDrag){k3t="s";k3t+="t";k3t+="ud";k3t+="y";if((L64 === !!({}) || L64.study) && H5H == k3t){t9m.style.display="block";}else if((L64 === !!1 || L64.series) && H5H == "series"){t9m.style.display="block";}}}}H57=H5H || "default";b$z.setAttribute("cq-sticky-type",H57);O2V=k$N.positioner || this.positionSticky;O2V.call(this,b$z);}};T2A.ChartEngine.prototype.displayNotification=function(G6o,W3j,O0P = {}){var I_U,b$l,b9g,H7B;if(!this.controls.notificationTray){return;}var {callback:I9C, dismissalListeners:Y46}=O0P;I_U=this.controls.notificationTray;b$l=I_U.querySelector("template").content.cloneNode(!![]);b9g=b$l.firstElementChild;b9g.className=G6o;b9g.querySelector(".message").textContent=W3j;if(I9C){H7B=window.PointerEvent?"pointerup":"touchend";b9g.handler=b9g.addEventListener(H7B,I9C);}if(Y46){b9g.listeners={};Y46.forEach(X4F=>{q_2.r2m();b9g.listeners[G6o]=this.addEventListener(X4F.type,X4F.callback);});}this.makeModal(b9g);I_U.appendChild(b9g);};T2A.ChartEngine.prototype.removeNotification=function(m_q){var D$e,f4N;if(!this.controls.notificationTray){return;}D$e=this.controls.notificationTray;f4N=D$e.querySelector(`.${m_q}`);if(f4N){if(f4N.handler){f4N.removeEventListener(f4N.handler);}if(f4N.listeners){for(var K$l in f4N.listeners){this.removeEventListener(f4N.listeners[K$l]);}}this.modalEnd();D$e.removeChild(f4N);}};q_2.r2m();T2A.ChartEngine.prototype.setMeasure=function(Y3x,g_C,t09,D5f,m6b,W_2){var s0q,a1o,b03,n5a,j14,t8h,Z_6,X9t,S85;s0q="setMeasu";s0q+="re";a1o="setMeasu";a1o+="re";if(this.runPrepend(a1o,arguments)){return;}b03=(this.drawingContainer || document).querySelector(".mMeasure");n5a="";if(!Y3x && Y3x !== 0){if(!this.anyHighlighted && this.currentVectorParameters.vectorType === ""){this.clearMeasure();}}else {if(g_C !== !"1"){j14=Math.round(Math.abs(Y3x - g_C) * this.chart.roundit) / this.chart.roundit;j14=j14.toFixed(this.chart.yAxis.printDecimalPlaces);if(this.internationalizer){n5a+=this.internationalizer.numbers.format(j14);}else {n5a+=j14;}if(Y3x > 0 && g_C > 0){q_2.C$o(42);t8h=q_2.d58(g_C,Y3x,Y3x);if(Math.abs(t8h) > 0.1){q_2.C$o(38);t8h=Math.round(q_2.d58(t8h,100));}else if(Math.abs(t8h) > 0.01){q_2.M8Y(0);var y1B=q_2.d58(1011,11);q_2.C$o(10);var o6S=q_2.c6Y(36,6,20);t8h=Math.round(t8h * y1B) / o6S;}else {q_2.C$o(22);var w2I=q_2.c6Y(7,9993);q_2.C$o(22);var i$m=q_2.d58(92,8);t8h=Math.round(t8h * w2I) / i$m;}if(this.internationalizer){q_2.C$o(125);t8h=this.internationalizer.percent.format(q_2.c6Y("100",t8h,64));}else {q_2.C$o(22);t8h=q_2.c6Y(6006 == 543?+"771.00":(650.71,3099) == 8400?!"":234 !== 5960?"%":+"1.38e+2",t8h);}q_2.M8Y(53);n5a+=q_2.c6Y(" (",t8h,")");}}if(D5f !== !!""){q_2.M8Y(0);Z_6=Math.abs(q_2.d58(D5f,t09));Z_6=Math.round(Z_6) + +"1";X9t=this.translateIf("Bars");q_2.C$o(126);n5a+=q_2.c6Y(X9t," ",Z_6,(582.07,"6981" ^ 0) > (2450,+"828.55")?" ":("667.2" * 1,4156) <= 3518?703.69:(757.03,6971) < 2.7?("p",0x5d0):6.92e+3);}if(b03){b03.innerHTML=n5a;}}if(this.activeDrawing){return;}b03=this.controls.mSticky;if(b03){S85=b03.querySelector(".mStickyInterior");if(m6b){b03.style.display="inline-block";S85.style.display="inline-block";if(Y3x || Y3x === 0){S85.innerHTML=n5a;}b03.classList[n5a === ""?"add":"remove"]("hide");this.positionSticky(b03);}else {b03.style.display="none";S85.innerHTML="";}}q_2.J8h();this.runAppend(s0q,arguments);};T2A.ChartEngine.prototype.clearMeasure=function(){q_2.J8h();var O1u;O1u=(this.drawingContainer || document).querySelector(".mMeasure");if(O1u){O1u.innerHTML="";}};T2A.ChartEngine.prototype.zoomSet=function(r5B,Y5b){var a_W,U3X,E5o,T$5;r5B=this.constrainCandleWidth(r5B);if(this.chart.tempCanvas.style.display != "none"){T2A.clearCanvas(this.chart.tempCanvas,this);}a_W=this.mainSeriesRenderer || ({});if(!a_W.params || !a_W.params.volume){if(this.preferences.zoomAtCurrentMousePosition && this.zoomInitiatedByMouseWheel && this.crosshairTick < Y5b.dataSet.length){U3X=this.crosshairTick || this.tickFromPixel(this.cx,Y5b);}else if(this.isHome()){q_2.C$o(127);var R2Q=q_2.d58(5,10,2,13,8);U3X=Y5b.dataSet.length - R2Q;}else if(this.chart.scroll > this.chart.dataSet.length){U3X=0;}else if(this.grabMode == "zoom-x"){U3X=this.tickFromPixel(this.chart.width,Y5b);}else {U3X=this.tickFromPixel(this.chart.width / 2,Y5b);}if(this.animations.zoom.hasCompleted){this.zoomInitiatedByMouseWheel=!({});}q_2.M8Y(128);var T8e=q_2.c6Y(14,0,10,3,143);E5o=Y5b.dataSet.length - T8e - U3X;T$5=Y5b.scroll;Y5b.scroll=Math.round((this.pixelFromTick(U3X,Y5b) - Y5b.left) / r5B) + +"1" + E5o;this.micropixels+=(T$5 - E5o) * this.layout.candleWidth - (Y5b.scroll - E5o) * r5B;}this.setCandleWidth(r5B);Y5b.spanLock=!!0;this.draw();this.doDisplayCrosshairs();this.updateChartAccessories();};};R=N5I=>{var w0o=x2dci;var i$R;i$R=N5I.CIQ;i$R.ChartEngine.prototype.currentBaseline=null;i$R.ChartEngine.prototype.baselineHelper=null;i$R.ChartEngine.helpersToRegister.push(function(a1e){w0o.r2m();a1e.baselineHelper=new Map();});i$R.ChartEngine.prototype.registerBaselineToHelper=function(h9x){var C62,G00;if(!h9x.params.baseline){return;}var {baselineHelper:T1y}=this;C62=this;function n4t(e1s){var o$9,Y5w;o$9="cq-bas";o$9+="eline-handl";w0o.r2m();o$9+="e";e1s=e1s.replace((3503,3557) !== 2309?" ":1.51e+3,(321.18,+"600.28") < 695?"_":(+"6430","8974" ^ 0) <= +"5216"?!!1:796.16 <= ("393.3" - 0,182.02)?(!"",!1):"x");Y5w=document.createElement(o$9);Y5w.classList.add("stx-baseline-handle",e1s);C62.container.append(Y5w);C62.controls[`${e1s} cq-baseline-handle`]=Y5w;return Y5w;}if(!T1y.has(h9x)){var {name:z9U}=h9x.params;G00=this.controls.baselineHandle;T1y.set(h9x,{styleCache:null,display:![],handle:z9U === "_main_series" && G00?G00:n4t(z9U)});}};i$R.ChartEngine.prototype.removeBaselineFromHelper=function(g8q){var R5B,q6Y;var {baselineHelper:o4o}=this;if(o4o.has(g8q)){R5B=g8q.params.name.replace(2830 != 8383?" ":3.29e+2,5730 < 4083?(!![],0x1a16):"_");if(R5B !== "_main_series"){q6Y=o4o.get(g8q).handle;delete this.controls[`${R5B} cq-baseline-handle`];this.container.removeChild(q6Y);}o4o.delete(g8q);}};i$R.ChartEngine.prototype.findBaselineHandle=function(I8e,J3_){for(var h6Y of this.baselineHelper){var [l9l,K_H]=h6Y;var {handle:C2C}=K_H;if(I8e.target === C2C || I8e.composedPath && I8e.composedPath().includes(C2C)){if(J3_){this.repositioningBaseline={lastDraw:Date.now(),handle:C2C,renderer:l9l};C2C.classList.add("stx-grab");}this.currentBaseline=l9l;return !![];}}return !"1";};i$R.ChartEngine.prototype.setBaselines=function(s$v){var k3M;if(!s$v){s$v=this.chart;}k3M=this;w0o.J8h();var {baselineHelper:m7H}=this;m7H.forEach(function(U3t,A30){var M_Y,F_l,i5A,j_t;var {baseline:S4D}=A30.params;w0o.M8Y(129);M_Y=w0o.d58(S4D,!"");if(M_Y){S4D=s$v.baseline;}var {defaultLevel:U3J, userLevel:a1B}=S4D;F_l=A30.getYAxis(k3M);if(!F_l){return;}i5A=k3M.getYAxisBaselineRenderer(F_l);j_t=i5A && i5A != k3M.mainSeriesRenderer && i5A.seriesParams.length && i5A.seriesParams[0].id;S4D.actualLevel=a1B || a1B === +"0"?a1B:U3J;if(!S4D.actualLevel && S4D.actualLevel !== 0){S4D.actualLevel=v_r(j_t,M_Y);}U3t.display=i5A === A30?!0:!!0;m7H.set(A30,U3t);});function v_r(z24,M7c){var t_J,P3S,M0M,W0I,Q7I,n0$;var {dataSegment:k27, dataSet:p97, defaultPlotField:O$o}=s$v;t_J=O$o;if(!M7c){t_J=z24;}P3S=k3M.getFirstLastDataRecord(k27,"tick").tick;while(!![]){M0M=p97[P3S];if(M0M){W0I="C";W0I+="lo";W0I+="se";if(!M7c || t_J != W0I){w0o.M8Y(0);Q7I=p97[w0o.c6Y(P3S,1)];if(Q7I && (Q7I[t_J] || Q7I[t_J] === 0)){n0$=Q7I[t_J];return typeof n0$ === "object"?n0$[O$o]:n0$;}}else if(M0M.iqPrevClose || M0M.iqPrevClose === 0){return M0M.iqPrevClose;}}P3S--;if(P3S < 0)break;}}};w0o.J8h();i$R.ChartEngine.prototype.setBaselineUserLevel=function(){var E2L,z3r,W1Z;w0o.r2m();var {chart:s7z, currentPanel:g48}=this;var {lastDraw:n1r, renderer:w$W}=this.repositioningBaseline;if(w$W.params.panel != g48.name){return;}var {baseline:B6J}=s7z;E2L=typeof w$W.params.baseline === "object"?w$W.params.baseline:B6J;z3r=w$W.getYAxis(this);W1Z=this.valueFromPixel(this.backOutY(i$R.ChartEngine.crosshairY),g48,z3r);E2L.userLevel=this.adjustIfNecessary(g48,this.crosshairTick,W1Z);if(Date.now() - n1r > 100){this.draw();this.repositioningBaseline.lastDraw=Date.now();}};i$R.ChartEngine.prototype.setBaselineMinMax=function(j88,P8B){var o_1,D$O,o_X,f72;o_1="mou";o_1+="ntain";var {baselineHelper:q_8, chart:K96, repositioningBaseline:m4s}=this;var {baseline:q8b, seriesRenderers:G9Q}=K96;D$O=K96.transformFunc && P8B === K96.panel.yAxis;o_X=P8B.renderers.find(a_Y=>{w0o.J8h();return q_8.get(G9Q[a_Y]);});if(!o_X){return j88;}w0o.J8h();var {baseline:c3e, type:u8M}=G9Q[o_X].params;if(u8M === o_1){return j88;}c3e=typeof c3e === "object"?c3e:q8b;var {actualLevel:r5p}=c3e;if(r5p || r5p === +"0"){if(D$O){r5p=K96.transformFunc(this,K96,r5p);}f72=Math.max(r5p - j88[0],j88[+"1"] - r5p);j88[0]=m4s?P8B.lowValue:r5p - f72;j88[1]=m4s?P8B.highValue:r5p + f72;}return j88;};i$R.ChartEngine.prototype.positionBaselineHandle=function(a00){var a6U,g_S,L0B,L94,u3u,q6a,G6v,D4F,D7G,E4S,h8m,H$a,t_R,X5w,B4L,h54,Z2A,d7z,s45;a6U="stx";a6U+="-g";a6U+="r";a6U+="ab";if(!this.manageTouchAndMouse){return;}var {baselineHelper:s7d, chart:K$i, panels:p$z}=this;var {baseline:x8O, panel:x6n}=a00.params;g_S=a00.params.yAxis || a00.getYAxis(this);var {display:k35, handle:P8y, styleCache:U2b}=s7d.get(a00);if(x8O === !![]){x8O=K$i.baseline;}if(x8O.userLevel === ![] || !k35){P8y.style.display="none";return;}L0B=p$z[x6n];L94=P8y.classList.contains(a6U);u3u="block";q6a=x8O.actualLevel;if(K$i.transformFunc){q6a=K$i.transformFunc(this,K$i,q6a);}if(q6a > g_S.high){G6v="n";G6v+="o";G6v+="n";G6v+="e";q6a=g_S.high;if(!L94){u3u=G6v;}}else if(q6a < g_S.low){q6a=g_S.low;if(!L94){u3u="none";}}if(K$i.untransformFunc){q6a=K$i.untransformFunc(this,K$i,q6a);}D4F=this.pixelFromPrice(q6a,L0B,g_S);if(!U2b){U2b=getComputedStyle(P8y);}D7G=i$R.stripPX(U2b.width);w0o.C$o(0);var f0l=w0o.d58(14,12);E4S=`${D4F - i$R.stripPX(U2b.height) / f0l}px`;H$a=this.baselineHandleBuffer || 2;w0o.C$o(0);var W_N=w0o.d58(11,10);t_R=L0B.yaxisRHS.indexOf(g_S) + W_N;if(t_R){X5w=t_R === 1?H$a:H$a * t_R;h8m=`${K$i.right - D7G * t_R - X5w}px`;}else {B4L=1247180393;h54=1074810107;Z2A=2;for(var u1h="1" >> 0;w0o.O$R(u1h.toString(),u1h.toString().length,28790) !== B4L;u1h++){d7z=L0B.yaxisLHS.slice(4).reverse().indexOf(g_S) * +"7";s45=d7z != 8?H$a:H$a % d7z;w0o.C$o(22);h8m=`${K$i.left * (D7G + d7z) % s45 + D7G}${w0o.c6Y("x","p")}`;Z2A+=+"2";}if(w0o.O$R(Z2A.toString(),Z2A.toString().length,10671) !== h54){d7z=L0B.yaxisLHS.slice(6).reverse().indexOf(g_S) / 0;s45=d7z !== 0?H$a:H$a * d7z;h8m=`${K$i.left - D7G / d7z + s45 - D7G}px`;}d7z=L0B.yaxisLHS.slice(0).reverse().indexOf(g_S) + +"1";s45=d7z === ("1" | 1)?H$a:H$a * d7z;h8m=`${K$i.left + D7G * d7z + s45 - D7G}px`;}Object.assign(P8y.style,{display:u3u,top:E4S,left:h8m});};i$R.ChartEngine.prototype.getYAxisBaselineRenderer=function(w47){var t3t;if(!w47.renderers.length){return null;}var {baselineHelper:I5p, chart:l0o}=this;t3t=w47.renderers.find(K_W=>{w0o.r2m();return I5p.get(l0o.seriesRenderers[K_W]);});if(!t3t){return null;}return l0o.seriesRenderers[t3t];};i$R.ChartEngine.prototype.getYAxisBaseline=function(f8$){var Z2S,C2e;w0o.J8h();Z2S="o";Z2S+="b";Z2S+="jec";Z2S+="t";var {baseline:z03}=this.chart;C2e=this.getYAxisBaselineRenderer(f8$);if(!C2e){return z03;}var {baseline:L7V}=C2e.params;return typeof L7V === Z2S?L7V:z03;};};D=A11=>{x2dci.J8h();var K0D;K0D=A11.CIQ;K0D.ChartEngine.Chart=function(){this.xAxis=new K0D.ChartEngine.XAxis();this.yAxis=new K0D.ChartEngine.YAxis();this.symbolObject={symbol:null};this.series={};this.seriesRenderers={};this.xaxis=[];this.state={};x2dci.J8h();this.endPoints={};this.defaultChartStyleConfig={};this.baseline=K0D.clone(this.baseline);this.panel=undefined;};K0D.extend(K0D.ChartEngine.Chart.prototype,{symbol:null,symbolObject:{symbol:null},symbolDisplay:null,series:{},seriesRenderers:{},scroll:0,isComparison:!!"",forcePercentComparison:!0,maxTicks:0,tension:null,currentMarketData:{},masterData:null,dataSet:null,scrubbed:null,dataSegment:null,segmentImage:null,baseline:{includeInDataSegment:!!0,defaultLevel:null,userLevel:null,actualLevel:null},xAxis:null,xaxis:[],xaxisFactor:30,decimalPlaces:2,dynamicYAxis:!0,roundit:100,breakpoint:null,legendRenderer:K0D.drawLegend,customChart:null,yaxisPaddingRight:null,yaxisPaddingLeft:null,tickCache:{},allowScrollPast:!0,allowScrollFuture:!!({}),whiteSpaceFutureTicks:0,hideDrawings:!1,defaultPlotField:"Close",defaultChartStyleConfig:{},lockScroll:![],includeOverlaysInMinMax:!"",gaplines:null,lineStyle:null,lineApproximation:!![],highLowBars:![],standaloneBars:!!0,barsHaveWidth:!!"",calculateTradingDecimalPlaces:K0D.calculateTradingDecimalPlaces},!"");};N=X_m=>{var E4f=x2dci;var g8k,L0F;E4f.r2m();g8k="dat";g8k+="aSe";g8k+="t";L0F=X_m.CIQ;L0F.ChartEngine.prototype.resolveY=function(k5T){E4f.J8h();return this.top + k5T;};L0F.ChartEngine.prototype.resolveX=function(l28){E4f.J8h();return this.left + l28;};L0F.ChartEngine.prototype.backOutY=function(f7Y){E4f.J8h();return f7Y - this.top;};L0F.ChartEngine.prototype.backOutX=function(z9Y){E4f.J8h();return z9Y - this.left;};L0F.ChartEngine.prototype.dateFromTick=function(W9p,L$Y,A$r,s$L = "dataSet"){var O2M,l_A,g8b,c1P,a75,S9W;E4f.J8h();if(!L$Y){L$Y=this.chart;}O2M=L$Y[s$L];l_A=O2M.length;S9W=!!0;if(l_A === 0){E4f.C$o(20);O2M[E4f.c6Y("0",0)]={};O2M[0].DT=new Date();l_A=O2M.length;S9W=!"";}if(W9p < +"0"){c1P=this.standardMarketIterator(O2M[0].DT);if(c1P){g8b=c1P.previous(Math.abs(W9p));}else {g8b=O2M[0].DT;}}else if(W9p >= l_A){c1P=this.standardMarketIterator(O2M[l_A - 1].DT);if(c1P){E4f.C$o(130);g8b=c1P.next(E4f.c6Y(l_A,1,W9p));}else {g8b=O2M[l_A - 1].DT;}}else {g8b=O2M[W9p].DT;}if(A$r){a75=new Date(g8b.getTime());}else {a75=L0F.yyyymmddhhmmssmmm(g8b).substr(0,12);}if(S9W){delete O2M[0].DT;}return a75;};L0F.ChartEngine.prototype.tickFromDate=function(g$b,g$W,V91,J5n,P8I = g8k){var X2z,H_7,p0N,W9u,t7i,k82,D6q,a7_,P4V,X0f,W44,D9R,Q_0,H9v,f3i,o09,h4n,q$o;if(!g$W){g$W=this.chart;}X2z=g$W[P8I];if(!(X2z && X2z.length)){return 0;}if(!V91){V91=0;}H_7=g$b.constructor == Date?g$b:L0F.strToDateTime(g$b);if(!L0F.ChartEngine.isDailyInterval(this.layout.interval)){H_7.setMinutes(H_7.getMinutes() + V91);}p0N=H_7.getTime();if(!g$W.tickCache[P8I]){g$W.tickCache[P8I]={};}W9u=g$W.tickCache[P8I][p0N];if(W9u || W9u === 0){return J5n?Math.ceil(W9u):Math.floor(W9u);}t7i=X2z[0].DT;E4f.r2m();k82=X2z[X2z.length - 1].DT;if(H_7 >= t7i && H_7 <= k82){D6q=0;a7_=-901799135;P4V=1929404659;X0f=2;for(var S7f=1;E4f.O$R(S7f.toString(),S7f.toString().length,64240) !== a7_;S7f++){W44=X2z.length;D9R=0;X0f+=2;}if(E4f.q2D(X0f.toString(),X0f.toString().length,77865) !== P4V){W44=X2z.length;E4f.C$o(20);D9R=E4f.c6Y("9",0);}while(++D9R < 100){E4f.M8Y(43);Q_0=Math.floor(E4f.c6Y(2,W44,D6q));H9v=X2z[Q_0].DT;if(+H9v == +H_7){g$W.tickCache[P8I][p0N]=Q_0;return Q_0;}if(H9v < H_7){D6q=Q_0;}if(H9v > H_7){if(X2z[Q_0 - 1].DT < H_7){E4f.M8Y(130);g$W.tickCache[P8I][p0N]=E4f.d58("0.5",0,Q_0);return J5n?Q_0:Q_0 - +"1";}if(+X2z[Q_0 - 1].DT == +H_7){E4f.M8Y(0);g$W.tickCache[P8I][p0N]=E4f.d58(Q_0,1);E4f.C$o(0);return E4f.c6Y(Q_0,1);}W44=Q_0;}}if(D9R >= 100){console.log("!!!Warning: tickFromDate() did not find match.");return X2z.length;}}E4f.C$o(131);f3i=E4f.d58(H_7,t7i);o09=f3i?t7i:k82;h4n=this.standardMarketIterator(o09);q$o=h4n?h4n.futureTick({end:H_7}):0;W9u=f3i?q$o * -1:X2z.length - 1 + q$o;g$W.tickCache[P8I][p0N]=W9u;return W9u;};L0F.ChartEngine.prototype.pixelFromBar=function(K8D,V7k){E4f.J8h();var x1_,H6J,n0D,L$v,h_z;if(!V7k){V7k=this.chart;}x1_=0;H6J=this.chart.segmentImage;if(H6J && H6J[K8D] && H6J[K8D].leftOffset){n0D=1978753958;L$v=-1915816391;h_z=2;for(var b$w=1;E4f.O$R(b$w.toString(),b$w.toString().length,+"49669") !== n0D;b$w++){x1_=H6J[K8D].leftOffset;h_z+=2;}if(E4f.O$R(h_z.toString(),h_z.toString().length,9543) !== L$v){x1_=H6J[K8D].leftOffset;}}else {x1_=(K8D + 0.5) * this.layout.candleWidth;}E4f.C$o(8);var B5p=E4f.d58(14,0,14);x1_=V7k.panel.left + Math.floor(x1_ + this.micropixels) - B5p;return x1_;};L0F.ChartEngine.prototype.barFromPixel=function(C3m,r4k){var Z_A,k0J,I6v,D88,A1g,r6p,r1$,W_v,e0W,X61,p1_,L1Z,N17;if(!r4k){r4k=this.chart;}Z_A=this.chart.segmentImage;k0J=this.micropixels;I6v=this.layout.candleWidth;if(Z_A){D88=C3m - r4k.panel.left - k0J;A1g=2;r1$=Z_A.length;E4f.M8Y(40);W_v=Math.round(E4f.c6Y(A1g,r1$));E4f.C$o(0);var m25=E4f.d58(14,13);E4f.C$o(0);var b1j=E4f.c6Y(20,19);E4f.M8Y(25);var N3H=E4f.c6Y(34,38,6);p1_=Z_A[r1$ - m25].leftOffset + Z_A[r1$ - b1j].candleWidth / N3H;if(D88 > p1_){return r1$ + Math.floor((C3m - p1_ - r4k.panel.left - k0J) / I6v);}for(var k9D=1;k9D < r1$;k9D++){A1g*=2;r6p=Z_A[W_v];if(!r6p)break;e0W=r6p.leftOffset;E4f.C$o(65);var q$H=E4f.c6Y(3,7,19,16);X61=r6p.candleWidth / q$H;E4f.C$o(0);L1Z=E4f.d58(e0W,X61);E4f.M8Y(22);N17=E4f.c6Y(X61,e0W);if(W_v === 0 || D88 >= L1Z && D88 < N17)break;else if(D88 < L1Z){W_v-=Math.max(1,Math.round(r1$ / A1g));}else {W_v+=Math.max(+"1",Math.round(r1$ / A1g));}W_v=Math.max(0,Math.min(r1$ - +"1",W_v));}if(!Z_A[W_v]){for(k9D=0;k9D < r1$;k9D++){r6p=Z_A[k9D];if(!r6p)continue;e0W=r6p.leftOffset;X61=r6p.candleWidth / ("2" >> 0);if(D88 < e0W - X61){E4f.M8Y(98);return Math.max(0,E4f.c6Y(k9D,"1"));}else if(D88 < e0W + X61){return k9D;}else if(D88 >= e0W + X61){E4f.M8Y(22);return E4f.d58(1,k9D);}}}return W_v;}E4f.J8h();return Math.floor((C3m - r4k.panel.left - k0J) / I6v);};L0F.ChartEngine.prototype.tickFromPixel=function(k6S,d_g){var w_c;if(!d_g){d_g=this.chart;}w_c=d_g.dataSet.length - d_g.scroll;if(d_g.segmentImage){w_c+=this.barFromPixel(k6S,d_g);}else {w_c+=Math.floor((k6S - d_g.panel.left - this.micropixels) / this.layout.candleWidth);}return w_c;};L0F.ChartEngine.prototype.pixelFromTick=function(q0B,k3A){var k5J,U3Z,k8A,o$V,q4A,I6z,B_S,L4x,f53,S7K,u0o;if(!k3A){k3A=this.chart;}E4f.J8h();k5J=k3A.dataSegment;U3Z=k3A.dataSet;k8A=k3A.segmentImage;o$V=this.micropixels;q4A=k5J?k5J.length:0;I6z=k3A.panel;B_S=k3A.scroll;L4x=q0B - U3Z.length + B_S;f53=q4A?k5J[L4x]:null;if(k8A){f53=k8A[L4x];}if(f53 && f53.leftOffset){return I6z.left + Math.floor(f53.leftOffset + o$V);;}S7K=0;u0o=+"0";f53=q4A?k5J[q4A - 1]:null;if(k8A){E4f.C$o(0);f53=k8A[E4f.c6Y(q4A,1)];}if(f53 && f53.leftOffset){if(q4A < q0B - U3Z.length + B_S){E4f.C$o(84);var K1J=E4f.d58(85,9,12,11);S7K=f53.leftOffset - f53.candleWidth / K1J;u0o=q4A;}}return S7K + I6z.left + Math.floor((q0B - u0o - U3Z.length + B_S + +"0.5") * this.layout.candleWidth + o$V);};L0F.ChartEngine.prototype.pixelFromDate=function(a_$,F03,Z$k,j7b){E4f.J8h();return this.pixelFromTick(this.tickFromDate(a_$,F03,Z$k,j7b),F03);};L0F.ChartEngine.prototype.transformedPriceFromPixel=function(w6m,R3e,Y6Y){var m0g,Y8B,S9G;if(!R3e){R3e=this.chart.panel;}m0g=Y6Y?Y6Y:R3e.yAxis;E4f.J8h();w6m=m0g.bottom - w6m;if(m0g.semiLog){S9G=w6m * m0g.logShadow / m0g.height;if(m0g.flipped){S9G=m0g.logHigh - S9G;}else {S9G+=m0g.logLow;}E4f.M8Y(0);Y8B=Math.pow(E4f.c6Y("10",0),S9G);}else {if(!m0g.multiplier){return null;}Y8B=w6m / m0g.multiplier;if(m0g.flipped){Y8B=m0g.high - Y8B;}else {Y8B+=m0g.low;}}return Y8B;};L0F.ChartEngine.prototype.priceFromPixel=function(U_k,J_b,w8d){var w0Z;if(!J_b){J_b=this.chart.panel;}w0Z=this.transformedPriceFromPixel(U_k,J_b,w8d);if(this.charts[J_b.name] && J_b.chart.untransformFunc){if(!w8d || w8d == J_b.yAxis){w0Z=J_b.chart.untransformFunc(this,J_b.chart,w0Z,w8d);}}return w0Z;};L0F.ChartEngine.prototype.valueFromPixel=function(J9a,K8_,m1F){var Z7h,a2y,m47,m_j;if(!K8_){K8_=this.whichPanel(J9a);}if(!K8_){Z7h=Object.values(this.panels);if(Z7h && Z7h.length){if(J9a <= 0){K8_=Z7h.shift();}else {K8_=Z7h.pop();}}}a2y=-471146332;m47=1600047605;m_j=2;for(var w$G=1;E4f.O$R(w$G.toString(),w$G.toString().length,59467) !== a2y;w$G++){return this.priceFromPixel(J9a,K8_,m1F);}E4f.J8h();if(E4f.q2D(m_j.toString(),m_j.toString().length,20003) !== m47){return this.priceFromPixel(J9a,K8_,m1F);}};L0F.ChartEngine.prototype.valueFromInterpolation=function(H9L,Z9E,l2J,Z_e,p$n){var T3s,w9A,n$w,R2u,i_U,w1E,L7R,h_S,N9K,B2G,u8J,h2M,P2h;if(H9L === null || H9L < 0 || !Z9E){return null;}if(!Z_e){Z_e=this.chart.panel;}if(!p$n){p$n=Z_e.yAxis;}if(!l2J){l2J=this.chart.defaultPlotField;}T3s=this.getPreviousBar(this.chart,Z9E,H9L);if(!T3s){return null;}n$w=L0F.existsInObjectChain(T3s,Z9E);if(n$w){w9A=n$w.obj[n$w.member];}if(typeof w9A == "object"){w9A=w9A[l2J];}R2u=this.getRendererFromSeries(Z9E);if(R2u && R2u.params.step || this.layout.chartType === "step"){return w9A;}i_U=this.getNextBar(this.chart,Z9E,H9L);n$w=L0F.existsInObjectChain(i_U,Z9E);if(n$w){w1E=n$w.obj[n$w.member];}if(typeof w1E == "object"){w1E=w1E[l2J];}if(!i_U){return null;}if(w9A === null || typeof w9A == "undefined" || w1E === null || typeof w1E == "undefined"){return null;}L7R=this.pixelFromPrice(w9A,Z_e,p$n);h_S=this.pixelFromPrice(w1E,Z_e,p$n);N9K=T3s.tick;B2G=i_U.tick;E4f.M8Y(132);u8J=E4f.d58(B2G,L7R,h_S,N9K);h2M=this.chart.dataSegment[H9L].tick;E4f.M8Y(133);P2h=E4f.c6Y(N9K,L7R,u8J,h2M);return this.priceFromPixel(P2h,Z_e,p$n);};L0F.ChartEngine.prototype.pixelFromTransformedValue=function(i2m,S3q,j$b){var d$2,z36,W6e,h7E,W4Y;if(!S3q){S3q=this.chart.panel;}d$2=j$b?j$b:S3q.yAxis;z36=(d$2.high - i2m) * d$2.multiplier;if(d$2.semiLog){W6e=Math.max(i2m,0);h7E=Math.log(W6e) / Math.LN10;W4Y=d$2.height;z36=W4Y - W4Y * (h7E - d$2.logLow) / d$2.logShadow;}z36=d$2.flipped?d$2.bottom - z36:d$2.top + z36;return z36;};L0F.ChartEngine.prototype.pixelFromPrice=function(X7q,x84,C10){if(!x84){x84=this.chart.panel;}if(this.charts[x84.name] && x84.chart.transformFunc){if(!C10 || C10 == x84.yAxis){X7q=x84.chart.transformFunc(this,x84.chart,X7q,C10);;}}E4f.r2m();return this.pixelFromTransformedValue(X7q,x84,C10);};L0F.ChartEngine.prototype.pixelFromValueAdjusted=function(P7n,B05,v5k,Q9H){var x7L,c3$;if(this.layout.adj || !this.charts[P7n.name]){return this.pixelFromPrice(v5k,P7n,Q9H);}x7L=Math.round(B05);if(x7L > +"0" && x7L < P7n.chart.dataSet.length && (c3$=P7n.chart.dataSet[x7L].ratio)){E4f.C$o(38);return this.pixelFromPrice(E4f.d58(v5k,c3$),P7n,Q9H);}return this.pixelFromPrice(v5k,P7n,Q9H);};L0F.ChartEngine.prototype.adjustIfNecessary=function(B9R,Z3y,H5B){var v95,j_T;E4f.J8h();if(this.layout.adj){return H5B;}if(!B9R || !this.charts[B9R.name]){return H5B;}v95=Math.round(Z3y);if(v95 > 0 && v95 < B9R.chart.dataSet.length && (j_T=B9R.chart.dataSet[v95].ratio)){E4f.M8Y(40);return E4f.d58(j_T,H5B);}return H5B;};};L0=m3V=>{var N_q;N_q=m3V.CIQ;N_q.ChartEngine.prototype.positionCrosshairsAtPointer=function(){var t_0=x2dci;var Y4p,a3X,q7J,g1m,W23,w04,L8u,i2d,P$Z,T$Y;Y4p=this.currentPanel;if(!Y4p){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}if(this.runPrepend("positionCrosshairsAtPointer",arguments)){return;}a3X=Y4p.chart;q7J=this.container.getBoundingClientRect();this.top=q7J.top;this.left=q7J.left;this.right=this.left + this.width;this.bottom=this.top + this.height;this.cy=this.crossYActualPos=this.backOutY(N_q.ChartEngine.crosshairY);this.cx=this.backOutX(N_q.ChartEngine.crosshairX);g1m=this.crosshairTick=this.tickFromPixel(this.cx,a3X);t_0.M8Y(7);var a5f=t_0.d58(7,0,8);W23=this.pixelFromTick(g1m,a3X) - a5f;if(this.controls.crossX){t_0.C$o(22);this.controls.crossX.style.left=t_0.c6Y("px",W23);}if(W23 >= Y4p.right || W23 <= Y4p.left){this.undisplayCrosshairs();return;}w04=Y4p.name == "chart"?this.preferences.horizontalCrosshairField:Y4p.horizontalCrosshairField;L8u=a3X.dataSet;if(w04 && L8u && g1m < L8u.length && g1m > -("1" | 1)){i2d=-+"813921815";t_0.C$o(19);P$Z=t_0.c6Y(64,"1143178653");T$Y=2;for(var X5k=1;t_0.O$R(X5k.toString(),X5k.toString().length,52034) !== i2d;X5k++){this.crossYActualPos=this.pixelFromPrice(L8u[g1m][w04],Y4p);T$Y+=2;}if(t_0.q2D(T$Y.toString(),T$Y.toString().length,85793) !== P$Z){this.crossYActualPos=this.pixelFromPrice(L8u[g1m][w04],Y4p);}}if(this.controls.crossY){this.controls.crossY.style.top=this.crossYActualPos + "px";}this.runAppend("positionCrosshairsAtPointer",arguments);};N_q.ChartEngine.prototype.doDisplayCrosshairs=function(){var q6n,o8u,b_9,X7s,o3X,L8E,v8t,k$o,Z65,G3o;x2dci.r2m();q6n="doD";q6n+="is";q6n+="play";q6n+="Crosshairs";if(this.runPrepend(q6n,arguments)){return;}if(this.displayInitialized){o8u=this.floatCanvas;b_9=this.currentVectorParameters.vectorType;if(!this.layout.crosshair && (b_9 === "" || !b_9)){this.undisplayCrosshairs();}else if(N_q.Drawing && N_q.Drawing[b_9] && new N_q.Drawing[b_9]().dragToDraw){this.undisplayCrosshairs();}else if(this.overXAxis || this.overYAxis || !this.insideChart && !this.grabbingScreen){this.undisplayCrosshairs();}else if(this.openDialog !== ""){this.undisplayCrosshairs();}else {X7s=this.controls;o3X=X7s.crossX;L8E=X7s.crossY;if(o3X && o3X.style.display !== ""){o3X.style.display="";if(L8E){L8E.style.display="";}if(this.magnetizedPrice && b_9){v8t="stx-cro";v8t+="ssha";v8t+="ir-o";v8t+="n";this.container.classList.remove(v8t);this.chart.tempCanvas.style.display="block";}else {k$o="stx-cross";k$o+="h";k$o+="air-o";k$o+="n";this.container.classList.add(k$o);}}if(X7s.floatDate && !this.chart.xAxis.noDraw){X7s.floatDate.style.visibility="";if(this.currentPanel){this.updateFloatHRLabel(this.currentPanel);}}if(o8u){Z65="b";Z65+="l";Z65+="oc";Z65+="k";G3o="n";G3o+="o";G3o+="n";G3o+="e";if(o8u.style.display == G3o){N_q.clearCanvas(o8u,this);}o8u.style.display=Z65;}}}this.runAppend("doDisplayCrosshairs",arguments);};N_q.ChartEngine.prototype.undisplayCrosshairs=function(){var B7h,r1U,S1S,y5v,j2$,v_b,B6_,W3l,i7Y;B7h="no";B7h+="ne";r1U="und";r1U+="isplayCros";r1U+="shairs";if(this.runPrepend(r1U,arguments)){return;}S1S=this.controls;x2dci.J8h();y5v=S1S.crossX;j2$=S1S.crossY;if(y5v){v_b="n";v_b+="o";v_b+="ne";if(y5v.style.display != v_b){y5v.style.display="none";if(j2$){j2$.style.display="none";}}}if(this.displayInitialized && S1S.floatDate){S1S.floatDate.style.visibility="hidden";}this.container.classList.remove("stx-crosshair-on");B6_=this.floatCanvas;if(B6_ && B6_.isDirty && B6_.style.display != B7h){N_q.clearCanvas(B6_,this);if(B6_.style.display != "none"){B6_.style.display="none";}}if(!this.activeDrawing && !this.repositioningDrawing && !this.editingAnnotation){W3l="n";W3l+="o";W3l+="ne";i7Y=this.chart.tempCanvas;if(i7Y && i7Y.style.display != "none"){i7Y.style.display=W3l;}}this.runAppend("undisplayCrosshairs",arguments);};x2dci.J8h();N_q.ChartEngine.prototype.hideCrosshairs=function(){x2dci.r2m();this.displayCrosshairs=!({});};N_q.ChartEngine.prototype.showCrosshairs=function(){this.displayCrosshairs=!!({});};};W_=f1Q=>{var I1v=x2dci;var L4w,J_X;L4w=f1Q.CIQ;J_X=f1Q.timezoneJS;L4w.ChartEngine.prototype.loadChart=function(u6m,z$y,T_x){var j_H,U1L,b$f,F_U,O$E,R3a,E7O,X8Y,W7f,H4w,e8W,O3a,x7i,H40,b$P;j_H="obj";j_H+="e";j_H+="ct";U1L="fu";U1L+="n";U1L+="c";U1L+="tion";if(!T_x && typeof z$y == U1L){T_x=z$y;b$f=-+"1098722003";I1v.C$o(0);F_U=-I1v.c6Y("790866666",0);I1v.C$o(20);O$E=I1v.c6Y("2",0);for(var e1H=1;I1v.O$R(e1H.toString(),e1H.toString().length,"40956" | 0) !== b$f;e1H++){z$y={};O$E+=2;}if(I1v.O$R(O$E.toString(),O$E.toString().length,8711) !== F_U){z$y={};}}else if(Array.isArray(z$y)){z$y={masterData:z$y};}if(!z$y){z$y={};}var {chart:z_y, periodicity:g15, range:b_J, span:y6y}=z$y;var {layout:J2y}=this;R3a={periodicity:J2y.periodicity,interval:J2y.interval,timeUnit:J2y.timeUnit};if(g15){E7O=L4w.cleanPeriodicity(g15.period?g15.period:g15.periodicity,g15.interval,g15.timeUnit);J2y.interval=E7O.interval;J2y.periodicity=E7O.period;J2y.timeUnit=E7O.timeUnit;}if(!z_y){z_y=this.chart;}var {dataSet:X3o, market:U2y, masterData:K_N, symbol:X5j, moreAvailable:u7A, upToDate:C$3}=z_y;X8Y=L4w.clone(z_y.symbolObject);z_y.dataSet=[];z_y.masterData=[];z_y.moreAvailable=null;z_y.upToDate=null;if(!u6m){z_y.symbol=null;z_y.symbolObject={symbol:null};}else if(typeof u6m == j_H){z_y.symbol=u6m.symbol;z_y.symbolObject=u6m;}else {z_y.symbol=u6m;z_y.symbolObject.symbol=u6m;}z_y.inflectionPoint=null;if(this.marketFactory){W7f=this.marketFactory(z_y.symbolObject);this.setMarket(W7f,z_y);}function Y7o(){var A7I,r7J;A7I="m";A7I+="aster";I1v.r2m();r7J="symbolImpor";r7J+="t";x7i.dispatch(x7i.currentlyImporting?r7J:"symbolChange",{stx:x7i,symbol:z_y.symbol,symbolObject:z_y.symbolObject,prevSymbol:X5j,prevSymbolObject:X8Y,action:A7I});if(g15){x7i.dispatch("periodicity",{stx:x7i,differentData:!!"1",prevPeriodicity:R3a});}}this.setMainSeriesRenderer(!![]);if(!b_J && !y6y && J2y){y6y=!J2y.range?J2y.setSpan:{};b_J=J2y.range || ({});}else if(b_J && y6y){H4w=-558315103;e8W=-393127144;O3a=+"2";for(var q2$=1;I1v.O$R(q2$.toString(),q2$.toString().length,40498) !== H4w;q2$++){y6y={};O3a+=+"2";}if(I1v.O$R(O3a.toString(),O3a.toString().length,92004) !== e8W){y6y={};}}this.clearCurrentMarketData(z_y);x7i=this;if(!z$y.masterData && this.quoteDriver){H40=function(i7M){if(i7M && i7M != "orphaned"){z_y.symbol=X5j;z_y.symbolObject=X8Y;z_y.market=U2y;x7i.masterData=z_y.masterData=K_N;z_y.dataSet=X3o;z_y.moreAvailable=u7A;z_y.upToDate=C$3;}I1v.J8h();Y7o();if(T_x){T_x.call(x7i,i7M);}};if(b_J && Object.keys(b_J).length && this.setRange){delete z$y.span;delete J2y.setSpan;this.chart.masterData=null;this.displayInitialized=!"1";if(g15){b_J.periodicity=g15;}b_J.forceLoad=!!({});this.setRange(b_J,H40);}else if(y6y && y6y.base && this.setSpan){y6y.multiplier=y6y.multiplier || 1;this.chart.masterData=null;this.displayInitialized=!!"";if(g15){y6y.maintainPeriodicity=!![];}y6y.forceLoad=!![];this.setSpan(y6y,H40);}else {this.quoteDriver.newChart({symbol:z_y.symbol,symbolObject:z_y.symbolObject,chart:z_y,initializeChart:!""},function(K2M){I1v.r2m();if(!K2M){x7i.adjustPanelPositions();x7i.quoteDriver.updateSubscriptions();if(z$y.stretchToFillScreen){x7i.fillScreen();}}H40.apply(x7i,arguments);});}}else {if(!z$y.masterData){console.log("Warning: No masterData specified and no QuoteFeed configured");}if(!z_y.symbol){z_y.symbol="";}this.initializeChart();b$P=this.doCleanupGaps(z$y.masterData,z_y);this.setMasterData(b$P,z_y,{noCleanupDates:!!({})});z_y.endPoints={};if(b$P && b$P.length){z_y.endPoints={begin:b$P[0].DT,end:b$P[b$P.length - 1].DT};}this.createDataSet();if(b_J && Object.keys(b_J).length && this.setRange){this.setRange(b_J);}else if(y6y && y6y.multiplier && y6y.base && this.setSpan){this.setSpan({maintainPeriodicity:!0,multiplier:y6y.multiplier,base:y6y.base});}else if(z$y.stretchToFillScreen){this.fillScreen();}else if(b$P && b$P.length){this.home();}else {this.clear();}this.adjustPanelPositions();Y7o();if(T_x){T_x.call(x7i);}}};L4w.ChartEngine.prototype.loadBlankChart=function(){I1v.r2m();this.loadChart(null,[]);};L4w.ChartEngine.prototype.getDataFields=function(O6A){var L0N,t8v,R3t;if(!O6A){O6A=this.chart;}I1v.J8h();L0N=O6A.defaultPlotField || "Close";t8v=["Open","High","Low"];t8v.push(L0N);for(var p$M in O6A.series){R3t=O6A.series[p$M].parameters;t8v.push(R3t.symbol);}return t8v;};L4w.ChartEngine.prototype.cleanMasterData=function(a84,k1Y){var y8h,z3j,u4k,w6j,F48;y8h=a84.symbol;z3j=k1Y.masterData;if(!z3j || !z3j.length){return;}u4k=this.getDataFields(k1Y);w6j=+"0";do {F48=z3j[w6j];delete F48[y8h];if(h3x.call(this,F48,u4k)){I1v.M8Y(46);z3j.splice(w6j,I1v.d58("1",0));continue;}w6j++;}while(w6j < z3j.length);z3j=this.doCleanupGaps(z3j,k1Y,{noCleanupDates:!![]});function h3x(Z7e,v_i){var e_g;for(var L5_=+"0";L5_ < v_i.length;L5_++){e_g=Z7e[v_i[L5_]];if(typeof e_g != "undefined"){return ![];}}return !![];}this.setMasterData(z3j,k1Y,{noCleanupDates:!0});this.clearCurrentMarketData(k1Y,y8h);};L4w.ChartEngine.prototype.calculateATR=function(J6z,t_D,U$u){var T7a,M8r,v9V,l7E,o1j,P1K;if(!U$u){U$u=J6z.dataSet;}T7a=J6z.state.calculations.atr;if(!T7a){T7a=J6z.state.calculations.atr={};}if(!t_D){t_D=20;}M8r=[];if(T7a.accum){M8r=T7a.accum;}for(var r0t="0" << 32;r0t < U$u.length;r0t++){l7E=U$u[r0t];v9V=r0t?U$u[r0t - 1]:T7a.q1;if(!v9V)continue;o1j=Math.max(l7E.High - l7E.Low,Math.abs(l7E.High - v9V.Close),Math.abs(l7E.Low - v9V.Close));if(M8r.length < t_D){if(M8r.push(o1j) == t_D){P1K=0;for(var B_U=0;B_U < M8r.length;B_U++){P1K+=M8r[B_U];}I1v.M8Y(40);l7E.atr=I1v.d58(t_D,P1K);}}else {I1v.C$o(134);var C4n=I1v.c6Y(122,11,11);l7E.atr=(v9V.atr * (t_D - C4n) + o1j) / t_D;}l7E.trueRange=o1j;}J6z.state.calculations.atr={accum:M8r,q1:v9V};};L4w.ChartEngine.prototype.calculateMedianPrice=function(c2H,e6$){var G1C,v8U;if(!e6$){e6$=c2H.dataSet;}for(var v5d=0;v5d < e6$.length;++v5d){v8U="h";v8U+="l";v8U+="/";v8U+="2";G1C=e6$[v5d];I1v.C$o(6);var D55=I1v.c6Y(0,15,9,18,7);G1C[v8U]=(G1C.High + G1C.Low) / ("2" * D55);}};I1v.J8h();L4w.ChartEngine.prototype.calculateTypicalPrice=function(v$U,S_s){var E9O;I1v.r2m();if(!S_s){S_s=v$U.dataSet;}for(var a3F=0;a3F < S_s.length;++a3F){E9O=S_s[a3F];I1v.M8Y(135);var N_V=I1v.c6Y(7,46,8,15,13);E9O["hlc/3"]=(E9O.High + E9O.Low + E9O.Close) / N_V;}};L4w.ChartEngine.prototype.calculateWeightedClose=function(z4C,t2X){var B8d,m0E;if(!t2X){t2X=z4C.dataSet;}for(var z6M=0;z6M < t2X.length;++z6M){m0E="h";m0E+="l";m0E+="c";m0E+="c/4";B8d=t2X[z6M];I1v.C$o(136);var e3t=I1v.c6Y(2,6,16,6);I1v.M8Y(22);var q2b=I1v.d58(2,2);B8d[m0E]=(B8d.High + B8d.Low + e3t * B8d.Close) / q2b;}};L4w.ChartEngine.prototype.calculateOHLC4=function(j7C,u9Z){var D4l;I1v.J8h();if(!u9Z){u9Z=j7C.dataSet;}for(var l6S=+"0";l6S < u9Z.length;++l6S){D4l=u9Z[l6S];I1v.M8Y(2);var s6o=I1v.d58(6,2);D4l["ohlc/4"]=(D4l.Open + D4l.High + D4l.Low + D4l.Close) / s6o;}};L4w.ChartEngine.prototype.currentQuote=function(y7W){var i$k;if(!this.chart.dataSet){return null;}for(var v_k=this.chart.dataSet.length - 1;v_k >= 0;v_k--){if(this.chart.dataSet[v_k]){if(!y7W){return this.chart.dataSet[v_k];}i$k=this.chart.dataSet[v_k][y7W];if(i$k || i$k === 0){return this.chart.dataSet[v_k];}}}return null;};L4w.ChartEngine.prototype.mostRecentClose=function(p4f){var Q47,H_q,L$k,y7N;I1v.r2m();if(!this.chart.dataSet){return null;}for(var J3v=this.chart.dataSet.length - ("1" ^ 0);J3v >= 0;J3v--){Q47="num";Q47+="b";Q47+="er";H_q="o";H_q+="bject";L$k=this.chart.dataSet[J3v];if(!L$k)continue;if(p4f){L$k=L$k[p4f];if(!L$k && L$k !== 0)continue;}y7N=L$k.iqPrevClose;if(typeof L$k == H_q){L$k=L$k.Close;}if(typeof L$k == "number"){return L$k;}if(typeof y7N == Q47){return y7N;}}return null;};L4w.ChartEngine.prototype.createDataSegment=function(z_a){var H3d,s0Y,V9x,S_7,Z2r,t6t,d6K,J6e,R72,T1$,z2Y,A1C,p$O,V$3,d$d,M0P,y6G,y72;if(this.runPrepend("createDataSegment",arguments)){return;}for(var g0l in this.charts){H3d=this.charts[g0l];if(z_a){H3d=z_a;}if(L4w.Comparison && H3d.isComparison){L4w.Comparison.createComparisonSegmentInner(this,H3d);}s0Y=H3d.dataSet;V9x=H3d.baseline;S_7=H3d.scroll;Z2r=H3d.maxTicks;t6t=this.layout;d6K=t6t.candleWidth;V9x.actualLevel=V9x.userLevel?V9x.userLevel:V9x.defaultLevel;J6e=V9x.includeInDataSegment && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars);T1$=0;z2Y=H3d.dataSegment=[];I1v.C$o(137);var o1i=I1v.d58(11,100,16,7);I1v.M8Y(134);var Z9f=I1v.d58(46,5,9);A1C=s0Y.length - o1i - S_7 - Z9f;p$O=H3d.defaultPlotField;for(var Q4f=-1;Q4f < S_7 && Q4f < Z2r;Q4f++){A1C++;if(Q4f == -1 && !J6e)continue;if(A1C < s0Y.length && A1C >= 0){R72=s0Y[A1C];R72.candleWidth=null;if(R72){T1$+=R72.Volume || 1;}z2Y.push(R72);if(V9x.actualLevel === null && Q4f >= 0){if(p$O && p$O != "Close"){I1v.M8Y(0);V$3=s0Y[I1v.d58(A1C,1)];if(V$3 && (V$3[p$O] || V$3[p$O] === 0)){V9x.actualLevel=V$3[p$O];}}else {if(R72.iqPrevClose || R72.iqPrevClose === 0){V9x.actualLevel=R72.iqPrevClose;}}}}else if(A1C < 0){z2Y.push(null);}}H3d.segmentImage=null;d$d=this.mainSeriesRenderer || ({});if(d$d.params && d$d.params.volume){I1v.M8Y(84);var Z7q=I1v.d58(109,13,7,9);M0P=H3d.width - (Z2r - z2Y.length - Z7q) * t6t.candleWidth;y6G=0;H3d.segmentImage=[];for(var v0K=0;v0K < z2Y.length;v0K++){R72=z2Y[v0K];H3d.segmentImage[v0K]={};y72=null;if(R72){if(R72.Volume){R72.candleWidth=M0P * R72.Volume / T1$;I1v.C$o(138);var P8c=I1v.c6Y(8,4,3,15,19);y72=y6G + R72.candleWidth / P8c;y6G+=R72.candleWidth;}else {R72.candleWidth=d6K;I1v.C$o(139);y72=I1v.d58(2,y6G,d6K);y6G+=d6K;}H3d.segmentImage[v0K]={tick:R72.tick,candleWidth:R72.candleWidth,leftOffset:y72};}else {y6G+=d6K;}}}if(z_a)break;}I1v.r2m();if(H3d && H3d.isComparison){this.clearPixelCache();}this.positionCrosshairsAtPointer();this.runAppend("createDataSegment",arguments);};L4w.ChartEngine.prototype.getDataSegment=function(L_K){var k$b,h8c,M5n;if(!L_K){L_K=this.chart;}k$b=L_K.dataSegment;if(!k$b || !k$b.length){return [];}h8c=0;M5n=k$b.length;if(this.pixelFromBar(h8c,L_K) < L_K.panel.left){h8c++;}I1v.J8h();if(this.pixelFromBar(M5n - 1,L_K) > L_K.panel.right){M5n--;}return k$b.slice(h8c,M5n);};L4w.ChartEngine.prototype.setMasterData=function(e4R,g6H,A9W){var A4F,G$Z,m63,x2T,S9C,a8e,c4q,q9S;if(!g6H){g6H=this.chart;}if(this.marketFactory){A4F=this.marketFactory(g6H.symbolObject);this.setMarket(A4F,g6H);}if(!A9W){A9W={};}if(!A9W.noCleanupDates){this.doCleanupDates(e4R,this.layout.interval);}g6H.masterData=e4R;if(g6H.name == "chart"){this.masterData=e4R;}m63=null;for(G$Z=0;e4R && G$Z < e4R.length;G$Z++){x2T="setMasterData : Mi";x2T+="ssin";x2T+="g DT and Date on masterData object";S9C="Val";S9C+="ue";a8e=e4R[G$Z];if(m63 === null){c4q="num";c4q+="ber";if(typeof a8e.Close === "number"){m63="Close";}else if(typeof a8e.Value === c4q){m63="Value";}}if(m63 === S9C && typeof a8e.Value === "number"){a8e.Close=a8e.Value;}if(a8e.DT){if(Object.prototype.toString.call(a8e.DT) != "[object Date]"){a8e.DT=new Date(a8e.DT);}if(!a8e.Date || a8e.Date.length != 17){a8e.Date=L4w.yyyymmddhhmmssmmm(a8e.DT);}}else if(a8e.Date){a8e.DT=L4w.strToDateTime(a8e.Date);}else {console.log(x2T);}if(a8e.Volume && typeof a8e.Volume !== "number"){a8e.Volume=parseInt(a8e.Volume,"10" * 1);}if(e4R.length - G$Z < 50){this.updateCurrentMarketData(a8e,g6H,null,{fromTrade:!![]});}}if(g6H.calculateTradingDecimalPlaces){g6H.decimalPlaces=g6H.calculateTradingDecimalPlaces({stx:this,chart:g6H,symbol:g6H.symbolObject.symbol,symbolObject:g6H.symbolObject});}this.setDisplayDates(e4R);g6H.roundit=Math.pow(10,g6H.decimalPlaces);for(G$Z in this.plugins){q9S=this.plugins[G$Z];if(q9S.display){if(q9S.setMasterData){q9S.setMasterData(this,g6H);}}}};L4w.ChartEngine.prototype.setMasterDataRender=function(Z1r,S4s,t28){var I$4,f3t,E8F;if(!t28){t28=this.chart;}if(!t28.symbol){t28.symbol="";}this.setMasterData(S4s,t28);if(S4s){I1v.C$o(46);I$4=I1v.c6Y("878835369",32);f3t=117229201;E8F=2;for(var m8b="1" >> 0;I1v.q2D(m8b.toString(),m8b.toString().length,77732) !== I$4;m8b++){t28.endPoints={};E8F+=2;}if(I1v.q2D(E8F.toString(),E8F.toString().length,"54060" * 1) !== f3t){t28.endPoints={};}if(S4s.length){t28.endPoints={begin:S4s[0].DT,end:S4s[S4s.length - 1].DT};t28.symbol=Z1r;}}this.createDataSet();this.initializeChart();this.draw();if(!S4s || !S4s.length){t28.symbol=null;this.clear();}this.adjustPanelPositions();};L4w.ChartEngine.prototype.getSymbols=function(P6X){var A8U,p1v,O15,I65,I96,u2V,R4k,r3q,U9s,h$M,B81,Y7_,M0b;if(!P6X){P6X={};}A8U=[];O15=this.layout;for(var S_d in this.charts){u2V=this.charts[S_d];if(u2V.symbolObject && u2V.symbolObject.symbol){A8U.push(K1a(u2V.symbol,u2V.symbolObject,O15));}for(var X_4 in u2V.series){R4k="stud";R4k+="y";r3q="exclude-studie";r3q+="s";U9s=u2V.series[X_4];h$M=U9s.parameters;if(h$M.data && !h$M.data.useDefaultQuoteFeed)continue;I96=h$M.symbolObject;I65=h$M.symbol;p1v=K1a(I65,I96,O15);p1v.id=X_4;if(P6X["include-parameters"]){p1v.parameters=L4w.clone(h$M);if(p1v.parameters.yAxis){delete p1v.parameters.yAxis.yAxisPlotter;}}if(P6X[r3q] && h$M.bucket == R4k)continue;if(P6X["exclude-generated"] && I96.generator)continue;A8U.push(p1v);}}function K1a(g5K,Q5Q,S7C){I1v.J8h();return {symbol:g5K,symbolObject:Q5Q,periodicity:S7C.periodicity,interval:S7C.interval,timeUnit:S7C.timeUnit,setSpan:S7C.setSpan};}if(P6X["breakout-equations"]){B81={};for(var d4S=+"0";d4S < A8U.length;d4S++){I65=A8U[d4S].symbol;if(this.isEquationChart(I65)){Y7_=L4w.formatEquation(I65);if(Y7_){M0b=Y7_.symbols;for(var N6c=+"0";N6c < M0b.length;N6c++){B81[M0b[N6c]]=K1a(M0b[N6c],A8U[d4S].symbolObject,A8U[d4S]);}}}else {B81[I65]=K1a(I65,A8U[d4S].symbolObject,A8U[d4S]);}}A8U=[];for(var L$6 in B81){A8U.push(B81[L$6]);}}return A8U;};L4w.ChartEngine.prototype.setDisplayDate=function(L6p){var f_8,b6d,C1w;if(L4w.ChartEngine.isDailyInterval(this.layout.interval)){return;}f_8=L6p.DT;I1v.C$o(30);var V9G=I1v.c6Y(9,11000,9991);b6d=f_8.getSeconds() * V9G + f_8.getMilliseconds();if(J_X.Date && this.displayZone){C1w=new J_X.Date(f_8.getTime(),this.displayZone);f_8=new Date(C1w.getFullYear(),C1w.getMonth(),C1w.getDate(),C1w.getHours(),C1w.getMinutes());f_8=new Date(f_8.getTime() + b6d);}L6p.displayDate=f_8;};L4w.ChartEngine.prototype.setDisplayDates=function(C_A){var f_E;if(!C_A){return;}I1v.J8h();if(L4w.ChartEngine.isDailyInterval(this.layout.interval)){return;}for(var A6m=0;A6m < C_A.length;A6m++){f_E=C_A[A6m];if(f_E.DT){this.setDisplayDate(f_E);}}};L4w.ChartEngine.prototype.setTimeZone=function(U1y,t8u){var f_a,G0M,t0c,I0_,z9T;if(!J_X.Date){this.timeZoneOffset=0;return;}f_a=new Date();G0M=f_a.getTimezoneOffset();t0c=G0M;I0_=G0M;if(U1y){this.dataZone=U1y;}if(this.dataZone){t0c=new J_X.Date(f_a,this.dataZone).getTimezoneOffset();}if(t8u){this.displayZone=t8u;}if(this.displayZone){I0_=new J_X.Date(f_a,this.displayZone).getTimezoneOffset();}I1v.M8Y(140);this.timeZoneOffset=I1v.d58(t0c,G0M,G0M,I0_);for(var c0b in this.charts){z9T=this.charts[c0b];this.setDisplayDates(z9T.masterData);}this.preferences.timeZone=t8u;this.changeOccurred("preferences");this.createDataSet();};L4w.ChartEngine.prototype.updateChartData=function(t1e,C3X,w8j){var S7u,a3f,g1a,v50,O4o,S9M,Z2J,e3l,a_f,J7L,u_U,z5W,U$N,d21,f3z,r33,T76,a4y,Y$4,a77,P_X,b4p,F3u,B_8,O8W,h$5,X3$,h$a,W6I,H0i,s9m;S7u="u";function P7H(){var n1m,D2z,Y4u,n3Z,w_y,l62,z7A,G5H,x56,o5e,A_4,b6x,U8i,A_7,y7F;n1m="mon";n1m+="t";n1m+="h";D2z="market.";D2z+="market_def.market_tz";if(!L4w.Market || !C3X.market){return;}Y4u={market_tz:L4w.getFromNS(C3X,D2z,null)};n3Z=S9M.interval;if(n3Z == n1m || n3Z == "week"){w_y="d";w_y+="a";w_y+="y";if(!e3l.dontRoll){n3Z=w_y;}Y4u=e3l.chart.market.market_def;}l62=new L4w.Market(Y4u);z7A={begin:O4o && O4o.length?O4o[O4o.length - 1].DT:t1e.DT,interval:n3Z,periodicity:+"1",timeUnit:S9M.timeUnit};G5H=l62.newIterator(z7A);x56=G5H.next();if(!O4o){b6x=+"816643897";I1v.C$o(38);U8i=I1v.c6Y("885887543",1);A_7=+"2";for(var O8y=1;I1v.O$R(O8y.toString(),O8y.toString().length,81010) !== b6x;O8y++){t1e.DT=new Date(+G5H.previous());A_7+=2;}if(I1v.O$R(A_7.toString(),A_7.toString().length,49962) !== U8i){t1e.DT=new Date(!G5H.previous());}}else if(t1e.DT < x56){o5e=0;y7F=G5H.previous();A_4=t1e.DT;w8j.appending=!"";while(A_4 < y7F && o5e < 1000){w8j.appending=!!0;y7F=G5H.previous();o5e++;}t1e.DT=y7F;w8j.updating=!w8j.appending;}else if(t1e.DT >= x56){o5e=0;A_4=t1e.DT;while(A_4 > x56 && o5e < 1000){t1e.DT=x56;x56=G5H.next();o5e++;}w8j.appending=!!1;}}S7u+="pdateChart";S7u+="Data";a3f="appendMa";a3f+="sterDa";a3f+="ta";if(!w8j){w8j={};}if(!C3X){C3X=this.chart;}function e_s(){var g7F,o1L,S7l;e3l.createDataSet(null,null,w8j);e3l.draw();e3l.updateChartAccessories();g7F=1638676724;o1L=1769567440;S7l=2;for(var M$M=1;I1v.q2D(M$M.toString(),M$M.toString().length,+"42364") !== g7F;M$M++){I1v.M8Y(46);e3l.streamParameters.count=I1v.d58("0",32);e3l.streamParameters.timeout=-1;I1v.M8Y(46);S7l+=I1v.d58("2",0);}if(I1v.O$R(S7l.toString(),S7l.toString().length,24527) !== o1L){e3l.streamParameters.count=8;e3l.streamParameters.timeout=!0;}}g1a=!!0;v50=![];O4o=C3X.masterData;S9M=this.layout;Z2J=this.dataZone;e3l=this;a_f=w8j.secondarySeries;z5W=L4w.isValidNumber;if(!w8j.noCleanupDates){this.doCleanupDates(t1e,S9M.interval);}if(w8j.useAsLastSale || t1e.constructor == Object && (t1e.Last || t1e.Last === 0)){A4E();}if(t1e && t1e.constructor == Object){t1e=[t1e];}if(!t1e || !t1e.length){return;}function j2R(h2p,r9s){I1v.J8h();var D5v,x6D,v0N,C4d,r44,s8f;if(a_f){x6D=-172829766;v0N=-2133807539;C4d=2;for(var U9M=1;I1v.O$R(U9M.toString(),U9M.toString().length,+"51999") !== x6D;U9M++){delete O4o[h2p][a_f];I1v.C$o(38);C4d+=I1v.d58("2",1);}if(I1v.O$R(C4d.toString(),C4d.toString().length,"58750" ^ 0) !== v0N){-O4o[h2p][a_f];}if(e3l.cleanupGaps){r44="g";r44+="ap";D5v={DT:r9s,Close:null};if(e3l.cleanupGaps != r44 && O4o[h2p - 1] && O4o[h2p - 1][a_f]){D5v.Close=O4o[h2p - 1][a_f].Close;D5v.High=D5v.Low=D5v.Open=D5v.Close;D5v.Volume=0;}O4o[h2p][a_f]=D5v;}}else {s8f=O4o.splice(h2p,I1v.c6Y("1",0,I1v.C$o(0)))[0];D5v={DT:s8f.DT,Close:null,needed:!!""};for(J7L in C3X.series){u_U=C3X.series[J7L].parameters.symbolObject.symbol;if(typeof s8f[u_U] != "undefined"){D5v[u_U]=s8f[u_U];delete D5v.needed;}}if(e3l.cleanupGaps && e3l.cleanupGaps != "gap"){delete D5v.needed;if(e3l.cleanupGaps != "gap" && O4o[h2p - 1]){D5v.Close=O4o[h2p - 1].Close;D5v.High=D5v.Low=D5v.Open=D5v.Close;D5v.Volume=0;}}if(D5v.needed !== !!""){O4o.splice(h2p,0,D5v);e3l.setDisplayDate(D5v);}}}if(this.runPrepend(a3f,[t1e,C3X,w8j])){return;}if(this.runPrepend("updateChartData",[t1e,C3X,w8j])){return;}function A4E(){var r0c,G_e;r0c="[obje";r0c+="ct";r0c+=" ";r0c+="Date]";g1a=!!1;if(w8j.useAsLastSale && w8j.useAsLastSale.aggregatedVolume){v50=!"";}if(t1e.constructor === Array){I1v.C$o(134);var z1P=I1v.c6Y(92,7,13);G_e=t1e[t1e.length - z1P];t1e={};t1e.DT=G_e.DT;t1e.Close=G_e.Close;t1e.Volume=G_e.Volume;}else if(t1e.Last){t1e.Close=t1e.Last;delete t1e.Last;}if(t1e.DT && Object.prototype.toString.call(t1e.DT) != r0c){t1e.DT=new Date(t1e.DT);}if(!t1e.DT || t1e.DT == "Invalid Date"){t1e.DT=new Date();}if(S9M.interval != "tick"){P7H();}t1e.Open=t1e.Close;t1e.High=t1e.Close;t1e.Low=t1e.Close;}if(!O4o){O4o=[];}I1v.C$o(4);var a5J=I1v.c6Y(1,89,7,1,11);U$N=O4o.length - a5J;d21=!"1";if(w8j.fillGaps){n3U();}if(!t1e.length){return;}for(var c4Q=+"0";c4Q < t1e.length;c4Q++){f3z=t1e[c4Q];r33=f3z.DT;T76=f3z.Date;if(r33 && Object.prototype.toString.call(r33) != "[object Date]"){f3z.DT=r33=new Date(r33);}if(r33){if(!T76 || T76.length != 17){f3z.Date=L4w.yyyymmddhhmmssmmm(f3z.DT);}}if(!r33){r33=f3z.DT=L4w.strToDateTime(T76);}if(!z5W(f3z.Close) && z5W(f3z.Value)){f3z.Close=f3z.Value;}while(U$N >= +"0" && U$N < O4o.length){a4y=O4o[U$N].DT;if(!a4y){a4y=L4w.strToDateTime(O4o[U$N].Date);}if(a4y.getTime() <= r33.getTime()){d21=!![];Y$4=0;if(a4y.getTime() < r33.getTime()){if(U$N < O4o.length - 1){a77=O4o[U$N + +"1"].DT || L4w.strToDateTime(O4o[U$N + +"1"].Date);if(a77.getTime() <= r33.getTime()){U$N++;continue;}}I1v.M8Y(74);Y$4=I1v.c6Y("1",0);;}if(w8j.deleteItems){if(!Y$4){j2R(U$N,r33);}break;}else {P_X="ti";P_X+="c";P_X+="k";if(S9M.interval == P_X && w8j.firstLoop !== !!0){Y$4=1;}if(!Y$4){Q27(U$N,f3z);}if(z5W(f3z.Close)){if(!z5W(f3z.Open)){f3z.Open=f3z.Close;}b4p=Math.max(f3z.Open,f3z.Close);F3u=Math.min(f3z.Open,f3z.Close);if(!z5W(f3z.High) || f3z.High < b4p){f3z.High=b4p;}if(!z5W(f3z.Low) || f3z.Low > F3u){f3z.Low=F3u;}}if(f3z.Volume && !z5W(f3z.Volume)){f3z.Volume=parseInt(f3z.Volume,10);}U$N+=Y$4;if(a_f){if(t1e.length - c4Q < +"50"){this.updateCurrentMarketData(f3z,C3X,a_f,{fromTrade:!!1});}if(S9M.interval != "tick" || f3z.Close !== undefined){if(Y$4){I1v.M8Y(38);O4o.splice(U$N,I1v.d58("0",1),{DT:f3z.DT});this.setDisplayDate(O4o[U$N]);}O4o[U$N][a_f]=f3z;}}else {if(t1e.length - c4Q < "50" << 32){this.updateCurrentMarketData(f3z,C3X,null,{fromTrade:!!({})});}if(S9M.interval != "tick" || f3z.Close !== undefined){O4o.splice(U$N,Y$4?0:"1" | 1,f3z);this.setDisplayDate(f3z);}}}break;}U$N+=d21?1:-1;}if(U$N < 0){if(a_f){B_8="t";B_8+="ic";B_8+="k";this.updateCurrentMarketData(f3z,C3X,a_f,{fromTrade:!!({})});if(S9M.interval != B_8 || f3z.Close !== undefined){O4o.splice(0,0,{DT:f3z.DT});this.setDisplayDate(O4o[0]);O4o[0][a_f]=f3z;}}else {O8W="t";O8W+="i";O8W+="c";O8W+="k";this.updateCurrentMarketData(f3z,C3X,null,{fromTrade:!!({})});if(S9M.interval != O8W || f3z.Close !== undefined){I1v.C$o(19);O4o.splice(I1v.d58(0,"0"),0,f3z);this.setDisplayDate(f3z);}}d21=!![];U$N=0;}}function Q27(u47,Y$E){var Z4q,H37,d8T,s92;Z4q=O4o[u47];if(a_f){Z4q=Z4q[a_f] || ({});}if(Y$E.Close === null){if(Z4q.Open !== undefined){Y$E.Open=null;}if(Z4q.High !== undefined){Y$E.High=null;}if(Z4q.Low !== undefined){Y$E.Low=null;}if(Z4q.Volume !== undefined){Y$E.Volume=null;};}else {H37="L";H37+="o";H37+="w";d8T="O";d8T+="p";d8T+="en";if(g1a){if(Y$E.Volume){Y$E.Volume=parseInt(Y$E.Volume,10);}if(!v50){Y$E.Volume+=Z4q.Volume;}}else {if(!z5W(Y$E.Volume) && Z4q.Volume){Y$E.Volume=Z4q.Volume;}}if(!w8j.allowReplaceOHL){if(z5W(Z4q.Open)){Y$E.Open=Z4q.Open;}if(z5W(Z4q.High) && z5W(Y$E.High)){if(Z4q.High > Y$E.High){Y$E.High=Z4q.High;}}if(z5W(Z4q.Low) && z5W(Y$E.Low)){if(Z4q.Low < Y$E.Low){Y$E.Low=Z4q.Low;}}}["Close",d8T,"High",H37,"Bid","Ask"].forEach(function(X4_){I1v.J8h();if(!z5W(Y$E[X4_])){Y$E[X4_]=Z4q[X4_];}});for(J7L in C3X.series){s92="u";s92+="ndef";s92+="i";s92+="ned";u_U=C3X.series[J7L].parameters.symbolObject.symbol;if(typeof Y$E[u_U] == s92 && typeof Z4q[u_U] != "undefined"){Y$E[u_U]=Z4q[u_U];}}}}if(O4o.length){this.masterData=C3X.masterData=O4o;}if(this.maxMasterDataSize){O4o=C3X.masterData=this.masterData=O4o.slice(-this.maxMasterDataSize);}h$5=a_f?this.getSeries({symbol:a_f,chart:C3X}):[C3X];function n3U(){var t1X,T_y,e$F;t1X=null;T_y=+"0";if(O4o.length){t1X=e3l.getFirstLastDataRecord(O4o,a_f || C3X.defaultPlotField,!!"1");if(t1X){if(t1e[t1e.length - ("1" | 1)].DT <= t1X.DT){return;}for(;T_y < t1e.length;T_y++){if(+t1e[T_y].DT == +t1X.DT){if(e3l.getFirstLastDataRecord([t1e[T_y]],a_f || C3X.defaultPlotField)){t1X=null;}break;}else if(t1e[T_y].DT > t1X.DT)break;}}}e$F=t1e.slice(T_y);if(t1X){e$F.unshift(a_f?t1X[a_f]:t1X);}e$F=e3l.doCleanupGaps(e$F,C3X);I1v.J8h();if(t1X){e$F.shift();}t1e=t1e.slice(0,T_y).concat(e$F);}for(var k0H=+"0";k0H < h$5.length;k0H++){X3$=h$5[k0H];if(!X3$.endPoints.begin || X3$.endPoints.begin > t1e[+"0"].DT){X3$.endPoints.begin=t1e[0].DT;}if(!X3$.endPoints.end || X3$.endPoints.end < t1e[t1e.length - 1].DT){X3$.endPoints.end=t1e[t1e.length - 1].DT;}h$a=X3$.parameters && X3$.parameters.field || C3X.defaultPlotField;W6I=this.getFirstLastDataRecord(t1e,h$a,!!1);if(W6I && (!X3$.lastQuote || X3$.lastQuote.DT <= W6I.DT)){X3$.lastQuote=W6I;}if(a_f && w8j.deleteItems){X3$.lastQuote=this.getFirstLastDataRecord(O4o,a_f,!![])[a_f];}}for(var x4h in this.plugins){H0i=this.plugins[x4h];if(H0i.display){if(H0i.appendMasterData){H0i.appendMasterData(this,t1e,C3X);}}}if(!this.masterData || !this.masterData.length){this.masterData=O4o;}if(!w8j.noCreateDataSet){s9m=this.streamParameters;if(++s9m.count > s9m.maxTicks || w8j.bypassGovernor){clearTimeout(s9m.timeout);e_s();}else {if(s9m.timeout == -1){s9m.timeout=setTimeout(e_s,s9m.maxWait);}}}this.runAppend("appendMasterData",arguments);this.runAppend(S7u,arguments);};L4w.ChartEngine.prototype.updateCurrentMarketData=function(d2U,a3d,J1_,S9O){var N8z,z3Y,B4l,B24,n0h,D2Z,l9v,f3a,K7l,e6z;N8z="updat";N8z+="eCur";N8z+="rentMarketData";z3Y="A";z3Y+="skL2";if(!d2U || !d2U.DT){return;}if(!a3d){a3d=this.chart;}B4l=S9O && S9O.fromTrade;B24=d2U.DT;if(!B4l && this.layout.interval != "tick" && a3d.market){if(a3d.market.market_def){if(!a3d.market.isMarketDate(d2U.DT)){return;}if(!L4w.ChartEngine.isDailyInterval(this.layout.interval) && a3d.market.getSession(d2U.DT) === null){return;};}n0h={begin:d2U.DT,interval:this.layout.interval,periodicity:this.layout.periodicity,timeUnit:this.layout.timeUnit};D2Z=new L4w.Market(a3d.market.market_def);if(this.extendedHours && this.extendedHours.filter){D2Z.enableAllAvailableSessions();}l9v=D2Z.newIterator(n0h);l9v.next();d2U.DT=l9v.previous();}if(this.runPrepend("updateCurrentMarketData",arguments)){return;}f3a=a3d.currentMarketData;if(J1_){if(!f3a[J1_]){f3a[J1_]={};}f3a=f3a[J1_];}["Last","Bid","Ask"].forEach(function(i3N){I1v.J8h();if(d2U[i3N] && typeof d2U[i3N] == "number"){if(!f3a[i3N] || !f3a[i3N].DT || f3a[i3N].DT <= d2U.DT){f3a[i3N]={DT:d2U.DT,Price:d2U[i3N],Size:d2U[i3N + "Size"],Timestamp:B24};}}});["BidL2",z3Y].forEach(function(B9Q){if(d2U[B9Q] && d2U[B9Q] instanceof Array){if(!f3a[B9Q] || !f3a[B9Q].DT || f3a[B9Q].DT <= d2U.DT){f3a[B9Q]={DT:d2U.DT,Price_Size:d2U[B9Q],Timestamp:B24};}}});if(d2U.Close && (!f3a.Last || f3a.Last.DT <= d2U.DT)){K7l=d2U.Close;e6z=S9O && S9O.finalClose;if(e6z || e6z === 0){K7l=e6z;}f3a.Last={DT:d2U.DT,Price:K7l,Size:d2U.LastSize === undefined && this.layout.interval == "tick"?d2U.Volume:d2U.LastSize,Timestamp:d2U.LastTime || B24};}f3a.touched=new Date();if(!B4l){delete d2U.Last;}this.runAppend(N8z,arguments);};L4w.ChartEngine.prototype.clearCurrentMarketData=function(O7J,H7u){var i6o,n2Q,j6X,d87;i6o="clearC";i6o+="urrent";i6o+="MarketDat";i6o+="a";if(this.runPrepend(i6o,arguments)){return;}j6X=[];if(!O7J){for(n2Q in this.charts){j6X.push(this.charts[n2Q]);}}else {j6X.push(O7J);}for(n2Q=0;n2Q < j6X.length;n2Q++){d87=j6X[n2Q].currentMarketData;if(H7u){delete d87[H7u];}else {for(var P1N in d87){d87[P1N]=undefined;}}}this.runAppend("clearCurrentMarketData",arguments);};};f9=P1C=>{var r0g;r0g=P1C.CIQ;r0g.ChartEngine.prototype.changeOccurred=function(p7A){var O60,I5K,N5H,S96,F6p;O60="prefe";O60+="r";O60+="e";O60+="nces";I5K="th";I5K+="e";I5K+="me";N5H="th";N5H+="e";N5H+="m";N5H+="e";S96={stx:this,symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,layout:this.layout,drawings:this.drawingObjects};if(p7A == N5H){this.dispatch(I5K,S96);}if(this.currentlyImporting){return;}x2dci.r2m();if(p7A == "layout"){this.dispatch("layout",S96);}else if(p7A == "vector"){F6p="dra";F6p+="win";F6p+="g";this.dispatch(F6p,S96);}else if(p7A == O60){this.dispatch("preferences",S96);}};r0g.ChartEngine.prototype.startAsyncAction=function(){if(!this.pendingAsyncs){this.pendingAsyncs=[];}this.pendingAsyncs.push(!![]);};r0g.ChartEngine.prototype.registerChartDrawnCallback=function(Y3c){if(!this.asyncCallbacks){this.asyncCallbacks=[];}x2dci.r2m();this.asyncCallbacks.push(Y3c);return {fc:Y3c};};r0g.ChartEngine.prototype.unregisterChartDrawnCallback=function(Y8_){for(var D0$=0;D0$ < this.asyncCallbacks.length;D0$++){if(this.asyncCallbacks[D0$] == Y8_.fc){x2dci.C$o(74);this.asyncCallbacks.splice(D0$,x2dci.d58("1",0));return;}}};r0g.ChartEngine.prototype.makeAsyncCallbacks=function(){x2dci.r2m();if(!this.asyncCallbacks){return;}if(!this.pendingAsyncs || !this.pendingAsyncs.length){for(var t26=0;t26 < this.asyncCallbacks.length;t26++){this.asyncCallbacks[t26]();}}};r0g.ChartEngine.prototype.completeAsyncAction=function(){x2dci.r2m();this.pendingAsyncs.pop();this.makeAsyncCallbacks();};r0g.ChartEngine.prototype.addDomEventListener=function(w98,s_5,X1v,K93){x2dci.J8h();w98.addEventListener(s_5,X1v,K93);this.eventListeners.push({element:w98,event:s_5,function:X1v,options:K93});};r0g.ChartEngine.prototype.addEventListener=function(a03,i5m){var e91;x2dci.r2m();if(a03 === "*"){for(var S0z in this.callbackListeners){this.callbackListeners[S0z].push(i5m);}}else if(a03 instanceof Array){for(var F9e=0;F9e < a03.length;F9e++){this.callbackListeners[a03[F9e]].push(i5m);}}else {e91=this.callbackListeners[a03];if(!e91){throw new Error("Attempted to add an invalid listener.");}e91.push(i5m);}return {type:a03,cb:i5m};};r0g.ChartEngine.prototype.removeEventListener=function(Z8B,a5Y){var L7D,b6_,Y3A;if(!Z8B || typeof Z8B != "object"){Z8B={type:Z8B,cb:a5Y};}L7D=function(S_q,i9b){for(var g63=0;g63 < S_q.length;g63++){if(S_q[g63] === i9b){S_q.splice(g63,1);return;}}};b6_=this.callbackListeners;if(Z8B.type === (795 !== 4930?"359.56" - 0 != (840.53,8980)?"*":(7.48e+2,"g"):"f")){for(var u8a in b6_){L7D(b6_[u8a],Z8B.cb);}return;}if(!b6_[Z8B.type]){Y3A="Attempted ";Y3A+="to remove an invalid listener.";throw new Error(Y3A);}L7D(b6_[Z8B.type],Z8B.cb);};r0g.ChartEngine.prototype.dispatch=function(i9X,o8h){var o$f;o$f=this.callbackListeners[i9X];if(o$f){for(var M4t=0;M4t < o$f.length;M4t++){if(o$f[M4t].call(this,o8h) === !""){return !![];}}}o$f=this.callbackListeners["*"];if(o$f){for(var T_1=0;T_1 < o$f.length;T_1++){if(o$f[T_1].call(this,o8h) === !!1){return !![];}}}return !!0;};r0g.ChartEngine.prototype.updateListeners=function(t0S){x2dci.J8h();var z9c;for(var Q1j in this.plugins){z9c=this.plugins[Q1j];if(z9c.display && z9c.listener){z9c.listener(this,t0S);}}};};o8=m$s=>{var S88=x2dci;S88.r2m();var R_H;R_H=m$s.CIQ;R_H.ChartEngine.prototype.prepend=function(G4j,l6k){var h3d,Q5x;S88.C$o(22);h3d=S88.d58(G4j,"prepend");if(this instanceof R_H.ChartEngine){Q5x=this.hasOwnProperty(h3d)?this[h3d]:[];this[h3d]=[l6k].concat(Q5x);}else {Q5x=R_H.ChartEngine.prototype[h3d] || [];R_H.ChartEngine.prototype[h3d]=[l6k].concat(Q5x);}return {method:h3d,func:l6k};};R_H.ChartEngine.prototype.append=function(w0A,s51){var N$9,W0d,w8M;N$9="appen";N$9+="d";S88.C$o(22);W0d=S88.d58(w0A,N$9);if(this instanceof R_H.ChartEngine){w8M=this.hasOwnProperty(W0d)?this[W0d]:[];this[W0d]=w8M.concat(s51);}else {w8M=R_H.ChartEngine.prototype[W0d] || [];R_H.ChartEngine.prototype[W0d]=w8M.concat(s51);}return {method:W0d,func:s51};};R_H.ChartEngine.prototype.runPrepend=function(u42,A2d,o77){var b2r,G4M,i1g;S88.C$o(22);S88.r2m();b2r=S88.d58(u42,"prepend");G4M=this.hasOwnProperty(b2r)?this[b2r]:[];G4M=G4M.concat(R_H.ChartEngine.prototype[b2r] || []);if(!G4M.length){return ![];}if(!o77){o77=this;}for(var I_A=0;I_A < G4M.length;I_A++){i1g=G4M[I_A].apply(o77,A2d);if(i1g){return i1g;}}return !1;};R_H.ChartEngine.prototype.runAppend=function(j15,t9L,z_C){S88.r2m();var v4o,z$Y,z_W;S88.M8Y(22);v4o=S88.d58(j15,"append");z$Y=this.hasOwnProperty(v4o)?this[v4o]:[];z$Y=z$Y.concat(R_H.ChartEngine.prototype[v4o] || []);if(!z$Y.length){return !"1";}if(!z_C){z_C=this;}for(var V$C=0;V$C < z$Y.length;V$C++){z_W=z$Y[V$C].apply(z_C,t9L);if(z_W){return z_W;}}return ![];};R_H.ChartEngine.prototype.removeInjection=function(D4y){var X1D,h$l;X1D=D4y.method;if(this instanceof R_H.ChartEngine){if(!this[X1D]){return;}for(h$l=0;h$l < this[X1D].length;h$l++){if(this[X1D][h$l] == D4y.func){this[X1D].splice(h$l,+"1");return;}}}else {if(!R_H.ChartEngine.prototype[X1D]){return;}for(h$l=0;h$l < R_H.ChartEngine.prototype[X1D].length;h$l++){if(R_H.ChartEngine.prototype[X1D][h$l] == D4y.func){R_H.ChartEngine.prototype[X1D].splice(h$l,1);return;}}}};R_H.ChartEngine.prototype.remove=function(u3$){S88.J8h();var t9F;if(this instanceof R_H.ChartEngine){S88.C$o(22);delete this[S88.c6Y(u3$,"append")];S88.C$o(22);delete this[S88.d58(u3$,"prepend")];}else {t9F="appen";t9F+="d";S88.C$o(22);delete R_H.ChartEngine.prototype[S88.d58(u3$,t9F)];S88.M8Y(22);delete R_H.ChartEngine.prototype[S88.c6Y(u3$,"prepend")];}};};d7=V1n=>{var j13=x2dci;var k4o,S39;k4o=V1n.CIQ;S39=V1n.timezoneJS;k4o.ChartEngine.prototype.convertToDataZone=function(B1H){var H_s;if((B1H || B1H === 0) && this.dataZone){H_s=k4o.convertTimeZone(B1H,null,this.dataZone);B1H=new Date(H_s.getFullYear(),H_s.getMonth(),H_s.getDate(),H_s.getHours(),H_s.getMinutes(),H_s.getSeconds(),H_s.getMilliseconds());}return B1H;};k4o.ChartEngine.prototype.debug=function(){};k4o.ChartEngine.prototype.fps=function(Q0x,d_T){var T$z,z$Z,P4w,k_H;T$z=" sec";T$z+="onds";Q0x=Q0x || 5;z$Z=new Date().getTime();P4w=0;k_H=this;function r5F(){var C3z,l4E;C3z=(new Date().getTime() - z$Z) / +"1000";j13.r2m();if(C3z > Q0x){j13.C$o(40);l4E=j13.d58(C3z,P4w);j13.C$o(22);console.log(j13.c6Y(l4E,"FPS="));if(d_T){d_T(l4E);}return;}k_H.draw();P4w++;if(k4o.ChartEngine.useAnimation){requestAnimationFrame(r5F);}else {setTimeout(r5F,0);}}j13.M8Y(53);console.log(j13.d58("Running fps() for ",Q0x,T$z));r5F();};k4o.ChartEngine.htmlControls={mSticky:'
',iconsTemplate:'
'};k4o.ChartEngine.prototype.setChartType=function(x2p){var t1K,j2r;j13.J8h();t1K=this.layout;j2r=this.chart;if(t1K.aggregationType != "ohlc"){t1K.aggregationType="ohlc";if(j2r.canvas){this.createDataSet();}}t1K.chartType=x2p;this.setMainSeriesRenderer();if(this.mainSeriesRenderer.isAggregation && this.setAggregationType){return this.setAggregationType(x2p);}j2r.defaultChartStyleConfig={type:x2p};if(this.displayInitialized){this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.setChartScale=function(f1T){var t1V;if(!f1T){f1T="linear";}t1V={percent:!!"1",relative:!![]};this.layout.chartScale=f1T;j13.J8h();if(this.chart.canvas){this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.checkLogScale=function(){var t8T,m6d;t8T="lo";t8T+="g";if(this.runPrepend("checkLogScale",arguments)){return;}if(this.layout.chartScale !== t8T){return ![];}m6d=![];if(this.chart.yAxis.lowValue <= 0){this.setChartScale("linear");this.dispatch("notification","logdeactivated");m6d=!0;}this.runAppend("checkLogScale",arguments);return m6d;};k4o.ChartEngine.prototype.setAdjusted=function(z9t){this.layout.adj=z9t;if(this.chart.canvas){this.createDataSet();this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.padOutPrice=function(b7W,A$X){var U0r,e3q,V8m,O1w;if(b7W !== 0 && (!b7W || typeof b7W != "number")){return "";}if(!A$X && A$X !== 0){A$X=b7W;}j13.C$o(22);U0r=j13.d58(A$X,"");e3q=+"0";if(U0r.indexOf(".") > -("1" | 0)){j13.M8Y(59);var X8I=j13.c6Y(1005,20,311,12);j13.C$o(0);var H42=j13.d58(7472,8);j13.C$o(67);var R6i=j13.c6Y(8490,2828,4245);j13.C$o(141);var L1g=j13.c6Y(5,2187,4362,6,2);j13.C$o(79);var q9C=j13.c6Y(14141,5,16,14915);j13.C$o(142);var U8c=j13.c6Y(2525,7603,7575,7,19);j13.M8Y(111);var v5O=j13.c6Y(8,10,1,2);e3q=U0r.substring(U0r.indexOf(+"480" === 215.42?(X8I,402.35):(H42,R6i) < L1g?(q9C,680.28) == "269.56" - 0?"x":".":U8c)).length - v5O;}if(A$X >= 1000){e3q=Math.max(e3q,0);}else if(A$X < 2){e3q=Math.max(e3q,4);}else {e3q=Math.max(e3q,2);}V8m=this.internationalizer;if(V8m){O1w=V8m.priceFormatters.length;if(e3q >= O1w){j13.C$o(0);e3q=j13.c6Y(O1w,1);}b7W=V8m.priceFormatters[e3q].format(b7W);}else {b7W=b7W.toFixed(e3q);}return b7W;};k4o.ChartEngine.prototype.formatPrice=function(g6y,G4S){var A1K,j97,h2e;if(g6y !== 0 && (!g6y || typeof g6y == "undefined")){return "";}if(!G4S){G4S=this.currentPanel;}if(!G4S){G4S=this.chart.panel;}j13.J8h();if(!G4S){return g6y.toString();}A1K=G4S.decimalPlaces;if(!A1K && A1K !== "0" << 64){A1K=G4S.chart.decimalPlaces;}if(!A1K && A1K !== 0){return g6y.toString();}j97=this.internationalizer;if(j97){h2e=j97.priceFormatters.length;if(A1K >= h2e){j13.M8Y(0);A1K=j13.d58(h2e,1);}g6y=j97.priceFormatters[A1K].format(g6y);}else {g6y=g6y.toFixed(A1K);}return g6y;};k4o.ChartEngine.prototype.determineMinMax=function(i53,X4l,i0y,K11,n4V,u9g,L9L,a1l,W0O){var B4k,t8V,J8s,O_i,O8c,n1B,Y2F,h$L,P8g,V30,B1n,A3A;j13.M8Y(124);var S8E=j13.d58(0,14,2,17);B4k=Number.MAX_VALUE * S8E;t8V=Number.MAX_VALUE;j13.J8h();J8s=!"1";O_i=i53.length;if(!W0O){W0O=[];}O8c=[];if(n4V){O_i=n4V;}for(var C4i=0;C4i <= O_i + 1;C4i++){if(X4l.length){if(C4i == O_i){n1B=this.getPreviousBar(this.chart,X4l["0" - 0],0);}else if(C4i == O_i + 1){n1B=this.getNextBar(this.chart,X4l[0],O_i - 1);}else {n1B=i53[C4i];}}if(!n1B)continue;if(!K11){if(n1B.transform){J8s=!![];n1B=n1B.transform;}else if(J8s)continue;;}Y2F=0;for(var g1Z=0;g1Z < X4l.length;g1Z++){h$L="n";h$L+="umber";P8g=k4o.existsInObjectChain(n1B,X4l[g1Z]);if(!P8g)continue;V30=P8g.obj[P8g.member];if(typeof V30 == h$L){V30=[V30];}for(var z4J=0;z4J < V30.length;z4J++){B1n=V30[z4J];if(u9g && B1n instanceof Array){B1n=B1n[0];}if(B1n || B1n === 0){if(i0y === !!({}) || i0y instanceof Array && i0y.indexOf(X4l[g1Z]) > -1){Y2F+=B1n;if(Y2F > B4k){B4k=Y2F;}if(Y2F < t8V){t8V=Y2F;}}else {if(B1n > B4k){B4k=B1n;}if(B1n < t8V){t8V=B1n;}O8c.push({value:B1n,quote:n1B});}}}}if(i0y === !![] || i0y instanceof Array && i0y.indexOf(X4l[g1Z]) > -1){O8c.push({value:Y2F,quote:n1B});}}A3A=[t8V,B4k];W0O.forEach(function(z7r){A3A=z7r(O8c,L9L,a1l) || A3A;});if(A3A[1] == Number.MAX_VALUE * -1){A3A[1]=+"0";}if(A3A[0] == Number.MAX_VALUE){A3A[0]=0;}return A3A;};k4o.ChartEngine.prototype.initializeDisplay=function(D9X){var b0C,P3b,B8T,F2F,v2d,r_x,m5Y,r_f,l2V,w1K,z2T,C4p,G1n,G_0,n7p,i6W;b0C="Clo";b0C+="se";P3b="H";P3b+="i";P3b+="g";P3b+="h";if(this.runPrepend("initializeDisplay",arguments)){return;}function d3R(K8c,w4G){var s$G,S6w,W93,W_J,p6t,a1_,c7h,m3s,W$l,p2j;s$G=!"1";S6w=r_x.layout && r_x.layout.studies && r_x.layout.studies[K8c.name];if(S6w && (!w4G || w4G.name == S6w.panel)){for(var f$u in S6w.outputMap){B8T.push(f$u);if(S6w.study){if(S6w.study.renderer){B8T=B8T.concat(k4o.createObjectChainNames(f$u,m5Y));}else if(!S6w.study.seriesFN){B8T=B8T.concat(k4o.createObjectChainNames(f$u,r_f));}}}for(var h$h=0;h$h <= 2;h$h++){B8T.push(S6w.name + "_hist" + (h$h?h$h:""));}s$G=!!({});}if(!w4G){return;}K8c.studies=[];K8c.renderers=[];if(s$G){K8c.studies.push(K8c.name);}for(var D3v in W9f){W93=W9f[D3v];W_J=W93.params;p6t=W_J.panel;if((W_J.yAxis || !r_x.panels[p6t] || r_x.panels[p6t].yAxis) != K8c)continue;if(p6t != w4G.name)continue;a1_=W93.highLowBars?m5Y:r_f;v2d=W93.bounded;for(var n2n=0;n2n < W93.seriesParams.length;n2n++){c7h=W93.seriesParams[n2n];if(c7h.hidden)continue;m3s=void 0;if(c7h.subField){m3s=k4o.createObjectChainNames(c7h.symbol,[c7h.subField]).concat(c7h.symbol);}else if(c7h.symbol){m3s=k4o.createObjectChainNames(c7h.symbol,a1_).concat(c7h.symbol);}else if(c7h.field){m3s=c7h.field;}else if(K8c == D9X.panel.yAxis){m3s=a1_;}if(m3s){B8T=B8T.concat(m3s);}if(W93.useSum){F2F=F2F.concat(m3s);}}K8c.renderers.push(D3v);}for(var Z_l in r_x.overlays){W$l=r_x.overlays[Z_l];if(W$l.panel != w4G.name)continue;if(W$l.name == K8c.name)continue;p2j=W$l.getYAxis(r_x);if(p2j != K8c)continue;K8c.studies.push(W$l.name);if(D9X.includeOverlaysInMinMax){d3R({name:W$l.name});}}}B8T=[];F2F=[];v2d=![];r_x=this;m5Y=["Close","Open",P3b,"Low"];r_f=[D9X.defaultPlotField || b0C];var {mainSeriesRenderer:j3G}=this;var {dataSegment:f31, seriesRenderers:W9f}=D9X;w1K=null;z2T=Math.floor((D9X.width - this.micropixels) / this.layout.candleWidth);if(D9X.scroll > D9X.maxTicks && D9X.maxTicks > z2T + 1){j13.C$o(44);var l3V=j13.d58(9,7,3,1);w1K=f31.length - l3V;}C4p=[];for(var C15 in this.panels){G1n=this.panels[C15];C4p=G1n.yaxisLHS.concat(G1n.yaxisRHS);for(var t8t=0;t8t < C4p.length;t8t++){G_0=C4p[t8t];B8T=[];F2F=[];n7p=D9X.transformFunc && G_0 == D9X.panel.yAxis;d3R(G_0,G1n);if(!this.currentlyImporting && !G_0.renderers.length && !G_0.studies.length){this.deleteYAxisIfUnused(G1n,G_0);continue;}if(j3G && j3G.determineMax){l2V=j3G.determineMax(f31,B8T,F2F,!n7p,w1K,v2d,G1n,G_0);}else {l2V=this.determineMinMax(f31,B8T,F2F,!n7p,w1K,v2d,G1n,G_0);}if(this.baselineHelper){l2V=this.setBaselineMinMax(l2V,G_0);}G_0.lowValue=l2V[0];G_0.highValue=l2V[1];if(G_0 == D9X.panel.yAxis){D9X.lowValue=G_0.lowValue;D9X.highValue=G_0.highValue;}}}i6W=D9X.state.aggregation;if(i6W && i6W.box){j13.M8Y(26);var l82=j13.d58(9,15,8);D9X.lowValue-=i6W.box / l82;j13.M8Y(143);var R3L=j13.c6Y(14,18,1,259,9);D9X.highValue+=i6W.box / R3L;}this.runAppend("initializeDisplay",arguments);};k4o.ChartEngine.prototype.setMarket=function(w1z,t8$){j13.J8h();if(!k4o.Market){return;}if(!t8$){t8$=this.chart;}t8$.market=new k4o.Market(w1z);for(var v8y in this.layout.marketSessions){t8$.market.disableSession(v8y,this.layout.marketSessions[v8y]);}};k4o.ChartEngine.prototype.setMarketFactory=function(w2D){j13.r2m();this.marketFactory=w2D;};k4o.ChartEngine.prototype.setResizeTimer=function(d9S){j13.J8h();this.resizeDetectMS=d9S;this.resizeHandle=k4o.resizeObserver(this.chart.container,S4a(this),this.resizeHandle,d9S);function S4a(D8y,F1D){var W2g;j13.J8h();W2g=function(){if(!D8y.chart.canvas){return;}j13.J8h();if(!k4o.isAndroid){if(D8y.chart.canvas.height != Math.floor(D8y.devicePixelRatio * D8y.chart.container.clientHeight) || D8y.chart.canvas.width != Math.floor(D8y.devicePixelRatio * D8y.chart.container.clientWidth)){D8y.resizeChart();}}};return function(){var H5t;H5t="undef";H5t+="ined";if(typeof ResizeObserver !== H5t){if(k4o.ChartEngine.useAnimation){requestAnimationFrame(W2g);}else {j13.C$o(46);setTimeout(W2g,j13.c6Y("0",0));}}else {W2g();}};}};k4o.ChartEngine.prototype.getRenderedItems=function(){var Q_Y,N4O,T1W,Y_o,G30,q0K,Z2d,r3J,n1L;Q_Y="Hig";Q_Y+="h";N4O=this.chart;T1W=this.currentPanel;if(!T1W){return;}Y_o=["Open",Q_Y,"Low","Close"];G30=["Close"];q0K=[];for(var K$k in this.overlays){if(this.overlays[K$k].panel !== T1W.name)continue;q0K=q0K.concat(Object.keys(this.overlays[K$k].outputMap));}for(var T7C in N4O.seriesRenderers){Z2d=N4O.seriesRenderers[T7C];if(Z2d.params.panel != T1W.name)continue;for(var X4j in Z2d.seriesParams){r3J=Z2d.seriesParams[X4j];n1L=Z2d.highLowBars?Y_o:G30;if(r3J.subField){q0K=q0K.concat(k4o.createObjectChainNames(r3J.symbol,[r3J.subField])).concat(r3J.symbol);}else if(r3J.symbol){q0K=q0K.concat(k4o.createObjectChainNames(r3J.symbol,n1L)).concat(r3J.symbol);}else if(r3J.field){q0K.push(r3J.field);}else if(T1W == N4O.panel){q0K=q0K.concat(n1L);}}}return q0K;};k4o.ChartEngine.prototype.setTransform=function(d4t,Y$e,M4i){d4t.transformFunc=Y$e;d4t.untransformFunc=M4i;};k4o.ChartEngine.prototype.unsetTransform=function(D7J){delete D7J.transformFunc;delete D7J.untransformFunc;for(var m66=0;D7J.dataSet && m66 < D7J.dataSet.length;m66++){D7J.dataSet[m66].transform=null;}};k4o.ChartEngine.prototype.isEquationChart=function(h6Q){if(h6Q && h6Q[+"0"] == "="){if(!this.allowEquations || !k4o.fetchEquationChart){console.warn("Error, equation chart option requires equationsAdvanced.js");return ![];}return !![];}return !({});};k4o.ChartEngine.prototype.correctIfOffEdge=function(C2t){var F4Q,E$q,d4u,O9$,w74,O2o,e0G,q6I,s21,h22,B2m;F4Q="cor";F4Q+="r";F4Q+="ectIfOffEdge";if(this.runPrepend("correctIfOffEdge",arguments)){return;}for(var L7y in this.charts){E$q=this.charts[L7y];d4u=E$q.dataSet;O9$=E$q.maxTicks;w74=this.layout;O2o=this.minimumLeftBars;e0G=Math.min(O2o,O9$);if(E$q.allowScrollPast){j13.C$o(0);q6I=j13.d58(O9$,e0G);if(e0G > d4u.length){q6I=O9$ - d4u.length;}if(E$q.scroll - q6I >= d4u.length){j13.C$o(69);var A_G=j13.d58(2,18,4,17);E$q.scroll=d4u.length + q6I - A_G;this.micropixels=0;}if(E$q.scroll <= e0G){E$q.scroll=e0G;this.micropixels=0;}}else {if(E$q.scroll < e0G){E$q.scroll=e0G;}if(E$q.scroll > d4u.length){E$q.scroll=d4u.length;}}if(E$q.allowScrollFuture === !({})){s21=this.getLabelOffsetInPixels(E$q,w74.chartType) + w74.candleWidth * E$q.whiteSpaceFutureTicks;j13.M8Y(85);var f1i=j13.c6Y(2,16,3,17,3);h22=O9$ - Math.round(s21 / w74.candleWidth) - f1i;B2m=this.micropixels < 0?E$q.scroll - 1:E$q.scroll;if(B2m < h22){E$q.scroll=h22;this.micropixels=0;}}}this.runAppend(F4Q,arguments);};j13.r2m();k4o.ChartEngine.prototype.getStartDateOffset=function(){for(var c3x=0;c3x < this.chart.dataSegment.length;c3x++){if(this.chart.dataSegment[c3x]){return c3x;}}return 0;};k4o.ChartEngine.prototype.setStartDate=function(C53){var C_3;for(var j$O=0;j$O < this.chart.dataSet.length;j$O++){C_3=this.chart.dataSet[j$O];if(C_3.DT.getTime() == C53.getTime()){this.chart.scroll=this.chart.dataSet.length - j$O;this.draw();return;}}};k4o.ChartEngine.prototype.clearPixelCache=function(){var n19,g8s;for(var V1e in this.panels){n19=this.panels[V1e];n19.cacheHigh=null;n19.cacheLow=null;n19.cacheLeft=1000000;n19.cacheRight=-1;}for(var m60 in this.charts){g8s=this.charts[m60];if(!g8s.dataSet)continue;for(var V4m=0;V4m < g8s.dataSet.length;V4m++){g8s.dataSet[V4m].cache={};}}};k4o.ChartEngine.prototype.adjustBackingStore=function(W_a,o1Y){var Y_C,P7s,t7X,d4r;this.devicePixelRatio=window.devicePixelRatio || 1;if(this.devicePixelRatio < 1.0){this.devicePixelRatio=1.0;}Y_C=o1Y.webkitBackingStorePixelRatio || o1Y.mozBackingStorePixelRatio || o1Y.msBackingStorePixelRatio || o1Y.oBackingStorePixelRatio || o1Y.backingStorePixelRatio || "1" << 0;P7s=this.devicePixelRatio / Y_C;if(!this.useBackingStore){this.devicePixelRatio=this.adjustedDisplayPixelRatio=1;return;}if(!k4o.isAndroid || k4o.is_chrome || k4o.isFF){t7X=W_a.width;d4r=W_a.height;j13.C$o(38);W_a.width=j13.d58(t7X,P7s);j13.M8Y(38);W_a.height=j13.c6Y(d4r,P7s);j13.C$o(22);W_a.style.width=j13.c6Y("px",t7X);j13.C$o(22);W_a.style.height=j13.c6Y("px",d4r);o1Y.scale(P7s,P7s);this.adjustedDisplayPixelRatio=P7s;this.backing={ratio:P7s,width:W_a.width,height:W_a.height,styleWidth:t7X,styleHeight:d4r};}};k4o.ChartEngine.prototype.reconstituteBackingStore=function(){var t6I,m3J,J7w,t1o,T9y;if(!this.useBackingStore || !this.backing){return;}t6I=[this.chart.canvas];if(this.useBackgroundCanvas){t6I.push(this.chart.backgroundCanvas);}m3J=this.backing;t6I.forEach(function(V6X){if(V6X.width == m3J.width){return;}V6X.width=m3J.width;V6X.height=m3J.height;j13.r2m();V6X.context.scale(m3J.ratio,m3J.ratio);});J7w=712748429;t1o=1654436079;T9y=2;for(var O06=1;j13.O$R(O06.toString(),O06.toString().length,15960) !== J7w;O06++){this.adjustedDisplayPixelRatio=m3J.ratio;T9y+=2;}if(j13.q2D(T9y.toString(),T9y.toString().length,11143) !== t1o){this.adjustedDisplayPixelRatio=m3J.ratio;}this.draw();};k4o.ChartEngine.prototype.disableBackingStore=function(){var y3T,E$W;if(!this.useBackingStore || !this.backing){return;}y3T=[this.chart.canvas];if(this.useBackgroundCanvas){y3T.push(this.chart.backgroundCanvas);}E$W=this.backing;y3T.forEach(function(U1e){var E$L,L33,E17;if(U1e.width == E$W.styleWidth){return;}E$L=-1933644852;L33=-581806431;E17=2;for(var y3p=1;j13.O$R(y3p.toString(),y3p.toString().length,493) !== E$L;y3p++){U1e.width=E$W.styleWidth;U1e.height=E$W.styleHeight;U1e.context.scale(1,1);E17+=2;}if(j13.O$R(E17.toString(),E17.toString().length,13839) !== L33){U1e.width=E$W.styleWidth;U1e.height=E$W.styleHeight;U1e.context.scale(7,3);}});j13.M8Y(19);j13.r2m();this.adjustedDisplayPixelRatio=j13.d58(0,"1");this.draw();};k4o.ChartEngine.prototype.getBackgroundCanvas=function(C9D){if(!C9D){C9D=this.chart;}return this.useBackgroundCanvas?C9D.backgroundCanvas:C9D.canvas;};k4o.ChartEngine.prototype.resizeCanvas=function(){var E3h,P5w,Z0v,s7t,Q$V,I4f,y49,n3V,z1E;j13.J8h();E3h=this.chart.canvas;P5w=this.chart.context;if(E3h && P5w){this.floatCanvas.height=this.chart.tempCanvas.height=this.chart.backgroundCanvas.height=E3h.height=this.chart.container.clientHeight;this.floatCanvas.width=this.chart.tempCanvas.width=this.chart.backgroundCanvas.width=E3h.width=this.chart.container.clientWidth;this.adjustBackingStore(E3h,P5w);this.adjustBackingStore(this.chart.tempCanvas,this.chart.tempCanvas.context);this.adjustBackingStore(this.floatCanvas,this.floatCanvas.context);this.adjustBackingStore(this.chart.backgroundCanvas,this.chart.backgroundCanvas.context);}Z0v=this.container.getBoundingClientRect();this.top=Z0v.top;this.left=Z0v.left;this.canvasWidth=this.chart.canvasWidth=this.chart.container.clientWidth;this.right=this.left + this.canvasWidth;this.height=this.chart.container.clientHeight;this.width=this.right - this.left;if(this.width === "0" >> 32 && !this.container.dimensionlessCanvas && this.container.closest("html")){s7t="warning: zero width chart. Check CSS for cha";s7t+="rt co";s7t+="ntainer.";console.log(s7t);}this.bottom=this.top + this.height;this.calculateYAxisPositions();this.chart.canvasRight=this.right;this.chart.canvasHeight=this.height;Q$V=this.layout.candleWidth;if(typeof Q$V == "undefined"){Q$V=8;}for(var s5g in this.charts){I4f=this.charts[s5g];this.setCandleWidth(Q$V,I4f);if(I4f.scroll < I4f.width / Q$V){I4f.scroll=Math.floor(I4f.width / Q$V);y49=Math.round(this.preferences.whitespace / this.layout.candleWidth);I4f.scroll-=y49;}n3V=10;try{j13.M8Y(0);var U_i=j13.d58(24,22);z1E=P5w.measureText("10:00").width * U_i;}catch(N$$){z1E=100;}while(n3V > 1){if(this.chart.width / z1E > n3V)break;n3V/=1.5;}I4f.xAxis.autoComputedTickSizePixels=Math.round(this.chart.width / n3V);if(I4f.xAxis.autoComputedTickSizePixels < 1){I4f.xAxis.autoComputedTickSizePixels=+"1";}}};k4o.ChartEngine.prototype.setCandleWidth=function(v_H,W3c){if(!W3c){W3c=this.chart;}v_H=this.constrainCandleWidth(v_H);this.layout.candleWidth=v_H;j13.C$o(144);var X0X=j13.d58(7,14,7,11,246);W3c.maxTicks=Math.round(W3c.width / v_H) + X0X;};k4o.ChartEngine.prototype.constrainCandleWidth=function(E6h){var Q2p,Q7E,Q5k;Q2p=this.minimumCandleWidth;Q7E=this.maximumCandleWidth;Q5k=this.animations.zoom;if(Q2p && E6h < Q2p){E6h=Q2p;if(Q5k && Q5k.running){Q5k.stop();}}if(Q7E && E6h > Q7E){E6h=Q7E;if(Q5k && Q5k.running){Q5k.stop();}}return E6h;};k4o.ChartEngine.prototype.resizeChart=function(t$T){var E0E;if(this.runPrepend("resizeChart",arguments)){return;}if(t$T !== !1){t$T=!!({});}if(t$T){this.preAdjustScroll();}E0E=this.chart.canvasHeight;this.resizeCanvas();if(t$T){this.postAdjustScroll();}if(this.displayInitialized){this.adjustPanelPositions();this.draw();;}else if(this.chart.canvasHeight !== 0 && E0E === 0){this.adjustPanelPositions();this.draw();}this.doDisplayCrosshairs();this.updateChartAccessories();this.runAppend("resizeChart",arguments);};k4o.ChartEngine.prototype.clear=function(){var b6C;this.displayInitialized=!1;for(var Z9Z in this.layout.studies){b6C=this.layout.studies[Z9Z];k4o.getFn("Studies.removeStudy")(this,b6C);}if(this.controls.chartControls){this.controls.chartControls.style.display="none";}this.chart.panel.title.innerHTML="";this.chart.panel.title.appendChild(document.createTextNode(this.chart.panel.display));};k4o.ChartEngine.prototype.fillScreen=function(){var g5J,w8Q,A9X,O8r,h5g;j13.r2m();g5J=this.chart;w8Q=this.layout.candleWidth;A9X=g5J.width - this.preferences.whitespace;O8r=g5J.dataSet.length;if(O8r * w8Q >= A9X){this.draw();return;}if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){O8r--;}j13.M8Y(40);h5g=j13.c6Y(O8r,A9X);this.setCandleWidth(h5g,g5J);this.home({maintainWhitespace:!![]});};k4o.ChartEngine.prototype.setMaxTicks=function(a6w,i3x){var L8n;if(!i3x){i3x={};}a6w=Math.round(a6w);if(a6w < 2){a6w=2;}L8n=i3x.padding?i3x.padding:0;j13.r2m();this.layout.candleWidth=(this.chart.width - L8n) / a6w;if(!this.layout.candleWidth){this.layout.candleWidth=+"8";}this.chart.maxTicks=Math.round(this.chart.width / this.layout.candleWidth - 0.499);if(i3x.padding || i3x.padding === 0){j13.C$o(22);this.chart.scroll=j13.c6Y(1,a6w);};};k4o.ChartEngine.prototype.initializeChart=function(n8Z){var E2b,u1X,s1Y,U4g,q$9,a3V,H7L,T_W,l$y,n7Y,i$$,E7V,T$2,o5d,y3B,v02,K8y,t2a,r0I,x_H,Y_d;E2b="in";E2b+="i";E2b+="tializeC";E2b+="hart";u1X="canva";u1X+="s";s1Y="c";s1Y+="an";s1Y+="va";s1Y+="s";if(this.runPrepend("initializeChart",arguments)){return;}U4g=this.chart;if(!U4g.symbolObject.symbol){U4g.symbolObject.symbol=U4g.symbol;}if(this.locale){this.setLocale(this.locale);}if(!this.displayZone && k4o.ChartEngine.defaultDisplayTimeZone){this.setTimeZone(null,k4o.ChartEngine.defaultDisplayTimeZone);}this.resetDynamicYAxis({noRecalculate:!![]});this.calculateYAxisPositions();this.micropixels=0;if(n8Z){U4g.container=n8Z;}else {n8Z=U4g.container;}n8Z.stx=this;if(!n8Z.CIQRegistered){n8Z.CIQRegistered=!"";k4o.ChartEngine.registeredContainers.push(n8Z);}if(this.registerHTMLElements){this.registerHTMLElements();}q$9=U4g.canvas;a3V=U4g.backgroundCanvas;H7L=U4g.tempCanvas;T_W=this.floatCanvas;l$y=U4g.canvasShim;if(q$9 && document.createElement("canvas").getContext){if(!q$9.id){n8Z.removeChild(q$9);U4g.canvas=null;}if(H7L && !H7L.id){n8Z.removeChild(H7L);U4g.tempCanvas=null;}if(T_W && !T_W.id){n8Z.removeChild(T_W);this.floatCanvas=null;}if(a3V && !a3V.id){n8Z.removeChild(a3V);U4g.backgroundCanvas=null;}}else {this.setCandleWidth(this.layout.candleWidth);}if(!U4g.backgroundCanvas){a3V=U4g.backgroundCanvas=document.createElement("canvas");}n8Z.appendChild(a3V);V6E(a3V);if(!U4g.canvasShim){l$y=U4g.canvasShim=document.createElement("div");}l$y.className="stx-canvas-shim";n8Z.appendChild(l$y);if(!U4g.canvas){q$9=U4g.canvas=document.createElement(s1Y);}n8Z.appendChild(q$9);V6E(q$9);U4g.context=q$9.context;if(!U4g.tempCanvas){H7L=U4g.tempCanvas=document.createElement("canvas");}n8Z.appendChild(H7L);V6E(H7L,!![]);if(!this.floatCanvas){T_W=this.floatCanvas=document.createElement(u1X);}n8Z.appendChild(T_W);V6E(T_W,!!({}));this.resizeCanvas();function V6E(A5r,v5S){var c8Q,F2z,Q8i,O2y;c8Q="n";c8Q+="on";c8Q+="e";F2z="a";F2z+="bs";F2z+="o";F2z+="lute";Q8i="2";Q8i+="d";A5r.context=A5r.getContext(Q8i);j13.C$o(0);A5r.context.lineWidth=j13.d58("1",0);O2y=A5r.style;O2y.position=F2z;O2y.left="0px";if(v5S){O2y.display=c8Q;}}if(k4o.isAndroid){H7L.ontouchstart=T_W.ontouchstart=function(J0q){if(J0q.preventDefault){J0q.preventDefault();}};}n7Y=this.panels;U4g.panel.display=U4g.symbol;if(U4g.symbolDisplay){U4g.panel.display=U4g.symbolDisplay;}this.adjustPanelPositions();U4g.panel=n7Y[U4g.name];for(var R6p in n7Y){i$$=n7Y[R6p].yaxisLHS.concat(n7Y[R6p].yaxisRHS);for(var O8D=0;O8D < i$$.length;O8D++){i$$[O8D].height=n7Y[R6p].yAxis.height;this.calculateYAxisMargins(i$$[O8D]);;}}this.initialWhitespace=this.preferences.whitespace;if(U4g.dataSet && U4g.dataSet.length > 0){U4g.scroll=Math.floor(U4g.width / this.layout.candleWidth);E7V=Math.round(this.preferences.whitespace / this.layout.candleWidth);U4g.scroll-=E7V;}if(k4o.touchDevice){T$2=".ov";T$2+="erla";T$2+="yTras";T$2+="hCan";o5d=n8Z.querySelector(".overlayEdit");y3B=n8Z.querySelector(T$2);v02=n8Z.querySelector(".vectorTrashCan");K8y=function(c9O,k_9,d3S){j13.r2m();return function(D_g){j13.r2m();c9O.deleteHighlighted(k_9,d3S);};};if(o5d){k4o.safeClickTouch(o5d,K8y(this,!![],!!({})));if(y3B){k4o.safeClickTouch(y3B,K8y(this,![]));}}else if(y3B){k4o.safeClickTouch(y3B,K8y(this,!![]));}if(v02){k4o.safeClickTouch(v02,K8y(this,!""));}}if(this.manageTouchAndMouse){this.registerTouchAndMouseEvents();}if(this.handleMouseOut){n8Z.onmouseout=(function(x0N){return function(Z9p){x0N.handleMouseOut(Z9p);};})(this);k4o.smartHover();}if(this.abortDrawings){this.abortDrawings();}this.undoStamps=[];for(var m9x in n7Y){t2a=n7Y[m9x];if(t2a.markerHolder){n8Z.removeChild(t2a.markerHolder);t2a.markerHolder=null;}}for(var D9j in this.plugins){r0I=this.plugins[D9j];if(r0I.display){if(r0I.initializeChart){r0I.initializeChart(this);}}}if(!this.resizeListenerInitialized){x_H=this;this.resizeListenerInitialized=!0;Y_d=function(){return function(r5T){x_H.resizeChart();};};this.addDomEventListener(window,"resize",Y_d(),!!1);}if(U4g.baseline.userLevel){U4g.baseline.userLevel=null;}this.setResizeTimer(this.resizeDetectMS);this.runAppend(E2b,arguments);};k4o.ChartEngine.prototype.destroy=function(){j13.r2m();var m9y,U1E,b0M,z1B;this.setResizeTimer(+"0");if(this.quoteDriver){this.quoteDriver.die();}this.styles={};for(var O17=0;O17 < this.eventListeners.length;O17++){m9y=this.eventListeners[O17];m9y.element.removeEventListener(m9y.event,m9y["function"],m9y.options);}this.touchAndMouseEventsRegistered=!"1";this.eventListeners=[];if(this.streamParameters.timeout){clearTimeout(this.streamParameters.timeout);}U1E=k4o.ChartEngine.registeredContainers;b0M=U1E.indexOf(this.chart.container);if(b0M > -("1" ^ 0)){U1E.splice(b0M,1);}if(this.slider){z1B=U1E.indexOf(this.slider.slider.chart.container);if(z1B > -1){U1E.splice(z1B,1);}}};k4o.ChartEngine.prototype.preAdjustScroll=function(F2u){j13.J8h();if(!F2u){F2u=this.chart;}this.previousAdjust={chart:F2u,scroll:F2u.scroll,maxTicks:F2u.maxTicks};};k4o.ChartEngine.prototype.postAdjustScroll=function(){var c79;if(!this.previousAdjust){return;}c79=this.previousAdjust.chart;c79.scroll=this.previousAdjust.scroll + (c79.maxTicks - this.previousAdjust.maxTicks);if(this.displayInitialized){this.draw();}};k4o.ChartEngine.prototype.translateIf=function(r$d){if(this.translationCallback){return this.translationCallback(r$d);}j13.J8h();return r$d;};k4o.ChartEngine.prototype.doCleanupDates=function(V3q,s1j){var T1A,S_5,R0y,u90,U8e,A0H,M0X;j13.J8h();if(!V3q || !V3q.length){return;}for(var z4t=0;z4t < V3q.length;z4t++){T1A="[obj";T1A+="ect Stri";T1A+="ng]";S_5=V3q[z4t];R0y=S_5.DT;if(!R0y && !S_5.Date)continue;if(S_5.DT && Object.prototype.toString.call(R0y) == T1A && R0y.length <= 10){R0y=new Date(R0y);R0y.setMinutes(R0y.getMinutes() + R0y.getTimezoneOffset());}else {u90="[obj";u90+="ect Da";u90+="te]";U8e=!"";if(!S_5.DT){R0y=k4o.strToDateTime(S_5.Date);if(S_5.Date.length <= 10){U8e=![];}}if(Object.prototype.toString.call(R0y) != u90){R0y=new Date(R0y);}if(S39.Date && this.dataZone && U8e){A0H=new S39.Date(R0y.getFullYear(),R0y.getMonth(),R0y.getDate(),R0y.getHours(),R0y.getMinutes(),this.dataZone);j13.M8Y(77);var t_5=j13.c6Y(8804,4,10,980);M0X=R0y.getSeconds() * t_5 + R0y.getMilliseconds();R0y=new Date(A0H.getTime() + M0X);}if(k4o.ChartEngine.isDailyInterval(s1j)){j13.C$o(38);R0y.setHours(0,+"0",0,j13.d58("0",1));}}if(!S_5.DT){S_5.Date=k4o.yyyymmddhhmmssmmm(R0y);}S_5.DT=R0y;}};k4o.ChartEngine.prototype.doCleanupGaps=function(X3C,h2L,g6B){var M$v,U3l,I6D,T8G,I5b,Y3d,p_l,p_$,C8r,v9p,Y1v,g4e,b6X,Y_8,c2w;function S7D(I$j,q4Y){var J$C,h17,v69,J5d,P7$;J$C="u";J$C+="ndefin";J$C+="ed";h17=g6B.field;if(h17){v69="undefin";v69+="ed";if(typeof I$j[h17] != "undefined" && typeof q4Y[h17] == v69){q4Y[h17]=T8G?null:I$j[h17];}return;}if(T8G){return;}J5d=I$j[g4e];P7$=q4Y[g4e];if(typeof J5d != "undefined" && typeof P7$ == J$C){k4o.ensureDefaults(q4Y,{Close:J5d,Open:J5d,High:J5d,Low:J5d,Volume:0,Adj_Close:I$j.Adj_Close});}}M$v="w";M$v+="e";M$v+="e";M$v+="k";if(!X3C || !X3C.length){return X3C;}function N1h(k1I,a$6){var k4l,v6w,m5D,L8o,l1e;k4l=g6B.field;j13.r2m();v6w=k4l?p_$[k4l]:p_$;if(v6w === undefined){v6w={};}m5D=T8G?null:v6w[g4e];L8o=T8G?null:v6w.Adj_Close;while(+k1I < +a$6){l1e={DT:k1I};if(k4l){}else {p_l.push(l1e);k4o.extend(l1e,{Open:m5D,High:m5D,Low:m5D,Close:m5D,Volume:0,Adj_Close:L8o});}k1I=Y1v.next();}}U3l=this.layout.interval;g6B=g6B?g6B:{};if(!h2L){h2L=this.chart;}if(!k4o.Market || !h2L.market){return X3C;}if(!g6B.noCleanupDates){this.doCleanupDates(X3C,U3l);}I6D=g6B.cleanupGaps;if(I6D === !!0){return X3C;}if(!I6D || I6D === !![]){I6D=this.cleanupGaps || I6D;}j13.M8Y(106);T8G=j13.c6Y(I6D,"gap");if(!I6D){return X3C;}if(U3l == "tick"){return X3C;}if(U3l == "month" || U3l == M$v){I5b="d";I5b+="a";I5b+="y";if(this.dontRoll){return X3C;}U3l=I5b;}Y3d=function(m08){j13.J8h();if(m08.DT){if(Object.prototype.toString.call(m08.DT) != "[object Date]"){return new Date(m08.DT);}return new Date(+m08.DT);}return k4o.strToDateTime(m08.Date);};p_l=[];p_$=X3C[0];j13.J8h();p_l.push(p_$);C8r={begin:Y3d(p_$),interval:U3l,periodicity:1,timeUnit:this.layout.timeUnit};v9p=new k4o.Market(h2L.market.market_def);Y1v=v9p.newIterator(C8r);if(this.extendedHours && this.extendedHours.filter){Y1v.market.enableAllAvailableSessions();}g4e=h2L.defaultPlotField;for(var G0h=0;G0h < X3C.length;G0h++){if(X3C[G0h][g4e] !== undefined)break;if(X3C[G0h].Value !== undefined){g4e="Value";break;}}for(var P2x=1;P2x < X3C.length;P2x++){Y_8=X3C[P2x];b6X=Y1v.next();c2w=Y3d(Y_8);if(b6X < c2w){N1h(b6X,c2w);b6X=Y1v.market._convertFromMarketTZ(Y1v.begin,Y1v.outZone);}while(c2w < b6X){if(++P2x == X3C.length){return p_l;}S7D(p_$,Y_8);p_l.push(Y_8);p_$=Y_8;Y_8=X3C[P2x];c2w=Y3d(Y_8);}if(b6X < c2w){P2x--;b6X=Y1v.previous();}else {S7D(p_$,Y_8);p_l.push(Y_8);p_$=Y_8;}}return p_l;};k4o.ChartEngine.prototype.getCreatingLibrary=function(){j13.r2m();return V1n;};};m1=Y_z=>{var g4U=x2dci;var c4S;c4S=Y_z.CIQ;g4U.r2m();c4S.ChartEngine.Panel=function(M3j,r1o){if(r1o){this.yAxis=r1o;}else {this.yAxis=new c4S.ChartEngine.YAxis();}this.name=M3j;g4U.J8h();this.state={};;};c4S.extend(c4S.ChartEngine.Panel.prototype,{name:null,display:null,chart:null,yAxis:null,shareChartXAxis:null,top:null,bottom:null,height:null,percent:null,displayEdgeIfPadded:!!1,noDrag:![],exportable:!!({})},!!"1");c4S.ChartEngine.prototype.whichPanel=function(x2Z){var z8v;for(var y3q in this.panels){z8v=this.panels[y3q];if(z8v.hidden)continue;if(x2Z >= z8v.top && x2Z < z8v.bottom){return z8v;}}return null;};c4S.ChartEngine.prototype.panelExists=function(j1C){var r7D;for(var c4d in this.panels){r7D=this.panels[c4d];if(r7D.name == j1C){return !!1;}}return !({});};c4S.ChartEngine.prototype.storePanels=function(){var w26,j3g;if(!this.layout){this.layout={};}w26=this.layout;w26.panels={};for(var H2_ in this.panels){j3g=this.panels[H2_];w26.panels[j3g.name]={percent:j3g.percent,display:j3g.display,yAxis:j3g.yAxis};}};c4S.ChartEngine.prototype.savePanels=function(d1M){this.storePanels();if(d1M !== ![]){this.changeOccurred("layout");}};c4S.ChartEngine.prototype.privateDeletePanel=function(p8s){var W2y,x$k,C26;for(var b3q in this.layout.studies){W2y=this.layout.studies[b3q];if(W2y.panel == p8s.name){this.cleanupRemovedStudy(W2y);}}delete this.panels[p8s.name];for(var g9r in this.overlays){if(this.overlays[g9r].panel == p8s.name){if(this.layout.studies){this.cleanupRemovedStudy(this.layout.studies[g9r]);}delete this.overlays[g9r];}}for(var U7g in this.chart.series){if(this.chart.series[U7g].parameters.panel == p8s.name){this.removeSeries(this.chart.series[U7g],this.chart);}}if(p8s.holder){this.chart.container.removeChild(p8s.holder);if(this.getMarkerArray){x$k="p";x$k+="anelName";C26=this.getMarkerArray(x$k,p8s.name);for(var w3$=0;w3$ < C26.length;w3$++){this.removeFromHolder(C26[w3$]);}}}if(p8s.handle){p8s.handle.remove();}this.currentPanel=null;};c4S.ChartEngine.prototype.plotsInPanel=function(J8j){var w6p,L3w,T0Z,y3o;w6p=[];L3w=J8j;if(typeof J8j == "object"){L3w=J8j.name;}for(var b5U in this.layout.studies){T0Z=this.layout.studies[b5U];if(L3w === T0Z.panel){w6p.push(T0Z);}}for(var Y63 in this.chart.seriesRenderers){y3o=this.chart.seriesRenderers[Y63];if(L3w === y3o.params.panel){w6p.push(y3o);}}return w6p;};c4S.ChartEngine.prototype.checkForEmptyPanel=function(s5e,j$f,s0N){g4U.r2m();var S0U,G9j;if(!s5e){return ![];}S0U=s5e;if(typeof s5e == "object"){S0U=s5e.name;}if(S0U === this.chart.name){return ![];}if(!s0N){s0N=[];}else if(!(s0N instanceof Array)){s0N=[s0N];}G9j=this.plotsInPanel(s5e);for(var o_B=0;o_B < G9j.length;o_B++){if(s0N.indexOf(G9j[o_B]) == -+"1"){return ![];}}if(!j$f){this.panelClose(this.panels[S0U]);}return !0;};c4S.ChartEngine.prototype.panelClose=function(F18){var H$V;if(!F18){return;}if(this.runPrepend("panelClose",arguments)){return;}this.cancelTouchSingleClick=!!({});c4S.ChartEngine.drawingLine=![];if(F18.soloing){this.panelSolo(F18);}if(this.charts[F18.name]){for(var b2b in this.panels){H$V=this.panels[b2b];if(H$V.chart.name == F18.name){this.privateDeletePanel(H$V);}}delete this.charts[F18.name];}else {this.privateDeletePanel(F18);}if(!this.currentlyImporting){this.showCrosshairs();this.resetDynamicYAxis({noRecalculate:!!"1"});this.calculateYAxisPositions();this.draw();this.savePanels();}this.userPointerDown=this.grabbingScreen=!({});if(this.openDialog){this.openDialog="";}this.runAppend("panelClose",arguments);};c4S.ChartEngine.prototype.deleteAllPanels=function(){var Z_Q;for(var t4T in this.panels){Z_Q=this.panels[t4T];this.privateDeletePanel(Z_Q);}this.layout.panels={};this.panels={};};c4S.ChartEngine.prototype.panelUp=function(o27){var j3d,c$q,y4h,S4R;this.cancelTouchSingleClick=!!1;c4S.ChartEngine.drawingLine=![];this.showCrosshairs();j3d={};c$q=0;g4U.r2m();for(y4h in this.panels){if(y4h == o27.name)break;c$q++;}if(!c$q){return;}S4R=0;for(y4h in this.panels){if(S4R == c$q - 1){j3d[o27.name]=o27;}if(y4h == o27.name)continue;j3d[y4h]=this.panels[y4h];S4R++;}this.panels=j3d;this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.panelDown=function(y9C){var J3w,Q8z,F0d,X8j,e8e;g4U.r2m();this.cancelTouchSingleClick=!"";c4S.ChartEngine.drawingLine=!!0;this.showCrosshairs();J3w={};Q8z=+"0";for(F0d in this.panels){if(F0d == y9C.name)break;Q8z++;}X8j=+"0";for(F0d in this.panels){X8j++;}if(Q8z == X8j - 1){return;}e8e=0;for(F0d in this.panels){if(F0d == y9C.name){e8e++;continue;}J3w[F0d]=this.panels[F0d];if(e8e == Q8z + 1){J3w[y9C.name]=y9C;}e8e++;}this.panels=J3w;this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.panelSolo=function(n0k){var Q4A,V7z,y0n,g5m,k7N,Q9K;this.cancelTouchSingleClick=!!({});c4S.ChartEngine.drawingLine=!({});this.showCrosshairs();Q4A=!!({});if(n0k.soloing){y0n="s";y0n+="tx_solo_lit";Q4A=!1;n0k.soloing=!!0;n0k.solo.classList.remove(y0n);n0k.percent=n0k.oldPercent;if(n0k.name != "chart"){if(this.soloPanelToFullScreen){if(n0k.percent == 1){for(V7z in this.panels){g5m=this.panels[V7z];if(g5m != n0k){n0k.percent-=g5m.percent;}}}}else {this.chart.panel.percent=this.chart.panel.oldPercent;}}if(this.soloPanelToFullScreen){this.xAxisAsFooter=this.chart.panel.oldXAxisAsFooter;}}else {k7N="ch";k7N+="art";Q9K="st";Q9K+="x_solo_lit";n0k.soloing=!!1;n0k.solo.classList.add(Q9K);n0k.oldPercent=n0k.percent;this.chart.panel.oldXAxisAsFooter=this.xAxisAsFooter;if(n0k.name != k7N){if(this.soloPanelToFullScreen){this.xAxisAsFooter=!!"1";}else {this.chart.panel.oldPercent=this.chart.panel.percent;g4U.M8Y(16);var M4T=g4U.c6Y(10,0,12,119);n0k.percent=M4T - this.chart.panel.percent;}}}for(V7z in this.panels){this.panels[V7z].hidden=Q4A;}if(!this.soloPanelToFullScreen){this.chart.panel.hidden=![];}n0k.hidden=!"1";this.resetDynamicYAxis({noRecalculate:!!1});this.calculateYAxisPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.calculatePanelPercent=function(C7y){var A1b;A1b=C7y.bottom - C7y.top;C7y.percent=A1b / this.chart.canvasHeight;};c4S.ChartEngine.prototype.resizePanels=function(){var P_d,U6c,D8t,A9x,m5S,T9v,d35,F5L,S92;if(!c4S.ChartEngine.resizingPanel){return;}P_d=1868099388;g4U.C$o(38);U6c=-g4U.d58("872807414",1);D8t=2;for(var S$Q=1;g4U.q2D(S$Q.toString(),S$Q.toString().length,39756) !== P_d;S$Q++){F5L=c4S.ChartEngine.crosshairY >= this.resolveY(c4S.ChartEngine.resizingPanel.top);D8t+=2;}if(g4U.O$R(D8t.toString(),D8t.toString().length,42342) !== U6c){F5L=c4S.ChartEngine.crosshairY > this.resolveY(c4S.ChartEngine.resizingPanel.top);}for(var h2n in this.panels){if(this.panels[h2n] == c4S.ChartEngine.resizingPanel)break;if(this.panels[h2n].hidden)continue;A9x=this.panels[h2n];}S92=this.backOutY(c4S.ChartEngine.crosshairY);if(F5L){T9v=c4S.ChartEngine.resizingPanel.yaxisLHS.concat(c4S.ChartEngine.resizingPanel.yaxisRHS);for(d35=0;d35 < T9v.length;d35++){g4U.M8Y(16);var f$d=g4U.c6Y(10,1,3,23);m5S=T9v[d35].initialMarginTop + T9v[d35].initialMarginBottom + f$d;if(S92 > T9v[d35].bottom - m5S){S92=T9v[d35].bottom - m5S;}}}else {T9v=A9x.yaxisLHS.concat(A9x.yaxisRHS);for(d35="0" << 64;d35 < T9v.length;d35++){m5S=T9v[d35].initialMarginTop + T9v[d35].initialMarginBottom + +"10";if(S92 < T9v[d35].top + m5S){S92=T9v[d35].top + m5S;}}}c4S.ChartEngine.crosshairY=this.resolveY(S92);A9x.bottom=S92;c4S.ChartEngine.resizingPanel.top=S92;this.calculatePanelPercent(A9x);g4U.r2m();this.calculatePanelPercent(c4S.ChartEngine.resizingPanel);this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.isPanelAboveChart=function(m6F){g4U.J8h();for(var N4c in this.panels){if(N4c == "chart"){return !!0;}if(N4c == m6F.name){return !![];}}return !!0;};c4S.ChartEngine.prototype.adjustPanelPositions=function(){var h91,B6w,D7X,r9z,I3b,i9Z,j3I,M0k,a2K,F9T,q1D,Z2Z,U6$,w7K,H7M,K9n,h7_,x1B,y5H,G99,f_z,v72,P$0,V5s,l2T,p0U,w2r;h91="stx-sho";h91+="w";B6w="adjus";B6w+="tPanelPos";B6w+="ition";B6w+="s";var {chart:D2O, panels:S_J}=this;if(D2O.tempCanvas){c4S.clearCanvas(D2O.tempCanvas,this);}if(this.runPrepend(B6w,arguments)){return;}D7X=0;r9z=D2O.canvasHeight;I3b=!({});i9Z=0;g4U.J8h();j3I=0;M0k=![];for(a2K in S_J){F9T=S_J[a2K];if(isNaN(F9T.percent) || F9T.percent <= +"0"){F9T.percent=0.05;}if(F9T.hidden)continue;i9Z+=F9T.percent;j3I++;if(F9T.soloing){M0k=!!"1";}}for(a2K in S_J){q1D=0;F9T=S_J[a2K];if(F9T.hidden){if(F9T.markerHolder){F9T.markerHolder.style.display="none";}continue;}if(this.manageTouchAndMouse){if(F9T.up){if(!I3b){I3b=!![];F9T.up.classList.remove("stx-show");}else {Z2Z="stx-sho";Z2Z+="w";if(this.displayIconsUpDown){F9T.up.classList.add(Z2Z);}}}if(F9T.solo){if(M0k){if(F9T.soloing && this.displayIconsSolo){F9T.solo.classList.add("stx-show");}else {F9T.solo.classList.remove("stx-show");}}else if(j3I == +"1"){F9T.solo.classList.remove("stx-show");}else if(j3I == 2 && !this.soloPanelToFullScreen){F9T.solo.classList.remove("stx-show");}else {U6$="stx";U6$+="-show";if(this.displayIconsSolo){F9T.solo.classList.add(U6$);}}}if(F9T.down){if(j3I == 1){w7K="st";w7K+="x-sh";w7K+="ow";F9T.down.classList.remove(w7K);}else {if(this.displayIconsUpDown){F9T.down.classList.add("stx-show");}}}if(F9T.edit){if(F9T.editFunction){F9T.edit.classList.add("stx-show");}else {F9T.edit.classList.remove("stx-show");}}if(F9T.close){H7M="s";H7M+="tx-show";K9n="st";K9n+="x-show";if(this.displayIconsClose){F9T.close.classList.add(K9n);}else {F9T.close.classList.remove(H7M);}}}F9T.percent=F9T.percent / i9Z;F9T.top=D7X;F9T.bottom=F9T.top + r9z * F9T.percent;F9T.height=F9T.bottom - F9T.top;if(F9T.chart.name == F9T.name){F9T.chart.top=F9T.top;F9T.chart.bottom=F9T.bottom;F9T.chart.height=F9T.height;}D7X=F9T.bottom;if(F9T.yaxisLHS){h7_=F9T.yaxisLHS.concat(F9T.yaxisRHS);for(var c1_=0;c1_ < h7_.length;c1_++){x1B="n";x1B+="o";x1B+="ne";y5H=h7_[c1_];if(y5H.zoom && y5H.height > 0){q1D=y5H.zoom / y5H.height;}this.adjustYAxisHeightOffset(F9T,y5H);y5H.height=y5H.bottom - y5H.top;if(q1D){y5H.scroll*=q1D * y5H.height / y5H.zoom;y5H.zoom=q1D * y5H.height;if(y5H.zoom > y5H.height){y5H.zoom=0;y5H.scroll=0;}}if(!y5H.high && y5H.high !== 0){y5H.high=100;y5H.low=0;y5H.shadow=100;}y5H.multiplier=y5H.height / y5H.shadow;if(y5H.position === x1B){this.calculateYAxisMargins(y5H);}}}if(F9T.holder){G99="p";G99+="x";f_z="p";f_z+="x";F9T.holder.style.right="0px";F9T.holder.style.top=F9T.top + "px";F9T.holder.style.left="0px";F9T.holder.style.height=F9T.height + "px";F9T.subholder.style.left=F9T.left + f_z;F9T.subholder.style.width=F9T.width + "px";F9T.subholder.style.top="0px";if(F9T.yAxis.height >= 0){F9T.subholder.style.height=F9T.yAxis.height + G99;}}}if(a2K && S_J[a2K].down){S_J[a2K].down.classList.remove(h91);}if(this.manageTouchAndMouse && j3I == 2 && !M0k && D2O.panel.solo){D2O.panel.solo.classList.add("stx-show");}if(D2O.panel){v72="p";v72+="x";if(M0k && this.soloPanelToFullScreen){P$0=D2O.canvasHeight - F9T.yAxis.bottom + +"12";}else {g4U.M8Y(0);var x6W=g4U.c6Y(43,11);P$0=D2O.canvasHeight - D2O.panel.yAxis.bottom + ("12" >> x6W);}V5s=this.controls;var {chartControls:a$m, home:o$h, notificationTray:j_s}=V5s;l2T=this.width - D2O.panel.right;if(a$m){g4U.C$o(22);a$m.style.bottom=g4U.d58(v72,P$0);}if(o$h){p0U="p";p0U+="x";g4U.M8Y(22);o$h.style.bottom=g4U.d58("px",P$0);g4U.M8Y(22);o$h.style.marginRight=g4U.d58(p0U,l2T);}if(j_s){w2r="p";w2r+="x";g4U.C$o(22);j_s.style.bottom=g4U.c6Y("px",P$0);g4U.M8Y(22);j_s.style.marginRight=g4U.d58(w2r,l2T);}}this.clearPixelCache();if(this.drawingObjects.length){this.adjustDrawings();}this.runAppend("adjustPanelPositions",arguments);};c4S.ChartEngine.prototype.createPanel=function(c9n,J3S,T$y,c9W,T_4,N6X){var J63,h$u,B7S,T1u,C$a;if(this.runPrepend("createPanel",arguments)){return;}if(!c9W){c9W="chart";}J63=this.chart.canvasHeight;if(!T$y){g4U.M8Y(38);T$y=g4U.d58(J63,0.2);}if(T$y > J63){g4U.M8Y(38);T$y=g4U.d58(J63,0.5);}g4U.M8Y(40);h$u=g4U.c6Y(J63,T$y);g4U.C$o(0);B7S=g4U.c6Y(1,h$u);T1u=!({});for(var a$i in this.panels){C$a=this.panels[a$i];C$a.percent*=B7S;if(C$a.soloing){T1u=!!({});}}this.stackPanel(c9n,J3S,h$u,c9W,T_4);this.panels[J3S].hidden=T1u;this.panels[J3S].exportable=!N6X;this.adjustPanelPositions();this.savePanels(!({}));this.runAppend("createPanel",arguments);return this.panels[J3S];};c4S.ChartEngine.prototype.modifyPanel=function(P$X,x09){var F0a,O$X,Y23,y07,z0r,q_1,H3w,o_9;F0a=P$X.name;var {studies:N_F}=this.layout;var {series:T77}=this.chart;var {name:i6Z, display:n0L, yAxis:D1c}=x09 || ({});if(!i6Z){i6Z=c4S.uniqueID();}if(!n0L){n0L=i6Z;}if(!D1c){D1c=P$X.yAxis;D1c.name=i6Z;}O$X={};for(var s_B in this.panels){if(s_B === P$X.name){Y23=this.panels[s_B];Y23.name=i6Z;Y23.display=n0L;Y23.yAxis=D1c;P$X=O$X[i6Z]=Y23;if(this.moveMarkers && F0a !== i6Z){this.moveMarkers(F0a,i6Z);}}else {O$X[s_B]=this.panels[s_B];}}this.panels=O$X;y07=![];for(var W3E in N_F){z0r=N_F[W3E];if(z0r.panel === F0a){z0r.panel=i6Z;if(z0r.parameters && z0r.parameters.panelName){y07=!!"1";z0r.parameters.panelName=i6Z;}}}for(var h4W in T77){if(T77[h4W].parameters.panel === F0a){y07=!0;q_1={panel:i6Z};if(T77[h4W].parameters.yAxis && T77[h4W].parameters.yAxis.name === F0a){q_1.yAxis=D1c;}this.modifySeries(h4W,q_1,!"");}}if(y07){this.changeOccurred("layout");}H3w=!"1";for(var t2K=0;t2K < this.drawingObjects.length;t2K++){o_9=this.drawingObjects[t2K];if(F0a === o_9.panelName){o_9.panelName=i6Z;H3w=!![];}}if(H3w){this.changeOccurred("vector");}this.calculateYAxisPositions();};c4S.ChartEngine.prototype.setPanelHeight=function(a8W,i_D){var J5R,c4J,Q53,E0l;if(!i_D){return;}if(Object.values(this.panels).slice(-1)[0] === a8W){i_D+=this.xaxisHeight;}var {canvasHeight:R0a}=this.chart;var {percent:U7x}=a8W;g4U.M8Y(40);J5R=g4U.c6Y(R0a,i_D);g4U.C$o(0);c4J=g4U.c6Y(1,U7x);g4U.M8Y(145);Q53=g4U.c6Y(64,J5R,"1");g4U.M8Y(40);E0l=g4U.d58(Q53,c4J);Object.values(this.panels).forEach(d5X=>{var z$L,s0I,w7U;g4U.r2m();g4U.C$o(74);z$L=-g4U.d58("390080432",16);s0I=-522222260;w7U=+"2";for(var W$f=1;g4U.O$R(W$f.toString(),W$f.toString().length,35159) !== z$L;W$f++){d5X.percent%=E0l;w7U+=2;}if(g4U.q2D(w7U.toString(),w7U.toString().length,9733) !== s0I){d5X.percent/=E0l;}});a8W.percent=J5R;this.adjustPanelPositions();this.savePanels();};c4S.ChartEngine.prototype.electNewPanelOwner=function(s2N,B8W){g4U.r2m();var a7U,L4M,U5P,L1V,f$z,L$9,Q$a,x5x,V2Q,u6a,Z48;function e9U(M0n){return M0n.name != L4M.name;}if(typeof s2N == "string"){s2N=this.panels[s2N];}L4M=s2N.yAxis;if(s2N && s2N != this.chart.panel){U5P=s2N.yAxis;L1V=U5P.studies[0];if(!L1V || L1V == L4M.name){L1V=U5P.renderers[0];}if(!L1V || L1V == L4M.name){L1V=U5P.studies[1];}if(!L1V){L1V=U5P.renderers[1];}if(B8W){U5P=s2N.yAxis=B8W;f$z=-2012665674;L$9=-592765991;Q$a=2;for(var T9Z=1;g4U.q2D(T9Z.toString(),T9Z.toString().length,"84711" * 1) !== f$z;T9Z++){a7U=B8W.name;Q$a+=2;}if(g4U.q2D(Q$a.toString(),Q$a.toString().length,21447) !== L$9){a7U=B8W.name;}a7U=B8W.name;}else if(!L1V){if(s2N.yaxisLHS){x5x=s2N.yaxisRHS.concat(s2N.yaxisLHS).filter(e9U);V2Q=x5x[0];for(var F96="0" >> 64;F96 < x5x.length;F96++){if(!x5x[F96].position){V2Q=x5x[F96];break;}}if(V2Q){U5P=s2N.yAxis=V2Q;a7U=V2Q.studies[0] || V2Q.renderers[0];}}}else {U5P=this.addYAxis(s2N,new c4S.ChartEngine.YAxis({name:L1V,position:U5P.position}));U5P.renderers=s2N.yAxis.renderers;U5P.studies=s2N.yAxis.studies;a7U=L1V;}if(a7U){L1V=a7U;if(L4M.name != s2N.name){L1V=s2N.name;}Z48=this.layout.studies;if(Z48 && Z48[a7U]){u6a=Z48[a7U].inputs.display;}this.modifyPanel(s2N,{name:L1V,display:u6a || a7U,yAxis:U5P});this.deleteYAxisIfUnused(s2N,L4M);this.calculateYAxisMargins(this.panels[L1V].yAxis);}else {this.checkForEmptyPanel(s2N);}}return a7U;};c4S.ChartEngine.prototype.configurePanelControls=function(e4M){var u4H,D7_,Y9m,R6C,k2F,H8j,j2s;u4H=".stx-ic";u4H+="o-";u4H+="edit";D7_=".stx";D7_+="-ico-down";Y9m=e4M.icons;if(!Y9m){return;}R6C=e4M.name == e4M.chart.name;Y9m.classList.add("stx-show");e4M.title=Y9m.querySelector(".stx-panel-title");e4M.up=Y9m.querySelector(".stx-ico-up");if(e4M.up){e4M.up=e4M.up.parentNode;}e4M.solo=Y9m.querySelector(".stx-ico-focus");if(e4M.solo){e4M.solo=e4M.solo.parentNode;}e4M.down=Y9m.querySelector(D7_);if(e4M.down){e4M.down=e4M.down.parentNode;}e4M.edit=Y9m.querySelector(u4H);if(e4M.edit){e4M.edit=e4M.edit.parentNode;}e4M.close=Y9m.querySelector(".stx-ico-close");if(e4M.close){e4M.close=e4M.close.parentNode;}if(e4M.title){e4M.title.innerHTML="";if(e4M.display){e4M.title.appendChild(document.createTextNode(e4M.display));}if(R6C){k2F="stx-chart-";k2F+="panel";e4M.title.classList.add("chart-title");Y9m.classList.add(k2F);}}if(!c4S.touchDevice || c4S.isSurface){this.makeModal(Y9m);}if(e4M.handle){if(!c4S.touchDevice || c4S.isSurface){e4M.handle.onmouseover=(function(R9g){return function(){R9g.hideCrosshairs();};})(this);}if(!c4S.touchDevice || c4S.isSurface){e4M.handle.onmouseout=(function(W7c){return function(){g4U.J8h();W7c.showCrosshairs();};})(this);}H8j=function(y_H,A2L){return function(q5R){if(c4S.ChartEngine.resizingPanel || y_H.openDialog !== ""){return;}y_H.grabHandle(A2L);};};if(c4S.isSurface){e4M.handle.onpointerdown=H8j(this,e4M);}else {e4M.handle.onmousedown=H8j(this,e4M);}if(c4S.touchDevice){e4M.handle.ontouchstart=H8j(this,e4M);}}if(e4M.up){c4S.safeClickTouch(e4M.up,(function(d$Y,n4T){g4U.r2m();return function(){g4U.r2m();d$Y.panelUp(n4T);};})(this,e4M));}if(e4M.down){c4S.safeClickTouch(e4M.down,(function(c4h,u3D){g4U.J8h();return function(){g4U.r2m();c4h.panelDown(u3D);};})(this,e4M));}if(e4M.solo){c4S.safeClickTouch(e4M.solo,(function(N7b,L50){g4U.r2m();return function(){g4U.r2m();N7b.panelSolo(L50);};})(this,e4M));}if(e4M.close){if(e4M.name == "chart"){j2s="non";j2s+="e";e4M.close.style.display=j2s;;}else {c4S.safeClickTouch(e4M.close,(function(Y4t,h60){return function(){g4U.J8h();Y4t.panelClose(h60);};})(this,e4M));}}};c4S.ChartEngine.prototype.stackPanel=function(o2M,z_G,L7g,R7_,X2L){var A2v,e9m,J3U,T3x,Y4n,F_D,U_c;A2v="d";A2v+="i";A2v+="v";e9m="d";e9m+="i";e9m+="v";J3U="cha";J3U+="rt";if(this.runPrepend("stackPanel",arguments)){return;}if(!R7_){R7_=J3U;}T3x=this.charts[R7_];g4U.M8Y(106);Y4n=g4U.c6Y(z_G,R7_);if(Y4n){o2M=T3x.symbol;if(T3x.symbolDisplay){o2M=T3x.symbolDisplay;}if(!X2L){X2L=T3x.yAxis;}}F_D=this.panels[z_G]=new c4S.ChartEngine.Panel(z_G,X2L);if(!Y4n && T3x.yAxis && F_D.yAxis.position == T3x.yAxis.position){F_D.yAxis.width=T3x.yAxis.width;;}if(Y4n && !T3x.panel){T3x.panel=F_D;}F_D.percent=L7g;F_D.chart=T3x;F_D.display=o2M;F_D.holder=c4S.newChild(this.container,e9m,"stx-holder");F_D.subholder=c4S.newChild(F_D.holder,A2v,"stx-subholder");F_D.subholder.style.zIndex=1;F_D.holder.panel=F_D;U_c=Y4n?"stx-panel-chart":"stx-panel-study";F_D.holder.classList.add(U_c);if(this.controls.handleTemplate && this.manageTouchAndMouse){F_D.handle=this.controls.handleTemplate.cloneNode(!![]);this.container.appendChild(F_D.handle);F_D.handle.panel=F_D;}if(this.controls.iconsTemplate){F_D.icons=this.controls.iconsTemplate.cloneNode(!![]);F_D.subholder.appendChild(F_D.icons);this.configurePanelControls(F_D);}if(!this.currentlyImporting){this.resizeCanvas();}this.runAppend("stackPanel",arguments);};c4S.ChartEngine.prototype.setPanelEdit=function(p18,x_W){p18.editFunction=x_W;if(p18.edit){c4S.safeClickTouch(p18.edit,x_W);}this.adjustPanelPositions();};c4S.ChartEngine.prototype.drawPanels=function(){var r2E,E0H,h$S,N4M,w63,s7y,b4q,O6J,a0R,u6T,T40,U79;r2E="draw";r2E+="P";r2E+="a";r2E+="nels";g4U.J8h();if(this.runPrepend("drawPanels",arguments)){return;}E0H=!!0;for(var k3E in this.panels){h$S=this.panels[k3E];h$S.state={};N4M=this.translateIf(h$S.display);if(h$S.title && h$S.title.textContent != N4M){h$S.title.innerHTML="";h$S.title.appendChild(document.createTextNode(N4M));}if(h$S.icons){h$S.icons.classList.add("stx-show");}if(h$S.hidden){w63="non";w63+="e";if(h$S.icons){h$S.icons.classList.remove("stx-show");}if(h$S.handle){h$S.handle.style.display="none";}h$S.holder.style.display=w63;continue;}else {if(h$S.name != "chart"){s7y=this.manageTouchAndMouse;if(h$S.up){h$S.up.style.display=this.displayIconsUpDown && s7y?"":"none";}if(h$S.down){h$S.down.style.display=this.displayIconsUpDown && s7y?"":"none";}if(h$S.solo){h$S.solo.style.display=this.displayIconsSolo && s7y?"":"none";}if(h$S.close){h$S.close.style.display=this.displayIconsClose && s7y?"":"none";}if(h$S.edit){h$S.edit.style.display=h$S.editFunction && s7y?"":"none";}}h$S.holder.style.display="block";}if(h$S.displayEdgeIfPadded){b4q="se";b4q+="g";b4q+="ment";O6J=Math.round(h$S.left) + 0.5;a0R=h$S.yAxis.top - 0.5;u6T=h$S.yAxis.bottom + 0.5;if(h$S.yaxisCalculatedPaddingLeft && !h$S.yaxisTotalWidthLeft){this.plotLine(O6J,O6J,a0R,u6T,this.canvasStyle("stx_grid_border"),b4q,this.chart.context,!!0,{lineWidth:1});}g4U.M8Y(58);var Y1R=g4U.d58(3,5,4,16,5);O6J=Math.round(h$S.right) + "0.5" * Y1R;if(h$S.yaxisCalculatedPaddingRight && !h$S.yaxisTotalWidthRight){this.plotLine(O6J,O6J,a0R,u6T,this.canvasStyle("stx_grid_border"),"segment",this.chart.context,!!"",{lineWidth:1});}}if(!E0H){if(h$S.handle){h$S.handle.style.display="none";}E0H=!!({});continue;}T40=h$S.top;T40=Math.round(T40) + 0.5;this.plotLine(h$S.left - 0.5,h$S.right + 0.5,T40,T40,this.canvasStyle("stx_panel_border"),"segment",this.chart.context,!({}),{});if(h$S.handle){if(!this.displayPanelResize){U79="non";U79+="e";h$S.handle.style.display=U79;}else {h$S.handle.style.display="";}g4U.M8Y(81);var C$P=g4U.c6Y(3,19,6,340);h$S.handle.style.top=T40 - h$S.handle.offsetHeight / C$P + "px";;}}this.runAppend(r2E,arguments);};};k4=b0E=>{var V3n;V3n=b0E.CIQ;V3n.ChartEngine.isDailyInterval=function(U1C){var k_y,a8x;k_y="w";x2dci.J8h();k_y+="e";k_y+="e";k_y+="k";a8x="d";a8x+="a";a8x+="y";if(U1C == a8x){return !![];}if(U1C == k_y){return !0;}if(U1C == "month"){return !!"1";}return !({});};V3n.ChartEngine.prototype.setPeriodicity=function(L_r,z_5){var E_N=x2dci;var S2x,G6z,s6C,x43,e$J,M$T,Q5$,w2t,K9b,C9Q,k_E,g8G,a5q,q_O,x36,N3E,G72;S2x="set";S2x+="P";S2x+="e";S2x+="riodicity";if(this.runPrepend(S2x,arguments)){return;}if(typeof arguments[0] !== "object"){L_r={period:arguments[0],interval:arguments[1],timeUnit:arguments[2]};E_N.C$o(97);var o4M=E_N.c6Y(4,10,121,3,1);z_5=arguments[arguments.length - o4M];if(arguments.length === 3){L_r.timeUnit=undefined;}}var {period:H6g, interval:D3w, timeUnit:c5R}=L_r;if(typeof z_5 !== "function"){z_5=null;}({period:H6g, interval:D3w, timeUnit:c5R}=V3n.cleanPeriodicity(H6g,D3w,c5R));var {layout:Q8n}=this;Q8n.setSpan={};Q8n.range={};function R6V(){var f7t;f7t="p";f7t+="eriodi";f7t+="ci";f7t+="ty";x43.dispatch(f7t,e$J);if(z_5){z_5(null);}}this.chart.inflectionPoint=null;G6z=![];if(this.chart.symbol){G6z=this.needDifferentData({period:H6g,interval:D3w,timeUnit:c5R});}var {candleWidth:L$8, periodicity:S_A, interval:X_z, timeUnit:x5j}=Q8n;s6C={prvPeriodicity:S_A,prvInterval:X_z,prvTimeUnit:x5j};Q8n.periodicity=H6g;Q8n.interval=D3w;Q8n.timeUnit=c5R;x43=this;e$J={stx:x43,differentData:G6z,prevPeriodicity:s6C};if(G6z){M$T="la";M$T+="yout";this.changeOccurred(M$T);this.clearCurrentMarketData();if(this.quoteDriver){for(var D5P in this.charts){Q5$=this.charts[D5P];if(Q5$.symbol){if(this.displayInitialized){this.quoteDriver.newChart({symbol:Q5$.symbol,symbolObject:Q5$.symbolObject,chart:Q5$},R6V);}else {this.loadChart(Q5$.symbol,{chart:Q5$},R6V);}}}}else if(this.dataCallback){this.dataCallback();R6V();}else {console.log("cannot change periodicity because neither dataCallback or quoteDriver are set");}this.home();return;}for(var l8q in this.charts){w2t=this.charts[l8q];var {dataSegment:x0E, dataSet:R_i, maxTicks:b91, scroll:z3z}=w2t;K9b=x0E?x0E.length:+"0";C9Q=R_i?R_i.length:"0" * 1;k_E=void +"0";g8G=Math.round(w2t.maxTicks / 2);this.setCandleWidth(L$8,w2t);a5q=!!1;q_O=!"1";if(z3z <= b91){a5q=!({});}else if(x0E && !x0E[g8G]){a5q=!({});E_N.C$o(0);q_O=E_N.d58(z3z,C9Q);;}if(a5q && K9b > 0){if(b91 < (Math.round(this.chart.width / L$8 - +"0.499") - ("1" << 64)) / 2){E_N.C$o(0);g8G=E_N.d58(K9b,1);}if(g8G >= K9b){k_E=x0E[K9b - 1].DT;E_N.C$o(0);g8G=E_N.d58(K9b,1);}else {k_E=x0E[g8G].DT;}}this.createDataSet();if(a5q){if(K9b > 0){for(var M63=C9Q - 1;M63 >= 0;M63--){x36=R_i[M63].DT;if(x36.getTime() < k_E.getTime()){E_N.C$o(111);w2t.scroll=E_N.d58(1,C9Q,g8G,M63);break;}}}}else if(!q_O){N3E=Math.round(this.preferences.whitespace / L$8);E_N.C$o(30);w2t.scroll=E_N.d58(N3E,b91,1);;}else {w2t.scroll=R_i.length + q_O;;}}if(this.displayInitialized){this.draw();}this.changeOccurred("layout");if(this.quoteDriver){for(var Y_9 in this.charts){G72=this.charts[Y_9];if(G72.symbol && (G72.moreAvailable || !G72.upToDate)){this.quoteDriver.checkLoadMore(G72);}}}R6V();this.runAppend("setPeriodicity",arguments);};V3n.ChartEngine.prototype.needDifferentData=function(R9i){var i8v,w4v,O80,X_F,Y1F,T74;i8v="min";i8v+="ute";w4v="minu";w4v+="t";w4v+="e";O80=this.layout;X_F=V3n.ChartEngine.isDailyInterval(R9i.interval);Y1F=V3n.ChartEngine.isDailyInterval(O80.interval);T74=!({});if(this.dontRoll || !Y1F){if(O80.interval != R9i.interval){T74=!!"1";}}else {if(X_F != Y1F){T74=!!({});}}if(!X_F && !R9i.timeUnit){R9i.timeUnit=w4v;}if(!Y1F && !O80.timeUnit){O80.timeUnit=i8v;}if(R9i.timeUnit != O80.timeUnit){T74=!!({});}x2dci.J8h();if(!this.masterData || !this.masterData.length){T74=!"";}return T74;};V3n.ChartEngine.prototype.getPeriodicity=function(){var l$n,s1b,H2Z;l$n=this.layout;s1b=l$n.interval;x2dci.r2m();H2Z=l$n.timeUnit;if(!H2Z){H2Z=s1b;s1b=1;}return {period:l$n.periodicity,interval:s1b,timeUnit:H2Z};};};C1=q_S=>{var V2m=x2dci;var X85;X85=q_S.CIQ;X85.ChartEngine.prototype.isHistoricalMode=function(){var H2d,C7N,l1G,r88,V2s,m7B,M06;H2d=new Date();C7N=!![];l1G=this.masterData;if(!this.isHistoricalModeSet){return !!0;}if(l1G.length){r88="D";r88+="T";V2s=this.getFirstLastDataRecord(l1G,r88,!"");m7B=this.standardMarketIterator(V2s.DT);C7N=(m7B?m7B.next():V2s.DT) <= H2d;if(C7N && X85.ChartEngine.isDailyInterval(m7B.interval)){M06=this.chart.market.getOpen();if(M06 && H2d < M06){V2m.M8Y(19);H2d.setHours(0,V2m.d58(0,"0"),0,0);if(+H2d == +m7B.begin){C7N=![];}}}}return C7N;};V2m.r2m();X85.ChartEngine.prototype.isHome=function(){var O7U,r0G,j4a;O7U=this.chart;r0G=O7U.dataSet;j4a=O7U.animatingHorizontalScroll;V2m.M8Y(0);V2m.r2m();var w40=V2m.c6Y(12,10);V2m.C$o(36);var g10=V2m.d58(31,11,47,517);return this.pixelFromTick(r0G.length - (j4a?w40:"1" >> g10),O7U) < O7U.width + O7U.panel.left;;};X85.ChartEngine.prototype.getPreviousBar=function(Y2C,T4t,g02){return this.getNextBarInternal(Y2C,T4t,g02,-+"1");};X85.ChartEngine.prototype.getNextBar=function(P$U,U1a,b_R){return this.getNextBarInternal(P$U,U1a,b_R,1);};X85.ChartEngine.prototype.getNextBarInternal=function(k45,R3c,Y16,E1w){var g4T,U_u,g3h,z5L;g4T=k45.dataSegment && k45.dataSegment[Y16];if(g4T){U_u=g4T.tick;while(U_u > 0 && U_u < k45.dataSet.length){V2m.M8Y(22);U_u=V2m.c6Y(E1w,U_u);g3h=k45.dataSet[U_u];if(g3h){z5L=X85.existsInObjectChain(g3h,R3c);if(z5L && z5L.obj[z5L.member]){return g3h;}}}}return null;};X85.ChartEngine.prototype.getFirstLastDataRecord=function(d8c,U8d,w7d){var p7r;if(d8c && d8c.length){p7r=w7d?d8c.length - 1:0;while(p7r >= 0 && p7r < d8c.length){if(d8c[p7r] && typeof d8c[p7r][U8d] != "undefined"){return d8c[p7r];}if(w7d){p7r--;}else {p7r++;}}}return null;};X85.ChartEngine.prototype.leftTick=function(){return this.chart.dataSet.length - this.chart.scroll;};X85.ChartEngine.prototype.getNextInterval=function(v_s,k8f,C9S){var O2N;if(!k8f){k8f=1;}if(C9S !== !({})){C9S=!0;}O2N=this.standardMarketIterator(v_s,C9S?this.dataZone:this.displayZone);if(!O2N){return v_s;}if(k8f < +"1"){V2m.C$o(146);return O2N.previous(V2m.d58(k8f,1));}return O2N.next(k8f);};X85.ChartEngine.prototype.standardMarketIterator=function(a4o,n8O,U8U){var y5w,o_E;y5w=U8U || this.chart;if(!y5w.market){return null;}o_E={begin:a4o,interval:this.layout.interval,periodicity:this.layout.interval == "tick"?this.chart.xAxis.futureTicksInterval:this.layout.periodicity,timeUnit:this.layout.timeUnit,outZone:n8O};return y5w.market.newIterator(o_E);};};t_=Q8V=>{var H4T=x2dci;var v21,J59;if(!Q8V.SplinePlotter){Q8V.SplinePlotter={};}v21=Q8V.CIQ;J59=Q8V.SplinePlotter;v21.ChartEngine.prototype.draw=function(){var v4O,J_6,l_b,y$_,G1a,I6g,w9M,A91,M0E,J02,t4y,r25,h$k,B9X;v4O="dr";v4O+="a";v4O+="w";J_6="n";J_6+="o";J_6+="n";J_6+="e";this.debug();l_b=this.chart;y$_=this.layout;if(!l_b.canvas){return;}if(!l_b.dataSet){return;}if(!l_b.canvasHeight){return;}H4T.M8Y(85);var u_I=H4T.c6Y(0,15,13,7,7);this.offset=y$_.candleWidth * this.candleWidthPercent / u_I;v21.clearCanvas(l_b.canvas,this);if(!this.masterData){return;}if(this.runPrepend("draw",arguments)){return;}if(!this.defaultColor){this.getDefaultColor();}this.vectorsShowing=![];this.drawPanels();this.yAxisLabels=[];this.correctIfOffEdge();this.createDataSegment();this.setBaselines(l_b);w9M=this.createXAxis(l_b);this.initializeDisplay(l_b);this.drawXAxis(l_b,w9M);try{this.renderYAxis(l_b);}catch(k8a){var L86;L86="reboo";L86+="t draw";if(k8a && k8a.message === L86){return this.draw();}throw k8a;}l_b.tmpWidth=Math.floor(y$_.candleWidth * this.candleWidthPercent);if(l_b.tmpWidth % 2 === "0" * 1){l_b.tmpWidth+=1;if(l_b.tmpWidth > y$_.candleWidth){H4T.M8Y(74);l_b.tmpWidth-=H4T.c6Y("2",2);}}H4T.r2m();if(l_b.tmpWidth < 0.5){l_b.tmpWidth=0.5;}for(G1a in this.plugins){I6g=this.plugins[G1a];if(I6g.display){if(I6g.drawUnder){I6g.drawUnder(this,l_b);}}}if(l_b.legend){l_b.legend.colorMap=null;}if(this.controls.baselineHandle){this.controls.baselineHandle.style.display=J_6;}this.rendererAction(l_b,"underlay");v21.getFn("Studies.displayStudies")(this,l_b,!!"1");this.displayChart(l_b);v21.getFn("Studies.displayStudies")(this,l_b,!({}));this.rendererAction(l_b,"overlay");if(l_b.legend && l_b.legend.colorMap && l_b.legendRenderer){A91=-914919967;M0E=761783298;H4T.C$o(74);J02=H4T.d58("2",2);for(var Q9G=1;H4T.O$R(Q9G.toString(),Q9G.toString().length,"98158" << 0) !== A91;Q9G++){l_b.legendRenderer(this,{chart:l_b,legendColorMap:l_b.legend.colorMap,coordinates:{x:l_b.legend.x,y:l_b.legend.y % l_b.panel.yAxis.top}});J02+=2;}if(H4T.q2D(J02.toString(),J02.toString().length,"41546" | 66) !== M0E){l_b.legendRenderer(this,{chart:l_b,legendColorMap:l_b.legend.colorMap,coordinates:{x:l_b.legend.x,y:l_b.legend.y + l_b.panel.yAxis.top}});}}for(G1a in this.plugins){I6g=this.plugins[G1a];if(I6g.display){if(I6g.drawOver){I6g.drawOver(this,l_b);}}}for(var L92 in this.panels){if(!this.panels[L92].hidden){this.plotYAxisText(this.panels[L92]);}}for(var N2V=0;N2V < this.yAxisLabels.length;N2V++){t4y=this.yAxisLabels[N2V];if(t4y.src == "series" && t4y.args[6] && t4y.args[6].drawSeriesPriceLabels === !1)continue;this.createYAxisLabel.apply(this,t4y.args);}if(this.createCrosshairs){this.createCrosshairs();}if(this.drawVectors){this.drawVectors();}this.drawCurrentHR();this.displayInitialized=!!({});r25=this.controls;if(r25){h$k="n";h$k+="one";B9X=this.manageTouchAndMouse && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.nonInteractive);if(r25.home){r25.home.style.display=B9X && !this.isHome()?"block":"none";}if(r25.chartControls){r25.chartControls.style.display=B9X?"block":h$k;}}if(v21.Marker){this.positionMarkers();}if(this.quoteDriver && this.animations.zoom.hasCompleted){this.quoteDriver.checkLoadMore(l_b);}this.runAppend(v4O,arguments);this.makeAsyncCallbacks();};v21.ChartEngine.prototype.setSeriesRenderer=function(f9r){var {baseline:e2o, name:V8T, panel:d6b, yAxis:x$c}=f9r.params;if(this.chart.seriesRenderers[V8T]){return this.chart.seriesRenderers[V8T];;}if(x$c){f9r.params.yAxis=this.addYAxis(this.panels[d6b],x$c);this.resizeChart();}H4T.r2m();f9r.stx=this;this.chart.seriesRenderers[V8T]=f9r;if(e2o){this.registerBaselineToHelper(f9r);}return f9r;};v21.ChartEngine.prototype.setMainSeriesRenderer=function(T2N){var F7Y,u$6,O8U,J9h,I0C,T_V;F7Y="sta";F7Y+="nda";F7Y+="loneBars";u$6="highLow";u$6+="Bars";O8U="o";O8U+="hl";O8U+="c";var {chartType:C7o, aggregationType:W_f}=this.layout;var {chart:R8Y}=this;var {custom:G08}=R8Y;J9h=this.mainSeriesRenderer;I0C=this.displayInitialized;if(J9h){if(T2N){this.setMasterData();}this.displayInitialized=!({});J9h.removeAllSeries();this.removeSeriesRenderer(J9h);J9h=this.mainSeriesRenderer=null;}if(G08 && G08.chartType){C7o=G08.chartType;}if(C7o == "none"){return;}if(W_f && W_f != O8U){C7o=W_f;}T_V=v21.Renderer.produce(C7o,{panel:R8Y.panel.name,name:"_main_series",highlightable:!1,useChartLegend:!![]});if(T_V){this.setSeriesRenderer(T_V).attachSeries(null,{display:R8Y.symbol});J9h=this.mainSeriesRenderer=T_V;}this.displayInitialized=I0C;[u$6,F7Y,"barsHaveWidth"].forEach((function(e98){H4T.r2m();R8Y[e98]=this.mainSeriesRenderer && this.mainSeriesRenderer[e98];}).bind(this));};v21.ChartEngine.prototype.removeSeriesRenderer=function(D6A){var u9t;H4T.J8h();var {baseline:E0M, name:T_o}=D6A.params;u9t=this.controls[`${T_o} baseline-handle`];if(E0M){this.removeBaselineFromHelper(D6A);if(u9t){this.container.removeChild(u9t);delete this.controls[u9t];}}delete this.chart.seriesRenderers[T_o];};v21.ChartEngine.prototype.getSeriesRenderer=function(M_U){return this.chart.seriesRenderers[M_U];};v21.ChartEngine.prototype.getRendererFromSeries=function(w7D){var F2a;F2a=this.chart.seriesRenderers;H4T.J8h();for(var i_z in F2a){for(var U2j in F2a[i_z].seriesParams){if(F2a[i_z].seriesParams[U2j].id == w7D){return F2a[i_z];}}}return null;};v21.ChartEngine.prototype.startClip=function(c8m,q6C){var t1v,z4V,D_K,V27,t1I;if(!c8m){c8m=this.chart.panel.name;}t1v=this.panels[c8m];z4V=t1v.yAxis;D_K=this.chart;D_K.context.save();D_K.context.beginPath();V27=t1v.left;t1I=t1v.width;if(q6C){V27=0;t1I=this.width;}else if(t1v.yaxisLHS && t1v.yaxisLHS.length){V27++;t1I--;}D_K.context.rect(V27,z4V.top,t1I,z4V.height);D_K.context.clip();};v21.ChartEngine.prototype.endClip=function(){H4T.r2m();this.chart.context.restore();};v21.ChartEngine.prototype.setLineStyle=function(b4Y,o3c){var Q3S,a$R;Q3S={};if(b4Y && typeof b4Y == "object"){Q3S=b4Y;}else {Q3S.color=b4Y;}if(!Q3S.color && !Q3S.pattern && !Q3S.width && !Q3S.baseColor){Q3S=null;}if(!o3c){o3c=this.chart;}a$R=1;if(Q3S && Q3S.width){a$R=Q3S.width;}if(Q3S && Q3S.pattern){Q3S.pattern=v21.borderPatternToArray(a$R,Q3S.pattern);}o3c.lineStyle=Q3S;};v21.ChartEngine.prototype.setGapLines=function(s0A,P1G){var b22;if(!P1G){P1G=this.chart;}b22={};if(s0A && typeof s0A == "object"){b22=s0A;}else if(typeof s0A === "boolean"){return P1G.gaplines=s0A;}else {b22.color=s0A;}if(!b22.color && !b22.pattern && !b22.fillMountain){b22=null;}if(b22 && b22.pattern){b22.pattern=v21.borderPatternToArray(b22.width,b22.pattern);}if(b22 && b22.width <= 0){b22.width=null;}P1G.gaplines=b22;};v21.ChartEngine.prototype.getGapColorFunction=function(T0V,b6D,x85,U$7,L8C){if(typeof x85 != "object"){x85={color:x85};}return function(o8B,u_O,R$k){var B$b,u_l;B$b=L8C?L8C(o8B,u_O,R$k):x85;if(B$b.color){B$b=B$b.color;}H4T.r2m();u_l=u_O[T0V];if(!u_l && u_l !== 0){u_l=u_O[b6D];}if(!R$k && (u_l || u_l === 0)){return {color:B$b,pattern:x85.pattern,width:x85.width};}if(!U$7){return null;}if(typeof U$7 != "object"){if(typeof U$7 == "string"){U$7={color:U$7};}else {U$7={};}}return {color:U$7.color || B$b,pattern:U$7.pattern || x85.pattern,width:U$7.width || x85.width};};};v21.ChartEngine.prototype.drawLineChart=function(Z15,W36,y9q,c2m){var e9q,W9C,S$t,i9O,j03,s84,T2W,U0c,D$i,s3p,a06,r8W,J8A;e9q="C";H4T.r2m();e9q+="lo";e9q+="se";W9C=this.chart;S$t=W9C.context;i9O=W9C.lineStyle || ({});j03=this.canvasStyle(W36);if(!c2m){c2m={};}this.startClip(Z15.name);s84=c2m.width || i9O.width || j03.width;if(s84 && parseInt(s84,10) <= 25){S$t.lineWidth=Math.max(1,v21.stripPX(s84));}else {S$t.lineWidth=+"1";}c2m.pattern=c2m.pattern || i9O.pattern || j03.borderTopStyle;c2m.pattern=v21.borderPatternToArray(S$t.lineWidth,c2m.pattern);this.canvasColor(W36);T2W=c2m.color || i9O.color;if(T2W){U0c="a";U0c+="u";U0c+="to";if(T2W == U0c){T2W=this.defaultColor;}if(c2m.opacity && c2m.opacity !== 1){T2W=v21.hexToRgba(v21.colorToHex(T2W),parseFloat(c2m.opacity));}S$t.strokeStyle=T2W;}c2m.skipProjections=!"";D$i=c2m.field || W9C.defaultPlotField;s3p=c2m.subField || W9C.defaultPlotField || e9q;a06=c2m.gapDisplayStyle;if(!a06 && a06 !== !!""){a06=c2m.gaps;}if(!a06 && a06 !== ![]){a06=W9C.gaplines;}if(!a06){a06="transparent";}c2m.gapDisplayStyle=a06;r8W=this.getGapColorFunction(D$i,s3p,{color:S$t.strokeStyle,pattern:c2m.pattern,width:S$t.lineWidth},a06,y9q);if(Z15.chart.tension){c2m.tension=Z15.chart.tension;}J8A=this.plotDataSegmentAsLine(D$i,Z15,c2m,r8W);if(!J8A.colors.length){J8A.colors.push(S$t.strokeStyle);}S$t.lineWidth=1;this.endClip();return c2m.returnObject?J8A:J8A.colors;};v21.ChartEngine.prototype.drawChannelChart=function(J$F,A88,i_3){var t3l,X$M,i4W,j0M,N8N,B0e,v2_,q8$,u1z,X5f,g84,H47;t3l="subFi";t3l+="eld";X$M="H";X$M+="igh";i4W=v21.clone(i_3);i4W.color=i_3.color;j0M=this.drawLineChart(J$F,i4W.style,A88,i4W);N8N=i4W.border_color_up || this.getCanvasColor("stx_channel_up");B0e=i4W.border_color_down || this.getCanvasColor("stx_channel_down");i4W[i_3.field?"subField":"field"]=i4W.field_high || X$M;i4W.color=N8N;v2_=this.drawLineChart(J$F,i4W.style,A88,i4W);i4W[i_3.field?t3l:"field"]=i4W.field_low || "Low";i4W.color=B0e;q8$=this.drawLineChart(J$F,i4W.style,A88,i4W);i4W[i_3.field?"subField":"field"]=i_3.subField || this.chart.defaultPlotField || "Close";X5f=[];g84=[];for(u1z=0;u1z < v2_.points.length;u1z+=2){X5f.push([v2_.points[u1z],v2_.points[u1z + 1]]);}for(u1z=0;u1z < q8$.points.length;u1z+=2){g84.push([q8$.points[u1z],q8$.points[u1z + +"1"]]);}H47=this.chart.context.lineWidth / +"2";for(u1z=j0M.points.length - 2;u1z >= 0;u1z-=2){X5f.push([j0M.points[u1z],j0M.points[u1z + 1] - H47]);g84.push([j0M.points[u1z],j0M.points[u1z + 1] + H47]);}this.startClip(J$F.name);i4W.color=N8N;v21.fillArea(this,X5f,i4W);i4W.color=B0e;v21.fillArea(this,g84,i4W);this.endClip();j0M.colors=j0M.colors.concat(v2_.colors).concat(q8$.colors);H4T.J8h();return i_3.returnObject?j0M:j0M.colors;};v21.ChartEngine.prototype.connectTheDots=function(e0E,A1J,A$D,P4s,u0Z,d8E){var d63,B4I,Q9E,S7F,A$0,w2Z,t0y,P_J,U6f,H5$,W$X,x6G,Z_k,P83,O4Q,r6b,S08,x5V,W92,G6I;H4T.J8h();if(!d8E){d8E={};}if(d8E.pattern == "none"){return;}if(u0Z === !""){u0Z=this.chart.panel;}if(P4s === null || typeof P4s == "undefined"){P4s=this.chart.context;}if(e0E.length < 4){return;}d63=0;B4I=this.chart.canvasHeight;Q9E=0;S7F=this.chart.width;if(u0Z){B4I=u0Z.yAxis.bottom;d63=u0Z.yAxis.top;}P4s.lineWidth=+"1.1";if(typeof A1J == "object"){P4s.strokeStyle=A1J.color;if(A1J.opacity){P4s.globalAlpha=A1J.opacity;}else {P4s.globalAlpha=1;}P4s.lineWidth=v21.stripPX(A1J.width);}else {if(!A1J || A1J == "auto" || v21.isTransparent(A1J)){P4s.strokeStyle=this.defaultColor;}else {P4s.strokeStyle=A1J;}}if(d8E.opacity){P4s.globalAlpha=d8E.opacity;}if(d8E.lineWidth){P4s.lineWidth=d8E.lineWidth;}A$0=v21.borderPatternToArray(P4s.lineWidth,d8E.pattern);P4s.beginPath();for(var D0Q=0;D0Q < e0E.length - 2;D0Q+=2){w2Z=e0E[D0Q];H4T.M8Y(22);t0y=e0E[H4T.c6Y(1,D0Q)];H4T.C$o(22);P_J=e0E[H4T.d58(2,D0Q)];H4T.M8Y(22);U6f=e0E[H4T.d58(3,D0Q)];if(isNaN(w2Z) || isNaN(P_J) || isNaN(t0y) || isNaN(U6f)){return;}H5$=0.0;W$X=1.0;H4T.M8Y(0);x6G=H4T.c6Y(P_J,w2Z);H4T.M8Y(0);Z_k=H4T.d58(U6f,t0y);for(var p9c=0;p9c < +"4";p9c++){if(p9c === +"0"){P83=-x6G;H4T.M8Y(0);O4Q=-H4T.d58(Q9E,w2Z);}if(p9c == 1){P83=x6G;H4T.C$o(0);O4Q=H4T.c6Y(S7F,w2Z);}if(p9c == 2){P83=-Z_k;H4T.C$o(0);O4Q=-H4T.d58(d63,t0y);}if(p9c == ("3" ^ 0)){P83=Z_k;H4T.M8Y(0);O4Q=H4T.d58(B4I,t0y);}H4T.C$o(40);r6b=H4T.d58(P83,O4Q);if((U6f || U6f === 0) && P83 === 0 && O4Q < 0){return ![];;}if(P83 < 0){if(r6b > W$X){return ![];}else if(r6b > H5$){H5$=r6b;};}else if(P83 > 0){if(r6b < H5$){return !!0;}else if(r6b < W$X){W$X=r6b;};}}H4T.M8Y(147);S08=H4T.c6Y(w2Z,H5$,x6G);H4T.C$o(147);x5V=H4T.c6Y(t0y,H5$,Z_k);H4T.C$o(147);W92=H4T.c6Y(w2Z,W$X,x6G);H4T.M8Y(147);G6I=H4T.c6Y(t0y,W$X,Z_k);try{P4s.setLineDash(A$0 && A$0.length?A$0:[]);P4s.moveTo(S08,x5V);P4s.lineTo(W92,G6I);}catch(s0v){;}}P4s.stroke();P4s.closePath();P4s.globalAlpha=1;P4s.lineWidth=1;};v21.ChartEngine.prototype.plotSpline=function(A7T,L36,w2c,V3V,X8N,P2N,y$a){var b8h,T5W;if(!y$a){y$a={};}if(y$a.pattern == "none"){return;}if(P2N === !0){P2N=this.chart.panel;}if(X8N === null || typeof X8N == "undefined"){X8N=this.chart.context;}X8N.save();H4T.J8h();X8N.lineWidth=1.1;if(typeof w2c == "object"){X8N.strokeStyle=w2c.color;if(w2c.opacity){X8N.globalAlpha=w2c.opacity;}else {X8N.globalAlpha=1;}X8N.lineWidth=v21.stripPX(w2c.width);}else {b8h="a";b8h+="uto";if(!w2c || w2c == b8h || v21.isTransparent(w2c)){X8N.strokeStyle=this.defaultColor;}else {X8N.strokeStyle=w2c;}}if(y$a.opacity){X8N.globalAlpha=y$a.opacity;}if(y$a.lineWidth){X8N.lineWidth=y$a.lineWidth;}T5W=v21.borderPatternToArray(X8N.lineWidth,y$a.pattern);if(y$a.pattern && X8N.setLineDash){X8N.setLineDash(T5W);X8N.lineDashOffset=0;;}X8N.beginPath();J59.plotSpline(A7T,L36,X8N);X8N.stroke();X8N.closePath();X8N.restore();};v21.ChartEngine.prototype.rawWatermark=function(M8u,s28,U0t,G6w){this.canvasFont("stx_watermark",M8u);M8u.fillStyle=this.defaultColor;M8u.globalAlpha=0.5;this.chart.context.textBaseline="alphabetic";M8u.fillText(G6w,s28,U0t);M8u.globalAlpha=1;};H4T.r2m();v21.ChartEngine.prototype.watermark=function(a$7,R5k){var P0w,x5i,v8o,q6p,M5X,T75,r_3,f_p,k6L,u4$,b5o,q_G;P0w="ri";P0w+="g";P0w+="ht";x5i="m";x5i+="iddle";v8o="to";H4T.r2m();v8o+="p";q6p="bo";q6p+="ttom";M5X="obj";M5X+="e";M5X+="c";M5X+="t";if(R5k && typeof R5k != M5X){R5k={h:arguments[1],v:arguments[+"2"],text:arguments[3]};}R5k={h:R5k.h || "left",v:R5k.v || q6p,text:R5k.text || "",hOffset:R5k.hOffset === 0?0:R5k.hOffset || 10,vOffset:R5k.vOffset === 0?0:R5k.vOffset || 20,context:R5k.context || this.chart.context};T75=R5k.context;if(!T75){return;}r_3=this.panels[a$7];if(!r_3 || r_3.hidden){return;}f_p=r_3.yAxis.bottom - R5k.vOffset;if(R5k.v == v8o){f_p=r_3.top + R5k.vOffset;}else if(R5k.v == x5i){H4T.M8Y(2);var s9o=H4T.c6Y(17,15);f_p=(r_3.top + r_3.yAxis.bottom) / s9o;}T75.save();this.canvasFont("stx_watermark",T75);this.canvasColor("stx_watermark",T75);T75.textBaseline="alphabetic";k6L=r_3.left + R5k.hOffset;if(R5k.h == P0w){k6L=r_3.right - R5k.hOffset;}else if(R5k.h == "center"){H4T.C$o(25);var B3O=H4T.d58(8,8,2);k6L=(r_3.right + r_3.left - T75.measureText(R5k.text).width) / B3O;}T75.globalAlpha=+"0.5";if(this.highlightedDraggable){H4T.C$o(38);T75.globalAlpha*=H4T.c6Y("0.3",1);}u4$=1137626162;b5o=+"255910138";q_G=2;for(var o29=1;H4T.O$R(o29.toString(),o29.toString().length,46519) !== u4$;o29++){T75.fillText(R5k.text,k6L,f_p);T75.restore();q_G+=+"2";}if(H4T.O$R(q_G.toString(),q_G.toString().length,5622) !== b5o){T75.fillText(R5k.text,k6L,f_p);T75.restore();}};v21.ChartEngine.prototype.displayErrorAsWatermark=function(L$P,Z2N){var E06,P5i,m8y,u8G,n6w,A7a,c3A,E7K,Z9k,B6W,A3P,E0I;E06="c";E06+="hart";if(!Z2N){return;}if(!L$P){L$P=E06;}P5i=this.panels[L$P];if(!P5i || P5i.hidden){return;}m8y=P5i.state;if(!m8y){P5i.state=m8y={};}u8G=m8y.studyErrors;if(!u8G){m8y.studyErrors=u8G=new Set();}if(u8G.has(Z2N)){return;}n6w=m8y.watermarkOffset || 10;A7a=+"10";c3A=this.getCanvasFontSize("stx_watermark");if(this.chart && this.chart.chartControls){E7K=P5i.yAxis.bottom;Z9k=this.chart.chartControls;H4T.M8Y(0);B6W=H4T.d58(E7K,n6w);H4T.M8Y(0);A3P=H4T.c6Y(B6W,c3A);if(B6W > Z9k.offsetTop && B6W < Z9k.offsetTop + Z9k.offsetHeight || A3P > Z9k.offsetTop && A3P < Z9k.offsetTop + Z9k.offsetHeight){n6w=E7K - Z9k.offsetTop + A7a;}}u8G.add(Z2N);E0I={h:"center",v:"bottom",text:Z2N,vOffset:n6w};H4T.M8Y(22);n6w+=H4T.d58(A7a,c3A);m8y.watermarkOffset=n6w;this.watermark(L$P,E0I);};v21.ChartEngine.prototype.displayChart=function(n9k){if(this.runPrepend("displayChart",arguments)){return;}this.rendererAction(n9k,"main");this.runAppend("displayChart",arguments);};};b$=x21=>{var y$5=x2dci;y$5.r2m();var c_h;c_h=x21.CIQ;c_h.ChartEngine.prototype.cloneStyle=function(X99){var y50,J4U,B$L,g8o,j9Z,Q_r,h8K,f6E;y50={};function B0c(e0Z){return e0Z[1].toUpperCase();}J4U=!1;for(var K$d in X99){B$L=X99[K$d];if(K$d == "backgroundAttachment"){J4U=!0;}if(J4U){if(B$L && B$L.constructor == String && isNaN(K$d)){y50[K$d]=B$L;}}else if(!isNaN(K$d)){g8o=X99.getPropertyValue(B$L);if(g8o){B$L=B$L.split(9782 == ("615.87" * 1,5740)?5017 == "128" * 1?227.77:1420 > 344.34?(!![],0x7a):("l",0x249e):"-");j9Z=0;Q_r=B$L.length;h8K=B$L[0];while(++j9Z < Q_r){h8K+=B$L[j9Z].charAt(0).toUpperCase() + B$L[j9Z].slice(+"1");}y50[h8K]=g8o;}}else {f6E=K$d.replace(c_h.camelCaseRegExp,B0c);y50[f6E]=B$L;}}return y50;};c_h.ChartEngine.prototype.canvasStyle=function(A3W){var r1L,y0u,z3c;y$5.J8h();r1L=this.styles[A3W];if(!r1L){y0u=document.createElement("div");y0u.className=A3W;this.container.appendChild(y0u);z3c=getComputedStyle(y0u);r1L=this.styles[A3W]=this.cloneStyle(z3c);this.container.removeChild(y0u);if(!z3c){this.styles[A3W]=null;}}return r1L;};c_h.ChartEngine.prototype.colorOrStyle=function(W7V){if(W7V.indexOf(("7160" ^ 0) != (3900,+"1006")?"#":18.45 !== (199.03,+"1770")?+"163.98" === (3230,763.82)?!![]:(374.20,+"0x4f2"):("6.56e+3" | 0,"c")) != -1){return W7V;}y$5.r2m();if(W7V.indexOf("(") != -1){return W7V;}if(W7V == "transparent"){return W7V;}return this.canvasStyle(W7V);};c_h.ChartEngine.prototype.clearStyles=function(){this.styles={};this.defaultColor="";};c_h.ChartEngine.prototype.setStyle=function(P_Z,l$x,w96){if(!this.styles[P_Z]){this.canvasStyle(P_Z);}if(!this.styles[P_Z]){this.styles[P_Z]={};}y$5.J8h();this.styles[P_Z][c_h.makeCamelCase(l$x)]=w96;};c_h.ChartEngine.prototype.canvasFont=function(R_7,t_3){var s7R,B6b,B6f,S9D;s7R="und";s7R+="e";s7R+="fine";s7R+="d";if(!t_3){t_3=this.chart.context;}B6b=this.canvasStyle(R_7);if(!B6b){return;}y$5.M8Y(124);var F1X=y$5.d58(2446,20,10,17);y$5.C$o(76);var v2K=y$5.d58(1961,2,966,7);y$5.J8h();y$5.M8Y(148);var Q$F=y$5.c6Y(3,1,6075,12142,3);y$5.M8Y(77);var o53=y$5.d58(178169,19,9,20360);y$5.M8Y(0);var r6X=y$5.d58(2552,12);y$5.M8Y(0);var u_Z=y$5.c6Y(3028,8);y$5.M8Y(8);var F3o=y$5.d58(11,10,1);B6f=B6b.fontStyle + (497.5 < 544.17?" ":(293.58,![])) + B6b.fontWeight + " " + B6b.fontSize + (("586.2" - 0,F1X) >= (v2K,Q$F)?o53 <= (r6X,u_Z)?("688.76" * F3o,516.59):475.96:" ") + B6b.fontFamily;if(B6f.indexOf(s7R) == -1){t_3.font=B6f;}else {S9D="bad css style for clas";S9D+="s ";this.styles[R_7]=null;y$5.M8Y(22);console.log(y$5.c6Y(R_7,S9D));}};c_h.ChartEngine.prototype.canvasColor=function(x3b,K8a){y$5.J8h();var t1s,a2h,m6n;if(!K8a){K8a=this.chart.context;}t1s=this.canvasStyle(x3b);if(!t1s){return;}a2h=t1s.color;if(!a2h){a2h=this.defaultColor;}K8a.globalAlpha=+"1";K8a.fillStyle=a2h;K8a.strokeStyle=a2h;m6n=t1s.opacity;if(typeof m6n != "undefined"){K8a.globalAlpha=m6n;}};c_h.ChartEngine.prototype.getCanvasFontSize=function(Z6c){var P06,r0x;P06=this.canvasStyle(Z6c);r0x=P06.fontSize;if(!r0x){r0x="12";}return parseInt(c_h.stripPX(r0x),10);};c_h.ChartEngine.prototype.getCanvasColor=function(X1w){var a7O;y$5.J8h();a7O=this.canvasStyle(X1w);return a7O.color;};c_h.ChartEngine.prototype.getDefaultColor=function(){var i3t,S37,p7Y,o0Z,Z$R,v5B,M1N,f5s;y$5.J8h();this.defaultColor="#000000";i3t=null;S37=this.chart.container;while(!i3t || c_h.isTransparent(i3t)){p7Y=getComputedStyle(S37);if(!p7Y){return;}i3t=p7Y.backgroundColor;if(c_h.isTransparent(i3t)){i3t="transparent";}S37=S37.parentNode;if(!S37 || !S37.tagName)break;}if(i3t){o0Z="#";o0Z+="FF";o0Z+="FFFF";Z$R="tr";Z$R+="anspar";Z$R+="ent";if(i3t == Z$R){i3t=o0Z;}this.containerColor=i3t;if(!c_h.isTransparent(i3t)){v5B=c_h.hsv(i3t);M1N=v5B[2];if(M1N > 0.65){this.defaultColor="#000000";}else {this.defaultColor="#FFFFFF";}}else {this.defaultColor="#000000";}}else {f5s="#FF";f5s+="FFFF";this.containerColor=f5s;}};};l5=p83=>{var x7$;x7$=p83.CIQ;x7$.ChartEngine.XAxis=function(q_v){for(var h8o in q_v){this[h8o]=q_v[h8o];}};x7$.extend(x7$.ChartEngine.XAxis.prototype,{formatter:null,adjustTimeZone:!!({}),idealTickSizePixels:null,timeUnit:null,timeUnitMultiplier:null,displayBorder:!![],displayGridLines:!!1,noDraw:null,minimumLabelWidth:50,futureTicks:!![],futureTicksInterval:1},!!({}));x7$.ChartEngine.XAxisLabel=function(o3n,h_7,q2n){this.hz=o3n;x2dci.J8h();this.grid=h_7;this.text=q2n;};x7$.ChartEngine.prototype.createXAxis=function(U6W){var P8v,a9k,d$6;P8v="crea";P8v+="teX";P8v+="Axis";if(U6W.dataSegment.length <= 0){return null;}if(U6W.xAxis.noDraw){return null;}a9k=[U6W];x2dci.J8h();d$6=this.runPrepend("createXAxis",a9k);if(d$6){return d$6;}if(this.mainSeriesRenderer && this.mainSeriesRenderer.createXAxis){d$6=this.mainSeriesRenderer.createXAxis(U6W);}else {d$6=this.createTickXAxisWithDates(U6W);}this.headsUpHR();this.runAppend(P8v,a9k);return d$6;};x7$.ChartEngine.prototype.createXAxisLabel=function(z27){var S2q=x2dci;var E0R,U6S,T1Y,Q_I,I$x,S3p,I0I,L0a,R87,b6U,Y7x,q2L,V9f,z19;if(arguments[0] instanceof x7$.ChartEngine.Panel){z27={panel:arguments["0" - 0],txt:arguments[1],x:arguments[2],backgroundColor:arguments[+"3"],color:arguments[4],pointed:arguments[5],padding:arguments[6]};}E0R=z27.panel;U6S=z27.txt;S2q.r2m();T1Y=z27.x;Q_I=z27.backgroundColor;I$x=z27.color;S3p=z27.pointed;I0I=z27.padding === 0?"0" >> 64:z27.padding || 2;L0a=this.chart.context;R87="stx-float-date";S2q.C$o(25);var X1X=S2q.d58(21,23,4);b6U=this.getCanvasFontSize(R87) + I0I * X1X;this.canvasFont(R87,L0a);try{Y7x=L0a.measureText(U6S).width + I0I * ("2" - 0);}catch(W2w){Y7x=0;}q2L=E0R.top + E0R.height - b6U - I0I;if(T1Y + Y7x / 2 < E0R.left || T1Y - Y7x / 2 > E0R.right){return;}if(!S3p){if(T1Y + Y7x / ("2" >> 32) > E0R.right){S2q.M8Y(44);var g_K=S2q.d58(20,0,3,20);T1Y=E0R.right - Y7x / g_K;}if(T1Y - Y7x / 2 < E0R.left){S2q.C$o(136);var Y_x=S2q.d58(1,8,78,10);T1Y=E0R.left + Y7x / Y_x;}}L0a.fillStyle=Q_I;x7$.roundRect({ctx:L0a,x:T1Y - Y7x / +"2",top:q2L,width:Y7x,height:b6U,radius:3,fill:!0});V9f=E0R.bottom - E0R.yAxis.bottom - b6U;L0a.beginPath();if(S3p){S2q.C$o(0);L0a.moveTo(S2q.c6Y(T1Y,V9f),q2L);S2q.C$o(30);L0a.lineTo(T1Y,S2q.c6Y(V9f,q2L,1));S2q.M8Y(22);L0a.lineTo(S2q.c6Y(V9f,T1Y),q2L);L0a.closePath();L0a.fill();}else {L0a.moveTo(T1Y,q2L);S2q.C$o(0);L0a.lineTo(T1Y,S2q.c6Y(q2L,V9f));L0a.strokeStyle=Q_I;L0a.stroke();}L0a.textBaseline="top";L0a.fillStyle=I$x?I$x:x7$.chooseForegroundColor(Q_I);if(L0a.fillStyle == Q_I){z19="#";z19+="FFFFFF";if(Q_I.toUpperCase() == "#FFFFFF"){L0a.fillStyle="#000000";}else {L0a.fillStyle=z19;}}S2q.M8Y(149);L0a.fillText(U6S,S2q.c6Y(I0I,Y7x,"2",T1Y,1),S2q.d58(1,I0I,q2L,"2",S2q.C$o(150)));};};R$=t$J=>{var x$1=x2dci;var S6I,F8L;S6I="widt";S6I+="h";F8L=t$J.CIQ;F8L.createLabel=function(w1O){var d98,o2T;x$1.r2m();d98="le";d98+="ft";w1O.ctx.textBaseline="middle";w1O.ctx.fillStyle=w1O.color?w1O.color:F8L.chooseForegroundColor(w1O.backgroundColor);if(w1O.ctx.fillStyle === w1O.backgroundColor){o2T="#";o2T+="FFFFF";o2T+="F";if(w1O.backgroundColor.toUpperCase() == o2T){w1O.ctx.fillStyle="#000000";}else {w1O.ctx.fillStyle="#FFFFFF";}}w1O.ctx.fillText(w1O.txt,w1O.x + w1O.margin.left,w1O.y + w1O.margin.top);w1O.ctx.textAlign=d98;};F8L.roundRectArrow=function(U6n){x$1.J8h();F8L.roundRect(U6n,"arrow");};F8L.semiRoundRect=function(x2j){var p_h;p_h="f";p_h+="l";p_h+="us";p_h+="h";F8L.roundRect(x2j,p_h);};F8L.rect=function(i6e){x$1.J8h();var h4u,M1J,P3e;i6e.radius=0;h4u=1235241838;M1J=+"1091206516";P3e=2;for(var k66=1;x$1.O$R(k66.toString(),k66.toString().length,22296) !== h4u;k66++){F8L.roundRect(i6e);x$1.C$o(0);P3e+=x$1.c6Y("2",0);}if(x$1.O$R(P3e.toString(),P3e.toString().length,87195) !== M1J){F8L.roundRect(i6e);}};F8L.noop=function(T8M){T8M.color=T8M.backgroundColor;F8L.createLabel(T8M);};F8L.tickedRect=function(Z94){var D0d;F8L.rect(Z94);x$1.r2m();x$1.C$o(22);var L66=x$1.c6Y(2,0);D0d=Math.round(Z94.top + Z94.height / L66) + 0.5;Z94.ctx.beginPath();Z94.ctx.moveTo(Z94.x - ("2" ^ 0),D0d);Z94.ctx.lineTo(Z94.x,D0d);Z94.ctx.stroke();Z94.ctx.closePath();};F8L.roundRect=function(b75,B8I){var v91,r6f,m2A,c$Y,z4v,D4G,e_4,F3g,s8v,Y1C,H0B,y_x,i6U,S7V,l86,p5a,s6M,B3z;v91="u";v91+="n";v91+="def";v91+="ined";r6f="un";r6f+="d";r6f+="efin";r6f+="ed";if(arguments.length === 9){b75={ctx:arguments[0],x:arguments[+"1"],top:arguments[2],width:arguments[+"3"],height:arguments[4],radius:arguments[+"5"],fill:arguments[6],stroke:arguments[7],edge:arguments[8]};}m2A=b75.stroke;c$Y=b75.x;z4v=b75.top;D4G=b75.width;e_4=b75.height;F3g=b75.radius;s8v=b75.fill;Y1C=b75.ctx;if(typeof m2A == r6f){m2A=!"";}if(typeof F3g === v91){F3g=+"5";if(D4G < "0" * 1){F3g=-5;}}H0B=D4G < 0?F3g * -1:F3g;if(F3g && !B8I){x$1.M8Y(0);c$Y=x$1.d58(c$Y,1);}x$1.C$o(22);x$1.J8h();y_x=x$1.c6Y(F3g,c$Y);x$1.C$o(22);i6U=x$1.c6Y(D4G,c$Y);x$1.M8Y(22);S7V=x$1.d58(H0B,z4v);x$1.C$o(22);l86=x$1.d58(e_4,z4v);x$1.M8Y(0);p5a=x$1.c6Y(i6U,F3g);x$1.M8Y(0);s6M=x$1.c6Y(l86,H0B);Y1C.beginPath();Y1C.moveTo(y_x,z4v);Y1C.lineTo(p5a,z4v);Y1C.quadraticCurveTo(i6U,z4v,i6U,S7V);Y1C.lineTo(i6U,s6M);Y1C.quadraticCurveTo(i6U,l86,p5a,l86);Y1C.lineTo(y_x,l86);if(B8I == "flush"){Y1C.lineTo(c$Y,l86);Y1C.lineTo(c$Y,z4v);}else if(B8I == "arrow"){x$1.C$o(0);Y1C.quadraticCurveTo(c$Y,l86,x$1.d58(c$Y,F3g),s6M);B3z=D4G < 0?1:-+"1";x$1.M8Y(151);Y1C.lineTo(x$1.c6Y(2,c$Y,B3z,e_4),x$1.c6Y(2,z4v,e_4,x$1.M8Y(139)));x$1.C$o(0);Y1C.lineTo(x$1.d58(c$Y,F3g),S7V);Y1C.quadraticCurveTo(c$Y,z4v,y_x,z4v);}else {Y1C.quadraticCurveTo(c$Y,l86,c$Y,s6M);Y1C.lineTo(c$Y,S7V);Y1C.quadraticCurveTo(c$Y,z4v,y_x,z4v);}Y1C.closePath();if(b75.backgroundColor){Y1C.fillStyle=b75.backgroundColor;}if(m2A){Y1C.stroke();}if(s8v){Y1C.fill();}if(b75.txt){F8L.createLabel(b75);}};F8L.ChartEngine.YAxis=function(H2v){for(var Y8d in H2v){this[Y8d]=H2v[Y8d];}if(!this.name){this.name=F8L.uniqueID();}if(this.position == "none"){x$1.M8Y(46);this.width=x$1.d58("0",64);}};F8L.extend(F8L.ChartEngine.YAxis.prototype,{high:null,low:null,shadow:null,logHigh:null,logLow:null,logShadow:null,multiplier:null,bottom:null,top:null,height:null,left:null,width:null,renderers:[],studies:[]},!!({}));x$1.M8Y(0);F8L.ChartEngine.YAxis.defaultShadowBreaks=[[+"1000",x$1.c6Y("2",0)],[+"5",4],[0.001,8]];F8L.ChartEngine.YAxis.smallChartShadowBreaks=[[10,2],[1,+"4"]];F8L.ChartEngine.YAxis.prototype.maxDecimalPlaces=null;F8L.ChartEngine.YAxis.prototype.max=null;x$1.J8h();F8L.ChartEngine.YAxis.prototype.min=null;F8L.ChartEngine.YAxis.prototype.decimalPlaces=null;F8L.ChartEngine.YAxis.prototype.idealTickSizePixels=null;F8L.ChartEngine.YAxis.prototype.minimumPriceTick=null;F8L.ChartEngine.YAxis.prototype.fractional=null;F8L.ChartEngine.YAxis.prototype.displayBorder=!![];F8L.ChartEngine.YAxis.prototype.displayGridLines=!!({});F8L.ChartEngine.YAxis.prototype.noDraw=null;F8L.ChartEngine.YAxis.prototype.drawCurrentPriceLabel=!!"1";F8L.ChartEngine.YAxis.prototype.drawSeriesPriceLabels=!"";F8L.ChartEngine.YAxis.prototype.drawPriceLabels=!!({});F8L.ChartEngine.YAxis.prototype.goldenRatioYAxis=!"";F8L.ChartEngine.YAxis.prototype.yaxisLabelStyle=null;F8L.ChartEngine.YAxis.prototype.justifyRight=null;F8L.ChartEngine.YAxis.prototype.flipped=!({});F8L.ChartEngine.YAxis.prototype.textBackground=!"1";F8L.ChartEngine.YAxis.prototype.priceFormatter=null;F8L.ChartEngine.YAxis.prototype.bottomOffset=0;F8L.ChartEngine.YAxis.prototype.topOffset=0;F8L.ChartEngine.YAxis.prototype.initialMarginTop=+"10";F8L.ChartEngine.YAxis.prototype.initialMarginBottom=10;F8L.ChartEngine.YAxis.prototype.zoom=0;F8L.ChartEngine.YAxis.prototype.scroll=0;x$1.M8Y(20);F8L.ChartEngine.YAxis.prototype.heightFactor=x$1.c6Y("1",0);Object.defineProperty(F8L.ChartEngine.YAxis.prototype,S6I,{configurable:!![],enumerable:!!({}),get:function(){x$1.r2m();return this._dynamicWidth || this._width;},set:function(b0W){this._width=b0W;if(this._dynamicWidth < b0W){this._dynamicWidth=NaN;}}});F8L.ChartEngine.YAxis.prototype.width=60;F8L.ChartEngine.YAxis.prototype.smallScreenWidth=50;F8L.ChartEngine.YAxis.prototype.textStyle=null;F8L.ChartEngine.YAxis.prototype.position=null;F8L.ChartEngine.YAxis.prototype.pretty=!0;F8L.ChartEngine.YAxis.prototype.increments=[1,2.5,5];F8L.ChartEngine.YAxis.prototype.prettySemiLog=!0;F8L.ChartEngine.YAxis.prototype.shadowBreaks=F8L.ChartEngine.YAxis.defaultShadowBreaks;F8L.ChartEngine.YAxis.prototype.getYAxis=function(e$H){return this;};F8L.ChartEngine.YAxis.prototype.isShared=function(Q67,I1$){var g8m,E$1;x$1.r2m();g8m=this.studies.length;E$1=this.renderers.length;if(g8m > 1){return !0;}if(E$1 && g8m){return !![];}if(!E$1){return !1;}if(E$1 > 1 && I1$){return !0;}for(var L1M=E$1 - 1;L1M >= 0;L1M--){if(Q67.chart.seriesRenderers[this.renderers[L1M]].params.dependentOf){E$1--;}}x$1.M8Y(152);return x$1.d58(E$1,1);};F8L.ChartEngine.YAxis.prototype.setBackground=function(l$k,h_M){var h4X;if(!h_M){h_M={};}if(!h_M.color){h_M.color="auto";}h4X=[[this.left,this.top],[this.left,this.bottom],[this.left + this.width,this.bottom],[this.left + this.width,this.top]];F8L.fillArea(l$k,h4X,{color:h_M.color,opacity:h_M.opacity});};F8L.ChartEngine.YAxis.prototype.setBreakpointWidth=function(O1G){var c48;if(!O1G){return;}var {width:R$_, smallScreenWidth:w0d}=F8L.ChartEngine.YAxis.prototype;x$1.M8Y(129);c48=x$1.c6Y(O1G,"break-sm");this.width=c48?w0d:R$_;};F8L.ChartEngine.prototype.getLabelOffsetInPixels=function(E1j,o$I){var d1w,S6f,n7R,i2y;x$1.J8h();d1w="rou";d1w+="ndRectArrow";S6f=!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars;if(this.yaxisLabelStyle == d1w && !(S6f && this.extendLastTick && E1j.yaxisPaddingRight !== 0)){n7R=3;x$1.M8Y(153);var g2j=x$1.d58(10,6,13,19,14);i2y=this.getCanvasFontSize("stx_yaxis") + n7R * g2j;x$1.C$o(38);return x$1.d58(i2y,0.66);}return 0;};F8L.ChartEngine.prototype.flipChart=function(M64){x$1.r2m();var q46;q46="l";q46+="ay";q46+="out";if(this.layout.flipped == M64){return;}this.layout.flipped=M64;this.chart.yAxis.flipped=M64;this.changeOccurred(q46);this.draw();};F8L.ChartEngine.prototype.calculateYAxisMargins=function(c2K){if(c2K.heightFactor){x$1.C$o(7);var L7T=x$1.d58(12,0,13);c2K.zoom=c2K.height * (L7T - c2K.heightFactor);}c2K.zoom+=c2K.initialMarginTop + c2K.initialMarginBottom;x$1.C$o(68);var y4B=x$1.c6Y(43,3,15);c2K.scroll=(c2K.initialMarginTop - c2K.initialMarginBottom) / y4B;if(c2K.zoom > c2K.height){c2K.zoom=0;c2K.scroll=0;}};F8L.ChartEngine.prototype.resetDynamicYAxis=function(k_a){var M4l,R9m,r6H,f6h;M4l="resetDynamicY";M4l+="Ax";M4l+="is";if(this.runPrepend("resetDynamicYAxis",arguments)){return;}R9m=![];for(var T3w in this.panels){r6H=this.panels[T3w];if(k_a && k_a.chartName && r6H.chart.name !== k_a.chartName)continue;if(!r6H.yaxisLHS || !r6H.yaxisRHS)continue;f6h=r6H.yaxisLHS.concat(r6H.yaxisRHS);for(var k1O=0;k1O < f6h.length;k1O++){if(f6h[k1O]._dynamicWidth){f6h[k1O]._dynamicWidth=NaN;R9m=!!({});}}}x$1.J8h();if(R9m && (!k_a || !k_a.noRecalculate)){this.calculateYAxisPositions();}this.runAppend(M4l,arguments);};F8L.ChartEngine.prototype.notifyBreakpoint=function(P1I){var c2l,p4I,V_i;if(this.chart.breakpoint === P1I){return;}if(!["break-lg","break-md","break-sm"].includes(P1I)){return;}var {chart:U_Z}=this;var {dynamicYAxis:W5c}=U_Z;this.clearStyles();U_Z.breakpoint=P1I;for(var R3B in this.panels){c2l=this.panels[R3B];p4I=c2l.yaxisRHS.concat(c2l.yaxisLHS);for(var B9v=0;B9v < p4I.length;B9v++){V_i=p4I[B9v];V_i.setBreakpointWidth(P1I);}}if(W5c){this.resetDynamicYAxis({chartName:U_Z.name});}};F8L.ChartEngine.prototype.adjustYAxisHeightOffset=function(M_W,I48){var U7J,c20,o2I;U7J=I48.topOffset;c20=I48.bottomOffset;if(U7J + c20 > M_W.height){console.log("The sum of yAxis.topOffset and yAxis.bottomOffset cannot be greater than the panel height. Both values will be reset to 0.");I48.bottomOffset=0;I48.topOffset=+"0";}if(!this.xaxisHeight && this.xaxisHeight !== 0){this.xaxisHeight=this.getCanvasFontSize("stx_xaxis") + ("4" - 0);if(this.chart.xAxis.displayBorder || this.axisBorders){this.xaxisHeight+=+"3";}}x$1.J8h();o2I=this.xAxisAsFooter && M_W.bottom > this.chart.canvasHeight - this.xaxisHeight || !this.xAxisAsFooter && M_W == this.chart.panel;if(o2I){c20+=this.xaxisHeight;}I48.top=M_W.top + U7J;I48.bottom=M_W.bottom - c20;};F8L.ChartEngine.prototype.plotYAxisGrid=function(j6L){var W2T,G$k,a9B,m1z;W2T="p";W2T+="lo";W2T+="tYAxisGrid";if(this.runPrepend("plotYAxisGrid",arguments)){return;}G$k=this.getBackgroundCanvas().context;a9B=j6L.yAxis;x$1.J8h();if(a9B.yAxisPlotter){m1z="gri";m1z+="d";a9B.yAxisPlotter.draw(G$k,m1z);}this.runAppend(W2T,arguments);};F8L.ChartEngine.prototype.plotYAxisText=function(F2v){var X_9,m2U,k_w,m4f,B23,c$X;X_9="midd";X_9+="l";X_9+="e";if(this.runPrepend("plotYAxisText",arguments)){return;}m2U=this.getBackgroundCanvas().context;this.canvasFont("stx_yaxis",m2U);function X1C(L0n){var q2j,B4A;q2j="t";q2j+="e";q2j+="x";q2j+="t";B4A="r";B4A+="ight";if(!L0n.yAxisPlotter){return;}x$1.r2m();if(L0n.noDraw || !L0n.width){return;}if(L0n.justifyRight){m2U.textAlign=B4A;}else if(L0n.justifyRight === !1){m2U.textAlign="left";}L0n.yAxisPlotter.draw(m2U,q2j);}this.canvasColor("stx_yaxis",m2U);m2U.textBaseline=X_9;k_w=F2v.yaxisLHS;for(m4f=0;m4f < k_w.length;m4f++){B23="righ";B23+="t";m2U.textAlign=B23;X1C(k_w[m4f]);}k_w=F2v.yaxisRHS;for(m4f=0;m4f < k_w.length;m4f++){c$X="l";c$X+="eft";m2U.textAlign=c$X;X1C(k_w[m4f]);}m2U.textAlign="left";m2U.textBaseline="alphabetic";this.runAppend("plotYAxisText",arguments);};F8L.ChartEngine.prototype.decimalPlacesFromPriceTick=function(u0p){if(u0p < 0.0001){return 8;}if(u0p < 0.01){return 4;}x$1.r2m();if(u0p < 0.1){return 2;}if(u0p < 1){return 1;}return 0;};F8L.ChartEngine.prototype.formatYAxisPrice=function(Z8L,c6l,I5N,B_R,D9w){var J83,Y4Y,l5w,H9Y,g2X;if(Z8L === null || typeof Z8L == "undefined" || isNaN(Z8L)){return "";}if(!c6l){c6l=this.chart.panel;}J83=B_R?B_R:c6l.yAxis;Y4Y=I5N;if(!Y4Y && Y4Y !== 0){Y4Y=J83.printDecimalPlaces;}if(!Y4Y && Y4Y !== 0){Y4Y=this.decimalPlacesFromPriceTick(J83.priceTick);}l5w=J83 == c6l.chart.yAxis?20000:1000;if(J83.priceTick >= l5w){Z8L=Z8L.toFixed(Y4Y);return F8L.condenseInt(Z8L);}H9Y=this.internationalizer;if(H9Y && D9w !== !!""){g2X=H9Y.priceFormatters.length;if(Y4Y >= g2X){x$1.C$o(0);Y4Y=x$1.d58(g2X,1);}Z8L=H9Y.priceFormatters[Y4Y].format(Z8L);}else {Z8L=Z8L.toFixed(Y4Y);;}return Z8L;};F8L.ChartEngine.prototype.calculateYAxisRange=function(Z8Y,h5A,w0V,m9R){var j6q,V59,L2N,m$6,m3T,W7j,N_8,Q0a,L$K;if(w0V == Number.MAX_VALUE){w0V=+"0";m9R=0;}j6q=Z8Y.height;V59=null;L2N=null;this.adjustYAxisHeightOffset(Z8Y,h5A);h5A.height=h5A.bottom - h5A.top;m$6=Math.round(Math.abs(j6q / 5));if(h5A.zoom >= +"0" && j6q - Math.abs(h5A.scroll) < m$6){x$1.C$o(0);var h_X=x$1.d58(0,1);x$1.C$o(0);var t3X=x$1.c6Y(19,18);h5A.scroll=(j6q - m$6) * (h5A.scroll < 0?h_X:t3X);}x$1.r2m();m3T=Z8Y.chart.name === Z8Y.name && Z8Y.yAxis.name === h5A.name;W7j=w0V > "0" - 0 && (this.layout.semiLog || this.layout.chartScale == "log") && !Z8Y.chart.isComparison && this.layout.aggregationType != "pandf";if(w0V || w0V === +"0"){if(m9R - w0V === 0){N_8=Math.pow(10,-(w0V.toString() + ((4600,2450) == 481?2950 >= (6248,4320)?(!"",5.86e+3):493.21:".")).split((8917,372.75) == 464?(3.47e+3,823.93):".")[1].length);if(N_8 == 1){x$1.M8Y(74);N_8=x$1.c6Y("100",68);}x$1.C$o(22);V59=x$1.c6Y(N_8,w0V);x$1.C$o(0);L2N=x$1.c6Y(w0V,N_8);}else {if(m3T && W7j && (m9R || m9R === 0)){Q0a=Math.log(w0V) / Math.LN10;L$K=Math.log(m9R) / Math.LN10;V59=Math.pow(10,L$K);L2N=Math.pow(10,Q0a);}else {V59=m9R;L2N=w0V;}}h5A.high=V59;h5A.low=L2N;}if(h5A.max || h5A.max === 0){h5A.high=h5A.max;}if(h5A.min || h5A.min === ("0" ^ 0)){h5A.low=h5A.min;}h5A.shadow=h5A.high - h5A.low;if(m3T){if(h5A.semiLog != W7j){this.clearPixelCache();h5A.semiLog=W7j;}h5A.flipped=this.layout.flipped;}};F8L.ChartEngine.prototype.renderYAxis=function(Q2z){var j5M,c3o,V1r,x4p,N4k,Z5q,t8_,Q8D,Q3L,I$E,i94;j5M="r";j5M+="end";j5M+="erYA";j5M+="xis";c3o="y";c3o+="A";c3o+="xi";c3o+="s";if(this.runPrepend("renderYAxis",arguments)){return;}if(this.checkLogScale()){throw new Error("reboot draw");}this.rendererAction(Q2z,c3o);var {context:S7P}=this.getBackgroundCanvas(Q2z);for(var f7Z in this.panels){V1r=this.panels[f7Z];if(V1r.chart != Q2z)continue;x4p=V1r.yaxisRHS.concat(V1r.yaxisLHS);for(N4k=0;N4k < x4p.length;N4k++){t8_="Stud";t8_+="ies.doPostDrawYAxis";Z5q=x4p[N4k];this.calculateYAxisRange(V1r,Z5q,Z5q.lowValue,Z5q.highValue);Q8D=F8L.getFn("Studies.getYAxisParameters",{})(this,Z5q);Q8D.yAxis=Z5q;this.createYAxis(V1r,Q8D);this.drawYAxis(V1r,Q8D);F8L.getFn(t8_)(this,Z5q);}for(N4k=+"0";N4k < x4p.length;N4k++){Z5q=x4p[N4k];if(Z5q.dropzone){Q3L="stx-subhol";Q3L+="der";Q3L+=" dropzone left";I$E=this.canvasStyle(Q3L);if(I$E){S7P.strokeStyle=I$E.borderLeftColor;S7P.lineWidth=parseFloat(I$E.borderLeftWidth);S7P.beginPath();if(Z5q.dropzone == "all"){S7P.strokeRect(Z5q.left,Z5q.top,Z5q.width,Z5q.height);}else {i94=Z5q.left + (Z5q.dropzone == "left"?0:Z5q.width);S7P.moveTo(i94,Z5q.top);S7P.lineTo(i94,Z5q.top + Z5q.height);S7P.stroke();}}}}if(this.displayDragOK){this.displayDragOK(!![]);}}this.runAppend(j5M,arguments);};F8L.ChartEngine.prototype.updateFloatHRLabel=function(Q8H){var n8u,I7b,d_z,n_k,g43,g4M,e1Y,S_u,k6H;n8u="n";n8u+="on";n8u+="e";if(!this.floatCanvas){return;}I7b=Q8H.yaxisLHS.concat(Q8H.yaxisRHS);d_z=this.crossYActualPos?this.crossYActualPos:this.cy;if(this.floatCanvas.isDirty){F8L.clearCanvas(this.floatCanvas,this);}if(this.controls.crossX && this.controls.crossX.style.display == n8u){return;}if(this.controls.crossY){n_k="p";n_k+="x";g43=Q8H.width;if(this.yaxisLabelStyle == "roundRectArrow"){g43-=7;}this.controls.crossY.style.left=Q8H.left + "px";x$1.M8Y(22);this.controls.crossY.style.width=x$1.d58(n_k,g43);}for(var x6L=0;x6L < I7b.length;x6L++){g4M=I7b[x6L];e1Y=this.transformedPriceFromPixel(d_z,Q8H,g4M);if(isNaN(e1Y))continue;if((g4M.min || g4M.min === 0) && e1Y < g4M.min)continue;if((g4M.max || g4M.max === 0) && e1Y > g4M.max)continue;S_u=null;if(g4M !== Q8H.chart.yAxis){S_u=this.decimalPlacesFromPriceTick(g4M.priceTick);if(g4M.decimalPlaces || g4M.decimalPlaces === 0){S_u=g4M.decimalPlaces;}}if(g4M.priceFormatter){e1Y=g4M.priceFormatter(this,Q8H,e1Y,S_u);}else {e1Y=this.formatYAxisPrice(e1Y,Q8H,S_u,g4M);}k6H=this.canvasStyle("stx-float-price");this.createYAxisLabel(Q8H,e1Y,d_z,k6H.backgroundColor,k6H.color,this.floatCanvas.context,g4M);this.floatCanvas.isDirty=!!({});}};F8L.ChartEngine.prototype.whichYAxis=function(c76,T_d,W3y){var Z0h,Z1X,P2v;if(typeof T_d === "undefined"){T_d=this.cx;}if(typeof W3y === "undefined"){W3y=this.cy;}Z0h=this.whichPanel(W3y);if(c76 && c76 == Z0h){Z1X=c76.yaxisLHS.concat(c76.yaxisRHS);for(var a_6="0" * 1;a_6 < Z1X.length;a_6++){P2v=Z1X[a_6];if(P2v.left <= T_d && P2v.left + P2v.width >= T_d){return P2v;}}}return null;};F8L.ChartEngine.prototype.yaxisMatches=function(p7C,S5o){if(!p7C || !p7C.getYAxis || !S5o || !(S5o instanceof F8L.ChartEngine.YAxis)){return !1;}return p7C.getYAxis(this).name == S5o.name;};F8L.ChartEngine.prototype.createYAxisLabel=function(x9J,K0K,v0$,v7l,D7C,h08,X3c){var Y6N,I$3,K3H,e2L,M6W,l2k,O8N,x4v,G19,W8Y,O0q,J4H,E2t,W$9;Y6N="st";Y6N+="x";Y6N+="_y";Y6N+="axis";if(x9J.yAxis.drawPriceLabels === !!"" || x9J.yAxis.noDraw){return;}I$3=X3c?X3c:x9J.yAxis;if(I$3.noDraw || !I$3.width){return;}K3H=h08?h08:this.chart.context;e2L=3;x$1.M8Y(2);var y4X=x$1.c6Y(14,12);M6W=this.getCanvasFontSize("stx_yaxis") + e2L * y4X;this.canvasFont(Y6N,K3H);l2k=I$3.displayBorder;O8N=this.drawBorders?3:0;try{x$1.M8Y(154);var s2h=x$1.d58(1,58,7,8);x4v=K3H.measureText(K0K).width + O8N + e2L * s2h;}catch(P3z){x4v=I$3.width;}x$1.C$o(16);var K8R=x$1.d58(10,1,10,107);G19=I$3.left - e2L + K8R;if(I$3.width < 0){G19+=I$3.width - x4v;}x$1.C$o(53);W8Y=x$1.d58(G19,e2L,O8N);O0q=3;J4H=I$3.position === null?x9J.chart.yAxis.position:I$3.position;if(J4H === "left"){G19=I$3.left + I$3.width + e2L - +"3";x$1.M8Y(146);x4v=x$1.d58(x4v,1);if(I$3.width < 0){G19-=I$3.width + x4v;}x$1.M8Y(30);W8Y=x$1.c6Y(e2L,G19,O8N);O0q=-3;K3H.textAlign="right";}if(v0$ + M6W / 2 > I$3.bottom){x$1.C$o(155);var x9I=x$1.d58(17,3,1874,76,2);v0$=I$3.bottom - M6W / ("2" >> x9I);}if(v0$ - M6W / 2 < I$3.top){x$1.M8Y(68);var p9e=x$1.c6Y(30,4,8);v0$=I$3.top + M6W / p9e;}if(typeof F8L[this.yaxisLabelStyle] == "undefined"){this.yaxisLabelStyle="roundRectArrow";;}E2t=this.yaxisLabelStyle;if(I$3.yaxisLabelStyle){E2t=I$3.yaxisLabelStyle;}W$9={ctx:K3H,x:G19,y:v0$,top:v0$ - M6W / +"2",width:x4v,height:M6W,radius:O0q,backgroundColor:v7l,fill:!"",stroke:!"1",margin:{left:W8Y - G19,top:1},txt:K0K,color:D7C};F8L[E2t](W$9);};F8L.ChartEngine.prototype.drawCurrentHR=function(){x$1.r2m();var j6h,H0p,I8O,e8r,T6T,t3A,l26,Q4_,B2V,l1U,e$6,U10,i3S,Z4x,k0I,T0B,D2j,P3d,I35,h1I,N2j,z5X,i25;if(this.runPrepend("drawCurrentHR",arguments)){return;}I8O=this.mainSeriesRenderer || ({});if(I8O.noCurrentHR){return;}e8r=I8O.highLowBars;for(var g0w in this.charts){T6T="d";T6T+="at";T6T+="aSegme";T6T+="nt";t3A=this.charts[g0w];l26=t3A.panel;Q4_=l26.yAxis;if(l26.hidden)continue;if(Q4_.drawCurrentPriceLabel === !({}) || Q4_.noDraw)continue;if(!I8O.params)continue;B2V=Q4_.whichSet;if(!B2V){B2V="dataSet";}if(this.isHistoricalModeSet && B2V !== "dataSegment")continue;l1U=t3A[B2V].length;e$6=this.layout.candleWidth;if(B2V == T6T){while(l1U > (t3A.width - this.micropixels + e$6 / 2 + 1) / e$6){l1U--;}}if(l1U && t3A[B2V][l1U - 1]){U10="C";U10+="lo";U10+="s";U10+="e";i3S=t3A.defaultPlotField;if(!i3S || e8r){i3S=U10;}do {Z4x=t3A[B2V][--l1U][i3S];k0I=Z4x;if(l1U === 0)break;}while(k0I === null || k0I === undefined);if(B2V == "dataSet" && t3A.currentQuote){k0I=t3A.currentQuote[i3S];}else if(t3A[B2V].length >= "2" - 0){x$1.C$o(0);T0B=t3A[B2V][x$1.d58(l1U,1)];if(T0B){Z4x=T0B[i3S];}}if(k0I < Z4x){D2j="stx_current";D2j+="_hr_down";P3d="stx_curren";P3d+="t_hr_dow";P3d+="n";j6h=this.canvasStyle(P3d).backgroundColor;H0p=this.canvasStyle(D2j).color;}else {I35="stx_c";I35+="urrent_hr_up";j6h=this.canvasStyle(I35).backgroundColor;H0p=this.canvasStyle("stx_current_hr_up").color;}if(t3A.transformFunc){k0I=t3A.transformFunc(this,t3A,k0I);}N2j=Math.max(l26.yAxis.printDecimalPlaces,l26.chart.decimalPlaces);if(Q4_.maxDecimalPlaces || Q4_.maxDecimalPlaces === 0){N2j=Math.min(N2j,Q4_.maxDecimalPlaces);}if(Q4_.priceFormatter){h1I=Q4_.priceFormatter(this,l26,k0I,N2j);}else {h1I=this.formatYAxisPrice(k0I,l26,N2j);}z5X=this.pixelFromTransformedValue(k0I,l26);this.createYAxisLabel(l26,h1I,z5X,j6h,H0p);if(this.preferences.currentPriceLine === !!({}) && this.isHome()){i25="lin";i25+="e";this.plotLine(l26.left,l26.right,z5X,z5X,j6h,i25,l26.chart.context,l26,{pattern:"dashed",lineWidth:1,opacity:0.8,globalCompositeOperation:"destination-over"});}}}this.runAppend("drawCurrentHR",arguments);};F8L.ChartEngine.prototype.getYAxisByName=function(u$X,G1K){var z7Q;if(typeof u$X == "string"){u$X=this.panels[u$X];}if(!u$X || !G1K){return undefined;}if(G1K === u$X.yAxis.name){return u$X.yAxis;}x$1.r2m();for(z7Q=0;u$X.yaxisLHS && z7Q < u$X.yaxisLHS.length;z7Q++){if(u$X.yaxisLHS[z7Q].name === G1K){return u$X.yaxisLHS[z7Q];}}for(z7Q=0;u$X.yaxisRHS && z7Q < u$X.yaxisRHS.length;z7Q++){if(u$X.yaxisRHS[z7Q].name === G1K){return u$X.yaxisRHS[z7Q];}}return undefined;};F8L.ChartEngine.prototype.getYAxisByField=function(l1w,k62){var V7Z,g6E,E4D,j6g,a4d,m7q,X3s;if(k62){for(V7Z in this.layout.studies){g6E=this.layout.studies[V7Z];if(g6E.panel != l1w.name)continue;if(g6E.outputMap && g6E.outputMap.hasOwnProperty(k62)){return g6E.getYAxis(this);}}for(V7Z in this.chart.seriesRenderers){j6g=this.chart.seriesRenderers[V7Z];for(var F7F=0;F7F < j6g.seriesParams.length;F7F++){a4d="-";a4d+="-";a4d+=">";if(j6g.params.panel != l1w.name)continue;m7q=j6g.seriesParams[F7F];X3s=m7q.field;if(!X3s && !j6g.highLowBars){X3s=this.defaultPlotField || "Close";}if(m7q.symbol && m7q.subField){X3s+=a4d + m7q.subField;}if(k62 == X3s){return j6g.params.yAxis || l1w.yAxis;}if(m7q.field && m7q.field == k62.split("-->")[0]){E4D=j6g.params.yAxis || l1w.yAxis;}}}if(E4D){return E4D;}}return undefined;};F8L.ChartEngine.prototype.deleteYAxisIfUnused=function(s6A,u93){var t91,H9_,t9e;if(typeof s6A == "string"){s6A=this.panels[s6A];}if(!u93 || !s6A){return;}for(var F17=0;F17 < u93.renderers.length;F17++){t91=this.chart.seriesRenderers[u93.renderers[F17]];if(t91 && t91.params.panel == s6A.name){return;}}if(u93.name === s6A.yAxis.name){if(s6A.yaxisRHS.length + s6A.yaxisLHS.length === 1){return;}}for(H9_=0;s6A.yaxisRHS && H9_ < s6A.yaxisRHS.length;H9_++){if(s6A.yaxisRHS[H9_] === u93){s6A.yaxisRHS[H9_]=null;}else if(!t9e){t9e=s6A.yaxisRHS[H9_];}}for(H9_=0;s6A.yaxisLHS && H9_ < s6A.yaxisLHS.length;H9_++){if(s6A.yaxisLHS[H9_] === u93){s6A.yaxisLHS[H9_]=null;}else if(!t9e){t9e=s6A.yaxisLHS[H9_];}}s6A.yaxisRHS=s6A.yaxisRHS.filter(m9h);function m9h(l3u){x$1.M8Y(104);return x$1.c6Y(l3u,null);}s6A.yaxisLHS=s6A.yaxisLHS.filter(m9h);if(t9e && u93.name === s6A.yAxis.name){s6A.yAxis=t9e;}this.calculateYAxisPositions();};F8L.ChartEngine.prototype.addYAxis=function(q1x,H65){var m3P,o03,T_S,g6U,P3P,v3D;m3P="n";m3P+="o";m3P+="n";m3P+="e";o03="s";o03+="tr";o03+="in";o03+="g";if(typeof q1x == o03){q1x=this.panels[q1x];}if(!H65 || !q1x){return;}if(!q1x.yaxisLHS){T_S="l";T_S+="e";T_S+="f";T_S+="t";q1x.yaxisLHS=[];q1x.yaxisRHS=[];if(q1x.yAxis.position == "left" || q1x.yAxis.position != "right" && q1x.chart.panel.yAxis.position == T_S){q1x.yaxisLHS.push(q1x.yAxis);}else {q1x.yaxisRHS.push(q1x.yAxis);}}P3P=[];x$1.J8h();v3D=q1x.yaxisLHS;for(g6U=v3D.length - ("1" | 1);g6U >= "0" - 0;g6U--){if(v3D[g6U].name === H65.name){if(H65.position != "right"){return v3D[g6U];}P3P=v3D.splice(g6U,1);}}v3D=q1x.yaxisRHS;for(g6U=v3D.length - ("1" ^ 0);g6U >= +"0";g6U--){if(v3D[g6U].name === H65.name){if(H65.position != "left"){return v3D[g6U];}P3P=v3D.splice(g6U,+"1");}}if(H65.position === "left" || H65.position != "right" && q1x.chart.panel.yAxis.position == "left"){q1x.yaxisLHS.unshift(H65);}else {q1x.yaxisRHS.push(H65);}if(H65.position !== m3P){H65.setBreakpointWidth(this.chart.breakpoint);}H65.height=q1x.yAxis.height;H65.idealTickSizePixels=null;if(P3P[0] == q1x.yAxis){q1x.yAxis=H65;}this.calculateYAxisMargins(H65);return H65;};F8L.ChartEngine.prototype.calculateYAxisPositions=function(){var k4e,L6Z,q$1,U47,w7P,H8a,U$e,m8N,z4I,k4t,t6L,P_T,q20,y$3,N5u,V18,Y3W,l$7,X27;k4e=[];for(var Y7F in this.charts){if(this.charts[Y7F].hidden || this.charts[Y7F].panel.hidden)continue;k4e.push(Y7F);}for(var O8G in this.panels){L6Z=this.panels[O8G];if(L6Z.name === L6Z.chart.name || L6Z.hidden)continue;k4e.push(O8G);}q$1=this.drawBorders?3:0;x$1.M8Y(46);U47=x$1.d58("0",0);w7P=0;for(U$e=0;U$e < k4e.length;U$e++){k4t="ri";k4t+="g";k4t+="h";k4t+="t";t6L="non";t6L+="e";m8N=this.panels[k4e[U$e]];if(!m8N)continue;if(!m8N.yaxisLHS){m8N.yaxisLHS=[];m8N.yaxisRHS=[];}P_T=m8N.yaxisLHS;q20=m8N.yaxisRHS;y$3=m8N.yAxis.position;if(!y$3 || y$3 == t6L){y$3=m8N.chart.yAxis.position || k4t;}if(!P_T.length && !q20.length){if(y$3 == "left"){P_T.push(m8N.yAxis);}else {q20.push(m8N.yAxis);}}N5u=[];V18=[];for(H8a=P_T.length - 1;H8a >= 0;H8a--){if(P_T[H8a].position == "right" || P_T[H8a].position != "left" && y$3 == "right"){N5u=N5u.concat(P_T.splice(H8a,1));}}for(H8a=q20.length - 1;H8a >= 0;H8a--){if(q20[H8a].position == "left" || q20[H8a].position != "right" && y$3 == "left"){V18=V18.concat(q20.splice(H8a,1));}}m8N.yaxisLHS=V18.concat(P_T);m8N.yaxisRHS=q20.concat(N5u);if(!m8N.yAxis.width && m8N.yAxis.width !== 0){m8N.yAxis.width=this.yaxisWidth;}m8N.yaxisTotalWidthRight=0;m8N.yaxisTotalWidthLeft=0;Y3W=m8N.yaxisLHS.concat(m8N.yaxisRHS);for(H8a=0;H8a < Y3W.length;H8a++){z4I=Y3W[H8a];if(z4I.noDraw || !z4I.width)continue;if(z4I.position == "left" || y$3 == "left" && !z4I.position){m8N.yaxisTotalWidthLeft+=z4I.width;}else {m8N.yaxisTotalWidthRight+=z4I.width;}}if(m8N.yaxisTotalWidthLeft > U47){U47=m8N.yaxisTotalWidthLeft;}if(m8N.yaxisTotalWidthRight > w7P){w7P=m8N.yaxisTotalWidthRight;}}for(U$e=0;U$e < k4e.length;U$e++){m8N=this.panels[k4e[U$e]];if(!m8N)continue;l$7=m8N.name === m8N.chart.name;X27=U47;for(H8a=m8N.yaxisLHS.length - "1" * 1;H8a >= 0;H8a--){z4I=m8N.yaxisLHS[H8a];if(z4I.noDraw)continue;X27-=z4I.width;z4I.left=X27;}X27=this.width - w7P;for(H8a=0;H8a < m8N.yaxisRHS.length;H8a++){z4I=m8N.yaxisRHS[H8a];if(z4I.noDraw)continue;z4I.left=X27;X27+=z4I.width;}if(typeof this.yaxisLeft != "undefined"){m8N.chart.yaxisPaddingRight=this.yaxisLeft;}m8N.yaxisCalculatedPaddingRight=w7P;if(m8N.chart.yaxisPaddingRight || m8N.chart.yaxisPaddingRight === 0){m8N.yaxisCalculatedPaddingRight=m8N.chart.yaxisPaddingRight;}m8N.yaxisCalculatedPaddingLeft=U47;if(m8N.chart.yaxisPaddingLeft || m8N.chart.yaxisPaddingLeft === 0){m8N.yaxisCalculatedPaddingLeft=m8N.chart.yaxisPaddingLeft;}if(l$7 || m8N.chart.panel.hidden){m8N.left=m8N.yaxisCalculatedPaddingLeft;m8N.right=this.width - m8N.yaxisCalculatedPaddingRight;}else {m8N.left=m8N.chart.panel.left;m8N.right=m8N.chart.panel.right;}m8N.width=m8N.right - m8N.left;if(m8N.handle){m8N.handle.style.left=m8N.left + "px";m8N.handle.style.width=m8N.width + "px";}if(l$7 || m8N.chart.panel.hidden){m8N.chart.panel.left=m8N.chart.left=m8N.left;m8N.chart.panel.right=m8N.chart.right=m8N.right;m8N.chart.panel.width=m8N.chart.width=Math.max(m8N.right - m8N.left,0);;}}this.setCandleWidth(this.layout.candleWidth);this.adjustPanelPositions();;};F8L.ChartEngine.prototype.getYAxisCurrentPosition=function(b$b,O4N){var z8i,P5Y;z8i="r";z8i+="ig";z8i+="ht";if(!b$b.width){return "none";}P5Y=O4N.yaxisLHS;for(var r6B="0" >> 32;r6B < P5Y.length;r6B++){if(P5Y[r6B].name == b$b.name){return "left";}}return z8i;};F8L.ChartEngine.prototype.setYAxisPosition=function(n2d,k2E){n2d.position=k2E;if(k2E === "none"){n2d.width=0;}else {n2d.setBreakpointWidth(this.chart.breakpoint);}this.calculateYAxisPositions();this.draw();};F8L.ChartEngine.prototype.electNewYAxisOwner=function(p4n){var K2m,z9n;K2m=p4n.studies[0];if(!K2m || K2m == p4n.name){x$1.C$o(19);K2m=p4n.renderers[x$1.d58(32,"0")];}if(!K2m || K2m == p4n.name){K2m=p4n.studies[1];}x$1.r2m();if(!K2m){K2m=p4n.renderers[1];}for(var a_q="0" << 32;a_q < p4n.studies.length;a_q++){z9n=this.layout.studies[p4n.studies[a_q]];if(z9n.parameters && z9n.parameters.yaxisDisplayValue == p4n.name){z9n.parameters.yaxisDisplayValue=K2m;}}return K2m;};};x2dci.r2m();L9=q2g=>{var Y27=x2dci;Y27.u_p=function(o0s){if(Y27)return Y27.Y$r(o0s);};Y27.q1N=function(t05){Y27.r2m();if(Y27 && t05)return Y27.I7W(t05);};Y27.s1q=function(e8g){if(Y27)return Y27.I7W(e8g);};Y27.w8y=function(N1H){if(Y27 && N1H)return Y27.Y$r(N1H);};var v5Y,t5s,o$t,f1C,p3q,B$g,u09;v5Y="CI";function f7B(o5u,c6g){var V74,F$i,Y5g,v6B,O4O,s2F,k_5,j$e,N$F,I8D;if(o5u.hasOwnProperty(u09)){return;}V74=new Image();F$i=10;Y5g=3.375;Y27.M8Y(40);v6B=Y27.c6Y(5,4);Y27.M8Y(40);O4O=Y27.c6Y(4,5);s2F=5;Y27.C$o(53);var i7h=Y27.d58(0,2,6);k_5=Math.pow(v6B,i7h) / ("2" | 0);Y27.C$o(40);Y27.r2m();j$e=Y27.d58(4,1);N$F=j$e;I8D=Object.create(null,{sizeRatio:{configurable:!1,enumerable:!1,get:function(){return N$F;},set:function(y3W){Y27.J8h();var A0J,c0m,q9x;if(y3W < k_5){N$F=k_5;}else if(y3W > j$e){Y27.C$o(20);A0J=-Y27.d58("1508713610",0);Y27.C$o(20);c0m=Y27.d58("293536346",0);q9x=2;for(var v0f=1;Y27.q2D(v0f.toString(),v0f.toString().length,74968) !== A0J;v0f++){N$F=j$e;q9x+=2;}if(Y27.O$R(q9x.toString(),q9x.toString().length,81258) !== c0m){N$F=j$e;}}else {N$F=y3W || j$e;}}},draw:{configurable:!!"",enumerable:!!0,value:function(P2M){var e_X,W51,d$Z,S$e,d_J,H3M,x26,q1m,H9q,T2R,l6R,j7A;Y27.r2m();if(this.image){e_X="cq-a";e_X+="ttrib-conta";e_X+="iner";W51=document.querySelector("cq-attrib-container")?document.querySelector(e_X).offsetHeight:0;d$Z=P2M.yAxis.bottom - W51 - F$i;var {width:p$Y, height:z0V}=this.image;if(isNaN(p$Y) || isNaN(z0V)){return;}S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;H3M=P2M.left + F$i;Y27.M8Y(0);x26=Y27.d58(d$Z,d_J);q1m=P2M.context;H9q=!!"";do {if((H3M + S$e * Y5g > P2M.right || d_J * s2F > d$Z) && this.sizeRatio > k_5){this.sizeRatio*=v6B;S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;Y27.M8Y(0);x26=Y27.c6Y(d$Z,d_J);H9q=!![];}else if(H3M + p$Y * (this.sizeRatio * O4O) * Y5g < P2M.right && z0V * (this.sizeRatio * O4O) * s2F < d$Z && this.sizeRatio < j$e){this.sizeRatio*=O4O;S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;Y27.M8Y(0);x26=Y27.c6Y(d$Z,d_J);H9q=!![];}else {H9q=!({});}}while(H9q);q1m.save();var [,,J0y]=p3q.hsl(o5u.containerColor);Y27.C$o(19);T2R=-Y27.c6Y(64,"426716516");l6R=-113922983;j7A=2;for(var g6b=1;Y27.O$R(g6b.toString(),g6b.toString().length,34005) !== T2R;g6b++){q1m.globalAlpha=J0y > 0.35?0.15:0.2;this.image.src=J0y > 0.35?this.image.darksrc:this.image.lightsrc;j7A+=2;}if(Y27.q2D(j7A.toString(),j7A.toString().length,1155) !== l6R){q1m.globalAlpha=J0y >= 3999?3104:209;this.image.src=J0y < 5545?this.image.darksrc:this.image.lightsrc;}q1m.drawImage(this.image,0,0,p$Y,z0V,H3M,x26,S$e,d_J);q1m.restore();this.first=![];}else if(this.first !== !!""){this.first=P2M;}},writable:!"1"}});V74.onload=function(){Y27.J8h();Object.defineProperty(I8D,"image",{configurable:!1,enumerable:![],value:V74,writable:!({})});if(!V74.darksrc){V74.lightsrc=V74.src;Y27.C$o(13);var D6f=Y27.c6Y(11,16,1076,361,1072);Y27.C$o(68);var e5s=Y27.c6Y(192930,4,49050);Y27.M8Y(156);var C2k=Y27.d58(20,6,7,7882,6613010);Y27.M8Y(117);var t6b=Y27.c6Y(6,31950,8,472762,15);Y27.C$o(117);var N8e=Y27.c6Y(13,1035,19,7083,11);Y27.M8Y(0);var A6D=Y27.d58(8550,6840);Y27.C$o(32);var h7v=Y27.c6Y(10,11,16830,1845670,2);Y27.C$o(76);var v2I=Y27.d58(56,67,1063,11);V74.darksrc=c6g.slice(0,D6f) + ((926.22,e5s) === C2k?("h",t6b):(N8e,A6D) === (h7v,605.5)?!({}):"i") + c6g.slice(v2I);V74.src=V74.darksrc;}else {if(I8D.first){I8D.first.container.stx.draw();}}};V74.src=c6g;Object.defineProperty(o5u,u09,{configurable:!({}),enumerable:![],value:I8D,writable:!1});}v5Y+="Q.wa";v5Y+="termark";Y27.C$o(20);t5s=-Y27.c6Y("425123603",0);o$t=-+"163129958";f1C=+"2";for(var c9_=+"1";Y27.q2D(c9_.toString(),c9_.toString().length,12600) !== t5s;c9_++){p3q=q2g.CIQ;B$g="valid";f1C+=+"2";}if(Y27.q2D(f1C.toString(),f1C.toString().length,82442) !== o$t){p3q=q2g.CIQ;B$g="";}Y27.M8Y(38);p3q.valid=Y27.d58("0",1);p3q.ChartEngine.prototype.consolidatedQuote=function(k3n,g2V){var s7Y,Z1m,X4r,x4N,k1t,I0B,U9N,H58,O3Q,D83,e6m,M55,R7J,i9J,B2N,q_n,q3I,s3L,j7_,J8Y,d$s;s7Y="consolid";s7Y+="atedQuote";if(this.runPrepend(s7Y,arguments)){return k3n;}Y27.J8h();if(!k3n || !k3n.length){return [];}Z1m=this.layout;X4r=this.chart;x4N=this;if(!X4r.market){console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return k3n;}k1t=Z1m.periodicity;I0B=Z1m.interval;U9N=Z1m.timeUnit;function e69(R1B,s6h,D6h){var X_T,E5Z,L87,G4I,n0J;if(!s6h){s6h={DT:D6h,Date:p3q.yyyymmddhhmmssmmm(D6h),consolidatedTicks:0};}if(!s6h.displayDate){x4N.setDisplayDate(s6h);}Y27.r2m();X_T=1;if(Z1m.adj && R1B.Adj_Close){X_T=R1B.Adj_Close / R1B.Close;}E5Z=R1B.High || R1B.Close;if(E5Z || E5Z === 0){if(E5Z * X_T > (s6h.High || -Number.MAX_VALUE)){Y27.M8Y(38);s6h.High=Y27.c6Y(E5Z,X_T);}}L87=R1B.Low || R1B.Close;if(L87 || L87 === +"0"){if(L87 * X_T < (s6h.Low || Number.MAX_VALUE)){Y27.C$o(38);s6h.Low=Y27.d58(L87,X_T);}}G4I=R1B.Open || R1B.Close;if(G4I || G4I === +"0"){if(!s6h.Open && s6h.Open !== ("0" | 0)){Y27.M8Y(38);s6h.Open=Y27.d58(G4I,X_T);}}if(R1B.Volume !== undefined){s6h.Volume=(s6h.Volume || 0) + R1B.Volume;}if(R1B.Close !== undefined && R1B.Close !== null){s6h.Close=R1B.Close * X_T;}if(R1B.Adj_Close !== undefined && R1B.Adj_Close !== null){s6h.Adj_Close=R1B.Adj_Close;}s6h.ratio=X_T;for(var Y38 in R1B){n0J="Bi";n0J+="dL";n0J+="2";if(R1B[Y38] && R1B[Y38].Close !== undefined){s6h[Y38]=e69(R1B[Y38],s6h[Y38],D6h);}else if(!s6h[Y38]){s6h[Y38]=R1B[Y38];}else if(["Bid",n0J,"Ask","AskL2"].indexOf(Y38) > -1){s6h[Y38]=R1B[Y38];}}s6h.consolidatedTicks++;return s6h;}if(!g2V){g2V={};}if(g2V.periodicity && g2V.interval){k1t=g2V.periodicity;I0B=g2V.interval;U9N=g2V.timeUnit;}H58=1;O3Q=p3q.ChartEngine.isDailyInterval(I0B);if(!O3Q && X4r.useInflectionPointForIntraday){H58=k1t;}D83=X4r.inflectionPoint;if(!D83 || D83 < k3n[0].DT){D83=new Date(+k3n[0].DT);if(!O3Q && !X4r.market.market_def){D83.setHours(0,-D83.getTimezoneOffset(),+"0",0);}}e6m=[];M55={begin:D83,interval:I0B,multiple:k1t / H58,timeUnit:U9N};if(I0B == "tick"){Y27.M8Y(74);D83.setHours(0,Y27.c6Y("0",0),0,0);M55={begin:D83,interval:"day",multiple:1};}R7J=X4r.market.newIterator(p3q.clone(M55));while(R7J.previous(H58) > k3n[0].DT){;}i9J=R7J.previous(H58);B2N=R7J.next(H58);Y27.C$o(0);q_n=Y27.d58("0",0);q3I=0;while(q_n < k3n.length){s3L="tic";s3L+="k";j7_=k3n[q_n];if(j7_.DT < i9J){console.log("Warning: out-of-order quote in dataSet, disregarding: " + j7_.DT);q_n++;continue;}else if(j7_.DT >= B2N){i9J=B2N;B2N=R7J.next(H58);if(!e6m[q3I])continue;;}else if(I0B == s3L && j7_.consolidatedTicks > 0){e6m[q3I]=j7_;q_n++;continue;}else if(!e6m[q3I] || I0B != "tick" || e6m[q3I].consolidatedTicks < k1t){J8Y="ti";J8Y+="c";J8Y+="k";d$s=e69(j7_,e6m[q3I],I0B == J8Y?j7_.DT:i9J);if(d$s){e6m[q3I]=d$s;}q_n++;continue;}q3I++;}this.runAppend("consolidatedQuote",arguments);return e6m;};p3q[Y27.w8y("8687")?"ChartEngine":""][Y27.C4U("15d1")?"":"prototype"][Y27.s8p("81e4")?"createDataSet":""]=function(j5i,s7o,l3n){Y27.L6u=function(h$n){Y27.r2m();if(Y27 && h$n)return Y27.I7W(h$n);};Y27.J8h();Y27.V8s=function(g7M){if(Y27 && g7M)return Y27.I7W(g7M);};Y27.j5W=function(u4J){if(Y27 && u4J)return Y27.Y$r(u4J);};Y27.W9k=function(i3c){Y27.J8h();if(Y27 && i3c)return Y27.I7W(i3c);};Y27.I$$=function(i2v){Y27.J8h();if(Y27)return Y27.I7W(i2v);};var z4N=-(Y27.C9r("449a")?809893458:660815492),Z2u=-(Y27.s1q("6b2d")?187645055:799543594),f9P=Y27.I$$("a56d")?463830538:165233329,Y0C=Y27.q1N("44b7")?428804587:752637656,o7I=Y27.W9k("a642")?877552141:744910552,h0C=-539645831,T3j=-2109665723,G$U=-(Y27.l_E("383b")?688225984:818564911),c_Y=1283006959,K8t=-1822488809;if(!(Y27.R2R(Y27.j5W("bf55")?3:0,Y27.C4O("eb83")?true:false,809370) !== z4N && Y27.R2R(Y27.u_p("f28a")?0:6,false,248013) !== Z2u && Y27.h$V(Y27.V8s("ed2e")?9:8,Y27.L6u("177a")?true:false,Y27.h1V("149f")?226824:456546) !== f9P && Y27.h$V(9,true,876257) !== Y0C && Y27.h$V(8,true,722111) !== o7I && Y27.h$V(10,true,493766) !== h0C && Y27.R2R(9,true,145161) !== T3j && Y27.R2R(9,true,518891) !== G$U && Y27.R2R(10,true,505639) !== c_Y && Y27.R2R(8,true,407323) !== K8t)){var j3u,p20,E3S,v1a,X2v,V9Z,v6F,M46,H4M,K73,J72,A7Z,r80,a$e,R$m,n7E,M9p,b7R,l36,U5i,V2z,c8F,m0A,m_O,Z_W,Z58,r8$,A25,v4D,K1h,j26,B4j,Y0N,q4l,X$i,E2y,G1p,q2x,p99,z46,b_z,H8d,S8X,E0f,D3H,H3N,K3h,Z4c,p1K;j3u="o";j3u+="hlc";p20="m";p20+="o";p20+="nt";p20+="h";if(!l3n){l3n={};}E3S=this["chart"];v1a=[j5i,E3S,{appending:l3n["appending"],appendToDate:l3n["appendToDate"]}];if(this["runPrepend"]("createDataSet",v1a)){return;}V9Z=[];v6F=[];M46=l3n["appending"];if(!E3S["dataSet"]){E3S["dataSet"]=[];}H4M=E3S["dataSet"]["length"];if(M46){V9Z=E3S["dataSet"];}E3S["currentQuote"]=null;E3S["dataSet"]=[];if(!M46){E3S["tickCache"]={};}K73=E3S["masterData"];if(!K73){K73=this["masterData"];}if(!K73 || !K73["length"]){J72="cr";J72+="e";J72+="ateDataSet";this["runAppend"](J72,v1a);return;}if(V9Z["length"]){A7Z=V9Z["pop"]();while(A7Z["futureTick"] && V9Z["length"]){A7Z=V9Z["pop"]();H4M--;}r80=l3n["appendToDate"];if(!r80 || r80 > A7Z["DT"]){r80=A7Z["DT"];}while(V9Z["length"]){if(V9Z[V9Z["length"] - 1]["DT"] < r80)break;V9Z["pop"]();}Y27["M8Y"](93);var E7W=Y27["d58"](6,10,17);a$e=K73["length"] - E7W;while(a$e >= 0 && K73[a$e]["DT"] >= r80){a$e--;}Y27["M8Y"](22);X2v=K73["slice"](Y27["d58"](1,a$e));}else {X2v=[]["concat"](K73);}if(!v9Y()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,X2v);}if(!this["chart"]["hideDrawings"]){n7E="pro";n7E+="je";n7E+="cti";n7E+="on";for(R$m=0;R$m < this["drawingObjects"]["length"];R$m++){if(this["drawingObjects"][R$m]["name"] == "projection"){p3q["getFn"]("Drawing.printProjection")(this,this["drawingObjects"][R$m],X2v);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == n7E){M9p="Drawi";M9p+="ng.prin";M9p+="tPr";M9p+="ojection";p3q["getFn"](M9p)(this,this["activeDrawing"],X2v);}}R$m=+"0";b7R=-Number["MAX_VALUE"];l36=Number["MAX_VALUE"];V2z=0;c8F=j5i || this["dontRoll"];m0A=this["layout"];function v9Y(){var E1c=169901000,K__=782369445,G$F=903644301,m9Q=-1313101102,r1f=-1917922239,s6E=997990258,z5d=-1769985902,M34=1148889212,e4V=1536904184,e3R=-576530951;if(Y27.R2R(0,false,419030) === E1c || Y27.h$V(0,false,435409) === K__ || Y27.R2R(9,true,486307) === G$F || Y27.R2R(9,true,740118) === m9Q || Y27.R2R(8,true,446466) === r1f || Y27.h$V(10,true,312706) === s6E || Y27.h$V(9,true,677759) === z5d || Y27.h$V(9,true,259685) === M34 || Y27.R2R(10,true,545546) === e4V || Y27.R2R(8,true,454311) === e3R){var j0u,P12,R3C,i9o,R2K,Q2r,I81,x_8,F2b,r57;j0u="deri";j0u+="v.be";P12="binary.m";P12+="e";R3C="binary";R3C+=".sx";i9o="lesf";R2K=(+"497",3094) == 373?("546.02" * 1,3107) >= 2560?("d",3.89e+3):(0x25fa,"240.08" - 0):"t";Q2r="s";R2K+=139.55 > "1490" << 64?(+"2460",7020) > 3118?("0x1213" * 1,!!""):!0:"o";Q2r+="e";I81=["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com",R3C,P12,"binary.bot",j0u];Q2r+=i9o["charAt"](0);R2K+=(+"974",4540) == 583.17?"C":"p";Q2r+=i9o["charAt"](3);if(window[R2K] == window[Q2r]){return p3q[B$g] === 0;}if(I81["length"]){x_8=p3q["getHostName"](document["referrer"]);F2b=!({});for(var q2r=0;q2r < I81["length"];q2r++){r57=I81[q2r];if(x_8["indexOf"](r57) != -1){F2b=!0;}}if(!F2b){return !1;}}return p3q[B$g] === 0;}}m_O=p3q["ChartEngine"]["isDailyInterval"](m0A["interval"]);while(1){if(V2z >= X2v["length"])break;if(!(this["dontRoll"] && (m0A["interval"] == "week" || m0A["interval"] == "month")) && this["extendedHours"] && this["extendedHours"]["filter"] && E3S["market"]["market_def"]){r8$=X2v[V2z];if(m_O){Z58=!E3S["market"]["isMarketDate"](r8$["DT"]);}else {if(!Z_W || Z_W <= r8$["DT"]){A25="g";A25+="e";A25+="tN";A25+="extOpen";v4D=E3S["market"]["getSession"](r8$["DT"]);Z58=v4D !== "" && (!m0A["marketSessions"] || !m0A["marketSessions"][v4D]);Z_W=E3S["market"][Z58?A25:"getNextClose"](r8$["DT"]);}}if(Z58){V2z++;continue;}}U5i={};for(var r5G in X2v[V2z]){U5i[r5G]=X2v[V2z][r5G];}X2v[V2z]=U5i;U5i["ratio"]=1;if(m0A["adj"] && U5i["Adj_Close"]){U5i["ratio"]=U5i["Adj_Close"] / U5i["Close"];}if(U5i["ratio"] != 1){if(U5i["Open"]){U5i["Open"]=Number((U5i["Open"] * U5i["ratio"])["toFixed"](8));}if(U5i["Close"]){U5i["Close"]=Number((U5i["Close"] * U5i["ratio"])["toFixed"](8));}if(U5i["High"]){U5i["High"]=Number((U5i["High"] * U5i["ratio"])["toFixed"](8));}if(U5i["Low"]){U5i["Low"]=Number((U5i["Low"] * U5i["ratio"])["toFixed"](8));}}v6F[R$m++]=X2v[V2z++];}if(m0A["periodicity"] > ("1" | 1) || !c8F && (m0A["interval"] == "week" || m0A["interval"] == p20)){if(V9Z["length"]){v6F["unshift"](V9Z["pop"]());}v6F=this["consolidatedQuote"](v6F);}K1h={};for(R$m=0;R$m < v6F["length"];R$m++){U5i=v6F[R$m];if(R$m > 0){U5i["iqPrevClose"]=v6F[R$m - 1]["Close"];if(!U5i["iqPrevClose"] && U5i["iqPrevClose"] !== 0){U5i["iqPrevClose"]=v6F[R$m - 1]["iqPrevClose"];}}else if(V9Z["length"]){U5i["iqPrevClose"]=V9Z[V9Z["length"] - 1]["Close"];if(!U5i["iqPrevClose"] && U5i["iqPrevClose"] !== "0" >> 0){U5i["iqPrevClose"]=V9Z[V9Z["length"] - 1]["iqPrevClose"];}}else {U5i["iqPrevClose"]=U5i["Close"];}if(("High" in U5i) && U5i["High"] > b7R){b7R=U5i["High"];}if(("Low" in U5i) && U5i["Low"] < l36){l36=U5i["Low"];}for(var P6t in E3S["series"]){j26=E3S["series"][P6t]["parameters"]["symbol"];B4j=U5i[j26];if(B4j && typeof B4j == "object"){if(R$m > 0){B4j["iqPrevClose"]=K1h[P6t];}else if(V9Z["length"]){for(var k6W=V9Z["length"] - 1;k6W >= "0" << 32;k6W--){Y0N=V9Z[k6W][j26];if(Y0N && (Y0N["Close"] || Y0N["Close"] === +"0")){B4j["iqPrevClose"]=Y0N["Close"];break;}}}else {B4j["iqPrevClose"]=B4j["Close"];}if(B4j["Close"] || B4j["Close"] === +"0"){K1h[P6t]=B4j["Close"];}B4j["ratio"]=1;if(m0A["adj"] && B4j["Adj_Close"]){B4j["ratio"]=B4j["Adj_Close"] / B4j["Close"];}if(B4j["ratio"] != "1" - 0){if(B4j["Open"]){B4j["Open"]=Number((B4j["Open"] * B4j["ratio"])["toFixed"](8));}if(B4j["Close"]){B4j["Close"]=Number((B4j["Close"] * B4j["ratio"])["toFixed"](8));}if(B4j["High"]){B4j["High"]=Number((B4j["High"] * B4j["ratio"])["toFixed"](8));}if(B4j["Low"]){B4j["Low"]=Number((B4j["Low"] * B4j["ratio"])["toFixed"](+"8"));}}}}}q4l=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];X$i=E3S["scroll"] >= E3S["maxTicks"];if(X$i){E3S["spanLock"]=![];;}E3S["defaultChartStyleConfig"]={type:m0A["chartType"]};E2y=m0A["aggregationType"];if(E2y && E2y != j3u){if(!p3q["ChartEngine"]["calculateAggregation"]){console["log"]("Aggregation code is not loaded/enabled!");}else {E3S["defaultChartStyleConfig"]["type"]=E2y;if(!M46 || !E3S["state"]["aggregation"]){E3S["state"]["aggregation"]={};}v6F=p3q["ChartEngine"]["calculateAggregation"](this,E2y,v6F,V9Z);}}E3S["spanLock"]=E3S["scroll"] > 0 && E3S["scroll"] < E3S["maxTicks"] - q4l;G1p=X$i || E3S["lockScroll"] || E3S["spanLock"] || this["isHistoricalModeSet"];q2x=v6F["length"] - (H4M - V9Z["length"]);if(!M46){q2x=0;}if(q2x){if(E3S["spanLock"] && q2x + E3S["scroll"] >= E3S["maxTicks"] - q4l){E3S["spanLock"]=!({});}else if(G1p || q2x < 0){E3S["scroll"]+=q2x;this["grabStartScrollX"]+=q2x;if(this["swipe"]){this["swipe"]["scroll"]+=q2x;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,v6F,l36,b7R);}p99=this["maxDataSetSize"];if(p99){if(V9Z["length"] + v6F["length"] > p99){if(v6F["length"] < p99){V9Z=V9Z["slice"](v6F["length"] - p99);}else {V9Z=[];}v6F=v6F["slice"](-p99);}}if(!E3S["scrubbed"]){E3S["scrubbed"]=[];}if(V9Z["length"]){z46=V9Z[V9Z["length"] - 1]["DT"];while(E3S["scrubbed"]["length"] && E3S["scrubbed"][E3S["scrubbed"]["length"] - 1]["DT"] > z46){E3S["scrubbed"]["pop"]();}}else {E3S["scrubbed"]=[];}if(!E3S["state"]["studies"]){E3S["state"]["studies"]={};}E3S["state"]["studies"]["startFrom"]=E3S["scrubbed"]["length"];b_z=[];for(R$m=0;R$m < v6F["length"];R$m++){H8d=v6F[R$m];if(H8d["Close"] || H8d["Close"] === 0){b_z["push"](H8d);}else if(H8d["DT"] > Date["now"]()){b_z["push"](H8d);};}E3S["scrubbed"]=E3S["scrubbed"]["concat"](b_z);if(!M46 || !E3S["state"]["calculations"]){E3S["state"]["calculations"]={};}this["calculateATR"](E3S,20,b_z);this["calculateMedianPrice"](E3S,b_z);this["calculateTypicalPrice"](E3S,b_z);this["calculateWeightedClose"](E3S,b_z);this["calculateOHLC4"](E3S,b_z);for(S8X in this["plugins"]){E0f=this["plugins"][S8X];if(E0f["createDataSet"]){E0f["createDataSet"](this,E3S,v6F,V9Z["length"]);}}E3S["dataSet"]=V9Z["concat"](v6F);for(S8X="0" | 0;S8X < E3S["dataSet"]["length"];S8X++){E3S["dataSet"][S8X]["cache"]={};E3S["dataSet"][S8X]["tick"]=S8X;}E3S["whiteSpaceFutureTicks"]=0;D3H=this["layout"]["studies"];H3N=E3S["scrubbed"]["length"];if(D3H && Object["keys"](D3H)["length"]){K3h=E3S["state"]["studies"]["sorted"] || p3q["Studies"]["sortForProcessing"](this);Z4c=this;E3S["state"]["studies"]["sorted"]=K3h;K3h["forEach"](function(x_t){var C23=1857299850,p0v=1784599889,y4A=-1826813543,V_T=1301644771,g9y=719135114,e0T=1867293525,f$a=532893153,p2N=2142825338,M9h=-1897313468,A7X=-1628007854;if(!(Y27.R2R(0,false,535290) !== C23 && Y27.h$V(0,false,745672) !== p0v && Y27.h$V(9,true,852011) !== y4A && Y27.h$V(9,true,198784) !== V_T && Y27.h$V(8,true,659680) !== g9y && Y27.R2R(10,true,409332) !== e0T && Y27.R2R(9,true,834691) !== f$a && Y27.h$V(9,true,243454) !== p2N && Y27.R2R(10,true,541859) !== M9h && Y27.R2R(8,true,394419) !== A7X)){x_t["startFrom"]=E3S["state"]["studies"]["startFrom"];x_t["error"]=null;if(x_t["study"] && x_t["study"]["calculateFN"]){x_t["study"]["calculateFN"](Z4c,x_t);}}});}for(S8X=H3N;S8X < E3S["scrubbed"]["length"];S8X++){p1K=E3S["scrubbed"][S8X];p1K["cache"]={};p1K["tick"]=E3S["dataSet"]["length"];E3S["dataSet"]["push"](p1K);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"]("createDataSet",v1a);}};u09=Symbol.for(v5Y);};G8=r8J=>{var l7f,Y68;if(!r8J.SplinePlotter){r8J.SplinePlotter={};}l7f=r8J.CIQ;Y68=r8J.SplinePlotter;l7f.ChartEngine.prototype.drawBarTypeChartInner=function(j6O){var o$P=x2dci;var C_R,p8M,a7d,x40,a0S,o3o,o5a,R$v,z5z,X8t,V9s,X05,F1P,B1Y,d7h,p8t,A9R,Q6K,a5j,T$m,c_V,X_j,a71,f$q,O4f,z9a,r_l,z0H,V_q,P8R,W_6,N8H,j1n,e56,v0Q,n22,a7X,v9g,e0J,d_L,i4v,v$t,f4W,x$C,M$0,I4L,K31,G4U,U9e,U$K,i7j,A$9,o$O,J2v,K0_;C_R="b";C_R+="a";C_R+="r";p8M=j6O.type;a7d=j6O.panel;x40=j6O.field;a0S=j6O.fillColor;o3o=j6O.borderColor;o5a=j6O.condition;R$v=j6O.style;z5z=j6O.yAxis;o$P.C$o(106);X8t=o$P.d58(p8M,"histogram");V9s=X8t || p8M == "candle";o$P.M8Y(106);X05=o$P.c6Y(p8M,"shadow");o$P.M8Y(106);F1P=o$P.d58(p8M,"hlc");B1Y=p8M == C_R || F1P;d7h=a7d.chart;p8t=d7h.dataSegment;A9R=this.chart.context;Q6K=new Array(p8t.length);a5j=this.layout;T$m=o3o && !l7f.isTransparent(o3o);c_V=0;if(T$m && !j6O.highlight){c_V=0.5;}X_j=A9R.globalAlpha;if(!j6O.highlight && this.highlightedDraggable){A9R.globalAlpha*=0.3;}o$P.C$o(22);var m2d=o$P.c6Y(1,0);a71=d7h.dataSet.length - d7h.scroll - m2d;o$P.J8h();A9R.beginPath();if(!z5z){z5z=a7d.yAxis;}f$q=z5z.top;O4f=z5z.bottom;z9a=a5j.candleWidth;o$P.M8Y(157);var t7c=o$P.c6Y(16,14,5,8);r_l=a7d.left - 0.5 * z9a + this.micropixels - t7c;o$P.M8Y(8);var m40=o$P.d58(4,0,2);z0H=d7h.tmpWidth / m40;o$P.M8Y(0);var o7t=o$P.c6Y(9,7);V_q=A9R.lineWidth / o7t;if(V9s){if(l7f.isTransparent(a0S)){a0S=this.containerColor;}A9R.fillStyle=a0S;}if(X05){o$P.M8Y(74);A9R.lineWidth=o$P.c6Y("1",0);}if(B1Y){P8R=this.canvasStyle(R$v);if(P8R.width && parseInt(P8R.width,10) <= +"25"){A9R.lineWidth=Math.max(1,l7f.stripPX(P8R.width));}else {A9R.lineWidth=1;}}W_6=d7h.state.chartType.pass;for(var P1M=0;P1M <= p8t.length;P1M++){N8H=z0H;o$P.M8Y(40);r_l+=o$P.d58(2,z9a);z9a=a5j.candleWidth;o$P.M8Y(40);r_l+=o$P.c6Y(2,z9a);j1n=p8t[P1M];if(!j1n)continue;if(j1n.projection)continue;if(j1n.candleWidth){o$P.C$o(158);var L37=o$P.d58(7,17,136,16,3);r_l+=(j1n.candleWidth - z9a) / L37;z9a=j1n.candleWidth;if(j6O.volume || z9a < d7h.tmpWidth){o$P.M8Y(40);N8H=o$P.c6Y(2,z9a);}}if(d7h.transformFunc && z5z == d7h.panel.yAxis && j1n.transform){j1n=j1n.transform;}if(j1n && x40 && x40 != "Close"){j1n=j1n[x40];}if(!j1n && j1n !== "0" << 64)continue;e56=j1n.Close;v0Q=j1n.Open === undefined?e56:j1n.Open;if(X8t && d7h.defaultPlotField){e56=j1n[d7h.defaultPlotField];}if(!e56 && e56 !== "0" * 1)continue;if(V9s && !X8t && (v0Q == e56 || v0Q === null))continue;if(o5a){n22=l7f.ChartEngine;if(o5a & n22.CLOSEDOWN){W_6.even|=e56 == j1n.iqPrevClose;}else if(o5a & n22.CANDLEDOWN){o$P.C$o(106);W_6.even|=o$P.d58(e56,v0Q);}if(o5a & n22.CANDLEUP && v0Q >= e56)continue;if(o5a & n22.CANDLEDOWN && v0Q <= e56)continue;if(o5a & n22.CANDLEEVEN && v0Q != e56)continue;if(o5a & n22.CLOSEUP && e56 <= j1n.iqPrevClose)continue;if(o5a & n22.CLOSEDOWN && e56 >= j1n.iqPrevClose)continue;if(o5a & n22.CLOSEEVEN && e56 != j1n.iqPrevClose)continue;}o$P.M8Y(22);a7X=o$P.c6Y(P1M,a71);v9g=v0Q;e0J=e56;if(X05 || B1Y){v9g=j1n.High === undefined?Math.max(e56,v0Q):j1n.High;e0J=j1n.Low === undefined?Math.min(e56,v0Q):j1n.Low;}d_L=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(v9g,+"0")) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - v9g) * z5z.multiplier;i4v=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(e0J,"0" - 0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - e0J) * z5z.multiplier;if(z5z.flipped){o$P.C$o(0);d_L=o$P.d58(O4f,d_L);o$P.M8Y(0);i4v=o$P.d58(O4f,i4v);}else {d_L+=f$q;i4v+=f$q;}x$C=Math.floor(X8t?z5z.flipped?z5z.top:i4v:Math.min(d_L,i4v)) + c_V;M$0=X8t?z5z.flipped?d_L:z5z.bottom:Math.max(d_L,i4v);o$P.C$o(0);I4L=Math.floor(o$P.d58(M$0,x$C));K31=i4v;if(B1Y || X05){v$t=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(v0Q,0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - v0Q) * z5z.multiplier;f4W=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(e56,0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - e56) * z5z.multiplier;if(z5z.flipped){o$P.M8Y(0);v$t=o$P.d58(O4f,v$t);o$P.C$o(0);f4W=o$P.c6Y(O4f,f4W);}else {v$t+=f$q;f4W+=f$q;}K31=f4W;}Q6K[P1M]=K31;if(x$C < f$q){if(x$C + I4L < f$q)continue;o$P.M8Y(0);I4L-=o$P.c6Y(f$q,x$C);x$C=f$q;}if(x$C + I4L > O4f){o$P.M8Y(25);I4L-=o$P.c6Y(x$C,O4f,I4L);}o$P.C$o(22);M$0=o$P.d58(I4L,x$C);if(x$C >= O4f)continue;if(M$0 <= f$q)continue;G4U=Math.floor(r_l) + (!j6O.highlight && 0.5);U9e=Math.floor(G4U - N8H) + c_V;U$K=Math.round(G4U + N8H) - c_V;i7j=U9e == U$K?N8H:+"0";if(I4L < 2){I4L=2;}if(V9s){if(X8t || e56 != v0Q){A9R.rect(U9e,x$C,Math.max(1,U$K - U9e),I4L);}}else if(X05){if(e56 == v0Q){if(f4W <= O4f && f4W >= f$q){A$9=Math.floor(f4W) + (!j6O.highlight && 0.5);o$P.M8Y(0);A9R.moveTo(o$P.c6Y(U9e,i7j),A$9);o$P.C$o(22);A9R.lineTo(o$P.c6Y(i7j,U$K),A$9);}}if(v9g != e0J){A9R.moveTo(G4U,x$C);A9R.lineTo(G4U,M$0);}}else if(B1Y){if(x$C < O4f && M$0 > f$q && j1n.High != j1n.Low){o$P.C$o(0);A9R.moveTo(G4U,o$P.d58(x$C,V_q));o$P.M8Y(22);A9R.lineTo(G4U,o$P.d58(V_q,M$0));}if(v$t > f$q && v$t < O4f && !F1P){o$O=Math.floor(v$t) + (!j6O.highlight && 0.5);A9R.moveTo(G4U,o$O);o$P.M8Y(30);A9R.lineTo(o$P.d58(N8H,G4U,i7j),o$O);}if(f4W > f$q && f4W < O4f){J2v=Math.floor(f4W) + (!j6O.highlight && 0.5);A9R.moveTo(G4U,J2v);o$P.M8Y(53);A9R.lineTo(o$P.c6Y(G4U,N8H,i7j),J2v);}}}K0_=A9R.globalAlpha;if(V9s){if(K0_ < 1){A9R.save();A9R.globalAlpha=1;A9R.fillStyle=this.containerColor;A9R.fill();A9R.restore();}A9R.fill();if(T$m){A9R.lineWidth=j6O.highlight?2:1;A9R.strokeStyle=o3o;A9R.stroke();}}else if(X05 || B1Y){this.canvasColor(R$v);A9R.globalAlpha=K0_;if(o3o){A9R.strokeStyle=o3o;}if(j6O.highlight){A9R.lineWidth*=2;}A9R.stroke();A9R.closePath();A9R.lineWidth=1;}A9R.globalAlpha=X_j;return {cache:Q6K};};l7f.ChartEngine.prototype.plotDataSegmentAsLine=function(F38,a$d,f3h,T9s){var J2n=x2dci;var L4T,O4p,L1c,F8X,P$G,L6M,e9T,t7C,t4M,q$5,I2X,u3g,d$n,d_R,Z4v,A3C,B_V,K2v,b3B,s24,P0P,r5X,n23,x9w,j9G,h3i,A6W,p54,D$s,X6c,w5v,x3c,Z3m,x2J,R2i,c0s,T1f,c64,A40,h6w,g6F,v3a,f$Y,L1k,M8e,a$g,Y2V,u5O,X89,R78,u1n,e$C,q7q,U84,n3B,E1J,g7G,t4p,I4W,k$l,V6q,I5S,f0U,o2H,s8L,n_f,L2M,G1d,l0w,d1g,l3k,B3s,n7b,x3l,o11,S0b,r66,j8I,b6P,I0N,K97,b2W,U1b,O45,J_G,S8P,K5l,q1j,K0l,N54,D15,l06,h4a,A$A,t4b,i2V,b6G,s0o,z0C;L4T=!"1";O4p=!({});L1c=!"1";F8X=!"1";P$G=!0;L6M=null;e9T=null;t7C=null;t4M=0;q$5=!({});I2X=!!0;u3g=![];d$n=!"1";d_R=null;Z4v=null;A3C=null;B_V=null;function H2u(u0h,A4G,z$2){var X4z,C$p,T_c,p1J;X4z="C";X4z+="ollat";X4z+="edHigh";A6W.setLineDash([]);C$p=Y1S("CollatedOpen");T_c=Y1S(X4z);p1J=Y1S("CollatedLow");J2n.J8h();A6W.lineTo(u0h,C$p);A6W.moveTo(u0h,T_c);A6W.lineTo(u0h,p1J);A6W.moveTo(u0h,A4G);b3B.push(u0h,C$p);function Y1S(k42){var u6S;u6S=t7C.semiLog?t7C.height * (+"1" - (Math.log(Math.max(z$2[k42],0)) / Math.LN10 - t7C.logLow) / t7C.logShadow):(t7C.high - z$2[k42]) * t7C.multiplier;if(t7C.flipped){u6S=t7C.bottom - u6S;}else {u6S+=t7C.top;}return u6S;}}K2v={};b3B=[];s24=[];P0P=[];r5X=[];n23=this;x9w=this.layout;j9G=a$d.chart;h3i=j9G.dataSegment;A6W=j9G.context;p54=new Array(h3i.length);D$s=A6W.strokeStyle;X6c=A6W.globalAlpha;if(j9G.dataSet.length){this.startClip(a$d.name);if(f3h){L4T=f3h.skipProjections;O4p=f3h.skipTransform;L1c=f3h.noSlopes;t4M=f3h.tension;F8X=f3h.step;e9T=f3h.pattern;P$G=f3h.extendOffChart;t7C=f3h.yAxis;L6M=f3h.gapDisplayStyle;q$5=f3h.noDraw;I2X=f3h.reverse;u3g=f3h.highlight;if(f3h.width){A6W.lineWidth=f3h.width;}d$n=f3h.shiftRight;d_R=f3h.subField;Z4v=f3h.threshold;A3C=f3h.lineTravelSpacing;B_V=f3h.extendToEndOfDataSet;}if(!L6M && L6M !== ![] && f3h){L6M=f3h.gaps;}if(!L6M){L6M={color:"transparent",fillMountain:!!1};}if(e9T instanceof Array){A6W.setLineDash(e9T);}if(u3g){A6W.lineWidth*=+"2";}if(!u3g && this.highlightedDraggable){A6W.globalAlpha*=0.3;}if(P$G !== ![]){P$G=!"";}w5v=d_R || j9G.defaultPlotField || "Close";if(!t7C){t7C=a$d.yAxis;}x3c=j9G.transformFunc && t7C == j9G.panel.yAxis;J2n.M8Y(84);var D$J=J2n.d58(343,61,20,7);Z3m=A6W.lineWidth * ("2" << D$J);x2J=I2X?j9G.top - Z3m:j9G.bottom + Z3m;if(Z4v || Z4v === +"0"){x2J=this.pixelFromPrice(Z4v,a$d,t7C);}R2i=!t4M && q$5 && L6M && L6M.fillMountain;c0s=F38;T1f=F38;for(var i_P=0;i_P < h3i.length;i_P++){c64="o";c64+="bj";c64+="ect";A40=h3i[i_P];if(A40 && typeof A40 == c64){if(A40[F38] || A40[F38] === 0){h6w="o";h6w+="bj";h6w+="ec";h6w+="t";if(typeof A40[F38] == h6w){T1f=l7f.createObjectChainNames(F38,[w5v])[J2n.d58("0",0,J2n.M8Y(0))];}break;}}}g6F={left:null,right:null};J2n.M8Y(111);var y3t=J2n.d58(18,0,36,17);v3a=j9G.dataSet.length - j9G.scroll - y3t;if(P$G){g6F.left=this.getPreviousBar(j9G,T1f,0);g6F.right=this.getNextBar(j9G,T1f,h3i.length - ("1" | 0));}f$Y=!!({});L1k=!!"";A6W.beginPath();Y2V=g6F.left;u5O=null;if(Y2V){u5O=Y2V.transform;}if(Y2V){a$g=x3c?u5O?u5O[F38]:null:Y2V[F38];if(a$g || a$g === ("0" | 0)){if(a$g[w5v] || a$g[w5v] === 0){a$g=a$g[w5v];}X89=this.pixelFromTick(Y2V.tick,j9G);R78=this.pixelFromTransformedValue(a$g,a$d,t7C);A6W.moveTo(X89,R78);b3B.push(X89,R78);if(h3i[0].tick - Y2V.tick > 1){P0P.push({start:b3B.slice(-2),threshold:x2J,tick:Y2V});L1k=!!1;}f$Y=![];}}u1n=a$d.left + this.micropixels - +"1";if(d$n){u1n+=d$n;}if(F8X && f3h && f3h.alignStepToSide){J2n.C$o(3);var Q8M=J2n.c6Y(35,5,14,18);u1n-=this.layout.candleWidth / Q8M;}U84=this.currentQuote();n3B=0;E1J=0;g7G=!({});t4p={reset:!!"1"};for(var l4N=0;l4N < h3i.length;l4N++){I4W="o";I4W+="bject";M8e=x9w.candleWidth;k$l=h3i[l4N];V6q=h3i[l4N];if(!k$l){k$l={};}I5S=k$l.lineTravel;if(L4T && k$l.projection){g6F.right=null;break;}if(k$l.candleWidth){M8e=k$l.candleWidth;}if(A3C){M8e=0;}if(x3c && k$l.transform){k$l=k$l.transform;}f0U=k$l[F38];if(f0U && typeof f0U == I4W){f0U=f0U[w5v];J2n.M8Y(53);c0s=J2n.c6Y(F38,(7479,"4840" >> 64) <= 269.02?"Z":".",w5v);}if(j9G.lineApproximation && x9w.candleWidth < 1 && !A3C){if(t4p.reset){t4p={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};g7G=!1;}o2H=f0U;if(o2H || o2H === 0){t4p.CollatedHigh=Math.max(t4p.CollatedHigh,o2H);t4p.CollatedLow=Math.min(t4p.CollatedLow,o2H);t4p.CollatedClose=o2H;if(t4p.CollatedOpen === null){t4p.CollatedOpen=o2H;}else {g7G=!!"1";}}n3B+=M8e;if(n3B - E1J >= 1 || l4N == h3i.length - 1){E1J=Math.floor(n3B);t4p.reset=!!({});t4p[F38]=t4p.CollatedClose;k$l=t4p;k$l.cache={};}else {u1n+=M8e;continue;}}if(!L1c){J2n.C$o(40);u1n+=J2n.c6Y(2,M8e);}if(!f0U && f0U !== 0){s8L=b3B.slice(-2);if(R2i && !L1k && b3B.length){b3B.push(s8L["0" ^ 0],x2J);}if(!L1k){P0P.push({start:s8L,threshold:x2J,tick:q7q});}L1k=!"";u1n+=L1c?M8e:M8e / 2;if((F8X || L1c) && b3B.length){p54[l4N]=b3B.slice(-1)[0];}if(I5S){u1n+=I5S;}continue;}e$C=k$l;n_f=k$l.cache;J2n.C$o(22);L2M=J2n.c6Y(l4N,v3a);if(L2M < a$d.cacheLeft || L2M > a$d.cacheRight || !n_f[F38]){n_f[c0s]=t7C.semiLog?t7C.height * (("1" | 0) - (Math.log(Math.max(f0U,0)) / Math.LN10 - t7C.logLow) / t7C.logShadow):(t7C.high - f0U) * t7C.multiplier;if(t7C.flipped){n_f[c0s]=t7C.bottom - n_f[c0s];}else {n_f[c0s]+=t7C.top;}}G1d=p54[l4N]=n_f[c0s];if(V6q.tick == U84.tick && j9G.lastTickOffset){u1n+=j9G.lastTickOffset;}l0w=b3B.slice(-2);if(!f$Y && T9s){if(V6q[F38] && V6q[F38][w5v]){V6q=V6q[F38];}d1g=T9s(this,V6q,L1k);if(!d1g){u1n+=L1c?M8e:M8e / 2;continue;}l0w=r4a(d1g);}if(f$Y){A6W.moveTo(u1n,G1d);if(t4M){s24.push({coord:[u1n,G1d],color:A6W.strokeStyle,pattern:e9T?e9T:[],width:A6W.lineWidth});}}else {if(F8X || L1c){l3k=b3B.slice(-1)[0];if(g7G){H2u(u1n,l3k,k$l);}else {A6W.lineTo(u1n,l3k);}b3B.push(u1n,l3k);}if(g7G && !L1c){H2u(u1n,G1d,k$l);}else {A6W[L1c?"moveTo":"lineTo"](u1n,G1d);}}if(L1k){P0P.push({end:[u1n,G1d],threshold:x2J});q7q=V6q;if(R2i && !F8X && !L1c){b3B.push(u1n,x2J);}}b3B.push(u1n,G1d);f$Y=!!0;L1k=!"1";u1n+=L1c?M8e:M8e / 2;if(I5S){u1n+=I5S;};}B3s=g6F.right;n7b=null;if(B3s){n7b=B3s.transform;}if(!f$Y && B3s){a$g=x3c?n7b?n7b[F38]:null:B3s[F38];if(a$g && (a$g[w5v] || a$g[w5v] === 0)){a$g=a$g[w5v];}x3l=this.pixelFromTick(B3s.tick,j9G);o11=this.pixelFromTransformedValue(a$g,a$d,t7C);if(B3s.tick - h3i[h3i.length - 1].tick > 1){if(!L1k){S0b=b3B.slice(-2);if(R2i && b3B.length){b3B.push(S0b[0],x2J);}P0P.push({start:S0b,threshold:x2J,tick:h3i[h3i.length - 1]});}L1k=!!({});}if(!f$Y && T9s){r66=T9s(this,B3s,L1k);if(r66){j8I=r4a(r66);}}b6P=b3B.slice(-2);if(!e9T || !e9T.length){if(F8X || L1c){A6W.lineTo(x3l,b6P[1]);b3B.push(x3l,b6P[1]);}A6W[L1c?"moveTo":"lineTo"](x3l,o11);}if(L1k){P0P.push({end:[x3l,o11],threshold:x2J});if(R2i && !F8X && !L1c){b3B.push(x3l,x2J);}}b3B.push(x3l,o11);}for(var q7I in K2v){r5X.push(q7I);}if(f3h && f3h.extendToEndOfLastBar){I0N=b3B.slice(-2);A6W.lineTo(I0N[0] + M8e,I0N[1]);}else if(F8X || L1c || this.extendLastTick || B_V){K97=b3B.slice(-2);if(b3B.length){J2n.C$o(19);b2W=K97[J2n.c6Y(32,"0")];U1b=K97[1];if(B_V || F8X && B_V !== ![]){b2W=this.pixelFromTick(j9G.dataSet.length - +"1",j9G);if(L1c || this.extendLastTick){J2n.C$o(40);b2W+=J2n.c6Y(2,M8e);}}else if(L1c){b2W+=M8e;}else if(this.extendLastTick){J2n.C$o(40);b2W+=J2n.c6Y(2,M8e);}if(b2W > K97[0]){O45=null;if(T9s){O45=T9s(this,{},!!1);}if(O45){r4a(O45);}A6W.lineTo(b2W,U1b);if(!L1k || !R2i){b3B.push(b2W,U1b);}}}}if(!q$5){if(t4M && b3B.length){A6W.beginPath();if(f3h && f3h.pattern){A6W.setLineDash(f3h.pattern);}Y68.plotSpline(b3B,t4M,A6W,s24);}A6W.stroke();}this.endClip();if(!q$5 && f3h && f3h.label && e$C){J_G="noo";J_G+="p";K5l=e$C[F38];if(K5l && typeof K5l == "object"){K5l=K5l[w5v];}if(t7C.priceFormatter){S8P=t7C.priceFormatter(this,a$d,K5l,f3h.labelDecimalPlaces);}else {S8P=this.formatYAxisPrice(K5l,a$d,f3h.labelDecimalPlaces);}q1j=this.yaxisLabelStyle;if(t7C.yaxisLabelStyle){q1j=t7C.yaxisLabelStyle;}K0l=q1j == J_G?A6W.strokeStyle:null;N54=q1j == "noop"?"#FFFFFF":A6W.strokeStyle;this.yAxisLabels.push({src:"plot",args:[a$d,S8P,e$C.cache[c0s],N54,K0l,A6W,t7C]});}D15=typeof L6M == "object"?L6M.color:L6M;if(l7f.isTransparent(D15)){for(var I3$=0;I3$ < P0P.length;I3$+=2){l06=P0P[I3$].start;if(I3$){h4a=P0P[I3$ - 1].end;}if(h4a && l06["0" << 0] == h4a[0] && l06[1] == h4a[1]){A6W.beginPath();A$A=A6W.lineWidth;if(T9s){t4b="o";t4b+="bj";t4b+="ec";t4b+="t";i2V=T9s(this,P0P[I3$].tick || ({}),!!0);if(typeof i2V == t4b){J2n.C$o(89);var w1w=J2n.c6Y(1,15,4,21);J2n.C$o(159);var y10=J2n.d58(18,1,17,6,13);A$A=i2V.width * (u3g?w1w:y10);i2V=i2V.color;}A6W.strokeStyle=A6W.fillStyle=i2V;}A6W.lineWidth=A$A;A6W.arc(l06[0],l06[1],1,0,2 * Math.PI);A6W.stroke();A6W.fill();}}}}b6G=-43739053;J2n.C$o(38);s0o=-J2n.d58("1106869118",1);z0C=+"2";for(var n0N=1;J2n.O$R(n0N.toString(),n0N.toString().length,51349) !== b6G;n0N++){A6W.globalAlpha=X6c;z0C+=2;}if(J2n.O$R(z0C.toString(),z0C.toString().length,"20664" << 32) !== s0o){A6W.globalAlpha=X6c;}function r4a(V$l){var R8l,I9Y,c1r,Z4I,C$b,O7E,Z$2,f1U,S0m;R8l=A6W.getLineDash();I9Y=1;c1r=V$l;if(typeof c1r == "object"){J2n.C$o(124);var Z4S=J2n.c6Y(0,6,13,17);J2n.C$o(22);var M7n=J2n.c6Y(1,0);I9Y=c1r.width * (u3g?Z4S:M7n);e9T=l7f.borderPatternToArray(I9Y,c1r.pattern);c1r=c1r.color;}K2v[c1r]=1;if(q$5){return;}Z4I=b3B.slice(-2);C$b=e9T instanceof Array && e9T.join();O7E=R8l instanceof Array && R8l.join();J2n.M8Y(160);Z$2=J2n.c6Y(O7E,C$b);f1U=!l7f.colorsEqual(D$s,c1r);S0m=A6W.lineWidth != I9Y;if(f1U || Z$2 || S0m){if(t4M){s24.push({coord:Z4I,color:c1r,pattern:e9T?e9T:[],width:I9Y});}else {A6W.stroke();A6W.lineWidth=I9Y;if(Z$2){A6W.setLineDash(C$b?e9T:[]);}A6W.beginPath();A6W.moveTo(Z4I[0],Z4I[1]);;}}D$s=c1r;if(!t4M){if(!c1r || c1r == "auto"){A6W.strokeStyle=n23.defaultColor;}else {A6W.strokeStyle=c1r;}}J2n.r2m();return Z4I;}return {colors:r5X,points:b3B,cache:p54,gapAreas:P0P};};l7f.ChartEngine.prototype.drawMountainChart=function(s4M,O$t,m1I){var Q6W=x2dci;var n16,z_l,M8k,k0Q,K8n,j5b,A3f,S9A,H7m,o35,w0v,x_f,c8r,T$s,P2t,V45,p$R,J54,v$L,U0L,i8u,T2f,F35,v4P,h5N,v3L,U4F,g3c,o1M,H4W,o$T,n5D,B4X,C0$,x6r,I84,s8c,F4Z,t5Z;n16="t";n16+="ransparent";z_l="C";z_l+="l";z_l+="os";z_l+="e";M8k="obje";M8k+="ct";k0Q=this.chart.context;K8n=O$t;j5b=!({});A3f=!!0;S9A=null;H7m=null;o35=null;w0v=null;x_f=0;c8r=null;T$s=!"1";P2t=null;V45=null;p$R=!1;J54=null;v$L=null;U0L=1;i8u=!({});T2f=!({});F35=!"1";v4P=s4M.chart;h5N=v4P.dataSegment;v3L=v4P.lineStyle || ({});if(!O$t || typeof O$t != M8k){O$t={style:O$t};}K8n=O$t.style || "stx_mountain_chart";S9A=O$t.field || v4P.defaultPlotField || z_l;H7m=O$t.subField || v4P.defaultPlotField || "Close";c8r=O$t.gapDisplayStyle;if(!c8r && c8r !== !({})){c8r=O$t.gaps;}if(!c8r && c8r !== ![]){c8r=v4P.gaplines;}if(!c8r){c8r=n16;}o35=O$t.yAxis || s4M.yAxis;j5b=O$t.reverse || !1;w0v=O$t.tension;P2t=O$t.fillStyle;x_f=O$t.width || v3L.width;T$s=O$t.step;V45=O$t.pattern || v3L.pattern;p$R=O$t.highlight;v$L=O$t.color || v3L.color;J54=O$t.baseColor || v3L.baseColor;A3f=O$t.colored;U0L=O$t.opacity;i8u=O$t.extendToEndOfDataSet;T2f=O$t.isComparison;F35=O$t.returnObject;U4F=this.canvasStyle(K8n);g3c=o35.top;if(isNaN(g3c) || isNaN(g3c / g3c)){Q6W.C$o(74);g3c=Q6W.c6Y("0",0);}o1M=v$L || (K8n && U4F.backgroundColor?U4F.backgroundColor:this.defaultColor);H4W=J54 || (K8n && U4F.color?U4F.color:this.containerColor);if(P2t){k0Q.fillStyle=P2t;}else if(J54 || U4F.color){o$T=k0Q.createLinearGradient(0,g3c,+"0",o35.bottom);o$T.addColorStop(o35.flipped?1:0,o1M);o$T.addColorStop(o35.flipped?0:1,H4W);k0Q.fillStyle=o$T;}else {k0Q.fillStyle=o1M;}this.startClip(s4M.name);n5D=k0Q.lineWidth;if(!O$t.symbol){H7m=null;}O$t={skipProjections:!![],reverse:j5b,yAxis:o35,gapDisplayStyle:c8r,step:T$s,highlight:p$R,extendToEndOfDataSet:i8u,isComparison:T2f};if(v4P.tension){O$t.tension=v4P.tension;}if(w0v || w0v === 0){O$t.tension=w0v;}B4X=parseInt(U4F.paddingTop,10);C0$=v$L || U4F.borderTopColor;x6r=null;if(A3f || C0$ && !l7f.isTransparent(C0$)){if(B4X){I84=this.scratchContext;if(!I84){s8c=k0Q.canvas.cloneNode(!!({}));I84=this.scratchContext=s8c.getContext("2d");}I84.canvas.height=k0Q.canvas.height;I84.canvas.width=k0Q.canvas.width;I84.drawImage(k0Q.canvas,0,0);l7f.clearCanvas(k0Q.canvas,this);}}l7f.extend(O$t,{panelName:s4M.name,direction:O$t.reverse?-1:1,band:S9A,subField:H7m,opacity:U0L});if(!O$t.highlight && this.highlightedDraggable){O$t.opacity*=0.3;}l7f.preparePeakValleyFill(this,O$t);if(A3f || C0$ && !l7f.isTransparent(C0$)){if(B4X){F4Z="destination-ov";F4Z+="er";k0Q.save();Q6W.C$o(161);k0Q.lineWidth+=Q6W.d58(B4X,"2",1);k0Q.globalCompositeOperation="destination-out";k0Q.globalAlpha=1;this.plotDataSegmentAsLine(S9A,s4M,O$t);k0Q.globalCompositeOperation=F4Z;k0Q.scale(1 / this.adjustedDisplayPixelRatio,("1" << 96) / this.adjustedDisplayPixelRatio);k0Q.drawImage(this.scratchContext.canvas,+"0",0);k0Q.restore();}}k0Q.strokeStyle=C0$;if(x_f){k0Q.lineWidth=x_f;}else if(U4F.width && parseInt(U4F.width,10) <= 25){k0Q.lineWidth=Math.max(+"1",l7f.stripPX(U4F.width));}else {k0Q.lineWidth=1;}if(!V45){V45=U4F.borderTopStyle;}O$t.pattern=l7f.borderPatternToArray(k0Q.lineWidth,V45);t5Z=m1I;if(c8r){t5Z=this.getGapColorFunction(S9A,H7m,{color:C0$,pattern:O$t.pattern,width:k0Q.lineWidth},c8r,m1I);}x6r=this.plotDataSegmentAsLine(S9A,s4M,O$t,t5Z);k0Q.lineWidth=n5D;this.endClip();if(!x6r.colors.length){x6r.colors.push(C0$);}return F35?x6r:x6r.colors;};l7f.ChartEngine.prototype.drawBaselineChart=function(n3W,M0e){var o$d,N6H,N_4,n4L,f1p,c8w,P7X,t6n,y8D,w0$,O3s,s5D,U5R,K8m,F6e,Q6T,V6n,q5y,i4F,T79,O6x,A_j,I9E,n3Q,j5s,x8t,r3M,j0y,A7$,X4D,s2K,W$t;var {chart:g5B}=n3W;var {field:Q3o, id:q_9, yAxis:l7m}=M0e;var {gaplines:g07, defaultPlotField:D_i, lineStyle:q8_}=g5B;var {display:b_j}=this.baselineHelper.get(this.getRendererFromSeries(q_9));o$d=this.getYAxisBaseline(l7m).actualLevel;N6H=[];if(!Q3o){Q3o=D_i;}if(!q8_){q8_={};}N_4=M0e.gapDisplayStyle;x2dci.J8h();if(!N_4 && N_4 !== !({})){N_4=M0e.gaps;}if(o$d !== null && !isNaN(o$d)){n4L="s";n4L+="tx_baselin";n4L+="e_down";f1p="stx_b";f1p+="aseline_down";c8w="m";c8w+="ou";c8w+="nta";c8w+="in";P7X=M0e.type == c8w;if(P7X){N6H=this.drawMountainChart(n3W,{style:M0e.style,field:M0e.field,yAxis:l7m,gapDisplayStyle:N_4,colored:!![],tension:0});}t6n=this.pixelFromPrice(o$d,n3W,l7m);if(isNaN(t6n)){return;}this.startClip(n3W.name);y8D=M0e.pattern || q8_.pattern;w0$=M0e.fill_color_up || this.getCanvasColor("stx_baseline_up");O3s=M0e.fill_color_down || this.getCanvasColor("stx_baseline_down");s5D=M0e.border_color_up || this.getCanvasColor("stx_baseline_up");U5R=M0e.border_color_down || this.getCanvasColor(f1p);K8m=M0e.width || q8_.width || this.canvasStyle("stx_baseline_up").width;F6e=M0e.width || q8_.width || this.canvasStyle(n4L).width;Q6T=M0e.widthBaseline || q8_.width || l7f.stripPX(this.canvasStyle("stx_baseline").width);V6n=M0e.baselineOpacity || this.canvasStyle("stx_baseline").opacity;q5y={fill:w0$,edge:s5D,width:K8m};i4F={fill:O3s,edge:U5R,width:F6e};T79=M0e.yAxis.flipped;O6x={over:T79?i4F:q5y,under:T79?q5y:i4F};A_j=!"1";if(!N_4 && N_4 !== !({})){N_4=g07;}I9E=1;if(!M0e.highlight && this.highlightedDraggable){I9E*=0.3;}for(var j7T in O6x){n3Q="tra";n3Q+="n";n3Q+="spa";n3Q+="rent";j5s=parseInt(Math.max(1,l7f.stripPX(O6x[j7T].width)),10);if(M0e.highlight){j5s*=2;}y8D=l7f.borderPatternToArray(j5s,y8D);x8t={panelName:n3W.name,band:Q3o,threshold:o$d,color:P7X?n3Q:O6x[j7T].fill,direction:j7T == "over"?1:-("1" * 1),edgeHighlight:O6x[j7T].edge,edgeParameters:{pattern:y8D,lineWidth:j5s + 0.1,opacity:I9E},gapDisplayStyle:N_4,yAxis:M0e.yAxis};if(l7m){x8t.threshold=this.priceFromPixel(this.pixelFromPrice(x8t.threshold,n3W,l7m),n3W,l7m);}N6H.push(O6x[j7T].edge);r3M=x8t.color;if(!P7X && r3M && r3M != "transparent"){j0y=n3W.top;A7$=n3W.bottom;X4D=g5B.context.createLinearGradient(0,j7T == "over"?j0y:A7$,0,t6n);X4D.addColorStop(0,l7f.hexToRgba(l7f.colorToHex(r3M),60));X4D.addColorStop(+"1",l7f.hexToRgba(l7f.colorToHex(r3M),10));x8t.color=X4D;x8t.opacity=I9E;}l7f.preparePeakValleyFill(this,g5B.dataSegment,x8t);if(g07){if(!g07.fillMountain){this.drawLineChart(n3W,null,null,{color:"transparent",gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:x8t.edgeParameters.lineWidth}});}if(!g07.color){A_j=!![];g07.color=this.defaultColor;}}this.drawLineChart(n3W,null,null,{color:"transparent",width:x8t.edgeParameters.lineWidth});if(A_j){g07.color=null;}}if(b_j){s2K="2.";s2K+="1";W$t="dott";W$t+="e";W$t+="d";this.plotLine(0,+"1",t6n,t6n,this.containerColor,"line",g5B.context,n3W,{lineWidth:"1.1"});this.plotLine(0,1,t6n,t6n,this.getCanvasColor("stx_baseline"),"line",g5B.context,n3W,{pattern:W$t,lineWidth:Q6T || s2K,opacity:V6n || 0.5 * I9E});}this.endClip();}return {colors:N6H};};l7f.ChartEngine.prototype.plotLine=function(I7X){var e5C=x2dci;var G$G,w5P,a41,n12,B5U,x3G,l5u,W96,u6K,W4v,B1M,T6H,O$m,l2L,c_y,w8E,T6c,e$2,R8z,G7A,L73,d8b,z0a,D8f,v1q,k3K,j1$,I9q,L$V,h_B,f$V,U87,A4m,E4C,P6z,Q9D,S0I,t6j;G$G="undefine";G$G+="d";w5P="numbe";w5P+="r";if(typeof arguments[0] == w5P){I7X={x0:arguments[0],x1:arguments[1],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[+"7"]};for(var Q6i in arguments[8]){I7X[Q6i]=arguments[8][Q6i];}}if(!I7X){I7X={};}if(I7X.pattern == "none"){return;}a41=I7X.x0;n12=I7X.x1;B5U=I7X.y0;x3G=I7X.y1;l5u=I7X.color;W96=I7X.type;u6K=I7X.context;W4v=I7X.confineToPanel;B1M=I7X.deferStroke;if(W4v === !!({})){W4v=this.chart.panel;}if(u6K === null || typeof u6K == G$G){u6K=this.chart.context;}if(isNaN(a41) || isNaN(n12) || isNaN(B5U) || isNaN(x3G)){return;}T6H=0;O$m=this.chart.canvasHeight;l2L=0;c_y=this.right;if(W4v){O$m=W4v.yAxis.bottom;w8E=1832765480;T6c=-+"1049693747";e$2=2;for(var B8t=1;e5C.O$R(B8t.toString(),B8t.toString().length,50660) !== w8E;B8t++){T6H=W4v.yAxis.top;e$2+=2;}if(e5C.q2D(e$2.toString(),e$2.toString().length,+"23522") !== T6c){T6H=W4v.yAxis.top;}l2L=W4v.left;c_y=W4v.right;}if(W96 == "ray"){R8z=10000000;if(n12 < a41){R8z=-10000000;}L73={x0:a41,x1:n12,y0:B5U,y1:x3G};G7A=l7f.yIntersection(L73,R8z);n12=R8z;x3G=G7A;}if(W96 == "line" || W96 == "horizontal" || W96 == "vertical"){R8z=10000000;d8b=-10000000;L73={x0:a41,x1:n12,y0:B5U,y1:x3G};G7A=l7f.yIntersection(L73,R8z);z0a=l7f.yIntersection(L73,d8b);a41=d8b;n12=R8z;B5U=z0a;x3G=G7A;}e5C.M8Y(74);D8f=e5C.c6Y("0.0",0);e5C.M8Y(46);v1q=e5C.d58("1.0",32);e5C.M8Y(0);k3K=e5C.d58(n12,a41);e5C.M8Y(0);j1$=e5C.c6Y(x3G,B5U);for(var y3b=0;y3b < 4;y3b++){if(y3b === 0){I9q=-k3K;e5C.M8Y(0);L$V=-e5C.c6Y(l2L,a41);}if(y3b == 1){I9q=k3K;e5C.C$o(0);L$V=e5C.c6Y(c_y,a41);}if(y3b == 2){I9q=-j1$;e5C.M8Y(0);L$V=-e5C.d58(T6H,B5U);}if(y3b == "3" - 0){I9q=j1$;e5C.M8Y(0);L$V=e5C.c6Y(O$m,B5U);}e5C.C$o(40);h_B=e5C.c6Y(I9q,L$V);if((x3G || x3G === 0) && I9q === 0 && L$V < 0){return ![];;}if(I9q < 0){if(h_B > v1q){return !({});}else if(h_B > D8f){D8f=h_B;};}else if(I9q > 0){if(h_B < D8f){return ![];}else if(h_B < v1q){v1q=h_B;};}}e5C.C$o(147);f$V=e5C.d58(a41,D8f,k3K);e5C.C$o(147);U87=e5C.c6Y(B5U,D8f,j1$);e5C.M8Y(147);A4m=e5C.c6Y(a41,v1q,k3K);e5C.C$o(147);E4C=e5C.c6Y(B5U,v1q,j1$);if(!x3G && x3G !== 0 && !B5U && B5U !== 0){U87=T6H;E4C=O$m;f$V=L73.x0;A4m=L73.x0;if(L73.x0 > c_y){return !1;}if(L73.x0 < l2L){return !({});}}else if(!x3G && x3G !== "0" - 0){if(L73.y0 < L73.y1){E4C=O$m;}else {E4C=T6H;}f$V=L73.x0;A4m=L73.x0;if(L73.x0 > c_y){return !1;}if(L73.x0 < l2L){return !!0;}}if(!B1M){u6K.save();u6K.beginPath();}u6K.lineWidth=1.1;if(l5u && typeof l5u == "object"){u6K.strokeStyle=l5u.color;if(l5u.opacity){u6K.globalAlpha=l5u.opacity;}else {u6K.globalAlpha=1;}u6K.lineWidth=l7f.stripPX(l5u.width);}else {if(!l5u || l5u == "auto" || l7f.isTransparent(l5u)){P6z=-1042000019;Q9D=1879278794;S0I=2;for(var J$f=1;e5C.q2D(J$f.toString(),J$f.toString().length,42263) !== P6z;J$f++){u6K.strokeStyle=this.defaultColor;S0I+=2;}if(e5C.O$R(S0I.toString(),S0I.toString().length,95438) !== Q9D){u6K.strokeStyle=this.defaultColor;}u6K.strokeStyle=this.defaultColor;}else {u6K.strokeStyle=l5u;}}if(I7X.opacity){u6K.globalAlpha=I7X.opacity;}if(I7X.lineWidth){u6K.lineWidth=I7X.lineWidth;}if(I7X.globalCompositeOperation){u6K.globalCompositeOperation=I7X.globalCompositeOperation;}t6j=l7f.borderPatternToArray(u6K.lineWidth,I7X.pattern);u6K.setLineDash(I7X.pattern?t6j:[]);u6K.moveTo(f$V,U87);u6K.lineTo(A4m,E4C);if(!B1M){u6K.stroke();u6K.restore();}};l7f.ChartEngine.prototype.rendererAction=function(E44,E24){var d4M,U4Q,e48,Y0Y,X$H,v0M,H7q,K6h;function s2G(){var I$J,u_5;I$J="u";I$J+="n";I$J+="der";I$J+="lay";if(!d4M && E24 === I$J){u_5=Symbol.for("CIQ.watermark");if(this[u_5]){this[u_5].draw(E44);d4M=!![];}}}d4M=!!0;if(!this.runPrepend("rendererAction",arguments)){U4Q="rende";U4Q+="rerAction";for(var w9x in E44.seriesRenderers){e48="_";e48+="main_series";Y0Y="und";Y0Y+="er";Y0Y+="lay";X$H=E44.seriesRenderers[w9x];v0M=X$H.params;H7q=v0M.panel;K6h=this.panels[H7q];if(v0M.overChart && E24 == Y0Y)continue;if(v0M.name == "_main_series" && E24 == "underlay")continue;if(v0M.name != e48 && E24 == "main")continue;if(!v0M.overChart && E24 == "overlay")continue;if(!K6h)continue;if(K6h.chart !== E44)continue;if(K6h.hidden)continue;if(E24 == "yAxis"){X$H.adjustYAxis();}else {s2G.apply(this);X$H.draw();if(X$H.cb){X$H.cb(X$H.colors);}}}this.runAppend(U4Q,arguments);}s2G.apply(this);};l7f.ChartEngine.prototype.drawSeries=function(d$v,i5B,U7D,h0r){var D3Y,f2i,Y4b,R_l,g73,K$m,t0f,T25,H3v,g$k,q6X,L0u,N0z,g3R,v42,J2E,X6P;D3Y="drawSer";D3Y+="ies";if(this.runPrepend(D3Y,arguments)){return;}f2i=d$v.dataSegment;Y4b=null;if(!i5B){i5B=d$v.series;}for(var u$n in i5B){Y4b=i5B[u$n];R_l=Y4b.parameters;g73=R_l.panel?this.panels[R_l.panel]:d$v.panel;K$m=R_l.color;t0f=R_l.width;T25=R_l.field;if(!g73)continue;H3v=R_l.yAxis=U7D?U7D:g73.yAxis;if(!K$m){K$m=H3v.textStyle || this.defaultColor;}if(K$m == "auto"){K$m=this.defaultColor;}if(!T25){T25=d$v.defaultPlotField;}g$k=R_l.subField || d$v.defaultPlotField || "Close";if(!R_l._rawExtendToEndOfDataSet && R_l._rawExtendToEndOfDataSet !== ![]){R_l._rawExtendToEndOfDataSet=R_l.extendToEndOfDataSet;}if(d$v.animatingHorizontalScroll){R_l.extendToEndOfDataSet=!1;}else {R_l.extendToEndOfDataSet=R_l._rawExtendToEndOfDataSet;}q6X=R_l.colorFunction;if(Y4b.highlight || Y4b.parameters.highlight){R_l.highlight=!![];}L0u={colors:[]};if(h0r){if(h0r.params.highlight){R_l.highlight=!!({});}if(R_l.hidden)continue;L0u=h0r.drawIndividualSeries(d$v,R_l) || L0u;}else if(R_l.type == "mountain"){L0u=this.drawMountainChart(g73,l7f.extend({returnObject:!0},R_l),q6X);}else {L0u=this.drawLineChart(g73,R_l.style,q6X,l7f.extend({returnObject:!![]},R_l));}Y4b.yValueCache=L0u.cache;x2dci.C$o(25);var U7i=x2dci.d58(0,19,20);N0z=d$v.dataSegment[d$v.dataSegment.length - U7i];if(N0z){g3R=!R_l.skipTransform && d$v.transformFunc && H3v == d$v.panel.yAxis;if(!N0z[T25] && N0z[T25] !== 0){N0z=this.getPreviousBar(d$v,T25,d$v.dataSegment.length - 1);}if(g3R && N0z && N0z.transform){N0z=N0z.transform;}}if(R_l.displayFloatingLabel !== ![] && this.mainSeriesRenderer != h0r && N0z && !H3v.noDraw){v42=N0z[T25];if(v42){if(v42[g$k] || v42[g$k] === 0){v42=v42[g$k];}else {v42=v42.iqPrevClose;}}if(H3v.priceFormatter){J2E=H3v.priceFormatter(this,g73,v42);}else {J2E=this.formatYAxisPrice(v42,g73,null,H3v);}this.yAxisLabels.push({src:"series",args:[g73,J2E,this.pixelFromTransformedValue(v42,g73,H3v),l7f.hexToRgba(l7f.colorToHex(K$m),parseFloat(R_l.opacity)),null,null,H3v]});}if(d$v.legend && R_l.useChartLegend){if(!d$v.legend.colorMap){d$v.legend.colorMap={};}X6P=R_l.display;if(!X6P){X6P=R_l.symbol;}d$v.legend.colorMap[u$n]={color:L0u.colors,display:X6P,isBase:h0r == this.mainSeriesRenderer};;}}x2dci.r2m();this.runAppend("drawSeries",arguments);};};A1=y5U=>{var F7J;x2dci.J8h();F7J=y5U.CIQ;F7J.ChartEngine.prototype.scrollTo=function(w9i,y5I,D2r){var J7$,D1i;J7$=this.swipe;J7$.end=!![];J7$.amplitude=J7$.target=(y5I - w9i.scroll) * this.layout.candleWidth;J7$.timeConstant=100;J7$.timestamp=Date.now();x2dci.r2m();J7$.scroll=w9i.scroll;J7$.chart=w9i;J7$.cb=D2r;D1i=this;requestAnimationFrame(function(){D1i.autoscroll();});};F7J.ChartEngine.prototype.autoscroll=function(){var n9l,B7D,C2F,y4N;n9l=this;B7D=this.swipe;if(B7D.amplitude){B7D.elapsed=Date.now() - B7D.timestamp;C2F=-B7D.amplitude * Math.exp(-B7D.elapsed / B7D.timeConstant);y4N=(B7D.target + C2F) / this.layout.candleWidth;B7D.chart.scroll=B7D.scroll + Math.round(y4N);this.draw();this.updateChartAccessories();if(C2F > 0.5 || C2F < -0.5){requestAnimationFrame(function(){n9l.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(B7D.cb){B7D.cb();}}}};};S4=j6S=>{var c8l=x2dci;var S0i;S0i=j6S.CIQ;S0i.ChartEngine.prototype.drawXAxis=function(K9a,l5I){var G0l,M7B,R4j,q$_,q86,Q4R,L1z,n_o,c3m,i_A,K8Z,P8w,o_G,w5u,a5o,q2u,D$d,g6u,u8$,A7h,g3M,X3m,v6n,J6b,n_G,x3z,w4U,t_$,Q4c,i$t;G0l="c";G0l+="e";G0l+="nte";G0l+="r";M7B="s";M7B+="t";M7B+="x_xaxi";M7B+="s";R4j="dr";R4j+="a";R4j+="wXAxis";q$_=[K9a,l5I];if(this.runPrepend(R4j,q$_)){return;}if(!l5I){return;}if(K9a.xAxis.noDraw){return;}q86=this.getBackgroundCanvas().context;this.canvasFont(M7B,q86);Q4R=this.getCanvasFontSize("stx_xaxis");q86.textAlign=G0l;q86.textBaseline="middle";n_o=q86.measureText(" ").width;for(var o2C=+"0";o2C < l5I.length;o2C++){L1z=l5I[o2C];c3m=q86.measureText(L1z.text).width;c8l.C$o(22);i_A=Math.max(c8l.d58(n_o,c3m),K9a.xAxis.minimumLabelWidth);L1z.hz=Math.floor(L1z.hz + this.micropixels) + ("0.5" - 0);c8l.M8Y(79);var L0y=c8l.c6Y(33,11,12,34);L1z.left=L1z.hz - i_A / L0y;c8l.C$o(11);var o5b=c8l.d58(1,8,4,15);L1z.right=L1z.hz + i_A / o5b;c8l.C$o(142);var V_B=c8l.c6Y(2,13,22,20,2);L1z.unpaddedRight=L1z.hz + c3m / V_B;}K8Z=this.xAxisAsFooter === !""?this.chart.canvasHeight:K9a.panel.bottom;c8l.M8Y(0);P8w=this.whichPanel(c8l.d58(K8Z,1));if(!P8w){return;}this.adjustYAxisHeightOffset(P8w,P8w.yAxis);o_G=K9a.xAxis.displayBorder || K9a.xAxis.displayBorder === null;if(this.axisBorders === !![]){o_G=!!1;}if(this.axisBorders === !({})){o_G=!1;}c8l.J8h();w5u=K8Z - this.xaxisHeight + Q4R;if(o_G){w5u+=3;}a5o=!"";for(var y8P in this.panels){q2u="b";q2u+="or";q2u+="de";q2u+="r";D$d="l";D$d+="ine";g6u=this.panels[y8P];if(g6u.hidden || g6u.shareChartXAxis === ![])continue;c8l.M8Y(106);u8$=c8l.d58(g6u,P8w);A7h=g6u.yAxis;if(!A7h)continue;g3M=-Number.MAX_VALUE;X3m=Number.MAX_VALUE;for(var c43=0;c43 < l5I.length;c43++){v6n="bound";v6n+="ary";if(l5I[c43].grid == v6n){X3m=l5I[c43].left;break;}}q86.save();q86.beginPath();q86.rect(g6u.left,g6u.top + (a5o?0:"1" >> 64),g6u.width,g6u.height - +"1");q86.clip();a5o=!({});J6b=new S0i.Plotter();J6b.newSeries(D$d,"stroke",this.canvasStyle("stx_grid"));J6b.newSeries("boundary","stroke",this.canvasStyle("stx_grid_dark"));J6b.newSeries(q2u,"stroke",this.canvasStyle("stx_grid_border"));for(var E_d="0" | 0;E_d < l5I.length;E_d++){L1z=l5I[E_d];if(E_d == c43){for(c43++;c43 < l5I.length;c43++){if(l5I[c43].grid == "boundary"){X3m=l5I[c43].left;break;}}if(c43 >= l5I.length){c43=-1;X3m=Number.MAX_VALUE;}}else {if(L1z.right > X3m)continue;}if(L1z.left < g3M)continue;if(L1z.left < 0){if(X3m < L1z.right)continue;if(c43 >= l5I.length){if(l5I[E_d + 1] && l5I[E_d + 1].left < L1z.right)continue;}}g3M=L1z.right;if(Math.floor(L1z.left) <= g6u.right){if(Math.floor(L1z.hz) > g6u.left){if(K9a.xAxis.displayGridLines){J6b.moveTo(L1z.grid,L1z.hz,A7h.top);J6b.lineTo(L1z.grid,L1z.hz,A7h.bottom);}if(u8$ && o_G){n_G="bor";n_G+="der";J6b.moveTo(n_G,L1z.hz,A7h.bottom + 0.5);J6b.lineTo("border",L1z.hz,A7h.bottom + +"6");}}if(u8$ && L1z.right > g6u.left){x3z="stx";x3z+="_xa";x3z+="xi";x3z+="s";w4U="s";w4U+="tx_xa";w4U+="xis_dark";this.canvasColor(L1z.grid == "boundary"?w4U:x3z,q86);q86.fillText(L1z.text,L1z.hz,w5u);}}}if(o_G){t_$="b";t_$+="o";t_$+="rde";t_$+="r";Q4c=Math.round(A7h.bottom) + 0.5;i$t=Math.round(g6u.right) + 0.5;J6b.moveTo("border",g6u.left,Q4c);J6b.lineTo(t_$,i$t,Q4c);}J6b.draw(q86);q86.restore();}q86.textAlign="left";this.runAppend("drawXAxis",q$_);};c8l.J8h();S0i.ChartEngine.prototype.createTickXAxisWithDates=function(N8k){var Z9I,k$V,C3d,Z52,Y93,t0u,j_P,E_y,j3o,W9z,n1t,c5i,z4U,r3i,R_d,V1L,t_o,D_c,R2m,e2x,m_S,G5f,h6x,V3I,H9C,o_o,q7A,G65,y$B,b45,d5W,X8s,l0a,g$3,f8_,W5F,D52,O5B,r6w,m56,Z4h,d2f,W5w,p5B,z5s,N9R,o8t,z7u,t3U,W1I,A6L,r67,O7X,z5m,O1Z,e8M,w5T,Y1Q,l2x,l$9,y8L,m3S,x2l,d29,c0C,D$l;Z9I="o";Z9I+="h";Z9I+="l";Z9I+="c";k$V="m";k$V+="inu";k$V+="te";C3d="s";C3d+="e";C3d+="c";c8l.r2m();C3d+="ond";if(!N8k){N8k=this.chart;}N8k.xaxis=[];Y93=N8k.context;t0u=[S0i.MILLISECOND,S0i.SECOND,S0i.MINUTE,S0i.HOUR,S0i.DAY,S0i.MONTH,S0i.YEAR];if(!this.timeIntervalMap){j_P="2";j_P+="0";j_P+="0";j_P+="0";E_y="10:";E_y+="00";E_y+=":";E_y+="00";j3o="10:00:0";j3o+="0.000";W9z=Y93.measureText.bind(Y93);Z52={};Z52[S0i.MILLISECOND]={arr:[1,"2" >> 64,+"5",10,20,50,100,250,500],minTimeUnit:0,maxTimeUnit:1000,measurement:W9z(j3o)};Z52[S0i.SECOND]={arr:[1,2,3,4,5,6,10,12,"15" - 0,+"20",30],minTimeUnit:0,maxTimeUnit:60,measurement:W9z(E_y)};Z52[S0i.MINUTE]={arr:[+"1",2,"3" >> 32,4,"5" | 5,6,10,12,+"15","20" * 1,30],minTimeUnit:0,maxTimeUnit:60,measurement:W9z("10:00")};Z52[S0i.HOUR]={arr:[+"1",2,3,4,6,12],minTimeUnit:"0" | 0,maxTimeUnit:"24" - 0,measurement:W9z("10:00")};Z52[S0i.DAY]={arr:[1,2,+"7",14],minTimeUnit:"1" << 32,maxTimeUnit:"32" << 32,measurement:W9z("30")};Z52[S0i.MONTH]={arr:[1,2,3,6],minTimeUnit:"1" >> 0,maxTimeUnit:"13" << 0,measurement:W9z("Mar")};Z52[S0i.YEAR]={arr:[+"1",2,+"3",5],minTimeUnit:1,maxTimeUnit:20000000,measurement:W9z(j_P)};Z52[S0i.DECADE]={arr:[10],minTimeUnit:0,maxTimeUnit:2000000,measurement:W9z("2000")};this.timeIntervalMap=Z52;}Z52=this.timeIntervalMap;c8l.C$o(0);n1t=[31,28,31,30,31,30,+"31",31,30,31,c8l.d58("30",0),+"31"];c5i=this.layout.periodicity;z4U=this.layout.interval;r3i=N8k.maxTicks;R_d=N8k.dataSegment;V1L=N8k.xAxis;t_o=R_d.length;D_c=V1L.idealTickSizePixels || V1L.autoComputedTickSizePixels;R2m=this.chart.width / D_c;for(var x74=0;x74 < t_o;x74++){if(R_d[x74])break;}if(x74 == t_o){return [];}c8l.M8Y(38);e2x=c8l.c6Y("0",1);m_S=this.layout.timeUnit || "minute";if(isNaN(z4U)){m_S=z4U;z4U=1;}G5f=0;switch(m_S){case "millisecond":G5f=1;break;case C3d:G5f=1000;c8l.C$o(19);t0u.splice(0,c8l.d58(96,"1"));break;case k$V:G5f=60000;t0u.splice(0,2);break;case "day":G5f=86400000;t0u.splice(0,4);break;case "week":c8l.C$o(38);G5f=c8l.c6Y(86400000,7);t0u.splice(0,4);break;case "month":c8l.M8Y(162);G5f=c8l.d58(0,"30",86400000);t0u.splice(0,5);break;}function S$r(P$O){var L7j,U4i;if(l0a == S0i.MILLISECOND){L7j=P$O.getMilliseconds();U4i=P$O.getSeconds();}else if(l0a == S0i.SECOND){L7j=P$O.getSeconds();U4i=P$O.getMinutes();}else if(l0a == S0i.MINUTE){L7j=P$O.getMinutes();U4i=P$O.getHours();}else if(l0a == S0i.HOUR){c8l.M8Y(22);var Z5u=c8l.d58(4,56);L7j=P$O.getHours() + P$O.getMinutes() / Z5u;U4i=P$O.getDate();}else if(l0a == S0i.DAY){L7j=P$O.getDate();c8l.C$o(2);var Q_4=c8l.c6Y(4,3);U4i=P$O.getMonth() + Q_4;}else if(l0a == S0i.MONTH){c8l.M8Y(16);var A$k=c8l.c6Y(8,0,11,87);L7j=P$O.getMonth() + A$k;U4i=P$O.getFullYear();}else if(l0a == S0i.YEAR){L7j=P$O.getFullYear();c8l.M8Y(163);var G0Q=c8l.c6Y(14,56,4,991,9);U4i=P$O.getFullYear() + G0Q;}else {L7j=P$O.getFullYear();U4i=0;}return [L7j,U4i];}h6x=this.layout.aggregationType;if(G5f && (!h6x || h6x == Z9I || h6x == "heikinashi")){c8l.C$o(73);e2x=c8l.d58(G5f,z4U,c5i,t_o);;}else {e2x=R_d[t_o - 1].DT.getTime() - R_d[x74].DT.getTime();;}if(e2x === 0){if(N8k.market){V3I=N8k.market.newIterator({begin:new Date(),interval:"day",periodicity:1});V3I.next();H9C=V3I.previous();V3I=this.standardMarketIterator(H9C,null,N8k);o_o=V3I.next();e2x=(o_o.getTime() - H9C.getTime()) * r3i;;}else {c8l.C$o(164);e2x=c8l.c6Y(60,"1000",r3i,24,60);;}}else {c8l.M8Y(165);e2x=c8l.c6Y(t_o,e2x,r3i);;}c8l.M8Y(40);q7A=c8l.d58(R2m,e2x);for(G65=0;G65 < t0u.length;G65++){if(t0u[G65] > q7A + "0.001" * 1)break;;}if(q7A < 1){y$B="createTickXAxisWithDates: Assertion";y$B+=" error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodi";y$B+="city and it is s";y$B+="orted from OLDEST to NEWEST.";console.log(y$B);}if(G65 == t0u.length){G65--;}else if(G65 > 0){c8l.C$o(0);b45=t0u[c8l.c6Y(G65,1)];d5W=Z52[b45].arr;c8l.M8Y(166);var S1N=c8l.c6Y(5,61,16,4,19);X8s=d5W[d5W.length - S1N];if(q7A - b45 * X8s < t0u[G65] - q7A){G65--;}}l0a=V1L.timeUnit || t0u[G65];V1L.activeTimeUnit=l0a;g$3=Z52[l0a];f8_=g$3.arr;for(G65=0;G65 < f8_.length;G65++){if(f8_[G65] * l0a > q7A)break;}if(G65 == f8_.length){G65--;}else {if(q7A - f8_[G65 - +"1"] * l0a < f8_[G65] * l0a - q7A){G65--;}}if(g$3.measurement.width * 2 < this.layout.candleWidth){G65=0;}W5F=V1L.timeUnitMultiplier || f8_[G65];D52=[];O5B=this.layout.candleWidth;for(G65=0;G65 <= r3i;G65++){if(R_d[G65])break;}if(G65 > 0 && G65 < r3i){if(N8k.market){r6w=this.standardMarketIterator(R_d[G65].DT,V1L.adjustTimeZone?this.displayZone:null);}for(var D0Z=G65;D0Z > 0;D0Z--){m56={};if(r6w && !(N8k.lineApproximation && O5B < 1)){m56.DT=r6w.previous();}N8k.xaxis.unshift(m56);}}Z4h=0;d2f=g$3.minTimeUnit;W5w=-+"1";p5B=!!({});z5s=S$r(R_d[G65].DT);o8t=0;z7u=0;t3U=R_d[G65].tick;for(o8t;o8t < t3U;o8t++){N9R=S$r(this.chart.dataSet[t3U - o8t].DT);if(N9R[+"1"] != z5s[1])break;z5s=N9R;}for(z7u;z7u < this.chart.dataSet.length - t3U;z7u++){N9R=S$r(this.chart.dataSet[t3U + z7u].DT);if(N9R[1] != z5s[1])break;z5s=N9R;}W1I=null;for(G65=0;G65 < r3i + z7u;G65++){A6L=R_d[G65];if(!A6L){A6L=N8k.xaxis[G65];}else if(o8t){A6L=N8k.dataSet[A6L.tick - o8t];}if(G65 < t_o){r67=A6L;if(r67.displayDate && V1L.adjustTimeZone){Z4h=r67.displayDate;}else {Z4h=r67.DT;}if(G65 && !o8t && N8k.segmentImage){O7X=N8k.segmentImage[G65];c8l.C$o(118);var Z3w=c8l.c6Y(19,4,14,26,150);O5B=(O7X.leftOffset - O7X.candleWidth / Z3w) / G65;}}else if(N8k.market){z5m="tic";z5m+="k";if(this.layout.interval == z5m && !V1L.futureTicksInterval)break;if(N8k.lineApproximation && O5B < 1)break;if(!V1L.futureTicks)break;if(!W1I){W1I=this.standardMarketIterator(R_d[t_o - 1].DT,V1L.adjustTimeZone?this.displayZone:null);}Z4h=W1I.next();}if(!Z4h)continue;O1Z=null;c8l.M8Y(0);w5T=c8l.c6Y(G65,o8t);Y1Q={DT:Z4h};if(G65 < t_o){Y1Q.data=A6L;}else {Y1Q.data=null;}if(o8t){o8t--;G65--;}else if(!N8k.xaxis[G65] && G65 < r3i){N8k.xaxis.push(Y1Q);}z5s=S$r(Z4h);c8l.M8Y(46);l2x=z5s[c8l.c6Y("0",0)];l$9=z5s[1];if(W5w != l$9){if(l2x <= d2f){d2f=g$3.minTimeUnit;}c8l.C$o(167);var f6b=c8l.c6Y(11,7,113,3,8);e8M=N8k.left + w5T * O5B - f6b;O1Z=null;if(l0a == S0i.HOUR || l0a == S0i.MINUTE && W5w > l$9){if(this.internationalizer){O1Z=this.internationalizer.monthDay.format(Z4h);}else {c8l.C$o(14);var h2_=c8l.d58(18,9,3);O1Z=Z4h.getMonth() + h2_ + "/" + Z4h.getDate();}if(V1L.formatter){y8L="bo";y8L+="undary";O1Z=V1L.formatter(Z4h,y8L,S0i.DAY,1,O1Z);}}else if(l0a == S0i.DAY){if(W5w > l$9){O1Z=Z4h.getFullYear();if(V1L.formatter){O1Z=V1L.formatter(Z4h,"boundary",S0i.YEAR,1,O1Z);}}else {O1Z=S0i.monthAsDisplay(Z4h.getMonth(),!({}),this);if(V1L.formatter){O1Z=V1L.formatter(Z4h,"boundary",S0i.MONTH,1,O1Z);}}}else if(l0a == S0i.MONTH){O1Z=Z4h.getFullYear();if(V1L.formatter){m3S="boun";m3S+="dary";O1Z=V1L.formatter(Z4h,m3S,S0i.YEAR,1,O1Z);}}if(O1Z && W5w != -1){D52.push(new S0i.ChartEngine.XAxisLabel(e8M,"boundary",O1Z));}}if(l2x >= d2f){if(d2f == g$3.minTimeUnit){if(l$9 == W5w)continue;;}x2l=new Date(+Z4h);c8l.M8Y(8);var I8b=c8l.d58(18,7,2);c8l.M8Y(0);var y$8=c8l.d58(16,15);c8l.M8Y(8);var B8s=c8l.d58(34,0,17);e8M=N8k.left + (I8b * w5T + y$8) * O5B / B8s - ("1" ^ 0);d29=Math.floor(l2x / W5F) * W5F;if(d29 < l2x){c0C="we";c0C+="ek";if(this.layout.interval == c0C){d29=l2x;}else {c8l.C$o(40);e8M-=c8l.c6Y(2,O5B);};}if(l0a == S0i.MILLISECOND){x2l.setMilliseconds(d29);}else if(l0a == S0i.SECOND){x2l.setMilliseconds(0);x2l.setSeconds(d29);}else if(l0a == S0i.MINUTE){x2l.setMilliseconds(0);x2l.setSeconds(0);x2l.setMinutes(d29);}else if(l0a == S0i.HOUR){x2l.setMilliseconds(0);x2l.setSeconds(0);x2l.setMinutes(0);x2l.setHours(d29);}else if(l0a == S0i.DAY){x2l.setDate(Math.max(+"1",d29));}else if(l0a == S0i.MONTH){x2l.setDate(1);c8l.C$o(0);x2l.setMonth(c8l.c6Y(d29,1));}else if(l0a == S0i.YEAR){x2l.setDate(1);x2l.setMonth(0);}else {c8l.M8Y(46);x2l.setDate(c8l.c6Y("1",0));x2l.setMonth(0);}c8l.M8Y(22);d2f=c8l.d58(W5F,d29);if(l0a == S0i.DAY){c8l.C$o(168);var u12=c8l.c6Y(10,16,17,18,26);g$3.maxTimeUnit=n1t[x2l.getMonth()] + u12;}if(d2f >= g$3.maxTimeUnit){d2f=g$3.minTimeUnit;}W5w=l$9;if(p5B && d29 < l2x){p5B=!({});continue;}if(l0a == S0i.DAY){O1Z=x2l.getDate();}else if(l0a == S0i.MONTH){O1Z=S0i.monthAsDisplay(x2l.getMonth(),!({}),this);}else if(l0a == S0i.YEAR || l0a == S0i.DECADE){O1Z=x2l.getFullYear();}else {O1Z=S0i.timeAsDisplay(x2l,this,l0a);}if(V1L.formatter){D$l="l";D$l+="i";D$l+="n";D$l+="e";O1Z=V1L.formatter(x2l,D$l,l0a,W5F,O1Z);}D52.push(new S0i.ChartEngine.XAxisLabel(e8M,"line",O1Z));}}return D52;};};t3=y$n=>{var k9J=x2dci;var d_N;d_N=y$n.CIQ;k9J.r2m();d_N.ChartEngine.prototype.createYAxis=function(I1y,B12){var g1H,B2e,J3A,N9Z,U4I,W6_,u_n,q9V,W0T,s67,D22,X9n,l0H,q5F,u1x,a8m,X5p,m8X,Q8Z,M4I,R$W,k8u,X7B,W1C,Z6C,r_p,Q3m;g1H="cr";g1H+="eat";g1H+="eYA";g1H+="xis";if(this.runPrepend(g1H,arguments)){return;}B2e=I1y.chart;J3A=I1y.name == B2e.name;if(!B12){B12={};}B12.noChange=!({});N9Z=B12.yAxis?B12.yAxis:I1y.yAxis;if(d_N.ChartEngine.enableCaching && N9Z.high == I1y.cacheHigh && N9Z.low == I1y.cacheLow){k9J.M8Y(169);var I_b=k9J.d58(10,1,12,23);U4I=B2e.dataSet.length - B2e.scroll - I_b;k9J.M8Y(75);var K65=k9J.d58(9,359,15,11,14);W6_=U4I + B2e.maxTicks + K65;I1y.cacheLeft=U4I;I1y.cacheRight=W6_;B12.noChange=!!({});}else {I1y.cacheLeft=+"1000000";I1y.cacheRight=-1;I1y.cacheHigh=N9Z.high;I1y.cacheLow=N9Z.low;}u_n=B2e.xAxis.idealTickSizePixels?B2e.xAxis.idealTickSizePixels:B2e.xAxis.autoComputedTickSizePixels;if(N9Z.goldenRatioYAxis){if(N9Z.idealTickSizePixels != u_n / ("1.618" - 0)){B12.noChange=!({});}}if(!B12.noChange){this.adjustYAxisHeightOffset(I1y,N9Z);W0T=N9Z.height=N9Z.bottom - N9Z.top;s67=(N9Z.high - N9Z.low) / (W0T - N9Z.zoom);if(!N9Z.semiLog){if(B12.ground){D22=-295149038;X9n=1734369358;k9J.M8Y(46);l0H=k9J.c6Y("2",64);for(var r0R=1;k9J.q2D(r0R.toString(),r0R.toString().length,16719) !== D22;r0R++){N9Z.high=N9Z.high * (N9Z.zoom - s67);l0H+=2;}if(k9J.q2D(l0H.toString(),l0H.toString().length,25369) !== X9n){N9Z.high=N9Z.high + N9Z.zoom * s67;}}else {k9J.M8Y(0);var t$Y=k9J.d58(10,8);N9Z.high=N9Z.high + (N9Z.zoom / t$Y + N9Z.scroll) * s67;k9J.M8Y(65);var H6U=k9J.d58(5,1,7,0);N9Z.low=N9Z.low - (N9Z.zoom / H6U - N9Z.scroll) * s67;}}if(N9Z.min || N9Z.min === ("0" ^ 0)){N9Z.low=N9Z.min;}if(N9Z.max || N9Z.max === 0){N9Z.high=N9Z.max;}N9Z.shadow=N9Z.high - N9Z.low;if(N9Z.semiLog && (!this.activeDrawing || this.activeDrawing.name != "projection")){q5F=function(){var V2N;N9Z.logHigh=Math.log(N9Z.high) / Math.LN10;V2N=Math.max(N9Z.low,0.000000001);N9Z.logLow=Math.log(V2N) / Math.LN10;if(N9Z.low <= 0){N9Z.logLow=0;}N9Z.logShadow=N9Z.logHigh - N9Z.logLow;};if(N9Z.semiLog){q5F();}u1x=N9Z.height / (N9Z.height - N9Z.zoom);if(N9Z.flipped){N9Z.high=this.transformedPriceFromPixel(N9Z.bottom + u1x * (N9Z.zoom / 2 + N9Z.scroll),I1y,N9Z);N9Z.low=this.transformedPriceFromPixel(N9Z.top - u1x * (N9Z.zoom / ("2" - 0) - N9Z.scroll),I1y,N9Z);k9J.C$o(74);a8m=-k9J.d58("1121413743",44);X5p=-2021505169;m8X=2;for(var L9p=1;k9J.O$R(L9p.toString(),L9p.toString().length,45142) !== a8m;L9p++){;k9J.M8Y(20);m8X+=k9J.d58("2",0);}if(k9J.O$R(m8X.toString(),m8X.toString().length,15993) !== X5p){;}}else {N9Z.high=this.transformedPriceFromPixel(N9Z.top - u1x * (N9Z.zoom / 2 + N9Z.scroll),I1y,N9Z);N9Z.low=this.transformedPriceFromPixel(N9Z.bottom + u1x * (N9Z.zoom / 2 - N9Z.scroll),I1y,N9Z);;}N9Z.shadow=N9Z.high - N9Z.low;if(N9Z.semiLog){q5F();}}if(N9Z.goldenRatioYAxis && J3A && N9Z == I1y.yAxis){k9J.M8Y(40);N9Z.idealTickSizePixels=k9J.d58(1.618,u_n);if(N9Z.idealTickSizePixels === +"0"){M4I="stx_yax";M4I+="i";M4I+="s";Q8Z=this.getCanvasFontSize(M4I);k9J.C$o(170);N9Z.idealTickSizePixels=k9J.c6Y(64,Q8Z,"5");}}else {if(!N9Z.idealTickSizePixels){Q8Z=this.getCanvasFontSize("stx_yaxis");if(J3A){k9J.M8Y(38);N9Z.idealTickSizePixels=k9J.d58(Q8Z,5);}else {k9J.M8Y(38);N9Z.idealTickSizePixels=k9J.c6Y(Q8Z,2);}}}R$W=Math.round(W0T / N9Z.idealTickSizePixels);q9V=B12.range?B12.range[1] - B12.range[+"0"]:N9Z.shadow;k9J.M8Y(40);N9Z.priceTick=Math.floor(k9J.d58(R$W,q9V));k8u=1;for(var u3x=0;u3x < 10;u3x++){if(N9Z.priceTick > 0)break;k8u*=10;N9Z.priceTick=Math.floor(q9V / R$W * k8u) / k8u;}if(u3x == +"10"){N9Z.priceTick=0.00000001;}N9Z.priceTick=Math.round(q9V / R$W * k8u) / k8u;X7B=Math.round(q9V / N9Z.priceTick);if(B12.range && X7B < q9V && !N9Z.noEvenDivisorTicks){while(X7B >= 1){if(q9V % X7B === 0)break;X7B--;}k9J.M8Y(40);N9Z.priceTick=k9J.d58(X7B,q9V);}if(N9Z.minimumPriceTick){W1C=N9Z.minimumPriceTick;Q8Z=this.getCanvasFontSize("stx_yaxis");for(var n3o=0;n3o < 100;n3o++){k9J.C$o(40);Z6C=k9J.d58(W1C,q9V);if(W0T / Z6C < Q8Z * 2){W1C+=N9Z.minimumPriceTick;}else break;}if(n3o < 100){N9Z.priceTick=W1C;}}}if(N9Z.priceTick <= 0 || N9Z.priceTick === Infinity){N9Z.priceTick=1;}N9Z.multiplier=N9Z.height / N9Z.shadow;if(N9Z.multiplier == Infinity){N9Z.multiplier=+"0";}if(!N9Z.decimalPlaces && N9Z.decimalPlaces !== 0){if(J3A){r_p=0;for(var K4J=0;K4J < I1y.yAxis.shadowBreaks.length;K4J++){Q3m=I1y.yAxis.shadowBreaks[K4J];if(I1y.yAxis.shadow < Q3m["0" * 1]){r_p=Q3m[1];}}N9Z.printDecimalPlaces=r_p;}else {N9Z.printDecimalPlaces=null;};}else {N9Z.printDecimalPlaces=N9Z.decimalPlaces;}this.runAppend("createYAxis",arguments);};d_N.ChartEngine.prototype.drawYAxis=function(A2Q,U9i){var U$T,i$6,y54,Q4u,g2E,F_W,d50,t6O,E8y,o5F,d4W,b1a,t_q,Y6q,s7w,M2t,T9K,K5U,V4t,I3B,P2b,Y4R,N$H,f0q,z3P,P$p,w1I,G7S,O4m,z2x,U3V,q$8,K5a,l3G,D96,e0C,a_4,e0d,s6W,t7D,V7C,X1b;if(!U9i){U9i={};}U$T=U9i.yAxis?U9i.yAxis:A2Q.yAxis;if(A2Q.hidden || U$T.noDraw || !U$T.width){return;}if(!d_N.Comparison || U$T.priceFormatter != d_N.Comparison.priceFormat){i$6=U$T.fractional;if(i$6){if(!U$T.originalPriceFormatter){U$T.originalPriceFormatter={func:U$T.priceFormatter};}if(!i$6.resolution){i$6.resolution=U$T.minimumPrice;}if(!i$6.formatter){i$6.formatter=(+"75.45",8516) === (604.84,+"9230")?9.56e+3:"'";}if(!U$T.priceFormatter){U$T.priceFormatter=function(w0z,s4S,Q0K){var v7$,N05,G8m,V6w;if(!i$6){return;}v7$="";if(Q0K < 0){v7$=8050 < 7390?4.00e+3:"-";Q0K=Math.abs(Q0K);}N05=Math.floor(Math.round(Q0K / i$6.resolution) * i$6.resolution);G8m=Math.round((Q0K - N05) / i$6.resolution);V6w=Math.floor(G8m);k9J.M8Y(7);var R_X=k9J.c6Y(15,6012,12);k9J.M8Y(68);var e9x=k9J.c6Y(20754,4,6923);k9J.C$o(1);var f1G=k9J.c6Y(352,6,18,10,31031);k9J.C$o(120);var a13=k9J.c6Y(565,8,568,565);k9J.C$o(171);var j_S=k9J.d58(6,15,44808,6,8967);return v7$ + N05 + i$6.formatter + (V6w < +"10"?211.56 > ("888.96" - 0,187.49)?("7762" ^ 0,104.62) === R_X?(603.56,e9x) >= (f1G,234.37)?(a13,340.92):j_S:"0":"760.23" - 0:"") + V6w + (G8m - V6w >= 0.5?"+":"");};}}else {if(U$T.originalPriceFormatter){U$T.priceFormatter=U$T.originalPriceFormatter.func;U$T.originalPriceFormatter=null;}}}y54=this.colorOrStyle(U$T.textStyle || "stx_yaxis");Q4u=this.highlightedDraggable;g2E=0;if(Q4u && this.yaxisMatches(Q4u,U$T)){g2E=0.15;}else if(U$T.highlight){g2E=+"0.1";}k9J.J8h();if(g2E){F_W=y54.constructor == String?y54:y54.color;U$T.setBackground(this,{color:F_W,opacity:g2E});}if(U$T.pretty){return this.drawYAxisPretty(A2Q,U9i);}if(this.runPrepend("drawYAxis",arguments)){return;}if(!U9i.noDraw && !U$T.noDraw){d50=U$T.yAxisPlotter;if(!d50 || !U9i.noChange){t6O="s";t6O+="tx_yax";t6O+="is";E8y="l";E8y+="eft";o5F="stro";o5F+="ke";d4W="g";d4W+="rid";d50=U$T.yAxisPlotter=new d_N.Plotter();b1a=A2Q.chart;t_q=A2Q.name == b1a.name && U$T.name === A2Q.yAxis.name;if(!U$T.priceTick){return;}Y6q=U$T.shadow;s7w=U9i.range;if(s7w){k9J.C$o(115);var Y0j=k9J.d58(4,7,7,1,4);Y6q=s7w[Y0j] - s7w[0];}M2t=Y6q / U$T.priceTick;M2t=Math.round(M2t);if(U$T.semiLog){T9K=Math.log(this.valueFromPixel(U$T.flipped?U$T.top:U$T.bottom,A2Q)) / Math.LN10;K5U=(U$T.logHigh - U$T.logLow) / M2t;}d50.newSeries(d4W,"stroke",this.canvasStyle("stx_grid"));d50.newSeries("text","fill",y54);d50.newSeries("border",o5F,this.canvasStyle("stx_grid_border"));V4t=0;I3B=s7w?s7w[1]:U$T.high;P2b=s7w?s7w[0]:U$T.low;Y4R=U$T.displayBorder === null?b1a.panel.yAxis.displayBorder:U$T.displayBorder;if(this.axisBorders === !1){Y4R=!({});}if(this.axisBorders === !!({})){Y4R=!!({});}f0q=b1a.dynamicYAxis;z3P=f0q?U$T.width:NaN;P$p=this.getYAxisCurrentPosition(U$T,A2Q);if(P$p == "left"){N$H=U$T.left + U$T.width;}else {N$H=U$T.left;}w1I=Math.round(N$H) + 0.5;G7S=Y4R?3:0;if(P$p == E8y){G7S=Y4R?-3:+"0";}if(t_q){if(U$T.shadow < "1" * 1){k9J.C$o(172);var L2y=k9J.d58(17,11,152,9);V4t=(parseInt(P2b / U$T.priceTick,L2y) + ("1" - 0)) * U$T.priceTick - P2b;}else {V4t=U$T.priceTick - Math.round(P2b % U$T.priceTick * A2Q.chart.roundit) / A2Q.chart.roundit;}}else {V4t=I3B % U$T.priceTick;}O4m=this.getCanvasFontSize(t6O);for(var a$k=+"0";a$k < M2t;a$k++){if(U$T.semiLog){k9J.M8Y(147);U3V=k9J.c6Y(T9K,a$k,K5U);z2x=Math.pow(10,U3V);}else {if(t_q){z2x=P2b + a$k * U$T.priceTick + V4t;}else {z2x=I3B - a$k * U$T.priceTick - V4t;}}q$8=this.pixelFromTransformedValue(z2x,A2Q,U$T);K5a=Math.round(q$8) + 0.5;if(K5a + O4m / +"2" > A2Q.bottom)continue;if(K5a - O4m / ("2" - 0) < A2Q.top)continue;if(Math.abs(K5a - U$T.bottom) < 1)continue;if(U$T.flipped){K5a=U$T.top + U$T.bottom - K5a;}if(U$T.displayGridLines){l3G="g";l3G+="ri";l3G+="d";d50.moveTo("grid",A2Q.left + 1,K5a);d50.lineTo(l3G,A2Q.right - 1,K5a);}if(Y4R){D96="bo";D96+="rd";D96+="er";k9J.M8Y(0);d50.moveTo("border",k9J.c6Y(w1I,0.5),K5a);k9J.M8Y(22);d50.lineTo(D96,k9J.c6Y(G7S,w1I),K5a);}if(U$T.priceFormatter){z2x=U$T.priceFormatter(this,A2Q,z2x);}else {z2x=this.formatYAxisPrice(z2x,A2Q,null,U$T);}e0C=U$T.textBackground?this.containerColor:null;a_4=3;k9J.M8Y(53);e0d=k9J.c6Y(N$H,G7S,a_4);if(P$p == "left"){e0d=U$T.left + a_4;if(U$T.justifyRight !== !"1"){e0d=U$T.left + U$T.width + G7S - a_4;}}else {if(U$T.justifyRight){e0d=N$H + U$T.width;}}d50.addText("text",z2x,e0d,K5a,e0C,null,O4m);if(f0q){z3P=Math.max(z3P,b1a.context.measureText(z2x).width + Math.abs(G7S) + a_4);}}if(Y4R){s6W="bor";s6W+="der";t7D="bo";t7D+="rd";t7D+="er";V7C=Math.round(U$T.bottom) + 0.5;d50.moveTo(t7D,w1I,U$T.top);d50.lineTo(s6W,w1I,V7C);d50.draw(this.getBackgroundCanvas(b1a).context,"border");}if(f0q && z3P > U$T.width){U$T._dynamicWidth=z3P;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!f0q && U$T._dynamicWidth){X1b="rebo";X1b+="ot draw";this.resetDynamicYAxis({chartName:b1a.name});throw new Error(X1b);}}if(U$T == A2Q.yAxis){this.plotYAxisGrid(A2Q);}}this.runAppend("drawYAxis",arguments);};d_N.ChartEngine.prototype.drawYAxisPretty=function(B3J,k_4){var J1q,O1F,F_Y,K6G,O64,j3W,R$O,Y8M,x1F,i8b,x8w,V7y,j2q,d0e,T4O,u2M,L26,n53,x3k,r5f,n6O,c2c,O18,O1K,w7T,N4Z,A7y,m7V,L7S,v7z,E6G,S3Z,v68,F72,E2J,B8A,J6x,i8x,S2B,b1s,p2_,D8n,v4f,a$J,F0l,c4e,G1h,h8J,w3o,x6Y,C8J,a7N,G80;if(this.runPrepend("drawYAxis",arguments)){return;}k9J.J8h();if(!k_4){k_4={};}J1q=k_4.yAxis?k_4.yAxis:B3J.yAxis;if(B3J.hidden || J1q.noDraw || !J1q.width){return;}if(!k_4.noDraw){O1F=J1q.yAxisPlotter;if(!O1F || !k_4.noChange){F_Y="st";F_Y+="x_";F_Y+="yax";F_Y+="is";K6G="bor";K6G+="der";O64="f";O64+="ill";j3W="t";j3W+="e";j3W+="x";j3W+="t";R$O="stx_";R$O+="grid";Y8M="stx";Y8M+="_";Y8M+="ya";Y8M+="xis";O1F=J1q.yAxisPlotter=new d_N.Plotter();x1F=B3J.chart;if(!J1q.priceTick){return;}if(isNaN(J1q.high) || isNaN(J1q.low)){return;}i8b=J1q.shadow;if(k_4.range){k9J.M8Y(7);var g2r=k9J.d58(17,0,18);i8b=k_4.range[g2r] - k_4.range[0];}x8w=J1q.height / J1q.idealTickSizePixels;x8w=Math.round(x8w);V7y=J1q.textStyle || Y8M;O1F.newSeries("grid","stroke",this.canvasStyle(R$O));O1F.newSeries(j3W,O64,this.colorOrStyle(V7y));O1F.newSeries(K6G,"stroke",this.canvasStyle("stx_grid_border"));j2q=k_4.range;d0e=j2q?j2q[1]:J1q.high;T4O=j2q?j2q[0]:J1q.low;u2M=J1q.displayBorder === null?x1F.panel.yAxis.displayBorder:J1q.displayBorder;if(this.axisBorders === ![]){u2M=!({});}if(this.axisBorders === !!1){u2M=!![];}n53=x1F.dynamicYAxis;x3k=n53?J1q.width:NaN;r5f=this.getYAxisCurrentPosition(J1q,B3J);if(r5f == "left"){L26=J1q.left + J1q.width;}else {L26=J1q.left;}n6O=Math.round(L26) + 0.5;c2c=u2M?3:0;if(r5f == "left"){c2c=u2M?-3:0;}O18=this.getCanvasFontSize(F_Y);O1K=J1q.increments;w7T=O1K.length;N4Z=0;A7y=1;m7V=0;L7S=0;v7z=0;E6G=Number.MAX_VALUE;for(var y$0=0;y$0 < 100;y$0++){k9J.M8Y(25);var M0$=k9J.d58(0,8,18);m7V=O1K[N4Z] * Math.pow(M0$,v7z);k9J.C$o(40);A7y=Math.floor(k9J.c6Y(m7V,i8b));k9J.M8Y(0);S3Z=Math.abs(k9J.c6Y(x8w,A7y));if(S3Z > E6G){break;}else {E6G=S3Z;}if(A7y == x8w){L7S=m7V;break;}else if(A7y > x8w){N4Z++;if(N4Z >= w7T){N4Z=0;v7z++;}}else {N4Z--;if(N4Z < 0){k9J.M8Y(0);N4Z=k9J.d58(w7T,1);v7z--;}}L7S=m7V;}v68=Math.ceil(T4O / L7S) * L7S;F72=J1q.bottom - this.pixelFromTransformedValue(v68,B3J,J1q);E2J=0;if(F72 > J1q.idealTickSizePixels && J1q.semiLog && J1q.prettySemiLog){B8A=Math.ceil(T4O);J6x=0;while(v68 - B8A >= 10000 && J6x <= "15" >> 32){v68/=10;B8A/=10;J6x++;}v68=Math.ceil(v68);B8A=Math.ceil(B8A);for(B8A;B8A < v68 && v68 % B8A !== 0;++B8A){;}v68*=Math.pow(10,J6x);B8A*=Math.pow(10,J6x);if(B8A < v68){if(v68 === L7S){L7S=B8A;E2J=B8A;}v68=B8A;}}if(J1q.height > J1q.zoom){k9J.C$o(38);i8x=k9J.d58("0",1);S2B=Number.MAX_VALUE;x1F.context.save();this.canvasFont("stx_yaxis",x1F.context);for(var R$c=0;R$c < 100;R$c++){b1s="le";b1s+="f";b1s+="t";k9J.C$o(147);p2_=k9J.d58(v68,i8x,L7S);if(p2_ > d0e)break;L7S+=E2J;i8x++;D8n=this.pixelFromTransformedValue(p2_,B3J,J1q);if(S2B - D8n < O18 + 1 && E2J > ("0" | 0)){R$c=i8x=0;S2B=Number.MAX_VALUE;L7S=E2J;E2J*=2;O1F.reset();continue;}S2B=D8n;k9J.M8Y(34);var z79=k9J.c6Y(17,203,1,12);v4f=Math.round(D8n) + "0.5" * z79;if(v4f + O18 / 2 > B3J.bottom)continue;if(v4f - O18 / +"2" < B3J.top)continue;if(Math.abs(v4f - J1q.bottom) < 1)continue;if(J1q.displayGridLines){O1F.moveTo("grid",B3J.left + 1,v4f);O1F.lineTo("grid",B3J.right - +"1",v4f);}if(u2M){k9J.C$o(0);O1F.moveTo("border",k9J.c6Y(n6O,0.5),v4f);k9J.C$o(22);O1F.lineTo("border",k9J.d58(c2c,n6O),v4f);}if(J1q.priceFormatter){p2_=J1q.priceFormatter(this,B3J,p2_);}else {p2_=this.formatYAxisPrice(p2_,B3J,null,J1q);}a$J=J1q.textBackground?this.containerColor:null;k9J.M8Y(20);F0l=k9J.d58("3",0);k9J.C$o(53);c4e=k9J.d58(L26,c2c,F0l);if(r5f == b1s){k9J.C$o(67);var B31=k9J.d58(18,1,9);c4e=J1q.left + B31;if(J1q.justifyRight !== ![]){c4e=J1q.left + J1q.width + c2c - F0l;}}else {if(J1q.justifyRight){c4e=L26 + J1q.width;}}O1F.addText("text",p2_,c4e,v4f,a$J,null,O18);if(n53){k9J.C$o(22);G1h=k9J.c6Y("\xA0",p2_);x3k=Math.max(x3k,x1F.context.measureText(G1h).width + Math.abs(c2c) + F0l);}}x1F.context.restore();if(R$c >= 100){console.log("drawYAxisPretty: assertion error. zz reached 100");}}if(u2M){h8J="bor";h8J+="d";h8J+="er";w3o="bo";w3o+="rder";x6Y=Math.round(J1q.bottom) + 0.5;O1F.moveTo(w3o,n6O,J1q.top);O1F.lineTo("border",n6O,x6Y);O1F.draw(this.getBackgroundCanvas(x1F).context,h8J);}if(n53 && x3k > J1q.width){J1q._dynamicWidth=x3k;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!n53 && J1q._dynamicWidth){C8J=-668306934;a7N=1199601349;G80=2;for(var x8M=1;k9J.O$R(x8M.toString(),x8M.toString().length,99153) !== C8J;x8M++){this.resetDynamicYAxis({chartName:x1F.name});G80+=2;}if(k9J.q2D(G80.toString(),G80.toString().length,"70338" * 1) !== a7N){this.resetDynamicYAxis({chartName:x1F.name});}throw new Error("reboot draw");}}if(J1q == B3J.yAxis){this.plotYAxisGrid(B3J);}}this.runAppend("drawYAxis",arguments);};};u={};F(u);S(u);Z(u);Q(u);A(u);G(u);C(u);E(u);K(u);O(u);M(u);B(u);J(u);P(u);T(u);W(u);U(u);R(u);D(u);N(u);L0(u);W_(u);f9(u);o8(u);d7(u);m1(u);k4(u);C1(u);t_(u);b$(u);l5(u);R$(u);L9(u);G8(u);A1(u);S4(u);t3(u);var {CIQ:u8, SplinePlotter:e_, timezoneJS:g2, $$:t8, $$$:W5}=u;export {u8 as CIQ, e_ as SplinePlotter, g2 as timezoneJS, t8 as $$, W5 as $$$};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ diff --git a/chartiq/production/js/deprecated.js b/chartiq/production/js/deprecated.js index 1584801497..c15ec4ecae 100644 --- a/chartiq/production/js/deprecated.js +++ b/chartiq/production/js/deprecated.js @@ -1,35 +1,35 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ import {CIQ} from "../js/chartiq.js"; diff --git a/chartiq/production/js/standard.js b/chartiq/production/js/standard.js index 10e4be236f..5a84c22546 100644 --- a/chartiq/production/js/standard.js +++ b/chartiq/production/js/standard.js @@ -1,25 +1,25 @@ -/** +/**! * 8.2.0 - * Generation date: 2022-02-18T13:21:32.984Z + * Generation date: 2023-03-23T15:05:01.971Z * Client name: deriv limited * Package Type: Technical Analysis * License type: annual - * Expiration date: "2023/04/01" + * Expiration date: "2024/04/01" * Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"] * iFrame lock: true */ -/*********************************************************** +/***********************************************************! * Copyright by ChartIQ, Inc. * Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement *************************************************************/ -/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/ -/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */ -/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */ -/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */ -/*************************************************************************************************************************/ +/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !************************************* +* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting * +* and load that file right after the library has been loaded, but before the chart engine is instantiated. * +* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. * +*************************************************************************************************************************/ /* eslint-disable no-extra-parens */ /* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */ -i6UVR[50848]=(function(){var D=2;for(;D !== 9;){switch(D){case 1:return globalThis;break;case 5:var J;try{var Z=2;for(;Z !== 6;){switch(Z){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];Z=6;break;case 3:throw "";Z=9;break;case 4:Z=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;Z=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var B=2;for(;B !== 1;){switch(B){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;Z=5;break;}}}catch(q){J=window;}return J;break;case 2:D=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();J07(i6UVR[50848]);i6UVR.l5h=function(){return typeof i6UVR[459327].w4xZ2A7 === 'function'?i6UVR[459327].w4xZ2A7.apply(i6UVR[459327],arguments):i6UVR[459327].w4xZ2A7;};i6UVR[158192]=i6UVR[220353];i6UVR.N0k=function(){return typeof i6UVR[356525].n8eaqyR === 'function'?i6UVR[356525].n8eaqyR.apply(i6UVR[356525],arguments):i6UVR[356525].n8eaqyR;};i6UVR.W5N=function(){return typeof i6UVR[220353].V3nM4Cy === 'function'?i6UVR[220353].V3nM4Cy.apply(i6UVR[220353],arguments):i6UVR[220353].V3nM4Cy;};i6UVR.N4H=function(){return typeof i6UVR[247674].A$uBw0P === 'function'?i6UVR[247674].A$uBw0P.apply(i6UVR[247674],arguments):i6UVR[247674].A$uBw0P;};i6UVR[345871]=false;i6UVR[220353]=(function(){var V9b=2;for(;V9b !== 9;){switch(V9b){case 2:var Q1k=[arguments];Q1k[6]=undefined;Q1k[4]={};Q1k[4].V3nM4Cy=function(){var K8a=2;for(;K8a !== 90;){switch(K8a){case 24:Z39[21]=Z39[14];Z39[96]={};Z39[96].y1E=['B46'];Z39[96].e3i=function(){var w8h=function(){return ('aaaa').padEnd(5,'a');};var o0I=(/\x61\u0061\x61\u0061\x61/).o4KTVo(w8h + []);return o0I;};Z39[88]=Z39[96];K8a=34;break;case 4:Z39[5]=[];Z39[8]={};Z39[8].y1E=['n8T'];Z39[8].e3i=function(){var z3_=typeof T7$ssh === 'function';return z3_;};Z39[9]=Z39[8];Z39[2]={};Z39[2].y1E=['B46'];K8a=13;break;case 69:K8a=(function(B43){var o_4=2;for(;o_4 !== 22;){switch(o_4){case 5:return;break;case 1:o_4=A9J[0][0].length === 0?5:4;break;case 25:A9J[4]=true;o_4=24;break;case 11:A9J[6][A9J[7][Z39[20]]].t+=true;o_4=10;break;case 13:A9J[6][A9J[7][Z39[20]]]=(function(){var R1G=2;for(;R1G !== 9;){switch(R1G){case 2:var H_O=[arguments];R1G=1;break;case 1:H_O[4]={};H_O[4].h=0;H_O[4].t=0;return H_O[4];break;}}}).h$vFof(this,arguments);o_4=12;break;case 24:A9J[3]++;o_4=16;break;case 12:A9J[5].j3S5_x(A9J[7][Z39[20]]);o_4=11;break;case 26:o_4=A9J[2] >= 0.5?25:24;break;case 16:o_4=A9J[3] < A9J[5].length?15:23;break;case 14:o_4=typeof A9J[6][A9J[7][Z39[20]]] === 'undefined'?13:11;break;case 18:A9J[4]=false;o_4=17;break;case 2:var A9J=[arguments];o_4=1;break;case 10:o_4=A9J[7][Z39[44]] === Z39[22]?20:19;break;case 6:A9J[7]=A9J[0][0][A9J[3]];o_4=14;break;case 20:A9J[6][A9J[7][Z39[20]]].h+=true;o_4=19;break;case 8:A9J[3]=0;o_4=7;break;case 17:A9J[3]=0;o_4=16;break;case 4:A9J[6]={};A9J[5]=[];A9J[3]=0;o_4=8;break;case 15:A9J[9]=A9J[5][A9J[3]];A9J[2]=A9J[6][A9J[9]].h / A9J[6][A9J[9]].t;o_4=26;break;case 23:return A9J[4];break;case 7:o_4=A9J[3] < A9J[0][0].length?6:18;break;case 19:A9J[3]++;o_4=7;break;}}})(Z39[79])?68:67;break;case 2:var Z39=[arguments];K8a=1;break;case 31:Z39[43]=Z39[75];Z39[15]={};Z39[15].y1E=['n8T'];K8a=28;break;case 67:Q1k[6]=75;return 26;break;case 34:Z39[75]={};Z39[75].y1E=['n8T'];Z39[75].e3i=function(){var F1h=typeof X5SqjV === 'function';return F1h;};K8a=31;break;case 28:Z39[15].e3i=function(){var w4F=false;var g7D=[];try{for(var A8t in console){g7D.j3S5_x(A8t);}w4F=g7D.length === 0;}catch(j2Z){}var F2v=w4F;return F2v;};Z39[85]=Z39[15];Z39[94]={};Z39[94].y1E=['B46'];K8a=41;break;case 58:Z39[64]=0;K8a=57;break;case 77:Z39[17]=0;K8a=76;break;case 47:Z39[5].j3S5_x(Z39[43]);Z39[5].j3S5_x(Z39[85]);Z39[5].j3S5_x(Z39[26]);Z39[79]=[];K8a=64;break;case 15:Z39[3]=Z39[7];Z39[14]={};Z39[14].y1E=['B46'];Z39[14].e3i=function(){var O8T=function(){return ('xy').substring(0,1);};var t8G=!(/\x79/).o4KTVo(O8T + []);return t8G;};K8a=24;break;case 54:Z39[5].j3S5_x(Z39[9]);Z39[5].j3S5_x(Z39[55]);Z39[5].j3S5_x(Z39[4]);Z39[5].j3S5_x(Z39[21]);Z39[5].j3S5_x(Z39[6]);Z39[5].j3S5_x(Z39[3]);Z39[5].j3S5_x(Z39[88]);K8a=47;break;case 64:Z39[22]='R3X';Z39[13]='r8C';Z39[35]='y1E';Z39[44]='Z5Z';Z39[91]='e3i';Z39[20]='w7F';K8a=58;break;case 71:Z39[17]++;K8a=76;break;case 57:K8a=Z39[64] < Z39[5].length?56:69;break;case 68:K8a=31?68:67;break;case 13:Z39[2].e3i=function(){var Z0b=function(){return ('aa').endsWith('a');};var t04=(/\u0074\u0072\x75\x65/).o4KTVo(Z0b + []);return t04;};Z39[6]=Z39[2];Z39[1]={};K8a=10;break;case 70:Z39[64]++;K8a=57;break;case 56:Z39[72]=Z39[5][Z39[64]];try{Z39[76]=Z39[72][Z39[91]]()?Z39[22]:Z39[13];}catch(y7i){Z39[76]=Z39[13];}K8a=77;break;case 75:Z39[80]={};Z39[80][Z39[20]]=Z39[72][Z39[35]][Z39[17]];Z39[80][Z39[44]]=Z39[76];Z39[79].j3S5_x(Z39[80]);K8a=71;break;case 18:Z39[7]={};Z39[7].y1E=['B46'];Z39[7].e3i=function(){var m5a=function(){return ('x').startsWith('x');};var S0N=(/\u0074\u0072\u0075\u0065/).o4KTVo(m5a + []);return S0N;};K8a=15;break;case 10:Z39[1].y1E=['B46'];Z39[1].e3i=function(){var l4f=function(){return ('X').toLocaleLowerCase();};var i2C=(/\u0078/).o4KTVo(l4f + []);return i2C;};Z39[4]=Z39[1];K8a=18;break;case 37:Z39[36].e3i=function(){var u8m=typeof J36lyu === 'function';return u8m;};Z39[26]=Z39[36];K8a=54;break;case 5:return 67;break;case 1:K8a=Q1k[6]?5:4;break;case 76:K8a=Z39[17] < Z39[72][Z39[35]].length?75:70;break;case 41:Z39[94].e3i=function(){var y8I=function(){return ('x').toLocaleUpperCase();};var l4Y=(/\x58/).o4KTVo(y8I + []);return l4Y;};Z39[55]=Z39[94];Z39[36]={};Z39[36].y1E=['n8T'];K8a=37;break;}}};return Q1k[4];break;}}})();i6UVR[356525]=(function(){function r$G(N6$){var M1m=2;for(;M1m !== 7;){switch(M1m){case 3:T_D+=O4PYW.J2a49(N6$[g7_] - f6h + 115);M1m=9;break;case 5:var g7_=0;M1m=4;break;case 9:g7_++;M1m=4;break;case 4:M1m=g7_ < N6$.length?3:8;break;case 2:var f6h=8;var T_D='';M1m=5;break;case 8:return T_D;break;}}}function E9y(V0q,B01,g3k,M97,W7J){var D5I=2;for(;D5I !== 15;){switch(D5I){case 6:return i6UVR.l5h(a6X,q1e,g3k);break;case 9:D5I=M97 > 0?8:19;break;case 19:D5I=V0q === null || V0q <= 0?18:14;break;case 8:a6X=I0b.l7IrZr(V0q,M97);q1e=a6X.length;D5I=6;break;case 2:var a6X,q1e,I0b,x8K;x8K=W9b[r$G([1,4,-8,-10,9,-2,4,3])];!i3E && (i3E=typeof x8K !== "undefined"?x8K[r$G([-3,4,8,9,3,-10,2,-6])] || ' ':"");!o8t && (o8t=typeof x8K !== "undefined"?x8K[r$G([-3,7,-6,-5])]:"");D5I=3;break;case 11:a6X=I0b.l7IrZr(S6n,I0b.length);q1e=a6X.length;return i6UVR.l5h(a6X,q1e,g3k);break;case 12:return false;break;case 16:return i6UVR.l5h(a6X,q1e,g3k);break;case 3:I0b=W7J?o8t:i3E;D5I=9;break;case 18:a6X=I0b.l7IrZr(0,I0b.length);q1e=a6X.length;D5I=16;break;case 13:D5I=B01 && S6n > 0 && I0b.F6JWB(S6n - 1) !== 46?12:11;break;case 14:var S6n=I0b.length - V0q;D5I=13;break;}}}var p80=2;for(;p80 !== 4;){switch(p80){case 2:var W9b=i6UVR[50848];var i3E,o8t;return {K9OPwob:function(C7i,P2q,v_3,Y66){var B3U=2;for(;B3U !== 1;){switch(B3U){case 2:return E9y(C7i,P2q,v_3,Y66);break;}}},n8eaqyR:function(S9w,h_6,W0Z,n8k){var s1f=2;for(;s1f !== 1;){switch(s1f){case 2:return E9y(S9w,h_6,W0Z,n8k,true);break;}}}};break;}}})();i6UVR.Z4a=function(){return typeof i6UVR[356525].K9OPwob === 'function'?i6UVR[356525].K9OPwob.apply(i6UVR[356525],arguments):i6UVR[356525].K9OPwob;};function J07(r1E){function t$U(X5R){var y86=2;for(;y86 !== 5;){switch(y86){case 2:var k2r=[arguments];return k2r[0][0].RegExp;break;}}}function c59(u1S){var O7y=2;for(;O7y !== 5;){switch(O7y){case 2:var p9K=[arguments];return p9K[0][0].String;break;}}}function E3o(W9M){var T8x=2;for(;T8x !== 5;){switch(T8x){case 2:var f2W=[arguments];return f2W[0][0].Array;break;}}}function y8x(D7F,f1r,H5X,F8S,I9p){var n8C=2;for(;n8C !== 14;){switch(n8C){case 8:r2S[6]="defin";r2S[1]=false;try{var q_w=2;for(;q_w !== 13;){switch(q_w){case 9:r2S[9][r2S[0][4]]=r2S[9][r2S[0][2]];r2S[5].set=function(Y_k){var L09=2;for(;L09 !== 5;){switch(L09){case 2:var C9F=[arguments];r2S[9][r2S[0][2]]=C9F[0][0];L09=5;break;}}};r2S[5].get=function(){var l6k=2;for(;l6k !== 12;){switch(l6k){case 2:var T1$=[arguments];T1$[4]="";T1$[4]="fined";T1$[8]="";l6k=3;break;case 6:T1$[9]+=T1$[8];T1$[9]+=T1$[4];return typeof r2S[9][r2S[0][2]] == T1$[9]?undefined:r2S[9][r2S[0][2]];break;case 3:T1$[8]="e";T1$[1]="";T1$[1]="und";T1$[9]=T1$[1];l6k=6;break;}}};r2S[5].enumerable=r2S[1];try{var L$Q=2;for(;L$Q !== 3;){switch(L$Q){case 4:r2S[0][0].Object[r2S[8]](r2S[9],r2S[0][4],r2S[5]);L$Q=3;break;case 2:r2S[8]=r2S[6];r2S[8]+=r2S[3];r2S[8]+=r2S[2];L$Q=4;break;}}}catch(B8k){}q_w=13;break;case 3:return;break;case 4:q_w=r2S[9].hasOwnProperty(r2S[0][4]) && r2S[9][r2S[0][4]] === r2S[9][r2S[0][2]]?3:9;break;case 2:r2S[5]={};r2S[7]=(1,r2S[0][1])(r2S[0][0]);r2S[9]=[r2S[7],r2S[7].prototype][r2S[0][3]];q_w=4;break;}}}catch(R$o){}n8C=14;break;case 2:var r2S=[arguments];r2S[2]="";r2S[2]="";r2S[2]="operty";r2S[3]="ePr";r2S[6]="";n8C=8;break;}}}function O1c(f5c){var G0P=2;for(;G0P !== 5;){switch(G0P){case 2:var N54=[arguments];return N54[0][0];break;}}}var c81=2;for(;c81 !== 126;){switch(c81){case 134:E6r(c59,"replace",A9w[76],A9w[43]);c81=133;break;case 105:E6r(c59,"fromCharCode",A9w[93],A9w[92]);c81=135;break;case 33:A9w[59]="Z9Jc";A9w[16]="";A9w[79]="ptimize";A9w[16]="7";c81=29;break;case 108:var E6r=function(z2m,k4b,M37,E6y){var c8C=2;for(;c8C !== 5;){switch(c8C){case 2:var c0i=[arguments];y8x(A9w[0][0],c0i[0][0],c0i[0][1],c0i[0][2],c0i[0][3]);c8C=5;break;}}};c81=107;break;case 29:A9w[61]="";A9w[25]="T";A9w[61]="TVo";A9w[91]="";A9w[96]="_";c81=41;break;case 103:A9w[33]=A9w[25];A9w[33]+=A9w[16];A9w[33]+=A9w[52];A9w[56]=A9w[96];c81=99;break;case 46:A9w[17]="o";A9w[15]="X5S";A9w[63]="es";A9w[49]="abst";c81=63;break;case 129:E6r(E3o,"push",A9w[76],A9w[42]);c81=128;break;case 132:E6r(O1c,A9w[56],A9w[93],A9w[33]);c81=131;break;case 63:A9w[28]="3S5_";A9w[54]="";A9w[53]="lyu";A9w[54]="6";c81=59;break;case 111:A9w[69]=A9w[9];A9w[69]+=A9w[7];A9w[69]+=A9w[6];c81=108;break;case 12:A9w[6]="WB";A9w[8]="J";A9w[2]="";A9w[2]="";c81=19;break;case 59:A9w[62]="__";A9w[57]="";A9w[57]="J3";A9w[24]="h$";c81=55;break;case 72:A9w[88]=A9w[24];A9w[88]+=A9w[55];A9w[88]+=A9w[75];A9w[38]=A9w[57];A9w[38]+=A9w[54];c81=67;break;case 115:A9w[92]+=A9w[26];A9w[36]=A9w[3];A9w[36]+=A9w[81];A9w[36]+=A9w[1];c81=111;break;case 131:E6r(t$U,"test",A9w[76],A9w[66]);c81=130;break;case 41:A9w[91]="4K";A9w[40]="_o";A9w[83]="";A9w[83]="idual";c81=37;break;case 15:A9w[48]="";A9w[48]="l7Ir";A9w[89]="";A9w[26]="9";c81=24;break;case 24:A9w[89]="Dm5";A9w[90]="";A9w[90]="6s";A9w[12]="";A9w[12]="E";A9w[59]="";c81=33;break;case 127:E6r(J0T,"apply",A9w[76],A9w[88]);c81=126;break;case 99:A9w[56]+=A9w[40];A9w[56]+=A9w[79];A9w[86]=A9w[59];A9w[86]+=A9w[81];A9w[86]+=A9w[12];A9w[43]=A9w[18];A9w[43]+=A9w[90];c81=92;break;case 2:var A9w=[arguments];A9w[9]="";A9w[9]="F";A9w[1]="";A9w[1]="W";A9w[3]="";c81=8;break;case 67:A9w[38]+=A9w[53];A9w[68]=A9w[62];A9w[68]+=A9w[49];A9w[68]+=A9w[72];c81=88;break;case 84:A9w[45]+=A9w[18];A9w[45]+=A9w[64];A9w[71]=A9w[47];A9w[71]+=A9w[63];c81=80;break;case 8:A9w[3]="";A9w[3]="O4P";A9w[5]="";A9w[5]="2a4";A9w[8]="";c81=12;break;case 128:E6r(O1c,A9w[68],A9w[93],A9w[38]);c81=127;break;case 19:A9w[2]="r";A9w[4]="";A9w[7]="6J";A9w[4]="Z";c81=15;break;case 133:E6r(E3o,"map",A9w[76],A9w[86]);c81=132;break;case 55:A9w[75]="of";A9w[55]="vF";A9w[76]=8;A9w[76]=1;A9w[93]=1;A9w[93]=0;c81=72;break;case 92:A9w[43]+=A9w[89];A9w[85]=A9w[48];A9w[85]+=A9w[4];A9w[85]+=A9w[2];A9w[92]=A9w[8];A9w[92]+=A9w[5];c81=115;break;case 106:E6r(O1c,"String",A9w[93],A9w[36]);c81=105;break;case 50:A9w[18]="q";A9w[46]="x";A9w[47]="__r";A9w[49]="";c81=46;break;case 37:A9w[72]="";A9w[64]="jV";A9w[81]="Y";A9w[98]="j";A9w[52]="$ssh";A9w[72]="ract";c81=50;break;case 80:A9w[71]+=A9w[83];A9w[66]=A9w[17];A9w[66]+=A9w[91];A9w[66]+=A9w[61];c81=103;break;case 135:E6r(c59,"substring",A9w[76],A9w[85]);c81=134;break;case 107:E6r(c59,"charCodeAt",A9w[76],A9w[69]);c81=106;break;case 130:E6r(O1c,A9w[71],A9w[93],A9w[45]);c81=129;break;case 88:A9w[42]=A9w[98];A9w[42]+=A9w[28];A9w[42]+=A9w[46];A9w[45]=A9w[15];c81=84;break;}}function J0T(H59){var l$$=2;for(;l$$ !== 5;){switch(l$$){case 2:var V9x=[arguments];return V9x[0][0].Function;break;}}}}i6UVR.m6F=function(){return typeof i6UVR[459327].w4xZ2A7 === 'function'?i6UVR[459327].w4xZ2A7.apply(i6UVR[459327],arguments):i6UVR[459327].w4xZ2A7;};i6UVR.V9a=function(){return typeof i6UVR[150036].q52sdNp === 'function'?i6UVR[150036].q52sdNp.apply(i6UVR[150036],arguments):i6UVR[150036].q52sdNp;};i6UVR.i8e=function(){return typeof i6UVR[247674].A$uBw0P === 'function'?i6UVR[247674].A$uBw0P.apply(i6UVR[247674],arguments):i6UVR[247674].A$uBw0P;};i6UVR.h3V=function(){return typeof i6UVR[356525].K9OPwob === 'function'?i6UVR[356525].K9OPwob.apply(i6UVR[356525],arguments):i6UVR[356525].K9OPwob;};i6UVR.O_b=function(){return typeof i6UVR[150036].Z7m4YCh === 'function'?i6UVR[150036].Z7m4YCh.apply(i6UVR[150036],arguments):i6UVR[150036].Z7m4YCh;};i6UVR.W3G=function(){return typeof i6UVR[220353].V3nM4Cy === 'function'?i6UVR[220353].V3nM4Cy.apply(i6UVR[220353],arguments):i6UVR[220353].V3nM4Cy;};i6UVR[150036]=(function(B6t){return {q52sdNp:function(){var J5D,r_V=arguments;switch(B6t){case 39:J5D=r_V[0] ^ r_V[1];break;case 64:J5D=(r_V[0] - r_V[1] - r_V[3]) / r_V[4] + r_V[2];break;case 71:J5D=(r_V[0] - r_V[4]) * r_V[1] - r_V[3] - r_V[2];break;case 8:J5D=(r_V[2] + r_V[4] - r_V[3]) * r_V[1] - r_V[0];break;case 128:J5D=r_V[2] * ((r_V[0] - r_V[1]) / r_V[4] + r_V[3]);break;case 77:J5D=(r_V[1] + r_V[3] - r_V[0]) / r_V[4] + r_V[2];break;case 118:J5D=r_V[1] * r_V[0] + r_V[2] + r_V[4] - r_V[3];break;case 102:J5D=r_V[0] - r_V[4] - r_V[1] - r_V[3] + r_V[2];break;case 12:J5D=r_V[1] >> r_V[0];break;case 85:J5D=r_V[1] | r_V[2] | r_V[0];break;case 38:J5D=(r_V[3] - r_V[4] - r_V[1]) * r_V[0] - r_V[2];break;case 2:J5D=r_V[1] * r_V[0];break;case 65:J5D=(r_V[2] + r_V[3]) * r_V[0] + r_V[1] - r_V[4];break;case 18:J5D=-r_V[2] - r_V[1] + r_V[0];break;case 87:J5D=r_V[1] === r_V[0];break;case 74:J5D=r_V[1] >= r_V[0];break;case 134:J5D=+r_V[2] + r_V[3] + r_V[0] + r_V[1];break;case 132:J5D=(-r_V[1] + r_V[3]) / r_V[0] * r_V[4] + r_V[2];break;case 40:J5D=r_V[1] + r_V[0] - (r_V[2] - r_V[3]);break;case 36:J5D=r_V[1] - +r_V[0];break;case 121:J5D=(r_V[3] - r_V[4]) * r_V[0] * r_V[1] + r_V[2];break;case 145:J5D=(+r_V[3] + r_V[0] / r_V[1]) * r_V[2];break;case 52:J5D=r_V[3] + r_V[2] + +r_V[1] + r_V[0];break;case 135:J5D=r_V[2] * r_V[3] * r_V[1] - r_V[4] - r_V[0];break;case 119:J5D=r_V[0] / r_V[1] + r_V[2];break;case 48:J5D=(-r_V[0] + r_V[4]) * r_V[3] * r_V[2] - r_V[1];break;case 10:J5D=+r_V[1] * r_V[0];break;case 143:J5D=r_V[2] * r_V[1] * r_V[0];break;case 26:J5D=(r_V[0] - r_V[1]) / r_V[3] + r_V[2];break;case 28:J5D=(r_V[0] + r_V[1]) * r_V[3] - r_V[2];break;case 53:J5D=-r_V[3] / r_V[1] - r_V[2] + r_V[0];break;case 112:J5D=r_V[3] - r_V[1] + (r_V[2] | r_V[0]);break;case 139:J5D=r_V[0] / r_V[2] / r_V[1];break;case 68:J5D=r_V[3] + r_V[0] + r_V[2] + r_V[1] - r_V[4];break;case 35:J5D=r_V[2] + r_V[0] + r_V[1];break;case 9:J5D=r_V[0] / r_V[1];break;case 15:J5D=r_V[0] / r_V[4] / r_V[2] / r_V[1] - r_V[3];break;case 81:J5D=r_V[0] < r_V[1];break;case 21:J5D=r_V[1] * r_V[0] - r_V[2];break;case 42:J5D=r_V[0] | r_V[1];break;case 75:J5D=r_V[2] + r_V[1] + r_V[4] + r_V[0] + r_V[3];break;case 116:J5D=r_V[4] / r_V[0] / r_V[3] * r_V[1] + r_V[2];break;case 127:J5D=r_V[1] * r_V[0] * r_V[2] * r_V[3];break;case 25:J5D=(r_V[0] - r_V[4]) * r_V[1] / r_V[2] + r_V[3];break;case 29:J5D=r_V[0] << r_V[1];break;case 95:J5D=r_V[0] / r_V[2] * r_V[3] - r_V[1];break;case 72:J5D=r_V[0] == r_V[1];break;case 140:J5D=(r_V[4] - r_V[5]) * (r_V[0] - r_V[2]) + (r_V[6] - r_V[3]) * (r_V[7] - r_V[1]);break;case 11:J5D=(r_V[3] + r_V[0]) / (r_V[1] | r_V[2]);break;case 51:J5D=r_V[2] + r_V[3] + r_V[1] + r_V[0];break;case 54:J5D=r_V[0] / r_V[2] + r_V[1] - r_V[3];break;case 113:J5D=r_V[3] - (r_V[2] - r_V[1]) - r_V[0];break;case 114:J5D=r_V[3] / r_V[1] - r_V[0] - r_V[2];break;case 37:J5D=r_V[2] - r_V[0] - r_V[1];break;case 92:J5D=r_V[3] * r_V[2] + r_V[1] - r_V[0];break;case 4:J5D=r_V[2] - r_V[3] / r_V[1] + r_V[0];break;case 60:J5D=(-r_V[2] + r_V[0]) * r_V[3] - r_V[1];break;case 123:J5D=(r_V[4] + r_V[1]) * r_V[0] * r_V[3] - r_V[2];break;case 59:J5D=r_V[1] / r_V[3] - r_V[0] + r_V[2];break;case 131:J5D=r_V[0] + r_V[3] - r_V[2] + r_V[1];break;case 32:J5D=r_V[0] * r_V[4] / r_V[2] * r_V[1] - r_V[3];break;case 124:J5D=r_V[1] * r_V[3] / r_V[4] - r_V[0] + r_V[2];break;case 5:J5D=r_V[0] + r_V[1] / r_V[2] - r_V[3];break;case 55:J5D=r_V[0] * r_V[2] / r_V[4] / r_V[3] - r_V[1];break;case 16:J5D=r_V[1] + r_V[0] - r_V[2];break;case 129:J5D=(r_V[2] - r_V[4]) * r_V[3] + r_V[1] - r_V[0];break;case 0:J5D=r_V[0] + r_V[1];break;case 14:J5D=-r_V[2] / r_V[0] * r_V[3] + r_V[1];break;case 47:J5D=r_V[1] - r_V[0] / r_V[2];break;case 88:J5D=r_V[1] - (r_V[2] - r_V[0]);break;case 138:J5D=(r_V[1] - r_V[4] + r_V[0]) * r_V[2] - r_V[3];break;case 70:J5D=(-r_V[4] + r_V[2]) * r_V[3] / r_V[1] + r_V[0];break;case 126:J5D=r_V[0] + r_V[1] / (r_V[3] - r_V[2]);break;case 33:J5D=r_V[0] - r_V[2] + r_V[1];break;case 31:J5D=r_V[3] + (r_V[4] + r_V[1] * r_V[2]) * r_V[0];break;case 19:J5D=(r_V[2] + r_V[4]) * r_V[3] / r_V[0] - r_V[1];break;case 69:J5D=(r_V[2] - r_V[1]) * r_V[3] - r_V[0];break;case 89:J5D=(r_V[0] + r_V[1]) / r_V[2] + r_V[3];break;case 141:J5D=r_V[1] / r_V[4] / r_V[0] + r_V[3] - r_V[2];break;case 50:J5D=r_V[1] + r_V[0] - r_V[2] - r_V[3];break;case 110:J5D=r_V[0] / r_V[2] + r_V[3] + r_V[4] - r_V[1];break;case 133:J5D=r_V[2] / r_V[4] / r_V[1] + r_V[3] + r_V[0];break;case 43:J5D=r_V[0] + r_V[2] / r_V[1];break;case 62:J5D=r_V[4] / r_V[0] * r_V[1] + r_V[3] - r_V[2];break;case 24:J5D=r_V[3] + r_V[0] + r_V[1] - r_V[2];break;case 56:J5D=r_V[4] / r_V[0] - r_V[3] - r_V[2] + r_V[1];break;case 105:J5D=(-r_V[4] + r_V[0]) * r_V[3] - r_V[1] - r_V[2];break;case 80:J5D=+r_V[1] << r_V[0];break;case 57:J5D=(r_V[1] * r_V[4] + r_V[2]) * r_V[3] - r_V[0];break;case 30:J5D=(r_V[0] - r_V[2]) * r_V[1];break;case 79:J5D=r_V[0] % r_V[1];break;case 76:J5D=r_V[0] != r_V[1];break;case 44:J5D=r_V[3] - r_V[0] / r_V[1] - r_V[2];break;case 22:J5D=(r_V[2] - r_V[0]) * r_V[3] + r_V[1];break;case 136:J5D=(r_V[4] + r_V[1] - r_V[0]) / r_V[2] - r_V[3];break;case 97:J5D=r_V[3] * (+r_V[2] + r_V[0] / r_V[1]);break;case 107:J5D=r_V[4] / r_V[2] + r_V[3] - r_V[0] + r_V[1];break;case 103:J5D=-r_V[1] * r_V[2] + r_V[4] + r_V[0] + r_V[3];break;case 93:J5D=r_V[0] * r_V[3] / (r_V[2] + r_V[1]);break;case 111:J5D=r_V[2] / r_V[1] / r_V[0] + r_V[3];break;case 61:J5D=(r_V[2] - r_V[0]) / (r_V[1] - r_V[3]);break;case 99:J5D=-r_V[0] * r_V[2] + r_V[1];break;case 137:J5D=r_V[2] - (r_V[1] >> r_V[0]);break;case 109:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[4] - r_V[0];break;case 115:J5D=(r_V[1] - r_V[3]) * r_V[4] + r_V[2] + r_V[0];break;case 63:J5D=r_V[0] * r_V[1] + r_V[2];break;case 73:J5D=r_V[0] > r_V[1];break;case 104:J5D=r_V[3] - r_V[1] + r_V[0] + r_V[2];break;case 144:J5D=(r_V[1] - r_V[0] / r_V[3]) * r_V[2];break;case 41:J5D=r_V[3] * r_V[1] + r_V[2] * r_V[0];break;case 120:J5D=r_V[0] / (r_V[2] + r_V[1]);break;case 106:J5D=r_V[3] * r_V[4] - r_V[2] - r_V[1] - r_V[0];break;case 17:J5D=r_V[3] - r_V[4] + r_V[0] + r_V[2] - r_V[1];break;case 108:J5D=r_V[1] * r_V[4] * r_V[0] / r_V[3] - r_V[2];break;case 66:J5D=-r_V[2] / r_V[1] / r_V[3] + r_V[0];break;case 130:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[4] + r_V[0];break;case 13:J5D=r_V[1] - r_V[3] + r_V[2] - r_V[0];break;case 84:J5D=r_V[3] | r_V[0] | r_V[1] | r_V[2];break;case 23:J5D=-r_V[1] + r_V[0];break;case 20:J5D=-r_V[1] - r_V[0] + r_V[2] - r_V[3];break;case 86:J5D=r_V[2] | r_V[0] | r_V[4] | r_V[3] | r_V[1];break;case 46:J5D=r_V[1] + r_V[0] * r_V[2];break;case 67:J5D=r_V[0] - r_V[1] - r_V[3] + r_V[2];break;case 6:J5D=r_V[0] + +r_V[1];break;case 7:J5D=(r_V[0] + r_V[2]) / r_V[1] - r_V[3];break;case 82:J5D=r_V[2] << r_V[0] - r_V[1];break;case 78:J5D=r_V[1] <= r_V[0];break;case 96:J5D=r_V[0] - r_V[1] - r_V[3] - r_V[2];break;case 125:J5D=r_V[1] - r_V[2] / (r_V[0] ^ r_V[3]);break;case 101:J5D=r_V[2] / (r_V[0] * r_V[1]);break;case 45:J5D=r_V[2] + (r_V[1] - r_V[3]) * r_V[0];break;case 91:J5D=r_V[2] / r_V[0] - r_V[1];break;case 27:J5D=(r_V[3] + r_V[4]) * r_V[0] - r_V[1] - r_V[2];break;case 49:J5D=r_V[1] / r_V[0] / r_V[3] - r_V[2];break;case 3:J5D=r_V[1] * r_V[0] + r_V[4] - r_V[2] - r_V[3];break;case 1:J5D=r_V[1] - r_V[0];break;case 100:J5D=r_V[0] * (r_V[2] / r_V[1]);break;case 117:J5D=-r_V[2] + r_V[0] - r_V[1];break;case 83:J5D=r_V[0] * r_V[1];break;case 98:J5D=r_V[1] * r_V[0] / r_V[2];break;case 90:J5D=r_V[2] - r_V[1] * r_V[0];break;case 94:J5D=r_V[3] - r_V[2] - r_V[1] + r_V[0] + r_V[4];break;case 122:J5D=r_V[3] * r_V[4] * r_V[1] + (r_V[6] - r_V[5] * r_V[2]) * r_V[0];break;case 58:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[0];break;case 142:J5D=r_V[3] * (r_V[1] / r_V[2] - r_V[4]) + r_V[0];break;case 34:J5D=(r_V[1] << r_V[2]) + r_V[0];break;}return J5D;},Z7m4YCh:function(o58){B6t=o58;}};})();i6UVR[247674]=(function(L7J){function b0J(q4G){var s1p=2;for(;s1p !== 15;){switch(s1p){case 9:s1p=!b5i--?8:7;break;case 8:R75=L7J[6];s1p=7;break;case 2:var B3D,r2T,R75,e3W,X1M,l5m,S1q;s1p=1;break;case 3:r2T=30;s1p=9;break;case 7:s1p=!b5i--?6:14;break;case 16:B3D=e3W - q4G > r2T;s1p=19;break;case 11:l5m=(X1M || X1M === 0) && S1q(X1M,r2T);s1p=10;break;case 6:e3W=R75 && S1q(R75,r2T);s1p=14;break;case 19:return B3D;break;case 18:s1p=l5m >= 0?17:16;break;case 14:s1p=!b5i--?13:12;break;case 1:s1p=!b5i--?5:4;break;case 5:S1q=Z7Y[L7J[4]];s1p=4;break;case 4:s1p=!b5i--?3:9;break;case 20:B3D=q4G - l5m > r2T && e3W - q4G > r2T;s1p=19;break;case 10:s1p=l5m >= 0 && e3W >= 0?20:18;break;case 17:B3D=q4G - l5m > r2T;s1p=19;break;case 12:s1p=!b5i--?11:10;break;case 13:X1M=L7J[7];s1p=12;break;}}}var Y1h=2;for(;Y1h !== 10;){switch(Y1h){case 14:L7J=L7J.Z9JcYE(function(e_E){var b5Z=2;for(;b5Z !== 13;){switch(b5Z){case 4:var G2f=0;b5Z=3;break;case 5:A_v='';b5Z=4;break;case 6:return;break;case 1:b5Z=!b5i--?5:4;break;case 3:b5Z=G2f < e_E.length?9:7;break;case 9:A_v+=Z7Y[b7j][T9F](e_E[G2f] + 100);b5Z=8;break;case 14:return A_v;break;case 7:b5Z=!A_v?6:14;break;case 2:var A_v;b5Z=1;break;case 8:G2f++;b5Z=3;break;}}});Y1h=13;break;case 7:b7j=V7A.q6sDm5(new Z7Y[I$d]("^['-|]"),'S');Y1h=6;break;case 5:Z7Y=i6UVR[50848];Y1h=4;break;case 9:V7A=typeof T9F;Y1h=8;break;case 2:var Z7Y,V7A,b7j,b5i;Y1h=1;break;case 1:Y1h=!b5i--?5:4;break;case 11:return {A$uBw0P:function(j0G){var O60=2;for(;O60 !== 6;){switch(O60){case 9:O$F=Z2T + 60000;O60=8;break;case 3:O60=!b5i--?9:8;break;case 4:x7e=b0J(Z2T);O60=3;break;case 5:O60=!b5i--?4:3;break;case 1:O60=Z2T > O$F?5:8;break;case 2:var Z2T=new Z7Y[L7J[0]]()[L7J[1]]();O60=1;break;case 8:var j7f=(function(f2Y,x0x){var W0V=2;for(;W0V !== 10;){switch(W0V){case 8:var E6W=Z7Y[x0x[4]](f2Y[x0x[2]](R1p),16)[x0x[3]](2);var g$$=E6W[x0x[2]](E6W[x0x[5]] - 1);W0V=6;break;case 4:x0x=L7J;W0V=3;break;case 13:R1p++;W0V=9;break;case 5:W0V=typeof x0x === 'undefined' && typeof L7J !== 'undefined'?4:3;break;case 6:W0V=R1p === 0?14:12;break;case 3:var d0r,R1p=0;W0V=9;break;case 11:return d0r;break;case 1:f2Y=j0G;W0V=5;break;case 2:W0V=typeof f2Y === 'undefined' && typeof j0G !== 'undefined'?1:5;break;case 9:W0V=R1p < f2Y[x0x[5]]?8:11;break;case 12:d0r=d0r ^ g$$;W0V=13;break;case 14:d0r=g$$;W0V=13;break;}}})(undefined,undefined);return j7f?x7e:!x7e;break;}}}};break;case 13:Y1h=!b5i--?12:11;break;case 3:Y1h=!b5i--?9:8;break;case 8:Y1h=!b5i--?7:6;break;case 4:var T9F='fromCharCode',I$d='RegExp';Y1h=3;break;case 6:Y1h=!b5i--?14:13;break;case 12:var x7e,O$F=0;Y1h=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);i6UVR[459327]=(function(){var z3n=function(m43,v6G){var J$X=v6G & 0xffff;var c3i=v6G - J$X;return (c3i * m43 | 0) + (J$X * m43 | 0) | 0;},d4D=function(m0U,S6f,r5c){var K5Y=0xcc9e2d51,t0P=0x1b873593;var v45=r5c;var A3b=S6f & ~0x3;for(var r9q=0;r9q < A3b;r9q+=4){var f5O=m0U.F6JWB(r9q) & 0xff | (m0U.F6JWB(r9q + 1) & 0xff) << 8 | (m0U.F6JWB(r9q + 2) & 0xff) << 16 | (m0U.F6JWB(r9q + 3) & 0xff) << 24;f5O=z3n(f5O,K5Y);f5O=(f5O & 0x1ffff) << 15 | f5O >>> 17;f5O=z3n(f5O,t0P);v45^=f5O;v45=(v45 & 0x7ffff) << 13 | v45 >>> 19;v45=v45 * 5 + 0xe6546b64 | 0;}f5O=0;switch(S6f % 4){case 3:f5O=(m0U.F6JWB(A3b + 2) & 0xff) << 16;case 2:f5O|=(m0U.F6JWB(A3b + 1) & 0xff) << 8;case 1:f5O|=m0U.F6JWB(A3b) & 0xff;f5O=z3n(f5O,K5Y);f5O=(f5O & 0x1ffff) << 15 | f5O >>> 17;f5O=z3n(f5O,t0P);v45^=f5O;}v45^=S6f;v45^=v45 >>> 16;v45=z3n(v45,0x85ebca6b);v45^=v45 >>> 13;v45=z3n(v45,0xc2b2ae35);v45^=v45 >>> 16;return v45;};return {w4xZ2A7:d4D};})();i6UVR.s$9=function(){return typeof i6UVR[150036].Z7m4YCh === 'function'?i6UVR[150036].Z7m4YCh.apply(i6UVR[150036],arguments):i6UVR[150036].Z7m4YCh;};i6UVR.v$j=function(){return typeof i6UVR[150036].q52sdNp === 'function'?i6UVR[150036].q52sdNp.apply(i6UVR[150036],arguments):i6UVR[150036].q52sdNp;};i6UVR[106140]=786;i6UVR.f9L=function(){return typeof i6UVR[356525].n8eaqyR === 'function'?i6UVR[356525].n8eaqyR.apply(i6UVR[356525],arguments):i6UVR[356525].n8eaqyR;};i6UVR[50848].N4kk=i6UVR;function i6UVR(){}i6UVR.h8D=function(S2C){i6UVR.W3G();if(i6UVR)return i6UVR.N4H(S2C);};i6UVR.U56=function(T1H){i6UVR.W5N();if(i6UVR)return i6UVR.i8e(T1H);};i6UVR.N_P=function(r3G){i6UVR.W5N();if(i6UVR && r3G)return i6UVR.N4H(r3G);};i6UVR.z2h=function(T5Z){i6UVR.W5N();if(i6UVR && T5Z)return i6UVR.i8e(T5Z);};i6UVR.V1Y=function(z8o){i6UVR.W3G();if(i6UVR && z8o)return i6UVR.N4H(z8o);};i6UVR.N$t=function(t3x){i6UVR.W3G();if(i6UVR)return i6UVR.N4H(t3x);};i6UVR.x$F=function(Z2P){i6UVR.W3G();if(i6UVR && Z2P)return i6UVR.N4H(Z2P);};i6UVR.O0o=function(E$y){if(i6UVR && E$y)return i6UVR.i8e(E$y);};i6UVR.x1I=function(s4J){i6UVR.W5N();if(i6UVR)return i6UVR.N4H(s4J);};var f6ulV,N,u,X,S,P,I,Q,V,M,T,R,W,Y,g,K,A,G,G6,k$,w6,q2,K_,D5,S8,V4,U$,v8,I3;f6ulV="u";f6ulV+="n";f6ulV+="de";f6ulV+="fined";import {CIQ as Z0, SplinePlotter as d7, timezoneJS as U8, $$ as Z9, $$$ as v5} from "../js/chartiq.js";N=e4=>{var T3m=i6UVR;var j0,E6,b$;j0=typeof _CIQ !== "undefined"?_CIQ:e4.CIQ;E6=class K${get(Q7,q1) {var d9v;d9v="n";d9v+="o storage ";d9v+="defi";d9v+="ned";q1(d9v);}set(I7,D2) {}remove(i2) {}};j0.ChartEngine.create=function({container:G1, config:O9, deferLoad:o9} = {}){var R8z,C8,s0,z2;R8z=".chartCon";R8z+="ta";R8z+="in";R8z+="er";if(!G1){G1=document.querySelector(R8z) || document.body;}if(!O9){O9={};}C8=Object.assign({container:G1},O9.chartEngineParams);function V$(){s0.loadChart(O9.initialSymbol,{masterData:O9.initialData},l7);s0.draw();}s0=new this(C8);var {quoteFeeds:R7, marketFactory:K6, addOns:S4, chartId:L4, onChartReady:w0}=O9;if(R7 && s0.attachQuoteFeed){R7.forEach(({quoteFeed:E_, behavior:p3, filter:h1})=>{s0.attachQuoteFeed(E_,p3,h1);});}T3m.W3G();if(K6){s0.setMarketFactory(K6);}if(S4){Object.entries(S4).filter(([,Y9])=>{return !!Y9;}).forEach(([Z8,V7])=>{var t5;if(!O9.enabledAddOns[Z8]){return;}t5=V7.moduleName || j0.capitalize(Z8);if(j0[t5]){var {cssRequired:b5}=new j0[t5](Object.assign({stx:s0},V7,{config:O9}));if(b5 && j0.UI){j0.UI.activatePluginUI(s0,t5);}}else if(j0.debug){console.log(`${t5} not available for addons with params:`,V7);}});}z2=j0.ensureDefaults(O9.callbacks || ({}),{layout:this.getSaveLayout(O9),symbolChange:this.getSaveLayout(O9),drawing:this.getSaveDrawings(O9),preferences:this.getSavePreferences(O9),newChart:this.getRetoggleEvents(O9)});for(var e5 in z2){if(z2[e5]){s0.addEventListener(e5,z2[e5]);}}b$=O9.nameValueStore || j0.NameValueStore || E6;b$=new b$();function l7(){if(!w0){return;}T3m.W3G();setTimeout(()=>{return w0(s0);});}if(!o9){if(O9.restore){this.restorePreferences(s0,L4);this.restoreLayout(s0,O5=>{if(!s0.chart.symbol && O9.initialSymbol){V$();}else {l7();}},L4);}else {V$();}}return s0;};j0.ChartEngine.getSaveLayout=function(p2){return function v_({stx:X7}){T3m.W3G();var L5;if(p2.restore && X7.exportLayout){L5=JSON.stringify(X7.exportLayout(!!1));b$.set("myChartLayout" + (p2.chartId || ""),L5);}};};j0.ChartEngine.restoreLayout=function(q9,j9,d6){T3m.W5N();var {restoreDrawings:l8}=this;if(!d6){d6="";}T3m.O_b(0);b$.get(T3m.v$j("myChartLayout",d6),function(Q$,Q3){if(Q$){return;}try{Q3=JSON.parse(Q3);}catch(u9){}if(q9.importLayout){q9.importLayout(Q3,{managePeriodicity:!!({}),cb:Y4});}if(q9.termStructure){q9.setCandleWidth(1);;}});function Y4(){T3m.W3G();l8(q9,q9.chart.symbol,d6);if(j9){j9();}}};j0.ChartEngine.getSaveDrawings=function(u_){T3m.W5N();return function y7({stx:P$, symbol:v$}){var w3,a9;T3m.W5N();if(u_.restore && P$.exportDrawings){w3=P$.exportDrawings();a9=u_.chartId?u_.chartId + (6920 >= 3809?2871 === 6048?("4.89e+3" << 0,637.10):"~":("I",0x1191)) + v$:v$;if(w3.length === "0" * 1){b$.remove(a9);}else {b$.set(a9,JSON.stringify(w3));}}};};j0.ChartEngine.restoreDrawings=function(R_,A3,r7){var v6;T3m.W5N();if(!j0.Drawing){return;}v6=r7?r7 + (895 > "349" >> 64?"~":(!0,3.80e+3)) + A3:A3;b$.get(v6,function(X4,V2){if(X4){return;}T3m.W3G();try{V2=JSON.parse(V2);}catch(B7){}if(V2){R_.importDrawings(V2);R_.draw();}});};T3m.W3G();j0.ChartEngine.getSavePreferences=function(B3){T3m.W5N();return function Y3({stx:o4}){T3m.W5N();var M$1,b1;if(B3.restore && o4.exportPreferences){M$1="myChartPref";M$1+="eren";M$1+="ces";b1=JSON.stringify(o4.exportPreferences());b$.set(M$1 + (B3.chartId || ""),b1);}};};j0.ChartEngine.restorePreferences=function(B0,o$){if(!o$){o$="";}T3m.O_b(0);b$.get(T3m.v$j("myChartPreferences",o$),function(Y0,q8){if(Y0){return;}try{q8=JSON.parse(q8);}catch(N7){}if(q8 && B0.importPreferences){B0.importPreferences(q8);}});};j0.ChartEngine.getRetoggleEvents=function(q$){return function P1({stx:C$}){var E5,A6;E5=document.getElementById(q$.chartId);if(!E5){E5=(j0.getFn("UI.getMyContext")(C$.container) || ({})).topNode;}if(!E5){E5=document;}T3m.W3G();A6=E5.querySelectorAll(`${q$.selector.markersMenuItem}.ciq-active:not(.span-event)`);A6.forEach(function(e$){e$.dispatchEvent(new Event("stxtap"));});};};};u=C3=>{var g4p=i6UVR;g4p.W5N();var c0;c0=typeof _CIQ !== "undefined"?_CIQ:C3.CIQ;c0.ChartEngine.prototype.drawHeatmap=function(X3,P2){var A1,U7,M5,g0,a1,h6,J2,V9,D4,m4,R8,O_,J4,q3;if(!P2 || !P2.length){return;}A1=X3.panel;if(!A1){A1="chart";}U7=this.panels[A1];if(!U7){return;}M5=X3.yAxis?X3.yAxis:U7.yAxis;g0=this.chart.dataSegment;if(!X3.name){X3.name="Data";}if(!X3.widthFactor){g4p.O_b(1);X3.widthFactor=g4p.V9a(0,"1");}if(!X3.height){X3.height=Math.pow(10,1 - (U7.decimalPlaces || U7.chart.decimalPlaces));}a1="stx-float-date";h6=this.chart.context;this.canvasFont(a1,h6);J2=this.getCanvasFontSize(a1);V9=1;if(!X3.highlight && this.highlightedDraggable){V9=0.3;}D4=0.5;if(U7.chart.tmpWidth <= 1){D4=0;}function n9(O0,o7,f3,D7,M2,r0,u0,j3){var X6B,E0k,i6,P4,O8,g6,C4,j8,A9,x9,E0,B8,Q8,U5,I8,h0;X6B="num";X6B+="ber";E0k="ce";E0k+="nt";E0k+="e";E0k+="r";h6.beginPath();h6.fillStyle=o7;h6.strokeStyle=o7;g4p.W5N();h6.textAlign=E0k;i6=O_.layout.candleWidth * M2;P4=Math.floor(O_.pixelFromBar(0,U7.chart) - O_.layout.candleWidth);if(typeof f3 == X6B){g4p.O_b(2);h6.globalAlpha=g4p.v$j(V9,f3);}if(typeof f3 == "object"){C4={minOpacity:f3.min || 0,maxOpacity:f3.max || 1};}for(var L1=0;L1 < g0.length;L1++){j8=g0[L1];if(j8 && j8.candleWidth){if(L1 === 0){P4+=O_.layout.candleWidth;}else {g4p.O_b(3);var Y4I=g4p.V9a(10,19,9,185,6);P4+=(j8.candleWidth + i6 / M2) / Y4I;}i6=j8.candleWidth * M2;}else {P4+=O_.layout.candleWidth;}g4p.O_b(4);O8=g4p.v$j(u0,2,P4,i6);g4p.O_b(5);g6=g4p.v$j(P4,i6,2,u0);if(g6 - O8 < 2){g4p.s$9(6);g6=g4p.V9a(O8,"1");}if(!j8)continue;A9=j8[O0];if(!A9)continue;if(A9[j3]){A9=A9[j3];}if(typeof A9 == "number"){A9=[A9];}for(var S7=+"0";S7 < A9.length;S7++){x9=A9[S7];E0=0;if(x9 instanceof Array){if(C4){g4p.s$9(7);var g69=g4p.V9a(0,1,2,0);g4p.O_b(8);var X$C=g4p.v$j(379,19,18,13,15);h6.globalAlpha=V9 * (x9[g69] * C4.maxOpacity + (X$C - x9[+"2"]) * C4.minOpacity);}E0=x9[1];x9=x9[0];}B8=O_.pixelFromPrice(x9,U7,M5);if(!J4){if(!r0){r0=X3.height;}Q8=O_.pixelFromPrice(x9 + r0 * (M5.flipped?1:-1),U7,M5);h6.lineWidth=1;g4p.O_b(1);m4=g4p.v$j(B8,Q8);g4p.O_b(9);R8=g4p.V9a(m4,2);J4=h6.lineWidth;}if(D7){g4p.s$9(1);U5=g4p.V9a(R8,B8);g4p.O_b(0);I8=g4p.v$j(B8,R8);g4p.s$9(1);h6.rect(O8,U5,g4p.V9a(O8,g6),g4p.v$j(U5,I8));}else {g4p.s$9(1);h6.fillRect(O8,g4p.V9a(R8,B8),g4p.v$j(O8,g6),m4);if(X3.showSize && E0 && J2 <= m4 - 2){h0=h6.globalAlpha;h6.fillStyle=O_.defaultColor;g4p.s$9(10);h6.globalAlpha=g4p.V9a(V9,"0.5");g4p.s$9(11);h6.fillText(E0,g4p.V9a(O8,"2",2,g6),B8);h6.fillStyle=o7;g4p.s$9(2);h6.globalAlpha=g4p.V9a(V9,h0);}}if(C4 && x9 instanceof Array){h6.globalAlpha=0;}}}if(D7){h6.stroke();}h6.globalAlpha=V9;h6.closePath();}m4=null;R8=null;O_=this;J4=null;this.startClip(A1);h6.globalAlpha=V9;for(var c1=0;c1 < P2.length;c1++){q3=P2[c1];n9(q3.field,q3.color,q3.opacity,null,X3.widthFactor,q3.height,q3.border_color?D4:-D4 / 4,q3.subField);if(q3.border_color && this.layout.candleWidth >= 2){n9(q3.field,q3.border_color,q3.opacity,!0,X3.widthFactor,q3.height,D4,q3.subField);}}h6.lineWidth=1;h6.globalAlpha=1;g4p.W3G();this.endClip();};c0.ChartEngine.prototype.drawCandles=function(m7,L2,c4){var G9,v5c,G3c,q_Z,N$,K5,s$,F_,l1,x7,J3,O7,m1,D1,j$,t9,D8,A5,V0,g9,f_,k0,V6,J1,G$,S6,P8,v3,o6,Z6,f1,e8,E9,X2,k8,H7,A0,h3;G9=m7.chart;if(!G9){v5c=1732729279;G3c=-1260121;q_Z=2;for(var S27=1;g4p.m6F(S27.toString(),S27.toString().length,3798) !== v5c;S27++){G9=m7;g4p.O_b(12);q_Z+=g4p.v$j(64,"2");}if(g4p.l5h(q_Z.toString(),q_Z.toString().length,11601) !== G3c){G9=m7;}G9=m7;m7=m7.chart;}N$=!1;K5=!"1";s$=null;F_=m7.yAxis;if(c4 && typeof c4 == "object"){N$=c4.isOutline;K5=c4.isHistogram;s$=c4.field;F_=c4.yAxis;}else {N$=c4;K5=arguments[3];}l1=G9.dataSegment;x7=G9.context;J3=F_.top;O7=F_.bottom;t9=new Array(l1.length);D8="transparent";A5="transparent";V0=0;g4p.s$9(13);var P08=g4p.V9a(5,0,18,12);g9=G9.dataSet.length - G9.scroll - P08;f_={};g4p.O_b(14);var j6V=g4p.v$j(4,16,4,14);k0=G9.tmpWidth / j6V;V6=this.layout.candleWidth;g4p.s$9(0);var h5T=g4p.V9a(0,1);J1=m7.left - 0.5 * V6 + this.micropixels - h5T;for(var K8=0;K8 <= l1.length;K8++){G$=k0;g4p.s$9(9);J1+=g4p.v$j(V6,2);V6=this.layout.candleWidth;g4p.O_b(9);J1+=g4p.V9a(V6,2);S6=l1[K8];if(!S6)continue;if(S6.projection)continue;if(S6.candleWidth){g4p.s$9(15);var I_p=g4p.V9a(12,2,3,0,1);J1+=(S6.candleWidth - V6) / I_p;V6=S6.candleWidth;if(c4.isVolume || V6 < G9.tmpWidth){g4p.s$9(9);G$=g4p.V9a(V6,2);}}if(G9.transformFunc && F_ == G9.panel.yAxis && S6.transform){S6=S6.transform;}if(S6 && s$){S6=S6[s$];}if(!S6 && S6 !== 0)continue;P8=S6.Close;v3=S6.Open === undefined?P8:S6.Open;if(K5 && G9.defaultPlotField){P8=S6[G9.defaultPlotField];}if(!P8 && P8 !== +"0")continue;if(!K5 && (v3 == P8 || v3 === null))continue;o6=L2(this,S6,N$?"outline":"solid");if(!o6)continue;if(N$){D8=o6;}else {A5=o6;}g4p.O_b(2);f_[A5]=g4p.V9a(1,"1");Z6=D8 && !c0.isTransparent(D8);if(Z6 && !c4.highlight){V0=0.5;}x7.beginPath();x7.fillStyle=A5;if(!S6.cache){S6.cache={};}f1=S6.cache;g4p.O_b(0);e8=g4p.v$j(g9,K8);if(e8 < m7.cacheLeft || e8 > m7.cacheRight || !f1.open){E9=F_.semiLog?F_.height * (1 - (Math.log(Math.max(v3,0)) / Math.LN10 - F_.logLow) / F_.logShadow):(F_.high - v3) * F_.multiplier;X2=F_.semiLog?F_.height * (1 - (Math.log(Math.max(P8,0)) / Math.LN10 - F_.logLow) / F_.logShadow):(F_.high - P8) * F_.multiplier;if(F_.flipped){g4p.O_b(1);E9=g4p.V9a(E9,O7);g4p.O_b(1);X2=g4p.v$j(X2,O7);}else {E9+=J3;X2+=J3;}t9[K8]=X2;m1=Math.floor(K5?X2:Math.min(E9,X2)) + V0;D1=K5?F_.bottom:Math.max(E9,X2);g4p.O_b(1);j$=Math.floor(g4p.v$j(m1,D1));if(m1 < J3){if(m1 + j$ < J3){f1.open=m1;f1.close=m1;continue;}g4p.s$9(1);j$-=g4p.V9a(m1,J3);m1=J3;}if(m1 + j$ > O7){g4p.O_b(16);j$-=g4p.v$j(j$,m1,O7);}j$=Math.max(j$,2);f1.open=m1;f1.close=f1.open + j$;}if(f1.open >= O7)continue;if(f1.close <= J3)continue;k8=Math.floor(J1) + (!c4.highlight && +"0.5");H7=Math.floor(k8 - G$) + V0;A0=Math.round(k8 + G$) - V0;if(f1.open != f1.close){x7.rect(H7,f1.open,Math.max(1,A0 - H7),Math.max(+"1",f1.close - f1.open));}if(!c4.highlight && this.highlightedDraggable){x7.globalAlpha*=0.3;}if(A5 != "transparent"){x7.fill();}if(Z6){x7.lineWidth=1;if(c4.highlight){g4p.s$9(1);x7.lineWidth*=g4p.V9a(0,"2");}x7.strokeStyle=D8;x7.stroke();}}h3={colors:[],cache:t9};for(var u5 in f_){if(!c4.hollow || !c0.equals(u5,this.containerColor)){h3.colors.push(u5);}}return h3;};c0.ChartEngine.prototype.drawShadows=function(c$,R9,j7){var c7,X8,U0,D9,z9,s_,U4,u1,V1,v9,v4,C9,J7,P0,X_,U9,x5,O4,R3,g_,A4,d3,S1,q7,l3,x$;c7=c$.chart;if(!c7){c7=c$;c$=c$.chart;}X8=c7.dataSegment;U0=this.chart.context;U0.lineWidth=1;if(j7.highlight){U0.lineWidth*=+"2";}if(!j7.highlight && this.highlightedDraggable){U0.globalAlpha*=0.3;}D9=j7.field;z9=j7.yAxis || c$.yAxis;s_=z9.top;U4=z9.bottom;g4p.O_b(17);var G83=g4p.V9a(14,36,18,18,13);u1=c7.dataSet.length - c7.scroll - G83;V1=this.layout.candleWidth;g4p.O_b(1);var L_T=g4p.V9a(19,20);v9=c$.left - 0.5 * V1 + this.micropixels - L_T;for(var c5=0;c5 <= X8.length;c5++){g4p.s$9(9);v9+=g4p.v$j(V1,2);V1=this.layout.candleWidth;g4p.O_b(9);v9+=g4p.v$j(V1,2);v4=X8[c5];if(!v4)continue;if(v4.projection)continue;if(v4.candleWidth){g4p.s$9(18);var H6v=g4p.v$j(22,16,4);v9+=(v4.candleWidth - V1) / H6v;V1=v4.candleWidth;}C9=R9(this,v4,"shadow");if(!C9)continue;if(c7.transformFunc && z9 == c7.panel.yAxis && v4.transform){v4=v4.transform;}if(v4 && D9){v4=v4[D9];}if(!v4 && v4 !== +"0")continue;J7=v4.Close;P0=v4.Open === undefined?J7:v4.Open;X_=v4.High === undefined?Math.max(J7,P0):v4.High;U9=v4.Low === undefined?Math.min(J7,P0):v4.Low;if(!J7 && J7 !== 0)continue;if(!v4.cache){v4.cache={};}x5=v4.cache;g4p.s$9(0);O4=g4p.v$j(u1,c5);if(O4 < c$.cacheLeft || O4 > c$.cacheRight || !x5.top){R3=z9.semiLog?z9.height * (("1" | 0) - (Math.log(Math.max(X_,+"0")) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - X_) * z9.multiplier;g_=z9.semiLog?z9.height * (1 - (Math.log(Math.max(U9,"0" ^ 0)) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - U9) * z9.multiplier;if(z9.flipped){g4p.s$9(1);R3=g4p.v$j(R3,U4);g4p.O_b(1);g_=g4p.V9a(g_,U4);}else {R3+=s_;g_+=s_;}g4p.s$9(1);A4=g4p.v$j(R3,g_);if(R3 < s_){if(R3 + A4 < s_){x5.top=R3;x5.bottom=R3;continue;}g4p.O_b(1);A4-=g4p.V9a(R3,s_);R3=s_;}if(R3 + A4 > U4){g4p.s$9(16);A4-=g4p.v$j(A4,R3,U4);}x5.top=R3;x5.bottom=x5.top + A4;}if(x5.top >= U4)continue;if(x5.bottom <= s_)continue;d3=Math.floor(v9) + (!j7.highlight && 0.5);U0.beginPath();if(J7 == P0){S1=this.offset;if(j7.isVolume){g4p.s$9(9);S1=g4p.V9a(V1,2);}g4p.s$9(1);q7=g4p.v$j(S1,d3);g4p.O_b(0);l3=g4p.v$j(d3,S1);x$=z9.semiLog?z9.height * (1 - (Math.log(Math.max(J7,+"0")) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - J7) * z9.multiplier;if(z9.flipped){g4p.s$9(1);x$=g4p.v$j(x$,U4);}else {x$+=s_;}if(x$ <= U4 && x$ >= s_){U0.moveTo(q7,x$);U0.lineTo(l3,x$);}}if(X_ != U9){U0.moveTo(d3,x5.top);U0.lineTo(d3,x5.bottom);}U0.strokeStyle=C9;U0.stroke();}};c0.ChartEngine.prototype.drawBarChart=function(y_,h9,V8,L0){var v2,o1,x8,T7,I0,m0,s4,s2,T$,d4,B_,S2,J9,r8,w_,W5,i7,c6,E4,n5,C0,N9,u8,a$,a2,X5,Y5,H$;v2=y_.chart;if(!v2){v2=y_;y_=y_.chart;}o1=v2.dataSegment;x8=new Array(o1.length);T7=v2.context;I0=this.canvasStyle(h9);if(I0.width && parseInt(I0.width,10) <= "25" * 1){T7.lineWidth=Math.max(1,c0.stripPX(I0.width));}else {T7.lineWidth=1;}if(L0.highlight){T7.lineWidth*=2;}if(!L0.highlight && this.highlightedDraggable){T7.globalAlpha*=0.3;}m0=L0.field;s4=L0.yAxis || y_.yAxis;s2=s4.top;T$=s4.bottom;g4p.O_b(19);var o$_=g4p.V9a(76,6,12,19,16);B_=v2.dataSet.length - v2.scroll - o$_;S2={};g4p.O_b(20);var C3S=g4p.V9a(10,6,20,2);J9=v2.tmpWidth / C3S;g4p.O_b(21);var G$x=g4p.V9a(16,40,638);r8=T7.lineWidth / G$x;w_=this.layout.candleWidth;g4p.s$9(22);var L4x=g4p.v$j(8,81,0,10);W5=y_.left - 0.5 * w_ + this.micropixels - L4x;for(var e6=0;e6 <= o1.length;e6++){g4p.s$9(9);W5+=g4p.V9a(w_,2);w_=this.layout.candleWidth;g4p.O_b(9);W5+=g4p.v$j(w_,2);i7=o1[e6];if(!i7)continue;if(i7.projection)break;if(i7.candleWidth){g4p.O_b(23);var B4k=g4p.v$j(10,8);W5+=(i7.candleWidth - w_) / B4k;w_=i7.candleWidth;}c6=V8(this,i7);if(!c6)continue;S2[c6]=1;T7.strokeStyle=c6;T7.beginPath();if(v2.transformFunc && s4 == v2.panel.yAxis && i7.transform){i7=i7.transform;}if(i7 && m0){i7=i7[m0];}if(!i7 && i7 !== 0)continue;E4=i7.Close;n5=i7.Open === undefined?E4:i7.Open;C0=i7.High === undefined?Math.max(E4,n5):i7.High;N9=i7.Low === undefined?Math.min(E4,n5):i7.Low;if(!E4 && E4 !== 0)continue;if(!i7.cache){i7.cache={};}u8=i7.cache;g4p.O_b(0);a$=g4p.V9a(B_,e6);if(a$ < y_.cacheLeft || a$ > y_.cacheRight || !u8.top){a2=this.pixelFromTransformedValue(C0,y_,s4);X5=this.pixelFromTransformedValue(N9,y_,s4);u8.open=s4.semiLog?s4.height * (1 - (Math.log(Math.max(n5,0)) / Math.LN10 - s4.logLow) / s4.logShadow):(s4.high - n5) * s4.multiplier;u8.close=s4.semiLog?s4.height * (1 - (Math.log(Math.max(E4,"0" >> 32)) / Math.LN10 - s4.logLow) / s4.logShadow):(s4.high - E4) * s4.multiplier;if(s4.flipped){u8.open=s4.bottom - u8.open;u8.close=s4.bottom - u8.close;}else {u8.open+=s4.top;u8.close+=s4.top;}x8[e6]=u8.close;g4p.O_b(1);d4=g4p.v$j(a2,X5);if(a2 < s2){if(a2 + d4 < s2){u8.top=a2;u8.bottom=a2;continue;}g4p.s$9(1);d4-=g4p.v$j(a2,s2);a2=s2;}if(a2 + d4 > T$){g4p.O_b(16);d4-=g4p.V9a(d4,a2,T$);}u8.top=a2;g4p.s$9(0);u8.bottom=g4p.v$j(a2,d4);}Y5=Math.floor(W5) + (!L0.highlight && 0.5);if(u8.top < T$ && u8.bottom > s2 && i7.High != i7.Low){T7.moveTo(Y5,u8.top - r8);T7.lineTo(Y5,u8.bottom + r8);}if(L0.type != "hlc" && u8.open > s2 && u8.open < T$){T7.moveTo(Y5,u8.open);g4p.s$9(1);T7.lineTo(g4p.v$j(J9,Y5),u8.open);}if(u8.close > s2 && u8.close < T$){T7.moveTo(Y5,u8.close);g4p.O_b(0);T7.lineTo(g4p.v$j(Y5,J9),u8.close);}T7.stroke();}T7.lineWidth=1;H$={colors:[],cache:x8};for(var I6 in S2){if(!c0.equals(I6,this.containerColor)){H$.colors.push(I6);}}return H$;};c0.ChartEngine.prototype.drawWaveChart=function(g$,e0){var i45,O3,r6,A7,U_,e7,l_,l$,Q4,h$,Y$,M_,Q9,r3,H_,d$,R2,j5,b_,B2,j4,w5,f$,P5;i45="stx_l";i45+="i";i45+="n";i45+="e_chart";O3=g$.chart;r6=O3.dataSegment;A7=new Array(r6.length);U_=O3.context;if(!e0){e0={};}e7=e0.yAxis || g$.yAxis;this.startClip(g$.name);U_.beginPath();l_=![];l$=!"1";Q4=g$.yAxis.top;g4p.W5N();h$=g$.yAxis.bottom;Y$=g$.left + Math.floor(-0.5 * this.layout.candleWidth + this.micropixels);M_=this;for(var e_=0;e_ <= r6.length;e_++){Y$+=this.layout.candleWidth;Q9=r6[e_];if(!Q9)continue;if(Q9.projection)break;if(O3.transformFunc && e7 == O3.panel.yAxis && Q9.transform){Q9=Q9.transform;}if(Q9 && e0.field){Q9=Q9[e0.field];}if(!Q9 && Q9 !== 0)continue;r3=Q9.Close;H_=Q9.Open === undefined?r3:Q9.Open;d$=Q9.High === undefined?Math.max(r3,H_):Q9.High;R2=Q9.Low === undefined?Math.min(r3,H_):Q9.Low;if(!r3 && r3 !== 0)continue;g4p.s$9(24);var O07=g4p.V9a(19,12,64,36);g4p.s$9(25);var k4Y=g4p.v$j(2,16,1,232,16);j5=Y$ - O07 * this.layout.candleWidth / k4Y;b_=W6(H_);if(b_ < Q4){b_=Q4;if(l$){U_.moveTo(j5,b_);continue;}l$=!!"1";}else if(b_ > h$){b_=h$;if(l$){U_.moveTo(j5,b_);continue;}l$=!!"1";}else {l$=!"1";}if(!l_){l_=!!1;g4p.s$9(26);var j45=g4p.v$j(0,19,2,19);B2=O3.dataSet.length - O3.scroll - j45;if(B2 < "0" << 64){U_.moveTo(j5,b_);}else if(B2 >= +"0"){j4=O3.dataSet[B2];if(j4.transform){j4=j4.transform;}w5=j4.Close;w5=W6(w5);w5=Math.min(Math.max(w5,Q4),h$);U_.moveTo(g$.left + (e_ - 1) * this.layout.candleWidth + this.micropixels,w5);U_.lineTo(j5,b_);}U_.moveTo(j5,b_);}else {U_.lineTo(j5,b_);}g4p.s$9(16);var e6t=g4p.v$j(16,20,32);j5+=this.layout.candleWidth / e6t;if(H_ < r3){b_=W6(R2);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);g4p.O_b(21);var t3_=g4p.v$j(9,19,167);j5+=this.layout.candleWidth / t3_;b_=W6(d$);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}else {b_=W6(d$);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);g4p.O_b(27);var D51=g4p.v$j(8,16,52,0,9);j5+=this.layout.candleWidth / D51;b_=W6(R2);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}g4p.O_b(28);var C7W=g4p.v$j(80,7,1040,12);j5+=this.layout.candleWidth / C7W;b_=W6(r3);A7[e_]=b_;if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}f$=this.canvasStyle(i45);if(f$.width && parseInt(f$.width,10) <= 25){U_.lineWidth=Math.max(1,c0.stripPX(f$.width));}else {U_.lineWidth=1;}if(e0.highlight){g4p.s$9(2);U_.lineWidth*=g4p.v$j(1,"2");}this.canvasColor("stx_line_chart");if(e0.color){U_.strokeStyle=e0.color;}if(!e0.highlight && this.highlightedDraggable){U_.globalAlpha*=0.3;}U_.stroke();function W6(l2){g4p.W3G();return M_.pixelFromTransformedValue(l2,g$,e7);}U_.closePath();P5={colors:[U_.strokeStyle],cache:A7};this.endClip();U_.lineWidth=1;return P5;};c0.ChartEngine.prototype.drawHistogram=function(H3,M4){var I4C,f2,w7,c9,g1,N8,F7,Z_,G0,D0,T_,F$,b7,T8,Y6,q6,K1,Q6,o3,g8,q5,b3,m3,N_,F6,L$,h4,l5,O1,d5,p6,W8,D9z;I4C="Da";I4C+="ta";if(!M4 || !M4.length){return;}f2=H3.panel;if(!f2){f2="chart";}w7=this.panels[f2];if(!w7){return;}c9=H3.yAxis?H3.yAxis:w7.yAxis;g1=H3.type;N8=this.chart.dataSegment;F7=!"1";g4p.O_b(29);Z_=g4p.v$j("1",32);G0=1;for(T_=0;T_ < M4.length;T_++){F7|=M4[T_].border_color_up && !c0.isTransparent(M4[T_].border_color_up);F7|=M4[T_].border_color_down && !c0.isTransparent(M4[T_].border_color_down);Z_=M4[T_].opacity_up;G0=M4[T_].opacity_down;if(!H3.highlight && this.highlightedDraggable){Z_*=0.3;G0*=0.3;}}if(H3.borders === !"1"){F7=!"1";}if(!H3.name){H3.name=I4C;}F$=c9.multiplier;g4p.W5N();if(!H3.heightPercentage){H3.heightPercentage=0.7;}if(!H3.widthFactor){H3.widthFactor=0.8;}b7=0;T8=+"0";for(var n_=+"0";n_ < this.chart.maxTicks;n_++){Y6=N8[n_];if(!Y6)continue;q6=0;for(T_=0;T_ < M4.length;T_++){K1=Y6[M4[T_].field];if(K1 || K1 === 0){D0=M4[T_].subField || this.chart.defaultPlotField || "Close";if(typeof K1 == "object" && K1[D0]){K1=K1[D0];}if(g1 == "stacked"){q6+=K1;}else {q6=K1;}if(q6 > b7){b7=q6;}if(q6 < T8){T8=q6;}}}}if(b7 === 0 && T8 === 0){this.displayErrorAsWatermark(f2,this.translateIf(H3.name + " Not Available"));return;}o3=!({});if(!H3.bindToYAxis){if(c9.flipped){Q6=Math.floor(c9.top) - 0.5;g8=Math.floor(c9.bottom) - 0.5;}else {Q6=Math.floor(c9.bottom) + 0.5;g8=Math.floor(c9.top) + 0.5;}F$=Math.abs(Q6 - g8) * H3.heightPercentage / (b7 - T8);}else {if(c9.baseline){T8=c9.baseline.value;o3=!!1;}Q6=Math.floor(this.pixelFromPrice(T8,w7,c9)) + (c9.flipped?-0.5:0.5);}this.startClip(f2);q5=this.layout.candleWidth <= 1 || !F7?"0" ^ 0:0.5;b3=this.chart.context;if(c9.flipped){b3.translate(0,2 * c9.top);b3.scale(1,-1);}m3=Math.max(+"0",(1 - H3.widthFactor) * this.layout.candleWidth / 2);N_=new Array(N8.length);F6=[];L$=this;h4=1;for(T_="0" | 0;T_ < M4.length;T_++){l5=M4[T_];h4=this.layout.candleWidth * H3.widthFactor;if(m3){if(this.layout.candleWidth - h4 <= 2){F7=!({});}}O1=0;if(g1 == "clustered"){O1=T_;h4/=M4.length;}D0=l5.subField || this.chart.defaultPlotField || "Close";if(typeof l5.color_function == "function"){p6={};for(var n8=0;n8 < N8.length;n8++){if(N8[n8]){D9z="border";D9z+="_opacity";d5=l5.color_function(N8[n8]);if(typeof d5 == "string"){d5={fill_color:d5,border_color:d5};}if(!d5.hasOwnProperty(D9z)){d5.border_opacity=d5.opacity;}W8=d5.fill_color + "," + d5.border_color;if((W8 in p6)){p6[W8].positions.push(n8);}else {d5.positions=[n8];p6[W8]=d5;}}}for(W8 in p6){d5=p6[W8];u3(l5.field,D0,d5.fill_color,d5.opacity,null,null,O1,h4,d5.positions);u3(l5.field,D0,d5.border_color,d5.border_opacity,!0,null,O1,h4,d5.positions);}}else {u3(l5.field,D0,l5.fill_color_up,Z_,null,!"",O1,h4);u3(l5.field,D0,l5.fill_color_down,G0,null,null,O1,h4);if(this.layout.candleWidth >= 2 && F7){u3(l5.field,D0,l5.border_color_up,Z_,!!({}),!!"1",O1,h4);u3(l5.field,D0,l5.border_color_down,G0,!"",null,O1,h4);}}if(g1 == "stacked"){F6=c0.shallowClone(N_);}}b3.globalAlpha=1;this.endClip();function u3(C7,R$,p4,C1,t$,i8,t3,M1,V_){var P_,e9,P3,H0b,m_,o2,U2,N3,r_,D3,n3,O$,N6,j_,a7,Q8b,g$a;if(!C1){C1=1;}b3.globalAlpha=C1;b3.beginPath();g4p.s$9(0);P_=g4p.V9a(Q6,0.5);e9=Math.floor(L$.pixelFromBar("0" - 0,w7.chart) - L$.layout.candleWidth / 2);P3=e9;for(var v7=0;v7 < N8.length;v7++){H0b="clust";H0b+="er";H0b+="e";H0b+="d";m_=F6[v7] || Q6;if(v7 === 0){P_=m_;}if(!N8[v7] || !N8[v7][C7]){P_=m_;P3+=L$.layout.candleWidth;continue;}o2=N8[v7];U2=o2[C7];if(typeof U2 == "object" && U2[R$]){U2=U2[R$];}g4p.s$9(30);N3=g4p.v$j(U2,F$,T8);if(isNaN(N3))continue;r_=L$.layout.candleWidth;if(o2.candleWidth){r_=o2.candleWidth;if(v7 === 0){e9=P3=Math.floor(L$.pixelFromBar(0,w7.chart) - o2.candleWidth / 2);}}D3=Math.floor(m_ - N3) + 0.5;if(D3 > m_ && !o3){D3=m_;}if(V_ && V_.indexOf(v7) == -1 || !V_ && (i8 && o2.Close < o2.iqPrevClose || !i8 && o2.Close >= o2.iqPrevClose)){P_=D3;P3+=r_;continue;}n3=r_ / L$.layout.candleWidth;if(m3){g4p.O_b(31);O$=Math.round(g4p.v$j(n3,t3,M1,P3,m3));g4p.O_b(0);N6=g4p.v$j(O$,t$?0:q5);j_=O$ + Math.round(M1 * n3) - (t$?0:q5);}else {g4p.O_b(31);O$=g4p.V9a(n3,t3,M1,P3,m3);N6=Math.round(O$) + (t$?0:q5);j_=Math.round(O$ + M1 * n3) - (t$?0:q5);}if(j_ - N6 < ("2" ^ 0)){g4p.O_b(0);j_=g4p.V9a(N6,1);}a7=t$?+"0":0.5;if(N6 % 1 == a7){N6+=+"0.5";}if(j_ % 1 == a7){g4p.O_b(2);j_+=g4p.V9a(1,"0.5");}b3.moveTo(j_,m_);if(Q6 != m_ && t$ && !m3 && F6[v7 + 1]){b3.moveTo(j_,Math.max(D3,Math.min(m_,F6[v7 + 1])));}b3.lineTo(j_,D3);b3.lineTo(N6,D3);if(t$ && t3){if(N_[v7] > D3 || v7 === 0){b3.lineTo(N6,Math.min(m_,N_[v7]));}}else if(t$ && !m3 && g1 == H0b){if(v7 > 0 && N_[v7 - 1] && N_[v7 - +"1"] > D3){b3.lineTo(N6,Math.min(m_,N_[v7 - ("1" ^ 0)]));}}else if(t$ && !m3){if(P_ > D3 || v7 === 0){b3.lineTo(N6,Math.min(m_,P_));}}else {b3.lineTo(N6,m_);}P_=D3;P3+=r_;if(g1 != "clustered" || t$){N_[v7]=D3;}}if(t$){Q8b="au";Q8b+="t";Q8b+="o";b3.strokeStyle=!p4 || p4 == Q8b?L$.defaultColor:p4;b3.stroke();}else {g$a="a";g$a+="u";g$a+="to";b3.fillStyle=!p4 || p4 == g$a?L$.defaultColor:p4;b3.fill();}b3.closePath();}};c0.ChartEngine.prototype.scatter=function(W7,y6){var F0Y,N8n,z1,T9,X6,m9,S5,d9,P7,n6,g2,h7,Z7,B9,z5,R4,Z3,f9,x3,n4;F0Y="Cl";F0Y+="ose";N8n="stx_s";N8n+="catter_chart";z1=W7.chart;T9=z1.dataSegment;X6=new Array(T9.length);m9=this.chart.context;this.canvasColor(N8n);if(!y6){y6={};}S5=y6.field || z1.defaultPlotField;d9=y6.yAxis || W7.yAxis;P7=y6.subField || z1.defaultPlotField || F0Y;this.startClip(W7.name);m9.beginPath();m9.lineWidth=y6.lineWidth || 4;if(y6.highlight){m9.lineWidth*=2;}if(!y6.highlight && this.highlightedDraggable){m9.globalAlpha*=0.3;}if(y6.color){m9.strokeStyle=y6.color;}n6=d9.top;g2=d9.bottom;h7=this.layout.candleWidth;g4p.O_b(1);var W_b=g4p.V9a(4,5);Z7=W7.left - 0.5 * h7 + this.micropixels - W_b;for(var T4=0;T4 <= T9.length;T4++){g4p.O_b(9);Z7+=g4p.V9a(h7,2);h7=this.layout.candleWidth;g4p.s$9(9);Z7+=g4p.v$j(h7,2);B9=T9[T4];if(!B9)continue;if(B9.candleWidth){Z7+=(B9.candleWidth - h7) / +"2";h7=B9.candleWidth;}if(!B9.projection){if(z1.transformFunc && d9 == z1.panel.yAxis && B9.transform){B9=B9.transform;}z5=B9[S5];if(z5 && z5[P7] !== undefined){z5=z5[P7];}if(!(z5 instanceof Array)){z5=[z5];}if(("Scatter" in B9)){z5=B9.Scatter;}for(var i3=0;i3 < z5.length;i3++){if(!z5[i3] && z5[i3] !== 0)continue;R4=z5[i3];Z3=0;if(z5[i3] instanceof Array){R4=z5[i3][0];Z3=z5[i3][2];}f9=d9.semiLog?d9.height * (1 - (Math.log(Math.max(R4,0)) / Math.LN10 - d9.logLow) / d9.logShadow):(d9.high - R4) * d9.multiplier;if(d9.flipped){g4p.s$9(1);f9=g4p.v$j(f9,g2);}else {f9+=n6;}if(f9 < n6)continue;if(f9 > g2)continue;x3=2;if(Z3){g4p.O_b(2);x3=g4p.v$j(Z3,h7);}g4p.s$9(1);m9.moveTo(g4p.V9a(x3,Z7),f9);g4p.s$9(0);m9.lineTo(g4p.V9a(Z7,x3),f9);X6[T4]=f9;}}}m9.stroke();m9.closePath();n4={colors:[m9.strokeStyle],cache:X6};this.endClip();m9.lineWidth=+"1";return n4;};};X=L9=>{var E9u=i6UVR;var j2t,p10,x4b,c6X,Y2s,K1J,d0u,n0x,R$w,A4x,N6T,S9,W2,I9e,y3V,v79;j2t="p";j2t+="atter";j2t+="n";p10="lineW";p10+="i";p10+="dt";p10+="h";x4b="fillCo";x4b+="lo";x4b+="r";c6X="so";c6X+="l";c6X+="id";Y2s="a";Y2s+="u";Y2s+="t";Y2s+="o";K1J="a";K1J+="u";K1J+="t";K1J+="o";d0u="soli";d0u+="d";n0x="au";n0x+="t";n0x+="o";R$w="s";R$w+="o";R$w+="lid";A4x="sol";A4x+="i";A4x+="d";N6T="au";N6T+="t";N6T+="o";S9=typeof _CIQ !== "undefined"?_CIQ:L9.CIQ;W2=typeof _timezoneJS !== "undefined"?_timezoneJS:L9.timezoneJS;S9.ChartEngine.drawingTools={};S9.ChartEngine.currentVectorParameters={vectorType:null,pattern:"solid",lineWidth:1,fillColor:"#7DA6F5",currentColor:"auto",axisLabel:!![],fibonacci:{trend:{color:N6T,parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},fibs:[{level:-("0.786" - 0),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:-("0.618" * 1),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"},display:!!({})},{level:-0.5,color:"auto",parameters:{pattern:A4x,opacity:0.25,lineWidth:1}},{level:-("0.382" * 1),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!""},{level:-0.236,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:0,color:"auto",parameters:{pattern:R$w,lineWidth:1},display:!""},{level:0.236,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:"0.382" - 0,color:n0x,parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!0},{level:0.5,color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!!"1"},{level:0.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!({})},{level:0.786,color:"auto",parameters:{pattern:d0u,opacity:0.25,lineWidth:"1" * 1}},{level:1,color:K1J,parameters:{pattern:"solid",lineWidth:1},display:!""},{level:1.272,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:1.382,color:Y2s,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!0},{level:"1.618" - 0,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!![]},{level:2.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:+"4.236",color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}}],extendLeft:!!0,printLevels:!![],printValues:!"1",timezone:{color:"auto",parameters:{pattern:c6X,opacity:0.25,lineWidth:+"1"}}},annotation:{font:{style:null,size:null,weight:null,family:null}}};S9.ChartEngine.registerDrawingTool=function(g5,q4){S9.ChartEngine.drawingTools[g5]=q4;};S9.ChartEngine.prototype.setDrawingContainer=function(c2){E9u.W3G();this.drawingContainer=c2;};S9.ChartEngine.prototype.exportDrawings=function(){var W9;W9=[];E9u.W3G();for(var F9=0;F9 < this.drawingObjects.length;F9++){W9.push(this.drawingObjects[F9].serialize());}return W9;};S9.ChartEngine.prototype.abortDrawings=function(q_){var Y5M,X0o,k1O,R6;Y5M=-1260672070;X0o=-1243885496;E9u.O_b(29);k1O=E9u.v$j("2",64);for(var D2k=1;E9u.m6F(D2k.toString(),D2k.toString().length,80440) !== Y5M;D2k++){if(q_ == !0){q_=![];}k1O+=2;}if(E9u.m6F(k1O.toString(),k1O.toString().length,63266) !== X0o){if(q_ !== !({})){q_=!!({});}}for(var D_=this.drawingObjects.length - 1;D_ >= ("0" ^ 0);D_--){R6=this.drawingObjects[D_];R6.abort(!![]);if(q_ || !R6.permanent){this.drawingObjects.splice(D_,1);}}};S9.ChartEngine.prototype.importDrawings=function(a4){var k2,I_,K2;if(!S9.Drawing){return;}E9u.W3G();for(var Z1=+"0";Z1 < a4.length;Z1++){k2=a4[Z1];if(k2.name == "fibonacci"){k2.name="retracement";}I_=S9.ChartEngine.drawingTools[k2.name];if(!I_){if(S9.Drawing[k2.name]){I_=S9.Drawing[k2.name];S9.ChartEngine.registerDrawingTool(k2.name,I_);}}if(I_){K2=new I_();K2.reconstruct(this,k2);this.drawingObjects.push(K2);}}};S9.ChartEngine.prototype.clearDrawings=function(f0,f4){var F8,K7;if(f4 !== !!0){f4=!!"1";}F8=this.exportDrawings();this.abortDrawings(f4);if(f0){this.undoStamps=[];}else {this.undoStamp(F8,this.exportDrawings());}this.changeOccurred("vector");this.cancelTouchSingleClick=!!"1";S9.clearCanvas(this.chart.tempCanvas,this);this.draw();E9u.W3G();K7=this.controls.mSticky;if(K7){K7.style.display="none";K7.children["0" << 64].innerHTML="";}};S9.ChartEngine.prototype.createDrawing=function(w9,d8){var m5,B6;if(!S9.Drawing){return;}m5=new S9.Drawing[w9]();m5.reconstruct(this,d8);B6=new S9.Drawing[w9]();B6.stx=this;B6.copyConfig();for(var r1 in B6){m5[r1]=m5[r1] || B6[r1];}this.drawingObjects.push(m5);this.draw();return m5;};S9.ChartEngine.prototype.removeDrawing=function(G2){var O3c;for(var f5=0;f5 < this.drawingObjects.length;f5++){if(this.drawingObjects[f5] == G2){O3c="v";O3c+="ector";E9u.s$9(2);this.drawingObjects.splice(f5,E9u.V9a(1,"1"));this.changeOccurred(O3c);this.draw();return;}};};S9.ChartEngine.prototype.undo=function(){if(this.runPrepend("undo",arguments)){return;}if(this.activeDrawing){this.activeDrawing.abort();this.activeDrawing.hidden=!1;this.drawingSnapshot=null;this.activateDrawing(null);S9.clearCanvas(this.chart.tempCanvas,this);this.draw();this.controls.crossX.classList.replace("stx_crosshair_drawing","stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing","stx_crosshair");S9.ChartEngine.drawingLine=!1;}this.runAppend("undo",arguments);};S9.ChartEngine.prototype.undoStamp=function(n0,s9){this.undoStamps.push(n0);this.dispatch("undoStamp",{before:n0,after:s9,stx:this});};S9.ChartEngine.prototype.undoLast=function(){E9u.W5N();if(this.activeDrawing){this.undo();}else {if(this.undoStamps.length){this.drawingObjects=[];this.importDrawings(this.undoStamps.pop());this.changeOccurred("vector");this.draw();}}};S9.ChartEngine.prototype.addDrawing=function(l0){var Q_;Q_=this.exportDrawings();this.drawingObjects.push(l0);this.undoStamp(Q_,this.exportDrawings());};S9.ChartEngine.prototype.repositionDrawing=function(X9,F3){var V3,A2,H0;V3=this.panels[X9.panelName];E9u.W3G();A2=this.adjustIfNecessary(V3,this.crosshairTick,this.valueFromPixel(this.backOutY(S9.ChartEngine.crosshairY),V3));H0=this.chart.tempCanvas;S9.clearCanvas(H0,this);if(F3){this.drawingSnapshot=this.exportDrawings();X9.render(H0.context);}else {X9.reposition(H0.context,X9.repositioner,this.crosshairTick,A2);if(this.drawingSnapshot){this.undoStamp(S9.shallowClone(this.drawingSnapshot),this.exportDrawings());}this.drawingSnapshot=null;}if(X9.measure){X9.measure();}};S9.ChartEngine.prototype.activateRepositioning=function(G7){var z$9,H1;z$9="b";z$9+="lock";E9u.W3G();H1=this.repositioningDrawing=G7;if(G7){this.draw();this.repositionDrawing(G7,!!1);}this.chart.tempCanvas.style.display=G7?z$9:"none";};S9.ChartEngine.prototype.activateDrawing=function(y4,W4){var A1H,J_A,M5m,Q3H,B1;if(!W4){W4=this.currentPanel;}if(!y4){A1H="no";A1H+="n";A1H+="e";this.activeDrawing=null;this.chart.tempCanvas.style.display=A1H;s5(this);return ![];}function s5(z3){var G4;if(!z3.layout.studies){return;}E9u.W3G();G4=z3.layout.studies[W4.name];if(G4 && !G4.overlay){delete z3.overlays[G4.name];}}J_A=-+"823830164";M5m=-113927890;Q3H=2;E9u.W3G();for(var c5q=1;E9u.m6F(c5q.toString(),c5q.toString().length,98162) !== J_A;c5q++){B1=S9.ChartEngine.drawingTools[y4];Q3H+=2;}if(E9u.l5h(Q3H.toString(),Q3H.toString().length,43136) !== M5m){B1=S9.ChartEngine.drawingTools[y4];}if(!B1){if(S9.Drawing[y4]){B1=S9.Drawing[y4];S9.ChartEngine.registerDrawingTool(y4,B1);}}if(B1){this.activeDrawing=new B1();this.activeDrawing.construct(this,W4);if(!this.charts[W4.name]){if(this.activeDrawing.chartsOnly){this.activeDrawing=null;s5(this);return ![];}}}this.chart.tempCanvas.style.display="block";if(this.controls.drawOk){this.controls.drawOk.style.display="none";}s5(this);return !![];};S9.ChartEngine.prototype.drawingClick=function(B5,t4,C5){var X0,Z$,Y1,Z8c,M_q,b0g,O4C,L81;if(!S9.Drawing){return;}if(!B5){return;}if(this.openDialog !== ""){return;}if(!this.activeDrawing){if(!this.activateDrawing(this.currentVectorParameters.vectorType,B5)){return;}}if(this.activeDrawing){if(this.userPointerDown && !this.activeDrawing.dragToDraw){if(!S9.ChartEngine.drawingLine){this.activateDrawing(null);}return;}X0=this.tickFromPixel(t4,B5.chart);Z$=this.panels[this.activeDrawing.panelName];Y1=this.adjustIfNecessary(Z$,X0,this.valueFromPixel(C5,Z$));if(this.magnetizedPrice){Y1=this.adjustIfNecessary(Z$,X0,this.magnetizedPrice);}if(this.activeDrawing.click(this.chart.tempCanvas.context,X0,Y1)){if(this.activeDrawing){Z8c="s";Z8c+="tx_crosshair";M_q="st";M_q+="x_crosshair_drawing";b0g="ve";b0g+="ct";b0g+="o";b0g+="r";S9.ChartEngine.drawingLine=!({});S9.clearCanvas(this.chart.tempCanvas,this);this.addDrawing(this.activeDrawing);this.activateDrawing(null);this.adjustDrawings();this.draw();this.changeOccurred(b0g);this.controls.crossX.classList.replace(M_q,"stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing",Z8c);}}else {O4C="stx_cross";O4C+="ha";O4C+="ir_draw";O4C+="ing";L81="stx_";L81+="crosshair";this.changeOccurred("drawing");S9.ChartEngine.drawingLine=!0;this.controls.crossX.classList.replace("stx_crosshair","stx_crosshair_drawing");this.controls.crossY.classList.replace(L81,O4C);}return !0;}return ![];};S9.ChartEngine.prototype.rightClickDrawing=function(a_,p_){var Q5m,r9,m$;Q5m="rightCli";Q5m+="ck";Q5m+="Drawing";if(this.runPrepend(Q5m,arguments)){return;}if(a_.permanent){return;}if(this.callbackListeners.drawingEdit.length){this.dispatch("drawingEdit",{stx:this,drawing:a_,forceEdit:p_});}else {r9=a_.abort();if(!r9){m$=this.exportDrawings();this.removeDrawing(a_);this.undoStamp(m$,this.exportDrawings());}this.changeOccurred("vector");}this.runAppend("rightClickDrawing",arguments);};S9.ChartEngine.prototype.magnetize=function(){var P4m,u0T,I77,P6s,j_s,s86,x6,s1,k5,D$,K0,A$,Z5,t8,R0,x39,z$,s6,Z2,M$,H8,z4,W3,k4,e1,c8;P4m="stx-dragg";P4m+="a";P4m+="b";P4m+="le";u0T="#";u0T+="398dff";I77="C";I77+="l";I77+="o";I77+="se";P6s="L";P6s+="o";P6s+="w";j_s="ca";j_s+="ll";j_s+="ou";j_s+="t";s86="f";s86+="ree";s86+="f";s86+="orm";this.magnetizedPrice=null;if(!this.preferences.magnet){return;}if(this.runPrepend("magnetize",arguments)){return;}if(this.repositioningDrawing){return;}x6=this.currentVectorParameters.vectorType;if(!x6 || x6 == "projection" || x6 == s86){return;}if((x6 == "annotation" || x6 == j_s) && S9.ChartEngine.drawingLine){return;}s1=this.currentPanel;k5=s1.chart;D$=this.crosshairTick;if(D$ > k5.dataSet.length){return;}K0=k5.dataSet[D$];if(!K0){return;}A$=k5.transformFunc && s1.yAxis === k5.yAxis;if(A$ && K0.transform){K0=K0.transform;}t8=this.getRenderedItems();R0=["Open","High",P6s,I77];if(this.magneticHold && this.activeDrawing && this.activeDrawing.penDown){x39="Hi";x39+="gh";if(R0.indexOf(this.magneticHold) != -1 && t8.indexOf(x39) != -1){t8=R0;}else {t8=[this.magneticHold];}}else {this.magneticHold=null;}z$=1000000000;s6=parseFloat(this.preferences.magnet);for(var U3="0" >> 0;U3 < t8.length;U3++){Z2=K0[t8[U3]];M$=this.getYAxisByField(s1,t8[U3]);H8=S9.existsInObjectChain(K0,t8[U3]);if(H8){Z2=H8.obj[H8.member];}if(Z2 || Z2 === "0" - 0){z4=this.pixelFromTransformedValue(Z2,s1,M$);if(Math.abs(this.cy - z4) < z$){z$=Math.abs(this.cy - z4);if(s6 && s6 <= z$)continue;this.magnetizedPrice=A$?this.valueFromPixel(z4,s1):Z2;Z5=z4;this.magneticHold=t8[U3];}}}W3=this.pixelFromTick(D$,k5);k4=Z5;S9.clearCanvas(k5.tempCanvas,this);e1=k5.tempCanvas.context;e1.beginPath();e1.lineWidth=1;E9u.s$9(32);var k2c=E9u.V9a(30,17,40,90,8);E9u.O_b(33);var n86=E9u.v$j(13,1,11);c8=Math.max(this.layout.candleWidth,k2c) / n86;e1.arc(W3,k4,Math.min(c8,8),0,+"2" * Math.PI,!({}));e1.fillStyle="#398dff";e1.strokeStyle=u0T;e1.fill();e1.stroke();e1.closePath();k5.tempCanvas.style.display="block";if(this.anyHighlighted){this.container.classList.remove(P4m);}if(this.activeDrawing){this.activeDrawing.move(e1,this.crosshairTick,this.magnetizedPrice);}this.runAppend("magnetize",arguments);};S9.ChartEngine.prototype.changeVectorType=function(E$){this.currentVectorParameters.vectorType=E$;if(S9.Drawing){S9.Drawing.initializeSettings(this,E$);}if(S9.ChartEngine.drawingLine){this.undo();}if(this.insideChart){this.doDisplayCrosshairs();}};S9.ChartEngine.prototype.changeVectorParameter=function(I2,L6){var T0r,g2a,s99,J6,q0o,D0V;T0r="fon";T0r+="tSize";g2a="t";g2a+="r";g2a+="u";g2a+="e";s99="ax";s99+="isLa";s99+="bel";if(I2 == s99){L6=L6.toString() === g2a || Number(L6);}else if(I2 == "lineWidth"){L6=Number(L6);}else if(I2 == T0r){E9u.s$9(23);var r0x=E9u.v$j(11,1);L6=parseInt(L6,r0x) + "px";}J6=this.currentVectorParameters;if(typeof J6[I2] !== "undefined"){J6[I2]=L6;return !!({});}else if(I2.substr(0,4) == "font"){q0o="defau";q0o+="lt";D0V="fa";D0V+="mily";I2=I2.substr(4).toLowerCase();if(I2 == D0V && L6.toLowerCase() == q0o){L6=null;}J6=J6.annotation.font;if(typeof J6[I2] !== "undefined"){J6[I2]=L6;return !!1;}}return !({});};S9.ChartEngine.prototype.drawVectors=function(){var h5,m6,j2,N0,l9;if(this.vectorsShowing){return;}if(this.runPrepend("drawVectors",arguments)){return;}this.vectorsShowing=!![];if(!this.chart.hideDrawings && !this.highlightedDraggable){h5={};for(j2=0;j2 < this.drawingObjects.length;j2++){N0=this.drawingObjects[j2];if(N0.hidden)continue;if(this.repositioningDrawing === N0)continue;m6=N0.panelName;if(!this.panels[N0.panelName] || this.panels[N0.panelName].hidden)continue;if(!h5[m6]){h5[m6]=[];}h5[m6].push(N0);}for(m6 in h5){this.startClip(m6);l9=h5[m6];for(j2=0;j2 < l9.length;j2++){l9[j2].render(this.chart.context);}this.endClip();}}E9u.W3G();this.runAppend("drawVectors",arguments);};S9.ChartEngine.prototype.adjustDrawings=function(){var Q2;for(var w1=+"0";w1 < this.drawingObjects.length;w1++){Q2=this.drawingObjects[w1];if(this.panels[Q2.panelName]){Q2.adjust();}}};S9.Drawing=S9.Drawing || (function(){this.chartsOnly=!!0;this.penDown=!!"";E9u.W5N();;});S9.Drawing.getDrawingParameters=function(J$,h_){var i4,s3,u6,a6;E9u.W5N();try{i4=new S9.Drawing[h_]();}catch(k7){}if(!i4){return null;}i4.stx=J$;i4.copyConfig(!0);s3={};u6=i4.configs;for(var n7=0;n7 < u6.length;n7++){s3[u6[n7]]=i4[u6[n7]];}a6=J$.canvasStyle("stx_annotation");if(a6 && s3.font){s3.font.size=a6.fontSize;s3.font.family=a6.fontFamily;s3.font.style=a6.fontStyle;s3.font.weight=a6.fontWeight;}return s3;};S9.Drawing.saveConfig=function(w2,Y8){var D6,W_;if(!Y8){return;}D6=w2.preferences;if(!D6.drawings){D6.drawings={};}D6.drawings[Y8]={};W_=new S9.Drawing[Y8]();W_.stx=w2;S9.Drawing.copyConfig(W_);W_.configs.forEach(function(d2){E9u.W3G();D6.drawings[Y8][d2]=W_[d2];});w2.changeOccurred("preferences");};S9.Drawing.restoreDefaultConfig=function(z8,u4,f8){var Z4c,u$g,M$m;if(f8){z8.preferences.drawings=null;}else {z8.preferences.drawings[u4]=null;}z8.changeOccurred("preferences");E9u.W5N();Z4c=-935116489;u$g=-137411935;M$m=2;for(var v5h=1;E9u.m6F(v5h.toString(),v5h.toString().length,27367) !== Z4c;v5h++){z8.currentVectorParameters=S9.clone(S9.ChartEngine.currentVectorParameters);z8.currentVectorParameters.vectorType=u4;M$m+=2;}if(E9u.m6F(M$m.toString(),M$m.toString().length,73385) !== u$g){z8.currentVectorParameters=S9.clone(S9.ChartEngine.currentVectorParameters);z8.currentVectorParameters.vectorType=u4;}};S9.Drawing.initializeSettings=function(Q1,U1){var i1,C6;i1=S9.Drawing[U1];if(i1){C6=new i1();if(C6.initializeSettings){C6.initializeSettings(Q1);}}};S9.Drawing.updateSource=function(B4,T5,z6,r5){var i_,j1;if(!T5){return;}i_=!"1";for(var i5 in B4.drawingObjects){j1=B4.drawingObjects[i5];if(!j1.field)continue;if(z6){if(j1.field == T5){j1.field=z6;i_=!"";}else if(j1.field.indexOf(T5) > -1 && j1.field.indexOf(T5 + ((594.84,+"864.07") > (3954,7230)?(0x1358,"0xebf" - 0):"1448" - 0 >= ("4053" ^ 0)?4850 == (4460,5880)?(0x1242,"G"):(3.88e+3,800.65):"-")) == -("1" ^ 0)){j1.field=j1.field.replace(T5,z6);i_=!![];}}else {if(j1.field.split("-->")[0] == T5 || j1.panelName == T5){j1.panelName=r5;i_=!!({});}}}if(i_){B4.changeOccurred("vector");}};S9.Drawing.prototype.copyConfig=function(Y_){E9u.W5N();S9.Drawing.copyConfig(this,Y_);};S9.Drawing.copyConfig=function(N1,E2){var h8,b4,K4,I9,g8u,o5,s9M,c51;h8=N1.stx.currentVectorParameters;b4=N1.configs;for(K4=0;K4 < b4.length;K4++){g8u="f";g8u+="o";g8u+="n";g8u+="t";I9=b4[K4];if(I9 == "color"){N1.color=h8.currentColor;}else if(I9 == "parameters"){N1.parameters=S9.clone(h8.fibonacci);}else if(I9 == g8u){N1.font=S9.clone(h8.annotation.font);}else {N1[I9]=h8[I9];}}if(!E2){return;}o5=N1.stx.preferences;if(o5 && o5.drawings){S9.extend(N1,o5.drawings[h8.vectorType]);for(K4=+"0";K4 < b4.length;K4++){s9M="f";s9M+="o";s9M+="n";s9M+="t";c51="p";c51+="arameters";I9=b4[K4];if(I9 == "color"){h8.currentColor=N1.color;}else if(I9 == c51){h8.fibonacci=S9.clone(N1.parameters);}else if(I9 == s9M){h8.annotation.font=S9.clone(N1.font);}else {h8[I9]=N1[I9];}}}};S9.Drawing.prototype.dragToDraw=![];S9.Drawing.prototype.permanent=!({});S9.Drawing.prototype.chartsOnly=![];S9.Drawing.prototype.abort=function(N2){};S9.Drawing.prototype.measure=function(){};S9.Drawing.prototype.construct=function(X1,r$){this.stx=X1;this.panelName=r$.name;};S9.Drawing.prototype.render=function(T6){console.warn("must implement render function!");};S9.Drawing.prototype.click=function(M3,F4,o_){console.warn("must implement click function!");};S9.Drawing.prototype.move=function(u2,T3,L7){console.warn("must implement move function!");};S9.Drawing.prototype.reposition=function(k6,a5,H5,e3){};S9.Drawing.prototype.intersected=function(w4,P9,U6){var X67;X67="must implement intersected functi";X67+="on!";console.warn(X67);};S9.Drawing.prototype.reconstruct=function(M9,P6){console.warn("must implement reconstruct function!");};S9.Drawing.prototype.serialize=function(){console.warn("must implement serialize function!");};S9.Drawing.prototype.adjust=function(){console.warn("must implement adjust function!");};S9.Drawing.prototype.highlight=function(x4){if(x4 && !this.highlighted){this.highlighted=x4;}else if(!x4 && this.highlighted){this.highlighted=x4;}return this.highlighted;};S9.Drawing.prototype.littleCircleRadius=function(){var s8;s8=6;return s8;};S9.Drawing.prototype.littleCircle=function(z7,f6,k_,c3){var y3,p9;if(this.permanent){return;}y3=this.stx.defaultColor;p9=S9.chooseForegroundColor(y3);z7.beginPath();E9u.s$9(1);z7.lineWidth=E9u.v$j(0,"1");z7.arc(f6,k_,this.littleCircleRadius(),0,2 * Math.PI,!"1");if(c3){z7.fillStyle=y3;}else {z7.fillStyle=p9;}z7.strokeStyle=y3;z7.setLineDash([]);z7.fill();z7.stroke();z7.closePath();};S9.Drawing.prototype.rotator=function(S3,w8,p7,o0){var O2,S_,p8;if(this.permanent){return;}O2=this.littleCircleRadius();S_=this.stx.defaultColor;S3.beginPath();S3.lineWidth=2;if(!o0){S3.globalAlpha=0.5;}E9u.s$9(34);p8=E9u.v$j(O2,"4",64);S3.arc(w8,p7,p8,0,+"3" * Math.PI / 2,!({}));E9u.s$9(35);S3.moveTo(E9u.V9a(2,p8,w8),E9u.v$j(p7,2,E9u.s$9(0)));E9u.s$9(0);S3.lineTo(E9u.V9a(w8,p8),p7);E9u.O_b(33);S3.lineTo(E9u.V9a(w8,p8,2),E9u.V9a(p7,2,E9u.O_b(0)));E9u.O_b(36);S3.moveTo(E9u.v$j("2",w8),E9u.v$j(2,p7,p8,E9u.O_b(16)));E9u.O_b(1);S3.lineTo(w8,E9u.V9a(p8,p7));E9u.s$9(1);E9u.W3G();S3.lineTo(E9u.v$j(2,w8),E9u.v$j(2,p8,p7,E9u.s$9(37)));S3.strokeStyle=S_;S3.stroke();S3.closePath();E9u.O_b(29);S3.globalAlpha=E9u.v$j("1",32);};S9.Drawing.prototype.mover=function(R5,I5,K9,Z4){var y8,G8,L8,I$;if(this.permanent){return;}y8=this.littleCircleRadius();G8=this.stx.defaultColor;L8=5;E9u.s$9(0);I$=E9u.v$j(y8,1);R5.save();E9u.O_b(29);R5.lineWidth=E9u.V9a("2",32);R5.strokeStyle=G8;R5.translate(I5,K9);if(!Z4){R5.globalAlpha=0.5;}for(var S$=0;S$ < 4;S$++){R5.rotate(Math.PI / 2);R5.beginPath();R5.moveTo(0,I$);E9u.O_b(0);R5.lineTo(0,E9u.V9a(I$,L8));E9u.s$9(16);R5.moveTo(-2,E9u.V9a(L8,I$,2));E9u.O_b(0);R5.lineTo(0,E9u.v$j(I$,L8));E9u.s$9(16);R5.lineTo(2,E9u.V9a(L8,I$,2));R5.closePath();R5.stroke();}E9u.s$9(29);R5.globalAlpha=E9u.v$j("1",32);R5.restore();};S9.Drawing.prototype.resizer=function(u7,I4,a3,y9){var B$,d_,t6,k9;if(this.permanent){return;}E9u.W5N();B$=this.littleCircleRadius();d_=this.stx.defaultColor;E9u.s$9(38);var x6z=E9u.V9a(20,7,18,18,10);t6=+"5" * Math.sqrt(x6z);E9u.s$9(6);k9=E9u.v$j(B$,"1");u7.save();u7.lineWidth=2;u7.strokeStyle=d_;u7.translate(I4,a3);u7.rotate(-(I4 * a3) / Math.abs(I4 * a3) * Math.PI / 4);if(!y9){u7.globalAlpha=0.5;}for(var E8=0;E8 < 2;E8++){u7.rotate(Math.PI);u7.beginPath();u7.moveTo(0,k9);E9u.O_b(0);u7.lineTo(0,E9u.v$j(k9,t6));E9u.O_b(16);u7.moveTo(-2,E9u.V9a(t6,k9,2));E9u.s$9(39);u7.lineTo(E9u.V9a("0",0),E9u.v$j(k9,t6,E9u.s$9(0)));E9u.s$9(40);u7.lineTo(2,E9u.V9a(t6,k9,"2",0));u7.closePath();u7.stroke();}u7.globalAlpha=+"1";u7.restore();};S9.Drawing.prototype.pointIntersection=function(G5,l4,F5,i9){var i$;i$=this.stx.panels[this.panelName];if(!i$){return !({});}if(i9){if(G5 >= F5.cx0 && G5 <= F5.cx1 && l4 >= F5.cy0 && l4 <= F5.cy1){return !"";}}else {if(G5 >= F5.x0 && G5 <= F5.x1 && l4 >= Math.min(F5.y0,F5.y1) && l4 <= Math.max(F5.y0,F5.y1)){return !0;}}return !({});};S9.Drawing.prototype.setPoint=function(l6,F2,c_,n$){var u4x,t_,y5,i0,o85,X$,g3;u4x="num";u4x+="ber";t_=null;y5=null;E9u.W5N();if(typeof F2 == u4x){t_=F2;}else if(F2.length >= 8){y5=F2;}else {t_=Number(F2);}if(c_ || c_ === 0){E9u.O_b(0);this[E9u.V9a("v",l6)]=c_;}if(t_ !== null){o85="t";o85+="zo";i0=this.stx.dateFromTick(t_,n$,!![]);E9u.O_b(0);this[E9u.V9a(o85,l6)]=i0.getTimezoneOffset();E9u.O_b(0);this[E9u.V9a(552.6 <= 132.77?!({}):(121.89,1257) >= 8120?(0xe6b,"k"):"d",l6)]=S9.yyyymmddhhmmssmmm(i0);E9u.O_b(0);this[E9u.V9a(492.95 >= (764.01,+"8600")?!0:(747,475) === +"5378"?+"4.34e+3":+"865.5" == "4205" << 0?(!!"1",!!1):"p",l6)]=[t_,c_];}else if(y5 !== null){i0=S9.strToDateTime(y5);if(!this["tzo" + l6] && this["tzo" + l6] !== 0){E9u.O_b(0);this[E9u.V9a("tzo",l6)]=i0.getTimezoneOffset();}E9u.s$9(0);this[E9u.V9a(("7151" - 0,7725) == (5871,9983)?6.14e+3:(4520,40.49) <= (1060,5291)?"d":(3357,"2416" << 32) == (742,6171)?"9.65e+3" << 0:!![],l6)]=y5;X$=this["tzo" + l6] - i0.getTimezoneOffset();i0.setMinutes(i0.getMinutes() + X$);g3=![];if(this.name != "freeform" && !S9.ChartEngine.isDailyInterval(this.stx.layout.interval) && !i0.getHours() && !i0.getMinutes() && !i0.getSeconds() && !i0.getMilliseconds()){g3=!!({});}E9u.O_b(0);this[E9u.V9a(19 != (8146,1010)?"p":0xa7,l6)]=[this.stx.tickFromDate(S9.yyyymmddhhmmssmmm(i0),n$,null,g3),c_];}};S9.Drawing.prototype.getLineColor=function(R1){var L6d,F29,M6,e2,W$,K3,w$,b6,t7,Q5F,A8,L_;E9u.W3G();L6d="a";L6d+="u";L6d+="t";L6d+="o";F29="a";F29+="u";F29+="t";F29+="o";if(!R1){R1=this.color;}M6=this.stx;e2=R1;if(this.highlighted){e2=M6.getCanvasColor("stx_highlight_vector");}else if(S9.isTransparent(e2)){e2=M6.defaultColor;}else if(e2 == F29){e2=M6.defaultColor;if(this.field){for(W$ in M6.layout.studies){K3=M6.layout.studies[W$];w$=K3.outputs[K3.outputMap[this.field]];if(w$){e2=w$.color || w$;break;}}for(W$ in M6.chart.seriesRenderers){t7=M6.chart.seriesRenderers[W$];for(var Q0=0;Q0 < t7.seriesParams.length;Q0++){Q5F="-";Q5F+="-";Q5F+=">";A8=t7.seriesParams[Q0];L_=A8.field;if(!L_ && !t7.highLowBars){L_=this.defaultPlotField || "Close";}if(A8.symbol && A8.subField){L_+=Q5F + A8.subField;}if(this.field == L_){e2=A8.color;break;}if(A8.field && A8.field == this.field.split("-->")[0]){b6=A8.color;}}}if(b6){e2=b6;}}}if(e2 == L6d){e2=M6.defaultColor;}return e2;};S9.Drawing.BaseTwoPoint=function(){E9u.W5N();this.p0=null;this.p1=null;this.color="";};S9.inheritsFrom(S9.Drawing.BaseTwoPoint,S9.Drawing);S9.Drawing.BaseTwoPoint.prototype.configs=[];S9.Drawing.BaseTwoPoint.prototype.lineIntersection=function(s7,k1,Y2,E7,G_,M8,N4){E9u.W3G();var N5,F1,b8;if(!G_){G_=this.p0;}if(!M8){M8=this.p1;}N5=this.stx;if(!(G_ && M8)){return ![];}F1=S9.convertBoxToPixels(N5,this.panelName,Y2);if(F1.x0 === undefined){return ![];}b8={x0:G_[0],x1:M8["0" << 0],y0:G_[1],y1:M8[1]};if(!N4){b8=S9.convertBoxToPixels(N5,this.panelName,b8);}return S9.boxIntersects(F1.x0,F1.y0,F1.x1,F1.y1,b8.x0,b8.y0,b8.x1,b8.y1,E7);};S9.Drawing.BaseTwoPoint.prototype.boxIntersection=function(b0,x_,G3){E9u.W3G();if(!this.p0 || !this.p1){return !({});}if(G3.x0 > Math.max(this.p0[0],this.p1[0]) || G3.x1 < Math.min(this.p0[0],this.p1[+"0"])){return !!"";}if(G3.y1 > Math.max(this.p0[1],this.p1[1]) || G3.y0 < Math.min(this.p0["1" >> 32],this.p1[1])){return !"1";}return !0;};S9.Drawing.BaseTwoPoint.prototype.accidentalClick=function(H2,O6){var H6,Q5,J0,T2,Y7,M0,k3,a0;H6=this.stx.panels[this.panelName];Q5=this.stx.pixelFromTick(this.p0[0],H6.chart);J0=this.stx.pixelFromTick(H2,H6.chart);T2=this.stx.pixelFromValueAdjusted(H6,this.p0[0],this.p0[1]);Y7=this.stx.pixelFromValueAdjusted(H6,H2,O6);E9u.s$9(1);M0=Math.abs(E9u.v$j(Q5,J0));E9u.s$9(1);k3=Math.abs(E9u.V9a(T2,Y7));E9u.O_b(41);a0=Math.sqrt(E9u.v$j(k3,M0,k3,M0));if(a0 < 10){this.penDown=!({});if(this.dragToDraw){this.stx.undo();}return !"";}};S9.Drawing.BaseTwoPoint.prototype.click=function(H4,b9,z0){var W0,c8G,H37,M9i;this.copyConfig();W0=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,b9,z0,W0.chart);this.penDown=!!"1";return !"1";}E9u.W5N();if(this.accidentalClick(b9,z0)){return this.dragToDraw;}this.setPoint(1,b9,z0,W0.chart);this.penDown=!1;c8G=-1085514531;E9u.s$9(42);H37=-E9u.V9a("57670071",35);M9i=2;for(var B9D="1" << 0;E9u.m6F(B9D.toString(),B9D.toString().length,93560) !== c8G;B9D++){return !![];;M9i+=2;}if(E9u.m6F(M9i.toString(),M9i.toString().length,14266) !== H37){return !({});;}};S9.Drawing.BaseTwoPoint.prototype.adjust=function(){var g7;g7=this.stx.panels[this.panelName];if(!g7){return;}this.setPoint(0,this.d0,this.v0,g7.chart);this.setPoint(1,this.d1,this.v1,g7.chart);};S9.Drawing.BaseTwoPoint.prototype.move=function(I1,y$,T0){var C$c,C8B,f2$;if(!this.penDown){return;}C$c=1115619788;C8B=-1774743925;f2$=+"2";for(var O1w="1" * 1;E9u.l5h(O1w.toString(),O1w.toString().length,14235) !== C$c;O1w++){this.copyConfig();f2$+=2;}if(E9u.l5h(f2$.toString(),f2$.toString().length,5357) !== C8B){this.copyConfig();}this.p1=[y$,T0];this.render(I1);};S9.Drawing.BaseTwoPoint.prototype.measure=function(){var g4,E3,G_O,H9;if(this.p0 && this.p1){this.stx.setMeasure(this.p0[1],this.p1[1],this.p0[0],this.p1[0],!![],this.name);g4=this.stx.controls.mSticky;E3=g4 && g4.querySelector(".mStickyInterior");if(E3){G_O="<";G_O+="br>";H9=[];H9.push(S9.capitalize(this.name));if(this.getYValue){H9.push(this.field || this.stx.defaultPlotField || "Close");}H9.push(E3.innerHTML);E3.innerHTML=H9.join(G_O);}}};S9.Drawing.BaseTwoPoint.prototype.reposition=function(o8,T1,V5,b2){var G5s,X8l,L3,S0,W1;G5s="d";G5s+="r";G5s+="a";G5s+="g";X8l="m";X8l+="ov";X8l+="e";if(!T1){return;}L3=this.stx.panels[this.panelName];S0=T1.tick - V5;W1=T1.value - b2;if(T1.action == X8l){this.setPoint(+"0",T1.p0[0] - S0,T1.p0[1] - W1,L3.chart);E9u.s$9(2);this.setPoint(E9u.V9a(1,"1"),T1.p1[0] - S0,T1.p1[1] - W1,L3.chart);this.render(o8);}else if(T1.action == G5s){this[T1.point]=[V5,b2];this.setPoint(0,this.p0[0],this.p0[1],L3.chart);this.setPoint(1,this.p1[0],this.p1[1],L3.chart);this.render(o8);}};S9.Drawing.BaseTwoPoint.prototype.drawDropZone=function(J8,f7,u$,a8,C_){var A_,r4,J5,E1,p$;A_=this.stx.panels[this.panelName];if(!A_){return;}r4=A_.left;J5=A_.width;if(a8 || a8 === 0){r4=this.stx.pixelFromTick(a8,A_.chart);}if(C_ || C_ === "0" << 0){J5=this.stx.pixelFromTick(C_,A_.chart);}E1=this.stx.pixelFromPrice(f7,A_);p$=this.stx.pixelFromPrice(u$,A_);J8.fillStyle="#008000";J8.globalAlpha=0.2;E9u.O_b(1);J8.fillRect(r4,E1,E9u.v$j(r4,J5),E9u.V9a(E1,p$));J8.globalAlpha=1;};S9.Drawing.annotation=function(){this.name="annotation";this.arr=[];this.w=0;this.h=0;this.padding=4;this.text="";this.ta=null;this.fontSize=+"0";this.font={};};S9.inheritsFrom(S9.Drawing.annotation,S9.Drawing.BaseTwoPoint);S9.Drawing.annotation.prototype.getFontString=function(){var S$V,J_,j6;E9u.W3G();S$V="12";S$V+="p";S$V+="x";this.fontDef={style:null,weight:null,size:S$V,family:null};J_=this.stx.canvasStyle("stx_annotation");if(J_){if(J_.fontStyle){this.fontDef.style=J_.fontStyle;}if(J_.fontWeight){this.fontDef.weight=J_.fontWeight;}if(J_.fontSize){this.fontDef.size=J_.fontSize;}if(J_.fontFamily){this.fontDef.family=J_.fontFamily;}}if(this.font.style){this.fontDef.style=this.font.style;}if(this.font.weight){this.fontDef.weight=this.font.weight;}if(this.font.size){this.fontDef.size=this.font.size;}if(this.font.family){this.fontDef.family=this.font.family;}this.fontString="";j6=!!({});for(var p5 in this.fontDef){if(this.fontDef[p5]){if(!j6){this.fontString+=" ";}else {j6=!!"";}this.fontString+=this.fontDef[p5];}}};S9.Drawing.annotation.prototype.configs=["color","font"];S9.Drawing.annotation.prototype.measure=function(){};S9.Drawing.annotation.prototype.render=function(m8){var a0K,o$x,i7k,F0,z_,O3j,M7,s6I,h5q,b_6,f05,s26,C2,v6i;if(this.ta){return;}a0K=this.stx.panels[this.panelName];if(!a0K){return;}o$x=this.stx.pixelFromTick(this.p0[0],a0K.chart);i7k=this.stx.pixelFromValueAdjusted(a0K,this.p0[0],this.p0[1]);m8.font=this.fontString;m8.textBaseline="middle";F0=o$x;z_=i7k;O3j=this.w;M7=this.h;s6I=this.getLineColor();if(this.stem){if(this.stem.d){h5q=this.stx.pixelFromTick(this.stem.t);f05=this.stx.pixelFromValueAdjusted(a0K,this.stem.t,this.stem.v);E9u.O_b(43);b_6=E9u.v$j(F0,2,O3j);E9u.s$9(43);s26=E9u.v$j(z_,2,M7);}else if(this.stem.x){h5q=F0;f05=z_;F0+=this.stem.x;z_+=this.stem.y;E9u.s$9(43);b_6=E9u.V9a(F0,2,O3j);E9u.O_b(43);s26=E9u.V9a(z_,2,M7);}m8.beginPath();if(this.borderColor){m8.strokeStyle=this.borderColor;}else {m8.strokeStyle=s6I;}m8.moveTo(h5q,f05);m8.lineTo(b_6,s26);m8.stroke();}C2=m8.lineWidth;if(this.highlighted){v6i="stx_a";v6i+="nnotation_highlight_bg";this.stx.canvasColor(v6i,m8);E9u.O_b(1);m8.fillRect(E9u.v$j(C2,F0),E9u.V9a(M7,2,C2,z_,E9u.O_b(44)),E9u.v$j(C2,"2",O3j,0,E9u.s$9(45)),E9u.V9a(2,M7,C2,E9u.O_b(46)));}else {if(this.fillColor){m8.fillStyle=this.fillColor;E9u.s$9(47);m8.fillRect(F0,E9u.v$j(M7,z_,2),O3j,M7);}else if(this.stem){m8.fillStyle=this.stx.containerColor;E9u.s$9(47);m8.fillRect(F0,E9u.V9a(M7,z_,2),O3j,M7);}}if(this.borderColor){m8.beginPath();m8.strokeStyle=this.highlighted?this.stx.getCanvasColor("stx_highlight_vector"):this.borderColor;E9u.s$9(1);m8.rect(E9u.v$j(C2,F0),E9u.V9a(M7,2,C2,z_,E9u.s$9(44)),E9u.v$j(2,O3j,C2,E9u.s$9(46)),E9u.v$j(2,M7,C2,E9u.s$9(46)));m8.stroke();}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight",m8);}else {m8.fillStyle=s6I;}E9u.s$9(0);var J_R=E9u.V9a(1,1);z_+=this.padding / J_R;if(!this.ta){for(var Q9N=0;Q9N < this.arr.length;Q9N++){m8.fillText(this.arr[Q9N],F0 + this.padding,z_ - M7 / 2 + this.fontSize / 2);E9u.O_b(48);var P1s=E9u.V9a(13,28,10,3,14);z_+=this.fontSize + P1s;;}}m8.textBaseline="alphabetic";};S9.Drawing.annotation.prototype.onChange=function(P7f){;};S9.Drawing.annotation.prototype.edit=function(h69,Q9n){var J$F,r5y,c9t,y9C,m6p,v_f,p4Q,m6D,F03,E3D,c_I,m8T,T_z,g2N,J$u,E9x,Y9B;function k_U(b32){return function(I2o){if(b32.manageTouchAndMouse && S9.ChartEngine.drawingLine){b32.mouseup(I2o);}};}J$F="p";J$F+="x";r5y="p";r5y+="x";c9t="ann";c9t+="otat";c9t+="i";c9t+="on";y9C=this.stx.panels[this.panelName];if(!y9C){return;}m6p=this.stx.controls.annotationSave;v_f=this.stx.controls.annotationCancel;if(!m6p || !v_f){return;}p4Q=this.stx;m6D=this.ta;p4Q.editingAnnotation=!![];function l$q(r5j){return function(k9X){var o2F,W21,x3O,G6P,H5f,o$g,H_L,l1X,C9H,B$i,m3x,h3t,H1l;o2F="p";o2F+="x";if(k9X){W21=k9X.keyCode;switch(W21){case 27:r5j.stx.undo();return;}}x3O=r5j.stx;G6P=r5j.ta;H5f=G6P.value.split("\n");o$g=+"0";x3O.chart.context.font=r5j.fontString;for(var J76=0;J76 < H5f.length;J76++){H_L=x3O.chart.context.measureText(H5f[J76]).width;if(H_L > o$g){o$g=H_L;}}E9u.O_b(49);E9u.W3G();var N6D=E9u.V9a(3,15,0,5);E9u.s$9(50);var B3i=E9u.v$j(20,0,16,1);l1X=(H5f.length + N6D) * (r5j.fontSize + B3i);if(o$g < 50){o$g=50;}E9u.s$9(35);G6P.style.width=E9u.v$j(30,o2F,o$g);E9u.O_b(0);G6P.style.height=E9u.V9a(l1X,"px");C9H=parseInt(S9.stripPX(G6P.style.top),10);B$i=S9.stripPX(G6P.style.left);o$g=G6P.clientWidth;l1X=G6P.clientHeight;if(B$i + o$g + ("100" | 36) < r5j.stx.chart.canvasWidth){m3x="p";m3x+="x";E9u.s$9(0);m6p.style.top=E9u.V9a(C9H,"px");E9u.s$9(0);v_f.style.top=E9u.v$j(C9H,"px");E9u.O_b(51);m6p.style.left=E9u.v$j(m3x,10,B$i,o$g);E9u.s$9(52);v_f.style.left=E9u.v$j("px","60",o$g,B$i);}else if(C9H + l1X + +"30" < r5j.stx.chart.canvasHeight){h3t="p";h3t+="x";E9u.s$9(51);m6p.style.top=E9u.v$j("px",10,C9H,l1X);E9u.O_b(51);v_f.style.top=E9u.v$j("px",10,C9H,l1X);E9u.O_b(0);m6p.style.left=E9u.V9a(B$i,"px");E9u.s$9(35);v_f.style.left=E9u.V9a(50,h3t,B$i);}else {H1l="p";H1l+="x";E9u.O_b(33);m6p.style.top=E9u.v$j(C9H,H1l,35);E9u.O_b(33);v_f.style.top=E9u.v$j(C9H,"px",35);E9u.s$9(0);m6p.style.left=E9u.V9a(B$i,"px");E9u.O_b(35);v_f.style.left=E9u.v$j(50,"px",B$i);}};}function K0l(Y2c){return function(B6p){var w1X;w1X=Y2c.stx;w1X.editingAnnotation=!({});w1X.undo();w1X.cancelTouchSingleClick=!!1;};}p4Q.undisplayCrosshairs();p4Q.openDialog=c9t;if(!m6D){F03="plac";F03+="ehol";F03+="der";m6D=this.ta=document.createElement("TEXTAREA");m6D.className="stx_annotation";m6D.onkeyup=l$q(this);m6D.onmouseup=k_U(p4Q);m6D.setAttribute("wrap","hard");if(S9.isIOS7or8){m6D.setAttribute(F03,"Enter Text");}p4Q.chart.container.appendChild(m6D);m6D.style.position="absolute";m6D.style.width="100px";m6D.style.height="20px";m6D.value=this.text;if(S9.touchDevice){m6D.ontouchstart=function(P$5){P$5.stopPropagation();};;}}E3D=this;function R92(k79){E9u.W5N();return function(u3O){var T8o,d1M;T8o="ve";T8o+="ct";T8o+="o";T8o+="r";if(k79.ta.value === ""){return;}k79.text=k79.ta.value;d1M=k79.stx;d1M.editingAnnotation=![];k79.adjust();if(d1M.drawingSnapshot){d1M.undoStamp(S9.shallowClone(d1M.drawingSnapshot),d1M.exportDrawings());}else {d1M.addDrawing(k79);}d1M.undo();d1M.cancelTouchSingleClick=!![];d1M.changeOccurred(T8o);};}m6D.oninput=function(n1f){if(n1f.inputType != "historyUndo" && n1f.inputType != "historyRedo"){E3D.onChange(n1f);}};m6D.style.font=this.fontString;if(this.color){if(this.color == "transparent" || this.color == "auto"){c_I=getComputedStyle(m6D);if(c_I && S9.isTransparent(c_I.backgroundColor)){m6D.style.color=p4Q.defaultColor;}else {m6D.style.color="#000";;}}else {m6D.style.color=this.color;}}m8T=p4Q.pixelFromTick(this.p0[+"0"],y9C.chart);T_z=p4Q.pixelFromValueAdjusted(y9C,this.p0["0" ^ 0],this.p0[1]);m6D.style.left=m8T + 140 < p4Q.chart.canvasRight?m8T + "px":p4Q.chart.canvasRight - 200 + r5y;m6D.style.top=T_z + 60 < p4Q.chart.canvasHeight?T_z - (!isNaN(this.h)?this.h / 2:this.defaultHeight) + "px":T_z - 60 + J$F;if(this.name == "callout"){E9u.s$9(53);var I1Q=E9u.V9a(10,10,7,10);m6D.style.left=S9.stripPX(m6D.style.left) - (!isNaN(this.w)?this.w / I1Q:this.defaultWidth) + "px";}S9.safeClickTouch(m6p,R92(this));S9.safeClickTouch(v_f,K0l(this));l$q(this)();m6p.style.display="inline-block";v_f.style.display="inline-block";if(Q9n){p4Q.drawingSnapshot=p4Q.exportDrawings();this.hidden=!"";p4Q.draw();p4Q.activeDrawing=this;S9.ChartEngine.drawingLine=!!({});h69=p4Q.chart.tempCanvas.context;p4Q.chart.tempCanvas.style.display="block";this.w=m6D.clientWidth;this.h=m6D.clientHeight;S9.clearCanvas(h69.canvas,p4Q);this.render(h69);this.edit(h69);}m6D.focus();if(S9.isAndroid && !S9.is_chrome && !S9.isFF){this.priorBottom=p4Q.chart.container.style.bottom;g2N=400;E9u.s$9(28);var Y1D=E9u.v$j(1500,12,24092,16);J$u=p4Q.resolveY(T_z) + Y1D;if(J$u > S9.pageHeight() - g2N){E9x=S9.pageHeight() - J$u;E9u.O_b(1);Y9B=E9u.V9a(E9x,g2N);E9u.O_b(0);p4Q.chart.container.style.bottom=E9u.v$j(Y9B,"px");}}};S9.Drawing.annotation.prototype.click=function(W3j,e3O,U$u){var j6T;if(this.stx.overXAxis || this.stx.overYAxis){return;}j6T=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,e3O,U$u,j6T.chart);this.adjust();this.edit(W3j);return !!"";};S9.Drawing.annotation.prototype.reposition=function(Y7w,z9q,t7a,l5M){var R4F,f1w,v9r;if(!z9q){return;}R4F=this.stx.panels[this.panelName];f1w=z9q.tick - t7a;v9r=z9q.value - l5M;this.setPoint(0,z9q.p0[0] - f1w,z9q.p0[1] - v9r,R4F.chart);this.render(Y7w);};S9.Drawing.annotation.prototype.intersected=function(R6r,T9b,D5Z){var Z$I,I$s,s$u,R95,a0a,h2c,o0H;Z$I=this.stx.panels[this.panelName];if(!this.p0){return null;}I$s=this.stx.pixelFromTick(this.p0[0],Z$I.chart);E9u.s$9(54);var L2e=E9u.V9a(9,6,1,14);s$u=this.stx.pixelFromValueAdjusted(Z$I,this.p0[0],this.p0[+"1"]) - this.h / ("2" * L2e);R95=I$s + this.w;a0a=s$u + this.h;E9u.W3G();if(this.stem && this.stem.x){I$s+=this.stem.x;R95+=this.stem.x;s$u+=this.stem.y;a0a+=this.stem.y;}h2c=this.stx.pixelFromTick(R6r,Z$I.chart);o0H=this.stx.pixelFromValueAdjusted(Z$I,R6r,T9b);if(h2c + D5Z.r >= I$s && h2c - D5Z.r <= R95 && o0H + D5Z.r >= s$u && o0H - D5Z.r <= a0a){this.highlighted=!![];return {p0:S9.clone(this.p0),tick:R6r,value:T9b};}return !({});};S9.Drawing.annotation.prototype.abort=function(){var h3R,Y$D;h3R=this.stx.controls.annotationSave;Y$D=this.stx.controls.annotationCancel;if(h3R){h3R.style.display="none";}E9u.W3G();if(Y$D){Y$D.style.display="none";}if(this.ta){this.stx.chart.container.removeChild(this.ta);}this.ta=null;this.stx.openDialog="";this.stx.showCrosshairs();this.stx.editingAnnotation=!({});S9.clearCanvas(this.stx.chart.tempCanvas,this.stx);if(S9.isAndroid && !S9.is_chrome && !S9.isFF){this.stx.chart.container.style.bottom=this.priorBottom;}S9.fixScreen();};S9.Drawing.annotation.prototype.reconstruct=function(W4L,f7C){var P_u;P_u="f";P_u+="amil";P_u+="y";this.stx=W4L;this.color=f7C.col;this.panelName=f7C.pnl;this.d0=f7C.d0;this.tzo0=f7C.tzo0;this.v0=f7C.v0;this.text=W4L.escapeOnSerialize?decodeURIComponent(f7C.text):f7C.text;this.stem=f7C.stem;this.borderColor=f7C.bc;this.fillColor=f7C.bg;E9u.W3G();this.lineWidth=f7C.lw;this.pattern=f7C.ptrn;this.font=S9.replaceFields(f7C.fnt,{st:"style",sz:"size",wt:"weight",fl:P_u});if(!this.font){this.font={};}this.adjust();};S9.Drawing.annotation.prototype.serialize=function(){var r1c,F$z,D_g;r1c={name:this.name,pnl:this.panelName,col:this.color,d0:this.d0,tzo0:this.tzo0,v0:this.v0,text:this.stx.escapeOnSerialize?encodeURIComponent(this.text):this.text};if(this.font){F$z="s";F$z+="z";D_g=S9.removeNullValues(S9.replaceFields(this.font,{style:"st",size:F$z,weight:"wt",family:"fl"}));if(!S9.isEmpty(D_g)){r1c.fnt=D_g;}}if(this.stem){r1c.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};}if(this.borderColor){r1c.bc=this.borderColor;}if(this.fillColor){r1c.bg=this.fillColor;}if(this.lineWidth){r1c.lw=this.lineWidth;}if(this.pattern){r1c.ptrn=this.pattern;}return r1c;};S9.Drawing.annotation.prototype.renderText=function(){var J3O,H$P,Z3K,M0Q,R_T,q8$;this.getFontString();J3O=this.stx.panels[this.panelName];if(!J3O){return;}this.arr=this.text.split("\n");H$P=0;this.stx.chart.context.font=this.fontString;for(var Z79=0;Z79 < this.arr.length;Z79++){Z3K=this.stx.chart.context.measureText(this.arr[Z79]).width;if(Z3K > H$P){H$P=Z3K;}}if(H$P === ("0" | 0)){E9u.s$9(17);var d1N=E9u.v$j(2,3,13,1,11);H$P=d1N * this.defaultWidth;}this.fontSize=S9.stripPX(this.fontDef.size);M0Q=this.arr.length * (this.fontSize + +"2");if(S9.touchDevice){M0Q+=5;}E9u.O_b(23);var l$g=E9u.v$j(11,9);this.w=H$P + this.padding * l$g;E9u.s$9(0);var R6z=E9u.V9a(0,2);this.h=M0Q + this.padding * R6z;R_T=this.stx.pixelFromTick(this.p0[0],J3O.chart) + H$P;E9u.O_b(55);var w9A=E9u.V9a(19,0,5,1,95);q8$=this.stx.pixelFromValueAdjusted(J3O,this.p0[0],this.p0[w9A]) + M0Q;this.p1=[this.stx.tickFromPixel(R_T,J3O.chart),this.stx.valueFromPixel(q8$,J3O)];if(this.stem && this.stem.d){this.stem.t=this.stx.tickFromDate(this.stem.d,J3O.chart);}};S9.Drawing.annotation.prototype.adjust=function(){var j2P;j2P=this.stx.panels[this.panelName];if(!j2P){return;}this.setPoint(0,this.d0,this.v0,j2P.chart);E9u.W5N();this.renderText();};S9.Drawing.segment=function(){E9u.W3G();this.name="segment";};S9.inheritsFrom(S9.Drawing.segment,S9.Drawing.BaseTwoPoint);S9.Drawing.segment.prototype.render=function(w62){var V3G,d10,k_u,J9g,L8h,K$O,P0b,L03,P2v,w3Q,B8u,z16,f6p,U24,Q3f,Q93,D1j,P9j,p$U;V3G="n";V3G+="o";V3G+="ne";d10=this.stx.panels[this.panelName];if(!d10){return;}k_u=this.stx.pixelFromTick(this.p0[0],d10.chart);J9g=this.stx.pixelFromTick(this.p1["0" >> 32],d10.chart);L8h=this.stx.pixelFromValueAdjusted(d10,this.p0[0],this.p0[1]);E9u.W5N();K$O=this.stx.pixelFromValueAdjusted(d10,this.p1[0],this.p1[1]);P0b=this.lineWidth;L03=this.getLineColor();P2v={pattern:this.pattern,lineWidth:P0b};if(P2v.pattern == V3G){P2v.pattern="solid";}this.stx.plotLine(k_u,J9g,L8h,K$O,L03,this.name,w62,d10,P2v);if(this.axisLabel && !this.repositioner){w3Q="v";w3Q+="e";w3Q+="rt";w3Q+="ical";B8u="hor";B8u+="izo";B8u+="n";B8u+="tal";if(this.name == B8u){this.stx.endClip();z16=this.p0[1];if(d10.chart.transformFunc){z16=d10.chart.transformFunc(this.stx,d10.chart,z16);}if(d10.yAxis.priceFormatter){z16=d10.yAxis.priceFormatter(this.stx,d10,z16);}else {z16=this.stx.formatYAxisPrice(z16,d10);}this.stx.createYAxisLabel(d10,z16,L8h,L03);this.stx.startClip(d10.name);}else if(this.name == w3Q && this.p0["0" - 0] >= 0 && !this.stx.chart.xAxis.noDraw){f6p=this.stx.dateFromTick(this.p0[0],d10.chart,!![]);if(!S9.ChartEngine.isDailyInterval(this.stx.layout.interval)){E9u.O_b(56);var g5o=E9u.v$j(995,1022,15,8,995);Q3f=f6p.getSeconds() * g5o + f6p.getMilliseconds();if(W2.Date && this.stx.displayZone){U24=new W2.Date(f6p.getTime(),this.stx.displayZone);f6p=new Date(U24.getFullYear(),U24.getMonth(),U24.getDate(),U24.getHours(),U24.getMinutes());f6p=new Date(f6p.getTime() + Q3f);}}else {E9u.s$9(1);f6p.setHours(0,0,E9u.v$j(0,"0"),E9u.V9a("0",0,E9u.s$9(39)));}Q93=S9.mmddhhmm(S9.yyyymmddhhmm(f6p));if(d10.chart.xAxis.formatter){Q93=d10.chart.xAxis.formatter(f6p,this.name,null,null,Q93);}else if(this.stx.internationalizer){if(f6p.getHours() !== 0 || f6p.getMinutes() !== 0){D1j=this.stx.internationalizer.monthDay.format(f6p);E9u.O_b(0);var B1k=E9u.v$j(6042,18);E9u.s$9(57);var e6d=E9u.V9a(752574,6872,9,10,11);E9u.O_b(16);var L1v=E9u.V9a(20,6653,31);E9u.s$9(58);var e5c=E9u.V9a(225,15,111,1);E9u.O_b(1);var d9Z=E9u.v$j(20,5390);E9u.s$9(1);var e$Z=E9u.V9a(117344,124678);E9u.O_b(0);var L7e=E9u.v$j(4733,13);E9u.O_b(21);var G31=E9u.V9a(19,441,3969);E9u.O_b(0);var J3c=E9u.V9a(1450,7252);D1j+=(B1k !== (e6d,L1v)?" ":(e5c,+"979.47") <= (d9Z,e$Z)?(205.17,L7e) !== (G31,447.84)?(87.31,"0x2180" | 0):393.32:(874.80,J3c)) + this.stx.internationalizer.hourMinute.format(f6p);}else {D1j=this.stx.internationalizer.yearMonthDay.format(f6p);}Q93=D1j;}this.stx.endClip();this.stx.createXAxisLabel({panel:d10,txt:Q93,x:k_u,backgroundColor:L03,color:null,pointed:!!1,padding:2});this.stx.startClip(d10.name);}}if(this.highlighted && this.name != "horizontal" && this.name != "vertical"){P9j=this.highlighted == "p0"?!![]:![];p$U=this.highlighted == "p1"?!!({}):!!"";this.littleCircle(w62,k_u,L8h,P9j);this.littleCircle(w62,J9g,K$O,p$U);}};S9.Drawing.segment.prototype.abort=function(){E9u.W5N();this.stx.setMeasure(null,null,null,null,!!"");};S9.Drawing.segment.prototype.intersected=function(E3m,z9n,I6a){var r0O,M1Q,t_C,l0b,k1y;r0O="vert";r0O+="ical";M1Q="h";M1Q+="orizo";M1Q+="ntal";if(!this.p0 || !this.p1){return null;}t_C=this.name;if(t_C != "horizontal" && t_C != "vertical" && t_C != "gartley"){l0b={0:this.p0,1:this.p1};for(var V2x in l0b){if(this.pointIntersection(l0b[V2x][0],l0b[V2x][1],I6a)){E9u.s$9(0);this.highlighted=E9u.v$j((+"6700",2090) != (491.24,+"5093")?"p":("898.18" * 1,9225) == 604.54?(!!1,8.44e+3):("l",5.20e+3),V2x);return {action:"drag",point:"p" + V2x};}}}if(t_C == M1Q || t_C == r0O){t_C="line";}E9u.W5N();k1y=this.lineIntersection(E3m,z9n,I6a,t_C);if(k1y){this.highlighted=!![];return {action:"move",p0:S9.clone(this.p0),p1:S9.clone(this.p1),tick:E3m,value:z9n};}return null;};S9.Drawing.segment.prototype.configs=["color","lineWidth","pattern"];S9.Drawing.segment.prototype.copyConfig=function(B0T){var t8F;t8F="s";t8F+="ol";E9u.W3G();t8F+="id";S9.Drawing.copyConfig(this,B0T);if(this.pattern == "none" && this.configs.indexOf("fillColor") == -("1" | 1)){this.pattern=t8F;}};S9.Drawing.segment.prototype.reconstruct=function(H9g,O8Q){this.stx=H9g;this.color=O8Q.col;this.panelName=O8Q.pnl;this.pattern=O8Q.ptrn;this.lineWidth=O8Q.lw;this.d0=O8Q.d0;this.d1=O8Q.d1;this.tzo0=O8Q.tzo0;this.tzo1=O8Q.tzo1;this.v0=O8Q.v0;E9u.W5N();this.v1=O8Q.v1;this.adjust();};S9.Drawing.segment.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};S9.Drawing.line=function(){this.name="line";};S9.inheritsFrom(S9.Drawing.line,S9.Drawing.segment);S9.Drawing.line.prototype.dragToDraw=![];E9u.W5N();S9.Drawing.line.prototype.calculateOuterSet=function(K7C){var U1E,B8T,y1k;if(this.p0[0] == this.p1[0] || this.p0[1] == this.p1[+"1"] || S9.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}U1E={x0:this.p0[0],y0:this.p0[1],x1:this.p1[0],y1:this.p1[1]};if(U1E.x0 > U1E.x1){U1E={x0:this.p1[0],y0:this.p1[+"1"],x1:this.p0[+"0"],y1:this.p0[1]};}E9u.O_b(59);var o5B=E9u.v$j(15,981,688,3);B8T=U1E.x0 - o5B;E9u.s$9(21);var Y5t=E9u.V9a(13,5000,64000);y1k=U1E.x1 + Y5t;this.v0B=S9.yIntersection(U1E,B8T);this.v1B=S9.yIntersection(U1E,y1k);this.d0B=this.stx.dateFromTick(B8T,K7C.chart);this.d1B=this.stx.dateFromTick(y1k,K7C.chart);};S9.Drawing.line.prototype.click=function(r7R,b5I,t3H){var L1t;L1t=this.stx.panels[this.panelName];if(!L1t){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,b5I,t3H,L1t.chart);this.penDown=!![];return !"1";}if(this.accidentalClick(b5I,t3H)){return this.dragToDraw;}E9u.W5N();this.setPoint(1,b5I,t3H,L1t.chart);this.calculateOuterSet(L1t);this.penDown=!({});return !"";;};S9.Drawing.line.prototype.reconstruct=function(R_z,H56){this.stx=R_z;this.color=H56.col;this.panelName=H56.pnl;this.pattern=H56.ptrn;this.lineWidth=H56.lw;this.v0=H56.v0;this.v1=H56.v1;this.d0=H56.d0;this.d1=H56.d1;this.tzo0=H56.tzo0;this.tzo1=H56.tzo1;if(H56.d0B){this.d0B=H56.d0B;this.d1B=H56.d1B;this.v0B=H56.v0B;this.v1B=H56.v1B;}this.adjust();};S9.Drawing.line.prototype.serialize=function(){var C_n;C_n={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};if(this.d0B){C_n.d0B=this.d0B;C_n.d1B=this.d1B;C_n.v0B=this.v0B;C_n.v1B=this.v1B;}E9u.W5N();return C_n;};S9.Drawing.line.prototype.adjust=function(){var i3g;i3g=this.stx.panels[this.panelName];if(!i3g){return;}this.setPoint(0,this.d0,this.v0,i3g.chart);this.setPoint(1,this.d1,this.v1,i3g.chart);if(S9.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(0,this.d0B,this.v0B,i3g.chart);this.setPoint(1,this.d1B,this.v1B,i3g.chart);}};S9.Drawing.horizontal=function(){this.name="horizontal";};S9.inheritsFrom(S9.Drawing.horizontal,S9.Drawing.segment);S9.Drawing.horizontal.prototype.dragToDraw=![];S9.Drawing.horizontal.prototype.measure=function(){};S9.Drawing.horizontal.prototype.click=function(r_Q,M1s,M_z){var s6A;s6A=this.stx.panels[this.panelName];if(!s6A){return;}this.copyConfig();this.setPoint(0,M1s,M_z,s6A.chart);return !![];;};S9.Drawing.horizontal.prototype.intersected=function(s5L,Y76,r0l){var z0K,s4r,i8u,J1P;if(this.lineIntersection(s5L,Y76,r0l,"line")){z0K="m";z0K+="o";z0K+="v";z0K+="e";s4r=this.stx;i8u=s4r.chart.dataSet.length;J1P=this.p0[+"1"];this.highlighted=!!({});return {action:z0K,p0:[i8u - 2,J1P],p1:[i8u - 1,J1P],tick:s5L,value:Y76};}return null;};S9.Drawing.horizontal.prototype.reconstruct=function(y_e,h4b){this.stx=y_e;this.color=h4b.col;this.panelName=h4b.pnl;this.pattern=h4b.ptrn;this.lineWidth=h4b.lw;this.v0=h4b.v0;this.d0=h4b.d0;this.tzo0=h4b.tzo0;this.axisLabel=h4b.al;this.adjust();};S9.Drawing.horizontal.prototype.serialize=function(){var y_f;E9u.W5N();y_f={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,v0:this.v0,d0:this.d0,tzo0:this.tzo0,al:this.axisLabel};return y_f;};S9.Drawing.horizontal.prototype.adjust=function(){var w_x;w_x=this.stx.panels[this.panelName];if(!w_x){return;}this.setPoint(0,this.d0,this.v0,w_x.chart);E9u.s$9(37);var x0c=E9u.v$j(4,896,1000);this.p1=[this.p0[0] + x0c,this.p0[1]];};S9.Drawing.horizontal.prototype.configs=["color","lineWidth","pattern","axisLabel"];S9.Drawing.vertical=function(){var I2U;I2U="ve";I2U+="rt";I2U+="ical";this.name=I2U;};S9.inheritsFrom(S9.Drawing.vertical,S9.Drawing.horizontal);S9.Drawing.vertical.prototype.measure=function(){};I9e=-221171804;y3V=-282884049;v79=+"2";for(var z_i="1" >> 32;E9u.l5h(z_i.toString(),z_i.toString().length,4939) !== I9e;z_i++){S9.Drawing.vertical.prototype.intersected=S9.Drawing.segment.prototype.intersected;v79+=2;}if(E9u.l5h(v79.toString(),v79.toString().length,83949) !== y3V){S9.Drawing.vertical.prototype.intersected=S9.Drawing.segment.prototype.intersected;}S9.Drawing.vertical.prototype.adjust=function(){var w_1;w_1=this.stx.panels[this.panelName];if(!w_1){return;}this.setPoint(0,this.d0,this.v0,w_1.chart);E9u.O_b(16);var D27=E9u.v$j(17,6,22);E9u.O_b(60);var I_G=E9u.V9a(18,99,8,10);this.p1=[this.p0[0],this.p0[D27] + I_G];};S9.Drawing.measure=function(){this.name="measure";};S9.inheritsFrom(S9.Drawing.measure,S9.Drawing.segment);S9.Drawing.measure.prototype.click=function(d0E,r0r,K77){this.copyConfig();if(!this.penDown){this.p0=[r0r,K77];this.penDown=!"";return !!0;}this.stx.undo();this.penDown=!!0;return !![];};S9.Drawing.rectangle=function(){var P0s;P0s="rec";E9u.W5N();P0s+="t";P0s+="angl";P0s+="e";this.name=P0s;};S9.inheritsFrom(S9.Drawing.rectangle,S9.Drawing.BaseTwoPoint);S9.Drawing.rectangle.prototype.render=function(z54){var J$z,r2l,k2_,w8N,F4u,a6q,U93,H5e,J_J,K9c,Q7P,J0w,X7P,V_i,B5z,G4M,M23,a8n,g2G,F9Y;J$z="s";J$z+="e";J$z+="gm";J$z+="ent";r2l="a";r2l+="u";r2l+="t";r2l+="o";k2_=this.stx.panels[this.panelName];if(!k2_){return;}w8N=this.stx.pixelFromTick(this.p0[0],k2_.chart);F4u=this.stx.pixelFromTick(this.p1[0],k2_.chart);a6q=this.stx.pixelFromValueAdjusted(k2_,this.p0[0],this.p0[1]);U93=this.stx.pixelFromValueAdjusted(k2_,this.p1[+"0"],this.p1[+"1"]);H5e=Math.round(Math.min(w8N,F4u)) + 0.5;J_J=Math.min(a6q,U93);K9c=Math.max(w8N,F4u) - H5e;Q7P=Math.max(a6q,U93) - J_J;J0w=this.color;if(this.highlighted){J0w=this.stx.getCanvasColor("stx_highlight_vector");}X7P=-48847820;E9u.O_b(29);V_i=E9u.V9a("532562126",64);B5z=+"2";for(var a61=1;E9u.m6F(a61.toString(),a61.toString().length,"65541" - 0) !== X7P;a61++){G4M=this.fillColor;B5z+=2;}if(E9u.l5h(B5z.toString(),B5z.toString().length,+"85890") !== V_i){G4M=this.fillColor;}if(G4M && !S9.isTransparent(G4M) && G4M != r2l){z54.beginPath();z54.rect(H5e,J_J,K9c,Q7P);z54.fillStyle=G4M;z54.globalAlpha=0.2;z54.fill();z54.closePath();z54.globalAlpha=1;}M23={pattern:this.pattern,lineWidth:this.lineWidth};if(this.highlighted && M23.pattern == "none"){a8n="so";a8n+="li";a8n+="d";M23.pattern=a8n;if(M23.lineWidth == "0.1" * 1){M23.lineWidth=1;}}this.stx.plotLine(w8N,F4u,a6q,a6q,J0w,"segment",z54,k2_,M23);E9u.O_b(36);this.stx.plotLine(F4u,F4u,E9u.V9a("0.5",a6q),E9u.V9a(U93,0.5,E9u.s$9(0)),J0w,J$z,z54,k2_,M23);this.stx.plotLine(F4u,w8N,U93,U93,J0w,"segment",z54,k2_,M23);E9u.O_b(0);this.stx.plotLine(w8N,w8N,E9u.v$j(U93,0.5),E9u.v$j("0.5",a6q,E9u.s$9(36)),J0w,"segment",z54,k2_,M23);if(this.highlighted){g2G=this.highlighted == "p0"?!"":!({});F9Y=this.highlighted == "p1"?!!({}):!1;this.littleCircle(z54,w8N,a6q,g2G);this.littleCircle(z54,F4u,U93,F9Y);}};S9.Drawing.rectangle.prototype.intersected=function(C8N,n4l,Z_o){var q0B;if(!this.p0 || !this.p1){return null;}q0B={0:this.p0,1:this.p1};for(var B8w in q0B){if(this.pointIntersection(q0B[B8w][0],q0B[B8w][1],Z_o)){E9u.s$9(0);this.highlighted=E9u.V9a(8670 >= ("552.67" * 1,"790.91" - 0)?"5146" >> 32 < (8098,"1840" - 0)?(!!({}),818.63):"p":"J",B8w);return {action:"drag",point:"p" + B8w};}}if(this.boxIntersection(C8N,n4l,Z_o)){this.highlighted=!!({});return {action:"move",p0:S9.clone(this.p0),p1:S9.clone(this.p1),tick:C8N,value:n4l};}return null;};S9.Drawing.rectangle.prototype.configs=["color",x4b,"lineWidth","pattern"];S9.Drawing.rectangle.prototype.reconstruct=function(w2p,f$5){this.stx=w2p;this.color=f$5.col;this.fillColor=f$5.fc;this.panelName=f$5.pnl;this.pattern=f$5.ptrn;this.lineWidth=f$5.lw;this.d0=f$5.d0;this.d1=f$5.d1;this.tzo0=f$5.tzo0;this.tzo1=f$5.tzo1;this.v0=f$5.v0;this.v1=f$5.v1;this.adjust();};S9.Drawing.rectangle.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};S9.Drawing.shape=function(){this.name="shape";E9u.W5N();this.radians=0;this.a=0;this.rotating=!"1";this.textMeasure=!!0;this.configurator="shape";this.dimension=[0,0];this.points=[];};S9.inheritsFrom(S9.Drawing.shape,S9.Drawing.BaseTwoPoint);S9.Drawing.shape.prototype.setRotationOnInitialDraw=!1;S9.Drawing.shape.prototype.measure=function(){};S9.Drawing.shape.prototype.render=function(w5R){var C9b,j_X,j0k,F$f,E4J,m6d,u3x,Z3X,h0Q,Z28,Z_J,T0V,o9B,c2A,i7m,K4P,w84,Z0q,J$2,d8S,t_T,e3r,D0$,m0D;if(!this.points.length){return;}C9b=this.stx.panels[this.panelName];if(!C9b){return;}j_X=this.stx.pixelFromTick(this.p0[0],C9b.chart);j0k=this.stx.pixelFromValueAdjusted(C9b,this.p0[+"0"],this.p0[1]);if(this.p1){F$f="#0";F$f+="000";F$f+="00";E4J=this.stx.pixelFromTick(this.p1[0],C9b.chart);m6d=this.stx.pixelFromValueAdjusted(C9b,this.p1[0],this.p1[+"1"]);w5R.globalAlpha=0.5;w5R.fillStyle=F$f;if(this.rotating){E9u.s$9(61);this.radians=Math.atan(E9u.v$j(j0k,E4J,m6d,j_X));if(E4J < j_X){this.radians+=Math.PI;}else if(m6d < j0k){E9u.s$9(16);var H89=E9u.v$j(18,19,35);this.radians+=H89 * Math.PI;}E9u.O_b(1);var z5v=E9u.v$j(6,16);E9u.O_b(0);var M3u=E9u.v$j(1,4);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),z5v) * M3u;E9u.s$9(12);this.a%=E9u.V9a(32,"360");E9u.O_b(1);var U1J=E9u.V9a(1800,1980);this.radians=this.a * Math.PI / U1J;if(this.textMeasure){w5R.fillText(this.a + (("7106" | 66,+"4240") != 6206?"\u00b0":9960 < +"630.94"?(!"1","A"):729.73 == (197.75,6520)?!({}):562.39),E4J + 10,m6d + 10);}}else if(this.penDown){u3x="x";u3x+=",";this.sx=Math.max(1,parseFloat(Math.abs(2 * (E4J - j_X) / this.dimension[0]).toFixed(1)));if(E4J < j_X){this.sx*=-1;}this.sy=Math.max(1,parseFloat(Math.abs(2 * (m6d - j0k) / this.dimension["1" | 0]).toFixed(1)));if(m6d < j0k){E9u.s$9(2);this.sy*=-E9u.V9a(1,"1");}if(this.textMeasure){w5R.fillText(this.sx + u3x + this.sy + (7874 === (3780,1680)?(729.20,2.10e+3):(2610,967.15) != (+"2913",509.56)?712.62 <= (139.67,4570)?"x":(7.27e+3,!0):"g"),E4J + this.sx + 5,m6d + this.sy + ("5" << 0));}}w5R.globalAlpha=+"1";}if(typeof this.sx === "undefined"){this.sx=this.sy=1;}Z3X=this.lineWidth;if(!Z3X){Z3X=1.1;}h0Q={pattern:this.pattern,lineWidth:Z3X};if(this.highlighted && h0Q.pattern == "none"){h0Q.pattern="solid";if(h0Q.lineWidth == "0.1" * 1){h0Q.lineWidth=1;}}Z28=this.color;if(Z28 == "auto" || S9.isTransparent(Z28)){Z28=this.stx.defaultColor;}if(this.highlighted){Z28=this.stx.getCanvasColor("stx_highlight_vector");if(Z3X == 0.1){Z3X=1.1;}}Z_J=this.fillColor;E9u.s$9(62);var m2q=E9u.v$j(9,2,4,4,9);Z3X/=Math.abs(this.sx * this.sy) * m2q / (Math.abs(this.sx) + Math.abs(this.sy));w5R.save();w5R.translate(j_X,j0k);w5R.rotate(this.radians);w5R.scale(this.sx,C9b.yAxis.flipped?-this.sy:this.sy);c2A={x:(this.dimension[0] - +"1") / 2,y:(this.dimension[1] - 1) / +"2"};for(T0V=+"0";T0V < this.points.length;T0V++){w5R.beginPath();for(o9B=0;o9B < this.points[T0V].length;o9B++){if(this.points[T0V][o9B] == (335.91 == (6108,338.45)?(0x2126,!!({})):143.45 != 261.98?(+"7413",9662) <= 486.73?(+"735.20",0x11):"M":(763.20,951.86))){i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.moveTo(i7m,K4P);}else if(this.points[T0V][o9B] == "L"){i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.lineTo(i7m,K4P);}else if(this.points[T0V][o9B] == "Q"){w84=this.points[T0V][++o9B] - c2A.x;J$2=this.points[T0V][++o9B] - c2A.y;i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.quadraticCurveTo(w84,J$2,i7m,K4P);}else if(this.points[T0V][o9B] == ((3240,"118.23" - 0) !== (2596,894.42)?"B":(+"769.03",774.94) > +"4508"?439.87:"d")){w84=this.points[T0V][++o9B] - c2A.x;J$2=this.points[T0V][++o9B] - c2A.y;Z0q=this.points[T0V][++o9B] - c2A.x;d8S=this.points[T0V][++o9B] - c2A.y;i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.bezierCurveTo(w84,J$2,Z0q,d8S,i7m,K4P);}}w5R.closePath();if(Z_J && !S9.isTransparent(Z_J) && Z_J != "auto"){w5R.fillStyle=Z_J;w5R.fill();;}if(Z28 && this.pattern != "none"){w5R.strokeStyle=Z28;w5R.lineWidth=Z3X;if(w5R.setLineDash){w5R.setLineDash(S9.borderPatternToArray(Z3X,this.pattern));w5R.lineDashOffset=0;;}w5R.stroke();}}w5R.restore();w5R.save();w5R.translate(j_X,j0k);w5R.rotate(this.radians);if(this.highlighted){t_T="#0";t_T+="0";t_T+="000";t_T+="0";e3r=this.highlighted == "p0"?!"":![];D0$=this.highlighted == "p1"?!!({}):!!"";m0D=this.highlighted == "p2"?!!"1":![];this.littleCircle(w5R,0,0,e3r);this.mover(w5R,0,0,e3r);this.littleCircle(w5R,this.sx * this.dimension[+"0"] / ("2" - 0),this.sy * this.dimension[1] / 2,D0$);this.resizer(w5R,this.sx * this.dimension[0] / +"2",this.sy * this.dimension[1] / 2,D0$);this.littleCircle(w5R,this.sx * this.dimension["0" ^ 0] / 2,0,m0D);this.rotator(w5R,this.sx * this.dimension["0" ^ 0] / 2,0,m0D);w5R.globalAlpha=0.5;w5R.fillStyle=t_T;if(this.textMeasure){w5R.fillText(this.sx + "x," + this.sy + "x",this.sx * this.dimension[0] / 2 + 12,this.sy * this.dimension[1] / 2 + 5);w5R.fillText(this.a + "\u00b0",this.sx * this.dimension[0] / 2 + 12,5);}w5R.globalAlpha=+"1";}else if(this.penDown){if(this.rotating){this.rotator(w5R,this.sx * this.dimension[0] / 2,0,!!1);}else {this.resizer(w5R,this.sx * this.dimension[0] / 2,this.sy * this.dimension[1] / ("2" * 1),!!"1");}}w5R.restore();};S9.Drawing.shape.prototype.reposition=function(s7I,F57,t1n,K_P){var c4S,F$Y,e2b,c2w,k2q,s8$,E$Z,k9I;if(!F57){return;}c4S=this.stx.panels[this.panelName];if(F57.action == "move"){F$Y=F57.tick - t1n;e2b=F57.value - K_P;this.setPoint(0,F57.p0[0] - F$Y,F57.p0[1] - e2b,c4S.chart);this.render(s7I);}else {c2w="ro";c2w+="t";c2w+="ate";k2q=this.stx.pixelFromTick(this.p0[0],c4S.chart);s8$=this.stx.pixelFromValueAdjusted(c4S,this.p0["0" * 1],this.p0[1]);E$Z=this.stx.pixelFromTick(t1n,c4S.chart);k9I=this.stx.pixelFromValueAdjusted(c4S,t1n,K_P);if(F57.action == "scale"){this[F57.point]=[t1n,K_P];this.sx=parseFloat((((E$Z - k2q) * Math.cos(this.radians) + (k9I - s8$) * Math.sin(this.radians)) / (this.dimension[0] / 2)).toFixed(1));if(Math.abs(this.sx) < "1" * 1){this.sx/=Math.abs(this.sy);}this.sy=parseFloat((((k9I - s8$) * Math.cos(this.radians) - (E$Z - k2q) * Math.sin(this.radians)) / (this.dimension[1] / 2)).toFixed(1));if(Math.abs(this.sy) < 1){this.sy/=Math.abs(this.sy);}this.render(s7I);}else if(F57.action == c2w){this[F57.point]=[t1n,K_P];E9u.O_b(61);this.radians=Math.atan(E9u.V9a(s8$,E$Z,k9I,k2q));if(E$Z < k2q){this.radians+=Math.PI;}else if(k9I < s8$){E9u.O_b(0);var h9F=E9u.V9a(0,2);this.radians+=h9F * Math.PI;}E9u.O_b(63);var L$v=E9u.v$j(1,5,5);E9u.s$9(0);var J3m=E9u.V9a(2,3);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),L$v) * J3m;if(this.sx < 0){E9u.O_b(21);var N85=E9u.v$j(8,192,1356);this.a=this.a + N85;}this.a%=360;E9u.O_b(58);var Q0t=E9u.v$j(171,4,1980,880);this.radians=this.a * Math.PI / Q0t;this.render(s7I);}}};S9.Drawing.shape.prototype.intersected=function(s9o,d3v,U6O){var T1c,K0Z,K_Y,P_J,J3_,q7e,t27,C1A,R1u,M1R,J9j,g0J,n6w,h3L,N$Q,X9W;if(!this.p0){return null;}if(this.stx.repositioningDrawing == this && this.stx.repositioningDrawing.repositioner){return this.stx.repositioningDrawing.repositioner;}T1c=this.stx.panels[this.panelName];K0Z=this.stx.pixelFromTick(this.p0[0],T1c.chart);K_Y=this.stx.pixelFromValueAdjusted(T1c,this.p0[0],this.p0["1" | 0]);P_J=this.stx.pixelFromTick(s9o,T1c.chart);J3_=this.stx.pixelFromValueAdjusted(T1c,s9o,d3v);P_J-=K0Z;J3_-=K_Y;q7e=J3_;t27=P_J;P_J=Math.cos(this.radians) * t27 + Math.sin(this.radians) * q7e;J3_=Math.cos(this.radians) * q7e - Math.sin(this.radians) * t27;P_J/=this.sx;J3_/=this.sy;this.padding=S9.ensureDefaults(this.padding || ({}),{left:0,right:+"0",top:0,bottom:0});C1A=this.padding.right + this.padding.left;R1u=this.padding.bottom + this.padding.top;M1R=Math.pow(S9.touchDevice?25:5 + this.littleCircleRadius(),2);J9j=Math.abs(M1R / (this.sx * this.sy));g0J=3;E9u.s$9(16);var F8i=E9u.V9a(13,0,12);E9u.O_b(64);var V73=E9u.V9a(11,16,3,18,23);E9u.O_b(65);E9u.W5N();var t_l=E9u.v$j(3,10,21,19,128);E9u.O_b(21);var r80=E9u.v$j(12,5,59);E9u.s$9(1);var e3A=E9u.v$j(15,17);E9u.s$9(66);var L07=E9u.V9a(4,1,2,1);E9u.O_b(53);var F5g=E9u.v$j(12,3,9,3);E9u.O_b(0);var d49=E9u.v$j(0,2);n6w=Math.pow((this.dimension["0" * F8i] - C1A + g0J) / V73,t_l) + Math.pow((this.dimension[r80] - R1u + g0J) / ("2" | 0),e3A) > Math.pow(P_J - C1A / L07,F5g) + Math.pow(J3_ - R1u / +"2",d49);E9u.s$9(33);var c6u=E9u.V9a(7,11,16);E9u.s$9(67);var S2Y=E9u.V9a(17,5,3,14);h3L=(M1R - (Math.pow(P_J * this.sx,c6u) + Math.pow(J3_ * this.sy,"2" * S2Y))) / Math.abs(this.sx * this.sy);E9u.s$9(68);var F5N=E9u.v$j(4,19,6,6,33);E9u.O_b(18);var U5S=E9u.V9a(15,12,1);E9u.s$9(69);var Q63=E9u.v$j(53,6,9,18);E9u.O_b(1);var j7J=E9u.V9a(6,8);E9u.s$9(70);var B_c=E9u.V9a(5,16,6,6,14);N$Q=J9j - Math.pow(P_J - this.dimension[0] / F5N,U5S) - Math.pow(J3_ - this.dimension[Q63] / j7J,B_c);E9u.s$9(21);var c_b=E9u.V9a(3,40,118);E9u.O_b(23);var q8J=E9u.V9a(12,10);E9u.O_b(26);var N1B=E9u.v$j(0,14,4,7);X9W=J9j - Math.pow(P_J - this.dimension[0] / c_b,q8J) - Math.pow(J3_,N1B);if(n6w){if(N$Q >= X9W && N$Q >= h3L && N$Q > -1){this.highlighted="p1";return {action:"scale"};}if(X9W >= N$Q && X9W >= h3L && X9W > -1){this.highlighted="p2";return {action:"rotate"};}this.highlighted=h3L > -1?"p0":!"";return {action:"move",p0:S9.clone(this.p0),tick:s9o,value:d3v};}return null;};S9.Drawing.shape.prototype.configs=["color","fillColor",p10,j2t];S9.Drawing.shape.prototype.littleCircleRadius=function(){return +"3";};S9.Drawing.shape.prototype.click=function(T5X,t63,I6r){var I9w;if(!this.points.length){return ![];}this.copyConfig();I9w=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,t63,I6r,I9w.chart);this.penDown=!![];return ![];}this.setPoint(1,t63,I6r,I9w.chart);if(this.rotating || !this.setRotationOnInitialDraw){this.penDown=![];this.rotating=![];return !![];;}this.rotating=!!"1";return ![];};S9.Drawing.shape.prototype.adjust=function(){var O$L,B4p,x2h,g2Z;O$L="_";O$L+="v";B4p=this.stx.panels[this.panelName];if(!B4p){return;}x2h=this.name + O$L + (this.version || 0);if(S9.Drawing[x2h]){g2Z=new S9.Drawing[x2h]();this.name=g2Z.name;this.dimension=g2Z.dimension;this.padding=g2Z.padding;this.points=g2Z.points;this.version=g2Z.version;}this.setPoint(0,this.d0,this.v0,B4p.chart);E9u.s$9(3);var J82=E9u.V9a(11,95,16,1044,20);E9u.O_b(71);var i_e=E9u.v$j(216,2,378,10,4);this.radians=Math.round(this.a / J82) * Math.PI / i_e;};S9.Drawing.shape.prototype.reconstruct=function(a2x,g9z){this.stx=a2x;this.color=g9z.col;this.fillColor=g9z.fc;this.panelName=g9z.pnl;E9u.W5N();this.pattern=g9z.ptrn;this.lineWidth=g9z.lw;this.d0=g9z.d0;this.v0=g9z.v0;this.tzo0=g9z.tzo0;this.a=g9z.a;this.sx=g9z.sx;this.sy=g9z.sy;this.version=g9z.ver;this.adjust();};S9.Drawing.shape.prototype.serialize=function(){E9u.W5N();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,v0:this.v0,tzo0:this.tzo0,a:this.a,sx:this.sx,sy:this.sy,ver:this.version};};S9.Drawing.arrow=function(){this.name="arrow";E9u.W5N();this.version=1;E9u.O_b(29);this.dimension=[E9u.v$j("11",32),22];this.padding={left:+"0",right:0,top:11,bottom:"0" ^ 0};E9u.O_b(29);this.points=[[(7787,"3226" - 0) >= 7040?2950 >= (604.81,821.88)?(740,"457.44" * 1) == (873.16,3780)?"b":"l":"Q":"M",3,E9u.v$j("21",64),"L",7,21,(+"4170",433) != "3810" - 0?3080 != (8080,7460)?"L":("l",55.81):797.07,7,16,"L",10,16,9730 > 1130?"L":("M",!"1"),5,11,2980 >= (1300,5130)?3390 == (128,3520)?9.29e+3:(5220,7845) !== 7950?("M",!![]):!!"1":"L",0,16,1781 > (956.35,24.85)?"L":937.72,3,16,(5460,"6930" >> 32) == 2470?3540 > (907.05,5710)?"3.85e+3" << 64:5.80e+3:"L",3,21]];;};S9.inheritsFrom(S9.Drawing.arrow,S9.Drawing.shape);S9.Drawing.getDrawingToolList=function(I4d){var x0t,O6Y;x0t={};O6Y={arrow_v0:!"",BaseTwoPoint:!!"1",fibonacci:!!({}),shape:!![]};S9.extend(O6Y,I4d);for(var e2Q in S9.Drawing){if(!O6Y[e2Q] && S9.Drawing[e2Q].prototype.render){x0t[new S9.Drawing[e2Q]().name]=e2Q;}}return x0t;};};S=D7R=>{var Y5$,m_b;Y5$="un";Y5$+="defined";m_b=typeof _CIQ !== Y5$?_CIQ:D7R.CIQ;m_b.EaseMachine=function(G_U,s39,G0n,d0b){this.fc=G_U;this.ms=s39;if(G0n || G0n === 0){this.reset(G0n,d0b);}};m_b.EaseMachine.prototype.reset=function(i_F,p3g){var X8A;X8A="o";X8A+="bje";i6UVR.W3G();X8A+="ct";if(!i_F && i_F !== 0){i_F=this.currentValues;}this.hasCompleted=!({});this.running=!({});this.okayToRun=!!"1";i6UVR.s$9(72);this.useNameValuePairs=i6UVR.V9a(typeof p3g,X8A);this.startTime=Date.now();if(this.useNameValuePairs){this.startValues=i_F;this.endValues=p3g;}else {this.startValues={default:i_F};this.endValues={default:p3g};}this.changeValues={};this.currentValues={};for(var s9x in this.startValues){this.changeValues[s9x]=this.endValues[s9x] - this.startValues[s9x];}};m_b.EaseMachine.prototype.next=function(){var Z2L;Z2L=Date.now();if(Z2L >= this.startTime + this.ms){Z2L=this.startTime + this.ms;this.hasCompleted=!"";this.running=!!0;}this.currentValues={};for(var z0A in this.changeValues){this.currentValues[z0A]=this.fc(Z2L - this.startTime,this.startValues[z0A],this.changeValues[z0A],this.ms);}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};m_b.EaseMachine.prototype.hasCompleted=!"";m_b.EaseMachine.prototype.run=function(h0D,g7H,e6J,c7L){i6UVR.W5N();var p_Z;function F5f(){var n2J;p_Z.afid=null;if(!p_Z.okayToRun){return;}n2J=p_Z.next();h0D(n2J);i6UVR.W5N();if(p_Z.hasCompleted){return;}p_Z.afid=requestAnimationFrame(F5f);}if(this.afid){cancelAnimationFrame(this.afid);}if(g7H || g7H === 0){this.reset(g7H,e6J);}else if(e6J || e6J === "0" * 1){this.reset(this.currentValues,e6J);}p_Z=this;this.running=!![];if(c7L){this.afid=requestAnimationFrame(F5f);}else {F5f();}};m_b.EaseMachine.prototype.stop=function(){if(this.afid){cancelAnimationFrame(this.afid);}this.afid=null;this.okayToRun=!"1";i6UVR.W3G();this.hasCompleted=!!1;this.running=!({});if(typeof this.useNameValuePairs == "undefined"){return {};}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};if(m_b.ChartEngine.prototype.animations.zoom.isStub){m_b.ChartEngine.prototype.animations.zoom=new m_b.EaseMachine(Math.easeOutCubic,400);}};i6UVR.W3G();P=q3Y=>{var g6e,o5i;g6e=typeof _CIQ !== "undefined"?_CIQ:q3Y.CIQ;o5i=function(){var C1y=i6UVR;var i7a,k4l,H7l,b7P,z$i,z6D,m53,F3N,Z_Z,S85,M4H,n_a,g6G,q_N,m22,F6t,m$R,v0_;function t13(Q7l){C1y.W5N();return Math.cosh?Math.cosh(Q7l):(Math.exp(Q7l) + Math.exp(-Q7l)) / 2;}i7a="\\";i7a+="n";k4l=0;function m_t(){this.success=!"1";this.errormsg="";C1y.W5N();this.expression="";this.pos=0;this.tokennumber=+"0";this.tokenprio=0;this.tokenindex=0;this.tmpprio=0;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Y3H,cosh:t13,tanh:Y$V,asinh:h$6,acosh:V7a,atanh:c3D,sqrt:Math.sqrt,log:Math.log,lg:F6A,log10:F6A,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:B33,"-":A3u,exp:Math.exp};this.ops2={"+":P_M,"-":Z5d,"*":s6y,"/":L$K,"%":M0O,"^":Math.pow,",":J4x,"||":u5F,"==":O3Y,"!=":T3M,">":c1M,"<":I4V,">=":s0K,"<=":r5p,and:c9x,or:t4c};this.functions={random:f7i,fac:K38,min:Math.min,max:Math.max,hypot:w0e,pyt:w0e,pow:Math.pow,atan2:Math.atan2,if:f_c};this.consts={E:Math.E,PI:Math.PI};}function h$6(T$0){if(Math.asinh){return Math.asinh(T$0);}if(T$0 === -Infinity){return T$0;}C1y.W3G();return Math.log(T$0 + Math.sqrt(T$0 * T$0 + +"1"));}H7l=1;function c1M(P4d,e7f){C1y.O_b(73);C1y.W3G();return C1y.V9a(P4d,e7f);}b7P=2;function u5F(R1f,t_J){C1y.W5N();C1y.O_b(35);return C1y.V9a(R1f,t_J,"");}z$i=3;function J4x(G3L,b_W){if(Object.prototype.toString.call(G3L) != "[object Array]"){return [G3L,b_W];}G3L=G3L.slice();G3L.push(b_W);return G3L;}function A3u(E0E){return -E0E;}function O3Y(I0f,p$k){C1y.s$9(72);C1y.W5N();return C1y.v$j(I0f,p$k);}function s0K(V6r,C5V){C1y.s$9(74);return C1y.V9a(C5V,V6r);}C1y.O_b(29);z6D=C1y.v$j("4",64);function w0e(){var Y1w,E6Y;if(Math.hypot){return Math.hypot.apply(this,arguments);}Y1w=0;C1y.W3G();E6Y=arguments.length;for(var r7w=0;r7w < E6Y;r7w++){if(arguments[r7w] === Infinity || arguments[r7w] === -Infinity){return Infinity;}Y1w+=arguments[r7w] * arguments[r7w];}return Math.sqrt(Y1w);}m53=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;F3N=/[\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;Z_Z={"\b":"\\b","\t":"\\t","\n":i7a,"\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};g6e.extend(n8a.prototype,{simplify:function(F1W){var r69,o9Z,p3n,g6K,q0e,y6U,N_k,X84,Z2a;F1W=F1W || ({});r69=[];o9Z=[];y6U=this.tokens.length;X84=0;for(X84=0;X84 < y6U;X84++){N_k=this.tokens[X84];Z2a=N_k.type_;if(Z2a === k4l){r69.push(N_k);}else if(Z2a === z$i && (N_k.index_ in F1W)){N_k=new J_K(k4l,0,0,F1W[N_k.index_]);r69.push(N_k);}else if(Z2a === b7P && r69.length > 1){g6K=r69.pop();p3n=r69.pop();q0e=this.ops2[N_k.index_];N_k=new J_K(k4l,0,0,q0e(p3n.number_,g6K.number_));r69.push(N_k);}else if(Z2a === H7l && r69.length > 0){p3n=r69.pop();q0e=this.ops1[N_k.index_];C1y.O_b(39);N_k=new J_K(k4l,0,C1y.v$j("0",0),q0e(p3n.number_));r69.push(N_k);}else {while(r69.length > +"0"){o9Z.push(r69.shift());}o9Z.push(N_k);}}while(r69.length > 0){o9Z.push(r69.shift());}return new n8a(o9Z,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));},substitute:function(f8z,S$_){C1y.W3G();var j40,h3u,J7j,A7p,l_H,l$3,e3H,k9m;if(!(S$_ instanceof n8a)){S$_=new m_t().parse(String(S$_));}j40=[];h3u=this.tokens.length;A7p=0;for(A7p=0;A7p < h3u;A7p++){J7j=this.tokens[A7p];l_H=J7j.type_;if(l_H === z$i && J7j.index_ === f8z){for(var s6u=0;s6u < S$_.tokens.length;s6u++){l$3=S$_.tokens[s6u];e3H=new J_K(l$3.type_,l$3.index_,l$3.prio_,l$3.number_);j40.push(e3H);}}else {j40.push(J7j);}}k9m=new n8a(j40,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));return k9m;},evaluate:function(O_G){var p9z,j8i,p$O,N2H,o9w,a2T,S8V,R0N,H4s,C_O;O_G=O_G || ({});p9z=[];o9w=this.tokens.length;S8V=+"0";for(S8V=0;S8V < o9w;S8V++){a2T=this.tokens[S8V];R0N=a2T.type_;if(R0N === k4l){p9z.push(a2T.number_);}else if(R0N === b7P){p$O=p9z.pop();j8i=p9z.pop();N2H=this.ops2[a2T.index_];p9z.push(N2H(j8i,p$O));}else if(R0N === z$i){if((a2T.index_ in O_G)){p9z.push(O_G[a2T.index_]);}else if((a2T.index_ in this.functions)){p9z.push(this.functions[a2T.index_]);}else {H4s="undefined var";H4s+="iabl";H4s+="e: ";throw new Error(H4s + a2T.index_);}}else if(R0N === H7l){j8i=p9z.pop();N2H=this.ops1[a2T.index_];p9z.push(N2H(j8i));}else if(R0N === z6D){j8i=p9z.pop();N2H=p9z.pop();if(N2H.apply && N2H.call){if(Object.prototype.toString.call(j8i) == "[object Array]"){p9z.push(N2H.apply(undefined,j8i));}else {p9z.push(N2H.call(undefined,j8i));}}else {C1y.s$9(0);throw new Error(C1y.V9a(N2H," is not a function"));}}else {throw new Error("invalid Expression");}}C1y.W3G();if(p9z.length > 1){C_O="invalid Exp";C_O+="ression (p";C_O+="arity)";throw new Error(C_O);}return p9z[0];},toString:function(e3p){var c1Y,S0p,G7g,O9i,b5y,n8d,r4J,Z$_,l6o,v5I;c1Y=[];b5y=this.tokens.length;r4J=0;for(r4J=0;r4J < b5y;r4J++){n8d=this.tokens[r4J];Z$_=n8d.type_;if(Z$_ === k4l){c1Y.push(M6c(n8d.number_));}else if(Z$_ === b7P){G7g=c1Y.pop();S0p=c1Y.pop();O9i=n8d.index_;if(e3p && O9i == (6630 != (2532,"496" << 32)?"^":840.82)){l6o="Math.p";l6o+="ow(";C1y.O_b(75);c1Y.push(C1y.v$j(G7g,S0p,l6o,")",42.25 == ("8466" >> 0,4269)?8636 == ("4859" * 1,4526)?(666,+"88.29"):9.91e+3:","));}else {C1y.s$9(75);c1Y.push(C1y.v$j(G7g,S0p,(2140,10000) <= 11.16?(0x18cb,!!1):8960 != (2230,28.46)?("8534" << 64,9383) == 2000?("F","E"):"(":(641.79,763.74),(713.12,"111.97" * 1) > 5756?"P":")",O9i));}}else if(Z$_ === z$i){c1Y.push(n8d.index_);}else if(Z$_ === H7l){S0p=c1Y.pop();O9i=n8d.index_;if(O9i === "-"){C1y.s$9(51);c1Y.push(C1y.v$j((+"9700",368.76) !== 1838?")":78 === 6530?911.65:16.39 === 4374?"496.07" * 1:9.02e+3,S0p,1110 !== ("132.65" - 0,+"637.64")?"(":2670 < 1110?(!!({}),+"4.21e+3"):(2980,7390) >= 5290?9.59e+3:(!!1,"r"),O9i));}else {C1y.O_b(51);c1Y.push(C1y.v$j(1230 < 2896?")":(!({}),"4.03e+3" | 52),S0p,O9i,1211 <= (1070,5956)?114.58 == (325.55,221)?(575.84,8485) > 2422?(!!({}),"957.61" * 1):(0x1df2,0x73f):"(":(!!"",+"7.35e+3")));}}else if(Z$_ === z6D){S0p=c1Y.pop();O9i=c1Y.pop();C1y.O_b(51);c1Y.push(C1y.v$j(")",S0p,O9i,9790 != (+"8635",167)?"(":("8280" | 0,+"8170") <= "888.29" * 1?(+"479",0x2387):("5546" >> 0,2152) <= (8595,518.24)?824.15:7.79e+3));}else {throw new Error("invalid Expression");}}if(c1Y.length > 1){v5I="invali";v5I+="d Expr";v5I+="e";v5I+="ssion (parity)";throw new Error(v5I);}C1y.W3G();C1y.s$9(29);return c1Y[C1y.V9a("0",64)];},variables:function(){var L4e,A9f,P6d;L4e=this.tokens.length;A9f=[];for(var V_Q="0" ^ 0;V_Q < L4e;V_Q++){P6d=this.tokens[V_Q];if(P6d.type_ === z$i && A9f.indexOf(P6d.index_) == -1){A9f.push(P6d.index_);}}return A9f;}},!"");m_t.parse=function(f_8){C1y.W5N();return new m_t().parse(f_8);};function T3M(l7K,W9i){C1y.s$9(76);C1y.W5N();return C1y.V9a(l7K,W9i);}m_t.evaluate=function(L_B,y0h){return m_t.parse(L_B).evaluate(y0h);};function Z5d(q6q,n4m){C1y.O_b(1);C1y.W5N();return C1y.V9a(n4m,q6q);}function F6A(G3v){C1y.W3G();return Math.log(G3v) * Math.LOG10E;}function f7i(W8y){C1y.O_b(77);var F11=C1y.V9a(19,6,4,10,1);return Math.random() * (W8y || "1" * F11);}function t4c(n17,W3B){return Boolean(n17 || W3B);}m_t.Expression=n8a;m_t.values={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Y3H,cosh:t13,tanh:Y$V,asinh:h$6,acosh:V7a,atanh:c3D,sqrt:Math.sqrt,log:Math.log,lg:F6A,log10:F6A,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:B33,random:f7i,fac:K38,exp:Math.exp,min:Math.min,max:Math.max,hypot:w0e,pyt:w0e,pow:Math.pow,atan2:Math.atan2,if:f_c,E:Math.E,PI:Math.PI};function M6c(k7G){C1y.W5N();if(typeof k7G === "string"){F3N.lastIndex=0;return F3N.test(k7G)?"'" + k7G.replace(F3N,function(l1d){var Y7R;Y7R=Z_Z[l1d];return typeof Y7R === "string"?Y7R:"\\u" + ("0000" + l1d.charCodeAt(0).toString(16)).slice(-4);}) + (2469 < 8290?+"38.54" <= 476.22?"'":(835.39,2931) > ("8540" | 28,727.05)?("204" * 1,+"4.90e+3"):!!"":(74.33,!({}))):"'" + k7G + (+"965.06" == (7703,271)?("971.25" * 1,2070) <= 323.32?(+"559","D"):5.36e+3:"'");}return k7G;}function J_K(f$U,o_S,b8F,W5K){var J8p,G41,A4W;this.type_=f$U;C1y.s$9(1);J8p=C1y.v$j(0,"1661587523");G41=986628675;A4W=2;for(var e$a=1;C1y.l5h(e$a.toString(),e$a.toString().length,3797) !== J8p;e$a++){this.index_=o_S && 2;A4W+=2;}C1y.W3G();if(C1y.m6F(A4W.toString(),A4W.toString().length,25147) !== G41){this.index_=o_S || 0;}this.prio_=b8F || 0;this.number_=W5K !== undefined && W5K !== null?W5K:0;this.toString=function(){C1y.W3G();switch(this.type_){case k4l:return this.number_;case H7l:case b7P:case z$i:return this.index_;case z6D:return "CALL";default:return "Invalid Token";}};}function P_M(o3f,B6z){return Number(o3f) + Number(B6z);}function P$0(W4g){A5L.prototype=W4g;C1y.W3G();function A5L(){}return new A5L();}C1y.O_b(29);S85=C1y.V9a(1,0);C1y.O_b(29);M4H=C1y.V9a(1,1);function r5p(q2R,I0T){C1y.O_b(78);C1y.W5N();return C1y.v$j(I0T,q2R);}C1y.O_b(29);n_a=C1y.v$j(1,2);C1y.s$9(29);g6G=C1y.v$j(1,3);function s6y(x0g,E_q){C1y.O_b(2);C1y.W3G();return C1y.v$j(E_q,x0g);}function M0O(i51,p2z){C1y.O_b(79);return C1y.v$j(i51,p2z);}function Y$V(p0L){C1y.W3G();if(Math.tanh){return Math.tanh(p0L);}if(p0L === Infinity){C1y.O_b(42);return C1y.v$j("1",1);}if(p0L === -Infinity){return -1;}return (Math.exp(p0L) - Math.exp(-p0L)) / (Math.exp(p0L) + Math.exp(-p0L));}function V7a(i4u){C1y.W3G();return Math.acosh?Math.acosh(i4u):Math.log(i4u + Math.sqrt(i4u * i4u - 1));}C1y.s$9(29);q_N=C1y.V9a(1,4);function f_c(l_u,o2m,B4R){return l_u?o2m:B4R;}C1y.s$9(29);m22=C1y.v$j(1,5);function n8a(d_0,B4t,V7O,X9Q){this.tokens=d_0;this.ops1=B4t;C1y.W3G();this.ops2=V7O;this.functions=X9Q;}function L$K(O3l,p3j){C1y.W3G();C1y.O_b(9);return C1y.V9a(O3l,p3j);}C1y.s$9(80);F6t=C1y.V9a(6,"1");function c9x(p65,X3b){C1y.W3G();return Boolean(p65 && X3b);}function c3D(u5c){return Math.atanh?Math.atanh(u5c):Math.log((1 + u5c) / ("1" - 0 - u5c)) / 2;}function B33(p$Z){C1y.W3G();if(Math.trunc){return Math.trunc(p$Z);}return p$Z < 0?Math.ceil(p$Z):Math.floor(p$Z);}function Y3H(R1I){C1y.W5N();return Math.sinh?Math.sinh(R1I):(Math.exp(R1I) - Math.exp(-R1I)) / 2;}function I4V(q2t,o33){C1y.s$9(81);return C1y.v$j(q2t,o33);}C1y.O_b(82);m$R=C1y.v$j("7",0,1);C1y.s$9(29);v0_=C1y.V9a(1,8);function K38(T8S){C1y.W5N();var E0x;T8S=Math.floor(T8S);E0x=T8S;while(T8S > 1){C1y.s$9(83);E0x=C1y.V9a(E0x,--T8S);}return E0x;}g6e.extend(m_t.prototype,{parse:function(N$M){var G47,w$k,K_N,A7J,q4z,T1T,n0w,E8Y,m6h,W1E,A7C,E$_,Q_t,D__;this.errormsg="";this.success=!![];G47=[];w$k=[];this.tmpprio=0;C1y.s$9(84);K_N=C1y.V9a(g6G,n_a,F6t,S85);A7J=0;this.expression=N$M;this.pos=0;while(this.pos < this.expression.length){if(this.isOperator()){if(this.isSign() && K_N & F6t){if(this.isNegativeSign()){this.tokenprio=2;this.tokenindex=3747 <= ("3240" ^ 0,777)?+"2.87e+3":"-";A7J++;this.addfunc(w$k,G47,H7l);}C1y.s$9(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}else if(this.isComment()){}else {if((K_N & M4H) === 0){this.error_parsing(this.pos,"unexpected operator");}C1y.s$9(39);A7J+=C1y.V9a("2",0);this.addfunc(w$k,G47,b7P);C1y.s$9(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}}else if(this.isNumber()){if((K_N & S85) === 0){T1T="unexpected";T1T+=" number";this.error_parsing(this.pos,T1T);}q4z=new J_K(k4l,0,0,this.tokennumber);w$k.push(q4z);C1y.O_b(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isString()){if((K_N & S85) === 0){this.error_parsing(this.pos,"unexpected string");}C1y.s$9(12);q4z=new J_K(k4l,0,C1y.v$j(0,"0"),this.tokennumber);w$k.push(q4z);C1y.s$9(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isLeftParenth()){if((K_N & g6G) === 0){n0w="unexpecte";n0w+="d";n0w+=" \"(\"";this.error_parsing(this.pos,n0w);}if(K_N & m$R){A7J+=2;this.tokenprio=-2;this.tokenindex=-1;this.addfunc(w$k,G47,z6D);}C1y.O_b(86);K_N=C1y.V9a(g6G,v0_,S85,F6t,n_a);}else if(this.isRightParenth()){if(K_N & v0_){q4z=new J_K(k4l,+"0",0,[]);w$k.push(q4z);}else if((K_N & q_N) === 0){this.error_parsing(this.pos,'unexpected ")"');}C1y.O_b(86);K_N=C1y.V9a(q_N,m$R,M4H,g6G,m22);}else if(this.isComma()){if((K_N & m22) === 0){this.error_parsing(this.pos,'unexpected ","');}this.addfunc(w$k,G47,b7P);A7J+=2;C1y.O_b(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}else if(this.isConst()){if((K_N & S85) === 0){E8Y="un";E8Y+="expected constant";this.error_parsing(this.pos,E8Y);}m6h=new J_K(k4l,0,0,this.tokennumber);w$k.push(m6h);C1y.O_b(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isOp2()){if((K_N & n_a) === 0){W1E="une";W1E+="xpected f";W1E+="unction";this.error_parsing(this.pos,W1E);}this.addfunc(w$k,G47,b7P);A7J+=2;K_N=g6G;}else if(this.isOp1()){if((K_N & n_a) === 0){A7C="une";A7C+="xpected function";this.error_parsing(this.pos,A7C);}this.addfunc(w$k,G47,H7l);A7J++;K_N=g6G;}else if(this.isVar()){if((K_N & S85) === 0){this.error_parsing(this.pos,"unexpected variable");}E$_=new J_K(z$i,this.tokenindex,0,0);w$k.push(E$_);C1y.s$9(86);K_N=C1y.v$j(q_N,m$R,M4H,g6G,m22);}else if(this.isWhite()){}else {if(this.errormsg === ""){this.error_parsing(this.pos,"unknown character");}else {this.error_parsing(this.pos,this.errormsg);}}}if(this.tmpprio < 0 || this.tmpprio >= 10){this.error_parsing(this.pos,'unmatched "()"');}while(G47.length > 0){Q_t=G47.pop();w$k.push(Q_t);}if(A7J + 1 !== w$k.length){D__="parit";D__+="y";this.error_parsing(this.pos,D__);}return new n8a(w$k,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));},evaluate:function(M_y,b4j){C1y.W3G();return this.parse(M_y).evaluate(b4j);},error_parsing:function(i3F,Z4s){this.success=!1;C1y.s$9(51);this.errormsg=C1y.v$j(Z4s,"]: ","parse error [column ",i3F);this.column=i3F;throw new Error(this.errormsg);},addfunc:function(d1A,h$2,O7K){var E8m;E8m=new J_K(O7K,this.tokenindex,this.tokenprio + this.tmpprio,0);while(h$2.length > 0){if(E8m.prio_ <= h$2[h$2.length - 1].prio_){d1A.push(h$2.pop());}else {break;}}C1y.W3G();h$2.push(E8m);},isNumber:function(){var m1W,Y4O,G9s;m1W=!1;C1y.W3G();Y4O="";while(this.pos < this.expression.length){G9s=this.expression.charCodeAt(this.pos);if(G9s >= 48 && G9s <= +"57" || G9s === 46){Y4O+=this.expression.charAt(this.pos);this.pos++;this.tokennumber=parseFloat(Y4O);m1W=!"";}else {break;}}return m1W;},unescape:function(N_J,J$T){var l4c,Q_C,a7y,r4o,J_E;C1y.W5N();l4c=[];Q_C=!!"";for(var L01=0;L01 < N_J.length;L01++){a7y=N_J.charAt(L01);if(Q_C){switch(a7y){case "'":l4c.push("'");break;case 9041 === "410.64" - 0?(0x261a,17.46):"\\":l4c.push((7580,826) == (538.61,2700)?(!!1,!![]):(2810,4680) == 1928?3630 !== 9870?("k",772.75):(!"",371.59):"\\");break;case (4168,3730) <= (+"593.61",6154)?(2220,+"3671") == ("8480" >> 64,2600)?(+"5961",9470) >= 827.69?(0x64,+"145.73"):(2.41e+3,!"1"):"/":("E",631):l4c.push((8294,+"189") != (1180,1900)?"/":(+"9000",8217) == (+"1967",9890)?(0xa,0x131):(8.86e+3,7.82e+3));break;case (1340,"656.3" - 0) > (6810,+"2710")?0x1d7b:(340.62,640.22) > "644.95" - 0?(+"908.08",4050) > (538,"807.28" * 1)?"325.87" * 1:478.76:"b":l4c.push(3110 < (4880,7541)?(207,+"8920") > (5020,+"5990")?"\b":!![]:!!"");break;case "f":l4c.push("\f");break;case 5510 != (361,5580)?"n":(2.34e+3,!![]):l4c.push("\n");break;case 818.84 === 4060?"0xc47" << 32:"r":l4c.push(9720 >= (4600,41.3)?(157,792.62) > (833,"7540" - 0)?2.85e+3:229.07 != 703?"\r":+"1.81e+3":"562" ^ 0);break;case "t":l4c.push(1110 <= (+"7363",7788)?"\t":(9230,+"211.67") < 613.36?(8.53e+3,0x1b5):(5.09e+2,0x19));break;case 7979 != (1320,4100)?"u":"M":r4o=parseInt(N_J.substring(L01 + ("1" - 0),L01 + 5),16);l4c.push(String.fromCharCode(r4o));L01+=4;break;default:J_E="Illega";J_E+="l escape";J_E+=" sequence:";J_E+=" '\\";C1y.O_b(0);throw this.error_parsing(C1y.v$j(J$T,L01),C1y.v$j(a7y,2913 === 1300?("0x1a8e" * 1,!!""):3783 >= (410.62,2120)?"'":(562.97,250.05) != 898?(0xe1d,!1):6.98e+2,J_E,C1y.O_b(35)));}Q_C=!({});}else {if(a7y == "\\"){Q_C=!![];}else {l4c.push(a7y);}}}return l4c.join("");},isString:function(){var F$D,P1z,p33,N8B;F$D=!"1";P1z="";p33=this.pos;if(this.pos < this.expression.length && this.expression.charAt(this.pos) == ((+"865.22",5982) < (6060,509.62)?(486.67,!!0):"'")){this.pos++;while(this.pos < this.expression.length){N8B=this.expression.charAt(this.pos);if(N8B != ((4000,698.42) <= +"2710"?"'":(4317,+"4151") <= (763.92,299)?![]:4729 <= 648.31?0x2fc:588.48) || P1z.slice(-1) == (+"1960" === 4473?493 != (6350,690.58)?103.15:5.07e+3:"\\")){P1z+=this.expression.charAt(this.pos);this.pos++;}else {this.pos++;this.tokennumber=this.unescape(P1z,p33);F$D=!0;break;}}}return F$D;},isConst:function(){var w0g,r4y;for(var W60 in this.consts){if(!![]){r4y=W60.length;w0g=this.expression.substr(this.pos,r4y);if(W60 === w0g){this.tokennumber=this.consts[W60];this.pos+=r4y;return !0;}}}C1y.W3G();return !!0;},isOperator:function(){C1y.W5N();var M4D,m7i,V6A,I0s;M4D=this.expression.charCodeAt(this.pos);if(M4D === 43){this.tokenprio=2;this.tokenindex="+";}else if(M4D === 45){this.tokenprio=2;this.tokenindex=(1010,"3240" << 0) != 5157?5370 < (709.38,7570)?"-":!![]:("D",0xc6f);}else if(M4D === 62){if(this.expression.charCodeAt(this.pos + 1) === 61){m7i=">";m7i+="=";this.pos++;this.tokenprio=1;this.tokenindex=m7i;}else {this.tokenprio=1;this.tokenindex=("494.7" - 0,183.23) <= (9255,843.18)?90.68 == 1266?("703.96" * 1,8.35e+3):">":!"";}}else if(M4D === 60){if(this.expression.charCodeAt(this.pos + 1) === ("61" | 56)){this.pos++;this.tokenprio=1;this.tokenindex="<=";}else {this.tokenprio=1;this.tokenindex=(817.55,5125) !== 88.89?+"5730" !== (1350,814)?4890 != (3134,9581)?"<":"f":(+"258.90",3.49e+2):("e","d");}}else if(M4D === 124){if(this.expression.charCodeAt(this.pos + +"1") === 124){this.pos++;C1y.O_b(29);this.tokenprio=C1y.V9a("1",64);this.tokenindex="||";}else {return !({});}}else if(M4D === 61){if(this.expression.charCodeAt(this.pos + 1) === +"61"){V6A="=";V6A+="=";this.pos++;this.tokenprio=1;this.tokenindex=V6A;}else {return ![];}}else if(M4D === 33){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;this.tokenprio=1;this.tokenindex="!=";}else {return ![];}}else if(M4D === 97){if(this.expression.charCodeAt(this.pos + 1) === 110 && this.expression.charCodeAt(this.pos + 2) === 100){I0s="a";I0s+="n";I0s+="d";this.pos++;this.pos++;C1y.O_b(39);this.tokenprio=C1y.v$j("0",0);this.tokenindex=I0s;}else {return !({});}}else if(M4D === 111){if(this.expression.charCodeAt(this.pos + 1) === 114){this.pos++;C1y.O_b(1);this.tokenprio=C1y.v$j(0,"0");this.tokenindex="or";}else {return !"1";}}else if(M4D === 42 || M4D === +"8729" || M4D === 8226){this.tokenprio=3;this.tokenindex="*";}else if(M4D === +"47"){this.tokenprio=4;this.tokenindex=5001 >= ("1100" >> 64,6621)?(0x19c4,0x1228):"/";}else if(M4D === 37){this.tokenprio=4;this.tokenindex=5222 !== 7130?"%":("O",2.63e+3);}else if(M4D === 94){this.tokenprio=5;this.tokenindex=2760 > +"6520"?3.15e+3:(107,6819) == 827.3?(0x20f2,0xde1):"^";}else {return !!"";}this.pos++;return !!"1";},isSign:function(){var Y5o;Y5o=this.expression.charCodeAt(this.pos - 1);if(Y5o === +"45" || Y5o === 43){return !!({});}C1y.W3G();return !1;},isPositiveSign:function(){var z32;z32=this.expression.charCodeAt(this.pos - 1);if(z32 === 43){return !![];}return !({});},isNegativeSign:function(){var J1f;J1f=this.expression.charCodeAt(this.pos - 1);if(J1f === 45){return !!({});}return ![];},isLeftParenth:function(){var V95;V95=this.expression.charCodeAt(this.pos);if(V95 === "40" - 0){this.pos++;C1y.O_b(29);this.tmpprio+=C1y.v$j("10",0);return !!"1";}return !({});},isRightParenth:function(){var n_8;n_8=this.expression.charCodeAt(this.pos);if(n_8 === 41){this.pos++;this.tmpprio-=10;return !!1;}return !!"";},isComma:function(){var y4M;y4M=this.expression.charCodeAt(this.pos);if(y4M === 44){this.pos++;this.tokenprio=-1;this.tokenindex=(8144,+"8944") >= 4720?",":411.92;return !!"1";}return !!0;},isWhite:function(){var O6Q;O6Q=this.expression.charCodeAt(this.pos);if(O6Q === +"32" || O6Q === 9 || O6Q === 10 || O6Q === 13){this.pos++;return !0;}return ![];},isOp1:function(){var V4A,q15;V4A="";for(var m7b=this.pos;m7b < this.expression.length;m7b++){q15=this.expression.charAt(m7b);if(q15.toUpperCase() === q15.toLowerCase()){if(m7b === this.pos || q15 != ((8360,95.4) === 9092?4.86e+3:"_") && (q15 < (+"1712" == 571?!0:"0") || q15 > ((9090,145) >= 3120?+"919.64" === (3950,3080)?"5.49e+3" * 1:"B":"9"))){break;}}V4A+=q15;}if(V4A.length > 0 && (V4A in this.ops1)){this.tokenindex=V4A;this.tokenprio=5;this.pos+=V4A.length;return !!1;}return !!"";},isOp2:function(){var n89,h5M;n89="";for(var x__=this.pos;x__ < this.expression.length;x__++){h5M=this.expression.charAt(x__);if(h5M.toUpperCase() === h5M.toLowerCase()){if(x__ === this.pos || h5M != (914.01 <= (9050,549.23)?("B",0xce1):"_") && (h5M < "0" || h5M > "9")){break;}}n89+=h5M;}if(n89.length > 0 && (n89 in this.ops2)){this.tokenindex=n89;this.tokenprio=5;this.pos+=n89.length;return !0;}return !({});},isVar:function(){var S2T,Q5f;C1y.W3G();S2T="";for(var Q0Z=this.pos;Q0Z < this.expression.length;Q0Z++){Q5f=this.expression.charAt(Q0Z);if(Q5f.toUpperCase() === Q5f.toLowerCase()){if(Q0Z === this.pos || Q5f != (728.79 < (600,5915)?"_":(839.96,1730) <= 1210?(1.38e+3,0x1f82):(!"","c")) && (Q5f < (496.86 == 6810?(649.53,+"610.47"):"0") || Q5f > (1560 <= 705.69?7909 >= +"7752"?(![],237.49):383.46:"9"))){break;}}S2T+=Q5f;}if(S2T.length > 0){this.tokenindex=S2T;C1y.s$9(1);this.tokenprio=C1y.v$j(0,"4");this.pos+=S2T.length;return !!({});}return ![];},isComment:function(){var m9g;m9g=this.expression.charCodeAt(this.pos - 1);if(m9g === 47 && this.expression.charCodeAt(this.pos) === 42){C1y.s$9(37);var X3B=C1y.V9a(3,19,24);this.pos=this.expression.indexOf("*/",this.pos) + X3B;if(this.pos === "1" << 0){this.pos=this.expression.length;}return !!({});}return !!"";}},!!({}));return m_t;};g6e.computeEquationChart=function(W8g,p$m){var L0O=i6UVR;var r6l,R2d,b6m,x8w,U8m,j82,t47,d3m,b7$,a6Y,h0V,V0U,C_f,U6Y,d78,I2M,V6u,o9E,Z3i,V1$,M8x,t6R,M73;W8g=W8g.replace(/[:]/,7130 <= (408.06,323.19)?9980 <= 6070?(!1,![]):2.45e+3:"/");r6l=+"0";for(var c48 in p$m){R2d="\\";R2d+="]";b6m="\\";b6m+="[";x8w="\\";x8w+="[";U8m=new RegExp(x8w + c48.replace(/\[/g,b6m).replace(/\]/g,"\\]").replace(/\$/g,"\\$").replace(/\^/g,"\\^").replace(/[+\-*/%()]/g,"\\$&") + R2d,"g");L0O.s$9(0);W8g=W8g.replace(U8m,L0O.V9a("symbol",r6l));r6l++;}j82=o5i().parse(W8g);t47=[];d3m={};b7$=0;function F4H(p71){L0O.W3G();p71.i++;if(p$m[p71.s]){if(p71.i >= p$m[p71.s].length){return 0;}a6Y=p$m[p71.s][p71.i];}if(!a6Y.DT){a6Y.DT=g6e.strToDateTime(a6Y.Date);}p71.d=a6Y.DT;return +"1";}h0V=null;function P2R(){var U7J,t5Y;U7J=null;L0O.W5N();t5Y=null;for(var R$V in d3m){if(!t5Y){t5Y=d3m[R$V];}else if(d3m[R$V].d.getTime() < t5Y.d.getTime()){U7J=t5Y=d3m[R$V];}else if(d3m[R$V].d.getTime() > t5Y.d.getTime()){U7J=t5Y;}}if(U7J){if(!F4H(U7J)){return 0;}return -+"1";}return 1;}V0U=![];C_f=[];for(c48 in p$m){U6Y={sym:c48,map:p$m[c48]};if(p$m[c48]){C_f.unshift(U6Y);}else {C_f.push(U6Y);}}for(var s5S=0;s5S < C_f.length;s5S++){d78=C_f[s5S];d3m[d78.sym]={i:0,s:d78.sym};if(d78.map){b7$++;a6Y=d78.map[0];}else if(b7$ == 1){V0U=d78.sym;}if(!a6Y.DT){a6Y.DT=g6e.strToDateTime(a6Y.Date);}d3m[d78.sym].d=a6Y.DT;if(!h0V){h0V=d3m[d78.sym];}}L0O.O_b(87);L0O.W3G();I2M=L0O.v$j(0,b7$);V6u=b7$ == "1" * 1 && W8g.indexOf((2319,8790) >= 639.51?(3489,4187) < 192.01?("9.16e+3" | 8,118.10):("360.9" * 1,"4756" >> 0) !== +"4630"?"%":+"148.04":(174.86,"F")) == -+"1";a:while(!0){o9E=P2R();if(!o9E)break;if(o9E == 1){if(V0U){V1$=p$m[h0V.s][h0V.i][V0U];if(V1$ && (V1$.Close || V1$.Close === 0)){V1$=V1$.Close;}M8x=j82.evaluate({symbol0:p$m[h0V.s][h0V.i].Close,symbol1:V1$});M8x=Number(M8x.toFixed(+"8"));Z3i={DT:h0V.d,Close:M8x,Adj_Close:M8x};Z3i[h0V.s]=p$m[h0V.s][h0V.i].Close;if(!isNaN(M8x) && M8x != Infinity){t47.push(Z3i);}}else if(I2M){t6R=j82.evaluate({});L0O.s$9(35);g6e.alert(L0O.V9a((2200,3290) <= (9500,1570)?"b":(165.46,"8290" | 98) == 3380?(9070,994.77) === 204?60.08:0xca1:"=",t6R,W8g));throw {name:"NoException",message:""};}else {r6l=0;M73={Adj_Close:{},Close:{},Open:{},High:{},Low:{},Volume:{}};for(c48 in p$m){for(var B8e in M73){L0O.O_b(0);M73[B8e][L0O.v$j("symbol",r6l)]=p$m[c48][d3m[c48].i][B8e];}r6l++;}Z3i={DT:h0V.d};Z3i.Adj_Close=j82.evaluate(M73.Adj_Close);Z3i.Close=j82.evaluate(M73.Close);Z3i.Open=j82.evaluate(M73.Open);Z3i.Volume=j82.evaluate(M73.Volume);if(isNaN(Z3i.Volume)){Z3i.Volume=+"0";}if(V6u){Z3i.High=j82.evaluate(M73.High);Z3i.Low=j82.evaluate(M73.Low);}else {Z3i.High=Math.max(Z3i.Open,Z3i.Close);Z3i.Low=Math.min(Z3i.Open,Z3i.Close);}if(!isNaN(Z3i.Close) && Z3i.Close != Infinity){t47.push(Z3i);}if(!isNaN(Z3i.High)){Z3i.High=Number(Z3i.High.toFixed(8));}if(!isNaN(Z3i.Low)){Z3i.Low=Number(Z3i.Low.toFixed(8));}if(!isNaN(Z3i.Open)){Z3i.Open=Number(Z3i.Open.toFixed(8));}if(!isNaN(Z3i.Close)){Z3i.Close=Number(Z3i.Close.toFixed("8" * 1));}if(!isNaN(Z3i.Adj_Close)){Z3i.Adj_Close=Number(Z3i.Adj_Close.toFixed(8));}else {Z3i.Adj_Close=Z3i.Close;}}for(c48 in p$m){if(!F4H(d3m[c48]))break a;}}}return t47;};};I=o9j=>{var R6l=i6UVR;var R8b;R8b=typeof _CIQ !== "undefined"?_CIQ:o9j.CIQ;R8b.ChartEngine.prototype.setLocale=function(R1z,H4i){var u1A,V5K,z1h,e_D,p1e,S_S,o0A,Z4m,T2Z,H6y,v6P,A33;u1A="n";u1A+="ume";u1A+="ri";u1A+="c";V5K="n";V5K+="umeri";V5K+="c";z1h="n";z1h+="um";z1h+="e";z1h+="ric";e_D="2-";e_D+="d";e_D+="ig";e_D+="it";p1e="2";p1e+="-d";p1e+="igit";S_S="h";S_S+="2";S_S+="3";if(typeof Intl == "undefined"){return;}if(this.locale != R1z){this.locale=R1z;}else {return;}Z4m=this.internationalizer={};Z4m.hourMinute=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",hourCycle:"h23"});Z4m.hourMinuteSecond=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:"numeric",hourCycle:S_S});Z4m.mdhm=new Intl.DateTimeFormat(this.locale,{year:"2-digit",month:p1e,day:e_D,hour:"2-digit",minute:"2-digit"});Z4m.monthDay=new Intl.DateTimeFormat(this.locale,{month:"numeric",day:z1h});Z4m.yearMonthDay=new Intl.DateTimeFormat(this.locale,{year:V5K,month:u1A,day:"numeric"});Z4m.yearMonth=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"});Z4m.month=new Intl.DateTimeFormat(this.locale,{month:"short"});Z4m.numbers=new Intl.NumberFormat(this.locale);Z4m.priceFormatters=[];if(!H4i){H4i=8;}for(o0A=0;o0A < H4i + 1;o0A++){Z4m.priceFormatters.push(new Intl.NumberFormat(this.locale,{maximumFractionDigits:o0A,minimumFractionDigits:o0A}));}for(o0A=0;o0A < 5;o0A++){T2Z="pe";T2Z+="rcen";T2Z+="t";H6y="per";H6y+="cent";v6P=o0A;A33=o0A;if(!o0A){v6P="";A33=2;}R6l.O_b(0);Z4m[R6l.V9a(H6y,v6P)]=new Intl.NumberFormat(this.locale,{style:T2Z,minimumFractionDigits:A33,maximumFractionDigits:A33});}if(R8b.I18N.createMonthArrays){R8b.I18N.createMonthArrays(this,Z4m.month,this.locale);}};R8b.I18N=function(){};R8b.I18N.hereDoc=function(B93){return B93.toString().replace(/^[^/]+\/\*!?/,"").replace(/\*\/[^/]+$/,"");};R6l.W5N();R8b.I18N.language="en";R8b.I18N.longMonths={zh:!0};R8b.I18N.reverseColorsByLocale={zh:!!1,ja:!!1};R8b.I18N.findAllTextNodes=function(f$o){var k07,P82,X7p,j4S,O_P,S_x,P0z,A4w,N1i,x55,i$1,v3t,m4f,Q4O,W4b,N3D,V9l,h_D,s0G,f5H,J9b,n5n;if(!f$o){f$o=document.body;}if(f$o == document.body){if(!document.querySelector(".ciq_stashed_texts")){k07="n";k07+="o";k07+="ne";P82=document.createElement("div");P82.className="ciq_stashed_texts";P82.style.display=k07;f$o.appendChild(P82);X7p=document.querySelectorAll("input,textarea,.editable_content");for(var m4G="0" | 0;m4G < X7p.length;m4G++){j4S="pl";j4S+="aceholder";O_P=X7p[m4G].getAttribute(j4S);if(O_P){S_x="orig";S_x+="ina";S_x+="l";P0z=P82.appendChild(document.createElement("translate"));P0z.setAttribute(S_x,O_P);P0z.placeholderFor=X7p[m4G];P0z.appendChild(document.createTextNode(O_P));}}}}A4w=document.createTreeWalker(f$o,NodeFilter.SHOW_TEXT,null,![]);N1i=A4w.nextNode();x55=new RegExp("^\\s*$");i$1=new RegExp("\n|\t|\f",9354 != ("178" ^ 0,8453)?"g":("8.46e+3" >> 0,0xe88));v3t={};m4f={SCRIPT:!!1,STYLE:!![],TEXTAREA:!!({})};while(N1i){Q4O=N1i.nodeValue;if(!x55.test(Q4O)){W4b=N1i.parentNode;N3D=N1i.nextSibling;V9l=W4b.tagName;if(!m4f[V9l]){if(V9l != "TRANSLATE"){h_D="tr";h_D+="ans";h_D+="late";s0G=document.createElement(h_D);s0G.setAttribute("original",Q4O);s0G.appendChild(N1i);W4b.insertBefore(s0G,N3D);}else {f5H="orig";f5H+="i";f5H+="n";f5H+="al";Q4O=W4b.getAttribute(f5H);}if(i$1.test(Q4O)){Q4O=Q4O.replace(i$1,"");}if(!v3t[Q4O]){v3t[Q4O]=[];}v3t[Q4O].push(N1i);}}N1i=A4w.nextNode();}if(f$o == document.body){J9b=R8b.Studies?R8b.Studies.studyLibrary:null;if(J9b){for(var l2x in J9b){if(v3t[l2x] === null){v3t[l2x]=[];}n5n=J9b[l2x];if(n5n.inputs){for(var c7B in n5n.inputs){if(!v3t[c7B]){v3t[c7B]=[];}}}if(n5n.outputs){for(var b73 in n5n.outputs){if(!v3t[b73]){v3t[b73]=[];}}}}}}return v3t;};R8b.I18N.missingWordList=function(Z$8){var z$0,V51,W5r,i80,t$T,T6C,s7Q,y7N,F6l;z$0="Sho";z$0+="w Zone";z$0+="s";if(!Z$8){Z$8=R8b.I18N.language;}V51=R8b.I18N.findAllTextNodes();W5r={};i80=R8b.I18N.wordLists[Z$8];if(!i80){i80={};}t$T=function(B6q){if(typeof i80[B6q] == "undefined"){W5r[B6q]="";}};for(var R3_ in V51){t$T(R3_);}if(!(R8b.Studies && R8b.Studies.studyLibrary)){return W5r;}for(var Q8P in R8b.Studies.studyLibrary){T6C=R8b.Studies.studyLibrary[Q8P];t$T(T6C.name);for(var g5Q in T6C.inputs){y7N="[object Ar";y7N+="ra";y7N+="y]";F6l="[obj";F6l+="ect String]";t$T(g5Q);s7Q=T6C.inputs[g5Q];switch(Object.prototype.toString.call(s7Q)){case F6l:t$T(s7Q);break;case y7N:for(var J2X=+"0";J2X < s7Q.length;++J2X){t$T(s7Q[J2X]);}break;}}for(var p68 in T6C.outputs){t$T(p68);}}t$T(z$0);t$T("OverBought");R6l.W3G();t$T("OverSold");t$T("Panel");t$T("Show as Underlay");t$T("Y-Axis");t$T("Invert Y-Axis");return W5r;};R8b.I18N.printableMissingWordList=function(l7V){R6l.W3G();var Y6I;Y6I=JSON.stringify(R8b.I18N.missingWordList(l7V));Y6I=Y6I.replace(/","/g,'",\n"');return Y6I;};R8b.I18N.translateUI=function(Z7e,i0V){var u0Z,Z7A,r0L,p6G,K3r,C1j,z3c,I2d,A3i;if(Z7e == "pu"){Z7e="pt";}if(!R8b.I18N.wordLists){return;}if(!Z7e){Z7e=R8b.I18N.language;}u0Z=R8b.I18N.findAllTextNodes(i0V);Z7A=R8b.I18N.wordLists[Z7e];if(!Z7A){return;}for(var y72 in u0Z){r0L=R8b.I18N.translateSections(y72,Z7A);p6G=u0Z[y72];for(var f7b=+"0";f7b < p6G.length;f7b++){K3r="o";K3r+="r";K3r+="igi";K3r+="nal";C1j=p6G[f7b];z3c=C1j.parentNode;I2d=z3c.getAttribute(K3r);if(r0L === ((437,7750) === (1820,6381)?(400.99,"Z"):",") || !r0L){r0L=I2d;}A3i=z3c.placeholderFor;if(A3i){A3i.placeholder=r0L;}else {C1j.data=r0L;}}}};R8b.I18N.translate=function(Z5Q,W50){var I1B,Q3$;if(!W50){W50=R8b.I18N.language;}if(!R8b.I18N.wordLists){console.log("Must include translations.js in order to use CIQ.I18N.translate()");return Z5Q;}R6l.W5N();I1B=R8b.I18N.wordLists[W50];Q3$=null;if(I1B){Q3$=R8b.I18N.translateSections(Z5Q,I1B) || Z5Q;}return Q3$ === ","?Z5Q:Q3$;};R8b.I18N.translateSections=function(n2u,i9m){var a0h,V6_,Q4N;a0h="str";a0h+="i";a0h+="n";R6l.W3G();a0h+="g";V6_=675 < 8615?"\u200c":705.50;if(typeof n2u == a0h && n2u.indexOf(V6_) != -1){R6l.s$9(35);n2u=n2u.replace(/([(),])/g,R6l.V9a("$1",V6_,V6_));Q4N=n2u.split(V6_);Q4N.forEach(function(r5B,D3K,b3y){var h4t,B7R;h4t=r5B.match(/^(\s*).*\S(\s*)$/);R6l.W3G();B7R=i9m[r5B.trim()];if(B7R){if(h4t){R6l.O_b(77);var N5N=R6l.v$j(13,0,3,10,3);B7R=h4t["1" ^ 0] + B7R + h4t[N5N];}b3y[D3K]=B7R;}});return Q4N.join("");}return i9m[n2u];};R8b.I18N.convertCSV=function(L$1){var Y5h,V__,t1K,B17,L4r,F5L,a3D,I24,h9H,Q9L,y2b;Y5h="^(\")";Y5h+="|(\")$";V__=new RegExp("[\u201C\u201D]|[\u2018\u2019]",(168.52,2000) != 311?"5980" * 1 > (4034,6750)?+"1545" < (335.82,"8800" | 32)?1.80e+3:(!0,!""):"g":(0x4d9,0x1e09));t1K=new RegExp(Y5h,544.04 !== 8100?"g":2359 === 275.75?"343.30" - 0:608.10);B17=R8b.I18N.wordLists;R6l.W3G();if(!L$1){L$1=R8b.I18N.csv;}if(!L$1){return;}L4r=L$1.split("\n");F5L=L4r[0];a3D=F5L.split(301.15 <= +"4102"?775.78 == (9510,345)?(!({}),+"1.84e+3"):",":(80.42,893.61));for(var Z7h=0;Z7h < a3D.length;Z7h++){I24=a3D[Z7h];if(!B17[I24]){B17[I24]={};}}for(var X2b=1;X2b < L4r.length;X2b++){h9H=L4r[X2b].match(/(".*?"|[^",]+)(?=\s*,|\s*$)|(,(?=,))/g) || [];Q9L=h9H[0];if(t1K.test(Q9L)){Q9L=Q9L.replace(t1K,"");}if(V__.test(Q9L)){Q9L=Q9L.replace(V__,9800 !== 4870?559 == "7630" - 0?(!!0,!1):"303.89" * 1 >= 3310?!"1":'"':972.67);}for(var L0y=1;L0y < h9H.length;L0y++){y2b=h9H[L0y];if(t1K.test(y2b)){y2b=y2b.replace(t1K,"");}B17[a3D[L0y]][Q9L]=y2b;}}};R8b.I18N.setLanguage=function(K92,C5F,Y0v,D2q,a_L){var F9C;F9C="p";F9C+="t";if(!a_L){a_L=(K92.uiContext || ({})).topNode || document.body;}if(C5F == "pu"){C5F=F9C;}R8b.I18N.convertCSV(D2q);R8b.I18N.language=C5F;R6l.W5N();R8b.I18N.translateUI(C5F,a_L);if(!Y0v){Y0v=R8b.I18N.translate;}K92.translationCallback=Y0v;};R8b.I18N.setLocale=function(p81,U5l,g8q,s2Q,t9N){var T$z,F8O,G9Z,N9F,i$i,E7g;T$z="SC";T$z+="RIPT";F8O="locale";F8O+="-";F8O+="data/jso";F8O+="np";G9Z="un";G9Z+="de";G9Z+="fin";G9Z+="ed";if(R8b.xor(this.reverseColorsByLocale[U5l],this.reverseColorsByLocale[p81.locale])){this.reverseCandles(p81);}if(typeof Intl == G9Z || !Intl.__addLocaleData){p81.setLocale(U5l,t9N);if(g8q){g8q(null);}return;}s2Q=typeof s2Q == "undefined"?F8O:s2Q;R6l.O_b(51);N9F=R6l.V9a(".js",U5l,s2Q,"/");i$i=document.createElement(T$z);i$i.async=!![];i$i.src=N9F;E7g=document.getElementsByTagName("script")[0];E7g.parentNode.insertBefore(i$i,E7g.nextSibling);i$i.onload=function(){p81.setLocale(U5l,t9N);if(g8q){g8q(null);}};i$i.onerror=function(){if(g8q){g8q("cannot load script");}};};R8b.I18N.createMonthArrays=function(P5G,Z3T,t44){var g0V,e2w,j_W,U28,O$d,o5P;P5G.monthAbv=[];P5G.monthLetters=[];g0V=new Date();R6l.W3G();e2w=!![];if(R8b.I18N.longMonths && R8b.I18N.longMonths[t44]){e2w=!!0;}for(var k4r=0;k4r < 12;k4r++){g0V.setDate(1);g0V.setMonth(k4r);j_W=Z3T.format(g0V);if(e2w){U28="";for(var d0K=0;d0K < j_W.length;d0K++){O$d=j_W.charAt(d0K);o5P=O$d.charCodeAt(0);if(o5P < 65)continue;U28+=O$d;}P5G.monthAbv[k4r]=U28;P5G.monthLetters[k4r]=U28[0];}else {P5G.monthAbv[k4r]=j_W;P5G.monthLetters[k4r]=j_W;}}};R8b.I18N.localize=function(y$b,U1S){this.setLocale(y$b,U1S);this.setLanguage(y$b,U1S);};R8b.I18N.reverseCandles=function(a2l){var N_T,Y33,e86;N_T=a2l.styles;Y33=a2l.cloneStyle(N_T.stx_candle_down);R6l.W3G();e86=a2l.cloneStyle(N_T.stx_candle_up);N_T.stx_candle_up=Y33;N_T.stx_candle_down=e86;};R8b.I18N.wordLists={en:{}};R8b.I18N.languages={en:"English"};};Q=q3j=>{var Z7f=i6UVR;var F44,J3z,e9u,s69,n2V,Q34,O3f,J0h;F44="
";J3z="
";e9u="
    (right-click to deleteright-click to";e9u+=" managedrag to change anchor time)(long-press to drag)
";s69="cancel";n2V="co";n2V+="ntextmen";n2V+="u";Q34="und";Q34+="efine";Q34+="d";O3f=typeof _CIQ !== "undefined"?_CIQ:q3j.CIQ;O3f.ChartEngine.prototype.pointerEvents={down:[],up:[]};O3f.ChartEngine.prototype.manageTouchAndMouse=!![];O3f.ChartEngine.prototype.registerTouchAndMouseEvents=function(){var h__,F4_,w6q,N$k,y9k,I9r,z2D,H6d,h_j,P3E,I$_,h4U,L2v,a2b;if(this.touchAndMouseEventsRegistered){return;}this.touchAndMouseEventsRegistered=!!1;h__=this.controls.chartControls || document;F4_=h__.querySelector(".stx-zoom-in");w6q=h__.querySelector(".stx-zoom-out");N$k=this.chart.container;y9k=this;I9r=function(o7_,q11,t6o){y9k.addDomEventListener(N$k,o7_,A9H,t6o);Z7f.W3G();function A9H(T4T){if(y9k.mainSeriesRenderer && y9k.mainSeriesRenderer.nonInteractive){return;}q11(T4T);}};if(!O3f.touchDevice){z2D="mo";z2D+="us";z2D+="edown";H6d="mo";H6d+="usemo";H6d+="ve";I9r(H6d,function(O9W){y9k.mousemove(O9W);});I9r("mouseenter",function(u85){Z7f.W5N();y9k.mousemove(u85);});I9r(z2D,function(W2A){Z7f.W5N();y9k.mousedown(W2A);});I9r("mouseup",function(O$a){Z7f.W5N();y9k.mouseup(O$a);});}else {if(O3f.isSurface){h_j="po";h_j+="inter";h_j+="d";h_j+="own";P3E="mou";P3E+="s";P3E+="edown";I9r("mousemove",function(h8f){y9k.msMouseMoveProxy(h8f);});I9r("mouseenter",function(N5B){Z7f.W3G();y9k.msMouseMoveProxy(N5B);});I9r(P3E,function(n7k){Z7f.W5N();y9k.msMouseDownProxy(n7k);});I9r("mouseup",function(Z$G){y9k.msMouseUpProxy(Z$G);});I9r(h_j,function(e7l){Z7f.W5N();return y9k.startProxy(e7l);});I9r("pointermove",function(h3E){Z7f.W3G();y9k.moveProxy(h3E);});I9r("pointerenter",function(K3T){Z7f.W3G();return y9k.moveProxy(K3T);});I9r("pointerup",function(h_e){return y9k.endProxy(h_e);});}else {if(!O3f.isMobile){I$_="mouseent";I$_+="er";I9r("mousemove",function(y6n){Z7f.W3G();y9k.iosMouseMoveProxy(y6n);});I9r(I$_,function(J40){Z7f.W5N();y9k.iosMouseMoveProxy(J40);});I9r("mousedown",function(v1g){Z7f.W3G();y9k.iosMouseDownProxy(v1g);});I9r("mouseup",function(O69){Z7f.W3G();y9k.iosMouseUpProxy(O69);});}I9r("touchstart",function(C08){Z7f.W3G();y9k.touchstart(C08);});I9r("touchmove",function(l5D){y9k.touchmove(l5D);});I9r("touchend",function(j$O){y9k.touchend(j$O);});I9r("pointerdown",function(y6H){y9k.touchPointerType=y6H.pointerType;});if(F4_){h4U="onMo";h4U+="useO";h4U+="ver";F4_.removeAttribute(h4U);F4_.removeAttribute("onMouseOut");}if(w6q){L2v="onMouseOve";L2v+="r";w6q.removeAttribute(L2v);w6q.removeAttribute("onMouseOut");}}}a2b=O3f.wheelEvent;Z7f.W5N();if(this.captureMouseWheelEvents){I9r(a2b,function(T36){y9k.mouseWheel(T36);},{passive:!({})});}};O3f.ChartEngine.prototype.mousedown=function(s9i){var g29,T9y,c6R,V6w,u05,q4o,v4n,F9R,s0_,s81,I$G;g29="moused";g29+="own";if(this.runPrepend(g29,arguments)){return;}this.grabOverrideClick=!1;if(!this.displayInitialized){return;}if(!this.displayCrosshairs){return;}if(this.repositioningDrawing){return;}if(this.editingAnnotation){return;}if(s9i.button && s9i.button >= 2){return;}T9y=this.container.getBoundingClientRect();this.top=T9y.top;this.left=T9y.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(s9i.clientX >= this.left && s9i.clientX <= this.right && s9i.clientY >= this.top && s9i.clientY <= this.bottom){this.insideChart=!!"1";}else {c6R=-134656921;V6w=-1137160748;u05=2;for(var U34=1;Z7f.m6F(U34.toString(),U34.toString().length,41752) !== c6R;U34++){this.insideChart=!({});u05+=2;}if(Z7f.l5h(u05.toString(),u05.toString().length,20166) !== V6w){this.insideChart=!!({});}return;}if(!this.currentPanel){return;}if(this.manageTouchAndMouse && s9i && s9i.preventDefault && this.captureTouchEvents){s9i.preventDefault();}this.mouseTimer=Date.now();this.longHoldTookEffect=!({});this.hasDragged=![];this.userPointerDown=!0;if(this.openDialog === ""){this.registerPointerEvent({x:s9i.clientX,y:s9i.clientY,time:this.mouseTimer},"down");}q4o=this.currentPanel.chart;for(var m0n=0;m0n < this.drawingObjects.length;m0n++){v4n=this.drawingObjects[m0n];if(v4n.highlighted && !v4n.permanent){if(this.cloneDrawing){F9R=O3f.ChartEngine.drawingTools[v4n.name];s0_=new F9R();s0_.reconstruct(this,v4n.serialize());this.drawingObjects.push(s0_);this.activateRepositioning(s0_);s0_.repositioner=v4n.repositioner;return;}s81=this.currentVectorParameters.vectorType;if(!O3f.Drawing || !s81 || !O3f.Drawing[s81] || !new O3f.Drawing[s81]().dragToDraw){this.activateRepositioning(v4n);return;}}}I$G=this.mainSeriesRenderer || ({});var {baselineHelper:A1Z}=this;if(A1Z.size){if(this.findBaselineHandle(s9i,!!({}))){return;}}if(this.controls.anchorHandles){var {anchorHandles:c1n}=this.controls;for(var y7P in c1n){var {handle:U_t, sd:R60, highlighted:r2r}=c1n[y7P];if(r2r){this.repositioningAnchorSelector={sd:R60};U_t.classList.add("stx-grab");return;}}}if(this.drawingClick){if(this.currentPanel.subholder === s9i.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing && this.activeDrawing.dragToDraw){return;}}this.grabbingScreen=!!1;q4o.spanLock=![];this.yToleranceBroken=!!"";this.grabStartX=s9i.clientX;this.grabStartY=s9i.clientY;this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=q4o.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(this.currentPanel);this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPanel=this.currentPanel;setTimeout((function(g8U){Z7f.W3G();return function(){Z7f.W5N();g8U.grabbingHand();};})(this),100);if(this.swipeStart){this.swipeStart(q4o);}if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}this.runAppend("mousedown",arguments);};O3f.ChartEngine.prototype.mousemove=function(d7U){var r0i,L4M;r0i="mou";r0i+="se";r0i+="move";L4M=d7U;O3f.ChartEngine.crosshairX=L4M.clientX;O3f.ChartEngine.crosshairY=L4M.clientY;if(L4M.type.toLowerCase().indexOf("enter") > -1){this.positionCrosshairsAtPointer();return;}if(this.runPrepend(r0i,arguments)){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(this.baselineHelper.size){this.findBaselineHandle(L4M);}if(this.grabbingScreen && L4M.buttons !== 1){this.cancelLongHold=!!1;this.displayDragOK();this.grabbingScreen=!1;this.findHighlights(!({}),!!"1");}this.mousemoveinner(L4M.clientX,L4M.clientY);this.runAppend("mousemove",arguments);};O3f.ChartEngine.prototype.mouseup=function(j4w){var r_R,J4j,W1Y,g6i,r7x,G3q,E1E,x9i,W55,U8u,F_H,M9a;r_R="mo";r_R+="use";r_R+="up";if(this.runPrepend("mouseup",arguments)){return;}this.swipe.end=!0;this.cancelLongHold=!![];if(this.repositioningDrawing){if(!this.currentVectorParameters.vectorType || Date.now() - this.mouseTimer > 250){this.changeOccurred("vector");O3f.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.adjustDrawings();this.draw();return;}this.activateRepositioning(null);}if(this.repositioningBaseline){var {handle:O9b}=this.repositioningBaseline;this.repositioningBaseline=null;O9b.classList.remove("stx-grab");J4j=this.mainSeriesRenderer || ({});if(J4j.params && J4j.params.baseline && J4j.params.type != "mountain"){;}this.draw();return;}if(this.repositioningAnchorSelector){O3f.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:D4O})=>{return D4O.classList.remove("stx-grab");});this.findHighlights();return;}W1Y=this.userPointerDown;this.userPointerDown=!!0;if(!this.displayInitialized){return;}g6i=this.backOutY(j4w.clientY);r7x=this.backOutX(j4w.clientX);G3q=j4w.which && j4w.which >= 2 || j4w.button && j4w.button >= 2;E1E=this.openDialog !== "";if(!E1E && !G3q){this.registerPointerEvent({x:j4w.clientX,y:j4w.clientY,time:Date.now()},"up");}x9i=this.isDoubleClick();this.grabbingScreen=!"1";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(r7x,g6i);}this.currentPanel=this.whichPanel(g6i);}W55=this.currentPanel;this.grabStartYAxis=null;this.displayDragOK();if(this.openDialog !== ""){U8u="s";U8u+="tx-drag-ch";U8u+="ar";U8u+="t";if(this.insideChart){this.container.classList.remove(U8u);}return;}if(this.grabOverrideClick){F_H="st";F_H+="x-d";F_H+="rag-chart";if(!this.overXAxis && !this.overYAxis && this.swipeRelease){this.swipeRelease();}this.container.classList.remove(F_H);this.grabOverrideClick=!!"";this.doDisplayCrosshairs();this.updateChartAccessories();return;}if(this.insideChart){this.container.classList.remove("stx-drag-chart");}if(O3f.ChartEngine.resizingPanel){this.releaseHandle();return;}if(G3q || j4w.ctrlKey){if(this.anyHighlighted && this.bypassRightClick !== !!({})){this.rightClickHighlighted();if(j4w.preventDefault && this.captureTouchEvents){j4w.preventDefault();}j4w.stopPropagation();return !!0;}this.dispatch("rightClick",{stx:this,panel:W55,x:r7x,y:g6i});return !!"1";}if(j4w.clientX < this.left || j4w.clientX > this.right){return;}if(j4w.clientY < this.top || j4w.clientY > this.bottom){return;}M9a=W55 && W55.subholder === j4w.target;if(x9i && (M9a || this.overYAxis || this.overXAxis)){this.doubleClick({button:j4w.button,x:r7x,y:g6i});}else {if(W1Y && M9a){if(!this.longHoldTookEffect || this.activeDrawing){this.drawingClick(W55,r7x,g6i);}if(!this.longHoldTookEffect && this.activeMarker){this.activeMarker.click({cx:r7x,cy:g6i,panel:W55});}}if(!this.longHoldTookEffect && !this.activeDrawing){this.dispatch("tap",{stx:this,panel:W55,x:r7x,y:g6i});}}this.runAppend(r_R,arguments);};O3f.ChartEngine.prototype.registerPointerEvent=function(g_Y,t7c){if(this.pointerEvents[t7c].length > 1){this.pointerEvents[t7c].pop();}this.pointerEvents[t7c].unshift(g_Y);};Z7f.W5N();O3f.ChartEngine.prototype.resetPointerEvent=function(S2t){this.pointerEvents[S2t].splice(0);};O3f.ChartEngine.prototype.isDoubleClick=function(Z7m){var q6U,b_Z,V1g,E36;q6U=Z7m?1200:400;Z7f.W5N();var {up:c3w, down:t1Z}=this.pointerEvents;this.cancelTouchSingleClick=![];if(c3w.length < +"2" || t1Z.length < 2){return !"1";}b_Z=t1Z["0" ^ 0].time - c3w[1].time < this.doubleClickTime && Math.pow(c3w[1].x - c3w[0].x,2) + Math.pow(c3w[1].y - c3w[+"0"].y,2) <= q6U && c3w[1].time - t1Z[1].time < this.longHoldTime && c3w[+"0"].time - t1Z[0].time < this.longHoldTime;if(b_Z){V1g="dow";V1g+="n";E36="u";E36+="p";this.resetPointerEvent(E36);this.resetPointerEvent(V1g);this.cancelTouchSingleClick=!![];}return b_Z;};O3f.ChartEngine.prototype.doubleClick=function(g__,S_G,m0K){var l1u;if(this.runPrepend("doubleClick",arguments)){return;}if(this.editingAnnotation){return;}if(O3f.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}l1u=this.activeMarker && this.activeMarker.doubleClick({cx:S_G,cy:m0K,panel:this.currentPanel});if(!l1u){this.dispatch("doubleClick",{stx:this,button:g__,x:S_G,y:m0K});}this.runAppend("doubleClick",arguments);};O3f.ChartEngine.prototype.handleMouseOut=function(U1L){var N$i,E5W,U63;U1L=U1L || window.event;if(!O3f.withinElement(this.chart.container,U1L.pageX,U1L.pageY)){N$i="h";N$i+="andle";N$i+="M";N$i+="ouseOut";if(this.runPrepend("handleMouseOut",arguments)){return;}if(!this.grabbingScreen){this.findHighlights(null,!!1);}this.undisplayCrosshairs();this.touches=[];this.touching=!"1";if(this.activeDrawing && this.userPointerDown){this.userPointerDown=!({});this.drawingLine=![];E5W=this.backOutY(U1L.pageY);U63=this.backOutX(U1L.pageX);this.drawingClick(this.currentPanel,U63,E5W);}if(this.repositioningAnchorSelector){this.repositioningAnchorSelector=null;}this.insideChart=!!"";this.overYAxis=!"1";this.overXAxis=![];this.displaySticky();this.runAppend(N$i,arguments);}};O3f.ChartEngine.prototype.startLongHoldTimer=function(){var H3a,f9S;H3a=this;this.cancelLongHold=![];if(this.longHoldTimeout){clearTimeout(this.longHoldTimeout);}f9S=function(){if(H3a.cancelLongHold){return;}H3a.longHoldTookEffect=!!({});Z7f.W5N();H3a.dispatch("longhold",{stx:H3a,panel:H3a.currentPanel,x:H3a.cx,y:H3a.cy});H3a.displayDragOK();};if(this.longHoldTime){this.longHoldTimeout=setTimeout(f9S,this.longHoldTime);}else if(this.longHoldTime === 0){f9S();}};O3f.ChartEngine.prototype.grabHandle=function(N2W){Z7f.W5N();var Y_9,h8c;Y_9="gr";Y_9+="abHandle";h8c="s";h8c+="tx-grab";if(this.runPrepend("grabHandle",arguments)){return;}if(!N2W){return;}O3f.ChartEngine.crosshairY=N2W.top + this.top;O3f.ChartEngine.resizingPanel=N2W;N2W.handle.classList.add(h8c);this.runAppend(Y_9,arguments);};O3f.ChartEngine.prototype.grabbingHand=function(){var A0W;A0W="stx-drag";A0W+="-";A0W+="chart";if(!this.allowScroll){return;}if(!this.grabbingScreen){return;}if(O3f.touchDevice){return;}this.container.classList.add(A0W);};O3f.ChartEngine.prototype.releaseHandle=function(){if(this.runPrepend("releaseHandle",arguments)){return !!({});}O3f.clearCanvas(this.chart.tempCanvas,this);this.resizePanels();if(O3f.ChartEngine.resizingPanel){O3f.ChartEngine.resizingPanel.handle.classList.remove("stx-grab");}O3f.ChartEngine.resizingPanel=null;this.runAppend("releaseHandle",arguments);};O3f.ChartEngine.prototype.findHighlights=function(m5Z,D8F){var Z8m,y0E,D$e,z6T,y1i,b45,y7H,R41,z9V,l9g,u$d,s5$,J9M,g36,Q0B,S8n,W6Z,W5u,Z0R,R3d,B3J,v_M,S2r,s5Y,u7f,z4Z,M$P,H41,x61,t0W,u0s,g$f,Q9J,e$5,y_4,R4V,L9Z,R5U,O2A,J0a,w8L,E_l,X1g,H3z,H5C,J$G,O9N,m40,n7D,y__;Z8m="d";Z8m+="raw";Z8m+="ing";y0E=this.preferences[m5Z?"highlightsTapRadius":"highlightsRadius"];this.highlightViaTap=m5Z;var {cx:b6D, cy:i5l}=this;this.anyHighlighted=![];if(!this.currentPanel){return;}var {chart:W69}=this.currentPanel;if(this.activeDrawing){D8F=!!({});}D$e=![];z6T=null;y1i=D8F?{}:{forceShow:!"",type:Z8m};b45={x0:this.tickFromPixel(b6D - y0E,W69),x1:this.tickFromPixel(b6D + y0E,W69),y0:this.valueFromPixel(i5l - y0E,this.currentPanel),y1:this.valueFromPixel(i5l + y0E,this.currentPanel),cx0:b6D - y0E,cx1:b6D + y0E,cy0:i5l - y0E,cy1:i5l + y0E,r:y0E};if(this.repositioningDrawing && b45.x1 - b45.x0 < +"2"){b45.x1++;b45.x0--;}else if(b45.x1 == b45.x0){b45.x0-=0.5;b45.x1+=0.5;}y7H=this.markerHelper && this.markerHelper.chartMap[W69.name] && this.markerHelper.chartMap[W69.name].markers;if(!W69.hideDrawings){for(var M$k=this.drawingObjects.length - 1;M$k >= +"0";M$k--){R41=this.drawingObjects[M$k];if(!this.panels[R41.panelName])continue;if(this.repositioningDrawing && this.repositioningDrawing != R41)continue;z9V=R41.highlighted;l9g=R41.panelName == this.currentPanel.name;R41.repositioner=R41.intersected(this.crosshairTick,this.crosshairValue,b45);l9g=l9g && R41.repositioner;if(!D8F && l9g){if(z9V){z6T=R41;if(this.anyHighlighted && this.singleDrawingHighlight){R41.highlighted=![];}if(R41.highlighted && R41.highlighted != z9V){D$e=!"";};}else if(z9V != R41.highlight(!!1)){if(!z6T){z6T=R41;}if(this.anyHighlighted && this.singleDrawingHighlight){R41.highlighted=!({});}D$e=!![];}this.anyHighlighted=!![];}else {if(z9V != R41.highlight(![])){D$e=!!({});}}if(R41.highlighted){y1i.noDelete=R41.permanent;y1i.noEdit=!this.callbackListeners.drawingEdit.length;}}}for(u$d in this.layout.studies){s5$=this.layout.studies[u$d];s5$.prev=s5$.highlight;s5$.highlight=this.yaxisMatches(s5$,this.grabStartYAxis);}for(u$d in W69.seriesRenderers){S8n=W69.seriesRenderers[u$d];S8n.params.highlight=this.yaxisMatches(S8n,this.grabStartYAxis);for(var b8b=0;b8b < S8n.seriesParams.length;b8b++){Q0B=S8n.seriesParams[b8b];Q0B.prev=Q0B.highlight;Q0B.highlight=S8n.params.highlight;}}for(J9M=0;y7H && J9M < y7H.length;J9M++){g36=y7H[J9M];if(!g36.params.box)continue;this.activeMarker=null;g36.prev=y7H[J9M].highlight;g36.highlight=![];}if(this.markerHelper){this.markerHelper.highlighted=[];}this.highlightedDataSetField=null;this.highlightedDraggable=null;if(!D8F && !this.anyHighlighted && this.controls.anchorHandles){for(var b0y in this.controls.anchorHandles){W6Z=this.controls.anchorHandles[b0y];var {handle:u$E, sd:q0_}=W6Z;W5u=this.resolveX(b6D);Z0R=this.resolveY(i5l);if(u$E){var {left:P6w, top:y75, right:I12, bottom:T_q}=u$E.getBoundingClientRect();if(O3f.boxIntersects(P6w,y75,I12,T_q,W5u,Z0R,W5u,Z0R)){R3d="anchorHand";R3d+="le";W6Z.highlighted=!!1;this.anyHighlighted=!!({});D$e=!!({});y1i={message:q0_.name,type:R3d};continue;}if(W6Z.highlighted === !!"1"){W6Z.highlighted=!1;D$e=!!({});}}}}if(!D8F && !this.anyHighlighted && W69.dataSegment){B3J=this.barFromPixel(b6D);if(B3J >= 0 && B3J < W69.dataSegment.length){for(u$d in this.overlays){s5$=this.overlays[u$d];if(s5$.panel != this.currentPanel.name)continue;if(s5$.study.isHighlighted === !({}))continue;else if(typeof s5$.study.isHighlighted == "function"){if(s5$.study.isHighlighted(this,b6D,i5l)){s5$.highlight=!0;this.anyHighlighted=!![];}continue;}S2r=W69.dataSegment[B3J];if(!S2r)continue;for(var M79 in s5$.outputMap){if(y$R.call(this,B3J,b45,M79,s5$.getYAxis(this))){if(s5$.name != s5$.panel){this.anyHighlighted=!"";}s5$.highlight=M79;break;}}if(s5$.highlight){this.highlightedDataSetField=M79;break;;}}for(u$d in W69.seriesRenderers){if(this.highlightedDataSetField)break;s5Y=W69.seriesRenderers[u$d];u7f=s5Y.params.panel;if(s5Y == this.mainSeriesRenderer)continue;if(!s5Y.params.highlightable && !this.currentVectorParameters.vectorType)continue;if(u7f != this.currentPanel.name)continue;for(J9M=0;J9M < s5Y.seriesParams.length;J9M++){z4Z="-";z4Z+="-";z4Z+=">";Q0B=s5Y.seriesParams[J9M];M$P=Q0B.field;if(!M$P && !s5Y.highLowBars){M$P=this.defaultPlotField || "Close";}if(Q0B.symbol && Q0B.subField){M$P+=z4Z + Q0B.subField;}H41=s5Y.params.yAxis;if(!H41 && u7f){H41=this.panels[u7f].yAxis;}if(s5Y.params.step && B3J > +"0"){if(!s5Y.caches[Q0B.id])continue;v_M=s5Y.caches[Q0B.id][B3J];if(!v_M && v_M !== 0)continue;Z7f.s$9(1);x61=s5Y.caches[Q0B.id][Z7f.v$j(1,B3J)];if((x61 || x61 === 0) && i5l + y0E >= v_M && i5l - y0E <= x61 || i5l - y0E <= v_M && i5l + y0E >= x61){Q0B.highlight=!!"1";this.anyHighlighted=!![];}}else if(y$R.call(this,B3J,b45,M$P,H41,s5Y,Q0B.id)){Q0B.highlight=!!1;this.anyHighlighted=!![];}if(Q0B.highlight){this.highlightedDataSetField=M$P;break;}}}}}u0s=this.preferences.dragging;for(u$d in this.overlays){s5$=this.overlays[u$d];if(s5$.highlight){this.anyHighlighted=!!1;Q9J=s5$.inputs.display || s5$.name;Q9J=this.translateIf(Q9J);y1i={message:Q9J,noDelete:s5$.permanent,noEdit:!s5$.editFunction,type:"study"};z6T=null;if(u0s === !"" || u0s && u0s.study){t0W=s5$;}g$f=s5$.getYAxis(this);}if(s5$.prev != s5$.highlight){D$e=!!1;}}Z7f.W3G();for(u$d in W69.seriesRenderers){e$5=W69.seriesRenderers[u$d];y_4=e$5.params.yAxis?e$5.params.yAxis.textStyle:null;for(var j3f=0;j3f < e$5.seriesParams.length;j3f++){Q0B=e$5.seriesParams[j3f];if(e$5.params.highlightable && Q0B.highlight){R4V="a";R4V+="ut";R4V+="o";this.anyHighlighted=!![];L9Z=Q0B.color || y_4;if(L9Z == R4V){L9Z=this.defaultColor;}if(Q0B.opacity && Q0B.opacity !== 1){L9Z=O3f.hexToRgba(O3f.colorToHex(L9Z),parseFloat(Q0B.opacity));}y1i={message:Q0B.display || Q0B.symbol,backgroundColor:L9Z,noDelete:Q0B.permanent,type:"series"};z6T=null;if(u0s === !!1 || u0s && u0s.series){t0W=e$5;e$5.params.highlight=!!1;}g$f=e$5.getYAxis(this);}if(Q0B.prev != Q0B.highlight){D$e=!!({});}}}for(u$d in this.plugins){R5U=this.plugins[u$d];O2A={};if(R5U.findHighlights){O2A=R5U.findHighlights(this,m5Z,D8F);if(O2A.somethingChanged){D$e=!!({});}if(O2A.anyHighlighted){this.anyHighlighted=!!({});y1i=O2A.stickyArgs || ({});}}}J0a=this.whichPanel(i5l);w8L=this.whichYAxis(J0a,b6D);if(!g$f){g$f=w8L;}if(this.currentBaseline){g$f=this.currentBaseline.getYAxis(this);}if(g$f){if(!g$f.highlight){D$e=!"";}g$f.highlight=!![];}E_l=[];for(var x2x in this.panels){E_l=E_l.concat(this.panels[x2x].yaxisLHS).concat(this.panels[x2x].yaxisRHS);}function y$R(t4N,K56,l$X,u_1,E8t,W4Y){var v38,p1N,K3F,R8c,J$a,A$i,Z6N,b5_,X1C,P$E,f_S,f1N,q53,n3y,S0g,D7P,q2N,P8g,J1h,Q5i,v1f,h0g,N3V;function y2$(B$z){var x2n;if(!B$z){return null;}x2n=B$z[J$a];if(x2n && (x2n[A$i] || x2n[A$i] === +"0")){x2n=x2n[A$i];}if(E8t && E8t.getBasis){x2n+=E8t.getBasis(B$z,J$a,A$i);}if(!p1N.transformFunc || u_1 != p1N.yAxis){return x2n;}else if(B$z.transform && (J$a in B$z.transform)){x2n=B$z.transform[J$a];if(x2n && (x2n[A$i] || x2n[A$i] === 0)){x2n=x2n[A$i];}return x2n;}return p1N.transformFunc(this,p1N,x2n);}v38="-";v38+="-";v38+=">";p1N=this.chart;K3F=this.currentPanel;if(!u_1){u_1=K3F.yAxis;}R8c=l$X.split(v38);J$a=R8c[0];A$i=R8c[1];Z7f.W3G();if(!A$i){A$i="Close";}Z6N=p1N.dataSegment[B3J];q53=null;n3y=null;S0g=null;D7P=new Array(3);q2N=E8t && E8t.caches[W4Y];if(Z6N && q2N){P$E=q2N[B3J];q53=Z6N.tick;if(P$E || P$E === ("0" | 0)){D7P[0]=1;}for(P8g=B3J - 1;P8g >= 0;P8g--){if(q2N[P8g] || q2N[P8g] === 0){f_S=q2N[P8g];Z7f.O_b(88);n3y=Z7f.v$j(P8g,q53,B3J);D7P[1]=1;break;}}for(P8g=B3J + 1;P8g < p1N.dataSegment.length;P8g++){if(q2N[P8g] || q2N[P8g] === +"0"){f1N=q2N[P8g];Z7f.s$9(88);S0g=Z7f.V9a(P8g,q53,B3J);D7P[2]=1;break;}}}if(n3y === null){b5_=this.getPreviousBar.call(this,p1N,l$X,B3J);if(b5_){n3y=b5_.tick;f_S=y2$(b5_);}}if(S0g === null){X1C=this.getNextBar.call(this,p1N,l$X,B3J);if(X1C){S0g=X1C.tick;f1N=y2$(X1C);}}if(n3y === null && S0g === null){return !"1";}if(!q2N){P$E=y2$(Z6N);f_S=y2$(b5_);f1N=y2$(X1C);q53=Z6N.tick;if(b5_){n3y=b5_.tick;}if(X1C){S0g=X1C.tick;}}if(!f_S && f_S !== "0" * 1){f_S=0;n3y=0;}if(!f1N && f1N !== 0){if(P$E || P$E === "0" - 0){f1N=P$E;D7P[2]=D7P[+"0"];}else {f1N=f_S;Z7f.s$9(39);D7P[Z7f.V9a("2",0)]=D7P[1];}if(W4Y && p1N.series[W4Y].parameters.extendToEndOfDataSet){Z7f.s$9(23);var g4x=Z7f.v$j(3,2);S0g=p1N.dataSet.length - g4x;}else {S0g=n3y;}}if(!P$E && P$E !== 0){P$E=f1N;q53=S0g;D7P[0]=D7P[2];if(f_S === 0 && n3y === 0){f_S=P$E;n3y=q53;D7P[1]=D7P[0];}}J1h=this.pixelFromTransformedValue.bind(this);Q5i=this.valueFromPixel.bind(this);P$E=Q5i(D7P[0]?P$E:J1h(P$E,K3F,u_1),K3F);f_S=Q5i(D7P["1" ^ 0]?f_S:J1h(f_S,K3F,u_1),K3F);f1N=Q5i(D7P[2]?f1N:J1h(f1N,K3F,u_1),K3F);v1f=O3f.convertBoxToPixels(this,K3F.name,K56);h0g=O3f.convertBoxToPixels(this,K3F.name,{x0:n3y,y0:f_S,x1:q53,y1:P$E});N3V=O3f.convertBoxToPixels(this,K3F.name,{x0:q53,y0:P$E,x1:S0g,y1:f1N});if(O3f.boxIntersects(v1f.x0,v1f.y0,v1f.x1,v1f.y1,h0g.x0,h0g.y0,h0g.x1,h0g.y1,"segment") || O3f.boxIntersects(v1f.x0,v1f.y0,v1f.x1,v1f.y1,N3V.x0,N3V.y0,N3V.x1,N3V.y1,"segment")){return !!({});}return !!0;}for(u$d=0;u$d < E_l.length;u$d++){if(g$f == E_l[u$d] && !D8F)continue;if(E_l[u$d].highlight){D$e=!![];}E_l[u$d].highlight=![];}for(J9M=0;y7H && J9M < y7H.length;J9M++){g36=y7H[J9M];X1g=g36.params.box;if(!X1g)continue;if(g36.params.panelName !== this.currentPanel.name)continue;H3z=O3f.convertBoxToPixels(this,this.currentPanel.name,b45);if(O3f.boxIntersects(H3z.x0,H3z.y0,H3z.x1,H3z.y1,X1g.x0,X1g.y0,X1g.x1,X1g.y1)){this.activeMarker=g36;g36.highlight=!!"1";this.markerHelper.highlighted.push(g36);}if(g36.prev != g36.highlight){D$e=!!({});}}if(D$e){this.draw();y1i.panel=J0a;if(this.anyHighlighted && !this.grabStartYAxis){y1i.panel=J0a;}else {y1i={};}this.displaySticky(y1i);this.clearMeasure();if(z6T){z6T.measure();}}if((u0s === !0 || u0s && u0s.yaxis) && w8L && !w8L.noDraw){this.anyHighlight=!!({});t0W=w8L;}if(!this.anyHighlighted){this.setMeasure();}if(t0W && !J0a.noDrag){H5C="stx-d";H5C+="raggab";H5C+="le";if(this.longHoldTookEffect && !this.cancelLongHold){if(t0W.params){if(t0W.params.dependentOf){t0W=W69.seriesRenderers[t0W.params.dependentOf];t0W.params.highlight=!0;}for(u$d in W69.seriesRenderers){if(W69.seriesRenderers[u$d].params.dependentOf == t0W.params.name){W69.seriesRenderers[u$d].params.highlight=!!1;}}}this.highlightedDraggable=t0W;if(t0W.getDependents){J$G=t0W.getDependents(this,!!({}));for(u$d in this.overlays){s5$=this.overlays[u$d];if(J$G.indexOf(s5$) > -("1" * 1)){s5$.highlight=!!({});}}}}this.container.classList.add(H5C);}else {O9N=-333451783;m40=-1204407705;n7D=2;for(var R4Q=+"1";Z7f.l5h(R4Q.toString(),R4Q.toString().length,96758) !== O9N;R4Q++){y__="stx-";y__+="dra";y__+="gga";y__+="ble";this.container.classList.remove(y__);n7D+=2;}if(Z7f.m6F(n7D.toString(),n7D.toString().length,8656) !== m40){this.container.classList.remove("");}}this.highlightedDataSetField=this.adjustHighlightedDataSetField(this.highlightedDataSetField);this.displayDrawOK();};O3f.ChartEngine.prototype.rightClickHighlighted=function(){var n5N;n5N="rightClic";n5N+="kHighli";n5N+="gh";n5N+="ted";if(this.runPrepend("rightClickHighlighted",arguments)){return;}this.deleteHighlighted(!!"1");Z7f.W3G();this.runAppend(n5N,arguments);};O3f.ChartEngine.prototype.deleteHighlighted=function(N9r,V3D){var V0W,F0n,k6w,I62,f$8,Y9P,D_b,S_k,i_S,A5_,t7W,g_y,h0o;V0W="deleteH";V0W+="ighlighte";V0W+="d";if(this.runPrepend(V0W,arguments)){return;}this.cancelTouchSingleClick=!!"1";O3f.clearCanvas(this.chart.tempCanvas,this);F0n=this.bypassRightClick === !!0;if(F0n || !this.bypassRightClick.drawing){for(var V77=this.drawingObjects.length - 1;V77 >= 0;V77--){k6w=this.drawingObjects[V77];if(!k6w.highlighted)continue;if(N9r){this.rightClickDrawing(k6w,V3D);}else if(!k6w.permanent){I62=k6w.abort();if(!I62){f$8=this.exportDrawings();this.drawingObjects.splice(V77,1);this.undoStamp(f$8,this.exportDrawings());}this.changeOccurred("vector");}}}if(F0n || !this.bypassRightClick.study){for(var u9R in this.overlays){Y9P=this.overlays[u9R];if((Y9P.overlay || Y9P.underlay) && Y9P.highlight && !Y9P.permanent){if(N9r || V3D){this.rightClickOverlay(u9R,V3D);}else {this.removeOverlay(u9R);}}}}D_b=this.currentPanel.chart;if(F0n || !this.bypassRightClick.series){for(var E5g in D_b.seriesRenderers){S_k=D_b.seriesRenderers[E5g];if(S_k.params.highlightable){i_S=this.panels[S_k.params.panel];A5_=i_S && i_S.yAxis.name;for(var J6O=S_k.seriesParams.length - 1;J6O >= 0;J6O--){t7W=S_k.seriesParams[J6O];if((S_k.params.highlight || t7W.highlight) && !t7W.permanent){S_k.removeSeries(t7W.id);if(S_k.seriesParams.length < 1){this.removeSeriesRenderer(S_k);if(S_k.params.name == A5_){this.electNewPanelOwner(S_k.params.panel);}else {this.checkForEmptyPanel(S_k.params.panel);g_y=this.getYAxisByName(i_S,S_k.params.name);if(g_y){g_y.name=g_y.studies[0] || g_y.renderers["1" - 0];}}}}}}}}this.draw();this.resizeChart();this.clearMeasure();h0o=this.controls.mSticky;if(h0o){h0o.style.display="none";h0o.children[0].innerHTML="";}this.runAppend("deleteHighlighted",arguments);};O3f.ChartEngine.prototype.displayDragOK=function(N4E){var W2w,N9O,q9H,g1o,a8f,W6t,w0N,f4Q,V9u,t2$,m6I,x6u,y_E,t7Y,N3e;W2w=this.controls.dragOk;function L4m(x$m){var X5N,s1M,T7I,J$Y,Q6p;Z7f.W3G();X5N=".";X5N+="field";s1M="t";s1M+="ex";s1M+="t";T7I=".fi";T7I+="el";T7I+="d";J$Y=this.translateIf(x$m.querySelector(T7I).getAttribute(s1M));Q6p=this.whichYAxis(this.whichPanel(this.cy),this.cx,this.cy);if(Q6p && Q6p.dropzone == "all"){J$Y+="-->" + this.translateIf(Q6p.name);}x$m.querySelector(X5N).innerHTML=J$Y;}if(W2w){if(!N4E){if(!this.tapForHighlighting || !this.touchingEvent || this.anyHighlighted){this.findHighlights(this.highlightViaTap);};}N9O=this.highlightedDraggable;q9H=N9O && N9O.undraggable && N9O.undraggable(this);g1o=this.cx;a8f=this.cy;if(!N4E){if(N9O && !q9H && this.longHoldTookEffect && !this.cancelLongHold){W6t="stx-dr";W6t+="ag-ser";W6t+="ies";w0N="s";w0N+="tx-";w0N+="drag-axis";f4Q="s";f4Q+="tx-drag-chart";V9u=N9O.inputs && N9O.inputs.display || N9O.params && (N9O.params.display || N9O.params.name) || N9O.name;W2w.querySelector(".field").setAttribute("text",V9u);L4m.call(this,W2w);W2w.style.display="inline-block";this.draw();this.displaySticky();if(this.grabStartYAxis){this.container.classList.replace(f4Q,w0N);}else {this.container.classList.replace("stx-drag-chart",W6t);}}else {W2w.style.display="none";this.draw();this.container.classList.remove("stx-drag-series");this.container.classList.remove("stx-drag-axis");for(var B0F in this.panels){t2$="a";t2$+="ll";m6I=this.panels[B0F].subholder.classList;m6I.remove("dropzone");m6I.remove(t2$);m6I.remove("left");m6I.remove("right");m6I.remove("top");m6I.remove("bottom");for(x6u=0;x6u < this.panels[B0F].yaxisLHS.length;x6u++){this.panels[B0F].yaxisLHS[x6u].dropzone=null;}for(x6u=0;x6u < this.panels[B0F].yaxisRHS.length;x6u++){this.panels[B0F].yaxisRHS[x6u].dropzone=null;}}}this.draw();}if(N9O){y_E="p";y_E+="x";t7Y=a8f + W2w.offsetHeight;N3e=Math.max(0,g1o - W2w.offsetWidth);Z7f.s$9(0);W2w.style.top=Z7f.v$j(t7Y,"px");Z7f.s$9(0);W2w.style.left=Z7f.v$j(N3e,y_E);L4m.call(this,W2w);}}};O3f.ChartEngine.prototype.displayDrawOK=function(){Z7f.W5N();var J6m,p9X,Y4Y,l9_,a42,h5e;J6m=this.controls.drawOk;if(J6m && O3f.Drawing){p9X=O3f.Drawing[this.currentVectorParameters.vectorType];if(p9X){p9X=new p9X();}if(this.highlightedDataSetField && p9X && p9X.getYValue){Y4Y=".f";Y4Y+="i";Y4Y+="e";Y4Y+="ld";l9_="in";l9_+="li";l9_+="ne-blo";l9_+="ck";J6m.style.display=l9_;a42=this.cy + J6m.offsetHeight;h5e=this.cx - J6m.offsetWidth;Z7f.s$9(0);J6m.style.top=Z7f.v$j(a42,"px");Z7f.s$9(0);J6m.style.left=Z7f.v$j(h5e,"px");J6m.querySelector(Y4Y).innerHTML=this.translateIf(this.highlightedDataSetField);}else {J6m.style.display="none";}}};O3f.ChartEngine.prototype.mouseWheel=function(L5g){var N7C,T1Z,r6w,a6K,s$5,x40,s0o,J5Z,K0F;N7C="mouseWhee";N7C+="l";if(this.runPrepend("mouseWheel",arguments)){return;}if(L5g.preventDefault){L5g.preventDefault();}if(this.openDialog !== ""){return;}T1Z=L5g.deltaX;r6w=L5g.deltaY;if(Math.abs(r6w) > Math.abs(T1Z)){T1Z=0;}else {r6w=0;}this.lastMouseWheelEvent=Date.now();if(Math.abs(T1Z) === 0 && Math.abs(r6w) === "0" * 1){return;}if(this.allowSideswipe && T1Z !== 0){this.lastMove="horizontal";a6K=T1Z;if(a6K > 50){a6K=50;}if(a6K < -50){a6K=-50;}this.grabbingScreen=!![];if(!this.currentPanel){this.currentPanel=this.chart.panel;}this.grabStartX=O3f.ChartEngine.crosshairX;this.grabStartY=O3f.ChartEngine.crosshairY;this.grabStartScrollX=this.chart.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartMicropixels=this.micropixels;this.grabStartPanel=this.currentPanel;this.mousemoveinner(O3f.ChartEngine.crosshairX - a6K,O3f.ChartEngine.crosshairY);this.updateChartAccessories();this.grabbingScreen=!!"";return;}this.lastMove="vertical";if(!this.allowZoom){return;}if(!this.displayInitialized){return;}if(!r6w){s$5="mous";s$5+="ew";s$5+="h";s$5+="eel";if(O3f.wheelEvent == s$5){Z7f.s$9(23);var k13=Z7f.V9a(4,5);Z7f.s$9(89);var i0$=Z7f.V9a(4,13,17,39);r6w=k13 / i0$ * L5g.wheelDelta;if(L5g.wheelDeltaX){Z7f.s$9(1);var M4W=Z7f.V9a(20,19);Z7f.s$9(0);var y_X=Z7f.v$j(27,13);T1Z=M4W / y_X * L5g.wheelDeltaX;}}else {r6w=L5g.detail;}}if(typeof L5g.deltaMode == "undefined"){L5g.deltaMode=L5g.type == "MozMousePixelScroll"?0:1;}x40=-r6w;if(L5g.deltaMode == 1){x40*=33;}s0o=null;J5Z=null;if(this.mouseWheelAcceleration){K0F=Math.max(Math.pow(Math.abs(x40),"0.3" * 1),+"1");Z7f.s$9(90);s0o=Z7f.V9a(K0F,0.1,1);Z7f.O_b(46);J5Z=Z7f.V9a(0.2,1,K0F);}this.zoomInitiatedByMouseWheel=!!1;if(x40 > 0){if(this.reverseMouseWheel){this.zoomOut(null,J5Z);}else {this.zoomIn(null,s0o);}}else if(x40 < 0){if(this.reverseMouseWheel){this.zoomIn(null,s0o);}else {this.zoomOut(null,J5Z);}}if(this.runAppend(N7C,arguments)){return;}return ![];};O3f.ChartEngine.handleContextMenu=function(d0P){var d85;for(var u4U=0;u4U < O3f.ChartEngine.registeredContainers.length;u4U++){d85=O3f.ChartEngine.registeredContainers[u4U].stx;if(d85){if(d85.anyHighlighted){if(d0P.preventDefault){d0P.preventDefault();}return !!"";}}}};if(typeof document != Q34){document.addEventListener(n2V,O3f.ChartEngine.handleContextMenu);}O3f.ChartEngine.htmlControls={annotationSave:'',annotationCancel:s69,mSticky:e9u,drawOk:J3z,dragOk:F44,crossX:'',crossY:'',chartControls:'',home:'',floatDate:'',handleTemplate:' ',iconsTemplate:'
',baselineHandle:'',notificationTray:'
'};O3f.ChartEngine.prototype.registerChartControl=function(a0o,Q$C,X6s){var i9F,k1H,L4F,s_l;i9F=this.controls;if(!i9F || !i9F.chartControls){return;}if(i9F.chartControls.querySelector("." + a0o)){return;}k1H=null;L4F=i9F.chartControls.querySelector(".stx-zoom-in");if(L4F){s_l="s";s_l+="p";s_l+="a";s_l+="n";k1H=document.createElement(s_l);Z7f.O_b(35);k1H.innerHTML=Z7f.V9a(Q$C,"",'');Z7f.s$9(0);k1H.className=Z7f.V9a("stx-chart-control-button ",a0o);L4F.parentNode.appendChild(k1H);if(X6s){O3f.safeClickTouch(k1H,X6s);}if(!O3f.touchDevice){this.makeModal(k1H);}return k1H;}};O3f.ChartEngine.prototype.zoomOut=function(n09,t6c){var y9S,q2w,M$z,w0t,c8T;y9S="zo";Z7f.W5N();y9S+="omOut";if(this.runPrepend(y9S,arguments)){return;}if(this.preferences.zoomOutSpeed){t6c=this.preferences.zoomOutSpeed;}else if(!t6c){Z7f.s$9(9);t6c=Z7f.v$j(1,0.7);}if(n09 && n09.preventDefault){n09.preventDefault();}this.cancelTouchSingleClick=!![];q2w=this;for(var Z0T in this.charts){M$z=this.charts[Z0T];w0t=M$z.width * t6c / this.layout.candleWidth;if(M$z.allowScrollFuture === ![] && M$z.allowScrollPast === !({}) && w0t > M$z.dataSet.length){w0t=M$z.dataSet.length;}c8T=this.chart.width / w0t;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(s9N(M$z),this.layout.candleWidth,c8T);}function s9N(I6n){Z7f.W3G();return function(s$K){var U96;q2w.zoomSet(s$K,I6n);if(q2w.animations.zoom.hasCompleted){U96="la";U96+="yout";if(q2w.runAppend("zoomOut",arguments)){return;}q2w.changeOccurred(U96);if(q2w.continuousZoom){q2w.continuousZoom.execute(!!"1");}}};}};O3f.ChartEngine.prototype.zoomIn=function(S0q,q3r){var B1n,S0P,Q9t,L2c,n_s;B1n="zo";B1n+="o";B1n+="m";B1n+="In";if(this.runPrepend(B1n,arguments)){return;}if(this.preferences.zoomInSpeed){q3r=this.preferences.zoomInSpeed;}else if(!q3r){q3r=0.7;}if(S0q && S0q.preventDefault){S0q.preventDefault();}this.cancelTouchSingleClick=!0;S0P=this;for(var a4N in this.charts){Q9t=this.charts[a4N];L2c=Q9t.width * q3r / this.layout.candleWidth;if(Q9t.maxTicks - L2c < 1){Z7f.O_b(1);var y3U=Z7f.v$j(19,20);L2c=Q9t.maxTicks - y3U;}if(L2c < this.minimumZoomTicks){L2c=this.minimumZoomTicks;}n_s=this.chart.width / L2c;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(C5l(Q9t),this.layout.candleWidth,n_s);}function C5l(j6z){return function(p4o){var c7c;S0P.zoomSet(p4o,j6z);Z7f.W5N();if(S0P.animations.zoom.hasCompleted){c7c="z";c7c+="o";c7c+="o";c7c+="mIn";if(S0P.runAppend(c7c,arguments)){return;}S0P.changeOccurred("layout");if(S0P.continuousZoom){S0P.continuousZoom.execute();}}};}};O3f.ChartEngine.prototype.createCrosshairs=function(){var g34,U83;if(this.runPrepend("createCrosshairs",arguments)){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}g34=this.controls.crossX;U83=this.controls.crossY;if(g34){if(!g34.onmousedown){g34.onmousedown=function(n_F){if(n_F.preventDefault){n_F.preventDefault();}return !!"";};}}if(U83){if(!U83.onmousedown){U83.onmousedown=function(V0A){Z7f.W3G();if(V0A.preventDefault){V0A.preventDefault();}return !"1";};}}this.runAppend("createCrosshairs",arguments);};J0h=!!"";O3f.ChartEngine.prototype.mousemoveinner=O3f.ChartEngine.prototype.mousemoveinner || (function(Q$l,U2r){if(!J0h){console.error("interaction feature requires activating movement feature.");}Z7f.W3G();J0h=!![];});};V=Q5o=>{var b$6=i6UVR;var a8d,b4N;a8d="u";b$6.W3G();a8d+="n";a8d+="d";a8d+="efined";b4N=typeof _CIQ !== a8d?_CIQ:Q5o.CIQ;if(!b4N.Marker){b4N.ChartEngine.helpersToRegister.push(function(b1D){b$6.W3G();b1D.markerHelper={chartMap:{},classMap:{},domMarkers:[],highlighted:[]};});b4N.ChartEngine.prototype.addToHolder=function(N9p){var W4z,z0c,T5R,s2g;W4z=this.panels[N9p.params.panelName];b$6.W3G();if(!W4z){return;}z0c=N9p.params;T5R=N9p.node;s2g=N9p.stxNodeCreator;if(s2g && s2g.prepareForHolder){T5R=s2g.prepareForHolder(N9p);}if(z0c.chartContainer){this.container.appendChild(N9p.node);}else if(z0c.includeAxis){W4z.holder.appendChild(N9p.node);}else {W4z.subholder.appendChild(T5R);}N9p.chart=W4z.chart;if(s2g && s2g.addToHolder){s2g.addToHolder(N9p);}if(s2g && s2g.expand){b4N.Marker.initializeScrollBehavior(s2g);}};b4N.ChartEngine.prototype.getMarkerArray=function(k4H,I3F){var z2I,o8w;z2I=[];for(var h6u in this.markers){for(var t5d=0;t5d < this.markers[h6u].length;t5d++){o8w=this.markers[h6u][t5d];if(k4H == "panelName"){if(o8w.params.panelName == I3F){z2I.push(o8w);}}else if(k4H == "label"){if(h6u == I3F){z2I.push(o8w);}}else if(k4H == "all"){z2I.push(o8w);}}}return z2I;};b4N.ChartEngine.prototype.removeFromHolder=function(S$G){var D$H,F6y,D7g,W5C,T6x,o5J;D$H=this.panels[S$G.params.panelName];if(D$H){if(S$G.node.parentNode == D$H.holder){D$H.holder.removeChild(S$G.node);}else if(S$G.node.parentNode == D$H.subholder){D$H.subholder.removeChild(S$G.node);}else if(S$G.node.parentNode == this.container){this.container.removeChild(S$G.node);}}F6y=this.markers[S$G.params.label];if(!F6y){return;}b$6.W5N();for(D7g=0;D7g < F6y.length;D7g++){if(F6y[D7g] === S$G){F6y.splice(D7g,1);break;}}W5C=this.markerHelper.chartMap[S$G.chart.name];if(W5C){for(D7g="0" | 0;D7g < W5C.markers.length;D7g++){if(W5C.markers[D7g] === S$G){W5C.markers.splice(D7g,1);break;}}}T6x=this.markerHelper.classMap[S$G.className];if(T6x){o5J=T6x[S$G.params.panelName];if(o5J){for(D7g=0;D7g < o5J.length;D7g++){if(o5J[D7g] === S$G){o5J.splice(D7g,1);break;}}}}};b4N.ChartEngine.prototype.moveMarkers=function(E3G,S3w){var q4U,w7k;q4U=this.getMarkerArray("panelName",E3G);for(var e2a=0;e2a < q4U.length;e2a++){q4U[e2a].params.panelName=S3w;}for(var g5b in this.markerHelper.classMap){w7k=this.markerHelper.classMap[g5b][E3G];if(w7k){this.markerHelper.classMap[g5b][S3w]=w7k;delete this.markerHelper.classMap[g5b][E3G];}}};b4N.ChartEngine.prototype.establishMarkerTicks=function(){var i2P,E1z;i2P=this.markerHelper.chartMap;b$6.W3G();for(var w8o in i2P){E1z=i2P[w8o];if(E1z.dataSetLength == this.charts[w8o].dataSet.length)continue;for(var J6l="0" >> 64;J6l < E1z.markers.length;J6l++){this.setMarkerTick(E1z.markers[J6l]);}}};b4N.ChartEngine.prototype.futureTickIfDisplayed=function(b_P){var l81,I2v,x26,Q7U,B4b,D0F,H$$,X1p,N9w;l81=b_P.chart;if(l81.dataSet.length < 1){return;}I2v=l81.xaxis[l81.xaxis.length - 1].DT;b$6.O_b(33);var v4v=b$6.v$j(59994,12,6);I2v=new Date(I2v.getTime() - this.timeZoneOffset * v4v);if(b_P.params.x > I2v){return;}x26=l81.maxTicks - l81.dataSegment.length;Q7U=l81.dataSet.length + x26;H$$=new Date(+l81.dataSet[l81.dataSet.length - 1].DT);b$6.W3G();X1p=this.standardMarketIterator(H$$,null,l81);N9w=b_P.params.x.getTime();for(var A1G=l81.dataSet.length;A1G < Q7U;A1G++){B4b=H$$.getTime();H$$=X1p.next();D0F=H$$.getTime();if(D0F == N9w){b_P.tick=A1G;return;}else if(D0F > N9w && B4b < N9w){b$6.O_b(1);b_P.tick=Math.max(b$6.v$j(1,A1G),0);return;}}};b4N.ChartEngine.prototype.setMarkerTick=function(b9W){var Z2$,x1N,L6N,J95,J_7,K2a,a1h;Z2$="mast";Z2$+="er";x1N=b9W.chart;if(b9W.params.xPositioner == Z2$ && b9W.params.x){b9W.tick=Math.floor(b9W.params.x / this.layout.periodicity);return;}else if(b9W.params.xPositioner == "date" && b9W.params.x){J_7=b9W.params.x.getTime();for(var B60=0;B60 < x1N.dataSet.length;B60++){K2a=x1N.dataSet[B60];J95=K2a.DT.getTime();L6N=J95;if(B60 > "0" >> 32){L6N=x1N.dataSet[B60 - 1].DT.getTime();}if(J95 == J_7){b9W.tick=B60;return;}else if(J95 > J_7 && L6N < J_7){b$6.O_b(1);b9W.tick=Math.max(b$6.V9a(1,B60),b$6.V9a(0,"0"));return;}else if(J_7 < J95){b9W.tick=null;return;}}if(x1N.dataSet.length < 1){return;}a1h=new Date(+x1N.dataSet[B60 - "1" * 1].DT);if(a1h.getTime() < J_7){b9W.params.future=!!({});}b9W.tick=null;;}};b4N.ChartEngine.prototype.positionMarkers=function(){var L$X,M15,n2b,g7g,G8J,m3v,d1J,x2$;L$X="ti";b$6.W5N();L$X+="c";L$X+="k";M15=this;n2b=this.chart;function Z0l(){b$6.W5N();var w0v,a8R,v16,S0c;if(M15.runPrepend("positionMarkers",arguments)){return;}M15.markerTimeout=null;for(var U6c in M15.markerHelper.classMap){for(var L$q in M15.markerHelper.classMap[U6c]){w0v=M15.markerHelper.classMap[U6c][L$q];a8R=M15.panels[L$q];if(w0v.length){v16={stx:M15,arr:w0v,panel:a8R};v16.firstTick=a8R.chart.dataSet.length - a8R.chart.scroll;v16.lastTick=v16.firstTick + a8R.chart.dataSegment.length;S0c=w0v[0].constructor.placementFunction;if(S0c){S0c(v16);}else {M15.defaultMarkerPlacement(v16);}}}}M15.runAppend("positionMarkers",arguments);}if(!M15.markerHelper){return;}if(this.markerDelay || this.markerDelay === 0){if(!this.markerTimeout){this.markerTimeout=setTimeout(Z0l,this.markerDelay);}}else {Z0l();}g7g=this.getFirstLastDataRecord(n2b.dataSegment,"tick");G8J=this.getFirstLastDataRecord(n2b.dataSegment,L$X,!!"1");if(!g7g || !G8J){return;}m3v=this.getMarkerArray("all");for(var Z4k=0;Z4k < m3v.length;Z4k++){d1J=m3v[Z4k];x2$=d1J.stxNodeCreator;if(g7g.tick <= d1J.tick && d1J.tick <= G8J.tick){if(x2$ && x2$.drawMarker){x2$.drawMarker(d1J);}}else if(d1J.attached && x2$.expand){x2$.expand.style.visibility="hidden";}}};b4N.Marker=b4N.Marker || (function(I58){var S6E,k0$,n0B,s9C,P3R,j5I;S6E="da";S6E+="t";S6E+="e";this.params={xPositioner:S6E,yPositioner:"value",panelName:"chart",permanent:!({}),label:"generic",includeAxis:!({})};b4N.extend(this.params,I58);if(!this.params.node){this.params.node=document.createElement("DIV");}k0$=this.params.stx;b$6.W5N();if(!k0$){console.log("Marker created without specifying stx");return;}if(!this.className){this.className="CIQ.Marker";}if(b4N.derivedFrom(this.params.node,b4N.Marker.NodeCreator)){this.stxNodeCreator=this.params.node;this.node=this.stxNodeCreator.node;}else {this.node=this.params.node;}n0B=this.params.label;if(!k0$.markers[n0B]){k0$.markers[n0B]=[];}k0$.markers[n0B].push(this);s9C=k0$.panels[this.params.panelName];this.chart=s9C.chart;if(!k0$.markerHelper.chartMap[this.chart.name]){k0$.markerHelper.chartMap[this.chart.name]={dataSetLength:0,markers:[]};}k0$.markerHelper.chartMap[this.chart.name].markers.push(this);P3R=k0$.markerHelper.classMap[this.className];if(!P3R){P3R=k0$.markerHelper.classMap[this.className]={};}if(!P3R[this.params.panelName]){P3R[this.params.panelName]=[];}P3R[this.params.panelName].push(this);j5I=this.stxNodeCreator && this.stxNodeCreator.deferAttach;if(!j5I){k0$.addToHolder(this);}k0$.setMarkerTick(this);if(this.stxNodeCreator && this.stxNodeCreator.drawMarker){this.stxNodeCreator.drawMarker(this);}});b4N.Marker.prototype.remove=function(){b$6.W5N();this.params.stx.removeFromHolder(this);};b4N.Marker.prototype.click=function(a5q){var q$d;if(typeof arguments["0" | 0] === "number"){a5q={cx:arguments[0],cy:arguments["1" - 0],panel:arguments["3" * 1]};}var {cx:D96, cy:s2j, panel:T5$}=a5q;if(!this.params.stx){return;}q$d=this.params.node;if(q$d.click){q$d.click(D96,s2j,this,T5$);}};b4N.Marker.prototype.doubleClick=function({cx:F4X, cy:N73, panel:Z6B}){return ![];};b4N.Marker.prototype.render=function(){var i4O,S2d;b$6.W3G();i4O=[this];S2d={stx:this.params.stx,arr:i4O,panel:this.params.stx.panels[this.params.panelName],showClass:this.showClass};this.constructor.placementFunction(S2d);};b4N.Marker.removeByLabel=function(b$q,z8p){var X0u,b$k;X0u=b$q.getMarkerArray("label",z8p);for(var k2h="0" * 1;k2h < X0u.length;k2h++){b$k=X0u[k2h];b$q.removeFromHolder(b$k);if(b$k.stxNodeCreator && b$k.stxNodeCreator.remove){b$k.stxNodeCreator.remove(b$k);}}b$q.draw();};b4N.Marker.positionContentVerticalAndHorizontal=function(c1W){var w8n,o1$,d2z,p2t,L9D,W4B,v2T,i2T,e4h,n1g,G8L,z1d;w8n=c1W.querySelectorAll(".stx-marker-expand")[0];if(!w8n || !b4N.trulyVisible(w8n)){return;}o1$=w8n.offsetHeight;d2z=w8n.style;d2z.left=d2z.right="";d2z.bottom=d2z.top="";p2t=getComputedStyle(w8n);L9D=p2t.left;b$6.W5N();W4B=p2t.bottom;v2T=c1W.offsetLeft + parseInt(L9D,+"10");i2T=parseInt(W4B,10);e4h=c1W.offsetTop - (i2T + o1$ - c1W.offsetHeight);n1g=c1W.parentNode.offsetWidth;G8L=c1W.parentNode.offsetHeight;if(v2T + w8n.offsetWidth > n1g){d2z.right=L9D;d2z.left="auto";}if(c1W.offsetTop <= G8L){if(e4h > G8L - o1$){d2z.top=G8L - c1W.offsetTop - o1$ + "px";d2z.bottom="auto";}}else {b$6.s$9(0);d2z.top=b$6.v$j(G8L,"px");}if(c1W.offsetTop + c1W.offsetHeight >= +"0"){if(e4h < 0){d2z.top=-c1W.offsetTop + "px";d2z.bottom="auto";}}else {z1d="0";z1d+="p";z1d+="x";d2z.bottom=z1d;}};b4N.Marker.initializeScrollBehavior=function(P1w){var {expand:O24}=P1w;if(!O24){return;}O24.addEventListener(b4N.wheelEvent,k0u=>{return k0u.stopPropagation();});var {scrollbarStyling:a$K}=b4N.UI || ({});if(a$K){a$K.refresh(O24);}else {O24.style.overflowY="scroll";}};b4N.ChartEngine.prototype.getBarBounds=function(k6V){var h3M,M33,Y2v,Z44,k5L,N8i,n3c;h3M="pa";h3M+="n";h3M+="d";h3M+="f";M33=this.layout.chartType;Y2v=this.layout.aggregationType;if(Y2v == h3M){Z44={high:Math.max(k6V.pfOpen,k6V.pfClose),low:Math.min(k6V.pfOpen,k6V.pfClose)};}else {Z44={high:k6V.High,low:k6V.Low};}if(k6V.markerHigh){Z44.high=k6V.markerHigh;}if(k6V.markerLow){Z44.low=k6V.markerLow;}if(k6V.Open === undefined){k5L=k6V.Close;}if(k6V.High === undefined){N8i=Math.max(k6V.Open || k5L,k6V.Close);}if(k6V.Low === undefined){n3c=Math.min(k6V.Open || k5L,k6V.Close);}if(!Z44.high && Z44.high !== 0){Z44.high=N8i;}if(!Z44.low && Z44.low !== 0){Z44.low=n3c;}return Z44;};b4N.ChartEngine.prototype.defaultMarkerPlacement=function(R0w){var W_3,o$w,o7N,b09,X06,x_a,J4u,A9g,k0F,h_c,J6k,M4x,l9U,T3u,a_E,f0d,U5a,A2C,T13,P6$,b7U,G1d,q8A,n7g,X_Q,E6D,e$i,y1p,R2a,q7P,x$$,y3$,F_7,w2y,q0g,w0s,L3m;W_3=R0w.panel;o$w=R0w.yAxis?R0w.yAxis:R0w.panel.yAxis;o7N=W_3.chart;b09=R0w.stx;X06=-1374508831;x_a=-455625996;J4u=2;for(var w4S="1" - 0;b$6.l5h(w4S.toString(),w4S.toString().length,+"5297") !== X06;w4S++){A9g=b09.chart.highLowBars;J4u+=+"2";}if(b$6.l5h(J4u.toString(),J4u.toString().length,73733) !== x_a){A9g=b09.chart.highLowBars;}k0F=o7N.defaultPlotField;if(!k0F || A9g){k0F="Close";}h_c={};for(var x27=0;x27 < R0w.arr.length;x27++){J6k="n";J6k+="o";J6k+="n";J6k+="e";M4x=R0w.arr[x27];l9U=M4x.params;if(M4x.params.box)continue;T3u=M4x.node;if(!M4x.clientWidth){M4x.clientWidth=T3u.clientWidth;}if(!M4x.clientHeight){M4x.clientHeight=T3u.clientHeight;}a_E=null;f0d=l9U.xPositioner;U5a=l9U.yPositioner;A2C=M4x.tick;T13=o7N.dataSet;P6$=M4x.clientWidth;if(f0d != J6k){if(f0d == "bar" && l9U.x){b7U="p";b7U+="x";if(l9U.x < o7N.xaxis.length){G1d=o7N.xaxis[l9U.x];if(G1d){a_E=G1d.data;}}b$6.O_b(91);var b05=b$6.V9a(11,0,22);b$6.O_b(1);var t5x=b$6.v$j(5,6);T3u.style.left=Math.round(b09.pixelFromBar(l9U.x,o7N) - P6$ / b05) + t5x + b7U;}else {if(!A2C && A2C !== 0){if(l9U.future && o7N.scroll < o7N.maxTicks){b09.futureTickIfDisplayed(M4x);A2C=M4x.tick;if(!A2C && A2C !== "0" * 1){q8A="-10";q8A+="00";q8A+="p";q8A+="x";T3u.style.left=q8A;continue;}}else {n7g="-1000p";n7g+="x";T3u.style.left=n7g;continue;}}if(A2C < T13.length){a_E=T13[A2C];}M4x.leftpx=Math.round(b09.pixelFromTick(A2C,o7N) - o7N.left - P6$ / 2);M4x.rightEdge=M4x.leftpx + P6$;T3u.style.left=M4x.leftpx + "px";if(A2C < R0w.firstTick && M4x.rightEdge < o7N.left - 50)continue;;}if(!a_E){b$6.s$9(56);var D8j=b$6.V9a(23,50,8,11,23);a_E=T13[T13.length - ("1" >> D8j)];};}else if(U5a.indexOf("candle") > -1){X_Q=getComputedStyle(T3u).left;if(X_Q){E6D=b09.barFromPixel(parseInt(X_Q,"10" ^ 0),o7N);if(E6D >= 0){a_E=o7N.xaxis[E6D].data;if(!a_E){b$6.s$9(49);var K52=b$6.v$j(1,8,1,4);a_E=T13[T13.length - K52];};}}}T3u.style.top="auto";e$i=l9U.y;y1p=M4x.clientHeight;if(U5a != "none"){q7P="va";q7P+="lue";b$6.O_b(67);var d8q=b$6.v$j(200,7,29,14);b$6.O_b(33);var I1M=b$6.v$j(449,4049,8);b$6.s$9(24);var J0s=b$6.V9a(17,11,31,8363);x$$=U5a + (d8q == (I1M,J0s)?!!1:"-") + T3u.style.left;y3$=l9U.chartContainer?b09.height:W_3.yAxis.bottom;F_7=0;w2y=0;if(typeof h_c[x$$] == "undefined"){h_c[x$$]=0;}w2y=h_c[x$$];h_c[x$$]+=y1p;if(U5a == q7P && (e$i || e$i === 0)){b$6.O_b(92);var I5L=b$6.V9a(174,8,12,14);F_7=Math.round(y3$ - b09.pixelFromPrice(e$i,W_3,o$w) - y1p / I5L) + "px";}else if((U5a == "below_candle" || U5a == "under_candle") && a_E){q0g="hi";q0g+="gh";R2a=a_E[k0F];if(A9g){R2a=b09.getBarBounds(a_E)[o$w.flipped?q0g:"low"];}F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) - y1p - w2y) + "px";}else if(U5a == "on_candle" && a_E){R2a=a_E[k0F];if(A9g){b$6.O_b(89);var y4a=b$6.v$j(48,12,6,86);R2a=(a_E.Low + a_E.High) / ("2" << y4a);}b$6.s$9(28);var Q3w=b$6.v$j(0,13,219,17);F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) - y1p / Q3w - w2y) + "px";}else if(U5a == "top"){F_7=Math.round(y3$ - y1p - w2y - W_3.top) + "px";}else if(U5a == "bottom"){w0s="p";w0s+="x";F_7=Math.round(w2y) + w0s;}else if(a_E){L3m="p";L3m+="x";R2a=a_E[k0F];if(A9g){R2a=b09.getBarBounds(a_E)[o$w.flipped?"low":"high"];}F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) + w2y) + L3m;}if(T3u.style.bottom != F_7){T3u.style.bottom=F_7;}}b4N.Marker.positionContentVerticalAndHorizontal(T3u);}};b4N.Marker.NodeCreator=function(){};b4N.Marker.NodeCreator.toNode=function(){b$6.W5N();return this.node;};b4N.Marker.Simple=function(y88){var I89,x6v,E4H,b0k,h_2,F8t,t0B,O7J,F_W,R3u;I89="Si";I89+="mpl";I89+="e";x6v="callo";x6v+="ut";E4H="stx";E4H+="-";E4H+="m";E4H+="arker";b0k=this.node=document.createElement("div");b0k.className=E4H;b0k.classList.add(y88.type);if(y88.category){b0k.classList.add(y88.category);}h_2=b4N.newChild(b0k,"div","stx-visual");b4N.newChild(b0k,"div","stx-stem");function j7x(){b4N.Marker.positionContentVerticalAndHorizontal(b0k);}if(y88.type == x6v){t0B="st";t0B+="x-mark";t0B+="er";t0B+="-expand";O7J="h";O7J+="4";F_W=b4N.newChild(h_2,"div","stx-marker-content");b4N.newChild(F_W,O7J,null,y88.headline);F8t=b4N.newChild(F_W,"div",t0B);b4N.newChild(F8t,"p",null,y88.story);}else {R3u="d";R3u+="i";R3u+="v";F8t=b4N.newChild(b0k,R3u,"stx-marker-expand");b4N.newChild(F8t,"h4",null,y88.headline);b4N.newChild(F8t,"p",null,y88.story);b4N.safeClickTouch(F8t,function(V0k){var L3c;L3c="h";L3c+="ighl";L3c+="i";L3c+="ght";b0k.classList.toggle(L3c);});}b4N.safeClickTouch(h_2,function(z2R){var K5O,Y_t,w7s,D_6;K5O="hig";K5O+="h";K5O+="li";K5O+="ght";b$6.s$9(29);Y_t=-b$6.V9a("1606267310",64);w7s=1903737154;D_6=2;for(var W7f=1;b$6.m6F(W7f.toString(),W7f.toString().length,40341) !== Y_t;W7f++){b0k.classList.toggle("");D_6+=2;}if(b$6.m6F(D_6.toString(),D_6.toString().length,29320) !== w7s){b0k.classList.toggle("");}b0k.classList.toggle(K5O);b$6.W3G();setTimeout(j7x,+"10");});this.nodeType=I89;this.expand=F8t;};b4N.inheritsFrom(b4N.Marker.Simple,b4N.Marker.NodeCreator,!1);}};M=a18=>{var R_S,D47,d4B,k8w,O5x,o0O,v85;R_S=typeof _CIQ !== "undefined"?_CIQ:a18.CIQ;D47=typeof _timezoneJS !== "undefined"?_timezoneJS:a18.timezoneJS;d4B=60000 * +"60";k8w=d4B * 24;O5x=R_S.Market;R_S.Market=function(s29){var D$Y,j5_;D$Y="unde";D$Y+="f";D$Y+="i";D$Y+="ned";this.market_def=!1;this.rules=!!"";this.normalHours=[];this.extraHours=[];this.class_name="Market";if(!D47.Date){this.tz_lib=Date;;}else {this.tz_lib=D47.Date;}this.market_tz="";this.hour_aligned=!({});this.convertOnDaily=![];this.enabled_by_default=!1;if(typeof s29 != D$Y && s29 && !R_S.isEmpty(s29)){j5_="und";j5_+="efined";if(s29.market_definition){s29=s29.market_definition;}if(s29.rules){this.rules=s29.rules;}if(s29.market_tz){this.market_tz=s29.market_tz;}if(s29.convertOnDaily){this.convertOnDaily=s29.convertOnDaily;}if(typeof s29.hour_aligned){this.hour_aligned=s29.hour_aligned;}if(typeof s29.beginningDayOfWeek !== "undefined"){this.beginningDayOfWeek=s29.beginningDayOfWeek;}if(typeof s29.enabled_by_default !== j5_){if(s29.enabled_by_default instanceof Array){this.enabled_by_default=s29.enabled_by_default;}}this.market_def=s29;if(this.market_def.name === undefined){this.market_def.name="no market name specified";}}else {return;}R_S.Market._createTimeSegments(this);this.getSessionNames();};R_S.Market.Symbology=function(){};R_S.Market.Symbology.isForeignSymbol=function(F_S){i6UVR.W5N();return ![];};R_S.Market.Symbology.isFuturesSymbol=function(p94){i6UVR.W5N();return !!0;};R_S.Market.Symbology.isRateSymbol=function(U_i){i6UVR.W5N();return !({});};R_S.Market.Symbology.isForexSymbol=function(U8k){i6UVR.W5N();return ![];};R_S.Market.Symbology.isForexMetal=function(P2g,w20){return ![];};R_S.Market.Symbology.isForexFuturesSymbol=function(A7n){i6UVR.W5N();if(R_S.Market.Symbology.isForexSymbol(A7n))return !![];if(R_S.Market.Symbology.isFuturesSymbol(A7n))return !!1;return !!0;};R_S.Market.Symbology.factory=function(q_T){i6UVR.W5N();return null;;};R_S.Market.Symbology.encodeTermStructureInstrumentSymbol=function(r7O,z9e){console.warn("You are trying to call `CIQ.Market.Symbology.encodeTermStructureInstrumentSymbol` but have not implemented it.");};if(O5x)R_S.extend(R_S.Market,O5x);R_S.Market.prototype.sessions=null;R_S.Market.prototype.beginningDayOfWeek="0" * 1;R_S.Market.prototype.getSessionNames=function(){var r9y,m7R;if(!this.rules){this.sessions=[];}else if(!this.sessions){r9y=[];m7R=[];this.rules.map(function(W_M){if(W_M.name && r9y.indexOf(W_M.name) === -1){r9y.push(W_M.name);m7R.push({name:W_M.name,enabled:W_M.enabled?W_M.enabled:!({})});}});this.sessions=m7R;}return this.sessions.slice();};R_S.Market.prototype._find_next_segment=function(A8Q,V7b){var T1P,n33,e6Q,O_Y;if(!this.market_def)return null;i6UVR.W3G();if(!this.rules)return null;T1P=new Date(+A8Q);n33=this.newIterator({begin:T1P,interval:+"1",inZone:this.market_tz,outZone:this.market_tz});if(this._wasOpenIntraDay(T1P)){e6Q=this.zseg_match.close_parts.hours;O_Y=this.zseg_match.close_parts.minutes;T1P.setHours(e6Q);T1P.setMinutes(O_Y);n33=this.newIterator({begin:T1P,interval:1,inZone:this.market_tz,outZone:this.market_tz});}return n33.next();};R_S.Market.prototype._find_prev_segment=function(B8v,C88){var I_k,S9M,b4E,W7I,L8V;if(!this.market_def)return null;if(!this.rules)return null;I_k=new Date(+B8v);S9M=this.newIterator({begin:I_k,interval:1,inZone:this.market_tz,outZone:this.market_tz});b4E=this._wasOpenIntraDay(I_k);if(b4E === null){I_k=new Date(I_k - 60000);b4E=this._wasOpenIntraDay(I_k);}else {if(C88 && I_k.getHours() === this.zseg_match.open_parts.hours && I_k.getMinutes() === this.zseg_match.open_parts.minutes || !C88 && I_k.getHours() === this.zseg_match.close_parts.hours && I_k.getMinutes() === this.zseg_match.close_parts.minutes){I_k=S9M.previous();}}if(b4E){W7I=this.zseg_match.open_parts.hours;L8V=this.zseg_match.open_parts.minutes;I_k.setHours(W7I);I_k.setMinutes(L8V);S9M=this.newIterator({begin:I_k,interval:1,inZone:this.market_tz,outZone:this.market_tz});I_k=S9M.previous();if(this.zseg_match.close_parts.hours === W7I){if(this.zseg_match.close_parts.minutes === L8V){if(C88){return S9M.next();}return I_k;}}if(this.zseg_match.adjacent_child){return I_k;}if(C88){return S9M.next();}return I_k;}return S9M.previous();};R_S.Market.prototype.disableSession=function(N_u,d_9){i6UVR.W5N();var I4l;I4l=!!0;if(typeof d_9 !== "undefined" && d_9){I4l=!!1;}if(N_u){for(var r8J=0;r8J < this.normalHours.length;r8J++){if(this.normalHours[r8J].name === N_u){this.normalHours[r8J].enabled=I4l;}}for(r8J=0;r8J < this.extraHours.length;r8J++){if(this.extraHours[r8J].name === N_u){this.extraHours[r8J].enabled=I4l;}}}};R_S.Market.prototype.enableSession=function(U9l){this.disableSession(U9l,"enable_instead");};R_S.Market.prototype.enableAllAvailableSessions=function(){var x_T;x_T=this.getSessionNames();for(var y23=0;y23 < x_T.length;y23++){this.enableSession(x_T[y23].name);}};R_S.Market.prototype.getClose=function(Q7q,S5p,L7R,P0r){var I4D,b5k;if(!this.market_def)return null;if(!this.rules)return null;I4D=Q7q;if(!Q7q){I4D=new Date();L7R=null;;}I4D=this._convertToMarketTZ(I4D,L7R);if(typeof S5p !== "undefined"){if(this._wasOpenIntraDay(I4D)){if(this.zseg_match.name === S5p){I4D.setHours(this.zseg_match.close_parts.hours,this.zseg_match.close_parts.minutes,0,0);I4D=this._convertFromMarketTZ(I4D,P0r);return I4D;}}}else {if(this._wasOpenDaily(I4D)){b5k=this.zseg_match;while(b5k.child_){b5k=b5k.child_;}while(!b5k.enabled){b5k=b5k.parent_;}I4D.setHours(b5k.close_parts.hours,b5k.close_parts.minutes,0,0);I4D=this._convertFromMarketTZ(I4D,P0r);return I4D;}}return null;};R_S.Market.prototype.getNextClose=function(g_i,b7K,u1P){var d2O,Y2k,G5k,q5c;if(!this.market_def)return null;if(!this.rules)return null;d2O=g_i;if(!g_i){d2O=new Date();b7K=null;;}d2O=this._convertToMarketTZ(d2O,b7K);if(!this._wasOpenIntraDay(d2O)){Y2k=this.newIterator({begin:d2O,interval:+"1",inZone:this.market_tz,outZone:this.market_tz});d2O=Y2k.next();}G5k=d2O.getDate();q5c=this.zseg_match;while(q5c.adjacent_child){q5c=q5c.adjacent_child;G5k+=+"1";}d2O.setDate(G5k);d2O.setHours(q5c.close_parts.hours,q5c.close_parts.minutes,0,0);d2O=this._convertFromMarketTZ(d2O,u1P);return d2O;};R_S.Market.prototype.getNextOpen=function(I_O,w1R,t3$){var B7P;if(!this.market_def)return null;if(!this.rules)return null;B7P=I_O;if(!I_O){B7P=new Date();w1R=null;;}B7P=this._convertToMarketTZ(B7P,w1R);B7P=this._find_next_segment(B7P);i6UVR.W5N();if(this.zseg_match.adjacent_parent){B7P=this.getNextOpen(B7P,this.market_tz,this.market_tz);B7P=this._convertFromMarketTZ(B7P,t3$);return B7P;}B7P.setHours(this.zseg_match.open_parts.hours);B7P.setMinutes(this.zseg_match.open_parts.minutes);B7P=this._convertFromMarketTZ(B7P,t3$);return B7P;};R_S.Market.prototype.getOpen=function(y2a,c9f,o51,P6E){var u9Y,i21;i6UVR.W3G();if(!this.market_def)return null;if(!this.rules)return null;u9Y=y2a;if(!y2a){u9Y=new Date();o51=null;;}u9Y=this._convertToMarketTZ(u9Y,o51);if(typeof c9f !== "undefined"){if(this._wasOpenIntraDay(u9Y)){if(this.zseg_match.name == c9f){u9Y.setHours(this.zseg_match.open_parts.hours,this.zseg_match.open_parts.minutes,+"0",+"0");u9Y=this._convertFromMarketTZ(u9Y,P6E);return u9Y;}}}else {if(this._wasOpenDaily(u9Y)){i21=this.zseg_match;while(i21.parent_){i21=i21.parent_;}while(!i21.enabled){i21=i21.child_;}u9Y.setHours(i21.open_parts.hours,i21.open_parts.minutes,0,0);u9Y=this._convertFromMarketTZ(u9Y,P6E);return u9Y;}}return null;};R_S.Market.prototype.getNormalOpen=function(){var {market_def:X8y, rules:X$_}=this;if(!(X8y && X$_))return "00:00";if(X8y.normal_daily_open)return X8y.normal_daily_open;if(X8y.name === "FOREX")return "17:00";return X$_.find(({name:e8Z})=>!e8Z || e8Z === "").open;};R_S.Market.prototype.getNormalClose=function(){var v2D,r6N;v2D="F";v2D+="ORE";v2D+="X";r6N="24";r6N+=":00";var {market_def:f4n, rules:R43}=this;if(!(f4n && R43))return r6N;if(f4n.normal_daily_close)return f4n.normal_daily_close;if(f4n.name === v2D)return "17:00";return R43.filter(({dayofweek:Z24, name:G8f})=>Z24 && (!G8f || G8f === "")).pop().close;};R_S.Market.prototype.getPreviousClose=function(i$O,I2E,K7u){var u48;if(!this.market_def)return null;if(!this.rules)return null;u48=i$O;i6UVR.W3G();if(!i$O){u48=new Date();I2E=null;;}u48=this._convertToMarketTZ(u48,I2E);u48=this._find_prev_segment(u48,!!"");if(this.zseg_match.adjacent_child){return this.getPreviousClose(u48,this.market_tz,this.market_tz);}u48.setHours(this.zseg_match.close_parts.hours);u48.setMinutes(this.zseg_match.close_parts.minutes);u48=this._convertFromMarketTZ(u48,K7u);return u48;};R_S.Market.prototype.getPreviousOpen=function(a7A,N34,T0B){var L2f,L2L,o1g,P37;if(!this.market_def)return null;if(!this.rules)return null;L2f=a7A;if(!a7A){L2L=-1210630352;o1g=1855777835;P37=2;for(var z2i=1;i6UVR.l5h(z2i.toString(),z2i.toString().length,30769) !== L2L;z2i++){L2f=new Date();N34=1;P37+=2;}if(i6UVR.m6F(P37.toString(),P37.toString().length,"22567" - 0) !== o1g){L2f=new Date();N34=null;};}L2f=this._convertToMarketTZ(L2f,N34);L2f=this._find_prev_segment(L2f,!!"1");if(this.zseg_match.adjacent_parent){return this.getPreviousOpen(L2f,this.market_tz,this.market_tz);}L2f.setHours(this.zseg_match.open_parts.hours);L2f.setMinutes(this.zseg_match.open_parts.minutes);L2f=this._convertFromMarketTZ(L2f,T0B);return L2f;};R_S.Market.prototype.getSession=function(T80,Z8N){T80=this._convertToMarketTZ(T80,Z8N);i6UVR.W3G();if(this._wasOpenIntraDay(T80) && this.zseg_match){return this.zseg_match.name;}return null;};R_S.Market.prototype.marketZoneNow=function(){i6UVR.W5N();return this._convertToMarketTZ(new Date());};R_S.Market.prototype.isHourAligned=function(){i6UVR.W5N();return this.hour_aligned;};R_S.Market.prototype.isOpen=function(){var J4A;J4A=new Date();if(this.market_tz){J4A=new this.tz_lib(J4A.getTime(),this.market_tz);}return this._wasOpenIntraDay(J4A);};R_S.Market.prototype.isMarketDay=function(){var l7R;i6UVR.W5N();l7R=new Date();if(this.market_tz){l7R=new this.tz_lib(l7R.getTime(),this.market_tz);}return this._wasOpenDaily(l7R);};R_S.Market.prototype.isMarketDate=function(l7e){i6UVR.W5N();return this._wasOpenDaily(l7e);};R_S.Market.prototype.newIterator=function(o_p){var h9R,y8n,W86;h9R="t";h9R+="i";h9R+="c";h9R+="k";y8n=!({});if(o_p.periodicity){y8n=o_p.periodicity;}else if(o_p.multiple){y8n=o_p.multiple;}W86=o_p.interval;if(!W86){W86="minute";}if(W86 == "hour")W86=60;if(!y8n){y8n=1;}if(!o_p.begin){o_p.begin=new Date();o_p.inZone=null;}if(W86 == parseInt(W86,10)){W86=parseInt(W86,10);if(o_p.periodicity < +"1" / 60){y8n=y8n * W86 * 60000;W86="millisecond";}else if(o_p.periodicity < 1){y8n=y8n * W86 * 60;W86="second";}else {y8n=y8n * W86;W86="minute";}}if(o_p.timeUnit){if(o_p.timeUnit === "millisecond"){W86=o_p.timeUnit;}else if(o_p.timeUnit === "second"){W86=o_p.timeUnit;}else if(o_p.timeUnit === "tick"){W86="second";}}if(W86 == h9R)W86="second";o_p.interval=W86;i6UVR.W5N();o_p.multiple=y8n;o_p.market=this;return new R_S.Market.Iterator(o_p);};R_S.Market.prototype._wasOpenDaily=function(k11){i6UVR.W3G();return this._was_open(k11,!!0);};R_S.Market.prototype._wasOpenIntraDay=function(U7M){return this._was_open(U7M,!!1);};R_S.Market.prototype._was_open=function(c9L,k8_){var k8a,i6Q,S1K,a7n,F5t,X7o,T9_,v$p,Y3m,N$N,a9s,P6b,g$B,x2Y;k8a="u";k8a+="n";k8a+="defined";i6Q=this.zseg_match;this.zopen_hour=0;this.zopen_minute=+"0";this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;if(!this.market_def || !this.rules){this.zclose_hour=24;return !![];}S1K=![];a7n=!({});F5t=c9L.getFullYear();X7o=c9L.getMonth() + ("1" >> 0);T9_=c9L.getDay();v$p=c9L.getDate();i6UVR.W5N();Y3m=c9L.getHours();N$N=c9L.getMinutes();a9s=c9L.getSeconds();g$B=Y3m * ("60" - 0) * 60 + N$N * 60 + a9s;if(typeof k8_ === k8a){k8_=!!1;}for(x2Y=0;x2Y < this.normalHours.length;x2Y++){P6b=this.normalHours[x2Y];if(!P6b.enabled){continue;}S1K=P6b.dayofweek === T9_;if(S1K && k8_){S1K=g$B >= P6b.open && g$B < P6b.close;}if(S1K){if(!k8_ && this.zseg_match){if(P6b.open_parts.hours > this.zopen_hour || P6b.open_parts.hours == this.zopen_hour && P6b.open_parts.minutes > this.zopen_minute){continue;}}if(P6b !== i6Q && !P6b.adjacent_parent && !P6b.adjacent_child){this.shouldResetToBeginningOfSegment=!![];}this.zopen_hour=P6b.open_parts.hours;this.zopen_minute=P6b.open_parts.minutes;this.zclose_hour=P6b.close_parts.hours;this.zclose_minute=P6b.close_parts.minutes;this.zmatch_open=g$B === P6b.open;this.zseg_match=P6b;if(k8_)break;}}for(x2Y=0;x2Y < this.extraHours.length;x2Y++){P6b=this.extraHours[x2Y];if(!P6b.enabled){continue;}if((2610 <= (383.33,354.81)?8950 === (838,9585)?(8.82e+3,3.97e+3):0x531:"*") === P6b.year || F5t === P6b.year){if(X7o === P6b.month && v$p === P6b.day){a7n=!k8_ && P6b.open || g$B >= P6b.open && g$B < P6b.close;if(!a7n && this.zseg_match){S1K=!"1";this.zopen_hour=+"0";this.zopen_minute=0;this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;}if(a7n){if(!k8_ && this.zseg_match){if(P6b.open_parts.hours > this.zopen_hour || P6b.open_parts.hours == this.zopen_hour && P6b.open_parts.minutes > this.zopen_minute){continue;}}this.zopen_hour=P6b.open_parts.hours;this.zopen_minute=P6b.open_parts.minutes;this.zclose_hour=P6b.close_parts.hours;this.zclose_minute=P6b.close_parts.minutes;this.zmatch_open=g$B === P6b.open;this.zseg_match=P6b;if(k8_)break;}}}}return this.zseg_match;};R_S.Market.prototype._wasClosed=function(C$Z){return !this._was_open(C$Z,!!1);};R_S.Market.prototype._wasOpen=function(N1q){return this._was_open(N1q,!!"1");};R_S.Market.prototype._tzDifferenceMillis=function(c7s,R2_,l6g){var h9a,Q_G,Y2l,g4K;h9a=0;Q_G=c7s;Y2l=c7s;g4K=Q_G.getTimezoneOffset() - Y2l.getTimezoneOffset();h9a=g4K * ("60" - 0) * 1000;return h9a;};R_S.Market._createTimeSegments=function(J4y){var u6J,q6E,r8l,H5m,p3p,e5Q;u6J=function(D3s,b9C){if(D3s.close_parts.hours === 24 && b9C.open_parts.hours === 0){if(b9C.open_parts.minutes === 0){if(q6E.dayofweek === p3p.dayofweek - 1){return !!1;}if(q6E.dayofweek === 6 && p3p.dayofweek === 0){return !![];}}}return !1;};for(var j8V=0;j8V < J4y.rules.length;j8V++){r8l=JSON.parse(JSON.stringify(J4y.rules[j8V]));if(typeof r8l.open === "undefined" && typeof r8l.close === "undefined"){r8l.open="00:00";r8l.close="00:00";}if(!r8l.hasOwnProperty("name")){r8l.name="";}try{H5m="un";H5m+="defin";H5m+="ed";if(typeof r8l.dayofweek !== "undefined"){r8l.year="*";p3p=o0O._createDayOfWeekSegment(J4y,r8l);if(q6E){if(q6E.dayofweek === p3p.dayofweek){q6E.child_=p3p;p3p.parent_=q6E;}else {if(u6J(q6E,p3p)){q6E.adjacent_child=p3p;p3p.adjacent_parent=q6E;}}}q6E=p3p;}else if(typeof r8l.date !== H5m){r8l.isDayOfWeek=![];r8l.dayofweek=-+"1";p3p=o0O._createDateTimeSegment(J4y,r8l);}else {console.log("Error, unknown rule type " + r8l);}if(J4y.enabled_by_default){for(var S5H=0;S5H < J4y.enabled_by_default.length;S5H++){e5Q=J4y.enabled_by_default[S5H];if(p3p.name === e5Q){p3p.enabled=!!1;break;}}}else {;}}catch(T_b){console.log("Error, creating market rules " + T_b);}}};R_S.Market._timeSegment={};o0O=R_S.Market._timeSegment;o0O.re_wild_card_iso=/^(\*)-(\d\d)-(\d\d)$/;o0O.re_regular_iso=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;o0O.re_split_hours_minutes=/^(\d\d):(\d\d)$/;o0O.re_split_hour_minutes=/^(\d):(\d\d)$/;o0O._hashCode=function(y9Y){var W6G,x6t,H$L,y0_;W6G=0;i6UVR.W3G();if(y9Y.length === 0)return W6G;for((x6t=+"0",y0_=y9Y.length);x6t < y0_;x6t++){H$L=y9Y.charCodeAt(x6t);W6G=(W6G << 5) - W6G + H$L;W6G|=0;;}return W6G;};o0O._splitHoursMinutes=function(v2$){var m8x,t4h,B8h,Y56,Z05;m8x=o0O.re_split_hour_minutes.exec(v2$);t4h={hours:NaN,minutes:NaN};if(m8x === null){m8x=o0O.re_split_hours_minutes.exec(v2$);if(m8x === null){return t4h;}}t4h.hours=parseInt(m8x[1],10);t4h.minutes=parseInt(m8x[2],10);B8h="369040853" ^ 0;Y56=-1551662406;Z05="2" - 0;for(var z_4=1;i6UVR.l5h(z_4.toString(),z_4.toString().length,"38265" | 73) !== B8h;z_4++){return t4h;}if(i6UVR.m6F(Z05.toString(),Z05.toString().length,14709) !== Y56){return t4h;}};o0O._createDayOfWeekSegment=function(E_B,v3d){var y4A;y4A={name:v3d.name,isDayOfWeek:!!1,dayofweek:v3d.dayofweek,date_str:"*",open_parts:o0O._splitHoursMinutes(v3d.open),close_parts:o0O._splitHoursMinutes(v3d.close),open:o0O._secSinceMidnight(E_B,v3d.open,!""),close:o0O._secSinceMidnight(E_B,v3d.close,![]),child_:![],parent_:!({}),adjacent_child:!({}),adjacent_parent:!!0,enabled:!!0};if(y4A.name === ""){y4A.enabled=!![];}y4A.hash_code=this._hashCode((y4A.open + y4A.close).toString());i6UVR.W3G();E_B.normalHours.push(y4A);return y4A;};o0O._createDateTimeSegment=function(d7P,F8w){var X4N,T2s,g0S;X4N=this.re_regular_iso.exec(F8w.date);if(X4N === null){X4N=this.re_wild_card_iso.exec(F8w.date);if(X4N === null){console.log("Warning: invalid date format on rule -> " + F8w.date);return;}T2s="*";;}else {T2s=parseInt(X4N[1],10);}g0S={name:F8w.name,isDayOfWeek:!!0,dayofweek:-1,year:T2s,month:parseInt(X4N[2],+"10"),day:parseInt(X4N[3],+"10"),date_str:F8w.date,open_parts:o0O._splitHoursMinutes(F8w.open),close_parts:o0O._splitHoursMinutes(F8w.close),open:o0O._secSinceMidnight(d7P,F8w.open,!""),close:o0O._secSinceMidnight(d7P,F8w.close,![]),enabled:![]};if(g0S.name === ""){g0S.enabled=!!({});}g0S.hash_key=this._hashCode(g0S.date_str + g0S.open + g0S.close);d7P.extraHours.push(g0S);return g0S;};o0O._secSinceMidnight=function(V8D,k1t,b95){var h7K,Z3z,D5N,x9T;h7K=k1t.split("1320" << 32 === (114.93,490.87)?44.98:+"5730" <= (467.01,+"4524")?(1356,+"7947") === 6440?(+"0x232a","o"):3.51e+3:":");Z3z=parseInt(h7K[0],10);D5N=parseInt(h7K[1],"10" - 0);x9T=Z3z * 60 * 60 + D5N * 60;if(!b95){if(Z3z === 24){x9T=Z3z * 60 * +"60" + 1;}}return x9T;};R_S.Market.prototype._convertToMarketTZ=function(I40,x0T){var D5e;if(x0T){D5e=new this.tz_lib(I40.getFullYear(),I40.getMonth(),I40.getDate(),I40.getHours(),I40.getMinutes(),I40.getSeconds(),I40.getMilliseconds(),x0T);}else {D5e=new this.tz_lib(I40.getFullYear(),I40.getMonth(),I40.getDate(),I40.getHours(),I40.getMinutes(),I40.getSeconds(),I40.getMilliseconds());}if(D5e.setTimezone)D5e.setTimezone(this.market_tz);return new Date(D5e.getFullYear(),D5e.getMonth(),D5e.getDate(),D5e.getHours(),D5e.getMinutes(),D5e.getSeconds(),D5e.getMilliseconds());};R_S.Market.prototype._convertFromMarketTZ=function(N6s,m6e){var s5_;s5_=new this.tz_lib(N6s.getFullYear(),N6s.getMonth(),N6s.getDate(),N6s.getHours(),N6s.getMinutes(),N6s.getSeconds(),N6s.getMilliseconds(),this.market_tz);if(m6e){if(s5_.setTimezone)s5_.setTimezone(m6e);}else {return new Date(s5_.getTime());}return new Date(s5_.getFullYear(),s5_.getMonth(),s5_.getDate(),s5_.getHours(),s5_.getMinutes(),s5_.getSeconds(),s5_.getMilliseconds());};R_S.Market.Iterator=function(p5q){this.market=p5q.market;this.begin=p5q.begin;this.interval=p5q.interval;this.multiple=p5q.multiple;this.inZone=p5q.inZone;this.outZone=p5q.outZone;this.clock=new R_S.Market.Iterator._Clock(p5q.market,p5q.interval,p5q.multiple);i6UVR.W5N();this.intraDay=this.clock.intra_day;if(this.intraDay)this.begin=this.market._convertToMarketTZ(this.begin,p5q.inZone);this.clock._setStart(this.begin);this.clock.minutes_aligned=!1;};R_S.Market.Iterator.prototype.date=function(){return this.clock._date();};R_S.Market.Iterator.prototype.futureTick=function(c0T){var t29,z4G,g2B,C39,e$x,E4C,o3h,W7x,r0C;this.clock.skip=1;t29=0;if(this.intraDay)z4G=this.market._convertToMarketTZ(c0T.end,this.inZone).getTime();else z4G=c0T.end.getTime();g2B=this.clock.ctime;if(z4G === g2B){return t29;}C39=2;e$x=1000;E4C=0;if(c0T.sample_size){C39=c0T.sample_size;}o3h=new Date().getTime();if(z4G > g2B){this.clock.forward=!![];while(this.clock.ctime < z4G){t29+=1;E4C+=1;this.clock._findNext();if(E4C === e$x){E4C=0;W7x=new Date().getTime();if(W7x - o3h >= C39){r0C=(this.clock.ctime - g2B) / t29;t29=Math.floor((z4G - g2B) / r0C);break;}}}if(this.clock.ctime > z4G){t29--;}}else {this.clock.forward=![];while(this.clock.ctime > z4G){t29+=1;E4C+=1;this.clock._findPrevious();if(E4C === e$x){E4C=0;W7x=new Date().getTime();if(W7x - o3h >= C39){r0C=(g2B - this.clock.ctime) / t29;t29=Math.floor((g2B - z4G) / r0C);break;}}}}return t29;};R_S.Market.Iterator.prototype.isHourAligned=function(){return !this.intraDay || this.market.isHourAligned();};R_S.Market.Iterator.prototype.isOpen=function(){return this.market.isOpen();};R_S.Market.Iterator.prototype.next=function(i8L){this.clock.skip=1;if(i8L){this.clock.skip=i8L;}this.clock.forward=!0;for(var U4O=+"0";U4O < this.clock.skip;U4O++){this.begin=this.clock._findNext();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};R_S.Market.Iterator.prototype.peek=function(){return this.clock._peek();};R_S.Market.Iterator.prototype.previous=function(T7S){this.clock.skip=1;i6UVR.W3G();if(T7S){this.clock.skip=T7S;}this.clock.forward=!({});for(var d$w=0;d$w < this.clock.skip;d$w++){this.begin=this.clock._findPrevious();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};R_S.Market.Iterator._Clock=function(F6_,J1_,P_f){var X7G,w6B,L46;X7G="d";X7G+="a";X7G+="y";if(P_f % 60 === 0 && J1_ === "second"){J1_="minute";P_f=P_f / ("60" * 1);}this.market=F6_;this.interval=J1_;i6UVR.W5N();this.multiple=P_f;this.intra_day=!!"";this.intervals=[];this.max_iters=+"10080";w6B=k8w;L46=this._dayImpl;if(J1_ === "millisecond"){L46=this._millisImpl;w6B=1;}else if(J1_ === "second"){L46=this._secondImpl;w6B=1000;}else if(J1_ === "minute"){L46=this._minuteImpl;w6B=60000;}else if(J1_ === "hour"){L46=this._hourImpl;w6B=d4B;}else if(J1_ === X7G){L46=this._dayImpl;w6B=k8w;}else if(J1_ === "week"){L46=this._weekImpl;w6B=k8w * 7;}else if(J1_ === "month"){L46=this._monthImpl;w6B=k8w * 30;}else {console.log('Periodicity ERROR: "' + J1_ + '" is not a valid interval. Please see setPeriodicity() for details.');}this.tick_time=w6B * P_f;this.intra_day=this.tick_time < k8w;this._findPrevious=this._findNext=L46;};v85=R_S.Market.Iterator._Clock.prototype;v85._total_minutes=function(M$v,K54,V8e,b_t){return (V8e - M$v) * 60 - K54 + b_t;};v85._alignMinutes=function(){var I7I,i41,b1z,K9s,X16;if(!this.market.market_def || this.market.zopen_minute === undefined){return [];}I7I=this.market.zopen_minute;i41=this.market.zseg_match;if(i41 && i41.adjacent_parent){I7I=i41.adjacent_parent.open / 60 - 1440;}else {if(this.market.isHourAligned() && this.multiple % 60 === 0)I7I=0;}b1z=this._total_minutes(this.market.zopen_hour,I7I,this.market.zclose_hour,this.market.zclose_minute);K9s=[];X16=0;while(X16 < b1z){K9s.push(I7I + X16);X16+=this.multiple;}return K9s;};v85._alignBaseZero=function(O$2){var U9v,S8H;U9v=0;S8H=[U9v];while(!![]){U9v+=this.multiple;if(U9v >= O$2){break;}S8H.push(U9v);}return S8H;};v85._date=function(){var u67,K27;u67=Math.round(this.ctime);K27=new Date(u67);if(this.intra_day){this.display_date=new Date(u67 + this.shift_millis);}else {this.display_date=K27;}i6UVR.W3G();return K27;};v85._alignToBoundary=function(Q9R,T7g){var U9Q,v0c,M93;U9Q=0;v0c=0;M93=T7g;for(var D20=0;D20 < Q9R.length - 1;D20++){U9Q=Q9R[D20];v0c=Q9R[D20 + +"1"];if(T7g === U9Q || T7g === v0c){break;;}if(T7g > U9Q && T7g < v0c){M93=U9Q;break;}else if(D20 + 1 === Q9R.length - 1){M93=v0c;}}i6UVR.W5N();return M93;};v85._peek=function(){i6UVR.W5N();return this._date().toString();};v85._seekHr=function(){i6UVR.W3G();if(this.forward){this.ctime-=d4B;}else {this.ctime+=d4B;}};v85._setStart=function(K0s){var p6m,k5j;p6m=this.market._tzDifferenceMillis(K0s);k5j=new Date(K0s.getTime() + p6m);this.shift_millis=p6m;this.ctime=k5j.getTime();this.shift_millis="0" >> 0;this.ctime=K0s.getTime();};v85._tickTock=function(){var e8p,E1e,H8n;if(this.forward){e8p=-1786601353;E1e=-("1885585299" ^ 0);H8n=2;for(var v78=1;i6UVR.l5h(v78.toString(),v78.toString().length,61295) !== e8p;v78++){this.ctime+=this.tick_time;H8n+=2;}if(i6UVR.l5h(H8n.toString(),H8n.toString().length,73559) !== E1e){this.ctime/=this.tick_time;}}else {this.ctime-=this.tick_time;}};v85._tockTick=function(){if(this.forward){this.ctime-=this.tick_time;}else {this.ctime+=this.tick_time;}};v85._tickTock24=function(){i6UVR.W5N();this.ctime+=k8w;};v85._tockTick24=function(){i6UVR.W3G();this.ctime-=k8w;};v85._windMaybe=function(A3Q,n4u){var J1R,Y8e,M11,k1S;i6UVR.W5N();J1R=0;Y8e=new Date(this.ctime);M11=!!0;while(!A3Q.call(this.market,Y8e)){n4u.call(this);M11=!0;Y8e=new Date(this.ctime);J1R+=1;if(J1R > this.max_iters){k1S="Warning! max iterations (" + this.max_iters;k1S+=") reached with no rule match.";console.log(k1S);break;}}return M11;};v85._millisImpl=function(){var T5P,O0C,l3K,n_h,g_w,F1V,y8J,B89,K2z,U66;T5P=!!"";if(!this.mperiods_aligned){O0C=this._alignBaseZero(1000);l3K=new Date(this.ctime);n_h=l3K.getMilliseconds();n_h=this._alignToBoundary(O0C,n_h);l3K.setMilliseconds(0);this.ctime=l3K.getTime() + n_h;this.mperiods_aligned=!0;T5P=!!"1";}g_w=this._date().getMinutes();i6UVR.W5N();this._tickTock();F1V=this._date().getMinutes();if((T5P || g_w != F1V) && !this.market._wasOpenIntraDay(this._date())){y8J=this._date().getSeconds();B89=this._date().getMilliseconds();K2z=this.tick_time;this.tick_time=60000;U66=this.multiple;this.multiple=1;this._minuteImpl();this.tick_time=K2z;this.multiple=U66;this.ctime+=1000 * y8J + B89;}return this._date();};v85._secondImpl=function(){var e6S,g0j,q0X,d3u,c9U,S7a,C_B,C9$,H6a;e6S=!({});if(!this.speriod_aligned){g0j=this._alignBaseZero(60);q0X=new Date(this.ctime);d3u=q0X.getSeconds();d3u=this._alignToBoundary(g0j,d3u);q0X.setSeconds(d3u);q0X.setMilliseconds(+"0");this.ctime=q0X.getTime();this.speriod_aligned=!![];e6S=!!"1";}c9U=this._date().getMinutes();this._tickTock();S7a=this._date().getMinutes();if((e6S || c9U != S7a) && !this.market._wasOpenIntraDay(this._date())){C_B=this._date().getSeconds();C9$=this.tick_time;this.tick_time=+"60000";H6a=this.multiple;this.multiple=1;this._minuteImpl();this.tick_time=C9$;this.multiple=H6a;this.ctime+=1000 * C_B;}return this._date();};v85._minuteImpl=function(){var g0k,F6k,w8A,v_x,q_F,o8L,C0t,U5C,I2s,T50;g0k=this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);F6k=new Date(this.ctime);w8A=F6k.getTimezoneOffset();v_x=F6k.getMinutes();q_F=F6k.getHours();o8L=this._alignMinutes();C0t=this._total_minutes(this.market.zopen_hour,this.market.zopen_minute,q_F,v_x) + this.market.zopen_minute;if(g0k){if(this.forward){C0t=o8L[o8L.length - 1];}else {C0t=o8L[0];}}else {C0t=this._alignToBoundary(o8L,C0t);}q_F=Math.floor(C0t / 60) + this.market.zopen_hour;F6k.setHours(q_F,C0t % 60,0,0);U5C=F6k.getTimezoneOffset() - w8A;if(this.forward && U5C < 0 || !this.forward && U5C > +"0"){F6k.setTime(F6k.getTime() - U5C * 60000);}this.ctime=F6k.getTime();this._tickTock();I2s=this.market.hour_aligned && this.multiple % 60 === 0;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !I2s && this.shouldResetToBeginningOfSegment){F6k=new Date(this.ctime);if(this.forward){F6k.setMinutes(this.market.zopen_minute);F6k.setHours(this.market.zopen_hour);}else {o8L=this._alignMinutes();T50=o8L[o8L.length - 1];F6k.setMinutes(T50 % 60);F6k.setHours(Math.floor(T50 / 60) + this.market.zopen_hour);}this.ctime=F6k.getTime();}return this._date();};v85._hourImpl=function(){var M55,G5d,d1X,w7C,l6_;i6UVR.W5N();this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);M55=new Date(this.ctime);if(this.market.isHourAligned()){M55.setMinutes(0);}else {M55.setMinutes(this.market.zopen_minute);}M55.setSeconds(0);M55.setMilliseconds(0);this.ctime=M55.getTime();this._tickTock();G5d=this.market.zseg_match;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !this.market.hour_aligned && G5d != this.market.zseg_match){d1X=new Date(this.ctime);if(this.forward){d1X.setMinutes(this.market.zopen_minute);d1X.setHours(this.market.zopen_hour);}else {w7C=this._alignMinutes();l6_=w7C[w7C.length - 1];d1X.setMinutes(l6_ % ("60" ^ 0));d1X.setHours(Math.floor(l6_ / 60) + this.market.zopen_hour);}this.ctime=d1X.getTime();}return this._date();};v85._dayImpl=function(){var R2k,w1E;this._windMaybe(this.market._wasOpenDaily,this._seekHr);R2k=new Date(this.ctime);R2k.setHours(12,0,0,+"0");i6UVR.W3G();this.ctime=R2k.getTime();w1E=0;while(w1E < this.multiple){if(this.forward){this._tickTock24();}else {this._tockTick24();}if(!this.market._wasOpenDaily(this._date())){continue;}w1E+=1;}R2k=new Date(this.ctime);R2k.setHours(0);this.ctime=R2k.getTime();return this._date();};v85._weekImpl=function(){var Q_f,w5s;Q_f=this.market;w5s=new Date(this.ctime);i6UVR.W5N();w5s.setHours(12);this.ctime=w5s.getTime();this._tickTock();w5s=new Date(this.ctime);while(w5s.getDay() !== Q_f.beginningDayOfWeek){this._tockTick24();w5s=new Date(this.ctime);}this._windMaybe(Q_f._wasOpenDaily,this._tickTock24);w5s=new Date(this.ctime);w5s.setHours(0,+"0",0,0);this.ctime=w5s.getTime();return this._date();};v85._monthImpl=function(){var b3J;b3J=new Date(this.ctime);b3J.setDate(15);this.ctime=b3J.getTime();this._tickTock();b3J=new Date(this.ctime);b3J.setDate(1);b3J.setHours(+"12");this.ctime=b3J.getTime();this._windMaybe(this.market._wasOpenDaily,this._tickTock24);b3J=new Date(this.ctime);b3J.setHours("0" | 0,0,0,+"0");i6UVR.W3G();this.ctime=b3J.getTime();return this._date();};v85._findNext=null;v85._findPrevious=null;};T=O_H=>{var R8_=i6UVR;R8_.W5N();R8_.m3s=function(u_b){R8_.W3G();if(R8_ && u_b)return R8_.i8e(u_b);};R8_.P91=function(d8M){R8_.W5N();if(R8_ && d8M)return R8_.i8e(d8M);};R8_.X86=function(d1C){R8_.W5N();if(R8_)return R8_.i8e(d1C);};var c4w,o1a,g03;c4w=typeof _CIQ !== "undefined"?_CIQ:O_H.CIQ;o1a="valid";c4w.valid=0;c4w[R8_.x1I("73e7")?"ChartEngine":""][R8_.X86("76da")?"":"prototype"][R8_.O0o("d68e")?"mousemoveinner":""]=function(Y_v,H_s){R8_.k_x=function(y7Z){R8_.W5N();if(R8_ && y7Z)return R8_.N4H(y7Z);};R8_.O8p=function(M_E){R8_.W5N();if(R8_)return R8_.N4H(M_E);};R8_.K4n=function(G2k){R8_.W3G();if(R8_)return R8_.i8e(G2k);};var P0e=-(R8_.x$F("359d")?601500727:186577206),Y22=-(R8_.K4n("774b")?1638252184:2428117228),u6b=-(R8_.P91("6aea")?637126000:113100024),c2B=-(R8_.N$t("1cd8")?1636454950:2006868665),H4H=R8_.V1Y("a942")?1251022236:6248277390,y5F=-901100827,J3f=R8_.z2h("bf6e")?4323687070:1820977520,v_v=R8_.m3s("1cf2")?3632780311:1541769497,D$b=-(R8_.N_P("d3e2")?7321761046:1684866164),J80=324260868;if(!(R8_.Z4a(0,false,R8_.U56("ce63")?418193:552997) !== P0e && R8_.h3V(0,false,999056) !== Y22 && R8_.h3V(9,R8_.h8D("6692")?true:false,476537) !== u6b && R8_.Z4a(R8_.O8p("6a8e")?3:9,true,718872) !== c2B && R8_.Z4a(8,true,428923) !== H4H && R8_.Z4a(10,true,783307) !== y5F && R8_.Z4a(9,true,R8_.k_x("e6dd")?446240:355041) !== J3f && R8_.h3V(9,true,647601) !== v_v && R8_.h3V(10,true,523543) !== D$b && R8_.Z4a(8,true,288896) !== J80)){var E_6,T_I,b7D,C_0,I9W,S_Z,l5k,T0C,K$U,s6Y,n4a,m$V,T2I,h7U,V6a,P$d,b0Q,k2$,P5L,S6L,a09,w0A,K7$,q1$,i9D,N_$,S3S,N7M,l2I;if(!this["chart"]["canvas"]){return;}if(!c4w["isAndroid"] && !c4w["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"]("mousemoveinner",arguments)){return;}T_I=arguments;b7D=this["container"]["getBoundingClientRect"]();this["top"]=b7D["top"];this["left"]=b7D["left"];function W1O(O$8){var J_G=1785073975,a7h=-1694958399,A51=8214662,q7z=837009359,d79=-620899382,t5M=213668177,e4m=-391255666,N9Z=-1252475600,h4$=-868346271,e79=-111987682;if(R8_.h3V(0,false,256134) === J_G || R8_.Z4a(0,false,984785) === a7h || R8_.h3V(9,true,372746) === A51 || R8_.Z4a(9,true,222297) === q7z || R8_.Z4a(8,true,931038) === d79 || R8_.Z4a(10,true,255423) === t5M || R8_.h3V(9,true,550507) === e4m || R8_.h3V(9,true,775878) === N9Z || R8_.Z4a(10,true,692060) === h4$ || R8_.h3V(8,true,493631) === e79){var P10;P10="mo";P10+="usemoveinn";P10+="er";O$8["currentBaseline"]=null;O$8["runAppend"](P10,T_I);}}this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!({});c4w["ChartEngine"]["crosshairX"]=Y_v;c4w["ChartEngine"]["crosshairY"]=H_s;C_0=this["cy"]=this["crossYActualPos"]=this["backOutY"](c4w["ChartEngine"]["crosshairY"]);I9W=this["cx"]=this["crossXActualPos"]=this["backOutX"](c4w["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){R8_["O_b"](1);var S54=R8_["v$j"](32,34);R8_["O_b"](33);var c9l=R8_["V9a"](0,20,18);S_Z=Math["pow"](this["grabStartX"] - Y_v,S54) + Math["pow"](this["grabStartY"] - H_s,c9l);if(S_Z < 36){return;}}this["cancelLongHold"]=!!1;l5k=function(c7E,R34){var W1F=632240235,W1a=1331583677,e1n=-1063154332,I6H=-844066008,L_H=1708338573,q$y=1191575025,Z1x=688634741,B8o=-51586579,E7a=611343389,V9K=575504350;if(R8_.h3V(0,false,223215) === W1F || R8_.h3V(0,false,461850) === W1a || R8_.h3V(9,true,830392) === e1n || R8_.Z4a(9,true,653069) === I6H || R8_.Z4a(8,true,340290) === L_H || R8_.h3V(10,true,120563) === q$y || R8_.h3V(9,true,611284) === Z1x || R8_.Z4a(9,true,593265) === B8o || R8_.Z4a(10,true,213465) === E7a || R8_.h3V(8,true,244680) === V9K){if(c4w[o1a] === 0){return c7E["whichPanel"](R34) || c7E["chart"]["panel"];}if(!c7E["draw"][o1a]){c7E["draw"]=function(){R8_.W3G();var H8f=-585560611,Y8k=318241326,l9p=-226969794,W$U=-1253718984,g5l=-1657146144,a3i=-1502956068,c75=-927500610,E6x=1979631053,n9T=1814663176,Z0U=-853062415;if(R8_.h3V(0,false,289682) === H8f || R8_.h3V(0,false,535056) === Y8k || R8_.h3V(9,true,709743) === l9p || R8_.h3V(9,true,432080) === W$U || R8_.h3V(8,true,344704) === g5l || R8_.h3V(10,true,714864) === a3i || R8_.Z4a(9,true,207399) === c75 || R8_.h3V(9,true,874399) === E6x || R8_.h3V(10,true,720281) === n9T || R8_.Z4a(8,true,331639) === Z0U){c4w["clearCanvas"](this["chart"]["canvas"],this);}};c7E["draw"][o1a]=!!({});}}};this["currentPanel"]=l5k(this,C_0);if(!this["currentPanel"]){return;}T0C=this["currentPanel"]["chart"];if(T0C["dataSet"]){K$U="c";K$U+="hart";this["crosshairTick"]=this["tickFromPixel"](I9W,T0C);E_6=this["valueFromPixel"](C_0,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],E_6);s6Y=this["currentPanel"]["name"] == K$U?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(s6Y && this["crosshairTick"] < T0C["dataSet"]["length"] && this["crosshairTick"] > -1){E_6=T0C["dataSet"][this["crosshairTick"]][s6Y];this["crossYActualPos"]=this["pixelFromPrice"](E_6,this["currentPanel"]);}}if(c4w["ChartEngine"]["crosshairX"] >= this["left"] && c4w["ChartEngine"]["crosshairX"] <= this["right"] && c4w["ChartEngine"]["crosshairY"] >= this["top"] && c4w["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!!1;}else {this["insideChart"]=!!"";}n4a=this["xAxisAsFooter"] === !![]?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && c4w["ChartEngine"]["crosshairY"] <= n4a + this["top"] && c4w["ChartEngine"]["crosshairY"] > n4a - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !c4w["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return W1O(this);}if(this["repositioningAnchorSelector"]){m$V=this["repositioningAnchorSelector"]["hoverTick"];T2I=this["tickFromPixel"](this["cx"],this["chart"]);if(T2I >= 0 && T2I < this["chart"]["dataSet"]["length"] && (!(m$V && m$V !== "0" >> 0) || T2I !== m$V)){this["repositioningAnchorSelector"]["hoverTick"]=T2I;this["draw"]();}return W1O(this);}if(this["grabbingScreen"] && !c4w["ChartEngine"]["resizingPanel"]){if(this["highlightedDraggable"]){this["displayDragOK"](!![]);this["dragPlotOrAxis"](I9W,C_0);return W1O(this);}if(this["anyHighlighted"]){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!"1";for(h7U in this["overlays"]){this["overlays"][h7U]["highlight"]=!({});}for(h7U in T0C["series"]){T0C["series"][h7U]["highlight"]=!({});}this["displaySticky"]();}if(this["grabStartX"] == -("1" << 32)){this["grabStartX"]=c4w["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=T0C["scroll"];}if(this["grabStartY"] == -1){this["grabStartY"]=c4w["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}V6a=c4w["ChartEngine"]["crosshairX"] - this["grabStartX"];P$d=c4w["ChartEngine"]["crosshairY"] - this["grabStartY"];if(V6a === +"0" && P$d === +"0"){return;}if(Math["abs"](V6a) + Math["abs"](P$d) > 5){this["grabOverrideClick"]=!![];}k2$=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != "pan" && (this["grabMode"]["indexOf"]("zoom") === 0 || this["overXAxis"] || this["grabStartYAxis"])){P5L="z";P5L+="o";P5L+="om";P5L+="-y";if(this["grabMode"] === ""){if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]="zoom-y";}}if(this["grabMode"] == "zoom-x"){P$d=0;}else if(this["grabMode"] == P5L){V6a=+"0";}if(V6a){this["grabStartX"]=c4w["ChartEngine"]["crosshairX"];S6L=k2$ - V6a / this["chart"]["maxTicks"];this["zoomSet"](S6L,this["chart"]);}if(this["layout"]["setSpan"]){this["layout"]["setSpan"]=null;this["changeOccurred"]("layout");}b0Q=this["grabStartYAxis"];if(b0Q){if(b0Q["flipped"]){P$d*=-1;}b0Q["zoom"]=Math["round"](this["grabStartZoom"] + P$d);if(this["grabStartZoom"] < b0Q["height"]){if(b0Q["zoom"] >= b0Q["height"]){R8_["O_b"](16);var A8j=R8_["V9a"](6,0,5);b0Q["zoom"]=b0Q["height"] - A8j;}}else {if(b0Q["zoom"] <= b0Q["height"]){R8_["O_b"](14);var x7p=R8_["V9a"](2,61,10,12);b0Q["zoom"]=b0Q["height"] + x7p;}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!!({})});if(this["allowScroll"]){a09="p";a09+="an";if(Math["abs"](P$d) < this["yTolerance"]){if(!this["yToleranceBroken"]){P$d=0;if(V6a === 0){return;}}}else {this["yToleranceBroken"]=!!"1";}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]=a09;T0C["scroll"]=this["grabStartScrollX"];R8_["s$9"](22);var m63=R8_["v$j"](9,167,0,18);R8_["O_b"](1);var f2p=R8_["V9a"](10,11);this["micropixels"]=this["grabStartMicropixels"] + V6a * (this["shift"]?m63:f2p);if(!this["lineTravelSpacing"]){while(this["micropixels"] > +"0"){this["micropixels"]-=k2$;T0C["scroll"]++;}while(this["micropixels"] < -k2$){this["micropixels"]+=k2$;T0C["scroll"]--;}}if(T0C["scroll"] >= T0C["maxTicks"]){w0A=1403366981;K7$=625018721;q1$=2;for(var J4n=1;R8_["l5h"](J4n["toString"](),J4n["toString"]()["length"],+"68374") !== w0A;J4n++){this["preferences"]["whitespace"]=this["initialWhitespace"];q1$+=+"2";}if(R8_["l5h"](q1$["toString"](),q1$["toString"]()["length"],66893) !== K7$){this["preferences"]["whitespace"]=this["initialWhitespace"];}}else {this["preferences"]["whitespace"]=(T0C["maxTicks"] - T0C["scroll"]) * k2$;}if(this["currentPanel"] == this["grabStartPanel"]){b0Q=this["currentPanel"]["yAxis"];if(b0Q["flipped"]){R8_["O_b"](12);P$d*=-R8_["V9a"](32,"1");}b0Q["scroll"]=this["grabStartScrollY"] + P$d;}this["dispatch"]("scroll",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}i9D=function(T0s){var l7i=-1377086126,b58=-1475525855,B65=2046097683,W5j=-636865186,L6L=-1908069135,V7q=155777695,V90=153495854,D_$=1389782972,m$S=-1040226959,V2y=-525125091;R8_.W3G();if(R8_.h3V(0,false,679196) === l7i || R8_.Z4a(0,false,490370) === b58 || R8_.Z4a(9,true,647191) === B65 || R8_.h3V(9,true,576063) === W5j || R8_.h3V(8,true,514400) === L6L || R8_.Z4a(10,true,528042) === V7q || R8_.Z4a(9,true,222789) === V90 || R8_.h3V(9,true,985213) === D_$ || R8_.Z4a(10,true,558331) === m$S || R8_.Z4a(8,true,223583) === V2y){return function(){var z$g=387294878,a79=-1999433205,B3v=711567530,i_2=-1464157040,I2c=-875208496,Q0c=-1707112626,a5i=-743572626,n1h=-348825631,P6_=1738942947,Y9n=1215171122;R8_.W3G();if(R8_.h3V(0,false,462349) === z$g || R8_.h3V(0,false,529825) === a79 || R8_.Z4a(9,true,415064) === B3v || R8_.h3V(9,true,949948) === i_2 || R8_.h3V(8,true,247884) === I2c || R8_.h3V(10,true,859284) === Q0c || R8_.h3V(9,true,873006) === a5i || R8_.Z4a(9,true,742460) === n1h || R8_.Z4a(10,true,772757) === P6_ || R8_.Z4a(8,true,710148) === Y9n){T0s["draw"]();T0s["updateChartAccessories"]();}};}};if(c4w["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](i9D(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return W1O(this);;}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],T0C) - +"0.5" + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !c4w["ChartEngine"]["resizingPanel"]){N_$=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){S3S=this["layout"]["studies"][this["currentPanel"]["name"]];if(S3S){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][S3S["name"]];}if(N_$){this["overlays"][S3S["name"]]=S3S;}}}if(!c4w["Drawing"] || !N_$ || !c4w["Drawing"][N_$] || !new c4w["Drawing"][N_$]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(c4w["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){N7M=this["panels"][this["activeDrawing"]["panelName"]];E_6=this["adjustIfNecessary"](N7M,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](c4w["ChartEngine"]["crosshairY"]),N7M));if(this["magnetizedPrice"] && N7M["name"] == this["currentPanel"]["name"]){E_6=this["adjustIfNecessary"](N7M,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],E_6);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(c4w["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){l2I="m";l2I+="ov";l2I+="e";this["dispatch"](l2I,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:![]});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return W1O(this);}};c4w.ChartEngine.prototype.swipeStart=function(F05){var C7b;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=F05.scroll;this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=F05;this.swipe.end=!"1";R8_.O_b(29);this.swipe.timeConstant=R8_.v$j("325",32);this.swipe.cb=null;C7b=this;requestAnimationFrame(function(){R8_.W3G();C7b.swipeSample();});};c4w.ChartEngine.prototype.swipeSample=function(){var j00,m3m,l7u,i9Y,r1u,t6_,d0A,z$Q,p8f;j00=this.swipe;if(j00.end){return;}m3m=this;d0A=20;l7u=Date.now();i9Y=l7u - j00.timestamp;if(i9Y < d0A){requestAnimationFrame(function(){R8_.W3G();m3m.swipeSample();});return;}z$Q=c4w.touchDevice?0.4:0.8;j00.timestamp=l7u;r1u=(j00.chart.scroll - j00.frame) * this.layout.candleWidth + this.micropixels - j00.micropixels;j00.frame=j00.chart.scroll;j00.micropixels=this.micropixels;R8_.O_b(93);t6_=R8_.v$j(1000,i9Y,1,r1u);p8f=z$Q * t6_ + 0.2 * j00.velocity;if(Math.abs(p8f) > Math.abs(j00.velocity)){j00.velocity=p8f;}if(Math.abs(r1u) < 6){R8_.O_b(42);j00.velocity=R8_.V9a("0",0);;}requestAnimationFrame(function(){m3m.swipeSample();});};c4w.ChartEngine.prototype.swipeRelease=function(){var l7E,O0L;R8_.W3G();l7E=this.swipe;if(l7E.velocity > 3000){l7E.velocity=3000;}if(l7E.velocity < -3000){l7E.velocity=-3000;}if(l7E.velocity > 10 || l7E.velocity < -10){l7E.amplitude=+"0.8" * l7E.velocity;l7E.scroll=l7E.chart.scroll;l7E.target=l7E.amplitude;l7E.timestamp=Date.now();O0L=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){O0L.autoscroll();});}};c4w.ChartEngine.prototype.dragPlotOrAxis=function(R82,i3w){var O6D,B0m,q5U,U00,U6j,Z$m,w7S,B6d,u7m,N10,q23,v$z,c0w,L94,s9J,k23,q0H,o6a,B6b,G2G,O_l,x_J,v2Y,f8G,L0p,c0u,t$t,k$A,a3e,F5Y,q4d,c44,B4w,z7j,i3C,N$a,N5W,W7$,z1r,c$z,l_2,b5c,r6P,E6J,B2f,m9v,a86,g4F,e9i,b1W,r15,z$h,Y7f,w8s;O6D="drop";O6D+="zo";O6D+="ne";B0m="rig";B0m+="h";B0m+="t";if(!z9J.call(this) && !this.grabbingScreen){return;}q5U=null;U00=20;U6j=10;R8_.s$9(1);Z$m=this.whichPanel(R8_.v$j(U00,i3w));R8_.O_b(0);w7S=this.whichPanel(R8_.V9a(i3w,U00));B6d=this.whichPanel(i3w);u7m=this.highlightedDraggable;if(!B6d){return;}if(u7m.undraggable && u7m.undraggable(this)){return;}N10=this.whichYAxis(B6d,R82,i3w);R8_.O_b(1);q23=this.whichYAxis(B6d,R8_.v$j(U6j,R82),i3w);R8_.s$9(0);v$z=this.whichYAxis(B6d,R8_.V9a(R82,U6j),i3w);if(this.xAxisAsFooter && B6d.name == Object.keys(this.panels).pop()){w7S=this.whichPanel(i3w + U00 + this.xaxisHeight);if(q5U){q5U+=this.xaxisHeight;}}c0w=!!"";L94=![];s9J=!"1";function z9J(){var e77,x8Z,J5n,W_H;function D0y(n$0){return function(T_8){if(n$0.subholder.classList.contains(T_8)){n$0.subholder.classList.remove(T_8);e77=!![];}};}e77=!!0;for(var D8d in this.panels){x8Z="t";x8Z+="o";x8Z+="p";J5n="righ";J5n+="t";["dropzone","all","left",J5n,x8Z,"bottom"].forEach(D0y(this.panels[D8d]));for(W_H=+"0";W_H < this.panels[D8d].yaxisLHS.length;W_H++){if(this.panels[D8d].yaxisLHS[W_H].dropzone){e77=!![];}this.panels[D8d].yaxisLHS[W_H].dropzone=null;}for(W_H=0;W_H < this.panels[D8d].yaxisRHS.length;W_H++){if(this.panels[D8d].yaxisRHS[W_H].dropzone){e77=!![];}this.panels[D8d].yaxisRHS[W_H].dropzone=null;}}return e77;}R8_.W3G();if(c4w.Renderer){c0w=u7m instanceof c4w.Renderer;}if(c4w.Studies){L94=u7m instanceof c4w.Studies.StudyDescriptor;}s9J=u7m instanceof c4w.ChartEngine.YAxis;k23=function(s3i){var d1F;if(!s9J){d1F="l";d1F+="e";d1F+="f";d1F+="t";if(s3i == "right"){R8_.s$9(94);var S2X=R8_.V9a(16,7,16,1,12);return B6d.right - B6d.width / S2X;}if(s3i == d1F){R8_.s$9(95);var C$Q=R8_.v$j(9,15,3,7);return B6d.left + B6d.width / ("6" | C$Q);}}R8_.O_b(96);var y1y=R8_.v$j(12,5,0,5);return (B6d.left + B6d.right) / y1y;};if(!s9J && !N10){if(R82 < k23("left")){q23=this.whichYAxis(B6d,B6d.left - 1,i3w);}else if(R82 > k23("right")){v$z=this.whichYAxis(B6d,B6d.right + 1,i3w);}}q0H=[];if(u7m.getDependents){q0H=u7m.getDependents(this,!![]);}o6a=u7m.panel;B6b=u7m.getYAxis(this);if(c0w){o6a=u7m.params.panel;}else if(s9J){o6a=this.grabStartPanel.name;}G2G=this.panels[o6a];for(O_l in this.panels){if(this.panels[O_l].soloing){x_J=!"";}}v2Y=B6b.isShared(this);f8G=!s9J && !x_J && (G2G !== B6d && G2G != Z$m && G2G != w7S || !this.checkForEmptyPanel(G2G,!!({}),[u7m].concat(q0H)));L0p=o6a == B6d.name && B6b !== N10 && B6b !== v$z && B6b !== q23 || v2Y;if(f8G && (!Z$m || B6d !== Z$m)){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("top");w7S=B6d;}else if(f8G && (!w7S || B6d !== w7S)){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("bottom");}else if(B6d !== G2G){if(!s9J && !B6d.noDrag){k$A="dr";k$A+="op";k$A+="zone";B6d.subholder.classList.add(k$A);B6d.subholder.classList.add("all");c0u=B6d.name;}}else if((!B6d.yaxisRHS.length || B6d.yaxisRHS.length == 1 && B6d.yaxisRHS[0] == B6b && B6b.position == "none") && !N10 && !v$z && R82 > k23(B0m)){a3e="ri";a3e+="gh";a3e+="t";B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("right");t$t=a3e;}else if((!B6d.yaxisLHS.length || B6d.yaxisLHS.length == 1 && B6d.yaxisLHS[0] == B6b && B6b.position == "none") && !N10 && !q23 && R82 < k23("left")){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("left");t$t="left";}else if(L0p){if(s9J && R82 > B6d.left && R82 < B6d.right){R8_.s$9(1);var l9S=R8_.v$j(2,3);F5Y=B6d.yaxisLHS[B6d.yaxisLHS.length - l9S];q4d=B6d.yaxisRHS[0];c44=k23();if(R82 < c44 && F5Y != B6b){q23=F5Y;}else if(R82 > c44 && q4d != B6b){v$z=q4d;}}if(!s9J || N10 !== B6b){B4w=!s9J && v2Y;if(v$z && (v$z !== B6b || B4w) && (!N10 || N10 !== v$z)){v$z.dropzone="left";t$t=v$z.position || this.chart.panel.yAxis.position || "right";}else if(q23 && (q23 !== B6b || B4w) && (!N10 || N10 !== q23)){z7j="ri";z7j+="gh";z7j+="t";i3C="r";i3C+="i";i3C+="g";i3C+="ht";q23.dropzone=i3C;t$t=q23.position || this.chart.panel.yAxis.position || z7j;}else if(N10){if(!v$z && (N10 !== B6b || B4w)){N10.dropzone="right";}else if(!q23 && (N10 !== B6b || B4w)){N$a="le";N$a+="ft";N10.dropzone=N$a;}else if(N10 !== B6b){N10.dropzone="all";}if(N10.dropzone){t$t=N10.position || this.chart.panel.yAxis.position || "right";}}}}if(this.grabbingScreen || !B6d.subholder.classList.contains(O6D) && !t$t){this.draw();return;}W7$=-1;if(!c0u && !t$t && f8G){c0u=L94?u7m.inputs.id:u7m.params.name || c4w.uniqueID();for(var P1X in this.panels){W7$++;if(this.panels[P1X] == w7S)break;}if(!w7S){W7$++;}if(this.panels[o6a].yAxis.name == c0u){o6a=this.electNewPanelOwner(o6a);}z1r=L94?u7m.inputs.display:null;if(o6a){this.createPanel(z1r || c0u,c0u,q5U,this.chart.name,new c4w.ChartEngine.YAxis({name:c0u}));}else {o6a=c0u;}if(L94){u7m.panel=o6a;}else {u7m.params.panel=o6a;}}if(c0u){if(L94){if(!u7m.parameters){u7m.parameters={};}u7m.parameters.panelName=c0u;this.highlightedDraggable=c4w.getFn("Studies.replaceStudy")(this,u7m.inputs.id,u7m.type,u7m.inputs,u7m.outputs,u7m.parameters,null,u7m.study);}else if(c0w){for(var D8e in u7m.seriesParams){c$z=u7m.seriesParams[D8e];l_2=null;if(u7m.params.yAxis){if(u7m.params.yAxis !== this.chart.panel.yAxis){l_2=u7m.params.yAxis;l_2.name=u7m.params.name;}}this.modifySeries(c$z.id,{panel:c0u,yAxis:l_2});}}if(W7$ > -("1" ^ 0)){b5c={};r6P=+"0";for(O_l in this.panels){if(W7$ == r6P++){b5c[c0u]=this.panels[c0u];}if(O_l == c0u)continue;b5c[O_l]=this.panels[O_l];}if(!b5c[c0u]){b5c[c0u]=this.panels[c0u];}this.panels=b5c;}this.checkForEmptyPanel(o6a);for(var S1W=+"0";S1W < q0H.length;S1W++){if(q0H[S1W].params){this.checkForEmptyPanel(q0H[S1W].params.name);}else {this.checkForEmptyPanel(q0H[S1W].name);}}this.adjustPanelPositions();}else if(t$t){E6J=function(C4z,Y3v,r2c,Y10){var s7B,W$Y;if(r2c == "study"){if(!Y3v.parameters){Y3v.parameters={};}if(Y10){Y3v.parameters.yaxisDisplayValue=Y10.position;}else {delete Y3v.parameters.yaxisDisplayValue;}s7B=c4w.getFn("Studies.replaceStudy")(C4z,Y3v.inputs.id,Y3v.type,Y3v.inputs,Y3v.outputs,Y3v.parameters,Y3v.panel,Y3v.study);}R8_.W5N();if(r2c == "renderer"){for(var W8R in Y3v.seriesParams){W$Y=Y3v.seriesParams[W8R];s7B=C4z.modifySeries(W$Y.id,{panel:c0u,yAxis:Y10});}}return s7B;};B2f=N10 && N10.dropzone == "all";if(!B2f){if(s9J){u7m.position=t$t;if(this.layout.studies){m9v=this.layout.studies[u7m.name];if(m9v){if(!m9v.parameters){m9v.parameters={};}m9v.parameters.yaxisDisplayValue=t$t;}}}else if(L94){this.highlightedDraggable=E6J(this,u7m,"study",{position:t$t});}else if(c0w){E6J(this,u7m,"renderer",new c4w.ChartEngine.YAxis({name:u7m.params.name || c4w.uniqueID(),position:t$t}));}B6b=this.highlightedDraggable.getYAxis(this);}if(!v2Y || !B2f || s9J){a86=B6b;if(B2f && B6b == this.chart.panel.yAxis){a86=N10;}for(N5W=0;N5W < B6d.yaxisLHS.length;N5W++){if(B6d.yaxisLHS[N5W] == a86){B6d.yaxisLHS.splice(N5W,1);break;}}for(N5W=0;N5W < B6d.yaxisRHS.length;N5W++){if(B6d.yaxisRHS[N5W] == a86){B6d.yaxisRHS.splice(N5W,1);break;}}}if(B2f){if(this.getYAxisByName(B6d,B6b.name) == B6d.yAxis){this.electNewPanelOwner(B6d,N10);}if(s9J){b1W=B6b;r15=N10;if(B6b == this.chart.panel.yAxis){b1W=N10;r15=B6b;}for(e9i in b1W.studies){E6J(this,this.layout.studies[b1W.studies[e9i]],"study",r15 === this.chart.panel.yAxis?null:{position:r15.name});}for(e9i in b1W.renderers){E6J(this,this.chart.seriesRenderers[b1W.renderers[e9i]],"renderer",r15);}this.highlightedDraggable=r15;}else if(L94){this.highlightedDraggable=E6J(this,u7m,"study",{position:N10.name});}else if(c0w){E6J(this,u7m,"renderer",N10);}}else {if(B6b.position == "none"){B6b.width=c4w.ChartEngine.YAxis.prototype.width;}B6b.position=t$t;g4F=t$t == "left"?B6d.yaxisLHS:B6d.yaxisRHS;for(N5W=0;N5W < g4F.length;N5W++){if(g4F[N5W] !== B6b){z$h="ri";z$h+="g";z$h+="h";z$h+="t";if(g4F[N5W].dropzone == "left"){g4F.splice(N5W,0,B6b);}else if(g4F[N5W].dropzone == z$h){R8_.s$9(6);g4F.splice(R8_.V9a(N5W,"1"),0,B6b);}else continue;}break;}if(N5W == g4F.length){g4F.push(B6b);}}}for(var q8i in this.panels){Y7f=this.panels[q8i];w8s=Y7f.yaxisLHS.concat(Y7f.yaxisRHS);for(N5W=0;N5W < w8s.length;N5W++){w8s[N5W].height=Y7f.yAxis.height;this.calculateYAxisMargins(w8s[N5W]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();this.draw();this.findHighlights(null,!!"1");this.savePanels();};g03=!({});c4w.ChartEngine.prototype.findHighlights=c4w.ChartEngine.prototype.findHighlights || (function(I1O,H6V){if(!g03){console.error("movement feature requires activating interaction feature.");}g03=!!"1";});};R=N3o=>{var K5H=i6UVR;var v6U;v6U=typeof _CIQ !== "undefined"?_CIQ:N3o.CIQ;v6U.NameValueStore=v6U.NameValueStore || (function(){});v6U.NameValueStore.prototype.toJSONIfNecessary=function(J4E){var j9A;if(J4E.constructor == String){return J4E;}try{j9A=JSON.stringify(J4E);return j9A;}catch(G4x){K5H.s$9(0);console.log(K5H.V9a("Cannot convert to JSON: ",J4E));return null;}};v6U.NameValueStore.prototype.fromJSONIfNecessary=function(B0C){var i2c;K5H.W3G();try{i2c=JSON.parse(B0C);return i2c;}catch(e2e){return B0C;}};K5H.W3G();v6U.NameValueStore.prototype.get=function(T72,K6U){var m8p;K5H.W5N();m8p=v6U.localStorage.getItem(T72);K6U(null,this.fromJSONIfNecessary(m8p));};v6U.NameValueStore.prototype.set=function(k$e,l2Q,u58){K5H.W5N();v6U.localStorageSetItem(k$e,this.toJSONIfNecessary(l2Q));if(u58){u58(null);}};v6U.NameValueStore.prototype.remove=function(E3H,z4o){v6U.localStorage.removeItem(E3H);K5H.W5N();if(z4o){z4o(null);}};};W=X2l=>{var p_V=i6UVR;var y0n,S$g;y0n="und";y0n+="efi";y0n+="n";y0n+="ed";S$g=typeof _CIQ !== y0n?_CIQ:X2l.CIQ;if(!S$g.ChartEngine){S$g.ChartEngine=function(){};}s9Q.fetchInitialData=function(x$_,P31,P_I,K$e,H4x){};s9Q.fetchUpdateData=function(X3J,U2a,W_C,a72){};s9Q.fetchPaginationData=function(H2v,n9d,q2o,Q_o,b3C){};s9Q.subscribe=function(v3Z){};s9Q.unsubscribe=function(K21){};S$g.QuoteFeed=S$g.QuoteFeed || (function(){});S$g.QuoteFeed.prototype.fetch=function(O$V,x4Y){var M09;if(!this.v2QuoteFeed){M09="You must implement CIQ.QuoteFeed.[";M09+="you";M09+="rfeedname].prototype.fetch()";console.log(M09);}};S$g.QuoteFeed.prototype.announceError=function(Q_W,w8x){if(Q_W.suppressErrors || w8x.suppressAlert){return;}p_V.W3G();if(Q_W.startDate){;}else if(Q_W.endDate){;}else if(w8x.error){S$g.alert("Error fetching quote:" + w8x.error);}else {;}};S$g.QuoteFeed.prototype.multiFetch=function(j_I,e6Y){p_V.W3G();if(j_I.length === 0){e6Y([]);}return j_I[0].stx.driver.multiFetch(j_I,e6Y);};S$g.QuoteFeed.Subscriptions=function(){p_V.W5N();this.subscriptions=[];};S$g.inheritsFrom(S$g.QuoteFeed.Subscriptions,S$g.QuoteFeed);S$g.QuoteFeed.Subscriptions.prototype.checkSubscriptions=function(y8L){var t6G,z_E,s$z,y7Q,S9J,W6R,c30,M4O,f3f;s$z=y8L.getSymbols({"breakout-equations":!![]});y7Q=this;p_V.W3G();s$z=s$z.filter(function(a6I){var W2Z;W2Z=y8L.quoteDriver.getQuoteFeed(a6I);return W2Z && W2Z.engine == y7Q;});for(var a0r=0;a0r < this.subscriptions.length;a0r++){this.subscriptions[a0r].match=!"1";}for(var R5P=0;R5P < s$z.length;R5P++){z_E=s$z[R5P];S9J=z_E.interval;if((S9J == "month" || S9J == "week") && !y8L.dontRoll){W6R="d";W6R+="a";W6R+="y";S9J=W6R;}z_E.interval=S9J;z_E.period=1;z_E.match=!!0;if(!isNaN(z_E.interval)){c30="mi";c30+="nut";c30+="e";z_E.period=z_E.interval;z_E.interval=z_E.timeUnit;if(!z_E.interval){z_E.interval=c30;}}delete z_E.periodicity;delete z_E.timeUnit;delete z_E.setSpan;for(a0r=0;a0r < this.subscriptions.length;a0r++){t6G=this.subscriptions[a0r];if(t6G.symbol == z_E.symbol && t6G.period == z_E.period && t6G.interval == z_E.interval){z_E.match=!!1;t6G.match=!![];break;}else if(t6G.symbol != z_E.symbol){M4O="sym";M4O+="b";M4O+="o";M4O+="l";if(z_E.reason != "period"){z_E.reason="symbol";}t6G.reason=M4O;}else {f3f="per";f3f+="i";f3f+="o";f3f+="d";z_E.reason="period";t6G.reason=f3f;}}}this.subscriptions=this.subscriptions.filter(function(G58){if(!G58.match){if(!G58.stx){G58.stx=y8L;}y7Q.unsubscribe(G58);}return G58.match;});s$z.forEach(function(v_$){var H8H;if(!v_$.match){H8H="initi";H8H+="al";H8H+="i";H8H+="ze";if(!v_$.stx){v_$.stx=y8L;}if(!v_$.reason){v_$.reason=H8H;}if(v_$.symbol !== y8L.chart.symbol){v_$.series=!![];}y7Q.subscribe(v_$);y7Q.subscriptions.push(v_$);}});};S$g.QuoteFeed.Subscriptions.prototype.fetch=function(b0f,r2A){var w5H;w5H=this;this.fetchFromSource(b0f,function(I42){p_V.W5N();if(!I42.error){w5H.checkSubscriptions(b0f.stx);}r2A(I42);});};S$g.QuoteFeed.Subscriptions.prototype.subscribe=function(U1T){p_V.W5N();console.log("subscribe",U1T);};S$g.QuoteFeed.Subscriptions.prototype.unsubscribe=function(y5S){var l5x;l5x="unsubs";l5x+="cribe";console.log(l5x,y5S);};S$g.QuoteFeed.Subscriptions.prototype.fetchFromSource=function(v5H,W$z){p_V.W3G();console.log("Please provide implementation of fetchFromSource");};S$g.QuoteFeed.prototype.requiresImmediateRefresh=function(A$5){return !"1";};S$g.ChartEngine.prototype.attachQuoteFeed=function(e1P,V4w,k0M){var q7j,k30,E5V;q7j="f";q7j+="unct";q7j+="io";q7j+="n";k30="f";k30+="u";k30+="nct";k30+="ion";if(!V4w){V4w={};}if(typeof e1P.fetchInitialData === k30 || typeof e1P.fetchUpdateData === q7j || typeof e1P.fetchPaginationData === "function"){if(typeof e1P.fetchPaginationData !== "function" && typeof e1P.fetchUpdateData !== "function"){V4w.noLoadMore=!!({});}e1P.v2QuoteFeed=!!({});["multiFetch","announceError","requiresImmediateRefresh"].forEach(function(Y9A){if(!e1P[Y9A] && e1P[Y9A] !== !1){e1P[Y9A]=S$g.QuoteFeed.prototype[Y9A];}p_V.W5N();;});if(typeof e1P.subscribe === "function"){e1P.checkSubscriptions=S$g.QuoteFeed.Subscriptions.prototype.checkSubscriptions;e1P.subscriptions=[];}}if(!V4w.maximumTicks){V4w.maximumTicks=e1P.maxTicks?e1P.maxTicks:20000;}p_V.W3G();if(!V4w.bufferSize || V4w.bufferSize < 0){V4w.bufferSize=0;}V4w.bufferSize=Math.round(V4w.bufferSize);V4w.intervalTimer=null;if(this.quoteDriver){if(!k0M && this.quoteDriver.hasUnfilteredQuoteFeed){this.detachQuoteFeed();}else {E5V=this.quoteDriver.hasUnfilteredQuoteFeed && this.quoteDriver.quoteFeeds.pop();this.quoteDriver.quoteFeeds.push({engine:e1P,behavior:V4w,filter:k0M});if(E5V){this.quoteDriver.quoteFeeds.push(E5V);}this.quoteDriver.updateChartLoop(null,V4w);}}if(!this.quoteDriver){this.quoteDriver=new S$g.ChartEngine.Driver(this,e1P,V4w,k0M);}if(!k0M){this.quoteDriver.hasUnfilteredQuoteFeed=!!({});}};S$g.ChartEngine.prototype.detachQuoteFeed=function(n6W){var f8K;f8K=this.quoteDriver;if(!f8K){return;}for(var W7w=f8K.quoteFeeds.length - ("1" - 0);W7w >= 0;W7w--){if(!n6W || f8K.quoteFeeds[W7w].quoteFeed == n6W){f8K.die(f8K.quoteFeeds[W7w]);f8K.quoteFeeds.splice(W7w,1);}}p_V.W5N();if(!f8K.quoteFeeds.length){f8K=this.quoteDriver=null;}else if(n6W == f8K.quoteFeed){f8K.quoteFeed=f8K.quoteFeeds[0].quoteFeed;f8K.behavior=f8K.quoteFeeds[0].behavior;}};S$g.ChartEngine.Driver=function(D7y,B2c,c0W,g$p){p_V.W3G();this.stx=D7y;if(!c0W){c0W={};}this.quoteFeeds=[{engine:B2c,behavior:c0W,filter:g$p}];this.id=S$g.uniqueID(!!1);this.behavior=c0W;this.quoteFeed=B2c;this.loadingNewChart=![];this.updatingChart=!1;if(!g$p){this.hasUnfilteredQuoteFeed=!![];}this.updateChartLoop();};S$g.ChartEngine.Driver.prototype.die=function(V7j){var N8A;for(var I2J=0;I2J < this.quoteFeeds.length;I2J++){if(!V7j || this.quoteFeeds[I2J] == V7j){N8A=this.quoteFeeds[I2J].behavior;if(N8A.intervalTimer){clearInterval(N8A.intervalTimer);N8A.intervalTimer=-1;;}}}};S$g.ChartEngine.Driver.prototype.getQuoteFeed=function(o_v){var L$J;if(!o_v.symbolObject){o_v.symbolObject={symbol:o_v.symbol};}for(var c4Y=0;c4Y < this.quoteFeeds.length;c4Y++){L$J=this.quoteFeeds[c4Y];if(L$J.behavior.generator != o_v.symbolObject.generator)continue;if(!L$J.filter || L$J.filter(o_v)){return L$J;}}return null;;};S$g.ChartEngine.Driver.prototype.multiFetch=function(L0M,g_c){var v8_,B8L,z0d;if(L0M.length === 0){g_c([]);}v8_={counter:0,finished:L0M.length,results:[]};for(var X1k=0;X1k < L0M.length;X1k++){B8L=L0M[X1k];if(B8L.stx.isEquationChart(B8L.symbol)){S$g.fetchEquationChart(B8L,x66(B8L,v8_,g_c));}else {z0d=this.getQuoteFeed(B8L);if(z0d){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.SERIES,z0d.engine,B8L,x66(B8L,v8_,g_c));}}}p_V.W5N();function x66(b6T,s07,y5y){p_V.W3G();return function(O4l){p_V.W5N();var g1E;s07.results.push({dataCallback:O4l,params:b6T});s07.counter++;if(s07.counter >= s07.finished){g1E=s07.results;s07.results=[];y5y(g1E);}};}};S$g.ChartEngine.Driver.prototype.updateSubscriptions=function(){for(var o9n=+"0";o9n < this.quoteFeeds.length;o9n++){if(this.quoteFeeds[o9n].checkSubscriptions){this.quoteFeeds[o9n].checkSubscriptions(this.stx);}}};S$g.ChartEngine.Driver.prototype.loadDependents=function(O36,T7Z,k25,z3b){var Z8b,P9r,y$Y,j5c,x25,s7w,j5N,o4F,P0T,n7N,t5E,r8W,C7L,v3R,f9w,x97,i$S,Q0i,X1z,s0n,Q5v,o0a,T5t,S2v,I3P;Z8b=this;if(!z3b){P9r=0;y$Y=[];j5c=[];x25=function(w_9){if(T7Z && ++P9r >= Z8b.quoteFeeds.length){T7Z(null);}};s7w=function(n9B){if(++P9r < y$Y.length){return;}p_V.W5N();if(!j5c.length){x25(n9B);}j5c.forEach(function(w$1){Z8b.loadDependents(O36,x25,k25,w$1.behavior);});};Z8b.quoteFeeds.forEach(function(M1E){if(M1E.behavior.generator){j5c.push(M1E);}else {y$Y.push(M1E);}});y$Y.forEach(function(J0S){Z8b.loadDependents(O36,s7w,k25,J0S.behavior);});return;}o4F={};P0T=O36.stx;n7N=O36.chart;t5E=n7N.series;r8W=P0T.masterData;f9w=[];x97={};function C0G(c7q){p_V.W3G();return function(d$K){var s4E,i7V,a4B,n$2,c6x,X$I,L00,V9O,g6C,Z6r;s4E=null;for(var t6Q=0;t6Q < d$K.length;t6Q++){i7V=d$K[t6Q];a4B=i7V.dataCallback.error;if(!a4B && a4B !== 0){n$2=i7V.params.symbolObject;c6x=i7V.dataCallback;X$I=c6x.quotes;L00=c6x.moreAvailable;V9O=c6x.upToDate;g6C=[];if(P0T.getSeries){g6C=P0T.getSeries({symbolObject:n$2});}Z6r=![];for(var i99=+"0";i99 < g6C.length;i99++){C7L=g6C[i99];if(!c7q){if(!O36.future){C7L.moreAvailable=L00 === !!""?!({}):L00 || X$I.length > (i7V.params.endDate?"1" | 1:0);}else {C7L.upToDate=V9O === !![]?!!1:V9O || X$I.length <= (i7V.params.startDate?+"1":"0" * 1);if(P0T.isHistoricalModeSet && X$I.length < 2){C7L.mostRecentForwardAttempt=new Date();}}C7L.loading=!1;}Z6r=C7L.parameters.fillGaps || Z6r;}X$I=Z8b.cleanup(P0T,C7L,X$I,k25,O36,Z6r);P0T.updateChartData(X$I,n7N,{secondarySeries:n$2.symbol,noCreateDataSet:!0,noCleanupDates:!!({}),allowReplaceOHL:!""});if(X$I && X$I.length && (!s4E || s4E > X$I[0].DT)){s4E=X$I[+"0"].DT;}}}if(d$K.length){P0T.createDataSet(null,null,{appending:O36.originalState.update || O36.future,appendToDate:s4E});if(!O36.nodraw){P0T.draw();}if(k25 == S$g.QuoteFeed.INITIAL){Z8b.resetRefreshInterval(z3b.refreshInterval,z3b);}}if(T7Z){T7Z(null);}};}i$S=k25 == S$g.QuoteFeed.UPDATE;Q0i=k25 == S$g.QuoteFeed.PAGINATION;X1z=S$g.shallowClone(O36);for(j5N in t5E){C7L=t5E[j5N];s0n=C7L.parameters;if(!i$S){if(!O36.future && C7L.moreAvailable === ![])continue;if(O36.future && C7L.upToDate === !!({}))continue;;}if(C7L.loading)continue;if(s0n.loadData === !({}))continue;if(i$S || Q0i){if(!C7L.endPoints || !Object.keys(C7L.endPoints).length)continue;;}if(s0n.data && !s0n.data.useDefaultQuoteFeed)continue;v3R=s0n.symbolObject;if(!v3R.symbol)continue;if(v3R.generator != z3b.generator)continue;X1z.symbolObject=v3R;X1z.symbol=v3R.symbol;Q5v=this.getQuoteFeed(X1z);if(z3b != (Q5v && Q5v.behavior))continue;o0a=!!({});if(!i$S){C7L.loading=!"";}for(var J0K=0;J0K < f9w.length;J0K++){if(S$g.symbolEqual(f9w[J0K],v3R)){o0a=!1;}}if(o0a){f9w.push(v3R);x97[v3R.symbol]=C7L.endPoints;}}T5t=[];for(var G$C=0;G$C < f9w.length;G$C++){v3R=f9w[G$C];S2v=S$g.shallowClone(O36.originalState);S2v.symbol=v3R.symbol;S2v.symbolObject=v3R;if(S2v.update || S2v.future){if(!S2v.endDate){S2v.endDate=O36.endDate;}S2v.startDate=x97[v3R.symbol].end;}else {if(!S2v.startDate){S2v.startDate=O36.startDate;}S2v.endDate=Q0i && !O36.future?x97[v3R.symbol].begin:O36.endDate;S2v.ticks=O36.ticks;}T5t.push(S2v);}if(!T5t.length && i$S){I3P={appending:O36.appending || O36.originalState.update};if(I3P.appending){I3P.appendToDate=O36.startDate;}P0T.createDataSet(null,null,I3P);if(!O36.nodraw){P0T.draw();}if(T7Z){T7Z(null);}return;}this.multiFetch(T5t,C0G(i$S));};S$g.ChartEngine.Driver.prototype.cleanup=function(s1T,z1R,K6V,i7$,O06,d_4){var d9Q,g5y,w$E,i6O,I88,O7T,X89,h4H;s1T.doCleanupDates(K6V,s1T.layout.interval);if(!O06.missingBarsCreated && K6V && K6V.length && s1T.cleanupGaps && d_4 !== !!0){w$E=O06.chart;if(!z1R){g5y=w$E.defaultPlotField;}else {w$E=z1R;g5y=z1R.parameters.symbol || z1R.id;}if(i7$ == S$g.QuoteFeed.PAGINATION && !O06.loadMoreReplace){if(w$E.endPoints.begin && w$E.endPoints.begin > K6V[K6V.length - 1].DT){i6O=s1T.getFirstLastDataRecord(s1T.masterData,g5y,!!0);if(z1R){i6O=i6O[g5y];}K6V.push(i6O);d9Q="pop";}}else if(i7$ == S$g.QuoteFeed.UPDATE){if(w$E.endPoints.end && w$E.endPoints.end < K6V[0].DT){I88=s1T.getFirstLastDataRecord(s1T.masterData,g5y,!![]);O7T=2141695318;p_V.s$9(39);X89=-p_V.V9a("1916707877",0);h4H=2;for(var G7f=1;p_V.m6F(G7f.toString(),G7f.toString().length,58221) !== O7T;G7f++){if(z1R){I88=I88[g5y];}K6V.unshift(I88);h4H+=2;}if(p_V.m6F(h4H.toString(),h4H.toString().length,2127) !== X89){if(z1R){I88=I88[g5y];}K6V.unshift(I88);}if(z1R){I88=I88[g5y];}K6V.unshift(I88);d9Q="shift";}}K6V=s1T.doCleanupGaps(K6V,O06.chart,{cleanupGaps:d_4,noCleanupDates:!0});if(d9Q){K6V[d9Q]();}}return K6V;};S$g.ChartEngine.Driver.prototype.updateChart=function(m_A){var J0D,o1I,H5S,k4g,d7o,U6m,l4F,w5V,m5t;if(this.updatingChart){return;}if(this.loadingNewChart){return;}J0D=Object.keys(this.stx.charts).length;o1I=0;H5S=this.stx;k4g=H5S.layout.interval;function u25(o$Y,d7m,p4q,I13){if(d7m.behavior.prefetchAction){d7m.behavior.prefetchAction("updateChart");}return function(E9r){var L2C,j1a,x7_;o1I++;L2C=d7m.chart;j1a=L2C.masterData;if(p4q == L2C.symbol && k4g == H5S.layout.interval && d7o == H5S.layout.timeUnit && !H5S.isHistoricalMode()){if(!E9r.error){x7_=E9r.quotes;x7_=o$Y.cleanup(H5S,null,x7_,S$g.QuoteFeed.UPDATE,d7m);H5S.updateChartData(x7_,L2C,{noCreateDataSet:!"",noCleanupDates:!!1});L2C.attribution=E9r.attribution;}else if(I13){I13.engine.announceError(d7m.originalState,E9r);}}else {o$Y.updatingChart=![];return;}if(o1I == J0D){o$Y.updatingChart=!1;}if(d7m.behavior.callback){d7m.behavior.callback(d7m);}o$Y.loadDependents(d7m,null,S$g.QuoteFeed.UPDATE,d7m.behavior);p_V.W3G();;};}d7o=H5S.layout.timeUnit;for(var N5Y in H5S.charts){U6m=H5S.charts[N5Y];if(!U6m.symbol)continue;l4F=this.makeParams(U6m.symbol,U6m.symbolObject,U6m);w5V=this.getQuoteFeed(l4F);if(U6m.masterData && U6m.masterData.length){l4F.startDate=U6m.endPoints.end;;}l4F.update=!!1;l4F.originalState=S$g.shallowClone(l4F);if(m_A && m_A != l4F.behavior){this.loadDependents(l4F,null,S$g.QuoteFeed.UPDATE,m_A);continue;}this.updatingChart=!![];m5t=u25(this,l4F,U6m.symbol,w5V);if(H5S.isEquationChart(l4F.symbol)){S$g.fetchEquationChart(l4F,m5t);}else if(w5V){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.UPDATE,w5V.engine,l4F,m5t);}}};S$g.ChartEngine.Driver.prototype.updateChartLoop=function(y27,m0W){var F$O,a01;if(!m0W){m0W=this.behavior;}if(m0W.intervalTimer == -1){return;}if(m0W.intervalTimer){clearInterval(m0W.intervalTimer);}p_V.W5N();F$O=function(Q$A,G4L){p_V.W5N();return function(){if(G4L.noUpdate){return;}Q$A.updateChart(G4L);};};for(var U6A=0;U6A < this.quoteFeeds.length;U6A++){a01=this.quoteFeeds[U6A].behavior;if(m0W == a01 && !a01.noUpdate){if(!y27 && y27 !== 0){y27=a01.refreshInterval;}if(y27){m0W.intervalTimer=setInterval(F$O(this,a01),y27 * +"1000");}}}};S$g.ChartEngine.Driver.prototype.resetRefreshInterval=function(P9I,j7u){(j7u || this.behavior).refreshInterval=P9I;this.updateChartLoop(null,j7u);p_V.W5N();;};S$g.ChartEngine.Driver.prototype.loadAll=function(S2o,T95){var W7R,Q5G;W7R=this;Q5G=0;N9S()();function N9S(){return function(J0c){p_V.W5N();if(J0c){T95(J0c);}else if(!S2o.moreAvailable && S2o.upToDate){T95(null);;}else if(++Q5G > 20){T95("error, moreAvailable not implemented correctly in QuoteFeed");}else {S2o.loadingMore=!1;W7R.checkLoadMore(S2o,!![],!0,N9S(),!"");}};}};S$g.ChartEngine.Driver.prototype.checkLoadMore=function(s48,Q6_,C2w,W3i,b8k){var N9J,i8V,K3u,A_L,l1R,X_v,r4x,n0D,e4P,a7l,k9A,g47,n6i,S4H,k9x,G7v,r7G,R6a,G6U,O1s,b3M,c0H;function B$C(W23){return !W23.endPoints.end || s48.scroll - s48.maxTicks + 1 < l1R.bufferSize || N9J.tickFromDate(W23.endPoints.end,s48,null,!!({})) - X_v.length + s48.scroll - s48.maxTicks + 2 < l1R.bufferSize;}N9J=this.stx;i8V=this;function P5k(J$e,E42){if(l1R.prefetchAction){l1R.prefetchAction("checkLoadMore");}return function(y8R){var C7a,g8$,m_O,G38,b0B,n5s,W64,Q4F,l29,w3e,q2O,h3x;C7a=-+"500040512";g8$=1753553143;p_V.W3G();m_O=2;for(var e$m=+"1";p_V.l5h(e$m.toString(),e$m.toString().length,5185) !== C7a;e$m++){G38=J$e.stx;b0B=E42.chart;m_O+=2;}if(p_V.m6F(m_O.toString(),m_O.toString().length,21552) !== g8$){G38=J$e.stx;b0B=E42.chart;}if(E42.symbol == b0B.symbol && G7v == G38.layout.interval && r7G == G38.layout.timeUnit){if(!E42.loadMore){E42.chart.loadingMore=![];}if(!y8R.error){if(!y8R.quotes){y8R.quotes=[];}n5s=y8R.quotes;W64=b0B.masterData;n5s=J$e.cleanup(G38,null,n5s,S$g.QuoteFeed.PAGINATION,E42);if(n5s.length && b0B.masterData && b0B.masterData.length){if(E42.future){Q4F=n5s[0];if(Q4F.DT && Q4F.DT == b0B.masterData[b0B.masterData.length - 1].DT){W64.pop();}}else {p_V.s$9(37);var D7Z=p_V.v$j(14,0,15);l29=n5s[n5s.length - D7Z];if(l29.DT && +l29.DT == +b0B.masterData[0].DT){n5s.pop();}}}if(!E42.future){if(y8R.moreAvailable){b0B.moreAvailable=!!({});}else if(y8R.moreAvailable === ![] || !n5s.length){b0B.moreAvailable=!"1";}else {b0B.moreAvailable=!!1;}}else {if(y8R.upToDate){b0B.upToDate=!![];}else if(y8R.upToDate === !!"" || n5s.length > 1){b0B.upToDate=!({});}if(G38.isHistoricalModeSet && n5s.length < 2){b0B.mostRecentForwardAttempt=new Date();};}J$e.tickMultiplier=n5s.length?2:J$e.tickMultiplier * 2;w3e=n5s[0]?n5s["0" * 1].DT:E42.startDate;q2O=n5s[0]?n5s[n5s.length - 1].DT:E42.endDate;if(!b0B.endPoints.begin || b0B.endPoints.begin > w3e){b0B.endPoints.begin=w3e;}if(!b0B.endPoints.end || b0B.endPoints.end < q2O){b0B.endPoints.end=q2O;}b0B.loadingMore=!({});if(E42.loadMoreReplace){G38.setMasterData(n5s,b0B,{noCleanupDates:!![]});}else if(E42.future){G38.updateChartData(n5s,b0B,{noCreateDataSet:!!({}),noCleanupDates:!""});}else {S$g.addMemberToMasterdata({stx:G38,chart:b0B,data:n5s,fields:[5453 == (7460,6066)?(827,0x2459):231.12 <= (2080,387)?"*":("A",!"")],noCleanupDates:!!1});}if(E42.future){h3x={appending:!![],appendToDate:n5s[0] && n5s[0].DT};}G38.createDataSet(undefined,undefined,h3x);if(!b8k){G38.draw();}if(l1R.callback){l1R.callback(E42);}J$e.loadDependents(E42,W3i,S$g.QuoteFeed.PAGINATION);}else {J$e.quoteFeed.announceError(E42.originalState,y8R);E42.chart.loadingMore=!({});if(W3i){W3i(y8R.error);}}}else {return;}};}if(s48.loadingMore || this.loadingNewChart){s48.initialScroll=s48.scroll;if(W3i){W3i(null);}return;}K3u=N9J.isHistoricalMode();if(!K3u){N9J.isHistoricalModeSet=!({});}A_L=this.makeParams(s48.symbol,s48.symbolObject,s48);if(N9J.currentlyImporting){if(W3i){W3i(null);}return;}l1R=A_L.behavior;X_v=s48.dataSet;p_V.O_b(33);var s6l=p_V.v$j(995,14,9);n0D=s6l * (l1R.forwardPaginationRetryInterval || "5" ^ 0);e4P=!!0;a7l=![];if(s48.dataSet.length){for(var o5b in s48.series){k9A=s48.series[o5b];if(k9A.loading)continue;if(k9A.parameters.loadData === !({}))continue;r4x=!k9A.mostRecentForwardAttempt || k9A.mostRecentForwardAttempt.getTime() + n0D < Date.now();if(k9A.moreAvailable !== !!0 && T6i(k9A)){e4P=!"";}if(r4x && !k9A.upToDate && B$C(k9A)){a7l=!0;}}}r4x=!s48.mostRecentForwardAttempt || s48.mostRecentForwardAttempt.getTime() + n0D < Date.now();g47=(T6i(s48) || Q6_) && s48.moreAvailable !== ![];n6i=(B$C(s48) || Q6_) && !s48.upToDate && r4x;function M6x(A$Q){s48.loadingMore=![];if(W3i){W3i(A$Q);}}S4H=g47 || e4P;k9x=N9J.isHistoricalModeSet && !S4H && (n6i || a7l);function T6i(G3l){return !G3l.endPoints.begin || X_v.length - s48.scroll < l1R.bufferSize || X_v.length - s48.scroll - N9J.tickFromDate(G3l.endPoints.begin,s48) < l1R.bufferSize;}G7v=N9J.layout.interval;r7G=N9J.layout.timeUnit;R6a=![];G6U=l1R.findHeadOfData || s48.masterData && s48.masterData.length;if(!l1R.noLoadMore && G6U){if(k9x || !N9J.maxDataSetSize || s48.dataSet.length < N9J.maxDataSetSize){if(S4H || k9x){s48.initialScroll=s48.scroll;s48.loadingMore=!![];A_L=this.makeParams(s48.symbol,s48.symbolObject,s48);A_L.pagination=!0;A_L.future=k9x;if(s48.masterData && s48.masterData.length){if(k9x){A_L.startDate=s48.endPoints.end;}else {A_L.endDate=s48.endPoints.begin;}if(k9x && !A_L.startDate){O1s=N9J.getFirstLastDataRecord(s48.masterData,"DT",!![]);if(O1s){A_L.startDate=O1s.DT;}}else if(S4H && !A_L.endDate){O1s=N9J.getFirstLastDataRecord(s48.masterData,"DT");if(O1s){A_L.endDate=O1s.DT;}}}else {A_L.endDate=new Date();}A_L.originalState=S$g.shallowClone(A_L);A_L.nodraw=b8k;if(!g47 && e4P || !n6i && a7l){this.loadingMore=!!({});this.loadDependents(A_L,M6x,S$g.QuoteFeed.PAGINATION);if(W3i){W3i(null);}return;}if(N9J.fetchMaximumBars[N9J.layout.aggregationType]){A_L.fetchMaximumBars=!!1;if(!N9J.maxMasterDataSize || l1R.maximumTicks < N9J.maxMasterDataSize){A_L.ticks=l1R.maximumTicks;}else {A_L.ticks=N9J.maxMasterDataSize;}}b3M=P5k(this,A_L);if(N9J.isEquationChart(A_L.symbol)){S$g.fetchEquationChart(A_L,b3M);}else {if(k9x){A_L.appending=!!({});}c0H=i8V.getQuoteFeed(A_L);if(c0H){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.PAGINATION,c0H.engine,A_L,b3M);}}R6a=!![];}}}if(!R6a && W3i){W3i(null);}};S$g.ChartEngine.Driver.prototype.extendHistoricalData=function({from:W1Z},J8t = ()=>{}){var u_5,Q0p;var {stx:C5n}=this;function G1J(Q$H,Y2i){p_V.W3G();return function({quotes:R$H, moreAvailable:l0w, error:Y8i}){if(Y2i.symbol !== c_a.symbol || O7U !== h85.interval || r7Q !== h85.timeUnit){return;;}c_a.loadingMore=!"1";if(Y8i){return J8t(Y8i);}R$H=Q$H.cleanup(C5n,null,R$H,S$g.QuoteFeed.PAGINATION,Y2i);if(typeof l0w === "boolean"){c_a.moreAvailable=l0w;}else {c_a.moreAvailable=!!R$H.length;}c_a.endPoints.begin=R$H[0].DT;S$g.addMemberToMasterdata({stx:C5n,chart:c_a,data:R$H,fields:[("934" << 64,356.46) === 339.8?783 === (7080,9410)?!({}):("z",!!1):"*"],noCleanupDates:!""});C5n.createDataSet();C5n.draw();};}var {chart:c_a, layout:h85}=C5n;var {masterData:Q7X, dataSet:A2N}=c_a;var {interval:O7U, timeUnit:r7Q}=h85;u_5=this.makeParams(c_a.symbol,c_a.symbolObject,c_a);Q0p=this.getQuoteFeed(u_5);if(c_a.loadingMore || this.loadingNewChart || C5n.currentlyImporting || !Q7X.length || !Q0p || C5n.maxDataSetSize && A2N.length > C5n.maxDataSetSize){return J8t(null);}p_V.W5N();c_a.loadingMore=!"";u_5.originalState=Object.assign({},u_5);u_5.startDate=W1Z;u_5.endDate=Q7X[0].DT;S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.PAGINATION,Q0p.engine,u_5,G1J(this,u_5));};S$g.ChartEngine.Driver.prototype.barsToFetch=function(x89){var T7O,u8r,T8Z,H3Q;T7O="w";T7O+="e";T7O+="e";T7O+="k";if(!S$g.isValidNumber(this.tickMultiplier)){this.tickMultiplier=+"2";}u8r=this.stx.layout.interval;T8Z=x89.stx.layout.periodicity;if((u8r == "month" || u8r == T7O) && !this.stx.dontRoll){T8Z*=u8r == "week"?7:30;}H3Q=x89.stx.chart.maxTicks * T8Z;return H3Q * this.tickMultiplier;};p_V.W5N();S$g.ChartEngine.Driver.determineStartDate=function(z5w,r5q,z0k){var A9P,o47,A2r;A9P=301845622;o47=1812588392;A2r=2;for(var Q03=1;p_V.l5h(Q03.toString(),Q03.toString().length,+"64734") !== A9P;Q03++){return this.determineStartOrEndDate(z5w,r5q,z0k,!!({}));}if(p_V.l5h(A2r.toString(),A2r.toString().length,9095) !== o47){return this.determineStartOrEndDate(z5w,r5q,z0k,!"1");}};S$g.ChartEngine.Driver.determineStartOrEndDate=function(c$4,t2N,m79,A8H){var t_M;if(A8H || c$4.fetchMaximumBars){t_M=c$4.startDate || t2N.previous(m79);}else {t_M=c$4.future?t2N.next(m79):new Date();}return t_M;};S$g.ChartEngine.Driver.prototype.makeParams=function(o2M,h9M,H1A){var Z0y,r9X,R7u,k3w,o$X,G_1,g2E,l3e,I0a,k$a,B8$,Q7b;Z0y=this.stx;r9X=Z0y.layout.interval;R7u=this.barsToFetch({stx:Z0y});if((r9X == "month" || r9X == "week") && !Z0y.dontRoll){k3w="d";k3w+="a";k3w+="y";r9X=k3w;}o$X=this.getQuoteFeed({interval:r9X,symbol:o2M,symbolObject:h9M});G_1=o$X && o$X.behavior;g2E=S$g.shallowClone(G_1) || ({});g2E.behavior=G_1;l3e=!!"";I0a=[];if(H1A.market && H1A.market.getSessionNames){I0a=H1A.market.getSessionNames();}if(Z0y.extendedHours){if(Z0y.extendedHours.filter){l3e=!!1;}else {k$a=-323888069;B8$=1668079439;p_V.s$9(1);Q7b=p_V.v$j(0,"2");for(var H4F=1;p_V.l5h(H4F.toString(),H4F.toString().length,84645) !== k$a;H4F++){l3e=Z0y.layout.extended;Q7b+=2;}if(p_V.m6F(Q7b.toString(),Q7b.toString().length,+"56844") !== B8$){l3e=Z0y.layout.extended;}I0a=I0a.filter(function(W3A){p_V.W3G();return W3A.enabled || Z0y.layout.marketSessions[W3A.name];});}}else {I0a=I0a.filter(function(Z69){p_V.W5N();return Z69.enabled;});}for(var k9r="0" ^ 0;k9r < I0a.length;k9r++){I0a[k9r]=I0a[k9r].name;;}S$g.extend(g2E,{stx:Z0y,symbol:o2M,symbolObject:h9M,chart:H1A,interval:r9X,extended:l3e,period:1,ticks:R7u,additionalSessions:I0a,quoteDriverID:this.id},!![]);if(!g2E.symbolObject){g2E.symbolObject={symbol:o2M};}if(!isNaN(g2E.interval)){g2E.period=parseInt(g2E.interval,10);g2E.interval=Z0y.layout.timeUnit;if(!g2E.interval){g2E.interval="minute";}}return g2E;};S$g.ChartEngine.Driver.prototype.newChart=function(Q4R,f_I){var F$a,u$3,A$Y,s9V,N4$,B1u,Q12,h0W,g9y;F$a=this.stx;function b$y(e9P,w_3){var M7Z;M7Z="n";M7Z+="ewChart";if(h0W.prefetchAction){h0W.prefetchAction(M7Z);}p_V.W3G();return function(q4p){var u5K,Y2S,h4h,f8I;u5K=w_3.chart;Y2S=q4p.quotes;h4h=!({});if(u$3 == u5K.symbol && A$Y == F$a.layout.interval && s9V == F$a.layout.timeUnit){e9P.loadingNewChart=![];if(!q4p.error){Y2S=e9P.cleanup(F$a,null,Y2S,S$g.QuoteFeed.INITIAL,w_3);F$a.setMasterData(Y2S,u5K,{noCleanupDates:!!"1"});u5K.endPoints={};u5K.endPoints.begin=Y2S[0]?Y2S[0].DT:w_3.startDate;u5K.endPoints.end=Y2S[0]?Y2S[Y2S.length - 1].DT:w_3.endDate;if(!Y2S){u5K.moreAvailable=![];u5K.upToDate=!!({});}else {u5K.moreAvailable=q4p.moreAvailable === !"1"?!"1":!!({});u5K.upToDate=q4p.upToDate;}u5K.attribution=q4p.attribution;if(Q4R.initializeChart){F$a.initializeChart();}F$a.createDataSet();h4h=!0;}else {Q12.engine.announceError(w_3.originalState,q4p);}}else {if(f_I){f_I("orphaned");}return;}for(var x2G in u5K.series){u5K.series[x2G].endPoints={};u5K.series[x2G].moreAvailable=null;u5K.series[x2G].upToDate=null;}f8I=u5K.masterData;if(f8I && f8I.length){w_3.startDate=f8I[0].DT;w_3.endDate=f8I[f8I.length - 1].DT;}if(h0W.callback){h0W.callback(w_3);}e9P.loadDependents(w_3,function(){if(h4h && !w_3.nodraw){e9P.stx.home();}if(f_I){f_I(q4p.error);}e9P.stx.dispatch("newChart",{stx:e9P.stx,symbol:e9P.stx.chart.symbol,symbolObject:e9P.stx.chart.symbolObject,moreAvailable:e9P.stx.chart.moreAvailable,upToDate:e9P.stx.chart.upToDate,quoteDriver:e9P});e9P.resetRefreshInterval(h0W.refreshInterval,h0W);},S$g.QuoteFeed.INITIAL);};}u$3=Q4R.symbol;A$Y=F$a.layout.interval;s9V=F$a.layout.timeUnit;N4$=Q4R.chart;N4$.moreAvailable=null;N4$.upToDate=null;N4$.loadingMore=!!"";N4$.attribution=null;B1u=this.makeParams(u$3,Q4R.symbolObject,N4$);S$g.extend(B1u,Q4R,!!({}));Q12=this.getQuoteFeed(B1u);h0W=B1u.behavior;if(F$a.fetchMaximumBars[F$a.layout.aggregationType] || Q4R.fetchMaximumBars){if(!F$a.maxMasterDataSize || h0W.maximumTicks < F$a.maxMasterDataSize){B1u.ticks=h0W.maximumTicks;}else {B1u.ticks=F$a.maxMasterDataSize;}B1u.fetchMaximumBars=!!1;}this.loadingNewChart=!!1;this.updatingChart=!({});B1u.originalState=S$g.shallowClone(B1u);g9y=b$y(this,B1u);if(this.stx.isEquationChart(B1u.symbol)){S$g.fetchEquationChart(B1u,g9y);}else if(Q12){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.INITIAL,Q12.engine,B1u,g9y);}};S$g.QuoteFeed.INITIAL=1;S$g.QuoteFeed.UPDATE=+"2";S$g.QuoteFeed.PAGINATION=3;S$g.QuoteFeed.SERIES=4;S$g.ChartEngine.Driver.fetchData=function(B2I,L57,F3P,w6N){if(!F3P.symbol){return w6N({quotes:[]});}if(L57.v2QuoteFeed){if(typeof L57.subscribe !== "function"){S$g.ChartEngine.Driver.fetchDataInContext(B2I,L57,F3P,w6N);}else {S$g.ChartEngine.Driver.fetchDataInContext(B2I,L57,F3P,(function(I3C){if(!I3C.error){this.checkSubscriptions(F3P.stx);}p_V.W3G();w6N(I3C);}).bind(L57));}}else {F3P.stx.convertToDataZone(F3P.startDate);F3P.stx.convertToDataZone(F3P.endDate);L57.fetch(F3P,w6N);}};function s9Q(){}S$g.ChartEngine.Driver.fetchDataInContext=function(f7G,f7P,n5v,o$5){var m4q,I$g,y5L,a$8,C6h,X4u,A6y,o2A,x6i,J6r;C6h=n5v.stx;if(!C6h.chart.market.newIterator){X4u="quoteFeed feature requires first acti";X4u+="vating m";X4u+="arket feature";X4u+=".";console.error(X4u);return;}if(f7G === S$g.QuoteFeed.SERIES){n5v.series=!!({});f7G=S$g.QuoteFeed.INITIAL;if(n5v.endDate && !n5v.startDate || n5v.future){f7G=S$g.QuoteFeed.PAGINATION;}else if(n5v.startDate && !n5v.endDate){f7G=S$g.QuoteFeed.UPDATE;}}A6y=Math.min(n5v.ticks,n5v.maximumTicks);if(f7P.maxTicks){A6y=Math.min(A6y,f7P.maxTicks);}o2A=n5v.symbolObject.masterSymbol || n5v.symbol;p_V.W3G();switch(f7G){case S$g.QuoteFeed.UPDATE:if(C6h.isHistoricalModeSet){C6h.quoteDriver.updatingChart=!1;return;}if(n5v.startDate){x6i=n5v.startDate;}else {x6i=new Date();p_V.s$9(1);x6i.setHours(0,0,0,p_V.V9a(0,"0"));}if(typeof f7P.fetchUpdateData === "function"){f7P.fetchUpdateData(o2A,C6h.convertToDataZone(x6i),n5v,o$5);}break;case S$g.QuoteFeed.INITIAL:a$8=n5v.endDate || new Date();m4q={begin:a$8,interval:n5v.interval,periodicity:n5v.interval == "tick"?C6h.chart.xAxis.futureTicksInterval:n5v.period,outZone:C6h.dataZone};I$g=C6h.chart.market.newIterator(m4q);y5L=S$g.ChartEngine.Driver.determineStartDate(n5v,I$g,A6y);if(n5v.endDate){a$8=n5v.endDate;}if(typeof f7P.fetchInitialData === "function"){f7P.fetchInitialData(o2A,y5L,C6h.convertToDataZone(a$8),n5v,o$5);}break;case S$g.QuoteFeed.PAGINATION:m4q={begin:n5v.endDate || n5v.startDate,interval:n5v.interval,periodicity:n5v.interval == "tick"?C6h.chart.xAxis.futureTicksInterval:n5v.period,outZone:C6h.dataZone};I$g=C6h.chart.market.newIterator(m4q);J6r=S$g.ChartEngine.Driver.determineStartOrEndDate(n5v,I$g,A6y,!n5v.future);y5L=n5v.startDate || J6r;a$8=n5v.endDate || J6r;if(!n5v.startDate){n5v.stx.convertToDataZone(a$8);}else {n5v.stx.convertToDataZone(y5L);}if(typeof f7P.fetchPaginationData === "function"){if(C6h.maxMasterDataSize && C6h.maxMasterDataSize <= C6h.masterData.length){return;}f7P.fetchPaginationData(o2A,y5L,a$8,n5v,function(I4n){if(a$8 >= Date.now()){C6h.isHistoricalModeSet=![];}if(o$5){o$5(I4n);}});}break;default:console.error("Illegal fetchData constant");}};};Y=r_j=>{var n5f;n5f=typeof _CIQ !== "undefined"?_CIQ:r_j.CIQ;n5f.ChartEngine.prototype.addSeries=function(h4V,a7K,N3t){var H1u,B4U,V2E,P3x,y1D,s$v,N6S,b_G,n__,q75,X07,M0U,l4T,n$u,Z2V,V9B,E_7,v6k;H1u="addSeri";H1u+="es";B4U=this.runPrepend(H1u,arguments);if(B4U){return B4U;}V2E=h4V?h4V:null;P3x=h4V;if(!h4V){h4V=n5f.uniqueID();}if(a7K && a7K.panel === !![]){a7K.panel=h4V;}y1D={parameters:a7K?n5f.clone(a7K):{},yValueCache:[],display:V2E,id:h4V,loading:a7K?a7K.loadData !== !"1":!!"1"};y1D.parameters.yAxis=a7K && a7K.yAxis;a7K=y1D.parameters;if(a7K.symbol){P3x=a7K.symbol;}function p0l(n5P){return function(h2m){var v26,A$O;if(!h2m.error){v26=h2m.quotes;A$O=a7K.fillGaps;if(!X07.cleanupGaps){A$O=!!0;}v26=X07.doCleanupGaps(v26,X07.chart,{cleanupGaps:A$O});X07.updateChartData(v26,X07.chart,{secondarySeries:P3x,noCreateDataSet:!![],noCleanupDates:!!({}),allowReplaceOHL:!!1});y1D.loading=!({});y1D.moreAvailable=h2m.moreAvailable;y1D.upToDate=h2m.upToDate;D3h(X07,y1D);}if(a7K.action !== null && !b_G.length){X07.dispatch(M0U?"symbolImport":"symbolChange",{stx:X07,symbol:n5P.symbol,symbolObject:n5P.symbolObject,action:a7K.action,id:y1D.id,parameters:a7K});}if(N3t){N3t.call(X07,h2m.error,y1D);}};}function D3h(K1z,g00){var H1N=i6UVR;var R2O,s_A,t6L,y1q,h8$,P9o,v1C,Z0i;R2O="L";R2O+="i";R2O+="n";R2O+="es";s_A=a7K.renderer || R2O;t6L=a7K.name || h4V;if(a7K.yAxis && !(a7K.yAxis instanceof n5f.ChartEngine.YAxis) && !M0U){a7K.yAxis.name=t6L;}if(!a7K.renderer && !a7K.name && !a7K.color && !a7K.chartType){return;}y1q=K1z.getSeriesRenderer(t6L);if(!y1q){h8$={name:t6L,overChart:a7K.overChart !== !({}),useChartLegend:!![]};if(a7K.chartType){y1q=n5f.Renderer.produce(a7K.chartType,n5f.extend({highlightable:a7K.highlightable,dependentOf:a7K.dependentOf,panel:a7K.panel,yAxis:a7K.yAxis,baseline:a7K.baseline},h8$));}else {n5f.ensureDefaults(a7K,h8$);y1q=new n5f.Renderer[s_A]({params:a7K});}P9o=-+"1330833430";v1C=-158649269;Z0i=2;for(var V5a=1;H1N.l5h(V5a.toString(),V5a.toString().length,+"31078") !== P9o;V5a++){if(!y1q){return;}H1N.O_b(42);Z0i+=H1N.V9a("2",2);}if(H1N.l5h(Z0i.toString(),Z0i.toString().length,79750) !== v1C){if(~y1q){return;}}K1z.setSeriesRenderer(y1q);}y1q.attachSeries(h4V,a7K);if(a7K.loadData !== !!""){y1q.ready();}K1z.layout.symbols=K1z.getSymbols({"include-parameters":!![],"exclude-studies":!0});K1z.changeOccurred("layout");}if(a7K.isComparison){a7K.shareYAxis=!![];}if(a7K.yAxis && !(a7K.yAxis instanceof n5f.ChartEngine.YAxis)){a7K.yAxis=new n5f.ChartEngine.YAxis(a7K.yAxis);;}n5f.ensureDefaults(a7K,{chartName:this.chart.name,symbolObject:{symbol:P3x},panel:this.chart.panel.name,fillGaps:!({}),action:"add-series"});if(("display" in a7K)){y1D.display=a7K.display;}s$v=this.charts[a7K.chartName];N6S=a7K.symbolObject;P3x=a7K.symbol=N6S.symbol;if(!y1D.display){y1D.display=P3x || a7K.field;}y1D.endPoints={};if(!a7K.gapDisplayStyle && a7K.gapDisplayStyle !== !"1"){a7K.gapDisplayStyle=a7K.gaps;}if(a7K.isComparison){if(a7K.gapDisplayStyle === undefined){a7K.gapDisplayStyle="transparent";}}b_G=this.getSeries({symbolObject:N6S,chart:s$v,includeMaster:!0});n__=a7K.panel;if(!this.panels[n__]){q75=a7K.yAxis || new n5f.ChartEngine.YAxis();q75.name=h4V;this.createPanel(h4V,n__,null,null,q75);if(!this.preferences.dragging || !this.preferences.dragging.series){a7K.highlightable=![];}}else {if(!a7K.yAxis && !a7K.shareYAxis){a7K.yAxis=new n5f.ChartEngine.YAxis({name:h4V,position:"none"});}}s$v.series[h4V]=y1D;X07=this;M0U=this.currentlyImporting;if(a7K.isComparison && s$v.forcePercentComparison && a7K.panel == s$v.panel.name && (!a7K.yAxis || a7K.yAxis == s$v.yAxis)){this.setChartScale("percent");}l4T=s$v.masterData;if(!l4T){l4T=s$v.masterData=this.masterData=[];}n$u=l4T.length;if(a7K.data && !a7K.data.useDefaultQuoteFeed){Z2V={symbol:P3x,symbolObject:N6S,action:a7K.action};p0l(Z2V)({quotes:a7K.data});}else if(b_G.length){y1D.endPoints=b_G[0].endPoints;y1D.loading=b_G[0].loading;D3h(this,y1D);if(N3t){setTimeout(function(){N3t.call(X07,null,y1D);},0);}}else if(this.quoteDriver && a7K.loadData !== !!""){V9B=this.quoteDriver;E_7=V9B.makeParams(P3x,N6S,s$v);if(n$u){E_7.startDate=l4T[0].DT;E_7.endDate=this.isHistoricalMode()?l4T[l4T.length - ("1" ^ 0)].DT:new Date();}if(E_7.stx.isEquationChart(E_7.symbol)){n5f.fetchEquationChart(E_7,p0l(E_7));}else {v6k=V9B.getQuoteFeed(E_7);if(v6k){n5f.ChartEngine.Driver.fetchData(4,v6k.engine,E_7,p0l(E_7));}}}else {D3h(this,y1D);if(N3t){N3t.call(this,null,y1D);}}this.runAppend("addSeries",arguments);return y1D;};n5f.ChartEngine.prototype.getSeries=function(D43){var L62,h$J,I4Y,y57,I3S;L62=D43.chart?D43.chart:this.chart;h$J=L62.series;I4Y=D43.symbolObject;if(!I4Y){I4Y={symbol:D43.symbol};}y57=[];for(var Q3Q in h$J){I3S=h$J[Q3Q];if(n5f.symbolEqual(I4Y,I3S.parameters.symbolObject)){y57.push(I3S);}}i6UVR.W3G();if(D43.includeMaster){if(n5f.symbolEqual(I4Y,L62.symbolObject)){y57.push({});}}return y57;};n5f.ChartEngine.prototype.modifySeries=function(s$c,Y6j,a46){var o8X,s9v,u2q,p5l,G4f,L1S,g_h,g0s,x3l,U6W,h6V,p9d,n9H,o0F,A58,s90,X2W;o8X="modi";o8X+="fySe";o8X+="rie";o8X+="s";s9v="stri";s9v+="ng";u2q="modif";u2q+="ySerie";u2q+="s";if(this.runPrepend(u2q,arguments)){return;}if(!Y6j){return;}if(typeof s$c === s9v){L1S=Y6j.chartName?this.charts[Y6j.chartName]:this.chart;G4f=s$c;p5l=L1S.series[G4f];}else {p5l=s$c;G4f=p5l.id;L1S=this.charts[p5l.parameters.chartName];}if(!p5l){return;}n5f.extend(p5l.parameters,Y6j,!0);this.getRendererFromSeries(G4f).modifyRenderer(Y6j);g_h=p5l.parameters;for(var H2i in L1S.seriesRenderers){x3l=L1S.seriesRenderers[H2i];U6W=x3l.params;h6V=x3l.seriesParams;for(var L$G=0;L$G < h6V.length;++L$G){p9d=h6V[L$G];n9H=this.panels[p9d.panel];o0F=n9H && n9H.yAxis.name;if(p9d.id === p5l.id){if(g_h.panel === !!({})){g_h.panel=g_h.dependentOf || g_h.name;}U6W.panel=g_h.panel;if(Y6j.yAxis){if(!(Y6j.yAxis instanceof n5f.ChartEngine.YAxis)){Y6j.yAxis=new n5f.ChartEngine.YAxis(Y6j.yAxis);;}U6W.yAxis=Y6j.yAxis;}if(g_h.panel != p9d.panel && U6W.name == o0F){this.electNewPanelOwner(p9d.panel);;}else {A58=this.getYAxisByName(g_h.panel,U6W.name);if(A58 && g_h.yAxis && A58.name !== g_h.yAxis.name){A58.name=this.electNewYAxisOwner(A58);}}if(!g_h.field){g_h.field=null;}x3l.attachSeries(G4f,n5f.ensureDefaults(g_h,p9d));if(!g_h.field){g_h.field=g_h.subField;}delete g_h.subField;if(g_h.isComparison && L1S.forcePercentComparison && g_h.panel == L1S.panel.name && (!p5l.parameters.yAxis || g_h.yAxis.name == L1S.yAxis.name)){this.setChartScale("percent");}g0s=x3l;break;}}}this.changeOccurred("layout");n5f.getFn("Drawing.updateSource")(this,p5l.parameters.symbol || G4f,null,p5l.parameters.panel);this.runAppend(o8X,arguments);if(a46 !== !!1){s90=g0s.getDependents(this);for(var l34=0;l34 < s90.length;l34++){this.modifySeries(s90[l34].params.name,{panel:g0s.params.panel,yAxis:p5l.parameters.yAxis},!!({}));}X2W=L1S.seriesRenderers[g0s.params.dependentOf];if(X2W){if(X2W.params.yAxis != p5l.parameters.yAxis || X2W.params.panel != g0s.params.panel){this.modifySeries(g0s.params.dependentOf,{panel:g0s.params.panel,yAxis:p5l.parameters.yAxis},!0);}}}this.draw();return p5l;};n5f.ChartEngine.prototype.deleteSeries=function(T1w,l8t,I1C){var t_I,E4D,h7I,F_Y,C_y,b9l,f6H,N0S,f3X,J1k;t_I="symbolCha";t_I+="nge";E4D="o";i6UVR.W5N();E4D+="bject";h7I="re";h7I+="mov";h7I+="e-seri";h7I+="es";if(this.runPrepend("deleteSeries",arguments)){return;}I1C=I1C?I1C:{};F_Y=I1C.action?I1C.action:h7I;if(typeof T1w === E4D){C_y=T1w.id;l8t=l8t || this.charts[T1w.parameters.chartName];}else {C_y=T1w;l8t=l8t || this.chart;}b9l=l8t.series[C_y];if(!b9l){return;}f6H=b9l.parameters.loadData;N0S=b9l.parameters.symbolObject;delete l8t.series[C_y];f3X=this.getSeries({symbolObject:N0S,includeMaster:!![]});if(f6H === !!0){f3X.push(C_y);}if(!f3X.length){this.cleanMasterData(N0S,l8t);}J1k=this.panels[b9l.parameters.panel];if(J1k){this.checkForEmptyPanel(J1k);}this.createDataSet();if(!f3X.length){this.dispatch(this.currentlyImporting?"symbolImport":t_I,{stx:this,symbol:N0S.symbol,symbolObject:N0S,id:C_y,action:F_Y});}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}this.runAppend("deleteSeries",arguments);};n5f.ChartEngine.prototype.removeSeries=function(o8j,y4s){var A4b,P1R,A6g,s_9,i$z,X0d,t_B,O7u;A4b="removeSerie";A4b+="s";if(this.runPrepend("removeSeries",arguments)){return;}A6g=!({});if(typeof o8j === "object"){P1R=o8j.id;y4s=y4s || this.charts[o8j.parameters.chartName];}else {P1R=o8j;y4s=y4s || this.chart;}for(var N5g in y4s.seriesRenderers){s_9=y4s.seriesRenderers[N5g];i$z=this.panels[s_9.params.panel];X0d=i$z && i$z.yAxis.name;for(var i_Z=s_9.seriesParams.length - 1;i_Z >= 0;i_Z--){t_B=s_9.seriesParams[i_Z];if(t_B.id === P1R){s_9.removeSeries(P1R);if(s_9.seriesParams.length < 1){this.removeSeriesRenderer(s_9);if(s_9.params.name == X0d){this.electNewPanelOwner(s_9.params.panel);}else {if(!this.checkForEmptyPanel(s_9.params.panel)){O7u=this.getYAxisByName(i$z,s_9.params.name);if(O7u){O7u.name=O7u.studies[0] || O7u.renderers[+"1"];}}}}A6g=!![];}}}if(!A6g){this.deleteSeries(P1R,y4s);}this.resetDynamicYAxis();this.draw();this.resizeChart();this.runAppend(A4b,arguments);};n5f.Comparison=n5f.Comparison || (function(){});n5f.Comparison.initialPrice=100;n5f.Comparison.getInitialPrice=function(w1g){var Q0D,C1v,S9x,m9e;Q0D="n";i6UVR.W3G();Q0D+="um";Q0D+="be";Q0D+="r";if(w1g.initialComparisonPrice){return w1g.initialComparisonPrice;}w1g.initialComparisonPrice=100;C1v=n5f.Comparison.initialPrice;if(typeof C1v == Q0D){w1g.initialComparisonPrice=C1v;}if(typeof C1v == "string"){if(w1g.series[C1v] || C1v === ""){S9x="Close";if(w1g.defaultPlotField){if(!w1g.highLowBars){S9x=w1g.defaultPlotField;}}for(var e8o=w1g.dataSet.length - w1g.scroll - 1;e8o < w1g.dataSet.length;e8o++){m9e=w1g.dataSet[e8o];if(m9e){if(m9e[C1v] && m9e[C1v][S9x]){w1g.initialComparisonPrice=m9e[C1v][S9x];break;}else if(C1v === "" && m9e[S9x]){w1g.initialComparisonPrice=m9e[S9x];break;}}}}}return w1g.initialComparisonPrice;};n5f.Comparison.priceToPercent=function(L1I,m4w,S1t){var p1h=i6UVR;var s2m;s2m=n5f.Comparison.baseline || S1t;p1h.W5N();p1h.s$9(71);var l7W=p1h.v$j(10014,14,130066,18,8);p1h.s$9(27);var K9C=p1h.V9a(10,20,1590120,160000,14);return Math.round((S1t - s2m) / s2m * +"100" * l7W) / K9C;};n5f.Comparison.percentToPrice=function(P99,a0s,S0z){var B3m;B3m=n5f.Comparison.baseline || 1;i6UVR.O_b(97);return i6UVR.V9a(S0z,100,"1",B3m);};n5f.Comparison.priceToRelative=function(W$5,a$E,u4i){var S_8,E08;S_8=n5f.Comparison.baseline || u4i;E08=n5f.Comparison.getInitialPrice(a$E);i6UVR.s$9(98);return i6UVR.v$j(u4i,E08,S_8);};n5f.Comparison.relativeToPrice=function(Q2I,L8$,k4d){var r54,S8X;r54=n5f.Comparison.baseline || "1" ^ 0;i6UVR.W3G();S8X=n5f.Comparison.getInitialPrice(L8$);i6UVR.s$9(98);return i6UVR.V9a(k4d,r54,S8X);};n5f.Comparison.createComparisonSegmentInner=function(r0p,X58){var e0j=i6UVR;var w7U,W3T,k7V,t87,Z9I,y0X,c_e,W9E,y3s,e_6,j69,O6G,W9a,h1F,Z9d,x2I,s6i,Q3C,H8c,l6Q,Y2x,n8r,N8Q,h2M;w7U=[];e0j.W3G();for(W3T in X58.series){Z9I=X58.series[W3T].parameters;if(Z9I.isComparison){w7U.push(Z9I.symbol);}}y0X=["Close","Open","High","Low","iqPrevClose"];c_e=r0p.chart.highLowBars;if(X58.defaultPlotField && !c_e){y0X.unshift(X58.defaultPlotField);}W9E=y0X[0];y3s=r0p.layout.studies;for(var x$E in y3s){e_6=y3s[x$E];k7V=r0p.panels[e_6.panel];t87=e_6.getYAxis(r0p);if(!k7V || k7V.yAxis != t87)continue;for(W3T in e_6.outputMap){y0X.push(W3T);}for(var B1N=0;B1N <= 2;B1N++){y0X.push(e_6.name + "_hist" + (B1N?B1N:""));}if(e_6.referenceOutput){y0X.push(e_6.referenceOutput + ((3912,+"217.38") < 8162?8257 != (17.64,931)?" ":("k",3.77e+3):3.73e+3) + e_6.name);}}for(var b$8 in r0p.plugins){j69=r0p.plugins[b$8];if(!j69.transformOutputs)continue;for(W3T in j69.transformOutputs){y0X.push(W3T);}}X58.initialComparisonPrice=null;X58.dataSegment=[];O6G=null;e0j.s$9(99);var P4i=e0j.V9a(2,31,15);W9a=X58.dataSet.length - X58.scroll - P4i;if(r0p.startComparisonsAtFirstVisibleBar){W9a+=1;}e0j.O_b(1);var H61=e0j.v$j(17,20);h1F=X58.maxTicks + H61;for(var F20=0;F20 <= h1F;F20++){if(F20 == h1F){F20=-1;}e0j.O_b(0);Z9d=e0j.V9a(W9a,F20);if(Z9d < X58.dataSet.length && Z9d >= 0){x2I=X58.dataSet[Z9d];s6i=x2I[W9E];if(!O6G){if(s6i === 0 || s6i === null){if(F20 < 0)break;else continue;;}O6G=n5f.clone(x2I);}if(!x2I.transform){x2I.transform={cache:{},DT:x2I.DT,Date:x2I.Date};}if(!n5f.Comparison.baseline && s6i){O6G=n5f.clone(x2I);}n5f.Comparison.baseline=O6G[W9E];for(Q3C="0" ^ 0;Q3C < y0X.length;Q3C++){W3T=y0X[Q3C];if(x2I[W3T] || x2I[W3T] === 0){x2I.transform[W3T]=X58.transformFunc(r0p,X58,x2I[W3T]);}}for(Q3C=+"0";Q3C < w7U.length;Q3C++){W3T=w7U[Q3C];H8c=X58.series[W3T];if(F20 == -1 && H8c && H8c.parameters.isComparison){delete x2I.transform[W3T];continue;}l6Q=x2I[W3T];for(var F3_=0;l6Q && F3_ < y0X.length;F3_++){Y2x=l6Q[y0X[F3_]];if(Y2x || Y2x === 0){n8r=O6G[W3T] && O6G[W3T][y0X[0]];if(!n8r && n8r !== 0){if(!O6G[W3T]){O6G[W3T]={};}O6G[W3T][y0X[F3_]]=n8r=Y2x * n5f.Comparison.baseline / x2I[W9E];}if(n8r !== 0){N8Q=n5f.Comparison.baseline || +"1";e0j.O_b(100);h2M=e0j.V9a(Y2x,n8r,N8Q);if(!x2I.transform[W3T]){x2I.transform[W3T]={};}x2I.transform[W3T][y0X[F3_]]=X58.transformFunc(r0p,X58,h2M);}}}}X58.dataSegment.push(x2I);}else if(Z9d < 0){X58.dataSegment.push(null);}if(F20 < 0)break;;}};n5f.Comparison.priceFormat=function(d2B,S_5,W8E){var g04=i6UVR;var w6Y,r81;g04.W5N();if(W8E === null || typeof W8E == "undefined" || isNaN(W8E)){return "";}w6Y=S_5.yAxis.priceTick;r81=d2B.internationalizer;if(r81){if(w6Y >= 5){g04.s$9(9);W8E=r81.percent.format(g04.V9a(W8E,100));}else if(w6Y >= 0.5){g04.O_b(9);W8E=r81.percent1.format(g04.v$j(W8E,100));}else if(w6Y >= 0.05){g04.O_b(9);W8E=r81.percent2.format(g04.V9a(W8E,100));}else if(w6Y >= 0.005){g04.O_b(9);W8E=r81.percent3.format(g04.v$j(W8E,100));}else {g04.s$9(101);W8E=r81.percent4.format(g04.v$j("100",1,W8E));}}else {if(w6Y >= 5){W8E=W8E.toFixed(0) + "%";}else if(w6Y >= "0.5" * 1){g04.O_b(1);var L7H=g04.v$j(9,10);W8E=W8E.toFixed(L7H) + (62.99 === 173.85?401.60:"%");}else if(w6Y >= 0.05){g04.s$9(102);var a2F=g04.v$j(0,6,38,19,11);g04.s$9(103);var N5Q=g04.v$j(9,5,14,56,6);g04.s$9(0);var M1U=g04.V9a(216,3678);g04.s$9(1);var I8H=g04.V9a(35651,40744);g04.s$9(1);var x9z=g04.v$j(11,9461);W8E=W8E.toFixed(a2F) + (("24" * N5Q,M1U) === (+"175",I8H)?x9z:"%");}else if(w6Y >= 0.005){g04.O_b(104);var I$e=g04.v$j(4,16,15,0);W8E=W8E.toFixed(I$e) + "%";}else {g04.s$9(105);var h6m=g04.v$j(12,7,66,7,1);g04.O_b(106);var y$1=g04.v$j(104,20,19,16,9);g04.s$9(107);var Q2V=g04.v$j(13,5859,1,20,367);W8E=W8E.toFixed(h6m) + ((909.67,520.67) == ("307.39" * y$1,716.94)?(![],Q2V):"%");}}if(parseFloat(W8E) === 0 && W8E.charAt(+"0") == (("6365" ^ 0,+"940.61") !== 699.81?"-":+"295.21")){W8E=W8E.substring(1);}return W8E;};n5f.ChartEngine.prototype.setComparison=function(p8c,N9a,x5d){var k7I,h9_,d8U,J8r,o0L;k7I="perce";k7I+="nt";h9_="rel";h9_+="a";h9_+="tive";d8U="s";d8U+="tr";d8U+="i";d8U+="ng";if(!N9a){N9a=this.chart;}if(typeof N9a == d8U){N9a=this.charts[N9a];}if(x5d || x5d === ""){n5f.Comparison.initialPrice=x5d;}if(p8c === !![]){if(N9a.isComparison){return;}p8c="percent";}this.resetDynamicYAxis();J8r=N9a.panel.yAxis;o0L=J8r.priceFormatter == n5f.Comparison.priceFormat;switch(p8c){case h9_:this.setTransform(N9a,n5f.Comparison.priceToRelative,n5f.Comparison.relativeToPrice);if(o0L){J8r.priceFormatter=J8r.originalPriceFormatter?J8r.originalPriceFormatter.func:null;J8r.originalPriceFormatter=null;}J8r.whichSet="dataSegment";N9a.isComparison=!![];break;case k7I:this.setTransform(N9a,n5f.Comparison.priceToPercent,n5f.Comparison.percentToPrice);if(!o0L){J8r.originalPriceFormatter={func:J8r.priceFormatter};J8r.priceFormatter=n5f.Comparison.priceFormat;}J8r.whichSet="dataSegment";N9a.isComparison=!!({});break;default:this.unsetTransform(N9a);if(o0L){J8r.priceFormatter=J8r.originalPriceFormatter?J8r.originalPriceFormatter.func:null;J8r.originalPriceFormatter=null;}J8r.whichSet="dataSet";N9a.isComparison=![];break;}};n5f.ChartEngine.prototype.setChartScale=function(E1c){var M5Z,Y$o;M5Z=this.chart;Y$o={percent:!0,relative:!!({})};if(!E1c){E1c="linear";}if(Y$o[E1c]){this.setComparison(E1c,M5Z,n5f.Comparison.initialPrice);}else if(Y$o[this.layout.chartScale]){this.setComparison(![],M5Z);}this.layout.chartScale=E1c;if(M5Z.canvas){this.draw();}this.changeOccurred("layout");};};g=S8Y=>{var c6m,j71;function C2V(){var Q3P,Q0s,i5b;if(c6m.Share.html2canvasLocation){return c6m.Share.html2canvasLocation;}i6UVR.W3G();Q3P=document.getElementsByTagName("script");for(var X_2=0;X_2 < Q3P.length;X_2++){Q0s=Q3P[X_2];if(Q0s.src && Q0s.src.indexOf("share.js") > -1){i5b="third";i5b+="par";i5b+="ty/";return Q0s.src.replace(/standard\/share\.js/,"") + i5b;}}return "js/thirdparty/";}c6m=typeof _CIQ !== "undefined"?_CIQ:S8Y.CIQ;c6m.Share=c6m.Share || (function(){});c6m.Share.FullChart2PNG=function(U3B,A9K,m1Y){i6UVR.W3G();if(!U3B || !U3B.chart){return;}if(typeof html2canvas === "undefined"){return y2T(function(){i6UVR.W3G();return I6y(U3B,A9K,m1Y);});}j71=html2canvas;I6y(U3B,A9K,m1Y);};c6m.Share.createImage=function(r0s,s84,z8s){var b7R=i6UVR;var b8w,X$V,W1W,v$s,F2u,q4W,z_Y,m$$,c6t,i1Y,u2C,j2h,l8Z,H2P,t8D;b8w="i";b8w+="m";b8w+="g";X$V=[].slice.call(arguments);z8s=X$V.pop();if(s84 === null || typeof s84 != "object"){s84={widthPX:X$V[1],heightPX:X$V[2],imageType:X$V[+"3"]};}W1W=s84.widthPX;v$s=s84.heightPX;F2u=s84.imageType;q4W=r0s.chart.canvas.height;z_Y=r0s.chart.canvas.width;if(r0s.chart.canvas.style.height){q4W=c6m.stripPX(r0s.chart.canvas.style.height);z_Y=c6m.stripPX(r0s.chart.canvas.style.width);}if(W1W && v$s){m$$=-1365210961;c6t=-209622214;i1Y=2;for(var b6s="1" ^ 0;b7R.m6F(b6s.toString(),b6s.toString().length,8753) !== m$$;b6s++){q4W=v$s;z_Y=W1W;i1Y+=2;}if(b7R.m6F(i1Y.toString(),i1Y.toString().length,+"63253") !== c6t){q4W=v$s;z_Y=W1W;}}else if(v$s){u2C=-1835035992;b7R.s$9(29);j2h=-b7R.V9a("1583007615",0);l8Z=2;for(var w5m=1;b7R.m6F(w5m.toString(),w5m.toString().length,48631) !== u2C;w5m++){z_Y=r0s.chart.canvas.width + (q4W - r0s.chart.canvas.height);l8Z+=2;}if(b7R.m6F(l8Z.toString(),l8Z.toString().length,63192) !== j2h){z_Y=r0s.chart.canvas.width * (q4W / r0s.chart.canvas.height);}}else if(W1W){z_Y=W1W;q4W=r0s.chart.canvas.height * (W1W / r0s.chart.canvas.width);}H2P=F2u?"image/" + F2u:"image/png";t8D=document.createElement(b8w);t8D.onload=function(){c6m.Share.FullChart2PNG(r0s,{image:this,width:z_Y,height:q4W,hide:s84.hide},function(x6s,O6z){var E5G;b7R.W3G();if(x6s){E5G="Error producing";E5G+=" canvas snapshot: ";b7R.O_b(0);console.warn(b7R.v$j(E5G,x6s));}else {try{z8s(O6z.toDataURL(H2P));;}catch(h4X){var j6R,Q2Y,l8r;j6R=1709647944;Q2Y=-1990266272;l8r=2;for(var O13=1;b7R.m6F(O13.toString(),O13.toString().length,56683) !== j6R;O13++){console.warn("");z8s(t8D.src);l8r+=2;}if(b7R.l5h(l8r.toString(),l8r.toString().length,12654) !== Q2Y){console.warn("");z8s(t8D.src);}console.warn("Safari devices do not handle CORS enabled images. Using the charts' canvas as a fallback.");z8s(t8D.src);}}});};t8D.src=r0s.chart.canvas.toDataURL(H2P);};function n0H(V$v){var s_e,I9H,O9p,S9v,Z$X;s_e="tex";s_e+="t-align";I9H="fo";I9H+="nt-weight";O9p="f";O9p+="ill";if(!V$v.style){return;}S9v=getComputedStyle(V$v);Z$X=["alignment-baseline","dominant-baseline",O9p,"fill-opacity","font-family","font-size","font-variant",I9H,s_e,"text-anchor"];Z$X.forEach(function(Q1w){i6UVR.W3G();if(!V$v.style[Q1w] && S9v[Q1w]){V$v.style[Q1w]=S9v[Q1w];}});for(var v06 in V$v.children){n0H(V$v.children[v06]);}}c6m.Share.uploadImage=function(L10,w3y,W8A,S1I){var n$S;if(!W8A){W8A={};}W8A.image=L10;n$S=c6m.postAjax(w3y,JSON.stringify(W8A),function(X4V,h3v){i6UVR.W3G();if(X4V != 200){S1I(X4V,null);return;}S1I(null,h3v);});if(!n$S){S1I(0,null);}};function I6y(j1j,F3E,d1c){var B2P,v5t,Q2c,k_Y,F6w,g$8,B2y,X7K,H9l,p1r;i6UVR.W3G();B2P="s";B2P+="v";B2P+="g";if(!F3E){F3E={};}v5t=[];Q2c="ciq-no-share";k_Y=document.querySelector("body");if(F3E.hide && F3E.hide instanceof Array){F6w=F3E.hide.join(", ");g$8=document.querySelectorAll(F6w);for(var l_5=0;l_5 < g$8.length;l_5++){g$8[l_5].classList.add(Q2c);}}k_Y.classList.add("sharing");B2y=j1j.chart.container.getElementsByTagName(B2P);X7K=[];H9l=+"0";for(;H9l < B2y.length;H9l++){p1r=B2y[H9l];X7K.push(p1r.innerHTML);n0H(p1r);}j71(j1j.chart.container,{allowTaint:![],logging:!"1",width:F3E.width || null,height:F3E.height || null,backgroundColor:F3E.background || null,useCORS:!![]}).then(function(L0s){var m4t;m4t="shar";m4t+="i";m4t+="n";m4t+="g";if(d1c){d1c(null,F3E.data?L0s.toDataURL("image/png"):L0s);}for(H9l=0;H9l < B2y.length;H9l++){B2y[H9l].innerHTML=X7K[H9l];}k_Y.classList.remove(m4t);}).catch(function(x4U){var I6P;I6P="sh";I6P+="aring";if(d1c){d1c(x4U);}for(H9l=0;H9l < B2y.length;H9l++){B2y[H9l].innerHTML=X7K[H9l];}k_Y.classList.remove(I6P);});}c6m.Share.shareChart=function(u8X,g5L,W6N){var d1K=i6UVR;d1K.W3G();c6m.Share.createImage(u8X,{},function(j3N){var n$v,A76,j6W,e8G,D7W,K4B;n$v=c6m.uniqueID();A76="https:/";A76+="/share.chartiq.co";A76+="m";d1K.O_b(35);j6W=d1K.V9a("/upload/",n$v,A76);if(g5L){if(g5L.host){A76=g5L.host;}if(g5L.path){d1K.O_b(0);var y1z=d1K.V9a(8588,15);d1K.s$9(0);var J_p=d1K.v$j(9931,19);d1K.O_b(108);var p2H=d1K.V9a(20,2345,53920,5,6);d1K.s$9(109);var m8f=d1K.v$j(31,15,1,1,17);d1K.O_b(26);var F5T=d1K.V9a(5383,8,4325,5);d1K.O_b(37);var N1Z=d1K.V9a(9,6,7845);d1K.O_b(110);var U8C=d1K.v$j(8236,14,1,16,12);d1K.O_b(111);var m7H=d1K.V9a(3,2,564,477);j6W=A76 + g5L.path + (139.87 == (y1z,J_p)?(p2H,"808.95" * m8f) >= (F5T,N1Z)?(U8C,"D"):m7H:"/") + n$v;}}e8G=u8X.getStartDateOffset();D7W={layout:u8X.exportLayout(),drawings:u8X.exportDrawings(),xOffset:e8G,startDate:u8X.chart.dataSegment[e8G].Date,endDate:u8X.chart.dataSegment[u8X.chart.dataSegment.length - 1].Date,id:n$v,symbol:u8X.chart.symbol};K4B={id:n$v,image:j3N,config:D7W};c6m.Share.uploadImage(j3N,j6W,K4B,function(W5c,w46){if(W5c !== null){c6m.alert("error sharing chart: ",W5c);}else {d1K.O_b(0);W6N(d1K.v$j(A76,w46));}});;});};function y2T(I6Y){var X4h,S8i;X4h="unde";i6UVR.W5N();X4h+="fi";X4h+="ned";if(typeof html2canvas === X4h){S8i="unde";S8i+="fi";S8i+="n";S8i+="ed";if(typeof requirejs !== S8i){try{return requirejs(["html2canvas.min.js"],function(v39){j71=v39;return I6Y();});}catch(Y3C){console.warn("Require loading has failed, attempting to load html2canvas manually.");}}c6m.loadScript(C2V() + "html2canvas.min.js",function(){j71=html2canvas;return I6Y();});}else {j71=html2canvas;return I6Y();}}};K=j2G=>{var Y5X=i6UVR;Y5X.W5N();var Q5n;Q5n=typeof _CIQ !== "undefined"?_CIQ:j2G.CIQ;Q5n.ChartEngine.prototype.setRange=function(q3W,s1k){var n3d,O5N,A_M,r68,k3B,I$3,j9S,y8a,P0Q,j1d,v33,c$l,K8k,e3U,L5U,B14,P3_,H0c,h$p,q3A,t02,a3p,X0y,K5D,Z6J,w7G,l3w,t3E,f7f,z$b,g98,z5e,b$G,C55,K$8,Q5W,J6z,I_v,H4B,X5v;n3d="st";n3d+="ri";function j7L(f1X,j28,H6q,o17,i6i,E0n){var k9f,L_5;Y5X.s$9(39);k9f=Y5X.v$j("0",0);Y5X.O_b(1);L_5=Y5X.v$j(j28,f1X);if(Q5n.ChartEngine.isDailyInterval(H6q)){if(H6q == "month"){k9f=L_5 / Q5n.MONTH / o17;}else if(H6q == "week"){k9f=L_5 / Q5n.WEEK / o17;}else {k9f=L_5 / Q5n.DAY / o17;}}else {if(!isNaN(H6q)){if(i6i == "millisecond"){Y5X.s$9(101);k9f=Y5X.v$j(o17,H6q,L_5);}else if(i6i == "second"){k9f=L_5 / Q5n.SECOND / (o17 * H6q);}else {k9f=L_5 / Q5n.MINUTE / (o17 * H6q);}}}return Math.round(k9f);;}n3d+="ng";if(Q5n.isEmpty(q3W)){q3W={dtLeft:arguments[0],dtRight:arguments[1],padding:arguments[2],chart:arguments["3" | 1]};O5N=-985953697;A_M=-549256637;r68=2;for(var J3F=1;Y5X.l5h(J3F.toString(),J3F.toString().length,86618) !== O5N;J3F++){s1k=arguments[1];r68+=2;}if(Y5X.m6F(r68.toString(),r68.toString().length,55147) !== A_M){s1k=arguments[4];}}if(this.staticRange){q3W.goIntoPast=q3W.goIntoFuture=!"";}if(!q3W.chart){q3W.chart=this.chart;}if(typeof q3W.padding == "undefined"){q3W.padding=0;}function i2j(w80){var F7l;if(w80 && v33 === 0){I$3.scroll=Z6J;j1d.setCandleWidth(w7G);j1d.layout.interval=l3w;j1d.layout.periodicity=t3E;j1d.layout.timeUnit=f7f;if(s1k){s1k(w80);}return;}v33++;if(v33 > 10){F7l="CIQ.ChartEngine.setRan";F7l+="ge(): Too many loads (10) from server. Stopping. Check periodicity log";F7l+="ic.";console.log(F7l);f96();return;}f96();;}k3B=!({});Y5X.W5N();I$3=q3W.chart;j9S=typeof q3W.dtLeft === n3d?new Date(q3W.dtLeft):q3W.dtLeft;y8a=new Date();function f96(K1q){var b_g,s5Z,o_7,M4o,J6R,w9t,x04,N7O,q9l,I8k,y1A,P3Z,E1Y,F56,E5h,P9X,w7H,j7y,t62,u3D;b_g="l";b_g+="a";b_g+="y";b_g+="out";if(typeof K1q == "undefined"){K1q=null;}s5Z=0;Y5X.s$9(2);o_7=Y5X.V9a(1,"0");M4o=new Date();J6R=q3W.base;Y5X.W5N();w9t=q3W.periodicity;x04=j1d.layout;if(q3W.goIntoFuture && (!I$3.masterData.length || j9S > I$3.masterData[I$3.masterData.length - 1].DT)){N7O=I$3.masterData.length?I$3.masterData.pop():{DT:j9S};q9l=j1d.doCleanupGaps([N7O,{DT:y8a}],I$3,{cleanupGaps:"gap",noCleanupDates:!0});j1d.setMasterData(I$3.masterData.concat(q9l),I$3,{noCleanupDates:!!({})});j1d.createDataSet(null,null,{appending:!!({})});}I8k=I$3.dataSet;y1A=I8k.length;if(!I8k || y1A === 0){if(s1k){s1k(K1q);}return;}if(J6R === "day" && w9t && w9t.interval === "day"){E1Y=q3W.multiplier;s5Z=y1A < E1Y?0:y1A - E1Y;Y5X.s$9(1);o_7=Y5X.V9a(1,y1A);}else if(J6R === "today" && I8k[y1A - 1].DT.getDate() < M4o.getDate()){F56=new Date(I8k[y1A - 1].DT.getTime());E5h=F56.getTime();P3Z=0;for(var s64=y1A - 1;s64 >= 0;s64--){if(I8k[s64] && I8k[s64].DT.getDate() != F56.getDate()){F56=new Date(+I8k[s64 + 1].DT);Y5X.O_b(6);P3Z=Y5X.v$j(s64,"1");break;}}s5Z=P3Z;Y5X.O_b(1);o_7=Y5X.v$j(1,y1A);}else {P9X="a";P9X+="l";P9X+="l";if(q3W.base != "all" && (j9S.getTime() >= I8k[0].DT.getTime() || q3W.goIntoPast)){s5Z=j1d.tickFromDate(j9S,I$3,null,!![]);}else {s5Z=+"0";}if(q3W.base != P9X && (y8a.getTime() <= I8k[y1A - ("1" ^ 0)].DT.getTime() || q3W.goIntoFuture)){o_7=j1d.tickFromDate(y8a,I$3);if(o_7 > y1A - 1){o_7--;};}else {Y5X.s$9(36);o_7=Y5X.v$j("1",y1A);}}Y5X.O_b(112);w7H=Y5X.v$j(0,s5Z,"1",o_7);if(w7H < 1){if(s1k){s1k(K1q);}return;}j7y=q3W.padding || 0;if(o_7 < y1A - 1){Y5X.s$9(29);j7y=Y5X.v$j("0",32);}t62=(I$3.width - j7y) / w7H;j1d.setCandleWidth(t62,I$3);Y5X.O_b(113);I$3.scroll=Y5X.v$j(1,y1A,o_7,w7H);Y5X.s$9(42);j1d.micropixels=Y5X.V9a("1",1);for(var D2C in j1d.panels){j1d.calculateYAxisMargins(j1d.panels[D2C].yAxis);}if(!q3W.dontSaveRangeToLayout){delete q3W.chart;delete x04.setSpan;x04.range=q3W;;}else {delete x04.range;}j1d.draw();j1d.changeOccurred(b_g);if(!k3B){u3D="periodi";u3D+="ci";u3D+="ty";j1d.dispatch(u3D,{stx:j1d,differentData:z$b,prevPeriodicity:{interval:l3w,periodicity:t3E,timeUnit:f7f}});}if(s1k){s1k(K1q);}}if(q3W.dtRight){y8a=typeof q3W.dtRight === "string"?new Date(q3W.dtRight):q3W.dtRight;}if(!j9S){P0Q=this.standardMarketIterator(y8a,null,I$3);j9S=P0Q.previous(I$3.maxTicks);if(!q3W.periodicity){k3B=!!({});}}I$3.inflectionPoint=j9S;this.layout.range={dtLeft:j9S,dtRight:y8a};j1d=this;v33=0;if(this.quoteDriver){if(k3B){c$l=this.layout.interval;e3U=this.layout.timeUnit;K8k=this.layout.periodicity;}else if(q3W.periodicity){L5U=Q5n.cleanPeriodicity(q3W.periodicity.period,q3W.periodicity.interval,q3W.periodicity.timeUnit);c$l=L5U.interval;e3U=L5U.timeUnit;K8k=L5U.period;}else {B14=y8a.getTime() - j9S.getTime();if(!this.autoPickCandleWidth.turnOn){P3_=this.staticRangePeriodicityMap;H0c=null;for(var q8Y=0;q8Y < P3_.length;q8Y++){h$p=P3_[q8Y];if(B14 / h$p.rangeInMS < 1.001){H0c=h$p;break;}}c$l=H0c.interval;K8k=H0c.periodicity;e3U=H0c.timeUnit;}else {q3A=0;if(this.autoPickCandleWidth.candleWidth){q3A=this.autoPickCandleWidth.candleWidth;}else {q3A=this.chart.barsHaveWidth?5:2;}t02=I$3.width / q3A;a3p=this.dynamicRangePeriodicityMap;c$l=a3p[0].interval;K8k=1;for(var v6m=0;v6m < a3p.length;v6m++){K5D=B14 / a3p[v6m].rangeInMS;if(K5D < t02){if(a3p[v6m - 1]){c$l=a3p[v6m - 1].interval;e3U=a3p[v6m - 1].timeUnit;Y5X.s$9(9);K8k=Math.ceil(Y5X.V9a(X0y,t02));}else {c$l=a3p[v6m].interval;e3U=a3p[v6m].timeUnit;K8k=1;}break;}X0y=K5D;}}}Z6J=this.chart.scroll;w7G=this.layout.candleWidth;l3w=this.layout.interval;t3E=this.layout.periodicity;f7f=this.layout.timeUnit;this.chart.scroll=this.chart.maxTicks=j7L(y8a.getTime(),j9S.getTime(),c$l,K8k,e3U,this.dontRoll);this.layout.candleWidth=this.chart.width / this.chart.maxTicks;z$b=this.needDifferentData({period:K8k,interval:c$l,timeUnit:e3U});if(Object.keys(this.chart.endPoints).length && (this.chart.endPoints.begin > j9S || this.chart.endPoints.end < y8a)){z$b=!!({});}if(!this.chart.masterData || !this.chart.masterData.length || z$b || q3W.forceLoad){g98="w";g98+="e";g98+="e";g98+="k";z5e="mon";z5e+="th";this.layout.interval=c$l;this.layout.periodicity=K8k;this.layout.timeUnit=e3U;if(!this.layout.timeUnit){b$G="minut";b$G+="e";C55="sec";C55+="o";C55+="n";C55+="d";if(Q5n.ChartEngine.isDailyInterval(this.layout.interval)){this.layout.timeUnit=null;}else if(this.layout.interval == "second"){this.layout.timeUnit=C55;}else if(this.layout.interval != "tick"){this.layout.timeUnit=b$G;}}K$8={symbol:I$3.symbol,symbolObject:I$3.symbolObject,chart:I$3,nodraw:!!({})};if(this.layout.interval == "tick"){K$8.startDate=j9S;K$8.endDate=y8a;}if(!this.displayInitialized){K$8.initializeChart=!![];}Q5W={symbol:I$3.symbol,symbolObject:I$3.symbolObject,interval:this.layout.interval};if((Q5W.interval == z5e || Q5W.interval == g98) && !this.dontRoll){Y5X.O_b(29);J6z=-Y5X.v$j("476796062",32);I_v=-1890089088;H4B=2;for(var r2e=1;Y5X.l5h(r2e.toString(),r2e.toString().length,"71383" | 16) !== J6z;r2e++){Q5W.interval="";H4B+=2;}if(Y5X.m6F(H4B.toString(),H4B.toString().length,"63526" ^ 0) !== I_v){Q5W.interval="day";}}X5v=Math.max(this.quoteDriver.getQuoteFeed(Q5W).behavior.bufferSize + 50,200);P0Q=this.standardMarketIterator(j9S,null,I$3);K$8.startDate=new Date(P0Q.previous(X5v).getTime());P0Q=this.standardMarketIterator(y8a,null,I$3);K$8.endDate=new Date(P0Q.next(X5v).getTime());if(K$8.endDate < Date.now()){this.isHistoricalModeSet=!!"1";}this.clearCurrentMarketData(this.chart);clearTimeout(this.streamParameters.timeout);this.quoteDriver.newChart(K$8,i2j);}else {if(this.layout.interval != c$l || this.layout.periodicity != K8k || this.layout.timeUnit != e3U || !this.chart.dataSegment || !this.chart.dataSegment[0] || this.chart.dataSegment[0].DT != I$3.inflectionPoint){this.layout.interval=c$l;this.layout.periodicity=K8k;this.layout.timeUnit=e3U;this.createDataSet();}i2j();}}else {f96();}};Q5n.ChartEngine.prototype.setSpan=function(u1p,c50){var E0t,d8a,F2P,F6X,A27,Q$h,j$n,D$K,e_C,O_U,u8f,B3X,Y_U,h$k,k8i,K9y,B9Q,J1S,U0S,X3m,J4k;E0t="da";E0t+="y";d8a="we";d8a+="ek";F2P="a";F2P+="ll";F6X="obj";F6X+="ec";F6X+="t";A27=arguments[0];Q$h=arguments[1];j$n=arguments[2];D$K=arguments[3];if(typeof u1p == F6X){A27=u1p.period?u1p.period:u1p.multiplier?u1p.multiplier:1;Q$h=u1p.interval?u1p.interval:u1p.base?u1p.base:u1p.span?u1p.span:u1p.period;j$n=u1p.padding;D$K=u1p.chart;}else {u1p={period:A27,interval:Q$h,padding:j$n,chart:D$K};c50=arguments[+"5"];}if(!D$K){D$K=this.chart;}e_C=D$K.market;Q$h=Q$h.toLowerCase();if(Q$h == F2P){u1p.dontSaveRangeToLayout=!"";this.displayAll(u1p,c50);return;}u8f=Q$h;B3X=1;if(Q$h == "today"){u8f="day";}else if(Q$h == "year"){u8f="month";Y5X.O_b(2);B3X=Y5X.V9a(1,"12");}Y_U=Q5n.shallowClone(u1p);h$k={begin:e_C.marketZoneNow(),interval:u8f,period:B3X};function z1K(I8L,s4G){var W05;if(!K9y){return I8L;}W05=7;if(s4G){I8L.setHours(I8L.getHours() + W05);}else {I8L.setHours(I8L.getHours() - W05);if(!e_C.isMarketDate(I8L)){I8L.setDate(I8L.getDate() - +"2");};}return I8L;}k8i=h$k.begin;K9y=Q5n.Market.Symbology.isForexSymbol(D$K.symbol);Y5X.W5N();function k3U(g0A){g0A.setHours(0);g0A.setMinutes(0);g0A.setSeconds(0);Y5X.s$9(39);g0A.setMilliseconds(Y5X.v$j("0",0));return g0A;}if(Q$h === "ytd"){k8i=k3U(k8i);Y5X.O_b(2);k8i.setMonth(Y5X.v$j(1,"0"));k8i.setDate(1);}else if(Q$h === "month"){k8i=k3U(new Date());k8i.setMonth(k8i.getMonth() - A27);}else if(Q$h === "year"){k8i=k3U(new Date());k8i.setFullYear(k8i.getFullYear() - A27);}else if(Q$h === d8a){k8i=k3U(new Date());k8i.setDate(k8i.getDate() - A27 * 7);}else if(Q$h === E0t && A27 == 1 && e_C.isMarketDay()){B9Q=k8i.getHours();J1S=k8i.getMinutes();U0S=k8i.getSeconds();X3m=k8i.getMilliseconds();O_U=e_C.newIterator(h$k);k8i=O_U.previous();k8i.setHours(B9Q,J1S,U0S,X3m);k8i=e_C._convertFromMarketTZ(k8i);}else if(Q$h === "today"){h$k.begin=z1K(k8i,!![]);O_U=e_C.newIterator(h$k);if(e_C.isOpen() || e_C.getPreviousOpen().getDate() == k8i.getDate()){O_U.next();}k8i=O_U.previous();z1K(k8i);Y_U.goIntoFuture=!0;Y_U.dtRight=new Date(+k8i);Y_U.dtRight.setDate(k8i.getDate() + 1);Y_U.dtRight=e_C._convertFromMarketTZ(Y_U.dtRight);if(!K9y){k8i.setHours(O_U.market.zopen_hour);k8i.setMinutes(O_U.market.zopen_minute);k8i.setSeconds(+"0");}k8i=e_C._convertFromMarketTZ(k8i);}else {if(Q$h == "day"){h$k.begin=z1K(k8i,!!({}));}O_U=e_C.newIterator(h$k);if(A27 == 1){A27++;}Y5X.O_b(1);k8i=O_U.previous(Y5X.v$j(1,A27));if(Q$h == "day"){k8i=e_C._convertFromMarketTZ(z1K(k8i));}}Y_U.dtLeft=k8i;if(Y_U.maintainPeriodicity){Y_U.periodicity={};Y_U.periodicity.interval=this.layout.interval;Y_U.periodicity.period=this.layout.periodicity;}D$K.spanLock=![];Y_U.dontSaveRangeToLayout=!!({});J4k=this;this.setRange(Y_U,function(U23){J4k.layout.setSpan=u1p;J4k.changeOccurred("layout");if(Q$h == "today"){D$K.spanLock=!![];;}if(c50){c50(U23);}});};Q5n.ChartEngine.prototype.getSpanCandleWidth=function(S8L){var w$A,c5F,C0$,M0x,o6p,g1v,H_i,t1z,E3W;w$A="Y";w$A+="T";w$A+="D";c5F="w";c5F+="ee";c5F+="k";C0$="d";C0$+="ay";if(!S8L || !S8L.base || !S8L.multiplier){return;}M0x=parseFloat(S8L.multiplier);o6p=S8L.base;g1v=new Date();H_i=new Date();if(o6p == "year"){H_i.setFullYear(H_i.getFullYear() - M0x);}else if(o6p == "month"){H_i.setMonth(H_i.getMonth() - M0x);}else if(o6p == C0$){H_i.setDate(H_i.getDate() - M0x);}else if(o6p == c5F){H_i.setDate(H_i.getDate() - 7 * M0x);}else if(o6p == w$A){H_i.setMonth(+"0");H_i.setDate(1);}Y5X.s$9(114);var h5z=Y5X.v$j(7,2,233,600);t1z=(g1v.getTime() - H_i.getTime()) / 1000 / ("60" << 0) / h5z / +"24";Y5X.s$9(98);t1z=Y5X.v$j(5,t1z,7);E3W=this.chart.width / t1z;return E3W;};Q5n.ChartEngine.prototype.displayAll=function(q$V,Q00){var l1p,c7G,S3i;var {chart:p4s, layout:W9e}=this;if(q$V && q$V.chart){p4s=q$V.chart;}Y5X.W5N();function D3A(){var e3L;if(!p4s.masterData || !p4s.masterData.length){return;}e3L=Q5n.clone(q$V);e3L.dtLeft=p4s.endPoints.begin.DT;e3L.dtRight=p4s.endPoints.end.DT;e3L.periodicity={};e3L.periodicity.interval=W9e.interval;e3L.periodicity.period=W9e.periodicity;e3L.periodicity.timeUnit=W9e.timeUnit;l1p.setRange(e3L,function(i_L){l1p.layout.setSpan={base:q$V.base,multiplier:q$V.multiplier};l1p.changeOccurred("layout");for(var v4G in l1p.panels){l1p.calculateYAxisMargins(l1p.panels[v4G].yAxis);}Y5X.W5N();l1p.draw();if(Q00){Q00(i_L);}});}l1p=this;if(!this.quoteDriver){D3A();return;}c7G=q$V.maintainPeriodicity?{period:W9e.periodicity,interval:W9e.interval,timeUnit:W9e.timeUnit}:{period:1,interval:"month",timeUnit:null};c7G=q$V.periodicity?q$V.periodicity:c7G;c7G=Q5n.cleanPeriodicity(c7G.period,c7G.interval,c7G.timeUnit);S3i=this.needDifferentData(c7G);this.layout.periodicity=c7G.period;this.layout.interval=c7G.interval;this.layout.timeUnit=c7G.timeUnit;if(q$V.forceLoad || S3i){this.clearCurrentMarketData(this.chart);this.quoteDriver.newChart({noDraw:!!({}),symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,chart:this.chart,initializeChart:!"",fetchMaximumBars:!!({})},g3M);}else {if(p4s.moreAvailable || !p4s.upToDate){g3M();}else {this.createDataSet();D3A();}}function g3M(l$d){Y5X.W3G();if(!l$d){l1p.quoteDriver.loadAll(p4s,D3A);}}};};A=I0w=>{var h3N;h3N=typeof _CIQ !== "undefined"?_CIQ:I0w.CIQ;h3N.ChartEngine.prototype.importLayout=function(Y6_,Z48){var r4W=i6UVR;var w6e,c3H,v1w,A5X,V9Q,A5d,n9u,b9Z,w2k,o7J,L4s,U$w,m37,U38,E1h,b7H,l_v,Q18,i2f,I4c,c$6,D4B,k6M,Y6W,b2Q,e93,U48,d8V,Q0I,b7u,k6e,m7l,E96;w6e="o";w6e+="bjec";w6e+="t";if(!Y6_){if(Z48.cb){Z48.cb();}return;}c3H=this;v1w=[];if(typeof Z48 !== w6e){Z48={managePeriodicity:arguments[1],preserveTicksAndCandleWidth:arguments[2]};}A5X=this.layout;V9Q=h3N.shallowClone(A5X);A5d=Z48.managePeriodicity;n9u=Z48.cb;b9Z=Z48.seriesCB;w2k=Z48.noDataLoad;o7J=Z48.preserveTicksAndCandleWidth;L4s=null;if(this.exportDrawings){L4s=this.exportDrawings();this.abortDrawings();}this.currentlyImporting=!!({});for(var i1o in A5X.studies){U$w=A5X.studies[i1o];h3N.getFn("Studies.removeStudy")(this,U$w);}this.overlays={};m37=h3N.shallowClone(this.panels);this.panels={};U38=h3N.clone(Y6_);A5X.periodicity=V9Q.periodicity;function O66(M3K){var w7r,V3j,U_S;if(L4s){c3H.importDrawings(L4s);}c3H.currentlyImporting=![];if(M3K){return;}U_S=[];for(var z_k in c3H.chart.series){if(!c3H.removeSeries)break;V3j=c3H.chart.series[z_k];if(V3j.parameters.bucket == "study"){w7r=!!"1";c3H.removeSeries(V3j);U_S.push(V3j);}}for(var p08=0;p08 < U_S.length;p08++){V3j=U_S[p08];c3H.addSeries(V3j.id,V3j.parameters,B2j);}if(!w7r){c3H.draw();}c3H.updateListeners("layout");c3H.changeOccurred("layout");;function B2j(){r4W.W3G();c3H.createDataSet();l$G(c3H.panels);c3H.calculateYAxisPositions();c3H.draw();}}A5X.interval=V9Q.interval;A5X.timeUnit=V9Q.timeUnit;A5X.setSpan=V9Q.setSpan;A5X.range=V9Q.range;if(o7J){A5X.candleWidth=V9Q.candleWidth;}else {if(!A5X.candleWidth){A5X.candleWidth=8;}}this.setCandleWidth(A5X.candleWidth);if(A5X.flipped){this.flipChart(A5X.flipped);}E1h=U38.panels;i2f=function(O_h,H2c){return O_h.index < H2c.index?-1:1;};for(b7H in E1h){if(!(("index" in E1h[b7H]))){i2f=null;}l_v=E1h[b7H];l_v.name=b7H;v1w.push(l_v);}A5X.panels={};I4c=null;function w$d(){r4W.W3G();c3H.calculateYAxisPositions();l$G(c3H.panels);if(b9Z){b9Z();}}if(v1w.length > 0){if(i2f){v1w.sort(i2f);}for(var b4t=0;b4t < v1w.length;++b4t){l_v=v1w[b4t];Q18=l_v.yAxis?new h3N.ChartEngine.YAxis(l_v.yAxis):null;this.stackPanel(l_v.display,l_v.name,l_v.percent,l_v.chartName,Q18);if(l_v.soloing){I4c=this.panels[l_v.name];}}}if(h3N.isEmpty(E1h)){c$6="ch";c$6+="a";c$6+="rt";D4B="c";D4B+="h";D4B+="ar";D4B+="t";this.stackPanel("chart",D4B,1,c$6);}this.resizeCanvas();for(var c_M in m37){k6M=m37[c_M];Y6W=this.panels[c_M];if(Y6W){this.container.removeChild(Y6W.holder);if(k6M.handle){this.container.removeChild(k6M.handle);}b2Q={holder:!!1,subholder:!!({}),display:!!({}),icons:!![]};for(var P4c in b2Q){Y6W[P4c]=k6M[P4c];}this.configurePanelControls(Y6W);if(k6M.chart.panel == k6M){k6M.chart.panel=Y6W;};}else {this.privateDeletePanel(k6M);}}this.chart.panel=this.panels.chart;l$G(this.panels);h3N.dataBindSafeAssignment(A5X,h3N.clone(U38));e93=h3N.clone(A5X.studies);delete A5X.studies;for(var L5q in e93){U48=e93[L5q];h3N.getFn("Studies.addStudy")(this,U48.type,U48.inputs,U48.outputs,U48.parameters,U48.panel);}if(this.extendedHours){this.extendedHours.prepare(A5X.extended,A5X.marketSessions);}if(typeof A5X.chartType == "undefined"){A5X.chartType="line";}this.setMainSeriesRenderer();if(I4c){this.panelSolo(I4c);}this.adjustPanelPositions();r4W.W5N();l$G(this.panels);this.storePanels();if(!w2k){if(U38.symbols && U38.symbols.length){d8V={chart:this.chart};if(!o7J && A5d && U38.range && Object.keys(U38.range).length){d8V.range=U38.range;}else if(!o7J && A5d && U38.setSpan && Object.keys(U38.setSpan).length){d8V.span=U38.setSpan;}else if(A5d && U38.interval){d8V.periodicity={interval:U38.interval,period:U38.periodicity,timeUnit:U38.timeUnit};}else {d8V.periodicity={interval:V9Q.interval,period:V9Q.periodicity,timeUnit:V9Q.timeUnit};}Q0I=U38.symbols[0].symbolObject || U38.symbols[0].symbol;this.loadChart(Q0I,d8V,function(B4Q){var d8d;if(!B4Q){for(var X7T,n0Y=1;n0Y < U38.symbols.length;++n0Y){if(!c3H.addSeries)break;X7T=U38.symbols[n0Y];if(!X7T.parameters){X7T.parameters={};}d8d=h3N.clone(X7T.parameters);if(this.panels[d8d.panel]){c3H.addSeries(X7T.id,d8d,w$d);}else {console.warn('Warning: Series "' + X7T.id + '" could not be imported due to a missing corresponding panel "' + d8d.panel + '"');}}if(U38.chartScale){c3H.setChartScale(U38.chartScale);}}O66(B4Q);if(n9u){n9u.apply(null,arguments);}});return;}if(A5d){if(!o7J && this.setRange){b7u=U38.range;if(b7u && Object.keys(b7u).length && this.chart.symbol){this.setRange(b7u,function(){O66();r4W.W3G();if(n9u){n9u();}});return;}else if(U38.setSpan && Object.keys(U38.setSpan).length && this.chart.symbol){this.setSpan(U38.setSpan,function(){r4W.W5N();O66();if(n9u){n9u();}});return;}}k6e=U38.interval;m7l=U38.periodicity;E96=U38.timeUnit;if(isNaN(m7l)){m7l=1;}if(!k6e){k6e="day";}this.setPeriodicity({period:m7l,interval:k6e,timeUnit:E96},function(){O66();if(n9u){n9u();}});return;}}if(A5d){A5X.periodicity=U38.periodicity;A5X.interval=U38.interval;A5X.timeUnit=U38.timeUnit;A5X.setSpan=U38.setSpan;}this.createDataSet();if(!o7J){this.home();}O66();if(n9u){n9u();}function l$G(x5I){var R97;for(var V2n=+"0";V2n < v1w.length;V2n++){R97=v1w[V2n];m_Z(R97,"yaxisLHS");m_Z(R97,"yaxisRHS");}function o2a(C$W){r4W.W3G();return !!C$W;}r4W.W5N();c3H.chart.yAxis=c3H.chart.panel.yAxis;function m_Z(S1g,J01){var O5c,U33,R_I,C1R;if(!S1g[J01] || !S1g[J01].length){return;}O5c=x5I[S1g.name];if(!O5c){return;}U33=O5c[J01];R_I=new Array(U33.length);for(var J9e=0;J9e < U33.length;J9e++){C1R=S1g[J01].indexOf(U33[J9e].name);if(C1R > -1){R_I[C1R]=U33[J9e];}else {R_I.push(U33[J9e]);}}if(R_I.length){O5c[J01]=R_I.filter(o2a);}}}};h3N.ChartEngine.prototype.exportLayout=function(j6e){var d2d,O5j,T0g,o7s,M5S,l$c;d2d={};function E9W(W2G){var a9X;a9X=[];for(var Q0T=0;Q0T < W2G.length;Q0T++){a9X.push(W2G[Q0T].name);}return a9X;}for(var p8D in this.layout){if(p8D != "studies" && p8D != "panels" && p8D != "drawing"){d2d[p8D]=h3N.clone(this.layout[p8D]);}else if(p8D == "studies"){d2d.studies={};}else if(p8D == "panels"){d2d.panels={};}}O5j=0;for(var a_i in this.panels){T0g=this.panels[a_i];if(T0g.exportable === !({}))continue;o7s=d2d.panels[a_i]={};o7s.percent=T0g.percent;o7s.display=T0g.display;o7s.chartName=T0g.chart.name;o7s.soloing=T0g.soloing;o7s.index=O5j++;o7s.yAxis={name:T0g.yAxis.name,position:T0g.yAxis.position};if(T0g.yaxisLHS){o7s.yaxisLHS=E9W(T0g.yaxisLHS);}if(T0g.yaxisRHS){o7s.yaxisRHS=E9W(T0g.yaxisRHS);}}for(var u96 in this.layout.studies){M5S=d2d.studies[u96]={};l$c=this.layout.studies[u96];M5S.type=l$c.type;M5S.inputs=h3N.clone(l$c.inputs);M5S.outputs=h3N.clone(l$c.outputs);M5S.panel=l$c.panel;M5S.parameters=h3N.clone(l$c.parameters);}if(j6e){d2d.symbols=this.getSymbols({"include-parameters":!!({}),"exclude-studies":!"","exclude-generated":!!({})});}else {delete d2d.symbols;}return d2d;};h3N.ChartEngine.prototype.importPreferences=function(V7n){var g2J;g2J="prefere";g2J+="nc";g2J+="e";g2J+="s";h3N.extend(this.preferences,V7n);if(V7n.timeZone){this.setTimeZone(this.dataZone,V7n.timeZone);}if(V7n.language && h3N.I18N){h3N.I18N.localize(this,V7n.language);}this.changeOccurred(g2J);};i6UVR.W3G();h3N.ChartEngine.prototype.exportPreferences=function(){return this.preferences;};};G=C7m=>{var t8f,b9Y,K8D,j8B,C79,Y$e,v8w,b84,p0k,h0R,U6i,Z$9,U7d;t8f="#b82c";t8f+="0";t8f+="c";b9Y="a";b9Y+="u";b9Y+="t";b9Y+="o";K8D="#";K8D+="FF0000";j8B="m";j8B+="a";C79="Ex";C79+="pon";C79+="ential";Y$e="Ex";Y$e+="ponent";Y$e+="ial";v8w="Tri";v8w+="angul";v8w+="ar";b84="vid";b84+="ya";p0k="ex";p0k+="pone";p0k+="n";p0k+="tial";h0R="sim";h0R+="pl";h0R+="e";U6i="w";U6i+="m";U6i+="a";Z$9=typeof _CIQ !== "undefined"?_CIQ:C7m.CIQ;U7d=typeof _timezoneJS !== "undefined"?_timezoneJS:C7m.timezoneJS;if(Z$9.ChartEngine){Z$9.ChartEngine.prototype.rightClickOverlay=function(I5O,Q9y){var m_x,u8Z,e2P;m_x="r";m_x+="ightClickOverl";m_x+="ay";u8Z="rig";u8Z+="htClickOverl";u8Z+="ay";if(this.runPrepend(u8Z,arguments)){return;}e2P=this.overlays[I5O];if(e2P.editFunction){e2P.editFunction(Q9y);}else {this.removeOverlay(I5O);}this.runAppend(m_x,arguments);};Z$9.ChartEngine.prototype.addOverlay=function(X1B){if(this.runPrepend("addOverlay",arguments)){return;}this.overlays[X1B.name]=X1B;this.runAppend("addOverlay",arguments);};Z$9.ChartEngine.prototype.removeOverlay=function(p9C){var Z$A,R9W,Q6W,a5s,Z7n,R2f;i6UVR.W3G();Z$A="rem";Z$A+="o";Z$A+="ve";Z$A+="Overlay";if(this.runPrepend("removeOverlay",arguments)){return;}R9W=this.overlays[p9C];for(var A3o in this.overlays){Q6W="Fi";Q6W+="e";Q6W+="l";Q6W+="d";a5s=this.overlays[A3o];Z7n=[Q6W];if(Z$9.Studies){Z7n=Z$9.Studies.getFieldInputs(a5s);}for(var h1f="0" | 0;h1f < Z7n.length;h1f++){if(R9W.outputMap[a5s.inputs[Z7n[h1f]]]){this.removeOverlay(a5s.name);}}}if(R9W){this.cleanupRemovedStudy(R9W);R2f=this.panels[R9W.panel];delete this.overlays[p9C];this.checkForEmptyPanel(R9W.panel);}if(!this.currentlyImporting){this.displaySticky();this.createDataSet();this.changeOccurred("layout");}this.resetDynamicYAxis();this.runAppend(Z$A,arguments);};Z$9.ChartEngine.prototype.cleanupRemovedStudy=function(G_t){if(!G_t){return;}if(G_t.study.removeFN){G_t.study.removeFN(this,G_t);}for(var p4O in this.plugins){if(p4O.indexOf(((2450,5310) > (3310,2150)?(6050,5448) == 6050?9.75e+3:"{":0x12ce) + G_t.id + (("199" ^ 0,385.6) <= (718,988)?"}":!![])) > -1){delete this.plugins[p4O];}}if(this.layout.studies){delete this.layout.studies[G_t.name];}delete this.overlays[G_t.name];if(Z$9.Studies){Z$9.Studies.removeStudySymbols(G_t,this);}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}};}Z$9.Studies=Z$9.Studies || (function(){});Z$9.Studies.DEFAULT_INPUTS={Period:14};Z$9.Studies.DEFAULT_OUTPUTS={Result:"auto"};Z$9.Studies.sortForProcessing=X5k=>{var B1L=i6UVR;var D8w,R_R,F5b,C1I,j3W;D8w=[];B1L.O_b(39);R_R=-B1L.v$j("950106683",0);F5b=-32912493;C1I=2;for(var u$H="1" << 0;B1L.l5h(u$H.toString(),u$H.toString().length,86030) !== R_R;u$H++){j3W=X5k.layout.studies;C1I+=2;}if(B1L.m6F(C1I.toString(),C1I.toString().length,1890) !== F5b){j3W=X5k.layout.studies;}if(j3W){C1r(Object.values(j3W),D8w);}B1L.W3G();function C1r(Y0V,y8V){B1L.W3G();Y0V.forEach(n3t=>{var e$_;if(y8V.indexOf(n3t) == -("1" << 0)){e$_=n3t.getDependents(X5k);if(e$_.length){C1r(e$_,y8V);}y8V.unshift(n3t);}});}return D8w;};Z$9.Studies.StudyDescriptor=function(R5l,d1y,l13,z7a,i$J,J5O){var s3G;this.name=R5l;i6UVR.W5N();this.type=d1y;this.panel=l13;this.inputs=z7a;this.outputs=i$J;this.parameters=J5O;this.outputMap={};this.min=null;this.max=null;this.startFrom=+"0";this.subField="Close";s3G=Z$9.Studies.studyLibrary[d1y];if(!s3G){s3G={};if(l13 == "chart" || !l13 && J5O && J5O.chartName == "chart"){this.overlay=!![];}}if(typeof s3G.inputs == "undefined"){s3G.inputs=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(typeof s3G.outputs == "undefined"){s3G.outputs=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}this.study=s3G;this.libraryEntry=s3G;;};Z$9.Studies.StudyDescriptor.prototype.getYAxis=function(Q0H){var h$B,S2D,d7Z;h$B=this.yAxis;if(this.parameters){S2D=this.parameters.yaxisDisplayValue;}i6UVR.W5N();if(!h$B){d7Z=Q0H.panels[this.panel];if(d7Z){h$B=Q0H.getYAxisByName(d7Z,S2D) || Q0H.getYAxisByName(d7Z,this.name) || d7Z.yAxis;}}if(!h$B){h$B=Q0H.getYAxisByName(Q0H.chart.panel,S2D) || Q0H.chart.panel.yAxis;}return h$B;};Z$9.Studies.StudyDescriptor.prototype.getContext=function(C1F){return C1F.chart.context;};Z$9.Studies.StudyDescriptor.prototype.getDependents=function(k6E,H5B){var h45,w2h,T4D;h45=[];for(var Y6V in k6E.layout.studies){w2h=k6E.layout.studies[Y6V];if(w2h == this)continue;T4D=Z$9.Studies.getFieldInputs(w2h);for(var b8S=0;b8S < T4D.length;b8S++){if(w2h.inputs[T4D[b8S]].includes(this.name)){if(H5B && w2h.parameters && w2h.parameters.panelName)continue;h45.push(w2h);h45=h45.concat(w2h.getDependents(k6E,H5B));break;}}}return h45;};Z$9.Studies.StudyDescriptor.prototype.undraggable=function(o3R){var E2J;E2J=this.study.attributes;i6UVR.W5N();if(E2J){if(E2J.panelName && E2J.panelName.hidden){return !!1;}if(E2J.yaxisDisplayValue && E2J.yaxisDisplayValue.hidden){return !![];}}return !!0;};Z$9.Studies.StudyDescriptor.prototype.appendFutureTicks=function(n2l,e$t){var U4h,V3w,O9J,w_h;U4h=n2l.chart.scrubbed;if(!U4h.length){return;}V3w=n2l.standardMarketIterator(U4h[U4h.length - 1].DT);for(O9J=e$t.length - 1;O9J >= 0;O9J--){w_h=e$t[O9J];for(var E_8 in w_h){if(w_h[E_8] || w_h[E_8] === 0){O9J=-+"1";break;}}if(O9J == -1)break;e$t.pop();}i6UVR.W5N();for(O9J=0;O9J < e$t.length;O9J++){w_h=e$t[O9J];if(!w_h.DT){w_h.DT=V3w.next();}if(!w_h.displayDate){n2l.setDisplayDate(w_h);}w_h.futureTick=!!({});U4h.push(w_h);}};Z$9.Studies.generateID=function(M6R,v6X,P2L,Q7$,O8g){var P41=i6UVR;var q_x,K6K,w6x,c64,q6i,r_Z,P5H,c1s;q_x=Z$9.Studies.studyLibrary[v6X];P41.s$9(35);K6K=P41.V9a(O8g || v6X,2586 != 1460?"\u200c":5270 != 2944?9531 > 145.19?+"115.02":(0x20c2,"785.22" * 1):5.58e+3,15.74 !== 475?"\u200c":("0x20f6" | 32,"R"));w6x=K6K;if(q_x){if(q_x.customRemoval){return w6x;}}if(!Z$9.isEmpty(P2L)){c64=!!({});for(var e7v in P2L){q6i="f";q6i+="i";q6i+="el";q6i+="d";r_Z="Ancho";r_Z+="r";r_Z+=" Sele";r_Z+="ctor";if(["id","display","Shading",r_Z].includes(e7v)){continue;}P5H=P2L[e7v];if(P5H == q6i)continue;P5H=P5H.toString();if(Z$9.Studies.prettify[P5H] !== undefined){P5H=Z$9.Studies.prettify[P5H];}if(c64){c64=!"1";w6x+=" (";}else {if(P5H){w6x+=181.3 === 9840?0x2635:381.54 == 4551?+"0x1b7":(951,4940) !== (982,3650)?",":(0xf73,0xc4f);}}w6x+=P5H;}if(!c64){w6x+=6654 < (653,436)?(763.52,8.87e+3):")";}}if(Q7$ && Q7$.indexOf(w6x) === 0){return Q7$;}if(M6R.layout.studies && M6R.layout.studies[w6x]){for(var T_u=2;T_u < 50;T_u++){P41.s$9(35);c1s=P41.V9a("-",T_u,w6x);if(!M6R.layout.studies[c1s]){w6x=c1s;break;}}}return w6x;};Z$9.Studies.DialogHelper=function(t9_){var H_$=i6UVR;var e_G,q_D,e30,c$k,D$P,O$r,t$d,D$L,w1J,A8u,h$_,b2Z,n_p,j80,p5Z,t55,S5I,V7c,X7g,S$N,g2_,X_b,G3x,K8c,T7b,n7I,S2l,m_z,y5M,r82,B_h,t3g,H8M,l$L,a$T,a4F,Q9I,d1p,B3x,k8R,Y$u,s0k,W6y,C3$,q0L,P5m,l6J,M6y,P0n,E8E,E1p;e_G=this.stx=t9_.stx;q_D=this.sd=t9_.sd;this.name=q_D?q_D.type:t9_.name;this.signal=1;this.inputs=[];this.outputs=[];function O0I(N1z){var W1P,H$G,h12;W1P={};H$G=N1z.defaults;h12={name:N1z.name,heading:e_G.translateIf(N1z.label),defaultValue:H$G[0],value:N1z.value,options:W1P,type:"select"};for(var j77=0;j77 < H$G.length;j77++){W1P[H$G[j77]]=e_G.translateIf(H$G[j77]);}if(N1z.color !== undefined){h12.defaultColor=e_G.defaultColor;h12.color=N1z.color;}return h12;}H_$.W3G();this.parameters=[];e30=this.libraryEntry=q_D?q_D.study:Z$9.Studies.studyLibrary[t9_.name];if(typeof e30.inputs == "undefined"){e30.inputs=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(typeof e30.outputs == "undefined"){e30.outputs=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}c$k=q_D && e_G.panels[q_D.panel]?e_G.panels[q_D.panel]:e_G.chart.panel;function P$h(o10){var x80;x80={name:o10.name,heading:e_G.translateIf(o10.label),defaultValue:o10.defaults,value:o10.value,type:"checkbox"};return x80;}D$P=c$k.chart;this.title=e_G.translateIf(e30.name);this.attributes=Z$9.clone(e30.attributes);if(!this.attributes){this.attributes={};}for(var y6X in this.attributes){O$r=this.attributes[y6X];for(var n85 in O$r){if(typeof O$r[n85] == "function"){O$r[n85]=O$r[n85].call(q_D);}}}t$d=[];D$L=e_G.layout.studies;w1J=[];if(q_D){w1J=Array.prototype.concat(q_D,q_D.getDependents(e_G));}for(var L$w in D$L){if(w1J.indexOf(D$L[L$w]) > -1)continue;for(var Q0u in D$L[L$w].outputMap){t$d.push(Q0u);}}for(var l_b in e30.inputs){A8u={};this.inputs.push(A8u);A8u.name=l_b;A8u.heading=e_G.translateIf(l_b);h$_=e30.inputs[l_b];if(q_D && q_D.inputs && typeof q_D.inputs[l_b] != "undefined" && q_D.inputs[l_b] !== null){A8u.value=q_D.inputs[l_b];}else {A8u.value=e30.inputs[l_b];}A8u.defaultInput=e30.inputs[l_b];if(!this.attributes[l_b]){this.attributes[l_b]=Z$9.Studies.inputAttributeDefaultGenerator(A8u.defaultInput);}if(h$_.constructor == Number){A8u.type="number";}else if(h$_.constructor == String){b2Z="f";b2Z+="i";b2Z+="e";b2Z+="ld";n_p=Z$9.Studies.movingAverageHelper(e_G,A8u.defaultInput);if(n_p){j80="o";j80+="p";j80+="tion";j80+="s";A8u.type="select";A8u.defaultInput=n_p;p5Z=Z$9.Studies.movingAverageHelper(e_G,A8u.value);if(!p5Z){p5Z=A8u.value;}A8u.value=p5Z;A8u.options=Z$9.Studies.movingAverageHelper(e_G,j80);}else if(h$_ == b2Z){t55="fie";t55+="l";t55+="d";S5I="hl";S5I+="cc/4";V7c="h";V7c+="l/2";X7g="C";X7g+="lose";S$N="Hi";S$N+="gh";A8u.type="select";A8u.options={};g2_=["Open",S$N,"Low",X7g,"Adj_Close",V7c,"hlc/3",S5I,"ohlc/4",D$P.defaultPlotField].concat(t$d);for(var d1D=0;d1D < g2_.length;d1D++){X_b=g2_[d1D];A8u.options[X_b]=e_G.translateIf(X_b);}if(A8u.value == "field"){G3x="Clo";G3x+="se";A8u.value=G3x;}if(A8u.defaultInput == t55){A8u.defaultInput="Close";}}else {K8c="ti";K8c+="me";T7b="yyyy";T7b+="-mm-d";T7b+="d";A8u.type="text";if(this.attributes[l_b].placeholder == T7b){A8u.type="date";}else if(this.attributes[l_b].placeholder == "hh:mm:ss"){A8u.type=K8c;}}}else if(h$_.constructor == Boolean){n7I="tru";n7I+="e";S2l="ch";S2l+="eck";S2l+="bo";S2l+="x";A8u.type=S2l;if(A8u.value === !![] || A8u.value == n7I || A8u.value == "on"){A8u.value=!"";}}else if(h$_.constructor == Array){m_z="selec";m_z+="t";A8u.type=m_z;A8u.options={};for(var G0h=0;G0h < h$_.length;G0h++){A8u.options[h$_[G0h]]=e_G.translateIf(h$_[G0h]);}if(A8u.value.constructor == Array){A8u.value=A8u.value[0];}if(this.attributes[l_b].defaultSelected){A8u.defaultInput=this.attributes[l_b].defaultSelected;}else {A8u.defaultInput=h$_[0];}}}function r_W(j2_){var C1J;if(W6y == "alias"){C1J=1;for(var F$X in e_G.panels){if(F$X == j2_){return F5K(F$X,C1J);}C1J++;}}function F5K(L3j,u4F){H_$.W5N();return "Panel " + u4F.toString();}return j2_;}this.dateTimeInputs=[];for(var J8o=0;J8o < this.inputs.length;J8o++){y5M="da";y5M+="te";r82=this.inputs[J8o];if(r82.type == y5M){B_h=" D";B_h+="a";B_h+="t";B_h+="e";t3g=r82.name.substring(0,r82.name.indexOf(B_h));for(var h2N=0;h2N < this.inputs.length;h2N++){H8M=this.inputs[h2N];if(H8M.type == "time"){if(H8M.name == t3g + " Time"){this.dateTimeInputs.push(t3g);break;}}}}}this.adjustInputTimesForDisplayZone();for(l_b in e30.outputs){l$L="a";l$L+="uto";a$T={name:l_b,heading:e_G.translateIf(l_b)};a$T.color=a$T.defaultOutput=e30.outputs[l_b];if(q_D && q_D.outputs && q_D.outputs[l_b]){a$T.color=q_D.outputs[l_b];}if(a$T.color == l$L){a$T.color=e_G.defaultColor;}this.outputs.push(a$T);}a4F=q_D?q_D.parameters:null;if(e30.parameters){Q9I=e30.parameters.init;if(Q9I){if(Q9I.studyOverZonesEnabled !== undefined){B3x="c";B3x+="hec";B3x+="kbo";B3x+="x";d1p={name:"studyOverZones",heading:e_G.translateIf("Show Zones"),defaultValue:Q9I.studyOverZonesEnabled,value:Q9I.studyOverZonesEnabled};if(a4F && (a4F.studyOverZonesEnabled || a4F.studyOverZonesEnabled === !1)){d1p.value=a4F.studyOverZonesEnabled;}d1p.type=B3x;this.parameters.push(d1p);}if(Q9I.studyOverBoughtValue !== undefined){k8R="stu";k8R+="dyOverBought";d1p={name:k8R,heading:e_G.translateIf("OverBought"),defaultValue:Q9I.studyOverBoughtValue,value:Q9I.studyOverBoughtValue,defaultColor:Q9I.studyOverBoughtColor,color:Q9I.studyOverBoughtColor};if(a4F && a4F.studyOverBoughtValue){d1p.value=a4F.studyOverBoughtValue;}if(a4F && a4F.studyOverBoughtColor){d1p.color=a4F.studyOverBoughtColor;}if(d1p.color == "auto"){d1p.color=e_G.defaultColor;}d1p.type="text";this.parameters.push(d1p);}if(Q9I.studyOverSoldValue !== undefined){Y$u="t";Y$u+="e";Y$u+="xt";s0k="OverS";s0k+="old";d1p={name:"studyOverSold",heading:e_G.translateIf(s0k),defaultValue:Q9I.studyOverSoldValue,value:Q9I.studyOverSoldValue,defaultColor:Q9I.studyOverSoldColor,color:Q9I.studyOverSoldColor};if(a4F && a4F.studyOverSoldValue){d1p.value=a4F.studyOverSoldValue;}if(a4F && a4F.studyOverSoldColor){d1p.color=a4F.studyOverSoldColor;}if(d1p.color == "auto"){d1p.color=e_G.defaultColor;}d1p.type=Y$u;this.parameters.push(d1p);}if(!this.attributes.studyOverBoughtValue){this.attributes.studyOverBoughtValue={};}if(!this.attributes.studyOverSoldValue){this.attributes.studyOverSoldValue={};}}}W6y=this.panelSelect=t9_.panelSelect;C3$=this.axisSelect=t9_.axisSelect;if(t9_.addWhenDone){C3$=W6y=!!0;}if(C3$ || W6y){q0L="flippe";q0L+="dEna";q0L+="bled";if(!q_D){q_D=Z$9.Studies.addStudy(e_G,t9_.name,null,null,{calculateOnly:!!({})});Z$9.Studies.removeStudy(e_G,q_D);}if(W6y){P5m="un";P5m+="d";P5m+="erlay";l6J="Show as U";l6J+="nderlay";M6y="A";M6y+="uto";P0n="pan";P0n+="e";P0n+="lNa";P0n+="me";E8E="P";E8E+="a";E8E+="ne";E8E+="l";this.parameters.push(O0I({label:E8E,name:P0n,defaults:(function(){var A1u;H_$.W5N();A1u=[];A1u.push("Auto");for(var n1z in e_G.panels){if(n1z != q_D.panel || !a4F || !a4F.panelName){A1u.push(r_W(n1z));}}if(!e_G.checkForEmptyPanel(q_D.panel,!!"1",q_D)){A1u.push("New panel");}return A1u;})(),value:a4F && a4F.panelName?r_W(a4F.panelName):M6y}),P$h({label:l6J,name:P5m,defaults:![],value:q_D.underlay || q_D.parameters && q_D.parameters.underlayEnabled}));}E1p=e_G.getYAxisByName(c$k,q_D.name);if(C3$){this.parameters.push(O0I({label:"Y-Axis",name:"yaxisDisplay",defaults:(function(){var i2G,e1B,E2d;i2G="n";i2G+="one";e1B=c$k.yaxisLHS.concat(c$k.yaxisRHS);E2d=[];E2d.push("default","right","left",i2G,"shared");H_$.W5N();for(var E4l="0" << 64;E4l < e1B.length;E4l++){if(e1B[E4l] != E1p){E2d.push(e1B[E4l].name);}}return E2d;})(),value:a4F && a4F.yaxisDisplayValue || E1p && E1p.position || (q_D.panel != q_D.name?"shared":c$k.yAxis.position || "default"),color:E1p && E1p.textStyle?E1p.textStyle:"auto"}),P$h({label:"Invert Y-Axis",name:"flipped",defaults:!"1",value:a4F?a4F.flippedEnabled:E1p?E1p.flipped:!"1"}));}i_G.call(this,q0L,!E1p && q_D.panel != q_D.name);i_G.call(this,"underlayEnabled",e30.underlay);i_G.call(this,"panelName",e30.seriesFN === null);i_G.call(this,"yaxisDisplayValue",e30.seriesFN === null || e30.yAxis && e30.yAxis.noDraw);}function i_G(N7u,N3B){H_$.W3G();if(!this.attributes[N7u]){this.attributes[N7u]={};}if(N3B){this.attributes[N7u].hidden=!"";}}};Z$9.Studies.DialogHelper.prototype.updateStudy=function(p6W){var Q3i,z90,G1S,L7V;Q3i={};z90=this.sd;G1S=this.libraryEntry;if(!G1S){G1S={};}if(!z90){z90=G1S;}Q3i.inputs=Z$9.clone(z90.inputs);Q3i.outputs=Z$9.clone(z90.outputs);Q3i.parameters=Z$9.clone(z90.parameters);this.adjustInputTimesForDisplayZone(p6W);if(p6W.parameters && p6W.parameters.panelName){p6W.parameters.panelName=F6r.call(this,p6W.parameters.panelName);}Z$9.extend(Q3i,p6W);function F6r(E3F){var t0e;if(this.panelSelect == "alias"){t0e=s1y(E3F);if(t0e){for(var o57 in this.stx.panels){if(!--t0e){return o57;}}}}function s1y(X9A){var M82;i6UVR.W3G();M82=X9A.match(/.* (\d)/);return M82 && M82[+"1"];}return E3F;}if(!Q3i.parameters){Q3i.parameters={};}if(Q3i.inputs && Q3i.inputs.id){z90=Z$9.Studies.replaceStudy(this.stx,Q3i.inputs.id,this.name,Q3i.inputs,Q3i.outputs,Q3i.parameters,null,z90.study);}else {z90=Z$9.Studies.addStudy(this.stx,this.name,Q3i.inputs,Q3i.outputs,Q3i.parameters,null,z90.study);}L7V=new Z$9.Studies.DialogHelper({stx:this.stx,sd:z90,axisSelect:this.axisSelect,panelSelect:this.panelSelect});for(var a91 in L7V){if(a91 != "signal"){this[a91]=L7V[a91];}}this.signal*=-1;;};Z$9.Studies.DialogHelper.prototype.adjustInputTimesForDisplayZone=function(w6K){var b2U=i6UVR;var n9K,z$L,V8i,P9y,E1w,C_u,J8b,S0Q,R$y,l7T,O4i,U7v;b2U.W5N();if(this.stx.displayZone){for(var Q4o=0;Q4o < this.dateTimeInputs.length;Q4o++){n9K=this.dateTimeInputs[Q4o];C_u="";if(w6K && w6K.inputs){J8b=" ";J8b+="D";J8b+="a";J8b+="te";b2U.s$9(0);V8i=w6K.inputs[b2U.v$j(n9K,J8b)];b2U.s$9(0);P9y=w6K.inputs[b2U.V9a(n9K," Time")];if(V8i){C_u=V8i;}if(P9y){C_u+=P9y;}}for(z$L=0;z$L < this.inputs.length;z$L++){S0Q=" D";S0Q+="at";S0Q+="e";E1w=this.inputs[z$L];if(!V8i && V8i !== "" && E1w.name == n9K + S0Q){C_u=E1w.value + C_u;}else if(!P9y && P9y !== "" && E1w.name == n9K + " Time"){C_u+=E1w.value;}}C_u=C_u.replace(/\D/g,"");if(C_u.length < "12" - 0){return;}R$y=Z$9.strToDateTime(C_u);if(!isNaN(R$y.valueOf())){if(w6K){O4i=" ";O4i+="Da";O4i+="t";O4i+="e";if(!w6K.inputs){w6K.inputs={};}l7T=Z$9.convertTimeZone(R$y,this.stx.displayZone);b2U.s$9(0);w6K.inputs[b2U.V9a(n9K,O4i)]=Z$9.yyyymmdd(l7T);b2U.O_b(0);w6K.inputs[b2U.V9a(n9K," Time")]=Z$9.hhmmss(l7T);}else {l7T=Z$9.convertTimeZone(R$y,null,this.stx.displayZone);for(z$L=0;z$L < this.inputs.length;z$L++){U7v=" D";U7v+="at";U7v+="e";E1w=this.inputs[z$L];if(E1w.name == n9K + U7v){E1w.value=Z$9.yyyymmdd(l7T);}if(E1w.name == n9K + " Time"){E1w.value=Z$9.hhmmss(l7T);}}}}}}};Z$9.Studies.prepareStudy=function(q5_,F4c,b_h){var q0E=i6UVR;var N6M;N6M="u";N6M+="nd";q0E.W3G();N6M+="efined";if(typeof F4c.calculateFN == N6M){F4c.useRawValues=!!({});}if(Z$9.isEmpty(b_h.outputMap)){for(var m5N in b_h.outputs){if(F4c.useRawValues){b_h.outputMap[m5N]=m5N;}else {q0E.s$9(1);var z2z=q0E.V9a(10920,11700);q0E.s$9(111);var W0Y=q0E.v$j(1,691,691,9668);q0E.O_b(16);var i2y=q0E.V9a(12,9899,10);q0E.O_b(0);var h6l=q0E.V9a(38,529);q0E.O_b(108);var t2K=q0E.V9a(10,31620,437410,10,14);q0E.O_b(115);var z46=q0E.v$j(1949,1890,16,19,4);q0E.O_b(1);var F45=q0E.v$j(49150,58980);q0E.O_b(18);var p2I=q0E.v$j(33,14,18);q0E.s$9(116);var a7j=q0E.V9a(384,5,59,1,384);q0E.O_b(1);var N_A=q0E.v$j(8,8858);b_h.outputMap[m5N + ((z2z,W0Y) === i2y?"X":h6l < (+"9840",t2K)?(z46,F45) < ("555.21" - 0,"7233" | p2I)?"0x5f" << a7j:" ":N_A) + b_h.name]=m5N;}}}};Z$9.Studies.rejiggerDerivedStudies=function(C0L,E9h,e2T){var X3d,z8l,s8D,K5F,B3t,p0U,b01,b15,x7j;X3d=E9h.name;z8l=E9h.panel;s8D=E9h.getDependents(C0L);for(var I00="0" * 1;I00 < s8D.length;I00++){K5F=s8D[I00];B3t=Z$9.clone(K5F.inputs);p0U=B3t.id;if(!p0U)continue;b01=!!"";b15=Z$9.Studies.getFieldInputs(K5F);for(var S1f=+"0";S1f < b15.length;S1f++){B3t[b15[S1f]]=B3t[b15[S1f]].replace(X3d,e2T);}x7j=Z$9.Studies.replaceStudy(C0L,p0U,K5F.type,B3t,K5F.outputs,Z$9.extend(K5F.parameters,{rejiggering:!![]}),null,K5F.study);delete x7j.parameters.rejiggering;}};Z$9.Studies.removeStudySymbols=function(X0$,P0E){if(X0$.series){for(var p5S in X0$.series){P0E.deleteSeries(X0$.series[p5S],null,{action:"remove-study"});}};};Z$9.Studies.replaceStudy=function(Y9M,P81,f1a,I_F,c0j,l5C,z6G,c76){var O6Z,X4o,l0e,L5B;if(!l5C){l5C={};}if(P81){l5C.replaceID=P81;}P81=l5C.replaceID;O6Z=Y9M.layout.studies[P81];Z$9.Studies.removeStudySymbols(O6Z,Y9M);if(O6Z.attribution){Y9M.removeFromHolder(O6Z.attribution.marker);}if(Y9M.quoteDriver){Y9M.quoteDriver.updateSubscriptions();}if(I_F){if(I_F.id == I_F.display){delete I_F.display;}delete I_F.id;}X4o=Z$9.Studies.addStudy(Y9M,f1a,I_F,c0j,l5C,z6G,c76);X4o.highlight=O6Z.highlight;X4o.uniqueId=O6Z.uniqueId;L5B={};for(l0e in Y9M.layout.studies){if(l0e == P81){L5B[X4o.name]=X4o;}else {L5B[l0e]=Y9M.layout.studies[l0e];}}Y9M.layout.studies=L5B;L5B={};for(l0e in Y9M.overlays){if(l0e == P81){if(X4o.overlay || X4o.underlay){L5B[X4o.name]=X4o;}}else {L5B[l0e]=Y9M.overlays[l0e];}}Y9M.overlays=L5B;if(!Y9M.overlays[X4o.name] && (X4o.overlay || X4o.underlay)){Y9M.addOverlay(X4o);}Y9M.checkForEmptyPanel(O6Z.panel);if(!l5C.rejiggering){Y9M.initializeDisplay(Y9M.chart);Z$9.Studies.rejiggerDerivedStudies(Y9M,O6Z,X4o.inputs.id,X4o.panel);Y9M.changeOccurred("layout");if(!Y9M.currentlyImporting && !l5C.calculateOnly && X4o.chart.dataSet){Y9M.createDataSet(null,X4o.chart);}Y9M.draw();}Z$9.transferObject(O6Z,X4o);Y9M.layout.studies[X4o.name]=O6Z;Y9M.overlays[X4o.name]=O6Z;Y9M.chart.state.studies.sorted=null;return O6Z;};Z$9.Studies.addStudy=function(A7g,z3u,P5e,s2s,b30,F_I,y$f){var Q_0=i6UVR;var n9E,E6H,x52,D2P,R1O,E7H,D8A,d53,r1M,W6A,p58,D5h,E3C,O4a;n9E="c";n9E+="h";n9E+="ar";n9E+="t";E6H=y$f?y$f:Z$9.Studies.studyLibrary[z3u];if(!b30){b30={};}if(E6H){if(E6H.inputs){x52=Z$9.clone(E6H.inputs);for(var F4w in x52){if(x52[F4w] instanceof Array){if(E6H.attributes && E6H.attributes[F4w] && E6H.attributes[F4w].defaultSelected){x52[F4w]=E6H.attributes[F4w].defaultSelected;}else {x52[F4w]=x52[F4w][+"0"];}}}P5e=Z$9.extend(x52,P5e);}if(E6H.outputs){s2s=Z$9.extend(Z$9.clone(E6H.outputs),s2s);}D2P=E6H.parameters;if(D2P && D2P.init){b30=Z$9.extend(Z$9.clone(D2P.init),b30);}if(D2P && !b30.display){b30.display=D2P.display;}}Q_0.W3G();if(!P5e){P5e=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(!s2s){s2s=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}if(!b30.chartName){b30.chartName=n9E;}if(b30.panelName == "Auto" || b30.panelName == "Default panel"){b30.panelName="";}if(P5e.Period < 1){P5e.Period=1;}R1O=null;if(!A7g.layout.studies){A7g.layout.studies={};}if(E6H && E6H.initializeFN){R1O=E6H.initializeFN(A7g,z3u,P5e,s2s,b30,F_I,y$f);}else {R1O=Z$9.Studies.initializeFN(A7g,z3u,P5e,s2s,b30,F_I,y$f);}if(!R1O){Q_0.s$9(0);console.log(Q_0.V9a("CIQ.Studies.addStudy: initializeFN() returned null for ",z3u));return;}y$f=R1O.study;R1O.chart=A7g.charts[b30.chartName];R1O.type=z3u;R1O.permanent=y$f.permanent;R1O.customLegend=y$f.customLegend;R1O.uniqueId=Z$9.uniqueID();Z$9.Studies.prepareStudy(A7g,y$f,R1O);E7H=A7g.chart.state.studies;if(!E7H){E7H=A7g.chart.state.studies={};}E7H.sorted=null;if(!b30.replaceID){A7g.layout.studies[R1O.inputs.id]=R1O;if(R1O.overlay || R1O.underlay){A7g.addOverlay(R1O);}if(!A7g.currentlyImporting && !b30.calculateOnly && R1O.chart.dataSet){A7g.createDataSet(null,R1O.chart);}}else {D8A=!!({});delete b30.replaceID;}if(A7g.quoteDriver){A7g.quoteDriver.updateSubscriptions();}if(b30.calculateOnly){A7g.changeOccurred("layout");return R1O;}d53=A7g.panels[R1O.panel];r1M=!1;W6A=!(R1O.overlay || R1O.underlay);if(W6A && y$f.horizontalCrosshairFieldFN){d53.horizontalCrosshairField=y$f.horizontalCrosshairFieldFN(A7g,R1O);}if(A7g.editCallback){r1M=!![];}else if(W6A){if(A7g.callbackListeners.studyPanelEdit && A7g.callbackListeners.studyPanelEdit.length){r1M=!!"1";}}else {if(A7g.callbackListeners.studyOverlayEdit && A7g.callbackListeners.studyOverlayEdit.length){r1M=!!({});}}if(r1M){b30.editMode=!!({});p58=!!0;for(var r3Y in R1O.inputs){if(r3Y == "id")continue;if(r3Y == "display")continue;p58=!![];break;}if(!p58){for(var M6b in R1O.outputs){p58=!!"1";break;}}if(p58){if(typeof R1O.study.edit != "undefined"){if(R1O.study.edit){D5h=(function(C$n,p4l,P$S,b4U){return function(){Z$9.clearCanvas(C$n.chart.tempCanvas,C$n);Q_0.W3G();p4l.study.edit(p4l,{stx:C$n,inputs:P$S,outputs:b4U,parameters:b30});};})(A7g,R1O,P5e,s2s,b30);A7g.setPanelEdit(d53,D5h);R1O.editFunction=D5h;}}else if(!W6A){D5h=(function(O46,J9k,N9W,Z9f,m1A){return function(J$M){Z$9.clearCanvas(O46.chart.tempCanvas,O46);Q_0.W5N();O46.dispatch("studyOverlayEdit",{stx:O46,sd:J9k,inputs:N9W,outputs:Z9f,parameters:m1A,forceEdit:J$M});};})(A7g,R1O,P5e,s2s,b30);R1O.editFunction=D5h;}else {if(A7g.editCallback){E3C="cha";E3C+="r";E3C+="t";D5h=(function(N5s,g4w,o7t,s_H){Q_0.W3G();return function(){Q_0.W5N();var x7h;x7h=N5s.editCallback(N5s,g4w);Z$9.clearCanvas(N5s.chart.tempCanvas,N5s);Z$9.Studies.studyDialog(N5s,z3u,x7h,{inputs:o7t,outputs:s_H,parameters:b30});};})(A7g,R1O,P5e,s2s,b30);if(d53.name != E3C){A7g.setPanelEdit(d53,D5h);}}else {O4a="cha";O4a+="rt";D5h=(function(n6z,F0i,z4V,i1m,h30){Q_0.W5N();return function(){var k0P;k0P="studyP";Q_0.W5N();k0P+="anelE";k0P+="dit";Z$9.clearCanvas(n6z.chart.tempCanvas,n6z);n6z.dispatch(k0P,{stx:n6z,sd:F0i,inputs:z4V,outputs:i1m,parameters:h30});};})(A7g,R1O,P5e,s2s,b30);if(d53.name != O4a){A7g.setPanelEdit(d53,D5h);R1O.editFunction=D5h;}}}}}A7g.changeOccurred("layout");if(!D8A){A7g.draw();}return R1O;};Z$9.Studies.removeStudy=function(e01,q9L){var K_I,X5M,F2g,Z_6;K_I=e01.panels[q9L.panel];X5M=K_I && K_I.yAxis.name;if(q9L.overlay || q9L.underlay){e01.removeOverlay(q9L.name);}F2g=e01.panels[q9L.panel];if(q9L.attribution){e01.removeFromHolder(q9L.attribution.marker);}delete e01.layout.studies[q9L.name];if(F2g && !e01.checkForEmptyPanel(F2g)){if(X5M == q9L.name){e01.electNewPanelOwner(F2g);}Z_6=e01.getYAxisByName(q9L.panel,q9L.name);if(Z_6){Z_6.name=Z_6.studies[+"1"] || Z_6.renderers[0];}}e01.draw();e01.resizeChart();};Z$9.Studies.getPanelFromFieldName=function(U97,U0f){var Q66,n5o,Z49,x1f,K8r;Q66=Z$9.Studies.getFieldInputs(U0f);if(!Q66.length){return null;}n5o=U97.layout.studies;if(!n5o){return null;}Z49={};for(var t8_ in n5o){for(var h54 in n5o[t8_].outputMap){Z49[h54]=n5o[t8_].panel;}}i6UVR.W5N();for(var L7Z=0;L7Z < Q66.length;L7Z++){x1f=U0f.inputs[Q66[L7Z]];if(x1f){K8r=Z49[x1f];if(K8r){return K8r;}}}return null;};Z$9.Studies.createLibraryHash=function(){return Object.keys(Z$9.Studies.studyLibrary).join("|");;};Z$9.Studies.displayStudies=function(r62,g4t,n8p){i6UVR.W5N();var P3d,x4y,p2x,k7y,e4A,R4S,x2p,a1X,v6Z,J4d,a7T,w_o,W0Q,P0i,p3s;if(n8p){g4t.studyLibraryHash=Z$9.Studies.createLibraryHash();}P3d=r62.layout.studies;if(!P3d){return;}x4y={};x4y[g4t.name]=!!1;for(var k7$ in P3d){p2x=P3d[k7$];k7y=p2x.study;if(!k7y)continue;e4A=p2x.underlay || p2x.parameters && p2x.parameters.underlayEnabled;if(n8p && !e4A || !n8p && e4A)continue;R4S=Z$9.clone(k7y.renderer);if(R4S && !(R4S instanceof Array)){R4S=[R4S];}x2p=r62.panels[p2x.panel];if(x2p){if(x2p.chart != g4t)continue;if(x2p.hidden)continue;if(!x4y[x2p.name]){a1X=p2x.permanent || !r62.manageTouchAndMouse;if(x2p.closeX){if(a1X){x2p.closeX.style.display="none";}}else if(x2p.close){v6Z="n";v6Z+="o";v6Z+="ne";if(a1X){x2p.close.style.display=v6Z;}}if(x2p.edit){if(a1X){x2p.edit.style.display="none";}}x4y[x2p.name]=a1X;}}else {if(r62.currentlyImporting){delete P3d[k7$];}continue;}J4d=p2x.chart.dataSegment;if(p2x.panel == p2x.parameters.chartName && (!p2x.parameters || !p2x.parameters.panelName)){a7T=Z$9.Studies.getPanelFromFieldName(r62,p2x);if(a7T && p2x.panel != a7T){p2x.panel=a7T;}}if(typeof k7y.seriesFN == "undefined"){if(R4S){if(!p2x.overlay){Z$9.Studies.createYAxis(r62,p2x,J4d,x2p);}for(var Q16="0" >> 32;Q16 < R4S.length;Q16++){w_o=R4S[Q16];for(var P_C in p2x.outputMap){if(p2x.outputMap[P_C] == w_o.field){w_o.field=P_C;}}if(!w_o.field)continue;w_o.panel=p2x.panel;W0Q=w_o.binding;if(W0Q){for(var P1m in W0Q){P0i=Z$9.Studies.determineColor(p2x.outputs[W0Q[P1m]]);if(P0i && P0i != "auto"){w_o[P1m]=P0i;};}}w_o.yAxis=null;p3s=Z$9.Renderer.produce(w_o.type,w_o);p3s.stx=r62;p3s.attachSeries(null,w_o).draw();}}else {Z$9.Studies.displaySeriesAsLine(r62,p2x,J4d);}if(x2p){Z$9.Studies.displayError(r62,p2x);}}else {if(k7y.seriesFN){if(x2p){k7y.seriesFN(r62,p2x,J4d);Z$9.Studies.displayError(r62,p2x);}}}}};Z$9.Studies.displayError=function(F4V,l9e,A2e){var W4k,Q4r,Z6X;W4k="c";W4k+="e";W4k+="nte";W4k+="r";if(!l9e.error){return;}Q4r=A2e && A2e.panel?A2e.panel:l9e.panel;Z6X=l9e.error === !![]?F4V.translateIf("Not enough data to compute ") + F4V.translateIf(l9e.study.name):F4V.translateIf(l9e.error);if(A2e && (A2e.h !== W4k || A2e.v !== "bottom")){F4V.watermark(Q4r,A2e);return;}F4V.displayErrorAsWatermark(Q4r,Z6X);};Z$9.Studies.calculateMinMaxForDataPoint=function(T7B,r8Z,z4j){var h7z,O2v,h6Z;h7z=Number.MAX_VALUE;i6UVR.O_b(67);var c69=i6UVR.v$j(7,7,18,19);O2v=Number.MAX_VALUE * c69;for(var E43=0;E43 < z4j.length;E43++){h6Z=z4j[E43][r8Z];if(h6Z === null || typeof h6Z == "undefined")continue;if(isNaN(h6Z))continue;h7z=Math.min(h6Z,h7z);O2v=Math.max(h6Z,O2v);}return {min:h7z,max:O2v};};Z$9.Studies.getYAxisParameters=function(u23,r$l){var P49=i6UVR;var O0Y,B$H,l5l,n1n,c04,a6A;P49.W5N();O0Y={};B$H=u23.layout.studies && u23.layout.studies[r$l.name];if(B$H){l5l=B$H.study;if(l5l.yaxis || l5l.yAxisFN){O0Y.noDraw=!!({});}else {if(l5l.parameters && l5l.parameters.excludeYAxis){O0Y.noDraw=!![];}O0Y.ground=l5l.yAxis && l5l.yAxis.ground;if(r$l){n1n="byp";n1n+="a";n1n+="ss";if(l5l.range != n1n){c04="-";c04+="1 ";c04+="t";c04+="o 1";a6A="0 t";a6A+="o ";a6A+="1";a6A+="00";if(l5l.range == a6A){P49.s$9(42);O0Y.range=[P49.v$j("0",0),P49.V9a("100",0,P49.s$9(29))];}else if(l5l.range == c04){O0Y.range=[-+"1",1];}else {if(l5l.range == "0 to max"){O0Y.range=[0,Math.max(0,r$l.high)];}else if(l5l.centerline || l5l.centerline === 0){O0Y.range=[Math.min(l5l.centerline,r$l.low),Math.max(l5l.centerline,r$l.high)];}}}if(O0Y.range){P49.s$9(1);r$l.low=O0Y.range[P49.V9a(0,"0")];r$l.high=O0Y.range[1];}if(B$H.min){r$l.min=B$H.min;}if(B$H.max){r$l.max=B$H.max;}if(B$H.parameters && B$H.parameters.studyOverZonesEnabled){O0Y.noDraw=!0;}}}}return O0Y;};Z$9.Studies.doPostDrawYAxis=function(H_I,i5U){var L4_,K4S,M7M,K6O,J8Y;for(var M5o in H_I.layout.studies){L4_=H_I.layout.studies[M5o];K4S=H_I.panels[L4_.panel];if(!K4S || K4S.hidden)continue;M7M=L4_.getYAxis(H_I);if(M7M != i5U)continue;K6O=L4_.study;if(i5U.name == L4_.name){if(K6O.yaxis){K6O.yaxis(H_I,L4_);}if(K6O.yAxisFN){K6O.yAxisFN(H_I,L4_);};}Z$9.Studies.drawZones(H_I,L4_);if(!L4_.error){J8Y=K6O.centerline;if(J8Y || J8Y === "0" >> 64 || J8Y !== null && i5U.highValue > 0 && i5U.lowValue < 0){Z$9.Studies.drawHorizontal(H_I,L4_,null,J8Y || 0,i5U);}}}};Z$9.Studies.displaySeriesAsLine=function(z4g,w5t,R7f){var z66;if(!R7f.length){return;}z66=z4g.panels[w5t.panel];if(!z66 || z66.hidden){return;}i6UVR.W3G();for(var v$n in w5t.outputMap){Z$9.Studies.displayIndividualSeriesAsLine(z4g,w5t,z66,v$n,R7f);}};Z$9.Studies.displaySeriesAsHistogram=function(t78,e8m,y3A){var U_n,H84,V88,r0b,K23,u47,L4$,R5c,D1C,f_w,Q0N,E4Z;U_n="overl";U_n+="aid";if(!y3A.length){return;}H84=t78.panels[e8m.panel];if(!H84){return;}if(H84.hidden){return;}V88=[];for(var H64 in e8m.outputMap){r0b="o";r0b+="bj";r0b+="e";r0b+="ct";K23=e8m.outputs[e8m.outputMap[H64]];if(!K23)continue;i6UVR.s$9(1);u47=i6UVR.v$j(0,"0.3");if(typeof K23 == r0b){u47=K23.opacity;K23=K23.color;}L4$={field:H64,fill_color_up:K23,border_color_up:K23,fill_color_down:K23,border_color_down:K23};if(e8m.underlay){L4$.opacity_up=L4$.opacity_down=u47 || "0.3" - 0;}V88.push(L4$);}i6UVR.W5N();R5c=e8m.getYAxis(t78);D1C=e8m.inputs;f_w=D1C.WidthFactor;if(e8m.study && e8m.study.parameters){Q0N=e8m.study.parameters;if(typeof Q0N.widthFactor !== "undefined"){f_w=Q0N.widthFactor;}}E4Z={name:e8m.name,type:D1C.HistogramType?D1C.HistogramType:U_n,panel:e8m.panel,yAxis:R5c,widthFactor:f_w || 0.5,bindToYAxis:!"",highlight:e8m.highlight};t78.drawHistogram(E4Z,V88);};Z$9.Studies.displayIndividualSeriesAsLine=function(D7f,U2R,g5D,V75,U3I){var J7G,B59,v9q,D5B,D29,h9B,h9t,j0r,T8j,t_n,t$n,v9k,f4M,u8J,g_r,h1R,E3S,S74,u4m;J7G="tran";J7G+="s";J7G+="parent";B59="au";i6UVR.W3G();B59+="t";B59+="o";v9q="s";v9q+="t";v9q+="ring";if(!g5D.height){g5D.height=g5D.bottom - g5D.top;}D5B=U2R.getContext(D7f);D29=U2R.outputs[U2R.outputMap[V75]];if(!D29){return;}D5B.save();if(typeof D29 === v9q){D29={color:D29,width:1};}D5B.lineWidth=D29.width || 1;h9B=D29.color;if(h9B == B59){h9B=D7f.defaultColor;}D5B.strokeStyle=h9B;h9t=D29.pattern;D5B.setLineDash(Z$9.borderPatternToArray(D5B.lineWidth,h9t));D5B.lineDashOffset=0;j0r=0;T8j=U2R.study;t_n=U2R.getYAxis(D7f);j0r=D7f.decimalPlacesFromPriceTick(t_n.priceTick);if(U2R.overlay || U2R.underlay){j0r=null;}if(t_n.decimalPlaces || t_n.decimalPlaces === 0){j0r=t_n.decimalPlaces;}t$n=null;if(U2R.parameters){t$n=U2R.parameters.label;}v9k=T8j.parameters;if(!v9k){v9k={};}f4M=v9k.plotType == "step";if(U2R.series){for(var L06 in U2R.series){u8J="s";u8J+="te";u8J+="p";g_r=U2R.series[L06].parameters.type;if(g_r){i6UVR.O_b(72);f4M=i6UVR.V9a(g_r,u8J);}}}if(v9k.noLabels){t$n=![];}if(!U2R.noSlopes && U2R.noSlopes !== !({})){U2R.noSlopes=v9k.noSlopes;}if(!U2R.extendToEnd && U2R.extendToEnd !== !({})){U2R.extendToEnd=v9k.extendToEnd;}h1R=t$n || D7f.preferences.labels && t$n !== ![];E3S=U2R.gaplines;if(E3S === !!""){E3S=J7G;}S74=U2R.inputs.Symbol;u4m=E3S?D7f.getGapColorFunction(S74,V75,D29,E3S):null;D7f.plotDataSegmentAsLine(V75,g5D,{yAxis:t_n,skipTransform:D7f.panels[U2R.panel].name != U2R.chart.name,label:h1R,labelDecimalPlaces:j0r,noSlopes:U2R.noSlopes,step:f4M,alignStepToSide:U2R.alignStepToSide,extendToEndOfLastBar:U2R.extendToEndOfLastBar,width:U2R.lineWidth,extendToEndOfDataSet:U2R.extendToEnd,gapDisplayStyle:E3S,highlight:U2R.highlight},u4m);if(T8j.appendDisplaySeriesAsLine){T8j.appendDisplaySeriesAsLine(D7f,U2R,U3I,V75,g5D);}D5B.restore();};Z$9.Studies.drawHorizontal=function(G84,J30,V57,s01,H58,b9z){var d4y,Z3P,Z20,p$L;d4y="s";d4y+="e";d4y+="gm";d4y+="ent";i6UVR.W5N();Z3P=G84.panels[J30.panel];Z20=G84.getBackgroundCanvas().context;if(!Z3P){return;}if(!b9z){b9z=H58.textStyle;}p$L=G84.pixelFromPrice(s01,Z3P,H58);if(p$L > H58.top && p$L < H58.bottom){G84.plotLine(Z3P.left,Z3P.right,p$L,p$L,b9z,d4y,Z20,![],{opacity:b9z && b9z.opacity?b9z.opacity:0.5});}};Z$9.Studies.displayHistogramWithSeries=function(f3z,s1N,m2C){var h$q,I7W;h$q=f3z.panels[s1N.panel];I7W=+"0.5";if(s1N.underlay){I7W=0.3;}Z$9.Studies.createHistogram(f3z,s1N,m2C,![],I7W);Z$9.Studies.displaySeriesAsLine(f3z,s1N,m2C);};Z$9.Studies.drawZones=function(L0o,m4b,l97){var g6N=i6UVR;var n0W,R4g,Q0o,f6r,l1K,G7X,d7t,e64,E5C,s4v,k_G,P4T,C$J,c17,a_P,D0T,M3G,w5E,R9O,B5n,t2Y,J5o,B3Q,C$A,Y0f,G1u,a1F,i4q;n0W="b";n0W+="ord";n0W+="er";R4g="l";R4g+="e";R4g+="f";g6N.W3G();R4g+="t";if(!m4b.parameters || !m4b.parameters.studyOverZonesEnabled){return;}Q0o=parseFloat(m4b.parameters.studyOverSoldValue);f6r=parseFloat(m4b.parameters.studyOverBoughtValue);l1K=m4b.parameters.studyOverSoldColor;G7X=m4b.parameters.studyOverBoughtColor;d7t=m4b.zoneOutput;if(!d7t){d7t="Result";}e64=Z$9.Studies.determineColor(m4b.outputs[d7t]);if(!e64 || e64 == "auto" || Z$9.isTransparent(e64)){e64=L0o.defaultColor;}if(!l1K){l1K=e64;}if(!l1K || l1K == "auto" || Z$9.isTransparent(l1K)){l1K=L0o.defaultColor;}if(!G7X){G7X=e64;}if(!G7X || G7X == "auto" || Z$9.isTransparent(G7X)){G7X=L0o.defaultColor;}E5C=L0o.panels[m4b.panel];s4v=m4b.getYAxis(L0o);k_G=s4v.displayBorder;if(L0o.axisBorders === !1){k_G=!({});}if(L0o.axisBorders === !![]){k_G=!![];}if(s4v.width === +"0"){k_G=!1;}P4T=L0o.getYAxisCurrentPosition(s4v,E5C);g6N.O_b(72);C$J=g6N.v$j(P4T,R4g);c17=s4v.justifyRight;if(!c17 && c17 !== !!0){if(L0o.chart.yAxis.justifyRight || L0o.chart.yAxis.justifyRight === ![]){c17=L0o.chart.yAxis.justifyRight;}else {c17=C$J;}}a_P=Math.round(s4v.left + (C$J?s4v.width:+"0")) + 0.5;D0T=k_G?3:0;M3G=L0o.getBackgroundCanvas().context;w5E=M3G.fillStyle;M3G.globalAlpha=0.2;L0o.startClip(E5C.name,!0);M3G.beginPath();R9O=Math.round(L0o.pixelFromPrice(f6r,E5C,s4v)) + +"0.5";M3G.strokeStyle=G7X;M3G.moveTo(E5C.left,R9O);M3G.lineTo(E5C.right,R9O);M3G.stroke();M3G.closePath();M3G.beginPath();B5n=Math.round(L0o.pixelFromPrice(Q0o,E5C,s4v)) + 0.5;M3G.strokeStyle=l1K;M3G.moveTo(E5C.left,B5n);M3G.lineTo(E5C.right,B5n);M3G.stroke();M3G.closePath();t2Y=new Z$9.Plotter();t2Y.newSeries(n0W,"stroke",L0o.canvasStyle("stx_grid_border"));if(k_G){J5o=C$J?a_P - D0T:a_P - 0.5;B3Q=C$J?a_P + 0.5:a_P + D0T;t2Y.moveTo("border",J5o,R9O);t2Y.lineTo("border",B3Q,R9O);t2Y.moveTo("border",J5o,B5n);t2Y.lineTo("border",B3Q,B5n);}M3G.fillStyle=w5E;C$A={skipTransform:L0o.panels[m4b.panel].name != m4b.chart.name,panelName:m4b.panel,band:d7t + ((6059,7010) > 320.6?" ":("x",+"838.29")) + m4b.name,yAxis:s4v,opacity:0.3};if(!m4b.highlight && L0o.highlightedDraggable){C$A.opacity*=0.3;}Z$9.preparePeakValleyFill(L0o,Z$9.extend(C$A,{threshold:f6r,direction:s4v.flipped?-1:1,color:G7X}));Z$9.preparePeakValleyFill(L0o,Z$9.extend(C$A,{threshold:Q0o,direction:s4v.flipped?1:-1,color:l1K}));M3G.globalAlpha=1;if(!m4b.study || !m4b.study.yaxis){if(k_G){Y0f="b";Y0f+="order";G1u="bor";G1u+="d";G1u+="e";G1u+="r";a1F=Math.round(s4v.bottom) + 0.5;t2Y.moveTo(G1u,a_P,s4v.top);t2Y.lineTo("border",a_P,a1F);t2Y.draw(M3G,Y0f);}if(s4v.width !== +"0"){L0o.canvasFont("stx_yaxis",M3G);L0o.canvasColor("stx_yaxis",M3G);M3G.textAlign=c17?"right":"left";if(C$J){i4q=s4v.left + +"3";if(c17){g6N.s$9(0);var l3h=g6N.v$j(0,3);i4q=s4v.left + s4v.width - D0T - l3h;}}else {g6N.s$9(16);var u_Y=g6N.v$j(8,18,23);i4q=s4v.left + D0T + u_Y;if(c17){i4q=s4v.left + s4v.width;}}M3G.fillStyle=G7X;M3G.fillText(f6r,i4q,R9O);M3G.fillStyle=l1K;M3G.fillText(Q0o,i4q,B5n);M3G.fillStyle=w5E;}}L0o.endClip();M3G.globalAlpha=1;if(s4v.name == m4b.name){s4v.yAxisPlotter=new Z$9.Plotter();}};Z$9.Studies.createHistogram=function(R$K,g0I,I5V,b7n,j4Z){var N$h=i6UVR;var N1v,y3h,i$L,r8c,d9d,e1h,d0f,x9m,I4q,C6d,w8f,z4B,T84,j1A,J8E,y$T,F0N,M4s,H2S;N1v=R$K.panels[g0I.panel];y3h=g0I.getContext(R$K);i$L=g0I.getYAxis(R$K);R$K.startClip(N1v.name);N$h.O_b(24);var X$a=N$h.V9a(17,7,38,16);r8c=R$K.layout.candleWidth - X$a;if(r8c < 2){r8c=1;}d9d=R$K.pixelFromPrice(0,N1v,i$L);if(i$L.min > ("0" ^ 0)){d9d=R$K.pixelFromPrice(i$L.min,N1v,i$L);}if(b7n){d9d=Math.floor(N1v.top + N1v.height / 2);}e1h=g0I.name + "_hist";R$K.canvasColor("stx_histogram");d0f=y3h.fillStyle;if(j4Z || j4Z === "0" >> 32){y3h.globalAlpha=j4Z;}if(!g0I.highlight && R$K.highlightedDraggable){y3h.globalAlpha*=0.3;}x9m=null;I4q=null;C6d=g0I.outputs;for(var t3K=0;t3K < I5V.length;t3K++){w8f=I5V[t3K];if(!w8f)continue;if(w8f.candleWidth){r8c=Math.floor(Math.max("1" * 1,w8f.candleWidth - 2));}z4B=Math.floor(R$K.pixelFromBar(t3K,N1v.chart) - r8c / 2);T84=Math.floor(r8c);if(x9m === null){N$h.s$9(117);var k$5=N$h.V9a(13,4,8);j1A=R$K.tickFromPixel(z4B,N1v.chart) - k$5;if(j1A < 0){x9m=I4q;}else {x9m=R$K.pixelFromPrice(R$K.chart.dataSet[j1A][e1h],N1v,i$L) - d9d;}}else {x9m=I4q;}I4q=R$K.pixelFromPrice(w8f[e1h],N1v,i$L) - d9d;J8E=Z$9.Studies.determineColor(C6d["Decreasing Bar"]);y$T=Z$9.Studies.determineColor(C6d["Increasing Bar"]);F0N=Z$9.Studies.determineColor(C6d["Positive Bar"]);M4s=Z$9.Studies.determineColor(C6d["Negative Bar"]);H2S=i$L.flipped;y3h.fillStyle=d0f;if(J8E && (H2S?I4q < x9m:I4q > x9m)){y3h.fillStyle=J8E;}else if(y$T && (H2S?I4q > x9m:I4q < x9m)){y3h.fillStyle=y$T;}else if(F0N && (H2S?I4q > 0:I4q < 0)){y3h.fillStyle=F0N;}else if(M4s && (H2S?I4q < +"0":I4q > 0)){y3h.fillStyle=M4s;}y3h.fillRect(z4B,d9d,T84,Math.floor(I4q));}y3h.globalAlpha=+"1";R$K.endClip();};Z$9.Studies.prettify={Close:4450 >= 536?6430 === (4102,"641" * 1)?938.73:"C":!1,Open:"O",High:"H",Low:"L",simple:"ma",exponential:"ema",triangular:"tma",VIDYA:"vdma",weighted:U6i,"welles wilder":"smma",true:(4640,"604.43" - 0) <= (588.88,+"9667")?4130 === (1130,+"306.78")?330.11:5274 == 262.64?("m",0x23fd):"y":1.52e+3,false:(1880,1630) > (9360,2500)?(1.60e+3,0xc8d):"n"};Z$9.Studies.prettyRE=/^.*\((.*?)\).*$/;Z$9.Studies.prettyDisplay=function(V4T){var I3L,v1k;I3L=Z$9.Studies.prettyRE.exec(V4T);if(!I3L){return V4T;}v1k=I3L[+"1"];if(v1k){for(var L4w in Z$9.Studies.prettify){v1k=v1k.replace(L4w,Z$9.Studies.prettify[L4w]);}V4T=V4T.replace(I3L[1],v1k);}i6UVR.W3G();return V4T;};Z$9.Studies.getFieldInputs=function(u73){var v1I,j9b;v1I=[];j9b=u73.study.inputs;for(var E6j in j9b){if(j9b[E6j] == "field"){v1I.push(E6j);}}return v1I;};Z$9.Studies.initializeFN=function(u2X,n87,w1G,l_0,j1J,g0o,n8m){var O6j,X9x,B8R,I1y,O9e,m72,E3i,q5B,I7w,z70,f7w,K2b,j_9,k3A,b17,i2m,x0A,j$p,L$u;O6j="st";O6j+="ring";if(!w1G){w1G={};}if(!j1J){j1J={};}if(!w1G.id){w1G.id=Z$9.Studies.generateID(u2X,n87,w1G,j1J.replaceID,j1J.display);}if(!w1G.display){w1G.display=w1G.id;}X9x=new Z$9.Studies.StudyDescriptor(w1G.id,n87,w1G.id,w1G,l_0,j1J);if(w1G.Period){X9x.days=Math.max(1,parseInt(X9x.inputs.Period,10));}if(n8m){if(!n8m.inputs){n8m.inputs=X9x.study.inputs;}if(!n8m.outputs){n8m.outputs=X9x.study.outputs;}X9x.study=n8m;}else {n8m=X9x.study;}if(n8m.display){w1G.display=n8m.display;}if(typeof j1J.panelName == O6j){g0o=j1J.panelName;}if(g0o == w1G.id || g0o && !u2X.panelExists(g0o)){X9x.underlay=X9x.overlay=!({});}if(g0o == "Own panel" || g0o == "New panel"){g0o=null;}B8R=X9x.overlay || w1G.Overlay || X9x.overlay !== ![] && n8m.overlay;I1y=X9x.underlay || w1G.Underlay || X9x.underlay !== !!0 && n8m.underlay;if(B8R && j1J.underlayEnabled){I1y=!![];}if(I1y){X9x.underlay=!![];}if(!I1y && u2X.chart.panel && g0o == u2X.chart.panel.name){B8R=!!"1";}if(B8R){X9x.overlay=!![];}O9e=u2X.preferences.dragging;if(O9e === !![] || O9e && O9e.study){X9x.overlay=!![];}if(g0o){j1J.panelName=g0o;}else if(!B8R && !I1y){g0o=w1G.id;}if(j1J.calculateOnly){if(B8R || I1y){if(u2X.panels[j1J.panelName]){X9x.panel=j1J.panelName;}else {X9x.panel=Z$9.Studies.getPanelFromFieldName(u2X,X9x) || j1J.chartName;}}return X9x;}m72={};E3i=u2X.layout.studies[j1J.replaceID];if(E3i){m72={outputMap:Z$9.clone(E3i.outputMap),panel:E3i.panel};}X9x.panel="";if(g0o){q5B="Ne";q5B+="w pa";q5B+="nel";I7w=Z$9.Studies.smartMovePanel(u2X,X9x.inputs,g0o,j1J.replaceID,j1J.panelName == q5B);if(I7w){X9x.panel=I7w.name;}}else if(B8R || I1y){X9x.panel=Z$9.Studies.getPanelFromFieldName(u2X,X9x) || j1J.chartName;}if(!X9x.panel){z70=n8m.panelHeight || null;f7w=n8m.yAxis || ({});f7w.name=X9x.inputs.id;X9x.panel=X9x.inputs.id;u2X.createPanel(X9x.inputs.display,X9x.panel,z70,j1J.chartName,new Z$9.ChartEngine.YAxis(f7w));}if(X9x.parameters && X9x.parameters.panelName){X9x.parameters.panelName=X9x.panel;}K2b=u2X.panels[X9x.panel];j_9=Z$9.Studies.smartCreateYAxis(u2X,K2b,X9x.inputs.id,j1J.yaxisDisplayValue,j1J.yAxis || n8m.yAxis);k3A=n8m?Z$9.clone(n8m.yAxis):null;b17=k3A || j_9;if(b17){if(b17.ground){b17.initialMarginBottom=0;}if(b17.initialMarginTop || b17.initialMarginTop === 0 || b17.initialMarginBottom || b17.initialMarginBottom === 0){u2X.calculateYAxisMargins(b17);}if(b17.name == j1J.replaceID){b17.name=X9x.inputs.id;}}if(j_9){i2m="de";i2m+="fau";i2m+="l";i2m+="t";x0A="n";x0A+="o";x0A+="ne";j_9.width=j_9.position == x0A?+"0":Z$9.ChartEngine.YAxis.prototype.width;if(j1J.yaxisDisplayValue == "shared" || j1J.yaxisDisplayValue == i2m){delete j1J.yaxisDisplayValue;}else {if(k3A){Z$9.ensureDefaults(j_9,k3A);}else if(j_9.name == X9x.name){if(!j1J.yaxisDisplayColor || j1J.yaxisDisplayColor == "auto"){delete j_9.textStyle;}else {j_9.textStyle=Z$9.colorToHex(j1J.yaxisDisplayColor);}j_9.justifyRight=null;j_9.flipped=j1J.flippedEnabled;}}if(j_9 != K2b.yAxis){j_9.displayGridLines=![];}else if(j_9 != u2X.chart.yAxis){j_9.displayGridLines=u2X.displayGridLinesInStudies;}}u2X.calculateYAxisPositions();if(E3i){j$p=!1;for(var D88 in u2X.drawingObjects){L$u=u2X.drawingObjects[D88];if(m72.outputMap && m72.outputMap.hasOwnProperty(L$u.field)){L$u.field=L$u.field.replace(j1J.replaceID,X9x.inputs.id);if(X9x.parameters && X9x.parameters.panelName){L$u.panelName=X9x.parameters.panelName;}else {L$u.panelName=X9x.panel;}j$p=!![];}else if(m72.panel && m72.panel == L$u.panelName){L$u.panelName=L$u.panelName.replace(j1J.replaceID,X9x.inputs.id);j$p=!"";}}if(j$p){u2X.changeOccurred("vector");}}return X9x;};Z$9.Studies.smartMovePanel=function(w2T,F3d,V3z,w77,h23){var K1Z,u_s,M9e,n5A,h_Y,E3N,J4h;u_s=F3d.id;i6UVR.W3G();if(w77){K1Z=w2T.layout.studies[w77];}if(K1Z){M9e=w2T.panels[K1Z.panel];if(M9e){if(M9e.yAxis.name == w77){if((h23 || V3z != w77) && !w2T.checkForEmptyPanel(M9e.name,!!({}),K1Z)){w2T.electNewPanelOwner(M9e);n5A=K1Z.getYAxis(w2T);if(n5A.name == w77){w2T.electNewYAxisOwner(n5A);};}else if(V3z == w77 || !w2T.panels[V3z]){if(u_s != M9e.name){w2T.modifyPanel(M9e,{name:u_s,display:F3d.display});}V3z=u_s;}}}}h_Y=-1993084428;E3N=-216948721;J4h=2;for(var c$c=1;i6UVR.l5h(c$c.toString(),c$c.toString().length,43741) !== h_Y;c$c++){return w2T.panels[V3z];}if(i6UVR.m6F(J4h.toString(),J4h.toString().length,+"39751") !== E3N){return w2T.panels[V3z];}};Z$9.Studies.smartCreateYAxis=function(g7F,n_5,y6c,D73,m7A){var F8e=i6UVR;var z4n,x7A,n5w,j0X,Y7x,r0E,f3l,z93,d0e,o$m;z4n="l";z4n+="ef";z4n+="t";x7A="sha";x7A+="re";x7A+="d";F8e.W3G();n5w="def";n5w+="a";n5w+="ult";j0X=g7F.getYAxisByName(n_5,y6c);if(!D73 && m7A){D73=m7A.position;}if(D73 == n5w || D73 == x7A || D73 == n_5.yAxis.name){D73="";}if([z4n,"right","none"].indexOf(D73) > -1){if(!j0X || j0X.isShared(g7F)){Y7x=m7A || ({});Z$9.extend(Y7x,{name:y6c,position:D73});if(!j0X && !g7F.currentlyImporting && n_5 != n_5.chart.panel && !n_5.yAxis.studies.length && !n_5.yAxis.renderers.length){j0X=n_5.yAxis;Z$9.extend(j0X,Y7x);}else {r0E=j0X == n_5.yAxis;if(j0X){j0X.name=g7F.electNewYAxisOwner(j0X);}j0X=g7F.addYAxis(n_5,new Z$9.ChartEngine.YAxis(Y7x));if(r0E){n_5.yAxis=j0X;}}}else {j0X.position=D73;}f3l=1792883497;F8e.s$9(29);z93=-F8e.V9a("161301282",0);d0e=2;for(var W$X=1;F8e.m6F(W$X.toString(),W$X.toString().length,85028) !== f3l;W$X++){return j0X;}if(F8e.l5h(d0e.toString(),d0e.toString().length,66069) !== z93){return j0X;}}if(D73){o$m=g7F.getYAxisByName(n_5,D73);if(o$m && j0X == n_5.yAxis && !j0X.isShared(g7F)){n_5.yAxis=o$m;}if(j0X && j0X.isShared(g7F)){j0X.name=g7F.electNewYAxisOwner(j0X);}else {if(j0X !== n_5.yAxis){g7F.deleteYAxisIfUnused(n_5,j0X);}}return o$m;}if(j0X){if(j0X.isShared(g7F)){j0X.name=g7F.electNewYAxisOwner(j0X);}else {delete j0X.position;if(j0X !== n_5.yAxis){g7F.deleteYAxisIfUnused(n_5,j0X);}}}g7F.resizeChart();return n_5.yAxis;};Z$9.Studies.calculateVolume=function(i4G,W3k){var J3e,p6N,U_Q,G1t;J3e="vol und";J3e+="r";if(W3k.type == J3e){if(!i4G || !i4G.chart.dataSet){return;}p6N=i4G.layout;U_Q=W3k.parameters.removeStudy;G1t=p6N.volumeUnderlay;p6N.volumeUnderlay=!U_Q;if(G1t != p6N.volumeUnderlay){i4G.changeOccurred("layout");}if(U_Q){Z$9.Studies.removeStudy(i4G,W3k);}}W3k.outputMap={};W3k.outputMap.Volume="";};Z$9.Studies.MA=function(q1K,j2E,E4h,p6v,P_k,C8t,Q1U,Y0X){var y4$=i6UVR;var M_X;y4$.s$9(26);var S$D=y4$.v$j(5456,18,5440,5438);y4$.s$9(21);var x6l=y4$.V9a(7,7578,45466);y4$.s$9(118);var h$c=y4$.V9a(2,6355,15,6360,5);y4$.s$9(1);var D1n=y4$.v$j(44165,52998);y4$.s$9(119);var b5G=y4$.V9a(3497,3497,3494);y4$.O_b(16);var J3l=y4$.V9a(20,5863,22);y4$.s$9(58);var v2h=y4$.V9a(440,8,221,884);M_X=new Z$9.Studies.StudyDescriptor(P_k + ((S$D,x6l) == (39.39,h$c)?(D1n,904.16) <= (+"665.73",b5G)?(J3l,"D"):(v2h,"u"):" ") + Q1U.name,"ma",Q1U.panel);M_X.chart=Q1U.chart;M_X.days=parseInt(j2E,10);M_X.startFrom=Q1U.startFrom;if(Y0X){M_X.subField=Y0X;}M_X.inputs={};if(q1K){M_X.inputs.Type=q1K;}y4$.W5N();if(E4h){M_X.inputs.Field=E4h;}if(p6v){M_X.inputs.Offset=parseInt(p6v,10);}Z$9.Studies.calculateMovingAverage(C8t,M_X);};Z$9.Studies.movingAverage={conversions:{ma:h0R,sma:"simple",ema:p0k,tma:"triangular",vdma:b84,wma:"weighted",smma:"welles wilder"},translations:{simple:"Simple",exponential:"Exponential",triangular:v8w,vidya:"VIDYA",weighted:"Weighted","welles wilder":"Welles Wilder"},typeMap:{ema:Y$e,exponential:C79,tma:"Triangular",triangular:"Triangular",vdma:"VIDYA",vidya:"VIDYA",wma:"Weighted",weighted:"Weighted",smma:"Exponential","welles wilder":"Exponential"}};Z$9.Studies.movingAverageHelper=function(O2p,i8W){var H8D;if(i8W == "options"){H8D={};for(var T9d in Z$9.Studies.movingAverage.translations){H8D[T9d]=O2p.translateIf(Z$9.Studies.movingAverage.translations[T9d]);}return H8D;}return Z$9.Studies.movingAverage.conversions[i8W];};Z$9.Studies.createVolumeChart=function(T_V,S0r,Z0t){var p9t=i6UVR;var N3I,a1b,B4N,p41,y6P,X$L,C_L,q42,I72,E4d,x7J,T91,w9a,i$_,w$j,J8L;N3I="rg";N3I+="b(184, ";N3I+="44, 12)";a1b="_";a1b+="do";a1b+="wn";B4N="D";B4N+="own ";B4N+="V";B4N+="olume";p41="Up Volum";p41+="e";y6P=S0r.panel;X$L=S0r.inputs;C_L=S0r.underlay;q42=S0r.overlay;I72=C_L || q42;E4d=Z$9.Studies.determineColor(S0r.outputs[p41]);x7J=Z$9.Studies.determineColor(S0r.outputs[B4N]);T91=C_L?"stx_volume_underlay":"stx_volume";p9t.s$9(0);T_V.setStyle(p9t.v$j(T91,"_up"),"color",E4d);p9t.s$9(0);T_V.setStyle(p9t.V9a(T91,"_down"),"color",x7J);w9a=[{field:S0r.volumeField || "Volume",fill_color_up:T_V.canvasStyle(T91 + "_up").color,border_color_up:T_V.canvasStyle(T91 + "_up").borderLeftColor,opacity_up:T_V.canvasStyle(T91 + "_up").opacity,fill_color_down:T_V.canvasStyle(T91 + a1b).color,border_color_down:T_V.canvasStyle(T91 + "_down").borderLeftColor,opacity_down:T_V.canvasStyle(T91 + "_down").opacity,color_function:S0r.colorFunction}];i$_=w9a[+"0"];if(!C_L && i$_.border_color_down === N3I){i$_.border_color_down="#000000";i$_.border_color_up="#000000";}w$j=S0r.getYAxis(T_V);J8L={name:"Volume",panel:y6P,yAxis:w$j,widthFactor:1,bindToYAxis:!"",highlight:S0r.highlight};Z$9.extend(J8L,S0r.study.parameters);Z$9.extend(J8L,S0r.parameters);if(T_V.colorByCandleDirection && !S0r.colorFunction){i$_.color_function=function(h5C){var c6G,b2d;c6G=h5C.Open;b2d=h5C.Close;return {fill_color:c6G > b2d?i$_.fill_color_down:i$_.fill_color_up,border_color:c6G > b2d?i$_.border_color_down:i$_.border_color_up,opacity:c6G > b2d?i$_.opacity_down:i$_.opacity_up};};}T_V.drawHistogram(J8L,w9a);};Z$9.Studies.calculateStandardDeviation=function(w5M,c0c){var B56=i6UVR;var R3j,C4v,G4B,b7i,F5u,x8z,G6Y,J2v,u_q,G19,X90,f_Q,O4k,A_y,Q94,m12;R3j="_";B56.W3G();R3j+="M";R3j+="A";C4v="C";C4v+="los";C4v+="e";G4B="fiel";G4B+="d";b7i=c0c.chart.scrubbed;if(b7i.length < c0c.days + 1){c0c.error=!![];return;}F5u=c0c.inputs.Field;if(!F5u || F5u == G4B){F5u=C4v;}x8z=c0c.inputs["Moving Average Type"];if(!x8z){x8z=c0c.inputs.Type;}Z$9.Studies.MA(x8z,c0c.days,F5u,c0c.inputs.Offset,R3j,w5M,c0c);G6Y=0;B56.O_b(1);J2v=B56.v$j(0,"0");u_q=0;G19=Number(c0c.inputs["Standard Deviations"]);if(G19 < 0){G19=2;}X90=c0c.name;for(var o0_ in c0c.outputs){B56.s$9(35);X90=B56.V9a(" ",X90,o0_);}for((f_Q=c0c.startFrom - 1,A_y=0);f_Q >= 0 && A_y < c0c.days;(f_Q--,A_y++)){O4k=b7i[f_Q][F5u];if(O4k && typeof O4k == "object"){O4k=O4k[c0c.subField];}if(isNaN(O4k)){O4k=0;}G6Y+=Math.pow(O4k,2);J2v+=O4k;}for(f_Q=c0c.startFrom;f_Q < b7i.length;f_Q++){Q94=b7i[f_Q];O4k=Q94[F5u];if(O4k && typeof O4k == "object"){O4k=O4k[c0c.subField];}if(!O4k && O4k !== 0){O4k=0;}G6Y+=Math.pow(O4k,2);J2v+=O4k;if(f_Q < c0c.days - +"1")continue;if(f_Q >= c0c.days){m12=b7i[f_Q - c0c.days][F5u];if(m12 && typeof m12 == "object"){m12=m12[c0c.subField];}if(isNaN(m12)){m12=0;}G6Y-=Math.pow(m12,2);J2v-=m12;}u_q=Q94["_MA " + c0c.name];if(u_q || u_q === 0){B56.s$9(56);var D8t=B56.v$j(5,35,20,15,10);B56.s$9(16);var H1X=B56.V9a(4,0,2);Q94[X90]=Math.sqrt((G6Y + c0c.days * Math.pow(u_q,D8t) - H1X * u_q * J2v) / c0c.days) * G19;}}};Z$9.Studies.calculateMovingAverage=function(J8k,t1Y){var A2U,L5o,y16,E3I,s05,m_k,H3M,d70,I9A,C$2,B9a,c3y,K7l,k_m,g0F,D6C,R7Y,j60;if(!t1Y.chart.scrubbed){return;}A2U=t1Y.inputs.Type;if(A2U == "ma" || A2U == "sma" || !A2U){A2U="simple";}L5o=Z$9.Studies.movingAverage.typeMap;if((A2U in L5o)){return Z$9.Studies["calculateMovingAverage" + L5o[A2U]](J8k,t1Y);}else if(A2U !== "simple"){return;}y16=t1Y.chart.scrubbed;E3I=+"0";s05=[];m_k=t1Y.name;for(var z4k in t1Y.outputs){i6UVR.O_b(35);m_k=i6UVR.V9a(" ",m_k,z4k);}i6UVR.W5N();H3M=t1Y.inputs.Field;if(!H3M || H3M == "field"){H3M="Close";}d70=parseInt(t1Y.inputs.Offset,10);if(isNaN(d70)){d70=0;}c3y=t1Y.startFrom;K7l=d70;for(I9A=t1Y.startFrom - 1;I9A >= 0;I9A--){C$2=y16[I9A][H3M];if(C$2 && typeof C$2 == "object"){C$2=C$2[t1Y.subField];}if(!C$2 && C$2 !== "0" - 0)continue;if(K7l > 0){K7l--;c3y=I9A;continue;}if(s05.length == t1Y.days - 1)break;E3I+=C$2;s05.unshift(C$2);}if(s05.length < t1Y.days - 1){s05=[];c3y=0;;}k_m=[];for(I9A=c3y;I9A < y16.length;I9A++){g0F=y16[I9A];C$2=g0F[H3M];if(C$2 && typeof C$2 == "object"){C$2=C$2[t1Y.subField];}D6C=I9A + d70 >= 0 && I9A + d70 < y16.length;R7Y=D6C?y16[I9A + d70]:null;if(!C$2 && C$2 !== "0" - 0){if(R7Y){R7Y[m_k]=null;}else if(I9A + d70 >= y16.length){B9a={};B9a[m_k]=null;k_m.push(B9a);}continue;}E3I+=C$2;s05.push(C$2);if(s05.length > t1Y.days){E3I-=s05.shift();}j60=s05.length == t1Y.days?E3I / t1Y.days:null;if(R7Y){R7Y[m_k]=j60;}else if(I9A + d70 >= y16.length){B9a={};B9a[m_k]=j60;k_m.push(B9a);}}t1Y.appendFutureTicks(J8k,k_m);};Z$9.Studies.calculateMovingAverageExponential=function(T8n,D7E){var X1v=i6UVR;var f6y,k$M,C0x,S4y,J0j,W7S,d4i,u8D,D8O,S4E,S1U,C_Z,G6x,L7d,X6j,x24,U4C,F4S,b$V,M4b,y$A;f6y="fi";f6y+="e";f6y+="ld";k$M=D7E.inputs.Type;C0x=D7E.chart.scrubbed;X1v.s$9(39);S4y=X1v.v$j("0",0);J0j=0;W7S=0;X1v.W5N();X1v.O_b(24);var c8K=X1v.v$j(11,2,30,19);X1v.s$9(19);var c0Q=X1v.V9a(10,5,0,10,6);d4i=c8K / (D7E.days + c0Q);if(k$M === "welles wilder" || k$M === "smma"){X1v.s$9(7);var J5S=X1v.v$j(11,1,6,16);d4i=J5S / D7E.days;}u8D=null;D8O=D7E.name;for(var G9R in D7E.outputs){X1v.s$9(35);D8O=X1v.V9a(3204 !== 584.11?(157.03,538) <= (1084,3281)?9140 > "633.5" - 0?" ":+"194.26":!!0:(0x73b,4.37e+3),D8O,G9R);}S4E=D7E.inputs.Field;if(!S4E || S4E == f6y){S4E="Close";}S1U=parseInt(D7E.inputs.Offset,10);if(isNaN(S1U)){S1U=0;}L7d=D7E.startFrom;X6j=S1U;for(C_Z=D7E.startFrom - 1;C_Z >= 0;C_Z--){G6x=C0x[C_Z][D8O];if(!G6x && G6x !== 0)continue;if(u8D === null){u8D=G6x;}W7S=D7E.days;if(X6j <= ("0" ^ 0))break;X6j--;L7d=C_Z;}if(u8D === null){u8D=L7d=0;}x24=[];for(C_Z=L7d;C_Z < C0x.length;C_Z++){U4C=C0x[C_Z];G6x=U4C[S4E];if(G6x && typeof G6x == "object"){G6x=G6x[D7E.subField];}F4S=C_Z + S1U >= 0 && C_Z + S1U < C0x.length;b$V=F4S?C0x[C_Z + S1U]:null;if(!G6x && G6x !== 0){M4b=null;}else {if(W7S == D7E.days - 1){S4y+=G6x;J0j=S4y / D7E.days;M4b=J0j;}else if(W7S < D7E.days - 1){S4y+=G6x;X1v.s$9(120);J0j=X1v.V9a(S4y,1,W7S);M4b=null;}else if(W7S === 0){S4y+=G6x;J0j=S4y;M4b=null;}else if(u8D || u8D === 0){X1v.s$9(22);J0j=X1v.V9a(u8D,u8D,G6x,d4i);M4b=J0j;}u8D=J0j;W7S++;}if(b$V){b$V[D8O]=M4b;}else if(C_Z + S1U >= C0x.length){y$A={};y$A[D8O]=M4b;x24.push(y$A);}}D7E.appendFutureTicks(T8n,x24);};Z$9.Studies.calculateMovingAverageVIDYA=function(K3f,E1n){var o5o=i6UVR;var R9V,d$e,S9g,f0h,G9b,Q$N,l8E,K8R,m30,w50,H0Q,M3R,F2o,b$0,x0W,A_D,r8P,m9C,k3i,R7y,y5z,A64,y6q,c0R,H_h,M2D;R9V="_MA";R9V+="ST";R9V+="D";d$e="m";d$e+="a";S9g="m";S9g+="a";f0h="s";f0h+="dev";G9b="Clos";G9b+="e";Q$N=E1n.inputs.Type;l8E=E1n.chart.scrubbed;o5o.s$9(121);var d4$=o5o.V9a(5,7,492,0,14);K8R=d4$ / (E1n.days + +"1");m30=null;w50=E1n.name;for(var L6c in E1n.outputs){o5o.O_b(35);w50=o5o.v$j(" ",w50,L6c);}H0Q=E1n.inputs.Field;if(!H0Q || H0Q == "field"){H0Q=G9b;}E1n.std=new Z$9.Studies.StudyDescriptor(E1n.name,f0h,E1n.panel);E1n.std.chart=E1n.chart;E1n.std.days=5;E1n.std.startFrom=E1n.startFrom;E1n.std.inputs={Field:H0Q,"Standard Deviations":1,Type:S9g};E1n.std.outputs={_STD:null};Z$9.Studies.calculateStandardDeviation(K3f,E1n.std);Z$9.Studies.MA(d$e,20,"_STD " + E1n.name,0,R9V,K3f,E1n);M3R=parseInt(E1n.inputs.Offset,"10" << 0);if(isNaN(M3R)){M3R=0;}A_D=E1n.startFrom;r8P=M3R;for(F2o=E1n.startFrom - ("1" << 32);F2o >= +"0";F2o--){b$0=l8E[F2o][w50];if(!b$0 && b$0 !== 0)continue;if(m30 === null){m30=b$0;}if(r8P <= 0)break;r8P--;A_D=F2o;}if(m30 === null){m30=A_D=0;}m9C=[];for(F2o=A_D;F2o < l8E.length;F2o++){k3i="_S";k3i+="TD ";R7y="_MA";R7y+="S";R7y+="TD";R7y+=" ";y5z="ob";y5z+="ject";A64=l8E[F2o];b$0=A64[H0Q];if(b$0 && typeof b$0 == y5z){b$0=b$0[E1n.subField];}y6q=F2o + M3R >= 0 && F2o + M3R < l8E.length;c0R=y6q?l8E[F2o + M3R]:null;if(!b$0 && b$0 !== 0){if(c0R){c0R[w50]=null;}else if(F2o + M3R >= l8E.length){x0W={};x0W[w50]=null;m9C.push(x0W);}continue;}if(!A64["_MASTD " + E1n.name] && A64[R7y + E1n.name] !== 0)continue;H_h=A64[k3i + E1n.name] / A64["_MASTD " + E1n.name];o5o.s$9(122);M2D=o5o.V9a(m30,b$0,H_h,K8R,H_h,K8R,1);m30=M2D;if(F2o < E1n.days){M2D=null;}if(c0R){c0R[w50]=M2D;}else if(F2o + M3R >= l8E.length){x0W={};x0W[w50]=M2D;m9C.push(x0W);}}E1n.appendFutureTicks(K3f,m9C);};Z$9.Studies.calculateMovingAverageTriangular=function(W$C,G$0){var u9G=i6UVR;var q1q,f40,k$i,x3$,X5Q,m2w,g7L,Y8$,K5d,Q9f,m6Y,i81,N9G,k1q;q1q="T";q1q+="RI";q1q+="2";f40=G$0.chart.scrubbed;k$i=G$0.inputs.Field;if(!k$i || k$i == "field"){k$i="Close";}x3$=Math.ceil(G$0.days / 2);Z$9.Studies.MA("simple",x3$,k$i,0,"TRI1",W$C,G$0);if(G$0.days % 2 === 0){x3$++;}Z$9.Studies.MA("simple",x3$,"TRI1 " + G$0.name,0,q1q,W$C,G$0);X5Q=G$0.name;for(var J_y in G$0.outputs){u9G.O_b(35);X5Q=u9G.v$j(" ",X5Q,J_y);}m2w=parseInt(G$0.inputs.Offset,10);g7L=-1347157408;Y8$=-+"257006189";K5d=2;for(var l$_=1;u9G.l5h(l$_.toString(),l$_.toString().length,64376) !== g7L;l$_++){if(isNaN(m2w)){m2w=3;}Q9f=m2w;u9G.s$9(1);K5d+=u9G.V9a(0,"2");}if(u9G.m6F(K5d.toString(),K5d.toString().length,83165) !== Y8$){if(isNaN(m2w)){m2w=7;}Q9f=m2w;}if(isNaN(m2w)){m2w=0;}Q9f=m2w;for(var Q$c=G$0.startFrom - 1;Q$c >= +"0";Q$c--){m6Y=f40[Q$c][X5Q];if(!m6Y && m6Y !== 0)continue;if(Q9f > 0){Q9f--;continue;}break;}i81=[];for(Q$c++;Q$c < f40.length;Q$c++){if(Q$c + m2w >= 0){if(Q$c + m2w < f40.length){u9G.s$9(0);f40[u9G.V9a(Q$c,m2w)][X5Q]=f40[Q$c]["TRI2 " + G$0.name];}else {N9G="T";N9G+="R";N9G+="I2";N9G+=" ";k1q={};k1q[X5Q]=f40[Q$c][N9G + G$0.name];i81.push(k1q);}}}G$0.appendFutureTicks(W$C,i81);};Z$9.Studies.calculateMovingAverageWeighted=function(i52,f9G){var i60=i6UVR;var M$R,N5$,V_o,t$P,m2g,f3u,n7h,b2K,s8d,K4u,U6f,p_v,y7B,J9O,l7h,R_Y,I8W,D8p,I8E,w9X,G4X,S8v,f2I;M$R="Clo";M$R+="se";N5$=f9G.chart.scrubbed;V_o=0;t$P=+"0";m2g=f9G.inputs.Field;if(!m2g || m2g == "field"){m2g=M$R;}i60.O_b(1);var d7W=i60.v$j(16,17);i60.W5N();i60.O_b(1);var d80=i60.V9a(30,32);f3u=f9G.days * (f9G.days + d7W) / d80;n7h=f9G.name;for(var p82 in f9G.outputs){i60.O_b(35);n7h=i60.V9a((2620,4190) > +"6230"?(0x18c4,"A"):" ",n7h,p82);}b2K=parseInt(f9G.inputs.Offset,10);if(isNaN(b2K)){b2K=0;}p_v=[];y7B=f9G.startFrom;J9O=b2K;for(s8d=f9G.startFrom - 1;s8d >= 0;s8d--){l7h="ob";l7h+="je";l7h+="c";l7h+="t";K4u=N5$[s8d][m2g];if(K4u && typeof K4u == l7h){K4u=K4u[f9G.subField];}if(!K4u && K4u !== 0)continue;if(J9O > 0){J9O--;y7B=s8d;continue;}if(p_v.length == f9G.days - 1)break;p_v.unshift(K4u);}if(p_v.length < f9G.days - 1){p_v=[];R_Y=-533472951;i60.O_b(2);I8W=i60.V9a(1,"179969968");D8p=2;for(var f67=1;i60.m6F(f67.toString(),f67.toString().length,+"31410") !== R_Y;f67++){y7B=2;D8p+=2;}if(i60.l5h(D8p.toString(),D8p.toString().length,61882) !== I8W){y7B=0;};}for(s8d=0;s8d < p_v.length;s8d++){i60.O_b(0);var S9X=i60.v$j(3,29);V_o+=(s8d + ("1" << S9X)) * p_v[s8d];t$P+=p_v[s8d];}I8E=[];for(s8d=y7B;s8d < N5$.length;s8d++){w9X=N5$[s8d];K4u=w9X[m2g];if(K4u && typeof K4u == "object"){K4u=K4u[f9G.subField];}G4X=s8d + b2K >= 0 && s8d + b2K < N5$.length;S8v=G4X?N5$[s8d + b2K]:null;if(!K4u && K4u !== 0){if(S8v){S8v[n7h]=null;}else if(s8d + b2K >= N5$.length){U6f={};U6f[n7h]=null;I8E.push(U6f);}continue;}p_v.push(K4u);if(p_v.length > f9G.days){V_o-=t$P;t$P-=p_v.shift();}V_o+=p_v.length * K4u;t$P+=K4u;f2I=s8d < f9G.days - 1?null:V_o / f3u;if(S8v){S8v[n7h]=f2I;}else if(s8d + b2K >= N5$.length){U6f={};U6f[n7h]=f2I;I8E.push(U6f);}}f9G.appendFutureTicks(i52,I8E);};Z$9.Studies.calculateStudyATR=function(Q3Z,G57){var e1c=i6UVR;var d_J,L2F,o2T,E7F,s$Y,Y2n,J5R,k9H,L5v;d_J=G57.chart.scrubbed;L2F=G57.days;if(d_J.length < L2F + 1){G57.error=!!({});return;}o2T=0;E7F=G57.name;for(var k4j=Math.max(G57.startFrom,1);k4j < d_J.length;k4j++){s$Y="A";s$Y+="T";s$Y+="R";s$Y+=" ";Y2n="Tr";Y2n+="ue R";Y2n+="ange";Y2n+=" ";J5R=d_J[k4j];e1c.s$9(1);k9H=d_J[e1c.v$j(1,k4j)];L5v=J5R.trueRange;if(k9H["Sum True Range " + E7F]){e1c.O_b(0);o2T=k9H[e1c.v$j("Sum True Range ",E7F)];}o2T+=L5v;if(k4j > L2F){e1c.s$9(1);o2T-=d_J[e1c.v$j(L2F,k4j)][e1c.V9a(Y2n,E7F,e1c.s$9(0))];}e1c.s$9(0);J5R[e1c.v$j("True Range ",E7F)]=L5v;e1c.O_b(0);J5R[e1c.v$j("Sum True Range ",E7F)]=o2T;if(k4j == L2F){e1c.s$9(0);J5R[e1c.V9a("ATR ",E7F)]=e1c.v$j(o2T,L2F,e1c.s$9(9));}else if(k4j > L2F){e1c.s$9(23);var N$$=e1c.V9a(4,3);e1c.O_b(0);J5R[e1c.v$j(s$Y,E7F)]=(k9H["ATR " + E7F] * (L2F - N$$) + L5v) / L2F;}}};Z$9.Studies.displayPSAR2=function(l7C,u7O,u4V){var k0B=i6UVR;var a37,K_v,r0D,g_0,r3q,c65,l0p,T8T,D15,p1t,R6v,J3J,o91;a37=l7C.panels[u7O.panel];K_v=u7O.getYAxis(l7C);r0D=K_v == l7C.chart.panel.yAxis;l7C.startClip(a37.name);k0B.W5N();g_0=u7O.getContext(l7C);r3q=u7O.inputs["Plot Type"] == "squarewave";for(var S18 in u7O.outputs){k0B.O_b(123);var C3u=k0B.v$j(6,15,1391370,6,38850);k0B.s$9(0);var m9z=k0B.V9a(570,3420);k0B.O_b(1);var w29=k0B.V9a(18340,20960);k0B.O_b(0);var c3x=k0B.v$j(5227,13);k0B.O_b(124);var o94=k0B.v$j(11,23606,2155,12,141636);c65=S18 + ("297" - 0 <= 360.51?(C3u,m9z) >= 533.74?" ":28.28 === 816.72?(w29,c3x):(![],+"611.03"):(!!1,o94)) + u7O.name;g_0.beginPath();l0p=l7C.layout.candleWidth;T8T=Math.max(3,Math.floor(l7C.chart.tmpWidth / 2));for(var T5C=0;T5C < u4V.length;T5C++){D15=u4V[T5C];if(!D15 || !D15[c65] && D15[c65] !== +"0")continue;if(D15.candleWidth){l0p=D15.candleWidth;}if(r0D && D15.transform){D15=D15.transform;}p1t=l7C.pixelFromBar(T5C,a37.chart);if(r3q){k0B.O_b(9);p1t-=k0B.v$j(l0p,2);}R6v=l7C.pixelFromTransformedValue(D15[u7O.referenceOutput?u7O.referenceOutput + ((569,938) < 3358?(648.08,9040) >= (5480,+"5510")?(2537,693.69) > 4560?250.45:" ":+"0x1232":"D") + u7O.name:c65],a37,K_v);if(T5C === 0 || !u4V[T5C - ("1" >> 64)] || !u4V[T5C - 1][c65] && u4V[T5C - 1][c65] !== 0){g_0.moveTo(p1t,R6v);}if(r3q){g_0.lineTo(p1t,R6v);k0B.O_b(0);g_0.lineTo(k0B.V9a(p1t,l0p),R6v);if(u4V[T5C + 1]){k0B.s$9(0);J3J=u4V[k0B.v$j(T5C,1)];if(r0D && J3J.transform){J3J=J3J.transform;}if(!J3J[c65] && J3J[c65] !== 0){k0B.O_b(0);g_0.lineTo(k0B.V9a(p1t,l0p),l7C.pixelFromTransformedValue(J3J[u7O.referenceOutput?u7O.referenceOutput + ((644.32,4.73) <= (627.18,4230)?" ":6296 === 5440?!!0:295.27 >= 6140?(9.36e+3,"7.69e+2" ^ 0):("Q",8.52e+3)) + u7O.name:c65],l7C.panels[u7O.panel],K_v));}}}else {k0B.s$9(125);g_0.moveTo(k0B.V9a("2",p1t,T8T,0),R6v);k0B.s$9(126);g_0.lineTo(k0B.V9a(p1t,T8T,0,"2"),R6v);}}g_0.lineWidth=+"1";if(u7O.highlight){g_0.lineWidth=3;}o91=Z$9.Studies.determineColor(u7O.outputs[S18]);if(o91 == "auto"){o91=l7C.defaultColor;}g_0.strokeStyle=o91;if(!u7O.highlight && l7C.highlightedDraggable){g_0.globalAlpha*=0.3;}g_0.stroke();g_0.closePath();g_0.lineWidth=+"1";}l7C.endClip();};Z$9.Studies.inputAttributeDefaultGenerator=function(u8k){if(!u8k && u8k !== 0){return {};}if(u8k.constructor == Number){if(Math.floor(u8k) == u8k){if(u8k > "0" << 0){return {min:1,step:1};}return {step:1};;}if(u8k > 0){return {min:0,step:0.01};}return {step:0.01};;}return {};};Z$9.Studies.getMarketOffset=function({stx:H9U, localQuoteDate:x95, shiftToDateBoundary:b6O}){var m$y=i6UVR;var O_z,Y6e,e_9,W7N,M02,n52,r1p;O_z="U";O_z+="T";O_z+="C";Y6e="Marke";Y6e+="t.Symbolog";Y6e+="y.isForexMeta";Y6e+="l";if(arguments.length > 1){H9U=arguments[+"0"];x95=arguments[1];e_9=arguments[2];}var {symbol:N2C}=H9U.chart;W7N=Z$9.getFn(Y6e)(N2C);if(e_9 === undefined){e_9=Z$9.getFn("Market.Symbology.isForexSymbol")(N2C);}if(!H9U.chart.market){M02=null;}else {M02=e_9?"America/New_York":H9U.chart.market.market_tz;}m$y.s$9(21);var M9g=m$y.V9a(3,60018,120054);n52=new Date(x95.getTime() + x95.getTimezoneOffset() * M9g);if(!M02 || M02.indexOf("UTC") == -1){n52=Z$9.convertTimeZone(n52,O_z,M02);}r1p=new Date(n52.getFullYear(),n52.getMonth(),n52.getDate(),n52.getHours(),n52.getMinutes(),n52.getSeconds(),n52.getMilliseconds()).getTime() - x95.getTime();if(b6O && e_9){m$y.O_b(127);r1p+=m$y.v$j(60,W7N?"6" ^ 0:7,60,1000);}return r1p;};Z$9.Studies.getStudyList=function(G4D){var K0y,j8U;K0y={};j8U={};Z$9.extend(j8U,G4D);for(var V_p in Z$9.Studies.studyLibrary){if(!j8U[V_p]){K0y[Z$9.Studies.studyLibrary[V_p].name]=V_p;}}i6UVR.W5N();return K0y;};Z$9.Studies.determineColor=function(p5w){var c4B;c4B="o";c4B+="bj";c4B+="e";c4B+="ct";if(!p5w){return null;}else if(typeof p5w === c4B){return p5w.color;}return p5w;};Z$9.Studies.calculateGenericEnvelope=function(q4t,z$u,b_f,a1D,i0B,l1m){var Y7K=i6UVR;var u$a,k5d,d4c,b85,k2N,P3c,V3Y,D72,B1j,u2r,c5B,z5H,p52;if(!b_f){b_f=+"0";}if(!l1m){l1m=0;}if(!a1D || a1D == "field"){a1D="Close";}u$a=411440343;k5d=1925983378;Y7K.O_b(42);d4c=Y7K.v$j("2",0);for(var r8R=1;Y7K.l5h(r8R.toString(),r8R.toString().length,94873) !== u$a;r8R++){if(!i0B){i0B=a1D;}d4c+=2;}if(Y7K.l5h(d4c.toString(),d4c.toString().length,40467) !== k5d){if(+i0B){i0B=a1D;}}b85=z$u.chart.scrubbed;k2N=z$u.inputs.Field;if(!k2N || k2N === "field"){k2N="Close";}for(var O9U=z$u.startFrom;b85 && O9U < b85.length;O9U++){P3c="%";P3c+="b";P3c+=" ";V3Y="ob";V3Y+="j";V3Y+="e";V3Y+="ct";D72="objec";D72+="t";B1j=b85[O9U];if(!B1j)continue;if(!B1j[a1D])continue;u2r=B1j[k2N];if(u2r && typeof u2r == D72){u2r=u2r.Close;}c5B=B1j[a1D];if(c5B && typeof c5B == "object"){c5B=c5B[z$u.subField];}z5H=B1j[i0B];if(z5H && typeof z5H == V3Y){z5H=z5H[z$u.subField];}Y7K.s$9(63);p52=Y7K.v$j(b_f,z5H,l1m);Y7K.s$9(0);B1j[z$u.type + " Top " + z$u.name]=Y7K.v$j(c5B,p52);Y7K.s$9(1);B1j[z$u.type + " Bottom " + z$u.name]=Y7K.V9a(p52,c5B);B1j[z$u.type + " Median " + z$u.name]=c5B;B1j["Bandwidth " + z$u.name]=c5B?200 * p52 / c5B:"0" >> 32;Y7K.O_b(128);B1j[P3c + z$u.name]=Y7K.V9a(u2r,c5B,50,1,p52);}};Z$9.Studies.displayChannel=function(H2V,k6F,L6H){var S1y=i6UVR;S1y.W5N();var D_P,L1Z,z4d;if(k6F.inputs["Channel Fill"]){D_P={panelName:k6F.panel};for(var Z2E in k6F.outputs){L1Z=Z2E.split(+"807.79" >= 9157?(4.58e+3,"7.02e+3" | 40):(8630,8783) === (8220,2848)?("7.80e+3" ^ 0,0x49d):" ").pop();if(L1Z == "Top" || L1Z == "High"){S1y.s$9(129);var H86=S1y.V9a(152694,14,32160,5,16);S1y.s$9(130);var I8u=S1y.V9a(2258,17,27240,115770,8);S1y.s$9(0);var w3a=S1y.V9a(979,7);S1y.O_b(119);var b6f=S1y.V9a(4853,4853,4836);S1y.O_b(131);var j5t=S1y.v$j(829,4976,15,10);S1y.O_b(132);var H5H=S1y.v$j(8,14,15,6,14);D_P.topBand=Z2E + ((H86,I8u) >= (w3a,b6f)?(642.95,j5t):+"837.71" < "666.53" * H5H?(191.39,!!({})):" ") + k6F.name;}else if(L1Z == "Bottom" || L1Z == "Low"){S1y.s$9(133);var B5U=S1y.V9a(4,1,5023,13,1);S1y.O_b(111);var R1M=S1y.v$j(1,6417,12834,711);S1y.s$9(131);var Y02=S1y.V9a(4780,8,2,4);D_P.bottomBand=Z2E + ((773.7,734.27) >= "625.78" - 0?" ":B5U !== R1M?16.94 != Y02?958.92:"t":("Z",!"")) + k6F.name;}else if(L1Z == "Median" || L1Z == "Channel"){D_P.color=Z$9.Studies.determineColor(k6F.outputs[Z2E]);}}if(k6F.parameters && k6F.parameters.opacity){D_P.opacity=k6F.parameters.opacity;}else {D_P.opacity=+"0.2";}z4d=H2V.panels[k6F.panel];D_P.skipTransform=z4d.name != k6F.chart.name;D_P.yAxis=k6F.getYAxis(H2V);if(!k6F.highlight && H2V.highlightedDraggable){D_P.opacity*=0.3;}Z$9.prepareChannelFill(H2V,D_P);}Z$9.Studies.displaySeriesAsLine(H2V,k6F,L6H);};Z$9.Studies.initAnchorHandle=function(U7y,S6W){var o2$;var {handle:t5s}=S6W;if(t5s){return;}if(!U7y.controls.anchorHandles){U7y.controls.anchorHandles={};}if(U7y.controls.anchorHandles[S6W.uniqueId]){({handle:t5s}=U7y.controls.anchorHandles[S6W.uniqueId]);}else {o2$="stx_anc";o2$+="h";o2$+="or_handle";t5s=document.createElement("div");t5s.classList.add(o2$);t5s.setAttribute(S6W.uniqueId,"");U7y.controls.anchorHandles[S6W.uniqueId]={handle:t5s,sd:S6W};U7y.controls.chartControls.parentElement.appendChild(t5s);}S6W.anchorHandle=t5s;};Z$9.Studies.removeAnchorHandle=function(w3x,g$1){var {handle:m6J}=(w3x.controls.anchorHandles || ({}))[g$1.uniqueId] || ({});if(m6J){delete w3x.controls.anchorHandles[g$1.uniqueId];m6J.remove();}};Z$9.Studies.repositionAnchor=function(G9l,w31){var Z8_,c4G,m3d,V8j,Q4I,e6D,q00;var {currentAnchorTime:W0D, uniqueId:I7Y}=w31;var {hoverTick:f5q}=G9l.repositioningAnchorSelector || ({});var {dataSet:J1e, market:f1m}=G9l.chart;var {anchorHandles:X4Y}=G9l.controls;i6UVR.W3G();Z8_={};if(f5q || f5q === +"0"){if(f5q >= J1e.length){return;}c4G=!w31.inputs["Anchor Date"];m3d=J1e[f5q].DT;V8j=Z$9.Studies.getMarketOffset({stx:G9l,localQuoteDate:m3d,shiftToDateBoundary:!!({})});if(c4G && new Date(m3d.getTime() + V8j).getDate() !== new Date(W0D.getTime() + V8j).getDate()){return;}if(f1m.market_def){m3d=new U7d.Date(m3d,f1m.market_def.market_tz);}Q4I=!c4G && Z$9.dateToStr(m3d,"YYYY-MM-dd");e6D=Z$9.dateToStr(m3d,"HH:mm:ss");Z8_={"Anchor Time":e6D};if(Q4I){Z8_["Anchor Date"]=Q4I;}}q00=Z$9.Studies.replaceStudy(G9l,w31.inputs.id,w31.type,Object.assign(w31.inputs,Z8_),w31.outputs,w31.parameters,w31.panel);X4Y[I7Y].sd=q00;G9l.draw();};Z$9.Studies.displayAnchorHandleAndLine=function(Y6a,A1h,w4P){var T_Q=i6UVR;var s24,d81,G0O,r59,l2O,V4d,Q27,a5m,r_g,w2S,J8c,R08,X32,y5V,r8F,T0m,g0p,L1M,P5M,K$4,D_q,j$K;s24="s";s24+="ol";s24+="i";s24+="d";d81="Ancho";d81+="r Time";G0O="stx_anc";G0O+="ho";G0O+="r";G0O+="_handle";r59=(Y6a.repositioningAnchorSelector || ({})).sd === A1h;var {hoverTick:U0U}=r59 && Y6a.repositioningAnchorSelector;var {chart:V1W, panels:U7c, xaxisHeight:z4u}=Y6a;var {market:w8t = {}, symbol:y$Z}=V1W;l2O=U7c[A1h.panel];var {top:x5M, bottom:W2W, right:Q4E, left:E21, height:a_1}=l2O;var {inputs:l7k, anchorHandle:O20, currentAnchorTime:g6c}=A1h;var {backgroundColor:a_G, borderLeftColor:h3h}=Y6a.canvasStyle(G0O);var [v7k,s1c,v8F = 0]=(l7k[d81] || "").split(":");V4d=!l7k["Anchor Date"];Q27=Z$9.getFn("Market.Symbology.isForexSymbol")(y$Z);a5m=(U0U || U0U === 0) && (Y6a.chart.dataSet[U0U] || ({})).DT;r_g=Z$9.Studies.getMarketOffset({stx:Y6a,localQuoteDate:w4P[w4P.length - 1].DT,shiftToDateBoundary:!""});w2S=a5m && V4d && new Date(a5m.getTime() + r_g).getDate() !== new Date(g6c.getTime() + r_g).getDate();var {highlighted:t03}=Y6a.controls.anchorHandles[A1h.uniqueId];var [g_4,C$5]=w8t.getNormalOpen().split(":").map(a3r=>{T_Q.W5N();return parseInt(a3r);});J8c=A9i=>{var L31;T_Q.W5N();L31=A9i?Y6a.tickFromDate(A9i,null,null,!![]):U0U;return [Y6a.pixelFromTick(L31,V1W),L31];};R08=-188731529;X32=437500950;y5V=2;for(var T53=1;T_Q.m6F(T53.toString(),T53.toString().length,"88249" * 1) !== R08;T53++){r8F=V4d?new Date(w4P[w4P.length / 0].DT):Z$9.strToDate(l7k[""]);y5V+=2;}if(T_Q.m6F(y5V.toString(),y5V.toString().length,+"36812") !== X32){r8F=V4d?new Date(w4P[w4P.length - 1].DT):Z$9.strToDate(l7k["Anchor Date"]);}if(w8t.market_def){r8F=new U7d.Date(r8F,w8t.market_def.market_tz);}r8F.setHours(v7k,s1c,v8F);T0m=Q27 && (r8F.getHours() > g_4 || r8F.getHours() === g_4 && r8F.getMinutes() >= C$5);if(T0m){r8F.setDate(r8F.getDate() - ("1" << 64));}var [s7h]=J8c();var [t0o,O9r]=J8c(r8F);g0p=new Date(r8F);g0p.setHours(...w8t.getNormalClose().split(":"));if(T0m){g0p.setDate(g0p.getDate() + +"1");}var [o$1]=g0p && J8c(g0p) || [];if(V4d && (t0o > Q4E || o$1 > Q4E)){L1M=new Date(r8F);do {L1M.setDate(L1M.getDate() - 1);}while(w8t && !w8t.isMarketDate(L1M));var [Q7M,C9T]=J8c(L1M);if(Q7M > E21){r8F=L1M;t0o=Q7M;O9r=C9T;}}P5M={y0:x5M,y1:W2W,type:"line",confineToPanel:l2O};Y6a.plotLine(Object.assign(P5M,{x0:t0o,x1:t0o,color:a_G,pattern:s24,lineWidth:t03?"3" << 64:2,opacity:1}));Y6a.plotLine(Object.assign(P5M,{x0:s7h,x1:s7h,color:w2S?h3h:a_G,pattern:[6,6],lineWidth:+"2",opacity:w2S?0.5:1}));T_Q.s$9(104);var Q8g=T_Q.v$j(2,12,1,10);O20.style.height=[8,a_1 / 4,50].sort((h57,C0Z)=>{T_Q.O_b(1);T_Q.W3G();return T_Q.v$j(C0Z,h57);})[Q8g] + "px";var {height:s6M, width:n5C}=O20.getBoundingClientRect();K$4=Math.round(W2W) === Y6a.height?z4u:0;D_q=l2O.name === "chart"?35:"0" << 32;T_Q.s$9(134);j$K=T_Q.V9a(D_q,s6M,"10",K$4);T_Q.s$9(33);O20.style.top=T_Q.V9a(W2W,"px",j$K);O20.style.left=U0U || U0U === 0?s7h:t0o - n5C / 2 + "px";A1h.currentAnchorTime=r8F;A1h.currentAnchorTick=O9r;};Z$9.Studies.studyScriptLibrary={};Z$9.Studies.studyLibrary=Z$9.Studies.studyLibrary || ({});Z$9.extend(Z$9.Studies.studyLibrary,{ma:{name:"Moving Average",overlay:!![],calculateFN:Z$9.Studies.calculateMovingAverage,inputs:{Period:+"50",Field:"field",Type:j8B,Offset:+"0"},outputs:{MA:K8D}},"STD Dev":{name:"Standard Deviation",calculateFN:Z$9.Studies.calculateStandardDeviation,inputs:{Period:14,Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"True Range":{name:"True Range",calculateFN:Z$9.Studies.calculateStudyATR,inputs:{},outputs:{"True Range":b9Y}},volume:{name:"Volume Chart",range:"0 to max",yAxis:{ground:!![],initialMarginTop:0,zoom:0},seriesFN:Z$9.Studies.createVolumeChart,calculateFN:Z$9.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":t8f}}});};G6=y0j=>{var F8a;F8a=typeof _CIQ !== "undefined"?_CIQ:y0j.CIQ;if(!F8a.ChartEngine.Driver){console.error("symbolLookupBase feature requires first activating quoteFeed feature.");}else {F8a.ChartEngine.Driver.Lookup=function(b$T){};F8a.ChartEngine.Driver.Lookup.prototype.acceptText=function(j6s,g1S,a5k,P8b){if(!this.cb){return;}};}};k$=e6m=>{var q8q;q8q=typeof _CIQ !== "undefined"?_CIQ:e6m.CIQ;q8q.ThemeHelper=q8q.ThemeHelper || (function(D_h){var o1H,X$A,W53,K4K,X4d,Q90,d9N,M3A;o1H="Can";o1H+="dle/Bar";X$A="stx";X$A+="_candle_down";W53="Candle/Ba";W53+="r";K4K="C";K4K+="andle/Bar";X4d="Candle/";X4d+="Ba";X4d+="r";Q90="Grid";Q90+=" Divide";Q90+="rs";this.params=D_h;d9N=D_h.stx;M3A="#FFFFFF";if(d9N.chart.container){M3A=getComputedStyle(d9N.chart.container).backgroundColor;if(q8q.isTransparent(M3A)){M3A=d9N.containerColor;}}this.settings.chart.Background.color=q8q.hexToRgba(M3A);this.settings.chart["Grid Lines"].color=q8q.hexToRgba(d9N.canvasStyle("stx_grid").color);this.settings.chart[Q90].color=q8q.hexToRgba(d9N.canvasStyle("stx_grid_dark").color);this.settings.chart["Axis Text"].color=q8q.hexToRgba(d9N.canvasStyle("stx_xaxis").color);this.settings.chartTypes[X4d].up.color=q8q.hexToRgba(d9N.canvasStyle("stx_candle_up").color);this.settings.chartTypes[K4K].down.color=q8q.hexToRgba(d9N.canvasStyle("stx_candle_down").color);this.settings.chartTypes["Candle/Bar"].up.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_up").color);this.settings.chartTypes["Candle/Bar"].down.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_down").color);this.settings.chartTypes["Candle/Bar"].even.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_even").color);this.settings.chartTypes[W53].up.border=q8q.hexToRgba(d9N.canvasStyle("stx_candle_up").borderLeftColor);this.settings.chartTypes["Candle/Bar"].down.border=q8q.hexToRgba(d9N.canvasStyle("stx_candle_down").borderLeftColor);if(q8q.isTransparent(d9N.canvasStyle("stx_candle_up").borderLeftColor)){this.settings.chartTypes["Candle/Bar"].up.border=null;}if(q8q.isTransparent(d9N.canvasStyle(X$A).borderLeftColor)){this.settings.chartTypes[o1H].down.border=null;}this.settings.chartTypes.Line.color=q8q.hexToRgba(d9N.canvasStyle("stx_line_chart").color);this.settings.chartTypes.Mountain.color=q8q.hexToRgba(d9N.canvasStyle("stx_mountain_chart").backgroundColor);this.settings.chartTypes.Mountain.basecolor=q8q.hexToRgba(d9N.canvasStyle("stx_mountain_chart").color);});q8q.ThemeHelper.prototype.settings={chart:{Background:{color:null},"Grid Lines":{color:null},"Grid Dividers":{color:null},"Axis Text":{color:null}},chartTypes:{"Candle/Bar":{up:{color:null,wick:null,border:null},down:{color:null,wick:null,border:null},even:{color:null,wick:null,border:null}},Line:{color:null},Mountain:{color:null,basecolor:null}}};q8q.ThemeHelper.prototype.update=function(U1F){var W5R,d3T,N6F,d14,L0x,i$V,G6y,S2g,L_a,z1n,m8_;W5R="stx_mo";W5R+="unta";W5R+="in_chart";d3T="bo";d3T+="rder";d3T+="LeftColor";N6F="stx_candle";N6F+="_up";d14="c";d14+="o";d14+="l";d14+="or";L0x="stx_";L0x+="candle_";L0x+="up";i$V="A";i$V+="xis";function c7C(F1a,m3N,W2O){var M4E;M4E=z1n[F1a];for(var T2T in M4E){U1F.setStyle(T2T,m3N,W2O);}}i$V+=" Text";G6y="Grid Divide";G6y+="rs";S2g="c";S2g+="olor";L_a="c";L_a+="ol";L_a+="o";L_a+="r";if(!U1F){U1F=this.params.stx;}z1n={stx_candle_up:{stx_candle_up:!![],stx_bar_up:!!({}),stx_hollow_candle_up:!"",stx_line_up:!![],stx_baseline_up:!![]},stx_candle_down:{stx_candle_down:!!"1",stx_bar_down:!"",stx_hollow_candle_down:!![],stx_line_down:!!"1",stx_baseline_down:!!"1"},stx_candle_even:{stx_hollow_candle_even:!"",stx_bar_even:!""},stx_shadow_up:{stx_candle_shadow_up:!!({})},stx_shadow_down:{stx_candle_shadow_down:!""},stx_shadow_even:{stx_candle_shadow_even:!!"1"},stx_line_chart:{stx_bar_chart:!"",stx_line_chart:!0},stx_grid:{stx_grid:!!"1"},stx_grid_dark:{stx_grid_dark:!![]},stx_xaxis:{stx_xaxis_dark:!![],stx_xaxis:!!({}),stx_yaxis:!![],stx_yaxis_dark:!"",stx_grid_border:!!({})},stx_mountain_chart:{stx_mountain_chart:!!"1"},stx_market_session:{stx_market_session:!!({})}};U1F.chart.container.style.backgroundColor=this.settings.chart.Background.color;U1F.defaultColor="";c7C("stx_grid",L_a,this.settings.chart["Grid Lines"].color);c7C("stx_grid_dark",S2g,this.settings.chart[G6y].color);c7C("stx_xaxis","color",this.settings.chart[i$V].color);m8_=this.settings.chartTypes["Candle/Bar"];if(!m8_.even){m8_.even={color:null,wick:q8q.hexToRgba(U1F.canvasStyle("stx_candle_shadow_even").color),border:null};}c7C(L0x,"color",m8_.up.color);c7C("stx_candle_down","color",m8_.down.color);c7C("stx_candle_even","color",m8_.even.color);c7C("stx_shadow_up","color",m8_.up.wick);c7C("stx_shadow_down",d14,m8_.down.wick);c7C("stx_shadow_even","color",m8_.even.wick);U1F.setStyle(N6F,d3T,m8_.up.border);U1F.setStyle("stx_candle_down","borderLeftColor",m8_.down.border);c7C("stx_line_chart","color",this.settings.chartTypes.Line.color);U1F.setStyle("stx_mountain_chart","borderTopColor",q8q.hexToRgba(this.settings.chartTypes.Mountain.color,1));U1F.setStyle("stx_mountain_chart","backgroundColor",q8q.hexToRgba(this.settings.chartTypes.Mountain.color,+"0.5"));U1F.setStyle(W5R,"color",q8q.hexToRgba(this.settings.chartTypes.Mountain.basecolor,0.01));U1F.draw();};q8q.ChartEngine.prototype.setThemeSettings=function(n3B){var W6v;this.styles={};this.chart.container.style.backgroundColor="";this.defaultColor="";if(n3B){W6v=new q8q.ThemeHelper({stx:this});W6v.settings=n3B;W6v.update();}this.updateListeners("theme");this.changeOccurred("theme");if(this.displayInitialized){this.headsUpHR();this.clearPixelCache();this.updateListeners("theme");this.draw();}};};w6=b$d=>{var N21=i6UVR;var q0S,D4e,A8f,I1R,D9A,X_u,r1w,T81,A0f,r6W,O1M,j9r,h6K,n6p,e9C,n3D,w9h,N0g,k_T,v3$,M7J,o1M,O6V,t6Y,W4C,F_1,i_p,C6p,P1k,i0W,k1W,F3M,E8A,l9t,C1a,G_v,u9$,C0F,y6S,x60,W4T,x1S,D5t,k24,E2o,J9S,N$l,w8v,c9b,b$R,E2$,y89,A7B,I7M,r_d,I0u,l2_,s4A,y5Z,P0x,x_H,p$a,d5q,x3H,w_r,D1l,x1h,S8A,O5a,P84,R8V,b19,W5Y,y7G,O74,x14,t2c,S5M,p0N,H3r,l8k,f7L,U$1,E5T,x1n,O3M,j1K,S4s,o$3,O1L,r1U,f5a,K2T,v0F,Z3$,q0N,K2H,r6h,l1b,q8U,H$3,s4B,f8C,n01,t5D,N9I,L_r,g93,s3a,y9O,O_k,q8j,V$5,B_4,T9x,F71,F6D,O$l,Y4g,o1y,I$z,K8$,z_O,H1Q,Y$3,g8c,E9a,P1g,q5m,q16,x3q,U4m,R8s,z3m,G6_,X5y,K8j,d5a,g6y,K$D,L8m,S_F,z75,U8F,z2l,H9H,A5c,I7R,Y0y,h_V,u3Q,q9h,g9I,x4u,H9Y,N49,R5w,I23,L7a,m3S,O_f,r9Q,E_1,f_l,R5$,e50,u3L,G7h,k5I,f$y,f$6,r9_,l5Y,R6B,n5r,N0K;q0S="M";q0S+="a";q0S+="r";D4e="m";D4e+="ax";A8f="A";A8f+="p";A8f+="r";I1R="S";I1R+="un>=";I1R+="9";D9A="o";D9A+="n";D9A+="l";D9A+="y";X_u="F";X_u+="e";X_u+="b";r1w="S";r1w+="un>=15";T81="S";T81+="un>=";T81+="1";A0f="N";A0f+="o";A0f+="v";r6W="m";r6W+="a";r6W+="x";O1M="Sun>=";O1M+="8";j9r="Su";j9r+="n>=8";h6K="N";h6K+="o";h6K+="v";n6p="ma";n6p+="x";e9C="Sun";e9C+=">";e9C+="=";e9C+="1";n3D="Ma";n3D+="r";w9h="m";w9h+="a";w9h+="x";N0g="m";N0g+="ax";k_T="M";k_T+="a";k_T+="r";v3$="M";v3$+="a";v3$+="r";M7J="m";M7J+="ax";o1M="O";o1M+="c";o1M+="t";O6V="M";O6V+="a";O6V+="r";t6Y="S";t6Y+="e";t6Y+="p";W4C="Su";W4C+="n>=1";F_1="m";F_1+="a";F_1+="x";i_p="S";i_p+="u";i_p+="n>=8";C6p="No";C6p+="v";P1k="2";P1k+="0";i0W="o";i0W+="nly";k1W="Su";k1W+="n";k1W+=">";k1W+="=1";F3M="Su";F3M+="n>=1";E8A="S";E8A+="un";E8A+=">";E8A+="=1";l9t="A";l9t+="p";l9t+="r";C1a="A";C1a+="p";C1a+="r";G_v="Sun";G_v+=">=1";u9$="m";u9$+="ax";C0F="Sun";C0F+=">=1";y6S="A";y6S+="p";y6S+="r";x60="ma";x60+="x";W4T="O";W4T+="ct";x1S="ma";x1S+="x";D5t="O";D5t+="c";D5t+="t";k24="o";k24+="nly";E2o="M";E2o+="a";E2o+="r";J9S="Sa";J9S+="t>=";J9S+="24";N$l="Sat>";N$l+="=2";N$l+="4";w8v="M";w8v+="a";w8v+="r";c9b="m";c9b+="a";c9b+="x";b$R="l";b$R+="astFr";b$R+="i";E2$="las";E2$+="tT";N21.W3G();E2$+="hu";y89="M";y89+="ar";A7B="O";A7B+="c";A7B+="t";I7M="M";I7M+="a";I7M+="r";r_d="2";r_d+="1";I0u="2";I0u+="1";l2_="on";l2_+="ly";s4A="M";s4A+="a";s4A+="r";y5Z="2";y5Z+="1";P0x="M";P0x+="a";P0x+="r";x_H="2";x_H+="1";p$a="m";p$a+="ax";d5q="la";d5q+="st";d5q+="S";d5q+="un";x3H="M";x3H+="a";x3H+="r";w_r="m";w_r+="ax";D1l="m";D1l+="a";D1l+="x";x1h="Ma";x1h+="r";S8A="W";S8A+="A";S8A+="T";O5a="2";O5a+="3";P84="1";P84+="4";R8V="A";R8V+="pr";b19="on";b19+="l";b19+="y";W5Y="o";W5Y+="n";W5Y+="l";W5Y+="y";y7G="M";y7G+="a";y7G+="y";O74="on";O74+="l";O74+="y";x14="Ap";x14+="r";t2c="3";t2c+="1";S5M="A";S5M+="p";S5M+="r";p0N="J";p0N+="u";p0N+="n";H3r="on";H3r+="ly";l8k="Ju";l8k+="n";f7L="1";f7L+="3";U$1="M";U$1+="a";U$1+="y";E5T="J";E5T+="u";E5T+="l";x1n="Ma";x1n+="r";O3M="-0";O3M+="3/-02";j1K="-";j1K+="0";j1K+="2";S4s="-";S4s+="0";S4s+="3";o$3="Ch";o$3+="il";o$3+="e";O1L="E%s";O1L+="T";r1U="Cu";r1U+="ba";f5a="M%s";f5a+="T";K2T="Mexi";K2T+="c";K2T+="o";v0F="Ca";v0F+="nada";Z3$="HS";Z3$+="T";q0N="U";q0N+="S";K2H="P%s";K2H+="T";r6h="U";r6h+="S";l1b="E";l1b+="%";l1b+="s";l1b+="T";q8U="+";q8U+="1";q8U+="1";H$3="+";H$3+="10";s4B="+";s4B+="08";f8C="+";f8C+="07";n01="+";n01+="0";n01+="6";t5D="+0";t5D+="3";N9I="M";N9I+="S";N9I+="K";L_r="E";L_r+="ET";g93="C";g93+="E%sT";s3a="EE%s";s3a+="T";y9O="A";y9O+="%s";y9O+="T";O_k="C";O_k+="E%";O_k+="s";O_k+="T";q8j="E";q8j+="U";V$5="E";V$5+="i";V$5+="re";B_4="G";B_4+="MT/BST";T9x="E";T9x+="U";F71="Et";F71+="c/UTC";F6D="To";F6D+="nga";O$l="+12";O$l+="45/";O$l+="+1345";Y4g="Chat";Y4g+="ham";o1y="NZ%";o1y+="sT";I$z="F";I$z+="iji";K8$="A";K8$+="W";z_O="A";z_O+="W";H1Q="S";H1Q+="yr";H1Q+="ia";Y$3="+";Y$3+="0";Y$3+="3";g8c="EE";g8c+="%sT";E9a="R";E9a+="O";E9a+="K";P1g="E";P1g+="E%";P1g+="sT";q5m="Jord";q5m+="an";q16="I";q16+="ran";x3q="EE";x3q+="%sT";U4m="H";U4m+="K";R8s="C";R8s+="%";R8s+="s";R8s+="T";z3m="+";z3m+="06";z3m+="/+07";G6_="Dhak";G6_+="a";X5y="A";X5y+="ze";X5y+="r";K8j="C";K8j+="E%";K8j+="s";K8j+="T";d5a="N";d5a+="amib";d5a+="i";d5a+="a";g6y="un";g6y+="defi";g6y+="ne";g6y+="d";K$D="Pacific/Kir";K$D+="itimati";L8m="Pac";L8m+="ific";L8m+="/Chatha";L8m+="m";S_F="Asia/Kam";S_F+="c";S_F+="hatka";z75="As";z75+="ia/Sred";z75+="nekolyms";z75+="k";U8F="P";U8F+="acific/Noumea";z2l="Asia/Vladivo";z2l+="stok";H9H="Pa";H9H+="cific";H9H+="/Guam";A5c="Austr";A5c+="al";A5c+="ia";A5c+="/Darwin";I7R="Asia";I7R+="/Yakutsk";Y0y="A";Y0y+="sia/Pyon";Y0y+="gyang";h_V="Au";h_V+="strali";h_V+="a";h_V+="/Perth";u3Q="Asia/No";u3Q+="vosibi";u3Q+="rsk";q9h="Asia/Novok";q9h+="uznetsk";g9I="Eur";g9I+="o";g9I+="pe/Sama";g9I+="ra";x4u="Asia/Dub";x4u+="a";x4u+="i";H9Y="Europe";H9Y+="/Mosc";H9Y+="ow";N49="A";N49+="sia/Riy";N49+="ad";N49+="h";R5w="Euro";R5w+="pe/Istanbul";I23="Asi";I23+="a/";I23+="Jerus";I23+="alem";L7a="Asia";L7a+="/N";L7a+="icosia";m3S="Euro";m3S+="pe/Helsink";m3S+="i";O_f="Eu";O_f+="rope/Buch";O_f+="arest";r9Q="Eur";r9Q+="ope/Bru";r9Q+="sse";r9Q+="ls";E_1="Afric";E_1+="a/C";E_1+="asabla";E_1+="nca";f_l="Atlantic/Azore";f_l+="s";R5$="A";R5$+="mer";R5$+="ica/";R5$+="Sao_Paulo";e50="Ame";e50+="rica/Sant";e50+="iago";u3L="America";u3L+="/Bo";u3L+="gota";G7h="America";G7h+="/Costa_Rica";k5I="Americ";k5I+="a/Chih";k5I+="uahua";f$y="Amer";f$y+="ica/";f$y+="Juneau";f$6="undefi";f$6+="n";f$6+="ed";r9_=typeof _CIQ !== f$6?_CIQ:b$d.CIQ;l5Y=typeof _timezoneJS !== "undefined"?_timezoneJS:b$d.timezoneJS;r9_.timeZoneMap={"(UTC-11:00) American Samoa, Midway Island":"Pacific/Pago_Pago","(UTC-10:00) Hawaii":"Pacific/Honolulu","(UTC-09:00) Alaska":f$y,"(UTC-08:00) Pacific Time (US and Canada), Tijuana":"America/Los_Angeles","(UTC-07:00) Arizona":"America/Phoenix","(UTC-07:00) Chihuahua, Mazatlan":k5I,"(UTC-07:00) Mountain Time (US and Canada)":"America/Denver","(UTC-06:00) Central America":G7h,"(UTC-06:00) Central Time (US and Canada)":"America/Chicago","(UTC-06:00) Guadalajara, Mexico City, Monterrey":"America/Mexico_City","(UTC-06:00) Saskatchewan":"America/Regina","(UTC-05:00) Bogota, Lima, Quito, Rio Branco":u3L,"(UTC-05:00) Eastern Time (US and Canada)":"America/New_York","(UTC-05:00) Havana":"America/Havana","(UTC-05:00) Port-au-Prince":"America/Port-au-Prince","(UTC-04:00) Asuncion":"America/Asuncion","(UTC-04:00) Santiago":e50,"(UTC-04:00) Caracas":"America/Caracas","(UTC-04:00) Atlantic Time (Canada)":"America/Halifax","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan":"America/Puerto_Rico","(UTC-03:30) Newfoundland and Labrador":"America/St_Johns","(UTC-03:00) Cancun, Jamaica, Panama":"America/Panama","(UTC-03:00) Buenos Aires":"America/Argentina/Buenos_Aires","(UTC-03:00) Punta Arenas":"America/Punta_Arenas","(UTC-03:00) Montevideo":"America/Montevideo","(UTC-03:00) Sao Paulo":R5$,"(UTC-02:00) Mid-Atlantic":"Atlantic/South_Georgia","(UTC-01:00) Azores":f_l,"(UTC-01:00) Cape Verde Islands":"Atlantic/Cape_Verde","(UTC) Greenwich Mean Time, Reykjavik":"UTC","(UTC) Dublin":"Europe/Dublin","(UTC) Lisbon, London":"Europe/London","(UTC+01:00) Algiers, Tunis":"Africa/Tunis","(UTC+01:00) Casablanca":E_1,"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":"Europe/Amsterdam","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague":"Europe/Belgrade","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris":r9Q,"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb":"Europe/Sarajevo","(UTC+02:00) Kaliningrad":"Europe/Kaliningrad","(UTC+02:00) Athens, Bucharest":O_f,"(UTC+02:00) Cairo":"Africa/Cairo","(UTC+02:00) Harare, Johannesburg":"Africa/Johannesburg","(UTC+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius":m3S,"(UTC+02:00) Cyprus":L7a,"(UTC+02:00) Beirut":"Asia/Beirut","(UTC+02:00) Damascus":"Asia/Damascus","(UTC+02:00) Jerusalem":I23,"(UTC+02:00) Amman":"Asia/Amman","(UTC+03:00) Istanbul":R5w,"(UTC+03:00) Baghdad, Kuwait, Qatar, Riyadh":N49,"(UTC+03:00) Minsk, Moscow, Kirov, Simferopol":H9Y,"(UTC+03:00) Volgograd":"Europe/Volgograd","(UTC+03:00) Nairobi":"Africa/Nairobi","(UTC+03:30) Tehran":"Asia/Tehran","(UTC+04:00) Baku":"Asia/Baku","(UTC+04:00) Dubai, Muscat":x4u,"(UTC+04:00) Astrakhan, Samara, Saratov, Ulyanovsk":g9I,"(UTC+04:30) Kabul":"Asia/Kabul","(UTC+05:00) Karachi, Tashkent":"Asia/Karachi","(UTC+05:00) Yekaterinburg":"Asia/Yekaterinburg","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi":"Asia/Kolkata","(UTC+05:45) Kathmandu":"Asia/Kathmandu","(UTC+06:00) Almaty":"Asia/Almaty","(UTC+06:00) Omsk":"Asia/Omsk","(UTC+06:00) Astana, Dhaka":"Asia/Dhaka","(UTC+06:30) Yangon":"Asia/Yangon","(UTC+07:00) Bangkok, Jakarta, Vietnam":"Asia/Bangkok","(UTC+07:00) Hovd":"Asia/Hovd","(UTC+07:00) Krasnoyarsk":"Asia/Krasnoyarsk","(UTC+07:00) Novokuznetsk":q9h,"(UTC+07:00) Barnaul, Novosibirsk, Tomsk":u3Q,"(UTC+08:00) Beijing, Chongqing, Hong Kong SAR":"Asia/Hong_Kong","(UTC+08:00) Brunei, Kuala Lumpur, Singapore":"Asia/Kuala_Lumpur","(UTC+08:00) Irkutsk":"Asia/Irkutsk","(UTC+08:00) Choibalsan, Ulaanbaatar":"Asia/Ulaanbaatar","(UTC+08:00) Manila, Taipei":"Asia/Taipei","(UTC+08:00) Perth":h_V,"(UTC+08:45) Eucla":"Australia/Eucla","(UTC+09:00) Osaka, Sapporo, Tokyo":"Asia/Tokyo","(UTC+09:00) Pyongyang":Y0y,"(UTC+09:00) Seoul":"Asia/Seoul","(UTC+09:00) Chita, Khandyga, Yakutsk":I7R,"(UTC+09:30) Adelaide":"Australia/Adelaide","(UTC+09:30) Darwin":A5c,"(UTC+10:00) Brisbane":"Australia/Brisbane","(UTC+10:00) Canberra, Melbourne, Sydney":"Australia/Sydney","(UTC+10:00) Guam, Port Moresby":H9H,"(UTC+10:00) Ust-Nera, Vladivostok":z2l,"(UTC+11:00) Noumea, Solomon Islands":U8F,"(UTC+11:00) Magadan":"Asia/Magadan","(UTC+11:00) Sakhalin, Srednekolymsk":z75,"(UTC+12:00) Anadyr, Kamchatka":S_F,"(UTC+12:00) Auckland, Wellington":"Pacific/Auckland","(UTC+12:00) Fiji":"Pacific/Fiji","(UTC+12:45) Chatham":L8m,"(UTC+13:00) Tonga":"Pacific/Tongatapu","(UTC+13:00) Samoa":"Pacific/Apia","(UTC+14:00) Kiritimati":K$D};(function(){var j98,A9U,j6k,P27,d$f,s9H,P2b,g_n,L1_,N5a,w4H,e$X,R6d,U$n,B2g,k$S,G0A;j98="O";j98+="ctob";j98+="e";j98+="r";A9U="Septem";A9U+="ber";j6k="Febru";j6k+="ary";P27="S";P27+="at";P27+="urd";P27+="ay";d$f="Frid";d$f+="ay";"use strict";s9H=typeof window !== "undefined"?window:null;P2b=s9H || (typeof global !== "undefined"?global:{});l5Y.VERSION="0.4.11";g_n=P2b.$ || P2b.jQuery || P2b.Zepto;L1_=P2b.fleegix;N5a=l5Y.Days=["Sunday","Monday","Tuesday","Wednesday","Thursday",d$f,P27];w4H=l5Y.Months=["January",j6k,"March","April","May","June","July","August",A9U,j98,"November","December"];e$X={};R6d={};U$n={};for(var h5p=0;h5p < w4H.length;h5p++){e$X[w4H[h5p].substr(+"0",3)]=h5p;}for(h5p=+"0";h5p < N5a.length;h5p++){R6d[N5a[h5p].substr(0,3)]=h5p;}B2g=Array.prototype.indexOf || (function(R7H){var X$z,N9Y,f4K,E5v;if(this === null){throw new TypeError();}X$z=Object(this);N9Y=X$z.length >>> 0;if(N9Y === "0" * 1){return -1;}f4K=+"0";N21.W5N();if(arguments.length > 1){f4K=Number(arguments[1]);if(f4K != f4K){f4K=0;}else if(f4K !== 0 && f4K !== Infinity && f4K !== -Infinity){N21.O_b(1);var i1B=N21.v$j(11,10);f4K=(f4K > 0 || i1B) * Math.floor(Math.abs(f4K));}}if(f4K >= N9Y){N21.s$9(29);return -N21.V9a("1",64);}E5v=f4K >= 0?f4K:Math.max(N9Y - Math.abs(f4K),0);for(;E5v < N9Y;E5v++){if((E5v in X$z) && X$z[E5v] === R7H){return E5v;}}return -1;});k$S=function(Z15,f0J){var v3B,N_p,G3i,i1T;v3B="numb";v3B+="er";if(typeof Z15 !== v3B){N21.O_b(0);throw N21.v$j("not a number: ",Z15);}N21.O_b(73);N_p=N21.V9a(Z15,1000);G3i=Z15.toString();i1T=G3i.length;if(N_p && i1T > f0J){N21.O_b(1);return G3i.substr(N21.v$j(f0J,i1T),i1T);}G3i=[G3i];while(i1T < f0J){G3i.unshift("0");i1T++;}return G3i.join("");};G0A=function(P1e){var X9q,o8y;X9q="u";X9q+="ndefined";if(!P1e){return;}if(!P1e.url){throw new Error("URL must be specified");}if(!(("async" in P1e))){P1e.async=!0;}if((!L1_ || typeof L1_.xhr === X9q) && (!g_n || typeof g_n.ajax === "undefined")){throw new Error("Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.");}if(!P1e.async){o8y="t";o8y+="e";o8y+="x";o8y+="t";return L1_ && L1_.xhr?L1_.xhr.doReq({url:P1e.url,async:!({})}):g_n.ajax({url:P1e.url,async:![],dataType:o8y}).responseText;}N21.W3G();return L1_ && L1_.xhr?L1_.xhr.send({url:P1e.url,method:"get",handleSuccess:P1e.success,handleErr:P1e.error}):g_n.ajax({url:P1e.url,dataType:"text",method:"GET",error:P1e.error,success:P1e.success});};l5Y.ruleCache={};l5Y.Date=function(){var U$k,u$v,n$d,V5q,H2F,T$E,f7k,b3p;U$k="str";U$k+="ing";if(this === l5Y){u$v="timezoneJS.Date object must be constructed";u$v+=" wi";u$v+="th 'new";u$v+="'";throw u$v;}n$d=Array.prototype.slice.apply(arguments);V5q=null;H2F=null;N21.W5N();T$E=[];f7k=![];if(Object.prototype.toString.call(n$d[0]) === "[object Array]"){n$d=n$d[0];}if(typeof n$d[n$d.length - 1] === "string"){f7k=Date.parse(n$d[n$d.length - 1].replace(/GMT[+-]\d+/,""));if(isNaN(f7k) || f7k === null){H2F=n$d.pop();}}b3p=!"1";switch(n$d.length){case 0:V5q=new Date();break;case 1:N21.s$9(1);V5q=new Date(n$d[N21.V9a(0,"0")]);if(typeof n$d[+"0"] == U$k && n$d[0].search(/[+-][0-9]{4}/) == -1 && n$d[0].search(/Z/) == -1 && n$d[0].search(/T/) == -+"1"){b3p=!![];}break;case "2" - 0:N21.O_b(29);V5q=new Date(n$d[N21.v$j("0",0)],n$d[1]);b3p=!!({});break;default:for(var R46=+"0";R46 < 7;R46++){T$E[R46]=n$d[R46] || 0;}N21.s$9(12);V5q=new Date(T$E[N21.V9a(0,"0")],T$E[+"1"],T$E[2],T$E[3],T$E[4],T$E[+"5"],T$E[6]);b3p=!!({});break;}if(isNaN(V5q.getTime())){throw new Error("Invalid date");}this._useCache=!1;this._tzInfo={};this._day=0;this.year=0;this.month=0;this.date=0;this.hours=0;N21.O_b(29);this.minutes=N21.v$j("0",64);this.seconds=+"0";this.milliseconds=0;this.timezone=H2F || null;if(b3p){this.setFromDateObjProxy(V5q);}else {this.setFromTimeProxy(V5q.getTime(),H2F);}};r9_.extend(l5Y.Date.prototype,{getDate:function(){N21.W5N();return this.date;},getDay:function(){N21.W5N();return this._day;},getFullYear:function(){N21.W5N();return this.year;},getMonth:function(){return this.month;},getYear:function(){N21.s$9(65);var z$E=N21.v$j(2,17,1889,19,1933);N21.W5N();return this.year - z$E;},getHours:function(){N21.W3G();return this.hours;},getMilliseconds:function(){N21.W5N();return this.milliseconds;},getMinutes:function(){return this.minutes;},getSeconds:function(){return this.seconds;},getUTCDate:function(){N21.W5N();return this.getUTCDateProxy().getUTCDate();},getUTCDay:function(){N21.W5N();return this.getUTCDateProxy().getUTCDay();},getUTCFullYear:function(){return this.getUTCDateProxy().getUTCFullYear();},getUTCHours:function(){return this.getUTCDateProxy().getUTCHours();},getUTCMilliseconds:function(){N21.W5N();return this.getUTCDateProxy().getUTCMilliseconds();},getUTCMinutes:function(){return this.getUTCDateProxy().getUTCMinutes();},getUTCMonth:function(){return this.getUTCDateProxy().getUTCMonth();},getUTCSeconds:function(){return this.getUTCDateProxy().getUTCSeconds();},getTime:function(){N21.O_b(135);var y6M=N21.v$j(1546,19,5,17,9);N21.O_b(59);var g8Q=N21.V9a(20,985,1015,197);return this._timeProxy + this.getTimezoneOffset() * y6M * g8Q;},getTimezone:function(){return this.timezone;},getTimezoneOffset:function(){return this.getTimezoneInfo().tzOffset;},getTimezoneAbbreviation:function(){return this.getTimezoneInfo().tzAbbr;},getTimezoneInfo:function(){var b2Y;if(this._useCache){return this._tzInfo;}if(this.timezone){b2Y=this.timezone === "Etc/UTC" || this.timezone === "Etc/GMT"?{tzOffset:+"0",tzAbbr:"UTC"}:l5Y.timezone.getTzInfo(this._timeProxy,this.timezone);}else {b2Y={tzOffset:this.getLocalOffset(),tzAbbr:null};}this._tzInfo=b2Y;this._useCache=!"";return b2Y;},getUTCDateProxy:function(){var U47;U47=new Date(this._timeProxy);N21.W3G();U47.setUTCMinutes(U47.getUTCMinutes() + this.getTimezoneOffset());return U47;},setDate:function(E31){this.setAttribute("date",E31);return this.getTime();},setFullYear:function(W$B,Y0i,v2V){var H0P;H0P="ye";H0P+="ar";if(v2V !== undefined){this.setAttribute("date",1);}this.setAttribute(H0P,W$B);if(Y0i !== undefined){this.setAttribute("month",Y0i);}if(v2V !== undefined){this.setAttribute("date",v2V);}return this.getTime();},setMonth:function(b3_,L35){this.setAttribute("month",b3_);if(L35 !== undefined){this.setAttribute("date",L35);}return this.getTime();},setYear:function(m7$){m7$=Number(m7$);N21.W5N();if(+"0" <= m7$ && m7$ <= "99" >> 0){m7$+=1900;}this.setUTCAttribute("year",m7$);return this.getTime();},setHours:function(o_a,L48,R1b,e9k){var K6z,Y3n;this.setAttribute("hours",o_a);if(L48 !== undefined){this.setAttribute("minutes",L48);}if(R1b !== undefined){K6z="secon";K6z+="d";K6z+="s";this.setAttribute(K6z,R1b);}if(e9k !== undefined){Y3n="mill";Y3n+="i";Y3n+="seco";Y3n+="nds";this.setAttribute(Y3n,e9k);}return this.getTime();},setMinutes:function(z3F,O3P,r6E){N21.W3G();this.setAttribute("minutes",z3F);if(O3P !== undefined){this.setAttribute("seconds",O3P);}if(r6E !== undefined){this.setAttribute("milliseconds",r6E);}return this.getTime();},setSeconds:function(n3F,x5s){this.setAttribute("seconds",n3F);N21.W3G();if(x5s !== undefined){this.setAttribute("milliseconds",x5s);}return this.getTime();},setMilliseconds:function(b18){var J6H;J6H="mil";J6H+="l";J6H+="isecond";N21.W5N();J6H+="s";this.setAttribute(J6H,b18);return this.getTime();},setTime:function(X$n){var B3b;if(isNaN(X$n)){B3b="Units";B3b+=" must be a numbe";B3b+="r";B3b+=".";throw new Error(B3b);}this.setFromTimeProxy(X$n,this.timezone);N21.W5N();return this.getTime();},setUTCFullYear:function(A8I,i_T,T2P){var U3q;if(T2P !== undefined){this.setUTCAttribute("date",1);}N21.W5N();this.setUTCAttribute("year",A8I);if(i_T !== undefined){U3q="mo";U3q+="nth";this.setUTCAttribute(U3q,i_T);}if(T2P !== undefined){this.setUTCAttribute("date",T2P);}return this.getTime();},setUTCMonth:function(D5s,t4j){var l$8;this.setUTCAttribute("month",D5s);if(t4j !== undefined){l$8="d";l$8+="a";l$8+="t";l$8+="e";this.setUTCAttribute(l$8,t4j);}N21.W5N();return this.getTime();},setUTCDate:function(j8s){this.setUTCAttribute("date",j8s);return this.getTime();},setUTCHours:function(s8m,N0Z,V_T,f45){var w6$,b26,g5c;w6$="h";w6$+="ou";w6$+="rs";this.setUTCAttribute(w6$,s8m);N21.W5N();if(N0Z !== undefined){this.setUTCAttribute("minutes",N0Z);}if(V_T !== undefined){b26="secon";b26+="d";b26+="s";this.setUTCAttribute(b26,V_T);}if(f45 !== undefined){g5c="mil";g5c+="liseco";g5c+="nds";this.setUTCAttribute(g5c,f45);}return this.getTime();},setUTCMinutes:function(t_Q,z$q,Y$h){var D1x,s$_;D1x="minu";D1x+="te";D1x+="s";this.setUTCAttribute(D1x,t_Q);if(z$q !== undefined){s$_="s";s$_+="e";s$_+="cond";s$_+="s";this.setUTCAttribute(s$_,z$q);}if(Y$h !== undefined){this.setUTCAttribute("milliseconds",Y$h);}return this.getTime();},setUTCSeconds:function(C4$,x5J){this.setUTCAttribute("seconds",C4$);N21.W3G();if(x5J !== undefined){this.setUTCAttribute("milliseconds",x5J);}return this.getTime();},setUTCMilliseconds:function(x6k){var t1S,M61,S5h;t1S=-673695846;M61=1687467664;S5h=2;for(var X2s=1;N21.m6F(X2s.toString(),X2s.toString().length,31797) !== t1S;X2s++){this.setUTCAttribute("milliseconds",x6k);S5h+=2;}if(N21.m6F(S5h.toString(),S5h.toString().length,37908) !== M61){this.setUTCAttribute("",x6k);}return this.getTime();},setFromDateObjProxy:function(V7d){this.year=V7d.getFullYear();this.month=V7d.getMonth();this.date=V7d.getDate();this.hours=V7d.getHours();this.minutes=V7d.getMinutes();this.seconds=V7d.getSeconds();N21.W3G();this.milliseconds=V7d.getMilliseconds();this._day=V7d.getDay();this._dateProxy=V7d;this._timeProxy=Date.UTC(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.milliseconds);this._useCache=!!0;},setFromTimeProxy:function(s$C,c3c){var k8H,O5q;k8H=new Date(s$C);O5q=c3c?l5Y.timezone.getTzInfo(s$C,c3c,!!"1").tzOffset:k8H.getTimezoneOffset();k8H.setTime(s$C + (k8H.getTimezoneOffset() - O5q) * 60000);N21.W5N();this.setFromDateObjProxy(k8H);},setAttribute:function(L_V,a5E){var u6j,n0c,n2O,X1l;u6j="ye";u6j+="ar";if(isNaN(a5E)){n0c="Units must be a number";n0c+=".";throw new Error(n0c);}n2O=this._dateProxy;X1l=L_V === u6j?"FullYear":L_V.substr(0,1).toUpperCase() + L_V.substr(1);n2O["set" + X1l](a5E);this.setFromDateObjProxy(n2O);},setUTCAttribute:function(W4a,W8p){var J57,y8y;N21.W5N();if(isNaN(W8p)){throw new Error("Units must be a number.");}J57=W4a === "year"?"FullYear":W4a.substr(0,1).toUpperCase() + W4a.substr(1);y8y=this.getUTCDateProxy();y8y["setUTC" + J57](W8p);y8y.setUTCMinutes(y8y.getUTCMinutes() - this.getTimezoneOffset());this.setFromTimeProxy(y8y.getTime() + this.getTimezoneOffset() * 60000,this.timezone);},setTimezone:function(w4M){var V$H,w2_,o9D,g1X;V$H=this.getTimezoneInfo().tzOffset;this.timezone=w4M;w2_=294848690;o9D=-2104916566;g1X=2;for(var t7e="1" >> 0;N21.l5h(t7e.toString(),t7e.toString().length,40800) !== w2_;t7e++){this._useCache=!!({});g1X+=2;}if(N21.m6F(g1X.toString(),g1X.toString().length,57849) !== o9D){this._useCache=!1;}this._useCache=!!0;N21.W3G();this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + V$H);},removeTimezone:function(){this.timezone=null;N21.W3G();this._useCache=!"1";},valueOf:function(){N21.W3G();return this.getTime();},clone:function(){N21.W5N();return this.timezone?new l5Y.Date(this.getTime(),this.timezone):new l5Y.Date(this.getTime());},toGMTString:function(){return this.toString("EEE, dd MMM yyyy HH:mm:ss Z","Etc/GMT");},toLocaleStringIntl:function(){},toLocaleDateString:function(){},toLocaleTimeString:function(){},toSource:function(){},toISOString:function(){return this.toString("yyyy-MM-ddTHH:mm:ss.SSS","Etc/UTC") + (11.57 >= +"9670"?(788.89,!!"1"):"Z");},toJSON:function(){N21.W5N();return this.toISOString();},toDateString:function(){N21.W3G();return this.toString("EEE MMM dd yyyy");},toTimeString:function(){return this.toString("H:mm k");},toString:function(I9K,F$G){var j07,k9B,T$U,M7x,n$O;j07="yyyy-MM-";j07+="ddTHH:mm:ss.SS";j07+="S";if(!I9K){I9K=j07;}k9B=I9K;T$U=F$G?l5Y.timezone.getTzInfo(this.getTime(),F$G):this.getTimezoneInfo();M7x=this;if(F$G){M7x=this.clone();M7x.setTimezone(F$G);}n$O=M7x.getHours();return k9B.replace(/a+/g,function(){N21.W3G();return "k";}).replace(/y+/g,function(A5x){N21.W3G();return k$S(M7x.getFullYear(),A5x.length);}).replace(/d+/g,function(m1o){return k$S(M7x.getDate(),m1o.length);}).replace(/m+/g,function(T0O){return k$S(M7x.getMinutes(),T0O.length);}).replace(/s+/g,function(b0_){return k$S(M7x.getSeconds(),b0_.length);}).replace(/S+/g,function(o6M){return k$S(M7x.getMilliseconds(),o6M.length);}).replace(/h+/g,function(p19){return k$S(n$O % ("12" | 12) === 0?12:n$O % 12,p19.length);}).replace(/M+/g,function(j0s){var y4J,A03;y4J=M7x.getMonth();A03=j0s.length;if(A03 > +"3"){return l5Y.Months[y4J];}else if(A03 > ("2" ^ 0)){return l5Y.Months[y4J].substring(+"0",A03);}N21.O_b(0);return k$S(N21.v$j(y4J,1),A03);}).replace(/k+/g,function(){var E0w;E0w="A";E0w+="M";if(n$O >= 12){if(n$O > 12){n$O-=12;}return "PM";}return E0w;}).replace(/H+/g,function(T9n){return k$S(n$O,T9n.length);}).replace(/E+/g,function(P5P){N21.W5N();var p7A,b47,V6L;p7A=-162823215;b47=-1603592251;V6L=2;for(var j02=1;N21.l5h(j02.toString(),j02.toString().length,"99601" >> 32) !== p7A;j02++){return N5a[M7x.getDay()].substring(3,P5P.length);}if(N21.m6F(V6L.toString(),V6L.toString().length,16884) !== b47){return N5a[M7x.getDay()].substring(0,P5P.length);}}).replace(/Z+/gi,function(){return T$U.tzAbbr;});},toUTCString:function(){N21.W3G();return this.toGMTString();},civilToJulianDayNumber:function(d62,A3s,G0G){var Q29,d8E,T3w,h4g,N4z,r94;A3s++;if(A3s > 12){N21.O_b(9);Q29=parseInt(N21.V9a(A3s,12),10);N21.O_b(79);A3s=N21.V9a(A3s,12);d62+=Q29;}if(A3s <= 2){d62-=1;d8E=+"1905615266";T3w=-2045081230;h4g=2;for(var V40=1;N21.l5h(V40.toString(),V40.toString().length,35145) !== d8E;V40++){A3s+=12;N21.O_b(29);h4g+=N21.V9a("2",32);}if(N21.m6F(h4g.toString(),h4g.toString().length,20030) !== T3w){A3s/=36;}}N21.O_b(9);Q29=Math.floor(N21.V9a(d62,100));N21.O_b(136);var j44=N21.V9a(9,20,1,21,12);N4z=j44 - Q29 + Math.floor(Q29 / +"4");N21.O_b(1);var g7M=N21.v$j(56592,61308);N21.s$9(25);var c_X=N21.V9a(6,14,3,43,15);r94=Math.floor(365.25 * (d62 + g7M)) + Math.floor(30.6001 * (A3s + c_X)) + G0G + N4z - +"1524";return r94;},getLocalOffset:function(){return this._dateProxy.getTimezoneOffset();}},!"");l5Y.timezone=new (function(){var O_s,y_C,k6f,W10,c40,J0k,J4v,o5c,R5S,P5v,s6s,A6f,L8M,F_e,p_$,a1P,D2d,i9Q;function c_C(P_i,P30){N21.W3G();N21.s$9(1);return -Math.ceil(N21.v$j(P_i,P30));}O_s="man";O_s+="u";O_s+="alLoad";y_C="australa";y_C+="sia";function S88(r4_){var A4p,y5s,R7F,E2P,Q3T;A4p="s";A4p+="tri";A4p+="ng";y5s=i9Q[r4_];if(y5s){return y5s;}R7F=r4_.split("/")[0];N21.W5N();E2P=D2d[R7F];if(E2P){return E2P;}Q3T=a1P.zones[r4_];if(typeof Q3T === A4p){return S88(Q3T);}if(!a1P.loadedZones.backward){a1P.loadZoneFile("backward");return S88(r4_);}Z4C(r4_);}k6f="a";k6f+="fric";k6f+="a";W10="e";W10+="tcetera";c40="euro";function Z4C(D0l){var t$G;t$G="Tim";t$G+="ezo";t$G+="ne ";t$G+="'";N21.W3G();N21.s$9(35);throw new Error(N21.v$j(D0l,"' is either incorrect, or not loaded in the timezone registry.",t$G));}c40+="pe";J0k="eur";J0k+="ope";function s7n(l3a,u9k,j4Q,K63){var R5d,l64,c7M,V_b,J1z,G8Z,E$M,g_W,B7L,R49,q2k,q$K,h3j;R5d=typeof l3a === "number"?new Date(l3a):l3a;l64=u9k[1];N21.s$9(1);c7M=u9k[N21.V9a(0,"0")];V_b=l64.match(/^([0-9]):([0-9][0-9])$/);if(V_b){N21.O_b(24);var B_K=N21.V9a(8,19,12,45);N21.O_b(33);var Q5P=N21.v$j(5,8,11);N21.s$9(22);var E6u=N21.V9a(13,98,2,8);N21.s$9(29);return [-N21.v$j("1000000",32),"max",(1602,7990) === ("4200" | 40,8240)?("C",!![]):"-","Jan",1,[0,0,0],parseInt(V_b[1],+"10") * B_K + parseInt(V_b[Q5P],E6u),(201.12,5938) >= 701?(9380,12.13) == (35.73,580.71)?(0x1fda,!!({})):(6850,4190) <= 5325?"-":("P",+"5.64e+3"):("h",+"4.83e+3")];}J1z=function(o4_,y5m,T2h){var Q64,n5t,Y3I,x0U;Q64=0;if(y5m === ((6017,+"3940") <= 4972?("5156" | 32) > (+"237.34",78.14)?"u":+"0xa17":420) || y5m === ((389,883.34) < 245.52?138.76:1880 === 8883?(3117,+"996") !== (8329,347.51)?975.70:(874.97,"D"):"g") || y5m === ((8210,645.2) > (1055,356)?"z":3510 == ("3699" ^ 0,7370)?("L","8.85e+3" * 1):"857.62" * 1)){Q64=0;}else if(y5m === "s"){Q64=c7M;}else if(y5m === ((3459,6614) > 9705?(646.68,6980) != 2780?733.84 == 982.37?2.52e+3:("L",!!({})):(616.96,633.01):"w") || !y5m){Q64=c_C(c7M,T2h[6]);}else {N21.s$9(0);throw new Error(N21.V9a("unknown type ",y5m));}N21.O_b(2);Q64*=N21.v$j(1000,60);n5t=-68990754;Y3I=-1428982951;x0U=2;for(var h7A=1;N21.m6F(h7A.toString(),h7A.toString().length,94014) !== n5t;h7A++){return new Date(o4_.getTime() - Q64);}if(N21.m6F(x0U.toString(),x0U.toString().length,43836) !== Y3I){return new Date(o4_.getTime() + Q64);}};G8Z=function(t7g,F16){var M5p,p53,C0k,o4f,n6s,W6E,u1N,X5e;M5p=t7g[0];N21.W3G();p53=t7g[1];C0k=p53[5];if(!U$n[M5p]){U$n[M5p]={};}if(U$n[M5p][p53]){o4f=U$n[M5p][p53];}else {if(!isNaN(p53[4])){o4f=new Date(Date.UTC(M5p,e$X[p53[3]],p53[4],C0k[0],C0k[1],C0k[+"2"],0));}else {if(p53[4].substr(0,4) === "last"){u1N="<";u1N+="=";o4f=new Date(Date.UTC(M5p,e$X[p53[3]] + 1,1,C0k[0] - 24,C0k[1],C0k[+"2"],0));n6s=R6d[p53[4].substr(4,3)];W6E=u1N;}else {o4f=new Date(Date.UTC(M5p,e$X[p53[3]],p53[4].substr(5),C0k[+"0"],C0k[1],C0k[2],"0" << 32));n6s=R6d[p53[4].substr(+"0",+"3")];W6E=p53[4].substr(+"3",2);}X5e=o4f.getUTCDay();if(W6E === ">="){o4f.setUTCDate(o4f.getUTCDate() + (n6s - X5e + (n6s < X5e?7:"0" ^ 0)));}else {o4f.setUTCDate(o4f.getUTCDate() + (n6s - X5e - (n6s > X5e?7:0)));}}U$n[M5p][p53]=o4f;}if(F16){o4f=J1z(o4f,C0k[3],F16);}return o4f;};E$M=function(S0G,S8O){var Z0B;Z0B=[];for(var f23=+"0";S8O && f23 < S8O.length;f23++){if(S8O[f23][0] <= S0G && (S8O[f23][+"1"] >= S0G || S8O[f23][0] === S0G && S8O[f23][+"1"] === "only" || S8O[f23][1] === "max")){Z0B.push([S0G,S8O[f23]]);}}return Z0B;};g_W=function(k80,J0Y,e4n){var P12,w8P;if(!(k80 instanceof Date)){P12=k80[0];w8P=k80[1];k80=!e4n && U$n[P12] && U$n[P12][w8P]?U$n[P12][w8P]:G8Z(k80,e4n);}else if(e4n){k80=J1z(k80,j4Q?108 >= (2930,7460)?("8838" << 32,+"840") < (235.45,3912)?(0x88,0x25c4):7.09e+3:"u":"w",e4n);}if(!(J0Y instanceof Date)){P12=J0Y[0];w8P=J0Y[1];J0Y=!e4n && U$n[P12] && U$n[P12][w8P]?U$n[P12][w8P]:G8Z(J0Y,e4n);}else if(e4n){J0Y=J1z(J0Y,j4Q?5120 != (7067,4480)?8140 <= 2350?603.56:(+"187.4",909.09) > 3960?!"":"u":"7.28e+3" | 48:"w",e4n);}k80=Number(k80);J0Y=Number(J0Y);N21.O_b(1);return N21.v$j(J0Y,k80);};B7L=R5d.getUTCFullYear();q2k=l5Y.ruleCache[K63];if(!q2k){q2k=l5Y.ruleCache[K63]={};}R49=q2k[B7L];if(!R49){N21.s$9(1);R49=E$M(N21.v$j(1,B7L),a1P.rules[l64]);R49=R49.concat(E$M(B7L,a1P.rules[l64]));R49.sort(g_W);q2k[B7L]=R49;}if(!R49 || !R49.length){return null;}for(var Y5a=R49.length - 1;Y5a >= +"0";Y5a--){if(Y5a > 0){N21.O_b(137);q$K=R49[N21.v$j(32,"1",Y5a)][N21.v$j(0,"1",N21.O_b(1))];}else {q$K=null;}h3j=R49[Y5a];if(!h3j[2]){h3j[2]=G8Z(h3j,q$K);;}if(g_W(R5d,h3j,q$K) >= 0){N21.O_b(2);return h3j[N21.V9a(1,"1")];}}N21.W5N();return null;;}J4v="a";J4v+="sia";o5c="afri";o5c+="ca";R5S="e";R5S+="u";R5S+="r";R5S+="ope";P5v="anta";P5v+="rc";P5v+="ti";P5v+="ca";s6s="eur";function Q4m(I6O){var M4q,K0K;M4q=u72(I6O);K0K=I6O.charAt("0" | 0) === (2588 > 9230?"E":4219 === 2530?7454 == (4680,4100)?(9.11e+2,674.53):!![]:"-")?-1:1;N21.s$9(89);N21.W3G();var S2h=N21.V9a(69,9,78,59);N21.O_b(138);var M_J=N21.v$j(12,65,9,471,18);N21.O_b(21);var B6k=N21.v$j(15,34,508);M4q=K0K * (((M4q[0] * S2h + M4q[+"1"]) * M_J + M4q[B6k]) * +"1000");N21.s$9(139);return N21.v$j(M4q,1000,60);}function o6z(B1E,H_P){var D8f,T9c,y5h,V24,p8a,g4Q;D8f=typeof B1E === "number"?B1E:new Date(+B1E).getTime();T9c=H_P;y5h=a1P.zones[T9c];while(typeof y5h === "string"){T9c=y5h;y5h=a1P.zones[T9c];}if(!y5h){if(!a1P.loadedZones.backward){V24="ba";V24+="ck";V24+="war";V24+="d";a1P.loadZoneFile(V24);return o6z(B1E,H_P);}else if(T9c && T9c !== H_P){a1P.lazyLoadZoneFiles(T9c);return o6z(B1E,T9c);}Z4C(T9c);}if(y5h.length === "0" * 1){p8a="No Zone found fo";p8a+="r '";N21.s$9(51);throw new Error(N21.V9a(B1E,"' on ",p8a,H_P));}for(var O57=y5h.length - 1;O57 >= 0;O57--){g4Q=y5h[O57];if(g4Q[+"3"] && D8f > g4Q[3])break;}N21.W3G();N21.O_b(0);return y5h[N21.V9a(O57,1)];}s6s+="o";s6s+="pe";A6f="northa";A6f+="mer";A6f+="i";N21.W3G();A6f+="ca";L8M="n";L8M+="orthamerica";F_e="no";F_e+="rthame";function u72(L9M){var O0P,y24;O0P=/(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/;y24=L9M.match(O0P);y24[1]=parseInt(y24[+"1"],10);N21.W5N();y24[2]=y24[+"2"]?parseInt(y24[+"2"],10):+"0";y24[+"3"]=y24[3]?parseInt(y24[3],10):0;N21.O_b(39);return y24.slice(1,N21.V9a("5",0));}F_e+="rica";p_$="nort";function n_V(b5e){var Y5L,H72,I9o,h$U,N24,P8c,b6R;if(!b5e[3]){return;}Y5L=parseInt(b5e[3],10);H72=11;I9o=31;if(b5e[4]){H72=e$X[b5e[4].substr(0,3)];h$U=1003750496;N24=445096330;P8c=2;for(var s$W=1;N21.m6F(s$W.toString(),s$W.toString().length,62997) !== h$U;s$W++){I9o=parseInt(b5e[6],"78" >> 0) && 5;P8c+=2;}if(N21.m6F(P8c.toString(),P8c.toString().length,78096) !== N24){I9o=parseInt(b5e[9],77) || 6;}I9o=parseInt(b5e[5],10) || 1;}b6R=b5e["6" * 1]?u72(b5e[6]):[0,"0" >> 0,0];N21.O_b(1);return [Y5L,H72,I9o,b6R[N21.V9a(0,"0")],b6R[1],b6R[2]];}p_$+="ha";p_$+="mer";p_$+="ica";a1P=this;D2d={Etc:"etcetera",EST:"northamerica",MST:"northamerica",HST:p_$,EST5EDT:F_e,CST6CDT:"northamerica",MST7MDT:L8M,PST8PDT:A6f,America:["northamerica","southamerica"],Pacific:"australasia",Atlantic:s6s,Africa:"africa",Indian:"africa",Antarctica:P5v,Asia:"asia",Australia:"australasia",Europe:"europe",WET:"europe",CET:R5S,MET:"europe",EET:"europe"};i9Q={"Pacific/Honolulu":"northamerica","Atlantic/Bermuda":"northamerica","Atlantic/Cape_Verde":o5c,"Atlantic/St_Helena":"africa","Indian/Kerguelen":"antarctica","Indian/Chagos":"asia","Indian/Maldives":J4v,"Indian/Christmas":"australasia","Indian/Cocos":"australasia","America/Danmarkshavn":J0k,"America/Scoresbysund":"europe","America/Godthab":"europe","America/Thule":"europe","Asia/Istanbul":"europe","Asia/Yekaterinburg":"europe","Asia/Omsk":"europe","Asia/Novosibirsk":"europe","Asia/Krasnoyarsk":c40,"Asia/Irkutsk":"europe","Asia/Yakutsk":"europe","Asia/Vladivostok":"europe","Asia/Sakhalin":"europe","Asia/Magadan":"europe","Asia/Kamchatka":"europe","Asia/Anadyr":"europe","Africa/Ceuta":"europe",GMT:W10,"Europe/Nicosia":"asia"};this.zoneFileBasePath=null;this.zoneFiles=[k6f,"antarctica","asia",y_C,"backward","etcetera","europe","northamerica","pacificnew","southamerica"];this.loadingSchemes={PRELOAD_ALL:"preloadAll",LAZY_LOAD:"lazyLoad",MANUAL_LOAD:O_s};this.getRegionForTimezone=S88;this.loadingScheme=this.loadingSchemes.LAZY_LOAD;this.loadedZones={};this.zones={};this.rules={};this.init=function(O_j){var w6f,o5u;w6f={async:!!({})};o5u=this.loadingScheme === this.loadingSchemes.PRELOAD_ALL?this.zoneFiles:this.defaultZoneFile || "northamerica";for(var D_R in O_j){w6f[D_R]=O_j[D_R];}return this.loadZoneFiles(o5u,w6f);};this.loadZoneFiles=function(s0y,q9X){var V$1,Q5h,u$u,c0f,N4w,s3d;V$1="s";V$1+="tri";V$1+="ng";u$u=0;if(typeof s0y === V$1){return this.loadZoneFile(s0y,q9X);}c0f=-1762172045;N4w=-1482295719;N21.s$9(39);s3d=N21.v$j("2",0);for(var a3I=1;N21.l5h(a3I.toString(),a3I.toString().length,78249) !== c0f;a3I++){q9X=q9X && ({});s3d+=2;}if(N21.l5h(s3d.toString(),s3d.toString().length,83530) !== N4w){q9X=q9X || ({});}Q5h=q9X.callback;q9X.callback=function(){u$u++;N21.W5N();u$u === s0y.length && typeof Q5h === "function" && Q5h();};for(var J02=0;J02 < s0y.length;J02++){this.loadZoneFile(s0y[J02],q9X);}};function Q5R(i9q,E7$){var H63;N21.s$9(0);var m_G=N21.v$j(569,5);N21.s$9(35);var B3T=N21.V9a(10,4647,1553);N21.s$9(33);var E2M=N21.V9a(294,2654,8);N21.W3G();N21.s$9(104);var z2w=N21.v$j(16,13,27,2);N21.s$9(22);var f_y=N21.v$j(18,307,0,17);H63=a1P.zoneFileBasePath + (m_G !== (66.67,B3T)?(E2M,"8392" >> z2w) >= 787.75?"/":867.40:(343.08,"3.62e+3" * f_y)) + i9q;return !E7$ || !E7$.async?a1P.parseZones(a1P.transport({url:H63,async:!!0})):a1P.transport({async:!0,url:H63,success:function(L5F){N21.W5N();return a1P.parseZones(L5F) && typeof E7$.callback === "function" && E7$.callback();},error:function(){N21.W3G();N21.O_b(35);throw new Error(N21.V9a(H63,"' zoneinfo files","Error retrieving '"));}});}this.loadZoneFile=function(c$q,O73){if(typeof this.zoneFileBasePath === "undefined"){throw new Error("Please define a base path to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.");}if(this.loadedZones[c$q]){return;}this.loadedZones[c$q]=!![];return Q5R(c$q,O73);};this.loadZoneJSONData=function(U5w,g_G){var H5k;H5k=function(T6e){T6e=JSON.parse(T6e);for(var P75 in T6e.zones){a1P.zones[P75]=T6e.zones[P75];}for(var m5i in T6e.rules){a1P.rules[m5i]=T6e.rules[m5i];}};return g_G?H5k(a1P.transport({url:U5w,async:!({})})):a1P.transport({url:U5w,success:H5k});};this.loadZoneDataFromObject=function(o4$){N21.W3G();if(!o4$){return;}for(var X2Y in o4$.zones){a1P.zones[X2Y]=o4$.zones[X2Y];}for(var B39 in o4$.rules){a1P.rules[B39]=o4$.rules[B39];}};this.getAllZones=function(){var a7z;a7z=[];for(var d55 in this.zones){a7z.push(d55);}return a7z.sort();};this.parseZones=function(c5I){var e_d,J4w,X3R,r9z,n42,z8W,d4E,f0f,Z9w,i7I;if(!c5I){return !!"";}e_d=1882731371;J4w=-1112428670;X3R=2;for(var P04="1" >> 32;N21.l5h(P04.toString(),P04.toString().length,94695) !== e_d;P04++){r9z=c5I.split(8333 === 7950?(![],+"783.74"):386.23 > 312.2?184.73 <= (545,"9260" - 0)?"\n":(164.23,7.76e+3):(0x3e6,5.99e+3));n42=[];z8W="";f0f=null;Z9w=null;X3R+=2;}if(N21.l5h(X3R.toString(),X3R.toString().length,+"23775") !== J4w){r9z=c5I.split(5115 !== 7378?(!![],399860):("563666" | 2) <= 66165?103582 < ("886" | 16,2640)?"\n":(507612,6881980):("0xb69" - 0,4590407));n42=[];z8W="";f0f=1;Z9w=1;}for(var V$a=0;V$a < r9z.length;V$a++){d4E=r9z[V$a];if(d4E.match(/^\s/)){N21.s$9(35);d4E=N21.V9a(f0f,d4E,"Zone ");}d4E=d4E.split("#")[0];if(d4E.length > 3){i7I="Li";i7I+="nk";n42=d4E.split(/\s+/);z8W=n42.shift();switch(z8W){case "Zone":f0f=n42.shift();if(!a1P.zones[f0f]){a1P.zones[f0f]=[];}if(n42.length < 3)break;n42.splice(3,n42.length,n_V(n42));if(n42[3]){n42[3]=Date.UTC.apply(null,n42[3]);}n42[0]=-Q4m(n42[0]);a1P.zones[f0f].push(n42);break;case "Rule":Z9w=n42.shift();if(!a1P.rules[Z9w]){a1P.rules[Z9w]=[];}N21.s$9(29);n42[N21.v$j("0",64)]=parseInt(n42[0],10);n42[1]=parseInt(n42[1],10) || n42[1];n42[5]=u72(n42[5]);n42[+"6"]=Q4m(n42["6" >> 32]);a1P.rules[Z9w].push(n42);break;case i7I:if(a1P.zones[n42[+"1"]]){N21.O_b(67);var C8u=N21.v$j(17,19,18,15);throw new Error("Error with Link " + n42[C8u] + ". Cannot create link of a preexisted zone.");}if(isNaN(n42[0])){a1P.zones[n42[+"1"]]=n42[+"0"];}else {a1P.zones[n42[1]]=parseInt(n42[0],10);}break;}}}N21.W3G();return !!"1";};this.transport=G0A;this.getTzInfo=function(N01,R8j,c2a){var A4C,Y2D,i5D,s$f;this.lazyLoadZoneFiles(R8j);A4C=o6z(N01,R8j);Y2D=+A4C[0];i5D=s7n(N01,A4C,c2a,R8j);if(i5D){Y2D=c_C(Y2D,i5D[6]);}s$f=i8r(A4C,i5D);return {tzOffset:Y2D,tzAbbr:s$f};};function i8r(c9Y,g0l){var r_p,I7c,H9M;r_p="%";r_p+="s";I7c=c9Y[+"2"];if(I7c.indexOf(r_p) > -+"1"){if(g0l){H9M=g0l[7] === "-"?"":g0l[7];}else {H9M=512.66 < (934.84,4900)?(+"661",5188) <= 8420?"S":(0x1109,278.00):(0x5a1,726.66);}return I7c.replace("%s",H9M);}else if(I7c.indexOf(1390 > 908.04?(548.92,1303) == 400.41?(0x1784,0x13e0):293.99 > ("850.87" - 0,239)?"/":"l":(582.47,6.67e+3)) > -+"1"){return I7c.split("/",+"2")[g0l?g0l[6]?1:0:0];}return I7c;}this.lazyLoadZoneFiles=function(r6_){var s4X;if(this.loadingScheme === this.loadingSchemes.LAZY_LOAD){s4X=S88(r6_);if(!s4X){throw new Error("Not a valid timezone ID.");}this.loadZoneFiles(s4X);}};})();}).call(typeof window !== g6y?window:this);R6B=399317235;n5r=1545134630;N0K=2;for(var p2W=1;N21.m6F(p2W.toString(),p2W.toString().length,35873) !== R6B;p2W++){l5Y.timezone.loadingScheme=l5Y.timezone.loadingSchemes.MANUAL_LOAD;N0K+=2;}if(N21.l5h(N0K.toString(),N0K.toString().length,"92836" * 1) !== n5r){l5Y.timezone.loadingScheme=l5Y.timezone.loadingSchemes.MANUAL_LOAD;}l5Y.timezone.loadZoneDataFromObject({zones:{"Atlantic/Cape_Verde":[[60,(473.11,965.66) > (2370,5050)?(8.43e+3,!!""):6580 !== ("453" * 1,39.13)?("79.33" * 1,450.81) < (+"891.3",444.84)?(9.25e+3,0x16a):"-":(!!0,1.01e+3),"-01",null]],"Africa/Cairo":[[-120,"Egypt","EE%sT",null]],"Africa/Nairobi":[[-180,"-","EAT",null]],"Africa/Casablanca":[[0,"Morocco","+00/+01",1540695600000],[-60,"Morocco","+01/+00",null]],"Africa/Windhoek":[[-120,d5a,"%s",null]],"Africa/Johannesburg":[[-120,"SA","SAST",null]],"Africa/Tunis":[[-60,"Tunisia",K8j,null]],"Antarctica/Troll":[[0,"Troll","%s",null]],"Asia/Kabul":[[-270,"-","+0430",null]],"Asia/Baku":[[-240,X5y,"+04/+05",null]],"Asia/Dhaka":[[-360,G6_,z3m,null]],"Asia/Yangon":[[-390,(250,5710) !== (6540,9209)?"-":(683,6.55e+3),"+0630",null]],"Asia/Shanghai":[[-480,"PRC",R8s,null]],"Asia/Hong_Kong":[[-480,U4m,"HK%sT",null]],"Asia/Taipei":[[-480,"Taiwan","C%sT",null]],"Asia/Nicosia":[[-120,"EUAsia",x3q,null]],"Asia/Kolkata":[[-330,960.87 > 673?"-":4.68e+3,"IST",null]],"Asia/Tehran":[[-("210" | 18),q16,"+0330/+0430",null]],"Asia/Jerusalem":[[-+"120","Zion","I%sT",null]],"Asia/Tokyo":[[-540,"Japan","J%sT",null]],"Asia/Amman":[[-("120" >> 64),q5m,P1g,null]],"Asia/Almaty":[[-360,7530 < (513,656)?38.24:(434.72,3020) > ("5460" >> 64,928.64)?"-":+"8.90e+3","ALMT",null]],"Asia/Seoul":[[-540,E9a,"K%sT",null]],"Asia/Pyongyang":[[-+"510",5490 > 934.71?("3530" >> 0,5683) !== (1490,405.14)?"-":+"520":!0,"KST",+"1525476600000"],[-540,"2089" * 1 < (+"740.67",7221)?"-":("7860" ^ 0,"8401" << 32) === 4980?0xac0:(!!1,0x2685),"KST",null]],"Asia/Beirut":[[-("120" | 32),"Lebanon","EE%sT",null]],"Asia/Kuala_Lumpur":[[-480,"-","+08",null]],"Asia/Hovd":[[-420,"Mongol","+07/+08",null]],"Asia/Ulaanbaatar":[[-480,"Mongol","+08/+09",null]],"Asia/Kathmandu":[[-+"345",1320 <= (7640,+"932.17")?(5.70e+3,7.72e+3):"-","+0545",null]],"Asia/Karachi":[[-300,"Pakistan","PK%sT",null]],"Asia/Hebron":[[-+"120","Palestine",g8c,null]],"Asia/Riyadh":[[-180,"-",Y$3,null]],"Asia/Damascus":[[-120,H1Q,"EE%sT",null]],"Asia/Bangkok":[[-420,+"882" === 527.11?479.39 != (652.34,149)?652.67:(0xf7e,"e"):"-","+07",null]],"Asia/Dubai":[[-240,"-","+04",null]],"Australia/Darwin":[[-570,"Aus","AC%sT",null]],"Australia/Perth":[[-+"480",z_O,"AW%sT",null]],"Australia/Eucla":[[-525,K8$,"+0845/+0945",null]],"Australia/Brisbane":[[-600,"AQ","AE%sT",null]],"Australia/Adelaide":[[-("570" * 1),"AS","AC%sT",null]],"Australia/Hobart":[[-600,"AT","AE%sT",null]],"Australia/Melbourne":[[-+"600","AV","AE%sT",null]],"Australia/Sydney":[[-600,"AN","AE%sT",null]],"Australia/Lord_Howe":[[-630,"LH","+1030/+11",null]],"Pacific/Fiji":[[-720,I$z,"+12/+13",null]],"Pacific/Guam":[[-600,+"151.11" === (887.81,953.86)?"7420" - 0 < 10.5?(!![],3.02e+3):8426 == (+"59.79",52.26)?"e":("E",!![]):"-","ChST",null]],"Pacific/Kiritimati":[[-840,(2380,7740) != (4880,811)?"-":(5600,266.97) > (949,"7.33" - 0)?(9.16e+2,679.51):524.08,"+14",null]],"Pacific/Noumea":[[-660,"NC","+11/+12",null]],"Pacific/Auckland":[[-720,"NZ",o1y,null]],"Pacific/Chatham":[[-765,Y4g,O$l,null]],"Pacific/Pago_Pago":[[660,("5940" ^ 0,1520) === (+"9440",926.02)?(+"3186",797.69) == (77.43,+"714.16")?(9.67e+3,"i"):(0x1f93,"f"):"-","SST",null]],"Pacific/Apia":[[-780,"WS","+13/+14",null]],"Pacific/Tongatapu":[[-780,F6D,"+13/+14",null]],"Etc/UTC":[[0,(6520,3906) == (+"9718",9670)?"d":"-","UTC",null]],UTC:F71,"Europe/London":[[0,T9x,B_4,null]],"Europe/Dublin":[[0,V$5,"IST/GMT",null]],WET:[[0,q8j,"WE%sT",null]],CET:[[-+"60","C-Eur",O_k,null]],MET:[[-("60" ^ 0),"C-Eur","ME%sT",null]],EET:[[-+"120","EU","EE%sT",null]],"Europe/Brussels":[[-60,"EU","CE%sT",null]],"America/Thule":[[240,"Thule",y9O,null]],"Europe/Helsinki":[[-120,"EU",s3a,null]],"Europe/Paris":[[-("60" | 8),"EU",g93,null]],"Europe/Berlin":[[-60,"EU","CE%sT",null]],"Europe/Amsterdam":[[-60,"EU","CE%sT",null]],"Atlantic/Azores":[[60,"EU","-01/+00",null]],"Europe/Bucharest":[[-120,"EU","EE%sT",null]],"Europe/Kaliningrad":[[-+"120",6629 > 63.32?6730 != (6080,8820)?("284.23" - 0,+"743.16") <= "9640" >> 0?"-":(0x25c3,"A"):(![],9.48e+3):"i",L_r,null]],"Europe/Moscow":[[-180,("1382" ^ 0) === (+"9365",864)?"737.43" - 0 !== (3233,340.42)?4630 > (735.09,173.01)?"a":4.37e+3:756.32:"-",N9I,null]],"Europe/Volgograd":[[-180,(9150,8529) == ("4523" ^ 0,341.67)?!!0:"-",t5D,1540692000000],[-240,944 > (8250,914.86)?("120.65" - 0,+"3528") > (8393,1308)?"-":1607 == ("5441" >> 32,+"2400")?"0xc22" >> 32:(9.92e+3,297.30):"L","+04",1609034400000],[-180,(+"8260","5431" - 0) >= 7880?!({}):(+"859.07",428.96) < (32,2518)?"-":(4219,334) < (605.67,9037)?7.50e+3:(1.15e+3,0x1a41),"+03",null]],"Europe/Samara":[[-+"240",("186" << 0,"8570" << 64) !== (4049,424.9)?1588 != 896.92?3343 >= "1914" >> 0?"-":(276.00,420.51):"X":(+"0x71f",0x217d),"+04",null]],"Asia/Yekaterinburg":[[-300,"-","+05",null]],"Asia/Omsk":[[-("360" | 0),6700 <= (+"8700",7535)?"-":(+"310.70",!![]),n01,null]],"Asia/Novosibirsk":[[-420,6850 == 260.8?(763.79,!!1):"-","+07",null]],"Asia/Novokuznetsk":[[-420,"-","+07",null]],"Asia/Krasnoyarsk":[[-420,(488.58,9300) == (402.73,726.27)?(495.87,884.80):(+"5766",394.26) >= (212.05,+"471.04")?(5098,860.28) != (8640,853.04)?!!({}):(587.93,!!1):"-",f8C,null]],"Asia/Irkutsk":[[-480,"-",s4B,null]],"Asia/Yakutsk":[[-540,"-","+09",null]],"Asia/Vladivostok":[[-+"600",(9443,4260) > (4150,6340)?0xfff:4340 === 388.54?(451.36,780) >= +"183.27"?(!!1,0xc2b):123.70:"-",H$3,null]],"Asia/Magadan":[[-+"660",+"3970" === ("999.47" - 0,1368)?4410 >= (324,150.32)?(2065,9830) >= 1010?0xe5b:8.01e+3:922.02:"-","+11",null]],"Asia/Srednekolymsk":[[-660,(614,5540) !== (6365,"3440" - 0)?"-":(!!1,"9.70e+3" * 1),q8U,null]],"Asia/Kamchatka":[[-720,"-","+12",null]],"Europe/Belgrade":[[-60,"EU","CE%sT",null]],"Europe/Sarajevo":"Europe/Belgrade","Europe/Istanbul":[[-180,(937.53,356.38) > (+"8290",439.64)?(!0,+"0x7f9"):"-","+03",null]],"America/New_York":[[300,"US",l1b,null]],"America/Chicago":[[360,"US","C%sT",null]],"America/Denver":[[420,"US","M%sT",null]],"America/Los_Angeles":[[480,r6h,K2H,null]],"America/Juneau":[[+"540",q0N,"AK%sT",null]],"Pacific/Honolulu":[[600,"-",Z3$,null]],"America/Phoenix":[[420,(2170,4800) === +"6220"?!![]:"-","MST",null]],"America/St_Johns":[[210,"Canada","N%sT",null]],"America/Halifax":[[240,v0F,"A%sT",null]],"America/Regina":[[360,"-","CST",null]],"America/Mexico_City":[[360,"Mexico","C%sT",null]],"America/Chihuahua":[[420,K2T,f5a,null]],"America/Costa_Rica":[[360,"CR","C%sT",null]],"America/Havana":[[300,r1U,"C%sT",null]],"America/Port-au-Prince":[[+"300","Haiti",O1L,null]],"America/Panama":[[300,(+"1971",851.21) !== 103.16?(4040,390.39) <= (1745,7629)?"-":(8572,754.59) > 9260?510.78:5.57e+3:("4.69e+2" >> 0,"p"),"EST",null]],"America/Puerto_Rico":[[+"240","840.61" - 0 < ("817" >> 0,8046)?"-":(!!1,!!""),"AST",null]],"America/Argentina/Buenos_Aires":[[180,"Arg","-03/-02",null]],"America/Sao_Paulo":[[180,"Brazil","-03/-02",null]],"America/Santiago":[[240,o$3,"-04/-03",null]],"America/Punta_Arenas":[[240,"Chile","-04/-03",1480809600000],[180,"-",S4s,null]],"America/Bogota":[[300,"CO","-05/-04",null]],"America/Asuncion":[[240,"Para","-04/-03",null]],"Atlantic/South_Georgia":[[120,9639 <= (2913,815.75)?(0xcd,0x2409):4470 < (2900,8130)?"-":(728.95,794.27) <= 7500?0x1049:(0x1da0,762.58),j1K,null]],"America/Montevideo":[[180,"Uruguay",O3M,null]],"America/Caracas":[[240,6000 >= 8210?(1390,7825) >= 296.48?(4433,+"1234") === (399.07,4530)?(650.02,0x13ac):0x2262:("O",1.20e+3):"-","-04",null]],"Europe/Athens":"Europe/Bucharest","Europe/Simferopol":"Europe/Moscow","Asia/Rangoon":"Asia/Yangon","Atlantic/Reykjavik":"UTC","Asia/Kuwait":"Asia/Riyadh","Asia/Muscat":"Asia/Riyadh","Asia/Istanbul":"Europe/Istanbul"},rules:{Egypt:[],Morocco:[["2013" ^ 0,2018,853.85 < 103.07?(5.52e+3,"l"):"-","Oct","lastSun",[3,+"0",0,null],"0" >> 32,9245 !== (1910,9940)?(893.19,326) === (2340,7588)?("8230" >> 0,6986) >= 5140?(0x679,896.21):(8.68e+3,"I"):"-":(!![],0x24b3)],[2014,"2018" ^ 0,7150 == (512.88,9360)?7450 == (9360,4950)?3.69e+3:"v":"-",x1n,"lastSun",[2,0,0,null],"60" ^ 0,559.11 > (3820,6912)?(6.00e+2,4.55e+3):"-"],["2017" - 0,"only","-","May","21",[3,0,0,null],0,"4597" << 64 !== (952.54,875)?(5360,671.02) < (83,322.61)?(0x16a8,"b"):"-":5.35e+3],[2017,"only",1693 <= (746.25,689.38)?"5.96e+3" << 64:972.36 == (645.34,"5700" << 64)?!({}):"-",E5T,(6400,443.92) >= (1520,"973.69" * 1)?(!!({}),"u"):"2",["2" ^ 0,+"0","0" >> 32,null],+"60","-"],[2018,"only",(3418,5745) === (5749,3520)?945.46:"-",U$1,f7L,[3,0,0,null],+"0",(8700,5295) !== (3723,74.97)?"-":(5690,937.15) >= 586.6?6555 >= 7090?0x1254:(883.02,!1):!![]],[2018,"only",(1780,367.17) > 329.93?"-":974.11,l8k,"17",[2,0,"0" << 96,null],60,581.02 === ("7740" << 0,228)?(998.48,"e"):775.87 !== 2730?"-":!!({})],[2019,"only",(7130,605.76) > 525.74?"-":("3971" ^ 0,747.41) != 353.56?(7608,5320) >= (924.77,3370)?0x17eb:(!!"1","5.48e+3" * 1):3.81e+3,"May","5",[3,0,0,null],-("60" >> 32),"-"],[2019,H3r,9600 == (835.09,+"9872")?894.51:+"778.82" > 986.38?("1.29e+3" - 0,!![]):"-",p0N,278.08 < (6430,"6070" * 1)?(4500,"4395" | 33) == +"4000"?(!"",7.83e+3):"9":(!"",0x1574),[2,0,0,null],0,113.73 != (+"471.23","3350" * 1)?"-":(7.00e+3,+"0x175a")],[2020,"only","-",S5M,"19",[3,0,0,null],-+"60",2030 > 258?(2080,486.71) <= 1277?(5297,+"804.83") !== 308.73?"-":7.88e+3:"C":!!""],["2020" ^ 0,"only",3453 != (+"824.61",9762)?(9570,78) != (2360,252.16)?(2770,871.96) == 7220?"s":"-":("M",583.29):(0x145e,565.87),"May",t2c,[2,0,0,null],0,("7810" ^ 0) != (958.69,803.44)?"-":312 >= 5832?(103.39,2.67e+3):!({})],["2021" << 0,"only",958 === (3680,370)?898.51 >= ("5600" | 0)?(!"1","r"):!!({}):"-",x14,"11",[3,0,+"0",null],-60,"-"],[2021,"only","-","May","16",[2,0,0,null],0,"-"],["2022" ^ 0,"only","-","Mar","27",[3,0,+"0",null],-60,"803.9" - 0 != 1770?526 != (1942,233.34)?"-":"J":0xab8],[2022,O74,"-",y7G,"8",[2,0,0,null],"0" << 64,("355.64" - 0,300.79) !== "7070" << 32?(1875,508.13) === 760.18?("k",+"0x269a"):"-":("R",0x7ca)],[2023,W5Y,36.14 < 703.04?("405.88" - 0,4262) >= 4436?497.92 !== 890.66?(![],"0x1e6a" | 32):(7.63e+3,0x24e8):"-":622.00,"Mar","19",[3,0,"0" << 32,null],-60,(920.62,"3038" ^ 0) == 9170?116.23:393.74 <= 806.68?"-":7980 !== (741,"430.31" - 0)?("0xb17" >> 0,982.37):(0xa0,118.41)],[2023,b19,("221.71" - 0,6041) != (649.29,8540)?"-":570.03,R8V,"30",[2,0,0,null],0,"-"],[2024,"only",+"415.94" == "708" >> 96?8663 !== 1140?67.18:(!![],!![]):"-","Mar","10",[3,0,0,null],-60,362.71 >= (7350,874.39)?6860 !== (3508,761)?598.56 != (887.66,"438.75" * 1)?("S",!![]):4.06e+3:0x2580:"-"],[2024,"only",("767.64" - 0,9728) <= (9700,174.25)?(!!1,!1):(244.48,396.68) != 4190?"-":0x113b,"Apr",P84,[2,0,0,null],"0" ^ 0,"-"],[2025,"only",836.47 < (7531,6150)?"-":(598.12,666.99) <= 5570?(6532,"9050" | 16) > ("6310" - 0,"495" - 0)?("H",1.57e+3):(809.56,9.93e+3):9.11e+3,"Feb",O5a,[3,+"0",0,null],-60,6970 <= (244.27,673)?(257.14,9975) <= 9992?(5.21e+3,0x437):102.20:"-"],[+"2025","only",249 > (+"6006",132.86)?"-":"3228" << 0 >= (7960,3940)?("T","g"):(631.42,+"0x19ef"),"Apr",8408 == 218.46?(1.40e+3,"f"):(7390,"7620" >> 32) === 3062?(345.75,0x23ea):4127 <= 5970?"6":(0x3fa,!!1),[2,+"0",0,null],0,(6028,213.84) > 428?("1.90e+3" << 32,770.21):"-"]],Namibia:[[1994,"2017" << 32,842.86 !== 3540?"-":353 < 626?(!({}),"j"):("0x1c9d" ^ 0,3.40e+3),"Sep","Sun>=1",["2" | 2,0,0,null],"0" - 0,"CAT"],[1995,"2017" - 0,(172.94,781.48) != (388,2554)?3940 != 9419?"-":!"1":+"5.78e+3","Apr","Sun>=1",["2" >> 0,0,"0" - 0,null],-60,S8A]],SA:[],Tunisia:[],Troll:[[2005,"max",670.45 === 78.44?(601.22,8040) == (27.92,3849)?!0:(!!0,858.77):"-",x1h,"lastSun",[1,0,+"0",6655 == 249?("S",0x1b19):"u"],120,"+02"],[2004,D1l,(213.37,2960) === (4049,8290)?(232.15,216.77):946.35 !== 73.53?"-":766.56 < 1870?0x1a93:(0x19f4,!!0),"Oct","lastSun",[+"1",0,"0" ^ 0,"u"],0,"+00"]],EUAsia:[[1981,w_r,"-",x3H,d5q,[1,0,0,("6040" ^ 0,"8609" - 0) != ("3573" | 32)?"u":0x2232],60,"S"],[+"1996",p$a,519.79 !== (652.79,528.09)?"-":9640 != "454.61" * 1?490:(4.89e+3,883.05),"Oct","lastSun",[+"1",0,+"0","u"],0,951.89 >= (326,8468)?2689 > 644?+"5.32e+3":0x85b:"-"]],Azer:[],Dhaka:[],PRC:[],HK:[],Taiwan:[],Iran:[[2017,+"2019","-","Mar","21",[24,0,0,null],+"60","-"],[2017,2019,"-","Sep",x_H,[24,0,0,null],0,3823 <= (537,1616)?+"6.72e+3":("4520" ^ 0,7283) >= 2930?+"7663" === 99.01?("3.10e+3" - 0,!!({})):"-":("G",287.92)],[2020,"only",180.43 === (+"857.41",4769)?!!"1":(556,525.6) <= (6280,5697)?"-":(+"7470",8440) == (9560,960.36)?!![]:(24.43,1.34e+3),P0x,"20",[24,0,0,null],60,(3290,329.54) > 9428?(1600,"9420" * 1) <= 913?(![],"F"):"7331" >> 64 < "4340" << 32?(353.50,6.36e+3):![]:"-"],[2020,"only","-","Sep","20",[24,0,0,null],0,("9740" | 0,"715.38" * 1) === 4850?1760 < 177?(9.61e+3,85.36):("L",+"0x12f8"):"-"],[2021,2023,"-","Mar","21",[+"24",0,"0" << 64,null],60,(151,4550) <= (155.93,+"484")?!!1:"-"],[2021,2023,"-","Sep",y5Z,[24,"0" * 1,0,null],+"0","-"],[+"2024","only","-",s4A,"20",["24" << 96,"0" | 0,0,null],60,(318.99,801) <= 3240?2390 < (387.1,8684)?(848.15,7882) <= (+"74.17","8164" >> 64)?"-":!!1:("b","V"):884.28],[2024,l2_,"8703" - 0 >= 194.69?3680 != (2960,503.77)?(794,+"4606") == 8142?(!({}),859.05):"-":(!![],"P"):("P",!![]),"Sep","20",[24,0,+"0",null],+"0","-"],[2025,2027,(643.48,+"546.53") < ("8600" * 1,499.65)?"301.67" - 0 === (472.16,+"6664")?"z":"362.84" * 1:"-","Mar",I0u,[24,0,0,null],60,"-"],[2025,2027,(65,475.79) > (6280,482)?(+"588.46",553.44) > (7654,7560)?("v",622.08):("i",0x797):"-","Sep",r_d,[24,0,0,null],0,(2110,+"2974") != (387,+"261.47")?"-":799.1 !== (333,4690)?564 >= 952.44?(0x102a,0x1260):(0x17f7,0x23ef):(89.90,!!"1")]],Zion:[[2013,"max",(697.23,368.95) !== (901.23,9650)?"-":("u",!1),I7M,"Fri>=23",["2" - 0,0,+"0",null],60,1120 == (7869,5370)?0xf6b:(586.31,9323) != (4777,2420)?"D":(0x1554,"e")],["2013" ^ 0,"max",4661 > ("3040" >> 64,2920)?"-":(255.95,5125) >= (5893,"262.26" - 0)?(2.16e+3,"0x1997" >> 64):(773.55,!1),A7B,"lastSun",[2,0,0,null],0,"S"]],Japan:[],Jordan:[[2014,"max",1234 !== "3190" - 0?(505.69,9090) >= 1.86?("4700" ^ 0,5610) != (2510,990)?"-":(290.80,!({})):300.51:(0x1e4b,8.70e+3),y89,E2$,[24,0,0,null],60,"S"],["2014" * 1,"max",41.83 > (2520,609.87)?("p","8.24e+2" - 0):"-","Oct",b$R,[0,0,0,60.64 == (880.82,4938)?(5400,394.95) !== (782.36,"9721" | 8)?(4123,586.49) >= (3147,928.96)?0x82b:(0xcac,0x1b40):("0x26ed" * 1,0x703):"s"],0,(2310,+"264.59") < 102.46?(!!0,0x1d93):(1230,6969) !== "499.06" - 0?5657 < 103.06?(!!0,"A"):"-":!({})]],ROK:[],Lebanon:[[1993,c9b,(7820,6948) === (3540,9961)?9991 >= (+"974.83","3178" * 1)?(3850,2960) <= (8130,+"542.7")?(421,"g"):(!"1","a"):450.11:"-","Mar","lastSun",[0,0,0,null],60,"S"],["1999" >> 64,"max",76.65 != 3390?(7130,3270) === (1920,3992)?6.78e+3:"-":(0x1f49,"Z"),"Oct","lastSun",[0,0,0,null],0,"-"]],Mongol:[],Pakistan:[],Palestine:[[2016,"2018" * 1,"-",w8v,N$l,["1" >> 64,0,0,null],60,7994 > 6430?"S":+"7468" === (897,+"50")?"P":7300 < (3540,5840)?(0x865,221.93):6.39e+3],[2016,2018,"-","Oct",J9S,[1,0,0,null],"0" * 1,("651" ^ 0,4413) !== (3941,78.98)?187.88 >= ("6487" - 0,686.79)?+"4.85e+3":"-":(!![],"5.78e+3" | 4)],[2019,"only",("691.67" * 1,2121) != (159.05,7200)?"-":128.35,E2o,"29",[0,0,"0" >> 64,null],60,198 === 1890?!!({}):"S"],[2019,k24,(182.63,+"1320") >= (33.53,8207)?124.31:"-",D5t,"Sat>=24",["0" | 0,"0" << 0,0,null],60,(598.45,9770) >= ("264.61" - 0,2055)?"-":(3536,703) === 118?("i",+"0x2632"):("O",0x1719)],["2020" ^ 0,x1S,"-","Mar","Sat>=24",[0,0,0,null],60,"S"],["2020" | 64,"max",3390 === "9470" * 1?"J":"-","Oct","Sat>=24",[1,0,0,null],60,1360 <= ("4448" | 0)?"-":385.64 < (696.32,7336)?0x2553:(+"6.34e+2",!![])]],Syria:[[2012,"max",(7039,8470) <= 8685?"-":("0x19bf" * 1,957.42),"Mar","lastFri",[0,+"0",0,null],60,(1990,249.36) <= +"38.08"?0x1a32:"S"],[2009,"max","-",W4T,"lastFri",[0,0,0,null],0,727 != 4910?"-":316.83 == 7450?144.12:0x1a20]],Aus:[],AW:[],AQ:[],AS:[[2008,x60,(8450,+"192.77") == (8790,7760)?3750 > (342.32,5654)?!"":0x7f9:"-",y6S,C0F,[2,+"0",0,(7835,318) > 322.27?809.25 == (929.99,4940)?(+"0x19bf",0x2502):("m",![]):"s"],0,1450 != (465.53,+"141")?523.78 >= 9501?5890 <= +"631.31"?(+"0x17b4","v"):(0xf0e,760.03):"S":("U",766.15)],[2008,u9$,"-","Oct","Sun>=1",[2,0,0,(398.59,469.97) !== 5906?5143 === (+"8790",+"667.72")?!!({}):"s":!!({})],"60" ^ 0,5170 > (456.88,4750)?"D":(86,3670) >= 3470?+"992" > 3040?(0xdc9,8.64e+3):0x258c:"a"]],AT:[[2001,"max",(+"246.74",5260) == (7502,"8499" >> 32)?(+"0x13f0",627.64):6220 != (7885,514.26)?"-":+"934.15" < 531.06?(0x2425,"P"):0x1769,"Oct",G_v,[+"2","0" - 0,0,"s"],"60" >> 64,(5020,4600) <= (2355,6342)?+"758.3" !== (+"8352",7114)?(2490,5936) <= 2?(+"304.43","J"):"D":(!"1","a"):706.99],[2008,"max",(8289,216.65) < 8547?"-":(!"1",920.19),C1a,"Sun>=1",[2,0,0,"s"],0,(272.74,784.51) <= (37.31,3661)?"S":2726 > +"5581"?!!0:7263 !== (2150,54)?"m":("l",!!"1")]],AV:[[2008,"max","-","Apr","Sun>=1",[2,0,0,(5770,1039) !== (504.26,287.13)?"s":(689.32,1460) > 6987?"L":139.57 > (5600,4250)?(+"0x187c",0x248a):![]],0,2431 !== ("454.34" * 1,201.72)?7260 !== (7440,460.23)?"S":!({}):(0x2eb,2.99e+3)],[2008,"max",8794 > (536.51,3810)?"-":(0xcca,8.52e+3),"Oct","Sun>=1",[2,0,0,398.3 <= 7993?(54.98,6970) !== (5234,+"392.34")?"s":(!!"",5.24e+3):0x123a],60,"D"]],AN:[[2008,"max",616.32 == (8630,"5460" - 0)?!![]:"-",l9t,"Sun>=1",[2,"0" ^ 0,0,1889 !== 5400?"s":(233.41,878.08) != "2270" << 32?80.48:("0x21fd" >> 64,"d")],0,(634.38,+"6774") > (9450,913)?("336.45" - 0,1275) !== (5549,949.08)?(9678,101.72) != (+"2780",657.14)?"S":"k":("f",7.86e+3):"d"],["2008" * 1,"max",("2440" >> 96,787.97) == (765.81,8096)?("j",0x2135):"-","Oct","Sun>=1",[2,0,0,"s"],60,(573,6670) == (+"671",6917)?("2690" | 0,4950) != 6357?436.76:(![],0x1ac7):"D"]],LH:[[2008,"max",(1180,+"3667") == (4776,2950)?(8.78e+3,0x170a):"-","Apr",E8A,[2,"0" * 1,0,null],0,(519.64,281) > 8810?193.94:910.82 <= (586.15,363.87)?(!!({}),"4.31e+3" * 1):"-"],[2008,"max",(9670,3811) == 1580?(!({}),"704.50" * 1):"-","Oct",F3M,[2,0,0,null],"30" | 12,(+"250",9506) >= (9720,9110)?"-":825.6 >= 857.75?"S":"E"]],Fiji:[[2014,2018,("3696" - 0,"160" << 0) === 784?(2933,8197) <= (429.42,114.92)?(0x148e,!1):+"9164" >= +"610.86"?(![],"188.47" * 1):7.03e+2:"-","Nov",k1W,[2,0,0,null],+"60","-"],["2015" * 1,"max",5028 < (6108,5797)?"-":(+"8.68e+3",0x1448),"Jan","Sun>=12",[+"3",0,0,null],0,"-"],[2019,"only",("594.66" - 0,569.1) === 7438?(!!"1",0x2266):"-","Nov","Sun>=8",[2,0,0,null],60,(6070,+"615.89") !== (7086,435.1)?"-":(498.32,!!({}))],[2020,i0W,"-","Dec",P1k,[2,0,"0" >> 64,null],+"60","-"],[2021,"max",686.6 !== (8530,"9100" >> 32)?(4559,2270) <= 2386?"-":("k","H"):0x1b4b,C6p,i_p,[2,"0" << 64,0,null],60,+"188.27" > 126.4?"-":5.21e+3]],NC:[],NZ:[[2007,"max",("6715" ^ 0) >= (746.69,7960)?(709.44,9441) >= (+"2130",6611)?"T":!({}):"-","Sep","lastSun",[2,+"0",0,"s"],60,"D"],[2008,F_1,6110 < (5449,"487.36" - 0)?(386.31,4.44e+3):292.39 > 2795?("8007" << 96,4) >= (+"4622",2434)?!"1":("A",5.36e+3):"-","Apr","Sun>=1",[2,+"0",0,"s"],"0" << 32,(2296,7730) != (708,616)?3764 < (9798,5326)?"S":("366.44" * 1,58.62):(!![],0x1e40)]],Chatham:[[2007,"max","-","Sep","lastSun",[2,45,0,(7480,5417) <= 8210?"s":(0x1026,"602.42" - 0)],60,(261.87,+"445") > "14" * 1?"-":(2,4819) >= 3980?(376.48,!!0):("0x1e46" * 1,0x9a9)],["2008" << 64,"max",6680 === 536.52?(!({}),"G"):(7018,8364) <= 4040?7.78e+3:"-","Apr","Sun>=1",[2,45,"0" | 0,(3990,7430) < "764.76" - 0?25.02 != (124.97,+"8840")?"3600" * 1 > (7580,9060)?0x21ea:(239.77,375.05):!!"":"s"],0,7593 == 501.37?"0x3f0" ^ 0:"-"]],WS:[[2012,"max",8791 < 8950?"5010" * 1 > (7680,7870)?723.16 >= ("774.2" - 0,4660)?(261,0x1dd2):"3.16e+3" ^ 0:"-":4.81e+3,"Apr",W4C,[+"4",0,0,null],0,"-"],[2012,"max",440.6 > 863?(!!"","S"):4799 <= ("9800" >> 32,1940)?(9.81e+3,!![]):8110 <= 3390?(+"5.89e+3",0x2570):"-",t6Y,"lastSun",[3,+"0",0,null],60,"-"]],Tonga:[[2016,"only","-","Nov","Sun>=1",[2,0,0,null],+"60",(754.88,4284) === (4701,"5410" << 64)?(!!0,+"168.39"):(684.86,2260) > (718,+"595.43")?"-":(!![],!"")],[2017,"only",(6260,+"6822") >= (934.69,2582)?938.8 === (342.99,316.81)?(939.21,!({})):"-":"V","Jan","Sun>=15",[+"3","0" * 1,0,null],0,"-"]],Eire:[[1981,"max",807.91 > (+"5461","478.14" - 0)?(8879,3520) < (+"6760",533)?(873.85,51.24):+"388.98" !== 4590?"-":(346.84,"B"):("0x8dc" << 32,!({})),O6V,"lastSun",[1,+"0",0,"u"],0,988 < (5510,7510)?"-":(3770,3173) == (907.45,645.01)?(!!"1",9.21e+3):(591.97,1540) != "917.07" * 1?"p":"k"],[1996,"max",(5380,9990) > (946.4,1450)?(848,"374" * 1) < 5370?"-":797.66:(+"976.58",0x1931),"Oct","lastSun",["1" - 0,0,0,6468 != 2394?"u":64.99],-60,+"322" > (4370,433.06)?7480 === (8870,7630)?!0:!!"1":"-"]],EU:[[+"1981","max","-","Mar","lastSun",[1,0,0,("2240" | 0) >= 399?8002 == 340.56?(189.18,"h"):196 < (18.84,1216)?"u":(0x24,0x246):(5.22e+3,"6.91e+3" * 1)],60,440.28 === 898.48?631.71 != 9440?+"351.93" === 4900?396.87:(!1,!!""):(!!({}),"147.05" - 0):"S"],[1996,"max",7.55 < (3690,152.46)?(9250,47) > (810.69,4650)?(769.87,757.95) <= (+"2020",+"4987")?![]:7.17e+3:"-":("r","t"),o1M,"lastSun",[1,0,0,10.08 === (188.19,"803.16" * 1)?!({}):5630 === 8580?+"9.57e+3":"u"],0,(5546,8243) == (110.82,366)?(4.75e+3,"e"):"-"]],"C-Eur":[[1981,"max",(525.24,8400) <= (3646,+"4040")?("5870" << 0,558.52) != 3660?!![]:"0x2af" | 5:"-","Mar","lastSun",[2,0,0,2740 < (7790,863.19)?(226.32,8500) <= (675.96,3814)?(0x2406,"0x75f" * 1):644.97 < "365.98" - 0?(![],896.28):!"1":"s"],60,1440 < 1992?"S":"94.68" - 0],[+"1996","max","-","Oct","lastSun",[2,0,0,556.78 <= 3271?"s":109.74],0,"-"]],Thule:[[2007,M7J,7460 >= 7070?"-":(2.60e+3,![]),v3$,"Sun>=8",[2,"0" | 0,"0" - 0,null],60,"D"],[2007,"max",(7491,8390) >= (2575,+"7380")?"-":(1903,+"492.26") === (5892,"5820" << 32)?"b":(3410,7550) < 4047?("g",!!""):0x1316,"Nov","Sun>=1",[2,0,+"0",null],0,824.94 != 5970?"S":("2.32e+3" << 32,0x15c0)]],US:[[2007,"max",5621 == (134.08,722.71)?991.68:2050 >= (9000,"4860" ^ 0)?("Z","7.19e+3" - 0):(+"7260",4890) > 5080?"f":"-",k_T,"Sun>=8",[2,0,0,null],60,315.47 > 6000?(!!0,!!({})):"D"],[+"2007",N0g,(1030,+"3910") == (3613,725.27)?(!!1,!"1"):(522,6920) != (576.7,136.96)?(4756,+"9420") <= (+"2628",8729)?!![]:"-":165.89,"Nov","Sun>=1",[2,+"0","0" * 1,null],0,4340 === (9580,3530)?6.01e+3:"S"]],Canada:[[2007,w9h,1180 == 341.91?340.23:(6812,"6000" ^ 0) <= (8000,"681.41" - 0)?854 > ("229.29" - 0,108.98)?"e":(![],!![]):"-",n3D,"Sun>=8",[2,0,0,null],"60" >> 0,"D"],[2007,"max","-","Nov","Sun>=1",[2,0,0,null],0,"S"]],Mexico:[["2002" * 1,"max",339.6 == 320.15?(5730,2270) === 2960?("i",+"0x8cf"):6238 == 7250?+"660.67":30.74:"-","Apr",e9C,[2,0,0,null],60,(6320,6610) == (4100,"322" - 0)?!!"":"D"],[+"2002","max",593 <= ("542" | 16,"286.08" - 0)?(522,!({})):(8940,+"761.73") !== (1320,9300)?"-":"S","Oct","lastSun",["2" ^ 0,0,0,null],+"0",(8222,9340) != (822.71,+"455")?"S":(596.12,5960) !== 182.97?5593 < 4593?"E":"k":("j",!!"")]],CR:[],Cuba:[[2012,n6p,(2091,9454) !== 219.38?644.78 == "19.24" - 0?(9254,9158) == 4818?6.74e+3:!!0:"-":(711.10,!0),h6K,"Sun>=1",[0,0,0,"778.81" - 0 == (595.52,"2132" << 64)?3.98e+3:(616.64,6810) !== 502.75?"702.21" - 0 <= (196.5,289.99)?("0x243d" * 1,"I"):"s":"208.10" * 1],"0" - 0,2010 !== 997.58?"S":(1.51e+3,!!({}))],[2013,"max",(2612,7991) < 7410?(4581,8380) <= 256.05?(8.36e+3,0x215a):("4436" - 0,715.67) != 9940?!({}):!!"1":"-","Mar",j9r,[0,0,0,"s"],+"60","D"]],Haiti:[[2017,"max",("6700" | 8) < (451.96,2873)?"F":(+"136",384) != (257,914.17)?"-":(6360,753) !== 9241?(0x2449,+"4.22e+3"):0x2327,"Mar",O1M,["2" | 0,0,0,null],+"60","D"],[+"2017",r6W,(1358,69.42) === (9610,1100)?(6270,9859) == (2431,7260)?+"0x12bb":136.7 !== (422.9,3778)?(0x79d,34.93):("r",0x1e98):"-",A0f,T81,[2,0,0,null],"0" | 0,700 >= (4740,4855)?837.14:3160 >= 1862?"S":6657 == (+"2220",5450)?("h",!!"1"):(+"2.77","i")]],Arg:[],Brazil:[[2008,2017,"-","Oct",r1w,[0,0,0,null],"60" << 32,"-"],[2016,2019,195.84 === (6679,9333)?(+"8232",2701) > 618.58?2.75e+3:(8.22e+3,0x5c2):"-",X_u,"Sun>=15",[0,0,0,null],0,"-"],["2018" * 1,D9A,"-","Nov","Sun>=1",[0,0,0,null],"60" >> 0,("3840" ^ 0) == (7384,1000)?(932,"N"):"-"]],Chile:[[2016,"2018" >> 64,"-","May",I1R,[3,0,0,"u"],0,67.95 !== "603.57" - 0?(5312,5670) < 430.95?"f":8236 < 2974?20.66:"-":0xa9],["2016" >> 64,2018,(292,+"871") !== (410.92,179.64)?"-":"S","Aug","Sun>=9",[4,0,0,"u"],+"60",6684 != "945" * 1?(425,98) !== (1419,2400)?"3943" - 0 == 4538?"s":"-":"k":(259.35,0x19da)],[2019,"max","8939" >> 0 < 8310?0x175d:"-",A8f,"Sun>=2",[3,0,+"0","u"],0,+"344.38" === 478.13?8.36e+3:"-"],[2019,D4e,"-","Sep","Sun>=2",[4,0,0,("7666" - 0,825.06) >= +"5362"?("O",+"0x1dd8"):"u"],60,"-"]],CO:[],Para:[[2010,"max",8569 >= +"356.95"?"-":+"4.44e+3","Oct","Sun>=1",["0" ^ 0,0,"0" * 1,null],60,(9130,2808) >= (4882,530.23)?"-":(5500,"9984" << 64) > 4880?2430 != ("942.54" * 1,976.68)?+"0x13c5":0xbef:4.47e+3],[2013,"max",5627 < (7184,1100)?0x921:(4884,2053) < (428.53,+"2982")?"-":(!!0,!![]),q0S,"Sun>=22",[0,0,0,null],0,311.42 != (97,"6550" - 0)?"-":+"7740" < (8707,86.37)?(622.41,!!({})):(2240,8222) === 602.08?(748.31,!""):("k",!"")]],Uruguay:[]}});};q2=p4k=>{var W76,u5p;W76=typeof _CIQ !== "undefined"?_CIQ:p4k.CIQ;W76.ChartEngine.prototype.touchSingleClick=function(X$G,U43,J93){i6UVR.W3G();var O9d,t4k;O9d=this;t4k=arguments;return function(){(function(){var B71,v4E,S2z,x0F,D$a;if(!this.cancelTouchSingleClick){if(this.runPrepend("touchSingleClick",t4k)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(U43 < this.left || U43 > this.right || J93 < this.top || J93 > this.bottom){return;}B71=this.backOutY(W76.ChartEngine.crosshairY);v4E=this.backOutX(W76.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(B71);S2z=this.currentVectorParameters.vectorType;if(!W76.Drawing || !S2z || !W76.Drawing[S2z] || !new W76.Drawing[S2z]().dragToDraw){if(!this.drawingClick(this.currentPanel,v4E,B71)){f1u(this,U43,J93);}if(!this.currentVectorParameters.vectorType){x0F="t";x0F+="a";x0F+="p";D$a=this.activeMarker && this.activeMarker.click({cx:v4E,cy:B71,panel:this.currentPanel});if(!D$a){this.dispatch(x0F,{stx:this,panel:this.currentPanel,x:v4E,y:B71});}}}}this.runAppend("touchSingleClick",t4k);}).apply(O9d,t4k);};};W76.ChartEngine.prototype.touchDoubleClick=function(l_C,u2k,L9X){var R9N,C_N;R9N="do";R9N+="ubleTap";if(this.runPrepend("touchDoubleClick",arguments)){return;}if(this.editingAnnotation){return;}if(W76.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}f1u(this,u2k,L9X);C_N=this.activeMarker && this.activeMarker.doubleClick({cx:u2k,cy:L9X,panel:this.currentPanel});if(!C_N){this.dispatch(R9N,{stx:this,finger:l_C,x:u2k,y:L9X});}this.runAppend("touchDoubleClick",arguments);};W76.ChartEngine.prototype.startProxy=function(K1O){var D7j;D7j="tou";D7j+="ch";this.touchPointerType=K1O.pointerType;i6UVR.W3G();if(this.touchPointerType != D7j){this.mouseMode=!"";return;}this.mouseMode=![];this.touches[this.touches.length]={pointerId:K1O.pointerId,pageX:K1O.clientX,pageY:K1O.clientY,clientX:K1O.clientX,clientY:K1O.clientY};this.changedTouches=[{pointerId:K1O.pointerId,pageX:K1O.clientX,pageY:K1O.clientY,clientX:K1O.clientX,clientY:K1O.clientY}];if(this.touches.length == +"1"){this.gesturePointerId=K1O.pointerId;}this.touchstart(K1O);};W76.ChartEngine.prototype.moveProxy=function(g9R){var c36;c36="to";c36+="u";c36+="ch";if(g9R.pointerType && g9R.pointerType != c36){this.mouseMode=!![];return;}this.mouseMode=!({});this.touchmove(g9R);};function f1u(H6k,j4V,e5T){var G_x;if(!H6k.layout.crosshair){W76.ChartEngine.crosshairY=0;W76.ChartEngine.crosshairX=0;H6k.cx=H6k.backOutX(0);H6k.cy=H6k.backOutY(0);H6k.findHighlights(null,!![]);W76.ChartEngine.crosshairY=e5T;W76.ChartEngine.crosshairX=j4V;G_x=H6k.container.getBoundingClientRect();H6k.top=G_x.top;H6k.left=G_x.left;H6k.right=H6k.left + H6k.width;H6k.bottom=H6k.top + H6k.height;H6k.cx=H6k.backOutX(j4V);H6k.cy=H6k.backOutY(e5T);if(H6k.currentPanel && H6k.currentPanel.chart.dataSet){H6k.crosshairTick=H6k.tickFromPixel(H6k.cx,H6k.currentPanel.chart);H6k.crosshairValue=H6k.adjustIfNecessary(H6k.currentPanel,H6k.crosshairTick,H6k.valueFromPixel(H6k.cy,H6k.currentPanel));}H6k.headsUpHR();}H6k.findHighlights(!![]);i6UVR.W5N();H6k.draw();}W76.ChartEngine.prototype.endProxy=function(H1n){i6UVR.W3G();var L8z;if(this.touchPointerType != "touch"){this.mouseMode=!0;return;}this.mouseMode=![];L8z=this.touches.length;for(var F3h=0;F3h < this.touches.length;F3h++){if(this.touches[F3h].pointerId == H1n.pointerId){this.touches.splice(F3h,1);break;}}if(F3h == L8z){this.touches=[];this.grabbingScreen=![];this.touching=!"1";return;}this.changedTouches=[{pointerId:H1n.pointerId,pageX:H1n.clientX,pageY:H1n.clientY,clientX:H1n.clientX,clientY:H1n.clientY}];this.touchend(H1n);};W76.ChartEngine.prototype.msMouseMoveProxy=function(k2M){i6UVR.W3G();if(this.touches.length || !this.mouseMode){return;}this.mousemove(k2M);};W76.ChartEngine.prototype.msMouseDownProxy=function(K16){if(!this.mouseMode){return;}this.mousedown(K16);};W76.ChartEngine.prototype.msMouseUpProxy=function(e8O){if(!this.mouseMode){return;}this.mouseup(e8O);};W76.ChartEngine.prototype.iosMouseMoveProxy=function(X8v){if(this.touching){return;}this.mousemove(X8v);};W76.ChartEngine.prototype.iosMouseDownProxy=function(Q32){i6UVR.W5N();if(this.touching){this.mouseMode=!"1";return;}this.mouseMode=!!({});this.mousedown(Q32);};W76.ChartEngine.prototype.iosMouseUpProxy=function(I4j){if(this.touching){return;}i6UVR.W5N();this.mouseup(I4j);};W76.ChartEngine.prototype.touchmove=function(r2w){var S67=i6UVR;var A$G,N$X,h4f,e8k,u43,R31,e6I,H_5,h14,z5D,V91,R1U,b1u,W7_,b4Q,a7U,S9H,M1j,p3P,Y_A,w9Y,c4_,B0s,X0T,y8s,R3Y,w_8,y42,p29,d_t,u4N,s3p,x71,W34,E$i,n_I,t3h,g_u,U9P,Z_5,J6v;A$G="p";A$G+="e";A$G+="n";if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(W76.ChartEngine.ignoreTouch === !!({})){return;}N$X=[];S67.W5N();if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(r2w && r2w.preventDefault && r2w.cancelable && this.captureTouchEvents){r2w.preventDefault();}if(r2w){r2w.stopPropagation();}}h4f=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=h4f;if(this.clicks.e1MS - this.clicks.s1MS < 25){return;}}else {this.clicks.e2MS=h4f;if(this.clicks.e2MS - this.clicks.s2MS < +"25"){return;}}if(!r2w.pointerType){r2w.pointerType=this.touchPointerType;}if(W76.isSurface){if(this.mouseMode){return;}if(!r2w.pointerId){r2w.pointerId=this.gesturePointerId;}for(var i1u=+"0";i1u < this.touches.length;i1u++){if(this.touches[i1u].pointerId == r2w.pointerId){e8k=Math.abs(this.touches[i1u].pageX - r2w.clientX);u43=Math.abs(this.touches[i1u].pageY - r2w.clientY);S67.s$9(41);R31=Math.sqrt(S67.V9a(u43,e8k,u43,e8k));if(!R31){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < ("50" ^ 0)){return;}if(this.touches[i1u].pageX == r2w.clientX && this.touches[i1u].pageY == r2w.clientY){return;}this.touches[i1u].pageX=this.touches[i1u].clientX=r2w.clientX;this.touches[i1u].pageY=this.touches[i1u].clientY=r2w.clientY;break;}}if(i1u === +"0"){this.movedPrimary=!!({});}else {this.movedSecondary=!!({});}if(i1u == this.touches.length){return;}this.changedTouches=[{pointerId:r2w.pointerId,pageX:r2w.clientX,pageY:r2w.clientY,clientX:r2w.clientX,clientY:r2w.clientY}];N$X=this.touches.length?this.touches:this.changedTouches;}else {N$X=r2w.touches;this.changedTouches=r2w.changedTouches;}if(N$X.length == 1){if(Math.pow(this.clicks.x - N$X[0].clientX,+"2") + Math.pow(this.clicks.y - N$X[0].clientY,+"2") <= 16){return;}}e6I=this.crosshairXOffset;H_5=this.crosshairYOffset;h14=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";z5D=!this.layout.crosshair && !h14 && !this.touchNoPan;if(r2w.pointerType == A$G || z5D || this.activeDrawing && this.activeDrawing.name == "freeform"){S67.s$9(29);e6I=H_5=S67.v$j("0",64);}if(this.runPrepend("touchmove",arguments)){return;}if(W76.ChartEngine.resizingPanel){S67.O_b(1);b1u=N$X[S67.V9a(0,"0")];V91=b1u.clientX;R1U=b1u.clientY;S67.s$9(0);this.mousemoveinner(S67.v$j(V91,e6I),S67.V9a(R1U,H_5));return;}if(this.moveB != -1){this.touchMoveTime=new Date();}this.moveA=this.moveB;W7_=-9927941;b4Q=-2105591087;a7U=2;for(var B6J=+"1";S67.m6F(B6J.toString(),B6J.toString().length,+"54783") !== W7_;B6J++){this.moveB=N$X["0" | 0].pageX;a7U+=2;}if(S67.m6F(a7U.toString(),a7U.toString().length,95998) !== b4Q){this.moveB=N$X[9].pageX;}if(N$X.length == 1 && !this.twoFingerStart){M1j=N$X[0];V91=M1j.clientX;R1U=M1j.clientY;this.pinchingScreen=0;S67.O_b(0);this.mousemoveinner(S67.V9a(V91,e6I),S67.v$j(R1U,H_5));p3P=this.whichPanel(R1U);Y_A=this.xAxisAsFooter === !0?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=R1U <= this.top + Y_A && R1U >= Y_A - this.xaxisHeight + this.top && this.insideChart;if(!p3P){this.overYAxis=!({});}else {this.overYAxis=(V91 >= p3P.right || V91 <= p3P.left) && this.insideChart;}}else if(N$X.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}w9Y=N$X[0];c4_=w9Y.clientX;B0s=w9Y.clientY;X0T=N$X[1];y8s=X0T.clientX;R3Y=X0T.clientY;S67.O_b(140);S9H=Math.sqrt(S67.V9a(y8s,B0s,c4_,B0s,y8s,c4_,R3Y,R3Y));S67.O_b(22);var N8v=S67.V9a(19,287,0,15);this.pinchingCenter=(Math.min(c4_,y8s) - Math.max(c4_,y8s)) / N8v;w_8=Math.round(this.gestureStartDistance - S9H);if(z5D){this.pinchingScreen=5;}this.clearPixelCache();if(this.pinchingScreen < 2){if(W76.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(c4_ < this.pt.x1 && y8s < this.pt.x2 || c4_ > this.pt.x1 && y8s > this.pt.x2 || B0s < this.pt.y1 && R3Y < this.pt.y2 || B0s > this.pt.y1 && R3Y > this.pt.y2){S67.s$9(1);this.pinchingScreen=S67.V9a(0,"0");}else {this.pinchingScreen++;if(this.pinchingScreen < 2){return;}}}this.pt={x1:c4_,x2:y8s,y1:B0s,y2:R3Y};if(this.pinchingScreen === 0){this.grabMode="pan";S67.s$9(0);this.mousemoveinner(S67.V9a(c4_,e6I),S67.V9a(B0s,H_5));this.gestureStartDistance=S9H;}else {y42=Math.asin((Math.max(R3Y,B0s) - Math.min(R3Y,B0s)) / S9H);if(Math.abs(w_8) < +"12" && !z5D){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {this.moveCount=0;}if(y42 < 1 || !this.goneVertical && y42 < "1.37" * 1){if(!this.currentPanel){return;}p29=this.currentPanel.chart;this.goneVertical=!({});S9H=this.pt.x2 - this.pt.x1;d_t=this.grabStartValues.t2 - this.grabStartValues.t1;S67.s$9(23);var Q8w=S67.v$j(13,11);u4N=this.grabStartValues.t1 + d_t / Q8w;S67.O_b(9);s3p=S67.v$j(S9H,d_t);if(p29.allowScrollFuture === !({}) && p29.allowScrollPast === !({})){s3p=Math.max(s3p,p29.width / p29.dataSet.length);}x71=this.layout.candleWidth;this.setCandleWidth(s3p,p29);if(p29.maxTicks < this.minimumZoomTicks){this.setCandleWidth(x71,p29);return;}this.micropixels=0;W34=this.pixelFromTick(Math.round(u4N),p29);E$i=this.pt.x1 - this.left + Math.round(S9H / +"2");S67.s$9(1);n_I=S67.V9a(E$i,W34);S67.s$9(9);t3h=S67.v$j(n_I,s3p);g_u=Math.round(t3h);p29.scroll-=g_u;S67.s$9(1);this.microscroll=S67.v$j(t3h,g_u);this.micropixels=s3p * this.microscroll;this.draw();}else {U9P=this.grabStartYAxis;this.goneVertical=!"";if(U9P){U9P.zoom=this.grabStartZoom + (this.gestureStartDistance - S9H);if(this.grabStartZoom < U9P.height){if(U9P.zoom >= U9P.height){S67.s$9(141);var J3L=S67.V9a(1,16,8,8,16);U9P.zoom=U9P.height - J3L;}}else {if(U9P.zoom <= U9P.height){S67.O_b(26);var F1Q=S67.v$j(4,14,3,5);U9P.zoom=U9P.height + F1Q;}}this.draw();;}}this.updateChartAccessories();}}else if(N$X.length == +"3" && W76.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}Z_5=N$X[0];J6v=Z_5.clientX;S9H=this.grabStartX - J6v;S67.s$9(1);var Y5J=S67.V9a(16,26);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(S9H / Y5J);if(this.grabEndPeriodicity < 1){this.grabEndPeriodicity=1;}}this.runAppend("touchmove",arguments);};W76.ChartEngine.prototype.touchstart=function(U08){var M2k=i6UVR;var Z_v,H0J,H6h,n5z,O0u,c6N,D53,p3Q,S9C,n2s,K_j,q43,P_R,c$E,M9X,c8q,R$P,V93,N6N,A6Y,r8I,n0Z,H_x,F7z,z_q,U_H,G5q;Z_v="p";Z_v+="e";Z_v+="n";if(W76.ChartEngine.ignoreTouch){return;}if(W76.isSurface){this.movedPrimary=!!0;this.movedSecondary=![];}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!!({});this.touches=U08.touches;this.changedTouches=U08.changedTouches;}if(W76.ChartEngine.resizingPanel){return;}H0J=this.crosshairXOffset;H6h=this.crosshairYOffset;if(this.touchPointerType == Z_v){H0J=H6h=+"0";}if(this.runPrepend("touchstart",arguments)){return;}if(this.manageTouchAndMouse && U08 && U08.preventDefault && U08.cancelable && this.captureTouchEvents){U08.preventDefault();}this.hasDragged=![];this.doubleFingerMoves=0;M2k.s$9(42);this.moveCount=M2k.v$j("0",0);this.twoFingerStart=![];if(this.touches.length == +"1" || this.touches.length == ("2" | 0)){this.touchMoveTime=Date.now();S9C=this.touches[0];c6N=S9C.clientX;D53=S9C.clientY;this.moveA=c6N;this.moveB=-1;if(this.openDialog === ""){this.registerPointerEvent({x:c6N,y:D53,time:this.touchMoveTime},"down");if(this.changedTouches.length == 1 && !this.isDoubleClick(!!1)){W76.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-1,e2MS:-1,x:this.changedTouches[0].pageX,y:this.changedTouches[0].pageY});}}n2s=this.container.getBoundingClientRect();this.top=n2s.top;this.left=n2s.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == 1){K_j=this.backOutY(D53);this.currentPanel=this.whichPanel(K_j);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}p3Q=this.currentPanel;if(c6N >= this.left && c6N <= this.right && D53 >= this.top && D53 <= this.bottom){this.insideChart=!!1;q43=this.xAxisAsFooter === !!({})?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=D53 <= this.top + q43 && D53 >= this.top + q43 - this.xaxisHeight;this.overYAxis=c6N >= this.left + p3Q.right || c6N <= this.left + p3Q.left;P_R=-1;this.cy=this.backOutY(D53);this.cx=this.backOutX(c6N);this.crosshairTick=this.tickFromPixel(this.cx,p3Q.chart);this.crosshairValue=this.adjustIfNecessary(p3Q,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var H9N=0;H9N < this.drawingObjects.length;H9N++){c$E=this.drawingObjects[H9N];if(c$E.highlighted){if(P_R < 0){P_R=H9N;}M9X=c$E.highlighted;this.findHighlights(!!({}));if(H9N == P_R && c$E.highlighted && !c$E.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(c$E);;}else {this.findHighlights(![],!!({}));;}return;}this.anyHighlighted=!!({});c$E.highlighted=M9X;}}}else {this.insideChart=![];}c8q=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !c8q && this.insideChart && !this.touchNoPan){H0J=H6h=0;var {baselineHelper:D08}=this;if(D08.size){if(this.findBaselineHandle(U08,!![])){return;}}if(this.controls.anchorHandles){R$P=Object.values(this.controls.anchorHandles);V93=!!0;for(var a1c=0;a1c < R$P.length;a1c++){N6N=R$P[a1c];var {handle:l5j, sd:V1H}=N6N;A6Y=this.resolveX(this.cx);r8I=this.resolveY(this.cy);var {left:S5f, top:S$q, right:V3n, bottom:i8M}=l5j.getBoundingClientRect();S5f-=10;V3n+=10;if(W76.boxIntersects(S5f,S$q,V3n,i8M,A6Y,r8I,A6Y,r8I)){N6N.highlighted=!"";this.repositioningAnchorSelector={sd:V1H};l5j.classList.add("stx-grab");V93=!!({});}if(N6N.highlighted === !!"1"){N6N.highlighted=!({});}}if(V93){return;}}for(n5z in this.panels){O0u=this.panels[n5z];if(O0u.highlighted){this.grabHandle(O0u);return;}}this.grabbingScreen=!![];if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}p3Q.chart.spanLock=![];this.yToleranceBroken=!({});M2k.s$9(0);this.grabStartX=M2k.V9a(c6N,H0J);M2k.s$9(0);this.grabStartY=M2k.V9a(D53,H6h);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=p3Q.chart.scroll;this.grabStartScrollY=p3Q.yAxis.scroll;this.grabStartPanel=this.currentPanel;if(this.swipeStart){this.swipeStart(p3Q.chart);}this.grabStartYAxis=this.whichYAxis(p3Q,this.backOutX(c6N));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(C3m){return function(){M2k.W3G();C3m.grabbingHand();};})(this),100);}else {this.grabbingScreen=!1;if(this.insideChart && p3Q.subholder === U08.target){n0Z=this.currentVectorParameters.vectorType;if(W76.Drawing && n0Z && W76.Drawing[n0Z] && new W76.Drawing[n0Z]().dragToDraw){this.userPointerDown=!"";W76.ChartEngine.crosshairX=c6N;W76.ChartEngine.crosshairY=D53;if(p3Q && p3Q.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(W76.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(p3Q,this.crosshairTick,this.valueFromPixel(this.backOutY(W76.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(p3Q,this.backOutX(c6N),this.backOutY(D53));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !c8q && p3Q.subholder === U08.target){M2k.s$9(0);this.mousemoveinner(M2k.v$j(c6N,H0J),M2k.V9a(D53,H6h));}}if(this.touches.length == 2){this.cancelLongHold=!!({});this.swipe.end=!![];if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}H_x=this.touches[1];F7z=H_x.clientX;z_q=H_x.clientY;for(n5z in this.panels){O0u=this.panels[n5z];if(O0u.highlighted){this.grabHandle(O0u);return;}}p3Q=this.currentPanel;M2k.s$9(140);this.gestureStartDistance=Math.sqrt(M2k.v$j(F7z,D53,c6N,D53,F7z,c6N,z_q,z_q));this.pt={x1:c6N,x2:F7z,y1:D53,y2:z_q};this.grabbingScreen=!!1;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}p3Q.chart.spanLock=!({});M2k.s$9(0);this.grabStartX=M2k.v$j(c6N,H0J);M2k.s$9(0);this.grabStartY=M2k.V9a(D53,H6h);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=p3Q.chart.scroll;this.grabStartScrollY=p3Q.yAxis.scroll;this.grabStartPanel=p3Q;if(this.swipeStart){this.swipeStart(p3Q.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(p3Q,this.backOutX((c6N + F7z) / 2)) || p3Q.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:"0" | 0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,p3Q),y2:this.valueFromPixel(this.pt.y2 - this.top,p3Q),t1:this.tickFromPixel(this.pt.x1 - this.left,p3Q.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,p3Q.chart)};this.twoFingerStart=!!({});setTimeout((function(h3A){return function(){M2k.W3G();h3A.grabbingHand();};})(this),100);}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}U_H=this.touches[0];G5q=U_H.clientX;this.grabStartX=G5q;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=![];if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}this.runAppend("touchstart",arguments);};W76.ChartEngine.prototype.touchend=function(J3j){var M6a=i6UVR;var V$w,S$M,v1G,a0X,W_e,u1q,v7d,r28,e5_,C7g,t88,g1V,u0$,d39,j5e;V$w="t";V$w+="ouchend";if(W76.ChartEngine.ignoreTouch){return;}this.swipe.end=!0;if(W76.isSurface){}else {this.touches=J3j.touches;S$M=848413121;v1G=1614484767;a0X=2;for(var n8_=1;M6a.m6F(n8_.toString(),n8_.toString().length,13841) !== S$M;n8_++){this.changedTouches=J3j.changedTouches;a0X+=2;}if(M6a.l5h(a0X.toString(),a0X.toString().length,69418) !== v1G){this.changedTouches=J3j.changedTouches;}}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!!({});if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!({});}}}if(this.touches.length){this.grabStartX=-1;this.grabStartY=-1;}W_e=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(Y0O){return function(){M6a.W5N();Y0O.touching=!"1";};})(this),500);if(W76.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=!!0;this.grabbingScreen=!!"";this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(W76.ChartEngine.resizingPanel){return;}}M6a.O_b(1);var N6v=M6a.v$j(13,14);u1q=this.touches.length + N6v;if(this.changedTouches.length == 1){if(this.repositioningDrawing){this.changeOccurred("vector");W76.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!![]);}return;}if(this.repositioningBaseline){v7d="mo";v7d+="unta";v7d+="in";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove("stx-grab");r28=this.mainSeriesRenderer || ({});if(r28.params && r28.params.baseline && r28.params.type != v7d){;}this.draw();return;}if(this.repositioningAnchorSelector){W76.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:q_X})=>{M6a.W3G();return q_X.classList.remove("stx-grab");});return;}e5_=Date.now();if(this.openDialog === "" && J3j.changedTouches.length){C7g=J3j.changedTouches[0];this.registerPointerEvent({x:C7g.clientX,y:C7g.clientY,time:e5_},"up");}if(this.clicks.s2MS == -1){this.clicks.e1MS=e5_;t88=this.currentVectorParameters.vectorType;if(!W76.Drawing || !t88 || !W76.Drawing[t88] || !new W76.Drawing[t88]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < 750 && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(u1q,this.clicks.x,this.clicks.y),this.doubleClickTime + +"1");;}else {this.clicks={s1MS:-1,e1MS:-("1" << 32),s2MS:-1,e2MS:-+"1"};}}this.userPointerDown=!!0;g1V=this.backOutY(this.changedTouches[0].pageY) + this.crosshairYOffset;u0$=this.backOutX(this.changedTouches[+"0"].pageX) + this.crosshairXOffset;d39=this.currentPanel;j5e=d39 && d39.subholder === J3j.target;if(W76.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && j5e){this.drawingClick(d39,u0$,g1V);return;}if(this.isDoubleClick(!!1) && (j5e || this.overYAxis || this.overXAxis)){this.touchDoubleClick(u1q,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=e5_;this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -("1" ^ 0) && !isNaN(this.grabEndPeriodicity)){if(W76.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}this.grabEndPeriodicity=-1;}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && u1q == 1 || this.twoFingerStart && !W_e && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(!"1",!"");}if(W_e && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!1);}}if(!this.touches.length){this.twoFingerStart=!({});}this.runAppend(V$w,arguments);};u5p=![];W76.ChartEngine.prototype.mousemoveinner=W76.ChartEngine.prototype.mousemoveinner || (function(E1C,K9u){var e5l;e5l="touch feature requires acti";e5l+="vating movement ";i6UVR.W5N();e5l+="feature.";if(!u5p){console.error(e5l);}u5p=!![];});};K_=k2F=>{var p9R;p9R=typeof _CIQ !== "undefined"?_CIQ:k2F.CIQ;p9R.Visualization=p9R.Visualization || (function(y7R){var n7$;if(!y7R){n7$="CIQ.V";n7$+="isualization() miss";n7$+="ing attributes argument.";console.log(n7$);return;}if(typeof y7R.renderFunction !== "function"){console.log("CIQ.Visualization() missing renderFunction property in attributes.");return;}this.container=null;this.attributes=y7R;this.data=null;this.object=null;});p9R.extend(p9R.Visualization.prototype,{destroy:function(r_m){var V$V;V$V=this.container;p9R.resizeObserver(V$V,null,V$V.resizeHandle);if(V$V.autoGenerated){V$V.remove();delete this.container;}else {V$V.innerHTML="";}if(r_m){return;}this.attributes=null;this.container=null;this.data=null;this.object=null;this.destroy=this.draw=this.setAttributes=function(){};this.updateData=function(){return undefined;};},draw:function(R9d){var F3U=i6UVR;var X9w,Q4l,V9m,n2m,x$c,U6E,E_Y,l56,A7Y,e_M,n5l,y4x;if(!this.data || typeof this.data !== "object"){console.log("CIQ.Visualization.draw() missing data.");X9w=1535042138;Q4l=+"1684975138";F3U.O_b(39);V9m=F3U.V9a("2",0);for(var z5A=1;F3U.m6F(z5A.toString(),z5A.toString().length,"73626" >> 0) !== X9w;z5A++){return;}if(F3U.l5h(V9m.toString(),V9m.toString().length,"45784" << 0) !== Q4l){return;}return;}n2m=this.attributes;x$c=n2m.container || this.container;F3U.O_b(2);U6E=F3U.v$j(1,"1152923535");E_Y=-651944491;l56=2;for(var h27=1;F3U.l5h(h27.toString(),h27.toString().length,"48714" ^ 0) !== U6E;h27++){if(~x$c !== ""){x$c=document.querySelector(x$c);}l56+=2;}if(F3U.l5h(l56.toString(),l56.toString().length,53662) !== E_Y){if(+x$c != ""){x$c=document.querySelector(x$c);}}if(typeof x$c === "string"){x$c=document.querySelector(x$c);}if(!x$c){A7Y="d";A7Y+="iv";x$c=document.createElement(A7Y);x$c.style.height=x$c.style.width="300px";document.body.appendChild(x$c);x$c.autoGenerated=!"";}if(n2m.stx){e_M=n2m.stx.chart.canvasShim;if(n2m.useCanvasShim && e_M && e_M !== x$c && e_M !== x$c.parentNode){if(!x$c.autoGenerated){x$c=x$c.cloneNode();x$c.id="";x$c.autoGenerated=!!1;}e_M.appendChild(x$c);}}if(this.container && this.container !== x$c){this.destroy(!![]);}if(!x$c.resizeHandle){n5l=function(q8p){F3U.W5N();return function(){if(q8p.data && q8p.container && document.body.contains(q8p.container)){q8p.draw.call(q8p,!!"1");}};};x$c.resizeHandle=p9R.resizeObserver(x$c,n5l(this),null,100);}this.container=x$c;this.attributes=n2m;function z72(m1r,U6J){F3U.W5N();return m1r.index < U6J.index?-("1" | 1):m1r.index > U6J.index?1:0;}n2m=p9R.ensureDefaults({container:this.container},this.attributes);y4x=n2m.renderFunction(Object.values(this.data).sort(z72),n2m);F3U.W3G();if(y4x){if(n2m.id){y4x.id=n2m.id;}if(R9d || n2m.forceReplace){this.container.innerHTML="";this.container.appendChild(y4x);}}this.attributes=n2m;this.object=y4x;},setAttributes:function(P6a,X_a){var C3L,F2k,M3e,I55,r1l,O_w,u7i;C3L="o";C3L+="bje";C3L+="ct";F2k="i";F2k+="d";M3e="useCanvasShi";M3e+="m";I55="s";I55+="t";I55+="x";r1l=["renderFunction","container",I55,M3e,F2k,"forceReplace"];O_w=![];u7i=P6a;if(typeof P6a == "string"){u7i={};u7i[P6a]=X_a;}if(typeof u7i == C3L){for(var l7v in u7i){if(this.attributes[l7v] !== u7i[l7v] && r1l.indexOf(l7v) !== -1){O_w=!!({});}this.attributes[l7v]=u7i[l7v];}}this.draw(O_w);},updateData:function(y04,f$x){var i8q,Y0Z,i6x,D1o,Q97,Y5R,n_L;i6x=Array.isArray(y04)?y04.reduce(function(J$I,a_f){i6UVR.W3G();J$I[a_f.name]=a_f;return J$I;},{}):p9R.shallowClone(y04);for(i8q in i6x){D1o="[objec";D1o+="t";D1o+=" Object";D1o+="]";Y0Z=i6x[i8q];if(Object.prototype.toString.call(Y0Z) !== D1o){i6x[i8q]={value:Y0Z};}if(!i6x[i8q].name){i6x[i8q].name=i8q;}if(!i6x[i8q].value){i6x[i8q].value=0;}}Q97=1047076763;Y5R=1195307784;n_L=2;for(var M$X=1;i6UVR.l5h(M$X.toString(),M$X.toString().length,"26416" >> 32) !== Q97;M$X++){if(-f$x){f$x="";}n_L+=2;}if(i6UVR.m6F(n_L.toString(),n_L.toString().length,71509) !== Y5R){if(!f$x){f$x="replace";}}switch(f$x.toLowerCase()){case "delete":for(i8q in i6x){delete this.data[i8q];}break;case "replace":this.data={};case "update":case "add":for(i8q in i6x){if(!this.data[i8q]){this.data[i8q]={name:i8q};}Y0Z=i6x[i8q].value;if(Object.prototype.toString.call(Y0Z) == "[object Number]"){if(!this.data[i8q].value || f$x == "update"){this.data[i8q].value=0;}this.data[i8q].value+=Y0Z;}else {this.data[i8q].value=Y0Z;}for(var s9h in i6x[i8q]){if(s9h !== "value"){this.data[i8q][s9h]=i6x[i8q][s9h];}}}break;default:console.log("Invalid or missing action. Valid values are 'add', 'delete', 'replace', or 'update'.");}i6UVR.W5N();this.draw(this.attributes.forceReplace);return this;}});p9R.ChartEngine.prototype.embedVisualization=function(c9S){if(!c9S){c9S={};}c9S.stx=this;c9S.useCanvasShim=!"";c9S.translator=function(p5G){return c9S.stx.translateIf(p5G);};return new p9R.Visualization(c9S);};};D5=K0J=>{var g7f,m6$;g7f=typeof _CIQ !== "undefined"?_CIQ:K0J.CIQ;if(!g7f.Studies){m6$="medianPrice feature requires first activating stu";m6$+="d";m6$+="ies feature.";console.error(m6$);}else {g7f.Studies.calculateTypicalPrice=function(n38,C3E){var P2K=i6UVR;var z3H,C_x,K7T,X11,r2M,B5B;z3H="h";z3H+="l/2";C_x=C3E.chart.scrubbed;K7T=C3E.days;if(C_x.length < K7T + 1){if(!C3E.overlay){C3E.error=!"";}return;}X11=C3E.name;for(var h0h in C3E.outputs){P2K.O_b(35);X11=P2K.v$j(" ",X11,h0h);}r2M="hlc/3";if(C3E.type == "Med Price"){r2M=z3H;}else if(C3E.type == "Weighted Close"){r2M="hlcc/4";}B5B=0;if(C3E.startFrom <= K7T){C3E.startFrom=0;}for(var G7Q=C3E.startFrom;G7Q < C_x.length;G7Q++){if(G7Q && C_x[G7Q - 1][X11]){P2K.s$9(131);var a8c=P2K.V9a(32,24,5,13);B5B=C_x[G7Q - ("1" >> a8c)][X11] * K7T;}B5B+=C_x[G7Q][r2M];if(G7Q >= K7T){P2K.O_b(1);B5B-=C_x[P2K.V9a(K7T,G7Q)][r2M];P2K.s$9(9);C_x[G7Q][X11]=P2K.v$j(B5B,K7T);}}};g7f.Studies.studyLibrary=g7f.extend(g7f.Studies.studyLibrary,{"Med Price":{name:"Median Price",calculateFN:g7f.Studies.calculateTypicalPrice,inputs:{Period:14}}});}};S8=e32=>{var g_m;g_m=typeof _CIQ !== "undefined"?_CIQ:e32.CIQ;if(!g_m.Studies){console.error("momentum feature requires first activating studies feature.");}else {g_m.Studies.calculateRateOfChange=function(Y0Q,b6P){var S4u=i6UVR;var z3$,d1j,f7M,N2i,x2C,R13,u5P,N7G;z3$=b6P.chart.scrubbed;if(z3$.length < b6P.days + 1){b6P.error=!!"1";return;}S4u.W5N();d1j=b6P.inputs.Field;if(!d1j || d1j == "field"){d1j="Close";}if(b6P.parameters.isVolume){d1j="Volume";}f7M=b6P.name;for(var N7m in b6P.outputs){S4u.s$9(35);f7M=S4u.V9a(" ",f7M,N7m);}N2i=b6P.inputs["Center Line"];if(!N2i){N2i=0;}else {N2i=parseInt(N2i,10);}for(var I32=Math.max(b6P.startFrom,b6P.days);I32 < z3$.length;I32++){x2C="obje";x2C+="c";x2C+="t";R13=z3$[I32][d1j];if(R13 && typeof R13 == x2C){R13=R13[b6P.subField];}u5P=z3$[I32 - b6P.days][d1j];if(u5P && typeof u5P == "object"){u5P=u5P[b6P.subField];}if(b6P.type == "Momentum"){S4u.s$9(33);z3$[I32][f7M]=S4u.V9a(R13,N2i,u5P);}else {N7G=u5P;if(N7G){S4u.O_b(142);z3$[I32][f7M]=S4u.V9a(N2i,R13,N7G,100,1);}}}};g_m.Studies.studyLibrary=g_m.extend(g_m.Studies.studyLibrary,{"Price ROC":{name:"Price Rate of Change",calculateFN:g_m.Studies.calculateRateOfChange,inputs:{Period:14,Field:"field"}},Momentum:{name:"Momentum Indicator",calculateFN:g_m.Studies.calculateRateOfChange,inputs:{Period:+"14"},centerline:0}});}};V4=a28=>{var E0u;E0u=typeof _CIQ !== "undefined"?_CIQ:a28.CIQ;if(!E0u.Studies){console.error("priceRelative feature requires first activating studies feature.");}else {E0u.Studies.initPriceRelative=function(Z7Q,l6V,L_4,O_y,E73,G15){var U6X,D4C;U6X=E0u.Studies.initializeFN(Z7Q,l6V,L_4,O_y,E73,G15);D4C=[U6X.inputs["Comparison Symbol"].toUpperCase()];E0u.Studies.fetchAdditionalInstruments(Z7Q,U6X,D4C);i6UVR.W3G();return U6X;};E0u.Studies.calculatePriceRelative=function(m$v,v6S){var w65,n3x,O7i,z_Z,R6w,a6J,v41;w65="]";w65+="/";w65+="[";n3x=v6S.chart.scrubbed;O7i=v6S.inputs["Comparison Symbol"].toUpperCase();if(!O7i){O7i=v6S.study.inputs["Comparison Symbol"];}z_Z={};R6w=m$v.chart.symbol || "";R6w=R6w.replace(/[=+\-*\\%]/g,"");z_Z[R6w]=n3x.slice(v6S.startFrom);if(!z_Z[R6w].length){return;}if(R6w != O7i){z_Z[O7i]=null;}i6UVR.s$9(75);a6J=E0u.computeEquationChart(i6UVR.v$j(O7i,R6w,"[",531.76 != 922.66?+"6924" == 560.73?(837.63,299.24) <= (6293,"2300" | 72)?4.36e+3:"a":"]":!0,w65),z_Z);v41=+"0";for(var E3p=v6S.startFrom;E3p < n3x.length && v41 < a6J.length;E3p++){while(v41 < a6J.length && n3x[E3p].DT.getTime() > a6J[v41].DT.getTime()){v41++;}if(n3x[E3p].DT.getTime() < a6J[v41].DT.getTime())continue;n3x[E3p]["Result " + v6S.name]=a6J[v41].Close;v41++;}};E0u.Studies.displayVsComparisonSymbol=function(g2p,o_V,r9i){var N29,N92,z77,e8t,I70;N29="C";N29+="o";N29+="m";N29+="parison Symbol";N92=o_V.inputs[N29].toUpperCase();if(!g2p.getSeries({symbol:N92,chart:o_V.chart}).length){g2p.displayErrorAsWatermark(o_V.panel,g2p.translateIf(o_V.study.name) + ": " + g2p.translateIf("Not Available"));return;}z77={skipTransform:g2p.panels[o_V.panel].name != o_V.chart.name,panelName:o_V.panel,band:"Result " + o_V.name,threshold:o_V.study.centerline,yAxis:o_V.getYAxis(g2p),gapDisplayStyle:!!"1"};e8t=z77.yAxis?z77.yAxis.flipped:g2p.panels[o_V.panel].yAxis.flipped;i6UVR.W5N();I70=0.3;if(!o_V.highlight && g2p.highlightedDraggable){I70*=0.3;}for(var y5N=r9i.length - ("1" | 0);y5N >= 0;y5N--){if(r9i[y5N] && r9i[y5N][N92]){E0u.Studies.displaySeriesAsLine(g2p,o_V,r9i);if(o_V.study.centerline || o_V.study.centerline === ("0" | 0)){if(o_V.outputs.Gain){E0u.preparePeakValleyFill(g2p,E0u.extend(z77,{direction:e8t?-1:1,color:E0u.Studies.determineColor(o_V.outputs.Gain),opacity:I70}));}if(o_V.outputs.Loss){E0u.preparePeakValleyFill(g2p,E0u.extend(z77,{direction:e8t?1:-1,color:E0u.Studies.determineColor(o_V.outputs.Loss),opacity:I70}));}}return;}}};E0u.Studies.fetchAdditionalInstruments=function(U9F,C7Z,x76,F4y){var G30,j4q,J0z,n9h,M17,R84,a5_;if(!U9F.quoteDriver){G30="CIQ.Studies.fetchAdditionalInstruments: No quotefee";G30+="d to fet";G30+="ch symbol";console.log(G30);return;}j4q=U9F.panels[C7Z.panel].chart;function m__(){U9F.createDataSet();U9F.draw();}C7Z.symbols=x76;for(J0z=0;J0z < x76.length;J0z++){n9h=M17=x76[J0z];if(typeof M17 == "object"){n9h=M17.symbol;}else {M17={symbol:n9h};}R84={symbol:n9h,symbolObject:M17,bucket:"study",studyName:C7Z.name,chartName:j4q.name,action:"add-study"};E0u.extend(R84,F4y);a5_=R84.loadData;if(U9F.currentlyImporting){R84.loadData=![];}if(!C7Z.series){C7Z.series={};}C7Z.series[n9h]=U9F.addSeries(null,R84,m__);C7Z.series[n9h].parameters.loadData=a5_;}};E0u.Studies.studyLibrary=E0u.extend(E0u.Studies.studyLibrary,{"P Rel":{name:"Price Relative",initializeFN:E0u.Studies.initPriceRelative,seriesFN:E0u.Studies.displayVsComparisonSymbol,calculateFN:E0u.Studies.calculatePriceRelative,centerline:0,inputs:{"Comparison Symbol":"SPY"},deferUpdate:!0}});}};U$=b4S=>{var h1g,N$E,r7P,F$x,V_J,C5f,x4Z,o9M,a5z,S0I;h1g="un";h1g+="d";h1g+="ef";h1g+="ined";N$E=typeof _CIQ !== h1g?_CIQ:b4S.CIQ;if(!N$E.Studies){r7P="vwap feature requires first activating studies ";r7P+="fea";r7P+="ture.";console.error(r7P);}else {F$x="#f";F$x+="ff69";F$x+="e";V_J="#";V_J+="85c";V_J+="99e";C5f="#e";C5f+="1e";C5f+="1";C5f+="e1";x4Z="h";x4Z+="h";x4Z+=":mm:s";x4Z+="s";o9M="#85c";o9M+="99e";a5z="#e1e";a5z+="1e1";S0I="#";S0I+="F";S0I+="F0";S0I+="000";N$E.Studies.calculateVWAP=function(A4N,Y75){var S_r=i6UVR;var Y$p,F30,w3K,b8e,p9L,M7t,F5$,G2H,Q6P,M0S,W4$,V5O,n6M,M7m,V2t,W$O,Y0B,f25,h9q,Q4k,s9b,Q0A,p$v,R_i,i6n,t8P,Y5Q,e9D,o7B;Y$p="A";Y$p+="V";Y$p+="WA";S_r.W3G();Y$p+="P";F30=Y75.type == Y$p;w3K=Y75.chart.scrubbed;if(!F30 && N$E.ChartEngine.isDailyInterval(A4N.layout.interval)){Y75.error="VWAP is Intraday Only";return;}b8e="hlc/3";if(F30){b8e=Y75.inputs.Field;if(!b8e || b8e == "field"){p9L="h";p9L+="l";p9L+="c/";p9L+="3";b8e=Y75.inputs.Field=p9L;A4N.changeOccurred("layout");}}M7t=null;F5$=0;G2H=0;Q6P=+"0";M0S=!!"";if(Y75.startFrom > 1){W4$="_";W4$+="V";W4$+=" ";F5$=w3K[Y75.startFrom - 1][W4$ + Y75.name] || 0;G2H=w3K[Y75.startFrom - 1]["_VxP " + Y75.name] || 0;Q6P=w3K[Y75.startFrom - 1]["_VxP2 " + Y75.name] || 0;}if(F30){V5O="An";V5O+="cho";V5O+="r Time";n6M="Anc";n6M+="hor D";n6M+="ate";M7m=Y75.inputs[n6M].replace(/-/g,"");if(M7m.search(/^\d{8}$/)){Y75.error="Invalid Anchor Date";return;}V2t=Y75.inputs[V5O].replace(/:/g,"");if(!V2t.search(/^\d{4,6}$/)){M7m+=V2t;}M7m=N$E.strToDateTime(M7m.replace(/\D/g,""));if(!Y75.startFrom && M7m >= w3K["0" | 0].DT){Y75.startFrom=A4N.tickFromDate(M7m,A4N.chart,null,!"");}if(Y75.inputs["Anchor Selector"]){N$E.Studies.initAnchorHandle(A4N,Y75);}else {N$E.Studies.removeAnchorHandle(A4N,Y75);}}for(var I0X=Y75.startFrom;I0X < w3K.length;I0X++){W$O="VWA";W$O+="P ";Y0B="_S";Y0B+="DVWAP ";if(!F30){if(M7t === null){M7t=N$E.Studies.getMarketOffset({stx:A4N,localQuoteDate:w3K[I0X].DT,shiftToDateBoundary:!![]});}if(w3K[I0X - 1] && w3K[I0X - 1].DT){f25=new Date(new Date(+w3K[I0X].DT).setMilliseconds(w3K[I0X].DT.getMilliseconds() + M7t));h9q=new Date(new Date(+w3K[I0X - 1].DT).setMilliseconds(w3K[I0X - 1].DT.getMilliseconds() + M7t));if(h9q.getDate() != f25.getDate() && A4N.chart.market.isMarketDate(f25)){M7t=null;F5$=G2H=Q6P=0;}}}Q4k=w3K[I0X][b8e];s9b=w3K[I0X].Volume;if(F30 && !s9b){s9b=1;}F5$+=s9b;S_r.O_b(2);G2H+=S_r.V9a(Q4k,s9b);S_r.s$9(143);Q6P+=S_r.V9a(Q4k,Q4k,s9b);if(!F30 && !F5$)continue;w3K[I0X]["_V " + Y75.name]=F5$;w3K[I0X]["_VxP " + Y75.name]=G2H;w3K[I0X]["_VxP2 " + Y75.name]=Q6P;Q0A=w3K[I0X][Y0B + Y75.name]=Math.sqrt(Math.max("0" >> 32,Q6P / F5$ - Math.pow(G2H / F5$,"2" ^ 0)));S_r.s$9(9);p$v=w3K[I0X][W$O + Y75.name]=S_r.V9a(G2H,F5$);for(var Y9y=1;Y9y <= 3;Y9y++){S_r.s$9(46);w3K[I0X]["SDVWAP" + Y9y + "+ " + Y75.name]=S_r.V9a(Y9y,p$v,Q0A);S_r.s$9(90);w3K[I0X]["SDVWAP" + Y9y + "- " + Y75.name]=S_r.v$j(Q0A,Y9y,p$v);}M0S=!"";}for(var i6X="1" ^ 0;i6X <= 3;i6X++){if(Y75.inputs["Display " + i6X + " Standard Deviation (" + i6X + "\u03C3)"]){R_i="\u03C3";R_i+=")";i6n=" Standard Devi";i6n+="ation (";t8P="+";t8P+=" ";S_r.O_b(51);Y75.outputMap["SDVWAP" + i6X + t8P + Y75.name]=S_r.V9a("\u03C3)",i6X,i6X," Standard Deviation (");S_r.s$9(51);Y75.outputMap["SDVWAP" + i6X + "- " + Y75.name]=S_r.V9a(R_i,i6X,i6X,i6n);}}if(!F30 && !M0S){S_r.O_b(29);Y5Q=S_r.V9a("1262758872",32);e9D=-1311081374;o7B=2;for(var A_Q=+"1";S_r.m6F(A_Q.toString(),A_Q.toString().length,71139) !== Y5Q;A_Q++){Y75.error="VWAP Requires Volume";o7B+=2;}if(S_r.m6F(o7B.toString(),o7B.toString().length,73285) !== e9D){Y75.error="";}}};N$E.Studies.initAnchoredVWAP=function(u9M,V8c,O5X,l47,E4f,P$f){i6UVR.W5N();var E8f,V9t;if(!O5X["Anchor Date"] && !O5X["Anchor Time"]){var {dataSegment:Z1G}=u9M.chart;for(var H3p=0;Z1G && H3p < Z1G.length;H3p++){if(Z1G[H3p]){E8f="H";E8f+="H";E8f+=":";E8f+="mm:ss";var {DT:z8m}=Z1G[H3p];O5X["Anchor Date"]=N$E.dateToStr(z8m,"YYYY-MM-dd");O5X["Anchor Time"]=N$E.dateToStr(z8m,E8f);break;}}}V9t=N$E.Studies.initializeFN(u9M,V8c,O5X,l47,E4f,P$f);return V9t;};N$E.Studies.displayVWAP=function(y_J,W2D,G14){var g5E,j2w,l0O,h8a,K7b,N9o,x0$,S5v,D56,z6t,y6m,V45,F$V;N$E.Studies.displaySeriesAsLine(y_J,W2D,G14);g5E=1321979554;j2w=1566726702;l0O=2;for(var A8J=1;i6UVR.m6F(A8J.toString(),A8J.toString().length,28827) !== g5E;A8J++){h8a=W2D.inputs["Display 1 Standard Deviation (1\u03C3)"];l0O+=2;}if(i6UVR.l5h(l0O.toString(),l0O.toString().length,+"36888") !== j2w){h8a=W2D.inputs[""];}K7b=W2D.inputs["Display 2 Standard Deviation (2\u03C3)"];N9o=W2D.inputs["Display 3 Standard Deviation (3\u03C3)"];if((h8a || K7b || N9o) && W2D.inputs.Shading){x0$="V";x0$+="WAP ";S5v=y_J.panels[W2D.panel];D56={opacity:W2D.parameters.opacity?W2D.parameters.opacity:0.2,skipTransform:S5v.name != W2D.chart.name,yAxis:W2D.getYAxis(y_J)};if(!W2D.highlight && y_J.highlightedDraggable){D56.opacity*=0.3;}z6t=x0$ + W2D.name;y6m="VWAP " + W2D.name;if(h8a){V45="SDVW";V45+="AP1";V45+="+";V45+=" ";N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP1+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP1+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP1- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP1- " + W2D.name]])},D56));z6t=V45 + W2D.name;y6m="SDVWAP1- " + W2D.name;}if(K7b){F$V="S";F$V+="DVWAP2- ";N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP2+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP2+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP2- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP2- " + W2D.name]])},D56));z6t="SDVWAP2+ " + W2D.name;y6m=F$V + W2D.name;}if(N9o){N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP3+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP3+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP3- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP3- " + W2D.name]])},D56));}}if(W2D.anchorHandle){N$E.Studies.displayAnchorHandleAndLine(y_J,W2D,G14);}};N$E.Studies.studyLibrary=N$E.extend(N$E.Studies.studyLibrary,{AVWAP:{name:"Anchored VWAP",overlay:!!({}),calculateFN:N$E.Studies.calculateVWAP,seriesFN:N$E.Studies.displayVWAP,initializeFN:N$E.Studies.initAnchoredVWAP,removeFN:N$E.Studies.removeAnchorHandle,inputs:{Field:"field","Anchor Date":"","Anchor Time":"","Display 1 Standard Deviation (1\u03C3)":!"1","Display 2 Standard Deviation (2\u03C3)":!"1","Display 3 Standard Deviation (3\u03C3)":!"1",Shading:![],"Anchor Selector":!!"1"},outputs:{VWAP:S0I,"1 Standard Deviation (1\u03C3)":a5z,"2 Standard Deviation (2\u03C3)":o9M,"3 Standard Deviation (3\u03C3)":"#fff69e"},parameters:{init:{opacity:0.2}},attributes:{"Anchor Date":{placeholder:"yyyy-mm-dd"},"Anchor Time":{placeholder:x4Z,step:1}}},VWAP:{name:"VWAP",overlay:!!({}),calculateFN:N$E.Studies.calculateVWAP,seriesFN:N$E.Studies.displayVWAP,inputs:{"Display 1 Standard Deviation (1\u03C3)":![],"Display 2 Standard Deviation (2\u03C3)":!1,"Display 3 Standard Deviation (3\u03C3)":!({}),Shading:!({})},outputs:{VWAP:"#FF0000","1 Standard Deviation (1\u03C3)":C5f,"2 Standard Deviation (2\u03C3)":V_J,"3 Standard Deviation (3\u03C3)":F$x},parameters:{init:{opacity:0.2}}}});}};v8=b$_=>{var O6S=i6UVR;var I1W,i3p;O6S.W5N();I1W=typeof _CIQ !== "undefined"?_CIQ:b$_.CIQ;if(!I1W.Studies){console.error("zigzag feature requires first activating studies feature.");}else {i3p="Z";i3p+="igZag";I1W.Studies.calculateZigZag=function(r$p,w6S){var p7o,c7D,S4a,b9R,d4W,F5v,b_8,A8D,j8$,b4n,A8L,S6s,d5j,S0O,O7v,D0b,Z_f,N8x,V6P,k3I,i1a,G8$,G6O;p7o="_";p7o+="state ";c7D="L";c7D+="o";c7D+="w";S4a=w6S.chart.scrubbed;if(!S4a || !S4a.length){return;}b9R=w6S.highLowChart;d4W=null;F5v=null;b_8=w6S.inputs["Distance(%)"];function F6f(P6u,E5p){var W_B;for(var s_w=P6u + 1;s_w < E5p;s_w++){W_B="Re";W_B+="s";W_B+="u";W_B+="lt ";S4a[s_w]["ShadowResult " + w6S.name]=(S4a[E5p][W_B + w6S.name] - S4a[P6u]["Result " + w6S.name]) * (s_w - P6u) / (E5p - P6u) + S4a[P6u]["Result " + w6S.name];delete S4a[s_w]["Result " + w6S.name];}}A8D=0;j8$=+"0";b4n=0;A8L=null;S6s=null;d5j=+"0";for(var o4P=Math.min(S4a.length - ("1" >> 0),w6S.startFrom);o4P >= +"0";o4P--){d5j=o4P;if(S4a[o4P]["_state " + w6S.name]){S0O=S4a[o4P]["_state " + w6S.name];d4W=S0O[0];F5v=S0O[1];A8D=S0O[+"2"];j8$=S0O[+"3"];b4n=S0O[4];A8L=S0O[5];S6s=S0O[6];break;}}for(var A2d=d5j;A2d < S4a.length;A2d++){O7v="Clo";O7v+="s";O7v+="e";D0b=S4a[A2d][b9R?"High":O7v];Z_f=S4a[A2d][b9R?"Low":"Close"];if(F5v === null || F5v < D0b){F5v=D0b;if(A8D < 0){d4W=Z_f;}O6S.O_b(144);A8L=O6S.V9a(b_8,1,F5v,100);if(A8D > -1){if(S6s !== null && F5v > S6s){N8x="Clo";N8x+="se";V6P="L";V6P+="o";V6P+="w";S4a[j8$]["Result " + w6S.name]=S4a[j8$][b9R?V6P:N8x];F6f(b4n,j8$);A8D=-1;d4W=Z_f;b4n=j8$;j8$=A2d;continue;}}else {j8$=A2d;}}if(d4W === null || d4W > Z_f){d4W=Z_f;if(A8D > +"0"){F5v=D0b;}O6S.O_b(145);S6s=O6S.V9a(b_8,100,d4W,"1");if(A8D < 1){if(A8L !== null && d4W < A8L){k3I="Hi";k3I+="g";k3I+="h";i1a="Res";i1a+="ult";i1a+=" ";S4a[j8$][i1a + w6S.name]=S4a[j8$][b9R?k3I:"Close"];F6f(b4n,j8$);A8D=+"1";F5v=D0b;b4n=j8$;j8$=A2d;continue;}}else {j8$=A2d;}}}S4a[j8$]["Result " + w6S.name]=S4a[j8$][b9R?A8D == 1?c7D:"High":"Close"];S4a[j8$][p7o + w6S.name]=[d4W,F5v,A8D,j8$,b4n,A8L,S6s];F6f(b4n,j8$);G8$=S4a.length - 1;while(G8$ > j8$){if(S4a[G8$].Close || S4a[G8$].Close === 0){G6O="Resul";G6O+="t";G6O+=" ";S4a[G8$][G6O + w6S.name]=S4a[G8$][b9R?A8D == 1?"High":"Low":"Close"];break;}G8$--;}F6f(j8$,G8$);};I1W.Studies.displayZigZag=function(i$j,f$C,E2V){var r13,V7R,o9t,g_a,S4t,r0j,U7_,T$d,D57,C9a,h2y,K4j;r13=i$j.chart.highLowBars;if(f$C.highLowChart != r13){f$C.highLowChart=r13;f$C.startFrom=0;f$C.study.calculateFN(i$j,f$C);}V7R=i$j.chart;for(var M5a=0;M5a < E2V.length;M5a++){o9t=E2V[M5a];if(o9t){g_a="_sh";g_a+="ad";g_a+="o";g_a+="wCopy ";if(o9t[g_a + f$C.name]){S4t="Result";S4t+=" ";delete o9t[S4t + f$C.name];delete o9t["_shadowCopy " + f$C.name];}if(!o9t["Result " + f$C.name]){r0j="R";r0j+="e";r0j+="s";r0j+="ult ";if(o9t.transform){delete o9t.transform[r0j + f$C.name];}}}}O6S.s$9(42);U7_=E2V[O6S.V9a("0",0)];O6S.O_b(16);var f0M=O6S.V9a(8,0,7);T$d=E2V[E2V.length - f0M];if(U7_ && U7_["ShadowResult " + f$C.name]){D57="_";D57+="shadowC";D57+="opy";D57+=" ";C9a="S";C9a+="hado";C9a+="wResult";C9a+=" ";U7_["Result " + f$C.name]=U7_["ShadowResult " + f$C.name];if(U7_.transform){U7_.transform["Result " + f$C.name]=V7R.transformFunc(i$j,V7R,U7_[C9a + f$C.name]);}U7_[D57 + f$C.name]=1;}if(T$d && T$d["ShadowResult " + f$C.name]){h2y="S";h2y+="h";h2y+="adowResu";h2y+="lt ";K4j="R";K4j+="e";K4j+="sul";K4j+="t ";T$d[K4j + f$C.name]=T$d[h2y + f$C.name];if(T$d.transform){T$d.transform["Result " + f$C.name]=V7R.transformFunc(i$j,V7R,T$d["ShadowResult " + f$C.name]);}T$d["_shadowCopy " + f$C.name]=1;}I1W.Studies.displaySeriesAsLine(i$j,f$C,E2V);};I1W.Studies.studyLibrary=I1W.extend(I1W.Studies.studyLibrary,{ZigZag:{name:i3p,overlay:!![],seriesFN:I1W.Studies.displayZigZag,calculateFN:I1W.Studies.calculateZigZag,inputs:{"Distance(%)":10},parameters:{init:{label:!({})}},attributes:{"Distance(%)":{min:0.1,step:0.1}}}});}};I3={CIQ:Z0,SplinePlotter:d7,timezoneJS:U8,$$:Z9,$$$:v5};export {N as createEngine};export {u as customCharts};export {X as drawing};export {S as easeMachine};export {P as equations};export {I as i18n};export {Q as interaction};export {V as markers};export {M as market};export {T as movement};export {R as nameValueStore};export {W as quoteFeed};export {Y as series};export {g as share};export {K as span};export {A as storage};export {G as studies};export {G6 as symbolLookupBase};export {k$ as theme};export {w6 as timezone};export {q2 as touch};export {K_ as visualization};export {D5 as medianPrice};export {S8 as momentum};export {V4 as priceRelative};export {U$ as vwap};export {v8 as zigzag};export {Z0 as CIQ, d7 as SplinePlotter, U8 as timezoneJS, Z9 as $$, v5 as $$$};if(typeof __TREE_SHAKE__ === f6ulV || !__TREE_SHAKE__){I3.CIQ.activateImports(N,u,X,S,P,I,Q,V,M,T,R,W,Y,g,K,A,G,G6,k$,w6,q2,K_,D5,S8,V4,U$,v8,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ +A2IFV[370258]=(function(){var u=2;for(;u !== 9;){switch(u){case 2:u=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var Y;u=4;break;case 4:try{var I=2;for(;I !== 6;){switch(I){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var S=2;for(;S !== 1;){switch(S){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Y=Ll6R9;I=5;break;case 5:Y['\x42\u0042\u004f\x38\x38']=Y;I=4;break;case 4:I=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";I=9;break;case 9:delete Y['\x42\x42\u004f\u0038\x38'];var X=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete X['\x4c\x6c\u0036\x52\u0039'];I=6;break;}}}catch(V){Y=window;}return Y;break;}}})();v7DJT7(A2IFV[370258]);A2IFV[446427]=(function(){var s1Y=function(E2b,T1A){var T$2=T1A & 0xffff;var u90=T1A - T$2;return (u90 * E2b | 0) + (T$2 * E2b | 0) | 0;},V29cT4d=function(v69,y0n,B6w){var Q9K=0xcc9e2d51,k7N=0x1b873593;var I5b=B6w;var x$k=y0n & ~0x3;for(var J$C=0;J$C < x$k;J$C+=4){var M$v=v69.u1pzh(J$C) & 0xff | (v69.u1pzh(J$C + 1) & 0xff) << 8 | (v69.u1pzh(J$C + 2) & 0xff) << 16 | (v69.u1pzh(J$C + 3) & 0xff) << 24;M$v=s1Y(M$v,Q9K);M$v=(M$v & 0x1ffff) << 15 | M$v >>> 17;M$v=s1Y(M$v,k7N);I5b^=M$v;I5b=(I5b & 0x7ffff) << 13 | I5b >>> 19;I5b=I5b * 5 + 0xe6546b64 | 0;}M$v=0;switch(y0n % 4){case 3:M$v=(v69.u1pzh(x$k + 2) & 0xff) << 16;case 2:M$v|=(v69.u1pzh(x$k + 1) & 0xff) << 8;case 1:M$v|=v69.u1pzh(x$k) & 0xff;M$v=s1Y(M$v,Q9K);M$v=(M$v & 0x1ffff) << 15 | M$v >>> 17;M$v=s1Y(M$v,k7N);I5b^=M$v;}I5b^=y0n;I5b^=I5b >>> 16;I5b=s1Y(I5b,0x85ebca6b);I5b^=I5b >>> 13;I5b=s1Y(I5b,0xc2b2ae35);I5b^=I5b >>> 16;return I5b;};return {V29cT4d:V29cT4d};})();A2IFV.i0k=function(){return typeof A2IFV[539515].x96qQgs === 'function'?A2IFV[539515].x96qQgs.apply(A2IFV[539515],arguments):A2IFV[539515].x96qQgs;};A2IFV.Z2Z=function(){return typeof A2IFV[446427].V29cT4d === 'function'?A2IFV[446427].V29cT4d.apply(A2IFV[446427],arguments):A2IFV[446427].V29cT4d;};A2IFV[539515]=(function(){var x5P=2;for(;x5P !== 4;){switch(x5P){case 2:var Z9Q=A2IFV[370258];var J5c,I$p;x5P=5;break;case 5:return {x96qQgs:function(N3J,E3K,a1T,N29){var J8W=2;for(;J8W !== 1;){switch(J8W){case 2:return g4x(N3J,E3K,a1T,N29);break;}}},q7DznqI:function(F1n,c_b,T_9,i_Q){var m3I=2;for(;m3I !== 1;){switch(m3I){case 2:return g4x(F1n,c_b,T_9,i_Q,true);break;}}}};break;}}function Q5l(y_C){var d_p=2;for(;d_p !== 7;){switch(d_p){case 2:var L9v=8;var Y$z='';d_p=5;break;case 3:Y$z+=b1IKJ.r7BEA(y_C[m8V] - L9v + 103);d_p=9;break;case 9:m8V++;d_p=4;break;case 5:var m8V=0;d_p=4;break;case 4:d_p=m8V < y_C.length?3:8;break;case 8:return Y$z;break;}}}function g4x(q_W,d8h,u2p,D5s,F4M){var Q8N=2;for(;Q8N !== 15;){switch(Q8N){case 13:Q8N=d8h && B01 > 0 && P4E.u1pzh(B01 - 1) !== 46?12:11;break;case 6:return A2IFV.Z2Z(t4S,D7E,u2p);break;case 16:return A2IFV.Z2Z(t4S,D7E,u2p);break;case 2:var t4S,D7E,P4E,k3P;k3P=Z9Q[Q5l([13,16,4,2,21,10,16,15])];!J5c && (J5c=typeof k3P !== "undefined"?k3P[Q5l([9,16,20,21,15,2,14,6])] || ' ':"");!I$p && (I$p=typeof k3P !== "undefined"?k3P[Q5l([9,19,6,7])]:"");Q8N=3;break;case 12:return false;break;case 8:t4S=P4E.P61UPs(q_W,D5s);D7E=t4S.length;Q8N=6;break;case 9:Q8N=D5s > 0?8:19;break;case 11:t4S=P4E.P61UPs(B01,P4E.length);D7E=t4S.length;return A2IFV.Z2Z(t4S,D7E,u2p);break;case 19:Q8N=q_W === null || q_W <= 0?18:14;break;case 14:var B01=P4E.length - q_W;Q8N=13;break;case 18:t4S=P4E.P61UPs(0,P4E.length);D7E=t4S.length;Q8N=16;break;case 3:P4E=F4M?I$p:J5c;Q8N=9;break;}}}})();A2IFV.X_e=function(){return typeof A2IFV[539515].q7DznqI === 'function'?A2IFV[539515].q7DznqI.apply(A2IFV[539515],arguments):A2IFV[539515].q7DznqI;};A2IFV[238553]=(function(){var B0h=2;for(;B0h !== 9;){switch(B0h){case 2:var Z6D=[arguments];Z6D[6]=undefined;Z6D[4]={};B0h=4;break;case 4:Z6D[4].i9agN$W=function(){var z6S=2;for(;z6S !== 90;){switch(z6S){case 4:g_z[8]=[];g_z[7]={};g_z[7].q7f=['l1M'];g_z[7].J7t=function(){var l1r=false;var E0r=[];try{for(var F7O in console){E0r.v2Dr4c(F7O);}l1r=E0r.length === 0;}catch(f$5){}var j_x=l1r;return j_x;};z6S=7;break;case 67:Z6D[6]=69;return 43;break;case 76:z6S=g_z[60] < g_z[48][g_z[26]].length?75:70;break;case 41:g_z[15].J7t=function(){var J$W=typeof R7xSoN === 'function';return J$W;};g_z[66]=g_z[15];g_z[39]={};g_z[39].q7f=['l0m'];g_z[39].J7t=function(){var x6z=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var l_4=(/\164\x72\x75\u0065/).U7qArr(x6z + []);return l_4;};z6S=36;break;case 46:g_z[8].v2Dr4c(g_z[3]);g_z[8].v2Dr4c(g_z[4]);g_z[75]=[];g_z[28]='i4d';z6S=63;break;case 50:g_z[8].v2Dr4c(g_z[9]);g_z[8].v2Dr4c(g_z[93]);g_z[8].v2Dr4c(g_z[6]);g_z[8].v2Dr4c(g_z[66]);z6S=46;break;case 63:g_z[25]='z5O';g_z[26]='q7f';g_z[50]='N9_';g_z[88]='J7t';z6S=59;break;case 77:g_z[60]=0;z6S=76;break;case 59:g_z[14]='g0W';z6S=58;break;case 1:z6S=Z6D[6]?5:4;break;case 54:g_z[8].v2Dr4c(g_z[31]);g_z[8].v2Dr4c(g_z[90]);g_z[8].v2Dr4c(g_z[52]);g_z[8].v2Dr4c(g_z[10]);z6S=50;break;case 17:g_z[5].q7f=['l0m'];g_z[5].J7t=function(){var f25=function(){return ('x').startsWith('x');};var P9Y=(/\164\u0072\x75\145/).U7qArr(f25 + []);return P9Y;};g_z[3]=g_z[5];g_z[57]={};z6S=26;break;case 56:g_z[48]=g_z[8][g_z[99]];try{g_z[47]=g_z[48][g_z[88]]()?g_z[28]:g_z[25];}catch(R9l){g_z[47]=g_z[25];}z6S=77;break;case 57:z6S=g_z[99] < g_z[8].length?56:69;break;case 71:g_z[60]++;z6S=76;break;case 70:g_z[99]++;z6S=57;break;case 26:g_z[57].q7f=['l1M'];g_z[57].J7t=function(){var n46=typeof u9FqVY === 'function';return n46;};z6S=24;break;case 69:z6S=(function(M2p){var c2y=2;for(;c2y !== 22;){switch(c2y){case 14:c2y=typeof p$6[8][p$6[4][g_z[14]]] === 'undefined'?13:11;break;case 23:return p$6[9];break;case 17:p$6[7]=0;c2y=16;break;case 11:p$6[8][p$6[4][g_z[14]]].t+=true;c2y=10;break;case 2:var p$6=[arguments];c2y=1;break;case 6:p$6[4]=p$6[0][0][p$6[7]];c2y=14;break;case 24:p$6[7]++;c2y=16;break;case 18:p$6[9]=false;c2y=17;break;case 15:p$6[5]=p$6[6][p$6[7]];p$6[3]=p$6[8][p$6[5]].h / p$6[8][p$6[5]].t;c2y=26;break;case 26:c2y=p$6[3] >= 0.5?25:24;break;case 1:c2y=p$6[0][0].length === 0?5:4;break;case 16:c2y=p$6[7] < p$6[6].length?15:23;break;case 20:p$6[8][p$6[4][g_z[14]]].h+=true;c2y=19;break;case 5:return;break;case 12:p$6[6].v2Dr4c(p$6[4][g_z[14]]);c2y=11;break;case 10:c2y=p$6[4][g_z[50]] === g_z[28]?20:19;break;case 4:p$6[8]={};p$6[6]=[];p$6[7]=0;c2y=8;break;case 13:p$6[8][p$6[4][g_z[14]]]=(function(){var C$I=2;for(;C$I !== 9;){switch(C$I){case 4:u5z[6].t=0;return u5z[6];break;case 2:var u5z=[arguments];u5z[6]={};u5z[6].h=0;C$I=4;break;}}}).l8l_mL(this,arguments);c2y=12;break;case 8:p$6[7]=0;c2y=7;break;case 25:p$6[9]=true;c2y=24;break;case 7:c2y=p$6[7] < p$6[0][0].length?6:18;break;case 19:p$6[7]++;c2y=7;break;}}})(g_z[75])?68:67;break;case 20:g_z[2].J7t=function(){var Y3p=function(){return escape('=');};var m31=(/\x33\x44/).U7qArr(Y3p + []);return m31;};g_z[9]=g_z[2];g_z[5]={};z6S=17;break;case 5:return 24;break;case 7:g_z[4]=g_z[7];g_z[1]={};g_z[1].q7f=['l1M'];g_z[1].J7t=function(){var b7A=typeof Y9zrsl === 'function';return b7A;};g_z[6]=g_z[1];g_z[2]={};g_z[2].q7f=['l0m'];z6S=20;break;case 28:g_z[11].J7t=function(){var n$r=function(){return ('x y').slice(0,1);};var j5R=!(/\x79/).U7qArr(n$r + []);return j5R;};g_z[31]=g_z[11];g_z[15]={};g_z[15].q7f=['l1M'];z6S=41;break;case 68:z6S=64?68:67;break;case 2:var g_z=[arguments];z6S=1;break;case 32:g_z[59].J7t=function(){var k$K=function(){return unescape('%3D');};var b3M=(/\x3d/).U7qArr(k$K + []);return b3M;};g_z[52]=g_z[59];g_z[11]={};g_z[11].q7f=['l0m'];z6S=28;break;case 21:g_z[62].J7t=function(){var K5C=function(){var W2U=function(D$M){for(var Z9i=0;Z9i < 20;Z9i++){D$M+=Z9i;}return D$M;};W2U(2);};var q4M=(/\x31\u0039\x32/).U7qArr(K5C + []);return q4M;};g_z[90]=g_z[62];g_z[59]={};g_z[59].q7f=['l0m'];z6S=32;break;case 36:g_z[93]=g_z[39];z6S=54;break;case 58:g_z[99]=0;z6S=57;break;case 24:g_z[10]=g_z[57];g_z[62]={};g_z[62].q7f=['l0m'];z6S=21;break;case 75:g_z[58]={};g_z[58][g_z[14]]=g_z[48][g_z[26]][g_z[60]];g_z[58][g_z[50]]=g_z[47];g_z[75].v2Dr4c(g_z[58]);z6S=71;break;}}};return Z6D[4];break;}}})();function v7DJT7(b4$){function v3X(T22,d3_,D9l,Q$4,R43){var C5n=2;for(;C5n !== 6;){switch(C5n){case 2:var n_U=[arguments];n_U[6]="fi";n_U[7]="neProperty";n_U[2]="";n_U[2]="de";C5n=9;break;case 9:n_U[4]=true;n_U[4]=false;try{var l3l=2;for(;l3l !== 13;){switch(l3l){case 14:try{var d2S=2;for(;d2S !== 3;){switch(d2S){case 2:n_U[8]=n_U[2];n_U[8]+=n_U[6];n_U[8]+=n_U[7];n_U[0][0].Object[n_U[8]](n_U[1],n_U[0][4],n_U[5]);d2S=3;break;}}}catch(v$D){}l3l=13;break;case 7:n_U[5].get=function(){var C$N=2;for(;C$N !== 13;){switch(C$N){case 7:Y10[2]+=Y10[5];Y10[2]+=Y10[1];return typeof n_U[1][n_U[0][2]] == Y10[2]?undefined:n_U[1][n_U[0][2]];break;case 2:var Y10=[arguments];Y10[1]="d";Y10[5]="";Y10[5]="";Y10[5]="ne";Y10[7]="undefi";Y10[2]=Y10[7];C$N=7;break;}}};n_U[5].enumerable=n_U[4];l3l=14;break;case 9:n_U[1][n_U[0][4]]=n_U[1][n_U[0][2]];n_U[5].set=function(h6F){var L5C=2;for(;L5C !== 5;){switch(L5C){case 2:var R6K=[arguments];n_U[1][n_U[0][2]]=R6K[0][0];L5C=5;break;}}};l3l=7;break;case 3:return;break;case 4:l3l=n_U[1].hasOwnProperty(n_U[0][4]) && n_U[1][n_U[0][4]] === n_U[1][n_U[0][2]]?3:9;break;case 2:n_U[5]={};n_U[3]=(1,n_U[0][1])(n_U[0][0]);n_U[1]=[n_U[3],n_U[3].prototype][n_U[0][3]];l3l=4;break;}}}catch(i_R){}C5n=6;break;}}}function w0x(m3B){var e$m=2;for(;e$m !== 5;){switch(e$m){case 2:var E2Z=[arguments];return E2Z[0][0].Function;break;}}}function K_Q(z9Z){var X$7=2;for(;X$7 !== 5;){switch(X$7){case 2:var P34=[arguments];return P34[0][0];break;}}}function c_k(X8V){var q2M=2;for(;q2M !== 5;){switch(q2M){case 2:var d18=[arguments];return d18[0][0].Array;break;}}}function H6I(U0T){var a9n=2;for(;a9n !== 5;){switch(a9n){case 2:var X8P=[arguments];return X8P[0][0].RegExp;break;}}}var m8_=2;for(;m8_ !== 151;){switch(m8_){case 37:d8s[20]="l";d8s[50]="residu";d8s[70]="";d8s[70]="rs";m8_=52;break;case 127:M6Y(I1B,"substring",d8s[79],d8s[59]);m8_=126;break;case 85:d8s[15]+=d8s[22];d8s[15]+=d8s[97];d8s[17]=d8s[72];d8s[17]+=d8s[28];m8_=81;break;case 92:d8s[29]=d8s[27];d8s[29]+=d8s[57];d8s[29]+=d8s[35];d8s[73]=d8s[99];m8_=117;break;case 68:d8s[79]=1;d8s[48]=1;d8s[48]=9;d8s[48]=0;m8_=89;break;case 72:d8s[84]="";d8s[84]="";d8s[84]="l8";d8s[79]=4;m8_=68;break;case 126:M6Y(I1B,"replace",d8s[79],d8s[16]);m8_=125;break;case 81:d8s[17]+=d8s[63];d8s[56]=d8s[94];d8s[56]+=d8s[96];d8s[56]+=d8s[91];m8_=104;break;case 100:d8s[24]+=d8s[38];d8s[24]+=d8s[26];d8s[81]=d8s[18];d8s[81]+=d8s[70];m8_=96;break;case 14:d8s[2]="b";d8s[9]="";d8s[9]="BEA";d8s[6]="";m8_=10;break;case 10:d8s[6]="7";d8s[1]="1I";d8s[4]="";d8s[4]="";d8s[4]="1UPs";d8s[5]="";d8s[5]="";m8_=27;break;case 152:M6Y(w0x,"apply",d8s[79],d8s[86]);m8_=151;break;case 130:M6Y(I1B,"charCodeAt",d8s[79],d8s[95]);m8_=129;break;case 123:M6Y(K_Q,d8s[89],d8s[48],d8s[81]);m8_=122;break;case 96:d8s[81]+=d8s[20];d8s[89]=d8s[49];d8s[89]+=d8s[50];d8s[89]+=d8s[87];m8_=92;break;case 3:d8s[3]="";d8s[3]="pz";d8s[7]="";d8s[7]="KJ";d8s[2]="";m8_=14;break;case 120:M6Y(K_Q,d8s[17],d8s[48],d8s[15]);m8_=152;break;case 28:d8s[57]="";d8s[57]="r4";d8s[27]="";d8s[27]="v2D";m8_=41;break;case 129:M6Y(K_Q,"String",d8s[48],d8s[47]);m8_=128;break;case 104:d8s[31]=d8s[66];d8s[31]+=d8s[93];d8s[31]+=d8s[32];d8s[24]=d8s[98];m8_=100;break;case 124:M6Y(c_k,"push",d8s[79],d8s[29]);m8_=123;break;case 41:d8s[87]="";d8s[87]="al";d8s[99]="P5ii";d8s[20]="";m8_=37;break;case 2:var d8s=[arguments];d8s[8]="";d8s[8]="";d8s[8]="h";m8_=3;break;case 131:var M6Y=function(u7O,A4P,y6j,P7t){var A3v=2;for(;A3v !== 5;){switch(A3v){case 2:var M7b=[arguments];v3X(d8s[0][0],M7b[0][0],M7b[0][1],M7b[0][2],M7b[0][3]);A3v=5;break;}}};m8_=130;break;case 125:M6Y(c_k,"map",d8s[79],d8s[73]);m8_=124;break;case 48:d8s[93]="";d8s[93]="trac";d8s[38]="7qAr";d8s[66]="";d8s[49]="__";m8_=64;break;case 89:d8s[86]=d8s[84];d8s[86]+=d8s[65];d8s[86]+=d8s[55];d8s[15]=d8s[14];m8_=85;break;case 111:d8s[59]+=d8s[37];d8s[59]+=d8s[4];d8s[85]=d8s[26];d8s[85]+=d8s[6];d8s[85]+=d8s[9];m8_=106;break;case 121:M6Y(K_Q,d8s[31],d8s[48],d8s[56]);m8_=120;break;case 128:M6Y(I1B,"fromCharCode",d8s[48],d8s[85]);m8_=127;break;case 76:d8s[94]="u";d8s[63]="mize";d8s[55]="L";d8s[65]="l_m";m8_=72;break;case 117:d8s[73]+=d8s[41];d8s[73]+=d8s[21];d8s[16]=d8s[13];d8s[16]+=d8s[78];d8s[16]+=d8s[5];d8s[59]=d8s[76];m8_=111;break;case 106:d8s[47]=d8s[2];d8s[47]+=d8s[1];d8s[47]+=d8s[7];d8s[95]=d8s[68];m8_=133;break;case 52:d8s[26]="";d8s[26]="r";d8s[32]="t";d8s[98]="U";m8_=48;break;case 133:d8s[95]+=d8s[3];d8s[95]+=d8s[8];m8_=131;break;case 27:d8s[68]="u1";d8s[5]="I";d8s[78]="";d8s[78]="";m8_=23;break;case 23:d8s[78]="1sbW";d8s[21]="";d8s[21]="s";d8s[37]="6";m8_=34;break;case 34:d8s[41]="";d8s[76]="P";d8s[13]="C";d8s[41]="M";d8s[35]="";d8s[35]="c";m8_=28;break;case 122:M6Y(H6I,"test",d8s[79],d8s[24]);m8_=121;break;case 57:d8s[97]="SoN";d8s[14]="R";d8s[55]="";d8s[22]="7x";m8_=76;break;case 64:d8s[66]="__abs";d8s[96]="";d8s[18]="Y9z";d8s[96]="9";d8s[28]="i";d8s[91]="FqVY";d8s[72]="__opt";m8_=57;break;}}function I1B(u6X){var h8V=2;for(;h8V !== 5;){switch(h8V){case 2:var d4E=[arguments];return d4E[0][0].String;break;}}}}A2IFV.D0J=function(){return typeof A2IFV[593596].g9iUvuS === 'function'?A2IFV[593596].g9iUvuS.apply(A2IFV[593596],arguments):A2IFV[593596].g9iUvuS;};A2IFV[370258].N8gg=A2IFV;A2IFV[150014]=(function(h2w){var k7A=2;for(;k7A !== 10;){switch(k7A){case 11:return {R3ta_F9:function(S6b){var r8q=2;for(;r8q !== 6;){switch(r8q){case 5:r8q=!u0t--?4:3;break;case 3:r8q=!u0t--?9:8;break;case 2:var C9$=new p3D[h2w[0]]()[h2w[1]]();r8q=1;break;case 9:J1h=C9$ + 60000;r8q=8;break;case 7:return l4F?p$k:!p$k;break;case 1:r8q=C9$ > J1h?5:8;break;case 8:var l4F=(function(H0w,b_b){var i8Q=2;for(;i8Q !== 10;){switch(i8Q){case 9:i8Q=n9Q < H0w[b_b[5]]?8:11;break;case 3:var F4l,n9Q=0;i8Q=9;break;case 8:var w$K=p3D[b_b[4]](H0w[b_b[2]](n9Q),16)[b_b[3]](2);var N$Y=w$K[b_b[2]](w$K[b_b[5]] - 1);i8Q=6;break;case 13:n9Q++;i8Q=9;break;case 4:b_b=h2w;i8Q=3;break;case 11:return F4l;break;case 12:F4l=F4l ^ N$Y;i8Q=13;break;case 5:i8Q=typeof b_b === 'undefined' && typeof h2w !== 'undefined'?4:3;break;case 6:i8Q=n9Q === 0?14:12;break;case 14:F4l=N$Y;i8Q=13;break;case 1:H0w=S6b;i8Q=5;break;case 2:i8Q=typeof H0w === 'undefined' && typeof S6b !== 'undefined'?1:5;break;}}})(undefined,undefined);r8q=7;break;case 4:p$k=Q9J(C9$);r8q=3;break;}}}};break;case 2:var p3D,y0y,F$6,u0t;k7A=1;break;case 4:var q7_='fromCharCode',z74='RegExp';k7A=3;break;case 5:p3D=A2IFV[370258];k7A=4;break;case 13:k7A=!u0t--?12:11;break;case 12:var p$k,J1h=0;k7A=11;break;case 8:k7A=!u0t--?7:6;break;case 7:F$6=y0y.C1sbWI(new p3D[z74]("^['-|]"),'S');k7A=6;break;case 6:k7A=!u0t--?14:13;break;case 14:h2w=h2w.P5iiMs(function(w9q){var D1B=2;for(;D1B !== 13;){switch(D1B){case 8:Z1I++;D1B=3;break;case 14:return G9G;break;case 7:D1B=!G9G?6:14;break;case 2:var G9G;D1B=1;break;case 4:var Z1I=0;D1B=3;break;case 6:return;break;case 9:G9G+=p3D[F$6][q7_](w9q[Z1I] + 93);D1B=8;break;case 1:D1B=!u0t--?5:4;break;case 3:D1B=Z1I < w9q.length?9:7;break;case 5:G9G='';D1B=4;break;}}});k7A=13;break;case 1:k7A=!u0t--?5:4;break;case 9:y0y=typeof q7_;k7A=8;break;case 3:k7A=!u0t--?9:8;break;}}function Q9J(c_L){var i_w=2;for(;i_w !== 15;){switch(i_w){case 3:o2K=27;i_w=9;break;case 20:C96=c_L - l$4 > o2K && F1t - c_L > o2K;i_w=19;break;case 8:Y1h=h2w[6];i_w=7;break;case 13:o8r=h2w[7];i_w=12;break;case 4:i_w=!u0t--?3:9;break;case 10:i_w=l$4 >= 0 && F1t >= 0?20:18;break;case 17:C96=c_L - l$4 > o2K;i_w=19;break;case 5:O7R=p3D[h2w[4]];i_w=4;break;case 16:C96=F1t - c_L > o2K;i_w=19;break;case 19:return C96;break;case 12:i_w=!u0t--?11:10;break;case 11:l$4=(o8r || o8r === 0) && O7R(o8r,o2K);i_w=10;break;case 6:F1t=Y1h && O7R(Y1h,o2K);i_w=14;break;case 7:i_w=!u0t--?6:14;break;case 14:i_w=!u0t--?13:12;break;case 1:i_w=!u0t--?5:4;break;case 2:var C96,o2K,Y1h,F1t,o8r,l$4,O7R;i_w=1;break;case 18:i_w=l$4 >= 0?17:16;break;case 9:i_w=!u0t--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);A2IFV.j89=function(){return typeof A2IFV[539515].q7DznqI === 'function'?A2IFV[539515].q7DznqI.apply(A2IFV[539515],arguments):A2IFV[539515].q7DznqI;};A2IFV.D0H=function(){return typeof A2IFV[238553].i9agN$W === 'function'?A2IFV[238553].i9agN$W.apply(A2IFV[238553],arguments):A2IFV[238553].i9agN$W;};A2IFV.T36=function(){return typeof A2IFV[150014].R3ta_F9 === 'function'?A2IFV[150014].R3ta_F9.apply(A2IFV[150014],arguments):A2IFV[150014].R3ta_F9;};A2IFV[103941]=285;A2IFV[636832]=A2IFV[539515];A2IFV.S40=function(){return typeof A2IFV[593596].N$y1PkD === 'function'?A2IFV[593596].N$y1PkD.apply(A2IFV[593596],arguments):A2IFV[593596].N$y1PkD;};A2IFV.U6$=function(){return typeof A2IFV[446427].V29cT4d === 'function'?A2IFV[446427].V29cT4d.apply(A2IFV[446427],arguments):A2IFV[446427].V29cT4d;};A2IFV.q7n=function(){return typeof A2IFV[593596].N$y1PkD === 'function'?A2IFV[593596].N$y1PkD.apply(A2IFV[593596],arguments):A2IFV[593596].N$y1PkD;};A2IFV[156040]=false;A2IFV.H6P=function(){return typeof A2IFV[593596].g9iUvuS === 'function'?A2IFV[593596].g9iUvuS.apply(A2IFV[593596],arguments):A2IFV[593596].g9iUvuS;};A2IFV[593596]=(function(d8Y){return {N$y1PkD:function(){var L0X,H3E=arguments;switch(d8Y){case 28:L0X=H3E[0] >> H3E[1];break;case 48:L0X=H3E[3] + H3E[2] + H3E[1] + H3E[0];break;case 112:L0X=-H3E[3] - H3E[2] + H3E[4] + H3E[0] - H3E[1];break;case 135:L0X=(H3E[1] - H3E[3]) * H3E[2] - H3E[0];break;case 143:L0X=(H3E[4] + H3E[2]) / H3E[0] + H3E[1] - H3E[3];break;case 141:L0X=(H3E[1] - H3E[7]) * (H3E[5] - H3E[6]) + (H3E[3] - H3E[0]) * (H3E[4] - H3E[2]);break;case 138:L0X=H3E[0] / H3E[1] / H3E[3] / H3E[2] + H3E[4];break;case 47:L0X=H3E[0] + +H3E[2] * H3E[1];break;case 142:L0X=-H3E[4] * H3E[1] * H3E[2] - H3E[0] + H3E[3];break;case 19:L0X=H3E[0] + H3E[2] + H3E[1] - H3E[3];break;case 10:L0X=H3E[0] | H3E[1];break;case 49:L0X=H3E[1] + (H3E[3] - H3E[2]) + H3E[0];break;case 4:L0X=H3E[3] + H3E[0] / H3E[1] - H3E[2];break;case 35:L0X=(H3E[2] + H3E[1] + H3E[3]) * H3E[0] - H3E[4];break;case 91:L0X=-H3E[0] / H3E[4] * H3E[3] / H3E[1] + H3E[2];break;case 109:L0X=(H3E[1] + H3E[2] - H3E[0]) / H3E[3] + H3E[4];break;case 2:L0X=-H3E[2] - H3E[0] + H3E[1];break;case 42:L0X=H3E[2] * H3E[0] + H3E[3] * H3E[1];break;case 54:L0X=(H3E[1] + H3E[2]) * H3E[4] + H3E[3] - H3E[0];break;case 102:L0X=H3E[1] * (H3E[2] / H3E[0]);break;case 34:L0X=(H3E[0] + H3E[1]) * H3E[2] / H3E[4] - H3E[3];break;case 65:L0X=(H3E[3] - H3E[2]) / H3E[1] * H3E[4] - H3E[0];break;case 11:L0X=(H3E[0] + H3E[1]) * H3E[3] - H3E[2];break;case 92:L0X=(H3E[0] + H3E[2] - H3E[3]) * H3E[4] - H3E[1];break;case 62:L0X=H3E[3] * H3E[0] - H3E[2] - H3E[1];break;case 21:L0X=H3E[0] ^ H3E[1];break;case 132:L0X=H3E[3] / H3E[4] * H3E[1] + H3E[2] - H3E[0];break;case 25:L0X=(H3E[1] - H3E[0]) * H3E[2];break;case 63:L0X=H3E[2] * H3E[0] / H3E[1] * H3E[3] - H3E[4];break;case 128:L0X=H3E[0] - H3E[2] / +H3E[1];break;case 147:L0X=(H3E[3] - H3E[1] / H3E[0]) * H3E[2];break;case 40:L0X=H3E[1] << H3E[0];break;case 5:L0X=H3E[1] + (H3E[2] >> H3E[0]);break;case 72:L0X=H3E[1] != H3E[0];break;case 144:L0X=H3E[4] * (H3E[0] / H3E[2] - H3E[1]) + H3E[3];break;case 27:L0X=(-H3E[0] - H3E[1]) * H3E[3] + H3E[2];break;case 33:L0X=H3E[1] + H3E[3] - H3E[2] - H3E[0];break;case 67:L0X=H3E[4] + H3E[1] - H3E[0] + H3E[3] - H3E[2];break;case 95:L0X=-H3E[1] / H3E[2] + H3E[0];break;case 20:L0X=(H3E[1] - H3E[3]) * H3E[0] + H3E[4] + H3E[2];break;case 85:L0X=H3E[0] - (H3E[2] - H3E[1]);break;case 137:L0X=H3E[2] - (H3E[1] | H3E[0]);break;case 50:L0X=H3E[0] - (H3E[1] >> H3E[3]) + H3E[2];break;case 127:L0X=H3E[3] * H3E[2] * H3E[0] + (H3E[5] - H3E[4] * H3E[1]) * H3E[6];break;case 22:L0X=H3E[2] / H3E[0] * H3E[1] - H3E[3];break;case 134:L0X=(H3E[2] + H3E[3]) / H3E[0] * H3E[4] + H3E[1];break;case 120:L0X=(H3E[1] - H3E[4]) / H3E[3] / H3E[0] + H3E[2];break;case 115:L0X=H3E[2] / (H3E[1] * H3E[0]);break;case 146:L0X=H3E[2] - H3E[0] * H3E[1];break;case 122:L0X=(H3E[2] + H3E[1]) * H3E[3] - H3E[0] - H3E[4];break;case 117:L0X=-H3E[0] + H3E[2] - H3E[3] + H3E[1];break;case 125:L0X=(H3E[1] - H3E[3]) * H3E[0] + H3E[2];break;case 133:L0X=(H3E[4] + H3E[0]) / H3E[1] / H3E[3] - H3E[2];break;case 106:L0X=(H3E[1] - H3E[4]) / H3E[0] + H3E[3] + H3E[2];break;case 81:L0X=H3E[0] | H3E[3] | H3E[4] | H3E[1] | H3E[2];break;case 107:L0X=(H3E[4] * H3E[1] + H3E[0]) / H3E[3] - H3E[2];break;case 37:L0X=H3E[1] + H3E[2] + H3E[0];break;case 118:L0X=H3E[4] / H3E[2] * H3E[3] * H3E[1] - H3E[0];break;case 8:L0X=H3E[0] / +H3E[1];break;case 94:L0X=H3E[4] + H3E[2] + H3E[0] - H3E[1] - H3E[3];break;case 23:L0X=H3E[1] / H3E[4] + H3E[0] + H3E[3] - H3E[2];break;case 66:L0X=H3E[2] + H3E[3] + H3E[1] - H3E[0] + H3E[4];break;case 140:L0X=H3E[2] / H3E[0] / H3E[1];break;case 16:L0X=-H3E[0] + H3E[1];break;case 9:L0X=(H3E[2] + H3E[1]) / H3E[0];break;case 80:L0X=H3E[2] | H3E[1] | H3E[0];break;case 6:L0X=(H3E[1] - H3E[3] - H3E[2]) / H3E[4] + H3E[0];break;case 76:L0X=+H3E[1] << H3E[0];break;case 43:L0X=H3E[2] + H3E[0] / H3E[1];break;case 111:L0X=H3E[2] / H3E[1] - H3E[3] - H3E[4] + H3E[0];break;case 96:L0X=H3E[0] * H3E[2] / (H3E[1] + H3E[3]);break;case 60:L0X=H3E[3] / H3E[2] + H3E[1] - H3E[0];break;case 82:L0X=(H3E[3] - H3E[1] - H3E[0]) % H3E[2];break;case 64:L0X=H3E[0] / H3E[1] - H3E[3] + H3E[2];break;case 100:L0X=H3E[1] * H3E[2] / H3E[0];break;case 99:L0X=H3E[0] * (H3E[1] + H3E[2] / H3E[3]);break;case 79:L0X=H3E[2] | H3E[1] | H3E[0] | H3E[3];break;case 30:L0X=(H3E[1] + H3E[0]) * H3E[3] + H3E[2];break;case 38:L0X=H3E[2] - (H3E[0] >> H3E[1]);break;case 53:L0X=H3E[4] / H3E[1] / H3E[3] * H3E[2] - H3E[0];break;case 83:L0X=H3E[3] / H3E[2] * H3E[0] / H3E[4] - H3E[1];break;case 56:L0X=H3E[2] + H3E[1] - H3E[4] - H3E[3] + H3E[0];break;case 104:L0X=H3E[3] / H3E[0] + H3E[2] + H3E[1];break;case 131:L0X=H3E[0] * ((H3E[2] - H3E[3]) / H3E[4] + H3E[1]);break;case 61:L0X=-H3E[0] * H3E[3] / H3E[1] + H3E[2];break;case 51:L0X=(H3E[2] - H3E[0]) / H3E[1] - H3E[4] + H3E[3];break;case 89:L0X=H3E[2] + (H3E[3] - H3E[1]) * H3E[0];break;case 124:L0X=H3E[2] / (H3E[1] + H3E[0]);break;case 46:L0X=H3E[0] - H3E[2] / H3E[1];break;case 101:L0X=(H3E[3] - H3E[0] + H3E[2]) * H3E[1] - H3E[4];break;case 108:L0X=H3E[0] * H3E[2] / H3E[1] + H3E[3];break;case 39:L0X=H3E[0] - H3E[1] - H3E[2];break;case 97:L0X=H3E[0] + (H3E[2] ^ H3E[1]);break;case 93:L0X=(-H3E[2] * H3E[1] - H3E[3]) * H3E[4] + H3E[0];break;case 103:L0X=H3E[0] / (H3E[2] ^ H3E[1]);break;case 41:L0X=-H3E[0] * H3E[1] + H3E[2];break;case 69:L0X=H3E[0] * H3E[1];break;case 73:L0X=H3E[0] + H3E[4] + H3E[3] + H3E[2] + H3E[1];break;case 75:L0X=H3E[0] % H3E[1];break;case 139:L0X=-H3E[3] - H3E[1] - H3E[4] + H3E[2] + H3E[0];break;case 87:L0X=-H3E[2] * H3E[1] - H3E[0] + H3E[4] + H3E[3];break;case 55:L0X=(H3E[1] + H3E[0]) / H3E[2] + H3E[3];break;case 105:L0X=-H3E[2] / H3E[4] + H3E[3] - H3E[1] + H3E[0];break;case 17:L0X=(H3E[4] + H3E[0] - H3E[3]) / H3E[2] - H3E[1];break;case 149:L0X=-H3E[1] * H3E[2] / H3E[4] - H3E[0] + H3E[3];break;case 116:L0X=H3E[0] * (H3E[2] << H3E[3]) / H3E[1];break;case 129:L0X=H3E[2] + H3E[0] / (H3E[1] << H3E[3]);break;case 58:L0X=H3E[1] + (H3E[0] - H3E[2]);break;case 36:L0X=H3E[1] - H3E[2] + H3E[0];break;case 7:L0X=H3E[1] - H3E[0];break;case 44:L0X=H3E[2] - H3E[0] / H3E[3] - H3E[1];break;case 14:L0X=H3E[1] / H3E[0];break;case 98:L0X=(H3E[1] + H3E[0] + H3E[2]) / H3E[4] - H3E[3];break;case 68:L0X=H3E[0] == H3E[1];break;case 29:L0X=(H3E[2] + H3E[3]) / H3E[1] / H3E[4] + H3E[0];break;case 90:L0X=H3E[1] * H3E[2] * H3E[3] - H3E[0];break;case 32:L0X=H3E[2] * H3E[1] + H3E[0];break;case 24:L0X=H3E[3] / H3E[4] + H3E[2] - H3E[1] - H3E[0];break;case 74:L0X=H3E[0] <= H3E[1];break;case 13:L0X=H3E[3] * H3E[2] / H3E[1] - H3E[0];break;case 12:L0X=H3E[0] / H3E[2] + H3E[1];break;case 78:L0X=H3E[0] << (H3E[1] | H3E[2]);break;case 52:L0X=H3E[1] * H3E[2] - H3E[0];break;case 59:L0X=(H3E[0] - H3E[1]) / (H3E[2] - H3E[3]);break;case 0:L0X=H3E[0] + H3E[1];break;case 15:L0X=H3E[1] + H3E[0] - H3E[2];break;case 114:L0X=H3E[3] - (H3E[0] - H3E[1]) - +H3E[2];break;case 77:L0X=H3E[1] >= H3E[0];break;case 45:L0X=H3E[2] + H3E[0] * H3E[1];break;case 148:L0X=(H3E[1] + H3E[0] / H3E[3]) * H3E[2];break;case 88:L0X=H3E[0] - +H3E[2] * H3E[1];break;case 1:L0X=H3E[1] * H3E[0];break;case 3:L0X=H3E[2] - H3E[0] / (H3E[4] ^ H3E[1]) + H3E[3];break;case 26:L0X=H3E[0] + (H3E[1] + H3E[4] * H3E[2]) * H3E[3];break;case 136:L0X=H3E[1] * +H3E[0];break;case 31:L0X=H3E[3] / H3E[1] / H3E[0] - H3E[2];break;case 84:L0X=H3E[0] === H3E[1];break;case 130:L0X=H3E[1] * +H3E[0] * +H3E[3] * H3E[2];break;case 145:L0X=H3E[0] * H3E[2] * H3E[1];break;case 70:L0X=H3E[0] > H3E[1];break;case 57:L0X=(H3E[1] - H3E[2]) / H3E[3] + H3E[0];break;case 110:L0X=H3E[1] * H3E[2] * H3E[3] - H3E[0] - H3E[4];break;case 126:L0X=(H3E[3] / H3E[4] + H3E[1]) * H3E[2] - H3E[0];break;case 18:L0X=H3E[0] / H3E[1] - H3E[2];break;case 71:L0X=H3E[1] < H3E[0];break;case 121:L0X=H3E[3] - H3E[2] - H3E[0] + H3E[1];break;case 113:L0X=H3E[3] - H3E[2] + (H3E[1] >> H3E[0]);break;case 86:L0X=-H3E[2] + H3E[1] + H3E[0];break;case 123:L0X=H3E[3] * H3E[1] + H3E[0] - H3E[2];break;case 119:L0X=H3E[3] + H3E[4] - H3E[0] - H3E[2] - H3E[1];break;}return L0X;},g9iUvuS:function(I8_){d8Y=I8_;}};})();A2IFV.b3E=function(){return typeof A2IFV[150014].R3ta_F9 === 'function'?A2IFV[150014].R3ta_F9.apply(A2IFV[150014],arguments):A2IFV[150014].R3ta_F9;};A2IFV.n54=function(){return typeof A2IFV[539515].x96qQgs === 'function'?A2IFV[539515].x96qQgs.apply(A2IFV[539515],arguments):A2IFV[539515].x96qQgs;};A2IFV.a9S=function(){return typeof A2IFV[238553].i9agN$W === 'function'?A2IFV[238553].i9agN$W.apply(A2IFV[238553],arguments):A2IFV[238553].i9agN$W;};function A2IFV(){}A2IFV.a3z=function(Y00){A2IFV.a9S();if(A2IFV)return A2IFV.T36(Y00);};A2IFV.Q6a=function(B0U){A2IFV.D0H();if(A2IFV && B0U)return A2IFV.T36(B0U);};A2IFV.e3H=function(i9A){A2IFV.D0H();if(A2IFV && i9A)return A2IFV.b3E(i9A);};A2IFV.D$Y=function(R1t){A2IFV.D0H();if(A2IFV)return A2IFV.T36(R1t);};A2IFV.k2l=function(p6Y){A2IFV.a9S();if(A2IFV)return A2IFV.T36(p6Y);};A2IFV.N1F=function(B5G){A2IFV.a9S();if(A2IFV)return A2IFV.b3E(B5G);};var Z9Rgz,Z,Q,q,A,G,g,K,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,A1;Z9Rgz="un";Z9Rgz+="def";Z9Rgz+="i";Z9Rgz+="ned";import {CIQ as y4, SplinePlotter as l5, timezoneJS as R$, $$ as L9, $$$ as G8} from "../js/chartiq.js";Z=e_=>{var w4B=A2IFV;var S4,u8,t3;w4B.a9S();S4=typeof _CIQ !== "undefined"?_CIQ:e_.CIQ;u8=class g2{get(W5,t8) {w4B.D0H();t8("no storage defined");}set(m3,c8) {}remove(g5) {}};S4.ChartEngine.create=function({container:q4, config:U0, deferLoad:i$} = {}){var k5,M$,P1;if(!q4){q4=document.querySelector(".chartContainer") || document.body;}if(!U0){U0={};}k5=Object.assign({container:q4},U0.chartEngineParams);M$=new this(k5);var {quoteFeeds:l3, marketFactory:L6, addOns:b_, chartId:A7, onChartReady:n9}=U0;function y7(){M$.loadChart(U0.initialSymbol,{masterData:U0.initialData},w2);M$.draw();}if(l3 && M$.attachQuoteFeed){l3.forEach(({quoteFeed:n3, behavior:g4, filter:v4})=>{M$.attachQuoteFeed(n3,g4,v4);});}function w2(){w4B.a9S();if(!n9){return;}setTimeout(()=>{w4B.D0H();return n9(M$);});}if(L6){M$.setMarketFactory(L6);}if(b_){Object.entries(b_).filter(([,j0])=>{w4B.a9S();return !!j0;}).forEach(([n7,t9])=>{var N2;w4B.a9S();if(!U0.enabledAddOns[n7]){return;}N2=t9.moduleName || S4.capitalize(n7);if(S4[N2]){var {cssRequired:e4}=new S4[N2](Object.assign({stx:M$},t9,{config:U0}));if(e4 && S4.UI){S4.UI.activatePluginUI(M$,N2);}}else if(S4.debug){console.log(`${N2} not available for addons with params:`,t9);}});}P1=S4.ensureDefaults(U0.callbacks || ({}),{layout:this.getSaveLayout(U0),symbolChange:this.getSaveLayout(U0),drawing:this.getSaveDrawings(U0),preferences:this.getSavePreferences(U0),newChart:this.getRetoggleEvents(U0)});for(var k7 in P1){if(P1[k7]){M$.addEventListener(k7,P1[k7]);}}t3=U0.nameValueStore || S4.NameValueStore || u8;t3=new t3();w4B.a9S();if(!i$){if(U0.restore){this.restorePreferences(M$,A7);this.restoreLayout(M$,y6=>{w4B.D0H();if(!M$.chart.symbol && U0.initialSymbol){y7();}else {w2();}},A7);}else {y7();}}return M$;};S4.ChartEngine.getSaveLayout=function(i3){return function K7({stx:w1}){var m5;if(i3.restore && w1.exportLayout){m5=JSON.stringify(w1.exportLayout(!0));t3.set("myChartLayout" + (i3.chartId || ""),m5);}};};S4.ChartEngine.restoreLayout=function(f_,i8,b3){var {restoreDrawings:o$}=this;if(!b3){b3="";}w4B.H6P(0);t3.get(w4B.S40("myChartLayout",b3),function(o5,C3){if(o5){return;}try{C3=JSON.parse(C3);}catch(K_){}w4B.a9S();if(f_.importLayout){f_.importLayout(C3,{managePeriodicity:!0,cb:m6});}if(f_.termStructure){f_.setCandleWidth(1);;}});function m6(){o$(f_,f_.chart.symbol,b3);w4B.a9S();if(i8){i8();}}};S4.ChartEngine.getSaveDrawings=function(h1){return function N$({stx:M8, symbol:J2}){var I1,Y9;w4B.D0H();if(h1.restore && M8.exportDrawings){I1=M8.exportDrawings();Y9=h1.chartId?h1.chartId + (+"567" != "4080" >> 0?(+"6479",3095) > (+"382.78",7827)?(9248,3535) < +"13"?"682.14" - 0:0x14c0:"~":!!"") + J2:J2;if(I1.length === 0){t3.remove(Y9);}else {t3.set(Y9,JSON.stringify(I1));}}};};S4.ChartEngine.restoreDrawings=function(G_,z9,B8){var A4;if(!S4.Drawing){return;}A4=B8?B8 + "~" + z9:z9;t3.get(A4,function(u5,g8){if(u5){return;}try{g8=JSON.parse(g8);}catch(g6){}if(g8){G_.importDrawings(g8);G_.draw();}});};S4.ChartEngine.getSavePreferences=function(d$){return function O9({stx:i1}){var Z8;w4B.a9S();if(d$.restore && i1.exportPreferences){Z8=JSON.stringify(i1.exportPreferences());t3.set("myChartPreferences" + (d$.chartId || ""),Z8);}};};S4.ChartEngine.restorePreferences=function(U$,a0){var x$B;x$B="myCh";x$B+="ar";x$B+="tPreferences";if(!a0){a0="";}w4B.D0J(0);t3.get(w4B.S40(x$B,a0),function(S6,X5){if(S6){return;}w4B.D0H();try{X5=JSON.parse(X5);}catch(J_){}if(X5 && U$.importPreferences){U$.importPreferences(X5);}});};S4.ChartEngine.getRetoggleEvents=function(Z5){w4B.D0H();return function f2({stx:n4}){var d2,W8;d2=document.getElementById(Z5.chartId);w4B.D0H();if(!d2){d2=(S4.getFn("UI.getMyContext")(n4.container) || ({})).topNode;}if(!d2){d2=document;}W8=d2.querySelectorAll(`${Z5.selector.markersMenuItem}.ciq-active:not(.span-event)`);W8.forEach(function(f4){f4.dispatchEvent(new Event("stxtap"));});};};};Q=m0=>{var f0;f0=typeof _CIQ !== "undefined"?_CIQ:m0.CIQ;f0.ChartEngine.prototype.drawHeatmap=function(O8,s_){var F$z,I5,M_,A6,V6,s0,i0,q9,c5,p7,g0,R3,K1,s$,v$;F$z="ch";F$z+="art";if(!s_ || !s_.length){return;}I5=O8.panel;if(!I5){I5=F$z;}M_=this.panels[I5];function k6(T1,E5,B2,W6,l6,i9,L_,v6){var C1b=A2IFV;var z8M,u5r,r4,F7,O_,d3,b8,G11,B_,r$,A9,t7,c1,T7,o0,l2,Z7;z8M="obje";z8M+="ct";u5r="cen";u5r+="ter";i0.beginPath();i0.fillStyle=E5;i0.strokeStyle=E5;i0.textAlign=u5r;r4=K1.layout.candleWidth * l6;F7=Math.floor(K1.pixelFromBar(0,M_.chart) - K1.layout.candleWidth);if(typeof B2 == "number"){C1b.D0J(1);i0.globalAlpha=C1b.q7n(c5,B2);}if(typeof B2 == z8M){b8={minOpacity:B2.min || 0,maxOpacity:B2.max || 1};}for(var D4=0;D4 < V6.length;D4++){G11="n";G11+="umb";G11+="er";B_=V6[D4];if(B_ && B_.candleWidth){if(D4 === 0){F7+=K1.layout.candleWidth;}else {C1b.H6P(2);var z54=C1b.q7n(3,21,16);F7+=(B_.candleWidth + r4 / l6) / z54;}r4=B_.candleWidth * l6;}else {F7+=K1.layout.candleWidth;}C1b.H6P(3);O_=C1b.S40(r4,0,F7,L_,"2");C1b.H6P(4);d3=C1b.S40(r4,2,L_,F7);if(d3 - O_ < 2){C1b.H6P(5);d3=C1b.q7n(32,O_,"1");}if(!B_)continue;r$=B_[T1];if(!r$)continue;if(r$[v6]){r$=r$[v6];}if(typeof r$ == G11){r$=[r$];}for(var A8=0;A8 < r$.length;A8++){A9=r$[A8];t7=0;if(A9 instanceof Array){if(b8){C1b.D0J(6);var b$i=C1b.S40(19,0,9,8,1);i0.globalAlpha=c5 * (A9[b$i] * b8.maxOpacity + (("1" >> 0) - A9[+"2"]) * b8.minOpacity);}t7=A9[1];A9=A9[0];}c1=K1.pixelFromPrice(A9,M_,A6);if(!s$){if(!i9){i9=O8.height;}T7=K1.pixelFromPrice(A9 + i9 * (A6.flipped?1:-+"1"),M_,A6);i0.lineWidth=1;C1b.H6P(7);g0=C1b.S40(c1,T7);C1b.H6P(8);R3=C1b.S40(g0,"2");s$=i0.lineWidth;}if(W6){C1b.D0J(7);o0=C1b.q7n(R3,c1);C1b.H6P(0);l2=C1b.S40(c1,R3);C1b.D0J(7);i0.rect(O_,o0,C1b.q7n(O_,d3),C1b.q7n(o0,l2));}else {C1b.D0J(7);i0.fillRect(O_,C1b.q7n(R3,c1),C1b.q7n(O_,d3),g0);if(O8.showSize && t7 && q9 <= g0 - 2){Z7=i0.globalAlpha;i0.fillStyle=K1.defaultColor;C1b.D0J(1);i0.globalAlpha=C1b.S40(c5,0.5);C1b.D0J(9);i0.fillText(t7,C1b.S40(2,O_,d3),c1);i0.fillStyle=E5;C1b.H6P(1);i0.globalAlpha=C1b.S40(c5,Z7);}}if(b8 && A9 instanceof Array){i0.globalAlpha=0;}}}if(W6){i0.stroke();}i0.globalAlpha=c5;i0.closePath();}if(!M_){return;}A6=O8.yAxis?O8.yAxis:M_.yAxis;V6=this.chart.dataSegment;if(!O8.name){O8.name="Data";}if(!O8.widthFactor){O8.widthFactor=1;}if(!O8.height){O8.height=Math.pow(10,1 - (M_.decimalPlaces || M_.chart.decimalPlaces));}s0="stx-float-date";i0=this.chart.context;this.canvasFont(s0,i0);q9=this.getCanvasFontSize(s0);c5=1;if(!O8.highlight && this.highlightedDraggable){c5=0.3;}p7=0.5;if(M_.chart.tmpWidth <= 1){p7=0;}g0=null;R3=null;K1=this;s$=null;A2IFV.D0H();this.startClip(I5);i0.globalAlpha=c5;for(var F1="0" * 1;F1 < s_.length;F1++){v$=s_[F1];k6(v$.field,v$.color,v$.opacity,null,O8.widthFactor,v$.height,v$.border_color?p7:-p7 / ("4" >> 96),v$.subField);if(v$.border_color && this.layout.candleWidth >= 2){k6(v$.field,v$.border_color,v$.opacity,!!"1",O8.widthFactor,v$.height,p7,v$.subField);}}i0.lineWidth=1;i0.globalAlpha=1;this.endClip();};f0.ChartEngine.prototype.drawCandles=function(G6,P2,E8){var T93=A2IFV;var v_F,z$,V0,S7,c$,T0,A25,p20,j3u,D1,L5,Z0,M4,q_,i4,w8,z2,G1,R5,x3,F9,c4,L8,s2,d6,u1,M6,Y8,Z9,B6,n0,G3,r1,S2,T5,h7,g_,U7,l$;v_F="o";v_F+="bje";v_F+="c";v_F+="t";z$=G6.chart;if(!z$){z$=G6;G6=G6.chart;}V0=!!0;S7=!1;c$=null;T0=G6.yAxis;if(E8 && typeof E8 == v_F){V0=E8.isOutline;S7=E8.isHistogram;c$=E8.field;T0=E8.yAxis;}else {A25=-+"779852817";T93.H6P(10);p20=T93.S40("384688691",32);j3u=2;for(var e_X=+"1";T93.Z2Z(e_X.toString(),e_X.toString().length,4408) !== A25;e_X++){V0=E8;S7=arguments[3];j3u+=2;}if(T93.Z2Z(j3u.toString(),j3u.toString().length,83805) !== p20){V0=E8;S7=arguments[4];}}D1=z$.dataSegment;L5=z$.context;Z0=T0.top;M4=T0.bottom;z2=new Array(D1.length);G1="t";G1+="ransp";T93.D0H();G1+="arent";R5="transparent";x3=0;T93.H6P(11);var i9t=T93.q7n(0,2,9,5);F9=z$.dataSet.length - z$.scroll - i9t;c4={};T93.H6P(12);var b7T=T93.q7n(14,1,14);L8=z$.tmpWidth / b7T;s2=this.layout.candleWidth;T93.D0J(0);var J9d=T93.q7n(0,1);T93.H6P(13);var f$E=T93.S40(4,10,5,10);d6=G6.left - "0.5" * J9d * s2 + this.micropixels - f$E;for(var A3=0;A3 <= D1.length;A3++){u1=L8;T93.H6P(8);d6+=T93.S40(s2,"2");s2=this.layout.candleWidth;T93.H6P(14);d6+=T93.S40(2,s2);M6=D1[A3];if(!M6)continue;if(M6.projection)continue;if(M6.candleWidth){T93.D0J(7);var y44=T93.S40(14,16);d6+=(M6.candleWidth - s2) / y44;s2=M6.candleWidth;if(E8.isVolume || s2 < z$.tmpWidth){T93.H6P(14);u1=T93.q7n(2,s2);}}if(z$.transformFunc && T0 == z$.panel.yAxis && M6.transform){M6=M6.transform;}if(M6 && c$){M6=M6[c$];}if(!M6 && M6 !== 0)continue;Y8=M6.Close;Z9=M6.Open === undefined?Y8:M6.Open;if(S7 && z$.defaultPlotField){Y8=M6[z$.defaultPlotField];}if(!Y8 && Y8 !== 0)continue;if(!S7 && (Z9 == Y8 || Z9 === null))continue;B6=P2(this,M6,V0?"outline":"solid");if(!B6)continue;if(V0){G1=B6;}else {R5=B6;}c4[R5]=1;n0=G1 && !f0.isTransparent(G1);if(n0 && !E8.highlight){T93.D0J(7);x3=T93.S40(0,"0.5");}L5.beginPath();L5.fillStyle=R5;if(!M6.cache){M6.cache={};}G3=M6.cache;T93.D0J(0);r1=T93.S40(F9,A3);if(r1 < G6.cacheLeft || r1 > G6.cacheRight || !G3.open){S2=T0.semiLog?T0.height * (1 - (Math.log(Math.max(Z9,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - Z9) * T0.multiplier;T5=T0.semiLog?T0.height * (1 - (Math.log(Math.max(Y8,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - Y8) * T0.multiplier;if(T0.flipped){T93.H6P(7);S2=T93.S40(S2,M4);T93.H6P(7);T5=T93.q7n(T5,M4);}else {S2+=Z0;T5+=Z0;}z2[A3]=T5;q_=Math.floor(S7?T5:Math.min(S2,T5)) + x3;i4=S7?T0.bottom:Math.max(S2,T5);T93.H6P(7);w8=Math.floor(T93.S40(q_,i4));if(q_ < Z0){if(q_ + w8 < Z0){G3.open=q_;G3.close=q_;continue;}T93.D0J(7);w8-=T93.q7n(q_,Z0);q_=Z0;}if(q_ + w8 > M4){T93.D0J(15);w8-=T93.q7n(w8,q_,M4);}w8=Math.max(w8,+"2");G3.open=q_;G3.close=G3.open + w8;}if(G3.open >= M4)continue;if(G3.close <= Z0)continue;h7=Math.floor(d6) + (!E8.highlight && 0.5);g_=Math.floor(h7 - u1) + x3;U7=Math.round(h7 + u1) - x3;if(G3.open != G3.close){L5.rect(g_,G3.open,Math.max(1,U7 - g_),Math.max(1,G3.close - G3.open));}if(!E8.highlight && this.highlightedDraggable){L5.globalAlpha*=0.3;}if(R5 != "transparent"){L5.fill();}if(n0){L5.lineWidth=1;if(E8.highlight){L5.lineWidth*=2;}L5.strokeStyle=G1;L5.stroke();}}l$={colors:[],cache:z2};for(var p8 in c4){if(!E8.hollow || !f0.equals(p8,this.containerColor)){l$.colors.push(p8);}}return l$;};f0.ChartEngine.prototype.drawShadows=function(P4,M2,y8){var i8A=A2IFV;var h9,J9,B1,V3,l9,S0,x7,K0,e1,r8,U1,Z1,p_,u7,T3,n_,J7,g3,G5,H1,V4,H_,B0,Y1,T_,H$;h9=P4.chart;if(!h9){h9=P4;P4=P4.chart;}J9=h9.dataSegment;B1=this.chart.context;B1.lineWidth=1;if(y8.highlight){B1.lineWidth*=2;}if(!y8.highlight && this.highlightedDraggable){B1.globalAlpha*=0.3;}V3=y8.field;l9=y8.yAxis || P4.yAxis;S0=l9.top;x7=l9.bottom;K0=h9.dataSet.length - h9.scroll - +"1";e1=this.layout.candleWidth;i8A.D0J(16);var h6V=i8A.S40(13,14);r8=P4.left - 0.5 * e1 + this.micropixels - h6V;i8A.D0H();for(var N7=+"0";N7 <= J9.length;N7++){i8A.D0J(14);r8+=i8A.q7n(2,e1);e1=this.layout.candleWidth;i8A.H6P(14);r8+=i8A.q7n(2,e1);U1=J9[N7];if(!U1)continue;if(U1.projection)continue;if(U1.candleWidth){i8A.D0J(17);var Y_q=i8A.q7n(13,19,1,7,15);r8+=(U1.candleWidth - e1) / Y_q;e1=U1.candleWidth;}Z1=M2(this,U1,"shadow");if(!Z1)continue;if(h9.transformFunc && l9 == h9.panel.yAxis && U1.transform){U1=U1.transform;}if(U1 && V3){U1=U1[V3];}if(!U1 && U1 !== 0)continue;p_=U1.Close;u7=U1.Open === undefined?p_:U1.Open;T3=U1.High === undefined?Math.max(p_,u7):U1.High;n_=U1.Low === undefined?Math.min(p_,u7):U1.Low;if(!p_ && p_ !== 0)continue;if(!U1.cache){U1.cache={};}J7=U1.cache;i8A.H6P(0);g3=i8A.q7n(K0,N7);if(g3 < P4.cacheLeft || g3 > P4.cacheRight || !J7.top){G5=l9.semiLog?l9.height * (1 - (Math.log(Math.max(T3,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - T3) * l9.multiplier;H1=l9.semiLog?l9.height * (+"1" - (Math.log(Math.max(n_,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - n_) * l9.multiplier;if(l9.flipped){i8A.H6P(7);G5=i8A.q7n(G5,x7);i8A.D0J(7);H1=i8A.S40(H1,x7);}else {G5+=S0;H1+=S0;}i8A.H6P(7);V4=i8A.S40(G5,H1);if(G5 < S0){if(G5 + V4 < S0){J7.top=G5;J7.bottom=G5;continue;}i8A.D0J(7);V4-=i8A.q7n(G5,S0);G5=S0;}if(G5 + V4 > x7){i8A.H6P(15);V4-=i8A.S40(V4,G5,x7);}J7.top=G5;J7.bottom=J7.top + V4;}if(J7.top >= x7)continue;if(J7.bottom <= S0)continue;H_=Math.floor(r8) + (!y8.highlight && 0.5);B1.beginPath();if(p_ == u7){B0=this.offset;if(y8.isVolume){i8A.D0J(14);B0=i8A.q7n(2,e1);}i8A.H6P(7);Y1=i8A.S40(B0,H_);i8A.H6P(0);T_=i8A.S40(H_,B0);H$=l9.semiLog?l9.height * (1 - (Math.log(Math.max(p_,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - p_) * l9.multiplier;if(l9.flipped){i8A.D0J(7);H$=i8A.S40(H$,x7);}else {H$+=S0;}if(H$ <= x7 && H$ >= S0){B1.moveTo(Y1,H$);B1.lineTo(T_,H$);}}if(T3 != n_){B1.moveTo(H_,J7.top);B1.lineTo(H_,J7.bottom);}B1.strokeStyle=Z1;B1.stroke();}};f0.ChartEngine.prototype.drawBarChart=function(U4,W4,u2,G0){var Q$S=A2IFV;var I3,S3,S$,Y7,x$,O2,x4,R1,c6,N6,i_,E6,o9,l7,d_,H6,R27,K4,l0,v_,z5,J6,q1,d4,L$,V2,T9,k9,j8;I3=U4.chart;if(!I3){I3=U4;U4=U4.chart;}S3=I3.dataSegment;S$=new Array(S3.length);Y7=I3.context;x$=this.canvasStyle(W4);if(x$.width && parseInt(x$.width,10) <= 25){Y7.lineWidth=Math.max(1,f0.stripPX(x$.width));}else {Y7.lineWidth=1;}if(G0.highlight){Y7.lineWidth*=2;}if(!G0.highlight && this.highlightedDraggable){Y7.globalAlpha*=0.3;}O2=G0.field;x4=G0.yAxis || U4.yAxis;R1=x4.top;c6=x4.bottom;Q$S.D0J(18);var V6I=Q$S.q7n(13,13,0);i_=I3.dataSet.length - I3.scroll - V6I;E6={};Q$S.D0J(13);var q7x=Q$S.S40(0,25,10,5);o9=I3.tmpWidth / q7x;Q$S.H6P(19);var A4R=Q$S.S40(0,15,20,33);l7=Y7.lineWidth / A4R;d_=this.layout.candleWidth;H6=U4.left - 0.5 * d_ + this.micropixels - +"1";for(var A$=0;A$ <= S3.length;A$++){R27="h";R27+="l";R27+="c";Q$S.H6P(14);H6+=Q$S.S40(2,d_);d_=this.layout.candleWidth;Q$S.H6P(14);H6+=Q$S.S40(2,d_);K4=S3[A$];if(!K4)continue;if(K4.projection)break;if(K4.candleWidth){Q$S.H6P(20);var N0G=Q$S.S40(13,0,123,10,9);H6+=(K4.candleWidth - d_) / N0G;d_=K4.candleWidth;}l0=u2(this,K4);if(!l0)continue;Q$S.H6P(21);E6[l0]=Q$S.S40("1",0);Y7.strokeStyle=l0;Y7.beginPath();if(I3.transformFunc && x4 == I3.panel.yAxis && K4.transform){K4=K4.transform;}if(K4 && O2){K4=K4[O2];}if(!K4 && K4 !== 0)continue;v_=K4.Close;z5=K4.Open === undefined?v_:K4.Open;J6=K4.High === undefined?Math.max(v_,z5):K4.High;q1=K4.Low === undefined?Math.min(v_,z5):K4.Low;if(!v_ && v_ !== 0)continue;if(!K4.cache){K4.cache={};}d4=K4.cache;Q$S.D0J(0);L$=Q$S.q7n(i_,A$);if(L$ < U4.cacheLeft || L$ > U4.cacheRight || !d4.top){V2=this.pixelFromTransformedValue(J6,U4,x4);T9=this.pixelFromTransformedValue(q1,U4,x4);d4.open=x4.semiLog?x4.height * (1 - (Math.log(Math.max(z5,0)) / Math.LN10 - x4.logLow) / x4.logShadow):(x4.high - z5) * x4.multiplier;d4.close=x4.semiLog?x4.height * (+"1" - (Math.log(Math.max(v_,0)) / Math.LN10 - x4.logLow) / x4.logShadow):(x4.high - v_) * x4.multiplier;if(x4.flipped){d4.open=x4.bottom - d4.open;d4.close=x4.bottom - d4.close;}else {d4.open+=x4.top;d4.close+=x4.top;}S$[A$]=d4.close;Q$S.H6P(7);N6=Q$S.S40(V2,T9);if(V2 < R1){if(V2 + N6 < R1){d4.top=V2;d4.bottom=V2;continue;}Q$S.H6P(7);N6-=Q$S.q7n(V2,R1);V2=R1;}if(V2 + N6 > c6){Q$S.H6P(15);N6-=Q$S.S40(N6,V2,c6);}d4.top=V2;Q$S.D0J(0);d4.bottom=Q$S.S40(V2,N6);}Q$S.H6P(7);var M6s=Q$S.S40(18,19);k9=Math.floor(H6) + (!G0.highlight && "0.5" * M6s);if(d4.top < c6 && d4.bottom > R1 && K4.High != K4.Low){Y7.moveTo(k9,d4.top - l7);Y7.lineTo(k9,d4.bottom + l7);}if(G0.type != R27 && d4.open > R1 && d4.open < c6){Y7.moveTo(k9,d4.open);Q$S.D0J(7);Y7.lineTo(Q$S.S40(o9,k9),d4.open);}if(d4.close > R1 && d4.close < c6){Y7.moveTo(k9,d4.close);Q$S.D0J(0);Y7.lineTo(Q$S.S40(k9,o9),d4.close);}Y7.stroke();}Y7.lineWidth=1;j8={colors:[],cache:S$};for(var B3 in E6){if(!f0.equals(B3,this.containerColor)){j8.colors.push(B3);}}return j8;};f0.ChartEngine.prototype.drawWaveChart=function(d9,Y3){var b9$=A2IFV;var V1k,b9,T2,f1,P8,a6,R2,E7,O5,E0,g9,a_,W9,D9,K9,j_,J5,R8,K6,Y4,l8,I6,D$,m7;V1k="stx";V1k+="_line_ch";V1k+="art";b9=d9.chart;T2=b9.dataSegment;f1=new Array(T2.length);P8=b9.context;if(!Y3){Y3={};}a6=Y3.yAxis || d9.yAxis;this.startClip(d9.name);P8.beginPath();R2=!1;function w4(P5){return a_.pixelFromTransformedValue(P5,d9,a6);}E7=![];O5=d9.yAxis.top;E0=d9.yAxis.bottom;g9=d9.left + Math.floor(-+"0.5" * this.layout.candleWidth + this.micropixels);a_=this;for(var G9=0;G9 <= T2.length;G9++){g9+=this.layout.candleWidth;W9=T2[G9];if(!W9)continue;if(W9.projection)break;if(b9.transformFunc && a6 == b9.panel.yAxis && W9.transform){W9=W9.transform;}if(W9 && Y3.field){W9=W9[Y3.field];}if(!W9 && W9 !== 0)continue;D9=W9.Close;K9=W9.Open === undefined?D9:W9.Open;j_=W9.High === undefined?Math.max(D9,K9):W9.High;J5=W9.Low === undefined?Math.min(D9,K9):W9.Low;if(!D9 && D9 !== 0)continue;b9$.D0J(22);var f4I=b9$.q7n(1,11,23,250);b9$.H6P(23);var c3b=b9$.S40(7,24,34,11,1);R8=g9 - f4I * this.layout.candleWidth / c3b;K6=w4(K9);if(K6 < O5){K6=O5;if(E7){P8.moveTo(R8,K6);continue;}E7=!![];}else if(K6 > E0){K6=E0;if(E7){P8.moveTo(R8,K6);continue;}E7=!0;}else {E7=![];}if(!R2){R2=!![];Y4=b9.dataSet.length - b9.scroll - +"1";if(Y4 < 0){P8.moveTo(R8,K6);}else if(Y4 >= 0){l8=b9.dataSet[Y4];if(l8.transform){l8=l8.transform;}I6=l8.Close;I6=w4(I6);I6=Math.min(Math.max(I6,O5),E0);P8.moveTo(d9.left + (G9 - 1) * this.layout.candleWidth + this.micropixels,I6);P8.lineTo(R8,K6);}P8.moveTo(R8,K6);}else {P8.lineTo(R8,K6);}b9$.D0J(16);var P6B=b9$.q7n(7,11);R8+=this.layout.candleWidth / P6B;if(K9 < D9){K6=w4(J5);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);b9$.H6P(16);var r5Y=b9$.S40(10,14);R8+=this.layout.candleWidth / r5Y;K6=w4(j_);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}else {K6=w4(j_);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);R8+=this.layout.candleWidth / +"4";K6=w4(J5);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}b9$.D0J(24);var E$B=b9$.S40(5,9,16,10,5);R8+=this.layout.candleWidth / E$B;K6=w4(D9);f1[G9]=K6;if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}D$=this.canvasStyle("stx_line_chart");if(D$.width && parseInt(D$.width,10) <= 25){P8.lineWidth=Math.max(1,f0.stripPX(D$.width));}else {P8.lineWidth=1;}if(Y3.highlight){P8.lineWidth*=2;}this.canvasColor(V1k);if(Y3.color){P8.strokeStyle=Y3.color;}if(!Y3.highlight && this.highlightedDraggable){P8.globalAlpha*=+"0.3";}P8.stroke();P8.closePath();m7={colors:[P8.strokeStyle],cache:f1};this.endClip();P8.lineWidth=1;return m7;};f0.ChartEngine.prototype.drawHistogram=function(r9,v3){var j2E=A2IFV;var L1_,z8,L3,A5,b2,T$,a4,X9,u0,p2,S5,q8,S8,w$,a1,h_,U9,c$e,T4z,W5k,k0,Q0,a5,M1,P$,C7,h$,e0,J8,V1,A9f,i2b,Y$,r3,L2,X4,k_,D5e;L1_="c";L1_+="ha";L1_+="rt";if(!v3 || !v3.length){return;}z8=r9.panel;if(!z8){z8=L1_;}L3=this.panels[z8];function f8(w3,p4,g$,Q4,p5,h4,o4,P6,y$){var f6,s1,P3,k90,z5o,F5,t4,B4,x5,r0,V8,C8,C$,D7,M7,L1,E$o;if(!Q4){Q4=1;}P$.globalAlpha=Q4;P$.beginPath();j2E.D0J(0);f6=j2E.S40(k0,0.5);s1=Math.floor(J8.pixelFromBar(0,L3.chart) - J8.layout.candleWidth / ("2" ^ 0));P3=s1;for(var C5=0;C5 < T$.length;C5++){k90="clu";k90+="stered";z5o="o";z5o+="b";z5o+="jec";z5o+="t";F5=e0[C5] || k0;if(C5 === 0){f6=F5;}if(!T$[C5] || !T$[C5][w3]){f6=F5;P3+=J8.layout.candleWidth;continue;}t4=T$[C5];B4=t4[w3];if(typeof B4 == z5o && B4[p4]){B4=B4[p4];}j2E.D0J(25);x5=j2E.q7n(w$,B4,q8);if(isNaN(x5))continue;r0=J8.layout.candleWidth;if(t4.candleWidth){r0=t4.candleWidth;if(C5 === 0){s1=P3=Math.floor(J8.pixelFromBar(0,L3.chart) - t4.candleWidth / 2);}}V8=Math.floor(F5 - x5) + 0.5;if(V8 > F5 && !Q0){V8=F5;}if(y$ && y$.indexOf(C5) == -1 || !y$ && (h4 && t4.Close < t4.iqPrevClose || !h4 && t4.Close >= t4.iqPrevClose)){f6=V8;P3+=r0;continue;}C8=r0 / J8.layout.candleWidth;if(C7){j2E.H6P(26);C$=Math.round(j2E.S40(P3,C7,P6,C8,o4));j2E.D0J(0);D7=j2E.q7n(C$,p5?0:M1);j2E.D0J(27);var d06=j2E.S40(18,8,209,8);M7=C$ + Math.round(P6 * C8) - (p5?"0" * d06:M1);}else {j2E.D0J(26);C$=j2E.S40(P3,C7,P6,C8,o4);D7=Math.round(C$) + (p5?+"0":M1);M7=Math.round(C$ + P6 * C8) - (p5?0:M1);}if(M7 - D7 < 2){j2E.D0J(0);M7=j2E.S40(D7,1);}L1=p5?0:0.5;if(D7 % 1 == L1){D7+=0.5;}if(M7 % 1 == L1){M7+=0.5;}P$.moveTo(M7,F5);if(k0 != F5 && p5 && !C7 && e0[C5 + 1]){P$.moveTo(M7,Math.max(V8,Math.min(F5,e0[C5 + 1])));}P$.lineTo(M7,V8);P$.lineTo(D7,V8);if(p5 && o4){if(h$[C5] > V8 || C5 === 0){P$.lineTo(D7,Math.min(F5,h$[C5]));}}else if(p5 && !C7 && b2 == "clustered"){if(C5 > ("0" | 0) && h$[C5 - 1] && h$[C5 - 1] > V8){P$.lineTo(D7,Math.min(F5,h$[C5 - 1]));}}else if(p5 && !C7){if(f6 > V8 || C5 === 0){P$.lineTo(D7,Math.min(F5,f6));}}else {P$.lineTo(D7,F5);}f6=V8;P3+=r0;if(b2 != k90 || p5){h$[C5]=V8;}}if(p5){E$o="a";E$o+="uto";P$.strokeStyle=!g$ || g$ == E$o?J8.defaultColor:g$;P$.stroke();}else {P$.fillStyle=!g$ || g$ == "auto"?J8.defaultColor:g$;P$.fill();}P$.closePath();}if(!L3){return;}A5=r9.yAxis?r9.yAxis:L3.yAxis;b2=r9.type;T$=this.chart.dataSegment;a4=!({});X9=1;j2E.D0J(7);u0=j2E.S40(0,"1");for(S5=0;S5 < v3.length;S5++){a4|=v3[S5].border_color_up && !f0.isTransparent(v3[S5].border_color_up);a4|=v3[S5].border_color_down && !f0.isTransparent(v3[S5].border_color_down);X9=v3[S5].opacity_up;u0=v3[S5].opacity_down;if(!r9.highlight && this.highlightedDraggable){X9*=0.3;u0*=0.3;}}if(r9.borders === !1){a4=!1;}if(!r9.name){r9.name="Data";}q8=A5.multiplier;if(!r9.heightPercentage){r9.heightPercentage=+"0.7";}if(!r9.widthFactor){r9.widthFactor=0.8;}j2E.H6P(28);S8=j2E.q7n("0",0);w$=0;for(var t6=+"0";t6 < this.chart.maxTicks;t6++){a1=T$[t6];if(!a1)continue;h_=0;for(S5=+"0";S5 < v3.length;S5++){U9=a1[v3[S5].field];if(U9 || U9 === 0){c$e="st";c$e+="ac";c$e+="k";c$e+="ed";T4z="C";T4z+="los";T4z+="e";p2=v3[S5].subField || this.chart.defaultPlotField || T4z;if(typeof U9 == "object" && U9[p2]){U9=U9[p2];}if(b2 == c$e){h_+=U9;}else {h_=U9;}if(h_ > S8){S8=h_;}if(h_ < w$){w$=h_;}}}}j2E.a9S();if(S8 === 0 && w$ === "0" * 1){W5k=" Not ";W5k+="Ava";W5k+="ilab";W5k+="le";this.displayErrorAsWatermark(z8,this.translateIf(r9.name + W5k));return;}Q0=![];if(!r9.bindToYAxis){if(A5.flipped){k0=Math.floor(A5.top) - 0.5;a5=Math.floor(A5.bottom) - ("0.5" - 0);}else {k0=Math.floor(A5.bottom) + 0.5;a5=Math.floor(A5.top) + 0.5;}q8=Math.abs(k0 - a5) * r9.heightPercentage / (S8 - w$);}else {if(A5.baseline){w$=A5.baseline.value;Q0=!!({});}k0=Math.floor(this.pixelFromPrice(w$,L3,A5)) + (A5.flipped?-0.5:0.5);}this.startClip(z8);M1=this.layout.candleWidth <= 1 || !a4?0:0.5;P$=this.chart.context;if(A5.flipped){P$.translate(0,("2" - 0) * A5.top);P$.scale(1,-1);}C7=Math.max(0,(1 - r9.widthFactor) * this.layout.candleWidth / 2);h$=new Array(T$.length);e0=[];J8=this;V1=1;for(S5=0;S5 < v3.length;S5++){A9f="s";A9f+="tac";A9f+="k";A9f+="ed";i2b="clus";i2b+="tere";i2b+="d";Y$=v3[S5];V1=this.layout.candleWidth * r9.widthFactor;if(C7){if(this.layout.candleWidth - V1 <= 2){a4=![];}}r3=0;if(b2 == i2b){r3=S5;V1/=v3.length;}p2=Y$.subField || this.chart.defaultPlotField || "Close";if(typeof Y$.color_function == "function"){X4={};for(var Q1=0;Q1 < T$.length;Q1++){if(T$[Q1]){D5e="border_op";D5e+="acit";D5e+="y";L2=Y$.color_function(T$[Q1]);if(typeof L2 == "string"){L2={fill_color:L2,border_color:L2};}if(!L2.hasOwnProperty(D5e)){L2.border_opacity=L2.opacity;}j2E.H6P(15);var D1r=j2E.q7n(12,18714,15607);j2E.D0J(7);var T9b=j2E.q7n(42480,50976);j2E.H6P(29);var Z50=j2E.S40(2853,1,25686,17,25703);j2E.D0J(0);var J1G=j2E.q7n(2,30);j2E.H6P(30);var p1C=j2E.q7n(7,304,232,10);j2E.H6P(31);var c7t=j2E.S40(2,1,7973,17822);j2E.H6P(32);var T8c=j2E.q7n(5030,2,387);j2E.D0J(15);var m33=j2E.S40(19,1097,16);j2E.D0J(13);var p3J=j2E.S40(18661,3,9,9337);k_=L2.fill_color + ((D1r,+"5530") != (T9b,+"139.69")?Z50 === "9200" << J1G?713.18:(484.23,p1C) <= (c7t,T8c)?",":m33:p3J) + L2.border_color;if((k_ in X4)){X4[k_].positions.push(Q1);}else {L2.positions=[Q1];X4[k_]=L2;}}}for(k_ in X4){L2=X4[k_];f8(Y$.field,p2,L2.fill_color,L2.opacity,null,null,r3,V1,L2.positions);f8(Y$.field,p2,L2.border_color,L2.border_opacity,!"",null,r3,V1,L2.positions);}}else {f8(Y$.field,p2,Y$.fill_color_up,X9,null,!!1,r3,V1);f8(Y$.field,p2,Y$.fill_color_down,u0,null,null,r3,V1);if(this.layout.candleWidth >= 2 && a4){f8(Y$.field,p2,Y$.border_color_up,X9,!"",!!({}),r3,V1);f8(Y$.field,p2,Y$.border_color_down,u0,!"",null,r3,V1);}}if(b2 == A9f){e0=f0.shallowClone(h$);}}P$.globalAlpha=1;this.endClip();};f0.ChartEngine.prototype.scatter=function(s7,j4){var D_D=A2IFV;var o1G,n8,d5,M3,O4,F$,z0,I0,S9,G4,O0,E1,E2,U_,R0,M9,H4,b4,l_;o1G="s";o1G+="tx_sca";o1G+="tter_ch";o1G+="art";n8=s7.chart;d5=n8.dataSegment;M3=new Array(d5.length);O4=this.chart.context;this.canvasColor(o1G);if(!j4){j4={};}F$=j4.field || n8.defaultPlotField;z0=j4.yAxis || s7.yAxis;I0=j4.subField || n8.defaultPlotField || "Close";this.startClip(s7.name);O4.beginPath();O4.lineWidth=j4.lineWidth || 4;if(j4.highlight){O4.lineWidth*=+"2";}if(!j4.highlight && this.highlightedDraggable){O4.globalAlpha*=0.3;}if(j4.color){O4.strokeStyle=j4.color;}S9=z0.top;G4=z0.bottom;O0=this.layout.candleWidth;D_D.H6P(33);var C_m=D_D.S40(5,17,18,7);D_D.H6P(18);var O3I=D_D.S40(7,1,6);E1=s7.left - "0.5" * C_m * O0 + this.micropixels - O3I;for(var y9=0;y9 <= d5.length;y9++){D_D.H6P(14);E1+=D_D.S40(2,O0);O0=this.layout.candleWidth;D_D.H6P(14);E1+=D_D.q7n(2,O0);E2=d5[y9];if(!E2)continue;if(E2.candleWidth){D_D.D0J(34);var d84=D_D.S40(0,13,20,3,52);E1+=(E2.candleWidth - O0) / d84;O0=E2.candleWidth;}if(!E2.projection){if(n8.transformFunc && z0 == n8.panel.yAxis && E2.transform){E2=E2.transform;}U_=E2[F$];if(U_ && U_[I0] !== undefined){U_=U_[I0];}if(!(U_ instanceof Array)){U_=[U_];}if(("Scatter" in E2)){U_=E2.Scatter;}for(var Y6=0;Y6 < U_.length;Y6++){if(!U_[Y6] && U_[Y6] !== 0)continue;R0=U_[Y6];M9=0;if(U_[Y6] instanceof Array){R0=U_[Y6][0];M9=U_[Y6][2];}H4=z0.semiLog?z0.height * ("1" * 1 - (Math.log(Math.max(R0,0)) / Math.LN10 - z0.logLow) / z0.logShadow):(z0.high - R0) * z0.multiplier;if(z0.flipped){D_D.D0J(7);H4=D_D.q7n(H4,G4);}else {H4+=S9;}if(H4 < S9)continue;if(H4 > G4)continue;b4=2;if(M9){D_D.H6P(1);b4=D_D.q7n(M9,O0);}D_D.D0J(7);O4.moveTo(D_D.q7n(b4,E1),H4);D_D.D0J(0);O4.lineTo(D_D.q7n(E1,b4),H4);M3[y9]=H4;}}}O4.stroke();O4.closePath();l_={colors:[O4.strokeStyle],cache:M3};this.endClip();O4.lineWidth=1;return l_;};};q=V$=>{var G8$,h2H,I_4,v6o,S8d,u$z,m61,d2Z,p_M,w53,r_N,A9b,X_x,z85,t2z,O4v,y37,H_n,w05,b87,g0c,X2,o7;G8$="lin";G8$+="eWid";G8$+="th";h2H="c";h2H+="olor";I_4="ax";I_4+="i";I_4+="sLa";I_4+="bel";v6o="pat";v6o+="te";v6o+="r";v6o+="n";S8d="lineWid";S8d+="th";u$z="pa";u$z+="t";u$z+="te";u$z+="rn";m61="c";m61+="olor";d2Z="sol";d2Z+="i";d2Z+="d";p_M="a";p_M+="u";p_M+="t";p_M+="o";w53="a";w53+="u";w53+="t";w53+="o";r_N="a";r_N+="u";r_N+="t";r_N+="o";A9b="a";A9b+="u";A9b+="t";A9b+="o";X_x="a";X_x+="u";X_x+="t";X_x+="o";z85="soli";z85+="d";t2z="a";t2z+="u";t2z+="t";t2z+="o";O4v="a";O4v+="u";O4v+="to";y37="s";y37+="oli";y37+="d";H_n="so";H_n+="lid";w05="a";w05+="ut";w05+="o";b87="#7";b87+="DA6";b87+="F";b87+="5";g0c="u";g0c+="nde";g0c+="fined";X2=typeof _CIQ !== "undefined"?_CIQ:V$.CIQ;o7=typeof _timezoneJS !== g0c?_timezoneJS:V$.timezoneJS;X2.ChartEngine.drawingTools={};X2.ChartEngine.currentVectorParameters={vectorType:null,pattern:"solid",lineWidth:1,fillColor:b87,currentColor:w05,axisLabel:!0,fibonacci:{trend:{color:"auto",parameters:{pattern:H_n,opacity:0.25,lineWidth:"1" >> 32}},fibs:[{level:-0.786,color:"auto",parameters:{pattern:y37,opacity:+"0.25",lineWidth:1}},{level:-0.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!"1"},{level:-0.5,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}},{level:-0.382,color:O4v,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!({})},{level:-0.236,color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1}},{level:0,color:"auto",parameters:{pattern:"solid",lineWidth:1},display:!""},{level:0.236,color:t2z,parameters:{pattern:z85,opacity:+"0.25",lineWidth:1}},{level:0.382,color:X_x,parameters:{pattern:"solid",opacity:0.25,lineWidth:"1" | 0},display:!!"1"},{level:0.5,color:A9b,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!![]},{level:+"0.618",color:r_N,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!""},{level:0.786,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}},{level:1,color:"auto",parameters:{pattern:"solid",lineWidth:1},display:!""},{level:1.272,color:w53,parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:+"1.382",color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!1},{level:+"1.618",color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!!"1"},{level:2.618,color:p_M,parameters:{pattern:"solid",opacity:"0.25" * 1,lineWidth:1}},{level:4.236,color:"auto",parameters:{pattern:d2Z,opacity:"0.25" * 1,lineWidth:+"1"}}],extendLeft:!({}),printLevels:!!({}),printValues:!!"",timezone:{color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}}},annotation:{font:{style:null,size:null,weight:null,family:null}}};X2.ChartEngine.registerDrawingTool=function(C4,h5){X2.ChartEngine.drawingTools[C4]=h5;};X2.ChartEngine.prototype.setDrawingContainer=function(r_){this.drawingContainer=r_;};X2.ChartEngine.prototype.exportDrawings=function(){var k2;A2IFV.D0H();k2=[];for(var I_=+"0";I_ < this.drawingObjects.length;I_++){k2.push(this.drawingObjects[I_].serialize());}return k2;};X2.ChartEngine.prototype.abortDrawings=function(F8){var L4;if(F8 !== !"1"){F8=!![];}for(var A0=this.drawingObjects.length - 1;A0 >= 0;A0--){L4=this.drawingObjects[A0];L4.abort(!0);if(F8 || !L4.permanent){this.drawingObjects.splice(A0,1);}}};X2.ChartEngine.prototype.importDrawings=function(B$){var r6,s9,J$;if(!X2.Drawing){return;}for(var N8=0;N8 < B$.length;N8++){r6=B$[N8];if(r6.name == "fibonacci"){r6.name="retracement";}s9=X2.ChartEngine.drawingTools[r6.name];if(!s9){if(X2.Drawing[r6.name]){s9=X2.Drawing[r6.name];X2.ChartEngine.registerDrawingTool(r6.name,s9);}}if(s9){J$=new s9();J$.reconstruct(this,r6);this.drawingObjects.push(J$);}}};X2.ChartEngine.prototype.clearDrawings=function(m4,o6){A2IFV.a9S();var H0,O1;if(o6 !== !({})){o6=!"";}H0=this.exportDrawings();this.abortDrawings(o6);if(m4){this.undoStamps=[];}else {this.undoStamp(H0,this.exportDrawings());}this.changeOccurred("vector");this.cancelTouchSingleClick=!![];X2.clearCanvas(this.chart.tempCanvas,this);this.draw();O1=this.controls.mSticky;if(O1){O1.style.display="none";O1.children[0].innerHTML="";}};X2.ChartEngine.prototype.createDrawing=function(e9,x_){var n5,E$;if(!X2.Drawing){return;}n5=new X2.Drawing[e9]();A2IFV.D0H();n5.reconstruct(this,x_);E$=new X2.Drawing[e9]();E$.stx=this;E$.copyConfig();for(var Q7 in E$){n5[Q7]=n5[Q7] || E$[Q7];}this.drawingObjects.push(n5);this.draw();return n5;};X2.ChartEngine.prototype.removeDrawing=function(e6){for(var K$=0;K$ < this.drawingObjects.length;K$++){if(this.drawingObjects[K$] == e6){this.drawingObjects.splice(K$,1);this.changeOccurred("vector");this.draw();return;}};};X2.ChartEngine.prototype.undo=function(){var p7f,J_M,q16,Y$$,M8Q;p7f="un";p7f+="do";J_M="u";J_M+="nd";J_M+="o";if(this.runPrepend(J_M,arguments)){return;}if(this.activeDrawing){q16="stx";q16+="_crosshair";Y$$="st";Y$$+="x_cr";Y$$+="ossha";Y$$+="ir_drawing";M8Q="stx";M8Q+="_cr";M8Q+="osshair";this.activeDrawing.abort();this.activeDrawing.hidden=!({});this.drawingSnapshot=null;this.activateDrawing(null);X2.clearCanvas(this.chart.tempCanvas,this);this.draw();this.controls.crossX.classList.replace("stx_crosshair_drawing",M8Q);this.controls.crossY.classList.replace(Y$$,q16);X2.ChartEngine.drawingLine=!({});}this.runAppend(p7f,arguments);};X2.ChartEngine.prototype.undoStamp=function(z_,z7){var E1A;E1A="u";E1A+="ndoStamp";this.undoStamps.push(z_);this.dispatch(E1A,{before:z_,after:z7,stx:this});};X2.ChartEngine.prototype.undoLast=function(){if(this.activeDrawing){this.undo();}else {if(this.undoStamps.length){this.drawingObjects=[];this.importDrawings(this.undoStamps.pop());this.changeOccurred("vector");this.draw();}}};X2.ChartEngine.prototype.addDrawing=function(X1){var g7;g7=this.exportDrawings();this.drawingObjects.push(X1);A2IFV.D0H();this.undoStamp(g7,this.exportDrawings());};X2.ChartEngine.prototype.repositionDrawing=function(l1,R_){var R4,O$,s4;R4=this.panels[l1.panelName];A2IFV.D0H();O$=this.adjustIfNecessary(R4,this.crosshairTick,this.valueFromPixel(this.backOutY(X2.ChartEngine.crosshairY),R4));s4=this.chart.tempCanvas;X2.clearCanvas(s4,this);if(R_){this.drawingSnapshot=this.exportDrawings();l1.render(s4.context);}else {l1.reposition(s4.context,l1.repositioner,this.crosshairTick,O$);if(this.drawingSnapshot){this.undoStamp(X2.shallowClone(this.drawingSnapshot),this.exportDrawings());}this.drawingSnapshot=null;}if(l1.measure){l1.measure();}};X2.ChartEngine.prototype.activateRepositioning=function(i2){var C8s,O3;A2IFV.D0H();C8s="n";C8s+="o";C8s+="ne";O3=this.repositioningDrawing=i2;if(i2){this.draw();this.repositionDrawing(i2,!!1);}this.chart.tempCanvas.style.display=i2?"block":C8s;};X2.ChartEngine.prototype.activateDrawing=function(I$,H7){var z3k,W3;z3k="b";z3k+="lo";function a3(x8){var j6;if(!x8.layout.studies){return;}j6=x8.layout.studies[H7.name];if(j6 && !j6.overlay){delete x8.overlays[j6.name];}}z3k+="ck";if(!H7){H7=this.currentPanel;}if(!I$){this.activeDrawing=null;this.chart.tempCanvas.style.display="none";a3(this);return !!0;}W3=X2.ChartEngine.drawingTools[I$];if(!W3){if(X2.Drawing[I$]){W3=X2.Drawing[I$];X2.ChartEngine.registerDrawingTool(I$,W3);}}if(W3){this.activeDrawing=new W3();this.activeDrawing.construct(this,H7);if(!this.charts[H7.name]){if(this.activeDrawing.chartsOnly){this.activeDrawing=null;a3(this);return !!"";}}}this.chart.tempCanvas.style.display=z3k;if(this.controls.drawOk){this.controls.drawOk.style.display="none";}a3(this);return !0;};X2.ChartEngine.prototype.drawingClick=function(q3,H2,P9){var p6,b7,r5,y5t,e$T,D31;if(!X2.Drawing){return;}A2IFV.a9S();if(!q3){return;}if(this.openDialog !== ""){return;}if(!this.activeDrawing){if(!this.activateDrawing(this.currentVectorParameters.vectorType,q3)){return;}}if(this.activeDrawing){if(this.userPointerDown && !this.activeDrawing.dragToDraw){if(!X2.ChartEngine.drawingLine){this.activateDrawing(null);}return;}p6=this.tickFromPixel(H2,q3.chart);b7=this.panels[this.activeDrawing.panelName];r5=this.adjustIfNecessary(b7,p6,this.valueFromPixel(P9,b7));if(this.magnetizedPrice){r5=this.adjustIfNecessary(b7,p6,this.magnetizedPrice);}if(this.activeDrawing.click(this.chart.tempCanvas.context,p6,r5)){if(this.activeDrawing){X2.ChartEngine.drawingLine=!({});X2.clearCanvas(this.chart.tempCanvas,this);this.addDrawing(this.activeDrawing);this.activateDrawing(null);this.adjustDrawings();this.draw();this.changeOccurred("vector");this.controls.crossX.classList.replace("stx_crosshair_drawing","stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing","stx_crosshair");}}else {y5t="stx";y5t+="_cross";y5t+="h";y5t+="air_drawing";e$T="stx";e$T+="_cro";e$T+="s";e$T+="shair";D31="dra";D31+="wing";this.changeOccurred(D31);X2.ChartEngine.drawingLine=!![];this.controls.crossX.classList.replace("stx_crosshair","stx_crosshair_drawing");this.controls.crossY.classList.replace(e$T,y5t);}return !!({});}return ![];};X2.ChartEngine.prototype.rightClickDrawing=function(j5,o_){var e8,E_;if(this.runPrepend("rightClickDrawing",arguments)){return;}if(j5.permanent){return;}if(this.callbackListeners.drawingEdit.length){this.dispatch("drawingEdit",{stx:this,drawing:j5,forceEdit:o_});}else {e8=j5.abort();if(!e8){E_=this.exportDrawings();this.removeDrawing(j5);this.undoStamp(E_,this.exportDrawings());}this.changeOccurred("vector");}this.runAppend("rightClickDrawing",arguments);};X2.ChartEngine.prototype.magnetize=function(){var g0N=A2IFV;var Z_p,O5C,v8M,v_O,c0,c7,H5,N3,H3,h0,a7,N_,u$,I6t,U8,v2,R7,W1,X$,e5,V9,F3,j2,c2;Z_p="magn";Z_p+="etize";O5C="H";O5C+="igh";v8M="fr";v8M+="e";v8M+="e";v8M+="form";v_O="proj";v_O+="ection";this.magnetizedPrice=null;if(!this.preferences.magnet){return;}if(this.runPrepend("magnetize",arguments)){return;}if(this.repositioningDrawing){return;}c0=this.currentVectorParameters.vectorType;if(!c0 || c0 == v_O || c0 == v8M){return;}if((c0 == "annotation" || c0 == "callout") && X2.ChartEngine.drawingLine){return;}c7=this.currentPanel;H5=c7.chart;N3=this.crosshairTick;if(N3 > H5.dataSet.length){return;}H3=H5.dataSet[N3];if(!H3){return;}h0=H5.transformFunc && c7.yAxis === H5.yAxis;if(h0 && H3.transform){H3=H3.transform;}N_=this.getRenderedItems();u$=["Open",O5C,"Low","Close"];if(this.magneticHold && this.activeDrawing && this.activeDrawing.penDown){I6t="H";I6t+="igh";if(u$.indexOf(this.magneticHold) != -1 && N_.indexOf(I6t) != -1){N_=u$;}else {N_=[this.magneticHold];}}else {this.magneticHold=null;}U8=1000000000;v2=parseFloat(this.preferences.magnet);for(var i5=+"0";i5 < N_.length;i5++){R7=H3[N_[i5]];W1=this.getYAxisByField(c7,N_[i5]);X$=X2.existsInObjectChain(H3,N_[i5]);if(X$){R7=X$.obj[X$.member];}if(R7 || R7 === 0){e5=this.pixelFromTransformedValue(R7,c7,W1);if(Math.abs(this.cy - e5) < U8){U8=Math.abs(this.cy - e5);if(v2 && v2 <= U8)continue;this.magnetizedPrice=h0?this.valueFromPixel(e5,c7):R7;a7=e5;this.magneticHold=N_[i5];}}}V9=this.pixelFromTick(N3,H5);F3=a7;X2.clearCanvas(H5.tempCanvas,this);j2=H5.tempCanvas.context;j2.beginPath();j2.lineWidth=1;g0N.D0J(22);var a1L=g0N.S40(4,8,108,204);g0N.D0J(35);var l4C=g0N.q7n(3,10,18,18,135);c2=Math.max(this.layout.candleWidth,a1L) / l4C;j2.arc(V9,F3,Math.min(c2,"8" | 8),0,2 * Math.PI,!"1");j2.fillStyle="#398dff";g0N.D0H();j2.strokeStyle="#398dff";j2.fill();j2.stroke();j2.closePath();H5.tempCanvas.style.display="block";if(this.anyHighlighted){this.container.classList.remove("stx-draggable");}if(this.activeDrawing){this.activeDrawing.move(j2,this.crosshairTick,this.magnetizedPrice);}this.runAppend(Z_p,arguments);};X2.ChartEngine.prototype.changeVectorType=function(c_){this.currentVectorParameters.vectorType=c_;if(X2.Drawing){X2.Drawing.initializeSettings(this,c_);}if(X2.ChartEngine.drawingLine){this.undo();}A2IFV.D0H();if(this.insideChart){this.doDisplayCrosshairs();}};X2.ChartEngine.prototype.changeVectorParameter=function(a$,v8){var b$Z,a_d,y2Y,B5D,E4,J6D;b$Z="f";b$Z+="o";b$Z+="nt";a_d="p";a_d+="x";y2Y="tr";y2Y+="ue";B5D="axi";B5D+="sL";B5D+="abel";if(a$ == B5D){v8=v8.toString() === y2Y || Number(v8);}else if(a$ == "lineWidth"){v8=Number(v8);}else if(a$ == "fontSize"){A2IFV.D0J(36);var I1Q=A2IFV.q7n(19,0,9);v8=parseInt(v8,I1Q) + a_d;}E4=this.currentVectorParameters;if(typeof E4[a$] !== "undefined"){E4[a$]=v8;return !![];}else if(a$.substr(0,4) == b$Z){J6D="fam";J6D+="i";J6D+="ly";a$=a$.substr(4).toLowerCase();if(a$ == J6D && v8.toLowerCase() == "default"){v8=null;}E4=E4.annotation.font;if(typeof E4[a$] !== "undefined"){E4[a$]=v8;return !!({});}}return ![];};X2.ChartEngine.prototype.drawVectors=function(){var g65,K8O,O6,s3,s8,S_,V7;g65="draw";g65+="Vecto";g65+="rs";A2IFV.D0H();K8O="d";K8O+="raw";K8O+="V";K8O+="ectors";if(this.vectorsShowing){return;}if(this.runPrepend(K8O,arguments)){return;}this.vectorsShowing=!"";if(!this.chart.hideDrawings && !this.highlightedDraggable){O6={};for(s8=+"0";s8 < this.drawingObjects.length;s8++){S_=this.drawingObjects[s8];if(S_.hidden)continue;if(this.repositioningDrawing === S_)continue;s3=S_.panelName;if(!this.panels[S_.panelName] || this.panels[S_.panelName].hidden)continue;if(!O6[s3]){O6[s3]=[];}O6[s3].push(S_);}for(s3 in O6){this.startClip(s3);V7=O6[s3];for(s8=0;s8 < V7.length;s8++){V7[s8].render(this.chart.context);}this.endClip();}}this.runAppend(g65,arguments);};X2.ChartEngine.prototype.adjustDrawings=function(){var q2;for(var a9=0;a9 < this.drawingObjects.length;a9++){q2=this.drawingObjects[a9];if(this.panels[q2.panelName]){q2.adjust();}}};X2.Drawing=X2.Drawing || (function(){this.chartsOnly=!({});this.penDown=!({});;});X2.Drawing.getDrawingParameters=function(c3,o1){var w_,j9,v5,B5;try{w_=new X2.Drawing[o1]();}catch(z6){}if(!w_){return null;}w_.stx=c3;w_.copyConfig(!!1);j9={};v5=w_.configs;for(var F0=0;F0 < v5.length;F0++){j9[v5[F0]]=w_[v5[F0]];}B5=c3.canvasStyle("stx_annotation");A2IFV.D0H();if(B5 && j9.font){j9.font.size=B5.fontSize;j9.font.family=B5.fontFamily;j9.font.style=B5.fontStyle;j9.font.weight=B5.fontWeight;}return j9;};X2.Drawing.saveConfig=function(x9,W7){var E9a,X7,D6;E9a="prefer";E9a+="ences";if(!W7){return;}X7=x9.preferences;if(!X7.drawings){X7.drawings={};}X7.drawings[W7]={};D6=new X2.Drawing[W7]();D6.stx=x9;X2.Drawing.copyConfig(D6);D6.configs.forEach(function(a2){X7.drawings[W7][a2]=D6[a2];});x9.changeOccurred(E9a);};X2.Drawing.restoreDefaultConfig=function(F6,O7,P0){if(P0){F6.preferences.drawings=null;}else {F6.preferences.drawings[O7]=null;}A2IFV.a9S();F6.changeOccurred("preferences");F6.currentVectorParameters=X2.clone(X2.ChartEngine.currentVectorParameters);F6.currentVectorParameters.vectorType=O7;};X2.Drawing.initializeSettings=function(b5,h6){var i6,k$;i6=X2.Drawing[h6];if(i6){k$=new i6();if(k$.initializeSettings){k$.initializeSettings(b5);}}};X2.Drawing.updateSource=function(F2,u3,y5,Y2){var P1x,p3,X8;P1x="vect";P1x+="o";P1x+="r";if(!u3){return;}p3=!({});for(var T4 in F2.drawingObjects){X8=F2.drawingObjects[T4];if(!X8.field)continue;if(y5){if(X8.field == u3){X8.field=y5;p3=!0;}else if(X8.field.indexOf(u3) > -+"1" && X8.field.indexOf(u3 + "-") == -("1" * 1)){X8.field=X8.field.replace(u3,y5);p3=!"";}}else {if(X8.field.split("-->")[0] == u3 || X8.panelName == u3){X8.panelName=Y2;p3=!!({});}}}A2IFV.D0H();if(p3){F2.changeOccurred(P1x);}};X2.Drawing.prototype.copyConfig=function(u_){X2.Drawing.copyConfig(this,u_);};X2.Drawing.copyConfig=function(H8,D3){var u6,w7,h3,I2,h94,C_,v2y;u6=H8.stx.currentVectorParameters;w7=H8.configs;for(h3="0" >> 64;h3 < w7.length;h3++){h94="par";h94+="a";h94+="meters";I2=w7[h3];if(I2 == "color"){H8.color=u6.currentColor;}else if(I2 == h94){H8.parameters=X2.clone(u6.fibonacci);}else if(I2 == "font"){H8.font=X2.clone(u6.annotation.font);}else {H8[I2]=u6[I2];}}if(!D3){return;}C_=H8.stx.preferences;A2IFV.D0H();if(C_ && C_.drawings){X2.extend(H8,C_.drawings[u6.vectorType]);for(h3=+"0";h3 < w7.length;h3++){v2y="f";v2y+="o";v2y+="n";v2y+="t";I2=w7[h3];if(I2 == "color"){u6.currentColor=H8.color;}else if(I2 == "parameters"){u6.fibonacci=X2.clone(H8.parameters);}else if(I2 == v2y){u6.annotation.font=X2.clone(H8.font);}else {u6[I2]=H8[I2];}}}};X2.Drawing.prototype.dragToDraw=![];X2.Drawing.prototype.permanent=!!0;X2.Drawing.prototype.chartsOnly=!!0;X2.Drawing.prototype.abort=function(A2){};X2.Drawing.prototype.measure=function(){};X2.Drawing.prototype.construct=function(x6,w5){this.stx=x6;this.panelName=w5.name;};X2.Drawing.prototype.render=function(U3){console.warn("must implement render function!");};X2.Drawing.prototype.click=function(z4,C2,u4){console.warn("must implement click function!");};X2.Drawing.prototype.move=function(C9,j$,Y_){console.warn("must implement move function!");};X2.Drawing.prototype.reposition=function(V_,q5,G2,D8){};X2.Drawing.prototype.intersected=function(J0,k3,Y0){console.warn("must implement intersected function!");};X2.Drawing.prototype.reconstruct=function(W$,J3){console.warn("must implement reconstruct function!");};X2.Drawing.prototype.serialize=function(){A2IFV.a9S();console.warn("must implement serialize function!");};X2.Drawing.prototype.adjust=function(){A2IFV.D0H();console.warn("must implement adjust function!");};X2.Drawing.prototype.highlight=function(Q6){A2IFV.a9S();if(Q6 && !this.highlighted){this.highlighted=Q6;}else if(!Q6 && this.highlighted){this.highlighted=Q6;}return this.highlighted;};X2.Drawing.prototype.littleCircleRadius=function(){var y3;y3=6;return y3;};X2.Drawing.prototype.littleCircle=function(N1,B9,D5,q6){var b1,Z2;if(this.permanent){return;}b1=this.stx.defaultColor;Z2=X2.chooseForegroundColor(b1);N1.beginPath();A2IFV.D0H();N1.lineWidth=+"1";N1.arc(B9,D5,this.littleCircleRadius(),0,2 * Math.PI,![]);if(q6){N1.fillStyle=b1;}else {N1.fillStyle=Z2;}N1.strokeStyle=b1;N1.setLineDash([]);N1.fill();N1.stroke();N1.closePath();};X2.Drawing.prototype.rotator=function(b0,D2,Q$,d8){var M9O=A2IFV;var I7,n6,M5;if(this.permanent){return;}I7=this.littleCircleRadius();n6=this.stx.defaultColor;b0.beginPath();M9O.H6P(10);b0.lineWidth=M9O.q7n("2",0);if(!d8){b0.globalAlpha=0.5;}M9O.H6P(0);M5=M9O.S40(4,I7);b0.arc(D2,Q$,M5,0,3 * Math.PI / 2,!!"");M9O.D0J(37);b0.moveTo(M9O.S40(M5,D2,2),M9O.S40(Q$,2,M9O.H6P(0)));M9O.D0J(0);b0.lineTo(M9O.S40(D2,M5),Q$);M9O.H6P(36);b0.lineTo(M9O.q7n(M5,D2,2),M9O.S40(Q$,2,M9O.D0J(0)));M9O.H6P(7);b0.moveTo(M9O.q7n(2,D2),M9O.S40(2,Q$,M5,M9O.H6P(15)));M9O.H6P(7);b0.lineTo(D2,M9O.q7n(M5,Q$));M9O.D0J(38);b0.lineTo(M9O.q7n("2",32,D2),M9O.q7n(Q$,2,M5,M9O.D0J(39)));b0.strokeStyle=n6;b0.stroke();b0.closePath();M9O.D0J(40);b0.globalAlpha=M9O.S40(0,"1");};X2.Drawing.prototype.mover=function(f7,b6,j3,f3){var a$_=A2IFV;var n$,q$,M0,m9;if(this.permanent){return;}n$=this.littleCircleRadius();q$=this.stx.defaultColor;a$_.H6P(40);M0=a$_.q7n(64,"5");a$_.H6P(0);m9=a$_.q7n(n$,1);f7.save();a$_.D0J(40);f7.lineWidth=a$_.S40(32,"2");f7.strokeStyle=q$;f7.translate(b6,j3);if(!f3){f7.globalAlpha=0.5;}for(var m$=0;m$ < 4;m$++){f7.rotate(Math.PI / 2);f7.beginPath();f7.moveTo(0,m9);a$_.H6P(0);f7.lineTo(0,a$_.S40(m9,M0));a$_.D0J(15);f7.moveTo(-2,a$_.q7n(M0,m9,2));a$_.H6P(0);f7.lineTo(0,a$_.S40(m9,M0));a$_.H6P(15);f7.lineTo(2,a$_.S40(M0,m9,2));f7.closePath();f7.stroke();}a$_.a9S();f7.globalAlpha=1;f7.restore();};X2.Drawing.prototype.resizer=function(Q3,e$,t$,X3){var K5j=A2IFV;var L7,Z6,w9,z3;if(this.permanent){return;}L7=this.littleCircleRadius();Z6=this.stx.defaultColor;K5j.a9S();K5j.H6P(22);var Q4M=K5j.q7n(10,16,100,155);K5j.H6P(41);var u51=K5j.q7n(6,15,92);w9=Q4M * Math.sqrt(u51);K5j.H6P(0);z3=K5j.q7n(L7,1);Q3.save();Q3.lineWidth=2;Q3.strokeStyle=Z6;Q3.translate(e$,t$);Q3.rotate(-(e$ * t$) / Math.abs(e$ * t$) * Math.PI / ("4" | 4));if(!X3){Q3.globalAlpha=+"0.5";}for(var m8=0;m8 < 2;m8++){Q3.rotate(Math.PI);Q3.beginPath();Q3.moveTo(0,z3);K5j.H6P(0);Q3.lineTo(0,K5j.q7n(z3,w9));K5j.D0J(15);Q3.moveTo(-2,K5j.S40(w9,z3,2));K5j.D0J(0);Q3.lineTo(0,K5j.q7n(z3,w9));K5j.H6P(15);Q3.lineTo(2,K5j.q7n(w9,z3,2));Q3.closePath();Q3.stroke();}Q3.globalAlpha=1;Q3.restore();};X2.Drawing.prototype.pointIntersection=function(j1,e2,D0,U5){var P_;P_=this.stx.panels[this.panelName];if(!P_){return !"1";}if(U5){if(j1 >= D0.cx0 && j1 <= D0.cx1 && e2 >= D0.cy0 && e2 <= D0.cy1){return !![];}}else {if(j1 >= D0.x0 && j1 <= D0.x1 && e2 >= Math.min(D0.y0,D0.y1) && e2 <= Math.max(D0.y0,D0.y1)){return !!1;}}return !"1";};X2.Drawing.prototype.setPoint=function(w0,j7,o2,s6){var c7T=A2IFV;var v9,N5,R6,Q1a,J1,Z3;v9=null;N5=null;if(typeof j7 == "number"){v9=j7;}else if(j7.length >= +"8"){N5=j7;}else {v9=Number(j7);}if(o2 || o2 === 0){c7T.H6P(0);this[c7T.q7n((3460,9553) === (6130,"704" * 1)?9.55e+3:"v",w0)]=o2;}if(v9 !== null){R6=this.stx.dateFromTick(v9,s6,!!({}));c7T.D0J(0);this[c7T.q7n("tzo",w0)]=R6.getTimezoneOffset();c7T.D0J(0);this[c7T.S40(+"8680" < +"2070"?8.76e+3:(667.13,4870) != 302.02?"d":217.58,w0)]=X2.yyyymmddhhmmssmmm(R6);c7T.D0J(0);this[c7T.S40((6989,7610) == ("2424" ^ 0)?(0xb5f,0x142b):"p",w0)]=[v9,o2];}else if(N5 !== null){Q1a="t";Q1a+="z";Q1a+="o";R6=X2.strToDateTime(N5);if(!this[Q1a + w0] && this["tzo" + w0] !== ("0" ^ 0)){c7T.D0J(0);this[c7T.q7n("tzo",w0)]=R6.getTimezoneOffset();}c7T.D0J(0);this[c7T.S40((212.74,440.25) <= (1900,119)?710.4 == 3120?"b":8789 > 1260?(0x1309,"F"):"S":"d",w0)]=N5;J1=this["tzo" + w0] - R6.getTimezoneOffset();R6.setMinutes(R6.getMinutes() + J1);Z3=!"1";if(this.name != "freeform" && !X2.ChartEngine.isDailyInterval(this.stx.layout.interval) && !R6.getHours() && !R6.getMinutes() && !R6.getSeconds() && !R6.getMilliseconds()){Z3=!!({});}c7T.H6P(0);this[c7T.q7n(+"2808" != 8345?704.33 === 1740?"b":2839 != 3940?"p":!!0:(!!"","g"),w0)]=[this.stx.tickFromDate(X2.yyyymmddhhmmssmmm(R6),s6,null,Z3),o2];}};X2.Drawing.prototype.getLineColor=function(X_){var c9,f5,L6j,r7,T8,f$,k1,Q8,S5k,p9,B7;if(!X_){X_=this.color;}c9=this.stx;A2IFV.D0H();f5=X_;if(this.highlighted){L6j="st";L6j+="x_highli";L6j+="ght_vector";f5=c9.getCanvasColor(L6j);}else if(X2.isTransparent(f5)){f5=c9.defaultColor;}else if(f5 == "auto"){f5=c9.defaultColor;if(this.field){for(r7 in c9.layout.studies){T8=c9.layout.studies[r7];f$=T8.outputs[T8.outputMap[this.field]];if(f$){f5=f$.color || f$;break;}}for(r7 in c9.chart.seriesRenderers){Q8=c9.chart.seriesRenderers[r7];for(var y_=0;y_ < Q8.seriesParams.length;y_++){S5k="-";S5k+="-";S5k+=">";p9=Q8.seriesParams[y_];B7=p9.field;if(!B7 && !Q8.highLowBars){B7=this.defaultPlotField || "Close";}if(p9.symbol && p9.subField){B7+="-->" + p9.subField;}if(this.field == B7){f5=p9.color;break;}if(p9.field && p9.field == this.field.split(S5k)[0]){k1=p9.color;}}}if(k1){f5=k1;}}}if(f5 == "auto"){f5=c9.defaultColor;}return f5;};X2.Drawing.BaseTwoPoint=function(){this.p0=null;this.p1=null;this.color="";};X2.inheritsFrom(X2.Drawing.BaseTwoPoint,X2.Drawing);X2.Drawing.BaseTwoPoint.prototype.configs=[];X2.Drawing.BaseTwoPoint.prototype.lineIntersection=function(P7,U2,E9,l4,h8,m_,Q2){var q7,g1,S1;if(!h8){h8=this.p0;}if(!m_){m_=this.p1;}q7=this.stx;if(!(h8 && m_)){return ![];}g1=X2.convertBoxToPixels(q7,this.panelName,E9);if(g1.x0 === undefined){return !1;}S1={x0:h8[0],x1:m_["0" - 0],y0:h8[1],y1:m_[1]};if(!Q2){S1=X2.convertBoxToPixels(q7,this.panelName,S1);}return X2.boxIntersects(g1.x0,g1.y0,g1.x1,g1.y1,S1.x0,S1.y0,S1.x1,S1.y1,l4);};X2.Drawing.BaseTwoPoint.prototype.boxIntersection=function(e7,K8,e3){if(!this.p0 || !this.p1){return !"1";}A2IFV.D0H();if(e3.x0 > Math.max(this.p0[0],this.p1[0]) || e3.x1 < Math.min(this.p0[0],this.p1[0])){return !({});}if(e3.y1 > Math.max(this.p0[+"1"],this.p1[+"1"]) || e3.y0 < Math.min(this.p0[1],this.p1[1])){return ![];}return !!1;};X2.Drawing.BaseTwoPoint.prototype.accidentalClick=function(Z$,v7){var p29=A2IFV;var C0,t5,K3,A_,I9,G7,Q9,X6;C0=this.stx.panels[this.panelName];t5=this.stx.pixelFromTick(this.p0[0],C0.chart);K3=this.stx.pixelFromTick(Z$,C0.chart);A_=this.stx.pixelFromValueAdjusted(C0,this.p0[0],this.p0[1]);I9=this.stx.pixelFromValueAdjusted(C0,Z$,v7);p29.H6P(7);G7=Math.abs(p29.q7n(t5,K3));p29.H6P(7);Q9=Math.abs(p29.q7n(A_,I9));p29.D0J(42);X6=Math.sqrt(p29.S40(G7,Q9,G7,Q9));if(X6 < "10" >> 0){this.penDown=![];if(this.dragToDraw){this.stx.undo();}return !![];}};X2.Drawing.BaseTwoPoint.prototype.click=function(N0,Z_,K5){A2IFV.D0H();var a8;this.copyConfig();a8=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,Z_,K5,a8.chart);this.penDown=!![];return ![];}if(this.accidentalClick(Z_,K5)){return this.dragToDraw;}this.setPoint(1,Z_,K5,a8.chart);this.penDown=!({});return !![];;};X2.Drawing.BaseTwoPoint.prototype.adjust=function(){var H9;H9=this.stx.panels[this.panelName];if(!H9){return;}this.setPoint(+"0",this.d0,this.v0,H9.chart);this.setPoint(1,this.d1,this.v1,H9.chart);};X2.Drawing.BaseTwoPoint.prototype.move=function(T6,F4,W2){if(!this.penDown){return;}this.copyConfig();A2IFV.a9S();this.p1=[F4,W2];this.render(T6);};X2.Drawing.BaseTwoPoint.prototype.measure=function(){var F_,C6,w6;A2IFV.D0H();if(this.p0 && this.p1){this.stx.setMeasure(this.p0[1],this.p1[1],this.p0[0],this.p1[0],!!"1",this.name);F_=this.stx.controls.mSticky;C6=F_ && F_.querySelector(".mStickyInterior");if(C6){w6=[];w6.push(X2.capitalize(this.name));if(this.getYValue){w6.push(this.field || this.stx.defaultPlotField || "Close");}w6.push(C6.innerHTML);C6.innerHTML=w6.join("
");}}};X2.Drawing.BaseTwoPoint.prototype.reposition=function(N4,I8,s5,Q_){var d2j,Q5,V5,W0;d2j="m";d2j+="ove";if(!I8){return;}Q5=this.stx.panels[this.panelName];A2IFV.a9S();V5=I8.tick - s5;W0=I8.value - Q_;if(I8.action == d2j){this.setPoint(0,I8.p0["0" >> 0] - V5,I8.p0[1] - W0,Q5.chart);this.setPoint(1,I8.p1[0] - V5,I8.p1[1] - W0,Q5.chart);this.render(N4);}else if(I8.action == "drag"){this[I8.point]=[s5,Q_];this.setPoint(0,this.p0[0],this.p0["1" - 0],Q5.chart);this.setPoint(1,this.p1[0],this.p1[1],Q5.chart);this.render(N4);}};X2.Drawing.BaseTwoPoint.prototype.drawDropZone=function(o3,z1,u9,Z4,Y5){var b38=A2IFV;var T9x,E3,p$,X0,k8,I4;T9x="#008";T9x+="00";T9x+="0";E3=this.stx.panels[this.panelName];if(!E3){return;}p$=E3.left;X0=E3.width;if(Z4 || Z4 === 0){p$=this.stx.pixelFromTick(Z4,E3.chart);}if(Y5 || Y5 === +"0"){X0=this.stx.pixelFromTick(Y5,E3.chart);}k8=this.stx.pixelFromPrice(z1,E3);I4=this.stx.pixelFromPrice(u9,E3);o3.fillStyle=T9x;b38.D0J(1);o3.globalAlpha=b38.q7n(1,"0.2");b38.D0J(7);o3.fillRect(p$,k8,b38.q7n(p$,X0),b38.S40(k8,I4));b38.D0H();o3.globalAlpha=1;};X2.Drawing.annotation=function(){var O91=A2IFV;O91.a9S();this.name="annotation";this.arr=[];this.w=0;O91.H6P(1);this.h=O91.S40(1,"0");this.padding=4;this.text="";this.ta=null;O91.H6P(7);this.fontSize=O91.q7n(0,"0");this.font={};};X2.inheritsFrom(X2.Drawing.annotation,X2.Drawing.BaseTwoPoint);X2.Drawing.annotation.prototype.getFontString=function(){var K2,J4;this.fontDef={style:null,weight:null,size:"12px",family:null};K2=this.stx.canvasStyle("stx_annotation");if(K2){if(K2.fontStyle){this.fontDef.style=K2.fontStyle;}if(K2.fontWeight){this.fontDef.weight=K2.fontWeight;}if(K2.fontSize){this.fontDef.size=K2.fontSize;}if(K2.fontFamily){this.fontDef.family=K2.fontFamily;}}if(this.font.style){this.fontDef.style=this.font.style;}A2IFV.a9S();if(this.font.weight){this.fontDef.weight=this.font.weight;}if(this.font.size){this.fontDef.size=this.font.size;}if(this.font.family){this.fontDef.family=this.font.family;}this.fontString="";J4=!"";for(var i7 in this.fontDef){if(this.fontDef[i7]){if(!J4){this.fontString+=594 == "714.62" * 1?(0x14b4,!""):(176.33,"2360" | 48) > (2760,+"871")?" ":("1412" >> 0,+"284.05") === 797.11?(!"1",!({})):(!!"",9.63e+3);}else {J4=!({});}this.fontString+=this.fontDef[i7];}}};X2.Drawing.annotation.prototype.configs=["color","font"];X2.Drawing.annotation.prototype.measure=function(){};X2.Drawing.annotation.prototype.render=function(D_){var j1D=A2IFV;var l24,h$_,p0Q,G$,R9,M$_,U6,O3W,y2N,K8f,Z5i,R9I,N9;if(this.ta){return;}l24=this.stx.panels[this.panelName];if(!l24){return;}h$_=this.stx.pixelFromTick(this.p0[0],l24.chart);p0Q=this.stx.pixelFromValueAdjusted(l24,this.p0[0],this.p0[1]);D_.font=this.fontString;D_.textBaseline="middle";G$=h$_;j1D.D0H();R9=p0Q;M$_=this.w;U6=this.h;O3W=this.getLineColor();if(this.stem){if(this.stem.d){y2N=this.stx.pixelFromTick(this.stem.t);Z5i=this.stx.pixelFromValueAdjusted(l24,this.stem.t,this.stem.v);j1D.D0J(43);K8f=j1D.S40(M$_,2,G$);j1D.H6P(43);R9I=j1D.S40(U6,2,R9);}else if(this.stem.x){y2N=G$;Z5i=R9;G$+=this.stem.x;R9+=this.stem.y;j1D.H6P(43);K8f=j1D.S40(M$_,2,G$);j1D.H6P(43);R9I=j1D.S40(U6,2,R9);}D_.beginPath();if(this.borderColor){D_.strokeStyle=this.borderColor;}else {D_.strokeStyle=O3W;}D_.moveTo(y2N,Z5i);D_.lineTo(K8f,R9I);D_.stroke();}N9=D_.lineWidth;if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight_bg",D_);j1D.D0J(7);D_.fillRect(j1D.q7n(N9,G$),j1D.q7n(U6,N9,R9,2,j1D.D0J(44)),j1D.q7n(2,N9,M$_,j1D.D0J(45)),j1D.q7n(2,N9,U6,j1D.H6P(45)));}else {if(this.fillColor){D_.fillStyle=this.fillColor;j1D.H6P(46);D_.fillRect(G$,j1D.S40(R9,2,U6),M$_,U6);}else if(this.stem){D_.fillStyle=this.stx.containerColor;j1D.D0J(46);D_.fillRect(G$,j1D.q7n(R9,2,U6),M$_,U6);}}if(this.borderColor){D_.beginPath();D_.strokeStyle=this.highlighted?this.stx.getCanvasColor("stx_highlight_vector"):this.borderColor;j1D.H6P(7);D_.rect(j1D.q7n(N9,G$),j1D.q7n(U6,N9,R9,2,j1D.H6P(44)),j1D.S40(2,N9,M$_,j1D.H6P(45)),j1D.q7n(U6,N9,"2",j1D.H6P(47)));D_.stroke();}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight",D_);}else {D_.fillStyle=O3W;}j1D.D0J(33);var L9_=j1D.S40(11,1,5,17);R9+=this.padding / L9_;if(!this.ta){for(var I7h=0;I7h < this.arr.length;I7h++){D_.fillText(this.arr[I7h],G$ + this.padding,R9 - U6 / 2 + this.fontSize / 2);R9+=this.fontSize + 2;;}}D_.textBaseline="alphabetic";};X2.Drawing.annotation.prototype.onChange=function(v6H){;};X2.Drawing.annotation.prototype.edit=function(s74,b7Z){var Z$i=A2IFV;var k8d,L5W,C1f,P8T,D0e,X0G,o4v,P48,m$u,G_J,D4A,e6y,F2X,s7F,m$5,e81,B3i,w2N,c8b,d1w,q46,M4l,c7K,Y7M,D35,r81;k8d="p";k8d+="x";L5W="annota";L5W+="t";L5W+="io";L5W+="n";C1f=this.stx.panels[this.panelName];if(!C1f){return;}P8T=this.stx.controls.annotationSave;D0e=this.stx.controls.annotationCancel;if(!P8T || !D0e){return;}X0G=this.stx;o4v=this.ta;function j1z(R6c){Z$i.D0H();return function(F_r){var W_W,z60,v3Y,D9V,g8K,f_K,s1c,o4K,E72,A3N,v8u,F5n,i9Y,s0C,g46,b6p;W_W="p";W_W+="x";z60="p";z60+="x";if(F_r){v3Y=F_r.keyCode;switch(v3Y){case 27:R6c.stx.undo();return;}}Z$i.a9S();D9V=R6c.stx;g8K=R6c.ta;f_K=g8K.value.split(984.57 != (3809,6470)?"\n":(785.59,!({})));Z$i.H6P(21);s1c=Z$i.q7n("0",0);D9V.chart.context.font=R6c.fontString;for(var N9z=0;N9z < f_K.length;N9z++){o4K=D9V.chart.context.measureText(f_K[N9z]).width;if(o4K > s1c){s1c=o4K;}}Z$i.D0J(15);var T7V=Z$i.S40(12,0,11);Z$i.H6P(7);var x68=Z$i.q7n(20,23);E72=(f_K.length + T7V) * (R6c.fontSize + x68);if(s1c < 50){s1c=+"50";}Z$i.H6P(37);g8K.style.width=Z$i.q7n(z60,s1c,30);Z$i.H6P(0);g8K.style.height=Z$i.q7n(E72,W_W);A3N=parseInt(X2.stripPX(g8K.style.top),+"10");v8u=X2.stripPX(g8K.style.left);s1c=g8K.clientWidth;E72=g8K.clientHeight;if(v8u + s1c + 100 < R6c.stx.chart.canvasWidth){Z$i.H6P(0);P8T.style.top=Z$i.S40(A3N,"px");Z$i.D0J(0);D0e.style.top=Z$i.S40(A3N,"px");Z$i.D0J(48);P8T.style.left=Z$i.S40("px",10,s1c,v8u);Z$i.D0J(48);D0e.style.left=Z$i.S40("px",60,s1c,v8u);}else if(A3N + E72 + ("30" - 0) < R6c.stx.chart.canvasHeight){F5n="p";F5n+="x";i9Y="p";i9Y+="x";Z$i.D0J(48);P8T.style.top=Z$i.S40(i9Y,10,E72,A3N);Z$i.H6P(48);D0e.style.top=Z$i.q7n("px",10,E72,A3N);Z$i.D0J(0);P8T.style.left=Z$i.S40(v8u,"px");Z$i.H6P(49);D0e.style.left=Z$i.S40(F5n,v8u,0,"50");}else {s0C="p";s0C+="x";g46="p";g46+="x";b6p="p";b6p+="x";Z$i.D0J(36);P8T.style.top=Z$i.S40("px",A3N,35);Z$i.D0J(50);D0e.style.top=Z$i.q7n(A3N,"35",b6p,0);Z$i.H6P(0);P8T.style.left=Z$i.S40(v8u,g46);Z$i.D0J(37);D0e.style.left=Z$i.S40(s0C,v8u,50);}};}X0G.editingAnnotation=!![];X0G.undisplayCrosshairs();X0G.openDialog=L5W;function p5D(X1g){Z$i.D0H();return function(o31){var y3U,B3a;y3U="vect";y3U+="o";y3U+="r";if(X1g.ta.value === ""){return;}X1g.text=X1g.ta.value;B3a=X1g.stx;B3a.editingAnnotation=!!"";X1g.adjust();if(B3a.drawingSnapshot){B3a.undoStamp(X2.shallowClone(B3a.drawingSnapshot),B3a.exportDrawings());}else {B3a.addDrawing(X1g);}B3a.undo();B3a.cancelTouchSingleClick=!!({});B3a.changeOccurred(y3U);};}if(!o4v){P48="absolu";P48+="te";m$u="p";m$u+="lac";m$u+="eholde";m$u+="r";G_J="w";G_J+="r";G_J+="a";G_J+="p";D4A="stx_anno";D4A+="tation";e6y="TE";e6y+="XTARE";e6y+="A";o4v=this.ta=document.createElement(e6y);o4v.className=D4A;o4v.onkeyup=j1z(this);o4v.onmouseup=n02(X0G);o4v.setAttribute(G_J,"hard");if(X2.isIOS7or8){o4v.setAttribute(m$u,"Enter Text");}X0G.chart.container.appendChild(o4v);o4v.style.position=P48;o4v.style.width="100px";o4v.style.height="20px";o4v.value=this.text;if(X2.touchDevice){o4v.ontouchstart=function(o_p){Z$i.a9S();o_p.stopPropagation();};;}}F2X=this;o4v.oninput=function(O0I){var w4p;w4p="histo";Z$i.D0H();w4p+="ryUndo";if(O0I.inputType != w4p && O0I.inputType != "historyRedo"){F2X.onChange(O0I);}};o4v.style.font=this.fontString;if(this.color){s7F="au";s7F+="t";s7F+="o";if(this.color == "transparent" || this.color == s7F){m$5=getComputedStyle(o4v);if(m$5 && X2.isTransparent(m$5.backgroundColor)){o4v.style.color=X0G.defaultColor;}else {e81="#";e81+="0";e81+="0";e81+="0";o4v.style.color=e81;;}}else {o4v.style.color=this.color;}}function n02(b_D){Z$i.D0H();return function(T92){Z$i.D0H();if(b_D.manageTouchAndMouse && X2.ChartEngine.drawingLine){b_D.mouseup(T92);}};}B3i=X0G.pixelFromTick(this.p0[0],C1f.chart);w2N=X0G.pixelFromValueAdjusted(C1f,this.p0[0],this.p0[1]);o4v.style.left=B3i + +"140" < X0G.chart.canvasRight?B3i + "px":X0G.chart.canvasRight - +"200" + "px";o4v.style.top=w2N + 60 < X0G.chart.canvasHeight?w2N - (!isNaN(this.h)?this.h / ("2" << 64):this.defaultHeight) + k8d:w2N - +"60" + "px";function M9C(d3k){return function(i3r){var p5h;p5h=d3k.stx;Z$i.a9S();p5h.editingAnnotation=!({});p5h.undo();p5h.cancelTouchSingleClick=!0;};}if(this.name == "callout"){c8b="p";c8b+="x";d1w=694941385;q46=-666431109;M4l=2;for(var W2T=1;Z$i.Z2Z(W2T.toString(),W2T.toString().length,31029) !== d1w;W2T++){Z$i.H6P(0);var S0f=Z$i.S40(46,18);o4v.style.left=X2.stripPX(o4v.style.left) * (-isNaN(this.w)?this.w + ("0" << S0f):this.defaultWidth) % "";M4l+=2;}if(Z$i.Z2Z(M4l.toString(),M4l.toString().length,3178) !== q46){o4v.style.left=X2.stripPX(o4v.style.left) * (-isNaN(this.w)?this.w + 0:this.defaultWidth) % "";}Z$i.H6P(51);var a0V=Z$i.q7n(5,1,0,27,20);o4v.style.left=X2.stripPX(o4v.style.left) - (!isNaN(this.w)?this.w / a0V:this.defaultWidth) + c8b;}X2.safeClickTouch(P8T,p5D(this));X2.safeClickTouch(D0e,M9C(this));j1z(this)();P8T.style.display="inline-block";D0e.style.display="inline-block";if(b7Z){X0G.drawingSnapshot=X0G.exportDrawings();this.hidden=!!"1";X0G.draw();X0G.activeDrawing=this;X2.ChartEngine.drawingLine=!0;s74=X0G.chart.tempCanvas.context;X0G.chart.tempCanvas.style.display="block";this.w=o4v.clientWidth;this.h=o4v.clientHeight;X2.clearCanvas(s74.canvas,X0G);this.render(s74);this.edit(s74);}o4v.focus();if(X2.isAndroid && !X2.is_chrome && !X2.isFF){this.priorBottom=X0G.chart.container.style.bottom;c7K=400;Z$i.D0J(32);var j7J=Z$i.S40(58,6,7);Y7M=X0G.resolveY(w2N) + j7J;if(Y7M > X2.pageHeight() - c7K){D35=X2.pageHeight() - Y7M;Z$i.H6P(7);r81=Z$i.q7n(D35,c7K);Z$i.D0J(0);X0G.chart.container.style.bottom=Z$i.S40(r81,"px");}}};X2.Drawing.annotation.prototype.click=function(h4N,x0K,f8C){var J7E;if(this.stx.overXAxis || this.stx.overYAxis){return;}J7E=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,x0K,f8C,J7E.chart);this.adjust();this.edit(h4N);return !!0;};X2.Drawing.annotation.prototype.reposition=function(w3J,W4f,V$h,m5N){var P3s,w3g,v4b;if(!W4f){return;}P3s=this.stx.panels[this.panelName];w3g=W4f.tick - V$h;v4b=W4f.value - m5N;this.setPoint(0,W4f.p0["0" << 64] - w3g,W4f.p0[1] - v4b,P3s.chart);this.render(w3J);};X2.Drawing.annotation.prototype.intersected=function(g4z,r3f,O8j){var M$w=A2IFV;var a0Q,K2I,N1k,X9s,I5r,r6Z,I0r;a0Q=this.stx.panels[this.panelName];if(!this.p0){return null;}K2I=this.stx.pixelFromTick(this.p0[0],a0Q.chart);M$w.D0J(39);var k0p=M$w.q7n(19,3,15);M$w.D0J(52);var K42=M$w.S40(112,6,19);N1k=this.stx.pixelFromValueAdjusted(a0Q,this.p0[0],this.p0[k0p]) - this.h / K42;X9s=K2I + this.w;I5r=N1k + this.h;if(this.stem && this.stem.x){K2I+=this.stem.x;X9s+=this.stem.x;N1k+=this.stem.y;I5r+=this.stem.y;}r6Z=this.stx.pixelFromTick(g4z,a0Q.chart);I0r=this.stx.pixelFromValueAdjusted(a0Q,g4z,r3f);if(r6Z + O8j.r >= K2I && r6Z - O8j.r <= X9s && I0r + O8j.r >= N1k && I0r - O8j.r <= I5r){this.highlighted=!!1;return {p0:X2.clone(this.p0),tick:g4z,value:r3f};}return !"1";};X2.Drawing.annotation.prototype.abort=function(){var l73,b3n,D06;l73="n";l73+="o";l73+="ne";b3n=this.stx.controls.annotationSave;D06=this.stx.controls.annotationCancel;if(b3n){b3n.style.display="none";}if(D06){D06.style.display=l73;}if(this.ta){this.stx.chart.container.removeChild(this.ta);}this.ta=null;this.stx.openDialog="";this.stx.showCrosshairs();this.stx.editingAnnotation=!({});X2.clearCanvas(this.stx.chart.tempCanvas,this.stx);if(X2.isAndroid && !X2.is_chrome && !X2.isFF){this.stx.chart.container.style.bottom=this.priorBottom;}X2.fixScreen();};X2.Drawing.annotation.prototype.reconstruct=function(l2E,Z3M){var u0L,j4l,L$W;u0L="f";u0L+="ami";u0L+="ly";j4l="weigh";j4l+="t";L$W="s";L$W+="t";L$W+="y";L$W+="le";this.stx=l2E;this.color=Z3M.col;this.panelName=Z3M.pnl;this.d0=Z3M.d0;this.tzo0=Z3M.tzo0;this.v0=Z3M.v0;this.text=l2E.escapeOnSerialize?decodeURIComponent(Z3M.text):Z3M.text;this.stem=Z3M.stem;this.borderColor=Z3M.bc;A2IFV.a9S();this.fillColor=Z3M.bg;this.lineWidth=Z3M.lw;this.pattern=Z3M.ptrn;this.font=X2.replaceFields(Z3M.fnt,{st:L$W,sz:"size",wt:j4l,fl:u0L});if(!this.font){this.font={};}this.adjust();};X2.Drawing.annotation.prototype.serialize=function(){A2IFV.a9S();var a6I,d$j,j8S,g0e,Z39,X6X;a6I={name:this.name,pnl:this.panelName,col:this.color,d0:this.d0,tzo0:this.tzo0,v0:this.v0,text:this.stx.escapeOnSerialize?encodeURIComponent(this.text):this.text};if(this.font){d$j="f";d$j+="l";j8S=X2.removeNullValues(X2.replaceFields(this.font,{style:"st",size:"sz",weight:"wt",family:d$j}));if(!X2.isEmpty(j8S)){a6I.fnt=j8S;}}if(this.stem){g0e=-1816893135;Z39=633140930;X6X=+"2";for(var f0P=1;A2IFV.Z2Z(f0P.toString(),f0P.toString().length,40737) !== g0e;f0P++){a6I.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};X6X+=2;}if(A2IFV.Z2Z(X6X.toString(),X6X.toString().length,61047) !== Z39){a6I.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};}}if(this.borderColor){a6I.bc=this.borderColor;}if(this.fillColor){a6I.bg=this.fillColor;}if(this.lineWidth){a6I.lw=this.lineWidth;}if(this.pattern){a6I.ptrn=this.pattern;}return a6I;};X2.Drawing.annotation.prototype.renderText=function(){var m0B=A2IFV;var R1J,w75,W9x,m8c,C0g,S9N;this.getFontString();R1J=this.stx.panels[this.panelName];if(!R1J){return;}this.arr=this.text.split((2597,664.19) != +"9504"?"\n":9728 !== (8300,909.44)?"9240" - 0 >= 9370?(!![],!0):0x164b:(!![],"C"));w75=0;this.stx.chart.context.font=this.fontString;for(var d19=0;d19 < this.arr.length;d19++){W9x=this.stx.chart.context.measureText(this.arr[d19]).width;if(W9x > w75){w75=W9x;}}if(w75 === 0){m0B.H6P(53);var s$U=m0B.q7n(18,3,10,1,6);w75=s$U * this.defaultWidth;}this.fontSize=X2.stripPX(this.fontDef.size);m0B.H6P(7);var d9y=m0B.S40(32,34);m8c=this.arr.length * (this.fontSize + d9y);if(X2.touchDevice){m8c+=5;}this.w=w75 + this.padding * ("2" - 0);m0B.D0J(54);var I1Y=m0B.q7n(158,0,17,7,9);this.h=m8c + this.padding * I1Y;C0g=this.stx.pixelFromTick(this.p0[0],R1J.chart) + w75;S9N=this.stx.pixelFromValueAdjusted(R1J,this.p0[0],this.p0[+"1"]) + m8c;this.p1=[this.stx.tickFromPixel(C0g,R1J.chart),this.stx.valueFromPixel(S9N,R1J)];if(this.stem && this.stem.d){this.stem.t=this.stx.tickFromDate(this.stem.d,R1J.chart);}};X2.Drawing.annotation.prototype.adjust=function(){var n9D;n9D=this.stx.panels[this.panelName];if(!n9D){return;}this.setPoint(0,this.d0,this.v0,n9D.chart);this.renderText();};X2.Drawing.segment=function(){var k0C;k0C="seg";k0C+="me";k0C+="n";k0C+="t";this.name=k0C;};X2.inheritsFrom(X2.Drawing.segment,X2.Drawing.BaseTwoPoint);X2.Drawing.segment.prototype.render=function(e4o){var y9m=A2IFV;var t7J,Y_M,D9N,X0T,a8M,o4x,O3L,Z67,V2K,E$g,m9b,R6Z,a9U,E2O,W$t,s2K,w5P,v7f,J5h,H9h,G4m;t7J="vertic";t7J+="al";Y_M="sol";Y_M+="id";D9N=this.stx.panels[this.panelName];if(!D9N){return;}X0T=this.stx.pixelFromTick(this.p0[0],D9N.chart);a8M=this.stx.pixelFromTick(this.p1["0" << 32],D9N.chart);o4x=this.stx.pixelFromValueAdjusted(D9N,this.p0[0],this.p0[1]);O3L=this.stx.pixelFromValueAdjusted(D9N,this.p1[0],this.p1[1]);Z67=this.lineWidth;V2K=this.getLineColor();E$g={pattern:this.pattern,lineWidth:Z67};if(E$g.pattern == "none"){E$g.pattern=Y_M;}this.stx.plotLine(X0T,a8M,o4x,O3L,V2K,this.name,e4o,D9N,E$g);if(this.axisLabel && !this.repositioner){if(this.name == "horizontal"){this.stx.endClip();m9b=this.p0[1];if(D9N.chart.transformFunc){m9b=D9N.chart.transformFunc(this.stx,D9N.chart,m9b);}if(D9N.yAxis.priceFormatter){m9b=D9N.yAxis.priceFormatter(this.stx,D9N,m9b);}else {m9b=this.stx.formatYAxisPrice(m9b,D9N);}this.stx.createYAxisLabel(D9N,m9b,o4x,V2K);this.stx.startClip(D9N.name);}else if(this.name == "vertical" && this.p0[0] >= 0 && !this.stx.chart.xAxis.noDraw){R6Z=this.stx.dateFromTick(this.p0[+"0"],D9N.chart,!![]);if(!X2.ChartEngine.isDailyInterval(this.stx.layout.interval)){y9m.D0J(55);var Z4T=y9m.q7n(5,985,5,802);E2O=R6Z.getSeconds() * Z4T + R6Z.getMilliseconds();if(o7.Date && this.stx.displayZone){a9U=new o7.Date(R6Z.getTime(),this.stx.displayZone);R6Z=new Date(a9U.getFullYear(),a9U.getMonth(),a9U.getDate(),a9U.getHours(),a9U.getMinutes());R6Z=new Date(R6Z.getTime() + E2O);}}else {R6Z.setHours(0,0,0,0);}W$t=1084531130;s2K=-678620398;w5P=2;for(var Y0Y=1;y9m.Z2Z(Y0Y.toString(),Y0Y.toString().length,45530) !== W$t;Y0Y++){v7f=X2.mmddhhmm(X2.yyyymmddhhmm(R6Z));w5P+=2;}if(y9m.Z2Z(w5P.toString(),w5P.toString().length,10434) !== s2K){v7f=X2.mmddhhmm(X2.yyyymmddhhmm(R6Z));}if(D9N.chart.xAxis.formatter){v7f=D9N.chart.xAxis.formatter(R6Z,this.name,null,null,v7f);}else if(this.stx.internationalizer){if(R6Z.getHours() !== "0" - 0 || R6Z.getMinutes() !== 0){J5h=this.stx.internationalizer.monthDay.format(R6Z);y9m.H6P(52);var P37=y9m.S40(14488,1317,14);J5h+=((P37,97.66) == +"9999"?"p":" ") + this.stx.internationalizer.hourMinute.format(R6Z);}else {J5h=this.stx.internationalizer.yearMonthDay.format(R6Z);}v7f=J5h;}this.stx.endClip();this.stx.createXAxisLabel({panel:D9N,txt:v7f,x:X0T,backgroundColor:V2K,color:null,pointed:!!"1",padding:+"2"});this.stx.startClip(D9N.name);}}if(this.highlighted && this.name != "horizontal" && this.name != t7J){H9h=this.highlighted == "p0"?!0:![];G4m=this.highlighted == "p1"?!![]:!({});this.littleCircle(e4o,X0T,o4x,H9h);this.littleCircle(e4o,a8M,O3L,G4m);}};X2.Drawing.segment.prototype.abort=function(){A2IFV.a9S();this.stx.setMeasure(null,null,null,null,!!"");};X2.Drawing.segment.prototype.intersected=function(Z5r,f1W,C6o){var J8Q,o2b,f6q,o3j;J8Q="h";J8Q+="or";J8Q+="izon";J8Q+="tal";if(!this.p0 || !this.p1){return null;}o2b=this.name;if(o2b != J8Q && o2b != "vertical" && o2b != "gartley"){f6q={0:this.p0,1:this.p1};for(var G6c in f6q){if(this.pointIntersection(f6q[G6c][0],f6q[G6c][1],C6o)){A2IFV.D0J(0);this.highlighted=A2IFV.q7n("p",G6c);return {action:"drag",point:((161.27,"1732" ^ 0) < (67.12,290.86)?(0x1217,!!({})):7130 != 9143?"p":(0x1dab,0x959)) + G6c};}}}if(o2b == "horizontal" || o2b == "vertical"){o2b="line";}o3j=this.lineIntersection(Z5r,f1W,C6o,o2b);if(o3j){this.highlighted=!0;return {action:"move",p0:X2.clone(this.p0),p1:X2.clone(this.p1),tick:Z5r,value:f1W};}return null;};X2.Drawing.segment.prototype.configs=[m61,"lineWidth",u$z];X2.Drawing.segment.prototype.copyConfig=function(Z0G){var I0O;I0O="fil";I0O+="l";I0O+="Colo";I0O+="r";X2.Drawing.copyConfig(this,Z0G);if(this.pattern == "none" && this.configs.indexOf(I0O) == -1){this.pattern="solid";}};X2.Drawing.segment.prototype.reconstruct=function(A9i,W5a){this.stx=A9i;this.color=W5a.col;this.panelName=W5a.pnl;this.pattern=W5a.ptrn;this.lineWidth=W5a.lw;this.d0=W5a.d0;this.d1=W5a.d1;this.tzo0=W5a.tzo0;this.tzo1=W5a.tzo1;this.v0=W5a.v0;this.v1=W5a.v1;this.adjust();};X2.Drawing.segment.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};X2.Drawing.line=function(){A2IFV.D0H();this.name="line";};X2.inheritsFrom(X2.Drawing.line,X2.Drawing.segment);X2.Drawing.line.prototype.dragToDraw=!1;X2.Drawing.line.prototype.calculateOuterSet=function(B2f){var N35,d9b,E$m;if(this.p0[0] == this.p1["0" << 32] || this.p0[1] == this.p1[1] || X2.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}N35={x0:this.p0[0],y0:this.p0["1" >> 0],x1:this.p1["0" * 1],y1:this.p1[1]};if(N35.x0 > N35.x1){N35={x0:this.p1[0],y0:this.p1[1],x1:this.p0[0],y1:this.p0[1]};}d9b=N35.x0 - +"1000";A2IFV.D0J(56);var v9E=A2IFV.S40(84,13,5,18,20);E$m=N35.x1 + ("1000" << v9E);this.v0B=X2.yIntersection(N35,d9b);this.v1B=X2.yIntersection(N35,E$m);this.d0B=this.stx.dateFromTick(d9b,B2f.chart);this.d1B=this.stx.dateFromTick(E$m,B2f.chart);};X2.Drawing.line.prototype.click=function(A70,P0Q,p5$){var U11;U11=this.stx.panels[this.panelName];if(!U11){return;}this.copyConfig();if(!this.penDown){this.setPoint(+"0",P0Q,p5$,U11.chart);this.penDown=!!1;return !!"";}if(this.accidentalClick(P0Q,p5$)){return this.dragToDraw;}this.setPoint(1,P0Q,p5$,U11.chart);A2IFV.a9S();this.calculateOuterSet(U11);this.penDown=!({});return !!"1";;};X2.Drawing.line.prototype.reconstruct=function(y$c,V4r){this.stx=y$c;this.color=V4r.col;this.panelName=V4r.pnl;A2IFV.D0H();this.pattern=V4r.ptrn;this.lineWidth=V4r.lw;this.v0=V4r.v0;this.v1=V4r.v1;this.d0=V4r.d0;this.d1=V4r.d1;this.tzo0=V4r.tzo0;this.tzo1=V4r.tzo1;if(V4r.d0B){this.d0B=V4r.d0B;this.d1B=V4r.d1B;this.v0B=V4r.v0B;this.v1B=V4r.v1B;}this.adjust();};X2.Drawing.line.prototype.serialize=function(){A2IFV.a9S();var m3e,E_y,j_P,C3d;m3e={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};if(this.d0B){E_y=-1605459864;j_P=-445012206;C3d=+"2";for(var Z9I=1;A2IFV.U6$(Z9I.toString(),Z9I.toString().length,45919) !== E_y;Z9I++){m3e.d0B=this.d0B;m3e.d1B=this.d1B;m3e.v0B=this.v0B;C3d+=2;}if(A2IFV.U6$(C3d.toString(),C3d.toString().length,98907) !== j_P){m3e.d0B=this.d0B;m3e.d1B=this.d1B;m3e.v0B=this.v0B;}m3e.v1B=this.v1B;}return m3e;};X2.Drawing.line.prototype.adjust=function(){var y_B;A2IFV.D0H();y_B=this.stx.panels[this.panelName];if(!y_B){return;}this.setPoint(0,this.d0,this.v0,y_B.chart);this.setPoint(1,this.d1,this.v1,y_B.chart);if(X2.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(0,this.d0B,this.v0B,y_B.chart);this.setPoint(1,this.d1B,this.v1B,y_B.chart);}};X2.Drawing.horizontal=function(){A2IFV.a9S();this.name="horizontal";};X2.inheritsFrom(X2.Drawing.horizontal,X2.Drawing.segment);X2.Drawing.horizontal.prototype.dragToDraw=![];X2.Drawing.horizontal.prototype.measure=function(){};X2.Drawing.horizontal.prototype.click=function(y2q,V2O,W8y){var g1p;g1p=this.stx.panels[this.panelName];if(!g1p){return;}A2IFV.a9S();this.copyConfig();A2IFV.H6P(7);this.setPoint(A2IFV.S40(0,"0"),V2O,W8y,g1p.chart);return !!1;;};X2.Drawing.horizontal.prototype.intersected=function(H$N,L$b,l_e){var t5Q,D0u,Z5$,V3v;t5Q="l";t5Q+="i";t5Q+="n";t5Q+="e";if(this.lineIntersection(H$N,L$b,l_e,t5Q)){D0u=this.stx;Z5$=D0u.chart.dataSet.length;V3v=this.p0[1];this.highlighted=!!"1";return {action:"move",p0:[Z5$ - 2,V3v],p1:[Z5$ - 1,V3v],tick:H$N,value:L$b};}return null;};X2.Drawing.horizontal.prototype.reconstruct=function(N3I,V1v){this.stx=N3I;this.color=V1v.col;this.panelName=V1v.pnl;this.pattern=V1v.ptrn;this.lineWidth=V1v.lw;this.v0=V1v.v0;this.d0=V1v.d0;this.tzo0=V1v.tzo0;A2IFV.a9S();this.axisLabel=V1v.al;this.adjust();};X2.Drawing.horizontal.prototype.serialize=function(){var W29;W29={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,v0:this.v0,d0:this.d0,tzo0:this.tzo0,al:this.axisLabel};return W29;};X2.Drawing.horizontal.prototype.adjust=function(){var K_r;K_r=this.stx.panels[this.panelName];if(!K_r){return;}this.setPoint(0,this.d0,this.v0,K_r.chart);this.p1=[this.p0["0" | 0] + ("100" - 0),this.p0[+"1"]];};X2.Drawing.horizontal.prototype.configs=["color",S8d,v6o,I_4];X2.Drawing.vertical=function(){var G5u,o9E,o6u,P8l;A2IFV.a9S();G5u="verti";G5u+="cal";o9E=-+"610209848";o6u=-1863941797;P8l=2;for(var S_j=1;A2IFV.U6$(S_j.toString(),S_j.toString().length,43775) !== o9E;S_j++){this.name="";P8l+=2;}if(A2IFV.Z2Z(P8l.toString(),P8l.toString().length,"46030" ^ 0) !== o6u){this.name="";}this.name=G5u;};X2.inheritsFrom(X2.Drawing.vertical,X2.Drawing.horizontal);X2.Drawing.vertical.prototype.measure=function(){};X2.Drawing.vertical.prototype.intersected=X2.Drawing.segment.prototype.intersected;X2.Drawing.vertical.prototype.adjust=function(){var D_b;D_b=this.stx.panels[this.panelName];if(!D_b){return;}this.setPoint(+"0",this.d0,this.v0,D_b.chart);A2IFV.D0J(57);A2IFV.D0H();var A8x=A2IFV.S40(2,4,7,3);this.p1=[this.p0[0],this.p0[A8x] + 1];};X2.Drawing.measure=function(){A2IFV.D0H();this.name="measure";};X2.inheritsFrom(X2.Drawing.measure,X2.Drawing.segment);X2.Drawing.measure.prototype.click=function(m9c,S78,q93){this.copyConfig();A2IFV.a9S();if(!this.penDown){this.p0=[S78,q93];this.penDown=!!"1";return !!"";}this.stx.undo();this.penDown=!({});return !![];};X2.Drawing.rectangle=function(){A2IFV.D0H();this.name="rectangle";};X2.inheritsFrom(X2.Drawing.rectangle,X2.Drawing.BaseTwoPoint);X2.Drawing.rectangle.prototype.render=function(Z3O){var H2w=A2IFV;var J43,u2d,s7U,T4I,N6n,L9C,s_a,e4c,B1A,L5G,w$d,r99,w0p,w$b,S6A,X_k;J43="se";J43+="gme";J43+="nt";u2d=this.stx.panels[this.panelName];if(!u2d){return;}s7U=this.stx.pixelFromTick(this.p0[+"0"],u2d.chart);T4I=this.stx.pixelFromTick(this.p1[0],u2d.chart);N6n=this.stx.pixelFromValueAdjusted(u2d,this.p0[0],this.p0[1]);L9C=this.stx.pixelFromValueAdjusted(u2d,this.p1[0],this.p1["1" * 1]);s_a=Math.round(Math.min(s7U,T4I)) + 0.5;e4c=Math.min(N6n,L9C);B1A=Math.max(s7U,T4I) - s_a;L5G=Math.max(N6n,L9C) - e4c;w$d=this.color;if(this.highlighted){w$d=this.stx.getCanvasColor("stx_highlight_vector");}r99=this.fillColor;if(r99 && !X2.isTransparent(r99) && r99 != "auto"){Z3O.beginPath();Z3O.rect(s_a,e4c,B1A,L5G);Z3O.fillStyle=r99;Z3O.globalAlpha=0.2;Z3O.fill();Z3O.closePath();Z3O.globalAlpha=1;}w0p={pattern:this.pattern,lineWidth:this.lineWidth};if(this.highlighted && w0p.pattern == "none"){w$b="so";w$b+="li";w$b+="d";w0p.pattern=w$b;if(w0p.lineWidth == 0.1){w0p.lineWidth=1;}}this.stx.plotLine(s7U,T4I,N6n,N6n,w$d,"segment",Z3O,u2d,w0p);H2w.H6P(7);this.stx.plotLine(T4I,T4I,H2w.S40(0.5,N6n),H2w.S40(L9C,0.5,H2w.D0J(0)),w$d,"segment",Z3O,u2d,w0p);this.stx.plotLine(T4I,s7U,L9C,L9C,w$d,J43,Z3O,u2d,w0p);H2w.D0J(58);this.stx.plotLine(s7U,s7U,H2w.S40("0.5",L9C,0),H2w.q7n(0.5,N6n,H2w.D0J(7)),w$d,"segment",Z3O,u2d,w0p);if(this.highlighted){S6A=this.highlighted == "p0"?!![]:!({});X_k=this.highlighted == "p1"?!!({}):![];this.littleCircle(Z3O,s7U,N6n,S6A);this.littleCircle(Z3O,T4I,L9C,X_k);}};X2.Drawing.rectangle.prototype.intersected=function(b$O,A2$,P0q){var L6i,f60,q6i;if(!this.p0 || !this.p1){return null;}L6i={0:this.p0,1:this.p1};A2IFV.D0H();for(var y12 in L6i){if(this.pointIntersection(L6i[y12][0],L6i[y12][1],P0q)){f60="d";f60+="r";f60+="a";f60+="g";A2IFV.H6P(0);this.highlighted=A2IFV.q7n(5366 !== (3000,6200)?"p":121.26 === 7215?("E",!!1):!!({}),y12);return {action:f60,point:(+"886" <= 836.66?(558,"98.58" * 1):(6950,890.14) <= (+"3018",6290)?"p":7725 >= +"6951"?3.18e+3:4.89e+3) + y12};}}if(this.boxIntersection(b$O,A2$,P0q)){q6i="m";q6i+="o";q6i+="v";q6i+="e";this.highlighted=!![];return {action:q6i,p0:X2.clone(this.p0),p1:X2.clone(this.p1),tick:b$O,value:A2$};}return null;};X2.Drawing.rectangle.prototype.configs=[h2H,"fillColor",G8$,"pattern"];X2.Drawing.rectangle.prototype.reconstruct=function(j6e,W4l){this.stx=j6e;this.color=W4l.col;this.fillColor=W4l.fc;this.panelName=W4l.pnl;this.pattern=W4l.ptrn;this.lineWidth=W4l.lw;this.d0=W4l.d0;this.d1=W4l.d1;this.tzo0=W4l.tzo0;this.tzo1=W4l.tzo1;this.v0=W4l.v0;this.v1=W4l.v1;this.adjust();};X2.Drawing.rectangle.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};X2.Drawing.shape=function(){this.name="shape";this.radians=+"0";this.a=+"0";A2IFV.a9S();this.rotating=!!0;this.textMeasure=!1;this.configurator="shape";A2IFV.D0J(21);this.dimension=[+"0",A2IFV.S40("0",0)];this.points=[];};X2.inheritsFrom(X2.Drawing.shape,X2.Drawing.BaseTwoPoint);X2.Drawing.shape.prototype.setRotationOnInitialDraw=!({});X2.Drawing.shape.prototype.measure=function(){};X2.Drawing.shape.prototype.render=function(t7x){var q9z=A2IFV;var v$g,Y$P,i6c,V12,H_K,k8U,t6K,F2V,I_z,K7V,f1x,P$g,k7j,N5V,t2G,J6i,m51,R7Z,t3G,e7m,e7b,Q8A,O$_,E$J,o1A;if(!this.points.length){return;}v$g=this.stx.panels[this.panelName];if(!v$g){return;}Y$P=this.stx.pixelFromTick(this.p0[0],v$g.chart);i6c=this.stx.pixelFromValueAdjusted(v$g,this.p0[0],this.p0[1]);if(this.p1){V12="#0000";V12+="00";H_K=this.stx.pixelFromTick(this.p1[0],v$g.chart);k8U=this.stx.pixelFromValueAdjusted(v$g,this.p1[0],this.p1[1]);q9z.D0J(7);t7x.globalAlpha=q9z.S40(0,"0.5");t7x.fillStyle=V12;if(this.rotating){q9z.H6P(59);this.radians=Math.atan(q9z.q7n(k8U,i6c,H_K,Y$P));if(H_K < Y$P){this.radians+=Math.PI;}else if(k8U < i6c){q9z.D0J(52);var H5d=q9z.q7n(214,18,12);this.radians+=H5d * Math.PI;}q9z.H6P(54);var I3x=q9z.q7n(402,19,2,13,19);q9z.H6P(60);var s6T=q9z.S40(6,4,1,7);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),I3x) * s6T;this.a%=360;q9z.H6P(7);var R3O=q9z.q7n(1980,2160);this.radians=this.a * Math.PI / R3O;if(this.textMeasure){t7x.fillText(this.a + "\u00b0",H_K + 10,k8U + 10);}}else if(this.penDown){this.sx=Math.max(+"1",parseFloat(Math.abs(2 * (H_K - Y$P) / this.dimension[0]).toFixed(1)));if(H_K < Y$P){q9z.H6P(28);this.sx*=-q9z.q7n("1",32);}q9z.H6P(1);this.sy=Math.max(q9z.q7n(1,"1"),parseFloat(Math.abs(2 * (k8U - i6c) / this.dimension[1]).toFixed(1)));if(k8U < i6c){this.sy*=-1;}if(this.textMeasure){t7x.fillText(this.sx + "x," + this.sy + ((1421,8757) < (8630,"444.51" - 0)?(1840,417.73) <= (426.88,4846)?9908 > (5015,928.71)?"m":!"":"e":"x"),H_K + this.sx + 5,k8U + this.sy + 5);}}q9z.D0J(40);t7x.globalAlpha=q9z.q7n(64,"1");}if(typeof this.sx === "undefined"){this.sx=this.sy=1;}t6K=this.lineWidth;if(!t6K){t6K=+"1.1";}F2V={pattern:this.pattern,lineWidth:t6K};if(this.highlighted && F2V.pattern == "none"){F2V.pattern="solid";if(F2V.lineWidth == +"0.1"){F2V.lineWidth=1;}}I_z=this.color;if(I_z == "auto" || X2.isTransparent(I_z)){I_z=this.stx.defaultColor;}if(this.highlighted){I_z=this.stx.getCanvasColor("stx_highlight_vector");if(t6K == 0.1){t6K=+"1.1";}}K7V=this.fillColor;q9z.D0J(61);var B3l=q9z.S40(1,6,4,12);t6K/=Math.abs(this.sx * this.sy) * B3l / (Math.abs(this.sx) + Math.abs(this.sy));t7x.save();t7x.translate(Y$P,i6c);t7x.rotate(this.radians);t7x.scale(this.sx,v$g.yAxis.flipped?-this.sy:this.sy);k7j={x:(this.dimension[0] - 1) / 2,y:(this.dimension[1] - 1) / 2};for(f1x=0;f1x < this.points.length;f1x++){N5V="a";N5V+="u";N5V+="t";N5V+="o";t7x.beginPath();for(P$g=0;P$g < this.points[f1x].length;P$g++){if(this.points[f1x][P$g] == (("321" | 0,476) < 6210?"M":606.28)){t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.moveTo(t2G,J6i);}else if(this.points[f1x][P$g] == "L"){t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.lineTo(t2G,J6i);}else if(this.points[f1x][P$g] == ((488.77,"812.37" * 1) > (196,+"3842")?"o":"Q")){m51=this.points[f1x][++P$g] - k7j.x;t3G=this.points[f1x][++P$g] - k7j.y;t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.quadraticCurveTo(m51,t3G,t2G,J6i);}else if(this.points[f1x][P$g] == (+"1644" < +"5488"?(2910,349.5) !== (5110,"1329" - 0)?"B":168 != (2550,"3680" * 1)?!0:!0:(8.36e+3,"D"))){m51=this.points[f1x][++P$g] - k7j.x;t3G=this.points[f1x][++P$g] - k7j.y;R7Z=this.points[f1x][++P$g] - k7j.x;e7m=this.points[f1x][++P$g] - k7j.y;t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.bezierCurveTo(m51,t3G,R7Z,e7m,t2G,J6i);}}t7x.closePath();if(K7V && !X2.isTransparent(K7V) && K7V != N5V){t7x.fillStyle=K7V;t7x.fill();;}if(I_z && this.pattern != "none"){t7x.strokeStyle=I_z;t7x.lineWidth=t6K;if(t7x.setLineDash){t7x.setLineDash(X2.borderPatternToArray(t6K,this.pattern));t7x.lineDashOffset=+"0";;}t7x.stroke();}}t7x.restore();t7x.save();t7x.translate(Y$P,i6c);t7x.rotate(this.radians);if(this.highlighted){e7b="p";e7b+="2";Q8A=this.highlighted == "p0"?!![]:!!"";O$_=this.highlighted == "p1"?!"":!({});E$J=this.highlighted == e7b?!![]:!!"";this.littleCircle(t7x,0,0,Q8A);this.mover(t7x,0,0,Q8A);this.littleCircle(t7x,this.sx * this.dimension[0] / 2,this.sy * this.dimension[+"1"] / +"2",O$_);this.resizer(t7x,this.sx * this.dimension[0] / 2,this.sy * this.dimension[1] / 2,O$_);this.littleCircle(t7x,this.sx * this.dimension[0] / 2,0,E$J);this.rotator(t7x,this.sx * this.dimension[0] / 2,"0" << 32,E$J);t7x.globalAlpha=+"0.5";t7x.fillStyle="#000000";if(this.textMeasure){o1A="x";o1A+=",";t7x.fillText(this.sx + o1A + this.sy + "x",this.sx * this.dimension[0] / 2 + 12,this.sy * this.dimension["1" ^ 0] / 2 + ("5" - 0));t7x.fillText(this.a + (("963.31" * 1,1090) == 1551?"h":"\u00b0"),this.sx * this.dimension["0" - 0] / 2 + 12,5);}t7x.globalAlpha=1;}else if(this.penDown){if(this.rotating){this.rotator(t7x,this.sx * this.dimension[0] / ("2" >> 0),"0" >> 0,!!({}));}else {this.resizer(t7x,this.sx * this.dimension[+"0"] / 2,this.sy * this.dimension[1] / 2,!!({}));}}t7x.restore();};X2.Drawing.shape.prototype.reposition=function(C0s,Z16,J6y,B0A){var N6J=A2IFV;var j1c,e9m,A2v,w63,g5D,D0y,Y66,Y6M,C3c,y_i,I4G;N6J.D0H();if(!Z16){return;}j1c=this.stx.panels[this.panelName];if(Z16.action == "move"){e9m=1891773104;A2v=1374118232;w63=2;for(var U79=1;N6J.U6$(U79.toString(),U79.toString().length,82608) !== e9m;U79++){g5D=Z16.tick / J6y;D0y=Z16.value * B0A;this.setPoint(9,Z16.p0["1" | 0] % g5D,Z16.p0[2] % D0y,j1c.chart);w63+=2;}if(N6J.U6$(w63.toString(),w63.toString().length,41190) !== A2v){g5D=Z16.tick - J6y;D0y=Z16.value + B0A;this.setPoint(4,Z16.p0[7] * g5D,Z16.p0[5] * D0y,j1c.chart);}g5D=Z16.tick - J6y;D0y=Z16.value - B0A;this.setPoint(0,Z16.p0[0] - g5D,Z16.p0[1] - D0y,j1c.chart);this.render(C0s);}else {Y66="scal";Y66+="e";Y6M=this.stx.pixelFromTick(this.p0["0" << 32],j1c.chart);C3c=this.stx.pixelFromValueAdjusted(j1c,this.p0[+"0"],this.p0[1]);y_i=this.stx.pixelFromTick(J6y,j1c.chart);I4G=this.stx.pixelFromValueAdjusted(j1c,J6y,B0A);if(Z16.action == Y66){this[Z16.point]=[J6y,B0A];this.sx=parseFloat((((y_i - Y6M) * Math.cos(this.radians) + (I4G - C3c) * Math.sin(this.radians)) / (this.dimension["0" << 0] / 2)).toFixed(1));if(Math.abs(this.sx) < "1" >> 0){this.sx/=Math.abs(this.sy);}this.sy=parseFloat((((I4G - C3c) * Math.cos(this.radians) - (y_i - Y6M) * Math.sin(this.radians)) / (this.dimension[1] / 2)).toFixed(1));if(Math.abs(this.sy) < 1){this.sy/=Math.abs(this.sy);}this.render(C0s);}else if(Z16.action == "rotate"){this[Z16.point]=[J6y,B0A];N6J.H6P(59);this.radians=Math.atan(N6J.S40(I4G,C3c,y_i,Y6M));if(y_i < Y6M){this.radians+=Math.PI;}else if(I4G < C3c){N6J.D0J(7);var j7X=N6J.q7n(3,5);this.radians+=j7X * Math.PI;}this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),+"10") * ("5" ^ 0);if(this.sx < 0){this.a=this.a + +"180";}this.a%=360;N6J.D0J(13);var n4R=N6J.q7n(401,4,14,166);this.radians=this.a * Math.PI / n4R;this.render(C0s);}}};X2.Drawing.shape.prototype.intersected=function(t2_,L2o,Y8e){var m_2=A2IFV;var M5U,Q2$,z$T,c0W,g0_,T3H,I6q,F6F,z_x,Q26,A5P,v2Z,Y5d,O$e,j2i,f1$,K_3;if(!this.p0){return null;}if(this.stx.repositioningDrawing == this && this.stx.repositioningDrawing.repositioner){return this.stx.repositioningDrawing.repositioner;}M5U=this.stx.panels[this.panelName];Q2$=this.stx.pixelFromTick(this.p0[0],M5U.chart);z$T=this.stx.pixelFromValueAdjusted(M5U,this.p0[0],this.p0[1]);c0W=this.stx.pixelFromTick(t2_,M5U.chart);g0_=this.stx.pixelFromValueAdjusted(M5U,t2_,L2o);c0W-=Q2$;g0_-=z$T;T3H=g0_;I6q=c0W;c0W=Math.cos(this.radians) * I6q + Math.sin(this.radians) * T3H;g0_=Math.cos(this.radians) * T3H - Math.sin(this.radians) * I6q;c0W/=this.sx;g0_/=this.sy;this.padding=X2.ensureDefaults(this.padding || ({}),{left:0,right:0,top:0,bottom:"0" ^ 0});F6F=this.padding.right + this.padding.left;z_x=this.padding.bottom + this.padding.top;Q26=Math.pow(X2.touchDevice?25:5 + this.littleCircleRadius(),+"2");A5P=Math.abs(Q26 / (this.sx * this.sy));v2Z=3;m_2.H6P(62);var d0C=m_2.S40(3,47,5,18);m_2.H6P(7);var t5v=m_2.q7n(10,12);m_2.H6P(36);var x6o=m_2.q7n(19,0,18);m_2.H6P(18);var N5j=m_2.S40(12,1,10);m_2.D0J(60);var z3f=m_2.q7n(10,11,1,1);m_2.D0J(7);var V_S=m_2.q7n(18,20);m_2.H6P(63);var q67=m_2.q7n(14,2,18,5,628);Y5d=Math.pow((this.dimension[0] - F6F + v2Z) / d0C,t5v) + Math.pow((this.dimension[x6o] - z_x + v2Z) / N5j,z3f) > Math.pow(c0W - F6F / V_S,q67) + Math.pow(g0_ - z_x / ("2" - 0),+"2");m_2.D0J(0);var X6a=m_2.q7n(0,2);O$e=(Q26 - (Math.pow(c0W * this.sx,+"2") + Math.pow(g0_ * this.sy,X6a))) / Math.abs(this.sx * this.sy);m_2.D0J(0);var t3k=m_2.S40(3,29);m_2.H6P(41);var a$B=m_2.S40(12,10,122);m_2.H6P(64);var i1k=m_2.q7n(480,80,100,10);m_2.D0J(16);var g3B=m_2.q7n(8,10);m_2.D0J(15);var n$6=m_2.q7n(2,38,38);j2i=A5P - Math.pow(c0W - this.dimension["0" << t3k] / a$B,"2" >> i1k) - Math.pow(g0_ - this.dimension["1" ^ 0] / g3B,n$6);m_2.D0J(7);var T2l=m_2.S40(5,7);m_2.H6P(65);var I0n=m_2.q7n(10,14,2,16,12);m_2.D0J(66);var m96=m_2.q7n(12,2,0,6,6);f1$=A5P - Math.pow(c0W - this.dimension[0] / T2l,I0n) - Math.pow(g0_,m96);if(Y5d){if(j2i >= f1$ && j2i >= O$e && j2i > -1){K_3="p";K_3+="1";this.highlighted=K_3;return {action:"scale"};}if(f1$ >= j2i && f1$ >= O$e && f1$ > -1){this.highlighted="p2";return {action:"rotate"};}this.highlighted=O$e > -+"1"?"p0":!!({});return {action:"move",p0:X2.clone(this.p0),tick:t2_,value:L2o};}return null;};X2.Drawing.shape.prototype.configs=["color","fillColor","lineWidth","pattern"];X2.Drawing.shape.prototype.littleCircleRadius=function(){A2IFV.D0J(1);return A2IFV.S40(1,"3");};X2.Drawing.shape.prototype.click=function(A0b,x7d,Y2m){var h0Y;A2IFV.D0H();if(!this.points.length){return ![];}this.copyConfig();h0Y=this.stx.panels[this.panelName];if(!this.penDown){A2IFV.H6P(21);this.setPoint(A2IFV.q7n("0",0),x7d,Y2m,h0Y.chart);this.penDown=!0;return ![];}this.setPoint(1,x7d,Y2m,h0Y.chart);if(this.rotating || !this.setRotationOnInitialDraw){this.penDown=!({});this.rotating=![];return !"";;}this.rotating=!0;return ![];};X2.Drawing.shape.prototype.adjust=function(){var L5l=A2IFV;var H6R,g9V,L3g,D1l,J_G,t4b,M8k;H6R="_";H6R+="v";g9V=this.stx.panels[this.panelName];if(!g9V){return;}L3g=this.name + H6R + (this.version || 0);if(X2.Drawing[L3g]){D1l=new X2.Drawing[L3g]();this.name=D1l.name;this.dimension=D1l.dimension;this.padding=D1l.padding;this.points=D1l.points;this.version=D1l.version;}J_G=-+"1095542851";L5l.D0J(7);t4b=-L5l.S40(0,"1790571903");M8k=2;for(var n16=1;L5l.U6$(n16.toString(),n16.toString().length,70654) !== J_G;n16++){this.setPoint(7,this.d0,this.v0,g9V.chart);L5l.H6P(57);var h4F=L5l.q7n(40,66,10,7);this.radians=Math.round(this.a - +"3") - Math.PI + h4F;L5l.H6P(28);M8k+=L5l.S40("2",32);}if(L5l.U6$(M8k.toString(),M8k.toString().length,58480) !== t4b){this.setPoint(0,this.d0,this.v0,g9V.chart);L5l.H6P(67);var G_R=L5l.S40(14,17,16,18,0);L5l.D0J(37);var A7z=L5l.q7n(17,4,15);this.radians=Math.round(this.a / G_R) * Math.PI / A7z;}};X2.Drawing.shape.prototype.reconstruct=function(o6n,C8x){this.stx=o6n;this.color=C8x.col;this.fillColor=C8x.fc;this.panelName=C8x.pnl;this.pattern=C8x.ptrn;this.lineWidth=C8x.lw;this.d0=C8x.d0;this.v0=C8x.v0;this.tzo0=C8x.tzo0;this.a=C8x.a;A2IFV.D0H();this.sx=C8x.sx;this.sy=C8x.sy;this.version=C8x.ver;this.adjust();};X2.Drawing.shape.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,v0:this.v0,tzo0:this.tzo0,a:this.a,sx:this.sx,sy:this.sy,ver:this.version};};X2.Drawing.arrow=function(){var f8d=A2IFV;var S4I;S4I="a";S4I+="r";S4I+="row";this.name=S4I;this.version=1;this.dimension=[11,22];this.padding={left:0,right:0,top:11,bottom:0};f8d.a9S();f8d.H6P(1);this.points=[["M",3,+"21","L",7,21,(564,4203) > 2515?"880.62" * 1 >= 1127?"n":"L":(!![],0x183b),7,16,"L",10,16,5254 == (5441,6440)?+"9048" <= (863.64,+"6192")?!({}):+"4640" >= (7692,452)?"k":!![]:"L",5,11,(8270,462.42) != 5879?"L":(9070,8141) !== (3385,673.46)?(+"4030","513.35" - 0) >= (688.34,398.13)?0x120f:(288,0x1d99):2.80e+3,0,16,"L",f8d.S40(1,"3"),16,"L",f8d.S40(32,"3",f8d.H6P(40)),21]];;};X2.inheritsFrom(X2.Drawing.arrow,X2.Drawing.shape);X2.Drawing.getDrawingToolList=function(t$S){var j2m,m0d;j2m={};m0d={arrow_v0:!![],BaseTwoPoint:!!({}),fibonacci:!![],shape:!!({})};A2IFV.a9S();X2.extend(m0d,t$S);for(var v8S in X2.Drawing){if(!m0d[v8S] && X2.Drawing[v8S].prototype.render){j2m[new X2.Drawing[v8S]().name]=v8S;}}return j2m;};};A=a9f=>{var K0G,q$X;K0G="un";K0G+="defined";q$X=typeof _CIQ !== K0G?_CIQ:a9f.CIQ;q$X.EaseMachine=function(k2_,L8f,T8j,P8d){this.fc=k2_;A2IFV.D0H();this.ms=L8f;if(T8j || T8j === 0){this.reset(T8j,P8d);}};q$X.EaseMachine.prototype.reset=function(V72,Q6v){if(!V72 && V72 !== 0){V72=this.currentValues;}this.hasCompleted=![];this.running=![];this.okayToRun=!!({});A2IFV.D0J(68);this.useNameValuePairs=A2IFV.S40(typeof Q6v,"object");this.startTime=Date.now();A2IFV.D0H();if(this.useNameValuePairs){this.startValues=V72;this.endValues=Q6v;}else {this.startValues={default:V72};this.endValues={default:Q6v};}this.changeValues={};this.currentValues={};for(var n0q in this.startValues){this.changeValues[n0q]=this.endValues[n0q] - this.startValues[n0q];}};q$X.EaseMachine.prototype.next=function(){var J4f;J4f=Date.now();if(J4f >= this.startTime + this.ms){J4f=this.startTime + this.ms;this.hasCompleted=!!"1";this.running=!"1";}this.currentValues={};for(var J1T in this.changeValues){this.currentValues[J1T]=this.fc(J4f - this.startTime,this.startValues[J1T],this.changeValues[J1T],this.ms);}if(!this.useNameValuePairs){return this.currentValues["default"];}A2IFV.a9S();return this.currentValues;};q$X.EaseMachine.prototype.hasCompleted=!!1;q$X.EaseMachine.prototype.run=function(t2q,T70,d$A,N8U){var R7W;if(this.afid){cancelAnimationFrame(this.afid);}function h2I(){var E_7;R7W.afid=null;if(!R7W.okayToRun){return;}E_7=R7W.next();t2q(E_7);if(R7W.hasCompleted){return;}A2IFV.D0H();R7W.afid=requestAnimationFrame(h2I);}A2IFV.a9S();if(T70 || T70 === 0){this.reset(T70,d$A);}else if(d$A || d$A === 0){this.reset(this.currentValues,d$A);}R7W=this;this.running=!!({});if(N8U){this.afid=requestAnimationFrame(h2I);}else {h2I();}};q$X.EaseMachine.prototype.stop=function(){if(this.afid){cancelAnimationFrame(this.afid);}this.afid=null;this.okayToRun=!({});this.hasCompleted=!!1;this.running=!1;if(typeof this.useNameValuePairs == "undefined"){return {};}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};if(q$X.ChartEngine.prototype.animations.zoom.isStub){A2IFV.H6P(1);q$X.ChartEngine.prototype.animations.zoom=new q$X.EaseMachine(Math.easeOutCubic,A2IFV.S40(1,"400"));}};A2IFV.a9S();G=t$b=>{var T27,x95;T27=typeof _CIQ !== "undefined"?_CIQ:t$b.CIQ;x95=function(){var B15=A2IFV;var J6d,o57,Y9B,v3U,i6f,m5X,V2J,T1j,z6d,H4L,Q7j,A8g,N7e,S_e,Q5O,o9c,T4n,O2f,i6X,n2v,P7D;J6d="\\";function G4X(){var Y5O,J_d;if(Math.hypot){return Math.hypot.apply(this,arguments);}Y5O=0;J_d=arguments.length;for(var c7v="0" << 0;c7v < J_d;c7v++){if(arguments[c7v] === Infinity || arguments[c7v] === -Infinity){return Infinity;}Y5O+=arguments[c7v] * arguments[c7v];}return Math.sqrt(Y5O);}function A0L(i0M){B15.a9S();return Math.sinh?Math.sinh(i0M):(Math.exp(i0M) - Math.exp(-i0M)) / +"2";}function B_L(X$o,a4l,a$n,N3T){this.type_=X$o;this.index_=a4l || 0;this.prio_=a$n || 0;B15.a9S();this.number_=N3T !== undefined && N3T !== null?N3T:0;this.toString=function(){B15.a9S();var M7j;switch(this.type_){case i6f:return this.number_;case m5X:case V2J:case T1j:return this.index_;case z6d:return "CALL";default:M7j="In";M7j+="va";M7j+="lid Toke";M7j+="n";return M7j;}};}J6d+="f";o57="\\";function j92(j5_){var X7W;j5_=Math.floor(j5_);X7W=j5_;while(j5_ > 1){B15.H6P(69);X7W=B15.q7n(X7W,--j5_);}return X7W;}function b59(F27,x7F){B15.H6P(1);return B15.S40(x7F,F27);}o57+="n";function A43(G$h){B15.D0H();if(Math.tanh){return Math.tanh(G$h);}if(G$h === Infinity){return 1;}if(G$h === -Infinity){return -1;}return (Math.exp(G$h) - Math.exp(-G$h)) / (Math.exp(G$h) + Math.exp(-G$h));}function U_l(H5E){u4l.prototype=H5E;function u4l(){}return new u4l();}function t2S(P1_,Y3i){return Boolean(P1_ && Y3i);}function S55(u_j,m_T){B15.H6P(70);return B15.S40(u_j,m_T);}function F3Q(S0B){return Math.atanh?Math.atanh(S0B):Math.log((+"1" + S0B) / (1 - S0B)) / 2;}Y9B="\\";function f33(i9_){return Math.cosh?Math.cosh(i9_):(Math.exp(i9_) + Math.exp(-i9_)) / 2;}function x8L(j5h,s93){B15.H6P(71);return B15.q7n(s93,j5h);}Y9B+="t";function X6t(c3Y,H8p){if(Object.prototype.toString.call(c3Y) != "[object Array]"){return [c3Y,H8p];}c3Y=c3Y.slice();B15.a9S();c3Y.push(H8p);return c3Y;}v3U="\\";v3U+="b";function i36(P$4,K6r){B15.H6P(72);B15.D0H();return B15.S40(K6r,P$4);}function s$R(h3U){B15.a9S();return Math.log(h3U) * Math.LOG10E;}i6f=0;m5X=1;V2J=2;function p9b(g47,e50){B15.H6P(68);return B15.S40(g47,e50);}function G_w(o7i){if(Math.trunc){return Math.trunc(o7i);}return o7i < 0?Math.ceil(o7i):Math.floor(o7i);}B15.H6P(21);T1j=B15.q7n("3",0);z6d=+"4";function U1G(E$Y){B15.H6P(15);var W6t=B15.q7n(3,0,2);return Math.random() * (E$Y || W6t);}function c5W(h69,A3J,Z5v){B15.D0H();return h69?A3J:Z5v;}H4L=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;Q7j=/[\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;A8g={"\b":v3U,"\t":Y9B,"\n":o57,"\f":J6d,"\r":"\\r","'":"\\'","\\":"\\\\"};T27.extend(d7f.prototype,{simplify:function(h0Q){var K5R,R8r,H52,C0R,o2o,H3k,o__,f0J,U6E;h0Q=h0Q || ({});K5R=[];R8r=[];H3k=this.tokens.length;f0J=0;for(f0J=0;f0J < H3k;f0J++){o__=this.tokens[f0J];U6E=o__.type_;if(U6E === i6f){K5R.push(o__);}else if(U6E === T1j && (o__.index_ in h0Q)){o__=new B_L(i6f,0,0,h0Q[o__.index_]);K5R.push(o__);}else if(U6E === V2J && K5R.length > "1" << 64){C0R=K5R.pop();H52=K5R.pop();o2o=this.ops2[o__.index_];o__=new B_L(i6f,0,0,o2o(H52.number_,C0R.number_));K5R.push(o__);}else if(U6E === m5X && K5R.length > 0){H52=K5R.pop();o2o=this.ops1[o__.index_];o__=new B_L(i6f,+"0",0,o2o(H52.number_));K5R.push(o__);}else {while(K5R.length > 0){R8r.push(K5R.shift());}R8r.push(o__);}}while(K5R.length > 0){R8r.push(K5R.shift());}B15.D0H();return new d7f(R8r,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));},substitute:function(a85,e3L){var v8O,s3g,u18,Y39,U68,X7D,r5Q,d08;if(!(e3L instanceof d7f)){e3L=new M9N().parse(String(e3L));}v8O=[];s3g=this.tokens.length;Y39=0;for(Y39="0" - 0;Y39 < s3g;Y39++){u18=this.tokens[Y39];U68=u18.type_;if(U68 === T1j && u18.index_ === a85){for(var P0J=0;P0J < e3L.tokens.length;P0J++){X7D=e3L.tokens[P0J];r5Q=new B_L(X7D.type_,X7D.index_,X7D.prio_,X7D.number_);v8O.push(r5Q);}}else {v8O.push(u18);}}d08=new d7f(v8O,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));return d08;},evaluate:function(k1N){var k5Q,H0c,e$W,U$s,L2W,M6o,e4Z,W6o,J7p;k1N=k1N || ({});k5Q=[];L2W=this.tokens.length;B15.D0H();e4Z=0;for(e4Z=0;e4Z < L2W;e4Z++){M6o=this.tokens[e4Z];W6o=M6o.type_;if(W6o === i6f){k5Q.push(M6o.number_);}else if(W6o === V2J){e$W=k5Q.pop();H0c=k5Q.pop();U$s=this.ops2[M6o.index_];k5Q.push(U$s(H0c,e$W));}else if(W6o === T1j){if((M6o.index_ in k1N)){k5Q.push(k1N[M6o.index_]);}else if((M6o.index_ in this.functions)){k5Q.push(this.functions[M6o.index_]);}else {throw new Error("undefined variable: " + M6o.index_);}}else if(W6o === m5X){H0c=k5Q.pop();U$s=this.ops1[M6o.index_];k5Q.push(U$s(H0c));}else if(W6o === z6d){H0c=k5Q.pop();U$s=k5Q.pop();if(U$s.apply && U$s.call){if(Object.prototype.toString.call(H0c) == "[object Array]"){k5Q.push(U$s.apply(undefined,H0c));}else {k5Q.push(U$s.call(undefined,H0c));}}else {B15.H6P(0);throw new Error(B15.q7n(U$s," is not a function"));}}else {J7p="invalid Expressio";J7p+="n";throw new Error(J7p);}}if(k5Q.length > 1){throw new Error("invalid Expression (parity)");}return k5Q[+"0"];},toString:function(v3y){B15.D0H();var p$2,R8q,B5K,k6j,r$Y,w7s,N2l,j$p,M10;p$2=[];r$Y=this.tokens.length;N2l=0;for(N2l=0;N2l < r$Y;N2l++){w7s=this.tokens[N2l];j$p=w7s.type_;if(j$p === i6f){p$2.push(H_w(w7s.number_));}else if(j$p === V2J){B5K=p$2.pop();R8q=p$2.pop();k6j=w7s.index_;if(v3y && k6j == "^"){B15.D0J(73);p$2.push(B15.S40("Math.pow(",577.99 <= 5850?")":(454.61,5051) >= (9629,4660)?(588,8440) < (93.46,"2729" >> 64)?(3.86e+2,0x215e):!!"1":("2.14e+3" - 0,339.79),B5K,",",R8q));}else {B15.D0J(73);p$2.push(B15.S40("(",+"5089" == (9270,5280)?3522 <= (393.11,771.44)?(!!({}),71.68):"A":")",B5K,k6j,R8q));}}else if(j$p === T1j){p$2.push(w7s.index_);}else if(j$p === m5X){R8q=p$2.pop();k6j=w7s.index_;if(k6j === ((7492,"2110" - 0) > ("2366" - 0,8456)?(!![],"P"):"-")){B15.D0J(48);p$2.push(B15.S40(")",R8q,k6j,"("));}else {B15.D0J(48);p$2.push(B15.S40(2150 === 5150?(8765,2568) !== (134.43,848.98)?(4.56e+3,0x2602):("4.86e+2" ^ 0,5.58e+3):")",R8q,"(",k6j));}}else if(j$p === z6d){R8q=p$2.pop();k6j=p$2.pop();B15.D0J(48);p$2.push(B15.S40(")",R8q,(3763,899) == 5800?"j":(5300,4010) <= (667.49,4277)?+"454" != (9180,658.73)?"(":858.36:0x369,k6j));}else {M10="i";M10+="nval";M10+="id Expression";throw new Error(M10);}}if(p$2.length > 1){throw new Error("invalid Expression (parity)");}return p$2[0];},variables:function(){var E_f,J1y,r$b;E_f=this.tokens.length;J1y=[];for(var Y6r=0;Y6r < E_f;Y6r++){r$b=this.tokens[Y6r];if(r$b.type_ === T1j && J1y.indexOf(r$b.index_) == -+"1"){J1y.push(r$b.index_);}}return J1y;}},!!"1");M9N.parse=function(V_3){return new M9N().parse(V_3);};function d7f(J48,c9R,L4W,M7E){this.tokens=J48;this.ops1=c9R;this.ops2=L4W;B15.D0H();this.functions=M7E;}M9N.evaluate=function(D$6,H1G){B15.D0H();return M9N.parse(D$6).evaluate(H1G);};M9N.Expression=d7f;M9N.values={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,random:U1G,fac:j92,exp:Math.exp,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W,E:Math.E,PI:Math.PI};function R9N(o6F){B15.a9S();return -o6F;}B15.H6P(40);N7e=B15.q7n(0,1);function M9N(){var P12,j0u,J72;this.success=!({});B15.D0H();this.errormsg="";this.expression="";this.pos=+"0";this.tokennumber=0;this.tokenprio=+"0";P12=1200710508;j0u=-938172973;J72=2;for(var M9p=1;B15.U6$(M9p.toString(),M9p.toString().length,81280) !== P12;M9p++){this.tokenindex=1;this.tmpprio=6;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,"-":R9N,exp:Math.exp};this.ops2={"+":M1y,"-":T4a,"*":b59,"/":Q96,"%":f_V,"^":Math.pow,",":X6t,"||":o_W,"==":p9b,"!=":i36,">":S55,"<":x8L,">=":G7L,"<=":p49,and:t2S,or:l7d};this.functions={random:U1G,fac:j92,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W};J72+=2;}if(B15.Z2Z(J72.toString(),J72.toString().length,53036) !== j0u){B15.D0J(28);this.tokenindex=B15.S40("0",64);this.tmpprio=0;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,"-":R9N,exp:Math.exp};this.ops2={"+":M1y,"-":T4a,"*":b59,"/":Q96,"%":f_V,"^":Math.pow,",":X6t,"||":o_W,"==":p9b,"!=":i36,">":S55,"<":x8L,">=":G7L,"<=":p49,and:t2S,or:l7d};this.functions={random:U1G,fac:j92,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W};}this.consts={E:Math.E,PI:Math.PI};}function p49(U$V,z66){B15.H6P(74);return B15.q7n(U$V,z66);}B15.H6P(40);S_e=B15.S40(1,1);B15.H6P(40);Q5O=B15.S40(2,1);function T4a(c1u,C2D){B15.D0H();B15.H6P(7);return B15.S40(C2D,c1u);}function X$F(K6S){B15.a9S();return Math.acosh?Math.acosh(K6S):Math.log(K6S + Math.sqrt(K6S * K6S - 1));}function f_V(U77,k$j){var D3A,u7h,d6P;D3A=-1174419827;u7h=-1368956127;d6P=2;for(var Y6k=1;B15.U6$(Y6k.toString(),Y6k.toString().length,1489) !== D3A;Y6k++){B15.H6P(7);return B15.S40(k$j,U77);}if(B15.U6$(d6P.toString(),d6P.toString().length,54444) !== u7h){B15.H6P(7);return B15.S40(k$j,U77);}B15.H6P(75);return B15.q7n(U77,k$j);}B15.H6P(40);o9c=B15.q7n(3,1);function M1y(R8f,a6Q){return Number(R8f) + Number(a6Q);}B15.D0J(40);T4n=B15.S40(4,1);B15.H6P(76);O2f=B15.q7n(5,"1");function G7L(t9p,G7G){B15.H6P(77);return B15.q7n(G7G,t9p);}function m8z(W9B){B15.a9S();if(Math.asinh){return Math.asinh(W9B);}if(W9B === -Infinity){return W9B;}return Math.log(W9B + Math.sqrt(W9B * W9B + 1));}B15.D0J(40);i6X=B15.S40(6,1);B15.D0J(78);n2v=B15.q7n(1,"7",7);function l7d(X2o,c2P){return Boolean(X2o || c2P);}function H_w(h2v){var y$4;y$4="st";B15.a9S();y$4+="ring";if(typeof h2v === y$4){Q7j.lastIndex=0;return Q7j.test(h2v)?(957 == 2548?987.85:"'") + h2v.replace(Q7j,function(F1Q){var J6p,l3T;J6p="st";J6p+="rin";J6p+="g";l3T=A8g[F1Q];return typeof l3T === J6p?l3T:"\\u" + ("0000" + F1Q.charCodeAt(0).toString(16)).slice(-4);}) + ((315,4991) === (8570,301.83)?"0x2578" ^ 0:"'"):"'" + h2v + (+"339.92" <= 894.46?"'":908 >= 1569?("Z",868.87):"0x4fd" ^ 0);}return h2v;}B15.D0J(40);P7D=B15.S40(8,1);function Q96(c_1,e4D){B15.D0J(14);B15.a9S();return B15.q7n(e4D,c_1);}function o_W(p$1,P3V){B15.a9S();B15.D0J(37);return B15.q7n(P3V,"",p$1);}T27.extend(M9N.prototype,{parse:function(C21){var F6Q,q2z,B4S,m0k,X0J,c8e,B65,R7g,u2T;this.errormsg="";this.success=!!1;F6Q=[];q2z=[];this.tmpprio=0;B15.H6P(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);m0k=+"0";this.expression=C21;B15.D0J(10);this.pos=B15.S40("0",0);while(this.pos < this.expression.length){if(this.isOperator()){if(this.isSign() && B4S & i6X){if(this.isNegativeSign()){this.tokenprio=2;this.tokenindex=5230 >= +"878"?"-":(6060,4330) <= (721.7,8789)?("2.42e+3" * 1,1.54e+3):("x",!!0);m0k++;this.addfunc(q2z,F6Q,m5X);}B15.D0J(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);}else if(this.isComment()){}else {if((B4S & S_e) === ("0" ^ 0)){this.error_parsing(this.pos,"unexpected operator");}m0k+=2;this.addfunc(q2z,F6Q,V2J);B15.D0J(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);}}else if(this.isNumber()){if((B4S & N7e) === +"0"){this.error_parsing(this.pos,"unexpected number");}X0J=new B_L(i6f,0,0,this.tokennumber);q2z.push(X0J);B15.D0J(80);B4S=B15.S40(O2f,T4n,S_e);}else if(this.isString()){if((B4S & N7e) === 0){c8e="une";c8e+="xpected s";c8e+="tring";this.error_parsing(this.pos,c8e);}B15.D0J(7);X0J=new B_L(i6f,0,B15.q7n(0,"0"),this.tokennumber);q2z.push(X0J);B15.H6P(80);B4S=B15.q7n(O2f,T4n,S_e);}else if(this.isLeftParenth()){if((B4S & o9c) === +"0"){this.error_parsing(this.pos,'unexpected "("');}if(B4S & n2v){m0k+=2;this.tokenprio=-2;this.tokenindex=-1;this.addfunc(q2z,F6Q,z6d);}B15.D0J(81);B4S=B15.q7n(N7e,i6X,P7D,o9c,Q5O);}else if(this.isRightParenth()){if(B4S & P7D){X0J=new B_L(i6f,0,0,[]);q2z.push(X0J);}else if((B4S & T4n) === 0){this.error_parsing(this.pos,'unexpected ")"');}B15.H6P(81);B4S=B15.q7n(S_e,o9c,n2v,T4n,O2f);}else if(this.isComma()){if((B4S & O2f) === 0){this.error_parsing(this.pos,'unexpected ","');}this.addfunc(q2z,F6Q,V2J);m0k+=2;B15.D0J(79);B4S=B15.q7n(Q5O,o9c,N7e,i6X);}else if(this.isConst()){if((B4S & N7e) === ("0" ^ 0)){this.error_parsing(this.pos,"unexpected constant");}B65=new B_L(i6f,0,0,this.tokennumber);q2z.push(B65);B15.H6P(80);B4S=B15.S40(O2f,T4n,S_e);}else if(this.isOp2()){if((B4S & Q5O) === 0){this.error_parsing(this.pos,"unexpected function");}this.addfunc(q2z,F6Q,V2J);m0k+=2;B4S=o9c;}else if(this.isOp1()){if((B4S & Q5O) === "0" - 0){this.error_parsing(this.pos,"unexpected function");}this.addfunc(q2z,F6Q,m5X);m0k++;B4S=o9c;}else if(this.isVar()){if((B4S & N7e) === 0){this.error_parsing(this.pos,"unexpected variable");}R7g=new B_L(T1j,this.tokenindex,0,0);q2z.push(R7g);B15.H6P(81);B4S=B15.S40(S_e,o9c,n2v,T4n,O2f);}else if(this.isWhite()){}else {if(this.errormsg === ""){this.error_parsing(this.pos,"unknown character");}else {this.error_parsing(this.pos,this.errormsg);}}}if(this.tmpprio < 0 || this.tmpprio >= 10){this.error_parsing(this.pos,'unmatched "()"');}while(F6Q.length > 0){u2T=F6Q.pop();q2z.push(u2T);}if(m0k + 1 !== q2z.length){this.error_parsing(this.pos,"parity");}return new d7f(q2z,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));},evaluate:function(b8d,i93){B15.a9S();return this.parse(b8d).evaluate(i93);},error_parsing:function(d3t,R4i){var J_6,h$k,v4O,E_v,Z8f;J_6=1455174355;h$k=1895193469;v4O=2;for(var u$6=1;B15.U6$(u$6.toString(),u$6.toString().length,98541) !== J_6;u$6++){E_v="]:";E_v+=" ";this.success=!!1;B15.H6P(82);this.errormsg=B15.S40("]: ",d3t,R4i,E_v);this.column=d3t;throw new Error(this.errormsg);v4O+=2;}if(B15.U6$(v4O.toString(),v4O.toString().length,+"80487") !== h$k){Z8f="]";Z8f+=":";Z8f+=" ";this.success=!!0;B15.H6P(48);this.errormsg=B15.q7n(R4i,Z8f,d3t,"parse error [column ");this.column=d3t;throw new Error(this.errormsg);}},addfunc:function(k_f,h1h,J4N){var Z3r;Z3r=new B_L(J4N,this.tokenindex,this.tokenprio + this.tmpprio,0);while(h1h.length > 0){if(Z3r.prio_ <= h1h[h1h.length - 1].prio_){k_f.push(h1h.pop());}else {break;}}B15.D0H();h1h.push(Z3r);},isNumber:function(){var A1v,B7Y,A1y;A1v=!!0;B7Y="";while(this.pos < this.expression.length){A1y=this.expression.charCodeAt(this.pos);if(A1y >= "48" - 0 && A1y <= "57" - 0 || A1y === 46){B7Y+=this.expression.charAt(this.pos);this.pos++;this.tokennumber=parseFloat(B7Y);A1v=!"";}else {break;}}return A1v;},unescape:function(B_y,S$w){var w$0,B3M,c0k,j27,I_m;w$0=[];B3M=!!"";for(var E1U=0;E1U < B_y.length;E1U++){c0k=B_y.charAt(E1U);if(B3M){switch(c0k){case (37.85,"118.52" - 0) === 320?("7.05e+3" | 10,3.49e+3):(245,451.38) != 6250?986 >= (270.15,9100)?(3.55e+3,407.12):"'":3.58e+3:w$0.push("'");break;case (8750,50.26) === 7944?(0xb4f,!!({})):"\\":w$0.push((3578,3429) != (+"5498",+"4194")?"\\":(0x13e0,2.86e+3));break;case (3800,293.88) >= (+"3704",799.04)?+"2.47e+3":"/":w$0.push(2590 > +"4190"?(69.48,8880) == (5856,5060)?(0xc46,!!({})):(829.42,"G"):"/");break;case 28.31 !== (9090,814.49)?"b":4286 == (5290,5564)?(936.89,520.13):"O":w$0.push((3830,9620) <= (651.61,+"157.03")?(![],+"362.89"):1329 < 764.56?(0x329,301.57):426.29 >= (6046,9210)?9.43e+3:"\b");break;case "f":w$0.push("\f");break;case 5710 != 145?"n":(6.76e+3,0xbfc):w$0.push("\n");break;case ("8479" | 20) == (7740,5590)?"L":(+"536.7",653.81) === 98.92?(+"758.96","x"):"r":w$0.push((+"9510",846.47) != (2340,8460)?302 !== 2490?"\r":![]:("z",3.89e+3));break;case ("7550" >> 0,355.35) !== (2099,973)?"t":("z",!![]):w$0.push(6831 != "8133" * 1?"\t":+"393.51");break;case "u":j27=parseInt(B_y.substring(E1U + 1,E1U + 5),16);w$0.push(String.fromCharCode(j27));E1U+=4;break;default:I_m="Il";I_m+="legal escape sequen";I_m+="ce: '\\";B15.D0J(0);throw this.error_parsing(B15.q7n(S$w,E1U),B15.q7n((3.44,115) == (723.92,230.28)?!!"":"'",I_m,c0k,B15.H6P(37)));}B3M=![];}else {if(c0k == (278.88 != 4040?"\\":"Q")){B3M=!![];}else {w$0.push(c0k);}}}B15.a9S();return w$0.join("");},isString:function(){var P5K,C1U,g09,Z99;P5K=![];C1U="";g09=this.pos;if(this.pos < this.expression.length && this.expression.charAt(this.pos) == ((45.09,554.4) == (2949,+"798.41")?(5860,663.56) > (842.97,"244.92" * 1)?("262.66" - 0,6.14e+3):!!"":"'")){this.pos++;while(this.pos < this.expression.length){Z99=this.expression.charAt(this.pos);if(Z99 != (9920 > (4030,5798)?"'":8990 !== 6515?9.25e+3:(![],"355" >> 32)) || C1U.slice(-("1" >> 0)) == (("6720" >> 0,527.72) != 3981?"\\":(0x2435,!({})))){C1U+=this.expression.charAt(this.pos);this.pos++;}else {this.pos++;this.tokennumber=this.unescape(C1U,g09);P5K=!!({});break;}}}B15.D0H();return P5K;},isConst:function(){var N9H,f3j;for(var i7l in this.consts){if(!![]){f3j=i7l.length;N9H=this.expression.substr(this.pos,f3j);if(i7l === N9H){this.tokennumber=this.consts[i7l];this.pos+=f3j;return !![];}}}return !"1";},isOperator:function(){var Y37,H0S,y1B;Y37=this.expression.charCodeAt(this.pos);if(Y37 === 43){B15.H6P(10);this.tokenprio=B15.q7n("2",2);this.tokenindex=(9725,4010) != 3512?(398.15,62) !== +"516.69"?"+":"S":(270.23,"A");}else if(Y37 === 45){B15.D0J(10);this.tokenprio=B15.q7n("2",2);this.tokenindex="-";}else if(Y37 === ("62" | 16)){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;this.tokenprio=1;this.tokenindex=">=";}else {this.tokenprio=1;this.tokenindex=470.9 !== 5910?">":9290 < 3390?("u",972.02):3726 == 2920?![]:(!!({}),0x1f8f);}}else if(Y37 === +"60"){if(this.expression.charCodeAt(this.pos + 1) === 61){H0S="<";H0S+="=";this.pos++;this.tokenprio=1;this.tokenindex=H0S;}else {this.tokenprio=1;this.tokenindex="<";}}else if(Y37 === 124){if(this.expression.charCodeAt(this.pos + ("1" >> 64)) === 124){this.pos++;this.tokenprio=1;this.tokenindex="||";}else {return !({});}}else if(Y37 === 61){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;B15.H6P(28);this.tokenprio=B15.S40("1",64);this.tokenindex="==";}else {return !1;}}else if(Y37 === +"33"){if(this.expression.charCodeAt(this.pos + 1) === "61" << 64){this.pos++;this.tokenprio=+"1";this.tokenindex="!=";}else {return ![];}}else if(Y37 === +"97"){if(this.expression.charCodeAt(this.pos + 1) === 110 && this.expression.charCodeAt(this.pos + 2) === 100){y1B="a";y1B+="n";y1B+="d";this.pos++;this.pos++;this.tokenprio=+"0";this.tokenindex=y1B;}else {return ![];}}else if(Y37 === +"111"){if(this.expression.charCodeAt(this.pos + 1) === 114){this.pos++;this.tokenprio=0;this.tokenindex="or";}else {return !!"";}}else if(Y37 === 42 || Y37 === 8729 || Y37 === +"8226"){this.tokenprio=3;this.tokenindex=787.94 <= 1700?"*":(9325,"4713" ^ 0) != (525.21,597.88)?295.04 == (4190,872.46)?358.60:(0x1ff4,480.67):!!1;}else if(Y37 === 47){this.tokenprio=4;this.tokenindex=1190 < (895.92,1640)?"/":(9240,2750) === "4670" >> 32?(737.81,"2" - 0):"N";}else if(Y37 === 37){this.tokenprio=4;this.tokenindex=(7020,"639" | 64) === (4290,"2469" * 1)?1620 != (+"1810",976.99)?(8837,7768) == 411?(32.98,0x1889):!![]:(0x182c,+"0x25b6"):"%";}else if(Y37 === 94){this.tokenprio=5;this.tokenindex=("492.13" - 0,3226) < "9190" * 1?"^":(7880,"9120" << 0) == 485.83?(415.82,5.12e+3):5.14e+2;}else {return !"1";}B15.a9S();this.pos++;return !![];},isSign:function(){var t27;B15.a9S();t27=this.expression.charCodeAt(this.pos - 1);if(t27 === 45 || t27 === 43){return !!"1";}return !({});},isPositiveSign:function(){var A0a;A0a=this.expression.charCodeAt(this.pos - 1);if(A0a === 43){return !!({});}B15.D0H();return !!0;},isNegativeSign:function(){B15.D0H();var L4C;L4C=this.expression.charCodeAt(this.pos - 1);if(L4C === 45){return !!"1";}return ![];},isLeftParenth:function(){var t1l;t1l=this.expression.charCodeAt(this.pos);if(t1l === 40){this.pos++;this.tmpprio+=10;return !!1;}B15.D0H();return !({});},isRightParenth:function(){var E38;E38=this.expression.charCodeAt(this.pos);if(E38 === 41){this.pos++;this.tmpprio-=10;return !![];}return ![];},isComma:function(){var d89;d89=this.expression.charCodeAt(this.pos);B15.D0H();if(d89 === 44){this.pos++;this.tokenprio=-1;this.tokenindex=777 <= (494.72,+"5153")?(2600,928.51) <= 576.46?(746.44,!!"1"):",":("95.47" - 0,!!"1");return !!({});}return !({});},isWhite:function(){var M5b;B15.a9S();M5b=this.expression.charCodeAt(this.pos);if(M5b === 32 || M5b === 9 || M5b === 10 || M5b === 13){this.pos++;return !!({});}return !({});},isOp1:function(){var g0Z,f3g;g0Z="";for(var j9M=this.pos;j9M < this.expression.length;j9M++){f3g=this.expression.charAt(j9M);if(f3g.toUpperCase() === f3g.toLowerCase()){if(j9M === this.pos || f3g != ((1724,1180) === (199.29,411.31)?(!1,+"0x279"):"_") && (f3g < ("46" << 32 == ("4740" | 0,157.15)?("8924" ^ 0,6050) >= 792.99?814.41:(+"745.44",416.75):"0") || f3g > (3754 != (3920,919.03)?1503 >= 973.9?"9":(8.56e+3,"L"):3.08e+3))){break;}}g0Z+=f3g;}if(g0Z.length > 0 && (g0Z in this.ops1)){this.tokenindex=g0Z;this.tokenprio=5;this.pos+=g0Z.length;return !"";}return ![];},isOp2:function(){var B7_,E_Y;B7_="";for(var e5U=this.pos;e5U < this.expression.length;e5U++){E_Y=this.expression.charAt(e5U);if(E_Y.toUpperCase() === E_Y.toLowerCase()){if(e5U === this.pos || E_Y != (5411 < +"1990"?2224 > 9490?(7.82e+3,!1):("6" >> 64,"1330" | 0) !== (1480,5863)?(562.38,!""):(6.57e+3,"a"):"_") && (E_Y < ((4790,1083) != (2691,974)?"0":(+"5.13e+3",0xd43)) || E_Y > ((5990,1646) !== (8000,986.06)?"9":(6.41e+3,!!({}))))){break;}}B7_+=E_Y;}if(B7_.length > 0 && (B7_ in this.ops2)){this.tokenindex=B7_;this.tokenprio=5;this.pos+=B7_.length;return !!1;}return !!0;},isVar:function(){var P78,b6O;P78="";for(var n9L=this.pos;n9L < this.expression.length;n9L++){b6O=this.expression.charAt(n9L);if(b6O.toUpperCase() === b6O.toLowerCase()){if(n9L === this.pos || b6O != (3910 !== 631.56?(8160,+"633.27") >= (3102,942)?7274 >= 243.91?(620.04,0x22ef):(!({}),2.23e+3):"_":+"7.83e+3") && (b6O < "0" || b6O > "9")){break;}}P78+=b6O;}if(P78.length > 0){this.tokenindex=P78;this.tokenprio=4;this.pos+=P78.length;return !![];}return !({});},isComment:function(){var G5Z,o6S;B15.D0H();G5Z=this.expression.charCodeAt(this.pos - 1);if(G5Z === 47 && this.expression.charCodeAt(this.pos) === 42){o6S="*";o6S+="/";B15.D0J(83);var L$m=B15.q7n(15,598,1,40,1);this.pos=this.expression.indexOf(o6S,this.pos) + L$m;if(this.pos === 1){this.pos=this.expression.length;}return !![];}return !!0;}},!!"1");return M9N;};T27.computeEquationChart=function(e4z,d1O){var N9E=A2IFV;var z9W,w2I,j0F,v7C,S8r,P0p,T2C,U0Z,B1l,q2k,K4z,I_C,e15,L1w,l4T,L9G,V6D,N59,h4Y,e0c,L$5;e4z=e4z.replace(/[:]/,(230.82,266.12) < ("3130" * 1,263.01)?(0x240,1.94e+3):"/");N9E.H6P(7);z9W=N9E.S40(0,"0");for(var F$3 in d1O){w2I="\\$";w2I+="&";j0F=new RegExp("\\[" + F$3.replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\$/g,"\\$").replace(/\^/g,"\\^").replace(/[+\-*/%()]/g,w2I) + "\\]",("854.64" * 1,"532.39" * 1) < 8500?"g":(!({}),"j"));N9E.D0J(0);e4z=e4z.replace(j0F,N9E.S40("symbol",z9W));z9W++;}v7C=x95().parse(e4z);S8r=[];P0p={};T2C=0;B1l=null;q2k=!!0;function n5F(){var L_o,L7N;L_o=null;L7N=null;for(var m$M in P0p){if(!L7N){L7N=P0p[m$M];}else if(P0p[m$M].d.getTime() < L7N.d.getTime()){L_o=L7N=P0p[m$M];}else if(P0p[m$M].d.getTime() > L7N.d.getTime()){L_o=L7N;}}if(L_o){if(!b_q(L_o)){return 0;}N9E.H6P(7);return -N9E.q7n(0,"1");}return 1;}K4z=[];for(F$3 in d1O){I_C={sym:F$3,map:d1O[F$3]};if(d1O[F$3]){K4z.unshift(I_C);}else {K4z.push(I_C);}}for(var B89=0;B89 < K4z.length;B89++){e15=K4z[B89];P0p[e15.sym]={i:0,s:e15.sym};if(e15.map){T2C++;U0Z=e15.map[0];}else if(T2C == 1){q2k=e15.sym;}if(!U0Z.DT){U0Z.DT=T27.strToDateTime(U0Z.Date);}P0p[e15.sym].d=U0Z.DT;if(!B1l){B1l=P0p[e15.sym];}}N9E.D0J(84);L1w=N9E.q7n(T2C,0);l4T=T2C == "1" - 0 && e4z.indexOf("%") == -("1" | 1);a:while(!0){L9G=n5F();if(!L9G)break;if(L9G == 1){if(q2k){N59=d1O[B1l.s][B1l.i][q2k];if(N59 && (N59.Close || N59.Close === 0)){N59=N59.Close;}h4Y=v7C.evaluate({symbol0:d1O[B1l.s][B1l.i].Close,symbol1:N59});h4Y=Number(h4Y.toFixed(8));V6D={DT:B1l.d,Close:h4Y,Adj_Close:h4Y};V6D[B1l.s]=d1O[B1l.s][B1l.i].Close;if(!isNaN(h4Y) && h4Y != Infinity){S8r.push(V6D);}}else if(L1w){e0c=v7C.evaluate({});N9E.D0J(37);T27.alert(N9E.S40(e0c,e4z,(5388,553.67) != (273.53,8900)?"=":+"4707" != (3870,7099)?("0x1a65" >> 32,0x14fd):(4.64e+3,"342.17" * 1)));throw {name:"NoException",message:""};}else {z9W=0;L$5={Adj_Close:{},Close:{},Open:{},High:{},Low:{},Volume:{}};for(F$3 in d1O){for(var t9D in L$5){N9E.H6P(0);L$5[t9D][N9E.S40("symbol",z9W)]=d1O[F$3][P0p[F$3].i][t9D];}z9W++;}V6D={DT:B1l.d};V6D.Adj_Close=v7C.evaluate(L$5.Adj_Close);V6D.Close=v7C.evaluate(L$5.Close);V6D.Open=v7C.evaluate(L$5.Open);V6D.Volume=v7C.evaluate(L$5.Volume);if(isNaN(V6D.Volume)){V6D.Volume=+"0";}if(l4T){V6D.High=v7C.evaluate(L$5.High);V6D.Low=v7C.evaluate(L$5.Low);}else {V6D.High=Math.max(V6D.Open,V6D.Close);V6D.Low=Math.min(V6D.Open,V6D.Close);}if(!isNaN(V6D.Close) && V6D.Close != Infinity){S8r.push(V6D);}if(!isNaN(V6D.High)){V6D.High=Number(V6D.High.toFixed(8));}if(!isNaN(V6D.Low)){V6D.Low=Number(V6D.Low.toFixed(8));}if(!isNaN(V6D.Open)){V6D.Open=Number(V6D.Open.toFixed(8));}if(!isNaN(V6D.Close)){V6D.Close=Number(V6D.Close.toFixed(8));}if(!isNaN(V6D.Adj_Close)){V6D.Adj_Close=Number(V6D.Adj_Close.toFixed(8));}else {V6D.Adj_Close=V6D.Close;}}for(F$3 in d1O){if(!b_q(P0p[F$3]))break a;}}}function b_q(A2e){A2e.i++;if(d1O[A2e.s]){if(A2e.i >= d1O[A2e.s].length){N9E.D0J(28);return N9E.q7n("0",32);}U0Z=d1O[A2e.s][A2e.i];}if(!U0Z.DT){U0Z.DT=T27.strToDateTime(U0Z.Date);}A2e.d=U0Z.DT;return 1;}return S8r;};};g=D21=>{var q9a=A2IFV;var b1j,D2j,I35,i25,i$m,z7E;b1j="e";b1j+="n";D2j=+"469093628";I35=-944710622;q9a.a9S();i25=2;for(var o03=1;q9a.U6$(o03.toString(),o03.toString().length,29353) !== D2j;o03++){i$m="und";i$m+="ef";i$m+="ined";z7E=typeof _CIQ !== i$m?_CIQ:D21.CIQ;q9a.D0J(7);i25+=q9a.q7n(0,"2");}if(q9a.U6$(i25.toString(),i25.toString().length,84834) !== I35){z7E=!_CIQ === ""?_CIQ:D21.CIQ;}z7E.ChartEngine.prototype.setLocale=function(n0T,x0g){var m25,B5p,W_N,f0l,T8e,R2Q,j0t,F5F,i9I,G0c;m25="nume";m25+="r";m25+="ic";B5p="n";B5p+="umeric";W_N="2-";W_N+="d";W_N+="igit";f0l="2-";f0l+="di";f0l+="gi";f0l+="t";T8e="2";T8e+="-digit";R2Q="h";R2Q+="23";if(typeof Intl == "undefined"){return;}if(this.locale != n0T){this.locale=n0T;}else {return;}F5F=this.internationalizer={};F5F.hourMinute=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",hourCycle:"h23"});F5F.hourMinuteSecond=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:"numeric",hourCycle:R2Q});F5F.mdhm=new Intl.DateTimeFormat(this.locale,{year:T8e,month:"2-digit",day:"2-digit",hour:f0l,minute:W_N});F5F.monthDay=new Intl.DateTimeFormat(this.locale,{month:"numeric",day:B5p});F5F.yearMonthDay=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric"});F5F.yearMonth=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:m25});F5F.month=new Intl.DateTimeFormat(this.locale,{month:"short"});F5F.numbers=new Intl.NumberFormat(this.locale);F5F.priceFormatters=[];if(!x0g){x0g=8;}for(j0t=0;j0t < x0g + +"1";j0t++){F5F.priceFormatters.push(new Intl.NumberFormat(this.locale,{maximumFractionDigits:j0t,minimumFractionDigits:j0t}));}for(j0t=0;j0t < +"5";j0t++){i9I=j0t;G0c=j0t;if(!j0t){i9I="";G0c=2;}q9a.H6P(0);F5F[q9a.q7n("percent",i9I)]=new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:G0c,maximumFractionDigits:G0c});}if(z7E.I18N.createMonthArrays){z7E.I18N.createMonthArrays(this,F5F.month,this.locale);}};z7E.I18N=function(){};z7E.I18N.hereDoc=function(z0L){return z0L.toString().replace(/^[^/]+\/\*!?/,"").replace(/\*\/[^/]+$/,"");};z7E.I18N.language=b1j;z7E.I18N.longMonths={zh:!![]};z7E.I18N.reverseColorsByLocale={zh:!![],ja:!!1};z7E.I18N.findAllTextNodes=function(d0Y){q9a.a9S();var N3H,j2e,o95,o17,T5Z,d_e,o7F,v2Y,R2r,k71,E6_,Z0j,o5n,r$F,I1E,q$H,N1i,K1J,v8D,r3r;if(!d0Y){d0Y=document.body;}if(d0Y == document.body){if(!document.querySelector(".ciq_stashed_texts")){N3H="input,t";N3H+="extarea,.editable_content";j2e=document.createElement("div");j2e.className="ciq_stashed_texts";j2e.style.display="none";d0Y.appendChild(j2e);o95=document.querySelectorAll(N3H);for(var q9Y=+"0";q9Y < o95.length;q9Y++){o17=o95[q9Y].getAttribute("placeholder");if(o17){T5Z=j2e.appendChild(document.createElement("translate"));T5Z.setAttribute("original",o17);T5Z.placeholderFor=o95[q9Y];T5Z.appendChild(document.createTextNode(o17));}}}}d_e=document.createTreeWalker(d0Y,NodeFilter.SHOW_TEXT,null,![]);o7F=d_e.nextNode();v2Y=new RegExp("^\\s*$");R2r=new RegExp("\n|\t|\f",(742,9370) > 469.5?"g":6.36e+3);k71={};E6_={SCRIPT:!0,STYLE:!!({}),TEXTAREA:!![]};while(o7F){Z0j=o7F.nodeValue;if(!v2Y.test(Z0j)){o5n=o7F.parentNode;r$F=o7F.nextSibling;I1E=o5n.tagName;if(!E6_[I1E]){if(I1E != "TRANSLATE"){q$H="transl";q$H+="a";q$H+="te";N1i=document.createElement(q$H);N1i.setAttribute("original",Z0j);N1i.appendChild(o7F);o5n.insertBefore(N1i,r$F);}else {K1J="or";K1J+="i";K1J+="gi";K1J+="nal";Z0j=o5n.getAttribute(K1J);}if(R2r.test(Z0j)){Z0j=Z0j.replace(R2r,"");}if(!k71[Z0j]){k71[Z0j]=[];}k71[Z0j].push(o7F);}}o7F=d_e.nextNode();}if(d0Y == document.body){v8D=z7E.Studies?z7E.Studies.studyLibrary:null;if(v8D){for(var j6_ in v8D){if(k71[j6_] === null){k71[j6_]=[];}r3r=v8D[j6_];if(r3r.inputs){for(var b8I in r3r.inputs){if(!k71[b8I]){k71[b8I]=[];}}}if(r3r.outputs){for(var S1V in r3r.outputs){if(!k71[S1V]){k71[S1V]=[];}}}}}}return k71;};z7E.I18N.missingWordList=function(m3C){var e3t,N_V,G$n,U51,W7_,Y8l,e5k,m4H,D55,C4n;e3t="Y";e3t+="-";e3t+="Axi";e3t+="s";N_V="Sh";N_V+="ow Z";N_V+="o";N_V+="nes";if(!m3C){m3C=z7E.I18N.language;}G$n=z7E.I18N.findAllTextNodes();U51={};W7_=z7E.I18N.wordLists[m3C];if(!W7_){W7_={};}Y8l=function(G$z){q9a.a9S();var a5f;a5f="u";a5f+="ndefin";a5f+="ed";if(typeof W7_[G$z] == a5f){U51[G$z]="";}};for(var s7K in G$n){Y8l(s7K);}if(!(z7E.Studies && z7E.Studies.studyLibrary)){return U51;}for(var C7e in z7E.Studies.studyLibrary){e5k=z7E.Studies.studyLibrary[C7e];Y8l(e5k.name);for(var h_k in e5k.inputs){D55="[object Ar";D55+="ray]";C4n="[";C4n+="object String]";Y8l(h_k);m4H=e5k.inputs[h_k];switch(Object.prototype.toString.call(m4H)){case C4n:Y8l(m4H);break;case D55:for(var o_A=0;o_A < m4H.length;++o_A){Y8l(m4H[o_A]);}break;}}for(var U67 in e5k.outputs){Y8l(U67);}}Y8l(N_V);Y8l("OverBought");Y8l("OverSold");Y8l("Panel");Y8l("Show as Underlay");Y8l(e3t);Y8l("Invert Y-Axis");return U51;};z7E.I18N.printableMissingWordList=function(o9l){var v7S;v7S=JSON.stringify(z7E.I18N.missingWordList(o9l));v7S=v7S.replace(/","/g,'",\n"');return v7S;};z7E.I18N.translateUI=function(Z8x,u8z){var d8P,y0v,A0x,Z7T,q2b,I0h,k8L,a8l,Q$t;if(Z8x == "pu"){Z8x="pt";}q9a.a9S();if(!z7E.I18N.wordLists){return;}if(!Z8x){Z8x=z7E.I18N.language;}d8P=z7E.I18N.findAllTextNodes(u8z);y0v=z7E.I18N.wordLists[Z8x];if(!y0v){return;}for(var h3o in d8P){A0x=z7E.I18N.translateSections(h3o,y0v);Z7T=d8P[h3o];for(var q55=0;q55 < Z7T.length;q55++){q2b="origi";q2b+="nal";I0h=Z7T[q55];k8L=I0h.parentNode;a8l=k8L.getAttribute(q2b);if(A0x === ((3950,+"1710") !== (5300,+"839.92")?(1478,526.78) > (5168,7280)?"E":+"5510" === 5139?!![]:",":!"") || !A0x){A0x=a8l;}Q$t=k8L.placeholderFor;if(Q$t){Q$t.placeholder=A0x;}else {I0h.data=A0x;}}}};z7E.I18N.translate=function(s3Y,O8O){var M9K,J2g;if(!O8O){O8O=z7E.I18N.language;}if(!z7E.I18N.wordLists){console.log("Must include translations.js in order to use CIQ.I18N.translate()");return s3Y;}M9K=z7E.I18N.wordLists[O8O];J2g=null;if(M9K){J2g=z7E.I18N.translateSections(s3Y,M9K) || s3Y;}return J2g === (4030 === 5711?("4350" - 0,+"1230") < 5220?4960 == ("1846" | 20)?("A","i"):"u":(!!"1","g"):",")?s3Y:J2g;};z7E.I18N.translateSections=function(m5l,T4C){q9a.a9S();var B_7,q5_;B_7=4600 != 794.82?"\u200c":(1560,"62" ^ 0) === (+"706",880.22)?"g":(+"400.74","29.89" * 1) == 415?+"0x1a2f":(560.73,302.60);if(typeof m5l == "string" && m5l.indexOf(B_7) != -+"1"){q9a.D0J(37);m5l=m5l.replace(/([(),])/g,q9a.q7n(B_7,B_7,"$1"));q5_=m5l.split(B_7);q5_.forEach(function(E42,T2o,f8c){var v40,g9H;q9a.a9S();v40=E42.match(/^(\s*).*\S(\s*)$/);g9H=T4C[E42.trim()];if(g9H){if(v40){q9a.D0J(52);var P$f=q9a.S40(0,1,2);g9H=v40[+"1"] + g9H + v40[P$f];}f8c[T2o]=g9H;}});return q5_.join("");}return T4C[m5l];};z7E.I18N.convertCSV=function(z6D){var s6o,K2b,K_8,i$B,P5G,X1u,i28,C5v,s0x,Y2h,o4m;s6o="[\u201C\u201D]|[";s6o+="\u2018\u2019]";K2b=new RegExp(s6o,"8290" * 1 < (327,426.58)?(56.77,!""):"8350" >> 32 <= 819.71?("r","S"):("5672" ^ 0) >= (9721,313.44)?"g":(687.19,0x18c9));K_8=new RegExp('^(")|(")$',"g");i$B=z7E.I18N.wordLists;if(!z6D){z6D=z7E.I18N.csv;}if(!z6D){return;}P5G=z6D.split("\n");X1u=P5G[+"0"];i28=X1u.split(9989 == 2290?939.16:",");for(var E87=0;E87 < i28.length;E87++){C5v=i28[E87];if(!i$B[C5v]){i$B[C5v]={};}}for(var G83=1;G83 < P5G.length;G83++){s0x=P5G[G83].match(/(".*?"|[^",]+)(?=\s*,|\s*$)|(,(?=,))/g) || [];Y2h=s0x[0];if(K_8.test(Y2h)){Y2h=Y2h.replace(K_8,"");}if(K2b.test(Y2h)){Y2h=Y2h.replace(K2b,(7.4,+"4140") <= (56.02,"1620" - 0)?("8870" >> 64,648.8) == 455.44?("E",2.00e+3):"X":'"');}for(var m4d=1;m4d < s0x.length;m4d++){o4m=s0x[m4d];if(K_8.test(o4m)){o4m=o4m.replace(K_8,"");}i$B[i28[m4d]][Y2h]=o4m;}}};z7E.I18N.setLanguage=function(k9O,j0Y,C_f,v6f,d82){var o1i;o1i="p";o1i+="t";if(!d82){d82=(k9O.uiContext || ({})).topNode || document.body;}q9a.a9S();if(j0Y == "pu"){j0Y=o1i;}z7E.I18N.convertCSV(v6f);z7E.I18N.language=j0Y;z7E.I18N.translateUI(j0Y,d82);if(!C_f){C_f=z7E.I18N.translate;}k9O.translationCallback=C_f;};z7E.I18N.setLocale=function(C_y,r2b,j7H,M7x,S9d){var Z9f,v$W,Q1K,s8a;Z9f="l";Z9f+="oca";Z9f+="le-data/jsonp";if(z7E.xor(this.reverseColorsByLocale[r2b],this.reverseColorsByLocale[C_y.locale])){this.reverseCandles(C_y);}if(typeof Intl == "undefined" || !Intl.__addLocaleData){C_y.setLocale(r2b,S9d);if(j7H){j7H(null);}return;}M7x=typeof M7x == "undefined"?Z9f:M7x;q9a.H6P(48);v$W=q9a.q7n(".js",r2b,"/",M7x);Q1K=document.createElement("SCRIPT");Q1K.async=!0;Q1K.src=v$W;s8a=document.getElementsByTagName("script")[0];s8a.parentNode.insertBefore(Q1K,s8a.nextSibling);Q1K.onload=function(){C_y.setLocale(r2b,S9d);if(j7H){j7H(null);}};Q1K.onerror=function(){q9a.D0H();if(j7H){j7H("cannot load script");}};};z7E.I18N.createMonthArrays=function(x0A,r$B,q2E){var a99,W8D,j85,U0Y,y3x,j3N;x0A.monthAbv=[];x0A.monthLetters=[];a99=new Date();W8D=!0;if(z7E.I18N.longMonths && z7E.I18N.longMonths[q2E]){W8D=!!"";}for(var k2s=0;k2s < 12;k2s++){a99.setDate(1);a99.setMonth(k2s);j85=r$B.format(a99);if(W8D){U0Y="";for(var v6E=0;v6E < j85.length;v6E++){y3x=j85.charAt(v6E);j3N=y3x.charCodeAt(0);if(j3N < +"65")continue;U0Y+=y3x;}x0A.monthAbv[k2s]=U0Y;x0A.monthLetters[k2s]=U0Y[0];}else {x0A.monthAbv[k2s]=j85;x0A.monthLetters[k2s]=j85;}}};z7E.I18N.localize=function(J7s,v_R){this.setLocale(J7s,v_R);this.setLanguage(J7s,v_R);};z7E.I18N.reverseCandles=function(d4X){var i66,m44,F0r;i66=d4X.styles;m44=d4X.cloneStyle(i66.stx_candle_down);F0r=d4X.cloneStyle(i66.stx_candle_up);q9a.D0H();i66.stx_candle_up=m44;i66.stx_candle_down=F0r;};z7E.I18N.wordLists={en:{}};z7E.I18N.languages={en:"English"};};K=C6i=>{var i5o=A2IFV;var L66,Y_x,g_K,X1X,F3o,T68,B3k;L66="
<";i5o.D0H();L66+="span>
";Y_x="
<";Y_x+="/div>";g_K="
";X1X="
";F3o="sa";F3o+="ve";T68=typeof _CIQ !== "undefined"?_CIQ:C6i.CIQ;T68.ChartEngine.prototype.pointerEvents={down:[],up:[]};T68.ChartEngine.prototype.manageTouchAndMouse=!!"1";T68.ChartEngine.prototype.registerTouchAndMouseEvents=function(){var T2A,N_D,c_5,u7c,P_H,A34,P8c,Z7q,V9G,X8I,a5J,z1P,H42,L5Q;if(this.touchAndMouseEventsRegistered){return;}this.touchAndMouseEventsRegistered=!!({});T2A=this.controls.chartControls || document;N_D=T2A.querySelector(".stx-zoom-in");c_5=T2A.querySelector(".stx-zoom-out");u7c=this.chart.container;P_H=this;A34=function(s6m,W9s,E6C){P_H.addDomEventListener(u7c,s6m,e4J,E6C);i5o.D0H();function e4J(m2c){i5o.D0H();if(P_H.mainSeriesRenderer && P_H.mainSeriesRenderer.nonInteractive){return;}W9s(m2c);}};if(!T68.touchDevice){P8c="m";P8c+="o";P8c+="u";P8c+="seup";Z7q="mouse";Z7q+="mo";Z7q+="ve";A34(Z7q,function(W3A){i5o.D0H();P_H.mousemove(W3A);});A34("mouseenter",function(u0B){P_H.mousemove(u0B);});A34("mousedown",function(P3K){P_H.mousedown(P3K);});A34(P8c,function(g8S){i5o.a9S();P_H.mouseup(g8S);});}else {if(T68.isSurface){V9G="point";V9G+="ermove";A34("mousemove",function(y0I){i5o.a9S();P_H.msMouseMoveProxy(y0I);});A34("mouseenter",function(p1L){P_H.msMouseMoveProxy(p1L);});A34("mousedown",function(h5D){i5o.a9S();P_H.msMouseDownProxy(h5D);});A34("mouseup",function(G1S){i5o.D0H();P_H.msMouseUpProxy(G1S);});A34("pointerdown",function(k8$){i5o.a9S();return P_H.startProxy(k8$);});A34(V9G,function(D9i){P_H.moveProxy(D9i);});A34("pointerenter",function(f3Q){return P_H.moveProxy(f3Q);});A34("pointerup",function(x9V){return P_H.endProxy(x9V);});}else {X8I="touchm";X8I+="o";X8I+="ve";a5J="touchsta";a5J+="rt";if(!T68.isMobile){z1P="mou";z1P+="sem";z1P+="o";z1P+="ve";A34(z1P,function(x$m){i5o.D0H();P_H.iosMouseMoveProxy(x$m);});A34("mouseenter",function(N2p){P_H.iosMouseMoveProxy(N2p);});A34("mousedown",function(D3F){i5o.a9S();P_H.iosMouseDownProxy(D3F);});A34("mouseup",function(K3x){P_H.iosMouseUpProxy(K3x);});}A34(a5J,function(z1U){i5o.a9S();P_H.touchstart(z1U);});A34(X8I,function(z0P){P_H.touchmove(z0P);});A34("touchend",function(T_Z){P_H.touchend(T_Z);});A34("pointerdown",function(v$T){P_H.touchPointerType=v$T.pointerType;});if(N_D){H42="o";H42+="nM";H42+="ouseOv";H42+="er";N_D.removeAttribute(H42);N_D.removeAttribute("onMouseOut");}if(c_5){c_5.removeAttribute("onMouseOver");c_5.removeAttribute("onMouseOut");}}}L5Q=T68.wheelEvent;if(this.captureMouseWheelEvents){A34(L5Q,function(L$I){i5o.D0H();P_H.mouseWheel(L$I);},{passive:!!0});}};T68.ChartEngine.prototype.mousedown=function(O5K){var L1g,R6i,D2f,d7G,M6M,X8A,Q2k,O6t,X$x,P0w,E06,s7R;L1g="mo";L1g+="u";L1g+="s";L1g+="edown";R6i="d";R6i+="o";R6i+="w";R6i+="n";if(this.runPrepend("mousedown",arguments)){return;}this.grabOverrideClick=![];if(!this.displayInitialized){return;}if(!this.displayCrosshairs){return;}if(this.repositioningDrawing){return;}if(this.editingAnnotation){return;}if(O5K.button && O5K.button >= 2){return;}D2f=this.container.getBoundingClientRect();this.top=D2f.top;this.left=D2f.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(O5K.clientX >= this.left && O5K.clientX <= this.right && O5K.clientY >= this.top && O5K.clientY <= this.bottom){this.insideChart=!!"1";}else {this.insideChart=!({});return;}if(!this.currentPanel){return;}if(this.manageTouchAndMouse && O5K && O5K.preventDefault && this.captureTouchEvents){O5K.preventDefault();}this.mouseTimer=Date.now();this.longHoldTookEffect=!"1";this.hasDragged=!"1";this.userPointerDown=!0;if(this.openDialog === ""){this.registerPointerEvent({x:O5K.clientX,y:O5K.clientY,time:this.mouseTimer},R6i);}d7G=this.currentPanel.chart;for(var m12=0;m12 < this.drawingObjects.length;m12++){M6M=this.drawingObjects[m12];if(M6M.highlighted && !M6M.permanent){if(this.cloneDrawing){X8A=T68.ChartEngine.drawingTools[M6M.name];Q2k=new X8A();Q2k.reconstruct(this,M6M.serialize());this.drawingObjects.push(Q2k);this.activateRepositioning(Q2k);Q2k.repositioner=M6M.repositioner;return;}O6t=this.currentVectorParameters.vectorType;if(!T68.Drawing || !O6t || !T68.Drawing[O6t] || !new T68.Drawing[O6t]().dragToDraw){this.activateRepositioning(M6M);return;}}}X$x=this.mainSeriesRenderer || ({});var {baselineHelper:A32}=this;if(A32.size){if(this.findBaselineHandle(O5K,!![])){return;}}if(this.controls.anchorHandles){var {anchorHandles:i4e}=this.controls;for(var E7H in i4e){var {handle:M39, sd:H9g, highlighted:M1M}=i4e[E7H];if(M1M){this.repositioningAnchorSelector={sd:H9g};M39.classList.add("stx-grab");return;}}}if(this.drawingClick){P0w=737249913;E06=-2097701337;s7R=2;for(var Z$R=1;i5o.U6$(Z$R.toString(),Z$R.toString().length,55758) !== P0w;Z$R++){if(this.currentPanel.subholder != O5K.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing || this.activeDrawing.dragToDraw){return;}s7R+=+"2";}if(i5o.Z2Z(s7R.toString(),s7R.toString().length,+"36731") !== E06){if(this.currentPanel.subholder === O5K.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing && this.activeDrawing.dragToDraw){return;}}}this.grabbingScreen=!![];d7G.spanLock=!({});this.yToleranceBroken=!!"";this.grabStartX=O5K.clientX;this.grabStartY=O5K.clientY;this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=d7G.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(this.currentPanel);this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPanel=this.currentPanel;setTimeout((function(K39){i5o.a9S();return function(){K39.grabbingHand();};})(this),100);if(this.swipeStart){this.swipeStart(d7G);}if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}this.runAppend(L1g,arguments);};T68.ChartEngine.prototype.mousemove=function(H5x){var q9C,a_y;q9C="en";q9C+="t";i5o.a9S();q9C+="e";q9C+="r";a_y=H5x;T68.ChartEngine.crosshairX=a_y.clientX;T68.ChartEngine.crosshairY=a_y.clientY;if(a_y.type.toLowerCase().indexOf(q9C) > -1){this.positionCrosshairsAtPointer();return;}if(this.runPrepend("mousemove",arguments)){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(this.baselineHelper.size){this.findBaselineHandle(a_y);}if(this.grabbingScreen && a_y.buttons !== 1){this.cancelLongHold=!!({});this.displayDragOK();this.grabbingScreen=!!0;this.findHighlights(![],!![]);}this.mousemoveinner(a_y.clientX,a_y.clientY);this.runAppend("mousemove",arguments);};T68.ChartEngine.prototype.mouseup=function(c9P){var R3L,S8E,U8c,l22,h73,f_r,z5y,v3H,N4C,x9G,j1H,b$z,w7i,h3R,l3V,l82,B2z;R3L="m";R3L+="ous";R3L+="eup";S8E="u";S8E+="p";if(this.runPrepend("mouseup",arguments)){return;}this.swipe.end=!!({});this.cancelLongHold=!!({});if(this.repositioningDrawing){if(!this.currentVectorParameters.vectorType || Date.now() - this.mouseTimer > 250){this.changeOccurred("vector");T68.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.adjustDrawings();this.draw();return;}this.activateRepositioning(null);}if(this.repositioningBaseline){U8c="m";U8c+="o";U8c+="unt";U8c+="ain";var {handle:f4x}=this.repositioningBaseline;l22=-1211650947;h73=-1612790862;f_r=2;for(var K4S=1;i5o.U6$(K4S.toString(),K4S.toString().length,3516) !== l22;K4S++){this.repositioningBaseline=1;f_r+=2;}if(i5o.U6$(f_r.toString(),f_r.toString().length,+"69241") !== h73){this.repositioningBaseline=6;}this.repositioningBaseline=null;f4x.classList.remove("stx-grab");z5y=this.mainSeriesRenderer || ({});if(z5y.params && z5y.params.baseline && z5y.params.type != U8c){;}this.draw();return;}if(this.repositioningAnchorSelector){T68.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:k$N})=>{var v5O;v5O="st";v5O+="x";v5O+="-grab";i5o.a9S();return k$N.classList.remove(v5O);});this.findHighlights();return;}v3H=this.userPointerDown;this.userPointerDown=!!"";if(!this.displayInitialized){return;}N4C=this.backOutY(c9P.clientY);x9G=this.backOutX(c9P.clientX);j1H=c9P.which && c9P.which >= 2 || c9P.button && c9P.button >= 2;b$z=this.openDialog !== "";if(!b$z && !j1H){this.registerPointerEvent({x:c9P.clientX,y:c9P.clientY,time:Date.now()},S8E);}w7i=this.isDoubleClick();this.grabbingScreen=!!"";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(x9G,N4C);}this.currentPanel=this.whichPanel(N4C);}h3R=this.currentPanel;this.grabStartYAxis=null;this.displayDragOK();if(this.openDialog !== ""){l3V="stx-";l3V+="drag-chart";if(this.insideChart){this.container.classList.remove(l3V);}return;}if(this.grabOverrideClick){if(!this.overXAxis && !this.overYAxis && this.swipeRelease){this.swipeRelease();}this.container.classList.remove("stx-drag-chart");this.grabOverrideClick=!!0;this.doDisplayCrosshairs();this.updateChartAccessories();return;}if(this.insideChart){this.container.classList.remove("stx-drag-chart");}if(T68.ChartEngine.resizingPanel){this.releaseHandle();return;}if(j1H || c9P.ctrlKey){l82="rig";l82+="htClic";l82+="k";if(this.anyHighlighted && this.bypassRightClick !== !""){this.rightClickHighlighted();if(c9P.preventDefault && this.captureTouchEvents){c9P.preventDefault();}c9P.stopPropagation();return !!"";}this.dispatch(l82,{stx:this,panel:h3R,x:x9G,y:N4C});return !!"1";}if(c9P.clientX < this.left || c9P.clientX > this.right){return;}i5o.a9S();if(c9P.clientY < this.top || c9P.clientY > this.bottom){return;}B2z=h3R && h3R.subholder === c9P.target;if(w7i && (B2z || this.overYAxis || this.overXAxis)){this.doubleClick({button:c9P.button,x:x9G,y:N4C});}else {if(v3H && B2z){if(!this.longHoldTookEffect || this.activeDrawing){this.drawingClick(h3R,x9G,N4C);}if(!this.longHoldTookEffect && this.activeMarker){this.activeMarker.click({cx:x9G,cy:N4C,panel:h3R});}}if(!this.longHoldTookEffect && !this.activeDrawing){this.dispatch("tap",{stx:this,panel:h3R,x:x9G,y:N4C});}}this.runAppend(R3L,arguments);};T68.ChartEngine.prototype.registerPointerEvent=function(f$e,t9m){if(this.pointerEvents[t9m].length > 1){this.pointerEvents[t9m].pop();}i5o.a9S();this.pointerEvents[t9m].unshift(f$e);};T68.ChartEngine.prototype.resetPointerEvent=function(g1I){i5o.a9S();i5o.H6P(7);this.pointerEvents[g1I].splice(i5o.q7n(0,"0"));};T68.ChartEngine.prototype.isDoubleClick=function(x78){var F2f,L64,A_G;F2f=x78?1200:400;var {up:g0S, down:H5H}=this.pointerEvents;this.cancelTouchSingleClick=![];if(g0S.length < +"2" || H5H.length < 2){return !({});}L64=H5H[0].time - g0S[1].time < this.doubleClickTime && Math.pow(g0S[1].x - g0S[0].x,2) + Math.pow(g0S[1].y - g0S[0].y,2) <= F2f && g0S[1].time - H5H[1].time < this.longHoldTime && g0S[0].time - H5H[0].time < this.longHoldTime;if(L64){A_G="d";A_G+="o";A_G+="w";A_G+="n";this.resetPointerEvent("up");this.resetPointerEvent(A_G);this.cancelTouchSingleClick=!!"1";}return L64;};T68.ChartEngine.prototype.doubleClick=function(E5r,j$z,y02){var U_i,f1i,z7a;U_i="doubl";U_i+="eC";U_i+="lick";f1i="doubl";f1i+="eClic";f1i+="k";if(this.runPrepend(f1i,arguments)){return;}if(this.editingAnnotation){return;}if(T68.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}z7a=this.activeMarker && this.activeMarker.doubleClick({cx:j$z,cy:y02,panel:this.currentPanel});if(!z7a){this.dispatch("doubleClick",{stx:this,button:E5r,x:j$z,y:y02});}this.runAppend(U_i,arguments);};T68.ChartEngine.prototype.handleMouseOut=function(K$9){var h0X,H57;K$9=K$9 || window.event;if(!T68.withinElement(this.chart.container,K$9.pageX,K$9.pageY)){if(this.runPrepend("handleMouseOut",arguments)){return;}if(!this.grabbingScreen){this.findHighlights(null,!"");}this.undisplayCrosshairs();this.touches=[];this.touching=!({});if(this.activeDrawing && this.userPointerDown){this.userPointerDown=!({});this.drawingLine=!({});h0X=this.backOutY(K$9.pageY);H57=this.backOutX(K$9.pageX);this.drawingClick(this.currentPanel,H57,h0X);}if(this.repositioningAnchorSelector){this.repositioningAnchorSelector=null;}this.insideChart=![];this.overYAxis=!!"";this.overXAxis=!({});this.displaySticky();this.runAppend("handleMouseOut",arguments);}};T68.ChartEngine.prototype.startLongHoldTimer=function(){var O2V,b9g;O2V=this;this.cancelLongHold=!!"";if(this.longHoldTimeout){clearTimeout(this.longHoldTimeout);}i5o.D0H();b9g=function(){if(O2V.cancelLongHold){return;}O2V.longHoldTookEffect=!"";O2V.dispatch("longhold",{stx:O2V,panel:O2V.currentPanel,x:O2V.cx,y:O2V.cy});i5o.a9S();O2V.displayDragOK();};if(this.longHoldTime){this.longHoldTimeout=setTimeout(b9g,this.longHoldTime);}else if(this.longHoldTime === 0){b9g();}};T68.ChartEngine.prototype.grabHandle=function(I9C){if(this.runPrepend("grabHandle",arguments)){return;}if(!I9C){return;}T68.ChartEngine.crosshairY=I9C.top + this.top;T68.ChartEngine.resizingPanel=I9C;I9C.handle.classList.add("stx-grab");i5o.D0H();this.runAppend("grabHandle",arguments);};T68.ChartEngine.prototype.grabbingHand=function(){if(!this.allowScroll){return;}if(!this.grabbingScreen){return;}if(T68.touchDevice){return;}this.container.classList.add("stx-drag-chart");};T68.ChartEngine.prototype.releaseHandle=function(){var X0X;X0X="relea";X0X+="seHa";X0X+="n";X0X+="dle";if(this.runPrepend("releaseHandle",arguments)){return !![];}T68.clearCanvas(this.chart.tempCanvas,this);this.resizePanels();if(T68.ChartEngine.resizingPanel){T68.ChartEngine.resizingPanel.handle.classList.remove("stx-grab");}T68.ChartEngine.resizingPanel=null;this.runAppend(X0X,arguments);};T68.ChartEngine.prototype.findHighlights=function(g8q,X9t){var M4T,t_5,W3j,X4F,S85,Y3x,f4N,p7k,B2R,j6A,D5f,b$l,U3X,T1y,G6o,Y46,D$e,b03,I_U,m6b,r5B,R5B,q6Y,f$d,H7B,E5o,x6W,v_r,K$l,G00,C$P,Y1R,W_2,n4t,a_W,m_q,n5a,g_C,Y5w,Z_6,S4D,O1u,C2C,T$5,i$R,N5I,t09,Y5b,a1e,o4M,i5A,w40;M4T="d";M4T+="ra";M4T+="win";M4T+="g";t_5="highlig";t_5+="htsTapRadius";W3j=this.preferences[g8q?t_5:"highlightsRadius"];this.highlightViaTap=g8q;var {cx:j14, cy:t8h}=this;this.anyHighlighted=!({});if(!this.currentPanel){return;}var {chart:O0P}=this.currentPanel;if(this.activeDrawing){X9t=!!"1";}X4F=!1;S85=null;Y3x=X9t?{}:{forceShow:!!1,type:M4T};f4N={x0:this.tickFromPixel(j14 - W3j,O0P),x1:this.tickFromPixel(j14 + W3j,O0P),y0:this.valueFromPixel(t8h - W3j,this.currentPanel),y1:this.valueFromPixel(t8h + W3j,this.currentPanel),cx0:j14 - W3j,cx1:j14 + W3j,cy0:t8h - W3j,cy1:t8h + W3j,r:W3j};if(this.repositioningDrawing && f4N.x1 - f4N.x0 < ("2" | 2)){f4N.x1++;f4N.x0--;}else if(f4N.x1 == f4N.x0){f4N.x0-=0.5;p7k=-682632090;B2R=-+"1653184673";j6A=2;for(var y3g=1;i5o.U6$(y3g.toString(),y3g.toString().length,38333) !== p7k;y3g++){f4N.x1/=201;j6A+=2;}if(i5o.Z2Z(j6A.toString(),j6A.toString().length,56734) !== B2R){f4N.x1%=663;}f4N.x1+=0.5;}D5f=this.markerHelper && this.markerHelper.chartMap[O0P.name] && this.markerHelper.chartMap[O0P.name].markers;if(!O0P.hideDrawings){for(var h9x=this.drawingObjects.length - 1;h9x >= 0;h9x--){b$l=this.drawingObjects[h9x];if(!this.panels[b$l.panelName])continue;if(this.repositioningDrawing && this.repositioningDrawing != b$l)continue;U3X=b$l.highlighted;T1y=b$l.panelName == this.currentPanel.name;b$l.repositioner=b$l.intersected(this.crosshairTick,this.crosshairValue,f4N);T1y=T1y && b$l.repositioner;if(!X9t && T1y){if(U3X){S85=b$l;if(this.anyHighlighted && this.singleDrawingHighlight){b$l.highlighted=!({});}if(b$l.highlighted && b$l.highlighted != U3X){X4F=!![];};}else if(U3X != b$l.highlight(!"")){if(!S85){S85=b$l;}if(this.anyHighlighted && this.singleDrawingHighlight){b$l.highlighted=!!"";}X4F=!0;}this.anyHighlighted=!"";}else {if(U3X != b$l.highlight(!({}))){X4F=!![];}}if(b$l.highlighted){Y3x.noDelete=b$l.permanent;Y3x.noEdit=!this.callbackListeners.drawingEdit.length;}}}for(G6o in this.layout.studies){Y46=this.layout.studies[G6o];Y46.prev=Y46.highlight;Y46.highlight=this.yaxisMatches(Y46,this.grabStartYAxis);}for(G6o in O0P.seriesRenderers){m6b=O0P.seriesRenderers[G6o];m6b.params.highlight=this.yaxisMatches(m6b,this.grabStartYAxis);for(var C62=0;C62 < m6b.seriesParams.length;C62++){I_U=m6b.seriesParams[C62];I_U.prev=I_U.highlight;I_U.highlight=m6b.params.highlight;}}for(D$e=0;D5f && D$e < D5f.length;D$e++){b03=D5f[D$e];if(!b03.params.box)continue;this.activeMarker=null;b03.prev=D5f[D$e].highlight;b03.highlight=!!0;}if(this.markerHelper){this.markerHelper.highlighted=[];}this.highlightedDataSetField=null;this.highlightedDraggable=null;if(!X9t && !this.anyHighlighted && this.controls.anchorHandles){for(var h6Y in this.controls.anchorHandles){r5B=this.controls.anchorHandles[h6Y];var {handle:o4o, sd:K_H}=r5B;R5B=this.resolveX(j14);q6Y=this.resolveY(t8h);if(o4o){var {left:J3_, top:k3M, right:s$v, bottom:m7H}=o4o.getBoundingClientRect();if(T68.boxIntersects(J3_,k3M,s$v,m7H,R5B,q6Y,R5B,q6Y)){f$d="a";f$d+="nch";f$d+="orHandle";r5B.highlighted=!![];this.anyHighlighted=!!({});X4F=!![];Y3x={message:K_H.name,type:f$d};continue;}if(r5B.highlighted === !!"1"){r5B.highlighted=![];X4F=!![];}}}}if(!X9t && !this.anyHighlighted && O0P.dataSegment){H7B=this.barFromPixel(j14);if(H7B >= 0 && H7B < O0P.dataSegment.length){for(G6o in this.overlays){x6W="fun";x6W+="ction";Y46=this.overlays[G6o];if(Y46.panel != this.currentPanel.name)continue;if(Y46.study.isHighlighted === ![])continue;else if(typeof Y46.study.isHighlighted == x6W){if(Y46.study.isHighlighted(this,j14,t8h)){Y46.highlight=!!"1";this.anyHighlighted=!![];}continue;}v_r=O0P.dataSegment[H7B];if(!v_r)continue;for(var z9U in Y46.outputMap){if(l9l.call(this,H7B,f4N,z9U,Y46.getYAxis(this))){if(Y46.name != Y46.panel){this.anyHighlighted=!!({});}Y46.highlight=z9U;break;}}if(Y46.highlight){this.highlightedDataSetField=z9U;break;;}}for(G6o in O0P.seriesRenderers){if(this.highlightedDataSetField)break;K$l=O0P.seriesRenderers[G6o];G00=K$l.params.panel;if(K$l == this.mainSeriesRenderer)continue;if(!K$l.params.highlightable && !this.currentVectorParameters.vectorType)continue;if(G00 != this.currentPanel.name)continue;for(D$e="0" << 0;D$e < K$l.seriesParams.length;D$e++){C$P="-";C$P+="-";C$P+=">";Y1R="C";Y1R+="l";Y1R+="os";Y1R+="e";I_U=K$l.seriesParams[D$e];W_2=I_U.field;if(!W_2 && !K$l.highLowBars){W_2=this.defaultPlotField || Y1R;}if(I_U.symbol && I_U.subField){W_2+=C$P + I_U.subField;}n4t=K$l.params.yAxis;if(!n4t && G00){n4t=this.panels[G00].yAxis;}if(K$l.params.step && H7B > 0){if(!K$l.caches[I_U.id])continue;E5o=K$l.caches[I_U.id][H7B];if(!E5o && E5o !== +"0")continue;i5o.D0J(38);a_W=K$l.caches[I_U.id][i5o.q7n("1",64,H7B)];if((a_W || a_W === "0" - 0) && t8h + W3j >= E5o && t8h - W3j <= a_W || t8h - W3j <= E5o && t8h + W3j >= a_W){I_U.highlight=!![];this.anyHighlighted=!![];}}else if(l9l.call(this,H7B,f4N,W_2,n4t,K$l,I_U.id)){I_U.highlight=!"";this.anyHighlighted=!![];}if(I_U.highlight){this.highlightedDataSetField=W_2;break;}}}}}n5a=this.preferences.dragging;for(G6o in this.overlays){Y46=this.overlays[G6o];if(Y46.highlight){this.anyHighlighted=!!"1";Y5w=Y46.inputs.display || Y46.name;Y5w=this.translateIf(Y5w);Y3x={message:Y5w,noDelete:Y46.permanent,noEdit:!Y46.editFunction,type:"study"};S85=null;if(n5a === !"" || n5a && n5a.study){m_q=Y46;}g_C=Y46.getYAxis(this);}if(Y46.prev != Y46.highlight){X4F=!!({});}}for(G6o in O0P.seriesRenderers){Z_6=O0P.seriesRenderers[G6o];S4D=Z_6.params.yAxis?Z_6.params.yAxis.textStyle:null;for(var e1s=0;e1s < Z_6.seriesParams.length;e1s++){I_U=Z_6.seriesParams[e1s];if(Z_6.params.highlightable && I_U.highlight){this.anyHighlighted=!![];O1u=I_U.color || S4D;if(O1u == "auto"){O1u=this.defaultColor;}if(I_U.opacity && I_U.opacity !== 1){O1u=T68.hexToRgba(T68.colorToHex(O1u),parseFloat(I_U.opacity));}Y3x={message:I_U.display || I_U.symbol,backgroundColor:O1u,noDelete:I_U.permanent,type:"series"};S85=null;if(n5a === !!({}) || n5a && n5a.series){m_q=Z_6;Z_6.params.highlight=!![];}g_C=Z_6.getYAxis(this);}if(I_U.prev != I_U.highlight){X4F=!0;}}}for(G6o in this.plugins){C2C=this.plugins[G6o];T$5={};if(C2C.findHighlights){T$5=C2C.findHighlights(this,g8q,X9t);if(T$5.somethingChanged){X4F=!!({});}if(T$5.anyHighlighted){this.anyHighlighted=!!1;Y3x=T$5.stickyArgs || ({});}}}i$R=this.whichPanel(t8h);N5I=this.whichYAxis(i$R,j14);if(!g_C){g_C=N5I;}if(this.currentBaseline){g_C=this.currentBaseline.getYAxis(this);}function l9l(c3e,K96,W1Z,k27,z24,r5p){var U3J,j_t,j88,w$W,P3S,s7z,O$o,M7c,A30,F_l,U3t,n0$,t_J,M0M,a1B,Q7I,M_Y,E2L,z3r,p97,n1r,B6J;U3J=this.chart;j_t=this.currentPanel;if(!k27){k27=j_t.yAxis;}j88=W1Z.split("-->");w$W=j88[0];P3S=j88[1];if(!P3S){P3S="Close";}s7z=U3J.dataSegment[H7B];n0$=null;t_J=null;M0M=null;i5o.D0J(1);a1B=new Array(i5o.q7n(1,"3"));Q7I=z24 && z24.caches[r5p];if(s7z && Q7I){A30=Q7I[H7B];n0$=s7z.tick;if(A30 || A30 === 0){a1B[0]=1;}for(M_Y=H7B - +"1";M_Y >= 0;M_Y--){if(Q7I[M_Y] || Q7I[M_Y] === 0){F_l=Q7I[M_Y];i5o.D0J(85);t_J=i5o.q7n(n0$,M_Y,H7B);i5o.D0J(7);a1B[i5o.q7n(0,"1")]=+"1";break;}}for(M_Y=H7B + 1;M_Y < U3J.dataSegment.length;M_Y++){if(Q7I[M_Y] || Q7I[M_Y] === "0" * 1){U3t=Q7I[M_Y];i5o.D0J(85);M0M=i5o.S40(n0$,M_Y,H7B);a1B[2]=1;break;}}}if(t_J === null){O$o=this.getPreviousBar.call(this,U3J,W1Z,H7B);if(O$o){t_J=O$o.tick;F_l=g48(O$o);}}if(M0M === null){M7c=this.getNextBar.call(this,U3J,W1Z,H7B);if(M7c){M0M=M7c.tick;U3t=g48(M7c);}}if(t_J === null && M0M === null){return ![];}if(!Q7I){A30=g48(s7z);F_l=g48(O$o);U3t=g48(M7c);n0$=s7z.tick;if(O$o){t_J=O$o.tick;}if(M7c){M0M=M7c.tick;}}if(!F_l && F_l !== 0){F_l=0;t_J=0;}if(!U3t && U3t !== 0){if(A30 || A30 === +"0"){U3t=A30;i5o.H6P(10);a1B[2]=a1B[i5o.q7n("0",0)];}else {U3t=F_l;a1B[2]=a1B[1];}if(r5p && U3J.series[r5p].parameters.extendToEndOfDataSet){M0M=U3J.dataSet.length - +"1";}else {M0M=t_J;}}if(!A30 && A30 !== 0){A30=U3t;n0$=M0M;a1B[0]=a1B[2];if(F_l === 0 && t_J === 0){F_l=A30;t_J=n0$;a1B[1]=a1B[0];}}E2L=this.pixelFromTransformedValue.bind(this);z3r=this.valueFromPixel.bind(this);A30=z3r(a1B[0]?A30:E2L(A30,j_t,k27),j_t);function g48(m4s){var P8B,G4F,G5X,m7l;if(!m4s){return null;}P8B=m4s[w$W];if(P8B && (P8B[P3S] || P8B[P3S] === +"0")){P8B=P8B[P3S];}if(z24 && z24.getBasis){P8B+=z24.getBasis(m4s,w$W,P3S);}if(!U3J.transformFunc || k27 != U3J.yAxis){return P8B;}else if(m4s.transform && (w$W in m4s.transform)){P8B=m4s.transform[w$W];if(P8B && (P8B[P3S] || P8B[P3S] === 0)){P8B=P8B[P3S];}return P8B;}G4F=-823366544;G5X=1778015045;m7l=2;for(var T7z="1" << 64;i5o.Z2Z(T7z.toString(),T7z.toString().length,+"19843") !== G4F;T7z++){return U3J.transformFunc(this,U3J,P8B);}if(i5o.U6$(m7l.toString(),m7l.toString().length,16541) !== G5X){return U3J.transformFunc(this,U3J,P8B);}return U3J.transformFunc(this,U3J,P8B);}F_l=z3r(a1B[1]?F_l:E2L(F_l,j_t,k27),j_t);U3t=z3r(a1B[2]?U3t:E2L(U3t,j_t,k27),j_t);p97=T68.convertBoxToPixels(this,j_t.name,K96);n1r=T68.convertBoxToPixels(this,j_t.name,{x0:t_J,y0:F_l,x1:n0$,y1:A30});B6J=T68.convertBoxToPixels(this,j_t.name,{x0:n0$,y0:A30,x1:M0M,y1:U3t});if(T68.boxIntersects(p97.x0,p97.y0,p97.x1,p97.y1,n1r.x0,n1r.y0,n1r.x1,n1r.y1,"segment") || T68.boxIntersects(p97.x0,p97.y0,p97.x1,p97.y1,B6J.x0,B6J.y0,B6J.x1,B6J.y1,"segment")){return !![];}return !"1";}if(g_C){if(!g_C.highlight){X4F=!!({});}g_C.highlight=!"";}t09=[];for(var I8e in this.panels){t09=t09.concat(this.panels[I8e].yaxisLHS).concat(this.panels[I8e].yaxisRHS);}for(G6o=0;G6o < t09.length;G6o++){if(g_C == t09[G6o] && !X9t)continue;if(t09[G6o].highlight){X4F=!!({});}t09[G6o].highlight=!1;}for(D$e=0;D5f && D$e < D5f.length;D$e++){b03=D5f[D$e];Y5b=b03.params.box;if(!Y5b)continue;if(b03.params.panelName !== this.currentPanel.name)continue;a1e=T68.convertBoxToPixels(this,this.currentPanel.name,f4N);if(T68.boxIntersects(a1e.x0,a1e.y0,a1e.x1,a1e.y1,Y5b.x0,Y5b.y0,Y5b.x1,Y5b.y1)){this.activeMarker=b03;b03.highlight=!!1;this.markerHelper.highlighted.push(b03);}if(b03.prev != b03.highlight){X4F=!"";}}if(X4F){this.draw();Y3x.panel=i$R;if(this.anyHighlighted && !this.grabStartYAxis){Y3x.panel=i$R;}else {Y3x={};}this.displaySticky(Y3x);this.clearMeasure();if(S85){S85.measure();}}if((n5a === !"" || n5a && n5a.yaxis) && N5I && !N5I.noDraw){this.anyHighlight=!![];m_q=N5I;}if(!this.anyHighlighted){this.setMeasure();}if(m_q && !i$R.noDrag){o4M="stx";o4M+="-";o4M+="draggable";if(this.longHoldTookEffect && !this.cancelLongHold){if(m_q.params){if(m_q.params.dependentOf){m_q=O0P.seriesRenderers[m_q.params.dependentOf];m_q.params.highlight=!!({});}for(G6o in O0P.seriesRenderers){if(O0P.seriesRenderers[G6o].params.dependentOf == m_q.params.name){O0P.seriesRenderers[G6o].params.highlight=!"";}}}this.highlightedDraggable=m_q;if(m_q.getDependents){i5A=m_q.getDependents(this,!!({}));for(G6o in this.overlays){Y46=this.overlays[G6o];if(i5A.indexOf(Y46) > -1){Y46.highlight=!"";}}}}this.container.classList.add(o4M);}else {w40="stx-draggabl";w40+="e";this.container.classList.remove(w40);}this.highlightedDataSetField=this.adjustHighlightedDataSetField(this.highlightedDataSetField);this.displayDrawOK();};T68.ChartEngine.prototype.rightClickHighlighted=function(){if(this.runPrepend("rightClickHighlighted",arguments)){return;}this.deleteHighlighted(!"");this.runAppend("rightClickHighlighted",arguments);};T68.ChartEngine.prototype.deleteHighlighted=function(U2b,x8O){var g10,D$O,f72,H$a,t_R,q_8,P8y,G9Q,a_Y,L0B,q6a,q8b,g_S,r2E,a8x,k_y;g10="deleteH";g10+="ighlight";g10+="ed";if(this.runPrepend("deleteHighlighted",arguments)){return;}this.cancelTouchSingleClick=!!({});T68.clearCanvas(this.chart.tempCanvas,this);D$O=this.bypassRightClick === !!0;if(D$O || !this.bypassRightClick.drawing){for(var o_X=this.drawingObjects.length - 1;o_X >= 0;o_X--){f72=this.drawingObjects[o_X];if(!f72.highlighted)continue;if(U2b){this.rightClickDrawing(f72,x8O);}else if(!f72.permanent){H$a=f72.abort();if(!H$a){t_R=this.exportDrawings();this.drawingObjects.splice(o_X,1);this.undoStamp(t_R,this.exportDrawings());}this.changeOccurred("vector");}}}if(D$O || !this.bypassRightClick.study){for(var u8M in this.overlays){q_8=this.overlays[u8M];if((q_8.overlay || q_8.underlay) && q_8.highlight && !q_8.permanent){if(U2b || x8O){this.rightClickOverlay(u8M,x8O);}else {this.removeOverlay(u8M);}}}}P8y=this.currentPanel.chart;if(D$O || !this.bypassRightClick.series){for(var a00 in P8y.seriesRenderers){G9Q=P8y.seriesRenderers[a00];if(G9Q.params.highlightable){a_Y=this.panels[G9Q.params.panel];L0B=a_Y && a_Y.yAxis.name;for(var K$i=G9Q.seriesParams.length - 1;K$i >= 0;K$i--){q6a=G9Q.seriesParams[K$i];if((G9Q.params.highlight || q6a.highlight) && !q6a.permanent){G9Q.removeSeries(q6a.id);if(G9Q.seriesParams.length < 1){this.removeSeriesRenderer(G9Q);if(G9Q.params.name == L0B){this.electNewPanelOwner(G9Q.params.panel);}else {this.checkForEmptyPanel(G9Q.params.panel);q8b=this.getYAxisByName(a_Y,G9Q.params.name);if(q8b){q8b.name=q8b.studies[0] || q8b.renderers["1" | 1];}}}}}}}}this.draw();this.resizeChart();this.clearMeasure();g_S=this.controls.mSticky;if(g_S){g_S.style.display="none";r2E=-1776811706;a8x=-1920009664;k_y=2;for(var f7t=1;i5o.U6$(f7t.toString(),f7t.toString().length,74662) !== r2E;f7t++){g_S.children[2].innerHTML="";i5o.H6P(28);k_y+=i5o.S40("2",32);}if(i5o.U6$(k_y.toString(),k_y.toString().length,46823) !== a8x){g_S.children["0" >> 64].innerHTML="";}}this.runAppend(g10,arguments);};T68.ChartEngine.prototype.displayDragOK=function(s7d){i5o.a9S();var D7G,u3u,x6n,k35,D4F,s9o,u_I,E4S,F1X,B3O,L94,d7z,v2K,X5w,s45;D7G=this.controls.dragOk;if(D7G){if(!s7d){if(!this.tapForHighlighting || !this.touchingEvent || this.anyHighlighted){this.findHighlights(this.highlightViaTap);};}u3u=this.highlightedDraggable;x6n=u3u && u3u.undraggable && u3u.undraggable(this);k35=this.cx;D4F=this.cy;if(!s7d){if(u3u && !x6n && this.longHoldTookEffect && !this.cancelLongHold){s9o="stx-dra";s9o+="g-chart";u_I=".fie";u_I+="ld";E4S=u3u.inputs && u3u.inputs.display || u3u.params && (u3u.params.display || u3u.params.name) || u3u.name;D7G.querySelector(u_I).setAttribute("text",E4S);p$z.call(this,D7G);D7G.style.display="inline-block";this.draw();this.displaySticky();if(this.grabStartYAxis){this.container.classList.replace("stx-drag-chart","stx-drag-axis");}else {this.container.classList.replace(s9o,"stx-drag-series");}}else {D7G.style.display="none";this.draw();this.container.classList.remove("stx-drag-series");this.container.classList.remove("stx-drag-axis");for(var h8m in this.panels){F1X="r";F1X+="ig";F1X+="ht";B3O="l";B3O+="e";B3O+="f";B3O+="t";L94=this.panels[h8m].subholder.classList;L94.remove("dropzone");L94.remove("all");L94.remove(B3O);L94.remove(F1X);L94.remove("top");L94.remove("bottom");for(d7z=0;d7z < this.panels[h8m].yaxisLHS.length;d7z++){this.panels[h8m].yaxisLHS[d7z].dropzone=null;}for(d7z=0;d7z < this.panels[h8m].yaxisRHS.length;d7z++){this.panels[h8m].yaxisRHS[d7z].dropzone=null;}}}this.draw();}if(u3u){v2K="p";v2K+="x";X5w=D4F + D7G.offsetHeight;s45=Math.max(0,k35 - D7G.offsetWidth);i5o.D0J(0);D7G.style.top=i5o.q7n(X5w,"px");i5o.D0J(0);D7G.style.left=i5o.S40(s45,v2K);p$z.call(this,D7G);}}function p$z(w47){var t3t,l0o;t3t=this.translateIf(w47.querySelector(".field").getAttribute("text"));i5o.D0H();l0o=this.whichYAxis(this.whichPanel(this.cy),this.cx,this.cy);if(l0o && l0o.dropzone == "all"){t3t+="-->" + this.translateIf(l0o.name);}w47.querySelector(".field").innerHTML=t3t;}};T68.ChartEngine.prototype.displayDrawOK=function(){var I5p,K_W,s7Y,n0J,s3L,z03,C2e,Q$F;i5o.D0H();I5p=this.controls.drawOk;if(I5p && T68.Drawing){K_W=T68.Drawing[this.currentVectorParameters.vectorType];if(K_W){K_W=new K_W();}if(this.highlightedDataSetField && K_W && K_W.getYValue){i5o.D0J(21);s7Y=-i5o.S40("255978135",0);i5o.H6P(21);n0J=-i5o.q7n("987213232",0);s3L=2;for(var R3C=+"1";i5o.U6$(R3C.toString(),R3C.toString().length,3564) !== s7Y;R3C++){I5p.style.display="inline-block";z03=this.cy + I5p.offsetHeight;C2e=this.cx - I5p.offsetWidth;i5o.H6P(0);I5p.style.top=i5o.q7n(z03,"px");i5o.H6P(0);I5p.style.left=i5o.q7n(C2e,"px");I5p.querySelector(".field").innerHTML=this.translateIf(this.highlightedDataSetField);s3L+=2;}if(i5o.U6$(s3L.toString(),s3L.toString().length,45301) !== n0J){Q$F="p";Q$F+="x";I5p.style.display=".field";z03=this.cy - I5p.offsetHeight;C2e=this.cx / I5p.offsetWidth;i5o.D0J(14);I5p.style.top=i5o.S40(Q$F,z03);i5o.H6P(14);I5p.style.left=i5o.S40(".field",C2e);I5p.querySelector(".field").innerHTML=this.translateIf(this.highlightedDataSetField);}}else {I5p.style.display="none";}}};T68.ChartEngine.prototype.mouseWheel=function(L7V){var u_Z,r6X,o53,K0D,f8$,A11,L0F,X_m,k5T,l28;u_Z="mou";u_Z+="seWh";u_Z+="e";u_Z+="el";r6X="vertica";r6X+="l";o53="mo";o53+="us";o53+="eWhee";o53+="l";if(this.runPrepend(o53,arguments)){return;}if(L7V.preventDefault){L7V.preventDefault();}if(this.openDialog !== ""){return;}K0D=L7V.deltaX;f8$=L7V.deltaY;if(Math.abs(f8$) > Math.abs(K0D)){K0D=0;}else {f8$=0;}i5o.D0H();this.lastMouseWheelEvent=Date.now();if(Math.abs(K0D) === 0 && Math.abs(f8$) === 0){return;}if(this.allowSideswipe && K0D !== 0){this.lastMove="horizontal";A11=K0D;if(A11 > 50){A11=+"50";}if(A11 < -50){A11=-50;}this.grabbingScreen=!!"1";if(!this.currentPanel){this.currentPanel=this.chart.panel;}this.grabStartX=T68.ChartEngine.crosshairX;this.grabStartY=T68.ChartEngine.crosshairY;this.grabStartScrollX=this.chart.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartMicropixels=this.micropixels;this.grabStartPanel=this.currentPanel;this.mousemoveinner(T68.ChartEngine.crosshairX - A11,T68.ChartEngine.crosshairY);this.updateChartAccessories();this.grabbingScreen=![];return;}this.lastMove=r6X;if(!this.allowZoom){return;}if(!this.displayInitialized){return;}if(!f8$){if(T68.wheelEvent == "mousewheel"){i5o.H6P(86);var b1n=i5o.S40(5,8,14);i5o.D0J(0);var u48=i5o.S40(33,7);f8$=b1n / u48 * L7V.wheelDelta;if(L7V.wheelDeltaX){i5o.D0J(87);var A4b=i5o.q7n(17,20,7,154,2);i5o.H6P(7);var F$c=i5o.q7n(400,440);K0D=A4b / F$c * L7V.wheelDeltaX;}}else {f8$=L7V.detail;}}if(typeof L7V.deltaMode == "undefined"){L7V.deltaMode=L7V.type == "MozMousePixelScroll"?+"0":1;}L0F=-f8$;if(L7V.deltaMode == 1){i5o.H6P(7);L0F*=i5o.q7n(0,"33");}X_m=null;k5T=null;if(this.mouseWheelAcceleration){l28=Math.max(Math.pow(Math.abs(L0F),0.3),1);i5o.H6P(88);X_m=i5o.S40(1,l28,"0.1");i5o.H6P(89);k5T=i5o.q7n(l28,0,1,"0.2");}this.zoomInitiatedByMouseWheel=!"";if(L0F > 0){if(this.reverseMouseWheel){this.zoomOut(null,k5T);}else {this.zoomIn(null,X_m);}}else if(L0F < 0){if(this.reverseMouseWheel){this.zoomIn(null,X_m);}else {this.zoomOut(null,k5T);}}if(this.runAppend(u_Z,arguments)){return;}return !({});};T68.ChartEngine.handleContextMenu=function(O2M){i5o.D0H();var z9Y;for(var f7Y=0;f7Y < T68.ChartEngine.registeredContainers.length;f7Y++){z9Y=T68.ChartEngine.registeredContainers[f7Y].stx;if(z9Y){if(z9Y.anyHighlighted){if(O2M.preventDefault){O2M.preventDefault();}return ![];}}}};if(typeof document != "undefined"){document.addEventListener("contextmenu",T68.ChartEngine.handleContextMenu);}T68.ChartEngine.htmlControls={annotationSave:F3o,annotationCancel:'',mSticky:'
(right-click to deleteright-click to managedrag to change anchor time)(long-press to drag)
',drawOk:'
',dragOk:'
',crossX:X1X,crossY:g_K,chartControls:'',home:Y_x,floatDate:'',handleTemplate:L66,iconsTemplate:'
',baselineHandle:'',notificationTray:'
'};T68.ChartEngine.prototype.registerChartControl=function(W9p,a75,L$Y){var g2j,g8b,l_A,c1P;g2j=".stx";g2j+="-zoom-in";g8b=this.controls;i5o.a9S();if(!g8b || !g8b.chartControls){return;}if(g8b.chartControls.querySelector((8170 != 732?(+"98.93",1520) <= 5231?".":"0x195b" | 88:(+"1.38e+3",0x17d9)) + W9p)){return;}l_A=null;c1P=g8b.chartControls.querySelector(g2j);if(c1P){l_A=document.createElement("span");i5o.D0J(37);l_A.innerHTML=i5o.q7n("",'',a75);i5o.D0J(0);l_A.className=i5o.q7n("stx-chart-control-button ",W9p);c1P.parentNode.appendChild(l_A);if(L$Y){T68.safeClickTouch(l_A,L$Y);}if(!T68.touchDevice){this.makeModal(l_A);}return l_A;}};T68.ChartEngine.prototype.zoomOut=function(Q_0,A$r){var S9W,s$L,H_7,g$W;if(this.runPrepend("zoomOut",arguments)){return;}if(this.preferences.zoomOutSpeed){A$r=this.preferences.zoomOutSpeed;}else if(!A$r){i5o.D0J(8);A$r=i5o.q7n(1,"0.7");}i5o.D0H();if(Q_0 && Q_0.preventDefault){Q_0.preventDefault();}this.cancelTouchSingleClick=!0;function P8I(W9u){i5o.D0H();return function(p0N){var L7T;S9W.zoomSet(p0N,W9u);if(S9W.animations.zoom.hasCompleted){L7T="zoo";L7T+="mOut";if(S9W.runAppend(L7T,arguments)){return;}S9W.changeOccurred("layout");if(S9W.continuousZoom){S9W.continuousZoom.execute(!![]);}}};}S9W=this;for(var X2z in this.charts){s$L=this.charts[X2z];H_7=s$L.width * A$r / this.layout.candleWidth;if(s$L.allowScrollFuture === !({}) && s$L.allowScrollPast === !({}) && H_7 > s$L.dataSet.length){H_7=s$L.dataSet.length;}g$W=this.chart.width / H_7;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(P8I(s$L),this.layout.candleWidth,g$W);}};T68.ChartEngine.prototype.zoomIn=function(k82,V91){var t7i,g$b,H9v,W44;if(this.runPrepend("zoomIn",arguments)){return;}i5o.a9S();if(this.preferences.zoomInSpeed){V91=this.preferences.zoomInSpeed;}else if(!V91){V91=0.7;}if(k82 && k82.preventDefault){k82.preventDefault();}function D9R(f3i){i5o.D0H();return function(h4n){var y4B;t7i.zoomSet(h4n,f3i);if(t7i.animations.zoom.hasCompleted){y4B="la";y4B+="y";y4B+="ou";y4B+="t";if(t7i.runAppend("zoomIn",arguments)){return;}t7i.changeOccurred(y4B);if(t7i.continuousZoom){t7i.continuousZoom.execute();}}};}this.cancelTouchSingleClick=!![];t7i=this;for(var D6q in this.charts){g$b=this.charts[D6q];H9v=g$b.width * V91 / this.layout.candleWidth;if(g$b.maxTicks - H9v < "1" << 0){i5o.D0J(7);var Q6_=i5o.q7n(9,10);H9v=g$b.maxTicks - Q6_;}if(H9v < this.minimumZoomTicks){H9v=this.minimumZoomTicks;}W44=this.chart.width / H9v;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(D9R(g$b),this.layout.candleWidth,W44);}};T68.ChartEngine.prototype.createCrosshairs=function(){var t3X,h_X,q$o,J5n;t3X="createCrossh";t3X+="airs";h_X="cre";h_X+="a";h_X+="teCrosshairs";if(this.runPrepend(h_X,arguments)){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}q$o=this.controls.crossX;J5n=this.controls.crossY;if(q$o){if(!q$o.onmousedown){q$o.onmousedown=function(o09){if(o09.preventDefault){o09.preventDefault();}return ![];};}}if(J5n){if(!J5n.onmousedown){J5n.onmousedown=function(x1_){if(x1_.preventDefault){x1_.preventDefault();}return ![];};}}this.runAppend(t3X,arguments);};B3k=!1;T68.ChartEngine.prototype.mousemoveinner=T68.ChartEngine.prototype.mousemoveinner || (function(H6J,K8D){i5o.D0H();if(!B3k){console.error("interaction feature requires activating movement feature.");}B3k=!!({});});};M=r1$=>{var g9l=A2IFV;var V7k;g9l.D0H();V7k=typeof _CIQ !== "undefined"?_CIQ:r1$.CIQ;if(!V7k.Marker){V7k.ChartEngine.helpersToRegister.push(function(k9D){k9D.markerHelper={chartMap:{},classMap:{},domMarkers:[],highlighted:[]};});V7k.ChartEngine.prototype.addToHolder=function(Z_A){var D88,r6p,e0W,W_v;D88=this.panels[Z_A.params.panelName];if(!D88){return;}r6p=Z_A.params;e0W=Z_A.node;W_v=Z_A.stxNodeCreator;if(W_v && W_v.prepareForHolder){e0W=W_v.prepareForHolder(Z_A);}if(r6p.chartContainer){this.container.appendChild(Z_A.node);}else if(r6p.includeAxis){D88.holder.appendChild(Z_A.node);}else {D88.subholder.appendChild(e0W);}Z_A.chart=D88.chart;if(W_v && W_v.addToHolder){W_v.addToHolder(Z_A);}g9l.D0H();if(W_v && W_v.expand){V7k.Marker.initializeScrollBehavior(W_v);}};V7k.ChartEngine.prototype.getMarkerArray=function(C3m,I6v){var X61,y4X,r4k;X61=[];g9l.D0H();for(var A1g in this.markers){for(var k0J="0" ^ 0;k0J < this.markers[A1g].length;k0J++){y4X="pa";y4X+="n";y4X+="elNam";y4X+="e";r4k=this.markers[A1g][k0J];if(C3m == y4X){if(r4k.params.panelName == I6v){X61.push(r4k);}}else if(C3m == "label"){if(A1g == I6v){X61.push(r4k);}}else if(C3m == "all"){X61.push(r4k);}}}return X61;};V7k.ChartEngine.prototype.removeFromHolder=function(L1Z){var N17,d_g,p1_,w_c,f53,k6S;N17=this.panels[L1Z.params.panelName];if(N17){if(L1Z.node.parentNode == N17.holder){N17.holder.removeChild(L1Z.node);}else if(L1Z.node.parentNode == N17.subholder){N17.subholder.removeChild(L1Z.node);}else if(L1Z.node.parentNode == this.container){this.container.removeChild(L1Z.node);}}d_g=this.markers[L1Z.params.label];if(!d_g){return;}for(p1_=0;p1_ < d_g.length;p1_++){if(d_g[p1_] === L1Z){d_g.splice(p1_,1);break;}}w_c=this.markerHelper.chartMap[L1Z.chart.name];if(w_c){for(p1_=0;p1_ < w_c.markers.length;p1_++){if(w_c.markers[p1_] === L1Z){w_c.markers.splice(p1_,1);break;}}}f53=this.markerHelper.classMap[L1Z.className];if(f53){k6S=f53[L1Z.params.panelName];if(k6S){for(p1_=0;p1_ < k6S.length;p1_++){if(k6S[p1_] === L1Z){k6S.splice(p1_,1);break;}}}}};V7k.ChartEngine.prototype.moveMarkers=function(k5J,B_S){var k8A,U3Z;k8A=this.getMarkerArray("panelName",k5J);for(var k3A=0;k3A < k8A.length;k3A++){k8A[k3A].params.panelName=B_S;}for(var q4A in this.markerHelper.classMap){U3Z=this.markerHelper.classMap[q4A][k5J];if(U3Z){this.markerHelper.classMap[q4A][B_S]=U3Z;delete this.markerHelper.classMap[q4A][k5J];}}};V7k.ChartEngine.prototype.establishMarkerTicks=function(){var I6z,q0B;I6z=this.markerHelper.chartMap;for(var L4x in I6z){q0B=I6z[L4x];if(q0B.dataSetLength == this.charts[L4x].dataSet.length)continue;for(var o$V=0;o$V < q0B.markers.length;o$V++){this.setMarkerTick(q0B.markers[o$V]);}}};V7k.ChartEngine.prototype.futureTickIfDisplayed=function(u0o){var S7K,Z$k,Y8B,S9G,w6m,m0g,F03,R3e,j7b;S7K=u0o.chart;if(S7K.dataSet.length < 1){return;}Z$k=S7K.xaxis[S7K.xaxis.length - 1].DT;g9l.H6P(90);var W$k=g9l.q7n(4740640,60008,8,10);Z$k=new Date(Z$k.getTime() - this.timeZoneOffset * W$k);if(u0o.params.x > Z$k){return;}Y8B=S7K.maxTicks - S7K.dataSegment.length;S9G=S7K.dataSet.length + Y8B;g9l.D0H();F03=new Date(+S7K.dataSet[S7K.dataSet.length - 1].DT);R3e=this.standardMarketIterator(F03,null,S7K);j7b=u0o.params.x.getTime();for(var a_$=S7K.dataSet.length;a_$ < S9G;a_$++){w6m=F03.getTime();F03=R3e.next();m0g=F03.getTime();if(m0g == j7b){u0o.tick=a_$;return;}else if(m0g > j7b && w6m < j7b){g9l.H6P(7);u0o.tick=Math.max(g9l.q7n(1,a_$),0);return;}}};V7k.ChartEngine.prototype.setMarkerTick=function(Y6Y){var w8d,K8_,U_k,w0Z,Z7h,J9a;w8d=Y6Y.chart;if(Y6Y.params.xPositioner == "master" && Y6Y.params.x){Y6Y.tick=Math.floor(Y6Y.params.x / this.layout.periodicity);return;}else if(Y6Y.params.xPositioner == "date" && Y6Y.params.x){w0Z=Y6Y.params.x.getTime();for(var J_b=0;J_b < w8d.dataSet.length;J_b++){Z7h=w8d.dataSet[J_b];U_k=Z7h.DT.getTime();K8_=U_k;if(J_b > +"0"){K8_=w8d.dataSet[J_b - 1].DT.getTime();}if(U_k == w0Z){Y6Y.tick=J_b;return;}else if(U_k > w0Z && K8_ < w0Z){g9l.H6P(7);Y6Y.tick=Math.max(g9l.S40(1,J_b),0);return;}else if(w0Z < U_k){Y6Y.tick=null;return;}}if(w8d.dataSet.length < 1){return;}J9a=new Date(+w8d.dataSet[J_b - 1].DT);if(J9a.getTime() < w0Z){Y6Y.params.future=!!({});}Y6Y.tick=null;;}};V7k.ChartEngine.prototype.positionMarkers=function(){var m1F,Z9E,Z_e,H9L,p$n,w9A,n$w;m1F=this;Z9E=this.chart;if(!m1F.markerHelper){return;}if(this.markerDelay || this.markerDelay === ("0" ^ 0)){if(!this.markerTimeout){this.markerTimeout=setTimeout(l2J,this.markerDelay);}}else {l2J();}Z_e=this.getFirstLastDataRecord(Z9E.dataSegment,"tick");g9l.a9S();H9L=this.getFirstLastDataRecord(Z9E.dataSegment,"tick",!"");if(!Z_e || !H9L){return;}p$n=this.getMarkerArray("all");for(var w1E=0;w1E < p$n.length;w1E++){w9A=p$n[w1E];n$w=w9A.stxNodeCreator;if(Z_e.tick <= w9A.tick && w9A.tick <= H9L.tick){if(n$w && n$w.drawMarker){n$w.drawMarker(w9A);}}else if(w9A.attached && n$w.expand){n$w.expand.style.visibility="hidden";}}function l2J(){var R2u,i_U,T3s,h_S;if(m1F.runPrepend("positionMarkers",arguments)){return;}m1F.markerTimeout=null;for(var L7R in m1F.markerHelper.classMap){for(var N9K in m1F.markerHelper.classMap[L7R]){R2u=m1F.markerHelper.classMap[L7R][N9K];i_U=m1F.panels[N9K];if(R2u.length){T3s={stx:m1F,arr:R2u,panel:i_U};T3s.firstTick=i_U.chart.dataSet.length - i_U.chart.scroll;T3s.lastTick=T3s.firstTick + i_U.chart.dataSegment.length;h_S=R2u[0].constructor.placementFunction;if(h_S){h_S(T3s);}else {m1F.defaultMarkerPlacement(T3s);}}}}g9l.D0H();m1F.runAppend("positionMarkers",arguments);}};V7k.Marker=V7k.Marker || (function(z36){var s2h,B2G,K8R,h2M,P2h,u8J,d$2;this.params={xPositioner:"date",yPositioner:"value",panelName:"chart",permanent:!"1",label:"generic",includeAxis:!"1"};V7k.extend(this.params,z36);if(!this.params.node){s2h="D";s2h+="I";s2h+="V";this.params.node=document.createElement(s2h);}B2G=this.params.stx;if(!B2G){K8R="Marker created";K8R+=" without specifying stx";console.log(K8R);return;}if(!this.className){this.className="CIQ.Marker";}if(V7k.derivedFrom(this.params.node,V7k.Marker.NodeCreator)){this.stxNodeCreator=this.params.node;this.node=this.stxNodeCreator.node;}else {this.node=this.params.node;}h2M=this.params.label;if(!B2G.markers[h2M]){B2G.markers[h2M]=[];}B2G.markers[h2M].push(this);P2h=B2G.panels[this.params.panelName];this.chart=P2h.chart;if(!B2G.markerHelper.chartMap[this.chart.name]){B2G.markerHelper.chartMap[this.chart.name]={dataSetLength:0,markers:[]};}B2G.markerHelper.chartMap[this.chart.name].markers.push(this);u8J=B2G.markerHelper.classMap[this.className];if(!u8J){u8J=B2G.markerHelper.classMap[this.className]={};}if(!u8J[this.params.panelName]){u8J[this.params.panelName]=[];}u8J[this.params.panelName].push(this);d$2=this.stxNodeCreator && this.stxNodeCreator.deferAttach;if(!d$2){B2G.addToHolder(this);}B2G.setMarkerTick(this);if(this.stxNodeCreator && this.stxNodeCreator.drawMarker){this.stxNodeCreator.drawMarker(this);}});V7k.Marker.prototype.remove=function(){this.params.stx.removeFromHolder(this);};V7k.Marker.prototype.click=function(W4Y){var S3q;if(typeof arguments[0] === "number"){W4Y={cx:arguments["0" - 0],cy:arguments[+"1"],panel:arguments[3]};}var {cx:i2m, cy:j$b, panel:W6e}=W4Y;g9l.a9S();if(!this.params.stx){return;}S3q=this.params.node;if(S3q.click){S3q.click(i2m,j$b,this,W6e);}};V7k.Marker.prototype.doubleClick=function({cx:h7E, cy:x84, panel:C10}){g9l.D0H();return ![];};V7k.Marker.prototype.render=function(){g9l.D0H();var X7q,P7n;X7q=[this];P7n={stx:this.params.stx,arr:X7q,panel:this.params.stx.panels[this.params.panelName],showClass:this.showClass};this.constructor.placementFunction(P7n);};V7k.Marker.removeByLabel=function(Q9H,B05){var x9I,c3$,x7L;x9I="l";x9I+="ab";x9I+="e";x9I+="l";c3$=Q9H.getMarkerArray(x9I,B05);for(var v5k="0" ^ 0;v5k < c3$.length;v5k++){x7L=c3$[v5k];Q9H.removeFromHolder(x7L);if(x7L.stxNodeCreator && x7L.stxNodeCreator.remove){x7L.stxNodeCreator.remove(x7L);}}Q9H.draw();};V7k.Marker.positionContentVerticalAndHorizontal=function(H5B){var v95,Z3y,B9R,N_q,m3V,g1m,a3X,W23,Y4p,L8u,j_T,p9e;v95=H5B.querySelectorAll(".stx-marker-expand")[0];if(!v95 || !V7k.trulyVisible(v95)){return;}g9l.a9S();Z3y=v95.offsetHeight;B9R=v95.style;B9R.left=B9R.right="";B9R.bottom=B9R.top="";N_q=getComputedStyle(v95);m3V=N_q.left;g1m=N_q.bottom;g9l.H6P(36);var m8S=g9l.q7n(19,3,12);a3X=H5B.offsetLeft + parseInt(m3V,m8S);W23=parseInt(g1m,10);Y4p=H5B.offsetTop - (W23 + Z3y - H5B.offsetHeight);L8u=H5B.parentNode.offsetWidth;j_T=H5B.parentNode.offsetHeight;if(a3X + v95.offsetWidth > L8u){B9R.right=m3V;B9R.left="auto";}if(H5B.offsetTop <= j_T){if(Y4p > j_T - Z3y){B9R.top=j_T - H5B.offsetTop - Z3y + "px";B9R.bottom="auto";}}else {g9l.H6P(0);B9R.top=g9l.q7n(j_T,"px");}if(H5B.offsetTop + H5B.offsetHeight >= 0){if(Y4p < "0" >> 32){p9e="p";p9e+="x";B9R.top=-H5B.offsetTop + p9e;B9R.bottom="auto";}}else {B9R.bottom="0px";}};V7k.Marker.initializeScrollBehavior=function(b_9){var i7h;var {expand:q7J}=b_9;if(!q7J){return;}q7J.addEventListener(V7k.wheelEvent,o8u=>{return o8u.stopPropagation();});var {scrollbarStyling:w04}=V7k.UI || ({});if(w04){w04.refresh(q7J);}else {i7h="scr";i7h+="o";i7h+="l";i7h+="l";q7J.style.overflowY=i7h;}};V7k.ChartEngine.prototype.getBarBounds=function(X7s){var D6f,i7Y,B6_,o3X,L8E,S1S,y5v;D6f="p";D6f+="an";g9l.a9S();D6f+="d";D6f+="f";i7Y=this.layout.chartType;B6_=this.layout.aggregationType;if(B6_ == D6f){o3X={high:Math.max(X7s.pfOpen,X7s.pfClose),low:Math.min(X7s.pfOpen,X7s.pfClose)};}else {o3X={high:X7s.High,low:X7s.Low};}if(X7s.markerHigh){o3X.high=X7s.markerHigh;}if(X7s.markerLow){o3X.low=X7s.markerLow;}if(X7s.Open === undefined){L8E=X7s.Close;}if(X7s.High === undefined){S1S=Math.max(X7s.Open || L8E,X7s.Close);}if(X7s.Low === undefined){y5v=Math.min(X7s.Open || L8E,X7s.Close);}if(!o3X.high && o3X.high !== 0){o3X.high=S1S;}if(!o3X.low && o3X.low !== 0){o3X.low=y5v;}return o3X;};V7k.ChartEngine.prototype.defaultMarkerPlacement=function(g15){var e5s,b$P,u6m,J_X,f1Q,R3a,H40,X3o,C2k,j2$,y6y,z_y,L4w,W7f,z$y,x7i,T_x,u7A,Y7o,i7M,K2M,C$3,X5j,b_J,v2I,A6D,t6b,U2y,X8Y,J2y,E7O,N8e,h7v,E7W;e5s="Clo";e5s+="s";e5s+="e";b$P=g15.panel;u6m=g15.yAxis?g15.yAxis:g15.panel.yAxis;J_X=b$P.chart;f1Q=g15.stx;R3a=f1Q.chart.highLowBars;H40=J_X.defaultPlotField;if(!H40 || R3a){H40=e5s;}X3o={};for(var K_N="0" - 0;K_N < g15.arr.length;K_N++){C2k="a";C2k+="u";C2k+="t";C2k+="o";j2$=g15.arr[K_N];y6y=j2$.params;if(j2$.params.box)continue;z_y=j2$.node;if(!j2$.clientWidth){j2$.clientWidth=z_y.clientWidth;}if(!j2$.clientHeight){j2$.clientHeight=z_y.clientHeight;}L4w=null;W7f=y6y.xPositioner;z$y=y6y.yPositioner;x7i=j2$.tick;T_x=J_X.dataSet;u7A=j2$.clientWidth;if(W7f != "none"){if(W7f == "bar" && y6y.x){if(y6y.x < J_X.xaxis.length){Y7o=J_X.xaxis[y6y.x];if(Y7o){L4w=Y7o.data;}}g9l.H6P(36);var g9N=g9l.q7n(11,0,10);z_y.style.left=Math.round(f1Q.pixelFromBar(y6y.x,J_X) - u7A / +"2") + g9N + "px";}else {if(!x7i && x7i !== 0){if(y6y.future && J_X.scroll < J_X.maxTicks){f1Q.futureTickIfDisplayed(j2$);x7i=j2$.tick;if(!x7i && x7i !== 0){z_y.style.left="-1000px";continue;}}else {z_y.style.left="-1000px";continue;}}if(x7i < T_x.length){L4w=T_x[x7i];}j2$.leftpx=Math.round(f1Q.pixelFromTick(x7i,J_X) - J_X.left - u7A / 2);j2$.rightEdge=j2$.leftpx + u7A;z_y.style.left=j2$.leftpx + "px";if(x7i < g15.firstTick && j2$.rightEdge < J_X.left - 50)continue;;}if(!L4w){g9l.D0J(7);var L3U=g9l.S40(20,21);L4w=T_x[T_x.length - ("1" | L3U)];};}else if(z$y.indexOf("candle") > -1){i7M=getComputedStyle(z_y).left;if(i7M){K2M=f1Q.barFromPixel(parseInt(i7M,10),J_X);if(K2M >= 0){L4w=J_X.xaxis[K2M].data;if(!L4w){g9l.D0J(35);var W9j=g9l.q7n(11,8,5,3,175);L4w=T_x[T_x.length - W9j];};}}}z_y.style.top=C2k;C$3=y6y.y;X5j=j2$.clientHeight;if(z$y != "none"){v2I="b";v2I+="o";v2I+="ttom";A6D="o";A6D+="n_";A6D+="candle";t6b="und";t6b+="er_candle";g9l.D0J(0);var p6m=g9l.q7n(859,15);g9l.D0J(52);var R$G=g9l.q7n(96978,8817,12);g9l.D0J(91);var a8O=g9l.q7n(9,1,6,5,9);g9l.H6P(15);var U59=g9l.q7n(6,135,96);g9l.D0J(11);var X2f=g9l.S40(0,4,39,10);g9l.D0J(39);var z7j=g9l.q7n(27958,3,23961);g9l.H6P(0);var h1B=g9l.S40(604,9066);U2y=z$y + ((p6m,R$G) > "238.66" * a8O?"-":(U59,"7990" * X2f) < (996.14,z7j)?+"0x18f":h1B) + z_y.style.left;X8Y=y6y.chartContainer?f1Q.height:b$P.yAxis.bottom;J2y=0;E7O=0;if(typeof X3o[U2y] == "undefined"){X3o[U2y]=0;}E7O=X3o[U2y];X3o[U2y]+=X5j;if(z$y == "value" && (C$3 || C$3 === "0" - 0)){g9l.H6P(92);var l3Z=g9l.S40(1,58,18,16,20);J2y=Math.round(X8Y - f1Q.pixelFromPrice(C$3,b$P,u6m) - X5j / l3Z) + "px";}else if((z$y == "below_candle" || z$y == t6b) && L4w){N8e="h";N8e+="i";N8e+="g";N8e+="h";b_J=L4w[H40];if(R3a){b_J=f1Q.getBarBounds(L4w)[u6m.flipped?N8e:"low"];}J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) - X5j - E7O) + "px";}else if(z$y == A6D && L4w){h7v="p";h7v+="x";b_J=L4w[H40];if(R3a){g9l.H6P(41);var a2S=g9l.S40(3,12,38);b_J=(L4w.Low + L4w.High) / a2S;}g9l.D0J(39);var i49=g9l.S40(36,19,15);J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) - X5j / i49 - E7O) + h7v;}else if(z$y == "top"){J2y=Math.round(X8Y - X5j - E7O - b$P.top) + "px";}else if(z$y == v2I){E7W="p";E7W+="x";J2y=Math.round(E7O) + E7W;}else if(L4w){b_J=L4w[H40];if(R3a){b_J=f1Q.getBarBounds(L4w)[u6m.flipped?"low":"high"];}J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) + E7O) + "px";}if(z_y.style.bottom != J2y){z_y.style.bottom=J2y;}}V7k.Marker.positionContentVerticalAndHorizontal(z_y);}};V7k.Marker.NodeCreator=function(){};V7k.Marker.NodeCreator.toNode=function(){g9l.D0H();return this.node;};V7k.Marker.Simple=function(t8v){var O6A,p$M,L0N,m2d,R3t;O6A=this.node=document.createElement("div");O6A.className="stx-marker";function z3j(){g9l.D0H();V7k.Marker.positionContentVerticalAndHorizontal(O6A);}O6A.classList.add(t8v.type);if(t8v.category){O6A.classList.add(t8v.category);}p$M=V7k.newChild(O6A,"div","stx-visual");V7k.newChild(O6A,"div","stx-stem");if(t8v.type == "callout"){m2d="di";m2d+="v";R3t=V7k.newChild(p$M,"div","stx-marker-content");V7k.newChild(R3t,"h4",null,t8v.headline);L0N=V7k.newChild(R3t,m2d,"stx-marker-expand");V7k.newChild(L0N,"p",null,t8v.story);}else {L0N=V7k.newChild(O6A,"div","stx-marker-expand");V7k.newChild(L0N,"h4",null,t8v.headline);V7k.newChild(L0N,1176 > (118.59,298.1)?"p":736.93 == (395.28,2710)?(4.21e+3,!({})):(0x256c,4.58e+3),null,t8v.story);V7k.safeClickTouch(L0N,function(k1Y){g9l.D0H();O6A.classList.toggle("highlight");});}V7k.safeClickTouch(p$M,function(w6j){O6A.classList.toggle("highlight");setTimeout(z3j,10);});this.nodeType="Simple";this.expand=L0N;};V7k.inheritsFrom(V7k.Marker.Simple,V7k.Marker.NodeCreator,!({}));}};B=e_g=>{var s4_=A2IFV;var t7c,y8h,L5_,h3x,a84,v_i,u4k,F48;t7c="undefin";t7c+="ed";y8h=typeof _CIQ !== t7c?_CIQ:e_g.CIQ;L5_=typeof _timezoneJS !== "undefined"?_timezoneJS:e_g.timezoneJS;h3x=60000 * 60;a84=h3x * 24;v_i=y8h.Market;y8h.Market=function(Z7e){var m40,o7t;m40="un";m40+="defined";this.market_def=![];this.rules=![];this.normalHours=[];this.extraHours=[];this.class_name="Market";if(!L5_.Date){this.tz_lib=Date;;}else {this.tz_lib=L5_.Date;}this.market_tz="";this.hour_aligned=!"1";this.convertOnDaily=!!"";this.enabled_by_default=![];if(typeof Z7e != m40 && Z7e && !y8h.isEmpty(Z7e)){o7t="und";o7t+="ef";o7t+="ined";if(Z7e.market_definition){Z7e=Z7e.market_definition;}if(Z7e.rules){this.rules=Z7e.rules;}if(Z7e.market_tz){this.market_tz=Z7e.market_tz;}if(Z7e.convertOnDaily){this.convertOnDaily=Z7e.convertOnDaily;}if(typeof Z7e.hour_aligned){this.hour_aligned=Z7e.hour_aligned;}if(typeof Z7e.beginningDayOfWeek !== "undefined"){this.beginningDayOfWeek=Z7e.beginningDayOfWeek;}if(typeof Z7e.enabled_by_default !== o7t){if(Z7e.enabled_by_default instanceof Array){this.enabled_by_default=Z7e.enabled_by_default;}}this.market_def=Z7e;if(this.market_def.name === undefined){this.market_def.name="no market name specified";}}else {return;}y8h.Market._createTimeSegments(this);this.getSessionNames();};y8h.Market.Symbology=function(){};y8h.Market.Symbology.isForeignSymbol=function(l7E){return !1;};s4_.D0H();y8h.Market.Symbology.isFuturesSymbol=function(t_D){return !"1";};y8h.Market.Symbology.isRateSymbol=function(M8r){return !({});};y8h.Market.Symbology.isForexSymbol=function(T7a){s4_.D0H();return !({});};y8h.Market.Symbology.isForexMetal=function(v9V,r0t){s4_.a9S();return !({});};y8h.Market.Symbology.isForexFuturesSymbol=function(U$u){if(y8h.Market.Symbology.isForexSymbol(U$u))return !!({});if(y8h.Market.Symbology.isFuturesSymbol(U$u))return !!"1";s4_.D0H();return ![];};y8h.Market.Symbology.factory=function(J6z){return null;;};y8h.Market.Symbology.encodeTermStructureInstrumentSymbol=function(o1j,B_U){var L37;L37="You are trying to call `CIQ.Mar";L37+="ket.Symbology.encodeTe";L37+="rmStructureInstrumentSymbol` but have not imple";L37+="mented it.";s4_.D0H();console.warn(L37);};if(v_i)y8h.extend(y8h.Market,v_i);y8h.Market.prototype.sessions=null;y8h.Market.prototype.beginningDayOfWeek="0" ^ 0;y8h.Market.prototype.getSessionNames=function(){var P1K,e6$;if(!this.rules){this.sessions=[];}else if(!this.sessions){P1K=[];e6$=[];this.rules.map(function(G1C){if(G1C.name && P1K.indexOf(G1C.name) === -("1" | 0)){P1K.push(G1C.name);e6$.push({name:G1C.name,enabled:G1C.enabled?G1C.enabled:!!0});}});this.sessions=e6$;}s4_.D0H();return this.sessions.slice();};y8h.Market.prototype._find_next_segment=function(a3F,v$U){var v5d,c2H,E9O,S_s;if(!this.market_def)return null;if(!this.rules)return null;v5d=new Date(+a3F);c2H=this.newIterator({begin:v5d,interval:1,inZone:this.market_tz,outZone:this.market_tz});if(this._wasOpenIntraDay(v5d)){E9O=this.zseg_match.close_parts.hours;S_s=this.zseg_match.close_parts.minutes;v5d.setHours(E9O);v5d.setMinutes(S_s);c2H=this.newIterator({begin:v5d,interval:1,inZone:this.market_tz,outZone:this.market_tz});}return c2H.next();};y8h.Market.prototype._find_prev_segment=function(l6S,z6M){var B8d,t2X,z4C,D4l,u9Z;if(!this.market_def)return null;if(!this.rules)return null;B8d=new Date(+l6S);s4_.D0H();t2X=this.newIterator({begin:B8d,interval:"1" | 0,inZone:this.market_tz,outZone:this.market_tz});z4C=this._wasOpenIntraDay(B8d);if(z4C === null){B8d=new Date(B8d - 60000);z4C=this._wasOpenIntraDay(B8d);}else {if(z6M && B8d.getHours() === this.zseg_match.open_parts.hours && B8d.getMinutes() === this.zseg_match.open_parts.minutes || !z6M && B8d.getHours() === this.zseg_match.close_parts.hours && B8d.getMinutes() === this.zseg_match.close_parts.minutes){B8d=t2X.previous();}}if(z4C){D4l=this.zseg_match.open_parts.hours;u9Z=this.zseg_match.open_parts.minutes;B8d.setHours(D4l);B8d.setMinutes(u9Z);t2X=this.newIterator({begin:B8d,interval:1,inZone:this.market_tz,outZone:this.market_tz});B8d=t2X.previous();if(this.zseg_match.close_parts.hours === D4l){if(this.zseg_match.close_parts.minutes === u9Z){if(z6M){return t2X.next();}return B8d;}}if(this.zseg_match.adjacent_child){return B8d;}if(z6M){return t2X.next();}return B8d;}return t2X.previous();};y8h.Market.prototype.disableSession=function(i$k,y7W){var v_k;v_k=!({});if(typeof y7W !== "undefined" && y7W){v_k=!!({});}if(i$k){for(var j7C=0;j7C < this.normalHours.length;j7C++){if(this.normalHours[j7C].name === i$k){this.normalHours[j7C].enabled=v_k;}}for(j7C=0;j7C < this.extraHours.length;j7C++){if(this.extraHours[j7C].name === i$k){this.extraHours[j7C].enabled=v_k;}}}};y8h.Market.prototype.enableSession=function(L$k){var D$J;D$J="enable_in";D$J+="stead";this.disableSession(L$k,D$J);};y8h.Market.prototype.enableAllAvailableSessions=function(){var y7N;s4_.a9S();y7N=this.getSessionNames();for(var J3v=0;J3v < y7N.length;J3v++){this.enableSession(y7N[J3v].name);}};y8h.Market.prototype.getClose=function(H3d,V9x,A1C,z2Y){var p4f,R72;if(!this.market_def)return null;if(!this.rules)return null;p4f=H3d;if(!H3d){p4f=new Date();A1C=null;;}p4f=this._convertToMarketTZ(p4f,A1C);if(typeof V9x !== "undefined"){if(this._wasOpenIntraDay(p4f)){if(this.zseg_match.name === V9x){p4f.setHours(this.zseg_match.close_parts.hours,this.zseg_match.close_parts.minutes,+"0",0);p4f=this._convertFromMarketTZ(p4f,z2Y);return p4f;}}}else {if(this._wasOpenDaily(p4f)){R72=this.zseg_match;while(R72.child_){R72=R72.child_;}while(!R72.enabled){R72=R72.parent_;}p4f.setHours(R72.close_parts.hours,R72.close_parts.minutes,0,0);p4f=this._convertFromMarketTZ(p4f,z2Y);return p4f;}}return null;};y8h.Market.prototype.getNextClose=function(v0K,s0Y,V$3){var p$O,d6K,y6G,Q4f;if(!this.market_def)return null;if(!this.rules)return null;p$O=v0K;if(!v0K){p$O=new Date();s0Y=null;;}p$O=this._convertToMarketTZ(p$O,s0Y);if(!this._wasOpenIntraDay(p$O)){d6K=this.newIterator({begin:p$O,interval:1,inZone:this.market_tz,outZone:this.market_tz});p$O=d6K.next();}y6G=p$O.getDate();Q4f=this.zseg_match;while(Q4f.adjacent_child){Q4f=Q4f.adjacent_child;y6G+=1;}p$O.setDate(y6G);p$O.setHours(Q4f.close_parts.hours,Q4f.close_parts.minutes,0,0);p$O=this._convertFromMarketTZ(p$O,V$3);return p$O;};y8h.Market.prototype.getNextOpen=function(z_a,S_7,Z2r){var y72;if(!this.market_def)return null;if(!this.rules)return null;y72=z_a;if(!z_a){y72=new Date();S_7=null;;}y72=this._convertToMarketTZ(y72,S_7);y72=this._find_next_segment(y72);if(this.zseg_match.adjacent_parent){y72=this.getNextOpen(y72,this.market_tz,this.market_tz);y72=this._convertFromMarketTZ(y72,Z2r);return y72;}y72.setHours(this.zseg_match.open_parts.hours);y72.setMinutes(this.zseg_match.open_parts.minutes);y72=this._convertFromMarketTZ(y72,Z2r);return y72;};y8h.Market.prototype.getOpen=function(d$d,g0l,J6e,M0P){var t6t,T1$;if(!this.market_def)return null;if(!this.rules)return null;t6t=d$d;if(!d$d){t6t=new Date();J6e=null;;}t6t=this._convertToMarketTZ(t6t,J6e);if(typeof g0l !== "undefined"){if(this._wasOpenIntraDay(t6t)){if(this.zseg_match.name == g0l){t6t.setHours(this.zseg_match.open_parts.hours,this.zseg_match.open_parts.minutes,0,"0" >> 32);t6t=this._convertFromMarketTZ(t6t,M0P);return t6t;}}}else {if(this._wasOpenDaily(t6t)){T1$=this.zseg_match;while(T1$.parent_){T1$=T1$.parent_;}while(!T1$.enabled){T1$=T1$.child_;}t6t.setHours(T1$.open_parts.hours,T1$.open_parts.minutes,0,0);t6t=this._convertFromMarketTZ(t6t,M0P);return t6t;}}return null;};y8h.Market.prototype.getNormalOpen=function(){var y3t;y3t="F";y3t+="O";y3t+="RE";y3t+="X";var {market_def:L_K, rules:k$b}=this;if(!(L_K && k$b))return "00:00";if(L_K.normal_daily_open)return L_K.normal_daily_open;if(L_K.name === y3t)return "17:00";return k$b.find(({name:h8c})=>!h8c || h8c === "").open;};y8h.Market.prototype.getNormalClose=function(){var Q8M;Q8M="FO";Q8M+="R";Q8M+="E";Q8M+="X";var {market_def:M5n, rules:a8e}=this;if(!(M5n && a8e))return "24:00";if(M5n.normal_daily_close)return M5n.normal_daily_close;if(M5n.name === Q8M)return "17:00";return a8e.filter(({dayofweek:e4R, name:g6H})=>e4R && (!g6H || g6H === "")).pop().close;};y8h.Market.prototype.getPreviousClose=function(m63,q9S,A9W){var G$Z;if(!this.market_def)return null;if(!this.rules)return null;G$Z=m63;if(!m63){G$Z=new Date();q9S=null;;}G$Z=this._convertToMarketTZ(G$Z,q9S);G$Z=this._find_prev_segment(G$Z,!!0);if(this.zseg_match.adjacent_child){return this.getPreviousClose(G$Z,this.market_tz,this.market_tz);}G$Z.setHours(this.zseg_match.close_parts.hours);G$Z.setMinutes(this.zseg_match.close_parts.minutes);G$Z=this._convertFromMarketTZ(G$Z,A9W);s4_.D0H();return G$Z;};y8h.Market.prototype.getPreviousOpen=function(t28,S4s,Z1r){s4_.D0H();var A4F;if(!this.market_def)return null;if(!this.rules)return null;A4F=t28;if(!t28){A4F=new Date();S4s=null;;}A4F=this._convertToMarketTZ(A4F,S4s);A4F=this._find_prev_segment(A4F,!!"1");if(this.zseg_match.adjacent_parent){return this.getPreviousOpen(A4F,this.market_tz,this.market_tz);}A4F.setHours(this.zseg_match.open_parts.hours);A4F.setMinutes(this.zseg_match.open_parts.minutes);A4F=this._convertFromMarketTZ(A4F,Z1r);return A4F;};y8h.Market.prototype.getSession=function(A8U,d4S){s4_.D0H();A8U=this._convertToMarketTZ(A8U,d4S);if(this._wasOpenIntraDay(A8U) && this.zseg_match){return this.zseg_match.name;}return null;};y8h.Market.prototype.marketZoneNow=function(){s4_.D0H();return this._convertToMarketTZ(new Date());};y8h.Market.prototype.isHourAligned=function(){return this.hour_aligned;};y8h.Market.prototype.isOpen=function(){var I65;I65=new Date();if(this.market_tz){I65=new this.tz_lib(I65.getTime(),this.market_tz);}return this._wasOpenIntraDay(I65);};y8h.Market.prototype.isMarketDay=function(){var u2V;u2V=new Date();if(this.market_tz){u2V=new this.tz_lib(u2V.getTime(),this.market_tz);}return this._wasOpenDaily(u2V);};y8h.Market.prototype.isMarketDate=function(h$M){s4_.D0H();return this._wasOpenDaily(h$M);};y8h.Market.prototype.newIterator=function(p1v){var B81,P6X,w1w,y10,Z4S,U7i,M7n;B81=!({});if(p1v.periodicity){B81=p1v.periodicity;}else if(p1v.multiple){B81=p1v.multiple;}P6X=p1v.interval;if(!P6X){w1w="m";w1w+="in";w1w+="u";w1w+="te";P6X=w1w;}if(P6X == "hour")P6X=60;if(!B81){B81=1;}if(!p1v.begin){p1v.begin=new Date();p1v.inZone=null;}if(P6X == parseInt(P6X,10)){P6X=parseInt(P6X,10);if(p1v.periodicity < 1 / 60){y10="mil";y10+="l";y10+="isecon";y10+="d";B81=B81 * P6X * 60000;P6X=y10;}else if(p1v.periodicity < 1){Z4S="s";Z4S+="econd";B81=B81 * P6X * 60;P6X=Z4S;}else {B81=B81 * P6X;P6X="minute";}}if(p1v.timeUnit){U7i="secon";U7i+="d";M7n="mill";M7n+="isecond";if(p1v.timeUnit === M7n){P6X=p1v.timeUnit;}else if(p1v.timeUnit === U7i){P6X=p1v.timeUnit;}else if(p1v.timeUnit === "tick"){P6X="second";}}if(P6X == "tick")P6X="second";p1v.interval=P6X;p1v.multiple=B81;p1v.market=this;return new y8h.Market.Iterator(p1v);};y8h.Market.prototype._wasOpenDaily=function(N6c){return this._was_open(N6c,![]);};y8h.Market.prototype._wasOpenIntraDay=function(K1a){return this._was_open(K1a,!!({}));};y8h.Market.prototype._was_open=function(X_4,O15){var L$6,S_d,U9s,S7C,g5K,Q5Q,f_8,C1w,L6p,b6d,M0b,Y7_,I96;L$6=this.zseg_match;this.zopen_hour=0;this.zopen_minute="0" ^ 0;this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;if(!this.market_def || !this.rules){this.zclose_hour=24;return !!"1";}S_d=!!"";U9s=!!0;S7C=X_4.getFullYear();g5K=X_4.getMonth() + 1;Q5Q=X_4.getDay();s4_.a9S();f_8=X_4.getDate();C1w=X_4.getHours();L6p=X_4.getMinutes();b6d=X_4.getSeconds();Y7_=C1w * 60 * +"60" + L6p * 60 + b6d;if(typeof O15 === "undefined"){O15=!![];}for(I96=0;I96 < this.normalHours.length;I96++){M0b=this.normalHours[I96];if(!M0b.enabled){continue;}S_d=M0b.dayofweek === Q5Q;if(S_d && O15){S_d=Y7_ >= M0b.open && Y7_ < M0b.close;}if(S_d){if(!O15 && this.zseg_match){if(M0b.open_parts.hours > this.zopen_hour || M0b.open_parts.hours == this.zopen_hour && M0b.open_parts.minutes > this.zopen_minute){continue;}}if(M0b !== L$6 && !M0b.adjacent_parent && !M0b.adjacent_child){this.shouldResetToBeginningOfSegment=!!({});}this.zopen_hour=M0b.open_parts.hours;this.zopen_minute=M0b.open_parts.minutes;this.zclose_hour=M0b.close_parts.hours;this.zclose_minute=M0b.close_parts.minutes;this.zmatch_open=Y7_ === M0b.open;this.zseg_match=M0b;if(O15)break;}}for(I96=+"0";I96 < this.extraHours.length;I96++){M0b=this.extraHours[I96];if(!M0b.enabled){continue;}if((1455 < (+"1540",9585)?"2638" >> 0 < (327.75,6113)?(6009,988.33) > +"839.81"?"*":"X":!!"":![]) === M0b.year || S7C === M0b.year){if(g5K === M0b.month && f_8 === M0b.day){U9s=!O15 && M0b.open || Y7_ >= M0b.open && Y7_ < M0b.close;if(!U9s && this.zseg_match){S_d=![];this.zopen_hour=0;this.zopen_minute=0;this.zclose_hour=0;this.zclose_minute="0" * 1;this.zmatch_open=!!"";this.zseg_match=null;}if(U9s){if(!O15 && this.zseg_match){if(M0b.open_parts.hours > this.zopen_hour || M0b.open_parts.hours == this.zopen_hour && M0b.open_parts.minutes > this.zopen_minute){continue;}}this.zopen_hour=M0b.open_parts.hours;this.zopen_minute=M0b.open_parts.minutes;this.zclose_hour=M0b.close_parts.hours;this.zclose_minute=M0b.close_parts.minutes;this.zmatch_open=Y7_ === M0b.open;this.zseg_match=M0b;if(O15)break;}}}}return this.zseg_match;};y8h.Market.prototype._wasClosed=function(A6m){return !this._was_open(A6m,!!"1");};y8h.Market.prototype._wasOpen=function(C_A){return this._was_open(C_A,!!({}));};y8h.Market.prototype._tzDifferenceMillis=function(G0M,I0_,U1y){var f_E,f_a,t8u,t0c;f_E=0;f_a=G0M;t8u=G0M;t0c=f_a.getTimezoneOffset() - t8u.getTimezoneOffset();f_E=t0c * 60 * 1000;return f_E;};y8h.Market._createTimeSegments=function(f3z){var a_f,t1e,V_B,L0y,c0b,o5b,Z5u,z9T,w8j;a_f=function(e3l,U$N){s4_.D0H();if(e3l.close_parts.hours === 24 && U$N.open_parts.hours === 0){if(U$N.open_parts.minutes === ("0" ^ 0)){if(t1e.dayofweek === z9T.dayofweek - 1){return !!1;}if(t1e.dayofweek === 6 && z9T.dayofweek === "0" >> 0){return !!({});}}}return !!0;};for(var O4o=0;O4o < f3z.rules.length;O4o++){V_B="n";V_B+="a";V_B+="m";V_B+="e";L0y="und";L0y+="efine";L0y+="d";c0b=JSON.parse(JSON.stringify(f3z.rules[O4o]));if(typeof c0b.open === L0y && typeof c0b.close === "undefined"){o5b="0";o5b+="0:";o5b+="00";c0b.open="00:00";c0b.close=o5b;}if(!c0b.hasOwnProperty(V_B)){c0b.name="";}try{Z5u="und";Z5u+="ef";Z5u+="i";Z5u+="ned";if(typeof c0b.dayofweek !== Z5u){c0b.year="*";z9T=u4k._createDayOfWeekSegment(f3z,c0b);if(t1e){if(t1e.dayofweek === z9T.dayofweek){t1e.child_=z9T;z9T.parent_=t1e;}else {if(a_f(t1e,z9T)){t1e.adjacent_child=z9T;z9T.adjacent_parent=t1e;}}}t1e=z9T;}else if(typeof c0b.date !== "undefined"){c0b.isDayOfWeek=!"1";c0b.dayofweek=-("1" ^ 0);z9T=u4k._createDateTimeSegment(f3z,c0b);}else {console.log("Error, unknown rule type " + c0b);}if(f3z.enabled_by_default){for(var C3X=0;C3X < f3z.enabled_by_default.length;C3X++){w8j=f3z.enabled_by_default[C3X];if(z9T.name === w8j){z9T.enabled=!![];break;}}}else {;}}catch(z5W){var Q_4;Q_4="Error, creating market ru";Q_4+="les ";console.log(Q_4 + z5W);}}};y8h.Market._timeSegment={};u4k=y8h.Market._timeSegment;u4k.re_wild_card_iso=/^(\*)-(\d\d)-(\d\d)$/;u4k.re_regular_iso=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;u4k.re_split_hours_minutes=/^(\d\d):(\d\d)$/;u4k.re_split_hour_minutes=/^(\d):(\d\d)$/;u4k._hashCode=function(S9M){var X3$,r33,u_U,Y$4;X3$=+"0";if(S9M.length === +"0")return X3$;for((r33=0,Y$4=S9M.length);r33 < Y$4;r33++){u_U=S9M.charCodeAt(r33);X3$=(X3$ << 5) - X3$ + u_U;X3$|=0;;}return X3$;};u4k._splitHoursMinutes=function(a4y){var s9m,c4Q;s9m=u4k.re_split_hour_minutes.exec(a4y);c4Q={hours:NaN,minutes:NaN};if(s9m === null){s9m=u4k.re_split_hours_minutes.exec(a4y);if(s9m === null){return c4Q;}}c4Q.hours=parseInt(s9m[1],10);c4Q.minutes=parseInt(s9m[2],10);return c4Q;};u4k._createDayOfWeekSegment=function(T76,d21){var J7L;J7L={name:d21.name,isDayOfWeek:!!({}),dayofweek:d21.dayofweek,date_str:(602.3,378) > 6960?0xc30:"*",open_parts:u4k._splitHoursMinutes(d21.open),close_parts:u4k._splitHoursMinutes(d21.close),open:u4k._secSinceMidnight(T76,d21.open,!![]),close:u4k._secSinceMidnight(T76,d21.close,!!0),child_:!({}),parent_:!1,adjacent_child:!({}),adjacent_parent:!!"",enabled:![]};if(J7L.name === ""){J7L.enabled=!!1;}J7L.hash_code=this._hashCode((J7L.open + J7L.close).toString());T76.normalHours.push(J7L);return J7L;};u4k._createDateTimeSegment=function(g1a,k0H){var H0i,v50,W6I;H0i=this.re_regular_iso.exec(k0H.date);if(H0i === null){H0i=this.re_wild_card_iso.exec(k0H.date);if(H0i === null){console.log("Warning: invalid date format on rule -> " + k0H.date);return;}v50=(8679,"987" >> 0) != ("7470" ^ 0,494)?+"4230" < (54,"3260" * 1)?"S":(774.92,4830) <= (5640,1340)?611.10:"*":5.17e+2;;}else {v50=parseInt(H0i[1],10);}W6I={name:k0H.name,isDayOfWeek:!({}),dayofweek:-1,year:v50,month:parseInt(H0i[2],10),day:parseInt(H0i["3" << 64],10),date_str:k0H.date,open_parts:u4k._splitHoursMinutes(k0H.open),close_parts:u4k._splitHoursMinutes(k0H.close),open:u4k._secSinceMidnight(g1a,k0H.open,!!"1"),close:u4k._secSinceMidnight(g1a,k0H.close,![]),enabled:![]};if(W6I.name === ""){W6I.enabled=!!1;}W6I.hash_key=this._hashCode(W6I.date_str + W6I.open + W6I.close);g1a.extraHours.push(W6I);return W6I;};u4k._secSinceMidnight=function(e_s,h$a,x4h){var F3u,b4p,a77,h$5;F3u=h$a.split(":");b4p=parseInt(F3u[0],10);a77=parseInt(F3u[1],"10" >> 64);h$5=b4p * 60 * 60 + a77 * 60;if(!x4h){if(b4p === 24){h$5=b4p * 60 * 60 + 1;}}return h$5;};y8h.Market.prototype._convertToMarketTZ=function(Z2J,A4E){var P7H,d98,p_h,r6f;if(A4E){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds(),A4E);}else {d98=-1229625172;p_h=807487669;r6f=2;for(var S6I=+"1";s4_.Z2Z(S6I.toString(),S6I.toString().length,50758) !== d98;S6I++){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds());r6f+=+"2";}if(s4_.U6$(r6f.toString(),r6f.toString().length,52538) !== p_h){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds());}}if(P7H.setTimezone)P7H.setTimezone(this.market_tz);return new Date(P7H.getFullYear(),P7H.getMonth(),P7H.getDate(),P7H.getHours(),P7H.getMinutes(),P7H.getSeconds(),P7H.getMilliseconds());};y8h.Market.prototype._convertFromMarketTZ=function(j2R,Q27){s4_.D0H();var n3U;n3U=new this.tz_lib(j2R.getFullYear(),j2R.getMonth(),j2R.getDate(),j2R.getHours(),j2R.getMinutes(),j2R.getSeconds(),j2R.getMilliseconds(),this.market_tz);if(Q27){if(n3U.setTimezone)n3U.setTimezone(Q27);}else {return new Date(n3U.getTime());}return new Date(n3U.getFullYear(),n3U.getMonth(),n3U.getDate(),n3U.getHours(),n3U.getMinutes(),n3U.getSeconds(),n3U.getMilliseconds());};y8h.Market.Iterator=function(G5H){this.market=G5H.market;this.begin=G5H.begin;this.interval=G5H.interval;this.multiple=G5H.multiple;this.inZone=G5H.inZone;this.outZone=G5H.outZone;this.clock=new y8h.Market.Iterator._Clock(G5H.market,G5H.interval,G5H.multiple);this.intraDay=this.clock.intra_day;if(this.intraDay)this.begin=this.market._convertToMarketTZ(this.begin,G5H.inZone);this.clock._setStart(this.begin);this.clock.minutes_aligned=![];};y8h.Market.Iterator.prototype.date=function(){return this.clock._date();};y8h.Market.Iterator.prototype.futureTick=function(y7F){var x56,o5e,n3Z,Y4u,G_e,A_4,t1X,l62,z7A;this.clock.skip=1;x56=0;if(this.intraDay)o5e=this.market._convertToMarketTZ(y7F.end,this.inZone).getTime();else o5e=y7F.end.getTime();n3Z=this.clock.ctime;if(o5e === n3Z){return x56;}Y4u=2;G_e=+"1000";A_4=0;if(y7F.sample_size){Y4u=y7F.sample_size;}t1X=new Date().getTime();if(o5e > n3Z){this.clock.forward=!0;while(this.clock.ctime < o5e){x56+="1" ^ 0;A_4+=1;this.clock._findNext();if(A_4 === G_e){A_4=0;l62=new Date().getTime();if(l62 - t1X >= Y4u){z7A=(this.clock.ctime - n3Z) / x56;x56=Math.floor((o5e - n3Z) / z7A);break;}}}if(this.clock.ctime > o5e){x56--;}}else {this.clock.forward=![];while(this.clock.ctime > o5e){x56+=1;A_4+=1;this.clock._findPrevious();if(A_4 === G_e){A_4=0;l62=new Date().getTime();if(l62 - t1X >= Y4u){z7A=(n3Z - this.clock.ctime) / x56;x56=Math.floor((n3Z - o5e) / z7A);break;}}}}return x56;};y8h.Market.Iterator.prototype.isHourAligned=function(){s4_.a9S();return !this.intraDay || this.market.isHourAligned();};y8h.Market.Iterator.prototype.isOpen=function(){return this.market.isOpen();};y8h.Market.Iterator.prototype.next=function(e$F){this.clock.skip=1;if(e$F){this.clock.skip=e$F;}s4_.a9S();this.clock.forward=!0;for(var T_y=+"0";T_y < this.clock.skip;T_y++){this.begin=this.clock._findNext();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};y8h.Market.Iterator.prototype.peek=function(){s4_.a9S();return this.clock._peek();};y8h.Market.Iterator.prototype.previous=function(h2p){this.clock.skip=1;s4_.D0H();if(h2p){this.clock.skip=h2p;}this.clock.forward=![];for(var D5v=0;D5v < this.clock.skip;D5v++){this.begin=this.clock._findPrevious();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};y8h.Market.Iterator._Clock=function(u47,s8f,Z4q){var S1N,A$k,G0Q,r9s,Y$E;S1N="millise";S1N+="cond";A$k="s";A$k+="e";A$k+="con";A$k+="d";if(Z4q % +"60" === 0 && s8f === A$k){G0Q="m";G0Q+="inute";s8f=G0Q;Z4q=Z4q / 60;}this.market=u47;this.interval=s8f;this.multiple=Z4q;this.intra_day=![];this.intervals=[];this.max_iters=+"10080";r9s=a84;Y$E=this._dayImpl;if(s8f === S1N){Y$E=this._millisImpl;r9s=1;}else if(s8f === "second"){Y$E=this._secondImpl;r9s=1000;}else if(s8f === "minute"){Y$E=this._minuteImpl;r9s=60000;}else if(s8f === "hour"){Y$E=this._hourImpl;r9s=h3x;}else if(s8f === "day"){Y$E=this._dayImpl;r9s=a84;}else if(s8f === "week"){Y$E=this._weekImpl;r9s=a84 * 7;}else if(s8f === "month"){Y$E=this._monthImpl;r9s=a84 * 30;}else {console.log('Periodicity ERROR: "' + s8f + '" is not a valid interval. Please see setPeriodicity() for details.');}this.tick_time=r9s * Z4q;this.intra_day=this.tick_time < a84;this._findPrevious=this._findNext=Y$E;};F48=y8h.Market.Iterator._Clock.prototype;F48._total_minutes=function(X4_,d2U,f3a,a3d){return (f3a - X4_) * ("60" - 0) - d2U + a3d;};F48._alignMinutes=function(){var J1_,S9O,B4l,e6z,B24;if(!this.market.market_def || this.market.zopen_minute === undefined){return [];}J1_=this.market.zopen_minute;S9O=this.market.zseg_match;if(S9O && S9O.adjacent_parent){J1_=S9O.adjacent_parent.open / 60 - +"1440";}else {if(this.market.isHourAligned() && this.multiple % 60 === 0)J1_=0;}s4_.a9S();B4l=this._total_minutes(this.market.zopen_hour,J1_,this.market.zclose_hour,this.market.zclose_minute);e6z=[];B24=0;while(B24 < B4l){e6z.push(J1_ + B24);B24+=this.multiple;}return e6z;};F48._alignBaseZero=function(K7l){var D2Z,l9v;D2Z=0;l9v=[D2Z];while(!![]){D2Z+=this.multiple;if(D2Z >= K7l){break;}l9v.push(D2Z);}return l9v;};F48._date=function(){var n0h,i3N;n0h=Math.round(this.ctime);i3N=new Date(n0h);s4_.D0H();if(this.intra_day){this.display_date=new Date(n0h + this.shift_millis);}else {this.display_date=i3N;}return i3N;};F48._alignToBoundary=function(O7J,n2Q){var j6X,d87,H7u;j6X=0;d87=+"0";H7u=n2Q;for(var B9Q=0;B9Q < O7J.length - 1;B9Q++){j6X=O7J[B9Q];d87=O7J[B9Q + 1];if(n2Q === j6X || n2Q === d87){break;;}if(n2Q > j6X && n2Q < d87){H7u=j6X;break;}else if(B9Q + 1 === O7J.length - 1){H7u=d87;}}s4_.a9S();return H7u;};F48._peek=function(){return this._date().toString();};F48._seekHr=function(){if(this.forward){this.ctime-=h3x;}else {this.ctime+=h3x;}};F48._setStart=function(P1N){var r0g,P1C;r0g=this.market._tzDifferenceMillis(P1N);P1C=new Date(P1N.getTime() + r0g);this.shift_millis=r0g;this.ctime=P1C.getTime();this.shift_millis=0;this.ctime=P1N.getTime();};F48._tickTock=function(){s4_.a9S();if(this.forward){this.ctime+=this.tick_time;}else {this.ctime-=this.tick_time;}};F48._tockTick=function(){s4_.D0H();if(this.forward){this.ctime-=this.tick_time;}else {this.ctime+=this.tick_time;}};F48._tickTock24=function(){s4_.a9S();this.ctime+=a84;};F48._tockTick24=function(){this.ctime-=a84;};F48._windMaybe=function(Y8_,t26){var S96,p7A,Y3c,D0$;S96=0;p7A=new Date(this.ctime);s4_.a9S();Y3c=![];while(!Y8_.call(this.market,p7A)){t26.call(this);Y3c=!![];p7A=new Date(this.ctime);S96+=1;if(S96 > this.max_iters){D0$="Warning! max iterations (" + this.max_iters;D0$+=") reached with no rule match.";console.log(D0$);break;}}return Y3c;};F48._millisImpl=function(){var X1v,K93,w98,s_5,a03,i5m,F9e,e91,S0z,Z8B;X1v=!"1";if(!this.mperiods_aligned){K93=this._alignBaseZero(1000);w98=new Date(this.ctime);s_5=w98.getMilliseconds();s_5=this._alignToBoundary(K93,s_5);w98.setMilliseconds(0);this.ctime=w98.getTime() + s_5;this.mperiods_aligned=!!"1";X1v=!![];}a03=this._date().getMinutes();this._tickTock();i5m=this._date().getMinutes();if((X1v || a03 != i5m) && !this.market._wasOpenIntraDay(this._date())){F9e=this._date().getSeconds();e91=this._date().getMilliseconds();S0z=this.tick_time;this.tick_time="60000" | 0;Z8B=this.multiple;this.multiple="1" * 1;this._minuteImpl();this.tick_time=S0z;this.multiple=Z8B;this.ctime+="1000" * 1 * F9e + e91;}return this._date();};F48._secondImpl=function(){var u8a,a5Y,b6_,L7D,g63,S_q,i9b,o$f,M4t;u8a=![];if(!this.speriod_aligned){a5Y=this._alignBaseZero(60);b6_=new Date(this.ctime);L7D=b6_.getSeconds();L7D=this._alignToBoundary(a5Y,L7D);b6_.setSeconds(L7D);b6_.setMilliseconds(0);this.ctime=b6_.getTime();this.speriod_aligned=!!1;u8a=!![];}g63=this._date().getMinutes();this._tickTock();S_q=this._date().getMinutes();if((u8a || g63 != S_q) && !this.market._wasOpenIntraDay(this._date())){i9b=this._date().getSeconds();o$f=this.tick_time;this.tick_time=60000;M4t=this.multiple;this.multiple="1" * 1;this._minuteImpl();this.tick_time=o$f;this.multiple=M4t;this.ctime+=1000 * i9b;}return this._date();};F48._minuteImpl=function(){var R_H,T_1,m$s,h3d,z9c,o8h,i9X,Q1j,Q5x,t0S;R_H=this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);T_1=new Date(this.ctime);m$s=T_1.getTimezoneOffset();h3d=T_1.getMinutes();z9c=T_1.getHours();o8h=this._alignMinutes();i9X=this._total_minutes(this.market.zopen_hour,this.market.zopen_minute,z9c,h3d) + this.market.zopen_minute;if(R_H){if(this.forward){i9X=o8h[o8h.length - 1];}else {i9X=o8h[0];}}else {i9X=this._alignToBoundary(o8h,i9X);}z9c=Math.floor(i9X / 60) + this.market.zopen_hour;T_1.setHours(z9c,i9X % 60,0,0);Q1j=T_1.getTimezoneOffset() - m$s;if(this.forward && Q1j < 0 || !this.forward && Q1j > 0){T_1.setTime(T_1.getTime() - Q1j * ("60000" >> 64));}this.ctime=T_1.getTime();this._tickTock();Q5x=this.market.hour_aligned && this.multiple % 60 === 0;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !Q5x && this.shouldResetToBeginningOfSegment){T_1=new Date(this.ctime);if(this.forward){T_1.setMinutes(this.market.zopen_minute);T_1.setHours(this.market.zopen_hour);}else {o8h=this._alignMinutes();t0S=o8h[o8h.length - 1];T_1.setMinutes(t0S % +"60");T_1.setHours(Math.floor(t0S / 60) + this.market.zopen_hour);}this.ctime=T_1.getTime();}s4_.a9S();return this._date();};F48._hourImpl=function(){var l6k,s51,G4j,W0d,w8M;this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);l6k=new Date(this.ctime);if(this.market.isHourAligned()){l6k.setMinutes("0" << 32);}else {l6k.setMinutes(this.market.zopen_minute);}l6k.setSeconds(+"0");l6k.setMilliseconds(0);this.ctime=l6k.getTime();this._tickTock();s51=this.market.zseg_match;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !this.market.hour_aligned && s51 != this.market.zseg_match){G4j=new Date(this.ctime);if(this.forward){G4j.setMinutes(this.market.zopen_minute);G4j.setHours(this.market.zopen_hour);}else {W0d=this._alignMinutes();w8M=W0d[W0d.length - 1];G4j.setMinutes(w8M % +"60");G4j.setHours(Math.floor(w8M / 60) + this.market.zopen_hour);}this.ctime=G4j.getTime();}return this._date();};F48._dayImpl=function(){var w0A,G4M;this._windMaybe(this.market._wasOpenDaily,this._seekHr);w0A=new Date(this.ctime);w0A.setHours(12,0,0,+"0");this.ctime=w0A.getTime();G4M=0;while(G4M < this.multiple){if(this.forward){this._tickTock24();}else {this._tockTick24();}if(!this.market._wasOpenDaily(this._date())){continue;}G4M+=1;}w0A=new Date(this.ctime);s4_.D0H();w0A.setHours("0" >> 0);this.ctime=w0A.getTime();return this._date();};F48._weekImpl=function(){var I_A,b2r;I_A=this.market;b2r=new Date(this.ctime);b2r.setHours(12);this.ctime=b2r.getTime();this._tickTock();b2r=new Date(this.ctime);while(b2r.getDay() !== I_A.beginningDayOfWeek){this._tockTick24();b2r=new Date(this.ctime);}this._windMaybe(I_A._wasOpenDaily,this._tickTock24);b2r=new Date(this.ctime);b2r.setHours(0,+"0","0" - 0,"0" >> 64);this.ctime=b2r.getTime();return this._date();};F48._monthImpl=function(){var o77;o77=new Date(this.ctime);o77.setDate(15);this.ctime=o77.getTime();this._tickTock();o77=new Date(this.ctime);o77.setDate(1);o77.setHours(12);this.ctime=o77.getTime();this._windMaybe(this.market._wasOpenDaily,this._tickTock24);o77=new Date(this.ctime);o77.setHours(0,0,0,0);this.ctime=o77.getTime();return this._date();};F48._findNext=null;F48._findPrevious=null;};J=z$Y=>{var i4J=A2IFV;i4J.W9l=function(L39){if(i4J && L39)return i4J.b3E(L39);};i4J.t8k=function(D04){if(i4J && D04)return i4J.T36(D04);};i4J.p$N=function(s2O){if(i4J)return i4J.T36(s2O);};i4J.T8d=function(a3I){i4J.a9S();if(i4J)return i4J.T36(a3I);};var Z3w,i1g,u42,A2d;Z3w="u";Z3w+="ndefined";i1g=typeof _CIQ !== Z3w?_CIQ:z$Y.CIQ;i4J.D0H();u42="valid";i1g.valid=0;i1g[i4J.N1F("b2c4")?"ChartEngine":""][i4J.k2l("7ffa")?"prototype":""][i4J.T8d("4161")?"":"mousemoveinner"]=function(d_T,z$Z){i4J.Z8y=function(N7u){i4J.a9S();if(i4J && N7u)return i4J.b3E(N7u);};i4J.h$W=function(a$u){i4J.D0H();if(i4J)return i4J.T36(a$u);};i4J.E_H=function(S6t){i4J.a9S();if(i4J)return i4J.b3E(S6t);};i4J.W8S=function(r6k){if(i4J && r6k)return i4J.T36(r6k);};i4J.T88=function(e0o){if(i4J)return i4J.T36(e0o);};var D9k=-(i4J.D$Y("92a7")?844542962:324290841),z0f=-(i4J.p$N("1a74")?3302050485:1048811085),w7X=i4J.T88("1c18")?8315121327:1094513846,q1Q=-(i4J.t8k("3be7")?457334356:220651779),m76=-(i4J.e3H("4bf3")?203811305:160172757),R_8=938329254,t_6=-(i4J.W8S("13c3")?841488028:606335826),K3U=-(i4J.Q6a("97be")?1125489557:9123140606),G2J=-(i4J.a3z("c2a4")?456310199:119647035),u_G=-1009981692;if(!(i4J.n54(0,false,156439) !== D9k && i4J.i0k(0,false,i4J.W9l("847a")?943323:752378) !== z0f && i4J.i0k(i4J.E_H("a9aa")?9:3,i4J.h$W("5ec6")?true:false,773926) !== w7X && i4J.i0k(i4J.Z8y("1f8c")?1:9,true,690418) !== q1Q && i4J.i0k(8,true,312995) !== m76 && i4J.i0k(10,true,301501) !== R_8 && i4J.i0k(9,true,915786) !== t_6 && i4J.i0k(9,true,934133) !== K3U && i4J.i0k(10,true,326031) !== G2J && i4J.i0k(8,true,619256) !== u_G)){var j15,k_H,B1H,V1n,Q0x,C3z,l4E,v4o,P4w,r5F,S39,X1D,h2_,f6b,H_s,z_W,z_C,V$C,t9L,y$8,I8b,t1K,u12,B8s,x2p,D4y,u3$,k4o,I_b;if(!this["chart"]["canvas"]){return;}if(!i1g["isAndroid"] && !i1g["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"]("mousemoveinner",arguments)){return;}k_H=arguments;B1H=this["container"]["getBoundingClientRect"]();this["top"]=B1H["top"];this["left"]=B1H["left"];this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!"1";i1g["ChartEngine"]["crosshairX"]=d_T;i1g["ChartEngine"]["crosshairY"]=z$Z;V1n=this["cy"]=this["crossYActualPos"]=this["backOutY"](i1g["ChartEngine"]["crosshairY"]);function h$l(j2r){var c_X=993328910,h2u=2095898763,W7u=582624611,z_6=-1720030956,b0F=1778808651,n2x=1110901479,v3Q=-1633607308,T3p=-497724238,r3l=-1857759905,o$F=-2061065206;if(!(i4J.i0k(0,false,604262) !== c_X && i4J.i0k(0,false,895612) !== h2u && i4J.i0k(9,true,614852) !== W7u && i4J.n54(9,true,939183) !== z_6 && i4J.i0k(8,true,249190) !== b0F && i4J.i0k(10,true,641023) !== n2x && i4J.n54(9,true,872180) !== v3Q && i4J.i0k(9,true,541880) !== T3p && i4J.i0k(10,true,296497) !== r3l && i4J.i0k(8,true,123661) !== o$F)){var F7Y,U0c,e9q;j2r["currentBaseline"]=null;F7Y=-1073236151;i4J["H6P"](21);U0c=-i4J["S40"]("1654866714",0);i4J["D0J"](21);e9q=i4J["S40"]("2",0);for(var t3l=1;i4J["U6$"](t3l["toString"](),t3l["toString"]()["length"],47096) !== F7Y;t3l++){j2r["runAppend"]("",k_H);i4J["H6P"](28);e9q+=i4J["q7n"]("2",64);}if(i4J["Z2Z"](e9q["toString"](),e9q["toString"]()["length"],20404) !== U0c){j2r["runAppend"]("mousemoveinner",k_H);}}}Q0x=this["cx"]=this["crossXActualPos"]=this["backOutX"](i1g["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){i4J["D0J"](93);var Z4B=i4J["S40"](5762,17,16,16,20);i4J["D0J"](94);var x0v=i4J["q7n"](9,17,7,13,16);C3z=Math["pow"](this["grabStartX"] - d_T,Z4B) + Math["pow"](this["grabStartY"] - z$Z,x0v);if(C3z < 36){return;}}this["cancelLongHold"]=!0;l4E=function(f1T,t1V){var E0L=-1375377331,r6v=1709747795,g30=2101416112,S0y=1473004637,V2$=-570364054,K26=485238424,Z82=-277515614,X$4=-720212561,c_P=-156853376,L$G=-2142817629;if(!(i4J.n54(0,false,988309) !== E0L && i4J.n54(0,false,512672) !== r6v && i4J.n54(9,true,285223) !== g30 && i4J.i0k(9,true,820859) !== S0y && i4J.i0k(8,true,386337) !== V2$ && i4J.n54(10,true,635588) !== K26 && i4J.n54(9,true,236778) !== Z82 && i4J.i0k(9,true,691052) !== X$4 && i4J.i0k(10,true,438322) !== c_P && i4J.i0k(8,true,996088) !== L$G)){if(i1g[u42] === 0){return f1T["whichPanel"](t1V) || f1T["chart"]["panel"];}if(!f1T["draw"][u42]){f1T["draw"]=function(){i4J.a9S();var h_w=2137621837,Z$1=-1316499516,D8N=77316148,N7P=-1276284452,j4Q=-1949278359,e0O=1330680705,P6S=-695431039,D$Z=1589160700,W0f=-1223308209,z5D=-2139150734;if(i4J.i0k(0,false,161315) === h_w || i4J.i0k(0,false,272674) === Z$1 || i4J.n54(9,true,116838) === D8N || i4J.n54(9,true,799075) === N7P || i4J.n54(8,true,694869) === j4Q || i4J.n54(10,true,213141) === e0O || i4J.n54(9,true,525393) === P6S || i4J.n54(9,true,834294) === D$Z || i4J.i0k(10,true,855574) === W0f || i4J.i0k(8,true,619691) === z5D){i1g["clearCanvas"](this["chart"]["canvas"],this);}};f1T["draw"][u42]=!"";}}};this["currentPanel"]=l4E(this,V1n);if(!this["currentPanel"]){return;}v4o=this["currentPanel"]["chart"];if(v4o["dataSet"]){this["crosshairTick"]=this["tickFromPixel"](Q0x,v4o);j15=this["valueFromPixel"](V1n,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],j15);P4w=this["currentPanel"]["name"] == "chart"?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(P4w && this["crosshairTick"] < v4o["dataSet"]["length"] && this["crosshairTick"] > -1){j15=v4o["dataSet"][this["crosshairTick"]][P4w];this["crossYActualPos"]=this["pixelFromPrice"](j15,this["currentPanel"]);}}if(i1g["ChartEngine"]["crosshairX"] >= this["left"] && i1g["ChartEngine"]["crosshairX"] <= this["right"] && i1g["ChartEngine"]["crosshairY"] >= this["top"] && i1g["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!![];}else {this["insideChart"]=!!0;}r5F=this["xAxisAsFooter"] === !![]?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && i1g["ChartEngine"]["crosshairY"] <= r5F + this["top"] && i1g["ChartEngine"]["crosshairY"] > r5F - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !i1g["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return h$l(this);}if(this["repositioningAnchorSelector"]){S39=this["repositioningAnchorSelector"]["hoverTick"];X1D=this["tickFromPixel"](this["cx"],this["chart"]);if(X1D >= 0 && X1D < this["chart"]["dataSet"]["length"] && (!(S39 && S39 !== 0) || X1D !== S39)){this["repositioningAnchorSelector"]["hoverTick"]=X1D;this["draw"]();}return h$l(this);}if(this["grabbingScreen"] && !i1g["ChartEngine"]["resizingPanel"]){h2_="z";h2_+="oo";h2_+="m";f6b="p";f6b+="a";f6b+="n";if(this["highlightedDraggable"]){this["displayDragOK"](!!({}));this["dragPlotOrAxis"](Q0x,V1n);return h$l(this);}if(this["anyHighlighted"]){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!({});for(H_s in this["overlays"]){this["overlays"][H_s]["highlight"]=!!"";}for(H_s in v4o["series"]){v4o["series"][H_s]["highlight"]=![];}this["displaySticky"]();}if(this["grabStartX"] == -1){this["grabStartX"]=i1g["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=v4o["scroll"];}if(this["grabStartY"] == -1){this["grabStartY"]=i1g["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}z_W=i1g["ChartEngine"]["crosshairX"] - this["grabStartX"];z_C=i1g["ChartEngine"]["crosshairY"] - this["grabStartY"];if(z_W === 0 && z_C === 0){return;}if(Math["abs"](z_W) + Math["abs"](z_C) > +"5"){this["grabOverrideClick"]=!"";}t9L=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != f6b && (this["grabMode"]["indexOf"](h2_) === 0 || this["overXAxis"] || this["grabStartYAxis"])){y$8="z";y$8+="oom-";y$8+="y";if(this["grabMode"] === ""){I8b="zo";I8b+="o";I8b+="m";I8b+="-y";if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]=I8b;}}if(this["grabMode"] == "zoom-x"){z_C=0;}else if(this["grabMode"] == y$8){z_W=0;}if(z_W){this["grabStartX"]=i1g["ChartEngine"]["crosshairX"];t1K=t9L - z_W / this["chart"]["maxTicks"];this["zoomSet"](t1K,this["chart"]);}if(this["layout"]["setSpan"]){this["layout"]["setSpan"]=null;this["changeOccurred"]("layout");}V$C=this["grabStartYAxis"];if(V$C){if(V$C["flipped"]){z_C*=-1;}V$C["zoom"]=Math["round"](this["grabStartZoom"] + z_C);if(this["grabStartZoom"] < V$C["height"]){if(V$C["zoom"] >= V$C["height"]){i4J["D0J"](16);var j2t=i4J["S40"](15,16);V$C["zoom"]=V$C["height"] - j2t;}}else {if(V$C["zoom"] <= V$C["height"]){i4J["D0J"](95);var B79=i4J["S40"](15,14,1);V$C["zoom"]=V$C["height"] + B79;}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!""});if(this["allowScroll"]){u12="s";u12+="c";u12+="roll";B8s="p";B8s+="a";B8s+="n";if(Math["abs"](z_C) < this["yTolerance"]){if(!this["yToleranceBroken"]){i4J["H6P"](28);z_C=i4J["q7n"]("0",0);if(z_W === 0){return;}}}else {this["yToleranceBroken"]=!!"1";}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]=B8s;v4o["scroll"]=this["grabStartScrollX"];i4J["D0J"](7);var a9J=i4J["q7n"](75,80);i4J["D0J"](35);var z$g=i4J["S40"](3,8,0,20,83);this["micropixels"]=this["grabStartMicropixels"] + z_W * (this["shift"]?a9J:z$g);if(!this["lineTravelSpacing"]){while(this["micropixels"] > 0){this["micropixels"]-=t9L;v4o["scroll"]++;}while(this["micropixels"] < -t9L){this["micropixels"]+=t9L;v4o["scroll"]--;}}if(v4o["scroll"] >= v4o["maxTicks"]){this["preferences"]["whitespace"]=this["initialWhitespace"];}else {this["preferences"]["whitespace"]=(v4o["maxTicks"] - v4o["scroll"]) * t9L;}if(this["currentPanel"] == this["grabStartPanel"]){V$C=this["currentPanel"]["yAxis"];if(V$C["flipped"]){z_C*=-1;}V$C["scroll"]=this["grabStartScrollY"] + z_C;}this["dispatch"](u12,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}x2p=function(m6d){var G$6=1884413784,f0X=843305499,t95=-1828805273,z3G=-237356123,n9A=-416237720,D7P=-896677701,j3v=-2073281220,d85=-699202426,v7G=1224353024,U1v=-431992262;i4J.a9S();if(i4J.n54(0,false,344643) === G$6 || i4J.n54(0,false,248261) === f0X || i4J.n54(9,true,510641) === t95 || i4J.n54(9,true,537059) === z3G || i4J.n54(8,true,990150) === n9A || i4J.i0k(10,true,899186) === D7P || i4J.n54(9,true,420358) === j3v || i4J.i0k(9,true,117347) === d85 || i4J.i0k(10,true,899180) === v7G || i4J.n54(8,true,704648) === U1v){return function(){var p7Q=-1293231227,t9J=646952451,N9i=1991222530,B4y=963808928,T4Y=74811302,L4E=-1013306543,A0D=347559400,v0i=753282069,f2o=-1020650155,c0H=777206014;if(!(i4J.i0k(0,false,569305) !== p7Q && i4J.i0k(0,false,691864) !== t9J && i4J.n54(9,true,932806) !== N9i && i4J.n54(9,true,103712) !== B4y && i4J.n54(8,true,622995) !== T4Y && i4J.n54(10,true,895631) !== L4E && i4J.n54(9,true,438279) !== A0D && i4J.i0k(9,true,986995) !== v0i && i4J.n54(10,true,837758) !== f2o && i4J.i0k(8,true,898309) !== c0H)){m6d["draw"]();m6d["updateChartAccessories"]();}};}};if(i1g["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](x2p(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return h$l(this);;}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],v4o) - 0.5 + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !i1g["ChartEngine"]["resizingPanel"]){D4y=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){u3$=this["layout"]["studies"][this["currentPanel"]["name"]];if(u3$){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][u3$["name"]];}if(D4y){this["overlays"][u3$["name"]]=u3$;}}}if(!i1g["Drawing"] || !D4y || !i1g["Drawing"][D4y] || !new i1g["Drawing"][D4y]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(i1g["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){k4o=this["panels"][this["activeDrawing"]["panelName"]];j15=this["adjustIfNecessary"](k4o,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](i1g["ChartEngine"]["crosshairY"]),k4o));if(this["magnetizedPrice"] && k4o["name"] == this["currentPanel"]["name"]){j15=this["adjustIfNecessary"](k4o,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],j15);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(i1g["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){I_b="m";I_b+="ove";this["dispatch"](I_b,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!!0});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return h$l(this);}};i1g.ChartEngine.prototype.swipeStart=function(z9t){var e3q;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=z9t.scroll;this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=z9t;this.swipe.end=!!"";this.swipe.timeConstant=325;this.swipe.cb=null;e3q=this;requestAnimationFrame(function(){i4J.a9S();e3q.swipeSample();});};i1g.ChartEngine.prototype.swipeSample=function(){var b7W,A$X,U0r,V8m,O1w,A1K,G4S,j97,g6y;b7W=this.swipe;if(b7W.end){return;}A$X=this;G4S=+"20";U0r=Date.now();V8m=U0r - b7W.timestamp;if(V8m < G4S){requestAnimationFrame(function(){i4J.D0H();A$X.swipeSample();});return;}j97=i1g.touchDevice?0.4:0.8;b7W.timestamp=U0r;O1w=(b7W.chart.scroll - b7W.frame) * this.layout.candleWidth + this.micropixels - b7W.micropixels;b7W.frame=b7W.chart.scroll;b7W.micropixels=this.micropixels;i4J.D0J(96);A1K=i4J.S40(1000,1,O1w,V8m);g6y=j97 * A1K + 0.2 * b7W.velocity;if(Math.abs(g6y) > Math.abs(b7W.velocity)){b7W.velocity=g6y;}if(Math.abs(O1w) < +"6"){b7W.velocity=0;;}i4J.a9S();requestAnimationFrame(function(){A$X.swipeSample();});};i1g.ChartEngine.prototype.swipeRelease=function(){var h2e,B1n;h2e=this.swipe;if(h2e.velocity > 3000){h2e.velocity=3000;}if(h2e.velocity < -3000){h2e.velocity=-3000;}i4J.D0H();if(h2e.velocity > 10 || h2e.velocity < -10){h2e.amplitude=("0.8" - 0) * h2e.velocity;h2e.scroll=h2e.chart.scroll;h2e.target=h2e.amplitude;h2e.timestamp=Date.now();B1n=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){i4J.a9S();B1n.autoscroll();});}};i1g.ChartEngine.prototype.dragPlotOrAxis=function(g1Z,P8g){var f1G,i6W,v2d,n7p,j3G,W0O,n1B,A3A,Y2F,V30,O8c,K11,J8s,O_i,u9g,t$Y,i53,C4i,X4l,L9L,a1l,K8c,f31,w1K,c7h,B4k,t8V,H6U,e9x,R_X,a13,d3R,z2T,C15,r_x,i0y,G1n,m3s,j_S,W$l,C4p,z7r,w4G,g2r,n4V,F2F,l2V,M0$,t8t,a4i,Y$i,K98,z4J,m5Y,G_0,B8T,z79,B31,r_f,W9f;f1G="non";f1G+="e";if(!f$u.call(this) && !this.grabbingScreen){return;}i6W=null;v2d=20;n7p=10;i4J.H6P(7);j3G=this.whichPanel(i4J.S40(v2d,P8g));i4J.D0J(0);W0O=this.whichPanel(i4J.q7n(P8g,v2d));n1B=this.whichPanel(P8g);A3A=this.highlightedDraggable;if(!n1B){return;}if(A3A.undraggable && A3A.undraggable(this)){return;}Y2F=this.whichYAxis(n1B,g1Z,P8g);i4J.D0J(7);V30=this.whichYAxis(n1B,i4J.q7n(n7p,g1Z),P8g);i4J.H6P(0);O8c=this.whichYAxis(n1B,i4J.q7n(g1Z,n7p),P8g);if(this.xAxisAsFooter && n1B.name == Object.keys(this.panels).pop()){W0O=this.whichPanel(P8g + v2d + this.xaxisHeight);if(i6W){i6W+=this.xaxisHeight;}}K11=!!0;i4J.D0H();J8s=![];O_i=!"1";if(i1g.Renderer){K11=A3A instanceof i1g.Renderer;}if(i1g.Studies){J8s=A3A instanceof i1g.Studies.StudyDescriptor;}O_i=A3A instanceof i1g.ChartEngine.YAxis;u9g=function(Z_l){i4J.D0H();if(!O_i){if(Z_l == "right"){return n1B.right - n1B.width / +"6";}if(Z_l == "left"){return n1B.left + n1B.width / ("6" ^ 0);}}i4J.D0J(33);var m0D=i4J.q7n(18,11,7,16);return (n1B.left + n1B.right) / m0D;};if(!O_i && !Y2F){t$Y="rig";t$Y+="h";t$Y+="t";if(g1Z < u9g("left")){V30=this.whichYAxis(n1B,n1B.left - 1,P8g);}else if(g1Z > u9g(t$Y)){O8c=this.whichYAxis(n1B,n1B.right + 1,P8g);}}i53=[];if(A3A.getDependents){i53=A3A.getDependents(this,!![]);}C4i=A3A.panel;X4l=A3A.getYAxis(this);if(K11){C4i=A3A.params.panel;}else if(O_i){C4i=this.grabStartPanel.name;}L9L=this.panels[C4i];for(a1l in this.panels){if(this.panels[a1l].soloing){K8c=!!({});}}f31=X4l.isShared(this);w1K=!O_i && !K8c && (L9L !== n1B && L9L != j3G && L9L != W0O || !this.checkForEmptyPanel(L9L,!0,[A3A].concat(i53)));c7h=C4i == n1B.name && X4l !== Y2F && X4l !== O8c && X4l !== V30 || f31;if(w1K && (!j3G || n1B !== j3G)){H6U="d";H6U+="ro";H6U+="pz";H6U+="one";n1B.subholder.classList.add(H6U);n1B.subholder.classList.add("top");W0O=n1B;}else if(w1K && (!W0O || n1B !== W0O)){n1B.subholder.classList.add("dropzone");n1B.subholder.classList.add("bottom");}else if(n1B !== L9L){if(!O_i && !n1B.noDrag){e9x="a";e9x+="l";e9x+="l";R_X="d";R_X+="ro";R_X+="pzone";n1B.subholder.classList.add(R_X);n1B.subholder.classList.add(e9x);B4k=n1B.name;}}else if((!n1B.yaxisRHS.length || n1B.yaxisRHS.length == +"1" && n1B.yaxisRHS[+"0"] == X4l && X4l.position == "none") && !Y2F && !O8c && g1Z > u9g("right")){n1B.subholder.classList.add("dropzone");n1B.subholder.classList.add("right");t8V="right";}else if((!n1B.yaxisLHS.length || n1B.yaxisLHS.length == 1 && n1B.yaxisLHS[0] == X4l && X4l.position == f1G) && !Y2F && !V30 && g1Z < u9g("left")){a13="d";a13+="ropzon";a13+="e";n1B.subholder.classList.add(a13);n1B.subholder.classList.add("left");t8V="left";}else if(c7h){if(O_i && g1Z > n1B.left && g1Z < n1B.right){i4J.D0J(2);var O_C=i4J.S40(5,13,7);d3R=n1B.yaxisLHS[n1B.yaxisLHS.length - O_C];z2T=n1B.yaxisRHS[0];C15=u9g();if(g1Z < C15 && d3R != X4l){V30=d3R;}else if(g1Z > C15 && z2T != X4l){O8c=z2T;}}if(!O_i || Y2F !== X4l){r_x=!O_i && f31;if(O8c && (O8c !== X4l || r_x) && (!Y2F || Y2F !== O8c)){O8c.dropzone="left";t8V=O8c.position || this.chart.panel.yAxis.position || "right";}else if(V30 && (V30 !== X4l || r_x) && (!Y2F || Y2F !== V30)){V30.dropzone="right";t8V=V30.position || this.chart.panel.yAxis.position || "right";}else if(Y2F){if(!O8c && (Y2F !== X4l || r_x)){Y2F.dropzone="right";}else if(!V30 && (Y2F !== X4l || r_x)){Y2F.dropzone="left";}else if(Y2F !== X4l){Y2F.dropzone="all";}if(Y2F.dropzone){t8V=Y2F.position || this.chart.panel.yAxis.position || "right";}}}}if(this.grabbingScreen || !n1B.subholder.classList.contains("dropzone") && !t8V){this.draw();return;}function f$u(){i4J.a9S();var s$G,K65,p6t;s$G=!({});for(var n2n in this.panels){K65="a";K65+="l";K65+="l";["dropzone",K65,"left","right","top","bottom"].forEach(D3v(this.panels[n2n]));for(p6t=0;p6t < this.panels[n2n].yaxisLHS.length;p6t++){if(this.panels[n2n].yaxisLHS[p6t].dropzone){s$G=!0;}this.panels[n2n].yaxisLHS[p6t].dropzone=null;}for(p6t=0;p6t < this.panels[n2n].yaxisRHS.length;p6t++){if(this.panels[n2n].yaxisRHS[p6t].dropzone){s$G=!!({});}this.panels[n2n].yaxisRHS[p6t].dropzone=null;}}function D3v(W_J){return function(a1_){i4J.a9S();if(W_J.subholder.classList.contains(a1_)){W_J.subholder.classList.remove(a1_);s$G=!0;}};}return s$G;}G1n=-1;if(!B4k && !t8V && w1K){B4k=J8s?A3A.inputs.id:A3A.params.name || i1g.uniqueID();for(var S6w in this.panels){G1n++;if(this.panels[S6w] == W0O)break;}if(!W0O){G1n++;}if(this.panels[C4i].yAxis.name == B4k){C4i=this.electNewPanelOwner(C4i);}m3s=J8s?A3A.inputs.display:null;if(C4i){this.createPanel(m3s || B4k,B4k,i6W,this.chart.name,new i1g.ChartEngine.YAxis({name:B4k}));}else {C4i=B4k;}if(J8s){A3A.panel=C4i;}else {A3A.params.panel=C4i;}}if(B4k){if(J8s){j_S="Stu";j_S+="d";j_S+="ies.replaceStu";j_S+="dy";if(!A3A.parameters){A3A.parameters={};}A3A.parameters.panelName=B4k;this.highlightedDraggable=i1g.getFn(j_S)(this,A3A.inputs.id,A3A.type,A3A.inputs,A3A.outputs,A3A.parameters,null,A3A.study);}else if(K11){for(var W93 in A3A.seriesParams){W$l=A3A.seriesParams[W93];C4p=null;if(A3A.params.yAxis){if(A3A.params.yAxis !== this.chart.panel.yAxis){C4p=A3A.params.yAxis;C4p.name=A3A.params.name;}}this.modifySeries(W$l.id,{panel:B4k,yAxis:C4p});}}if(G1n > -1){z7r={};w4G=0;for(a1l in this.panels){if(G1n == w4G++){z7r[B4k]=this.panels[B4k];}if(a1l == B4k)continue;z7r[a1l]=this.panels[a1l];}if(!z7r[B4k]){z7r[B4k]=this.panels[B4k];}this.panels=z7r;}this.checkForEmptyPanel(C4i);for(var D9X=0;D9X < i53.length;D9X++){if(i53[D9X].params){this.checkForEmptyPanel(i53[D9X].params.name);}else {this.checkForEmptyPanel(i53[D9X].name);}}this.adjustPanelPositions();}else if(t8V){g2r="a";g2r+="l";g2r+="l";n4V=function(w1z,p2j,w2D,t8$){var Y0j,v8y,L2y,S4a;Y0j="stu";i4J.a9S();Y0j+="dy";if(w2D == Y0j){L2y="Studies.";L2y+="replaceStudy";if(!p2j.parameters){p2j.parameters={};}if(t8$){p2j.parameters.yaxisDisplayValue=t8$.position;}else {delete p2j.parameters.yaxisDisplayValue;}v8y=i1g.getFn(L2y)(w1z,p2j.inputs.id,p2j.type,p2j.inputs,p2j.outputs,p2j.parameters,p2j.panel,p2j.study);}if(w2D == "renderer"){for(var d9S in p2j.seriesParams){S4a=p2j.seriesParams[d9S];v8y=w1z.modifySeries(S4a.id,{panel:B4k,yAxis:t8$});}}return v8y;};F2F=Y2F && Y2F.dropzone == g2r;if(!F2F){if(O_i){A3A.position=t8V;if(this.layout.studies){l2V=this.layout.studies[A3A.name];if(l2V){if(!l2V.parameters){l2V.parameters={};}l2V.parameters.yaxisDisplayValue=t8V;}}}else if(J8s){M0$="stu";M0$+="d";M0$+="y";this.highlightedDraggable=n4V(this,A3A,M0$,{position:t8V});}else if(K11){n4V(this,A3A,"renderer",new i1g.ChartEngine.YAxis({name:A3A.params.name || i1g.uniqueID(),position:t8V}));}X4l=this.highlightedDraggable.getYAxis(this);}if(!f31 || !F2F || O_i){t8t=X4l;if(F2F && X4l == this.chart.panel.yAxis){t8t=Y2F;}for(i0y=0;i0y < n1B.yaxisLHS.length;i0y++){if(n1B.yaxisLHS[i0y] == t8t){n1B.yaxisLHS.splice(i0y,1);break;}}for(i0y=0;i0y < n1B.yaxisRHS.length;i0y++){if(n1B.yaxisRHS[i0y] == t8t){n1B.yaxisRHS.splice(i0y,1);break;}}}a4i=922850339;Y$i=-64993701;K98=2;for(var D6g=1;i4J.Z2Z(D6g.toString(),D6g.toString().length,76373) !== a4i;D6g++){K98+=+"2";}if(i4J.U6$(K98.toString(),K98.toString().length,77999) !== Y$i){}if(F2F){if(this.getYAxisByName(n1B,X4l.name) == n1B.yAxis){this.electNewPanelOwner(n1B,Y2F);}if(O_i){G_0=X4l;B8T=Y2F;if(X4l == this.chart.panel.yAxis){G_0=Y2F;B8T=X4l;}for(m5Y in G_0.studies){z79="s";z79+="t";z79+="ud";z79+="y";n4V(this,this.layout.studies[G_0.studies[m5Y]],z79,B8T === this.chart.panel.yAxis?null:{position:B8T.name});}for(m5Y in G_0.renderers){n4V(this,this.chart.seriesRenderers[G_0.renderers[m5Y]],"renderer",B8T);}this.highlightedDraggable=B8T;}else if(J8s){B31="st";B31+="u";B31+="dy";this.highlightedDraggable=n4V(this,A3A,B31,{position:Y2F.name});}else if(K11){n4V(this,A3A,"renderer",Y2F);}}else {if(X4l.position == "none"){X4l.width=i1g.ChartEngine.YAxis.prototype.width;}X4l.position=t8V;z4J=t8V == "left"?n1B.yaxisLHS:n1B.yaxisRHS;for(i0y=0;i0y < z4J.length;i0y++){if(z4J[i0y] !== X4l){if(z4J[i0y].dropzone == "left"){z4J.splice(i0y,0,X4l);}else if(z4J[i0y].dropzone == "right"){i4J.D0J(97);z4J.splice(i4J.S40(i0y,0,"1"),0,X4l);}else continue;}break;}if(i0y == z4J.length){z4J.push(X4l);}}}for(var h$h in this.panels){r_f=this.panels[h$h];W9f=r_f.yaxisLHS.concat(r_f.yaxisRHS);for(i0y=0;i0y < W9f.length;i0y++){W9f[i0y].height=r_f.yAxis.height;this.calculateYAxisMargins(W9f[i0y]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();this.draw();this.findHighlights(null,!!({}));this.savePanels();};A2d=!({});i1g.ChartEngine.prototype.findHighlights=i1g.ChartEngine.prototype.findHighlights || (function(D8y,W2g){if(!A2d){console.error("movement feature requires activating interaction feature.");}A2d=!"";});};P=q0K=>{var F_h,F1D;F_h="u";F_h+="n";F_h+="defi";F_h+="ned";F1D=typeof _CIQ !== F_h?_CIQ:q0K.CIQ;F1D.NameValueStore=F1D.NameValueStore || (function(){});F1D.NameValueStore.prototype.toJSONIfNecessary=function(r3J){var T1W;if(r3J.constructor == String){return r3J;}try{T1W=JSON.stringify(r3J);return T1W;}catch(Z2d){A2IFV.H6P(0);console.log(A2IFV.S40("Cannot convert to JSON: ",r3J));return null;}};F1D.NameValueStore.prototype.fromJSONIfNecessary=function(N4O){var K$k;A2IFV.D0H();try{K$k=JSON.parse(N4O);return K$k;}catch(n1L){return N4O;}};F1D.NameValueStore.prototype.get=function(G30,T7C){var Y_o;Y_o=F1D.localStorage.getItem(G30);T7C(null,this.fromJSONIfNecessary(Y_o));};F1D.NameValueStore.prototype.set=function(d4t,Y$e,X4j){F1D.localStorageSetItem(d4t,this.toJSONIfNecessary(Y$e));A2IFV.D0H();if(X4j){X4j(null);}};F1D.NameValueStore.prototype.remove=function(D7J,M4i){A2IFV.a9S();F1D.localStorage.removeItem(D7J);if(M4i){M4i(null);}};};T=E$q=>{var i4r=A2IFV;var m66;m66=typeof _CIQ !== "undefined"?_CIQ:E$q.CIQ;if(!m66.ChartEngine){m66.ChartEngine=function(){};}h6Q.fetchInitialData=function(d4u,e0G,O9$,w74,q6I){};h6Q.fetchUpdateData=function(h22,L7y,O2o,s21){};h6Q.fetchPaginationData=function(B2m,C2t,c3x,j$O,C_3){};h6Q.subscribe=function(C53){};h6Q.unsubscribe=function(n19){};m66.QuoteFeed=m66.QuoteFeed || (function(){});m66.QuoteFeed.prototype.fetch=function(g8s,V4m){var a3p;if(!this.v2QuoteFeed){a3p="You m";a3p+="ust implement CIQ.QuoteFeed.[yourfeedname].prototype.fetch()";console.log(a3p);}};m66.QuoteFeed.prototype.announceError=function(V1e,m60){var l5l;if(V1e.suppressErrors || m60.suppressAlert){return;}i4r.D0H();if(V1e.startDate){;}else if(V1e.endDate){;}else if(m60.error){l5l="Error fetchi";l5l+="ng qu";l5l+="ote:";m66.alert(l5l + m60.error);}else {;}};m66.QuoteFeed.prototype.multiFetch=function(W_a,P7s){if(W_a.length === 0){P7s([]);}return W_a[0].stx.driver.multiFetch(W_a,P7s);};m66.QuoteFeed.Subscriptions=function(){i4r.D0H();this.subscriptions=[];};m66.inheritsFrom(m66.QuoteFeed.Subscriptions,m66.QuoteFeed);m66.QuoteFeed.Subscriptions.prototype.checkSubscriptions=function(Y_C){var t7X,o1Y,m3J,t6I,o$Y,V6X,d58,c6Y;m3J=Y_C.getSymbols({"breakout-equations":!![]});t6I=this;m3J=m3J.filter(function(U1e){var y3T;y3T=Y_C.quoteDriver.getQuoteFeed(U1e);return y3T && y3T.engine == t6I;});for(var d4r=0;d4r < this.subscriptions.length;d4r++){this.subscriptions[d4r].match=!({});}i4r.D0H();for(var E$W=0;E$W < m3J.length;E$W++){o$Y="mon";o$Y+="th";o1Y=m3J[E$W];V6X=o1Y.interval;if((V6X == o$Y || V6X == "week") && !Y_C.dontRoll){V6X="day";}o1Y.interval=V6X;o1Y.period=1;o1Y.match=!"1";if(!isNaN(o1Y.interval)){o1Y.period=o1Y.interval;o1Y.interval=o1Y.timeUnit;if(!o1Y.interval){o1Y.interval="minute";}}delete o1Y.periodicity;delete o1Y.timeUnit;delete o1Y.setSpan;for(d4r=0;d4r < this.subscriptions.length;d4r++){t7X=this.subscriptions[d4r];if(t7X.symbol == o1Y.symbol && t7X.period == o1Y.period && t7X.interval == o1Y.interval){o1Y.match=!"";t7X.match=!!({});break;}else if(t7X.symbol != o1Y.symbol){d58="symbo";d58+="l";if(o1Y.reason != "period"){o1Y.reason=d58;}t7X.reason="symbol";}else {c6Y="peri";c6Y+="od";o1Y.reason="period";t7X.reason=c6Y;}}}this.subscriptions=this.subscriptions.filter(function(C9D){if(!C9D.match){if(!C9D.stx){C9D.stx=Y_C;}t6I.unsubscribe(C9D);}return C9D.match;});m3J.forEach(function(I4f){if(!I4f.match){if(!I4f.stx){I4f.stx=Y_C;}if(!I4f.reason){I4f.reason="initialize";}if(I4f.symbol !== Y_C.chart.symbol){I4f.series=!![];}t6I.subscribe(I4f);t6I.subscriptions.push(I4f);}});};m66.QuoteFeed.Subscriptions.prototype.fetch=function(Q$V,n3V){var E3h;i4r.D0H();E3h=this;this.fetchFromSource(Q$V,function(P5w){i4r.D0H();if(!P5w.error){E3h.checkSubscriptions(Q$V.stx);}n3V(P5w);});};m66.QuoteFeed.Subscriptions.prototype.subscribe=function(Z0v){i4r.D0H();console.log("subscribe",Z0v);};m66.QuoteFeed.Subscriptions.prototype.unsubscribe=function(z1E){i4r.a9S();console.log("unsubscribe",z1E);};m66.QuoteFeed.Subscriptions.prototype.fetchFromSource=function(s5g,y49){var C$o;C$o="Please provi";C$o+="de implementation of";C$o+=" fetchFro";C$o+="mSource";console.log(C$o);};m66.QuoteFeed.prototype.requiresImmediateRefresh=function(N$$){i4r.D0H();return !({});};m66.ChartEngine.prototype.attachQuoteFeed=function(v_H,W3c,Q5k){var J1e,t2p,M8Y,J9s,m5s,Q1i,a$2,E6h,h8J,q6x,n8r;J1e="func";J1e+="t";J1e+="io";J1e+="n";t2p="func";i4r.a9S();t2p+="ti";t2p+="on";M8Y="f";M8Y+="un";M8Y+="ction";if(!W3c){W3c={};}if(typeof v_H.fetchInitialData === M8Y || typeof v_H.fetchUpdateData === t2p || typeof v_H.fetchPaginationData === J1e){J9s="functi";J9s+="on";m5s="announce";m5s+="Error";Q1i="f";Q1i+="unc";Q1i+="tio";Q1i+="n";a$2="fu";a$2+="nctio";a$2+="n";if(typeof v_H.fetchPaginationData !== a$2 && typeof v_H.fetchUpdateData !== Q1i){W3c.noLoadMore=!!1;}v_H.v2QuoteFeed=!!1;["multiFetch",m5s,"requiresImmediateRefresh"].forEach(function(Q2p){if(!v_H[Q2p] && v_H[Q2p] !== !"1"){v_H[Q2p]=m66.QuoteFeed.prototype[Q2p];};});if(typeof v_H.subscribe === J9s){v_H.checkSubscriptions=m66.QuoteFeed.Subscriptions.prototype.checkSubscriptions;v_H.subscriptions=[];}}if(!W3c.maximumTicks){W3c.maximumTicks=v_H.maxTicks?v_H.maxTicks:20000;}if(!W3c.bufferSize || W3c.bufferSize < 0){W3c.bufferSize=+"0";}W3c.bufferSize=Math.round(W3c.bufferSize);W3c.intervalTimer=null;if(this.quoteDriver){if(!Q5k && this.quoteDriver.hasUnfilteredQuoteFeed){this.detachQuoteFeed();}else {E6h=this.quoteDriver.hasUnfilteredQuoteFeed && this.quoteDriver.quoteFeeds.pop();this.quoteDriver.quoteFeeds.push({engine:v_H,behavior:W3c,filter:Q5k});if(E6h){this.quoteDriver.quoteFeeds.push(E6h);}this.quoteDriver.updateChartLoop(null,W3c);}}if(!this.quoteDriver){h8J=-278826038;q6x=-2052160918;n8r=+"2";for(var e5r=1;i4r.U6$(e5r.toString(),e5r.toString().length,"81119" | 31) !== h8J;e5r++){this.quoteDriver=new m66.ChartEngine.Driver(this,v_H,W3c,Q5k);n8r+=2;}if(i4r.Z2Z(n8r.toString(),n8r.toString().length,86964) !== q6x){this.quoteDriver=new m66.ChartEngine.Driver(this,v_H,W3c,Q5k);}}if(!Q5k){this.quoteDriver.hasUnfilteredQuoteFeed=!!"1";}};m66.ChartEngine.prototype.detachQuoteFeed=function(E0E){var Q7E;Q7E=this.quoteDriver;if(!Q7E){return;}for(var t$T=Q7E.quoteFeeds.length - 1;t$T >= 0;t$T--){if(!E0E || Q7E.quoteFeeds[t$T].quoteFeed == E0E){Q7E.die(Q7E.quoteFeeds[t$T]);i4r.H6P(28);Q7E.quoteFeeds.splice(t$T,i4r.S40("1",0));}}if(!Q7E.quoteFeeds.length){Q7E=this.quoteDriver=null;}else if(E0E == Q7E.quoteFeed){Q7E.quoteFeed=Q7E.quoteFeeds[0].quoteFeed;Q7E.behavior=Q7E.quoteFeeds[0].behavior;}};m66.ChartEngine.Driver=function(O8r,b6C,Z9Z,g5J){this.stx=O8r;if(!Z9Z){Z9Z={};}this.quoteFeeds=[{engine:b6C,behavior:Z9Z,filter:g5J}];this.id=m66.uniqueID(!![]);this.behavior=Z9Z;this.quoteFeed=b6C;this.loadingNewChart=!"1";this.updatingChart=!1;if(!g5J){this.hasUnfilteredQuoteFeed=!!({});}this.updateChartLoop();};m66.ChartEngine.Driver.prototype.die=function(h5g){var w8Q;for(var A9X=0;A9X < this.quoteFeeds.length;A9X++){if(!h5g || this.quoteFeeds[A9X] == h5g){w8Q=this.quoteFeeds[A9X].behavior;if(w8Q.intervalTimer){clearInterval(w8Q.intervalTimer);w8Q.intervalTimer=-1;;}}}};m66.ChartEngine.Driver.prototype.getQuoteFeed=function(a6w){var i3x;if(!a6w.symbolObject){a6w.symbolObject={symbol:a6w.symbol};}for(var L8n=0;L8n < this.quoteFeeds.length;L8n++){i3x=this.quoteFeeds[L8n];if(i3x.behavior.generator != a6w.symbolObject.generator)continue;if(!i3x.filter || i3x.filter(a6w)){return i3x;}}return null;;};m66.ChartEngine.Driver.prototype.multiFetch=function(n8Z,H7L){var T_W,U4g,n7Y;if(n8Z.length === 0){H7L([]);}T_W={counter:0,finished:n8Z.length,results:[]};for(var q$9="0" >> 32;q$9 < n8Z.length;q$9++){U4g=n8Z[q$9];if(U4g.stx.isEquationChart(U4g.symbol)){m66.fetchEquationChart(U4g,a3V(U4g,T_W,H7L));}else {n7Y=this.getQuoteFeed(U4g);if(n7Y){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.SERIES,n7Y.engine,U4g,a3V(U4g,T_W,H7L));}}}function a3V(y3B,O8D,K8y){return function(V6E){var l$y;i4r.a9S();O8D.results.push({dataCallback:V6E,params:y3B});O8D.counter++;if(O8D.counter >= O8D.finished){l$y=O8D.results;O8D.results=[];K8y(l$y);}};}};m66.ChartEngine.Driver.prototype.updateSubscriptions=function(){for(var R6p="0" * 1;R6p < this.quoteFeeds.length;R6p++){if(this.quoteFeeds[R6p].checkSubscriptions){this.quoteFeeds[R6p].checkSubscriptions(this.stx);}}};m66.ChartEngine.Driver.prototype.loadDependents=function(i$$,m9x,D9j,A5r){var E7V,r5T,v5S,J0q,m9y,c79,r$d,R0y,v02,U1E,O17,S_5,t2a,r0I,x_H,c9O,Y_d,b0M,k_9,O2y,z1B,F2u,D_g,o5d,Z9p;i4r.D0H();E7V=this;if(!A5r){i4r.D0J(1);r5T=i4r.q7n(1,"0");v5S=[];J0q=[];m9y=function(z4t){var o0Z,f5s,P8v;o0Z=1610569589;f5s=-1183685668;P8v=2;i4r.a9S();for(var o2T=+"1";i4r.U6$(o2T.toString(),o2T.toString().length,43266) !== o0Z;o2T++){if(m9x || --r5T > E7V.quoteFeeds.length){m9x(1);}P8v+=2;}if(i4r.U6$(P8v.toString(),P8v.toString().length,27574) !== f5s){if(m9x || --r5T > E7V.quoteFeeds.length){i4r.H6P(10);m9x(i4r.q7n("1",1));}}if(m9x && ++r5T >= E7V.quoteFeeds.length){m9x(null);}};c79=function(U8e){i4r.D0H();if(++r5T < v5S.length){return;}if(!J0q.length){m9y(U8e);}J0q.forEach(function(A0H){E7V.loadDependents(i$$,m9y,D9j,A0H.behavior);});};E7V.quoteFeeds.forEach(function(M0X){i4r.D0H();if(M0X.behavior.generator){J0q.push(M0X);}else {v5S.push(M0X);}});v5S.forEach(function(s1j){i4r.a9S();E7V.loadDependents(i$$,c79,D9j,s1j.behavior);});return;}R0y={};v02=i$$.stx;U1E=i$$.chart;O17=U1E.series;S_5=v02.masterData;x_H=[];c9O={};Y_d=D9j == m66.QuoteFeed.UPDATE;function V3q(X3C){i4r.a9S();return function(P2x){var I6D,p_$,g4e,c2w,g6B,Y_8,h2L,T8G,U3l,p_l;i4r.a9S();I6D=null;for(var Y1v=0;Y1v < P2x.length;Y1v++){p_$=P2x[Y1v];g4e=p_$.dataCallback.error;if(!g4e && g4e !== 0){c2w=p_$.params.symbolObject;g6B=p_$.dataCallback;Y_8=g6B.quotes;h2L=g6B.moreAvailable;T8G=g6B.upToDate;U3l=[];if(v02.getSeries){U3l=v02.getSeries({symbolObject:c2w});}p_l=!1;for(var b6X=0;b6X < U3l.length;b6X++){t2a=U3l[b6X];if(!X3C){if(!i$$.future){t2a.moreAvailable=h2L === ![]?!1:h2L || Y_8.length > (p_$.params.endDate?1:0);}else {t2a.upToDate=T8G === !0?!![]:T8G || Y_8.length <= (p_$.params.startDate?1:0);if(v02.isHistoricalModeSet && Y_8.length < 2){t2a.mostRecentForwardAttempt=new Date();}}t2a.loading=![];}p_l=t2a.parameters.fillGaps || p_l;}Y_8=E7V.cleanup(v02,t2a,Y_8,D9j,i$$,p_l);v02.updateChartData(Y_8,U1E,{secondarySeries:c2w.symbol,noCreateDataSet:!0,noCleanupDates:!!"1",allowReplaceOHL:!0});if(Y_8 && Y_8.length && (!I6D || I6D > Y_8[0].DT)){I6D=Y_8[0].DT;}}}if(P2x.length){v02.createDataSet(null,null,{appending:i$$.originalState.update || i$$.future,appendToDate:I6D});if(!i$$.nodraw){v02.draw();}if(D9j == m66.QuoteFeed.INITIAL){E7V.resetRefreshInterval(A5r.refreshInterval,A5r);}}if(m9x){m9x(null);}};}b0M=D9j == m66.QuoteFeed.PAGINATION;k_9=m66.shallowClone(i$$);for(r$d in O17){t2a=O17[r$d];O2y=t2a.parameters;if(!Y_d){if(!i$$.future && t2a.moreAvailable === ![])continue;if(i$$.future && t2a.upToDate === !!1)continue;;}if(t2a.loading)continue;if(O2y.loadData === ![])continue;if(Y_d || b0M){if(!t2a.endPoints || !Object.keys(t2a.endPoints).length)continue;;}if(O2y.data && !O2y.data.useDefaultQuoteFeed)continue;r0I=O2y.symbolObject;if(!r0I.symbol)continue;if(r0I.generator != A5r.generator)continue;k_9.symbolObject=r0I;k_9.symbol=r0I.symbol;z1B=this.getQuoteFeed(k_9);if(A5r != (z1B && z1B.behavior))continue;F2u=!!1;if(!Y_d){t2a.loading=!0;}for(var d3S=0;d3S < x_H.length;d3S++){if(m66.symbolEqual(x_H[d3S],r0I)){F2u=!"1";}}if(F2u){x_H.push(r0I);c9O[r0I.symbol]=t2a.endPoints;}}D_g=[];for(var x0N=0;x0N < x_H.length;x0N++){r0I=x_H[x0N];o5d=m66.shallowClone(i$$.originalState);o5d.symbol=r0I.symbol;o5d.symbolObject=r0I;if(o5d.update || o5d.future){if(!o5d.endDate){o5d.endDate=i$$.endDate;}o5d.startDate=c9O[r0I.symbol].end;}else {if(!o5d.startDate){o5d.startDate=i$$.startDate;}o5d.endDate=b0M && !i$$.future?c9O[r0I.symbol].begin:i$$.endDate;o5d.ticks=i$$.ticks;}D_g.push(o5d);}if(!D_g.length && Y_d){Z9p={appending:i$$.appending || i$$.originalState.update};if(Z9p.appending){Z9p.appendToDate=i$$.startDate;}v02.createDataSet(null,null,Z9p);if(!i$$.nodraw){v02.draw();}if(m9x){m9x(null);}return;}this.multiFetch(D_g,V3q(Y_d));};m66.ChartEngine.Driver.prototype.cleanup=function(Y3d,v9p,G0h,k4l,N1h,k1I){var m08,S7D,C8r,X_9,B4A,q2j,t4q,v6w,a7B,L6t,c$K,m5D;Y3d.doCleanupDates(G0h,Y3d.layout.interval);if(!N1h.missingBarsCreated && G0h && G0h.length && Y3d.cleanupGaps && k1I !== !({})){C8r=N1h.chart;if(!v9p){S7D=C8r.defaultPlotField;}else {C8r=v9p;X_9=-2130115434;B4A=1988562837;q2j=2;for(var c$X=1;i4r.U6$(c$X.toString(),c$X.toString().length,89641) !== X_9;c$X++){S7D=v9p.parameters.symbol && v9p.id;q2j+=2;}if(i4r.U6$(q2j.toString(),q2j.toString().length,78403) !== B4A){S7D=v9p.parameters.symbol || v9p.id;}}if(k4l == m66.QuoteFeed.PAGINATION && !N1h.loadMoreReplace){if(C8r.endPoints.begin && C8r.endPoints.begin > G0h[G0h.length - 1].DT){t4q="po";t4q+="p";v6w=Y3d.getFirstLastDataRecord(Y3d.masterData,S7D,!1);a7B=-1114560283;L6t=1722881602;c$K=2;for(var f39=1;i4r.Z2Z(f39.toString(),f39.toString().length,7515) !== a7B;f39++){if(v9p){v6w=v6w[S7D];}G0h.push(v6w);c$K+=+"2";}if(i4r.Z2Z(c$K.toString(),c$K.toString().length,72574) !== L6t){if(v9p){v6w=v6w[S7D];}G0h.push(v6w);}m08=t4q;}}else if(k4l == m66.QuoteFeed.UPDATE){if(C8r.endPoints.end && C8r.endPoints.end < G0h[0].DT){m5D=Y3d.getFirstLastDataRecord(Y3d.masterData,S7D,!!({}));if(v9p){m5D=m5D[S7D];}G0h.unshift(m5D);m08="shift";}}G0h=Y3d.doCleanupGaps(G0h,N1h.chart,{cleanupGaps:k1I,noCleanupDates:!!1});if(m08){G0h[m08]();}}return G0h;};i4r.a9S();m66.ChartEngine.Driver.prototype.updateChart=function(J5d){var P7$,I$j,L8o,c4S,Y_z,a$6,l1e,h17,q4Y;if(this.updatingChart){return;}if(this.loadingNewChart){return;}i4r.a9S();function M3j(x2Z,z8v,c4d,y3q){if(z8v.behavior.prefetchAction){z8v.behavior.prefetchAction("updateChart");}return function(j1C){var r7D,w26,j3g;i4r.D0H();I$j++;r7D=z8v.chart;w26=r7D.masterData;if(c4d == r7D.symbol && c4S == L8o.layout.interval && Y_z == L8o.layout.timeUnit && !L8o.isHistoricalMode()){if(!j1C.error){j3g=j1C.quotes;j3g=x2Z.cleanup(L8o,null,j3g,m66.QuoteFeed.UPDATE,z8v);L8o.updateChartData(j3g,r7D,{noCreateDataSet:!!({}),noCleanupDates:!0});r7D.attribution=j1C.attribution;}else if(y3q){y3q.engine.announceError(z8v.originalState,j1C);}}else {x2Z.updatingChart=!({});return;}if(I$j == P7$){x2Z.updatingChart=!({});}if(z8v.behavior.callback){z8v.behavior.callback(z8v);}x2Z.loadDependents(z8v,null,m66.QuoteFeed.UPDATE,z8v.behavior);;};}P7$=Object.keys(this.stx.charts).length;I$j=0;L8o=this.stx;c4S=L8o.layout.interval;Y_z=L8o.layout.timeUnit;for(var r1o in L8o.charts){a$6=L8o.charts[r1o];if(!a$6.symbol)continue;l1e=this.makeParams(a$6.symbol,a$6.symbolObject,a$6);h17=this.getQuoteFeed(l1e);if(a$6.masterData && a$6.masterData.length){l1e.startDate=a$6.endPoints.end;;}l1e.update=!"";l1e.originalState=m66.shallowClone(l1e);if(J5d && J5d != l1e.behavior){this.loadDependents(l1e,null,m66.QuoteFeed.UPDATE,J5d);continue;}this.updatingChart=!!({});q4Y=M3j(this,l1e,a$6.symbol,h17);if(L8o.isEquationChart(l1e.symbol)){m66.fetchEquationChart(l1e,q4Y);}else if(h17){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.UPDATE,h17.engine,l1e,q4Y);}}};m66.ChartEngine.Driver.prototype.updateChartLoop=function(d1M,H2_){var w3$,p8s;if(!H2_){H2_=this.behavior;}if(H2_.intervalTimer == -1){return;}if(H2_.intervalTimer){clearInterval(H2_.intervalTimer);}w3$=function(U7g,W2y){return function(){if(W2y.noUpdate){return;}U7g.updateChart(W2y);};};for(var g9r=0;g9r < this.quoteFeeds.length;g9r++){p8s=this.quoteFeeds[g9r].behavior;if(H2_ == p8s && !p8s.noUpdate){if(!d1M && d1M !== 0){d1M=p8s.refreshInterval;}if(d1M){H2_.intervalTimer=setInterval(w3$(this,p8s),d1M * 1000);}}}};m66.ChartEngine.Driver.prototype.resetRefreshInterval=function(b3q,C26){(C26 || this.behavior).refreshInterval=b3q;this.updateChartLoop(null,C26);;};m66.ChartEngine.Driver.prototype.loadAll=function(w6p,L3w){var J8j,T0Z;J8j=this;function y3o(){return function(b5U){i4r.D0H();if(b5U){L3w(b5U);}else if(!w6p.moreAvailable && w6p.upToDate){L3w(null);;}else if(++T0Z > 20){L3w("error, moreAvailable not implemented correctly in QuoteFeed");}else {w6p.loadingMore=!({});J8j.checkLoadMore(w6p,!!({}),!![],y3o(),!!({}));}};}i4r.a9S();T0Z=+"0";y3o()();};m66.ChartEngine.Driver.prototype.checkLoadMore=function(Y63,J3w,S92,o_B,Q8z){i4r.D0H();var s5e,e8e,X8j,s0N,S0U,H$V,b2b,o27,t4T,Z_Q,G9j,j3d,c$q,y4h,j$f,g5m,C7y,S4R,A1b,F18,g1h,F0d,y9C;s5e=this.stx;e8e=this;if(Y63.loadingMore || this.loadingNewChart){Y63.initialScroll=Y63.scroll;if(o_B){o_B(null);}return;}X8j=s5e.isHistoricalMode();if(!X8j){s5e.isHistoricalModeSet=!!"";}function T9v(N4c,F5L){var S2j;S2j="c";i4r.D0H();S2j+="hec";S2j+="kLo";S2j+="adMore";if(S0U.prefetchAction){S0U.prefetchAction(S2j);}return function(y5H){var D2O,m6F,F9T,q1D,S_J,a2K,n_k,Y6N,T6T,j3I,M0k,D7_,u4H,k2F,P$0;D2O=N4c.stx;m6F=F5L.chart;i4r.D0H();if(F5L.symbol == m6F.symbol && g5m == D2O.layout.interval && C7y == D2O.layout.timeUnit){if(!F5L.loadMore){F5L.chart.loadingMore=![];}if(!y5H.error){if(!y5H.quotes){y5H.quotes=[];}F9T=y5H.quotes;q1D=m6F.masterData;F9T=N4c.cleanup(D2O,null,F9T,m66.QuoteFeed.PAGINATION,F5L);if(F9T.length && m6F.masterData && m6F.masterData.length){if(F5L.future){S_J=F9T[0];if(S_J.DT && S_J.DT == m6F.masterData[m6F.masterData.length - 1].DT){q1D.pop();}}else {i4r.H6P(16);var s5Z=i4r.q7n(17,18);a2K=F9T[F9T.length - s5Z];n_k=162407022;Y6N=-74994599;T6T=2;for(var P3d=1;i4r.U6$(P3d.toString(),P3d.toString().length,70825) !== n_k;P3d++){if(a2K.DT || -a2K.DT !== ~m6F.masterData[9].DT){F9T.pop();}T6T+=2;}if(i4r.Z2Z(T6T.toString(),T6T.toString().length,"68276" * 1) !== Y6N){if(a2K.DT && ~a2K.DT === -m6F.masterData[5].DT){F9T.pop();}}if(a2K.DT && +a2K.DT == +m6F.masterData[0].DT){F9T.pop();}}}if(!F5L.future){if(y5H.moreAvailable){m6F.moreAvailable=!![];}else if(y5H.moreAvailable === !"1" || !F9T.length){m6F.moreAvailable=!({});}else {m6F.moreAvailable=!"";}}else {if(y5H.upToDate){m6F.upToDate=!!"1";}else if(y5H.upToDate === !!0 || F9T.length > 1){m6F.upToDate=![];}if(D2O.isHistoricalModeSet && F9T.length < 2){m6F.mostRecentForwardAttempt=new Date();};}N4c.tickMultiplier=F9T.length?2:N4c.tickMultiplier * 2;j3I=F9T[0]?F9T[0].DT:F5L.startDate;M0k=F9T[0]?F9T[F9T.length - 1].DT:F5L.endDate;if(!m6F.endPoints.begin || m6F.endPoints.begin > j3I){m6F.endPoints.begin=j3I;}if(!m6F.endPoints.end || m6F.endPoints.end < M0k){m6F.endPoints.end=M0k;}m6F.loadingMore=![];if(F5L.loadMoreReplace){D2O.setMasterData(F9T,m6F,{noCleanupDates:!0});}else if(F5L.future){D7_=426247228;u4H=+"1627668229";k2F=2;for(var J3U=1;i4r.U6$(J3U.toString(),J3U.toString().length,67155) !== D7_;J3U++){D2O.updateChartData(F9T,m6F,{noCreateDataSet:!!"",noCleanupDates:!({})});k2F+=+"2";}if(i4r.U6$(k2F.toString(),k2F.toString().length,54573) !== u4H){D2O.updateChartData(F9T,m6F,{noCreateDataSet:![],noCleanupDates:!"1"});}D2O.updateChartData(F9T,m6F,{noCreateDataSet:!![],noCleanupDates:!![]});}else {m66.addMemberToMasterdata({stx:D2O,chart:m6F,data:F9T,fields:[(9500,1990) === 832.78?(0x2633,417.67):"*"],noCleanupDates:!!({})});}if(F5L.future){P$0={appending:!!({}),appendToDate:F9T[0] && F9T[0].DT};}D2O.createDataSet(undefined,undefined,P$0);if(!Q8z){D2O.draw();}if(S0U.callback){S0U.callback(F5L);}N4c.loadDependents(F5L,o_B,m66.QuoteFeed.PAGINATION);}else {N4c.quoteFeed.announceError(F5L.originalState,y5H);F5L.chart.loadingMore=!"1";if(o_B){o_B(y5H.error);}}}else {return;}};}function n0k(A9x){return !A9x.endPoints.begin || H$V.length - Y63.scroll < S0U.bufferSize || H$V.length - Y63.scroll - s5e.tickFromDate(A9x.endPoints.begin,Y63) < S0U.bufferSize;}s0N=this.makeParams(Y63.symbol,Y63.symbolObject,Y63);if(s5e.currentlyImporting){if(o_B){o_B(null);}return;}S0U=s0N.behavior;H$V=Y63.dataSet;function d35(m5S){Y63.loadingMore=![];i4r.D0H();if(o_B){o_B(m5S);}}function V7z(h2n){return !h2n.endPoints.end || Y63.scroll - Y63.maxTicks + +"1" < S0U.bufferSize || s5e.tickFromDate(h2n.endPoints.end,Y63,null,!!"1") - H$V.length + Y63.scroll - Y63.maxTicks + 2 < S0U.bufferSize;}i4r.D0J(12);var H9y=i4r.q7n(1,4,1);o27=+"1000" * (S0U.forwardPaginationRetryInterval || H9y);t4T=!!0;Z_Q=!({});if(Y63.dataSet.length){for(var Q4A in Y63.series){G9j=Y63.series[Q4A];if(G9j.loading)continue;if(G9j.parameters.loadData === !"1")continue;b2b=!G9j.mostRecentForwardAttempt || G9j.mostRecentForwardAttempt.getTime() + o27 < Date.now();if(G9j.moreAvailable !== !!"" && n0k(G9j)){t4T=!![];}if(b2b && !G9j.upToDate && V7z(G9j)){Z_Q=!!({});}}}b2b=!Y63.mostRecentForwardAttempt || Y63.mostRecentForwardAttempt.getTime() + o27 < Date.now();j3d=(n0k(Y63) || J3w) && Y63.moreAvailable !== ![];c$q=(V7z(Y63) || J3w) && !Y63.upToDate && b2b;y4h=j3d || t4T;j$f=s5e.isHistoricalModeSet && !y4h && (c$q || Z_Q);g5m=s5e.layout.interval;C7y=s5e.layout.timeUnit;S4R=!1;A1b=S0U.findHeadOfData || Y63.masterData && Y63.masterData.length;if(!S0U.noLoadMore && A1b){if(j$f || !s5e.maxDataSetSize || Y63.dataSet.length < s5e.maxDataSetSize){if(y4h || j$f){Y63.initialScroll=Y63.scroll;Y63.loadingMore=!!({});s0N=this.makeParams(Y63.symbol,Y63.symbolObject,Y63);s0N.pagination=!![];s0N.future=j$f;if(Y63.masterData && Y63.masterData.length){if(j$f){s0N.startDate=Y63.endPoints.end;}else {s0N.endDate=Y63.endPoints.begin;}if(j$f && !s0N.startDate){g1h="D";g1h+="T";F18=s5e.getFirstLastDataRecord(Y63.masterData,g1h,!![]);if(F18){s0N.startDate=F18.DT;}}else if(y4h && !s0N.endDate){F18=s5e.getFirstLastDataRecord(Y63.masterData,"DT");if(F18){s0N.endDate=F18.DT;}}}else {s0N.endDate=new Date();}s0N.originalState=m66.shallowClone(s0N);s0N.nodraw=Q8z;if(!j3d && t4T || !c$q && Z_Q){this.loadingMore=!![];this.loadDependents(s0N,d35,m66.QuoteFeed.PAGINATION);if(o_B){o_B(null);}return;}if(s5e.fetchMaximumBars[s5e.layout.aggregationType]){s0N.fetchMaximumBars=!![];if(!s5e.maxMasterDataSize || S0U.maximumTicks < s5e.maxMasterDataSize){s0N.ticks=S0U.maximumTicks;}else {s0N.ticks=s5e.maxMasterDataSize;}}F0d=T9v(this,s0N);if(s5e.isEquationChart(s0N.symbol)){m66.fetchEquationChart(s0N,F0d);}else {if(j$f){s0N.appending=!!1;}y9C=e8e.getQuoteFeed(s0N);if(y9C){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.PAGINATION,y9C.engine,s0N,F0d);}}S4R=!![];}}}if(!S4R && o_B){o_B(null);}};m66.ChartEngine.Driver.prototype.extendHistoricalData=function({from:V5s},I3b = ()=>{}){var j_s,h7_;var {stx:o$h}=this;var {chart:c1_, layout:D7X}=o$h;var {masterData:i9Z, dataSet:a$m}=c1_;var {interval:l2T, timeUnit:r9z}=D7X;i4r.a9S();j_s=this.makeParams(c1_.symbol,c1_.symbolObject,c1_);h7_=this.getQuoteFeed(j_s);if(c1_.loadingMore || this.loadingNewChart || o$h.currentlyImporting || !i9Z.length || !h7_ || o$h.maxDataSetSize && a$m.length > o$h.maxDataSetSize){return I3b(null);}c1_.loadingMore=!!({});function T$y(J3S,J63){return function({quotes:c9W, moreAvailable:h$u, error:T1u}){if(J63.symbol !== c1_.symbol || l2T !== D7X.interval || r9z !== D7X.timeUnit){return;;}i4r.D0H();c1_.loadingMore=!!0;if(T1u){return I3b(T1u);}c9W=J3S.cleanup(o$h,null,c9W,m66.QuoteFeed.PAGINATION,J63);if(typeof h$u === "boolean"){c1_.moreAvailable=h$u;}else {c1_.moreAvailable=!!c9W.length;}c1_.endPoints.begin=c9W[0].DT;m66.addMemberToMasterdata({stx:o$h,chart:c1_,data:c9W,fields:["*"],noCleanupDates:!![]});o$h.createDataSet();o$h.draw();};}j_s.originalState=Object.assign({},j_s);j_s.startDate=V5s;j_s.endDate=i9Z[0].DT;m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.PAGINATION,h7_.engine,j_s,T$y(this,j_s));};m66.ChartEngine.Driver.prototype.barsToFetch=function(a$i){var e5t,C$a,B7S,T$B,c9n;e5t="mo";e5t+="nth";if(!m66.isValidNumber(this.tickMultiplier)){this.tickMultiplier=2;}C$a=this.stx.layout.interval;B7S=a$i.stx.layout.periodicity;if((C$a == e5t || C$a == "week") && !this.stx.dontRoll){T$B="w";T$B+="e";T$B+="e";T$B+="k";B7S*=C$a == T$B?7:30;}c9n=a$i.stx.chart.maxTicks * B7S;return c9n * this.tickMultiplier;};m66.ChartEngine.Driver.determineStartDate=function(T_4,N6X,i6Z){return this.determineStartOrEndDate(T_4,N6X,i6Z,!0);};m66.ChartEngine.Driver.determineStartOrEndDate=function(F0a,z0r,T77,s_B){i4r.D0H();var D1c;if(s_B || F0a.fetchMaximumBars){D1c=F0a.startDate || z0r.previous(T77);}else {D1c=F0a.future?z0r.next(T77):new Date();}return D1c;};m66.ChartEngine.Driver.prototype.makeParams=function(N_F,o_9,y07){var T2e,h4W,n0L,W3E,q_1,H3w,Y23,t2K,P$X,R4W,P7M,Z1h;T2e="m";T2e+="ont";T2e+="h";h4W=this.stx;n0L=h4W.layout.interval;W3E=this.barsToFetch({stx:h4W});if((n0L == T2e || n0L == "week") && !h4W.dontRoll){n0L="day";}q_1=this.getQuoteFeed({interval:n0L,symbol:N_F,symbolObject:o_9});H3w=q_1 && q_1.behavior;Y23=m66.shallowClone(H3w) || ({});Y23.behavior=H3w;t2K=!({});P$X=[];if(y07.market && y07.market.getSessionNames){P$X=y07.market.getSessionNames();}if(h4W.extendedHours){if(h4W.extendedHours.filter){t2K=!![];}else {i4r.D0J(1);R4W=i4r.S40(1,"1747222390");P7M=-276394982;Z1h=2;for(var v4g=+"1";i4r.U6$(v4g.toString(),v4g.toString().length,33318) !== R4W;v4g++){t2K=h4W.layout.extended;Z1h+=2;}if(i4r.Z2Z(Z1h.toString(),Z1h.toString().length,57174) !== P7M){t2K=h4W.layout.extended;}t2K=h4W.layout.extended;P$X=P$X.filter(function(x09){return x09.enabled || h4W.layout.marketSessions[x09.name];});}}else {P$X=P$X.filter(function(a8W){return a8W.enabled;});}for(var O$X=+"0";O$X < P$X.length;O$X++){P$X[O$X]=P$X[O$X].name;;}m66.extend(Y23,{stx:h4W,symbol:N_F,symbolObject:o_9,chart:y07,interval:n0L,extended:t2K,period:1,ticks:W3E,additionalSessions:P$X,quoteDriverID:this.id},!!({}));if(!Y23.symbolObject){Y23.symbolObject={symbol:N_F};}if(!isNaN(Y23.interval)){Y23.period=parseInt(Y23.interval,10);Y23.interval=h4W.layout.timeUnit;if(!Y23.interval){Y23.interval="minute";}}return Y23;};m66.ChartEngine.Driver.prototype.newChart=function(U7x,Q53){var i_D,d5X,L1V,U5P,c4J,J5R,E0l,R0a,s2N;i_D=this.stx;d5X=U7x.symbol;L1V=i_D.layout.interval;U5P=i_D.layout.timeUnit;c4J=U7x.chart;c4J.moreAvailable=null;c4J.upToDate=null;c4J.loadingMore=![];c4J.attribution=null;J5R=this.makeParams(d5X,U7x.symbolObject,c4J);m66.extend(J5R,U7x,!!({}));E0l=this.getQuoteFeed(J5R);R0a=J5R.behavior;if(i_D.fetchMaximumBars[i_D.layout.aggregationType] || U7x.fetchMaximumBars){if(!i_D.maxMasterDataSize || R0a.maximumTicks < i_D.maxMasterDataSize){J5R.ticks=R0a.maximumTicks;}else {J5R.ticks=i_D.maxMasterDataSize;}J5R.fetchMaximumBars=!!"1";}this.loadingNewChart=!!"1";this.updatingChart=![];function a7U(L4M,V2Q){if(R0a.prefetchAction){R0a.prefetchAction("newChart");}i4r.a9S();return function(Z48){var x5x,F96,e9U,B8W;x5x=V2Q.chart;F96=Z48.quotes;e9U=!({});if(d5X == x5x.symbol && L1V == i_D.layout.interval && U5P == i_D.layout.timeUnit){L4M.loadingNewChart=![];if(!Z48.error){F96=L4M.cleanup(i_D,null,F96,m66.QuoteFeed.INITIAL,V2Q);i_D.setMasterData(F96,x5x,{noCleanupDates:!!1});x5x.endPoints={};x5x.endPoints.begin=F96[0]?F96[0].DT:V2Q.startDate;x5x.endPoints.end=F96[0]?F96[F96.length - +"1"].DT:V2Q.endDate;if(!F96){x5x.moreAvailable=!!"";x5x.upToDate=!!({});}else {x5x.moreAvailable=Z48.moreAvailable === !"1"?!({}):!!1;x5x.upToDate=Z48.upToDate;}x5x.attribution=Z48.attribution;if(U7x.initializeChart){i_D.initializeChart();}i_D.createDataSet();e9U=!![];}else {E0l.engine.announceError(V2Q.originalState,Z48);}}else {if(Q53){Q53("orphaned");}return;}for(var u6a in x5x.series){x5x.series[u6a].endPoints={};x5x.series[u6a].moreAvailable=null;x5x.series[u6a].upToDate=null;}B8W=x5x.masterData;if(B8W && B8W.length){V2Q.startDate=B8W[0].DT;V2Q.endDate=B8W[B8W.length - 1].DT;}if(R0a.callback){R0a.callback(V2Q);}L4M.loadDependents(V2Q,function(){if(e9U && !V2Q.nodraw){L4M.stx.home();}if(Q53){Q53(Z48.error);}L4M.stx.dispatch("newChart",{stx:L4M.stx,symbol:L4M.stx.chart.symbol,symbolObject:L4M.stx.chart.symbolObject,moreAvailable:L4M.stx.chart.moreAvailable,upToDate:L4M.stx.chart.upToDate,quoteDriver:L4M});L4M.resetRefreshInterval(R0a.refreshInterval,R0a);},m66.QuoteFeed.INITIAL);};}J5R.originalState=m66.shallowClone(J5R);s2N=a7U(this,J5R);if(this.stx.isEquationChart(J5R.symbol)){m66.fetchEquationChart(J5R,s2N);}else if(E0l){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.INITIAL,E0l.engine,J5R,s2N);}};function h6Q(){}m66.QuoteFeed.INITIAL=1;m66.QuoteFeed.UPDATE=2;m66.QuoteFeed.PAGINATION=3;m66.QuoteFeed.SERIES=4;m66.ChartEngine.Driver.fetchData=function(H8j,e4M,M0n,Y9m){i4r.D0H();var f8y;if(!M0n.symbol){return Y9m({quotes:[]});}if(e4M.v2QuoteFeed){f8y="f";f8y+="unction";if(typeof e4M.subscribe !== f8y){m66.ChartEngine.Driver.fetchDataInContext(H8j,e4M,M0n,Y9m);}else {m66.ChartEngine.Driver.fetchDataInContext(H8j,e4M,M0n,(function(R6C){if(!R6C.error){this.checkSubscriptions(M0n.stx);}Y9m(R6C);}).bind(e4M));}}else {M0n.stx.convertToDataZone(M0n.startDate);M0n.stx.convertToDataZone(M0n.endDate);e4M.fetch(M0n,Y9m);}};m66.ChartEngine.Driver.fetchDataInContext=function(q5R,y_H,R9g,c4h){var r6V,u3D,N7b,d$Y,A2L,W7c,n4T,L50,Y4t,h60;r6V="functi";r6V+="on";W7c=R9g.stx;if(!W7c.chart.market.newIterator){console.error("quoteFeed feature requires first activating market feature.");return;}i4r.a9S();if(q5R === m66.QuoteFeed.SERIES){R9g.series=!0;q5R=m66.QuoteFeed.INITIAL;if(R9g.endDate && !R9g.startDate || R9g.future){q5R=m66.QuoteFeed.PAGINATION;}else if(R9g.startDate && !R9g.endDate){q5R=m66.QuoteFeed.UPDATE;}}n4T=Math.min(R9g.ticks,R9g.maximumTicks);if(y_H.maxTicks){n4T=Math.min(n4T,y_H.maxTicks);}L50=R9g.symbolObject.masterSymbol || R9g.symbol;switch(q5R){case m66.QuoteFeed.UPDATE:if(W7c.isHistoricalModeSet){W7c.quoteDriver.updatingChart=!!0;return;}if(R9g.startDate){Y4t=R9g.startDate;}else {Y4t=new Date();i4r.D0J(40);Y4t.setHours(i4r.q7n(96,"0"),0,0,0);}if(typeof y_H.fetchUpdateData === "function"){y_H.fetchUpdateData(L50,W7c.convertToDataZone(Y4t),R9g,c4h);}break;case m66.QuoteFeed.INITIAL:A2L=R9g.endDate || new Date();u3D={begin:A2L,interval:R9g.interval,periodicity:R9g.interval == "tick"?W7c.chart.xAxis.futureTicksInterval:R9g.period,outZone:W7c.dataZone};N7b=W7c.chart.market.newIterator(u3D);d$Y=m66.ChartEngine.Driver.determineStartDate(R9g,N7b,n4T);if(R9g.endDate){A2L=R9g.endDate;}if(typeof y_H.fetchInitialData === "function"){y_H.fetchInitialData(L50,d$Y,W7c.convertToDataZone(A2L),R9g,c4h);}break;case m66.QuoteFeed.PAGINATION:u3D={begin:R9g.endDate || R9g.startDate,interval:R9g.interval,periodicity:R9g.interval == "tick"?W7c.chart.xAxis.futureTicksInterval:R9g.period,outZone:W7c.dataZone};N7b=W7c.chart.market.newIterator(u3D);h60=m66.ChartEngine.Driver.determineStartOrEndDate(R9g,N7b,n4T,!R9g.future);d$Y=R9g.startDate || h60;A2L=R9g.endDate || h60;if(!R9g.startDate){R9g.stx.convertToDataZone(A2L);}else {R9g.stx.convertToDataZone(d$Y);}if(typeof y_H.fetchPaginationData === r6V){if(W7c.maxMasterDataSize && W7c.maxMasterDataSize <= W7c.masterData.length){return;}y_H.fetchPaginationData(L50,d$Y,A2L,R9g,function(F_D){if(A2L >= Date.now()){W7c.isHistoricalModeSet=![];}if(c4h){c4h(F_D);}});}break;default:console.error("Illegal fetchData constant");}};};W=Y4n=>{var T3x;T3x=typeof _CIQ !== "undefined"?_CIQ:Y4n.CIQ;T3x.ChartEngine.prototype.addSeries=function(z_G,R7_,h$S){var w58=A2IFV;var d4B,T40,U1C,p18,o2M,L7g,s7y,a8H,O6J,E0H,N4M,X2L,a0R,x_W,Q8n,Q5$,V3n,U_c,b0E;d4B="add";d4B+="S";d4B+="eries";T40=this.runPrepend("addSeries",arguments);if(T40){return T40;}U1C=z_G?z_G:null;p18=z_G;if(!z_G){z_G=T3x.uniqueID();}if(R7_ && R7_.panel === !![]){R7_.panel=z_G;}o2M={parameters:R7_?T3x.clone(R7_):{},yValueCache:[],display:U1C,id:z_G,loading:R7_?R7_.loadData !== !({}):!![]};o2M.parameters.yAxis=R7_ && R7_.yAxis;R7_=o2M.parameters;if(R7_.symbol){p18=R7_.symbol;}if(R7_.isComparison){R7_.shareYAxis=!!1;}if(R7_.yAxis && !(R7_.yAxis instanceof T3x.ChartEngine.YAxis)){R7_.yAxis=new T3x.ChartEngine.YAxis(R7_.yAxis);;}T3x.ensureDefaults(R7_,{chartName:this.chart.name,symbolObject:{symbol:p18},panel:this.chart.panel.name,fillGaps:![],action:"add-series"});if(("display" in R7_)){o2M.display=R7_.display;}L7g=this.charts[R7_.chartName];s7y=R7_.symbolObject;w58.a9S();p18=R7_.symbol=s7y.symbol;if(!o2M.display){o2M.display=p18 || R7_.field;}o2M.endPoints={};function k3E(D3w){w58.a9S();return function(c5R){var o_d,R_i,a5q;o_d="sy";o_d+="mb";o_d+="olChange";w58.D0H();if(!c5R.error){R_i=c5R.quotes;a5q=R7_.fillGaps;if(!X2L.cleanupGaps){a5q=!1;}R_i=X2L.doCleanupGaps(R_i,X2L.chart,{cleanupGaps:a5q});X2L.updateChartData(R_i,X2L.chart,{secondarySeries:p18,noCreateDataSet:!!({}),noCleanupDates:!"",allowReplaceOHL:!!({})});o2M.loading=!({});o2M.moreAvailable=c5R.moreAvailable;o2M.upToDate=c5R.upToDate;u6T(X2L,o2M);}if(R7_.action !== null && !O6J.length){X2L.dispatch(a0R?"symbolImport":o_d,{stx:X2L,symbol:D3w.symbol,symbolObject:D3w.symbolObject,action:R7_.action,id:o2M.id,parameters:R7_});}if(h$S){h$S.call(X2L,c5R.error,o2M);}};}if(!R7_.gapDisplayStyle && R7_.gapDisplayStyle !== !!""){R7_.gapDisplayStyle=R7_.gaps;}if(R7_.isComparison){a8H="tra";a8H+="n";a8H+="spare";a8H+="nt";if(R7_.gapDisplayStyle === undefined){R7_.gapDisplayStyle=a8H;}}O6J=this.getSeries({symbolObject:s7y,chart:L7g,includeMaster:!!({})});E0H=R7_.panel;if(!this.panels[E0H]){N4M=R7_.yAxis || new T3x.ChartEngine.YAxis();N4M.name=z_G;this.createPanel(z_G,E0H,null,null,N4M);if(!this.preferences.dragging || !this.preferences.dragging.series){R7_.highlightable=!!0;}}else {if(!R7_.yAxis && !R7_.shareYAxis){R7_.yAxis=new T3x.ChartEngine.YAxis({name:z_G,position:"none"});}}L7g.series[z_G]=o2M;X2L=this;a0R=this.currentlyImporting;if(R7_.isComparison && L7g.forcePercentComparison && R7_.panel == L7g.panel.name && (!R7_.yAxis || R7_.yAxis == L7g.yAxis)){this.setChartScale("percent");}x_W=L7g.masterData;if(!x_W){x_W=L7g.masterData=this.masterData=[];}Q8n=x_W.length;if(R7_.data && !R7_.data.useDefaultQuoteFeed){Q5$={symbol:p18,symbolObject:s7y,action:R7_.action};k3E(Q5$)({quotes:R7_.data});}else if(O6J.length){o2M.endPoints=O6J[0].endPoints;o2M.loading=O6J[0].loading;u6T(this,o2M);if(h$S){setTimeout(function(){w58.a9S();h$S.call(X2L,null,o2M);},"0" << 0);}}else if(this.quoteDriver && R7_.loadData !== !"1"){V3n=this.quoteDriver;U_c=V3n.makeParams(p18,s7y,L7g);if(Q8n){U_c.startDate=x_W[0].DT;U_c.endDate=this.isHistoricalMode()?x_W[x_W.length - 1].DT:new Date();}if(U_c.stx.isEquationChart(U_c.symbol)){T3x.fetchEquationChart(U_c,k3E(U_c));}else {b0E=V3n.getQuoteFeed(U_c);if(b0E){T3x.ChartEngine.Driver.fetchData(4,b0E.engine,U_c,k3E(U_c));}}}else {u6T(this,o2M);if(h$S){h$S.call(this,null,o2M);}}function u6T(x0E,H6g){var z_5,K9b,w2t,g8G;z_5=R7_.renderer || "Lines";K9b=R7_.name || z_G;if(R7_.yAxis && !(R7_.yAxis instanceof T3x.ChartEngine.YAxis) && !a0R){R7_.yAxis.name=K9b;}if(!R7_.renderer && !R7_.name && !R7_.color && !R7_.chartType){return;}w58.a9S();w2t=x0E.getSeriesRenderer(K9b);if(!w2t){g8G={name:K9b,overChart:R7_.overChart !== ![],useChartLegend:!!({})};if(R7_.chartType){w2t=T3x.Renderer.produce(R7_.chartType,T3x.extend({highlightable:R7_.highlightable,dependentOf:R7_.dependentOf,panel:R7_.panel,yAxis:R7_.yAxis,baseline:R7_.baseline},g8G));}else {T3x.ensureDefaults(R7_,g8G);w2t=new T3x.Renderer[z_5]({params:R7_});}if(!w2t){return;}x0E.setSeriesRenderer(w2t);}w2t.attachSeries(z_G,R7_);if(R7_.loadData !== !"1"){w2t.ready();}x0E.layout.symbols=x0E.getSymbols({"include-parameters":!!"1","exclude-studies":!![]});x0E.changeOccurred("layout");}this.runAppend(d4B,arguments);return o2M;};T3x.ChartEngine.prototype.getSeries=function(M63){var L$8,R6V,G72,G6z,b91;L$8=M63.chart?M63.chart:this.chart;R6V=L$8.series;G72=M63.symbolObject;if(!G72){G72={symbol:M63.symbol};}G6z=[];for(var C9Q in R6V){b91=R6V[C9Q];if(T3x.symbolEqual(G72,b91.parameters.symbolObject)){G6z.push(b91);}}if(M63.includeMaster){if(T3x.symbolEqual(G72,L$8.symbolObject)){G6z.push({});}}A2IFV.a9S();return G6z;};T3x.ChartEngine.prototype.modifySeries=function(N3E,L_r,X_F){var N20,q_O,S_A,x43,k_E,z3z,x5j,s6C,Y_9,X_z,O80,Y1F,e$J,T74,x36;N20="modify";N20+="Series";if(this.runPrepend(N20,arguments)){return;}if(!L_r){return;}if(typeof N3E === "string"){x43=L_r.chartName?this.charts[L_r.chartName]:this.chart;S_A=N3E;q_O=x43.series[S_A];}else {q_O=N3E;S_A=q_O.id;x43=this.charts[q_O.parameters.chartName];}if(!q_O){return;}T3x.extend(q_O.parameters,L_r,!0);this.getRendererFromSeries(S_A).modifyRenderer(L_r);k_E=q_O.parameters;for(var R9i in x43.seriesRenderers){x5j=x43.seriesRenderers[R9i];s6C=x5j.params;Y_9=x5j.seriesParams;for(var D5P=0;D5P < Y_9.length;++D5P){X_z=Y_9[D5P];O80=this.panels[X_z.panel];Y1F=O80 && O80.yAxis.name;if(X_z.id === q_O.id){if(k_E.panel === !0){k_E.panel=k_E.dependentOf || k_E.name;}s6C.panel=k_E.panel;if(L_r.yAxis){if(!(L_r.yAxis instanceof T3x.ChartEngine.YAxis)){L_r.yAxis=new T3x.ChartEngine.YAxis(L_r.yAxis);;}s6C.yAxis=L_r.yAxis;}if(k_E.panel != X_z.panel && s6C.name == Y1F){this.electNewPanelOwner(X_z.panel);;}else {e$J=this.getYAxisByName(k_E.panel,s6C.name);if(e$J && k_E.yAxis && e$J.name !== k_E.yAxis.name){e$J.name=this.electNewYAxisOwner(e$J);}}if(!k_E.field){k_E.field=null;}x5j.attachSeries(S_A,T3x.ensureDefaults(k_E,X_z));if(!k_E.field){k_E.field=k_E.subField;}delete k_E.subField;if(k_E.isComparison && x43.forcePercentComparison && k_E.panel == x43.panel.name && (!q_O.parameters.yAxis || k_E.yAxis.name == x43.yAxis.name)){this.setChartScale("percent");}z3z=x5j;break;}}}this.changeOccurred("layout");T3x.getFn("Drawing.updateSource")(this,q_O.parameters.symbol || S_A,null,q_O.parameters.panel);this.runAppend("modifySeries",arguments);if(X_F !== !""){T74=z3z.getDependents(this);for(var l8q=0;l8q < T74.length;l8q++){this.modifySeries(T74[l8q].params.name,{panel:z3z.params.panel,yAxis:q_O.parameters.yAxis},!!1);}x36=x43.seriesRenderers[z3z.params.dependentOf];if(x36){if(x36.params.yAxis != q_O.parameters.yAxis || x36.params.panel != z3z.params.panel){this.modifySeries(z3z.params.dependentOf,{panel:z3z.params.panel,yAxis:q_O.parameters.yAxis},!!({}));}}}this.draw();return q_O;};T3x.ChartEngine.prototype.deleteSeries=function(H2d,l$n,H2Z){var A2p,l1G,s1b,X85,V2s,q_S,C7N,m7B;A2p="ob";A2p+="j";A2p+="ect";if(this.runPrepend("deleteSeries",arguments)){return;}H2Z=H2Z?H2Z:{};l1G=H2Z.action?H2Z.action:"remove-series";if(typeof H2d === A2p){s1b=H2d.id;l$n=l$n || this.charts[H2d.parameters.chartName];}else {s1b=H2d;l$n=l$n || this.chart;}X85=l$n.series[s1b];if(!X85){return;}V2s=X85.parameters.loadData;q_S=X85.parameters.symbolObject;delete l$n.series[s1b];C7N=this.getSeries({symbolObject:q_S,includeMaster:!0});if(V2s === !!""){C7N.push(s1b);}if(!C7N.length){this.cleanMasterData(q_S,l$n);}m7B=this.panels[X85.parameters.panel];if(m7B){this.checkForEmptyPanel(m7B);}this.createDataSet();if(!C7N.length){this.dispatch(this.currentlyImporting?"symbolImport":"symbolChange",{stx:this,symbol:q_S.symbol,symbolObject:q_S,id:s1b,action:l1G});}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}this.runAppend("deleteSeries",arguments);};T3x.ChartEngine.prototype.removeSeries=function(Y2C,O7U){var t7o,r0G,P$U,M06,T4t,b_R,U_u,j4a;t7o="re";t7o+="mov";t7o+="eSerie";t7o+="s";if(this.runPrepend(t7o,arguments)){return;}P$U=![];if(typeof Y2C === "object"){r0G=Y2C.id;O7U=O7U || this.charts[Y2C.parameters.chartName];}else {r0G=Y2C;O7U=O7U || this.chart;}for(var U1a in O7U.seriesRenderers){M06=O7U.seriesRenderers[U1a];T4t=this.panels[M06.params.panel];b_R=T4t && T4t.yAxis.name;for(var g02=M06.seriesParams.length - 1;g02 >= 0;g02--){U_u=M06.seriesParams[g02];if(U_u.id === r0G){M06.removeSeries(r0G);if(M06.seriesParams.length < 1){this.removeSeriesRenderer(M06);if(M06.params.name == b_R){this.electNewPanelOwner(M06.params.panel);}else {if(!this.checkForEmptyPanel(M06.params.panel)){j4a=this.getYAxisByName(T4t,M06.params.name);if(j4a){j4a.name=j4a.studies[0] || j4a.renderers[1];}}}}P$U=!![];}}}if(!P$U){this.deleteSeries(r0G,O7U);}this.resetDynamicYAxis();this.draw();this.resizeChart();this.runAppend("removeSeries",arguments);};T3x.Comparison=T3x.Comparison || (function(){});T3x.Comparison.initialPrice=100;T3x.Comparison.getInitialPrice=function(k45){var g3h,g4T,z5L;if(k45.initialComparisonPrice){return k45.initialComparisonPrice;}k45.initialComparisonPrice=+"100";g3h=T3x.Comparison.initialPrice;if(typeof g3h == "number"){k45.initialComparisonPrice=g3h;}if(typeof g3h == "string"){if(k45.series[g3h] || g3h === ""){g4T="Close";if(k45.defaultPlotField){if(!k45.highLowBars){g4T=k45.defaultPlotField;}}for(var R3c=k45.dataSet.length - k45.scroll - 1;R3c < k45.dataSet.length;R3c++){z5L=k45.dataSet[R3c];if(z5L){if(z5L[g3h] && z5L[g3h][g4T]){k45.initialComparisonPrice=z5L[g3h][g4T];break;}else if(g3h === "" && z5L[g4T]){k45.initialComparisonPrice=z5L[g4T];break;}}}}}return k45.initialComparisonPrice;};T3x.Comparison.priceToPercent=function(p7r,d8c,E1w){var n_Q=A2IFV;n_Q.D0H();var Y16;Y16=T3x.Comparison.baseline || E1w;n_Q.H6P(98);var t29=n_Q.S40(3,30000,6,3,3);n_Q.H6P(36);var J5X=n_Q.S40(9519,500,19);return Math.round((E1w - Y16) / Y16 * ("100" - 0) * t29) / J5X;};T3x.Comparison.percentToPrice=function(k8f,O2N,U8d){var w7d;A2IFV.D0H();w7d=T3x.Comparison.baseline || "1" | 0;A2IFV.H6P(99);return A2IFV.S40(w7d,1,U8d,100);};T3x.Comparison.priceToRelative=function(a4o,o_E,C9S){var v_s,y5w;v_s=T3x.Comparison.baseline || C9S;y5w=T3x.Comparison.getInitialPrice(o_E);A2IFV.H6P(100);return A2IFV.q7n(v_s,y5w,C9S);};T3x.Comparison.relativeToPrice=function(J59,v21,Q8V){var n8O,U8U;A2IFV.D0H();n8O=T3x.Comparison.baseline || 1;U8U=T3x.Comparison.getInitialPrice(v21);A2IFV.D0J(100);return A2IFV.S40(U8U,n8O,Q8V);};T3x.Comparison.createComparisonSegmentInner=function(G1a,r25){var J8u=A2IFV;J8u.a9S();var a9y,r8a,e2o,l_b,C7o,u9t,R8Y,t4y,T_o,d6b,W_f,L92,G08,y$_,T_V,I0C,V8T,I6g,J9h,B9X,T2N,e98,x$c,k8a,M_U,F2a;a9y="i";a9y+="qPrevClose";r8a="C";r8a+="los";r8a+="e";e2o=[];for(l_b in r25.series){R8Y=r25.series[l_b].parameters;if(R8Y.isComparison){e2o.push(R8Y.symbol);}}t4y=[r8a,"Open","High","Low",a9y];T_o=G1a.chart.highLowBars;if(r25.defaultPlotField && !T_o){t4y.unshift(r25.defaultPlotField);}d6b=t4y[0];W_f=G1a.layout.studies;for(var D6A in W_f){L92=W_f[D6A];C7o=G1a.panels[L92.panel];u9t=L92.getYAxis(G1a);if(!C7o || C7o.yAxis != u9t)continue;for(l_b in L92.outputMap){t4y.push(l_b);}for(var f9r=+"0";f9r <= 2;f9r++){t4y.push(L92.name + "_hist" + (f9r?f9r:""));}if(L92.referenceOutput){t4y.push(L92.referenceOutput + (("970.95" - 0,"753.83" * 1) !== 8870?" ":9198 > 8553?35.02:(0x9e2,0x15f3)) + L92.name);}}for(var E0M in G1a.plugins){G08=G1a.plugins[E0M];if(!G08.transformOutputs)continue;for(l_b in G08.transformOutputs){t4y.push(l_b);}}r25.initialComparisonPrice=null;r25.dataSegment=[];y$_=null;J8u.D0J(101);var G8b=J8u.S40(12,11,17,88,927);T_V=r25.dataSet.length - r25.scroll - ("1" >> G8b);if(G1a.startComparisonsAtFirstVisibleBar){T_V+=1;}I0C=r25.maxTicks + +"3";for(var N2V=0;N2V <= I0C;N2V++){if(N2V == I0C){N2V=-1;}J8u.D0J(0);V8T=J8u.S40(T_V,N2V);if(V8T < r25.dataSet.length && V8T >= 0){I6g=r25.dataSet[V8T];J9h=I6g[d6b];if(!y$_){if(J9h === 0 || J9h === null){if(N2V < 0)break;else continue;;}y$_=T3x.clone(I6g);}if(!I6g.transform){I6g.transform={cache:{},DT:I6g.DT,Date:I6g.Date};}if(!T3x.Comparison.baseline && J9h){y$_=T3x.clone(I6g);}T3x.Comparison.baseline=y$_[d6b];for(B9X=0;B9X < t4y.length;B9X++){l_b=t4y[B9X];if(I6g[l_b] || I6g[l_b] === 0){I6g.transform[l_b]=r25.transformFunc(G1a,r25,I6g[l_b]);}}for(B9X=0;B9X < e2o.length;B9X++){l_b=e2o[B9X];T2N=r25.series[l_b];if(N2V == -("1" * 1) && T2N && T2N.parameters.isComparison){delete I6g.transform[l_b];continue;}e98=I6g[l_b];for(var w9M=0;e98 && w9M < t4y.length;w9M++){x$c=e98[t4y[w9M]];if(x$c || x$c === +"0"){k8a=y$_[l_b] && y$_[l_b][t4y[0]];if(!k8a && k8a !== 0){if(!y$_[l_b]){y$_[l_b]={};}y$_[l_b][t4y[w9M]]=k8a=x$c * T3x.Comparison.baseline / I6g[d6b];}if(k8a !== 0){M_U=T3x.Comparison.baseline || 1;J8u.D0J(102);F2a=J8u.S40(k8a,x$c,M_U);if(!I6g.transform[l_b]){I6g.transform[l_b]={};}I6g.transform[l_b][t4y[w9M]]=r25.transformFunc(G1a,r25,F2a);}}}}r25.dataSegment.push(I6g);}else if(V8T < 0){r25.dataSegment.push(null);}if(N2V < 0)break;;}};T3x.Comparison.priceFormat=function(t1v,D_K,i_z){var l_J=A2IFV;var U2j,w7D;if(i_z === null || typeof i_z == "undefined" || isNaN(i_z)){return "";}U2j=D_K.yAxis.priceTick;w7D=t1v.internationalizer;if(w7D){if(U2j >= 5){l_J.D0J(14);i_z=w7D.percent.format(l_J.S40(100,i_z));}else if(U2j >= 0.5){l_J.H6P(103);i_z=w7D.percent1.format(l_J.S40(i_z,0,"100"));}else if(U2j >= 0.05){l_J.H6P(14);i_z=w7D.percent2.format(l_J.S40(100,i_z));}else if(U2j >= 0.005){l_J.D0J(14);i_z=w7D.percent3.format(l_J.S40(100,i_z));}else {l_J.D0J(8);i_z=w7D.percent4.format(l_J.q7n(i_z,"100"));}}else {if(U2j >= "5" * 1){l_J.H6P(52);var N0p=l_J.S40(860,84,11);l_J.H6P(7);var N$7=l_J.S40(15831,21108);l_J.H6P(7);var I7A=l_J.S40(27540,32130);l_J.D0J(104);var p3S=l_J.q7n(4,9623,20,756);l_J.H6P(6);var V4o=l_J.q7n(1201,100,8,4,44);i_z=i_z.toFixed(0) + (("3860" >> N0p,N$7) > I7A?"%":478.36 !== (+"8740",p3S)?(!"",V4o):("i",257.08));}else if(U2j >= "0.5" - 0){l_J.D0J(105);var Z$J=l_J.q7n(30,20,15,6,1);l_J.D0J(0);var J_i=l_J.S40(75,1356);l_J.D0J(12);var a5a=l_J.q7n(2290,20,1);l_J.D0J(106);var f5A=l_J.q7n(3,3112,2079,5,4);l_J.H6P(107);var b4r=l_J.q7n(6,17,15003,1,937);l_J.D0J(98);var s62=l_J.q7n(8,14560,14,11,2);l_J.H6P(15);var z6C=l_J.S40(19,7596,5083);l_J.D0J(108);var O03=l_J.S40(3920,15680,16,276);i_z=i_z.toFixed(Z$J) + ((J_i,a5a) != f5A?b4r > s62?(z6C,!!({})):"%":O03);}else if(U2j >= 0.05){l_J.D0J(0);var x2n=l_J.S40(0,2);l_J.D0J(109);var U_x=l_J.q7n(18,1241,6,1,1);l_J.D0J(7);var H4b=l_J.S40(5,8225);l_J.D0J(7);var o1u=l_J.S40(8,3838);l_J.H6P(36);var S6v=l_J.S40(23,7357,4);l_J.D0J(0);var t5N=l_J.S40(0,1);l_J.D0J(36);var c1U=l_J.S40(8727,512,19);l_J.D0J(110);var O1$=l_J.q7n(9,9860,18,18,3184761);l_J.H6P(111);var R44=l_J.q7n(15,1,1,9,6);l_J.D0J(111);var q_R=l_J.S40(9337,932,9320,5,2);l_J.H6P(36);var s1f=l_J.q7n(11,9811,9);l_J.D0J(33);var F6S=l_J.q7n(26,5969,10,17);i_z=i_z.toFixed(x2n) + (+"8407" > (U_x,H4b)?"%":o1u == (S6v,"2925" * t5N)?(c1U,O1$):(+"86.97","770.58" * R44) >= (q_R,s1f)?!!({}):("h",F6S));}else if(U2j >= +"0.005"){l_J.H6P(52);var I58=l_J.q7n(57,12,5);i_z=i_z.toFixed(I58) + (+"3433" <= (+"3942",905.78)?("0x169b" ^ 0,843.52):"%");}else {l_J.D0J(112);var t2w=l_J.q7n(16,2,8,15,13);i_z=i_z.toFixed(t2w) + "%";}}if(parseFloat(i_z) === 0 && i_z.charAt(0) == "-"){l_J.H6P(40);i_z=i_z.substring(l_J.q7n(64,"1"));}l_J.a9S();return i_z;};T3x.ChartEngine.prototype.setComparison=function(z4V,t1I,q6C){var d3a=A2IFV;var k6Y,L_l,V27,c8m,N9w,I8Y,B_Y,m6T;k6Y="percen";k6Y+="t";L_l="str";L_l+="ing";if(!t1I){t1I=this.chart;}if(typeof t1I == L_l){t1I=this.charts[t1I];}if(q6C || q6C === ""){T3x.Comparison.initialPrice=q6C;}if(z4V === !0){if(t1I.isComparison){return;}z4V="percent";}this.resetDynamicYAxis();V27=t1I.panel.yAxis;c8m=V27.priceFormatter == T3x.Comparison.priceFormat;switch(z4V){case "relative":this.setTransform(t1I,T3x.Comparison.priceToRelative,T3x.Comparison.relativeToPrice);if(c8m){d3a.D0J(40);N9w=d3a.S40(32,"1079035736");I8Y=-840809156;B_Y=2;for(var e1Z=1;d3a.U6$(e1Z.toString(),e1Z.toString().length,4151) !== N9w;e1Z++){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:null;V27.originalPriceFormatter=null;B_Y+=2;}if(d3a.U6$(B_Y.toString(),B_Y.toString().length,71797) !== I8Y){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:+"1";V27.originalPriceFormatter=1;}}V27.whichSet="dataSegment";t1I.isComparison=!"";break;case k6Y:m6T="dataSegme";m6T+="nt";this.setTransform(t1I,T3x.Comparison.priceToPercent,T3x.Comparison.percentToPrice);if(!c8m){V27.originalPriceFormatter={func:V27.priceFormatter};V27.priceFormatter=T3x.Comparison.priceFormat;}V27.whichSet=m6T;t1I.isComparison=!![];break;default:this.unsetTransform(t1I);if(c8m){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:null;V27.originalPriceFormatter=null;}V27.whichSet="dataSet";t1I.isComparison=!1;break;}};T3x.ChartEngine.prototype.setChartScale=function(Q3S){var Z9s,b4Y,o3c;Z9s="li";Z9s+="n";Z9s+="ea";Z9s+="r";b4Y=this.chart;o3c={percent:!!"1",relative:!![]};if(!Q3S){Q3S=Z9s;}if(o3c[Q3S]){this.setComparison(Q3S,b4Y,T3x.Comparison.initialPrice);}else if(o3c[this.layout.chartScale]){this.setComparison(!"1",b4Y);}this.layout.chartScale=Q3S;if(b4Y.canvas){this.draw();}this.changeOccurred("layout");};};U=U$7=>{var z$W=A2IFV;var a$R,b22;function L8C(){var t12,C_R,X4z,c64,J$F,D68,q8$;t12="scri";t12+="pt";C_R=-708624285;X4z=-1302474083;c64=2;for(var I4W=1;z$W.Z2Z(I4W.toString(),I4W.toString().length,1096) !== C_R;I4W++){if(a$R.Share.html2canvasLocation){return a$R.Share.html2canvasLocation;}c64+=2;}if(z$W.U6$(c64.toString(),c64.toString().length,61088) !== X4z){if(a$R.Share.html2canvasLocation){return a$R.Share.html2canvasLocation;}}z$W.a9S();J$F=document.getElementsByTagName(t12);for(var v2_=0;v2_ < J$F.length;v2_++){D68="s";D68+="h";D68+="are.js";q8$=J$F[v2_];if(q8$.src && q8$.src.indexOf(D68) > -+"1"){return q8$.src.replace(/standard\/share\.js/,"") + "thirdparty/";}}return "js/thirdparty/";}function P1G(D$i,S$t,W9C){var r8W,W36,J8A,s3p,s84,T2W,i9O,a06,j03;if(!S$t){S$t={};}r8W=[];W36="ciq-no-share";J8A=document.querySelector("body");if(S$t.hide && S$t.hide instanceof Array){s3p=S$t.hide.join(", ");s84=document.querySelectorAll(s3p);for(var Z15=0;Z15 < s84.length;Z15++){s84[Z15].classList.add(W36);}}J8A.classList.add("sharing");T2W=D$i.chart.container.getElementsByTagName("svg");i9O=[];a06=0;for(;a06 < T2W.length;a06++){j03=T2W[a06];i9O.push(j03.innerHTML);s0A(j03);}b22(D$i.chart.container,{allowTaint:!({}),logging:![],width:S$t.width || null,height:S$t.height || null,backgroundColor:S$t.background || null,useCORS:!0}).then(function(y9q){if(W9C){W9C(null,S$t.data?y9q.toDataURL("image/png"):y9q);}for(a06=0;a06 < T2W.length;a06++){T2W[a06].innerHTML=i9O[a06];}J8A.classList.remove("sharing");}).catch(function(i4W){var W5O;W5O="sh";W5O+="ari";W5O+="ng";if(W9C){W9C(i4W);}for(a06=+"0";a06 < T2W.length;a06++){T2W[a06].innerHTML=i9O[a06];}J8A.classList.remove(W5O);});}z$W.a9S();function s0A(u_l){var E64,u_O,R$k;E64="alignment";E64+="-baseline";if(!u_l.style){return;}u_O=getComputedStyle(u_l);R$k=[E64,"dominant-baseline","fill","fill-opacity","font-family","font-size","font-variant","font-weight","text-align","text-anchor"];R$k.forEach(function(c2m){z$W.a9S();if(!u_l.style[c2m] && u_O[c2m]){u_l.style[c2m]=u_O[c2m];}});for(var o8B in u_l.children){s0A(u_l.children[o8B]);}}function x85(u1z){z$W.a9S();if(typeof html2canvas === "undefined"){if(typeof requirejs !== "undefined"){try{return requirejs(["html2canvas.min.js"],function(j0M){b22=j0M;z$W.D0H();return u1z();});}catch(i_3){console.warn("Require loading has failed, attempting to load html2canvas manually.");}}a$R.loadScript(L8C() + "html2canvas.min.js",function(){z$W.a9S();b22=html2canvas;return u1z();});}else {b22=html2canvas;return u1z();}}a$R=typeof _CIQ !== "undefined"?_CIQ:U$7.CIQ;a$R.Share=a$R.Share || (function(){});a$R.Share.FullChart2PNG=function(T0V,b6D,B$b){var u4I;z$W.D0H();u4I="u";u4I+="nd";u4I+="efined";if(!T0V || !T0V.chart){return;}if(typeof html2canvas === u4I){return x85(function(){return P1G(T0V,b6D,B$b);});}b22=html2canvas;P1G(T0V,b6D,B$b);};a$R.Share.createImage=function(X5f,g84,d8E){var k1C,H47,A88,P4s,P83,N8N,B0e,D0Q,A1J;k1C="im";k1C+="g";H47=[].slice.call(arguments);d8E=H47.pop();if(g84 === null || typeof g84 != "object"){g84={widthPX:H47[1],heightPX:H47[2],imageType:H47[3]};}A88=g84.widthPX;P4s=g84.heightPX;P83=g84.imageType;N8N=X5f.chart.canvas.height;B0e=X5f.chart.canvas.width;if(X5f.chart.canvas.style.height){N8N=a$R.stripPX(X5f.chart.canvas.style.height);B0e=a$R.stripPX(X5f.chart.canvas.style.width);}if(A88 && P4s){N8N=P4s;B0e=A88;}else if(P4s){B0e=X5f.chart.canvas.width * (N8N / X5f.chart.canvas.height);}else if(A88){B0e=A88;N8N=X5f.chart.canvas.height * (A88 / X5f.chart.canvas.width);}D0Q=P83?"image/" + P83:"image/png";A1J=document.createElement(k1C);A1J.onload=function(){a$R.Share.FullChart2PNG(X5f,{image:this,width:B0e,height:N8N,hide:g84.hide},function(w2Z,t0y){z$W.D0H();var h$V;if(w2Z){h$V="Error producin";h$V+="g canvas snap";h$V+="shot: ";z$W.D0J(0);console.warn(z$W.q7n(h$V,w2Z));}else {try{d8E(t0y.toDataURL(D0Q));;}catch(r6b){console.warn("Safari devices do not handle CORS enabled images. Using the charts' canvas as a fallback.");d8E(A1J.src);}}});};A1J.src=X5f.chart.canvas.toDataURL(D0Q);};a$R.Share.uploadImage=function(W$X,O4Q,p9c,e0E){var H5$;if(!p9c){p9c={};}z$W.D0H();p9c.image=W$X;H5$=a$R.postAjax(O4Q,JSON.stringify(p9c),function(u0Z,U6f){if(u0Z != 200){e0E(u0Z,null);return;}e0E(null,U6f);});if(!H5$){e0E(0,null);}};a$R.Share.shareChart=function(x6G,Z_k,A$0){a$R.Share.createImage(x6G,{},function(S7F){var d63,B4I,P_J,Q9E,S08,x5V;z$W.a9S();d63=a$R.uniqueID();B4I="https://share.chartiq.com";z$W.D0J(37);P_J=z$W.q7n(d63,B4I,"/upload/");if(Z_k){if(Z_k.host){B4I=Z_k.host;}if(Z_k.path){P_J=B4I + Z_k.path + (("5133" << 0,520.23) != +"537.56"?"/":+"0x96c") + d63;}}Q9E=x6G.getStartDateOffset();S08={layout:x6G.exportLayout(),drawings:x6G.exportDrawings(),xOffset:Q9E,startDate:x6G.chart.dataSegment[Q9E].Date,endDate:x6G.chart.dataSegment[x6G.chart.dataSegment.length - 1].Date,id:d63,symbol:x6G.chart.symbol};x5V={id:d63,image:S7F,config:S08};a$R.Share.uploadImage(S7F,P_J,x5V,function(W92,G6I){if(W92 !== null){a$R.alert("error sharing chart: ",W92);}else {z$W.D0J(0);A$0(z$W.q7n(B4I,G6I));}});;});};};R=s0v=>{var r6U=A2IFV;var G99,h91,v72,A$D;G99=1908465696;h91=+"1307475919";v72=+"2";for(var w2r=1;r6U.Z2Z(w2r.toString(),w2r.toString().length,46458) !== G99;w2r++){A$D=!_CIQ === ""?_CIQ:s0v.CIQ;v72+=2;}if(r6U.U6$(v72.toString(),v72.toString().length,14190) !== h91){A$D=typeof _CIQ !== "undefined"?_CIQ:s0v.CIQ;}r6U.a9S();A$D.ChartEngine.prototype.setRange=function(X8N,M8u){var f_p,w2c,P2N,T5W,R5k,y$a,k6L,A7T,L36,V3V,a$7,u8G,L$P,T75,Z2N,m8y,B6W,s28,c_h,A7a,x21,B$L,c3A,E7K,A3P,P5i,h0C,o7I,G6w,T_S,m3P,t6L,r_3,E0I;function n6w(h8K){var z4N,E2w,R2R,g8o,j9Z,W7V,e0Z,y0u,Q_r,P_Z,F2A,W_Q,y89,l$x,X99,y50,A3W,r1L,f6E,R_7,T9A,B0c,z3c,w96;z4N="l";z4N+="a";z4N+="you";z4N+="t";E2w="d";E2w+="a";E2w+="y";R2R="undef";R2R+="ined";if(typeof h8K == R2R){h8K=null;}g8o=+"0";j9Z=+"0";W7V=new Date();r6U.a9S();e0Z=X8N.base;y0u=X8N.periodicity;Q_r=y$a.layout;if(X8N.goIntoFuture && (!w2c.masterData.length || P2N > w2c.masterData[w2c.masterData.length - 1].DT)){P_Z=w2c.masterData.length?w2c.masterData.pop():{DT:P2N};r6U.H6P(40);F2A=r6U.S40(32,"33390567");W_Q=+"1303637610";y89=2;for(var K2k=1;r6U.U6$(K2k.toString(),K2k.toString().length,27995) !== F2A;K2k++){l$x=y$a.doCleanupGaps([P_Z,{DT:T5W}],w2c,{cleanupGaps:"",noCleanupDates:!!0});y$a.setMasterData(w2c.masterData.concat(l$x),w2c,{noCleanupDates:!1});r6U.D0J(40);y$a.createDataSet(1,r6U.q7n(64,"1"),{appending:!1});y89+=2;}if(r6U.Z2Z(y89.toString(),y89.toString().length,81742) !== W_Q){l$x=y$a.doCleanupGaps([P_Z,{DT:T5W}],w2c,{cleanupGaps:"gap",noCleanupDates:!!({})});y$a.setMasterData(w2c.masterData.concat(l$x),w2c,{noCleanupDates:!!({})});y$a.createDataSet(null,null,{appending:!![]});}}X99=w2c.dataSet;y50=X99.length;if(!X99 || y50 === 0){if(M8u){M8u(h8K);}return;}if(e0Z === E2w && y0u && y0u.interval === "day"){r1L=X8N.multiplier;g8o=y50 < r1L?0:y50 - r1L;r6U.D0J(7);j9Z=r6U.S40(1,y50);}else if(e0Z === "today" && X99[y50 - 1].DT.getDate() < W7V.getDate()){f6E=new Date(X99[y50 - +"1"].DT.getTime());R_7=f6E.getTime();A3W=+"0";for(var J4U=y50 - 1;J4U >= 0;J4U--){if(X99[J4U] && X99[J4U].DT.getDate() != f6E.getDate()){f6E=new Date(+X99[J4U + 1].DT);r6U.H6P(0);A3W=r6U.q7n(J4U,1);break;}}g8o=A3W;r6U.D0J(7);j9Z=r6U.q7n(1,y50);}else {T9A="a";T9A+="l";T9A+="l";if(X8N.base != T9A && (P2N.getTime() >= X99[0].DT.getTime() || X8N.goIntoPast)){g8o=y$a.tickFromDate(P2N,w2c,null,!0);}else {g8o=0;}if(X8N.base != "all" && (T5W.getTime() <= X99[y50 - 1].DT.getTime() || X8N.goIntoFuture)){j9Z=y$a.tickFromDate(T5W,w2c);if(j9Z > y50 - 1){j9Z--;};}else {r6U.H6P(7);j9Z=r6U.q7n(1,y50);}}r6U.D0J(113);B0c=r6U.S40(64,"1",g8o,j9Z);if(B0c < 1){if(M8u){M8u(h8K);}return;}z3c=X8N.padding || 0;if(j9Z < y50 - 1){z3c=0;}w96=(w2c.width - z3c) / B0c;y$a.setCandleWidth(w96,w2c);r6U.D0J(114);w2c.scroll=r6U.S40(j9Z,y50,"1",B0c);y$a.micropixels=1;for(var B6b in y$a.panels){y$a.calculateYAxisMargins(y$a.panels[B6b].yAxis);}if(!X8N.dontSaveRangeToLayout){delete X8N.chart;delete Q_r.setSpan;Q_r.range=X8N;;}else {delete Q_r.range;}y$a.draw();y$a.changeOccurred(z4N);if(!f_p){y$a.dispatch("periodicity",{stx:y$a,differentData:P5i,prevPeriodicity:{interval:c3A,periodicity:E7K,timeUnit:A3P}});}if(M8u){M8u(h8K);}}if(A$D.isEmpty(X8N)){X8N={dtLeft:arguments[0],dtRight:arguments[1],padding:arguments[2],chart:arguments[3]};M8u=arguments[4];}if(this.staticRange){X8N.goIntoPast=X8N.goIntoFuture=!!"1";}if(!X8N.chart){X8N.chart=this.chart;}if(typeof X8N.padding == "undefined"){X8N.padding=0;}f_p=![];w2c=X8N.chart;P2N=typeof X8N.dtLeft === "string"?new Date(X8N.dtLeft):X8N.dtLeft;T5W=new Date();function K$d(x3b,r0x,K8a,t1s,m6n,P06){var B6f,a2h,f9P,Y0C;B6f=0;r6U.H6P(7);a2h=r6U.q7n(r0x,x3b);if(A$D.ChartEngine.isDailyInterval(K8a)){f9P="w";f9P+="eek";if(K8a == "month"){B6f=a2h / A$D.MONTH / t1s;}else if(K8a == f9P){B6f=a2h / A$D.WEEK / t1s;}else {B6f=a2h / A$D.DAY / t1s;}}else {if(!isNaN(K8a)){Y0C="secon";Y0C+="d";if(m6n == "millisecond"){r6U.H6P(115);B6f=r6U.q7n(K8a,t1s,a2h);}else if(m6n == Y0C){B6f=a2h / A$D.SECOND / (t1s * K8a);}else {B6f=a2h / A$D.MINUTE / (t1s * K8a);}}}return Math.round(B6f);;}if(X8N.dtRight){T5W=typeof X8N.dtRight === "string"?new Date(X8N.dtRight):X8N.dtRight;}if(!P2N){R5k=this.standardMarketIterator(T5W,null,w2c);P2N=R5k.previous(w2c.maxTicks);if(!X8N.periodicity){f_p=!!({});}}r6U.a9S();w2c.inflectionPoint=P2N;this.layout.range={dtLeft:P2N,dtRight:T5W};y$a=this;k6L=0;if(this.quoteDriver){if(f_p){A7T=this.layout.interval;V3V=this.layout.timeUnit;L36=this.layout.periodicity;}else if(X8N.periodicity){a$7=A$D.cleanPeriodicity(X8N.periodicity.period,X8N.periodicity.interval,X8N.periodicity.timeUnit);A7T=a$7.interval;V3V=a$7.timeUnit;L36=a$7.period;}else {u8G=T5W.getTime() - P2N.getTime();if(!this.autoPickCandleWidth.turnOn){L$P=this.staticRangePeriodicityMap;T75=null;for(var Z9k=+"0";Z9k < L$P.length;Z9k++){Z2N=L$P[Z9k];if(u8G / Z2N.rangeInMS < +"1.001"){T75=Z2N;break;}}A7T=T75.interval;L36=T75.periodicity;V3V=T75.timeUnit;}else {m8y=0;if(this.autoPickCandleWidth.candleWidth){m8y=this.autoPickCandleWidth.candleWidth;}else {m8y=this.chart.barsHaveWidth?"5" << 64:2;}B6W=w2c.width / m8y;s28=this.dynamicRangePeriodicityMap;A7T=s28[0].interval;L36=1;for(var U0t=0;U0t < s28.length;U0t++){A7a=u8G / s28[U0t].rangeInMS;if(A7a < B6W){if(s28[U0t - 1]){A7T=s28[U0t - 1].interval;V3V=s28[U0t - 1].timeUnit;r6U.D0J(14);L36=Math.ceil(r6U.q7n(B6W,c_h));}else {A7T=s28[U0t].interval;V3V=s28[U0t].timeUnit;L36=1;}break;}c_h=A7a;}}}x21=this.chart.scroll;B$L=this.layout.candleWidth;c3A=this.layout.interval;E7K=this.layout.periodicity;A3P=this.layout.timeUnit;this.chart.scroll=this.chart.maxTicks=K$d(T5W.getTime(),P2N.getTime(),A7T,L36,V3V,this.dontRoll);this.layout.candleWidth=this.chart.width / this.chart.maxTicks;P5i=this.needDifferentData({period:L36,interval:A7T,timeUnit:V3V});if(Object.keys(this.chart.endPoints).length && (this.chart.endPoints.begin > P2N || this.chart.endPoints.end < T5W)){P5i=!0;}if(!this.chart.masterData || !this.chart.masterData.length || P5i || X8N.forceLoad){h0C="w";h0C+="e";h0C+="e";h0C+="k";this.layout.interval=A7T;this.layout.periodicity=L36;this.layout.timeUnit=V3V;if(!this.layout.timeUnit){o7I="t";o7I+="i";o7I+="c";o7I+="k";if(A$D.ChartEngine.isDailyInterval(this.layout.interval)){this.layout.timeUnit=null;}else if(this.layout.interval == "second"){this.layout.timeUnit="second";}else if(this.layout.interval != o7I){this.layout.timeUnit="minute";}}G6w={symbol:w2c.symbol,symbolObject:w2c.symbolObject,chart:w2c,nodraw:!!"1"};if(this.layout.interval == "tick"){r6U.H6P(10);T_S=r6U.q7n("1123097109",20);m3P=-953471532;t6L=2;for(var z8i="1" | 1;r6U.Z2Z(z8i.toString(),z8i.toString().length,19603) !== T_S;z8i++){G6w.startDate=P2N;t6L+=2;}if(r6U.Z2Z(t6L.toString(),t6L.toString().length,34020) !== m3P){G6w.startDate=P2N;}G6w.startDate=P2N;G6w.endDate=T5W;}if(!this.displayInitialized){G6w.initializeChart=!!1;}r_3={symbol:w2c.symbol,symbolObject:w2c.symbolObject,interval:this.layout.interval};if((r_3.interval == "month" || r_3.interval == h0C) && !this.dontRoll){r_3.interval="day";}E0I=Math.max(this.quoteDriver.getQuoteFeed(r_3).behavior.bufferSize + 50,+"200");R5k=this.standardMarketIterator(P2N,null,w2c);G6w.startDate=new Date(R5k.previous(E0I).getTime());R5k=this.standardMarketIterator(T5W,null,w2c);G6w.endDate=new Date(R5k.next(E0I).getTime());if(G6w.endDate < Date.now()){this.isHistoricalModeSet=!!({});}this.clearCurrentMarketData(this.chart);clearTimeout(this.streamParameters.timeout);this.quoteDriver.newChart(G6w,n9k);}else {if(this.layout.interval != A7T || this.layout.periodicity != L36 || this.layout.timeUnit != V3V || !this.chart.dataSegment || !this.chart.dataSegment["0" * 1] || this.chart.dataSegment[0].DT != w2c.inflectionPoint){this.layout.interval=A7T;this.layout.periodicity=L36;this.layout.timeUnit=V3V;this.createDataSet();}n9k();}}else {n6w();}function n9k(t_3){var Z2u;if(t_3 && k6L === "0" * 1){w2c.scroll=x21;y$a.setCandleWidth(B$L);y$a.layout.interval=c3A;y$a.layout.periodicity=E7K;y$a.layout.timeUnit=A3P;if(M8u){M8u(t_3);}return;}k6L++;if(k6L > 10){Z2u="CIQ.ChartEngine.setRange(): Too many loads (10) from server. Stoppi";Z2u+="ng. Check periodicity logic.";console.log(Z2u);n6w();return;}n6w();;}};A$D.ChartEngine.prototype.setSpan=function(a7O,p83){var T3j,p7Y,X1w,h_7,v5B,i3t,M1N,h8o,q2n,G$U,S37,x7$,Z6c,d$6,a9k,L0a,T1Y,E0R,c_Y,U6W;T3j="ob";function o3n(z27,Q_I){var q2L;if(!d$6){return z27;}q2L=7;if(Q_I){z27.setHours(z27.getHours() + q2L);}else {z27.setHours(z27.getHours() - q2L);if(!i3t.isMarketDate(z27)){z27.setDate(z27.getDate() - 2);};}return z27;}T3j+="j";T3j+="e";T3j+="ct";p7Y=arguments[0];X1w=arguments[1];h_7=arguments[2];v5B=arguments[+"3"];if(typeof a7O == T3j){p7Y=a7O.period?a7O.period:a7O.multiplier?a7O.multiplier:1;X1w=a7O.interval?a7O.interval:a7O.base?a7O.base:a7O.span?a7O.span:a7O.period;h_7=a7O.padding;v5B=a7O.chart;}else {a7O={period:p7Y,interval:X1w,padding:h_7,chart:v5B};p83=arguments[5];}if(!v5B){v5B=this.chart;}i3t=v5B.market;X1w=X1w.toLowerCase();if(X1w == "all"){a7O.dontSaveRangeToLayout=!!"1";this.displayAll(a7O,p83);return;}h8o=X1w;q2n=1;if(X1w == "today"){h8o="day";}else if(X1w == "year"){G$U="m";G$U+="on";G$U+="t";G$U+="h";h8o=G$U;q2n=12;}S37=A$D.shallowClone(a7O);x7$={begin:i3t.marketZoneNow(),interval:h8o,period:q2n};Z6c=x7$.begin;d$6=A$D.Market.Symbology.isForexSymbol(v5B.symbol);if(X1w === "ytd"){Z6c=q_v(Z6c);Z6c.setMonth(0);Z6c.setDate(1);}else if(X1w === "month"){Z6c=q_v(new Date());Z6c.setMonth(Z6c.getMonth() - p7Y);}else if(X1w === "year"){Z6c=q_v(new Date());Z6c.setFullYear(Z6c.getFullYear() - p7Y);}else if(X1w === "week"){Z6c=q_v(new Date());Z6c.setDate(Z6c.getDate() - p7Y * 7);}else if(X1w === "day" && p7Y == "1" * 1 && i3t.isMarketDay()){a9k=Z6c.getHours();L0a=Z6c.getMinutes();T1Y=Z6c.getSeconds();E0R=Z6c.getMilliseconds();M1N=i3t.newIterator(x7$);Z6c=M1N.previous();Z6c.setHours(a9k,L0a,T1Y,E0R);Z6c=i3t._convertFromMarketTZ(Z6c);}else if(X1w === "today"){x7$.begin=o3n(Z6c,!![]);M1N=i3t.newIterator(x7$);if(i3t.isOpen() || i3t.getPreviousOpen().getDate() == Z6c.getDate()){M1N.next();}Z6c=M1N.previous();o3n(Z6c);S37.goIntoFuture=!!1;S37.dtRight=new Date(+Z6c);S37.dtRight.setDate(Z6c.getDate() + 1);S37.dtRight=i3t._convertFromMarketTZ(S37.dtRight);if(!d$6){Z6c.setHours(M1N.market.zopen_hour);Z6c.setMinutes(M1N.market.zopen_minute);Z6c.setSeconds(0);}Z6c=i3t._convertFromMarketTZ(Z6c);}else {c_Y="d";c_Y+="ay";if(X1w == "day"){x7$.begin=o3n(Z6c,!!({}));}M1N=i3t.newIterator(x7$);if(p7Y == 1){p7Y++;}r6U.H6P(7);Z6c=M1N.previous(r6U.S40(1,p7Y));if(X1w == c_Y){Z6c=i3t._convertFromMarketTZ(o3n(Z6c));}}S37.dtLeft=Z6c;if(S37.maintainPeriodicity){S37.periodicity={};S37.periodicity.interval=this.layout.interval;S37.periodicity.period=this.layout.periodicity;}v5B.spanLock=![];S37.dontSaveRangeToLayout=!"";function q_v(Y7x){Y7x.setHours(0);Y7x.setMinutes(0);Y7x.setSeconds(+"0");Y7x.setMilliseconds(0);return Y7x;}U6W=this;this.setRange(S37,function(I0I){U6W.layout.setSpan=a7O;U6W.changeOccurred("layout");r6U.a9S();if(X1w == "today"){v5B.spanLock=!!({});;}if(p83){p83(I0I);}});};A$D.ChartEngine.prototype.getSpanCandleWidth=function(U6S){var K8t,I$x,b6U,R87,V9f,w7K,K9n,H7M,S3p,W2w;K8t="mont";K8t+="h";if(!U6S || !U6S.base || !U6S.multiplier){return;}I$x=parseFloat(U6S.multiplier);b6U=U6S.base;R87=new Date();V9f=new Date();if(b6U == "year"){V9f.setFullYear(V9f.getFullYear() - I$x);}else if(b6U == K8t){w7K=391528754;K9n=1131678275;H7M=2;for(var f_z=1;r6U.Z2Z(f_z.toString(),f_z.toString().length,84725) !== w7K;f_z++){V9f.setMonth(V9f.getMonth() % I$x);H7M+=2;}if(r6U.U6$(H7M.toString(),H7M.toString().length,90186) !== K9n){V9f.setMonth(V9f.getMonth() - I$x);}}else if(b6U == "day"){V9f.setDate(V9f.getDate() - I$x);}else if(b6U == "week"){V9f.setDate(V9f.getDate() - 7 * I$x);}else if(b6U == "YTD"){V9f.setMonth(0);r6U.H6P(10);V9f.setDate(r6U.S40("1",0));}r6U.H6P(94);var X49=r6U.q7n(2,7,16,12011,13000);r6U.H6P(52);r6U.a9S();var z25=r6U.q7n(660,72,10);r6U.D0J(0);var U4O=r6U.S40(49,11);r6U.H6P(94);var e49=r6U.S40(14,18,3,17,42);S3p=(R87.getTime() - V9f.getTime()) / X49 / z25 / U4O / e49;r6U.H6P(116);S3p=r6U.S40(S3p,7,"5",32);W2w=this.chart.width / S3p;return W2w;};A$D.ChartEngine.prototype.displayAll=function(t$J,T8M){var U6n,F8L,D0d;var {chart:w1O, layout:x2j}=this;if(t$J && t$J.chart){w1O=t$J.chart;}function Z94(z4v){if(!z4v){U6n.quoteDriver.loadAll(w1O,i6e);}}function i6e(){var Y1C;if(!w1O.masterData || !w1O.masterData.length){return;}Y1C=A$D.clone(t$J);Y1C.dtLeft=w1O.endPoints.begin.DT;Y1C.dtRight=w1O.endPoints.end.DT;Y1C.periodicity={};Y1C.periodicity.interval=x2j.interval;Y1C.periodicity.period=x2j.periodicity;Y1C.periodicity.timeUnit=x2j.timeUnit;r6U.D0H();U6n.setRange(Y1C,function(b75){U6n.layout.setSpan={base:t$J.base,multiplier:t$J.multiplier};U6n.changeOccurred("layout");r6U.a9S();for(var c$Y in U6n.panels){U6n.calculateYAxisMargins(U6n.panels[c$Y].yAxis);}U6n.draw();if(T8M){T8M(b75);}});}U6n=this;if(!this.quoteDriver){i6e();return;}F8L=t$J.maintainPeriodicity?{period:x2j.periodicity,interval:x2j.interval,timeUnit:x2j.timeUnit}:{period:+"1",interval:"month",timeUnit:null};F8L=t$J.periodicity?t$J.periodicity:F8L;F8L=A$D.cleanPeriodicity(F8L.period,F8L.interval,F8L.timeUnit);D0d=this.needDifferentData(F8L);this.layout.periodicity=F8L.period;this.layout.interval=F8L.interval;this.layout.timeUnit=F8L.timeUnit;r6U.a9S();if(t$J.forceLoad || D0d){this.clearCurrentMarketData(this.chart);this.quoteDriver.newChart({noDraw:!![],symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,chart:this.chart,initializeChart:!![],fetchMaximumBars:!!"1"},Z94);}else {if(w1O.moreAvailable || !w1O.upToDate){Z94();}else {this.createDataSet();i6e();}}};};D=l86=>{var X8z=A2IFV;X8z.a9S();var F3g;F3g=typeof _CIQ !== "undefined"?_CIQ:l86.CIQ;F3g.ChartEngine.prototype.importLayout=function(i2y,s6M){var y_x,B8I,D4G,S7V,p5a,e_4,R$_,E1j,s8v,L1M,M64,w0d,i6U,b0W,g8m,m2A,c2K,Q67,I1$,H0B,B3z,r6H,n7R,Y8d,H2v,k1O,h4X,l$k,O1G,f6h;if(!i2y){if(s6M.cb){s6M.cb();}return;}y_x=this;B8I=[];if(typeof s6M !== "object"){s6M={managePeriodicity:arguments[1],preserveTicksAndCandleWidth:arguments[2]};}D4G=this.layout;S7V=F3g.shallowClone(D4G);p5a=s6M.managePeriodicity;e_4=s6M.cb;R$_=s6M.seriesCB;E1j=s6M.noDataLoad;s8v=s6M.preserveTicksAndCandleWidth;L1M=null;if(this.exportDrawings){L1M=this.exportDrawings();this.abortDrawings();}this.currentlyImporting=!![];for(var o$I in D4G.studies){M64=D4G.studies[o$I];F3g.getFn("Studies.removeStudy")(this,M64);}this.overlays={};w0d=F3g.shallowClone(this.panels);this.panels={};i6U=F3g.clone(i2y);D4G.periodicity=S7V.periodicity;function E$1(B9v){var E1c,P1I;for(var T3w=+"0";T3w < B8I.length;T3w++){E1c="yaxisL";E1c+="HS";P1I=B8I[T3w];U_Z(P1I,E1c);U_Z(P1I,"yaxisRHS");}y_x.chart.yAxis=y_x.chart.panel.yAxis;function U_Z(M_W,V_i){var c20,W5c,I48,U7J;if(!M_W[V_i] || !M_W[V_i].length){return;}c20=B9v[M_W.name];if(!c20){return;}W5c=c20[V_i];I48=new Array(W5c.length);for(var R3B=+"0";R3B < W5c.length;R3B++){U7J=M_W[V_i].indexOf(W5c[R3B].name);if(U7J > -1){I48[U7J]=W5c[R3B];}else {I48.push(W5c[R3B]);}}if(I48.length){c20[V_i]=I48.filter(c2l);}}function c2l(p4I){return !!p4I;}}D4G.interval=S7V.interval;D4G.timeUnit=S7V.timeUnit;D4G.setSpan=S7V.setSpan;function e$H(F2v){var G$F,m4f,G$k,j6L,K__;G$F="lay";G$F+="out";if(L1M){y_x.importDrawings(L1M);}y_x.currentlyImporting=!"1";if(F2v){return;}j6L=[];for(var k_w in y_x.chart.series){K__="s";K__+="tu";K__+="dy";if(!y_x.removeSeries)break;G$k=y_x.chart.series[k_w];if(G$k.parameters.bucket == K__){m4f=!!({});y_x.removeSeries(G$k);j6L.push(G$k);}}for(var m2U=0;m2U < j6L.length;m2U++){G$k=j6L[m2U];y_x.addSeries(G$k.id,G$k.parameters,X1C);}if(!m4f){y_x.draw();}y_x.updateListeners(G$F);function X1C(){y_x.createDataSet();E$1(y_x.panels);y_x.calculateYAxisPositions();y_x.draw();}X8z.D0H();y_x.changeOccurred("layout");;}D4G.range=S7V.range;if(s8v){D4G.candleWidth=S7V.candleWidth;}else {if(!D4G.candleWidth){D4G.candleWidth=+"8";}}this.setCandleWidth(D4G.candleWidth);if(D4G.flipped){this.flipChart(D4G.flipped);}b0W=i6U.panels;Q67=function(o2I,a9B){X8z.a9S();return o2I.index < a9B.index?-1:"1" ^ 0;};for(g8m in b0W){if(!(("index" in b0W[g8m]))){Q67=null;}m2A=b0W[g8m];m2A.name=g8m;B8I.push(m2A);}D4G.panels={};I1$=null;if(B8I.length > 0){if(Q67){B8I.sort(Q67);}for(var h_M="0" >> 64;h_M < B8I.length;++h_M){m2A=B8I[h_M];c2K=m2A.yAxis?new F3g.ChartEngine.YAxis(m2A.yAxis):null;this.stackPanel(m2A.display,m2A.name,m2A.percent,m2A.chartName,c2K);if(m2A.soloing){I1$=this.panels[m2A.name];}}}if(F3g.isEmpty(b0W)){this.stackPanel("chart","chart",1,"chart");}this.resizeCanvas();for(var c48 in w0d){H0B=w0d[c48];B3z=this.panels[c48];if(B3z){this.container.removeChild(B3z.holder);if(H0B.handle){this.container.removeChild(H0B.handle);}r6H={holder:!![],subholder:!!"1",display:!"",icons:!0};for(var S6f in r6H){B3z[S6f]=H0B[S6f];}this.configurePanelControls(B3z);if(H0B.chart.panel == H0B){H0B.chart.panel=B3z;};}else {this.privateDeletePanel(H0B);}}this.chart.panel=this.panels.chart;E$1(this.panels);F3g.dataBindSafeAssignment(D4G,F3g.clone(i6U));n7R=F3g.clone(D4G.studies);delete D4G.studies;for(var k_a in n7R){Y8d=n7R[k_a];F3g.getFn("Studies.addStudy")(this,Y8d.type,Y8d.inputs,Y8d.outputs,Y8d.parameters,Y8d.panel);}if(this.extendedHours){this.extendedHours.prepare(D4G.extended,D4G.marketSessions);}if(typeof D4G.chartType == "undefined"){D4G.chartType="line";}this.setMainSeriesRenderer();if(I1$){this.panelSolo(I1$);}this.adjustPanelPositions();E$1(this.panels);this.storePanels();if(!E1j){if(i6U.symbols && i6U.symbols.length){H2v={chart:this.chart};if(!s8v && p5a && i6U.range && Object.keys(i6U.range).length){H2v.range=i6U.range;}else if(!s8v && p5a && i6U.setSpan && Object.keys(i6U.setSpan).length){H2v.span=i6U.setSpan;}else if(p5a && i6U.interval){H2v.periodicity={interval:i6U.interval,period:i6U.periodicity,timeUnit:i6U.timeUnit};}else {H2v.periodicity={interval:S7V.interval,period:S7V.periodicity,timeUnit:S7V.timeUnit};}k1O=i6U.symbols[0].symbolObject || i6U.symbols[0].symbol;this.loadChart(k1O,H2v,function(Z8L){X8z.a9S();var Y4Y,m9Q;if(!Z8L){for(var L0n,u0p=1;u0p < i6U.symbols.length;++u0p){if(!y_x.addSeries)break;L0n=i6U.symbols[u0p];if(!L0n.parameters){L0n.parameters={};}Y4Y=F3g.clone(L0n.parameters);if(this.panels[Y4Y.panel]){y_x.addSeries(L0n.id,Y4Y,R9m);}else {m9Q="Warning: Seri";m9Q+="es \"";console.warn(m9Q + L0n.id + '" could not be imported due to a missing corresponding panel "' + Y4Y.panel + ((2540,+"616") >= "2100" * 1?+"578.57" <= 8680?(7.32e+3,"S"):!!0:'"'));}}if(i6U.chartScale){y_x.setChartScale(i6U.chartScale);}}e$H(Z8L);if(e_4){e_4.apply(null,arguments);}});return;}if(p5a){if(!s8v && this.setRange){h4X=i6U.range;if(h4X && Object.keys(h4X).length && this.chart.symbol){this.setRange(h4X,function(){e$H();if(e_4){e_4();}});return;}else if(i6U.setSpan && Object.keys(i6U.setSpan).length && this.chart.symbol){this.setSpan(i6U.setSpan,function(){X8z.a9S();e$H();if(e_4){e_4();}});return;}}l$k=i6U.interval;O1G=i6U.periodicity;f6h=i6U.timeUnit;if(isNaN(O1G)){O1G=1;}if(!l$k){l$k="day";}this.setPeriodicity({period:O1G,interval:l$k,timeUnit:f6h},function(){e$H();if(e_4){e_4();}});return;}}if(p5a){D4G.periodicity=i6U.periodicity;D4G.interval=i6U.interval;D4G.timeUnit=i6U.timeUnit;D4G.setSpan=i6U.setSpan;}this.createDataSet();if(!s8v){this.home();}function R9m(){y_x.calculateYAxisPositions();E$1(y_x.panels);if(R$_){R$_();}}e$H();if(e_4){e_4();}};F3g.ChartEngine.prototype.exportLayout=function(Z8Y){X8z.D0H();var c6l,s6E,r1f,w0V,J83,H9Y,B_R,l5w;c6l={};for(var g2X in this.layout){s6E="pane";s6E+="ls";r1f="stu";r1f+="d";r1f+="ies";if(g2X != "studies" && g2X != "panels" && g2X != "drawing"){c6l[g2X]=F3g.clone(this.layout[g2X]);}else if(g2X == r1f){c6l.studies={};}else if(g2X == s6E){c6l.panels={};}}w0V=0;for(var I5N in this.panels){J83=this.panels[I5N];if(J83.exportable === ![])continue;H9Y=c6l.panels[I5N]={};H9Y.percent=J83.percent;H9Y.display=J83.display;H9Y.chartName=J83.chart.name;H9Y.soloing=J83.soloing;H9Y.index=w0V++;H9Y.yAxis={name:J83.yAxis.name,position:J83.yAxis.position};if(J83.yaxisLHS){H9Y.yaxisLHS=h5A(J83.yaxisLHS);}if(J83.yaxisRHS){H9Y.yaxisRHS=h5A(J83.yaxisRHS);}}function h5A(L2N){var V59;V59=[];for(var m9R=0;m9R < L2N.length;m9R++){V59.push(L2N[m9R].name);}X8z.a9S();return V59;}for(var D9w in this.layout.studies){B_R=c6l.studies[D9w]={};l5w=this.layout.studies[D9w];B_R.type=l5w.type;B_R.inputs=F3g.clone(l5w.inputs);B_R.outputs=F3g.clone(l5w.outputs);B_R.panel=l5w.panel;B_R.parameters=F3g.clone(l5w.parameters);}if(Z8Y){c6l.symbols=this.getSymbols({"include-parameters":!![],"exclude-studies":!"","exclude-generated":!0});}else {delete c6l.symbols;}return c6l;};F3g.ChartEngine.prototype.importPreferences=function(N_8){F3g.extend(this.preferences,N_8);if(N_8.timeZone){this.setTimeZone(this.dataZone,N_8.timeZone);}if(N_8.language && F3g.I18N){F3g.I18N.localize(this,N_8.language);}this.changeOccurred("preferences");};F3g.ChartEngine.prototype.exportPreferences=function(){X8z.D0H();return this.preferences;};};N=m$6=>{var p8o,S9B,W9k,i3c,q1N,t05,I$$,i2v,s1q,w8y,N1H,Y$r,M34,z5d,j6q,W7j;p8o="Tr";p8o+="ue Ra";p8o+="nge";S9B="Expo";S9B+="ne";S9B+="ntial";W9k="Trian";W9k+="gular";i3c="Exponenti";i3c+="al";q1N="Expo";q1N+="ne";q1N+="ntial";t05="W";t05+="e";t05+="lles Wilder";I$$="Weigh";I$$+="t";I$$+="ed";i2v="Triangul";i2v+="ar";s1q="exponen";s1q+="tial";w8y="w";w8y+="ma";N1H="em";N1H+="a";Y$r="m";Y$r+="a";M34="u";M34+="n";M34+="defined";z5d="un";z5d+="defined";j6q=typeof _CIQ !== z5d?_CIQ:m$6.CIQ;W7j=typeof _timezoneJS !== M34?_timezoneJS:m$6.timezoneJS;if(j6q.ChartEngine){j6q.ChartEngine.prototype.rightClickOverlay=function(Q0a,L$K){var e4V,m3T;e4V="rig";e4V+="htClickOverla";e4V+="y";if(this.runPrepend("rightClickOverlay",arguments)){return;}m3T=this.overlays[Q0a];if(m3T.editFunction){m3T.editFunction(L$K);}else {this.removeOverlay(Q0a);}this.runAppend(e4V,arguments);};j6q.ChartEngine.prototype.addOverlay=function(Z5q){var e3R,O64,K6G,F_Y;e3R="a";e3R+="ddOverl";e3R+="ay";if(this.runPrepend(e3R,arguments)){return;}A2IFV.D0H();O64=+"1520886097";K6G=1981641975;F_Y=2;for(var w3o=1;A2IFV.U6$(w3o.toString(),w3o.toString().length,3782) !== O64;w3o++){this.overlays[Z5q.name]=Z5q;this.runAppend("addOverlay",arguments);F_Y+=2;}if(A2IFV.U6$(F_Y.toString(),F_Y.toString().length,5784) !== K6G){this.overlays[Z5q.name]=Z5q;this.runAppend("",arguments);}};j6q.ChartEngine.prototype.removeOverlay=function(Q8D){var C23,S7P,p0v,N4k,V1r,Q2z,y4A;C23="remo";C23+="veOv";C23+="erl";C23+="ay";if(this.runPrepend(C23,arguments)){return;}S7P=this.overlays[Q8D];for(var I$E in this.overlays){p0v="F";p0v+="i";p0v+="el";p0v+="d";N4k=this.overlays[I$E];V1r=[p0v];if(j6q.Studies){V1r=j6q.Studies.getFieldInputs(N4k);}for(var x4p="0" ^ 0;x4p < V1r.length;x4p++){if(S7P.outputMap[N4k.inputs[V1r[x4p]]]){this.removeOverlay(N4k.name);}}}A2IFV.a9S();if(S7P){this.cleanupRemovedStudy(S7P);Q2z=this.panels[S7P.panel];delete this.overlays[Q8D];this.checkForEmptyPanel(S7P.panel);}if(!this.currentlyImporting){y4A="lay";y4A+="out";this.displaySticky();this.createDataSet();this.changeOccurred(y4A);}this.resetDynamicYAxis();this.runAppend("removeOverlay",arguments);};j6q.ChartEngine.prototype.cleanupRemovedStudy=function(i94){if(!i94){return;}if(i94.study.removeFN){i94.study.removeFN(this,i94);}for(var f7Z in this.plugins){if(f7Z.indexOf("{" + i94.id + (+"459.68" != (541.96,9440)?"}":265.78)) > -1){delete this.plugins[f7Z];}}if(this.layout.studies){delete this.layout.studies[i94.name];}delete this.overlays[i94.name];if(j6q.Studies){j6q.Studies.removeStudySymbols(i94,this);}A2IFV.D0H();if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}};}j6q.Studies=j6q.Studies || (function(){});j6q.Studies.DEFAULT_INPUTS={Period:14};j6q.Studies.DEFAULT_OUTPUTS={Result:"auto"};j6q.Studies.sortForProcessing=e1Y=>{var g4M,Q8H;g4M=[];function S_u(I7b,x6L){I7b.forEach(d_z=>{var g43;if(x6L.indexOf(d_z) == -+"1"){g43=d_z.getDependents(e1Y);if(g43.length){S_u(g43,x6L);}x6L.unshift(d_z);}});}Q8H=e1Y.layout.studies;if(Q8H){S_u(Object.values(Q8H),g4M);}return g4M;};j6q.Studies.StudyDescriptor=function(a_6,T_d,P2v,W3y,Z1X,c76){var g9y,V_T,k6H;g9y="u";g9y+="nde";g9y+="fin";g9y+="ed";V_T="Cl";V_T+="o";V_T+="s";V_T+="e";this.name=a_6;this.type=T_d;this.panel=P2v;this.inputs=W3y;this.outputs=Z1X;this.parameters=c76;this.outputMap={};this.min=null;this.max=null;A2IFV.D0J(1);this.startFrom=A2IFV.q7n(1,"0");this.subField=V_T;k6H=j6q.Studies.studyLibrary[T_d];if(!k6H){k6H={};if(P2v == "chart" || !P2v && c76 && c76.chartName == "chart"){this.overlay=!"";}}if(typeof k6H.inputs == "undefined"){k6H.inputs=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(typeof k6H.outputs == g9y){k6H.outputs=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}this.study=k6H;A2IFV.D0H();this.libraryEntry=k6H;;};j6q.Studies.StudyDescriptor.prototype.getYAxis=function(Z0h){var p7C,I$3,S5o;p7C=this.yAxis;if(this.parameters){I$3=this.parameters.yaxisDisplayValue;}if(!p7C){S5o=Z0h.panels[this.panel];if(S5o){p7C=Z0h.getYAxisByName(S5o,I$3) || Z0h.getYAxisByName(S5o,this.name) || S5o.yAxis;}}if(!p7C){p7C=Z0h.getYAxisByName(Z0h.chart.panel,I$3) || Z0h.chart.panel.yAxis;}return p7C;};j6q.Studies.StudyDescriptor.prototype.getContext=function(G19){return G19.chart.context;};j6q.Studies.StudyDescriptor.prototype.getDependents=function(v0$,x9J){var M6W,e2L,K3H;M6W=[];for(var O8N in v0$.layout.studies){e2L=v0$.layout.studies[O8N];if(e2L == this)continue;K3H=j6q.Studies.getFieldInputs(e2L);for(var x4v=0;x4v < K3H.length;x4v++){if(e2L.inputs[K3H[x4v]].includes(this.name)){if(x9J && e2L.parameters && e2L.parameters.panelName)continue;M6W.push(e2L);M6W=M6W.concat(e2L.getDependents(v0$,x9J));break;}}}A2IFV.a9S();return M6W;};j6q.Studies.StudyDescriptor.prototype.undraggable=function(O0q){var W8Y;W8Y=this.study.attributes;if(W8Y){if(W8Y.panelName && W8Y.panelName.hidden){return !!"1";}if(W8Y.yaxisDisplayValue && W8Y.yaxisDisplayValue.hidden){return !"";}}return !!0;};j6q.Studies.StudyDescriptor.prototype.appendFutureTicks=function(J4H,h08){var X3c,v7l,K0K,E2t;X3c=J4H.chart.scrubbed;A2IFV.a9S();if(!X3c.length){return;}v7l=J4H.standardMarketIterator(X3c[X3c.length - 1].DT);for(K0K=h08.length - ("1" >> 0);K0K >= 0;K0K--){E2t=h08[K0K];for(var W$9 in E2t){if(E2t[W$9] || E2t[W$9] === 0){K0K=-1;break;}}if(K0K == -1)break;h08.pop();}for(K0K=0;K0K < h08.length;K0K++){E2t=h08[K0K];if(!E2t.DT){E2t.DT=v7l.next();}if(!E2t.displayDate){J4H.setDisplayDate(E2t);}E2t.futureTick=!![];X3c.push(E2t);}};j6q.Studies.generateID=function(l26,N2j,B2V,k0I,I8O){var r9M=A2IFV;var Q4_,j6h,D7C,P3z,e0T,l2k,f$a,i3S;Q4_=j6q.Studies.studyLibrary[N2j];r9M.H6P(37);j6h=r9M.q7n("\u200c","\u200c",I8O || N2j);D7C=j6h;if(Q4_){if(Q4_.customRemoval){return D7C;}}r9M.D0H();if(!j6q.isEmpty(B2V)){P3z=!!1;for(var l1U in B2V){e0T="Anc";e0T+="h";e0T+="or Selector";if(["id","display","Shading",e0T].includes(l1U)){continue;}l2k=B2V[l1U];if(l2k == "field")continue;l2k=l2k.toString();if(j6q.Studies.prettify[l2k] !== undefined){l2k=j6q.Studies.prettify[l2k];}if(P3z){f$a=" ";f$a+="(";P3z=!!0;D7C+=f$a;}else {if(l2k){D7C+=",";}}D7C+=l2k;}if(!P3z){D7C+=(372.94,+"5750") == 459?6814 === "9149" << 64?6.33e+3:("e",0x24ee):")";}}if(k0I && k0I.indexOf(D7C) === 0){return k0I;}if(l26.layout.studies && l26.layout.studies[D7C]){for(var t3A=2;t3A < 50;t3A++){r9M.D0J(37);i3S=r9M.q7n(t3A,D7C,446.63 == 522.61?!!({}):"-");if(!l26.layout.studies[i3S]){D7C=i3S;break;}}}return D7C;};j6q.Studies.DialogHelper=function(G1K){var e_2=A2IFV;var p2N,H0p,z5X,h1I,m7q,m8N,g6E,t91,F7F,m9h,Z4x,u$X,q1x,M9h,E4D,A7X,H65,g6U,Q3K,L2m,d8I,s0R,u93,S6O,v3D,A6C,P3P,j6g,e$6,g0w,e8r,E$2,l1w,F17,v$y,A4$,a3Y,D$l,g1H,M4I,z7Q,a6L,m6J,l7B,B8u;p2N="u";p2N+="ndefi";p2N+="n";p2N+="ed";H0p=this.stx=G1K.stx;z5X=this.sd=G1K.sd;this.name=z5X?z5X.type:G1K.name;function V7Z(y$3,k4e){if(!this.attributes[y$3]){this.attributes[y$3]={};}if(k4e){this.attributes[y$3].hidden=!!({});}}this.signal=1;this.inputs=[];function U$e(X27){var Z9n,L6Z,U47,Y7F;Z9n="se";Z9n+="lect";L6Z={};U47=X27.defaults;Y7F={name:X27.name,heading:H0p.translateIf(X27.label),defaultValue:U47[0],value:X27.value,options:L6Z,type:Z9n};for(var w7P=0;w7P < U47.length;w7P++){L6Z[U47[w7P]]=H0p.translateIf(U47[w7P]);}if(X27.color !== undefined){Y7F.defaultColor=H0p.defaultColor;Y7F.color=X27.color;}return Y7F;}this.outputs=[];this.parameters=[];h1I=this.libraryEntry=z5X?z5X.study:j6q.Studies.studyLibrary[G1K.name];if(typeof h1I.inputs == p2N){h1I.inputs=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(typeof h1I.outputs == "undefined"){h1I.outputs=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}m7q=z5X && H0p.panels[z5X.panel]?H0p.panels[z5X.panel]:H0p.chart.panel;m8N=m7q.chart;this.title=H0p.translateIf(h1I.name);this.attributes=j6q.clone(h1I.attributes);if(!this.attributes){this.attributes={};}for(var H8a in this.attributes){g6E=this.attributes[H8a];for(var k62 in g6E){if(typeof g6E[k62] == "function"){g6E[k62]=g6E[k62].call(z5X);}}}t91=[];F7F=H0p.layout.studies;m9h=[];if(z5X){m9h=Array.prototype.concat(z5X,z5X.getDependents(H0p));}function q20(l$7){var Y7T,O8G;Y7T="a";Y7T+="li";function q$1(P5Y,r6B){e_2.a9S();return "Panel " + r6B.toString();}Y7T+="a";Y7T+="s";if(l1w == Y7T){O8G=1;for(var Y3W in H0p.panels){if(Y3W == l$7){return q$1(Y3W,O8G);}O8G++;}}return l$7;}for(var l3u in F7F){if(m9h.indexOf(F7F[l3u]) > -1)continue;for(var z4I in F7F[l3u].outputMap){t91.push(z4I);}}function P_T(N5u){var u9z,V18;u9z="checkb";u9z+="ox";e_2.D0H();V18={name:N5u.name,heading:H0p.translateIf(N5u.label),defaultValue:N5u.defaults,value:N5u.value,type:u9z};return V18;}for(var T0B in h1I.inputs){Z4x={};this.inputs.push(Z4x);Z4x.name=T0B;Z4x.heading=H0p.translateIf(T0B);u$X=h1I.inputs[T0B];if(z5X && z5X.inputs && typeof z5X.inputs[T0B] != "undefined" && z5X.inputs[T0B] !== null){Z4x.value=z5X.inputs[T0B];}else {Z4x.value=h1I.inputs[T0B];}Z4x.defaultInput=h1I.inputs[T0B];if(!this.attributes[T0B]){this.attributes[T0B]=j6q.Studies.inputAttributeDefaultGenerator(Z4x.defaultInput);}if(u$X.constructor == Number){Z4x.type="number";}else if(u$X.constructor == String){q1x=j6q.Studies.movingAverageHelper(H0p,Z4x.defaultInput);if(q1x){M9h="o";M9h+="p";M9h+="t";M9h+="ions";Z4x.type="select";Z4x.defaultInput=q1x;E4D=j6q.Studies.movingAverageHelper(H0p,Z4x.value);if(!E4D){E4D=Z4x.value;}Z4x.value=E4D;Z4x.options=j6q.Studies.movingAverageHelper(H0p,M9h);}else if(u$X == "field"){A7X="hl/";A7X+="2";Z4x.type="select";Z4x.options={};H65=["Open","High","Low","Close","Adj_Close",A7X,"hlc/3","hlcc/4","ohlc/4",m8N.defaultPlotField].concat(t91);for(var s6A=0;s6A < H65.length;s6A++){g6U=H65[s6A];Z4x.options[g6U]=H0p.translateIf(g6U);}if(Z4x.value == "field"){Z4x.value="Close";}if(Z4x.defaultInput == "field"){Z4x.defaultInput="Close";}}else {Q3K="hh:mm";Q3K+=":ss";L2m="yyyy-m";L2m+="m-dd";d8I="t";d8I+="e";d8I+="x";d8I+="t";Z4x.type=d8I;if(this.attributes[T0B].placeholder == L2m){Z4x.type="date";}else if(this.attributes[T0B].placeholder == Q3K){Z4x.type="time";}}}else if(u$X.constructor == Boolean){Z4x.type="checkbox";if(Z4x.value === !0 || Z4x.value == "true" || Z4x.value == "on"){Z4x.value=!!1;}}else if(u$X.constructor == Array){Z4x.type="select";Z4x.options={};for(var X3s=0;X3s < u$X.length;X3s++){Z4x.options[u$X[X3s]]=H0p.translateIf(u$X[X3s]);}if(Z4x.value.constructor == Array){Z4x.value=Z4x.value[0];}if(this.attributes[T0B].defaultSelected){Z4x.defaultInput=this.attributes[T0B].defaultSelected;}else {e_2.D0J(21);Z4x.defaultInput=u$X[e_2.S40("0",0)];}}}this.dateTimeInputs=[];for(var H9_=0;H9_ < this.inputs.length;H9_++){s0R="d";s0R+="at";s0R+="e";u93=this.inputs[H9_];if(u93.type == s0R){S6O=" ";S6O+="Date";v3D=u93.name.substring(0,u93.name.indexOf(S6O));for(var t9e=0;t9e < this.inputs.length;t9e++){A6C="t";A6C+="i";A6C+="m";A6C+="e";P3P=this.inputs[t9e];if(P3P.type == A6C){if(P3P.name == v3D + " Time"){this.dateTimeInputs.push(v3D);break;}}}}}this.adjustInputTimesForDisplayZone();for(T0B in h1I.outputs){j6g={name:T0B,heading:H0p.translateIf(T0B)};j6g.color=j6g.defaultOutput=h1I.outputs[T0B];if(z5X && z5X.outputs && z5X.outputs[T0B]){j6g.color=z5X.outputs[T0B];}if(j6g.color == "auto"){j6g.color=H0p.defaultColor;}this.outputs.push(j6g);}e$6=z5X?z5X.parameters:null;if(h1I.parameters){g0w=h1I.parameters.init;if(g0w){if(g0w.studyOverZonesEnabled !== undefined){e8r={name:"studyOverZones",heading:H0p.translateIf("Show Zones"),defaultValue:g0w.studyOverZonesEnabled,value:g0w.studyOverZonesEnabled};if(e$6 && (e$6.studyOverZonesEnabled || e$6.studyOverZonesEnabled === !({}))){e8r.value=e$6.studyOverZonesEnabled;}e8r.type="checkbox";this.parameters.push(e8r);}if(g0w.studyOverBoughtValue !== undefined){E$2="t";E$2+="e";E$2+="x";E$2+="t";e8r={name:"studyOverBought",heading:H0p.translateIf("OverBought"),defaultValue:g0w.studyOverBoughtValue,value:g0w.studyOverBoughtValue,defaultColor:g0w.studyOverBoughtColor,color:g0w.studyOverBoughtColor};if(e$6 && e$6.studyOverBoughtValue){e8r.value=e$6.studyOverBoughtValue;}if(e$6 && e$6.studyOverBoughtColor){e8r.color=e$6.studyOverBoughtColor;}if(e8r.color == "auto"){e8r.color=H0p.defaultColor;}e8r.type=E$2;this.parameters.push(e8r);}if(g0w.studyOverSoldValue !== undefined){e8r={name:"studyOverSold",heading:H0p.translateIf("OverSold"),defaultValue:g0w.studyOverSoldValue,value:g0w.studyOverSoldValue,defaultColor:g0w.studyOverSoldColor,color:g0w.studyOverSoldColor};if(e$6 && e$6.studyOverSoldValue){e8r.value=e$6.studyOverSoldValue;}if(e$6 && e$6.studyOverSoldColor){e8r.color=e$6.studyOverSoldColor;}if(e8r.color == "auto"){e8r.color=H0p.defaultColor;}e8r.type="text";this.parameters.push(e8r);}if(!this.attributes.studyOverBoughtValue){this.attributes.studyOverBoughtValue={};}if(!this.attributes.studyOverSoldValue){this.attributes.studyOverSoldValue={};}}}l1w=this.panelSelect=G1K.panelSelect;F17=this.axisSelect=G1K.axisSelect;e_2.a9S();if(G1K.addWhenDone){F17=l1w=!({});}if(F17 || l1w){v$y="yaxisDis";v$y+="play";v$y+="Valu";v$y+="e";if(!z5X){z5X=j6q.Studies.addStudy(H0p,G1K.name,null,null,{calculateOnly:!!({})});j6q.Studies.removeStudy(H0p,z5X);}if(l1w){A4$="Sho";A4$+="w";A4$+=" ";A4$+="as Underlay";a3Y="A";a3Y+="uto";this.parameters.push(U$e({label:"Panel",name:"panelName",defaults:(function(){var b$b;b$b=[];e_2.a9S();b$b.push("Auto");for(var O4N in H0p.panels){if(O4N != z5X.panel || !e$6 || !e$6.panelName){b$b.push(q20(O4N));}}if(!H0p.checkForEmptyPanel(z5X.panel,!![],z5X)){b$b.push("New panel");}return b$b;})(),value:e$6 && e$6.panelName?q20(e$6.panelName):a3Y}),P_T({label:A4$,name:"underlay",defaults:!!"",value:z5X.underlay || z5X.parameters && z5X.parameters.underlayEnabled}));}e_2.H6P(1);D$l=-e_2.S40(1,"1361208857");e_2.D0J(1);g1H=-e_2.q7n(1,"729350451");M4I=2;for(var o5F="1" - 0;e_2.U6$(o5F.toString(),o5F.toString().length,66596) !== D$l;o5F++){z7Q=H0p.getYAxisByName(m7q,z5X.name);M4I+=2;}if(e_2.U6$(M4I.toString(),M4I.toString().length,59405) !== g1H){z7Q=H0p.getYAxisByName(m7q,z5X.name);}if(F17){a6L="flip";a6L+="p";a6L+="ed";m6J="I";m6J+="nvert Y-Axi";m6J+="s";l7B="d";l7B+="ef";l7B+="au";l7B+="lt";B8u="Y-A";B8u+="x";B8u+="is";this.parameters.push(U$e({label:B8u,name:"yaxisDisplay",defaults:(function(){var e9t,S7e,X2g,k2E,K2m;e9t="shar";e9t+="ed";S7e="lef";S7e+="t";X2g="r";X2g+="i";X2g+="gh";X2g+="t";k2E=m7q.yaxisLHS.concat(m7q.yaxisRHS);K2m=[];K2m.push("default",X2g,S7e,"none",e9t);for(var n2d=+"0";n2d < k2E.length;n2d++){if(k2E[n2d] != z7Q){K2m.push(k2E[n2d].name);}}return K2m;})(),value:e$6 && e$6.yaxisDisplayValue || z7Q && z7Q.position || (z5X.panel != z5X.name?"shared":m7q.yAxis.position || l7B),color:z7Q && z7Q.textStyle?z7Q.textStyle:"auto"}),P_T({label:m6J,name:a6L,defaults:![],value:e$6?e$6.flippedEnabled:z7Q?z7Q.flipped:![]}));}V7Z.call(this,"flippedEnabled",!z7Q && z5X.panel != z5X.name);V7Z.call(this,"underlayEnabled",h1I.underlay);V7Z.call(this,"panelName",h1I.seriesFN === null);V7Z.call(this,v$y,h1I.seriesFN === null || h1I.yAxis && h1I.yAxis.noDraw);}};j6q.Studies.DialogHelper.prototype.updateStudy=function(z9n){var p4n,a_q,p3q,u09;p4n={};a_q=this.sd;p3q=this.libraryEntry;if(!p3q){p3q={};}if(!a_q){a_q=p3q;}p4n.inputs=j6q.clone(a_q.inputs);p4n.outputs=j6q.clone(a_q.outputs);p4n.parameters=j6q.clone(a_q.parameters);function q2g(k3n){var c88=A2IFV;var f7B,O$k,p6o,R9w;if(this.panelSelect == "alias"){f7B=I0B(k3n);if(f7B){for(var D83 in this.stx.panels){if(!--f7B){return D83;}}}}O$k=-1771844819;p6o=-225640795;c88.H6P(21);R9w=c88.q7n("2",0);function I0B(q3I){c88.D0H();var e6m;e6m=q3I.match(/.* (\d)/);return e6m && e6m[+"1"];}for(var h0$=1;c88.U6$(h0$.toString(),h0$.toString().length,84155) !== O$k;h0$++){return k3n;}if(c88.Z2Z(R9w.toString(),R9w.toString().length,+"20071") !== p6o){return k3n;}}this.adjustInputTimesForDisplayZone(z9n);if(z9n.parameters && z9n.parameters.panelName){z9n.parameters.panelName=q2g.call(this,z9n.parameters.panelName);}j6q.extend(p4n,z9n);if(!p4n.parameters){p4n.parameters={};}if(p4n.inputs && p4n.inputs.id){a_q=j6q.Studies.replaceStudy(this.stx,p4n.inputs.id,this.name,p4n.inputs,p4n.outputs,p4n.parameters,null,a_q.study);}else {a_q=j6q.Studies.addStudy(this.stx,this.name,p4n.inputs,p4n.outputs,p4n.parameters,null,a_q.study);}u09=new j6q.Studies.DialogHelper({stx:this.stx,sd:a_q,axisSelect:this.axisSelect,panelSelect:this.panelSelect});for(var B$g in u09){if(B$g != "signal"){this[B$g]=u09[B$g];}}A2IFV.D0H();this.signal*=-1;;};j6q.Studies.DialogHelper.prototype.adjustInputTimesForDisplayZone=function(H58){var t6G=A2IFV;var X4r,q_n,k1t,R7J,j7_,g2V,z6x,B2N,Z1m,y2_;if(this.stx.displayZone){for(var i9J=0;i9J < this.dateTimeInputs.length;i9J++){X4r=this.dateTimeInputs[i9J];g2V="";if(H58 && H58.inputs){t6G.H6P(0);k1t=H58.inputs[t6G.S40(X4r," Date")];t6G.D0J(0);R7J=H58.inputs[t6G.S40(X4r," Time")];if(k1t){g2V=k1t;}if(R7J){g2V+=R7J;}}for(q_n=0;q_n < this.inputs.length;q_n++){z6x=" D";z6x+="ate";j7_=this.inputs[q_n];if(!k1t && k1t !== "" && j7_.name == X4r + z6x){g2V=j7_.value + g2V;}else if(!R7J && R7J !== "" && j7_.name == X4r + " Time"){g2V+=j7_.value;}}g2V=g2V.replace(/\D/g,"");if(g2V.length < 12){return;}B2N=j6q.strToDateTime(g2V);if(!isNaN(B2N.valueOf())){if(H58){if(!H58.inputs){H58.inputs={};}Z1m=j6q.convertTimeZone(B2N,this.stx.displayZone);t6G.D0J(0);H58.inputs[t6G.q7n(X4r," Date")]=j6q.yyyymmdd(Z1m);t6G.H6P(0);H58.inputs[t6G.S40(X4r," Time")]=j6q.hhmmss(Z1m);}else {Z1m=j6q.convertTimeZone(B2N,null,this.stx.displayZone);for(q_n=0;q_n < this.inputs.length;q_n++){y2_=" Tim";y2_+="e";j7_=this.inputs[q_n];if(j7_.name == X4r + " Date"){j7_.value=j6q.yyyymmdd(Z1m);}if(j7_.name == X4r + y2_){j7_.value=j6q.hhmmss(Z1m);}}}}}}};j6q.Studies.prepareStudy=function(d$s,M55,U9N){var j71=A2IFV;var d9p;d9p="undefin";d9p+="e";d9p+="d";if(typeof M55.calculateFN == d9p){M55.useRawValues=!!({});}if(j6q.isEmpty(U9N.outputMap)){for(var O3Q in U9N.outputs){if(M55.useRawValues){U9N.outputMap[O3Q]=O3Q;}else {j71.D0J(62);var f2R=j71.S40(11,423,7,42);j71.D0J(101);var C6d=j71.S40(4,14,11,4286,55804);j71.H6P(57);var u0F=j71.S40(4772,9548,6,2);j71.D0J(90);var F7B=j71.q7n(113050,7106,2,8);j71.D0J(0);var B5L=j71.q7n(1040,10);j71.D0J(52);var r0P=j71.q7n(67090,3532,20);j71.D0J(0);var o0o=j71.S40(489,3421);j71.H6P(109);var P3M=j71.q7n(2,602,20,10,6558);j71.D0J(117);var g51=j71.S40(8,5,20,16);j71.H6P(118);var c2M=j71.q7n(780,15,65,15,325);j71.D0J(15);var n$X=j71.q7n(10,1160,30);U9N.outputMap[O3Q + (("4849" | f2R) > C6d?" ":(u0F,F7B) !== (B5L,"3990" | 0)?r0P < (o0o,P3M)?"0x1ca7" * g51:(c2M,"k"):(n$X,+"5.07e+3")) + U9N.name]=O3Q;}}}};j6q.Studies.rejiggerDerivedStudies=function(G4I,X_T,U5i){var D6h,B4j,E5Z,x4N,e69,L87,V9Z,Y38,E3S;D6h=X_T.name;B4j=X_T.panel;E5Z=X_T.getDependents(G4I);for(var s6h=+"0";s6h < E5Z.length;s6h++){x4N=E5Z[s6h];e69=j6q.clone(x4N.inputs);L87=e69.id;if(!L87)continue;V9Z=!({});Y38=j6q.Studies.getFieldInputs(x4N);for(var R1B=0;R1B < Y38.length;R1B++){e69[Y38[R1B]]=e69[Y38[R1B]].replace(D6h,U5i);}E3S=j6q.Studies.replaceStudy(G4I,L87,x4N.type,e69,x4N.outputs,j6q.extend(x4N.parameters,{rejiggering:!![]}),null,x4N.study);delete E3S.parameters.rejiggering;}};j6q.Studies.removeStudySymbols=function(v6F,m0A){A2IFV.D0H();if(v6F.series){for(var R$m in v6F.series){m0A.deleteSeries(v6F.series[R$m],null,{action:"remove-study"});}};};j6q.Studies.replaceStudy=function(S8X,l3n,r80,M46,p99,q2x,H8d,A7Z){var K73,X2v,b_z,V2z;if(!q2x){q2x={};}if(l3n){q2x.replaceID=l3n;}l3n=q2x.replaceID;K73=S8X.layout.studies[l3n];j6q.Studies.removeStudySymbols(K73,S8X);if(K73.attribution){S8X.removeFromHolder(K73.attribution.marker);}if(S8X.quoteDriver){S8X.quoteDriver.updateSubscriptions();}if(M46){if(M46.id == M46.display){delete M46.display;}delete M46.id;}X2v=j6q.Studies.addStudy(S8X,r80,M46,p99,q2x,H8d,A7Z);X2v.highlight=K73.highlight;X2v.uniqueId=K73.uniqueId;V2z={};for(b_z in S8X.layout.studies){if(b_z == l3n){V2z[X2v.name]=X2v;}else {V2z[b_z]=S8X.layout.studies[b_z];}}S8X.layout.studies=V2z;V2z={};for(b_z in S8X.overlays){if(b_z == l3n){if(X2v.overlay || X2v.underlay){V2z[X2v.name]=X2v;}}else {V2z[b_z]=S8X.overlays[b_z];}}S8X.overlays=V2z;if(!S8X.overlays[X2v.name] && (X2v.overlay || X2v.underlay)){S8X.addOverlay(X2v);}S8X.checkForEmptyPanel(K73.panel);if(!q2x.rejiggering){S8X.initializeDisplay(S8X.chart);j6q.Studies.rejiggerDerivedStudies(S8X,K73,X2v.inputs.id,X2v.panel);S8X.changeOccurred("layout");if(!S8X.currentlyImporting && !q2x.calculateOnly && X2v.chart.dataSet){S8X.createDataSet(null,X2v.chart);}S8X.draw();}j6q.transferObject(K73,X2v);S8X.layout.studies[X2v.name]=K73;S8X.overlays[X2v.name]=K73;S8X.chart.state.studies.sorted=null;return K73;};j6q.Studies.addStudy=function(r8$,H4M,v1a,b7R,Y0N,X$i,l36){var I9I=A2IFV;var E2y,k6W,Z_W,a$e,K1h,E0f,R_9,p1K,v4D,j26,r5G,Z58,j6H;E2y=l36?l36:j6q.Studies.studyLibrary[H4M];if(!Y0N){Y0N={};}if(E2y){if(E2y.inputs){k6W=j6q.clone(E2y.inputs);for(var P6t in k6W){if(k6W[P6t] instanceof Array){if(E2y.attributes && E2y.attributes[P6t] && E2y.attributes[P6t].defaultSelected){k6W[P6t]=E2y.attributes[P6t].defaultSelected;}else {k6W[P6t]=k6W[P6t][0];}}}v1a=j6q.extend(k6W,v1a);}if(E2y.outputs){b7R=j6q.extend(j6q.clone(E2y.outputs),b7R);}Z_W=E2y.parameters;if(Z_W && Z_W.init){Y0N=j6q.extend(j6q.clone(Z_W.init),Y0N);}if(Z_W && !Y0N.display){Y0N.display=Z_W.display;}}if(!v1a){v1a=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(!b7R){b7R=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}if(!Y0N.chartName){Y0N.chartName="chart";}if(Y0N.panelName == "Auto" || Y0N.panelName == "Default panel"){Y0N.panelName="";}if(v1a.Period < 1){v1a.Period=1;}a$e=null;if(!r8$.layout.studies){r8$.layout.studies={};}if(E2y && E2y.initializeFN){a$e=E2y.initializeFN(r8$,H4M,v1a,b7R,Y0N,X$i,l36);}else {a$e=j6q.Studies.initializeFN(r8$,H4M,v1a,b7R,Y0N,X$i,l36);}if(!a$e){I9I.H6P(0);console.log(I9I.q7n("CIQ.Studies.addStudy: initializeFN() returned null for ",H4M));return;}l36=a$e.study;a$e.chart=r8$.charts[Y0N.chartName];a$e.type=H4M;a$e.permanent=l36.permanent;a$e.customLegend=l36.customLegend;a$e.uniqueId=j6q.uniqueID();j6q.Studies.prepareStudy(r8$,l36,a$e);K1h=r8$.chart.state.studies;if(!K1h){K1h=r8$.chart.state.studies={};}K1h.sorted=null;if(!Y0N.replaceID){r8$.layout.studies[a$e.inputs.id]=a$e;if(a$e.overlay || a$e.underlay){r8$.addOverlay(a$e);}if(!r8$.currentlyImporting && !Y0N.calculateOnly && a$e.chart.dataSet){r8$.createDataSet(null,a$e.chart);}}else {E0f=!0;delete Y0N.replaceID;}if(r8$.quoteDriver){r8$.quoteDriver.updateSubscriptions();}if(Y0N.calculateOnly){R_9="lay";R_9+="o";R_9+="u";R_9+="t";r8$.changeOccurred(R_9);return a$e;}p1K=r8$.panels[a$e.panel];v4D=![];j26=!(a$e.overlay || a$e.underlay);if(j26 && l36.horizontalCrosshairFieldFN){p1K.horizontalCrosshairField=l36.horizontalCrosshairFieldFN(r8$,a$e);}if(r8$.editCallback){v4D=!0;}else if(j26){if(r8$.callbackListeners.studyPanelEdit && r8$.callbackListeners.studyPanelEdit.length){v4D=!!({});}}else {if(r8$.callbackListeners.studyOverlayEdit && r8$.callbackListeners.studyOverlayEdit.length){v4D=!!({});}}if(v4D){Y0N.editMode=!!({});r5G=![];for(var q4l in a$e.inputs){if(q4l == "id")continue;if(q4l == "display")continue;r5G=!!1;break;}if(!r5G){for(var D3H in a$e.outputs){r5G=!![];break;}}if(r5G){if(typeof a$e.study.edit != "undefined"){if(a$e.study.edit){Z58=(function(K3h,j5i,c8F,m_O){I9I.D0H();return function(){j6q.clearCanvas(K3h.chart.tempCanvas,K3h);j5i.study.edit(j5i,{stx:K3h,inputs:c8F,outputs:m_O,parameters:Y0N});};})(r8$,a$e,v1a,b7R,Y0N);r8$.setPanelEdit(p1K,Z58);a$e.editFunction=Z58;}}else if(!j26){Z58=(function(G1p,z46,H3N,Z4c,v9Y){I9I.a9S();return function(s7o){I9I.a9S();j6q.clearCanvas(G1p.chart.tempCanvas,G1p);G1p.dispatch("studyOverlayEdit",{stx:G1p,sd:z46,inputs:H3N,outputs:Z4c,parameters:v9Y,forceEdit:s7o});};})(r8$,a$e,v1a,b7R,Y0N);a$e.editFunction=Z58;}else {if(r8$.editCallback){Z58=(function(Q2r,R2K,I81,q2r){I9I.a9S();return function(){var i9o;i9o=Q2r.editCallback(Q2r,R2K);j6q.clearCanvas(Q2r.chart.tempCanvas,Q2r);j6q.Studies.studyDialog(Q2r,H4M,i9o,{inputs:I81,outputs:q2r,parameters:Y0N});};})(r8$,a$e,v1a,b7R,Y0N);if(p1K.name != "chart"){r8$.setPanelEdit(p1K,Z58);}}else {j6H="ch";j6H+="a";j6H+="rt";Z58=(function(F2b,x_8,r57,x_t,V74){return function(){j6q.clearCanvas(F2b.chart.tempCanvas,F2b);F2b.dispatch("studyPanelEdit",{stx:F2b,sd:x_8,inputs:r57,outputs:x_t,parameters:V74});};})(r8$,a$e,v1a,b7R,Y0N);if(p1K.name != j6H){r8$.setPanelEdit(p1K,Z58);a$e.editFunction=Z58;}}}}}r8$.changeOccurred("layout");if(!E0f){r8$.draw();}return a$e;};j6q.Studies.removeStudy=function(N$F,j$e){var k_5,o5u,O4O,I8D;k_5=N$F.panels[j$e.panel];o5u=k_5 && k_5.yAxis.name;if(j$e.overlay || j$e.underlay){N$F.removeOverlay(j$e.name);}O4O=N$F.panels[j$e.panel];if(j$e.attribution){N$F.removeFromHolder(j$e.attribution.marker);}delete N$F.layout.studies[j$e.name];if(O4O && !N$F.checkForEmptyPanel(O4O)){if(o5u == j$e.name){N$F.electNewPanelOwner(O4O);}I8D=N$F.getYAxisByName(j$e.panel,j$e.name);if(I8D){I8D.name=I8D.studies[+"1"] || I8D.renderers[0];}}N$F.draw();A2IFV.D0H();N$F.resizeChart();};j6q.Studies.getPanelFromFieldName=function(P2M,p$Y){var F$i,c6g,v6B,y3W,d_J;F$i=j6q.Studies.getFieldInputs(p$Y);if(!F$i.length){return null;}c6g=P2M.layout.studies;if(!c6g){return null;}v6B={};for(var s2F in c6g){for(var z0V in c6g[s2F].outputMap){v6B[z0V]=c6g[s2F].panel;}}for(var Y5g=0;Y5g < F$i.length;Y5g++){y3W=p$Y.inputs[F$i[Y5g]];if(y3W){d_J=v6B[y3W];if(d_J){return d_J;}}}return null;};j6q.Studies.createLibraryHash=function(){var u6E=A2IFV;var c3o,t8_,Q3L;c3o=-308398831;u6E.D0J(10);t8_=-u6E.q7n("231253380",0);u6E.H6P(21);Q3L=u6E.q7n("2",0);for(var n8u=1;u6E.Z2Z(n8u.toString(),n8u.toString().length,23553) !== c3o;n8u++){return Object.keys(j6q.Studies.studyLibrary).join(1191 == ("1431" * 1,2918)?(128847,545935) === (929733,97506)?183067 == (4745,788)?("h",!({})):!![]:("h","|"):"h");}if(u6E.Z2Z(Q3L.toString(),Q3L.toString().length,60065) !== t8_){return Object.keys(j6q.Studies.studyLibrary).join(9850 === (6966,3044)?(958.62,460.86) !== ("698.48" - 0,551.6)?817.11 !== (4200,266)?("I",!0):!!"":("i","h"):"|");};};j6q.Studies.displayStudies=function(q1m,e56,j6O){var J0y,l7f,i04,d$Z,x26,v0Q,H3M,S$e,W51,o5N,r8J,Y68,H9q,z5z,j1n,d7h;if(j6O){e56.studyLibraryHash=j6q.Studies.createLibraryHash();}J0y=q1m.layout.studies;if(!J0y){return;}l7f={};l7f[e56.name]=!0;for(var f$q in J0y){i04="u";i04+="n";i04+="defined";d$Z=J0y[f$q];x26=d$Z.study;if(!x26)continue;v0Q=d$Z.underlay || d$Z.parameters && d$Z.parameters.underlayEnabled;if(j6O && !v0Q || !j6O && v0Q)continue;H3M=j6q.clone(x26.renderer);if(H3M && !(H3M instanceof Array)){H3M=[H3M];}S$e=q1m.panels[d$Z.panel];if(S$e){if(S$e.chart != e56)continue;if(S$e.hidden)continue;if(!l7f[S$e.name]){W51=d$Z.permanent || !q1m.manageTouchAndMouse;if(S$e.closeX){if(W51){S$e.closeX.style.display="none";}}else if(S$e.close){o5N="no";o5N+="ne";if(W51){S$e.close.style.display=o5N;}}if(S$e.edit){if(W51){S$e.edit.style.display="none";}}l7f[S$e.name]=W51;}}else {if(q1m.currentlyImporting){delete J0y[f$q];}continue;}r8J=d$Z.chart.dataSegment;if(d$Z.panel == d$Z.parameters.chartName && (!d$Z.parameters || !d$Z.parameters.panelName)){Y68=j6q.Studies.getPanelFromFieldName(q1m,d$Z);if(Y68 && d$Z.panel != Y68){d$Z.panel=Y68;}}if(typeof x26.seriesFN == i04){if(H3M){if(!d$Z.overlay){j6q.Studies.createYAxis(q1m,d$Z,r8J,S$e);}for(var A9R=0;A9R < H3M.length;A9R++){H9q=H3M[A9R];for(var x$C in d$Z.outputMap){if(d$Z.outputMap[x$C] == H9q.field){H9q.field=x$C;}}if(!H9q.field)continue;H9q.panel=d$Z.panel;z5z=H9q.binding;if(z5z){for(var O4f in z5z){j1n=j6q.Studies.determineColor(d$Z.outputs[z5z[O4f]]);if(j1n && j1n != "auto"){H9q[O4f]=j1n;};}}H9q.yAxis=null;d7h=j6q.Renderer.produce(H9q.type,H9q);d7h.stx=q1m;d7h.attachSeries(null,H9q).draw();}}else {j6q.Studies.displaySeriesAsLine(q1m,d$Z,r8J);}if(S$e){j6q.Studies.displayError(q1m,d$Z);}}else {if(x26.seriesFN){if(S$e){x26.seriesFN(q1m,d$Z,r8J);j6q.Studies.displayError(q1m,d$Z);}}}}};j6q.Studies.displayError=function(G4U,o5a,f4W){var Z5m,I4L,z9a;Z5m="Not enough da";Z5m+="ta to";Z5m+=" compu";Z5m+="te ";if(!o5a.error){return;}I4L=f4W && f4W.panel?f4W.panel:o5a.panel;z9a=o5a.error === !!({})?G4U.translateIf(Z5m) + G4U.translateIf(o5a.study.name):G4U.translateIf(o5a.error);if(f4W && (f4W.h !== "center" || f4W.v !== "bottom")){G4U.watermark(I4L,f4W);return;}G4U.displayErrorAsWatermark(I4L,z9a);};j6q.Studies.calculateMinMaxForDataPoint=function(M$0,v$t,d_L){A2IFV.D0H();var i4v,X8t,n22;i4v=Number.MAX_VALUE;X8t=Number.MAX_VALUE * -("1" - 0);for(var N8H=0;N8H < d_L.length;N8H++){n22=d_L[N8H][v$t];if(n22 === null || typeof n22 == "undefined")continue;if(isNaN(n22))continue;i4v=Math.min(n22,i4v);X8t=Math.max(n22,X8t);}return {min:i4v,max:X8t};};j6q.Studies.getYAxisParameters=function(P1M,X05){var o3o,B1Y,p8M,Z2j;A2IFV.a9S();o3o={};B1Y=P1M.layout.studies && P1M.layout.studies[X05.name];if(B1Y){p8M=B1Y.study;if(p8M.yaxis || p8M.yAxisFN){o3o.noDraw=!![];}else {if(p8M.parameters && p8M.parameters.excludeYAxis){o3o.noDraw=!!"1";}o3o.ground=p8M.yAxis && p8M.yAxis.ground;if(X05){if(p8M.range != "bypass"){Z2j="0 t";Z2j+="o 100";if(p8M.range == Z2j){o3o.range=[0,100];}else if(p8M.range == "-1 to 1"){o3o.range=[-1,1];}else {if(p8M.range == "0 to max"){o3o.range=[0,Math.max(0,X05.high)];}else if(p8M.centerline || p8M.centerline === 0){o3o.range=[Math.min(p8M.centerline,X05.low),Math.max(p8M.centerline,X05.high)];}}}if(o3o.range){X05.low=o3o.range[0];X05.high=o3o.range[1];}if(B1Y.min){X05.min=B1Y.min;}if(B1Y.max){X05.max=B1Y.max;}if(B1Y.parameters && B1Y.parameters.studyOverZonesEnabled){o3o.noDraw=!!1;}}}}return o3o;};j6q.Studies.doPostDrawYAxis=function(c_V,v9g){var V9s,U9e,a7d,r_l,e0J;for(var i7j in c_V.layout.studies){V9s=c_V.layout.studies[i7j];U9e=c_V.panels[V9s.panel];if(!U9e || U9e.hidden)continue;a7d=V9s.getYAxis(c_V);if(a7d != v9g)continue;r_l=V9s.study;if(v9g.name == V9s.name){if(r_l.yaxis){r_l.yaxis(c_V,V9s);}if(r_l.yAxisFN){r_l.yAxisFN(c_V,V9s);};}j6q.Studies.drawZones(c_V,V9s);if(!V9s.error){e0J=r_l.centerline;if(e0J || e0J === 0 || e0J !== null && v9g.highValue > +"0" && v9g.lowValue < +"0"){j6q.Studies.drawHorizontal(c_V,V9s,null,e0J || 0,v9g);}}}};j6q.Studies.displaySeriesAsLine=function(p8t,a0S,P8R){var x40;if(!P8R.length){return;}x40=p8t.panels[a0S.panel];if(!x40 || x40.hidden){return;}A2IFV.D0H();for(var U$K in a0S.outputMap){j6q.Studies.displayIndividualSeriesAsLine(p8t,a0S,x40,U$K,P8R);}};j6q.Studies.displaySeriesAsHistogram=function(T$m,R$v,a71){var V_q,W_6,F1P,A$9,Q6K,K0_,a5j,o$O,J2v,X_j;if(!a71.length){return;}V_q=T$m.panels[R$v.panel];if(!V_q){return;}if(V_q.hidden){return;}W_6=[];for(var K31 in R$v.outputMap){F1P=R$v.outputs[R$v.outputMap[K31]];if(!F1P)continue;A$9=0.3;if(typeof F1P == "object"){A$9=F1P.opacity;F1P=F1P.color;}Q6K={field:K31,fill_color_up:F1P,border_color_up:F1P,fill_color_down:F1P,border_color_down:F1P};if(R$v.underlay){Q6K.opacity_up=Q6K.opacity_down=A$9 || "0.3" * 1;}W_6.push(Q6K);}A2IFV.D0H();K0_=R$v.getYAxis(T$m);a5j=R$v.inputs;o$O=a5j.WidthFactor;if(R$v.study && R$v.study.parameters){J2v=R$v.study.parameters;if(typeof J2v.widthFactor !== "undefined"){o$O=J2v.widthFactor;}}X_j={name:R$v.name,type:a5j.HistogramType?a5j.HistogramType:"overlaid",panel:R$v.panel,yAxis:K0_,widthFactor:o$O || 0.5,bindToYAxis:!![],highlight:R$v.highlight};T$m.drawHistogram(X_j,W_6);};j6q.Studies.displayIndividualSeriesAsLine=function(a7X,z0H,b3B,k$l,P0P){var u5x,P5J,f3h,A6W,M8e,t4p,F38,a$g,u1n,L1c,t7C,e9T,h3i,a$d,j9G,L6M,w5v;u5x="t";u5x+="rans";u5x+="p";u5x+="arent";P5J="st";P5J+="ring";if(!b3B.height){b3B.height=b3B.bottom - b3B.top;}f3h=z0H.getContext(a7X);A6W=z0H.outputs[z0H.outputMap[k$l]];if(!A6W){return;}f3h.save();if(typeof A6W === P5J){A6W={color:A6W,width:1};}f3h.lineWidth=A6W.width || 1;M8e=A6W.color;if(M8e == "auto"){M8e=a7X.defaultColor;}f3h.strokeStyle=M8e;t4p=A6W.pattern;f3h.setLineDash(j6q.borderPatternToArray(f3h.lineWidth,t4p));f3h.lineDashOffset=0;F38=+"0";a$g=z0H.study;u1n=z0H.getYAxis(a7X);F38=a7X.decimalPlacesFromPriceTick(u1n.priceTick);if(z0H.overlay || z0H.underlay){F38=null;}if(u1n.decimalPlaces || u1n.decimalPlaces === 0){F38=u1n.decimalPlaces;}L1c=null;if(z0H.parameters){L1c=z0H.parameters.label;}t7C=a$g.parameters;if(!t7C){t7C={};}e9T=t7C.plotType == "step";if(z0H.series){for(var L1k in z0H.series){h3i=z0H.series[L1k].parameters.type;if(h3i){A2IFV.H6P(68);e9T=A2IFV.S40(h3i,"step");}}}if(t7C.noLabels){L1c=![];}if(!z0H.noSlopes && z0H.noSlopes !== !({})){z0H.noSlopes=t7C.noSlopes;}if(!z0H.extendToEnd && z0H.extendToEnd !== !!""){z0H.extendToEnd=t7C.extendToEnd;}a$d=L1c || a7X.preferences.labels && L1c !== ![];j9G=z0H.gaplines;if(j9G === !({})){j9G=u5x;}A2IFV.a9S();L6M=z0H.inputs.Symbol;w5v=j9G?a7X.getGapColorFunction(L6M,k$l,A6W,j9G):null;a7X.plotDataSegmentAsLine(k$l,b3B,{yAxis:u1n,skipTransform:a7X.panels[z0H.panel].name != z0H.chart.name,label:a$d,labelDecimalPlaces:F38,noSlopes:z0H.noSlopes,step:e9T,alignStepToSide:z0H.alignStepToSide,extendToEndOfLastBar:z0H.extendToEndOfLastBar,width:z0H.lineWidth,extendToEndOfDataSet:z0H.extendToEnd,gapDisplayStyle:j9G,highlight:z0H.highlight},w5v);if(a$g.appendDisplaySeriesAsLine){a$g.appendDisplaySeriesAsLine(a7X,z0H,P0P,k$l,b3B);}f3h.restore();};j6q.Studies.drawHorizontal=function(l4N,c0s,V6q,Y2V,T9s,x2J){var F8X,t4M,f0U;F8X=l4N.panels[c0s.panel];t4M=l4N.getBackgroundCanvas().context;if(!F8X){return;}if(!x2J){x2J=T9s.textStyle;}A2IFV.D0H();f0U=l4N.pixelFromPrice(Y2V,F8X,T9s);if(f0U > T9s.top && f0U < T9s.bottom){l4N.plotLine(F8X.left,F8X.right,f0U,f0U,x2J,"segment",t4M,!!0,{opacity:x2J && x2J.opacity?x2J.opacity:0.5});}};j6q.Studies.displayHistogramWithSeries=function(b2W,B3s,o2H){var n_f,f$Y;n_f=b2W.panels[B3s.panel];f$Y=0.5;A2IFV.D0H();if(B3s.underlay){f$Y=0.3;}j6q.Studies.createHistogram(b2W,B3s,o2H,!!"",f$Y);j6q.Studies.displaySeriesAsLine(b2W,B3s,o2H);};j6q.Studies.drawZones=function(x3l,I3$,l3k){var e2Y=A2IFV;var L58,d8M,g4H,s24,p54,q$5,u3g,d$n,i2V,R2i,K5l,P$G,e$C,B_V,g6F,Z4v,A3C,G1d,T1f,g7G,I5S,A40,i_P,u5O,x3c,n3B,O1a,l06;L58="borde";L58+="r";d8M="l";d8M+="ef";d8M+="t";g4H="aut";g4H+="o";if(!I3$.parameters || !I3$.parameters.studyOverZonesEnabled){return;}s24=parseFloat(I3$.parameters.studyOverSoldValue);p54=parseFloat(I3$.parameters.studyOverBoughtValue);q$5=I3$.parameters.studyOverSoldColor;u3g=I3$.parameters.studyOverBoughtColor;d$n=I3$.zoneOutput;if(!d$n){d$n="Result";}i2V=j6q.Studies.determineColor(I3$.outputs[d$n]);if(!i2V || i2V == g4H || j6q.isTransparent(i2V)){i2V=x3l.defaultColor;}if(!q$5){q$5=i2V;}if(!q$5 || q$5 == "auto" || j6q.isTransparent(q$5)){q$5=x3l.defaultColor;}if(!u3g){u3g=i2V;}if(!u3g || u3g == "auto" || j6q.isTransparent(u3g)){u3g=x3l.defaultColor;}R2i=x3l.panels[I3$.panel];K5l=I3$.getYAxis(x3l);P$G=K5l.displayBorder;if(x3l.axisBorders === !"1"){P$G=!({});}if(x3l.axisBorders === !""){P$G=!!({});}if(K5l.width === 0){P$G=!"1";}e$C=x3l.getYAxisCurrentPosition(K5l,R2i);e2Y.D0J(68);B_V=e2Y.S40(e$C,d8M);g6F=K5l.justifyRight;if(!g6F && g6F !== !!0){if(x3l.chart.yAxis.justifyRight || x3l.chart.yAxis.justifyRight === !"1"){g6F=x3l.chart.yAxis.justifyRight;}else {g6F=B_V;}}Z4v=Math.round(K5l.left + (B_V?K5l.width:0)) + 0.5;A3C=P$G?3:0;G1d=x3l.getBackgroundCanvas().context;T1f=G1d.fillStyle;G1d.globalAlpha=0.2;x3l.startClip(R2i.name,!![]);G1d.beginPath();g7G=Math.round(x3l.pixelFromPrice(p54,R2i,K5l)) + 0.5;G1d.strokeStyle=u3g;G1d.moveTo(R2i.left,g7G);G1d.lineTo(R2i.right,g7G);G1d.stroke();G1d.closePath();G1d.beginPath();e2Y.H6P(119);var J$Z=e2Y.q7n(3,3,7,0,14);I5S=Math.round(x3l.pixelFromPrice(s24,R2i,K5l)) + "0.5" * J$Z;G1d.strokeStyle=q$5;G1d.moveTo(R2i.left,I5S);G1d.lineTo(R2i.right,I5S);G1d.stroke();G1d.closePath();A40=new j6q.Plotter();A40.newSeries(L58,"stroke",x3l.canvasStyle("stx_grid_border"));if(P$G){i_P=B_V?Z4v - A3C:Z4v - 0.5;u5O=B_V?Z4v + 0.5:Z4v + A3C;A40.moveTo("border",i_P,g7G);A40.lineTo("border",u5O,g7G);A40.moveTo("border",i_P,I5S);A40.lineTo("border",u5O,I5S);}G1d.fillStyle=T1f;x3c={skipTransform:x3l.panels[I3$.panel].name != I3$.chart.name,panelName:I3$.panel,band:d$n + " " + I3$.name,yAxis:K5l,opacity:"0.3" - 0};if(!I3$.highlight && x3l.highlightedDraggable){e2Y.D0J(1);x3c.opacity*=e2Y.q7n(1,"0.3");}j6q.preparePeakValleyFill(x3l,j6q.extend(x3c,{threshold:p54,direction:K5l.flipped?-1:1,color:u3g}));j6q.preparePeakValleyFill(x3l,j6q.extend(x3c,{threshold:s24,direction:K5l.flipped?1:-1,color:q$5}));G1d.globalAlpha=1;if(!I3$.study || !I3$.study.yaxis){if(P$G){n3B=Math.round(K5l.bottom) + 0.5;A40.moveTo("border",Z4v,K5l.top);A40.lineTo("border",Z4v,n3B);A40.draw(G1d,"border");}if(K5l.width !== +"0"){O1a="ri";O1a+="ght";x3l.canvasFont("stx_yaxis",G1d);x3l.canvasColor("stx_yaxis",G1d);G1d.textAlign=g6F?O1a:"left";if(B_V){e2Y.D0J(120);var n5P=e2Y.S40(1,0,4,6,6);l06=K5l.left + n5P;if(g6F){e2Y.D0J(121);var r$c=e2Y.S40(10,24,11,0);l06=K5l.left + K5l.width - A3C - r$c;}}else {e2Y.H6P(16);var h5s=e2Y.S40(17,20);l06=K5l.left + A3C + h5s;if(g6F){l06=K5l.left + K5l.width;}}G1d.fillStyle=u3g;G1d.fillText(p54,l06,g7G);G1d.fillStyle=q$5;G1d.fillText(s24,l06,I5S);G1d.fillStyle=T1f;}}x3l.endClip();G1d.globalAlpha=1;if(K5l.name == I3$.name){K5l.yAxisPlotter=new j6q.Plotter();}};j6q.Studies.createHistogram=function(n7b,L4T,S0b,I0N,r4a){var O45,K97,h4a,I2X,d_R,Z3m,r66,q1j,o11,K2v,I7W,x9w,X89,b6P,R78,E1J,s8L,L2M,d1g,D$s;O45=n7b.panels[L4T.panel];K97=L4T.getContext(n7b);h4a=L4T.getYAxis(n7b);n7b.startClip(O45.name);I2X=n7b.layout.candleWidth - 2;if(I2X < 2){I2X=1;}d_R=n7b.pixelFromPrice(0,O45,h4a);if(h4a.min > 0){d_R=n7b.pixelFromPrice(h4a.min,O45,h4a);}if(I0N){d_R=Math.floor(O45.top + O45.height / 2);}Z3m=L4T.name + "_hist";n7b.canvasColor("stx_histogram");r66=K97.fillStyle;if(r4a || r4a === 0){K97.globalAlpha=r4a;}if(!L4T.highlight && n7b.highlightedDraggable){K97.globalAlpha*=0.3;}q1j=null;o11=null;K2v=L4T.outputs;for(var r5X=0;r5X < S0b.length;r5X++){I7W="Positive";I7W+=" ";I7W+="Bar";x9w=S0b[r5X];if(!x9w)continue;if(x9w.candleWidth){I2X=Math.floor(Math.max("1" - 0,x9w.candleWidth - 2));}X89=Math.floor(n7b.pixelFromBar(r5X,O45.chart) - I2X / 2);b6P=Math.floor(I2X);if(q1j === null){R78=n7b.tickFromPixel(X89,O45.chart) - ("1" >> 0);if(R78 < 0){q1j=o11;}else {q1j=n7b.pixelFromPrice(n7b.chart.dataSet[R78][Z3m],O45,h4a) - d_R;}}else {q1j=o11;}o11=n7b.pixelFromPrice(x9w[Z3m],O45,h4a) - d_R;E1J=j6q.Studies.determineColor(K2v["Decreasing Bar"]);s8L=j6q.Studies.determineColor(K2v["Increasing Bar"]);L2M=j6q.Studies.determineColor(K2v[I7W]);d1g=j6q.Studies.determineColor(K2v["Negative Bar"]);D$s=h4a.flipped;K97.fillStyle=r66;if(E1J && (D$s?o11 < q1j:o11 > q1j)){K97.fillStyle=E1J;}else if(s8L && (D$s?o11 > q1j:o11 < q1j)){K97.fillStyle=s8L;}else if(L2M && (D$s?o11 > 0:o11 < 0)){K97.fillStyle=L2M;}else if(d1g && (D$s?o11 < 0:o11 > 0)){K97.fillStyle=d1g;}K97.fillRect(X89,d_R,b6P,Math.floor(o11));}A2IFV.D0H();K97.globalAlpha=1;n7b.endClip();};j6q.Studies.prettify={Close:3200 !== 5295?("186.47" * 1,4959) >= 1570?2870 > 470?"C":(+"0x22c5",4.71e+3):0xe2f:"D",Open:2920 < (9643,1470)?!"":"O",High:(+"356.52",6616) == ("590" * 1,7220)?("d","x"):(348.89,1239) == 680.59?181.98:+"8690" == (218.86,407.92)?"0x2485" * 1:"H",Low:(882.35,8261) > 3480?"L":(996.35,824.32) < 5853?1674 <= 7436?2.35e+2:"683" ^ 0:+"43.30",simple:Y$r,exponential:N1H,triangular:"tma",VIDYA:"vdma",weighted:w8y,"welles wilder":"smma",true:"y",false:"n"};j6q.Studies.prettyRE=/^.*\((.*?)\).*$/;j6q.Studies.prettyDisplay=function(U1b){var A$A,S8P;A$A=j6q.Studies.prettyRE.exec(U1b);if(!A$A){return U1b;}A2IFV.D0J(21);S8P=A$A[A2IFV.q7n("1",0)];if(S8P){for(var O4p in j6q.Studies.prettify){S8P=S8P.replace(O4p,j6q.Studies.prettify[O4p]);}U1b=U1b.replace(A$A[1],S8P);}A2IFV.D0H();return U1b;};j6q.Studies.getFieldInputs=function(v3a){var n23,X6c;A2IFV.D0H();n23=[];X6c=v3a.study.inputs;for(var H2u in X6c){if(X6c[H2u] == "field"){n23.push(H2u);}}return n23;};j6q.Studies.initializeFN=function(l0w,Y1S,q7I,T_c,U84,D15,K0l){var o9L=A2IFV;var B$y,b8h,M5X,q6p,q7q,I9Y,Z4I,Z$2,R8l,C$b,C4U,S0m,C$p,V$l,M7B,G0l,v6n,u0h,N54,O7E,j8I,J8b,s8p,f35,C9r,f1U,c1r;B$y="st";B$y+="r";B$y+="in";B$y+="g";if(!q7I){q7I={};}if(!U84){U84={};}if(!q7I.id){b8h=-197226571;M5X=-+"1759371641";q6p=2;for(var x5i=1;o9L.Z2Z(x5i.toString(),x5i.toString().length,"21588" * 1) !== b8h;x5i++){q7I.id=j6q.Studies.generateID(l0w,Y1S,q7I,U84.replaceID,U84.display);q6p+=2;}if(o9L.U6$(q6p.toString(),q6p.toString().length,10804) !== M5X){q7I.id=j6q.Studies.generateID(l0w,Y1S,q7I,U84.replaceID,U84.display);}}if(!q7I.display){q7I.display=q7I.id;}q7q=new j6q.Studies.StudyDescriptor(q7I.id,Y1S,q7I.id,q7I,T_c,U84);if(q7I.Period){o9L.H6P(1);q7q.days=Math.max(o9L.q7n(1,"1"),parseInt(q7q.inputs.Period,"10" ^ 0));}if(K0l){if(!K0l.inputs){K0l.inputs=q7q.study.inputs;}if(!K0l.outputs){K0l.outputs=q7q.study.outputs;}q7q.study=K0l;}else {K0l=q7q.study;}if(K0l.display){q7I.display=K0l.display;}if(typeof U84.panelName == B$y){D15=U84.panelName;}if(D15 == q7I.id || D15 && !l0w.panelExists(D15)){q7q.underlay=q7q.overlay=!({});}if(D15 == "Own panel" || D15 == "New panel"){D15=null;}I9Y=q7q.overlay || q7I.Overlay || q7q.overlay !== ![] && K0l.overlay;Z4I=q7q.underlay || q7I.Underlay || q7q.underlay !== !1 && K0l.underlay;if(I9Y && U84.underlayEnabled){Z4I=!![];}if(Z4I){q7q.underlay=!!({});}if(!Z4I && l0w.chart.panel && D15 == l0w.chart.panel.name){I9Y=!!"1";}if(I9Y){q7q.overlay=!!1;}Z$2=l0w.preferences.dragging;if(Z$2 === !0 || Z$2 && Z$2.study){q7q.overlay=!"";}if(D15){U84.panelName=D15;}else if(!I9Y && !Z4I){D15=q7I.id;}if(U84.calculateOnly){if(I9Y || Z4I){if(l0w.panels[U84.panelName]){q7q.panel=U84.panelName;}else {q7q.panel=j6q.Studies.getPanelFromFieldName(l0w,q7q) || U84.chartName;}}return q7q;}R8l={};C$b=l0w.layout.studies[U84.replaceID];if(C$b){R8l={outputMap:j6q.clone(C$b.outputMap),panel:C$b.panel};}q7q.panel="";if(D15){C4U="New p";C4U+="anel";S0m=j6q.Studies.smartMovePanel(l0w,q7q.inputs,D15,U84.replaceID,U84.panelName == C4U);if(S0m){q7q.panel=S0m.name;}}else if(I9Y || Z4I){q7q.panel=j6q.Studies.getPanelFromFieldName(l0w,q7q) || U84.chartName;}if(!q7q.panel){C$p=K0l.panelHeight || null;V$l=K0l.yAxis || ({});V$l.name=q7q.inputs.id;q7q.panel=q7q.inputs.id;M7B=-199681504;o9L.H6P(40);G0l=o9L.S40(32,"1232114324");v6n=2;for(var q2u=1;o9L.U6$(q2u.toString(),q2u.toString().length,74241) !== M7B;q2u++){l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));o9L.H6P(1);v6n+=o9L.q7n(1,"2");}if(o9L.U6$(v6n.toString(),v6n.toString().length,65180) !== G0l){l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));}l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));}if(q7q.parameters && q7q.parameters.panelName){q7q.parameters.panelName=q7q.panel;}u0h=l0w.panels[q7q.panel];N54=j6q.Studies.smartCreateYAxis(l0w,u0h,q7q.inputs.id,U84.yaxisDisplayValue,U84.yAxis || K0l.yAxis);O7E=K0l?j6q.clone(K0l.yAxis):null;j8I=O7E || N54;if(j8I){if(j8I.ground){j8I.initialMarginBottom=0;}if(j8I.initialMarginTop || j8I.initialMarginTop === 0 || j8I.initialMarginBottom || j8I.initialMarginBottom === +"0"){l0w.calculateYAxisMargins(j8I);}if(j8I.name == U84.replaceID){j8I.name=q7q.inputs.id;}}if(N54){J8b="defa";J8b+="u";J8b+="l";J8b+="t";s8p="s";s8p+="har";s8p+="e";s8p+="d";f35="n";f35+="o";f35+="n";f35+="e";N54.width=N54.position == f35?0:j6q.ChartEngine.YAxis.prototype.width;if(U84.yaxisDisplayValue == s8p || U84.yaxisDisplayValue == J8b){delete U84.yaxisDisplayValue;}else {if(O7E){j6q.ensureDefaults(N54,O7E);}else if(N54.name == q7q.name){C9r="au";C9r+="t";C9r+="o";if(!U84.yaxisDisplayColor || U84.yaxisDisplayColor == C9r){delete N54.textStyle;}else {N54.textStyle=j6q.colorToHex(U84.yaxisDisplayColor);}N54.justifyRight=null;N54.flipped=U84.flippedEnabled;}}if(N54 != u0h.yAxis){N54.displayGridLines=!({});}else if(N54 != l0w.chart.yAxis){N54.displayGridLines=l0w.displayGridLinesInStudies;}}l0w.calculateYAxisPositions();if(C$b){f1U=!({});for(var z$2 in l0w.drawingObjects){c1r=l0w.drawingObjects[z$2];if(R8l.outputMap && R8l.outputMap.hasOwnProperty(c1r.field)){c1r.field=c1r.field.replace(U84.replaceID,q7q.inputs.id);if(q7q.parameters && q7q.parameters.panelName){c1r.panelName=q7q.parameters.panelName;}else {c1r.panelName=q7q.panel;}f1U=!"";}else if(R8l.panel && R8l.panel == c1r.panelName){c1r.panelName=c1r.panelName.replace(U84.replaceID,q7q.inputs.id);f1U=!"";}}if(f1U){l0w.changeOccurred("vector");}}return q7q;};j6q.Studies.smartMovePanel=function(p1J,U4F,k42,u6S,v4P){var O$t,k0Q,A4G,c8r;k0Q=U4F.id;if(u6S){O$t=p1J.layout.studies[u6S];}if(O$t){A4G=p1J.panels[O$t.panel];if(A4G){if(A4G.yAxis.name == u6S){if((v4P || k42 != u6S) && !p1J.checkForEmptyPanel(A4G.name,!!"1",O$t)){p1J.electNewPanelOwner(A4G);c8r=O$t.getYAxis(p1J);if(c8r.name == u6S){p1J.electNewYAxisOwner(c8r);};}else if(k42 == u6S || !p1J.panels[k42]){if(k0Q != A4G.name){p1J.modifyPanel(A4G,{name:k0Q,display:U4F.display});}k42=k0Q;}}}}A2IFV.a9S();return p1J.panels[k42];};j6q.Studies.smartCreateYAxis=function(s4M,o35,K8n,S9A,I84){var e8g,C0$,g3c,H7m,x6r;e8g="n";e8g+="o";e8g+="n";e8g+="e";C0$=s4M.getYAxisByName(o35,K8n);if(!S9A && I84){S9A=I84.position;}if(S9A == "default" || S9A == "shared" || S9A == o35.yAxis.name){S9A="";}if(["left","right",e8g].indexOf(S9A) > -+"1"){if(!C0$ || C0$.isShared(s4M)){g3c=I84 || ({});j6q.extend(g3c,{name:K8n,position:S9A});if(!C0$ && !s4M.currentlyImporting && o35 != o35.chart.panel && !o35.yAxis.studies.length && !o35.yAxis.renderers.length){C0$=o35.yAxis;j6q.extend(C0$,g3c);}else {H7m=C0$ == o35.yAxis;if(C0$){C0$.name=s4M.electNewYAxisOwner(C0$);}C0$=s4M.addYAxis(o35,new j6q.ChartEngine.YAxis(g3c));if(H7m){o35.yAxis=C0$;}}}else {C0$.position=S9A;}return C0$;}if(S9A){x6r=s4M.getYAxisByName(o35,S9A);if(x6r && C0$ == o35.yAxis && !C0$.isShared(s4M)){o35.yAxis=x6r;}if(C0$ && C0$.isShared(s4M)){C0$.name=s4M.electNewYAxisOwner(C0$);}else {if(C0$ !== o35.yAxis){s4M.deleteYAxisIfUnused(o35,C0$);}}return x6r;}if(C0$){if(C0$.isShared(s4M)){C0$.name=s4M.electNewYAxisOwner(C0$);}else {delete C0$.position;if(C0$ !== o35.yAxis){s4M.deleteYAxisIfUnused(o35,C0$);}}}s4M.resizeChart();return o35.yAxis;};j6q.Studies.calculateVolume=function(w0v,V45){var v3L,A3f,x_f;if(V45.type == "vol undr"){if(!w0v || !w0v.chart.dataSet){return;}v3L=w0v.layout;A3f=V45.parameters.removeStudy;x_f=v3L.volumeUnderlay;v3L.volumeUnderlay=!A3f;if(x_f != v3L.volumeUnderlay){w0v.changeOccurred("layout");}if(A3f){j6q.Studies.removeStudy(w0v,V45);}}V45.outputMap={};V45.outputMap.Volume="";};j6q.Studies.MA=function(v$L,T$s,o$T,B4X,p$R,U0L,J54,j5b){var P2t;P2t=new j6q.Studies.StudyDescriptor(p$R + " " + J54.name,"ma",J54.panel);P2t.chart=J54.chart;P2t.days=parseInt(T$s,10);P2t.startFrom=J54.startFrom;if(j5b){P2t.subField=j5b;}A2IFV.D0H();P2t.inputs={};if(v$L){P2t.inputs.Type=v$L;}if(o$T){P2t.inputs.Field=o$T;}if(B4X){P2t.inputs.Offset=parseInt(B4X,10);}j6q.Studies.calculateMovingAverage(U0L,P2t);};j6q.Studies.movingAverage={conversions:{ma:"simple",sma:"simple",ema:s1q,tma:"triangular",vdma:"vidya",wma:"weighted",smma:"welles wilder"},translations:{simple:"Simple",exponential:"Exponential",triangular:i2v,vidya:"VIDYA",weighted:I$$,"welles wilder":t05},typeMap:{ema:q1N,exponential:i3c,tma:"Triangular",triangular:W9k,vdma:"VIDYA",vidya:"VIDYA",wma:"Weighted",weighted:"Weighted",smma:"Exponential","welles wilder":S9B}};j6q.Studies.movingAverageHelper=function(o1M,F35){A2IFV.D0H();var i8u;if(F35 == "options"){i8u={};for(var T2f in j6q.Studies.movingAverage.translations){i8u[T2f]=o1M.translateIf(j6q.Studies.movingAverage.translations[T2f]);}return i8u;}return j6q.Studies.movingAverage.conversions[F35];};j6q.Studies.createVolumeChart=function(m1I,t5Z,j7T){var d04=A2IFV;var r4o,j5W,u4J,l_E,n3W,q8_,s8c,N_4,t6n,x8t,l7m,n5D,M0e,H4W,o0s,C4O,g07,h5N;r4o="_";r4o+="up";j5W="V";j5W+="olu";j5W+="m";j5W+="e";u4J="colo";u4J+="r";l_E="s";l_E+="tx_volume";n3W=t5Z.panel;q8_=t5Z.inputs;s8c=t5Z.underlay;N_4=t5Z.overlay;t6n=s8c || N_4;x8t=j6q.Studies.determineColor(t5Z.outputs["Up Volume"]);l7m=j6q.Studies.determineColor(t5Z.outputs["Down Volume"]);n5D=s8c?"stx_volume_underlay":l_E;d04.D0J(0);m1I.setStyle(d04.S40(n5D,"_up"),"color",x8t);d04.H6P(0);m1I.setStyle(d04.S40(n5D,"_down"),u4J,l7m);M0e=[{field:t5Z.volumeField || j5W,fill_color_up:m1I.canvasStyle(n5D + r4o).color,border_color_up:m1I.canvasStyle(n5D + "_up").borderLeftColor,opacity_up:m1I.canvasStyle(n5D + "_up").opacity,fill_color_down:m1I.canvasStyle(n5D + "_down").color,border_color_down:m1I.canvasStyle(n5D + "_down").borderLeftColor,opacity_down:m1I.canvasStyle(n5D + "_down").opacity,color_function:t5Z.colorFunction}];H4W=M0e[0];if(!s8c && H4W.border_color_down === "rgb(184, 44, 12)"){o0s="#";o0s+="00";o0s+="00";o0s+="00";C4O="#0";C4O+="0";C4O+="00";C4O+="00";H4W.border_color_down=C4O;H4W.border_color_up=o0s;}g07=t5Z.getYAxis(m1I);h5N={name:"Volume",panel:n3W,yAxis:g07,widthFactor:"1" << 64,bindToYAxis:!"",highlight:t5Z.highlight};j6q.extend(h5N,t5Z.study.parameters);j6q.extend(h5N,t5Z.parameters);if(m1I.colorByCandleDirection && !t5Z.colorFunction){H4W.color_function=function(o$d){var g5B,O6x;g5B=o$d.Open;O6x=o$d.Close;return {fill_color:g5B > O6x?H4W.fill_color_down:H4W.fill_color_up,border_color:g5B > O6x?H4W.border_color_down:H4W.border_color_up,opacity:g5B > O6x?H4W.opacity_down:H4W.opacity_up};};}m1I.drawHistogram(h5N,M0e);};j6q.Studies.calculateStandardDeviation=function(w0$,I9E){var M8s=A2IFV;M8s.a9S();var y8D,P7X,i4F,X4D,q5y,j5s,T79,A_j,Q3o,r3M,D_i,u_p,q_9,N6H;y8D=I9E.chart.scrubbed;if(y8D.length < I9E.days + 1){I9E.error=!![];return;}P7X=I9E.inputs.Field;if(!P7X || P7X == "field"){P7X="Close";}i4F=I9E.inputs["Moving Average Type"];if(!i4F){i4F=I9E.inputs.Type;}j6q.Studies.MA(i4F,I9E.days,P7X,I9E.inputs.Offset,"_MA",w0$,I9E);X4D=0;q5y=+"0";j5s=0;T79=Number(I9E.inputs["Standard Deviations"]);if(T79 < 0){T79=2;}A_j=I9E.name;for(var b_j in I9E.outputs){M8s.H6P(37);A_j=M8s.S40(A_j,b_j,(+"2690",4480) < 2760?("S",454.54):" ");}for((Q3o=I9E.startFrom - 1,D_i=0);Q3o >= 0 && D_i < I9E.days;(Q3o--,D_i++)){r3M=y8D[Q3o][P7X];if(r3M && typeof r3M == "object"){r3M=r3M[I9E.subField];}if(isNaN(r3M)){r3M=0;}X4D+=Math.pow(r3M,2);q5y+=r3M;}for(Q3o=I9E.startFrom;Q3o < y8D.length;Q3o++){u_p="_M";u_p+="A";u_p+=" ";q_9=y8D[Q3o];r3M=q_9[P7X];if(r3M && typeof r3M == "object"){r3M=r3M[I9E.subField];}if(!r3M && r3M !== 0){r3M=0;}X4D+=Math.pow(r3M,+"2");q5y+=r3M;if(Q3o < I9E.days - 1)continue;if(Q3o >= I9E.days){N6H=y8D[Q3o - I9E.days][P7X];if(N6H && typeof N6H == "object"){N6H=N6H[I9E.subField];}if(isNaN(N6H)){N6H=0;}X4D-=Math.pow(N6H,+"2");q5y-=N6H;}j5s=q_9[u_p + I9E.name];if(j5s || j5s === 0){M8s.D0J(122);var t0k=M8s.q7n(20,19,0,4,54);M8s.D0J(16);var u8N=M8s.q7n(2,4);q_9[A_j]=Math.sqrt((X4D + I9E.days * Math.pow(j5s,t0k) - u8N * j5s * q5y) / I9E.days) * T79;}}};j6q.Studies.calculateMovingAverage=function(W4v,O3s){var g7M,Q6T,a41,V6n,u6K,K8m,j0y,A7$,F6e,U5R,s5D,I7X,x3G,l5u,V8s,B5U,h$n,R8z,h_B,L73,n12;g7M="Clos";g7M+="e";if(!O3s.chart.scrubbed){return;}Q6T=O3s.inputs.Type;if(Q6T == "ma" || Q6T == "sma" || !Q6T){Q6T="simple";}a41=j6q.Studies.movingAverage.typeMap;A2IFV.a9S();if((Q6T in a41)){return j6q.Studies["calculateMovingAverage" + a41[Q6T]](W4v,O3s);}else if(Q6T !== "simple"){return;}V6n=O3s.chart.scrubbed;u6K=0;K8m=[];j0y=O3s.name;for(var I9q in O3s.outputs){A2IFV.D0J(37);j0y=A2IFV.q7n(j0y,I9q,(528.04,7840) < 269.57?(677.22,!!"1"):" ");}A7$=O3s.inputs.Field;if(!A7$ || A7$ == "field"){A7$=g7M;}F6e=parseInt(O3s.inputs.Offset,10);if(isNaN(F6e)){F6e=0;}x3G=O3s.startFrom;l5u=F6e;for(U5R=O3s.startFrom - +"1";U5R >= 0;U5R--){V8s="obj";V8s+="e";V8s+="c";V8s+="t";s5D=V6n[U5R][A7$];if(s5D && typeof s5D == V8s){s5D=s5D[O3s.subField];}if(!s5D && s5D !== 0)continue;if(l5u > 0){l5u--;x3G=U5R;continue;}if(K8m.length == O3s.days - 1)break;u6K+=s5D;K8m.unshift(s5D);}if(K8m.length < O3s.days - 1){K8m=[];x3G=0;;}B5U=[];for(U5R=x3G;U5R < V6n.length;U5R++){h$n="o";h$n+="bject";R8z=V6n[U5R];s5D=R8z[A7$];if(s5D && typeof s5D == h$n){s5D=s5D[O3s.subField];}h_B=U5R + F6e >= 0 && U5R + F6e < V6n.length;L73=h_B?V6n[U5R + F6e]:null;if(!s5D && s5D !== 0){if(L73){L73[j0y]=null;}else if(U5R + F6e >= V6n.length){I7X={};I7X[j0y]=null;B5U.push(I7X);}continue;}u6K+=s5D;K8m.push(s5D);if(K8m.length > O3s.days){u6K-=K8m.shift();}n12=K8m.length == O3s.days?u6K / O3s.days:null;if(L73){L73[j0y]=n12;}else if(U5R + F6e >= V6n.length){I7X={};I7X[j0y]=n12;B5U.push(I7X);}}O3s.appendFutureTicks(W4v,B5U);};j6q.Studies.calculateMovingAverageExponential=function(E24,y3b){var V1c=A2IFV;var f$V,O$m,l2L,W96,c_y,A4m,L$V,j1$,E4C,T6H,v1q,D8f,G7A,Q6i,M$T,w4v,i8v,B1M,L6u,t6j,X$H,d8b,k3K,U87;f$V=y3b.inputs.Type;O$m=y3b.chart.scrubbed;l2L=0;W96=0;c_y=0;V1c.H6P(11);var Y9k=V1c.S40(32,13,178,4);V1c.D0J(123);var p_U=V1c.S40(4,2,19,8);A4m=Y9k / (y3b.days + p_U);if(f$V === "welles wilder" || f$V === "smma"){V1c.H6P(19);var I1P=V1c.S40(18,17,2,36);A4m=I1P / y3b.days;}L$V=null;j1$=y3b.name;for(var z0a in y3b.outputs){V1c.H6P(37);j1$=V1c.q7n(j1$,z0a,531.97 >= (5452,1650)?(176.83,"6550" * 1) <= 312.28?(8.76e+3,"G"):3467 != 775.98?670.67:0x236e:" ");}E4C=y3b.inputs.Field;if(!E4C || E4C == "field"){E4C="Close";}T6H=parseInt(y3b.inputs.Offset,10);if(isNaN(T6H)){T6H=0;}G7A=y3b.startFrom;Q6i=T6H;for(v1q=y3b.startFrom - 1;v1q >= 0;v1q--){D8f=O$m[v1q][j1$];if(!D8f && D8f !== 0)continue;if(L$V === null){L$V=D8f;}c_y=y3b.days;if(Q6i <= 0)break;Q6i--;G7A=v1q;}if(L$V === null){M$T=-431256440;w4v=1650909003;i8v=2;for(var L86=1;V1c.Z2Z(L86.toString(),L86.toString().length,"52360" >> 64) !== M$T;L86++){L$V=G7A=6;i8v+=2;}if(V1c.U6$(i8v.toString(),i8v.toString().length,284) !== w4v){L$V=G7A=6;}L$V=G7A=0;}B1M=[];V1c.a9S();for(v1q=G7A;v1q < O$m.length;v1q++){L6u="obje";L6u+="ct";t6j=O$m[v1q];D8f=t6j[E4C];if(D8f && typeof D8f == L6u){D8f=D8f[y3b.subField];}X$H=v1q + T6H >= 0 && v1q + T6H < O$m.length;d8b=X$H?O$m[v1q + T6H]:null;if(!D8f && D8f !== 0){k3K=null;}else {if(c_y == y3b.days - +"1"){l2L+=D8f;W96=l2L / y3b.days;k3K=W96;}else if(c_y < y3b.days - 1){l2L+=D8f;V1c.H6P(124);W96=V1c.q7n(1,c_y,l2L);k3K=null;}else if(c_y === 0){l2L+=D8f;W96=l2L;k3K=null;}else if(L$V || L$V === 0){V1c.H6P(125);W96=V1c.q7n(A4m,D8f,L$V,L$V);k3K=W96;}L$V=W96;c_y++;}if(d8b){d8b[j1$]=k3K;}else if(v1q + T6H >= O$m.length){U87={};U87[j1$]=k3K;B1M.push(U87);}}y3b.appendFutureTicks(E24,B1M);};j6q.Studies.calculateMovingAverageVIDYA=function(T25,v0M){var e31=A2IFV;var h1V,D2c,g$k,w9x,L0u,s2G,H7q,u_5,d4M,E44,K6h,R_l,g73,Y4b,H3v,N7n,d$v,i5B,N0z,K$m,v42;h1V="_M";h1V+="A";h1V+="ST";h1V+="D";D2c="sd";D2c+="ev";g$k=v0M.inputs.Type;w9x=v0M.chart.scrubbed;e31.D0J(126);var t3d=e31.S40(94,15,6,5,5);L0u=t3d / (v0M.days + +"1");s2G=null;H7q=v0M.name;for(var h0r in v0M.outputs){e31.H6P(37);H7q=e31.S40(H7q,h0r," ");}u_5=v0M.inputs.Field;if(!u_5 || u_5 == "field"){u_5="Close";}v0M.std=new j6q.Studies.StudyDescriptor(v0M.name,D2c,v0M.panel);v0M.std.chart=v0M.chart;v0M.std.days=5;v0M.std.startFrom=v0M.startFrom;v0M.std.inputs={Field:u_5,"Standard Deviations":1,Type:"ma"};v0M.std.outputs={_STD:null};j6q.Studies.calculateStandardDeviation(T25,v0M.std);j6q.Studies.MA("ma",20,"_STD " + v0M.name,0,h1V,T25,v0M);d4M=parseInt(v0M.inputs.Offset,10);if(isNaN(d4M)){d4M=0;}g73=v0M.startFrom;Y4b=d4M;for(E44=v0M.startFrom - 1;E44 >= 0;E44--){K6h=w9x[E44][H7q];if(!K6h && K6h !== 0)continue;if(s2G === null){s2G=K6h;}if(Y4b <= 0)break;Y4b--;g73=E44;}if(s2G === null){s2G=g73=0;}H3v=[];for(E44=g73;E44 < w9x.length;E44++){N7n="o";N7n+="b";N7n+="jec";N7n+="t";d$v=w9x[E44];K6h=d$v[u_5];if(K6h && typeof K6h == N7n){K6h=K6h[v0M.subField];}i5B=E44 + d4M >= 0 && E44 + d4M < w9x.length;N0z=i5B?w9x[E44 + d4M]:null;if(!K6h && K6h !== 0){if(N0z){N0z[H7q]=null;}else if(E44 + d4M >= w9x.length){R_l={};R_l[H7q]=null;H3v.push(R_l);}continue;}if(!d$v["_MASTD " + v0M.name] && d$v["_MASTD " + v0M.name] !== 0)continue;K$m=d$v["_STD " + v0M.name] / d$v["_MASTD " + v0M.name];e31.H6P(127);v42=e31.q7n(K6h,K$m,K$m,L0u,L0u,1,s2G);s2G=v42;if(E44 < v0M.days){v42=null;}if(N0z){N0z[H7q]=v42;}else if(E44 + d4M >= w9x.length){R_l={};R_l[H7q]=v42;H3v.push(R_l);}}v0M.appendFutureTicks(T25,H3v);};j6q.Studies.calculateMovingAverageTriangular=function(f2i,X6P){var k6B=A2IFV;var J64,c8n,C2f,u$n,U7D,g3R,J2E,q6X,t0f,F7J,y5U,J7$;J64="T";k6B.D0H();J64+="R";J64+="I";J64+="2";c8n="T";c8n+="RI";c8n+="1 ";C2f="f";C2f+="ield";u$n=X6P.chart.scrubbed;U7D=X6P.inputs.Field;if(!U7D || U7D == C2f){U7D="Close";}g3R=Math.ceil(X6P.days / 2);j6q.Studies.MA("simple",g3R,U7D,0,"TRI1",f2i,X6P);if(X6P.days % 2 === 0){g3R++;}j6q.Studies.MA("simple",g3R,c8n + X6P.name,"0" | 0,J64,f2i,X6P);J2E=X6P.name;for(var w9i in X6P.outputs){k6B.D0J(37);J2E=k6B.S40(J2E,w9i," ");}q6X=parseInt(X6P.inputs.Offset,10);if(isNaN(q6X)){k6B.D0J(40);q6X=k6B.S40(0,"0");}t0f=q6X;for(var u_b=X6P.startFrom - 1;u_b >= 0;u_b--){F7J=u$n[u_b][J2E];if(!F7J && F7J !== 0)continue;if(t0f > 0){t0f--;continue;}break;}y5U=[];for(u_b++;u_b < u$n.length;u_b++){if(u_b + q6X >= 0){if(u_b + q6X < u$n.length){k6B.H6P(0);u$n[k6B.S40(u_b,q6X)][J2E]=u$n[u_b]["TRI2 " + X6P.name];}else {J7$={};J7$[J2E]=u$n[u_b]["TRI2 " + X6P.name];y5U.push(J7$);}}}X6P.appendFutureTicks(f2i,y5U);};j6q.Studies.calculateMovingAverageWeighted=function(P8w,D2r){var L2_=A2IFV;var n9l,L1z,l5I,S0i,A7h,y4N,C2F,D1i,y5I,j6S,B7D,g6u,J6b,c43,t93,o_G,X3m,q86,K9a;n9l=D2r.chart.scrubbed;L1z=0;l5I=0;S0i=D2r.inputs.Field;if(!S0i || S0i == "field"){S0i="Close";}L2_.H6P(39);var o8C=L2_.q7n(12,8,3);L2_.D0J(7);var Z1v=L2_.S40(12,14);A7h=D2r.days * (D2r.days + o8C) / Z1v;y4N=D2r.name;for(var E_d in D2r.outputs){L2_.H6P(37);y4N=L2_.S40(y4N,E_d,4530 !== 726.05?(858.91,888.55) <= (2586,964.86)?" ":61.37 <= 3330?0x1937:(+"124.27",0x3b6):(135.18,170.12));}C2F=parseInt(D2r.inputs.Offset,10);if(isNaN(C2F)){C2F=0;}L2_.D0H();B7D=[];g6u=D2r.startFrom;J6b=C2F;for(D1i=D2r.startFrom - 1;D1i >= 0;D1i--){y5I=n9l[D1i][S0i];if(y5I && typeof y5I == "object"){y5I=y5I[D2r.subField];}if(!y5I && y5I !== ("0" ^ 0))continue;if(J6b > 0){J6b--;g6u=D1i;continue;}if(B7D.length == D2r.days - 1)break;B7D.unshift(y5I);}if(B7D.length < D2r.days - ("1" ^ 0)){B7D=[];g6u=0;;}for(D1i=0;D1i < B7D.length;D1i++){L2_.D0J(123);var f$w=L2_.q7n(7,7,55,7);L1z+=(D1i + f$w) * B7D[D1i];l5I+=B7D[D1i];}c43=[];for(D1i=g6u;D1i < n9l.length;D1i++){t93="obj";t93+="e";t93+="ct";o_G=n9l[D1i];y5I=o_G[S0i];if(y5I && typeof y5I == t93){y5I=y5I[D2r.subField];}X3m=D1i + C2F >= 0 && D1i + C2F < n9l.length;q86=X3m?n9l[D1i + C2F]:null;if(!y5I && y5I !== 0){if(q86){q86[y4N]=null;}else if(D1i + C2F >= n9l.length){j6S={};j6S[y4N]=null;c43.push(j6S);}continue;}B7D.push(y5I);if(B7D.length > D2r.days){L1z-=l5I;l5I-=B7D.shift();}L1z+=B7D.length * y5I;l5I+=y5I;K9a=D1i < D2r.days - 1?null:L1z / A7h;if(q86){q86[y4N]=K9a;}else if(D1i + C2F >= n9l.length){j6S={};j6S[y4N]=K9a;c43.push(j6S);}}D2r.appendFutureTicks(P8w,c43);};j6q.Studies.calculateStudyATR=function(Q4c,a5o){var Q4J=A2IFV;var i_A,o2C,K8Z,q$_,W9D,E$t,z_J,w5u,u8$,g3M;i_A=a5o.chart.scrubbed;o2C=a5o.days;if(i_A.length < o2C + 1){a5o.error=!!({});return;}K8Z=0;Q4J.D0H();q$_=a5o.name;for(var c3m=Math.max(a5o.startFrom,1);c3m < i_A.length;c3m++){W9D="A";W9D+="TR";W9D+=" ";E$t="AT";E$t+="R ";z_J="True";z_J+=" ";z_J+="Range";z_J+=" ";w5u=i_A[c3m];Q4J.H6P(7);u8$=i_A[Q4J.q7n(1,c3m)];g3M=w5u.trueRange;if(u8$["Sum True Range " + q$_]){Q4J.H6P(0);K8Z=u8$[Q4J.q7n("Sum True Range ",q$_)];}K8Z+=g3M;if(c3m > o2C){Q4J.D0J(7);K8Z-=i_A[Q4J.q7n(o2C,c3m)][Q4J.q7n("True Range ",q$_,Q4J.D0J(0))];}Q4J.H6P(0);w5u[Q4J.S40(z_J,q$_)]=g3M;Q4J.H6P(0);w5u[Q4J.q7n("Sum True Range ",q$_)]=K8Z;if(c3m == o2C){Q4J.H6P(0);w5u[Q4J.q7n(E$t,q$_)]=Q4J.S40(o2C,K8Z,Q4J.H6P(14));}else if(c3m > o2C){Q4J.D0J(0);w5u[Q4J.q7n("ATR ",q$_)]=(u8$[W9D + q$_] * (o2C - 1) + g3M) / o2C;}}};j6q.Studies.displayPSAR2=function(y8P,Q4R,x2l){var A4s=A2IFV;var Z52,t0u,o8t,n_o,d29,g5n,l0a,Z4h,t_o,G65,O1Z,V1L,N8k,R_d;Z52=y8P.panels[Q4R.panel];t0u=Q4R.getYAxis(y8P);o8t=t0u == y8P.chart.panel.yAxis;y8P.startClip(Z52.name);n_o=Q4R.getContext(y8P);d29=Q4R.inputs["Plot Type"] == "squarewave";for(var W9z in Q4R.outputs){g5n="a";g5n+="u";g5n+="t";g5n+="o";A4s.H6P(0);var P3o=A4s.q7n(2645,7);A4s.D0J(19);var W2I=A4s.S40(54560,8,6,47754);A4s.D0J(0);var m6A=A4s.q7n(9262,8);A4s.D0J(62);var L6T=A4s.q7n(4,3270,10,1090);A4s.H6P(18);var e5E=A4s.S40(17808,1,11872);l0a=W9z + ((P3o,442.57) > (W2I,m6A)?(965.45,L6T) != 275.62?(779.78,!1):(e5E,"x"):" ") + Q4R.name;n_o.beginPath();Z4h=y8P.layout.candleWidth;t_o=Math.max(3,Math.floor(y8P.chart.tmpWidth / 2));for(var i$t=0;i$t < x2l.length;i$t++){G65=x2l[i$t];if(!G65 || !G65[l0a] && G65[l0a] !== 0)continue;if(G65.candleWidth){Z4h=G65.candleWidth;}if(o8t && G65.transform){G65=G65.transform;}O1Z=y8P.pixelFromBar(i$t,Z52.chart);if(d29){A4s.D0J(14);O1Z-=A4s.S40(2,Z4h);}V1L=y8P.pixelFromTransformedValue(G65[Q4R.referenceOutput?Q4R.referenceOutput + ((6850,6821) >= 2720?(940.09,2090) !== 1125?+"796" < 889.08?" ":"F":958.27:"K") + Q4R.name:l0a],Z52,t0u);if(i$t === +"0" || !x2l[i$t - +"1"] || !x2l[i$t - 1][l0a] && x2l[i$t - +"1"][l0a] !== 0){n_o.moveTo(O1Z,V1L);}if(d29){n_o.lineTo(O1Z,V1L);A4s.H6P(0);n_o.lineTo(A4s.q7n(O1Z,Z4h),V1L);if(x2l[i$t + 1]){A4s.H6P(0);N8k=x2l[A4s.S40(i$t,1)];if(o8t && N8k.transform){N8k=N8k.transform;}if(!N8k[l0a] && N8k[l0a] !== 0){A4s.H6P(0);n_o.lineTo(A4s.q7n(O1Z,Z4h),y8P.pixelFromTransformedValue(N8k[Q4R.referenceOutput?Q4R.referenceOutput + (756.3 < 5063?(8350,"8497" << 64) >= (4579,297.37)?" ":(265.69,6.71e+3):!({})) + Q4R.name:l0a],y8P.panels[Q4R.panel],t0u));}}}else {A4s.H6P(128);n_o.moveTo(A4s.q7n(O1Z,"2",t_o),V1L);A4s.H6P(129);n_o.lineTo(A4s.S40(t_o,"2",O1Z,64),V1L);}}n_o.lineWidth=1;if(Q4R.highlight){n_o.lineWidth=3;}R_d=j6q.Studies.determineColor(Q4R.outputs[W9z]);if(R_d == g5n){R_d=y8P.defaultColor;}n_o.strokeStyle=R_d;if(!Q4R.highlight && y8P.highlightedDraggable){n_o.globalAlpha*=0.3;}n_o.stroke();n_o.closePath();n_o.lineWidth=1;}y8P.endClip();};j6q.Studies.inputAttributeDefaultGenerator=function(e2x){if(!e2x && e2x !== 0){return {};}if(e2x.constructor == Number){if(Math.floor(e2x) == e2x){if(e2x > 0){return {min:1,step:1};}return {step:"1" << 64};;}if(e2x > 0){return {min:0,step:0.01};}return {step:0.01};;}return {};};j6q.Studies.getMarketOffset=function({stx:q7A, localQuoteDate:d2f, shiftToDateBoundary:W5w}){var Q2b=A2IFV;var D2B,g$3,O5B,v3c,r3i,G5f,f8_;D2B="U";D2B+="TC";if(arguments.length > 1){q7A=arguments[0];d2f=arguments[1];g$3=arguments[2];}var {symbol:z5s}=q7A.chart;O5B=j6q.getFn("Market.Symbology.isForexMetal")(z5s);if(g$3 === undefined){v3c="Market.Symbolog";v3c+="y.isForexSymbol";g$3=j6q.getFn(v3c)(z5s);}if(!q7A.chart.market){r3i=null;}else {r3i=g$3?"America/New_York":q7A.chart.market.market_tz;}Q2b.D0J(33);var M75=Q2b.S40(14,60009,8,13);G5f=new Date(d2f.getTime() + d2f.getTimezoneOffset() * M75);if(!r3i || r3i.indexOf("UTC") == -1){G5f=j6q.convertTimeZone(G5f,D2B,r3i);}f8_=new Date(G5f.getFullYear(),G5f.getMonth(),G5f.getDate(),G5f.getHours(),G5f.getMinutes(),G5f.getSeconds(),G5f.getMilliseconds()).getTime() - d2f.getTime();if(W5w && g$3){Q2b.H6P(130);f8_+=Q2b.S40("60",O5B?6:+"7",1000,"60");}return f8_;};j6q.Studies.getStudyList=function(N9R){var l2x,x74;l2x={};x74={};j6q.extend(x74,N9R);A2IFV.a9S();for(var A6L in j6q.Studies.studyLibrary){if(!x74[A6L]){l2x[j6q.Studies.studyLibrary[A6L].name]=A6L;}}return l2x;};j6q.Studies.determineColor=function(z7u){var R5X;R5X="ob";R5X+="j";R5X+="e";R5X+="ct";if(!z7u){return null;}else if(typeof z7u === R5X){return z7u.color;}return z7u;};j6q.Studies.calculateGenericEnvelope=function(m_S,l$9,r67,W5F,Y1Q,Y93){var K8E=A2IFV;var I_9,S$r,h6x,G$p,z4U,t3U,V3I,e8M,D52;I_9="f";I_9+="i";I_9+="e";I_9+="ld";if(!r67){r67=0;}if(!Y93){Y93=0;}if(!W5F || W5F == "field"){W5F="Close";}if(!Y1Q){Y1Q=W5F;}S$r=l$9.chart.scrubbed;h6x=l$9.inputs.Field;if(!h6x || h6x === I_9){h6x="Close";}for(var W1I=l$9.startFrom;S$r && W1I < S$r.length;W1I++){G$p="Band";G$p+="w";G$p+="idth";G$p+=" ";z4U=S$r[W1I];if(!z4U)continue;if(!z4U[W5F])continue;t3U=z4U[h6x];if(t3U && typeof t3U == "object"){t3U=t3U.Close;}V3I=z4U[W5F];if(V3I && typeof V3I == "object"){V3I=V3I[l$9.subField];}e8M=z4U[Y1Q];if(e8M && typeof e8M == "object"){e8M=e8M[l$9.subField];}K8E.D0J(32);D52=K8E.S40(Y93,e8M,r67);K8E.H6P(0);z4U[l$9.type + " Top " + l$9.name]=K8E.S40(V3I,D52);K8E.D0J(7);z4U[l$9.type + " Bottom " + l$9.name]=K8E.S40(D52,V3I);z4U[l$9.type + " Median " + l$9.name]=V3I;z4U[G$p + l$9.name]=V3I?200 * D52 / V3I:"0" | 0;K8E.D0J(131);z4U["%b " + l$9.name]=K8E.S40(50,1,t3U,V3I,D52);}};j6q.Studies.displayChannel=function(r6w,H9C,p5B){A2IFV.D0H();var Z1B,b45,H$o,d5W,m56;Z1B="C";Z1B+="h";Z1B+="an";Z1B+="nel Fill";if(H9C.inputs[Z1B]){b45={panelName:H9C.panel};for(var D0Z in H9C.outputs){H$o="Bo";H$o+="tt";H$o+="om";d5W=D0Z.split(6480 >= 325.28?" ":(1160,258) !== (6870,"832.56" * 1)?(320.14,941.60):1.41e+2).pop();if(d5W == "Top" || d5W == "High"){b45.topBand=D0Z + " " + H9C.name;}else if(d5W == H$o || d5W == "Low"){b45.bottomBand=D0Z + " " + H9C.name;}else if(d5W == "Median" || d5W == "Channel"){b45.color=j6q.Studies.determineColor(H9C.outputs[D0Z]);}}if(H9C.parameters && H9C.parameters.opacity){b45.opacity=H9C.parameters.opacity;}else {b45.opacity=0.2;}m56=r6w.panels[H9C.panel];b45.skipTransform=m56.name != H9C.chart.name;b45.yAxis=H9C.getYAxis(r6w);if(!H9C.highlight && r6w.highlightedDraggable){b45.opacity*=0.3;}j6q.prepareChannelFill(r6w,b45);}j6q.Studies.displaySeriesAsLine(r6w,H9C,p5B);};j6q.Studies.initAnchorHandle=function(n1t,w5T){var {handle:O7X}=w5T;A2IFV.D0H();if(O7X){return;}if(!n1t.controls.anchorHandles){n1t.controls.anchorHandles={};}if(n1t.controls.anchorHandles[w5T.uniqueId]){({handle:O7X}=n1t.controls.anchorHandles[w5T.uniqueId]);}else {O7X=document.createElement("div");O7X.classList.add("stx_anchor_handle");O7X.setAttribute(w5T.uniqueId,"");n1t.controls.anchorHandles[w5T.uniqueId]={handle:O7X,sd:w5T};n1t.controls.chartControls.parentElement.appendChild(O7X);}w5T.anchorHandle=O7X;};j6q.Studies.removeAnchorHandle=function(D_c,R2m){var {handle:c5i}=(D_c.controls.anchorHandles || ({}))[R2m.uniqueId] || ({});if(c5i){delete D_c.controls.anchorHandles[R2m.uniqueId];c5i.remove();}};j6q.Studies.repositionAnchor=function(P$O,o_o){var U4i,f5M,L4k,N9Z,X8s,I1y,B12,k8u,X7B;var {currentAnchorTime:q9V, uniqueId:B2e}=o_o;var {hoverTick:L7j}=P$O.repositioningAnchorSelector || ({});var {dataSet:d_N, market:y$n}=P$O.chart;var {anchorHandles:Q8Z}=P$O.controls;U4i={};A2IFV.a9S();if(L7j || L7j === 0){f5M="HH";f5M+=":m";f5M+="m:s";f5M+="s";L4k="Anchor ";L4k+="Date";if(L7j >= d_N.length){return;}N9Z=!o_o.inputs[L4k];X8s=d_N[L7j].DT;I1y=j6q.Studies.getMarketOffset({stx:P$O,localQuoteDate:X8s,shiftToDateBoundary:!0});if(N9Z && new Date(X8s.getTime() + I1y).getDate() !== new Date(q9V.getTime() + I1y).getDate()){return;}if(y$n.market_def){X8s=new W7j.Date(X8s,y$n.market_def.market_tz);}B12=!N9Z && j6q.dateToStr(X8s,"YYYY-MM-dd");k8u=j6q.dateToStr(X8s,f5M);U4i={"Anchor Time":k8u};if(B12){U4i["Anchor Date"]=B12;}}X7B=j6q.Studies.replaceStudy(P$O,o_o.inputs.id,o_o.type,Object.assign(o_o.inputs,U4i),o_o.outputs,o_o.parameters,o_o.panel);Q8Z[B2e].sd=X7B;P$O.draw();};j6q.Studies.displayAnchorHandleAndLine=function(J3A,R$W,u_n){var J9A=A2IFV;var G7S,q5F,W6_,e0d,i$6,K5a,z2x,U4I,u1x,s7w,W1C,n3o,V4t,F_W,T9K,K5U;G7S=(J3A.repositioningAnchorSelector || ({})).sd === R$W;var {hoverTick:s67}=G7S && J3A.repositioningAnchorSelector;var {chart:V2N, panels:a$k, xaxisHeight:y54}=J3A;var {market:W0T = {}, symbol:g2E}=V2N;q5F=a$k[R$W.panel];var {top:M2t, bottom:r_p, right:U$T, left:P2b, height:N$H}=q5F;var {inputs:Q3m, anchorHandle:K4J, currentAnchorTime:f0q}=R$W;var {backgroundColor:A2Q, borderLeftColor:z3P}=J3A.canvasStyle("stx_anchor_handle");var [w1I,a_4,d50 = +"0"]=(Q3m["Anchor Time"] || "").split(":");W6_=!Q3m["Anchor Date"];e0d=j6q.getFn("Market.Symbology.isForexSymbol")(g2E);i$6=(s67 || s67 === 0) && (J3A.chart.dataSet[s67] || ({})).DT;K5a=j6q.Studies.getMarketOffset({stx:J3A,localQuoteDate:u_n[u_n.length - +"1"].DT,shiftToDateBoundary:!![]});z2x=i$6 && W6_ && new Date(i$6.getTime() + K5a).getDate() !== new Date(f0q.getTime() + K5a).getDate();var {highlighted:P$p}=J3A.controls.anchorHandles[R$W.uniqueId];var [U9i,O4m]=W0T.getNormalOpen().split(6958 !== ("483" ^ 0)?(367.59,3068) < (4953,867.97)?(655.31,405.05) >= 934?(![],968.63):(0xb3f,2.96e+3):":":(![],438.72)).map(U3V=>{J9A.D0H();return parseInt(U3V);});U4I=e0C=>{var q$8;q$8=e0C?J3A.tickFromDate(e0C,null,null,!!({})):s67;J9A.a9S();return [J3A.pixelFromTick(q$8,V2N),q$8];};u1x=W6_?new Date(u_n[u_n.length - "1" * 1].DT):j6q.strToDate(Q3m["Anchor Date"]);if(W0T.market_def){u1x=new W7j.Date(u1x,W0T.market_def.market_tz);}u1x.setHours(w1I,a_4,d50);s7w=e0d && (u1x.getHours() > U9i || u1x.getHours() === U9i && u1x.getMinutes() >= O4m);if(s7w){u1x.setDate(u1x.getDate() - 1);}var [Z6C]=U4I();var [u3x,b1a]=U4I(u1x);W1C=new Date(u1x);W1C.setHours(...W0T.getNormalClose().split((415.47,"661.86" * 1) <= "1960" >> 0?191.13 !== 4218?":":1890 == 2430?"M":("0x121a" | 24,!!({})):!!"1"));if(s7w){W1C.setDate(W1C.getDate() + 1);}var [Q4u]=W1C && U4I(W1C) || [];if(W6_ && (u3x > U$T || Q4u > U$T)){n3o=new Date(u1x);do {n3o.setDate(n3o.getDate() - 1);}while(W0T && !W0T.isMarketDate(n3o));var [Y4R,t_q]=U4I(n3o);if(Y4R > P2b){u1x=n3o;u3x=Y4R;b1a=t_q;}}V4t={y0:M2t,y1:r_p,type:"line",confineToPanel:q5F};J3A.plotLine(Object.assign(V4t,{x0:u3x,x1:u3x,color:A2Q,pattern:"solid",lineWidth:P$p?3:"2" << 96,opacity:1}));J3A.plotLine(Object.assign(V4t,{x0:Z6C,x1:Z6C,color:z2x?z3P:A2Q,pattern:[6,+"6"],lineWidth:2,opacity:z2x?0.5:1}));J9A.D0J(132);var t1w=J9A.S40(100,12,17,7,1);K4J.style.height=[8,N$H / 4,"50" - 0].sort((V7C,Q0K)=>{J9A.D0J(7);J9A.D0H();return J9A.q7n(Q0K,V7C);})[t1w] + "px";var {height:Y6q, width:I3B}=K4J.getBoundingClientRect();F_W=Math.round(r_p) === J3A.height?y54:0;T9K=q5F.name === "chart"?35:+"0";J9A.H6P(48);K5U=J9A.q7n(Y6q,T9K,F_W,10);J9A.D0J(36);K4J.style.top=J9A.q7n("px",r_p,K5U);K4J.style.left=s67 || s67 === 0?Z6C:u3x - I3B / 2 + "px";R$W.currentAnchorTime=u1x;R$W.currentAnchorTick=b1a;};j6q.Studies.studyScriptLibrary={};j6q.Studies.studyLibrary=j6q.Studies.studyLibrary || ({});j6q.extend(j6q.Studies.studyLibrary,{ma:{name:"Moving Average",overlay:!![],calculateFN:j6q.Studies.calculateMovingAverage,inputs:{Period:50,Field:"field",Type:"ma",Offset:0},outputs:{MA:"#FF0000"}},"STD Dev":{name:"Standard Deviation",calculateFN:j6q.Studies.calculateStandardDeviation,inputs:{Period:+"14",Field:"field","Standard Deviations":"2" | 2,"Moving Average Type":"ma"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"True Range":{name:p8o,calculateFN:j6q.Studies.calculateStudyATR,inputs:{},outputs:{"True Range":"auto"}},volume:{name:"Volume Chart",range:"0 to max",yAxis:{ground:!!({}),initialMarginTop:0,zoom:"0" - 0},seriesFN:j6q.Studies.createVolumeChart,calculateFN:j6q.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":"#b82c0c"}}});};L0=v7$=>{var V6w;V6w=typeof _CIQ !== "undefined"?_CIQ:v7$.CIQ;A2IFV.D0H();if(!V6w.ChartEngine.Driver){console.error("symbolLookupBase feature requires first activating quoteFeed feature.");}else {V6w.ChartEngine.Driver.Lookup=function(N05){};V6w.ChartEngine.Driver.Lookup.prototype.acceptText=function(G8m,w0z,s4S,J1q){A2IFV.a9S();if(!this.cb){return;}};}};W_=B3J=>{var c1g,O1F;c1g="und";c1g+="efin";c1g+="ed";O1F=typeof _CIQ !== c1g?_CIQ:B3J.CIQ;O1F.ThemeHelper=O1F.ThemeHelper || (function(k_4){var j1I,M6D,c53,D2T,q4w,k4i,N_u,b99,e4h,B8A,v68;j1I="stx_mou";A2IFV.D0H();j1I+="ntain_chart";M6D="Ca";M6D+="nd";M6D+="le/Bar";c53="stx_";c53+="ca";c53+="ndle_dow";c53+="n";D2T="Can";D2T+="dl";D2T+="e/Bar";q4w="stx_can";q4w+="dle_shad";q4w+="ow_dow";q4w+="n";k4i="Candle/B";k4i+="ar";N_u="Cand";N_u+="l";N_u+="e/";N_u+="Bar";b99="Candl";b99+="e/Bar";e4h="stx_gri";e4h+="d";this.params=k_4;B8A=k_4.stx;v68="#FFFFFF";if(B8A.chart.container){v68=getComputedStyle(B8A.chart.container).backgroundColor;if(O1F.isTransparent(v68)){v68=B8A.containerColor;}}this.settings.chart.Background.color=O1F.hexToRgba(v68);this.settings.chart["Grid Lines"].color=O1F.hexToRgba(B8A.canvasStyle(e4h).color);this.settings.chart["Grid Dividers"].color=O1F.hexToRgba(B8A.canvasStyle("stx_grid_dark").color);this.settings.chart["Axis Text"].color=O1F.hexToRgba(B8A.canvasStyle("stx_xaxis").color);this.settings.chartTypes[b99].up.color=O1F.hexToRgba(B8A.canvasStyle("stx_candle_up").color);this.settings.chartTypes["Candle/Bar"].down.color=O1F.hexToRgba(B8A.canvasStyle("stx_candle_down").color);this.settings.chartTypes[N_u].up.wick=O1F.hexToRgba(B8A.canvasStyle("stx_candle_shadow_up").color);this.settings.chartTypes[k4i].down.wick=O1F.hexToRgba(B8A.canvasStyle(q4w).color);this.settings.chartTypes["Candle/Bar"].even.wick=O1F.hexToRgba(B8A.canvasStyle("stx_candle_shadow_even").color);this.settings.chartTypes["Candle/Bar"].up.border=O1F.hexToRgba(B8A.canvasStyle("stx_candle_up").borderLeftColor);this.settings.chartTypes[D2T].down.border=O1F.hexToRgba(B8A.canvasStyle(c53).borderLeftColor);if(O1F.isTransparent(B8A.canvasStyle("stx_candle_up").borderLeftColor)){this.settings.chartTypes["Candle/Bar"].up.border=null;}if(O1F.isTransparent(B8A.canvasStyle("stx_candle_down").borderLeftColor)){this.settings.chartTypes[M6D].down.border=null;}this.settings.chartTypes.Line.color=O1F.hexToRgba(B8A.canvasStyle("stx_line_chart").color);this.settings.chartTypes.Mountain.color=O1F.hexToRgba(B8A.canvasStyle("stx_mountain_chart").backgroundColor);this.settings.chartTypes.Mountain.basecolor=O1F.hexToRgba(B8A.canvasStyle(j1I).color);});O1F.ThemeHelper.prototype.settings={chart:{Background:{color:null},"Grid Lines":{color:null},"Grid Dividers":{color:null},"Axis Text":{color:null}},chartTypes:{"Candle/Bar":{up:{color:null,wick:null,border:null},down:{color:null,wick:null,border:null},even:{color:null,wick:null,border:null}},Line:{color:null},Mountain:{color:null,basecolor:null}}};O1F.ThemeHelper.prototype.update=function(L7S){var e4C,f37,L4N,M41,S8M,T_K,a7Y,x6d,Z6Q,P_v,v4f,x1F,P8o;function p2_(x8w,c2c,E2J){var N4Z;N4Z=v4f[x8w];for(var u2M in N4Z){L7S.setStyle(u2M,c2c,E2J);}}e4C="st";e4C+="x_mountain_chart";f37="colo";f37+="r";L4N="s";L4N+="tx_li";L4N+="ne_chart";M41="c";M41+="ol";M41+="or";S8M="stx_candle_";S8M+="even";T_K="stx_c";T_K+="andle";T_K+="_dow";T_K+="n";a7Y="stx_can";a7Y+="dle_up";x6d="st";x6d+="x_xaxis";Z6Q="co";Z6Q+="lo";Z6Q+="r";P_v="stx";P_v+="_grid";if(!L7S){L7S=this.params.stx;}v4f={stx_candle_up:{stx_candle_up:!!1,stx_bar_up:!!({}),stx_hollow_candle_up:!!"1",stx_line_up:!!({}),stx_baseline_up:!![]},stx_candle_down:{stx_candle_down:!![],stx_bar_down:!"",stx_hollow_candle_down:!"",stx_line_down:!!1,stx_baseline_down:!!1},stx_candle_even:{stx_hollow_candle_even:!"",stx_bar_even:!0},stx_shadow_up:{stx_candle_shadow_up:!!({})},stx_shadow_down:{stx_candle_shadow_down:!!({})},stx_shadow_even:{stx_candle_shadow_even:!!({})},stx_line_chart:{stx_bar_chart:!![],stx_line_chart:!!({})},stx_grid:{stx_grid:!![]},stx_grid_dark:{stx_grid_dark:!!1},stx_xaxis:{stx_xaxis_dark:!![],stx_xaxis:!!({}),stx_yaxis:!0,stx_yaxis_dark:!!({}),stx_grid_border:!0},stx_mountain_chart:{stx_mountain_chart:!!({})},stx_market_session:{stx_market_session:!!1}};L7S.chart.container.style.backgroundColor=this.settings.chart.Background.color;L7S.defaultColor="";p2_(P_v,"color",this.settings.chart["Grid Lines"].color);p2_("stx_grid_dark",Z6Q,this.settings.chart["Grid Dividers"].color);p2_(x6d,"color",this.settings.chart["Axis Text"].color);x1F=this.settings.chartTypes["Candle/Bar"];if(!x1F.even){P8o="stx_candle_";P8o+="shadow_even";x1F.even={color:null,wick:O1F.hexToRgba(L7S.canvasStyle(P8o).color),border:null};}p2_(a7Y,"color",x1F.up.color);p2_(T_K,"color",x1F.down.color);p2_(S8M,M41,x1F.even.color);p2_("stx_shadow_up","color",x1F.up.wick);p2_("stx_shadow_down","color",x1F.down.wick);p2_("stx_shadow_even","color",x1F.even.wick);L7S.setStyle("stx_candle_up","borderLeftColor",x1F.up.border);A2IFV.a9S();L7S.setStyle("stx_candle_down","borderLeftColor",x1F.down.border);p2_(L4N,f37,this.settings.chartTypes.Line.color);L7S.setStyle("stx_mountain_chart","borderTopColor",O1F.hexToRgba(this.settings.chartTypes.Mountain.color,1));L7S.setStyle("stx_mountain_chart","backgroundColor",O1F.hexToRgba(this.settings.chartTypes.Mountain.color,0.5));L7S.setStyle(e4C,"color",O1F.hexToRgba(this.settings.chartTypes.Mountain.basecolor,0.01));L7S.draw();};O1F.ChartEngine.prototype.setThemeSettings=function(L26){var O6U,j2q;O6U="t";O6U+="heme";this.styles={};this.chart.container.style.backgroundColor="";this.defaultColor="";A2IFV.D0H();if(L26){j2q=new O1F.ThemeHelper({stx:this});j2q.settings=L26;j2q.update();}this.updateListeners(O6U);this.changeOccurred("theme");if(this.displayInitialized){this.headsUpHR();this.clearPixelCache();this.updateListeners("theme");this.draw();}};};f9=n6O=>{var b9a,I6f,g9J,v_c,D_T,z1v,w69,X7_,b0l,j1J,f4F,M8l,N8S,i4R,f91,G9R,X8v,w5R,C5q,w2F,j0G,o6d,w$C,a0Z,E7Y,W6m,b9l,U17,x7Q,k1L,a12,X9J,Y_p,r$P,v5$,h$f,p2x,r86,M1n,l7u,S6F,d4i,X84,Y9q,o7p,F0q,t3R,F1S,t6U,r_7,K_p,d0A,v4z,n5A,q2Y,d3p,p4_,A6s,E5z,U9l,a8E,K6e,I7s,k2Y,s7n,y9b,d5J,n_B,T6n,B4v,C13,a3J,f13,N6e,o04,F$Q,f1q,d2I,N4h,x2e,e5P,p_e,A8o,Y4c,F5e,e5C,m17,Q6W,J2n,o$P,S2q,i42,U25,j4p,X9h,E_N,r92,K6K,c7r,x2f,A_5,u29,s3D,f2m,n9m,U_G,y11,t_0,j5L,Q0N,Y4l,c55,s$6,i$J,j7U,A2n,s6y,k5y,h8z,i3W,Q4p,g$w,r$L,g3r,c29,X94,q23,G3_,K9l,n9S,O0H,W72,x$T,d7x,L8w,P1e,k9J,c8l,u2u,Y27,Y9_,p0u,X0Q,W2d,s$W,X0R,t1h,R94,h6Z,g0$,v6b,Q9T,t7u,W5m,v8Q,f5K,Z6N,o89,Z18,a9A,Q5m,E8n,K1K,T0X,Y7z,G8y,N5K,F2x,H27,F$t,g2H,b9W,t$9,Y3H,T$4,E4O,U4Z,x3k,n53;b9a="m";b9a+="a";b9a+="x";I6f="S";I6f+="u";I6f+="n>";I6f+="=1";g9J="m";g9J+="ax";v_c="S";v_c+="un>=";v_c+="2";D_T="Su";D_T+="n>=";D_T+="9";z1v="M";z1v+="ay";w69="N";w69+="o";w69+="v";X7_="o";X7_+="nly";b0l="Su";b0l+="n>=1";j1J="S";j1J+="un";j1J+=">=";j1J+="8";f4F="Su";f4F+="n>";f4F+="=1";M8l="N";M8l+="o";M8l+="v";N8S="lastS";N8S+="un";i4R="m";i4R+="a";i4R+="x";f91="m";f91+="a";f91+="x";G9R="Sun";G9R+=">=8";X8v="M";X8v+="a";X8v+="r";w5R="ma";w5R+="x";C5q="S";C5q+="un>";C5q+="=1";w2F="m";w2F+="a";w2F+="x";j0G="Ma";j0G+="r";o6d="N";o6d+="o";o6d+="v";w$C="m";w$C+="ax";a0Z="Ma";a0Z+="r";E7Y="l";E7Y+="astSun";W6m="ma";W6m+="x";b9l="m";b9l+="a";b9l+="x";U17="last";U17+="S";U17+="un";x7Q="m";x7Q+="a";x7Q+="x";k1L="S";k1L+="un>=";k1L+="15";a12="on";a12+="l";a12+="y";X9J="Su";X9J+="n>=1";Y_p="A";Y_p+="p";Y_p+="r";r$P="m";r$P+="a";r$P+="x";v5$="S";v5$+="un>=1";h$f="A";h$f+="p";h$f+="r";p2x="S";p2x+="e";p2x+="p";r86="o";r86+="n";r86+="l";r86+="y";M1n="Su";M1n+="n>";M1n+="=8";l7u="on";l7u+="ly";S6F="Oc";S6F+="t";d4i="Sun>";d4i+="=1";X84="m";X84+="ax";Y9q="m";Y9q+="ax";o7p="m";o7p+="a";o7p+="x";F0q="Su";F0q+="n>=1";t3R="Ap";t3R+="r";F1S="m";F1S+="a";F1S+="x";t6U="O";t6U+="ct";r_7="Sun>";r_7+="=1";K_p="m";K_p+="a";K_p+="x";d0A="A";d0A+="p";d0A+="r";v4z="m";v4z+="a";v4z+="x";n5A="M";n5A+="ar";q2Y="Sat>=2";q2Y+="4";d3p="la";d3p+="s";d3p+="t";d3p+="Sun";p4_="O";p4_+="ct";A6s="Oc";A6s+="t";E5z="m";E5z+="a";E5z+="x";U9l="lastS";U9l+="un";a8E="2";a8E+="0";K6e="M";K6e+="a";K6e+="r";I7s="2";I7s+="1";k2Y="m";k2Y+="a";k2Y+="x";s7n="M";s7n+="a";s7n+="r";y9b="m";y9b+="a";y9b+="x";d5J="m";d5J+="a";d5J+="x";n_B="W";n_B+="A";n_B+="T";T6n="CA";T6n+="T";B4v="Ap";B4v+="r";C13="2";C13+="3";a3J="F";a3J+="e";a3J+="b";f13="o";f13+="nl";f13+="y";N6e="1";N6e+="0";o04="1";o04+="9";F$Q="o";F$Q+="nly";f1q="o";f1q+="n";f1q+="l";f1q+="y";d2I="2";d2I+="7";N4h="M";N4h+="a";N4h+="r";x2e="1";x2e+="1";e5P="1";e5P+="9";p_e="J";p_e+="u";p_e+="n";A8o="o";A8o+="nl";A8o+="y";Y4c="J";Y4c+="u";Y4c+="n";F5e="1";F5e+="3";e5C="M";e5C+="a";e5C+="y";m17="onl";m17+="y";Q6W="A";Q6W+="si";Q6W+="a/Riyadh";J2n="Europe";J2n+="/Moscow";o$P="E";o$P+="urope";o$P+="/Bucharest";S2q="-";S2q+="0";S2q+="3/-02";i42="-0";i42+="2";U25="-04/-";U25+="03";j4p="-05/-";j4p+="04";X9h="C";X9h+="hile";E_N="B";E_N+="ra";E_N+="z";E_N+="il";r92="-03";r92+="/-";r92+="02";K6K="E";K6K+="S";K6K+="T";c7r="E%";c7r+="sT";x2f="C";x2f+="u";x2f+="b";x2f+="a";A_5="M%";A_5+="sT";u29="M";u29+="exico";s3D="Canad";s3D+="a";f2m="HS";f2m+="T";n9m="M";n9m+="%";n9m+="sT";U_G="C%s";U_G+="T";y11="+";y11+="0";y11+="3";t_0="+";t_0+="1";t_0+="1";j5L="+";j5L+="11";Q0N="+";Q0N+="1";Q0N+="0";Y4l="+";Y4l+="0";Y4l+="4";c55="E";c55+="U";s$6="E";s$6+="U";i$J="E";i$J+="U";j7U="C";j7U+="E%";j7U+="sT";A2n="E";A2n+="U";s6y="Thul";s6y+="e";k5y="E";k5y+="U";h8z="E";h8z+="U";i3W="G";i3W+="M";i3W+="T/BS";i3W+="T";Q4p="To";Q4p+="nga";g$w="+1";g$w+="3/+14";r$L="W";r$L+="S";g3r="+";g3r+="12/";g3r+="+13";c29="AE%s";c29+="T";X94="AC%s";X94+="T";q23="A";q23+="Q";G3_="A";G3_+="W";K9l="+";K9l+="0";K9l+="3";n9S="+054";n9S+="5";O0H="M";O0H+="on";O0H+="g";O0H+="ol";W72="+07/+";W72+="08";x$T="Leb";x$T+="a";x$T+="no";x$T+="n";d7x="I";d7x+="S";d7x+="T";L8w="H";L8w+="K";P1e="C";P1e+="%";P1e+="s";P1e+="T";k9J="%";k9J+="s";c8l="S";c8l+="A";u2u="%";u2u+="s";Y27="Nami";Y27+="bia";Y9_="Pacifi";Y9_+="c/Apia";p0u="Pacific/Ch";p0u+="atha";p0u+="m";X0Q="P";X0Q+="acifi";X0Q+="c/Auckland";W2d="Asia/Ka";W2d+="mc";W2d+="h";W2d+="atka";s$W="Pacifi";s$W+="c/Noumea";X0R="Australia/Bri";X0R+="sbane";t1h="Asia/P";t1h+="yongyang";R94="Asia/To";R94+="k";R94+="yo";h6Z="Australi";h6Z+="a/Euc";h6Z+="la";g0$="Asi";g0$+="a";g0$+="/Taipei";v6b="Asia";v6b+="/Kual";v6b+="a_Lumpur";Q9T="Asi";Q9T+="a/Bangkok";t7u="A";t7u+="s";t7u+="ia/Kab";t7u+="ul";W5m="Asia";W5m+="/Du";W5m+="bai";v8Q="Asia/Te";v8Q+="hran";f5K="Euro";f5K+="pe/Mo";f5K+="scow";Z6N="Eu";Z6N+="rope/Istanb";Z6N+="ul";o89="Asi";o89+="a/Damasc";o89+="us";Z18="Europe/H";Z18+="elsinki";a9A="Africa/Joh";a9A+="annes";a9A+="burg";Q5m="Eur";Q5m+="ope/Bucharest";E8n="Afric";E8n+="a/Casablanc";E8n+="a";K1K="Afr";K1K+="ic";K1K+="a/Tun";K1K+="is";T0X="Atla";T0X+="ntic/South_";T0X+="Georgia";Y7z="America/Punta_Arena";Y7z+="s";G8y="America";G8y+="/Panama";N5K="Americ";N5K+="a/St_Johns";F2x="Am";F2x+="erica/Puerto_Rico";H27="Ame";H27+="rica/Santiag";H27+="o";F$t="America/";F$t+="N";F$t+="ew_Yor";F$t+="k";g2H="Amer";g2H+="ica/Reg";g2H+="i";g2H+="na";b9W="Americ";b9W+="a/Mexi";b9W+="co_City";t$9="America/Chic";t$9+="ago";Y3H="America/Costa_";Y3H+="Rica";T$4="Ameri";T$4+="ca/Denver";E4O="Paci";E4O+="fic/";E4O+="P";E4O+="ago_Pago";U4Z="undefi";U4Z+="n";U4Z+="ed";x3k=typeof _CIQ !== "undefined"?_CIQ:n6O.CIQ;n53=typeof _timezoneJS !== U4Z?_timezoneJS:n6O.timezoneJS;x3k.timeZoneMap={"(UTC-11:00) American Samoa, Midway Island":E4O,"(UTC-10:00) Hawaii":"Pacific/Honolulu","(UTC-09:00) Alaska":"America/Juneau","(UTC-08:00) Pacific Time (US and Canada), Tijuana":"America/Los_Angeles","(UTC-07:00) Arizona":"America/Phoenix","(UTC-07:00) Chihuahua, Mazatlan":"America/Chihuahua","(UTC-07:00) Mountain Time (US and Canada)":T$4,"(UTC-06:00) Central America":Y3H,"(UTC-06:00) Central Time (US and Canada)":t$9,"(UTC-06:00) Guadalajara, Mexico City, Monterrey":b9W,"(UTC-06:00) Saskatchewan":g2H,"(UTC-05:00) Bogota, Lima, Quito, Rio Branco":"America/Bogota","(UTC-05:00) Eastern Time (US and Canada)":F$t,"(UTC-05:00) Havana":"America/Havana","(UTC-05:00) Port-au-Prince":"America/Port-au-Prince","(UTC-04:00) Asuncion":"America/Asuncion","(UTC-04:00) Santiago":H27,"(UTC-04:00) Caracas":"America/Caracas","(UTC-04:00) Atlantic Time (Canada)":"America/Halifax","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan":F2x,"(UTC-03:30) Newfoundland and Labrador":N5K,"(UTC-03:00) Cancun, Jamaica, Panama":G8y,"(UTC-03:00) Buenos Aires":"America/Argentina/Buenos_Aires","(UTC-03:00) Punta Arenas":Y7z,"(UTC-03:00) Montevideo":"America/Montevideo","(UTC-03:00) Sao Paulo":"America/Sao_Paulo","(UTC-02:00) Mid-Atlantic":T0X,"(UTC-01:00) Azores":"Atlantic/Azores","(UTC-01:00) Cape Verde Islands":"Atlantic/Cape_Verde","(UTC) Greenwich Mean Time, Reykjavik":"UTC","(UTC) Dublin":"Europe/Dublin","(UTC) Lisbon, London":"Europe/London","(UTC+01:00) Algiers, Tunis":K1K,"(UTC+01:00) Casablanca":E8n,"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":"Europe/Amsterdam","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague":"Europe/Belgrade","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris":"Europe/Brussels","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb":"Europe/Sarajevo","(UTC+02:00) Kaliningrad":"Europe/Kaliningrad","(UTC+02:00) Athens, Bucharest":Q5m,"(UTC+02:00) Cairo":"Africa/Cairo","(UTC+02:00) Harare, Johannesburg":a9A,"(UTC+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius":Z18,"(UTC+02:00) Cyprus":"Asia/Nicosia","(UTC+02:00) Beirut":"Asia/Beirut","(UTC+02:00) Damascus":o89,"(UTC+02:00) Jerusalem":"Asia/Jerusalem","(UTC+02:00) Amman":"Asia/Amman","(UTC+03:00) Istanbul":Z6N,"(UTC+03:00) Baghdad, Kuwait, Qatar, Riyadh":"Asia/Riyadh","(UTC+03:00) Minsk, Moscow, Kirov, Simferopol":f5K,"(UTC+03:00) Volgograd":"Europe/Volgograd","(UTC+03:00) Nairobi":"Africa/Nairobi","(UTC+03:30) Tehran":v8Q,"(UTC+04:00) Baku":"Asia/Baku","(UTC+04:00) Dubai, Muscat":W5m,"(UTC+04:00) Astrakhan, Samara, Saratov, Ulyanovsk":"Europe/Samara","(UTC+04:30) Kabul":t7u,"(UTC+05:00) Karachi, Tashkent":"Asia/Karachi","(UTC+05:00) Yekaterinburg":"Asia/Yekaterinburg","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi":"Asia/Kolkata","(UTC+05:45) Kathmandu":"Asia/Kathmandu","(UTC+06:00) Almaty":"Asia/Almaty","(UTC+06:00) Omsk":"Asia/Omsk","(UTC+06:00) Astana, Dhaka":"Asia/Dhaka","(UTC+06:30) Yangon":"Asia/Yangon","(UTC+07:00) Bangkok, Jakarta, Vietnam":Q9T,"(UTC+07:00) Hovd":"Asia/Hovd","(UTC+07:00) Krasnoyarsk":"Asia/Krasnoyarsk","(UTC+07:00) Novokuznetsk":"Asia/Novokuznetsk","(UTC+07:00) Barnaul, Novosibirsk, Tomsk":"Asia/Novosibirsk","(UTC+08:00) Beijing, Chongqing, Hong Kong SAR":"Asia/Hong_Kong","(UTC+08:00) Brunei, Kuala Lumpur, Singapore":v6b,"(UTC+08:00) Irkutsk":"Asia/Irkutsk","(UTC+08:00) Choibalsan, Ulaanbaatar":"Asia/Ulaanbaatar","(UTC+08:00) Manila, Taipei":g0$,"(UTC+08:00) Perth":"Australia/Perth","(UTC+08:45) Eucla":h6Z,"(UTC+09:00) Osaka, Sapporo, Tokyo":R94,"(UTC+09:00) Pyongyang":t1h,"(UTC+09:00) Seoul":"Asia/Seoul","(UTC+09:00) Chita, Khandyga, Yakutsk":"Asia/Yakutsk","(UTC+09:30) Adelaide":"Australia/Adelaide","(UTC+09:30) Darwin":"Australia/Darwin","(UTC+10:00) Brisbane":X0R,"(UTC+10:00) Canberra, Melbourne, Sydney":"Australia/Sydney","(UTC+10:00) Guam, Port Moresby":"Pacific/Guam","(UTC+10:00) Ust-Nera, Vladivostok":"Asia/Vladivostok","(UTC+11:00) Noumea, Solomon Islands":s$W,"(UTC+11:00) Magadan":"Asia/Magadan","(UTC+11:00) Sakhalin, Srednekolymsk":"Asia/Srednekolymsk","(UTC+12:00) Anadyr, Kamchatka":W2d,"(UTC+12:00) Auckland, Wellington":X0Q,"(UTC+12:00) Fiji":"Pacific/Fiji","(UTC+12:45) Chatham":p0u,"(UTC+13:00) Tonga":"Pacific/Tongatapu","(UTC+13:00) Samoa":Y9_,"(UTC+14:00) Kiritimati":"Pacific/Kiritimati"};(function(){var L9E=A2IFV;var R97,f7O,W50,f7A,k7U,p8I,n4l,V7P,r3Z,L0m,D8n,c4e,r5f,m7V,v7z,S2B,R$c,i8x,O18,i8b,J6x,F0l;R97="N";R97+="ov";R97+="em";R97+="ber";f7O="O";f7O+="ct";f7O+="obe";f7O+="r";W50="S";W50+="eptem";W50+="be";W50+="r";f7A="Ju";f7A+="ne";k7U="M";k7U+="a";k7U+="y";p8I="A";p8I+="pril";n4l="M";n4l+="arch";V7P="S";V7P+="at";V7P+="urda";V7P+="y";r3Z="M";r3Z+="o";r3Z+="nda";r3Z+="y";L0m="un";L0m+="defin";L0m+="ed";"use strict";D8n=typeof window !== "undefined"?window:null;c4e=D8n || (typeof global !== L0m?global:{});n53.VERSION="0.4.11";r5f=c4e.$ || c4e.jQuery || c4e.Zepto;m7V=c4e.fleegix;v7z=n53.Days=["Sunday",r3Z,"Tuesday","Wednesday","Thursday","Friday",V7P];S2B=n53.Months=["January","February",n4l,p8I,k7U,f7A,"July","August",W50,f7O,R97,"December"];R$c={};i8x={};O18={};for(var A7y=0;A7y < S2B.length;A7y++){R$c[S2B[A7y].substr(L9E.S40(1,"0",L9E.D0J(1)),3)]=A7y;}for(A7y=+"0";A7y < v7z.length;A7y++){i8x[v7z[A7y].substr(0,L9E.q7n(1,"3",L9E.D0J(1)))]=A7y;}i8b=Array.prototype.indexOf || (function(y$0){var E6G,w7T,T4O,e48,U4Q,I$J,O1K;if(this === null){throw new TypeError();}E6G=Object(this);w7T=E6G.length >>> 0;if(w7T === +"0"){return -1;}T4O=0;if(arguments.length > 1){T4O=Number(arguments[1]);if(T4O != T4O){T4O=0;}else if(T4O !== 0 && T4O !== Infinity && T4O !== -Infinity){e48=932114445;U4Q=372162485;I$J=2;for(var R4j=1;L9E.Z2Z(R4j.toString(),R4j.toString().length,67787) !== e48;R4j++){L9E.D0J(7);var N4a=L9E.S40(8,9);L9E.H6P(133);var V0W=L9E.S40(2,2,1,3,10);T4O=(T4O <= N4a && ~("6" * V0W)) / Math.floor(Math.abs(T4O));I$J+=2;}if(L9E.Z2Z(I$J.toString(),I$J.toString().length,46816) !== U4Q){L9E.H6P(18);var u3s=L9E.q7n(16,4,3);L9E.D0J(7);var z_v=L9E.q7n(9,15);T4O=(T4O <= u3s && ~z_v) / Math.floor(Math.abs(T4O));}L9E.H6P(22);var b_$=L9E.q7n(1,5,11,56);T4O=(T4O > 0 || b_$) * Math.floor(Math.abs(T4O));}}if(T4O >= w7T){return -1;}O1K=T4O >= 0?T4O:Math.max(w7T - Math.abs(T4O),0);for(;O1K < w7T;O1K++){if((O1K in E6G) && E6G[O1K] === y$0){return O1K;}}L9E.D0J(40);return -L9E.q7n(0,"1");});J6x=function(d0e,F72){var E8K,a$J,S3Z,V7y;E8K="nu";E8K+="mber";if(typeof d0e !== E8K){L9E.H6P(0);throw L9E.S40("not a number: ",d0e);}L9E.H6P(70);a$J=L9E.q7n(d0e,1000);S3Z=d0e.toString();V7y=S3Z.length;if(a$J && V7y > F72){L9E.H6P(7);return S3Z.substr(L9E.S40(F72,V7y),V7y);}S3Z=[S3Z];while(V7y < F72){S3Z.unshift((5020,"1007" ^ 0) <= +"4470"?679.89 < +"3623"?"0":8755 != 751?"B":(!!0,7.04e+3):629.34);V7y++;}return S3Z.join("");};F0l=function(G1h){var l8U,i_y,B6L;l8U="u";l8U+="nd";l8U+="efi";l8U+="ned";i_y="un";i_y+="defined";B6L="URL m";B6L+="ust be specified";if(!G1h){return;}if(!G1h.url){throw new Error(B6L);}if(!(("async" in G1h))){G1h.async=!!"1";}if((!m7V || typeof m7V.xhr === i_y) && (!r5f || typeof r5f.ajax === l8U)){throw new Error("Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.");}if(!G1h.async){return m7V && m7V.xhr?m7V.xhr.doReq({url:G1h.url,async:![]}):r5f.ajax({url:G1h.url,async:!({}),dataType:"text"}).responseText;}return m7V && m7V.xhr?m7V.xhr.send({url:G1h.url,method:"get",handleSuccess:G1h.success,handleErr:G1h.error}):r5f.ajax({url:G1h.url,dataType:"text",method:"GET",error:G1h.error,success:G1h.success});};n53.ruleCache={};n53.Date=function(){var E$i,x6Y,I17,D2R,I$R,Y6F,J5H;E$i="s";E$i+="t";E$i+="ri";E$i+="ng";if(this === n53){throw "timezoneJS.Date object must be constructed with 'new'";}x6Y=Array.prototype.slice.apply(arguments);I17=null;D2R=null;I$R=[];Y6F=![];if(Object.prototype.toString.call(x6Y[0]) === "[object Array]"){x6Y=x6Y[0];}if(typeof x6Y[x6Y.length - 1] === E$i){Y6F=Date.parse(x6Y[x6Y.length - 1].replace(/GMT[+-]\d+/,""));if(isNaN(Y6F) || Y6F === null){D2R=x6Y.pop();}}J5H=!1;switch(x6Y.length){case "0" | 0:I17=new Date();break;case 1:I17=new Date(x6Y[0]);if(typeof x6Y[0] == "string" && x6Y[0].search(/[+-][0-9]{4}/) == -1 && x6Y[0].search(/Z/) == -1 && x6Y[0].search(/T/) == -1){J5H=!0;}break;case 2:I17=new Date(x6Y[+"0"],x6Y[1]);J5H=!!({});break;default:for(var W6l=0;W6l < "7" << 0;W6l++){I$R[W6l]=x6Y[W6l] || 0;}L9E.D0J(10);I17=new Date(I$R[0],I$R[+"1"],I$R[2],I$R[3],I$R[4],I$R[5],I$R[L9E.S40("6",4)]);J5H=!"";break;}if(isNaN(I17.getTime())){throw new Error("Invalid date");}this._useCache=![];this._tzInfo={};this._day=0;L9E.D0J(40);this.year=L9E.S40(0,"0");this.month=0;this.date=0;this.hours=0;this.minutes=0;this.seconds=0;this.milliseconds=0;this.timezone=D2R || null;if(J5H){this.setFromDateObjProxy(I17);}else {this.setFromTimeProxy(I17.getTime(),D2R);}};x3k.extend(n53.Date.prototype,{getDate:function(){return this.date;},getDay:function(){L9E.D0H();return this._day;},getFullYear:function(){return this.year;},getMonth:function(){return this.month;},getYear:function(){L9E.H6P(121);var g$_=L9E.S40(10,1689,17,238);return this.year - g$_;},getHours:function(){return this.hours;},getMilliseconds:function(){return this.milliseconds;},getMinutes:function(){return this.minutes;},getSeconds:function(){L9E.D0H();return this.seconds;},getUTCDate:function(){L9E.D0H();return this.getUTCDateProxy().getUTCDate();},getUTCDay:function(){L9E.a9S();return this.getUTCDateProxy().getUTCDay();},getUTCFullYear:function(){L9E.a9S();return this.getUTCDateProxy().getUTCFullYear();},getUTCHours:function(){return this.getUTCDateProxy().getUTCHours();},getUTCMilliseconds:function(){return this.getUTCDateProxy().getUTCMilliseconds();},getUTCMinutes:function(){L9E.D0H();return this.getUTCDateProxy().getUTCMinutes();},getUTCMonth:function(){L9E.a9S();return this.getUTCDateProxy().getUTCMonth();},getUTCSeconds:function(){L9E.D0H();return this.getUTCDateProxy().getUTCSeconds();},getTime:function(){L9E.H6P(52);L9E.a9S();var K2r=L9E.S40(16740,1200,14);L9E.D0J(134);var v$X=L9E.q7n(20011,995,20000,11,5);return this._timeProxy + this.getTimezoneOffset() * K2r * v$X;},getTimezone:function(){return this.timezone;},getTimezoneOffset:function(){return this.getTimezoneInfo().tzOffset;},getTimezoneAbbreviation:function(){L9E.a9S();return this.getTimezoneInfo().tzAbbr;},getTimezoneInfo:function(){var u8q,k9L,A0p;if(this._useCache){return this._tzInfo;}if(this.timezone){k9L="U";k9L+="T";k9L+="C";A0p="Etc";A0p+="/U";A0p+="T";A0p+="C";u8q=this.timezone === A0p || this.timezone === "Etc/GMT"?{tzOffset:0,tzAbbr:k9L}:n53.timezone.getTzInfo(this._timeProxy,this.timezone);}else {u8q={tzOffset:this.getLocalOffset(),tzAbbr:null};}this._tzInfo=u8q;L9E.a9S();this._useCache=!!({});return u8q;},getUTCDateProxy:function(){var x$3;x$3=new Date(this._timeProxy);L9E.a9S();x$3.setUTCMinutes(x$3.getUTCMinutes() + this.getTimezoneOffset());return x$3;},setDate:function(X$e){this.setAttribute("date",X$e);L9E.a9S();return this.getTime();},setFullYear:function(j5P,V4L,i5a){var A4f;L9E.a9S();if(i5a !== undefined){this.setAttribute("date",1);}this.setAttribute("year",j5P);if(V4L !== undefined){A4f="mo";A4f+="nt";A4f+="h";this.setAttribute(A4f,V4L);}if(i5a !== undefined){this.setAttribute("date",i5a);}return this.getTime();},setMonth:function(g3I,g1g){this.setAttribute("month",g3I);if(g1g !== undefined){this.setAttribute("date",g1g);}L9E.D0H();return this.getTime();},setYear:function(l2W){l2W=Number(l2W);if(0 <= l2W && l2W <= 99){l2W+=1900;}this.setUTCAttribute("year",l2W);return this.getTime();},setHours:function(v5n,O$R,q2D,z5B){L9E.D0H();this.setAttribute("hours",v5n);if(O$R !== undefined){this.setAttribute("minutes",O$R);}if(q2D !== undefined){this.setAttribute("seconds",q2D);}if(z5B !== undefined){this.setAttribute("milliseconds",z5B);}return this.getTime();},setMinutes:function(S70,Q4x,T52){var N99;this.setAttribute("minutes",S70);if(Q4x !== undefined){N99="s";N99+="ec";N99+="on";N99+="ds";this.setAttribute(N99,Q4x);}if(T52 !== undefined){this.setAttribute("milliseconds",T52);}return this.getTime();},setSeconds:function(o4D,t9V){this.setAttribute("seconds",o4D);if(t9V !== undefined){this.setAttribute("milliseconds",t9V);}return this.getTime();},setMilliseconds:function(N_3){var y1x;y1x="millise";y1x+="conds";this.setAttribute(y1x,N_3);return this.getTime();},setTime:function(B9m){if(isNaN(B9m)){throw new Error("Units must be a number.");}this.setFromTimeProxy(B9m,this.timezone);return this.getTime();},setUTCFullYear:function(b5R,T5v,g7u){L9E.a9S();var s6W,X1b,Y8M;if(g7u !== undefined){s6W=-+"107761421";X1b=1862984064;Y8M=+"2";for(var j3W=1;L9E.U6$(j3W.toString(),j3W.toString().length,49801) !== s6W;j3W++){this.setUTCAttribute("",3);Y8M+=+"2";}if(L9E.U6$(Y8M.toString(),Y8M.toString().length,25666) !== X1b){this.setUTCAttribute("",3);}this.setUTCAttribute("date",1);}this.setUTCAttribute("year",b5R);if(T5v !== undefined){this.setUTCAttribute("month",T5v);}if(g7u !== undefined){this.setUTCAttribute("date",g7u);}return this.getTime();},setUTCMonth:function(E8_,C8w){this.setUTCAttribute("month",E8_);if(C8w !== undefined){this.setUTCAttribute("date",C8w);}L9E.D0H();return this.getTime();},setUTCDate:function(H8c){var L0$;L0$="da";L0$+="te";this.setUTCAttribute(L0$,H8c);return this.getTime();},setUTCHours:function(s8H,A91,M0E,J02){var G4u;G4u="h";G4u+="o";G4u+="ur";G4u+="s";this.setUTCAttribute(G4u,s8H);if(A91 !== undefined){this.setUTCAttribute("minutes",A91);}if(M0E !== undefined){this.setUTCAttribute("seconds",M0E);}if(J02 !== undefined){this.setUTCAttribute("milliseconds",J02);}return this.getTime();},setUTCMinutes:function(L$v,Q9G,n0D){this.setUTCAttribute("minutes",L$v);if(Q9G !== undefined){this.setUTCAttribute("seconds",Q9G);}if(n0D !== undefined){this.setUTCAttribute("milliseconds",n0D);}return this.getTime();},setUTCSeconds:function(i0N,h_z){var I6R;this.setUTCAttribute("seconds",i0N);if(h_z !== undefined){I6R="millise";I6R+="con";I6R+="ds";this.setUTCAttribute(I6R,h_z);}return this.getTime();},setUTCMilliseconds:function(b$w){this.setUTCAttribute("milliseconds",b$w);return this.getTime();},setFromDateObjProxy:function(w8E){this.year=w8E.getFullYear();this.month=w8E.getMonth();this.date=w8E.getDate();this.hours=w8E.getHours();this.minutes=w8E.getMinutes();this.seconds=w8E.getSeconds();this.milliseconds=w8E.getMilliseconds();this._day=w8E.getDay();this._dateProxy=w8E;this._timeProxy=Date.UTC(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.milliseconds);this._useCache=!"1";},setFromTimeProxy:function(e$2,m$V){var T6c,B8t;T6c=new Date(e$2);L9E.D0H();B8t=m$V?n53.timezone.getTzInfo(e$2,m$V,!0).tzOffset:T6c.getTimezoneOffset();T6c.setTime(e$2 + (T6c.getTimezoneOffset() - B8t) * 60000);this.setFromDateObjProxy(T6c);},setAttribute:function(h7r,f51){var O2$,h6T,d3x;if(isNaN(f51)){O2$="Uni";O2$+="ts must be a number.";throw new Error(O2$);}h6T=this._dateProxy;d3x=h7r === "year"?"FullYear":h7r.substr(0,1).toUpperCase() + h7r.substr(1);h6T["set" + d3x](f51);this.setFromDateObjProxy(h6T);},setUTCAttribute:function(u4$,b5o){var q_G,V3y;if(isNaN(b5o)){throw new Error("Units must be a number.");}L9E.a9S();q_G=u4$ === "year"?"FullYear":u4$.substr(0,1).toUpperCase() + u4$.substr("1" >> 0);V3y=this.getUTCDateProxy();V3y["setUTC" + q_G](b5o);V3y.setUTCMinutes(V3y.getUTCMinutes() - this.getTimezoneOffset());this.setFromTimeProxy(V3y.getTime() + this.getTimezoneOffset() * 60000,this.timezone);},setTimezone:function(o29){var T1D;T1D=this.getTimezoneInfo().tzOffset;this.timezone=o29;this._useCache=!({});L9E.D0H();this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + T1D);},removeTimezone:function(){this.timezone=null;this._useCache=![];},valueOf:function(){return this.getTime();},clone:function(){return this.timezone?new n53.Date(this.getTime(),this.timezone):new n53.Date(this.getTime());},toGMTString:function(){var q4U;q4U="Etc";q4U+="/GMT";return this.toString("EEE, dd MMM yyyy HH:mm:ss Z",q4U);},toLocaleStringIntl:function(){},toLocaleDateString:function(){},toLocaleTimeString:function(){},toSource:function(){},toISOString:function(){var D1D;D1D="Etc";L9E.a9S();D1D+="/";D1D+="UTC";L9E.H6P(36);var r0s=L9E.S40(12,7033,15);L9E.D0J(135);var c3S=L9E.S40(19490,1642,18,12);return this.toString("yyyy-MM-ddTHH:mm:ss.SSS",D1D) + (r0s < c3S?"Z":"a");},toJSON:function(){L9E.a9S();return this.toISOString();},toDateString:function(){var y92;y92="E";L9E.a9S();y92+="EE M";y92+="MM dd yyy";y92+="y";return this.toString(y92);},toTimeString:function(){L9E.a9S();return this.toString("H:mm k");},toString:function(G6H,m8X){var G7b,L9p,B4L,a8m,X5p;G7b="yyyy-MM-ddTHH:";G7b+="mm";G7b+=":ss.SSS";if(!G6H){G6H=G7b;}L9p=G6H;L9E.D0H();B4L=m8X?n53.timezone.getTzInfo(this.getTime(),m8X):this.getTimezoneInfo();a8m=this;if(m8X){a8m=this.clone();a8m.setTimezone(m8X);}X5p=a8m.getHours();return L9p.replace(/a+/g,function(){return (6330,1920) <= (891.18,7580)?"k":(5350,"281.12" * 1) != (949,"120.62" - 0)?5.94e+3:+"346.59";}).replace(/y+/g,function(h54){return J6x(a8m.getFullYear(),h54.length);}).replace(/d+/g,function(Z2A){return J6x(a8m.getDate(),Z2A.length);}).replace(/m+/g,function(T1g){L9E.D0H();return J6x(a8m.getMinutes(),T1g.length);}).replace(/s+/g,function(u1h){return J6x(a8m.getSeconds(),u1h.length);}).replace(/S+/g,function(D22){return J6x(a8m.getMilliseconds(),D22.length);}).replace(/h+/g,function(X9n){return J6x(X5p % +"12" === 0?12:X5p % ("12" | 12),X9n.length);}).replace(/M+/g,function(r0R){var j9j,l0H;L9E.D0H();j9j=a8m.getMonth();l0H=r0R.length;if(l0H > +"3"){return n53.Months[j9j];}else if(l0H > +"2"){return n53.Months[j9j].substring(0,l0H);}L9E.D0J(0);return J6x(L9E.q7n(j9j,1),l0H);}).replace(/k+/g,function(){if(X5p >= ("12" ^ 0)){if(X5p > "12" - 0){X5p-=12;}return "PM";}L9E.a9S();return "AM";}).replace(/H+/g,function(g0I){L9E.a9S();return J6x(X5p,g0I.length);}).replace(/E+/g,function(c1X){L9E.D0J(28);L9E.D0H();return v7z[a8m.getDay()].substring(L9E.q7n("0",96),c1X.length);}).replace(/Z+/gi,function(){return B4L.tzAbbr;});},toUTCString:function(){L9E.D0H();return this.toGMTString();},civilToJulianDayNumber:function(A3i,h_c,E17){var U1J,E$L,L33;h_c++;if(h_c > "12" << 32){L9E.D0J(14);U1J=parseInt(L9E.S40(12,h_c),10);L9E.D0J(75);h_c=L9E.q7n(h_c,12);A3i+=U1J;}if(h_c <= 2){A3i-=1;h_c+=12;}L9E.D0J(8);U1J=Math.floor(L9E.S40(A3i,"100"));L9E.D0J(39);var R65=L9E.S40(9,4,3);L9E.H6P(12);var F5b=L9E.S40(7,3,7);E$L=R65 - U1J + Math.floor(U1J / F5b);L9E.H6P(52);var I1m=L9E.q7n(44,15,3);L9E.D0J(106);var S$u=L9E.S40(15,152,1496,19,17);L9E.a9S();L33=Math.floor(365.25 * (A3i + +"4716")) + Math.floor(+"30.6001" * (h_c + I1m)) + E17 + E$L - S$u;return L33;},getLocalOffset:function(){L9E.D0H();return this._dateProxy.getTimezoneOffset();}},!!1);n53.timezone=new (function(){var I1v,h1S,E4f,d6u,w0o,R_k,C0t,d7u,V3S,D9T,u$D,t4j,G8A,I91,q$k,h5k,n1T,Y_O,J8h,r2m,J$8,c$3,h24,I$t,c$Z,B71,F$X;I1v="m";I1v+="an";I1v+="ualLoa";I1v+="d";h1S="p";h1S+="r";h1S+="el";h1S+="oadAll";E4f="e";E4f+="u";E4f+="rope";d6u="etcete";d6u+="ra";w0o="a";w0o+="fr";function E7u(o$t,U6c,D8t,j5d){var r7q,f1C,Q9D,L6Y,S0I,q_2,X5W,J$f,c9_,P_d,C4F,s8b,P6z,t5s,j0I;r7q="nu";r7q+="mber";f1C=typeof o$t === r7q?new Date(o$t):o$t;Q9D=U6c[1];L6Y=U6c[0];S0I=Q9D.match(/^([0-9]):([0-9][0-9])$/);if(S0I){q_2="m";q_2+="a";q_2+="x";L9E.D0J(123);var f2E=L9E.q7n(20,14,271,18);L9E.H6P(7);var Z$U=L9E.q7n(19,29);L9E.D0J(19);var U_o=L9E.S40(120,9,20,89);L9E.D0J(52);var P85=L9E.q7n(36,19,2);L9E.D0J(1);return [-1000000,q_2,337.42 >= 5080?0x69c:4020 >= (6720,100.04)?"925" - 0 > 2650?(0x1486,0x1dce):"-":(246.19,0x74e),"Jan",L9E.S40(1,"1"),[+"0",0,0],parseInt(S0I[f2E],Z$U) * U_o + parseInt(S0I[P85],"10" - 0),"-"];}X5W=function(s$Y,S$Q,C2T){var T5y;T5y=0;if(S$Q === "u" || S$Q === (9752 === 7560?432.49:"g") || S$Q === ((434.62,"9460" >> 64) >= 3200?(282,680.96) >= 6070?("0x139d" - 0,890.28):"z":0x2329)){T5y=0;}else if(S$Q === "s"){T5y=L6Y;}else if(S$Q === "w" || !S$Q){T5y=F_m(L6Y,C2T[6]);}else {L9E.H6P(0);throw new Error(L9E.S40("unknown type ",S$Q));}L9E.H6P(136);T5y*=L9E.S40("1000",60);return new Date(s$Y.getTime() + T5y);};J$f=function(a2y,m47){var e8W,o_n,H4w,c47,O3a,q2$,U8f;L9E.a9S();e8W=a2y[0];o_n=a2y[1];H4w=o_n[5];if(!O18[e8W]){O18[e8W]={};}if(O18[e8W][o_n]){c47=O18[e8W][o_n];}else {if(!isNaN(o_n[4])){c47=new Date(Date.UTC(e8W,R$c[o_n[3]],o_n["4" - 0],H4w[0],H4w[1],H4w[2],0));}else {if(o_n[4].substr("0" * 1,4) === "last"){c47=new Date(Date.UTC(e8W,R$c[o_n[+"3"]] + +"1",1,H4w[0] - +"24",H4w[1],H4w[2],0));O3a=i8x[o_n[4].substr(L9E.S40(1,"4",L9E.H6P(1)),+"3")];q2$="<=";}else {c47=new Date(Date.UTC(e8W,R$c[o_n[3]],o_n[4].substr("5" | 1),H4w[0],H4w[+"1"],H4w[2],0));O3a=i8x[o_n[4].substr(0,L9E.q7n(1,"3",L9E.H6P(1)))];q2$=o_n["4" << 32].substr(3,2);}U8f=c47.getUTCDay();if(q2$ === ">="){c47.setUTCDate(c47.getUTCDate() + (O3a - U8f + (O3a < U8f?7:0)));}else {c47.setUTCDate(c47.getUTCDate() + (O3a - U8f - (O3a > U8f?7:0)));}}O18[e8W][o_n]=c47;}if(m47){c47=X5W(c47,H4w["3" | 1],m47);}return c47;};c9_=function(w$G,H95){var f$z;f$z=[];for(var m_j=0;H95 && m_j < H95.length;m_j++){if(H95[m_j][+"0"] <= w$G && (H95[m_j][1] >= w$G || H95[m_j][0] === w$G && H95[m_j]["1" | 1] === "only" || H95[m_j][1] === "max")){f$z.push([w$G,H95[m_j]]);}}return f$z;};P_d=function(L$9,Q$a,C9E){var T9Z,A0J;if(!(L$9 instanceof Date)){T9Z=L$9[0];A0J=L$9[1];L$9=!C9E && O18[T9Z] && O18[T9Z][A0J]?O18[T9Z][A0J]:J$f(L$9,C9E);}else if(C9E){L$9=X5W(L$9,D8t?959.67 < (5096,9950)?(876.65,783) === 4140?(640.58,"N"):"u":(!({}),"865.13" * 1):+"4380" > ("647.73" - 0,8889)?(3.82e+3,"K"):(6230,4480) > (1100,1176)?"4141" - 0 === 1270?(4.00e+3,"Z"):"w":(170.58,5.03e+3),C9E);}if(!(Q$a instanceof Date)){T9Z=Q$a[0];A0J=Q$a[1];Q$a=!C9E && O18[T9Z] && O18[T9Z][A0J]?O18[T9Z][A0J]:J$f(Q$a,C9E);}else if(C9E){Q$a=X5W(Q$a,D8t?(6490,9710) != (683.18,1260)?"u":6920 == 256.29?(+"0xa46",!"1"):+"780.47":"w",C9E);}L$9=Number(L$9);L9E.a9S();Q$a=Number(Q$a);L9E.H6P(7);return L9E.q7n(Q$a,L$9);};C4F=f1C.getUTCFullYear();P6z=n53.ruleCache[j5d];if(!P6z){P6z=n53.ruleCache[j5d]={};}s8b=P6z[C4F];if(!s8b){L9E.H6P(7);s8b=c9_(L9E.S40(1,C4F),c$Z.rules[Q9D]);s8b=s8b.concat(c9_(C4F,c$Z.rules[Q9D]));s8b.sort(P_d);P6z[C4F]=s8b;}if(!s8b || !s8b.length){return null;}for(var R4$=s8b.length - 1;R4$ >= 0;R4$--){if(R4$ > 0){L9E.D0J(137);t5s=s8b[L9E.q7n(1,"1",R4$)][L9E.q7n(1,"1",L9E.D0J(1))];}else {t5s=null;}j0I=s8b[R4$];if(!j0I[2]){j0I[2]=J$f(j0I,t5s);;}if(P_d(f1C,j0I,t5s) >= 0){L9E.D0J(40);return j0I[L9E.S40(32,"1")];}}return null;;}w0o+="ic";w0o+="a";R_k="asi";function l0F(M$M,S7l){var i3p;L9E.D0J(7);var Z7x=L9E.q7n(5330,10660);L9E.D0H();L9E.H6P(138);var P6H=L9E.q7n(63960,4,3,2,2665);L9E.D0J(12);var R7H=L9E.S40(17,135,17);L9E.H6P(36);var q7M=L9E.S40(20,6190,14);i3p=c$Z.zoneFileBasePath + (Z7x != +"48.02"?"/":23.26 >= P6H?R7H:("C",q7M)) + M$M;return !S7l || !S7l.async?c$Z.parseZones(c$Z.transport({url:i3p,async:![]})):c$Z.transport({async:!![],url:i3p,success:function(F9E){return c$Z.parseZones(F9E) && typeof S7l.callback === "function" && S7l.callback();},error:function(){L9E.D0H();L9E.D0J(37);throw new Error(L9E.S40("' zoneinfo files","Error retrieving '",i3p));}});}R_k+="a";C0t="e";C0t+="tceter";function r2_(J5e){var G80,a7N;G80=/(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/;a7N=J5e.match(G80);a7N[1]=parseInt(a7N[1],10);L9E.H6P(21);a7N[L9E.q7n("2",0)]=a7N[2]?parseInt(a7N[2],+"10"):0;a7N[3]=a7N[3]?parseInt(a7N[3],10):0;return a7N.slice(1,5);}C0t+="a";d7u="e";d7u+="uro";d7u+="p";d7u+="e";V3S="e";V3S+="uro";V3S+="pe";D9T="e";D9T+="u";D9T+="rope";u$D="eu";u$D+="r";u$D+="ope";t4j="eu";t4j+="rop";t4j+="e";G8A="asi";G8A+="a";I91="a";I91+="fr";I91+="ic";function y3p(o_Q){var z6p,C8J,J$N,W6O,M_u;z6p=F$X[o_Q];if(z6p){return z6p;}C8J=o_Q.split((6730,9880) != 8170?"/":(6.19e+3,650.85))[L9E.S40("0",0,L9E.D0J(21))];J$N=B71[C8J];L9E.D0H();if(J$N){return J$N;}W6O=c$Z.zones[o_Q];if(typeof W6O === "string"){return y3p(W6O);}if(!c$Z.loadedZones.backward){M_u="bac";M_u+="kwa";M_u+="rd";c$Z.loadZoneFile(M_u);return y3p(o_Q);}c0d(o_Q);}I91+="a";q$k="eu";q$k+="r";function F_m(W6x,Y7A){L9E.D0J(7);L9E.D0H();return -Math.ceil(L9E.S40(W6x,Y7A));}q$k+="o";function p0F(x8M){var b1M,s0I,w7U,z$L;L9E.a9S();if(!x8M[3]){return;}b1M=parseInt(x8M[3],"10" << 0);s0I=11;w7U=31;if(x8M[4]){s0I=R$c[x8M[4].substr(L9E.S40("0",0,L9E.H6P(10)),3)];w7U=parseInt(x8M[5],10) || 1;}z$L=x8M[+"6"]?r2_(x8M[6]):[+"0",0,0];L9E.H6P(28);return [b1M,s0I,w7U,z$L[L9E.S40("0",0)],z$L[1],z$L[2]];}q$k+="pe";h5k="eu";h5k+="ro";h5k+="pe";n1T="a";n1T+="us";n1T+="tralasia";Y_O="a";Y_O+="s";Y_O+="ia";J8h="anta";J8h+="rc";function c0d(o1L){var s3V;L9E.a9S();s3V="' is either incorrect, or not l";s3V+="oaded in the timezone registry.";L9E.H6P(37);throw new Error(L9E.S40(s3V,"Timezone '",o1L));}J8h+="tica";r2m="a";r2m+="u";r2m+="str";function d07(q79,z8t){var c_T,W_y,W$f,b7U,W00,U9z,J7r;c_T="stri";c_T+="n";c_T+="g";W_y=typeof q79 === "number"?q79:new Date(+q79).getTime();W$f=z8t;b7U=c$Z.zones[W$f];while(typeof b7U === c_T){W$f=b7U;b7U=c$Z.zones[W$f];}if(!b7U){if(!c$Z.loadedZones.backward){c$Z.loadZoneFile("backward");return d07(q79,z8t);}else if(W$f && W$f !== z8t){c$Z.lazyLoadZoneFiles(W$f);return d07(q79,W$f);}c0d(W$f);}if(b7U.length === 0){W00="' on";W00+=" ";U9z="No Zone ";U9z+="f";U9z+="ound f";U9z+="or '";L9E.H6P(48);throw new Error(L9E.S40(q79,W00,z8t,U9z));}for(var D4u=b7U.length - ("1" - 0);D4u >= 0;D4u--){J7r=b7U[D4u];if(J7r[3] && W_y > J7r[3])break;}L9E.H6P(0);return b7U[L9E.q7n(D4u,1)];}r2m+="alasia";J$8="sou";J$8+="th";J$8+="am";J$8+="erica";c$3="northam";c$3+="erica";h24="northam";h24+="e";h24+="rica";I$t="northa";I$t+="merica";c$Z=this;B71={Etc:"etcetera",EST:"northamerica",MST:"northamerica",HST:I$t,EST5EDT:"northamerica",CST6CDT:h24,MST7MDT:c$3,PST8PDT:"northamerica",America:["northamerica",J$8],Pacific:r2m,Atlantic:"europe",Africa:"africa",Indian:"africa",Antarctica:J8h,Asia:Y_O,Australia:n1T,Europe:"europe",WET:"europe",CET:h5k,MET:"europe",EET:q$k};F$X={"Pacific/Honolulu":"northamerica","Atlantic/Bermuda":"northamerica","Atlantic/Cape_Verde":I91,"Atlantic/St_Helena":"africa","Indian/Kerguelen":"antarctica","Indian/Chagos":G8A,"Indian/Maldives":"asia","Indian/Christmas":"australasia","Indian/Cocos":"australasia","America/Danmarkshavn":"europe","America/Scoresbysund":"europe","America/Godthab":t4j,"America/Thule":u$D,"Asia/Istanbul":"europe","Asia/Yekaterinburg":"europe","Asia/Omsk":"europe","Asia/Novosibirsk":D9T,"Asia/Krasnoyarsk":"europe","Asia/Irkutsk":V3S,"Asia/Yakutsk":"europe","Asia/Vladivostok":"europe","Asia/Sakhalin":"europe","Asia/Magadan":d7u,"Asia/Kamchatka":"europe","Asia/Anadyr":"europe","Africa/Ceuta":"europe",GMT:C0t,"Europe/Nicosia":R_k};this.zoneFileBasePath=null;this.zoneFiles=[w0o,"antarctica","asia","australasia","backward",d6u,E4f,"northamerica","pacificnew","southamerica"];this.loadingSchemes={PRELOAD_ALL:h1S,LAZY_LOAD:"lazyLoad",MANUAL_LOAD:I1v};this.getRegionForTimezone=y3p;this.loadingScheme=this.loadingSchemes.LAZY_LOAD;this.loadedZones={};this.zones={};this.rules={};this.init=function(X0f){var S88,a7_,y7v;S88="northam";S88+="erica";a7_={async:!![]};y7v=this.loadingScheme === this.loadingSchemes.PRELOAD_ALL?this.zoneFiles:this.defaultZoneFile || S88;for(var P4V in X0f){a7_[P4V]=X0f[P4V];}return this.loadZoneFiles(y7v,a7_);};this.loadZoneFiles=function(z_j,S7f){var y0a,Z89;Z89=0;if(typeof z_j === "string"){return this.loadZoneFile(z_j,S7f);}S7f=S7f || ({});L9E.a9S();y0a=S7f.callback;S7f.callback=function(){var j13;j13="funct";j13+="i";j13+="on";L9E.D0H();Z89++;Z89 === z_j.length && typeof y0a === j13 && y0a();};for(var O08=+"0";O08 < z_j.length;O08++){this.loadZoneFile(z_j[O08],S7f);}};this.loadZoneFile=function(V9o,s5W){var g4U,V2m;g4U="undef";g4U+="ined";L9E.D0H();if(typeof this.zoneFileBasePath === g4U){V2m="Plea";V2m+="se define a b";V2m+="ase path ";V2m+="to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.";throw new Error(V2m);}if(this.loadedZones[V9o]){return;}this.loadedZones[V9o]=!!"1";return l0F(V9o,s5W);};this.loadZoneJSONData=function(v1P,W7C){var V8J;V8J=function(q4v){q4v=JSON.parse(q4v);for(var Z4L in q4v.zones){c$Z.zones[Z4L]=q4v.zones[Z4L];}for(var P3X in q4v.rules){c$Z.rules[P3X]=q4v.rules[P3X];}};return W7C?V8J(c$Z.transport({url:v1P,async:!!""})):c$Z.transport({url:v1P,success:V8J});};function C$d(l6B){var z$t,Y1Z;z$t=r2_(l6B);Y1Z=l6B.charAt("0" << 0) === ((917.32,730.63) >= 769?0x1499:(3790,+"8881") != "816.54" * 1?"-":542.76 > (536.88,7980)?(7.07e+2,"k"):239.28)?-1:1;L9E.D0J(0);var t$s=L9E.S40(46,14);L9E.D0J(139);var v2g=L9E.q7n(7,6,14,6,8);L9E.H6P(0);var G$I=L9E.q7n(4,56);L9E.H6P(39);var f$g=L9E.q7n(20,16,2);L9E.D0J(39);var y7x=L9E.S40(20000,8,18992);z$t=Y1Z * (((z$t[0] * t$s + z$t[v2g]) * G$I + z$t[f$g]) * y7x);L9E.D0J(140);return L9E.S40(60,1000,z$t);}this.loadZoneDataFromObject=function(j01){if(!j01){return;}L9E.D0H();for(var N2Q in j01.zones){c$Z.zones[N2Q]=j01.zones[N2Q];}for(var Y3Z in j01.rules){c$Z.rules[Y3Z]=j01.rules[Y3Z];}};this.getAllZones=function(){var b88;L9E.D0H();b88=[];for(var z$u in this.zones){b88.push(z$u);}return b88.sort();};this.parseZones=function(e1H){L9E.D0H();var O$E,o6E,H0h,c$a,y2b,b$f,y$5,H4T,x$1;if(!e1H){return ![];}O$E=e1H.split(2827 !== 344?("9640" ^ 0) >= (403.59,4780)?(2030,1783) == 605.47?("z",!0):"\n":(0x1c0e,"9.56e+3" * 1):(0x10ee,396.21));o6E=[];H0h="";y2b=null;b$f=null;for(var F_U=0;F_U < O$E.length;F_U++){c$a=O$E[F_U];if(c$a.match(/^\s/)){L9E.H6P(37);c$a=L9E.q7n(c$a,"Zone ",y2b);}c$a=c$a.split(831.85 != 4243?"#":(0x9,0x6f7))[0];if(c$a.length > 3){y$5="R";y$5+="ule";H4T="Zo";H4T+="n";H4T+="e";o6E=c$a.split(/\s+/);H0h=o6E.shift();switch(H0h){case H4T:y2b=o6E.shift();if(!c$Z.zones[y2b]){c$Z.zones[y2b]=[];}if(o6E.length < +"3")break;o6E.splice(3,o6E.length,p0F(o6E));if(o6E[3]){o6E[+"3"]=Date.UTC.apply(null,o6E[3]);}L9E.H6P(10);o6E[L9E.q7n("0",0)]=-C$d(o6E[0]);c$Z.zones[y2b].push(o6E);break;case y$5:b$f=o6E.shift();if(!c$Z.rules[b$f]){c$Z.rules[b$f]=[];}o6E[0]=parseInt(o6E[0],10);o6E[1]=parseInt(o6E[1],10) || o6E[1];o6E[5]=r2_(o6E[5]);o6E[6]=C$d(o6E[6]);c$Z.rules[b$f].push(o6E);break;case "Link":if(c$Z.zones[o6E[1]]){x$1=". Cannot create link o";x$1+="f a preexis";x$1+="ted zone";x$1+=".";L9E.D0J(15);var I4U=L9E.S40(2,12,13);throw new Error("Error with Link " + o6E[I4U] + x$1);}if(isNaN(o6E[0])){c$Z.zones[o6E[1]]=o6E[0];}else {c$Z.zones[o6E[1]]=parseInt(o6E[0],10);}break;}}}return !!1;};this.transport=F0l;this.getTzInfo=function(y82,i0f,f3t){var y$T,j86,g7C,I$4;this.lazyLoadZoneFiles(i0f);L9E.D0H();y$T=d07(y82,i0f);j86=+y$T[0];g7C=E7u(y82,y$T,f3t,i0f);if(g7C){j86=F_m(j86,g7C[6]);}I$4=g7F(y$T,g7C);return {tzOffset:j86,tzAbbr:I$4};};function g7F(v0f,q9x){L9E.a9S();var c0m,i8j;c0m=v0f[2];if(c0m.indexOf("%s") > -1){if(q9x){i8j=q9x[7] === ((+"4244",8313) > 795.44?"-":(+"3060",1720) != 2550?(495,1085) != 8540?820:0x141e:"C")?"":q9x[7];}else {i8j="S";}return c0m.replace("%s",i8j);}else if(c0m.indexOf("/") > -1){return c0m.split("/",2)[q9x?q9x[6]?1:+"0":0];}return c0m;}this.lazyLoadZoneFiles=function(F_x){var E8F;if(this.loadingScheme === this.loadingSchemes.LAZY_LOAD){E8F=y3p(F_x);if(!E8F){throw new Error("Not a valid timezone ID.");}this.loadZoneFiles(E8F);}};})();}).call(typeof window !== "undefined"?window:this);n53.timezone.loadingScheme=n53.timezone.loadingSchemes.MANUAL_LOAD;n53.timezone.loadZoneDataFromObject({zones:{"Atlantic/Cape_Verde":[[60,(1960,"645.34" - 0) == ("1260" | 72)?9.46e+3:"-","-01",null]],"Africa/Cairo":[[-120,"Egypt","EE%sT",null]],"Africa/Nairobi":[[-180,+"8726" >= (3820,1270)?454.16 === (820.97,1850)?0x1be1:(267,"777.22" * 1) <= ("8860" >> 64,435.69)?![]:"-":(510.64,0xfbf),"EAT",null]],"Africa/Casablanca":[[+"0","Morocco","+00/+01",1540695600000],[-60,"Morocco","+01/+00",null]],"Africa/Windhoek":[[-120,Y27,u2u,null]],"Africa/Johannesburg":[[-120,c8l,"SAST",null]],"Africa/Tunis":[[-60,"Tunisia","CE%sT",null]],"Antarctica/Troll":[[0,"Troll",k9J,null]],"Asia/Kabul":[[-270,(5960,688.46) >= "6658" << 0?"4080" >> 32 === (8490,5660)?(![],6.25e+3):(9639,+"851") <= 4010?5.69e+3:(!!"1",6.64e+3):"-","+0430",null]],"Asia/Baku":[[-("240" >> 64),"Azer","+04/+05",null]],"Asia/Dhaka":[[-360,"Dhaka","+06/+07",null]],"Asia/Yangon":[[-390,"-","+0630",null]],"Asia/Shanghai":[[-480,"PRC",P1e,null]],"Asia/Hong_Kong":[[-480,L8w,"HK%sT",null]],"Asia/Taipei":[[-480,"Taiwan","C%sT",null]],"Asia/Nicosia":[[-120,"EUAsia","EE%sT",null]],"Asia/Kolkata":[[-330,("4365" ^ 0) == 187.6?0x4a9:"-",d7x,null]],"Asia/Tehran":[[-210,"Iran","+0330/+0430",null]],"Asia/Jerusalem":[[-120,"Zion","I%sT",null]],"Asia/Tokyo":[[-540,"Japan","J%sT",null]],"Asia/Amman":[[-120,"Jordan","EE%sT",null]],"Asia/Almaty":[[-360,"-","ALMT",null]],"Asia/Seoul":[[-540,"ROK","K%sT",null]],"Asia/Pyongyang":[[-510,(4600,4920) !== 8650?"-":(328,"641" - 0) > (6400,8460)?810.12:("5.61e+3" ^ 0,"B"),"KST","1525476600000" - 0],[-540,"-","KST",null]],"Asia/Beirut":[[-120,x$T,"EE%sT",null]],"Asia/Kuala_Lumpur":[[-480,"-","+08",null]],"Asia/Hovd":[[-+"420","Mongol",W72,null]],"Asia/Ulaanbaatar":[[-480,O0H,"+08/+09",null]],"Asia/Kathmandu":[[-345,"-",n9S,null]],"Asia/Karachi":[[-300,"Pakistan","PK%sT",null]],"Asia/Hebron":[[-("120" ^ 0),"Palestine","EE%sT",null]],"Asia/Riyadh":[[-180,6240 !== 9570?"-":+"3190" !== +"8500"?4.74e+3:(408.30,"0x2215" ^ 0),K9l,null]],"Asia/Damascus":[[-120,"Syria","EE%sT",null]],"Asia/Bangkok":[[-420,"-","+07",null]],"Asia/Dubai":[[-("240" * 1),523 > 4405?(618.86,254.59):3640 > 7.73?6076 != 316?"-":(704,!!""):(2.99e+3,![]),"+04",null]],"Australia/Darwin":[[-570,"Aus","AC%sT",null]],"Australia/Perth":[[-("480" - 0),"AW","AW%sT",null]],"Australia/Eucla":[[-("525" | 4),G3_,"+0845/+0945",null]],"Australia/Brisbane":[[-600,q23,"AE%sT",null]],"Australia/Adelaide":[[-570,"AS",X94,null]],"Australia/Hobart":[[-600,"AT",c29,null]],"Australia/Melbourne":[[-+"600","AV","AE%sT",null]],"Australia/Sydney":[[-+"600","AN","AE%sT",null]],"Australia/Lord_Howe":[[-630,"LH","+1030/+11",null]],"Pacific/Fiji":[[-720,"Fiji",g3r,null]],"Pacific/Guam":[[-600,7300 != (3842,5241)?"-":733 !== 617.35?"g":"r","ChST",null]],"Pacific/Kiritimati":[[-840,(8154,452) > (23.25,"570.31" - 0)?(!!({}),7.56e+2):"-","+14",null]],"Pacific/Noumea":[[-660,"NC","+11/+12",null]],"Pacific/Auckland":[[-720,"NZ","NZ%sT",null]],"Pacific/Chatham":[[-765,"Chatham","+1245/+1345",null]],"Pacific/Pago_Pago":[["660" >> 64,544.79 >= 1650?"z":"-","SST",null]],"Pacific/Apia":[[-780,r$L,g$w,null]],"Pacific/Tongatapu":[[-780,Q4p,"+13/+14",null]],"Etc/UTC":[[0,"-","UTC",null]],UTC:"Etc/UTC","Europe/London":[["0" * 1,"EU",i3W,null]],"Europe/Dublin":[[0,"Eire","IST/GMT",null]],WET:[[0,"EU","WE%sT",null]],CET:[[-60,"C-Eur","CE%sT",null]],MET:[[-("60" | 4),"C-Eur","ME%sT",null]],EET:[[-120,h8z,"EE%sT",null]],"Europe/Brussels":[[-60,k5y,"CE%sT",null]],"America/Thule":[["240" * 1,s6y,"A%sT",null]],"Europe/Helsinki":[[-("120" - 0),"EU","EE%sT",null]],"Europe/Paris":[[-60,A2n,j7U,null]],"Europe/Berlin":[[-60,i$J,"CE%sT",null]],"Europe/Amsterdam":[[-60,s$6,"CE%sT",null]],"Atlantic/Azores":[[60,"EU","-01/+00",null]],"Europe/Bucharest":[[-120,c55,"EE%sT",null]],"Europe/Kaliningrad":[[-+"120",(481.64,2788) < 943.03?(7.80e+3,"X"):(7150,8415) != (879.69,7816)?"-":(!![],!![]),"EET",null]],"Europe/Moscow":[[-+"180",(2202,910.18) > "81.42" - 0?"-":+"7550" >= (2956,2560)?(![],0xb33):!1,"MSK",null]],"Europe/Volgograd":[[-180,"-","+03",1540692000000],[-240,(369.94,3279) !== (938.46,452.63)?"-":!!1,Y4l,+"1609034400000"],[-180,"-","+03",null]],"Europe/Samara":[[-240,(816.67,+"1080") === 6178?71.98:(5344,+"829.24") <= +"4517"?(8992,1120) <= 5430?"-":(0xb21,!1):(!!({}),"o"),"+04",null]],"Asia/Yekaterinburg":[[-300,"-","+05",null]],"Asia/Omsk":[[-+"360","-","+06",null]],"Asia/Novosibirsk":[[-+"420",8370 === 185.29?(0x16f9,"k"):("105" ^ 0) === 4504?(7750,+"49") > (718.12,4970)?(0x15ae,!({})):("Q",0x1d15):"-","+07",null]],"Asia/Novokuznetsk":[[-420,6231 >= 496.83?+"3500" === (3622,7420)?810.79 >= (894.86,587.56)?7.10e+3:(133.25,"P"):"-":("L",896.08),"+07",null]],"Asia/Krasnoyarsk":[[-420,("831.4" - 0,7959) <= (5850,1950)?(+"55.45",6.74e+3):"-","+07",null]],"Asia/Irkutsk":[[-480,("3700" * 1,2530) > 262.35?"-":(9693,437) > (493.46,5154)?628.80:!"1","+08",null]],"Asia/Yakutsk":[[-("540" ^ 0),(304,4810) <= 4660?!!"":+"245.57" == (105.41,2571)?("1.98e+3" >> 0,"J"):"-","+09",null]],"Asia/Vladivostok":[[-("600" ^ 0),"6270" - 0 !== 9380?"-":"300.57" - 0 >= 896.31?!!0:(18.57,271.11),Q0N,null]],"Asia/Magadan":[[-+"660","-",j5L,null]],"Asia/Srednekolymsk":[[-660,("5190" * 1,925.96) != (586.59,3216)?(4190,3060) > 252.62?"-":(!!({}),84.57):(!!"1",6.15e+3),t_0,null]],"Asia/Kamchatka":[[-720,(7069,5180) == (372.83,4813)?8080 != (685.82,"9283" * 1)?(1.50e+3,+"0xccc"):"s":"-","+12",null]],"Europe/Belgrade":[[-("60" * 1),"EU","CE%sT",null]],"Europe/Sarajevo":"Europe/Belgrade","Europe/Istanbul":[[-180,"-",y11,null]],"America/New_York":[[300,"US","E%sT",null]],"America/Chicago":[[360,"US",U_G,null]],"America/Denver":[["420" << 64,"US",n9m,null]],"America/Los_Angeles":[[480,"US","P%sT",null]],"America/Juneau":[[+"540","US","AK%sT",null]],"Pacific/Honolulu":[[600,(+"1760",4920) > (2510,146.54)?3540 === (7532,+"7970")?"0xf99" ^ 0:"-":("b",396.66),f2m,null]],"America/Phoenix":[[420,754.12 !== ("8980" ^ 0)?6430 === +"4258"?(2.37e+3,"u"):"-":(0xd1a,"H"),"MST",null]],"America/St_Johns":[[+"210","Canada","N%sT",null]],"America/Halifax":[[240,s3D,"A%sT",null]],"America/Regina":[[360,+"551" != (9449,52)?"-":("2220" ^ 0,3126) !== (4394,335.52)?421.64:!!({}),"CST",null]],"America/Mexico_City":[[360,u29,"C%sT",null]],"America/Chihuahua":[[420,"Mexico",A_5,null]],"America/Costa_Rica":[[360,"CR","C%sT",null]],"America/Havana":[[300,x2f,"C%sT",null]],"America/Port-au-Prince":[[300,"Haiti",c7r,null]],"America/Panama":[[300,"-",K6K,null]],"America/Puerto_Rico":[[240,(4515,5610) >= 889.31?465.09 <= (+"434.49",7850)?"-":0x142b:(0x1b94,!"1"),"AST",null]],"America/Argentina/Buenos_Aires":[[180,"Arg",r92,null]],"America/Sao_Paulo":[["180" - 0,E_N,"-03/-02",null]],"America/Santiago":[[240,X9h,"-04/-03",null]],"America/Punta_Arenas":[[240,"Chile","-04/-03",+"1480809600000"],[180,"-","-03",null]],"America/Bogota":[[300,"CO",j4p,null]],"America/Asuncion":[[240,"Para",U25,null]],"Atlantic/South_Georgia":[[120,"-",i42,null]],"America/Montevideo":[[180,"Uruguay",S2q,null]],"America/Caracas":[[+"240",+"325.09" >= 332.98?1530 > (+"2660",1108)?(!"",131.85):9.67e+3:"-","-04",null]],"Europe/Athens":o$P,"Europe/Simferopol":J2n,"Asia/Rangoon":"Asia/Yangon","Atlantic/Reykjavik":"UTC","Asia/Kuwait":Q6W,"Asia/Muscat":"Asia/Riyadh","Asia/Istanbul":"Europe/Istanbul"},rules:{Egypt:[],Morocco:[[2013,2018,"-","Oct","lastSun",[3,0,0,null],0,"-"],[2014,2018,"7017" * 1 > (47.86,828.74)?(3920,624) !== 9910?"-":("c",501.27):!!({}),"Mar","lastSun",[2,0,0,null],"60" ^ 0,("844" ^ 0,3718) != +"9592"?"-":0x1fc3],["2017" ^ 0,"only",(270.9,416.85) <= 453.3?"-":430.22 !== "2910" * 1?2180 != (243.01,+"663")?(276.43,"a"):("h",7.55e+3):!![],"May","21",[3,0,0,null],0,"-"],[2017,"only",444.36 == 246.18?(!({}),!1):6 > (5214,9470)?6027 !== +"912"?(0x2646,6.43e+3):(!!0,8.86e+3):"-","Jul",(7440,6520) >= +"768"?(738,5567) !== +"3430"?(9600,+"2730") == ("6136" * 1,5897)?("608.16" - 0,4.59e+3):"2":(0x2699,!![]):("f",8.35e+3),[2,0,0,null],60,"-"],[2018,m17,5170 != (6023,6813)?"-":(9600,"516" * 1) <= +"2277"?(282.38,+"2481") != +"6430"?("k",0xc7e):(0x2532,!1):5.46e+3,e5C,F5e,[3,0,0,null],0,521 < 2592?"-":1342 === "5134" >> 64?742:+"9.32e+3"],[2018,"only",1621 !== 6903?(1169,6031) === 5992?("M",!({})):"-":490.23,Y4c,"17",[2,0,0,null],60,("5870" - 0,4890) != 4480?"-":!!({})],[2019,"only","-","May",5600 <= 710.65?(0x1354,![]):"5",[3,0,0,null],-+"60","-"],[2019,A8o,"-",p_e,"9",[2,0,0,null],0,713.56 > 663.49?"-":5.47e+3],[+"2020","only","-","Apr",e5P,[+"3",0,0,null],-("60" | 60),"-"],[2020,"only",(3570,"9050" ^ 0) > (2070,"7870" * 1)?"-":(+"0x1e39",5.11e+2),"May","31",[2,0,0,null],0,"-"],[2021,"only","-","Apr",x2e,[3,0,0,null],-60,(3000,2210) >= +"4410"?!"":6890 === (1360,3400)?(6360,376) < (7205,4061)?("T",!!({})):6.82e+3:"-"],[2021,"only","-","May","16",[2,0,0,null],0,(3380,5998) === (939.77,145)?0xcae:"-"],[2022,"only","-",N4h,d2I,["3" << 64,+"0",0,null],-60,+"124.86" <= (6230,4036)?"-":3.18e+3],[2022,f1q,"-","May",("8150" | 18) === 730?0x1d27:"8",[2,0,+"0",null],0,500.56 == ("8190" << 32,2171)?(0x95d,"f"):"-"],[2023,F$Q,(5524,9688) == (+"135.55",5390)?(873.76,"V"):(406.96,6156) === (+"854.81",1596)?(203.94,8570) >= (3753,"4511" * 1)?0x1bb7:(!0,0x1411):"-","Mar",o04,["3" ^ 0,0,0,null],-60,152 == 555.17?![]:"-"],[+"2023","only",(27.07,5180) > (2203,2830)?"-":("4850" ^ 0,985.19) >= (+"971",542)?960.98 <= (5386,8030)?(!!({}),"U"):0x25ca:!!0,"Apr","30",[2,"0" * 1,0,null],0,"-"],[2024,"only",5795 == 4190?0x26f3:"-","Mar",N6e,[3,0,0,null],-("60" | 16),"-"],[2024,"only",(+"8410",829.31) === (337.81,9852)?+"57" !== +"1360"?689 > 5488?9.04e+3:8.54e+3:627.16:"-","Apr","14",[2,0,"0" << 0,null],0,"-"],[+"2025",f13,877.6 > 6107?("F",!![]):980.74 < ("1486" | 4)?7270 === 3786?(0x714,1.17e+3):"-":(!!0,!![]),a3J,C13,[3,+"0",0,null],-60,265.06 > (6221,2580)?(+"246",472.28) != 5474?"R":(!![],!![]):"-"],[2025,"only","-",B4v,"6",[2,0,+"0",null],"0" ^ 0,647.04 < 6280?(2010,510.81) >= (+"123",6037)?("v",5.86e+3):(423.79,+"160.77") > 147.49?"-":7.03e+3:(79.45,!({}))]],Namibia:[["1994" << 64,2017,(3110,4393) >= (2290,228.25)?"-":7553 !== (3454,6981)?+"859.35" > (308.42,940.45)?("z",!""):(0x1288,688.87):(6.20e+3,!!({})),"Sep","Sun>=1",[2,+"0",0,null],"0" - 0,T6n],[1995,2017,8648 == 730.34?(684.69,"0xc3d" - 0):"-","Apr","Sun>=1",[2,0,0,null],-60,n_B]],SA:[],Tunisia:[],Troll:[[2005,d5J,799 >= 9800?7638 != (861,6802)?(3.58e+3,!({})):8.05e+3:"-","Mar","lastSun",[1,+"0",0,"u"],"120" ^ 0,"+02"],[2004,y9b,2861 == +"716.27"?7.81e+3:6025 === (327.6,3430)?(8702,4470) !== 260.17?(0x1661,!![]):365:"-","Oct","lastSun",[1,0,0,8530 == 599.62?(!!"","O"):("6430" << 64,9215) >= (2190,888.28)?(4032,8162) > +"186.67"?"u":"0x2602" ^ 0:("o",![])],+"0","+00"]],EUAsia:[[1981,"max","-",s7n,"lastSun",[1,0,0,(695.52,6790) >= (+"4570",39)?"u":"i"],60,(5610,1015) >= (820.83,9541)?913.92:751.51 >= 5440?(609,343.72) < 3529?7.00e+3:"h":"S"],[1996,k2Y,+"907.79" > (790.09,6530)?"N":471.72 <= (993.59,2900)?"-":("V","i"),"Oct","lastSun",[1,"0" | 0,0,"u"],0,"-"]],Azer:[],Dhaka:[],PRC:[],HK:[],Taiwan:[],Iran:[[2017,2019,(133,6198) === 2710?(755.13,5.47e+3):(8148,642.81) < 8087?"-":7030 == 8243?("6.73e+3" - 0,6.56e+3):(0x46b,"E"),"Mar","21",[24,0,0,null],60,"-"],[2017,"2019" >> 0,"-","Sep",I7s,[24,"0" * 1,0,null],0,"-"],[2020,"only","-",K6e,"20",[24,0,+"0",null],"60" ^ 0,137.67 <= (201.02,27.29)?("6511" | 0,"1094" << 0) === "272.84" - 0?(0x1b04,!!1):394.20:"-"],[2020,"only",5007 <= (303,3900)?(3829,440.15) !== (6114,2434)?50.76:(3.01e+3,0x107b):"-","Sep","20",[24,0,0,null],"0" ^ 0,(8810,469.88) > 4789?(!!1,"H"):"-"],[2021,2023,624.05 === 6030?1.54e+3:9433 > 7200?"-":(57.92,!!({})),"Mar","21",[24,0,0,null],60,(987.55,6346) === (180,685.37)?"0x1478" >> 0:"-"],["2021" - 0,2023,"-","Sep","21",[24,0,0,null],0,992.95 === (3227,989.6)?(403.00,"g"):(+"7900",275) != 4490?"-":("6046" ^ 0,887) > (4071,4230)?![]:8.52e+3],[2024,"only",(+"3270",5410) == (4839,7141)?(510.47,+"871.27") <= (5046,845.46)?("d",94.02):4630 === "407" * 1?(!!({}),0x1b1b):241:"-","Mar","20",[24,0,+"0",null],60,("916.09" * 1,130.21) > 868.9?664.65 < (816.99,9499)?0x6cb:"g":"-"],[2024,"only","-","Sep",a8E,[24,0,0,null],0,"-"],[2025,2027,("3270" * 1,"8680" << 32) > (6271,633)?"2910" >> 64 >= 4803?"1689" - 0 === (337.12,674.37)?"J":("358.91" * 1,"k"):"-":2.40e+3,"Mar","21",[24,0,0,null],"60" | 20,8.13 !== 875.04?46.38 == 1760?(1540,1816) == "2270" >> 64?(953.81,+"0x10b6"):(!!"1","H"):"-":"O"],[2025,2027,(+"263.65",8754) >= (237.67,654.43)?(966.84,6993) !== 1375?"-":258.28:617,"Sep","21",[24,0,"0" ^ 0,null],0,637.73 == 497.73?("U",149.43):"-"]],Zion:[[2013,"max","-","Mar","Fri>=23",[2,0,0,null],60,"2170" * 1 >= 3440?+"0x14ba":"D"],[2013,"max",(280.69,880.7) === 5280?0x671:"-","Oct",U9l,["2" - 0,0,0,null],0,(33.11,931.99) == 8290?(+"747.98",2526) === (441.99,944)?(5.64e+3,!"1"):"c":"S"]],Japan:[],Jordan:[[2014,"max","-","Mar","lastThu",[24,0,0,null],"60" - 0,"S"],[2014,E5z,7663 === 1090?683 != ("5390" | 6)?0x536:(1.15e+3,8.55e+3):"-",A6s,"lastFri",[0,"0" | 0,0,(4350,186.86) === (7414,8226)?+"68.10":(6531,+"3557") < ("548" << 32,8982)?"s":0xcf1],0,(933.29,720.43) != (1570,351.34)?"-":934.96]],ROK:[],Lebanon:[[1993,"max",7970 <= 4660?(1290,187) != 7110?(267.37,+"190.49") == +"118.81"?"U":("2.24e+3" | 0,324):(454.15,0x22df):"-","Mar","lastSun",[0,0,"0" - 0,null],"60" * 1,"S"],[+"1999","max",(+"1726",4750) !== (575.8,"3730" >> 0)?(874.93,2950) > 9336?("9305" | 65,6267) == (2250,1551)?!![]:(!!"",0x2082):"-":("d",0x508),p4_,d3p,[0,0,0,null],0,+"6749" <= 644?(+"0x1be9",0x18b7):(701.4,2860) >= 7151?(179.11,443.73) > (+"760.56",345.8)?(115.47,2.30e+3):!!"1":"-"]],Mongol:[],Pakistan:[],Palestine:[[2016,2018,"-","Mar","Sat>=24",[1,0,0,null],60,"S"],[2016,2018,(7730,221.69) !== 718.84?(206.74,4750) >= (201.79,843)?"-":"l":"p","Oct",q2Y,[1,0,0,null],0,(3985,111.13) !== 32?"-":8530 != (615,1150)?7939 !== (1860,7210)?(!!({}),0x1475):(0x1e76,!!1):(!"1","g")],[2019,"only",(+"558.46",9790) > 1470?(2380,6519) >= 50.35?"-":+"0x3ac":"l","Mar","29",[0,0,0,null],60,887.93 < (948.15,156.23)?("X",!!"1"):9188 == 6108?(2140,8210) != 2050?!({}):(4.28e+3,"J"):"S"],[2019,"only",247.43 != 1600?(2113,+"356.29") === (7875,922.67)?7.57e+3:2540 >= (7989,"1658" * 1)?"-":!"":(![],+"278.21"),"Oct","Sat>=24",["0" * 1,0,0,null],"60" << 0,(+"7549",7750) == 8510?289.92:(2290,350) > 1580?("c","Z"):"-"],[2020,"max",(9620,+"135.58") >= (5717,+"7253")?803.79 == 255.59?(0x21ac,0x1e33):4881 >= 1010?(301.86,+"3.90e+2"):"x":"-",n5A,"Sat>=24",[0,0,0,null],60,(9598,+"7017") === (518.28,9500)?(497.70,+"6.87e+3"):791.4 > 2466?0x2ca:"S"],[2020,"max","-","Oct","Sat>=24",[1,+"0",0,null],60,"-"]],Syria:[["2012" | 24,"max",(605.81,+"337.16") > (7880,6860)?(+"60.45","6.84e+3" | 8):"-","Mar","lastFri",["0" ^ 0,+"0",+"0",null],60,4318 != 7848?8100 === (+"9553",1350)?(4.20e+3,0x1377):"S":("x","N")],[+"2009",v4z,"-","Oct","lastFri",[0,"0" ^ 0,"0" << 64,null],0,(948,7011) !== 9510?"-":962 > (2590,6770)?(9.85e+3,5.95e+3):(715.14,!!"")]],Aus:[],AW:[],AQ:[],AS:[[+"2008","max",2689 != (8450,16.81)?1654 == (3390,+"7300")?"k":"-":"r",d0A,"Sun>=1",[2,0,+"0","s"],0,("655" | 2,4799) !== (49.99,1107)?145.16 < (3150,1351)?(834,1440) != 1041?"S":342.15:(!!0,65.37):(!"1",457.70)],[2008,K_p,(+"2577",7793) >= (312.34,+"9002")?125.08:"-","Oct",r_7,[2,0,0,"s"],60,("759" | 36,831) < (8380,656)?!1:2997 < 7940?"D":975.51]],AT:[[2001,"max","-",t6U,"Sun>=1",[2,"0" << 64,0,1020 <= 5570?"s":!1],"60" - 0,"D"],[2008,F1S,"-","Apr","Sun>=1",[2,+"0",0,(9230,+"980.78") !== +"142"?"s":5751 < 764.82?(![],!!0):("0x1452" * 1,"g")],0,418.22 < (803.34,6200)?"S":"D"]],AV:[[2008,"max",642.31 == (887.84,4580)?("g",+"849"):8463 >= 5220?77.25 != (785.98,92.39)?"-":0x2554:!({}),t3R,F0q,[2,0,0,(+"689.73",5390) === (593,"70" - 0)?(+"1760",1363) === 6090?943.68:(876.01,"D"):"s"],0,"S"],[2008,"max","-","Oct","Sun>=1",[2,"0" - 0,0,(1840,5670) < 5520?0x11e6:+"5742" === 227.22?+"289.55":"s"],+"60",(4420,7913) !== "4000" - 0?"D":(![],"0x1b30" | 32)]],AN:[[2008,o7p,(52,23.86) < ("671.96" * 1,9590)?"-":(416,119.41),"Apr","Sun>=1",[+"2",+"0",0,(524.1,9483) !== (344,396)?"s":604.99 === (164,+"2920")?(997,997.44):(4788,120.34) > 501.58?1.20e+3:8.09e+3],+"0",6160 >= "4392" >> 0?"S":!({})],[+"2008",Y9q,"-","Oct","Sun>=1",[2,0,0,"s"],60,(9567,424) < (193.17,9253)?7858 != (7320,63.52)?+"976.2" >= (+"4640",940.99)?"D":("a",6.90e+3):(!1,+"626.85"):"N"]],LH:[[+"2008",X84,"-","Apr",d4i,[+"2",+"0",0,null],0,307 <= (549.71,365.33)?"-":"124.27" * 1 > 1340?!!"1":9865 > (91.12,3980)?(4.44e+3,494):(3.20e+3,331.76)],[2008,"max",(+"3793",2678) == (8868,824.12)?7.37e+3:2229 >= "59" - 0?"-":"638.61" - 0,S6F,"Sun>=1",[2,"0" * 1,0,null],30,"-"]],Fiji:[[2014,2018,"-","Nov","Sun>=1",[2,0,+"0",null],+"60","-"],[2015,"max",3730 >= 953.83?(3073,4730) >= ("600.11" - 0,9731)?![]:"-":583,"Jan","Sun>=12",[3,0,0,null],"0" | 0,(4085,"5090" | 34) >= ("984.82" * 1,1360)?(+"2691","141.05" - 0) < ("4870" | 0,8540)?"-":(!!"",!!0):(7.54e+3,"1.43e+3" >> 32)],[2019,l7u,(7360,"3440" >> 64) <= 441?"139.64" * 1:506.59 != "570.43" * 1?"-":(7.77e+3,"h"),"Nov",M1n,[2,+"0",0,null],60,"-"],[2020,r86,7760 <= (+"34",+"184.46")?(4910,193.5) > "4110" * 1?("0xbf5" - 0,6.29e+3):(0x2094,![]):"-","Dec","20",[+"2","0" * 1,0,null],+"60",71.82 !== (+"721.13",4620)?"-":(0xb3a,6.39e+3)],[2021,"max","-","Nov","Sun>=8",[+"2",0,0,null],"60" * 1,(+"867.13",3282) > (1852,2913)?"-":("5933" * 1,8455) !== (1130,1224)?386.96 == (698.84,9110)?![]:!!1:("v",411.01)]],NC:[],NZ:[[2007,"max","-",p2x,"lastSun",[2,0,0,("117.43" - 0,+"2260") <= (2003,"3720" * 1)?"s":638.15 < 384?8.11e+3:("s",0x1e9a)],60,+"566.19" < 7670?"D":(6966,7500) != 8288?"M":(!"1","M")],[2008,"max","-",h$f,v5$,[2,0,+"0",(8417,220) < 4970?("6790" | 0) == 958?"371.87" * 1:"s":(153.50,485.13)],0,4690 >= 613.82?(3608,293.47) >= 246.69?563.82 > ("9351" ^ 0,1235)?("G",!1):"S":5.95e+3:("R","1.77e+3" << 64)]],Chatham:[[2007,"max","-","Sep","lastSun",[2,"45" << 32,0,"s"],60,7750 < ("976" | 16)?(![],0x162b):"-"],[2008,r$P,"-",Y_p,X9J,[2,45,0,808 < (+"8260",9670)?9330 <= (734.71,6703)?4.97e+3:(5880,50) <= (97,58.01)?"s":9.25e+3:(!"1","9.00e+3" << 32)],0,"-"]],WS:[[+"2012","max","-","Apr","Sun>=1",[4,0,0,null],0,"-"],[2012,"max",2400 >= (168.79,305.61)?("280.21" * 1,5356) < (4449,277.55)?(0x25f8,375.24):("9595" ^ 0) === +"9358"?("g",!!({})):"-":("l",0xff3),"Sep","lastSun",[3,0,0,null],60,(3337,3185) !== (2251,6867)?6506 > (3890,5010)?"-":(7740,2760) !== (95.81,898.55)?(6.92e+3,+"3.98e+3"):(![],!!1):(0x249b,!({}))]],Tonga:[[2016,"only",483.85 == +"4234"?9.66e+3:656 < +"3150"?4935 === 696?(![],"1.89e+2" * 1):"-":(!!({}),"0x17e7" << 32),"Nov","Sun>=1",[2,0,0,null],60,(368,3869) == (7932,"436.55" * 1)?647 > (7640,240.22)?(0x233b,744.81):467.32:"-"],[2017,a12,8071 > (+"1540",289)?"-":(424.92,7635) >= 5475?(7630,2076) === (789.12,591.19)?(2.32e+3,2.75e+3):(0x1de4,558.16):"A","Jan",k1L,[3,+"0",0,null],0,"-"]],Eire:[["1981" << 32,x7Q,("424" | 0) == (306,9540)?(!0,"U"):(552.3,591.37) <= 285?(!!"",0x254f):"-","Mar",U17,[1,+"0","0" - 0,7757 >= +"6718"?(267.13,5483) !== +"8532"?(2322,3328) == 2380?2.49e+3:"u":!({}):0x200c],0,(+"6715",5642) !== (45.11,1619)?(3090,1570) >= 5938?("20.90" - 0,"0x26da" >> 0):"-":0xb2f],[1996,b9l,(4880,764.21) > 5227?!![]:"-","Oct","lastSun",[+"1",+"0",0,("826.29" * 1,3340) >= 5181?(0x2521,7.29e+3):"u"],-60,"-"]],EU:[["1981" | 12,"max","-","Mar","lastSun",[1,0,0,(516.75,661.65) < 525?(+"4.57e+3",920.12):"u"],60,+"3640" > "5724" - 0?(369.14,!({})):2020 >= 528.41?"S":(0x1d8d,379.16)],[1996,W6m,7691 <= (+"6930",+"4749")?(1539,4258) <= (960,7761)?1720 >= 417.99?("U",+"951.14"):0x120c:!"":"-","Oct","lastSun",[1,0,"0" | 0,4490 == (3189,502)?676.56 < (7229,3950)?(7040,596.88) === (2800,940.48)?"b":(1.29e+3,"834" - 0):567.67:"u"],0,902.39 != 151.64?"-":(9010,565.52) == 118.41?("K","X"):750.06]],"C-Eur":[[1981,"max","-","Mar","lastSun",[+"2",0,0,(7505,1070) > ("81.09" * 1,"46" * 1)?(3163,824.18) < (182.52,164.95)?"0xc21" << 32:"s":(8.87e+3,0x1210)],60,"S"],[1996,"max","-","Oct",E7Y,[2,+"0",0,"s"],0,("3470" ^ 0,+"880.25") <= 1537?"-":2560 > 6220?("b",6.32e+3):"479.71" - 0 != (434,"9362" >> 32)?(766.25,+"4.21e+3"):(!![],1.93e+3)]],Thule:[[+"2007","max",6872 == (2100,955.05)?128.63:(+"1333",70.18) <= (28,+"671.84")?"-":"7.71e+3" | 6,a0Z,"Sun>=8",[2,+"0",0,null],60,8020 === 41.38?("S",413.02):"D"],[2007,w$C,"-",o6d,"Sun>=1",[2,0,0,null],0,9400 != 8670?"S":4.97e+3]],US:[[2007,"max","-",j0G,"Sun>=8",[2,0,0,null],60,"D"],[2007,w2F,"-","Nov",C5q,[2,+"0","0" << 0,null],0,"S"]],Canada:[[2007,w5R,"-",X8v,G9R,[2,0,0,null],60,(4872,764.23) == 4740?(!"","c"):(3610,+"511.41") >= +"541"?908.36:"D"],[2007,"max","-","Nov","Sun>=1",[2,+"0",0,null],0,467 <= ("4530" ^ 0)?7210 >= (4836,867)?("754.07" * 1,+"936.74") === 733.1?("0x1be5" - 0,"459.66" - 0):"S":(+"0x6f",521.29):137]],Mexico:[[2002,f91,7380 == (211,7820)?("k",710.06):(936.84,164.19) !== (5860,187)?"-":(2280,698.61) > 1224?"R":!![],"Apr","Sun>=1",[2,"0" >> 32,"0" - 0,null],60,4980 >= (2050,+"270.27")?"D":7435 !== 1930?("F",0x1fd9):(+"0x934",720.63)],[+"2002",i4R,(654.96,+"2106") > (2140,319.82)?686.79 !== 507?"-":(130.63,745.74) !== 2816?9.61e+3:"u":("a",+"0x12b2"),"Oct",N8S,["2" * 1,0,"0" - 0,null],0,"333.25" * 1 >= ("210" | 2)?987.79 >= 9880?(0x4df,6.55e+3):"S":"G"]],CR:[],Cuba:[[2012,"max",877.5 >= 6147?(181.94,0x14e0):(4400,6200) > (1710,8559)?0x259c:("494.71" - 0,6400) !== 8171?"-":909.46,M8l,f4F,[0,"0" - 0,+"0","s"],0,"S"],["2013" >> 32,"max",(+"7782","8480" * 1) != (1182,77.79)?"-":(255.07,8423) !== (7110,1609)?("0x125b" - 0,924.12):(136.35,!![]),"Mar","Sun>=8",[0,0,0,"s"],"60" ^ 0,105 != 1760?"D":0x194e]],Haiti:[[2017,"max",3140 > "534.75" * 1?"-":(148.18,"d"),"Mar",j1J,[2,0,0,null],"60" * 1,"D"],[2017,"max","-","Nov",b0l,[2,0,0,null],"0" ^ 0,"S"]],Arg:[],Brazil:[[2008,2017,"-","Oct","Sun>=15",["0" ^ 0,0,0,null],60,(1980,5037) != 269?578.66 === (3735,+"6141")?("2337" ^ 0) <= (1287,157.08)?("f",0x13cb):("0x1d30" * 1,"E"):"-":"373.00" ^ 0],[2016,+"2019",23.21 <= (607.13,+"5480")?"-":"0x925" ^ 0,"Feb","Sun>=15",[+"0","0" ^ 0,0,null],0,(623,6760) < 355.27?!!"":(1143,5720) < (2078,762)?!!0:"-"],[2018,X7_,(4463,980) != 9230?"-":(103.26,0x4b),w69,"Sun>=1",["0" | 0,0,0,null],"60" - 0,(1980,"3920" << 32) != (9456,628.89)?"-":(!({}),"f")]],Chile:[[2016,2018,(155,6011) != (7969,6320)?"-":+"1689" === 2070?0x1bd6:(7830,1920) < +"6930"?!1:(9.19e+3,!!"1"),z1v,D_T,[3,0,0,"u"],0,(289,1770) === (7796,"359.26" * 1)?("g",!!1):"-"],[+"2016",2018,473.26 === (9150,5492)?"5040" * 1 <= (6720,+"8690")?(!0,75.83):(0x104f,0x212d):"-","Aug","Sun>=9",[4,0,0,2224 !== 187.02?"u":1.77e+3],60,9140 == ("2440" ^ 0)?!!1:"-"],[+"2019","max",(5310,3280) >= 5960?8050 >= 8130?!"":!!0:"-","Apr","Sun>=2",[3,+"0","0" * 1,"u"],0,(9250,742.52) <= 1081?"-":(8312,160.43) < 8100?("g",565.36):325.30],[2019,"max","-","Sep",v_c,[+"4",0,0,"u"],60,"128.52" - 0 == (6662,"308" << 64)?5382 === ("87.44" - 0,2627)?(0x9f7,+"7.24e+3"):(+"0x166a","g"):"-"]],CO:[],Para:[["2010" - 0,g9J,"-","Oct",I6f,[0,"0" * 1,0,null],60,(7200,7950) == 2757?(1450,639) !== (754,849.29)?"4.54e+3" >> 32:0x1ff1:"-"],[2013,b9a,(640.95,3010) <= (5550,143.53)?581.14:"-","Mar","Sun>=22",[0,0,+"0",null],0,"-"]],Uruguay:[]}});};o8=C4d=>{var m8b,x6D;m8b=typeof _CIQ !== "undefined"?_CIQ:C4d.CIQ;m8b.ChartEngine.prototype.touchSingleClick=function(x$M,p0n,X5k){var Y0Z,T$Y;A2IFV.a9S();Y0Z=this;T$Y=arguments;return function(){(function(){var U1R,M7y,p9S,z02,J7w;U1R="touc";U1R+="hSingl";U1R+="eC";U1R+="lick";if(!this.cancelTouchSingleClick){if(this.runPrepend("touchSingleClick",T$Y)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-("1" ^ 0),e1MS:-1,s2MS:-1,e2MS:-1};if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(p0n < this.left || p0n > this.right || X5k < this.top || X5k > this.bottom){return;}M7y=this.backOutY(m8b.ChartEngine.crosshairY);p9S=this.backOutX(m8b.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(M7y);z02=this.currentVectorParameters.vectorType;if(!m8b.Drawing || !z02 || !m8b.Drawing[z02] || !new m8b.Drawing[z02]().dragToDraw){if(!this.drawingClick(this.currentPanel,p9S,M7y)){v0N(this,p0n,X5k);}if(!this.currentVectorParameters.vectorType){J7w=this.activeMarker && this.activeMarker.click({cx:p9S,cy:M7y,panel:this.currentPanel});if(!J7w){this.dispatch("tap",{stx:this,panel:this.currentPanel,x:p9S,y:M7y});}}}}this.runAppend(U1R,T$Y);}).apply(Y0Z,T$Y);};};m8b.ChartEngine.prototype.touchDoubleClick=function(O06,t1o,T9y){var U0X,D7h,y$B,z5m,y8L,A5a;U0X="d";U0X+="ou";U0X+="bl";U0X+="eTap";D7h="touchDoubleCl";D7h+="ic";D7h+="k";y$B=654591386;z5m=-1914874400;y8L=2;for(var c0C=1;A2IFV.Z2Z(c0C.toString(),c0C.toString().length,20973) !== y$B;c0C++){if(this.runPrepend("",arguments)){return;}if(this.editingAnnotation){return;}y8L+=2;}if(A2IFV.U6$(y8L.toString(),y8L.toString().length,82311) !== z5m){if(this.runPrepend("",arguments)){return;}if(this.editingAnnotation){return;}}if(this.runPrepend(D7h,arguments)){return;}if(this.editingAnnotation){return;}if(m8b.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}v0N(this,t1o,T9y);A5a=this.activeMarker && this.activeMarker.doubleClick({cx:t1o,cy:T9y,panel:this.currentPanel});A2IFV.D0H();if(!A5a){this.dispatch(U0X,{stx:this,finger:O06,x:t1o,y:T9y});}this.runAppend("touchDoubleClick",arguments);};m8b.ChartEngine.prototype.startProxy=function(v_V){var b5r;b5r="to";b5r+="u";b5r+="c";b5r+="h";this.touchPointerType=v_V.pointerType;if(this.touchPointerType != b5r){this.mouseMode=!"";return;}this.mouseMode=!1;this.touches[this.touches.length]={pointerId:v_V.pointerId,pageX:v_V.clientX,pageY:v_V.clientY,clientX:v_V.clientX,clientY:v_V.clientY};this.changedTouches=[{pointerId:v_V.pointerId,pageX:v_V.clientX,pageY:v_V.clientY,clientX:v_V.clientX,clientY:v_V.clientY}];if(this.touches.length == +"1"){this.gesturePointerId=v_V.pointerId;}this.touchstart(v_V);};m8b.ChartEngine.prototype.moveProxy=function(M0J){if(M0J.pointerType && M0J.pointerType != "touch"){this.mouseMode=!!1;return;}A2IFV.a9S();this.mouseMode=!1;this.touchmove(M0J);};m8b.ChartEngine.prototype.endProxy=function(I0p){var R2M=A2IFV;var H09,n_G,w4U,x3z;if(this.touchPointerType != "touch"){this.mouseMode=!!({});return;}this.mouseMode=![];H09=this.touches.length;for(var H4d=0;H4d < this.touches.length;H4d++){if(this.touches[H4d].pointerId == I0p.pointerId){this.touches.splice(H4d,1);break;}}if(H4d == H09){this.touches=[];this.grabbingScreen=!1;this.touching=!!"";return;}this.changedTouches=[{pointerId:I0p.pointerId,pageX:I0p.clientX,pageY:I0p.clientY,clientX:I0p.clientX,clientY:I0p.clientY}];R2M.D0J(28);n_G=-R2M.q7n("802980364",64);w4U=-1900874754;x3z=2;for(var j3o=1;R2M.U6$(j3o.toString(),j3o.toString().length,23292) !== n_G;j3o++){this.touchend(I0p);x3z+=2;}if(R2M.Z2Z(x3z.toString(),x3z.toString().length,1617) !== w4U){this.touchend(I0p);}};m8b.ChartEngine.prototype.msMouseMoveProxy=function(T$R){if(this.touches.length || !this.mouseMode){return;}this.mousemove(T$R);};m8b.ChartEngine.prototype.msMouseDownProxy=function(O1p){A2IFV.a9S();if(!this.mouseMode){return;}this.mousedown(O1p);};m8b.ChartEngine.prototype.msMouseUpProxy=function(V5V){A2IFV.D0H();if(!this.mouseMode){return;}this.mouseup(V5V);};m8b.ChartEngine.prototype.iosMouseMoveProxy=function(W9T){if(this.touching){return;}A2IFV.a9S();this.mousemove(W9T);};m8b.ChartEngine.prototype.iosMouseDownProxy=function(S3e){if(this.touching){this.mouseMode=!1;return;}this.mouseMode=!![];A2IFV.a9S();this.mousedown(S3e);};m8b.ChartEngine.prototype.iosMouseUpProxy=function(b6G){if(this.touching){return;}this.mouseup(b6G);};m8b.ChartEngine.prototype.touchmove=function(s0o){var z_B=A2IFV;var z0C,q7y,k66,i8L,P8b,O8y,h4u,G49,M1J,A_7,U8i,h5P,u__,o_M,P3e,V3o,U6j,F3j,z8N,T2R,a6O,b6x,W6N,l6R,c4i,j7A,s9V,G7K,y5V,w9D,x6F,v7U,R3x,g6b,n0N,G1m,H$5,r9I,j7d,O3g;if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(m8b.ChartEngine.ignoreTouch === !!1){return;}z0C=[];if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(s0o && s0o.preventDefault && s0o.cancelable && this.captureTouchEvents){s0o.preventDefault();}if(s0o){s0o.stopPropagation();}}q7y=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=q7y;if(this.clicks.e1MS - this.clicks.s1MS < +"25"){return;}}else {this.clicks.e2MS=q7y;if(this.clicks.e2MS - this.clicks.s2MS < 25){return;}}if(!s0o.pointerType){s0o.pointerType=this.touchPointerType;}if(m8b.isSurface){if(this.mouseMode){return;}if(!s0o.pointerId){s0o.pointerId=this.gesturePointerId;}for(var j4I=0;j4I < this.touches.length;j4I++){if(this.touches[j4I].pointerId == s0o.pointerId){k66=Math.abs(this.touches[j4I].pageX - s0o.clientX);i8L=Math.abs(this.touches[j4I].pageY - s0o.clientY);z_B.H6P(42);P8b=Math.sqrt(z_B.q7n(k66,i8L,k66,i8L));if(!P8b){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < 50){return;}if(this.touches[j4I].pageX == s0o.clientX && this.touches[j4I].pageY == s0o.clientY){return;}this.touches[j4I].pageX=this.touches[j4I].clientX=s0o.clientX;this.touches[j4I].pageY=this.touches[j4I].clientY=s0o.clientY;break;}}if(j4I === 0){this.movedPrimary=!![];}else {this.movedSecondary=!"";}if(j4I == this.touches.length){return;}this.changedTouches=[{pointerId:s0o.pointerId,pageX:s0o.clientX,pageY:s0o.clientY,clientX:s0o.clientX,clientY:s0o.clientY}];z0C=this.touches.length?this.touches:this.changedTouches;}else {z0C=s0o.touches;this.changedTouches=s0o.changedTouches;}if(z0C.length == 1){if(Math.pow(this.clicks.x - z0C[0].clientX,2) + Math.pow(this.clicks.y - z0C[0].clientY,2) <= 16){return;}}O8y=this.crosshairXOffset;h4u=this.crosshairYOffset;G49=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";M1J=!this.layout.crosshair && !G49 && !this.touchNoPan;if(s0o.pointerType == "pen" || M1J || this.activeDrawing && this.activeDrawing.name == "freeform"){z_B.D0J(7);O8y=h4u=z_B.q7n(0,"0");}if(this.runPrepend("touchmove",arguments)){return;}if(m8b.ChartEngine.resizingPanel){h5P=z0C[0];A_7=h5P.clientX;U8i=h5P.clientY;z_B.D0J(0);this.mousemoveinner(z_B.q7n(A_7,O8y),z_B.q7n(U8i,h4u));return;}z_B.D0H();if(this.moveB != -1){this.touchMoveTime=new Date();}this.moveA=this.moveB;this.moveB=z0C[0].pageX;if(z0C.length == 1 && !this.twoFingerStart){o_M=z0C[0];A_7=o_M.clientX;U8i=o_M.clientY;this.pinchingScreen=0;z_B.D0J(0);this.mousemoveinner(z_B.S40(A_7,O8y),z_B.S40(U8i,h4u));P3e=this.whichPanel(U8i);V3o=this.xAxisAsFooter === !!1?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=U8i <= this.top + V3o && U8i >= V3o - this.xaxisHeight + this.top && this.insideChart;if(!P3e){this.overYAxis=!1;}else {this.overYAxis=(A_7 >= P3e.right || A_7 <= P3e.left) && this.insideChart;}}else if(z0C.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}U6j=z0C[0];F3j=U6j.clientX;z8N=U6j.clientY;T2R=z0C[1];a6O=T2R.clientX;b6x=T2R.clientY;z_B.D0J(141);u__=Math.sqrt(z_B.q7n(z8N,a6O,z8N,b6x,b6x,a6O,F3j,F3j));z_B.D0J(0);var V9I=z_B.q7n(0,2);this.pinchingCenter=(Math.min(F3j,a6O) - Math.max(F3j,a6O)) / V9I;W6N=Math.round(this.gestureStartDistance - u__);if(M1J){this.pinchingScreen=5;}this.clearPixelCache();if(this.pinchingScreen < 2){if(m8b.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(F3j < this.pt.x1 && a6O < this.pt.x2 || F3j > this.pt.x1 && a6O > this.pt.x2 || z8N < this.pt.y1 && b6x < this.pt.y2 || z8N > this.pt.y1 && b6x > this.pt.y2){this.pinchingScreen=0;}else {this.pinchingScreen++;if(this.pinchingScreen < 2){return;}}}this.pt={x1:F3j,x2:a6O,y1:z8N,y2:b6x};if(this.pinchingScreen === 0){this.grabMode="pan";z_B.H6P(0);this.mousemoveinner(z_B.S40(F3j,O8y),z_B.q7n(z8N,h4u));this.gestureStartDistance=u__;}else {l6R=Math.asin((Math.max(b6x,z8N) - Math.min(b6x,z8N)) / u__);if(Math.abs(W6N) < 12 && !M1J){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {this.moveCount=0;}if(l6R < 1 || !this.goneVertical && l6R < 1.37){if(!this.currentPanel){return;}c4i=this.currentPanel.chart;this.goneVertical=![];u__=this.pt.x2 - this.pt.x1;j7A=this.grabStartValues.t2 - this.grabStartValues.t1;s9V=this.grabStartValues.t1 + j7A / ("2" ^ 0);z_B.D0J(14);G7K=z_B.q7n(j7A,u__);if(c4i.allowScrollFuture === !"1" && c4i.allowScrollPast === !({})){G7K=Math.max(G7K,c4i.width / c4i.dataSet.length);}y5V=this.layout.candleWidth;this.setCandleWidth(G7K,c4i);if(c4i.maxTicks < this.minimumZoomTicks){this.setCandleWidth(y5V,c4i);return;}this.micropixels=0;w9D=this.pixelFromTick(Math.round(s9V),c4i);x6F=this.pt.x1 - this.left + Math.round(u__ / +"2");z_B.H6P(7);v7U=z_B.q7n(x6F,w9D);z_B.H6P(14);R3x=z_B.q7n(G7K,v7U);g6b=Math.round(R3x);c4i.scroll-=g6b;z_B.H6P(7);this.microscroll=z_B.q7n(R3x,g6b);this.micropixels=G7K * this.microscroll;this.draw();}else {n0N=this.grabStartYAxis;this.goneVertical=!0;if(n0N){G1m=-396170675;H$5=1039071863;r9I=2;for(var W5N=+"1";z_B.U6$(W5N.toString(),W5N.toString().length,47121) !== G1m;W5N++){n0N.zoom=this.grabStartZoom + (this.gestureStartDistance - u__);r9I+=2;}if(z_B.U6$(r9I.toString(),r9I.toString().length,+"25025") !== H$5){n0N.zoom=this.grabStartZoom % (this.gestureStartDistance + u__);}if(this.grabStartZoom < n0N.height){if(n0N.zoom >= n0N.height){z_B.H6P(41);var r_W=z_B.q7n(6,17,103);n0N.zoom=n0N.height - r_W;}}else {if(n0N.zoom <= n0N.height){z_B.D0J(142);var d$1=z_B.S40(14,6,12,447,6);n0N.zoom=n0N.height + d$1;}}this.draw();;}}this.updateChartAccessories();}}else if(z0C.length == 3 && m8b.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}j7d=z0C[0];O3g=j7d.clientX;u__=this.grabStartX - O3g;z_B.D0J(143);var o0X=z_B.S40(1,6,4,190,190);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(u__ / o0X);if(this.grabEndPeriodicity < 1){z_B.D0J(21);this.grabEndPeriodicity=z_B.S40("1",0);}}this.runAppend("touchmove",arguments);};function v0N(S$_,i2d,P$Z){var U9M;if(!S$_.layout.crosshair){m8b.ChartEngine.crosshairY=0;m8b.ChartEngine.crosshairX=0;S$_.cx=S$_.backOutX(0);S$_.cy=S$_.backOutY(0);S$_.findHighlights(null,!!1);m8b.ChartEngine.crosshairY=P$Z;m8b.ChartEngine.crosshairX=i2d;U9M=S$_.container.getBoundingClientRect();S$_.top=U9M.top;S$_.left=U9M.left;S$_.right=S$_.left + S$_.width;S$_.bottom=S$_.top + S$_.height;S$_.cx=S$_.backOutX(i2d);S$_.cy=S$_.backOutY(P$Z);if(S$_.currentPanel && S$_.currentPanel.chart.dataSet){S$_.crosshairTick=S$_.tickFromPixel(S$_.cx,S$_.currentPanel.chart);S$_.crosshairValue=S$_.adjustIfNecessary(S$_.currentPanel,S$_.crosshairTick,S$_.valueFromPixel(S$_.cy,S$_.currentPanel));}S$_.headsUpHR();}S$_.findHighlights(!![]);S$_.draw();}m8b.ChartEngine.prototype.touchstart=function(f1D){var T1e=A2IFV;var A_o,r2Q,M9D,D9U,F67,c8B,n2H,X36,n$S,m4m,X76,w4g,K59,k4j,B$x,S7W,h$D,O_d,q6Q,s$O,j8q,w_j,p6Z,k9M,j0D,v8H,l30,F4w,J7S,T04,y06,E0A,m8n,C2d,U_6;A_o="touchst";A_o+="ar";A_o+="t";if(m8b.ChartEngine.ignoreTouch){return;}if(m8b.isSurface){this.movedPrimary=![];this.movedSecondary=!({});}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!!"1";this.touches=f1D.touches;this.changedTouches=f1D.changedTouches;}if(m8b.ChartEngine.resizingPanel){return;}r2Q=this.crosshairXOffset;M9D=this.crosshairYOffset;if(this.touchPointerType == "pen"){r2Q=M9D=0;}if(this.runPrepend("touchstart",arguments)){return;}if(this.manageTouchAndMouse && f1D && f1D.preventDefault && f1D.cancelable && this.captureTouchEvents){f1D.preventDefault();}this.hasDragged=![];this.doubleFingerMoves=0;this.moveCount=0;this.twoFingerStart=!!"";if(this.touches.length == 1 || this.touches.length == 2){this.touchMoveTime=Date.now();n$S=this.touches[0];c8B=n$S.clientX;n2H=n$S.clientY;this.moveA=c8B;this.moveB=-1;if(this.openDialog === ""){m4m="do";m4m+="wn";this.registerPointerEvent({x:c8B,y:n2H,time:this.touchMoveTime},m4m);if(this.changedTouches.length == 1 && !this.isDoubleClick(!!"1")){m8b.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-1,e2MS:-1,x:this.changedTouches["0" - 0].pageX,y:this.changedTouches[0].pageY});}}X76=this.container.getBoundingClientRect();this.top=X76.top;this.left=X76.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == 1){w4g=this.backOutY(n2H);this.currentPanel=this.whichPanel(w4g);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}X36=this.currentPanel;if(c8B >= this.left && c8B <= this.right && n2H >= this.top && n2H <= this.bottom){this.insideChart=!!({});K59=this.xAxisAsFooter === !""?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=n2H <= this.top + K59 && n2H >= this.top + K59 - this.xaxisHeight;this.overYAxis=c8B >= this.left + X36.right || c8B <= this.left + X36.left;k4j=-1;this.cy=this.backOutY(n2H);this.cx=this.backOutX(c8B);this.crosshairTick=this.tickFromPixel(this.cx,X36.chart);this.crosshairValue=this.adjustIfNecessary(X36,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var x4Y=0;x4Y < this.drawingObjects.length;x4Y++){B$x=this.drawingObjects[x4Y];if(B$x.highlighted){if(k4j < "0" >> 0){k4j=x4Y;}S7W=B$x.highlighted;this.findHighlights(!0);if(x4Y == k4j && B$x.highlighted && !B$x.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(B$x);;}else {this.findHighlights(!1,!!"1");;}return;}this.anyHighlighted=!!1;B$x.highlighted=S7W;}}}else {h$D=398187641;T1e.H6P(1);O_d=-T1e.S40(1,"403517388");q6Q=2;for(var x1E=+"1";T1e.U6$(x1E.toString(),x1E.toString().length,"29189" | 1) !== h$D;x1E++){this.insideChart=!"";q6Q+=2;}if(T1e.U6$(q6Q.toString(),q6Q.toString().length,83258) !== O_d){this.insideChart=!!({});}this.insideChart=!!"";}s$O=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !s$O && this.insideChart && !this.touchNoPan){r2Q=M9D=0;var {baselineHelper:n_4}=this;if(n_4.size){if(this.findBaselineHandle(f1D,!"")){return;}}if(this.controls.anchorHandles){j8q=Object.values(this.controls.anchorHandles);w_j=-896458940;T1e.H6P(10);p6Z=-T1e.S40("412015577",9);k9M=2;for(var a23=+"1";T1e.U6$(a23.toString(),a23.toString().length,"59047" ^ 0) !== w_j;a23++){j0D=!"";T1e.H6P(21);k9M+=T1e.q7n("2",0);}if(T1e.Z2Z(k9M.toString(),k9M.toString().length,94686) !== p6Z){j0D=!1;}j0D=!"1";for(var P_3=0;P_3 < j8q.length;P_3++){v8H=j8q[P_3];var {handle:R_n, sd:h0m}=v8H;l30=this.resolveX(this.cx);F4w=this.resolveY(this.cy);var {left:t5H, top:Q4l, right:w$$, bottom:H1Z}=R_n.getBoundingClientRect();t5H-=10;w$$+=10;if(m8b.boxIntersects(t5H,Q4l,w$$,H1Z,l30,F4w,l30,F4w)){J7S="st";J7S+="x-g";J7S+="rab";v8H.highlighted=!!({});this.repositioningAnchorSelector={sd:h0m};R_n.classList.add(J7S);j0D=!0;}if(v8H.highlighted === !""){v8H.highlighted=![];}}if(j0D){return;}}for(D9U in this.panels){F67=this.panels[D9U];if(F67.highlighted){this.grabHandle(F67);return;}}this.grabbingScreen=!!1;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}X36.chart.spanLock=!({});this.yToleranceBroken=![];T1e.H6P(0);this.grabStartX=T1e.q7n(c8B,r2Q);T1e.D0J(0);this.grabStartY=T1e.q7n(n2H,M9D);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=X36.chart.scroll;this.grabStartScrollY=X36.yAxis.scroll;this.grabStartPanel=this.currentPanel;if(this.swipeStart){this.swipeStart(X36.chart);}this.grabStartYAxis=this.whichYAxis(X36,this.backOutX(c8B));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(A7E){return function(){T1e.D0H();A7E.grabbingHand();};})(this),100);}else {this.grabbingScreen=!({});if(this.insideChart && X36.subholder === f1D.target){T04=this.currentVectorParameters.vectorType;if(m8b.Drawing && T04 && m8b.Drawing[T04] && new m8b.Drawing[T04]().dragToDraw){this.userPointerDown=!!1;m8b.ChartEngine.crosshairX=c8B;m8b.ChartEngine.crosshairY=n2H;if(X36 && X36.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(m8b.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(X36,this.crosshairTick,this.valueFromPixel(this.backOutY(m8b.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(X36,this.backOutX(c8B),this.backOutY(n2H));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !s$O && X36.subholder === f1D.target){T1e.H6P(0);this.mousemoveinner(T1e.S40(c8B,r2Q),T1e.q7n(n2H,M9D));}}if(this.touches.length == 2){this.cancelLongHold=!!({});this.swipe.end=!![];if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}y06=this.touches[1];E0A=y06.clientX;m8n=y06.clientY;for(D9U in this.panels){F67=this.panels[D9U];if(F67.highlighted){this.grabHandle(F67);return;}}X36=this.currentPanel;T1e.D0J(141);this.gestureStartDistance=Math.sqrt(T1e.q7n(n2H,E0A,n2H,m8n,m8n,E0A,c8B,c8B));this.pt={x1:c8B,x2:E0A,y1:n2H,y2:m8n};this.grabbingScreen=!!({});if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}X36.chart.spanLock=!1;T1e.H6P(0);this.grabStartX=T1e.S40(c8B,r2Q);T1e.H6P(0);this.grabStartY=T1e.q7n(n2H,M9D);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=X36.chart.scroll;this.grabStartScrollY=X36.yAxis.scroll;this.grabStartPanel=X36;if(this.swipeStart){this.swipeStart(X36.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(X36,this.backOutX((c8B + E0A) / 2)) || X36.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,X36),y2:this.valueFromPixel(this.pt.y2 - this.top,X36),t1:this.tickFromPixel(this.pt.x1 - this.left,X36.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,X36.chart)};this.twoFingerStart=!![];setTimeout((function(i1l){T1e.D0H();return function(){i1l.grabbingHand();};})(this),100);}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}C2d=this.touches[+"0"];U_6=C2d.clientX;this.grabStartX=U_6;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=![];if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}this.runAppend(A_o,arguments);};m8b.ChartEngine.prototype.touchend=function(B7V){var s5K,i73,G78,P_O,K6w,S_6,k$2,X0z,X0B,X_R,Z8S,T5e;if(m8b.ChartEngine.ignoreTouch){return;}this.swipe.end=!!"1";if(m8b.isSurface){}else {this.touches=B7V.touches;this.changedTouches=B7V.changedTouches;}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!0;if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!({});}}}if(this.touches.length){this.grabStartX=-1;this.grabStartY=-1;}s5K=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(u0c){A2IFV.D0H();return function(){A2IFV.a9S();u0c.touching=!"1";};})(this),500);if(m8b.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=!!"";this.grabbingScreen=![];this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(m8b.ChartEngine.resizingPanel){return;}}i73=this.touches.length + +"1";if(this.changedTouches.length == 1){if(this.repositioningDrawing){G78="v";G78+="ec";G78+="t";G78+="or";this.changeOccurred(G78);m8b.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!0);}return;}if(this.repositioningBaseline){P_O="st";P_O+="x-gra";P_O+="b";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove(P_O);K6w=this.mainSeriesRenderer || ({});if(K6w.params && K6w.params.baseline && K6w.params.type != "mountain"){;}this.draw();return;}if(this.repositioningAnchorSelector){m8b.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:o6Y})=>{A2IFV.D0H();return o6Y.classList.remove("stx-grab");});return;}S_6=Date.now();if(this.openDialog === "" && B7V.changedTouches.length){k$2=B7V.changedTouches[0];this.registerPointerEvent({x:k$2.clientX,y:k$2.clientY,time:S_6},"up");}if(this.clicks.s2MS == -("1" | 1)){this.clicks.e1MS=S_6;X0z=this.currentVectorParameters.vectorType;if(!m8b.Drawing || !X0z || !m8b.Drawing[X0z] || !new m8b.Drawing[X0z]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < ("750" ^ 0) && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(i73,this.clicks.x,this.clicks.y),this.doubleClickTime + 1);;}else {this.clicks={s1MS:-1,e1MS:-1,s2MS:-("1" - 0),e2MS:-1};}}this.userPointerDown=!({});X0B=this.backOutY(this.changedTouches[0].pageY) + this.crosshairYOffset;X_R=this.backOutX(this.changedTouches[0].pageX) + this.crosshairXOffset;Z8S=this.currentPanel;T5e=Z8S && Z8S.subholder === B7V.target;if(m8b.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && T5e){this.drawingClick(Z8S,X_R,X0B);return;}if(this.isDoubleClick(!![]) && (T5e || this.overYAxis || this.overXAxis)){this.touchDoubleClick(i73,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=S_6;this.clicks={s1MS:-1,e1MS:-+"1",s2MS:-("1" | 0),e2MS:-+"1"};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -1 && !isNaN(this.grabEndPeriodicity)){if(m8b.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}this.grabEndPeriodicity=-1;}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && i73 == 1 || this.twoFingerStart && !s5K && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(!1,!"");}if(s5K && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!({}));}}if(!this.touches.length){this.twoFingerStart=!({});}this.runAppend("touchend",arguments);};x6D=!({});m8b.ChartEngine.prototype.mousemoveinner=m8b.ChartEngine.prototype.mousemoveinner || (function(n1_,f_j){var F4Z,c8w,f1p;F4Z=1014480928;c8w=+"1052536454";f1p=2;A2IFV.a9S();for(var n3Q=1;A2IFV.U6$(n3Q.toString(),n3Q.toString().length,"93281" * 1) !== F4Z;n3Q++){if(~x6D){console.error("");}f1p+=2;}if(A2IFV.U6$(f1p.toString(),f1p.toString().length,32804) !== c8w){if(+x6D){console.error("");}}if(!x6D){console.error("touch feature requires activating movement feature.");}x6D=!!1;});};d7=V4$=>{var s_A=A2IFV;var b3w,a86;b3w="und";b3w+="efined";a86=typeof _CIQ !== b3w?_CIQ:V4$.CIQ;s_A.D0H();a86.Visualization=a86.Visualization || (function(A4Z){var L76;if(!A4Z){L76="C";L76+="IQ.Visualization() missing attribu";L76+="t";L76+="es argument.";console.log(L76);return;}if(typeof A4Z.renderFunction !== "function"){console.log("CIQ.Visualization() missing renderFunction property in attributes.");return;}this.container=null;s_A.D0H();this.attributes=A4Z;this.data=null;this.object=null;});a86.extend(a86.Visualization.prototype,{destroy:function(b61){var x2A;x2A=this.container;a86.resizeObserver(x2A,null,x2A.resizeHandle);if(x2A.autoGenerated){x2A.remove();delete this.container;}else {x2A.innerHTML="";}if(b61){return;}s_A.a9S();this.attributes=null;this.container=null;this.data=null;this.object=null;this.destroy=this.draw=this.setAttributes=function(){};this.updateData=function(){s_A.a9S();return undefined;};},draw:function(a4O){s_A.D0H();var b0T,p7i,j9v,a$Q,q11,P4i,s_J,E8y,t6O,l3G;b0T="str";b0T+="ing";p7i="o";p7i+="b";p7i+="jec";p7i+="t";if(!this.data || typeof this.data !== p7i){console.log("CIQ.Visualization.draw() missing data.");return;}j9v=this.attributes;a$Q=j9v.container || this.container;if(typeof a$Q === b0T){a$Q=document.querySelector(a$Q);}if(!a$Q){a$Q=document.createElement("div");a$Q.style.height=a$Q.style.width="300px";document.body.appendChild(a$Q);a$Q.autoGenerated=!!({});}if(j9v.stx){q11=j9v.stx.chart.canvasShim;if(j9v.useCanvasShim && q11 && q11 !== a$Q && q11 !== a$Q.parentNode){if(!a$Q.autoGenerated){a$Q=a$Q.cloneNode();a$Q.id="";a$Q.autoGenerated=!!1;}q11.appendChild(a$Q);}}if(this.container && this.container !== a$Q){this.destroy(!0);}if(!a$Q.resizeHandle){P4i=function(a4a){s_A.a9S();return function(){if(a4a.data && a4a.container && document.body.contains(a4a.container)){a4a.draw.call(a4a,!!1);}};};a$Q.resizeHandle=a86.resizeObserver(a$Q,P4i(this),null,100);}this.container=a$Q;this.attributes=j9v;j9v=a86.ensureDefaults({container:this.container},this.attributes);s_J=j9v.renderFunction(Object.values(this.data).sort(g4s),j9v);if(s_J){E8y=+"698908642";t6O=530697098;l3G=2;for(var t7D=1;s_A.U6$(t7D.toString(),t7D.toString().length,82003) !== E8y;t7D++){if(j9v.id){s_J.id=j9v.id;}l3G+=2;}if(s_A.U6$(l3G.toString(),l3G.toString().length,61980) !== t6O){if(j9v.id){s_J.id=j9v.id;}}if(a4O || j9v.forceReplace){this.container.innerHTML="";this.container.appendChild(s_J);}}this.attributes=j9v;function g4s(i$V,F3n){s_A.D0H();return i$V.index < F3n.index?-1:i$V.index > F3n.index?1:0;}this.object=s_J;},setAttributes:function(U$k,T8K){var J3O,y5J,U_2,O2a;J3O="contain";J3O+="er";y5J=["renderFunction",J3O,"stx","useCanvasShim","id","forceReplace"];U_2=![];s_A.a9S();O2a=U$k;if(typeof U$k == "string"){O2a={};O2a[U$k]=T8K;}if(typeof O2a == "object"){for(var s6q in O2a){if(this.attributes[s6q] !== O2a[s6q] && y5J.indexOf(s6q) !== -1){U_2=!![];}this.attributes[s6q]=O2a[s6q];}}this.draw(U_2);},updateData:function(x$S,q1O){var X7V,J5z,f0j,K4b,n2w,U4J,c3h;X7V="up";X7V+="d";X7V+="at";X7V+="e";J5z="r";J5z+="epl";J5z+="a";J5z+="ce";n2w=Array.isArray(x$S)?x$S.reduce(function(Z7C,v8L){s_A.D0H();Z7C[v8L.name]=v8L;return Z7C;},{}):a86.shallowClone(x$S);for(f0j in n2w){K4b=n2w[f0j];if(Object.prototype.toString.call(K4b) !== "[object Object]"){n2w[f0j]={value:K4b};}if(!n2w[f0j].name){n2w[f0j].name=f0j;}if(!n2w[f0j].value){n2w[f0j].value=0;}}if(!q1O){q1O="replace";}switch(q1O.toLowerCase()){case "delete":for(f0j in n2w){delete this.data[f0j];}break;case J5z:this.data={};case X7V:case "add":for(f0j in n2w){U4J="[ob";U4J+="j";U4J+="ect Nu";U4J+="mber]";if(!this.data[f0j]){this.data[f0j]={name:f0j};}K4b=n2w[f0j].value;if(Object.prototype.toString.call(K4b) == U4J){c3h="u";c3h+="p";c3h+="d";c3h+="ate";if(!this.data[f0j].value || q1O == c3h){this.data[f0j].value=0;}this.data[f0j].value+=K4b;}else {this.data[f0j].value=K4b;}for(var x7X in n2w[f0j]){if(x7X !== "value"){this.data[f0j][x7X]=n2w[f0j][x7X];}}}break;default:console.log("Invalid or missing action. Valid values are 'add', 'delete', 'replace', or 'update'.");}this.draw(this.attributes.forceReplace);return this;}});a86.ChartEngine.prototype.embedVisualization=function(M22){if(!M22){M22={};}M22.stx=this;M22.useCanvasShim=!![];s_A.a9S();M22.translator=function(b78){s_A.a9S();return M22.stx.translateIf(b78);};return new a86.Visualization(M22);};};m1=c$9=>{var a6m,E4o,M4W,s4h;a6m="u";a6m+="n";a6m+="defined";E4o=typeof _CIQ !== a6m?_CIQ:c$9.CIQ;if(!E4o.Studies){M4W="medianPrice feature requires first activating studies fea";M4W+="ture.";console.error(M4W);}else {s4h="Median P";s4h+="rice";E4o.Studies.calculateTypicalPrice=function(p9T,t5J){var b2E=A2IFV;var y8C,e$U,y6b,s1e,E5M;y8C=t5J.chart.scrubbed;e$U=t5J.days;if(y8C.length < e$U + 1){if(!t5J.overlay){t5J.error=!"";}return;}y6b=t5J.name;for(var l9R in t5J.outputs){b2E.H6P(37);y6b=b2E.S40(y6b,l9R,(5214,+"2672") == 295?(!({}),0x2024):(4840,148) <= 9300?" ":1583 == 6312?(+"0xa5e",+"978.36"):("O",107.48));}s1e="h";s1e+="l";s1e+="c/3";if(t5J.type == "Med Price"){s1e="hl/2";}else if(t5J.type == "Weighted Close"){s1e="hlcc/4";}E5M=0;if(t5J.startFrom <= e$U){b2E.D0J(28);t5J.startFrom=b2E.q7n("0",32);}for(var n1y=t5J.startFrom;n1y < y8C.length;n1y++){if(n1y && y8C[n1y - 1][y6b]){b2E.H6P(7);var I5X=b2E.S40(2,3);E5M=y8C[n1y - I5X][y6b] * e$U;}E5M+=y8C[n1y][s1e];if(n1y >= e$U){b2E.H6P(7);E5M-=y8C[b2E.q7n(e$U,n1y)][s1e];b2E.H6P(14);y8C[n1y][y6b]=b2E.q7n(e$U,E5M);}}};E4o.Studies.studyLibrary=E4o.extend(E4o.Studies.studyLibrary,{"Med Price":{name:s4h,calculateFN:E4o.Studies.calculateTypicalPrice,inputs:{Period:14}}});}};k4=j0c=>{var c5N=A2IFV;var D8q,l3e;c5N.D0H();D8q=typeof _CIQ !== "undefined"?_CIQ:j0c.CIQ;if(!D8q.Studies){console.error("momentum feature requires first activating studies feature.");}else {l3e="Price Rat";l3e+="e of Change";D8q.Studies.calculateRateOfChange=function(v5G,I8C){var x8z,k$p,P$7,K4Z,Z5Y,H0$,V5T,l0b,h1t,f05,M2v,L7u;x8z="V";x8z+="olu";x8z+="me";k$p="C";k$p+="lo";k$p+="s";k$p+="e";P$7="f";P$7+="ie";P$7+="l";P$7+="d";K4Z=I8C.chart.scrubbed;if(K4Z.length < I8C.days + +"1"){I8C.error=!!({});return;}Z5Y=I8C.inputs.Field;if(!Z5Y || Z5Y == P$7){Z5Y=k$p;}if(I8C.parameters.isVolume){Z5Y=x8z;}H0$=I8C.name;for(var p6q in I8C.outputs){c5N.H6P(37);H0$=c5N.S40(H0$,p6q,"1330" - 0 !== 271?("8590" ^ 0,3416) > "381.69" - 0?5704 === 1382?5.35e+3:" ":(9.59e+3,3.05e+3):(379.23,!!"1"));}V5T=I8C.inputs["Center Line"];if(!V5T){c5N.D0J(10);V5T=c5N.S40("0",0);}else {V5T=parseInt(V5T,10);}for(var H$h=Math.max(I8C.startFrom,I8C.days);H$h < K4Z.length;H$h++){l0b="M";l0b+="oment";l0b+="um";h1t="ob";h1t+="j";h1t+="ect";f05=K4Z[H$h][Z5Y];if(f05 && typeof f05 == h1t){f05=f05[I8C.subField];}M2v=K4Z[H$h - I8C.days][Z5Y];if(M2v && typeof M2v == "object"){M2v=M2v[I8C.subField];}if(I8C.type == l0b){c5N.D0J(36);K4Z[H$h][H0$]=c5N.S40(V5T,f05,M2v);}else {L7u=M2v;if(L7u){c5N.H6P(144);K4Z[H$h][H0$]=c5N.q7n(f05,1,L7u,V5T,100);}}}};D8q.Studies.studyLibrary=D8q.extend(D8q.Studies.studyLibrary,{"Price ROC":{name:l3e,calculateFN:D8q.Studies.calculateRateOfChange,inputs:{Period:14,Field:"field"}},Momentum:{name:"Momentum Indicator",calculateFN:D8q.Studies.calculateRateOfChange,inputs:{Period:14},centerline:0}});}};C1=R1R=>{var v4Q,h$Q;v4Q=typeof _CIQ !== "undefined"?_CIQ:R1R.CIQ;if(!v4Q.Studies){console.error("priceRelative feature requires first activating studies feature.");}else {h$Q="Pric";h$Q+="e Relative";v4Q.Studies.initPriceRelative=function(D8z,t8H,z4c,W8c,t39,S3G){var R7V,U8k;R7V=v4Q.Studies.initializeFN(D8z,t8H,z4c,W8c,t39,S3G);U8k=[R7V.inputs["Comparison Symbol"].toUpperCase()];v4Q.Studies.fetchAdditionalInstruments(D8z,R7V,U8k);return R7V;};v4Q.Studies.calculatePriceRelative=function(P7y,j1Q){var G3m,e7g,h$B,l0e,J4r,J6c;G3m=j1Q.chart.scrubbed;e7g=j1Q.inputs["Comparison Symbol"].toUpperCase();if(!e7g){e7g=j1Q.study.inputs["Comparison Symbol"];}A2IFV.a9S();h$B={};l0e=P7y.chart.symbol || "";l0e=l0e.replace(/[=+\-*\\%]/g,"");h$B[l0e]=G3m.slice(j1Q.startFrom);if(!h$B[l0e].length){return;}if(l0e != e7g){h$B[e7g]=null;}A2IFV.D0J(73);J4r=v4Q.computeEquationChart(A2IFV.S40((3038,9520) !== ("5880" | 24,293.33)?"[":("H",90.93),(544.73,+"232") === +"1192"?526:"]",e7g,"]/[",l0e),h$B);J6c=0;for(var x7b=j1Q.startFrom;x7b < G3m.length && J6c < J4r.length;x7b++){while(J6c < J4r.length && G3m[x7b].DT.getTime() > J4r[J6c].DT.getTime()){J6c++;}if(G3m[x7b].DT.getTime() < J4r[J6c].DT.getTime())continue;G3m[x7b]["Result " + j1Q.name]=J4r[J6c].Close;J6c++;}};v4Q.Studies.displayVsComparisonSymbol=function(W19,u$o,m_H){var M4K,L5O,Q1I,i15;M4K=u$o.inputs["Comparison Symbol"].toUpperCase();if(!W19.getSeries({symbol:M4K,chart:u$o.chart}).length){W19.displayErrorAsWatermark(u$o.panel,W19.translateIf(u$o.study.name) + ": " + W19.translateIf("Not Available"));return;}L5O={skipTransform:W19.panels[u$o.panel].name != u$o.chart.name,panelName:u$o.panel,band:"Result " + u$o.name,threshold:u$o.study.centerline,yAxis:u$o.getYAxis(W19),gapDisplayStyle:!!({})};A2IFV.D0H();Q1I=L5O.yAxis?L5O.yAxis.flipped:W19.panels[u$o.panel].yAxis.flipped;i15=0.3;if(!u$o.highlight && W19.highlightedDraggable){i15*=0.3;}for(var q8U=m_H.length - 1;q8U >= +"0";q8U--){if(m_H[q8U] && m_H[q8U][M4K]){v4Q.Studies.displaySeriesAsLine(W19,u$o,m_H);if(u$o.study.centerline || u$o.study.centerline === 0){if(u$o.outputs.Gain){v4Q.preparePeakValleyFill(W19,v4Q.extend(L5O,{direction:Q1I?-1:"1" | 0,color:v4Q.Studies.determineColor(u$o.outputs.Gain),opacity:i15}));}if(u$o.outputs.Loss){v4Q.preparePeakValleyFill(W19,v4Q.extend(L5O,{direction:Q1I?1:-1,color:v4Q.Studies.determineColor(u$o.outputs.Loss),opacity:i15}));}}return;}}};v4Q.Studies.fetchAdditionalInstruments=function(c0L,O6o,X53,R$L){var G3u,P6m,b20,C33,w2P,J35;if(!c0L.quoteDriver){console.log("CIQ.Studies.fetchAdditionalInstruments: No quotefeed to fetch symbol");return;}G3u=c0L.panels[O6o.panel].chart;function w3i(){c0L.createDataSet();c0L.draw();}O6o.symbols=X53;for(P6m=+"0";P6m < X53.length;P6m++){b20=C33=X53[P6m];if(typeof C33 == "object"){b20=C33.symbol;}else {C33={symbol:b20};}w2P={symbol:b20,symbolObject:C33,bucket:"study",studyName:O6o.name,chartName:G3u.name,action:"add-study"};v4Q.extend(w2P,R$L);J35=w2P.loadData;if(c0L.currentlyImporting){w2P.loadData=![];}if(!O6o.series){O6o.series={};}O6o.series[b20]=c0L.addSeries(null,w2P,w3i);O6o.series[b20].parameters.loadData=J35;}};v4Q.Studies.studyLibrary=v4Q.extend(v4Q.Studies.studyLibrary,{"P Rel":{name:h$Q,initializeFN:v4Q.Studies.initPriceRelative,seriesFN:v4Q.Studies.displayVsComparisonSymbol,calculateFN:v4Q.Studies.calculatePriceRelative,centerline:+"0",inputs:{"Comparison Symbol":"SPY"},deferUpdate:!""}});}};t_=v4i=>{var P5e=A2IFV;var A$i,i3L,m3Z,A_t,F2y,n2A,r5I,j3z;A$i="un";A$i+="d";A$i+="efi";P5e.a9S();A$i+="ned";i3L=typeof _CIQ !== A$i?_CIQ:v4i.CIQ;if(!i3L.Studies){console.error("vwap feature requires first activating studies feature.");}else {m3Z="#8";m3Z+="5c";m3Z+="99e";A_t="#";A_t+="FF";A_t+="0000";F2y="V";F2y+="W";F2y+="A";F2y+="P";n2A="h";n2A+="h:";n2A+="mm:";n2A+="ss";r5I="#fff";r5I+="69e";j3z="#e1e1e";j3z+="1";i3L.Studies.calculateVWAP=function(T41,E9j){var n8T,c$n,o$X,s0q,o$9,J3F,B6E,W0I,G6v,Z8a,h_L,p$Q,k3t,Z2S,j4u,g8k,k$o,a6U,o_1,q6n,v8t,I1Z,z6v,i2l;n8T="AVWA";n8T+="P";c$n=E9j.type == n8T;o$X=E9j.chart.scrubbed;P5e.D0H();if(!c$n && i3L.ChartEngine.isDailyInterval(T41.layout.interval)){E9j.error="VWAP is Intraday Only";return;}s0q="hl";s0q+="c/";s0q+="3";if(c$n){s0q=E9j.inputs.Field;if(!s0q || s0q == "field"){s0q=E9j.inputs.Field="hlc/3";T41.changeOccurred("layout");}}o$9=null;J3F=0;B6E=0;W0I=+"0";G6v=!({});if(E9j.startFrom > 1){Z8a="_";Z8a+="VxP ";h_L="_V";h_L+=" ";J3F=o$X[E9j.startFrom - 1][h_L + E9j.name] || "0" - 0;B6E=o$X[E9j.startFrom - 1][Z8a + E9j.name] || 0;W0I=o$X[E9j.startFrom - 1]["_VxP2 " + E9j.name] || 0;}if(c$n){p$Q="Anc";p$Q+="hor ";p$Q+="D";p$Q+="ate";k3t=E9j.inputs[p$Q].replace(/-/g,"");if(k3t.search(/^\d{8}$/)){E9j.error="Invalid Anchor Date";return;}Z2S=E9j.inputs["Anchor Time"].replace(/:/g,"");if(!Z2S.search(/^\d{4,6}$/)){k3t+=Z2S;}k3t=i3L.strToDateTime(k3t.replace(/\D/g,""));if(!E9j.startFrom && k3t >= o$X[0].DT){E9j.startFrom=T41.tickFromDate(k3t,T41.chart,null,!0);}if(E9j.inputs["Anchor Selector"]){i3L.Studies.initAnchorHandle(T41,E9j);}else {i3L.Studies.removeAnchorHandle(T41,E9j);}}for(var k7F=E9j.startFrom;k7F < o$X.length;k7F++){j4u="_";j4u+="SDVWAP ";if(!c$n){if(o$9 === null){o$9=i3L.Studies.getMarketOffset({stx:T41,localQuoteDate:o$X[k7F].DT,shiftToDateBoundary:!!({})});}if(o$X[k7F - ("1" << 32)] && o$X[k7F - 1].DT){g8k=new Date(new Date(+o$X[k7F].DT).setMilliseconds(o$X[k7F].DT.getMilliseconds() + o$9));k$o=new Date(new Date(+o$X[k7F - 1].DT).setMilliseconds(o$X[k7F - 1].DT.getMilliseconds() + o$9));if(k$o.getDate() != g8k.getDate() && T41.chart.market.isMarketDate(g8k)){o$9=null;J3F=B6E=W0I=0;}}}a6U=o$X[k7F][s0q];o_1=o$X[k7F].Volume;if(c$n && !o_1){o_1=1;}J3F+=o_1;P5e.D0J(1);B6E+=P5e.q7n(a6U,o_1);P5e.H6P(145);W0I+=P5e.q7n(o_1,a6U,a6U);if(!c$n && !J3F)continue;o$X[k7F]["_V " + E9j.name]=J3F;o$X[k7F]["_VxP " + E9j.name]=B6E;o$X[k7F]["_VxP2 " + E9j.name]=W0I;q6n=o$X[k7F][j4u + E9j.name]=Math.sqrt(Math.max(0,W0I / J3F - Math.pow(B6E / J3F,2)));P5e.D0J(14);v8t=o$X[k7F]["VWAP " + E9j.name]=P5e.S40(J3F,B6E);for(var a1o=1;a1o <= 3;a1o++){I1Z="-";I1Z+=" ";P5e.H6P(45);o$X[k7F]["SDVWAP" + a1o + "+ " + E9j.name]=P5e.S40(a1o,q6n,v8t);P5e.H6P(146);o$X[k7F]["SDVWAP" + a1o + I1Z + E9j.name]=P5e.S40(a1o,q6n,v8t);}G6v=!!({});}for(var L2t=1;L2t <= 3;L2t++){z6v="\u03C3";z6v+=")";if(E9j.inputs["Display " + L2t + " Standard Deviation (" + L2t + z6v]){i2l=" Sta";i2l+="ndard ";i2l+="Deviati";i2l+="on (";P5e.D0J(48);E9j.outputMap["SDVWAP" + L2t + "+ " + E9j.name]=P5e.S40("\u03C3)",L2t,i2l,L2t);P5e.H6P(48);E9j.outputMap["SDVWAP" + L2t + "- " + E9j.name]=P5e.S40("\u03C3)",L2t," Standard Deviation (",L2t);}}if(!c$n && !G6v){E9j.error="VWAP Requires Volume";}};i3L.Studies.initAnchoredVWAP=function(B7h,U1L,G3o,j_H,r7J,A7I){var B95,p$$,e89,W3l;B95="Anc";B95+="hor Ti";B95+="me";if(!G3o["Anchor Date"] && !G3o[B95]){var {dataSegment:Z65}=B7h.chart;for(var r1U=0;Z65 && r1U < Z65.length;r1U++){if(Z65[r1U]){p$$="YYYY";p$$+="-MM-dd";e89="Anch";e89+="or Date";var {DT:v_b}=Z65[r1U];G3o[e89]=i3L.dateToStr(v_b,p$$);G3o["Anchor Time"]=i3L.dateToStr(v_b,"HH:mm:ss");break;}}}W3l=i3L.Studies.initializeFN(B7h,U1L,G3o,j_H,r7J,A7I);P5e.a9S();return W3l;};i3L.Studies.displayVWAP=function(m0E,v8U,R4k){var A1r,S9C,x2T,r3q,u4K,D2z,H_q,Q47,c4q,z23;A1r="Display 1 Standard Deviati";A1r+="o";A1r+="n ";A1r+="(1\u03C3)";i3L.Studies.displaySeriesAsLine(m0E,v8U,R4k);S9C=v8U.inputs[A1r];x2T=v8U.inputs["Display 2 Standard Deviation (2\u03C3)"];r3q=v8U.inputs["Display 3 Standard Deviation (3\u03C3)"];if((S9C || x2T || r3q) && v8U.inputs.Shading){u4K="V";u4K+="W";u4K+="AP";u4K+=" ";D2z=m0E.panels[v8U.panel];H_q={opacity:v8U.parameters.opacity?v8U.parameters.opacity:0.2,skipTransform:D2z.name != v8U.chart.name,yAxis:v8U.getYAxis(m0E)};if(!v8U.highlight && m0E.highlightedDraggable){H_q.opacity*=0.3;}Q47=u4K + v8U.name;c4q="VWAP " + v8U.name;if(S9C){z23="S";z23+="D";z23+="VWAP1+ ";i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP1+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP1+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP1- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP1- " + v8U.name]])},H_q));Q47=z23 + v8U.name;c4q="SDVWAP1- " + v8U.name;}if(x2T){i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP2+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP2+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP2- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP2- " + v8U.name]])},H_q));Q47="SDVWAP2+ " + v8U.name;c4q="SDVWAP2- " + v8U.name;}if(r3q){i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP3+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP3+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP3- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP3- " + v8U.name]])},H_q));}}if(v8U.anchorHandle){i3L.Studies.displayAnchorHandleAndLine(m0E,v8U,R4k);}};i3L.Studies.studyLibrary=i3L.extend(i3L.Studies.studyLibrary,{AVWAP:{name:"Anchored VWAP",overlay:!!({}),calculateFN:i3L.Studies.calculateVWAP,seriesFN:i3L.Studies.displayVWAP,initializeFN:i3L.Studies.initAnchoredVWAP,removeFN:i3L.Studies.removeAnchorHandle,inputs:{Field:"field","Anchor Date":"","Anchor Time":"","Display 1 Standard Deviation (1\u03C3)":!({}),"Display 2 Standard Deviation (2\u03C3)":!({}),"Display 3 Standard Deviation (3\u03C3)":!"1",Shading:![],"Anchor Selector":!![]},outputs:{VWAP:"#FF0000","1 Standard Deviation (1\u03C3)":j3z,"2 Standard Deviation (2\u03C3)":"#85c99e","3 Standard Deviation (3\u03C3)":r5I},parameters:{init:{opacity:0.2}},attributes:{"Anchor Date":{placeholder:"yyyy-mm-dd"},"Anchor Time":{placeholder:n2A,step:1}}},VWAP:{name:F2y,overlay:!!"1",calculateFN:i3L.Studies.calculateVWAP,seriesFN:i3L.Studies.displayVWAP,inputs:{"Display 1 Standard Deviation (1\u03C3)":!({}),"Display 2 Standard Deviation (2\u03C3)":!1,"Display 3 Standard Deviation (3\u03C3)":!({}),Shading:!({})},outputs:{VWAP:A_t,"1 Standard Deviation (1\u03C3)":"#e1e1e1","2 Standard Deviation (2\u03C3)":m3Z,"3 Standard Deviation (3\u03C3)":"#fff69e"},parameters:{init:{opacity:0.2}}}});}};b$=w_y=>{var i4L=A2IFV;i4L.D0H();var n1m;n1m=typeof _CIQ !== "undefined"?_CIQ:w_y.CIQ;if(!n1m.Studies){console.error("zigzag feature requires first activating studies feature.");}else {n1m.Studies.calculateZigZag=function(t9F,d8T){var b6K,l6_,r0c,z3Y,s92,a3f,Y3A,H37,r44,B_8,N8z,i6o,N$9,H$L,O8W,I5K,F6p,J0u,Z$9,S7u,N8a,u$Y;b6K="H";b6K+="i";b6K+="g";function O60(t8T,h$L){var f55;for(var T$z=t8T + 1;T$z < h$L;T$z++){f55="R";f55+="es";f55+="ul";f55+="t ";r0c[T$z]["ShadowResult " + d8T.name]=(r0c[h$L][f55 + d8T.name] - r0c[t8T]["Result " + d8T.name]) * (T$z - t8T) / (h$L - t8T) + r0c[t8T]["Result " + d8T.name];delete r0c[T$z]["Result " + d8T.name];}}b6K+="h";l6_="L";l6_+="o";l6_+="w";r0c=d8T.chart.scrubbed;if(!r0c || !r0c.length){return;}z3Y=d8T.highLowChart;s92=null;a3f=null;Y3A=d8T.inputs["Distance(%)"];H37=0;r44=0;B_8=0;N8z=null;i6o=null;N$9=0;for(var N5H=Math.min(r0c.length - 1,d8T.startFrom);N5H >= 0;N5H--){H$L="_sta";H$L+="t";H$L+="e ";N$9=N5H;if(r0c[N5H][H$L + d8T.name]){O8W=r0c[N5H]["_state " + d8T.name];s92=O8W[0];a3f=O8W[1];H37=O8W[+"2"];r44=O8W[3];B_8=O8W[4];N8z=O8W[+"5"];i6o=O8W[6];break;}}for(var P_X=N$9;P_X < r0c.length;P_X++){I5K=r0c[P_X][z3Y?"High":"Close"];F6p=r0c[P_X][z3Y?"Low":"Close"];if(a3f === null || a3f < I5K){a3f=I5K;if(H37 < 0){s92=F6p;}i4L.D0J(147);N8z=i4L.q7n(100,Y3A,a3f,1);if(H37 > -1){if(i6o !== null && a3f > i6o){J0u="L";J0u+="o";J0u+="w";Z$9="Resu";Z$9+="lt ";r0c[r44][Z$9 + d8T.name]=r0c[r44][z3Y?J0u:"Close"];O60(B_8,r44);H37=-1;s92=F6p;B_8=r44;r44=P_X;continue;}}else {r44=P_X;}}if(s92 === null || s92 > F6p){s92=F6p;if(H37 > ("0" ^ 0)){a3f=I5K;}i4L.D0J(148);i6o=i4L.S40(Y3A,1,s92,100);if(H37 < +"1"){if(N8z !== null && s92 < N8z){r0c[r44]["Result " + d8T.name]=r0c[r44][z3Y?"High":"Close"];O60(B_8,r44);H37=1;a3f=I5K;B_8=r44;r44=P_X;continue;}}else {r44=P_X;}}}r0c[r44]["Result " + d8T.name]=r0c[r44][z3Y?H37 == 1?l6_:b6K:"Close"];r0c[r44]["_state " + d8T.name]=[s92,a3f,H37,r44,B_8,N8z,i6o];O60(B_8,r44);i4L.H6P(52);var O9y=i4L.q7n(59,3,20);S7u=r0c.length - O9y;while(S7u > r44){if(r0c[S7u].Close || r0c[S7u].Close === 0){N8a="Hi";N8a+="g";N8a+="h";u$Y="Resul";u$Y+="t";u$Y+=" ";r0c[S7u][u$Y + d8T.name]=r0c[S7u][z3Y?H37 == 1?N8a:"Low":"Close"];break;}S7u--;}i4L.a9S();O60(r44,S7u);};n1m.Studies.displayZigZag=function(F4Q,P3b,s7t){var c8Q,Q8i,Q_Y,b7l,P7l,b0C,H5t,F7Z,Y3n;c8Q=F4Q.chart.highLowBars;if(P3b.highLowChart != c8Q){P3b.highLowChart=c8Q;P3b.startFrom=0;P3b.study.calculateFN(F4Q,P3b);}Q8i=F4Q.chart;for(var F2z=0;F2z < s7t.length;F2z++){Q_Y=s7t[F2z];if(Q_Y){b7l="R";b7l+="esult ";if(Q_Y["_shadowCopy " + P3b.name]){delete Q_Y["Result " + P3b.name];delete Q_Y["_shadowCopy " + P3b.name];}if(!Q_Y[b7l + P3b.name]){P7l="R";P7l+="esul";P7l+="t";P7l+=" ";if(Q_Y.transform){delete Q_Y.transform[P7l + P3b.name];}}}}b0C=s7t[0];i4L.H6P(149);var x$H=i4L.S40(19,18,7,34,9);H5t=s7t[s7t.length - x$H];if(b0C && b0C["ShadowResult " + P3b.name]){F7Z="ShadowRe";F7Z+="su";F7Z+="l";F7Z+="t ";b0C["Result " + P3b.name]=b0C[F7Z + P3b.name];if(b0C.transform){b0C.transform["Result " + P3b.name]=Q8i.transformFunc(F4Q,Q8i,b0C["ShadowResult " + P3b.name]);}i4L.H6P(1);b0C["_shadowCopy " + P3b.name]=i4L.q7n(1,"1");}if(H5t && H5t["ShadowResult " + P3b.name]){Y3n="Re";Y3n+="sul";Y3n+="t ";H5t[Y3n + P3b.name]=H5t["ShadowResult " + P3b.name];if(H5t.transform){H5t.transform["Result " + P3b.name]=Q8i.transformFunc(F4Q,Q8i,H5t["ShadowResult " + P3b.name]);}H5t["_shadowCopy " + P3b.name]=1;}n1m.Studies.displaySeriesAsLine(F4Q,P3b,s7t);};n1m.Studies.studyLibrary=n1m.extend(n1m.Studies.studyLibrary,{ZigZag:{name:"ZigZag",overlay:!![],seriesFN:n1m.Studies.displayZigZag,calculateFN:n1m.Studies.calculateZigZag,inputs:{"Distance(%)":10},parameters:{init:{label:!1}},attributes:{"Distance(%)":{min:0.1,step:0.1}}}});}};A1={CIQ:y4,SplinePlotter:l5,timezoneJS:R$,$$:L9,$$$:G8};export {Z as createEngine};export {Q as customCharts};export {q as drawing};export {A as easeMachine};export {G as equations};export {g as i18n};export {K as interaction};export {M as markers};export {B as market};export {J as movement};export {P as nameValueStore};export {T as quoteFeed};export {W as series};export {U as share};export {R as span};export {D as storage};export {N as studies};export {L0 as symbolLookupBase};export {W_ as theme};export {f9 as timezone};export {o8 as touch};export {d7 as visualization};export {m1 as medianPrice};export {k4 as momentum};export {C1 as priceRelative};export {t_ as vwap};export {b$ as zigzag};export {y4 as CIQ, l5 as SplinePlotter, R$ as timezoneJS, L9 as $$, G8 as $$$};if(typeof __TREE_SHAKE__ === Z9Rgz || !__TREE_SHAKE__){A1.CIQ.activateImports(Z,Q,q,A,G,g,K,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */ diff --git a/package-lock.json b/package-lock.json index 59d3d7bf15..3fe55ca5e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@deriv/deriv-charts", - "version": "1.1.7", + "version": "1.1.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@deriv/deriv-charts", - "version": "1.1.7", + "version": "1.1.8", "license": "ISC", "dependencies": { "@welldone-software/why-did-you-render": "^3.3.8", @@ -11098,6 +11098,21 @@ "node": ">=8" } }, + "node_modules/i18n": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/i18n/-/i18n-0.5.0.tgz", + "integrity": "sha512-HPvM9K2HhLXJGnMEt1dwwV7XVDPv0lwCCOpsI2wa8fwYiVsp82PxDr7tmvQvu5eESyMj1M0ljCQvYgXq3PlpKg==", + "dev": true, + "peer": true, + "dependencies": { + "debug": "*", + "mustache": "*", + "sprintf": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -14703,6 +14718,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/mustache": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", + "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", + "dev": true, + "peer": true, + "bin": { + "mustache": "bin/mustache" + } + }, "node_modules/nan": { "version": "2.14.1", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", @@ -19645,6 +19670,17 @@ "xtend": ">=4.0.0 <4.1.0-0" } }, + "node_modules/sprintf": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/sprintf/-/sprintf-0.1.5.tgz", + "integrity": "sha512-4X5KsuXFQ7f+d7Y+bi4qSb6eI+YoifDTGr0MQJXRoYO7BO7evfRCjds6kk3z7l5CiJYxgDN1x5Er4WiyCt+zTQ==", + "deprecated": "The sprintf package is deprecated in favor of sprintf-js.", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.2.4" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -32536,6 +32572,18 @@ } } }, + "i18n": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/i18n/-/i18n-0.5.0.tgz", + "integrity": "sha512-HPvM9K2HhLXJGnMEt1dwwV7XVDPv0lwCCOpsI2wa8fwYiVsp82PxDr7tmvQvu5eESyMj1M0ljCQvYgXq3PlpKg==", + "dev": true, + "peer": true, + "requires": { + "debug": "*", + "mustache": "*", + "sprintf": ">=0.1.1" + } + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -35283,6 +35331,13 @@ "minimatch": "^3.0.4" } }, + "mustache": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", + "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", + "dev": true, + "peer": true + }, "nan": { "version": "2.14.1", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", @@ -39400,6 +39455,13 @@ } } }, + "sprintf": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/sprintf/-/sprintf-0.1.5.tgz", + "integrity": "sha512-4X5KsuXFQ7f+d7Y+bi4qSb6eI+YoifDTGr0MQJXRoYO7BO7evfRCjds6kk3z7l5CiJYxgDN1x5Er4WiyCt+zTQ==", + "dev": true, + "peer": true + }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", diff --git a/package.json b/package.json index dc4f6df94a..ee2e311b9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deriv/deriv-charts", - "version": "1.1.7", + "version": "1.1.8", "main": "dist/smartcharts.js", "author": "amin@binary.com", "contributors": [