!function(e,t,a){"use strict";var o=t.getElementById("gold-chart").getContext("2d");(n=o.createLinearGradient(0,0,0,100)).addColorStop(0,"rgba(40, 208, 148,0.4)"),n.addColorStop(1,"rgba(255,255,255,0)");new Chart(o,{type:"line",options:{responsive:!0,maintainAspectRatio:!1,datasetStrokeWidth:5,pointDotStrokeWidth:4,tooltipFillColor:"rgba(40, 208, 148,0.8)",legend:{display:!1},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!1,ticks:{min:0,max:85}}]},title:{display:!1,fontColor:"#FFF",fullWidth:!1,fontSize:30,text:"52%"}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul"],datasets:[{label:"Gold",data:[20,50,30,60,40,70,50],backgroundColor:"transparent",borderColor:"#28d094",borderWidth:3,strokeColor:"#28d094",pointRadius:0}]}});var r=t.getElementById("silver-chart").getContext("2d");(n=r.createLinearGradient(0,0,0,100)).addColorStop(0,"rgba(255, 145, 73,0.4)"),n.addColorStop(1,"rgba(255,255,255,0)");new Chart(r,{type:"line",options:{responsive:!0,maintainAspectRatio:!1,datasetStrokeWidth:3,pointDotStrokeWidth:4,tooltipFillColor:"rgba(255, 145, 73,0.8)",legend:{display:!1},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!1,ticks:{min:0,max:85}}]},title:{display:!1,fontColor:"#FFF",fullWidth:!1,fontSize:30,text:"52%"}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul"],datasets:[{label:"Silver",data:[30,40,20,55,40,60,45],backgroundColor:"transparent",borderColor:"#FF9149",borderWidth:3,strokeColor:"#FF9149",pointRadius:0}]}});var i=t.getElementById("euro-chart").getContext("2d");(n=i.createLinearGradient(0,0,0,100)).addColorStop(0,"rgba(30, 159, 242,0.4)"),n.addColorStop(1,"rgba(255,255,255,0)");new Chart(i,{type:"line",options:{responsive:!0,maintainAspectRatio:!1,datasetStrokeWidth:3,pointDotStrokeWidth:4,tooltipFillColor:"rgba(30, 159, 242,0.8)",legend:{display:!1},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!1,ticks:{min:0,max:85}}]},title:{display:!1,fontColor:"#FFF",fullWidth:!1,fontSize:30,text:"52%"}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul"],datasets:[{label:"euro",data:[20,50,30,47,60,40,70],backgroundColor:"transparent",borderColor:"#1e9ff2",borderWidth:3,strokeColor:"#1e9ff2",pointRadius:0}]}});var n,l=t.getElementById("bitcoin-chart").getContext("2d");(n=l.createLinearGradient(0,0,0,100)).addColorStop(0,"rgba(255, 73, 97,0.4)"),n.addColorStop(1,"rgba(255,255,255,0)");var s,d,p,c,h,f,m,u;new Chart(l,{type:"line",options:{responsive:!0,maintainAspectRatio:!1,datasetStrokeWidth:3,pointDotStrokeWidth:4,tooltipFillColor:"rgba(255, 73, 97,0.8)",legend:{display:!1},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!1,ticks:{min:0,max:85}}]},title:{display:!1,fontColor:"#FFF",fullWidth:!1,fontSize:30,text:"52%"}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul"],datasets:[{label:"bitcoin",data:[30,50,40,55,45,65,53],backgroundColor:"transparent",borderColor:"#FF4961",borderWidth:3,strokeColor:"#FF4961",pointRadius:0}]}});s=function(e,t,a){var o=new Chartist.Line("#"+e,{labels:t,series:[a]},{lineSmooth:Chartist.Interpolation.simple({divisor:2}),fullWidth:!0,chartPadding:{right:25},series:{"series-1":{showArea:!1}},axisX:{showGrid:!1},axisY:{labelInterpolationFnc:function(e){return e/1e3+"K"},scaleMinSpace:40},plugins:[Chartist.plugins.tooltip()],low:0,showPoint:!1,height:300});o.on("created",(function(t){var a=t.svg.querySelector("defs")||t.svg.elem("defs"),o=(t.svg.width(),t.svg.height(),a.elem("filter",{x:0,y:"-10%",id:"shadow"+e},"",!0));return o.elem("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"50",result:"offsetBlur"}),o.elem("feOffset",{dx:"0",dy:"15"}),o.elem("feBlend",{in:"SourceGraphic",mode:"multiply"}),a.elem("linearGradient",{id:e+"-gradient",x1:0,y1:0,x2:1,y2:0}).elem("stop",{offset:0,"stop-color":"rgba(22, 141, 238, 1)"}).parent().elem("stop",{offset:1,"stop-color":"rgba(98, 188, 246, 1)"}),a})).on("draw",(function(t){"line"===t.type?t.element.attr({filter:"url(#shadow"+e+")"}):"point"===t.type&&new Chartist.Svg(t.element._node.parentNode).elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y,class:"ct-point-content"}),"line"!==t.type&&"area"!=t.type||t.element.animate({d:{begin:1e3*t.index,dur:1e3,from:t.path.clone().scale(1,0).translate(0,t.chartRect.height()).stringify(),to:t.path.clone().stringify(),easing:Chartist.Svg.Easing.easeOutQuint}})}))},d=["1st","2nd","3rd","4th","5th","6th","7th","8th"],p={name:"series-1",data:[0,4500,2600,6100,2600,6500,3200,6800]},c=["W1","W2","W4","W5","W6","W7","W8"],h={name:"series-1",data:[77e3,18e3,61e3,26e3,58e3,32e3,7e4,45e3]},f=["AUG","SEP","OTC","NOV","DEC","JAN","FEB"],m={name:"series-1",data:[1e5,5e5,3e5,7e5,1e5,2e5,7e5,5e4]},(u=function(e){switch((e||a(".chart-action").find(".active")).attr("href")){case"#scoreLineToDay":s("scoreLineToDay",d,p);break;case"#scoreLineToWeek":s("scoreLineToWeek",c,h);break;case"#scoreLineToMonth":s("scoreLineToMonth",f,m)}})(),a(".chart-action li a").on("click",(function(){u(a(this))})),a(".card-form").card({container:".card-wrapper"}),a(".jp-card").addClass("jp-card-visa jp-card-identified");var b=moment().format("YYYY-MM"),y=[{date:b+"-10",title:"Persian Kitten Auction",location:"Center for Beautiful Cats"},{date:b+"-19",title:"Cat Frisbee",location:"Jefferson Park"},{date:b+"-23",title:"Kitten Demonstration",location:"Center for Beautiful Cats"},{date:moment().add("month",1).format("YYYY-MM")+"-07",title:"Small Cat Photo Session",location:"Center for Cat Photography"}];a("#bank-calendar").clndr({template:a("#bank-calendar-template").html(),events:y})}(window,document,jQuery);