PageSourceSearch

https://bankofbaroda.bank.in/-/media/themes/bob/india/india/scripts/optimized-min.js?t=20260911T163323Z

js bankofbaroda.bank.in collected 2026-10-03 02:36:26 UTC 1,136,058 bytes, 61 lines download raw bytes

1function fnCustomerSupportAndfaqsSearch(){var r;if(typeof glblFaqsJSONData!="undefined"){if(r=jQuery("#customerSupportAndFaqs").val(),r===""){jQuery("#filter-records").html("");jQuery(".common-faqs-customer-suopport-search").removeClass("bob-data-in");return}var n=new RegExp(r,"i"),t=1,i="<ul>";jQuery.each(glblFaqsJSONData,function(r,u){u.CustomerSupportAndFaqsItem.length==0&&(u.CustomerSupportAndFaqsItemName.search(n)!=-1||u.CustomerSupportAndFaqsItemName.search(n)!=-1)&&(i+=u.Url,t%2==0,t++);for(var f=0;f<u.CustomerSupportAndFaqsItem.length;f++)(u.CustomerSupportAndFaqsItem[f].Title.search(n)!=-1||u.CustomerSupportAndFaqsItem[f].Content.search(n)!=-1)&&(i+=u.CustomerSupportAndFaqsItem[f].Url,t%2==0,t++)});i+="<\/ul>";jQuery("#filter-records").html(i);jQuery(".common-faqs-customer-suopport-search").addClass("bob-data-in")}AOS.refresh()}function customlightpopupslider(){function n(){if(jQuery(".lightbox-big-slider").hasClass("slick-initialized")){jQuery(".lightbox-big-slider").slick("unslick");jQuery(".lightbox-big-slider").slick({infinite:!1,slidesToShow:1,slidesToScroll:1,arrows:!1,asNavFor:".lightbox-small-slider"}).on("beforeChange",function(){jQuery(this).parents(".lightbox-slider").hasClass("lightbox-video-slider")&&(jQuery(".lightbox-big-slider .slick-slide").attr("src",""),setTimeout(function(){jQuery(".lightbox-big-slider .slick-current").attr("src",jQuery(".lightbox-big-slider .slick-current").attr("data-src"))},100))})}else jQuery(".lightbox-big-slider").slick({infinite:!1,slidesToShow:1,slidesToScroll:1,arrows:!1,asNavFor:".lightbox-small-slider"}).on("beforeChange",function(){jQuery(this).parents(".lightbox-slider").hasClass("lightbox-video-slider")&&(jQuery(".lightbox-big-slider .slick-slide").attr("src",""),setTimeout(function(){jQuery(".lightbox-big-slider .slick-current").attr("src",jQuery(".lightbox-big-slider .slick-current").attr("data-src"))},100))});jQuery(".lightbox-small-slider").hasClass("slick-initialized")?(jQuery(".lightbox-small-slider").slick("unslick"),jQuery(".lightbox-small-slider").slick({infinite:!1,centerMode:!0,slidesToShow:5,focusOnSelect:!1,slidesToScroll:1,asNavFor:".lightbox-big-slider",prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})):jQuery(".lightbox-small-slider").slick({infinite:!1,centerMode:!1,slidesToShow:5,focusOnSelect:!0,slidesToScroll:1,asNavFor:".lightbox-big-slider",prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}n()}function lightboxslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:4,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".lightbox-slider-active";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function fnSetExclusiveOffer(){if(document.getElementsByClassName("exclusive-offer-loaded").length<=0){var n="exclusiveOfferList",t=document.getElementById(n);t.className+=" exclusive-offer-loaded";t.classList.remove("slick-initialized","slick-slider");jQuery.getJSON("/handlers/bob/countrywebsites/india/get-offers-json-data.ashx",function(t){var i="";t.forEach(function(n){var t="";n.paymentTypeTags.forEach(function(n){t+=" PaymentType-"+n.value.replace(" ","")});i+='<li class= "'+t+'" style="width: 50%; display: inline-block;">';i+=n.apiSource=="mastercard"?"<h3>"+n.title+"<\/h3>":'<img tabindex="0" aria-label='+n.title+' role="img" src='+encodeURI(n.promoImage)+">";i+="<span>"+n.offerCategoryPhrase+"<\/span>";i+="<p>"+n.promoHeading+"<\/p>";i+='<a href="'+n.cta+'" tabindex="0" class= "bob-arrow-button"> Know More <svg xmlns="http://www.w3.org/2000/svg" width="19.349" height="9.372" viewBox="0 0 19.349 9.372"><path d="M19.127,136.151h0l-3.949-3.93a.756.756,0,0,0-1.066,1.071l2.652,2.639H.756a.756.756,0,1,0,0,1.512H16.762l-2.651,2.639a.756.756,0,0,0,1.066,1.071l3.949-3.93h0A.756.756,0,0,0,19.127,136.151Z" transform="translate(0 -132)"><\/path><\/svg> <\/a>';i+="<\/li>"});document.getElementById(n).innerHTML=i;jQuery(".bob-loader-parent-div").hide();setTimeout(function(){exclusiveOfferSlider();exclusiveOfferSlideFilter()},1)})}}function exclusiveOfferSlideFilter(){var t={infinite:!1,slidesToShow:1,slidesToScroll:1,rows:2,slidesPerRow:2,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{rows:1,slidesPerRow:2}},{breakpoint:760,settings:{rows:4,slidesPerRow:1,adaptiveHeight:!0}}]},n=jQuery(".offerWrap_right"),i=jQuery(".offerWrap_right .slick-slide > div > *").clone(),u=jQuery(".home_section_4 .bob-tab-div .bob-tab-ul li"),r=function(r,u){this.object=r;this.item=u;this.filterFunc=function(){if(typeof this.item!="undefined"){jQuery(".offerWrap_right .active").removeClass("active");jQuery('.home_section_4 .bob-tab-div .bob-tab-ul li[data-tab=".'+this.item+'"]').addClass("active");var r=i.filter("."+this.item);n.css({opacity:"0"});setTimeout(function(){n.slick("unslick").empty().append(r).slick(t).css({opacity:"100"})},100)}}};jQuery(document).on("click",".home_section_4 .bob-tab-div .bob-tab-ul li",function(){var n=jQuery(this).attr("data-tab"),t=new r(this,n);t.filterFunc();setTimeout(function(){jQuery(".offerWrap_right li").each(function(n){var t=jQuery(this).find("img"),u=t.attr("aria-label"),i,r;u&&!t.attr("alt")&&t.attr("alt",u+" brand logo");i=jQuery(".offerWrap_right li p")[n].innerHTML;r=jQuery(this).find("a");r.attr("aria-describedby",i);r.attr("title",i)})},1e3)});jQuery(".home_section_4 .bob-tab-div .bob-tab-ul li:eq(0)").click()}function exclusiveOfferSlider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,rows:2,rtl:rtlType,slidesPerRow:2,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{rows:1,slidesPerRow:2}},{breakpoint:760,settings:{rows:4,slidesPerRow:1,adaptiveHeight:!0}}]})}var n=".offerWrap_right";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function SubmitApplyNowFormDefenceBankingProduct(){var i,n,t;jQuery(".errorMessage").html("");jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submitting"));i=jQuery("#hdnProductName").val();n="";jQuery("#mCSB_1_container").find(":checkbox:checked").each(function(){n+=jQuery(this).val()+","});t=jQuery("#formApplyNowDBP").serializeArray();console.log("checkboxValues=>>>"+n);n!=""?t.push({name:"product_type",value:n.substring(0,n.lastIndexOf(","))}):t.push({name:"product_type",value:""});
1jQuery.ajax({url:"/handlers/bob/countrywebsites/india/apply-defence-banking-product.ashx",type:"post",data:t,dataType:"jsonp",success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").show(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"form_submission",eventAction:i});else{jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submit"));for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submit"));alert("There seems to be an issue.  Please try again after some time.")}})}function SubmitRequestSubscribeNewsLetter(){jQuery("#btnSumbitText").html("<span>Submitting..<\/span>");jQuery("#err_subscribenews_letter_emailid").html("");var n=new FormData;n.append("txtEmailId",jQuery("#txtEmailId").val());jQuery.ajax({type:"POST",url:"/handlers/bob/countrywebsites/india/subscribe-newsletter.ashx",data:n,processData:!1,contentType:!1,success:function(n){n=JSON.parse(n);n.status?(jQuery("#btnSumbitText").html("<span>Submit<\/span>"),document.getElementById("formNewsLetter").style.display="none",document.getElementById("successMsgNewsletter").style.display="block"):(jQuery("#err_subscribenews_letter_emailid").html(n.errorList[0].error_message.trim()),jQuery("#btnSumbitText").html("<span>Submit<\/span>"))}})}function SubmitRequestACallback(){jQuery(".errorMessage").html("");jQuery("#btnRequesACallback").html("Submitting..");jQuery("#hdnLoanType").val(jQuery("#loantype li.active").length==0?"":jQuery("#loantype li.active").attr("value"));var n=jQuery("#hdnLoanType").val();jQuery.ajax({url:"/handlers/bob/countrywebsites/india/request-a-callback.ashx",type:"post",data:jQuery("#RequestACallback").serialize(),dataType:"jsonp",success:function(t){var r,u,i;if(t=JSON.parse(t),t.successStatus==!0)document.getElementById("RequestACallback").style.display="none",document.getElementById("successMsgRequesAcallback").style.display="block",jQuery("#successMsgRequesAcallback").html(jQuery("#successMsgRequesAcallback").html().replace("[Name]",glblFnTitleCase(jQuery("#fname").val()))),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"request_callback",eventAction:n});else if(t.successStatus==!1&&(jQuery("#btnRequesACallback").html("Submit"),t.message!=null))for(r=t.error_Field.split("."),u=t.message.split("."),i=0;i<r.length;i++)jQuery("#err_"+r[i]).html(u[i])},error:function(){jQuery("#btnRequesACallback").html("Submit");alert("There seems to be an issue.  Please try again after some time.")}})}function ResetSubmitFaqFeedbackForm(){jQuery("#btnFaqSend").text("Send");jQuery(".faqFormSectionDiv").show();jQuery("#faqThanksMessageYesPopup").hide();jQuery("#faqTextArea").val("")}function SubmitApplyNowForm(){jQuery(".errorMessage").html("");jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submitting"));jQuery("#hdnBranchState").val(jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"));jQuery("#hdnBranchCity").val(jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"));jQuery("#hdnBranchName").val(jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"));var i=jQuery("#hdnProductName").val(),n=jQuery.grep(glblStateCityBranches,function(n){return n._ST.toLowerCase().trim()===jQuery("#hdnBranchState").val().trim().toLowerCase()&&n._CT.toLowerCase().trim()===jQuery("#hdnBranchCity").val().trim().toLowerCase()&&n.BR_NM.toLowerCase().trim()===jQuery("#hdnBranchName").val().trim().toLowerCase()}),t=jQuery("#formApplyNow").serializeArray();n.length>0&&(t.push({name:"hdnRegion",value:n[0]._RGN}),t.push({name:"hdnZone",value:n[0]._ZN}));jQuery.ajax({url:"/handlers/bob/countrywebsites/india/apply-online.ashx",type:"post",data:t,dataType:"jsonp",success:function(n){if(n=JSON.parse(n),n.status)jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[Name]",glblFnTitleCase(jQuery("#fullname").val()))),jQuery("#successMsg").show(),jQuery(".bob-loan-emi-grp-div .container .row").html(""),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"form_submission",eventAction:i});else{jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submit"));for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){jQuery("#btnApplyOnline").html(glblGetErrorMessageByKeyName("Submit"));alert("There seems to be an issue.  Please try again after some time.")}})}function ApplyNowFormReset(){jQuery(".errorMessage").html("");document.getElementById("formApplyNow").reset()}function SubmitEducationLoanForm(){jQuery(".errorMessage").html("");jQuery("#btnApplyOnline").html("Submitting..");jQuery("#hdnBranchState").val(jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"));jQuery("#hdnBranchCity").val(jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"));jQuery("#hdnBranchName").val(jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"));var i=jQuery("#hdnProductName").val(),n=jQuery.grep(glblStateCityBranches,function(n){return n._ST.toLowerCase().trim()===jQuery("#hdnBranchState").val().trim().toLowerCase()&&n._CT.toLowerCase().trim()===jQuery("#hdnBranchCity").val().trim().toLowerCase()&&n.BR_NM.toLowerCase().trim()===jQuery("#hdnBranchName").val().trim().toLowerCase()}),t=jQuery("#formApplyNow").serializeArray();n.length>0&&(t.push({name:"hdnRegion",value:n[0]._RGN}),t.push({name:"hdnZone",value:n[0]._ZN}
1));jQuery.ajax({url:"/handlers/bob/countrywebsites/india/apply-for-education-loan.ashx",type:"post",data:t,dataType:"jsonp",success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html("<h3><strong>Thank you !<\/strong>We have successfully received your application. Our executive will contact you soon.<\/h3>"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"form_submission",eventAction:"Education Loan"});else{jQuery("#btnApplyOnline").html("Submit");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(n.errorList[t].error_message.trim())}},error:function(){jQuery("#btnApplyOnline").html("Submit");alert("There seems to be an issue.  Please try again after some time.")}})}function EducationLoanReset(){jQuery(".errorMessage").html("");document.getElementById("formApplyNow").reset()}function SubmitApplyEAuctionPropertyForm(){jQuery(".errorMessage").html("");jQuery("#btnApplyOnline").html("Submitting..");var n=jQuery("#formApplyNow").serializeArray();n.push({name:"recordid",value:fnGetURLParameterValueByName("PropertyId")});jQuery.ajax({url:"/handlers/bob/countrywebsites/india/apply-for-e-auction-property.ashx",type:"post",data:n,dataType:"jsonp",success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html("<h3><strong>Thank you for showing interest!<\/strong> Our executive will contact you within 2 working days.<\/h3>");else{jQuery("#btnApplyOnline").html("Submit");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(n.errorList[t].error_message.trim())}},error:function(){jQuery("#btnApplyOnline").html("Submit");alert("There seems to be an issue.  Please try again after some time.")}})}function ApplyEAuctionPropertyFormReset(){jQuery(".errorMessage").html("");document.getElementById("formApplyNow").reset()}function getParameterValue(n,t=window.location.href){n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function btnMediaSubmit(){jQuery(".errorMessage").html("");jQuery("#usertype").val("bb-tomorrow-media");var n=new FormData(jQuery("#bankingbeyondtomorrow")[0]);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/banking-beyond-tomorrow.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.errorList==null)document.getElementById("divApplyNow").style.display="none",document.getElementById("divApplyNow").innerHTML="",document.getElementById("successMsg").style.display="block";else for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(n.errorList[t].error_message),jQuery("#"+n.errorList[0].error_field).val(null),jQuery("#"+n.errorList[0].error_field).focus()},error:function(){alert("There seems to be an issue.  Please try again after some time.")}})}function SubmitHindiTranslatorRegistrationForm(){jQuery(".errorMessage").html("");jQuery("#btnHindiTransForm").html(glblGetErrorMessageByKeyName("Submitting"));var n=new FormData(jQuery("#hinditranslatorhindiform")[0]),t=jQuery("#mothertongue li.active").length==0?"":jQuery("#mothertongue li.active").attr("value"),i=jQuery("#nationality li.active").length==0?"":jQuery("#nationality li.active").attr("value"),r=jQuery("#novelyear li.active").length==0?"":jQuery("#novelyear li.active").attr("value"),u=jQuery("#publicationmonth li.active").length==0?"":jQuery("#publicationmonth li.active").attr("value"),f=jQuery("#publicationyear li.active").length==0?"":jQuery("#publicationyear li.active").attr("value");n.append("mothertongue",t);n.append("nationality",i);n.append("novelyear",r);n.append("publicationmonth",u);n.append("publicationyear",f);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/hindi-translator-registration-form.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnHindiTransForm").html(glblGetErrorMessageByKeyName("Submit"));for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){jQuery("#btnHindiTransForm").html(glblGetErrorMessageByKeyName("Submit"));alert("There seems to be an issue.  Please try again after some time.")}})}function HindiTransFormReset(){jQuery(".errorMessage").html("");document.getElementById("hinditranslatorhindiform").reset()}function SubmitPublisherForm(){jQuery(".errorMessage").html("");jQuery("#btnPublisherForm").html(glblGetErrorMessageByKeyName("Submitting"));var n=new FormData(jQuery("#publisherregistrationform")[0]),t=jQuery("#mothertongue li.active").length==0?"":jQuery("#mothertongue li.active").attr("value"),i=jQuery("#nationality li.active").length==0?"":jQuery("#nationality li.active").attr("value"),r=jQuery("#novelyear li.active").length==0?"":jQuery("#novelyear li.active").attr("value"),u=jQuery("#publicationmonth li.active").length==0?"":jQuery("#publicationmonth li.active").attr("value"),f=jQuery("#publicationyear li.active").length==0?"":jQuery("#publicationyear li.active").attr("value");n.append("mothertongue",t);n.append("nationality",i);n.append("novelyear",r);n.append("publicationmonth",u);n.append("publicationyear",f);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/publisher-registration-form.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnPublisherForm").html(glblGetErrorMessageByKeyName("Submit"));for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){s;alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnPublisherForm").html(glblGetErrorMessageByKeyName("Submit"))}})}function PublisherFormReset(){jQuery(".errorMessage").html("");document.getElementById("publisherregistrationform").reset()}function SubmitDigitalProduct(){jQuery(".errorMessage").html("");jQuery("#btnDigitalProduct").html(glblGetErrorMessageByKeyName("Submitting"));jQuery("#btnDigitalProduct").css("pointer-events","none");jQuery("#btnDigitalProduct").css("cursor","default");var n=new FormData(jQuery("#digitalproductforms")[0]),t=jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"),i=jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"),r=jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"),u=jQuery("#activityLine li.active").length==0?"":jQuery("#activityLine li.active").attr("value"),f=jQuery("#institutionType li.active").length==0?"":jQuery("#institutionType li.active").attr("value");n.append("state",t);n.append("city",i);n.append("nearestbranch",r);n.append("activityLine",u);n.append("institutionType",f);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/internetpaymentgateway-form.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"form_submission",eventAction:"bob World Merchant Gateway"});else{jQuery("#btnDigitalProduct").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnDigitalProduct").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function DigitalProductReset(){jQuery(".errorMessage").html("");jQuery("#digitalproductforms .bob-custom-dropdown:eq(0) small:eq(0)").html("Select State");jQuery("#digitalproductforms .bob-custom-dropdown:eq(0) ul").find("li.active").removeClass("active");jQuery("#digitalproductforms .bob-custom-dropdown:eq(1) small:eq(0)").html("Select City");jQuery("#digitalproductforms .bob-custom-dropdown:eq(1) ul").find("li.active").removeClass("active");jQuery("#digitalproductforms .bob-custom-dropdown:eq(2) small:eq(0)").html("Select Branch");jQuery("#digitalproductforms .bob-custom-dropdown:eq(2) ul").find("li.active").removeClass("active");jQuery("#digitalproductforms .bob-custom-dropdown:eq(3) small:eq(0)").html("Type of Institution");jQuery("#digitalproductforms .bob-custom-dropdown:eq(3) ul").find("li.active").removeClass("active");jQuery("#digitalproductforms .bob-custom-dropdown:eq(4) small:eq(0)").html("Line of Activity");jQuery("#digitalproductforms .bob-custom-dropdown:eq(4) ul").find("li.active").removeClass("active");document.getElementById("digitalproductforms").reset()}function SubmitbobWorldDebitForm(){jQuery(".errorMessage").html("");jQuery("#btnbobWorldDebitForm").html(glblGetErrorMessageByKeyName("Submitting"));
1jQuery("#btnbobWorldDebitForm").css("pointer-events","none");jQuery("#btnbobWorldDebitForm").css("cursor","default");var n=new FormData(jQuery("#bobWorldDebitForm")[0]),t=jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"),i=jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"),r=jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"),u=jQuery("#cardVariantType li.active").length==0?"":jQuery("#cardVariantType li.active").attr("value");n.append("state",t);n.append("city",i);n.append("nearestbranch",r);n.append("cardVariantType",u);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/bobworlddebitform.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnbobWorldDebitForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnbobWorldDebitForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function BobWorldDebitFormReset(){jQuery(".errorMessage").html("");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(0) small:eq(0)").html("Select State");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(0) ul").find("li.active").removeClass("active");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(1) small:eq(0)").html("Select City");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(1) ul").find("li.active").removeClass("active");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(2) small:eq(0)").html("Select Branch");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(2) ul").find("li.active").removeClass("active");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(3) small:eq(0)").html("Type of Debit Card");jQuery("#bobWorldDebitForm .bob-custom-dropdown:eq(3) ul").find("li.active").removeClass("active");document.getElementById("bobWorldDebitForm").reset()}function SubmitbobWorldInternetBankingForm(){jQuery(".errorMessage").html("");jQuery("#btnbobWorldInternetBankingForm").html(glblGetErrorMessageByKeyName("Submitting"));jQuery("#btnbobWorldInternetBankingForm").css("pointer-events","none");jQuery("#btnbobWorldInternetBankingForm").css("cursor","default");var n=new FormData(jQuery("#bobWorldInternetBankingForm")[0]),t=jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"),i=jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"),r=jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"),u=jQuery("#userType li.active").length==0?"":jQuery("#userType li.active").attr("value");n.append("state",t);n.append("city",i);n.append("nearestbranch",r);n.append("userType",u);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/bobworldinternetbankingform.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnbobWorldInternetBankingForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnbobWorldInternetBankingForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function bobWorldInternetBankingFormReset(){jQuery(".errorMessage").html("");jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(0) small:eq(0)").html(jQuery(jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(0)")[0].parentElement).attr("data-state"));jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(0) ul").find("li.active").removeClass("active");jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(1) small:eq(0)").html(jQuery(jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(1)")[0].parentElement).attr("data-city"));jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(1) ul").find("li.active").removeClass("active");jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(2) small:eq(0)").html(jQuery(jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(2)")[0].parentElement).attr("data-branch"));jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(2) ul").find("li.active").removeClass("active");jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(3) small:eq(0)").html(jQuery(jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(3)")[0].parentElement).attr("data-usertype"));jQuery("#bobWorldInternetBankingForm .bob-custom-dropdown:eq(3) ul").find("li.active").removeClass("active");document.getElementById("bobWorldInternetBankingForm").reset()}
1function SubmitPOSForm(){jQuery(".errorMessage").html("");jQuery("#btnPOSForm").html(glblGetErrorMessageByKeyName("Submitting"));jQuery("#btnPOSForm").css("pointer-events","none");jQuery("#btnPOSForm").css("cursor","default");var n=new FormData(jQuery("#posForm")[0]),t=jQuery("#bobActHldr li.active").length==0?"":jQuery("#bobActHldr li.active").attr("value"),i=jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"),r=jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"),u=jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"),f=jQuery("#establishmentType li.active").length==0?"":jQuery("#establishmentType li.active").attr("value");n.append("state",i);n.append("city",r);n.append("nearestbranch",u);n.append("establishmentType",f);n.append("bobActHldr",t);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/posform.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submission",eventCategory:"form_submission",eventAction:"Point Of Sale (POS) DIGI"});else{jQuery("#btnPOSForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnPOSForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function POSFormReset(){jQuery(".errorMessage").html("");jQuery("#posForm .bob-custom-dropdown:eq(0) ul").find("li.active").removeClass("active");jQuery("#posForm .bob-custom-dropdown:eq(0) small:eq(0)").html("Whether BOB Account holder");jQuery("#posForm .bob-custom-dropdown:eq(1) ul").find("li.active").removeClass("active");jQuery("#posForm .bob-custom-dropdown:eq(1) small:eq(0)").html("Type of Establishment");jQuery("#posForm .bob-custom-dropdown:eq(2) ul").find("li.active").removeClass("active");jQuery("#posForm .bob-custom-dropdown:eq(2) small:eq(0)").html("Select State");jQuery("#posForm .bob-custom-dropdown:eq(3) ul").find("li.active").removeClass("active");jQuery("#posForm .bob-custom-dropdown:eq(3) small:eq(0)").html("Select City");jQuery("#posForm .bob-custom-dropdown:eq(4) ul").find("li.active").removeClass("active");jQuery("#posForm .bob-custom-dropdown:eq(4) small:eq(0)").html("Select Branch");jQuery(".bob-custom-dropdown.mt-0:eq(3)").addClass("bob-custom-disabled-dropdown");jQuery(".bob-custom-dropdown.mt-0:eq(4)").addClass("bob-custom-disabled-dropdown");document.getElementById("posForm").reset()}function SubmitbobWorldCreditForm(){jQuery(".errorMessage").html("");jQuery("#btnbobWorldCreditForm").html(glblGetErrorMessageByKeyName("Submitting"));jQuery("#btnbobWorldCreditForm").css("pointer-events","none");jQuery("#btnbobWorldCreditForm").css("cursor","default");var n=new FormData(jQuery("#bobWorldCreditForm")[0]),t=jQuery("#branchState li.active").length==0?"":jQuery("#branchState li.active").attr("state-code"),i=jQuery("#branchCity li.active").length==0?"":jQuery("#branchCity li.active").attr("city-id"),r=jQuery("#branchName li.active").length==0?"":jQuery("#branchName li.active").attr("branch-id"),u=jQuery("#cardVariantType li.active").length==0?"":jQuery("#cardVariantType li.active").attr("value");n.append("state",t);n.append("city",i);n.append("nearestbranch",r);n.append("cardVariantType",u);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/bobworldcreditform.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnbobWorldCreditForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnbobWorldDebitForm").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function BobWorldCreditFormReset(){jQuery(".errorMessage").html("");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(0) small:eq(0)").html("Select State");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(0) ul").find("li.active").removeClass("active");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(1) small:eq(0)").html("Select City");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(1) ul").find("li.active").removeClass("active");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(2) small:eq(0)").html("Select Branch");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(2) ul").find("li.active").removeClass("active");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(3) small:eq(0)").html("Type of Debit Card");jQuery("#bobWorldCreditForm .bob-custom-dropdown:eq(3) ul").find("li.active").removeClass("active");document.getElementById("bobWorldCreditForm").reset()}function SubmitSCFform(){jQuery(".errorMessage").html("");jQuery("#btnSCFform").html("Submitting");jQuery("#btnSCFform").css("pointer-events","none");jQuery("#btnSCFform").css("cursor","default");var n=new FormData(jQuery("#formsupplyChainFinance")[0]);jQuery.ajax({url:"/handlers/bob/countrywebsites/india/supplychainfinance.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.status)jQuery(".bob-loan-emi-grp-div .container .row").html(""),jQuery("#successMsg").html(jQuery("#successMsg").html().replace("[ReferenceId]",n.success_response_id).replace("[Name]",n.name).replace("[HindiName]",n.hindiname).replace("[HindiReferenceId]",n.hindisuccess_response_id)),jQuery("#successMsg").show(),jQuery("html, body").animate({scrollTop:0},"slow");else{jQuery("#btnSCFform").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style");for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(glblGetErrorMessageByKeyName(n.errorList[t].error_message.trim()))}},error:function(){alert("There seems to be an issue.  Please try again after some time.");jQuery("#btnSCFform").html(glblGetErrorMessageByKeyName("Submit"));jQuery(".bob-comman-btn").removeAttr("style")}})}function SCFformReset(){jQuery(".errorMessage").html("");document.getElementById("formsupplyChainFinance").reset()}function fnSwitcLanguage(){jQuery(document).on("click",".language-switcher li",function(){if(fnDeleteCookie("pref-lang"),fnDeleteCookie("remember-lang"),typeof glblCurrentLanguage!="undefined"){var t=jQuery(this).data("value").toLowerCase(),n=document.location.pathname.toLowerCase();t!=glblCurrentLanguage&&(t=="en"&&(n=document.location.pathname=="/"+glblCurrentLanguage||document.location.pathname=="/"+glblCurrentLanguage+"/"?"/":n.replace("/"+glblCurrentLanguage+"/","/")),t==="or-in"?(n==="/locate-us/branches/"&&(n="en-in/locate-us/branches/",glblCurrentLanguage="en-in"),n=document.location.pathname===""||document.location.pathname==="/"?t:n.includes(glblCurrentLanguage)?n.replace(glblCurrentLanguage,t):t+"/"+n.replace(/^\//,"")):(n==="/locate-us/branches/"&&(n="en-in/locate-us/branches/",glblCurrentLanguage="en-in"),n=document.location.pathname===""||document.location.pathname==="/"?t:n.includes("/"+glblCurrentLanguage+"/")?n.replace(glblCurrentLanguage,t):t+"/"+n.replace(/^\//,"")),n.startsWith("/")||(n="/"+n),window.location=n.replace("/en/","/")+document.location.search)}})}function gbllFnReplaceRatesAndChargesVariables(n){return parseFloat(eval(n.replace(/\[NRE]/g,glblNRE).replace(/\[NSC_KVP]/g,glblNSC_KVP).replace(/\[MINIntOnHL]/g,glblMINIntOnHL).replace(/\[MAXIntOnHL]/g,glblMAXIntO
1nHL).replace(/\[FD]/g,glblFD).replace(/\[BRLLR]/g,glblBRLLR).replace(/\[MCLR]/g,glblMCLR).replace(/\[SP]/g,glblSP).replace(/\[BR]/g,glblBR).replace(/\[CONHL]/g,glblCONHL).replace(/\[CONCL]/g,glblCONCL))).toFixed(2)+"%"}function leftBannerSliderWhatsNewSection(){jQuery(".whats-new-section .left-banner-slider").each(function(){jQuery(this).slick({infinite:!0,autoplay:!1,slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!1,swipe:!1,pauseOnHover:!1})})}function phoneSliderWhatsNewSection(){jQuery(".whats-new-section .phone-slider-div").each(function(){jQuery(this).slick({infinite:!0,autoplay:!1,slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!1,swipe:!1,pauseOnHover:!1})})}function fobwSliderWhatsNewSection(){jQuery(".whats-new-section .fobw-slider-div").each(function(n){var t=n+1;jQuery(this).slick({infinite:!0,slidesToShow:3,slidesToScroll:1,dots:!1,autoplay:!0,arrows:!0,pauseOnFocus:!1,pauseOnHover:!1,prevArrow:prevArrow,nextArrow:nextArrow,asNavFor:"#phoneSlider"+t+", #leftBannerSlider"+t+"",responsive:[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}},]})})}function fnShareComponentInit(){jQuery(".bob-share-link-ul li").length>0&&jQuery(".bob-share-link-ul li").click(function(){var o,h;glblSharePlatformFound=!1;glblShareComponentIsGlobalPageShare=jQuery(this).closest("ul").hasClass("share-section")?!1:!0;thisClass=jQuery(this);var s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|sm-t|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(navigator.userAgent.toLowerCase()),n="",i="",t="",r="",u=document.URL,f=!1,e=!1;i=jQuery('meta[property="og:title"]').attr("content")!=undefined&&jQuery('meta[property="og:title"]').attr("content")!=""?jQuery('meta[property="og:title"]').attr("content"):document.title;typeof jQuery('meta[property="og:description"]').attr("content")!="undefined"&&jQuery('meta[property="og:description"]').attr("content")!=""?t=jQuery('meta[property="og:description"]').attr("content"):typeof jQuery("meta[name=description]").attr("content")!="undefined"&&jQuery("meta[name=description]").attr("content")!=""&&(t=jQuery("meta[name=description]").attr("content"));n=document.URL;typeof fnGetURLParameterValueByName=="function"&&fnGetURLParameterValueByName("offerid")!=""&&(i=fnGetURLParameterValueByName("title"),t=fnGetURLParameterValueByName("title"));glblShareComponentIsGlobalPageShare?typeof glblBranchDetailText!="undefined"&&(t=glblBranchDetailText):(i=jQuery(this).closest(".share-parent").find(".share-title").text(),o=jQuery(this).closest(".share-parent").find(".share-description").attr("src"),t=typeof o!="undefined"?jQuery(this).closest(".share-parent").find(".share-description").attr("src"):jQuery(this).closest(".share-parent").find(".share-description").text(),n=jQuery(this).closest(".share-parent").find(".share-url").attr("href"),u=n);typeof i!="undefined"&i!=""&&(i=i.trim());typeof t!="undefined"&t!=""&&(t=t.trim());document.getElementById("customShareURL")!=null&&document.getElementById("customShareURL").value!=""&&(n=document.getElementById("customShareURL").value);jQuery(this).hasClass("share-facebook")?(glblSharePlatformFound=!0,n="https://www.facebook.com/sharer/sharer.php?u= "+encodeURIComponent(n)+"&quote="+encodeURIComponent(i)+"&href="+encodeURIComponent(n)):jQuery(this).hasClass("share-twitter")?(glblSharePlatformFound=!0,r!=""&&(r="&via ="+r),t!=""&&(t="&via ="+t),n="https://twitter.com/intent/tweet?&url="+encodeURIComponent(n+t+r)):jQuery(this).hasClass("share-linkedin")?(glblSharePlatformFound=!0,n="https://www.linkedin.com/sharing/share-offsite/?url="+n):jQuery(this).hasClass("share-email")?(glblSharePlatformFound=!0,e=!0,n="mailto:?subject="+encodeURIComponent(i)+"&body="+encodeURIComponent(t)+" Link:"+encodeURIComponent(n)):jQuery(this).hasClass("share-gmail")?(glblSharePlatformFound=!0,n=" https://mail.google.com/mail/u/0/?ui=2&fs=1&tf=cm&su="+encodeURIComponent(i)+"&body="+encodeURIComponent(t)+" Link:"+encodeURIComponent(n)):jQuery(this).hasClass("share-link")?(glblSharePlatformFound=!0,CopyToClipboard(u),f=!0):jQuery(this).hasClass("share-whatsapp")&&(glblSharePlatformFound=!0,h=document.getElementById("text"),n=s?"https://api.whatsapp.com/se
1nd?text="+encodeURIComponent(t+" "+n):"https://web.whatsapp.com/send?text="+encodeURIComponent(t+" "+n));glblSharePlatformFound&&f==!1&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e?window.location=n:windowPopup(n,500,600))})}function windowPopup(n,t,i){var r=screen.width/2-t/2,u=screen.height/2-i/2;window.open(n,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width="+t+",height="+i+",top="+u+",left="+r)}function CopyToClipboard(n){if(window.clipboardData&&window.clipboardData.setData)return clipboardData.setData("Text",n);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var t=document.createElement("textarea");t.textContent=n;t.style.position="fixed";document.body.appendChild(t);t.select();try{return document.execCommand("copy")}catch(i){return console.warn("Copy to clipboard failed.",i),!1}finally{document.body.removeChild(t)}}}function fnGlblSetRemainingTime(){jQuery(".remaining-time").each(function(){var n=jQuery(this),t,i;typeof jQuery(this).attr("data-expiry-time")!="undefined"&&jQuery(this).attr("data-expiry-time")!=""&&(t=moment(jQuery(this).attr("data-expiry-time")).valueOf(),i=setInterval(function(){var h=(new Date).getTime(),r=t-h,s=Math.floor(r/864e5),u=Math.floor(r%864e5/36e5),f=Math.floor(r%36e5/6e4),e=Math.floor(r%6e4/1e3),o="";s>0&&(o+=s+"d ");u.toString().length==1&&(u=0+u.toString());f.toString().length==1&&(f=0+f.toString());e.toString().length==1&&(e=0+e.toString());o+=u+"."+f+"."+e;n.text(o);r<0&&(clearInterval(i),n.text("EXPIRED"))},1e3))})}function lastUpdate(){var n=new Date,t;n.setHours(n.getHours()-6);t=String(n.getDate()).padStart(2,"0")+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+n.getFullYear();jQuery("#lastupdateddate").text(t)}function fnAppendId(){if(typeof glblCurrentPageID!="undefined"){var n="";jQuery(".appendid").each(function(){var t=jQuery(this).attr("href");t&&t.indexOf("?id")==-1&&(n=typeof jQuery(this).closest(".listing-section").data("id")!="undefined"&&jQuery(this).closest(".listing-section").data("id")!=""?jQuery(this).closest(".listing-section").data("id"):glblCurrentPageID,jQuery(this).attr("href",t+"?id="+n))})}}function fnBobDirectorDetailsPopup(){jQuery(document).on("click","*[data-content]",function(){jQuery("#bob-bod-image").attr("src","");jQuery("#bob-bod-content").html("");jQuery("#bob-bod-heading").html("");jQuery("#bob-bod-image").attr("src",jQuery(this).parents(".director-detail-box, .director-intro-box").find("img").attr("src"));jQuery("#bob-bod-content").html(jQuery(this).attr("data-content"));jQuery("#bob-bod-heading").html(jQuery(this).parents(".direor-dctetail-box").find("h3").html());jQuery(".popupOverlay").show();jQuery(".board-of-director-view-profile-popup").show();jQuery("body").css("overflow","hidden")});jQuery(".board-of-director-view-profile-popup, .popupOverlay, .popupCloseBtn").click(function(n){jQuery(n.target).is(".board-of-director-view-profile-popup, .popupCloseBtn, .popupCloseBtn *")===!0&&(jQuery(".popupOverlay").hide(),jQuery(".board-of-director-view-profile-popup").hide(),jQuery("body").css("overflow","unset"))})}function fnShowOfferAndTncDetails(){jQuery(".bob-offer-download-div").each(function(){jQuery(this).find("ul > li:gt(3)").hide();jQuery(this).find(".bob-readmore-download .bob-readmore-anchor").on("click",function(n){n.preventDefault();jQuery(this).text()=="Read more"?(jQuery(this).parents(".bob-offer-download-div").find("ul > li:hidden").slideDown(),jQuery(this).text("Read less")):(jQuery(this).parents(".bob-offer-download-div").find("ul > li:gt(3)").slideUp(),jQuery(this).text("Read more"))})})}function typesofRelatedOfferlider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:3,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".bob-related-offer-component ul.items";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function isInsideCountryWebsite(n){return n.closest("#country-website-id")!==null}function isInsideDirectionLink(n){return n.closest("#directionLink")!==null}function isInsideDirectionLinkmobile(n){return n.closest("#directionLinkMobile")!==null}function isInsidejsdirectionlink(n){return n.closest(".js-direction-link")!==null}function isInsideWorldInternetBanking(n){return n.closest(".feature-quick-links")!==null}function isInsideWorldgiftcitydirect(n){return n.closest(".gift-city-direct")!==null}function openExternalPortalViaAnchor(n){const t=document.createElement("a");t.href=n;t.target="_blank";t.rel="noopener noreferrer";document.body.appendChild(t);t.click();document.body.removeChild(t)}function fnCreateCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*6e4);u="expires="+r.toGMTString();document.cookie=n+"="+t+";"+u+";path=/"}function fnReadCookie(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function fnDeleteAllCookie(){for(var i,t=document.cookie.split(";"),n=0;n<t.length;n++)i=t[n].split("="),deleteCookie(i[0])}function fnDeleteCookie(n){var t=new Date,i,r;t.setDate(t.getDate()-1);i=";expires="+t;r="";document.cookie=n+"="+r+i+"; path=/"}function glblGetDicArrByDicName(n,t){var i=[],r=glblJsonDataDictionary.filter(function(t){if(t.dictName.toLowerCase()==n.toLowerCase())return t})[0];return typeof r!="undefined"&&(t=="value"&&r.dictItems.forEach(function(n){i.push(n.value)}),t=="key"&&r.dictItems.forEach(function(n){i.push(n.key)})),i}function glblGetErrorMessageByKeyName(n){var t=n,i=glblJsonDataDictionary.filter(function(n){if(n.dictName.toLowerCase()=="ErrorMessages".toLocaleLowerCase())return n})[0],r;return typeof i!="undefined"?r=i.dictItems.filter(function(i){i.key.toLowerCase()==n.toLowerCase()&&(t=i.value)})[0]:t=n,t}function glblGetStaticValuesByKeyName(n){var t=n,i=glblJsonDataDictionary.filter(function(n){if(n.dictName.toLowerCase()=="Static Values".toLocaleLowerCase())return n})[0],r;return typeof i!="undefined"?r=i.dictItems.filter(function(i){i.key.toLowerCase()==n.toLowerCase()&&(t=i.value)})[0]:t=n,t}function fnGetURLParameterValueByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function glblFnPlaySound(n,t,i){glblFnRemoveElementsByClass("embed-audio");this.source=n;this.volume=t;this.loop=i;var r;this.son=r;this.finish=!1;this.stop=function(){document.body.removeChild(this.son)};this.start=function(){if(this.finish)return!1;this.son=document.createElement("embed");this.son.setAttribute("src",this.source);this.son.setAttribute("hidden","true");this.son.setAttribute("class","embed-audio");this.son.setAttribute("volume",this.volume);this.son.setAttribute("autostart","true");this.son.setAttribute("loop",this.loop);document.body.appendChild(this.son)};this.remove=function(){document.body.removeChild(this.son);this.finish=!0};this.init=function(n,t){this.finish=!1;this.volume=n;this.loop=t}}function glblFnRemoveElementsByClass(n){const t=document.getElementsByClassName(n);while(t.length>0)t[0].parentNode.removeChild(t[0])}function glblFnCapturePageViewsCount(n,t){typeof n!="undefined"&&n!=""&&typeof t!="undefined"&&t!=""&&jQuery.ajax({dataType:"jsonp",url:"/handlers/common/update-page-views.ashx?pageid="+n+"&pagename="+t,type:"POST",async:!0,success:function(){},error:function(){console.log("There has been an error on server views click count.")}})}function fnVoiceToSearch(){this.micButtonElement="";this.searchTextBoxElement="";this.searchButtonElement="";this.welcomeAudioId="";this.clickAudioId=""}function glblFnTitleCase(n){return typeof n!="undefined"&&n!=""?n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}):""}function fnConvertNumberToIndianCurrencyWithLetter(n){var t="";return typeof n!="undefined"&&n!=""&&(t=Math.abs(n),t>=1e7?t=(t/1e7).toFixed(0)+"Cr":t>=1e5?t=(t/1e5).toFixed(0)+"L":t>=1e3&&(t=(t/1e3).toFixed(0)+"K")),t}function fnTraceGlobalSearch(n,t){n!=""&&t!=""&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"search_term",eventCategory:"search_term_"+t,eventAction:n}))}function hideTabULTagIfEmpty(){var n=!1,t;jQuery(".tabs-heading li").each(function(){t=jQuery(this);jQuery(this).text().trim()!=""&&(n=!0)});n||jQuery(t).closest("ul").remove()}
1function newHomeSlider(){if(jQuery(".custom-carousel .slides").hasClass("slick-initialized"))jQuery(".custom-carousel .slides").slick("unslick"),setTimeout(function(){jQuery(".custom-carousel .slides").slick({infinite:!0,autoplay:!0,autoplaySpeed:4e3,centerMode:!1,adaptiveHeight:!0,slidesToShow:1,focusOnSelect:!0,slidesToScroll:1,rtl:rtlType,dots:!0,arrows:!1,fade:!0}).on("beforeChange",function(){jQuery(".custom-carousel .slides .slide .slide-info").css({"box-shadow":"0 20px 20px #d8632b29"})})},100);else jQuery(".custom-carousel .slides").slick({infinite:!0,autoplay:!0,autoplaySpeed:4e3,adaptiveHeight:!0,centerMode:!1,slidesToShow:1,focusOnSelect:!0,slidesToScroll:1,rtl:rtlType,dots:!0,arrows:!1,fade:!0}).on("beforeChange",function(){jQuery(".custom-carousel .slides .slide .slide-info").css({"box-shadow":"0 20px 20px #d8632b29"})})}function glblFnSetLikedItems(){if(fnReadCookie("LikedByItems")!=""&&jQuery(".likes-li").length>0){var n=JSON.parse(fnReadCookie("LikedByItems"));jQuery(".likes-li").each(function(){var t=jQuery(this).attr("data-id");typeof t!="undefined"&&t!=""&&(t=t.trim().toLocaleLowerCase(),n.indexOf(t)!=-1&&jQuery(this).addClass("liked-li"))})}}function fnSetHeaderMenuBasedOnPage(){var n,t;if(jQuery(".bob-nav-pb-link a:eq(0)").addClass("active"),n=window.location.href.toLowerCase(),typeof glblCurrentPageUrl!="undefined"){t=!1;jQuery(".bob-middle-first-link.bob-left-link a, .bob-top-navbar .bob-nav-pb-link a").each(function(){glblCurrentPageUrl.indexOf(jQuery(this).attr("href"))!=-1&&(jQuery(this).attr("href")!=="/"+glblCurrentLanguage+"/"||jQuery(this).attr("href")!=="/")&&(t=!0,i());this.href.toLowerCase()==n&&(jQuery(this).parent("li").siblings().find("a").removeClass("active"),jQuery(this).addClass("active"));i()});function i(){var n=jQuery(".bob-middle-first-link.bob-left-link a.active").parent("li").attr("data-id"),t=jQuery(".bob-middle-first-link.bob-left-link a.active").parent("li").attr("data-parent-id");jQuery(".bob-bottom-first-ul > li").each(function(){jQuery(this).data("id")==n?jQuery(this).show():jQuery(this).hide()});jQuery(".bob-top-navbar .bob-nav-pb-link a").each(function(){jQuery(this).parent("li").data("id")==t?jQuery(this).addClass("active"):jQuery(this).removeClass("active")})}function u(){n.indexOf("personal-banking")!=-1&&jQuery(".bob-nav-pb-link a:eq(0)").addClass("active");n.indexOf("business-banking")!=-1&&jQuery(".bob-nav-pb-link a:eq(1)").addClass("active");n.indexOf("nri-banking")!=-1?(jQuery(".bob-nav-pb-link a:eq(0)").addClass("active"),jQuery(".bob-middle-first-link.bob-left-link a").each(function(){this.href.toLowerCase().indexOf("nri-banking")==n.indexOf("nri-banking")?jQuery(this).addClass("active"):jQuery(this).removeClass("active");setTimeout(function(){r()},100)})):(jQuery(".bob-nav-pb-link a:eq(0)").addClass("active"),jQuery(".bob-middle-first-link.bob-left-link a.active").length==0&&jQuery(".bob-middle-first-link.bob-left-link a:eq(0)").addClass("active"),r())}function r(){var n=jQuery(".bob-middle-first-link.bob-left-link a.active").parent("li").attr("data-id");jQuery(".bob-bottom-first-ul > li").each(function(){jQuery(this).data("id")==n?jQuery(this).show():jQuery(this).hide()})}}fnHeaderLevel1MenuActive()}function addCustomAttributesOnTabLeftAndRightButtons(){setTimeout(function(){var t=jQuery(".bob-loan-page-tab-div .tabs-heading .mCSB_buttonLeft"),n;t.length&&t.attr("aria-label","left button").attr("role","button").attr("tabindex","0");n=jQuery(".bob-loan-page-tab-div .tabs-heading .mCSB_buttonRight");n.length&&n.attr("aria-label","right button").attr("role","button").attr("tabindex","0")},1e3)}function savingslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:2,rtl:rtlType,slidesToScroll:2,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n=".savingslider";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t();jQuery(".disc-box-right-div .closed-pp").on("click",function(){jQuery(".disc-box-right-div").fadeOut()})}function loantabslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:5,slidesToScroll:1,rtl:rtlType,focusOnSelect:!0,variableWidth:!0,prevArrow:'<span class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg"><svg xmlns="http://www.w3.org/2000/svg" width="13.088" height="7.731" viewBox="0 0 13.088 7.731" fill="#F26522"><path d="M12.879,101.344l-.429-.432a.718.718,0,0,0-1.013,0L6.547,105.8l-4.9-4.9a.718.718,0,0,0-1.013,0l-.429.429a.717.717,0,0,0,0,1.012l5.83,5.851a.732.732,0,0,0,.508.23h0a.732.732,0,0,0,.506-.23l5.824-5.835a.727.727,0,0,0,0-1.02Z" transform="translate(0 -100.698)"/><\/svg><\/span>',nextArrow:'<span class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg"><svg xmlns="http://www.w3.org/2000/svg" width="13.088" height="7.731" viewBox="0 0 13.088 7.731" fill="#F26522"><path d="M12.879,101.344l-.429-.432a.718.718,0,0,0-1.013,0L6.547,105.8l-4.9-4.9a.718.718,0,0,0-1.013,0l-.429.429a.717.717,0,0,0,0,1.012l5.83,5.851a.732.732,0,0,0,.508.23h0a.732.732,0,0,0,.506-.23l5.824-5.835a.727.727,0,0,0,0-1.02Z" transform="translate(0 -100.698)"/><\/svg><\/span>',responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n=".bob-loan-page-tab-div .tabs-heading11";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function typesofloanslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:4,slidesToScroll:1,rtl:rtlType,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n=".bob-types-slider-div .component-content ul.items";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function similarslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:3,rtl:rtlType,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n="#bob-similar-slider-id";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function applyforslider(){var n="#bob-apply-for-slider-id";if(jQuery("#bob-apply-for-slider-id").children().length>4&&winW>767){function t(){jQuery(n).slick({infinite:!1,slidesToShow:4,rtl:rtlType,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}else if(winW<766){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,rtl:rtlType,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}}function mobvideoslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,rtl:rtlType,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n=".bob-promo-tab-div .bob-blogs-thumb-style ul.items";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function calculatelistingslider(){function t(){jQuery().slick({infinite:!1,slidesToShow:2,slidesToScroll:1,variableWidth:!0,rtl:rtlType,arrows:!1})}var n=".bob-calculator-banner .component.link-list .component-content ul";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function lightpopupslider(){function n(){jQuery(".bob-popup-slider-big").slick({infinite:!1,slidesToShow:1,slidesToScroll:1,arrows:!1,asNavFor:".bob-popup-slider-thumb"}).on("afterChange",function(n,t,i){var r=jQuery(".bob-popup-slider-thumb .slick-slide:eq("+i+")").attr("data-iframe");jQuery(".bob-popup-slider-big iframe").attr("src","");jQuery(".bob-popup-slider-big .slick-slide:eq("+i+")").attr("src",r)});jQuery(".bob-popup-slider-thumb").slick({infinite:!1,centerMode:!1,slidesToShow:5,focusOnSelect:!0,rtl:rtlType,slidesToScroll:1,asNavFor:".bob-popup-slider-big",prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}n()}function hideTabULTagIfEmpty(){var n=!1,t;jQuery(".tabs-heading li").each(function(){t=jQuery(this);jQuery(this).text().trim()!=""&&(n=!0)});n||jQuery(t).closest("ul").remove()}function fnInitializeMinMaxDef(){typeof glblJsonDataCalculatorsMinMaxValues!="undefined"&&glblJsonDataCalculatorsMinMaxValues.length>0&&(amtMin=glblJsonDataCalculatorsMinMaxValues[0].loanAmountMinValue,amtMax=glblJsonDataCalculatorsMinMaxValues[0].loanAmountMaxValue,amtDefVal=glblJsonDataCalculatorsMinMaxValues[0].loanAmountDefaultValue,tenureMin=glblJsonDataCalculatorsMinMaxValues[0].tenureMinValue,tenureMax=glblJsonDataCalculatorsMinMaxValues[0].tenureMaxValue,tenureDefVal=glblJsonDataCalculatorsMinMaxValues[0].tenureDefaultValue,intRates
1Min=glblJsonDataCalculatorsMinMaxValues[0].rateOfInterestMinValue,intRatesMax=glblJsonDataCalculatorsMinMaxValues[0].rateOfInterestMaxValue,intRatesDefVal=glblJsonDataCalculatorsMinMaxValues[0].rateOfInterestDefaultValue)}function fnGlblValidateCalcFields(n,t,i,r){if(i==="amt_id"){if(n.keyCode===13||n.keyCode===32,isNaN(r)){alert("Please enter integer value");jQuery(t).text(amtDefVal);return}}else if(i==="month_id"){if(n.keyCode===13&&(alert("Enter is not allowed here. Default values will be populated"),jQuery(t).text("60")),isNaN(r)){alert("Please enter integer value only.");jQuery(t).text("60");return}}else if(i==="rates_id"){if(n.keyCode===13&&(alert("Enter is not allowed here. Default values will be populated"),jQuery(t).text("6.75")),isNaN(r)){alert("Please enter number only.");jQuery(t).text("6.75");return}if(jQuery(t).text().length>4){var u=twoDecimalNumber(jQuery(t).text());jQuery(t).text(u)}}}function twoDecimalNumber(n){return Number(n).toFixed(2)}function dispNum(n){var i=Math.round(n);i+="";x=i.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/,r=0,f=String(x1).length,u=parseInt(f/2-1);t.test(x1);)if(r>0?x1=x1.replace(t,"$1,$2"):(x1=x1.replace(t,"$1,$2"),t=/(\d+)(\d{2})/),r++,u--,u==0)break;return x1+x2}function numberWithCommas(n){return n.toLocaleString("en-in")}function calEMIval(n){var t=n,i=jQuery("#tenure").val()*12;return t*(7.1/1200)}function financialYear(n){var y=15,d=new Date,w,b,f,l,a,k;fullYear=d.getFullYear();var p=["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar"],g=n,v=jQuery("#invAmt").parents(".slidecontainer").next("small").find("em").text();switch(g){case"Monthly":w="";b="";jQuery(".monthly").show();jQuery(".quarterly").hide();jQuery(".halfYearly").hide();jQuery(".annual").hide();jQuery("#finTable").empty();var i=0,r=0,o=0,t=0,e=0,s=0,u=0,h=0,c=0;for(f=0;f<y;f++)l=0,a=fullYear,a=a+f,k=parseInt(f)+1,jQuery(p).each(function(){l++;i=parseInt(v.replace(/[,]/g,""));r=i;t=t+r;o=calEMIval(t);e=e+i;u=u+o;l==12&&(s=t+u,t=parseInt(s.toFixed(0)),h=h+e,c=c+u,u=0,e=0)});jQuery(".MatureAmountPPF").text(dispNum(s.toFixed(0)));jQuery(".ttlDeposit").text(dispNum(h.toFixed(0)));jQuery(".ttlInterest").text(dispNum(c.toFixed(0)));break;case"Quarterly":w="";b="";jQuery(".monthly").hide();jQuery(".quarterly").css("display","block");jQuery(".halfYearly").hide();jQuery(".annual").hide();jQuery("#finTable").empty();var i=0,r=0,o=0,t=0,e=0,s=0,u=0,h=0,c=0;for(f=0;f<y;f++)l=0,a=fullYear,a=a+f,k=parseInt(f)+1,jQuery(p).each(function(n,f){if(l++,f=="Apr")i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t);else if(f=="Jul")i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t);else if(f=="Oct")i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t);else if(f=="Jan")i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t);else{i=0;r=i;t=t+r;o=calEMIval(t);jQuery(".quarterly .inputBox").on("change",function(){jQuery(".quarterly .inputBox").val()>37500?jQuery(".quarterly .inputBox").val("37,500"):jQuery(".quarterly .inputBox").val()<500&&jQuery(".quarterly .inputBox").val("500")})}e=e+i;u=u+o;l==12&&(s=t+u,t=parseInt(s.toFixed(0)),h=h+e,c=c+u,u=0,e=0)});jQuery(".MatureAmountPPF").text(dispNum(s.toFixed(0)));jQuery(".ttlDeposit").text(dispNum(h.toFixed(0)));jQuery(".ttlInterest").text(dispNum(c.toFixed(0)));break;case"Half-Yearly":w="";b="";jQuery(".monthly").hide();jQuery(".quarterly").hide();jQuery(".halfYearly").css("display","block");jQuery(".annual").hide();jQuery("#finTable").empty();var i=0,r=0,o=0,t=0,e=0,s=0,u=0,h=0,c=0;for(f=0;f<y;f++)l=0,a=fullYear,a=a+f,k=parseInt(f)+1,jQuery(p).each(function(n,f){l++;f=="Apr"?(i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t)):f=="Oct"?(i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t)):(i=0,r=i,t=t+r,o=calEMIval(t));e=e+i;u=u+o;l==12&&(s=t+u,t=parseInt(s.toFixed(0)),h=h+e,c=c+u,u=0,e=0)});jQuery(".MatureAmountPPF").text(dispNum(s.toFixed(0)));jQuery(".ttlDeposit").text(dispNum(h.toFixed(0)));jQuery(".ttlInterest").text(dispNum(c.toFixed(0)));break;case"Annual":w="";b="";jQuery(".monthly").hide();jQuery(".quarterly").hide();jQuery(".halfYearly").hide();jQuery(".annual").css("display","block");jQuery("#finTable").empty();var i=0,r=0,o=0,t=0,e=0,s=0,u=0,h=0,c=0;for(f=0;f<y;f++)l=0,a=fullYear,a=a+f,k=parseInt(f)+1,jQuery(p).each(function(n,f){l++;
1f=="Apr"?(i=parseInt(v.replace(/[,]/g,"")),r=i,t=t+r,o=calEMIval(t)):(i=0,r=i,t=t+r,o=calEMIval(t));e=e+i;u=u+o;l==12&&(s=t+u,t=parseInt(s.toFixed(0)),h=h+e,c=c+u,u=0,e=0)});jQuery(".MatureAmountPPF").text(dispNum(s.toFixed(0)));jQuery(".ttlDeposit").text(dispNum(h.toFixed(0)));jQuery(".ttlInterest").text(dispNum(c.toFixed(0)))}}function range_slider_change(){setTimeout(function(){jQuery('input[type="range"]').each(function(){var n=jQuery(this).attr("min"),t=jQuery(this).attr("max"),i=jQuery(this).val();jQuery(this).css({"background-size":(i-n)*100/(t-n)+"% 100%"})})},100)}function getKeyCode(n){return window.event?window.event.keyCode:n?n.which:null}function keyRestrictValidChars(n,t){var i="",r="";return(i=getKeyCode(n),i==null)?!0:(r=String.fromCharCode(i),r=r.toLowerCase(),t=t.toLowerCase(),t.indexOf(r)!=-1)?!0:i==null||i==0||i==8||i==9||i==13||i==27?!0:!1}function inrFormat(n,t){csy=t?"&#8377; ":"";n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var i=/(\d+)(\d{3})/,r=0,f=String(x1).length,u=parseInt(f/2-1);i.test(x1)&&(r>0?x1=x1.replace(i,"$1,$2"):(x1=x1.replace(i,"$1,$2"),i=/(\d+)(\d{2})/),r++,u--,0!=u););return csy+""+x1+x2}function calculate(){var c=jQuery("#hltc-existing-loan-amount").val(),e=(jQuery("#hltc-existing-emi").val()*1).toFixed(0),o=jQuery("#hltc-remaining-tenure").val()*1,s=jQuery("#hltc-bob-tenure").val()*1,h=jQuery("#hltc-bob-interest-rate").val(),n=c*(h/1200)*Math.pow(1+h/1200,s)/(Math.pow(1+h/1200,s)-1),i,t,r,u,f;n=(n*1).toFixed(0);jQuery("#spn_monthly_emi_actual").html(inrFormat(e,1));jQuery("#spn_monthly_emi_result").html(inrFormat(n,1));i=jQuery("#hltc-existing-emi").val()*1;i>n||i==n?i==n?jQuery(".rating-block.emi-block").removeClass("bob_greater bob_less").addClass("bob_equal"):jQuery(".rating-block.emi-block").removeClass("bob_greater bob_equal").addClass("bob_less"):jQuery(".rating-block.emi-block").removeClass("bob_less bob_equal").addClass("bob_greater");t=e-n;t<0&&(t=0);jQuery("#spn_monthly_saving").html(inrFormat(t,1));jQuery("#spn_Total_Savings").html("You Save "+inrFormat(t*o,1));r=e*o;u=n*s;r>u||r==u?r>u?jQuery(".rating-block.saving-block").removeClass("bob_greater bob_equal").addClass("bob_less"):jQuery(".rating-block.saving-block").removeClass("bob_greater bob_less").addClass("bob_equal"):jQuery(".rating-block.saving-block").removeClass("bob_less bob_equal").addClass("bob_greater");f=t*o;f<=0&&(f=0);jQuery("#spn_Total_Savings").html(inrFormat(f,1))}function diffChangeVal(){var n,r;jQuery("#tenureDays").val(0);var t=new Date,u=t.getFullYear(),i=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"],f=t.getDate()+" "+i[t.getMonth()]+" "+u;jQuery("#inputDateFDeposit").val(f);n=new Date;n.setDate(n.getDate()+parseInt(jQuery("#tenureDay").val()));var e=n.getDate(),o=i[n.getMonth()],s=n.getFullYear(),h=e+" "+o+" "+s;jQuery("#maturity-date").text(h);r=DaysCount();getRates(r)}function setcalculatorsharevalue(){var o,f,e,p,w,k,v,a,g,nt,s,h,c,y,t;if(glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.personalloan,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/sip-calculator"||glblCurrentPageUrl=="/hi-in/calculators/sip-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.sip;const t=window.location.href;f=t.includes("tinvt")?n[0].tinvt:n[0].amt;e=parseInt(n[0].tenure);o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/gratuity-calculator"||glblCurrentPageUrl=="/hi-in/calculators/gratuity-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.gratuity;const t=window.location.href;f=n[0].amt;e=parseInt(n[0].tenure);UpdateSliderValues(f,e,0);return}if(glblCurrentPageUrl=="/calculators/mudra-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/mudra-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.mudraloan,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/car-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/car-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.carloan,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/two-wheeler-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/two-wheeler-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.twlloan,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/recurring-deposit-calculator"||glblCurrentPageUrl=="/hi-in/calculators/recurring-deposit-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.rdcal,b=n[0].rmd;jQuery("#regularMonthlyDeposit").val(b);p=parseInt(n[0].sty);jQuery("#savingsTermyears").val(p);w=parseInt(n[0].stm);jQuery("#savingsTermmonths").val(w);k=n[0].radiosel;k=="1"?(jQuery("#radio11").prop("checked",!0),jQuery("#radio12").prop("checked",!1)):(jQuery("#radio11").prop("checked",!1),jQuery("#radio12").prop("checked",!0));jQuery("#regularMonthlyDeposit").closest("li").find("small em").html(b);jQuery("#savingsTermyears").closest("li").find("small em").html(p);jQuery("#savingsTermmonths").closest("li").find("small em").html(w);RDEMI();return}if(glblCurrentPageUrl=="/calculators/education-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/education-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.eduloan,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/ppf-calculator"||glblCurrentPageUrl=="/hi-in/calculators/ppf-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.ppfloan,d=n[0].invAmt;jQuery("#invAmt").parents(".slidecontainer").next("small").find("em")[0].innerText=d;jQuery("#invAmt").parents("li").find(".slidecontainer input").val(d);v=n[0].invFre;jQuery("#invFrequency li[value='"+v+"']").click();resetRangeSlider(v);financialYear(v);return}if(glblCurrentPageUrl=="/calculators/home-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/home-loan-emi-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.homeloanemi,f=n[0].amt,e=parseInt(n[0].tenure),o=n[0].interest;UpdateSliderValues(f,e,o);return}if(glblCurrentPageUrl=="/calculators/fixed-deposit-calculator"||glblCurrentPageUrl=="/hi-in/calculators/fixed-deposit-calculator"||glblCurrentPageUrl=="/personal-banking/accounts/term-deposit/fd-new"||glblCurrentPageUrl=="/hi-in/personal-banking/accounts/term-deposit/fd-new"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.fdemi,tt=n[0].userType;tt==""?(jQuery("#radio1").prop("checked",!0),jQuery("#radio2").prop("checked",!1)):(jQuery("#radio1").prop("checked",!1),jQuery("#radio2").prop("checked",!0));a=n[0].fdType;jQuery("#fdType li[value='"+a+"']").click();g=n[0].loanamt;jQuery("#loan_amount").val(g);nt=n[0].ten;nt=="ymd"?(jQuery(".days-depend").removeClass("d-none"),jQuery(".tenureDaysfield").addClass("d-none"),jQuery("#tnrDate").prop("checked",!0),jQuery("#tnrDays").prop("checked",!1),s=n[0].tenYear,jQuery("#tenureYear").val(s),h=n[0].tenMon,jQuery("#tenureMon").val(h),c=n[0].tenDay,jQuery("#tenureDay").val(c),jQuery("#tenureYear").parents(".slidecontainer").next("small").find("em")[0].innerText=s,jQuery("#tenureYear").parents("li").find(".slidecontainer input").val(s),jQuery("#tenureMon").parents(".slidecontainer").next("small").find("em")[0].innerText=h,jQuery("#tenureMon").parents("li").find(".slidecontainer input").val(h),jQuery("#tenureDay").parents(".slidecontainer").next("small").find("em")[0].innerText=c,jQuery("#tenureDay").parents("li").find(".slidecontainer input").val(c),y=n[0].tenDays,jQuery("#tenureDays").val(y)):(jQuery(".days-depend").addClass("d-none"),jQuery(".tenureDaysfield").removeClass("d-none"),jQuery("#tnrDate").prop("checked",!1),jQuery("#tnrDays").prop("checked",!0),s=n[0].tenYear,jQuery("#tenureYear").val(s),h=n[0].tenMon,jQuery("#tenureMon").val(h),c=n[0].tenDay,jQuery("#tenureDay").val(c),y=n[0].tenDays,jQuery("#tenureDays").val(y),jQuery("#tenureYear").parents(".slidecontainer").next("small").find("em")[0].innerText=s,jQuery("#tenureYear").parents("li").find(".slidecontainer input").val(s),jQuery("#tenureMon").parents(".slidecontainer").next("small").find("em")[0].innerText=h,jQuery("#tenureMon").parents("li").find(".slidecontainer input").val(h),jQuery("#tenureDay").parents(".slidecontainer").next("small").find("em")[0].innerText=c,jQuery("#tenureDay").parents("li").find(".slidecontainer input").val(c));Dates();a=="Quarterly Payout"?MaturityQP():a=="Monthly Payout"?MaturityMP():a=="Short Term FD"?MaturityQP():a=="Cumulative"&&Cumulative()}else if(glblCurrentPageUrl=="/calculators/gold-loan-calculator"||glblCurrentPageUrl=="/hi-in/calculators/gold-loan-calculator"){var i=fnGetURLParameterValueByName("shareurl"),r=decodeURI(i),u=JSON.parse(r),n=u.ddl_ornadata,l=n.length;if(ornamentclick(l),jQuery(".bob-select-data-div").show(),jQuery(".tblGoldLoan").css("display","block"),jQuery(".notshow").hide(),l==1)for(jQuery('input[name="radioTenure"][value="'+n[0].ddl_orna1[0].selectedradio+'"]').prop("checked",!0),jQuery("#ddlCarat1 li[data-no='"+n[0].ddl_orna1[0].ddlCarat1+"']").click(),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#spnLoanValue1").val(n[0].ddl_orna1[0].spnLoanValue1),jQuery("#hdnLoanValue1").val(n[0].ddl_orna1[0].hdnLoanValue1),t=1;l>=t;t++)jQuery(".article"+t).show();else if(l==2)for(jQuery("#ddlCarat1 li[data-no='"+n[0].ddl_orna1[0].ddlCarat1+"']").click(),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#spnLoanValue1").val(n[0].ddl_orna1[0].spnLoanValue1),jQuery("#hdnLoanValue1").val(n[0].ddl_orna1[0].hdnLoanValue1),jQuery("#ddlCarat2 li[data-no='"+n[1].ddl_orna2[0].ddlCarat2+"']").click(),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#spnLoanValue2").val(n[1].ddl_orna2[0].spnLoanValue2),jQuery("#hdnLoanValue2").val(n[1].ddl_orna2[0].hdnLoanValue2),t=1;l>=t;t++)jQuery(".article"+t).show();else if(l==3)for(jQuery("#ddlCarat1 li[data-no='"+n[0].ddl_orna1[0].ddlCarat1+"']").click(),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#spnLoanValue1").val(n[0].ddl_orna1[0].spnLoanValue1),jQuery("#hdnLoanValue1").val(n[0].ddl_orna1[0].hdnLoanValue1),jQuery("#ddlCarat2 li[data-no='"+n[1].ddl_orna2[0].ddlCarat2+"']").click(),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#spnLoanValue2").val(n[1].ddl_orna2[0].spnLoanValue2),jQuery("#hdnLoanValue2").val(n[1].ddl_orna2[0].hdnLoanValue2),jQuery("#ddlCarat3 li[data-no='"+n[2].ddl_orna3[0].ddlCarat3+"']").click(),jQuery("#txtWeight3").val(n[2].ddl_orna3[0].txtWeight3),jQuery("#txtWeight3").val(n[2].ddl_orna3[0].txtWeight3),jQuery("#spnLoanValue3").val(n[2].ddl_orna3[0].spnLoanValue3),jQuery("#hdnLoanValue3").val(n[2].ddl_orna3[0].hdnLoanValue3),t=1;l>=t;t++)jQuery(".article"+t).show();else for(jQuery("#ddlCarat1 li[data-no='"+n[0].ddl_orna1[0].ddlCarat1+"']").click(),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#txtWeight1").val(n[0].ddl_orna1[0].txtWeight1),jQuery("#spnLoanValue1").val(n[0].ddl_orna1[0].spnLoanValue1),jQuery("#hdnLoanValue1").val(n[0].ddl_orna1[0].hdnLoanValue1),jQuery("#ddlCarat2 li[data-no='"+n[1].ddl_orna2[0].ddlCarat2+"']").click(),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#txtWeight2").val(n[1].ddl_orna2[0].txtWeight2),jQuery("#spnLoanValue2").val(n[1].ddl_orna2[0].spnLoanValue2),jQuery("#hdnLoanValue2").val(n[1].ddl_orna2[0].hdnLoanValue2),jQuery("#ddlCarat3 li[data-no='"+n[2].ddl_orna3[0].ddlCarat3+"']").click(),jQuery("#txtWeight3").val(n[2].ddl_orna3[0].txtWeight3),jQuery("#txtWeight3").val(n[2].ddl_orna3[0].txtWeight3),jQuery("#spnLoanValue3").val(n[2].ddl_orna3[0].spnLoanValue3),jQuery("#hdnLoanValue3").val(n[2].ddl_orna3[0].hdnLoanValue3),jQuery("#ddlCarat4 li[data-no='"+n[3].ddl_orna4[0].ddlCarat4+"']").click(),jQuery("#txtWeight4").val(n[3].ddl_orna4[0].txtWeight4),jQuery("#txtWeight4").val(n[3].ddl_orna4[0].txtWeight4),jQuery("#spnLoanValue4").val(n[3].ddl_orna4[0].spnLoanValue4),jQuery("#hdnLoanValue4").val(n[3].ddl_orna4[0].hdnLoanValue4),t=1;l>=t;t++)jQuery(".article"+t).show()}}function ornamentclick(n){jQuery("#ddl_ornaments li[data-no='"+n+"']").click();for(var i=n,t=1;4>=t;t++)document.getElementById("txtWeight"+t).value="",document.getElementById("hdnWeight"+t).value="",document.getElementById("spnLoanValue"+t).innerHTML="",document.getElementById("hdnLoanValue"+t).value="",jQuery("#ddlCarat"+t).val(0);jQuery("#ddlNoofOrnaments").val(n);jQuery("#ddlNoofOrnaments").val(n);return}function UpdateSliderValues(n,t,i){var o,s,u,r;if(glblCurrentPageUrl=="/calculators/sip-calculator"){if(fnGetURLParameterValueByName("shareurl")!=""){const t=window.location.href;t.includes("tinvt")?(jQuery("#total_investment").parents(".slidecontainer").next("small").find("em")[0].innerText=n,jQuery("input[type='range']")[1].value=n,jQuery(".sip").removeClass("active"),jQuery(".lumpsum").addClass("active"),jQuery(".cal-heading").html("LUMPSUM"),jQuery(".sip-amount").hide(),jQuery(".total-investment").show()):(jQuery("#amt_id").parents(".slidecontainer").next("small").find("em")[0].innerText=n,jQuery("input[type='range']")[0].value=n)}}else jQuery("#amt_id").parents(".slidecontainer").next("small").find("em")[0].innerText=n,jQuery("input[type='range']")[0].value=n;jQuery("#rates_id").parents(".slidecontainer").next("small").find("em")[0].innerText=i;jQuery("#rates_id").parents("li").find(".slidecontainer input").val(i);jQuery("#month_id").parents(".slidecontainer").next("small").find("em")[0].innerText=t;jQuery("#month_id").parents("li").find(".slidecontainer input").val(t);o=n;document.getElementById("amt_id").value=o;s=t;
1document.getElementById("month_id").value=s;u=i;document.getElementById("rates_id").value=u;var f=i/100,c=t/12,l=[];for(r=0;r<=c;r++)l.push(r);var e=n*f/12*(Math.pow(1+f/12,t)/(Math.pow(1+f/12,t)-1)),h=e*t,u=h-n;jQuery("#monthly-hl-emi").html("₹"+Math.round(e).toLocaleString("en-in"));jQuery(".total-loan span").html("₹"+Math.round(e).toLocaleString("en-in"));jQuery("#spn_principal_amt").html("₹"+Math.round(n).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery("#spn_total_amt").html("₹"+Math.round(h).toLocaleString("en-in"));glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"?MonthlyTableData():glblCurrentPageUrl=="/calculators/gratuity-calculator"||glblCurrentPageUrl=="hi-in/calculators/gratuity-calculator"?calculateGratuity():yearlyTableData()}function MonthlyTableData(){var v=[],y=[],p=[],t,a,tt,it;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var w=jQuery("#amt_id").val(),o=jQuery("#amt_id").val(),u=parseInt(jQuery("#amt_id").val()),f=parseFloat(jQuery("#rates_id").val())/100,b=document.getElementById("month_id").value;var k=b/12,s=parseInt(k*12),d=u*f/12*(Math.pow(1+f/12,s)/(Math.pow(1+f/12,s)-1)),i=0,r=0,c=0,e=u;v.push(u);y.push(sumArrayFun(0));p.push(u+sumArrayFun(0));var rt=u*f/12,h=0,l=0,g=[],nt=[],n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Month<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>Interest paid during the month<\/th>",n+="     <th>Principal repaid during the month<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=1;t<=s;t++)c=e*f/12,a=sumArrayFun(t),l=d-c,r=e-l,e=r,o=i,i==0?(o=r,i=o):(i=o,h=i,i=r,t==s&&(r=h-h)),v.push(e),y.push(a),p.push(e+a),n+="<tbody>",n+="<tr>",n+="    <td>"+Math.round(t)+"<\/td>",n+=t==1?"    <td>"+Math.round(w).toLocaleString("en-in")+"<\/td>":"    <td>"+Math.round(h).toLocaleString("en-in")+"<\/td>",n+="    <td>"+Math.round(c).toLocaleString("en-in")+"<\/td>",n+="    <td>"+Math.round(l).toLocaleString("en-in")+"<\/td>",n+="    <td>"+Math.round(r).toLocaleString("en-in")+"<\/td>",n+="<\/tr>",n+="<\/tbody>",g.push(Math.round(it)),nt.push(Math.round(tt));return n+="<\/table>",jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=n),jQuery("#personalLoanamortizationEligibility").length>0&&(document.getElementById("personalLoanamortizationEligibility").innerHTML=n),[[],[],[]]}function yearlyTableData(){var w=[],v=[],b=[],rt,g,t,p,a;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var f=jQuery("#amt_id").val(),e=jQuery("#amt_id").val(),r=parseInt(jQuery("#amt_id").val()),o=parseFloat(jQuery("#rates_id").val())/100,st=document.getElementById("month_id").value;var nt=st/12,k=parseInt(nt*12),d=parseInt(nt),u=r*o/12*(Math.pow(1+o/12,k)/(Math.pow(1+o/12,k)-1)),tt=0,h=0,s=0,it=0,c=r;for(w.push(r),v.push(sumArrayFun(0)),b.push(r+sumArrayFun(0)),rt=r*o/12,t=1;t<=k;t++)it=c*o/12,g=sumArrayFun(t),c=c-u+it,w.push(c),v.push(g),b.push(c+g);u=u*12;var ut=[],ft=[],et=[],y=0,ht=[],ct=[],n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Year<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>EMI*12<\/th>",n+="     <th>Interest paid yearly<\/th>",n+="     <th>Principal paid yearly<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=1;t<=d;t++){d==t&&(y=0);var ot=w[t*12]+y,lt=v[t*12]+y,wt=b[t*12]+y,i,l,at;i=rt+v[1]-lt;s==0?(s=Math.round(i-s),p=s):(p=Math.round(i-s),s=i);l=r-ot;a=r-ot;at=i+l;et.push(Math.round(i+l));ft.push(Math.round(i));ut.push(Math.round(l));var vt=u,yt=e*o,pt=twoDecimal(yt);t<d?(vt=twoDecimal(Math.round(u)-Math.round(pt)),f=Math.round(e),a=u-p,e=twoDecimal(f-Math.round(a)),tt==0?(tt=e,h=e):h=h-a):(f=e,h=f-f);n+="<tbody>";n+="<tr>";n+="    <td>"+Math.round(t)+"<\/td>";n+="    <td>"+Math.round(f).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(u).toLocaleString("en-in")+"<\/td>";n+="    <td>
1"+Math.round(p).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(a).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(h).toLocaleString("en-in")+"<\/td>";n+="<\/tr>";n+="<\/tbody>";ht.push(Math.round(l));ct.push(Math.round(i))}return n+="<\/table>",jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=n),jQuery("#personalLoanamortizationEligibility").length>0&&(document.getElementById("personalLoanamortizationEligibility").innerHTML=n),[ut,ft,et]}function gblbFnHomeLoanEligibilitySetValuesOnPageLoad(){if(jQuery("#homeloaneligibilityform").length>0)if(fnGetURLParameterValueByName("shareurl")!="")sethomeloaneligibilityCalShare();else{var n=new Date;jQuery("#DOB").val("1986-07-05");jQuery("#cibil_score").val("701andabovebutlessthan726");jQuery("#other_emi").val(0);jQuery("#other_deduction").val(5e3);jQuery("#emi_amount").val(19e3);jQuery("#per_lac_emi").val(855);jQuery("#max_emi_allowed").val(19e3);jQuery("#foir").val(60);jQuery("#month_id").val(240);jQuery("#eligible_loan_amount").val(2038340);jQuery("#eligible_loan_amount").html("₹20,38,340");jQuery("#eligible_tenure").val(240);jQuery("#eligible_tenure").html("240");jQuery("#interest_rate").val(9.5);jQuery("#interest_rate").html("9.50%");jQuery("#gross_annual_income").hide();jQuery("#bobtitleDOI").hide();jQuery("#other_deduction_title").hide();jQuery("#cibil_score li:eq(4)").click();setTimeout(function(){jQuery("#calculateEligibility").click()},10)}}function sethomeloaneligibilityCalShare(){var s=fnGetURLParameterValueByName("shareurl"),h=decodeURI(s),c=JSON.parse(h),n=c.hlecdet,l=n[0].radTen,i,r,t,u,f,e,o;l=="selfEmployed"?(jQuery("#selfEmployed").prop("checked",!0),jQuery("#salaried").prop("checked",!1),jQuery("#monthly_salary_label").hide(),jQuery("#bobtitle").hide(),jQuery("#gross_annual_income").show(),jQuery("#bobtitleDOI").show(),jQuery("#other_deduction_title").show(),jQuery("#other_deduction_nps").hide()):(jQuery("#selfEmployed").prop("checked",!1),jQuery("#salaried").prop("checked",!0),jQuery("#gross_annual_income").hide(),jQuery("#bobtitleDOI").hide(),jQuery("#monthly_salary_label").show(),jQuery("#bobtitle").show(),jQuery("#other_deduction_title").hide(),jQuery("#other_deduction_nps").show());i=n[0].gms;jQuery("#gross_monthly_salary").val(i);r=n[0].dob;jQuery("#DOB").val(r);t=n[0].mon;jQuery("#month_id").val(t);jQuery("#eligible_tenure").val(t);u=n[0].cibil;jQuery("#cibil_score li[value='"+u+"']").click();f=n[0].othemi;jQuery("#other_emi").val(f);e=n[0].othdeduc;jQuery("#other_deduction").val(e);o=n[0].foir;
1jQuery("#foir").val(o);setTimeout(function(){jQuery("#calculateEligibility").click()},10)}function calValidation(){jQuery(".numbersOnly").keypress(function(n){var t=jQuery(this).parent().find(".error_message");if(n.which!=8&&n.which!=0&&(n.which<48||n.which>57))return t.html("Number only."),t.css("display","block"),!1;t.html("");t.css("display","none")});jQuery(".inputBox input").keyup(function(n){n.which==13&&jQuery(this).blur();var t=jQuery(this).val().replace(/[,]/g,"");t>=jQuery(this).data("minval")&&t<=jQuery(this).data("maxval")?(jQuery(this).parents(".inpt-statement").find(".clssErrorMsg").css("visibility","hidden"),jQuery(this).parent().removeClass("errorBorder")):(jQuery(this).parents(".inpt-statement").find(".clssErrorMsg").css("visibility","visible"),jQuery(this).parent().addClass("errorBorder"))});jQuery(".numbersDecimal").on("input",function(n){var t=jQuery(this);t.val(t.val().replace(/[^0-9\.]/g,""));(n.which!=46||t.val().indexOf(".")!=-1)&&(n.which<48||n.which>57)&&n.preventDefault()})}function digits(n){return String(n).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")}function getRates(n){var t=jQuery("#loan_amount").val(),i=jQuery("#radio1").is(":checked")?"":"ccitizen",r=glblFnGetRate(t,n,i);jQuery(".idRate").html(r)}function glblFnGetRate(n,t,i){var u,r;return typeof glblJsonDataCalculatorsRates!="undefined"?(u=glblJsonDataCalculatorsRates.filter(function(t){return n>=t.minA&&n<=t.maxA})[0],typeof u!="undefined"?(r=u.days.filter(function(n){return t>=n.min&&t<=n.max})[0],typeof r!="undefined"?i=="ccitizen"?r.ctzR:r.normalR:0):0):0}function MaturityQP(){var n=0,r=parseInt(jQuery("#tenureYear").val()),u=r*12+parseInt(jQuery("#tenureMon").val()),t,o,s;jQuery("#tenureDays").val()!=""&&(n=parseInt(jQuery("#tenureDays").val()));jQuery("#tnrDays").is(":checked")&&(t=calculateTimimg(n),r=t.years,u=r*12+t.months,n=t.days);var h=jQuery("#loan_amount").val(),i=h.replace(/\,/g,""),f=parseFloat(jQuery(".idRate").text())/100,c=parseFloat(jQuery(".idRate").text())/100,e=Math.round(i*(1+f*u/12)+i*n*c/365),l=jQuery("#fdType li.active").attr("value");l=="Short Term FD"?jQuery(".MatureAmountNew").text(digits(e)):(jQuery(".MatureAmountNew").text(jQuery(".loanAmt").val()),jQuery(".perQuaterCol").show(),o=parseFloat(i*f/4),jQuery(".perQuaterAmt").text(digits(o.toFixed(0))));s=e-i;jQuery(".InterestAmount").text("₹"+digits(s))}function MaturityMP(){var n=0,r=parseInt(jQuery("#tenureYear").val()),e=r*12+parseInt(jQuery("#tenureMon").val()),t,c,s;jQuery("#tenureDays").val()!=""&&(n=parseInt(jQuery("#tenureDays").val()));jQuery("#tnrDays").is(":checked")&&(t=calculateTimimg(n),r=t.years,e=r*12+t.months,n=t.days);var h=jQuery("#loan_amount").val(),i=h.replace(/\,/g,""),l=parseFloat(jQuery(".idRate").text())/100,u=parseFloat(jQuery(".idRate").text())/100,f=u/4/(Math.pow(1+u/12,2)+(1+u/12)+1)*12,o=i*f/12*e+i*f*n/365+i;jQuery(".MatureAmountNew").text(jQuery(".loanAmt").val());c=o;jQuery(".InterestAmount").text("₹"+digits(Math.round(o)));jQuery(".perMPCol").show();s=parseFloat(i*f/12);jQuery(".perMPAmt").text(digits(s.toFixed(0)))}function Cumulative(){var n=0,u=parseInt(jQuery("#tenureYear").val()),t=u*12+parseInt(jQuery("#tenureMon").val()),i,s;jQuery("#tenureDays").val()!=""&&jQuery("#tenureDays").val()!="0"&&(n=parseInt(jQuery("#tenureDays").val()));jQuery("#tenureDay").val()!=""&&jQuery("#tenureDay").val()!="0"&&(n=parseInt(jQuery("#tenureDay").val()));jQuery("#tnrDays").is(":checked")&&(i=calculateTimimg(n),u=i.years,t=u*12+i.months,n=i.days);var c=jQuery("#loan_amount").val(),e=jQuery("#loan_amount").val(),l=parseFloat(jQuery(".idRate").text())/100,r=parseFloat(jQuery(".idRate").text())/100,a=Math.pow(1+r/4,4)-1,f=Math.round(Math.pow(1+r/4,Math.floor(t/3))*e),h=Math.round(n*r*f/365+(t-Math.floor(t/3)*3)*30.5*(r/365)*f),o=Math.round(f+h);jQuery(".MatureAmountNew").text(digits(o));s=o-e;jQuery(".InterestAmount").text("₹"+digits(s))}function Dates(){var i=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"],r=0,u=0,t=0,n=new Date,o=n.getDate()+" "+i[n.getMonth()]+" "+n.getFullYear();
1jQuery("#inputDateFDeposit").val(o);jQuery("#tenureYear").val()!=""&&(r=parseInt(jQuery("#tenureYear").val()),n.setFullYear(n.getFullYear()+r));jQuery("#tenureMon").val()!=""&&(u=parseInt(jQuery("#tenureMon").val()),n.setMonth(n.getMonth()+u));jQuery("#tenureDays").val()!=""&&(t=parseInt(jQuery("#tenureDays").val()),n.setDate(n.getDate()+t));jQuery("#tenureDay").val()!=""&&(t=parseInt(jQuery("#tenureDay").val()),n.setDate(n.getDate()+t));var f=n.getDate(),s=i[n.getMonth()],h=n.getMonth(),e=n.getFullYear(),c=f+" "+s+" "+e;jQuery(".maturityDate").text(c);var l=new Date,a=new Date(e,h,f),v=new Date(a-l),y=Math.round(v/864e5);getRates(y+1)}function DaysCount(){var i=0,r=0,t=0,n=new Date;jQuery("#tenureYear").val()!=""&&(i=parseInt(jQuery("#tenureYear").val()),n.setFullYear(n.getFullYear()+i));jQuery("#tenureMon").val()!=""&&(r=parseInt(jQuery("#tenureMon").val()),n.setMonth(n.getMonth()+r));jQuery("#tenureDays").val()!=""&&(t=parseInt(jQuery("#tenureDays").val()),n.setDate(n.getDate()+t));jQuery("#tenureDay").val()!=""&&(t=parseInt(jQuery("#tenureDay").val()),n.setDate(n.getDate()+t));var u=n.getDate(),f=n.getMonth(),e=n.getFullYear(),o=new Date,s=new Date(e,f,u),h=new Date(s-o),c=Math.round(h/864e5);return c+1}function OnlyDates(){var t=0,n=new Date;jQuery("#tenureDays").val()!=""&&(t=parseInt(jQuery("#tenureDays").val()),n.setDate(n.getDate()+t));var i=n.getDate(),u=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"][n.getMonth()],f=n.getMonth(),r=n.getFullYear(),e=i+" "+u+" "+r;jQuery(".maturityDate").text(e);var o=new Date,s=new Date(r,f,i),h=new Date(s-o),c=Math.round(h/864e5);getRates(c+1)}function BindHomeLoanElgibilityCalc(){var t;if(jQuery("#eligible_loan_amount").length>0||jQuery("#eligible_tenure").length>0||jQuery("#interest_rate").length>0)var i=document.getElementById("eligible_loan_amount").value,n=document.getElementById("eligible_tenure").value,e=document.getElementById("interest_rate").value;var r=e/100,o=n/12,s=[];for(t=0;t<=o;t++)s.push(t);var u=i*r/12*(Math.pow(1+r/12,n)/(Math.pow(1+r/12,n)-1)),f=u*n,h=f-i;jQuery("#monthly-hl-emi").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery("#spn_principal_amt").html("₹"+Math.round(i).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+Math.round(h).toLocaleString("en-in"));jQuery("#spn_total_amt").html("₹"+Math.round(f).toLocaleString("en-in"));yearlyHomeLoanEligibility()}function sumArrayFunHomeElig(n){for(var r=InterestEligi(),t=0,i=n;i<r[0].length;i++)t=t+r[0][i];return t}function InterestEligi(){var f;if(jQuery("#eligible_loan_amount").length>0||jQuery("#eligible_tenure").length>0||jQuery("#interest_rate").length>0)var l=jQuery("#eligible_loan_amount").val(),a=jQuery("#eligible_loan_amount").val(),e=parseInt(jQuery("#eligible_loan_amount").val()),n=parseFloat(jQuery("#interest_rate").val())/100,h=document.getElementById("eligible_tenure").value;var c=h/12,r=parseInt(c*12),o=[],s=[],t=e,u=0,i=0;for(i=e*n/12*(Math.pow(1+n/12,r)/(Math.pow(1+n/12,r)-1)),i=i.toFixed(2),f=1;f<=r;f++)u=t*n/12,s.push(t),t=t-i+u,o.push(u);return[o,s]}function yearlyHomeLoanEligibility(){var p=[],v=[],w=[],ut,d,t,o,l,a;if(jQuery("#eligible_loan_amount").length>0||jQuery("#eligible_tenure").length>0||jQuery("#interest_rate").length>0)var u=jQuery("#eligible_loan_amount").val(),f=jQuery("#eligible_loan_amount").val(),s=parseInt(jQuery("#eligible_loan_amount").val()),e=parseFloat(jQuery("#interest_rate").val())/100,ct=document.getElementById("eligible_tenure").value;var tt=ct/12,b=parseInt(tt*12),k=parseInt(tt),r=s*e/12*(Math.pow(1+e/12,b)/(Math.pow(1+e/12,b)-1)),it=0,h=0,o=0,rt=0,c=s;for(p.push(s),v.push(sumArrayFunHomeElig(0)),w.push(s+sumArrayFunHomeElig(0)),ut=s*e/12,t=1;t<=b;t++)rt=c*e/12,d=sumArrayFunHomeElig(t),c=c-r+rt,p.push(c),v.push(d),w.push(c+d);r=r*12;var ft=[],et=[],ot=[],y=0,st=[],ht=[],g=0,n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Year<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>EMI*12<\/th>",n+="     <th>Interest paid yearly<\/th>",n+="     <th>Principal paid yearly<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=1;t<=k;t++){k==t&&(y=0);var wt=p[t*12]+y,lt=v[t*12]+y,bt=w[t*12]+y,i,nt,at;i=ut+v[1]-lt;o==0?(o=Math.round(i-o),l=o):(l=Math.round(i-o),o=i);a=r-l;at=i+nt;ot.push(Math.round(i+nt));et.push(Math.round(i));ft.push(Math.round(a));var vt=r,yt=f*e,pt=twoDecimal(yt);t<k?(vt=twoDecimal(r-pt),u=f,f=twoDecimal(u-a),it==0?(it=f,h=f):h=h-a):(u=f,h=u-u);n+="<tbody>";n+="<tr>";n+="    <td>"+Math.round(t)+"<\/td>";n+="    <td>
1"+Math.round(u).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(r).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(l).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(a).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(h).toLocaleString("en-in")+"<\/td>";n+="<\/tr>";n+="<\/tbody>";g=g+l;jQuery("#totalinterest").val(g);st.push(Math.round(nt));ht.push(Math.round(i))}return n+="<\/table>",jQuery("#calculateHomeLoanEligibility").length>0&&(document.getElementById("calculateHomeLoanEligibility").innerHTML=n),jQuery("#year-grph").length>0&&updateBarChartSeries(st,ht),[ft,et,ot]}function piechart(){var n,t,i;if(jQuery("#pie-grph").length>0){t=jQuery("#interest_rate").text();i=t.replace("%","");jQuery("#interest_rate").val(i);var r=jQuery("#interest_rate").val(),t=parseFloat(r),u=jQuery("#eligible_loan_amount").text(),f=u.replace("₹","");jQuery("#eligible_loan_amount").val(f);var e=parseFloat(jQuery("#eligible_loan_amount").val()),o=Math.round(jQuery("#totalinterest").val()),s={series:[e,o],labels:["Principal Amount","Interest Amount"],chart:{height:275,type:"pie",resize:!0,toolbar:{show:!1}},dataLabels:{enabled:!1},plotOptions:{pie:{dataLabels:{offset:-20,enabled:!1}}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10,formatter:function(n,t){return n+" : "+t.w.globals.series[t.seriesIndex]}}};n=new ApexCharts(document.querySelector("#pie-grph"),s);n.render();function h(t,i){i=Math.round(i);n.updateSeries([{data:t},{name:glblGetStaticValuesByKeyName("Interest Amount"),data:i}])}}}function fnExportinExcel(n){for(var u,f,t="<table border='2px'><tr bgcolor='#87AFC6'>",r=document.getElementById(n),i=0;i<r.rows.length;i++)t=t+r.rows[i].innerHTML+"<\/tr>";return t=t+"<\/table>",t=t.replace(/<A[^>]*>|<\/A>/g,""),t=t.replace(/<img[^>]*>/gi,""),t=t.replace(/<input[^>]*>|<\/input>/gi,""),u=window.navigator.userAgent,f=u.indexOf("MSIE "),f>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)?(txtArea1.document.open("txt/html","replace"),txtArea1.document.write(t),txtArea1.document.close(),txtArea1.focus(),sa=txtArea1.document.execCommand("SaveAs",!0,"calculation-break-up.xls")):sa=window.open("data:application/vnd.ms-excel,"+encodeURIComponent(t)),sa}function fnGlblBindCalcMinMaxDefaultValues(n,t){var u=0,f=glblJsonDataCalculatorsMinMaxValues,i,r,e;t==="amt_id"?fnGetURLParameterValueByName("shareurl")==""?(i=f[u].loanAmountMinValue,r=f[u].loanAmountMaxValue,e=f[u].loanAmountDefaultValue,jQuery(n).parents("li").find(".bob-min-div").text(fnNumDifferentiation(i)),jQuery(n).parents("li").find(".bob-max-div").text(fnNumDifferentiation(r)),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r),jQuery("#"+t).attr("value",e),jQuery(n).text(e)):(i=f[u].loanAmountMinValue,r=f[u].loanAmountMaxValue,jQuery(n).parents("li").find(".bob-min-div").text(fnNumDifferentiation(i)),jQuery(n).parents("li").find(".bob-max-div").text(fnNumDifferentiation(r)),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r)):t==="month_id"?fnGetURLParameterValueByName("shareurl")==""?(i=f[u].tenureMinValue,r=f[u].tenureMaxValue,e=glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"?"18":f[u].tenureDefaultValue,jQuery(n).parents("li").find(".bob-min-div").text(i),jQuery(n).parents("li").find(".bob-max-div").text(r),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r),jQuery("#"+t).attr("value",e),jQuery(n).text(e)):(i=f[u].tenureMinValue,r=f[u].tenureMaxValue,jQuery(n).parents("li").find(".bob-min-div").text(i),jQuery(n).parents("li").find(".bob-max-div").text(r),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r)):t==="rates_id"&&(fnGetURLParameterValueByName("shareurl")==""?(i=f[u].rateOfInterestMinValue,r=f[u].rateOfInterestMaxValue,e=f[u].rateOfInterestDefaultValue,jQuery(n).parents("li").find(".bob-min-div").text(i+"%"),jQuery(n).parents("li").find(".bob-max-div").text(r+"%"),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r),jQuery("#"+t).attr("value",e),jQuery(n).text(e)):(i=f[u].rateOfInterestMinValue,r=f[u].rateOfInterestMaxValue,jQuery(n).parents("li").find(".bob-min-div").text(i+"%"),jQuery(n).parents("li").find(".bob-max-div").text(r+"%"),jQuery("#"+t).attr("min",i),jQuery("#"+t).attr("max",r)))}function fnNumDifferentiation(n){var t=Math.abs(n);return t>=1e7?t=t/1e7+"Cr":t>=1e5&&(t=t/1e5+"L"),t}function CalcAgriLoan(){if(fnValidateAgriCalc()){var t=parseFloat(jQuery("#margin-contribution").val()),n=parseFloat(jQuery("#cost-agri-product").val()),i=n-n*t/100;jQuery("#spnTotalLone").text("Rs. "+i)}}function fnValidateAgriCalc(){return jQuery("#cost-agri-product").val()==""?(alert("Please enter a valid amount."),jQuery("#cost-agri-product").focus(),!1):jQuery("#margin-contribution").val()==""?(alert("Please enter a valid Margin Contribution."),jQuery("#margin-contribution").focus(),!1):parseFloat(jQuery("#margin-contribution").val())<minContribution||parseFloat(jQuery("#margin-contribution").val())>maxContribution?(alert("Please enter a valid Margin Contribution. Max Limit is "+maxContribution),jQuery("#margin-contribution").focus(),!1):!0}function fnGetProductInfo(n){n===""||(n==="tractor"?(minContribution=minTractorMargin,maxContribution=maxTractorMargin,jQuery("#min-margin").text(minTractorMargin),jQuery("#margin-contribution").val(minTractorMargin)):n==="construction"?(minContribution=minCOFSMargin,maxContribution=maxCOFSMargin,jQuery("#min-margin").text(minCOFSMargin),jQuery("#margin-contribution").val(minCOFSMargin)):n==="dairy"&&(minContribution=minDairyMargin,maxContribution=maxDairyMargin,jQuery("#min-margin").text(minDairyMargin),jQuery("#margin-contribution").val(minDairyMargin)))}function UpdateValuesOnLoad(){var t;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>
10)var i=document.getElementById("amt_id").value,n=document.getElementById("month_id").value,e=document.getElementById("rates_id").value;var r=e/100,o=n/12,s=[];for(t=0;t<=o;t++)s.push(t);var u=i*r/12*(Math.pow(1+r/12,n)/(Math.pow(1+r/12,n)-1)),f=u*n,h=f-i;jQuery("#monthly-hl-emi").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery(".total-loan span").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery("#spn_principal_amt").html("₹"+Math.round(i).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+Math.round(h).toLocaleString("en-in"));jQuery("#spn_total_amt").html("₹"+Math.round(f).toLocaleString("en-in"));yearlyTableDatahl()}function yearlyTableDatahl(){var f,t;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var h=jQuery("#amt_id").val(),c=jQuery("#amt_id").val(),u=parseInt(jQuery("#amt_id").val()),r=parseFloat(jQuery("#rates_id").val())/100,e=document.getElementById("month_id").value;f=e/12;r=r*100;var i=calculateHomeLoanEMI(u,r,f),o=[],s=[],n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Year<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>EMI*12<\/th>",n+="     <th>Interest paid yearly<\/th>",n+="     <th>Principal paid yearly<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=0;t<=i.amortization.length-1;t++)n+="<tbody>",n+="<tr>",n+="    <td>"+(1+t)+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].openingBalance).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].emi).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].interestPaidYearly).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].principalPaidYearly).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].closingBalance).toLocaleString("en-in")+"<\/td>",n+="<\/tr>",n+="<\/tbody>",o.push(Math.round(u)),s.push(Math.round(i.totalInterestPaid));if(n+="<\/table>",jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=n),jQuery("#personalLoanamortizationEligibility").length>0){var l=document.getElementById("amt_id").value,e=document.getElementById("month_id").value,a=document.getElementById("rates_id").value;UpdateSliderValuesPL()}jQuery("#year-grph").length>0}function UpdateSliderValuesPL(){if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var t=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,n=document.getElementById("rates_id").value;(glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/personal-banking/loans/personal-loan/baroda-personal-loan")&&(n=jQuery("#rates_id").parents(".slidecontainer").next("small").find("em").text(),calEMIPL(t,i,n));glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"?MonthlyTableData():yearlyTableData()}function calEMIPL(n,t,i){var f=parseInt(n),u=parseInt(t),e=parseFloat(i),r=calculate_emiPL(f,e,u,"0");jQuery("#monthly-hl-emi").html("₹"+dispNum(r.emi));jQuery(".total-loan span").html("₹"+dispNum(r.emi));jQuery("#spn_principal_amt").html("₹"+Math.round(n).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+dispNum(r.emi*u-f));jQuery("#spn_total_amt").html("₹"+dispNum(r.emi*u))}function calculate_emiPL(n,t,i,r){var e=t/1200,u={},s,f,h,c,o;for(u.emi=n*e/(1-Math.pow(1/(1+e),i)),u.processingFee=r*n/100,u.totalIntrest=u.emi*i-n,u.totalPayment=u.emi*i,u.quaterAmt=n/4,u.q1=0,u.q2=0,u.q3=0,u.q4=0,s=u.totalPayment,u.row=[],u.anual=[],u.row[0]={},u.row[0].os=s,u.row[0].pb=n,u.row[0].ip=n*e,u.row[0].pp=u.emi-u.row[0].ip,f=1;s>0;)s=s-u.emi,u.row[f]={},u.row[f].os=u.row[f-1].os-u.emi,u.row[f].pb=u.row[f-1].pb-u.emi+u.row[f-1].ip,u.row[f].ip=u.row[f].pb*e,u.row[f].pp=u.emi-u.row[f].ip,u.q1==0&&u.row[f].pb<u.quaterAmt*3&&(u.q1=f),u.q2==0&&u.row[f].pb<u.quaterAmt*2&&(u.q2=f-u.q1),u.q3==0&&u.row[f].pb<u.quaterAmt&&(u.q3=f-u.q2-u.q1),u.q4==0&&u.row[f].pb<0&&(u.q4=f-u.q3-u.q2-u.q1),f=f+1;for(h=0,c=0,e=0;e<u.row.length-1;e++)h=h+u.row[e].ip,c=c+u.row[e].pp,(e+1)%12==0&&(o=parseInt(e/12),u.anual[o]={},u.anual[o].ip=h,u.anual[o].pb=u.row[o*12].pb,u.anual[o].pp=c,h=0,c=0);return u}function calculateHomeLoanEMI(n,t,i){const u=t/1200,o=i*12,f=n*u*Math.pow(1+u,o)/(Math.pow(1+u,o)-1),e=[];let r=n,s=0;for(let t=1;t<=i;
1t++){const i={year:t,openingBalance:0,emi:0,interestPaidYearly:0,principalPaidYearly:0,closingBalance:0};let h=0,o=0;for(let n=1;n<=12;n++){const n=r*u,t=f-n;o+=n;h+=t;r-=t;r<0&&(r=0)}i.emi=(f*12).toFixed();i.principalPaidYearly=h.toFixed();i.interestPaidYearly=o.toFixed();i.closingBalance=r.toFixed();i.openingBalance=t<2?n.toFixed():e[t-2].closingBalance;e.push(i);s+=o}return{emi:f.toFixed(2),totalInterestPaid:s.toFixed(2),amortization:e}}function yearlyTableDataOnLoad(){var p=[],v=[],w=[],rt,d,t,s,h,u;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var f=jQuery("#amt_id").val(),e=jQuery("#amt_id").val(),c=parseInt(jQuery("#amt_id").val()),o=parseFloat(jQuery("#rates_id").val())/100,ht=document.getElementById("month_id").value;var nt=ht/12,b=parseInt(nt*12),k=parseInt(nt),i=c*o/12*(Math.pow(1+o/12,b)/(Math.pow(1+o/12,b)-1)),tt=0,l=0,s=0,it=0,a=c;for(p.push(c),v.push(sumArrayFun(0)),w.push(c+sumArrayFun(0)),rt=c*o/12,t=1;t<=b;t++)it=a*o/12,d=sumArrayFun(t),a=a-i+it,p.push(a),v.push(d),w.push(a+d);i=i*12;var ut=[],ft=[],et=[],y=0,ot=[],st=[],n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Year<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>EMI*12<\/th>",n+="     <th>Interest paid yearly<\/th>",n+="     <th>Principal paid yearly<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=1;t<=k;t++){k==t&&(y=0);var pt=p[t*12]+y,ct=v[t*12]+y,wt=w[t*12]+y,r,g,lt;r=rt+v[1]-ct;s==0?(s=r-s,h=s):(h=r-s,s=r);u=i-h;lt=r+g;et.push(Math.round(r+g));ft.push(Math.round(r));ut.push(Math.round(u));var at=i,vt=e*o,yt=twoDecimal(vt);t<k?(at=twoDecimal(Math.round(i)-Math.round(yt)),f=e,u=i-h,e=twoDecimal(f-u),tt==0?(tt=e,l=e):l=l-u):(f=e,u=Math.round(i)-Math.round(h),l=f-f);n+="<tbody>";n+="<tr>";n+="    <td>"+Math.round(t)+"<\/td>";n+="    <td>"+Math.round(f).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(i).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(h).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(u).toLocaleString("en-in")+"<\/td>";n+="    <td>"+Math.round(l).toLocaleString("en-in")+"<\/td>";n+="<\/tr>";n+="<\/tbody>";ot.push(Math.round(g));st.push(Math.round(r))}return n+="<\/table>",jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=n),jQuery("#year-grph").length>0&&updateBarChartSeries(ot,st),[ut,ft,et]}function updateBarChartSeriesMLEC(n,t){chart.updateSeries([{name:glblGetStaticValuesByKeyName("Principal Amount"),data:n},{name:glblGetStaticValuesByKeyName("Interest Amount"),data:t},])}function sumArrayFun(n){for(var r=Interest(),t=0,i=n;i<r[0].length;i++)t=t+r[0][i];return t}function Interest(){var f;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var e=parseInt(jQuery("#amt_id").val()),n=parseFloat(jQuery("#rates_id").val())/100,h=document.getElementById("month_id").value;var c=h/12,r=parseInt(c*12),o=[],s=[],t=e,u=0,i=0;for(i=e*n/12*(Math.pow(1+n/12,r)/(Math.pow(1+n/12,r)-1)),i=i.toFixed(2),f=1;f<=r;f++)u=t*n/12,s.push(t),t=t-i+u,o.push(u);return[o,s]}function twoDecimal(n){var n;return n.toFixed(2)}function numberToWords(t,i){var r,f,u;if(t!=""){if(t=parseInt(t),i=i,r=["","One ","Two ","Three ","Four ","Five ","Six ","Seven ","Eight ","Nine ","Ten ","Eleven ","Twelve ","Thirteen ","Fourteen ","Fifteen ","Sixteen ","Seventeen ","Eighteen ","Nineteen "],f=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],n=("000000000"+t).substr(-9).match(/^(\d{2})(\d{2})(\d{2})(\d{1})(\d{2})$/),!n)return;u="";u+=n[1]!=0?(r[Number(n[1])]||f[n[1][0]]+" "+r[n[1][1]])+"Crore ":"";u+=n[2]!=0?(r[Number(n[2])]||f[n[2][0]]+" "+r[n[2][1]])+"Lakh ":"";u+=n[3]!=0?(r[Number(n[3])]||f[n[3][0]]+" "+r[n[3][1]])+"Thousand ":"";u+=n[4]!=0?(r[Number(n[4])]||f[n[4][0]]+" "+r[n[4][1]])+"Hundred ":"";u+=n[5]!=0?(u!=""?"and ":"")+(r[Number(n[5])]||f[n[5][0]]+" "+r[n[5][1]]):"";i=="it_grossincome"?(jQuery("#grossincome_word").text(u.trim()+" only"),jQuery(".annualhra_word").css("color","grey")):i=="it_basicpay"?(jQuery("#basicpay_word").text(u.trim()+" only"),jQuery("#basicpay_word").css("color","grey")):(jQuery("#annualhra_word").text(u.trim()+" only"),jQuery("#annualhra_word").css("color","grey"))}else jQuery("#grossincome_word").text(""),jQuery("#basicpay_word").text(""),jQuery("#annualhra_word").text("")}function newRegime(){var t,i,r,u,f,n;if(totalDeduction=(isNaN(it_deductions80c)?0:it_deductions80c)+(isNaN(it_medicalinsurance80d)?0:it_medicalinsurance80d)+(isNaN(it_educationalloan80e)?0:it_educationalloan80e)+(isNaN(it_EmpContributionNps80ccd)?0:it_EmpContributionNps80ccd)+(isNaN(it_deposits80tta80ttb)?0:it_deposits80tta80ttb)+(isNaN(it_donationscharity80g)?0:it_donationscharity80g)+(isNaN(it_housingloan80eea)?0:it_housingloan80eea),taxPayable=0,newtotalTaxableIncome=totalIncome-standardDeduction,isNaN(it_rentalincome)||(newtotalTaxableIncome=newtotalTaxableIncome-parseInt(rentalperc)),it_interestpaidloan=parseInt(j
1Query("#it_interestpaidloan").val()),newtotalTaxableIncome<=3e5)jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(taxPayable)),oldtotalTaxableIncome=totalIncome-standardDeduction,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(taxPayable));else if(newtotalTaxableIncome>3e5&&newtotalTaxableIncome<=6e5)jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(Math.round(taxPayable)));else if(newtotalTaxableIncome>6e5&&newtotalTaxableIncome<=9e5)t=15e3,taxable=newtotalTaxableIncome-6e5,i=parseFloat(taxable/10),taxPayable=t+i,n=parseFloat(taxPayable/25),taxPayable=taxPayable+n,jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(Math.round(taxPayable)));else if(newtotalTaxableIncome>9e5&&newtotalTaxableIncome<=12e5)t=15e3,i=3e4,taxable=newtotalTaxableIncome-9e5,r=parseFloat(taxable*15/100),taxPayable=t+i+r,n=parseFloat(taxPayable/25),taxPayable=taxPayable+n,jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(Math.round(taxPayable)));else if(newtotalTaxableIncome>12e5&&newtotalTaxableIncome<=15e5){var t=15e3,i=3e4,r=45e3;taxable=newtotalTaxableIncome-12e5;u=parseFloat(taxable/5);taxPayable=t+i+r+u;n=parseFloat(taxPayable/25);taxPayable=taxPayable+n;jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))}else{var t=15e3,i=3e4,r=45e3,u=6e4;taxable=newtotalTaxableIncome-15e5;f=parseFloat(taxable*30/100);taxPayable=t+i+r+u+f;n=parseFloat(taxPayable/25);taxPayable=taxPayable+n;jQuery("#it_spn_newtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))}}function oldRegime(){var n,f=jQuery("input[name='age']:checked")[0].id,e,r,t,u,i;it_deductions80c>15e4&&!isNaN(it_deductions80c)&&(it_deductions80c=15e4);it_EmpContributionNps80ccd>16e4&&!isNaN(it_EmpContributionNps80ccd)&&(it_EmpContributionNps80ccd=16e4);it_medicalinsurance80d>75e3&&!isNaN(it_medicalinsurance80d)&&(it_medicalinsurance80d=75e3);it_housingloan80eea>15e4&&!isNaN(it_housingloan80eea)&&(it_housingloan80eea=15e4);totalDeduction=(isNaN(it_deductions80c)?0:it_deductions80c)+(isNaN(it_medicalinsurance80d)?0:it_medicalinsurance80d)+(isNaN(it_educationalloan80e)?0:it_educationalloan80e)+(isNaN(it_EmpContributionNps80ccd)?0:it_EmpContributionNps80ccd)+(isNaN(it_donationscharity80g)?0:it_donationscharity80g)+(isNaN(it_housingloan80eea)?0:it_housingloan80eea);it_exemptallowances=parseInt(jQuery("#it_exemptallowances").val());it_exemptallowances=isNaN(it_exemptallowances)?0:it_exemptallowances;e=it_exemptallowances+totalDeduction;jQuery("#it_spn_hraexemption").html("₹"+inrFormat(Math.round(e)));it_intpaidhomeloan=parseInt(jQuery("#it_intpaidhomeloan").val());it_interestpaidloan=parseInt(jQuery("#it_interestpaidloan").val());it_intpaidhomeloan=isNaN(it_intpaidhomeloan)?0:it_intpaidhomeloan;it_interestpaidloan=isNaN(it_interestpaidloan)?0:it_interestpaidloan;newtotalTaxableIncome=standardDeduction+totalDeduction+it_exemptallowances+it_intpaidhomeloan+it_interestpaidloan;newtotalTaxableIncome=totalIncome-newtotalTaxableIncome;isNaN(it_rentalincome)||(newtotalTaxableIncome=newtotalTaxableIncome-parseInt(rentalperc));f=="it_NotSenior"?newtotalTaxableIncome<=25e4?(taxPayable=0,oldtotalTaxableIncome=standardDeduction+totalDeduction+it_exemptallowances+it_intpaidhomeloan+it_interestpaidloan,oldtotalTaxableIncome=totalIncome-oldtotalTaxableIncome,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(taxPayable))):newtotalTaxableIncome>25e4&&newtotalTaxableIncome<=5e5?(taxPayable=0,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(taxPayable)),oldtotalTaxableIncome=standardDeduction+totalDeduction+it_exemptallowances+it_intpaidhomeloan+it_interestpaidloan,oldtotalTaxableIncome=totalIncome-oldtotalTaxableIncome,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):newtotalTaxableIncome>5e5&&newtotalTaxableIncome<=1e6?(r=12500,n=newtotalTaxableIncome-5e5,t=parseFloat(n/5),taxPayable=r+t,i=parseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):(r=12500,t=1e5,n=newtotalTaxableIncome-1e6,u=parseFloat(n*30/100),taxPayable=r+t+u,i=parseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):f=="it_Senior"?newtotalTaxableIncome<=3e5?(taxPayable=0,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(taxPayable))):newtotalTaxableIncome>3e5&&newtotalTaxableIncome<=5e5?(taxPayable=0,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):newtotalTaxableIncome>5e5&&newtotalTaxableIncome<=1e6?(r=1e4,n=newtotalTaxableIncome-5e5,t=parseFloat(n/5),taxPayable=r+t,i=parseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):(r=1e4,t=1e5,n=newtotalTaxableIncome-1e6,u=parseFloat(n*30/100),taxPayable=r+t+u,i=p
1arseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):newtotalTaxableIncome<=5e5?(taxPayable=0,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(taxPayable))):newtotalTaxableIncome>5e5&&newtotalTaxableIncome<=1e6?(n=newtotalTaxableIncome-5e5,t=parseFloat(n/5),taxPayable=t,i=parseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable)))):(t=1e5,n=newtotalTaxableIncome-1e6,u=parseFloat(n*30/100),taxPayable=t+u,i=parseFloat(taxPayable/25),taxPayable=taxPayable+i,jQuery("#it_spn_oldtaxregime").html("₹"+inrFormat(Math.round(taxPayable))))}function calculateGratuity(n){var n=parseFloat(jQuery("#amt_id").val()),t=jQuery("#month_id").val(),i=n*t*15/26;jQuery("#total_gratuity_payable").text("₹"+inrFormat(Math.round(i)))}function calculateSIP(n){var n;if(jQuery("li.sip").attr("class")=="sip active"){if(n=parseFloat(jQuery("#amt_id").val()),jQuery("#monthly").prop("checked"))var t=jQuery("#rates_id").val()/1200,i=jQuery("#month_id").val(),u=i*12,f=n*i*12,r=n*(Math.pow(1+t,u)-1)*(1+t)/t;else var t=jQuery("#rates_id").val()/400,i=jQuery("#month_id").val(),u=i*4,f=n*i*4,r=n*(Math.pow(1+t,u)-1)*(1+t)/t;jQuery("#total_wealth").text("₹"+inrFormat(Math.round(r.toFixed(2))));jQuery("#invested_amount").text("₹"+inrFormat(f));jQuery("#wealth_gained").text("₹ "+inrFormat(Math.round(r.toFixed(2)-f)))}else{var n=parseFloat(jQuery("#total_investment").val()),t=jQuery("#rates_id").val()/100,i=jQuery("#month_id").val(),r=n*Math.pow(1+t,i);jQuery("#total_wealth").text("₹"+inrFormat(Math.round(r)));jQuery("#invested_amount").text("₹"+inrFormat(n));jQuery("#wealth_gained").text("₹ "+inrFormat(Math.round(r.toFixed(2)-n)))}}function getDebitProducts(){jQuery.ajax({url:"/handlers/bob/countrywebsites/india/get-product-comparision-dabitcard-json-data.ashx",type:"POST",contentType:!1,processData:!1,success:function(n){n!=""&&(n=JSON.parse(n),n.status&&(glblJSONCompareProducts=n.products,glblJSONCompareProducts.forEach(function(n){(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&n.category=="Debit Cards"&&(glblDebitCardsProducts.push(n),glblDebitCardsFeatures==""&&n.features.forEach(function(n){glblDebitCardsFeatures.push(n.featureName)}),appendProducts(n))}),(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&glblDebitCardsFeatures!=""&&glblDebitCardsFeatures.forEach(function(n){appendFeatures(n)})),n==""&&$("#LoginError").html("Something went wrong"))},error:function(n){response=JSON.parse(n.responseText);for(var t=0;t<response.errorList.length;t++)jQuery("#err_"+response.errorList[t].error_field).html(response.errorList[t].error_message.trim())}})}function getProducts(){jQuery.ajax({url:"/handlers/bob/countrywebsites/india/get-product-comparision-json-data.ashx",type:"POST",contentType:!1,processData:!1,success:function(n){n!=""&&(n=JSON.parse(n),n.status&&(glblJSONCompareProducts=n.products,glblJSONCompareProducts.forEach(function(n){glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?n.category=="Saving Accounts"&&(glblSavingAccountProducts.push(n),glblSavingAccountFeatures==""&&n.features.forEach(function(n){glblSavingAccountFeatures.push(n.featureName)}),appendProducts(n)):glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?n.category=="Current Accounts"&&(glblCurrentAccountProducts.push(n),glblCurrentAccountFeatures==""&&n.features.forEach(function(n){glblCurrentAccountFeatures.push(n.featureName)}),appendProducts(n)):(glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts")&&n.category=="Salary Accounts"&&(glblSalaryAccountProducts.push(n),glblSalaryAccountFeatures==""&&n.features.forEach(function(n){glblSalaryAccountFeatures.push(n.featureName)}),appendProducts(n))}),glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?glblSavingAccountFeatures!=""&&glblSavingAccountFeatures.forEac
1h(function(n){appendFeatures(n)}):glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?glblCurrentAccountFeatures!=""&&glblCurrentAccountFeatures.forEach(function(n){appendFeatures(n)}):(glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts")&&glblSalaryAccountFeatures!=""&&glblSalaryAccountFeatures.forEach(function(n){appendFeatures(n)})),n==""&&$("#LoginError").html("Something went wrong"))},error:function(n){response=JSON.parse(n.responseText);for(var t=0;t<response.errorList.length;t++)jQuery("#err_"+response.errorList[t].error_field).html(response.errorList[t].error_message.trim())}})}function appendProducts(n){var t=n.compareId.toString(),i=jQuery("#allproducts"),r='<li><div class="prodct-tile"><div class="prodct-img">'+n.image+'<\/div><div class="prodct-comparebtn"><h2>'+n.title+'<\/h2><div class="form-group bob-form-control bob-check-radio-form-control"><input class="form-check-input" name="'+t+'" value="Add to compare" type="checkbox" id="'+t+'" /><label class="form-check-label" for="'+t+'">Add to compare<\/label><\/div><\/div><\/div><\/li>';i.append(r)}function appendFeatures(n){featurecount=featurecount+1;var t=jQuery("#comparelist"),i="<tr ><td>"+n+'<\/td><td class="tdvalue" id="td1_'+featurecount+'"><\/td><td class="tdvalue" id=td2_'+featurecount+'><\/td><td class="tdvalue" id="td3_'+featurecount+'"><\/td><\/tr>';t.append(i)}function removeProductCompareItemById(n,t){var i,r,u;for(jQuery("#"+n).text(""),jQuery("#"+n).append(addproductformat),selectedproduct=selectedproduct.filter(function(n){return n!==t}),glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?i=glblSavingAccountFeatures.length:glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?i=glblCurrentAccountFeatures.length:glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts"?i=glblSalaryAccountFeatures.length:(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&(i=glblDebitCardsFeatures.length),n=="selectedproduct1"?r=1:n=="selectedproduct2"?r=2:n=="selectedproduct3"&&(r=3),u=0;u<=i;u++)jQuery("#td"+r+"_"+u).text("");jQuery("body").removeClass("compare-popup-open");jQuery(".bob-popup-content").show()}function blogSlider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".blogbox ul.row";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function IbankSlider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".international-bank-wrapp";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function coreSlider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:3,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".core-slider";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function espeakslider(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
15.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}var n=".e-speak-slider";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function artwrapp(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:2,slidesToScroll:1,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}}]})}var n=".art-wrapp";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function fnCopyLink(){jQuery("body").append('<input id="copyURL" type="text" value="" />');jQuery("#copyURL").val(window.location.href).select();document.execCommand("copy");jQuery("#copyURL").remove()}function fnBookMarkPage(){var n=jQuery(".bookmark-btn");if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(document.title,window.location.href,"");else if(window.external&&"AddFavorite"in window.external)window.external.AddFavorite(location.href,document.title);else{if(window.opera&&window.print||window.sidebar&&!(window.sidebar instanceof Node))return n.attr("rel","sidebar").attr("title",document.title).attr("href",window.location.href),!0;alert("You can add this page to your bookmarks by pressing "+(navigator.userAgent.toLowerCase().indexOf("mac")!=-1?"Command/Cmd":"CTRL")+" + D on your keyboard.")}return!1}function fnUpdatePageViews(n,t){var i={pageid:n,pagename:t};jQuery.ajax({async:!0,url:"/handlers/common/update-page-views.ashx",type:"post",data:i,success:function(n){"success"==(n=JSON.parse(n)).status?console.log(n.views):"fail"==n.status?console.log(n.errorMessage):console.log(n.errorMessage)},error:function(){console.log(e.errorMessage)}})}function fnMediaSearch(){var i,t,n;if(jQuery("#search_media").val()!=""&&jQuery("#search_media").val()!=null&&(i=[],t=jQuery.trim(jQuery("#search_media").val().toLowerCase()),jQuery(".mediaItems").length>0)){for(n=1;n<jQuery(".mediaItems").length+1;n++)jQuery("#mediaitem_"+n).attr("data-title").toLowerCase().indexOf(t)>-1||jQuery("#mediaitem_"+n).attr("data-month").toLowerCase().indexOf(t)>-1||jQuery("#mediaitem_"+n).attr("data-year").toLowerCase().indexOf(t)>-1?i.push("mediaitem_"+n):jQuery("#mediaitem_"+n).css("display","none");fnMediaFilterData(i)}AOS.refresh()}function fnMediaFilterData(n){for(var t=0;t<n.length;t++)jQuery("#"+n[t]).css("display","block")}function fnMediaFilter(){var r=[],t="",i="",n;if(jQuery("#drp_media_years li.active").attr("value")!=undefined&&(t=jQuery.trim(jQuery("#drp_media_years li.active").attr("value").toLowerCase())),jQuery("#drp_media_months li.active").attr("value")!=undefined&&(i=jQuery.trim(jQuery("#drp_media_months li.active").attr("value").toLowerCase())),jQuery(".mediaItems").length>0){if(t!=null&&t!=""&&i!=null&&i!="")for(n=1;n<jQuery(".mediaItems").length+1;n++)jQuery("#mediaitem_"+n).attr("data-year").toLowerCase()==t&&jQuery("#mediaitem_"+n).attr("data-month").toLowerCase()==i?r.push("mediaitem_"+n):jQuery("#mediaitem_"+n).css("display","none");else if(t!=null&&t!=""&&(i==null||i==""))for(n=1;n<jQuery(".mediaItems").length+1;n++)jQuery("#mediaitem_"+n).attr("data-year").toLowerCase()==t?r.push("mediaitem_"+n):jQuery("#mediaitem_"+n).css("display","none");else if((t==null||t=="")&&i!=null&&i!="")for(n=1;n<jQuery(".mediaItems").length+1;n++)jQuery("#mediaitem_"+n).attr("data-month").toLowerCase()==i?r.push("mediaitem_"+n):jQuery("#mediaitem_"+n).css("display","none");fnMediaFilterData(r)}AOS.refresh()}function fnLikedItemsMedia(){}function fnResetMediaFilter(){jQuery(".mediaItems").css("display","block");jQuery(window).width()>767&&jQuery(".mob-filter").remove();jQuery("#search_media").val("");jQuery("#drp_media_months").parents(".bob-custom-dropdown").find("span small").text("Month");jQuery("#drp_media_months").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery("#drp_media_months").addClass("active");jQuery("#drp_media_years").parents(".bob-custom-dropdown").find("span small").text("Year");jQuery("#drp_media_years").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery("#drp_media_years").addClass("active");AOS.refresh()}function fnDownloadFormSearch(){if(jQuery("#section_searchresults").addClass("nodisplay"),jQuery("#txt_download_form_search").val()!=""&&jQuery("#txt_download_form_search").val()!=null){var n=jQuery.trim(jQuery("#txt_download_form_search").val().toLowerCase()),t={searchkeyword:n};jQuery.ajax({async:!0,url:"/handlers/downloadforms/search.ashx",type:"post",data:t,success:function(n){var t,r,i;if(n=JSON.parse(n),n.status=="success"){if(t=JSON.parse(n.response),t!=undefined&&t.length>0){for(jQuery("#section_searchresults").css("display","block"),jQuery("#section_searchresults").removeClass("nodisplay"),jQuery("#section_downloadforms").css("display","none"),r="",i=0;i<t.length;i++)r+="<li>",r+=t[i].FormName+' <a class="download-btn" onclick="fnUpdatePageViews(\''+t[i].FormId+"','Download Forms')\" href=\""+t[i].FormPDFLink+'" target="_blank">',r+=t[i].FormPDFLinkText+"<\/a>
1",r+="<\/li>";jQuery(".formsearchdata").html(r)}else jQuery("#section_searchresults").css("display","block"),jQuery("#section_searchresults").removeClass("nodisplay"),jQuery("#section_downloadforms").css("display","none"),location.href.split("/")[3]=="hi-in"?jQuery(".formsearchdata").html("कोई फॉर्म नहीं मिला!"):jQuery(".formsearchdata").html("No form found!");console.log(t)}else n.status=="fail"&&console.log(n.errorMessage)},error:function(){console.log(e.errorMessage)}})}}function fnReportSearch(){var n;if(jQuery("#report_search").val()!=""&&jQuery("#report_search").val()!=null){var i=[],r=jQuery(".r-register>h3").attr("data-id"),t=jQuery.trim(jQuery("#report_search").val().toLowerCase());if(jQuery(".reportitems").length>0){for(n=1;n<jQuery(".reportitems").length+1;n++)r!=undefined&&r=="resregister"?jQuery("#reportitem_"+n).attr("data-title").toLowerCase().indexOf(t)>-1||jQuery("#reportitem_"+n).attr("data-year").toLowerCase().indexOf(t)>-1||jQuery("#reportitem_"+n).attr("data-location").toLowerCase().indexOf(t)>-1?i.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none"):jQuery("#reportitem_"+n).attr("data-title").toLowerCase().indexOf(t)>-1||jQuery("#reportitem_"+n).attr("data-quarter").toLowerCase().indexOf(t)>-1||jQuery("#reportitem_"+n).attr("data-year").toLowerCase().indexOf(t)>-1||jQuery("#reportitem_"+n).attr("data-rtype").toLowerCase().indexOf(t)>-1?i.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");fnReportFilterData(i,r)}}}function fnReportFilterData(n,t){var i=8,r;for(n.length<8&&(i=n.length),t!=undefined&&t=="resregister"&&(i=4,n.length<4&&(i=n.length)),r=0;r<i;r++)jQuery("#"+n[r]).css("display","block")}function fnReportFilter(){var u,t,f,i,r,n;if(jQuery(".reportitems").length>0)if(u=[],t=jQuery("#drp_report_years li.active").attr("value"),t!=undefined&&(t=t.toLowerCase()),f=jQuery(".r-register>h3").attr("data-id"),f!=undefined&&f=="resregister")fnResRegFilter(f);else{if(i=jQuery.trim(jQuery("#drp_report_quarters").val().toLowerCase()),r=jQuery.trim(jQuery("#drp_report_types").val().toLowerCase()),t!=null&&t!=""&&i!=null&&i!=""&&r!=null&&r!="")for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-year").toLowerCase()==t&&jQuery("#reportitem_"+n).attr("data-quarter").toLowerCase()==i&&jQuery("#reportitem_"+n).attr("data-rtype").toLowerCase()==r?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if(t!=null&&t!=""&&i!=null&&i!=""&&(r==null||r==""))for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-year").toLowerCase()==t&&jQuery("#reportitem_"+n).attr("data-quarter").toLowerCase()==i?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if(t!=null&&t!=""&&(i==null||i=="")&&r!=null&&r!="")for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-year").toLowerCase()==t&&jQuery("#reportitem_"+n).attr("data-rtype").toLowerCase()==r?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if(t!=null&&t!=""&&(i==null||i=="")&&(r==null||r==""))for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-year").toLowerCase()==t?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if((t==null||t=="")&&i!=null&&i!=""&&r!=null&&r!="")for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-quarter").toLowerCase()==i&&jQuery("#reportitem_"+n).attr("data-rtype").toLowerCase()==r?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if((t==null||t=="")&&i!=null&&i!=""&&(r==null||r==""))for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-quarter").toLowerCase()==i?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");else if((t==null||t=="")&&(i==null||i=="")&&r!=null&&r!="")for(n=1;n<jQuery(".reportitems").length+1;n++)jQuery("#reportitem_"+n).attr("data-rtype").toLowerCase()==r?u.push("reportitem_"+n):jQuery("#reportitem_"+n).css("display","none");fnReportFilterData(u,f)}}function fnResRegFilter(n){var u=[],r=jQuery("#drp_report_years li.active").attr("value"),i,t;if(r!=undefined&&(r=r.toLowerCase()),i=jQuery("#drp_report_location li.active").attr("value"),i!=un
1defined&&(i=i.toLowerCase()),jQuery(".reportitems").length>0){if(r!=null&&r!=""&&i!=null&&i!="")for(t=1;t<jQuery(".reportitems").length+1;t++)jQuery("#reportitem_"+t).attr("data-year").toLowerCase()==r&&jQuery("#reportitem_"+t).attr("data-location").toLowerCase()==i?u.push("reportitem_"+t):jQuery("#reportitem_"+t).css("display","none");else if(r!=null&&r!=""&&(i==null||i==""))for(t=1;t<jQuery(".reportitems").length+1;t++)jQuery("#reportitem_"+t).attr("data-year").toLowerCase()==r?u.push("reportitem_"+t):jQuery("#reportitem_"+t).css("display","none");else if((r==null||r=="")&&i!=null&&i!="")for(t=1;t<jQuery(".reportitems").length+1;t++)jQuery("#reportitem_"+t).attr("data-location").toLowerCase()==i?u.push("reportitem_"+t):jQuery("#reportitem_"+t).css("display","none");fnReportFilterData(u,n)}}function fnResetReportFilter(){var t,i,n;if(jQuery("#report_search").val(""),jQuery("#drp_report_years").val(""),t=jQuery(".r-register>h3").attr("data-id"),t!=undefined&&t=="resregister"?jQuery("#drp_report_location").val(""):(jQuery("#drp_report_quarters").val(""),jQuery("#drp_report_types").val("")),jQuery(".reportitems").length>0){for(i=8,jQuery(".reportitems").length<8&&(i=jQuery(".reportitems").length),n=1;n<=jQuery(".reportitems").length;n++)jQuery("#reportitem_"+n).css("display","none");for(n=1;n<=i;n++)jQuery("#reportitem_"+n).css("display","block")}}function fnTenderFilter(){}function fnTenderFilter(){}function fnTenderContractSearch(){}function fnRefreshCaptcha(){var n=document.getElementById("img_captcha");n.src="/handlers/bob/countrywebsites/india/captchagenerator.ashx?query="+Math.random()}function fnCommentSubmitForm(){var n,t;jQuery("#btnBlogComment").html(jQuery("#btnBlogComment").data("submitting")+"..");n="/handlers/bob/countrywebsites/india/submit-comment.ashx";jQuery(".errorMessage").hide();jQuery(".errorMessage").html("");t={name:jQuery("#blogDetail_txtName").val(),email:jQuery("#blogDetail_txtEmail").val(),comment:jQuery("#blogDetail_txtComment").val(),verificationcode:jQuery("#blogDetail_txtVerificationCode").val(),blogid:jQuery("#blogid").val(),blogname:jQuery("#blogname").val()};jQuery.ajax({url:n,type:"post",dataType:"jsonp",data:t,success:function(n){var i,r,t;if(n=JSON.parse(n),n.status=="success")jQuery("#blogDetail_txtName").val(""),jQuery("#blogDetail_txtEmail").val(""),jQuery("#blogDetail_txtComment").val(""),jQuery("#blogDetail_txtVerificationCode").val(""),fnRefreshCaptcha(),jQuery("#blogcommentform").hide(),jQuery(".FormThankYouMsg").show(),jQuery("#btnBlogComment").html(jQuery("#btnBlogComment").data("submit"));else if(n.status=="fail"&&(jQuery("#btnBlogComment").html(jQuery("#btnBlogComment").data("submit")),n.errorMessage!=null))for(i=n.errorField.split("."),r=n.errorMessage.split("."),t=0;t<i.length;t++)jQuery("#"+i[t]+"_err").show(),jQuery("#"+i[t]+"_err").html(r[t])},error:function(){jQuery("#btnBlogComment").html(jQuery("#btnBlogComment").data("submit"));console.log("submit-comment.ashx -- "+e.message);1==confirm("There has been an error in getting data. Retry?")&&fnCommentSubmitForm()}})}function fnAnualReportFilter(){var r=[],n="",t;if(jQuery("#ul_fn_years li.active").attr("data-year")!=undefined&&(n=jQuery.trim(jQuery("#ul_fn_years li.active").attr("data-year"))),jQuery(".annualreportitems").length>0&&n!=null&&n!="")for(t=1;t<=jQuery(".annualreportitems").length;t++)jQuery("#reportitem_"+t).attr("data-year")==n?r.push("reportitem_"+t):jQuery("#reportitem_"+t).hide();if(r.length>0)for(jQuery(".annualreportitems").each(function(){jQuery(this).hide()}),i=0;i<r.length;i++)jQuery("#"+r[i]).show();(n==null||n=="")&&jQuery(".annualreportitems").each(function(){jQuery(this).show()})}function fnPresentationAnalystFilter(){var u=[],t="",r="",n;if(jQuery("#drp_fyear li.active").attr("data-value")!=undefined&&(t=jQuery.trim(jQuery("#drp_fyear li.active").attr("data-value").toLowerCase())),jQuery("#drp_quarter li.active").attr("data-value")!=undefined&&(r=jQuery.trim(jQuery("#drp_quarter li.active").attr("data-value").toLowerCase())),jQuery(".analystItems").length>0)if(t!=null&&t!=""&&r!=null&&r!="")for(n=1;n<jQuery(".analystItems").length+1;n++)jQuery("#panalyst_"+n).attr("data-year").toLowerCase()==t&&jQuery("#panalyst_"+n).attr("data-quarter").toLowerCase()==r?u.push("panalyst_"+n):jQuery("#panalyst_"+n).hide();else if(t!=null&&t!=""&&(r==null||r==""))for(n=1;n<jQuery(".analystItems").length+1;n++)jQuery("#panalyst_"+n).attr("data-year").toLowerCase()==t?u.push("panalyst_"+n):jQuery("#panalyst_"+n).hide();else if((t==null||t=="")&&r!=null&&r!="")for(n=1;n<jQuery(".analystItems").length+1;n++)jQuery("#panalyst_"+n).attr("data-quarter").toLowerCase()==r?u.push("panalyst_"+n):jQuery("#panalyst_"+n).hide();if(u.length>0)for(jQuery(".analystItems").each(function(){jQuery(this).hide()}),i=0;i<u.length;i++)jQuery("#"+u[i]).show();(t==null||t=="")&&(r==null||r=="")&&jQuery(".analystItems").each(function(){jQuery(this).show()})}function fnStockReportSearch(){if(jQuery("#stock_report_search").val()!=""&&jQuery("#stock_report_search").val()!=null){var n=[],t=jQuery.trim(jQuery("#stock_report_search").val().toLowerCase());if(jQuery(".annualreportitems").each(function(){jQuery(this).attr("data-title").toLowerCase().indexOf(t)>-1?n.push(jQuery(this).attr("id")):jQuery(this).hide()}),n.length>0)for(jQuery(".annualreportitems").each(function(){jQuery(this).hide()}),i=0;i<n.length;i++)jQuery("#"+n[i]).show()}else jQuery(".annualreportitems").each(function(){jQuery(this).show()}),jQuery(".annualreportitems").slice(0,12).show()}function fnFilterAzadiMahotsavVideos(n){var u=[],t="",r=n;if(jQuery(".drp_azadi_product li.active").attr("value")!=undefined&&(t=jQuery(".drp_azadi_product li.active").attr("value").toLowerCase()),jQuery(".drp_azadi_language li.active").attr("value")!=undefined&&(r=jQuery(".drp_azadi_language li.active").attr("value").toLowerCase()),jQuery(".videoazadifilter").length>0){if(t!=null&&t!=""&&r!=null&&r!=""?jQuery(".videoazadifilter").each(function(){jQuery(this).attr("data-product")==t&&jQuery(this).attr("data-language")==r?u.push(jQuery(this).attr("id")):jQuery(this).hide()}):t!=null&&t!=""&&(r==null||r=="")?jQuery(".videoazadifilter").each(function(){jQuery(this).attr("data-product")==t?u.push(jQuery(this).attr("id")):jQuery(this).hide()}):(t==null||t=="")&&r!=null&&r!=""&&jQuery(".videoazadifilter").each(function(){jQuery(this).attr("data-language")==r?u.push(jQuery(this).attr("id")):jQuery(this).hide()}),u.length>0)for(i=0;i<u.length;i++)jQuery("#"+u[i]).show();t==""&&r==""&&jQuery(".videoazadifilter").each(function(){jQuery(this).show()})}setTimeout(function(){AOS.refresh()},100)}function glblFnAddVoiceSearchOnBlog(){var n=new fnVoiceToSearch;n.micButtonElement=".mic-blog";n.searchTextBoxElement=".search-box-input.tt-input";n.searchButtonElement=".search-box-button";n.welcomeAudioId="welcomeaudio";n.clickAudioId="clickaudio";n.initialise()}function fnAwardsFilter(){jQuery(".mob-filter .bob-custom-dropdown-list, .mob-filter .filter-fixed .bob-filter-open-div").hide();var n="",t="",i=jQuery("input:checkbox[id=awardsLikedBy]").attr("checked")==undefined?!1:!0;jQuery("#drp_media_years li.active").attr("value")!=undefined&&(n=jQuery.trim(jQuery("#drp_media_years li.active").attr("value").toLowerCase()));jQuery("#drp_media_months li.active").attr("value")!=undefined&&(t=jQuery.trim(jQuery("#drp_media_months li.active").attr("value").toLowerCase()));n!=""||t!=""||i?jQuery(".row.awards-list,.item").length>0&&(jQuery(".row.awards-list,.item").hide(),jQuery(".row.awards-list,.item").removeClass("d-flex"),jQuery(".row.awards-list,.item").each(function(){i?(jQuery("#drp_media_months").parents(".bob-custom-dropdown").find("span small").text("Month"),jQuery("#drp_media_months").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active"),jQuery("#drp_media_months").addClass("active"),jQuery("#drp_media_years").parents(".bob-custom-dropdown").find("span small").text("Year"),jQuery("#drp_media_years").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active"),jQuery("#drp_media_years").addClass("active"),fnReadCookie("LikedByItems").toLowerCase().indexOf(jQuery(this).attr("data-id"))!=-1?(jQuery(this).show(),jQuery(this).addClass("d-flex")):(jQuery(this).hide(),jQuery(this).removeClass("d-flex"))):n!=""&&t!=""&&jQuery(this).attr("data-year").toLowerCase()==n&&jQuery(this).attr("data-month-word").toLowerCase()==t?(jQuery(this).show(),jQuery(this).addClass("d-flex")):n!=""&&t==""&&jQuery(this).attr("data-year").toLowerCase()==n?(jQuery(this).show(),jQuery(this).addClass("d-flex")):n==""&&t!=""&&jQuery(this).attr("data-month-word").toLowerCase()==t&&(jQuery(this).show(),jQuery(this).addClass("d-flex"))})):(jQuery(".row.awards-list,.item").show(),jQuery(".row.awards-list,.item").addClass("d-flex"));jQuery(".loadmore-btn").length>0&&jQuery(".bob-report-load-more").hide();AOS.refresh()}function fnAwardSearch(){var n,t;jQuery("#search_media").val()!=undefined&&jQuery("#search_media").val()!=null&&jQuery("#search_media").val()!=""&&(n=jQuery("#search_media").val(),n!=""?(t=!1,jQuery(".row.awards-list,.item").hide(),jQuery(".row.awards-list,.item").removeClass("d-flex"),jQuery(".row.awards-list,.item").each(function(){var i="";i=jQuery(this).find("h4,h2").text()+"-"+jQuery(this).find(".expandable-content").text();i.toLowerCase().indexOf(n.toLocaleLowerCase())!=-1&&(t=!0,jQuery(".loadmore-btn").hide(),jQuery(this).show(),jQuery(this).addClass("d-flex"))}),t):(jQuery(".row.awards-list,.item").hide(),jQuery(".row.awards-list,.item").removeClass("d-flex")));AOS.refresh()}function fnResetAwardFilter(){jQuery("#search_media").val("");jQuery("#drp_media_months").parents(".bob-custom-dropdown").find("span small").text("Month");jQuery("#drp_media_months").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery("#drp_media_months").addClass("active");jQuery("#drp_media_years").parents(".bob-custom-dropdown").find("span small").text("Year");jQuery("#drp_media_years").parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery("#drp_media_years").addClass("active");jQuery(".row.awards-list,.item").show();jQuery(".row.awards-list,.item").addClass("d-flex");jQuery(".loadmore-btn").length>0&&jQuery(".bob-report-load-more").show();jQuery("input:checkbox[id=awardsLikedBy]").attr("checked",!1);AOS.refresh()}function fnGetFilterValue(n){return typeof jQuery(n+" li.active").attr("data-value")!="undefined"?jQuery(n+" li.active").attr("data-value").trim():""}function fnTenderSearch(){if(jQuery("#search_tender").val()!=""&&jQuery("#search_tender").val()!=null){var n=[],t=jQuery.trim(jQuery("#search_tender").val().toLowerCase());if(jQuery(".tenders").each(function(){jQuery(this).attr("data-title").toLowerCase().indexOf(t)>-1||jQuery(this).attr("data-dept").toLowerCase().indexOf(t)>-1?n.push(jQuery(this).attr("id")):jQuery(this).hide()}),n.length>0)for(jQuery("#tender_NoResult").text(""),i=0;i<n.length;i++)jQuery("#"+n[i]).show();else jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}"?jQuery("#tender_NoResult").text("No E-Auction Notice Found!"):jQuery("#tender_NoResult").text("No Tender Found!"),jQuery("#tender_loadmore").hide()}}function fnTenderFilterLikes(){var n=[],t=[];if(jQuery(".tenders").each(function(i){var r="";jQuery("#liked_"+(i+1)+".liked-li").attr("data-id")!=undefined&&(r=jQuery("#liked_"+(i+1)+".liked-li").attr("data-id"));jQuery(this).attr("data-id")==r?n.push(jQuery(this).attr("id")):t.push(jQuery(this).attr("id"))}),jQuery("#Likedbyyou").prop("checked")){if(jQuery(".tenders").each(function(){jQuery(this).hide()}),n.length>0)for(i=0;i<n.length;i++)jQuery("#"+n[i]).show()}else{if(n.length>0)for(i=0;i<n.length;i++)jQuery("#"+n[i]).show();if(t.length>0)for(jQuery("#tender_NoResult").text(""),i=0;i<t.length;i++)jQuery("#"+t[i]).show();else jQuery("#tender_NoResult").text("No Tender Found!"),jQuery("#tender_loadmore").hide()}}function fnTenderFilters(){var n=[],e=fnGetFilterValue(".tender_departments"),u=fnGetFilterValue(".tender_zone"),r=fnGetFilterValue(".tender_region"),t=fnGetFilterValue("#tender_years"),f=fnGetFilterValue("#tender_months");if((jQuery("#currpageitemid").val()=="{AC0B61CD-9C01-4D36-A7E3-384E322D3A3B}"||jQuery("#currpageitemid").val()=="{7391E66C-250E-4772-B5A8-ED435C4E0181}")&&(e!=""&&t!=""&&f!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e&&jQuery(this).attr("data-year")==t&&jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e!=""&&t!=""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e&&jQuery(this).attr("data-year")==t?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e!=""&&t==""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&t!=""&&f!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-year")==t&&jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&t!=""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-year")==t?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&t==""&&f!=""&&jQuery(".tenders").each(function(){jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()})),(jQuery("#currpageitemid").val()=="{A9B4A7A4-6C4C-4246-9E07-1B7C820CFF15}"||jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}"||jQuery("#currpageitemid").val()=="{D47B39E5-9B3C-4BD7-BABA-E28471EE7185}")&&(u!=""&&r!=""&&t!=""&&f!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-zone")==u&&jQuery(this).attr("data-region")==r&&jQuery(this).attr("data-year")==t&&jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u!=""&&r!=""&&t!=""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-zone")==u&&jQuery(this).attr("data-region")==r&&jQuery(this).attr("data-year")==t?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u!=""&&r!=""&&t==""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-zone")==u&&jQuery(this).attr("data-region")==r?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u!=""&&r==""&&t==""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-zone")==u?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r!=""&&t!=""&&f!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-region")==r&&jQuery(this).attr("data-year")==t&&jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r!=""&&t!=""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-region")==r&&jQuery(this).attr("data-year")==t?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r!=""&&t==""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-region")==r?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r==""&&t!=""&&f==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-year")==t?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r==""&&t==""&&f!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):u==""&&r==""&&t!=""&&f!=""&&jQuery(".tenders").each(function(){jQuery(this).attr("data-year")==t&&jQuery(this).attr("data-month")==f?n.push(jQuery(this).attr("id")):jQuery(this).hide()})),jQuery("#currpageitemid").val()=="{B71B4BF0-335A-40E6-B818-F71436EA30D4}"&&(e!=""&&u!=""&&r!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e&&jQuery(this).attr("data-zone")==u&&jQuery(this).attr("data-region")==r?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e!=""&&u!=""&&r==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e&&jQuery(this).attr("data-zone")==u?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e!=""&&u==""&&r==""?jQuery(".tenders").each(function(){jQuery(this).attr("data-department")==e?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&u!=""&&r!=""?jQuery(".tenders").each(function(){jQuery(this).attr("data-zone")==u&&jQuery(this).attr("data-region")==r?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&u!=""&&r==""?jQuery(".tenders").each(function(){jQuery(this
1).attr("data-zone")==u?n.push(jQuery(this).attr("id")):jQuery(this).hide()}):e==""&&u==""&&r!=""&&jQuery(".tenders").each(function(){jQuery(this).attr("data-region")==r?n.push(jQuery(this).attr("id")):jQuery(this).hide()})),n.length>0){for(jQuery("#tender_NoResult").text(""),i=0;i<n.length;i++)jQuery("#"+n[i]).show();n.length<7&&jQuery("#tender_loadmore").hide()}else jQuery("#tender_NoResult").text("No Tender Found!"),jQuery("#tender_loadmore").hide()}function fnTenderResetFilters(){jQuery("#currpageitemid").val()=="{AC0B61CD-9C01-4D36-A7E3-384E322D3A3B}"&&(jQuery(".bob-custom-dropdown.mt-0 span small:eq(0)").html("Department"),jQuery(".tender_departments").find("li.active").removeClass("active"));jQuery("#currpageitemid").val()=="{B71B4BF0-335A-40E6-B818-F71436EA30D4}"&&(jQuery(".bob-custom-dropdown.mt-0 span small:eq(0)").html("Zone"),jQuery(".tender_zone").find("li.active").removeClass("active"),jQuery(".bob-custom-dropdown.region span small").html("Region"),jQuery(".tender_region").find("li.active").removeClass("active"),jQuery(".bob-custom-dropdown.region").addClass("bob-custom-disabled-dropdown"));(jQuery("#currpageitemid").val()=="{A9B4A7A4-6C4C-4246-9E07-1B7C820CFF15}"||jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}"||jQuery("#currpageitemid").val()=="{F502F608-6A6E-4F07-A57B-6EE4A089F547}")&&(jQuery(".bob-custom-dropdown.mt-0 span small:eq(0)").html("Zone"),jQuery(".tender_zone").find("li.active").removeClass("active"),jQuery(".bob-custom-dropdown.region span small").html("Region"),jQuery(".tender_region").find("li.active").removeClass("active"),jQuery(".bob-custom-dropdown.region").addClass("bob-custom-disabled-dropdown"));jQuery(".bob-custom-dropdown.year span small").html("Year");jQuery("#tender_years").find("li.active").removeClass("active");jQuery(".bob-custom-dropdown.month span small").html("Month");jQuery("#tender_months").find("li.active").removeClass("active");jQuery("#Likedbyyou").prop("checked",!1);jQuery("#search_tender").val("");jQuery(".tenders").each(function(){jQuery(this).show()})}function fnBindRegion(){if(jQuery(".tender_zone li.active").attr("data-value")!=undefined&&jQuery(".tender_zone li.active").attr("data-value")!=null){var n=jQuery(".tender_zone li.active").attr("data-value"),t={zone:n,lang:glblCurrentLanguage};jQuery.ajax({async:!0,url:"/handlers/bob/countrywebsites/india/tenders/get-regions.ashx",type:"post",data:t,success:function(n){var t,i,r;if(n=JSON.parse(n),n.status=="success")if(t=JSON.parse(n.response),t!=undefined&&t.length>0){for(i="",jQuery(".bob-custom-dropdown.mt-0:eq(1)").removeClass("bob-custom-disabled-dropdown"),r=0;r<t.length;r++)i+='<li data-value="'+t[r].Id+'">',i+=t[r].Title,i+="<\/li>";jQuery(".bob-custom-dropdown.region").removeClass("bob-custom-disabled-dropdown");jQuery(".tender_region .mCSB_container").html(i)}else jQuery(".tender_region").html("");else n.status=="fail"&&console.log(n.errorMessage)},error:function(){console.log(e.errorMessage)}});jQuery(".bob-custom-dropdown.region span small").html("Region");jQuery(".tender_region").find("li.active").removeClass("active")}}function loadZonalfilterData(){var n,t={totalZonalfilterData:jQuery(".bob-offres-all-card-div .col-sm-4.tenders").length};jQuery.ajax({url:"/handlers/bob/countrywebsites/india/tenders/getZonalfilterData.ashx",type:"post",data:t,dataType:"json",success:function(t){for(var r,i=0;i<=t.length-1;i++)jQuery("#zonalfilterdata").append('<div class="col-sm-4 tenders tenderitem_'+[i]+'" id="tenderitem_'+[i]+'" data-id="tenderold-'+t[i].TenderId+'" data-title="'+t[i].Title+'" data-year="'+t[i].TenderYear+'" data-month="'+t[i].TenderMonth+'" data-department="" data-dept="" data-zone="'+t[i].Zone.replace(" Zone","")+'" data-region="'+t[i].Region.replace(" Region","")+'" style="display: block;">\n                                            <div class="bob-auction-card">\n                                                <h6>\n                                                    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1080 1080" style="enable-background:new 0 0 1080 1080;" xml:space="preserve">\n                                                    <g>\n                                                    <path class="st0" fill="#A8A8A8" d="M766.8,36.3c-20-20-43.4-30-70-30H223.1C166.4,6.3,123,49.7,123,106.4v867.3c0,56.7,43.4,100.1,100.1,100.1\n                                                h633.8c56.7,0,100.1-43.4,100.1-100.1V266.5c0-26.7-10-53.4-30-70L
1766.8,36.3z M890.2,973.6c0,20-13.3,33.4-33.4,33.4H223.1\n                                                c-20,0-33.4-13.3-33.4-33.4V106.4c0-20,13.3-33.4,33.4-33.4h473.7c10,0,16.7,3.3,23.3,10l3.3,3.3V173c0,36.7,30,66.7,66.7,66.7\n                                                h86.7l3.3,3.3c6.7,6.7,10,13.3,10,23.3L890.2,973.6L890.2,973.6z"><\/path><\/g><\/svg>\n\n                                                    <span>\n                                                        <a href="/tenders/zonal-regional-offices-archived/tender-detail?tenderid='+t[i].TenderId+'">\n                                                            '+t[i].Title+'\n                                                        <\/a>\n                                                    <\/span>\n                                                <\/h6>\n                                                <ul>\n                                                    <li>\n                                                        <svg xmlns="http://www.w3.org/2000/svg" width="16.669" height="16.669" viewBox="0 0 16.669 16.669" fill="#a8a8a8"><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(12.23 6.37)"><\/circle><path class="a" d="M14.064,1.3h-.846V.651a.651.651,0,1,0-1.3,0V1.3H8.953V.651a.651.651,0,0,0-1.3,0V1.3H4.721V.651a.651.651,0,1,0-1.3,0V1.3H2.6A2.607,2.607,0,0,0,0,3.907V14.064a2.607,2.607,0,0,0,2.6,2.6H7.586a.651.651,0,1,0,0-1.3H2.6a1.3,1.3,0,0,1-1.3-1.3V3.907A1.3,1.3,0,0,1,2.6,2.6h.814v.651a.651.651,0,1,0,1.3,0V2.6h2.93v.651a.651.651,0,1,0,1.3,0V2.6h2.963v.651a.651.651,0,1,0,1.3,0V2.6h.846a1.3,1.3,0,0,1,1.3,1.3V7.618a.651.651,0,0,0,1.3,0V3.907A2.607,2.607,0,0,0,14.064,1.3Z"><\/path><path class="a" d="M273.939,270a3.939,3.939,0,1,0,3.939,3.939A3.944,3.944,0,0,0,273.939,270Zm0,6.576a2.637,2.637,0,1,1,2.637-2.637A2.64,2.64,0,0,1,273.939,276.576Z" transform="translate(-261.21 -261.21)"><\/path><path class="a" d="M372.6,331.335H372.3v-.684a.651.651,0,0,0-1.3,0v1.335a.651.651,0,0,0,.651.651h.944a.651.651,0,1,0,0-1.3Z" transform="translate(-358.922 -319.257)"><\/path><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(9.012 6.37)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 8.945)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 6.37)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 8.945)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 12.163)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 12.163)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 6.37)"><\/circle><\/svg>\n                                                        <p>\n                                                            Publish Date:\n                                                            <span>\n                                                                '+t[i].TenderPublishDate+'\n                                                            <\/span>\n                                                        <\/p>\n                                                    <\/li>\n                                                    <li>\n                                                        <svg xmlns="http://www.w3.org/2000/svg" width="16.669" height="16.669" viewBox="0 0 16.669 16.669" fill="#a8a8a8"><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(12.23 6.37)"><\/circle><path class="a" d="M14.064,1.3h-.846V.651a.651.651,0,1,0-1.3,0V1.3H8.953V.651a.651.651,0,0,0-1.3,0V1.3H4.721V.651a.651.651,0,1,0-1.3,0V1.3H2.6A2.607,2.607,0,0,0,0,3.907V14.064a2.607,2.607,0,0,0,2.6,2.6H7.586a.651.651,0,1,0,0-1.3H2.6a1.3,1.3,0,0,1-1.3-1.3V3.907A1.3,1.3,0,0,1,2.6,2.6h.814v.651a.651.651,0,1,0,1.3,0V2.6h2.93v.651a.651.651,0,1,0,1.3,0V2.6h2.963v.651a.651.651,0,1,0,1.3,0V2.6h.846a1.3,1.3,0,0,1,1.3,1.3V7.618a.651.651,0,0,0,1.3,0V3.907A2.607,2.607,0,0,0,14.064,1.3Z"><\/path><path class="a" d="M273.939,270a3.939,3.939,0,1,0,3.939,3.939A3.944,3.944,0,0,0,273.939,270Zm0,6.576a2.637,2.637,0,1,1,2.637-2.637A2.64,2.64,0,0,1,273.939,276.576Z" transform="translate(-261.21 -261.21)"><\/path><path class="a" d="M372.6,331.335H372.3v-.684a.651.651,0,0,0-1.3,0v1.335a.651.651,0,0,0,.651.651h.944a.651.651,0,1,0,0-1.3Z" transform="translate(-358.922 -319.257)"><\/path><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(9.012 6.37)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 8.945)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 6.37)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 8.945)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(3.218 12.163)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 12.163)"><\/circle><circle class="a" cx="0.644" cy="0.644" r="0.644" transform="translate(6.437 6.37)"><\/circle><\/svg>\n                                                        <p>\n                                                            Expiry Date:\n                                                            <sp
1an>\n                                                                '+t[i].TenderExpiryDate+'\n                                                            <\/span>\n                                                        <\/p>\n                                                    <\/li>\n\n                                                        <li>\n                                                            <svg xmlns="http://www.w3.org/2000/svg" width="11.587" height="15.948" viewBox="0 0 11.587 15.948" class="prop_id_svg">\n                                                                <defs>\n                                                                    <style>\n                                                                        .prop_id_svg .a {\n                                                                            opacity: 0.7;\n                                                                        }\n\n                                                                        .prop_id_svg .b {\n                                                                            fill: #707070;\n                                                                        }\n                                                                    <\/style>\n                                                                <\/defs>\n                                                                <g class="a" transform="translate(-11 -6)"><path class="b" d="M21.484,8.116H18.863V7.994A1.9,1.9,0,0,0,17.07,6H16.49A1.9,1.9,0,0,0,14.7,7.994v.123H12.1A1.174,1.174,0,0,0,11,9.343V20.721a1.174,1.174,0,0,0,1.1,1.227h9.38a1.174,1.174,0,0,0,1.1-1.227V9.343A1.174,1.174,0,0,0,21.484,8.116Zm-6.208-.123a1.311,1.311,0,0,1,1.242-1.38H17.1a1.311,1.311,0,0,1,1.242,1.38v.123H15.3V7.994Zm6.759,12.728a.587.587,0,0,1-.552.613H12.1a.587.587,0,0,1-.552-.613V9.343A.587.587,0,0,1,12.1,8.73h9.38a.587.587,0,0,1,.552.613Z"><\/path><path class="b" d="M25.652,23.162a2.183,2.183,0,0,0,.441-1.324,1.989,1.989,0,1,0-3.973,0,2.183,2.183,0,0,0,.441,1.324A2.866,2.866,0,0,0,21.1,25.673v1.269a.261.261,0,0,0,.276.276h5.463a.261.261,0,0,0,.276-.276V25.7A2.91,2.91,0,0,0,25.652,23.162Zm-1.545-2.869a1.549,1.549,0,1,1-1.435,1.545A1.487,1.487,0,0,1,24.107,20.293Zm2.455,6.373H21.652V25.7a2.264,2.264,0,0,1,1.324-2.1,2.038,2.038,0,0,0,1.131.359,1.827,1.827,0,0,0,1.242-.469l-.055.11a2.322,2.322,0,0,1,1.269,2.1Z" transform="translate(-7.314 -9.066)"><\/path><path class="b" d="M26.794,49.259H21.276a.276.276,0,1,0,0,.552h5.518a.261.261,0,0,0,.276-.276A.276.276,0,0,0,26.794,49.259Z" transform="translate(-7.241 -29.722)"><\/path><\/g>\n                                                            <\/svg>\n                                                            <p>\n                                                                Zone:\n                                                                <span>\n                                                                    '+t[i].Zone.replace(" Zone","")+'\n                                                                <\/span>\n                                                            <\/p>\n                                                        <\/li>\n\n                                                        <li>\n                                                            <svg xmlns="http://www.w3.org/2000/svg" width="11.587" height="15.948" viewBox="0 0 11.587 15.948" class="prop_id_svg">\n                                                                <defs>\n                                                                    <style>\n                                                                        .prop_id_svg .a {\n                                                                            opacity: 0.7;\n                                                                        }\n\n                                                                        .prop_id_svg .b {\n                                                                            fill: #707070;\n                                                                        }\n                                                                    <\/style>\n                                                                <\/defs>\n                                                                <g class="a" transform="translate(-11 -6)"><path class="b" d="M21.484,8.116H18.863V7.994A1.9,1.9,0,0,0,17.07,6H16.49A1.9,1.9,0,0,0,14.7,7.994v.123H12.1A1.174,1.174,0,0,0,11,9.343V20.721a1.174,1.174,0,0,0,1.1,1.227h9.38a1.174,1.174,0,0,0,1.1-1.227V9.343A1.174,1.174,0,0,0,21.484,8.116Zm-6.208-.123a1.311,1.311,0,0,1,1.242-1.38H17.1a1.311,1.311,0,0,1,1.242,1.38v.123H15.3V7.994Zm6.759,12.728a.587.587,
10,0,1-.552.613H12.1a.587.587,0,0,1-.552-.613V9.343A.587.587,0,0,1,12.1,8.73h9.38a.587.587,0,0,1,.552.613Z"><\/path><path class="b" d="M25.652,23.162a2.183,2.183,0,0,0,.441-1.324,1.989,1.989,0,1,0-3.973,0,2.183,2.183,0,0,0,.441,1.324A2.866,2.866,0,0,0,21.1,25.673v1.269a.261.261,0,0,0,.276.276h5.463a.261.261,0,0,0,.276-.276V25.7A2.91,2.91,0,0,0,25.652,23.162Zm-1.545-2.869a1.549,1.549,0,1,1-1.435,1.545A1.487,1.487,0,0,1,24.107,20.293Zm2.455,6.373H21.652V25.7a2.264,2.264,0,0,1,1.324-2.1,2.038,2.038,0,0,0,1.131.359,1.827,1.827,0,0,0,1.242-.469l-.055.11a2.322,2.322,0,0,1,1.269,2.1Z" transform="translate(-7.314 -9.066)"><\/path><path class="b" d="M26.794,49.259H21.276a.276.276,0,1,0,0,.552h5.518a.261.261,0,0,0,.276-.276A.276.276,0,0,0,26.794,49.259Z" transform="translate(-7.241 -29.722)"><\/path><\/g>\n                                                            <\/svg>\n                                                            <p>\n                                                                Region:\n                                                                <span>\n                                                                    '+t[i].Region.replace(" Region","")+'\n                                                                <\/span>\n                                                            <\/p>\n                                                        <\/li>\n                                                <\/ul>\n                                                <div class="auction-btn-div">\n                                                    <a class="bob-line-arrow-orange-link" href="/tenders/zonal-regional-offices-archived/tender-detail?tenderid='+t[i].TenderId+'">\n                                                        Know More\n                                                    <\/a>\n                                                    <ul class="bob-offer-views-ul">\n                                                        <li class="likes-li" id="liked_1" data-id="tenderold-'+t[i].TenderId+'">\n                                                            <svg xmlns="http://www.w3.org/2000/svg" width="13.86" height="11.535" viewBox="0 0 13.86 11.535" fill="#707070" class="unlike-svg"><g transform="translate(0 0)"><path class="a" d="M12.746,6.828a3.87,3.87,0,0,0-5.466,0l-.35.35-.35-.35a3.869,3.869,0,0,0-5.466,0,3.91,3.91,0,0,0-.022,5.444C2.427,13.755,6.364,16.96,6.531,17.1a.609.609,0,0,0,.386.137H6.93a.59.59,0,0,0,.4-.137c.167-.136,4.1-3.341,5.44-4.824A3.91,3.91,0,0,0,12.746,6.828Zm-.887,4.625A65.24,65.24,0,0,1,6.93,15.84,65.1,65.1,0,0,1,2,11.453a2.7,2.7,0,0,1-.022-3.76,2.644,2.644,0,0,1,3.736,0l.769.769a.592.592,0,0,0,.328.165.613.613,0,0,0,.563-.165l.77-.77a2.645,2.645,0,0,1,3.736,0A2.7,2.7,0,0,1,11.859,11.452Z" transform="translate(0 -5.697)"><\/path><\/g><\/svg>\n                                                            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13.86" height="11.535" viewBox="0 0 13.86 11.535" fill="#F26522" class="like-svg"><path class="a" d="M12.746,6.828a3.87,3.87,0,0,0-5.466,0l-.35.35-.35-.35a3.869,3.869,0,0,0-5.466,0,3.91,3.91,0,0,0-.022,5.444C2.427,13.755,6.364,16.96,6.531,17.1a.609.609,0,0,0,.386.137H6.93a.59.59,0,0,0,.4-.137c.167-.136,4.1-3.341,5.44-4.824A3.91,3.91,0,0,0,12.746,6.828Z" transform="translate(0 -5.697)"><\/path><\/svg>\n                                                        <\/li>\n                                                        <li class="bob-share-li">\n                                                            <svg xmlns="http://www.w3.org/2000/svg" width="10.806" height="11.788" viewBox="0 0 10.806 11.788" fill="#707070"><g transform="translate(-21)"><path class="a" d="M338.861,17.6a1.6,1.6,0,1,1-1.6-1.6A1.6,1.6,0,0,1,338.861,17.6Z" transform="translate(-307.423 -15.632)"><\/path><path class="a" d="M321.633,3.929A1.965,1.965,0,1,1,323.6,1.965,1.967,1.967,0,0,1,321.633,3.929Zm0-3.193a1.228,1.228,0,1,0,1.228,1.228A1.229,1.229,0,0,0,321.633.737Z" transform="translate(-291.792)"><\/path><path class="a" d="M338.861,358.928a1.6,1.6,0,1,1-1.6-1.6A1.6,1.6,0,0,1,338.861,358.928Z" transform="translate(-307.423 -349.105)"><\/path><path class="a" d="M321.633,345.261A1.965,1.965,0,1,1,323.6,343.3,1.967,1.967,0,0,1,321.633,345.261Zm0-3.193a1.228,1.228,0,1,0,1.228,1.228A1.229,1.229,0,0,0,321.633,342.069Z" transform="translate(-291.792 -333.473)"><\/path><path class="a" d="M40.193,188.264a1.6,1.6,0,1,1-1.6-1.6A1.6,1.6,0,0,1,40.193,188.264Z" transform="translate(-15.632 -182.37)">
1<\/path><path class="a" d="M22.965,174.6a1.965,1.965,0,1,1,1.965-1.965A1.967,1.967,0,0,1,22.965,174.6Zm0-3.192a1.228,1.228,0,1,0,1.228,1.228A1.229,1.229,0,0,0,22.965,171.4Z" transform="translate(0 -166.739)"><\/path><path class="a" d="M135.84,93.8a.491.491,0,0,1-.244-.918l4.557-2.6a.491.491,0,1,1,.486.854l-4.558,2.6A.488.488,0,0,1,135.84,93.8Z" transform="translate(-111.716 -88.138)"><\/path><path class="a" d="M140.419,269.8a.488.488,0,0,1-.243-.064l-4.558-2.6a.491.491,0,0,1,.486-.854l4.558,2.6a.491.491,0,0,1-.244.918Z" transform="translate(-111.738 -260.089)"><\/path><\/g><\/svg>\n                                                            <ul class="bob-share-link-ul share-section">\n                                                                <li class="share-whatsapp">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="17.51" height="17.51" viewBox="0 0 17.51 17.51" class="share_whatsapp_svg" fill="#f26522">\n                                                                            <defs>\n                                                                                <style>\n                                                                                    .share_whatsapp_svg .a {\n                                                                                        fill-rule: evenodd;\n                                                                                    }\n                                                                                <\/style>\n                                                                            <\/defs>\n                                                                            <path class="a" d="M18.755,10a8.754,8.754,0,0,0-7.209,13.721.439.439,0,0,1,.055.376l-.889,2.975,2.914-1.006a.438.438,0,0,1,.376.048A8.758,8.758,0,1,0,18.755,10Zm-3.584,3.817,1.594,2.633-.663.657a.438.438,0,0,0-.068.527,8.629,8.629,0,0,0,3.892,3.858.438.438,0,0,0,.486-.089l.7-.7,2.572,1.607a2.432,2.432,0,0,1-1.081,1.245,2.624,2.624,0,0,1-1.778.164,9.574,9.574,0,0,1-4.378-2.743,9.759,9.759,0,0,1-2.661-4.426,2.569,2.569,0,0,1,.178-1.737,2.215,2.215,0,0,1,1.2-.992Z" transform="translate(-10 -10)"><\/path>\n                                                                        <\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li class="share-facebook">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="7.631" height="14.448" viewBox="0 0 7.631 14.448" fill="#f26522"><path class="a" d="M-8.194-46.7h1.962v-2.75H-8.539v.01c-2.794.094-3.367,1.585-3.417,3.15h-.006v1.373h-1.9v2.694h1.9v7.22h2.867v-7.22h2.349l.454-2.694h-2.8v-.83A.906.906,0,0,1-8.194-46.7Z" transform="translate(13.864 49.453)"><\/path><\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li class="share-twitter">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="16.938" height="13.608" viewBox="0 0 16.938 13.608" fill="#f26522"><path class="a" d="M23.167,13.015q.01.221.01.444a9.761,9.761,0,0,1-9.888,9.774h0A9.919,9.919,0,0,1,7.962,21.69a7.147,7.147,0,0,0,.829.048,7.025,7.025,0,0,0,4.316-1.471,3.474,3.474,0,0,1-3.247-2.386,3.5,3.5,0,0,0,1.57-.059,3.446,3.446,0,0,1-2.788-3.367c0-.016,0-.029,0-.044a3.482,3.482,0,0,0,1.574.43,3.412,3.412,0,0,1-1.076-4.586A9.9,9.9,0,0,0,16.3,13.844a3.394,3.394,0,0,1-.09-.783,3.485,3.485,0,0,1,6.012-2.35,7.021,7.021,0,0,0,2.207-.834,3.456,3.456,0,0,1-1.528,1.9,6.993,6.993,0,0,0,2-.541A7.018,7.018,0,0,1,23.167,13.015Z" transform="translate(-7.962 -9.625)">
1<\/path><\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li class="share-linkedin">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="15.209" height="14.371" viewBox="0 0 15.209 14.371" fill="#f26522"><path class="a" d="M11.4,21.779H8.139v-9.7H11.4Zm-1.63-11.02H9.748a1.681,1.681,0,1,1,.043-3.35,1.682,1.682,0,1,1-.022,3.35Zm13.386,11.02H19.9V16.592c0-1.3-.472-2.193-1.652-2.193a1.783,1.783,0,0,0-1.673,1.179,2.183,2.183,0,0,0-.107.787v5.415H13.2s.043-8.787,0-9.7h3.26v1.373a3.243,3.243,0,0,1,2.938-1.6c2.145,0,3.753,1.386,3.753,4.364Z" transform="translate(-7.946 -7.408)"><\/path><\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li class="share-email">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="18.706" height="12.471" viewBox="0 0 18.706 12.471" fill="#f26522"><path class="a" d="M12.439,24a1.424,1.424,0,0,0-.764.225l8,7.179a.929.929,0,0,0,1.334,0l8.019-7.179A1.426,1.426,0,0,0,28.267,24Zm-1.356.974a1.432,1.432,0,0,0-.082.465v9.593a1.436,1.436,0,0,0,1.439,1.439H28.267a1.436,1.436,0,0,0,1.439-1.439V25.439a1.432,1.432,0,0,0-.082-.465l-7.974,7.142a1.946,1.946,0,0,1-2.608,0Z" transform="translate(-11 -24)"><\/path><\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li class="share-gmail">\n                                                                    <a href="javascript:void(0);">\n                                                                        <svg xmlns="http://www.w3.org/2000/svg" width="18.667" height="14" viewBox="0 0 18.667 14" fill="#f26522"><g transform="translate(22.448 -0.21)"><path class="a" d="M-5.337.21H-20.892a1.555,1.555,0,0,0-1.556,1.556V12.654a1.555,1.555,0,0,0,1.556,1.556H-5.337a1.556,1.556,0,0,0,1.556-1.556V1.766A1.556,1.556,0,0,0-5.337.21Zm-7.778,5.351L-19.282.988H-6.947Zm-6.222-.521,5.989,4.426a.39.39,0,0,0,.459,0l6-4.426v8.392H-19.337Z" transform="translate(0 0)"><\/path><\/g><\/svg>\n                                                                    <\/a>\n                                                                <\/li>\n                                                                <li>\n                                                                    <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" fill="#f26522" class="share_closed_svg">\n                                                                        <defs>\n                                                                            <style>\n                                                                                .share_closed_svg .a {\n                                                                                    opacity: 0.1;\n                                                                                }\n                                                                            <\/style>\n                                                                        <\/defs>\n                                                                        <g transform="translate(-1278.989 -40.052)"><circle class="a" cx="15" cy="15" r="15" transform="translate(1278.989 40.052)"><\/circle><rect class="b" width="14.193" height="1.039" rx="0.519" transform="translate(1289.286 49.052) rotate(45)"><\/rect><rect class="b" width="14.193" height="1.039" rx="0.519" transform="translate(1299.322 49.786) rotate(135)"><\/rect><\/g>\n                                                                    <\/svg>\n                                                                <\/li>\n                                                            <\/ul>\n                                                        <\/li>\n                                                    <\/ul>\n                                                <\/div>\n                                            <\/div>\n                                        <\/div>
1'),n=t[i].TotalTableCount,r=parseInt(jQuery(".bob-offres-all-card-div .col-sm-4.tenders").length);r-1==n?jQuery(".blog-load-more-div").fadeOut():jQuery(".blog-load-more-div").fadeIn()},error:function(){jQuery("#loadmorebtn").html("Load More");alert("There seems to be an issue.  Please try again after some time.")}})}function fnCheckUndefinedElseReturnBlank(n){return typeof $xa("#"+n+" ul li.active").data("value")!="undefined"?$xa("#"+n+" ul li.active").data("value").trim():""}function fnSearchDataResult(){var n,t;$xa(".search-class").val()!=""&&$xa(".search-class").val()!=null&&(n=jQuery(".search-class").val(),n!=""?(t=!1,jQuery(".bob-home-loan .bob-page-list-box ul.items li.item").addClass("nodisplay"),jQuery(".bob-home-loan .bob-page-list-box ul.items li.item").each(function(){var i="";i=jQuery(this).find("h2").text()+"-"+jQuery(this).find(".box-content").text();i.toLowerCase().indexOf(n.toLocaleLowerCase())!=-1&&(t=!0,jQuery(this).removeClass("nodisplay"))}),t):jQuery(".bob-home-loan .bob-page-list-box ul.items li.item").addClass("nodisplay"));AOS.refresh()}function fnLoanListingPageLevel2SearchAndFilterReset(){var n=jQuery(window).width();n>767?jQuery(".filterby").find(".bob-custom-dropdown").each(function(){jQuery(".custom-filt-div .bob-custom-dropdown .bob-custom-dropdown-list li")[0].click();jQuery(this).find(".form-control small").html(jQuery(this).find(".bob-custom-dropdown-list").data("label"));jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery(".bob-custom-dropdown").addClass("all-select")}):jQuery(".mob-filter").find(".bob-custom-dropdown").each(function(){jQuery(".custom-filt-div .bob-custom-dropdown .bob-custom-dropdown-list li")[0].click();jQuery(this).find(".form-control small").html(jQuery(this).find(".bob-custom-dropdown-list").data("label"));jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active");jQuery(".bob-custom-dropdown").addClass("all-select")})}var prevArrow,nextArrow,thisClass,glblShareComponentIsGlobalPageShare,glblSharePlatformFound,glblObjApplyNowElement,language,glblJsonDataCustomSearch,glblBoolDisableCustomSearch,globalSearchTimer,rtlType,winW,winH,RemainingDays,options2,maturity_Arr,rates_Arr,options1,optionsCar,optionsEdu,BRLLR,Concession,optionsHLE,optionsMudra,optionsPLE,optionsIPO,optionsRecc,optionstwo,optionsMortgage,chart,amtMin,amtMax,tenureMin,tenureMax,intRatesMin,intRatesMax,minContribution,maxContribution,flag,monthlyInvestment,total_investment,featurecount,replaceidwith,isReplaceid,addproductformat,testArryFilter;jQuery(document).ready(function(){var n=localStorage.getItem("preferredLanguage"),t=localStorage.getItem("prevLang");n&&n!=="en"&&n!==t&&jQuery("#bhashiniPopup").css({visibility:"visible",opacity:"1",pointerEvents:"auto"});jQuery("#agreeBtn").on("click",function(){localStorage.setItem("prevLang",localStorage.getItem("preferredLanguage"));jQuery("#bhashiniPopup").css({visibility:"hidden",opacity:"0",pointerEvents:"none"})});jQuery(".popup-close").on("click",function(){jQuery("#bhashiniPopup").css({visibility:"hidden",opacity:"0",pointerEvents:"none"})})});jQuery(function(){function v(){t.each(function(n){const t=jQuery(this);t.attr({tabindex:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":"false"});const i=t.find(".bob-custom-dropdown-list li");i.each(function(t){const i=jQuery(this);i.attr("id")||i.attr("id",`bob-li-${n}-${t}`);i.attr({role:"option",tabindex:-1})})});f.attr({tabindex:0,role:"button"});e.attr({tabindex:0,role:"button"});s.attr("tabindex",0);h.attr("tabindex",0)}function i(n,t){n.find(".bob-custom-dropdown-list li").removeClass("active");t.addClass("active")}function y(n,t){const i=t.text().trim(),r=t.data("value");n.trigger("selectionChanged",{label:i,value:r,selectedItem:t});const u=n.find('input[type="hidden"]');if(u.length&&u.val(r),t[0]&&t[0].outerHTML.includes("state-id"))jQuery("#hdnstate").val(i),bindCity(i,"");else if(t[0]&&t[0].outerHTML.includes("city-id")){jQuery("#hdncity").val(i);setTimeout(()=>{if(jQuery("#hdncity").val()!=""){var n=jQuery("#hdncity").val();jQuery("#labelGVCity")[0].innerText=n}},1e3);var e=jQuery("#hdnstate").val(),o=jQuery("#hdncity").val(),f=window.location.href.toLowerCase();(f.includes("bc-agent-finder")||f.includes("ifsc-finder"))&&bindBranch(e,o)}else t[0]&&t[0].outerHTML.includes("branch-id")&&jQuery("#hdnbranch").val(i)}function o(n){n.length&&n[0].scrollIntoView({block:"nearest",behavior:"auto"})}function c(n,t=0){l();n.addClass("bob-open-dropdown").attr("aria-expanded","true");const f=n.find(".bob-custom-dropdown-list").show(),r=f.find("li");if(r.length){r.attr("tabindex",-1);const u=r.eq(t).attr("tabindex",0);n.attr("aria-activedescendant",u.attr("id"));i(n,u);o(u);n.focus()}}function r(n){n.removeClass("bob-open-dropdown").attr("aria-expanded","fal
1se").removeAttr("aria-activedescendant");n.find(".bob-custom-dropdown-list").hide();n.find("li").attr("tabindex",-1)}function l(){t.each(function(){r(jQuery(this))})}function u(n,t){const r=n.find(".bob-custom-dropdown-list li");if(r.length){const f=r.index(r.filter('[tabindex="0"]'));let u;switch(t){case"down":u=f<r.length-1?f+1:0;break;case"up":u=f>0?f-1:r.length-1;break;case"home":u=0;break;case"end":u=r.length-1;break;default:return}r.attr("tabindex",-1);const e=r.eq(u).attr("tabindex",0);n.attr("aria-activedescendant",e.attr("id"));i(n,e);o(e)}}function a(n){const o=n.find('.bob-custom-dropdown-list li[tabindex="0"]');if(o.length){n.find("> span small").text(o.text().trim());i(n,o);y(n,o);const c=n.find('input[type="hidden"]'),a=n.find("> span small").data("value");c.length&&c.val(a);r(n);const l=t.add(s).add(f).add(h).add(e),v=l.index(n),u=l.eq(v+1);if(u.length){const n=u[0].classList.contains("js-pincode")||u[0].classList.contains("bob-pincode-input");n?setTimeout(()=>{u.focus()},1e3):u.focus()}}}const n=jQuery(".bob-parent-accordion-list-div"),t=n.find(".bob-custom-dropdown"),f=n.find(".bob-e-auction-filter-btn-div a"),s=n.find(".bob-check-radio-form-control"),h=n.find("input.bob-pincode-input"),e=n.find(".map-and-grid-filter-div a");v();t.on("click","> span",function(n){const t=jQuery(this).closest(".bob-custom-dropdown");t.hasClass("bob-open-dropdown")?r(t):c(t,0);n.stopPropagation()});
1t.on("keydown",function(n){const t=jQuery(this);if(t.hasClass("bob-open-dropdown"))switch(n.key){case"ArrowDown":n.preventDefault();u(t,"down");break;case"ArrowUp":n.preventDefault();u(t,"up");break;case"Home":n.preventDefault();u(t,"home");break;case"End":n.preventDefault();u(t,"end");break;case"Enter":case" ":n.preventDefault();a(t);break;case"Escape":n.preventDefault();r(t);t.focus();break;case"Tab":r(t)}else if(["Enter"," ","ArrowDown","ArrowUp"].includes(n.key)){n.preventDefault();const i=n.key==="ArrowUp"?t.find(".bob-custom-dropdown-list li").length-1:0;c(t,i)}});f.add(e).on("keydown",function(n){["Enter"," "].includes(n.key)&&(n.preventDefault(),jQuery(this).trigger("click"))});n.on("click",".bob-custom-dropdown-list li",function(){const n=jQuery(this),t=n.closest(".bob-custom-dropdown");t.find("li").attr("tabindex",-1);n.attr("tabindex",0);t.attr("aria-activedescendant",n.attr("id"));i(t,n);o(n);a(t)});n.on("mouseenter",".bob-custom-dropdown-list li",function(){const n=jQuery(this),t=n.closest(".bob-custom-dropdown");t.hasClass("bob-open-dropdown")&&(t.find("li").attr("tabindex",-1),n.attr("tabindex",0),t.attr("aria-activedescendant",n.attr("id")),i(t,n))});jQuery(document).on("click",function(n){jQuery(n.target).closest(".bob-parent-accordion-list-div").length||l()});const p=`
2        .bob-parent-accordion-list-div .bob-custom-dropdown:focus,
3        .bob-parent-accordion-list-div .bob-e-auction-filter-btn-div a:focus,
4        .bob-parent-accordion-list-div .bob-check-radio-form-control:focus,
5        .bob-parent-accordion-list-div .bob-pincode-input:focus,
6        .bob-parent-accordion-list-div .map-and-grid-filter-div a:focus { 
7            outline: 2px solid #f26522 !important; 
8            outline-offset: 2px !important; 
9    border-radius: 100px !important; 
10	
11        }
12
13        .bob-parent-accordion-list-div .bob-custom-dropdown-list {
14            max-height: 200px !important; 
15            overflow-y: auto !important; 
16            overflow-x: hidden !important; 
17        }
18
19        .bob-parent-accordion-list-div .bob-custom-dropdown-list::-webkit-scrollbar {
20            width: 3px; /* super thin */
21        }
22        .bob-parent-accordion-list-div .bob-custom-dropdown-list::-webkit-scrollbar-track {
23            background: transparent;
24        }
25        .bob-parent-accordion-list-div .bob-custom-dropdown-list::-webkit-scrollbar-thumb {
26            background-color: #f26522;
27            border-radius: 3px;
28        }
29
30        .bob-parent-accordion-list-div .bob-custom-dropdown-list {
31            scrollbar-width: thin;
32            scrollbar-color: #f26522 transparent;
33        }
34    `;jQuery("<style/>").text(p).appendTo("head")});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.AOS=t()}(this,function(){"use strict";function gt(n,t,i){function b(t){var i=e,r=o;return e=o=void 0,c=t,h=n.apply(r,i)}function g(n){var i=n-u;return void 0===u||i>=t||i<0||y&&n-c>=a}function p(){var n=s();if(g(n))return nt(n);r=setTimeout(p,function(n){var i=t-(n-u);return y?dt(i,a-(n-c)):i}(n))}function nt(n){return r=void 0,w&&e?b(n):(e=o=void 0,h)}function k(){var n=s(),i=g(n);if(e=arguments,o=this,u=n,i){if(void 0===r)return function(n){return c=n,r=setTimeout(p,t),d?b(n):h}(u);if(y)return r=setTimeout(p,t),b(u)}return void 0===r&&(r=setTimeout(p,t)),h}var e,o,a,h,r,u,c=0,d=!1,y=!1,w=!0;if("function"!=typeof n)throw new TypeError(l);return t=v(t)||0,f(i)&&(d=!!i.leading,a=(y="maxWait"in i)?kt(v(i.maxWait)||0,t):a,w="trailing"in i?!!i.trailing:w),k.cancel=function(){void 0!==r&&clearTimeout(r);c=0;e=u=o=r=void 0},k.flush=function(){return void 0===r?h:nt(s())},k}function f(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function v(n){var t,i;return"number"==typeof n?n:function(n){return"symbol"==typeof n||function(n){return!!n&&"object"==typeof n}(n)&&bt.call(n)==st}(n)?a:(f(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=f(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(ht,""),i=lt.test(n),i||at.test(n)?vt(n.slice(2),i?2:8):ct.test(n)?a:+n)}function c(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function p(n){var t,i;return"number"==typeof n?n:function(n){return"symbol"==typeof n||function(n){return!!n&&"object"==typeof n}(n)&&li.call(n)==ii}(n)?y:(c(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=c(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(ri,""),i=fi.test(n),i||ei.test(n)?oi(n.slice(2),i?2:8):ui.test(n)?y:+n)}
34function yi(n){n&&n.forEach(function(n){var t=Array.prototype.slice.call(n.addedNodes),i=Array.prototype.slice.call(n.removedNodes);if(function n(t){for(var i=void 0,r=void 0,i=0;i<t.length;i+=1)if((r=t[i]).dataset&&r.dataset.aos||r.children&&n(r.children))return!0;return!1}(t.concat(i)))return b()})}function k(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(){return navigator.userAgent||navigator.vendor||window.opera||""}var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l="Expected a function",a=NaN,st="[object Symbol]",ht=/^\s+|\s+$/g,ct=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,at=/^0o[0-7]+$/i,vt=parseInt,yt="object"==typeof t&&t&&t.Object===Object&&t,pt="object"==typeof self&&self&&self.Object===Object&&self,wt=yt||pt||Function("return this")(),bt=Object.prototype.toString,kt=Math.max,dt=Math.min,s=function(){return wt.Date.now()},ni=function(n,t,i){var r=!0,u=!0;if("function"!=typeof n)throw new TypeError(l);return f(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),gt(n,t,{leading:r,maxWait:t,trailing:u})},ti="Expected a function",y=NaN,ii="[object Symbol]",ri=/^\s+|\s+$/g,ui=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,ei=/^0o[0-7]+$/i,oi=parseInt,si="object"==typeof t&&t&&t.Object===Object&&t,hi="object"==typeof self&&self&&self.Object===Object&&self,ci=si||hi||Function("return this")(),li=Object.prototype.toString,ai=Math.max,vi=Math.min,h=function(){return ci.Date.now()},w=function(n,t,i){function w(t){var i=f,r=e;return f=e=void 0,s=t,o=n.apply(r,i)}function d(n){var i=n-u;return void 0===u||i>=t||i<0||a&&n-s>=l}function v(){var n=h();if(d(n))return g(n);r=setTimeout(v,function(n){var i=t-(n-u);return a?vi(i,l-(n-s)):i}(n))}function g(n){return r=void 0,y&&f?w(n):(f=e=void 0,o)}function b(){var n=h(),i=d(n);if(f=arguments,e=this,u=n,i){if(void 0===r)return function(n){return s=n,r=setTimeout(v,t),k?w(n):o}(u);if(a)return r=setTimeout(v,t),w(u)}return void 0===r&&(r=setTimeout(v,t)),o}var f,e,l,o,r,u,s=0,k=!1,a=!1,y=!0;if("function"!=typeof n)throw new TypeError(ti);return t=p(t)||0,c(i)&&(k=!!i.leading,l=(a="maxWait"in i)?ai(p(i.maxWait)||0,t):l,y="trailing"in i?!!i.trailing:y),b.cancel=function(){void 0!==r&&clearTimeout(r);s=0;f=u=e=r=void 0},b.flush=function(){return void 0===r?o:g(h())},b},b=function(){},d={isSupported:function(){return!!k()},ready:function(n,t){var i=window.document,r=new(k())(yi);b=t;r.observe(i.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}},pi=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},wi=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),bi=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},ki=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,di=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
34sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,gi=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,nr=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,e=new(function(){function n(){pi(this,n)}return wi(n,[{key:"phone",value:function(){var n=g();return!(!ki.test(n)&&!di.test(n.substr(0,4)))}},{key:"mobile",value:function(){var n=g();return!(!gi.test(n)&&!nr.test(n.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),n}()),o=function(n,t){var i=void 0;return e.ie11()?(i=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,{detail:t}):i=new CustomEvent(n,{detail:t}),document.dispatchEvent(i)},nt=function(n){return n.forEach(function(n){return function(n,t){var r=n.options,u=n.position,i=n.node,f=(n.data,function(){n.animated&&(function(n,t){t&&t.forEach(function(t){return n.classList.remove(t)})}(i,r.animatedClassNames),o("aos:out",i),n.options.id&&o("aos:in:"+n.options.id,i),n.animated=!1)});r.mirror&&t>=u.out&&!r.once?f():t>=u.in?n.animated||(function(n,t){t&&t.forEach(function(t){return n.classList.add(t)})}(i,r.animatedClassNames),o("aos:in",i),n.options.id&&o("aos:in:"+n.options.id,i),n.animated=!0):n.animated&&!r.once&&f()}(n,window.pageYOffset)})},tt=function(n){for(var t=0,i=0;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)t+=n.offsetLeft-("BODY"!=n.tagName?n.scrollLeft:0),i+=n.offsetTop-("BODY"!=n.tagName?n.scrollTop:0),n=n.offsetParent;return{top:i,left:t}},i=function(n,t,i){var r=n.getAttribute("data-aos-"+t);if(void 0!==r){if("true"===r)return!0;if("false"===r)return!1}return r||i},tr=function(n,t){return n.forEach(function(n){var r=i(n.node,"mirror",t.mirror),f=i(n.node,"once",t.once),e=i(n.node,"id"),u=t.useClassNames&&n.node.getAttribute("data-aos"),o=[t.animatedClassName].concat(u?u.split(" "):[]).filter(function(n){return"string"==typeof n});t.initClassName&&n.node.classList.add(t.initClassName);n.position={"in":function(n,t,r){var e=window.innerHeight,o=i(n,"anchor"),s=i(n,"anchor-placement"),h=Number(i(n,"offset",s?0:t)),c=s||r,f=n,u;
34o&&document.querySelectorAll(o)&&(f=document.querySelectorAll(o)[0]);u=tt(f).top-e;switch(c){case"center-bottom":u+=f.offsetHeight/2;break;case"bottom-bottom":u+=f.offsetHeight;break;case"top-center":u+=e/2;break;case"center-center":u+=e/2+f.offsetHeight/2;break;case"bottom-center":u+=e/2+f.offsetHeight;break;case"top-top":u+=e;break;case"bottom-top":u+=e+f.offsetHeight;break;case"center-top":u+=e+f.offsetHeight/2}return u+h}(n.node,t.offset,t.anchorPlacement),out:r&&function(n,t){window.innerHeight;var r=i(n,"anchor"),f=i(n,"offset",t),u=n;return r&&document.querySelectorAll(r)&&(u=document.querySelectorAll(r)[0]),tt(u).top+u.offsetHeight-f}(n.node,t.offset)};n.options={once:f,mirror:r,animatedClassNames:o,id:e}}),n},it=function(){var n=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(n,function(n){return{node:n}})},r=[],rt=!1,n={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},ut=function(){return document.all&&!window.atob},u=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(rt=!0);rt&&(r=tr(r,n),nt(r),window.addEventListener("scroll",ni(function(){nt(r,n.once)},n.throttleDelay)))},ft=function(){if(r=it(),ot(n.disable)||ut())return et();u()},et=function(){r.forEach(function(t){t.node.removeAttribute("data-aos");t.node.removeAttribute("data-aos-easing");t.node.removeAttribute("data-aos-duration");t.node.removeAttribute("data-aos-delay");n.initClassName&&t.node.classList.remove(n.initClassName);n.animatedClassName&&t.node.classList.remove(n.animatedClassName)})},ot=function(n){return!0===n||"mobile"===n&&e.mobile()||"phone"===n&&e.phone()||"tablet"===n&&e.tablet()||"function"==typeof n&&!0===n()};return{init:function(t){return n=bi(n,t),r=it(),n.disableMutationObserver||d.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),n.disableMutationObserver=!0),n.disableMutationObserver||d.ready("[data-aos]",ft),ot(n.disable)||ut()?et():(document.querySelector("body").setAttribute("data-aos-easing",n.easing),document.querySelector("body").setAttribute("data-aos-duration",n.duration),document.querySelector("body").setAttribute("data-aos-delay",n.delay),-1===["DOMContentLoaded","load"].indexOf(n.startEvent)?document.addEventListener(n.startEvent,function(){u(!0)}):window.addEventListener("load",function(){u(!0)}),"DOMContentLoaded"===n.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1&&u(!0),window.addEventListener("resize",w(u,n.debounceDelay,!0)),window.addEventListener("orientationchange",w(u,n.debounceDelay,!0)),r)},refresh:u,refreshHard:ft}}),function(n){n.extend({browser:function(){var i=navigator.userAgent,t,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];/trident/i.test(n[1])&&(t=/\brv[ :]+(\d+)/g.exec(i)||[],n[1]="Internet-Explorer",n[2]=t[1]);n[1]==="Chrome"&&(t=i.match(/\b(OPR|Edge)\/(\d+)/),n[1]=t!=null?t.slice(1).join(" ").replace("OPR","Opera"):"Chrome");n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"];(t=i.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]);var r=/firefox/.test(navigator.userAgent.toLowerCase())&&!/webkit    /.test(navigator.userAgent.toLowerCase()),u=/webkit/.test(navigator.userAgent.toLowerCase()),e=/opera/.test(navigator.userAgent.toLowerCase()),f=/edge/.test(navigator.userAgent.toLowerCase())||/msie/.test(navigator.userAgent.toLowerCase())||/msie (\d+\.\d+);/.test(navigator.userAgent.toLowerCase())||/trident.*rv[ :]*(\d+\.\d+)/.test(navigator.userAgent.toLowerCase()),o=f?"":u?"-webkit-":r?"-moz-":"";return{name:n[0],version:n[1],firefox:r,opera:e,msie:f,chrome:u,prefix:o}}});jQuery.browser=n.browser()}(jQuery);jQuery(document).ready(function(){if(typeof glblFnLoadChatIframeLogic=="undefined")jQuery(".bob-chat-iframe .close-chatboat").on("click",function(){jQuery(".bob-chat-iframe").removeClass("bob-open-chat-iframe")});jQuery(".bob-video-chat-li").on("click",function(){jQuery(".bob-videochat-iframe").addClass("bob-open-chat-iframe");jQuery("#mainDiv2 iframe").attr("src",jQuery("#mainDiv2 iframe").attr("data-src"))});jQuery(".bob-videochat-iframe .close-chatboat").on("click",function(){jQuery(".bob-videochat-iframe").removeClass("bob-open-chat-iframe");jQuery("#mainDiv2 iframe").attr("src","")});setInterval(function(){var n=jQuery("#chatIframe").attr("src");n!=undefined&&(n.includes("ams.techmahindra.com")?jQuery("#mainDiv .closed-frame").length>0||(jQuery("#chatIframe").before('<span class="closed-frame"><\/span>'),clearInterval(this)):jQuery("#mainDiv .closed-frame").remove())},250);jQuery(document).on("click","#mainDiv .closed-frame",function(){jQuery("#mainDiv").removeClass("bob-open-chat-iframe");jQuery("#mainDiv .closed-frame").remove();jQuery("#chatIframe").attr("src","")});var n=!1;jQuery(function(){setInterval(function(){var t=jQuery("#actionTxt").val();t.length>
3430?n||(jQuery("#chatIframe").before('<span class="close-adi-video-chat"><\/span>'),n=!0):jQuery(".close-adi-video-chat").remove()},250);jQuery(".bob-chat-iframe").on("click",".close-adi-video-chat",function(){var t=jQuery("#chatIframe").attr("data-src");t!=undefined&&jQuery("#chatIframe").attr("src",t);jQuery("#actionTxt").val("");jQuery("#mainDiv").removeClass("bob-open-chat-iframe");jQuery(".close-adi-video-chat").remove();n=!1})})});jQuery(document).ready(function(){var n=jQuery(window).width(),t=jQuery(window).height();setTimeout(function(){jQuery("body").css({opacity:"1"})},200);setTimeout(function(){AOS.init({offset:50})},300);setTimeout(function(){jQuery(".bob-imp-links-div,.ways-to-link h3,.ways-to-link ul,.products_Wrap_left .h2heading,.products_Wrap_left,.home_section_3 .h2heading,.rates-and-charges p.para,.ratesroundbox,.home_section_4 .h2heading,.home_section_4 .bob-tab-div,.home_section_5 .h2heading,.blogWrap,.barodaconnect,.bob-home-loan .bob-loan-listing-intro,.bob-home-loan .component-content .component.rich-text.col-12 .component-content p,.bob-card-list-first ul.items li.item, .bob-new-loans-page .bob-small-page-list.page-list ul.items li.item,.bob-need-assistance-div h3,.bob-need-assistance-div ul li,#request-callback,.bob-new-loans-page .row.bob-paragraph-section .col-sm-12 .blueoverlay p,.bob-accordion-div,.bob-blogs-thumb-style ul li,.bob-search-filter,.bob-home-loan .bob-page-list-box ul.items li.item,.bob-loan-page-tab-div,.bob-line-list li ul li,.bob-loan-faq-view-all-div,.bob-home-loan .row.bob-paragraph-section .col-sm-12 .blueoverlay p,.bob-promo-tab-div ul,.bob-tab-inner-page-link,.custom-lightbox-slider-div .lightbox-title,.custom-lightbox-slider-div .lightbox-slider,.contact-center,.contact-for-complain-info").attr({"data-aos":"fade-up","data-aos-duration":"500","data-aos-easing":"ease-out-cubic"});jQuery(".products_Wrap_right").attr({"data-aos":"fade-left","data-aos-duration":"500","data-aos-easing":"ease-out-cubic"});jQuery().attr("data-aos","fade-right");jQuery().attr("data-aos","fade-up")},100)});!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous<\/button>
34',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(i);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(i).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;void 0!==document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):!0===r?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();!0===r.options.rtl&&!1===r.options.vertical&&(t=-t);!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);!1===r.options.vertical?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=!1===r.options.vertical?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&null!==t&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=!1===t.options.fade?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(!1===n.options.infinite&&(1===n.direction&&n.currentSlide+1===n.slideCount-1?n.direction=0:0===n.direction&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;
34!0===t.options.arrows&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(!0===t.options.dots){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);!0===t.options.draggable&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;t<c;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(!1===r.originalSettings.mobileFirst?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||!1===o||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,o,r=this,u=n(t.currentTarget),s;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0,f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,r;if(t=this.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.
34interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler));t.$slider.off("focus.slick blur.slick");!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler)));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var t,n=this;n.options.rows>1&&((t=n.$slides.children().children()).removeAttr("style"),n.$slider.empty().append(t))};t.prototype.clickHandler=function(n){!1===this.shouldClick&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;!1===t.cssTransitions?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())}
34,0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(!0===n.options.infinite)if(n.slideCount<=n.options.slidesToShow)++t;else for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(!0===n.options.centerMode)t=n.slideCount;else if(n.options.asNavFor)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var f,r,i,e,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),!0===t.options.infinite?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,e=-1,!0===t.options.vertical&&!0===t.options.centerMode&&(2===t.options.slidesToShow?e=-1.5:1===t.options.slidesToShow&&(e=-2)),u=r*t.options.slidesToShow*e),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),!0===t.options.centerMode&&t.slideCount<=t.options.slidesToShow?t.slideOffset=t.slideWidth*Math.floor(t.options.slidesToShow)/2-t.slideWidth*t.slideCount/2:!0===t.options.centerMode&&!0===t.options.infinite?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:!0===t.options.centerMode&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=!1===t.options.vertical?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,!0===t.options.variableWidth&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===t.options.centerMode&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){return this.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(!1===n.options.infinite?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);t<i;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var i,r,t=this;return r=!0===t.options.centerMode?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,!0===t.options.swipeToSlide?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>-1*t.swipeLeft)return i=f,!1}),Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){this.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);!0===i.options.accessibility&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this,f=Math.ceil(t.slideCount/t.options.slidesToShow),r=t.getNavigableIndexes().filter(function(n){return n>=0&&n<t.slideCount}),i,u;for(t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var u=r.indexOf(i);n(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1});-1!==u&&n(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+u})}),t.$dots.attr("role","tablist").find("li").each(function(i){var u=r[i];n(this).attr({role:"presentation"});n(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+u,"aria-label":i+1+" of "+f,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}
34).end()),i=t.currentSlide,u=i+t.options.slidesToShow;i<u;i++)t.$slides.eq(i).attr("tabindex",0);t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide),!0===n.options.accessibility&&(n.$prevArrow.on("keydown.slick",n.keyHandler),n.$nextArrow.on("keydown.slick",n.keyHandler)))};t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler));!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1)))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);
34t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(t.setPosition)};t.prototype.initUI=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===n.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),f=n(this).attr("data-srcset"),e=n(this).attr("data-sizes")||t.$slider.attr("data-sizes"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0}
34,100,function(){f&&(i.attr("srcset",f),e&&i.attr("sizes",e));i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var u,i,r,t=this;if(!0===t.options.centerMode?!0===t.options.infinite?r=(i=t.currentSlide+(t.options.slidesToShow/2+1))+t.options.slidesToShow+2:(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),r=t.options.slidesToShow/2+1+2+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,r=Math.ceil(i+t.options.slidesToShow),!0===t.options.fade&&(i>0&&i--,r<=t.slideCount&&r++)),u=t.$slider.find(".slick-slide").slice(i,r),"anticipated"===t.options.lazyLoad)for(var e=i-1,o=r,s=t.$slider.find(".slick-slide"),h=0;h<t.options.slidesToScroll;h++)e<0&&(e=t.slideCount-1),u=(u=u.add(s.eq(e))).add(s.eq(o)),e--,o++;f(u);t.slideCount<=t.options.slidesToShow?f(t.$slider.find(".slick-slide")):t.currentSlide>=t.slideCount-t.options.slidesToShow?f(t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow)):0===t.currentSlide&&f(t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&n(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))};t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var r,u,f,e,o,i=this,s=n("img[data-lazy]",i.$slider);s.length?(r=s.first(),u=r.attr("data-lazy"),f=r.attr("data-srcset"),e=r.attr("data-sizes")||i.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){f&&(r.attr("srcset",f),e&&r.attr("sizes",e));r.attr("src",u).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");!0===i.options.adaptiveHeight&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},o.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,r.hasOwnProperty(u)){for(f=r[u].breakpoint;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.cleanUpSlideEvents();t.initSlideEvents();t.checkResponsive(!1,!0);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.setPosition();t.focusHandler();
34t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;if(n="boolean"==typeof n?!0===(t=n)?0:r.slideCount-1:!0===t?--n:n,r.slideCount<1||n<0||n>r.slideCount-1)return!1;r.unload();!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove();r.$slides=r.$slideTrack.children(this.options.slide);r.$slideTrack.children(this.options.slide).detach();r.$slideTrack.append(r.$slides);r.$slidesCache=r.$slides;r.reinit()};t.prototype.setCSS=function(n){var r,u,t=this,i={};!0===t.options.rtl&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;!1===t.transformsEnabled?t.$slideTrack.css(i):(i={},!1===t.cssTransitions?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;!1===n.options.vertical?!0===n.options.centerMode&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),!0===n.options.centerMode&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();!1===n.options.vertical&&!1===n.options.variableWidth?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):!0===n.options.variableWidth?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();!1===n.options.variableWidth&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;!0===t.options.rtl?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}
34):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var u,f,e,i,r,t=this,o=!1;if("object"===n.type(arguments[0])?(e=arguments[0],o=arguments[1],r="multiple"):"string"===n.type(arguments[0])&&(e=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===n.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)t.options[e]=i;else if("multiple"===r)n.each(e,function(n,i){t.options[n]=i});else if("responsive"===r)for(f in i)if("array"!==n.type(t.options.responsive))t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();!1===n.options.fade?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=!0===n.options.vertical?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===n.options.useCSS&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&!1!==n.animType&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&!1!==n.animType};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this,e;(i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),t.$slides.eq(n).addClass("slick-current"),!0===t.options.centerMode)?(e=t.options.slidesToShow%2==0?1:0,u=Math.floor(t.options.slidesToShow/2),!0===t.options.infinite&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u+e,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1+e,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=!0===t.options.infinite?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==t.options.lazyLoad&&"anticipated"!==t.options.lazyLoad||t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(!0===t.options.fade&&(t.options.centerMode=!1),!0===t.options.infinite&&!1===t.options.fade&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=!0===t.options.centerMode?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;
34i<u+t.slideCount;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));r||(r=0);i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,e,o,h=null,r=this;if(t=t||!1,!(!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===n))if(!1===t&&r.asNavFor(n),u=n,h=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(n<0||n>r.getDotCount()*r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else if(!1===r.options.infinite&&!0===r.options.centerMode&&(n<0||n>r.slideCount-r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else{if(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=u<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(o=(o=r.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade)return!0!==i?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight();!0!==i?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f)}};t.prototype.startLoad=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),(n=Math.round(180*u/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===t.options.rtl?"left":"right":n<=360&&n>=315?!1===t.options.rtl?"left":"right":n>=135&&n<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};
34t.prototype.swipeMove=function(n){var f,e,r,u,i,o,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!(!t.dragging||t.scrolling||i&&1!==i.length)&&(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2))),!t.options.verticalSwiping&&!t.swiping&&o>4?(t.scrolling=!0,!1):(!0===t.options.verticalSwiping&&(t.touchObject.swipeLength=o),e=t.swipeDirection(),void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&(t.swiping=!0,n.preventDefault()),u=(!1===t.options.rtl?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),!0===t.options.verticalSwiping&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,!1===t.options.infinite&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=!1===t.options.vertical?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,!0===t.options.verticalSwiping&&(t.swipeLeft=f+r*u),!0!==t.options.fade&&!1!==t.options.touchMove&&(!0===t.animating?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft))))};t.prototype.swipeStart=function(n){var i,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var n=this;Math.floor(n.options.slidesToShow/2);!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&!1===n.options.centerMode?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&!0===n.options.centerMode&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").end(),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var u,i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,n=0;n<e;n++)if("object"==typeof r||void 0===r?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),void 0!==u)return u;return i}});jQuery(document).ready(function(){jQuery("#customerSupportAndFaqs").keyup(function(){fnCustomerSupportAndfaqsSearch()});jQuery(".faq-search-box-button .faq-search-svg").click(function(){fnCustomerSupportAndfaqsSearch()});jQuery(".faq-search-box-button .faq-close-svg").on("click",function(){jQuery("#customerSupportAndFaqs").val("");jQuery(".common-faqs-customer-suopport-search").removeClass("bob-data-in")});jQuery(document).on("click",function(){})});jQuery(document).ready(function(){if(setTimeout(function(){jQuery(".customer-search-result-wrap").mCustomScrollbar({scrollbarPosition:"outside"})},100),typeof glblFaqsJSONData!="undefined"){var n=new fnVoiceToSearch;n.micButtonElement=".mic-icon-faq";n.searchTextBoxElement=".customer-support-and-faqs-textbox";n.searchButtonElement=".faq-search-box-button .faq-search-svg";n.welcomeAudioId="welcomeaudio";n.clickAudioId="clickaudio";n.initialise()}});jQuery(document).ready(function(){var n=jQuery(window).width(),t=jQuery(window).height();lightboxslider();jQuery(document).on("click",".lightbox-slider .lightbox-item",function(){var e=jQuery(this).parents(".lightbox-slider").find(".lightbox-item"),t=[],i=[],r,u,n,f;if(jQuery(this).parents(".lightbox-slider").find(".lightbox-item").each(function(){var n=jQuery(this).attr("data-lightbox-img");t.push(n)}),jQuery(this).parents(".lightbox-slider").find(".lightbox-item img").each(function(){var n=jQuery(this).attr("src");i.push(n)}
34),r=t.length-1,u=i.length-1,jQuery(this).parents(".lightbox-slider").hasClass("lightbox-video-slider"))for(n=0;n<=r;n++)jQuery(".lightbox-big-slider").append('<iframe class="img-fluid" data-src="'+t[n]+'"  />');else for(n=0;n<=r;n++)jQuery(".lightbox-big-slider").append('<img class="img-fluid" src="'+t[n]+'"  />');for(n=0;n<=u;n++)jQuery(".lightbox-small-slider").append('<img class="img-fluid" src="'+i[n]+'"  />');u<6&&jQuery(".lightbox-small-slider").addClass("no-transition-slider");setTimeout(function(){customlightpopupslider();jQuery("body").addClass("body-lightbox-open")},200);f=jQuery(this).attr("data-slide");setTimeout(function(){jQuery(".lightbox-big-slider").slick("slickGoTo",f)},210)});jQuery(".lightbox-popup-div .bob-closed-btn").on("click",function(){jQuery("body").removeClass("body-lightbox-open");jQuery(".lightbox-small-slider,.lightbox-big-slider").slick("unslick");jQuery(".lightbox-small-slider img,.lightbox-big-slider img,.lightbox-small-slider iframe,.lightbox-big-slider iframe").remove()});jQuery(document).on("click",".lightbox-popup-div",function(n){var t=jQuery(".lightbox-popup-div .container");t.is(n.target)||t.has(n.target).length!==0||(jQuery("body").removeClass("body-lightbox-open"),jQuery(".lightbox-small-slider,.lightbox-big-slider").slick("unslick"),jQuery(".lightbox-small-slider img,.lightbox-big-slider img,.lightbox-small-slider iframe,.lightbox-big-slider iframe").remove())});jQuery(".bob-blue-top-div-text .bob-blue-banner-tag-list").mCustomScrollbar({scrollbarPosition:"inside",autoExpandScrollbar:!0,scrollInertia:0,alwaysShowScrollbar:1,axis:"x",scrollButtons:{enable:!0,scrollAmount:50,scrollType:"stepless"}})});jQuery(function(){fnReadCookie("dis-popup")==""?jQuery(".disc-box-right-div").removeClass("nodisplay"):jQuery(".disc-box-right-div").addClass("nodisplay")});jQuery(".disc-box-right-div").click(function(){fnCreateCookie("dis-popup","1",262800);jQuery(".disc-box-right-div").addClass("nodisplay")});rtlType=!1;jQuery("html").attr("dir")=="rtl"&&(rtlType=!0);jQuery(function(){jQuery("#exclusiveOfferList").length>0&&window.scrollY>1&&fnSetExclusiveOffer()});document.getElementsByTagName("body")[0].onscroll=function(){jQuery("#exclusiveOfferList").length>0&&fnSetExclusiveOffer()};jQuery(".faq-in-data-div").on("click",".faqFeedbackSubmitAction",function(){try{jQuery(".faqFormSectionDiv").show();jQuery("#faqThanksMessageYesPopup").hide();jQuery("#err_faq_feedback_message").html("");jQuery("#btnFaqSend").text("Sending..");var t=jQuery(this).text().toLocaleLowerCase().trim(),i=t=="yes"?"yes":jQuery("#faqTextArea").val(),r=jQuery(this).closest("li.item").data("trackingid"),u=jQuery(this).closest("li.item").find(".field-heading").html().trim(),n=new FormData;t=="yes"&&ResetSubmitFaqFeedbackForm();n.append("feedbackMsg",i);n.append("faqid",r);n.append("faqName",u);jQuery.ajax({type:"POST",url:"/handlers/bob/countrywebsites/india/faq-feedback.ashx",data:n,processData:!1,contentType:!1,success:function(n){n=JSON.parse(n);n.status?t!="yes"&&(jQuery(".faqFormSectionDiv").hide(),jQuery("#faqThanksMessageYesPopup").show(),jQuery("#faqTextArea").val("")):(jQuery("#err_faq_feedback_message").html(n.errorList[0].error_message.trim()),jQuery("#btnFaqSend").text("Send"))}})}catch(f){console.log("Faq Feedback Excemption"+f);jQuery("#btnFaqSend").text("Send")}});jQuery(".faq-in-data-div").on("click",".resetFaqFeedbackFormAction",function(){ResetSubmitFaqFeedbackForm()});jQuery("#txtMobile").on("change",function(){var n=jQuery("#txtMobile").val();if(/^\d*(?:\.\d{1,2})?$/.test(n)){if(n.length!=10)return alert("Please put 10  digit mobile number"),jQuery("#txtMobile").val(""),jQuery("#txtMobile").focus(),!1}else return alert("Not a valid number"),jQuery("#txtMobile").val(""),jQuery("#txtMobile").focus(),!1});jQuery("#captcharefresh").on("click",function(){fnRefreshCaptcha()});jQuery(".copy_text").click(function(n){n.preventDefault();var t=jQuery(this).attr("href");document.addEventListener("copy",function(n){n.clipboardData.setData("text/plain",t);n.preventDefault()},!0);document.execCommand("copy");alert("copied text: "+t)});jQuery("#btnBankingBeyondSubmit").on("click",function(){jQuery(".errorMessage").html("");document.getElementById("hdn_utm_source").value=getParameterValue("utm_source");document.getElementById("hdn_utm_medium").value=getParameterValue("utm_medium");document.getElementById("hdn_utm_campaign").value=getParameterValue("utm_campaign");document.getElementById("hdn_utm_term").value=getParameterValue("utm_term");document.getElementById("hdn_utm_content").value=getParameterValue("utm_content");var n=new FormData(jQuery("#bankingbeyondtomorrow")[0]);jQuery("#usertype").val("bb-tomorrow");jQuery.ajax({url:"/handlers/bob/countrywebsites/india/banking-beyond-tomorrow.ashx",type:"post",data:n,dataType:"jsonp",processData:!1,contentType:!1,success:function(n){if(n=JSON.parse(n),n.errorList==null)jQuery("#bankingbeyondtomorrow")[0].reset(),jQuery("#formstart").hide(),jQuery("#successMsg").show(),jQuery("#successMsg").
34css("color","green"),jQuery("#successMsg").css("font-size","15px"),jQuery("#successMsg").css("font-weight","bold"),jQuery("html, body").animate({scrollTop:0},"slow");else for(var t=0;t<n.errorList.length;t++)jQuery("#err_"+n.errorList[t].error_field).html(n.errorList[t].error_message),jQuery("#"+n.errorList[0].error_field).val(null),jQuery("#"+n.errorList[0].error_field).focus()},error:function(){alert("There seems to be an issue.  Please try again after some time.")}})});typeof jQuery("#institutionType")[0]!="undefined"&&jQuery("#institutionType")[0].addEventListener("click",()=>{function n(){var n=jQuery("#institutionType li.active").length==0?"":jQuery("#institutionType li.active").attr("value");n=="any other"?jQuery("#institutionTypeothers").prop("disabled",!1):(jQuery("#institutionTypeothers").prop("disabled",!0),jQuery("#institutionTypeothers").val(""))}setTimeout(n,1e3)});typeof jQuery("#establishmentType")[0]!="undefined"&&jQuery("#establishmentType")[0].addEventListener("click",()=>{function n(){var n=jQuery("#establishmentType li.active").length==0?"":jQuery("#establishmentType li.active").attr("value");n=="Others"?jQuery("#otherEstablishment").prop("disabled",!1):(jQuery("#otherEstablishment").prop("disabled",!0),jQuery("#otherEstablishment").val(""))}setTimeout(n,1e3)});jQuery(function(){fnSwitcLanguage()});jQuery(".used-coupon-code-div .copyDiv").click(function(){jQuery(".input-field-coupon").select();document.execCommand("copy");jQuery(".used-coupon-code-div .copy").html("Code Copied")});jQuery(document).ready(function(){var n=jQuery(window).width(),t=jQuery(window).height();jQuery(".footer-popuplar-searches .main-popular-acco>span").on("click",function(){jQuery(this).parents(".main-popular-acco").hasClass("active")?(jQuery(this).parents(".main-popular-acco").removeClass("active"),jQuery(this).next(".main-popuplar-acco-content").slideUp()):(jQuery(this).parents(".main-popular-acco").addClass("active"),jQuery(this).next(".main-popuplar-acco-content").slideDown())});jQuery(".footer-popuplar-searches .inner-popular-content>span").on("click",function(){jQuery(this).parents(".inner-popular-content").hasClass("active")?(jQuery(this).parents(".inner-popular-content").removeClass("active"),jQuery(this).next(".inner-popular-acco-content").slideUp()):(jQuery(this).parents(".main-popuplar-acco-content").find(".inner-popular-content").removeClass("active"),jQuery(this).parents(".main-popuplar-acco-content").find(".inner-popular-acco-content").slideUp(),jQuery(this).parents(".inner-popular-content").addClass("active"),jQuery(this).next(".inner-popular-acco-content").slideDown())});n<1025&&jQuery(".footer-popuplar-searches .inner-popular-content:first-child>span").click()});var glblBRLLR=7.9,glblMCLR=8.9,glblSP=.25,glblBR=9.45,glblMINIntOnHL=6.75,glblMAXIntOnHL=8.2,glblFD=4.9,glblNSC_KVP=8,glblNRE=8.5,glblDashNA="-",glblCONHL=0,glblCONCL=0;jQuery(function(){setTimeout(function(){jQuery("span[data-rc]").each(function(){try{var i=jQuery(this).text(),n=jQuery(this).data("rc");n.decision=="from-to"?typeof glblCurrentLanguage!="undefined"&&glblCurrentLanguage=="hi-in"?jQuery(this).text(gbllFnReplaceRatesAndChargesVariables(n.from)+" "+glblGetStaticValuesByKeyName("From")+" "+gbllFnReplaceRatesAndChargesVariables(n.to)+" "+glblGetStaticValuesByKeyName("to")):jQuery(this).text(glblGetStaticValuesByKeyName("From")+" "+gbllFnReplaceRatesAndChargesVariables(n.from)+" "+glblGetStaticValuesByKeyName("to")+" "+gbllFnReplaceRatesAndChargesVariables(n.to)):n.decision=="or"?jQuery(this).text(gbllFnReplaceRatesAndChargesVariables(n.from)+" "+glblGetStaticValuesByKeyName("or")+" "+gbllFnReplaceRatesAndChargesVariables(n.to)):jQuery(this).text(gbllFnReplaceRatesAndChargesVariables(n.data))}catch(t){console.log("Error:"+jQuery(this).index()+"exx"+t)}})},300)});prevArrow='<svg class="prev-arrow" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.prev-arrow .a,.prev-arrow .d{fill:#FF5C34;}.prev-arrow .a{stroke:rgba(242,101,35,0.5);}.prev-arrow .b{fill:#fff;}.prev-arrow .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
345.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>';nextArrow='<svg class="next-arrow" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.next-arrow .a,.next-arrow .d{fill:#FF5C34;}.next-arrow .a{stroke:rgba(242,101,35,0.5);}.next-arrow .b{fill:#fff;}.next-arrow .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>';jQuery(".fobw-slider").on("click",".slick-slide",function(){var t=jQuery(this).closest(".fobw-slider"),i=jQuery(this).data("slick-index"),n=i+1;n<0&&(n=jQuery(t).slick("getSlick").slideCount-3);jQuery(t).slick("slickGoTo",n)});fobwSliderWhatsNewSection();phoneSliderWhatsNewSection();leftBannerSliderWhatsNewSection();glblShareComponentIsGlobalPageShare=!0;glblSharePlatformFound=!1;jQuery(function(){fnShareComponentInit()});jQuery(function(){fnGlblSetRemainingTime();setTimeout(function(){lastUpdate()},800)});
35/*!
36 * ApexCharts v3.27.1
37 * (c) 2018-2021 Juned Chhipa
38 * Released under the MIT License.
39 */
40!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).ApexCharts=t()}(this,function(){"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function i(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function dt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function r(n,t,i){return t&&dt(n.prototype,t),i&&dt(n,i),n}function d(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function gt(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function u(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?gt(Object(i),!0).forEach(function(t){d(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):gt(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function g(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&ni(n,t)}function st(n){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function ni(n,t){return(ni=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function yi(n,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function nt(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=st(n),u;return t?(u=st(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),yi(this,i)}}function c(n){return function(n){if(Array.isArray(n))return ht(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(n){if("string"==typeof n)return ht(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return("Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i)?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ht(n,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}function ht(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}var n=function(){function n(){i(this,n)}return r(n,[{key:"shadeRGBColor",value:function(n,t){var i=t.split(","),r=n<0?0:255,u=n<0?-1*n:n,f=parseInt(i[0].slice(4),10),e=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((r-f)*u)+f)+","+(Math.round((r-e)*u)+e)+","+(Math.round((r-o
40)*u)+o)+")"}},{key:"shadeHexColor",value:function(n,t){var i=parseInt(t.slice(1),16),r=n<0?0:255,u=n<0?-1*n:n,f=i>>16,e=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((r-f)*u)+f)+256*(Math.round((r-e)*u)+e)+(Math.round((r-o)*u)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,i){return n.isColorHex(i)?this.shadeHexColor(t,i):this.shadeRGBColor(t,i)}}],[{key:"bind",value:function(n,t){return function(){return n.apply(t,arguments)}}},{key:"isObject",value:function(n){return n&&"object"===e(n)&&!Array.isArray(n)&&null!=n}},{key:"listToArray",value:function(n){for(var i=[],t=0;t<n.length;t++)i[t]=n[t];return i}},{key:"extend",value:function(n,t){var r=this,i;return"function"!=typeof Object.assign&&(Object.assign=function(n){var u,i,t,r;if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],null!=t)for(r in t)t.hasOwnProperty(r)&&(u[r]=t[r]);return u}),i=Object.assign({},n),this.isObject(n)&&this.isObject(t)&&Object.keys(t).forEach(function(u){r.isObject(t[u])&&u in n?i[u]=r.extend(n[u],t[u]):Object.assign(i,d({},u,t[u]))}),i}},{key:"extendArray",value:function(t,i){var r=[];return t.map(function(t){r.push(n.extend(i,t))}),t=r}},{key:"monthMod",value:function(n){return n%12}},{key:"clone",value:function(n){var r,t,u,i;if("[object Array]"===Object.prototype.toString.call(n)){for(r=[],t=0;t<n.length;t++)r[t]=this.clone(n[t]);return r}if("[object Null]"===Object.prototype.toString.call(n))return null;if("[object Date]"===Object.prototype.toString.call(n))return n;if("object"===e(n)){u={};for(i in n)n.hasOwnProperty(i)&&(u[i]=this.clone(n[i]));return u}return n}},{key:"log10",value:function(n){return Math.log(n)/Math.LN10}},{key:"roundToBase10",value:function(n){return Math.pow(10,Math.floor(Math.log10(n)))}},{key:"roundToBase",value:function(n,t){return Math.pow(t,Math.floor(Math.log(n)/Math.log(t)))}},{key:"parseNumber",value:function(n){return null===n?n:parseFloat(n)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(n){var i=String(n).split(/[eE]/);if(1===i.length)return i[0];var t="",f=n<0?"-":"",u=i[0].replace(".",""),r=Number(i[1])+1;if(r<0){for(t=f+"0.";r++;)t+="0";return t+u.replace(/^-/,"")}for(r-=u.length;r--;)t+="0";return u+t}},{key:"getDimensions",value:function(n){var t=getComputedStyle(n,null),i=n.clientHeight,r=n.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(n){var t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:n.clientWidth,height:n.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(n){return n.reduce(function(n,t){return Array.isArray(t)&&(t=t.reduce(function(n,t){return n.length>t.length?n:t})),n.length>t.length?n:t},0)}},{key:"hexToRgba",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6,n,t;for("#"!==i.substring(0,1)&&(i="#999999"),n=i.replace("#",""),n=n.match(new RegExp("(.{"+n.length/3+"})","g")),t=0;t<n.length;t++)n[t]=parseInt(1===n[t].length?n[t]+n[t]:n[t],16);return void 0!==r&&n.push(r),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(n){return parseFloat(n.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(n){return(n=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===n.length?"#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(n)}},{key:"getPolygonPos",value:function(n,t){for(var r,u=[],f=2*Math.PI/t,i=0;i<t;i++)r={},r.x=n*Math.sin(i*f),r.y=-n*Math.cos(i*f),u.push(r);return u}},{key:"polarToCartesian",value:function(n,t,i,r){var u=(r-90)*Math.PI/180;return{x:n+i*Math.cos(u),y:t+i*Math.sin(u)}}},{key:"escapeString",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=n.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(n){return n<0?0:n}},{key:"moveIndexInArray",value:function(n,t,i){if(i>=n.length)for(var r=i-n.length+1;r--;)n.push(void 0);return n.splice(i,0,n.splice(t,1)[0]),n}},{key:"extractNumber",value:function(n){return parseFloat(n.replace(/[^\d.]*/g,""))}}
40,{key:"findAncestor",value:function(n,t){for(;(n=n.parentElement)&&!n.classList.contains(t););return n}},{key:"setELstyles",value:function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n.style.key=t[i])}},{key:"isNumber",value:function(n){return!isNaN(n)&&parseFloat(Number(n))===n&&!isNaN(parseInt(n,10))}},{key:"isFloat",value:function(n){return Number(n)===n&&n%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):n.indexOf("Trident/")>0?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0&&parseInt(n.substring(t+5,n.indexOf(".",t)),10))}},{key:"sanitizeDom",value:function(n){return n.replace(/\&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;")}}]),n}(),p=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w;this.setEasingFunctions()}return r(t,[{key:"setEasingFunctions",value:function(){var n;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":n="-";break;case"easein":n="<";break;case"easeout":n=">";break;case"easeinout":n="<>";break;case"swing":n=function(n){var t=1.70158;return(n-=1)*n*((t+1)*n+t)+1};break;case"bounce":n=function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375};break;case"elastic":n=function(n){return n===!!n?n:Math.pow(2,-10*n)*Math.sin((n-.075)*2*Math.PI/.3)+1};break;default:n="<>"}this.w.globals.easing=n}}},{key:"animateLine",value:function(n,t,i,r){n.attr(t).animate(r).attr(i)}},{key:"animateMarker",value:function(n,t,i,r,u,f){t||(t=0);n.attr({r:t,width:t,height:t}).animate(r,u).attr({r:i,width:i.width,height:i.height}).afterAll(function(){f()})}},{key:"animateCircle",value:function(n,t,i,r,u){n.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(r,u).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(n,t,i,r,u){n.attr(t).animate(r).attr(i).afterAll(function(){return u()})}},{key:"animatePathsGradually",value:function(n){var r=n.el,u=n.realIndex,f=n.j,e=n.fill,o=n.pathFrom,s=n.pathTo,h=n.speed,c=n.delay,t=this.w,i=0;t.config.chart.animations.animateGradually.enabled&&(i=t.config.chart.animations.animateGradually.delay);t.config.chart.animations.dynamicAnimation.enabled&&t.globals.dataChanged&&"bar"!==t.config.chart.type&&(i=0);this.morphSVG(r,u,f,"line"!==t.config.chart.type||t.globals.comboCharts?e:"stroke",o,s,h,c*i)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(n){n.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(n){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:n,w:t}))}},{key:"morphSVG",value:function(t,i,r,u,f,e,o,s){var c=this,h=this.w,l;f||(f=t.attr("pathFrom"));e||(e=t.attr("pathTo"));l=function(){return"radar"===h.config.chart.type&&(o=1),"M 0 ".concat(h.globals.gridHeight)};(!f||f.indexOf("undefined")>-1||f.indexOf("NaN")>-1)&&(f=l());(!e||e.indexOf("undefined")>-1||e.indexOf("NaN")>-1)&&(e=l());h.globals.shouldAnimate||(o=1);t.plot(f).animate(1,h.globals.easing,s).plot(f).animate(o,h.globals.easing,s).plot(e).afterAll(function(){n.isNumber(r)?r===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&c.animationCompleted(t):"none"!==u&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&i===h.globals.series.length-1||h.globals.comboCharts)&&c.animationCompleted(t);c.showDelayedElements()})}}]),t}(),o=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w}return r(t,[{key:"getDefaultFilter",value:function(n,t){var i=this.w;n.unfilter(!0);(new window.SVG.Filter).size("120%","180%","-5%","-40%");"none"!==i.config.states.normal.filter?this.applyFilter(n,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(n,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(n,t){var i=this.w;i.config.chart.dropShadow.enabled&&!n.node.classList.contains("apexcharts-marker")&&this.dropShadow(n,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(n,t,i){var r=this,u=this.w,f=i.intensity;n.unfilter(!0);new window.SVG.Filter;n.filter(function(n){var i=u.config.chart.dropShadow;(i.enabled?r.addShadow(n,t,i):n).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:f}})});n.filterer.node.setAttribute("filterUnits","userSpaceOnUse");this._scaleFilterSize(n.filterer.node)}},{key:"addDarkenFilter",value:function(n,t,i){var r=this,u=this.w,f=i.intensity;n.unfilter(!0);new window.SVG.Filter;n.filter(function(n){var i=u.config.chart.dropShadow;(i.enabled?r.addShadow(n,t,i):n).componentTransfer({rgb:{type:"linear",slope:f}})});n.filterer.node.setAttribute("filterUnits","userSpaceOnUse");this._scaleFilterSize(n.filterer.node)}},{key:"applyFilter",value:function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(n,t);break;case"lighten":this.addLightenFilter(n,t,{intensity:r});break;case"darken":this.addDarkenFilter(n,t,{intensity:r})}}},{key:"addShadow",value:function(n,t,i){var u=i.blur,f=i.top,e=i.left,r=i.color,o=i.opacity,s=n.flood(Array.isArray(r)?r[t]:r,o).composite(n.sourceAlpha,"in").offset(e,f).gaussianBlur(u).merge
40(n.source);return n.blend(n.source,s)}},{key:"dropShadow",value:function(t,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=i.top,f=i.left,e=i.blur,r=i.color,o=i.opacity,h=i.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),n.isIE()&&"radialBar"===c.config.chart.type||(r=Array.isArray(r)?r[s]:r,t.filter(function(t){var i=null;i=n.isSafari()||n.isFirefox()||n.isIE()?t.flood(r,o).composite(t.sourceAlpha,"in").offset(f,u).gaussianBlur(e):t.flood(r,o).composite(t.sourceAlpha,"in").offset(f,u).gaussianBlur(e).merge(t.source);t.blend(t.source,i)}),h||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(n,t,i){var u=this.w,r;void 0!==u.globals.selectedDataPoints[t]&&u.globals.selectedDataPoints[t].indexOf(i)>-1&&(n.node.setAttribute("selected",!0),r=u.config.states.active.filter,"none"!==r&&this.applyFilter(n,t,r.type,r.value))}},{key:"_scaleFilterSize",value:function(n){!function(t){for(var i in t)t.hasOwnProperty(i)&&n.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),t=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w}return r(t,[{key:"drawLine",value:function(n,t,i,r){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,e=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=this.w;return o.globals.dom.Paper.line().attr({x1:n,y1:t,x2:i,y2:r,stroke:u,"stroke-dasharray":f,"stroke-width":e})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,l=this.w,n=l.globals.dom.Paper.rect();return n.attr({x:e,y:o,width:t>0?t:0,height:i>0?i:0,rx:r,ry:r,opacity:h,"stroke-width":null!==u?u:0,stroke:null!==f?f:"none","stroke-dasharray":c}),n.node.setAttribute("fill",s),n}},{key:"drawPolygon",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",u=this.w;return u.globals.dom.Paper.polygon(n).attr({fill:r,stroke:t,"stroke-width":i})}},{key:"drawCircle",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.w,t;return n<0&&(n=0),t=r.globals.dom.Paper.circle(2*n),null!==i&&t.attr(i),t}},{key:"drawPath",value:function(n){var u=n.d,t=void 0===u?"":u,f=n.stroke,l=void 0===f?"#a8a8a8":f,e=n.strokeWidth,a=void 0===e?1:e,v=n.fill,o=n.fillOpacity,y=void 0===o?1:o,s=n.strokeOpacity,p=void 0===s?1:s,w=n.classes,h=n.strokeLinecap,i=void 0===h?null:h,c=n.strokeDashArray,b=void 0===c?0:c,r=this.w;return null===i&&(i=r.config.stroke.lineCap),(t.indexOf("undefined")>-1||t.indexOf("NaN")>-1)&&(t="M 0 ".concat(r.globals.gridHeight)),r.globals.dom.Paper.path(t).attr({fill:v,"fill-opacity":y,stroke:l,"stroke-opacity":p,"stroke-linecap":i,"stroke-width":a,"stroke-dasharray":b,"class":w})}},{key:"group",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this.w,t=i.globals.dom.Paper.group();return null!==n&&t.attr(n),t}},{key:"move",value:function(n,t){return["M",n,t].join(" ")}},{key:"line",value:function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return null===r?i=["L",n,t].join(" "):"H"===r?i=["H",n].join(" "):"V"===r&&(i=["V",t].join(" ")),i}},{key:"curve",value:function(n,t,i,r,u,f){return["C",n,t,i,r,u,f].join(" ")}},{key:"quadraticCurve",value:function(n,t,i,r){return["Q",n,t,i,r].join(" ")}},{key:"arc",value:function(n,t,i,r,u,f,e){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],o="A";return s&&(o="a"),[o,n,t,i,r,u,f,e].join(" ")}},{key:"renderPaths",value:function(n){var f,rt=n.j,r=n.realIndex,e=n.pathFrom,s=n.pathTo,ut=n.stroke,y=n.strokeWidth,ft=n.strokeLinecap,w=n.fill,et=n.animationDelay,ot=n.initialSpeed,st=n.dataChangeSpeed,ht=n.className,b=n.shouldClipToGrid,ct=void 0===b||b,k=n.bindEventsOnPaths,lt=void 0===k||k,d=n.drawShadow,at=void 0===d||d,t=this.w,g=new o(this.ctx),h=new p(this.ctx),c=this.w.config.chart.animations.enabled,nt=c&&this.w.config.chart.animations.dynamicAnimation.enabled,tt=!!(c&&!t.globals.resized||nt&&t.globals.dataChanged&&t.globals.shouldAnimate),l,a,i,it,v;return tt?f=e:(f=s,t.globals.animationEnded=!0),l=t.config.stroke.dashArray,a=0,a=Array.isArray(l)?l[r]:t.config.stroke.dashArray,i=this.drawPath({d:f,stroke:ut,strokeWidth:y,fill:w,fillOpacity:1,classes:ht,strokeLinecap:ft,strokeDashArray:a}),(i.attr("index",r),ct&&i.attr({"clip-path":"url(#gridRectMask".concat(t.globals.cuid,")")}),"none"!==t.config.states.normal.filter.type)?g.getDefaultFilter(i,r):t.config.chart.dropShadow.enabled&&at&&(!t.config.chart.dropShadow.enabledOnSeries||t.config.chart.dropShadow.enabledOnSeries&&-1!==t.config.chart.dropShadow.enabledOnSeries.indexOf(r))&&(it=t.config.chart.dropShadow,g.dropShadow(i,it,r)),lt&&(i.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,i)),i.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,i)),i.node.addEventListener("mousedown",this.pathMouseDown.bind(this,i))),i.attr({pathTo:s,pathFrom:e}),v={el:i,j:rt,realIndex:r,pathFrom:e,pathTo:s,fill:w,strokeWidth:y,delay:et},!c||t.globals.resized||t.globals.dataChanged?!t.globals.resized&&t.globals.dataChanged||h.showDelayedElements():h.animatePathsGradually(u(u({},v),{},{speed:ot})),t.globals.dataChanged&&nt&&tt&&h.animatePathsGradually(u(u({},v),{},{speed:st})),i}},{key:"drawPattern",value:function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,f=this.w;return f.globals.dom.Paper.pattern(t,i,function(f){"horizontalLines"===n?f.line(0,0,i,0).stroke({color:r,width:u+1}
40):"verticalLines"===n?f.line(0,0,0,t).stroke({color:r,width:u+1}):"slantedLines"===n?f.line(0,0,t,i).stroke({color:r,width:u}):"squares"===n?f.rect(t,i).fill("none").stroke({color:r,width:u}):"circles"===n&&f.circle(t).fill("none").stroke({color:r,width:u})})}},{key:"drawGradient",value:function(t,i,r,u,f){var s,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,e=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,o=this.w,c,w,b;i.length<9&&0===i.indexOf("#")&&(i=n.hexToRgba(i,u));r.length<9&&0===r.indexOf("#")&&(r=n.hexToRgba(r,f));var v=0,y=1,p=1,l=null;return null!==e&&(v=void 0!==e[0]?e[0]/100:0,y=void 0!==e[1]?e[1]/100:1,p=void 0!==e[2]?e[2]/100:1,l=void 0!==e[3]?e[3]/100:null),c=!("donut"!==o.config.chart.type&&"pie"!==o.config.chart.type&&"polarArea"!==o.config.chart.type&&"bubble"!==o.config.chart.type),(s=null===h||0===h.length?o.globals.dom.Paper.gradient(c?"radial":"linear",function(n){n.at(v,i,u);n.at(y,r,f);n.at(p,r,f);null!==l&&n.at(l,i,u)}):o.globals.dom.Paper.gradient(c?"radial":"linear",function(n){(Array.isArray(h[a])?h[a]:h).forEach(function(t){n.at(t.offset/100,t.color,t.opacity)})}),c)?(w=o.globals.gridWidth/2,b=o.globals.gridHeight/2,"bubble"!==o.config.chart.type?s.attr({gradientUnits:"userSpaceOnUse",cx:w,cy:b,r:k}):s.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})):"vertical"===t?s.from(0,0).to(0,1):"diagonal"===t?s.from(0,0).to(1,1):"horizontal"===t?s.from(0,1).to(1,1):"diagonal2"===t&&s.from(1,0).to(0,1),s}},{key:"drawText",value:function(n){var r,c=n.x,l=n.y,t=n.text,e=n.textAnchor,a=n.fontSize,u=n.fontFamily,o=n.fontWeight,f=n.foreColor,v=n.opacity,s=n.cssClass,y=void 0===s?"":s,h=n.isPlainText,p=void 0===h||h,i=this.w;return void 0===t&&(t=""),e||(e="start"),f&&f.length||(f=i.config.chart.foreColor),u=u||i.config.chart.fontFamily,o=o||"regular",(r=Array.isArray(t)?i.globals.dom.Paper.text(function(n){for(var i=0;i<t.length;i++)0===i?n.tspan(t[i]):n.tspan(t[i]).newLine()}):p?i.globals.dom.Paper.plain(t):i.globals.dom.Paper.text(function(n){return n.tspan(t)})).attr({x:c,y:l,"text-anchor":e,"dominant-baseline":"auto","font-size":a,"font-family":u,"font-weight":o,fill:f,"class":"apexcharts-text "+y}),r.node.style.fontFamily=u,r.node.style.opacity=v,r}},{key:"drawMarker",value:function(t,i,r){var u,e,o,f,s;return t=t||0,u=r.pSize||0,e=null,"square"===r.shape||"rect"===r.shape?(o=void 0===r.pRadius?u/2:r.pRadius,null!==i&&u||(u=0,o=0),f=1.2*u+o,s=this.drawRect(f,f,f,f,o),s.attr({x:t-f/2,y:i-f/2,cx:t,cy:i,"class":r.class?r.class:"",fill:r.pointFillColor,"fill-opacity":r.pointFillOpacity?r.pointFillOpacity:1,stroke:r.pointStrokeColor,"stroke-width":r.pointStrokeWidth?r.pointStrokeWidth:0,"stroke-opacity":r.pointStrokeOpacity?r.pointStrokeOpacity:1}),e=s):"circle"!==r.shape&&r.shape||(n.isNumber(i)||(u=0,i=0),e=this.drawCircle(u,{cx:t,cy:i,"class":r.class?r.class:"",stroke:r.pointStrokeColor,fill:r.pointFillColor,"fill-opacity":r.pointFillOpacity?r.pointFillOpacity:1,"stroke-width":r.pointStrokeWidth?r.pointStrokeWidth:0,"stroke-opacity":r.pointStrokeOpacity?r.pointStrokeOpacity:1})),e}},{key:"pathMouseEnter",value:function(n,t){var i=this.w,e=new o(this.ctx),r=parseInt(n.node.getAttribute("index"),10),f=parseInt(n.node.getAttribute("j"),10),u;("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:f,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:f,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===n.node.getAttribute("selected")||"none"===i.config.states.hover.filter.type||"none"===i.config.states.active.filter.type||i.globals.isTouchDevice)||(u=i.config.states.hover.filter,e.applyFilter(n,r,u.type,u.value))}},{key:"pathMouseLeave",value:function(n,t){var i=this.w,f=new o(this.ctx),r=parseInt(n.node.getAttribute("index"),10),u=parseInt(n.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:u,w:i});this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:u,w:i}]);"none"!==i.config.states.active.filter.type&&"true"===n.node.getAttribute("selected")||"none"!==i.config.states.hover.f
40ilter.type&&f.getDefaultFilter(n,r)}},{key:"pathMouseDown",value:function(n,t){var i=this.w,e=new o(this.ctx),r=parseInt(n.node.getAttribute("index"),10),u=parseInt(n.node.getAttribute("j"),10),s="false",h,f;if("true"===n.node.getAttribute("selected"))(n.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(u)>-1)&&(h=i.globals.selectedDataPoints[r].indexOf(u),i.globals.selectedDataPoints[r].splice(h,1));else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,a=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(n){Array.prototype.forEach.call(n,function(n){n.node.setAttribute("selected","false");e.getDefaultFilter(n,r)})};c(l);c(a)}n.node.setAttribute("selected","true");s="true";void 0===i.globals.selectedDataPoints[r]&&(i.globals.selectedDataPoints[r]=[]);i.globals.selectedDataPoints[r].push(u)}"true"===s?(f=i.config.states.active.filter,"none"!==f&&e.applyFilter(n,r,f.type,f.value)):"none"!==i.config.states.active.filter.type&&e.getDefaultFilter(n,r);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:u,w:i});t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:u,w:i}])}},{key:"rotateAroundCenter",value:function(n){var t=n.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(n,t,i,r){var e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w,u=this.drawText({x:-200,y:-200,text:n,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0}),f;return r&&u.attr("transform",r),o.globals.dom.Paper.add(u),f=u.bbox(),e||(f=u.node.getBoundingClientRect()),u.remove(),{width:f.width,height:f.height}}},{key:"placeTextWithEllipsis",value:function(n,t,i){if("function"==typeof n.getComputedTextLength&&(n.textContent=t,t.length>0&&n.getComputedTextLength()>=i/1.1)){for(var r=t.length-3;r>0;r-=3)if(n.getSubStringLength(0,r)<=i/1.1)return void(n.textContent=t.substring(0,r)+"...");n.textContent="."}}}],[{key:"setAttrs",value:function(n,t){for(var i in t)t.hasOwnProperty(i)&&n.setAttribute(i,t[i])}}]),t}(),pi=function(){function n(t){i(this,n);this.w=t.w;this.annoCtx=t}return r(n,[{key:"setOrientations",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=this.w,u,t,i;if("vertical"===n.label.orientation&&(u=null!==r?r:0,t=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(u,"']")),null!==t)){i=t.getBoundingClientRect();t.setAttribute("x",parseFloat(t.getAttribute("x"))-i.height+4);"top"===n.label.position?t.setAttribute("y",parseFloat(t.getAttribute("y"))+i.width):t.setAttribute("y",parseFloat(t.getAttribute("y"))-i.width);var f=this.annoCtx.graphics.rotateAroundCenter(t),o=f.x,s=f.y;t.setAttribute("transform","rotate(-90 ".concat(o," ").concat(s,")"))}}},{key:"addBackgroundToAnno",value:function(n,t){var f=this.w;if(!n||!t.label.text||t.label.text&&!t.label.text.trim())return null;var e=f.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=n.getBoundingClientRect(),r=t.label.style.padding.left,o=t.label.style.padding.right,u=t.label.style.padding.top,s=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(u=t.label.style.padding.left,s=t.label.style.padding.right,r=t.label.style.padding.top,o=t.label.style.padding.bottom);var c=i.left-e.left-r,l=i.top-e.top-u,h=this.annoCtx.graphics.drawRect(c-f.globals.barPadForNumericAxis,l,i.width+r+o,i.height+u+s,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&h.node.classList.add(t.id),h}},{key:"annotationsBackground",value:function(){var i=this,n=this.w,t=function(t,r,u){var f=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(u,"-annotations .apexcharts-").concat(u,"-annotation-label[rel='").concat(r,"']")),o,e;
40f&&(o=f.parentNode,e=i.addBackgroundToAnno(f,t),e&&o.insertBefore(e.node,f))};n.config.annotations.xaxis.map(function(n,i){t(n,i,"xaxis")});n.config.annotations.yaxis.map(function(n,i){t(n,i,"yaxis")});n.config.annotations.points.map(function(n,i){t(n,i,"point")})}},{key:"getStringX",value:function(n){var t=this.w,r=n,u,i;return t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(n=t.globals.categoryLabels.indexOf(n)+1),u=t.globals.labels.indexOf(n),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(u+1)+")"),i&&(r=parseFloat(i.getAttribute("x"))),r}}]),n}(),wi=function(){function t(n){i(this,t);this.w=n.w;this.annoCtx=n;this.invertAxis=this.annoCtx.invertAxis}return r(t,[{key:"addXaxisAnnotation",value:function(t,i,r){var u=this.w,a=this.invertAxis?u.globals.minY:u.globals.minX,v=this.invertAxis?u.globals.maxY:u.globals.maxX,s=this.invertAxis?u.globals.yRange[0]:u.globals.xRange,f=(t.x-a)/(s/u.globals.gridWidth),h,c,l,e,y,o;if(this.annoCtx.inversedReversedAxis&&(f=(v-t.x)/(s/u.globals.gridWidth)),h=t.label.text,"category"!==u.config.xaxis.type&&!u.config.xaxis.convertedCatToNumeric||this.invertAxis||u.globals.dataFormatXNumeric||(f=this.annoCtx.helpers.getStringX(t.x)),c=t.strokeDashArray,n.isNumber(f)){null===t.x2||void 0===t.x2?(l=this.annoCtx.graphics.drawLine(f+t.offsetX,0+t.offsetY,f+t.offsetX,u.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth),i.appendChild(l.node),t.id&&l.node.classList.add(t.id)):(e=(t.x2-a)/(s/u.globals.gridWidth),(this.annoCtx.inversedReversedAxis&&(e=(v-t.x2)/(s/u.globals.gridWidth)),"category"!==u.config.xaxis.type&&!u.config.xaxis.convertedCatToNumeric||this.invertAxis||u.globals.dataFormatXNumeric||(e=this.annoCtx.helpers.getStringX(t.x2)),e<f)&&(y=f,f=e,e=y),o=this.annoCtx.graphics.drawRect(f+t.offsetX,0+t.offsetY,e-f,u.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,c),o.node.classList.add("apexcharts-annotation-rect"),o.attr("clip-path","url(#gridRectMask".concat(u.globals.cuid,")")),i.appendChild(o.node),t.id&&o.node.classList.add(t.id));var b="top"===t.label.position?4:u.globals.gridHeight,p=this.annoCtx.graphics.getTextRects(h,parseFloat(t.label.style.fontSize)),w=this.annoCtx.graphics.drawText({x:f+t.label.offsetX,y:b+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?p.width/2-12:-p.width/2:0),text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});w.attr({rel:r});i.appendChild(w.node);this.annoCtx.helpers.setOrientations(t,r)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,i=this.w,n=this.annoCtx.graphics.group({"class":"apexcharts-xaxis-annotations"});return i.config.annotations.xaxis.map(function(i,r){t.addXaxisAnnotation(i,n.node,r)}),n}}]),t}(),f=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"getStackedSeriesTotals",value:function(){var n=this.w,r=[],t,u,i;if(0===n.globals.series.length)return r;for(t=0;t<n.globals.series[n.globals.maxValsInArrayIndex].length;t++){for(u=0,i=0;i<n.globals.series.length;i++)void 0!==n.globals.series[i][t]&&(u+=n.globals.series[i][t]);r.push(u)}return n.globals.stackedSeriesTotals=r,r}},{key:"getSeriesTotalByIndex",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===n?this.w.config.series.reduce(function(n,t){return n+t},0):this.w.globals.series[n].reduce(function(n,t){return n+t},0)}},{key:"isSeriesNull",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===n?this.w.config.series.filter(function(n){return null!==n}):this.w.config.series[n].data.filter(function(n){return null!==n})).length}},{key:"seriesHaveSameValues",value:function(n){return this.w.globals.series[n].every(function(n,t,i){return n===i[0]})}},{key:"getCategoryLabels",value:function(n){var t=this.w,i=n.slice();return t.config.xaxis.convertedCatToNumeric&&(i=n.map(function(n){return t.config.xaxis.labels.formatter(n-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var n=this.w;n.globals.maxValsInArrayIndex=n.globals.series.map(function(n){return n.length}).indexOf(Math.max.apply(Math,n.globals.series.map(function(n){return n.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,n=0;return t.globals.markers.size.forEach(function(t){n=Math.max(n,t)}),t.globals.markers.largestSize=n,n}},{key:"getSeriesTotals",value:function(){var n=this.w;n.globals.seriesTotals=n.globals.series.map(function(n){var i=0,t;if(Array.isArray(n))for(t=0;t<n.length;t++)i+=n[t];else i+=n;return i})}},{key:"getSeriesTotalsXRange",value:function(n,t){var i=this.w;return i.globals.series.map(function(r,u){for(var e=0,f=0;f<r.length;f++)i.globals.seriesX[u][f]>n&&i.globals.seriesX[u][f]<t&&(e+=r[f]);return e})}},{key:"getPercentSeries",value:function(){var n=this.w;n.globals.seriesPercent=n.globals.series.map(function(t){var r=[],i,u,f,e;if(Array.isArray(t))for(i=0;i<t.length;i++)u=n.globals.stackedSeriesTotals[i],f=0,u&&(f=100*t[i]/u),r.push(f);else e=100*t/n.globals.seriesTotals.reduce(function(n,t){return n+t},0),r.push(e);return r})}},{key:"getCalculatedRatios",value:function(){var e,o,h,c,n=this.w.globals,t=[],s=0,i=[],l=.1,a=0,r,f,u;if(n.yRange=[],n.isMultipleYAxis)for(r=0;r<n.minYArr.length;r++)n.yRange.push(Math.abs(n.minYArr[r]-n.maxYArr[r])),i.push(0);else n.yRange.push(Math.abs(n.minY-n.maxY));for(n.xRange=Math.abs(n.maxX-n.minX),n.zRange=Math.abs(n.maxZ-n.minZ),f=0;f<n.yRange.length;f++)t.push(n.yRange[f]/n.gridHeight);if(o=n.xRange/n.gridWidth,h=Math.abs(n.initialMaxX-n.initialMinX)/n.gridWidth,e=n.yRange/n.gridWidth,c=n.xRange/n.gridHeight,(s=n.zRange/n.gridHeight*16)||(s=1),n.minY!==Number.MIN_VALUE&&0!==Math.abs(n.minY)&&(n.hasNeg
40s=!0),n.isMultipleYAxis)for(i=[],u=0;u<t.length;u++)i.push(-n.minYArr[u]/t[u]);else i.push(-n.minY/t[0]),n.minY!==Number.MIN_VALUE&&0!==Math.abs(n.minY)&&(l=-n.minY/e,a=n.minX/o);return{yRatio:t,invertedYRatio:e,zRatio:s,xRatio:o,initialXRatio:h,invertedXRatio:c,baseLineInvertedY:l,baseLineY:i,baseLineX:a}}},{key:"getLogSeries",value:function(n){var i=this,t=this.w;return t.globals.seriesLog=n.map(function(n,r){return t.config.yaxis[r]&&t.config.yaxis[r].logarithmic?n.map(function(n){return null===n?null:i.getLogVal(n,r)}):n}),t.globals.invalidLogScale?n:t.globals.seriesLog}},{key:"getLogVal",value:function(n,t){var i=this.w;return(Math.log(n)-Math.log(i.globals.minYArr[t]))/(Math.log(i.globals.maxYArr[t])-Math.log(i.globals.minYArr[t]))}},{key:"getLogYRatios",value:function(n){var r=this,i=this.w,t=this.w.globals;return t.yLogRatio=n.slice(),t.logYRange=t.yRange.map(function(n,u){if(i.config.yaxis[u]&&r.w.config.yaxis[u].logarithmic){var f,e=-Number.MAX_VALUE,o=Number.MIN_VALUE;return t.seriesLog.forEach(function(n,t){n.forEach(function(n){i.config.yaxis[t]&&i.config.yaxis[t].logarithmic&&(e=Math.max(n,e),o=Math.min(n,o))})}),f=Math.pow(t.yRange[u],Math.abs(o-e)/t.yRange[u]),t.yLogRatio[u]=f/t.gridHeight,f}}),t.invalidLogScale?n.slice():t.yLogRatio}}],[{key:"checkComboSeries",value:function(n){var t=!1,i=0,r=0;
40return n.length&&void 0!==n[0].type&&n.forEach(function(n){"bar"!==n.type&&"column"!==n.type&&"candlestick"!==n.type&&"boxPlot"!==n.type||i++;void 0!==n.type&&r++}),r>1&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(n,t,i){return t.yaxis&&(t=n.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=n.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=n.extendXAxisAnnotations(t)),t.annotations.points&&(t=n.extendPointAnnotations(t))),t}}]),n}(),bi=function(){function n(t){i(this,n);this.w=t.w;this.annoCtx=t}return r(n,[{key:"addYaxisAnnotation",value:function(n,t,i){var u,s=this.w,h=n.strokeDashArray,r=this._getY1Y2("y1",n),a=n.label.text,e,c,f,l,o;null===n.y2||void 0===n.y2?(e=this.annoCtx.graphics.drawLine(0+n.offsetX,r+n.offsetY,this._getYAxisAnnotationWidth(n),r+n.offsetY,n.borderColor,h,n.borderWidth),t.appendChild(e.node),n.id&&e.node.classList.add(n.id)):((u=this._getY1Y2("y2",n))>r&&(c=r,r=u,u=c),f=this.annoCtx.graphics.drawRect(0+n.offsetX,u+n.offsetY,this._getYAxisAnnotationWidth(n),r-u,0,n.fillColor,n.opacity,1,n.borderColor,h),f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(f.node),n.id&&f.node.classList.add(n.id));l="right"===n.label.position?s.globals.gridWidth:0;o=this.annoCtx.graphics.drawText({x:l+n.label.offsetX,y:(u||r)+n.label.offsetY-3,text:a,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});o.attr({rel:i});t.appendChild(o.node)}},{key:"_getY1Y2",value:function(n,t){var u,r="y1"===n?t.y:t.y2,i=this.w,e,o,s;return this.annoCtx.invertAxis?(e=i.globals.labels.indexOf(r),i.config.xaxis.convertedCatToNumeric&&(e=i.globals.categoryLabels.indexOf(r)),o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(e+1)+")"),o&&(u=parseFloat(o.getAttribute("y")))):(s=i.config.yaxis[t.yAxisIndex].logarithmic?(r=new f(this.annoCtx.ctx).getLogVal(r,t.yAxisIndex))/i.globals.yLogRatio[t.yAxisIndex]:(r-i.globals.minYArr[t.yAxisIndex])/(i.globals.yRange[t.yAxisIndex]/i.globals.gridHeight),u=i.globals.gridHeight-s,i.config.yaxis[t.yAxisIndex]&&i.config.yaxis[t.yAxisIndex].reversed&&(u=s)),u}},{key:"_getYAxisAnnotationWidth",value:function(n){var t=this.w;return t.globals.gridWidth,(n.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(n.width,10)/100:parseInt(n.width,10))+n.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,i=this.w,n=this.annoCtx.graphics.group({"class":"apexcharts-yaxis-annotations"});return i.config.annotations.yaxis.map(function(i,r){t.addYaxisAnnotation(i,n.node,r)}),n}}]),n}(),ki=function(){function t(n){i(this,t);this.w=n.w;this.annoCtx=n}return r(t,[{key:"addPointAnnotation",value:function(t,i,r){var u=this.w,e=0,s=0,y=0,h,p,c,a,w,tt,it,rt,b,v,k,d;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");h=parseFloat(t.y);"string"==typeof t.x?(p=u.globals.labels.indexOf(t.x),u.config.xaxis.convertedCatToNumeric&&(p=u.globals.categoryLabels.indexOf(t.x)),e=this.annoCtx.helpers.getStringX(t.x),null===t.y&&(h=u.globals.series[t.seriesIndex][p])):e=(t.x-u.globals.minX)/(u.globals.xRange/u.globals.gridWidth);for(var o,g=[],nt=0,l=0;l<=t.seriesIndex;l++)if(c=u.config.yaxis[l].seriesName,c)for(a=l+1;a<=t.seriesIndex;a++)u.config.yaxis[a].seriesName===c&&-1===g.indexOf(c)&&(nt++,g.push(c));u.config.yaxis[t.yAxisIndex].logarithmic?o=(h=new f(this.annoCtx.ctx).getLogVal(h,t.yAxisIndex))/u.globals.yLogRatio[t.yAxisIndex]:(w=t.yAxisIndex+nt,o=(h-u.globals.minYArr[w])/(u.globals.yRange[w]/u.globals.gridHeight));(s=u.globals.gridHeight-o-parseFloat(t.label.style.fontSize)-t.marker.size,y=u.globals.gridHeight-o,u.config.yaxis[t.yAxisIndex]&&u.config.yaxis[t.yAxisIndex].reversed&&(s=o+parseFloat(t.label.style.fontSize)+t.marker.size,y=o),n.isNumber(e))&&(tt={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radiu
40s,"class":"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},it=this.annoCtx.graphics.drawMarker(e+t.marker.offsetX,y+t.marker.offsetY,tt),i.appendChild(it.node),rt=t.label.text?t.label.text:"",b=this.annoCtx.graphics.drawText({x:e+t.label.offsetX,y:s+t.label.offsetY,text:rt,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")}),(b.attr({rel:r}),i.appendChild(b.node),t.customSVG.SVG)&&(v=this.annoCtx.graphics.group({"class":"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass}),v.attr({transform:"translate(".concat(e+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),v.node.innerHTML=t.customSVG.SVG,i.appendChild(v.node)),t.image.path&&(k=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20,this.annoCtx.addImage({x:e+t.image.offsetX-k/2,y:s+t.image.offsetY-d/2,width:k,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"}
40)))}},{key:"drawPointAnnotations",value:function(){var t=this,i=this.w,n=this.annoCtx.graphics.group({"class":"apexcharts-point-annotations"});return i.config.annotations.points.map(function(i,r){t.addPointAnnotation(i,n.node,r)}),n}}]),t}(),ti={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},v=function(){function n(){i(this,n);this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}};this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}};this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}};this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}};this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return r(n,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[ti],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},"export":{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(n){return new Date(n).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}}
vendor: 6,237 bytes, line 40
40,heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(n){return n}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(n){return n+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(n,t){return n+t},0)/n.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(n){return n}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(n){return n}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(n,t){return n+t},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(n){return null!==n?n:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(n){return n?n+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3}
40,fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),n}(),di=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;this.graphics=new t(this.ctx);this.w.globals.isBarHorizontal&&(this.invertAxis=!0);this.helpers=new pi(this);this.xAxisAnnotations=new wi(this);this.yAxisAnnotations=new bi(this);this.pointsAnnotations=new ki(this);this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0);this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return r(u,[{key:"drawAxesAnnotations",value:function(){var n=this.w;if(n.globals.axisCharts){for(var i=this.yAxisAnnotations.drawYAxisAnnotations(),r=this.xAxisAnnotations.drawXAxisAnnotations(),u=this.pointsAnnotations.drawPointAnnotations(),e=n.config.chart.animations.enabled,o=[i,r,u],f=[r.node,i.node,u.node],t=0;t<3;t++)n.globals.dom.elGraphical.add(o[t]),!e||n.globals.resized||n.globals.dataChanged||"scatter"!==n.config.chart.type&&"bubble"!==n.config.chart.type&&n.globals.dataPoints>1&&f[t].classList.add("apexcharts-element-hidden"),n.globals.delayedElements.push({el:f[t],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var n=this;this.w.config.annotations.images.map(function(t,i){n.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var n=this;this.w.config.annotations.texts.map(function(t,i){n.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(n,t,i){this.xAxisAnnotations.addXaxisAnnotation(n,t,i)}},{key:"addYaxisAnnotation",value:function(n,t,i){this.yAxisAnnotations.addYaxisAnnotation(n,t,i)}},{key:"addPointAnnotation",value:function(n,t,i){this.pointsAnnotations.addPointAnnotation(n,t,i)}},{key:"addText",value:function(n){var y=n.x,p=n.y,f=n.text,w=n.textAnchor,b=n.foreColor,k=n.fontSize,d=n.fontFamily,g=n.fontWeight,nt=n.cssClass,tt=n.backgroundColor,it=n.borderWidth,rt=n.strokeDashArray,ut=n.borderRadius,ft=n.borderColor,e=n.appendTo,et=void 0===e?".apexcharts-annotations":e,o=n.paddingLeft,s=void 0===o?4:o,h=n.paddingRight,ot=void 0===h?4:h,c=n.paddingBottom,st=void 0===c?2:c,l=n.paddingTop,a=void 0===l?2:l,i=this.w,r=this.graphics.drawText({x:y,y:p,text:f,textAnchor:w||"start",fontSize:k||"12px",fontWeight:g||"regular",fontFamily:d||i.config.chart.fontFamily,foreColor:b||i.config.chart.foreColor,cssClass:nt}),u=i.globals.dom.baseEl.querySelector(et),t,v;u&&u.appendChild(r.node);t=r.bbox();f&&(v=this.graphics.drawRect(t.x-s,t.y-a,t.width+s+ot,t.height+st+a,ut,tt||"transparent",1,it,ft,rt),u.insertBefore(v.node,r.node))}},{key:"addImage",value:function(n){var i=this.w,h=n.path,r=n.x,c=void 0===r?0:r,u=n.y,l=void 0===u?0:u,f=n.width,a=void 0===f?20:f,e=n.height,v=void 0===e?20:e,o=n.appendTo,y=void 0===o?".apexcharts-annotations":o,s=i.globals.dom.Paper.image(h),t;s.size(a,v).move(c,l);t=i.globals.dom.baseEl.querySelector(y);t&&t.appendChild(s.node)}},{key:"addXaxisAnnotationExternal",value:function(n,t,i){return this.addAnnotationExternal({params:n,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(n,t,i){return this.addAnnotationExternal({params:n,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(n,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:n,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var c=t.params,y=t.pushToMemory,l=t.context,i=t.type,p=t.contextMethod,a=l,e=a.w,u=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),f=u.childNodes.length+1,o=new v,w=Object.assign({},"xaxis"===i?o.xAxisAnnotation:"yaxis"===i?o.yAxisAnnotation:o.pointAnnotation),r=n.extend(w,c),s,h;switch(i){case"xaxis":this.addXaxisAnnotation(r,u,f);break;
40case"yaxis":this.addYaxisAnnotation(r,u,f);break;case"point":this.addPointAnnotation(r,u,f)}return s=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(f,"']")),h=this.helpers.addBackgroundToAnno(s,r),h&&u.insertBefore(h.node,s),y&&e.globals.memory.methodsToExec.push({context:a,id:r.id?r.id:n.randomId(),method:p,label:"addAnnotation",params:c}),l}},{key:"clearAnnotations",value:function(t){var i=t.w,r=i.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");i.globals.memory.methodsToExec.map(function(n,t){"addText"!==n.label&&"addAnnotation"!==n.label||i.globals.memory.methodsToExec.splice(t,1)});r=n.listToArray(r);Array.prototype.forEach.call(r,function(n){for(;n.firstChild;)n.removeChild(n.firstChild)})}},{key:"removeAnnotation",value:function(n,t){var i=n.w,r=i.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(i.globals.memory.methodsToExec.map(function(n,r){n.id===t&&i.globals.memory.methodsToExec.splice(r,1)}),Array.prototype.forEach.call(r,function(n){n.parentElement.removeChild(n)}))}}]),u}(),l=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;this.opts=null;this.seriesIndex=0}return r(u,[{key:"clippedImgArea",value:function(n){var i=this.w,e=i.config,s=parseInt(i.globals.gridWidth,10),h=parseInt(i.globals.gridHeight,10),c=s>h?s:h,l=n.image,r=0,u=0,o,f;void 0===n.width&&void 0===n.height?void 0!==e.fill.image.width&&void 0!==e.fill.image.height?(r=e.fill.image.width+1,u=e.fill.image.height):(r=c+1,u=c):(r=n.width,u=n.height);o=document.createElementNS(i.globals.SVGNS,"pattern");t.setAttrs(o,{id:n.patternID,patternUnits:n.patternUnits?n.patternUnits:"userSpaceOnUse",width:r+"px",height:u+"px"});f=document.createElementNS(i.globals.SVGNS,"image");o.appendChild(f);f.setAttributeNS(window.SVG.xlink,"href",l);t.setAttrs(f,{x:0,y:0,preserveAspectRatio:"none",width:r+"px",height:u+"px"});f.style.opacity=n.opacity;i.globals.dom.elDefs.node.appendChild(o)}},{key:"getSeriesIndex",value:function(n){var t=this.w;return this.seriesIndex=("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||"heatmap"===t.config.chart.type||"treemap"===t.config.chart.type?n.seriesNumber:n.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w,h,c,a,o,i,u,r,s,f,l;return this.opts=t,o=this.w.config,this.seriesIndex=this.getSeriesIndex(t),i=this.getFillColors()[this.seriesIndex],void 0!==e.globals.seriesColors[this.seriesIndex]&&(i=e.globals.seriesColors[this.seriesIndex]),"function"==typeof i&&(i=i({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e})),u=this.getFillType(this.seriesIndex),r=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity,t.color&&(i=t.color),s=i,(-1===i.indexOf("rgb")?i.length<9&&(s=n.hexToRgba(i,r)):i.indexOf("rgba")>-1&&(r=n.getOpacityFromRGBA(i)),t.opacity&&(r=t.opacity),"pattern"===u&&(c=this.handlePatternFill(c,i,r,s)),"gradient"===u&&(a=this.handleGradientFill(i,r,this.seriesIndex)),"image"===u)?(f=o.fill.image.src,l=t.patternID?t.patternID:"",this.clippedImgArea({opacity:r,image:Array.isArray(f)?t.seriesNumber<f.length?f[t.seriesNumber]:f[0]:f,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(l)}),h="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(l,")")):h="gradient"===u?a:"pattern"===u?c:s,t.solid&&(h=s),h}},{key:"getFillType",value:function(n){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[n]:t.config.fill.type}},{key:"getFillColors",value:function(){var n=this.w,r=n.config,i=this.opts,t=[];return n.globals.comboCharts?"line"===n.config.series[this.seriesIndex].type?Array.isArray(n.globals.stroke.colors)?t=n.globals.stroke.colors:t.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?t=n.globals.fill.colors:t.push(n.globals.fill.colors):"line"===r.chart.type?Array.isArray(n.globals.stroke.colors)?t=n.globals.stroke.colors:t.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?t=n.globals.fill.colors:t.push(n.globals.fill.colors),void 0!==i.fillColors&&(t=[],Array.isArray(i.fillColors)?t=i.fillColors.slice():t.push(i.fillColors)),t}},{key:"handlePatternFill",value:function(n,i,r,u){var f=this.w.config,e=this.opts,o=new t(this.ctx),s=void 0===f.fill.pattern.strokeWidth?Array.isArray(f.stroke.width)?f.stroke.width[this.seriesIndex]:f.stroke.width:Array.isArray(f.fill.pattern.strokeWidth)?f.fill.pattern.strokeWidth[this.seriesIndex]:f.fill.pattern.strokeWidth,h=i;return Array.isArray(f.fill.pattern.style)?void 0!==f.fill.pattern.style[e.seriesNumber]?o.drawPattern(f.fill.pattern.style[e.seriesNumber],f.fill.pattern.width,f.fill.pattern.height,h,s,r):u:o.drawPattern(f.fill.pattern.style,f.fill.pattern.width,f.fill.pattern.height,h,s,r)}},{key:"handleGradientFill",value:function(i,r,u){var e,f=this.w.config,h=this.opts,y=new t(this.ctx),l=new n,p=f.fill.gradient.type,o=i,a=void 0===f.fill.gradient.opacityFrom?r:Array.isArray(f.fill.gradient.opacityFrom)?f.fill.gradient.opacityFrom[u]:f.fill.gradient.opacityFrom,c,s,v;return o.indexOf("rgba")>-1&&(a=n.getOpacityFromRGBA(o)),c=void 0===f.fill.gradient.opacityTo?r:Array.isArray(f.fill.gradient.opacityTo)?f.fill.gradient.opacityTo[u]:f.fill.gradient.opacityTo,void 0===f.fill.gradient.gradientToColors||0===f.fill.gradient.gradientToColors.length?e="dark"===f.fill.gradient.shade?l.shadeColor(-1*parseFloat(f.fill.gradient.shadeIntensity),i.indexOf("rgb")>-1?n.rgb2hex(i):i):l.shadeColor(parseFloat(f.fill.gradient.shadeIntensity),i.indexOf("rgb")>-1?n.rgb2hex(i):i):f.fill.gradient.gradientToColors[h.seriesNumber]?(s=f.fill.gradient.gradientToColors[h.seriesNumber],e=s,s.indexOf("rgba")>-1&&(c=n.getOpacityFromRGBA(s))):e=i,f.fill.gradient.inverseColors&&(v=o,o=e,e=v),o.indexOf("rgb")>-1&&(o=n.rgb2hex(o)),e.indexOf("rgb")>-1&&(e=n.rgb2hex(e)),y.drawGradient(p,o,e,a,c,h.size,f.fill.gradient.stops,f.fill.gradient.colorStops,u)}}]),u}(),tt=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w}return r(u,[{key:"setGlobalMarkerSize",value:function(){var n=this.w,t;if(n.globals.markers.size=Array.isArray(n.config.markers.size)?n.config.markers.size:[n.config.markers.size],n.globals.markers.size.length>0){if(n.globals.markers.size.length<n.globals.series.length+1)for(t=0;t<=n.globals.series.length;t++)void 0===n.globals.markers.size[t]&&n.globals.markers.size.push(n.globals.markers.size[0])}else n.globals.markers.size=n.config.series.map(function(){return n.config.markers.size})}},{key:"plotChartMarkers",value:function(i,r,u,f){var c,w=arguments.length>4&&void 0!==arguments[4]&&arguments[4],e=this.w,v=r,l=i,p=null,b=new t(this.ctx),h,s,y,k,a,d;if((e.globals.markers.size[r]>0||w)&&(p=b.group({"class":w?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(e.globals.cuid,")")),Array.isArray(l.x))for(h=0;h<l.x.length;h++)s=u,1===u&&0===h&&(s=0),1===u&&1===h&&(s=1),y="apexcharts-marker","line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(y+=" no-pointer-events"),k=Array.isArray(e.config.markers.size)?e.globals.markers.size[r]>0:e.config.markers.size>0,k||w?(n.isNumber(l.y[h])?y+=" w".concat(n.randomId()):y="apexcharts-nullpoint",a=this.getMarkerConfig(y,r,s),e.config.series[v].data[s]&&(e.config.series[v].data[s].fillColor&&(a.pointFillColor=e.config.series[v].data[s].fillColor),e.config.series[v].data[s].strokeColor&&(a.pointStrokeColor=e.config.series[v].data[s].strokeColor)),f&&(a.pSize=f),(c=b.drawMarker(l.x[h],l.y[h],a)).attr("rel",s),c.attr("j",s),c.attr("index",r),c.node.setAttribute("default-marker-size",a.pSize),d=new o(this.ctx),d.setSelectionFilter(c,r,s),this.addEvents(c),p&&p.add(c)):(void 0===e.globals.pointsArray[r]&&(e.globals.pointsArray[r]=[]),e.globals.pointsArray[r].push([l.x[h],l.y[h]]));return p}},{key:"getMarkerConfig",value:function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=this.w,r=this.getMarkerStyle(t),e=f.globals.markers.size[t],i=f.config.markers;return null!==u&&i.discrete.length&&i.discrete.map(function(n){n.seriesIndex===t&&n.dataPointIndex===u&&(r.pointStrokeColor=n.strokeColor,r.pointFillColor=n.fillColor,e=n.size)}),{pSize:e,pRadius:i.radius,width:Array.isArray(i.width)?i.width[t]:i.width,height:Array.isArray(i.height)?i.height[t]:i.height,pointStrokeWidth:Array.isArray(i.strokeWidth)?i.strokeWidth[t]:i.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:Array.isArray(i.shape)?i.shape[t]:i.shape,"class":n,pointStrokeOpacity:Array.isArray(i.strokeOpacity)?i.strokeOpacity[t]:i.strokeOpacity,pointStrokeDashArray:Array.isArray(i.strokeDashArray)?i.strokeDashArray[t]:i.strokeDashArray,pointFillOpacity:Array.isArray(i.fillOpacity)?i.fillOpacity[t]:i.fillOpacity,seriesIndex:t}}},{key:"addEvents",value:function(n){var r=this.w,i=new t(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,n));n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,n));n.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,n));n.node.addEventListener("click",r.config.markers.onClick);n.node.addEventListener("dblclick",r.config.markers.onDblClick);n.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,n),{passive:!0})}},{key:"getMarkerStyle",value:function(n){var t=this.w,i=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[n]:r,pointFillColor:Array.isArray(i)?i[n]:i}}}]),u}(),ii=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w;this.initialAnim=this.w.config.chart.animations.enabled;this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return r(n,[{key:"draw",value:function(n,i,r){var f=this.w,k=new t(this.ctx),c=r.realIndex,l=r.pointsPos,p=r.zRatio,d=r.elParent,a=k.group({"class":"apexcharts-series-markers apexcharts-series-".concat(f.config.chart.type)}),e,s,v,h,u,o,w,y,b;if(a.attr("clip-path","url(#gridRectMarkerMask".concat(f.globals.cuid,")")),Array.isArray(l.x))for(e=0;e<l.x.length;e++)s=i+1,v=!0,0===i&&0===e&&(s=0),0===i&&1===e&&(s=1),h=0,u=f.globals.markers.size[c],p!==1/0&&(u=f.globals.seriesZ[c][s]/p,o=f.config.plotOptions.bubble,o.minBubbleRadius&&u<o.minBubbleRadius&&(u=o.minBubbleRadius),o.maxBubbleRadius&&u>o.maxBubbleRadius&&(u=o.maxBubbleRadius)),f.config.chart.animations.enabled||(h=u),w=l.x[e],y=l.y[e],(h=h||0,null!==y&&void 0!==f.globals.series[c][s]||(v=!1),v)&&(b=this.drawPoint(w,y,h,u,c,s,i),a.add(b)),d.add(a)}},{key:"drawPoint",value:function(n,i,r,u,f,e,s){var a,c=this.w,y=f,b=new p(this.ctx),d=new o(this.ctx),st=new l(this.ctx),g=new tt(this.ctx),nt=new t(this.ctx),h=g.getMarkerConfig("apexcharts-marker",y),it=st.fillPath({seriesNumber:f,dataPointIndex:e,patternUnits:"objectBoundingBox",value:c.globals.series[f][s]}),rt,ut,ft,et,ot,v,k,w;if(("circle"===h.shape?a=nt.drawCircle(r):"square"!==h.shape&&"rect"!==h.shape||(a=nt.drawRect(0,0,h.width-h.pointStrokeWidth/2,h.height-h.pointStrokeWidth/2,h.pRadius)),c.config.series[y].data[e]&&c.config.series[y].data[e].fillColor&&(it=c.config.series[y].data[e].fillColor),a.attr({x:n-h.width/2-h.pointStrokeWidth/2,y:i-h.height/2-h.pointStrokeWidth/2,cx:n,cy:i,fill:it,"fill-opacity":h.pointFillOpacity,stroke:h.pointStrokeColor,r:u,"stroke-width":h.pointStrokeWidth,"stroke-dasharray":h.pointStrokeDashArray,"stroke-opacity":h.pointStrokeOpacity}),c.config.chart.dropShadow.enabled)&&(rt=c.config.chart.dropShadow,d.dropShadow(a,rt,f)),!this.initialAnim||c.globals.dataChanged||c.globals.resized?c.globals.animationEnded=!0:(ut=c.config.chart.animations.speed,b.animateMarker(a,0,"circle"===h.shape?u:{width:h.width,height:h.height},ut,c.globals.easing,function(){window.setTimeout(function(){b.animationCompleted(a)},100)})),c.globals.dataChanged&&"circle"===h.shape)if(this.dynamicAnim){for(k=c.config.chart.animations.dynamicAnimation.speed,null!=(v=c.globals.previousPaths[f]&&c.globals.previousPaths[f][s])&&(ft=v.x,et=v.y,ot=void 0!==v.r?v.r:u),w=0;w<c.globals.collapsedSeries.length;w++)c.globals.collapsedSeries[w].index===f&&(k=1,u=0);0===n&&0===i&&(u=0);b.animateCircle(a,{cx:ft,cy:et,r:ot},{cx:n,cy:i,r:u},k,c.globals.easing)}else a.attr({r:u});return a.attr({rel:e,j:e,index:f,"default-marker-size":u}),d.setSelectionFilter(a,f,e),g.addEvents(a),a.node.classList.add("apexcharts-marker"),a}},{key:"centerTextInBubble",value:function(n){var t=this.w;return{y:n+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),n}(),w=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"dataLabelsCorrection",value:function(n,i,r,u,f,e,o){var s=this.w,c=!1,l=new t(this.ctx).getTextRects(r,o),v=l.width,a=l.height,y,p,h;return i<0&&(i=0),i>s.globals.gridHeight+a&&(i=s.globals.gridHeight+a/2),void 0===s.globals.dataLabelsRects[u]&&(s.globals.dataLabelsRects[u]=[]),s.globals.dataLabelsRects[u].push({x:n,y:i,width:v,height:a}),y=s.globals.dataLabelsRects[u].length-2,p=void 0!==s.globals.lastDrawnDataLabelsIndexes[u]?s.globals.lastDrawnDataLabelsIndexes[u][s.globals.lastDrawnDataLabelsIndexes[u].length-1]:0,void 0!==s.globals.dataLabelsRects[u][y]&&(h=s.globals.dataLabelsRects[u][p],(n>h.x+h.width+2||i>h.y+h.height+2||n+v<h.x)&&(c=!0)),(0===f||e)&&(c=!0),{x:n,y:i,textRects:l,drawnextLabel:c}}},{key:"drawDataLabel",value:function(n,i,r){var w=this,b=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,f=this.w,k=new t(this.ctx),h=f.config.dataLabels,c=0,o=0,e=r,s=null,u,y,p;if(!h.enabled||!Array.isArray(n.x))return s;for(s=k.group({"class":"apexcharts-data-labels"}),u=0;u<n.x.length;u++)if(c=n.x[u]+h.offsetX,o=n.y[u]+h.offsetY+b,!isNaN(c)){1===r&&0===u&&(e=0);1===r&&1===u&&(e=1);var l=f.globals.series[i][e],a="",v=function(n){return f.config.dataLabels.formatter(n,{ctx:w.ctx,seriesIndex:i,dataPointIndex:e,w:f})};"bubble"===f.config.chart.type?(a=v(l=f.globals.seriesZ[i][e]),o=n.y[u],y=new ii(this.ctx),p=y.centerTextInBubble(o,i,e),o=p.y):void 0!==l&&(a=v(l));this.plotDataLabelsText({x:c,y:o,text:a,i:i,j:e,parent:s,offsetCorrection:!0,dataLabelsConfig:f.config.dataLabels})}return s}},{key:"plotDataLabelsText",value:function(n){var i=this.w,b=new t(this.ctx),f=n.x,h=n.y,e=n.i,c=n.j,a=n.text,k=n.textAnchor,d=n.fontSize,g=n.parent,r=n.dataLabelsConfig,p=n.color,nt=n.alwaysDrawDataLabel,tt=n.offsetCorrection,u,s,v,y,l,w;Array.isArray(i.config.dataLabels.enabledOnSeries)&&i.config.dataLabels.enabledOnSeries.indexOf(e)<0||(u={x:f,y:h,drawnextLabel:!0},tt&&(u=this.dataLabelsCorrection(f,h,a,e,c,nt,parseInt(r.style.fontSize,10))),i.globals.zoomed||(f=u.x,h=u.y),u.textRects&&(f<-10-u.textRects.width||f>i.globals.gridWidth+u.textRects.width+10)&&(a=""),s=i.globals.dataLabels.style.colors[e],(("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)&&i.config.plotOptions.bar.distributed||i.config.dataLabels.distributed)&&(s=i.globals.dataLabels.style.colors[c]),"function"==typeof s&&(s=s({series:i.globals.series,seriesIndex:e,dataPointIndex:c,w:i})),p&&(s=p),v=r.offsetX,y=r.offsetY,("bar"!==i.config.chart.type&&"rangeBar"!==i.config.chart.type||(v=0,y=0),u.drawnextLabel)&&(l=b.drawText({width:100,height:parseInt(r.style.fontSize,10),x:f+v,
40y:h+y,foreColor:s,textAnchor:k||r.textAnchor,text:a,fontSize:d||r.style.fontSize,fontFamily:r.style.fontFamily,fontWeight:r.style.fontWeight||"normal"}),(l.attr({"class":"apexcharts-datalabel",cx:f,cy:h}),r.dropShadow.enabled)&&(w=r.dropShadow,new o(this.ctx).dropShadow(l,w)),g.add(l),void 0===i.globals.lastDrawnDataLabelsIndexes[e]&&(i.globals.lastDrawnDataLabelsIndexes[e]=[]),i.globals.lastDrawnDataLabelsIndexes[e].push(c)))}},{key:"addBackgroundToDataLabel",value:function(n,i){var u=this.w,r=u.config.dataLabels.background,f=r.padding,e=r.padding/2,h=i.width,c=i.height,s=new t(this.ctx).drawRect(i.x-f,i.y-e/2,h+2*f,c+e,r.borderRadius,"transparent"===u.config.chart.background?"#fff":u.config.chart.background,r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new o(this.ctx).dropShadow(s,r.dropShadow),s}},{key:"dataLabelsBackground",value:function(){var n=this.w,u,r,e;if("bubble"!==n.config.chart.type)for(u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),r=0;r<u.length;r++){var t=u[r],f=t.getBBox(),i=null;(f.width&&f.height&&(i=this.addBackgroundToDataLabel(t,f)),i)&&(t.parentNode.insertBefore(i.node,t),e=t.getAttribute("fill"),n.config.chart.animations.enabled&&!n.globals.resized&&!n.globals.dataChanged?i.animate().attr({fill:e}):i.attr({fill:e}),t.setAttribute("fill",n.config.dataLabels.background.foreColor))}}},{key:"bringForward",value:function(){for(var i=this.w,r=i.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=i.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),t=0;t<r.length;t++)n&&n.insertBefore(r[t],n.nextSibling)}}]),n}(),gi=function(){function n(t){i(this,n);this.w=t.w;this.barCtx=t}return r(n,[{key:"handleBarDataLabels",value:function(n){var o=n.x,s=n.y,it=n.y1,rt=n.y2,h=n.i,i=n.j,w=n.realIndex,b=n.series,r=n.barHeight,u=n.barWidth,a=n.barYPosition,c=n.visibleSeries,k=n.renderedPath,f=this.w,ut=new t(this.barCtx.ctx),d=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[w]:this.barCtx.strokeWidth,g=o+parseFloat(u*c),v=s+parseFloat(r*c),tt,p;f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(g=o+parseFloat(u*(c+1)),v=s+parseFloat(r*(c+1))-d);var ft=o,nt=s,e={},l=f.config.dataLabels,et=this.barCtx.barOptions.dataLabels;void 0!==a&&this.barCtx.isTimelineBar&&(v=a,nt=a);var ot=l.offsetX,st=l.offsetY,y={width:0,height:0};return f.config.dataLabels.enabled&&(tt=this.barCtx.series[h][i],y=ut.getTextRects(f.globals.yLabelFormatters[0](tt),parseFloat(l.style.fontSize))),p={x:o,y:s,i:h,j:i,renderedPath:k,bcx:g,bcy:v,barHeight:r,barWidth:u,textRects:y,strokeWidth:d,dataLabelsX:ft,dataLabelsY:nt,barDataLabelsConfig:et,offX:ot,offY:st},e=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(p):this.calculateColumnsDataLabelsPosition(p),k.attr({cy:e.bcy,cx:e.bcx,j:i,val:b[h][i],barHeight:r,barWidth:u}),this.drawCalculatedDataLabels({x:e.dataLabelsX,y:e.dataLabelsY,val:this.barCtx.isTimelineBar?[it,rt]:b[h][i],i:w,j:i,barWidth:u,barHeight:r,textRects:y,dataLabelsConfig:l})}},{key:"calculateColumnsDataLabelsPosition",value:function(n){var c,o=this.w,w=n.i,b=n.j,l=n.y,a=n.bcx,v=n.barWidth,i=n.barHeight,u=n.textRects,f=n.dataLabelsY,k=n.barDataLabelsConfig,s=n.strokeWidth,y=n.offX,r=n.offY,h,p,e,t;i=Math.abs(i);h="vertical"===o.config.plotOptions.bar.dataLabels.orientation;a-=s/2;p=o.globals.gridWidth/o.globals.dataPoints;(c=o.globals.isXNumeric?a-v/2+y:a-p+v/2+y,h)&&(c=c+u.height/2-s/2-2);e=this.barCtx.series[w][b]<0;t=l;switch(this.barCtx.isReversed&&(t=l-i+(e?2*i:0),l-=i),k.position){case"center":f=h?e?t+i/2+r:t+i/2-r:e?t-i/2+u.height/2+r:t+i/2+u.height/2-r;break;case"bottom":f=h?e?t+i+r:t+i-r:e?t-i+u.height+s+r:t+i-u.height/2+s-r;break;case"top":f=h?e?t+r:t-r:e?t-u.height/2-r:t+u.height+r}return o.config.chart.stacked||(f<0?f=0+s:f+u.height/3>o.globals.gridHeight&&(f=o.globals.gridHeight-s)),{bcx:a,bcy:l,dataLabelsX:c,dataLabelsY:f}}},{key:"calculateBarsDataLabelsPosition",value:function(n){var f=this.w,s=n.x,l=n.i,a=n.j,c=n.bcy,v=n.barHeight,t=n.barWidth,i=n.textRects,r=n.dataLabelsX,e=n.strokeWidth,y=n.barDataLabelsConfig,o=n.offX,p=n.offY,w=f.globals.gridHeight/f.globals.dataPoints;t=Math.abs(t);var b=c-(this.barCtx.isTimelineBar?0:w)+v/2+i.height/2+p-3,h=this.barCtx.series[l][a]<0,u=s;switch(this.barCtx.isReversed&&(u=s+t-(h?2*t:0),s=f.globals.gridWidth-t),y.position){case"center":r=h?u+t/2-o:Math.max(i.width/2,u-t/2)+o;break;case"bottom":r=h?u+t-e-Math.round(i.width/2)-o:u-t+e+Math.round(i.width/2)+o;break;case"top":r=h?u-e+Math.round(i.width/2)-o:u-e-Math.round(i.width/2)+o}return f.config.chart.stacked||(r<0?r=r+i.width+e:r+i.width/2>f.globals.gridWidth&&(r=f.globals.gridWidth-i.width-e)),{bcx:s,bcy:c,dataLabelsX:r,dataLabelsY:b}}},{key:"drawCalculatedDataLabels",value:function(n){var p=n.x,b=n.y,c=n.val,o=n.i,l=n.j,a=n.textRects,g=n.barHeight,e=n.barWidth,i=n.dataLabelsConfig,r=this.w,k="rotate(0)",f,y,s,h;"vertical"===r.config.plotOptions.bar.dataLabels.orientation&&(k="rotate(-90, ".concat(p,", ").concat(b,")"));var nt=new w(this.barCtx.ctx),d=new t(this.barCtx.ctx),tt=i.formatter,v=null,it=r.globals.collapsedSeriesIndices.indexOf(o)>-1;return i.enabled&&!it&&(v=d.group({"class":"apexcharts-data-labels",transform:k}),f="",void 0!==c&&(f=tt(c,{seriesIndex:o,dataPointIndex:l,w:r})),y=r.globals.series[o][l]<0,s=r.config.plotOptions.bar.dataLabels.position,("vertical"===r.config.plotOptions.bar.dataLabels.orientation&&("top"===s&&(i.textAnchor=y?"end":"start"),"center"===s&&(i.textAnchor="middle"),"bottom"===s&&(i.textAnchor=y?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels)&&e<d.getTextRects(f,parseFloat(i.style.fontSize)).width&&(f=""),r.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(e>0&&a.width/1.6>e||e<0&&a.width/1.6<e)&&(f=""):a.height/1.6>g&&(f="")),h=u({},i),this.barCtx.isHorizontal&&c<0&&("start"===i.textAnchor?h.textAnchor="end":"end"===i.textAnchor&&(h.textAnchor="start")),nt.plotDataLabelsText({x:p,y:b,text:f,i:o,j:l,parent:v,dataLabelsConfig:h,alwaysDrawDataLabel:!0,offsetCorrection:!0}
40)),v}}]),n}(),h=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;this.legendInactiveClass="legend-mouseover-inactive"}return r(u,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(n.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(n){var t=this.getSeriesByName(n),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(n,t){function r(i){for(var r=0;r<i.length;r++)i[r].index===t&&n.node.classList.add("apexcharts-series-collapsed")}var i=this.w;r(i.globals.collapsedSeries);r(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(n){var t=this.isSeriesHidden(n);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(n){var t=this.isSeriesHidden(n);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(n){var t=this.isSeriesHidden(n);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],t=this.w,i=n.clone(t.globals.initialSeries);t.globals.previousPaths=[];f?(t.globals.collapsedSeries=[],t.globals.ancillaryCollapsedSeries=[],t.globals.collapsedSeriesIndices=[],t.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i);t.config.series=i;r&&(u&&(t.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,t.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(n){for(var i=this.w,t=0;t<n.length;t++)i.globals.collapsedSeriesIndices.indexOf(t)>-1&&(n[t].data=[]);return n}},{key:"toggleSeriesOnHover",value:function(n,t){var i=this.w,u=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels"),e,o;if("mousemove"===n.type){var f=parseInt(t.getAttribute("rel"),10)-1,r=null,s=null;for(i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(f,"']")),s=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(f,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(f+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(f+1,"'] path")),e=0;e<u.length;e++)u[e].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==s&&s.classList.remove(this.legendInactiveClass))}else if("mouseout"===n.type)for(o=0;o<u.length;o++)u[o].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(n,t){var r=this,u=this.w,i=u.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),f=function(n){for(var t=0;t<i.length;t++)i[t].classList[n](r.legendInactiveClass)},e;"mousemove"===n.type?(e=parseInt(t.getAttribute("rel"),10)-1,f("add"),function(n){for(var u,t=0;t<i.length;t++)u=parseInt(i[t].getAttribute("val"),10),u>=n.from&&u<=n.to&&i[t].classList.remove(r.legendInactiveClass)}(u.config.plotOptions.heatmap.colorScale.ranges[e])):"mouseout"===n.type&&f("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",i=this.w,u=0,t,n;if(i.config.series.length>1)for(t=i.config.series.map(function(n,t){var r=!1;return f&&(r="bar"===i.config.series[t].type||"column"===i.config.series[t].type),n.data&&n.data.length>0&&!r?t:-1}),n="asc"===r?0:t.length-1;"asc"===r?n<t.length:n>=0;"asc"===r?n++:n--)if(-1!==t[n]){u=t[n];break}return u}},{key:"getPreviousPaths",value:function(){function u(t,i,r){for(var o,f=t[i].childNodes,e={type:r,paths:[],realIndex:t[i].getAttribute("data:realIndex")},u=0;u<f.length;u++)f[u].hasAttribute("pathTo")&&(o=f[u].getAttribute("pathTo"),e.paths.push({d:o}));n.globals.previousPaths.push(e)}var n=this.w,i,r,t;if(n.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach(function(t){for(var r,f=(r=t,n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(r,"-series .apexcharts-series"))),i=0;i<f.length;i++)u(f,i,t)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter"),i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series")),i.length>0)for(r=function(t){for(var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),u=[],f=function(n){var t=function(t){return i[n].getAttribute(t)},r={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};u.push({rect:r,color:i[n].getAttribute("color")})},r=0;r<i.length;r++)f(r);n.globals.previousPaths.push(u)},t=0;t<i.length;t++)r(t);n.globals.axisCharts||(n.globals.previousPaths=n.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(n){var u=this.w,f=u.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series")),i;if(f.length>0)for(i=0;i<f.length;i++){for(var r=u.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series[data\\:realIndex='").concat(i,"'] circle")),e=[],t=0;t<r.length;t++)e.push({x:r[t].getAttribute("cx"),y:r[t].getAttribute("cy"),r:r[t].getAttribute("r")});u.globals.previousPaths.push(e)}}},{key:"clearPreviousPaths",value:function(){var n=this.w;n.globals.previousPaths=[];n.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var i=this.w,n=i.config.noData,o=new t(this.ctx),u=i.globals.svgWidth/2,r=i.globals.svgHeight/2,f="middle",e;(i.globals.noData=!0,i.globals.animationEnded=!0,"left"===n.align?(u=10,f="start"):"right"===n.align&&(u=i.globals.svgWidth-10,f="end"),"top"===n.verticalAlign?r=50:"bottom"===n.verticalAlign&&(r=i.globals.svgHeight-50),u+=n.offsetX,r=r+parseInt(n.style.fontSize,10)+2+n.offsetY,void 0!==n.text&&""!==n.text)&&(e=o.drawText({x:u,y:r,text:n.text,textAnchor:f,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,foreColor:n.style.color,opacity:1,"class":"apexcharts-text-nod
40ata"}),i.globals.dom.Paper.add(e))}},{key:"setNullSeriesToZeroValues",value:function(n){for(var i,r=this.w,t=0;t<n.length;t++)if(0===n[t].length)for(i=0;i<n[r.globals.maxValsInArrayIndex].length;i++)n[t].push(0);return n}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,r=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){t=!1;break}return r.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(n){return n.length>0?n:[]})}}]),u}(),nr=function(){function n(t){i(this,n);this.w=t.w;this.barCtx=t}return r(n,[{key:"initVariables",value:function(n){var i=this.w,t,r;for(this.barCtx.series=n,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1,t=0;t<n.length;t++)if(n[t].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=n[t].length),i.globals.isXNumeric)for(r=0;r<n[t].length;r++)i.globals.seriesX[t][r]>i.globals.minX&&i.globals.seriesX[t][r]<i.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=i.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1);this.barCtx.zeroSerieses=[];this.barCtx.radiusOnSeriesNumber=n.length-1;i.globals.comboCharts||this.checkZeroSeries({series:n})}},{key:"initialPositions",value:function(){var o,s,u,t,i,r,h,c,n=this.w,l=n.globals.dataPoints,e,f;return this.barCtx.isTimelineBar&&(l=n.globals.labels.length),e=this.barCtx.seriesLen,(n.config.plotOptions.bar.rangeBarGroupRows&&(e=1),this.barCtx.isHorizontal)?(i=(u=n.globals.gridHeight/l)/e,n.globals.isXNumeric&&(i=(u=n.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),i=i*parseInt(this.barCtx.barOptions.barHeight,10)/100,c=this.barCtx.baseLineInvertedY+n.globals.padHorizontal+(this.barCtx.isReversed?n.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),s=(u-i*this.barCtx.seriesLen)/2):((t=n.globals.gridWidth/this.barCtx.visibleItems,n.config.xaxis.convertedCatToNumeric&&(t=n.globals.gridWidth/n.globals.dataPoints),r=t/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,n.globals.isXNumeric)&&(f=this.barCtx.xRatio,n.config.xaxis.convertedCatToNumeric&&(f=this.barCtx.initialXRatio),n.globals.minXDiff&&.5!==n.globals.minXDiff&&n.globals.minXDiff/f>0&&(t=n.globals.minXDiff/f),(r=t/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)),h=n.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?n.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),o=n.globals.padHorizontal+(t-r*this.barCtx.seriesLen)/2),{x:o,y:s,yDivision:u,xDivision:t,barHeight:i,barWidth:r,zeroH:h,zeroW:c}}},{key:"getPathFillColor",value:function(n,t,i,r){var u=this.w,e=new l(this.barCtx.ctx),f=null,o=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(r){n[t][i]>=r.from&&n[t][i]<=r.to&&(f=r.color)}),u.config.series[t].data[i]&&u.config.series[t].data[i].fillColor&&(f=u.config.series[t].data[i].fillColor),e.fillPath({seriesNumber:this.barCtx.barOptions.distributed?o:r,dataPointIndex:i,color:f,value:n[t][i]})}},{key:"getStrokeWidth",value:function(n,t,i){var r=0,u=this.w;return this.barCtx.isNullValue=void 0===this.barCtx.series[n][t]||null===this.barCtx.series[n][t]?!0:!1,u.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),r}},{key:"barBackground",value:function(n){var i=n.j,l=n.i,u=n.x1,f=n.x2,e=n.y1,o=n.y2,a=n.elSeries,s=this.w,v=new t(this.barCtx.ctx),y=new h(this.barCtx.ctx).getActiveConfigSeriesIndex(),c,r;this.barCtx.barOptions.colors.backgroundBarColors.length>0&&y===l&&(i>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(i-=this.barCtx.barOptions.colors.backgroundBarColors.length),c=this.barCtx.barOptions.colors.backgroundBarColors[i],r=v.drawRect(void 0!==u?u:0,void 0!==e?e:0,void 0!==f?f:s.globals.gridWidth,void 0!==o?o:s.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,c,this.barCtx.barOptions.colors.backgroundBarOpacity),a.add(r),r.node.classList.add("apexcharts-backgroundBar"))}},{key:"getColumnPaths",value:function(n){var v=n.barWidth,h=n.barXPosition,b=n.yRatio,r
40=n.y1,k=n.y2,i=n.strokeWidth,d=n.series,y=n.realIndex,p=n.i,c=n.j,l=n.w,u=new t(this.barCtx.ctx);(i=Array.isArray(i)?i[y]:i)||(i=0);var g={barWidth:v,strokeWidth:i,yRatio:b,barXPosition:h,y1:r,y2:k},e=this.getRoundedBars(l,g,d,p,c),o=h,w=h+v,a=u.move(o,r),s=u.move(o,r),f=u.line(w-i,r);return l.globals.previousPaths.length>0&&(s=this.barCtx.getPreviousPath(y,c,!1)),a=a+u.line(o,e.y2)+e.pathWithRadius+u.line(w-i,e.y2)+f+f+"z",s=s+u.line(o,r)+f+f+f+f+f+u.line(o,r),l.config.chart.stacked&&(this.barCtx.yArrj.push(e.y2),this.barCtx.yArrjF.push(Math.abs(r-e.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[p][c])),{pathTo:a,pathFrom:s}}},{key:"getBarpaths",value:function(n){var e=n.barYPosition,v=n.barHeight,r=n.x1,b=n.x2,i=n.strokeWidth,k=n.series,y=n.realIndex,p=n.i,h=n.j,c=n.w,u=new t(this.barCtx.ctx);(i=Array.isArray(i)?i[y]:i)||(i=0);var d={barHeight:v,strokeWidth:i,barYPosition:e,x2:b,x1:r},o=this.getRoundedBars(c,d,k,p,h),l=u.move(r,e),s=u.move(r,e);c.globals.previousPaths.length>0&&(s=this.barCtx.getPreviousPath(y,h,!1));var a=e,w=e+v,f=u.line(r,w-i);return l=l+u.line(o.x2,a)+o.pathWithRadius+u.line(o.x2,w-i)+f+f+"z",s=s+u.line(r,a)+f+f+f+f+f+u.line(r,a),c.config.chart.stacked&&(this.barCtx.xArrj.push(o.x2),this.barCtx.xArrjF.push(Math.abs(r-o.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[p][h])),{pathTo:l,pathFrom:s}}},{key:"getRoundedBars",value:function(n,i,r,u,f){var h=new t(this.barCtx.ctx),e=n.config.plotOptions.bar.borderRadius,a,o,c,v,s,l;return(n.config.chart.stacked&&r.length>1&&u!==this.barCtx.radiusOnSeriesNumber&&(e=0),this.barCtx.isHorizontal)?(a="",o=i.x2,(Math.abs(i.x1-i.x2)<e&&(e=Math.abs(i.x1-i.x2)),void 0!==r[u][f]||null!==r[u][f])&&(c=this.barCtx.isReversed?r[u][f]>0:r[u][f]<0,c&&(e*=-1),o-=e,a=h.quadraticCurve(o+e,i.barYPosition,o+e,i.barYPosition+(c?-1*e:e))+h.line(o+e,i.barYPosition+i.barHeight-i.strokeWidth-(c?-1*e:e))+h.quadraticCurve(o+e,i.barYPosition+i.barHeight-i.strokeWidth,o,i.barYPosition+i.barHeight-i.strokeWidth)),{pathWithRadius:a,x2:o}):(v="",s=i.y2,(Math.abs(i.y1-i.y2)<e&&(e=Math.abs(i.y1-i.y2)),void 0!==r[u][f]||null!==r[u][f])&&(l=r[u][f]<0,l&&(e*=-1),s+=e,v=h.quadraticCurve(i.barXPosition,s-e,i.barXPosition+(l?-1*e:e),s-e)+h.line(i.barXPosition+i.barWidth-i.strokeWidth-(l?-1*e:e),s-e)+h.quadraticCurve(i.barXPosition+i.barWidth-i.strokeWidth,s-e,i.barXPosition+i.barWidth-i.strokeWidth,s)),{pathWithRadius:v,y2:s})}},{key:"checkZeroSeries",value:function(n){for(var f,u,i,e,t=n.series,o=this.w,r=0;r<t.length;r++){for(f=0,u=0;u<t[o.globals.maxValsInArrayIndex].length;u++)f+=t[r][u];0===f&&this.barCtx.zeroSerieses.push(r)}for(i=t.length-1;i>=0;i--)this.barCtx.zeroSerieses.indexOf(i)>-1&&i===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(e=t.length-1;e>=0;e--)o.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(n,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?t:null;return null!=n&&(i=t+n/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?n/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(n,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?t:null;return null!=n&&(i=t-n/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?n/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(n,t,i,r,u){var e=this,f=this.w,o=[];return f.globals.seriesGoals[r]&&f.globals.seriesGoals[r][u]&&Array.isArray(f.globals.seriesGoals[r][u])&&f.globals.seriesGoals[r][u].forEach(function(r){var u;o.push((d(u={},n,"x"===n?e.getXForValue(r.value,t,!1):e.getYForValue(r.value,i,!1)),d(u,"attrs",r),u))}),o}},{key:"drawGoalLine",value:function(n){var f=n.barXPosition,e=n.barYPosition,o=n.goalX,s=n.goalY,h=n.barWidth,c=n.barHeight,l=this.w,r=new t(this.barCtx.ctx),u=r.group({className:"apexcharts-bar-goals-groups"}),i=null;return l.globals.isBarHorizontal?Array.isArray(o)&&o.forEach(function(n){i=r.drawLine(n.x,e,n.x,e+c,n.attrs.strokeColor?n.attrs.strokeColor:void 0,0,n.attrs.strokeWidth?n.attrs.strokeWidth:2);u.add(i)}
40):Array.isArray(s)&&s.forEach(function(n){i=r.drawLine(f,n.y,f+h,n.y,n.attrs.strokeColor?n.attrs.strokeColor:void 0,0,n.attrs.strokeWidth?n.attrs.strokeWidth:2);u.add(i)}),u}}]),n}(),b=function(){function e(n,t){i(this,e);this.ctx=n;this.w=n.w;var r=this.w;this.barOptions=r.config.plotOptions.bar;this.isHorizontal=this.barOptions.horizontal;this.strokeWidth=r.config.stroke.width;this.isNullValue=!1;this.isTimelineBar="datetime"===r.config.xaxis.type&&r.globals.seriesRangeBarTimeline.length;this.xyRatios=t;null!==this.xyRatios&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY);this.yaxisIndex=0;this.seriesLen=0;this.barHelpers=new nr(this)}return r(e,[{key:"draw",value:function(i,r){var h=this.w,w=new t(this.ctx),tt=new f(this.ctx,h),k,e,d,y,a,c,nt,ct;for(i=tt.getLogSeries(i),this.series=i,this.yRatio=tt.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),k=w.group({"class":"apexcharts-bar-series apexcharts-plot-series"}),h.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering."),e=0,d=0;e<i.length;e++,d++){var it,rt,ut,ft,v=void 0,p=void 0,et=[],g=[],o=h.globals.comboCharts?r[e]:e,b=w.group({"class":"apexcharts-series",rel:e+1,seriesName:n.escapeString(h.globals.seriesNames[o]),"data:realIndex":o});this.ctx.series.addCollapsedClassToSeries(b,o);i[e].length>0&&(this.visibleI=this.visibleI+1);y=0;a=0;this.yRatio.length>1&&(this.yaxisIndex=o);this.isReversed=h.config.yaxis[this.yaxisIndex]&&h.config.yaxis[this.yaxisIndex].reversed;c=this.barHelpers.initialPositions();p=c.y;y=c.barHeight;rt=c.yDivision;ft=c.zeroW;v=c.x;a=c.barWidth;it=c.xDivision;ut=c.zeroH;this.horizontal||g.push(v+a/2);for(var lt=w.group({"class":"apexcharts-datalabels","data:realIndex":o}),ot=w.group({"class":"apexcharts-bar-goals-markers",style:"pointer-events: none"}),l=0;l<h.globals.dataPoints;l++){var st=this.barHelpers.getStrokeWidth(e,l,o),s=null,ht={indexes:{i:e,j:l,realIndex:o,bc:d},x:v,y:p,strokeWidth:st,elSeries:b};this.isHorizontal?(s=this.drawBarPaths(u(u({},ht),{},{barHeight:y,zeroW:ft,yDivision:rt})),a=this.series[e][l]/this.invertedYRatio):(s=this.drawColumnPaths(u(u({},ht),{},{xDivision:it,barWidth:a,zeroH:ut})),y=this.series[e][l]/this.yRatio[this.yaxisIndex]);nt=this.barHelpers.drawGoalLine({barXPosition:s.barXPosition,barYPosition:s.barYPosition,goalX:s.goalX,goalY:s.goalY,barHeight:y,barWidth:a});nt&&ot.add(nt);p=s.y;v=s.x;l>0&&g.push(v+a/2);et.push(p);ct=this.barHelpers.getPathFillColor(i,e,l,o);this.renderSeries({realIndex:o,pathFill:ct,j:l,i:e,pathFrom:s.pathFrom,pathTo:s.pathTo,strokeWidth:st,elSeries:b,x:v,y:p,series:i,barHeight:y,barWidth:a,elDataLabelsWrap:lt,elGoalsMarkers:ot,visibleSeries:this.visibleI,type:"bar"})}h.globals.seriesXvalues[o]=g;h.globals.seriesYvalues[o]=et;k.add(b)}return k}},{key:"renderSeries",value:function(n){var e=n.realIndex,v=n.pathFill,s=n.lineFill,r=n.j,f=n.i,b=n.pathFrom,k=n.pathTo,d=n.strokeWidth,h=n.elSeries,g=n.x,nt=n.y,c=n.y1,l=n.y2,tt=n.series,it=n.barHeight,rt=n.barWidth,ut=n.barYPosition,y=n.elDataLabelsWrap,p=n.elGoalsMarkers,ft=n.visibleSeries,et=n.type,i=this.w,ot=new t(this.ctx),w,u,a;return s||(s=this.barOptions.distributed?i.globals.stroke.colors[r]:i.globals.stroke.colors[e]),i.config.series[f].data[r]&&i.config.series[f].data[r].strokeColor&&(s=i.config.series[f].data[r].strokeColor),this.isNullValue&&(v="none"),w=r/i.config.chart.animations.animateGradually.delay*(i.config.chart.animations.speed/i.globals.dataPoints)/2.4,u=ot.renderPaths({i:f,j:r,realIndex:e,pathFrom:b,pathTo:k,stroke:s,strokeWidth:d,strokeLineCap:i.config.stroke.lineCap,fill:v,animationDelay:w,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(et,"-area")}),u.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),void 0!==c&&void 0!==l&&(u.attr("data-range-y1",c),u.attr("data-range-y2",l)),new o(this.ctx).setSelectionFilter(u,e,r),h.add(u),a=new gi(this).handleBarDataLabels({x:g,y:nt,y1:c,y2:l,i:f,j:r,series:tt,realIndex:e,barHeight:it,barWidth:rt,barYPosition:ut,renderedPath:u,visibleSeries:ft}),null!==a&&y.add(a),h.add(y),p&&h.add(p),h}},{key:"drawBarPaths",value:function(n){var o=n.indexes,t=n.barHeight,l=n.strokeWidth,s=n.zeroW,h=n.x,f=n.y,a=n.yDivision,v=n.elSeries,i=this.w,r=o.i,u=o.j,e,c;return i.globals.isXNumeric&&(f=(i.globals.seriesX[r][u]-i.globals.minX)/this.invertedXRatio-t),e=f+t*this.visibleI,h=this.barHelpers.getXForValue(this.series[r][u],s),c=this.barHelpers.getBarpaths({barYPosition:e,barHeight:t,x1:s,x2:h,strokeWidth:l,series:this.series,realIndex:o.realIndex,i:r,j:u,w:i}
40),i.globals.isXNumeric||(f+=a),this.barHelpers.barBackground({j:u,i:r,y1:e-t*this.visibleI,y2:t*this.seriesLen,elSeries:v}),{pathTo:c.pathTo,pathFrom:c.pathFrom,x:h,y:f,goalX:this.barHelpers.getGoalValues("x",s,null,r,u),barYPosition:e}}},{key:"drawColumnPaths",value:function(n){var i=n.indexes,f=n.x,s=n.y,y=n.xDivision,r=n.barWidth,h=n.zeroH,c=n.strokeWidth,p=n.elSeries,t=this.w,v=i.realIndex,e=i.i,u=i.j,w=i.bc,l,o,a;return t.globals.isXNumeric&&(l=v,t.globals.seriesX[v].length||(l=t.globals.maxValsInArrayIndex),f=(t.globals.seriesX[l][u]-t.globals.minX)/this.xRatio-r*this.seriesLen/2),o=f+r*this.visibleI,s=this.barHelpers.getYForValue(this.series[e][u],h),a=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:r,y1:h,y2:s,strokeWidth:c,series:this.series,realIndex:i.realIndex,i:e,j:u,w:t}),t.globals.isXNumeric||(f+=y),this.barHelpers.barBackground({bc:w,j:u,i:e,x1:o-c/2-r*this.visibleI,x2:r*this.seriesLen+c/2,elSeries:p}),{pathTo:a.pathTo,pathFrom:a.pathFrom,x:f,y:s,goalY:this.barHelpers.getGoalValues("y",null,h,e,u),barXPosition:o}}},{key:"getPreviousPath",value:function(n,t){for(var f,u,r=this.w,i=0;i<r.globals.previousPaths.length;i++)u=r.globals.previousPaths[i],u.paths&&u.paths.length>0&&parseInt(u.realIndex,10)===parseInt(n,10)&&void 0!==r.globals.previousPaths[i].paths[t]&&(f=r.globals.previousPaths[i].paths[t].d);return f}}]),e}(),s=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w;this.months31=[1,3,5,7,8,10,12];this.months30=[2,4,6,9,11];this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return r(t,[{key:"isValidDate",value:function(n){return!isNaN(this.parseDate(n))}},{key:"getTimeStamp",value:function(n){return Date.parse(n)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toISOString().substr(0,25)).getTime():new Date(n).getTime():n}},{key:"getDate",value:function(n){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toUTCString()):new Date(n)}},{key:"parseDate",value:function(n){var i=Date.parse(n),t;return isNaN(i)?(t=Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," ")),this.getTimeStamp(t)):this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(n){return Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(n,t){function r(n,t){var i=n+"";for(t=t||2;i.length<t;)i="0"+i;return i}var s=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,l=["\0"].concat(c(s.months)),a=["\x01"].concat(c(s.shortMonths)),v=["\x02"].concat(c(s.days)),y=["\x03"].concat(c(s.shortDays)),p=i?n.getUTCFullYear():n.getFullYear(),o,w,u,b,k,d,f,h,g,e,nt,it,tt;return t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+p)).replace(/(^|[^\\])yy/g,"$1"+p.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+p),o=(i?n.getUTCMonth():n.getMonth())+1,t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+l[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+r(o))).replace(/(^|[^\\])M/g,"$1"+o),w=i?n.getUTCDate():n.getDate(),t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+v[0])).replace(/(^|[^\\])ddd/g,"$1"+y[0])).replace(/(^|[^\\])dd/g,"$1"+r(w))).replace(/(^|[^\\])d/g,"$1"+w),u=i?n.getUTCHours():n.getHours(),b=u>12?u-12:0===u?12:u,t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+r(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+r(b))).replace(/(^|[^\\])h/g,"$1"+b),k=i?n.getUTCMinutes():n.getMinutes(),t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+r(k))).replace(/(^|[^\\])m/g,"$1"+k),d=i?n.getUTCSeconds():n.getSeconds(),t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+r(d))).replace(/(^|[^\\])s/g,"$1"+d),f=i?n.getUTCMilliseconds():n.getMilliseconds(),t=t.replace(/(^|[^\\])fff+/g,"$1"+r(f,3)),f=Math.round(f/10),t=t.replace(/(^|[^\\])ff/g,"$1"+r(f)),f=Math.round(f/10),h=u<12?"AM":"PM",t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+f)).replace(/(^|[^\\])TT+/g,"$1"+h)).replace(/(^|[^\\])T/g,"$1"+h.charAt(0)),g=h.toLowerCase(),t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+g)).replace(/(^|[^\\])t/g,"$1"+g.charAt(0)),e=-n.getTimezoneOffset(),nt=i||!e?"Z":e>0?"+":"-",i||(it=(e=Math.abs(e))%60,nt+=r(Math.floor(e/60))+":"+r(it)),t=t.replace(/(^|[^\\])K/g,"$1"+nt),tt=(i?n.getUTCDay():n.getDay())+1,(t=(t=(t=(t=t.replace(new RegExp(v[0],"g"),v[tt])).replace(new RegExp(y[0],"g"),y[tt])).replace(new RegExp(l[0],"g"),l[o])).replace(new RegExp(a[0],"g"),a[o])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(n,t){var u=this.w;void 0!==u.config.xaxis.min&&(n=u.config.xaxis.min);void 0!==u.config.xaxis.max&&(t=u.config.xaxis.max);var f=this.getDate(n),e=this.getDate(t),i=this.formatDate(f,"yyyy MM dd HH mm ss fff").split(" "),r=this.formatDate(e,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(i[6],10),maxMillisecond:parseInt(r[6],10),minSecond:parseInt(i[5],10),maxSecond:parseInt(r[5],10),minMinute:parseInt(i[4],10),maxMinute:parseInt(r[4],10),minHour:parseInt(i[3],10),maxHour:parseInt(r[3],10),minDate:parseInt(i[2],10),maxDate:parseInt(r[2],10),minMonth:
40parseInt(i[1],10)-1,maxMonth:parseInt(r[1],10)-1,minYear:parseInt(i[0],10),maxYear:parseInt(r[0],10)}}},{key:"isLeapYear",value:function(n){return n%4==0&&n%100!=0||n%400==0}},{key:"calculcateLastDaysOfMonth",value:function(n,t,i){return this.determineDaysOfMonths(n,t)-i}},{key:"determineDaysOfYear",value:function(n){var t=365;return this.isLeapYear(n)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(n,t,i){var r=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(t,i){var r=30;switch(t=n.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(r=this.isLeapYear(i)?29:28);break;case this.months31.indexOf(t)>-1:default:r=31}return r}}]),t}(),ct=function(f){function e(){return i(this,e),o.apply(this,arguments)}g(e,f);var o=nt(e);return r(e,[{key:"draw",value:function(i,r){var h=this.w,b=new t(this.ctx),k,f,c,v,s,ut,e,g,ht,nt,ct,lt;for(this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=h.globals.seriesRangeStart,this.seriesRangeEnd=h.globals.seriesRangeEnd,this.barHelpers.initVariables(i),k=b.group({"class":"apexcharts-rangebar-series apexcharts-plot-series"}),f=0;f<i.length;f++){var tt,it,rt,p=void 0,a=void 0,w=void 0,o=h.globals.comboCharts?r[f]:f,d=b.group({"class":"apexcharts-series",seriesName:n.escapeString(h.globals.seriesNames[o]),rel:f+1,"data:realIndex":o});for(i[f].length>0&&(this.visibleI=this.visibleI+1),c=0,v=0,this.yRatio.length>1&&(this.yaxisIndex=o),s=this.barHelpers.initialPositions(),a=s.y,rt=s.zeroW,p=s.x,v=s.barWidth,tt=s.xDivision,it=s.zeroH,ut=b.group({"class":"apexcharts-datalabels","data:realIndex":o}),e=0;e<h.globals.dataPoints;e++){var ft=this.barHelpers.getStrokeWidth(f,e,o),et=this.seriesRangeStart[f][e],ot=this.seriesRangeEnd[f][e],l=null,y=null,st={x:p,y:a,strokeWidth:ft,elSeries:d};if(w=s.yDivision,c=s.barHeight,this.isHorizontal){if(y=a+c*this.visibleI,g=this.seriesLen,h.config.plotOptions.bar.rangeBarGroupRows&&(g=1),ht=(w-c*g)/2,void 0===h.config.series[f].data[e])break;this.isTimelineBar&&h.config.series[f].data[e].x&&(nt=this.detectOverlappingBars({i:f,j:e,barYPosition:y,srty:ht,barHeight:c,yDivision:w,initPositions:s}),c=nt.barHeight,y=nt.barYPosition);v=(l=this.drawRangeBarPaths(u({indexes:{i:f,j:e,realIndex:o},barHeight:c,barYPosition:y,zeroW:rt,yDivision:w,y1:et,y2:ot},st))).barWidth}else c=(l=this.drawRangeColumnPaths(u({indexes:{i:f,j:e,realIndex:o},zeroH:it,barWidth:v,xDivision:tt},st))).barHeight;a=l.y;p=l.x;ct=this.barHelpers.getPathFillColor(i,f,e,o);lt=h.globals.stroke.colors[o];this.renderSeries({realIndex:o,pathFill:ct,lineFill:lt,j:e,i:f,x:p,y:a,y1:et,y2:ot,pathFrom:l.pathFrom,pathTo:l.pathTo,strokeWidth:ft,elSeries:d,series:i,barHeight:c,barYPosition:y,barWidth:v,elDataLabelsWrap:ut,visibleSeries:this.visibleI,type:"rangebar"})}k.add(d)}return k}},{key:"detectOverlappingBars",value:function(n){var i=n.i,s=n.j,f=n.barYPosition,h=n.srty,r=n.barHeight,u=n.yDivision,v=n.initPositions,t=this.w,e=[],c=t.config.series[i].data[s].rangeName,l=t.config.series[i].data[s].x,o=t.globals.labels.indexOf(l),a=t.globals.seriesRangeBarTimeline[i].findIndex(function(n){return n.x===l&&n.overlaps.length>0});return f=t.config.plotOptions.bar.rangeBarGroupRows?h+u*o:h+r*this.visibleI+u*o,a>-1&&!t.config.plotOptions.bar.rangeBarOverlap&&(e=t.globals.seriesRangeBarTimeline[i][a].overlaps).indexOf(c)>-1&&(f=(r=v.barHeight/e.length)*this.visibleI+u*(100-parseInt(this.barOptions.barHeight,10))/200+r*(this.visibleI+e.indexOf(c))+u*o),{barYPosition:f,barHeight:r}}},{key:"drawRangeColumnPaths",value:function(n){var f=n.indexes,e=n.x,w=(n.strokeWidth,n.xDivision),s=n.barWidth,h=n.zeroH,t=this.w,c=f.i,i=f.j,v=this.yRatio[this.yaxisIndex],y=f.realIndex,o=this.getRangeValue(y,i),r=Math.min(o.start,o.end),u=Math.max(o.start,o.end),l,p,a;return t.globals.isXNumeric&&(e=(t.globals.seriesX[c][i]-t.globals.minX)/this.xRatio-s/2),l=e+s*this.visibleI,void 0===this.series[c][i]||null===this.series[c][i]?r=h:(r=h-r/v,u=h-u/v),p=Math.abs(u-r),a=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:s,y1:r,y2:u,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:f.realIndex,i:y,j:i,w:t}),t.globals.isXNumeric||(e+=w),{pathTo:a.pathTo,pathFrom:a.pathFrom,barHeight:p,x:e,y:u,barXPosition:l}}},{key:"drawRangeBarPaths",value:function(n){var t=n.indexes,r=n.y,s=n.y1,h=n.y2,c=n.yDivision,l=n.barHeight,a=n.barYPosition,u=n.zeroW,f=this.w,e=u+s/this.invertedYRatio,i=u+h/this.invertedYRatio,v=Math.abs(i-e),o=this.barHelpers.getBarpaths({barYPosition:a,barHeight:l,x1:e,x2:i,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:f});return f.globals.isXNumeric||(r+=c),{pathTo:o.pathTo,pathFrom:o.pathFrom,barWidth:v,x:i,y:r}}},{key:"getRangeValue",value:function(n,t){var i=this.w;return{start:i.globals.seriesRangeStart[n][t],end:i.globals.seriesRangeEnd[n][t]}}},{key:"getTooltipValues",value:function(n){var b=n.ctx,i=n.seriesIndex,r=n.dataPointIndex,a=n.y1,v=n.y2,t=n.w,u=t.globals.seriesRangeStart[i][r],f=t.globals.seriesRangeEnd[i][r],o=t.globals.labels[r],l=t.config.series[i].name?t.config.series[i].name:"",y=t.config.tooltip.y.formatter,p=t.config.tooltip.y.title.formatter,w={w:t,seriesIndex:i,dataPointIndex:r,start:u,end:f},e;"function"==typeof p&&(l=p(l,w));Number.isFinite(a)&&Number.isFinite(v)&&(u=a,f=v,t.config.series[i].data[r].x&&(o=t.config.series[i].data[r].x+":"),"function"==typeof y&&(o=y(o,w)));var h="",c="",k=t.globals.colors[i];return void 0===t.config.tooltip.x.formatter?"datetime"===t.config.xaxis.type?(e=new s(b),h=e.formatDate(e.getDate(u),t.config.tooltip.x.format),c=e.formatDate(e.getDate(f),t.config.tooltip.x.format)):(h=u,c=f):(h=t.config.tooltip.x.formatter(u),c=t.config.tooltip.x.formatter(f)),{start:u,end:f,startVal:h,endVal:c,ylabel:o,color:k,seriesName:l}}},{key:"buildCustomTooltipHTML",value:function(n){var t=n.color,i=n.seriesName;return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(i||"")+'<\/span><\/div><div> <span class="category">
40'+n.ylabel+' <\/span> <span class="value start-value">'+n.start+'<\/span> <span class="separator">-<\/span> <span class="value end-value">'+n.end+"<\/span><\/div><\/div>"}}]),e}(b),it=function(){function t(n){i(this,t);this.opts=n}return r(t,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,n.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var n=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,r=t.dataPointIndex,u=t.w;return n._getBoxTooltip(u,i,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var n=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,r=t.dataPointIndex,u=t.w;return n._getBoxTooltip(u,i,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(n,t){t.ctx;var i=t.seriesIndex,r=t.dataPointIndex,u=t.w,f=u.globals.seriesRangeStart[i][r];return u.globals.seriesRangeEnd[i][r]-f},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(n){return n.w.config.plotOptions&&n.w.config.plotOptions.bar&&n.w.config.plotOptions.bar.horizontal?function(n){var i=new ct(n.ctx,null),t=i.getTooltipValues(n),r=t.color,u=t.seriesName,f=t.ylabel,e=t.startVal,o=t.endVal;return i.buildCustomTooltipHTML({color:r,seriesName:u,ylabel:f,start:e,end:o})}(n):function(n){var i=new ct(n.ctx,null),t=i.getTooltipValues(n),r=t.color,u=t.seriesName,f=t.ylabel,e=t.start,o=t.end;return i.buildCustomTooltipHTML({color:r,seriesName:u,ylabel:f,start:e,end:o})}(n)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(t){return n.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(n){n.dataLabels=n.dataLabels||{};n.dataLabels.formatter=n.dataLabels.formatter||void 0;var t=n.dataLabels.formatter;return n.yaxis.forEach(function(t,i){n.yaxis[i].min=0;n.yaxis[i].max=100}),"bar"===n.chart.type&&(n.dataLabels.formatter=t||function(n){return"number"==typeof n&&n?n.toFixed(0)+"%":n}),n}},{key:"convertCatToNumeric",value:function(n){return n.xaxis.convertedCatToNumeric=!0,n}},{key:"convertCatToNumericXaxis",value:function(t,i,r){t.xaxis.type="numeric";t.xaxis.labels=t.xaxis.labels||{};t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return n.isNumber(t)?Math.floor(t):t};var f=t.xaxis.labels.formatter,u=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return r&&r.length&&(u=r.map(function(n){return Array.isArray(n)?n:String(n)})),u&&u.length&&(t.xaxis.labels.formatter=function(t){return n.isNumber(t)?f(u[Math.floor(t)-1]):f(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(n){return n},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(n,t,i,r,u){var e=n.globals.seriesCandleO[t][i],o=n.globals.seriesCandleH[t][i],f=n.globals.seriesCandleM[t][i],s=n.globals.seriesCandleL[t][i],h=n.globals.seriesCandleC[t][i];return n.config.series[t].type&&n.config.series[t].type!==u?'<div class="apexcharts-custom-tooltip">\n          '.concat(n.config.series[t].name?n.config.series[t].name:"series-"+(t+1),": <strong>").concat(n.globals.series[t][i],"<\/strong>\n        <\/div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(n.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+e+"<\/span><\/div>"+"<div>".concat(r[1],': <span class="value">')+o+"<\/span><\/div>"+(f?"<div>".concat(r[2],': <span class="value">')+f+"<\/span><\/div>":"")+"<div>".concat(r[3],': <span class="value">')+s+"<\/span><\/div>"+"<div>".concat(r[4],': <span class="value">')+h+"<\/span><\/div><\/div>"}}]),t}(),rt=function(){function t(n){i(this,t);this.opts=n}return r(t,[{key:"init",value:function(t){var h=t.responsiveOverride,i=this.opts,c=new v,u=new it(i),f,o,r,s;return this.chartType=i.chart.type,"histogram"===this.chartType&&(i.chart.type="bar",i=n.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i),f=c.init(),o={},i&&"object"===e(i)&&(r={},r=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?u[i.chart.type]():u.line(),i.chart.brush&&i.chart.brush.enabled&&(r=u.brush(r)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=u.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},h||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,r,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(r=u.sparkline(r)),o=n.extend(f,r)),s=n.extend(o,window.Apex),f=n.extend(s,i),f=this.handleUserInputErrors(f)}},{key:"checkForCatToNumericXAxis",value:function(n,t,i){var r=new it(i),u="bar"===n&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,f="pie"===n||"polarArea"===n||"donut"===n||"radar"===n||"radialBar"===n||"heatmap"===n,e="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,o=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return u||f||!e||"between"===o||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,i){var f=new v,u,r;return(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=n.extend(t.yaxis,window.Apex.yaxis)),t.yaxis=t.yaxis.constructor!==Array?[n.extend(f.yAxis,t.yaxis)]:n.extendArray(t.yaxis,f.yAxis),u=!1,t.yaxis.forEach(function(n){n.logarithmic&&(u=!0)}),r=t.series,i&&!r&&(r=i.config.series),u&&r.length!==t.yaxis.length&&r.length&&(t.yaxis=r.map(function(i,u){if(i.name||(r[u].name="series-".concat(u+1)),t.yaxis[u])return t.yaxis[u].seriesName=r[u].name,t.yaxis[u];var e=n.extend(f.yAxis,t.yaxis[0]);return e.show=!1,e})),u&&r.length>1&&r.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),t}},{key:"extendAnnotations",value:function(n){return void 0===n.annotations&&(n.annotations={},n.annotations.yaxis=[],n.annotations.xaxis=[],n.annotations.points=[]),n=this.extendYAxisAnnotations(n),n=this.extendXAxisAnnotations(n),n=this.extendPointAnnotations(n)}},{key:"extendYAxisAnnotations",value:function(t){var i=new v;return t.annotations.yaxis=n.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],i.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var i=new v;return t.annotations.xaxis=n.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],i.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var i=new v;return t.annotations.points=n.extendArray(void 0!==t.annotations.points?t.annotations.points:[],i.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(n){n.theme&&"dark"===n.theme.mode&&(n.tooltip||(n.tooltip={}),"light"!==n.tooltip.theme&&(n.tooltip.theme="dark"),n.chart.foreColor||(n.chart.foreColor="#f6f7f8"),n.chart.background||(n.chart.background="#424242"),n.theme.palette||(n.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(n){var t=n;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0);t.xaxis.tooltip.enabled=!1;t.yaxis[0].tooltip.enabled=!1;t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'),t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t.chart.group&&0===t.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(t.stroke.width)&&"line"!==t.chart.type&&"area"!==t.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),t.stroke.width=t.stroke.width[0]),t}}]),t}(),ri=function(){function t(){i(this,t)}return r(t,[{key:"initGlobalVars",value:function(n){n.series=[];n.seriesCandleO=[];n.seriesCandleH=[];n.seriesCandleM=[];n.seriesCandleL=[];n.seriesCandleC=[];n.seriesRangeStart=[];n.seriesRangeEnd=[];n.seriesRangeBarTimeline=[];n.seriesPercent=[];n.seriesGoals=[];n.seriesX=[];n.seriesZ=[];n.seriesNames=[];n.seriesTotals=[];n.seriesLog=[];n.seriesColors=[];n.stackedSeriesTotals=[];n.seriesXvalues=[];n.seriesYvalues=[];n.labels=[];n.categoryLabels=[];n.timescaleLabels=[];
40n.noLabelsProvided=!1;n.resizeTimer=null;n.selectionResizeTimer=null;n.delayedElements=[];n.pointsArray=[];n.dataLabelsRects=[];n.isXNumeric=!1;n.xaxisLabelsCount=0;n.skipLastTimelinelabel=!1;n.skipFirstTimelinelabel=!1;n.isDataXYZ=!1;n.isMultiLineX=!1;n.isMultipleYAxis=!1;n.maxY=-Number.MAX_VALUE;n.minY=Number.MIN_VALUE;n.minYArr=[];n.maxYArr=[];n.maxX=-Number.MAX_VALUE;n.minX=Number.MAX_VALUE;n.initialMaxX=-Number.MAX_VALUE;n.initialMinX=Number.MAX_VALUE;n.maxDate=0;n.minDate=Number.MAX_VALUE;n.minZ=Number.MAX_VALUE;n.maxZ=-Number.MAX_VALUE;n.minXDiff=Number.MAX_VALUE;n.yAxisScale=[];n.xAxisScale=null;n.xAxisTicksPositions=[];n.yLabelsCoords=[];n.yTitleCoords=[];n.barPadForNumericAxis=0;n.padHorizontal=0;n.xRange=0;n.yRange=[];n.zRange=0;n.dataPoints=0;n.xTickAmount=0}},{key:"globalVars",value:function(n){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:n.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===n.chart.toolbar.autoSelected&&n.chart.toolbar.tools.zoom&&n.chart.zoom.enabled,panEnabled:"pan"===n.chart.toolbar.autoSelected&&n.chart.toolbar.tools.pan,selectionEnabled:"selection"===n.chart.toolbar.autoSelected&&n.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var i=this.globalVars(t);return this.initGlobalVars(i),i.initialConfig=n.extend({},t),i.initialSeries=n.clone(t.series),i.lastXAxis=n.clone(i.initialConfig.xaxis),i.lastYAxis=n.clone(i.initialConfig.yaxis),i}}]),t}(),tr=function(){function n(t){i(this,n);this.opts=t}return r(n,[{key:"init",value:function(){var n=new rt(this.opts).init({responsiveOverride:!1});return{config:n,globals:(new ri).init(n)}}}]),n}(),ui=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w;this.twoDSeries=[];this.threeDSeries=[];this.twoDSeriesX=[];this.seriesGoals=[];this.coreUtils=new f(this.ctx)}return r(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var n=this.w.config.series.slice(),t=new h(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==n[this.activeSeriesIndex].data&&n[this.activeSeriesIndex].data.length>0&&null!==n[this.activeSeriesIndex].data[0]&&void 0!==n[this.activeSeriesIndex].data[0].x&&null!==n[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var n=this.w.config.series.slice(),t=new h(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==n[this.activeSeriesIndex].data&&n[this.activeSeriesIndex].data.length>0&&void 0!==n[this.activeSeriesIndex].data[0]&&null!==n[this.activeSeriesIndex].data[0]&&n[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,i){for(var f,u,e=this.w.config,o=this.w.globals,s="boxPlot"===e.chart.type||"boxPlot"===e.series[i].type,r=0;r<t[i].data.length;r++)(void 0!==t[i].data[r][1]&&(Array.isArray(t[i].data[r][1])&&4===t[i].data[r][1].length&&!s?this.twoDSeries.push(n.parseNumber(t[i].data[r][1][3])):t[i].data[r].length>=5?this.twoDSeries.push(n.parseNumber(t[i].data[r][4])):this.twoDSeries.push(n.parseNumber(t[i].data[r][1])),o.dataFormatXNumeric=!0),"datetime"===e.xaxis.type)?(f=new Date(t[i].data[r][0]),f=new Date(f).getTime(),this.twoDSeriesX.push(f)):this.twoDSeriesX.push(t[i].data[r][0]);for(u=0;
40u<t[i].data.length;u++)void 0!==t[i].data[u][2]&&(this.threeDSeries.push(t[i].data[u][2]),o.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,i){var h=this.w.config,e=this.w.globals,c=new s(this.ctx),u=i,f,r,v,o;for(e.collapsedSeriesIndices.indexOf(i)>-1&&(u=this.activeSeriesIndex),f=0;f<t[i].data.length;f++)void 0!==t[i].data[f].y&&(Array.isArray(t[i].data[f].y)?this.twoDSeries.push(n.parseNumber(t[i].data[f].y[t[i].data[f].y.length-1])):this.twoDSeries.push(n.parseNumber(t[i].data[f].y))),void 0!==t[i].data[f].goals&&Array.isArray(t[i].data[f].goals)?(void 0===this.seriesGoals[i]&&(this.seriesGoals[i]=[]),this.seriesGoals[i].push(t[i].data[f].goals)):(void 0===this.seriesGoals[i]&&(this.seriesGoals[i]=[]),this.seriesGoals[i].push(null));for(r=0;r<t[u].data.length;r++){var l="string"==typeof t[u].data[r].x,a=Array.isArray(t[u].data[r].x),y=!a&&!!c.isValidDate(t[u].data[r].x.toString());l||y?l||h.xaxis.convertedCatToNumeric?(v=e.isBarHorizontal&&e.isRangeData,"datetime"!==h.xaxis.type||v?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[u].data[r].x)):this.twoDSeriesX.push(c.parseDate(t[u].data[r].x))):"datetime"===h.xaxis.type?this.twoDSeriesX.push(c.parseDate(t[u].data[r].x.toString())):(e.dataFormatXNumeric=!0,e.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[u].data[r].x))):a?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[u].data[r].x)):(e.isXNumeric=!0,e.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[u].data[r].x))}if(t[i].data[0]&&void 0!==t[i].data[0].z){for(o=0;o<t[i].data.length;o++)this.threeDSeries.push(t[i].data[o].z);e.isDataXYZ=!0}}},{key:"handleRangeData",value:function(n,t){var u=this.w.config,r=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",n,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",n,t)),r.seriesRangeStart.push(i.start),r.seriesRangeEnd.push(i.end),"datetime"===u.xaxis.type&&r.seriesRangeBarTimeline.push(i.rangeUniques),r.seriesRangeBarTimeline.forEach(function(n){n&&n.forEach(function(n){n.y.forEach(function(t,i){for(var r=0;r<n.y.length;r++)if(i!==r){var u=t.y1,f=t.y2,e=n.y[r].y1;u<=n.y[r].y2&&e<=f&&(n.overlaps.indexOf(t.rangeName)<0&&n.overlaps.push(t.rangeName),n.overlaps.indexOf(n.y[r].rangeName)<0&&n.overlaps.push(n.y[r].rangeName))}})})}),i}},{key:"handleCandleStickBoxData",value:function(n,t){var r=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",n,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",n,t)),r.seriesCandleO[t]=i.o,r.seriesCandleH[t]=i.h,r.seriesCandleM[t]=i.m,r.seriesCandleL[t]=i.l,r.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(t,i,r){var e=[],o=[],s=i[r].data.filter(function(n,t,i){return t===i.findIndex(function(t){return t.x===n.x})}).map(function(n){return{x:n.x,overlaps:[],y:[]}}),c="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",l=new h(this.ctx).getActiveConfigSeriesIndex(),u,a,f;if("array"===t){if(2!==i[l].data[0][1].length)throw new Error(c);for(u=0;u<i[r].data.length;u++)e.push(i[r].data[u][1][0]),o.push(i[r].data[u][1][1])}else if("xy"===t){if(2!==i[l].data[0].y.length)throw new Error(c);for(a=function(t){var f=n.randomId(),c=i[r].data[t].x,u={y1:i[r].data[t].y[0],y2:i[r].data[t].y[1],rangeName:f},h;i[r].data[t].rangeName=f;h=s.findIndex(function(n){return n.x===c});s[h].y.push(u);e.push(u.y1);o.push(u.y2)},f=0;f<i[r].data.length;f++)a(f)}return{start:e,end:o,rangeUniques:s}}},{key:"handleCandleStickBoxDataFormat",value:function(n,t,i){var a=this.w,s="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type,h=[],c=[],l=[],e=[],o=[],f,r,u;if("array"===n)if(s&&6===t[i].data[0].length||!s&&5===t[i].data[0].length)for(f=0;f<t[i].data.length;f++)h.push(t[i].data[f][1]),c.push(t[i].data[f][2]),s?(l.push(t[i].data[f][3]),e.push(t[i].data[f][4]),o.push(t[i].data[f][5])):(e.push(t[i].data[f][3]),o.push(t[i].data[f][4]));else for(r=0;r<t[i].data.length;r++)Array.isArray(t[i].data[r][1])&&(h.push(t[i].data[r][1][0]),c.push(t[i].data[r][1][1]),s?(l.push(t[i].data[r][1][2]),e.push(t[i].data[r][1][3]),o.push(t[i].data[r][1][4])):(e.push(t[i].data[r][1][2]),o.push(t[i].data[r][1][3])));else if("xy"===n)for(u=0;
40u<t[i].data.length;u++)Array.isArray(t[i].data[u].y)&&(h.push(t[i].data[u].y[0]),c.push(t[i].data[u].y[1]),s?(l.push(t[i].data[u].y[2]),e.push(t[i].data[u].y[3]),o.push(t[i].data[u].y[4])):(e.push(t[i].data[u].y[2]),o.push(t[i].data[u].y[3])));return{o:h,h:c,m:l,l:e,c:o}}},{key:"parseDataAxisCharts",value:function(t){var e=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,u=this.w.config,r=this.w.globals,o=new s(l),f=u.labels.length>0?u.labels.slice():u.xaxis.categories.slice(),h,i,c;for(r.isTimelineBar="rangeBar"===u.chart.type&&"datetime"===u.xaxis.type,h=function(){for(var n=0;n<f.length;n++)if("string"==typeof f[n]){if(!o.isValidDate(f[n]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(o.parseDate(f[n]))}else e.twoDSeriesX.push(f[n])},i=0;i<t.length;i++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[i].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");("rangeBar"!==u.chart.type&&"rangeArea"!==u.chart.type&&"rangeBar"!==t[i].type&&"rangeArea"!==t[i].type||(r.isRangeData=!0,this.handleRangeData(t,i)),this.isMultiFormat())?(this.isFormat2DArray()?this.handleFormat2DArray(t,i):this.isFormatXY()&&this.handleFormatXY(t,i),"candlestick"!==u.chart.type&&"candlestick"!==t[i].type&&"boxPlot"!==u.chart.type&&"boxPlot"!==t[i].type||this.handleCandleStickBoxData(t,i),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,i!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0)):("datetime"===u.xaxis.type?(r.isXNumeric=!0,h(),r.seriesX.push(this.twoDSeriesX)):"numeric"===u.xaxis.type&&(r.isXNumeric=!0,f.length>0&&(this.twoDSeriesX=f,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX),c=t[i].data.map(function(t){return n.parseNumber(t)}),r.series.push(c));r.seriesZ.push(this.threeDSeries);void 0!==t[i].name?r.seriesNames.push(t[i].name):r.seriesNames.push("series-"+parseInt(i+1,10));void 0!==t[i].color?r.seriesColors.push(t[i].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(n){var t=this.w.globals,r=this.w.config,i;for(t.series=n.slice(),t.seriesNames=r.labels.slice(),i=0;i<t.series.length;i++)void 0===t.seriesNames[i]&&t.seriesNames.push("series-"+(i+1));return this.w}},{key:"handleExternalLabelsData",value:function(n){var i=this.w.config,t=this.w.globals;i.xaxis.categories.length>0?t.labels=i.xaxis.categories:i.labels.length>0?t.labels=i.labels.slice():this.fallbackToCategory?(t.labels=t.labels[0],t.seriesRangeBarTimeline.length&&(t.seriesRangeBarTimeline.map(function(n){n.forEach(function(n){t.labels.indexOf(n.x)<0&&n.x&&t.labels.push(n.x)})}),t.labels=t.labels.filter(function(n,t,i){return i.indexOf(n)===t})),i.xaxis.convertedCatToNumeric)&&(new it(i).convertCatToNumericXaxis(i,this.ctx,t.seriesX[0]),this._generateExternalLabels(n)):this._generateExternalLabels(n)}},{key:"_generateExternalLabels",value:function(n){var t=this.w.globals,e=this.w.config,i=[],r,u,f;if(t.axisCharts){if(t.series.length>0)for(r=0;r<t.series[t.maxValsInArrayIndex].length;r++)i.push(r+1);for(t.seriesX=[],u=0;u<n.length;u++)t.seriesX.push(i);t.isXNumeric=!0}if(0===i.length)for(i=t.axisCharts?[]:t.series.map(function(n,t){return t+1}),f=0;f<n.length;f++)t.seriesX.push(i);t.labels=i;e.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map(function(n){return e.xaxis.labels.formatter(n)}));t.noLabelsProvided=!0}},{key:"parseData",value:function(n){var f=this.w,i=f.config,t=f.globals,e,u,r;for((this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),t.axisCharts?this.parseDataAxisCharts(n):this.parseDataNonAxisCharts(n),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked)&&(e=new h(this.ctx),t.series=e.setNullSeriesToZeroValues(t.series)),this.coreUtils.getSeriesTotals(),t.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),t.dataFormatXNumeric||t.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(n),u=this.coreUtils.getCategoryLabels(t.labels),r=0;r<u.length;r++)if(Array.isArray(u[r])){t.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,n=this.w;n.globals.ignoreYAxisIndexes=n.globals.collapsedSeries.map(function(i){if(t.w.globals.isMultipleYAxis&&!n.config.chart.stacked)return i.index})}}]),t}(),et=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w;this.tooltipKeyFormat="dd MMM"}return r(t,[{key:"xLabelFormat",value:function(n,t,i,r){var u=this.w,f;return"datetime"===u.config.xaxis.type&&void 0===u.config.xaxis.labels.formatter&&void 0===u.config.tooltip.x.formatter?(f=new s(this.ctx),f.formatDate(f.getDate(t),u.config.tooltip.x.format)):n(t,i,r)}},{key:"defaultGeneralFormatter",value:function(n){return Array.isArray(n)?n.map(function(n){return n}):n}},{key:"defaultYFormatter",value:function(t,i,r){var u=this.w;return n.isNumber(t)&&(t=0!==u.globals.yValueDecimal?t.toFixed(void 0!==i.decimalsInFloat?i.decimalsInFloat:u.globals.yValueDecimal):u.globals.maxYArr[r]-u.globals.minYArr[r]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var i=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(n){return i.defaultGeneralFormatter(n)},t.globals.ttKeyFormatter=function(n){return i.defaultGeneralFormatter(n)},t.globals.ttZFormatter=function(n){return n},t.globals.legendFormatter=function(n){return i.defaultGeneralFormatter(n)},t.globals.xLabelFormatter=void 0!==t.config.xaxis.labels.formatter?t.config.xaxis.labels.formatter:function(i){if(n.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(n.isNumber(t.config.xaxis.decimalsInFloat))return i.toFixed(t.config.xaxis.decimalsInFloat);var r=t.globals.maxX-t.globals.minX;return r>0&&r<100?i.toFixed(1):i.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},t.globals.ttKeyFormatter="function"==typeof t.config.tooltip.x.formatter?t.config.tooltip.x.formatter:t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(n,r){t.globals.yLabelFormatters[r]=void 0!==n.labels.formatter?n.labels.formatter:function(u){return t.globals.xyCh
40arts?Array.isArray(u)?u.map(function(t){return i.defaultYFormatter(t,n,r)}):i.defaultYFormatter(u,n,r):u}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var n=this.w,t;"heatmap"===n.config.chart.type&&(n.globals.yAxisScale[0].result=n.globals.seriesNames.slice(),t=n.globals.seriesNames.reduce(function(n,t){return n.length>t.length?n:t},0),n.globals.yAxisScale[0].niceMax=t,n.globals.yAxisScale[0].niceMin=t)}}]),t}(),y=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"getLabel",value:function(n,i,r,u){var w=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",e=this.w,o=void 0===n[u]?"":n[u],f=o,b=e.globals.xLabelFormatter,h=e.config.xaxis.labels.formatter,v=!1,k=new et(this.ctx),d=o,y,c,l,p;return f=k.xLabelFormat(b,o,d,{i:u,dateFormatter:new s(this.ctx).formatDate,w:e}),void 0!==h&&(f=h(o,n[u],{i:u,dateFormatter:new s(this.ctx).formatDate,w:e})),y=function(n){var t=null;return i.forEach(function(n){"month"===n.unit?t="year":"day"===n.unit?t="month":"hour"===n.unit?t="day":"minute"===n.unit&&(t="hour")}),t===n},i.length>0?(v=y(i[u].unit),r=i[u].position,f=i[u].value):"datetime"===e.config.xaxis.type&&void 0===h&&(f=""),void 0===f&&(f=""),f=Array.isArray(f)?f:f.toString(),c=new t(this.ctx),l={},l=e.globals.rotateXLabels?c.getTextRects(f,parseInt(a,10),null,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1):c.getTextRects(f,parseInt(a,10)),p=!e.config.xaxis.labels.showDuplicates&&this.ctx.timeScale,!Array.isArray(f)&&(0===f.indexOf("NaN")||0===f.toLowerCase().indexOf("invalid")||f.toLowerCase().indexOf("infinity")>=0||w.indexOf(f)>=0&&p)&&(f=""),{x:r,text:f,textRect:l,isBold:v}}},{key:"checkLabelBasedOnTickamount",value:function(n,t,i){var u=this.w,r=u.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(u.globals.gridWidth/120)),r>i||n%Math.round(i/(r+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(n,t,i,r,u){var f=this.w,e;return(0===n&&f.globals.skipFirstTimelinelabel&&(t.text=""),n===i-1&&f.globals.skipLastTimelinelabel&&(t.text=""),f.config.xaxis.labels.hideOverlappingLabels&&r.length>0)&&(e=u[u.length-1],t.x<e.textRect.width/(f.globals.rotateXLabels?Math.abs(f.config.xaxis.labels.rotate)/12:1.01)+e.x&&(t.text="")),t}},{key:"checkForReversedLabels",value:function(n,t){var i=this.w;return i.config.yaxis[n]&&i.config.yaxis[n].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(n){var t=this.w,i=new f(this.ctx);return!t.config.yaxis[n].show||!t.config.yaxis[n].showForNullSeries&&i.isSeriesNull(n)&&-1===t.globals.collapsedSeriesIndices.indexOf(n)}},{key:"getYAxisForeColor",value:function(n,t){var i=this.w;return Array.isArray(n)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(n,i.globals.yAxisScale[t].result.length,!1),n}},{key:"drawYAxisTicks",value:function(n,i,r,u,f,e,o){var s=this.w,v=new t(this.ctx),l=s.globals.translateY,c,h,a;if(u.show&&i>0)for(!0===s.config.yaxis[f].opposite&&(n+=u.width),c=i;c>=0;c--)h=l+i/10+s.config.yaxis[f].labels.offsetY-1,s.globals.isBarHorizontal&&(h=e*c),"heatmap"===s.config.chart.type&&(h+=e/2),a=v.drawLine(n+r.offsetX-u.width+u.offsetX,h+u.offsetY,n+r.offsetX+u.offsetX,h+u.offsetY,u.color),o.add(a),l+=e}}]),n}(),lt=function(){function t(n){i(this,t);d(this,"scaleSvgNode",function(n,t){var i=parseFloat(n.getAttributeNS(null,"width")),r=parseFloat(n.getAttributeNS(null,"height"));n.setAttributeNS(null,"width",i*t);n.setAttributeNS(null,"height",r*t);n.setAttributeNS(null,"viewBox","0 0 "+i+" "+r)});this.ctx=n;this.w=n.w}return r(t,[{key:"fixSvgStringForIe11",value:function(t){if(!n.isIE11())return t;var r=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(n){return 2==++r?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"':n});return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(n){var i=this.w.globals.dom.Paper.svg(),t;return 1!==n&&(t=this.w.globals.dom.Paper.node.cloneNode(!0),this.scaleSvgNode(t,n),i=(new XMLSerializer).serializeToString(t)),this.fixSvgStringForIe11(i)}},{key:"cleanup",value:function(){var i=this.w,n=i.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),t=i.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=i.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,function(n){n.setAttribute("width",0)});n&&n[0]&&(n[0].setAttribute("x",-500),n[0].setAttribute("x1",-500),n[0].setAttribute("x2",-500));t&&t[0]&&(t[0].setAttribute("y",-100),t[0].setAttribute("y1",-100),t[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var n=this.getSvgString(),t=new Blob([n],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(t){var i=this;return new Promise(function(r){var f=i.w,e=t?t.scale||t.width/f.globals.svgWidth:1,u,l,o,h,c,a,v,s;i.cleanup();u=document.createElement("canvas");u.width=f.globals.svgWidth*e;u.height=parseInt(f.globals.dom.elWrap.style.height,10)*e;l="transparent"===f.config.chart.background?"#fff":f.config.chart.background;o=u.getContext("2d");o.fillStyle=l;o.fillRect(0,0,u.width*e,u.height*e);h=i.getSvgString(e);window.canvg&&n.isIE11()?(c=window.canvg.Canvg.fromString(o,h,{ignoreClear:!0,ignoreDimensions:!0}),c.start(),a=u.msToBlob(),c.stop(),r({blob:a})):(v="data:image/svg+xml,"+encodeURIComponent(h),s=new Image,s.crossOrigin="anonymous",s.onload=function(){var n,t;(o.drawImage(s,0,0),u.msToBlob)?(n=u.msToBlob(),r({blob:n})):(t=u.toDataURL("image/png"),r({imgURI:t}))},s.src=v)})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.f
40ilename,".svg")}},{key:"exportToPng",value:function(){var n=this;this.dataURI().then(function(t){var r=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,n.w.globals.chartID+".png"):n.triggerDownload(r,n.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var l=this,f=t.series,u=t.columnDelimiter,o=t.lineDelimiter,a=void 0===o?"\n":o,i=this.w,r=[],e=[],s="data:text/csv;charset=utf-8,",c=new ui(this.ctx),v=new y(this.ctx),p=function(t){var r="",f,e;return i.globals.axisCharts?(("category"===i.config.xaxis.type||i.config.xaxis.convertedCatToNumeric)&&(i.globals.isBarHorizontal?(f=i.globals.yLabelFormatters[0],e=new h(l.ctx).getActiveConfigSeriesIndex(),r=f(i.globals.labels[t],{seriesIndex:e,dataPointIndex:t,w:i})):r=v.getLabel(i.globals.labels,i.globals.timescaleLabels,0,t).text),"datetime"===i.config.xaxis.type&&(i.config.xaxis.categories.length?r=i.config.xaxis.categories[t]:i.config.labels.length&&(r=i.config.labels[t]))):r=i.config.labels[t],Array.isArray(r)&&(r=r.join(" ")),n.isNumber(r)?r:r.split(u).join("")};r.push(i.config.chart.toolbar.export.csv.headerCategory);f.map(function(n,t){var f=n.name?n.name:"series-".concat(t);i.globals.axisCharts&&r.push(f.split(u).join("")?f.split(u).join(""):"series-".concat(t))});i.globals.axisCharts||(r.push(i.config.chart.toolbar.export.csv.headerValue),e.push(r.join(u)));f.map(function(t,o){i.globals.axisCharts?function(t,o){var s,h,l,a;if(r.length&&0===o&&e.push(r.join(u)),t.data&&t.data.length)for(s=0;s<t.data.length;s++){if(r=[],h=p(s),h||(c.isFormatXY()?h=f[o].data[s].x:c.isFormat2DArray()&&(h=f[o].data[s]?f[o].data[s][0]:"")),0===o)for(r.push((a=h,"datetime"===i.config.xaxis.type&&String(a).length>=10?i.config.chart.toolbar.export.csv.dateFormatter(h):n.isNumber(h)?h:h.split(u).join(""))),l=0;l<i.globals.series.length;l++)r.push(i.globals.series[l][s]);("candlestick"===i.config.chart.type||t.type&&"candlestick"===t.type)&&(r.pop(),r.push(i.globals.seriesCandleO[o][s]),r.push(i.globals.seriesCandleH[o][s]),r.push(i.globals.seriesCandleL[o][s]),r.push(i.globals.seriesCandleC[o][s]));("boxPlot"===i.config.chart.type||t.type&&"boxPlot"===t.type)&&(r.pop(),r.push(i.globals.seriesCandleO[o][s]),r.push(i.globals.seriesCandleH[o][s]),r.push(i.globals.seriesCandleM[o][s]),r.push(i.globals.seriesCandleL[o][s]),r.push(i.globals.seriesCandleC[o][s]));"rangeBar"===i.config.chart.type&&(r.pop(),r.push(i.globals.seriesRangeStart[o][s]),r.push(i.globals.seriesRangeEnd[o][s]));r.length&&e.push(r.join(u))}}(t,o):((r=[]).push(i.globals.labels[o].split(u).join("")),r.push(i.globals.series[o]),e.push(r.join(u)))});s+=e.join(a);this.triggerDownload(encodeURI(s),i.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(n,t,i){var r=document.createElement("a");r.href=n;r.download=(t||this.w.globals.chartID)+i;document.body.appendChild(r);r.click();document.body.removeChild(r)}}]),t}(),ut=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w;var r=this.w;this.axesUtils=new y(t);this.xaxisLabels=r.globals.labels.slice();r.globals.timescaleLabels.length>0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice());r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories);this.drawnLabels=[];this.drawnLabelsRects=[];this.offY="top"===r.config.xaxis.position?0:r.globals.gridHeight+1;this.offY=this.offY+r.config.xaxis.axisBorder.offsetY;this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize;this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily;this.xaxisForeColors=r.config.xaxis.labels.style.colors;this.xaxisBorderWidth=r.config.xaxis.axisBorder.width;this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString());this.xaxisBorderWidth=this.xaxisBorderWidth.indexOf("%")>-1?r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:parseInt(this.xaxisBorderWidth,10);this.xaxisBorderHeight=r.config.xaxis.axisBorder.height;this.yaxis=r.config.yaxis[0]}return r(n,[{key:"drawXaxis",value:function(){var u,i=this,n=this.w,e=new t(this.ctx),o=e.group({"class":"apexcharts-xaxis",transform:"translate(".concat(n.config.xaxis.offsetX,", ").concat(n.config.xaxis.offsetY,")")}),v=e.group({"class":"apexcharts-xaxis-texts-g",transform:"translate(".concat(n.globals.translateXAxisX,", ").concat(n.globals.translateXAxisY,")")}),r,y,p,h,l,w,a,b;o.add(v);for(var f=n.globals.padHorizontal,s=[],c=0;c<this.xaxisLabels.length;c++)s.push(this.xaxisLabels[c]);for(r=s.length,n.globals.isXNumeric?(y=r>1?r-1:r,u=n.globals.gridWidth/y,f=f+u/2+n.config.xaxis.labels.offsetX):(u=n.globals.gridWidth/s.length,f=f+u+n.config.xaxis.labels.offsetX),p=function(t){var a=f-u/2+n.config.xaxis.labels.offsetX,o,h,c,l;0===t&&1===r&&u/2===f&&1===n.globals.dataPoints&&(a=n.globals.gridWidth/2);o=i.axesUtils.getLabel(s,n.globals.timescaleLabels,a,t,i.drawnLabels,i.xaxisFontSize);h=28;n.globals.rotateXLabels&&(h=22);((o=void 0!==n.config.xaxis.tickAmount&&"dataPoints"!==n.config.xaxis.tickAmount&&"datetime"!==n.config.xaxis.type?i.axesUtils.checkLabelBasedOnTickamount(t,o,r):i.axesUtils.checkForOverflowingLabels(t,o,r,i.drawnLabels,i.drawnLabelsRects)).text&&n.globals.xaxisLabelsCount++,n.config.xaxis.labels.show)&&(c=e.drawText({x:o.x,y:i.offY+n.config.xaxis.labels.offsetY+h-("top"===n.config.xaxis.position?n.globals.xAxisHeight+n.config.xaxis.axisTicks.height-2:0),text:o.text,textAnchor:"middle",fontWeight:o.isBold?600:n.config.xaxis.labels.style.fontWeight,fontSize:i.xaxisFontSize,fontFamily:i.xaxisFontFamily,foreColor:Array.isArray(i.xaxisForeColors)?n.config.xaxis.convertedCatToNumeric?i.xaxisForeColors[n.globals.minX+t-1]:i.xaxisForeColors[t]:i.xaxisForeColors,isPlainText:!1,
40cssClass:"apexcharts-xaxis-label "+n.config.xaxis.labels.style.cssClass}),v.add(c),l=document.createElementNS(n.globals.SVGNS,"title"),l.textContent=Array.isArray(o.text)?o.text.join(" "):o.text,c.node.appendChild(l),""!==o.text&&(i.drawnLabels.push(o.text),i.drawnLabelsRects.push(o)));f+=u},h=0;h<=r-1;h++)p(h);return void 0!==n.config.xaxis.title.text&&(l=e.group({"class":"apexcharts-xaxis-title"}),w=e.drawText({x:n.globals.gridWidth/2+n.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+n.globals.xAxisLabelsHeight+n.config.xaxis.title.offsetY,text:n.config.xaxis.title.text,textAnchor:"middle",fontSize:n.config.xaxis.title.style.fontSize,fontFamily:n.config.xaxis.title.style.fontFamily,fontWeight:n.config.xaxis.title.style.fontWeight,foreColor:n.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+n.config.xaxis.title.style.cssClass}),l.add(w),o.add(l)),n.config.xaxis.axisBorder.show&&(a=n.globals.barPadForNumericAxis,b=e.drawLine(n.globals.padHorizontal+n.config.xaxis.axisBorder.offsetX-a,this.offY,this.xaxisBorderWidth+a,this.offY,n.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight),o.add(b)),o}},{key:"drawXaxisInversed",value:function(n){var o,a,y=this,i=this.w,u=new t(this.ctx),p=i.config.yaxis[0].opposite?i.globals.translateYAxisX[n]:0,s=u.group({"class":"apexcharts-yaxis apexcharts-xaxis-inversed",rel:n}),w=u.group({"class":"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+p+", 0)"}),f,c,b,r,k,l,v,d,h,e,g;if(s.add(w),f=[],i.config.yaxis[n].show)for(c=0;c<this.xaxisLabels.length;c++)f.push(this.xaxisLabels[c]);if(o=i.globals.gridHeight/f.length,a=-o/2.2,b=i.globals.yLabelFormatters[0],r=i.config.yaxis[0].labels,r.show)for(k=function(t){var e=void 0===f[t]?"":f[t],h,c,s,l,v;e=b(e,{seriesIndex:n,dataPointIndex:t,w:i});h=y.axesUtils.getYAxisForeColor(r.style.colors,n);c=0;Array.isArray(e)&&(c=e.length/2*parseInt(r.style.fontSize,10));s=u.drawText({x:r.offsetX-15,y:a+o+r.offsetY-c,text:e,textAnchor:y.yaxis.opposite?"start":"end",foreColor:Array.isArray(h)?h[t]:h,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,fontWeight:r.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.style.cssClass});w.add(s);l=document.createElementNS(i.globals.SVGNS,"title");(l.textContent=Array.isArray(e)?e.join(" "):e,s.node.appendChild(l),0!==i.config.yaxis[n].labels.rotate)&&(v=u.rotateAroundCenter(s.node),s.node.setAttribute("transform","rotate(".concat(i.config.yaxis[n].labels.rotate," 0 ").concat(v.y,")")));a+=o},l=0;l<=f.length-1;l++)k(l);return void 0!==i.config.yaxis[0].title.text&&(v=u.group({"class":"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+p+", 0)"}),d=u.drawText({x:0,y:i.globals.gridHeight/2,text:i.config.yaxis[0].title.text,textAnchor:"middle",foreColor:i.config.yaxis[0].title.style.color,fontSize:i.config.yaxis[0].title.style.fontSize,fontWeight:i.config.yaxis[0].title.style.fontWeight,fontFamily:i.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[0].title.style.cssClass}),v.add(d),s.add(v)),h=0,this.isCategoryBarHorizontal&&i.config.yaxis[0].opposite&&(h=i.globals.gridWidth),e=i.config.xaxis.axisBorder,e.show&&(g=u.drawLine(i.globals.padHorizontal+e.offsetX+h,1+e.offsetY,i.globals.padHorizontal+e.offsetX+h,i.globals.gridHeight+e.offsetY,e.color,0),s.add(g)),i.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(h,f.length,i.config.yaxis[0].axisBorder,i.config.yaxis[0].axisTicks,0,o,s),s}},{key:"drawXaxisTicks",value:function(n,i){var r=this.w,o=n,u,f,e;n<0||n-2>r.globals.gridWidth||(u=this.offY+r.config.xaxis.axisTicks.offsetY,f=u+r.config.xaxis.axisTicks.height,("top"===r.config.xaxis.position&&(f=u-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show)&&(e=new t(this.ctx).drawLine(n+r.config.xaxis.axisTicks.offsetX,u+r.config.xaxis.offsetY,o+r.config.xaxis.axisTicks.offsetX,f+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color),i.add(e),e.node.classList.add("apexcharts-xaxis-tick")))}},{key:"getXAxisTicksPositions",value:function(){var n=this.w,r=[],o=this.xaxisLabels.length,t=n.globals.padHorizontal,i,u,f,e;if(n.globals.timescaleLabels.length>0)for(i=0;i<o;i++)t=this.xaxisLabels[i].position,r.push(t);else for(u=o,f=0;f<u;f++)e=u,n.globals.isXNumeric&&"bar"!==n.config.chart.type&&(e-=1),t+=n.globals.gridWidth/e,r.pu
40sh(t);return r}},{key:"xAxisLabelCorrections",value:function(){var n=this.w,o=new t(this.ctx),a=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),s=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan"),u,f,c,l,h,e;if(n.globals.rotateXLabels||n.config.xaxis.labels.rotateAlways)for(u=0;u<r.length;u++)f=o.rotateAroundCenter(r[u]),f.y=f.y-1,f.x=f.x+1,r[u].setAttribute("transform","rotate(".concat(n.config.xaxis.labels.rotate," ").concat(f.x," ").concat(f.y,")")),r[u].setAttribute("text-anchor","end"),a.setAttribute("transform","translate(0, ".concat(-10,")")),c=r[u].childNodes,n.config.xaxis.labels.trim&&Array.prototype.forEach.call(c,function(t){o.placeTextWithEllipsis(t,t.textContent,n.globals.xAxisLabelsHeight-("bottom"===n.config.legend.position?20:10))});else!function(){for(var u,i=n.globals.gridWidth/(n.globals.labels.length+1),t=0;t<r.length;t++)u=r[t].childNodes,n.config.xaxis.labels.trim&&"datetime"!==n.config.xaxis.type&&Array.prototype.forEach.call(u,function(n){o.placeTextWithEllipsis(n,n.textContent,i)})}();if(i.length>0)for(l=i[i.length-1].getBBox(),h=i[0].getBBox(),l.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),h.x+h.width>n.globals.gridWidth&&!n.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]),e=0;e<s.length;e++)o.placeTextWithEllipsis(s[e],s[e].textContent,n.config.yaxis[0].labels.maxWidth-2*parseFloat(n.config.yaxis[0].title.style.fontSize)-20)}}]),n}(),fi=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w;var r=this.w;this.xaxisLabels=r.globals.labels.slice();this.axesUtils=new y(t);this.isTimelineBar="datetime"===r.config.xaxis.type&&r.globals.seriesRangeBarTimeline.length;r.globals.timescaleLabels.length>0&&(this.xaxisLabels=r.globals.timescaleLabels.slice())}return r(n,[{key:"drawGridArea",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.w,r=new t(this.ctx),u,f;return null===i&&(i=r.group({"class":"apexcharts-grid"})),u=r.drawLine(n.globals.padHorizontal,1,n.globals.padHorizontal,n.globals.gridHeight,"transparent"),f=r.drawLine(n.globals.padHorizontal,n.globals.gridHeight,n.globals.gridWidth,n.globals.gridHeight,"transparent"),i.add(f),i.add(u),i}},{key:"drawGrid",value:function(){var n=null;return this.w.globals.axisCharts&&(n=this.renderGrid(),this.drawGridArea(n.el)),n}},{key:"createGridMask",value:function(){var i=this.w,n=i.globals,l=new t(this.ctx),r=Array.isArray(i.config.stroke.width)?0:i.config.stroke.width,o,e,c;Array.isArray(i.config.stroke.width)&&(o=0,i.config.stroke.width.forEach(function(n){o=Math.max(o,n)}),r=o);n.dom.elGridRectMask=document.createElementNS(n.SVGNS,"clipPath");n.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(n.cuid));n.dom.elGridRectMarkerMask=document.createElementNS(n.SVGNS,"clipPath");n.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(n.cuid));var s=i.config.chart.type,u=0,h=0;("bar"===s||"rangeBar"===s||"candlestick"===s||"boxPlot"===s||i.globals.comboBarCount>0)&&i.globals.isXNumeric&&!i.globals.isBarHorizontal&&(u=i.config.grid.padding.left,h=i.config.grid.padding.right,n.barPadForNumericAxis>u&&(u=n.barPadForNumericAxis,h=n.barPadForNumericAxis));n.dom.elGridRect=l.drawRect(-r/2-u-2,-r/2,n.gridWidth+r+h+u+4,n.gridHeight+r,0,"#fff");new f(this).getLargestMarkerSize();e=i.globals.markers.largestSize+1;n.dom.elGridRectMarker=l.drawRect(2*-e,2*-e,n.gridWidth+4*e,n.gridHeight+4*e,0,"#fff");n.dom.elGridRectMask.appendChild(n.dom.elGridRect.node);n.dom.elGridRectMarkerMask.appendChild(n.dom.elGridRectMarker.node);c=n.dom.baseEl.querySelector("defs");c.appendChild(n.dom.elGridRectMask);c.appendChild(n.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(n){var i=n.i,r=n.x1,u=n.y1,f=n.x2,e=n.y2,o=n.xCount,s=n.parent,t=this.w;0===i&&t.globals.skipFirstTimelinelabel||i===o-1&&t.globals.skipLastTimelinelabel&&!t.config.xaxis.labels.formatter||"radar"===t.config.chart.type||(t.config.grid.xaxis.lines.show&&this._drawGri
40dLine({x1:r,y1:u,x2:f,y2:e,parent:s}),new ut(this.ctx).drawXaxisTicks(r,this.elg))}},{key:"_drawGridLine",value:function(n){var o=n.x1,s=n.y1,h=n.x2,c=n.y2,r=n.parent,i=this.w,u=r.node.classList.contains("apexcharts-gridlines-horizontal"),l=i.config.grid.strokeDashArray,f=i.globals.barPadForNumericAxis,e=new t(this).drawLine(o-(u?f:0),s,h+(u?f:0),c,i.config.grid.borderColor,l);e.node.classList.add("apexcharts-gridline");r.add(e)}},{key:"_drawGridBandRect",value:function(n){var o=n.c,s=n.x1,h=n.y1,c=n.x2,l=n.y2,i=n.type,r=this.w,a=new t(this.ctx),f=r.globals.barPadForNumericAxis,e,u;("column"!==i||"datetime"!==r.config.xaxis.type)&&(e=r.config.grid[i].colors[o],u=a.drawRect(s-("row"===i?f:0),h,c+("row"===i?2*f:0),l,0,e,r.config.grid[i].opacity),this.elg.add(u),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),u.node.classList.add("apexcharts-grid-".concat(i)))}},{key:"_drawXYLines",value:function(n){var i=this,r=n.xCount,s=n.tickAmount,t=this.w,h,u,f,o;if((t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show)&&(u=t.globals.padHorizontal,f=t.globals.gridHeight,t.globals.timescaleLabels.length?function(n){for(var e=n.xC,u=n.x1,o=n.y1,f=n.x2,s=n.y2,t=0;t<e;t++)u=i.xaxisLabels[t].position,f=i.xaxisLabels[t].position,i._drawGridLines({i:t,x1:u,y1:o,x2:f,y2:s,xCount:r,parent:i.elgridLinesV})}({xC:r,x1:u,y1:0,x2:h,y2:f}):(t.globals.isXNumeric&&(r=t.globals.xAxisScale.result.length),t.config.xaxis.convertedCatToNumeric&&(r=t.globals.xaxisLabelsCount),function(n){var f=n.xC,e=n.x1,s=n.y1,o=n.x2,h=n.y2,u;if(void 0!==t.config.xaxis.tickAmount&&"dataPoints"!==t.config.xaxis.tickAmount)t.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach(function(n,t){var u=n.getBBox();i._drawGridLines({i:t,x1:u.x+u.width/2,y1:s,x2:u.x+u.width/2,y2:h,xCount:r,parent:i.elgridLinesV})});else for(u=0;u<f+(t.globals.isXNumeric?0:1);u++)0===u&&1===f&&1===t.globals.dataPoints&&(o=e=t.globals.gridWidth/2),i._drawGridLines({i:u,x1:e,y1:s,x2:o,y2:h,xCount:r,parent:i.elgridLinesV}),o=e+=t.globals.gridWidth/(t.globals.isXNumeric?f-1:f)}({xC:r,x1:u,y1:0,x2:h,y2:f}))),t.config.grid.yaxis.lines.show){var c=0,l=0,a=t.globals.gridWidth,e=s+1;for(this.isTimelineBar&&(e=t.globals.labels.length),o=0;o<e+(this.isTimelineBar?1:0);o++)this._drawGridLine({x1:0,y1:c,x2:a,y2:l,parent:this.elgridLinesH}),l=c+=t.globals.gridHeight/(this.isTimelineBar?e:s)}}},{key:"_drawInvertedXYLines",value:function(n){var r=n.xCount,t=this.w;if(t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show)for(var u,i=t.globals.padHorizontal,h=t.globals.gridHeight,f=0;f<r+1;f++)t.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:0,x2:u,y2:h,parent:this.elgridLinesV}),new ut(this.ctx).drawXaxisTicks(i,this.elg),u=i=i+t.globals.gridWidth/r+.3;if(t.config.grid.yaxis.lines.show)for(var e=0,o=0,c=t.globals.gridWidth,s=0;s<t.globals.dataPoints+1;s++)this._drawGridLine({x1:0,y1:e,x2:c,y2:o,parent:this.elgridLinesH}),o=e+=t.globals.gridHeight/t.globals.dataPoints}},{key:"renderGrid",value:function(){var n=this.w,f=new t(this.ctx),r,i,u;for(this.elg=f.group({"class":"apexcharts-grid"}),this.elgridLinesH=f.group({"class":"apexcharts-gridlines-horizontal"}),this.elgridLinesV=f.group({"class":"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),n.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide()),i=n.globals.yAxisScale.length?n.globals.yAxisScale[0].result.length-1:5,u=0;u<n.globals.series.length&&(void 0!==n.globals.yAxisScale[u]&&(i=n.globals.yAxisScale[u].result.length-1),!(i>2));u++);return!n.globals.isBarHorizontal||this.isTimelineBar?(r=this.xaxisLabels.length,this.isTimelineBar&&(i=n.globals.labels.length,n.config.xaxis.tickAmount&&n.config.xaxis.labels.formatter&&(r=n.config.xaxis.tickAmount)),this._drawXYLines({xCount:r,tickAmount:i})):(r=i,i=n.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:i})),this.drawGridBands(r,i),{el:this.elg,xAxisTickWidth:n.globals.gridWidth/r}}},{key:"drawGridBands",value:function(n,t){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var f=0,c=i.globals.gridHeight/t,l=i.globals.gridWidth,e=0,r=0;e<t;e++,r++)r>
40=i.config.grid.row.colors.length&&(r=0),this._drawGridBandRect({c:r,x1:0,y1:f,x2:l,y2:c,type:"row"}),f+=i.globals.gridHeight/t;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var o=i.globals.isBarHorizontal||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?n:n-1,s=i.globals.padHorizontal,a=i.globals.padHorizontal+i.globals.gridWidth/o,v=i.globals.gridHeight,h=0,u=0;h<n;h++,u++)u>=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:s,y1:0,x2:a,y2:v,type:"column"}),s+=i.globals.gridWidth/o}}]),n}(),k=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w}return r(t,[{key:"niceScale",value:function(t,i){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,v=arguments.length>4?arguments[4]:void 0,f=this.w,s=Math.abs(i-t),r,e,h,b,a;if("dataPoints"===(u=this._adjustTicksForSmallRange(u,c,s))&&(u=f.globals.dataPoints-1),t===Number.MIN_VALUE&&0===i||!n.isNumber(t)&&!n.isNumber(i)||t===Number.MIN_VALUE&&i===-Number.MAX_VALUE)return t=0,i=u,this.linearScale(t,i,u);t>i?(console.warn("axis.min cannot be greater than axis.max"),i=t+.1):t===i&&(t=0===t?0:t-.5,i=0===i?2:i+.5);r=[];s<1&&v&&("candlestick"===f.config.chart.type||"candlestick"===f.config.series[c].type||"boxPlot"===f.config.chart.type||"boxPlot"===f.config.series[c].type||f.globals.isRangeData)&&(i*=1.01);e=u+1;e<2?e=2:e>2&&(e-=2);var y=s/e,k=Math.floor(n.log10(y)),p=Math.pow(10,k),l=Math.round(y/p);l<1&&(l=1);var o=l*p,d=o*Math.floor(t/o),g=o*Math.ceil(i/o),w=d;if(v&&s>2){for(;r.push(w),!((w+=o)>g););return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}for(h=t,(r=[]).push(h),b=Math.abs(i-t)/u,a=0;a<=u;a++)h+=b,r.push(h);return r[r.length-2]>=i&&r.pop(),{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"linearScale",value:function(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=arguments.length>3?arguments[3]:void 0,e=Math.abs(t-n),u,r,f;for("dataPoints"===(i=this._adjustTicksForSmallRange(i,o,e))&&(i=this.w.globals.dataPoints-1),u=e/i,i===Number.MAX_VALUE&&(i=10,u=1),r=[],f=n;i>=0;)r.push(f),f+=u,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(n){for(var t=[],r=Math.ceil(Math.log10(n))+1,i=0;i<r;i++)t.push(Math.pow(10,i));return{result:t,niceMin:t[0],niceMax:t[t.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(t,i,r){var u=t,f;return void 0!==i&&this.w.config.yaxis[i].labels.formatter&&void 0===this.w.config.yaxis[i].tickAmount&&(f=this.w.config.yaxis[i].labels.formatter(1),n.isNumber(Number(f))&&!n.isFloat(f)&&(u=Math.ceil(r))),u<t?u:t}},{key:"setYScaleForIndex",value:function(t,i,r){var u=this.w.globals,o=this.w.config,f=u.isBarHorizontal?o.xaxis:o.yaxis[t],e,s;void 0===u.yAxisScale[t]&&(u.yAxisScale[t]=[]);e=Math.abs(r-i);(f.logarithmic&&e<=5&&(u.invalidLogScale=!0),f.logarithmic&&e>5)?(u.allSeriesCollapsed=!1,u.yAxisScale[t]=this.logarithmicScale(r)):r!==-Number.MAX_VALUE&&n.isNumber(r)?(u.allSeriesCollapsed=!1,void 0===f.min&&void 0===f.max||f.forceNiceScale)?(s=void 0===o.yaxis[t].max&&void 0===o.yaxis[t].min||o.yaxis[t].forceNiceScale,u.yAxisScale[t]=this.niceScale(i,r,f.tickAmount?f.tickAmount:e<5&&e>1?e+1:5,t,s)):u.yAxisScale[t]=this.linearScale(i,r,f.tickAmount,t):u.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,i){var u=this.w,f=u.globals,e=u.config.xaxis,r=Math.abs(i-t);return f.xAxisScale=i!==-Number.MAX_VALUE&&n.isNumber(i)?this.linearScale(t,i,e.tickAmount?e.tickAmount:r<5&&r>1?r+1:5,0):this.linearScale(0,5,5),f.xAxisScale}},{key:"setMultipleYScales",value:function(){var f=this,t=this.w.globals,i=this.w.config,r=t.minYArr.concat([]),u=t.maxYArr.concat([]),n=[];i.yaxis.forEach(function(t,e){var o=e,s,h;i.series.forEach(function(i,r){i.name===t.seriesName&&(o=r,e!==r?n.push({index:r,similarIndex:e,alreadyExists:!0}):n.push({index:r}))});s=r[o];h=u[o];f.setYScaleForIndex(e,s,h)});this.sameScaleInMultipleAxes(r,u,n)}},{key:"sameScaleInMultipleAxes",value:function(n,t,i){var v=this,u=this.w.config,c=this.w.globals,r=[],l,f,a,e,o,s,h;
40i.forEach(function(n){n.alreadyExists&&(void 0===r[n.index]&&(r[n.index]=[]),r[n.index].push(n.index),r[n.index].push(n.similarIndex))});c.yAxisSameScaleIndices=r;r.forEach(function(n,t){r.forEach(function(i,u){var f,e;t!==u&&(f=n,e=i,f.filter(function(n){return-1!==e.indexOf(n)})).length>0&&(r[t]=r[t].concat(r[u]))})});l=r.map(function(n){return n.filter(function(t,i){return n.indexOf(t)===i})}).map(function(n){return n.sort()});r=r.filter(function(n){return!!n});f=l.slice();a=f.map(function(n){return JSON.stringify(n)});f=f.filter(function(n,t){return a.indexOf(JSON.stringify(n))===t});e=[];o=[];n.forEach(function(n,i){f.forEach(function(r,u){r.indexOf(i)>-1&&(void 0===e[u]&&(e[u]=[],o[u]=[]),e[u].push({key:i,value:n}),o[u].push({key:i,value:t[i]}))})});s=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,Number.MIN_VALUE);h=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);e.forEach(function(n,t){n.forEach(function(n){s[t]=Math.min(n.value,s[t])})});o.forEach(function(n,t){n.forEach(function(n){h[t]=Math.max(n.value,h[t])})});n.forEach(function(n,t){o.forEach(function(n,i){var r=s[i],f=h[i];u.chart.stacked&&(f=0,n.forEach(function(n,t){n.value!==-Number.MAX_VALUE&&(f+=n.value);r!==Number.MIN_VALUE&&(r+=e[i][t].value)}));n.forEach(function(i,e){n[e].key===t&&(void 0!==u.yaxis[t].min&&(r="function"==typeof u.yaxis[t].min?u.yaxis[t].min(c.minY):u.yaxis[t].min),void 0!==u.yaxis[t].max&&(f="function"==typeof u.yaxis[t].max?u.yaxis[t].max(c.maxY):u.yaxis[t].max),v.setYScaleForIndex(t,r,f))})})})}},{key:"autoScaleY",value:function(n,t,i){var r,u,f;return(n||(n=this),r=n.w,r.globals.isMultipleYAxis||r.globals.collapsedSeries.length)?(console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t):(u=r.globals.seriesX[0],f=r.config.chart.stacked,t.forEach(function(n,e){for(var c=0,h=0;h<u.length;h++)if(u[h]>=i.xaxis.min){c=h;break}var o,s,l=r.globals.minYArr[e],a=r.globals.maxYArr[e],v=r.globals.stackedSeriesTotals;r.globals.series.forEach(function(e,h){var y=e[c];f?(y=v[c],o=s=y,v.forEach(function(n,t){u[t]<=i.xaxis.max&&u[t]>=i.xaxis.min&&(n>s&&null!==n&&(s=n),e[t]<o&&null!==e[t]&&(o=e[t]))})):(o=s=y,e.forEach(function(n,t){if(u[t]<=i.xaxis.max&&u[t]>=i.xaxis.min){var f=n,e=n;r.globals.series.forEach(function(i){null!==n&&(f=Math.min(i[t],f),e=Math.max(i[t],e))});e>s&&null!==e&&(s=e);f<o&&null!==f&&(o=f)}}));void 0===o&&void 0===s&&(o=l,s=a);(s*=s<0?.9:1.1)<0&&s<a&&(s=a);(o*=o<0?1.1:.9)<0&&o>l&&(o=l);t.length>1?(t[h].min=void 0===n.min?o:n.min,t[h].max=void 0===n.max?s:n.max):(t[0].min=void 0===n.min?o:n.min,t[0].max=void 0===n.max?s:n.max)})}),t)}}]),t}(),at=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w;this.scales=new k(n)}return r(t,[{key:"init",value:function(){this.setYRange();this.setXRange();this.setZRange()}},{key:"getMinYMaxY",value:function(t){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.w.config,r=this.w.globals,f=-Number.MAX_VALUE,s=Number.MIN_VALUE,i,u,h;null===y&&(y=t+1);var v=r.series,e=v,a=v;for("candlestick"===o.chart.type?(e=r.seriesCandleL,a=r.seriesCandleH):"boxPlot"===o.chart.type?(e=r.seriesCandleO,a=r.seriesCandleC):r.isRangeData&&(e=r.seriesRangeStart,a=r.seriesRangeEnd),i=t;i<y;i++)for(r.dataPoints=Math.max(r.dataPoints,v[i].length),u=0;u<r.series[i].length;u++)h=v[i][u],null!==h&&n.isNumber(h)?(void 0!==a[i][u]&&(f=Math.max(f,a[i][u])),void 0!==e[i][u]&&(c=Math.min(c,e[i][u]),l=Math.max(l,e[i][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==r.seriesCandleC[i][u]&&(f=Math.max(f,r.seriesCandleO[i][u]),f=Math.max(f,r.seriesCandleH[i][u]),f=Math.max(f,r.seriesCandleL[i][u]),f=Math.max(f,r.seriesCandleC[i][u]),"boxPlot"===this.w.config.chart.type&&(f=Math.max(f,r.seriesCandleM[i][u]))),!o.series[i].type||"candlestick"===o.series[i].type&&"boxPlot"===o.series[i].type||(f=Math.max(f,r.series[i][u]),c=Math.min(c,r.series[i][u])),l=f),r.seriesGoals[i]&&r.seriesGoals[i][u]&&Array.isArray(r.seriesGoals[i][u])&&r.seriesGoals[i][u].forEach(function(n){f=Math.max(f,n.value);l=f}),n.isFloat(h)&&(h=n.noExponents(h),r.yValueDecimal=Math.max(r.yValueDecimal,h.toString().split(".")[1].length)),s>e[i][u]&&e[i][u]<0&&(s=e[i][u])):r.hasNullValues=!0;return"rangeBar"===o.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&"datetime"===o.xaxis.type&&(s=c),"bar"===o.chart.type&&(s<0&&f<0&&(f=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:f,lowestY:c,highestY:l}}},{key:"setYRange",value:function(){var n=this.w.globals,t=this.w.config,i,r,u,f,e;if(n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE,i=Number.MAX_VALUE,n.isMultipleYAxis)for(r=0;r<n.series.length;r++)u=this.getMinYMaxY(r,i,null,r+1),n.minYArr.push(u.minY),n.maxYArr.push(u.maxY),i=u.lowestY;return f=this.getMinYMaxY(0,i,null,n.series.length),(n.minY=f.minY,n.maxY=f.maxY,i=f.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"!==t.chart.type&&"area"!==t.chart.type&&"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type&&("rangeBar"!==t.chart.type||n.isBarHorizontal)||n.minY!==Number.MIN_VALUE||i===-Number.MAX_VALUE||i===n.maxY)||(e=n.maxY-i,(i>=0&&i<=10||void 0!==t.yaxis[0].min||void 0!==t.yaxis[0].max)&&(e=0),n.minY=i-e/20,i>
400&&n.minY<0&&(n.minY=0),n.maxY=n.maxY+e/20),(t.yaxis.forEach(function(t,i){void 0!==t.max&&("number"==typeof t.max?n.maxYArr[i]=t.max:"function"==typeof t.max&&(n.maxYArr[i]=t.max(n.isMultipleYAxis?n.maxYArr[i]:n.maxY)),n.maxY=n.maxYArr[i]);void 0!==t.min&&("number"==typeof t.min?n.minYArr[i]=t.min:"function"==typeof t.min&&(n.minYArr[i]=t.min(n.isMultipleYAxis?n.minYArr[i]===Number.MIN_VALUE?0:n.minYArr[i]:n.minY)),n.minY=n.minYArr[i])}),n.isBarHorizontal)&&["min","max"].forEach(function(i){void 0!==t.xaxis[i]&&"number"==typeof t.xaxis[i]&&("min"===i?n.minY=t.xaxis[i]:n.maxY=t.xaxis[i])}),n.isMultipleYAxis?(this.scales.setMultipleYScales(),n.minY=i,n.yAxisScale.forEach(function(t,i){n.minYArr[i]=t.niceMin;n.maxYArr[i]=t.niceMax})):(this.scales.setYScaleForIndex(0,n.minY,n.maxY),n.minY=n.yAxisScale[0].niceMin,n.maxY=n.yAxisScale[0].niceMax,n.minYArr[0]=n.yAxisScale[0].niceMin,n.maxYArr[0]=n.yAxisScale[0].niceMax),{minY:n.minY,maxY:n.maxY,minYArr:n.minYArr,maxYArr:n.maxYArr,yAxisScale:n.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,i=this.w.config,e="numeric"===i.xaxis.type||"datetime"===i.xaxis.type||"category"===i.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric,r,u,f;if(t.isXNumeric&&function(){for(var r,i=0;i<t.series.length;i++)if(t.labels[i])for(r=0;r<t.labels[i].length;r++)null!==t.labels[i][r]&&n.isNumber(t.labels[i][r])&&(t.maxX=Math.max(t.maxX,t.labels[i][r]),t.initialMaxX=Math.max(t.maxX,t.labels[i][r]),t.minX=Math.min(t.minX,t.labels[i][r]),t.initialMinX=Math.min(t.minX,t.labels[i][r]))}(),t.noLabelsProvided&&0===i.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){if(void 0===i.xaxis.tickAmount?(r=Math.round(t.svgWidth/150),"numeric"===i.xaxis.type&&t.dataPoints<30&&(r=t.dataPoints-1),r>t.dataPoints&&0!==t.dataPoints&&(r=t.dataPoints-1)):"dataPoints"===i.xaxis.tickAmount?(t.series.length>1&&(r=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(r=t.maxX-t.minX-1)):r=i.xaxis.tickAmount,t.xTickAmount=r,void 0!==i.xaxis.max&&"number"==typeof i.xaxis.max&&(t.maxX=i.xaxis.max),void 0!==i.xaxis.min&&"number"==typeof i.xaxis.min&&(t.minX=i.xaxis.min),void 0!==i.xaxis.range&&(t.minX=t.maxX-i.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(i.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(u=[],f=t.minX-1;f<t.maxX;f++)u.push(f+1);t.xAxisScale={result:u,niceMin:u[0],niceMax:u[u.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(1,r,r),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,r-1),t.seriesX=t.labels.slice());e&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals,i,r;if(t.isDataXYZ)for(i=0;i<t.series.length;i++)if(void 0!==t.seriesZ[i])for(r=0;r<t.seriesZ[i].length;r++)null!==t.seriesZ[i][r]&&n.isNumber(t.seriesZ[i][r])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[i][r]),t.minZ=Math.min(t.minZ,t.seriesZ[i][r]))}},{key:"_handleSingleDataPoint",value:function(){var n=this.w.globals,r=this.w.config,u,t,i;n.minX===n.maxX&&(u=new s(this.ctx),"datetime"===r.xaxis.type?(t=u.getDate(n.minX),t.setUTCDate(t.getDate()-2),n.minX=new Date(t).getTime(),i=u.getDate(n.maxX),i.setUTCDate(i.getDate()+2),n.maxX=new Date(i).getTime()):"numeric"!==r.xaxis.type&&("category"!==r.xaxis.type||n.noLabelsProvided)||(n.minX=n.minX-2,n.initialMinX=n.minX,n.maxX=n.maxX+2,n.initialMaxX=n.maxX))}},{key:"_getMinXDiff",value:function(){var n=this.w.globals;n.isXNumeric&&n.seriesX.forEach(function(t){1===t.length&&t.push(n.seriesX[n.maxValsInArrayIndex][n.seriesX[n.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort(function(n,t){return n-t});i.forEach(function(t,r){if(r>0){var u=t-i[r-1];u>0&&(n.minXDiff=Math.min(u,n.minXDiff))}});1===n.dataPoints&&n.minXDiff===Number.MAX_VALUE&&(n.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this.w.globals,f=[],o=[],i,u;if(t.series.length)for(i=0;i<t.series[t.maxValsInArrayIndex].length;i++)for(var e=0,s=0,r=0;r<t.series.length;r++)null!==t.series[r][i]&&n.isNumber(t.series[r][i])&&(t.series[r][i]>0?e=e+parseFloat(t.series[r][i])+.0001:s+=parseFloat(t.series[r][i])),r===t.series.length-1&&(f.push(e),o.push(s));for(u=0;
40u<f.length;u++)t.maxY=Math.max(t.maxY,f[u]),t.minY=Math.min(t.minY,o[u])}}]),t}(),vt=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;var t=this.w;this.xaxisFontSize=t.config.xaxis.labels.style.fontSize;this.axisFontFamily=t.config.xaxis.labels.style.fontFamily;this.xaxisForeColors=t.config.xaxis.labels.style.colors;this.isCategoryBarHorizontal="bar"===t.config.chart.type&&t.config.plotOptions.bar.horizontal;this.xAxisoffX=0;"bottom"===t.config.xaxis.position&&(this.xAxisoffX=t.globals.gridHeight);this.drawnLabels=[];this.axesUtils=new y(n)}return r(u,[{key:"drawYaxis",value:function(n){var g=this,i=this.w,u=new t(this.ctx),e=i.config.yaxis[n].labels.style,nt=e.fontSize,tt=e.fontFamily,it=e.fontWeight,f=u.group({"class":"apexcharts-yaxis",rel:n,transform:"translate("+i.globals.translateYAxisX[n]+", 0)"}),c,a,b,h,v,y,k,r,s,d;if(this.axesUtils.isYAxisHidden(n))return f;c=u.group({"class":"apexcharts-yaxis-texts-g"});f.add(c);var o=i.globals.yAxisScale[n].result.length-1,p=i.globals.gridHeight/o,w=i.globals.translateY,rt=i.globals.yLabelFormatters[n],l=i.globals.yAxisScale[n].result.slice();if(l=this.axesUtils.checkForReversedLabels(n,l),a="",i.config.yaxis[n].labels.show)for(b=function(t){var r=l[t],h,s,f,v,y,b;r=rt(r,t,i);h=i.config.yaxis[n].labels.padding;i.config.yaxis[n].opposite&&0!==i.config.yaxis.length&&(h*=-1);s=g.axesUtils.getYAxisForeColor(e.colors,n);f=u.drawText({x:h,y:w+o/10+i.config.yaxis[n].labels.offsetY+1,text:r,textAnchor:i.config.yaxis[n].opposite?"start":"end",fontSize:nt,fontFamily:tt,fontWeight:it,foreColor:Array.isArray(s)?s[t]:s,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+e.cssClass});t===o&&(a=f);c.add(f);v=document.createElementNS(i.globals.SVGNS,"title");(v.textContent=Array.isArray(r)?r.join(" "):r,f.node.appendChild(v),0!==i.config.yaxis[n].labels.rotate)&&(y=u.rotateAroundCenter(a.node),b=u.rotateAroundCenter(f.node),f.node.setAttribute("transform","rotate(".concat(i.config.yaxis[n].labels.rotate," ").concat(y.x," ").concat(b.y,")")));w+=p},h=o;h>=0;h--)b(h);return void 0!==i.config.yaxis[n].title.text&&(v=u.group({"class":"apexcharts-yaxis-title"}),y=0,i.config.yaxis[n].opposite&&(y=i.globals.translateYAxisX[n]),k=u.drawText({x:y,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[n].title.offsetY,text:i.config.yaxis[n].title.text,textAnchor:"end",foreColor:i.config.yaxis[n].title.style.color,fontSize:i.config.yaxis[n].title.style.fontSize,fontWeight:i.config.yaxis[n].title.style.fontWeight,fontFamily:i.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[n].title.style.cssClass}),v.add(k),f.add(v)),r=i.config.yaxis[n].axisBorder,s=31+r.offsetX,(i.config.yaxis[n].opposite&&(s=-31-r.offsetX),r.show)&&(d=u.drawLine(s,i.globals.translateY+r.offsetY-2,s,i.globals.gridHeight+i.globals.translateY+r.offsetY+2,r.color,0,r.width),f.add(d)),i.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,o,r,i.config.yaxis[n].axisTicks,n,p,f),f}},{key:"drawYaxisInversed",value:function(n){var i=this.w,a=new t(this.ctx),s=a.group({"class":"apexcharts-xaxis apexcharts-yaxis-inversed"}),w=a.group({"class":"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")}),o,r,u,h,c,l,p;s.add(w);var v=i.globals.yAxisScale[n].result.length-1,y=i.globals.gridWidth/v+.1,b=y+i.config.xaxis.labels.offsetX,k=i.globals.xLabelFormatter,f=i.globals.yAxisScale[n].result.slice(),e=i.globals.timescaleLabels;if(e.length>0&&(this.xaxisLabels=e.slice(),v=(f=e.slice()).length),f=this.axesUtils.checkForReversedLabels(n,f),o=e.length,i.config.xaxis.labels.show)for(r=o?0:v;o?r<o:r>=0;o?r++:r--)u=f[r],u=k(u,r,i),h=i.globals.gridWidth+i.globals.padHorizontal-(b-y+i.config.xaxis.labels.offsetX),e.length&&(c=this.axesUtils.getLabel(f,e,h,r,this.drawnLabels,this.xaxisFontSize),h=c.x,u=c.text,this.drawnLabels.push(c.text),0===r&&i.globals.skipFirstTimelinelabel&&(u=""),r===f.length-1&&i.globals.skipLastTimelinelabel&&(u="")),l=a.drawText({x:h,y:this.xAxisoffX+i.config.xaxis.labels.offsetY+30-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[n]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:i.config.xaxis.labels.style.fontWeight,isPlainText:!1,
40cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass}),w.add(l),l.tspan(u),p=document.createElementNS(i.globals.SVGNS,"title"),p.textContent=u,l.node.appendChild(p),b+=y;return this.inversedYAxisTitleText(s),this.inversedYAxisBorder(s),s}},{key:"inversedYAxisBorder",value:function(n){var i=this.w,e=new t(this.ctx),r=i.config.xaxis.axisBorder,u,f;r.show&&(u=0,"bar"===i.config.chart.type&&i.globals.isXNumeric&&(u-=15),f=e.drawLine(i.globals.padHorizontal+u+r.offsetX,this.xAxisoffX,i.globals.gridWidth,this.xAxisoffX,r.color,0,r.height),n.add(f))}},{key:"inversedYAxisTitleText",value:function(n){var i=this.w,u=new t(this.ctx),r,f;void 0!==i.config.xaxis.title.text&&(r=u.group({"class":"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),f=u.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(i.config.xaxis.title.style.fontSize)+i.config.xaxis.title.offsetY+20,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass}),r.add(f),n.add(r))}},{key:"yAxisTitleRotate",value:function(n,i){var u=this.w,c=new t(this.ctx),e={width:0,height:0},o={width:0,height:0},s=u.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),r,h,f;null!==s&&(e=s.getBoundingClientRect());r=u.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-title text"));(null!==r&&(o=r.getBoundingClientRect()),null!==r)&&(h=this.xPaddingForYAxisTitle(n,e,o,i),r.setAttribute("x",h.xPos-(i?10:0)));null!==r&&(f=c.rotateAroundCenter(r),r.setAttribute("transform","rotate(".concat(i?-1*u.config.yaxis[n].title.rotate:u.config.yaxis[n].title.rotate," ").concat(f.x," ").concat(f.y,")")))}},{key:"xPaddingForYAxisTitle",value:function(n,t,i,r){var e=this.w,o=0,u=0,f=10;return void 0===e.config.yaxis[n].title.text||n<0?{xPos:u,padd:0}:(r?(u=t.width+e.config.yaxis[n].title.offsetX+i.width/2+f/2,0===(o+=1)&&(u-=f/2)):(u=-1*t.width+e.config.yaxis[n].title.offsetX+f/2+i.width/2,e.globals.isBarHorizontal&&(f=25,u=-1*t.width-e.config.yaxis[n].title.offsetX-f)),{xPos:u,padd:f})}},{key:"setYAxisXPosition",value:function(n,t){var i=this.w,e=0,r=0,u=18,f=1;i.config.yaxis.length>1&&(this.multipleYs=!0);i.config.yaxis.map(function(o,s){var h=i.globals.ignoreYAxisIndexes.indexOf(s)>-1||!o.show||o.floating||0===n[s].width,c=n[s].width+t[s].width;o.opposite?i.globals.isBarHorizontal?(r=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[s]=r-o.labels.offsetX):(r=i.globals.gridWidth+i.globals.translateX+f,h||(f=f+c+20),i.globals.translateYAxisX[s]=r-o.labels.offsetX+20):(e=i.globals.translateX-u,h||(u=u+c+20),i.globals.translateYAxisX[s]=e+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(i=n.listToArray(i)).forEach(function(i,r){var u=t.config.yaxis[r],e,f,o;u&&void 0!==u.labels.align&&(e=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-texts-g")),f=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-label")),f=n.listToArray(f),o=e.getBoundingClientRect(),"left"===u.labels.align?(f.forEach(function(n){n.setAttribute("text-anchor","start")}),u.opposite||e.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===u.labels.align?(f.forEach(function(n){n.setAttribute("text-anchor","middle")}),e.setAttribute("transform","translate(".concat(o.width/2*(u.opposite?1:-1),", 0)"))):"right"===u.labels.align&&(f.forEach(function(n){n.setAttribute("text-anchor","end")}),u.opposite&&e.setAttribute("transform","translate(".concat(o.width,", 0)"))))})}}]),u}(),ir=function(){function t(r){i(this,t);this.ctx=r;this.w=r.w;this.documentEvent=n.bind(this.documentEvent,this)}return r(t,[{key:"addEventListener",value:function(n,t){var i=this.w;i.globals.events.hasOwnProperty(n)?i.globals.events[n].push(t):i.globals.events[n]=[t]}},{key:"removeEventListener",value:function(n,t){var i=this.w,r;i.globals.events.hasOwnProperty(n)&&(r=i.globals.events[n].indexOf(t),-1!==r&&i.globals.events[n].splice(r,1))}},{key:"fireEvent",value:function(n,t){var r=this.w;if(r.globals.events.hasOwnProperty(n)){t&&t.length||(t=[]);for(var u=r.globals.events[n],f=u.length,i=0;i<f;i++)u[i].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var i=this,n=this.w,t=this.ctx,r=n.globals.dom.baseEl.querySelector(n.globals.chartClass);this.ctx.eventList.forEach(function(i){r.addEventListener(i,function(i){var r=Object.assign({},n,{seriesIndex:n.globals.capturedSeriesIndex,dataPointIndex:n.globals.capturedDataPointIndex});"mousemove"===i.type||"touchmove"===i.type?"function"==typeof n.config.chart.events.mouseMove&&n.config.chart.events.mouseMove(i,t,r):("mouseup"===i.t
40ype&&1===i.which||"touchend"===i.type)&&("function"==typeof n.config.chart.events.click&&n.config.chart.events.click(i,t,r),t.ctx.events.fireEvent("click",[i,t,r]))},{capture:!1,passive:!0})});this.ctx.eventList.forEach(function(t){n.globals.dom.baseEl.addEventListener(t,i.documentEvent,{passive:!0})});this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(n){var i=this.w,r=n.target.className,t;"click"===n.type&&(t=i.globals.dom.baseEl.querySelector(".apexcharts-menu"),t&&t.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==r&&t.classList.remove("apexcharts-menu-open"));i.globals.clientX="touchmove"===n.type?n.touches[0].clientX:n.clientX;i.globals.clientY="touchmove"===n.type?n.touches[0].clientY:n.clientY}}]),t}(),rr=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w}return r(t,[{key:"setCurrentLocaleValues",value:function(t){var r=this.w.config.chart.locales,i,u;if(window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(r=this.w.config.chart.locales.concat(window.Apex.chart.locales)),i=r.filter(function(n){return n.name===t})[0],!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");u=n.extend(ti,i);this.w.globals.locale=u.options}}]),t}(),ur=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"drawAxis",value:function(n){var i,r,t=this.w.globals,e=this.w.config,u=new ut(this.ctx),f=new vt(this.ctx);t.axisCharts&&"radar"!==n&&(t.isBarHorizontal?(r=f.drawYaxisInversed(0),i=u.drawXaxisInversed(0),t.dom.elGraphical.add(i),t.dom.elGraphical.add(r)):(i=u.drawXaxis(),t.dom.elGraphical.add(i),e.yaxis.map(function(n,i){-1===t.ignoreYAxisIndexes.indexOf(i)&&(r=f.drawYaxis(i),t.dom.Paper.add(r))})))}}]),n}(),yt=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w}return r(u,[{key:"drawXCrosshairs",value:function(){var i=this.w,e=new t(this.ctx),h=new o(this.ctx),f=i.config.xaxis.crosshairs.fill.gradient,r=i.config.xaxis.crosshairs.dropShadow,c=i.config.xaxis.crosshairs.fill.type,l=f.colorFrom,a=f.colorTo,v=f.opacityFrom,y=f.opacityTo,p=f.stops,w=r.enabled,b=r.left,k=r.top,d=r.blur,g=r.color,nt=r.opacity,s=i.config.xaxis.crosshairs.fill.color,u;i.config.xaxis.crosshairs.show&&("gradient"===c&&(s=e.drawGradient("vertical",l,a,v,y,null,p,null)),u=e.drawRect(),1===i.config.xaxis.crosshairs.width&&(u=e.drawLine()),u.attr({"class":"apexcharts-xcrosshairs",x:0,y:0,y2:i.globals.gridHeight,width:n.isNumber(i.config.xaxis.crosshairs.width)?i.config.xaxis.crosshairs.width:0,height:i.globals.gridHeight,fill:s,filter:"none","fill-opacity":i.config.xaxis.crosshairs.opacity,stroke:i.config.xaxis.crosshairs.stroke.color,"stroke-width":i.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":i.config.xaxis.crosshairs.stroke.dashArray}),w&&(u=h.dropShadow(u,{left:b,top:k,blur:d,color:g,opacity:nt})),i.globals.dom.elGraphical.add(u))}},{key:"drawYCrosshairs",value:function(){var n=this.w,e=new t(this.ctx),i=n.config.yaxis[0].crosshairs,r=n.globals.barPadForNumericAxis,u,f;n.config.yaxis[0].crosshairs.show&&(u=e.drawLine(-r,0,n.globals.gridWidth+r,0,i.stroke.color,
40i.stroke.dashArray,i.stroke.width),u.attr({"class":"apexcharts-ycrosshairs"}),n.globals.dom.elGraphical.add(u));f=e.drawLine(-r,0,n.globals.gridWidth+r,0,i.stroke.color,0,0);f.attr({"class":"apexcharts-ycrosshairs-hidden"});n.globals.dom.elGraphical.add(f)}}]),u}(),fr=function(){function t(n){i(this,t);this.ctx=n;this.w=n.w}return r(t,[{key:"checkResponsiveConfig",value:function(t){var s=this,i=this.w,h=i.config,r,e,o,u;0!==h.responsive.length&&(r=h.responsive.slice(),r.sort(function(n,t){return n.breakpoint>t.breakpoint?1:t.breakpoint>n.breakpoint?-1:0}).reverse(),e=new rt({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=r[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width,h,u;if(o>c)h=f.extendArrayProps(e,i.globals.initialConfig,i),t=n.extend(h,t),t=n.extend(i.config,t),s.overrideResponsiveOptions(t);else for(u=0;u<r.length;u++)o<r[u].breakpoint&&(t=f.extendArrayProps(e,r[u].options,i),t=n.extend(i.config,t),s.overrideResponsiveOptions(t))},t?(u=f.extendArrayProps(e,t,i),u=n.extend(i.config,u),o(u=n.extend(u,t))):o({}))}},{key:"overrideResponsiveOptions",value:function(n){var t=new rt(n).init({responsiveOverride:!0});this.w.config=t}}]),t}(),er=function(){function t(n){i(this,t);this.ctx=n;this.colors=[];this.w=n.w;var r=this.w;this.isColorFn=!1;this.isHeatmapDistributed="treemap"===r.config.chart.type&&r.config.plotOptions.treemap.distributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap.distributed;this.isBarDistributed=r.config.plotOptions.bar.distributed&&("bar"===r.config.chart.type||"rangeBar"===r.config.chart.type)}return r(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this,t=this.w,s=new n,o,i,u,f;if(t.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(t.config.theme.mode)),void 0===t.config.colors?t.globals.colors=this.predefined():(t.globals.colors=t.config.colors,Array.isArray(t.config.colors)&&t.config.colors.length>0&&"function"==typeof t.config.colors[0]&&(t.globals.colors=t.config.series.map(function(n,i){var r=t.config.colors[i];return r||(r=t.config.colors[0]),"function"==typeof r?(e.isColorFn=!0,r({value:t.globals.axisCharts?t.globals.series[i][0]?t.globals.series[i][0]:0:t.globals.series[i],seriesIndex:i,dataPointIndex:i,w:t})):r}))),t.globals.seriesColors.map(function(n,i){n&&(t.globals.colors[i]=n)}),t.config.theme.monochrome.enabled){o=[];i=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(i=t.globals.series[0].length*t.globals.series.length);for(var h=t.config.theme.monochrome.color,c=1/(i/t.config.theme.monochrome.shadeIntensity),a=t.config.theme.monochrome.shadeTo,r=0,l=0;l<i;l++)u=void 0,"dark"===a?(u=s.shadeColor(-1*r,h),r+=c):(u=s.shadeColor(r,h),r+=c),o.push(u);t.globals.colors=o.slice()}f=t.globals.colors.slice();this.pushExtraColors(t.globals.colors);["fill","stroke"].forEach(function(n){t.globals[n].colors=void 0===t.config[n].colors?e.isColorFn?t.config.colors:f:t.config[n].colors.slice();e.pushExtraColors(t.globals[n].colors)});t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?f:t.config.dataLabels.style.colors.slice();this.pushExtraColors(t.globals.dataLabels.style.colors,50);t.globals.radarPolygons.fill.colors=void 0===t.config.plotOptions.radar.polygons.fill.colors?["dark"===t.config.theme.mode?"#424242":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice();this.pushExtraColors(t.globals.radarPolygons.fill.colors,20);t.globals.markers.colors=void 0===t.config.markers.colors?f:t.config.markers.colors.slice();this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,f=t||i.globals.series.length,e,r;if(null===u&&(u=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.colorScale.inverse),u&&i.globals.series.length&&(f=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),n.length<f)for(e=f-n.length,r=0;r<e;r++)n.push(n[r])}},{key:"updateThemeOptions",value:function(n){n.chart=n.chart||{};n.tooltip=n.tooltip||{};var t=n.theme.mode||"light",i=n.theme.palette?n.theme.palette:"dark"===t?"palette4":"palette1",r=n.chart.foreColor?n.chart.foreColor:"dark"===t?"#f6f7f8":"#373d3f";return n.tooltip.theme=t,n.chart.foreColor=r,n.theme.palette=i,n}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#F
40F9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}(),or=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"draw",value:function(){this.drawTitleSubtitle("title");this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(n){var r=this.w,i="title"===n?r.config.title:r.config.subtitle,u=r.globals.svgWidth/2,f=i.offsetY,e="middle",o;("left"===i.align?(u=10,e="start"):"right"===i.align&&(u=r.globals.svgWidth-10,e="end"),u+=i.offsetX,f=f+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text)&&(o=new t(this.ctx).drawText({x:u,y:f,text:i.text,textAnchor:e,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1}),o.node.setAttribute("class","apexcharts-".concat(n,"-text")),r.globals.dom.Paper.add(o))}}]),n}(),sr=function(){function t(n){i(this,t);this.w=n.w;this.dCtx=n}return r(t,[{key:"getTitleSubtitleCoords",value:function(n){var t=this.w,r=0,u=0,e="title"===n?t.config.title.floating:t.config.subtitle.floating,f=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-text")),i;return null===f||e||(i=f.getBoundingClientRect(),r=i.width,u=t.globals.axisCharts?i.height+5:i.height),{width:r,height:u}}},{key:"getLegendsRect",value:function(){var t=this.w,r=t.globals.dom.baseEl.querySelector(".apexcharts-legend"),i;return t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(r.style.maxHeight=t.globals.svgHeight/2+"px"),i=Object.assign({},n.getBoundingClientRect(r)),this.dCtx.lgRect=null!==r&&!t.config.legend.floating&&t.config.legend.show?{x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:{x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(n,t){var r=n,i,u;return this.w.globals.isMultiLineX&&(i=t.map(function(n){return Array.isArray(n)?n.length:1}),u=Math.max.apply(Math,c(i)),r=t[i.indexOf(u)]),r}}]),t}(),hr=function(){function u(n){i(this,u);this.w=n.w;this.dCtx=n}return r(u,[{key:"getxAxisLabelsCoords",value:function(){var o,i=this.w,h=i.globals.labels.slice(),c,l,a,y;if(i.config.xaxis.convertedCatToNumeric&&0===h.length&&(h=i.globals.categoryLabels),i.globals.timescaleLabels.length>0)c=this.getxAxisTimeScaleLabelsCoords(),o={width:c.width,height:c.height},i.globals.rotateXLabels=!1;else{this.dCtx.lgWidthForSideLegends="left"!==i.config.legend.position&&"right"!==i.config.legend.position||i.config.legend.floating?0:this.dCtx.lgRect.width;var p=i.globals.xLabelFormatter,r=n.getLargestStringFromArr(h),e=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,h);i.globals.isBarHorizontal&&(e=r=i.globals.yAxisScale[0].result.reduce(function(n,t){return n.length>t.length?n:t},0));l=new et(this.dCtx.ctx);a=r;r=l.xLabelFormat(p,r,a,{i:void 0,dateFormatter:new s(this.dCtx.ctx).formatDate,w:i});e=l.xLabelFormat(p,e,a,{i:void 0,dateFormatter:new s(this.dCtx.ctx).formatDate,w:i});(i.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(e=r="1");var v=new t(this.dCtx.ctx),u=v.getTextRects(r,i.config.xaxis.labels.style.fontSize),f=u;(r!==e&&(f=v.getTextRects(e,i.config.xaxis.labels.style.fontSize)),(o={width:u.width>=f.width?u.width:f.width,height:u.height>=f.height?u.height:f.height}).width*h.length>
40i.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==i.config.xaxis.labels.rotate||i.config.xaxis.labels.rotateAlways)?i.globals.isBarHorizontal||(i.globals.rotateXLabels=!0,y=function(n){return v.getTextRects(n,i.config.xaxis.labels.style.fontSize,i.config.xaxis.labels.style.fontFamily,"rotate(".concat(i.config.xaxis.labels.rotate," 0 0)"),!1)},u=y(r),r!==e&&(f=y(e)),o.height=(u.height>f.height?u.height:f.height)/1.5,o.width=u.width>f.width?u.width:f.width):i.globals.rotateXLabels=!1}return i.config.xaxis.labels.show||(o={width:0,height:0}),{width:o.width,height:o.height}}},{key:"getxAxisTitleCoords",value:function(){var n=this.w,r=0,u=0,i;return void 0!==n.config.xaxis.title.text&&(i=new t(this.dCtx.ctx).getTextRects(n.config.xaxis.title.text,n.config.xaxis.title.style.fontSize),r=i.width,u=i.height),{width:r,height:u}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var r,n=this.w,i,u;return this.dCtx.timescaleLabels=n.globals.timescaleLabels.slice(),i=this.dCtx.timescaleLabels.map(function(n){return n.value}),u=i.reduce(function(n,t){return void 0===n?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):n.length>t.length?n:t},0),1.05*(r=new t(this.dCtx.ctx).getTextRects(u,n.config.xaxis.labels.style.fontSize)).width*i.length>n.globals.gridWidth&&0!==n.config.xaxis.labels.rotate&&(n.globals.overlappingXLabels=!0),r}},{key:"additionalPaddingXLabels",value:function(n){var t=this,u=this.w,i=u.globals,f=u.config,e=f.xaxis.type,r=n.width,o,s;i.skipLastTimelinelabel=!1;i.skipFirstTimelinelabel=!1;o=u.config.yaxis[0].opposite&&u.globals.isBarHorizontal;s=function(n,o){(function(n){return-1!==i.collapsedSeriesIndices.indexOf(n)})(o)||function(n){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],s=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+r/1.75-t.dCtx.yAxisWidthRight,h=o.position-r/1.75+t.dCtx.yAxisWidthLeft,c="right"===u.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;s>i.svgWidth-i.translateX-c&&(i.skipLastTimelinelabel=!0);h<-(n.show&&!n.floating||"bar"!==f.chart.type&&"candlestick"!==f.chart.type&&"rangeBar"!==f.chart.type&&"boxPlot"!==f.chart.type?10:r/1.75)&&(i.skipFirstTimelinelabel=!0)}else"datetime"===e?t.dCtx.gridPad.right<r&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):"datetime"!==e&&t.dCtx.gridPad.right<r/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&("between"!==u.config.xaxis.tickPlacement||u.globals.isBarHorizontal)&&(t.dCtx.xPadRight=r/2+1)}(n)};f.yaxis.forEach(function(n,i){o?(t.dCtx.gridPad.left<r&&(t.dCtx.xPadLeft=r/2+1),t.dCtx.xPadRight=r/2+1):s(n,i)})}}]),u}(),cr=function(){function u(n){i(this,u);this.w=n.w;this.dCtx=n}return r(u,[{key:"getyAxisLabelsCoords",value:function(){var u=this,i=this.w,r=[],f=10,e=new y(this.dCtx.ctx);return i.config.yaxis.map(function(o,s){var a=i.globals.yAxisScale[s],v=0,p;if(!e.isYAxisHidden(s)&&o.labels.show&&void 0!==o.labels.minWidth&&(v=o.labels.minWidth),!e.isYAxisHidden(s)&&o.labels.show&&a.result.length){var w=i.globals.yLabelFormatters[s],b=a.niceMin===Number.MIN_VALUE?0:a.niceMin,k=String(b).length>String(a.niceMax).length?b:a.niceMax,h=w(k,{seriesIndex:s,dataPointIndex:-1,w:i}),y=h;(void 0!==h&&0!==h.length||(h=k),i.globals.isBarHorizontal)&&(f=0,p=i.globals.labels.slice(),h=w(h=n.getLargestStringFromArr(p),{seriesIndex:s,dataPointIndex:-1,w:i}),y=u.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p));var d=new t(u.dCtx.ctx),g="rotate(".concat(o.labels.rotate," 0 0)"),c=d.getTextRects(h,o.labels.style.fontSize,o.labels.style.fontFamily,g,!1),l=c;h!==y&&(l=d.getTextRects(y,o.labels.style.fontSize,o.labels.style.fontFamily,g,!1));r.push({width:(v>l.width||v>c.width?v:l.width>c.width?l.width:c.width)+f,height:l.height>c.height?l.height:c.height})}else r.push({width:0,height:0})}),r}},{key:"getyAxisTitleCoords",value:function(){var i=this,r=this.w,n=[];return r.config.yaxis.map(function(r){if(r.show&&void 0!==r.title.text){var f=new t(i.dCtx.ctx),e="rotate(".concat(r.title.rotate," 0 0)"),u=f.getTextRects(r.title.text,r.title.style.fontSize,r.title.style.fontFamily,e,!1);n.push({width:u.width,height:u.height})}else n.push({width:0,height:0})}),n}},{key:"getTotalYAxisWidth",value:function(){var n=this.w,t=0,i=0,r=0,u=n.globals.yAxisScale.length>1?10:0,e=new y(this.dCtx.ctx),f=function(f,o){var h=n.config.yaxis[o].floating,s=0;f.width>0&&!h?(s=f.width+u,function(t){return n.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(s=s-f.width-u)):s=h||e.isYAxisHidden(o)?0:5;n.config.yaxis[o].opposite?r+=s:i+=s;t+=s};return n.globals.yLabelsCoords.map(function(n,t){f(n,t)}),n.globals.yTitleCoords.map(function(n,t){f(n,t)}),n.globals.isBarHorizontal&&!n.config.yaxis[0].floating&&(t=n.globals.yLabelsCoords[0].width+n.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=r,t}}]),u}(),lr=function(){function n(t){i(this,n);this.w=t.w;this.dCtx=t}return r(n,[{key:"gridPadForColumnsInNumericAxis",value:function(n){var t=this.w,o,u,f;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var e=function(n){return"bar"===n||"rangeBar"===n||"candlestick"===n||"boxPlot"===n},s=t.config.chart.type,i=0,r=e(s)?t.config.series.length:1;return(t.globals.comboBarCount>
400&&(r=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(n){e(n.type)&&(r-=1)}),t.config.chart.stacked&&(r=1),(e(s)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&r>0)&&(f=Math.abs(t.globals.initialMaxX-t.globals.initialMinX),f<=3&&(f=t.globals.dataPoints),o=f/n,t.globals.minXDiff&&t.globals.minXDiff/o>0&&(u=t.globals.minXDiff/o),u>n/2&&(u/=2),(i=u/r*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(i=1),i=i/(r>1?1:1.5)+5,t.globals.barPadForNumericAxis=i),i}},{key:"gridPadFortitleSubtitle",value:function(){var f=this,n=this.w,i=n.globals,t=this.dCtx.isSparkline||!n.globals.axisCharts?0:10,r,u;["title","subtitle"].forEach(function(i){t+=void 0!==n.config[i].text?n.config[i].margin:f.dCtx.isSparkline||!n.globals.axisCharts?0:5});!n.config.legend.show||"bottom"!==n.config.legend.position||n.config.legend.floating||n.globals.axisCharts||(t+=10);r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title");u=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-r.height-u.height-t;i.translateY=i.translateY+r.height+u.height+t}},{key:"setGridXPosForDualYAxis",value:function(n,t){var i=this.w,r=new y(this.dCtx.ctx);i.config.yaxis.map(function(u,f){-1!==i.globals.ignoreYAxisIndexes.indexOf(f)||u.floating||r.isYAxisHidden(f)||(u.opposite&&(i.globals.translateX=i.globals.translateX-(t[f].width+n[f].width)-parseInt(i.config.yaxis[f].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),n}(),ot=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w;this.lgRect={};this.yAxisWidth=0;this.yAxisWidthLeft=0;this.yAxisWidthRight=0;this.xAxisHeight=0;this.isSparkline=this.w.config.chart.sparkline.enabled;this.dimHelpers=new sr(this);this.dimYAxis=new cr(this);this.dimXAxis=new hr(this);this.dimGrid=new lr(this);this.lgWidthForSideLegends=0;this.gridPad=this.w.config.grid.padding;this.xPadRight=0;this.xPadLeft=0}return r(n,[{key:"plotCoords",value:function(){var n=this.w.globals,t;this.lgRect=this.dimHelpers.getLegendsRect();n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts();this.dimGrid.gridPadFortitleSubtitle();n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom;n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;t=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*t;n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(t>0?t+4:0);n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var c=this,t=this.w,n=t.globals,f=this.dimYAxis.getyAxisLabelsCoords(),e=this.dimYAxis.getyAxisTitleCoords(),o,s,i,u,r,h;t.globals.yLabelsCoords=[];t.globals.yTitleCoords=[];t.config.yaxis.map(function(n,i){t.globals.yLabelsCoords.push({width:f[i].width,index:i});t.globals.yTitleCoords.push({width:e[i].width,index:i})});this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();o=this.dimXAxis.getxAxisLabelsCoords();s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,s);n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4;n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0;t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1);n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY;n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;i=this.yAxisWidth;u=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height;n.xAxisLabelsWidth=this.xAxisWidth;n.xAxisHeight=this.xAxisHeight;r=10;("radar"===t.config.chart.type||this.isSparkline)&&(i=0,u=n.goldenPadding);this.isSparkline&&(this.lgRect={height:0,width:0});(this.isSparkline||"treemap"===t.config.chart.type)&&(i=0,u=0,r=0);this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);h=function(){n.translateX=i;n.gridHeight=n.svgHeight-c.lgRect.height-u-(c.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15);n.gridWidth=n.svgWidth-i};switch("top"===t.config.xaxis.position&&(r=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=r;h();break;case"top":n.translateY=this.lgRect.height+r;h();break;case"left":n.translateY=r;n.translateX=this.lgRect.width+i;n.gridHeight=n.svgHeight-u-12;n.gridWidth=n.svgWidth-this.lgRect.width-i;break;case"right":n.translateY=r;n.translateX=i;n.gridHeight=n.svgHeight-u-12;n.gridWidth=n.svgWidth-this.lgRect.width-i-5;break;default:throw new Error("Legend position not supported");}this.dimGrid.setGridXPosForDualYAxis(e,f);new vt(this.ctx).setYAxisXPosition(f,e)}},{key:"setDimensionsForNonAxisCharts",value:function(){var u=this.w,n=u.globals,t=u.config,f=0;u.config.legend.show&&!u.config.legend.floating&&(f=20);var e="pie"===t.chart.type||"polarArea"===t.chart.type||"donut"===t.chart.type?"pie":"radialBar",i=t.plotOptions[e].offsetY,r=t.plotOptions[e].offsetX;if(!t.legend.show||t.legend.floating)return n.gridHeight=n.svgHeight-t.grid.padding.left+t.grid.padding.right,n.gridWidth=n.gridHeight,n.translateY=i,void(n.translateX=r+(n.svgWidth-n.gridWidth)/2);switch(t.legend.position){case"bottom":n.gridHeight=n.svgHeight-this.lgRect.height-n.goldenPadding;n.gridWidth=n.svgWidth;n.translateY=i-10;n.translateX=r+(n.svgWidth-n.gridWidth)/2;break;case"top":n.gridHeight=n.svgHeight-this.lgRect.height-n.goldenPadding;n.gridWidth=n.svgWidth;n.translateY=this.lgRect.height+i+10;n.translateX=r+(n.svgWidth-n.gridWidth)/2;break;case"left":n.gridWidth=n.svgWidth-this.lgRect.width-f;n.gridHeight="auto"!==t.chart.height?n.svgHeight:n.gridWidth;n.translateY=i;n.translateX=r+this.lgRect.width+f;break;case"right":n.gridWidth=n.svgWidth-this.lgRect.width-f-5;n.gridHeight="auto"!==t.chart.height?n.svgHeight:n.gridWidth;n.translateY=i;n.translateX=r+10;break;default:throw new Error("Legend position not supported");}}},{key:"conditionalChecksForAxisCoords",value:function(n,t){var i=this.w,r,u;this.xAxisHeight=(n.height+t.height)*(i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO)+(i.globals.rotateXLabels?22:10);this.xAxisWidth=n.width;this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight);i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight);i.config.xaxis.floating&&(this.xAxisHeight=0);r=0;u=0;i.config.yaxis.forEach(function(n){r+=n.labels.minWidth;u+=n.labels.maxWidth});this.yAxisWidth<r&&(this.yAxisWidth=r);this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),n}(),ar=function(){function u(n){i(this,u);this.w=n.w;this.lgCtx=n}return r(u,[{key:"getLegendStyles",value:function(){var n=document.createElement("style"),t;return n.setAttribute("type","text/css"),t=document.createTextNode("\t\n    \t\n      .apexcharts-legend {\t\n        display: flex;\t\n        overflow: auto;\t\n        padding: 0 10px;\t\n      }\t\n      .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\t\n        flex-wrap: wrap\t\n      }\t\n      .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        flex-direction: column;\t\n        bottom: 0;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-left, .apexcharts-legend.position-top.apexcharts-align-left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        justify-content: flex-start;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-center, .apexcharts-legend.position-top.apexcharts-align-center {\t\n        justify-content: center;  \t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-right, .apexcharts-legend.position-top.apexcharts-align-right {\t\n        justify-content: flex-end;\t\n      }\t\n      .apexcharts-legend-series {\t\n        cursor: pointer;\t\n        line-height: normal;\t\n      }\t\n      .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\t\n        display: flex;\t\n        align-items: center;\t\n      }\t\n      .apexcharts-legend-text {\t\n        position: relative;\t\n        font-size: 14px;\t\n      }\t\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n        pointer-events: none;\t\n      }\t\n      .apexcharts-legend-marker {\t\n        position: relative;\t\n        display: inline-block;\t\n        cursor: pointer;\t\n        margin-right: 3px;\t\n        border-style: solid;\n      }\t\n      \t\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n        display: inline-block;\t\n      }\t\n      .apexcharts-legend-series.apexcharts-no-click {\t\n        cursor: auto;\t\n      }\t\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n        display: none !important;\t\n      }\t\n      .apexcharts-inactive-legend {\t\n        opacity: 0.45;\t\n      }"),n.appendChild(t),n}},{key:"getLegendBBox",value:function(){var n=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=n.width;return{clwh:n.height,clww:t}}},{key:"appendToForeignObject",value:function(){var n=this.w.globals,t;n.dom.elLegendForeign=document.createElementNS(n.SVGNS,"foreignObject");t=n.dom.elLegendForeign;t.setAttribute("x",0);t.setAttribute("y",0);t.setAttribute("width",n.svgWidth);t.setAttribute("height",n.svgHeight);n.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml");t.appendChild(n.dom.elLegendWrap);t.appendChild(this.getLegendStyles());n.dom.Paper.node.insertBefore(t,n.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(n,i){var h=this,r=this.w,u,f,e,o,s;r.globals.axisCharts||"radialBar"===r.config.chart.type?(r.globals.resized=!0,u=null,f=null,(r.globals.risingSeries=[],r.globals.axisCharts?(u=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),f=parseInt(u.getAttribute("data:realIndex"),10)):(u=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']")),f=parseInt(u.getAttribute("rel"),10)-1),i)?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}
40].forEach(function(n){h.riseCollapsedSeries(n.cs,n.csi,f)}):this.hideSeries({seriesEl:u,realIndex:f})):(e=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(n+1,"'] path")),o=r.config.chart.type,("pie"===o||"polarArea"===o||"donut"===o)&&(s=r.config.plotOptions.pie.donut.labels,new t(this.lgCtx.ctx).pathMouseDown(e.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(e.members[0].node,s)),e.fire("click"))}},{key:"hideSeries",value:function(t){var o=t.seriesEl,r=t.realIndex,i=this.w,f=n.clone(i.config.series),s,h,e,u;for(i.globals.axisCharts?(s=!1,(i.config.yaxis[r]&&i.config.yaxis[r].show&&i.config.yaxis[r].showAlways&&(s=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(r)<0&&(i.globals.ancillaryCollapsedSeries.push({index:r,data:f[r].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(r))),s)||(i.globals.collapsedSeries.push({index:r,data:f[r].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(r),h=i.globals.risingSeries.indexOf(r),i.globals.risingSeries.splice(h,1))):(i.globals.collapsedSeries.push({index:r,data:f[r]}),i.globals.collapsedSeriesIndices.push(r)),e=o.childNodes,u=0;u<e.length;u++)e[u].classList.contains("apexcharts-series-markers-wrap")&&(e[u].classList.contains("apexcharts-hide")?e[u].classList.remove("apexcharts-hide"):e[u].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.config.series.length;f=this._getSeriesBasedOnCollapsedState(f);this.lgCtx.ctx.updateHelpers._updateSeries(f,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,i,r){var f=this.w,e=n.clone(f.config.series),u;if(t.length>0){for(u=0;u<t.length;u++)t[u].index===r&&(f.globals.axisCharts?(e[r].data=t[u].data.slice(),t.splice(u,1),i.splice(u,1),f.globals.risingSeries.push(r)):(e[r]=t[u].data,t.splice(u,1),i.splice(u,1),f.globals.risingSeries.push(r)));e=this._getSeriesBasedOnCollapsedState(e);this.lgCtx.ctx.updateHelpers._updateSeries(e,f.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(n){var t=this.w;return t.globals.axisCharts?n.forEach(function(i,r){t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(n[r].data=[])}):n.forEach(function(i,r){t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(n[r]=0)}),n}}]),u}(),ei=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;this.onLegendClick=this.onLegendClick.bind(this);this.onLegendHovered=this.onLegendHovered.bind(this);this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length;this.legendHelpers=new ar(this)}return r(u,[{key:"init",value:function(){var r=this.w,t=r.globals,i=r.config;if((i.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends();n.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject();"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var k=this,i=this.w,ot=i.config.legend.fontFamily,h=i.globals.seriesNames,v=i.globals.colors.slice(),d,p,w,s,e,o,b,a;"heatmap"===i.config.chart.type?(d=i.config.plotOptions.heatmap.colorScale.ranges,h=d.map(function(n){return n.name?n.name:n.from+" - "+n.to}),v=d.map(function(n){return n.color})):this.isBarsDistributed&&(h=i.globals.labels.slice());i.config.legend.customLegendItems.length&&(h=i.config.legend.customLegendItems);for(var st=i.globals.legendFormatter,g=i.config.legend.inverseOrder,r=g?h.length-1:0;g?r>=0:r<=h.length-1;g?r--:r++){var y=st(h[r],{seriesIndex:r,w:i}),c=!1,l=!1;if(i.globals.collapsedSeries.length>0)for(p=0;p<i.globals.collapsedSeries.length;p++)i.globals.collapsedSeries[p].index===r&&(c=!0);if(i.globals.ancillaryCollapsedSeriesIndices.length>0)for(w=0;w<i.globals.ancillaryCollapsedSeriesIndices.length;w++)i.globals.ancillaryCollapsedSeriesIndices[w]===r&&(l=!0);s=document.createElement("span");s.classList.add("apexcharts-legend-marker");var nt=i.config.legend.markers.offsetX,tt=i.config.legend.markers.offsetY,it=i.config.legend.markers.height,rt=i.config.legend.markers.width,ut=i.config.legend.markers.strokeWidth,ft=i.config.legend.markers.strokeColor,et=i.config.legend.markers.radius,u=s.style;u.background=v[r];u.color=v[r];u.setProperty("background",v[r],"important");i.config.legend.markers.fillColors&&i.config.legend.markers.fillColors[r]&&(u.background=i.config.legend.markers.fillColors[r]);void 0!==i.globals.seriesColors[r]&&(u.background=i.globals.seriesColors[r],u.color=i.globals.seriesColors[r]);u.height=Array.isArray(it)?parseFloat(it[r])+"px":parseFloat(it)+"px";u.width=Array.isArray(rt)?parseFloat(rt[r])+"px":parseFloat(rt)+"px";u.left=(Array.isArray(nt)?parseFloat(nt[r]):parseFloat(nt))+"px";
40u.top=(Array.isArray(tt)?parseFloat(tt[r]):parseFloat(tt))+"px";u.borderWidth=Array.isArray(ut)?ut[r]:ut;u.borderColor=Array.isArray(ft)?ft[r]:ft;u.borderRadius=Array.isArray(et)?parseFloat(et[r])+"px":parseFloat(et)+"px";i.config.legend.markers.customHTML&&(Array.isArray(i.config.legend.markers.customHTML)?i.config.legend.markers.customHTML[r]&&(s.innerHTML=i.config.legend.markers.customHTML[r]()):s.innerHTML=i.config.legend.markers.customHTML());t.setAttrs(s,{rel:r+1,"data:collapsed":c||l});(c||l)&&s.classList.add("apexcharts-inactive-legend");e=document.createElement("div");o=document.createElement("span");o.classList.add("apexcharts-legend-text");o.innerHTML=Array.isArray(y)?n.sanitizeDom(y.join(" ")):n.sanitizeDom(y);b=i.config.legend.labels.useSeriesColors?i.globals.colors[r]:i.config.legend.labels.colors;b||(b=i.config.chart.foreColor);o.style.color=b;o.style.fontSize=parseFloat(i.config.legend.fontSize)+"px";o.style.fontWeight=i.config.legend.fontWeight;o.style.fontFamily=ot||i.config.chart.fontFamily;t.setAttrs(o,{rel:r+1,i:r,"data:default-text":encodeURIComponent(y),"data:collapsed":c||l});e.appendChild(s);e.appendChild(o);a=new f(this.ctx);i.config.legend.showForZeroSeries||0===a.getSeriesTotalByIndex(r)&&a.seriesHaveSameValues(r)&&!a.isSeriesNull(r)&&-1===i.globals.collapsedSeriesIndices.indexOf(r)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(r)&&e.classList.add("apexcharts-hidden-zero-series");i.config.legend.showForNullSeries||a.isSeriesNull(r)&&-1===i.globals.collapsedSeriesIndices.indexOf(r)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(r)&&e.classList.add("apexcharts-hidden-null-series");i.globals.dom.elLegendWrap.appendChild(e);i.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(i.config.legend.horizontalAlign));i.globals.dom.elLegendWrap.classList.add("position-"+i.config.legend.position);e.classList.add("apexcharts-legend-series");e.style.margin="".concat(i.config.legend.itemMargin.vertical,"px ").concat(i.config.legend.itemMargin.horizontal,"px");i.globals.dom.elLegendWrap.style.width=i.config.legend.width?i.config.legend.width+"px":"";i.globals.dom.elLegendWrap.style.height=i.config.legend.height?i.config.legend.height+"px":"";t.setAttrs(e,{rel:r+1,seriesName:n.escapeString(h[r]),"data:collapsed":c||l});(c||l)&&e.classList.add("apexcharts-inactive-legend");i.config.legend.onItemClick.toggleDataSeries||e.classList.add("apexcharts-no-click")}i.globals.dom.elWrap.addEventListener("click",k.onLegendClick,!0);i.config.legend.onItemHover.highlightDataSeries&&0===i.config.legend.customLegendItems.length&&(i.globals.dom.elWrap.addEventListener("mousemove",k.onLegendHovered,!0),i.globals.dom.elWrap.addEventListener("mouseout",k.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(n,t){var i=this.w,r=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),h=r.getBoundingClientRect(),f=0,u=0;if("bottom"===i.config.legend.position)u+=i.globals.svgHeight-h.height/2;else if("top"===i.config.legend.position){var e=new ot(this.ctx),o=e.dimHelpers.getTitleSubtitleCoords("title").height,s=e.dimHelpers.getTitleSubtitleCoords("subtitle").height;u=u+(o>0?o-10:0)+(s>0?s-10:0)}r.style.position="absolute";f=f+n+i.config.legend.offsetX;u=u+t+i.config.legend.offsetY;r.style.left=f+"px";r.style.top=u+"px";"bottom"===i.config.legend.position?(r.style.top="auto",r.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(r.style.left="auto",r.style.right=25+i.config.legend.offsetX+"px");["width","height"].forEach(function(n){r.style[n]&&(r.style[n]=parseInt(i.config.legend[n],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var n=this.w;n.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var r=this.legendHelpers.getLegendBBox(),i=new ot(this.ctx),u=i.dimHelpers.getTitleSubtitleCoords("title"),f=i.dimHelpers.getTitleSubtitleCoords("subtitle"),t=0;"bottom"===n.config.legend.position?t=-r.clwh/1.8:"top"===n.config.legend.position&&(t=u.height+f.height+n.config.title.margin+n.config.subtitle.margin-10);this.setLegendWrapXY(20,t)}},{key:"legendAlignVertical",value:function(){var n=this.w,i=this.legendHelpers.getLegendBBox(),t=0;"left"===n.config.legend.position&&(t=20);"right"===n.config.legend.position&&(t=n.globals.svgWidth-i.clww-10);this.setLegendWrapXY(t,20)}},{key:"onLegendHovered",value:function(n){var r=this.w,t=n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker"),i;"heatmap"===r.config.chart.type||this.isBarsDistributed?t&&(i=parseInt(n.target.getAttribute("rel"),10)-1,this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new h(this.ctx).highlightRangeInSeries(n,n.target)):!n.target.classList.contains("apexcharts-inactive-legend")&&t&&new h(this.ctx).toggleSeriesOnHover(n,n.target)}},{key:"onLegendClick",value:function(n){var i=this.w,r;if(!i.config.legend.customLegendItems.length&&(n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker"))){var t=parseInt(n.target.getAttribute("rel"),10)-1,f="true"===n.target.getAttribute("data:collapsed"),u=this.w.config.chart.events.legendClick;"function"==typeof u&&u(this.ctx,t,this.w);this.ctx.events.fireEvent("legendClick",[this.ctx,t,this.w]);r=this.w.config.legend.markers.onClick;"function"==typeof r&&n.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,t,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,t,this.w]));"treemap"!==i.config.chart.type&&"heatmap"!==i.config.chart.type&&!this.isBarsDistributed&&i.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(t,f)}}}]),u}(),oi=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;var t=this.w;this.ev=this.w.config.chart.events;this.selectedClass="apexcharts-selected";this.localeValues=this.w.globals.locale.toolbar;this.minX=t.globals.minX;this.maxX=t.globals.maxX}return r(u,[{key:"createToolbar",value:function(){var u=this,r=this.w,f=function(){return document.createElement("div")},s=f(),c,i,h,l,o,e;if(s.setAttribute("class","apexcharts-toolbar"),s.style.top=r.config.chart.toolbar.offsetY+"px",s.style.right=3-r.config.chart.toolbar.offsetX+"px",r.globals.dom.elWrap.appendChild(s),this.elZoom=f(),this.elZoomIn=f(),this.elZoomOut=f(),this.elPan=f(),this.elSelection=f(),this.elZoomReset=f(),this.elMenuIcon=f(),this.elMenu=f(),this.elCustomIcons=[],this.t=r.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(c=0;c<this.t.customIcons.length;c++)this.elCustomIcons.push(f());for(i=[],h=function(n,t,f){var e=n.toLowerCase();u.t[e]&&r.config.chart.zoom.enabled&&i.push({el:t,icon:"string"==typeof u.t[e]?u.t[e]:f,title:u.localeValues[n],"class":"apexcharts-".concat(e,"-icon")})},h("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n<\/svg>\n'),h("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n<\/svg>\n'),l=function(n){u.t[n]&&r.config.chart[n].enabled&&i.push({el:"zoom"===n?u.elZoom:u.elSelection,icon:"string"==typeof u.t[n]?u.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n<\/svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n<\/svg>',title:u.localeValues["zoom"===n?"selectionZoom":"selection"],"class":r.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})},l("zoom"),l("selection"),this.t.pan&&r.config.chart.zoom.enabled&&i.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    <\/defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    <\/clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 
400-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n<\/svg>',title:this.localeValues.pan,"class":r.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),h("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n<\/svg>'),this.t.download&&i.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/><\/svg>',title:this.localeValues.menu,"class":"apexcharts-menu-icon"}),o=0;o<this.elCustomIcons.length;o++)i.push({el:this.elCustomIcons[o],icon:this.t.customIcons[o].icon,title:this.t.customIcons[o].title,index:this.t.customIcons[o].index,"class":"apexcharts-toolbar-custom-icon "+this.t.customIcons[o].class});for(i.forEach(function(t,r){t.index&&n.moveIndexInArray(i,r,t.index)}),e=0;e<i.length;e++)t.setAttrs(i[e].el,{"class":i[e].class,title:i[e].title}
40),i[e].el.innerHTML=i[e].icon,s.appendChild(i[e].el);this._createHamburgerMenu(s);r.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):r.globals.panEnabled?this.elPan.classList.add(this.selectedClass):r.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass);this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(n){var r,i;for(this.elMenuItems=[],n.appendChild(this.elMenu),t.setAttrs(this.elMenu,{"class":"apexcharts-menu"}),r=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],this.w.globals.allSeriesHasEqualX||r.splice(2,1),i=0;i<r.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=r[i].title,t.setAttrs(this.elMenuItems[i],{"class":"apexcharts-menu-item ".concat(r[i].name),title:r[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var n=this,t;for(this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(t){t.classList.contains("exportSVG")?t.addEventListener("click",n.handleDownload.bind(n,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",n.handleDownload.bind(n,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",n.handleDownload.bind(n,"csv"))}),t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(n){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var i="selection"===n?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r="selection"===n?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r];i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var n=this.w;this.elZoom||(this.elZoom=n.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon"));this.elPan||(this.elPan=n.globals.dom.baseEl.querySelector(".apexcharts-pan-icon"));this.elSelection||(this.elSelection=n.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(n){this.toggleOtherControls();"pan"===n?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===n?this.elPan:this.elZoom,i="pan"===n?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass);i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(n){n.ctx.toolbar.toggleOtherControls();n.w.globals.panEnabled=!n.w.globals.panEnabled;n.ctx.toolbar.elPan.classList.contains(n.ctx.toolbar.selectedClass)?n.ctx.toolbar.elPan.classList.remove(n.ctx.toolbar.selectedClass):n.ctx.toolbar.elPan.classList.add(n.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,n=this.w;n.globals.panEnabled=!1;n.globals.zoomEnabled=!1;n.globals.selectionEnabled=!1;this.getToolbarIconsReference();[this.elPan,this.elSelection,this.elZoom].forEach(function(n){n&&n.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var n=this.w;n.globals.isTimelineBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY);var t=(this.minX+this.maxX)/2,r=(this.minX+t)/2,u=(this.maxX+t)/2,i=this._getNewMinXMaxX(r,u);n.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var n=this.w;if(n.globals.isTimelineBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY),!("datetime"===n.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,r=this.minX-(t-this.minX),u=this.maxX-(t-this.maxX),i=this._getNewMinXMaxX(r,u);n.globals.disableZoomOut||this.zoomUpdateOptions(i.minX,i.maxX)}}},{key:"_getNewMinXMaxX",value:function(n,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(n):n,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(t,i){var u=this.w,r,e,o,f;void 0!==t||void 0!==i?u.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,i=u.globals.dataPoints),i-t<2)||(r={min:t,max:i},e=this.getBeforeZoomRange(r),e&&(r=e.xaxis),o={xaxis:r},f=n.clone(u.globals.initialConfig.yaxis),u.config.chart.zoom.autoScaleYaxis&&(f=new k(this.ctx).autoScaleY(this.ctx,f,{xaxis:r})),u.config.chart.group||(o.yaxis=f),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,f)):this.handleZoomReset()}},{key:"zoomCallback",value:function(n,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:n,yaxis:t})}},{key:"getBeforeZoomRange",value:function(n,t){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:n,yaxis:t})),i}},{key:"toggleMenu",value:function(){var n=this;window.setTimeout(function(){n.elMenu.classList.contains("apexcharts-menu-open")?n.elMenu.classList.remove("apexcharts-menu-open"):n.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(n){var i=this.w,t=new lt(this.ctx);switch(n){case"svg":t.exportToSVG(this.ctx);break;case"png":t.exportToPng(this.ctx);break;case"csv":t.exportToCSV({series:i.config.series,columnDelimiter:i.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(){this.ctx.getSyncedCharts().forEac
40h(function(t){var i=t.w,r,u;(i.globals.lastXAxis.min=void 0,i.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof i.config.chart.events.beforeResetZoom)&&(r=i.config.chart.events.beforeResetZoom(t,i),r&&t.updateHelpers.revertDefaultAxisMinMax(r));"function"==typeof i.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max});i.globals.zoomed=!1;u=t.ctx.series.emptyCollapsedSeries(n.clone(i.globals.initialSeries));t.updateHelpers._updateSeries(u,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null;this.elZoomIn=null;this.elZoomOut=null;this.elPan=null;this.elSelection=null;this.elZoomReset=null;this.elMenuIcon=null}}]),u}(),vr=function(u){function f(n){var r;return i(this,f),(r=e.call(this,n)).ctx=n,r.w=n.w,r.dragged=!1,r.graphics=new t(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r}g(f,u);var e=nt(f);return r(f,[{key:"init",value:function(n){var u=this,i=n.xyRatios,t=this.w,r=this;this.xyRatios=i;this.zoomRect=this.graphics.drawRect(0,0,0,0);this.selectionRect=this.graphics.drawRect(0,0,0,0);this.gridRect=t.globals.dom.baseEl.querySelector(".apexcharts-grid");this.zoomRect.node.classList.add("apexcharts-zoom-rect");this.selectionRect.node.classList.add("apexcharts-selection-rect");t.globals.dom.elGraphical.add(this.zoomRect);t.globals.dom.elGraphical.add(this.selectionRect);this.slDraggableRect="x"===t.config.chart.selection.type?this.selectionRect.draggable({minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===t.config.chart.selection.type?this.selectionRect.draggable({minX:0,maxX:t.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging"));this.preselectedSelection();this.hoverArea=t.globals.dom.baseEl.querySelector("".concat(t.globals.chartClass," .apexcharts-svg"));this.hoverArea.classList.add("apexcharts-zoomable");this.eventList.forEach(function(n){u.hoverArea.addEventListener(n,r.svgMouseEvents.bind(r,i),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off());this.selectionRect=null;this.zoomRect=null;this.gridRect=null}},{key:"svgMouseEvents",value:function(n,t){var r=this.w,i=this,s=this.ctx.toolbar,f=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type,h=r.config.chart.toolbar.autoSelected,u,e,o;t.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===h?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(h),this.shiftWasPressed=!1);u=t.target.classList;u.contains("apexcharts-selection-rect")||u.contains("apexcharts-legend-marker")||u.contains("apexcharts-legend-text")||t.target.parentNode.classList.contains("apexcharts-toolbar")||((i.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,i.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which)&&(e=i.gridRect.getBoundingClientRect(),i.startX=i.clientX-e.left,i.startY=i.clientY-e.top,i.dragged=!1,i.w.globals.mousedown=!0),(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(i.dragged=!0,r.globals.panEnabled?(r.globals.selection=null,i.w.globals.mousedown&&i.panDragging({context:i,zoomtype:f,xyRatios:n})):(i.w.globals.mousedown&&r.globals.zoomEnabled||i.w.globals.mousedown&&r.globals.selectionEnabled)&&(i.selection=i.selectionDrawing({context:i,zoomtype:f}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type)&&(o=i.gridRect.getBoundingClientRect(),i.w.globals.mousedown&&(i.endX=i.clientX-o.left,i.endY=i.clientY-o.top,i.dragX=Math.abs(i.endX-i.startX),i.dragY=Math.abs(i.endY-i.startY),(r.globals.zoomEnabled||r.globals.selectionEnabled)&&i.selectionDrawn({context:i,zoomtype:f}),r.globals.panEnabled&&r.config.xaxis.convertedCatToNumeric&&i.delayedPanScrolled()),r.globals.zoomEnabled&&i.hideSelectionRect(this.selectionRect),i.dragged=!1,i.w.globals.mousedown=!1),this.makeSelectionRectDraggable())}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w,n;this.selectionRect&&(n=this.selectionRect.node.getBoundingClientRect(),n.width>0&&n.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing")))}},{key:"preselectedSelection",value:function(){var n=this.w,i=this.xyRatios,t,r;n.globals.zoomEnabled||(void 0!==n.globals.selection&&null!==n.globals.selection?this.drawSelectionRect(n.globals.selection):void 0!==n.config.chart.selection.xaxis.min&&void 0!==n.config.chart.selection.xaxis.max&&(t=(n.config.chart.selection.xaxis.min-n.globals.minX)/i.xRatio,r={x:t,y:0,width:n.globals.gridWidth-(n.globals.maxX-n.config.chart.selection.xaxis.max)/i.xRatio-t,height:n.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0},this.drawSelectionRect(r),this.makeSelectionRectDraggable(),"function"==typeof n.config.chart.events.selection&&n.c
40onfig.chart.events.selection(this.ctx,{xaxis:{min:n.config.chart.selection.xaxis.min,max:n.config.chart.selection.xaxis.max},yaxis:{}})))}},{key:"drawSelectionRect",value:function(n){var e=n.x,o=n.y,r=n.width,u=n.height,s=n.translateX,a=void 0===s?0:s,h=n.translateY,v=void 0===h?0:h,i=this.w,c=this.zoomRect,l=this.selectionRect,f;(this.dragged||null!==i.globals.selection)&&(f={transform:"translate("+a+", "+v+")"},i.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),c.attr({x:e,y:o,width:r,height:u,fill:i.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":i.config.chart.zoom.zoomedArea.fill.opacity,stroke:i.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":i.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":i.config.chart.zoom.zoomedArea.stroke.opacity}),t.setAttrs(c.node,f)),i.globals.selectionEnabled&&(l.attr({x:e,y:o,width:r>0?r:0,height:u>0?u:0,fill:i.config.chart.selection.fill.color,"fill-opacity":i.config.chart.selection.fill.opacity,stroke:i.config.chart.selection.stroke.color,"stroke-width":i.config.chart.selection.stroke.width,"stroke-dasharray":i.config.chart.selection.stroke.dashArray,"stroke-opacity":i.config.chart.selection.stroke.opacity}),t.setAttrs(l.node,f)))}},{key:"hideSelectionRect",value:function(n){n&&n.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(n){var a=n.context,l=n.zoomtype,o=this.w,t=a,e=this.gridRect.getBoundingClientRect(),i=t.startX-1,u=t.startY,s=!1,h=!1,r=t.clientX-e.left-i,f=t.clientY-e.top-u,c={};return Math.abs(r+i)>o.globals.gridWidth?r=o.globals.gridWidth-i:t.clientX-e.left<0&&(r=i),i>t.clientX-e.left&&(s=!0,r=Math.abs(r)),u>t.clientY-e.top&&(h=!0,f=Math.abs(f)),c="x"===l?{x:s?i-r:i,y:0,width:r,height:o.globals.gridHeight}:"y"===l?{x:0,y:h?u-f:u,width:o.globals.gridWidth,height:f}:{x:s?i-r:i,y:h?u-f:u,width:r,height:f},t.drawSelectionRect(c),t.selectionDragging("resizing"),c}},{key:"selectionDragging",value:function(n){var u=this,t=this.w,r=this.xyRatios,f=this.selectionRect,e=0,i,o;"resizing"===n&&(e=30);i=function(n){return parseFloat(f.node.getAttribute(n))};o={x:i("x"),y:i("y"),width:i("width"),height:i("height")};t.globals.selection=o;"function"==typeof t.config.chart.events.selection&&t.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var n=u.gridRect.getBoundingClientRect(),i=f.node.getBoundingClientRect(),e={xaxis:{min:t.globals.xAxisScale.niceMin+(i.left-n.left)*r.xRatio,max:t.globals.xAxisScale.niceMin+(i.right-n.left)*r.xRatio},yaxis:{min:t.globals.yAxisScale[0].niceMin+(n.bottom-i.bottom)*r.yRatio[0],max:t.globals.yAxisScale[0].niceMax-(i.top-n.top)*r.yRatio[0]}};t.config.chart.events.selection(u.ctx,e);t.config.chart.brush.enabled&&void 0!==t.config.chart.events.brushScrolled&&t.config.chart.events.brushScrolled(u.ctx,e)},e))}},{key:"selectionDrawn",value:function(t){var nt=t.context,s=t.zoomtype,r=this.w,i=nt,h=this.xyRatios,y=this.ctx.toolbar,w,b,u,f,a,v,e,o,d,c,p,g,l;i.startX>i.endX&&(w=i.startX,i.startX=i.endX,i.endX=w);i.startY>i.endY&&(b=i.startY,i.startY=i.endY,i.endY=b);u=void 0;f=void 0;r.globals.isTimelineBar?(u=r.globals.yAxisScale[0].niceMin+i.startX*h.invertedYRatio,f=r.globals.yAxisScale[0].niceMin+i.endX*h.invertedYRatio):(u=r.globals.xAxisScale.niceMin+i.startX*h.xRatio,f=r.globals.xAxisScale.niceMin+i.endX*h.xRatio);a=[];v=[];(r.config.yaxis.forEach(function(n,t){a.push(r.globals.yAxisScale[t].niceMax-h.yRatio[t]*i.startY);v.push(r.globals.yAxisScale[t].niceMax-h.yRatio[t]*i.endY)}),i.dragged&&(i.dragX>10||i.dragY>10)&&u!==f)&&(r.globals.zoomEnabled?(e=n.clone(r.globals.initialConfig.yaxis),o=n.clone(r.globals.initialConfig.xaxis),(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(u=Math.floor(u),f=Math.floor(f),u<1&&(u=1,f=r.globals.dataPoints),f-u<2&&(f=u+1)),"xy"!==s&&"x"!==s||(o={min:u,max:f}),"xy"!==s&&"y"!==s||e.forEach(function(n,t){e[t].min=v[t];e[t].max=a[t]}),r.config.chart.zoom.autoScaleYaxis)&&(d=new k(i.ctx),e=d.autoScaleY(i.ctx,e,{xaxis:o})),y&&(c=y.getBeforeZoomRange(o,e),c&&(o=c.xaxis?c.xaxis:o,e=c.yaxis?c.yaxis:e)),p={xaxis:o},r.config.chart.group||(p.yaxis=e),i.ctx.updateHelpers._updateOptions(p,!1,i.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof r.config.chart.events.zoomed&&y.zoomCallback(o,e)):r.globals.selectionEnabled&&(l=null,g={min:u,max:f}
40,"xy"!==s&&"y"!==s||(l=n.clone(r.config.yaxis)).forEach(function(n,t){l[t].min=v[t];l[t].max=a[t]}),r.globals.selection=i.selection,"function"==typeof r.config.chart.events.selection&&r.config.chart.events.selection(i.ctx,{xaxis:g,yaxis:l})))}},{key:"panDragging",value:function(n){var o=n.context,t=this.w,u=o,i,r,f,e;void 0!==t.globals.lastClientPosition.x&&(i=t.globals.lastClientPosition.x-u.clientX,r=t.globals.lastClientPosition.y-u.clientY,Math.abs(i)>Math.abs(r)&&i>0?this.moveDirection="left":Math.abs(i)>Math.abs(r)&&i<0?this.moveDirection="right":Math.abs(r)>Math.abs(i)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(i)&&r<0&&(this.moveDirection="down"));t.globals.lastClientPosition={x:u.clientX,y:u.clientY};f=t.globals.isTimelineBar?t.globals.minY:t.globals.minX;e=t.globals.isTimelineBar?t.globals.maxY:t.globals.maxX;t.config.xaxis.convertedCatToNumeric||u.panScrolled(f,e)}},{key:"delayedPanScrolled",value:function(){var n=this.w,t=n.globals.minX,i=n.globals.maxX,r=(n.globals.maxX-n.globals.minX)/2;"left"===this.moveDirection?(t=n.globals.minX+r,i=n.globals.maxX+r):"right"===this.moveDirection&&(t=n.globals.minX-r,i=n.globals.maxX-r);t=Math.floor(t);i=Math.floor(i);this.updateScrolledChart({xaxis:{min:t,max:i}},t,i)}},{key:"panScrolled",value:function(t,i){var r=this.w,h=this.xyRatios,o=n.clone(r.globals.initialConfig.yaxis),u=h.xRatio,f=r.globals.minX,e=r.globals.maxX,c,s;r.globals.isTimelineBar&&(u=h.invertedYRatio,f=r.globals.minY,e=r.globals.maxY);"left"===this.moveDirection?(t=f+r.globals.gridWidth/15*u,i=e+r.globals.gridWidth/15*u):"right"===this.moveDirection&&(t=f-r.globals.gridWidth/15*u,i=e-r.globals.gridWidth/15*u);r.globals.isTimelineBar||(t<r.globals.initialMinX||i>r.globals.initialMaxX)&&(t=f,i=e);c={min:t,max:i};r.config.chart.zoom.autoScaleYaxis&&(o=new k(this.ctx).autoScaleY(this.ctx,o,{xaxis:c}));s={xaxis:{min:t,max:i}};r.config.chart.group||(s.yaxis=o);this.updateScrolledChart(s,t,i)}},{key:"updateScrolledChart",value:function(n,t,i){var r=this.w;this.ctx.updateHelpers._updateOptions(n,!1,!1);"function"==typeof r.config.chart.events.scrolled&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:i}})}}]),f}(oi),si=function(){function t(n){i(this,t);this.w=n.w;this.ttCtx=n;this.ctx=n.ctx}return r(t,[{key:"getNearestValues",value:function(t){var f=t.hoverArea,b=t.elGrid,k=t.clientX,d=t.clientY,i=this.w,a=i.globals.gridWidth,g=i.globals.gridHeight,c=a/(i.globals.dataPoints-1),nt=g/i.globals.dataPoints,v=b.getBoundingClientRect(),y=this.hasBars(),u,e,r,p;(i.globals.comboCharts||y)&&!i.config.xaxis.convertedCatToNumeric&&(c=a/i.globals.dataPoints);u=k-v.left-i.globals.barPadForNumericAxis;e=d-v.top;u<0||e<0||u>i.globals.gridWidth||e>i.globals.gridHeight?(f.classList.remove("hovering-zoom"),f.classList.remove("hovering-pan")):i.globals.zoomEnabled?(f.classList.remove("hovering-pan"),f.classList.add("hovering-zoom")):i.globals.panEnabled&&(f.classList.remove("hovering-zoom"),f.classList.add("hovering-pan"));r=Math.round(u/c);p=Math.floor(e/nt);y&&!i.config.xaxis.convertedCatToNumeric&&(r=Math.ceil(u/c),r-=1);for(var w,o=null,l=null,s=[],h=0;h<i.globals.seriesXvalues.length;h++)s.push([i.globals.seriesXvalues[h][0]-1e-6].concat(i.globals.seriesXvalues[h]));return s=s.map(function(n){return n.filter(function(n){return n})}),w=i.globals.seriesYvalues.map(function(t){return t.filter(function(t){return n.isNumber(t)})}),i.globals.isXNumeric&&(o=(l=this.closestInMultiArray(u,e,s,w)).index,r=l.j,null!==o&&(s=i.globals.seriesXvalues[o],r=(l=this.closestInArray(u,s)).index)),i.globals.capturedSeriesIndex=null===o?-1:o,(!r||r<1)&&(r=0),i.globals.capturedDataPointIndex=r,{capturedSeries:o,j:i.globals.isBarHorizontal?p:r,hoverX:u,hoverY:e}}},{key:"closestInMultiArray",value:function(n,t,i,r){var c=this.w,u=0,f=null,e=-1;c.globals.series.length>1?u=this.getFirstActiveXArray(i):f=0;var l=r[u][0],a=i[u][0],o=Math.abs(n-a),s=Math.abs(t-l),h=s+o;return r.map(function(u,c){u.map(function(u,l){var a=Math.abs(t-r[c][l]),v=Math.abs(n-i[c][l]),y=v+a;y<h&&(h=y,o=v,s=a,f=c,e=l)})}),{index:f,j:e}}},{key:"getFirstActiveXArray",value:function(n){for(var r=0,i=n.map(function(n,t){return n.length>0?t:-1}),t=0;t<i.length;t++)if(-1!==i[t]){r=i[t];break}return r}},{key:"closestInArray",value:function(n,t){for(var r,e=t[0],u=null,f=Math.abs(n-e),i=0;i<t.length;i++)r=Math.abs(n-t[i]),r<f&&(f=r,u=i);return{index:u}}},{key:"isXoverlap",value:function(n){var r=[],i=this.w.globals.seriesX.filter(function(n){return void 0!==n[0]}),t;if(i.length>0)for(t=0;t<i.length-1;t++)void 0!==i[t][n]&&void 0!==i[t+1][n]&&i[t][n]!==i[t+1][n]&&r.push("unEqual");return 0===r.length}},{key:"isInitialSeriesSameLen",value:function(){for(var i=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){i=!1;break}return i}},{key:"getBarsHeight",value:function(n){return c(n).reduce(function(n,t){return n+t.getBBox().height},0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap"),t;return(n=c(n)).sort(function(n,t){return Number(t.getAttribute("data:realIndex"))<Number(n.getAttribute("data:realIndex"))?0:-1}
40),t=[],n.forEach(function(n){t.push(n.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(n){var t=this.w,i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[n]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(n){var u=this.w,r=this.ttCtx,i,t;for(0===r.allTooltipSeriesGroups.length&&(r.allTooltipSeriesGroups=u.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group")),i=r.allTooltipSeriesGroups,t=0;t<i.length;t++)"enable"===n?(i[t].classList.add("apexcharts-active"),i[t].style.display=u.config.tooltip.items.display):(i[t].classList.remove("apexcharts-active"),i[t].style.display="none")}}]),t}(),yr=function(){function t(n){i(this,t);this.w=n.w;this.ctx=n.ctx;this.ttCtx=n;this.tooltipUtil=new si(n)}return r(t,[{key:"drawSeriesTexts",value:function(n){var u=n.shared,f=void 0===u||u,c=n.ttItems,e=n.i,t=void 0===e?0:e,o=n.j,i=void 0===o?null:o,l=n.y1,a=n.y2,v=n.e,s=this.w,h,r;void 0!==s.config.tooltip.custom?this.handleCustomTooltip({i:t,j:i,y1:l,y2:a,w:s}):this.toggleActiveInactiveSeries(f);h=this.getValuesToPrint({i:t,j:i});this.printLabels({i:t,j:i,values:h,ttItems:c,shared:f,e:v});r=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=r.getBoundingClientRect().width;this.ttCtx.tooltipRect.ttHeight=r.getBoundingClientRect().height}},{key:"printLabels",value:function(n){var e,f=this,r=n.i,i=n.j,c=n.values,w=n.ttItems,v=n.shared,o=n.e,t=this.w,l=[],y=function(n){return t.globals.seriesGoals[n]&&t.globals.seriesGoals[n][i]&&Array.isArray(t.globals.seriesGoals[n][i])},b=c.xVal,k=c.zVal,d=c.xAxisTTVal,s="",h=t.globals.colors[r];null!==i&&t.config.plotOptions.bar.distributed&&(h=t.globals.colors[i]);for(var g=function(n,c){var p=f.getFormatters(r),a,g;s=f.getSeriesName({fn:p.yLbTitleFormatter,index:r,seriesIndex:r,j:i});"treemap"===t.config.chart.type&&(s=p.yLbTitleFormatter(String(t.config.series[r].data[i].x),{series:t.globals.series,seriesIndex:r,dataPointIndex:i,w:t}));a=t.config.tooltip.inverseOrder?c:n;t.globals.axisCharts&&(g=function(n){return p.yLbFormatter(t.globals.series[n][i],{series:t.globals.series,seriesIndex:n,dataPointIndex:i,w:t})},v?(p=f.getFormatters(a),s=f.getSeriesName({fn:p.yLbTitleFormatter,index:a,seriesIndex:r,j:i}),h=t.globals.colors[a],e=g(a),y(a)&&(l=t.globals.seriesGoals[a][i].map(function(n){return{attrs:n,val:p.yLbFormatter(n.value,{seriesIndex:a,dataPointIndex:i,w:t})}}))):(o&&o.target&&o.target.getAttribute("fill")&&(h=o.target.getAttribute("fill")),e=g(r),y(r)&&Array.isArray(t.globals.seriesGoals[r][i])&&(l=t.globals.seriesGoals[r][i].map(function(n){return{attrs:n,val:p.yLbFormatter(n.value,{seriesIndex:r,dataPointIndex:i,w:t})}}))));null===i&&(e=p.yLbFormatter(t.globals.series[r],u(u({},t),{},{seriesIndex:r,dataPointIndex:r})));f.DOMHandling({i:r,t:a,j:i,ttItems:w,values:{val:e,goalVals:l,xVal:b,xAxisTTVal:d,zVal:k},seriesName:s,shared:v,pColor:h})},a=0,p=t.globals.series.length-1;a<t.globals.series.length;a++,p--)g(a,p)}},{key:"getFormatters",value:function(n){var i,t=this.w,r=t.globals.yLabelFormatters[n];return void 0!==t.globals.ttVal?Array.isArray(t.globals.ttVal)?(r=t.globals.ttVal[n]&&t.globals.ttVal[n].formatter,i=t.globals.ttVal[n]&&t.globals.ttVal[n].title&&t.globals.ttVal[n].title.formatter):(r=t.globals.ttVal.formatter,"function"==typeof t.globals.ttVal.title.formatter&&(i=t.globals.ttVal.title.formatter)):i=t.config.tooltip.y.title.formatter,"function"!=typeof r&&(r=t.globals.yLabelFormatters[0]?t.globals.yLabelFormatters[0]:function(n){return n}),"function"!=typeof i&&(i=function(n){return n}),{yLbFormatter:r,yLbTitleFormatter:i}}},{key:"getSeriesName",value:function(n){var i=n.fn,r=n.index,u=n.seriesIndex,f=n.j,t=this.w;return i(String(t.globals.seriesNames[r]),{series:t.globals.series,seriesIndex:u,dataPointIndex:f,w:t})}}
40,{key:"DOMHandling",value:function(t){var v,y,s,h,p;t.i;var i=t.t,w=t.j,f=t.ttItems,u=t.values,b=t.seriesName,k=t.shared,c=t.pColor,r=this.w,o=this.ttCtx;Object.keys(u).forEach(function(t){"string"==typeof u[t]&&(u[t]=n.sanitizeDom(u[t]))});var l=u.val,d=u.goalVals,g=u.xVal,nt=u.xAxisTTVal,a=u.zVal,e=null;e=f[i].children;r.config.tooltip.fillSeriesColor&&(f[i].style.backgroundColor=c,e[0].style.display="none");o.showTooltipTitle&&(null===o.tooltipTitle&&(o.tooltipTitle=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),o.tooltipTitle.innerHTML=g);o.blxaxisTooltip&&(o.xaxisTooltipText.innerHTML=""!==nt?nt:g);v=f[i].querySelector(".apexcharts-tooltip-text-y-label");v&&(v.innerHTML=b?n.sanitizeDom(b):"");y=f[i].querySelector(".apexcharts-tooltip-text-y-value");y&&(y.innerHTML=void 0!==l?l:"");e[0]&&e[0].classList.contains("apexcharts-tooltip-marker")&&(r.config.tooltip.marker.fillColors&&Array.isArray(r.config.tooltip.marker.fillColors)&&(c=r.config.tooltip.marker.fillColors[i]),e[0].style.backgroundColor=c);r.config.tooltip.marker.show||(e[0].style.display="none");s=f[i].querySelector(".apexcharts-tooltip-text-goals-label");h=f[i].querySelector(".apexcharts-tooltip-text-goals-value");d.length&&r.globals.seriesGoals[i]?(p=function(){var n="<div >",t="<div>";d.forEach(function(i){n+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"><\/span> ').concat(i.attrs.name,"<\/div>");t+="<div>".concat(i.val,"<\/div>")});s.innerHTML=n+"<\/div>";h.innerHTML=t+"<\/div>"},k?r.globals.seriesGoals[i][w]&&Array.isArray(r.globals.seriesGoals[i][w])?p():(s.innerHTML="",h.innerHTML=""):p()):(s.innerHTML="",h.innerHTML="");null!==a&&(f[i].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=r.config.tooltip.z.title,f[i].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==a?a:"");k&&e[0]&&(e[0].parentNode.style.display=null==l||r.globals.collapsedSeriesIndices.indexOf(i)>-1?"none":r.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(n){var i=this.w,t;n?this.tooltipUtil.toggleAllTooltipSeriesGroups("enable"):(this.tooltipUtil.toggleAllTooltipSeriesGroups("disable"),t=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group"),t&&(t.classList.add("apexcharts-active"),t.style.display=i.config.tooltip.items.display))}},{key:"getValuesToPrint",value:function(n){var f=n.i,r=n.j,t=this.w,e=this.ctx.series.filteredSeriesX(),i="",o="",l=null,h=null,c={series:t.globals.series,seriesIndex:f,dataPointIndex:r,w:t},a=t.globals.ttZFormatter,u;return null===r?h=t.globals.series[f]:t.globals.isXNumeric&&"treemap"!==t.config.chart.type?(i=e[f][r],0===e[f].length&&(i=e[this.tooltipUtil.getFirstActiveXArray(e)][r])):i=void 0!==t.globals.labels[r]?t.globals.labels[r]:"",u=i,i=t.globals.isXNumeric&&"datetime"===t.config.xaxis.type?new et(this.ctx).xLabelFormat(t.globals.ttKeyFormatter,u,u,{i:void 0,dateFormatter:new s(this.ctx).formatDate,w:this.w}):t.globals.isBarHorizontal?t.globals.yLabelFormatters[0](u,c):t.globals.xLabelFormatter(u,c),void 0!==t.config.tooltip.x.formatter&&(i=t.globals.ttKeyFormatter(u,c)),t.globals.seriesZ.length>0&&t.globals.seriesZ[f].length>0&&(l=a(t.globals.seriesZ[f][r],t)),o="function"==typeof t.config.xaxis.tooltip.formatter?t.globals.xaxisTooltipFormatter(u,c):i,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(i)?i.join(" "):i,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:l}}},{key:"handleCustomTooltip",value:function(n){var i=n.i,u=n.j,f=n.y1,e=n.y2,r=n.w,o=this.ttCtx.getElTooltip(),t=r.config.tooltip.custom;Array.isArray(t)&&t[i]&&(t=t[i]);o.innerHTML=t({ctx:this.ctx,series:r.globals.series,seriesIndex:i,dataPointIndex:u,y1:f,y2:e,w:r})}}]),t}(),hi=function(){function n(t){i(this,n);this.ttCtx=t;this.ctx=t.ctx;this.w=t.w}return r(n,[{key:"moveXCrosshairs",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=this.ttCtx,i=this.w,r=u.getElXCrosshairs(),t=n-u.xcrosshairsWidth/2,o=i.globals.labels.slice().length,f;(null!==e&&(t=i.globals.gridWidth/o*e),null!==r&&(r.setAttribute("x",t),r.setAttribute("x1",t),r.setAttribute("x2",t),r.setAttribute("y2",i.globals.gridHeight),r.classList.add("apexcharts-active")),t<0&&(t=0),t>i.globals.gridWidth&&(t=i.globals.gridWidth),u.blxaxisTooltip)&&(f=t,"tickWidth"!==i.config.xaxis.crosshairs.width&&"barWidth"!==i.config.xaxis.crosshairs.width||(f=t+u.xcrosshairsWidth/2),this.moveXAxisTooltip(f))}},{key:"moveYCrosshairs",value:function(n){var i=this.ttCtx;null!==i.ycrosshairs&&t.setAttrs(i.ycrosshairs,{y1:n,y2:n});null!==i.ycrosshairsHidden&&t.setAttrs(i.ycrosshairsHidden,{y1:n,y2:n})}},{key:"moveXAxisTooltip",value:function(n){var r=this.w,i=this.ttCtx,u,f;null!==i.xaxisTooltip&&(i.xaxisTooltip.classList.add("apexcharts-active"),u=i.xaxisOffY+r.config.xaxis.tooltip.offsetY+r.globals.translateY+1+r.config.xaxis.offsetY,(n-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(n))||(n+=r.globals.translateX,f=new t(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=f.
40width+"px",i.xaxisTooltip.style.left=n+"px",i.xaxisTooltip.style.top=u+"px"))}},{key:"moveYAxisTooltip",value:function(n){var i=this.w,t=this.ttCtx;null===t.yaxisTTEls&&(t.yaxisTTEls=i.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var f=parseInt(t.ycrosshairsHidden.getAttribute("y1"),10),r=i.globals.translateY+f,e=t.yaxisTTEls[n].getBoundingClientRect().height,u=i.globals.translateYAxisX[n]-2;i.config.yaxis[n].opposite&&(u-=26);r-=e/2;-1===i.globals.ignoreYAxisIndexes.indexOf(n)?(t.yaxisTTEls[n].classList.add("apexcharts-active"),t.yaxisTTEls[n].style.top=r+"px",t.yaxisTTEls[n].style.left=u+i.config.yaxis[n].tooltip.offsetX+"px"):t.yaxisTTEls[n].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(n,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,e=this.ttCtx,h=e.getElTooltip(),u=e.tooltipRect,o=null!==s?parseFloat(s):1,r=parseFloat(n)+o+5,f=parseFloat(t)+o/2,c,l;(r>i.globals.gridWidth/2&&(r=r-u.ttWidth-o-15),r>i.globals.gridWidth-u.ttWidth-10&&(r=i.globals.gridWidth-u.ttWidth),r<-20&&(r=-20),i.config.tooltip.followCursor)?(c=e.getElGrid(),l=c.getBoundingClientRect(),f=e.e.clientY+i.globals.translateY-l.top-u.ttHeight/2):i.globals.isBarHorizontal?f-=u.ttHeight:(u.ttHeight/2+f>i.globals.gridHeight&&(f=i.globals.gridHeight-u.ttHeight+i.globals.translateY),f<0&&(f=0));isNaN(r)||(r+=i.globals.translateX,h.style.left=r+"px",h.style.top=f+"px")}},{key:"moveMarkers",value:function(n,t){var f=this.w,u=this.ttCtx,r,i;if(f.globals.markers.size[n]>0)for(r=f.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(n,"'] .apexcharts-marker")),i=0;i<r.length;i++)parseInt(r[i].getAttribute("rel"),10)===t&&(u.marker.resetPointsSize(),u.marker.enlargeCurrentPoint(t,r[i]));else u.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,n)}},{key:"moveDynamicPointOnHover",value:function(n,t){var u,i,f=this.w,s=this.ttCtx,o=f.globals.pointsArray,h=s.tooltipUtil.getHoverMarkerSize(t),e=f.config.series[t].type,r;e&&("column"===e||"candlestick"===e||"boxPlot"===e)||(u=o[t][n][0],i=o[t][n][1]?o[t][n][1]:0,r=f.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle")),r&&i<f.globals.gridHeight&&i>0&&(r.setAttribute("r",h),r.setAttribute("cx",u),r.setAttribute("cy",i)),this.moveXCrosshairs(u),s.fixedTooltip||this.moveTooltip(u,i,h))}},{key:"moveDynamicPointsOnHover",value:function(n){var u,o=this.ttCtx,f=o.w,s=0,a=0,e=f.globals.pointsArray,l,i,t,c,r,v;if(u=new h(this.ctx).getActiveConfigSeriesIndex(!0),l=o.tooltipUtil.getHoverMarkerSize(u),e[u]&&(s=e[u][n][0],a=e[u][n][1]),i=o.tooltipUtil.getAllMarkers(),null!==i)for(t=0;t<f.globals.series.length;t++)c=e[t],(f.globals.comboCharts&&void 0===c&&i.splice(t,0,null),c&&c.length)&&(r=e[t][n][1],i[t].setAttribute("cx",s),null!==r&&!isNaN(r)&&r<f.globals.gridHeight&&r>0?(i[t]&&i[t].setAttribute("r",l),i[t]&&i[t].setAttribute("cy",r)):i[t]&&i[t].setAttribute("r",0));(this.moveXCrosshairs(s),o.fixedTooltip)||(v=a||f.globals.gridHeight,this.moveTooltip(s,v,l))}},{key:"moveStickyTooltipOverBars",value:function(n){var t=this.w,r=this.ttCtx,f=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,e=f>=2&&f%2==0?Math.floor(f/2):Math.floor(f/2)+1,c;t.globals.isBarHorizontal&&(e=new h(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var i=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(e,"'] path[j='").concat(n,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(e,"'] path[j='").concat(n,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(e,"'] path[j='").concat(n,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(e,"'] path[j='").concat(n,"']")),u=i?parseFloat(i.getAttribute("cx")):0,o=i?parseFloat(i.getAttribute("cy")):0,s=i?parseFloat(i.getAttribute("barWidth")):0,l=i?parseFloat(i.getAttribute("barHeight")):0,a=r.getElGrid().getBoundingClientRect();(t.globals.isXNumeric?(u-=f%2!=0?s/2:0,i&&(i.classList.contains("apexcharts-candlestick-area")||i.classList.contains("apexcharts-boxPlot-area"))&&t.globals.comboCharts&&(u-=s/2)):t.globals.isBarHorizontal||(u=r.xAxisTicksPositions[n-1]+r.dataPointsDividedWidth/2,isNaN(u)&&(u=r.xAxisTicksPositions[n]-r.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?o+=l/3:o=r.e.clientY-a.top-r.tooltipRect.ttHeight/2,t.globals.isBarHorizontal||this.moveXCrosshairs(u),r.fixedTooltip)||(c=o||t.globals.gridHeight,this.moveTooltip(u,c))}}]),n}(),pr=function(){function u(n){i(this,u);this.w=n.w;this.ttCtx=n;this.ctx=n.ctx;this.tooltipPosition=new hi(n)}return r(u,[{key:"drawDynamicPoints",value:function(){var n=this.w,h=new t(this.ctx),l=new tt(this.ctx),i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series"),r,f,e,o,s,u;for(i=c(i),n.config.chart.stacked&&i.sort(function(n,t){return parseFloat(n.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}),r=0;r<i.length;r++)f=i[r].querySelector(".apexcharts-series-markers-wrap"),null!==f&&(e=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4)),"line"!==n.config.chart.type&&"area"!==n.config.chart.type||n.globals.comboCharts||n.config.tooltip.intersect||(o+=" no-pointer-events"),s=l.getMarkerConfig(o,r),(e=h.drawMarker(0,0,s)).node.setAttribute("default-marker-size",0),u=document.createElementNS(n.globals.SVGNS,"g"),u.classList.add("apexcharts-series-markers"),u.appendChild(e.node),f.appendChild(u))}},{key:"enlargeCurrentPoint",value:function(n,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w,i,u,o,s;"bubble"!==r.config.chart.type&&this.newPointSize(n,t);i=t.getAttribute("cx");u=t.getAttribute("cy");(null!==f&&null!==e&&(i=f,u=e),this.tooltipPosition.moveXCrosshairs(i),this.fixedTooltip)||("radar"===r.config.chart.type&&(o=this.ttCtx.getElGrid(),s=o.getBoundingClientRect(),i=this.ttCtx.e.clientX-s.left),this.tooltipPosition.moveTooltip(i,u,r.config.markers.hover.size))}},{key:"enlargePoints",value:function(n){for(var s,h,e,c,r=this.w,u=this,l=this.ttCtx,o=n,i=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),f=r.config.markers.hover.size,t=0;t<i.length;t++)s=i[t].getAttribute("rel"),h=i[t].getAttribute("index"),(void 0===f&&(f=r.globals.markers.size[h]+r.config.markers.hover.sizeOffset),o===parseInt(s,10))?(u.newPointSize(o,i[t]),e=i[t].getAttribute("cx"),c=i[t].getAttribute("cy"),u.tooltipPosition.moveXCrosshairs(e),l.fixedTooltip||u.tooltipPosition.moveTooltip(e,c,f)):u.oldPointSize(i[t])}},{key:"newPointSize",value:function(n,t){var r=this.w,i=r.config.markers.hover.size,u=0===n?t.parentNode.firstChild:t.parentNode.lastChild,f;"0"!==u.getAttribute("default-marker-size")&&(f=parseInt(u.getAttribute("index"),10),void 0===i&&(i=r.globals.markers.size[f]+r.config.markers.hover.sizeOffset),i<0&&(i=0),u.setAttribute("r",i))}},{key:"oldPointSize",value:function(n){var t=parseFloat(n.getAttribute("default-marker-size"));n.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var r,i=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<i.length;t++)r=parseFloat(i[t].getAttribute("default-marker-size")),n.isNumber(r)&&r>=0?i[t].setAttribute("r",r):i[t].setAttribute("r",0)}}]),u}(),wr=function(){function t(n){i(this,t);this.w=n.w;this.ttCtx=n}return r(t,[{key:"getAttr",value:function(n,t){return parseFloat(n.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(n){var t=n.e,l=n.opt,u=n.x,f=n.y,a=n.type,i=this.ttCtx,r=this.w,s;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var h=this.getAttr(t,"i"),c=this.getAttr(t,"j"),e=this.getAttr(t,"cx"),v=this.getAttr(t,"cy"),o=this.getAttr(t,"width"),y=this.getAttr(t,"height");(i.tooltipLabels.drawSeriesTexts({ttItems:l.ttItems,i:h,j:c,shared:!1,e:t}),r.globals.capturedSeriesIndex=h,r.globals.capturedDataPointIndex=c,u=e+i.tooltipRect.ttWidth/2+o,f=v+i.tooltipRect.ttHeight/2-y/2,i.tooltipPosition.moveXCrosshairs(e+o/2),u>r.globals.gridWidth/2&&(u=e-i.tooltipRect.ttWidth/2+o),i.w.config.tooltip.followCursor)&&(s=r.globals.dom.elWrap.getBoundingClientRect(),u=r.globals.clientX-s.left-i.tooltipRect.ttWidth/2,f=r.globals.clientY-s.top-i.tooltipRect.ttHeight-5)}return{x:u,y:f}}},{key:"handleMarkerTooltip",value:function(t){var u,f,s=t.e,r=t.opt,h=t.x,e=t.y,o=this.w,i=this.ttCtx,c,a;if(s.target.classList.contains("apexcharts-marker")){var v=parseInt(r.paths.getAttribute("cx"),10),l=parseInt(r.paths.getAttribute("cy"),10),y=parseFloat(r.paths.getAttribute("val"));(f=parseInt(r.paths.getAttribute("rel"),10),u=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,i.intersect)&&(c=n.findAnce
40stor(r.paths,"apexcharts-series"),c&&(u=parseInt(c.getAttribute("data:realIndex"),10)));(i.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:u,j:f,shared:!i.showOnIntersect&&o.config.tooltip.shared,e:s}),"mouseup"===s.type&&i.markerClick(s,u,f),o.globals.capturedSeriesIndex=u,o.globals.capturedDataPointIndex=f,h=v,e=l+o.globals.translateY-1.4*i.tooltipRect.ttHeight,i.w.config.tooltip.followCursor)&&(a=i.getElGrid().getBoundingClientRect(),e=i.e.clientY+o.globals.translateY-a.top);y<0&&(e=l);i.marker.enlargeCurrentPoint(f,r.paths,h,e)}return{x:h,y:e}}},{key:"handleBarTooltip",value:function(n){var e,v,w=n.e,y=n.opt,t=this.w,i=this.ttCtx,h=i.getElTooltip(),o=0,u=0,r=0,f=this.getBarTooltipXY({e:w,opt:y}),c,l,a,s,p;e=f.i;c=f.barHeight;l=f.j;t.globals.capturedSeriesIndex=e;t.globals.capturedDataPointIndex=l;t.globals.isBarHorizontal&&i.tooltipUtil.hasBars()||!t.config.tooltip.shared?(u=f.x,r=f.y,v=Array.isArray(t.config.stroke.width)?t.config.stroke.width[e]:t.config.stroke.width,o=u):t.globals.comboCharts||t.config.tooltip.shared||(o/=2);isNaN(r)?r=t.globals.svgHeight-i.tooltipRect.ttHeight:r<0&&(r=0);a=parseInt(y.paths.parentNode.getAttribute("data:realIndex"),10);s=t.globals.isMultipleYAxis?t.config.yaxis[a]&&t.config.yaxis[a].reversed:t.config.yaxis[0].reversed;(u+i.tooltipRect.ttWidth>t.globals.gridWidth&&!s?u-=i.tooltipRect.ttWidth:u<0&&(u=0),i.w.config.tooltip.followCursor)&&(p=i.getElGrid().getBoundingClientRect(),r=i.e.clientY-p.top);null===i.tooltip&&(i.tooltip=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip"));t.config.tooltip.shared||(t.globals.comboBarCount>0?i.tooltipPosition.moveXCrosshairs(o+v/2):i.tooltipPosition.moveXCrosshairs(o));!i.fixedTooltip&&(!t.config.tooltip.shared||t.globals.isBarHorizontal&&i.tooltipUtil.hasBars())&&(s&&(u-=i.tooltipRect.ttWidth)<0&&(u=0),h.style.left=u+t.globals.translateX+"px",!s||t.globals.isBarHorizontal&&i.tooltipUtil.hasBars()||(r=r+c-2*(t.globals.series[e][l]<0?c:0)),i.tooltipRect.ttHeight+r>t.globals.gridHeight?(r=t.globals.gridHeight-i.tooltipRect.ttHeight+t.globals.translateY,h.style.top=r+"px"):h.style.top=r+t.globals.translateY-i.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(n){var r=n.e,w=n.opt,u=this.w,l=null,t=this.ttCtx,s=0,f=0,o=0,b=0,k=0,h=r.target.classList,nt,y,p;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var i=r.target,a=i.getBoundingClientRect(),d=w.elGrid.getBoundingClientRect(),g=a.height;k=a.height;var c=a.width,e=parseInt(i.getAttribute("cx"),10),v=parseInt(i.getAttribute("cy"),10);b=parseFloat(i.getAttribute("barWidth"));nt="touchmove"===r.type?r.touches[0].clientX:r.clientX;l=parseInt(i.getAttribute("j"),10);s=parseInt(i.parentNode.getAttribute("rel"),10)-1;y=i.getAttribute("data-range-y1");p=i.getAttribute("data-range-y2");u.globals.comboCharts&&(s=parseInt(i.parentNode.getAttribute("data:realIndex"),10));t.tooltipLabels.drawSeriesTexts({ttItems:w.ttItems,i:s,j:l,y1:y?parseInt(y,10):null,y2:p?parseInt(p,10):null,shared:!t.showOnIntersect&&u.config.tooltip.shared,e:r});u.config.tooltip.followCursor?u.globals.isBarHorizontal?(f=nt-d.left+15,o=v-t.dataPointsDividedHeight+g/2-t.tooltipRect.ttHeight/2):(f=u.globals.isXNumeric?e-c/2:e-t.dataPointsDividedWidth+c/2,o=r.clientY-d.top-t.tooltipRect.ttHeight/2-15):u.globals.isBarHorizontal?((f=e)<t.xyRatios.baseLineInvertedY&&(f=e-t.tooltipRect.ttWidth),o=v-t.dataPointsDividedHeight+g/2-t.tooltipRect.ttHeight/2):(f=u.globals.isXNumeric?e-c/2:e-t.dataPointsDividedWidth+c/2,o=v)}return{x:f,y:o,barHeight:k,barWidth:b,i:s,j:l}}}]),t}(),br=function(){function n(t){i(this,n);this.w=t.w;this.ttCtx=t}return r(n,[{key:"drawXaxisTooltip",value:function(){var t=this.w,n=this.ttCtx,i="bottom"===t.config.xaxis.position,r,u;n.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;r=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top";u=t.globals.dom.elWrap;n.blxaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(n.xaxisTooltip=document.createElement("div"),n.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+t.config.tooltip.theme),u.appendChild(n.xaxisTooltip),n.xaxisTooltipText=document.createElement("div"),n.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),n.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,n.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,n.xaxisTooltip.appendChild(n.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var n=this.w,t=this.ttCtx,r=function(i){var u=n.config.yaxis[i].opposite||n.config.yaxis[i].crosshairs.opposite,r,f;t.yaxisOffX=u?n.globals.gridWidth+1:1;r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,u?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");n.globals.yAxisSameScaleIndices.map(function(t){t.map(function(t,u){u===i&&(r+=n.
40config.yaxis[u].show?" ":" apexcharts-yaxistooltip-hidden")})});f=n.globals.dom.elWrap;null===n.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+n.config.tooltip.theme),f.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))},i=0;i<n.config.yaxis.length;i++)r(i)}},{key:"setXCrosshairWidth",value:function(){var n=this.w,t=this.ttCtx,u=t.getElXCrosshairs(),i,f,e,o,r,s;(t.xcrosshairsWidth=parseInt(n.config.xaxis.crosshairs.width,10),n.globals.comboCharts)?(i=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area"),null!==i&&"barWidth"===n.config.xaxis.crosshairs.width?(f=parseFloat(i.getAttribute("barWidth")),t.xcrosshairsWidth=f):"tickWidth"===n.config.xaxis.crosshairs.width&&(e=n.globals.labels.length,t.xcrosshairsWidth=n.globals.gridWidth/e)):"tickWidth"===n.config.xaxis.crosshairs.width?(o=n.globals.labels.length,t.xcrosshairsWidth=n.globals.gridWidth/o):"barWidth"===n.config.xaxis.crosshairs.width&&(r=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area"),null!==r?(s=parseFloat(r.getAttribute("barWidth")),t.xcrosshairsWidth=s):t.xcrosshairsWidth=1);n.globals.isBarHorizontal&&(t.xcrosshairsWidth=0);null!==u&&t.xcrosshairsWidth>0&&u.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var n=this.w,t=this.ttCtx;t.ycrosshairs=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs");t.ycrosshairsHidden=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(n,t,i){var r=this.ttCtx,u=this.w,e=u.globals.yLabelFormatters[n];if(r.yaxisTooltips[n]){var f=r.getElGrid().getBoundingClientRect(),o=(t-f.top)*i.yRatio[n],s=u.globals.maxYArr[n]-u.globals.minYArr[n],h=u.globals.minYArr[n]+(s-o);r.tooltipPosition.moveYCrosshairs(t-f.top);r.yaxisTooltipText[n].innerHTML=e(h);r.tooltipPosition.moveYAxisTooltip(n)}}}]),n}(),kr=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w;var r=this.w;this.tConfig=r.config.tooltip;this.tooltipUtil=new si(this);this.tooltipLabels=new yr(this);this.tooltipPosition=new hi(this);this.marker=new pr(this);this.intersect=new wr(this);this.axesTooltip=new br(this);this.showOnIntersect=this.tConfig.intersect;this.showTooltipTitle=this.tConfig.x.show;this.fixedTooltip=this.tConfig.fixed.enabled;this.xaxisTooltip=null;this.yaxisTTEls=null;this.isBarShared=!r.globals.isBarHorizontal&&this.tConfig.shared}return r(n,[{key:"getElTooltip",value:function(n){return n||(n=this),n.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(n){var t=this.w,i,u,r;this.xyRatios=n;this.blxaxisTooltip=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts;this.yaxisTooltips=t.config.yaxis.map(function(n){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)});this.allTooltipSeriesGroups=[];t.globals.axisCharts||(this.showTooltipTitle=!1);i=document.createElement("div");(i.classList.add("apexcharts-tooltip"),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts)&&(this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair(),u=new ut(this.ctx),this.xAxisTicksPositions=u.getXAxisTicksPositions());(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length)&&(this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle)),r=t.globals.series.length,(t.globals.xyCh
40arts||t.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents())}},{key:"createTTElements",value:function(n){for(var t=this,i=this.w,u=[],f=this.getElTooltip(),e=function(r){var e=document.createElement("div"),s,o;e.classList.add("apexcharts-tooltip-series-group");e.style.order=i.config.tooltip.inverseOrder?n-r:r+1;t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(r)<0&&e.classList.add("apexcharts-tooltip-series-group-hidden");s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker");s.style.backgroundColor=i.globals.colors[r];e.appendChild(s);o=document.createElement("div");o.classList.add("apexcharts-tooltip-text");o.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily;o.style.fontSize=t.tConfig.style.fontSize;["y","goals","z"].forEach(function(n){var t=document.createElement("div"),i,r;t.classList.add("apexcharts-tooltip-".concat(n,"-group"));i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(n,"-label"));t.appendChild(i);r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(n,"-value"));t.appendChild(r);o.appendChild(t)});e.appendChild(o);f.appendChild(e);u.push(e)}
40,r=0;r<n;r++)e(r);return u}},{key:"addSVGEvents",value:function(){var t=this.w,n=t.config.chart.type,v=this.getElTooltip(),f=!("bar"!==n&&"candlestick"!==n&&"boxPlot"!==n&&"rangeBar"!==n),s="area"===n||"line"===n||"scatter"===n||"bubble"===n||"radar"===n,h=t.globals.dom.Paper.node,e=this.getElGrid(),u,a,o;e&&(this.seriesBound=e.getBoundingClientRect());var i,c=[],l=[],r={hoverArea:h,elGrid:e,tooltipEl:v,tooltipY:c,tooltipX:l,ttItems:this.ttItems};if(t.globals.axisCharts&&(s?i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):f?i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==n&&"treemap"!==n||(i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),i&&i.length))for(u=0;u<i.length;u++)c.push(i[u].getAttribute("cy")),l.push(i[u].getAttribute("cx"));t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||f&&this.tooltipUtil.hasBars()&&this.tConfig.shared?this.addPathsEventListeners([h],r):f&&!t.globals.comboCharts||s&&this.showOnIntersect?this.addDatapointEventsListeners(r):t.globals.axisCharts&&"heatmap"!==n&&"treemap"!==n||(a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series"),this.addPathsEventListeners(a,r));this.showOnIntersect&&(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker"),o.length>0&&this.addPathsEventListeners(o,r),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(r))}},{key:"drawFixedTooltipRect",value:function(){var r=this.w,i=this.getElTooltip(),u=i.getBoundingClientRect(),f=u.width+10,e=u.height+10,n=this.tConfig.fixed.offsetX,t=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+r.globals.svgWidth-f+10),o.indexOf("bottom")>-1&&(t=t+r.globals.svgHeight-e-10),i.style.left=n+"px",i.style.top=t+"px",{x:n,y:t,ttWidth:f,ttHeight:e}}},{key:"addDatapointEventsListeners",value:function(n){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,n)}},{key:"addPathsEventListeners",value:function(n,t){for(var r=this,u=function(i){var u={paths:n[i],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(t){return n[i].addEventListener(t,r.seriesHover.bind(r,u),{capture:!1,passive:!0})})},i=0;i<n.length;i++)u(i)}},{key:"seriesHover",value:function(n,t){var r=this,u=[],i=this.w;i.config.chart.group&&(u=this.ctx.getGroupedCharts());i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(u.length?u.forEach(function(i){var u=r.getElTooltip(i),f={paths:n.paths,tooltipEl:u,tooltipY:n.tooltipY,tooltipX:n.tooltipX,elGrid:n.elGrid,hoverArea:n.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===r.w.globals.minX&&i.w.globals.maxX===r.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:f,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:n,e:t}))}},{key:"seriesHoverByContext",value:function(n){var r=n.chartCtx,t=n.ttCtx,u=n.opt,i=n.e,f=r.w,e=this.getElTooltip();(t.tooltipRect={x:0,y:0,ttWidth:e.getBoundingClientRect().width,ttHeight:e.getBoundingClientRect().height},t.e=i,!t.tooltipUtil.hasBars()||f.globals.comboCharts||t.isBarShared)||this.tConfig.onDatasetHover.highlightDataSeries&&new h(r).toggleSeriesOnHover(i,i.target.parentNode);t.fixedTooltip&&t.drawFixedTooltipRect();f.globals.axisCharts?t.axisChartsTooltips({e:i,opt:u,tooltipRect:t.tooltipRect}):t.nonAxisChartsTooltips({e:i,opt:u,tooltipRect:t.tooltipRect})}},{key:"axisChartsTooltips",value:function(n){var f,e,t=n.e,r=n.opt,i=this.w,s=r.elGrid.getBoundingClientRect(),c="touchmove"===t.type?t.touches[0].clientX:t.clientX,u="touchmove"===t.type?t.touches[0].clientY:t.clientY,l,y,h,o;if(this.clientY=u,this.clientX=c,i.globals.capturedSeriesIndex=-1,i.globals.capturedDataPointIndex=-1,u<s.top||u>s.top+s.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared&&(l=parseInt(r.paths.getAttribute("index"),10),this.tConfig.enabledOnSeries.indexOf(l)<0))return void this.handleMouseOut(r);var a=this.getElTooltip(),v=this.getElXCrosshairs(),p=i.globals.xyCh
40arts||"bar"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===t.type||"touchmove"===t.type||"mouseup"===t.type){if(null!==v&&v.classList.add("apexcharts-active"),y=this.yaxisTooltips.filter(function(n){return!0===n}),(null!==this.ycrosshairs&&y.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect)?this.handleStickyTooltip(t,c,u,r):"heatmap"===i.config.chart.type||"treemap"===i.config.chart.type?(h=this.intersect.handleHeatTreeTooltip({e:t,opt:r,x:f,y:e,type:i.config.chart.type}),f=h.x,e=h.y,a.style.left=f+"px",a.style.top=e+"px"):(this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:t,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:t,opt:r,x:f,y:e})),this.yaxisTooltips.length)for(o=0;o<i.config.yaxis.length;o++)this.axesTooltip.drawYaxisTooltipText(o,u,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==t.type&&"touchend"!==t.type||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(n){var r=n.e,f=n.opt,e=n.tooltipRect,t=this.w,o=f.paths.getAttribute("rel"),u=this.getElTooltip(),s=t.globals.dom.elWrap.getBoundingClientRect(),h,c,i,l;"mousemove"===r.type||"touchmove"===r.type?(u.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:f.ttItems,i:parseInt(o,10)-1,shared:!1}),h=t.globals.clientX-s.left-e.ttWidth/2,c=t.globals.clientY-s.top-e.ttHeight-10,(u.style.left=h+"px",u.style.top=c+"px",t.config.legend.tooltipHoverFormatter)&&(i=o-1,l=t.config.legend.tooltipHoverFormatter(this.legendLabels[i].getAttribute("data:default-text"),{seriesIndex:i,dataPointIndex:i,w:t}),this.legendLabels[i].innerHTML=l)):"mouseout"!==r.type&&"touchend"!==r.type||(u.classList.remove("apexcharts-active"),t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEac
40h(function(n){var t=n.getAttribute("data:default-text");n.innerHTML=decodeURIComponent(t)}))}},{key:"handleStickyTooltip",value:function(n,t,i,r){var e=this.w,u=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:i}),f=u.j,o=u.capturedSeries;u.hoverX<0||u.hoverX>e.globals.gridWidth?this.handleMouseOut(r):null!==o?this.handleStickyCapturedSeries(n,o,r,f):(this.tooltipUtil.isXoverlap(f)||e.globals.isBarHorizontal)&&this.create(n,this,0,f,r.ttItems)}},{key:"handleStickyCapturedSeries",value:function(n,t,i,r){var u=this.w;null===u.globals.series[t][r]?this.handleMouseOut(i):void 0!==u.globals.series[t][r]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(n,this,t,r,i.ttItems):this.create(n,this,t,r,i.ttItems,!1):this.tooltipUtil.isXoverlap(r)&&this.create(n,this,0,r,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var r=this.w,u=new t(this.ctx),i=r.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)u.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(n){var i=this.w,r=this.getElXCrosshairs(),t;if(n.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==i.config.chart.type&&this.marker.resetPointsSize(),null!==r&&r.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length)for(null===this.yaxisTTEls&&(this.yaxisTTEls=i.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")),t=0;t<this.yaxisTTEls.length;t++)this.yaxisTTEls[t].classList.remove("apexcharts-active");
40i.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(n){var t=n.getAttribute("data:default-text");n.innerHTML=decodeURIComponent(t)})}},{key:"markerClick",value:function(n,t,i){var r=this.w;"function"==typeof r.config.chart.events.markerClick&&r.config.chart.events.markerClick(n,this.ctx,{seriesIndex:t,dataPointIndex:i,w:r});this.ctx.events.fireEvent("markerClick",[n,this.ctx,{seriesIndex:t,dataPointIndex:i,w:r}])}},{key:"create",value:function(n,i,r,u,f){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,e=this.w,o=i,y,b,k,h,c,g,w,v;if("mouseup"===n.type&&this.markerClick(n,r,u),null===s&&(s=this.tConfig.shared),y=this.tooltipUtil.hasMarkers(),b=this.tooltipUtil.getElBars(),e.config.legend.tooltipHoverFormatter)for(k=e.config.legend.tooltipHoverFormatter,h=Array.from(this.legendLabels),h.forEach(function(n){var t=n.getAttribute("data:default-text");n.innerHTML=decodeURIComponent(t)}),c=0;c<h.length;c++){var l=h[c],a=parseInt(l.getAttribute("i"),10),p=decodeURIComponent(l.getAttribute("data:default-text")),d=k(p,{seriesIndex:s?a:r,dataPointIndex:u,w:e});if(s)l.innerHTML=e.globals.collapsedSeriesIndices.indexOf(a)<0?d:p;else if(l.innerHTML=a===r?d:p,r===a)break}if(s){if(o.tooltipLabels.drawSeriesTexts({ttItems:f,i:r,j:u,shared:!this.showOnIntersect&&this.tConfig.shared}),y&&(e.globals.markers.largestSize>0?o.marker.enlargePoints(u):o.tooltipPosition.moveDynamicPointsOnHover(u)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(b),this.barSeriesHeight>0))for(g=new t(this.ctx),w=e.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(u,"']")),this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(u),v=0;v<w.length;v++)g.pathMouseEnter(w[v])}else o.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:f,i:r,j:u}),this.tooltipUtil.hasBars()&&o.tooltipPosition.moveStickyTooltipOverBars(u),y&&o.tooltipPosition.moveMarkers(r,u)}}]),n}(),ci=function(e){function o(){return i(this,o),s.apply(this,arguments)}g(o,e);var s=nt(o);return r(o,[{key:"draw",value:function(i,r){var e=this,o=this.w,l,c;for(this.graphics=new t(this.ctx),this.bar=new b(this.ctx,this.xyRatios),l=new f(this.ctx,o),i=l.getLogSeries(i),this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),"100%"===o.config.chart.stackType&&(i=o.globals.seriesPercent.slice()),this.series=i,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[],c=0;c<i.length;c++)i[c].length>0&&(this.totalItems+=i[c].length);for(var v=this.graphics.group({"class":"apexcharts-bar-series apexcharts-plot-series"}),s=0,h=0,p=function(t,f){var d=void 0,g=void 0,w=void 0,nt=void 0,tt=[],it=[],c=o.globals.comboCharts?r[t]:t,y,l,ft;e.yRatio.length>1&&(e.yaxisIndex=c);e.isReversed=o.config.yaxis[e.yaxisIndex]&&o.config.yaxis[e.yaxisIndex].reversed;y=e.graphics.group({"class":"apexcharts-series",seriesName:n.escapeString(o.globals.seriesNames[c]),rel:t+1,"data:realIndex":c});e.ctx.series.addCollapsedClassToSeries(y,c);var et=e.graphics.group({"class":"apexcharts-datalabels","data:realIndex":c}),b=0,k=0,a=e.initialPositions(s,h,d,g,w,nt);for(h=a.y,b=a.barHeight,g=a.yDivision,nt=a.zeroW,s=a.x,k=a.barWidth,d=a.xDivision,w=a.zeroH,e.yArrj=[],e.yArrjF=[],e.yArrjVal=[],e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],1===e.prevY.length&&e.prevY[0].every(function(n){return isNaN(n)})&&(e.prevY[0]=e.prevY[0].map(function(){return w}),e.prevYF[0]=e.prevYF[0].map(function(){return 0})),l=0;l<o.globals.dataPoints;l++){var rt=e.barHelpers.getStrokeWidth(t,l,c),ut={indexes:{i:t,j:l,realIndex:c,bc:f},strokeWidth:rt,x:s,y:h,elSeries:y},p=null;e.isHorizontal?(p=e.drawStackedBarPaths(u(u({},ut),{},{zeroW:nt,barHeight:b,yDivision:g})),k=e.series[t][l]/e.invertedYRatio):(p=e.drawStackedColumnPaths(u(u({},ut),{},{xDivision:d,barWidth:k,zeroH:w})),b=e.series[t][l]/e.yRatio[e.yaxisIndex]);h=p.y;s=p.x;tt.push(s);it.push(h);ft=e.barHelpers.getPathFillColor(i,t,l,c);y=e.renderSeries({realIndex:c,pathFill:ft,j:l,i:t,pathFrom:p.pathFrom,pathTo:p.pathTo,strokeWidth:rt,elSeries:y,x:s,y:h,series:i,barHeight:b,barWidth:k,elDataLabelsWrap:et,type:"bar",visibleSeries:0})}o.globals.seriesXvalues[c]=tt;o.globals.seriesYvalues[c]=it;e.prevY.push(e.yArrj);e.prevYF.push(e.yArrjF);e.prevYVal.push(e.yArrjVal);e.prevX.push(e.xArrj);e.prevXF.push(e.xArrjF);e.prevXVal.push(e.xArrjVal);v.add(y)},a=0,y=0;a<i.length;a++,y++)p(a,y);return v}},{key:"initialPositions",value:function(n,t,i,r,u,f){var s,o,e=this.w;return this.isHorizontal?(s=(s=r=e.globals.gridHeight/e.globals.dataPoints)*parseInt(e.config.plotOptions.bar.barHeight,10)/100,f=this.baseLineInvertedY+e.globals.padHorizontal+(this.isReversed?e.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),t=(r-s)/2):(o=i=e.globals.gridWidth/e.globals.dataPoints,o=e.globals.isXNumeric&&e.globals.dataPoints>1?(i=e.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100,u=this.baseLineY[this.yaxisIndex]+(this.isReversed?e.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),n=e.globals.padHorizontal+(i-o)/2),{x:n,y:t,yDivision:r,xDivision:i,barHeight:s,barWidth:o,zeroH:u,zeroW:f}}},{key:"drawStackedBarPaths",value:function(n){for(var f,c,r,e=n.indexes,l=n.barHeight,y=n.strokeWidth,a=n.zeroW,o=n.x,s=n.y,p=n.yDivision,w=n.elSeries,b=this.w,v=s,t=e.i,i=e.j,u=0,h=0;h<this.prevXF.length;h++)u+=this.prevXF[h][i];return t>0?(f=a,this.prevXVal[t-1][i]<0?f=this.series[t][i]>=0?this.prevX[t-1][i]+u-2*(this.isReversed?u:0):this.prevX[t-1][i]:this.prevXVal[t-1][i]>=0&&(f=this.series[t][i]>=0?this.prevX[t-1][i]:this.prevX[t-1][i]-u+2*(this.isReversed?u:0)),r=f):r=a,o=null===this.series[t][i]?r:r+this.series[t][i]/this.invertedYRatio-2*(this.isReversed?this.series[t][i]/this.invertedYRatio:0),c=this.barHelpers.getBarpaths({barYPosition:v,barHeight:l,x1:r,x2:o,strokeWidth:y,series:this.series,realIndex:e.realIndex,i:t,j:i,w:b}
40),this.barHelpers.barBackground({j:i,i:t,y1:v,y2:l,elSeries:w}),s+=p,{pathTo:c.pathTo,pathFrom:c.pathFrom,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(n){var c=n.indexes,u=n.x,y=n.y,k=n.xDivision,p=n.barWidth,d=n.zeroH,nt=(n.strokeWidth,n.elSeries),r=this.w,t=c.i,i=c.j,tt=c.bc,l,e,o,w,s,h,b;r.globals.isXNumeric&&(l=r.globals.seriesX[t][i],l||(l=0),u=(l-r.globals.minX)/this.xRatio-p/2);for(var a,g=u,f=0,v=0;v<this.prevYF.length;v++)f+=isNaN(this.prevYF[v][i])?0:this.prevYF[v][i];if(t>0&&!r.globals.isXNumeric||t>0&&r.globals.isXNumeric&&r.globals.seriesX[t-1][i]===r.globals.seriesX[t][i]){if(w=Math.min(this.yRatio.length+1,t+1),void 0!==this.prevY[t-1])for(s=1;s<w;s++)if(!isNaN(this.prevY[t-s][i])){o=this.prevY[t-s][i];break}for(h=1;h<w;h++){if(this.prevYVal[t-h][i]<0){e=this.series[t][i]>=0?o-f+2*(this.isReversed?f:0):o;break}if(this.prevYVal[t-h][i]>=0){e=this.series[t][i]>=0?o:o+f-2*(this.isReversed?f:0);break}}void 0===e&&(e=r.globals.gridHeight);a=this.prevYF[0].every(function(n){return 0===n})&&this.prevYF.slice(1,t).every(function(n){return n.every(function(n){return isNaN(n)})})?r.globals.gridHeight-d:e}else a=r.globals.gridHeight-d;return y=a-this.series[t][i]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[t][i]/this.yRatio[this.yaxisIndex]:0),b=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:p,y1:a,y2:y,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:c.realIndex,i:t,j:i,w:r}),this.barHelpers.barBackground({bc:tt,j:i,i:t,x1:g,x2:p,elSeries:nt}),u+=k,{pathTo:b.pathTo,pathFrom:b.pathFrom,x:r.globals.isXNumeric?u-k:u,y:y}}}]),o}(b),pt=function(u){function e(){return i(this,e),o.apply(this,arguments)}g(e,u);var o=nt(e);return r(e,[{key:"draw",value:function(i,r){var u=this,e=this.w,o=new t(this.ctx),a=new l(this.ctx),s;this.candlestickOptions=this.w.config.plotOptions.candlestick;this.boxOptions=this.w.config.plotOptions.boxPlot;s=new f(this.ctx,e);i=s.getLogSeries(i);this.series=i;this.yRatio=s.getLogYRatios(this.yRatio);this.barHelpers.initVariables(i);for(var c=o.group({"class":"apexcharts-".concat(e.config.chart.type,"-series apexcharts-plot-series")}),v=function(t){var g,v,s;u.isBoxPlot="boxPlot"===e.config.chart.type||"boxPlot"===e.config.series[t].type;var b,k,h=void 0,l=void 0,d=[],y=[],f=e.globals.comboCharts?r[t]:t,p=o.group({"class":"apexcharts-series",seriesName:n.escapeString(e.globals.seriesNames[f]),rel:t+1,"data:realIndex":f});i[t].length>0&&(u.visibleI=u.visibleI+1);u.yRatio.length>1&&(u.yaxisIndex=f);s=u.barHelpers.initialPositions();l=s.y;g=s.barHeight;h=s.x;v=s.barWidth;b=s.xDivision;k=s.zeroH;y.push(h+v/2);for(var nt=o.group({"class":"apexcharts-datalabels","data:realIndex":f}),tt=function(n){var o=u.barHelpers.getStrokeWidth(t,n,f),r=u.drawBoxPaths({indexes:{i:t,j:n,realIndex:f},x:h,y:l,xDivision:b,barWidth:v,zeroH:k,strokeWidth:o,elSeries:p});l=r.y;h=r.x;n>0&&y.push(h+v/2);d.push(l);r.pathTo.forEach(function(s,c){var y=!u.isBoxPlot&&u.candlestickOptions.wick.useFillColor?r.color[c]:e.globals.stroke.colors[t],w=a.fillPath({seriesNumber:f,dataPointIndex:n,color:r.color[c],value:i[t][n]});u.renderSeries({realIndex:f,pathFill:w,lineFill:y,j:n,i:t,pathFrom:r.pathFrom,pathTo:s,strokeWidth:o,elSeries:p,x:h,y:l,series:i,barHeight:g,barWidth:v,elDataLabelsWrap:nt,visibleSeries:u.visibleI,type:e.config.chart.type})})},w=0;w<e.globals.dataPoints;w++)tt(w);e.globals.seriesXvalues[f]=y;e.globals.seriesYvalues[f]=d;c.add(p)},h=0;h<i.length;h++)v(h);return c}},{key:"drawBoxPaths",value:function(n){var b=n.indexes,p=n.x,rt=(n.y,n.xDivision),u=n.barWidth,o=n.zeroH,g=n.strokeWidth,h=this.w,r=new t(this.ctx),nt=b.i,v=b.j,tt=!0,ut=h.config.plotOptions.candlestick.colors.upward,ft=h.config.plotOptions.candlestick.colors.downward,it="",i,d,w;this.isBoxPlot&&(it=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var y=this.yRatio[this.yaxisIndex],k=b.realIndex,s=this.getOHLCValue(k,v),c=o,l=o;s.o>s.c&&(tt=!1);var f=Math.min(s.o,s.c),e=Math.max(s.o,s.c),a=s.m;return h.globals.isXNumeric&&(p=(h.globals.seriesX[k][v]-h.globals.minX)/this.xRatio-u/2),i=p+u*this.visibleI,void 0===this.series[nt][v]||null===this.series[nt][v]?(f=o,e=o):(f=o-f/y,e=o-e/y,c=o-s.h/y,l=o-s.l/y,a=o-s.m/y),d=r.move(i,o),w=r.move(i+u/2,f),h.globals.previousPaths.length>0&&(w=this.getPreviousPath(k,v,!0)),d=this.isBoxPlot?[r.move(i,f)+r.line(i+u/2,f)+r.line(i+u/2,c)+r.line(i+u/4,c)+r.line(i+u-u/4,c)+r.line(i+u/2,c)+r.line(i+u/2,f)+r.line(i+u,f)+r.line(i+u,a)+r.line(i,a)+r.line(i,f+g/2),r.move(i,a)+r.line(i+u,a)+r.line(i+u,e)+r.line(i+u/2,e)+r.line(i+u/2,l)+r.line(i+u-u/4,l)+r.line(i+u/4,l)+r.line(i+u/2,l)+r.line(i+u/2,e)+r.line(i,e)+r.line(i,a)+"z"]:[r.move(i,e)+r.line(i+u/2,e)+r.line(i+u/2,c)+r.line(i+u/2,e)+r.line(i+u,e)+r.line(i+u,f)+r.line(i+u/2,f)+r.line(i+u/2,l)+r.line(i+u/2,f)+r.line(i,f)+r.line(i,e-g/2)],w+=r.move(i,f),h.globals.isXNumeric||(p+=rt),{pathTo:d,pathFrom:w,x:p,y:e,barXPosition:i,color:this.isBoxPlot?it:tt?[ut]:[ft]}}},{key:"getOHLCValue",value:function(n,t){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[n][t]:i.globals.seriesCandleO[n][t],h:this.isBoxPlot?i.globals.seriesCandleO[n][t]:i.globals.seriesCandleH[n][t],m:i.globals.seriesCandleM[n][t],l:this.isBoxPlot?i.globals.seriesCandleC[n][t]:i.globals.seriesCandleL[n][t],c:this.isBoxPlot?i.globals.seriesCandleL[n][t]:i.globals.seriesCandleC[n][t]}}}]),e}(b),li=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w}return r(u,[{key:"checkColorRange",value:function(){var n=this.w,t=!1,i=n.config.plotOptions[n.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(n){n.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(t,i,r,u){var e=this.w,o=1,s=e.config.plotOptions[t].shadeIntensity,f=this.determineColor(t,i,r),h,c;return e.globals.hasNegs||u?o=e.config.plotOptions[t].reverseNegativeShade?f.percent<0?f.percent/100*1.25*s:(1-f.percent/100)*1.25*s:f.percent<=0?1-(1+f.percent/100)*s:(1-f.percent/100)*s:(o=1-f.percent/100,"treemap"===t&&(o=(1-f.percent/100)*1.25*s)),h=f.color,c=new n,e.config.plotOptions[t].enableShades&&(h="dark"===this.w.config.theme.mode?n.hexToRgba(c.shadeColor(-1*o,f.color),e.config.fill.opacity):n.hexToRgba(c.shadeColor(o,f.color),e.config.fill.opacity)),{color:h,colorProps:f}}},{key:"determineColor",value:function(n,t,i){var r=this.w,o=r.globals.series[t][i],u=r.config.plotOptions[n],l=u.colorScale.inverse?i:t,s,h;r.config.plotOptions[n].distributed&&(l=i);var a=r.globals.colors[l],v=null,f=Math.min.apply(Math,c(r.globals.series[t])),e=Math.max.apply(Math,c(r.globals.series[t]));return u.distributed||"heatmap"!==n||(f=r.globals.minY,e=r.globals.maxY),void 0!==u.colorScale.min&&(f=u.colorScale.min<r.globals.minY?u.colorScale.min:r.globals.minY,e=u.colorScale.max>r.globals.maxY?u.colorScale.max:r.globals.maxY),s=Math.abs(e)+Math.abs(f),h=100*o/(0===s?s-1e-6:s),u.colorScale.ranges.length>0&&u.colorScale.ranges.map(function(n){if(o>=n.from&&o<=n.to){a=n.color;v=n.foreColor?n.foreColor:null;f=n.from;e=n.to;var t=Math.abs(e)+Math.abs(f);h=100*o/(0===t?t-1e-6:t)}}),{color:a,foreColor:v,percent:h}}},{key:"calculateDataLabels",value:function(n){var u=n.text,f=n.x,e=n.y,o=n.i,s=n.j,h=n.colorProps,c=n.fontSize,i=this.w.config.dataLabels,l=new t(this.ctx),a=new w(this.ctx),r=null;if(i.enabled){r=l.group({"class":"apexcharts-data-labels"});var v=i.offsetX,y=i.offsetY,p=f+v,b=e+parseFloat(i.style.fontSize)/3+y;a.plotDataLabelsText({x:p,y:b,text:u,i:o,j:s,color:h.foreColor,parent:r,fontSize:c,dataLabelsConfig:i})}return r}},{key:"addListeners",value:function(n){var i=new t(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,n));n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,n));n.node.addEventListener("mousedown",i.pathMouseDown.bind(this,n))}}]),u}(),dr=function(){function u(n,t){i(this,u);this.ctx=n;this.w=n.w;this.xRatio=t.xRatio;this.yRatio=t.yRatio;this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation;this.helpers=new li(n);this.rectRadius=this.w.config.plotOptions.heatmap.radius;this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return r(u,[{key:"draw",value:function(i){var r=this.w,g=new t(this.ctx),nt=g.group({"class":"apexcharts-heatmap"}),s,u,c,ut,et,e,tt,it,a,ot,rt,d,st;nt.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")"));var v=r.globals.gridWidth/r.globals.dataPoints,y=r.globals.gridHeight/r.globals.series.length,p=0,k=!1;for(this.negRange=this.helpers.checkColorRange(),s=i.slice(),r.config.yaxis[0].reversed&&(k=!0,s.reverse()),u=k?0:s.length-1;k?u<s.length:u>=0;k?u++:u--){c=g.group({"class":"apexcharts-series apexcharts-heatmap-series",seriesName:n.escapeString(r.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});(this.ctx.series.addCollapsedClassToSeries(c,u),r.config.chart.dropShadow.enabled)&&(ut=r.config.chart.dropShadow,new o(this.ctx).dropShadow(c,ut,u));for(var w=0,ht=r.config.plotOptions.heatmap.shadeIntensity,f=0;f<s[u].length;f++){var ft=this.helpers.getShadeColor(r.config.chart.type,u,f,this.negRange),h=ft.color,b=ft.colorProps;"image"===r.config.fill.type&&(h=new l(this.ctx).fillPath({seriesNumber:u,dataPointIndex:f,opacity:r.globals.hasNegs?b.percent<0?1-(1+b.percent/100):ht+b.percent/100:b.percent/100,patternID:n.randomId(),width:r.config.fill.image.width?r.config.fill.image.width:v,height:r.config.fill.image.height?r.config.fill.image.height:y}));et=this.rectRadius;e=g.drawRect(w,p,v,y,et);(e.attr({cx:w,cy:p}),e.node.classList.add("apexcharts-heatmap-rect"),c.add(e),e.attr({fill:h,i:u,index:u,j:f,val:s[u][f],"stroke-width":this.strokeWidth,stroke:r.config.plotOptions.heatmap.useFillColorAsStroke?h:r.globals.stroke.colors[0],color:h}),this.helpers.addListeners(e),r.config.chart.animations.enabled&&!r.globals.dataChanged)&&(tt=1,r.globals.resized||(tt=r.config.chart.animations.speed),this.animateHeatMap(e,w,p,v,y,tt));r.globals.dataChanged&&(it=1,this.dynamicAnim.enabled&&r.globals.shouldAnimate&&(it=this.dynamicAnim.speed,a=r.globals.previousPaths[u]&&r.globals.previousPaths[u][f]&&r.globals.previousPaths[u][f].color,a||(a="rgba(255, 255, 255, 0)"),this.animateHeatColor(e,n.isColorHex(a)?a:n.rgb2hex(a),n.isColorHex(h)?h:n.rgb2hex(h),it)));ot=r.config.dataLabels.formatter(r.globals.series[u][f],{value:r.globals.series[u][f],seriesIndex:u,dataPointIndex:f,w:r});rt=this.helpers.calculateDataLabels({text:ot,x:w+v/2,y:p+y/2,i:u,j:f,colorProps:b,series:s});null!==rt&&c.add(rt);w+=v}p+=y;nt.add(c)}return d=r.globals.yAxisScale[0].result.slice(),r.config.yaxis[0].reversed?d.unshift(""):d.push(""),r.globals.yAxisScale[0].result=d,st=r.globals.gridHeight/r.globals.series.length,r.config.yaxis[0].labels.offsetY=-st/2,nt}},{key:"animateHeatMap",value:function(n,t,i,r,u,f){var e=new p(this.ctx);
40e.animateRect(n,{x:t+r/2,y:i+u/2,width:0,height:0},{x:t,y:i,width:r,height:u},f,function(){e.animationCompleted(n)})}},{key:"animateHeatColor",value:function(n,t,i,r){n.attr({fill:t}).animate(r).attr({fill:i})}}]),u}(),ai=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"drawYAxisTexts",value:function(n,i,r,u){var e=this.w,f=e.config.yaxis[0],o=e.globals.yLabelFormatters[0];return new t(this.ctx).drawText({x:n+f.labels.offsetX,y:i+f.labels.offsetY,text:o(u,r),textAnchor:"middle",fontSize:f.labels.style.fontSize,fontFamily:f.labels.style.fontFamily,foreColor:Array.isArray(f.labels.style.colors)?f.labels.style.colors[r]:f.labels.style.colors})}}]),n}(),vi=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;var t=this.w;this.chartType=this.w.config.chart.type;this.initialAnim=this.w.config.chart.animations.enabled;this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled;this.animBeginArr=[0];this.animDur=0;this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels;this.lineColorArr=void 0!==t.globals.stroke.colors?t.globals.stroke.colors:t.globals.colors;this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight);this.centerY=this.defaultSize/2;this.centerX=t.globals.gridWidth/2;this.fullAngle="radialBar"===t.config.chart.type?360:Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle);this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle;t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur);this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100;this.maxY=0;this.sliceLabels=[];this.sliceSizes=[];this.prevSectorAngleArr=[]}return r(u,[{key:"draw",value:function(i){var w=this,r=this.w,l=new t(this.ctx),f,o,s,e,u,b,k,a,h,c,y,p,nt;if(this.ret=l.group({"class":"apexcharts-pie"}),r.globals.noData)return this.ret;for(f=0,o=0;o<i.length;o++)f+=n.negToZero(i[o]);
40for(s=[],e=l.group(),0===f&&(f=1e-5),i.forEach(function(n){w.maxY=Math.max(w.maxY,n)}),r.config.yaxis[0].max&&(this.maxY=r.config.yaxis[0].max),"back"===r.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),u=0;u<i.length;u++)b=this.fullAngle*n.negToZero(i[u])/f,s.push(b),"polarArea"===this.chartType?(s[u]=this.fullAngle/i.length,this.sliceSizes.push(r.globals.radialSize*i[u]/this.maxY)):this.sliceSizes.push(r.globals.radialSize);if(r.globals.dataChanged){for(a=0,h=0;h<r.globals.previousPaths.length;h++)a+=n.negToZero(r.globals.previousPaths[h]);for(c=0;c<r.globals.previousPaths.length;c++)k=this.fullAngle*n.negToZero(r.globals.previousPaths[c])/a,this.prevSectorAngleArr.push(k)}this.donutSize<0&&(this.donutSize=0);var v=r.config.plotOptions.pie.customScale,tt=r.globals.gridWidth/2,it=r.globals.gridHeight/2,d=tt-r.globals.gridWidth/2*v,g=it-r.globals.gridHeight/2*v;return"donut"===this.chartType&&(y=l.drawCircle(this.donutSize),y.attr({cx:this.centerX,cy:this.centerY,fill:r.config.plotOptions.pie.donut.background?r.config.plotOptions.pie.donut.background:"transparent"}
40),e.add(y)),p=this.drawArcs(s,i),(this.sliceLabels.forEach(function(n){p.add(n)}),e.attr({transform:"translate(".concat(d,", ").concat(g,") scale(").concat(v,")")}),e.add(p),this.ret.add(e),this.donutDataLabels.show)&&(nt=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:d,translateY:g}),this.ret.add(nt)),"front"===r.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(i,r){var u=this.w,k=new o(this.ctx),a=new t(this.ctx),ft=new l(this.ctx),nt=a.group({"class":"apexcharts-slices"}),e=this.initialAngle,w=this.initialAngle,h=this.initialAngle,b=this.initialAngle,f,d,tt,v,y,g,ut;for(this.strokeWidth=u.config.stroke.show?u.config.stroke.width:0,f=0;f<i.length;f++){d=a.group({"class":"apexcharts-series apexcharts-pie-series",seriesName:n.escapeString(u.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});nt.add(d);w=b;h=(e=h)+i[f];b=w+this.prevSectorAngleArr[f];var c=h<e?this.fullAngle+h-e:h-e,et=ft.fillPath({seriesNumber:f,size:this.sliceSizes[f],value:r[f]}),ot=this.getChangedPath(w,b),s=a.drawPath({d:ot,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[f]:this.lineColorArr,strokeWidth:0,fill:et,fillOpacity:u.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(f)});if((s.attr({index:0,j:f}),k.setSelectionFilter(s,0,f),u.config.chart.dropShadow.enabled)&&(tt=u.config.chart.dropShadow,k.dropShadow(s,tt,f)),this.addListeners(s,this.donutDataLabels),t.setAttrs(s.node,{"data:angle":c,"data:startAngle":e,"data:strokeWidth":this.strokeWidth,"data:value":r[f]}),v={x:0,y:0},"pie"===this.chartType||"polarArea"===this.chartType?v=n.polarToCartesian(this.centerX,this.centerY,u.globals.radialSize/1.25+u.config.plotOptions.pie.dataLabels.offset,(e+c/2)%this.fullAngle):"donut"===this.chartType&&(v=n.polarToCartesian(this.centerX,this.centerY,(u.globals.radialSize+this.donutSize)/2+u.config.plotOptions.pie.dataLabels.offset,(e+c/2)%this.fullAngle)),d.add(s),y=0,!this.initialAnim||u.globals.resized||u.globals.dataChanged?this.animBeginArr.push(0):(0==(y=c/this.fullAngle*u.config.chart.animations.speed)&&(y=1),this.animDur=y+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&u.globals.dataChanged?this.animatePaths(s,{size:this.sliceSizes[f],endAngle:h,startAngle:e,prevStartAngle:w,prevEndAngle:b,animateStartingPos:!0,i:f,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:u.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(s,{size:this.sliceSizes[f],endAngle:h,startAngle:e,i:f,totalItems:i.length-1,animBeginArr:this.animBeginArr,dur:y}),u.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&s.click(this.pieClicked.bind(this,f)),void 0!==u.globals.selectedDataPoints[0]&&u.globals.selectedDataPoints[0].indexOf(f)>-1&&this.pieClicked(f),u.config.dataLabels.enabled){var st=v.x,ht=v.y,it=100*c/this.fullAngle+"%";if(0!==c&&u.config.plotOptions.pie.dataLabels.minAngleToShowLabel<i[f]){g=u.config.dataLabels.formatter;void 0!==g&&(it=g(u.globals.seriesPercent[f][0],{seriesIndex:f,w:u}));var ct=u.globals.dataLabels.style.colors[f],rt=a.group({"class":"apexcharts-datalabels"}),p=a.drawText({x:st,y:ht,text:it,textAnchor:"middle",fontSize:u.config.dataLabels.style.fontSize,fontFamily:u.config.dataLabels.style.fontFamily,fontWeight:u.config.dataLabels.style.fontWeight,foreColor:ct});(rt.add(p),u.config.dataLabels.dropShadow.enabled)&&(ut=u.config.dataLabels.dropShadow,k.dropShadow(p,ut));p.node.classList.add("apexcharts-pie-label");u.config.chart.animations.animate&&!1===u.globals.resized&&(p.node.classList.add("apexcharts-pie-label-delay"),p.node.style.animationDelay=u.config.chart.animations.speed/940+"s");this.sliceLabels.push(rt)}}}return nt}},{key:"addListeners",value:function(n,i){var r=new t(this.ctx);n.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this,n));n.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this,n));n.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,n.node,i));n.node.addEventListener("mousedown",r.pathMouseDown.bind(this,n));this.donutDataLabels.total.showAlways||(n.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,n.node,i)),n.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,n.node,i)))}},{key:"animatePaths",value:function(n,t){var e=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,u=i,f=t.startAngle,r=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(f=t.prevEndAngle,u=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle);t.i===e.config.series.length-1&&(i+r>this.fullAngle?t.endAngle=t.endAngle-(i+r):i+r<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+r))));i===this.fullAngle&&(i=this.fullAngle-.01);this.animateArc(n,f,r,i,u,t)}},{key:"animateArc",value:function(n,t,i,r,u,f){var o,e=this,s=this.w,v=new p(this.ctx),h=f.size;(isNaN(t)||isNaN(u))&&(t=i,u=r,f.dur=0);var c=r,l=i,a=t<i?this.fullAngle+t-i:t-i;s.globals.dataChanged&&f.shouldSetPrevPaths&&f.prevEndAngle&&(o=e.getPiePath({me:e,startAngle:f.prevStartAngle,angle:f.prevEndAngle<f.prevStartAngle?this.fullAngle+f.prevEndAngle-f.prevStartAngle:f.prevEndAngle-f.prevStartAngle,size:h}),n.attr({d:o}));0!==f.dur?n.animate(f.dur,s.globals.easing,f.animBeginArr[f.i]).afterAll(function(){"pie"!==e.chartType&&"donut"!==e.chartType&&"polarArea"!==e.chartType||this.animate(s.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":e.strokeWidth});f.i===s.config.series.length-1&&v.animationCompleted(n)}).during(function(s){c=a+(r-a)*s;f.animateStartingPos&&(c=u+(r-u)*s,l=t-u+(i-(t-u))*s);o=e.getPiePath({me:e,startAngle:l,angle:c,size:h});n.node.setAttribute("data:pathOrig",o);n.attr({d:o})}):(o=e.getPiePath({me:e,startAngle:l,angle:r,size:h}),f.isTrack||(s.globals.animationEnded=!0),n.node.setAttribute("data:pathOrig",o),n.attr({d:o,"stroke-width":e.strokeWidth}))}},{key:"pieClicked",value:function(n){var f,r=this.w,i=this,h=i.sliceSizes[n]+(r.config.plotOptions.pie.expandOnClick?4:0),t=r.globals.dom.Paper.select(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(n)).members[0],e,o,u,s;"true"!==t.attr("data:pieClicked")?(e=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),Array.prototype.forEach.call(e,function(n){n.setAttribute("data:pieClicked","fal
40se");var t=n.getAttribute("data:pathOrig");n.setAttribute("d",t)}),t.attr("data:pieClicked","true"),o=parseInt(t.attr("data:startAngle"),10),u=parseInt(t.attr("data:angle"),10),f=i.getPiePath({me:i,startAngle:o,angle:u,size:h}),360!==u&&t.plot(f)):(t.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(t.node,this.donutDataLabels),s=t.attr("data:pathOrig"),t.attr({d:s}))}},{key:"getChangedPath",value:function(n,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:n,angle:t-n,size:this.size})),i}},{key:"getPiePath",value:function(t){var i=t.me,s=t.startAngle,h=t.angle,r=t.size,c=s,l=Math.PI*(c-90)/180,u=h+s;Math.ceil(u)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(u=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01);Math.ceil(u)>this.fullAngle&&(u-=this.fullAngle);var a=Math.PI*(u-90)/180,f=i.centerX+r*Math.cos(l),e=i.centerY+r*Math.sin(l),w=i.centerX+r*Math.cos(a),b=i.centerY+r*Math.sin(a),v=n.polarToCartesian(i.centerX,i.centerY,i.donutSize,u),y=n.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),p=h>180?1:0,o=["M",f,e,"A",r,r,0,p,1,w,b];return"donut"===i.chartType?[].concat(o,["L",v.x,v.y,"A",i.donutSize,i.donutSize,0,p,0,y.x,y.y,"L",f,e,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(o,["L",i.centerX,i.centerY,"L",f,e]).join(" "):[].concat(o).join(" ")}},{key:"drawPolarElements",value:function(n){var i=this.w,a=new k(this.ctx),f=new t(this.ctx),v=new ai(this.ctx),s=f.group(),h=f.group(),e=a.niceScale(0,Math.ceil(this.maxY),i.config.yaxis[0].tickAmount,0,!0),y=e.result.reverse(),c=e.result.length,o,l;this.maxY=e.niceMax;for(var r=i.globals.radialSize,p=r/(c-1),u=0;u<c-1;u++)o=f.drawCircle(r),(o.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":i.config.plotOptions.polarArea.r
40ings.strokeWidth,stroke:i.config.plotOptions.polarArea.rings.strokeColor}),i.config.yaxis[0].show)&&(l=v.drawYAxisTexts(this.centerX,this.centerY-r+parseInt(i.config.yaxis[0].labels.style.fontSize,10)/2,u,y[u]),h.add(l)),s.add(o),r-=p;this.drawSpokes(n);n.add(s);n.add(h)}},{key:"renderInnerDataLabels",value:function(n,i){var r=this.w,e=new t(this.ctx),f=e.group({"class":"apexcharts-datalabels-group",transform:"translate(".concat(i.translateX?i.translateX:0,", ").concat(i.translateY?i.translateY:0,") scale(").concat(r.config.plotOptions.pie.customScale,")")}),k=n.total.show,o,v,s,h,l,b,a;f.node.style.opacity=i.opacity;s=i.centerX;h=i.centerY;o=void 0===n.name.color?r.globals.colors[0]:n.name.color;var y=n.name.fontSize,p=n.name.fontFamily,w=n.value.fontWeight;v=void 0===n.value.color?r.config.chart.foreColor:n.value.color;var d=n.value.formatter,c="",u="";return(k?(o=n.total.color,y=n.total.fontSize,p=n.total.fontFamily,w=n.total.fontWeight,u=n.total.label,c=n.total.formatter(r)):1===r.globals.series.length&&(c=d(r.globals.series[0],r),u=r.globals.seriesNames[0]),u&&(u=n.name.formatter(u,n.total.show,r)),n.name.show)&&(l=e.drawText({x:s,y:h+parseFloat(n.name.offsetY),text:u,textAnchor:"middle",foreColor:o,fontSize:y,fontWeight:w,fontFamily:p}),l.node.classList.add("apexcharts-datalabel-label"),f.add(l)),n.value.show&&(b=n.name.show?parseFloat(n.value.offsetY)+16:n.value.offsetY,a=e.drawText({x:s,y:h+b,text:c,textAnchor:"middle",foreColor:v,fontWeight:n.value.fontWeight,fontSize:n.value.fontSize,fontFamily:n.value.fontFamily}),a.node.classList.add("apexcharts-datalabel-value"),f.add(a)),f}},{key:"printInnerLabels",value:function(n,t,i,r){var e,u=this.w,f,o,s;r?e=void 0===n.name.color?u.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:n.name.color:u.globals.series.length>1&&n.total.show&&(e=n.total.color);f=u.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label");o=u.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=n.value.formatter(i,u);r||"function"!=typeof n.total.formatter||(i=n.total.formatter(u));s=t===n.total.label;t=n.name.formatter(t,s,u);null!==f&&(f.textContent=t);null!==o&&(o.textContent=i);null!==f&&(f.style.fill=e)}},{key:"printDataLabelsInner",value:function(n,t){var i=this.w,u=n.getAttribute("data:value"),f=i.globals.seriesNames[parseInt(n.parentNode.getAttribute("rel"),10)-1],r;i.globals.series.length>1&&this.printInnerLabels(t,f,u,n);r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(i){var e=this,r=this.w,s=new t(this.ctx),u=r.config.plotOptions.polarArea.spokes;if(0!==u.strokeWidth){for(var o=[],h=360/r.globals.series.length,f=0;f<r.globals.series.length;f++)o.push(n.polarToCartesian(this.centerX,this.centerY,r.globals.radialSize,r.config.plotOptions.pie.startAngle+h*f));o.forEach(function(n,t){var r=s.drawLine(n.x,n.y,e.centerX,e.centerY,Array.isArray(u.connectorColors)?u.connectorColors[t]:u.connectorColors);i.add(r)})}}},{key:"revertDataLabelsInner",value:function(n,t){var s=this,i=this.w,r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),u=!1,h=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),f=function(n){var i=n.makeSliceOut,r=n.printLabel;Array.prototype.forEach.call(h,function(n){"true"===n.getAttribute("data:pieClicked")&&(i&&(u=!0),r&&s.printDataLabelsInner(n,t))})},e,o;(f({makeSliceOut:!0,printLabel:!1}),t.total.show&&i.globals.series.length>1)?u&&!t.total.showAlways?f({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(i)):(f({makeSliceOut:!1,printLabel:!0}),u)||(i.globals.selectedDataPoints.length&&i.globals.series.length>1?i.globals.selectedDataPoints[0].length>0?(e=i.globals.selectedDataPoints[0],o=i.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(e)),this.printDataLabelsInner(o,t)):r&&i.globals.selectedDataPoints.length&&0===i.globals.selectedDataPoints[0].length&&(r.style.opacity=0):r&&i.globals.series.length>1&&(r.style.opacity=0))}}]),u}(),gr=function(){function e(n){i(this,e);this.ctx=n;this.w=n.w;this.chartType=this.w.config.chart.type;this.initialAnim=this.w.config.chart.animations.enabled;this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled;this.animDur=0;var r=this.w;this.graphics=new t(this.ctx);this.lineColorArr=void 0!==r.globals.stroke.colors?r.globals.stroke.colors:r.globals.colors;this.defaultSize=r.globals.svgHeight<r.globals.svgWidth?r.globals.gridHeight+1.5*r.globals.goldenPadding:r.globals.gridWidth;this.isLog=r.config.yaxis[0].logarithmic;this.coreUtils=new f(this.ctx);this.maxValue=this.isLog?this.coreUtils.getLogVal(r.globals.maxY,0):r.globals.maxY;this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):r.globals.minY;this.polygons=r.config.plotOptions.radar.polygons;this.strokeWidth=r.config.stroke.show?r.config.stroke.width:0;this.size=this.defaultSize/2.1-this.strokeWidth-r.config.chart.dropShadow.blur;r.config.xaxis.labels.show&&(this.size=this.size-r.globals.xAxisLabelsWidth/1.75);void 0!==r.config.plotOptions.radar.size&&(this.size=r.config.plotOptions.radar.size);this.dataRadiusOfPercent=[];this.dataRadius=[];this.angleArr=[];this.yaxisLabelsTextsPos=[]}return r(e,[{key:"draw",value:function(t){var i=this,r=this.w,v=new l(this.ctx),c=[],y=new w(this.ctx),a;t.length&&(this.dataPointsLen=t[r.globals.maxValsInArrayIndex].length);this.disAngle=2*Math.PI/this.dataPointsLen;var p=r.globals.gridWidth/2,b=r.globals.gridHeight/2,k=p+r.config.plotOptions.radar.offsetX,d=b+r.config.plotOptions.radar.offsetY,e=this.graphics.group({"class":"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(k||0,", ").concat(d||0,")")}),f=[],s=null,h=null;return(this.yaxisLabels=this.graphics.group({"class":"apexcharts-yaxis"}),t.forEach(function(t,e){var rt=t.length===r.globals.dataPoints,w=i.graphics.group().attr({"class":"apexcharts-series","data:longestSeries":rt,seriesName:n.escapeString(r.globals.seriesNames[e]),rel:e+1,"data:realIndex":e}),a,b,p,l,d,g,k,nt,it;for(i.dataRadiusOfPercent[e]=[],i.dataRadius[e]=[],i.angleArr[e]=[],t.forEach(function(n,t){var r=Math.abs(i.maxValue-i.minValue);n+=Math.abs(i.minValue);i.isLog&&(n=i.coreUtils.getLogVal(n,0));i.dataRadiusOfPercent[e][t]=n/r;i.dataRadius[e][t]=i.dataRadiusOfPercent[e][t]*i.size;i.angleArr[e][t]=t*i.disAngle}),f=i.getDataPointsPos(i.dataRadius[e],i.angleArr[e]),a=i.createPaths(f,{x:0,y:0}),s=i.graphics.group({"class":"apexcharts-series-markers-wrap apexcharts-element-hidden"}),h=i.graphics.group({"class":"apexcharts-datalabels","data:realIndex":e}),r.globals.delayedElements.push({el:s.node,index:e}),b={i:e,realIndex:e,animationDelay:e,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:r.globals.stroke.colors[e],strokeLineCap:r.config.stroke.lineCap},p=null,r.globals.previousPaths.length>0&&(p=i.getPreviousPath(e)),l=0;l<a.linePathsTo.length;l++)d=i.graphics.renderPaths(u(u({},b),{},{pathFrom:null===p?a.linePathsFrom[l]:p,pathTo:a.linePathsTo[l],strokeWidth:Array.isArray(i.strokeWidth)?i.strokeWidth[e]:i.strokeWidth,fill:"none",drawShadow:!1})),w.add(d),g=v.fillPath({seriesNumber:e}),k=i.graphics.renderPaths(u(u({},b),{},{pathFrom:null===p?a.areaPathsFrom[l]:p,pathTo:a.areaPathsTo[l],strokeWidth:0,fill:g,drawShadow:!1})),r.config.chart.dropShadow.enabled&&(nt=new o(i.ctx),it=r.config.chart.dropShadow,nt.dropShadow(k,Object.assign({},it,{noUserSpaceOnUse:!0}),e)),w.add(k);t.forEach(function(n,t){var a=new tt(i.ctx).getMarkerConfig("apexcharts-marker",e,t),o=i.graphics.drawMarker(f[t].x,f[t].y,a),c,l,v;o.attr("rel",t);o.attr("j",t);o.attr("index",e);o.node.setAttribute("default-marker-size",a.pSize);c=i.graphics.group({"class":"apexcharts-series-markers"});c&&c.add(o);s.add(c);w.add(s);l=r.config.dataLabels;l.enabled&&(v=l.formatter(r.globals.series[e][t],{seriesIndex:e,dataPointIndex:t,w:r}),y.plotDataLabelsText({x:f[t].x,y:f[t].y,text:v,textAnchor:"middle",i:e,j:e,parent:h,offsetCorrection:!1,dataLabelsConfig:u({},l)}));w.add(h)});c.push(w)}),this.drawPolygons({parent:e}),r.config.xaxis.labels.show)&&(a=this.drawXAxisTexts(),e.add(a)),c.forEac
40h(function(n){e.add(n)}),e.add(this.yaxisLabels),e}},{key:"drawPolygons",value:function(t){for(var e,o,i=this,u=this.w,s=t.parent,l=new ai(this.ctx),h=u.globals.yAxisScale[0].result.reverse(),c=h.length,f=[],a=this.size/(c-1),r=0;r<c;r++)f[r]=a*r;f.reverse();e=[];o=[];f.forEach(function(t,r){var f=n.getPolygonPos(t,i.dataPointsLen),u="";f.forEach(function(n,t){if(0===r){var f=i.graphics.drawLine(n.x,n.y,0,0,Array.isArray(i.polygons.connectorColors)?i.polygons.connectorColors[t]:i.polygons.connectorColors);o.push(f)}0===t&&i.yaxisLabelsTextsPos.push({x:n.x,y:n.y});u+=n.x+","+n.y+" "});e.push(u)});e.forEach(function(n,t){var r=i.polygons.strokeColors,f=i.polygons.strokeWidth,e=i.graphics.drawPolygon(n,Array.isArray(r)?r[t]:r,Array.isArray(f)?f[t]:f,u.globals.radarPolygons.fill.colors[t]);s.add(e)});o.forEach(function(n){s.add(n)});u.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(n,t){var r=l.drawYAxisTexts(n.x,n.y,t,h[t]);i.yaxisLabels.add(r)})}},{key:"drawXAxisTexts",value:function(){var r=this,t=this.w,i=t.config.xaxis.labels,f=this.graphics.group({"class":"apexcharts-xaxis"}),e=n.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,o){var c=t.config.xaxis.labels.formatter,l=new w(r.ctx),s,h;e[o]&&(s=r.getTextPos(e[o],r.size),h=c(n,{seriesIndex:-1,dataPointIndex:o,w:t}),l.plotDataLabelsText({x:s.newX,y:s.newY,text:h,textAnchor:s.textAnchor,i:o,j:o,parent:f,color:Array.isArray(i.style.colors)&&i.style.colors[o]?i.style.colors[o]:"#a8a8a8",dataLabelsConfig:u({textAnchor:s.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1}))}),f}},{key:"createPaths",value:function(n,t){var u=this,f=[],e=[],o=[],s=[],i,r;return n.length&&(e=[this.graphics.move(t.x,t.y)],s=[this.graphics.move(t.x,t.y)],i=this.graphics.move(n[0].x,n[0].y),r
40=this.graphics.move(n[0].x,n[0].y),n.forEach(function(t,f){i+=u.graphics.line(t.x,t.y);r+=u.graphics.line(t.x,t.y);f===n.length-1&&(i+="Z",r+="Z")}),f.push(i),o.push(r)),{linePathsFrom:e,linePathsTo:f,areaPathsFrom:s,areaPathsTo:o}}},{key:"getTextPos",value:function(n,t){var i="middle",r=n.x,u=n.y;return Math.abs(n.x)>=10?n.x>0?(i="start",r+=10):n.x<0&&(i="end",r-=10):i="middle",Math.abs(n.y)>=t-10&&(n.y<0?u-=10:n.y>0&&(u+=10)),{textAnchor:i,newX:r,newY:u}}},{key:"getPreviousPath",value:function(n){for(var r,i=this.w,u=null,t=0;t<i.globals.previousPaths.length;t++)r=i.globals.previousPaths[t],r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(n,10)&&void 0!==i.globals.previousPaths[t].paths[0]&&(u=i.globals.previousPaths[t].paths[0].d);return u}},{key:"getDataPointsPos",value:function(n,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen,u,i,r;for(n=n||[],t=t||[],u=[],i=0;i<f;i++)r={},r.x=n[i]*Math.sin(t[i]),r.y=-n[i]*Math.cos(t[i]),u.push(r);return u}}]),e}(),nu=function(u){function f(n){var t,r;return i(this,f),(t=e.call(this,n)).ctx=n,t.w=n.w,t.animBeginArr=[0],t.animDur=0,r=t.w,t.startAngle=r.config.plotOptions.radialBar.startAngle,t.endAngle=r.config.plotOptions.radialBar.endAngle,t.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),t.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,t.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,t.radialDataLabels=r.config.plotOptions.radialBar.dataLabels,t.trackStartAngle||(t.trackStartAngle=t.startAngle),t.trackEndAngle||(t.trackEndAngle=t.endAngle),360===t.endAngle&&(t.endAngle=359.99),t.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),t}g(f,u);var e=nt(f);return r(f,[{key:"draw",value:function(n){var i=this.w,c=new t(this.ctx),f=c.group({"class":"apexcharts-radialbar"}),o,v,r,s,h,y;if(i.globals.noData)return f;var e=c.group(),l=this.defaultSize/2,a=i.globals.gridWidth/2,u=this.defaultSize/2.05;return i.config.chart.sparkline.enabled||(u=u-i.config.stroke.width-i.config.chart.dropShadow.blur),o=i.globals.fill.colors,i.config.plotOptions.radialBar.track.show&&(v=this.drawTracks({size:u,centerX:a,centerY:l,colorArr:o,series:n}),e.add(v)),r=this.drawArcs({size:u,centerX:a,centerY:l,colorArr:o,series:n}),s=360,i.config.plotOptions.radialBar.startAngle<0&&(s=this.totalAngle),h=(360-s)/360,(i.globals.radialSize=u-u*h,this.radialDataLabels.value.show)&&(y=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY),i.globals.radialSize+=y*h),e.add(r.g),"front"===i.config.plotOptions.radialBar.hollow.position&&(r.g.add(r.elHollow),r.dataLabels&&r.g.add(r.dataLabels)),f.add(e),f}},{key:"drawTracks",value:function(n){var c=this.w,e=new t(this.ctx),a=e.group({"class":"apexcharts-tracks"}),p=new o(this.ctx),w=new l(this.ctx),s=this.getStrokeWidth(n),i,f,u,y;for(n.size=n.size-s/2,i=0;i<n.series.length;i++){f=e.group({"class":"apexcharts-radialbar-track apexcharts-track"});a.add(f);f.attr({rel:i+1});n.size=n.size-s-this.margin;var r=c.config.plotOptions.radialBar.track,b=w.fillPath({seriesNumber:0,size:n.size,fillColors:Array.isArray(r.background)?r.background[i]:r.background,solid:!0}),v=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(v)>=360&&(h=360-Math.abs(this.startAngle)-.1);u=e.drawPath({d:"",stroke:b,strokeWidth:s*parseInt(r.strokeWidth,10)/100,fill:"none",strokeOpacity:r.opacity,classes:"apexcharts-radialbar-area"});r.dropShadow.enabled&&(y=r.dropShadow,p.dropShadow(u,y));f.add(u);u.attr("id","apexcharts-radialbarTrack-"+i);this.animatePaths(u,{centerX:n.centerX,centerY:n.centerY,endAngle:h,startAngle:v,size:n.size,i:i,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:c.globals.easing})}return a}},{key:"drawArcs",value:function(i){var r=this.w,d=new t(this.ctx),ft=new l(this.ctx),g=new o(this.ctx),h=d.group(),c=this.getStrokeWidth(i),w,rt,it,a,v,u,y,ut,s;i.size=i.size-c/2;var nt=r.config.plotOptions.radialBar.hollow.background,tt=i.size-c*i.series.length-this.margin*i.series.length-c*parseInt(r.config.plotOptions.radialBar.track.strokeWidth,10)/200,et=tt-r.config.plotOptions.radialBar.hollow.margin;for(void 0!==r.config.plotOptions.radialBar.hollow.image&&(nt=this.drawHollowImage(i,h,tt,nt)),w=this.drawHollow({size:et,centerX:i.centerX,centerY:i.centerY,fill:nt||"transparent"}),r.config.plotOptions.radialBar.hollow.dropShadow.enabled&&(rt=r.config.plotOptions.radialBar.hollow.dropShadow,g.dropShadow(w,rt)),it=1,!this.radialDataLabels.total.show&&r.globals.series.length>1&&(it=0),a=null,this.radialDataLabels.show&&(a=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:tt,centerX:i.centerX,centerY:i.centerY,opacity:it})),"back"===r.config.plotOptions.radialBar.hollow.position&&(h.add(w),a&&h.add(a)),v=!1,r.config.plotOptions.radialBar.inverseOrder&&(v=!0),u=v?i.series.length-1:0;v?u>=0:u<i.series.length;v?u--:u++){y=d.group({"class":"apexcharts-series apexcharts-radial-series",seriesName:n.escapeString(r.globals.seriesNames[u])});h.add(y);y.attr({rel:u+1,"data:realIndex":u});this.ctx.series.addCollapsedClassToSeries(y,u);i.size=i.size-c-this.margin;var ot=ft.fillPath({seriesNumber:u,size:i.size,value:i.series[u]}),p=this.startAngle,b=void 0,st=n.negToZero(i.series[u]>100?100:i.series[u])/100,e=Math.round(this.totalAngle*st)+this.startAngle,k=void 0;r.globals.dataChanged&&(b=this.startAngle,k=Math.round(this.totalAngle*n.negToZero(r.globals.previousPaths[u])/100)+b);Math.abs(e)+Math.abs(p)>=360&&(e-=.01);Math.abs(k)+Math.abs(b)>=360&&(k-=.01);var ht=e-p,ct=Array.isArray(r.config.stroke.dashArray)?r.config.stroke.dashArray[u]:r.config.stroke.dashArray,f=d.drawPath({d:"",stroke:ot,strokeWidth:c,fill:"none",fillOpacity:r.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+u,strokeDashArray:ct});(t.setAttrs(f.node,{"data:angle":ht,"data:value":i.series[u]}),r.config.chart.dropShadow.enabled)&&(ut=r.config.chart.dropShadow,g.dropShadow(f,ut,u));g.setSelectionFilter(f,0,u);this.addListeners(f,this.radialDataLabels);y.add(f);f.attr({index:0,j:u});s=0;!this.initialAnim||r.globals.resized||r.globals.dataChanged||(s=(e-p)/360*r.config.chart.animations.speed,this.animDur=s/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur));r.globals.dataChanged&&(s=(e-p)/360*r.config.chart.animations.dynamicAnimation.speed,this.animDur=s/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur));this.animatePaths(f,{centerX:i.centerX,centerY:i.centerY,endAngle:e,startAngle:p,prevEndAngle:k,prevStartAngle:b,size:i.size,i:u,totalItems:2,animBeginArr:this.animBeginArr,dur:s,shouldSetPrevPaths:!0,easing:r.globals.easing})}return{g:h,elHollow:w,dataLabels:a}}},{key:"drawHollow",value:function(n){var i=new t(this.ctx).drawCircle(2*n.size);return i.attr({"class":"apexcharts-radialbar-hollow",cx:n.centerX,cy:n.centerY,r:n.size,fill:n.fill}),i}},{key:"drawHollowImage",value:function(t,i,r,u){var f=this.w,v=new l(this.ctx),h=n.randomId(),s=f.config.plotOptions.radialBar.hollow.image,e,o,c,a;return f.config.plotOptions.radialBar.hollow.imageClipped?(v.clippedImgArea({width:r,height:r,image:s,patternID:"pattern".concat(f.globals.cuid).concat(h)}),u="url(#pattern".concat(f.globals.cuid).concat(h,")")):(e=f.config.plotOptions.radialBar.hollow.imageWidth,o=f.config.plotOptions.radialBar.hollow.imageHeight,void 0===e&&void 0===o?(c=f.globals.dom.Paper.image(s).loaded(function(n){this.move(t.centerX-n.width/2+f.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-n.height/2+f.config.plotOptions.radialBar.hollow.imageOffsetY)}),i.add(c)):(a=f.globals.dom.Paper.image(s).loaded(function(){this.move(t.centerX-e/2+f.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-o/2+f.config.plotOptions.radialBar.hollow.imageOffsetY);this.size(e,o)}),i.add(a))),u}},{key:"getStrokeWidth",value:function(n){var t=this.w;return n.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(n.series.length+1)-this.margin}}]),f}(vi),tu=function(){function t(n){i(this,t);this.w=n.w;this.lineCtx=n}return r(t,[{key:"sameValueSeriesFix",value:function(n,t){var r=this.w,i;return"line"===r.config.chart.type&&("gradient"===r.config.fill.type||"gradient"===r.config.fill.type[n])&&new f(this.lineCtx.ctx,r).seriesHaveSameValues(n)&&(i=t[n].slice(),i[i.length-1]=i[i.length-1]+1e-6,t[n]=i),t}},{key:"calculatePoints",value:function(t){var f=t.series,l=t.realIndex,h=t.x,c=t.y,e=t.i,o=t.j,a=t.prevY,i=this.w,r=[],u=[],s;return 0===o?(s=this.lineCtx.categoryAxisCorrection+i.config.markers.offsetX,i.globals.isXNumeric&&(s=(i.globals.seriesX[l][0]-i.globals.minX)/this.lineCtx.xRatio+i.config.markers.offsetX),r.push(s),u.push(n.isNumber(f[e][0])?a+i.config.markers.offsetY:null),r.push(h+i.config.markers.offsetX),u.push(n.isNumber(f[e][o+1])?c+i.config.markers.offsetY:null)):(r.push(h+i.config.markers.offsetX),u.push(n.isNumber(f[e][o+1])?c+i.config.markers.offsetY:null)),{x:r,y:u}}},{key:"checkPreviousPaths",value:function(n){for(var r,u=n.pathFromLine,f=n.pathFromArea,e=n.realIndex,t=this.w,i=0;i<t.globals.previousPaths.length;i++)r=t.globals.previousPaths[i],("line"===r.type||"area"===r.type)&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&("line"===r.type?(this.lineCtx.appendPathFrom=!1,u=t.globals.previousPaths[i].paths[0].d):"area"===r.type&&(this.lineCtx.appendPathFrom=!1,f=t.globals.previousPaths[i].paths[0].d,t.config.stroke.show&&t.globals.previousPaths[i].paths[1]&&(u=t.globals.previousPaths[i].paths[1].d)));return{pathFromLine:u,pathFromArea:f}}},{key:"determineFirstPrevY",value:function(n){var t=n.i,i=n.series,u=n.prevY,f=n.lineYPosition,e=this.w,r;if(void 0!==i[t][0])u=(f=e.config.chart.stacked&&t>
400?this.lineCtx.prevSeriesY[t-1][0]:this.lineCtx.zeroY)-i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(e.config.chart.stacked&&t>0&&void 0===i[t][0])for(r=t-1;r>=0;r--)if(null!==i[r][0]&&void 0!==i[r][0]){u=f=this.lineCtx.prevSeriesY[r][0];break}return{prevY:u,lineYPosition:f}}}]),t}(),wt=function(){function e(n,t,r){i(this,e);this.ctx=n;this.w=n.w;this.xyRatios=t;this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r;this.scatter=new ii(this.ctx);this.noNegatives=this.w.globals.minX===Number.MAX_VALUE;this.lineHelpers=new tu(this);this.markers=new tt(this.ctx);this.prevSeriesY=[];this.categoryAxisCorrection=0;this.yaxisIndex=0}return r(e,[{key:"draw",value:function(n,i,r){var e=this.w,tt=new t(this.ctx),y=e.globals.comboCharts?i:e.config.chart.type,v=tt.group({"class":"apexcharts-".concat(y,"-series apexcharts-plot-series")}),p=new f(this.ctx,e),s,u,o,g,nt,l,a;for(this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,n=p.getLogSeries(n),this.yRatio=p.getLogYRatios(this.yRatio),s=[],u=0;u<n.length;u++){n=this.lineHelpers.sameValueSeriesFix(u,n);o=e.globals.comboCharts?r[u]:u;this._initSerieVariables(n,u,o);var w=[],b=[],c=e.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,o);e.globals.isXNumeric&&e.globals.seriesX.length>0&&(c=(e.globals.seriesX[o][0]-e.globals.minX)/this.xRatio);b.push(c);var k,d=c,it=d,h=this.zeroY;h=this.lineHelpers.determineFirstPrevY({i:u,series:n,prevY:h,lineYPosition:0}).prevY;w.push(h);k=h;g=this._calculatePathsFrom({series:n,i:u,realIndex:o,prevX:it,prevY:h});nt=this._iterateOverDataPoints({series:n,realIndex:o,i:u,x:c,y:1,pX:d,pY:k,pathsFrom:g,linePaths:[],areaPaths:[],seriesIndex:r,lineYPosition:0,xArrj:b,yArrj:w});this._handlePaths({type:y,realIndex:o,i:u,paths:nt});this.elSeries.add(this.elPointsMain);this.elSeries.add(this.elDataLabelsWrap);s.push(this.elSeries)}if(e.config.chart.stacked)for(l=s.length;l>0;l--)v.add(s[l-1]);else for(a=0;a<s.length;a++)v.add(s[a]);return v}},{key:"_initSerieVariables",value:function(i,r,u){var f=this.w,e=new t(this.ctx),o;this.xDivision=f.globals.gridWidth/(f.globals.dataPoints-("on"===f.config.xaxis.tickPlacement?1:0));this.strokeWidth=Array.isArray(f.config.stroke.width)?f.config.stroke.width[u]:f.config.stroke.width;this.yRatio.length>1&&(this.yaxisIndex=u);this.isReversed=f.config.yaxis[this.yaxisIndex]&&f.config.yaxis[this.yaxisIndex].reversed;this.zeroY=f.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?f.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0);this.areaBottomY=this.zeroY;(this.zeroY>f.globals.gridHeight||"end"===f.config.plotOptions.area.fillTo)&&(this.areaBottomY=f.globals.gridHeight);this.categoryAxisCorrection=this.xDivision/2;this.elSeries=e.group({"class":"apexcharts-series",seriesName:n.escapeString(f.globals.seriesNames[u])});this.elPointsMain=e.group({"class":"apexcharts-series-markers-wrap","data:realIndex":u});this.elDataLabelsWrap=e.group({"class":"apexcharts-datalabels","data:realIndex":u});o=i[r].length===f.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:r+1,"data:realIndex":u});this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(n){var c,l,e,o,s=n.series,h=n.i,v=n.realIndex,r=n.prevX,f=n.prevY,y=this.w,i=new t(this.ctx),u,a;if(null===s[h][0]){for(u=0;u<s[h].length;u++)if(null!==s[h][u]){r=this.xDivision*u;f=this.zeroY-s[h][u]/this.yRatio[this.yaxisIndex];c=i.move(r,f);l=i.move(r,this.areaBottomY);break}}else c=i.move(r,f),l=i.move(r,this.areaBottomY)+i.line(r,f);return(e=i.move(-1,this.zeroY)+i.line(-1,this.zeroY),o=i.move(-1,this.zeroY)+i.line(-1,this.zeroY),y.globals.previousPaths.length>0)&&(a=this.lineHelpers.checkPreviousPaths({pathFromLine:e,pathFromArea:o,realIndex:v}),e=a.pathFromLine,o=a.pathFromArea),{prevX:r,prevY:f,linePath:c,areaPath:l,pathFromLine:e,pathFromArea:o}}},{key:"_handlePaths",value:function(n){var s=n.type,f=n.realIndex,h=n.i,i=n.paths,r=this.w,v=new t(this.ctx),y=new l(this.ctx),c,p,e,w,a,o,b;if(this.prevSeriesY.push(i.yArrj),r.globals.seriesXvalues[f]=i.xArrj,r.globals.seriesYvalues[f]=i.yArrj,this.pointsChart||r.globals.delayedElements.push({el:this.elPointsMain.node,index:f}),c={i:h,realIndex:f,animationDelay:h,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(s)},"area"===s)for(p=y.fillPath({seriesNumber:f}),e=0;e<i.areaPaths.length;e++)w=v.renderPaths(u(u({},c),{},{pathFrom:i.pathFromArea,pathTo:i.areaPaths[e],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p})),this.elSeries.add(w);if(r.config.stroke.show&&!this.pointsChart)for(a=null,a="line"===s?y.fillPath({seriesNumber:f,i:h}):r.globals.stroke.colors[f],o=0;o<i.linePaths.length;o++)b=v.renderPaths(u(u({},c),{},{pathFrom:i.pathFromLine,pathTo:i.linePaths[o],stroke:a,strokeWidth:this.strokeWidth,strokeLineCap:r.config.stroke.lineCap,fill:"none"})),this.elSeries.add(b)}},{key:"_iterateOverDataPoints",value:function(i){for(var ht,w,b,h,o=i.series,e=i.realIndex,f=i.i,s=i.x,c=i.y,k=i.pX,d=i.pY,l=i.pathsFrom,v=i.linePaths,y=i.areaPaths,ct=i.seriesIndex,p=i.lineYPosition,g=i.xArrj,nt=i.yArrj,r=this.w,tt=new t(this.ctx),a=this.yRatio,it=l.prevY,rt=l.linePath,ut=l.areaPath,ft=l.pathFromLine,et=l.pathFromArea,ot=n.isNumber(r.globals.minYArr[e])?r.globals.minYArr[e]:r.globals.minY,st=r.globals.dataPoints>1?r.globals.dataPoints-1:r.globals.dataPoints,u=0;u<st;u++)ht=void 0===o[f][u+1]||null===o[f][u+1],r.globals.isXNumeric?(w=r.globals.seriesX[e][u+1],void 0===r.globals.seriesX[e][u+1]&&
40(w=r.globals.seriesX[e][st-1]),s=(w-r.globals.minX)/this.xRatio):s+=this.xDivision,p=r.config.chart.stacked?f>0&&r.globals.collapsedSeries.length<r.config.series.length-1?this.prevSeriesY[function(n){for(var t=n,i=0;i<r.globals.series.length;i++)if(r.globals.collapsedSeriesIndices.indexOf(n)>-1){t--;break}return t>=0?t:0}(f-1)][u+1]:this.zeroY:this.zeroY,c=ht?p-ot/a[this.yaxisIndex]+2*(this.isReversed?ot/a[this.yaxisIndex]:0):p-o[f][u+1]/a[this.yaxisIndex]+2*(this.isReversed?o[f][u+1]/a[this.yaxisIndex]:0),g.push(s),nt.push(c),b=this.lineHelpers.calculatePoints({series:o,x:s,y:c,realIndex:e,i:f,j:u,prevY:it}),h=this._createPaths({series:o,i:f,realIndex:e,j:u,x:s,y:c,pX:k,pY:d,linePath:rt,areaPath:ut,linePaths:v,areaPaths:y,seriesIndex:ct}),y=h.areaPaths,v=h.linePaths,k=h.pX,d=h.pY,ut=h.areaPath,rt=h.linePath,this.appendPathFrom&&(ft+=tt.line(s,this.zeroY),et+=tt.line(s,this.zeroY)),this.handleNullDataPoints(o,b,f,u,e),this._handleMarkersAndLabels({pointsPos:b,series:o,x:s,y:c,prevY:it,i:f,j:u,realIndex:e});return{yArrj:nt,xArrj:g,pathFromArea:et,areaPaths:y,pathFromLine:ft,linePaths:v}}},{key:"_handleMarkersAndLabels",value:function(n){var t=n.pointsPos,e=(n.series,n.x,n.y,n.prevY,n.i),i=n.j,r=n.realIndex,o=this.w,s=new w(this.ctx),u,f;this.pointsChart?this.scatter.draw(this.elSeries,i,{realIndex:r,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain}):(o.globals.series[e].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden"),u=this.markers.plotChartMarkers(t,r,i+1),null!==u&&this.elPointsMain.add(u));f=s.drawDataLabel(t,r,i+1,null);null!==f&&this.elDataLabelsWrap.add(f)}},{key:"_createPaths",value:function(n){var v=n.series,l=n.i,g=n.realIndex,a=n.j,i=n.x,u=n.y,e=n.pX,s=n.pY,o=n.linePath,f=n.areaPath,p=n.linePaths,w=n.areaPaths,k=n.seriesIndex,h=this.w,r=new t(this.ctx),b=h.config.stroke.curve,y=this.areaBottomY,c,d;return(Array.isArray(h.config.stroke.curve)&&(b=Array.isArray(k)?h.config.stroke.curve[k[l]]:h.config.stroke.curve[l]),"smooth"===b)?(c=.35*(i-e),h.globals.hasNullValues?(null!==v[l][a]&&(null!==v[l][a+1]?(o=r.move(e,s)+r.curve(e+c,s,i-c,u,i+1,u),f=r.move(e+1,s)+r.curve(e+c,s,i-c,u,i+1,u)+r.line(i,y)+r.line(e,y)+"z"):(o=r.move(e,s),f=r.move(e,s)+"z")),p.push(o),w.push(f)):(o+=r.curve(e+c,s,i-c,u,i,u),f+=r.curve(e+c,s,i-c,u,i,u)),e=i,s=u,a===v[l].length-2&&(f=f+r.curve(e,s,i,u,i,y)+r.move(i,u)+"z",h.globals.hasNullValues||(p.push(o),w.push(f)))):(null===v[l][a+1]&&(o+=r.move(i,u),d=h.globals.isXNumeric?(h.globals.seriesX[g][a]-h.globals.minX)/this.xRatio:i-this.xDivision,f=f+r.line(d,y)+r.move(i,u)+"z"),null===v[l][a]&&(o+=r.move(i,u),f+=r.move(i,y)),"stepline"===b?(o=o+r.line(i,null,"H")+r.line(null,u,"V"),f=f+r.line(i,null,"H")+r.line(null,u,"V")):"straight"===b&&(o+=r.line(i,u),f+=r.line(i,u)),a===v[l].length-2&&(f=f+r.line(i,y)+r.move(i,u)+"z",p.push(o),w.push(f))),{linePaths:p,areaPaths:w,pX:e,pY:s,linePath:o,areaPath:f}}},{key:"handleNullDataPoints",value:function(n,t,i,r,u){var e=this.w,f;(null===n[i][r]&&e.config.markers.showNullDataPoints||1===n[i].length)&&(f=this.markers.plotChartMarkers(t,u,r+1,this.strokeWidth-e.config.markers.strokeWidth/2,!0),null!==f&&this.elPointsMain.add(f))}}]),e}(),bt,kt;window.TreemapSquared={};window.TreemapSquared.generate=function(){function t(i,r,u,f){this.xoffset=i;this.yoffset=r;this.height=f;this.width=u;this.shortestEdge=function(){return Math.min(this.height,this.width)};this.getCoordinates=function(t){var i,f=[],r=this.xoffset,u=this.yoffset,e=n(t)/this.height,o=n(t)/this.width;if(this.width>=this.height)for(i=0;i<t.length;i++)f.push([r,u,r+e,u+t[i]/e]),u+=t[i]/e;else for(i=0;i<t.length;i++)f.push([r,u,r+t[i]/o,u+o]),r+=t[i]/o;return f};this.cutArea=function(n){var i,r,f,u,e;return this.width>=this.height?(r=n/this.height,f=this.width-r,i=new t(this.xoffset+r,this.yoffset,f,this.height)):(u=n/this.width,e=this.height-u,i=new t(this.xoffset,this.yoffset+u,this.width,e)),i}}function r(r,u,f,e,o){return e=void 0===e?0:e,o=void 0===o?0:o,function(n){for(var i,r=[],t=0;t<n.length;t++)for(i=0;i<n[t].length;i++)r.push(n[t][i]);return r}(i(function(t,i){for(var u=[],f=i/n(t),r=0;r<t.length;r++)u[r]=t[r]*f;return u}(r,u*f),[],new t(e,o,u,f),[]))}function i(t,r,f,e){var o,s,h;if(0!==t.length)return o=f.shortestEdge(),function(n,t,i){var r,f,e;return 0===n.length?!0:((r=n.slice()).push(t),f=u(n,i),e=u(r,i),f>=e)}(r,s=t[0],o)?(r.push(s),i(t.slice(1),r,f,e)):(h=f.cutArea(n(r),e),e.push(f.getCoordinates(r)),i(t,[],h,e)),e;e.push(f.getCoordinates(r))}function u(t,i){var u=Math.min.apply(Math,t),f=Math.max.apply(Math,t),r=n(t);return Math.max(Math.pow(i,2)*f/Math.pow(r,2),Math.pow(r,2)/(Math.pow(i,2)*u))}function f(n){return n&&n.constructor===Array}function n(n){for(var i=0,t=0;t<n.length;t++)i+=n[t];return i}function e(t){var i,r=0;if(f(t[0]))for(i=0;i<t.length;i++)r+=e(t[i]);else r=n(t);return r}return function t(n,i,u,o,s){o=void 0===o?0:o;s=void 0===s?0:s;var c,h,a=[],l=[];
40if(f(n[0])){for(h=0;h<n.length;h++)a[h]=e(n[h]);for(c=r(a,i,u,o,s),h=0;h<n.length;h++)l.push(t(n[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else l=r(n,i,u,o,s);return l}}();var a,ft,iu=function(){function u(n){i(this,u);this.ctx=n;this.w=n.w;this.strokeWidth=this.w.config.stroke.width;this.helpers=new li(n);this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation;this.labels=[]}return r(u,[{key:"draw",value:function(i){var u=this,r=this.w,f=new t(this.ctx),h=new l(this.ctx),e=f.group({"class":"apexcharts-treemap"}),s;return r.globals.noData?e:(s=[],i.forEach(function(n){var t=n.map(function(n){return Math.abs(n)});s.push(t)}),this.negRange=this.helpers.checkColorRange(),r.config.series.forEach(function(n,t){n.data.forEach(function(n){Array.isArray(u.labels[t])||(u.labels[t]=[]);u.labels[t].push(n.x)})}),window.TreemapSquared.generate(s,r.globals.gridWidth,r.globals.gridHeight).forEach(function(t,s){var c=f.group({"class":"apexcharts-series apexcharts-treemap-series",seriesName:n.escapeString(r.globals.seriesNames[s]),rel:s+1,"data:realIndex":s}),l,a;r.config.chart.dropShadow.enabled&&(l=r.config.chart.dropShadow,new o(u.ctx).dropShadow(e,l,s));a=f.group({"class":"apexcharts-data-labels"});t.forEach(function(n,t){var e=n[0],o=n[1],a=n[2],v=n[3],l=f.drawRect(e,o,a-e,v-o,0,"#fff",1,u.strokeWidth,r.config.plotOptions.treemap.useFillColorAsStroke?y:r.globals.stroke.colors[s]),b,y,nt,p,k,d,g;l.attr({cx:e,cy:o,index:s,i:s,j:t,width:a-e,height:v-o});b=u.helpers.getShadeColor(r.config.chart.type,s,t,u.negRange);y=b.color;void 0!==r.config.series[s].data[t]&&r.config.series[s].data[t].fillColor&&(y=r.config.series[s].data[t].fillColor);nt=h.fillPath({color:y,seriesNumber:s,dataPointIndex:t});l.node.classList.add("apexcharts-treemap-rect");l.attr({fill:nt});u.helpers.addListeners(l);p={x:e+(a-e)/2,y:o+(v-o)/2,width:0,height:0};k={x:e,y:o,width:a-e,height:v-o};r.config.chart.animations.enabled&&!r.globals.dataChanged&&(d=1,r.globals.resized||(d=r.config.chart.animations.speed),u.animateTreemap(l,p,k,d));r.globals.dataChanged&&(g=1,u.dynamicAnim.enabled&&r.globals.shouldAnimate&&(g=u.dynamicAnim.speed,r.globals.previousPaths[s]&&r.globals.previousPaths[s][t]&&r.globals.previousPaths[s][t].rect&&(p=r.globals.previousPaths[s][t].rect),u.animateTreemap(l,p,k,g)));var tt=u.getFontSize(n),it=r.config.dataLabels.formatter(u.labels[s][t],{value:r.globals.series[s][t],seriesIndex:s,dataPointIndex:t,w:r}),w=u.helpers.calculateDataLabels({text:it,x:(e+a)/2,y:(o+v)/2+u.strokeWidth/2+tt/3,i:s,j:t,colorProps:b,fontSize:tt,series:i});r.config.dataLabels.enabled&&w&&u.rotateToFitLabel(w,it,e,o,a,v);c.add(l);null!==w&&c.add(w)});c.add(a);e.add(c)}),e)}},{key:"getFontSize",value:function(n){var f=this.w,t,i,r,u,e=function n(t){var i,r=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)r+=n(t[i]);else for(i=0;i<t.length;i++)r+=t[i].length;return r}(this.labels)/function n(t){var i,r=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)r+=n(t[i]);else for(i=0;i<t.length;i++)r+=1;return r}(this.labels);return t=n[2]-n[0],i=n[3]-n[1],r=t*i,u=Math.pow(r,.5),Math.min(u/e,parseInt(f.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(n,i,r,u,f,e){var s=new t(this.ctx),h=s.getTextRects(i),o;h.width+5>f-r&&h.width<=e-u&&(o=s.rotateAroundCenter(n.node),n.node.setAttribute("transform","rotate(-90 ".concat(o.x," ").concat(o.y,")")))}},{key:"animateTreemap",value:function(n,t,i,r){var u=new p(this.ctx);u.animateRect(n,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},r,function(){u.animationCompleted(n)})}}]),u}(),ru=86400,uu=function(){function f(n){i(this,f);this.ctx=n;this.w=n.w;this.timeScaleArray=[];this.utc=this.w.config.xaxis.labels.datetimeUTC}return r(f,[{key:"calculateTimeScaleTicks",value:function(n,t){var h=this,i=this.w,l,r,c;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];l=new s(this.ctx);r=(t-n)/864e5;this.determineInterval(r);i.globals.disableZoomIn=!1;i.globals.disableZoomOut=!1;r<.00011574074074074075?i.globals.disableZoomIn=!0:r>5e4&&(i.globals.disableZoomOut=!0);var e=l.getTimeUnitsfromTimestamp(n,t,this.utc),a=i.globals.gridWidth/r,v=a/24,y=v/60,p=y/60,w=Math.floor(24*r),b=Math.floor(1440*r),k=Math.floor(r*ru),d=Math.floor(r),g=Math.floor(r/30),nt=Math.floor(r/365),f={minMillisecond:e.minMillisecond,minSecond:e.minSecond,minMinute:e.minMinute,minHour:e.minHour,minDate:e.minDate,minMonth:e.minMonth,minYear:e.minYear},o={firstVal:f,currentMillisecond:f.minMillisecond,currentSecond:f.minSecond,currentMinute:f.minMinute,currentHour:f.minHour,currentMonthDate:f.minDate,currentDate:f.minDate,currentMonth:f.minMonth,currentYear:f.minYear,daysWidthOnXAxis:a,hoursWidthOnXAxis:v,minutesWidthOnXAxis:y,secondsWidthOnXAxis:p,numberOfSeconds:k,numberOfMinutes:b,
40numberOfHours:w,numberOfDays:d,numberOfMonths:g,numberOfYears:nt};switch(this.tickInterval){case"years":this.generateYearScale(o);break;case"months":case"half_year":this.generateMonthScale(o);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(o);break;case"hours":this.generateHourScale(o);break;case"minutes_fives":case"minutes":this.generateMinuteScale(o);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(o)}return c=this.timeScaleArray.map(function(n){var t={position:n.position,unit:n.unit,year:n.year,day:n.day?n.day:1,hour:n.hour?n.hour:0,month:n.month+1};return"month"===n.unit?u(u({},t),{},{day:1,value:n.value+1}):"day"===n.unit||"hour"===n.unit?u(u({},t),{},{value:n.value}):"minute"===n.unit?u(u({},t),{},{value:n.value,minute:n.value}):"second"===n.unit?u(u({},t),{},{value:n.value,minute:n.minute,second:n.second}):n}),c.filter(function(n){var r=1,e=Math.ceil(i.globals.gridWidth/120),f=n.value,t,u;void 0!==i.config.xaxis.tickAmount&&(e=i.config.xaxis.tickAmount);c.length>e&&(r=Math.floor(c.length/e));t=!1;u=!1;switch(h.tickInterval){case"years":"year"===n.unit&&(t=!0);break;case"half_year":r=7;"year"===n.unit&&(t=!0);break;case"months":r=1;"year"===n.unit&&(t=!0);break;case"months_fortnight":r=15;"year"!==n.unit&&"month"!==n.unit||(t=!0);30===f&&(u=!0);break;case"months_days":r=10;"month"===n.unit&&(t=!0);30===f&&(u=!0);break;case"week_days":r=8;"month"===n.unit&&(t=!0);break;case"days":r=1;"month"===n.unit&&(t=!0);break;case"hours":"day"===n.unit&&(t=!0);break;case"minutes_fives":f%5!=0&&(u=!0);break;case"seconds_tens":f%10!=0&&(u=!0);break;case"seconds_fives":f%5!=0&&(u=!0)}if("hours"===h.tickInterval||"minutes_fives"===h.tickInterval||"seconds_tens"===h.tickInterval||"seconds_fives"===h.tickInterval){if(!u)return!0}else if((f%r==0||t)&&!u)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(n){var t=this.w,i=this.formatDates(n),r=this.removeOverlappingTS(i);t.globals.timescaleLabels=r.slice();new ot(this.ctx).plotCoords()}},{key:"determineInterval",value:function(n){var i=24*n,t=60*i;switch(!0){case n/365>5:this.tickInterval="years";break;case n>800:this.tickInterval="half_year";break;case n>180:this.tickInterval="months";break;case n>90:this.tickInterval="months_fortnight";break;case n>60:this.tickInterval="months_days";break;case n>30:this.tickInterval="week_days";break;case n>2:this.tickInterval="days";break;case i>2.4:this.tickInterval="hours";break;case t>15:this.tickInterval="minutes_fives";break;case t>5:this.tickInterval="minutes";break;case t>1:this.tickInterval="seconds_tens";break;case 60*t>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var i=t.firstVal,c=t.currentMonth,y=t.currentYear,l=t.daysWidthOnXAxis,p=t.numberOfYears,r=i.minYear,u=0,e=new s(this.ctx),o="year",a;i.minDate>1||i.minMonth>0?(a=e.determineRemainingDaysOfYear(i.minYear,i.minMonth,i.minDate),u=(e.determineDaysOfYear(i.minYear)-a+1)*l,r=i.minYear+1,this.timeScaleArray.push({position:u,value:r,unit:o,year:r,month:n.monthMod(c+1)})):1===i.minDate&&0===i.minMonth&&this.timeScaleArray.push({position:u,value:r,unit:o,year:y,month:n.monthMod(c+1)});for(var f=r,h=u,v=0;v<p;v++)f++,h=e.determineDaysOfYear(f-1)*l+h,this.timeScaleArray.push({position:h,value:f,unit:o,year:f,month:1})}},{key:"generateMonthScale",value:function(t){var v=t.firstVal,g=t.currentMonthDate,f=t.currentMonth,c=t.currentYear,y=t.daysWidthOnXAxis,nt=t.numberOfMonths,r=f,e=0,p=new s(this.ctx),u="month",o=0,h,d;if(v.minDate>1){e=(p.determineDaysOfMonths(f+1,v.minYear)-g+1)*y;r=n.monthMod(f+1);var l=c+o,w=n.monthMod(r),b=r;0===r&&(u="year",b=l,w=1,l+=o+=1);this.timeScaleArray.push({position:e,value:b,unit:u,year:l,month:w})}else this.timeScaleArray.push({position:e,value:r,unit:u,year:c,month:n.monthMod(f)});for(var i=r+1,a=e,k=0,tt=1;k<nt;k++,tt++)0===(i=n.monthMod(i))?(u="year",o+=1):u="month",h=this._getYear(c,i,o),a=p.determineDaysOfMonths(i,h)*y+a,d=0===i?h:i,this.timeScaleArray.push({position:a,value:d,unit:u,year:h,month:0===i?1:i}),i++}},{key:"generateDayScale",value:function(t){var i=t.firstVal,p=t.currentMonth,f=t.currentYear,w=t.hoursWidthOnXAxis,b=t.numberOfDays,d=new s(this.ctx),e="day",o=i.minDate+1,u=o,a=function(n,t,i){return n>d.determineDaysOfMonths(t+1,i)?(u=1,e="month",c=t+=1,t):t},h=(24-i.minHour)*w,c=o,r=a(u,p,f),l,v,k,y;for(0===i.minHour&&1===i.minDate?(h=0,c=n.monthMod(i.minMonth),e="month",u=i.minDate,b++):1!==i.minDate&&0===i.minHour&&0===i.minMinute&&(h=0,o=i.minDate,c=o,r=a(u=o,p,f)),this.timeScaleArray.push({position:h,value:c,unit:e,year:this._getYear(f,r,0),month:n.monthMod(r),day:u}),l=h,v=0;v<b;v++)e="day",r=a(u+=1,r,this._getYear(f,r,0)),k=this._getYear(f,r,0),l=24*w+l,y=1===u?n.monthMod(r):u,this.timeScaleArray.push({position:l,value:y,unit:e,year:k,month:n.monthMod(r),day:y})}},{key:"generateHourScale",value:function(t){var f=t.firstVal,d=t.currentDate,g=t.currentMonth,e=t.currentYear,l=t.minutesWidthOnXAxis,nt=t.numberOfHours,p=new s(this.ctx),o="hour",tt=function(n,t){return n>p.determineDaysOfMonths(t+1,e)&&(r=1,t+=1),{month:t,date:r}},w=function(n,t){return n>p.determineDaysOfMonths(t+1,e)?t+=1:t},a=60-(f.minMinute+f.minSecond/60),v=a*l,y=f.minHour+1,i=y+1,r,u,h,c,b,k;for(60===a&&(v=0,i=(y=f.minHour)+1),r=d,u=w(r,g),this.timeScaleArray.push({position:v,value:y,unit:o,day:r,hour:i,year:e,month:n.monthMod(u)}),h=v,c=0;c<nt;c++)(o="hour",i>=24)&&(i=0,o="day",u=tt(r+=1,u).month,u=w(r,u)),b=this._getYear(e,u,0),h=0===i&&0===c?a*l:60*l+h,k=0===i?r:i,this.timeScaleArray.push({position:h,value:k,unit:o,hour:i,day:r,year:b,month:n.monthMod(u)}),i++}},{key:"generateMinuteScale",value:function(t){for(var o=t.currentMillisecond,s=t.currentSecond,h=t.currentMinute,c=t.currentHour,l=t.currentDate,a=t.currentMonth,v=t.currentYear,y=t.minutesWidthOnXAxis,p=t.secondsWidthOnXAxis,w=t.numberOfMinutes,i=h+1,b=l,u=a,k=v,r=c,f=(60-s-o/1e3)*p,e=0;e<w;e++)i>=60&&(i=0,24===(r+=1)&&(r=0)),this.timeScaleArray.push({position:f,value:i,unit:"minute",hour:r,minute:i,day:b,year:this._getYear(k,u,0),month:n.monthMod(u)}),f+=y,i++}
40},{key:"generateSecondScale",value:function(t){for(var h=t.currentMillisecond,c=t.currentSecond,l=t.currentMinute,a=t.currentHour,v=t.currentDate,y=t.currentMonth,p=t.currentYear,f=t.secondsWidthOnXAxis,w=t.numberOfSeconds,i=c+1,r=l,b=v,e=y,k=p,u=a,o=(1e3-h)/1e3*f,s=0;s<w;s++)i>=60&&(i=0,++r>=60&&(r=0,24==++u&&(u=0))),this.timeScaleArray.push({position:o,value:i,unit:"second",hour:u,minute:r,second:i,day:b,year:this._getYear(k,e,0),month:n.monthMod(e)}),o+=f,i++}},{key:"createRawDateString",value:function(n,t){var i=n.year;return 0===n.month&&(n.month=1),i+="-"+("0"+n.month.toString()).slice(-2),i+="day"===n.unit?"day"===n.unit?"-"+("0"+t).slice(-2):"-01":"-"+("0"+(n.day?n.day:"1")).slice(-2),i+="hour"===n.unit?"hour"===n.unit?"T"+("0"+t).slice(-2):"T00":"T"+("0"+(n.hour?n.hour:"0")).slice(-2),i+="minute"===n.unit?":"+("0"+t).slice(-2):":"+(n.minute?("0"+n.minute).slice(-2):"00"),i+="second"===n.unit?":"+("0"+t).slice(-2):":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(n){var t=this,i=this.w;return n.map(function(n){var e=n.value.toString(),f=new s(t.ctx),o=t.createRawDateString(n,e),h=f.getDate(f.parseDate(o)),r,u;return(t.utc||(h=f.getDate(f.parseDateWithTimezone(o))),void 0===i.config.xaxis.labels.format)?(r="dd MMM",u=i.config.xaxis.labels.datetimeFormatter,"year"===n.unit&&(r=u.year),"month"===n.unit&&(r=u.month),"day"===n.unit&&(r=u.day),"hour"===n.unit&&(r=u.hour),"minute"===n.unit&&(r=u.minute),"second"===n.unit&&(r=u.second),e=f.formatDate(h,r)):e=f.formatDate(h,i.config.xaxis.labels.format),{dateString:o,position:n.position,value:e,unit:n.unit,year:n.year,month:n.month}})}},{key:"removeOverlappingTS",value:function(n){var r,o=this,u=new t(this.ctx),f=!1,i,e;return n.length>0&&n[0].value&&n.every(function(t){return t.value.length===n[0].value.length})&&(f=!0,r=u.getTextRects(n[0].value).width),i=0,e=n.map(function(t,e){if(e>0&&o.w.config.xaxis.labels.hideOverlappingLabels){var s=f?r:u.getTextRects(n[i].value).width,h=n[i].position;return t.position>h+s+10?(i=e,t):null}return t}),e.filter(function(n){return null!==n})}},{key:"_getYear",value:function(n,t,i){return n+Math.floor(t/12)+i}}]),f}(),fu=function(){function e(n,t){i(this,e);this.ctx=t;this.w=t.w;this.el=n}return r(e,[{key:"setupElements",value:function(){var n=this.w.globals,i=this.w.config,r=i.chart.type;n.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(r)>-1;n.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(r)>-1;n.isBarHorizontal=("bar"===i.chart.type||"rangeBar"===i.chart.type)&&i.plotOptions.bar.horizontal;n.chartClass=".apexcharts"+n.chartID;n.dom.baseEl=this.el;n.dom.elWrap=document.createElement("div");t.setAttrs(n.dom.elWrap,{id:n.chartClass.substring(1),"class":"apexcharts-canvas "+n.chartClass.substring(1)});this.el.appendChild(n.dom.elWrap);n.dom.Paper=new window.SVG.Doc(n.dom.elWrap);n.dom.Paper.attr({"class":"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(i.chart.offsetX,", ").concat(i.chart.offsetY,")")});n.dom.Paper.node.style.background=i.chart.background;this.setSVGDimensions();n.dom.elGraphical=n.dom.Paper.group().attr({"class":"apexcharts-inner apexcharts-graphical"});n.dom.elAnnotations=n.dom.Paper.group().attr({"class":"apexcharts-annotations"});n.dom.elDefs=n.dom.Paper.defs();n.dom.elLegendWrap=document.createElement("div");n.dom.elLegendWrap.classList.add("apexcharts-legend");n.dom.elWrap.appendChild(n.dom.elLegendWrap);n.dom.Paper.add(n.dom.elGraphical);n.dom.elGraphical.add(n.dom.elDefs)}},{key:"plotChartType",value:function(n,t){var a=this.w,v=a.config,r=a.globals,f={series:[],i:[]},o={series:[],i:[]},s={series:[],i:[]},h={series:[],i:[]},u={series:[],i:[]},c={series:[],i:[]},l={series:[],i:[]},e,y,p,w,i,k,d,g;if(r.series.map(function(t,i){var e=0;void 0!==n[i].type?("column"===n[i].type||"bar"===n[i].type?(r.series.length>1&&v.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),u.series.push(t),u.i.push(i),e++,a.globals.columnSeries=u.series):"area"===n[i].type?(o.series.push(t),o.i.push(i),e++):"line"===n[i].type?(f.series.push(t),f.i.push(i),e++):"scatter"===n[i].type?(s.series.push(t),s.i.push(i)):"bubble"===n[i].type?(h.series.push(t),h.i.push(i),e++):"candlestick"===n[i].type?(c.series.push(t),c.i.push(i),e++):"boxPlot"===n[i].type?(l.series.push(t),l.i.push(i),e++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),e>1&&(r.comboCharts=!0)):(f.series.push(t),f.i.push(i))}),e=new wt(this.ctx,t),y=new pt(this.ctx,t),this.ctx.pie=new vi(this.ctx),p=new nu(this.ctx),this.ctx.rangeBar=new ct(this.ctx,t),w=new gr(this.ctx),i=[],r.comboCharts)(o.series.length>0&&i.push(e.draw(o.series,"area",o.i)),u.series.length>0)&&(a.config.chart.stacked?(k=new ci(this.ctx,t),i.push(k.draw(u.series,u.i))):(this.ctx.bar=new b(this.ctx,t),i.push(this.ctx.bar.draw(u.series,u.i)))),(f.series.length>
400&&i.push(e.draw(f.series,"line",f.i)),c.series.length>0&&i.push(y.draw(c.series,c.i)),l.series.length>0&&i.push(y.draw(l.series,l.i)),s.series.length>0)&&(d=new wt(this.ctx,t,!0),i.push(d.draw(s.series,"scatter",s.i))),h.series.length>0&&(g=new wt(this.ctx,t,!0),i.push(g.draw(h.series,"bubble",h.i)));else switch(v.chart.type){case"line":i=e.draw(r.series,"line");break;case"area":i=e.draw(r.series,"area");break;case"bar":v.chart.stacked?i=new ci(this.ctx,t).draw(r.series):(this.ctx.bar=new b(this.ctx,t),i=this.ctx.bar.draw(r.series));break;case"candlestick":i=new pt(this.ctx,t).draw(r.series);break;case"boxPlot":i=new pt(this.ctx,t).draw(r.series);break;case"rangeBar":i=this.ctx.rangeBar.draw(r.series);break;case"heatmap":i=new dr(this.ctx,t).draw(r.series);break;case"treemap":i=new iu(this.ctx,t).draw(r.series);break;case"pie":case"donut":case"polarArea":i=this.ctx.pie.draw(r.series);break;case"radialBar":i=p.draw(r.series);break;case"radar":i=w.draw(r.series);break;default:i=e.draw(r.series)}return i}},{key:"setSVGDimensions",value:function(){var i=this.w.globals,r=this.w.config,u,f,e,o,s;i.svgWidth=r.chart.width;i.svgHeight=r.chart.height;u=n.getDimensions(this.el);f=r.chart.width.toString().split(/[0-9]+/g).pop();"%"===f?n.isNumber(u[0])&&(0===u[0].width&&(u=n.getDimensions(this.el.parentNode)),i.svgWidth=u[0]*parseInt(r.chart.width,10)/100):"px"!==f&&""!==f||(i.svgWidth=parseInt(r.chart.width,10));e=r.chart.height.toString().split(/[0-9]+/g).pop();"auto"!==i.svgHeight&&""!==i.svgHeight?"%"===e?(o=n.getDimensions(this.el.parentNode),i.svgHeight=o[1]*parseInt(r.chart.height,10)/100):i.svgHeight=parseInt(r.chart.height,10):i.svgHeight=i.axisCharts?i.svgWidth/1.61:i.svgWidth/1.2;(i.svgWidth<0&&(i.svgWidth=0),i.svgHeight<0&&(i.svgHeight=0),t.setAttrs(i.dom.Paper.node,{width:i.svgWidth,height:i.svgHeight}),"%"!==e)&&(s=r.chart.sparkline.enabled?0:i.axisCharts?r.chart.parentHeightOffset:0,i.dom.Paper.node.parentNode.parentNode.style.minHeight=i.svgHeight+s+"px");i.dom.elWrap.style.width=i.svgWidth+"px";i.dom.elWrap.style.height=i.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var n=this.w.globals,i=n.translateY,r={transform:"translate("+n.translateX+", "+i+")"};t.setAttrs(n.dom.elGraphical.node,r)}},{key:"resizeNonAxisCharts",value:function(){var i=this.w,r=i.globals,s=0,h=i.config.chart.sparkline.enabled?1:15,o,f,e,c,u;h+=i.config.grid.padding.bottom;"top"!==i.config.legend.position&&"bottom"!==i.config.legend.position||!i.config.legend.show||i.config.legend.floating||(s=new ei(this.ctx).legendHelpers.getLegendBBox().clwh+10);o=i.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie");f=2.05*i.globals.radialSize;o&&!i.config.chart.sparkline.enabled&&(e=n.getBoundingClientRect(o),f=e.bottom,c=e.bottom-e.top,f=Math.max(2.05*i.globals.radialSize,c));u=f+r.translateY+s+h;r.dom.elLegendForeign&&r.dom.elLegendForeign.setAttribute("height",u);r.dom.elWrap.style.height=u+"px";t.setAttrs(r.dom.Paper.node,{height:u});r.dom.Paper.node.parentNode.parentNode.style.minHeight=u+"px"}},{key:"coreCalculations",value:function(){new at(this.ctx).init()}},{key:"resetGlobals",value:function(){var i=this,t=function(){return i.w.config.series.map(function(){return[]})},r=new ri,n=this.w.globals;r.initGlobalVars(n);n.seriesXvalues=t();n.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var i=null,n=this.w,t;return n.globals.axisCharts&&("back"===n.config.xaxis.crosshairs.position&&new yt(this.ctx).drawXCrosshairs(),"back"===n.config.yaxis[0].crosshairs.position&&new yt(this.ctx).drawYCrosshairs(),"datetime"===n.config.xaxis.type&&void 0===n.config.xaxis.labels.formatter&&(this.ctx.timeScale=new uu(this.ctx),t=[],isFinite(n.globals.minX)&&isFinite(n.globals.maxX)&&!n.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(n.globals.minX,n.globals.maxX):n.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(n.globals.minY,n.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)),i=new f(this.ctx).getCalculatedRatios()),i}},{key:"updateSourceChart",value:function(n){this.ctx.w.globals.selection=void 0;this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:n.w.globals.minX,max:n.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var i=this,t=this.w,r;t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection&&(r=t.config.chart.brush.targets||[t.config.chart.brush.target],r.forEach(function(n){var t=ApexCharts.getChartByID(n);t.w.globals.brushSource=i.ctx;"function"!=typeof t.w.config.chart.events.zoomed&&(t.w.config.chart.events.zoomed=function(){i.updateSourceChart(t)});"function"!=typeof t.w.config.chart.events.scrolled&&(t.w.config.chart.events.scrolled=function(){i.updateSourceChart(t)})}),t.config.chart.events.selection=function(i,f){r.forEach(function(i){var r=ApexCharts.getChartByID(i),e=n.clone(t.config.yaxis),o,s;t.config.chart.brush.autoScaleYaxis&&1===r.w.globals.series.length&&(o=new k(r),e=o.autoScaleY(r,e,f));s=r.w.config.yaxis.reduce(function(n,t,i){return[].concat(c(n),[u(u({},r.w.config.yaxis[i]),{},{min:e[0].min,max:e[0].max})])},[]);r.ctx.updateHelpers._updateOptions({xaxis:{min:f.xaxis.min,max:f.xaxis.max},yaxis:s}
40,!1,!1,!1,!1)})})}}]),e}(),eu=function(){function o(n){i(this,o);this.ctx=n;this.w=n.w}return r(o,[{key:"_updateOptions",value:function(t){var u=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=[this.ctx];s&&(i=this.ctx.getSyncedCharts());this.ctx.w.globals.isExecCalled&&(i=[this.ctx],this.ctx.w.globals.isExecCalled=!1);i.forEach(function(i){var s=i.w;return s.globals.shouldAnimate=r,o||(s.globals.resized=!0,s.globals.dataChanged=!0,r&&i.series.getPreviousPaths()),t&&"object"===e(t)&&(i.config=new rt(t),t=f.extendArrayProps(i.config,t,s),i.w.globals.chartID!==u.ctx.w.globals.chartID&&delete t.series,s.config=n.extend(s.config,t),h&&(s.globals.lastXAxis=t.xaxis?n.clone(t.xaxis):[],s.globals.lastYAxis=t.yaxis?n.clone(t.yaxis):[],s.globals.initialConfig=n.extend({},s.config),s.globals.initialSeries=n.clone(s.config.series))),i.update(t)})}},{key:"_updateSeries",value:function(t,i){var u,f=this,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.w;return r.globals.shouldAnimate=i,r.globals.dataChanged=!0,i&&this.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(u=t.map(function(n,t){return f._extendSeries(n,t)})).length&&(u=[{data:[]}]),r.config.series=u):r.config.series=t.slice(),e&&(r.globals.initialSeries=n.clone(r.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(n,t){var r=this.w,i=r.config.series[t];return u(u({},r.config.series[t]),{},{name:n.name?n.name:i&&i.name,color:n.color?n.color:i&&i.color,type:n.type?n.type:i&&i.type,data:n.data?n.data:i&&i.data})}},{key:"toggleDataPointSelection",value:function(n,i){var r=this.w,u=null,f=".apexcharts-series[data\\:realIndex='".concat(n,"']");return r.globals.axisCharts?u=r.globals.dom.Paper.select("".concat(f," path[j='").concat(i,"'], ").concat(f," circle[j='").concat(i,"'], ").concat(f," rect[j='").concat(i,"']")).members[0]:void 0===i&&(u=r.globals.dom.Paper.select("".concat(f," path[j='").concat(n,"']")).members[0],"pie"!==r.config.chart.type&&"polarArea"!==r.config.chart.type&&"donut"!==r.config.chart.type||this.ctx.pie.pieClicked(n)),u?(new t(this.ctx).pathMouseDown(u,null),u.node?u.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(n){var t=this.w,i;return(["min","max"].forEach(function(i){void 0!==n.xaxis[i]&&(t.config.xaxis[i]=n.xaxis[i],t.globals.lastXAxis[i]=n.xaxis[i])}),n.xaxis.categories&&n.xaxis.categories.length&&(t.config.xaxis.categories=n.xaxis.categories),t.config.xaxis.convertedCatToNumeric)&&(i=new it(n),n=i.convertCatToNumericXaxis(n,this.ctx)),n}},{key:"forceYAxisUpdate",value:function(n){var t=this.w;return t.config.chart.stacked&&"100%"===t.config.chart.stackType&&(Array.isArray(n.yaxis)?n.yaxis.forEach(function(t,i){n.yaxis[i].min=0;n.yaxis[i].max=100}):(n.yaxis.min=0,n.yaxis.max=100)),n}},{key:"revertDefaultAxisMinMax",value:function(n){var r=this,t=this.w,u=t.globals.lastXAxis,i=t.globals.lastYAxis,f;n&&n.xaxis&&(u=n.xaxis);n&&n.yaxis&&(i=n.yaxis);t.config.xaxis.min=u.min;t.config.xaxis.max=u.max;f=function(n){void 0!==i[n]&&(t.config.yaxis[n].min=i[n].min,t.config.yaxis[n].max=i[n].max)};t.config.yaxis.map(function(n,u){t.globals.zoomed||void 0!==i[u]?f(u):void 0!==r.ctx.opts.yaxis[u]&&(n.min=r.ctx.opts.yaxis[u].min,n.max=r.ctx.opts.yaxis[u].max)})}}]),o}();return a="undefined"!=typeof window?window:void 0,ft=function(n,t){function d(n,t,r,u){return r+u.replace(i.regex.dots," .")}function w(n){return n.toLowerCase().replace(/-(.)/g,function(n,t){return t.toUpperCase()})}function a(n){return n.charAt(0).toUpperCase()+n.slice(1)}function v(n){var t=n.toString(16);return 1==t.length?"0"+t:t}function h(n,t,i){if(null==t||null==i){var r=n.bbox();null==t?t=r.width/r.height*i:null==i&&(i=r.height/r.width*t)}return{width:t,height:i}}function b(n,t,i){return{x:t*n.a+i*n.c+0,y:t*n.b+i*n.d+0}}function o(n){return{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}}function y(t){for(var r=t.childNodes.length-1;r>=0;r--)t.childNodes[r]instanceof n.SVGElement&&y(t.childNodes[r]);return i.adopt(t).id(i.eid(t.nodeName))}function g(n){return null==n.x&&(n.x=0,n.y=0,n.width=0,n.height=0),n.w=n.width,n.h=n.height,n.x2=n.x+n.width,n.y2=n.y+n.height,n.cx=n.x+n.width/2,n.cy=n.y+n.height/2,n}function f(n){return Math.abs(n)>1e-37?n:0}var i=(void 0!==this?this:n).SVG=function(n){if(i.supported)return n=new i.Doc(n),i.parser.draw||i.prepare(),n},u,r,p;if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.com/svgjs",i.supported=!0,!i.supported)return!1;i.did=1e3;i.eid=function(n){return"Svgjs"+a(n)+i.did++};i.create=function(n){var i=t.createElementNS(this.ns,n);return i.setAttribute("id",this.eid(n)),i};i.extend=function(){for(var t,u,r=(t=[].slice.call(arguments)).pop(),n=t.length-1;n>=0;n--)if(t[n])for(u in r)t[n].prototype[u]=r[u];i.Set&&i.Set.inherit&&i.Set.inherit()};i.invent=function(n){var t="function"==typeof n.create?n.create:function(){this.constructor.call(this,i.create(n.create))};return n.inherit&&(t.prototype=new n.inherit),n.extend&&i.extend(t,n.extend),n.construct&&i.extend(n.parent||i.Container,n.construct),t};i.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof n.SVGElement?new i.Nested:new i.Doc:"linearGradient"==t.nodeName?new i.Gradient("linear"):"radialGradient"==t.nodeName?new i.Gradient("radial"):i[a(t.nodeName)]?new i[a(t.nodeName)]:new i.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof i.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r};i.prepare=function(){var n=t.getElementsByTagName("body")[0],r=(n?new i.Doc(n):i.adopt(t.documentElement).nested()).size(2,0);i.parser={body:n||t.documentElement,draw:r.style("opacity:0;position:absolute;
40left:-100%;top:-100%;overflow:hidden").node,poly:r.polyline().node,path:r.path().node,"native":i.create("svg")}};i.parser={"native":i.create("svg")};t.addEventListener("DOMContentLoaded",function(){i.parser.draw||i.prepare()},!1);i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g};i.utils={map:function(n,t){for(var u=n.length,r=[],i=0;i<u;i++)r.push(t(n[i]));return r},filter:function(n,t){for(var u=n.length,r=[],i=0;i<u;i++)t(n[i])&&r.push(n[i]);return r},filterSVGElements:function(t){return this.filter(t,function(t){return t instanceof n.SVGElement})}};i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}};i.Color=function(n){var t,r;this.r=0;this.g=0;this.b=0;n&&("string"==typeof n?i.regex.isRgb.test(n)?(t=i.regex.rgb.exec(n.replace(i.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):i.regex.isHex.test(n)&&(t=i.regex.hex.exec(4==(r=n).length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===e(n)&&(this.r=n.r,this.g=n.g,this.b=n.b))};i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+v(this.r)+v(this.g)+v(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(n){return this.destination=new i.Color(n),this},at:function(n){return this.destination?(n=n<0?0:n>1?1:n,new i.Color({r:~~(this.r+(this.destination.r-this.r)*n),g:~~(this.g+(this.destination.g-this.g)*n),b:~~(this.b+(this.destination.b-this.b)*n)})):this}});i.Color.test=function(n){return n+="",i.regex.isHex.test(n)||i.regex.isRgb.test(n)};i.Color.isRgb=function(n){return n&&"number"==typeof n.r&&"number"==typeof n.g&&"number"==typeof n.b};i.Color.isColor=function(n){return i.Color.isRgb(n)||i.Color.test(n)};i.Array=function(n,t){0==(n=(n||[]).valueOf()).length&&t&&(n=t.valueOf());this.value=this.parse(n)};i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(n){return n=n.valueOf(),Array.isArray(n)?n:this.split(n)}});i.PointArray=function(n,t){i.Array.call(this,n,t||[[0,0]])};i.PointArray.prototype=new i.Array;i.PointArray.prototype.constructor=i.PointArray;for(var c={M:function(n,t,i){return t.x=i.x=n[0],t.y=i.y=n[1],["M",t.x,t.y]},L:function(n,t){return t.x=n[0],t.y=n[1],["L",n[0],n[1]]},H:function(n,t){return t.x=n[0],["H",n[0]]},V:function(n,t){return t.y=n[0],["V",n[0]]},C:function(n,t){return t.x=n[4],t.y=n[5],["C",n[0],n[1],n[2],n[3],n[4],n[5]]},Q:function(n,t){return t.x=n[2],t.y=n[3],["Q",n[0],n[1],n[2],n[3]]},Z:function(n,t,i){return t.x=i.x,t.y=i.y,["Z"]}},l="mlhvqtcsaz".split(""),s=0,k=l.length;s<k;++s)c[l[s]]=function(n){return function(t,i,r){if("H"==n)t[0]=t[0]+i.x;else if("V"==n)t[0]=t[0]+i.y;else if("A"==n)t[5]=t[5]+i.x,t[6]=t[6]+i.y;else for(var u=0,f=t.length;u<f;++u)t[u]=t[u]+(u%2?i.y:i.x);return c[n](t,i,r)}}(l[s].toUpperCase());return i.PathArray=function(n,t){i.Array.call(this,n,t||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t][0],null!=n[t][1]&&(i+=n[t][1],null!=n[t][2]&&(i+=" ",i+=n[t][2],null!=n[t][3]&&(i+=" ",i+=n[t][3],i+=" ",i+=n[t][4],null!=n[t][5]&&(i+=" ",i+=n[t][5],i+=" ",i+=n[t][6],null!=n[t][7]&&(i+=" ",i+=n[t][7])))));return i+" "}(this.value)},move:function(){var n=this.bbox();return n.x,n.y,this},at:function(n){var u,o;if(!this.destination)return this;for(var f=this.value,s=this.destination.value,r=[],e=new i.PathArray,t=0,h=f.length;t<h;t++){for(r[t]=[f[t][0]],u=1,o=f[t].length;u<o;u++)r[t][u]=f[t][u]+(s[t][u]-f[t][u])*n;"A"===r[t][0]&&(r[t][4]=+(0!=r[t][4]),r[t][5]=+(0!=r[t][5]))}return e.value=r,e},parse:function(n){var t,u;if(n instanceof i.PathArray)return n.valueOf();u={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};n="string"==typeof n?n.replace(i.regex.numbersWithDots,d).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):n.reduce(function(n,t){return[].concat.call(n,t)},[]);var f=[],e=new i.Point,o=new i.Point,r=0,s=n.length;do i.regex.isPathLetter.test(n[r])?(t=n[r],++r):"M"==t?t="L":"m"==t&&(t="l"),f.push(c[t].call(null,n.slice(r,r+=u[t.toUpperCase()]).map(parseFloat),e,o));while(s>r);return f},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(n,t){this.value=0;this.unit=t||"";"number"==typeof n?this.value=isNaN(n)?0:isFinite(n)?n:n<0?-34e37:34e37:"string"==typeof n?(t=n.match(i.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):n instanceof i.Number&&(this.value=n.valueOf(),this.unit=n.unit)}
40,extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(n){return n=new i.Number(n),new i.Number(this+n,this.unit||n.unit)},minus:function(n){return n=new i.Number(n),new i.Number(this-n,this.unit||n.unit)},times:function(n){return n=new i.Number(n),new i.Number(this*n,this.unit||n.unit)},divide:function(n){return n=new i.Number(n),new i.Number(this/n,this.unit||n.unit)},to:function(n){var t=new i.Number(this);return"string"==typeof n&&(t.unit=n),t},morph:function(n){return this.destination=new i.Number(n),n.relative&&(this.destination.value+=this.value),this},at:function(n){return this.destination?new i.Number(this.destination).minus(this).times(n).plus(this):this}}}),i.Element=i.invent({create:function(n){this._stroke=i.defaults.attrs.stroke;this._event=null;this.dom={};(this.node=n)&&(this.type=n.nodeName,this.node.instance=this,this._stroke=n.getAttribute("stroke")||this._stroke)},extend:{x:function(n){return this.attr("x",n)},y:function(n){return this.attr("y",n)},cx:function(n){return null==n?this.x()+this.width()/2:this.x(n-this.width()/2)},cy:function(n){return null==n?this.y()+this.height()/2:this.y(n-this.height()/2)},move:function(n,t){return this.x(n).y(t)},center:function(n,t){return this.cx(n).cy(t)},width:function(n){return this.attr("width",n)},height:function(n){return this.attr("height",n)},size:function(n,t){var r=h(this,n,t);return this.width(new i.Number(r.width)).height(new i.Number(r.height))},clone:function(n){this.writeDataToDom();var t=y(this.node.cloneNode(!0));return n?n.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(n){return this.after(n).remove(),n},addTo:function(n){return n.put(this)},putIn:function(n){return n.add(this)},id:function(n){return this.attr("id",n)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var n=this.attr("class");return null==n?[]:n.trim().split(i.regex.delimiter)},hasClass:function(n){return-1!=this.classes().indexOf(n)},addClass:function(n){if(!this.hasClass(n)){var t=this.classes();t.push(n);this.attr("class",t.join(" "))}return this},removeClass:function(n){return this.hasClass(n)&&this.attr("class",this.classes().filter(function(t){return t!=n}).join(" ")),this},toggleClass:function(n){return this.hasClass(n)?this.removeClass(n):this.addClass(n)},reference:function(n){return i.get(this.attr(n))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=i.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof n.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName)return null;r=i.adopt(r.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(n){var i=[],t=this;do{if(!(t=t.parent(n))||!t.node)break;i.push(t)}while(t.parent);return i},matches:function(n){return function(n,t){return(n.matches||n.matchesSelector||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector).call(n,t)}(this.node,n)},"native":function(){return this.node},svg:function(n){var r=t.createElement("svg"),u,f;if(!(n&&this instanceof i.Parent))return r.appendChild(n=t.createElement("svg")),this.writeDataToDom(),n.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");for(r.innerHTML="<svg>"+n.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2><\/$1>")+"<\/svg>",u=0,f=r.firstChild.childNodes.length;u<f;u++)this.node.appendChild(r.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(n){return this.dom=n,this},is:function(n){return function(n,t){return n instanceof t}(this,n)}}}),i.easing={"-":function(n){return n},"<>":function(n){return-Math.cos(n*Math.PI)/2+.5},">":function(n){return Math.sin(n*Math.PI/2)},"<":function(n){return 1-Math.cos(n*Math.PI/2)}},i.morph=function(n){return function(t,r){return new i.MorphObj(t,r).at(n)}},i.Situation=i.invent({create:function(n){this.init=!1;this.reversed=!1;this.reversing=!1;this.duration=new i.Number(n.duration).valueOf();this.delay=new i.Number(n.delay).valueOf();this.start=+new Date+this.delay;this.finish=this.start+this.duration;this.ease=n.ease;this.loop=0;this.loops=!1;this.animations={};this.attrs={};this.styles={};this.transforms=[];this.once={}}}),i.FX=i.invent({create:function(n){this._target=n;this.situations=[];this.active=!1;this.situation=null;this.paused=!1;this.lastPos=0;this.pos=0;this.absPos=0;this._speed=1},extend:{animate:function(n,t,r){"object"===e(n)&&(t=n.ease,r=n.delay,n=n.duration);var u=new i.Situation({duration:n||1e3,delay:r||0,ease:i.easing[t||"-"]||t});return this.queue(u),this},target:function(n){return n&&n instanceof i.Element?(this._target=n,this):this._target},timeToAbsPos:function(n){return(n-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(n){return this.situation.duration/this._speed*n+this.situation.start}
40,startAnimFrame:function(){this.stopAnimFrame();this.animationFrame=n.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){n.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(n){return("function"==typeof n||n instanceof i.Situation)&&this.situations.push(n),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var r,n=this.situation,u,t;if(n.init)return this;for(t in n.animations)for(r=this.target()[t](),Array.isArray(r)||(r=[r]),Array.isArray(n.animations[t])||(n.animations[t]=[n.animations[t]]),u=r.length;u--;)n.animations[t][u]instanceof i.Number&&(r[u]=new i.Number(r[u])),n.animations[t][u]=r[u].morph(n.animations[t][u]);for(t in n.attrs)n.attrs[t]=new i.MorphObj(this.target().attr(t),n.attrs[t]);for(t in n.styles)n.styles[t]=new i.MorphObj(this.target().style(t),n.styles[t]);return n.initialTransformation=this.target().matrixify(),n.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(n,t){var i=this.active;return this.active=!1,t&&this.clearQueue(),n&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(n){var t=this.last();return this.target().on("finished.fx",function i(r){r.detail.situation==t&&(n.call(this,t),this.off("finished.fx",i))}),this._callStart()},during:function(n){var r=this.last(),t=function(t){t.detail.situation==r&&n.call(this,t.detail.pos,i.morph(t.detail.pos),t.detail.eased,r)};return this.target().off("during.fx",t).on("during.fx",t),this.after(function(){this.off("during.fx",t)}),this._callStart()},afterAll:function(n){var t=function t(){n.call(this);this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(n,t,i){return this.last()[i||"animations"][n]=t,this._callStart()},step:function(n){var u,r,f,t,i;n||(this.absPos=this.timeToAbsPos(+new Date));!1!==this.situation.loops?(u=Math.max(this.absPos,0),r=Math.floor(u),!0===this.situation.loops||r<this.situation.loops?(this.pos=u-r,f=this.situation.loop,this.situation.loop=r):(this.absPos=this.situation.loops,this.pos=1,f=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-f)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos);this.pos<0&&(this.pos=0);this.situation.reversed&&(this.pos=1-this.pos);t=this.situation.ease(this.pos);for(i in this.situation.once)i>this.lastPos&&i<=t&&(this.situation.once[i].call(this.target(),this.pos,t),delete this.situation.once[i]);return this.active&&this.target().fire("during",{pos:this.pos,eased:t,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=t,this):this},eachAt:function(){var t,e=this,f=this.target(),n=this.situation,r,o,u;for(r in n.animations)t=[].concat(n.animations[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),f[r].apply(f,t);for(r in n.attrs)t=[r].concat(n.attrs[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),f.attr.apply(f,t);for(r in n.styles)t=[r].concat(n.styles[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),f.style.apply(f,t);if(n.transforms.length){for(t=n.initialTransformation,r=0,o=n.transforms.length;r<o;r++)u=n.transforms[r],u instanceof i.Matrix?t=u.relative?t.multiply((new i.Matrix).morph(u).at(n.ease(this.pos))):t.morph(u).at(n.ease(this.pos)):(u.relative||u.undo(t.extract()),t=t.multiply(u.at(n.ease(this.pos))));f.matrix(t)}return this},once:function(n,t,i){var r=this.last();
40return i||(n=r.ease(n)),r.once[n]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:i.Element,construct:{animate:function(n,t,r){return(this.fx||(this.fx=new i.FX(this))).animate(n,t,r)},delay:function(n){return(this.fx||(this.fx=new i.FX(this))).delay(n)},stop:function(n,t){return this.fx&&this.fx.stop(n,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(n,t){return i.Color.isColor(t)?new i.Color(n).morph(t):i.regex.delimiter.test(n)?i.regex.pathLetters.test(n)?new i.PathArray(n).morph(t):new i.Array(n).morph(t):i.regex.numberAndUnit.test(t)?new i.Number(n).morph(t):(this.value=n,void(this.destination=t))},extend:{at:function(n,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(n,t){if("object"===e(n))for(var i in n)this.attr(i,n[i]);else this.add(n,t,"attrs");return this},plot:function(n,t,i,r){return 4==arguments.length?this.plot([n,t,i,r]):this.add("plot",new(this.target().morphArray)(n))}}),i.Box=i.invent({create:function(n,t,r,u){if(!("object"!==e(n)||n instanceof i.Element))return i.Box.call(this,null!=n.left?n.left:n.x,null!=n.top?n.top:n.y,n.width,n.height);4==arguments.length&&(this.x=n,this.y=t,this.width=r,this.height=u);g(this)}}),i.BBox=i.invent({create:function(n){var u,r,f;if(i.Box.apply(this,[].slice.call(arguments)),n instanceof i.Element){try{if(!t.documentElement.contains){for(r=n.node;r.parentNode;)r=r.parentNode;if(r!=t)throw new Error("Element not in the dom");}u=n.node.getBBox()}catch(t){n instanceof i.Shape?(i.parser.draw||i.prepare(),f=n.clone(i.parser.draw.instance).show(),u=f.node.getBBox(),f.remove()):u={x:n.node.clientLeft,y:n.node.clientTop,width:n.node.clientWidth,height:n.node.clientHeight}}i.Box.call(this,u)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(n){var u=o([1,0,0,1,0,0]),t;for(n=n instanceof i.Element?n.matrixify():"string"==typeof n?o(n.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?o([].slice.call(arguments)):Array.isArray(n)?o(n):"object"===e(n)?n:u,t=r.length-1;t>=0;--t)this[r[t]]=null!=n[r[t]]?n[r[t]]:u[r[t]]},extend:{extract:function(){var t=b(this,0,1),n=(b(this,1,0),180/Math.PI*Math.atan2(t.y,t.x)-90);return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(n*Math.PI/180)+this.f*Math.sin(n*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(n*Math.PI/180)+this.e*Math.sin(-n*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:n,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(n){return this.destination=new i.Matrix(n),this},multiply:function(n){return new i.Matrix(this.native().multiply(function(n){return n instanceof i.Matrix||(n=new i.Matrix(n)),n}(n).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(n,t){return new i.Matrix(this.native().translate(n||0,t||0))},"native":function(){for(var t=i.parser.native.createSVGMatrix(),n=r.length-1;n>=0;n--)t[r[n]]=this[r[n]];return t},toString:function(){return"matrix("+f(this.a)+","+f(this.b)+","+f(this.c)+","+f(this.d)+","+f(this.e)+","+f(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var n=this.rect(1,1),t=n.node.getScreenCTM();return n.remove(),new i.Matrix(t)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(n,t){var i;i=Array.isArray(n)?{x:n[0],y:n[1]}:"object"===e(n)?{x:n.x,y:n.y}:null!=n?{x:n,y:null!=t?t:n}:{x:0,y:0};this.x=i.x;this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(n,t){return this.destination=new i.Point(n,t),this}}}),i.extend(i.Element,{point:function(n,t){return new i.Point(n,t).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(n,t,r){if(null==n){for(n={},r=(t=this.node.attributes).length-1;r>=0;r--)n[t[r].nodeName]=i.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return n}if("object"===e(n))for(var u in n)this.attr(u,n[u]);else if(null===t)this.node.removeAttribute(n);else{if(null==t)return null==(t=this.node.getAttribute(n))?i.defaults.attrs[n]:i.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==n?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==n&&(this._stroke=t);"fill"!=n&&"stroke"!=n||(i.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof i.Image&&(t=this.doc().defs().pattern(0,0,function(){this.add(t)})));"number"==typeof t?t=new i.Number(t):i.Color.isColor(t)?t=new i.Color(t):Array.isArray(t)&&(t=new i.Array(t));"leading"==n?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,n,t.toString()):this.node.setAttribute(n,t.toString());!this.rebuild||"font-size"!=n&&"x"!=n||this.rebuild(n,t)}return this}}),i.extend(i.Element,{transform:function(n,t){var r;return"object"!==e(n)?(r=new i.Matrix(this).extract(),"string"==typeof n?r[n]:r):(r=new i.Matrix(this),t=!!t||!!n.relative,null!=n.a&&(r=t?r.multiply(new i.Matrix(n)):new i.Matrix(n)),this.attr("transform",r))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map(function(n){var t=n.trim().split("(");return[t[0],t[1].split(i.regex.delimiter).map(function(n){return parseFloat(n)})]}).reduce(function(n,t){return"matrix"==t[0]?n.multiply(o(t[1])):n[t[0]].apply(n,t[1])},new i.Matrix)},toParent:function(n){if(this==n)return this;var t=this.screenCTM(),i=n.screenCTM().inverse();return this.addTo(n).untransform().transform(i.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(n,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(n))for(var i=0,r=this.arguments.length;i<r;++i)this[this.arguments[i]]=n[i];else if("object"===e(n))for(i=0,r=this.arguments.length;i<r;++i)this[this.arguments[i]]=n[this.arguments[i]];this.inversed=!1;!0===t&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(n,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===e(n))for(var r in n)this.style(r,n[r]);else{if(!i.regex.isCss.test(n))return this.node.style[w(n)];for(n=n.split(/\s*;\s*/).filter(function(n){return!!n}).map(function(n){return n.split(/\s*:\s*/)});t=n.pop();)this.style(t[0],t[1])}else this.node.style[w(n)]=null===t||i.regex.isBlank.test(t)?"":t;return this}}),i.Parent=i.invent({create:function(n){this.constructor.call(this,n)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),function(n){return i.adopt(n)})},add:function(n,t){return null==t?this.node.appendChild(n.node):n.node!=this.node.childNodes[t]&&this.node.insertBefore(n.node,this.node.childNodes[t]),this},put:function(n,t){return this.add(n,t),n},has:function(n){return this.index(n)>=0},index:function(n){return[].slice.call(this.node.childNodes).indexOf(n.node)},get:function(n){return i.adopt(this.node.childNodes[n])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(n,t){for(var u=this.children(),r=0,f=u.length;r<f;r++)u[r]instanceof i.Element&&n.apply(u[r],[r,u]),t&&u[r]instanceof i.Container&&u[r].each(n,t);return this},removeElement:function(n){return this.node.removeChild(n.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),i.extend(i.Parent,{ungroup:function(n,t){return 0===t||this instanceof i.Defs||this.node==i.parser.draw||(n=n||(this instanceof i.Doc?this:this.parent(i.Parent)),t=t||1/0,this.each(function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(n,t-1):this.toParent(n)}),this.node.firstChild||this.remove()),this},flatten:function(n,t){return this.ungroup(n,t)}}),i.Container=i.invent({create:function(n){this.constructor.call(this,n)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(n){i.Element.prototype[n]=function(t){return i.on(this.node,n,t),this}}),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(n,t,r,u,f){var h=r.bind(u||n.instance||n),e=(i.handlerMap.indexOf(n)+1||i.handlerMap.push(n))-1,o=t.split(".")[0],s=t.split(".")[1]||"*";i.listeners[e]=i.listeners[e]||{};i.listeners[e][o]=i.listeners[e][o]||{};i.listeners[e][o][s]=i.listeners[e][o][s]||{};r._svgjsListenerId||(r._svgjsListenerId=++i.listenerId);i.listeners[e][o][s][r._svgjsListenerId]=h;n.addEventListener(o,h,f||{passive:!0})},i.off=function(n,t,r){var u=i.handlerMap.indexOf(n),f=t&&t.split(".")[0],e=t&&t.split(".")[1],s="",h,o;if(-1!=u)if(r){if("function"==typeof r&&(r=r._svgjsListenerId),!r)return;i.listeners[u][f]&&i.listeners[u][f][e||"*"]&&(n.removeEventListener(f,i.listeners[u][f][e||"*"][r],!1),delete i.listeners[u][f][e||"*"][r])}else if(e&&f){if(i.listeners[u][f]&&i.listeners[u][f][e]){for(h in i.listeners[u][f][e])i.off(n,[f,e].join("."),h);delete i.listeners[u][f][e]}}else if(e)for(o in i.listeners[u])for(s in i.listeners[u][o])e===s&&i.off(n,[o,e].join("."));else if(f){if(i.listeners[u][f]){for(s in i.listeners[u][f])i.off(n,[f,s].join("."));delete i.listeners[u][f]}}else{for(o in i.listeners[u])i.off(n,o);delete i.listeners[u];delete i.handlerMap[u]}},i.extend(i.Element,{on:function(n,t,r,u){return i.on(this.node,n,t,r,u),this},off:function(n,t){return i.off(this.node,n,t),this},fire:function(t,r){return t instanceof n.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new i.CustomEvent(t,{detail:r,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(n){return null==n?this.transform("x"):this.transform({x:n-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}
vendor: 7,230 bytes, line 40
40),i.Doc=i.invent({create:function(n){n&&("svg"==(n="string"==typeof n?t.getElementById(n):n).nodeName?this.constructor.call(this,n):(this.constructor.call(this,i.create("svg")),n.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var n;return this._defs||(this._defs=(n=this.node.getElementsByTagName("defs")[0])?i.adopt(n):new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(n){this.writeDataToDom();var t=this.node,i=y(t.cloneNode(!0));return n?(n.node||n).appendChild(i.node):t.parentNode.insertBefore(i.node,t.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(n){this.constructor.call(this,i.create(n+"Gradient"));this.type=n},inherit:i.Container,extend:{at:function(n,t,r){return this.put(new i.Stop).update(n,t,r)},update:function(n){return this.clear(),"function"==typeof n&&n.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(n,t,r){return"transform"==n&&(n="gradientTransform"),i.Container.prototype.attr.call(this,n,t,r)}},construct:{gradient:function(n,t){return this.defs().gradient(n,t)}}}),i.extend(i.Gradient,i.FX,{from:function(n,t){return"radial"==(this._target||this).type?this.attr({fx:new i.Number(n),fy:new i.Number(t)}):this.attr({x1:new i.Number(n),y1:new i.Number(t)})},to:function(n,t){return"radial"==(this._target||this).type?this.attr({cx:new i.Number(n),cy:new i.Number(t)}):this.attr({x2:new i.Number(n),y2:new i.Number(t)})}}),i.extend(i.Defs,{gradient:function(n,t){return this.put(new i.Gradient(n)).update(t)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(n){return("number"==typeof n||n instanceof i.Number)&&(n={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=n.opacity&&this.attr("stop-opacity",n.opacity),null!=n.color&&this.attr("stop-color",n.color),null!=n.offset&&this.attr("offset",new i.Number(n.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(n){return this.clear(),"function"==typeof n&&n.call(this,this),this},toString:function(){return this.fill()},attr:function(n,t,r){return"transform"==n&&(n="patternTransform"),i.Container.prototype.attr.call(this,n,t,r)}},construct:{pattern:function(n,t,i){return this.defs().pattern(n,t,i)}}}),i.extend(i.Defs,{pattern:function(n,t,r){return this.put(new i.Pattern).update(r).attr({x:0,y:0,width:n,height:t,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(n){this.constructor.call(this,n)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(n,t){return this.attr("href",(t||"")+"#"+n,i.xlink)}},construct:{use:function(n,t){return this.put(new i.Use).element(n,t)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(n,t){return this.put(new i.Rect).size(n,t)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(n){return this.put(new i.Circle).rx(new i.Number(n).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(n){return this.attr("r",n)},ry:function(n){return this.rx(n)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(n,t){return this.put(new i.Ellipse).size(n,t).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(n){return this.attr("rx",n)},ry:function(n){return this.attr("ry",n)}}),i.extend(i.Circle,i.Ellipse,{x:function(n){return null==n?this.cx()-this.rx():this.cx(n+this.rx())},y:function(n){return null==n?this.cy()-this.ry():this.cy(n+this.ry())},cx:function(n){return null==n?this.attr("cx"):this.attr("cx",n)},cy:function(n){return null==n?this.attr("cy"):this.attr("cy",n)},width:function(n){return null==n?2*this.rx():this.rx(new i.Number(n).divide(2))},height:function(n){return null==n?2*this.ry():this.ry(new i.Number(n).divide(2))},size:function(n,t){var r=h(this,n,t);return this.rx(new i.Number(r.width).divide(2)).ry(new i.Number(r.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(n,t,r,u){return null==n?this.array():(n=void 0!==t?{x1:n,y1:t,x2:r,y2:u}:new i.PointArray(n).toLine(),this.attr(n))},move:function(n,t){return this.attr(this.array().move(n,t).toLine())},size:function(n,t){var i=h(this,n,t);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(n,t,r,u){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=n?[n,t,r,u]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(n){return this.put(new i.Polyline).plot(n||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(n){return this.put(new i.Polygon).plot(n||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(n){return null==n?this.array():this.clear().attr("points","string"==typeof n?n:this._array=new i.PointArray(n))},clear:function(){return delete this._array,this},move:function(n,t){return this.attr("points",this.array().move(n,t))},size:function(n,t){var i=h(this,n,t);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(n){return null==n?this.bbox().x:this.move(n,this.bbox().y)},y:function(n){return null==n?this.bbox().y:this.move(this.bbox().x,n)},width:function(n){var t=this.bbox();return null==n?t.width:this.size(n,t.height)},height:function(n){var t=this.bbox();return null==n?t.height:this.size(t.width,n)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(n){return null==n?this.array():this.clear().attr("d","string"==typeof n?n:this._array=new i.PathArray(n))},clear:function(){return delete this._array,this}},construct:{path:function(n){return this.put(new i.Path).plot(n||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(t){if(!t)return this;var r=this,u=new n.Image;return i.on(u,"load",function(){i.off(u);var n=r.parent(i.Pattern);null!==n&&(0==r.width()&&0==r.height()&&r.size(u.width,u.height),n&&0==n.width()&&0==n.height()&&n.size(r.width(),r.height()),"function"==typeof r._loaded&&r._loaded.
40call(r,{width:u.width,height:u.height,ratio:u.width/u.height,url:t}))}),i.on(u,"error",function(n){i.off(u);"function"==typeof r._error&&r._error.call(r,n)}),this.attr("href",u.src=this.src=t,i.xlink)},loaded:function(n){return this._loaded=n,this},error:function(n){return this._error=n,this}},construct:{image:function(n,t,r){return this.put(new i.Image).load(n).size(t||0,r||t||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text"));this.dom.leading=new i.Number(1.3);this._rebuild=!0;this._build=!1;this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(n){return null==n?this.attr("x"):this.attr("x",n)},text:function(n){var u;if(void 0===n){n="";for(var r=this.node.childNodes,t=0,f=r.length;t<f;++t)0!=t&&3!=r[t].nodeType&&1==i.adopt(r[t]).dom.newLined&&(n+="\n"),n+=r[t].textContent;return n}if(this.clear().build(!0),"function"==typeof n)n.call(this,this);else for(t=0,u=(n=n.split("\n")).length;t<u;t++)this.tspan(n[t]).newLine();return this.build(!1).rebuild()},size:function(n){return this.attr("font-size",n).rebuild()},leading:function(n){return null==n?this.dom.leading:(this.dom.leading=new i.Number(n),this.rebuild())},lines:function(){var n=(this.textPath&&this.textPath()||this).node,t=i.utils.map(i.utils.filterSVGElements(n.childNodes),function(n){return i.adopt(n)});return new i.Set(t)},rebuild:function(n){if("boolean"==typeof n&&(this._rebuild=n),this._rebuild){var r=this,t=0,u=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(r.textPath()||this.attr("x",r.attr("x")),"\n"==this.text()?t+=u:(this.attr("dy",u+t),t=0))});this.fire("rebuild")}return this},build:function(n){return this._build=!!n,this},setData:function(n){return this.dom=n,this.dom.leading=new i.Number(n.leading||1.3),this}},construct:{text:function(n){return this.put(new i.Text).text(n)},plain:function(n){return this.put(new i.Text).plain(n)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(n){return null==n?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof n?n.call(this,this):this.plain(n),this)},dx:function(n){return this.attr("dx",n)},dy:function(n){return this.attr("dy",n)},newLine:function(){var n=this.parent(i.Text);return this.dom.newLined=!0,this.dy(n.dom.leading*n.attr("font-size")).attr("x",n.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(n){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(n)),this},tspan:function(n){var r=(this.textPath&&this.textPath()||this).node,t=new i.Tspan;return!1===this._build&&this.clear(),r.appendChild(t.node),t.text(n)},clear:function(){for(var n=(this.textPath&&this.textPath()||this).node;n.hasChildNodes();)n.removeChild(n.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var n=this.track();return n?n.array():null},plot:function(n){var t=this.track(),i=null;return t&&(i=t.plot(n)),null==n?i:this},track:function(){var n=this.textPath();if(n)return n.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg"));this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}}),u={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(n,t){return"color"==t?n:n+"-"+t}},["fill","stroke"].forEach(function(n){var t={};t[n]=function(t){if(void 0===t)return this;if("string"==typeof t||i.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(n,t);else for(var r=u[n].length-1;r>=0;r--)null!=t[u[n][r]]&&this.attr(u.prefix(n,u[n][r]),t[u[n][r]]);return this};i.extend(i.Element,i.FX,t)}),i.extend(i.Element,i.FX,{translate:function(n,t){return this.transform({x:n,y:t})},matrix:function(n){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):n))},opacity:function(n){return this.attr("opacity",n)},dx:function(n){return this.x(new i.Number(n).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(n){return this.y(new i.Number(n).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(n){return this.node.getPointAtLength(n)}}),i.Set=i.invent({create:function(n){Array.isArray(n)?this.members=n:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),n=0,i=t.length;n<i;n++)this.members.push(t[n]);return this},remove:function(n){var t=this.index(n);return t>-1&&this.members.splice(t,1),this},each:function(n){for(var t=0,i=this.members.length;t<i;t++)n.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(n){return this.index(n)>=0},index:function(n){return this.members.indexOf(n)},get:function(n){return this.members[n]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)}
40,valueOf:function(){return this.members}},construct:{set:function(n){return new i.Set(n)}}}),i.FX.Set=i.invent({create:function(n){this.set=n}}),i.Set.inherit=function(){var t=[];for(var n in i.Shape.prototype)"function"==typeof i.Shape.prototype[n]&&"function"!=typeof i.Set.prototype[n]&&t.push(n);for(n in t.forEach(function(n){i.Set.prototype[n]=function(){for(var t=0,r=this.members.length;t<r;t++)this.members[t]&&"function"==typeof this.members[t][n]&&this.members[t][n].apply(this.members[t],arguments);return"animate"==n?this.fx||(this.fx=new i.FX.Set(this)):this}}),t=[],i.FX.prototype)"function"==typeof i.FX.prototype[n]&&"function"!=typeof i.FX.Set.prototype[n]&&t.push(n);t.forEach(function(n){i.FX.Set.prototype[n]=function(){for(var t=0,i=this.set.members.length;t<i;t++)this.set.members[t].fx[n].apply(this.set.members[t].fx,arguments);return this}})},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(n,t){if("object"===e(arguments[0]))for(var i in n)this.remember(i,n[i]);else{if(1==arguments.length)return this.memory()[n];this.memory()[n]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var n=arguments.length-1;n>=0;n--)delete this.memory()[arguments[n]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(n){var r=t.getElementById(function(n){var t=(n||"").toString().match(i.regex.reference);if(t)return t[1]}(n)||n);return i.adopt(r)},i.select=function(n,r){return new i.Set(i.utils.map((r||t).querySelectorAll(n),function(n){return i.adopt(n)}))},i.extend(i.Parent,{select:function(n){return i.select(n,this.node)}}),r="abcdef".split(""),"function"!=typeof n.CustomEvent?(p=function(n,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(n,i.bubbles,i.cancelable,i.detail),r},p.prototype=n.Event.prototype,i.CustomEvent=p):i.CustomEvent=n.CustomEvent,i},"function"==typeof define&&define.amd?define(function(){return ft(a,a.document)}):"object"===("undefined"==typeof exports?"undefined":e(exports))&&"undefined"!=typeof module?module.exports=a.document?ft(a,a.document):function(n){return ft(n,n.document)}:a.SVG=ft(a,a.document),function(){function r(n){return Array.isArray(n)&&(n=new SVG.Array(n)),n.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function e(n){if(!Array.isArray(n))return n;for(var t=0,r=n.length,i=[];t<r;t++)i.push(n[t]);return i.join(" ")}function t(){var i=function(){},n,t;for(n in"function"==typeof arguments[arguments.length-1]&&(i=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(t in arguments[n])i(arguments[n][t],t,arguments[n])}var n;SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"Backgroun
40dImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(n,t){return this.add(n,t),!n.attr("in")&&this.autoSetIn&&n.attr("in",this.source),n.attr("result")||n.attr("result",n),n},blend:function(n,t,i){return this.put(new SVG.BlendEffect(n,t,i))},colorMatrix:function(n,t){return this.put(new SVG.ColorMatrixEffect(n,t))},convolveMatrix:function(n){return this.put(new SVG.ConvolveMatrixEffect(n))},componentTransfer:function(n){return this.put(new SVG.ComponentTransferEffect(n))},composite:function(n,t,i){return this.put(new SVG.CompositeEffect(n,t,i))},flood:function(n,t){return this.put(new SVG.FloodEffect(n,t))},offset:function(n,t){return this.put(new SVG.OffsetEffect(n,t))},image:function(n){return this.put(new SVG.ImageEffect(n))},merge:function(){var n=[void 0];for(var t in arguments)n.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,n)))},gaussianBlur:function(n,t){return this.put(new SVG.GaussianBlurEffect(n,t))},morphology:function(n,t){return this.put(new SVG.MorphologyEffect(n,t))},diffuseLighting:function(n,t,i){return this.put(new SVG.DiffuseLightingEffect(n,t,i))},displacementMap:function(n,t,i,r,u){return this.put(new SVG.DisplacementMapEffect(n,t,i,r,u))},specularLighting:function(n,t,i,r){return this.put(new SVG.SpecularLightingEffect(n,t,i,r))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(n,t,i,r,u){return this.put(new SVG.TurbulenceEffect(n,t,i,r,u))},toString:function(){return"url(#"+this.attr("id")+")"}}});SVG.extend(SVG.Defs,{filter:function(n){var t=this.put(new SVG.Filter);return"function"==typeof n&&n.call(t,t),t}});SVG.extend(SVG.Container,{filter:function(n){return this.defs().filter(n)}});SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(n){return this.filterer=n instanceof SVG.Element?n:this.doc().filter(n),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(n){return this.filterer&&!0===n&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}});SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{"in":function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return null==n?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}});SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{"in":function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return null==n?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}});n={blend:function(n,t){return this.parent()&&this.parent().blend(this,n,t)},colorMatrix:function(n,t){return this.parent()&&this.parent().colorMatrix(n,t).in(this)},convolveMatrix:function(n){return this.parent()&&this.parent().convolveMatrix(n).in(this)},componentTransfer:function(n){return this.parent()&&this.parent().componentTransfer(n).in(this)},composite:function(n,t){return this.parent()&&this.parent().composite(this,n,t)},flood:function(n,t){return this.parent()&&this.parent().flood(n,t)},offset:function(n,t){return this.parent()&&this.parent().offset(n,t).in(this)},image:function(n){return this.parent()&&this.parent().image(n)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(n,t){return this.parent()&&this.parent().gaussianBlur(n,t).in(this)},morphology:function(n,t){return this.parent()&&this.parent().morphology(n,t).in(this)},diffuseLighting:function(n,t,i){return this.parent()&&this.parent().diffuseLighting(n,t,i).in(this)},displacementMap:function(n,t,i,r){return this.parent()&&this.parent().displacementMap(this,n,t,i,r)},specularLighting:function(n,t,i,r){return this.parent()&&this.parent().specularLighting(n,t,i,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(n,t,i,r,u){return this.parent()&&this.parent().turbulence(n,t,i,r,u).in(this)}};SVG.extend(SVG.Effect,n);SVG.extend(SVG.ParentEffect,n);SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{"in":function(n){this.attr("in",n)}}});var u={blend:function(n,t,i){this.attr({"in":n,in2:t,mode:i||"normal"})},colorMatrix:function(n,t){"matrix"==n&&(t=r(t));this.attr({type:n,values:void 0===t?null:t})},convolveMatrix:function(n){n=r(n);this.attr({order:Math.sqrt(n.split(" ").length),kernelMatrix:n})},composite:function(n,t,i){this.attr({"in":n,in2:t,operator:i})},flood:function(n,t){this.attr("flood-color",n);null!=t&&this.attr("flood-opacity",t)},offset:function(n,t){this.attr({dx:n,dy:t})},image:function(n){this.attr("href",n,SVG.xlink)},displacementMap:function(n,t,i,r,u){this.attr({"in":n,in2:t,scale:i,xChannelSelector:r,yChannelSelector:u})},gaussianBlur:function(n,t){null!=n||null!=t?this.attr("stdDeviation",e(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(n,t){this.attr({operator:n,radius:t})},tile:function(){},turbulence:function(n,t,i,r,u){this.attr({numOctaves:t,seed:i,stitchTiles:r,baseFrequency:n,type:u})}},f={merge:function(){var t,i,n;if(arguments[0]instanceof SVG.Set)i=this,arguments[0].each(function(){this instanceof SVG.MergeNode?i.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&i.put(new SVG.MergeNode(this))});else for(t=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<t.length;n++)t[n]instanceof SVG.MergeNode?this.put(t[n]):this.put(new SVG.MergeNode(t[n]))},componentTransfer:function(n){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(n){this[n]=new SVG["Func"+n.toUpperCase()]("identity");this.rgb.add(this[n]);this.node.appendChild(this[n].node)}.bind(this)),n)for(var t in n.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(n.rgb)}.bind(this)),delete n.rgb),n)this[t].attr(n[t])},diffuseLighting:function(n,t,i){this.attr({surfaceScale:n,diffuseConstant:t,kernelUnitLength:i})},specularLighting:function(n,t,i,r){this.attr({surfaceScale:n,diffuseConstant:t,specularExponent:i,kernelUnitLength:r})}},i={distantLight:function(n,t){this.attr({azimuth:n,elevation:t})},pointLight:function(n,t,i){this.attr({x:n,y:t,z:i})},spotLight:function(n,t,i,r,u,f){this.attr({x:n,y:t,z:i,pointsAtX:r,pointsAtY:u,pointsAtZ:f})},mergeNode:function(n){this.attr("in",n)}};
40["r","g","b","a"].forEach(function(n){i["Func"+n.toUpperCase()]=function(n){switch(this.attr("type",n),n){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]);this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]);this.attr("exponent",arguments[2]);this.attr("offset",arguments[2])}}});t(u,function(n,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i));n.apply(this,arguments);this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})});t(f,function(n,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i));n.apply(this,arguments);this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})});t(i,function(n,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i));n.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})});SVG.extend(SVG.MergeEffect,{"in":function(n){return n instanceof SVG.MergeNode?this.add(n,0):this.add(new SVG.MergeNode(n),0),this}});SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",n)}});SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function u(r,u,f,e,o,s,h){for(var l=r.slice(u,f||h),a=e.slice(o,s||h),c=0,v={pos:[0,0],start:[0,0]},y={pos:[0,0],start:[0,0]};;){if(l[c]=n.call(v,l[c]),a[c]=n.call(y,a[c]),l[c][0]!=a[c][0]||"M"==l[c][0]||"A"==l[c][0]&&(l[c][4]!=a[c][4]||l[c][5]!=a[c][5])?(Array.prototype.splice.apply(l,[c,1].concat(i.call(v,l[c]))),Array.prototype.splice.apply(a,[c,1].concat(i.call(y,a[c])))):(l[c]=t.call(v,l[c]),a[c]=t.call(y,a[c])),++c==l.length&&c==a.length)break;c==l.length&&l.push(["C",v.pos[0],v.pos[1],v.pos[0],v.pos[1],v.pos[0],v.pos[1]]);c==a.length&&a.push(["C",y.pos[0],y.pos[1],y.pos[0],y.pos[1],y.pos[0],y.pos[1]])}return{start:l,dest:a}}function n(n){switch(n[0]){case"z":case"Z":n[0]="L";n[1]=this.start[0];n[2]=this.start[1];break;case"H":n[0]="L";n[2]=this.pos[1];break;case"V":n[0]="L";n[2]=n[1];n[1]=this.pos[0];break;case"T":n[0]="Q";n[3]=n[1];n[4]=n[2];n[1]=this.reflection[1];n[2]=this.reflection[0];break;case"S":n[0]="C";n[6]=n[4];n[5]=n[3];n[4]=n[2];n[3]=n[1];n[2]=this.reflection[1];n[1]=this.reflection[0]}return n}function t(n){var t=n.length;return this.pos=[n[t-2],n[t-1]],-1!="SCQT".indexOf(n[0])&&(this.reflection=[2*this.pos[0]-n[t-4],2*this.pos[1]-n[t-3]]),n}function i(n){var t=[n];switch(n[0]){case"M":return this.pos=this.start=[n[1],n[2]],t;case"L":n[5]=n[3]=n[1];n[6]=n[4]=n[2];n[1]=this.pos[0];n[2]=this.pos[1];break;case"Q":n[6]=n[4];n[5]=n[3];n[4]=n[4]/3+2*n[2]/3;n[3]=n[3]/3+2*n[1]/3;n[2]=this.pos[1]/3+2*n[2]/3;n[1]=this.pos[0]/3+2*n[1]/3;break;case"A":n=(t=function(n,t){var w,d,h,o,ft,g,nt,c,l,a,v,s,et,ot,b,i,tt,it,rt,e,r,ut,lt,at,vt,yt,y=Math.abs(t[1]),p=Math.abs(t[2]),k=t[3]%360,wt=t[4],st=t[5],ht=t[6],ct=t[7],f=new SVG.Point(n),u=new SVG.Point(ht,ct),pt=[];if(0===y||0===p||f.x===u.x&&f.y===u.y)return[["C",f.x,f.y,u.x,u.y,u.x,u.y]];for(w=new SVG.Point((f.x-u.x)/2,(f.y-u.y)/2).transform((new SVG.Matrix).rotate(k)),(d=w.x*w.x/(y*y)+w.y*w.y/(p*p))>1&&(y*=d=Math.sqrt(d),p*=d),h=(new SVG.Matrix).rotate(k).scale(1/y,1/p).rotate(-k),f=f.transform(h),u=u.transform(h),o=[u.x-f.x,u.y-f.y],g=o[0]*o[0]+o[1]*o[1],ft=Math.sqrt(g),o[0]/=ft,o[1]/=ft,nt=g<4?Math.sqrt(1-g/4):0,wt===st&&(nt*=-1),c=new SVG.Point((u.x+f.x)/2+nt*-o[1],(u.y+f.y)/2+nt*o[0]),l=new SVG.Point(f.x-c.x,f.y-c.y),a=new SVG.Point(u.x-c.x,u.y-c.y),v=Math.acos(l.x/Math.sqrt(l.x*l.x+l.y*l.y)),l.y<0&&(v*=-1),s=Math.acos(a.x/Math.sqrt(a.x*a.x+a.y*a.y)),a.y<0&&(s*=-1),st&&v>s&&(s+=2*Math.PI),!st&&v<s&&(s-=2*Math.PI),ot=Math.ceil(2*Math.abs(v-s)/Math.PI),i=[],tt=v,et=(s-v)/ot,b=4*Math.tan(et/4)/3,r=0;r<=ot;r++)rt=Math.cos(tt),it=Math.sin(tt),e=new SVG.Point(c.x+rt,c.y+it),i[r]=[new SVG.Point(e.x+b*it,e.y-b*rt),e,new SVG.Point(e.x-b*it,e.y+b*rt)],tt+=et;for(i[0][0]=i[0][1].clone(),i[i.length-1][2]=i[i.length-1][1].clone(),h=(new SVG.Matrix).rotate(k).scale(y,p).rotate(-k),r=0,ut=i.length;r<ut;r++)i[r][0]=i[r][0].transform(h),i[r][1]=i[r][1].transform(h),i[r][2]=i[r][2].transform(h);for(r=1,ut=i.length;r<ut;
40r++)lt=(e=i[r-1][2]).x,at=e.y,vt=(e=i[r][0]).x,yt=e.y,ht=(e=i[r][1]).x,ct=e.y,pt.push(["C",lt,at,vt,yt,ht,ct]);return pt}(this.pos,n))[0]}return n[0]="C",this.pos=[n[5],n[6]],this.reflection=[2*n[5]-n[3],2*n[6]-n[4]],t}function r(n,t){if(!1===t)return!1;for(var i=t,r=n.length;i<r;++i)if("M"==n[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(n){for(var t,s,i=this.value,f=this.parse(n),e=0,o=0,h=!1,c=!1;!1!==e||!1!==o;)h=r(i,!1!==e&&e+1),c=r(f,!1!==o&&o+1),!1===e&&(e=0==(t=new SVG.PathArray(s.start).bbox()).height||0==t.width?i.push(i[0])-1:i.push(["M",t.x+t.width/2,t.y+t.height/2])-1),!1===o&&(o=0==(t=new SVG.PathArray(s.dest).bbox()).height||0==t.width?f.push(f[0])-1:f.push(["M",t.x+t.width/2,t.y+t.height/2])-1),s=u(i,e,h,f,o,c),i=i.slice(0,e).concat(s.start,!1===h?[]:i.slice(h)),f=f.slice(0,o).concat(s.dest,!1===c?[]:f.slice(c)),e=!1!==h&&e+s.start.length,o=!1!==c&&o+s.dest.length;return this.value=i,this.destination=new SVG.PathArray,this.destination.value=f,this}})}(),function(){function n(n){n.remember("_draggable",this);this.el=n}n.prototype.init=function(n,t){var i=this;this.constraint=n;this.value=t;this.el.on("mousedown.drag",function(n){i.start(n)});this.el.on("touchstart.drag",function(n){i.start(n)})};n.prototype.transformPoint=function(n,t){var i=(n=n||window.event).changedTouches&&n.changedTouches[0]||n;return this.p.x=i.clientX-(t||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)};n.prototype.getBBox=function(){var n=this.el.bbox();return this.el instanceof SVG.Nested&&(n=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(n.x=this.el.x(),n.y=this.el.y()),n};n.prototype.start=function(n){var t,i,r;if(("click"!=n.type&&"mousedown"!=n.type&&"mousemove"!=n.type||1==(n.which||n.buttons))&&(t=this,this.el.fire("beforedrag",{event:n,handler:this}),!this.el.event().defaultPrevented)){if(n.preventDefault(),n.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse(),r=this.getBBox(),this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(n,i),box:r,transform:this.el.transform()};SVG.on(window,"mousemove.drag",function(n){t.drag(n)});SVG.on(window,"touchmove.drag",function(n){t.drag(n)});SVG.on(window,"mouseup.drag",function(n){t.end(n)});SVG.on(window,"touchend.drag",function(n){t.end(n)});this.el.fire("dragstart",{event:n,p:this.startPoints.point,m:this.m,handler:this})}};n.prototype.drag=function(n){var s=this.getBBox(),f=this.transformPoint(n),r=this.startPoints.box.x+f.x-this.startPoints.point.x,u=this.startPoints.box.y+f.y-this.startPoints.point.y,t=this.constraint,e=f.x-this.startPoints.point.x,o=f.y-this.startPoints.point.y,i;return(this.el.fire("dragmove",{event:n,p:f,m:this.m,handler:this}),this.el.event().defaultPrevented)?f:("function"==typeof t?(i=t.call(this.el,r,u,this.m),"boolean"==typeof i&&(i={x:i,y:i}),!0===i.x?this.el.x(r):!1!==i.x&&this.el.x(i.x),!0===i.y?this.el.y(u):!1!==i.y&&this.el.y(i.y)):"object"==typeof t&&(null!=t.minX&&r<t.minX?e=(r=t.minX)-this.startPoints.box.x:null!=t.maxX&&r>t.maxX-s.width&&(e=(r=t.maxX-s.width)-this.startPoints.box.x),null!=t.minY&&u<t.minY?o=(u=t.minY)-this.startPoints.box.y:null!=t.maxY&&u>t.maxY-s.height&&(o=(u=t.maxY-s.height)-this.startPoints.box.y),null!=t.snapToGrid&&(r-=r%t.snapToGrid,u-=u%t.snapToGrid,e-=e%t.snapToGrid,o-=o%t.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:e,y:o},!0):this.el.move(r,u)),f)};n.prototype.end=function(n){var t=this.drag(n);this.el.fire("dragend",{event:n,p:t,m:this.m,handler:this});SVG.off(window,"mousemove.drag");SVG.off(window,"touchmove.drag");SVG.off(window,"mouseup.drag");SVG.off(window,"touchend.drag")};SVG.extend(SVG.Element,{draggable:function(t,i){"function"!=typeof t&&"object"!=typeof t||(i=t,t=!0);var r=this.remember("_draggable")||new n(this);return(t=void 0===t||t)?r.init(i||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function n(n){this.el=n;n.remember("_selectHandler",this);this.pointSelection={isSelected:!1};this.rectSelection={isSelected:!1};this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]};this.pointCoord=function(n,t,i){var r="string"!=typeof n?n:t[n];return i?r/2:r};this.pointCoords=function(n,t){var i=this.pointsList[n];return{x:this.pointCoord(i[0],t,"t"===n||"b"===n),y:this.pointCoord(i[1],t,"r"===n||"l"===n)}}}n.prototype.init=function(n,t){var e=this.el.bbox(),f,u,i,r;this.options={};f=this.el.selectize.defaults.points;for(i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);u=["points","pointsExclude"];for(i in u)r=this.options[u[i]],"string"==typeof r?r=r.length>0?r.split(/\s*,\s*/i):[]:"boolean"==typeof r&&"points"===u[i]&&(r=r?f:[]),this.options[u[i]]=r;this.options.points=[f,this.options.points].reduce(function(n,t){return n.filter(function(n){return t.indexOf(n)>-1})});this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(n,t){return n.filter(function(n){return t.indexOf(n)<0})});this.parent=this.el.parent();this.nested=this.nested||this.parent.group();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y));this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(n):this.selectRect(n);this.observe();this.cleanup()};n.prototype.selectPoints=function(n){return this.pointSelection.isSelected=n,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this};n.prototype.getPointArray=function(){var n=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-n.x,t[1]-n.y]})};n.prototype.drawPoints=function(){for(var i,r,u=this,t=this.getPointArray(),n=0,f=t.length;n<f;++n)i=function(n){return function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;t.stopPropagation();var i=t.pageX||t.touches[0].pageX,r=t.pageY||t.touches[0].pageY;u.el.fire("point",{x:i,y:r,i:n,event:t})}}(n),r=this.drawPoint(t[n][0],t[n][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",i).on("mousedown",i),this.pointSelection.set.add(r)};n.prototype.drawPoint=function(n,t){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(n,t);
40case"rect":return this.drawRect(n,t);default:if("function"==typeof i)return i.call(this,n,t);throw new Error("Unknown "+i+" point type!");}};n.prototype.drawCircle=function(n,t){return this.nested.circle(this.options.pointSize).center(n,t)};n.prototype.drawRect=function(n,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(n,t)};n.prototype.updatePointSelection=function(){var n=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===n[t][0]&&this.cy()===n[t][1]||this.center(n[t][0],n[t][1])})};n.prototype.updateRectSelection=function(){var t=this,n=this.el.bbox(),i;(this.rectSelection.set.get(0).attr({width:n.width,height:n.height}),this.options.points.length&&this.options.points.map(function(i,r){var u=t.pointCoords(i,n);t.rectSelection.set.get(r+1).center(u.x,u.y)}),this.options.rotationPoint)&&(i=this.rectSelection.set.length(),this.rectSelection.set.get(i-1).center(n.width/2,20))};n.prototype.selectRect=function(n){function u(n){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1;i.stopPropagation();var r=i.pageX||i.touches[0].pageX,u=i.pageY||i.touches[0].pageY;t.el.fire(n,{x:r,y:u,event:i})}}var t=this,i=this.el.bbox(),r,f;(this.rectSelection.isSelected=n,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2)&&(this.options.points.map(function(n){var r=t.pointCoords(n,i),f=t.drawPoint(r.x,r.y).attr("class",t.options.classPoints+"_"+n).on("mousedown",u(n)).on("touchstart",u(n));t.rectSelection.set.add(f)}),this.rectSelection.set.each(function(){this.addClass(t.options.classPoints)}));!this.options.rotationPoint||(!this.options.points||this.rectSelection.set.get(9))&&(this.options.points||this.rectSelection.set.get(1))||(r=function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1;n.stopPropagation();var i=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;t.el.fire("rot",{x:i,y:r,event:n})},f=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r),this.rectSelection.set.add(f))};n.prototype.handler=function(){var n=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y));this.rectSelection.isSelected&&this.updateRectSelection();this.pointSelection.isSelected&&this.updatePointSelection()};n.prototype.observe=function(){var n=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){n.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect();delete this.observerInst}catch(n){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){n.handler()})};n.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set);!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set);this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)};SVG.extend(SVG.Element,{selectize:function(t,i){return"object"==typeof t&&(i=t,t=!0),(this.remember("_selectHandler")||new n(this)).init(void 0===t||t,i||{}),this}});SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function n(n){n.remember("_resizeHandler",this);this.el=n;this.parameters={};this.lastUpdateCall=null;this.p=n.doc().node.createSVGPoint()}n.prototype.transformPoint=function(n,t,i){return this.p.x=n-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)};n.prototype._extractPosition=function(n){return{x:null!=n.clientX?n.clientX:n.touches[0].clientX,y:null!=n.clientY?n.clientY:n.touches[0].clientY}};n.prototype.init=function(n){var t=this,i;if(this.stop(),"stop"!==n){for(i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==n[i]&&(this.options[i]=n[i]);this.el.on("lt.resize",function(n){t.resize(n||window.event)});this.el.on("rt.resize",function(n){t.resize(n||window.event)});this.el.on("rb.resize",function(n){t.resize(n||window.event)});this.el.on("lb.resize",function(n){t.resize(n||window.event)});this.el.on("t.resize",function(n){t.resize(n||window.event)});this.el.on("r.resize",function(n){t.resize(n||window.event)});this.el.on("b.resize",function(n){t.resize(n||window.event)});this.el.on("l.resize",function(n){t.resize(n||window.event)});this.el.on("rot.resize",function(n){t.resize(n||window.event)});this.el.on("point.resize",function(n){t.resize(n||window.event)});this.update()}};n.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this};n.prototype.resize=function(n){var t=this,i,r;this.m=this.el.node.getScreenCTM().inverse();this.offset={x:window.pageXOffset,y:window.pageYOffset};i=this._extractPosition(n.detail.event);(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:n.detail.x,y:n.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==n.detail.i)&&(r=this.el.array().valueOf(),this.parameters.i=n.detail.i,this.parameters.pointCoords=[r[n.detail.i][0],r[n.detail.i][1]]);switch(n.type){case"lt":this.calc=function(n,t){var i=this.snapToGri
40d(n,t);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i);this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(n,t){var i=this.snapToGrid(n,t,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0);this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(n,t){var i=this.snapToGrid(n,t,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i);this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(n,t){var i=this.snapToGrid(n,t,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0);this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(n,t){var i=this.snapToGrid(n,t,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(n,t){var i=this.snapToGrid(n,t,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(n,t){var i=this.snapToGrid(n,t,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(n,t){var i=this.snapToGrid(n,t,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(n,t){var r=n+this.parameters.p.x,u=t+this.parameters.p.y,f=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),e=Math.atan2(u-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),i=this.parameters.rotation+180*(e-f)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(i-i%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(n,t){var r=this.snapToGrid(n,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),i=this.el.array().valueOf();i[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0];i[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1];this.el.plot(i)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:n});SVG.on(window,"touchmove.resize",function(n){t.update(n||window.event)});SVG.on(window,"touchend.resize",function(){t.done()});SVG.on(window,"mousemove.resize",function(n){t.update(n||window.event)});SVG.on(window,"mouseup.resize",function(){t.done()})};n.prototype.update=function(n){if(n){var r=this._extractPosition(n),u=this.transformPoint(r.x,r.y),t=u.x-this.parameters.p.x,i=u.y-this.parameters.p.y;this.lastUpdateCall=[t,i];this.calc(t,i);this.el.fire("resizing",{dx:t,dy:i,event:n})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])};n.prototype.done=function(){this.lastUpdateCall=null;SVG.off(window,"mousemove.resize");SVG.off(window,"mouseup.resize");SVG.off(window,"touchmove.resize");SVG.off(window,"touchend.resize");this.el.fire("resizedone")};
40n.prototype.snapToGrid=function(n,t,i,r){var u;return void 0!==r?u=[(i+n)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(i=null==i?3:i,u=[(this.parameters.box.x+n+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),n<0&&(u[0]-=this.options.snapToGrid),t<0&&(u[1]-=this.options.snapToGrid),n-=Math.abs(u[0])<this.options.snapToGrid/2?u[0]:u[0]-(n<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(u[1])<this.options.snapToGrid/2?u[1]:u[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(n,t,i,r)};n.prototype.constraintToBox=function(n,t,i,r){var f,e,u=this.options.constraint||{};return void 0!==r?(f=i,e=r):(f=this.parameters.box.x+(1&i?0:this.parameters.box.width),e=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==u.minX&&f+n<u.minX&&(n=u.minX-f),void 0!==u.maxX&&f+n>u.maxX&&(n=u.maxX-f),void 0!==u.minY&&e+t<u.minY&&(t=u.minY-e),void 0!==u.maxY&&e+t>u.maxY&&(t=u.maxY-e),[n,t]};n.prototype.checkAspectRatio=function(n,t){if(!this.options.saveAspectRatio)return n;var i=n.slice(),r=this.parameters.box.width/this.parameters.box.height,u=this.parameters.box.width+n[0],f=this.parameters.box.height-n[1],e=u/f;return e<r?(i[1]=u/r-this.parameters.box.height,t&&(i[1]=-i[1])):e>r&&(i[0]=this.parameters.box.width-f*r,t&&(i[0]=-i[0])),i};SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new n(this)).init(t||{}),this}});SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),!function(n,t){var u,r,i;void 0===t&&(t={});u=t.insertAt;n&&"undefined"!=typeof document&&(r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style"),i.type="text/css","top"===u&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)))}('.apexcharts-canvas {\n  position: relative;\n  user-select: none;\n  /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, .5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n  position: relative;\n}\n\n.apexcharts-text tspan {\n  font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n  transition: 0.15s ease all;\n  opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0;\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #ECEFF1;\n  border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, 0.7);\n  border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  font-weight: 600;\n  margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\
40n  display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n  font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n  display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px;\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0px;\n  margin-right: 10px;\n  border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n  padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0;\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: bold;\n  display: block;\n  margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n  opacity: 0;\n  padding: 9px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n  top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  padding: 4px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n  left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n  right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none;\n}
40\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0;\n}\n\n.apexcharts-selection-rect {\n  cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible;\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6E8192;\n  text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n  fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n  fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n  fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n  fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n  position: relative;\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n  transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n  transform: scale(0.62);\n  position: relative;\n  left: 1px;\n  top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6E8192;\n  stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333;\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0px 6px 2px 6px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: 0.15s ease all;\n  pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, 0.7);\n  color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1;\n  }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n  cursor: default;\n  pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: 0.3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n  opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n  pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n  transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden;\n}\n\n.resize-triggers>div {\n  background: #eee;\n  overflow: auto;\n}\n\n.contract-trigger:before {\n  width: 200%;\n  height: 200%;\n}'),function(){function t(n){var u=n.__resizeTriggers__,t=u.firstElementChild,i=u.lastElementChild,r=t?t.firstElementChild:null;i&&(i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight);r&&(r.style.width=t.offsetWidth+1+"px",r.style.height=t.offsetHeight+1+"px");t&&(t.scrollLeft=t.scrollWidth,t.scrollTop=t.scrollHeight)}function r(n){var i=this;t(this);this.__resizeRAF__&&c(this.__resizeRAF__);this.__resizeRAF__=h(function(){(function(n){return n.offsetWidth!=n.__resizeLast__.width||n.offsetHeight!=n.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach(function(t){t.call(n)}))})}var u,f,h=(u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(n){return window.setTimeout(n,20)},function(n){return u(n)}),c=(f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(n){return f(n)}),e=!1,i="animationstart",o="Webkit Moz O ms".split(" "),l="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),s=document.createElement("fakeelement"),n;if(void 0!==s.style.animationName&&(e=!0),!1===e)for(n=0;n<o.length;n++)if(void 0!==s.style[o[n]+"AnimationName"]){i=l[n];break}window.addResizeListener=function(n,u){n.__resizeTriggers__||("static"==getComputedStyle(n).position&&(n.style.position="relative"),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div><\/div><\/div><div class="contract-trigger"><\/div>',n.appendChild(n.__resizeTriggers__),t(n),n.addEventListener("scroll",r,!0),i&&n.__resizeTriggers__.addEventListener(i,function(i){"resizeanim"==i.animationName&&t(n)}));n.__resizeListeners__.push(u)};window.removeResizeListener=function(n,t){n&&(n.__resizeListeners__.splice(n.__resizeListeners__.indexOf(t),1),n.__resizeListeners__.length||(n.removeEventListener("scroll",r),n.__resizeTriggers__.parentNode&&(n.__resizeTriggers__=!n.removeChild(n.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={}),bt=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"];this.ctx.eventList=["click","mousedown","mousemove","touchstart","touchmove","mouseup","touchend"];this.ctx.animations=new p(this.ctx);this.ctx.axes=new ur(this.ctx);this.ctx.core=new fu(this.ctx.el,this.ctx);this.ctx.config=new rt({});this.ctx.data=new ui(this.ctx);this.ctx.grid=new fi(this.ctx);this.ctx.graphics=new t(this.ctx);this.ctx.coreUtils=new f(this.ctx);this.ctx.crosshairs=new yt(this.ctx);this.ctx.events=new ir(this.ctx);this.ctx.exports=new lt(this.ctx);this.ctx.localization=new rr(this.ctx);this.ctx.options=new v;this.ctx.responsive=new fr(this.ctx);this.ctx.series=new h(this.ctx);this.ctx.theme=new er(this.ctx);this.ctx.formatters=new et(this.ctx);this.ctx.titleSubtitle=new or(this.ctx);this.ctx.legend=new ei(this.ctx);
40this.ctx.toolbar=new oi(this.ctx);this.ctx.dimensions=new ot(this.ctx);this.ctx.updateHelpers=new eu(this.ctx);this.ctx.zoomPanSelection=new vr(this.ctx);this.ctx.w.globals.tooltip=new kr(this.ctx)}}]),n}(),kt=function(){function n(t){i(this,n);this.ctx=t;this.w=t.w}return r(n,[{key:"clear",value:function(n){var t=n.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy();this.ctx.toolbar&&this.ctx.toolbar.destroy();this.ctx.animations=null;this.ctx.axes=null;this.ctx.annotations=null;this.ctx.core=null;this.ctx.data=null;this.ctx.grid=null;this.ctx.series=null;this.ctx.responsive=null;this.ctx.theme=null;this.ctx.formatters=null;this.ctx.titleSubtitle=null;this.ctx.legend=null;this.ctx.dimensions=null;this.ctx.options=null;this.ctx.crosshairs=null;this.ctx.zoomPanSelection=null;this.ctx.updateHelpers=null;this.ctx.toolbar=null;this.ctx.localization=null;this.ctx.w.globals.tooltip=null;this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(n){n.each(function(){this.removeClass("*");this.off();this.stop()},!0);n.ungroup();n.clear()}},{key:"clearDomElements",value:function(n){var u=this,f=n.isUpdating,i=this.w.globals.dom.Paper.node,r,t;if(i.parentNode&&i.parentNode.parentNode&&!f&&(i.parentNode.parentNode.style.minHeight="unset"),r=this.w.globals.dom.baseEl,r&&this.ctx.eventList.forEach(function(n){r.removeEventListener(n,u.ctx.events.documentEvent)}),t=this.w.globals.dom,null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper);t.Paper.remove();t.elWrap=null;t.elGraphical=null;t.elAnnotations=null;t.elLegendWrap=null;t.baseEl=null;t.elGridRect=null;t.elGridRectMask=null;t.elGridRectMarkerMask=null;t.elDefs=null}}]),n}(),function(){function t(r,u){i(this,t);this.opts=u;this.ctx=this;this.w=new tr(u).init();this.el=r;this.w.globals.cuid=n.randomId();this.w.globals.chartID=this.w.config.chart.id?n.escapeString(this.w.config.chart.id):this.w.globals.cuid;new bt(this).initModules();this.create=n.bind(this.create,this);this.windowResizeHandler=this._windowResizeHandler.bind(this);this.parentResizeHandler=this._parentResizeCallback.bind(this)}return r(t,[{key:"render",value:function(){var n=this;return new Promise(function(t,i){var u,r;if(null!==n.el){if(void 0===Apex._chartInstances&&(Apex._chartInstances=[]),n.w.config.chart.id&&Apex._chartInstances.push({id:n.w.globals.chartID,group:n.w.config.chart.group,chart:n}),n.setLocale(n.w.config.chart.defaultLocale),u=n.w.config.chart.events.beforeMount,"function"==typeof u&&u(n,n.w),n.events.fireEvent("beforeMount",[n,n.w]),window.addEventListener("resize",n.windowResizeHandler),window.addResizeListener(n.el.parentNode,n.parentResizeHandler),r=n.create(n.w.config.series,{}),!r)return t(n);n.mount(r).then(function(){"function"==typeof n.w.config.chart.events.mounted&&n.w.config.chart.events.mounted(n,n.w);n.events.fireEvent("mounted",[n,n.w]);t(r)}).catch(function(n){i(n)})}else i(new Error("Element not found"))})}},{key:"create",value:function(n,t){var i=this.w,r,u,s,e,h,o,c;return(new bt(this).initModules(),r=this.w.globals,(r.noData=!1,r.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric)&&new it(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)?(r.animationEnded=!0,null):(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===r.svgWidth)?(r.animationEnded=!0,null):(u=f.checkComboSeries(n),r.comboCharts=u.comboCharts,r.comboBarCount=u.comboBarCount,s=n.every(function(n){return n.data&&0===n.data.length}),(0===n.length||s)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(n),this.theme.init(),new tt(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords(),e=this.core.xySettings(),this.grid.createGridMask(),h=this.core.plotChartType(n,e),o=new w(this),o.bringForward(),i.config.dataLabels.background.enabled&&o.dataLabelsBackgroun
40d(),this.core.shiftGraphPosition(),c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}},{elGraph:h,xyRatios:e,elInner:i.globals.dom.elGraphical,dimensions:c})}},{key:"mount",value:function(){var r=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,n=t.w;return new Promise(function(u,f){var e,h,s,o,c;if(null===t.el)return f(new Error("Not enough data to display or target element not found"));if((null===i||n.globals.allSeriesCollapsed)&&t.series.handleNoData(),"treemap"!==n.config.chart.type&&t.axes.drawAxis(n.config.chart.type,i.xyRatios),t.grid=new fi(t),e=t.grid.drawGrid(),t.annotations=new di(t),t.annotations.drawImageAnnos(),t.annotations.drawTextAnnos(),"back"===n.config.grid.position&&e&&n.globals.dom.elGraphical.add(e.el),h=new ut(r.ctx),s=new vt(r.ctx),null!==e&&(h.xAxisLabelCorrections(e.xAxisTickWidth),s.setYAxisTextAlignments(),n.config.yaxis.map(function(t,i){-1===n.globals.ignoreYAxisIndexes.indexOf(i)&&s.yAxisTitleRotate(i,t.opposite)})),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),t.annotations.drawAxesAnnotations()),Array.isArray(i.elGraph))for(o=0;o<i.elGraph.length;o++)n.globals.dom.elGraphical.add(i.elGraph[o]);else n.globals.dom.elGraphical.add(i.elGraph);("front"===n.config.grid.position&&e&&n.globals.dom.elGraphical.add(e.el),"front"===n.config.xaxis.crosshairs.position&&t.crosshairs.drawXCrosshairs(),"front"===n.config.yaxis[0].crosshairs.position&&t.crosshairs.drawYCrosshairs(),"front"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),t.annotations.drawAxesAnnotations()),n.globals.noData)||((n.config.tooltip.enabled&&!n.globals.noData&&t.w.globals.tooltip.drawTooltip(i.xyRatios),n.globals.axisCharts&&(n.globals.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.globals.isTimelineBar))?(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&t.zoomPanSelection.init({xyRatios:i.xyRatios}):(c=n.config.chart.toolbar.tools,["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(n){c[n]=!1})),n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&t.toolbar.createToolbar());n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach(function(n){n.method(n.params,!1,n.context)});n.globals.axisCharts||n.globals.noData||t.core.resizeNonAxisCharts();u(t)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler);window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach(function(i,r){i.id===n.escapeString(t)&&Apex._chartInstances.splice(r,1)});new kt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(n){var i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],f=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],t=this.w;return t.globals.selection=void 0,n.series&&(this.series.resetSeries(!1,!0,!1),n.series.length&&n.series[0].data&&(n.series=n.series.map(function(n,t){return i.updateHelpers._extendSeries(n,t)})),this.updateHelpers.revertDefaultAxisMinMax()),n.xaxis&&(n=this.updateHelpers.forceXAxisUpdate(n)),n.yaxis&&(n=this.updateHelpers.forceYAxisUpdate(n)),t.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),n.theme&&(n=this.theme.updateThemeOptions(n)),this.updateHelpers._updateOptions(n,r,u,f,e)}},{key:"updateSeries",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,t,i)}},{key:"appendSeries",value:function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],t=this.w.config.series.slice();return t.push(n),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,i,r)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,u,i,f;for(r.w.globals.dataChanged=!0,r.series.getPreviousPaths(),u=r.w.config.series.slice(),i=0;i<u.length;i++)if(null!==t[i]&&void 0!==t[i])for(f=0;f<t[i].data.length;f++)u[i].data.push(t[i].data[f]);return r.w.config.series=u,e&&(r.w.globals.initialSeries=n.clone(r.w.config.series)),this.update()}},{key:"update",value:function(n){var t=this;return new Promise(function(i,r){new kt(t.ctx).clear({isUpdating:!0});var u=t.create(t.w.config.series,n);if(!u)return i(t);t.mount(u).then(function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w);t.events.fireEvent("updated",[t,t.w]);t.w.globals.isDirty=!0;i(t)}
40).catch(function(n){r(n)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),n=[this];return t.length&&(n=[],t.forEach(function(t){n.push(t)})),n}},{key:"getGroupedCharts",value:function(){var n=this;return Apex._chartInstances.filter(function(n){if(n.group)return!0}).map(function(t){return n.w.config.chart.group===t.group?t.chart:n})}},{key:"toggleSeries",value:function(n){return this.series.toggleSeries(n)}},{key:"showSeries",value:function(n){this.series.showSeries(n)}},{key:"hideSeries",value:function(n){this.series.hideSeries(n)}},{key:"resetSeries",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(n,t)}},{key:"addEventListener",value:function(n,t){this.events.addEventListener(n,t)}},{key:"removeEventListener",value:function(n,t){this.events.removeEventListener(n,t)}},{key:"addXaxisAnnotation",value:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,t=this;i&&(t=i);t.annotations.addXaxisAnnotationExternal(n,r,t)}},{key:"addYaxisAnnotation",value:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,t=this;i&&(t=i);t.annotations.addYaxisAnnotationExternal(n,r,t)}},{key:"addPointAnnotation",value:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,t=this;i&&(t=i);t.annotations.addPointAnnotationExternal(n,r,t)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this;t&&(n=t);n.annotations.clearAnnotations(n)}},{key:"removeAnnotation",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=this;i&&(t=i);t.annotations.removeAnnotation(t,n)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(n,t){return this.coreUtils.getSeriesTotalsXRange(n,t)}},{key:"getHighestValueInSeries",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new at(this.ctx);return t.getMinYMaxY(n).highestY}},{key:"getLowestValueInSeries",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new at(this.ctx);return t.getMinYMaxY(n).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(n,t){return this.updateHelpers.toggleDataPointSelection(n,t)}},{key:"zoomX",value:function(n,t){this.ctx.toolbar.zoomUpdateOptions(n,t)}},{key:"setLocale",value:function(n){this.localization.setCurrentLocaleValues(n)}},{key:"dataURI",value:function(n){return new lt(this.ctx).dataURI(n)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var n=this;clearTimeout(this.w.globals.resizeTimer);this.w.globals.resizeTimer=window.setTimeout(function(){n.w.globals.resized=!0;n.w.globals.dataChanged=!1;n.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var n=this.w.config.chart.redrawOnWindowResize;"function"==typeof n&&(n=n());n&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var r=n.escapeString(t),i=Apex._chartInstances.filter(function(n){return n.id===r})[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var i=document.querySelectorAll("[data-apexcharts]"),n=0;n<i.length;n++)new t(i[n],JSON.parse(i[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(n,t){var i=this.getChartByID(n),u;if(i){if(i.w.globals.isExecCalled=!0,u=null,-1!==i.publicMethods.indexOf(t)){for(var f=arguments.length,e=new Array(f>2?f-2:0),r=2;r<f;r++)e[r-2]=arguments[r];u=i[t].apply(i,e)}return u}}},{key:"merge",value:function(t,i){return n.extend(t,i)}}]),t}()});jQuery(function(){setTimeout(function(){fnAppendId()},10)});jQuery(document).ready(function(){jQuery(".FD-popup").click(function(n){n.preventDefault();jQuery("body").addClass("fd-popup-open");jQuery(".fd-popup-div .fd-stage2, .fd-popup-div .fd-stage3, .fd-popup-div .fd-stage4").hide();jQuery(".fd-popup-div .fd-stage1").show();jQuery(".fd-popup-div").show()});jQuery(document).on("click",".fd-popup-div .fd-stage1 .fd-yes-btn-a",function(){jQuery(".fd-popup-div .fd-stage1").hide();jQuery(".fd-popup-div .fd-stage3").hide();jQuery(".fd-popup-div .fd-stage4").hide();jQuery(".fd-popup-div .fd-stage2").show()});jQuery(document).on("click",".fd-popup-div .fd-stage1 .fd-no-btn-a",function(){jQuery(".fd-popup-div .fd-stage1").hide();jQuery(".fd-popup-div .fd-stage2").hide();jQuery(".fd-popup-div .fd-stage4").hide();jQuery(".fd-popup-div .fd-stage3").show()});jQuery(document).on("click",".fd-popup-div .fd-stage3 .fd-yes-btn-a",function(){jQuery(".fd-popup-div .fd-stage1").hide();jQuery(".fd-popup-div .fd-stage3").hide();jQuery(".fd-popup-div .fd-stage4").show();jQuery(".fd-popup-div .fd-stage2").hide();jQuery("body").addClass("fd-popup-open")});jQuery(document).on("click",".fd-popup-div .fd-stage3 .fd-no-btn-a",function(){window.location.href="https://bobcrm.bankofbaroda.bank.in/retailliabilities/?_gl=1*1rsabtg*_gcl_au*MTEwMzA2NzgwMS4xNzAxNzU2ODIz*_ga*MTU4NTE1NTMuMTY5MjM0MDE5Nw..*_ga_X233XJ99FK*MTcwNjkzMzkwNS43My4xLjE3MDY5MzYyMzAuNDguMC4w"});if(jQuery(".fd-popup-div .fd-bob-closed-btn").click(function(){jQuery("body").removeClass("fd-popup-open");jQuery(".fd-popup-div").hide();jQuery(".fd-popup-div .fd-stage2, .fd-popup-div .fd-stage3, .fd-popup-div .fd-stage4").hide();jQuery(".fd-popup-div .fd-stage1").show()}),window.location.href.indexOf("/insurance")!==-1)jQuery(".iyes-btn-a").on("click",function(){jQuery(".stage2").not(".stage2option2").hide();jQuery(".stage2.stage2option2").show()});jQuery(".proceed-btn").on("click",function(){location.reload()})});jQuery(document).ready(function(){jQuery(document).on("click",".vcip-popup",function(n){n.preventDefault();glblObjApplyNowElement=jQuery(this);jQuery("body").addClass("vcip-popup-open")});jQuery(document).on("click",".vcip-popup-div .bob-closed-btn",function(){jQuery("body").removeClass("vcip-popup-open")});jQuery(".vcip-popup-div .bob-comman-btn").on("click",function(){jQuery("#radio11").is(":checked")?typeof glblObjApplyNowElement!="undefined"&&(glblObjApplyNowElement.addClass("external-popup"),glblObjApplyNowElement.removeClass("vcip-popup"),jQuery("body").removeClass("vcip-popup-open"),glblObjApplyNowElement.click(),glblObjApplyNowElement.addClass("vcip-popup"),glblObjApplyNowElement.removeClass("external-popup")):window.location.href="https://bobcrm.bankofbaroda.bank.in/retailliabilities/?_gl=1*1rsabtg*_gcl_au*MTEwMzA2NzgwMS4xNzAxNzU2ODIz*_ga*MTU4NTE1NTMuMTY5MjM0MDE5Nw..*_ga_X233XJ99FK*MTcwNjkzMzkwNS43My4xLjE3MDY5MzYyMzAuNDguMC4w"})});jQuery(document).ready(function(){jQuery(document).on("click",".saving-vcip-popup",function(n){n.preventDefault();glblObjApplyNowElement=jQuery(this);jQuery("body").addClass("saving-vcip-popup-open")});jQuery(document).on("click",".saving-vcip-popup-div .bob-closed-btn",function(){jQuery("body").removeClass("saving-vcip-popup-open")});jQuery(".saving-vcip-popup-div .bob-comman-btn").on("click",function(){jQuery("#radio01").is(":checked")?typeof glblObjApplyNowElement!="undefined"&&(glblObjApplyNowElement.addClass("external-popup"),glblObjApplyNowElement.removeClass("saving-vcip-popup"),jQuery("body").removeClass("saving-vcip-popup-open"),glblObjApplyNowElement.click(),glblObjApplyNowElement.addClass("saving-vcip-popup"),glblObjApplyNowElement.removeClass("external-popup")):window.location.href="https://bobcrm.bankofbaroda.bank.in/retailliabilities/?_gl=1*1rsabtg*_gcl_au*MTEwMzA2NzgwMS4xNzAxNzU2ODIz*_ga*MTU4NTE1NTMuMTY5MjM0MDE5Nw..*_ga_X233XJ99FK*MTcwNjkzMzkwNS43My4xLjE3MDY5MzYyMzAuNDguMC4w"})});jQuery(document).on("click",".external-popup",function(n){var i,t;n.preventDefault();i=jQuery(this).attr("href");tempExtPopup=jQuery(this);jQuery("body").addClass("bob-external-popup-open");jQuery(".external-popup-div .yes-btn-a").attr("href",i);t=glblCurrentLanguage;t=t=="en"?"":"/"+glblCurrentLanguage;typeof jQuery(this).parents(".listing-section").data("id")!="undefined"?jQuery(".external-popup-div .no-btn-a").attr("href",t+"/apply-onl
40ine?id="+jQuery(this).parents(".listing-section").data("id")):jQuery(".external-popup-div .no-btn-a").attr("href",t+"/apply-online?id="+glblCurrentPageID)});jQuery(document).on("click",".external-popup-div .bob-closed-btn,.external-popup-div .no-btn-a",function(){jQuery("body").removeClass("bob-external-popup-open")});jQuery(document).on("click",".insurancepopup",function(n){n.preventDefault();var t="",i=jQuery(".insurance-no-anchor").data("url");i&&(t=typeof jQuery(this).closest(".listing-section").data("id")!="undefined"&&jQuery(this).closest(".listing-section").data("id")!=""?jQuery(this).closest(".listing-section").data("id"):glblCurrentPageID);jQuery(".insurance-external-anchor").attr("href",jQuery(this).attr("href"));jQuery(".insurance-no-anchor").attr("href",i+"?id="+t);jQuery("body").addClass("insurancepopup-open");jQuery(".insurance-popup-div .bob-popup-inner-content-div").removeClass("showStage")});jQuery(document).on("click",".bob-closed-btn, .insurance-popup-div .ino-btn-a",function(){jQuery("body").removeClass("insurancepopup-open")});jQuery(document).on("click",".iyes-btn-a",function(){jQuery(".insurance-popup-div .bob-popup-inner-content-div").addClass("showStage")});jQuery(document).on("click",".ino-btn-a",function(){jQuery(".    .bob-popup-inner-content-div").addClass("showStage")});jQuery(document).on("click",".stage2 .insurance-external-anchor",function(){jQuery("body").removeClass("insurancepopup-open")});jQuery(document).on("click",".know-more-popup",function(n){n.preventDefault();var t=jQuery(this),i=t.attr("href"),r=t.parents(".box").find(".field-title").html(),u=t.parents(".box").find("p").html();jQuery("#headingKnowMorePopup").html(r);jQuery("#descKnowMorePopup").html(u);jQuery("body").addClass("know-more-popup-div");jQuery(".know-more-div .yes-btn-a").attr("href",i)});jQuery(document).on("click",".know-more-div .yes-btn-a,.know-more-div .bob-closed-btn",function(){jQuery("body").removeClass("know-more-popup-div")});jQuery(".bob-closed-btn").click(function(){jQuery(".stage2option2").hide()});jQuery(function(){var n=jQuery(".expandable-content"),t=600,i=jQuery(".expandable-content .expandable-anchor").attr("class")+" read-more",r=jQuery(".expandable-content .expandable-anchor").attr("class")+" read-less",u=jQuery(".expandable-content .expandable-anchor").attr("data-read-more-text"),f=jQuery(".expandable-content .expandable-anchor").attr("data-read-less-text");jQuery(".expandable-content .expandable-anchor").remove();n.each(function(){var n=jQuery(this).text();n.length<t||jQuery(this).html("<p>"+n.slice(0,t)+'<span>... <\/span><a href="#" class="'+i+'">'+u+'<\/a><span style="display:none;">'+n.slice(t,n.length)+' <a href="#" class="'+r+'">'+f+"<\/a><\/span><\/p>")});jQuery("a.read-more",n).click(function(n){n.preventDefault();jQuery(this).hide().prev().hide();jQuery(this).next().show()});jQuery("a.read-less",n).click(function(n){n.preventDefault();jQuery(this).parent().hide().prev().show().prev().show()});jQuery(document).ready(function(){glblCurrentLanguage=="hi-in"?(jQuery(".expandable-anchor").attr("data-read-more-text","...अधिक पढ़ें"),jQuery(".expandable-anchor").text("...अधिक पढ़ें")):(jQuery(".expandable-anchor").attr("data-read-more-text","...Read More"),jQuery(".expandable-anchor").text("...Read More"));jQuery(".title-with-optional-links-expandable-content").each(function(){var n=jQuery(this).find(".more-content");n.text().trim().length>0?(n.hide(),jQuery(this).find(".expandable-anchor").show()):jQuery(this).find(".expandable-anchor").hide()});jQuery(".expandable-anchor").on("click",function(){var n=jQuery(this).closest(".title-with-optional-links-expandable-content");n.toggleClass("expanded");n.hasClass("expanded")?(jQuery(this).text(jQuery(this).data("read-less-text")),jQuery(this).parent().find(".more-content").show()):(jQuery(this).text(jQuery(this).data("read-more-text")),jQuery(this).parent().find(".more-content").hide())})})});jQuery(document).ready(function(){var n=jQuery(window).width();fnBobDirectorDetailsPopup();setTimeout(function(){var t;jQuery(".view-profile-popup-content-box").mCustomScrollbar({});n>1025&&(jQuery(".navigation-main-horizontal nav,.bob-blue-top-div .bob-tags").mCustomScrollbar({axis:"x",scrollButtons:{enable:!0,scrollAmount:50,scrollType:"stepless"}}),jQuery(".navigation-main-horizontal").length>0&&(t=jQuery(".navigation-main-horizontal nav ul li.active").offset().left,jQuery(".navigation-main-horizontal nav").mCustomScrollbar("scrollTo",t-60)),jQuery(".bob-blue-top-div .bob-tags").length>0&&(t=jQuery(".bob-blue-top-div .bob-tags li a.active").parents("li").offset().left,jQuery(".bob-blue-top-div .bob-tags").mCustomScrollbar("scrollTo",+t)))},0)});jQuery(document).ready(function(){fnShowOfferAndTncDetails()});jQuery(document).ready(function(){typesofRelatedOfferlider()});const links=document.querySelectorAll("a"),currentDomain=window.location.hostname,overlay=document.querySelector(".external-link-popup-overlay"),proceedBtn=overlay.querySelector(".proceed-btn"),cancelBtn=overlay.querySelector(".cancel-btn");let targetHref="";links.forEach(function(n){const t=n.getAttribute("href");if(t&&!t.startsWith("#")&&!t.startsWith("https://bobcrm.bankofbaroda.bank.in/onlinecomplaint/frmSuggestion.aspx?source=WEBSITE&sid=&id=")&&!t.startsWith("https://bobcrm.bankofbaroda.bank.in/onlinecomplaint/")&&!t.startsWith("https://bankofbaroda.bank.in")&&!t.startsWith("https://bobworld.bankofbaroda.bank.in")&&!t.startsWith("javascript:")&&!n.classList.contains("insurancepopup")&&!n.classList.contains("nopopup")&&!isInsideCountryWebsite(n)&&!isInsidejsdirectionlink(n)&&!isInsideDirectionLink(n)&&!isInsideDirectionLinkmobile(n)&&
40!isInsideWorldgiftcitydirect(n)&&!isInsideWorldInternetBanking(n))try{const i=new URL(t,window.location.href).hostname;i!==currentDomain&&i!==""&&n.addEventListener("click",function(n){n.preventDefault();targetHref=t;overlay.style.display="flex"})}catch(i){console.error("Error processing link:",i)}});proceedBtn.addEventListener("click",function(){openExternalPortalViaAnchor(targetHref);overlay.style.display="none"});cancelBtn.addEventListener("click",function(){overlay.style.display="none"});Object.defineProperty(String.prototype,"startsWith",{value:function(n,t){var i=t>0?t|0:0;return this.substring(i,i+n.length)===n}});jQuery(document).ready(function(){var n=fnGetURLParameterValueByName("scroll");n!=""&&n.length>0&&jQuery("html,body").animate({scrollTop:jQuery("#"+n).offset().top-150},1e3);jQuery(".bob-check-radio-form-control label").val(jQuery(this).val().toLowerCase());jQuery(".bob-marquee-links marquee ul li a").hover(function(){jQuery(this).css("text-decoration","underline !important")},function(){jQuery(this).css("text-decoration","none")});jQuery(".bob-marquee-links marquee p a").hover(function(){jQuery(this).css("text-decoration","underline !important")},function(){jQuery(this).css("text-decoration","none")});jQuery(this).attr("data-country")==undefined&&jQuery(".drp_branches:eq(0)").click();jQuery(document).on("click",".drp_branches",function(){var n,t;return jQuery(".branches-content").hide(),jQuery(".branches-content").removeClass("officesListToDisplay"),n=jQuery(this).attr("data-country"),jQuery(".branches-content[data-id="+n+"]").addClass("officesListToDisplay"),t=jQuery(".branches-content:visible").length,setTimeout(function(){jQuery(".br-flex-load-more.bob-report-load-more").fadeIn();jQuery(".contact-us-page .br-flex .officesListToDisplay").length<=4&&jQuery(".br-flex-load-more.bob-report-load-more").fadeOut();jQuery(".contact-us-page .br-flex .officesListToDisplay").slice(0,4).show()},200),AOS.refresh(),!1})});fnVoiceToSearch.prototype.initialise=function(){var r=this.micButtonElement,e=this.searchButtonElement,o=this.searchTextBoxElement,s=this.welcomeAudioId,h=this.clickAudioId;if("webkitSpeechRecognition"in window){var u=!1,c=window.webkitSpeechRecognition,n=new c,t=jQuery(o),f=t.attr("placeholder"),i="";n.continuous=!1;n.onresult=function(n){var f=n.resultIndex,o=n.results[f][0].transcript;i+=o;t.val(i);jQuery(e).trigger("click");document.getElementById(h).play();jQuery(r).removeClass("active");u=!1;setTimeout(function(){fnTraceGlobalSearch(i,"mic");console.log("voice search triggered "+i)},1e3)};n.onspeechend=function(){n.stop();u=!1;t.attr("placeholder",f)};n.onerror=function(n){t.attr("placeholder",f);jQuery(r).removeClass("active");n.error=="no-speech"};n.onsoundend=function(){t.attr("placeholder",f)};jQuery(r).on("click",function(){if(i="",t.val(""),u){n.stop();return}document.getElementById(s).play();setTimeout(function(){n.start();t.attr("placeholder","Speak now")},2e3);u=!0;jQuery(this).addClass("active")});t.on("input",function(){i=jQuery(this).val()})}else jQuery(r).hide()};jQuery(function(){jQuery(".convert-num-to-ind-cur-with-letter").each(function(){if(jQuery(this).text()!=""&&jQuery(this).hasClass("converted-nticwl")==!1){var n=jQuery(this).text(),t=/\d+/g;n=n.match(t)?n.match(t).join([]):"";jQuery(this).addClass("converted-nticwl");jQuery(this).html(fnConvertNumberToIndianCurrencyWithLetter(n))}});jQuery("a").each(function(){var n=jQuery(this).attr("href");typeof n!="undefined"&&(n=n.toLowerCase(),typeof glblCurrentLanguage!="undefined"&&(glblCurrentLanguage=="en"||n.startsWith("/writereaddata/")||n.startsWith("/baroda-radiance/")||!n.startsWith("/")||n.startsWith("/"+glblCurrentLanguage)||n.startsWith("/"+glblCurrentLanguage+"/")||jQuery(this).attr("href","/"+glblCurrentLanguage+jQuery(this).attr("href"))))})});try{loadJavaScript()}catch(error){}jQuery(document).ready(function(){function i(){jQuery(document).scrollTop()>=200&&n.addClass("active")}let t=jQuery(".aditis-icon"),n=jQuery(".aditis-floating-icon");t.on("click",function(){n.toggleClass("active")});jQuery(window).on("scroll",function(){i()})});jQuery(document).ready(function(){jQuery(".contact-center .contact-details-tablist ul li").click(function(){jQuery(".contact-center .contact-details-tablist ul li").removeClass("active");jQuery(this).addClass("active");var n=jQuery(this).data("id");jQuery(".contact-details-tab").addClass("nodisplay");jQuery("#"+n).removeClass("nodisplay")});jQuery(".office-detail-contact-tab ul li a").click(function(){jQuery(".office-detail-contact-tab ul li a").removeClass("active");jQuery(this).addClass("active");var n=jQuery(this).data("id");setTimeout(function(){jQuery(".office-detail-contact-tab-content-wrap").hide();jQuery("#"+n).show()},50)});jQuery(document).on("click",".bob-search-filter .filterby .drp_branches",function(){var n=jQuery(this).attr("data-country");setTimeout(function(){jQuery(".branches-content[data-id="+n+"]").show();AOS.refresh()},50)});jQuery(".bob-search-filter .filterby .drp_branches").length==1&&jQuery(".bob-search-filter .filterby .drp_branches:eq(0)").click()});jQuery(document).ready(function(){function t(){n.refreshItems().layout()}function i(){u.refreshItems().layout()}var r=jQuery(window).width(),n,u;jQuery(document).on("click",".no-q",function(){var n;if(jQuery(this).parents(".faq-question-yes-no-div").find(".popup-yes-div").remove(),!(jQuery(this).parents(".faq-question-yes-no-div").find(".popup-no-div").length>0)){n=jQuery(".popup-no-div").html();jQuery(this).parents(".faq-question-yes-no-div").append('<div class="popup-faqs-div popup-no-div">'+n+"<\/div>");var r=jQuery(this).position().top,t=jQuery(this).position().left,i=(300-t)/2;jQuery(".popup-no-div").css("left",i+25)}});jQuery(document).on("click",".yes-q",function(){var n;if(jQuery(this).parents(".faq-question-yes-no-div").find(".popup-no-div").remove(),!(jQuery(this).parents(".faq-question-yes-no-div").find(".popup-yes-div").length>0)){n=jQuery(".popup-yes-div").html();jQuery(this).parents(".faq-question-yes-no-div").append('<div class="popup-faqs-div popup-yes-div">'+n+"<\/div>");var r=jQuery(this).position().top,t=jQuery(this).position().left,i=(300-t)/2;jQuery(".popup-yes-div").css("left",i-25)}});jQuery(".bob-faqs-main-div .bob-report-list-div .bob-report-d-div .button-share-div .bob-line-
40arrow-orange-link").on("click",function(){jQuery(this).parents(".bob-report-list-div").find(".col-sm-3").removeClass("width-100");jQuery(this).parents(".col-sm-3").addClass("width-100");t()});jQuery(".bob-faqs-main-div .bob-press-div .col-sm-3 .bob-closed-btn").on("click",function(){jQuery(this).parents(".col-sm-3").removeClass("width-100");t()});jQuery(document).on("click",".popup-faqs-div .closed-pp,.popup-faqs-div .bob-comman-white-btn",function(){jQuery(this).parents(".faq-question-yes-no-div").find(".popup-faqs-div").remove()});jQuery(".bob-accordion-div .accordion ul.items>li").length<=5&&jQuery(".bob-load-more-btn.bob-loan-faq-load-more-div li").fadeOut("slow");jQuery(".bob-accordion-div .accordion ul.items>li").slice(0,5).show();jQuery(".bob-load-more-btn.bob-loan-faq-load-more-div a").on("click",function(){jQuery(".bob-accordion-div .accordion ul.items>li:hidden").slice(0,5).slideDown();jQuery(".bob-accordion-div .accordion ul.items>li:hidden").length==0&&(jQuery(".bob-load-more-btn.bob-loan-faq-load-more-div li.item0").fadeOut("slow"),jQuery(".bob-load-more-btn.bob-loan-faq-load-more-div li.item1").fadeIn("slow"))});r>767&&setTimeout(function(){jQuery(".grid .item").length>0&&(n=new Muuri(".grid",{items:".item",layoutOnResize:200,layoutDuration:400,layoutEasing:"ease",layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1}}))},200);jQuery(".filterby .bob-custom-dropdown .bob-custom-dropdown-list li").click(function(){jQuery(".bob-faq-filder-data-div").length>0||setTimeout(function(){jQuery(".muuri-item").length>0&&i()},150)});jQuery(".search-class").keydown(function(n){jQuery(".bob-faq-filder-data-div").length>0||setTimeout(function(){console.log(n.which);jQuery(".muuri-item").length>0&&i()},150)});jQuery(".faq-pages-views-click .accordion .field-heading").click(function(){jQuery(this).closest("li.item").hasClass("active")||glblFnCapturePageViewsCount(jQuery(this).closest("li.item").data("trackingid"),"globalfaqs")});jQuery("#faqPageDDLFilter ul li").on("click",function(){var n=jQuery(this).data("value");jQuery(".accordion.filter-data").each(function(){n==jQuery(this).data("categoryid")?jQuery(this).removeClass("nodisplay"):jQuery(this).addClass("nodisplay")})});setTimeout(function(){fnGetURLParameterValueByName("subcategoryid")!=""&&jQuery("#faqPageDDLFilter li").each(function(){jQuery(this).data("value")==fnGetURLParameterValueByName("subcategoryid")&&jQuery(this).click()})},200);fnGetURLParameterValueByName("id")!=""&&setTimeout(function(){jQuery(".accordion.filter-data li.item").each(function(){jQuery(this).data("id")==fnGetURLParameterValueByName("id")&&(jQuery(this).click(),jQuery(this).find(".toggle-content").show())})},300)});jQuery(".search-box-input").on("keypress paste",function(n){if(n.type==="paste"){n.preventDefault();return}var t=new RegExp("^[a-zA-Z0-9 ]+$"),i=String.fromCharCode(n.charCode?n.charCode:n.which);if(!t.test(i))return n.preventDefault(),!1});if(document.getElementById("glblSearchTexBox")!=null){jQuery(function(){var t=new fnVoiceToSearch,i;t.micButtonElement="#glblMicIcon";t.searchTextBoxElement="#glblSearchTexBox";t.searchButtonElement="#glblSearchBtn";t.welcomeAudioId="welcomeaudio";t.clickAudioId="clickaudio";t.initialise();jQuery("#glblSearchTexBox").keyup(function(){clearTimeout(i);i=setTimeout(function(){n(!0)},800)});jQuery("#glblSearchBtn").click(function(){n(!1)});jQuery(".bob-search-popup-div .closed2_svg").click(function(){jQuery(".bob-search-popup-div .search2_svg").show();jQuery(".bob-search-popup-div .closed2_svg").hide();jQuery("#globalResult").html("");jQuery("#globalSerchResultSection").removeClass("bob-global-search-result-section");jQuery("#glblSearchTexBox").val("");jQuery("#glblSearchTexBox").focus()})});language=typeof glblCurrentLanguage!="null"?glblCurrentLanguage:"en";function n(n){jQuery("#globalResult").html("<div class='bob-loader-div'><\/div>");jQuery("#globalSerchResultSection").addClass("bob-global-search-result-section");jQuery(".bob-search-popup-div .search2_svg").show();jQuery(".bob-search-popup-div .closed2_svg").hide();var t=jQuery("#glblSearchTexBox").val().toLowerCase();t!=""?i(t,n):jQuery("#globalResult").html("")}glblJsonDataCustomSearch=[];glblBoolDisableCustomSearch=!1;function i(n,i){var r="/handlers/bob/countrywebsites/india/get-custom-search-json-data.ashx";language!="en"&&(r="/"+language+r);glblJsonDataCustomSearch.length==0&&glblBoolDisableCustomSearch==!1?jQuery.getJSON(r,function(r){glblJsonDataCustomSearch=r;t(n,i)}):t(n,i)}function t(n,t){setTimeout(function(){jQuery(".bob-search-popup-div .bob-global-search-result-wrap").mCustomScrollbar({scrollbarPosition:"outside"})},50);jQuery(".bob-search-popup-div").removeClass("search-loaded");jQuery.ajax({type:"GET",url:"/sxa/search/results/?l="+language+"&itemid={D858D440-27F2-4789-9380-477699B9C1A4}
40&q="+n+"&v=%7B386AE454-A012-452A-AEFB-877906ACF766%7D",success:function(i){var r="",u;tempVal=i;i.Count>0?(jQuery("#globalResult").html(""),glblBoolDisableCustomSearch&&(glblJsonDataCustomSearch.length=0),u=jQuery.grep(glblJsonDataCustomSearch,function(t){if(t.Keyw.includes(n))return!0}),typeof i.Results!="null"&&i.Results.forEach(function(n){JSON.stringify(u).indexOf(n.Id)==-1&&u.push(n)}),u.forEach(function(t){if(t.Html.indexOf("404")===-1&&t.Html.indexOf("500")===-1){const i=document.createElement("div");i.innerHTML=t.Html||"";const u=i.querySelector("h4");u&&u.textContent.toLowerCase().includes(n.toLowerCase())&&(r+="<li>"+t.Html+"<\/li>")}}),t&&fnTraceGlobalSearch(n,"type"),r==""&&(r="<li>No result found<\/li>")):r="<li>No result found<\/li>";jQuery("#globalResult").html('<ul class = "search-result-list">'+r+"<\/ul>");jQuery(".bob-search-popup-div").addClass("search-loaded");jQuery(".bob-search-popup-div .search2_svg").hide();jQuery(".bob-search-popup-div .closed2_svg").show()}})}}else{jQuery(function(){jQuery(".search-result-list").each(function(){jQuery(this).parents().find("li").each(function(){jQuery(this).parents().find("a").addClass("bob-line-arrow-orange-link")})});setTimeout(function(){jQuery(".search-box-input.tt-input").val()==""&&(jQuery(".search-result-list").addClass("nodisplay"),jQuery(".bob-search-popup-div").removeClass("search-loaded"),jQuery(".search-box-input.tt-input").val(""),jQuery(".search-results").addClass("nodisplay"));jQuery(".bob-search-popup-div .bob-global-search-result-wrap").mCustomScrollbar({scrollbarPosition:"outside"})},2e3);jQuery(".bob-search-popup-div .input-group-append span .closed2_svg").on("click",function(){jQuery(".bob-search-popup-div").removeClass("addclosed search-loaded");jQuery(".search-box-input.tt-input").val("");jQuery(".search-box-input.tt-input").focus();jQuery(".search-result-list").addClass("nodisplay");history.replaceState({},document.title,window.location.pathname+window.location.search)});var n=new fnVoiceToSearch;n.micButtonElement=".mic-icon";n.searchTextBoxElement=".search-box-input.tt-input";n.searchButtonElement=".search-box-button";n.welcomeAudioId="welcomeaudio";n.clickAudioId="clickaudio";n.initialise();jQuery(".main-nav-ddl-list .navcol").each(function(){jQuery(this).find(".bob-simple-btn").length>0&&jQuery(this).parents().find(".main-nav-ddl-list").removeClass("nav-no-button")})});jQuery(document).on("click",".bob-closed-btn",function(){setTimeout(function(){history.replaceState({},document.title,window.location.pathname+window.location.search);jQuery(".search-box-input.tt-input").val("");jQuery(".search-result-list").addClass("nodisplay");jQuery(".bob-search-popup-div").removeClass("search-loaded")},200)});jQuery(".search-box-input").on("keyup",function(){var n=jQuery(this).val();clearTimeout(globalSearchTimer);globalSearchTimer=setTimeout(function(){n.length>0&&jQuery(".bob-search-popup-div").addClass("addclosed ");(n==""||jQuery(".search-result-list").html()=="")&&jQuery(".bob-search-popup-div").removeClass("search-loaded");n==""?(jQuery(".search-result-list").addClass("nodisplay"),jQuery(".bob-search-popup-div").removeClass("addclosed")):(jQuery(".search-result-list").removeClass("nodisplay"),jQuery(".search-box-button").trigger("click"),jQuery(".bob-search-popup-div").addClass("search-loaded"),console.log("serarch trgggered "+n),typeof fnTraceGlobalSearch=="function"&&n!=""&&fnTraceGlobalSearch(n,"type"))},1e3);AOS.refresh()});XA.component.search.vent.on("results-loaded",function(){jQuery(".bob-search-popup-div").addClass("search-loaded");jQuery(".search-results").removeClass("nodisplay")})}jQuery(document).ready(function(){jQuery(document).on("click",".blog .lang_li ",function(){jQuery(this).find(".up-front-lang").slideToggle()});var n=jQuery(window).width(),t=document.querySelectorAll(".bob-nav-inner-list .bob-simple-btn");t.forEach(function(n){n.closest(".main-nav-ddl-list").classList.remove("nav-no-button")});jQuery(document).on("click",".bob-logincc-div .bob-cust-drop-click",function(){jQuery("body").removeClass("bob-cust-drop-body-open");jQuery(".bob-custom-drop-popup-div").removeClass("active-drop");jQuery(".bob-logincc-div").removeClass("bob-open-dropdown bob-open-current-drop");jQuery("body").addClass("bob-cust-drop-body-open");jQuery(this).parents(".bob-logincc-div").find(".bob-custom-drop-popup-div").addClass("active-drop");jQuery(this).parents(".bob-logincc-div").addClass("bob-open-current-drop")});if(n<767&&typeof glblCurrentPageID!="undefined"&&!(glblCurrentPageID=="d858d440-27f2-4789-9380-477699b9c1a4"||glblCurrentPageID=="f5d266d2-fdea-42a0-89bf-c46e2a38c02d"||glblCurrentPageID=="72619eb7-9d2f-4628-94ad-7b2db47360a6"||glblCurrentPageID=="820c0e4d-6b5f-40ea-92e0-3d0aaa7738cb"||glblCurrentPageID=="a9127f31-9cc5-45b2-95c7-ca46f1f4f115"||glblCurrentPageID=="fec48bbb-c28d-4d84-b924-059fb8994e89"||glblCurrentPageID=="11c23665-0463-4c48-bdba-851bb4e24fe0"||glblCurrentPageID=="11c23665-0463-4c48-bdba-851bb4e24fe0"||glblCurrentPageID=="5af4acc8-6e65-4f9d-a8c6-31cf0adfa445"||glblCurrentPageID=="4e8cbc9d-2d13-4a4f-aeea-9eb40192839c"))jQuery(document).on("click",".lang_li ",function(){jQuery(this).find(".up-front-lang").slideToggle()});jQuery(document).on("click",function(t){var r=jQuery(".bob-logincc-div"),i;r.is(t.target)||r.has(t.target).length!==0||(jQuery("body").removeClass("bob-cust-drop-body-open"),jQuery(".bob-custom-drop-popup-div").removeClass("active-drop"),jQuery(".bob-logincc-div").removeClass("bob-open-dropdown bob-open-current-drop"));n<767&&(i=jQuery(".lang_li"),i.is(t.target)||i.has(t.target).length!==0||jQuery(".up-front-lang").slideUp())});jQuery(document).on("click",".bob-custom-drop-popup-div .closed-pp",function(){jQuery("body").removeClass("bob-cust-drop-body-open");jQuery(".bob-custom-drop-popup-div").removeClass("active-drop");jQuery(".bob-logincc-div").removeClass("bob-open-dropdown bob-open-current-drop")});jQuery(".bob-logincc-div input").keypress(function(n){return n.preventDefault(),jQuery(this).blur(),!1});jQuery(".bob-notification-data ul").mCustomScrollbar({scrollbarPosition:"outside"});jQuery(document).on("click",".notification_svg_h",function(){jQuery("body").addClass("notification-open")});jQuery(document).on("click",".bob-notification-data .closed-pp",function(){jQuery("body").removeClass("notification-open")});jQuery(document).on("click",".font-big-small li",function(){jQuery("html").removeClass("fontnormal fontpluse fontminus");jQuery("html").addClass(jQuery(this).attr("data-class"))});jQuery(document).on("click",".color-mode li",function(){jQuery("html").removeClass("light-mode dark-mode");jQuery("html").addClass(jQuery(this).attr("data-class"));jQuery(this).attr("data-class")=="dark-mode"?fnCreateCookie("dark-mode","true",262800):fnDeleteCookie("dark-mode")});fnReadCookie("dark-mode")!=""&&jQuery("html").addClass("dark-mode");jQuery(document).on("click",".bob-middle-navbar .bob-middle-first-link li a",function(){jQuery("html").removeClass("fontminus fontnormal fontpluse");
40typeof jQuery(this).attr("href")!="undefiend"&&(jQuery(this).attr("href").toLowerCase().indexOf("/senior-citizen")!=-1?fnCreateCookie("senior-citizene","true",262800):fnDeleteCookie("senior-citizene"))});document.location.href.indexOf("/senior-citizen")!=-1?fnCreateCookie("senior-citizene","true",262800):fnDeleteCookie("senior-citizene");setTimeout(function(){fnReadCookie("senior-citizene")!=""&&jQuery(".font-big-small ul li:eq(1)").click()},200)});jQuery(function(){hideTabULTagIfEmpty});jQuery(document).ready(function(){jQuery(document).ready(function(){function n(){var n=jQuery('li[data-value="or-in"]');n.hide();var t=jQuery('li[data-value="hi-in"]'),i=jQuery('li[data-value="en"]'),r=typeof glblCurrentLanguage!="undefined"?glblCurrentLanguage.toLowerCase():"",f=r==="or-in",u=window.location.href.toLowerCase(),o=u.indexOf("locate-us")!==-1,e=u.indexOf("/branches/odisha")!==-1,s=u.indexOf("branch")===-1;f&&o||e?setTimeout(function(){var i=u.split("/").slice(0,3).join("/")+"/";jQuery(".bob-nav-log").attr("href",i);n.show();t.hide();jQuery(".bob-middle-navbar, .bob-bottom-first-ul").find('a[href*="/'+r+'"]').each(function(){var n=jQuery(this).attr("href").replace("/"+r,"");jQuery(this).attr("href",n)})},50):t.show();e&&(n.show(),f?(i.removeClass("active"),t.removeClass("active"),n.addClass("active")):r=="hi-in"?(n.show(),i.show(),n.show(),i.removeClass("active"),t.removeClass("active"),n.addClass("active")):(t.removeClass("active"),n.removeClass("active"),i.addClass("active")));f&&s&&(jQuery('a[href="/or-in"], a[href="/or-in/"]').attr("href","/"),jQuery('a[href*="/or-in"]').each(function(){var n=jQuery(this).attr("href");n!=="/or-in"&&n!=="/or-in/"&&jQuery(this).attr("href",n.replace("/or-in",""))}));jQuery('#footer a[href*="/or-in"]').each(function(){var t=jQuery(this).text().trim(),n;t!=="Branches"&&(n=jQuery(this).attr("href").replace("/or-in",""),jQuery(this).attr("href",n))})}jQuery(".carousel").each(function(){(jQuery(this).find(".field-mobileimage").length>0||jQuery(this).find(".field-ipadimage").length>0)&&jQuery(this).addClass("carouselResponsive")});setTimeout(n,50)});jQuery(document).on("click",".road-block-popup",function(n){var t=jQuery(".road-block-content-div");t.is(n.target)||t.has(n.target).length!==0||jQuery(".road-block-popup .road-block-content-div .popupCloseBtn").click()});jQuery(".road-block-popup .road-block-content-div .popupCloseBtn, .road-block-popup .road-block-content-div .english-btn").on("click",function(){jQuery(".road-block-popup").fadeOut()});setTimeout(function(){jQuery(".road-block-popup .road-block-content-div .popupCloseBtn").click()},22e3)});rtlType=!1;jQuery("html").attr("dir")=="rtl"&&(rtlType=!0);setTimeout(function(){jQuery(".custom-carousel").removeClass("script-slider");jQuery(".carousel .nav").remove();jQuery(".custom-carousel .slides .slide").css({display:"block",opacity:"1"});jQuery(".custom-carousel .slides .slide .slide-info").css({"box-shadow":"none"});newHomeSlider()},100);jQuery(function(){glblFnSetLikedItems()});jQuery("body").on("click",".likes-li",function(){function i(n){n=n.trim().toLocaleLowerCase();var i="LikedByItems",t=[];fnReadCookie(i)!=""?(t=JSON.parse(fnReadCookie(i)),t.indexOf(n)==-1?t.push(n):t.splice(t.indexOf(n),1)):t.push(n);fnCreateCookie(i,JSON.stringify(t),219e3)}var n=jQuery(this).attr("data-id"),t;typeof n!="undefined"&&n!=""&&(i(n),t=jQuery(".likes-li").filter(function(){return jQuery(this).attr("data-id").toLowerCase().indexOf(n.toLowerCase())>-1}),t.hasClass("liked-li")?t.removeClass("liked-li"):t.addClass("liked-li"))});
41/**
42* Muuri v0.9.3
43* https://muuri.dev/
44* Copyright (c) 2015-present, Haltu Oy
45* Released under the MIT license
46* https://github.com/haltu/muuri/blob/master/LICENSE.md
47* @license MIT
48*
49* Muuri Packer
50* Copyright (c) 2016-present, Niklas Rämö <[email protected]>
51* @license MIT
52*
53* Muuri Ticker / Muuri Emitter / Muuri Dragger
54* Copyright (c) 2018-present, Niklas Rämö <[email protected]>
55* @license MIT
56*
57* Muuri AutoScroller
58* Copyright (c) 2019-present, Niklas Rämö <[email protected]>
59* @license MIT
60*/
61!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Muuri=t()}(this,function(){"use strict";function l(){this._events={};this._queue=[];this._counter=0;this._clearOnEmit=!1}function it(n){bt&&(this._dragger=n,this._timeout=null,this._outEvent=null,this._isActive=!1,this._addBehaviour=this._addBehaviour.bind(this),this._removeBehaviour=this._removeBehaviour.bind(this),this._onTimeout=this._onTimeout.bind(this),this._resetData=this._resetData.bind(this),this._onStart=this._onStart.bind(this),this._onOut=this._onOut.bind(this),this._dragger.on("start",this._onStart))}function oi(n,t){var i=tr[t]||"",u,r;if(i)return i;for(u=t[0].toUpperCase()+t.slice(1),r=0;r<ei.length;){if((i=ei[r]?ei[r]+u:t)in n)return tr[t]=i,i;++r}return""}function tu(){var t=!1,n;try{n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,n);window.removeEventListener("testPassive",null,n)}catch(t){}return t}function n(t,i){this._element=t;this._emitter=new l;this._isDestroyed=!1;this._cssProps={};this._touchAction="";this._isActive=!1;this._pointerId=null;this._startTime=0;this._startX=0;this._startY=0;this._currentX=0;this._currentY=0;this._onStart=this._onStart.bind(this);this._onMove=this._onMove.bind(this);this._onCancel=this._onCancel.bind(this);this._onEnd=this._onEnd.bind(this);this._edgeHack=null;(yf||pf)&&(gi||nr)&&(this._edgeHack=new it(this));this.setCssProps(i);this._touchAction||this.setTouchAction("auto");t.addEventListener("dragstart",n._preventDefault,!1);t.addEventListener(n._inputEvents.start,this._onStart,rt)}function ci(n){this._nextStep=null;this._lanes=[];this._stepQueue=[];this._stepCallbacks={};this._step=this._step.bind(this);for(var t=0;t<n;t++)this._lanes.push(new ir)}function ir(){this.queue=[];this.indices={};this.callbacks={}}function ru(n){u.remove(0,"layoutRead"+n);u.remove(2,"layoutWrite"+n)}function uu(n){u.remove(0,"visibilityRead"+n);u.remove(2,"visibilityWrite"+n)}function fu(n){u.remove(0,"dragStartRead"+n);u.remove(2,"dragStartWrite"+n)}function eu(n){u.remove(0,"dragMoveRead"+n);u.remove(2,"dragMoveWrite"+n)}function ou(n){u.remove(0,"dragScrollRead"+n);u.remove(2,"dragScrollWrite"+n)}function li(n,t){u.add(1,"dragSortRead"+n,t)}
61function su(n){u.remove(0,"placeholderLayoutRead"+n);u.remove(2,"placeholderLayoutWrite"+n)}function hu(n,t){u.add(0,"autoScrollRead",n);u.add(2,"autoScrollWrite",t)}function r(n){return"function"==typeof n}function h(n,t){var i=ct&&ct.get(n);return i||(i=window.getComputedStyle(n,null),ct&&ct.set(n,i)),ct&&(ai?rr=!1:ai=window.setInterval(kf,3e3)),i.getPropertyValue(t)}function a(n,t){return parseFloat(h(n,t))||0}function lu(n){return n===window||n===ot||n===df?window:n}function kt(n){return n===window?n.pageXOffset:n.scrollLeft}function dt(n){return n===window?n.pageYOffset:n.scrollTop}function au(n){return n===window?ot.scrollWidth-ot.clientWidth:n.scrollWidth-n.clientWidth}function vu(n){return n===window?ot.scrollHeight-ot.clientHeight:n.scrollHeight-n.clientHeight}function yu(n,t){if(t=t||{},n===window)t.width=ot.clientWidth,t.height=ot.clientHeight,t.left=0,t.right=t.width,t.top=0,t.bottom=t.height;else{var i=n.getBoundingClientRect(),r=n.clientLeft||a(n,"border-left-width"),u=n.clientTop||a(n,"border-top-width");t.width=n.clientWidth;t.height=n.clientHeight;t.left=i.left+r;t.right=t.left+t.width;t.top=i.top+u;t.bottom=t.top+t.height}return t}function gt(n){return n._drag._getGrid()._settings.dragAutoScroll}function gf(n){if(n._drag&&n._isActive){var t=n._drag;t._scrollDiffX=t._scrollDiffY=0;n._setTranslate(t._left,t._top)}}function ur(n,t,i,r){return vi.value=Math.min(r/2,n),vi.offset=Math.max(0,i+2*vi.value+r*t-r)/2,vi}function k(){this.reset()}function lt(){this.element=null;this.requestX=null;this.requestY=null;this.scrollLeft=0;this.scrollTop=0}function ni(n,t){this.pool=[];this.createItem=n;this.releaseItem=t}function yi(n,t){var i=function(n,t){return function(n,t){return!(n.left+n.width<=t.left||t.left+t.width<=n.left||n.top+n.height<=t.top||t.top+t.height<=n.top)}(n,t)?(Math.min(n.left+n.width,t.left+t.width)-Math.max(n.left,t.left))*(Math.min(n.top+n.height,t.top+t.height)-Math.max(n.top,t.top)):0}(n,t);return i?i/(Math.min(n.width,t.width)*Math.min(n.height,t.height))*100:0}function f(){this._isDestroyed=!1;this._isTicking=!1;this._tickTime=0;this._tickDeltaTime=0;this._items=[];this._actions=[];this._requests={};this._requests[1]={};this._requests[2]={};this._requestOverlapCheck={};this._dragPositions={};this._dragDirections={};this._overlapCheckInterval=150;this._requestPool=new ni(function(){return new k},function(n){n.reset()});this._actionPool=new ni(function(){return new lt},function(n){n.reset()});this._readTick=this._readTick.bind(this);this._writeTick=this._writeTick.bind(this)}function pi(n,t){return pu.call(n,t)}function c(n,t){t&&(n.classList?n.classList.add(t):pi(n,"."+t)||(n.className+=" "+t))}function sr(n,t,i){var r="number"==typeof i?i:-1;r<0&&(r=n.length-r+1);n.splice.apply(n,or.concat(r,0,t));or.length=0}function at(n,t,i){var r=Math.max(0,n.length-1+(i||0));return t>r?r:t<0?Math.max(r+t+1,0):t}function wu(n,t,i){if(!(n.length<2)){var r=at(n,t),u=at(n,i);r!==u&&n.splice(u,0,n.splice(r,1)[0])}}function bu(n,t,i){if(!(n.length<2)){var f,r=at(n,t),u=at(n,i);r!==u&&(f=n[r],n[r]=n[u],n[u]=f)}}function hr(n){var t=n.replace(ne,"-$1").toLowerCase();return(t=t.replace(te,"-$1")).replace(ie,"-ms-")}function re(n){var i=h(n,cr),t;return!i||"none"===i?!1:(t=h(n,"display"),"inline"!==t&&"none"!==t)}function lr(n){for(var i=document,t=n||i;t&&t!==i&&"static"===h(t,"position")&&!re(t);)t=t.parentElement||i;return t}function ku(n,t){var r,i=t||{};return i.left=0,i.top=0,n===document?i:(i.left=window.pageXOffset||0,i.top=window.pageYOffset||0,n.self===window.self||(r=n.getBoundingClientRect(),i.left+=r.left,i.top+=r.top,i.left+=a(n,"border-left-width"),i.top+=a(n,"border-top-width")),i)}function vt(n,t,i){return ti.left=0,ti.top=0,n===t||i&&(n=lr(n))===(t=lr(t))||(ku(n,ar),ku(t,vr),ti.left=vr.left-ar.left,ti.top=vr.top-ar.top),ti}function yr(n){return"auto"===n||"scroll"===n||"overlay"===n}function ue(n){return yr(h(n,"overflow"))||yr(h(n,"overflow-x"))||yr(h(n,"overflow-y"))}function du(n,t){for(t=t||[];n&&n!==document;)n.getRootNode&&n instanceof DocumentFragment?n=n.getRootNode().host:(ue(n)&&t.push(n),n=n.parentNode);return t.push(window),t}function d(n){var t;if(yt.x=0,yt.y=0,t=h(n,cr),!t||"none"===t)return yt;var r=fe.test(t),i=t.replace(r?oe:ee,""),u=i.replace(se,"");return yt.x=parseFloat(i)||0,yt.y=parseFloat(u)||0,yt}function o(n,t){t&&(n.classList?n.classList.remove(t):pi(n,"."+t)&&(n.className=(" "+n.className+" ").replace(" "+t+" "," ").trim()))}function t(i){var f=i._element,e=i.getGrid(),u=e._settings;this._item=i;this._gridId=e._id;this._isDestroyed=!1;this._isMigrating=!1;this._startPredicate=r(u.dragStartPredicate)?u.dragStartPredicate:t.defaultStartPredicate;this._startPredicateState=0;this._startPredicateResult=void 0;this._isSortNeeded=!1;this._sortTimer=void 0;this._blockedSortIndex=null;this._sortX1=0;this._sortX2=0;this._sortY1=0;this._sortY2=0;this._reset();this._preStartCheck=this._preStartCheck.bind(this);this._preEndCheck=this._preEndCheck.bind(this);this._onScroll=this._onScroll.bind(this);this._prepareStart=this._prepareStart.bind(this);this._applyStart=this._applyStart.bind(this);this._prepareMove=this._prepareMove.bind(this);this._applyMove=this._applyMove.bind(this);this._prepareScroll=this._prepareScroll.bind(this);this._applyScroll=this._applyScroll.bind(this);this._handleSort=this._handleSort.bind(this);this._handleSortDelayed=this._handleSortDelayed.bind(this);this._handle=u.dragHandle&&f.querySelector(u.dragHandle)||f;this._dragger=new n(this._handle,u.dragCssProps);this._dragger.on("start",this._preStartCheck);this._dragger.on("move",this._preStartCheck);this._dragger.on("cancel",this._preEndCheck);this._dragger.on("end",this._preEndCheck)}function nf(n,t){var i,r,u={};if(Array.isArray(t))for(r=0;r<t.length;r++)u[i=t[r]]=h(n,hr(i));else for(i in t)u[i]=h(n,hr(i));return u}function he(n){var t=wr[n];return t||((t=n.replace(tf,""))!==n&&(t=t[0].toLowerCase()+t.slice(1)),wr[n]=t,t)}function pt(n,t){for(var i in t)n.style[i]=t[i]}function b(n){this._element=n;this._animation=null;this._duration=0;this._easing="";this._callback=null;this._props=[];this._values=[];this._isDestroyed=!1;this._onFinish=this._onFinish.bind(this)}function uf(n,t){var r={};for(var i in n)r[t?i:he(i)]=n[i];return r}function ut(n,t){return"translateX("+n+"px) translateY("+t+"px)"}function s(n){this._item=n;this._animation=new b;this._element=null;this._className="";this._didMigrate=!1;this._resetAfterLayout=!1;this._left=0;this._top=0;this._transX=0;this._transY=0;this._nextTransX=0;this._nextTransY=0;this._setupAnimation=this._setupAnimation.bind(this);this._startAnimation=this._startAnimation.bind(this);this._updateDimensions=this._updateDimensions.bind(this);this._onLayoutStart=this._onLayoutStart.bind(this);this._onLayoutEnd=this._onLayoutEnd.bind(this);this._onReleaseEnd=this._onReleaseEnd.bind(this);this._onMigrate=this._onMigrate.bind(this);this._onHide=this._onHide.bind(this)}function ft(n){this._item=n;this._isActive=!1;this._isDestroyed=!1;this._isPositioningStarted=!1;this._containerDiffX=0;this._containerDiffY=0}function nt(n){var t=n._element,i=t.style;this._item=n;this._isActive=!1;this._isDestroyed=!1;this._isInterrupted=!1;this._currentStyles={};this._targetStyles={};this._nextLeft=0;this._nextTop=0;this._offsetLeft=0;this._offsetTop=0;this._skipNextAnimation=!1;this._animOptions={onFinish:this._finish.bind(this),duration:0,easing:0};i.left="0px";i.top="0px";n._setTranslate(0,0);this._animation=new b(t);this._queue="layout-"+n._id;this._setupAnimation=this._setupAnimation.bind(this);this._startAnimation=this._startAnimation.bind(this)}function ri(n){this._item=n;this._isActive=!1;this._isDestroyed=!1;this._container=!1;this._containerDiffX=0;this._containerDiffY=0}function p(n){var t=n._isActive,r=n._element,u=r.children[0],i=n.getGrid()._settings;if(!u)throw new Error("No valid child element found within item element.");this._item=n;this._isDestroyed=!1;this._isHidden=!t;this._isHiding=!1;this._isShowing=!1;this._childElement=u;this._currentStyleProps=[];this._animation=new b(u);this._queue="visibility-"+n._id;this._finishShow=this._finishShow.bind(this);this._finishHide=this._finishHide.bind(this);r.style.display=t?"":"none";c(r,t?i.itemVisibleClass:i.itemHiddenClass);this.setStyles(t?i.visibleStyles:i.hiddenStyles)}function ef(){return++ff}function e(n,i,r){var u=n._settings;if(et){if(et.has(i))throw new Error("You can only create one Muuri Item per element!");et.set(i,this)}this._id=ef();this._gridId=n._id;this._element=i;this._isDestroyed=!1;this._left=0;this._top=0;this._width=0;this._height=0;this._marginLeft=0;this._marginRight=0;this._marginTop=0;this._marginBottom=0;this._tX=void 0;this._tY=void 0;this._sortData=null;this._emitter=new l;i.parentNode!==n._element&&n._element.appendChild(i);
61c(i,u.itemClass);"boolean"!=typeof r&&(r="none"!==h(i,"display"));this._isActive=r;this._visibility=new p(this);this._layout=new nt(this);this._migrate=new ri(this);this._drag=u.dragEnabled?new t(this):null;this._dragRelease=new ft(this);this._dragPlaceholder=new s(this)}function of(n){function s(n){return((1e3*n+.5<<0)/10<<0)/100}function i(){this.currentRects=[];this.nextRects=[];this.rectTarget={};this.rectStore=[];this.slotSizes=[];this.rectId=0;this.slotIndex=-1;this.slotData={left:0,top:0,width:0,height:0};this.sortRectsLeftTop=this.sortRectsLeftTop.bind(this);this.sortRectsTopLeft=this.sortRectsTopLeft.bind(this)}var r,u,f,e,o,t=.001,h;return(i.prototype.computeLayout=function(n,t){var i,c,f,o,h,r,e=n.items,u=n.slots,p=!!(1&t),l=!!(2&t),a=!!(4&t),v=!!(8&t),w=!!(16&t),y="number"==typeof e[0];if(!e.length)return n;for(c=y?2:1,i=0;i<e.length;i+=c)y?(o=e[i],h=e[i+1]):(o=(f=e[i])._width+f._marginLeft+f._marginRight,h=f._height+f._marginTop+f._marginBottom),w&&(o=s(o),h=s(h)),r=this.computeNextSlot(n,o,h,p,l),l?r.left+r.width>n.width&&(n.width=r.left+r.width):r.top+r.height>n.height&&(n.height=r.top+r.height),u[++this.slotIndex]=r.left,u[++this.slotIndex]=r.top,(a||v)&&this.slotSizes.push(r.width,r.height);if(a)for(i=0;i<u.length;i+=2)u[i]=n.width-(u[i]+this.slotSizes[i]);if(v)for(i=1;i<u.length;i+=2)u[i]=n.height-(u[i]+this.slotSizes[i]);return this.slotSizes.length=0,this.currentRects.length=0,this.nextRects.length=0,this.rectId=0,this.slotIndex=-1,n},i.prototype.computeNextSlot=function(n,i,r,u,f){var o,c,v,h,a,e=this.slotData,l=this.currentRects,s=this.nextRects,y=!1;for(s.length=0,e.left=null,e.top=null,e.width=i,e.height=r,h=0;h<l.length;h++)if((c=l[h])&&(o=this.getRect(c),e.width<=o.width+t&&e.height<=o.height+t)){e.left=o.left;e.top=o.top;break}if(null===e.left&&(f?(e.left=n.width,e.top=0):(e.left=0,e.top=n.height),u||(y=!0)),!f&&e.top+e.height>n.height+t&&(e.left>.5&&s.push(this.addRect(0,n.height,e.left,1/0)),e.left+e.width<n.width-.5&&s.push(this.addRect(e.left+e.width,n.height,n.width-e.left-e.width,1/0)),n.height=e.top+e.height),f&&e.left+e.width>n.width+t&&(e.top>.5&&s.push(this.addRect(n.width,0,1/0,e.top)),e.top+e.height<n.height-.5&&s.push(this.addRect(n.width,e.top+e.height,1/0,n.height-e.top-e.height)),n.width=e.left+e.width),!y)for(u&&(h=0);h<l.length;h++)if(c=l[h])for(o=this.getRect(c),v=this.splitRect(o,e),a=0;a<v.length;a++)c=v[a],o=this.getRect(c),(f?o.left+t<n.width-t:o.top+t<n.height-t)&&s.push(c);return s.length>1&&this.purgeRects(s).sort(f?this.sortRectsLeftTop:this.sortRectsTopLeft),this.currentRects=s,this.nextRects=l,e},i.prototype.addRect=function(n,t,i,r){var u=++this.rectId;return this.rectStore[u]=n||0,this.rectStore[++this.rectId]=t||0,this.rectStore[++this.rectId]=i||0,this.rectStore[++this.rectId]=r||0,u},i.prototype.getRect=function(n,t){return t||(t=this.rectTarget),t.left=this.rectStore[n]||0,t.top=this.rectStore[++n]||0,t.width=this.rectStore[++n]||0,t.height=this.rectStore[++n]||0,t},i.prototype.splitRect=(r=[],u=0,f=0,function(n,i){return r.length=0,n.left+n.width<=i.left+t||i.left+i.width<=n.left+t||n.top+n.height<=i.top+t||i.top+i.height<=n.top+t?(r.push(this.addRect(n.left,n.top,n.width,n.height)),r):((u=i.left-n.left)>=.5&&r.push(this.addRect(n.left,n.top,u,n.height)),(u=n.left+n.width-(i.left+i.width))>=.5&&r.push(this.addRect(i.left+i.width,n.top,u,n.height)),(f=i.top-n.top)>=.5&&r.push(this.addRect(n.left,n.top,n.width,f)),(f=n.top+n.height-(i.top+i.height))>=.5&&r.push(this.addRect(n.left,i.top+i.height,n.width,f)),r)}),i.prototype.isRectAWithinRectB=function(n,i){return n.left+t>=i.left&&n.top+t>=i.top&&n.left+n.width-t<=i.left+i.width&&n.top+n.height-t<=i.top+i.height},i.prototype.purgeRects=(e={},o={},function(n){for(var t,i=n.length;i--;)if(t=n.length,n[i])for(this.getRect(n[i],e);t--;)if(n[t]&&i!==t&&(this.getRect(n[t],o),this.isRectAWithinRectB(e,o))){n[i]=0;break}return n}),i.prototype.sortRectsTopLeft=function(){var n={},i={};return function(r,u){return this.getRect(r,n),this.getRect(u,i),n.top<i.top&&n.top+t<i.top?-1:n.top>i.top&&n.top-t>i.top?1:n.left<i.left&&n.left+t<i.left?-1:n.left>i.left&&n.left-t>i.left?1:0}}(),i.prototype.sortRectsLeftTop=function(){var n={},i={};return function(r,u){return this.getRect(r,n),this.getRect(u,i),n.left<i.left&&n.left+t<i.left?-1:n.left>i.left&&n.left-t<i.left?1:n.top<i.top&&n.top+t<i.top?-1:n.top>i.top&&n.top-t>i.top?1:0}}(),n)&&(h=new i,self.onmessage=function(n){var t=new Float32Array(n.data),r=t.subarray(4,t.length),u=new Float32Array(r.length),f=t[3],i={items:r,slots:u,width:t[1],height:t[2]};h.computeLayout(i,f);t[1]=i.width;t[2]=i.height;t.set(i.slots,4);postMessage(t.buffer,[t.buffer])}),i}function tt(n,t){if(this._options=0,this._processor=null,this._layoutQueue=[],this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={},this._workers=[],this._onWorkerMessage=this._onWorkerMessage.bind(this),this.setOptions(t),(n="number"==typeof n?Math.max(0,n):0)&&window.Worker&&window.URL&&window.Blob)try{this._workers=function(n,t){var u=[],i,r;if(n>0)for(wt||(wt=URL.createObjectURL(new Blob(["("+of.toString()+")(true)"],{type:"application/javascript"}))),r=0;r<n;r++)i=new Worker(wt),t&&(i.onmessage=t),u.push(i),ki.push(i);return u}(n,this._onWorkerMessage)}catch(n){this._processor=new sf}else this._processor=new sf}function ce(n,t){var o=++hf,i=0,r=0,f=!1,e=function(t){f||(r&&(i-=t-r),r=t,i>0?function(n,t){u.add(0,"debounceRead"+n,t)}(o,e):(i=r=0,n()))};return function(s){if(!f){if(!(t<=0))return!0===s?(f=!0,i=r=0,e=void 0,void function(n){u.remove(0,"debounceRead"+n)}(o)):void(i<=0?(i=t,e(0)):i=t);!0!==s&&n()}}}function dr(n){var t=Object.prototype.toString.call(n);return"[object HTMLCollection]"===t||"[object NodeList]"===t}function lf(n){return"object"==typeof n&&"[object Object]"===cf.call(n)}function le(){}function i(n,t){if("string"==typeof n&&(n=document.querySelector(n)),!(n.getRootNode?n.getRootNode({composed:!0})===document:document.body.contains(n))||n===document.documentElement)throw new Error("Container element must be an existing DOM element.");var u=function(n,t){var i=ui({},n);return t&&(i=ui(i,t)),t&&t.visibleStyles?i.visibleStyles=t.visibleStyles:n&&n.visibleStyles&&(i.visibleStyles=n.visibleStyles),t&&t.hiddenStyles?i.hiddenStyles=t.hiddenStyles:n&&n.hiddenStyles&&(i.hiddenStyles=n.hiddenStyles),i}(i.defaultOptions,t);u.visibleStyles=af(u.visibleStyles);u.hiddenStyles=af(u.hiddenStyles);r(u.dragSort)||(u.dragSort=!!u.dragSort);this._id=ef();this._element=n;this._settings=u;this._isDestroyed=!1;this._items=[];this._layout={id:0,items:[],slots:[]};this._isLayoutFinished=!0;this._nextLayoutData=null;this._emitter=new l;this._onLayoutDataReceived=this._onLayoutDataReceived.bind(this);fi[this._id]=this;c(n,u.containerClass),function(n,t){"number"!=typeof t&&(t=!0===t?0:-1);t>=0&&(n._resizeHandler=ce(function(){n.refreshItems().layout()},t),window.addEventListener("resize",n._resizeHandler))}(this,u.layoutOnResize);this.add(function(n,t){if("*"===t)return n.children;if("string"==typeof t){for(var u=[],r=n.children,i=0;i<r.length;i++)pi(r[i],t)&&u.push(r[i]);return u}return Array.isArray(t)||dr(t)?t:[]}
61(n,u.items),{layout:!1});u.layoutOnInit&&this.layout(!0)}function ui(n,t){for(var u,i,f=Object.keys(t),e=f.length,r=0;r<e;r++)u=lf(t[i=f[r]]),n[i]=lf(n[i])&&u?ui(ui({},n[i]),t[i]):u?ui({},t[i]):Array.isArray(t[i])?t[i].slice(0):t[i];return n}function af(n){var t,i,r={},u=document.documentElement.style;for(t in n)n[t]&&(i=oi(u,t))&&(r[i]=n[t]);return r}function vf(n){for(var i={},t=0;t<n.length;t++)i[n[t]._id]=t;return i}function di(n,t,i){return n[t._id]-n[i._id]}var fi={},et="function"==typeof Map?new Map:null,nu="ontouchstart"in window,gi=!!window.PointerEvent,nr=!!window.navigator.msPointerEnabled,bt,ei,tr,iu,u,fr,er,st,pu,or,cr,g,y,ii,wi,gu,pr,tf,wr,br,bi,rf,kr,ff,hf,cf,ht,gr;l.prototype.on=function(n,t){if(!this._events||!n||!t)return this;var i=this._events[n];return i||(i=this._events[n]=[]),i.push(t),this};l.prototype.off=function(n,t){if(!this._events||!n||!t)return this;var r,i=this._events[n];if(!i||!i.length)return this;for(;-1!==(r=i.indexOf(t));)i.splice(r,1);return this};l.prototype.clear=function(n){if(!this._events||!n)return this;var t=this._events[n];return t&&(t.length=0,delete this._events[n]),this};l.prototype.emit=function(n){var r,i,e;if(!this._events||!n||(r=this._events[n],!r||!r.length))return this._clearOnEmit=!1,this;var f,t=this._queue,o=t.length,u=arguments.length-1;for(u>3&&((f=[]).push.apply(f,arguments),f.shift()),t.push.apply(t,r),this._clearOnEmit&&(r.length=0,this._clearOnEmit=!1),++this._counter,i=o,e=t.length;i<e;i++)if(0===u?t[i]():1===u?t[i](arguments[1]):2===u?t[i](arguments[1],arguments[2]):3===u?t[i](arguments[1],arguments[2],arguments[3]):t[i].apply(null,f),!this._events)return this;return--this._counter,this._counter||(t.length=0),this};l.prototype.burst=function(){return this._events?(this._clearOnEmit=!0,this.emit.apply(this,arguments),this):this};l.prototype.countListeners=function(n){if(!this._events)return 0;var t=this._events[n];return t?t.length:0};l.prototype.destroy=function(){return this._events?(this._queue.length=this._counter=0,this._events=null,this):this};bt=gi?"pointerout":nr?"MSPointerOut":"";it.prototype._addBehaviour=function(){this._isActive||(this._isActive=!0,this._dragger.on("move",this._resetData),this._dragger.on("cancel",this._removeBehaviour),this._dragger.on("end",this._removeBehaviour),window.addEventListener(bt,this._onOut))};it.prototype._removeBehaviour=function(){this._isActive&&(this._dragger.off("move",this._resetData),this._dragger.off("cancel",this._removeBehaviour),this._dragger.off("end",this._removeBehaviour),window.removeEventListener(bt,this._onOut),this._resetData(),this._isActive=!1)};it.prototype._resetData=function(){window.clearTimeout(this._timeout);this._timeout=null;this._outEvent=null};it.prototype._onStart=function(n){"mouse"!==n.pointerType&&this._addBehaviour()};it.prototype._onOut=function(n){this._dragger._getTrackedTouch(n)&&(this._resetData(),this._outEvent=n,this._timeout=window.setTimeout(this._onTimeout,100))};
61it.prototype._onTimeout=function(){var n=this._outEvent;this._resetData();this._dragger.isActive()&&this._dragger._onCancel(n)};it.prototype.destroy=function(){bt&&(this._dragger.off("start",this._onStart),this._removeBehaviour())};ei=["","webkit","moz","ms","o","Webkit","Moz","MS","O"];tr={};var si=window.navigator.userAgent.toLowerCase(),yf=si.indexOf("edge")>-1,pf=si.indexOf("trident")>-1,wf=si.indexOf("firefox")>-1,bf=si.indexOf("android")>-1,rt=!!tu()&&{passive:!0},hi=oi(document.documentElement.style,"touchAction");n._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"};n._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"};n._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"};n._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"};n._inputEvents=nu?n._touchEvents:gi?n._pointerEvents:nr?n._msPointerEvents:n._mouseEvents;n._emitter=new l;n._emitterEvents={start:"start",move:"move",end:"end",cancel:"cancel"};n._activeInstances=[];n._preventDefault=function(n){n.preventDefault&&!1!==n.cancelable&&n.preventDefault()};n._activateInstance=function(t){n._activeInstances.indexOf(t)>-1||(n._activeInstances.push(t),n._emitter.on(n._emitterEvents.move,t._onMove),n._emitter.on(n._emitterEvents.cancel,t._onCancel),n._emitter.on(n._emitterEvents.end,t._onEnd),1===n._activeInstances.length&&n._bindListeners())};n._deactivateInstance=function(t){var i=n._activeInstances.indexOf(t);-1!==i&&(n._activeInstances.splice(i,1),n._emitter.off(n._emitterEvents.move,t._onMove),n._emitter.off(n._emitterEvents.cancel,t._onCancel),n._emitter.off(n._emitterEvents.end,t._onEnd),n._activeInstances.length||n._unbindListeners())};n._bindListeners=function(){window.addEventListener(n._inputEvents.move,n._onMove,rt);window.addEventListener(n._inputEvents.end,n._onEnd,rt);n._inputEvents.cancel&&window.addEventListener(n._inputEvents.cancel,n._onCancel,rt)};n._unbindListeners=function(){window.removeEventListener(n._inputEvents.move,n._onMove,rt);window.removeEventListener(n._inputEvents.end,n._onEnd,rt);n._inputEvents.cancel&&window.removeEventListener(n._inputEvents.cancel,n._onCancel,rt)};n._getEventPointerId=function(n){return"number"==typeof n.pointerId?n.pointerId:n.changedTouches?n.changedTouches[0]?n.changedTouches[0].identifier:null:1};n._getTouchById=function(n,t){if("number"==typeof n.pointerId)return n.pointerId===t?n:null;if(n.changedTouches){for(var i=0;i<n.changedTouches.length;i++)if(n.changedTouches[i].identifier===t)return n.changedTouches[i];return null}return n};n._onMove=function(t){n._emitter.emit(n._emitterEvents.move,t)};n._onCancel=function(t){n._emitter.emit(n._emitterEvents.cancel,t)};n._onEnd=function(t){n._emitter.emit(n._emitterEvents.end,t)};n.prototype._reset=function(){this._pointerId=null;this._startTime=0;this._startX=0;this._startY=0;this._currentX=0;this._currentY=0;this._isActive=!1;n._deactivateInstance(this)};n.prototype._createEvent=function(t,i){var r=this._getTrackedTouch(i);return{type:t,srcEvent:i,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaT
61ime:t===n._emitterEvents.start?0:this.getDeltaTime(),isFirst:t===n._emitterEvents.start,isFinal:t===n._emitterEvents.end||t===n._emitterEvents.cancel,pointerType:i.pointerType||(i.touches?"touch":"mouse"),identifier:this._pointerId,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY,target:r.target}};n.prototype._emit=function(n,t){this._emitter.emit(n,this._createEvent(n,t))};n.prototype._getTrackedTouch=function(t){return null===this._pointerId?null:n._getTouchById(t,this._pointerId)};n.prototype._onStart=function(t){if(!this._isDestroyed&&null===this._pointerId&&(this._pointerId=n._getEventPointerId(t),null!==this._pointerId)){var i=this._getTrackedTouch(t);this._startX=this._currentX=i.clientX;this._startY=this._currentY=i.clientY;this._startTime=Date.now();this._isActive=!0;this._emit(n._emitterEvents.start,t);this._isActive&&n._activateInstance(this)}};n.prototype._onMove=function(t){var i=this._getTrackedTouch(t);i&&(this._currentX=i.clientX,this._currentY=i.clientY,this._emit(n._emitterEvents.move,t))};n.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(n._emitterEvents.cancel,t),this._reset())};n.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(n._emitterEvents.end,t),this._reset())};n.prototype.isActive=function(){return this._isActive};n.prototype.setTouchAction=function(t){this._touchAction=t;hi&&(this._cssProps[hi]="",this._element.style[hi]=t);nu&&(this._element.removeEventListener(n._touchEvents.start,n._preventDefault,!0),(this._element.style[hi]!==t||wf&&bf)&&this._element.addEventListener(n._touchEvents.start,n._preventDefault,!0))};n.prototype.setCssProps=function(n){if(n){var t,r,i=this._cssProps,u=this._element;for(t in i)u.style[t]=i[t],delete i[t];for(t in n)n[t]&&("touchAction"!==t?(r=oi(u.style,t))&&(i[r]="",u.style[r]=n[t]):this.setTouchAction(n[t]))}};n.prototype.getDeltaX=function(){return this._currentX-this._startX};n.prototype.getDeltaY=function(){return this._currentY-this._startY};n.prototype.getDistance=function(){var n=this.getDeltaX(),t=this.getDeltaY();return Math.sqrt(n*n+t*t)};n.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0};n.prototype.on=function(n,t){this._emitter.on(n,t)};n.prototype.off=function(n,t){this._emitter.off(n,t)};n.prototype.destroy=function(){var t,i;if(!this._isDestroyed){t=this._element;for(i in this._edgeHack&&this._edgeHack.destroy(),this._reset(),this._emitter.destroy(),t.removeEventListener(n._inputEvents.start,this._onStart,rt),t.removeEventListener("dragstart",n._preventDefault,!1),t.removeEventListener(n._touchEvents.start,n._preventDefault,!0),this._cssProps)t.style[i]=this._cssProps[i],delete this._cssProps[i];this._element=null;this._isDestroyed=!0}};iu=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return this.setTimeout(function(){n(Date.now())},16.666666666666668)}).bind(window);ci.prototype._step=function(n){var t,r,i,u,s,h,f=this._lanes,e=this._stepQueue,o=this._stepCallbacks;for(this._nextStep=null,t=0;t<f.length;t++){for(u=f[t].queue,s=f[t].callbacks,h=f[t].indices,r=0;r<u.length;r++)(i=u[r])&&(e.push(i),o[i]=s[i],delete s[i],delete h[i]);u.length=0}for(t=0;t<e.length;t++)o[i=e[t]]&&o[i](n),delete o[i];e.length=0};ci.prototype.add=function(n,t,i){this._lanes[n].add(t,i);this._nextStep||(this._nextStep=iu(this._step))};ci.prototype.remove=function(n,t){this._lanes[n].remove(t)};ir.prototype.add=function(n,t){var i=this.indices[n];void 0!==i&&(this.queue[i]=void 0);this.queue.push(n);this.callbacks[n]=t;this.indices[n]=this.queue.length-1};ir.prototype.remove=function(n){var t=this.indices[n];void 0!==t&&(this.queue[t]=void 0,delete this.callbacks[n],delete this.indices[n])};u=new ci(3);var ai,cu="function"==typeof WeakMap,ct=cu?new WeakMap:null,rr=!0,kf=function(){rr?(ai=window.clearInterval(ai),ct=cu?new WeakMap:null):rr=!0};var v,ot=document.documentElement,df=document.body,vi={value:0,offset:0};k.prototype.reset=function(){this.isActive&&this.onStop();this.item=null;this.element=null;this.isActive=!1;this.isEnding=!1;this.direction=null;this.value=null;this.maxValue=0;this.threshold=0;this.distance=0;this.speed=0;this.duration=0;this.action=null};k.prototype.hasReachedEnd=function(){return 4&this.direction?this.value>=this.maxValue:this.value<=0};k.prototype.computeCurrentScrollValue=function(){return null===this.value?1&this.direction?kt(this.element):dt(this.element):Math.max(0,Math.min(this.value,this.maxValue))};k.prototype.computeNextScrollValue=function(n){var t=this.speed*(n/1e3),i=4&this.direction?this.value+t:this.value-t;return Math.max(0,Math.min(i,this.maxValue))};k.prototype.computeSpeed=(v={direction:null,threshold:0,distance:0,value:0,maxValue:0,deltaTime:0,duration:0,isEnding:!1},function(n){var i=this.item,t=gt(i).speed;return r(t)?(v.direction=this.direction,v.threshold=this.threshold,v.distance=this.distance,v.value=this.value,v.maxValue=this.maxValue,v.duration=this.duration,v.speed=this.speed,v.deltaTime=n,v.isEnding=this.isEnding,t(i,this.element,v)):t});k.prototype.tick=function(n){return this.isActive||(this.isActive=!0,this.onStart()),this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(n),this.value=this.computeNextScrollValue(n),this.duration+=n,this.value};k.prototype.onStart=function(){var n=this.item,t=gt(n).onStart;r(t)&&t(n,this.element,this.direction)};k.prototype.onStop=function(){var n=this.item,t=gt(n).onStop;r(t)&&t(n,this.element,this.direction);n._drag&&n._drag.sort()};lt.prototype.reset=function(){this.requestX&&(this.requestX.action=null);this.requestY&&(this.requestY.action=null);this.element=null;this.requestX=null;this.requestY=null;this.scrollLeft=0;this.scrollTop=0};lt.prototype.addRequest=function(n){1&n.direction?(this.removeRequest(this.requestX),this.requestX=n):(this.removeRequest(this.requestY),this.requestY=n);n.action=this};lt.prototype.removeRequest=function(n){n&&(this.requestX===n?(this.requestX=null,n.action=null):this.requestY===n&&(this.requestY=null,n.action=null))};lt.prototype.computeScrollValues=function(){this.scrollLeft=this.requestX?this.requestX.value:kt(this.element);this.scrollTop=this.requestY?this.requestY.value:dt(this.element)};lt.prototype.scroll=function(){var n=this.element;n&&(n.scrollTo?n.scrollTo(this.scrollLeft,this.scrollTop):(n.scrollLeft=this.scrollLeft,n.scrollTop=this.scrollTop))};ni.prototype.pick=function(){return this.pool.pop()||this.createItem()};ni.prototype.release=function(n){this.releaseItem(n);-1===this.pool.indexOf(n)&&this.pool.push(n)};ni.prototype.reset=function(){this.pool.length=0};fr={width:0,height:0,left:0,right:0,top:0,bottom:0};er={width:0,height:0,left:0,right:0,top:0,bottom:0};f.AXIS_X=1;f.AXIS_Y=2;f.FORWARD=4;f.BACKWARD=8;f.LEFT=9;f.RIGHT=5;f.UP=10;f.DOWN=6;f.smoothSpeed=function(n,t,i){return function(r,u,f){var e=0,h,s,o;return f.isEnding||(f.threshold>0?(h=f.threshold-Math.max(0,f.distance),e=n/f.threshold*h):e=n),s=f.speed,o=e,s===e?o:s<e?(o=s+t*(f.deltaTime/1e3),Math.min(e,o)):(o=s-i*(f.deltaTime/1e3),Math.max(e,o))}};f.pointerHandle=function(n){var t={left:0,top:0,width:0,height:0},i=n||1;return function(n,r,u,f,e,o,s){return t.left=o-.5*i,t.top=s-.5*i,t.width=i,t.height=i,t}};f.prototype._readTick=function(n){this._isDestroyed||(n&&this._tickTime?(this._tickDeltaTime=n-this._tickTime,this._tickTime=n,this._updateRequests(),this._updateActions()):(this._tickTime=n,this._tickDeltaTime=0))};f.prototype._writeTick=function(){this._isDestroyed||(this._applyActions(),hu(this._readTick,this._writeTick))};f.prototype._startTicking=function(){this._isTicking=!0;hu(this._readTick,this._writeTick)};f.prototype._stopTicking=function(){this._isTicking=!1;this._tickTime=0;this._tickDeltaTime=0;u.remove(0,"autoScrollRead");u.remove(2,"autoScrollWrite")};f.prototype._getItemHandleRect=function(n,t,i){var r=n._drag,f,u;return t?(f=r._dragMoveEvent||r._dragStartEvent,u=t(n,r._clientX,r._clientY,n._width,n._height,f.clientX,f.clientY),i.left=u.left,i.top=u.top,i.width=u.width,i.height=u.height):(i.left=r._clientX,i.top=r._clientY,i.width=n._width,i.height=n._height),i.right=i.left+i.width,i.bottom=i.top+i.height,i};f.prototype._requestItemScroll=function(n,t,i,r,u,f,e){var s=this._requests[t],o=s[n._id];o?o.element===i&&o.direction===r||o.reset():o=this._requestPool.pick();o.item=n;o.element=i;o.direction=r;o.threshold=u;o.distance=f;o.maxValue=e;s[n._id]=o};f.prototype._cancelItemScroll=function(n,t){var r=this._requests[t],i=r[n._id];i&&(i.action&&i.action.removeRequest(i),this._requestPool.release(i),delete r[n._id])};f.prototype._checkItemOverlap=function(n,t,i){var l=gt(n),w=r(l.targets)?l.targets(n):l.targets,ft=l.threshold,et=l.safeZone;if(!w||!w.length)return t&&this._cancelItemScroll(n,1),void(i&&this._cancelItemScroll(n,2));var ot=this._dragDirections[n._id],b=ot[0],k=ot[1];if(!b&&!k)return t&&this._cancelItemScroll(n,1),void(i&&this._cancelItemScroll(n,2));for(var c=this._getItemHandleRect(n,l.handle,fr),h=er,f=null,e=null,d=!0,g=!0,v=0,s=0,u=null,o=null,a=0,y=0,p=0,it=null,nt=-1/0,st=0,ht=0,ct=null,lt=0,at=0,rt=null,tt=-1/0,vt=0,yt=0,pt=null,wt=0,bt=0,ut=0;ut<w.length;ut++)f=w[ut],d=t&&b&&2!==f.axis,g=i&&k&&1!==f.axis,s=f.priority||0,(!d||s<nt)&&(!g||s<tt)||(e=lu(f.element||f),y=d?au(e):-1,p=g?vu(e):-1,(y||p)&&((v=yi(c,h=yu(e,h)))<=0||(d&&s>=nt&&y>0&&(s>nt||v>ht)&&(o=null,u=ur("number"==typeof f.threshold?f.threshold:ft,et,c.width,h.width),5===b?(a=h.right+u.offset-c.right)<=u.value&&kt(e)<y&&(o=5):9===b&&(a=c.left-(h.left-u.offset))<=u.value&&kt(e)>0&&(o=9),null!==o&&(it=e,nt=s,st=u.value,ht=v,ct=o,lt=a,at=y)),g&&s>=tt&&p>0&&(s>tt||v>yt)&&(o=null,u=ur("number"==typeof f.threshold?f.threshold:ft,et,c.height,h.height),6===k?(a=h.bottom+u.offset-c.bottom)<=u.value&&dt(e)<p&&(o=6):10===k&&(a=c.top-(h.top-u.offset))<=u.value&&dt(e)>0&&(o=10),null!==o&&(rt=e,tt=s,vt=u.value,yt=v,pt=o,wt=a,bt=p)))));t&&(it?this._requestItemScroll(n,1,it,ct,st,lt,at):this._cancelItemScroll(n,1));i&&(rt?this._requestItemScroll(n,2,rt,pt,vt,wt,bt):this._cancelItemScroll(n,2))};f.prototype._updateScrollRequest=function(n){for(var c=n.item,i=gt(c),l=r(i.targets)?i.targets(c):i.targets,w=l&&l.length||0,b=i.threshold,k=i.safeZone,u=this._getItemHandleRect(c,i.handle,fr),t=er,e=null,o=null,s=!1,f=null,p=null,a=null,v=null,h=null,y=0;y<w;y++)if((o=lu((e=l[y]).element||e))===n.element){if(s=!!(1&n.direction)){if
61(2===e.axis)continue}else if(1===e.axis)continue;if((v=s?au(o):vu(o))<=0)break;if(yi(u,t=yu(o,t))<=0)break;if(f=ur("number"==typeof e.threshold?e.threshold:b,k,s?u.width:u.height,s?t.width:t.height),(p=9===n.direction?u.left-(t.left-f.offset):5===n.direction?t.right+f.offset-u.right:10===n.direction?u.top-(t.top-f.offset):t.bottom+f.offset-u.bottom)>f.value)break;if(a=s?kt(o):dt(o),h=4&n.direction?a>=v:a<=0)break;return n.maxValue=v,n.threshold=f.value,n.distance=p,n.isEnding=!1,!0}return!0===i.smoothStop&&n.speed>0?(null===h&&(h=n.hasReachedEnd()),n.isEnding=!h):n.isEnding=!1,n.isEnding};f.prototype._updateRequests=function(){for(var n,i,r,o,t,u,f,s=this._items,h=this._requests[1],c=this._requests[2],e=0;e<s.length;e++)n=s[e],t=(o=this._requestOverlapCheck[n._id])>0&&this._tickTime-o>this._overlapCheckInterval,u=!0,(i=h[n._id])&&i.isActive&&(u=!this._updateScrollRequest(i))&&(t=!0,this._cancelItemScroll(n,1)),f=!0,(r=c[n._id])&&r.isActive&&(f=!this._updateScrollRequest(r))&&(t=!0,this._cancelItemScroll(n,2)),t&&(this._requestOverlapCheck[n._id]=0,this._checkItemOverlap(n,u,f))};f.prototype._requestAction=function(n,t){for(var r=this._actions,f=1===t,i=null,u=0;u<r.length;u++){if(i=r[u],n.element===i.element){if(f?i.requestX:i.requestY)return void this._cancelItemScroll(n.item,t);break}i=null}i||(i=this._actionPool.pick());i.element=n.element;i.addRequest(n);n.tick(this._tickDeltaTime);r.push(i)};f.prototype._updateActions=function(){for(var t,i,r,u=this._items,f=this._requests,e=this._actions,n=0;n<u.length;n++)t=u[n]._id,i=f[1][t],r=f[2][t],i&&this._requestAction(i,1),r&&this._requestAction(r,2);for(n=0;n<e.length;n++)e[n].computeScrollValues()};f.prototype._applyActions=function(){var n,t=this._actions,i=this._items,r;if(t.length){for(n=0;n<t.length;n++)t[n].scroll(),this._actionPool.release(t[n]);for(t.length=0,n=0;n<i.length;n++)(r=i[n])._drag&&r._drag._prepareScroll();for(n=0;n<i.length;n++)gf(i[n])}};f.prototype._updateDragDirection=function(n){var t=this._dragPositions[n._id],i=this._dragDirections[n._id],r=n._drag._left,u=n._drag._top,f,e;t.length&&(f=t[0],e=t[1],i[0]=r>f?5:r<f?9:i[0]||0,i[1]=u>e?6:u<e?10:i[1]||0);t[0]=r;t[1]=u};f.prototype.addItem=function(n){this._isDestroyed||-1===this._items.indexOf(n)&&(this._items.push(n),this._requestOverlapCheck[n._id]=this._tickTime,this._dragDirections[n._id]=[0,0],this._dragPositions[n._id]=[],this._isTicking||this._startTicking())};f.prototype.updateItem=function(n){this._isDestroyed||this._dragDirections[n._id]&&(this._updateDragDirection(n),this._requestOverlapCheck[n._id]||(this._requestOverlapCheck[n._id]=this._tickTime))};f.prototype.removeItem=function(n){var i,t;this._isDestroyed||(i=this._items.indexOf(n),-1!==i&&(t=n._id,this._requests[1][t]&&(this._cancelItemScroll(n,1),delete this._requests[1][t]),this._requests[2][t]&&(this._cancelItemScroll(n,2),delete this._requests[2][t]),delete this._requestOverlapCheck[t],delete this._dragPositions[t],delete this._dragDirections[t],this._items.splice(i,1),this._isTicking&&!this._items.length&&this._stopTicking()))};f.prototype.isItemScrollingX=function(n){var t=this._requests[1][n._id];return!(!t||!t.isActive)};f.prototype.isItemScrollingY=function(n){var t=this._requests[2][n._id];return!(!t||!t.isActive)};f.prototype.isItemScrolling=function(n){return this.isItemScrollingX(n)||this.isItemScrollingY(n)};f.prototype.destroy=function(){if(!this._isDestroyed){for(var t=this._items.slice(0),n=0;n<t.length;n++)this.removeItem(t[n]);this._actions.length=0;this._requestPool.reset();this._actionPool.reset();this._isDestroyed=!0}};st=window.Element.prototype;pu=st.matches||st.matchesSelector||st.webkitMatchesSelector||st.mozMatchesSelector||st.msMatchesSelector||st.oMatchesSelector||function(){return!1};or=[];var w=oi(document.documentElement.style,"transform")||"transform",ne=/([A-Z])/g,te=/^(webkit-|moz-|ms-|o-)/,ie=/^(-m-s-)/;cr=hr(w);var ar={},vr={},ti={};var yt={},fe=/^matrix3d/,ee=/([^,]*,){4}/,oe=/([^,]*,){12}/,se=/[^,]*,/;gu=/^(iPad|iPhone|iPod)/.test(window.navigator.platform)||/^Mac/.test(window.navigator.platform)&&window.navigator.maxTouchPoints>1;pr=!!tu()&&{passive:!0};t.autoScroller=new f;t.defaultStartPredicate=function(n,t,i){var u=n._drag,r,f;if(t.isFirst&&t.srcEvent.button||!gu&&t.isFirst&&!0===t.srcEvent.isTrusted&&!1===t.srcEvent.defaultPrevented&&!1===t.srcEvent.cancelable)return!1;if(!t.isFinal)return r=u._startPredicateData,r||(f=i||u._getGrid()._settings.dragStartPredicate||{},u._startPredicateData=r={distance:Math.max(f.distance,0)||0,delay:Math.max(f.delay,0)||0}),r.delay&&(r.event=t,r.delayTimer||(r.delayTimer=window.setTimeout(function(){r.delay=0;u._resolveStartPredicate(r.event)&&(u._forceResolveStartPredicate(r.event),u._resetStartPredicate())},r.delay))),u._resolveStartPredicate(t);u._finishStartPredicate(t)};t.defaultSortPredicate=(g={},y={},ii={},wi=[],function(n,t){var e=n._drag,l=e._getGrid(),f=t&&"number"==typeof t.threshold?t.threshold:50,k=t&&"swap"===t.action?"swap":"move",d=t&&"swap"===t.migrateAction?"swap":"move",i;if(f=Math.min(Math.max(f,1),100),g.width=n._width,g.height=n._height,g.left=e._clientX,g.top=e._clientY,i=function(n,t,i){var p,e,f,u,c,o,s,l,a,v,w=null,b=t._settings.dragSort,k=-1;if(!0===b?(wi[0]=t,e=wi):r(b)&&(e=b.call(t,n)),!e||!Array.isArray(e)||!e.length)return w;for(v=0;v<e.length;
61v++)if(!(f=e[v])._isDestroyed){for(f._updateBoundingRect(),o=Math.max(0,f._left),s=Math.max(0,f._top),l=Math.min(window.innerWidth,f._right),a=Math.min(window.innerHeight,f._bottom),u=f._element.parentNode;u&&u!==document&&u!==document.documentElement&&u!==document.body;)if(u.getRootNode&&u instanceof DocumentFragment)u=u.getRootNode().host;else{if("visible"!==h(u,"overflow")&&(c=u.getBoundingClientRect(),o=Math.max(o,c.left),s=Math.max(s,c.top),l=Math.min(l,c.right),a=Math.min(a,c.bottom)),"fixed"===h(u,"position"))break;u=u.parentNode}o>=l||s>=a||(y.left=o,y.top=s,y.width=l-o,y.height=a-s,(p=yi(g,y))>i&&p>k&&(k=p,w=f))}return wi.length=0,w}(n,l,f),!i)return null;var u,a,o,v=n.getGrid()!==i,p=0,w=0,s=0,c=-1,b=!1;for(i===l?(g.left=e._gridX+n._marginLeft,g.top=e._gridY+n._marginTop):(i._updateBorders(1,0,1,0),p=i._left+i._borderLeft,w=i._top+i._borderTop),o=0;o<i._items.length;o++)(u=i._items[o])._isActive&&u!==n&&(b=!0,y.width=u._width,y.height=u._height,y.left=u._left+u._marginLeft+p,y.top=u._top+u._marginTop+w,(a=yi(g,y))>s&&(c=o,s=a));return v&&s<f&&(c=b?c:0,s=f),s>=f?(ii.grid=i,ii.index=c,ii.action=v?d:k,ii):null});t.prototype.stop=function(){var n,i;if(this._isActive)if(this._isMigrating)this._finishMigration();else{if(n=this._item,i=n._id,t.autoScroller.removeItem(n),fu(i),eu(i),ou(i),this._cancelSort(),this._isStarted){this._unbindScrollListeners();var r=n._element,u=this._getGrid(),f=u._settings.itemDraggingClass;r.parentNode!==u._element&&(u._element.appendChild(r),n._setTranslate(this._gridX,this._gridY),f&&r.clientWidth);o(r,f)}this._reset()}};t.prototype.sort=function(n){var t=this._item;this._isActive&&t._isActive&&this._dragMoveEvent&&(!0===n?this._handleSort():li(t._id,this._handleSort))};t.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._dragger.destroy(),t.autoScroller.removeItem(this._item),this._isDestroyed=!0)};t.prototype._getGrid=function(){return fi[this._gridId]||null};t.prototype._reset=function(){this._isActive=!1;this._isStarted=!1;this._container=null;this._containingBlock=null;this._dragStartEvent=null;this._dragMoveEvent=null;this._dragPrevMoveEvent=null;this._scrollEvent=null;this._scrollers=[];this._left=0;this._top=0;this._gridX=0;this._gridY=0;this._clientX=0;this._clientY=0;this._scrollDiffX=0;this._scrollDiffY=0;this._moveDiffX=0;this._moveDiffY=0;this._containerDiffX=0;this._containerDiffY=0};t.prototype._bindScrollListeners=function(){var i,n,r=this._getGrid()._element,u=this._container,t=this._scrollers;if(t.length=0,du(this._item._element.parentNode,t),u!==r)for(du(r,i=[]),n=0;n<i.length;n++)t.indexOf(i[n])<0&&t.push(i[n]);for(n=0;n<t.length;n++)t[n].addEventListener("scroll",this._onScroll,pr)};t.prototype._unbindScrollListeners=function(){for(var t=this._scrollers,n=0;n<t.length;n++)t[n].removeEventListener("scroll",this._onScroll,pr);t.length=0};t.prototype._resolveStartPredicate=function(n){var t=this._startPredicateData;if(!(n.distance<t.distance||t.delay))return this._resetStartPredicate(),!0};t.prototype._forceResolveStartPredicate=function(n){this._isDestroyed||1!==this._startPredicateState||(this._startPredicateState=2,this._onStart(n))};t.prototype._finishStartPredicate=function(n){var t=this._item._element,i=Math.abs(n.deltaX)<2&&Math.abs(n.deltaY)<2&&n.deltaTime<200;this._resetStartPredicate();i&&function(n){var t,i;"a"===n.tagName.toLowerCase()&&(t=n.getAttribute("href"),t)&&(i=n.getAttribute("target"),i&&"_self"!==i?window.open(t,i):window.location.href=t)}(t)};t.prototype._resetHeuristics=function(n,t){this._blockedSortIndex=null;this._sortX1=this._sortX2=n;this._sortY1=this._sortY2=t};t.prototype._checkHeuristics=function(n,t){var r=this._getGrid()._settings.dragSortHeuristics,i=r.minDragDistance;if(i<=0)return this._blockedSortIndex=null,!0;var u=n-this._sortX2,f=t-this._sortY2,e=i>3&&r.minBounceBackAngle>0;if(e||(this._blockedSortIndex=null),Math.abs(u)>i||Math.abs(f)>i){if(e){var o=Math.atan2(u,f),s=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),h=Math.atan2(Math.sin(o-s),Math.cos(o-s));Math.abs(h)>r.minBounceBackAngle&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=n,this._sortY2=t,!0}return!1};t.prototype._resetStartPredicate=function(){var n=this._startPredicateData;n&&(n.delayTimer&&(n.delayTimer=window.clearTimeout(n.delayTimer)),this._startPredicateData=null)};t.prototype._handleSort=function(){var n,r,i;if(this._isActive){if(n=this._getGrid()._settings,!n.dragSort||!n.dragAutoScroll.sortDuringScroll&&t.autoScroller.isItemScrolling(this._item))return this._sortX1=this._sortX2=this._gridX,this._sortY1=this._sortY2=this._gridY,this._isSortNeeded=!0,void(void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)));r=this._checkHeuristics(this._gridX,this._gridY);(this._isSortNeeded||r)&&(i=n.dragSortHeuristics.sortInterval,i<=0||this._isSortNeeded?(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),this._checkOverlap()):void 0===this._sortTimer&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,i)))}};t.prototype._handleSortDelayed=function(){this._isSortNeeded=!0;this._sortTimer=void 0;li(this._item._id,this._handleSort)};t.prototype._cancelSort=function(){var n;this._isSortNeeded=!1;void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer));n=this._item._id;u.remove(1,"dragSortRead"+n)};t.prototype._finishSort=function(){var n=this._getGrid()._settings.dragSort&&(this._isSortNeeded||void 0!==this._sortTimer);this._cancelSort();n&&this._checkOverlap()};t.prototype._checkOverlap=function(){if(this._isActive){var o,n,f,i,e,s,h,c,u=this._item,l=this._getGrid()._settings;(o=r(l.dragSortPredicate)?l.dragSortPredicate(u,this._dragMoveEvent):t.defaultSortPredicate(u,l.dragSortPredicate))&&"number"==typeof o.index&&(h="swap"===o.action?"swap":"move",c=(n=u.getGrid())!==(i=o.grid||n),f=n._items.indexOf(u),e=at(i._items,o.index,c&&"move"===h?1:0),(c||e!==this._blockedSortIndex)&&(c?(this._blockedSortIndex=null,s=i._items[e],n._hasListeners("beforeSend")&&n._emit("beforeSend",{item:u,fromGrid:n,fromIndex:f,toGrid:i,toIndex:e}),i._hasListeners("beforeReceive")&&i._emit("beforeReceive",{item:u,fromGrid:n,fromIndex:f,toGrid:i,toIndex:e}),u._gridId=i._id,this._isMigrating=u._gridId!==this._gridId,n._items.splice(f,1),sr(i._items,u,e),u._sortData=null,n._hasListeners("send")&&n._emit("send",{item:u,fromGrid:n,fromIndex:f,toGrid:i,toIndex:e}),i._hasListeners("receive")&&i._emit("receive",{item:u,fromGrid:n,fromIndex:f,toGrid:i,toIndex:e}),"swap"===h&&s&&s.isActive()&&i._items.indexOf(s)>-1&&i.send(s,n,f,{appendTo:this._container||document.body,layoutSender:!1,layoutReceiver:!1}),n.layout(),i.layout()):f!==e&&(this._blockedSortIndex=f,("swap"===h?bu:wu)(n._items,f,e),n._hasListeners("move")&&n._emit("move",{item:u,fromIndex:f,toIndex:e,action:h}),n.layout())))}};t.prototype._finishMigration=function(){var e,u,n=this._item,h=n._dragRelease,r=n._element,l=n._isActive,v=n.getGrid(),y=v._element,i=v._settings,f=i.dragContainer||y,s=this._getGrid()._settings,a=r.parentNode,p=l?s.itemVisibleClass:s.itemHiddenClass,w=l?i.itemVisibleClass:i.itemHiddenClass;this._isMigrating=!1;this.destroy();s.itemClass!==i.itemClass&&(o(r,s.itemClass),c(r,i.itemClass));
61p!==w&&(o(r,p),c(r,w));f!==a&&(f.appendChild(r),u=vt(a,f,!0),(e=d(r)).x-=u.left,e.y-=u.top);n._refreshDimensions();u=vt(f,y,!0);h._containerDiffX=u.left;h._containerDiffY=u.top;n._drag=i.dragEnabled?new t(n):null;f!==a&&n._setTranslate(e.x,e.y);n._visibility.setStyles(l?i.visibleStyles:i.hiddenStyles);h.start()};t.prototype._preStartCheck=function(n){0===this._startPredicateState&&(this._startPredicateState=1);1===this._startPredicateState?(this._startPredicateResult=this._startPredicate(this._item,n),!0===this._startPredicateResult?(this._startPredicateState=2,this._onStart(n)):!1===this._startPredicateResult&&(this._resetStartPredicate(n),this._dragger._reset(),this._startPredicateState=0)):2===this._startPredicateState&&this._isActive&&this._onMove(n)};t.prototype._preEndCheck=function(n){var t=2===this._startPredicateState;this._startPredicate(this._item,n);this._startPredicateState=0;t&&this._isActive&&(this._isStarted?this._onEnd(n):this.stop())};t.prototype._onStart=function(n){var i,f,e,r=this._item;r._isActive&&(this._isActive=!0,this._dragStartEvent=n,t.autoScroller.addItem(r),i=r._id,f=this._prepareStart,e=this._applyStart,u.add(0,"dragStartRead"+i,f),u.add(2,"dragStartWrite"+i,e))};t.prototype._prepareStart=function(){var n,r;if(this._isActive&&(n=this._item,n._isActive)){var u=n._element,f=this._getGrid(),h=f._settings,t=f._element,i=h.dragContainer||t,e=lr(i),o=d(u),s=u.getBoundingClientRect(),c=i!==t;(this._container=i,this._containingBlock=e,this._clientX=s.left,this._clientY=s.top,this._left=this._gridX=o.x,this._top=this._gridY=o.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._resetHeuristics(this._gridX,this._gridY),c)&&(r=vt(e,t),this._containerDiffX=r.left,this._containerDiffY=r.top)}};t.prototype._applyStart=function(){var n;if(this._isActive&&(n=this._item,n._isActive)){var i=this._getGrid(),r=n._element,u=n._dragRelease,t=n._migrate,f=this._container!==i._element;n.isPositioning()&&n._layout.stop(!0,this._left,this._top);t._isActive&&(this._left-=t._containerDiffX,this._top-=t._containerDiffY,this._gridX-=t._containerDiffX,this._gridY-=t._containerDiffY,t.stop(!0,this._left,this._top));n.isReleasing()&&u._reset();i._settings.dragPlaceholder.enabled&&n._dragPlaceholder.create();this._isStarted=!0;i._emit("dragInit",n,this._dragStartEvent);f&&(r.parentNode===this._container?(this._gridX-=this._containerDiffX,this._gridY-=this._containerDiffY):(this._left+=this._containerDiffX,this._top+=this._containerDiffY,this._container.appendChild(r),n._setTranslate(this._left,this._top)));c(r,i._settings.itemDraggingClass);this._bindScrollListeners();i._emit("dragStart",n,this._dragStartEvent)}};t.prototype._onMove=function(n){var t,r,f,i=this._item;i._isActive?(this._dragMoveEvent=n,t=i._id,r=this._prepareMove,f=this._applyMove,u.add(0,"dragMoveRead"+t,r),u.add(2,"dragMoveWrite"+t,f),li(i._id,this._handleSort)):this.stop()};t.prototype._prepareMove=function(){var n,t;if(this._isActive&&this._item._isActive){var r=this._getGrid()._settings.dragAxis,i=this._dragMoveEvent,u=this._dragPrevMoveEvent||this._dragStartEvent||i;"y"!==r&&(n=i.clientX-u.clientX,this._left=this._left-this._moveDiffX+n,this._gridX=this._gridX-this._moveDiffX+n,this._clientX=this._clientX-this._moveDiffX+n,this._moveDiffX=n);"x"!==r&&(t=i.clientY-u.clientY,this._top=this._top-this._moveDiffY+t,this._gridY=this._gridY-this._moveDiffY+t,this._clientY=this._clientY-this._moveDiffY+t,this._moveDiffY=t);this._dragPrevMoveEvent=i}};t.prototype._applyMove=function(){if(this._isActive){var n=this._item;n._isActive&&(this._moveDiffX=this._moveDiffY=0,n._setTranslate(this._left,this._top),this._getGrid()._emit("dragMove",n,this._dragMoveEvent),t.autoScroller.updateItem(n))}};t.prototype._onScroll=function(n){var t,r,f,i=this._item;i._isActive?(this._scrollEvent=n,t=i._id,r=this._prepareScroll,f=this._applyScroll,u.add(0,"dragScrollRead"+t,r),u.add(2,"dragScrollWrite"+t,f),li(i._id,this._handleSort)):this.stop()};t.prototype._prepareScroll=function(){var n,t,i,r;if(this._isActive&&(n=this._item,n._isActive)){var s=n._element,u=this._getGrid(),f=u._element,e=u._settings.dragAxis,h="y"!==e,c="x"!==e,o=s.getBoundingClientRect();this._container!==f&&(t=vt(this._containingBlock,f),this._containerDiffX=t.left,this._containerDiffY=t.top);h&&(i=this._clientX-this._moveDiffX-this._scrollDiffX-o.left,this._left=this._left-this._scrollDiffX+i,this._scrollDiffX=i);c&&(r=this._clientY-this._moveDiffY-this._scrollDiffY-o.top,this._top=this._top-this._scrollDiffY+r,this._scrollDiffY=r);this._gridX=this._left-this._containerDiffX;this._gridY=this._top-this._containerDiffY}};t.prototype._applyScroll=function(){if(this._isActive){var n=this._item;n._isActive&&(this._scrollDiffX=this._scrollDiffY=0,n._setTranslate(this._left,this._top),this._getGrid()._emit("dragScroll",n,this._scrollEvent))}};t.prototype._onEnd=function(n){var i=this._item,f=i._element,u=this._getGrid(),e=u._settings,r=i._dragRelease;i._isActive?(fu(i._id),eu(i._id),ou(i._id),this._finishSort(),this._unbindScrollListeners(),r._containerDiffX=this._containerDiffX,r._containerDiffY=this._containerDiffY,this._reset(),o(f,e.itemDraggingClass),t.autoScroller.removeItem(i),u._emit("dragEnd",i,n),this._isMigrating?this._finishMigration():r.start()):this.stop()};tf=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/;wr={};rf=!(!Element||!r(Element.prototype.animate));kr=!!(Element&&(br=Element.prototype.animate,bi=window.Symbol,br&&r(bi)&&r(bi.toString)&&bi(br).toString().indexOf("[native code]")>-1));b.prototype.start=function(n,t,i){var o,u;
61if(!this._isDestroyed){if(o=this._element,u=i||{},!rf)return pt(o,t),this._callback=r(u.onFinish)?u.onFinish:null,void this._onFinish();var f,h,y,c=this._animation,s=this._props,l=this._values,a=u.duration||300,v=u.easing||"ease",e=!1;if(c&&(h=0,a===this._duration&&v===this._easing||(e=!0),!e)){for(f in t)if(++h,-1===(y=s.indexOf(f))||t[f]!==l[y]){e=!0;break}h!==s.length&&(e=!0)}if(e&&c.cancel(),this._callback=r(u.onFinish)?u.onFinish:null,!c||e){for(f in s.length=l.length=0,t)s.push(f),l.push(t[f]);this._duration=a;this._easing=v;this._animation=o.animate([uf(n,kr),uf(t,kr)],{duration:a,easing:v});this._animation.onfinish=this._onFinish;pt(o,t)}}};b.prototype.stop=function(){!this._isDestroyed&&this._animation&&(this._animation.cancel(),this._animation=this._callback=null,this._props.length=this._values.length=0)};b.prototype.getCurrentStyles=function(){return nf(element,currentProps)};b.prototype.isAnimating=function(){return!!this._animation};b.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=null,this._isDestroyed=!0)};b.prototype._onFinish=function(){var n=this._callback;this._animation=this._callback=null;this._props.length=this._values.length=0;n&&n()};s.prototype._updateDimensions=function(){this.isActive()&&pt(this._element,{width:this._item._width+"px",height:this._item._height+"px"})};s.prototype._onLayoutStart=function(n,t){var i=this._item;if(-1!==n.indexOf(i)){var r=i._left,f=i._top,a=this._left,v=this._top;if(this._left=r,this._top=f,t||this._didMigrate||a!==r||v!==f){var e,o,s,h=r+i._marginLeft,c=f+i._marginTop,l=i.getGrid();if(!(!t&&l._settings.layoutDuration>0)||this._didMigrate)return su(i._id),this._element.style[w]=ut(h,c),this._animation.stop(),void(this._didMigrate&&(l.getElement().appendChild(this._element),this._didMigrate=!1));this._nextTransX=h;this._nextTransY=c;e=i._id;o=this._setupAnimation;s=this._startAnimation;
61u.add(0,"placeholderLayoutRead"+e,o);u.add(2,"placeholderLayoutWrite"+e,s)}}else this.reset()};s.prototype._setupAnimation=function(){if(this.isActive()){var n=d(this._element);this._transX=n.x;this._transY=n.y}};s.prototype._startAnimation=function(){if(this.isActive()){var n=this._animation,r=this._transX,u=this._transY,t=this._nextTransX,i=this._nextTransY;if(r!==t||u!==i){var f=this._item.getGrid()._settings,e={},o={};e[w]=ut(r,u);o[w]=ut(t,i);n.start(e,o,{duration:f.layoutDuration,easing:f.layoutEasing,onFinish:this._onLayoutEnd})}else n.isAnimating()&&(this._element.style[w]=ut(t,i),n.stop())}};s.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()};s.prototype._onReleaseEnd=function(n){if(n._id===this._item._id){if(!this._animation.isAnimating())return void this.reset();this._resetAfterLayout=!0}};s.prototype._onMigrate=function(n){if(n.item===this._item){var t=this._item.getGrid(),i=n.toGrid;t.off("dragReleaseEnd",this._onReleaseEnd);t.off("layoutStart",this._onLayoutStart);t.off("beforeSend",this._onMigrate);t.off("hideStart",this._onHide);i.on("dragReleaseEnd",this._onReleaseEnd);i.on("layoutStart",this._onLayoutStart);i.on("beforeSend",this._onMigrate);
61i.on("hideStart",this._onHide);this._didMigrate=!0}};s.prototype._onHide=function(n){n.indexOf(this._item)>-1&&this.reset()};s.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var t,n=this._item,i=n.getGrid(),u=i._settings,f=this._animation;this._left=n._left;this._top=n._top;t=r(u.dragPlaceholder.createElement)?u.dragPlaceholder.createElement(n):document.createElement("div");this._element=t;f._element=t;this._className=u.itemPlaceholderClass||"";this._className&&c(t,this._className);pt(t,{position:"absolute",left:"0px",top:"0px",width:n._width+"px",height:n._height+"px"});t.style[w]=ut(n._left+n._marginLeft,n._top+n._marginTop);i.on("layoutStart",this._onLayoutStart);i.on("dragReleaseEnd",this._onReleaseEnd);i.on("beforeSend",this._onMigrate);i.on("hideStart",this._onHide);r(u.dragPlaceholder.onCreate)&&u.dragPlaceholder.onCreate(n,t);i.getElement().appendChild(t)}};s.prototype.reset=function(){if(this.isActive()){var f,t=this._element,i=this._item,n=i.getGrid(),e=n._settings,s=this._animation;this._resetAfterLayout=!1;su(i._id);f=i._id;u.remove(2,"placeholderResizeWrite"+f);s.stop();s._element=null;n.off("dragReleaseEnd",this._onReleaseEnd);n.off("layoutStart",this._onLayoutStart);n.off("beforeSend",this._onMigrate);n.off("hideStart",this._onHide);this._className&&(o(t,this._className),this._className="");t.parentNode.removeChild(t);this._element=null;r(e.dragPlaceholder.onRemove)&&e.dragPlaceholder.onRemove(i,t)}};s.prototype.isActive=function(){return!!this._element};s.prototype.getElement=function(){return this._element};s.prototype.updateDimensions=function(){var n,t;this.isActive()&&(n=this._item._id,t=this._updateDimensions,u.add(2,"placeholderResizeWrite"+n,t))};s.prototype.destroy=function(){this.reset();this._animation.destroy();this._item=this._animation=null};ft.prototype.start=function(){if(!this._isDestroyed&&!this._isActive){var n=this._item,t=n.getGrid(),i=t._settings;this._isActive=!0;c(n._element,i.itemReleasingClass);i.dragRelease.useDragContainer||this._placeToGrid();t._emit("dragReleaseStart",n);t._nextLayoutData||n._layout.start(!1)}};ft.prototype.stop=function(n,t,i){var r,u,f;!this._isDestroyed&&this._isActive&&(r=this._item,u=r.getGrid(),n||void 0!==t&&void 0!==i||(t=r._left,i=r._top),f=this._placeToGrid(t,i),this._reset(f),n||u._emit("dragReleaseEnd",r))};ft.prototype.isJustReleased=function(){return this._isActive&&!1===this._isPositioningStarted};ft.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)};ft.prototype._placeToGrid=function(n,t){var u;if(!this._isDestroyed){var i=this._item,r=i._element,f=i.getGrid()._element,e=!1;return r.parentNode!==f&&((void 0===n||void 0===t)&&(u=d(r),n=u.x-this._containerDiffX,t=u.y-this._containerDiffY),f.appendChild(r),i._setTranslate(n,t),e=!0),this._containerDiffX=0,this._containerDiffY=0,e}};ft.prototype._reset=function(n){if(!this._isDestroyed){var t=this._item,i=t.getGrid()._settings.itemReleasingClass;this._isActive=!1;this._isPositioningStarted=!1;this._containerDiffX=0;this._containerDiffY=0;i&&(n&&t._element.clientWidth,o(t._element,i))}};nt.prototype.start=function(n,t){if(!this._isDestroyed){var e,s,h,i=this._item,c=i._dragRelease,f=i.getGrid()._settings,l=this._isActive,o=c.isJustReleased(),a=o?f.dragRelease.duration:f.layoutDuration,v=o?f.dragRelease.easing:f.layoutEasing,y=!n&&!this._skipNextAnimation&&a>0;if(l&&(ru(i._id),i._emitter.burst(this._queue,!0,i)),o&&(c._isPositioningStarted=!0),r(t)&&i._emitter.on(this._queue,t),this._skipNextAnimation=!1,!y)return this._updateOffsets(),i._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._animation.isAnimating()&&(this._animation._animation.onfinish=null);this._isActive=!0;this._animOptions.easing=v;this._animOptions.duration=a;this._isInterrupted=l;e=i._id;s=this._setupAnimation;h=this._startAnimation;u.add(0,"layoutRead"+e,s);u.add(2,"layoutWrite"+e,h)}};nt.prototype.stop=function(n,t,i){var r,u;!this._isDestroyed&&this._isActive&&(r=this._item,(ru(r._id),this._animation.isAnimating())&&
61((void 0===t||void 0===i)&&(u=d(r._element),t=u.x,i=u.y),r._setTranslate(t,i),this._animation.stop()),o(r._element,r.getGrid()._settings.itemPositioningClass),this._isActive=!1,n&&r._emitter.burst(this._queue,!0,r))};nt.prototype.destroy=function(){if(!this._isDestroyed){var n=this._item._element.style;this.stop(!0,0,0);this._item._emitter.clear(this._queue);this._animation.destroy();n[w]="";n.left="";n.top="";this._item=null;this._currentStyles=null;this._targetStyles=null;this._animOptions=null;this._isDestroyed=!0}};nt.prototype._updateOffsets=function(){if(!this._isDestroyed){var i=this._item,n=i._migrate,t=i._dragRelease;this._offsetLeft=t._isActive?t._containerDiffX:n._isActive?n._containerDiffX:0;this._offsetTop=t._isActive?t._containerDiffY:n._isActive?n._containerDiffY:0;this._nextLeft=this._item._left+this._offsetLeft;this._nextTop=this._item._top+this._offsetTop}};nt.prototype._finish=function(){if(!this._isDestroyed){var n=this._item,t=n._migrate,i=n._dragRelease;n._tX=this._nextLeft;n._tY=this._nextTop;this._isActive&&(this._isActive=!1,o(n._element,n.getGrid()._settings.itemPositioningClass));i._isActive&&i.stop();t._isActive&&t.stop();n._emitter.burst(this._queue,!1,n)}};nt.prototype._setupAnimation=function(){var n=this._item,t;(void 0===n._tX||void 0===n._tY)&&(t=d(n._element),n._tX=t.x,n._tY=t.y)};nt.prototype._startAnimation=function(){var n=this._item,r=n.getGrid()._settings,u=this._animOptions.duration<=0,t,i;if(this._updateOffsets(),t=Math.abs(n._left-(n._tX-this._offsetLeft)),i=Math.abs(n._top-(n._tY-this._offsetTop)),u||t<2&&i<2)return(t||i||this._isInterrupted)&&n._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._isInterrupted||c(n._element,r.itemPositioningClass);this._currentStyles[w]=ut(n._tX,n._tY);this._targetStyles[w]=ut(this._nextLeft,this._nextTop);n._tX=n._tY=void 0;this._animation.start(this._currentStyles,this._targetStyles,this._animOptions)};ri.prototype.start=function(n,i,r){if(!this._isDestroyed){var l,it,rt,b,k,v,s,h,ut,ft,u=this._item,e=u._element,g=u.isActive(),nt=u.isVisible(),f=u.getGrid(),w=f._settings,a=n._settings,et=n._element,tt=n._items,y=f._items.indexOf(u),p=r||document.body;if("number"==typeof i)l=at(tt,i,1);else{if(!(it=n.getItem(i)))return;l=tt.indexOf(it)}(u.isPositioning()||this._isActive||u.isReleasing())&&(s=(v=d(e)).x,h=v.y);u.isPositioning()&&u._layout.stop(!0,s,h);this._isActive&&(s-=this._containerDiffX,h-=this._containerDiffY,this.stop(!0,s,h));u.isReleasing()&&(s-=u._dragRelease._containerDiffX,h-=u._dragRelease._containerDiffY,u._dragRelease.stop(!0,s,h));u._visibility.stop(!0);u._drag&&u._drag.destroy();f._hasListeners("beforeSend")&&f._emit("beforeSend",{item:u,fromGrid:f,fromIndex:y,toGrid:n,toIndex:l});n._hasListeners("beforeReceive")&&n._emit("beforeReceive",{item:u,fromGrid:f,fromIndex:y,toGrid:n,toIndex:l});w.itemClass!==a.itemClass&&(o(e,w.itemClass),c(e,a.itemClass));(ut=nt?w.itemVisibleClass:w.itemHiddenClass)!==(ft=nt?a.itemVisibleClass:a.itemHiddenClass)&&(o(e,ut),c(e,ft));f._items.splice(y,1);sr(tt,u,l);u._gridId=n._id;g?p!==(rt=e.parentNode)&&(p.appendChild(e),b=vt(p,rt,!0),v||(s=(v=d(e)).x,h=v.y),u._setTranslate(s+b.left,h+b.to
61p)):et.appendChild(e);u._visibility.setStyles(nt?a.visibleStyles:a.hiddenStyles);g&&(k=vt(p,et,!0));u._refreshDimensions();u._sortData=null;u._drag=a.dragEnabled?new t(u):null;g?(this._isActive=!0,this._container=p,this._containerDiffX=k.left,this._containerDiffY=k.top):(this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0);f._hasListeners("send")&&f._emit("send",{item:u,fromGrid:f,fromIndex:y,toGrid:n,toIndex:l});n._hasListeners("receive")&&n._emit("receive",{item:u,fromGrid:f,fromIndex:y,toGrid:n,toIndex:l})}};ri.prototype.stop=function(n,t,i){if(!this._isDestroyed&&this._isActive){var u,r=this._item,f=r._element,e=r.getGrid()._element;this._container!==e&&(void 0!==t&&void 0!==i||(n?(t=(u=d(f)).x-this._containerDiffX,i=u.y-this._containerDiffY):(t=r._left,i=r._top)),e.appendChild(f),r._setTranslate(t,i));this._isActive=!1;this._container=null;this._containerDiffX=0;this._containerDiffY=0}};ri.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)};p.prototype.show=function(n,t){if(!this._isDestroyed){var i=this._item,f=i._element,u=r(t)?t:null,e=i.getGrid()._settings;this._isShowing||this._isHidden?!this._isShowing||n?(this._isShowing||(i._emitter.burst(this._queue,!0,i),o(f,e.itemHiddenClass),c(f,e.itemVisibleClass),this._isHiding||(f.style.display="")),u&&i._emitter.on(this._queue,u),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,n,this._finishShow)):u&&i._emitter.on(this._queue,u):u&&u(!1,i)}};p.prototype.hide=function(n,t){if(!this._isDestroyed){var i=this._item,f=i._element,u=r(t)?t:null,e=i.getGrid()._settings;this._isHiding||!this._isHidden?!this._isHiding||n?(this._isHiding||(i._emitter.burst(this._queue,!0,i),c(f,e.itemHiddenClass),o(f,e.itemVisibleClass)),u&&i._emitter.on(this._queue,u),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,n,this._finishHide)):u&&i._emitter.on(this._queue,u):u&&u(!1,i)}};p.prototype.stop=function(n){if(!this._isDestroyed&&(this._isHiding||this._isShowing)){var t=this._item;uu(t._id);this._animation.stop();n&&t._emitter.burst(this._queue,!0,t)}};p.prototype.setStyles=function(n){var i=this._childElement,r=this._currentStyleProps;for(var t in this._removeCurrentStyles(),n)r.push(t),i.style[t]=n[t]};p.prototype.destroy=function(){if(!this._isDestroyed){var n=this._item,t=n._element,i=n.getGrid()._settings;this.stop(!0);n._emitter.clear(this._queue);this._animation.destroy();this._removeCurrentStyles();o(t,i.itemVisibleClass);o(t,i.itemHiddenClass);t.style.display="";this._isHiding=this._isShowing=!1;this._isDestroyed=this._isHidden=!0}};p.prototype._startAnimation=function(n,t,i){var s,a,v;if(!this._isDestroyed){var h,o=this._item,f=this._animation,c=this._childElement,r=o.getGrid()._settings,e=n?r.visibleStyles:r.hiddenStyles,l=n?r.showDuration:r.hideDuration,y=n?r.showEasing:r.hideEasing,p=t||l<=0;if(e){if(uu(o._id),p)return pt(c,e),f.stop(),void(i&&i());f.isAnimating()&&(f._animation.onfinish=null);s=o._id;a=function(){h=nf(c,e)};v=function(){f.start(h,e,{duration:l,easing:y,onFinish:i})};u.add(0,"visibilityRead"+s,a);u.add(2,"visibilityWrite"+s,v)}else i&&i()}};p.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._item._emitter.burst(this._queue,!1,this._item))};p.prototype._finishHide=function(){if(this._isHidden){var n=this._item;this._isHiding=!1;n._layout.stop(!0,0,0);n._element.style.display="none";n._emitter.burst(this._queue,!1,n)}};p.prototype._removeCurrentStyles=function(){for(var i=this._childElement,n=this._currentStyleProps,t=0;t<n.length;t++)i.style[n[t]]="";n.length=0};ff=0;e.prototype.getGrid=function(){return fi[this._gridId]};e.prototype.getElement=function(){return this._element};e.prototype.getWidth=function(){return this._width};e.prototype.getHeight=function(){return this._height};e.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}};e.prototype.getPosition=function(){return{left:this._left,top:this._top}};e.prototype.isActive=function(){return this._isActive};e.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden};e.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)};e.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)};e.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)};e.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)};e.prototype.isReleasing=function(){return!(!this._dragRelease||!this._dragRelease._isActive)};e.prototype.isDestroyed=function(){return this._isDestroyed};e.prototype._refreshDimensions=function(n){if(!(this._isDestroyed||!0!==n&&this._visibility._isHidden)){var t=this._element,i=this._dragPlaceholder,r=t.getBoundingClientRect();this._width=r.width;this._height=r.height;this._marginLeft=Math.max(0,a(t,"margin-left"));this._marginRight=Math.max(0,a(t,"margin-right"));this._marginTop=Math.max(0,a(t,"margin-top"));this._marginBottom=Math.max(0,a(t,"margin-bottom"));i&&i.updateDimensions()}};e.prototype._refreshSortData=function(){if(!this._isDestroyed){var n,i=this._sortData={},t=this.getGrid()._settings.sortData;for(n in t)i[n]=t[n](this,this._element)}};e.prototype._addToLayout=function(n,t){!0!==this._isActive&&(this._isActive=!0,this._left=n||0,this._top=t||0)};e.prototype._removeFromLayout=function(){!1!==this._isActive&&(this._isActive=!1,this._left=0,this._top=0)};e.prototype._canSkipLayout=function(n,t){return this._left===n&&this._top===t&&!this._migrate._isActive&&!this._layout._skipNextAnimation&&!this._dragRelease.isJustReleased()};e.prototype._setTranslate=function(n,t){return(this._tX!==n||this._tY!==t)&&(this._tX=n,this._tY=t,this._element.style[w]=ut(n,t),!0)};e.prototype._destroy=function(n){if(!this._isDestroyed){var t=this._element,i=this.getGrid()._settings;this._dragPlaceholder.destroy();this._dragRelease.destroy();this._migrate.destroy();this._layout.destroy();this._visibility.destroy();this._drag&&this._drag.destroy();this._emitter.destroy();o(t,i.itemClass);n&&t.parentNode.removeChild(t);et&&et.delete(t);this._isActive=!1;this._isDestroyed=!0}};var sf=of(),wt=null,ki=[];return tt.prototype._sendToWorker=function(){if(this._layoutQueue.length&&this._workers.length){var n=this._layoutQueue.shift(),t=this._workers.pop(),i=this._layoutWorkerData[n];delete this._layoutWorkerData[n];this._layoutWorkers[n]=t;t.postMessage(i.buffer,[i.buffer])}},tt.prototype._onWorkerMessage=function(n){var r=new Float32Array(n.data),i=r[0],t=this._layouts[i],u=this._layoutCallbacks[i],f=this._layoutWorkers[i];t&&delete this._layoutCallbacks[i];u&&delete this._layoutCallbacks[i];f&&delete this._layoutWorkers[i];t&&u&&(t.width=r[1],t.height=r[2],t.slots=r.subarray(4,r.length),this._finalizeLayout(t),u(t));f&&(this._workers.push(f),this._sendToWorker())},tt.prototype._finalizeLayout=function(n){var t=n._grid,r=2&n._settings,i="border-box"===t._boxSizing;return delete n._grid,delete n._settings,n.styles={},r?n.styles.width=(i?n.width+t._borderLeft+t._borderRight:n.width)+"px":n.styles.height=(i?n.height+t._borderTop+t._borderBottom:n.height)+"px",n},tt.prototype.setOptions=function(n){var t,i,r,u,f;n&&(t="boolean"==typeof n.fillGaps?n.fillGaps?1:0:1&this._options,i="boolean"==typeof n.horizontal?n.horizontal?2:0:2&this._options,r="boolean"==typeof n.alignRight?n.alignRight?4:0:4&this._options,u="boolean"==typeof n.alignBottom?n.alignBottom?8:0:8&this._options,f="boolean"==typeof n.rounding?n.rounding?16:0:16&this._options,this._options=t|i|r|u|f)},tt.prototype.createLayout=function(n,t,i,r,u,f){var c,e,h,l,s,o;if(this._layouts[t])throw new Error("A layout with the provided id is currently being processed.");if(c=2&this._options,e={id:t,items:i,slots:null,width:c?0:r,height:c?u:0,_grid:n,_settings:this._options},!i.length)return e.slots=[],this._finalizeLayout(e),void f(e);if(this._processor)return e.slots=window.Float32Array?new Float32Array(2*i.length):new Array(2*i.length),this._processor.computeLayout(e,e._settings),this._finalizeLayout(e),void f(e);for(o=new Float32Array(4+2*i.length),o[0]=t,o[1]=e.width,o[2]=e.height,o[3]=e._settings,h=0,l=3;h<i.length;h++)s=i[h],o[++l]=s._width+s._marginLeft+s._marginRight,o[++l]=s._height+s._marginTop+s._marginBottom;return this._layoutQueue.push(t),this._layouts[t]=e,this._layoutCallbacks[t]=f,this._layoutWorkerData[t]=o,this._sendToWorker(),this.cancelLayout.bind(this,t)},tt.prototype.cancelLayout=function(n){if(this._layouts[n]&&(delete this._layouts[n],delete this._layoutCallbacks[n],this._layoutWorkerData[n])){delete this._layoutWorkerData[n];var t=this._layoutQueue.indexOf(n);t>-1&&this._layoutQueue.splice(t,1)}},tt.prototype.destroy=function(){for(var n in this._layoutWorkers)this._workers.push(this._layoutWorkers[n]);!function(n){for(var t,r,i=0;i<n.length;i++)(t=n[i]).onmessage=null,t.onerror=null,t.onmessageerror=null,t.terminate(),(r=ki.indexOf(t))>-1&&ki.splice(r,1);wt&&!ki.length&&(URL.revokeObjectURL(wt),wt=null)}(this._workers);this._workers.length=0;this._layoutQueue.length=0;this._layouts={};this._layoutCallbacks={};this._layoutWorkers={};this._layoutWorkerData={}},hf=0,cf=Object.prototype.toString,gr=0,i.Item=e,i.ItemLayout=nt,i.ItemVisibility=p,i.ItemMigrate=ri,i.ItemDrag=t,
61i.ItemDragRelease=ft,i.ItemDragPlaceholder=s,i.Emitter=l,i.Animator=b,i.Dragger=n,i.Packer=tt,i.AutoScroller=f,i.defaultPacker=new tt(2),i.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:"xy",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:"move",migrateAction:"move"},dragRelease:{duration:300,easing:"ease",useDragContainer:!0},dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:f.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},i.prototype.on=function(n,t){return this._emitter.on(n,t),this},i.prototype.off=function(n,t){return this._emitter.off(n,t),this},i.prototype.getElement=function(){return this._element},i.prototype.getItem=function(n){var i,t;if(this._isDestroyed||!n&&0!==n)return null;if("number"==typeof n)return this._items[n>-1?n:this._items.length+n]||null;if(n instanceof e)return n._gridId===this._id?n:null;if(et)return i=et.get(n),i&&i._gridId===this._id?i:null;for(t=0;t<this._items.length;t++)if(this._items[t]._element===n)return this._items[t];return null},i.prototype.getItems=function(n){if(this._isDestroyed||void 0===n)return this._items.slice(0);var t,i,r=[];if(Array.isArray(n)||dr(n))for(t=0;t<n.length;t++)(i=this.getItem(n[t]))&&r.push(i);else(i=this.getItem(n))&&r.push(i);return r},i.prototype.refreshItems=function(n,t){if(this._isDestroyed)return this;var i,e,r,u,f=n||this._items;if(!0===t)for(u=[],i=0;i<f.length;i++)(e=f[i]).isVisible()||e.isHiding()||((r=e.getElement().style).visibility="hidden",r.display="",u.push(r));for(i=0;i<f.length;i++)f[i]._refreshDimensions(t);if(!0===t){for(i=0;i<u.length;i++)(r=u[i]).visibility="",r.display="none";u.length=0}return this},i.prototype.refreshSortData=function(n){if(this._isDestroyed)return this;for(var i=n||this._items,t=0;t<i.length;t++)i[t]._refreshSortData();return this},i.prototype.synchronize=function(){var n,r,t,i;if(this._isDestroyed||(t=this._items,!t.length))return this;for(i=0;i<t.length;i++)(r=t[i]._element).parentNode===this._element&&(n=n||document.createDocumentFragment()).appendChild(r);return n?(this._element.appendChild(n),this._emit("synchronize"),this):this},i.prototype.layout=function(n,t){var f,u;if(this._isDestroyed)return this;f=this._nextLayoutData;f&&r(f.cancel)&&f.cancel();u=gr=gr%16777216+1;this._nextLayoutData={id:u,instant:n,onFinish:t,cancel:null};for(var s=this._items,h=[],e=0;e<s.length;e++)s[e]._isActive&&h.push(s[e]);this._refreshDimensions();var o,l=this._width-this._borderLeft-this._borderRight,a=this._height-this._borderTop-this._borderBottom,c=this._settings.layout;return r(c)?o=c(this,u,h,l,a,this._onLayoutDataReceived):(i.defaultPacker.setOptions(c),o=i.defaultPacker.createLayout(this,u,h,l,a,this._onLayoutDataReceived)),r(o)&&this._nextLayoutData&&this._nextLayoutData.id===u&&(this._nextLayoutData.cancel=o),this},i.prototype.add=function(n,t){var l,i;if(this._isDestroyed||!n)return[];if(i=dr(l=n)?Array.prototype.slice.call(l):Array.prototype.concat(l),!i.length)return i;for(var o,s,h,f=t||{},c=f.layout?f.layout:void 0===f.layout,v=this._items,a=!1,u=0;u<i.length;u++)(s=i[u]).parentNode!==this._element&&(o=o||document.createDocumentFragment()).appendChild(s);for(o&&this._element.appendChild(o),u=0;u<i.length;u++)s=i[u],(h=i[u]=new e(this,s,f.active))._isActive&&(a=!0,h._layout._skipNextAnimation=!0);for(u=0;
61u<i.length;u++)(h=i[u])._refreshDimensions(),h._refreshSortData();return sr(v,i,f.index),this._hasListeners("add")&&this._emit("add",i.slice(0)),a&&c&&this.layout("instant"===c,r(c)?c:void 0),i},i.prototype.remove=function(n,t){if(this._isDestroyed||!n.length)return[];for(var s,i,f=t||{},e=f.layout?f.layout:void 0===f.layout,h=!1,l=this.getItems(),o=[],c=[],u=0;u<n.length;u++)(i=n[u])._isDestroyed||-1!==(s=this._items.indexOf(i))&&(i._isActive&&(h=!0),o.push(i),c.push(l.indexOf(i)),i._destroy(f.removeElements),this._items.splice(s,1));return this._hasListeners("remove")&&this._emit("remove",o.slice(0),c),h&&e&&this.layout("instant"===e,r(e)?e:void 0),o},i.prototype.show=function(n,t){return!this._isDestroyed&&n.length&&this._setItemsVisibility(n,!0,t),this},i.prototype.hide=function(n,t){return!this._isDestroyed&&n.length&&this._setItemsVisibility(n,!1,t),this},i.prototype.filter=function(n,t){if(this._isDestroyed||!this._items.length)return this;var e,s,u=[],f=[],y="string"==typeof n,c=r(n),i=t||{},l=!0===i.instant,a=i.syncWithLayout,h=i.layout?i.layout:void 0===i.layout,v=r(i.onFinish)?i.onFinish:null,p=-1,o=le;if(v&&(o=function(){++p&&v(u.slice(0),f.slice(0))}),c||y)for(s=0;s<this._items.length;s++)e=this._items[s],(c?n(e):pi(e._element,n))?u.push(e):f.push(e);return u.length?this.show(u,{instant:l,syncWithLayout:a,onFinish:o,layout:!1}):o(),f.length?this.hide(f,{instant:l,syncWithLayout:a,onFinish:o,layout:!1}):o(),(u.length||f.length)&&(this._hasListeners("filter")&&this._emit("filter",u.slice(0),f.slice(0)),h&&this.layout("instant"===h,r(h)?h:void 0)),this},i.prototype.sort=function(){function f(r,f){for(var c,l,e,o,s=0,h=0;h<t.length;h++)if(c=t[h][0],l=t[h][1],e=(r._sortData?r:r._refreshSortData())._sortData[c],o=(f._sortData?f:f._refreshSortData())._sortData[c],s="desc"===l||!l&&i?o<e?-1:o>e?1:0:e<o?-1:e>o?1:0)return s;return s||(n||(n=vf(u)),s=i?di(n,f,r):di(n,r,f)),s}function e(r,f){var e=i?-t(r,f):t(r,f);return e||(n||(n=vf(u)),e=i?di(n,f,r):di(n,r,f)),e}var t,i,u,n;return function(o,s){if(this._isDestroyed||this._items.length<2)return this;var h=this._items,c=s||{},l=c.layout?c.layout:void 0===c.layout;if(i=!!c.descending,u=h.slice(0),n=null,r(o))t=o,h.sort(e);else if("string"==typeof o)t=o.trim().split(" ").filter(function(n){return n}).map(function(n){return n.split(":")}),h.sort(f);else{if(!Array.isArray(o))throw t=i=u=n=null,new Error("Invalid comparer argument provided.");h.length=0;h.push.apply(h,o)}return this._hasListeners("sort")&&this._emit("sort",h.slice(0),u),l&&this.layout("instant"===l,r(l)?l:void 0),t=i=u=n=null,this}}(),i.prototype.move=function(n,t,i){if(this._isDestroyed||this._items.length<2)return this;var u,f,e=this._items,o=i||{},s=o.layout?o.layout:void 0===o.layout,l="swap"===o.action,a=l?"swap":"move",h=this.getItem(n),c=this.getItem(t);return h&&c&&h!==c&&(u=e.indexOf(h),f=e.indexOf(c),l?bu(e,u,f):wu(e,u,f),this._hasListeners("move")&&this._emit("move",{item:h,fromIndex:u,toIndex:f,action:a}),s&&this.layout("instant"===s,r(s)?s:void 0)),this},i.prototype.send=function(n,t,i,u){if(this._isDestroyed||t._isDestroyed||this===t||!(n=this.getItem(n)))return this;var f=u||{},s=f.appendTo||document.body,e=f.layoutSender?f.layoutSender:void 0===f.layoutSender,o=f.layoutReceiver?f.layoutReceiver:void 0===f.layoutReceiver;return n._migrate.start(t,i,s),n._migrate._isActive&&n._isActive&&(e&&this.layout("instant"===e,r(e)?e:void 0),o&&t.layout("instant"===o,r(o)?o:void 0)),this},i.prototype.destroy=function(n){if(this._isDestroyed)return this;var t,r,i,u=this._element,f=this._items.slice(0),e=this._layout&&this._layout.styles||{};for((i=this)._resizeHandler&&(i._resizeHandler(!0),window.removeEventListener("resize",i._resizeHandler),i._resizeHandler=null),t=0;t<f.length;t++)f[t]._destroy(n);for(r in this._items.length=0,o(u,this._settings.containerClass),e)u.style[r]="";return this._emit("destroy"),this._emitter.destroy(),delete fi[this._id],this._isDestroyed=!0,this},i.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},i.prototype._hasListeners=function(n){return!this._isDestroyed&&this._emitter.countListeners(n)>0},i.prototype._updateBoundingRect=function(){var n=this._element.getBoundingClientRect();this._width=n.width;this._height=n.height;this._left=n.left;this._top=n.top;this._right=n.right;this._bottom=n.bottom},i.prototype._updateBorders=function(n,t,i,r){var u=this._element;n&&(this._borderLeft=a(u,"border-left-width"));t&&(this._borderRight=a(u,"border-right-width"));i&&(this._borderTop=a(u,"border-top-width"));r&&(this._borderBottom=a(u,"border-bottom-width"))},i.prototype._refreshDimensions=function(){this._updateBoundingRect
61();this._updateBorders(1,1,1,1);this._boxSizing=h(this._element,"box-sizing")},i.prototype._onLayoutDataReceived=(ht=[],function(n){var h;if(!this._isDestroyed&&this._nextLayoutData&&this._nextLayoutData.id===n.id){var i,o,s,t,u=this,f=this._nextLayoutData.instant,l=this._nextLayoutData.onFinish,c=n.items.length,e=c;for(this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners("layoutAbort")&&this._emit("layoutAbort",this._layout.items.slice(0)),this._layout=n,ht.length=0,t=0;t<c;t++)(i=n.items[t])?(o=n.slots[2*t],s=n.slots[2*t+1],i._canSkipLayout(o,s)?--e:(i._left=o,i._top=s,i.isActive()&&!i.isDragging()?ht.push(i):--e)):--e;if(n.styles&&pt(this._element,n.styles),!this._hasListeners("layoutStart")||(this._emit("layoutStart",n.items.slice(0),!0===f),this._layout.id===n.id)){if(h=function(){if(!(--e>0)){var t=u._layout.id!==n.id,i=r(f)?f:l;t||(u._isLayoutFinished=!0);r(i)&&i(n.items.slice(0),t);!t&&u._hasListeners("layoutEnd")&&u._emit("layoutEnd",n.items.slice(0))}},!ht.length)return h(),this;for(this._isLayoutFinished=!1,t=0;t<ht.length&&this._layout.id===n.id;t++)ht[t]._layout.start(!0===f,h);return this._layout.id===n.id&&(ht.length=0),this}}}),i.prototype._setItemsVisibility=function(n,t,i){function w(){for(v&&!1!==s.syncWithLayout&&e.off("layoutStart",w),e._hasListeners(b)&&e._emit(b,o.slice(0)),f=0;f<o.length;f++)o[f]._gridId===e._id?o[f]._visibility[d](k,function(n,t){n||c.push(t);--p<1&&(r(h)&&h(c.slice(0)),e._hasListeners(a)&&e._emit(a,c.slice(0)))}):--p<1&&(r(h)&&h(c.slice(0)),e._hasListeners(a)&&e._emit(a,c.slice(0)))}var u,f,e=this,o=n.slice(0),s=i||{},k=!0===s.instant,h=s.onFinish,l=s.layout?s.layout:void 0===s.layout,p=o.length,b=t?"showStart":"hideStart",a=t?"showEnd":"hideEnd",d=t?"show":"hide",v=!1,c=[],y=[];if(p){for(f=0;f<o.length;f++)u=o[f],(t&&!u._isActive||!t&&u._isActive)&&(v=!0),u._layout._skipNextAnimation=!(!t||u._isActive),t&&u._visibility._isHidden&&y.push(u),t?u._addToLayout():u._removeFromLayout();y.length&&(this.refreshItems(y,!0),y.length=0);v&&!1!==s.syncWithLayout?this.on("layoutStart",w):w();v&&l&&this.layout("instant"===l,r(l)?l:void 0)}else r(h)&&h(o)},i});!function(){var t={},n={};!function(n){function d(n){var t,i;if("number"==typeof n)return n;t={};for(i in n)t[i]=n[i];return t}function c(){this._delay=0;this._endDelay=0;this._fill="none";this._iterationStart=0;this._iterations=1;this._duration=0;this._playbackRate=1;this._direction="normal";this._easing="linear";this._easingFunction=f}function u(){return n.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function l(t,i){var r=new c;return i&&(r.fill="both",r.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach(function(i){if("auto"!=t[i]){if(("number"==typeof r[i]||"duration"==i)&&("number"!=typeof t[i]||isNaN(t[i])))return;if("fill"==i&&-1==ht.indexOf(t[i]))return;if("direction"==i&&-1==ct.indexOf(t[i]))return;if("playbackRate"==i&&1!==t[i]&&n.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;r[i]=t[i]}}):r.duration=t,r}function g(n){return"number"==typeof n&&(n=isNaN(n)?{duration:0}:{duration:n}),n}function nt(t,i){return t=n.numericTimingToObject(t),l(t,i)}function t(n,t,i,r){return n<0||n>1||i<0||i>1?f:function(u){function c(n,t,i){return 3*n*(1-i)*(1-i)*i+3*t*(1-i)*i*i+i*i*i}var e,o,s,h,f,l;if(u<=0)return e=0,n>0?e=t/n:!t&&i>0&&(e=r/i),e*u;if(u>=1)return o=0,i<1?o=(r-1)/(i-1):1==i&&n<1&&(o=(t-1)/(n-1)),1+o*(u-1);for(s=0,h=1;s<h;){if(f=(s+h)/2,l=c(n,i,f),Math.abs(u-l)<1e-5)return c(t,r,f);l<u?s=f:h=f}return c(t,r,f)}}function i(n,t){return function(i){if(i>=1)return 1;var r=1/n;return(i+=t*r)-i%r}}function a(n){r||(r=document.createElement("div").style);r.animationTimingFunction="";r.animationTimingFunction=n;var t=r.animationTimingFunction;if(""==t&&u())throw new TypeError(n+" is not a valid value for easing");return t}function v(n){var u,e,r;return"linear"==n?f:(u=at.exec(n),u)?t.apply(this,u.slice(1).map(Number)):(e=vt.exec(n),e)?i(Number(e[1]),s):(r=yt.exec(n),r?i(Number(r[1]),{start:p,middle:w,end:s}[r[2]]):lt[n]||f)}function tt(n){return Math.abs(it(n)/n.playbackRate)}function it(n){return 0===n.duration||0===n.iterations?0:n.duration*n.iterations}function y(n,t,i){if(null==t)return b;var r=i.delay+n+i.endDelay;
61return t<Math.min(i.delay,r)?h:t>=Math.min(i.delay+n,r)?o:k}function rt(n,t,i,r,u){switch(r){case h:return"backwards"==t||"both"==t?0:null;case k:return i-u;case o:return"forwards"==t||"both"==t?n:null;case b:return null}}function ut(n,t,i,r,u){var f=u;return 0===n?t!==h&&(f+=i):f+=r/n,f}function ft(n,t,i,r,u,f){var e=n===1/0?t%1:n%1;return 0!==e||i!==o||0===r||0===u&&0!==f||(e=1),e}function et(n,t,i,r){return n===o&&t===1/0?1/0:1===i?Math.floor(r)-1:Math.floor(r)}function ot(n,t,i){var u=n,r;return"normal"!==n&&"reverse"!==n&&(r=t,"alternate-reverse"===n&&(r+=1),u="normal",r!==1/0&&r%2!=0&&(u="reverse")),"normal"===u?i:1-i}function st(n,t,i){var r=y(n,t,i),u=rt(n,i.fill,t,r,i.delay);if(null===u)return null;var f=ut(i.duration,r,i.iterations,u,i.iterationStart),e=ft(f,i.iterationStart,r,i.iterations,u,i.duration),o=et(r,i.iterations,e,f),s=ot(i.direction,o,e);return i._easingFunction(s)}var ht="backwards|forwards|both|none".split("|"),ct="reverse|alternate|alternate-reverse".split("|"),f=function(n){return n};c.prototype={_setMember:function(t,i){this["_"+t]=i;this._effect&&(this._effect._timingInput[t]=i,this._effect._timing=n.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=n.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(n){this._setMember("delay",n)},get delay(){return this._delay},set endDelay(n){this._setMember("endDelay",n)},get endDelay(){return this._endDelay},set fill(n){this._setMember("fill",n)},get fill(){return this._fill},set iterationStart(n){if((isNaN(n)||n<0)&&u())throw new TypeError("iterationStart must be a non-negative number, received: "+n);this._setMember("iterationStart",n)},get iterationStart(){return this._iterationStart},set duration(n){if("auto"!=n&&(isNaN(n)||n<0)&&u())throw new TypeError("duration must be non-negative or auto, received: "+n);this._setMember("duration",n)},get duration(){return this._duration},set direction(n){this._setMember("direction",n)},get direction(){return this._direction},set easing(n){this._easingFunction=v(a(n));this._setMember("easing",n)},get easing(){return this._easing},set iterations(n){if((isNaN(n)||n<0)&&u())throw new TypeError("iterations must be non-negative, received: "+n);this._setMember("iterations",n)},get iterations(){return this._iterations}};var p=1,w=.5,s=0,lt={ease:t(.25,.1,.25,1),"ease-in":t(.42,0,1,1),"ease-out":t(0,0,.58,1),"ease-in-out":t(.42,0,.58,1),"step-start":i(1,p),"step-middle":i(1,w),"step-end":i(1,s)},r=null,e="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",at=new RegExp("cubic-bezier\\("+e+","+e+","+e+","+e+"\\)"),vt=/steps\(\s*(\d+)\s*\)/,yt=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,b=0,h=1,o=2,k=3;n.cloneTimingInput=d;n.makeTiming=l;n.numericTimingToObject=g;n.normalizeTimingInput=nt;n.calculateActiveDuration=tt;n.calculateIterationProgress=st;n.calculatePhase=y;n.normalizeEasing=a;n.parseEasingFunction=v}(t),function(n){function i(n,t){return n in f?f[n][t]||t:t}function e(n){return"display"===n||0===n.lastIndexOf("animation",0)||0===n.lastIndexOf("transition",0)}function o(n,t,r){var f,s,o,c;if(!e(n))if(f=h[n],f){u.style[n]=t;for(s in f)o=f[s],c=u.style[o],r[o]=i(o,c)}else r[n]=i(n,t)}function r(n){var e=[],u,t,i,f,r;for(u in n)if(!(u in["easing","offset","composite"]))for(t=n[u],Array.isArray(t)||(t=[t]),f=t.length,r=0;r<f;r++)i={},i.offset="offset"in n?n.offset:1==f?1:r/(f-1),"easing"in n&&(i.easing=n.easing),"composite"in n&&(i.composite=n.composite),i[u]=t[r],e.push(i);return e.sort(function(n,t){return n.offset-t.offset}),e}function s(t){function h(){var r=i.length,f,t;null==i[r-1].offset&&(i[r-1].offset=1);r>1&&null==i[0].offset&&(i[0].offset=0);for(var u=0,e=i[0].offset,n=1;n<r;n++)if(f=i[n].offset,null!=f){for(t=1;t<n-u;t++)i[u+t].offset=e+(f-e)*t/(n-u);u=n;e=f}}var u;if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t));Array.isArray(t)||(t=r(t));for(var i=t.map(function(t){var r={},u,i;for(u in t){if(i=t[u],"offset"==u){if(null!=i){if(i=Number(i),!isFinite(i))throw new TypeError("Ke
61yframe offsets must be numbers.");if(i<0||i>1)throw new TypeError("Keyframe offsets must be between 0 and 1.");}}else if("composite"==u){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".");}else i="easing"==u?n.normalizeEasing(i):""+i;o(u,i,r)}return void 0==r.offset&&(r.offset=null),void 0==r.easing&&(r.easing="linear"),r}),e=!0,s=-1/0,f=0;f<i.length;f++)if(u=i[f].offset,null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else e=!1;return i=i.filter(function(n){return n.offset>=0&&n.offset<=1}),e||h(),i}var h={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},u=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t={thin:"1px",medium:"3px",thick:"5px"},f={borderBottomWidth:t,borderLeftWidth:t,borderRightWidth:t,borderTopWidth:t,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:t,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};n.convertToArrayForm=r;n.normalizeKeyframes=s}(t),function(n){var t={};n.isDeprecated=function(n,i,r,u){var e=u?"are":"is",o=new Date,f=new Date(i);return f.setMonth(f.getMonth()+3),!(o<f&&(n in t||console.warn("Web Animations: "+n+" "+e+" deprecated and will stop working on "+f.toDateString()+". "+r),t[n]=!0,1))};n.deprecated=function(t,i,r,u){var f=u?"are":"is";if(n.isDeprecated(t,i,r,u))throw new Error(t+" "+f+" no longer supported. "+r);}}(t),function(){if(document.documentElement.animate){var r=document.documentElement.animate([],0),i=!0;if(r&&(i=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===r[n]&&(i=!0)})),!i)return}!function(n,t){function i(n){for(var t,f,e,u,i={},r=0;r<n.length;r++)for(t in n[r])"offset"!=t&&"easing"!=t&&"composite"!=t&&(f={offset:n[r].offset,easing:n[r].easing,value:n[r][t]},i[t]=i[t]||[],i[t].push(f));for(e in i)if(u=i[e],0!=u[0].offset||1!=u[u.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"};return i}function r(i){var s=[],o,r,u;for(o in i)for(r=i[o],u=0;u<r.length-1;u++){var f=u,e=u+1,h=r[f].offset,c=r[e].offset,l=h,a=c;0==u&&(l=-1/0,0==c&&(e=f));u==r.length-2&&(a=1/0,1==h&&(f=e));s.push({applyFrom:l,applyTo:a,startOffset:r[f].offset,endOffset:r[e].offset,easingFunction:n.parseEasingFunction(r[f].easing),property:o,interpolation:t.propertyInterpolation(o,r[f].value,r[e].value)})}return s.sort(function(n,t){return n.startOffset-t.startOffset}),s}t.convertEffectInput=function(u){var e=n.normalizeKeyframes(u),f=i(e),o=r(f);
61return function(n,i){if(null!=i)o.filter(function(n){return i>=n.applyFrom&&i<n.applyTo}).forEach(function(r){var f=i-r.startOffset,u=r.endOffset-r.startOffset,e=0==u?0:r.easingFunction(f/u);t.apply(n,r.property,r.interpolation(e))});else for(var r in f)"offset"!=r&&"easing"!=r&&"composite"!=r&&t.clear(n,r)}}}(t,n),function(n,t){function u(n){return n.replace(/-(.)/g,function(n,t){return t.toUpperCase()})}function f(n,t,r){i[r]=i[r]||[];i[r].push([n,t])}function e(n,t,i){for(var r=0;r<i.length;r++)f(n,t,u(i[r]))}function o(f,e,o){var c=f,s,h,l,a,v,y;for(/-/.test(f)&&!n.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(c=u(f)),"initial"!=e&&"initial"!=o||("initial"==e&&(e=r[c]),"initial"==o&&(o=r[c])),s=e==o?[]:i[c],h=0;s&&h<s.length;h++)if(l=s[h][0](e),a=s[h][0](o),void 0!==l&&void 0!==a&&(v=s[h][1](l,a),v))return y=t.Interpolation.apply(null,v),function(n){return 0==n?e:1==n?o:y(n)};return t.Interpolation(!1,!0,function(n){return n?o:e})}var i={},r;t.addPropertiesHandler=e;r={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=o}(t,n),function(n,t){function i(t){var i=n.calculateActiveDuration(t),r=function(r){return n.calculateIterationProgress(i,r,t)};return r._totalDuration=t.delay+i+t.endDelay,r}t.KeyframeEffect=function(r,u,f,e){var s,h=i(n.normalizeTimingInput(f)),c=t.convertEffectInput(u),o=function(){c(r,s)};return o._update=function(n){return null!==(s=h(n))},o._clear=function(){c(r,null)},o._hasSameTarget=function(n){return r===n},o._target=r,o._totalDuration=h._totalDuration,o._id=e,o}}(t,n),function(n){function o(n,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(u in n||(n[u]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(n.navigator.userAgent)),n[u])}function f(n,t,i){i.enumerable=!0;i.configurable=!0;Object.defineProperty(n,t,i)}function t(n){var t,i;for(this._element=n,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=n.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=o(window,n),this._savedTransformAttr=null,t=0;t<this._style.length;t++)i=this._style[t],this._surrogateStyle[i]=this._style[i];this._updateIndices()}function s(n){if(!n._webAnimationsPatchedStyle){var i=new t(n);try{f(n,"style",{get:function(){return i}})}catch(i){n.style._set=function(t,i){n.style[t]=i};n.style._clear=function(t){n.style[t]=""}}n._webAnimationsPatchedStyle=n.style}}var u="_webAnimationsUpdateSvgTransformAttr",h={cssText:1,length:1,parentRule:1},e={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},c={removeProperty:1,setProperty:1},i,r;t.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(n){for(var r,i={},t=0;t<this._surrogateStyle.length;t++)i[this._surrogateStyle[t]]=!0;for(this._surrogateStyle.cssText=n,this._updateIndices(),t=0;t<this._surrogateStyle.length;t++)i[this._surrogateStyle[t]]=!0;for(r in i)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(n){return function(){return this._surrogateStyle[n]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,i){this._style[t]=i;this._isAnimatedProperty[t]=!0;this._updateSvgTransformAttr&&"transform"==n.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",n.transformToSvgMatrix(i)))},_clear:function(t){this._style[t]=this._surrogateStyle[t];this._updateSvgTransformAttr&&"transform"==n.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null);delete this._isAnimatedProperty[t]}};for(i in e)t.prototype[i]=function(n,t){return function(){var i=this._surrogateStyle[n].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[n].apply(this._style,arguments),this._updateIndices()),i}}(i,i in c);for(r in document.documentElement.style)r in h||r in e||function(n){f(t.prototype,n,{get:function(){return this._surrogateStyle[n]},set:function(t){this._surrogateStyle[n]=t;this._updateIndices();this._isAnimatedProperty[n]||(this._style[n]=t)}})}(r);n.apply=function(t,i,r){s(t);t.style._set(n.propertyName(i),r)};n.clear=function(t,i){t._webAnimationsPatchedStyle&&t.style._clear(n.propertyName(i))}}(n),function(n){window.Element.prototype.animate=function(t,i){var r="";return i&&i.id&&(r=i.id),n.timeline._play(n.KeyframeEffect(this,t,i,r))}}(n),function(n){function t(n,i,r){if("number"==typeof n&&"number"==typeof i)return n*(1-r)+i*r;if("boolean"==typeof n&&"boolean"==typeof i)return r<.5?n:i;if(n.length==i.length){for(var f=[],u=0;u<n.length;u++)f.push(t(n[u],i[u],r));return f}throw"Mismatched interpolation arguments "+n+":"+i;}n.Interpolation=function(n,i,r){return function(u){return r(t(n,i,u))}}}(n),function(n){function t(n,t,i){return Math.max(Math.min(n,i),t)}function i(i,r,u){var f=n.dot(i,r),e;if(f=t(f,-1,1),e=[],1===f)e=i;else for(var s=Math.acos(f),h=1*Math.sin(u*s)/Math.sqrt(1-f*f),o=0;o<4;
61o++)e.push(i[o]*(Math.cos(u*s)-f*h)+r[o]*h);return e}var r=function(){function n(n,t){for(var r,u,f=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],i=0;i<4;i++)for(r=0;r<4;r++)for(u=0;u<4;u++)f[i][r]+=t[i][u]*n[u][r];return f}function t(n){return 0==n[0][2]&&0==n[0][3]&&0==n[1][2]&&0==n[1][3]&&0==n[2][0]&&0==n[2][1]&&1==n[2][2]&&0==n[2][3]&&0==n[3][2]&&1==n[3][3]}function i(i,r,u,f,e){for(var y,v,o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)o[s][3]=e[s];for(s=0;s<3;s++)for(v=0;v<3;v++)o[3][s]+=i[v]*o[v][s];var h=f[0],c=f[1],l=f[2],p=f[3],a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(a[0][0]=1-2*(c*c+l*l),a[0][1]=2*(h*c-l*p),a[0][2]=2*(h*l+c*p),a[1][0]=2*(h*c+l*p),a[1][1]=1-2*(h*h+l*l),a[1][2]=2*(c*l-h*p),a[2][0]=2*(h*l-c*p),a[2][1]=2*(c*l+h*p),a[2][2]=1-2*(h*h+c*c),o=n(o,a),y=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],u[2]&&(y[2][1]=u[2],o=n(o,y)),u[1]&&(y[2][1]=0,y[2][0]=u[0],o=n(o,y)),u[0]&&(y[2][0]=0,y[1][0]=u[0],o=n(o,y)),s=0;s<3;s++)for(v=0;v<3;v++)o[s][v]*=r[s];return t(o)?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])}return i}();n.composeMatrix=r;n.quat=i}(n),function(n,t){n.sequenceNumber=0;var i=function(n,t,i){this.target=n;this.currentTime=t;this.timelineTime=i;this.type="finish";this.bubbles=!1;this.cancelable=!1;this.currentTarget=n;this.defaultPrevented=!1;this.eventPhase=Event.AT_TARGET;this.timeStamp=Date.now()};t.Animation=function(t){this.id="";t&&t._id&&(this.id=t._id);this._sequenceNumber=n.sequenceNumber++;this._currentTime=0;this._startTime=null;this._paused=!1;this._playbackRate=1;this._inTimeline=!0;this._finishedFlag=!0;this.onfinish=null;this._finishHandlers=[];this._effect=t;this._inEffect=this._effect._update(0);this._idle=!0;this._currentTimePending=!1};t.Animation.prototype={_ensureAlive:function(){this._inEffect=this.playbackRate<0&&0===this.currentTime?this._effect._update(-1):this._effect._update(this.currentTime);this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(n,t){n!=this._currentTime&&(this._currentTime=n,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(n){n=+n;isNaN(n)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-n/this._playbackRate),this._currentTimePending=!1,this._currentTime!=n&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(n,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(n){n=+n;isNaN(n)||this._paused||this._idle||(this._startTime=n,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(n){if(n!=this._playbackRate){var i=this.currentTime;this._playbackRate=n;this._startTime=null;"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this));null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1;(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null);this._finishedFlag=!1;this._idle=!1;this._ensureAlive();t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0;this._startTime=null;this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1;this.play()},addEventListener:function(n,t){"function"==typeof t&&"finish"==n&&this._finishHandlers.push(t)},removeEventListener:function(n,t){if("finish"==n){var i=this._finishHandlers.indexOf(t);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(n){if(this._isFinished){if(!this._finishedFlag){var t=new i(this,this._currentTime,n),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){r.forEach(function(n){n.call(t.target,t)})},0);this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(n,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=n-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((n-this._startTime)*this.playbackRate));t&&(this._currentTimePending=!1,this._fireEvents(n))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var n=this._effect._target;return n._activeAnimations||(n._activeAnimations=[]),n._activeAnimations},_markTarget:function(){var n=this._targetAnimations();-1===n.indexOf(this)&&n.push(this)},_unmarkTarget:function(){var n=this._targetAnimations(),t=n.indexOf(this);-1!==t&&n.splice(t,1)}}}(t,n),function(n,t){function a(n){var t=u;u=[];n<i.currentTime&&(n=i.currentTime);i._animations.sort(s);i._animations=l(n,!0,i._animations)[0];t.forEach(function(t){t[1](n)});c();p=void 0}function s(n,t){return n._sequenceNumber-t._sequenceNumber}function h(){this._animations=[];this.currentTime=window.performance&&performance.now?performance.now():0}function c(){r.forEach(function(n){n()});r.length=0}function l(n,i,u){o=!0;e=!1;t.timeline.currentTime=n;f=!1;var s=[],h=[],c=[],l=[];return u.forEach(function(t){t._tick(n,i);t._inEffect?(h.push(t._effect),t._markTarget()):(s.push(t._effect),t._unmarkTarget());t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r;r?c.push(t):l.push(t)}),r.push.apply(r,s),r.push.apply(r,h),f&&requestAnimationFrame(function(){}),o=!1,[c,l]}var v=window.requestAnimationFrame,u=[],y=0;window.requestAnimationFrame=function(n){var t=y++;return 0==u.length&&v(a),u.push([t,n]),t};window.cancelAnimationFrame=function(n){u.forEach(function(t){t[0]==n&&(t[1]=function(){})})};h.prototype={_play:function(i){i._timing=n.normalizeTimingInput(i.timing);var r=new t.Animation(i);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var p=void 0,f=!1,e=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),e=!0),e};t.applyDirtiedAnimation=function(n){if(!o){n._markTarget();var r=n._targetAnimations();r.sort(s);
61l(t.timeline.currentTime,!1,r.slice())[1].forEach(function(n){var t=i._animations.indexOf(n);-1!==t&&i._animations.splice(t,1)});c()}};var r=[],o=!1,i=new h;t.timeline=i}(t,n),function(n){function i(n,t){for(var r=0,i=0;i<n.length;i++)r+=n[i]*t[i];return r}function u(n,t){return[n[0]*t[0]+n[4]*t[1]+n[8]*t[2]+n[12]*t[3],n[1]*t[0]+n[5]*t[1]+n[9]*t[2]+n[13]*t[3],n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]*t[3],n[3]*t[0]+n[7]*t[1]+n[11]*t[2]+n[15]*t[3],n[0]*t[4]+n[4]*t[5]+n[8]*t[6]+n[12]*t[7],n[1]*t[4]+n[5]*t[5]+n[9]*t[6]+n[13]*t[7],n[2]*t[4]+n[6]*t[5]+n[10]*t[6]+n[14]*t[7],n[3]*t[4]+n[7]*t[5]+n[11]*t[6]+n[15]*t[7],n[0]*t[8]+n[4]*t[9]+n[8]*t[10]+n[12]*t[11],n[1]*t[8]+n[5]*t[9]+n[9]*t[10]+n[13]*t[11],n[2]*t[8]+n[6]*t[9]+n[10]*t[10]+n[14]*t[11],n[3]*t[8]+n[7]*t[9]+n[11]*t[10]+n[15]*t[11],n[0]*t[12]+n[4]*t[13]+n[8]*t[14]+n[12]*t[15],n[1]*t[12]+n[5]*t[13]+n[9]*t[14]+n[13]*t[15],n[2]*t[12]+n[6]*t[13]+n[10]*t[14]+n[14]*t[15],n[3]*t[12]+n[7]*t[13]+n[11]*t[14]+n[15]*t[15]]}function t(n){var t=n.rad||0;return((n.deg||0)/360+(n.grad||0)/400+(n.turn||0))*2*Math.PI+t}function f(n){var s,l,a,i,r,u,f;switch(n.t){case"rotatex":return i=t(n.d[0]),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotatey":return i=t(n.d[0]),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotatez":return i=t(n.d[0]),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var r=n.d[0],u=n.d[1],f=n.d[2],i=t(n.d[3]),h=r*r+u*u+f*f;0===h?(r=1,u=0,f=0):1!==h&&(s=Math.sqrt(h),r/=s,u/=s,f/=s);var c=Math.sin(i/2),o=c*Math.cos(i/2),e=c*c;return[1-2*(u*u+f*f)*e,2*(r*u*e+f*o),2*(r*f*e-u*o),0,2*(r*u*e-f*o),1-2*(r*r+f*f)*e,2*(u*f*e+r*o),0,2*(r*f*e+u*o),2*(u*f*e-r*o),1-2*(r*r+u*u)*e,0,0,0,0,1];case"scale":return[n.d[0],0,0,0,0,n.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[n.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,n.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,n.d[0],0,0,0,0,1];case"scale3d":return[n.d[0],0,0,0,0,n.d[1],0,0,0,0,n.d[2],0,0,0,0,1];case"skew":return l=t(n.d[0]),a=t(n.d[1]),[1,Math.tan(a),0,0,Math.tan(l),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return i=t(n.d[0]),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return i=t(n.d[0]),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return r=n.d[0].px||0,u=n.d[1].px||0,[1,0,0,0,0,1,0,0,0,0,1,0,r,u,0,1];case"translatex":return r=n.d[0].px||0,[1,0,0,0,0,1,0,0,0,0,1,0,r,0,0,1];case"translatey":return u=n.d[0].px||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,u,0,1];case"translatez":return f=n.d[0].px||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,f,1];case"translate3d":var r=n.d[0].px||0,u=n.d[1].px||0,f=n.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,r,u,f,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,n.d[0].px?-1/n.d[0].px:0,0,0,0,1];case"matrix":return[n.d[0],n.d[1],0,0,n.d[2],n.d[3],0,0,0,0,1,0,n.d[4],n.d[5],0,1];case"matrix3d":return n.d}}function r(n){return 0===n.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:n.map(f).reduce(u)}function e(n){return[o(r(n))]}var o=function(){function u(n){return n[0][0]*n[1][1]*n[2][2]+n[1][0]*n[2][1]*n[0][2]+n[2][0]*n[0][1]*n[1][2]-n[0][2]*n[1][1]*n[2][0]-n[1][2]*n[2][1]*n[0][0]-n[2][2]*n[0][1]*n[1][0]}function f(n){for(var w,i,t=1/u(n),r=n[0][0],f=n[0][1],e=n[0][2],o=n[1][0],s=n[1][1],h=n[1][2],c=n[2][0],l=n[2][1],a=n[2][2],v=[[(s*a-h*l)*t,(e*l-f*a)*t,(f*h-e*s)*t,0],[(h*c-o*a)*t,(r*a-e*c)*t,(e*o-r*h)*t,0],[(o*l-s*c)*t,(c*f-r*l)*t,(r*s-f*o)*t,0]],y=[],p=0;p<3;p++){for(w=0,i=0;i<3;i++)w+=n[3][i]*v[i][p];y.push(w)}return y.push(1),v.push(y),v}function e(n){return[[n[0][0],n[1][0],n[2][0],n[3][0]],[n[0][1],n[1][1],n[2][1],n[3][1]],[n[0][2],n[1][2],n[2][2],n[3][2]],[n[0][3],n[1][3],n[2][3],n[3][3]]]}function o(n,t){for(var f,i,u=[],r=0;r<4;r++){for(f=0,i=0;i<4;i++)f+=n[i]*t[i][r];u.push(f)}return u}function t(t){var i=n(t);return[t[0]/i,t[1]/i,t[2]/i]}function n(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2])}function r(n,t,i,r){return[i*n[0]+r*t[0],i*n[1]+r*t[1],i*n[2]+r*t[2]]}function s(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function h(h){var v=[h.slice(0,4),h.slice(4,8),h.slice(8,12),h.slice(12,16)],b,d,w,nt,c,p,y,tt,a,l,k,g;if(1!==v[3][3])return null;for(b=[],a=0;a<4;a++)b.push(v[a].slice());for(a=0;a<3;a++)b[a][3]=0;if(0===u(b))return null;if(w=[],v[0][3]||v[1][3]||v[2][3]?(w.push(v[0][3]),w.push(v[1][3]),w.push(v[2][3]),w.push(v[3][3]),d=o(w,e(f(b)))):d=[0,0,0,1],nt=v[3].slice(0,3),c=[],c.push(v[0].slice(0,3)),p=[],p.push(n(c[0])),c[0]=t(c[0]),y=[],c.push(v[1].slice(0,3)),y.push(i(c[0],c[1])),c[1]=r(c[1],c[0],1,-y[0]),p.push(n(c[1])),c[1]=t(c[1]),y[0]/=p[1],c.push(v[2].slice(0,3)),y.push(i(c[0],c[2])),c[2]=r(c[2],
61c[0],1,-y[1]),y.push(i(c[1],c[2])),c[2]=r(c[2],c[1],1,-y[2]),p.push(n(c[2])),c[2]=t(c[2]),y[1]/=p[2],y[2]/=p[2],tt=s(c[1],c[2]),i(c[0],tt)<0)for(a=0;a<3;a++)p[a]*=-1,c[a][0]*=-1,c[a][1]*=-1,c[a][2]*=-1;return g=c[0][0]+c[1][1]+c[2][2]+1,g>.0001?(l=.5/Math.sqrt(g),k=[(c[2][1]-c[1][2])*l,(c[0][2]-c[2][0])*l,(c[1][0]-c[0][1])*l,.25/l]):c[0][0]>c[1][1]&&c[0][0]>c[2][2]?(l=2*Math.sqrt(1+c[0][0]-c[1][1]-c[2][2]),k=[.25*l,(c[0][1]+c[1][0])/l,(c[0][2]+c[2][0])/l,(c[2][1]-c[1][2])/l]):c[1][1]>c[2][2]?(l=2*Math.sqrt(1+c[1][1]-c[0][0]-c[2][2]),k=[(c[0][1]+c[1][0])/l,.25*l,(c[1][2]+c[2][1])/l,(c[0][2]-c[2][0])/l]):(l=2*Math.sqrt(1+c[2][2]-c[0][0]-c[1][1]),k=[(c[0][2]+c[2][0])/l,(c[1][2]+c[2][1])/l,.25*l,(c[1][0]-c[0][1])/l]),[nt,p,y,k,d]}return h}();n.dot=i;n.makeMatrixDecomposition=e;n.transformListToMatrix=r}(n),function(n){function t(n,t){var i=n.exec(t);if(i)return i=n.ignoreCase?i[0].toLowerCase():i[0],[i,t.substr(i.length)]}function i(n,t){t=t.replace(/^\s*/,"");var i=n(t);if(i)return[i[0],i[1].replace(/^\s*/,"")]}function u(n,r,u){var e,f;for(n=i.bind(null,n),e=[];;){if(f=n(u),!f)return[e,u];if(e.push(f[0]),u=f[1],!(f=t(r,u))||""==f[1])return[e,u];u=f[1]}}function f(n,t){for(var u,r=0,i=0;i<t.length&&(!/\s|,/.test(t[i])||0!=r);i++)if("("==t[i])r++;else if(")"==t[i]&&(r--,0==r&&i++,r<=0))break;return u=n(t.substr(0,i)),void 0==u?void 0:[u,t.substr(i)]}function e(n,t){for(var i=n,r=t;i&&r;)i>r?i%=r:r%=i;return n*t/(i+r)}function o(n){return function(t){var i=n(t);return i&&(i[0]=void 0),i}}function s(n,t){return function(i){return n(i)||[t,i]}}function h(t,i){for(var r,f=[],u=0;u<t.length;u++){if(r=n.consumeTrimmed(t[u],i),!r||""==r[0])return;void 0!==r[0]&&f.push(r[0]);i=r[1]}if(""==i)return f}function r(n,t,i,r,u){for(var f,s=[],h=[],c=[],l=e(r.length,u.length),o=0;o<l;o++){if(f=t(r[o%r.length],u[o%u.length]),!f)return;s.push(f[0]);h.push(f[1]);c.push(f[2])}return[s,h,function(t){var r=t.map(function(n,t){return c[t](n)}).join(i);return n?n(r):r}]}function c(n,t,i){for(var u,f=[],e=[],o=[],s=0,r=0;r<i.length;r++)"function"==typeof i[r]?(u=i[r](n[s],t[s++]),f.push(u[0]),e.push(u[1]),o.push(u[2])):!function(n){f.push(!1);e.push(!1);o.push(function(){return i[n]})}(r);return[f,e,function(n){for(var i="",t=0;t<n.length;t++)i+=o[t](n[t]);return i}]}n.consumeToken=t;n.consumeTrimmed=i;n.consumeRepeated=u;n.consumeParenthesised=f;n.ignore=o;n.optional=s;n.consumeList=h;n.mergeNestedRepeated=r.bind(null,null);n.mergeWrappedNestedRepeated=r;n.mergeList=c}(n),function(n){function t(t){function u(t){var r=n.consumeToken(/^inset/i,t);return r?(i.inset=!0,r):(r=n.consumeLengthOrPercent(t))?(i.lengths.push(r[0]),r):(r=n.consumeColor(t),r?(i.color=r[0],r):void 0)}var i={inset:!1,lengths:[],color:null},r=n.consumeRepeated(u,/^/,t);if(r&&r[0].length)return[i,r[1]]}function i(i){var r=n.consumeRepeated(t,/^,/,i);if(r&&""==r[1])return r[0]}function r(t,i){for(var u,f;t.lengths.length<Math.max(t.lengths.length,i.lengths.length);)t.lengths.push({px:0});for(;i.lengths.length<Math.max(t.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(t.inset==i.inset&&!!t.color==!!i.color){for(var e,o=[],s=[[],0],h=[[],0],r=0;r<t.lengths.length;r++)u=n.mergeDimensions(t.lengths[r],i.lengths[r],2==r),s[0].push(u[0]),h[0].push(u[1]),o.push(u[2]);return t.color&&i.color&&(f=n.mergeColors(t.color,i.color),s[1]=f[0],h[1]=f[1],e=f[2]),[s,h,function(n){for(var r=t.inset?"inset ":" ",i=0;i<o.length;i++)r+=o[i](n[0][i])+" ";return e&&(r+=e(n[1])),r}]}}function u(t,i,r,u){function e(n){return{inset:n,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var h,c,o=[],s=[],f=0;f<r.length||f<u.length;f++)h=r[f]||e(u[f].inset),c=u[f]||e(r[f].inset),o.push(h),s.push(c);return n.mergeNestedRepeated(t,i,o,s)}var f=u.bind(null,r,", ");n.addPropertiesHandler(i,f,["box-shadow","text-shadow"])}(n),function(n){function i(n){return n.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(n,t,i){return Math.min(t,Math.max(n,i))}function t(n){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(n))return Number(n)}function e(n,t){return[n,t,i]}function o(n,t){if(0!=n)return u(0,1/0)(n,t)}function s(n,t){return[n,t,function(n){return Math.round(r(1,1/0,n))}]}function u(n,t){return function(u,f){return[u,f,function(u){return i(r(n,t,u))}]}}function f(n){var r=n.trim().split(/\s*[\s,]\s*/),u,i,f;if(0!==r.length){for(u=[],i=0;i<r.length;i++){if(f=t(r[i]),void 0===f)return;u.push(f)}return u}}function h(n,t){if(n.length==t.length)return[n,t,function(n){return n.map(i).join(" ")}]}function c(n,t){return[n,t,Math.round]}n.clamp=r;n.addPropertiesHandler(f,h,["stroke-dasharray"]);n.addPropertiesHandler(t,u(0,1/0),["border-image-width","line-height"]);n.addPropertiesHandler(t,u(0,1),["opacity","shape-image-threshold"]);n.addPropertiesHandler(t,o,["flex-grow","flex-shrink"]);n.addPropertiesHandler(t,s,["orphans","widows"]);n.addPropertiesHandler(t,c,["z-index"]);n.parseNumber=t;n.parseNumberList=f;n.mergeNumbers=e;n.numberToString=i}(n),function(n){function t(n,t){if("visible"==n||"visible"==t)return[0,1,function(i){return i<=0?n:i>=1?t:"visible"}]}n.addPropertiesHandler(String,t,["visibility"])}(n),function(n){function r(n){var u,i,r;return n=n.trim(),t.fillStyle="#000",t.fillStyle=n,u=t.fillStyle,(t.fillStyle="#fff",t.fillStyle=n,u==t.fillStyle)?(t.fillRect(0,0,1,1),i=t.getImageData(0,0,1,1).data,t.clearRect(0,0,1,1),r=i[3]/255,[i[0]*r,i[1]*r,i[2]*r,r]):void 0}function u(t,i){return[t,i,function(t){function r(n){return Math.max(0,Math.min(255,n))}if(t[3])for(var i=0;i<3;i++)t[i]=Math.round(r(t[i]/t[3]));return t[3]=n.numberToString(n.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),t;i.width=i.height=1;t=i.getContext("2d");n.addPropertiesHandler(r,u,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]);n.consumeColor=n.consumeParenthesised.bind(null,r);n.mergeColors=u}(n),function(n){function h(n){function i(){var i=o.exec(n);t=i?i[0]:void 0}function e(){var n=Number(t);return i(),n}function r(){if("("!==t)return e();i();var n=f();return")"!==t?NaN:(i(),n)}function u(){for(var f,u,n=r();"*"===t||"/"===t;)f=t,i(),u=r(),"*"===f?n*=u:n/=u;return n}function f(){for(var f,r,n=u();"+"===t||"-"===t;)f=t,i(),r=u(),"+"===f?n+=r:n-=r;return n}var t,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return i(),f()}function i(n,t){var i,e,o;if("0"==(t=t.trim().toLowerCase())&&"px".search(n)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");i={};t=t.replace(n,function(n){return i[n]=null,"U"+n});for(var s="U("+n.source+")",u=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+s,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],r=0;r<f.length;)f[r].test(u)?(u=u.replace(f[r],"$1"),r=0):r++;
61if("D"==u){for(e in i){if(o=h(t.replace(new RegExp("U"+e,"g"),"").replace(new RegExp(s,"g"),"*0")),!isFinite(o))return;i[e]=o}return i}}}function u(n,t){return r(n,t,!0)}function r(t,i,r){var f,u=[];for(f in t)u.push(f);for(f in i)u.indexOf(f)<0&&u.push(f);return t=u.map(function(n){return t[n]||0}),i=u.map(function(n){return i[n]||0}),[t,i,function(t){var i=t.map(function(i,f){return 1==t.length&&r&&(i=Math.max(i,0)),n.numberToString(i)+u[f]}).join(" + ");return t.length>1?"calc("+i+")":i}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",e=i.bind(null,new RegExp(f,"g")),t=i.bind(null,new RegExp(f+"|%","g")),c=i.bind(null,/deg|rad|grad|turn/g);n.parseLength=e;n.parseLengthOrPercent=t;n.consumeLengthOrPercent=n.consumeParenthesised.bind(null,t);n.parseAngle=c;n.mergeDimensions=r;var l=n.consumeParenthesised.bind(null,e),a=n.consumeRepeated.bind(void 0,l,/^/),o=n.consumeRepeated.bind(void 0,a,/^,/);n.consumeSizePairList=o;var v=function(n){var t=o(n);if(t&&""==t[1])return t[0]},s=n.mergeNestedRepeated.bind(void 0,u," "),y=n.mergeNestedRepeated.bind(void 0,s,",");n.mergeNonNegativeSizePair=s;n.addPropertiesHandler(v,y,["background-size"]);n.addPropertiesHandler(t,u,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]);n.addPropertiesHandler(t,r,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(n){function r(t){return n.consumeLengthOrPercent(t)||n.consumeToken(/^auto/,t)}function t(t){var i=n.consumeList([n.ignore(n.consumeToken.bind(null,/^rect/)),n.ignore(n.consumeToken.bind(null,/^\(/)),n.consumeRepeated.bind(null,r,/^,/),n.ignore(n.consumeToken.bind(null,/^\)/))],t);if(i&&4==i[0].length)return i[0]}function u(t,i){return"auto"==t||"auto"==i?[!0,!1,function(r){var u=r?t:i,f;return"auto"==u?"auto":(f=n.mergeDimensions(u,u),f[2](f[0]))}]:n.mergeDimensions(t,i)}function f(n){return"rect("+n+")"}var i=n.mergeWrappedNestedRepeated.bind(null,f,u,", ");n.parseBox=t;n.mergeBoxes=i;n.addPropertiesHandler(t,i,["clip"])}(n),function(n){function i(n){return function(i){var r=0;return n.map(function(n){return n===t?i[r++]:n})}}function u(n){return n}function l(t){var s,h,l,f,o,u,b,a,v;if("none"==(t=t.toLowerCase().trim()))return[];for(var i,y=/\s*(\w+)\(([^)]*)\)/g,p=[],w=0;i=y.exec(t);){if(i.index!=w)return;if(w=i.index+i[0].length,s=i[1],h=c[s],!h)return;if(l=i[2].split(","),f=h[0],f.length<l.length)return;for(o=[],u=0;u<f.length;u++){if(a=l[u],v=f[u],void 0===(b=a?{A:function(t){return"0"==t.trim()?e:n.parseAngle(t)},N:n.parseNumber,T:n.parseLengthOrPercent,L:n.parseLength}[v.toUpperCase()](a):{a:e,n:o[0],t:r}[v]))return;o.push(b)}if(p.push({t:s,d:o}),y.lastIndex==t.length)return p}}function f(n){return n.toFixed(6).replace(".000000","")}function o(t,i){var r,u;return t.decompositionPair!==i&&(t.decompositionPair=i,r=n.makeMatrixDecomposition(t)),i.decompositionPair!==t&&(i.decompositionPair=t,u=n.makeMatrixDecomposition(i)),null==r[0]||null==u[0]?[[!1],[!0],function(n){return n?i[0].d:t[0].d}]:(r[0].push(0),u[0].push(1),[r,u,function(t){var i=n.quat(r[0][3],u[0][3],t[5]);return n.composeMatrix(t[0],t[1],t[2],i,t[4]).map(f).join(",")}])}function s(n){return n.replace(/[xy]/,"")}function h(n){return n.replace(/(x|y|z|3d)?$/,"3d")}function a(t,i){var g=n.makeMatrixDecomposition&&!0,nt=!1,u,ft,r,et;if(!t.length||!i.length)for(t.length||(nt=!0,t=i,i=[]),u=0;u<t.length;u++){var p=t[u].t,ot=t[u].d,tt="scale"==p.substr(0,5)?1:0;i.push({t:p,d:ot.map(function(n){var t,i;if("number"==typeof n)return tt;t={};for(i in n)t[i]=tt;return t})})}var st=function(n,t){return"perspective"==n&&"perspective"==t||("matrix"==n||"matrix3d"==n)&&("matrix"==t||"matrix3d"==t)},l=[],a=[],f=[];if(t.length!=i.length){if(!g)return;r=o(t,i);l=[r[0]];a=[r[1]];f=[["matrix",[r[2]]]]}else for(u=0;
61u<t.length;u++){var p,e=t[u].t,w=i[u].t,v=t[u].d,b=i[u].d,k=c[e],d=c[w];if(st(e,w)){if(!g)return;r=o([t[u]],[i[u]]);l.push(r[0]);a.push(r[1]);f.push(["matrix",[r[2]]])}else{if(e==w)p=e;else if(k[2]&&d[2]&&s(e)==s(w))p=s(e),v=k[2](v),b=d[2](b);else{if(!k[1]||!d[1]||h(e)!=h(w)){if(!g)return;r=o(t,i);l=[r[0]];a=[r[1]];f=[["matrix",[r[2]]]];break}p=h(e);v=k[1](v);b=d[1](b)}for(var it=[],rt=[],ut=[],y=0;y<v.length;y++)ft="number"==typeof v[y]?n.mergeNumbers:n.mergeDimensions,r=ft(v[y],b[y]),it[y]=r[0],rt[y]=r[1],ut.push(r[2]);l.push(it);a.push(rt);f.push([p,ut])}}return nt&&(et=l,l=a,a=et),[l,a,function(n){return n.map(function(n,t){var i=n.map(function(n,i){return f[t][1][i](n)}).join(",");return"matrix"==f[t][0]&&16==i.split(",").length&&(f[t][0]="matrix3d"),f[t][0]+"("+i+")"}).join(" ")}]}var t=null,r={px:0},e={deg:0},c={matrix:["NNNNNN",[t,t,0,0,t,t,0,0,0,0,1,0,t,t,0,1],u],matrix3d:["NNNNNNNNNNNNNNNN",u],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",i([t,t,1]),u],scalex:["N",i([t,1,1]),i([t,1])],scaley:["N",i([1,t,1]),i([1,t])],scalez:["N",i([1,1,t])],scale3d:["NNN",u],skew:["Aa",null,u],skewx:["A",null,i([t,e])],skewy:["A",null,i([e,t])],translate:["Tt",i([t,t,r]),u],translatex:["T",i([t,r,r]),i([t,r])],translatey:["T",i([r,t,r]),i([r,t])],translatez:["L",i([r,r,t])],translate3d:["TTL",u]};n.addPropertiesHandler(l,a,["transform"]);n.transformToSvgMatrix=function(t){var i=n.transformListToMatrix(l(t));return"matrix("+f(i[0])+" "+f(i[1])+" "+f(i[4])+" "+f(i[5])+" "+f(i[12])+" "+f(i[13])+")"}}(n),function(n){function t(n){var t=Number(n);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}function i(t){return t=100*Math.round(t/100),t=n.clamp(100,900,t),400===t?"normal":700===t?"bold":String(t)}function r(n,t){return[n,t,i]}n.addPropertiesHandler(t,r,["font-weight"])}(n),function(n){function o(n){var t={};for(var i in n)t[i]=-n[i];return t}function i(t){return n.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||n.consumeLengthOrPercent(t)}function r(t,r){var e=n.consumeRepeated(i,/^/,r),u,o;if(e&&""==e[1]&&(u=e[0],(u[0]=u[0]||"center",u[1]=u[1]||"center",3==t&&(u[2]=u[2]||{px:0}),u.length==t)&&((/top|bottom/.test(u[0])||/left|right/.test(u[1]))&&(o=u[0],u[0]=u[1],u[1]=o),/left|right|center|Object/.test(u[0])&&/top|bottom|center|Object/.test(u[1]))))return u.map(function(n){return"object"==typeof n?n:f[n]})}function u(t){var e=n.consumeRepeated(i,/^/,t),r;if(e){for(var l=e[0],s=[{"%":50},{"%":50}],u=0,h=!1,c=0;c<l.length;c++)r=l[c],"string"==typeof r?(h=/bottom|right/.test(r),u={left:0,right:0,center:u,top:1,bottom:1}[r],s[u]=f[r],"center"==r&&u++):(h&&(r=o(r),r["%"]=(r["%"]||0)+100),s[u]=r,u++,h=!1);return[s,e[1]]}}function s(t){var i=n.consumeRepeated(u,/^,/,t);if(i&&""==i[1])return i[0]}var f={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},t=n.mergeNestedRepeated.bind(null,n.mergeDimensions," "),e;n.addPropertiesHandler(r.bind(null,3),t,["transform-origin"]);n.addPropertiesHandler(r.bind(null,2),t,["perspective-origin"]);n.consumePosition=u;n.mergeOffsetList=t;e=n.mergeNestedRepeated.bind(null,t,", ");n.addPropertiesHandler(s,e,["background-position","object-position"])}(n),function(n){function i(i){var e=n.consumeToken(/^circle/,i),r,f;return e&&e[0]?["circle"].concat(n.consumeList([n.ignore(n.consumeToken.bind(void 0,/^\(/)),t,n.ignore(n.consumeToken.bind(void 0,/^at/)),n.consumePosition,n.ignore(n.consumeToken.bind(void 0,/^\)/))],e[1])):(r=n.consumeToken(/^ellipse/,i),r&&r[0])?["ellipse"].concat(n.consumeList([n.ignore(n.consumeToken.bind(void 0,/^\(/)),u,n.ignore(n.consumeToken.bind(void 0,/^at/)),n.consumePosition,n.ignore(n.consumeToken.bind(void 0,/^\)/))],r[1])):(f=n.consumeToken(/^polygon/,i),f&&f[0]?["polygon"].concat(n.consumeList([n.ignore(n.consumeToken.bind(void 0,/^\(/)),n.optional(n.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),n.consumeSizePairList,n.ignore(n.consumeToken.bind(void 0,/^\)/))],f[1])):void 0)}function r(t,i){if(t[0]===i[0])return"circle"==t[0]?n.mergeList(t.slice(1),i.slice(1),["circle(",n.mergeDimensions," at ",n.mergeOffsetList,")"]):"ellipse"==t[0]?n.mergeList(t.slice(1),i.slice(1),["ellipse(",n.mergeNonNegativeSizePair," at ",n.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==i[1]?n.mergeList(t.slice(2),i.slice(2),["polygon(",t[1],e,")"]):void 0}var t=n.consumeParenthesised.bind(null,n.parseLengthOrPercent),u=n.consumeRepeated.bind(void 0,t,/^/),f=n.mergeNestedRepeated.bind(void 0,n.mergeDimensions," "),e=n.mergeNestedRepeated.bind(void 0,f,",");n.addPropertiesHandler(i,r,["shape-outside"])}
61(n),function(n){function t(n,t){t.concat([n]).forEach(function(t){t in document.documentElement.style&&(i[n]=t);r[t]=n})}var i={},r={};t("transform",["webkitTransform","msTransform"]);t("transformOrigin",["webkitTransformOrigin"]);t("perspective",["webkitPerspective"]);t("perspectiveOrigin",["webkitPerspectiveOrigin"]);n.propertyName=function(n){return i[n]||n};n.unprefixedPropertyName=function(n){return r[n]||n}}(n)}(),function(){var n,t,i;void 0===document.createElement("div").animate([]).oncancel&&(n=window.performance&&performance.now?function(){return performance.now()}:function(){return Date.now()},t=function(n,t,i){this.target=n;this.currentTime=t;this.timelineTime=i;this.type="cancel";this.bubbles=!1;this.cancelable=!1;this.currentTarget=n;this.defaultPrevented=!1;this.eventPhase=Event.AT_TARGET;this.timeStamp=Date.now()},i=window.Element.prototype.animate,window.Element.prototype.animate=function(r,u){var f=i.call(this,r,u),e,o,s;return f._cancelHandlers=[],f.oncancel=null,e=f.cancel,f.cancel=function(){e.call(this);var i=new t(this,null,n()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){r.forEach(function(n){n.call(i.target,i)})},0)},o=f.addEventListener,f.addEventListener=function(n,t){"function"==typeof t&&"cancel"==n?this._cancelHandlers.push(t):o.call(this,n,t)},s=f.removeEventListener,f.removeEventListener=function(n,t){if("cancel"==n){var i=this._cancelHandlers.indexOf(t);i>=0&&this._cancelHandlers.splice(i,1)}else s.call(this,n,t)},f})}(),function(n){var r=document.documentElement,t=null,u=!1,f,i,e;try{f=getComputedStyle(r).getPropertyValue("opacity");i="0"==f?"1":"0";t=r.animate({opacity:[i,i]},{duration:1});t.currentTime=0;u=getComputedStyle(r).getPropertyValue("opacity")==i}catch(n){}finally{t&&t.cancel()}u||(e=window.Element.prototype.animate,window.Element.prototype.animate=function(t,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=n.convertToArrayForm(t)),e.call(this,t,i)})}(t)}();jQuery(function(){});jQuery(document).ready(function(){function n(){return window.matchMedia("(min-width: 1025px)").matches}if(n()){jQuery(".nav-left-new-tab").removeClass("scroll-v");jQuery(document).on("mouseenter",".bob-nav-custom-dropdown span",function(){console.log("first hit");jQuery(".bob-custom-dropdown-list .nav-left-list").empty();jQuery(this).parents(".bob-nav-custom-dropdown").find(".bob-custom-dropdown-list .heading-class").each(function(n){var u=jQuery(this).text(),i=jQuery('<li><a href="#" class="nav-left-item" data-index="'+n+'">'+u+"<\/a><\/li>"),t=jQuery(this).next(".bob-inner-menu-expand"),r;t.find(".bob-line-arrow-orange-link").length>0&&(r=t.find(".bob-line-arrow-orange-link").attr("href"),i.find("a.nav-left-item").attr("href",r),t.find(".bob-line-arrow-orange-link").addClass("hide-all-link"));jQuery(".bob-custom-dropdown-list .nav-left-list").append(i)});var n=jQuery(".bob-custom-dropdown-list .nav-left-item:eq(0)").text();jQuery(".bob-custom-dropdown-list .nav-left-list li:nth-child(1)").addClass("active");jQuery(".bob-inner-menu-expand").hide();jQuery(".bob-custom-dropdown-list .navcol").hide();jQuery(".nav-left-list").parents(".bob-custom-dropdown-list").find(".bob-inner-list-nav h6").each(function(){jQuery(this).text()==n&&(jQuery(this).next(".bob-inner-menu-expand").show(),jQuery(this).parents(".navcol").show())});jQuery(".bob-inner-menu-expand ul").each(function(){var n=jQuery(this).children("li");n.length>15&&(n.slice(15).hide(),jQuery(this).find("li.nav-view-all-btn").show(),jQuery(this).find(".bob-line-arrow-orange-link").removeClass("hide-all-link").addClass("show-all-link"))})});jQuery(".bob-custom-dropdown-list .heading-class").hide();jQuery(".bob-custom-dropdown-list .navcol").hide();jQuery(".bob-custom-dropdown-list .navcol ").each(function(){jQuery(this).hasClass("no-h6-tag")?jQuery(this).removeClass("col-sm-3").addClass("col-sm-4"):jQuery(this).removeClass("col-sm-3").addClass("col-sm-8")});jQuery(document).on("mouseenter",".nav-left-item",function(n){n.preventDefault();var i=jQuery(this).data("index")+1,t=jQuery(this).text();jQuery(".bob-inner-menu-expand").hide();jQuery(".bob-custom-dropdown-list .navcol").hide();jQuery(this).parents(".bob-custom-dropdown-list").find(".bob-inner-list-nav h6").each(function(){jQuery(this).text()==t&&(jQuery(this).next(".bob-inner-menu-expand").show(),jQuery(this).parents(".navcol").show())});jQuery(this).parent().addClass("active").siblings().removeClass("active")})}jQuery(document).on("mouseleave",".bob-top-bottom-navbar",function(){jQuery("body").removeClass("bob-open-iner-menu");jQuery(".bob-nav-custom-dropdown").removeClass("bob-open-dropdown");jQuery(".bob-nav-custom-dropdown .bob-custom-dropdown-list").hide()})});jQuery(document).on("focusin",".bob-bottom-first-ul li a[tabindex]",function(){const n=jQuery(this).closest("li");jQuery(this).trigger("mouseenter");n.find(".nav-left-list li a").attr("tabindex",function(n,t){return t||0})});jQuery(document).ready(function(){jQuery(".bob-tab-div li").each(function(n){jQuery(this).attr("tabindex",n+1)});jQuery(document).on("keydown",".bob-tab-div li",function(n){const t=n.key==="Enter"||n.keyCode===13,i=n.key===" "||n.keyCode===32;if(t||i){n.preventDefault();const t=jQuery(this).find('a[href], a[role="link"]').first();t.length?(t.focus(),typeof t[0].click=="function"?t[0].click():t.trigger("click")):typeof this.click=="function"?this.click():jQuery(this).trigger("click")}});jQuery(document).on("keydown",".bob-tab-div li a",function(n){const t=n.key===" "||n.keyCode===32;t&&(n.preventDefault(),typeof this.click=="function"?this.click():jQuery(this).trigger("click"))})});jQuery(document).ready(function(){function t(){jQuery(window).width()<=990?jQuery(".baranches-atm .desk-div .bob-parent-accordion-list-div").removeClass("fixed-filter-drop"):jQuery(".baranches-atm .desk-div .bob-parent-accordion-list-div").addClass("fixed-filter-drop")}function r(n){n.text().toLowerCase()==="apply now"&&n.hasClass("no-text-replace")===!1&&n.text("Apply Online")}t();jQuery(window).resize(function(){t()});jQuery(".listing-section .field-cta-2 a, .bob-button-links .field-link a, .bob-svg-text-link-div ul li a, .bob-svg-text-link-div ul li a span, .feature-quick-links li a").each(function(){r(jQuery(this))});jQuery(".share-twitter a svg").replaceWith('<svg class="bob-tw-svg" width="20" height="25" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 35.2 35.2" style="enable-background:new 0 0 35.2 35.2;" xml:space="preserve"><style type="text/css">.st0{fill:#F26522;}.st1{fill:#FFFFFF;}<\/style><path class="st0" d="M17.6,0c9.7,0,17.6,7.9,17.6,17.6l0,0c0,9.7-7.9,17.6-17.6,17.6l0,0C7.9,35.2,0,27.3,0,17.6c0,0,0,0,0,0 C0,7.9,7.9,0,17.6,0C17.6,0,17.6,0,17.6,0z"><\/path><path class="st1" d="M19.4,16.2l6.9-8h-1.6l-6,6.9l-4.8-6.9H8.4l7.2,10.5L8.4,27H10l6.3-7.3l5,7.3h5.5L19.4,16.2L19.4,16.2z M17.1,18.7l-0.7-1l-5.8-8.3h2.5l4.7,6.7l0.7,1l6.1,8.7h-2.5L17.1,18.7L17.1,18.7z"><\/path><\/svg>');var n=jQuery(".table-resopnsive"),u=100,i=500;jQuery(".bob-scroll-right-div").on("click",function(){n.scrollLeft()+n.outerWidth()<n.get(0).scrollWidth?n.animate({scrollLeft:"+="+u},i,function(){n.scrollLeft()+n.outerWidth()>=n.get(0).scrollWidth&&(jQuery(".bob-scroll-right-div small").text("Scroll to Left"),jQuery(".bob-scroll-right-div").addClass("bob-scroll-left-div"))}):n.animate({scrollLeft:0},i,function(){jQuery(".bob-scroll-right-div small").text("Scroll to Right");jQuery(".bob-scroll-right-div").removeClass("bob-scroll-left-div")})});jQuery(".hidden-ganesh-ji").click(function(){alert("Congratulations! You found it. Ganpati Bappa Morya.")});jQuery(".icon-tooltip small").hide();setTimeout(function(){jQuery(".icon-tooltip small").fadeIn("slow")},1500);setTimeout(function(){jQuery(".icon-tooltip small").fadeOut("slow")},5e3)});jQuery(document).on("input","#invAmt",function(){financialYear(jQuery("#invFrequency li.active").attr("value"))});rtlType=!1;jQuery("html").attr("dir")=="rtl"&&(rtlType=!0);jQuery(window).on("load",function(){var n=jQuery(window).width(),t=jQuery(window).height();setTimeout(function(){var t=fnGetURLParameterValueByName("id"),i;t.length>0&&jQuery(".bob-faqs-main-div").length>0&&jQuery("html,body").animate({scrollTop:jQuery('.items li[data-id="'+t+'"]').offset().top-130},600);jQuery("#content>.component:nth-child(2)").attr("id","second-scroll");jQuery(".only-content,.bob-loan-calculator,.images-with-content").css({height:jQuery(".carousel .slide .field-sli
61deimage img").height()+40,"min-height":jQuery(".carousel .slide .field-slideimage img").height()+40});jQuery(".bob-assistance-form").length>0&&jQuery("body").addClass("no-bob-assistance-form");jQuery(".bob-loan-page-tab-div .tabs-heading").length>0&&(i=jQuery(".bob-loan-page-tab-div .tabs-heading").html(),jQuery(".bob-loan-page-tab-div .tabs-heading").remove(),jQuery('<div class="tab_scroll_div_n"><ul class="tabs-heading">'+i+"<\/ul><\/div>").insertBefore(".tabs-inner .tabs-container"));jQuery(".bob-loan-page-tab-div .col-5").css({width:jQuery(".bob-svg-text-link-div ul").width()+40});jQuery(window).width()<=767?(jQuery(".bob-loan-page-tab-div .tabs-heading").css({"padding-right":"0",width:"100%"}),setTimeout(function(){jQuery("body").hasClass("calculator-page")&&jQuery("html,body").animate({scrollTop:jQuery(".bob-loan-emi-grp-div").offset().top-75},600)},100)):jQuery(".bob-loan-page-tab-div .tabs-heading").css({"padding-right":"0",width:n-jQuery(".bob-loan-page-tab-div .col-5").width()+15});jQuery(".bob-loan-page-tab-div .tabs-heading .slick-arrow.bob-right-round-arrow-svg").css({right:jQuery(".bob-svg-text-link-div ul").width()+40});fnGetURLParameterValueByName("shareurl")==""&&jQuery(".bob-loan-fd-calculator-div .days-depend + .bob-calculator-types-li").addClass("d-none")},500);jQuery("#tnrDate + label").on("click",function(){jQuery(".bob-loan-fd-calculator-div .days-depend").removeClass("d-none");jQuery(".bob-loan-fd-calculator-div .days-depend + .bob-calculator-types-li").addClass("d-none")});jQuery(document).on("click","#tnrDays + label",function(){jQuery(".bob-loan-fd-calculator-div .days-depend").addClass("d-none");jQuery(".bob-loan-fd-calculator-div .days-depend + .bob-calculator-types-li").removeClass("d-none")});setTimeout(function(){jQuery(".bob-loan-page-tab-div .tabs-heading").mCustomScrollbar({scrollbarPosition:"outside",autoExpandScrollbar:!0,scrollInertia:0,alwaysShowScrollbar:1,axis:"x",scrollButtons:{enable:!0,scrollAmount:50,scrollType:"stepless"}});addCustomAttributesOnTabLeftAndRightButtons()},1e3)});jQuery(document).ready(function(){function y(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:4,slidesToScroll:1,rtl:rtlType,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}},]})}var n=".bob-interasted-article-slider-active";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function p(){function t(){jQuery(n).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,rows:3,rtl:rtlType,slidesPerRow:1,adaptiveHeight:!0,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
615.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'})}var n=".bob-popular-article-slider-active";jQuery(n).hasClass("slick-initialized")?(jQuery(n).slick("unslick"),t()):t()}function b(n){let t=n.target;n.target.type!=="range"&&(t=document.getElementById("range"));var i=t.min,u=t.max,r=t.value,r=t.value;t.style.backgroundSize=(r-i)*100/(u-i)+"% 100%";jQuery(this).parents(".slidecontainer").next("small").find("em").text(r);e()}function e(){var t,n,i,r;if((jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>
610)&&(t=document.getElementById("amt_id").value,n=document.getElementById("month_id").value,glblCurrentPageUrl!="/calculators/gratuity-calculator"&&(i=document.getElementById("rates_id").value)),glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/personal-banking/loans/personal-loan/baroda-personal-loan"||glblCurrentPageUrl=="/calculators/car-loan-emi-calculator"||glblCurrentPageUrl=="/personal-banking/loans/vehicle-loan/baroda-car-loan")i=jQuery("#rates_id").parents(".slidecontainer").next("small").find("em").text(),k(t,n,i);else if(glblCurrentPageUrl=="/calculators/sip-calculator"||glblCurrentPageUrl=="hi-in/calculators/sip-calculator")calculateSIP();else if(glblCurrentPageUrl=="/calculators/gratuity-calculator"||glblCurrentPageUrl=="hi-in/calculators/gratuity-calculator")calculateGratuity();else{var u=i/100,o=n/12,s=[];for(r=0;r<=o;r++)s.push(r);var f=t*u/12*(Math.pow(1+u/12,n)/(Math.pow(1+u/12,n)-1)),e=f*n,h=e-t;jQuery("#monthly-hl-emi").html("₹"+Math.round(f).toLocaleString("en-in"));jQuery(".total-loan span").html("₹"+Math.round(f).toLocaleString("en-in"));jQuery("#spn_principal_amt").html("₹"+Math.round(t).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+Math.round(h).toLocaleString("en-in"));jQuery("#spn_total_amt").html("₹"+Math.round(e).toLocaleString("en-in"))}glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"?MonthlyTableData():g()}function k(n,t,r){var e=parseInt(n),f=parseInt(t),o=parseFloat(r),u=d(e,o,f,"0");jQuery("#monthly-hl-emi").html("₹"+i(u.emi));jQuery(".total-loan span").html("₹"+i(u.emi));jQuery("#spn_principal_amt").html("₹"+Math.round(n).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+i(u.emi*f-e));jQuery("#spn_total_amt").html("₹"+i(u.emi*f))}function d(n,t,i,r){var e=t/1200,u={},s,f,h,c,o;for(u.emi=n*e/(1-Math.pow(1/(1+e),i)),u.processingFee=r*n/100,u.totalIntrest=u.emi*i-n,u.totalPayment=u.emi*i,u.quaterAmt=n/4,u.q1=0,u.q2=0,u.q3=0,u.q4=0,s=u.totalPayment,u.row=[],u.anual=[],u.row[0]={},u.row[0].os=s,u.row[0].pb=n,u.row[0].ip=n*e,u.row[0].pp=u.emi-u.row[0].ip,f=1;s>0;)s=s-u.emi,u.row[f]={},u.row[f].os=u.row[f-1].os-u.emi,u.row[f].pb=u.row[f-1].pb-u.emi+u.row[f-1].ip,u.row[f].ip=u.row[f].pb*e,u.row[f].pp=u.emi-u.row[f].ip,u.q1==0&&u.row[f].pb<u.quaterAmt*3&&(u.q1=f),u.q2==0&&u.row[f].pb<u.quaterAmt*2&&(u.q2=f-u.q1),u.q3==0&&u.row[f].pb<u.quaterAmt&&(u.q3=f-u.q2-u.q1),u.q4==0&&u.row[f].pb<0&&(u.q4=f-u.q3-u.q2-u.q1),f=f+1;for(h=0,c=0,e=0;e<u.row.length-1;e++)h=h+u.row[e].ip,c=c+u.row[e].pp,(e+1)%12==0&&(o=parseInt(e/12),u.anual[o]={},u.anual[o].ip=h,u.anual[o].pb=u.row[o*12].pb,u.anual[o].pp=c,h=0,c=0);return u}function i(n){var i=Math.round(n);i+="";x=i.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/,r=0,f=String(x1).length,u=parseInt(f/2-1);t.test(x1);)if(r>0?x1=x1.replace(t,"$1,$2"):(x1=x1.replace(t,"$1,$2"),t=/(\d+)(\d{2})/),r++,u--,u==0)break;return x1+x2}function g(){var f,t;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var h=jQuery("#amt_id").val(),c=jQuery("#amt_id").val(),u=parseInt(jQuery("#amt_id").val()),r=parseFloat(jQuery("#rates_id").val())/100,s=document.getElementById("month_id").value;f=s/12;r=r*100;var i=nt(u,r,f),e=[],o=[],n="";for(n+="<table>",n+=" <thead>",n+="   <tr>",n+="     <th>Year<\/th>",n+="     <th>Opening Balance<\/th>",n+="     <th>EMI*12<\/th>",n+="     <th>Interest paid yearly<\/th>",n+="     <th>Principal paid yearly<\/th>",n+="     <th>Closing Balance<\/th>",n+="   <\/tr>",n+="<\/thead>",t=0;t<=i.amortization.length-1;t++)n+="<tbody>",n+="<tr>",n+="    <td>"+(1+t)+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].openingBalance).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].emi).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].interestPaidYearly).toLocaleString("en-in")+"<\/td>",n+="    <td>"+parseInt(i.amortization[t].principalPaidYearly).toLocaleString("en-in")+"<\/td>",n+="    <td>
61"+parseInt(i.amortization[t].closingBalance).toLocaleString("en-in")+"<\/td>",n+="<\/tr>",n+="<\/tbody>",e.push(Math.round(u)),o.push(Math.round(i.totalInterestPaid));n+="<\/table>";jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=n);jQuery("#personalLoanamortizationEligibility").length>0&&(document.getElementById("personalLoanamortizationEligibility").innerHTML=n);jQuery("#year-grph").length>0&&tt(e,o)}function nt(n,t,i){const u=t/1200,o=i*12,f=n*u*Math.pow(1+u,o)/(Math.pow(1+u,o)-1),e=[];let r=n,s=0;for(let t=1;t<=i;t++){const i={year:t,openingBalance:0,emi:0,interestPaidYearly:0,principalPaidYearly:0,closingBalance:0};let h=0,o=0;for(let n=1;n<=12;n++){const n=r*u,t=f-n;o+=n;h+=t;r-=t;r<0&&(r=0)}i.emi=(f*12).toFixed();i.principalPaidYearly=h.toFixed();i.interestPaidYearly=o.toFixed();i.closingBalance=r.toFixed();i.openingBalance=t<2?n.toFixed():e[t-2].closingBalance;e.push(i);s+=o}return{emi:f.toFixed(2),totalInterestPaid:s.toFixed(2),amortization:e}}function tt(n,i){t.updateSeries([{name:glblGetStaticValuesByKeyName("Principal Amount"),data:n},{name:glblGetStaticValuesByKeyName("Interest Amount"),data:i},])}function r(n){var n;return n.toFixed(2)}function v(){jQuery(".new-benefit-slider").hasClass("slick-initialized")?(jQuery(".new-benefit-slider").slick("unslick"),setTimeout(function(){jQuery(".new-benefit-slider").slick({infinite:!1,centerMode:!1,slidesToShow:3,rtl:rtlType,focusOnSelect:!0,slidesToScroll:1,prevArrow:'<svg style="displsy:block !important;" class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg style="displsy:block !important;" class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})},100)):jQuery(".new-benefit-slider").slick({infinite:!1,centerMode:!1,slidesToShow:3,rtl:rtlType,focusOnSelect:!0,slidesToScroll:1,prevArrow:'<svg style="displsy:block !important;" class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
615.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg style="displsy:block !important;" class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1}},]})}var n=jQuery(window).width(),ut=jQuery(window).height(),u,f,t,o,s,h,c,l,a,rt;if(jQuery("body").addClass(jQuery.browser.name),hideTabULTagIfEmpty(),jQuery(".bob-right-cal-details").length>0)jQuery(".calculate-btn .bob-comman-btn,.bob-m-btn-div .bob-comman-btn").on("click",function(){jQuery("html,body").animate({scrollTop:jQuery(".bob-right-cal-details").offset().top-130},600)});setTimeout(function(){jQuery(".bob-home-loan .bob-page-list-box .box-content .btns-div .row").each(function(){var n=jQuery(this);n.find(".col-sm-6").length<2&&n.addClass("justify-content-end")})},200);range_slider_change();jQuery(".tabs .tabs-container .tab").each(function(){var n=jQuery(this).find(".tab-with-page-title-").html();n!=undefined&&(jQuery(this).find(".tab-with-page-title-").remove(),jQuery(this).find(".col-sm-12>.bob-inner-tabs-div,.col-sm-12>.bob-line-list").prepend('<h2 class="tab-with-page-title-">'+n+"<\/h2>"))});jQuery(".bob-expand-btn").on("click",function(){var n=jQuery(this).attr("data-text"),t=jQuery(this).text();jQuery(this).hasClass("expanded")?(jQuery(this).text(n),jQuery(this).attr("data-text",t),jQuery(this).removeClass("expanded"),jQuery("."+jQuery(this).attr("data-expand")).slideUp()):(jQuery(this).text(n),jQuery(this).attr("data-text",t),jQuery(this).addClass("expanded"),jQuery("."+jQuery(this).attr("data-expand")).slideDown())});jQuery(document).on("click",".rate-type-filter ul li",function(){var n=jQuery(this).attr("data-value"),t=jQuery(".rate-grp-filter li.active").attr("data-value");jQuery(".bob-inner-tabs-div .bob-custom-accordion").css({display:"none"});t==undefined?jQuery(".bob-inner-tabs-div .bob-custom-accordion."+n).css({display:"block"}):jQuery(".bob-inner-tabs-div .bob-custom-accordion."+n+"."+t).css({display:"block"})});jQuery(document).on("click",".rate-grp-filter li",function(){var n=jQuery(this).attr("data-value"),t=jQuery(".rate-type-filter ul li.active").attr("data-value");jQuery(".bob-inner-tabs-div .bob-custom-accordion").css({display:"none"});t==undefined?jQuery(".bob-inner-tabs-div .bob-custom-accordion."+n).css({display:"block"}):jQuery(".bob-inner-tabs-div .bob-custom-accordion."+n+"."+t).css({display:"block"})});jQuery(".rate-grp-filter li:eq(0)").click();jQuery(".bob-tags li a").on("click",function(){jQuery(this).parents(".bob-tags").find("a").removeClass("active");jQuery(this).addClass("active")});jQuery(".hr-wrapper .bob-arrow-button").on("click",function(){jQuery(".hr-wrapper").removeClass("open-text-hr");jQuery(this).parents(".hr-wrapper").addClass("open-text-hr");setTimeout(function(){jQuery("html,body").animate({scrollTop:jQuery(".open-text-hr").offset().top-150},600)},100)});jQuery(".skip-main-content").on("click",function(n){n.preventDefault();jQuery(".bob-search-inner-div").length>0?jQuery("html,body").animate({scrollTop:jQuery("#second-scroll").offset().top-150},600):jQuery("html,body").animate({scrollTop:jQuery("#second-scroll").offset().top-45},600)});jQuery("#year-grph").length>0&&(u={series:[{name:glblGetStaticValuesByKeyName("Principal Amount"),data:[0,5,10,15,20]},{name:glblGetStaticValuesByKeyName("Interest Amount"),data:[0,2,4,6,8]},],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}}
61,colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:[],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:glblGetStaticValuesByKeyName("Years Elapsed"),offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:glblGetStaticValuesByKeyName("Loan Paid")+" (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},t=new ApexCharts(document.querySelector("#year-grph"),u),t.render());jQuery(document).on("click",".bob-cal-bbutton-div .bob-custom-dropdown ul li",function(){var t=jQuery(this).attr("data-no"),n;if(t==0)jQuery(".bob-select-data-div").slideUp();else for(jQuery(".bob-select-data-div").slideDown(),jQuery(".bob-selected-div table tbody tr").css("display","none"),n=1;n<=t;n++)jQuery(".bob-selected-div table tbody tr:nth-child("+n+")").css("display","table-row")});jQuery('.bob-loan-calculator-details-div input[type="radio"]').on("change",function(){jQuery("#daysonly").is(":checked")?jQuery(".days-depend").css("display","none"):jQuery(".days-depend").css("display","flex")});jQuery('.table-data-show input[type="radio"]').on("change",function(){jQuery("#tableid").is(":checked")?(jQuery(this).parents(".table-data-show").addClass("table-open"),jQuery("#div_RDTable").show()):(jQuery(this).parents(".table-data-show").removeClass("table-open"),jQuery("#div_RDTable").hide())});jQuery("#rd-grph").length>0&&(f={series:[{name:glblGetStaticValuesByKeyName("Balance Amount"),data:[0,5,10,15,20]},{name:glblGetStaticValuesByKeyName("On Date"),data:[0,2,4,6,8]},],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:glblGetStaticValuesByKeyName("Months"),offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:glblGetStaticValuesByKeyName("Balance"),offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},t=new ApexCharts(document.querySelector("#rd-grph"),f),t.render());jQuery(".carousel .slide-info").html()==""&&(jQuery(".carousel .slide-info").hide(),jQuery(".carousel").addClass("carousel-slide-info-hidden"));jQuery(".bob-download-file").attr("href")==""&&jQuery(".bob-download-file").hide();p();y();jQuery(".lightbox-video-slider .mediaItems").slice(0,8).show();jQuery(".lightbox-video-slider .bob-report-load-more button").on("click",function(){jQuery(".lightbox-video-slider .mediaItems:hidden").slice(0,8).slideDown();jQuery(".lightbox-video-slider .mediaItems:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".lightbox-photo-slider .mediaItems").slice(0,8).show();jQuery(".lightbox-photo-slider .bob-report-load-more button").on("click",function(){jQuery(".lightbox-photo-slider .mediaItems:hidden").slice(0,8).slideDown();jQuery(".lightbox-photo-slider .mediaItems:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".load-more-list-div .col-sm-3").slice(0,8).show();jQuery(".load-more-list-div .bob-report-load-more button").on("click",function(){jQuery(".load-more-list-div .col-sm-3:hidden").slice(0,8).slideDown();jQuery(".bob-report-list-div .col-sm-3:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".awards-page .awards-list").slice(0,6).addClass("d-flex");jQuery(".awards-page .bob-report-load-more button").on("click",function(){jQuery(".awards-page .awards-list:hidden").slice(0,6).addClass("d-flex");jQuery(".awards-page .awards-list:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".blog-main .bob-popular-article-slider .item").slice(0,6).show();jQuery(".blog-main .blog-load-more-div button").on("click",function(){jQuery(".blog-main .bob-popular-article-slider .item:hidden").slice(0,6).slideDown();jQuery(".blog-main .bob-popular-article-slider .item:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".contact-us-page .br-flex .officesListToDisplay").slice(0,4).show();jQuery(".br-flex-load-more.bob-report-load-more .loadmore-btn").on("click",function(){jQuery(".contact-us-page .br-flex .officesListToDisplay:hidden").slice(0,4).slideDown();jQuery(".contact-us-page .br-flex .officesListToDisplay:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".blog-comments-div ul li").slice(0,3).show();jQuery(".blog-comments-div .bob-report-load-more .loadmore-btn").on("click",function(){jQuery(".blog-comments-div ul li:hidden").slice(0,3).slideDown();jQuery(".blog-comments-div ul li:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".bob-offres-all-card-div .col-sm-4").slice(0,6).show();jQuery(".bob-offres-all-card-div .bob-report-load-more .loadmore-btn").on("click",function(){jQuery(".bob-offres-all-card-div .col-sm-4:hidden").slice(0,3).slideDown();jQuery(".bob-offres-all-card-div .col-sm-4:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(".bob-search-popup-div .search-result-list").mCustomScrollbar({scrollbarPosition:"outside"});n>1025&&(jQuery(".bob-atm-scroll-div").mCustomScrollbar({scrollbarPosition:"outside"}),jQuery(".office-detail-contact-tab-content-wrap .office-contact-detail-text-box").mCustomScrollbar({scrollbarPosition:"inside"}));jQuery(".bob-report-list-div .col-sm-4").length>0?jQuery(".bob-report-list-div .col-sm-4").slice(0,6).show():jQuery(".bob-report-list-div .col-sm-3").slice(0,8).show();jQuery(".bob-report-list-div .col-sm-4").slice(0,6).show();jQuery(".bob-gallery-load-more .loadmore-btn").on("click",function(){jQuery(".bob-report-list-div .col-sm-4:hidden").slice(0,6).slideDown();jQuery(".bob-report-list-div .col-sm-4:hidden").length==0&&jQuery(this).parents(".bob-gallery-load-more").fadeOut("slow")});jQuery(".bob-gallery-load-more .loadmore-btn").on("click",function(){jQuery(".bob-report-list-div .col-sm-4").length>0?jQuery(".bob-report-list-div .col-sm-4:hidden").slice(0,6).slideDown():jQuery(".bob-report-list-div .col-sm-3:hidden").slice(0,8).slideDown();jQuery(".bob-report-list-div .col-sm-4:hidden").length==0&&jQuery(this).parents(".bob-gallery-load-more").fadeOut("slow");jQuery(".bob-report-list-div .col-sm-3:hidden").length==0&&jQuery(this).parents(".bob-gallery-load-more").fadeOut("slow")});jQuery(document).on("click",".view-all-photos-link a.view-all-tlink, .bob-gallery-img-div",function(){var s=jQuery(this).parents(".bob-report-d-div").find(".bob-views-li").attr("data-thumb-img"),t,i,f,n;const r=s.split(",");for(t=0;t<r.length;t++)r[t];var u=jQuery.makeArray(r),e=u.length-1,h=jQuery(this).parents(".bob-report-d-div").find(".bob-views-li").attr("data-big-img");const o=h.split(",");for(t=0;t<r.length;t++)o[t];
61if(i=jQuery.makeArray(o),f=i.length-1,jQuery(".bob-light-box-popup-div").hasClass("bob-light-video-box-popup-div"))for(n=0;n<=e;n++)jQuery(".bob-popup-slider-thumb").append('<img class="img-fluid" src="'+u[n]+'" data-iframe="'+i[n]+'"  />');else for(n=0;n<=e;n++)jQuery(".bob-popup-slider-thumb").append('<img class="img-fluid" src="'+u[n]+'" />');if(jQuery(".bob-light-box-popup-div").hasClass("bob-light-video-box-popup-div"))for(n=0;n<=f;n++)jQuery(".bob-popup-slider-big").append('<iframe class="img-fluid big-frame" src="'+i[n]+'"><\/iframe>');else for(n=0;n<=f;n++)jQuery(".bob-popup-slider-big").append('<img class="img-fluid big-frame" src="'+i[n]+'" />');setTimeout(function(){lightpopupslider();jQuery("body").addClass("bob-open-light-box")},200);jQuery(document).on("click",".bob-light-box-popup-div .bob-closed-btn ",function(){jQuery("body").removeClass("bob-open-light-box");jQuery(".bob-popup-slider-big,.bob-popup-slider-thumb").slick("unslick");jQuery(".bob-popup-slider-big img,.bob-popup-slider-thumb img,.bob-popup-slider-big iframe,.bob-popup-slider-thumb iframe").remove()});jQuery(document).on("click",".bob-open-light-box .bob-overlay",function(n){var t=jQuery(".bob-light-box-popup-div");t.is(n.target)||t.has(n.target).length!==0||(jQuery("body").removeClass("bob-open-light-box"),jQuery(".bob-popup-slider-big,.bob-popup-slider-thumb").slick("unslick"),jQuery(".bob-popup-slider-big img,.bob-popup-slider-thumb img,.bob-popup-slider-big iframe,.bob-popup-slider-thumb iframe").remove())})});jQuery(document).on("click",".lightbox_a",function(){var s=jQuery(this).attr("data-thumb-img"),t,i,f,n;const r=s.split(",");for(t=0;t<r.length;t++)r[t];var u=jQuery.makeArray(r),e=u.length-1,h=jQuery(this).attr("data-big-img");const o=h.split(",");for(t=0;t<r.length;t++)o[t];if(i=jQuery.makeArray(o),f=i.length-1,jQuery(".bob-light-box-popup-div").hasClass("bob-light-video-box-popup-div"))for(n=0;n<=e;n++)jQuery(".bob-popup-slider-thumb").append('<img class="img-fluid" src="'+u[n]+'" data-iframe="'+i[n]+'"  />');else for(n=0;n<=e;n++)jQuery(".bob-popup-slider-thumb").append('<img class="img-fluid" src="'+u[n]+'" />');if(jQuery(".bob-light-box-popup-div").hasClass("bob-light-video-box-popup-div"))for(n=0;n<=f;n++)jQuery(".bob-popup-slider-big").append('<iframe class="img-fluid big-frame" src="'+i[n]+'"><\/iframe>');else for(n=0;n<=f;n++)jQuery(".bob-popup-slider-big").append('<img class="img-fluid big-frame" src="'+i[n]+'" />');setTimeout(function(){lightpopupslider();jQuery("body").addClass("bob-open-light-box")},200)});jQuery(document).on("click",".bob-light-box-popup-div .bob-closed-btn ",function(){jQuery("body").removeClass("bob-open-light-box");jQuery(".bob-popup-slider-big,.bob-popup-slider-thumb").slick("unslick");jQuery(".bob-popup-slider-big img,.bob-popup-slider-thumb img,.bob-popup-slider-big iframe,.bob-popup-slider-thumb iframe").remove()});jQuery(document).on("click",".bob-open-light-box .bob-overlay",function(n){var t=jQuery(".bob-light-box-popup-div");t.is(n.target)||t.has(n.target).length!==0||(jQuery("body").removeClass("bob-open-light-box"),jQuery(".bob-popup-slider-big,.bob-popup-slider-thumb").slick("unslick"),jQuery(".bob-popup-slider-big img,.bob-popup-slider-thumb img,.bob-popup-slider-big iframe,.bob-popup-slider-thumb iframe").remove())});similarslider();jQuery(".grid-view-li").on("click",function(){n<1025?(jQuery("body").addClass("atm-view-grid"),jQuery(this).removeClass("active"),jQuery(".map-view-li").addClass("active")):(jQuery("body").addClass("atm-view-grid"),jQuery(this).parents(".bob-view-ul").find("li").removeClass("active"),jQuery(this).addClass("active"))});jQuery(".map-view-li").on("click",function(){n<1025?(jQuery("body").removeClass("atm-view-grid"),jQuery(this).removeClass("active"),jQuery(".grid-view-li").addClass("active")):(jQuery("body").removeClass("atm-view-grid"),jQuery(this).parents(".bob-view-ul").find("li").removeClass("active"),jQuery(this).addClass("active"))});jQuery(".bob-grid-view-div .bob-details-data-popup").slice(0,3).show();jQuery(".bob-grid-view-div .bob-report-load-more .loadmore-btn").on("click",function(){jQuery(".bob-grid-view-div .bob-details-data-popup:hidden").slice(0,3).slideDown();jQuery(".bob-grid-view-div .bob-details-data-popup:hidden").length==0&&jQuery(this).parents(".bob-report-load-more").fadeOut("slow")});jQuery(document).on("click",".bob-parent-accordion-div>span",function(){jQuery(".back-to-result").trigger("click");jQuery(this).parents(".bob-parent-accordion-div").hasClass("bob-parent-open-accordion")?(jQuery(this).parents(".bob-parent-accordion-div").removeClass("bob-parent-open-accordion"),jQuery(this).parents(".bob-parent-accordion-div").find(".bob-parent-accordion-list-div").slideUp()):(jQuery(".bob-parent-accordion-div").removeClass("bob-parent-open-accordion"),jQuery(".bob-parent-accordion-div").find("bob-parent-accordion-list-div").slideUp(),jQuery(this).parents(".bob-parent-accordion-div").addClass("bob-parent-open-accordion"),jQuery(this).parents(".bob-parent-accordion-div").find(".bob-parent-accordion-list-div").slideDown())});n>1025&&jQuery(".bob-atm-scroll-div ").mCustomScrollbar({scrollbarPosition:"outside"});
61jQuery(".bob-line-arrow-orange-link").on("click",function(){jQuery(this).parents(".bob-atm-scroll-div").addClass("show-details-data-div");jQuery(".bob-parent-accordion-div").removeClass("bob-parent-open-accordion");jQuery(".bob-parent-accordion-div").find(".bob-parent-accordion-list-div").slideUp()});jQuery(".back-to-result").on("click",function(){jQuery(this).parents(".bob-atm-scroll-div").removeClass("show-details-data-div")});jQuery(".bob-calculator-banner .link-list li:first-child a").addClass("active");jQuery(document).on("click",".bob-calculator-banner .link-list li",function(){jQuery(this).parents(".link-list").find("li a").removeClass("active");jQuery(this).find("a").addClass("active")});jQuery(document).on("click",".tabs .tabs-heading li",function(){if(jQuery(this).parents(".tabs-heading").find("li").removeClass("active"),jQuery(this).addClass("active"),jQuery(this).parents("ul.tabs-heading").hasClass("mCustomScrollbar")){jQuery(this).parents(".tab_scroll_div_n").next(".tabs-container").find(".tab").removeClass("active");jQuery(this).parents(".tab_scroll_div_n").next(".tabs-container").find(".tab:eq("+jQuery(this).index()+")").addClass("active");var n=jQuery(".bob-loan-page-tab-div .tabs-heading li.active").offset().left;jQuery("html,body").animate({scrollTop:jQuery(".bob-loan-page-tab-div").offset().top-86},600)}v();setTimeout(function(){AOS.refresh()},100)});jQuery(".amalgamation-of-vijaya .bob-report-list-div .col-sm-3,.annual-reports .bob-report-list-div .col-sm-3").slice(0,8).show();jQuery(".amalgamation-of-vijaya .bob-report-load-more .loadmore-btn,.annual-reports .bob-report-load-more .loadmore-btn").on("click",function(){jQuery(".amalgamation-of-vijaya .bob-report-list-div .col-sm-3:hidden,.annual-reports .bob-report-list-div .col-sm-3:hidden").slice(0,8).slideDown();jQuery(".amalgamation-of-vijaya .bob-report-list-div .col-sm-3:hidden,.annual-reports .bob-report-list-div .col-sm-3:hidden").length==0&&jQuery(this).parents(".amalgamation-of-vijaya .bob-report-load-more,.annual-reports .bob-report-load-more").fadeOut("slow")});jQuery(".bob-filter-c-div.bob-inner-brands-c-div .form-group").slice(0,5).show();jQuery(".bob-show-100-more-btn span").on("click",function(n){n.preventDefault();jQuery(".bob-filter-c-div.bob-inner-brands-c-div .form-group:hidden").slice(0,100).slideDown();jQuery(".bob-filter-c-div.bob-inner-brands-c-div .form-group:hidden").length==0&&jQuery(".bob-show-100-more-btn").css("cssText","display:none !important")});jQuery(".bob-promo-tab-div .component-content .link-list ul li a").on("click",function(){var t=jQuery(this).attr("href").slice(1);jQuery(".bob-tab-content").removeClass("active");jQuery(".bob-tab-content."+t).addClass("active");jQuery(this).parents(".bob-promo-tab-div").find(".component-content .link-list ul li a").removeClass("active");jQuery(this).addClass("active");n<767&&mobvideoslider()});jQuery(document).on("click",".videos-tab .bob-blogs-thumb-style ul li .box .field-thumbnail",function(){var n=jQuery(this).parents("li.item").find(".field-youtubekey").text();jQuery(".bob-iframe-popup-div iframe").attr("src","https://www.youtube.com/embed/"+n);jQuery("body").addClass("bob-iframe-popup-open")});jQuery(document).on("click",".bob-popup-common-div .bob-closed-btn",function(){jQuery(".bob-iframe-popup-div iframe").attr("src","");jQuery("body").removeClass("bob-iframe-popup-open")});jQuery(document).on("click",".bob-iframe-popup-open .bob-overlay",function(n){var t=jQuery(".bob-popup-common-div");t.is(n.target)||t.has(n.target).length!==0||(jQuery(".bob-iframe-popup-div iframe").attr("src",""),jQuery("body").removeClass("bob-iframe-popup-open"))});const w=document.querySelectorAll('input[type="range"]'),ft=document.querySelector('input[type="text"]');var et=0,ot=0,st=0;jQuery(document).on("keyup",".bob-loan-calculator ul li small em",function(n){var t;if(fnGlblValidateCalcFields(n,this,jQuery(this).parents("li").find(".slidecontainer input").attr("id"),jQuery(this).text()),t=jQuery(this).text(),t.length==0||t=="0")t=0,r=jQuery(this).parents("li").find(".slidecontainer input").val(t),jQuery(r).css({"background-size":(t-i)*100/(u-i)+"% 100%"});else{var r=jQuery(this).parents("li").find(".slidecontainer input").attr("id"),i=jQuery(this).parents("li").find(".slidecontainer input").attr("min"),u=jQuery(this).parents("li").find(".slidecontainer input").attr("max");jQuery(this).parents("li").find(".slidecontainer input").val(t);jQuery("#"+r).css({"background-size":(t-i)*100/(u-i)+"% 100%"});e()}});if(setTimeout(function(){jQuery('input[type="range"]').each(function(){var n=jQuery(this).attr("min"),t=jQuery(this).attr("max"),i=jQuery(this).val();jQuery(this).css({"background-size":(i-n)*100/(t-n)+"% 100%"})})}
61,1e3),w.forEach(n=>{n.addEventListener("input",b)}),!(location.href.indexOf("gold-loan-calculator")>-1),n<1025){if(typeof glblCurrentPageID!="undefined"&&!(glblCurrentPageID=="d858d440-27f2-4789-9380-477699b9c1a4"||glblCurrentPageID=="f5d266d2-fdea-42a0-89bf-c46e2a38c02d"||glblCurrentPageID=="72619eb7-9d2f-4628-94ad-7b2db47360a6"||glblCurrentPageID=="820c0e4d-6b5f-40ea-92e0-3d0aaa7738cb"||glblCurrentPageID=="a9127f31-9cc5-45b2-95c7-ca46f1f4f115"||glblCurrentPageID=="fec48bbb-c28d-4d84-b924-059fb8994e89"||glblCurrentPageID=="11c23665-0463-4c48-bdba-851bb4e24fe0"||glblCurrentPageID=="11c23665-0463-4c48-bdba-851bb4e24fe0"||glblCurrentPageID=="5af4acc8-6e65-4f9d-a8c6-31cf0adfa445"||glblCurrentPageID=="4e8cbc9d-2d13-4a4f-aeea-9eb40192839c")){o='<li><div class="bob-custom-dropdown bob-login-dropdown bob-logincc-div">'+jQuery(".bob-login-dropdown").html()+"<\/div><\/li>";jQuery(".bob-login-dropdown").remove();jQuery(o).insertAfter(".bob-top-bottom-navbar .bob-bottom-second-ul li:last-child");s='<div class="bob-top-navbar"><ul class="bob-nav-right-link">'+jQuery(".bob-nav-right-link").html()+"<\/ul><\/div>";jQuery(".bob-nav-right-link").remove();jQuery(".bob-mobile-sidebar .bob-navbar").append(s);h='<ul class="bob-bottom-first-ul">'+jQuery(".bob-bottom-first-ul").html()+"<\/ul>";jQuery(".bob-bottom-first-ul").remove();jQuery(".bob-mobile-sidebar .bob-top-bottom-navbar").append(h);c='<ul class="bob-middle-first-link bob-middle-second-link">'+jQuery(".bob-middle-first-link.bob-middle-second-link").html()+"<\/ul>";jQuery(".bob-middle-first-link.bob-middle-second-link").remove();jQuery(".bob-mobile-sidebar .bob-middle-navbar").append(c);jQuery(document).on("click",".bob-mobile-bar",function(){jQuery(this).hasClass("bob-active-bar")?(jQuery(this).removeClass("bob-active-bar"),jQuery("body").removeClass("bob-open-nav-mob bob-open-iner-menu bob-open-navinner-mob"),jQuery(".bob-inner-list-nav").find(".bob-inner-menu-expand").slideUp(),jQuery(".bob-inner-list-nav h6").removeClass("active-mob-dropdown"),jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown").find(".bob-custom-dropdown-list").slideUp()):(jQuery(this).addClass("bob-active-bar"),jQuery("body").addClass("bob-open-nav-mob"))})}jQuery(document).on("click",".bob-inner-list-nav h6",function(){jQuery(this).hasClass("active-mob-dropdown")?(jQuery(this).removeClass("active-mob-dropdown"),jQuery("body").removeClass("bob-open-nav-inner-mob"),jQuery(this).next(".bob-inner-menu-expand").slideUp()):(jQuery(".bob-inner-list-nav").find(".bob-inner-menu-expand").slideUp(),jQuery(".bob-inner-list-nav h6").removeClass("active-mob-dropdown"),jQuery(this).addClass("active-mob-dropdown"),jQuery("body").addClass("bob-open-nav-inner-mob"),jQuery(this).next(".bob-inner-menu-expand").slideDown())});jQuery(document).on("click",".bob-custom-dropdown-list .revers_h",function(){jQuery("body").removeClass("bob-open-nav-inner-mob");jQuery(this).parents(".bob-nav-custom-dropdown").removeClass("bob-open-dropdown")});jQuery(document).on("click","footer .bob-footer-nav-links h6",function(){jQuery(this).hasClass("active-mob-footer-dropdown")?(jQuery(this).removeClass("active-mob-footer-dropdown"),jQuery(this).parents(".bob-footer-nav-links").find("ul").slideUp()):(jQuery(".bob-footer-nav-links").find("ul").slideUp(),jQuery("footer .bob-footer-nav-links h6").removeClass("active-mob-footer-dropdown"),jQuery(this).addClass("active-mob-footer-dropdown"),jQuery(this).next("ul").slideDown())})}jQuery(document).on("click",".bob-tab-div .bob-tab-ul li",function(){jQuery(this).hasClass("view-all-link")||(jQuery(this).parents(".bob-tab-in-tab-div").hasClass("bob-inner-tab")?(jQuery(this).parents(".bob-tab-in-tab-div").find(".bob-tab-content-data").removeClass("active"),jQuery(this).parents(".bob-tab-in-tab-div").find(".bob-tab-content-data"+jQuery(this).attr("data-tab")).addClass("active"),jQuery(this).parents(".bob-tab-in-tab-div").find(".bob-tab-ul li").removeClass("active"),jQuery(this).addClass("active"),jQuery(this).parents(".bob-tab-in-tab-div").find(".view-all-link a").attr("href",jQuery(this).data("url")),jQuery(this).parents(".bob-tab-in-tab-div").find(".view-all-link a").attr("title",jQuery(this).data("title"))):(jQuery(this).parents(".bob-tab-div").find(".bob-tab-content-data").removeClass("active"),jQuery(this).parents(".bob-tab-div").find(".bob-tab-content-data"+jQuery(this).attr("data-tab")).addClass("active"),jQuery(this).parents(".bob-tab-div").find(".bob-tab-ul li").removeClass("active"),jQuery(this).addClass("active"),jQuery(jQuery(this).attr("data-tab")+" .bob-tab-in-tab-div .bob-tab-ul>li:first-child").trigger("click")),savingslider())});jQuery(document).on("mouseenter",".bob-nav-custom-dropdown span",function(){jQuery(this).parents(".bob-nav-custom-dropdown").hasClass("bob-open-dropdown")?(jQuery(this).parents(".bob-nav-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(this).parents(".bob-nav-custom-dropdown").find(".bob-custom-dropdown-list").hide(),jQuery(this).next(".bob-custom-dropdown-list").length>0&&jQuery("body").removeClass("bob-open-iner-menu")):(jQuery("body").removeClass("bob-open-iner-menu"),jQuery(".bob-nav-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(".bob-nav-custom-dropdown").find(".bob-custom-dropdown-list").hide(),jQuery(this).parents(".bob-nav-custom-dropdown").addClass("bob-open-dropdown"),jQuery(this).parents(".bob-nav-custom-dropdown").find(".bob-custom-dropdown-list").show(),jQuery(this).parents(".bob-nav-custom-dropdown").hasClass("bob-nav-custom-dropdown")&&jQuery(this).next(".bob-custom-dropdown-list").length>0&&jQuery("body").addClass("bob-open-iner-menu"))});jQuery(document).on("click",".bob-custom-dropdown span",function(){jQuery(this).parents(".bob-custom-dropdown").hasClass("bob-open-dropdown")?(jQuery(this).parents(".bob-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(this).parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list").hide(),jQuery(this).next(".bob-custom-dropdown-list").length>0&&jQuery("body").removeClass("bob-open-iner-menu")):(jQuery("body").removeClass("bob-open-iner-menu"),jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list").hide(),jQuery(this).parents(".bob-custom-dropdown").addClass("bob-open-dropdown"),jQuery(this).parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list").show(),jQuery(this).parents(".bob-custom-dropdown").hasClass("bob-nav-custom-dropdown")&&jQuery(this).next(".bob-custom-dropdown-list").length>0&&jQuery("body").addClass("bob-open-iner-menu"))});jQuery(document).on("click",".bob-custom-dropdown .bob-custom-dropdown-list li",function(){jQuery(this).parents(".bob-custom-dropdown").removeClass("all-select");jQuery(this).parents(".bob-custom-dropdown").hasClass("bob-nav-custom-dropdown")||(jQuery(this).parents(".bob-custom-dropdown").find("span small").text(jQuery(this).text()),jQuery(this).parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list li").removeClass("active"),jQuery(this).addClass("active"),jQuery(this).parents(".bob-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(this).parents(".bob-custom-dropdown").find(".bob-custom-dropdown-list").slideUp())});jQuery(document).on("click",function(n){var t=jQuery(".bob-custom-dropdown span,.bob-custom-dropdown-list");t.is(n.target)||t.has(n.target).length!==0||jQuery(".bob-open-dropdown.bob-custom-dropdown").hasClass("bob-nav-custom-dropdown")||(jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list").slideUp())});jQuery(document).on("click",".bob-custom-accordion span",function(){var n=jQuery("header").outerHeight()+30;jQuery(this).parents(".bob-custom-accordion").hasClass("bob-open-accordion")?(jQuery(this).parents(".bob-custom-accordion").removeClass("bob-open-accordion"),jQuery(this).parents(".bob-custom-accordion").find(".bob-custom-accordion-list").slideUp(),jQuery("body").removeClass("bob-open-iner-menu")):(jQuery("body").removeClass("bob-open-iner-menu"),jQuery(".bob-custom-accordion").removeClass("bob-open-accordion"),jQuery(".bob-custom-accordion").find(".bob-custom-accordion-list").slideUp(),jQuery(this).parents(".bob-custom-accordion").addClass("bob-open-accordion"),jQuery(this).parents(".bob-custom-accordion").find(".bob-custom-accordion-list").slideDown(),jQuery(this).parents(".bob-custom-accordion").hasClass("bob-nav-custom-accordion")&&jQuery("body").addClass("bob-open-iner-menu"),setTimeout(function(){jQuery(".bob-inner-tabs-div").hasClass("only-scroll-top-one")&&(jQuery("html,body").animate({scrollTop:jQuery(".bob-open-accordion").offset().top-n},100),console.log("data-change"))},500))});jQuery(document).on("click",".search-popup",function(){jQuery("body").addClass("bob-open-serach-popup");jQuery("body").removeClass("bob-open-iner-menu");jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown");jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list").slideUp();n<767&&(jQuery(".bob-mobile-bar").removeClass("bob-active-bar"),jQuery("body").removeClass("bob-open-nav-mob bob-open-iner-menu bob-open-navinner-mob"),jQuery(".bob-inner-list-nav").find("ul").slideUp(),jQuery(".bob-inner-list-nav h6").removeClass("active-mob-dropdown"),jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown").find(".bob-custom-dropdown-list").slideUp());setTimeout(function(){jQuery(".bob-search-popup-div .bob-search-voice-div input").focus()},200)});jQuery(document).on("click",".bob-closed-btn",function(){jQuery("body").removeClass("bob-open-serach-popup")});jQuery(document).on("click",".bob-open-serach-popup .bob-overlay",function(n){var t=jQuery(".bob-search-popup-div");t.is(n.target)||t.has(n.target).length!==0||jQuery("body").removeClass("bob-open-serach-popup")});jQuery(document).on("click",".bob-open-iner-menu .bob-overlay",function(n){var t=jQuery("header");t.is(n.target)||t.has(n.target).length!==0||(jQuery("body").removeClass("bob-open-iner-menu"),jQuery(".bob-custom-dropdown").removeClass("bob-open-dropdown"),jQuery(".bob-custom-dropdown").find(".bob-custom-dropdown-list").slideUp())});jQuery(window).scroll(function(){var n=jQuery(this).scrollTop();n>100?(jQuery("body").addClass("bob-scroll-top"),jQuery(".bob-navbar .bob-nav-pb-link li .bob-down-arrow-svg").addClass("active_svg"),jQuery(".bob-scroll-top-div").fadeIn()):(jQuery("body").removeClass("bob-scroll-top"),jQuery(".bob-navbar .bob-nav-pb-link li .bob-down-arrow-svg").removeClass("active_svg"),jQuery(".bob-scroll-top-div").fadeOut())});jQuery(".bob-scroll-top-div").on("click",function(){return jQuery("html, body").animate({scrollTop:0},600),!1});jQuery(document).on("click",".bob-navbar .bob-nav-pb-link li .bob-down-arrow-svg",function(){jQuery(this).hasClass("active_svg")?(jQuery(this).removeClass("active_svg"),jQuery("body").removeClass("bob-scroll-top")):(jQuery(this).addClass("active_svg"),jQuery("body").addClass("bob-scroll-top"))});typesofloanslider();savingslider();applyforslider();n>=991&&loantabslider();n<=991&&(mobvideoslider(),calculatelistingslider());jQuery(document).on("click",".bob-share-li>svg",function(){jQuery(".bob-share-li").removeClass("bob-open-share-li");jQuery(this).parents(".bob-share-li").hasClass("bob-open-share-li")?jQuery(this).parents(".bob-share-li").removeClass("bob-open-share-li"):jQuery(this).parents(".bob-share-li").addClass("bob-open-share-li")});jQuery(document).on("click",".share_closed_svg",function(){jQuery(this).parents(".bob-share-li").removeClass("bob-open-share-li")});jQuery(document).on("click",function(n){var t=jQuery(".bob-share-li");t.is(n.target)||t.has(n.target).length!==0||jQuery(".bob-share-li").removeClass("bob-open-share-li")});jQuery(document).on("click",".filter-fixed .bob-filter-open-div .bob-custom-dropdown .bob-custom-dropdown-list li",function(){jQuery("body").hasClass("big-mob-filter")||(jQuery(".open-filter-mob").removeClass("open-filter-mob"),jQuery(".bob-filter-open-div").fadeOut(),jQuery("body").removeClass("body-bob-filter-open"),jQuery(".bob-offres-all-card-div").length>0&&jQuery("html,body").animate({scrollTop:jQuery(".bob-offres-all-card-div").offset().top-182},600))});jQuery(document).on("click",function(n){var t=jQuery(".mob-filter>ul>li");t.is(n.target)||t.has(n.target).length!==0||(jQuery(".open-filter-mob").removeClass("open-filter-mob"),jQuery(".bob-filter-open-div").fadeOut(),jQuery("body").removeClass("body-bob-filter-open"))});jQuery(".mob-filter>ul>li>svg").on("click",function(){jQuery(this).parents("li").hasClass("open-filter-mob")?(jQuery(this).parents("li").removeClass("open-filter-mob"),jQuery(this).parents("li").find(".bob-filter-open-div").fadeOut(),jQuery("body").removeClass("body-bob-filter-open")):(jQuery(this).parents(".mob-filter").find("li").removeClass("open-filter-mob"),jQuery("body").removeClass("body-bob-filter-open"),jQuery(this).parents("li").addClass("open-filter-mob"),jQuery(this).parents(".mob-filter").find(".bob-filter-open-div").fadeOut(),jQuery(this).parents("li").find(".bob-filter-open-div").fadeIn(),jQuery(this).parents("li").hasClass("body-fixed-filter")&&jQuery("body").addClass("body-bob-filter-open"),setTimeout(function(){jQuery(".filter-fixed .bob-filter-open-div .first-open .form-control").click()},100))});jQuery(".mob-serach-closed").on("click",function(){jQuery(this).parents(".mob-filter").find("li").removeClass("open-filter-mob");jQuery(this).parents(".mob-filter").find(".bob-filter-open-div").fadeOut()});
61jQuery(".apply-online .breadcrumb,.baranches-atm .breadcrumb,.breadcrumbW .breadcrumb,.c-opp .breadcrumb, .e-auction-detail .breadcrumb").addClass("breadcrumb-white");jQuery(".baranches-atm .bob-search-voice-div input").keyup(function(){jQuery(this).val().length>0?jQuery(".baranches-atm .bob-newsletter-div").addClass("addclosed "):jQuery(".baranches-atm .bob-newsletter-div").removeClass("addclosed ")});jQuery(".baranches-atm .bob-search-voice-div .input-group-append svg.clear-search-box").on("click",function(){jQuery(".baranches-atm .bob-newsletter-div").removeClass("addclosed ")});jQuery(".input-closed-div input").keyup(function(){jQuery(this).val().length>0?jQuery(this).parents(".input-closed-div").addClass("addclosed"):jQuery(this).parents(".input-closed-div").removeClass("addclosed")});jQuery(".input-closed-div .closed2_svg").on("click ",function(){jQuery(this).parents(".input-closed-div").removeClass("addclosed");jQuery(this).parents(".input-closed-div").find("input").val("")});(jQuery("body").hasClass("about-us")||jQuery("body").hasClass("second-nav-fixed"))&&jQuery(window).scroll(function(){var n=jQuery(window).scrollTop();n>=124?(jQuery("body").addClass("sticky-filter"),jQuery(".navigation-main-horizontal + .column-splitter").css({"margin-top":jQuery(".navigation-main-horizontal").height()})):(jQuery("body").removeClass("sticky-filter"),jQuery(".navigation-main-horizontal + .column-splitter").css({"margin-top":"0"}))});n<767&&(jQuery(".mob-filter").length>0?jQuery("body").addClass("sticky-filter"):jQuery("body").removeClass("sticky-filter"));jQuery(".filter-fixed").on("click",function(){var n=jQuery(this).attr("data-mob-filter");jQuery("."+n).addClass("bob-open-filter-side")});jQuery(".bob-mob-side-filter .closed-pp,.bob-mob-side-filter .mob-apply-btn").on("click",function(){jQuery(".bob-mob-side-filter").removeClass("bob-open-filter-side")});if(jQuery("body").hasClass("loan-level-2")&&jQuery(".bob-search-filter").length>0&&(l=jQuery(".bob-search-filter").offset().top,jQuery(window).scroll(function(){var n=jQuery(window).scrollTop();l<=n+86&&jQuery(".bob-page-list-box").height()+jQuery(".bob-page-list-box").offset().top-jQuery(".bob-search-filter").height()-86>=n?jQuery("body").addClass("sticky-filter"):jQuery("body").removeClass("sticky-filter")})),jQuery("body").hasClass("loan-level-3")&&(jQuery(".bob-loan-page-tab-div .tabs-heading").length>0&&(a=jQuery(".bob-loan-page-tab-div .tabs-heading").offset().top),jQuery(window).scroll(function(){var n=jQuery(window).scrollTop();a<=n+88&&jQuery(".bob-loan-page-tab-div .tabs-container").height()+jQuery(".bob-loan-page-tab-div .tabs-container").offset().top-jQuery(".bob-loan-page-tab-div .tabs-heading").height()-88>=n?jQuery("body").addClass("sticky-filter"):jQuery("body").removeClass("sticky-filter")})),jQuery(".bob-calculator-div .bob-loan-calculator-form").length>
610||jQuery("body").addClass("no-calc"),n<991){jQuery(".bob-e-auction-filter-btn-div .bob-comman-btn:first-child,.bob-parent-accordion-list-div .closed-pp.d-none,.bob-left-fixed-filter .closed-pp.d-none").on("click",function(){jQuery("body").removeClass("body-bob-filter-open");jQuery(".filter-fixed").removeClass("open-filter-mob");jQuery(".closed-pp").click()});rt='<div class="col-sm-5 full-sm-width">'+jQuery(".bob-parent-accordion-div").parents(".col-sm-5").html()+"<\/div>";jQuery(".bob-parent-accordion-div").length>0;const u=document.querySelectorAll('input[type="range"]'),f=document.querySelector('input[type="text"]');var et=0,ot=0,st=0;function t(n){let t=n.target;n.target.type!=="range"&&(t=document.getElementById("range"));var r=t.min,f=t.max,u=t.value;t.style.backgroundSize=(u-r)*100/(f-r)+"% 100%";jQuery(this).parents(".slidecontainer").next("small").find("em").text(u);i()}function i(){var t;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var i=document.getElementById("amt_id").value,
61n=document.getElementById("month_id").value,o=document.getElementById("rates_id").value;var r=o/100,s=n/12,h=[];for(t=0;t<=s;t++)h.push(t);var u=i*r/12*(Math.pow(1+r/12,n)/(Math.pow(1+r/12,n)-1)),f=u*n,c=f-i;jQuery("#monthly-hl-emi").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery(".total-loan span").html("₹"+Math.round(u).toLocaleString("en-in"));jQuery("#spn_principal_amt").html("₹"+Math.round(i).toLocaleString("en-in"));jQuery("#spn_interest_amt").html("₹"+Math.round(c).toLocaleString("en-in"));jQuery("#spn_total_amt").html("₹"+Math.round(f).toLocaleString("en-in"));glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"?MonthlyTableData():e()}function e(){var p=[],v=[],w=[],tt,d,i;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var h=jQuery("#amt_id").val(),u=jQuery("#amt_id").val(),f=parseInt(jQuery("#amt_id").val()),e=parseFloat(jQuery("#rates_id").val())/100,et=document.getElementById("month_id").value;var g=et/12,b=parseInt(g*12),k=parseInt(g),o=f*e/12*(Math.pow(1+e/12,b)/(Math.pow(1+e/12,b)-1)),nt=0,c=f;for(p.push(f),v.push(n(0)),w.push(f+n(0)),tt=f*e/12,i=1;i<=b;i++)nt=c*e/12,d=n(i),c=c-o+nt,p.push(c),v.push(d),w.push(c+d);o=o*12;var it=[],rt=[],ut=[],y=0,t="";for(t+="<table>",t+=" <thead>",t+="   <tr>",t+="     <th>Year<\/th>",t+="     <th>Opening Balance<\/th>",t+="     <th>EMI*12<\/th>",t+="     <th>Interest paid yearly<\/th>",t+="     <th>Principal paid yearly<\/th>",t+="     <th>Closing Balance<\/th>",t+="   <\/tr>",t+="<\/thead>",i=1;i<=k;i++){k==i&&(y=0);var ot=p[i*12]+y,st=v[i*12]+y,lt=w[i*12]+y,l,a,ht;l=tt+v[1]-Math.round(st);a=f-ot;ht=l+a;ut.push(Math.round(l+a));rt.push(Math.round(l));it.push(Math.round(a));var s=o,ft=u*e,ct=r(ft);i<k?(s=r(o-ct),h=u,u=r(h-s)):(s=h-s+ft,h=u,u=0,s=r(s));t+="<tbody>";t+="<tr>";t+="    <td>"+Math.round(i)+"<\/td>";t+="    <td>"+Math.round(h).toLocaleString("en-in")+"<\/td>";t+="    <td>"+Math.round(o).toLocaleString("en-in")+"<\/td>";t+="    <td>"+Math.round(l).toLocaleString("en-in")+"<\/td>";t+="    <td>"+Math.round(a).toLocaleString("en-in")+"<\/td>";t+="    <td>"+Math.round(u).toLocaleString("en-in")+"<\/td>";t+="<\/tr>";t+="<\/tbody>"}return jQuery("#calculateHomeLoan").length>0&&(document.getElementById("calculateHomeLoan").innerHTML=t),t+="<\/table>",[it,rt,ut]}function n(n){for(var r=o(),t=0,i=n;i<r[0].length;i++)t=t+r[0][i];return t}function o(){var f;if(jQuery("#amt_id").length>0||jQuery("#month_id").length>0||jQuery("#rates_id").length>0)var e=parseInt(jQuery("#amt_id").val()),n=parseFloat(jQuery("#rates_id").val())/100,h=document.getElementById("month_id").value;var c=h/12,r=parseInt(c*12),o=[],s=[],t=e,u=0,i=0;for(i=e*n/12*(Math.pow(1+n/12,r)/(Math.pow(1+n/12,r)-1)),i=i.toFixed(2),f=1;f<=r;f++)u=t*n/12,s.push(t),t=t-i+u,o.push(u);return[o,s]}jQuery(document).on("keyup",".bob-loan-calculator ul li small em",function(){var n=jQuery(this).text();if(n.length==0||n=="0")n=0,jQuery(this).parents("li").find(".slidecontainer input").val(n),jQuery(r).css({"background-size":(n-t)*100/(u-t)+"% 100%"});else{var r=jQuery(this).parents("li").find(".slidecontainer input").attr("id"),t=jQuery(this).parents("li").find(".slidecontainer input").attr("min"),u=jQuery(this).parents("li").find(".slidecontainer input").attr("max");jQuery(this).parents("li").find(".slidecontainer input").val(n);jQuery("#"+r).css({"background-size":(n-t)*100/(u-t)+"% 100%"});i()}});jQuery('input[type="range"]').each(function(){var n=jQuery(this).attr("min"),t=jQuery(this).attr("max"),i=jQuery(this).val();jQuery(this).css({"background-size":(i-n)*100/(t-n)+"% 100%"})});u.forEach(n=>{n.addEventListener("input",t)});location.href.indexOf("gold-loan-calculator")>-1||f.addEventListener("input",t)}jQuery(".bob-svg-text-link-div ul li a").on("click",function(n){var t=jQuery(this).find("span").text();(t=="Request Callback"||t=="कॉलबैक का अनुरोध करें")&&(n.preventDefault(),setTimeout(function(){jQuery("html,body").animate({scrollTop:jQuery("#assistancecontainer").offset().top-86},1e3)},100))});jQuery(".bob-press-data-div .eauction-main-data-div a").on("click",function(){jQuery("html,body").animate({scrollTop:jQuery(jQuery(this).attr("href")).offset().top-140},1e3)});v()});winW=jQuery(window).width();winH=jQuery(window).height();jQuery(function(){fnInitializeMinMaxDef();jQuery("#amt_id,#month_id").parent(".slidecontainer").next("small").children().on("keydown",function(n){jQuery(this).text().length===11&&n.keyCode!=8&&n.preventDefault()});jQuery("#amt_id,#month_id").parent(".slidecontainer").next("small").children().bind("keypress",function(n){var t=n.which||n.keycode;return t>=48&&t<=57?!0:!1})});var amtMin=1e5,amtMax=2e7,amtDefVal=5e6,tenureMin=12,tenureMax=360,tenureDefVal=240,intRates
61Min=5,intRatesMax=15,intRatesDefVal=5;jQuery(".bob-loan-calculator ul li small em").keypress(function(n){if(n.which!=8&&n.which!=0&&n.which!=46&&n.which>31&&(n.which<48||n.which>57))return!1});jQuery(".bob-loan-calculator ul li small em").keyup(function(){let n=jQuery(this).closest("li").find(".slider").attr("max"),t=jQuery(this).closest("li").find(".slider").attr("min"),i=parseFloat(jQuery(this).text());var r=this.id;if(i>parseInt(n))if(alert("Please enter value between "+t+" to "+n),glblCurrentPageUrl=="/calculators/sip-calculator")this.id=="month_id_em"?(jQuery("#month_id_em").text(n),jQuery("#month_id").val(n)):this.id=="rates_id_em"?(jQuery("#rates_id_em").text(n),jQuery("#rates_id").val(n)):this.id=="total_investment_em"?(jQuery("#total_investment_em").text(n),jQuery("#total_investment").val(n)):this.id=="amt_em"&&(jQuery("#amt_em").text(1e6),jQuery("#amt_id").val(1e6)),calculateSIP();else if(glblCurrentPageUrl=="/calculators/gratuity-calculator")jQuery(this).text(n),calculateGratuity();else return jQuery(this).text(n),!1});jQuery("#hltc-bob-interest-rate").parent(".slidecontainer").next("small").children().focusout(function(){let t=jQuery(this).closest("li").find(".slider").attr("max"),n=jQuery(this).closest("li").find(".slider").attr("min"),i=jQuery(this).text();parseInt(i)<parseInt(n)&&(alert("Please enter value between "+n+" to "+t),jQuery(this).text(n),calculate())});jQuery("#hltc-remaining-tenure").parent(".slidecontainer").next("small").children().focusout(function(){let t=jQuery(this).closest("li").find(".slider").attr("max"),n=jQuery(this).closest("li").find(".slider").attr("min"),i=jQuery(this).text();parseInt(i)<parseInt(n)&&(alert("Please enter value between "+n+" to "+t),jQuery(this).text(n),calculate())});jQuery("#invAmt").parent(".slidecontainer").next("small").children().focusout(function(){let t=jQuery(this).closest("li").find(".slider").attr("max"),n=jQuery(this).closest("li").find(".slider").attr("min"),i=jQuery(this).text();parseInt(i)<parseInt(n)&&(alert("Please enter value between "+n+" to "+t),jQuery(this).text(n),financialYear(jQuery("#invFrequency li.active").attr("value")));financialYear(jQuery("#invFrequency li.active").attr("value"))});jQuery("#amt_id").parent(".slidecontainer").next("small").children().focusout(function(){var n=parseInt(jQuery(this).text());glblCurrentPageUrl=="/calculators/sip-calculator"?(n>parseInt(1e6)||n<parseInt(500))&&(alert("Please enter loan amount between 500 to 1000000."),jQuery(this).text(1e6),calculateSIP()):glblCurrentPageUrl=="/calculators/gratuity-calculator"?(n>parseInt(1e8)||n<parseInt(1e4))&&(alert("Please enter loan amount between 10000 to 100000000."),jQuery(this).text(1e8),calculateGratuity()):(n>parseInt(amtMax)||n<parseInt(amtMin))&&(alert("Please enter loan amount between "+amtMin+" to "+amtMax+"."),jQuery(this).text(amtDefVal))});jQuery("#month_id").parent(".slidecontainer").next("small").children().focusout(function(){var n=parseInt(jQuery(this).text());glblCurrentPageUrl=="/calculators/sip-calculator"?(n>parseInt(50)||n<parseInt(1))&&(alert("Please enter tenure between 1 to 50."),jQuery(this).text(3),jQuery("#month_id").val(3),calculateSIP()):(n>parseInt(tenureMax)||n<parseInt(tenureMin))&&(alert("Please enter tenure between "+tenureMin+" to "+tenureMax+"."),jQuery(this).text(tenureDefVal))});jQuery("#rates_id").parent(".slidecontainer").next("small").children().focusout(function(){var n=parseInt(jQuery(this).text());glblCurrentPageUrl=="/calculators/sip-calculator"?(n>parseInt(50)||n<parseInt(1))&&(alert("Please enter Rate of Interest between 1 to 50."),jQuery(this).text(12),jQuery("#rates_id").val(12),calculateSIP()):(n>parseInt(intRatesMax)||n<parseInt(intRatesMin))&&(alert("Please enter Rate of Interest between "+intRatesMin+" to "+intRatesMax+"."),jQuery(this).text(intRatesDefVal))});jQuery(".bob-read-more").click(function(n){var t=jQuery(n.target).hasClass("expand");jQuery(n.target).removeClass("expand");jQuery(".readmore.expand").removeClass("expand");jQuery(".readmore-link.expand").removeClass("expand");t||(jQuery(n.target).addClass("expand"),jQuery(".readmore.expand").addClass("expand"),jQuery("#aboutUSContent").addClass("expand"))});jQuery(".bob-need-assistance-div").find(".bob-assistance-form").length==0&&(jQuery(".bob-need-assistance-div").addClass("backdrop100"),jQuery(".bob-need-assistance-div").addClass("padding-20"));jQuery(document).on("click",".video-section ul li .box .field-thumbnail",function(){var n=jQuery(this).parents("li.item").find(".field-youtubekey").text();jQuery(".bob-iframe-popup-div iframe").attr("src","https://www.youtube.com/embed/"+n);jQuery("body").addClass("bob-iframe-popup-open")});jQuery(".blog-video .play-icon").click(function(){var n=jQuery(this).parents(".share-parent").attr("data-big-img");jQuery(".bob-iframe-popup-div iframe").attr("src","https://www.youtube.com/embed/"+n+"?controls=1&amp;rel=0;playlist="+n);console.log("https://www.youtube.com/embed/"+n+"?controls=1&amp;rel=0;playlist="+n);jQuery("body").addClass("bob-iframe-popup-open")});jQuery(location).attr("href").split("/").pop()=="difc-beta-uatenvironment"&&jQuery(".bob-custom-dropdown.bob-login-dropdown.bob-logincc-div").addClass("d-none");document.addEventListener("DOMContentLoaded",function(){function r(){let n=document.querySelector(".road-block-popup");n&&(n.style.display="none")}function f(t,i){let u=document.getElementById("rememberChoiceodia"),f=u?u.checked:!1;if(t==="en"&&!n.startsWith("/or-in")||t==="or"&&n.startsWith("/or-in")){f&&fnCreateCookie("remember-lang-odia","true",30);fnCreateCookie("pref-lang-odia",t,30);r();return}f&&fnCreateCookie("remember-lang-odia","true",30);fnCreateCookie("pref-lang-odia",t,30);r();window.location.href=i+n}let t=document.querySelector(".road-block-popup"),i=fnReadCookie("pref-lang-odia"),u=fnReadCookie("remember-lang-odia"),n=window.location.pathname.toLowerCase();jQuery(document).on("click",".language-switcher li",function(){if(n.includes("/odisha")){var t=jQuery(this).data("value");(t==="en"||t==="or-in")&&(fnDeleteCookie("pref-lang-odia"),fnDeleteCookie("pref-lang-odia"))}});if(console.log("Popup element:",t),console.log("Current language cookie:",i),console.log("Remember choice cookie
61:",u),console.log("Current URL:",n),u==="true"&&i){r();const t=window.location.pathname.startsWith("/or-in"),u=i==="or",f=i==="en";if(u&&!t){if(n.includes("/odisha")){window.location.href="/or-in"+n;return}}else if(f&&t){let t=n.replace(/^\/or-in/,"")||"/";window.location.href=t;return}}else n.includes("/odisha")?t&&(t.style.display="flex"):t&&(t.style.display="none");const e=document.querySelector(".english-btn-lang");e&&e.addEventListener("click",function(n){n.preventDefault();f("en","/")});const o=document.querySelector(".odia-btn");o&&o.addEventListener("click",function(n){n.preventDefault();f("or","/or-in")});const s=document.querySelector(".popupCloseBtn");s&&s.addEventListener("click",function(){r()})});jQuery(".bob-loan-calculator ul li small em:first").keyup(function(){});jQuery(document).ready(function(){calculate();var n=6,i=11,t=12,r=360;jQuery("#hltc-existing-loan-amount").on("change",function(){var n=jQuery(this).val();if(n.length==0||isNaN(n)||n<1e5||n>2e7)return alert("Please enter a valid number between 100000 and 20000000"),!1;jQuery(this).closest("li").find("small em").html(inrFormat(n));calculate()});jQuery("#hltc-existing-emi").on("change",function(){var n=jQuery(this).val();jQuery(this).closest("li").find("small em").html(inrFormat(n));calculate()});jQuery("#hltc-remaining-tenure").on("change",function(){var n=jQuery(this).val();if(n.length==0||isNaN(n)||n<t||n>r)return alert("Please enter a valid number between "+t+" and "+r),jQuery(this).val(t),!1;calculate()});jQuery("#hltc-bob-tenure").on("change",function(){calculate()});jQuery("#hltc-bob-interest-rate").on("change",function(){var t=jQuery(this).val();if(t.length==0||isNaN(t)||t<n||t>i)return alert("Please enter a valid number between "+n+" and "+i),jQuery(this).val(n),!1;calculate()});(glblCurrentPageUrl=="/calculators/recurring-deposit-calculator"||glblCurrentPageUrl=="/hi-in/calculators/recurring-deposit-calculator")&&jQuery("#radio11").prop("checked",!0)});RemainingDays=365;jQuery(document).ready(function(){function n(){var t=new Date,r=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"],u=t.getDate(),f=r[t.getMonth()],v=t.getMonth(),e=t.getFullYear(),y=u+" "+f+" "+e,n=new Date,o=parseInt(jQuery("#tenureDays").val()),i,a;n.setDate(n.getDate()+o);var s=n.getDate(),h=r[n.getMonth()],p=n.getMonth(),c=n.getFullYear(),l=s+" "+h+" "+c;jQuery(".maturityDate").text(l);i=DaysCount();a=3654-i;getRates(i)}fnGetURLParameterValueByName("shareurl")!=""&&setcalculatorsharevalue();gblbFnHomeLoanEligibilitySetValuesOnPageLoad();calValidation();fnGetURLParameterValueByName("shareurl")==""&&(diffChangeVal(),Cumulative());jQuery("#tnrDays").click(function(){jQuery(".tenureSel.selArrow").addClass("hideY")});jQuery("#tnrDate").on("change",function(){jQuery(".tenureSel.selArrow").removeClass("hideY")});jQuery(function(){jQuery("#txtTenureYear,#txtTenureMonth").on("keydown",function(n){jQuery(this).text().length===11&&n.keyCode!=8&&n.preventDefault()});jQuery("#txtTenureYear,#txtTenureMonth").bind("keypress",function(n){var t=n.which||n.keycode;return t>=48&&t<=57?!0:!1})});jQuery("#txtTenureYear,#txtTenureMonth").focusout(function(){var t,n;jQuery("#tenureDays").val("0");jQuery("#txtTenureYear").text()==10?(jQuery("#tenureYear").val(10),jQuery("#tenureMon").val(0),jQuery("#tenureMon").val(0),jQuery("#tenureDays").val(0),jQuery("#txtTenureMonth").text(0),jQuery("#txtDay").text(0),jQuery("#txtTenureMonth").css("content-visibility","hidden"),jQuery("#txtDay").css("content-visibility","hidden"),jQuery("#tenureDay").val(0),jQuery("#tenureMon").prop("disabled",!0),jQuery("#tenureDay").prop("disabled",!0)):jQuery("#txtTenureYear").text()==0&&jQuery("#txtTenureMonth").text()==0&&jQuery("#txtDay").text()==0?(jQuery("#tenureYear").val(0),jQuery("#tenureMon").val(0),jQuery("#tenureDay").val(7),jQuery("#txtDay").text(7),jQuery("#txtDay").css("content-visibility","auto"),jQuery("#tenureMon").prop("disabled",!1),jQuery("#tenureDay").prop("disabled",!1)):(jQuery("#tenureMon").val(0),jQuery("#txtDay").text(0),jQuery("#tenureYear").val(jQuery("#txtTenureYear").text()),jQuery("#tenureMon").prop("disabled",!1),jQuery("#tenureDay").prop("disabled",!1),jQuery("#tenureMon").val(jQuery("#txtTenureMonth").text()),jQuery("#tenureDay").val(jQuery("#txtDay").text()),jQuery("#txtTenureMonth").css("content-visibility","auto"),jQuery("#txtDay").css("content-visibility","auto"));t=DaysCount();RemainingDays=3654-t;Dates();n=jQuery("#fdType li.active").attr("value");n=="Quarterly Payout"?MaturityQP():n=="Monthly Payout"?MaturityMP():n=="Short Term FD"?MaturityQP():n=="Cumulative"&&Cumulative()});jQuery("#txtDay").focusout(function(){var t,i,r,n;jQuery("#tenureDays").val("0");
61t=parseInt(jQuery("#tenureYear").val());i=parseInt(jQuery("#tenureMon").val());jQuery("#txtDay").text()<7&&t==0&&i==0&&(alert("Please enter number of Days more than 6"),jQuery("#txtDay").text("7"),jQuery("#tenureDay").val(7));r=DaysCount();RemainingDays=3654-r;Dates();n=jQuery("#fdType li.active").attr("value");n=="Quarterly Payout"?MaturityQP():n=="Monthly Payout"?MaturityMP():n=="Short Term FD"?MaturityQP():n=="Cumulative"&&Cumulative()});jQuery("#tenureYear").change(function(){var n,i,t;jQuery("#tenureDays").val("0");(jQuery("#tenureYear").val()==0||jQuery("#tenureYear").val()=="0")&&(jQuery("#tenureMon").val(0),jQuery("#tenureDay").val(7),jQuery("#txtDay").text(7));n=!0;jQuery("#tenureYear").val()==10?(jQuery("#tenureMon").val(0),jQuery("#tenureDays").val(0),jQuery("#tenureDay").val(0),jQuery("#tenureMon").val(0),jQuery("#txtDay").text(0),jQuery("#tenureMon").prop("disabled",!0),jQuery("#txtTenureMonth").text("0"),jQuery("#txtDay").text("0"),jQuery("#txtTenureMonth").css("content-visibility","hidden"),jQuery("#txtDay").css("content-visibility","hidden"),jQuery("#tenureDay").prop("disabled",!0),n=!1):jQuery("#tenureYear").val()==0&&jQuery("#tenureMon").val()==0&&jQuery("#tenureDay").val()==0&&(jQuery("#tenureYear").val(0),jQuery("#tenureMon").val(0),jQuery("#tenureDay").val(7),jQuery("#txtDay").text(7),jQuery("#txtDay").css("content-visibility","auto"),jQuery("#tenureMon").prop("disabled",!1),jQuery("#tenureDay").prop("disabled",!1));jQuery("#tenureYear").val()==9&&jQuery("#tenureMon").val()==12&&(jQuery("#tenureDays").val("0"),jQuery("#tenureDays").prop("disabled",!0),n=!1);jQuery("#tenureYear").val()==9&&jQuery("#tenureMon").val()==12&&(jQuery("#tenureDays").val("0"),jQuery("#tenureDays").prop("disabled",!0),n=!1);n&&(jQuery("#tenureMon").prop("disabled",!1),jQuery("#tenureDays").prop("disabled",!1),jQuery("#tenureDay").prop("disabled",!1),jQuery("#tenureDays").val("0"),jQuery("#txtTenureMonth").css("content-visibility","auto"),jQuery("#txtDay").css("content-visibility","auto"));i=DaysCount();RemainingDays=3654-i;jQuery(document).ready(function(){jQuery("#tenureDays").attr({max:RemainingDays})});Dates();t=jQuery("#fdType li.active").attr("value");t=="Quarterly Payout"?MaturityQP():t=="Monthly Payout"?MaturityMP():t=="Short Term FD"?MaturityQP():t=="Cumulative"&&Cumulative()});jQuery("#tenureMon").change(function(){var i,t,r,n;jQuery("#tenureDays").val(0);i=jQuery("#tenureMon").val();jQuery("#txtTenureMonth").text(i);jQuery("#tenureYear").val()==0&&jQuery("#tenureMon").val()==0&&jQuery("#tenureDay").val()==0&&(alert("Please enter number of Days more than 6"),jQuery("#txtTenureYear").text("0"),jQuery("#tenureYear").val(0),jQuery("#tenureMon").val(0),jQuery("#tenureDay").val(7),jQuery("#txtDay").text(7),jQuery("#txtDay").css("content-visibility","auto"),jQuery("#tenureDay").prop("disabled",!1),range_slider_change());t=!0;jQuery("#tenureYear").val()==9&&jQuery("#tenureMon").val()==12&&(jQuery("#tenureDays").val("0"),jQuery("#tenureDays").prop("disabled",!0),t=!1);t==!0&&(jQuery("#tenureMon").prop("disabled",!1),jQuery("#tenureDays").prop("disabled",!1),jQuery("#tenureDay").prop("disabled",!1));r=DaysCount();RemainingDays=3654-r;jQuery(document).ready(function(){jQuery("#tenureDays").attr({max:RemainingDays})});Dates();n=jQuery("#fdType li.active").attr("value");n=="Quarterly Payout"&&MaturityQP();n=="Monthly Payout"&&MaturityMP();n=="Short Term FD"&&MaturityQP();n=="Cumulative"&&Cumulative()});jQuery("#tenureDays").on("keyup keydown",function(n){if(jQuery("#tnrDays").is(":checked")&&jQuery(this).val()>3654&&n.keyCode!=46&&n.keyCode!=8&&(n.preventDefault(),jQuery(this).val(0)),jQuery("#tnrDate").is(":checked")&&jQuery(this).val()>RemainingDays&&n.keyCode!=46&&n.keyCode!=8&&(n.preventDefault(),jQuery(this).val(RemainingDays)),n.type=="keyup"){var t=jQuery("#fdType li.active").attr("value");t=="Quarterly Payout"?MaturityQP():t=="Monthly Payout"?MaturityMP():t=="Short Term FD"?MaturityQP():t=="Cumulative"&&Cumulative()}});jQuery("#tenureDay").change(function(){var n;jQuery("#tenureDays").val(0);
61var t=parseInt(jQuery("#tenureYear").val()),i=parseInt(jQuery("#tenureMon").val()),r=parseInt(jQuery("#tenureDay").val());jQuery("#txtDay").text(r);jQuery("#tenureDay").val()<7&&t==0&&i==0?(alert("Total Days cannot be less than 7."),jQuery("#tenureDay").val(7),jQuery("#tenureDays").val("7"),jQuery("#txtDay").text("7")):jQuery("#tenureDay").val()>=0&&jQuery("#tenureDay").val()<=6&&t==0&&i==0&&(alert("Total Days cannot be less than 7."),jQuery("#tenureDay").val(7),jQuery("#tenureDays").val(7),jQuery("#txtDay").text("7"),range_slider_change());jQuery("#tenureDays").val(0);jQuery("#tnrDate").is(":checked")?(Dates(),n=jQuery("#fdType li.active").attr("value"),n=="Quarterly Payout"&&MaturityQP(),n=="Monthly Payout"&&MaturityMP(),n=="Short Term FD"&&MaturityQP(),n=="Cumulative"&&Cumulative()):jQuery("#tnrDays").is(":checked")&&r>=7&&(jQuery("#tenureMon").val(0),jQuery("#tenureYear").val(0),OnlyDates(),n=jQuery("#fdType li.active").attr("value"),n=="Quarterly Payout"&&MaturityQP(),n=="Monthly Payout"&&MaturityMP(),n=="Short Term FD"&&MaturityQP(),n=="Cumulative"&&Cumulative())});jQuery("#tenureDays").change(function(){var t,n;jQuery("#tenureDay").val("");jQuery("#tenureYear").val(0);jQuery("#tenureMon").val(0);jQuery("#tenureDay").val(0);jQuery("#txtTenureYear").text(0);jQuery("#txtTenureMonth").text(0);jQuery("#txtDay").text(0);t=jQuery("#tenureDays").val();jQuery("#tenureDays").val()<7&&(alert("Please enter number of Days more than 6"),jQuery("#tenureDays").val(7));jQuery("#tnrDate").is(":checked")?(Dates(),n=jQuery("#fdType li.active").attr("value"),n=="Quarterly Payout"&&MaturityQP(),n=="Monthly Payout"&&MaturityMP(),n=="Short Term FD"&&MaturityQP(),n=="Cumulative"&&Cumulative()):jQuery("#tnrDays").is(":checked")&&t>=7&&(jQuery("#tenureMon").val(0),jQuery("#tenureYear").val(0),OnlyDates(),n=jQuery("#fdType li.active").attr("value"),n=="Quarterly Payout"&&MaturityQP(),n=="Monthly Payout"&&MaturityMP(),n=="Short Term FD"&&MaturityQP(),n=="Cumulative"&&Cumulative())});jQuery("#loan_amount").change(function(){var t=parseInt(jQuery("#loan_amount").val()),n;t<1e3&&(alert("Amount less than 1000 is not allowed"),jQuery("#loan_amount").val(1e3));Dates();n=jQuery("#fdType li.active").attr("value");n=="Quarterly Payout"&&MaturityQP();n=="Monthly Payout"&&MaturityMP();n=="Short Term FD"&&MaturityQP();n=="Cumulative"&&Cumulative()});jQuery("#fdType li").click(function(){Dates();jQuery(".perMPCol,.perQuaterCol").hide();var t=jQuery(this).attr("value");t=="Quarterly Payout"&&(jQuery("#tenureMon").val(),jQuery("#tenureDays").val(0),jQuery("#tenureYear").prop("disabled",!1),jQuery("#tenureYear").val()==10&&(jQuery("#tenureMon").val(0),jQuery("#tenureDays").val(0),"#tenureMon".prop("disabled",!0)),jQuery("#tenureMon").prop("disabled",!1),diffChangeVal(),MaturityQP());t=="Monthly Payout"&&(jQuery("#tenureMon").val(),jQuery("#tenureDays").val(0),jQuery("#tenureYear").prop("disabled",!1),jQuery("#tenureYear").val()==10&&(jQuery("#tenureMon").val(0),jQuery("#tenureDays").val(0),"#tenureMon".prop("disabled",!0)),jQuery("#tenureMon").prop("disabled",!1),diffChangeVal(),MaturityMP());t=="Short Term FD"&&(alert("Tenure upto 180 days"),jQuery("#tenureDays").val(7),jQuery("#tenureYear").val(0),jQuery("#tenureYear").prop("disabled",!0),jQuery("#tenureMon").val(0),jQuery("#tenureMon").prop("disabled",!0),proceed=!1,jQuery("#tenureDays").prop("disabled",!1),n(),MaturityQP());t=="Cumulative"&&(jQuery("#tenureYear").prop("disabled",!1),jQuery("#tenureYear").val()==10&&(jQuery("#tenureMon").val(0),jQuery("#tenureDays").val(0),"#tenureMon".prop("disabled",!0)),jQuery("#tenureMon").prop("disabled",!1),diffChangeVal(),Cumulative())});jQuery("#tenureDays").change(function(){var t=jQuery("#fdType li.active").attr("value");t=="Short Term FD"&&(jQuery("#tenureDays").prop("disabled",!1),jQuery("#tenureDays").val()>180&&jQuery("#tenureDays").val(180),jQuery("#tenureDays").val()<7&&jQuery("#tenureDays").val(7),n(),MaturityQP())});jQuery('input[name="radioGroup"]').change(function(){Dates();var t=jQuery("#fdType li.active").attr("value");t=="Quarterly Payout"&&MaturityQP();t=="Monthly Payout"&&MaturityMP();t=="Short Term FD"&&(n(),MaturityQP());t=="Cumulative"&&Cumulative()});jQuery("#Tenure").change(function(){jQuery("#tenureDays").val(0)})});const calculateTimimg=n=>{let t=0,i=0,r=0;while(n)n>=365?(i++,n-=365):n>=30?(t++,n-=30):(r++,n--);return{years:i,months:t,days:r}};
61if(jQuery("#recurring-deposit-calculator").length>0){options2={series:[{name:glblGetStaticValuesByKeyName("Interest Earned"),data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:glblGetStaticValuesByKeyName("Months"),offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:glblGetStaticValuesByKeyName("Balance"),offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}};chart=new ApexCharts(document.querySelector("#recc-grph"),options2);chart.render();function f(n){chart.updateSeries([{name:glblGetStaticValuesByKeyName("Interest Amount"),data:n}])}jQuery("#regularMonthlyDeposit").parent(".slidecontainer").next("small").children().focusout(function(){var t=500,i=1e6,r=parseInt(jQuery(this).text());r>parseInt(i)||r<parseInt(t)?(alert("Please enter amount between "+t+" to "+i+"."),jQuery(this).text(2e4)):n()});jQuery("#savingsTermyears").parent(".slidecontainer").next("small").children().focusout(function(){var t=0,i=10,r=parseInt(jQuery(this).text());r>parseInt(i)||r<parseInt(t)?(alert("Please enter Saving Term years between "+t+" to "+i+"."),jQuery(this).text(1)):n()});jQuery("#savingsTermmonths").parent(".slidecontainer").next("small").children().focusout(function(){var i=9,t=6,r=parseInt(jQuery(this).text());(r>parseInt(i)||r<parseInt(t))&&jQuery("#savingsTermyears").val()==0?(alert("Please enter Saving Term months between 6 to "+i+"."),jQuery(this).text(t),jQuery("#savingsTermmonths").val(t)):n()});maturity_Arr=glblCalcMaturityArr;function u(n,t,i){if(isNaN(jQuery.trim(n.value)))return!1;if(0===jQuery.trim(n.value).length)return!0;var r=parseFloat(jQuery.trim(n.value));return isNaN(r)?!1:!(r<parseFloat(t)||r>parseFloat(i))}function e(){return RMD_amount=u(document.getElementById("hdregularMonthlyDeposit"),regMD_min,regMD_max),!!RMD_amount}function n(){for(var i,l,p,w,r,a,b=jQuery("#regularMonthlyDeposit").val().replace(/[,|\s|Rs.]+/gi,""),k=parseInt(jQuery("#savingsTermyears").val()),d=parseInt(jQuery("#savingsTermmonths").val()),v=parseInt(jQuery("input[name='radioCust']:checked").val()),e=0,g=maturity_Arr.length,y=0,c=12*k+d,u=parseFloat(b),f=0,s=0,h=0,n=0;g>n;n++){if(c==parseFloat(maturity_Arr[n][0])){e=maturity_Arr[n][v];break}if(c<parseFloat(maturity_Arr[n][0])){y=n>0?n-1:n;e=maturity_Arr[y][v];break}}if(e>0&&(effect=Math.pow(1+e/400,4)-1,effect=parseFloat(effect.toFixed(9)),nominal=12*(Math.pow(effect+1,1/12)-1),h=parseFloat(nominal.toFixed(9))),h>0)for(cummulativeAmount=[],monthlyInterest=[],displayBalance=[],displayDate=[],instAccumulated=[],months=[],i=new Date,date=new Date(i.getFullYear(),i.getMonth()+(n+1),i.getDate()),day=date.getDate(),l=day+"-"+monthname[date.getMonth()]+"-"+date.getFullYear(),date_Arr=[],date_str="",date_Arr.push(l),date_str=date+"/",n=0;c>n;n++)p=new Date(i.getFullYear(),i.getMonth()+(n+2),0).getDate(),(date=p<day?new Date(i.getFullYear(),i.getMonth()+(n+2),0):new Date(i.getFullYear(),i.getMonth()+(n+1),i.getDate()),l=date.getDate()+"-"+monthname[date.getMonth()]+"-"+date.getFullYear(),date_Arr.push(l),date_str+=date+"/",n%3==0&&0!=n)?(r=u+cummulativeAmount[cummulativeAmount.length-1]+monthlyInterest[monthlyInterest.length-1],cummulativeAmount.push(r),displayBalance.push(Math.round(r)),f=r*(h/12),monthlyInterest.push(f),s=displayBalance[displayBalance.length-1]-u*(n+1),instAccumulated.push(s)):0==n?(cummulativeAmount.push(u),displayBalance.push(u),f=u*(h/12),monthlyInterest.push(f),instAccumulated.push(s)):(a=displayBalance[displayBalance.length-1],w=u+parseFloat(a),displayBalance.push(w),r=u+cummulativeAmount[cummulativeAmount.length-1]+monthlyInterest[monthlyInterest.length-1],f=r*(h/12),monthlyInterest.push(f),cummulativeAmount.push(r),instAccumulated.push(s)),months.push(n);r=cummulativeAmount[cummulativeAmount.length-1]+monthlyInterest[monthlyInterest.length-1];cummulativeAmount.push(r);displayBalance.push(Math.round(r));f=r*(h/12);monthlyInterest.push(f);s=displayBalance[displayBalance.length-1]-u*c;instAccumulated.push(s);total_Saving_Amount=isNaN(displayBalance[displayBalance.length-1])?0:displayBalance[displayBalance.length-1];jQuery("#totalSavingsAmount").html("Rs."+t(total_Saving_Amount));jQuery("#hdtotalSavingsAmount").val(total_Saving_Amount);jQuerytotalamount=instAccumulated[instAccumulated.length-1];jQuerytotalamount=isNaN(jQuerytotalamount)?0:jQuerytotalamount;jQuery("#interestEarned").html("Rs."+t(jQuerytotalamount));jQuery("#hdinterestEarned").val(jQuerytotalamount);jQuery("#maturityDate").html(date_Arr[date_Arr.length-1]);jQuery("#hdmaturityDate").val(date_Arr[date_Arr.length-1]);jQuery("#interestRate").html(e);jQuery("#mDate").html(date_Arr[date_Arr.length-1]);jQuery("#matIntRate").html(e);jQuery(".InterestAmount").html("Rs."+t(jQuerytotalamount));jQuery(".MatureAmountNew").html("Rs."+t(total_Saving_Amount));months.push(c);0!=total_Saving_Amount&&0!=jQuerytotalamount||(displayBalance=[],months=[]);o()}function r(n,t){var u=n,e=regMD_min,o=regMD_max,i=t,r=u.data("index"),f=jQuery('div.errorMsg[data-index="'+r+'"]');return"1"==r&&jQuery("#hdregularMonthlyDeposit").val(i),isNaN(i)||("1"==r||"3"==r)&&i.toString().indexOf(".")>-1||i<parseFloat(e)||i>parseFloat(o)?(f.addClass("tooltip"),u.addClass("error"),0):(f.removeClass("tooltip"),u.removeClass("error"),1)}function s(n){var u=document.getElementById("savingsTermyears"),e=document.getElementById("savingsTermmonths"),o=jQuery("#savingsTermyears");parseInt(n)>9?(u.value=Math.floor(n/12),e.value=n-12*u.value):(u.value=0,e.value=n);i(o.val(),o.prop("id"));
61for(var r=parseInt(jQuery("input[name='radioCust']:checked").val()),s=maturity_Arr.length,f=0,t=0;s>t;t++){if(n==parseFloat(maturity_Arr[t][0])){jQuery("#hdinterestRate").val(maturity_Arr[t][r]);jQuery("#interestRate").html(maturity_Arr[t][r]+"% p.a.");break}if(n<parseFloat(maturity_Arr[t][0])){f=t>0?t-1:t;jQuery("#hdinterestRate").val(maturity_Arr[f][r]);jQuery("#interestRate").html(maturity_Arr[f][r]+"% p.a.");break}}}function i(n,t){var s=maturity_Arr.length,u=(maturity_Arr[0][0],maturity_Arr[s-1][0],document.getElementById("savingsTermyears")),e=document.getElementById("savingsTermmonths"),o=jQuery('div.errorMsg[data-index="'+jQuery(u).data("index")+'"]'),f="undefined"!=t&&"savingsTermyears"==t?n:u.value.trim(),i="undefined"!=t&&"savingsTermmonths"==t?n:e.value.trim(),r=!1;return isNaN(parseInt(f))||isNaN(parseInt(i))||(parseInt(f)>0?(r=parseInt(f)<=savTY_max,r&&parseInt(f)==savTY_max&&(r=0==parseInt(i))):r=parseInt(i)>=6&&parseInt(i)<=9&&parseInt(i)%3==0),r?(jQuery(u).removeClass("error"),jQuery(e).removeClass("error"),o.removeClass("tooltip"),1):(jQuery(u).addClass("error"),jQuery(e).addClass("error"),o.addClass("tooltip"),0)}function h(n,t){var i=n.which?n.which:n.keyCode;return 46!==i||"regularMonthlyDeposit"!==t&&"savingsTermyears"!==t&&"savingsTermmonths"!=t?8==n.which||0==n.which||!(n.which<48||n.which>57)||46==i:!1}function c(n){if(isNaN(jQuery.trim(document.getElementById(n).value))){var i=e();if(!i)return u(document.getElementById(n),regMD_min,regMD_max)}null!=document.getElementById(n).value?(document.getElementById(n).value="Rs."+t(jQuery.trim(document.getElementById(n).value)),x=jQuery.trim(document.getElementById(n).value.toString()).replace(/[,]+/gi,""),x=x.toString().replace(/Rs./gi,""),document.getElementById("hd"+n).value=x):document.getElementById("hd"+n).value=0}function l(){if("Graph"==jQuery('input[name="chartview"]:checked').val()){var n=d3.max(displayBalance),t=d3.min(displayBalance),i=d3.max(months);setTimeout(function(){chart.axis.range({max:{x:i,y:n},min:{x:0,y:t}});months.splice(0,0,"months");displayBalance.splice(0,0,"balance");chart.load({columns:[months,displayBalance]})},1)}}function t(n){var i,t,r;return n=n.toString().replace(/[,]+/gi,""),n=n.toString().replace(/Rs./gi,""),i="",n.indexOf(".")>0&&(i=n.substring(n.indexOf("."),n.length)),n=Math.floor(n),n=n.toString(),t=n.substring(n.length-3),r=n.substring(0,n.length-3),""!=r&&(t=","+t),jQuery.trim(r.replace(/\B(?=(\d{2})+(?!\d))/g,",")+t+i)}function o(){for(var h,i,w,y,s,p,r=date_str.split("/"),n=0;n<=date_Arr.length-1;n++){h=new Date(r[r.length-2]);i=new Date(r[0]);i.setFullYear(i.getFullYear()+1);i.setMonth(3);i.setDate(1);for(var c="",u="",l=0,a="",n=0;n<=date_Arr.length-1;n++)h>i?(Edate=i,c+=Edate+"/",Edate.setDate(new Date(r[0]).getDate()),w=r.indexOf(Edate.toString()),u=parseInt(instAccumulated[w])-parseInt(l),l+=parseInt(u),a+=u+" "):(Edate=h,c+=Edate,u=parseInt(instAccumulated[instAccumulated.length-1])-parseInt(l),a+=u,n=date_Arr.length),i.setFullYear(i.getFullYear()+1)}var v=c.split("/"),i=new Date(r[0]),e="",o="";for(i.getMonth()<3?(e+=i.getFullYear()+" ",o=i.getFullYear()):(e+=i.getFullYear()+1+" ",o=parseInt(i.getFullYear())+parseInt(1)),n=0;n<v.length-1;n++)v[n]==i||""==v[n]?e+="":(e+=parseInt(o)+parseInt(1)+" ",o=parseInt(o)+parseInt(1));for(financialYear_Arr=e.trim().split(" "),y=a.trim().split(" "),jQuery("#div_RDTable").empty(),jQuery("#div_RDTable").append("<table class='tblInterest' style='width:90%;'><\/table>"),s=jQuery("#div_RDTable").children(),s.empty(),s.append("<tr><td colspan='2'><b>Financial Year Wise Interest Amount<\/b><\/td><\/tr>"),s.append("<tr><td><b>Financial Year<\/b><\/td><td><b>Interest<\/b><\/td><\/tr>"),p=[],n=0;n<=financialYear_Arr.length-1;n++)s.append("<tr><td>FY-"+financialYear_Arr[n]+"<\/td><td>"+t(y[n])+"<\/td><\/tr>"),p.push(Math.round(y[n]));f(p)}var regMD_min=500,regMD_max=1e6,savTY_min=0,savTY_max=10,savTM_min=0,savTM_max=9,RMD_amount=!1,savingTerm=!1,cummulativeAmount=[],monthlyInterest=[],displayBalance=[],displayDate=[],instAccumulated=[],months=[],date_Arr=[],date_str="",monthname=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];jQuery(".sliderText").each(function(){jQuery(this).on("change",function(){var t=jQuery(this),u=jQuery("#savingsTermyears"),f,e;0!=r(t,t.val())&&0!=i(u.val(),u.prop("id"))&&(f=t.data("index"),e=t.val(),jQuery('input.sliderRange[data-index="'+f+'"]').val(e).change(),n())})});jQuery("#regularMonthlyDeposit").on("focus",function(){});jQuery("#regularMonthlyDeposit").on("blur",function(){});jQuery(".savingsTermText").on("change",function(){var t=jQuery(this),u=jQuery("#regularMonthlyDeposit");if(0!=i(t.val(),t.prop("id"))){var f=document.getElementById("savingsTermyears"),e=document.getElementById("savingsTermmonths"),o="savingsTermyears"==t.prop("id")?t.val():f.value.trim(),s="savingsTermmonths"==t.prop("id")?t.val():e.value.trim(),h=12*parseInt(o)+parseInt(s);jQuery("#savingsTermSlider").val(h).change();0!=r(u,jQuery("#hdregularMonthlyDeposit").val())&&n()}else jQuery(this).attr("id")=="savingsTermmonths"&&jQuery(this).val()<6&&jQuery("#savingsTermyears").val()==0&&(alert("Please enter Saving Term months between 6 to 9."),jQuery(this).val(6),jQuery(this).parent(".slidecontainer").next("small").children().text("6"))});jQuery("input[name='radioCust']").change(function(){jQuery("#savingsTermyears").change()});n();jQuery(document).ready(function(){jQuery("#Other,#Select1").on("change",function(){if(jQuery(this).val().indexOf("http")>-1)return(window.open(jQuery(this).val(),"_blank"),!1)});jQuery(".nav-header .menu li").on("click",function(){var t=jQuery(this).children("a:first"),n;jQuery(document).width()<980&&(n=t.prop("href"),window.open(n))})});
61jQuery('input[name="chartview"]').change(function(){jQuery("#recc-grph").toggle();jQuery("#div_RDTable").toggle();var t=jQuery("#savingsTermyears"),u=jQuery("#regularMonthlyDeposit");0!=i(t.val(),t.prop("id"))&&0!=r(u,jQuery("#hdregularMonthlyDeposit").val())&&n()});jQuery(function(){jQuery("#savingsTermyears").change()})}if(jQuery("#gold-loan-calculator").length>0){rates_Arr=[[parseInt(document.getElementById("rate24Carat").value),parseInt(document.getElementById("rate24Carat-75LTV").value),parseInt(document.getElementById("rate24Carat-90LTV").value),parseInt(document.getElementById("rate24Carat-70LTV").value),parseInt(document.getElementById("rate24Carat-65LTV").value)],[parseInt(document.getElementById("rate22Carat").value),parseInt(document.getElementById("rate22Carat-75LTV").value),parseInt(document.getElementById("rate22Carat-90LTV").value),parseInt(document.getElementById("rate22Carat-70LTV").value),parseInt(document.getElementById("rate22Carat-65LTV").value)],[21,3526,3746],[parseInt(document.getElementById("rate20Carat").value),parseInt(document.getElementById("rate20Carat-75LTV").value),parseInt(document.getElementById("rate20Carat-90LTV").value),parseInt(document.getElementById("rate20Carat-70LTV").value),parseInt(document.getElementById("rate20Carat-65LTV").value)],[19,154,184],[parseInt(document.getElementById("rate18Carat").value),parseInt(document.getElementById("rate18Carat-75LTV").value),parseInt(document.getElementById("rate18Carat-90LTV").value),parseInt(document.getElementById("rate18Carat-70LTV").value),parseInt(document.getElementById("rate18Carat-65LTV").value)],];function i(n,t){var i=n,f=parseInt(i.attr("min")),e=parseInt(i.attr("max")),o=i.data("index"),r=parseInt(t),u=jQuery('div.errorMsg[data-index="'+o+'"]');return r>=f&&e>=r?(u.removeClass("goldLoanTooltip"),i.removeClass("error"),1):(u.addClass("goldLoanTooltip"),i.addClass("error"),0)}function f(n){if(0!=n.which&&8!=n.which&&(n.which<48||n.which>57))return!1}function r(n,t){for(var i=0;i<=rates_Arr.length-1;i++)if(rates_Arr[i][0]==t)return rates_Arr[i][n]}function t(n){var i,t,r;return n=n.toString().replace(/[,]+/gi,""),n=n.toString().replace(/Rs./gi,""),i="",n.indexOf(".")>0&&(i=n.substring(n.indexOf("."),n.length)),n=Math.floor(n),n=n.toString(),t=n.substring(n.length-3),r=n.substring(0,n.length-3),""!=r&&(t=","+t),jQuery.trim(r.replace(/\B(?=(\d{2})+(?!\d))/g,",")+t+i)}function n(){setTimeout(function(){var n,i;for(articles_Arr=[],caret_Arr=[],weights_Arr=[],LoneAmt_Arr=[],chart_Arr=[],chartlabelArr=[],caret=0,tenure=0,ratePerGram=0,weight=0,loneAmt=0,totalLoneAmt=0,n=1;n<=jQuery("#ddl_ornaments li.active").data("no");n++)isNaN(jQuery("#txtWeight"+n).val().replace(/[,|\s|Rs|gms]+/gi,""))||""==jQuery("#txtWeight"+n).val()||(tenure=jQuery('input[name="radioTenure"]:checked').val(),caret=jQuery("#ddlCarat"+n+" li.active").data("no"),weight=jQuery("#txtWeight"+n).val().replace(/[,|\s|Rs|gms]+/gi,""),parseFloat(weight)<1&&(alert("Minimum 1 gm weight required."),weight="1"),ratePerGram="0"!=jQuery("#ddlCarat"+n+" li.active").data("no")?r(tenure,caret):0,i=Math.round(weight*ratePerGram),(loneAmt=t(Math.round(weight*ratePerGram)),totalLoneAmt+=Math.round(weight*ratePerGram),totalLoneAmt>5e6)?(alert("Note: Ornaments Value is Rs "+t(totalLoneAmt)+" but allowable loan amount is Rs. 50 Lakh."),jQuery(".outputResult").show(),jQuery(".message").show(),jQuery(".message").html("<b>Note: <\/b>Ornaments Value is Rs "+t(totalLoneAmt)+" but allowable loan amount is Rs. 50 Lakh."),jQuery("#spnLoanValue1").html(""),jQuery("#spnLoanValue2").html(""),jQuery("#spnLoanValue3").html(""),jQuery("#spnLoanValue4").html(""),jQuery("#hdnLoanValue"+n).val(0),jQuery("#spnTotalLone").html("Rs. 5000000"),jQuery("#hdnTotalLone").val(5e6),articles_Arr.push(n),caret_Arr.push(caret),weights_Arr.push(weight),LoneAmt_Arr.push(5e6),chartlabelArr.push("Ornament "+n),chart_Arr.push(5e6)):totalLoneAmt<10?(jQuery(".message").show(),jQuery(".message").html("<b>Note: <\/b>Minimum Loan amount should be Rs. 10,000."),jQuery("#spnLoanValue"+n).html("Rs. "+loneAmt),jQuery("#hdnLoanValue"+n).val(loneAmt),jQuery(".outputResult").hide(),jQuery("#hdnTotalLone").val(totalLoneAmt)):(jQuery(".outputResult").show(),jQuery(".message").hide(),jQuery("#spnLoanValue"+n).html("Rs. "+loneAmt),jQuery("#hdnLoanValue"+n).val(loneAmt),jQuery("#spnTotalLone").html("Rs. "+t(totalLoneAmt)),jQuery("#hdnTotalLone").val(totalLoneAmt),articles_Arr.push(n),caret_Arr.push(caret),weights_Arr.push(weight),LoneAmt_Arr.push(loneAmt),chartlabelArr.push("Ornament "+n),chart_Arr.push(i)));chart_Arr.length>0&&(jQuery(".bob-gold-grph-div #gold-grph").slideDown(),u(chart_Arr,chartlabelArr))},300)}var articles_Arr=[],caret_Arr=[],weights_Arr=[],LoneAmt_Arr=[],chart_Arr=[];jQuery(".sliderText").blur(function(){var r=jQuery(this),u=r.val().replace(/[,|\s|Rs|gms]+/gi,""),f=u;parseFloat(f)<1&&(f="1",u="1");(r.val(t(f)+" Gms"),1==i(r,u))&&(jQuery("#"+r.attr("name")).val(u),r.data("index"),n())});
61jQuery(".sliderText").keypress(function(t){var i=parseInt(jQuery(this).val());t.keyCode==13&&i>0&&n()});jQuery(".sliderText").on("focus",function(){var n=jQuery(this);n.val(n.val().replace(/[,|\s|Rs|Gms]+/gi,""))});fnGetURLParameterValueByName("shareurl")==""&&jQuery("#ddl_ornaments li").click(function(){for(var i,r=jQuery(this).data("no"),t=1;4>=t;t++)document.getElementById("txtWeight"+t).value="",document.getElementById("hdnWeight"+t).value="",document.getElementById("spnLoanValue"+t).innerHTML="",document.getElementById("hdnLoanValue"+t).value="",jQuery("#ddlCarat"+t).val(0);for(jQuery("#ddlNoofOrnaments").val(jQuery(this).data("no")),jQuery(".bob-select-data-div").show(),jQuery(".tblGoldLoan").show(),jQuery(".notshow").hide(),i=1;r>=i;i++)jQuery(".article"+i).show();n();0==r&&(jQuery(".bob-select-data-div").show(),jQuery(".tblGoldLoan").hide(),jQuery("#spnTotalLone").html("Rs. 0"));jQuery("#ddlNoofOrnaments").val(jQuery(this).data("no"))});jQuery(".ddlGoldLoan li").click(function(){n()});jQuery(".tblGoldLoan .txtGoldLoan").keyup(function(){n()});jQuery('input[name="radioTenure"]').change(function(){n()});jQuery(document).ready(function(){jQuery('input[type="text"]').bind("cut copy paste",function(n){n.preventDefault()});jQuery("#Other,#Select1").on("change",function(){if(jQuery(this).val().indexOf("http")>-1)return(window.open(jQuery(this).val(),"_blank"),!1)});jQuery(".nav-header .menu li").on("click",function(){var t=jQuery(this).children("a:first"),n;jQuery(document).width()<980&&(n=t.prop("href"),window.open(n))});fnGetURLParameterValueByName("shareurl")==""&&(jQuery(".tblGoldLoan").hide(),jQuery("#spnTotalLone").html("Rs. 0"),n())});options1={series:[24e3,25e3,27e3],labels:["Ornament 1","Ornament 2","Ornament 3"],chart:{height:250,type:"donut",toolbar:{show:!1}},dataLabels:{enabled:!0},stroke:{width:0},colors:["#1A2C71","#C7211C","#FFB205","#F26522"],fill:{opacity:1,type:"solid",gradient:{shade:"dark"}},plotOptions:{pie:{donut:{size:"60%",expandOnClick:!1}}},tooltip:{custom:function({series:n,seriesIndex:t,w:i}){return'<div class="arrow_box"><span>'+i.globals.labels[t]+": Loan Amount Rs."+n[t]+"<\/span><\/div>"}}};chart=new ApexCharts(document.querySelector("#gold-grph"),options1);chart.render();function u(n,t){chart.updateOptions({labels:t});chart.updateSeries(n)}}jQuery("#clec-grph").length>0&&(optionsCar={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#clec-grph"),optionsCar),chart.render());jQuery("#elec-grph").length>0&&(optionsEdu={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#elec-grph"),optionsEdu),chart.render());BRLLR=7.95;Concession=.25;jQuery("#helc-grph").length>0&&(optionsHLE={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}}
61,colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#helc-grph"),optionsHLE),chart.render());jQuery("#other_emi").on("keyup",function(){var n=parseInt(jQuery("#gross_monthly_salary").val()),t=parseInt(jQuery("#other_emi").val());t>n&&(jQuery("#salaried").is(":checked")?(alert("Other EMI should not be greater than Salary"),jQuery("#other_emi").val(0),jQuery("#other_emi").focus()):(alert("Other EMI Should not be greater than income."),jQuery("#other_emi").val(0),jQuery("#other_emi").focus()))});jQuery("#other_deduction").on("keyup",function(){var n=parseInt(jQuery("#gross_monthly_salary").val()),t=parseInt(jQuery("#other_deduction").val());t>n&&(jQuery("#salaried").is(":checked")?(alert("Monthly deductions should not be greater than Salary."),jQuery("#other_deduction").val(0),jQuery("#other_deduction").focus()):(alert("Monthly deductions should not be greater than Income."),jQuery("#other_deduction").val(0),jQuery("#other_deduction").focus()))});jQuery("#salaried").on("click",function(){jQuery("#pie-grph .apexcharts-canvas,.resize-triggers").remove();jQuery("#gross_annual_income").hide();jQuery("#bobtitleDOI").hide();jQuery("#monthly_salary_label").show();jQuery("#bobtitle").show();jQuery("#other_deduction_title").hide();jQuery("#other_deduction_nps").show();jQuery("#gross_monthly_salary").val(4e4);var n=new Date;jQuery("#DOB").val("1986-07-05");jQuery("#cibil_score").val("701andabovebutlessthan726");jQuery("#other_emi").val(0);jQuery("#other_deduction").val(5e3);jQuery("#emi_amount").val(19e3);jQuery("#emi_amount").html("₹19,000");jQuery("#per_lac_emi").val(855);jQuery("#max_emi_allowed").val(19e3);jQuery("#foir").val(60);jQuery("#eligible_loan_amount").val(2038340);jQuery("#eligible_loan_amount").html("₹20,38,340");jQuery("#eligible_tenure").val(240);jQuery("#eligible_tenure").html("240");jQuery("#interest_rate").val(9.5);jQuery("#interest_rate").html("9.50%");BindHomeLoanElgibilityCalc()});jQuery("#selfEmployed").on("click",function(){jQuery("#pie-grph .apexcharts-canvas,.resize-triggers").remove();jQuery("#monthly_salary_label").hide();jQuery("#bobtitle").hide();jQuery("#gross_annual_income").show();jQuery("#bobtitleDOI").show();jQuery("#other_deduction_title").show();jQuery("#other_deduction_nps").hide();jQuery("#gross_monthly_salary").val(12e5);var n=new Date;jQuery("#DOB").val("1979-07-05");jQuery("#cibil_score").val("701andabovebutlessthan726");jQuery("#other_emi").val(0);jQuery("#other_deduction").val(5e3);jQuery("#emi_amount").val(75e3);jQuery("#emi_amount").html("₹75,000");jQuery("#per_lac_emi").val(862);jQuery("#max_emi_allowed").val(75e3);jQuery("#foir").val(80);jQuery("#eligible_loan_amount").val(7990020);jQuery("#eligible_loan_amount").html("₹79,90,020");jQuery("#eligible_tenure").val(240);jQuery("#eligible_tenure").html("240");jQuery("#interest_rate").val(9.6);jQuery("#interest_rate").html("9.60%");BindHomeLoanElgibilityCalc()});jQuery("#gross_monthly_salary").keydown(function(){jQuery("#DOB").val(0);jQuery("#cibil_score").val(0);jQuery("#other_emi").val(0);jQuery("#other_deduction").val(0);jQuery("#month_id").val(0);jQuery("#emi_amount").val(0);jQuery("#eligible_loan_amount").val(0);jQuery("#eligible_loan_amount").html("0");jQuery("#eligible_tenure").val(0);jQuery("#eligible_tenure").html("0");jQuery("#interest_rate").val(0);jQuery("#emi_amount").html("0");jQuery("#interest_rate").html("0%")});jQuery(function(){var n=new Date,t=String(n.getDate()).padStart(2,"0"),i=String(n.getMonth()+1).padStart(2,"0"),r=n.getFullYear();n=r+"-"+i+"-"+t;jQuery("#DOB").attr("max",n)});jQuery("#gross_monthly_salary").on("change",function(){if(jQuery("#salaried").is(":checked")){var n=jQuery("#gross_monthly_salary").val(),i='[{"SDay":0,"EDay":19999,"FOIR":50},{"SDay":20000,"EDay":49999,"FOIR":60},{"SDay":50000,"EDay":199999,"FOIR":65},{"SDay":200000,"EDay":499999,"FOIR":70},{"SDay":500000,"EDay":100000000,"FOIR":75}]',u="",t="",r=jQuery.parseJSON(i);jQuery.each(r,function(i,r){foirDtl=parseInt(n)>=parseInt(r.SDay)&&parseInt(n)<=parseInt(r.EDay);foirDtl&&(t=r.FOIR,jQuery("#foir").val(t))})}if(jQuery("#selfEmployed").is(":checked")){var n=jQuery("#gross_monthly_salary").val(),i='[{"SDay":0,"EDay":600000,"FOIR":70},{"SDay":600001,"EDay":1000000000,"FOIR":80}]',u="",t="",r=jQuery.parseJSON(i);jQuery.each(r,function(i,r){foirDtl=parseInt(n)>=parseInt(r.SDay)&&parseInt(n)<=parseInt(r.EDay);foirDtl&&(t=r.FOIR,jQuery("#foir").val(t))})}});jQuery("#DOB").on("change",function(){var e=jQuery("#DOB").val(),n=new Date,t=n.getMonth(),i=n.getDate(),u=n.getFullYear()+"/"+(t<10?"0":"")+t+"/"+(i<10?"0":"")+i,f,r;d3=new Date(jQuery("#DOB").val());d4=new Date(u);f=(d4.getFullYear()-d3.getFullYear())*12;r=d4.getFullYear()-d3.getFullYear();r<18&&(alert("Date of Birth Should be greater than 18 Years"),jQuery("#DOB").val(""),jQuery("#DOB").focus())});
61jQuery("#month_id").on("change",function(){var n=parseInt(jQuery("#month_id").val());glblCurrentPageUrl!="/calculators/sip-calculator"&&glblCurrentPageUrl!="/calculators/gratuity-calculator"&&(n>=361||n<=11)&&(alert("Please enter Tenure between 12 to 360"),jQuery("#month_id").val(0),jQuery("#month_id").focus())});jQuery("#calculateEligibility").on("click",function(){var u=glblBRLLR,ut,rt,e,s,f,ft,r,n,o,p,nt,et,tt,y,w,it,ot,b;if(jQuery("#pie-grph .apexcharts-canvas,.resize-triggers").remove(),s=parseInt(jQuery("#month_id").val()),s>=361||s<=11)return alert("Please enter Tenure between 12 to 360"),jQuery("#month_id").val(0),jQuery("#month_id").focus(),!1;if(jQuery("#DOB").val()!=""){if(jQuery("#salaried").is(":checked")){var f=jQuery("#eligible_tenure").val(),st=jQuery("#DOB").val(),v=new Date,ht=String(v.getDate()).padStart(2,"0"),ct=String(v.getMonth()+1).padStart(2,"0"),lt=v.getFullYear();v=lt+"-"+ct+"-"+ht;var k=new Date,d=k.getMonth()+1,g=k.getDate(),at=k.getFullYear()+"/"+(d<10?"0":"")+d+"/"+(g<10?"0":"")+g;if(d3=new Date(jQuery("#DOB").val()),d4=new Date(at),rt=(d4.getFullYear()-d3.getFullYear())*12,ut=d4.getFullYear()-d3.getFullYear(),e=720-Number(rt),st>v&&(alert("Date Should not be greater than today's Date"),jQuery("#DOB").val(v),jQuery("#DOB").focus()),ut>60){alert("Date of Birth Should not be greater than 60 Years");jQuery("#DOB").val(v);jQuery("#DOB").focus();jQuery("#gross_monthly_salary").val(4e4);
61var yt=new Date,g="05",d="07",vt="1986-"+d+"-"+g;return jQuery("#DOB").val(vt),jQuery("#cibil_score").val("701andabovebutlessthan726"),jQuery("#other_emi").val(0),jQuery("#other_deduction").val(5e3),jQuery("#emi_amount").val(19e3),jQuery("#emi_amount").html("₹19,000"),jQuery("#per_lac_emi").val(855),jQuery("#max_emi_allowed").val(19e3),jQuery("#foir").val(60),jQuery("#eligible_loan_amount").val(2038340),jQuery("#eligible_loan_amount").html("₹20,38,340"),jQuery("#eligible_tenure").val(240),jQuery("#eligible_tenure").html("240"),jQuery("#interest_rate").val(9.5),jQuery("#interest_rate").html("9.50%"),BindHomeLoanElgibilityCalc(),!1}e>360?(jQuery("#eligible_tenure").val(360),f=360,jQuery(".eligible_tenure").html(360),s=jQuery("#month_id").val(),s>360?alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to 360"):s>=12&&s<=360?jQuery("#month_id").val()>e?(alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to "+e),jQuery(".eligible_tenure").html(e)):(jQuery("#eligible_tenure").val(jQuery("#month_id").val()),f=jQuery("#month_id").val(),jQuery(".eligible_tenure").html(jQuery("#month_id").val())):jQuery(".eligible_tenure").html(e)):(jQuery("#eligible_tenure").val(e),f=e,s=jQuery("#month_id").val(),s>=12&&s<=360?jQuery("#month_id").val()>e?(alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to "+e),jQuery(".eligible_tenure").html(e)):(jQuery("#eligible_tenure").val(jQuery("#month_id").val()),f=jQuery("#month_id").val(),jQuery(".eligible_tenure").html(jQuery("#month_id").val())):jQuery(".eligible_tenure").html(e));r=jQuery("#cibil_score li.active").attr("value");r=="-1"?(n=Number(u-.1)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="Lessthan701"?(n=Number(u+1.45)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="701andabovebutlessthan726"?(n=Number(u+.35)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="726andabovebutlessthan751"?(n=Number(u-.3)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="751andabovebutlessthan771"?(n=Number(u-.55)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="771andabovebutlessthan800"?(n=Number(u-.55)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):(n=Number(u-.75)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%"));var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));if(jQuery("#per_lac_emi").val(Math.round(i)),ft=Math.round(t/i*1e5),ft<=99999)alert("Please re-check your Input Details(Salary, DOB or Deductions)"),location.reload();else{if(o=Math.round(t/i*1e5),o>=3e6){if(r=jQuery("#cibil_score li.active").attr("value"),r=="771andabovebutlessthan800"||r=="800andabove"){n=Number(u-.25);jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}}else if(o<=15e5)if(r=jQuery("#cibil_score li.active").attr("value"),r=="-1"){n=Number(u+.6)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else if(r=="Lessthan701"){n=Number(u+1.6)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else if(r=="701andabovebutlessthan726"){n=Number(u+.6)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else if(r=="726andabovebutlessthan751"){n=Number(u+.5)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else if(r=="751andabovebutlessthan771"){n=Number(u+.35)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else if(r=="771andabovebutlessthan800"){n=Number(u+.25)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}else{n=Number(u+.25)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));o=Math.round(t/i*1e5)}o=o.toString();p=o.substring(o.length-3);nt=o.substring(0,o.length-3);nt!=""&&(p=","+p);et=nt.replace(/\B(?=(\d{2})+(?!\d))/g,",")+p;jQuery("#eligible_loan_amount").html("₹"+et);jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5));tt=Math.round(jQuery("#eligible_loan_amount").val())*(n/1200)/(1-Math.pow(1+n/1200,-1*parseInt(f)));jQuery("#emi_amount").val(Math.round(tt));y=Math.round(tt);y=y.toString();w=y.substring(y.length-3);it=y.substring(0,y.length-3);it!=""&&(w=","+w);ot=it.replace(/\B(?=(\d{2})+(?!\d))/g,",")+w;jQuery("#emi_amount").html("₹"+ot);
61b=document.getElementById("month_id").value;jQuery("#eligible_tenure").val(parseInt(b));jQuery("#eligible_tenure").html(parseInt(b));jQuery("#tenuretext").html(parseInt(b));jQuery("#tenuremax").html(parseInt(b));jQuery("#month_id").attr("max",parseInt(b));BindHomeLoanElgibilityCalc()}}if(jQuery("#selfEmployed").is(":checked")){var f=jQuery("#eligible_tenure").val(),st=jQuery("#DOB").val(),v=new Date,ht=String(v.getDate()).padStart(2,"0"),ct=String(v.getMonth()+1).padStart(2,"0"),lt=v.getFullYear();v=lt+"-"+ct+"-"+ht;var k=new Date,d=k.getMonth()+1,g=k.getDate(),at=k.getFullYear()+"/"+(d<10?"0":"")+d+"/"+(g<10?"0":"")+g;if(d3=new Date(jQuery("#DOB").val()),d4=new Date(at),ut=d4.getFullYear()-d3.getFullYear(),rt=(d4.getFullYear()-d3.getFullYear())*12,e=780-Number(rt),st>v&&(alert("Date Should not be greater than today's Date"),jQuery("#DOB").val(v),jQuery("#DOB").focus()),ut>65){alert("Date of Birth Should not be greater than 65 Years");jQuery("#DOB").val(v);jQuery("#DOB").focus();jQuery("#gross_monthly_salary").val(12e5);var yt=new Date,g="05",d="07",vt="1979-"+d+"-"+g;return jQuery("#DOB").val(vt),jQuery("#cibil_score").val("701andabovebutlessthan726"),jQuery("#other_emi").val(0),jQuery("#other_deduction").val(5e3),jQuery("#emi_amount").val(75e3),jQuery("#emi_amount").html("₹75,000"),jQuery("#per_lac_emi").val(862),jQuery("#max_emi_allowed").val(75e3),jQuery("#foir").val(80),jQuery("#eligible_loan_amount").val(7990020),jQuery("#eligible_loan_amount").html("₹79,90,020"),jQuery("#eligible_tenure").val(240),jQuery("#eligible_tenure").html("240"),jQuery("#interest_rate").val(9.6),jQuery("#interest_rate").html("9.60%"),BindHomeLoanElgibilityCalc(),!1}e>360?(jQuery("#eligible_tenure").val(360),f=360,jQuery(".eligible_tenure").html(360),s=jQuery("#month_id").val(),s>360?(alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to 360"),jQuery("#month_id").val(360)):s>=12&&s<=360?jQuery("#month_id").val()>e?(alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to "+e),jQuery(".eligible_tenure").html(e)):(jQuery("#eligible_tenure").val(jQuery("#month_id").val()),f=jQuery("#month_id").val(),jQuery(".eligible_tenure").html(jQuery("#month_id").val())):(jQuery("#month_id").val(360),jQuery(".eligible_tenure").html(360))):(jQuery("#eligible_tenure").val(e),f=e,s=jQuery("#month_id").val(),s==0&&jQuery("#month_id").val(e),s>=12&&s<=360?s>e?(alert("You are not eligible for "+jQuery("#month_id").val()+" month. Please enter the value between 12 to "+e),jQuery(".eligible_tenure").html(e)):(jQuery("#eligible_tenure").val(jQuery("#month_id").val()),f=jQuery("#month_id").val(),jQuery(".eligible_tenure").html(jQuery("#month_id").val())):jQuery(".eligible_tenure").html(e));r=jQuery("#cibil_score li.active").attr("value");r=="-1"?(n=Number(u-.1)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="Lessthan701"?(n=Number(u+1.45)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="701andabovebutlessthan726"?(n=Number(u+.35)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="726andabovebutlessthan751"?(n=Number(u-.3)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="751andabovebutlessthan771"?(n=Number(u-.55)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):r=="771andabovebutlessthan800"?(n=Number(u-.55)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%")):(n=Number(u-.75)-0,jQuery("#interest_rate").val(parseFloat(n)),jQuery("#interest_rate").html(n.toFixed(2)+"%"));var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));if(jQuery("#per_lac_emi").val(Math.round(i)),ft=Math.round(t/i*1e5),ft<=99999)alert("Please re-check your Input Details(Income, DOI or Deductions)"),location.reload();else{if(jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5)),jQuery("#eligible_loan_amount").val()>=3e6){if(r=jQuery("#cibil_score li.active").attr("value"),r=="771andabovebutlessthan800"||r=="800andabove"){n=Number(u-.2);jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}}else if(jQuery("#eligible_loan_amount").val()<=15e5)if(r=jQuery("#cibil_score li.active").attr("value"),r=="-1"){n=Number(u+.7)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else if(r=="Lessthan701"){n=Number(u+1.7)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else if(r=="701andabovebutlessthan726"){n=Number(u+.7)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else if(r=="726andabovebutlessthan751"){n=Number(u+.6)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else if(r=="751andabovebutlessthan771"){n=Number(u+.45)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else if(r=="771andabovebutlessthan800"){n=Number(u+.35)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}else{n=Number(u+.35)-.25;jQuery("#interest_rate").val(parseFloat(n));jQuery("#interest_rate").html(n.toFixed(2)+"%");var n=jQuery("#interest_rate").val(),h=jQuery("#gross_monthly_salary").val(),c=jQuery("#foir").val(),l=jQuery("#other_emi").val(),a=jQuery("#other_deduction").val(),t=Number(h)/12*Number(c)/100-(Number(l)+Number(a)),pt=jQuery("#max_emi_allowed").val(t),i=1e5*(n/1200)/(1-Math.pow(1+n/1200,-1*parseFloat(f)));jQuery("#per_lac_emi").val(Math.round(i));jQuery("#eligible_loan_amount").val(Math.round(t/i*1e5))}o=Math.round(t/i*1e5);o=o.toString();p=o.substring(o.length-3);nt=o.substring(0,o.length-3);nt!=""&&(p=","+p);et=nt.replace(/\B(?=(\d{2})+(?!\d))/g,",")+p;jQuery("#eligible_loan_amount").html("₹"+et);tt=Math.round(jQuery("#eligible_loan_amount").val())*(n/1200)/(1-Math.pow(1+n/1200,-1*parseInt(f)));jQuery("#emi_amount").val(Math.round(tt));y=Math.round(tt);y=y.toString();w=y.substring(y.length-3);it=y.substring(0,y.length-3);it!=""&&(w=","+w);ot=it.replace(/\B(?=(\d{2})+(?!\d))/g,",")+w;jQuery("#emi_amount").html("₹"+ot);b=jQuery("#eligible_tenure").val();jQuery("#tenuretext").html(b);BindHomeLoanElgibilityCalc()}}}else{alert("Please select DOB");return}});jQuery(".bobcalshare").on("click",function(){var h=window.location.href,p,n,t;if(h.indexOf("?")>0&&(p=h.substring(0,h.indexOf("?")),window.history.replaceState({},document.title,p)),glblCurrentPageUrl=="/calculators/home-loan-eligibility-calculator"||glblCurrentPageUrl=="/hi-in/calculators/home-loan-eligibility-calculator"){var tt=jQuery("#gross_monthly_salary").val(),it=jQuery("#DOB").val(),rt=jQuery("#month_id").val(),ut=jQuery("#cibil_score li.active").attr("value"),ft=jQuery("#other_emi").val(),et=jQuery("#other_deduction").val(),ir=jQuery("#foir").val(),ot=jQuery("input[type=radio][name=radioTnr]").filter(":checked")[0],st={hlecdet:[{radTen:ot.id,gms:tt,dob:it,mon:rt,cibil:ut,othemi:ft,othdeduc:et,foir:jQuery("#foir").val()}]},n=encodeURI(JSON.stringify(st)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/personal-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/personal-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_i
61d").value,r=document.getElementById("rates_id").value,ht={personalloan:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(ht)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/car-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/car-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,ct={carloan:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(ct)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/two-wheeler-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/two-wheeler-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,lt={twlloan:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(lt)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/education-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/education-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,at={eduloan:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(at)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/recurring-deposit-calculator"||glblCurrentPageUrl=="/hi-in/calculators/recurring-deposit-calculator"){var vt=document.getElementById("regularMonthlyDeposit").value,yt=document.getElementById("savingsTermyears").value,pt=document.getElementById("savingsTermmonths").value,wt=jQuery("input[name='radioCust']:checked").val(),bt={rdcal:[{rmd:vt,sty:yt,stm:pt,radiosel:wt}]},n=encodeURI(JSON.stringify(bt)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/home-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/home-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,kt={homeloanemi:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(kt)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/gratuity-calculator"||glblCurrentPageUrl=="/hi-in/calculators/gratuity-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,dt={gratuity:[{amt:u,tenure:i}]},n=encodeURI(JSON.stringify(dt)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/sip-calculator"||glblCurrentPageUrl=="/hi-in/calculators/sip-calculator"){if(jQuery("li.sip").attr("class")=="sip active")var w=parseFloat(jQuery("#amt_id").val()),i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,gt={sip:[{amt:w,tenure:i,interest:r}]};else var w=parseFloat(jQuery("#total_investment").val()),i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,gt={sip:[{tinvt:w,tenure:i,interest:r}]};n=encodeURI(JSON.stringify(gt));t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/mudra-loan-emi-calculator"||glblCurrentPageUrl=="/hi-in/calculators/mudra-loan-emi-calculator"){var u=document.getElementById("amt_id").value,i=document.getElementById("month_id").value,r=document.getElementById("rates_id").value,ni={mudraloan:[{amt:u,tenure:i,interest:r}]},n=encodeURI(JSON.stringify(ni)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/ppf-calculator"||glblCurrentPageUrl=="/hi-in/calculators/ppf-calculator"){var ti=jQuery("#invFrequency li.active").attr("value"),ii=jQuery("#invAmt").parents(".slidecontainer").next("small").find("em").text(),ri={ppfloan:[{invFre:ti,invAmt:ii}]},n=encodeURI(JSON.stringify(ri)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/fixed-deposit-calculator"||glblCurrentPageUrl=="/hi-in/calculators/fixed-deposit-calculator"||glblCurrentPageUrl=="/personal-banking/accounts/term-deposit/fd-new"||glblCurrentPageUrl=="/hi-in/personal-banking/accounts/term-deposit/fd-new"){var ui=jQuery("#radio1").is(":checked")?"":"ccitizen",fi=jQuery("#fdType li.active").attr("value"),ei=jQuery("#loan_amount").val(),b=jQuery("#tnrDate").is(":checked")?"ymd":"days";if(b=="ymd")var oi=jQuery("#tenureYear").val(),si=jQuery("#tenureMon").val(),hi=jQuery("#tenureDay").val(),ci="0";else var oi="0",si="0",hi="0",ci=jQuery("#tenureDays").val();var li={fdemi:[{userType:ui,fdType:fi,loanamt:ei,ten:b,tenYear:oi,tenMon:si,tenDay:hi,tenDays:ci}]},n=encodeURI(JSON.stringify(li)),t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}else if(glblCurrentPageUrl=="/calculators/gold-loan-calculator"||glblCurrentPageUrl=="/hi-in/calculators/gold-loan-calculator"){var c=jQuery("#ddl_ornaments li.active").data("no"),rr=jQuery("#ddlNoofOrnaments").val(jQuery("#ddl_ornaments li.active").data("no")),ai=jQuery('input[name="radioTenure"]:checked'),vi=ai.val();
61if(c==1)var f=jQuery("#ddlCarat1 li.active").data("no"),e=document.getElementById("txtWeight1").value,ur=document.getElementById("hdnWeight1").value,o=document.getElementById("spnLoanValue1").innerHTML,s=document.getElementById("hdnLoanValue1").value,yi={ddl_ornadata:[{ddl_orna1:[{ddlCarat1:f,txtWeight1:e,spnLoanValue1:o,hdnLoanValue1:s,selectedradio:vi}]}]},pi=yi;else if(c==2)var f=jQuery("#ddlCarat1 li.active").data("no"),e=document.getElementById("txtWeight1").value,ur=document.getElementById("hdnWeight1").value,o=document.getElementById("spnLoanValue1").innerHTML,s=document.getElementById("hdnLoanValue1").value,l=jQuery("#ddlCarat2 li.active").data("no"),a=document.getElementById("txtWeight2").value,fr=document.getElementById("hdnWeight2").value,v=document.getElementById("spnLoanValue2").innerHTML,y=document.getElementById("hdnLoanValue2").value,wi={ddl_ornadata:[{ddl_orna1:[{ddlCarat1:f,txtWeight1:e,spnLoanValue1:o,hdnLoanValue1:s}]},{ddl_orna2:[{ddlCarat2:l,txtWeight2:a,spnLoanValue2:v,hdnLoanValue2:y}]}]},pi=wi;else if(c==3)var f=jQuery("#ddlCarat1 li.active").data("no"),e=document.getElementById("txtWeight1").value,ur=document.getElementById("hdnWeight1").value,o=document.getElementById("spnLoanValue1").innerHTML,s=document.getElementById("hdnLoanValue1").value,l=jQuery("#ddlCarat2 li.active").data("no"),a=document.getElementById("txtWeight2").value,fr=document.getElementById("hdnWeight2").value,v=document.getElementById("spnLoanValue2").innerHTML,y=document.getElementById("hdnLoanValue2").value,k=jQuery("#ddlCarat3 li.active").data("no"),d=document.getElementById("txtWeight3").value,er=document.getElementById("hdnWeight3").value,g=document.getElementById("spnLoanValue3").innerHTML,nt=document.getElementById("hdnLoanValue3").value,bi={ddl_ornadata:[{ddl_orna1:[{ddlCarat1:f,txtWeight1:e,spnLoanValue1:o,hdnLoanValue1:s}]},{ddl_orna2:[{ddlCarat2:l,txtWeight2:a,spnLoanValue2:v,hdnLoanValue2:y}]},{ddl_orna3:[{ddlCarat3:k,txtWeight3:d,spnLoanValue3:g,hdnLoanValue3:nt}]}]},pi=bi;else var f=jQuery("#ddlCarat1 li.active").data("no"),e=document.getElementById("txtWeight1").value,ur=document.getElementById("hdnWeight1").value,o=document.getElementById("spnLoanValue1").innerHTML,s=document.getElementById("hdnLoanValue1").value,l=jQuery("#ddlCarat2 li.active").data("no"),a=document.getElementById("txtWeight2").value,fr=document.getElementById("hdnWeight2").value,v=document.getElementById("spnLoanValue2").innerHTML,y=document.getElementById("hdnLoanValue2").value,k=jQuery("#ddlCarat3 li.active").data("no"),d=document.getElementById("txtWeight3").value,er=document.getElementById("hdnWeight3").value,g=document.getElementById("spnLoanValue3").innerHTML,nt=document.getElementById("hdnLoanValue3").value,ki=jQuery("#ddlCarat4 li.active").data("no"),di=document.getElementById("txtWeight4").value,or=document.getElementById("hdnWeight4").value,gi=document.getElementById("spnLoanValue4").innerHTML,nr=document.getElementById("hdnLoanValue4").value,tr={ddl_ornadata:[{ddl_orna1:[{ddlCarat1:f,txtWeight1:e,spnLoanValue1:o,hdnLoanValue1:s}]},{ddl_orna2:[{ddlCarat2:l,txtWeight2:a,spnLoanValue2:v,hdnLoanValue2:y}]},{ddl_orna3:[{ddlCarat3:k,txtWeight3:d,spnLoanValue3:g,hdnLoanValue3:nt}]},{ddl_orna4:[{ddlCarat4:ki,txtWeight4:di,spnLoanValue4:gi,hdnLoanValue4:nr}]}]},pi=tr;n=encodeURI(JSON.stringify(pi));t=window.location.href+"?shareurl="+n;jQuery("#customShareURL").val(t)}});jQuery("#mlec-grph").length>0&&(optionsMudra={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#mlec-grph"),optionsMudra),chart.render());jQuery("#plec-grph").length>0&&(optionsPLE={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}}
61,colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#plec-grph"),optionsPLE),chart.render());jQuery("#pilc-grph").length>0&&(optionsIPO={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","1","2","3","4"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Months Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#pilc-grph"),optionsIPO),chart.render());jQuery("#pbl-grph").length>0&&(optionsRecc={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#pbl-grph"),optionsRecc),chart.render());jQuery("#tlec-grph").length>0&&(optionstwo={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#tlec-grph"),optionstwo),chart.render());jQuery("#barmlec-grph").length>0&&(optionsMortgage={series:[{name:"Principal Amount",data:[0,5,10,15,20]},{name:"Interest Amount",data:[0,2,4,6,8]}],chart:{height:275,type:"bar",toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:1},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}}
61,colors:["#F26522","#162b75"],markers:{size:5,strokeWidth:0,hover:{size:6},colors:["#F26522","#162b75"]},grid:{show:!0,yaxis:{lines:{show:!1}}},legend:{show:!0,position:"top",horizontalAlign:"left",offsetX:-10},xaxis:{categories:["0","5","10","15","20"],axisBorder:{show:!1},axisTicks:{show:!1},style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400},title:{text:"Years Elapsed",offsetY:6,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}}},yaxis:{labels:{show:!0,align:"right",minWidth:0,maxWidth:160,style:{colors:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:400}},title:{text:"Loan Paid (₹)",offsetX:-20,style:{color:"#707070",fontSize:"12px",fontFamily:"Arial",fontWeight:700}},labels:{formatter:function(n){return n+"M"}}}},chart=new ApexCharts(document.querySelector("#barmlec-grph"),optionsMortgage),chart.render());jQuery(".bob-comman-btn.bob-comman-with-outline-btn:contains('Download Calculation Breakup')").on("click",function(){fnExportinExcel("calculateHomeLoan")});jQuery(function(){typeof glblJsonDataCalculatorsMinMaxValues!="undefined"&&(glblJsonDataCalculatorsMinMaxValues.length>0?jQuery(".bob-loan-calculator ul li small em").each(function(){fnGlblBindCalcMinMaxDefaultValues(this,jQuery(this).parents("li").find(".slidecontainer input").attr("id"))}):typeof glblCurrentPageTemplateName!="undefined"&&glblCurrentPageTemplateName!="Calculator Detail Page"&&(amtMin=jQuery("#amt_id").attr("min"),amtMax=jQuery("#amt_id").attr("max"),tenureMin=jQuery("#month_id").attr("min"),tenureMax=jQuery("#month_id").attr("max"),intRatesMin=jQuery("#rates_id").attr("min"),intRatesMax=jQuery("#rates_id").attr("max")))});const minTractorMargin=15,maxTractorMargin=25,minDairyMargin=10,maxDairyMargin=25,minCOFSMargin=15,maxCOFSMargin=25;if(minContribution=0,maxContribution=0,jQuery("#agri-loan-eligibility-calculator").length>0&&(jQuery("#agri-loan-product li").click(function(){jQuery("#agri-product").text(jQuery(this).data("product"));fnGetProductInfo(jQuery(this).data("product").toLowerCase())}),jQuery(".bob-m-btn-div:first a.bob-comman-btn").click(function(){CalcAgriLoan()})),jQuery(".ppfCalc").length>0){jQuery(document).ready(function(){jQuery("#invFrequency li").click(function(){n(jQuery(this).attr("value"));financialYear(jQuery(this).attr("value"))});financialYear(jQuery("#invFrequency li.active").attr("value"))});function n(n){var t;let i=12500;if(n=="Quarterly"?i=37500:n=="Half-Yearly"?i=75e3:n=="Annual"&&(i=15e4),t=jQuery("input[type='range']"),fnGetURLParameterValueByName("shareurl")!=""){if(glblCurrentPageUrl=="/calculators/ppf-calculator"||glblCurrentPageUrl=="/hi-in/calculators/ppf-calculator"){var u=fnGetURLParameterValueByName("shareurl"),f=decodeURI(u),e=JSON.parse(f),o=e.ppfloan,r=o[0].invAmt;jQuery(t).prop("value",r)}}else jQuery(t).prop("value",500);jQuery(t).prop("max",i);jQuery(".bob-max-div").html(numberWithCommas(i));jQuery(t).css({"background-size":0/(i-500)+"% 100%"});glblCurrentPageUrl=="/calculators/ppf-calculator"||glblCurrentPageUrl=="/hi-in/calculators/ppf-calculator"?jQuery(t).parents(".slidecontainer").next("small").find("em").text(r):jQuery(t).parents(".slidecontainer").next("small").find("em").text(500)}flag=!1;jQuery("#invAmt").parent(".slidecontainer").next("small").children().bind("keypress",function(n){var t=n.which||n.keycode;return t>=48&&t<=57?!0:!1})}jQuery(function(){(jQuery("#monthly-hl-emi").length>0||jQuery(".total-loan span").length>0)&&setTimeout(function(){fnGetURLParameterValueByName("shareurl")==""&&UpdateValuesOnLoad()},100)});var glblITMinGrossIncome=99999,glblITMaxGrossIncome=25e5,standardDeduction=5e4,newtotalTaxableIncome,oldtotalTaxableIncome,totalDeduction,totalIncome,taxPayable,grossincome,it_interestincome,it_rentalincome,it_digitalassets,it_otherincome,it_exemptallowances,it_intpaidhomeloan,it_interestpaidloan,it_deductions80c,it_medicalinsurance80d,it_educationalloan80e,it_EmpContributionNps80ccd,it_deposits80tta80ttb,it_donationscharity80g,it_housingloan80eea,rentalperc;jQuery("#it_grossincome,#it_interestincome,#it_rentalincome,#it_digitalassets,#it_otherincome").on("input",function(){jQuery("#grossincome_word").text("");
61grossincome=parseInt(jQuery("#it_grossincome").val());it_interestincome=parseInt(jQuery("#it_interestincome").val());it_rentalincome=parseInt(jQuery("#it_rentalincome").val());isNaN(it_rentalincome)||(rentalperc=it_rentalincome*30/100);it_digitalassets=parseInt(jQuery("#it_digitalassets").val());it_otherincome=parseInt(jQuery("#it_otherincome").val());it_exemptallowances=parseInt(jQuery("#it_exemptallowances").val());it_intpaidhomeloan=parseInt(jQuery("#it_intpaidhomeloan").val());it_interestpaidloan=parseInt(jQuery("#it_interestpaidloan").val());totalIncome=(isNaN(it_interestincome)?0:it_interestincome)+(isNaN(it_rentalincome)?0:it_rentalincome)+(isNaN(it_digitalassets)?0:it_digitalassets)+(isNaN(it_otherincome)?0:it_otherincome)+(isNaN(grossincome)?0:grossincome);jQuery("#it_spn_totalincome").text("₹"+inrFormat(totalIncome))});jQuery("#it_grossincome").on("change",function(){parseInt(this.value)<glblITMinGrossIncome?(jQuery("#grossincome_word").text("Annual Income Minimum Value limit is ₹ 1, 00, 000"),jQuery("#grossincome_word").css("color","red"),jQuery("#it_grossincome").val(0),jQuery("#it_grossincome").focus()):parseInt(this.value)>glblITMaxGrossIncome?(jQuery("#grossincome_word").text("Annual Income Maximum Value limit is ₹ 25, 00, 000"),jQuery("#grossincome_word").css("color","red"),jQuery("#it_grossincome").val(0),jQuery("#it_grossincome").focus()):(jQuery("#it_spn_totalincome").text("₹"+inrFormat(totalIncome)),jQuery("#grossincome_word").css("color","grey"))});jQuery("#it_deductions80c,#it_medicalinsurance80d,#it_educationalloan80e,#it_EmpContributionNps80ccd,#it_deposits80tta80ttb,#it_housingloan80eea,#it_donationscharity80g").on("input",function(){it_deductions80c=parseInt(jQuery("#it_deductions80c").val());it_medicalinsurance80d=parseInt(jQuery("#it_medicalinsurance80d").val());it_educationalloan80e=parseInt(jQuery("#it_educationalloan80e").val());it_EmpContributionNps80ccd=parseInt(jQuery("#it_EmpContributionNps80ccd").val());it_deposits80tta80ttb=parseInt(jQuery("#it_deposits80tta80ttb").val());it_donationscharity80g=parseInt(jQuery("#it_donationscharity80g").val());it_housingloan80eea=parseInt(jQuery("#it_housingloan80eea").val());totalDeduction=(isNaN(it_deductions80c)?0:it_deductions80c)+(isNaN(it_medicalinsurance80d)?0:it_medicalinsurance80d)+(isNaN(it_educationalloan80e)?0:it_educationalloan80e)+(isNaN(it_EmpContributionNps80ccd)?0:it_EmpContributionNps80ccd)+(isNaN(it_deposits80tta80ttb)?0:it_deposits80tta80ttb)+(isNaN(it_donationscharity80g)?0:it_donationscharity80g)+(isNaN(it_housingloan80eea)?0:it_housingloan80eea);jQuery("#it_spn_totalinvestment").text("₹"+inrFormat(totalDeduction))});jQuery("#it_calculate").on("click",function(){jQuery("#it_grossincome").val()!=""?(newRegime(),oldRegime(),jQuery(".bob-right-cal-details").show()):(jQuery("#grossincome_word").text("Please enter Income Salary"),jQuery("#grossincome_word").css("color","red"),jQuery("#it_grossincome").val(0),jQuery("#it_grossincome").focus())});if(jQuery(".sip").addClass("active"),jQuery(".sipcalc").length>0){monthlyInvestment=parseFloat(jQuery("#amt_id").val());total_investment=parseFloat(jQuery("#total_investment").val());jQuery("#monthly").prop("checked",!0);jQuery("#quarterly").prop("checked",!1);jQuery(document).ready(function(){var n=parseFloat(jQuery("#amt_id").val());calculateSIP()});jQuery(".sip").on("click",function(){jQuery(".cal-heading").html("SIP");jQuery(".lumpsum").removeClass("active");jQuery(".sip").addClass("active");jQuery(".total-investment").hide();jQuery("#monthly").prop("checked",!0);jQuery("#quarterly").prop("checked",!1);jQuery(".sip-amount").show();calculateSIP()});jQuery(".lumpsum").on("click",function(){jQuery(".sip").removeClass("active");jQuery(".lumpsum").addClass("active");jQuery(".cal-heading").html("LUMPSUM");jQuery(".sip-amount").hide();jQuery("#monthly").prop("checked",!0);jQuery("#quarterly").prop("checked",!1);jQuery(".total-investment").show();calculateSIP()});jQuery("#monthly").on("click",function(){calculateSIP()});jQuery("#quarterly").on("click",function(){calculateSIP()})}jQuery("#calculateSIP").on("click",function(){calculateSIP()});jQuery(".gratuitycalc").length>0&&calculateGratuity();var glblDebitCardsProducts=[],glblDebitCardsFeatures=[],glblJSONCompareProducts=[],glblSalaryAccountProducts=[],glblCurrentAccountProducts=[],glblSavingAccountProducts=[],glblCurrentAccountFeatures=[],glblSalaryAccountFeatures=[],glblSavingAccountFeatures=[],selectedproduct=[],replaceproduct="",replacetd="";if(glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts"||glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards"){jQuery(".compareproduct").click(function(){jQuery(".compare-product-main").removeClass("nodisplay");glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?glblSavingAccountFeatures.length==0&&getProducts():glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?glblCurrentAccountFeatures.length==0&&getProducts():glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts"?glblSalaryAccountFeatures.length==0&&getProducts():(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&glblDebitCardsFeatures.length==0&&getDebitProducts();jQuery(".compare-main-popup-div").show()});jQuery(".compare-main-popup-div .bob-closed-btn").click(function(){replaceproduct!=""&&(replaceproduct="");replacetd!=""&&(replacetd="");jQuery(".compare-main-popup-div").hide();jQuery(".tdvalue").text("");jQuery('#allproducts li:has(input[type="checkbox"])').show();jQuery('#allproducts li input[type="checkbox"]').prop("checked",!1);comparecount=0;replaceidwith="";selectedproduct=[];replaceproduct="";replacetd="";jQuery("#selectedproduct1").html("");jQuery("#selectedproduct2").html("");jQuery("#selectedproduct3").html("");jQuery("#selectedproduct1").append(addproductformat);jQuery("#selectedproduct2").append(addproductformat);jQuery("#selectedproduct3").append(addproductformat);jQuery("#allproducts li").show()});jQuery(".filter-dropdown").click(function(){jQuery(".filter-dropdown").toggleClass("active");jQuery(".filter-dropdown-content").toggleClass("active").toggleClass("hide")});jQuery(".scroll-v").mCustomScrollbar("destroy");jQuery(".scroll-v").mCustomScrollbar({axis:"y"});jQuery(".replaceCompare, .comparing-block").on("click",function(){jQuery('#allproducts li:has(input[type="checkbox"][id="'+replaceproduct+'"])').hide();jQuery("body").addClass("compare-popup-open")});jQuery(".compare-popup, .compare-popup .bob-closed-btn").click(function(n){jQuery(n.target).is(".compare-popup, .compare-popup .bob-closed-btn, .compare-popup .bob-closed-btn *")===!0&&jQuery("body").removeClass("compare-popup-open")})}featurecount=0;replaceidwith="";jQuery("body").on("click",".bob-check-radio-form-control [type=checkbox]",function(){var n;if(jQuery(this).prop("checked")){if(jQuery(".bob-check-radio-form-control [type=checkbox]:checked").length==4&&replaceproduct=="")return jQuery(this).prop("checked",!1),alert("You've already selected three items."),!1;n=this.id;selectedproduct.push(n);replaceproduct!=""&&(replaceidwith=n)}else n=this.id,replaceproduct==""&&(replaceidwith=""),selectedproduct=selectedproduct.filter(function(t){return t!==n})});jQuery(".compare-btn").on("click",function(){var n,t;jQuery('#allproducts li input[type="checkbox"]:checked').length>0?(n=0,jQuery(".bob-popup-content").hide(),replaceproduct!=""?glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?glblSavingAccountProducts.forEac
61h(function(n){jQuery('#allproducts li:has(input[type="checkbox"][id="'+n.compareId+'"])').show();jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1);setTimeout(function(){var r;if(jQuery("#"+n.compareId).prop("checked",!1),replaceproduct!=""&&jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1),selectedproduct=selectedproduct.filter(function(n){return n!==replaceproduct}),replaceidwith==n.compareId){var i=replaceidwith.toString(),u=n.image,f=n.title,e=n.knowMoreCTA,o=n.applyNowCTA,t=0;jQuery("#"+replacetd).html("");r='<div class="comparing-block cards" style="height:100% !important;">'+u+'<h4 class="card-title">'+f+'<\/h4><div class="button-group"><a id="'+i+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+i+'"  tabindex="-1">Remove<\/a><\/div><\/div> ';jQuery("#"+replacetd).append(r);replaceproduct="";n.features.forEach(function(n){var i;t=t+1;replacetd=="selectedproduct1"?i=1:replacetd=="selectedproduct2"?i=2:replacetd=="selectedproduct3"&&(i=3);jQuery("#td"+i+"_"+t).html(n.content);jQuery("body").removeClass("compare-popup-open");jQuery(".bob-popup-content").show()})}},500)}):glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?glblCurrentAccountProducts.forEach(function(n){jQuery('#allproducts li:has(input[type="checkbox"][id="'+n.compareId+'"])').show();jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1);setTimeout(function(){var r;if(jQuery("#"+n.compareId).prop("checked",!1),replaceproduct!=""&&jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1),selectedproduct=selectedproduct.filter(function(n){return n!==replaceproduct}),replaceidwith==n.compareId){var i=replaceidwith.toString(),u=n.image,f=n.title,e=n.knowMoreCTA,o=n.applyNowCTA,t=0;jQuery("#"+replacetd).html("");r='<div class="comparing-block cards" style="height:100% !important;">'+u+'<h4 class="card-title">
61'+f+'<\/h4><div class="button-group"><a id="'+i+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+i+'"  tabindex="-1">Remove<\/a><\/div><\/div> ';jQuery("#"+replacetd).append(r);replaceproduct="";n.features.forEach(function(n){var i;t=t+1;replacetd=="selectedproduct1"?i=1:replacetd=="selectedproduct2"?i=2:replacetd=="selectedproduct3"&&(i=3);jQuery("#td"+i+"_"+t).html(n.content);jQuery("body").removeClass("compare-popup-open");jQuery(".bob-popup-content").show()})}},500)}):glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts"?glblSalaryAccountProducts.forEach(function(n){jQuery('#allproducts li:has(input[type="checkbox"][id="'+n.compareId+'"])').show();jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1);setTimeout(function(){var r;if(jQuery("#"+n.compareId).prop("checked",!1),replaceproduct!=""&&jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1),selectedproduct=selectedproduct.filter(function(n){return n!==replaceproduct}),replaceidwith==n.compareId){var i=replaceidwith.toString(),u=n.image,f=n.title,e=n.knowMoreCTA,o=n.applyNowCTA,t=0;jQuery("#"+replacetd).html("");r='<div class="comparing-block cards" style="height:100% !important;">'+u+'<h4 class="card-title">
61'+f+'<\/h4><div class="button-group"><a id="'+i+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+i+'"  tabindex="-1">Remove<\/a><\/div><\/div> ';jQuery("#"+replacetd).append(r);replaceproduct="";n.features.forEach(function(n){var i;t=t+1;replacetd=="selectedproduct1"?i=1:replacetd=="selectedproduct2"?i=2:replacetd=="selectedproduct3"&&(i=3);jQuery("#td"+i+"_"+t).html(n.content);jQuery("body").removeClass("compare-popup-open");jQuery(".bob-popup-content").show()})}},500)}):(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&glblDebitCardsProducts.forEach(function(n){jQuery('#allproducts li:has(input[type="checkbox"][id="'+n.compareId+'"])').show();jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1);setTimeout(function(){var r;if(jQuery("#"+n.compareId).prop("checked",!1),replaceproduct!=""&&jQuery('#allproducts li input[type="checkbox"][id="'+replaceproduct+'"]').prop("checked",!1),selectedproduct=selectedproduct.filter(function(n){return n!==replaceproduct}),replaceidwith==n.compareId){var i=replaceidwith.toString(),u=n.image,f=n.title,e=n.knowMoreCTA,o=n.applyNowCTA,t=0;jQuery("#"+replacetd).html("");r='<div class="comparing-block cards" style="height:100% !important;">'+u+'<h4 class="card-title">
61'+f+'<\/h4><div class="button-group"><a id="'+i+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+i+'"  tabindex="-1">Remove<\/a><\/div><\/div> ';jQuery("#"+replacetd).append(r);replaceproduct="";n.features.forEach(function(n){var i;t=t+1;replacetd=="selectedproduct1"?i=1:replacetd=="selectedproduct2"?i=2:replacetd=="selectedproduct3"&&(i=3);jQuery("#td"+i+"_"+t).html(n.content);jQuery("body").removeClass("compare-popup-open");jQuery(".bob-popup-content").show()})}},500)}):(t=jQuery('#allproducts li input[type="checkbox"]:checked').length,t==1?(jQuery("#selectedproduct2").text(""),jQuery("#selectedproduct2").append(addproductformat),jQuery("#selectedproduct3").text(""),jQuery("#selectedproduct3").append(addproductformat)):t==2&&(jQuery("#selectedproduct3").text(""),jQuery("#selectedproduct3").append(addproductformat)),selectedproduct.forEach(function(i){n=n+1;glblCurrentPageUrl=="/hi-in/accounts/saving-accounts"||glblCurrentPageUrl=="/accounts/saving-accounts"?glblSavingAccountProducts.forEach(function(r){if(i==r.compareId){var u=i.toString(),e=r.image,o=r.title,s=r.knowMoreCTA,h=r.applyNowCTA,f=0;r.features.forEach(function(i){var r,s,h;f=f+1;t==1?(n==1&&(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==2?(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2&&(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==3&&(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2?(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)):n==3&&(jQuery("#selectedproduct3").html(""),h='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct3").append(h),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show())})}}):glblCurrentPageUrl=="/hi-in/accounts/current-accounts"||glblCurrentPageUrl=="/accounts/current-accounts"?glblCurrentAccountProducts.forEach(function(r){if(i==r.compareId){var u=i.toString(),e=r.image,o=r.title,s=r.knowMoreCTA,h=r.applyNowCTA,f=0;
61r.features.forEach(function(i){var r,s,h;f=f+1;t==1?(n==1&&(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==2?(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2&&(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==3&&(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2?(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)):n==3&&(jQuery("#selectedproduct3").html(""),h='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct3").append(h),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show())})}}):glblCurrentPageUrl=="/hi-in/accounts/salary-accounts"||glblCurrentPageUrl=="/accounts/salary-accounts"?glblSalaryAccountProducts.forEach(function(r){if(i==r.compareId){var u=i.toString(),e=r.image,o=r.title,s=r.knowMoreCTA,h=r.applyNowCTA,f=0;r.features.forEach(function(i){var r,s,h;f=f+1;t==1?(n==1&&(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==2?(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2&&(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==3&&(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2?(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)):n==3&&(jQuery("#selectedproduct3").html(""),h='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct3").append(h),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show())})}}):(glblCurrentPageUrl=="/hi-in/digital-products/cards/debit-cards"||glblCurrentPageUrl=="/digital-products/cards/debit-cards")&&glblDebitCardsProducts.forEac
61h(function(r){if(i==r.compareId){var u=i.toString(),e=r.image,o=r.title,s=r.knowMoreCTA,h=r.applyNowCTA,f=0;r.features.forEach(function(i){var r,s,h;f=f+1;t==1?(n==1&&(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==2?(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2&&(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show()):t==3&&(n==1?(jQuery("#selectedproduct1").html(""),r='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a class="removeFromCompare"  id="'+u+'"  tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct1").append(r),jQuery("#td"+n+"_"+f).html(i.content)):n==2?(jQuery("#selectedproduct2").html(""),s='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct2").append(s),jQuery("#td"+n+"_"+f).html(i.content)):n==3&&(jQuery("#selectedproduct3").html(""),h='<div class="comparing-block cards" style="height:100% !important;">'+e+'<h4 class="card-title">'+o+'<\/h4><div class="button-group"><a  id="'+u+'" class="replaceCompare" tabindex="-1">Replace<\/a><a id="'+u+'"  class="removeFromCompare" tabindex="-1">Remove<\/a><\/div><\/div> ',jQuery("#selectedproduct3").append(h),jQuery("#td"+n+"_"+f).html(i.content)),jQuery("body").removeClass("compare-popup-open"),jQuery(".bob-popup-content").show())})}})}))):alert("Select atleast 1 Product")});jQuery("body").on("click",".replaceCompare",function(){jQuery("body").addClass("compare-popup-open");jQuery(".bob-popup-content").show();replaceproduct=this.id;replacetd=jQuery(this).closest("td").attr("id");jQuery('#allproducts li:has(input[type="checkbox"][id="'+replaceproduct+'"])').hide()});isReplaceid="";jQuery("body").on("click",".removeFromCompare",function(){comparecount=0;replaceproduct="";var n=jQuery(this)[0].id;removeProductCompareItemById(jQuery(this).closest("td").attr("id"),n);jQuery('#allproducts li input[type="checkbox"][id="'+n+'"]').prop("checked",!1);jQuery('#allproducts li:has(input[type="checkbox"][id="'+n+'"])').show()});jQuery(".remove-btn").on("click",function(){jQuery('#allproducts li:has(input[type="checkbox"])').show();jQuery('#allproducts li input[type="checkbox"]').prop("checked",!1);comparecount=0;replaceidwith="";selectedproduct=[];replaceproduct="";replacetd="";jQuery("#selectedproduct1").html("");jQuery("#selectedproduct2").html("");jQuery("#selectedproduct3").html("");jQuery("#selectedproduct1").append(addproductformat);jQuery("#selectedproduct2").append(addproductformat);jQuery("#selectedproduct3").append(addproductformat)});addproductformat='<div class="comparing-block"><div class="content"><img src="-/media/Project/BOB/CountryWebsites/India/pdfs2/2024/24-01/icon-plus.png" alt="Select Another card to compare" class="m
61CS_img_loaded"><p>Select Another card to compare<\/p><\/div><\/div>';jQuery("#selectedproduct1").on("click",function(){jQuery("body").addClass("compare-popup-open");selectedproduct.forEach(function(n){jQuery('#allproducts li input[type="checkbox"][id="'+n+'"]').prop("checked",!0)});jQuery(".bob-popup-content").show()});jQuery("#selectedproduct2").on("click",function(){jQuery("body").addClass("compare-popup-open");selectedproduct.forEach(function(n){jQuery('#allproducts li input[type="checkbox"][id="'+n+'"]').prop("checked",!0)});jQuery(".bob-popup-content").show()});jQuery("#selectedproduct3").on("click",function(){jQuery("body").addClass("compare-popup-open");selectedproduct.forEach(function(n){jQuery('#allproducts li input[type="checkbox"][id="'+n+'"]').prop("checked",!0)});jQuery(".bob-popup-content").show()});jQuery(document).ready(function(){coreSlider();espeakslider();artwrapp();jQuery(window).width()<767&&(blogSlider(),IbankSlider());jQuery(window).width()<1024&&IbankSlider();jQuery(".bob-tags>li>a").click(function(){jQuery(".bob-tags>li>a").removeClass("active");jQuery(this).addClass("active")})});jQuery(document).on("click",".bookmark-btn",function(){fnBookMarkPage()});if(jQuery(".bob-custom-dropdown .bob-custom-dropdown-list .anualreportfilter li").click(function(){setTimeout(function(){fnAnualReportFilter();AOS.refresh()},100)}),jQuery(".bob-custom-dropdown .bob-custom-dropdown-list .analystfilter li").click(function(){setTimeout(function(){fnPresentationAnalystFilter();AOS.refresh()},100)}),location.href.indexOf("azadi-ka-amrit-mahotsav")>-1){jQuery(".drp_azadi_product li").click(function(){setTimeout(function(){fnFilterAzadiMahotsavVideos()},100)});jQuery(".drp_azadi_language li").click(function(){setTimeout(function(){fnFilterAzadiMahotsavVideos()},100)});jQuery(".bob-tags li a").on("click",function(){setTimeout(function(){var n="";jQuery(".drp_azadi_language li.active").attr("value")!=undefined&&(n=jQuery(".drp_azadi_language li.active").attr("value").toLowerCase());jQuery(".drp_azadi_language").find("li.active").removeClass("active");fnFilterAzadiMahotsavVideos(n)},100)})}jQuery(function(){jQuery(".bob-global-search-result-section").addClass("nodisplay");setTimeout(function(){jQuery(".bob-newsletter-search-wrap .bob-global-search-result-section").hide();jQuery(".bob-newsletter-search-wrap .bob-global-search-result-wrap").mCustomScrollbar({scrollbarPosition:"outside"})},1050);setTimeout(function(){jQuery(".bob-global-search-result-section").removeClass("nodisplay")},3e3);jQuery(".search-popup-blog").click(function(){jQuery("html, body").animate({scrollTop:0},"500","swing");jQuery(".bob-newsletter-search-wrap .search-box-input").focus()});glblFnAddVoiceSearchOnBlog()});jQuery(".bob-newsletter-search-wrap .search-box-input").on("click focus",function(){jQuery(".bob-newsletter-search-wrap .bob-global-search-result-section").show()});jQuery(function(){jQuery("#awardsLikedBy").change(function(){var n=jQuery("input:checkbox[id=awardsLikedBy]").attr("checked");jQuery("input:checkbox[id=awardsLikedBy]").attr("checked",n=="checked"?!1:!0);fnAwardsFilter()});jQuery("#search_media").keydown(function(){fnAwardSearch()});jQuery(document).click(function(){jQuery(".bob-newsletter-search-wrap .search-results .search-result-list").html("");jQuery(".bob-newsletter-search-wrap .no-results").hide();jQuery(".bob-newsletter-search-wrap .search-box-input").val("")});jQuery(".bob-newsletter-search-wrap, .bob-newsletter-search-wrap .search-box-input").click(function(n){n.stopPropagation()})});jQuery(document).ready(function(){jQuery(".history-key-milestone-details-slider").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,fade:!0,infinite:!1,adaptiveHeight:!0,asNavFor:".history-key-milestone-year-slider",prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L
615.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>'});jQuery(".history-key-milestone-year-slider").slick({slidesToShow:10,slidesToScroll:1,asNavFor:".history-key-milestone-details-slider",dots:!1,infinite:!1,focusOnSelect:!0,centerMode:!0,prevArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-left-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.028 0.467)"><g class="a" transform="translate(-0.028 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.739 20.251) rotate(-90)"><path class="b" d="M9.964,5.481l-.332.334a.555.555,0,0,1-.783,0L5.065,2.031,1.277,5.819a.555.555,0,0,1-.783,0L.162,5.487a.554.554,0,0,1,0-.783L4.672.178A.566.566,0,0,1,5.065,0h0a.566.566,0,0,1,.392.178L9.964,4.692a.559.559,0,0,1,.162.4A.554.554,0,0,1,9.964,5.481Z"/><\/g><\/g><\/svg>',nextArrow:'<svg class="bob-round-arrow-svg bob-round-arrow-orange-svg bob-right-round-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.bob-round-arrow-orange-svg .a,.bob-round-arrow-orange-svg .d{fill:none;}.bob-round-arrow-orange-svg .a{stroke:rgba(242,101,35,0.5);}.bob-round-arrow-orange-svg .b{fill:#f26522;}.bob-round-arrow-orange-svg .c{stroke:none;}<\/style><\/defs><g transform="translate(0.467 0.467)"><g class="a" transform="translate(-0.467 -0.467)"><circle class="c" cx="15" cy="15" r="15"/><circle class="d" cx="15" cy="15" r="14.5"/><\/g><g transform="translate(11.822 20.244) rotate(-90)"><g transform="translate(0 0)"><path class="b" d="M9.971.5,9.639.166a.556.556,0,0,0-.784,0L5.069,3.953,1.278.162a.556.556,0,0,0-.784,0L.162.494a.555.555,0,0,0,0,.784l4.513,4.53a.567.567,0,0,0,.393.178h0a.566.566,0,0,0,.392-.178L9.971,1.29a.56.56,0,0,0,.162-.4A.554.554,0,0,0,9.971.5Z"/><\/g><\/g><\/g><\/svg>',responsive:[{breakpoint:991,settings:{slidesToShow:8},breakpoint:767,settings:{slidesToShow:3}},]})});jQuery(document).ready(function(){jQuery(".noticestab li a").on("click",function(){var n=jQuery(this).data("id");n=="tab2"?jQuery("#searchcontainer,.bob-new-tab-styling-div .col-sm-9 .bob-home-loan .loan-search").removeClass("nodisplay"):jQuery("#searchcontainer,.bob-new-tab-styling-div .col-sm-9 .bob-home-loan .loan-search").addClass("nodisplay");jQuery(".noticedetail").addClass("nodisplay");jQuery("."+n).removeClass("nodisplay")})});jQuery(".loan-search #search_tender").on("keyup",function(n){n.keyCode===13&&fnTenderSearch()});(jQuery("#currpageitemid").val()=="{C38F8B8F-C50D-422F-A49C-F79E89DCA99F}"||jQuery("#currpageitemid").val()=="{AC0B61CD-9C01-4D36-A7E3-384E322D3A3B}"||jQuery("#currpageitemid").val()=="{A9B4A7A4-6C4C-4246-9E07-1B7C820CFF15}"||jQuery("#currpageitemid").val()=="{7391E66C-250E-4772-B5A8-ED435C4E0181}"||jQuery("#currpageitemid").val()=="{D47B39E5-9B3C-4BD7-BABA-E28471EE7185}"||jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}"||jQuery("#currpageitemid").val()=="{B71B4BF0-335A-40E6-B818-F71436EA30D4}")&&(jQuery("#currpageitemid").val()!="{D47B39E5-9B3C-4BD7-BABA-E28471EE7185}"&&jQuery("#btn_tender_search").click(function(){setTimeout(function(){fnTenderSearch()},100)}),jQuery("#Likedbyyou").click(function(){setTimeout(function(){fnTenderFilterLikes()},100)}),jQuery(".tender_zone li").click(function(){setTimeout(function(){fnBindRegion()},100)}),jQuery("#gobtnfilter").click(function(){setTimeout(function(){fnTenderFilters()},100)}),jQuery("#resetfilter").click(function(){setTimeout(function(){fnTenderResetFilters()},100)}),jQuery("#loadmorebtn").click(function(){setTimeout(function(){loadZonalfilterData()},100)}),(jQuery("#currpageitemid").val()=="{A9B4A7A4-6C4C-4246-9E07-1B7C820CFF15}"||jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}"||jQuery("#currpageitemid").val()=="{7391E66C-250E-4772-B5A8-ED435C4E0181}"||jQuery("#currpageitemid").val()=="{D47B39E5-9B3C-4BD7-BABA-E28471EE7185}"||jQuery("#currpageitemid").val()=="{B71B4BF0-335A-40E6-B818-F71436EA30D4}")&&jQuery(".bob-custom-dropdown.region").addClass("bob-custom-disabled-dropdown"),jQuery("#currpageitemid").val()=="{BCAEBAD8-F75F-4C39-A3D5-22AB324210A6}");jQuery(".external-popup").click(function(){jQuery(".external-popup-div, .bob-overlay").show(0)});jQuery(".share-whatsapp a").attr({role:"link","aria-label":"share whatsapp"});jQuery(".share-facebook a").attr({role:"link","aria-label":"share facebook"});jQuery(".share-twitter a").attr({role:"link","aria-label":"share twitter"});jQuery(".share-linkedin a").attr({role:"link","aria-label":"share linkedin"});jQuery(".share-email a").attr({role:"link","aria-label":"share email"});jQuery(".share-gmail a").attr({role:"link","aria-label":"share gmail"});glblCurrentPageID=="d6da6772-c0b3-4097-9409-8003850c0564"&&(jQuery(".bob-tags li:eq(2) a").removeClass("active"),jQuery(".bob-tags li:last a").addClass("active"));jQuery(document).ready(function(){fnReadCookie("a2hsHide")=="1"&&document.querySelector(".add-to-home")!=null&&document.querySelector(".add-to-home").remove();jQuery(".add-to-home .closed-home").on("click",function(){jQuery(".add-to-home ").fadeOut();fnCreateCookie("a2hsHide","1",144e4)})});testArryFilter=[];jQuery(".all-filter-div .bob-custom-dropdown .bob-custom-dropdown-list li").click(function(){var n=$xa(this);setTimeout(function(){var t=[],l=[],a=[],v=[],y=[],d=[],r=fnCheckUndefinedElseReturnBlank("ideal-for"),s=fnCheckUndefinedElseReturnBlank("onlineofflinemode"),h=fnCheckUndefinedElseReturnBlank("balancerequirement"),f=fnCheckUndefinedElseReturnBlank("purpose"),e=fnCheckUndefinedElseReturnBlank("eligibilty"),i=fnCheckUndefinedElseReturnBlank("product-type"),p=fnCheckUndefinedElseReturnBlank("offers"),w=fnCheckUndefinedElseReturnBlank("category"),b=fnCheckUndefinedElseReturnBlank("subcategory"),k=fnCheckUndefinedElseReturnBlank("tenure"),u=fnCheckUndefinedElseReturnBlank("variant"),o=".bob-home-loan .bob-page-list-box ul.items .item",c;if(testArryFilter=t,n.data("value")==""&&(n.parents(".bob-custom-dropdown").find(".form-control small").html(n.parents(".bob-custom-dropdown-list").attr("data-label")),n.parents(".bob-custom-dropdown").addClass("all-select")),c=!1,r!=""&&u!=""&&(c=!0),i!=""&&u!=""&&(c=!0),$xa(o).length>0){if($xa(o).each(function(n){var o,g;$xa(this).attr("data-onlineoffline").indexOf(s)>-1&&s!=""&&l.push(s);$xa(this).attr("data-balancerequirement").indexOf(h)>-1&&h!=""&&y.push(h);$xa(this).attr("data-purpose").indexOf(f)>-1&&f!=""&&a.push(f);$xa(this).attr("data-eligibility").indexOf(e)>-1&&e!=""&&v.push(e);o=jQuery(this).data("multiple");jQuery(this).data("multiple")!=""&&d.push({id:jQuery(this).index(),tags:o.split(",")});glblCurrentPageID=="2c24d481-fc30-4ed2-8e77-bcb6ec8b6e1d"||(glblCurrentPageID!="b70a5044-b1f0-4ae6-bf37-8c7284b2a3aa"&&$xa(this).attr("data-cardvariant").toLowerCase().indexOf(u)>-1&&u!=""&&(g=$xa(this).attr("data-ideal-for"),$xa(this).attr("data-ideal-for").indexOf(r)>-1&&r!=""?(t.push(n),t.push(n)):$xa(this).attr("data-product-type").toLowerCase().indexOf(i)>-1&&i!=""?t.push(n):i==""&&r==""&&t.push(n)),glblCurrentPageID=="b70a5044-b1f0-4ae6-bf37-8c7284b2a3aa"&&$xa(this).attr("data-cardvariant").toLowerCase().indexOf(u)>-1&&u!=""&&($xa(this).attr("data-product-type").toLowerCase().indexOf(i)>-1&&i!=""?t.push(n):i==""&&t.push(n)),c||($xa(this).attr("data-ideal-for").indexOf(r)>-1&&r!=""&&t.push(n),$xa(this).attr("data-purpose").toLowerCase().indexOf(f)>-1&&f!=""&&t.push(n),$xa(this).attr("data-eligibility").toLowerCase().indexOf(e)>-1&&e!=""&&t.push(n),$xa(this).attr("data-offers").toLowerCase().indexOf(p)>-1&&p!=""&&t.push(n),$xa(this).attr("data-product-type").toLowerCase().indexOf(i)>-1&&i!=""&&t.push(n),$xa(this).attr("data-category").toLowerCase().indexOf(w)>-1&&w!=""&&t.push(n),$xa(this).attr("data-subcategory").toLowerCase().indexOf(b)>-1&&b!=""&&t.push(n),$xa(this).attr("data-tenure").toLowerCase().indexOf(k)>-1&&k!=""&&t.push(n)))}),$xa(o).hide().addClass("hide-card"),glblCurrentPageID=="2c24d481-fc30-4ed2-8e77-bcb6ec8b6e1d"){let n=d.filter(n=>(l.length===0||l.every(t=>n.tags.includes(t)))&&(y.length===0||y.every(t=>n.tags.includes(t)))&&(a.length===0||a.every(t=>n.tags.includes(t)))&&(v.length===0||v.every(t=>n.tags.includes(t))));t.length=0;
61n.forEach(function(n){t.push(n.id)})}console.log();t.length>0&&($xa(o).each(function(n){var i=$xa(this);t.findIndex(function(t){t==n&&i.show().removeClass("hide-card")})}),jQuery(window).width()<=767&&setTimeout(function(){jQuery("html,body").animate({scrollTop:jQuery(".bob-home-loan .bob-page-list-box ul.items").offset().top-130},0)},1));r==""&&s==""&&h==""&&f==""&&e==""&&i==""&&p==""&&w==""&&b==""&&k==""&&u==""&&$xa(o).show().removeClass("hide-card")}AOS.refresh()},100)});jQuery(function(){var n=jQuery(window).width();jQuery(".search-class").keydown(function(){setTimeout(function(){fnSearchDataResult()},20)});jQuery(window).width()<=767&&jQuery(".loan-search,.all-filter-div .filterby").remove();n>0&&jQuery(".bob-custom-dropdown .bob-custom-dropdown-list>ul").mCustomScrollbar({axis:"y"});setTimeout(function(){typeof glblCurrentPageTemplateName!="undefined"&&glblCurrentPageTemplateName.toLowerCase().indexOf("listing page level 2")&&fnGetURLParameterValueByName("producttype")!=""&&jQuery(".all-filter-div .bob-custom-dropdown-list [data-value="+fnGetURLParameterValueByName("producttype")+"]").click();fnGetURLParameterValueByName("idealfor")!=""&&jQuery(".all-filter-div .bob-custom-dropdown-list [data-value="+fnGetURLParameterValueByName("idealfor")+"]").click()},1e3)});jQuery(document).ready(function(){jQuery(document).on("keyup",".bob-custom-dropdown .bob-custom-dropdown-list .search-list-input",function(){var n=jQuery(this);setTimeout(()=>{var t=n.val().toLowerCase();console.log(t);n.next("ul").find("li").css("display","none");n.next("ul").find("li").each(function(){var n=jQuery(this);n.text().toLowerCase().indexOf(t)!=-1&&n.css("display","block")})},100)})});jQuery(function(){window.location.href.indexOf("/banking-mantra/economic-scenario")!=-1&&(jQuery(".component.accordion .items .item:eq(0)").removeClass("active"),jQuery(".component.accordion .items .item:eq(0) .toggle-content").css("display","none"))})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.