text: "use strict";var Layout=function(){function a(){$(".sidenav-toggler").addClass("active"),$(".sidenav-toggler").data("action","sidenav-unpin"),$("body").append('<div class="backdrop d-xl-none" data-action="sidenav-unpin" data-target='+$("#sidenav-main").data("target")+" />"),Cookies.set("sidenav-state","pinned")}function e(){$(".sidenav-toggler").removeClass("active"),$(".sidenav-toggler").data("action","sidenav-pin"),$("body").removeClass("g-sidenav-pinned").addClass("g-sidenav-hidden"),$("body").find(".backdrop").remove(),Cookies.set("sidenav-state","unpinned")}var o=Cookies.get("sidenav-state")?Cookies.get("sidenav-state"):"pinned";$(window).width()>1200&&("pinned"==o&&a(),"unpinned"==Cookies.get("sidenav-state")&&e(),$(window).resize(function(){$("body").hasClass("g-sidenav-show")&&!$("body").hasClass("g-sidenav-pinned")&&$("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")})),$(window).width()<1200&&($("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden"),$("body").removeClass("g-sidenav-show"),$(window).resize(function(){$("body").hasClass("g-sidenav-show")&&!$("body").hasClass("g-sidenav-pinned")&&$("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")})),$("body").on("click","[data-action]",function(o){o.preventDefault();var n=$(this),s=n.data("action");n.data("target");switch(s){case"sidenav-pin":a();break;case"sidenav-unpin":e();break;case"search-show":n.data("target"),$("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-showing"),setTimeout(function(){$("body").removeClass("g-navbar-search-showing").addClass("g-navbar-search-show")},150),setTimeout(function(){$("body").addClass("g-navbar-search-shown")},300);break;case"search-close":n.data("target"),$("body").removeClass("g-navbar-search-shown"),setTimeout(function(){$("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-hiding")},150),setTimeout(function(){$("body").removeClass("g-navbar-search-hiding").addClass("g-navbar-search-hidden")},300),setTimeout(function(){$("body").removeClass("g-navbar-search-hidden")},500)}}),$(".sidenav").on("mouseenter",function(){$("body").hasClass("g-sidenav-pinned")||$("body").removeClass("g-sidenav-hide").removeClass("g-sidenav-hidden").addClass("g-sidenav-show")}),$(".sidenav").on("mouseleave",function(){$("body").hasClass("g-sidenav-pinned")||($("body").removeClass("g-sidenav-show").addClass("g-sidenav-hide"),setTimeout(function(){$("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden")},300))}),$(window).on("load resize",function(){$("body").height()<800&&($("body").css("min-height","100vh"),$("#footer-main").addClass("footer-auto-bottom"))})}(),Charts=function(){var a,e=$('[data-toggle="chart"]'),o="light",n={base:"Open Sans"},s={gray:{100:"#f6f9fc",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#8898aa",700:"#525f7f",800:"#32325d",900:"#212529"},theme:{default:"#172b4d",primary:"#4f48ec",secondary:"#f4f5f7",info:"#11cdef",success:"#2dce89",danger:"#f5365c",warning:"#fb6340"},black:"#12263F",white:"#FFFFFF",transparent:"transparent"};function t(a,e){for(var o in e)"object"!=typeof e[o]?a[o]=e[o]:t(a[o],e[o])}function r(a){var e=a.data("add"),o=$(a.data("target")).data("chart");a.is(":checked")?(!function a(e,o){for(var n in o)Array.isArray(o[n])?o[n].forEach(function(a){e[n].push(a)}):a(e[n],o[n])}(o,e),o.update()):(!function a(e,o){for(var n in o)Array.isArray(o[n])?o[n].forEach(function(a){e[n].pop()}):a(e[n],o[n])}(o,e),o.update())}function d(a){var e=a.data("update"),o=$(a.data("target")).data("chart");t(o,e),function(a,e){if(void 0!==a.data("prefix")||void 0!==a.data("prefix")){var o=a.data("prefix")?a.data("prefix"):"",n=a.data("suffix")?a.data("suffix"):"";e.options.scales.yAxes[0].ticks.callback=function(a){if(!(a%10))return o+a+n},e.options.tooltips.callbacks.label=function(a,e){var s=e.datasets[a.datasetIndex].label||"",t=a.yLabel,r="";return e.datasets.length>1&&(r+='<span class="popover-body-label mr-auto">'+s+"</span>"),r+=""+o+t+n}}}(a,o),o.update()}return window.Chart&&t(Chart,(a={defaults:{global:{responsive:!0,maintainAspectRatio:!1,defaultColor:"dark"==o?s.gray[700]:s.gray[600],defaultFontColor:"dark"==o?s.gray[700]:s.gray[600],defaultFontFamily:n.base,defaultFontSize:13,layout:{padding:0},legend:{display:!1,position:"bottom",labels:{usePointStyle:!0,padding:16}},elements:{point:{radius:0,backgroundColor:s.theme.primary},line:{tension:.4,borderWidth:4,borderColor:s.theme.primary,backgroundColor:s.transparent,borderCapStyle:"rounded"},rectangle:{backgroundColor:s.theme.warning},arc:{backgroundColor:s.theme.primary,borderColor:"dark"==o?s.gray[800]:s.white,borderWidth:4}},tooltips:{enabled:!0,mode:"index",intersect:!1}},doughnut:{cutoutPercentage:83,legendCallback:function(a){var e=a.data,o="";return e.labels.forEach(function(a,n){var s=e.datasets[0].backgroundColor[n];o+='<span class="chart-legend-item">',o+='<i class="chart-legend-indicator" style="background-color: '+s+'"></i>',o+=a,o+="</span>"}),o}}}},Chart.scaleService.updateScaleDefaults("linear",{gridLines:{borderDash:[2],borderDashOffset:[2],color:"dark"==o?s.gray[900]:s.gray[300],drawBorder:!1,drawTicks:!1,drawOnChartArea:!0,zeroLineWidth:0,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{beginAtZero:!0,padding:10,callback:function(a){if(!(a%10))return a}}}),Chart.scaleService.updateScaleDefaults("category",{gridLines:{drawBorder:!1,drawOnChartArea:!1,drawTicks:!1},ticks:{padding:20},maxBarThickness:10}),a)),e.on({change:function(){var a=$(this);a.is("[data-add]")&&r(a)},click:function(){var a=$(this);a.is("[data-update]")&&d(a)}}),{colors:s,fonts:n,mode:o}}(),Navbar=function(){var a=$(".navbar-nav, .navbar-nav .nav"),e=$(".navbar .collapse"),o=$(".navbar .dropdown");e.on({"show.bs.collapse":function(){var o;(o=$(this)).closest(a).find(e).not(o).collapse("hide")}}),o.on({"hide.bs.dropdown":function(){var a,e;a=$(this),(e=a.find(".dropdown-menu")).addClass("close"),setTimeout(function(){e.removeClass("close")},200)}})}(),NavbarCollapse=function(){$(".navbar-nav");var a=$(".navbar .navbar-custom-collapse");a.length&&(a.on({"hide.bs.collapse":function(){a.addClass("collapsing-out")}}),a.on({"hidden.bs.collapse":function(){a.removeClass("collapsing-out")}}));var e=0;$(".sidenav-toggler").click(function(){if(1==e)$("body").removeClass("nav-open"),e=0,$(".bodyClick").remove();else{$('<div class="bodyClick"></div>').appendTo("body").click(function(){$("body").removeClass("nav-open"),e=0,$(".bodyClick").remove()}),$("body").addClass("nav-open"),e=1}})}(),Popover=function(){var a=$('[data-toggle="popover"]'),e="";a.length&&a.each(function(){!function(a){a.data("color")&&(e="popover-"+a.data("color"));var o={trigger:"focus",template:'<div class="popover '+e+'" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'};a.popover(o)}($(this))})}(),ScrollTo=function(){var a=$(".scroll-me, [data-scroll-to], .toc-entry a");function e(a){var e=a.attr("href"),o=a.data("scroll-to-offset")?a.data("scroll-to-offset"):0,n={scrollTop:$(e).offset().top-o};$("html, body").stop(!0,!0).animate(n,600),event.preventDefault()}a.length&&a.on("click",function(a){e($(this))})}(),Tooltip=function(){var a=$('[data-toggle="tooltip"]');a.length&&a.tooltip()}(),FormControl=function(){var a=$(".form-control");a.length&&a.on("focus blur",function(a){$(this).parents(".form-group").toggleClass("focused","focus"===a.type)}).trigger("blur")}(),SalesChart=function(){var a=$("#chart-sales-dark");a.length&&function(a){var e=$("#monthlyData").data("update").data.datasets,o=new Chart(a,{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:Charts.colors.gray[900],zeroLineColor:Charts.colors.gray[900]},ticks:{callback:function(a){if(!(a%1))return"$"+a+"k"}}}]},tooltips:{callbacks:{label:function(a,e){var o=e.datasets[a.datasetIndex].label||"",n=a.yLabel,s="";return e.datasets.length>1&&(s+='<span class="popover-body-label mr-auto">'+o+"</span>"),s+="$"+n+"k"}}}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Performance",data:e[0].data||[0,0,0,0,0,0,0,0,0,0,0,0,0]}]}});a.data("chart",o)}(a)}(),Datepicker=function(){var a=$(".datepicker");a.length&&a.each(function(){$(this).datepicker({disableTouchKeyboard:!0,autoclose:!1})})}(),Scrollbar=function(){var a=$(".scrollbar-inner");a.length&&a.scrollbar().scrollLock()}();