KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/public/admin-asset/js/statistics/sparkline/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : //var/www/html/jewelry-pos/public/admin-asset/js/statistics/sparkline/sparkline.bundle.js


!function(S,X,z){var t;t=function(L){"use strict";function t(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:z,normalRangeMax:z,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:z,chartRangeMax:z,chartRangeMinX:z,chartRangeMaxX:z,tooltipFormat:new v('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:z,nullColor:z,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:z,chartRangeMin:z,chartRangeClip:!1,colorMap:z,tooltipFormat:new v('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new v('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:z,thresholdValue:0,chartRangeMax:z,chartRangeMin:z,chartRangeClip:!1,tooltipFormat:new v("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:z,tooltipFormat:new v("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new v('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:z,targetColor:"#4a2",chartRangeMax:z,chartRangeMin:z,tooltipFormat:new v("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}}function e(){function t(){this.init.apply(this,arguments)}var e;return 1<arguments.length?(arguments[0]?(t.prototype=L.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],2<arguments.length&&((e=Array.prototype.slice.call(arguments,1,-1)).unshift(t.prototype),L.extend.apply(L,e))):t.prototype=arguments[0],t.prototype.cls=t}var v,A,C,F,B,O,g,w,i,n,p,$,c,s,r,T,V,o,a,h,l,b,u,d,f,m,x,y={},R=0;L.SPFormatClass=v=e({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,i){var s,r,n,a,o,h=this,l=t;return this.format.replace(this.fre,function(){return r=arguments[1],n=arguments[3],(s=h.precre.exec(r))?(o=s[2],r=s[1]):o=!1,(a=l[r])===z?"":n&&e&&e[n]?e[n].get?e[n].get(a)||a:e[n][a]||a:(g(a)&&(a=i.get("numberFormatter")?i.get("numberFormatter")(a):p(a,o,i.get("numberDigitGroupCount"),i.get("numberDigitGroupSep"),i.get("numberDecimalMark"))),a)})}}),L.spformat=function(t,e){return new v(t,e)},A=function(t,e,i){return t<e?e:i<t?i:t},C=function(t,e){var i;return 2===e?(i=X.floor(t.length/2),t.length%2?t[i]:(t[i-1]+t[i])/2):t.length%2?(i=(t.length*e+e)/4)%1?(t[X.floor(i)]+t[X.floor(i)-1])/2:t[i-1]:(i=(t.length*e+2)/4)%1?(t[X.floor(i)]+t[X.floor(i)-1])/2:t[i-1]},F=function(t){var e;switch(t){case"undefined":t=z;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},B=function(t){for(var e=[],i=t.length;i--;)e[i]=F(t[i]);return e},O=function(t,e){for(var i=[],s=0,r=t.length;s<r;s++)t[s]!==e&&i.push(t[s]);return i},g=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},p=function(t,e,i,s,r){var n,a;for(t=(!1===e?parseFloat(t).toString():t.toFixed(e)).split(""),(n=(n=L.inArray(".",t))<0?t.length:n)<t.length&&(t[n]=r),a=n-i;0<a;a-=i)t.splice(a,0,s);return t.join("")},w=function(t,e,i){for(var s=e.length;s--;)if((!i||null!==e[s])&&e[s]!==t)return!1;return!0},n=function(t){return L.isArray(t)?t:[t]},i=function(t){var e,i;if(S.createStyleSheet)try{return void(S.createStyleSheet().cssText=t)}catch(t){i=!0}(e=S.createElement("style")).type="text/css",S.getElementsByTagName("head")[0].appendChild(e),i?S.styleSheets[S.styleSheets.length-1].cssText=t:e["string"==typeof S.body.style.WebkitAppearance?"innerText":"innerHTML"]=t},L.fn.simpledraw=function(t,e,i,s){var r,n;if(i&&(r=this.data("_jqs_vcanvas")))return r;if(!1===L.fn.sparkline.canvas)return!1;if(L.fn.sparkline.canvas===z){var a=S.createElement("canvas");if(a.getContext&&a.getContext("2d"))L.fn.sparkline.canvas=function(t,e,i,s){return new f(t,e,i,s)};else{if(!S.namespaces||S.namespaces.v)return L.fn.sparkline.canvas=!1;S.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),L.fn.sparkline.canvas=function(t,e,i,s){return new m(t,e,i)}}}return t===z&&(t=L(this).innerWidth()),e===z&&(e=L(this).innerHeight()),r=L.fn.sparkline.canvas(t,e,this,s),(n=L(this).data("_jqs_mhandler"))&&n.registerCanvas(r),r},L.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},L.RangeMapClass=$=e({init:function(t){var e,i,s=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&-1<e.indexOf(":")&&((i=e.split(":"))[0]=0===i[0].length?-1/0:parseFloat(i[0]),i[1]=0===i[1].length?1/0:parseFloat(i[1]),i[2]=t[e],s.push(i));this.map=t,this.rangelist=s||!1},get:function(t){var e,i,s,r=this.rangelist;if((s=this.map[t])!==z)return s;if(r)for(e=r.length;e--;)if((i=r[e])[0]<=t&&i[1]>=t)return i[2];return z}}),L.range_map=function(t){return new $(t)},c=e({init:function(t,e){var i=L(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=L(t.canvas);this.canvas=t,(this.$canvas=e).mouseenter(L.proxy(this.mouseenter,this)),e.mouseleave(L.proxy(this.mouseleave,this)),e.click(L.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=z)},mouseclick:function(t){var e=L.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(t){L(S.body).unbind("mousemove.jqs"),L(S.body).bind("mousemove.jqs",L.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new s(this.options),this.tooltip.updatePosition(t.pageX,t.pageY)),this.updateDisplay()},mouseleave:function(){L(S.body).unbind("mousemove.jqs");var t,e=this.splist,i=e.length,s=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),t=0;t<i;t++)e[t].clearRegionHighlight()&&(s=!0);s&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var t,e,i,s,r=this.splist,n=r.length,a=!1,o=this.$canvas.offset(),h=this.currentPageX-o.left,l=this.currentPageY-o.top;if(this.over){for(e=0;e<n;e++)(i=r[e].setRegionHighlight(this.currentEl,h,l))&&(a=!0);if(a){if((s=L.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(s),this.tooltip){for(t="",e=0;e<n;e++)t+=r[e].getCurrentRegionTooltip();this.tooltip.setContent(t)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),s=e({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(t){var e,i=t.get("tooltipClassname","jqstooltip"),s=this.sizeStyle;this.container=t.get("tooltipContainer")||S.body,this.tooltipOffsetX=t.get("tooltipOffsetX",10),this.tooltipOffsetY=t.get("tooltipOffsetY",12),L("#jqssizetip").remove(),L("#jqstooltip").remove(),this.sizetip=L("<div/>",{id:"jqssizetip",style:s,class:i}),this.tooltip=L("<div/>",{id:"jqstooltip",class:i}).appendTo(this.container),e=this.tooltip.offset(),this.offsetLeft=e.left,this.offsetTop=e.top,this.hidden=!0,L(window).unbind("resize.jqs scroll.jqs"),L(window).bind("resize.jqs scroll.jqs",L.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=L(window).scrollTop(),this.scrollLeft=L(window).scrollLeft(),this.scrollRight=this.scrollLeft+L(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(t===z){if(this.mousex===z)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=z,L(window).unbind("resize.jqs scroll.jqs")}}),L(function(){i('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')}),x=[],L.fn.sparkline=function(l,i){return this.each(function(){function t(){var t,e,i,s,r,n="html"===l||l===z?((r=this.getAttribute(o.get("tagValuesAttribute")))!==z&&null!==r||(r=h.html()),r.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):l,a="auto"===o.get("width")?n.length*o.get("defaultPixelsPerValue"):o.get("width");"auto"===o.get("height")?o.get("composite")&&L.data(this,"_jqs_vcanvas")||((e=S.createElement("span")).innerHTML="a",h.html(e),t=L(e).innerHeight()||L(e).height(),L(e).remove(),e=null):t=o.get("height"),o.get("disableInteraction")?i=!1:(i=L.data(this,"_jqs_mhandler"))?o.get("composite")||i.reset():(i=new c(this,o),L.data(this,"_jqs_mhandler",i)),!o.get("composite")||L.data(this,"_jqs_vcanvas")?((s=new(L.fn.sparkline[o.get("type")])(this,n,o,a,t)).render(),i&&i.registerSparkline(s)):L.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),L.data(this,"_jqs_errnotify",!0))}var e,o=new L.fn.sparkline.options(this,i),h=L(this);if(L(this).html()&&!o.get("disableHiddenCheck")&&L(this).is(":hidden")||!L(this).parents("body").length){if(!o.get("composite")&&L.data(this,"_jqs_pending"))for(e=x.length;e;e--)x[e-1][0]==this&&x.splice(e-1,1);x.push([this,t]),L.data(this,"_jqs_pending",!0)}else t.call(this)})},L.fn.sparkline.defaults=t(),L.sparkline_display_visible=function(){for(var t,e=[],i=0,s=x.length;i<s;i++)t=x[i][0],L(t).is(":visible")&&!L(t).parents().is(":hidden")?(x[i][1].call(t),L.data(x[i][0],"_jqs_pending",!1),e.push(i)):L(t).closest("html").length||L.data(t,"_jqs_pending")||(L.data(x[i][0],"_jqs_pending",!1),e.push(i));for(i=e.length;i;i--)x.splice(e[i-1],1)},L.fn.sparkline.options=e({init:function(t,e){var i,s,r,n;this.userOptions=e=e||{},this.tag=t,this.tagValCache={},r=(s=L.fn.sparkline.defaults).common,this.tagOptionsPrefix=e.enableTagOptions&&(e.tagOptionsPrefix||r.tagOptionsPrefix),i=(n=this.getTagSetting("type"))===y?s[e.type||r.type]:s[n],this.mergedOptions=L.extend({},r,i,e)},getTagSetting:function(t){var e,i,s,r,n=this.tagOptionsPrefix;if(!1===n||n===z)return y;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(n+t))===z||null===e)e=y;else if("["===e.substr(0,1))for(i=(e=e.substr(1,e.length-2).split(",")).length;i--;)e[i]=F(e[i].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(s=e.substr(1,e.length-2).split(","),e={},i=s.length;i--;)e[(r=s[i].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=F(r[1].replace(/(^\s*)|(\s*$)/g,""));else e=F(e);this.tagValCache.key=e}return e},get:function(t,e){var i,s=this.getTagSetting(t);return s!==y?s:(i=this.mergedOptions[t])===z?e:i}}),L.fn.sparkline._base=e({disabled:!1,init:function(t,e,i,s,r){this.el=t,this.$el=L(t),this.values=e,this.options=i,this.width=s,this.height=r,this.currentRegion=z},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,i){var s,r=this.currentRegion,n=!this.options.get("disableHighlight");return e>this.canvasWidth||i>this.canvasHeight||e<0||i<0?null:r!==(s=this.getRegion(t,e,i))&&(r!==z&&n&&this.removeHighlight(),(this.currentRegion=s)!==z&&n&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==z&&(this.removeHighlight(),!(this.currentRegion=z))},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,e,i,s,r,n,a,o,h,l,g,p,c,u,d=this.options,f="",m=[];if(this.currentRegion===z)return"";if(t=this.getCurrentRegionFields(),g=d.get("tooltipFormatter"))return g(this,d,t);if(d.get("tooltipChartTitle")&&(f+='<div class="jqs jqstitle">'+d.get("tooltipChartTitle")+"</div>\n"),!(e=this.options.get("tooltipFormat")))return"";if(L.isArray(e)||(e=[e]),L.isArray(t)||(t=[t]),a=this.options.get("tooltipFormatFieldlist"),o=this.options.get("tooltipFormatFieldlistKey"),a&&o){for(h=[],n=t.length;n--;)l=t[n][o],-1!=(u=L.inArray(l,a))&&(h[u]=t[n]);t=h}for(i=e.length,c=t.length,n=0;n<i;n++)for("string"==typeof(p=e[n])&&(p=new v(p)),s=p.fclass||"jqsfield",u=0;u<c;u++)t[u].isNull&&d.get("tooltipSkipNull")||(L.extend(t[u],{prefix:d.get("tooltipPrefix"),suffix:d.get("tooltipSuffix")}),r=p.render(t[u],d.get("tooltipValueLookups"),d),m.push('<div class="'+s+'">'+r+"</div>"));return m.length?f+m.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,e){var i,s,r,n,a=e.get("highlightColor"),o=e.get("highlightLighten");if(a)return a;if(o&&(i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(r=[],s=4===t.length?16:1,n=0;n<3;n++)r[n]=A(X.round(parseInt(i[n+1],16)*s*o),0,255);return"rgb("+r.join(",")+")"}return t}}),r={changeHighlight:function(t){var e,i=this.currentRegion,s=this.target,r=this.regionShapes[i];r&&(e=this.renderRegion(i,t),L.isArray(e)||L.isArray(r)?(s.replaceWithShapes(r,e),this.regionShapes[i]=L.map(e,function(t){return t.id})):(s.replaceWithShape(r,e),this.regionShapes[i]=e.id))},render:function(){var t,e,i,s,r=this.values,n=this.target,a=this.regionShapes;if(this.cls._super.render.call(this)){for(i=r.length;i--;)if(t=this.renderRegion(i))if(L.isArray(t)){for(e=[],s=t.length;s--;)t[s].append(),e.push(t[s].id);a[i]=e}else t.append(),a[i]=t.id;else a[i]=null;n.render()}}},L.fn.sparkline.line=T=e(L.fn.sparkline._base,{type:"line",init:function(t,e,i,s,r){T._super.init.call(this,t,e,i,s,r),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,i){for(var s=this.regionMap,r=s.length;r--;)if(null!==s[r]&&e>=s[r][0]&&e<=s[r][1])return s[r][2];return z},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,i=this.currentRegion,s=this.target,r=this.vertices[i],n=this.options,a=n.get("spotRadius"),o=n.get("highlightSpotColor"),h=n.get("highlightLineColor");r&&(a&&o&&(t=s.drawCircle(r[0],r[1],a,z,o),this.highlightSpotId=t.id,s.insertAfterShape(this.lastShapeId,t)),h&&(e=s.drawLine(r[0],this.canvasTop,r[0],this.canvasTop+this.canvasHeight,h),this.highlightLineId=e.id,s.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){for(var t,e,i,s,r=this.values,n=r.length,a=this.xvalues,o=this.yvalues,h=this.yminmax,l=0;l<n;l++)t=r[l],e="string"==typeof r[l],i="object"==typeof r[l]&&r[l]instanceof Array,s=e&&r[l].split(":"),e&&2===s.length?(a.push(Number(s[0])),o.push(Number(s[1])),h.push(Number(s[1]))):i?(a.push(t[0]),o.push(t[1]),h.push(t[1])):(a.push(l),null===r[l]||"null"===r[l]?o.push(null):(o.push(Number(t)),h.push(Number(t))));this.options.get("xvalues")&&(a=this.options.get("xvalues")),this.maxy=this.maxyorg=X.max.apply(X,h),this.miny=this.minyorg=X.min.apply(X,h),this.maxx=X.max.apply(X,a),this.minx=X.min.apply(X,a),this.xvalues=a,this.yvalues=o,this.yminmax=h},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),i=t.get("normalRangeMax");e!==z&&(e<this.miny&&(this.miny=e),i>this.maxy&&(this.maxy=i)),t.get("chartRangeMin")!==z&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==z&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==z&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==z&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,e,i,s,r){var n=this.options.get("normalRangeMin"),a=this.options.get("normalRangeMax"),o=e+X.round(i-i*((a-this.miny)/r)),h=X.round(i*(a-n)/r);this.target.drawRect(t,o,s,h,z,this.options.get("normalRangeColor")).append()},render:function(){var t,e,i,s,r,n,a,o,h,l,g,p,c,u,d,f,m,v,x,y,C,b,w,R,S=this.options,k=this.target,M=this.canvasWidth,_=this.canvasHeight,H=this.vertices,j=S.get("spotRadius"),W=this.regionMap;if(T._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),b=this.xvalues,w=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(s=r=0,t=this.maxx-this.minx==0?1:this.maxx-this.minx,e=this.maxy-this.miny==0?1:this.maxy-this.miny,i=this.yvalues.length-1,j&&(M<4*j||_<4*j)&&(j=0),j&&(((y=S.get("highlightSpotColor")&&!S.get("disableInteraction"))||S.get("minSpotColor")||S.get("spotColor")&&w[i]===this.miny)&&(_-=X.ceil(j)),(y||S.get("maxSpotColor")||S.get("spotColor")&&w[i]===this.maxy)&&(_-=X.ceil(j),s+=X.ceil(j)),!y&&(!S.get("minSpotColor")&&!S.get("maxSpotColor")||w[0]!==this.miny&&w[0]!==this.maxy)||(r+=X.ceil(j),M-=X.ceil(j)),(y||S.get("spotColor")||S.get("minSpotColor")||S.get("maxSpotColor")&&(w[i]===this.miny||w[i]===this.maxy))&&(M-=X.ceil(j))),_--,S.get("normalRangeMin")===z||S.get("drawNormalOnTop")||this.drawNormalRange(r,s,_,M,e),o=[a=[]],c=u=null,d=w.length,R=0;R<d;R++)h=b[R],g=b[R+1],l=w[R],u=(p=r+X.round((h-this.minx)*(M/t)))+((R<d-1?r+X.round((g-this.minx)*(M/t)):M)-p)/2,W[R]=[c||0,u,R],c=u,null===l?R&&(null!==w[R-1]&&(a=[],o.push(a)),H.push(null)):(l<this.miny&&(l=this.miny),l>this.maxy&&(l=this.maxy),a.length||a.push([p,s+_]),n=[p,s+X.round(_-_*((l-this.miny)/e))],a.push(n),H.push(n));for(f=[],m=[],v=o.length,R=0;R<v;R++)(a=o[R]).length&&(S.get("fillColor")&&(a.push([a[a.length-1][0],s+_]),m.push(a.slice(0)),a.pop()),2<a.length&&(a[0]=[a[0][0],a[1][1]]),f.push(a));for(v=m.length,R=0;R<v;R++)k.drawShape(m[R],S.get("fillColor"),S.get("fillColor")).append();for(S.get("normalRangeMin")!==z&&S.get("drawNormalOnTop")&&this.drawNormalRange(r,s,_,M,e),v=f.length,R=0;R<v;R++)k.drawShape(f[R],S.get("lineColor"),z,S.get("lineWidth")).append();if(j&&S.get("valueSpots"))for((x=S.get("valueSpots")).get===z&&(x=new $(x)),R=0;R<d;R++)(C=x.get(w[R]))&&k.drawCircle(r+X.round((b[R]-this.minx)*(M/t)),s+X.round(_-_*((w[R]-this.miny)/e)),j,z,C).append();j&&S.get("spotColor")&&null!==w[i]&&k.drawCircle(r+X.round((b[b.length-1]-this.minx)*(M/t)),s+X.round(_-_*((w[i]-this.miny)/e)),j,z,S.get("spotColor")).append(),this.maxy!==this.minyorg&&(j&&S.get("minSpotColor")&&(h=b[L.inArray(this.minyorg,w)],k.drawCircle(r+X.round((h-this.minx)*(M/t)),s+X.round(_-_*((this.minyorg-this.miny)/e)),j,z,S.get("minSpotColor")).append()),j&&S.get("maxSpotColor")&&(h=b[L.inArray(this.maxyorg,w)],k.drawCircle(r+X.round((h-this.minx)*(M/t)),s+X.round(_-_*((this.maxyorg-this.miny)/e)),j,z,S.get("maxSpotColor")).append())),this.lastShapeId=k.getLastShapeId(),this.canvasTop=s,k.render()}}}),L.fn.sparkline.bar=V=e(L.fn.sparkline._base,r,{type:"bar",init:function(t,e,i,s,r){var n,a,o,h,l,g,p,c,u,d,f,m,v,x,y,C,b,w,R,S=parseInt(i.get("barWidth"),10),k=parseInt(i.get("barSpacing"),10),M=i.get("chartRangeMin"),_=i.get("chartRangeMax"),H=i.get("chartRangeClip"),j=1/0,W=-1/0;for(V._super.init.call(this,t,e,i,s,r),I=0,P=e.length;I<P;I++)((n="string"==typeof(w=e[I])&&-1<w.indexOf(":"))||L.isArray(w))&&(v=!0,n&&(w=e[I]=B(w.split(":"))),w=O(w,null),(a=X.min.apply(X,w))<j&&(j=a),W<(o=X.max.apply(X,w))&&(W=o));this.stacked=v,this.regionShapes={},this.barWidth=S,this.barSpacing=k,this.totalBarWidth=S+k,this.width=s=e.length*S+(e.length-1)*k,this.initTarget(),H&&(f=M===z?-1/0:M,m=_===z?1/0:_),l=[],h=v?[]:l;for(var T=[],q=[],I=0,P=e.length;I<P;I++)if(v)for(x=e[I],e[I]=b=[],T[I]=0,h[I]=q[I]=0,y=0,C=x.length;y<C;y++)null!==(w=b[y]=H?A(x[y],f,m):x[y])&&(0<w&&(T[I]+=w),j<0&&0<W?w<0?q[I]+=X.abs(w):h[I]+=w:h[I]+=X.abs(w-(w<0?W:j)),l.push(w));else w=H?A(e[I],f,m):e[I],null!==(w=e[I]=F(w))&&l.push(w);this.max=d=X.max.apply(X,l),this.min=u=X.min.apply(X,l),this.stackMax=W=v?X.max.apply(X,T):d,this.stackMin=j=v?X.min.apply(X,l):u,i.get("chartRangeMin")!==z&&(i.get("chartRangeClip")||i.get("chartRangeMin")<u)&&(u=i.get("chartRangeMin")),i.get("chartRangeMax")!==z&&(i.get("chartRangeClip")||i.get("chartRangeMax")>d)&&(d=i.get("chartRangeMax")),this.zeroAxis=p=i.get("zeroAxis",!0),c=u<=0&&0<=d&&p?0:0==p||0<u?u:d,this.xaxisOffset=c,g=v?X.max.apply(X,h)+X.max.apply(X,q):d-u,this.canvasHeightEf=p&&u<0?this.canvasHeight-2:this.canvasHeight-1,u<c?(R=((v&&0<=d?W:d)-c)/g*this.canvasHeight)!==X.ceil(R)&&(this.canvasHeightEf-=2,R=X.ceil(R)):R=this.canvasHeight,this.yoffset=R,L.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===z&&(this.colorMapByValue=new $(this.colorMapByValue))),this.range=g},getRegion:function(t,e,i){var s=X.floor(e/this.totalBarWidth);return s<0||s>=this.values.length?z:s},getCurrentRegionFields:function(){for(var t,e=this.currentRegion,i=n(this.values[e]),s=[],r=i.length;r--;)t=i[r],s.push({isNull:null===t,value:t,color:this.calcColor(r,t,e),offset:e});return s},calcColor:function(t,e,i){var s,r=this.colorMapByIndex,n=this.colorMapByValue,a=this.options,o=this.stacked?a.get("stackedBarColor"):e<0?a.get("negBarColor"):a.get("barColor");return 0===e&&a.get("zeroColor")!==z&&(o=a.get("zeroColor")),n&&(s=n.get(e))?o=s:r&&r.length>i&&(o=r[i]),L.isArray(o)?o[t%o.length]:o},renderRegion:function(t,e){var i,s,r,n,a,o,h=this.values[t],l=this.options,g=this.xaxisOffset,p=[],c=this.range,u=this.stacked,d=this.target,f=t*this.totalBarWidth,m=this.canvasHeightEf,v=this.yoffset,x=(h=L.isArray(h)?h:[h]).length,y=h[0],C=w(null,h),b=w(g,h,!0);if(C)return l.get("nullColor")?(r=e?l.get("nullColor"):this.calcHighlightColor(l.get("nullColor"),l),i=0<v?v-1:v,d.drawRect(f,i,this.barWidth-1,0,r,r)):z;for(n=v,a=0;a<x;a++){if(y=h[a],u&&y===g){if(!b||o)continue;o=!0}s=0<c?X.floor(m*(X.abs(y-g)/c))+1:1,y<g||y===g&&0===v?(i=n,n+=s):(i=v-s,v-=s),r=this.calcColor(a,y,t),e&&(r=this.calcHighlightColor(r,l)),p.push(d.drawRect(f,i,this.barWidth-1,s-1,r,r))}return 1===p.length?p[0]:p}}),L.fn.sparkline.tristate=o=e(L.fn.sparkline._base,r,{type:"tristate",init:function(t,e,i,s,r){var n=parseInt(i.get("barWidth"),10),a=parseInt(i.get("barSpacing"),10);o._super.init.call(this,t,e,i,s,r),this.regionShapes={},this.barWidth=n,this.barSpacing=a,this.totalBarWidth=n+a,this.values=L.map(e,Number),this.width=s=e.length*n+(e.length-1)*a,L.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===z&&(this.colorMapByValue=new $(this.colorMapByValue))),this.initTarget()},getRegion:function(t,e,i){return X.floor(e/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===z,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var i,s=this.values,r=this.options,n=this.colorMapByIndex,a=this.colorMapByValue,o=a&&(i=a.get(t))?i:n&&n.length>e?n[e]:s[e]<0?r.get("negBarColor"):0<s[e]?r.get("posBarColor"):r.get("zeroBarColor");return o},renderRegion:function(t,e){var i,s=this.values,r=this.options,n=this.target,a=n.pixelHeight,o=X.round(a/2),h=t*this.totalBarWidth,l=s[t]<0?(i=o)-1:0<s[t]?(i=0,o-1):(i=o-1,2),g=this.calcColor(s[t],t);if(null!==g)return e&&(g=this.calcHighlightColor(g,r)),n.drawRect(h,i,this.barWidth-1,l-1,g,g)}}),L.fn.sparkline.discrete=a=e(L.fn.sparkline._base,r,{type:"discrete",init:function(t,e,i,s,r){a._super.init.call(this,t,e,i,s,r),this.regionShapes={},this.values=e=L.map(e,Number),this.min=X.min.apply(X,e),this.max=X.max.apply(X,e),this.range=this.max-this.min,this.width=s="auto"===i.get("width")?2*e.length:this.width,this.interval=X.floor(s/e.length),this.itemWidth=s/e.length,i.get("chartRangeMin")!==z&&(i.get("chartRangeClip")||i.get("chartRangeMin")<this.min)&&(this.min=i.get("chartRangeMin")),i.get("chartRangeMax")!==z&&(i.get("chartRangeClip")||i.get("chartRangeMax")>this.max)&&(this.max=i.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===i.get("lineHeight")?X.round(.3*this.canvasHeight):i.get("lineHeight"))},getRegion:function(t,e,i){return X.floor(e/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===z,value:this.values[t],offset:t}},renderRegion:function(t,e){var i=this.values,s=this.options,r=this.min,n=this.max,a=this.range,o=this.interval,h=this.target,l=this.canvasHeight,g=this.lineHeight,p=l-g,c=A(i[t],r,n),u=t*o,d=X.round(p-(c-r)/a*p),f=s.get("thresholdColor")&&c<s.get("thresholdValue")?s.get("thresholdColor"):s.get("lineColor");return e&&(f=this.calcHighlightColor(f,s)),h.drawLine(u,d,u,d+g,f)}}),L.fn.sparkline.bullet=h=e(L.fn.sparkline._base,{type:"bullet",init:function(t,e,i,s,r){var n,a,o;h._super.init.call(this,t,e,i,s,r),this.values=e=B(e),(o=e.slice())[0]=null===o[0]?o[2]:o[0],o[1]=null===e[1]?o[2]:o[1],n=X.min.apply(X,e),a=X.max.apply(X,e),n=i.get("base")===z?n<0?n:0:i.get("base"),this.min=n,this.max=a,this.range=a-n,this.shapes={},this.valueShapes={},this.regiondata={},this.width=s="auto"===i.get("width")?"4.0em":s,this.target=this.$el.simpledraw(s,r,i.get("composite")),e.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,i){var s=this.target.getShapeAt(t,e,i);return s!==z&&this.shapes[s]!==z?this.shapes[s]:z},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,i=this.currentRegion,s=this.valueShapes[i];switch(delete this.shapes[s],i.substr(0,1)){case"r":e=this.renderRange(i.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[i]=e.id,this.shapes[e.id]=i,this.target.replaceWithShape(s,e)},renderRange:function(t,e){var i=this.values[t],s=X.round(this.canvasWidth*((i-this.min)/this.range)),r=this.options.get("rangeColors")[t-2];return e&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,0,s-1,this.canvasHeight-1,r,r)},renderPerformance:function(t){var e=this.values[1],i=X.round(this.canvasWidth*((e-this.min)/this.range)),s=this.options.get("performanceColor");return t&&(s=this.calcHighlightColor(s,this.options)),this.target.drawRect(0,X.round(.3*this.canvasHeight),i-1,X.round(.4*this.canvasHeight)-1,s,s)},renderTarget:function(t){var e=this.values[0],i=X.round(this.canvasWidth*((e-this.min)/this.range)-this.options.get("targetWidth")/2),s=X.round(.1*this.canvasHeight),r=this.canvasHeight-2*s,n=this.options.get("targetColor");return t&&(n=this.calcHighlightColor(n,this.options)),this.target.drawRect(i,s,this.options.get("targetWidth")-1,r-1,n,n)},render:function(){var t,e,i=this.values.length,s=this.target;if(h._super.render.call(this)){for(t=2;t<i;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),s.render()}}}),L.fn.sparkline.pie=l=e(L.fn.sparkline._base,{type:"pie",init:function(t,e,i,s,r){var n,a=0;if(l._super.init.call(this,t,e,i,s,r),this.shapes={},this.valueShapes={},this.values=e=L.map(e,Number),"auto"===i.get("width")&&(this.width=this.height),0<e.length)for(n=e.length;n--;)a+=e[n];this.total=a,this.initTarget(),this.radius=X.floor(X.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,i){var s=this.target.getShapeAt(t,e,i);return s!==z&&this.shapes[s]!==z?this.shapes[s]:z},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===z,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,i=this.renderSlice(e,t),s=this.valueShapes[e];delete this.shapes[s],this.target.replaceWithShape(s,i),this.valueShapes[e]=i.id,this.shapes[i.id]=e},renderSlice:function(t,e){for(var i,s,r,n=this.target,a=this.options,o=this.radius,h=a.get("borderWidth"),l=a.get("offset"),g=2*X.PI,p=this.values,c=this.total,u=l?2*X.PI*(l/360):0,d=p.length,f=0;f<d;f++){if(s=i=u,0<c&&(s=u+g*(p[f]/c)),t===f)return r=a.get("sliceColors")[f%a.get("sliceColors").length],e&&(r=this.calcHighlightColor(r,a)),n.drawPieSlice(o,o,o-h,i,s,z,r);u=s}},render:function(){var t,e,i=this.target,s=this.values,r=this.options,n=this.radius,a=r.get("borderWidth"),o=r.get("donutWidth");if(l._super.render.call(this)){for(a&&i.drawCircle(n,n,X.floor(n-a/2),r.get("borderColor"),z,a).append(),e=s.length;e--;)s[e]&&(t=this.renderSlice(e).append(),this.valueShapes[e]=t.id,this.shapes[t.id]=e);o&&i.drawCircle(n,n,n-o,r.get("donutColor"),r.get("donutColor"),0).append(),i.render()}}}),L.fn.sparkline.box=b=e(L.fn.sparkline._base,{type:"box",init:function(t,e,i,s,r){b._super.init.call(this,t,e,i,s,r),this.values=L.map(e,Number),this.width="auto"===i.get("width")?"4.0em":s,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==z&&t.push({field:"lo",value:this.loutlier}),this.routlier!==z&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==z&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==z&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,e,i,s,r,n,a,o,h,l,g,p=this.target,c=this.values,u=c.length,d=this.options,f=this.canvasWidth,m=this.canvasHeight,v=d.get("chartRangeMin")===z?X.min.apply(X,c):d.get("chartRangeMin"),x=d.get("chartRangeMax")===z?X.max.apply(X,c):d.get("chartRangeMax"),y=0;if(b._super.render.call(this)){if(d.get("raw"))d.get("showOutliers")&&5<c.length?(e=c[0],t=c[1],s=c[2],r=c[3],n=c[4],a=c[5],o=c[6]):(t=c[0],s=c[1],r=c[2],n=c[3],a=c[4]);else if(c.sort(function(t,e){return t-e}),s=C(c,1),r=C(c,2),i=(n=C(c,3))-s,d.get("showOutliers")){for(t=a=z,h=0;h<u;h++)t===z&&c[h]>s-i*d.get("outlierIQR")&&(t=c[h]),c[h]<n+i*d.get("outlierIQR")&&(a=c[h]);e=c[0],o=c[u-1]}else t=c[0],a=c[u-1];this.quartiles=[s,r,n],this.lwhisker=t,this.rwhisker=a,this.loutlier=e,this.routlier=o,g=f/(x-v+1),d.get("showOutliers")&&(y=X.ceil(d.get("spotRadius")),g=(f-=2*X.ceil(d.get("spotRadius")))/(x-v+1),e<t&&p.drawCircle((e-v)*g+y,m/2,d.get("spotRadius"),d.get("outlierLineColor"),d.get("outlierFillColor")).append(),a<o&&p.drawCircle((o-v)*g+y,m/2,d.get("spotRadius"),d.get("outlierLineColor"),d.get("outlierFillColor")).append()),p.drawRect(X.round((s-v)*g+y),X.round(.1*m),X.round((n-s)*g),X.round(.8*m),d.get("boxLineColor"),d.get("boxFillColor")).append(),p.drawLine(X.round((t-v)*g+y),X.round(m/2),X.round((s-v)*g+y),X.round(m/2),d.get("lineColor")).append(),p.drawLine(X.round((t-v)*g+y),X.round(m/4),X.round((t-v)*g+y),X.round(m-m/4),d.get("whiskerColor")).append(),p.drawLine(X.round((a-v)*g+y),X.round(m/2),X.round((n-v)*g+y),X.round(m/2),d.get("lineColor")).append(),p.drawLine(X.round((a-v)*g+y),X.round(m/4),X.round((a-v)*g+y),X.round(m-m/4),d.get("whiskerColor")).append(),p.drawLine(X.round((r-v)*g+y),X.round(.1*m),X.round((r-v)*g+y),X.round(.9*m),d.get("medianColor")).append(),d.get("target")&&(l=X.ceil(d.get("spotRadius")),p.drawLine(X.round((d.get("target")-v)*g+y),X.round(m/2-l),X.round((d.get("target")-v)*g+y),X.round(m/2+l),d.get("targetColor")).append(),p.drawLine(X.round((d.get("target")-v)*g+y-l),X.round(m/2),X.round((d.get("target")-v)*g+y+l),X.round(m/2),d.get("targetColor")).append()),p.render()}}}),u=e({init:function(t,e,i,s){this.target=t,this.id=e,this.type=i,this.args=s},append:function(){return this.target.appendShape(this),this}}),d=e({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,e,i){t&&(this.width=t,this.height=e,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),L.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,i,s,r,n){return this.drawShape([[t,e],[i,s]],r,n)},drawShape:function(t,e,i,s){return this._genShape("Shape",[t,e,i,s])},drawCircle:function(t,e,i,s,r,n){return this._genShape("Circle",[t,e,i,s,r,n])},drawPieSlice:function(t,e,i,s,r,n,a){return this._genShape("PieSlice",[t,e,i,s,r,n,a])},drawRect:function(t,e,i,s,r,n){return this._genShape("Rect",[t,e,i,s,r,n])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,e){L(e).html(t)},_calculatePixelDims:function(t,e,i){var s=this._pxregex.exec(e);this.pixelHeight=s?s[1]:L(i).height(),s=this._pxregex.exec(t),this.pixelWidth=s?s[1]:L(i).width()},_genShape:function(t,e){var i=R++;return e.unshift(i),new u(this,i,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,i){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),f=e(d,{init:function(t,e,i,s){f._super.init.call(this,t,e,i),this.canvas=S.createElement("canvas"),i[0]&&(i=i[0]),L.data(i,"_jqs_vcanvas",this),L(this.canvas).css({display:"inline-block",width:t,height:e,verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(t,e,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=s,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=z,L(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,i){var s=this.canvas.getContext("2d");return t!==z&&(s.strokeStyle=t),s.lineWidth=i===z?1:i,e!==z&&(s.fillStyle=e),s},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=z},_drawShape:function(t,e,i,s,r){var n,a,o=this._getContext(i,s,r);for(o.beginPath(),o.moveTo(e[0][0]+.5,e[0][1]+.5),n=1,a=e.length;n<a;n++)o.lineTo(e[n][0]+.5,e[n][1]+.5);i!==z&&o.stroke(),s!==z&&o.fill(),this.targetX!==z&&this.targetY!==z&&o.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,e,i,s,r,n,a){var o=this._getContext(r,n,a);o.beginPath(),o.arc(e,i,s,0,2*X.PI,!1),this.targetX!==z&&this.targetY!==z&&o.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),r!==z&&o.stroke(),n!==z&&o.fill()},_drawPieSlice:function(t,e,i,s,r,n,a,o){var h=this._getContext(a,o);h.beginPath(),h.moveTo(e,i),h.arc(e,i,s,r,n,!1),h.lineTo(e,i),h.closePath(),a!==z&&h.stroke(),o&&h.fill(),this.targetX!==z&&this.targetY!==z&&h.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,i,s,r,n,a){return this._drawShape(t,[[e,i],[e+s,i],[e+s,i+r],[e,i+r],[e,i]],n,a)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i,s=this.shapeseq;for(this.shapes[e.id]=e,i=s.length;i--;)s[i]==t&&(s[i]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){for(var i,s,r=this.shapeseq,n={},a=t.length;a--;)n[t[a]]=!0;for(a=r.length;a--;)n[i=r[a]]&&(r.splice(a,1),delete this.shapes[i],s=a);for(a=e.length;a--;)r.splice(s,0,e[a].id),this.shapes[e[a].id]=e[a]},insertAfterShape:function(t,e){for(var i=this.shapeseq,s=i.length;s--;)if(i[s]===t)return i.splice(s+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){for(var e=this.shapeseq,i=e.length;i--;)if(e[i]===t){e.splice(i,1);break}delete this.shapes[t]},getShapeAt:function(t,e,i){return this.targetX=e,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var t,e,i=this.shapeseq,s=this.shapes,r=i.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<r;e++)this["_draw"+(t=s[i[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),m=e(d,{init:function(t,e,i){var s;m._super.init.call(this,t,e,i),i[0]&&(i=i[0]),L.data(i,"_jqs_vcanvas",this),this.canvas=S.createElement("span"),L(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:t,height:e,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(t,e,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,s='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",s),this.group=L(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,i,s,r){for(var n,a,o,h,l=[],g=0,p=e.length;g<p;g++)l[g]=e[g][0]+","+e[g][1];return n=l.splice(0,1),r=r===z?1:r,a=i===z?' stroked="false" ':' strokeWeight="'+r+'px" strokeColor="'+i+'" ',o=s===z?' filled="false"':' fillColor="'+s+'" filled="true" ',h=l[0]===l[l.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+a+o+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+n+" l "+l.join(", ")+" "+h+'e"> </v:shape>'},_drawCircle:function(t,e,i,s,r,n,a){return'<v:oval  id="jqsshape'+t+'" '+(r===z?' stroked="false" ':' strokeWeight="'+a+'px" strokeColor="'+r+'" ')+(n===z?' filled="false"':' fillColor="'+n+'" filled="true" ')+' style="position:absolute;top:'+(i-=s)+"px; left:"+(e-=s)+"px; width:"+2*s+"px; height:"+2*s+'px"></v:oval>'},_drawPieSlice:function(t,e,i,s,r,n,a,o){var h,l,g,p,c,u,d;if(r===n)return"";if(n-r==2*X.PI&&(r=0,n=2*X.PI),l=e+X.round(X.cos(r)*s),g=i+X.round(X.sin(r)*s),p=e+X.round(X.cos(n)*s),c=i+X.round(X.sin(n)*s),l===p&&g===c){if(n-r<X.PI)return"";l=p=e+s,g=c=i}return l===p&&g===c&&n-r<X.PI?"":(h=[e-s,i-s,e+s,i+s,l,g,p,c],u=a===z?' stroked="false" ':' strokeWeight="1px" strokeColor="'+a+'" ',d=o===z?' filled="false"':' fillColor="'+o+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+u+d+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+e+","+i+" wa "+h.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,i,s,r,n,a){return this._drawShape(t,[[e,i],[e,i+r],[e+s,i+r],[e+s,i],[e,i]],n,a)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=L("#jqsshape"+t),s=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=s},replaceWithShapes:function(t,e){for(var i=L("#jqsshape"+t[0]),s="",r=e.length,n=0;n<r;n++)s+=this["_draw"+e[n].type].apply(this,e[n].args);for(i[0].outerHTML=s,n=1;n<t.length;n++)L("#jqsshape"+t[n]).remove()},insertAfterShape:function(t,e){var i=L("#jqsshape"+t),s=this["_draw"+e.type].apply(this,e.args);i[0].insertAdjacentHTML("afterEnd",s)},removeShapeId:function(t){var e=L("#jqsshape"+t);this.group.removeChild(e[0])},getShapeAt:function(t,e,i){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})},"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.sparkline&&t(jQuery)}(document,Math),document.addEventListener("DOMContentLoaded",function(){$(".sparklines").sparkline("html",{enableTagOptions:!0,width:110,height:40,barSpacing:"3px",barWidth:"7px",spotRadius:3,highlightLineColor:rgb2hex($("#js-color-profile .color-danger-700").css("color")),targetColor:rgb2hex($("#js-color-profile .color-danger-500").css("color")),performanceColor:rgb2hex($("#js-color-profile .color-primary-700").css("color")),rangeColors:[rgb2hex($("#js-color-profile .color-primary-100").css("color")),rgb2hex($("#js-color-profile .color-primary-200").css("color")),rgb2hex($("#js-color-profile .color-primary-300").css("color"))],barColor:rgb2hex($("#js-color-profile .color-primary-500").css("color")),stackedBarColor:[rgb2hex($("#js-color-profile .color-danger-300").css("color")),rgb2hex($("#js-color-profile .color-info-300").css("color"))],sliceColors:[rgb2hex($("#js-color-profile .color-success-500").css("color")),rgb2hex($("#js-color-profile .color-info-500").css("color")),rgb2hex($("#js-color-profile .color-danger-500").css("color")),rgb2hex($("#js-color-profile .color-primary-500").css("color")),rgb2hex($("#js-color-profile .color-warning-500").css("color")),rgb2hex($("#js-color-profile .color-primary-700").css("color")),rgb2hex($("#js-color-profile .color-info-700").css("color")),rgb2hex($("#js-color-profile .color-danger-700").css("color"))]})});

© KUJUNTI.ID