{"version":3,"names":[],"mappings":"","sources":["js/common.js"],"sourcesContent":["require=function o(n,s,r){function a(e,t){if(!s[e]){if(!n[e]){var i=\"function\"==typeof require&&require;if(!t&&i)return i(e,!0);if(l)return l(e,!0);throw(t=new Error(\"Cannot find module '\"+e+\"'\")).code=\"MODULE_NOT_FOUND\",t}i=s[e]={exports:{}},n[e][0].call(i.exports,function(t){return a(n[e][1][t]||t)},i,i.exports,o,n,s,r)}return s[e].exports}for(var l=\"function\"==typeof require&&require,t=0;tNumber(t)?location.href=i.pathName+(e?e+\"&\":\"?\")+\"page=\"+t:$(this).val()<1?location.href=i.pathName+(e?e+\"&\":\"?\")+\"page=1\":location.href=i.pathName+(e?e+\"&\":\"?\")+\"page=\"+$(this).val())})},r);function r(){var t=n.call(this)||this;return t.dom={input:$(\".page_number_input\"),page_params:$(\".page_params\")},t.logFn(),t.pathName=window.location.pathname,console.log(t.pathName),t.init(),t}i[\"default\"]=t},{\"../../components/frame/frame\":41}],156:[function(t,e,i){var o,n,s=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(i.__esModule=!0,t(\"../../components/frame/frame\")),a=(t(\"../../components/base/polyfill\"),t(\"../../components/header/index\")),l=t(\"../../components/back_top/index\"),h=t(\"../../components/adv/ad\"),t=(n=r[\"default\"],s(c,n),c.prototype.SetModuleFixed=function(){var t,e,i,o,n,s,r,a,l=$(\"#metal_right > .ad_front_container:last-child\"),h=$(\"#metal_right > .hq_list:last\"),c=$(\"#metal_right > .hq_list_steel:last\"),d=$(\"#metal_main .metal-news-nav\"),u=$(\"#metal_main .metal-news-lib\"),p=h.height();null==c.height()&&null==p?(l.addClass(\"adPositionDefault\"),t=$(\"#metal_right > .metal-recommend\")[0].offsetTop,e=$(\"#metal_right > .metal-recommend\")[0].offsetHeight+30,window.addEventListener(\"scroll\",function(){(document.documentElement.scrollTop||document.body.scrollTop)>=t+e?l.removeClass(\"adPositionDefault\").addClass(\"adPositionFixedSingle\"):l.removeClass(\"adPositionFixedSingle\").addClass(\"adPositionDefault\")})):p?(1<=l.length||1<=h.length)&&(l.addClass(\"adPositionDefault\"),h.addClass(\"hqPositionDefault\"),i=$(\"#metal_right > .metal-recommend\")[0].offsetTop,o=$(\"#metal_right > .metal-recommend\")[0].offsetHeight+30,window.addEventListener(\"scroll\",function(){(document.documentElement.scrollTop||document.body.scrollTop)>=i+o?(l.removeClass(\"adPositionDefault\").addClass(\"adPositionFixed\"),h.removeClass(\"hqPositionDefault\").addClass(\"hqPositionFixed\")):(l.removeClass(\"adPositionFixed\").addClass(\"adPositionDefault\"),h.removeClass(\"hqPositionFixed\").addClass(\"hqPositionDefault\"))})):(1<=l.length||1<=c.length)&&(l.addClass(\"adPositionDefault\"),c.addClass(\"hqPositionDefault\"),n=$(\"#metal_right > .metal-recommend\")[0].offsetTop,s=$(\"#metal_right > .metal-recommend\")[0].offsetHeight+30,window.addEventListener(\"scroll\",function(){(document.documentElement.scrollTop||document.body.scrollTop)>=n+s?(l.removeClass(\"adPositionDefault\").addClass(\"adPositionFixedSteel\"),c.removeClass(\"hqPositionDefault\").addClass(\"hqPositionFixed\")):(l.removeClass(\"adPositionFixedSteel\").addClass(\"adPositionDefault\"),c.removeClass(\"hqPositionFixed\").addClass(\"hqPositionDefault\"))})),1<=d.length&&1<=u.length&&(r=$(\"#metal_main .metal-news-nav\")[0].offsetTop,a=$(\"#metal_main .metal-news-nav\")[0].offsetHeight,window.addEventListener(\"scroll\",function(){(document.documentElement.scrollTop||document.body.scrollTop)>=r+a?(d.addClass(\"metal-news-nav-fixed\"),u.addClass(\"place-blank\")):(d.removeClass(\"metal-news-nav-fixed\"),u.removeClass(\"place-blank\"))}))},c);function c(){var t=n.call(this)||this;return new a[\"default\"],new l[\"default\"],new h[\"default\"],t}i[\"default\"]=t},{\"../../components/adv/ad\":30,\"../../components/back_top/index\":34,\"../../components/base/polyfill\":35,\"../../components/frame/frame\":41,\"../../components/header/index\":48}],132:[function(t,e,i){var o,n,s=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(i.__esModule=!0,t(\"../../components/frame/frame\")),a=t(\"../../components/events/nav/events_nav\"),l=t(\"../../public/util\"),t=(n=r[\"default\"],s(h,n),h.reload=function(){window.location.reload()},h.open=function(t){window.open(t)},h.href=function(t){window.location.href=t},h.hide=function(t){jQuery(t).hide()},h.show=function(t){jQuery(t).show()},h.parseBool=function(t){return!!t&&\"true\"==t.toLowerCase()},h.setCookie=function(t,e,i,o,n){var s,r;void 0===o&&(o=h.COOKIE_DOMAIN),void 0===n&&(n=h.COOKIE_PATH),t&&(s=t+\"=\"+encodeURIComponent(e),\"number\"==typeof i&&((r=new Date).setTime(r.getTime()+24*i*60*60*1e3),s+=\";expires=\"+r.toUTCString()),s=s+\";domain=\"+o+\";path=\"+n,document.cookie=s,this._cookie[t]=e)},h.getCookie=function(t){return h.initCookie(),h._cookie[t]},h.initCookie=function(){if(t=h.jquery.trim(document.cookie||\"\"))for(var t=t.split(\";\"),e=0;e'+n[s])+\"\";var r=$(this.dom.recommendList[e]).attr(\"data-cycle\"),i=i+(''+this.timeUpdate[r])+\"\";$(this.dom.recommendList[e]).html(i)}},o.prototype.getColors=function(t){var e=Math.floor(Math.random()*t.length);return t.splice(e,1)[0]},o.prototype.initEvents=function(){var t=this,e=!1;$(document).on(\"click\",function(t){}),t.dom.item_checked.on(\"click\",function(){e?t.dom.item_list.removeClass(\"hidden\"):t.dom.item_list.addClass(\"hidden\"),e=!e}),t.dom.item_list.on(\"click\",function(){e=!0})},i[\"default\"]=o},{}],111:[function(t,e,i){function o(){this.recommendList=\".recommend-tags\",this.colors=[\"#03a3ff\",\"#ff0000\",\"#ff0394\"],this.initLayout()}o.prototype.initLayout=function(){for(var t=$(this.recommendList).length,e=0;e'+n[s])+\"\";$($(this.recommendList)[e]).html(i)}}},o.prototype.getColors=function(t){var e=Math.floor(Math.random()*t.length);return t.splice(e,1)[0]},i[\"default\"]=o},{}],119:[function(t,e,i){i.__esModule=!0;var o=t(\"./celue_base\"),n=t(\"./data\"),s=$(\".logo-common\").attr(\"data-usercenter\"),r=$(\".logo-common\").attr(\"data-wwwurl\");i.openFileAuthor=function(e,i){void 0===i&&(i=\"pdf\");var t=o[\"default\"].getCookie(\"SMM_auth_token\");\"\"!==t&&n.getTokenInfo(t,s,function(t){0===t.code&&(t.data.is_login_by_wechat?\"pdf\"==i?o[\"default\"].open(\"/celue/pdf/\"+e):o[\"default\"].open(\"/celue/excel/\"+e):(t=void 0,t=\"pdf\"==i?r+\"/pdf/\"+e:r+\"/excel/\"+e,o[\"default\"].href(\"/celue/bind/wechat?itemurl=\"+encodeURIComponent(t))))},function(t){console.error(t)})}},{\"./celue_base\":117,\"./data\":118}],118:[function(t,e,i){i.__esModule=!0,i.getTokenInfo=function(t,e,i,o){$.ajax({url:e+\"/get_token_info?auth_token=\"+t,type:\"Get\",dataType:\"json\",success:function(t){i&&i(t)},error:function(t){o&&o(t)}})}},{}],109:[function(t,e,i){var o=t(\"../../../pages/celue_base/celue_base\");function n(){this.dom={bought:$(\".bought\"),past:$(\".past\"),nopay:$(\".nopay\"),orderContainerBought:$(\".order-container-bought\"),orderContainerPast:$(\".order-container-past\"),orderContainerNopay:$(\".order-container-nopay\"),cancelOrder:$(\".cancel-order a\"),loginBtn:$(\".do-login\")},this.tabActive=\"active\",this.pageActive=\"page-active\",this.initEvent()}n.prototype.initEvent=function(){var e=this;this.dom.bought.on(\"click\",function(){$(e.dom.bought).addClass(e.tabActive),$(e.dom.past).removeClass(e.tabActive),$(e.dom.nopay).removeClass(e.tabActive),$(e.dom.orderContainerBought).addClass(e.pageActive),$(e.dom.orderContainerPast).removeClass(e.pageActive),$(e.dom.orderContainerNopay).removeClass(e.pageActive)}),this.dom.past.on(\"click\",function(){$(e.dom.past).addClass(e.tabActive),$(e.dom.nopay).removeClass(e.tabActive),$(e.dom.bought).removeClass(e.tabActive),$(e.dom.orderContainerPast).addClass(e.pageActive),$(e.dom.orderContainerBought).removeClass(e.pageActive),$(e.dom.orderContainerNopay).removeClass(e.pageActive)}),this.dom.nopay.on(\"click\",function(){$(e.dom.nopay).addClass(e.tabActive),$(e.dom.bought).removeClass(e.tabActive),$(e.dom.past).removeClass(e.tabActive),$(e.dom.orderContainerNopay).addClass(e.pageActive),$(e.dom.orderContainerBought).removeClass(e.pageActive),$(e.dom.orderContainerPast).removeClass(e.pageActive)}),this.dom.cancelOrder.on(\"click\",function(){var t=$(this).attr(\"ordernumber\");\"\"==t?alert(\"订单号为空\"):o[\"default\"].cancelOrder(t)}),this.dom.loginBtn.on(\"click\",function(){var t=window.location.href,t=e.dom.loginBtn.attr(\"loginurl\")+\"/login?referer=\"+encodeURIComponent(t);window.location.href=t})},i[\"default\"]=n},{\"../../../pages/celue_base/celue_base\":117}],117:[function(t,e,i){var o,n,s=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(i.__esModule=!0,t(\"../../components/frame/frame\")),a=t(\"../../components/www_celue/nav/nav\"),l=t(\"../../components/www_celue/footer/footer\"),h=t(\"../../components/smm_components/src/header/header\"),c=t(\"@smm/sa/dist/sa/sa\"),t=(n=r[\"default\"],s(d,n),d.reload=function(){window.location.reload()},d.open=function(t){window.open(t)},d.href=function(t){window.location.href=t},d.hide=function(t){jQuery(t).hide()},d.show=function(t){jQuery(t).show()},d.parseBool=function(t){return!!t&&\"true\"==t.toLowerCase()},d.setCookie=function(t,e,i,o,n){var s,r;void 0===o&&(o=d.COOKIE_DOMAIN),void 0===n&&(n=d.COOKIE_PATH),t&&(s=t+\"=\"+encodeURIComponent(e),\"number\"==typeof i&&((r=new Date).setTime(r.getTime()+24*i*60*60*1e3),s+=\";expires=\"+r.toUTCString()),s=s+\";domain=\"+o+\";path=\"+n,document.cookie=s,this._cookie[t]=e)},d.getCookie=function(t){return d.initCookie(),d._cookie[t]},d.cancelOrder=function(t){var e=this.getCookie(\"SMM_auth_token\"),i=d.jquery(\".config-order\").attr(\"data-order\");d.jquery.ajax({url:i+\"/v2/cancel_order\",type:\"POST\",dataType:\"json\",data:{auth_token:e,order_number:t},success:function(t){0===t.code&&(pop.alert({title:\"提示\",msg:\"取消订单成功\",icon:\"fa fa-3x text-warning fa-exclamation-triangle wx-warning-icon\"}),window.location.reload())},error:function(t){pop.alert({title:\"提示\",msg:\"取消订单失败\",icon:\"fa fa-3x text-warning fa-exclamation-triangle wx-warning-icon\"}),window.location.reload()}})},d.initCookie=function(){if(t=d.jquery.trim(document.cookie||\"\"))for(var t=t.split(\";\"),e=0;e\\n
\\n
{{name}}
\\n
{{date}}
\\n
\\n
\\n
{{price}}
\\n
{{UpOrDown}}
\\n
\\n \\n ',n=function(t){var e=t.Highs,t=t.Low,i=\"\";return i=(i+=0{{UpOrDown}}','
+'+i._getValue(\"PriceDetail\",c)[0].Vchange+\"
\"):e.replace(\"{{name}}\",c.ProductName).replace(\"{{price}}\",n(i._getValue(\"PriceDetail\",c)[0])).replace('
{{UpOrDown}}
','
'+i._getValue(\"PriceDetail\",c)[0].Vchange+\"
\")).replace(\"{{date}}\",s(i._getValue(\"RenewDate\",c))))}return a},i[\"default\"]=o},{}],78:[function(t,e,i){function o(){var o=this,n=window.location.pathname.split(\"/\")[2];this.clickToChangeCookie(n),$(\".table-title\").on(\"click\",function(t){t.stopPropagation()}),$(document).on(\"click\",function(){$(\".move-table\").css(\"display\",\"none\")}),$(\".rank\").on(\"click\",function(t){var i=$(t.currentTarget).next();\"none\"===i.css(\"display\")?($(\".move-table\").css(\"display\",\"none\"),i.css(\"display\",\"block\"),$(i.children(\".down\")).unbind(\"click\").click(function(t){var t=$(t.currentTarget).parent().parent().parent(),e=t.next();t.insertAfter(e),i.css(\"display\",\"none\"),o.reSetIndex(),o.clickToChangeCookie(n)}),$(i.children(\".up\")).unbind(\"click\").click(function(t){var t=$(t.currentTarget).parent().parent().parent(),e=t.prev();t.insertBefore(e),i.css(\"display\",\"none\"),o.reSetIndex(),o.clickToChangeCookie(n)}),$(i.children(\".top\")).unbind(\"click\").click(function(t){var t=$(t.currentTarget).parent().parent().parent(),e=$(\".table-list\").eq(0);t.insertBefore(e),i.css(\"display\",\"none\"),o.reSetIndex(),o.clickToChangeCookie(n)})):$(\".move-table\").css(\"display\",\"none\")})}o.prototype.reSetIndex=function(){$(\".table-list\").each(function(t){$(this).attr(\"data-spot-value\",t)})},o.prototype.clickToChangeCookie=function(t){var e,i=[];$(\".table-list\").each(function(t){var e=[];e.push($(this).attr(\"data-spot-index\")),e.push($(this).attr(\"data-spot-value\")),e=e.join(\",\"),i.push(e)}),e=i.join(\"|\"),this.addCookie(\"joinArr_\"+t,encodeURIComponent(e))},o.prototype.setSequence=function(){},o.prototype.addCookie=function(t,e){var i=new Date;i.setTime(i.getTime()+864e5),document.cookie=t+\"=\"+e+\";expires=\"+i.toUTCString()+\";domain=\"+document.domain},i[\"default\"]=o},{}],77:[function(t,e,i){var o=t(\"../../../components/base/utils\"),n=t(\"../../../components/base/utils\");function s(){this.dom_string={scan_code:\".scan_code\",news_item:\".news_item\",load_more:\".load_more\",expandable:\".expandable\",live_title_detail:\".live_title_detail\",live_title_content:\".live_title_content\",live_title_content_split:\".live_title_content_split\",dotdotdot:\".dotdotdot\",news_type_tab:\".news_type_tab\",news_lib:\".news_lib\"},this.dom_class_string={dotdotdot:\"dotdotdot\",live_title_content:\"live-title-content\",live_title_content_split:\"live-title-content-split\",hidden:\"hidden\",metal_news_item_expanded:\"metal-news-item-expanded\",metal_news_item_fixed:\"metal-news-item-fixed\"},this.textSplit(),this.tabBind(),new o.SetQrcode(this.dom_string.scan_code),new r($(this.dom_string.load_more),$(this.dom_string.news_item))}s.prototype.textSplit=function(){var t,e=this;n.isIE8()||(t=$(this.dom_string.dotdotdot).dotdotdot({truncate:\"letter\",wrap:\"letter\",height:\"watch\",watch:!0}).data(\"dotdotdot\")),$(this.dom_string.expandable).on(\"click\",function(){n.isIE8()||t.restore(),$(this).children(e.dom_string.live_title_content_split).addClass(e.dom_class_string.live_title_content).removeClass(e.dom_class_string.live_title_content_split).removeClass(e.dom_class_string.dotdotdot),$(this).parent(e.dom_string.news_item).addClass(e.dom_class_string.metal_news_item_expanded).removeClass(e.dom_class_string.metal_news_item_fixed),$(this).children(e.dom_string.live_title_detail).removeClass(e.dom_class_string.hidden)})},s.prototype.tabBind=function(){var e=this;$(this.dom_string.news_type_tab).on(\"mouseover\",function(){var t=$(this).index();$(e.dom_string.news_type_tab).removeClass(\"active\"),$(this).addClass(\"active\"),$(e.dom_string.news_lib).addClass(\"hidden\").removeClass(\"active\"),$(e.dom_string.news_lib).eq(t).removeClass(\"hidden\").addClass(\"active\")})},i[\"default\"]=s;a.prototype.loadMore=function(){var i=this;this.dom_load_more.length&&this.dom_load_more.on(\"click\",function(){var t=Number(i.dom_load_more.attr(\"data-curindex\"))+1,e=Number(i.dom_load_more.attr(\"data-maxpages\"));i.dom_list_item.each(function(){Number($(this).attr(\"data-pageindex\"))==t&&$(this).removeClass(\"hidden\")}),i.dom_load_more.attr(\"data-curindex\",t),e{for(var e=document.cookie.split(\";\"),i=0;i{if(0==t.day_type){var e=new Date,i=Number(e.getHours()),o=Number(e.getMinutes()),e=e.getDay();if(0!=e&&6!=e){var e=t.trading_time,n=e[1].split(\",\");n.push(e[0]);for(var s=0;s=Number(a[1]))return 1;if(i>Number(a[0])&&i详情:\"+(i||\"通过短信第一时间接收该报价信息\")),o.forEach(function(t){4===t.price_type&&r.dom.productPrice.html(\"价格:\"+(t.price||300)+\"元/年\")}),0!==(t||[]).length?t.forEach(function(t){var e=t.auth_start,e=void 0===e?\"\":e,i=t.auth_end,i=void 0===i?\"\":i,t=t.receiver_phone,o=void 0===t?\"\":t,t=$('
'),n=$('
'),e=(n.text(\"服务时间:\"+e+\" ~ \"+i),$('
')),i=$(''),s=(i.on(\"click\",function(){return r.renewalService(o)}),o.replace(/(\\d{3})\\d*(\\d{4})/,\"$1****$2\"));e.text(\"接收手机:\"+s).append(i),t.append(n).append(e),r.dom.serviceExist.append(t),a.dom.serviceExist.show()}):a.dom.serviceExist.hide())}}),a.dom.modal.show()},this.hide=function(){a.dom.receiverPhone.val(\"\"),a.dom.modal.hide()},this.bind()}o.prototype.bind=function(){var e=this;this.dom.close.on(\"click\",function(){e.hide(),e.dom.serviceErrorMsg.text(\"\")}),this.dom.notice1.on(\"click\",function(){e.dom.notice1.hide(),e.dom.notice2.show(),e.notice_checked=!0}),this.dom.notice2.on(\"click\",function(){e.dom.notice2.hide(),e.dom.notice1.show(),e.notice_checked=!1}),this.dom.openBtn.on(\"click\",function(){var t=e.dom.receiverPhone.val();\"\"===t?e.dom.serviceErrorMsg.text(\"请输入手机号\"):/^[1][3,4,5,6,7,8][0-9]{9}$/.test(t)?e.renewalService(t):e.dom.serviceErrorMsg.text(\"请输入正确格式的手机号\")})},i[\"default\"]=o},{\"@smm/cookie\":1}],73:[function(t,e,i){var o=t(\"@smm/uuid\"),n=t(\"@smm/cookie\"),s=t(\"./area_code/area_code\"),r=t(\"./NECaptcha\"),a=t(\"../../public/client\"),l=t(\"../../public/util\"),h=\"SMM_device_id\",c=\"网络错误\",d=(u.prototype.bind=function(){var e=this,i=this;this.dom.input_phone.on(\"change\",function(){e.form.phone=$(e.dom.input_phone).val(),e.neCap.validateID&&e.neCap.captchaID&&e.neCap.refresh()}),this.dom.input_phone.on(\"blur\",function(){e.validatePhone()}),this.dom.input_captcha.on(\"blur\",function(){e.validateCaptcha()}),this.dom.checkbox_remember.on(\"change\",function(){i.props.isRememberUser.set(this.checked)}),this.dom.input_captcha.on(\"change\",function(t){e.form.captcha=e.dom.input_captcha.val()}),this.dom.input_captcha.on(\"keydown\",function(t){\"Enter\"==t.key&&(i.form.captcha=i.dom.input_captcha.val(),i.submit())}),this.dom.btn_captcha.on(\"click\",function(t){e.validatePhone()&&null==e.ticker&&e.neCap.instance.popUp()}),this.dom.checkbox_login_protocol.on(\"change\",function(){i.form.protocol=this.checked}),this.dom.btn_submit.on(\"click\",function(){e.submit()})},u.prototype.validatePhone=function(){var t=\"\";return 0===this.form.phone.length?(this.showTips(!0,this.dom.error_phone,t=\"手机号码不得为空\"),!1):(this.showTips(!1,this.dom.error_phone,t),!0)},u.prototype.validateCaptcha=function(){var t=\"\";return\"\"==this.dom.input_captcha.val()?(this.showTips(!0,this.dom.error_captcha,t=\"验证码不能为空\"),!1):(this.showTips(!1,this.dom.error_captcha,t),!0)},u.prototype.validateProtocol=function(){var t=\"\";return\"checked\"!==this.dom.checkbox_login_protocol.attr(\"checked\")?(this.showTips(!0,this.dom.error_login,t=\"请先同意服务条款\"),!1):(this.showTips(!1,this.dom.error_login,t),!0)},u.prototype.showTips=function(t,e,i){t?e.removeClass(\"hidden\"):e.addClass(\"hidden\"),e.text(i)},u.prototype.setCaptchaBtnState=function(t){var e=this,i=t,o=$(this.dom.btn_captcha);o.addClass(\"disabled\"),o.text(i+\"s重新发送\"),this.ticker=window.setInterval(function(){1<=--i?o.text(i+\"s重新发送\"):(o.removeClass(\"disabled\"),o.text(\"发送验证码\"),window.clearInterval(e.ticker),e.ticker=void 0)},1e3)},u.prototype.getCaptcha=function(){var e,i=this;null==this.ticker&&this.validatePhone()&&(e=this,$.ajax(VCodeCenter+\"/v3/send_sms\",{method:\"POST\",data:{cellphone:this.form.area_code+\"-\"+this.form.phone,code_type:\"vcode_login\",validate:this.neCap.validateID,captcha:this.neCap.captchaID},success:function(t){0==t.code?(i.setCaptchaBtnState(t.data.count_down),i.neCap.refresh(),i.showTips(!1,i.dom.error_captcha,\"\")):i.showTips(!0,e.dom.error_captcha,t.msg)},error:function(){i.showTips(!0,e.dom.error_login,c)}}))},u.prototype.submit=function(){var t,e,i=this;this.validatePhone()&&this.validateCaptcha()&&this.validateProtocol()&&!this.state.loading&&(this.setLoading(!0),(t=n[\"default\"].Get(\"SMM_device_id\").unWrapOr(\"\"))||(t=o.UUID.Generate(),n[\"default\"].Set(\"SMM_device_id\",t,7)),e=a.getBrowserInfo(window.navigator.userAgent),$.ajax(UserCenter+\"/v3/login_by_vcode\",{method:\"POST\",data:{cellphone:this.form.area_code+\"-\"+this.form.phone,code:this.form.captcha,source:\"www\",user_agent:e,device_id:t,referrer:this.props.referer_url,oa:\"01xwb\"},success:function(t){0!=t.code?(i.showTips(!0,i.dom.error_login,t.msg),i.setLoading(!1)):(i.showTips(!1,i.dom.error_login,\"\"),i.props.isRememberUser.get()?n[\"default\"].Set(n[\"default\"].DefaultKey,t.data.token,90):n[\"default\"].SetSession(n[\"default\"].DefaultKey,t.data.token),setTimeout(function(){1==t.data.is_register?l.openNewTab(decodeURIComponent(site_url_user+\"/register/step2?referer=\"+i.props.referer_url)):window.location.href=decodeURIComponent(i.props.referer_url),i.setLoading(!1)},1e3))},error:function(){i.showTips(!0,i.dom.error_login,c),i.setLoading(!1)}}))},u.container_class=\".login_body_sms\",u);function u(t){var e=this;this.props=t,this.ticker=void 0,this.state={loading:!1},this.neCap=new r.MyNECaptcha(\"#NECaptcha-login\",function(){e.getCaptcha()}),this.form={area_code:\"86\",phone:\"\",captcha:\"\",protocol:!0},this.dom={input_phone:$(u.container_class).find(\".input_phone\"),input_captcha:$(u.container_class).find(\".input_captcha\"),checkbox_remember:$(u.container_class).find(\".checkbox_remember\"),checkbox_login_protocol:$(u.container_class).find(\".checkbox_agree\"),error_captcha:$(u.container_class).find(\".error_captcha\"),error_phone:$(u.container_class).find(\".error_phone\"),error_login:$(u.container_class).find(\".error_login\"),btn_captcha:$(u.container_class).find(\".btn_captcha\"),btn_submit:$(u.container_class).find(\".login_submit\"),btn_submit_loading:$(u.container_class).find(\".login_submit_loading\")},this.setLoading=function(t){(e.state.loading=t)?(e.dom.btn_submit_loading.show(),e.dom.btn_submit.hide()):(e.dom.btn_submit_loading.hide(),e.dom.btn_submit.show())},this.reset=function(){e.form={phone:\"\",captcha:\"\",area_code:\"86\",protocol:!0},e.dom.input_phone.val(\"\"),e.areaCodeModule.reset(),e.showTips(!1,e.dom.error_phone,\"\"),e.dom.input_captcha.val(\"\"),e.showTips(!1,e.dom.error_captcha,\"\"),e.props.isRememberUser.get()?e.dom.checkbox_remember.attr(\"checked\",\"checked\"):e.dom.checkbox_remember.removeAttr(\"checked\"),e.showTips(!1,e.dom.error_login,\"\")},this.areaCodeModule=new s.AreaCode(function(t){e.form.area_code=t}),0!=$(\"#NECaptcha-login\").length&&this.neCap.init(),this.bind()}f.prototype.validateAccount=function(){var t=\"\";return 0===this.form.account.length?(this.showTips(!0,this.dom.error_account,t=\"账号不得为空\"),!1):(this.showTips(!1,this.dom.error_account,t),!0)},f.prototype.validatePassword=function(){var t=\"\";return\"\"==this.dom.input_password.val()?(this.showTips(!0,this.dom.error_password,t=\"密码不能为空\"),!1):(this.showTips(!1,this.dom.error_password,t),!0)},f.prototype.showTips=function(t,e,i){t?e.removeClass(\"hidden\"):e.addClass(\"hidden\"),e.text(i)},f.container_class=\".login_body_pwd\";var p=f;function f(t){var i=this;this.props=t,this.state={loading:!1},this.dom={container:$(f.container_class),input_password:$(f.container_class).find(\".input_password\"),input_account:$(f.container_class).find(\".input_account\"),checkbox_remember:$(f.container_class).find(\".checkbox_remember\"),login_submit:$(f.container_class).find(\".login_submit\"),login_submit_loading:$(f.container_class).find(\".login_submit_loading\"),error_password:$(f.container_class).find(\".error_password\"),error_account:$(f.container_class).find(\".error_account\"),error_login:$(f.container_class).find(\".error_login\"),href_forget_password:$(f.container_class).find(\".forget_password\"),href_register:$(f.container_class).find(\".redirect_register\")},this.form={account:\"\",password:\"\"},this.bind=function(){var e=i;i.dom.input_account.on(\"change\",function(){i.form.account=i.dom.input_account.val()}),i.dom.input_password.on(\"change\",function(){i.form.password=i.dom.input_password.val()}),i.dom.input_password.on(\"keydown\",function(t){\"Enter\"==t.key&&(e.form.password=e.dom.input_password.val(),e.submit())}),i.dom.input_account.on(\"blur\",function(){i.validateAccount()}),i.dom.input_password.on(\"blur\",function(){i.validatePassword()}),i.dom.checkbox_remember.on(\"change\",function(){e.props.isRememberUser.set(this.checked)}),i.dom.login_submit.on(\"click\",function(){i.submit()}),i.dom.href_forget_password.on(\"click\",function(){window.location.href=site_url_user+\"/forget_password?referer=\"+decodeURIComponent(i.props.referer_url)}),i.dom.href_register.on(\"click\",function(){window.location.href=site_url_user+\"/register?referer=\"+decodeURIComponent(i.props.referer_url)})},this.setLoading=function(t){(i.state.loading=t)?(i.dom.login_submit_loading.show(),i.dom.login_submit.hide()):(i.dom.login_submit_loading.hide(),i.dom.login_submit.show())},this.submit=function(){var t,e;i.validateAccount()&&i.validatePassword()&&!i.state.loading&&(i.setLoading(!0),(t=n[\"default\"].Get(h).unWrapOr(\"\"))||(t=o.UUID.Generate(),n[\"default\"].Set(h,t,7)),e=a.getBrowserInfo(window.navigator.userAgent),$.ajax(UserCenter+\"/4.0/auth\",{method:\"POST\",data:{user_name:i.form.account.trim(),password:$.md5(i.form.password),source:\"www\",device_id:t,source_link:i.props.referer_url||document.referrer||\"\",user_agent:e,oa:\"01xwb\"},success:function(t){0!=t.code?(i.showTips(!0,i.dom.error_login,t.msg),i.setLoading(!1)):(i.showTips(!1,i.dom.error_login,\"\"),i.props.isRememberUser.get()?n[\"default\"].Set(n[\"default\"].DefaultKey,t.data.token,90):n[\"default\"].SetSession(n[\"default\"].DefaultKey,t.data.token),setTimeout(function(){window.location.href=decodeURIComponent(i.props.referer_url),i.setLoading(!1)},1e3))},error:function(){i.showTips(!0,i.dom.error_login,c),i.setLoading(!1)}}))},this.reset=function(){i.form.account=\"\",i.form.password=\"\",i.dom.input_account.val(\"\"),i.showTips(!1,i.dom.error_account,\"\"),i.dom.input_password.val(\"\"),i.showTips(!1,i.dom.error_password,\"\"),i.props.isRememberUser.get()?i.dom.checkbox_remember.attr(\"checked\",\"checked\"):i.dom.checkbox_remember.removeAttr(\"checked\"),i.showTips(!1,i.dom.error_login,\"\")},this.props.referer_url=t.referer_url||window.location.href,this.bind()}i.Login=function(){var i=this,t=(this.tab_active_class=\"tab-active\",this.isRememberUser=!0,this.state={visible:!1},this.dom={module:$(\"#login-module\"),tab:$(\".login_header_tab\"),login_body_sms:$(\".login_body_sms\"),login_body_pwd:$(\".login_body_pwd\"),icon_close:$(\".login_close\")},this.bind=function(){var e=i;i.dom.tab.on(\"click\",function(){var t=$(this).attr(\"data-name\");e.toggleShow(t)}),i.dom.icon_close.on(\"click\",function(){i.hide()})},this.toggleShow=function(t){function e(t){i.dom.tab.removeClass(i.tab_active_class),i.dom.tab.filter(\"[data-name='\"+t+\"']\").addClass(i.tab_active_class)}\"sms\"==t?(i.dom.login_body_pwd.hide(),i.dom.login_body_sms.show(),i.sms_login_form.reset(),e(t)):\"pwd\"==t?(i.dom.login_body_pwd.show(),i.dom.login_body_sms.hide(),i.pwd_login_form.reset(),e(t)):console.error(\"无效的的tabName\")},this.show=function(){i.state.visible||(i.sms_login_form.reset(),i.pwd_login_form.reset(),i.dom.module.show(),i.state.visible=!0)},this.hide=function(){i.state.visible&&(i.dom.module.hide(),i.state.visible=!1)},this.bind(),{get:function(){return i.isRememberUser},set:function(t){return i.isRememberUser=t}});this.sms_login_form=new d({referer_url:window.location.href,isRememberUser:t}),this.pwd_login_form=new p({referer_url:window.location.href,isRememberUser:t})}},{\"../../public/client\":187,\"../../public/util\":189,\"./NECaptcha\":71,\"./area_code/area_code\":72,\"@smm/cookie\":1,\"@smm/uuid\":26}],187:[function(t,e,i){i.getBrowserInfo=function(t){var t=t?t.toLowerCase():\"\",e=/firefox\\/[\\d.]+/gi,i=/chrome\\/[\\d.]+/gi,o=/360se\\/[\\d.]+/gi,n=/metasr\\s[\\d.]+/gi,s=/qqbrowser\\/[\\d.]+/gi,r=/safari\\/[\\d.]+/gi;if(0=i.length?i.now=0:i.now+=1,i.dom.find(\"a\").fadeOut(1e3),i.dom.find(\"a\").eq(i.now).fadeIn(1e3)},6e3)},i[\"default\"]=o},{}],45:[function(t,e,i){var o=\".metal_sub_category_list_ul\";i.Nav=function(){$(\".component-hq_nav .open_nav_item\").each(function(){var e=$(this).find(o).outerHeight();$(this).find(o).css({maxHeight:0,visibility:\"none\"}),$(this).on(\"mouseover\",function(t){$(this).find(o).css({maxHeight:e,visibility:\"visible\"})}),$(this).on(\"mouseout\",function(t){$(this).find(o).css({maxHeight:0,visibility:\"none\"})})})}},{}],44:[function(t,e,i){function o(){this._init()}o.prototype._init=function(){$(\"#search_btn\").on(\"click\",function(){var t=$(\"#search_option option:selected\").val(),e=$(\"#bdcsMain\").val().toString(),e=$.trim(e).replace(/\\s+/g,\"+\");\"news\"==t?e?window.open(\"https://news.smm.cn/search?keywords=\"+encodeURIComponent(e)+\"&page=1&field=3\",\"_blank\"):window.open(\"https://news.smm.cn\"):\"club\"==t&&(e?window.open(\"https://b.smm.cn/search/?type=info&keywords=\"+encodeURIComponent(e),\"_blank\"):window.open(\"https://b.smm.cn\"))}),$(\"#bdcsMain\").on(\"keypress\",function(t){13==(window.event||t).keyCode&&$(\"#search_btn\").trigger(\"click\")})},o.prototype.openSearchOption=function(){$(\"#search_option\").removeAttr(\"disabled\")},o.prototype.disableSearchOption=function(){$(\"#search_option\").attr(\"disabled\",\"disabled\")},i[\"default\"]=o},{}],41:[function(t,e,i){var o=t(\"@smm/sa/dist/sa/sa\");function n(){this.jQuery=jQuery,this.checkMirror()}n.prototype.logFn=function(){o.DefaultSa.send_log_events()},n.prototype.traceHref=function(){var t=[[\"news\",\"资讯\"],[\"events\",\"会展\"],[\"hq\",\"现货行情\"],[\"celue\",\"报告\"],[\"data\",\"数据库\"],[\"price\",\"历史价格\"],[\"kb\",\"数据看板\"],[\"b\",\"商机\"],[\"pay\",\"支付\"],[\"apd\",\"安票达\"],[\"shop\",\"商铺\"],[\"map\",\"产业地图\"],[\"ahd\",\"安汇达\"],[\"cpk\",\"产品库\"],[\"rss\",\"RSS\"],[\"hn\",\"华南\"],[\"gg\",\"公告\"],[\"app\",\"掌上有色\"],[\"module_spot\",\"SMM价格\"],[\"module_events\",\"有色会展\"],[\"module_today\",\"今日聚焦\"],[\"module_live\",\"快讯\"],[\"module_zone\",\"人人看\"],[\"module_apd\",\"安票达\"],[\"module_kb\",\"有色看板\"],[\"module_news\",\"有色资讯\"],[\"module_b\",\"商机模块\"],[\"module_expert\",\"有色专家\"]];window.setTimeout(function(){t.map(function(t){0!=$(\".href_label_\"+t[0]).length&&$(document).on(\"click\",\".href_label_\"+t[0],function(){o.DefinedSa(\"e\",function(){},1e4,{name:\"首页-\"+t[1]})})})},0)},n.prototype.checkMirror=function(){var t=window.location.hostname.split(\".\");\".smm.cn\"!=\".\"+t[1]+\".\"+t[2]&&(alert(window.location.host+\":为非法镜像网站,为了您的安全正在带您回到原网站\"),location.href=\"http://www.smm.cn\"+window.location.pathname)},i[\"default\"]=n},{\"@smm/sa/dist/sa/sa\":24}],40:[function(t,e,i){i[\"default\"]=function(){this.jQuery=jQuery,$(\".bottom .link-qrode\").click(function(){$(\".bottom .qrcode\").toggle()})}},{}],38:[function(t,e,i){var o=t(\"../../smm_components/src/header/header\");i[\"default\"]=function(){o.Header.initHeader()}},{\"../../smm_components/src/header/header\":84}],84:[function(t,e,i){var o,s=this&&this.__values||function(t){var e=\"function\"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return{value:(t=t&&i>=t.length?void 0:t)&&t[i++],done:!t}}}},r=t(\"../utils/auth\"),a=t(\"@smm/header/dist/headerhelper/headerhelper\"),l=jQuery,t=o=o||{};function n(t){var e,i,t=t||[l(\".smm-page-header .login_url\"),l(\" .smm-page-header .register_url\")];try{for(var o=s(t),n=o.next();!n.done;n=o.next())(t=>{var e=window.location.href,i=t.attr(\"data_url\")+\"?referer=\"+encodeURIComponent(e),e=t.attr(\"data_url\").lastIndexOf(\"/\");\"login\"===t.attr(\"data_url\").substring(e+1)?t.click(function(){window.location.href=i}):t.click(function(){window.open(i)})})(n.value)}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o[\"return\"])&&i.call(o)}finally{if(e)throw e.error}}}function h(t){(t||l(\".user_logout\")).unbind(\"click\").bind(\"click\",function(){r.smmAuth.Cookie.del(r.smmAuth.Cookie.DefaultKey),window.location.reload()})}t.authStatus=n,t.LoginOut=h,d.prototype.init=function(){var e=this,t=this,i=function(){var t='

站内消息通知

    查看全部消息>>
    ',t=(e.target.append(t),l(\".smm-page-header .messagebox\").outerHeight());l(\".smm-page-header .messagebox-new\").css({top:t}),o()},o=function(){l.ajax({url:a.HeaderMessage.returnURL().urls.msg_center_url+\"/messagesnew\",headers:{\"X-API-KEY\":r.smmAuth.Cookie.get(r.smmAuth.Cookie.DefaultKey)},method:\"get\",data:{msg_type:a.HeaderMessage.RequestMessges},dataType:\"jsonp\",success:function(t){var i;0==t.code&&(l(\".smm-page-header .newbox\").empty(),t=a.HeaderMessage.parseMsgInfo(t.data.message_list),i=\"\",t&&t.forEach(function(t,e){i+='\\n
  • \\n \\n

    \"+t.text+\"

    \\n \"+t.type+\"\\n \"+t.time+\"\\n
    \\n
  • \"}),l(\".smm-page-header .newbox\").append(i))}})},n=function(){var i=t;l.ajax({url:a.HeaderMessage.returnURL().urls.msg_center_url+\"/unread\",headers:{\"X-API-KEY\":r.smmAuth.Cookie.get(r.smmAuth.Cookie.DefaultKey)},method:\"get\",dataType:\"jsonp\",success:function(t){if(0==t.code){var t=a.HeaderMessage.parseUnReadNum(t.data),e=t.unreadCount,t=t.unreadCountString;if(i.msgCallback)return void i.msgCallback(e);0'+e.coming+\"\"),e.past&&$(\".all-event-items\").replaceWith('
    '+e.past+\"
    \"),t.length&&t.forEach(function(t){$(\".\"+t).hide()})},l.prototype.scrollToLoad=function(){var o=1,n=this,t=-1!=window.location.pathname.indexOf(\"inspection\");$(window).scroll(function(){var e,i;$(window).scrollTop()+$(window).height()+1>$(document).height()&&(e=n.SMMIndex+\"/event/api/post/list?type=\"+(t?\"2\":\"1\"),i=n.getFieldsValue(),Object.keys(i).length&&Object.keys(i).forEach(function(t){\"page\"===t?o=i.page:e+=\"&\"+t+\"=\"+i[t]}),o+=1,n.setFieldsValue(r({status:i.status||\"\",type_list:i.type_list||\"\",location_tbd:i.location_tbd||\"\"},i,{page:o})),e+=\"&page=\"+o,$.ajax(e,{method:\"GET\",success:function(t){0===t.code&&t.data&&($(\".all-event-items\").append(t.data),n.initEnroll(),n.initTimeLine())},error:function(){pop.alert({title:\"列表请求失败\",msg:\"网络错误\",icon:\"fa fa-3x text-danger fa-times-circle-o\"})}}))})},l);function l(){var i=n.call(this)||this;return i.dom={guest:$(\".guest\"),add_calendar:$(\".add_calendar\"),detail_href:$(\".detail_href\"),enrollClick:$(\".enroll_click\"),event_list:$(\".all-event-items\"),hot_label:$(\".hot-label\"),past_label:$(\".past-label\"),loading:$(\".loading\")},i.ClubCenter=$(\".ClubCenter\").val()||\"\",i.MeetingCenter=$(\".MeetingCenter\").val()||\"\",i.UserID=$(\".UserID\").val()||\"\",i.UserSite=$(\".UserSite\").val()||\"\",i.MSite=$(\".MSite\").val()||\"\",i.SMMIndex=$(\".SMMIndex\").val()||\"\",i.dom_string={guest_float_window:\".guest_float_window\"},i.fadetime=500,i.listenWindowResizeChange=function(){var e=document.documentElement.clientWidth;window.addEventListener(\"resize\",i.throttle(function(){var t=document.documentElement.clientWidth;e!==t?(i.searchLoad({}),i.initDomSelectValue()):e=t,e!==t&&(e=t)},500))},i.listenSearchChange=function(){var e=i;i.dom_search.from.on(\"apply.daterangepicker change\",function(){var t=e.getFieldsValue();i.searchLoad(t)})},i.initEnroll=function(t){(t||i.dom.enrollClick).on(\"click\",function(t){var e=$(t.target).find(\".event_id\").val()||\"\",t=\"1\"===$(t.target).find(\".meetings_type\").val()||!1,i=-1!=location.host.indexOf(\"test\")?\"test\":\"\";window.open(\"https://\"+i+\"meeting.smm.cn/\"+e+\"/join?from=\"+(t?\"会展首页-会展列表\":\"会展首页-考察团列表\"))})},i.initTimeLine(),i.initFloatWindow(),i.initAddCalendar(),i.initEnroll(),i.scrollToLoad(),i.searchForm(),i.listenWindowResizeChange(),i.listenSearchChange(),i}i[\"default\"]=t},{\"../../../public/util\":189,\"../search/search\":39}],39:[function(t,e,i){var s=this&&this.__assign||Object.assign||function(t){for(var e,i=1,o=arguments.length;i>>0;if(\"function\"!=typeof t)throw new TypeError;for(var o,n=[],s=arguments[1],r=0;r>>0,i=Number(arguments[1])||0;for((i=i<0?Math.ceil(i):Math.floor(i))<0&&(i+=e);i{var t,e=navigator.userAgent,i={Chrome:/Chrome\\/(\\S+)/,Firefox:/Firefox\\/(\\S+)/,MSIE:/MSIE (\\S+);/,Opera:/Opera\\/(\\S+)/,Safari:/Version\\/(\\S+) Safari\\//};for(t in i){var o=e.match(i[t]);if(o)return t+\" \"+o[1]}return\"Unknown\"})()},success:function(t){o.dom.feedback_modal.modal(\"hide\"),$(\"#success_modal\").modal(),$(document.body).toggleClass(\"modal-open1\"),o.dom.upload_imgages_arr=[],$(\".feedback_textarea\").val(\"\"),$(\"#feedback_nick_name\").val(\"\"),$(\"#feedback_user_phone\").val(\"\")}})):($(\"#feedback_user_phone\").css({border:\"1px solid #D7000F\"}),$(\".user_tel_err\").text(\"请检查手机号是否输入正确\").show()):($(\"#feedback_user_phone\").css({border:\"1px solid #D7000F\"}),$(\".user_tel_err\").text(\"请输入您的手机号码\").show())):($(\".feedback_textarea_box\").css({border:\"1px solid #D7000F\"}),$(\".textarea_err\").show())})},this.textareaNum=function(){$(\".feedback_textarea\").on(\"input\",function(){var t=$(this).val().length;t?$(\".text_number\").text(\"还可以输入(\"+t+\"/500)个字\"):$(\".text_number\").text(\"500个字\")})},this.fixedToolBar=function(){function t(){var t=$(document).height()-($(window).scrollTop()+$(window).height()),e=o.footerHeight-t;o.content?i.css({left:o.contentPosition+o.contentWidth+20,bottom:t<=o.footerHeight?20+e:20,display:\"block\",opacity:1}):i.css({right:24,bottom:t<=o.footerHeight?20+e:20,display:\"block\",opacity:1})}var i=$(\".smm_page_backtotop\");$(window).on(\"scroll\",function(){t()}),$(window).on(\"resize\",function(){o.content&&(o.contentPosition=$(o.content).offset().left),t()}),t()},this.scrollToTop=function(){n.dom.return_top.on(\"click\",function(){$(\"html, body\").animate({scrollTop:0},500)})},this.render_feedback_image=function(){var e=\"\";n.dom.upload_imgages_arr.forEach(function(t){e+='
    \\n \\n \\n
    '}),$(\".show_images\").html(e),3<=n.dom.upload_imgages_arr.length?$(\"#upload_area\").hide():$(\"#upload_area\").show(),$(\".image_number\").text(\"(\"+n.dom.upload_imgages_arr.length+\"/3)\")},this.delete_icon=function(){var i=n;$(\".show_images\").on(\"click\",\".delete_icon\",function(){var e=$(this).data(\"src\"),t=i.dom.upload_imgages_arr.filter(function(t){return t!==e});i.dom.upload_imgages_arr=t,i.render_feedback_image()})},this.feedback=function(){var i=n;$(\"#success_modal\").on(\"hidden.bs.modal\",function(){$(document.body).toggleClass(\"modal-open1\")}),n.dom.feedback.on(\"click\",function(){var t=$(\"#feedback_user_phone\").data(\"tel\");t&&$(\"#feedback_user_phone\").val(t).trigger(\"input\"),n.dom.feedback_modal.modal(\"show\")}),n.dom.upload_feedback_image.on(\"change\",function(){var t,e=this.files[0];e.type.match(/image\\/.*/)?3<=i.dom.upload_imgages_arr.length?alert(\"最多只能上传三张图片\"):((t=new FormData).append(\"upload\",e),$.ajax({url:\"https://\"+s()+\"platform.smm.cn/appcenter/upload_image_v2\",type:\"POST\",data:t,processData:!1,contentType:!1,success:function(t){i.dom.upload_imgages_arr.push(t.url),i.render_feedback_image()},error:function(t,e,i){console.error(\"上传失败\")}})):alert(\"只能上传图片文件\")}),n.dom.feedback_modal.on(\"hidden.bs.modal\",function(){i.dom.upload_imgages_arr=[],i.render_feedback_image(),$(\".feedback_textarea_box\").css({border:\"1px solid #D7D8DB\"}),$(\".textarea_err\").hide(),$(\"#feedback_user_phone\").css({border:\"1px solid #D7D8DB\"}),$(\".user_tel_err\").hide(),$(\".feedback_textarea\").val(\"\"),$(\"#feedback_nick_name\").val(\"\")}),$(\".success_modal_ok\").on(\"click\",function(){window.location.reload()})},t?(o.content=t,o.contentPosition=$(t).offset().left,o.contentWidth=$(t).width()):o.content=null,e&&(o.footerClass=$(e),o.footerHeight=$(e).height()),this.fixedToolBar(),this.scrollToTop(),this.feedback(),this.delete_icon(),this.textareaNum(),this.submitForm(),$(\"#feedback_modal\").modal({show:!1,keyboard:!1,backdrop:\"static\"}),$(\"#success_modal\").modal({show:!1,keyboard:!1,backdrop:\"static\"})}i[\"default\"]=t},{\"../../utils/auth\":100}],100:[function(t,e,i){var o,n,s,r,h=o=o||{};function a(){this.isLogin=!1,this.isVip=!1,this.isLyVip=!1,this.isZXKDVip=!1,this.userInfo=d.decode(),this.userInfo&&(this.isLogin=!0,this.isVip=this._isVip(),this.isLyVip=this._isLy(),this.isZXKDVip=this._isZX())}(r=n=n||{})[r.Ordinary=1]=\"Ordinary\",r[r.Senior=2]=\"Senior\",(r=s=s||{})[r.Ordinary=1]=\"Ordinary\",r[r.Senior=2]=\"Senior\",a.prototype._isVip=function(){return!!(this.userInfo.user_type>=n.Ordinary&&this.userInfo.end_time>(new Date).getTime()/1e3)},a.prototype._isLy=function(){return!!(this.userInfo.ly_user_type>=s.Ordinary&&this.userInfo.ly_end_time>(new Date).getTime()/1e3)},a.prototype._isZX=function(){return!!(this.userInfo.zx_user_type>=s.Ordinary&&this.userInfo.zx_end_time>(new Date).getTime()/1e3)},a.prototype.name=function(){if(this.isLogin)return this.userInfo.user_name||this.userInfo.cellphone||this.userInfo.email},h.userInfo=a,c.get=function(t){var t=new RegExp(\"(^| )\"+t+\"=([^;]*)(;|$)\");return(t=document.cookie.match(t))?t[2]:null},c.set=function(t,e,i,o,n){t&&(t=t+\"=\"+encodeURIComponent(e),\"number\"==typeof i&&((e=new Date).setTime(e.getTime()+24*i*60*60*1e3),t+=\";expires=\"+e.toUTCString()),t=t+\";domain=\"+(o||c.DOMAIN)+\";path=\"+(n||c.PATH),document.cookie=t)},c.del=function(t){c.set(t,\"\",-1)},c.DOMAIN=\".smm.cn\",c.PATH=\"/\",c.DefaultKey=\"SMM_auth_token\";var l=c;function c(){}h.Cookie=l,u.decode=function(){var t=l.get(l.DefaultKey);if(!t||0==t.length)return null;for(var e=t.split(\".\")[1],i=((e=(e=e.replace(\"-\",\"+\")).replace(\"_\",\"/\")).length,0);i++;)e+=\"=\";t=h.base64.decode(e).replace(/\\n$/,\"\").replace(/[^{}\":,.@\\w\\s\\u4e00-\\u9eff]/gi,\"\");return JSON.parse(t)};var d=u;function u(){}h.JWT=d,h.base64={_keyStr:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",encode:function(t){var e,i,o,n,s,r,a=\"\",l=0;for(t=h.base64._utf8_encode(t);l>2,n=(3&e)<<4|(e=t.charCodeAt(l++))>>4,s=(15&e)<<2|(i=t.charCodeAt(l++))>>6,r=63&i,isNaN(e)?s=r=64:isNaN(i)&&(r=64),a=a+this._keyStr.charAt(o)+this._keyStr.charAt(n)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return a},decode:function(t){var e,i,o,n,s,r,a=\"\",l=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,\"\");l>2,i=(3&s)<<6|(r=this._keyStr.indexOf(t.charAt(l++))),a+=String.fromCharCode(o<<2|n>>4),64!=s&&(a+=String.fromCharCode(e)),64!=r&&(a+=String.fromCharCode(i));return a=h.base64._utf8_decode(a)},_utf8_encode:function(t){t=t.replace(/rn/g,\"n\");for(var e=\"\",i=0;i>6|192))+String.fromCharCode(63&o|128):(e=(e+=String.fromCharCode(o>>12|224))+String.fromCharCode(o>>6&63|128))+String.fromCharCode(63&o|128)}return e},_utf8_decode:function(t){for(var e,i,o,n=\"\",s=0;s \"),a.has_zoom_in=!0,$(\"body\").unbind().on(\"click\",function(){return a.has_zoom_in&&(a._zoom_out(t),$(this).unbind()),!1})},a._zoom_out=function(t){$(t).removeClass(a.img_zoom_in),$(\".\"+a.mask).remove(),a.has_zoom_in=!1},a.prototype.bindZoom=function(){$(this.img).on(\"click\",function(){var t=this,e=$(t).attr(\"data-src\");return a.has_zoom_in?($(t).attr(\"src\",e+\"?imageView2/1/w/100/h/100/q/100\"),$(\"body\").not($(t)).off(\"click\"),a._zoom_out(t)):($(t).attr(\"src\",e),a._zoom_in(t)),!1})},a.img_zoom_in=\"img-zoom-in\",a.mask=\"whiteboard\",a.has_zoom_in=!1,i.ZoomImage=a,l.query=function(t){t=new RegExp(\"(^|&)\"+t+\"=([^&]*)(&|$)\"),t=window.location.search.substr(1).match(t);return null!=t?unescape(t[2]):null},i.URL=l;h.setScroll=function(t,e,i){function o(t){return s*u.length>r?s*u.length*t:r}var n,s,r,a,l,h,c,d=0,u=$(t).find(e);return s=i.isDirectionColumn?(r=$(t).outerHeight(!0),$(e).outerHeight(!0)):(r=$(t).outerWidth(!0),$(e).outerWidth(!0)),n=u.length,r\").addClass(\"block_scroll\").addClass(\"clearfix\").html(e),i.isDirectionColumn?e.css({display:\"block\",height:o(1),position:\"absolute\"}):e.css({display:\"inline-block\",width:o(1),position:\"absolute\"}),a=e.clone().css({left:0}),l=e.clone().css({left:o(2)}),e.css({left:o(1)}),(h=$(\"
    \").addClass(\"block_scroll_wrap\").addClass(\"clearfix\").css({display:\"block\",position:\"absolute\",top:\"0\"})).append(a).append(e).append(l),c=-o(1),i.isDirectionColumn?h.css({top:c,height:3*r}):h.css({width:3*r,left:c}),$(t).html(\"\").append(h)),function(t){Math.abs(d)>n&&i.isLoop&&(i.isDirectionColumn?$(h).css({top:c}):$(h).css({left:c}),d=0),t?d++:d--,i.isDirectionColumn?$(h).animate({top:c+-s*d+\"px\"},\"slow\"):$(h).animate({left:c+-s*d+\"px\"},\"slow\")}};function h(){}i.openNewTab=function(t){var t=$(\"\").get(0),e=document.createEvent(\"MouseEvents\");e.initEvent(\"click\",!0,!0),t.dispatchEvent(e)}},{}],29:[function(t,e,i){function o(){this.init()}o.prototype.init=function(){$(\".ads-dl-detail\").find(\"em\").click(function(){$(this).parent().parent().hide()})},i[\"default\"]=o},{}],27:[function(t,e,i){var o,n;o=\"undefined\"!=typeof window?window:this,n=function(t){var v,z,R,B,N,G,H,W,X,F,Y,V,j,L,U,K,A,q,Z,Q,J,I,tt,et,it,ot,nt,st,rt,at,lt,ht,ct,dt,ut,pt,ft,mt,gt,C,vt,xt,yt,bt,wt,_t,kt,Mt,St,At,Ct,Tt,Pt,Dt,Ot,Lt,It,Et,$t,zt,T,Rt,Bt,Nt,Gt,Ht,Wt,Xt,Ft,Yt,Vt,jt,Ut,Kt,qt,Zt,Qt,Jt,o,te,ee,ie,oe,ne,se,re,ae,le,he,ce,de;function ue(){var a,t=o.defaultOptions.global,l=t.useUTC,e=l?\"getUTC\":\"get\",i=l?\"setUTC\":\"set\";o.Date=a=t.Date||ne.Date,a.hcTimezoneOffset=l&&t.timezoneOffset,a.hcGetTimezoneOffset=(()=>{var e=o.defaultOptions.global,i=ne.moment;if(e.timezone){if(i)return function(t){return-i.tz(t,e.timezone).utcOffset()};o.error(25)}return e.useUTC&&e.getTimezoneOffset})(),a.hcMakeTime=function(t,e,i,o,n,s){var r;return l?(r=a.UTC.apply(0,arguments),r+=ee(r)):r=new a(t,e,oe(i,1),oe(o,0),oe(n,0),oe(s,0)).getTime(),r},te(\"Minutes Hours Day Date Month FullYear\".split(\" \"),function(t){a[\"hcGet\"+t]=e+t}),te(\"Milliseconds Seconds Minutes Hours Date Month FullYear\".split(\" \"),function(t){a[\"hcSet\"+t]=i+t})}d=window,a=d.document,E=d.navigator&&d.navigator.userAgent||\"\",l=a&&a.createElementNS&&!!a.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,r=/(edge|msie|trident)/i.test(E)&&!window.opera,s=!l,O=/Firefox/.test(E),$=O&&parseInt(E.split(\"Firefox/\")[1],10)<4,t=d.Highcharts?d.Highcharts.error(16,!0):{product:\"Highstock\",version:\"5.0.14\",deg2rad:2*Math.PI/360,doc:a,hasBidiBug:$,hasTouch:a&&void 0!==a.documentElement.ontouchstart,isMS:r,isWebKit:/AppleWebKit/.test(E),isFirefox:O,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(E),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:l,vml:s,win:d,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},charts:[]},B=[],N=(v=t).charts,G=v.doc,H=v.win,v.error=function(t,e){if(t=v.isNumber(t)?\"Highcharts error #\"+t+\": www.highcharts.com/errors/\"+t:t,e)throw Error(t);H.console&&console.log(t)},v.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},v.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],o=[],n=this.now,s=e.length;if(1===n)o=this.toD;else if(s===i.length&&n<1)for(;s--;)t=parseFloat(e[s]),o[s]=isNaN(t)?e[s]:n*parseFloat(i[s]-t)+t;else o=i;this.elem.attr(\"d\",o,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+\"Setter\"]?this[e+\"Setter\"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},run:function(t,e,i){var o,n=this,s=function(t){return!s.stopped&&n.step(t)};this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===B.push(s)&&(s.timerId=setInterval(function(){for(o=0;o=r+this.startTime?(this.now=this.end,this.pos=1,this.update(),e=a[this.prop]=!0,v.objectEach(a,function(t){!0!==t&&(e=!1)}),e&&s&&s.call(n),1):(this.pos=o.easing((i-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),0)))},initPath:function(t,e,i){function o(t){var e,i;for(h=t.length;h--;)e=\"M\"===t[h]||\"L\"===t[h],i=/[a-zA-Z]/.test(t[h+3]),e&&i&&t.splice(h+1,0,t[h+1],t[h+2],t[h+1],t[h+2])}function n(t,e){for(;t.lengthi&&(i=t[e]);return i},v.destroyObjectProperties=function(i,o){v.objectEach(i,function(t,e){t&&t!==o&&t.destroy&&t.destroy(),delete i[e]})},v.discardElement=function(t){var e=(e=v.garbageBin)||v.createElement(\"div\");t&&e.appendChild(t),e.innerHTML=\"\"},v.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},v.setAnimation=function(t,e){e.renderer.globalAnimation=v.pick(t,e.options.chart.animation,!0)},v.animObject=function(t){return v.isObject(t)?v.merge(t):{duration:t?500:0}},v.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},v.numberFormat=function(t,e,i,o){e=+e;var n,s,r=v.defaultOptions.lang,a=((t=+t||0).toString().split(\".\")[1]||\"\").split(\"e\")[0].length,l=t.toString().split(\"e\");return-1===e?e=Math.min(a,20):v.isNumber(e)||(e=2),s=(Math.abs(l[1]?l[0]:t)+Math.pow(10,-Math.max(e,a)-1)).toFixed(e),n=3<(a=String(v.pInt(s))).length?a.length%3:0,i=v.pick(i,r.decimalPoint),o=v.pick(o,r.thousandsSep),t=(t<0?\"-\":\"\")+(n?a.substr(0,n)+o:\"\"),t+=a.substr(n).replace(/(\\d{3})(?=\\d)/g,\"$1\"+o),e&&(t+=i+s.slice(-e)),l[1]&&(t+=\"e\"+l[1]),t},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},v.getStyle=function(t,e,i){return\"width\"===e?Math.min(t.offsetWidth,t.scrollWidth)-v.getStyle(t,\"padding-left\")-v.getStyle(t,\"padding-right\"):\"height\"===e?Math.min(t.offsetHeight,t.scrollHeight)-v.getStyle(t,\"padding-top\")-v.getStyle(t,\"padding-bottom\"):(t=H.getComputedStyle(t,void 0))&&(t=t.getPropertyValue(e),v.pick(i,!0))?v.pInt(t):t},v.inArray=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},v.grep=function(t,e){return[].filter.call(t,e)},v.find=function(t,e){return[].find.call(t,e)},v.map=function(t,e){for(var i=[],o=0,n=t.length;o>16,(65280&t)>>8,255&t,1]:4===e&&(i=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])),!i)for(o=this.parsers.length;o--&&!i;)(e=(n=this.parsers[o]).regex.exec(t))&&(i=n.parse(e));this.rgba=i||[]},get:function(i){var o,t=this.input,e=this.rgba;return this.stops?((o=V(t)).stops=[].concat(o.stops),X(this.stops,function(t,e){o.stops[e]=[o.stops[e][0],t.get(i)]})):o=e&&F(e[0])?\"rgb\"===i||!i&&1===e[3]?\"rgb(\"+e[0]+\",\"+e[1]+\",\"+e[2]+\")\":\"a\"===i?e[3]:\"rgba(\"+e.join(\",\")+\")\":t,o},brighten:function(e){var t,i=this.rgba;if(this.stops)X(this.stops,function(t){t.brighten(e)});else if(F(e)&&0!==e)for(t=0;t<3;t++)i[t]+=j(255*e),i[t]<0&&(i[t]=0),255]*>/g,\"\")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added)&&this.renderer.buildText(this)},fillSetter:function(t,e,i){\"string\"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){\"inherit\"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,o,n=this.renderer,s=this.parentGroup,r=(s||n).element||n.box,a=this.element,l=this.added;if(I(t)&&(a.zIndex=t,this[e]===(t=+t)&&(l=!1),this[e]=t),l){for((t=this.zIndex)&&s&&(s.handleZ=!0),e=r.childNodes,o=0;ot||!I(t)&&I(l)||t<0&&!I(l)&&r!==n.box)&&(r.insertBefore(a,s),i=!0);i||r.appendChild(a)}return i},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),Mt.prototype.yGetter=Mt.prototype.xGetter,Mt.prototype.translateXSetter=Mt.prototype.translateYSetter=Mt.prototype.rotationSetter=Mt.prototype.verticalAlignSetter=Mt.prototype.scaleXSetter=Mt.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},Mt.prototype[\"stroke-widthSetter\"]=Mt.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this[\"stroke-width\"]?(Mt.prototype.fillSetter.call(this,this.stroke,\"stroke\",i),i.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===e&&0===t&&this.hasStroke&&(i.removeAttribute(\"stroke\"),this.hasStroke=!1)},a=L.SVGRenderer=function(){this.init.apply(this,arguments)},nt(a.prototype,{Element:Mt,SVG_NS:wt,init:function(t,e,i,o,n,s){var r,a=(o=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(o))).element;t.appendChild(a),-1===t.innerHTML.indexOf(\"xmlns\")&&A(a,\"xmlns\",this.SVG_NS),this.isSVG=!0,this.box=a,this.boxWrapper=o,this.alignedObjects=[],this.url=(ct||ft)&&it.getElementsByTagName(\"base\").length?kt.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\",this.createElement(\"desc\").add().element.appendChild(it.createTextNode(\"Created with Highstock 5.0.14\")),this.defs=this.createElement(\"defs\").add(),this.allowHTML=s,this.forExport=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),ct&&t.getBoundingClientRect&&((e=function(){Q(t,{left:0,top:0}),r=t.getBoundingClientRect(),Q(t,{left:Math.ceil(r.left)-r.left+\"px\",top:Math.ceil(r.top)-r.top+\"px\"})})(),this.unSubPixelFix=U(kt,\"resize\",e))},getStyle:function(t){return this.style=nt({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),et(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:$,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t,e){var i=t.getBBox(!0).width;return i=!bt&&this.forExport?this.measureSpanWidth(e.firstChild.data,t.styles):i},applyEllipsis:function(t,e,i,o){function n(t){e.removeChild(e.firstChild),t&&e.appendChild(it.createTextNode(t))}var s,r,a,l=t.rotation,h=0,c=i.length;if(t.rotation=0,a=o/,m=/<.*style=\"([^\"]+)\".*>/,g=/<.*href=\"([^\"]+)\".*>/,o&&o.appendChild(y),t=e?t.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,\"\").split(//g):[t],t=rt(t,function(t){return\"\"!==t}),ot(t,function(t,h){var c,d=0;t=t.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"|||\"),c=t.split(\"|||\"),ot(c,function(t){if(\"\"!==t||1===c.length){var e,i={},o=it.createElementNS(b.SVG_NS,\"tspan\");if(f.test(t)&&(s=t.match(f)[1],A(o,\"class\",s)),m.test(t)&&(e=t.match(m)[1].replace(/(;| |^)color([ :])/,\"$1fill$2\"),A(o,\"style\",e)),g.test(t)&&!w&&(A(o,\"onclick\",'location.href=\"'+t.match(g)[1]+'\"'),Q(o,{cursor:\"pointer\"})),\" \"!==(t=(t.replace(/<(.|\\n)*?>/g,\"\")||\" \").replace(/</g,\"<\").replace(/>/g,\">\"))){if(o.appendChild(it.createTextNode(t)),d?i.dx=0:h&&null!==_&&(i.x=_),A(o,i),y.appendChild(o),!d&&x&&(!bt&&w&&Q(o,{display:\"block\"}),A(o,\"dy\",p(o))),k){var n,i=t.replace(/([^\\^])-/g,\"$1- \").split(\" \"),s=1\")))}},getContrast:function(t){return 510<(t=Z(t).rgba)[0]+t[1]+t[2]?\"#000000\":\"#FFFFFF\"},button:function(t,e,i,o,n,s,r,a,l){var h,c,d,u,p=this.label(t,e,i,l,null,null,null,null,\"button\"),f=0;return p.attr(mt({padding:8,r:2},n)),n=mt({fill:\"#f7f7f7\",stroke:\"#cccccc\",\"stroke-width\":1,style:{color:\"#333333\",cursor:\"pointer\",fontWeight:\"normal\"}},n),h=n.style,delete n.style,s=mt(n,{fill:\"#e6e6e6\"},s),c=s.style,delete s.style,r=mt(n,{fill:\"#e6ebf5\",style:{color:\"#000000\",fontWeight:\"bold\"}},r),d=r.style,delete r.style,a=mt(n,{style:{color:\"#cccccc\"}},a),u=a.style,delete a.style,U(p.element,dt?\"mouseover\":\"mouseenter\",function(){3!==f&&p.setState(1)}),U(p.element,dt?\"mouseout\":\"mouseleave\",function(){3!==f&&p.setState(f)}),p.setState=function(t){1!==t&&(p.state=f=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(\"highcharts-button-\"+[\"normal\",\"hover\",\"pressed\",\"disabled\"][t||0]),p.attr([n,s,r,a][t||0]).css([h,c,d,u][t||0])},p.attr(n).css(nt({cursor:\"default\"},h)),p.on(\"click\",function(t){3!==f&&o.call(p,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:\"none\"};return ht(t)?e.d=t:ut(t)&&nt(e,t),this.createElement(\"path\").attr(e)},circle:function(t,e,i){return t=ut(t)?t:{x:t,y:e,r:i},(e=this.createElement(\"circle\")).xSetter=e.ySetter=function(t,e,i){i.setAttribute(\"c\"+e,t)},e.attr(t)},arc:function(t,e,i,o,n,s){return ut(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:n,end:s},(t=this.symbol(\"arc\",t,e,i,i,o)).r=i,t},rect:function(t,e,i,o,n,s){n=ut(t)?t.r:n;var r=this.createElement(\"rect\");return t=ut(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},void 0!==s&&(t.strokeWidth=s,t=r.crisp(t)),t.fill=\"none\",n&&(t.r=n),r.rSetter=function(t,e,i){A(i,{rx:t,ry:t})},r.attr(t)},setSize:function(t,e,i){var o=this.alignedObjects,n=o.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:\"0 0 \"+this.attr(\"width\")+\" \"+this.attr(\"height\")})},duration:C(i,!0)?void 0:0});n--;)o[n].align()},g:function(t){var e=this.createElement(\"g\");return t?e.attr({\"class\":\"highcharts-\"+t}):e},image:function(t,e,i,o,n){var s={preserveAspectRatio:\"none\"};return 1c&&/[ \\-]/.test(i.textContent||i.innerText)&&Ct(i,{width:c+\"px\",display:\"block\",whiteSpace:d||\"normal\"}),this.getSpanCorrection(i.offsetWidth,l,a,h,r)),Ct(i,{left:t+(this.xCorr||0)+\"px\",top:s+(this.yCorr||0)+\"px\"}),It&&(l=i.offsetHeight),this.cTT=u)):this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var o={},n=Lt?\"-ms-transform\":It?\"-webkit-transform\":Ot?\"MozTransform\":$t.opera?\"-o-transform\":\"\";o[n]=o.transform=\"rotate(\"+t+\"deg)\",o[n+(Ot?\"Origin\":\"-origin\")]=o.transformOrigin=100*e+\"% \"+i+\"px\",Ct(this.element,o)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),Dt(r.prototype,{html:function(t,e,i){function r(e,n){Pt([\"opacity\",\"visibility\"],function(t){zt(e,t+\"Setter\",function(t,e,i,o){t.call(this,e,i,o),n[i]=e})})}var a=this.createElement(\"span\"),o=a.element,l=a.renderer,n=l.isSVG;return a.textSetter=function(t){t!==o.innerHTML&&delete this.bBox,o.innerHTML=this.textStr=t,a.htmlUpdateTransform()},n&&r(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){a[e=\"align\"===e?\"textAlign\":e]=t,a.htmlUpdateTransform()},a.attr({text:t,x:Math.round(e),y:Math.round(i)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"}),o.style.whiteSpace=\"nowrap\",a.css=a.htmlCss,n&&(a.add=function(t){var e,n=l.box.parentNode,s=[];if(this.parentGroup=t){if(!(e=t.div)){for(;t;)s.push(t),t=t.parentGroup;Pt(s.reverse(),function(i){var o,t=(t=St(i.element,\"class\"))&&{className:t};e=i.div=i.div||At(\"div\",t,{position:\"absolute\",left:(i.translateX||0)+\"px\",top:(i.translateY||0)+\"px\",display:i.display,opacity:i.opacity,pointerEvents:i.styles&&i.styles.pointerEvents},e||n),o=e.style,Dt(i,{classSetter:function(t){this.element.setAttribute(\"class\",t),e.className=t},on:function(){return s[0].div&&a.on.apply({element:s[0].div},arguments),i},translateXSetter:function(t,e){o.left=t+\"px\",i[e]=t,i.doTransform=!0},translateYSetter:function(t,e){o.top=t+\"px\",i[e]=t,i.doTransform=!0}}),r(i,o)})}}else e=n;return e.appendChild(o),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}}),Rt=(T=t).createElement,Bt=T.css,Nt=T.defined,Gt=T.deg2rad,Ht=T.discardElement,Wt=T.doc,Xt=T.each,Ft=T.erase,Yt=T.extend,O=T.extendClass,Vt=T.isArray,jt=T.isNumber,Ut=T.isObject,E=T.merge,l=T.noop,Kt=T.pick,qt=T.pInt,Zt=T.SVGElement,Qt=T.SVGRenderer,Jt=T.win,T.svg||((l={docMode8:Wt&&8===Wt.documentMode,init:function(t,e){var i=[\"<\",e,' filled=\"f\" stroked=\"f\"'],o=[\"position: \",\"absolute\",\";\"],n=\"div\"===e;\"shape\"!==e&&!n||o.push(\"left:0;top:0;width:1px;height:1px;\"),o.push(\"visibility: \",n?\"hidden\":\"visible\"),i.push(' style=\"',o.join(\"\"),'\"/>'),e&&(i=n||\"span\"===e||\"img\"===e?i.join(\"\"):t.prepVML(i),this.element=Rt(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,o=e.box,n=t&&t.inverted,o=t?t.element||t:o;return t&&(this.parentGroup=t),n&&e.invertChild(i,o),o.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr(\"class\",this.className),this},updateTransform:Zt.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=Math.cos(t*Gt),i=Math.sin(t*Gt);Bt(this.element,{filter:t?[\"progid:DXImageTransform.Microsoft.Matrix(M11=\",e,\", M12=\",-i,\", M21=\",i,\", M22=\",e,\", sizingMethod='auto expand')\"].join(\"\"):\"none\"})},getSpanCorrection:function(t,e,i,o,n){var s,r=o?Math.cos(o*Gt):1,a=o?Math.sin(o*Gt):0,l=Kt(this.elemHeight,this.element.offsetHeight);this.xCorr=r<0&&-t,this.yCorr=a<0&&-l,this.xCorr+=a*e*((s=r*a<0)?1-i:i),this.yCorr-=r*e*(o?s?i:1-i:1),n&&\"left\"!==n&&(this.xCorr-=t*i*(r<0?-1:1),o&&(this.yCorr-=l*i*(a<0?-1:1)),Bt(this.element,{textAlign:n}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)jt(t[e])?i[e]=Math.round(10*t[e])-5:\"Z\"===t[e]?i[e]=\"x\":(i[e]=t[e],!t.isArc||\"wa\"!==t[e]&&\"at\"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(\" \")||\"x\"},clip:function(t){var e,i=this;return t=t?(e=t.members,Ft(e,i),e.push(i),i.destroyClip=function(){Ft(e,i)},t.getCSS(i)):(i.destroyClip&&i.destroyClip(),{clip:i.docMode8?\"inherit\":\"rect(auto)\"}),i.css(t)},css:Zt.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&Ht(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),Zt.prototype.destroy.apply(this)},on:function(t,e){return this.element[\"on\"+t]=function(){var t=Jt.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var i;return 9!==(i=(t=t.split(/[ ,]/)).length)&&11!==i||(t[i-4]=t[i-2]=qt(t[i-2])-10*e),t.join(\" \")},shadow:function(t,e,i){var o,n,s,r,a,l,h=[],c=this.element,d=this.renderer,u=c.style,p=c.path,f=p=p&&\"string\"!=typeof p.value?\"x\":p;if(t){for(a=Kt(t.width,3),l=(t.opacity||.15)/a,o=1;o<=3;o++)s=[''],n=Rt(d.prepVML(s),null,{left:qt(u.left)+Kt(t.offsetX,1),top:qt(u.top)+Kt(t.offsetY,1)}),i&&(n.cutOff=1+r),s=[''],Rt(d.prepVML(s),null,null,n),e?e.element.appendChild(n):c.parentNode.insertBefore(n,c),h.push(n);this.shadows=h}return this},updateShadows:l,setAttr:function(t,e){this.docMode8?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){(this.added?this.element:this).className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName(\"stroke\")[0]||Rt(this.renderer.prepVML([\"\"]),null,null,i))[e]=t||\"solid\",this[e]=t},dSetter:function(t,e,i){var o=this.shadows;if(this.d=(t=t||[]).join&&t.join(\" \"),i.path=t=this.pathToVML(t),o)for(i=o.length;i--;)o[i].path=o[i].cutOff?this.cutOffPath(t,o[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var o=i.nodeName;\"SPAN\"===o?i.style.color=t:\"IMG\"!==o&&(i.filled=\"none\"!==t,this.setAttr(\"fillcolor\",this.renderer.color(t,i,e,this)))},\"fill-opacitySetter\":function(t,e,i){Rt(this.renderer.prepVML([\"<\",e.split(\"-\")[0],' opacity=\"',t,'\"/>']),null,null,i)},opacitySetter:l,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-Math.round(Math.sin(t*Gt)+1)+\"px\",i.top=Math.round(Math.cos(t*Gt))+\"px\"},strokeSetter:function(t,e,i){this.setAttr(\"strokecolor\",this.renderer.color(t,i,e,this))},\"stroke-widthSetter\":function(t,e,i){i.stroked=!!t,this[e]=t,jt(t)&&(t+=\"px\"),this.setAttr(\"strokeweight\",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(e,i,t){\"inherit\"===e&&(e=\"visible\"),this.shadows&&Xt(this.shadows,function(t){t.style[i]=e}),\"DIV\"===t.nodeName&&(e=\"hidden\"===e?\"-999em\":0,this.docMode8||(t.style[i]=e?\"visible\":\"hidden\"),i=\"top\"),t.style[i]=e},xSetter:function(t,e,i){this[e]=t,\"x\"===e?e=\"left\":\"y\"===e&&(e=\"top\"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}})[\"stroke-opacitySetter\"]=l[\"fill-opacitySetter\"],T.VMLElement=l=O(Zt,l),l.prototype.ySetter=l.prototype.widthSetter=l.prototype.heightSetter=l.prototype.xSetter,l={Element:l,isIE8:-1'],Rt(S.prepVML(s),null,null,e)},k=(t=t.stops)[0],M=t[t.length-1],0\",' xmlns=\"urn:schemas-microsoft-com:vml\" />')).indexOf('style=\"')?t.replace(\"/>\",' style=\"display:inline-block;behavior:url(#default#VML);\" />'):t.replace('style=\"','style=\"display:inline-block;behavior:url(#default#VML);'):t.replace(\"<\",\"{point.key}
    ',pointFormat:' {series.name}: {point.y}
    ',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}},o.setOptions=function(t){return o.defaultOptions=ie(!0,o.defaultOptions,t),ue(),o.defaultOptions},o.getOptions=function(){return o.defaultOptions},o.defaultPlotOptions=o.defaultOptions.plotOptions,ue(),se=(d=t).correctFloat,re=d.defined,ae=d.destroyObjectProperties,le=d.isNumber,he=d.merge,ce=d.pick,de=d.deg2rad,d.Tick=function(t,e,i,o){this.axis=t,this.pos=e,this.type=i||\"\",this.isNewLabel=this.isNew=!0,i||o||this.addLabel()},d.Tick.prototype={addLabel:function(){var t,e=this.axis,i=e.options,o=e.chart,n=e.categories,s=e.names,r=this.pos,a=i.labels,l=r===(c=e.tickPositions)[0],h=r===c[c.length-1],s=n?ce(n[r],s[r],r):r,n=this.label,c=c.info;e.isDatetimeAxis&&c&&(t=i.dateTimeLabelFormats[c.higherRanks[r]||c.unitName]),this.isFirst=l,this.isLast=h,i=e.labelFormatter.call({axis:e,chart:o,isFirst:l,isLast:h,dateTimeLabelFormat:t,value:e.isLog?se(e.lin2log(s)):s,pos:r}),re(n)?n&&n.attr({text:i}):(this.labelLength=(this.label=n=re(i)&&a.enabled?o.renderer.text(i,0,0,a.useHTML).css(he(a.style)).add(e.labelGroup):null)&&n.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(t){var e,i=this.axis,o=t.x,n=i.chart.chartWidth,s=i.chart.spacing,r=ce(i.labelLeft,Math.min(i.pos,s[3])),s=ce(i.labelRight,Math.max(i.pos+i.len,n-s[1])),a=this.label,l=this.rotation,h={left:0,center:.5,right:1}[i.labelAlign],c=a.getBBox().width,d=i.getSlotWidth(),u=d,p=1,f={};l?l<0&&o-h*c=this.minRange,t=[l-(t=((r=this.minRange)-h+l)/2),M(a.min,l-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),h=[(l=me(t))+r,M(a.max,l+r)],e&&(h[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(h=ge(h))-l=x?(e=x,f=0):s.dataMax<=x&&(i=x,p=0)),s.min=M(o,e,s.dataMin),s.max=M(n,i,s.dataMax)),l&&(s.positiveValuesOnly&&!t&&Math.min(s.min,M(s.dataMin,s.min))<=0&&b.error(10,1),s.min=xe(h(s.min),15),s.max=xe(h(s.max),15)),s.range&&_(s.max)&&(s.userMin=s.min=o=Math.max(s.dataMin,s.minFromRange()),s.userMax=n=s.max,s.range=null),ke(s,\"foundExtremes\"),s.beforePadding&&s.beforePadding(),s.adjustForMinRange(),!(v||s.axisPointRange||s.usePercentage||u)&&_(s.min)&&_(s.max)&&(h=s.max-s.min)&&(!_(o)&&f&&(s.min-=h*f),!_(n))&&p&&(s.max+=h*p),Pe(a.softMin)&&(s.min=Math.min(s.min,a.softMin)),Pe(a.softMax)&&(s.max=Math.max(s.max,a.softMax)),Pe(a.floor)&&(s.min=Math.max(s.min,a.floor)),Pe(a.ceiling)&&(s.max=Math.min(s.max,a.ceiling)),y&&_(s.dataMin)&&(x=x||0,!_(o)&&s.min=x?s.min=x:!_(n)&&s.max>x&&s.dataMax<=x&&(s.max=x)),s.tickInterval=s.min===s.max||void 0===s.min||void 0===s.max?1:u&&!m&&g===s.linkedParent.options.tickPixelInterval?m=s.linkedParent.tickInterval:M(m,this.tickAmount?(s.max-s.min)/Math.max(this.tickAmount-1,1):void 0,v?1:(s.max-s.min)*g/Math.max(s.len,g)),d&&!t&&k(s.series,function(t){t.processData(s.min!==s.oldMin||s.max!==s.oldMax)}),s.setAxisTranslation(!0),s.beforeSetTickPositions&&s.beforeSetTickPositions(),s.postProcessTickInterval&&(s.tickInterval=s.postProcessTickInterval(s.tickInterval)),s.pointRange&&!m&&(s.tickInterval=Math.max(s.pointRange,s.tickInterval)),t=M(a.minTickInterval,s.isDatetimeAxis&&s.closestPointRange),!m&&s.tickIntervalthis.len&&(t=[t[0],t.pop()]),this.tickPositions=t,o=o&&o.apply(this,[this.min,this.max]))&&(this.tickPositions=t=o),this.paddedTicks=t.slice(0),this.trimTicks(t,n,s),this.isLinked||(this.single&&t.length<2&&(this.min-=.5,this.max+=.5),i)||o||this.adjustTickAmount()},trimTicks:function(t,e,i){var o=t[0],n=t[t.length-1],s=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-s>t[0];)t.shift();if(i)this.max=n;else for(;this.max+sf&&(f=t.labelLength)}),this.maxLabelLength=f,this.autoRotation)cu.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(i={width:c+\"px\"},!p))for(i.textOverflow=\"clip\",t=s.length;!l&&t--;)e=s[t],(c=r[e].label)&&(c.styles&&\"ellipsis\"===c.styles.textOverflow?c.css({textOverflow:\"clip\"}):r[e].labelLength>h&&c.css({width:h+\"px\"}),c.getBBox().height>this.len/s.length-(u.h-u.f))&&(c.specCss={textOverflow:\"ellipsis\"});d.rotation&&(i={width:(f>.5*o.chartHeight?.33*o.chartHeight:o.chartHeight)+\"px\"},p||(i.textOverflow=\"ellipsis\")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),k(s,function(t){var e=(t=r[t])&&t.label;e&&(e.attr(d),i&&e.css(Oe(i,e.specCss)),delete e.specCss,t.rotation=d.rotation)}),this.tickRotCorr=n.rotCorr(u.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||_(this.min)&&_(this.max)&&!!this.tickPositions},addTitle:function(t){var e,i=this.chart.renderer,o=this.horiz,n=this.opposite,s=this.options.title;this.axisTitle||(e=(e=s.textAlign)||(o?{low:\"left\",middle:\"center\",high:\"right\"}:{low:n?\"right\":\"left\",middle:\"center\",high:n?\"left\":\"right\"})[s.align],this.axisTitle=i.text(s.text,0,0,s.useHTML).attr({zIndex:7,rotation:s.rotation||0,align:e}).addClass(\"highcharts-axis-title\").css(s.style).add(this.axisGroup),this.axisTitle.isNew=!0),s.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?\"show\":\"hide\"](!0)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new Re(this,t)},getOffset:function(){var t,e,i=this,o=(g=i.chart).renderer,n=i.options,s=i.tickPositions,r=i.ticks,a=i.horiz,l=i.side,h=g.inverted&&!i.isZAxis?[1,0,3,2][l]:l,c=0,d=0,u=n.title,p=n.labels,f=0,m=g.axisOffset,g=g.clipOffset,v=[-1,1,1,-1][l],x=n.className,y=i.axisParent,b=this.tickSize(\"tick\"),w=i.hasData();i.showAxis=t=w||M(n.showEmpty,!0),i.staggerLines=i.horiz&&p.staggerLines,i.axisGroup||(i.gridGroup=o.g(\"grid\").attr({zIndex:n.gridZIndex||1}).addClass(\"highcharts-\"+this.coll.toLowerCase()+\"-grid \"+(x||\"\")).add(y),i.axisGroup=o.g(\"axis\").attr({zIndex:n.zIndex||2}).addClass(\"highcharts-\"+this.coll.toLowerCase()+\" \"+(x||\"\")).add(y),i.labelGroup=o.g(\"axis-labels\").attr({zIndex:p.zIndex||7}).addClass(\"highcharts-\"+i.coll.toLowerCase()+\"-labels \"+(x||\"\")).add(y)),w||i.isLinked?(k(s,function(t,e){i.generateTick(t,e)}),i.renderUnsquish(),!1===p.reserveSpace||0!==l&&2!==l&&{1:\"left\",3:\"right\"}[l]!==i.labelAlign&&\"center\"!==i.labelAlign||k(s,function(t){f=Math.max(r[t].getLabelSize(),f)}),i.staggerLines&&(f*=i.staggerLines,i.labelOffset=f*(i.opposite?-1:1))):Ie(r,function(t,e){t.destroy(),delete r[e]}),u&&u.text&&!1!==u.enabled&&(i.addTitle(t),t)&&!1!==u.reserveSpace&&(i.titleOffset=c=i.axisTitle.getBBox()[a?\"height\":\"width\"],e=u.offset,d=_(e)?0:M(u.margin,a?5:10)),i.renderLine(),i.offset=v*M(n.offset,m[l]),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},o=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,d=Math.abs(f)+d,f&&(d=d-o+v*(a?M(p.y,i.tickRotCorr.y+8*v):p.x)),i.axisTitleMargin=M(e,d),m[l]=Math.max(m[l],i.axisTitleMargin+c+v*i.offset,d,w&&s.length&&b?b[0]+v*i.offset:0),s=2*Math.floor(i.axisLine.strokeWidth()/2),0=this.min&&t<=this.max)&&(o[t]||(o[t]=new Re(this,t)),n&&o[t].isNew&&o[t].render(e,!0,.1),o[t].render(e))},render:function(){var i,o,n=this,s=n.chart,t=n.options,r=n.isLog,a=n.lin2log,e=n.isLinked,l=n.tickPositions,h=n.axisTitle,c=n.ticks,d=n.minorTicks,u=n.alternateBands,p=t.stackLabels,f=t.alternateGridColor,m=n.tickmarkOffset,g=n.axisLine,v=n.showAxis,x=fe(s.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,k([c,d,u],function(t){Ie(t,function(t){t.isActive=!1})}),(n.hasData()||e)&&(n.minorTickInterval&&!n.categories&&k(n.getMinorTickPositions(),function(t){n.renderMinorTick(t)}),l.length&&(k(l,function(t,e){n.renderTick(t,e)}),m)&&(0===n.min||n.single)&&(c[-1]||(c[-1]=new Re(n,-1,null,!0)),c[-1].render(-1)),f&&k(l,function(t,e){o=void 0!==l[e+1]?l[e+1]+m:n.max-m,0==e%2&&t=x.second?0:p*Math.floor(c.getMilliseconds()/p)),u>=x.second&&c[g.hcSetSeconds](u>=x.minute?0:p*Math.floor(c.getSeconds()/p)),u>=x.minute&&c[g.hcSetMinutes](u>=x.hour?0:p*Math.floor(c[g.hcGetMinutes]()/p)),u>=x.hour&&c[g.hcSetHours](u>=x.day?0:p*Math.floor(c[g.hcGetHours]()/p)),u>=x.day&&c[g.hcSetDate](u>=x.month?1:p*Math.floor(c[g.hcGetDate]()/p)),u>=x.month&&(c[g.hcSetMonth](u>=x.year?0:p*Math.floor(c[g.hcGetMonth]()/p)),n=c[g.hcGetFullYear]()),u>=x.year&&c[g.hcSetFullYear](n-n%p),u===x.week&&c[g.hcSetDate](c[g.hcGetDate]()-c[g.hcGetDay]()+Ve(o,1)),n=c[g.hcGetFullYear](),o=c[g.hcGetMonth]();var f=c[g.hcGetDate](),m=c[g.hcGetHours]();for((g.hcTimezoneOffset||g.hcGetTimezoneOffset)&&(r=(!h||!!g.hcGetTimezoneOffset)&&(i-e>4*x.month||Fe(e)!==Fe(i)),c=c.getTime(),s=Fe(c),c=new g(c+s)),h=c.getTime(),e=1;hthis.max&&e>this.max,o&&i?(t&&(o.flat=o.toString()===i.toString(),s=0),o.push(n&&i[4]===o[4]?i[4]+s:i[4],n||i[5]!==o[5]?i[5]:i[5]+s,n&&i[1]===o[1]?i[1]+s:i[1],n||i[2]!==o[2]?i[2]:i[2]+s)):o=null,o},addPlotBand:function(t){return this.addPlotBandOrLine(t,\"plotBands\")},addPlotLine:function(t){return this.addPlotBandOrLine(t,\"plotLines\")},addPlotBandOrLine:function(t,e){var i=new Ze.PlotLineOrBand(this,t).render(),o=this.userOptions;return i&&(e&&(o[e]=o[e]||[],o[e].push(t)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(e){for(var t=this.plotLinesAndBands,i=this.options,o=this.userOptions,n=t.length;n--;)t[n].id===e&&t[n].destroy();ii([i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]],function(t){for(n=t.length;n--;)t[n].id===e&&oi(t,t[n])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}}),ai=(ri=t).dateFormat,li=ri.each,hi=ri.extend,ci=ri.format,di=ri.isNumber,ui=ri.map,pi=ri.merge,fi=ri.pick,mi=ri.splat,gi=ri.syncTimeout,vi=ri.timeUnits,ri.Tooltip=function(){this.init.apply(this,arguments)},ri.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split},cleanSplit:function(i){li(this.chart.series,function(t){var e=t&&t.tt;e&&(!e.isActive||i?t.tt=e.destroy():e.isActive=!1)})},getLabel:function(){var t=this.chart.renderer,e=this.options;return this.label||(this.split?this.label=t.g(\"tooltip\"):(this.label=t.label(\"\",0,0,e.shape||\"callout\",null,null,e.useHTML,null,\"tooltip\").attr({padding:e.padding,r:e.borderRadius}),this.label.attr({fill:e.backgroundColor,\"stroke-width\":e.borderWidth}).css(e.style).shadow(e.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),pi(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,pi(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,o){var n=this,s=n.now,r=!1!==n.options.animation&&!n.isHidden&&(1t){s=l;break}if(a[s]&&r.substr(a[s])!==\"01-01 00:00:00.000\".substr(a[s]))break;\"week\"!==s&&(l=s)}return n=s?o[s]:n},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var o=i&&i.closestPointRange;return(o?this.getDateFormat(o,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?\"footer\":\"header\",o=(e=t.series).tooltipOptions,n=o.xDateFormat,s=e.xAxis,r=s&&\"datetime\"===s.options.type&&di(t.key),i=o[i+\"Format\"];return r&&!n&&(n=this.getXDateFormat(t,o,s)),r&&n&&(i=i.replace(\"{point.key}\",\"{point.key:\"+n+\"}\")),ci(i,{point:t,series:e})},bodyFormatter:function(t){return ui(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}},xi=(h=t).addEvent,yi=h.attr,bi=h.charts,wi=h.color,_i=h.css,ki=h.defined,Mi=h.each,Si=h.extend,Ai=h.find,Ci=h.fireEvent,Ti=h.isObject,Pi=h.offset,Di=h.pick,Oi=h.removeEvent,Li=h.splat,Ii=h.Tooltip,Ei=h.win,h.Pointer=function(t,e){this.init(t,e)},h.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},Ii&&(t.tooltip=new Ii(t,e.tooltip),this.followTouchMove=Di(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(o=this.chart).options.chart,i=e.zoomType||\"\",o=o.inverted;/touch/.test(t.type)&&(i=Di(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!o||i&&o,this.zoomVert=i&&!o||t&&o,this.hasZoom=t||i},normalize:function(t,e){var i,o;return(t=t||Ei.event).target||(t.target=t.srcElement),o=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=Pi(this.chart.container)),e=void 0===o.pageX?(i=Math.max(t.x,t.clientX-e.left),t.y):(i=o.pageX-e.left,o.pageY-e.top),Si(t,{chartX:Math.round(i),chartY:Math.round(e)})},getCoordinates:function(e){var i={xAxis:[],yAxis:[]};return Mi(this.chart.axes,function(t){i[t.isXAxis?\"xAxis\":\"yAxis\"].push({axis:t,value:t.toValue(e[t.horiz?\"chartX\":\"chartY\"])})}),i},findNearestKDPoint:function(t,n,s){var r;return Mi(t,function(t){var e,i,o=!(t.noSharedTooltip&&n)&&t.options.findNearestPointBy.indexOf(\"y\")<0;t=t.searchPoint(s,o),(o=Ti(t,!0))&&!(o=!Ti(r,!0))&&(o=r.distX-t.distX,e=r.dist-t.dist,i=(t.series.group&&t.series.group.zIndex)-(r.series.group&&r.series.group.zIndex),o=0<(0!==o&&n?o:0!=e?e:0!=i?i:r.series.index>t.series.index?-1:1)),o&&(r=t)}),r},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=(o=t.series).xAxis,o=o.yAxis;if(i&&o)return e?{chartX:i.len+i.pos-t.clientX,chartY:o.len+o.pos-t.plotY}:{chartX:t.clientX+i.pos,chartY:t.plotY+o.pos}},getHoverData:function(t,e,i,o,n,s){var r,a=[],l=(o=!(!o||!t),e&&!e.stickyTracking?[e]:h.grep(i,function(t){return t.visible&&!(!n&&t.directTouch)&&Di(t.options.enableMouseTracking,!0)&&t.stickyTracking}));return e=(r=o?t:this.findNearestKDPoint(l,n,s))&&r.series,r&&(n&&!e.noSharedTooltip?(l=h.grep(i,function(t){return t.visible&&!(!n&&t.directTouch)&&Di(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),Mi(l,function(t){t=Ai(t.points,function(t){return t.x===r.x}),Ti(t)&&!t.isNull&&a.push(t)})):a.push(r)),{hoverPoint:r,hoverSeries:e,hoverPoints:a}},runPointActions:function(o,t){var e=this.chart,i=e.tooltip,n=!!i&&i.shared,s=(r=t||e.hoverPoint)&&r.series||e.hoverSeries,r=(s=this.getHoverData(r,s,e.series,!!t||s&&s.directTouch&&this.isDirectTouch,n,o)).hoverPoint,a=s.hoverPoints;t=(s=s.hoverSeries)&&s.tooltipOptions.followPointer,n=n&&s&&!s.noSharedTooltip,r&&(r!==e.hoverPoint||i&&i.isHidden)?(Mi(e.hoverPoints||[],function(t){-1===h.inArray(t,a)&&t.setState()}),Mi(a||[],function(t){t.setState(\"hover\")}),e.hoverSeries!==s&&s.onMouseOver(),e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\"),r.firePointEvent(\"mouseOver\"),e.hoverPoints=a,e.hoverPoint=r,i&&i.refresh(n?a:r,o)):t&&i&&!i.isHidden&&(r=i.getAnchor([{}],o),i.updatePosition({plotX:r[0],plotY:r[1]})),this.unDocMouseMove||(this.unDocMouseMove=xi(e.container.ownerDocument,\"mousemove\",function(t){var e=bi[h.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)})),Mi(e.axes,function(e){var t=Di(e.crosshair.snap,!0),i=t?h.find(a,function(t){return t.series[e.coll]===e}):void 0;i||!t?e.drawCrosshair(o,i):e.hideCrosshair()})},reset:function(e,t){var i=this.chart,o=i.hoverSeries,n=i.hoverPoint,s=i.hoverPoints,r=i.tooltip,a=r&&r.shared?s:n;e&&a&&Mi(Li(a),function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?r&&a&&(r.refresh(a),n)&&(n.setState(n.state,!0),Mi(i.axes,function(t){t.crosshair&&t.drawCrosshair(null,n)})):(n&&n.onMouseOut(),s&&Mi(s,function(t){t.setState()}),o&&o.onMouseOut(),r&&r.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),Mi(i.axes,function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(e,i){var o,n=this.chart;Mi(n.series,function(t){o=e||t.getPlotBox(),t.xAxis&&t.xAxis.zoomEnabled&&t.group&&(t.group.attr(o),t.markerGroup&&(t.markerGroup.attr(o),t.markerGroup.clip(i?n.clipRect:null)),t.dataLabelsGroup)&&t.dataLabelsGroup.attr(o)}),n.clipRect.attr(i||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,o=i.options.chart,n=t.chartX,s=t.chartY,r=this.zoomHor,a=this.zoomVert,l=i.plotLeft,h=i.plotTop,c=i.plotWidth,d=i.plotHeight,u=this.selectionMarker,p=this.mouseDownX,f=this.mouseDownY,m=o.panKey&&t[o.panKey+\"Key\"];u&&u.touch||(ny.max&&(e=y.max-l,c=!0),c?(_-=.8*(_-r[u][0]),b||(M-=.8*(M-r[u][1])),i()):r[u]=[_,M],x||(s[u]=h-g,s[m]=l),s=x?1/v:v,n[m]=l,n[u]=e,o[x?t?\"scaleY\":\"scaleX\":\"scale\"+p]=v,o[\"translate\"+p]=s*g+(_-s*w)},pinch:function(t){var e=this,r=e.chart,i=e.pinchDown,o=t.touches,n=o.length,s=e.lastValidTouch,a=e.hasZoom,l=e.selectionMarker,h={},c=1===n&&(e.inClass(t.target,\"highcharts-tracker\")&&r.runTrackerClick||e.runChartClick),d={};1(u||e.spacingBox.width-2*h-o.x)&&(this.itemX=h,this.itemY+=f+this.lastLineHeight+p,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,a),this.lastItemY=f+this.itemY+p,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=a:(this.itemY+=f+i+p,this.lastLineHeight=i),this.offsetWidth=u||Math.max((n?this.itemX-h-(t.checkbox?0:c):a)+h,this.offsetWidth)},getAllItems:function(){var i=[];return io(this.chart.series,function(t){var e=t&&t.options;t&&so(e.showInLegend,!eo(e.linkedTo)&&void 0,!0)&&(i=i.concat(t.legendItems||(\"point\"===e.legendType?t.data:t)))}),i},adjustMargins:function(i,o){var n=this.chart,s=this.options,r=s.align.charAt(0)+s.verticalAlign.charAt(0)+s.layout.charAt(0);s.floating||io([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(t,e){t.test(r)&&!eo(i[e])&&(n[oo[e]]=Math.max(n[oo[e]],n.legend[(e+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][e]*s[e%2?\"x\":\"y\"]+so(s.margin,12)+o[e]))})},render:function(){var t,e,i,o,n=this,s=n.chart,r=s.renderer,a=n.group,l=n.box,h=n.options,c=n.padding;n.itemX=c,n.itemY=n.initialItemY,n.offsetWidth=0,n.lastItemY=0,a||(n.group=a=r.g(\"legend\").attr({zIndex:7}).add(),n.contentGroup=r.g().attr({zIndex:1}).add(a),n.scrollGroup=r.g().add(n.contentGroup)),n.renderTitle(),t=n.getAllItems(),ao(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),h.reversed&&t.reverse(),n.allItems=t,n.display=e=!!t.length,n.lastLineHeight=0,io(t,function(t){n.renderItem(t)}),i=(h.width||n.offsetWidth)+c,o=n.lastItemY+n.lastLineHeight+n.titleHeight,o=n.handleOverflow(o),o+=c,l||(n.box=l=r.rect().addClass(\"highcharts-legend-box\").attr({r:h.borderRadius}).add(a),l.isNew=!0),l.attr({stroke:h.borderColor,\"stroke-width\":h.borderWidth||0,fill:h.backgroundColor||\"none\"}).shadow(h.shadow),0n&&(s||i)!==m[o-1])&&(m.push(s||i),o++),e===g.length-1&&i+t-m[o-1]>n&&m.push(i),i!==s&&(s=i)}),c||(c=i.clipRect=o.clipRect(0,l,9999,0),i.contentGroup.clip(c)),e(n),f||(this.nav=f=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol(\"triangle\",0,0,p,p).on(\"click\",function(){i.scroll(-1,u)}).add(f),this.pager=o.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(d.style).add(f),this.down=o.symbol(\"triangle-down\",0,0,p,p).on(\"click\",function(){i.scroll(1,u)}).add(f)),i.scroll(0),t=h):f&&(e(),this.nav=f.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,o=i.length,n=(t=this.currentPage+t,this.clipHeight),s=this.options.navigation,r=this.pager,a=this.padding;0<(t=os&&(\"string\"===(i=typeof t[0])?e.name=t[0]:\"number\"===i&&(e.x=t[0]),r++);a=o.value;)o=t[++i];return o&&o.color&&!this.options.color&&(this.color=o.color),o},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),jo(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Jo(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],i=6;i--;)this[t=e[i]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(e){var t=this.series,i=t.tooltipOptions,o=Qo(i.valueDecimals,\"\"),n=i.valuePrefix||\"\",s=i.valueSuffix||\"\";return Yo(t.pointArrayMap||[\"y\"],function(t){t=\"{point.\"+t,e=(e=n||s?e.replace(t+\"}\",n+t+\"}\"+s):e).replace(t+\"}\",t+\":,.\"+o+\"f}\")}),Ko(e,{point:this,series:this.series})},firePointEvent:function(t,e,i){var o=this,n=this.series.options;(n.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&this.importEvents(),\"click\"===t&&n.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Uo(this,t,e,i)},visible:!0},tn=(y=t).addEvent,en=y.animObject,on=y.arrayMax,nn=y.arrayMin,sn=y.correctFloat,rn=y.Date,an=y.defaultOptions,ln=y.defaultPlotOptions,hn=y.defined,cn=y.each,dn=y.erase,un=y.extend,pn=y.fireEvent,fn=y.grep,mn=y.isArray,gn=y.isNumber,vn=y.isString,xn=y.merge,yn=y.objectEach,S=y.pick,bn=y.removeEvent,wn=y.splat,_n=y.SVGElement,kn=y.syncTimeout,Mn=y.win,y.Series=y.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:\"#ffffff\",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":y.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:y.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(t,e){var i,o,n=this,s=t.series;n.chart=t,n.options=e=n.setOptions(e),n.linkedSeries=[],n.bindAxes(),un(n,{name:e.name,state:\"\",visible:!1!==e.visible,selected:!0===e.selected}),i=e.events,yn(i,function(t,e){tn(n,e,t)}),(i&&i.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),cn(n.parallelArrays,function(t){n[t+\"Data\"]=[]}),n.setData(e.data,!1),n.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(o=s[s.length-1]),n._i=S(o&&o._i,-1)+1,t.orderSeries(this.insert(s))},insert:function(t){var e,i=this.options.index;if(gn(i)){for(e=t.length;e--;)if(i>=S(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return S(e,t.length-1)},bindAxes:function(){var i,o=this,n=o.options,t=o.chart;cn(o.axisTypes||[],function(e){cn(t[e],function(t){i=t.options,(n[e]===i.index||void 0!==n[e]&&n[e]===i.id||void 0===n[e]&&0===i.index)&&(o.insert(t.series),(o[e]=t).isDirty=!0)}),o[e]||o.optionalAxis===e||y.error(18,!0)})},updateParallelArrays:function(i,o){var n=i.series,e=arguments,t=gn(o)?function(t){var e=\"y\"===t&&n.toYData?n.toYData(i):i[t];n[t+\"Data\"][o]=e}:function(t){Array.prototype[o].apply(n[t+\"Data\"],Array.prototype.slice.call(e,2))};cn(n.parallelArrays,t)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,o=e.pointIntervalUnit,i=S(i,e.pointStart,0);return this.pointInterval=t=S(this.pointInterval,e.pointInterval,1),o&&(e=new rn(i),\"day\"===o?e=+e[rn.hcSetDate](e[rn.hcGetDate]()+t):\"month\"===o?e=+e[rn.hcSetMonth](e[rn.hcGetMonth]()+t):\"year\"===o&&(e=+e[rn.hcSetFullYear](e[rn.hcGetFullYear]()+t)),t=e-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,o=i.plotOptions,n=(e.userOptions||{}).plotOptions||{},s=o[this.type];return this.userOptions=t,e=xn(s,o.series,t),this.tooltipOptions=xn(an.tooltip,an.plotOptions.series&&an.plotOptions.series.tooltip,an.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=S(t.stickyTracking,n[this.type]&&n[this.type].stickyTracking,n.series&&n.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===s.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+\"Threshold\"]||e.threshold||0,className:\"highcharts-negative\",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&hn(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),e},getCyclic:function(t,e,i){var o,n=this.chart,s=this.userOptions,r=t+\"Index\",a=t+\"Counter\",l=i?i.length:S(n.options.chart[t+\"Count\"],n[t+\"Count\"]);e||(o=S(s[r],s[\"_\"+r]),hn(o)||(n.series.length||(n[a]=0),s[\"_\"+r]=o=n[a]%l,n[a]+=1),i&&(e=i[o])),void 0!==o&&(this[r]=o),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||ln[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:y.LegendSymbolMixin.drawLineMarker,setData:function(t,e,i,o){var n=this,s=n.points,r=s&&s.length||0,a=n.options,l=n.chart,h=null,c=n.xAxis,d=a.turboThreshold,u=this.xData,p=this.yData,f=(m=n.pointArrayMap)&&m.length,m=(t=t||[]).length;if(e=S(e,!0),!1!==o&&m&&r===m&&!n.cropped&&!n.hasGroupedData&&n.visible)cn(t,function(t,e){s[e].update&&t!==a.data[e]&&s[e].update(t,!1,null,!1)});else{if(n.xIncrement=null,n.colorCounter=0,cn(this.parallelArrays,function(t){n[t+\"Data\"].length=0}),d&&dn?(s=[],r=[]):(s[0]n)&&(s=(l=this.cropData(this.xData,this.yData,o,n)).xData,r=l.yData,l=l.start,e=!0)),c=s.length||1;--c;)0<(a=f?p(s[c])-p(s[c-1]):s[c]-s[c-1])&&(void 0===i||a=i){s=Math.max(0,l-a);break}for(i=l;io){r=i+a;break}return{xData:t.slice(s,r),yData:e.slice(s,r),start:s,end:r}},generatePoints:function(){var t,e,i,o,n=(u=this.options).data,s=this.data,r=this.processedXData,a=this.processedYData,l=this.pointClass,h=r.length,c=this.cropStart||0,d=this.hasGroupedData,u=u.keys,p=[];for(s||d||((s=[]).length=n.length,s=this.data=s),u&&d&&(this.options.keys=!1),o=0;o=c&&(r[n]||i)<=d,e&&i)if(e=o.length)for(;e--;)null!==o[e]&&(a[l++]=o[e]);else a[l++]=o;this.dataMin=nn(a),this.dataMax=on(a)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,o=this.options,n=o.stacking,s=this.xAxis,r=s.categories,a=this.yAxis,l=this.points,h=l.length,c=!!this.modifyValue,d=o.pointPlacement,u=\"between\"===d||gn(d),p=o.threshold,f=o.startFromThreshold?p:0,m=Number.MAX_VALUE;for(gn(d=\"between\"===d?.5:d)&&(d*=S(o.pointRange||s.pointRange)),o=0;o=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;en.max}),this.clips=p)},invertGroups:function(e){function t(){cn([\"group\",\"markerGroup\"],function(t){o[t]&&(n.renderer.isVML&&o[t].attr({width:o.yAxis.len,height:o.xAxis.len}),o[t].width=o.yAxis.len,o[t].height=o.xAxis.len,o[t].invert(e))})}var i,o=this,n=o.chart;o.xAxis&&(i=tn(n,\"resize\",t),tn(o,\"destroy\",i),t(),o.invertGroups=t)},plotGroup:function(t,e,i,o,n){var s=this[t],r=!s;return r&&(this[t]=s=this.chart.renderer.g().attr({zIndex:o||.1}).add(n)),s.addClass(\"highcharts-\"+e+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series highcharts-color-\"+this.colorIndex+\" \"+(this.options.className||\"\"),!0),s.attr({visibility:i})[r?\"attr\":\"animate\"](this.getPlotBox()),s},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t=this,e=t.chart,i=t.options,o=!!t.animate&&e.renderer.isSVG&&en(i.animation).duration,n=t.visible?\"inherit\":\"hidden\",s=i.zIndex,r=t.hasRendered,a=e.seriesGroup,l=e.inverted,h=t.plotGroup(\"group\",\"series\",n,s,a);t.markerGroup=t.plotGroup(\"markerGroup\",\"markers\",n,s,a),o&&t.animate(!0),h.inverted=!!t.isCartesian&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.drawDataLabels&&t.drawDataLabels(),t.visible&&t.drawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===i.clip||t.sharedClipKey||r||h.clip(e.clipRect),o&&t.animate(),r||(t.animationTimeout=kn(function(){t.afterAnimate()},o)),t.isDirty=!1,t.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,o=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:S(o&&o.left,t.plotLeft),translateY:S(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(t,e){var i=this.xAxis,o=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?o.len-t.chartX+o.pos:t.chartY-o.pos},e)},buildKDTree:function(){this.buildingKdTree=!0;var r=this,t=-1a;)r--;this.updateParallelArrays(n,\"splice\",r,0,0),this.updateParallelArrays(n,r),d&&n.name&&(d[a]=n.name),u.splice(r,0,t),s&&(this.data.splice(r,0,null),this.processData()),\"point\"===l.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(n,\"shift\"),u.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(o)},removePoint:function(t,e,i){function o(){a&&a.length===s.length&&a.splice(t,1),s.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(r||{series:n},\"splice\",t,1),r&&r.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&l.redraw()}var n=this,s=n.data,r=s[t],a=n.points,l=n.chart;Zn(i,l),e=Kn(e,!0),r?r.firePointEvent(\"remove\",null,o):o()},remove:function(t,e,i){function o(){n.destroy(),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),Kn(t,!0)&&s.redraw(e)}var n=this,s=n.chart;!1!==i?Wn(n,\"remove\",null,o):o()},update:function(t,e){var i,o=this,n=o.chart,s=o.userOptions,r=o.oldType||o.type,a=t.type||s.type||n.options.chart.type,l=qn[r].prototype,h=[\"group\",\"markerGroup\",\"dataLabelsGroup\",\"navigatorSeries\",\"baseSeries\"],c=o.finishedAnimating&&{animation:!1};if(Object.keys&&\"data\"===Object.keys(t).toString())return this.setData(t.data,e);for(i in(a&&a!==r||void 0!==t.zIndex)&&(h.length=0),Nn(h,function(t){h[t]=o[t],delete o[t]}),t=jn(s,c,{index:o.index,pointStart:o.xData[0]},{data:o.options.data},t),o.remove(!1,null,!1),l)o[i]=void 0;Hn(o,qn[a||r].prototype),Nn(h,function(t){o[t]=h[t]}),o.init(n,t),o.oldType=r,n.linkSeries(),Kn(e,!0)&&n.redraw(!1)}}),Hn($n.prototype,{update:function(t,e){var i=this.chart;t=i.options[this.coll][this.options.index]=jn(this.userOptions,t),this.destroy(!0),this.init(i,Hn(t,{events:void 0})),i.isDirtyBox=!0,Kn(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,o=this.series,n=o.length;n--;)o[n]&&o[n].remove(!1);Gn(e.axes,this),Gn(e[i],this),Vn(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],Nn(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,Kn(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}}),ts=(Jn=t).color,es=Jn.each,is=Jn.map,os=Jn.pick,ns=Jn.Series,(0,Jn.seriesType)(\"area\",\"line\",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var l,h,e=[],c=[],i=this.xAxis,o=this.yAxis,d=o.stacks[this.stackKey],u={},p=this.index,n=o.series,f=n.length,m=os(o.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(h=0;hu?i-u:d-(e?u:0)),t.barX=n,t.pointWidth=p,t.tooltipPos=h.inverted?[c.len+c.pos-h.plotLeft-o,l.xAxis.len-n-s/2,a]:[n+s/2,o+c.pos-h.plotTop,a],t.shapeType=\"rect\",t.shapeArgs=l.crispCol.apply(l,t.isNull?[n,d,s,0]:[n,r,s,a])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(t,e){var i=this.options,o=(l=this.pointAttrToOptions||{}).stroke||\"borderColor\",n=l[\"stroke-width\"]||\"borderWidth\",s=t&&t.color||this.color,r=t[o]||i[o]||this.color||s,a=t[n]||i[n]||this[n]||0,l=i.dashStyle;return t&&this.zones.length&&(s=t.getZone(),s=t.options.color||s&&s.color||this.color),e&&(e=(t=ds(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&as(s).brighten(t.brightness).get()||s,r=t[o]||r,a=t[n]||a,l=t.dashStyle||l),o={fill:s,stroke:r,\"stroke-width\":a},l&&(o.dashstyle=l),o},drawPoints:function(){var i,o=this,n=this.chart,s=o.options,r=n.renderer,a=s.animationLimit||250;ls(o.points,function(t){var e=t.graphic;cs(t.plotY)&&null!==t.y?(i=t.shapeArgs,e?e[n.pointCount {series.name}
    ',pointFormat:\"x: {point.x}
    y: {point.y}
    \"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&ms.prototype.drawGraph.call(this)}}),gs=t.pick,vs=t.relativeLength,t.CenteredSeriesMixin={getCenter:function(){for(var t,e=this.options,i=this.chart,o=2*(e.slicedOffset||0),n=i.plotWidth-2*o,i=i.plotHeight-2*o,s=[gs((s=e.center)[0],\"50%\"),gs(s[1],\"50%\"),e.size||\"100%\",e.innerSize||0],r=Math.min(n,i),a=0;a<4;++a)t=s[a],e=a<2||2===a&&/%$/.test(t),s[a]=vs(t,[n,i,r,s[2]][a])+(e?o:0);return s[3]>s[2]&&(s[3]=s[2]),s}},ys=(xs=t).addEvent,bs=xs.defined,ws=xs.each,_s=xs.extend,ks=xs.inArray,E=xs.noop,Ms=xs.pick,Ss=xs.Point,As=xs.Series,l=xs.seriesType,Cs=xs.setAnimation,l(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:xs.seriesTypes.column.prototype.pointAttribs,animate:function(t){var o=this,e=o.points,n=o.startAngleRad;t||(ws(e,function(t){var e=t.graphic,i=t.shapeArgs;e&&(e.attr({r:t.startR||o.center[3]/2,start:n,end:n}),e.animate({r:i.r,start:i.start,end:i.end},o.options.animation))}),o.animate=null)},updateTotals:function(){for(var t,e=0,i=this.points,o=i.length,n=this.options.ignoreHiddenPoint,s=0;s1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),r.slicedTranslation={translateX:Math.round(Math.cos(n)*l),translateY:Math.round(Math.sin(n)*l)},e=Math.cos(n)*o[2]/2,i=Math.sin(n)*o[2]/2,r.tooltipPos=[o[0]+.7*e,o[1]+.7*i],r.half=n<-Math.PI/2||n>Math.PI/2?1:0,r.angle=n,t=Math.min(h,r.labelDistance/5),r.labelPos=[o[0]+e+Math.cos(n)*r.labelDistance,o[1]+i+Math.sin(n)*r.labelDistance,o[0]+e+Math.cos(n)*t,o[1]+i+Math.sin(n)*t,o[0]+e,o[1]+i,r.labelDistance<0?\"center\":r.half?\"right\":\"left\",n]},drawGraph:null,drawPoints:function(){var i,o,n,s,r=this,a=r.chart.renderer,l=r.options.shadow;l&&!r.shadowGroup&&(r.shadowGroup=a.g(\"shadow\").add(r.group)),ws(r.points,function(t){var e;t.isNull||(o=t.graphic,s=t.shapeArgs,i=t.getTranslate(),e=t.shadowGroup,(e=l&&!e?t.shadowGroup=a.g(\"shadow\").add(r.shadowGroup):e)&&e.attr(i),n=r.pointAttribs(t,t.selected&&\"select\"),o?o.setRadialReference(r.center).attr(n).animate(_s(s,i)):(t.graphic=o=a[t.shapeType](s).setRadialReference(r.center).attr(i).add(r.group),t.visible||o.attr({visibility:\"hidden\"}),o.attr(n).attr({\"stroke-linejoin\":\"round\"}).shadow(l,e)),o.addClass(t.getClassName()))})},searchPoint:E,sortByAngle:function(t,i){t.sort(function(t,e){return void 0!==t.angle&&(e.angle-t.angle)*i})},drawLegendSymbol:xs.LegendSymbolMixin.drawRectangle,getCenter:xs.CenteredSeriesMixin.getCenter,getSymbol:E},{init:function(){Ss.prototype.init.apply(this,arguments);var t,e=this;return e.name=Ms(e.name,\"Slice\"),ys(e,\"select\",t=function(t){e.slice(\"select\"===t.type)}),ys(e,\"unselect\",t),e},isValid:function(){return xs.isNumber(this.y,!0)&&0<=this.y},setVisible:function(e,t){var i=this,o=i.series,n=o.chart,s=o.options.ignoreHiddenPoint;t=Ms(t,s),e!==i.visible&&(i.visible=i.options.visible=e=void 0===e?!i.visible:e,o.options.data[ks(i,o.data)]=i.options,ws([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(t){i[t]&&i[t][e?\"show\":\"hide\"](!0)}),i.legendItem&&n.legend.colorizeItem(i,e),e||\"hover\"!==i.state||i.setState(\"\"),s&&(o.isDirty=!0),t)&&n.redraw()},slice:function(t,e,i){var o=this.series;Cs(i,o.chart),Ms(e,!0),this.sliced=this.options.sliced=bs(t)?t:!this.sliced,o.options.data[ks(this,o.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),Ts=(P=t).addEvent,Ps=P.arrayMax,Ds=P.defined,Os=P.each,Ls=P.extend,Is=P.format,Es=P.map,$s=P.merge,s=P.noop,D=P.pick,zs=P.relativeLength,Rs=P.Series,d=P.seriesTypes,Bs=P.stableSort,P.distribute=function(t,e){function i(t,e){return t.target-e.target}for(var o=!0,n=t,s=[],r=0,a=t.length;a--;)r+=t[a].size;if(et[a].pos&&(t[a-1].size+=t[a].size,t[a-1].targets=t[a-1].targets.concat(t[a].targets),t[a-1].pos+t[a-1].size>e&&(t[a-1].pos=e-t[a-1].size),t.splice(a,1),o=!0)}a=0,Os(t,function(t){var e=0;Os(t.targets,function(){n[a].pos=t.pos+e,e+=n[a].size,a++})}),n.push.apply(n,s),Bs(n,i)},Rs.prototype.drawDataLabels=function(){var l,h,c,d,u=this,p=u.options,f=p.dataLabels,t=u.points,e=u.hasRendered||0,i=D(f.defer,!!p.animation),m=u.chart.renderer;(f.enabled||u._hasPointLabels)&&(u.dlProcessOptions&&u.dlProcessOptions(f),d=u.plotGroup(\"dataLabelsGroup\",\"data-labels\",i&&!e?\"hidden\":\"visible\",f.zIndex||6),i&&(d.attr({opacity:+e}),e||Ts(u,\"afterAnimate\",function(){u.visible&&d.show(!0),d[p.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),h=f,Os(t,function(t){var e,i,o,n,s=t.dataLabel,r=t.connector,a=!s;l=t.dlOptions||t.options&&t.options.dataLabels,(e=D(l&&l.enabled,h.enabled)&&null!==t.y)&&(f=$s(h,l),i=t.getLabelConfig(),c=f.format?Is(f.format,i):f.formatter.call(i,f),n=f.style,i=f.rotation,n.color=D(f.color,n.color,u.color,\"#000000\"),\"contrast\"===n.color&&(t.contrastColor=m.getContrast(t.color||u.color),n.color=f.inside||D(t.labelDistance,f.distance)<0||p.stacking?t.contrastColor:\"#000000\"),p.cursor&&(n.cursor=p.cursor),o={fill:f.backgroundColor,stroke:f.borderColor,\"stroke-width\":f.borderWidth,r:f.borderRadius||0,rotation:i,padding:f.padding,zIndex:1},P.objectEach(o,function(t,e){void 0===t&&delete o[e]})),!s||e&&Ds(c)?e&&Ds(c)&&(s?o.text=c:(s=t.dataLabel=m[i?\"text\":\"label\"](c,0,-9999,f.shape,null,null,f.useHTML,null,\"data-label\")).addClass(\"highcharts-data-label-color-\"+t.colorIndex+\" \"+(f.className||\"\")+(f.useHTML?\"highcharts-tracker\":\"\")),s.attr(o),s.css(n).shadow(f.shadow),s.added||s.add(d),u.alignDataLabel(t,s,f,null,a)):(t.dataLabel=s=s.destroy(),r&&(t.connector=r.destroy()))}))},Rs.prototype.alignDataLabel=function(t,e,i,o,n){var s,r=this.chart,a=r.inverted,l=D(t.plotX,-9999),h=D(t.plotY,-9999),c=e.getBBox(),d=i.rotation,u=i.align,p=this.visible&&(t.series.forceDL||r.isInsidePlot(l,Math.round(h),a)||o&&r.isInsidePlot(l,a?o.x+1:o.y+o.height-1,a)),f=\"justify\"===D(i.overflow,\"justify\");p&&(s=i.style.fontSize,s=r.renderer.fontMetrics(s,e).b,o=Ls({x:a?this.yAxis.len-h:l,y:Math.round(a?this.xAxis.len-l:h),width:0,height:0},o),Ls(i,{width:c.width,height:c.height}),d?(f=!1,l=r.renderer.rotCorr(s,d),l={x:o.x+i.x+o.width/2+l.x,y:o.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*o.height},e[n?\"attr\":\"animate\"](l).attr({align:u}),h=180<(h=(d+720)%360)&&h<360,\"left\"===u?l.y-=h?c.height:0:\"center\"===u?(l.x-=c.width/2,l.y-=c.height/2):\"right\"===u&&(l.x-=c.width,l.y-=h?0:c.height)):(e.align(i,null,o),l=e.alignAttr),f?t.isLabelJustified=this.justifyDataLabel(e,i,l,c,o,n):D(i.crop,!0)&&(p=r.isInsidePlot(l.x,l.y)&&r.isInsidePlot(l.x+c.width,l.y+c.height)),i.shape)&&!d&&e[n?\"attr\":\"animate\"]({anchorX:a?r.plotWidth-t.plotY:t.plotX,anchorY:a?r.plotHeight-t.plotX:t.plotY}),p||(e.attr({y:-9999}),e.placed=!1)},Rs.prototype.justifyDataLabel=function(t,e,i,o,n,s){var r,a=this.chart,l=e.align,h=e.verticalAlign,c=!t.box&&t.padding||0,d=i.x+c;return d<0&&(\"right\"===l?e.align=\"left\":e.x=-d,r=!0),(d=i.x+o.width-c)>a.plotWidth&&(\"left\"===l?e.align=\"right\":e.x=a.plotWidth-d,r=!0),(d=i.y+c)<0&&(\"bottom\"===h?e.verticalAlign=\"top\":e.y=-d,r=!0),a.plotHeight<(d=i.y+o.height-c)&&(\"top\"===h?e.verticalAlign=\"bottom\":e.y=a.plotHeight-d,r=!0),r&&(t.placed=!s,t.align(e,null,n)),r},d.pie&&(d.pie.prototype.drawDataLabels=function(){var i,a,l,h,c,d,u,p,f=this,t=f.data,m=f.chart,g=f.options.dataLabels,v=D(g.connectorPadding,10),o=D(g.connectorWidth,1),x=m.plotWidth,y=m.plotHeight,b=f.center,w=b[2]/2,_=b[1],e=[[],[]],k=[0,0,0,0];f.visible&&(g.enabled||f._hasPointLabels)&&(Os(t,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),t.dataLabel.shortened=!1)}),Rs.prototype.drawDataLabels.apply(f),Os(t,function(t){t.dataLabel&&t.visible&&(e[t.half].push(t),t.dataLabel._pos=null)}),Os(e,function(t,e){var i,o,n,s=t.length,r=[];if(s)for(f.sortByAngle(t,e-.5),0c.bottom-2?i:d,e,c),a._attr={visibility:u,align:l[6]},a._pos={x:c+g.x+({left:v,right:-v}[l[6]]||0),y:d+g.y-10},l.x=c,l.y=d,D(g.crop,!0)&&(l=a.getBBox().width,i=null,c-lD(this.translatedThreshold,r.yAxis.len)),h=D(i.inside,!!this.options.stacking);a&&((o=$s(a)).y<0&&(o.height+=o.y,o.y=0),0<(a=o.y+o.height-r.yAxis.len)&&(o.height-=a),s&&(o={x:r.yAxis.len-o.y-o.height,y:r.xAxis.len-o.x-o.width,width:o.height,height:o.width}),h||(s?(o.x+=l?0:o.width,o.width=0):(o.y+=l?o.height:0,o.height=0))),i.align=D(i.align,!s||h?\"center\":l?\"right\":\"left\"),i.verticalAlign=D(i.verticalAlign,s||h?\"middle\":l?\"top\":\"bottom\"),Rs.prototype.alignDataLabel.call(this,t,e,i,o,n),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})}),O=t.Chart,Ns=t.each,Gs=t.objectEach,Hs=t.pick,Ws=t.addEvent,O.prototype.callbacks.push(function(t){function e(){var i=[];Ns(t.yAxis||[],function(t){t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&Gs(t.stacks,function(t){Gs(t,function(t){i.push(t.label)})})}),Ns(t.series||[],function(t){var e=t.options.dataLabels;(e.enabled||t._hasPointLabels)&&!e.allowOverlap&&t.visible&&Ns(t.dataLabelCollections||[\"dataLabel\"],function(e){Ns(t.points,function(t){t[e]&&(t[e].labelrank=Hs(t.labelrank,t.shapeArgs&&t.shapeArgs.height),i.push(t[e]))})})}),t.hideOverlappingLabels(i)}e(),Ws(t,\"redraw\",e)}),O.prototype.hideOverlappingLabels=function(t){for(var e,i,o,n,s,r,a,l,h,c,d,u=t.length,p=0;p=lr(i.minWidth,0)&&this.chartHeight>=lr(i.minHeight,0)}).call(this)&&e.push(t._id)},d.prototype.currentOptions=function(t){var e={};return function i(o,n,s,r){var a;or.objectEach(o,function(t,e){if(!r&&-1o,s[l]5*r||u){if(s[l]>v){for(h=t.call(this,e,s[f],s[l],n);h.length&&h[0]<=v;)h.shift();h.length&&(v=h[h.length-1]),g=g.concat(h)}f=l+1}if(u)break}if(t=h.info,a&&t.unitRange<=vr.hour){for(l=g.length-1,f=1;fo?t-1:t,p=void 0;a--;)f=l[a],o=Math.abs(p-f),p&&o<.8*x&&(null===c||o<.8*c)?(m[g[a]]&&!m[g[a+1]]?(o=a+1,p=f):o=a,g.splice(o,1)):p=f}return g}),E(dr.prototype,{beforeSetTickPositions:function(){var i,t,e,o=[],n=!1,s=(l=this.getExtremes()).min,r=l.max,a=this.isXAxis&&!!this.options.breaks,l=this.options.ordinal,h=this.chart.options.chart.ignoreHiddenSeries;if(l||a){if(mr(this.series,function(t,e){if(!(h&&!1===t.visible||!1===t.takeOrdinalPosition&&!a)&&(o=o.concat(t.processedXData),i=o.length,o.sort(function(t,e){return t-e}),i))for(e=i-1;e--;)o[e]===o[e+1]&&o.splice(e,1)}),2<(i=o.length)){for(t=o[1]-o[0],e=i-1;e--&&!n;)o[e+1]-o[e]!==t&&(n=!0);!this.options.keepOrdinalPadding&&(o[0]-s>t||r-o[o.length-1]>t)&&(n=!0)}n?(this.ordinalPositions=o,t=this.ordinal2lin(Math.max(s,o[0]),!0),e=Math.max(this.ordinal2lin(Math.min(r,o[o.length-1]),!0),1),this.ordinalSlope=r=(r-s)/(e-t),this.ordinalOffset=s-t*r):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=l&&n,this.groupIntervalFactor=null},val2lin:function(t,e){var i=this.ordinalPositions;if(i){for(var o,n=i.length,s=n;s--;)if(i[s]===t){o=s;break}for(s=n-1;s--;)if(t>i[s]||0===s){o=s+(t=(t-i[s])/(i[s+1]-i[s]));break}e=e?o:this.ordinalSlope*(o||0)+this.ordinalOffset}else e=t;return e},lin2val:function(t,e){var i=this.ordinalPositions;if(i){var o,n=this.ordinalSlope,s=this.ordinalOffset,r=i.length-1;if(e)t<0?t=i[0]:r(l=(d=a<0?(r=l,u.ordinalPositions?u:l):(r=u.ordinalPositions?u:l,l)).ordinalPositions)[l.length-1]&&l.push(o),this.fixedRange=s-n,(a=u.toFixedRange(null,null,h.apply(r,[c.apply(r,[n,!0])+a,!0]),h.apply(d,[c.apply(d,[s,!0])+a,!0]))).min>=Math.min(i.dataMin,n)&&a.max<=Math.max(o,s)&&u.setExtremes(a.min,a.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=e,ur(this.container,{cursor:\"move\"})):p=!0,p&&t.apply(this,Array.prototype.slice.call(arguments,1))}),yr=(xr=t).pick,r=xr.wrap,br=xr.each,$=xr.extend,wr=xr.isArray,_r=xr.fireEvent,kr=xr.Axis,l=xr.Series,$(kr.prototype,{isInBreak:function(t,e){var i=t.repeat||1/0,o=t.from,n=t.to-t.from;return e=o<=e?(e-o)%i:i-(o-e)%i,t.inclusive?e<=n:e=t)break;if(d.isInBreak(e,t)){i-=t-e.from;break}}return i},d.lin2val=function(t){for(var e,i=0;i=t);i++)(e.tot.to||n>t.from&&rt.from&&rt.from&&r>t.to&&re&&(t=(i[o].x+i[o+1].x)/2,i.splice(o+1,0,{isNull:!0,x:t}),this.options.stacking)&&((t=n.stacks[this.stackKey][t]=new xr.StackItem(n,n.options.stackLabels,!1,t,this.stack)).total=0);return this.getGraphPath(i)},r(xr.seriesTypes.column.prototype,\"drawPoints\",gl),r(xr.Series.prototype,\"drawPoints\",gl),Mr=(c=t).arrayMax,Sr=c.arrayMin,Ar=c.Axis,Cr=c.defaultPlotOptions,Tr=c.defined,Pr=c.each,Dr=c.extend,Or=c.format,Lr=c.isNumber,Ir=c.merge,Er=c.pick,s=c.Point,d=c.Tooltip,E=c.wrap,$r=c.Series.prototype,zr=$r.processData,Rr=$r.generatePoints,Br=$r.destroy,Nr={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},Gr={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},Hr=c.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],Wr={sum:function(t){var e,i=t.length;if(!i&&t.hasNulls)e=null;else if(i)for(e=0;i--;)e+=t[i];return e},average:function(t){var e=t.length;return t=Wr.sum(t),Lr(t)&&e&&(t/=e),t},averages:function(){var e=[];return Pr(arguments,function(t){e.push(Wr.average(t))}),e},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},high:function(t){return t.length?Mr(t):t.hasNulls?null:void 0},low:function(t){return t.length?Sr(t):t.hasNulls?null:void 0},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},ohlc:function(t,e,i,o){if(t=Wr.open(t),e=Wr.high(e),i=Wr.low(i),o=Wr.close(o),Lr(t)||Lr(e)||Lr(i)||Lr(o))return[t,e,i,o]},range:function(t,e){return t=Wr.low(t),e=Wr.high(e),Lr(t)||Lr(e)?[t,e]:null===t&&null===e?null:void 0}},$r.groupData=function(t,e,i,o){var n,s,r=this.data,a=this.options.data,l=[],h=[],c=[],d=t.length,u=!!e,p=[],f=(o=\"function\"==typeof o?o:Wr[o]||Gr[this.type]&&Wr[Gr[this.type].approximation]||Wr[Nr.approximation],this.pointArrayMap),m=f&&f.length,g=0,v=0;for(m?Pr(f,function(){p.push([])}):p.push([]),n=m||1,s=0;s<=d&&!(t[s]>=i[0]);s++);for(;s<=d;s++){for(;void 0!==i[g+1]&&t[s]>=i[g+1]||s===d;){for(y=i[g],this.dataGroupInfo={start:v,length:p[0].length},void 0!==(v=o.apply(this,p))&&(l.push(y),h.push(v),c.push(this.dataGroupInfo)),v=s,y=0;ythis.chart.plotSizeX/o||i&&t.forced)&&(n=!0);return n?o:0},Ar.prototype.setDataGrouping=function(e,t){var i;if(t=Er(t,!0),e=e||{forced:!1,units:null},this instanceof Ar)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:e},!1);else Pr(this.chart.options.series,function(t){t.dataGrouping=e},!1);t&&this.chart.redraw()},Xr=t.each,Fr=t.Point,a=t.seriesType,Yr=t.seriesTypes,a(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:' {series.name}
    Open: {point.open}
    High: {point.high}
    Low: {point.low}
    Close: {point.close}
    '},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(t){return[t.open,t.high,t.low,t.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(t,e){e=Yr.column.prototype.pointAttribs.call(this,t,e);var i=this.options;return delete e.fill,!t.options.color&&i.upColor&&t.open\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:Ur.Series.prototype.init,pointAttribs:function(t,e){var i=this.options,o=t&&t.color||this.color,n=i.lineColor,s=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,n=i.states[e].lineColor,s=i.states[e].lineWidth),{fill:t||o,stroke:n||o,\"stroke-width\":s||i.lineWidth||0}},translate:function(){Qr.column.prototype.translate.apply(this);var o,t,e,i,n=this.options,s=this.chart,r=this.points,a=r.length-1,l=(h=n.onSeries)&&s.get(h),n=n.onKey||\"y\",h=l&&l.options.step,c=l&&l.points,d=c&&c.length,u=this.xAxis,p=this.yAxis,f=u.getExtremes(),m=0;if(l&&l.visible&&d)for(m=(l.pointXOffset||0)+(l.barW||0)/2,l=l.currentDataGrouping,e=c[d-1].x+(l?l.totalRange:0),ia(r,function(t,e){return t.x-e.x}),n=\"plot\"+n[0].toUpperCase()+n.substr(1);d--&&r[a]&&(l=r[a],!((t=c[d]).x<=l.x&&void 0!==t[n]&&(l.x<=e&&(l.plotY=t[n],t.x=f.min&&t.x<=f.max?t.plotY=s.chartHeight-u.bottom-(u.opposite?u.height:0)+u.offset-p.top:t.shapeArgs={}),t.plotX+=m,(o=r[e-1])&&o.plotX===t.plotX&&(void 0===o.stackIndex&&(o.stackIndex=0),i=o.stackIndex+1),t.stackIndex=i})},drawPoints:function(){for(var t,e,i,o,n,s,r,a,l=this.points,h=this.chart,c=h.renderer,d=this.options,u=d.y,p=this.yAxis,f=l.length;f--;)a=(o=l[f]).plotX>this.xAxis.len,t=o.plotX,n=o.stackIndex,i=o.options.shape||d.shape,void 0!==(e=o.plotY)&&(e=o.plotY+u-(void 0!==n&&n*d.stackDistance)),s=n?void 0:o.plotX,r=n?void 0:o.plotY,n=o.graphic,void 0!==e&&0<=t&&!a?(n||(n=o.graphic=c.label(\"\",null,null,i,null,null,d.useHTML).attr(this.pointAttribs(o)).css(Zr(d.style,o.style)).attr({align:\"flag\"===i?\"left\":\"center\",width:d.width,height:d.height,\"text-align\":d.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),o.graphic.div&&(o.graphic.div.point=o),n.shadow(d.shadow)),0o||!s.options.vertical&&e.chartX>n?s.updatePosition(s.from+i,s.to+i):s.updatePosition(s.from-i,s.to-i),ha(s,\"changed\",{from:s.from,to:s.to,trigger:\"scrollbar\",DOMEvent:t})}},cursorToScrollbarPosition:function(t){var e=(e=this.options).minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},updatePosition:function(t,e){1=Math.round(t.size),t.stickToMin=Ma(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!t.stickToMax),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},addChartEvents:function(){ma(this.chart,\"redraw\",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||t.scrollbar&&this.xAxis[0]);e&&t.render(e.min,e.max)})},destroy:function(){this.removeEvents(),this.xAxis&&(ya(this.chart.xAxis,this.xAxis),ya(this.chart.axes,this.xAxis)),this.yAxis&&(ya(this.chart.yAxis,this.yAxis),ya(this.chart.axes,this.yAxis)),p(this.series||[],function(t){t.destroy&&t.destroy()}),p(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(t){this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null},this),p([this.handles],function(t){xa(t)},this)}},u.Navigator=xl,Da(ga.prototype,\"zoom\",function(t,e,i){var o,n=this.chart,s=(a=n.options).chart.zoomType,r=a.navigator,a=a.rangeSelector;return this.isXAxis&&(r&&r.enabled||a&&a.enabled)&&(\"x\"===s?n.resetZoomButton=\"blocked\":\"y\"===s?o=!1:\"xy\"===s&&(n=this.previousZoom,va(e)?this.previousZoom=[this.min,this.max]:n&&(e=n[0],i=n[1],delete this.previousZoom))),void 0!==o?o:t.call(this,e,i)}),Da(d.prototype,\"init\",function(t,e,i){ma(this,\"beforeRender\",function(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new xl(this))}),t.call(this,e,i)}),Da(d.prototype,\"setChartSize\",function(t){var e,i,o,n=this.legend,s=this.navigator;t.apply(this,[].slice.call(arguments,1)),s&&(t=n.options,i=s.xAxis,o=s.yAxis,e=s.scrollbarHeight,this.inverted?(s.left=s.opposite?this.chartWidth-e-s.height:this.spacing[3]+e,s.top=this.plotTop+e):(s.left=this.plotLeft+e,s.top=s.navigatorOptions.top||this.chartHeight-s.height-e-this.spacing[2]-(\"bottom\"===t.verticalAlign&&t.enabled&&!t.floating?n.legendHeight+Ca(t.margin,10):0)),i)&&o&&(this.inverted?i.options.left=o.options.left=s.left:i.options.top=o.options.top=s.top,i.setAxisSize(),o.setAxisSize())}),Da(l.prototype,\"addPoint\",function(t,e,i,o,n){var s=this.options.turboThreshold;s&&this.xData.length>s&&Sa(e,!0)&&this.chart.navigator&&ba(20,!0),t.call(this,e,i,o,n)}),Da(d.prototype,\"addSeries\",function(t,e,i,o){return t=t.call(this,e,!1,o),this.navigator&&this.navigator.setBaseSeries(),Ca(i,!0)&&this.redraw(),t}),Da(l.prototype,\"update\",function(t,e,i){t.call(this,e,!1),this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(),Ca(i,!0)&&this.chart.redraw()}),d.prototype.callbacks.push(function(t){var e=t.navigator;e&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))}),La=(n=t).addEvent,Ia=n.Axis,E=n.Chart,Ea=n.css,$a=n.createElement,za=n.dateFormat,Ba=(Ra=n.defaultOptions).global.useUTC,Na=n.defined,Ga=n.destroyObjectProperties,Ha=n.discardElement,Wa=n.each,Xa=n.extend,Fa=n.fireEvent,Ya=n.Date,Va=n.isNumber,ja=n.merge,Ua=n.pick,Ka=n.pInt,qa=n.splat,O=n.wrap,Xa(Ra,{rangeSelector:{buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},height:35,inputPosition:{align:\"right\"},labelStyle:{color:\"#666666\"}}}),Ra.lang=ja(Ra.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"}),bl.prototype={clickButton:function(t,e){var i,o,n,s,r,a=this,l=a.chart,h=a.buttonOptions[t],c=l.xAxis[0],d=(m=l.scroller&&l.scroller.getUnionExtremes()||c||{}).dataMin,u=m.dataMax,p=c&&Math.round(Math.min(c.max,Ua(u,c.max))),f=h.type,m=h._range,g=h.dataGrouping;if(null!==d&&null!==u){if(l.fixedRange=m,g&&(this.forcedDataGrouping=!0,Ia.prototype.setDataGrouping.call(c||{chart:this.chart},g,!1)),\"month\"===f||\"year\"===f)c?(f={range:h,max:p,dataMin:d,dataMax:u},i=c.minFromRange.call(f),Va(f.newMax)&&(p=f.newMax)):m=h;else if(m)i=Math.max(p-m,d),p=Math.min(i+m,u);else if(\"ytd\"===f){if(!c)return void La(l,\"beforeRender\",function(){a.clickButton(t)});void 0===u&&(d=Number.MAX_VALUE,u=Number.MIN_VALUE,Wa(l.series,function(t){t=t.xData,d=Math.min(t[0],d),u=Math.max(t[t.length-1],u)}),e=!1),i=n=(p=a.getYTDExtremes(u,d,Ba)).min,p=p.max}else\"all\"===f&&c&&(i=d,p=u);a.setSelected(t),c?c.setExtremes(i,p,Ua(e,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:h}):(o=qa(l.options.xAxis)[0],r=o.range,o.range=m,s=o.min,o.min=n,La(l,\"load\",function(){o.range=r,o.min=s}))}},setSelected:function(t){this.selected=this.options.selected=t},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(e){function t(){var t=i.minInput,e=i.maxInput;t&&t.blur&&Fa(t,\"blur\"),e&&e.blur&&Fa(e,\"blur\")}var i=this,o=e.options.rangeSelector,n=o.buttons||[].concat(i.defaultButtons),s=o.selected;i.chart=e,i.options=o,i.buttons=[],e.extraTopMargin=o.height,i.buttonOptions=n,this.unMouseDown=La(e.container,\"mousedown\",t),this.unResize=La(e,\"resize\",t),Wa(n,i.computeButtonRange),void 0!==s&&n[s]&&this.clickButton(s,!1),La(e,\"load\",function(){La(e.xAxis[0],\"setExtremes\",function(t){this.max-this.min!==e.fixedRange&&\"rangeSelectorButton\"!==t.trigger&&\"updatedData\"!==t.trigger&&i.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var t=this.chart,c=t.xAxis[0],d=Math.round(c.max-c.min),u=!c.hasVisibleSeries,p=(t=t.scroller&&t.scroller.getUnionExtremes()||c).dataMin,f=t.dataMax,m=(t=this.getYTDExtremes(f,p,Ba)).min,g=t.max,v=this.selected,x=Va(v),y=this.options.allButtonsEnabled,b=this.buttons;Wa(this.buttonOptions,function(t,e){var i=t._range,o=t.type,n=t.count||1,s=(t=b[e],0),r=(e=e===v,f-p=f-p,h=!e&&x&&i),i=e&&i||i&&!x&&!l,!y&&(r||a||h||u)?s=3:i&&(x=!0,s=2),t.state!==s&&t.setState(s)})},computeButtonRange:function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:\"month\"!==e&&\"year\"!==e||(t._range=864e5*{month:30,year:365}[e]*i)},setInputValue:function(t,e){var i=this.chart.options.rangeSelector,o=this[t+\"Input\"];Na(e)&&(o.previousValue=o.HCTime,o.HCTime=e),o.value=za(i.inputEditDateFormat||\"%Y-%m-%d\",o.HCTime),this[t+\"DateBox\"].attr({text:za(i.inputDateFormat||\"%b %e, %Y\",o.HCTime)})},showInput:function(t){var e=this.inputGroup,i=this[t+\"DateBox\"];Ea(this[t+\"Input\"],{left:e.translateX+i.x+\"px\",top:e.translateY+\"px\",width:i.width-2+\"px\",height:i.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(t){Ea(this[t+\"Input\"],{border:0,width:\"1px\",height:\"1px\"}),this.setInputValue(t)},drawInput:function(t){function e(){var t=s.value,e=(l.inputDateParser||Date.parse)(t),i=a.xAxis[0],o=(n=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:i).dataMin,n=n.dataMax;e!==s.previousValue&&(s.previousValue=e,Va(e)||(e=t.split(\"-\"),e=Date.UTC(Ka(e[0]),Ka(e[1])-1,Ka(e[2]))),Va(e))&&(Ba||(e+=6e4*(new Date).getTimezoneOffset()),c?e>r.maxInput.HCTime?e=void 0:ev+p.width)&&(n?r=l=Math.min(Math.max(v,r),v+p.width):e=!0),e||y.push(\"M\",r,a,\"L\",l,h)}):el(c,function(t){var e;r=t.pos,l=r+t.len,((a=h=Math.round(x+p.height-d))x+p.height)&&(n?a=h=Math.min(Math.max(x,a),p.top+p.height):e=!0),e||y.push(\"M\",r,a,\"L\",l,h)})),0=r&&(f=-(l.translateX+e.width-r)),l.attr({x:h+f,y:a,anchorX:n?h:this.opposite?0:t.chartWidth,anchorY:n?this.opposite?t.chartHeight:0:a+e.height/2}))}),E.init=function(){ul.apply(this,arguments),this.setCompare(this.options.compare)},E.setCompare=function(o){this.modifyValue=\"value\"===o||\"percent\"===o?function(t,e){var i=this.compareValue;if(void 0!==t&&void 0!==i)return t=\"value\"===o?t-i:t/i*100-(100===this.options.compareBase?0:100),e&&(e.change=t),t}:null,this.userOptions.compare=o,this.chart.hasRendered&&(this.isDirty=!0)},E.processData=function(){var t,e,i,o,n,s=-1;if(pl.apply(this,arguments),this.xAxis&&this.processedYData)for(e=this.processedXData,o=(i=this.processedYData).length,this.pointArrayMap&&-1===(s=sl(\"close\",this.pointArrayMap))&&(s=sl(this.pointValKey||\"y\",this.pointArrayMap)),t=0;t=this.xAxis.min&&0!==n){this.compareValue=n;break}},O(E,\"getExtremes\",function(t){t.apply(this,[].slice.call(arguments,1)),this.modifyValue&&(t=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=Qa(t),this.dataMax=Za(t))}),s.prototype.setCompare=function(e,t){this.isXAxis||(el(this.series,function(t){t.setCompare(e)}),cl(t,!0)&&this.chart.redraw())},r.prototype.tooltipFormatter=function(t){return t=t.replace(\"{point.change}\",(0a[0]&&e[1]