/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email at support@zingchart.com.
Build 2.9.2_ES6
*/
zingchart.setModule("depth"),zingchart.plugins.depth=zingchart.plugins.depth||{},zingchart.plugins.depth.info=zingchart.plugins.depth.info||{},zingchart.plugins.depth.crosshairX_plotLabel_jsRule||(zingchart.plugins.depth.crosshairX_plotLabel_jsRule=function(t,e){var i="",n=t["data-palette"].split(";");return e=parseInt(e,10),t.key!==t["data-mmp"]?(i=''+t.scaletext+'
%plot-text:\xa0\xa0'+t[ZC._[9]]+'
%data-cost:\xa0\xa0'+t["data-currency"]+zingchart.formatNumber(t.key*t[ZC._[9]],{"thousands-separator":",",decimals:2}),{"border-bottom":"5px solid "+n[e],text:i}):{text:"N/A",visible:!1}}),zingchart.bind(null,"dataparse",function(t,e){for(var i=zingchart.getLoader(t.id),n=0,o=e[ZC._[16]].length;n "+s,"background-color":h[1]}]},"plot-label":{multiple:!0,callout:!1,"background-color":"#eee",padding:"10 10 15 10","font-size":11,"font-weight":"bold"},marker:{type:"diamond",size:3}}),r["crosshair-x"].exact=!0;var b={type:"line","line-color":"#ccc","line-width":1,range:[s],"value-range":!0,"label-tolerance":20,"offset-end":100,label:{"font-size":10,"font-weight":"bold",angle:0,width:80,"offset-x":-40,"offset-y":15,text:zingchart.plugins.depth.info[i.K].currency+zingchart.formatNumber(zingchart.plugins.depth.info[i.K].mmp,{"thousands-separator":","})}};ZC._cp_(l["mmp-marker"],b),r[ZC._[50]].markers.push(b);var Z=zingchart.plugins.depth.info[i.K].zoom||.5,C=s-z,x=f-s,y=Math.min(C,x),v=.05*y,k=y*Z,w=.05*y;zingchart.plugins.depth.info[i.K].diff=k,zingchart.plugins.depth.info[i.K]["min-diff"]=v,zingchart.plugins.depth.info[i.K]["max-diff"]=y,zingchart.plugins.depth.info[i.K].step=w,zingchart.plugins.depth.info[i.K].zoom=Z,p.push({values:[[s,0]],visible:!1,"export":!1,scales:"scale-x,scale-y-2"}),r[ZC._[50]]["zoom-to-values"]=[s-k,s+k]}return e}),zingchart.bind(null,"objectsinit",function(t){var e=zingchart.getLoader(t.loader.id),i=zingchart.getGraph(e,t.graphid),n=i.o;if("depth"===n["plugin-type"]){var o=zingchart.getGraphInfo(e,n,i.L).plotarea,a={};n.options&&(a=n.options.depth||n.options),ZC._todash_(a);var r=zingchart.plugins.depth.info[e.K].currency+zingchart.formatNumber(zingchart.plugins.depth.info[e.K].mmp,{"thousands-separator":","});n[ZC._[10]]=n[ZC._[10]]||[];for(var l=n[ZC._[10]].length-1;l>=0;l--)"zc_depth"===n[ZC._[10]][l].cls&&n[ZC._[10]].splice(l,1);var s={cls:"zc_depth",id:"zc_depth_title",x:o.x+o.width/2,y:o.y+10,anchor:"t","font-size":21,"font-weight":"bold",text:r};ZC._cp_(a.title,s),n[ZC._[10]].push(s);var c={cls:"zc_depth",id:"zc_depth_subtitle",x:o.x+o.width/2,y:o.y+35,anchor:"t","font-size":12,color:"#999",text:"Mid Market Price"};ZC._cp_(a.subtitle,c),n[ZC._[10]].push(c);var h=Math.round(s["font-size"]*r.length*.35),d={cls:"zc_depth",x:o.x+o.width/2-h,y:o.y+16,width:20,height:20,anchor:"tr","border-width":1,"font-size":14,"font-weight":"bold",text:" - ","background-color":"#ddd","hover-state":{"background-color":"#eee"},tooltip:{text:"Zoom Out"},id:"zc_depth_zoomout"};ZC._cp_(a["button-zoomout"],d),n[ZC._[10]].push(d);var p={cls:"zc_depth",x:o.x+o.width/2+h,y:o.y+16,width:20,height:20,anchor:"tl","border-width":1,"font-size":14,"font-weight":"bold",text:" + ","background-color":"#ddd","hover-state":{"background-color":"#eee"},tooltip:{text:"Zoom In"},id:"zc_depth_zoomin"};ZC._cp_(a["button-zoomin"],p),n[ZC._[10]].push(p)}}),zingchart.bind(null,"label_click",function(t){if("zc_depth_zoomin"===t.label.id||"zc_depth_zoomout"===t.label.id){var e=zingchart.plugins.depth.info[t.id].mmp,i=zingchart.plugins.depth.info[t.id].step,n=zingchart.plugins.depth.info[t.id].diff,o=zingchart.plugins.depth.info[t.id]["min-diff"],a=zingchart.plugins.depth.info[t.id]["max-diff"],r=zingchart.plugins.depth.info[t.id].zoom;n+="zc_depth_zoomout"===t.label.id?i:-i,r+="zc_depth_zoomout"===t.label.id?.05:-.05,n>a?(n=a,r=1):n