function Onwishlist(){document.querySelectorAll(".setWishlist").forEach(function(n){n.addEventListener("click",function(){var n=this.dataset.wish,t=this;this.classList.contains("active")?removeItemWish(t,n):addNewItemWish(t,n)})})}function renderWish(){var u,f;if(localStorage.EgoWishStorage!=undefined){var t=JSON.parse(localStorage.EgoWishStorage),r=[],n=t.length;if(document.querySelector(".headerWishlistCount").innerHTML=n,n>0){for(i=0;i<n;i++)u=t[i],f=new Promise(function(n){var t="/products/"+u.url+"?view=wish";fetch(t).then(function(t){if(!t.ok)throw new Error("HTTP error, status = "+t.status);var i=t.text();n(i)}).then(function(t){n(t)}).catch(function(n){console.log(n)})}),r.push(f);Promise.all(r).then(function(n){if(document.querySelector(".page-wishlist")!=null){document.querySelector(".page-wishlist").innerHTML="";for(var t=0;t<n.length;t++)document.querySelector(".page-wishlist").innerHTML+=n[t];setTimeout(function(){let n=document.querySelector(".page-wishlist").querySelectorAll(".lazyload");n.forEach(n=>{io.observe(n)})},300);setTimeout(function(){Onwishlist()},800);$(".add_to_cart").bind("click",addToCart)}})}else document.querySelector(".page-wishlist")!=null&&(document.querySelector(".page-wishlist").innerHTML='<div class="col-12"><p>Bạn chưa có tour yêu thích nào<\/p><\/div>')}}function addNewItemWish(n,t){var r={url:t},i;array_wish.push(r);i=array_wish.reduce((n,t)=>(n.some(n=>n.url===t.url)||n.push(t),n),[]);localStorage.setItem("EgoWishStorage",JSON.stringify(i));activityWish(n);new Notify({status:"success",title:"Thêm yêu thích thành công",text:'<a style="color:#2196f3" href="'+theme.settings.urlpage_yeuthich+'">vào đây<\/a> để tới trang yêu thích',effect:"slide",speed:300,showIcon:!0,showCloseButton:!0,autoclose:!0,autotimeout:2e3,gap:20,distance:20,type:1,position:"right top"});renderWish()}function removeItemWish(n,t){const i=JSON.parse(localStorage.getItem("EgoWishStorage")),r=i.filter(n=>n.url!==t);localStorage.setItem("EgoWishStorage",JSON.stringify(r));renderWish();document.querySelectorAll('.setWishlist[data-wish="'+t+'"]'!=null)&&document.querySelectorAll('.setWishlist[data-wish="'+t+'"]').forEach(function(n){n.classList.remove("active");n.innerHTML=iconWish;n.title=addW});new Notify({status:"warning",title:"Cảnh báo",text:"Bạn vừa bỏ tour này ra khỏi yêu thích",effect:"slide",speed:300,showIcon:!0,showCloseButton:!0,autoclose:!0,autotimeout:2e3,gap:20,distance:20,type:1,position:"right top"})}function activityWish(){if(localStorage.EgoWishStorage!=undefined){var n=JSON.parse(localStorage.EgoWishStorage);document.querySelector(".headerWishlistCount").innerHTML=n.length;n.forEach(function(n){document.querySelectorAll('.setWishlist[data-wish="'+n.url+'"]')!=null&&document.querySelectorAll('.setWishlist[data-wish="'+n.url+'"]').forEach(function(n){n.innerHTML=activeIconWish;n.classList.add("active");n.title=removeW})})}}function awe_showLoading(n){var t=$(".loader").html();$(n).addClass("loading").append(t)}function awe_hideLoading(n){$(n).removeClass("loading");$(n+" .loading-icon").remove()}function awe_showPopup(n){$(n).addClass("active")}function awe_hidePopup(n){$(n).removeClass("active")}function awe_convertVietnamese(n){return n=n.toLowerCase(),n=n.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a"),n=n.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"),n=n.replace(/ì|í|ị|ỉ|ĩ/g,"i"),n=n.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"),n=n.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"),n=n.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"),n=n.replace(/đ/g,"d"),n=n.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-"),n=n.replace(/-+-/g,"-"),n.replace(/^\-+|\-+$/g,"")}function awe_category(){$(".nav-category .fa-angle-right").click(function(){$(this).toggleClass("fa-angle-down fa-angle-right");$(this).parent().toggleClass("active")});$(".nav-category .fa-angle-down").click(function(){$(this).toggleClass("fa-angle-right");$(this).parent().toggleClass("active")})}function awe_backtotop(){$(window).scroll(function(){$(this).scrollTop()>200?$(".backtop").addClass("show"):$(".backtop").removeClass("show")});$(".backtop").click(function(){return $("body,html").animate({scrollTop:0},800),!1})}function awe_tab(){$(".e-tabs:not(.not-dqtab)").each(function(){$(this).find(".tabs-title li:first-child").addClass("current");$(this).find(".tab-content").first().addClass("current");$(this).find(".tabs-title li").click(function(){var n=$(this).attr("data-tab"),t=$(this).attr("data-url");$(this).closest(".e-tabs").find(".tab-viewall").attr("href",t);$(this).closest(".e-tabs").find(".tabs-title li").removeClass("current");$(this).closest(".e-tabs").find(".tab-content").removeClass("current");$(this).addClass("current");$(this).closest(".e-tabs").find("#"+n).addClass("current")})})}function horizontalNav(){return{wrapper:$(".header .header-nav"),navigation:$(".header .header-nav .item-big"),item:$(".header .header-nav .item-big>li"),arrows:$(".navigation-arrows"),scrollStep:0,totalStep:0,transform:function(){return`translateY(-${this.scrollStep*100}%)`},onCalcNavOverView:function(){let n=this.item.eq(0).outerHeight(),t=this.navigation.height();return Math.ceil(t/n)},handleArrowClick:function(n){this.totalStep=this.onCalcNavOverView();this.scrollStep=$(n.target).hasClass("prev")?this.scrollStep-1:this.scrollStep+1;this.handleScroll()},handleScroll:function(){this.arrows.find("i").removeClass("disabled");this.totalStep-1<=this.scrollStep&&(this.arrows.find(".next").addClass("disabled"),this.scrollStep=this.totalStep-1);this.scrollStep<=0&&(this.arrows.find(".prev").addClass("disabled"),this.scrollStep=0);this.item.find(".a-img").css("transform",this.transform())},init:function(){this.totalStep=this.onCalcNavOverView();this.totalStep>1&&this.wrapper.addClass("overflow");this.handleScroll();this.arrows.find("i").click(n=>this.handleArrowClick(n))}}}function slugify(n){const t="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",i="aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz------",r=new RegExp(t.split("").join("|"),"g");return n.toString().toLowerCase().replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi,"a").replace(/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/gi,"e").replace(/i|í|ì|ỉ|ĩ|ị/gi,"i").replace(/ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ/gi,"o").replace(/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/gi,"u").replace(/ý|ỳ|ỷ|ỹ|ỵ/gi,"y").replace(/đ/gi,"d").replace(/\s+/g,"").replace(r,n=>i.charAt(t.indexOf(n))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"").replace(/^-+/,"").replace(/-+$/,"")}function scroll(n){if(n!=""){var t=document.getElementById(n);window.scrollTo(t.offsetLeft,t.offsetTop+20)}}function is_empty(n){return n.match(/\S/)==null?!0:!1}function checkEmailValid(n,t){return(emailRegExp=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})$/,!emailRegExp.test(n.value.toLowerCase()))?(typeof t!="undefined"&&($.notifyDefaults({type:"danger",allow_dismiss:!1}),$.notify(""+lang_json.invalid_email+"!")),n.focus(),!1):!0}function getNumberFormat(n){return n?(n=n.toString().replace(".",","),n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")):0}function checkPhoneNumber(n){var i=!1,t;return n=n.replace("(+84)","0"),n=n.replace("+84","0"),n=n.replace("0084","0"),n=n.replace(/ /g,""),n!=""&&(t=n.substring(0,2),(t=="09"||t=="08"||t=="07"||t=="05"||t=="03")&&n.length==10?n.match(/^\d{10}/)&&(i=!0):t=="01"&&n.length==11&&n.match(/^\d{11}/)&&(i=!0)),i}function isNumber(n){return/^-?(0|INF|(0[1-7][0-7]*)|(0x[0-9a-fA-F]+)|((0|[1-9][0-9]*|(?=[\.,]))([\.,][0-9]+)?([eE]-?\d+)?))$/.test(n)}function Redirect(n,t){setInterval(function(){t--;t==0&&(window.location=n)},1e3)}function ShowStatus(n,t){n=="success"?toastr.success(t,"Thành công"):toastr.error(t,"Lỗi!")}function Core(){}function validatePhone(n){return/^(01([0-9]{2})|09[0-9]|08[0-9]|03[0-9]|05[0-9]|07[0-9]|08[0-9])(\d{7})$/i.test(n)?!0:!1}function alertType(){}function validateEmail(n){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}function validatePhone(n){return/^[0|+]{1}[0-9]{9,11}$/.test(n)}function startTimeLoading(){$("#timeLoading").html(min+":"+sec+":"+msec);goTimeLoading=setTimeout("startTimeLoading()",1);this.msec++;msec==100&&(msec=0,sec++);sec==60&&(sec=0,min++)}function stopTimeLoading(){clearTimeout(goTimeLoading)}function ToggleTagSelector(){var n=document.getElementById("tagselector");n.style.display=n.style.display=="none"?"block":"none"}function ToggleSelector(n){var t=document.getElementById(n);t.style.display=t.style.display=="none"?"block":"none"}function TAjax(){this.timer=null;this.isLoading=!0;this.isTimeLoading=!0;this.divMessageSelector=".float_loading";this.divMessage='<div class="float_loading" style="display: block; width: 100%; height: 100%; left: 0px; top: 0px; position: fixed; z-index: 10000;"><div id="loadingS" style="width: 66px; height: 66px; position: fixed; top: 50%; left: 50%; margin-left: -33px; margin-top: -33px; background-image: url(\'data:image/gif;base64,R0lGODlhQgBCAPcAAP///z5Vh3eHqpqmwOTn7ra/0fn6+1NnlNDW4QAAAAAAAAAAA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/fefVQWQV9SBDCVYUngHrWcghFlRiOGGHHbo4YcoCQjSgCAOhEABKKb4nwA4tQiSZiCeKKOCF5Zo44045siVjCVy1tB6A7RoVIwppidQgEUVReB+9EWmIoojsUggezmalaJUTN5on454rdddc5F9eVGQAtRo3nr/iZlVgCxSeWBk+enXnXQs7vUhnFAyxGaZN6L5H0IBuvlbfBpm+GdHBARpZlOJCspanWqiRBqKkboHaXyk5VdpQZUtudSmnFKYqaMpXTqUAF/NpFdvo4IaoJ0JsXUIakI1bZXpohU6GmSqACRa3Xo76cXrb7MeJB13pwZWk0f5vVQrfOPxiRl1mMGYKIy9atreq6MRiBWBziJbVoO4ytTpVtINC+5QBUZUU7FOFRdgb8syO2x05dYXpFrrlvVuj/0OFKRBz4I4XnEB50XqjQ22FxAAOw==\');"><br><center id="timeLoading"><\/center><\/div><\/div>';msec=0;sec=0;min=0;goTimeLoading=null;this.post=function(n,t,i,r,u){var f=this;f.doAjax("POST",n,t,i,r,u)};this.get=function(n,t,i,r,u){var f=this;f.doAjax("GET",n,t,i,r,u)};this.doAjax=function(n,t,i,r,u,f){var e=this,o,s;$(e.divMessageSelector).remove();e.timer!=null&&clearTimeout(e.timer);e.isLoading&&(e.timer=setTimeout(function(){$("body").append(e.divMessage);e.isTimeLoading&&startTimeLoading()},1));(f==""||f==null)&&(f="json");o=typeof i=="function"?i():i;Array.isArray(o)&&(o=$.param(o));s=$.ajax({url:t,type:n,data:o,dataType:f});s.done(function(n){e.timer!=null&&clearTimeout(e.timer);e.isLoading&&$(e.divMessageSelector).remove();e.isLoading&&e.isTimeLoading&&stopTimeLoading();r!=null&&r(n);eval(n.JavaScript)}).fail(function(n){e.timer!=null&&clearTimeout(e.timer);e.isLoading&&$(e.divMessageSelector).remove();e.isLoading&&e.isTimeLoading&&stopTimeLoading();u!=null&&u();n.status==404?alert("Page not found!"):alert("500: Server error. Try again, please!")})}}function render_template(n,t){var i=$(n).html();return Mustache.parse(i),Mustache.render(i,t)}function modal(){arguments[0]=="#modal-login"&&($("#modal").data("bs.modal")?$("#modal").data("bs.modal").options={backdrop:"static",keyboard:!1}:$("#modal").modal({backdrop:"static",keyboard:!1}));$("#modal").is(":visible")||$("#modal").modal("show");$("#modal").find(".modal-content:last").html(render_template(arguments[0],arguments[1]))}function modal_update(n){$("#modal").find(n).html($(".modal-content:last").html())}function AjaxModal(n,t,i){(new TAjax).get(n,{},function(n){$("#modal-body-ajax").html(n);$("#AjaxModal").find(".modal-title").html(t);$("#AjaxModal").find(".modal-footer").html($("#modal-body-ajax").find("footer").html());$("#modal-body-ajax").find("footer").remove();$("#AjaxModal").modal({show:!0});$("#modal-body-ajax").initInput();i&&i()},null,"text")}function isMobile(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|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|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/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.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))}function LinkIsValid(n){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(n)}function log(n){$("#message").html("");$("#message").append(n);$("#message").fadeIn(999)}function isEmpty(n){return n===undefined||n==null||n.length<=0?!0:!1}function OpenPopup(n,t,i,r,u){var f=1200,e=500,o=u,s=(screen.height-e)/2,h=(screen.width-f)/2;newWindow=window.open(""+n+"",""+t+"","width="+f+",height="+e+",top="+s+",left="+h+",features="+o+",scrollbars=1");newWindow.focus()}function addAntiForgeryToken(n){n||(n={});var t=$("input[name=__RequestVerificationToken]");return t.length&&(n.__RequestVerificationToken=t.val()),n}function formatDecimal(n){if(n+="",!$.trim(n))return"";for(var i=n.split("."),t=i[0],u=i.length>1?","+i[1]:"",r=/(\d+)(\d{3})/;r.test(t);)t=t.replace(r,"$1.$2");return t+u}function roundFloatNumber(n){return Math.round(n*1e3)/1e3}function setCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"}function getCookie(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 initAutoNumeric(n,t){$(n).each(function(){var n=$(this);this.tagName==="INPUT"&&this.type==="number"&&n.attr("type","text").attr("inputmode","decimal").val(n.val());n.autoNumeric("init",t)})}function ErrorBootstrap(n){var i=$(n),r=$.data(i[0]),t=r.validator.settings,u=t.errorPlacement,f=t.success;t.errorPlacement=function(n,t){u(n,t);n.parents(".form-group").addClass("has-error");n.addClass("text-danger")};t.success=function(n){n.parents(".form-group").removeClass("has-error");f(n)}}function setUrl(n){typeof history.pushState=="function"?history.pushState({state:1,rand:Math.random()},document.title,n):ThuY.is_ie||(location.hash=n)}function jsonToQueryString(n){return"?"+Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&")}function getQueryString(n,t){t||(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 playAudioClick(){click_sound.play()}function copyToClipboard(n){var t=document.createElement("textarea"),i;t.style.position="fixed";t.style.top="0px";t.style.left="0px";t.style.width="2em";t.style.height="2em";t.style.padding="0px";t.style.border="none";t.style.outline="none";t.style.boxShadow="none";t.style.background="transparent";t.value=n;document.body.appendChild(t);t.select();try{i=document.execCommand("copy");console.log("Copying text command was "+(i?"successful":"unsuccessful"))}catch(n){console.log("Oops, unable to copy")}document.body.removeChild(t);playAudioClick()}function copyTextToClipboard(n){var t=document.createElement("textarea"),i;t.style.position="fixed";t.style.top="0px";t.style.left="0px";t.style.width="2em";t.style.height="2em";t.style.padding="0px";t.style.border="none";t.style.outline="none";t.style.boxShadow="none";t.style.background="transparent";t.value=trimString($(n).text());document.body.appendChild(t);t.select();try{i=document.execCommand("copy");console.log("Copying text command was "+(i?"successful":"unsuccessful"))}catch(n){console.log("Oops, unable to copy")}document.body.removeChild(t);playAudioClick()}function showThrobber(n){$(".throbber-header").html(n);window.setTimeout(function(){$(".throbber").show()},1e3)}function Popup(){var t,i,r,n,u;this.template='  <div class="modal " role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">           <div class="modal-dialog">             <div class="modal-content">               <div class="modal-header">                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;<\/span><\/button>                 <h4 class="modal-title"><\/h4>               <\/div>               <div class="modal-body"><\/div>               <div class="modal-footer"><\/div>             <\/div>           <\/div>         <\/div>';this.modal=null;this.popupBody=null;this.header=null;this.footer=null;this.dialogType="";this.loadContentWhenShow=!1;this.clearWhenHide=!1;this.data={};this.control="";this.content="";this.title="";t="btn btn-default";this.buttons=[{value:"Thoát",cls:"",func:function(n,t){t.modal.find(".modal-header .close").click()}}];this.onAlwaysShow=null;i=function(){this.onAlwaysShow!=null&&this.onAlwaysShow()};this.afterLoadControl=null;this.onHide=null;r=function(){this.onHide!=null&&this.onHide()};this.show=function(){this.loadContentWhenShow&&this.modal!=null&&(this.modal.remove(),this.modal=null);u.bind(this)();this.loadContentWhenShow||this.popupBody.html()==""?(this.popupBody.append("<div class='row'><div class='col-xs-12'><div class='popup-area-msg'><\/div><\/div><\/div>"),this.popupBody.append(typeof this.content=="function"?this.content():this.content==""?" ":this.content),n.bind(this)(!0)):n.bind(this)(!1)};this.hide=function(){this.modal.modal("hide")};this.showMsg=function(n,t,i,r){var u=this.popupBody.find(".popup-area-msg");u.empty();u.coreAlert(n,t,i,r)};this.showMsgSuccess=function(n){this.showMsg(n,null,null,alertType.alertSuccess)};this.showMsgError=function(n){this.showMsg(n,null,null,alertType.alertDanger)};n=function(n){var i=this;n&&Enumerable.From(this.buttons).ForEach(function(n){var r=$("<input type='button'>");r.attr("value",n.value);r.addClass(n.cls==null||n.cls==""?t:n.cls);r.click(function(){n.func(this,i)});i.footer.append(r)});this.header.html(typeof this.title=="function"?this.title():this.title==""?" ":this.title);i.modal.modal({backdrop:"static"}).modal("show")};u=function(){var n=this;if(n.modal==null){n.modal=$(n.template);$("body").append(n.modal);n.popupBody=n.modal.find(".modal-body");n.header=n.modal.find(".modal-title");n.footer=n.modal.find(".modal-footer");n.modal.on("shown.bs.modal",function(){i.bind(n)()});n.modal.on("hidden.bs.modal",function(){r.bind(n)();n.clearWhenHide&&(n.modal.remove(),n.modal=null)});n.modal.find(".modal-dialog").addClass(n.dialogType)}}}function CoreAlert(n,t){return CoreAlertConfirm(n,null,t)}function CoreAlertConfirm(n,t,i){var r=new Popup,u;return r.title="Thông báo",r.content=n,r.clearWhenHide=!0,r.dialogType="modal-sm",u=!1,i!=null&&(r.onHide=function(){u||i()}),t!=null&&r.buttons.push({value:"Đồng ý",cls:"btn btn-primary",func:function(n,i){t(n,i);u=!0;r.hide()}}),r.show(),r}function getParameter(n,t){for(var r,u=t.slice(t.indexOf("?")+1).split("&"),i=0;i<u.length;i++)if(r=u[i].split("="),r[0]==n)return decodeURIComponent(r[1]);return!1}function setUtmCookie(n,t){var r=getCookie(n),i,u;t==!1&&(t="--");i=[];r!=null&&(i=r.split("|"));i.push(t);u=i.join("|");setCookie(n,u,180)}function setCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toGMTString();document.cookie=n+"="+t+";"+u+";path=/"}function getCookie(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 null}function deleteCookie(n){var t=new Date,i;t.setTime(t.getTime()-864e7);i="expires="+t.toGMTString();document.cookie=n+"='';"+i+";path=/"}function setEmpty(n){n.parent(".form-group").removeClass("has-danger");n.removeClass(".form-control-danger");n.next(".text-danger").length>0&&n.next(".form-control-label.text-danger").remove();n.parent().removeClass("has-danger");n.removeClass("form-control-danger")}function checkEmailNoRender(n){if(validateEmail(n.val().trim())==!1)return!1}function checkEmptyNoRender(n){return n.val().trim().length>0?!1:!0}function trimString(n){return typeof n!="string"?n:n.replace(/^\s+|\s+$/g,"")}function checkEmail(n){if(validateEmail(n.val().trim())==!1)return n.parent(".form-group").addClass("has-danger"),n.addClass("form-control-danger"),n.after("<label class='col-lg-12 col-md-3 font-size-12 form-control-label text-danger'>"+(user_language=="en")?"Required an email":"Vui lÃ²ng Ä‘iá»n email<\/label>"),checkError=!0,!1}function checkEmpty(n,t){return n.parent(".form-group").removeClass("has-danger"),n.removeClass(".form-control-danger"),n.next(".text-danger").length>0&&n.next(".form-control-label.text-danger").remove(),n.val().trim().length>0?(n.parent(".form-group").removeClass("has-danger"),n.removeClass("form-control-danger"),n.next(".form-control-label.text-danger").empty(),!1):(n.parent(".form-group").addClass("has-danger"),n.addClass("form-control-danger"),n.after("<label class='col-lg-12 col-md-3 font-size-12 form-control-label text-danger'>"+t+(user_language=="en"?" can't be empty ":" khÃ´ng Ä‘á»ƒ trá»‘ng ")+"<\/label>"),!0)}function validateEmail(n){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}function enterInput(n,t){n.on("keyup",function(n){n.keyCode==13&&t.click()})}function dochangchuc(n,t){var i="";return chuc=Math.floor(n/10),donvi=n%10,chuc>1?(i=" "+mangso[chuc]+" mươi",donvi==1&&(i+=" mốt")):chuc==1?(i=" mười",donvi==1&&(i+=" một")):t&&donvi>0&&(i=" lẻ"),donvi==5&&chuc>=1?i+=" lăm":(donvi>1||donvi==1&&chuc==0)&&(i+=" "+mangso[donvi]),i}function docblock(n,t){return tram=Math.floor(n/100),n=n%100,t||tram>0?" "+mangso[tram]+" trăm"+dochangchuc(n,!0):dochangchuc(n,!1)}function dochangtrieu(n,t){var i="";return trieu=Math.floor(n/1e6),n=n%1e6,trieu>0&&(i=docblock(trieu,t)+" triệu",t=!0),nghin=Math.floor(n/1e3),n=n%1e3,nghin>0&&(i+=docblock(nghin,t)+" nghìn",t=!0),n>0&&(i+=docblock(n,t)),i}function docso(n){var r,t,i,u;if(console.log(n),r="",n<0&&(n=n*-1,r="Giảm "),n==0)return mangso[0];t="";i="";do ty=n%1e9,n=Math.floor(n/1e9),t=n>0?dochangtrieu(ty,!0)+i+t:dochangtrieu(ty,!1)+i+t,i=" tỷ";while(n>0);return u=t.trim(),r+u.charAt(0).toUpperCase()+u.slice(1).toLowerCase()+" đồng"}function get_utm_url(){var t=getCookie("utm"),n={},r,f,i,u;t&&t!==null&&(n=JSON.parse(atob(t)));r=new URLSearchParams(window.location.search);f=!1;for([i,u]of r.entries())jQuery.inArray(i,arrKey)===-1&&(n[i]=u);return setCookie("utm",btoa(JSON.stringify(n)),30),n}function isValidDateRange(n){function t(n){const[i,r,u]=n.split("/").map(Number),t=new Date(u,r-1,i);return t.getFullYear()!==u||t.getMonth()!==r-1||t.getDate()!==i?null:t}if(typeof n!="string"||!n.trim())return!1;if(!/^\d{2}\/\d{2}\/\d{4}\s*-\s*\d{2}\/\d{2}\/\d{4}$/.test(n))return!1;const[u,f]=n.split("-").map(n=>n.trim());const i=t(u),r=t(f);return!i||!r?!1:i.getTime()<=r.getTime()}function isValidMaLichTour(n){if(typeof n!="string")return!1;const r=n.match(/^([A-Za-z]+)(\d{6})([A-Za-z]*)$/);if(!r)return!1;const t=r[2],u=parseInt(t.substring(0,2),10),f=parseInt(t.substring(2,4),10),o=parseInt(t.substring(4,6),10),e=2e3+o,i=new Date(e,f-1,u);return i.getFullYear()!==e||i.getMonth()!==f-1||i.getDate()!==u?!1:!0}function getDateFromMaLichTour(n){if(typeof n!="string")return null;const r=n.match(/^([A-Za-z]+)(\d{6})([A-Za-z]*)$/);if(!r)return null;const i=r[2],u=parseInt(i.slice(0,2),10),f=parseInt(i.slice(2,4),10),o=parseInt(i.slice(4,6),10),e=2e3+o,t=new Date(e,f-1,u);if(t.getFullYear()!==e||t.getMonth()!==f-1||t.getDate()!==u)return null;const s=String(t.getDate()).padStart(2,"0"),h=String(t.getMonth()+1).padStart(2,"0"),c=String(t.getFullYear());return`${s}/${h}/${c}`}function getMonthRangeFromMaLichTour(n){if(typeof n!="string")return null;const f=n.match(/^([A-Za-z]+)(\d{6})([A-Za-z]*)$/);if(!f)return null;const e=f[2],t=parseInt(e.slice(2,4),10),s=parseInt(e.slice(4,6),10),i=2e3+s;if(t<1||t>12)return null;const r=new Date(i,t-1,1),u=new Date(i,t,0);if(r.getFullYear()!==i||r.getMonth()!==t-1||u.getFullYear()!==i||u.getMonth()!==t-1)return null;const o=n=>String(n.getDate()).padStart(2,"0")+"/"+String(n.getMonth()+1).padStart(2,"0")+"/"+n.getFullYear();return`${o(r)} - ${o(u)}`}var DateFormatter,Notify,formatMoney,wDWs,TTourID,TChuyenMucId,validates,defaultTables,click_sound,mangso,arrKey;!function(){"use strict";var t,n,i,f,r,u;r=864e5;u=3600;t=function(n,t){return"string"==typeof n&&"string"==typeof t&&n.toLowerCase()===t.toLowerCase()};n=function(t,i,r){var f=r||"0",u=t.toString();return u.length<i?n(f+u,i):u};i=function(n){var u,r,t;for(n=n||{},u=1;u<arguments.length;u++)if(r=arguments[u])for(t in r)r.hasOwnProperty(t)&&("object"==typeof r[t]?i(n[t],r[t]):n[t]=r[t]);return n};f={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(n){var t=n%10,i={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(n%100/10)&&i[t]?i[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g};DateFormatter=function(n){var t=this,r=i(f,n);t.dateSettings=r.dateSettings;t.separators=r.separators;t.validParts=r.validParts;t.intParts=r.intParts;t.tzParts=r.tzParts;t.tzClip=r.tzClip};DateFormatter.prototype={constructor:DateFormatter,parseDate:function(n,i){var f,c,e,o,r,s,v,y,p,w,b=this,l=!1,h=!1,a=b.dateSettings,u={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!n)return void 0;if(n instanceof Date)return n;if("number"==typeof n)return new Date(n);if("U"===i)return e=parseInt(n),e?new Date(1e3*e):n;if("string"!=typeof n)return"";if(f=i.match(b.validParts),!f||0===f.length)throw new Error("Invalid date format definition.");for(c=n.replace(b.separators,"\x00").split("\x00"),e=0;e<c.length;e++)switch(o=c[e],r=parseInt(o),f[e]){case"y":case"Y":p=o.length;2===p?u.year=parseInt((70>r?"20":"19")+o):4===p&&(u.year=r);l=!0;break;case"m":case"n":case"M":case"F":isNaN(o)?(s=a.monthsShort.indexOf(o),s>-1&&(u.month=s+1),s=a.months.indexOf(o),s>-1&&(u.month=s+1)):r>=1&&12>=r&&(u.month=r);l=!0;break;case"d":case"j":r>=1&&31>=r&&(u.day=r);l=!0;break;case"g":case"h":v=f.indexOf("a")>-1?f.indexOf("a"):f.indexOf("A")>-1?f.indexOf("A"):-1;w=c[v];v>-1?(y=t(w,a.meridiem[0])?0:t(w,a.meridiem[1])?12:-1,r>=1&&12>=r&&y>-1?u.hour=r+y-1:r>=0&&23>=r&&(u.hour=r)):r>=0&&23>=r&&(u.hour=r);h=!0;break;case"G":case"H":r>=0&&23>=r&&(u.hour=r);h=!0;break;case"i":r>=0&&59>=r&&(u.min=r);h=!0;break;case"s":r>=0&&59>=r&&(u.sec=r);h=!0}if(l===!0&&u.year&&u.month&&u.day)u.date=new Date(u.year,u.month-1,u.day,u.hour,u.min,u.sec,0);else{if(h!==!0)return!1;u.date=new Date(0,0,0,u.hour,u.min,u.sec,0)}return u.date},guessDate:function(n,t){if("string"!=typeof n)return n;var h,f,r,u,c=this,s=n.replace(c.separators,"\x00").split("\x00"),e=t.match(c.validParts),i=new Date,o=0;if(!/^[djmn]/g.test(e[0]))return n;for(f=0;f<s.length;f++){switch(o=2,r=s[f],u=parseInt(r.substr(0,2)),f){case 0:"m"===e[0]||"n"===e[0]?i.setMonth(u-1):i.setDate(u);break;case 1:"m"===e[0]||"n"===e[0]?i.setDate(u):i.setMonth(u-1);break;case 2:h=i.getFullYear();r.length<4?(i.setFullYear(parseInt(h.toString().substr(0,4-r.length)+r)),o=r.length):(i.setFullYear=parseInt(r.substr(0,4)),o=4);break;case 3:i.setHours(u);break;case 4:i.setMinutes(u);break;case 5:i.setSeconds(u)}r.substr(o).length>0&&s.splice(f+1,0,r.substr(o))}return i},parseFormat:function(t,i){var f,o=this,e=o.dateSettings,h=/\\?(.?)/gi,s=function(n,t){return f[n]?f[n]():t};return f={d:function(){return n(f.j(),2)},D:function(){return e.daysShort[f.w()]},j:function(){return i.getDate()},l:function(){return e.days[f.w()]},N:function(){return f.w()||7},w:function(){return i.getDay()},z:function(){var n=new Date(f.Y(),f.n()-1,f.j()),t=new Date(f.Y(),0,1);return Math.round((n-t)/r)},W:function(){var t=new Date(f.Y(),f.n()-1,f.j()-f.N()+3),i=new Date(t.getFullYear(),0,4);return n(1+Math.round((t-i)/r/7),2)},F:function(){return e.months[i.getMonth()]},m:function(){return n(f.n(),2)},M:function(){return e.monthsShort[i.getMonth()]},n:function(){return i.getMonth()+1},t:function(){return new Date(f.Y(),f.n(),0).getDate()},L:function(){var n=f.Y();return n%4==0&&n%100!=0||n%400==0?1:0},o:function(){var n=f.n(),t=f.W(),i=f.Y();return i+(12===n&&9>t?1:1===n&&t>9?-1:0)},Y:function(){return i.getFullYear()},y:function(){return f.Y().toString().slice(-2)},a:function(){return f.A().toLowerCase()},A:function(){var n=f.G()<12?0:1;return e.meridiem[n]},B:function(){var t=i.getUTCHours()*u,r=60*i.getUTCMinutes(),f=i.getUTCSeconds();return n(Math.floor((t+r+f+u)/86.4)%1e3,3)},g:function(){return f.G()%12||12},G:function(){return i.getHours()},h:function(){return n(f.g(),2)},H:function(){return n(f.G(),2)},i:function(){return n(i.getMinutes(),2)},s:function(){return n(i.getSeconds(),2)},u:function(){return n(1e3*i.getMilliseconds(),6)},e:function(){var n=/\((.*)\)/.exec(String(i))[1];return n||"Coordinated Universal Time"},T:function(){var n=(String(i).match(o.tzParts)||[""]).pop().replace(o.tzClip,"");return n||"UTC"},I:function(){var n=new Date(f.Y(),0),t=Date.UTC(f.Y(),0),i=new Date(f.Y(),6),r=Date.UTC(f.Y(),6);return n-t!=i-r?1:0},O:function(){var t=i.getTimezoneOffset(),r=Math.abs(t);return(t>0?"-":"+")+n(100*Math.floor(r/60)+r%60,4)},P:function(){var n=f.O();return n.substr(0,3)+":"+n.substr(3,2)},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(h,s)},r:function(){return"D, d M Y H:i:s O".replace(h,s)},U:function(){return i.getTime()/1e3||0}},s(t,t)},formatDate:function(n,t){var i,o,e,r,u,f=this,s="";if("string"==typeof n&&(n=f.parseDate(n,t),n===!1))return!1;if(n instanceof Date){for(e=t.length,i=0;e>i;i++)u=t.charAt(i),"S"!==u&&(r=f.parseFormat(u,n),i!==e-1&&f.intParts.test(u)&&"S"===t.charAt(i+1)&&(o=parseInt(r),r+=f.dateSettings.ordinal(o)),s+=r);return s}return""}}}(),function(n){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){"use strict";function u(n,t,i){this.date=n;this.desc=t;this.style=i}var r={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,disabledMinTime:!1,disabledMaxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},t=null,e="en",i="en",o={meridiem:["AM","PM"]},f=function(){var u=r.i18n[i],f={days:u.dayOfWeek,daysShort:u.dayOfWeekShort,months:u.months,monthsShort:n.map(u.months,function(n){return n.substring(0,3)})};t=new DateFormatter({dateSettings:n.extend({},o,f)})};n.datetimepicker={setLocale:function(n){var t=r.i18n[n]?n:e;i!=t&&(i=t,f())},setDateFormatter:function(n){t=n},RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"};f();window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(n,t,i){return i.toUpperCase()})),n.currentStyle[t]||null},this});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;r>i;i+=1)if(this[i]===n)return i;return-1});Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()};n.fn.xdsoftScroller=function(t){return this.each(function(){var f,u,e,o,r,i=n(this),s=function(n){var i,t={x:0,y:0};return"touchstart"===n.type||"touchmove"===n.type||"touchend"===n.type||"touchcancel"===n.type?(i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0],t.x=i.clientX,t.y=i.clientY):("mousedown"===n.type||"mouseup"===n.type||"mousemove"===n.type||"mouseover"===n.type||"mouseout"===n.type||"mouseenter"===n.type||"mouseleave"===n.type)&&(t.x=n.clientX,t.y=n.clientY),t},h=100,c=!1,w=0,a=0,v=0,y=!1,p=0,l=function(){};return"hide"===t?void i.find(".xdsoft_scrollbar").hide():(n(this).hasClass("xdsoft_scroller_box")||(f=i.children().eq(0),u=i[0].clientHeight,e=f[0].offsetHeight,o=n('<div class="xdsoft_scrollbar"><\/div>'),r=n('<div class="xdsoft_scroller"><\/div>'),o.append(r),i.addClass("xdsoft_scroller_box").append(o),l=function(n){var t=s(n).y-w+p;0>t&&(t=0);t+r[0].offsetHeight>v&&(t=v-r[0].offsetHeight);i.trigger("scroll_element.xdsoft_scroller",[h?t/h:0])},r.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(f){u||i.trigger("resize_scroll.xdsoft_scroller",[t]);w=s(f).y;p=parseInt(r.css("margin-top"),10);v=o[0].offsetHeight;"mousedown"===f.type||"touchstart"===f.type?(document&&n(document.body).addClass("xdsoft_noselect"),n([document.body,window]).on("touchend mouseup.xdsoft_scroller",function e(){n([document.body,window]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",l).removeClass("xdsoft_noselect")}),n(document.body).on("mousemove.xdsoft_scroller",l)):(y=!0,f.stopPropagation(),f.preventDefault())}).on("touchmove",function(n){y&&(n.preventDefault(),l(n))}).on("touchend touchcancel",function(){y=!1;p=0}),i.on("scroll_element.xdsoft_scroller",function(n,t){u||i.trigger("resize_scroll.xdsoft_scroller",[t,!0]);t=t>1?1:0>t||isNaN(t)?0:t;r.css("margin-top",h*t);setTimeout(function(){f.css("marginTop",-parseInt((f[0].offsetHeight-u)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(n,t,s){var c,l;u=i[0].clientHeight;e=f[0].offsetHeight;c=u/e;l=c*o[0].offsetHeight;c>1?r.hide():(r.show(),r.css("height",parseInt(l>10?l:10,10)),h=o[0].offsetHeight-r[0].offsetHeight,s!==!0&&i.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(f.css("marginTop"),10))/(e-u)]))}),i.on("mousewheel",function(n){var t=Math.abs(parseInt(f.css("marginTop"),10));return t-=20*n.deltaY,0>t&&(t=0),i.trigger("scroll_element.xdsoft_scroller",[t/(e-u)]),n.stopPropagation(),!1}),i.on("touchstart",function(n){c=s(n);a=Math.abs(parseInt(f.css("marginTop"),10))}),i.on("touchmove",function(n){if(c){n.preventDefault();var t=s(n);i.trigger("scroll_element.xdsoft_scroller",[(a-(t.y-c.y))/(e-u)])}}),i.on("touchend touchcancel",function(){c=!1;a=0})),void i.trigger("resize_scroll.xdsoft_scroller",[t]))})};n.fn.datetimepicker=function(f,e){var c,v,y=this,p=48,nt=57,w=96,b=105,l=17,s=46,k=13,tt=27,h=8,it=37,rt=38,ut=39,ft=40,d=9,et=116,ot=65,st=67,ht=86,ct=90,lt=89,a=!1,o=n.isPlainObject(f)||!f?n.extend(!0,{},r,f):n.extend(!0,{},r),g=0,at=function(n){n.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){n.is(":disabled")||n.data("xdsoft_datetimepicker")||(clearTimeout(g),g=setTimeout(function(){n.data("xdsoft_datetimepicker")||c(n);n.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};return c=function(r){function kt(){var t,n=!1;return o.startDate?n=c.strToDate(o.startDate):(n=o.value||(r&&r.val&&r.val()?r.val():""),n?n=c.strToDateTime(n):o.defaultDate&&(n=c.strToDateTime(o.defaultDate),o.defaultTime&&(t=c.strtotime(o.defaultTime),n.setHours(t.getHours()),n.setMinutes(t.getMinutes())))),n&&c.isValidDate(n)?e.data("changed",!0):n="",n||0}function fi(t){var i=function(n,t){var i=n.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(i).test(t)},f=function(n){try{if(document.selection&&document.selection.createRange){var t=document.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(n.setSelectionRange)return n.selectionStart}catch(i){return 0}},u=function(n,t){if(n="string"==typeof n||n instanceof String?document.getElementById(n):n,!n)return!1;if(n.createTextRange){var i=n.createTextRange();return i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select(),!0}return n.setSelectionRange?(n.setSelectionRange(t,t),!0):!1};t.mask&&r.off("keydown.xdsoft");t.mask===!0&&(t.mask="undefined"!=typeof moment?t.format.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59"):t.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59"));"string"===n.type(t.mask)&&(i(t.mask,r.val())||(r.val(t.mask.replace(/[0-9]/g,"_")),u(r[0],0)),r.on("keydown.xdsoft",function(e){var c,y,v=this.value,o=e.which;if(o>=p&&nt>=o||o>=w&&b>=o||o===h||o===s){for(c=f(this),y=o!==h&&o!==s?String.fromCharCode(o>=w&&b>=o?o-p:o):"_",o!==h&&o!==s||!c||(c-=1,y="_");/[^0-9_]/.test(t.mask.substr(c,1))&&c<t.mask.length&&c>0;)c+=o===h||o===s?-1:1;if(v=v.substr(0,c)+y+v.substr(c+1),""===n.trim(v))v=t.mask.replace(/[0-9]/g,"_");else if(c===t.mask.length)return e.preventDefault(),!1;for(c+=o===h||o===s?0:1;/[^0-9_]/.test(t.mask.substr(c,1))&&c<t.mask.length&&c>0;)c+=o===h||o===s?-1:1;i(t.mask,v)?(this.value=v,u(this,c)):""===n.trim(v)?this.value=t.mask.replace(/[0-9]/g,"_"):r.trigger("error_input.xdsoft")}else if(-1!==[ot,st,ht,ct,lt].indexOf(o)&&a||-1!==[tt,rt,ft,it,ut,et,l,d,k].indexOf(o))return!0;return e.preventDefault(),!1}))}var ei,dt,pt,vt,wt,c,gt,e=n('<div class="xdsoft_datetimepicker xdsoft_noselect"><\/div>'),oi=n('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net<\/a><\/div>'),at=n('<div class="xdsoft_datepicker active"><\/div>'),y=n('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"><\/button><button type="button" class="xdsoft_today_button"><\/button><div class="xdsoft_label xdsoft_month"><span><\/span><i><\/i><\/div><div class="xdsoft_label xdsoft_year"><span><\/span><i><\/i><\/div><button type="button" class="xdsoft_next"><\/button><\/div>'),ni=n('<div class="xdsoft_calendar"><\/div>'),yt=n('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"><\/button><div class="xdsoft_time_box"><\/div><button type="button" class="xdsoft_next"><\/button><\/div>'),g=yt.find(".xdsoft_time_box").eq(0),v=n('<div class="xdsoft_time_variant"><\/div>'),ti=n('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected<\/button>'),ii=n('<div class="xdsoft_select xdsoft_monthselect"><div><\/div><\/div>'),ri=n('<div class="xdsoft_select xdsoft_yearselect"><div><\/div><\/div>'),bt=!1,ui=0;o.id&&e.attr("id",o.id);o.style&&e.attr("style",o.style);o.weeks&&e.addClass("xdsoft_showweeks");o.rtl&&e.addClass("xdsoft_rtl");e.addClass("xdsoft_"+o.theme);e.addClass(o.className);y.find(".xdsoft_month span").after(ii);y.find(".xdsoft_year span").after(ri);y.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var r,u,i=n(this).find(".xdsoft_select").eq(0),f=0,e=0,o=i.is(":visible");for(y.find(".xdsoft_select").hide(),c.currentTime&&(f=c.currentTime[n(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),i[o?"hide":"show"](),r=i.find("div.xdsoft_option"),u=0;u<r.length&&r.eq(u).data("value")!==f;u+=1)e+=r[0].offsetHeight;return i.xdsoftScroller(e/(i.children()[0].offsetHeight-i[0].clientHeight)),t.stopPropagation(),!1});y.find(".xdsoft_select").xdsoftScroller().on("touchstart mousedown.xdsoft",function(n){n.stopPropagation();n.preventDefault()}).on("touchstart mousedown.xdsoft",".xdsoft_option",function(){(void 0===c.currentTime||null===c.currentTime)&&(c.currentTime=c.now());var t=c.currentTime.getFullYear();c&&c.currentTime&&c.currentTime[n(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](n(this).data("value"));n(this).parent().parent().hide();e.trigger("xchange.xdsoft");o.onChangeMonth&&n.isFunction(o.onChangeMonth)&&o.onChangeMonth.call(e,c.currentTime,e.data("input"));t!==c.currentTime.getFullYear()&&n.isFunction(o.onChangeYear)&&o.onChangeYear.call(e,c.currentTime,e.data("input"))});e.getValue=function(){return c.getCurrentTime()};e.setOptions=function(i){var f={};o=n.extend(!0,{},o,i);i.allowTimes&&n.isArray(i.allowTimes)&&i.allowTimes.length&&(o.allowTimes=n.extend(!0,[],i.allowTimes));i.weekends&&n.isArray(i.weekends)&&i.weekends.length&&(o.weekends=n.extend(!0,[],i.weekends));i.allowDates&&n.isArray(i.allowDates)&&i.allowDates.length&&(o.allowDates=n.extend(!0,[],i.allowDates));i.allowDateRe&&"[object String]"===Object.prototype.toString.call(i.allowDateRe)&&(o.allowDateRe=new RegExp(i.allowDateRe));i.highlightedDates&&n.isArray(i.highlightedDates)&&i.highlightedDates.length&&(n.each(i.highlightedDates,function(i,r){var s,c=n.map(r.split(","),n.trim),e=new u(t.parseDate(c[0],o.formatDate),c[1],c[2]),h=t.formatDate(e.date,o.formatDate);void 0!==f[h]?(s=f[h].desc,s&&s.length&&e.desc&&e.desc.length&&(f[h].desc=s+"\n"+e.desc)):f[h]=e}),o.highlightedDates=n.extend(!0,[],f));i.highlightedPeriods&&n.isArray(i.highlightedPeriods)&&i.highlightedPeriods.length&&(f=n.extend(!0,[],o.highlightedDates),n.each(i.highlightedPeriods,function(i,r){var e,a,v,s,h,l,y,c;for(n.isArray(r)?(e=r[0],a=r[1],v=r[2],y=r[3]):(c=n.map(r.split(","),n.trim),e=t.parseDate(c[0],o.formatDate),a=t.parseDate(c[1],o.formatDate),v=c[2],y=c[3]);a>=e;)s=new u(e,v,y),h=t.formatDate(e,o.formatDate),e.setDate(e.getDate()+1),void 0!==f[h]?(l=f[h].desc,l&&l.length&&s.desc&&s.desc.length&&(f[h].desc=l+"\n"+s.desc)):f[h]=s}),o.highlightedDates=n.extend(!0,[],f));i.disabledDates&&n.isArray(i.disabledDates)&&i.disabledDates.length&&(o.disabledDates=n.extend(!0,[],i.disabledDates));i.disabledWeekDays&&n.isArray(i.disabledWeekDays)&&i.disabledWeekDays.length&&(o.disabledWeekDays=n.extend(!0,[],i.disabledWeekDays));!o.open&&!o.opened||o.inline||r.trigger("open.xdsoft");o.inline&&(bt=!0,e.addClass("xdsoft_inline"),r.after(e).hide());o.inverseButton&&(o.next="xdsoft_prev",o.prev="xdsoft_next");o.datepicker?at.addClass("active"):at.removeClass("active");o.timepicker?yt.addClass("active"):yt.removeClass("active");o.value&&(c.setCurrentTime(o.value),r&&r.val&&r.val(c.str));o.dayOfWeekStart=isNaN(o.dayOfWeekStart)?0:parseInt(o.dayOfWeekStart,10)%7;o.timepickerScrollbar||g.xdsoftScroller("hide");o.minDate&&/^[\+\-](.*)$/.test(o.minDate)&&(o.minDate=t.formatDate(c.strToDateTime(o.minDate),o.formatDate));o.maxDate&&/^[\+\-](.*)$/.test(o.maxDate)&&(o.maxDate=t.formatDate(c.strToDateTime(o.maxDate),o.formatDate));ti.toggle(o.showApplyButton);y.find(".xdsoft_today_button").css("visibility",o.todayButton?"visible":"hidden");y.find("."+o.prev).css("visibility",o.prevButton?"visible":"hidden");y.find("."+o.next).css("visibility",o.nextButton?"visible":"hidden");fi(o);o.validateOnBlur&&r.off("blur.xdsoft").on("blur.xdsoft",function(){var u,i,r;o.allowBlank&&(!n.trim(n(this).val()).length||"string"==typeof o.mask&&n.trim(n(this).val())===o.mask.replace(/[0-9]/g,"_"))?(n(this).val(null),e.data("xdsoft_datetime").empty()):(u=t.parseDate(n(this).val(),o.format),u?n(this).val(t.formatDate(u,o.format)):(i=+[n(this).val()[0],n(this).val()[1]].join(""),r=+[n(this).val()[2],n(this).val()[3]].join(""),n(this).val(!o.datepicker&&o.timepicker&&i>=0&&24>i&&r>=0&&60>r?[i,r].map(function(n){return n>9?n:"0"+n}).join(":"):t.formatDate(c.now(),o.format))),e.data("xdsoft_datetime").setCurrentTime(n(this).val()));e.trigger("changedatetime.xdsoft");e.trigger("close.xdsoft")});o.dayOfWeekStartPrev=0===o.dayOfWeekStart?6:o.dayOfWeekStart-1;e.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")};e.data("options",o).on("touchstart mousedown.xdsoft",function(n){return n.stopPropagation(),n.preventDefault(),ri.hide(),ii.hide(),!1});g.append(v);g.xdsoftScroller();e.on("afterOpen.xdsoft",function(){g.xdsoftScroller()});e.append(at).append(yt);o.withoutCopyright!==!0&&e.append(oi);at.append(y).append(ni).append(ti);n(o.parentID).append(e);ei=function(){var i=this;i.now=function(n){var r,u,t=new Date;return!n&&o.defaultDate&&(r=i.strToDateTime(o.defaultDate),t.setFullYear(r.getFullYear()),t.setMonth(r.getMonth()),t.setDate(r.getDate())),o.yearOffset&&t.setFullYear(t.getFullYear()+o.yearOffset),!n&&o.defaultTime&&(u=i.strtotime(o.defaultTime),t.setHours(u.getHours()),t.setMinutes(u.getMinutes())),t};i.isValidDate=function(n){return"[object Date]"!==Object.prototype.toString.call(n)?!1:!isNaN(n.getTime())};i.setCurrentTime=function(n,t){i.currentTime="string"==typeof n?i.strToDateTime(n):i.isValidDate(n)?n:n||t||!o.allowBlank?i.now():null;e.trigger("xchange.xdsoft")};i.empty=function(){i.currentTime=null};i.getCurrentTime=function(){return i.currentTime};i.nextMonth=function(){(void 0===i.currentTime||null===i.currentTime)&&(i.currentTime=i.now());var r,t=i.currentTime.getMonth()+1;return 12===t&&(i.currentTime.setFullYear(i.currentTime.getFullYear()+1),t=0),r=i.currentTime.getFullYear(),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),o.onChangeMonth&&n.isFunction(o.onChangeMonth)&&o.onChangeMonth.call(e,c.currentTime,e.data("input")),r!==i.currentTime.getFullYear()&&n.isFunction(o.onChangeYear)&&o.onChangeYear.call(e,c.currentTime,e.data("input")),e.trigger("xchange.xdsoft"),t};i.prevMonth=function(){(void 0===i.currentTime||null===i.currentTime)&&(i.currentTime=i.now());var t=i.currentTime.getMonth()-1;return-1===t&&(i.currentTime.setFullYear(i.currentTime.getFullYear()-1),t=11),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),o.onChangeMonth&&n.isFunction(o.onChangeMonth)&&o.onChangeMonth.call(e,c.currentTime,e.data("input")),e.trigger("xchange.xdsoft"),t};i.getWeekOfYear=function(t){var r,i;return o.onGetWeekOfYear&&n.isFunction(o.onGetWeekOfYear)&&(r=o.onGetWeekOfYear.call(e,t),"undefined"!=typeof r)?r:(i=new Date(t.getFullYear(),0,1),4!=i.getDay()&&i.setMonth(0,1+(11-i.getDay())%7),Math.ceil(((t-i)/864e5+i.getDay()+1)/7))};i.strToDateTime=function(n){var f,u,r=[];return n&&n instanceof Date&&i.isValidDate(n)?n:(r=/^(\+|\-)(.*)$/.exec(n),r&&(r[2]=t.parseDate(r[2],o.formatDate)),r&&r[2]?(f=r[2].getTime()-6e4*r[2].getTimezoneOffset(),u=new Date(i.now(!0).getTime()+parseInt(r[1]+"1",10)*f)):u=n?t.parseDate(n,o.format):i.now(),i.isValidDate(u)||(u=i.now()),u)};i.strToDate=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,o.formatDate):i.now(!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.strtotime=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,o.formatTime):i.now(!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.str=function(){return t.formatDate(i.currentTime,o.format)};i.currentTime=this.now()};c=new ei;ti.on("touchend click",function(n){n.preventDefault();e.data("changed",!0);c.setCurrentTime(kt());r.val(c.str());e.trigger("close.xdsoft")});y.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){e.data("changed",!0);c.setCurrentTime(0,!0);e.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var n,t,i=c.getCurrentTime();i=new Date(i.getFullYear(),i.getMonth(),i.getDate());n=c.strToDate(o.minDate);n=new Date(n.getFullYear(),n.getMonth(),n.getDate());n>i||(t=c.strToDate(o.maxDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i>t||(r.val(c.str()),r.trigger("change"),e.trigger("close.xdsoft")))});y.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=n(this),i=0,r=!1;!function u(n){t.hasClass(o.next)?c.nextMonth():t.hasClass(o.prev)&&c.prevMonth();o.monthChangeSpinner&&(r||(i=setTimeout(u,n||100)))}(500);n([document.body,window]).on("touchend mouseup.xdsoft",function f(){clearTimeout(i);r=!0;n([document.body,window]).off("touchend mouseup.xdsoft",f)})});yt.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var i=n(this),r=0,u=!1,t=110;!function f(n){var s=g[0].clientHeight,h=v[0].offsetHeight,e=Math.abs(parseInt(v.css("marginTop"),10));i.hasClass(o.next)&&h-s-o.timeHeightInTimePicker>=e?v.css("marginTop","-"+(e+o.timeHeightInTimePicker)+"px"):i.hasClass(o.prev)&&e-o.timeHeightInTimePicker>=0&&v.css("marginTop","-"+(e-o.timeHeightInTimePicker)+"px");g.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(v[0].style.marginTop,10)/(h-s))]);t=t>10?10:t-10;u||(r=setTimeout(f,n||t))}(500);n([document.body,window]).on("touchend mouseup.xdsoft",function e(){clearTimeout(r);u=!0;n([document.body,window]).off("touchend mouseup.xdsoft",e)})});dt=0;e.on("xchange.xdsoft",function(u){clearTimeout(dt);dt=setTimeout(function(){if(void 0===c.currentTime||null===c.currentTime){if(o.allowBlank)return;c.currentTime=c.now()}for(var a,d,et,nt,ot,p,st,k,tt,it,l="",u=new Date(c.currentTime.getFullYear(),c.currentTime.getMonth(),1,12,0,0),s=0,rt=c.now(),w=!1,b=!1,h=[],ut=!0,ft="",g="";u.getDay()!==o.dayOfWeekStart;)u.setDate(u.getDate()-1);for(l+="<table><thead><tr>",o.weeks&&(l+="<th><\/th>"),a=0;7>a;a+=1)l+="<th>"+o.i18n[i].dayOfWeekShort[(a+o.dayOfWeekStart)%7]+"<\/th>";for(l+="<\/tr><\/thead>",l+="<tbody>",o.maxDate!==!1&&(w=c.strToDate(o.maxDate),w=new Date(w.getFullYear(),w.getMonth(),w.getDate(),23,59,59,999)),o.minDate!==!1&&(b=c.strToDate(o.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate()));s<c.currentTime.countDaysInMonth()||u.getDay()!==o.dayOfWeekStart||c.currentTime.getMonth()===u.getMonth();)h=[],s+=1,et=u.getDay(),nt=u.getDate(),ot=u.getFullYear(),p=u.getMonth(),st=c.getWeekOfYear(u),it="",h.push("xdsoft_date"),k=o.beforeShowDay&&n.isFunction(o.beforeShowDay.call)?o.beforeShowDay.call(e,u):null,o.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(o.allowDateRe)?o.allowDateRe.test(t.formatDate(u,o.formatDate))||h.push("xdsoft_disabled"):o.allowDates&&o.allowDates.length>0?-1===o.allowDates.indexOf(t.formatDate(u,o.formatDate))&&h.push("xdsoft_disabled"):w!==!1&&u>w||b!==!1&&b>u||k&&k[0]===!1?h.push("xdsoft_disabled"):-1!==o.disabledDates.indexOf(t.formatDate(u,o.formatDate))?h.push("xdsoft_disabled"):-1!==o.disabledWeekDays.indexOf(et)?h.push("xdsoft_disabled"):r.is("[readonly]")&&h.push("xdsoft_disabled"),k&&""!==k[1]&&h.push(k[1]),c.currentTime.getMonth()!==p&&h.push("xdsoft_other_month"),(o.defaultSelect||e.data("changed"))&&t.formatDate(c.currentTime,o.formatDate)===t.formatDate(u,o.formatDate)&&h.push("xdsoft_current"),t.formatDate(rt,o.formatDate)===t.formatDate(u,o.formatDate)&&h.push("xdsoft_today"),(0===u.getDay()||6===u.getDay()||-1!==o.weekends.indexOf(t.formatDate(u,o.formatDate)))&&h.push("xdsoft_weekend"),void 0!==o.highlightedDates[t.formatDate(u,o.formatDate)]&&(d=o.highlightedDates[t.formatDate(u,o.formatDate)],h.push(void 0===d.style?"xdsoft_highlighted_default":d.style),it=void 0===d.desc?"":d.desc),o.beforeShowDay&&n.isFunction(o.beforeShowDay)&&h.push(o.beforeShowDay(u)),ut&&(l+="<tr>",ut=!1,o.weeks&&(l+="<th>"+st+"<\/th>")),l+='<td data-date="'+nt+'" data-month="'+p+'" data-year="'+ot+'" class="xdsoft_date xdsoft_day_of_week'+u.getDay()+" "+h.join(" ")+'" title="'+it+'"><div>'+nt+"<\/div><\/td>",u.getDay()===o.dayOfWeekStartPrev&&(l+="<\/tr>",ut=!0),u.setDate(nt+1);if(l+="<\/tbody><\/table>",ni.html(l),y.find(".xdsoft_label span").eq(0).text(o.i18n[i].months[c.currentTime.getMonth()]),y.find(".xdsoft_label span").eq(1).text(c.currentTime.getFullYear()),ft="",g="",p="",tt=function(i,u){var s,l,f=c.now(),a=o.allowTimes&&n.isArray(o.allowTimes)&&o.allowTimes.length;f.setHours(i);i=parseInt(f.getHours(),10);f.setMinutes(u);u=parseInt(f.getMinutes(),10);s=new Date(c.currentTime);s.setHours(i);s.setMinutes(u);h=[];o.minDateTime!==!1&&o.minDateTime>s||o.maxTime!==!1&&c.strtotime(o.maxTime).getTime()<f.getTime()||o.minTime!==!1&&c.strtotime(o.minTime).getTime()>f.getTime()?h.push("xdsoft_disabled"):o.minDateTime!==!1&&o.minDateTime>s||o.disabledMinTime!==!1&&f.getTime()>c.strtotime(o.disabledMinTime).getTime()&&o.disabledMaxTime!==!1&&f.getTime()<c.strtotime(o.disabledMaxTime).getTime()?h.push("xdsoft_disabled"):r.is("[readonly]")&&h.push("xdsoft_disabled");l=new Date(c.currentTime);l.setHours(parseInt(c.currentTime.getHours(),10));a||l.setMinutes(Math[o.roundTime](c.currentTime.getMinutes()/o.step)*o.step);(o.initTime||o.defaultSelect||e.data("changed"))&&l.getHours()===parseInt(i,10)&&(!a&&o.step>59||l.getMinutes()===parseInt(u,10))&&(o.defaultSelect||e.data("changed")?h.push("xdsoft_current"):o.initTime&&h.push("xdsoft_init_time"));parseInt(rt.getHours(),10)===parseInt(i,10)&&parseInt(rt.getMinutes(),10)===parseInt(u,10)&&h.push("xdsoft_today");ft+='<div class="xdsoft_time '+h.join(" ")+'" data-hour="'+i+'" data-minute="'+u+'">'+t.formatDate(f,o.formatTime)+"<\/div>"},o.allowTimes&&n.isArray(o.allowTimes)&&o.allowTimes.length)for(s=0;s<o.allowTimes.length;s+=1)g=c.strtotime(o.allowTimes[s]).getHours(),p=c.strtotime(o.allowTimes[s]).getMinutes(),tt(g,p);else for(s=0,a=0;s<(o.hours12?12:24);s+=1)for(a=0;60>a;a+=o.step)g=(10>s?"0":"")+s,p=(10>a?"0":"")+a,tt(g,p);for(v.html(ft),f="",s=0,s=parseInt(o.yearStart,10)+o.yearOffset;s<=parseInt(o.yearEnd,10)+o.yearOffset;s+=1)f+='<div class="xdsoft_option '+(c.currentTime.getFullYear()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+s+"<\/div>";for(ri.children().eq(0).html(f),s=parseInt(o.monthStart,10),f="";s<=parseInt(o.monthEnd,10);s+=1)f+='<div class="xdsoft_option '+(c.currentTime.getMonth()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+o.i18n[i].months[s]+"<\/div>";ii.children().eq(0).html(f);n(e).trigger("generate.xdsoft")},10);u.stopPropagation()}).on("afterOpen.xdsoft",function(){if(o.timepicker){var n,t,i,r;v.find(".xdsoft_current").length?n=".xdsoft_current":v.find(".xdsoft_init_time").length&&(n=".xdsoft_init_time");n?(t=g[0].clientHeight,i=v[0].offsetHeight,r=v.find(n).index()*o.timeHeightInTimePicker+1,r>i-t&&(r=i-t),g.trigger("scroll_element.xdsoft_scroller",[parseInt(r,10)/(i-t)])):g.trigger("scroll_element.xdsoft_scroller",[0])}});pt=0;ni.on("touchend click.xdsoft","td",function(t){t.stopPropagation();pt+=1;var u=n(this),i=c.currentTime;return(void 0===i||null===i)&&(c.currentTime=c.now(),i=c.currentTime),u.hasClass("xdsoft_disabled")?!1:(i.setDate(1),i.setFullYear(u.data("year")),i.setMonth(u.data("month")),i.setDate(u.data("date")),e.trigger("select.xdsoft",[i]),r.val(c.str()),o.onSelectDate&&n.isFunction(o.onSelectDate)&&o.onSelectDate.call(e,c.currentTime,e.data("input"),t),e.data("changed",!0),e.trigger("xchange.xdsoft"),e.trigger("changedatetime.xdsoft"),(pt>1||o.closeOnDateSelect===!0||o.closeOnDateSelect===!1&&!o.timepicker)&&!o.inline&&e.trigger("close.xdsoft"),void setTimeout(function(){pt=0},200))});v.on("touchend click.xdsoft","div",function(t){t.stopPropagation();var r=n(this),i=c.currentTime;return(void 0===i||null===i)&&(c.currentTime=c.now(),i=c.currentTime),r.hasClass("xdsoft_disabled")?!1:(i.setHours(r.data("hour")),i.setMinutes(r.data("minute")),e.trigger("select.xdsoft",[i]),e.data("input").val(c.str()),o.onSelectTime&&n.isFunction(o.onSelectTime)&&o.onSelectTime.call(e,c.currentTime,e.data("input"),t),e.data("changed",!0),e.trigger("xchange.xdsoft"),e.trigger("changedatetime.xdsoft"),void(o.inline!==!0&&o.closeOnTimeSelect===!0&&e.trigger("close.xdsoft")))});at.on("mousewheel.xdsoft",function(n){return o.scrollMonth?(n.deltaY<0?c.nextMonth():c.prevMonth(),!1):!0});r.on("mousewheel.xdsoft",function(n){return o.scrollInput?!o.datepicker&&o.timepicker?(vt=v.find(".xdsoft_current").length?v.find(".xdsoft_current").eq(0).index():0,vt+n.deltaY>=0&&vt+n.deltaY<v.children().length&&(vt+=n.deltaY),v.children().eq(vt).length&&v.children().eq(vt).trigger("mousedown"),!1):o.datepicker&&!o.timepicker?(at.trigger(n,[n.deltaY,n.deltaX,n.deltaY]),r.val&&r.val(c.str()),e.trigger("changedatetime.xdsoft"),!1):void 0:!0});e.on("changedatetime.xdsoft",function(t){if(o.onChangeDateTime&&n.isFunction(o.onChangeDateTime)){var i=e.data("input");o.onChangeDateTime.call(e,c.currentTime,i,t);delete o.value;i.trigger("change")}}).on("generate.xdsoft",function(){o.onGenerate&&n.isFunction(o.onGenerate)&&o.onGenerate.call(e,c.currentTime,e.data("input"));bt&&(e.trigger("afterOpen.xdsoft"),bt=!1)}).on("click.xdsoft",function(n){n.stopPropagation()});vt=0;gt=function(n,t){do if(n=n.parentNode,t(n)===!1)break;while("HTML"!==n.nodeName)};wt=function(){var u,i,t,r,c,p,a,s,h,v,y,l,f,w;(s=e.data("input"),u=s.offset(),i=s[0],v="top",t=u.top+i.offsetHeight-1,r=u.left,c="absolute",h=n(window).width(),l=n(window).height(),f=n(window).scrollTop(),document.documentElement.clientWidth-u.left<at.parent().outerWidth(!0))&&(w=at.parent().outerWidth(!0)-i.offsetWidth,r-=w);"rtl"===s.parent().css("direction")&&(r-=e.outerWidth()-s.outerWidth());o.fixed?(t-=f,r-=n(window).scrollLeft(),c="fixed"):(a=!1,gt(i,function(n){if("fixed"===window.getComputedStyle(n).getPropertyValue("position"))return(a=!0,!1)}),a?(c="fixed",t+e.outerHeight()>l+f?(v="bottom",t=l+f-u.top):t-=f):t+i.offsetHeight>l+f&&(t=u.top-i.offsetHeight+1),0>t&&(t=0),r+i.offsetWidth>h&&(r=h-i.offsetWidth));p=e[0];gt(p,function(n){var t;return t=window.getComputedStyle(n).getPropertyValue("position"),"relative"===t&&h>=n.offsetWidth?(r-=(h-n.offsetWidth)/2,!1):void 0});y={position:c,left:r,top:"",bottom:""};y[v]=t;e.css(y)};e.on("open.xdsoft",function(t){var i=!0;o.onShow&&n.isFunction(o.onShow)&&(i=o.onShow.call(e,c.currentTime,e.data("input"),t));i!==!1&&(e.show(),wt(),n(window).off("resize.xdsoft",wt).on("resize.xdsoft",wt),o.closeOnWithoutClick&&n([document.body,window]).on("touchstart mousedown.xdsoft",function r(){e.trigger("close.xdsoft");n([document.body,window]).off("touchstart mousedown.xdsoft",r)}))}).on("close.xdsoft",function(t){var i=!0;y.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide();o.onClose&&n.isFunction(o.onClose)&&(i=o.onClose.call(e,c.currentTime,e.data("input"),t));i===!1||o.opened||o.inline||e.hide();t.stopPropagation()}).on("toggle.xdsoft",function(){e.trigger(e.is(":visible")?"close.xdsoft":"open.xdsoft")}).data("input",r);ui=0;e.data("xdsoft_datetime",c);e.setOptions(o);c.setCurrentTime(kt());r.data("xdsoft_datetimepicker",e).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){r.is(":disabled")||r.data("xdsoft_datetimepicker").is(":visible")&&o.closeOnInputClick||(clearTimeout(ui),ui=setTimeout(function(){r.is(":disabled")||(bt=!0,c.setCurrentTime(kt(),!0),o.mask&&fi(o),e.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var i,r=t.which;return-1!==[k].indexOf(r)&&o.enterLikeTab?(i=n("input:visible,textarea:visible,button:visible,a:visible"),e.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):-1!==[d].indexOf(r)?(e.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){e.trigger("close.xdsoft")})},v=function(t){var i=t.data("xdsoft_datetimepicker");i&&(i.data("xdsoft_datetime",null),i.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),n(window).off("resize.xdsoft"),n([window,document.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},n(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(n){n.keyCode===l&&(a=!0)}).on("keyup.xdsoftctrl",function(n){n.keyCode===l&&(a=!1)}),this.each(function(){var r,i=n(this).data("xdsoft_datetimepicker");if(i){if("string"===n.type(f))switch(f){case"show":n(this).select().focus();i.trigger("open.xdsoft");break;case"hide":i.trigger("close.xdsoft");break;case"toggle":i.trigger("toggle.xdsoft");break;case"destroy":v(n(this));break;case"reset":this.value=this.defaultValue;this.value&&i.data("xdsoft_datetime").isValidDate(t.parseDate(this.value,o.format))||i.data("changed",!1);i.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r=i.data("input");r.trigger("blur.xdsoft");break;default:i[f]&&n.isFunction(i[f])&&(y=i[f](e))}else i.setOptions(f);return 0}"string"!==n.type(f)&&(!o.lazyInit||o.open||o.inline?c(n(this)):at(n(this)))}),y};n.fn.datetimepicker.defaults=r}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});var array_wish=JSON.parse(localStorage.getItem("EgoWishStorage"))||[],activeIconWish="Bỏ yêu thích",iconWish="Thêm vào yêu thích",addW="Thêm vào yêu thích",removeW="Bỏ yêu thích",list_iwish_pro_old=localStorage.getItem("EgoWishStorage");document.addEventListener("DOMContentLoaded",function(){renderWish();activityWish();Onwishlist()});Notify=function(){"use strict";var n=function(n){n.wrapper.classList.add("notify--fade");setTimeout(function(){n.wrapper.classList.add("notify--fadeIn")},100)},t=function(n){n.wrapper.classList.remove("notify--fadeIn");setTimeout(function(){n.wrapper.remove()},n.speed)},i=function(n){n.wrapper.classList.add("notify--slide");setTimeout(function(){n.wrapper.classList.add("notify--slideIn")},100)},r=function(n){n.wrapper.classList.remove("notify--slideIn");setTimeout(function(){n.wrapper.remove()},n.speed)};return function(){function u(n){var y=this;this.notifyOut=function(n){n(y)};var p=n.status,t=n.type,w=void 0===t?1:t,b=n.title,k=n.text,i=n.showIcon,d=void 0===i||i,r=n.customIcon,g=void 0===r?"":r,u=n.customClass,nt=void 0===u?"":u,f=n.speed,tt=void 0===f?500:f,e=n.effect,it=void 0===e?"fade":e,o=n.showCloseButton,rt=void 0===o||o,s=n.autoclose,ut=void 0!==s&&s,h=n.autotimeout,ft=void 0===h?3e3:h,c=n.gap,et=void 0===c?20:c,l=n.distance,ot=void 0===l?20:l,a=n.position,st=void 0===a?"right top":a,v=n.customWrapper,ht=void 0===v?"":v;this.customWrapper=ht;this.status=p;this.title=b;this.text=k;this.showIcon=d;this.customIcon=g;this.customClass=nt;this.speed=tt;this.effect=it;this.showCloseButton=rt;this.autoclose=ut;this.autotimeout=ft;this.gap=et;this.distance=ot;this.type=w;this.position=st;this.checkRequirements()?(this.setContainer(),this.setWrapper(),this.setPosition(),this.showIcon&&this.setIcon(),this.showCloseButton&&this.setCloseButton(),this.setContent(),this.container.prepend(this.wrapper),this.setEffect(),this.notifyIn(this.selectedNotifyInEffect),this.autoclose&&this.autoClose(),this.setObserver()):console.error("You must specify 'title' or 'text' at least.")}return u.prototype.checkRequirements=function(){return!(!this.title&&!this.text)},u.prototype.setContainer=function(){var n=document.querySelector(".notifications-container");n?this.container=n:(this.container=document.createElement("div"),this.container.classList.add("notifications-container"),document.body.appendChild(this.container));this.container.style.setProperty("--distance",this.distance+"px")},u.prototype.setPosition=function(){var n="notify-is-";"center"===this.position?this.container.classList.add(n+"center"):this.container.classList.remove(n+"center");this.position.includes("left")?this.container.classList.add(n+"left"):this.container.classList.remove(n+"left");this.position.includes("right")?this.container.classList.add(n+"right"):this.container.classList.remove(n+"right");this.position.includes("x-center")?this.container.classList.add(n+"x-center"):this.container.classList.remove(n+"x-center");this.position.includes("top")?this.container.classList.add(n+"top"):this.container.classList.remove(n+"top");this.position.includes("bottom")?this.container.classList.add(n+"bottom"):this.container.classList.remove(n+"bottom");this.position.includes("y-center")?this.container.classList.add(n+"y-center"):this.container.classList.remove(n+"y-center")},u.prototype.setCloseButton=function(){var t=this,n=document.createElement("div");n.classList.add("notify__close");n.innerHTML='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m8.94 8 4.2-4.193a.67.67 0 0 0-.947-.947L8 7.06l-4.193-4.2a.67.67 0 1 0-.947.947L7.06 8l-4.2 4.193a.667.667 0 0 0 .217 1.093.666.666 0 0 0 .73-.146L8 8.94l4.193 4.2a.665.665 0 0 0 .947 0 .665.665 0 0 0 0-.947L8.94 8Z" fill="currentColor"/><\/svg>';this.wrapper.appendChild(n);n.addEventListener("click",function(){t.close()})},u.prototype.setWrapper=function(){var n;this.wrapper=this.customWrapper?(n=this.customWrapper,(new DOMParser).parseFromString(n,"text/html").body.childNodes[0]):document.createElement("div");this.wrapper.style.setProperty("--gap",this.gap+"px");this.wrapper.style.transitionDuration=this.speed+"ms";this.wrapper.classList.add("notify");this.wrapper.classList.add("notify--type-"+this.type);this.wrapper.classList.add("notify--"+this.status);this.autoclose&&this.wrapper.style.setProperty("--timeout",""+(this.autotimeout+this.speed));this.autoclose&&this.wrapper.classList.add("notify-autoclose");this.customClass&&this.wrapper.classList.add(this.customClass)},u.prototype.setContent=function(){var n,t,i=document.createElement("div");i.classList.add("notify-content");this.title&&((n=document.createElement("div")).classList.add("notify__title"),n.textContent=this.title,this.showCloseButton||(n.style.paddingRight="0"));this.text&&((t=document.createElement("div")).classList.add("notify__text"),t.innerHTML=this.text.trim(),this.title||(t.style.marginTop="0"));this.wrapper.appendChild(i);this.title&&i.appendChild(n);this.text&&i.appendChild(t)},u.prototype.setIcon=function(){var n=document.createElement("div");n.classList.add("notify__icon");n.innerHTML=this.customIcon||function(n){switch(n){case"success":return'<svg height="32" width="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m19.627 11.72-5.72 5.733-2.2-2.2a1.335 1.335 0 0 0-2.255.381 1.334 1.334 0 0 0 .375 1.5l3.133 3.146a1.333 1.333 0 0 0 1.88 0l6.667-6.667a1.334 1.334 0 1 0-1.88-1.893ZM16 2.667a13.333 13.333 0 1 0 0 26.666 13.333 13.333 0 0 0 0-26.666Zm0 24a10.666 10.666 0 1 1 0-21.333 10.666 10.666 0 0 1 0 21.333Z"/><\/svg>';case"warning":return'<svg height="32" width="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M13.666 15A1.333 1.333 0 0 0 15 13.667V8.334a1.333 1.333 0 0 0-2.665 0v5.333A1.333 1.333 0 0 0 13.666 15Zm-.507 5.227c.325.134.69.134 1.014 0 .164-.064.314-.159.44-.28a1.56 1.56 0 0 0 .28-.44c.075-.158.111-.332.106-.507a1.333 1.333 0 0 0-.386-.946 1.53 1.53 0 0 0-.44-.28A1.333 1.333 0 0 0 12.334 19a1.4 1.4 0 0 0 .386.947c.127.121.277.216.44.28ZM13.666 27a13.333 13.333 0 1 0 0-26.667 13.333 13.333 0 0 0 0 26.667Zm0-24a10.667 10.667 0 1 1 0 21.333 10.667 10.667 0 0 1 0-21.333Z"/><\/svg>';case"error":return'<svg height="32" width="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M16 2.667a13.333 13.333 0 1 0 0 26.666 13.333 13.333 0 0 0 0-26.666Zm0 24A10.667 10.667 0 0 1 5.333 16a10.56 10.56 0 0 1 2.254-6.533l14.946 14.946A10.56 10.56 0 0 1 16 26.667Zm8.413-4.134L9.467 7.587A10.56 10.56 0 0 1 16 5.333 10.667 10.667 0 0 1 26.667 16a10.56 10.56 0 0 1-2.254 6.533Z"/><\/svg>';case"info":return'<svg height="32" width="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M16 14.667A1.333 1.333 0 0 0 14.667 16v5.333a1.333 1.333 0 1 0 2.666 0V16A1.333 1.333 0 0 0 16 14.667Zm.507-5.227a1.333 1.333 0 0 0-1.014 0 1.334 1.334 0 0 0-.44.28c-.117.13-.212.278-.28.44a1.12 1.12 0 0 0-.106.507 1.333 1.333 0 0 0 .386.946c.13.118.279.213.44.28a1.333 1.333 0 0 0 1.84-1.226 1.4 1.4 0 0 0-.386-.947 1.334 1.334 0 0 0-.44-.28ZM16 2.667a13.333 13.333 0 1 0 0 26.666 13.333 13.333 0 0 0 0-26.666Zm0 24a10.666 10.666 0 1 1 0-21.333 10.666 10.666 0 0 1 0 21.333Z"/><\/svg>'}}(this.status);(this.status||this.customIcon)&&this.wrapper.appendChild(n)},u.prototype.setObserver=function(){var n=this,t=new IntersectionObserver(function(t){t[0].intersectionRatio<=0&&n.close()},{threshold:0});setTimeout(function(){t.observe(n.wrapper)},this.speed)},u.prototype.notifyIn=function(n){n(this)},u.prototype.autoClose=function(){var n=this;setTimeout(function(){n.close()},this.autotimeout+this.speed)},u.prototype.close=function(){this.notifyOut(this.selectedNotifyOutEffect)},u.prototype.setEffect=function(){switch(this.effect){case"fade":this.selectedNotifyInEffect=n;this.selectedNotifyOutEffect=t;break;case"slide":this.selectedNotifyInEffect=i;this.selectedNotifyOutEffect=r;break;default:this.selectedNotifyInEffect=n;this.selectedNotifyOutEffect=t}},u}()}();!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var o=-1,r=-1,i=function(n){return parseFloat(n)||0},s=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;null===o?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},u=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?n.extend(i,t):("boolean"==typeof t?i.byRow=t:"remove"===t&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=u(i),f;return r.remove?(f=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(f)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},f,e;t.version="0.7.2";t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._rows=s;t._parse=i;t._parseOptions=u;t._apply=function(r,f){var e=u(f),o=n(r),c=[o],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=o.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),e.byRow&&!e.target&&(o.each(function(){var i=n(this),t=i.css("display");"inline-block"!==t&&"flex"!==t&&"inline-flex"!==t&&(t="block");i.data("style-cache",i.attr("style"));i.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(o),o.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),f=0;if(e.target)f=e.target.outerHeight(!1);else{if(e.byRow&&u.length<=1)return void u.css(e.property,"");u.each(function(){var t=n(this),u=t.attr("style"),i=t.css("display"),r;"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");r={display:i};r[e.property]="";t.css(r);t.outerHeight(!1)>f&&(f=t.outerHeight(!1));u?t.attr("style",u):t.css("display","")})}u.each(function(){var t=n(this),r=0;e.target&&t.is(e.target)||("border-box"!==t.css("box-sizing")&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(e.property,f-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};f=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,u){if(u&&"resize"===u.type){var e=n(window).width();if(e===o)return;o=e}i?r===-1&&(r=setTimeout(function(){f(u);r=-1},t._throttle)):f(u)};n(t._applyDataApi);e=n.fn.on?"on":"bind";n(window)[e]("load",function(n){t._update(!1,n)});n(window)[e]("resize orientationchange",function(n){t._update(!0,n)})}),function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return f({type:u.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return(r||(r=i()),t=n("#"+r.containerId),t.length)?t:(u&&(t=nt(r)),t)}function y(n,t,r){return f({type:u.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){e=n}function w(n,t,r){return f({type:u.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return f({type:u.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n,u){var f=i();t||r(f);l(n,f,u)||g(f)}function d(u){var f=i();if(t||r(f),u&&n(":focus",u).length===0){s(u);return}t.children().length&&t.remove()}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)l(n(u[r]),i)}function l(t,i,r){var u=r&&r.force?r.force:!1;return t&&(u||n(":focus",t).length===0)?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){s(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:undefined,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:undefined,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-bottom-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function a(n){e&&e(n)}function f(u){function g(){it();ut();ft();et();ot();rt()}function nt(){e.hover(ct,ht);!f.onclick&&f.tapToDismiss&&e.click(v);f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble!==undefined&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)});f.onclick&&e.click(function(){f.onclick();v()})}function tt(){e.hide();e[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown});f.timeOut>0&&(w=setTimeout(v,f.timeOut),c.maxHideTime=parseFloat(f.timeOut),c.hideEta=(new Date).getTime()+c.maxHideTime,f.progressBar&&(c.intervalId=setInterval(lt,10)))}function it(){u.iconClass&&e.addClass(f.toastClass).addClass(p)}function rt(){f.newestOnTop?t.prepend(e):t.append(e)}function ut(){u.title&&(k.append(u.title).addClass(f.titleClass),e.append(k))}function ft(){u.message&&(d.append(u.message).addClass(f.messageClass),e.append(d))}function et(){f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),e.prepend(y))}function ot(){f.progressBar&&(b.addClass("toast-progress"),e.prepend(b))}function st(n,t){if(n.preventDuplicates){if(t.message===o)return!0;o=t.message}return!1}function v(t){if(!n(":focus",e).length||t)return clearTimeout(c.intervalId),e[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){s(e);f.onHidden&&l.state!=="hidden"&&f.onHidden();l.state="hidden";l.endTime=new Date;a(l)}})}function ht(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),c.maxHideTime=parseFloat(f.extendedTimeOut),c.hideEta=(new Date).getTime()+c.maxHideTime)}function ct(){clearTimeout(w);c.hideEta=0;e.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function lt(){var n=(c.hideEta-(new Date).getTime())/c.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if(typeof u.optionsOverride!="undefined"&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),!st(f,u)){h++;t=r(f,!0);var w=null,e=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),c={intervalId:null,hideEta:null,maxHideTime:null},l={toastId:h,state:"visible",startTime:new Date,options:f,map:u};return g(),tt(),nt(),a(l),f.debug&&console&&console.log(l),e}}function i(){return n.extend({},tt(),c.options)}function s(n){(t||(t=r()),n.is(":visible"))||(n.remove(),n=null,t.children().length===0&&(t.remove(),o=undefined))}var t,e,h=0,u={error:"error",info:"info",success:"success",warning:"warning"},c={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.1",warning:b},o;return c}()})}(typeof define=="function"&&define.amd?define:function(n,t){typeof module!="undefined"&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)});window.awe=window.awe||{};awe.init=function(){awe.showPopup();awe.hidePopup()};formatMoney=function(n,t){function u(n,t){return typeof n=="undefined"?t:n}function r(n,t,i,r){if(t=u(t,2),i=u(i,","),r=u(r,"."),isNaN(n)||null==n)return 0;n=n.toFixed(t);var f=n.split("."),e=f[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+i),t=f[1]?r+f[1]:"";return e+t}typeof n=="string"&&(n=n.replace(".",""),n=n.replace(",",""));var i="",f=/\{\{\s*(\w+)\s*\}\}/;t=t||this.money_format;switch(t.match(f)[1]){case"amount":i=r(n,2);break;case"amount_no_decimals":i=r(n,0);break;case"amount_with_comma_separator":i=r(n,2,".",",");break;case"amount_no_decimals_with_comma_separator":i=r(n,0,".",",")}return t.replace(f,i)};$(document).ready(function(n){"use strict";if(awe_backtotop(),awe_category(),awe_tab(),window.matchMedia("(min-width: 992px)").matches){horizontalNav().init();n(window).on("resize",()=>horizontalNav().init())}});$("body").on("click",".xdsoft_calendar td",function(){var n=$(this).data("date"),t=$(this).data("month"),i=$(this).data("year");console.log(123)});$(".dropdown-toggle").click(function(){$(this).parent().toggleClass("open")});$(".close-pop").click(function(){$("#popup-cart").removeClass("opencart");$("body").removeClass("opacitycart")});$(document).on("click",".overlay, .close-popup, .btn-continue, .fancybox-close",function(){return hidePopup(".awe-popup"),setTimeout(function(){$(".loading").removeClass("loaded-content")},500),!1});$(".hotline-fix, #supporter-info .title").click(function(){$(".support-online-widget").toggleClass("active");$(".hotline-fix").toggleClass("active")});window.awe_showLoading=awe_showLoading;window.awe_hideLoading=awe_hideLoading;window.awe_showPopup=awe_showPopup;window.awe_hidePopup=awe_hidePopup;awe.hidePopup=function(n){$(n).removeClass("active")};$(document).on("click",".overlay, .close-window, .btn-continue, .fancybox-close",function(){return awe.hidePopup(".awe-popup"),setTimeout(function(){$(".loading").removeClass("loaded-content")},500),!1});if(wDWs=$(window).width(),wDWs<1200){$(".menu-bar").on("click",function(){$(this).toggleClass("current");$(".header-index").toggleClass("current");$(".header-nav").toggleClass("current")});$(".item-big li .arr").click(function(){$(this).hasClass("current")?$(this).closest("ul").find("li, .arr").removeClass("current"):($(this).closest("ul").find("li, .arr").removeClass("current"),$(this).closest("li").addClass("current"),$(this).addClass("current"))})}window.awe_convertVietnamese=awe_convertVietnamese;window.awe_category=awe_category;window.awe_backtotop=awe_backtotop;window.awe_tab=awe_tab;$(".dropdown-toggle").click(function(){$(this).parent().toggleClass("open")});$(".btn-close").click(function(){$(this).parents(".dropdown").toggleClass("open")});$(document).on("keydown","#qty, .number-sidebar",function(n){-1!==$.inArray(n.keyCode,[46,8,9,27,13,110,190])||/65|67|86|88/.test(n.keyCode)&&(!0===n.ctrlKey||!0===n.metaKey)||35<=n.keyCode&&40>=n.keyCode||(n.shiftKey||48>n.keyCode||57<n.keyCode)&&(96>n.keyCode||105<n.keyCode)&&n.preventDefault()});$(document).on("click",".qtyplus",function(n){n.preventDefault();fieldName=$(this).attr("data-field");var t=parseInt($("input[data-field="+fieldName+"]").val());isNaN(t)?$("input[data-field="+fieldName+"]").val(0):$("input[data-field="+fieldName+"]").val(t+1)});$(document).on("click",".qtyminus",function(n){n.preventDefault();fieldName=$(this).attr("data-field");var t=parseInt($("input[data-field="+fieldName+"]").val());!isNaN(t)&&t>1?$("input[data-field="+fieldName+"]").val(t-1):$("input[data-field="+fieldName+"]").val(1)});$(".open-filters").click(function(n){n.stopPropagation();$(this).toggleClass("openf");$(".dqdt-sidebar").toggleClass("openf");$(".opacity_sidebar").toggleClass("openf")});$(".opacity_sidebar").click(function(){$(".opacity_sidebar").removeClass("openf");$(".dqdt-sidebar, .open-filters").removeClass("openf")});$(".menubutton").click(function(n){n.stopPropagation();$(".wrapmenu_right").toggleClass("open_sidebar_menu");$(".opacity_menu").toggleClass("open_opacity")});$(".opacity_menu").click(function(){$(".wrapmenu_right").removeClass("open_sidebar_menu");$(".opacity_menu").removeClass("open_opacity")});$(".menubar_pc").click(function(){$(".wrapmenu_full").slideToggle("fast");$(".wrapmenu_full, .cloed").toggleClass("open_menu");$(".dqdt-sidebar, .open-filters").removeClass("openf")});$(".cloed").click(function(){$(this).toggleClass("open_menu");$(".wrapmenu_full").slideToggle("fast")});$(".opacity_menu").click(function(){$(".opacity_menu").removeClass("open_opacity")});$(".dqdt-sidebar").hasClass("openf")&&$(".wrapmenu_full").removeClass("open_menu");$(".searchion").mouseover(function(){$(".searchmini input").focus()});$(".quenmk").on("click",function(){$("#login").toggleClass("hidden");$(".h_recover").slideToggle()});$('a[data-toggle="collapse"]').click(function(n){$(window).width()>=767&&(n.preventDefault(),n.stopPropagation())});TTourID="";TChuyenMucId="";String.prototype.toTitleCase=function(){return this.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})};$.fn.exists=function(){return this.length};$(document).ready(function(){var n=window.location.hash.replace("#","");setTimeout(function(){scroll(n)},500)});Core.receiverMessage=function(n){eval(n.JavaScript)};Core.Id="";Core.goto=function(n,t){$("html,body").animate({scrollTop:$(n).offset().top+t+"px"},500)};Core.MoneyShort=function(n){var t;return t=n<1e6?n/1e3:(n/1e6).toFixed(3),t.toString().concat(" k")};Core.isEmail=function(){return/^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$/.test(value)};Core.getSizeName=function(){var t="",n=jQuery(window).width();return n>1170?t="desktop_wide":n>960&&n<=1169?t="desktop":n>768&&n<=959?t="tablet":n>300&&n<=767?t="mobile":n<=300&&(t="mobile_portrait"),t};Core.isZMobile=function(){var n=Core.getSizeName();return n=="mobile"||n=="mobile_portrait"};Core.randomInt=function(n,t){return n=Math.ceil(n),t=Math.floor(t),Math.floor(Math.random()*(t-n+1))+n};Core.randomString=function(n){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=i.length,r=0;r<n;r++)t=t+i.charAt(Math.floor(Math.random()*u));return t};Core.isZTablet=function(){var n=Core.getSizeName();return n=="tablet"};Core.isMobile=function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|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|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/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.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))};Core.isUrl=function(n){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(n)};Core.isEmpty=function(n){return n===undefined||n==null||n.length<=0?!0:!1};Core.isInt=function(n){return/^\d+$/.test(n)?!0:!1};Core.isPhoneNumber=function(n){if(n.length==10||n.length==11){if(n.substr(0,2)=="09"&&n.length!=10||n.substr(0,2)=="01"&&n.length!=11)return!1}else return!1;return!0};Core.formatNumber=function(n){if(n==0)return"0";n=n+"";x=n;for(var t=/(\d+)(\d{3})/;t.test(x);)x=x.replace(t,"$1.$2");return x};Core.DocLo=function(n){if(n<12)return n+" Chai";var t=parseInt(n/12)+" lố";return n%12>0&&(t+=", "+n%12+" chai"),t};Core.setLocalStorage=function(n,t,i){var i,r,u;(i==undefined||i==null)&&(i=24);r=new Date;u=Math.round(r.setSeconds(r.getSeconds()+i*3600)/1e3);localStorage.setItem(n,t);localStorage.setItem(n+"_time",u)};Core.getLocalStorage=function(n){var r=new Date,u=Math.round(+r/1e3),i=localStorage.getItem(n+"_time"),f,t;return((i==undefined||i==null)&&(f=0),i<u)?(localStorage.removeItem(n),localStorage.removeItem(n+"_time"),null):(t=localStorage.getItem(n),t==undefined||t==null?null:t)};Core.InitPaging=function(n,t,i,r,u,f,e){var c=Math.ceil(i/f),a,v,s,o;if(c>1){var y=5,p=Math.floor(parseFloat((y-1)/2)),l=u+p+(y-1)%2,h=u-p;if(h<1&&(h=1,l+=1-h),l>c&&(h-=l-c,h<1&&(h=1),l=c),a=u-1,a<1&&(a=1),v=u+1,v>c&&(v=c),s='<ul class="pagination">',e==null){for(s+='<li><a href="javascript:;" onclick="'+r+"("+h+');return false;">&laquo;<\/a><\/li>',s+='<li><a href="javascript:;" onclick="'+r+"("+a+');return false;"><i class="icon-angle-left"><\/i><\/a><\/li>',o=h;o<=l;o++)s+='<li rel="tooltip" title="Trang '+o+" / "+c+'" class="'+(o==u?"active":"")+'"><a href="javascript:;" onclick="'+(o==u?"":r+"("+o+");return false;")+'">'+o+"<\/a><\/li>";s+='<li><a href="javascript:;" onclick="'+r+"("+v+');return false;"><i class="icon-angle-right"><\/i><\/a><\/li>';s+='<li><a href="javascript:;" onclick="'+r+"("+l+');return false;">&raquo;<\/a><\/li>'}else{for(s+='<li><a href="javascript:;" onclick="'+r+"("+e+","+h+');return false;">&laquo;<\/a><\/li>',s+='<li><a href="javascript:;" onclick="'+r+"("+e+","+a+');return false;"><i class="icon-angle-left"><\/i><\/a><\/li>',o=h;o<=l;o++)s+='<li rel="tooltip" title="Trang '+o+" / "+c+'" class="'+(o==u?"active":"")+'"><a href="javascript:;" onclick="'+(o==u?"":r+"("+e+","+o+");return false;")+'">'+o+"<\/a><\/li>";s+='<li><a href="javascript:;" onclick="'+r+"("+e+","+v+');return false;"><i class="icon-angle-right"><\/i><\/a><\/li>';s+='<li><a href="javascript:;" onclick="'+r+"("+e+","+l+');return false;">&raquo;<\/a><\/li>'}s+="<\/ul>";$("#"+n).html(s)}else $("#"+n).html("");i<f?$("#"+t).html("[ Đang hiển thị: 1-"+i+" của "+i+" ]"):u==1?$("#"+t).html("[ Đang hiển thị: 1-"+f+" của "+i+" ]"):$("#"+t).html("[ Đang hiển thị: "+((u-1)*f+1)+"-"+(u*f>i?i:u*f)+" của "+i+" ]")};Core.parseJsonDate=function(n){var i,r,u,f,e,t;return i=n.replace(/\D/g,""),t=new Date(parseInt(i)),r=t.getFullYear(),u=pad(t.getMonth()+1),f=pad(t.getDate()),e=pad(t.getHours()),minutes=pad(t.getMinutes()),f+"/"+u+"/"+r+" "+e+":"+minutes};validates={regExForEmail:/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]{2,4}$/,isUndefined:function(n){return typeof n=="undefined"?!0:!1},isPhone:function(n){var i=!1,t;return n=n.replace("(+84)","0"),n=n.replace("+84","0"),n=n.replace("0084","0"),n=n.replace(/ /g,""),n!=""&&(t=n.substring(0,2),(t=="03"||t=="05"||t=="07"||t=="08"||t=="09")&&n.length==10?n.match(/^\d{10}/)&&(i=!0):t=="01"&&n.length==11&&n.match(/^\d{11}/)&&(i=!0)),i},isEmail:function(n){return(n=n.trim(),n.search(this.regExForEmail)!=-1)?!0:!1},isIdno:function(n){return(n=n.trim(),isNaN(n)||n.length>12||n.length<9)?!1:!0},parseInt:function(n){return(n=parseInt(n),isNaN(n))?0:n}};alertType.alertDanger={css:"alert-danger",icon:"icon fa fa-ban"};alertType.alertInfo={css:"alert-info",icon:"icon fa fa-ban"};alertType.alertWarning={css:"alert-warning",icon:"icon fa fa-warning"};alertType.alertSuccess={css:"alert-success",icon:"icon fa fa-check"};$.fn.coreAlert=function(n,t,i,r){var u,f;(r=r==null?alertType.alertInfo:r,u='<div class="alert '+r.css+' alert-dismissable alert-small fade in">',u+='<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;<\/button>',t!=null&&t!=""&&(u+='<h4>\t<i class="'+r.icon+'"><\/i> '+t+"!<\/h4>"),u+=n,u+="<\/div>",this.append(u),f=this.find(".alert").on("closed.bs.alert",function(){$(this).remove()}).alert(),i!=-1)&&setTimeout(function(){f.alert("close")},i==null||i==0?3e3:i)};Core.formatFileSize=function(n){if(n==0)return"0.00 B";var t=Math.floor(Math.log(n)/Math.log(1024));return(n/Math.pow(1024,t)).toFixed(2)+" "+" KMGTP".charAt(t)+"B"};Core.popup=function(n,t,i,r){var u=i==null?800:i,f=r==null?600:r,o=screen.width/2-u/2,s=screen.height/2-f/2,h="width="+u+",height="+f+",top="+s+",left="+o,e=window.open(n,"popUp",h);return t&&t.preventDefault(),window.focus&&e.focus(),e};Core.reloadPage=function(n){setTimeout(function(){window.location.reload()},2e3);Core.showSuccessAutoClose(n,"success",2e3)};Core.showConfirmMessage=function(n,t){swal({title:n,type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Có",closeOnConfirm:!1},t)};Core.showSuccessAutoClose=function(n,t,i){swal({title:n,type:t,timer:i,closeOnConfirm:!1,showConfirmButton:!1})};Core.showAlert=function(n,t){swal({title:n,type:t})};Core.alert=function(n,t){CoreAlert(n,t)};Core.confirm=function(n,t,i){CoreAlertConfirm(n,t,i)};defaultTables={bServerSide:!0,aaSorting:[],lengthMenu:[[10,25,50,100],[10,25,50,100]],language:{emptyTable:"Không có dữ liệu",info:"Hiển thị _START_ đến _END_ trong tổng số _TOTAL_ bản ghi",infoEmpty:"",infoFiltered:"(filtered from _MAX_ total entries)",infoPostFix:"",thousands:",",lengthMenu:"Hiển thị _MENU_ bản ghi",loadingRecords:"Đang tải",processing:"Đang xử lý",search:"Tìm kiếm <b class='badge badge-danger'>(Nhấn ENTER)<\/b>:",zeroRecords:"Không bản ghi được tìm thấy",paginate:{first:"Đầu",last:"Cuối",next:"Tiếp",previous:"Trước"},aria:{sortAscending:": Giảm dần",sortDescending:": Tăng dần"}},oSearch:{sSearch:getQueryString("SearchText")},fnCreatedRow:function(n,t){$(n).attr("data-id",t.Id)},fnRowCallback:function(n,t){t.Mau&&$("td",n).css("background-color",t.Mau)}};$.fn.RemoveUnicode=function(){return Core.RemoveUnicode($(this).val())};Core.RemoveUnicode=function(n){return n=n.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a"),n=n.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"),n=n.replace(/ì|í|ị|ỉ|ĩ/g,"i"),n=n.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"),n=n.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"),n=n.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"),n=n.replace(/đ/g,"d"),n=n.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-"),n=n.replace(/-+-/g,"-"),n.replace(/^\-+|\-+$/g,"")};Core.CreateId=function(n){return Core.RemoveUnicode(n)};Core.GetSlug=function(){var n=$("#Ten").val();$("#Id,#Code").val(Core.CreateId(n))};var msec=0,sec=0,min=0,goTimeLoading=null;toastr.options={closeButton:!1,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-bottom-left",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};$.fn.serializeData=function(){var n=$("<form>");return JSON.stringify(n.append(this.html()).serializeArray())};$.fn.getValue2s=function(n){var r={},t,i;return(n==undefined||n==null)&&(n=""),t=this.find("input[type='text'][name], input[type='hidden'][name], input[type='password'][name], select[name], textarea[name]"),n!=""&&(t=t.filter(function(){return $(this).parents(n).length==0})),t.each(function(){r[$(this).attr("name")]=$(this).val()}),i=this.find("select[name]"),n!=""&&(i=i.filter(function(){return $(this).parents(n).length==0})),i.each(function(){r[$(this).attr("name")]=Enumerable.From($(this).find(":selected")).Select(function(n){return $(n).attr("value")}).ToString(",")}),r};$.fn.getValues=function(){this.find("input[type=checkbox]").each(function(){var n=$(this).attr("name");$(this).is(":checked")?$(this).val(!0):$(this).val(!1)});var n={};return this.find("input[name],select[name],textarea[name]").each(function(){n[$(this).attr("name")]=$(this).val()}),this.find("input[type=checkbox]").each(function(){n[$(this).attr("name")]=$(this).is(":checked")}),this.find("input[sname],select[sname],textarea[sname]").each(function(){n[$(this).attr("sname")]=$(this).val()}),this.find("span[name][type='datepicker']").each(function(){n[$(this).attr("name")]=$(this).find("input").val()}),this.find("ul[name][type='listcheckbox']").each(function(){var t="";$(this).find("input[type='checkbox']:checked").each(function(){t+=this.value+","});n[$(this).attr("name")]=t}),n};$.fn.fillForm=function(n,t){var i,r,u,f,e;t==null&&(t=!0);for(i in n)this.find("input[type='hidden'][name='"+i+"'],input[type='text'][name='"+i+"']:not([data-type-date]),input[type='password'][name='"+i+"'],input[type='number'][name='"+i+"'], textarea[name='"+i+"']").val(n[i]),this.find("select[name='"+i+"']").val(n[i]).trigger("chosen:updated"),this.find("input[type='checkbox'][name='"+i+"']:not([data-group])").attr("checked",n[i]),r=this.find("input[type='checkbox'][name='"+i+"'][data-group]"),r.length>0&&n[i]!=null&&Enumerable.From(r).Join(n[i].split(","),"jQuery($).attr('data-value')","","$i,$o => jQuery($i).attr('checked',true)").Count(),u=this.find("[data-name='"+i+"'] input[type='text'][data-type-date]"),u.length>0&&u.val(Core.formatDate(n[i])),f=this.find("[data-name='"+i+"'] input[type='text'][data-type-time-indate]"),f.length>0&&f.val(Core.formatTime2(n[i])),e=this.find("input[type='text'][name='"+i+"'][data-type-time]"),e.length>0&&e.val(Core.formatTime(n[i]));return t?this.initInput():this};Core.initTable=function(){Core.isZMobile()&&$(".hideMobile").hide();$(".clipboard").click(function(){copyTextToClipboard(this)});$(".popoverh").popover({trigger:"hover"});$("[data-poload]").click(function(n){n.preventDefault();var t=$(this);t.popover({content:'<i class="fa fa-spinner fa-spin"><\/i> Đang tải',html:!0,placement:"left",container:"body",title:t.data("title")+'<button onclick="$(this).parent().parent().hide();" type="button" class="close" aria-hidden="true">&times;<\/button>',trigger:"manual"});t.popover("show");$.get(t.data("poload"),function(n){t.data("bs.popover").options.content=n;t.popover("show")});t.on("show.bs.popover",function(){$(this).data("bs.popover").tip().css("max-width","600px")});t.on("shown.bs.popover",function(){$(this).data("bs.popover").tip().find("[data-rel=tooltip]").tooltip({container:"body"})})});$(".dataTables").find("[data-rel=tooltip]").tooltip({container:"body"});$("img").on("error",function(){$(this).attr("src","/Content/images/noimg.jpg")});$("#UserName, #Id, #ID").on("input",function(){$(this).val($(this).val().replace(/[^a-zA-Z0-9]/g,""))})};$.fn.initInput=function(){$("#UserName, #Id, #ID").on("input",function(){$(this).val($(this).val().replace(/[^a-zA-Z0-9]/g,""))});if(typeof autosize=="function"&&autosize(this.find("textarea[class*=autosize]")),this.find(".clipboard").click(function(){copyTextToClipboard(this)}),this.find(".popoverh").popover({trigger:"hover"}),typeof $.fn.mask=="undefined"&&$.fn.mask&&($.mask.definitions["~"]="[+- ]",this.find(".time").mask("99:99"),this.find(".date-picker,.input-mask-date, .date").mask("99/99/9999"),this.find("input[id=TuNgayDenNgay]").mask("99/99/9999 - 99/99/9999")),$(window).resize(function(){Core.isZMobile()?$(".hideMobile").hide():$(".hideMobile").show()}),$.fn.tooltip&&this.find("[data-rel=tooltip]").tooltip({container:"body"}),$.fn.popover&&$('[data-toggle="popover"]').popover(),this.find(".date,.date-picker").datepicker({todayBtn:"linked",calendarWeeks:!0,autoclose:!0,clearBtn:!0,format:"dd/mm/yyyy",language:"vi",daysOfWeekHighlighted:"0",todayHighlight:!0}),this.find(".date-range").datepicker({toggleActive:!0,format:"dd/mm/yyyy",language:"vi"}),$.fn.autoNumeric){var n=this;$.each([{sel:".numeric,.dec",opts:{mDec:0,aSep:",",aDec:"."}},{sel:".numeric1,.dec1",opts:{mDec:1,aSep:",",aDec:"."}},{sel:".numeric2,.dec2",opts:{mDec:2,aSep:",",aDec:"."}},{sel:".integer,.int",opts:{mDec:0,aSep:",",aDec:"."}}],function(t,i){n.find(i.sel).each(function(){var n=$(this);this.tagName==="INPUT"&&this.type==="number"&&n.attr("type","text").attr("inputmode","decimal").val(n.val());n.autoNumeric("init",i.opts)})})}$.fn.select2&&this.find(".select2").select2({});$("img").on("error",function(){$(this).attr("src","/Content/images/noimg.jpg")})};jQuery(document).ready(function(n){var t=new URL(window.location.href);t.searchParams.get("utm_source")!=null&&setCookie("utm_source",t.searchParams.get("utm_source"),30);t.searchParams.get("utm_medium")!=null&&setCookie("utm_medium",t.searchParams.get("utm_medium"),30);t.searchParams.get("utm_campaign")!=null&&setCookie("utm_campaign",t.searchParams.get("utm_campaign"),30);t.searchParams.get("utm_content")!=null&&setCookie("utm_content",t.searchParams.get("utm_content"),30);typeof n.fn.mask=="undefined"&&n.fn.mask&&(n.mask.definitions["~"]="[+- ]",n(".time").mask("99:99"),n(".date-picker,.input-mask-date, .date").mask("99/99/9999"),n("input[id=TuNgayDenNgay]").mask("99/99/9999 - 99/99/9999"));n.fn.datepicker&&jQuery(".date,.date-picker").datepicker({todayBtn:"linked",calendarWeeks:!0,autoclose:!0,todayHighlight:!0,format:"dd/mm/yyyy"});typeof autosize=="function"&&autosize(n("textarea[class*=autosize]"));n(".clipboard").click(function(){copyTextToClipboard(this)});n(".popoverh").popover({trigger:"hover"});n.fn.tooltip&&n("[data-rel=tooltip]").tooltip({container:"body"});n.fn.autoNumeric&&(n(".numeric,.dec").each(function(){var t=n(this);this.tagName==="INPUT"&&this.type==="number"&&t.attr("type","text").attr("inputmode","decimal").val(t.val());t.autoNumeric("init",{mDec:2,aSep:",",aDec:"."})}),n(".integer,.int").each(function(){var t=n(this);this.tagName==="INPUT"&&this.type==="number"&&t.attr("type","text").attr("inputmode","decimal").val(t.val());t.autoNumeric("init",{mDec:0,aSep:",",aDec:"."})}));n.fn.select2&&n(".select2, .select-category").select2({});n("#UserName, #Id, #ID").on("input",function(){n(this).val(n(this).val().replace(/[^a-zA-Z0-9]/g,""))});n("body").on("click",".DatMua",function(){var t,i,r,u;if(Core.Id=n(this).data("id"),n("body").find(".product_tiem_options").addClass("hide"),n("body").find(".product_tiem_option").removeClass("selected"),t=n(this).closest(".item_"+Core.Id),i=t.find(".add-to-cart").data("variants"),i.length>0){r=t.find(".product_tiem_options");u=r.first();u.removeClass("hide");return}n.get("/GioHang/AddCart",{id:Core.Id,quantity:1,phienBanId:""},function(){ReURL("/GioHang")})});n("body").on("click",".product_tiem_option",function(){var e=n(this).closest(".item_"+Core.Id),o=e.find(".add-to-cart").data("variants"),s=n(this).closest(".product_tiem_options"),u=s.next(),h=n(this).attr("data-index"),f,i;if(n("button[data-index="+h+"]").removeClass("selected"),n(this).addClass("selected"),n("body").find(".product_tiem_options").addClass("hide"),u.text()!="")u.removeClass("hide");else{f=n(this).closest(".item_"+Core.Id).find(".selected[data-index]");i={};f.map(function(t,r){r=n(r);var u=r.attr("key");i[u]=r.val()});var r=void 0,c=Object.values(i),t="";c.forEach(function(n,i){t=i===0?n:t+""+n});r=o.find(function(n){var i=n.Name;return i=i.replace(/\//g,""),i=i.replace(/ /g,""),i=i.trim(),i==t?n:void 0});console.log(r,"currentVariant");n.get("/GioHang/AddCart",{id:Core.Id,quantity:1,phienBanId:r.Id},function(){ReURL("/GioHang")})}});n("img").on("error",function(){n(this).attr("src","/Content/images/noimg.jpg")});n("body").on("submit",".ajax-forms",function(t){var e,o,s;t.preventDefault();var r=n(this),h=r.attr("action"),i=r.find('button[type="submit"]'),f=r.find("#notifications-error"),u=r.find("#notifications-success");if(r.find(".js_hidden-section").length>0&&!r.find(".js_hidden-section").is(":visible")){r.find(".js_hidden-section").slideDown();return}i.data("text",i.html());i.prop("disabled",!0);i.html('<i class="fa fa-spinner fa-spin"><\/i> Hệ thống đang xử lý');n("input[type=checkbox]").each(function(){var t=n(this).attr("name");n(this).is(":checked")?n(this).val(!0):n(this).val(!1)});e=n(this).serialize();o=n(this).find("input[type=checkbox]:not(:checked)").map(function(){return encodeURIComponent(this.name)+"=false"}).get().join("&");o&&(e+="&"+o);s=n(this).find("img[type=data]").map(function(){return encodeURIComponent(this.name)+"="+this.src}).get().join("&");s&&(e+="&"+s);n.post(h,e,function(n){i.prop("disabled",!1);i.html(i.data("text"));n.Success?n.Success&&(f.is(":visible")&&f.hide(),u.html(n.Message).slideDown(),toastr.success(n.Message)):(u.is(":visible")&&u.hide(),f.html(n.Message).slideDown(),toastr.error(n.Message));n.JavaScript&&eval(n.JavaScript)},"json").fail(function(){i.prop("disabled",!1);i.html(i.data("text"));u.is(":visible")&&u.hide();f.html("Có một số lỗi tại hệ thống!").slideDown();toastr.error("Có một số lỗi tại hệ thống!")})});n("body").find("table th input:checkbox").on("click",function(){var t=this;n(this).closest("table").find("tr > td:first-child input:checkbox").each(function(){this.checked=t.checked;n(this).closest("tr").toggleClass("selected")})})});var navbar=$(".navbar"),navbarHeight=navbar.height()||1,sectionHeader=$(".section-header"),sectionHeaderHasButtons=undefined;$(window).on("scroll resize",function(){if(sectionHeaderHasButtons===undefined&&(sectionHeaderHasButtons=sectionHeader.find(".options").children().length>0),sectionHeaderHasButtons===!0){var n=$(this).scrollTop();sectionHeader.toggleClass("sticky",n>=navbarHeight+30)}}).trigger("resize");click_sound=document.getElementById("sClick"),function(){var n=window.location.href,i="utm_source,utm_campaign,utm_content,utm_term,utm_medium".split(","),r=getParameter("utm_source",n),u=getParameter("utm_campaign",n),f=getParameter("utm_content",n),e=getParameter("utm_term",n),o=getParameter("utm_medium",n),s=getParameter("ref",n),t;if(s!=!1&&setCookie("_cRef",getParameter("ref",n),365),r!=!1||u!=!1||f!=!1||e!=!1||o!=!1)for(t=0;t<i.length;t++)setUtmCookie(i[t],getParameter(i[t],n))}(jQuery);mangso=["không","một","hai","ba","bốn","năm","sáu","bảy","tám","chín"];arrKey=["page","q","mh","pc","p"];$(document).ready(function(){var n=get_utm_url();$(".TheoDoiAds").click(function(){var n=$(this),t=n.attr("href"),i=n.data("type"),r=typeof TTourID!="undefined"?TTourID:"",u=typeof TChuyenMucId!="undefined"?TChuyenMucId:"";$.ajax({url:"/Home/TrackAdsClick",type:"POST",data:{href:t,dataType:i,tourId:r,chuyenMucId:u,url:window.location.href},success:function(){console.log("Đã ghi nhận click ads thành công")},error:function(n,t,i){console.log("Lỗi khi ghi nhận click ads: "+i)}})})})