function setTagsItem(n,t){checkAllTagsItem[n]=checkAllTagsItem[n]||[];checkAllTagsItem[n].push(t)}function ajaxSubmit(n,t){var i,r,u;if(!validator.checkForm(n))return!1;if(i=$("#"+n),!i)return window.alert("form not found: "+n),!1;r=$(i).serialize();u=$(i).attr("action");ajax(r,t,u)}function ajax(n,t,i){$.until.postJSON({url:i||document.location.href,data:n,showErrorDefault:!0,showloading:{obj:$("body"),mask:!0},success:t})}function popMessage(n,t){var i=!1;i=typeof t=="undefined"||t==null?!1:!0;i?$.modaldialog.success(n,{width:325}):$.modaldialog.error(n,{width:325})}function gotoAnchor(n){var t=window.location.hash,i;t&&(n(t),i=$(t).offset().top,$(window).scrollTop(i))}function removeThousandSign(n){$("#"+n).blur(function(){return $(this).val($(this).val().replace(/[,\s]/g,""))})}function showCalendar(n,t,i){n=="From"&&i!="prom"?(ReportDateFromCalendar(n,n),$("#"+t).length>0&&ReportDateFromCalendar(n,t)):(BuildCalendar(n,n),$("#"+t).length>0&&BuildCalendar(n,t))}function BuildCalendar(n,t){Calendar.setup({inputField:n,trigger:t,bottomBar:!0,weekNumbers:!0,dateFormat:"%d/%m/%Y",showTime:!1,onSelect:function(){this.hide()}})}function showDateLimitCalendar(n,t){DateLimitCalendar(n,n);$("#"+t).length>0&&DateLimitCalendar(n,t)}function DateLimitCalendar(n,t){Calendar.setup({inputField:n,trigger:t,bottomBar:!1,weekNumbers:!0,dateFormat:"%d/%m/%Y",showTime:!1,max:getMaxDate(),onSelect:function(){this.hide()}})}function getMaxDate(){var i=(new Date).getTime()+-567648e6,n=new Date,t;return n.setTime(i),t=n.getFullYear()+""+(1+n.getMonth())+""+n.getDate(),parseInt(Number(t))}function ReportDateFromCalendar(n,t){Calendar.setup({inputField:n,trigger:t,bottomBar:!1,weekNumbers:!0,dateFormat:"%d/%m/%Y",showTime:!1,min:getReportMinDate(),onSelect:function(){this.hide()}})}function getReportMinDate(){var n=new Date,t;return n.setMonth(n.getMonth()-3),t=n.getFullYear()+""+formatMonth(1+n.getMonth())+""+n.getDate(),parseInt(Number(t))}function formatMonth(n){var t=n.toString();return t.length<2&&(t="0"+t),t}function DateLimitPicker(n){var t=new Date,i=t.getFullYear(),r=t.getMonth()+1,u=t.getDate();$("#"+n).datepicker({showOn:"both",buttonImage:"/Css/Images/share/Calendar.gif",buttonImageOnly:!0,changeMonth:!0,changeYear:!0,hideIfNoPrevNext:!0,showMonthAfterYear:!0,yearRange:"-100:+0",dateFormat:"dd/mm/yy",minDate:"01/01/"+(i-100),maxDate:u+"/"+r+"/"+(i-18)})}function showTimePicker(n,t){$("#"+t).click(function(t){$("#"+n).AnyTime_noPicker().AnyTime_picker(dateAndTime).focus();t.preventDefault()})}function toPagerHtml(n){var o=4,i=n.PageNo,r=0,h=n.PageSize,s=n.ResultCount,t="",f,e,u;if(s<=0&&(i=1,r=0),r=Math.ceil(s/h),i>r&&(i=r),r==0)return"";for(f=i-o,e=i+o,f<1&&(f=1),e>r&&(e=r),r<=o*2&&(f=1,e=r),u=f;u<=e;u++)t=u==i?t+'<a class="p_current ui-btn ui-btn-inline ui-state-disabled">'+u+"<\/a>":t+'<a href="javascript:TurnPage('+u+');" class=" ui-btn ui-btn-inline">'+u+"<\/a>";return t=i-1>=1?'<a  href="javascript:TurnPage('+(i-1)+');" class="p_prev ui-btn ui-btn-inline"><\/a>'+t:'<a class="p_prev ui-btn ui-btn-inline ui-state-disabled"><\/a>'+t,t=i+1<=r?t+'<a  href="javascript:TurnPage('+(i+1)+');" class="p_next ui-btn ui-btn-inline"><\/a>':t+'<a class="p_next ui-btn ui-btn-inline ui-state-disabled"><\/a>',t=i>1?'<a href="javascript:TurnPage(1);" class="p_first ui-btn ui-btn-inline"><\/a>'+t:'<a class="p_first ui-btn ui-btn-inline ui-state-disabled"><\/a>'+t,t=i<r?t+'<a href="javascript:TurnPage('+r+');" class="p_last ui-btn ui-btn-inline"><\/a>':t+'<a class="p_last ui-btn ui-btn-inline ui-state-disabled"><\/a>','<div class="pageList"><fieldset class="datebox" data-role="controlgroup"  data-type="horizontal" data-mini="true">'+t+"<\/div><\/fieldset>"}function toHtml(n){var o=4,i=n.PageNo,r=0,h=n.PageSize,s=n.ResultCount,t="",f,e,u;if(s<=0&&(i=1,r=0),r=Math.ceil(s/h),i>r&&(i=r),r==0)return"";for(f=i-o,e=i+o,f<1&&(f=1),e>r&&(e=r),r<=o*2&&(f=1,e=r),u=f;u<=e;u++)t=u==i?t+'<a class="p_current">'+u+"<\/a>":t+'<a href="javascript:TurnPage('+u+');">'+u+"<\/a>";return t=i-1>=1?'<a href="javascript:TurnPage('+(i-1)+');" class="p_prev"><em>Prev<\/em><\/a>'+t:'<a class="p_prev"><em>Prev<\/em><\/a>'+t,t=i+1<=r?t+'<a href="javascript:TurnPage('+(i+1)+');" class="p_next"><em>Next<\/em><\/a>':t+'<a class="p_next"><em>Next<\/em><\/a>',t=i>1?'<a href="javascript:TurnPage(1);" class="p_first"><em>First<\/em><\/a>'+t:'<a class="p_first"><em>First<\/em><\/a>'+t,t=i<r?t+'<a href="javascript:TurnPage('+r+');" class="p_last"><em>Last<\/em><\/a>':t+'<a class="p_last"><em>Last<\/em><\/a>','<div class="pageList">'+t+"<\/div>"}function htmlSpecialChars(n){var t="",i;if(n.length==0)return"";for(i=0;i<n.length;i++)switch(n.substr(i,1)){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case" ":t+="&nbsp;";break;case"'":t+="&#39;";break;case'"':t+="&quot;";break;case"\n":t+="<br>";break;default:t+=n.substr(i,1)}return t}function dateString(n){if(typeof n=="undefined"||n==null)return"";var t=dateValueOf(n);return typeof t=="undefined"||t==null?"":t.dateFormat("d/m/Y")}function dateTimeString(n){if(typeof n=="undefined"||n==null)return"";var t=dateValueOf(n);return typeof t=="undefined"||t==null?"":t.dateFormat("d/m/Y H:i:s")}function dateValueOf(n){var i=typeof n,t;if(i=="number")return new Date(n);try{return t=n.replace("T"," "),Date.parseDate(t,"Y-m-d H:i:s")}catch(r){}return t=n.replace("/Date(","").replace(")/",""),new Date(parseInt(t))}function checkSMSContent(n){return/<[a-zA-Z]+|[\{\}\|]+/g.test(n)}function removeSign(n){return n.replace(/,/g,"")}function TimeString(n){if(typeof n=="undefined"||n==null)return"";var t=dateValueOf(n);return typeof t=="undefined"||t==null?"":t.dateFormat("Y-m-d H:i:s")}function GetTimeDiff(n,t){n=n.replace(/\-/g,"/");t=t.replace(/\-/g,"/");var i=new Date(n),r=new Date(t);return parseInt(r.getTime()-i.getTime())}function base64encode(n){var t,i,f,r,u,e;for(f=n.length,i=0,t="";i<f;){if(r=n.charCodeAt(i++)&255,i==f){t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4);t+="==";break}if(u=n.charCodeAt(i++),i==f){t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4|(u&240)>>4);t+=base64EncodeChars.charAt((u&15)<<2);t+="=";break}e=n.charCodeAt(i++);t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4|(u&240)>>4);t+=base64EncodeChars.charAt((u&15)<<2|(e&192)>>6);t+=base64EncodeChars.charAt(e&63)}return t}function base64decode(n){var o,e,i,r,t,f,u;for(f=n.length,t=0,u="";t<f;){do o=base64DecodeChars[n.charCodeAt(t++)&255];while(t<f&&o==-1);if(o==-1)break;do e=base64DecodeChars[n.charCodeAt(t++)&255];while(t<f&&e==-1);if(e==-1)break;u+=String.fromCharCode(o<<2|(e&48)>>4);do{if(i=n.charCodeAt(t++)&255,i==61)return u;i=base64DecodeChars[i]}while(t<f&&i==-1);if(i==-1)break;u+=String.fromCharCode((e&15)<<4|(i&60)>>2);do{if(r=n.charCodeAt(t++)&255,r==61)return u;r=base64DecodeChars[r]}while(t<f&&r==-1);if(r==-1)break;u+=String.fromCharCode((i&3)<<6|r)}return u}function utf16to8(n){var i,r,u,t;for(i="",u=n.length,r=0;r<u;r++)t=n.charCodeAt(r),t>=1&&t<=127?i+=n.charAt(r):t>2047?(i+=String.fromCharCode(224|t>>12&15),i+=String.fromCharCode(128|t>>6&63),i+=String.fromCharCode(128|t>>0&63)):(i+=String.fromCharCode(192|t>>6&31),i+=String.fromCharCode(128|t>>0&63));return i}function utf8to16(n){var i,t,f,r,u,e;for(i="",f=n.length,t=0;t<f;){r=n.charCodeAt(t++);switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:i+=n.charAt(t-1);break;case 12:case 13:u=n.charCodeAt(t++);i+=String.fromCharCode((r&31)<<6|u&63);break;case 14:u=n.charCodeAt(t++);e=n.charCodeAt(t++);i+=String.fromCharCode((r&15)<<12|(u&63)<<6|(e&63)<<0)}}return i}function bindCurrencyList(n){var r=n.List,t=[],i=$.cookie("language").toLocaleLowerCase();r.length<1?t.push("<option value=''>No Currency<\/option>"):$.each(r,function(n,r){(i=="en-us"||i=="id-id")&&r.CurrId=="IDR"?t.push("<option value="+r.CurrId+" selected='selected'>"+r.CurrId+"<\/option>"):i=="zh-cn"&&r.CurrId=="CNY"?t.push("<option value="+r.CurrId+" selected='selected'>"+r.CurrId+"<\/option>"):t.push("<option value="+r.CurrId+">"+r.CurrId+"<\/option>")});$("#FirstCurrId").html(t.join(""))}function isNullOrWhitespace(n){return typeof n=="undefined"||n==null?!0:n.replace(/\s/g,"").length<1}function searchDropdawn(n,t){var f,u,e,r,o,i;for(f=document.getElementById(n),u=f.value.toUpperCase(),e=document.getElementById(t),r=e.getElementsByTagName("li"),i=0;i<r.length;i++)o=r[i],r[i].style.display=o.innerHTML.toUpperCase().substring(0,u.length)==u?"":"none"}function CheckSysState(){$.until.postJSON({url:culture+"/Base/CheckState?"+Math.random(),success:function(n){n.System==4&&(document.location.href=culture+"/Home/Maintenance")},error:function(n){window.console.log(n.Msg)}})}function showMaskByDivID(n){$("#dialog-mask").css("display","block");$("#"+n).css("display","block");n=="logRegModal"&&checkinputvalueisnotnull()}function hideMaskByDivID(n){$("#dialog-mask").css("display","none");$("#"+n).css("display","none")}function popMember(n){var t=953,i=(screen.availWidth-t)/2,r="width="+t+"px,height=685px,left="+i+"px,top=50px,scrollbars=yes,resizable=yes";memberWin=window.open(n,"Member",r);memberWin.focus();$(document).on("click","#LooutButton",function(){memberWin.close()});return!1}function popUserInfo(n){var t=780,i=(screen.availWidth-t)/2,r="width="+t+"px,height=548px,left="+i+"px,top=50px,scrollbars=yes,resizable=yes";return UserInfoWin=window.open(n,"UserInfo",r),UserInfoWin.focus(),!1}function popHelp(n){var t=920,i=(screen.availWidth-t)/2,r="width="+t+"px,height=695px,left="+i+"px,top=50px,scrollbars=yes,resizable=yes";return HelpWin=window.open(n,"HelpWin",r),HelpWin.focus(),!1}function popLiveChat(n){var t=475,i=(screen.availWidth-t)/2,r="width="+t+"px,height=465px,left="+i+"px,top=50px,scrollbars=yes,resizable=yes";return chat=window.open(n,"LiveChat",r),chat.focus(),!1}function ShareThis(n,t,i){if(n!=null&&n!=""){for(var r in shareico)if(r==n){shareurl=shareico[r];break}surl=t==null||t==""?n.length>5?shareurl.replace("{title}",escape(title)):shareurl.replace("{title}",encodeURI(title)):n.length>5?shareurl.replace("{title}",escape(t)):shareurl.replace("{title}",encodeURI(t));surl=i==null||i==""?surl.replace("{url}",url):surl.replace("{url}",i);window.open(surl)}}function ApiPost(n,t,i,r){r&&$(".wait_icon").eq(0).show();axios({method:"post",url:n,data:t,responseType:"json"},{headers:{__RequestVerificationToken:$("#hdnAntiForgeryTokens").val()}}).then(function(n){if(n.data.Code>0||n.data.Code==-1){n.data.Message?popMessage(n.data.Message):popMessage(n.data.Msg);n.data.Code==6&&($("#dialog-close").bind("click",function(){window.location.href="/"}),$("#dialog-mask").bind("click",function(){window.location.href="/"}));$(".wait_icon").hide();return}i(n);$(".wait_icon").hide()}).catch(function(n){n.response.status===403?window.location.replace("/"):(console.log(n),$(".wait_icon").hide())})}function AjaxPost(n,t,i,r,u){u==null&&(u=!0);u&&$(".wait_icon").show();var f=$("#hdnAntiForgeryTokens").val(),e={__RequestVerificationToken:f};$.ajax({url:n,type:"POST",async:t,dataType:"json",headers:e,data:i,success:function(n){if(n.code>0){popMessage(n.msg);return}r(n);$(".wait_icon").hide()},error:function(){$(".wait_icon").hide()},cache:!1})}function QueryMainWallet(){var i=$("#hdnAntiForgeryTokens").val(),n={},t;n.__RequestVerificationToken=i;t={providerId:"-"};$.until.log("start:QueryMainWallet");$.until.postJSON({url:culture+"/Account/GetBalance",data:t,headers:n,debug:!0,success:function(n){n!=null&&($("#lbAmount").html(_Float.toSpecial(n,2,!1)),$.local.setLocalData("userinfo",$.parseJSON(""+n.UserInfo),6e5))},error:function(){$.until.log("start:stopQueryMainWallet");$(document).stopTime("IndexQueryWallet")}})}function PressQueryMainWallet(){var n,t,i;isReqBalance||in1Sec||(isReqBalance=!0,in1Sec=!0,$("#lbAmount").css("cursor","wait"),setTimeout(function(){in1Sec=!1;$("#lbAmount").css("cursor","")},1e3),n=$("#lbAmount").html().split("&nbsp;")[0],t=$("#lbAmount").html().split("&nbsp;")[1],$("#lbAmount").html('<img src="/Content/Web/common/images/wait_load.gif" alt="" hight="15px" width="15px">'),i={ProviderId:"-"},axios({method:"post",url:"/api/Account/GetBalance",data:i,responseType:"json"},{headers:{__RequestVerificationToken:$("#hdnAntiForgeryTokens").val()}}).then(function(i){var r,u,f,e;if(isReqBalance=!1,i.data.Code>0||i.data.Code==-1){i.data.Message?popMessage(i.data.Message):popMessage(i.data.Msg);i.data.Code==6&&($("#dialog-close").bind("click",function(){window.location.href="/"}),$("#dialog-mask").bind("click",function(){window.location.href="/"}));return}if(r="sessionStorage"in window&&window.sessionStorage,r)try{u="IcBalance";sessionStorage.setItem(u,JSON.stringify({timestamp:new Date,balance:i.data.Data.Balance}))}catch(o){console.log(o)}f=i.data.Data.Balance;e=$(t).text(_Float.toSpecial(f,2,!1));$("#lbAmount").html(n.concat("&nbsp;",e[0].outerHTML))}).catch(function(n){isReqBalance=!1;console.log(n)}))}function PressQueryWallet(){var n=$("#lbAmount").html().split("&nbsp;")[0],t=$("#lbAmount").html().split("&nbsp;")[1];$("#lbAmount").html('<img src="/Content/Web/common/images/wait_load.gif" alt="" hight="15px" width="15px">');ApiPost("/api/Account/GetWalletBalance",{},function(i){var r=i.data.Data.Balance,u=$(t).text(_Float.toSpecial(r,2,!1));$("#lbAmount").html(n.concat("&nbsp;",u[0].outerHTML))},!1)}function randomizator(n,t){var i=Math.ceil(n),r=Math.floor(t);return Math.floor(Math.random()*(r-i))+i}function checkinputvalueisnotnull(){$("#logRegModal input").each(function(){var n=$(this);n.val()&&$("label[for='"+this.id+"']").addClass("active")})}function reCheckReferral(n){var t=culture+"/Base/SupportReferral";$.ajax({url:t,async:!1,type:"GET",success:function(t){var i=t.split(",");i.indexOf(n)<0?$('[data-area="ReferralId"]').hide():$('[data-area="ReferralId"]').show()},error:function(){}})}function AppendComma(n,t){var u,i,r,f;if(n==0||n=="0")return 0;if(t){if(u=/^\d+([\.]\d{0,2})?$/.test(n),u&&!Number(n))return n.slice(0,-1)}else if(/^((\d+)|(0))$/.test(n))if(i=/^((\d+)|(0))$/.exec(n),i!=null)if(parseInt(i,10))n=parseInt(i,10).toString();else return n.slice(0,-1);else return n.slice(0,-1);else return n.toString().slice(0,-1);return n+="",r=n.split("."),f=/(\d{1,3})(?=(\d{3})+$)/g,r[0].replace(f,"$1,")+(r.length>=2?"."+r[1]:"")}function RemoveComma(n){return n.toString().replace(/[,]+/g,"")}function AdjustComma(n,t){var i=RemoveComma($.trim($(n).val()));/\b(0+)/gi.test(i)?(i=i.replace(/\b(0+)/gi,""),$(n).val(AppendComma(i,t))):$(n).val(AppendComma(i,t))}function TextBoxNumberToAddComma(){$(':input[type=text][data-comma="true"]').each(function(n,t){$(t).blur(function(){$(t).attr("data-point")=="true"?AdjustComma(this,!0):AdjustComma(this,!1)}).keyup(function(){$(t).attr("data-point")=="true"?AdjustComma(this,!0):AdjustComma(this,!1)})})}function showRealMoneyWithComma(n){return AppendComma(Number(RemoveComma(n))*1e3)}function checkIsPortable(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function ViewNotice(){var t=$("#hdnAntiForgeryTokens").val(),n={};n.__RequestVerificationToken=t;$.until.postJSON({url:"/api/Home/GetAnnouncement",data:{act:"showNotice"},headers:n,cache:!0,cacheTime:6e5,success:function(n){n.Code==0&&ViewNoticeList(n.Data)}})}function ViewNoticeList(n){var i=n.List,t;if(i.length<1)return!1;t=[];$.each(i,function(n,i){switch($.cookie("language")){case"en-US":isNullOrWhitespace(i.DispEn)||i.DispEn.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispEn);break;case"id-ID":isNullOrWhitespace(i.DispId)||i.DispId.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispId);break;case"zh-CN":isNullOrWhitespace(i.DispCn)||i.DispCn.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispCn);break;case"th-TH":isNullOrWhitespace(i.DispTh)||i.DispTh.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispTh);break;case"vi-VN":isNullOrWhitespace(i.DispVn)||i.DispVn.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispVn);break;case"en-MY":isNullOrWhitespace(i.DispMy)||i.DispMy.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispMy);break;case"ko-KR":isNullOrWhitespace(i.DispKr)||i.DispKr.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispKr);break;default:isNullOrWhitespace(i.DispEn)||i.DispEn.trim()=="-"||t.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+i.DispEn)}});i.length>0&&$("#Notice").html("<marquee scrollamount='3' onMouseOut='this.start()' onMouseOver='this.stop()'>"+t.join("")+"<\/marquee>")}function Experience(n){var r=$(n),o=r.attr("href")?r.attr("href"):r.attr("data"),t=(RegExp("Provider=(.+?)(&|$)").exec(o)||[,null])[1],f=r.attr("position"),u=r.attr("provider-type")==null?"":r.attr("provider-type"),i=window.location.origin+o,e="&ProviderPosition="+f;if(u!==""&&(e=e+"&ProviderType="+u),i+=e,t.indexOf("CMD")>-1||t.indexOf("CDL")>-1||t.indexOf("IBC")>-1||t.indexOf("ICL")>-1)return ckLogin=="FALSE"?(window.open(i,"_blank"),!0):PopupFastTransfer(t,i,f,!1,!1,u);if(t.indexOf("OPUSSPORT")>-1){if(checkgamelogin())return PopupFastTransfer(t,i,f,!1,!1,u)}else if(checkgamelogin())return i.toLocaleLowerCase().indexOf("realmoney=false")>-1?(window.open(i,"_blank"),!0):r.parents("li,div").hasClass("poker")||t==="TX"||t==="TXR"?PopupFastTransfer(t,i,f,!0,!0,u):PopupFastTransfer(t,i,f,!1,!0,u);return!1}function PopupFastTransfer(n,t,i,r,u,f){var o={ProviderId:n,GameUrl:t,Position:i,CheckPlayPoker:r,CheckDeposit:u,Type:f},s,h,c,e,l;if(1){s=[];for(h in o)o.hasOwnProperty(h)&&s.push(encodeURIComponent(h)+"="+encodeURIComponent(o[h]));if(c=new RegExp(/[;#]/),c.test(t))return popMessage(GetResources("Code_70008")),!1;s.push("GameUrl="+encodeURIComponent(t));window.open(culture+"/Account/GameConsole?"+s.join("&"),"AutoTransfer",null,!0).focus()}else e=!1,l="/api/Account/CheckFastTransfer",ApiPost(l,o,function(n){var u,o,s,c,h,r,l,a;if(n.data){if(!n.data.Data.CheckPlayPoker||!n.data.Data.CheckDeposit)return popMessage(n.data.Message),!1;if(n.data.Data.Approve){if(u=n.data.Data.IsAutoTransfer,o=!1,$("#TransferFrom").val("-"),$("#LastTransferFrom").val("-"),$("#TransferTo").val(n.data.Data.ProviderId),$("#LastTransferTo").val(i.concat("-",n.data.Data.ProviderId,"-",f)),$("#TransferToName").html(n.data.Data.ProviderName),$("#GameUrl").val(t),n.data.Data.PromotionList.length>0){o=!0;$("#Promotionli").empty();$("#Promotionli").append(' <li id="NoPromotion" value="">'+GetMessage("NoThanks")+"<\/li>");$.each(n.data.Data.PromotionList,function(n,t){var i="";t.IsCustom&&(i=t.CustomContent);$("#Promotionli").append(' <li data-promotion-rate="'+t.Rate+'" data-max-amt="'+t.MaxAmt+'" data-min-amt="'+t.MinAmt+'" data-times="'+t.Times+'" data-formula="'+i+'" value="'+t.PromoteId+'">'+t.PromoteTitle+"<\/li>")});$("#promotionlistDiv").show();$("#Promotionli > li").off("click");$("#Promotionli > li").on("click",function(){var t=$(this).attr("value"),n;$("#PromoteId").val(t);$("#PromotionName").text($(this).html());$("#PromoteId").attr("data-promotion-rate",$(this).attr("data-promotion-rate"));$("#PromoteId").attr("data-formula",$(this).attr("data-formula"));$("#PromoteId").attr("data-max-amt",$(this).attr("data-max-amt"));$("#PromoteId").attr("data-min-amt",$(this).attr("data-min-amt"));$("#PromoteId").attr("data-times",$(this).attr("data-times"));$("#PreviewBonusBox").show();n=u?Number(RemoveComma($("#Amount").text())):Number(RemoveComma($("#Amount").val()));PreviewBonus(n)});$("#NoPromotion").click()}else o=!1,$("#Promotionli").empty(),$("#promotionlistDiv").hide(),initPromoteId(),$("#PreviewBonusBox").hide(),$("#PromotionName").text(GetMessage("NoThanks"));if(u){if(u)if($("#Amount").text(AppendComma(Math.floor(parseFloat(n.data.Data.MainwalletAmt))),!1),o)$("#trans_pop").show(),$("#dialog-mask").css("display","block"),e=!1;else{TransferFormSubmit($("#FastTransferSubmit").data("autotransfer"));return}}else $("#trans_pop").show(),$("#dialog-mask").css("display","block"),$("#TransferFromName").html(GetMessage("MainWallet")),$("#FromCash").html(parseFloat(n.data.Data.MainwalletAmt).toFixed(2)),$("#ToCash").html(parseFloat(n.data.Data.ProviderAmt).toFixed(2)),s=$.cookie("the_last_transfer_amt")?$.cookie("the_last_transfer_amt"):0,c=parseFloat(s)!==0&&parseFloat(n.data.Data.MainwalletAmt)>=parseFloat(s)?s:n.data.Data.MainwalletAmt,$("#Amount").val(AppendComma(Math.floor(parseFloat(c))),!1),$("#ProviderFromli").empty(),$("#ProviderToli").empty(),$("#MainMenuFromli").empty(),$("#MainMenuToli").empty(),h="",$.each(n.data.Data.TransferSubMenu,function(n,t){h+="<li style='display:none;'><a position='"+t.Position+"' provider-type='"+t.PositionProviderType+"' value='"+t.PositionProvider+"'>"+t.DisplayName+"<\/a><\/li>"}),r="",$.each(n.data.Data.TransferMainMenu,function(n,t){switch(t.Position.toUpperCase()){case"EGAME":r+="<li><a position='"+t.Position+"'><i class='icon_slot'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"FISHHUNTER":r+="<li><a position='"+t.Position+"'><i class='icon_fish'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"LIVECASINO":r+="<li><a position='"+t.Position+"'><i class='icon_casino'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"SPORTSBOOK":r+="<li><a position='"+t.Position+"'><i class='icon_sports'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"LOTTERY":r+="<li><a position='"+t.Position+"'><i class='icon_lottery'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"POKER":r+="<li><a position='"+t.Position+"'><i class='icon_poker'>"+t.DisplayName+"<\/i><\/a><\/li>";break;case"RACING":r+="<li><a position='"+t.Position+"'><i class='icon_racing'>"+t.DisplayName+"<\/i><\/a><\/li>"}}),$("#ProviderFromli").append(h),$("#ProviderToli").append(h),$("#MainMenuFromli").append(r),$("#MainMenuToli").append(r),l=$("#LastTransferFrom").val().split("-")[0],a=$("#LastTransferTo").val().split("-")[0],$("div .select_group").find("ol li").removeClass("active"),$("div .select_group").find(".provider_name li").hide(),MainMenuClick($("#ProviderFrom").find("ol a[position="+l+"]")),MainMenuClick($("#ProviderTo").find("ol a[position="+a+"]")),e=!1}else e=!0;e&&window.open(t,"_blank")}},!0)}function NewCountList(){var t=$("#hdnAntiForgeryTokens").val(),n={};n.__RequestVerificationToken=t;$.until.postJSON({type:"POST",url:culture+"/Member/NewCount",data:{act:"GetNewCount"},headers:n,debug:!0,success:function(n){n!=null&&$("#UserTxt").show().find("#newcountlist").html(n.Count)},error:function(){$(document).stopTime("IndexNewCountList")}})}function convertDigitalToWord(n){switch(n){case 1:return"one";case 2:return"two";case 3:return"three";case 4:return"four";case 5:return"five";case 6:return"six";case 7:return"seven";case 8:return"eight";case 9:return"nine";default:return"zero"}}function doConnect(){var n=sessionStorage.getItem("isConnecting"),t=sessionStorage.getItem("NotOpen");n!="true"&&t!="true"&&(wsErrorCount>4||(sessionStorage.setItem("isConnecting","true"),axios.post("/api/Member/GetPTC").then(function(n){var i=n.data,t=i.Data.Url;if(t==null||t==""){sessionStorage.setItem("NotOpen","true");return}websocket=new WebSocket(t);websocket.onopen=function(n){onOpen(n)};websocket.onclose=function(n){onClose(n)};websocket.onmessage=function(n){onMessage(n)};websocket.onerror=function(n){onError(n)}}).catch(function(){})))}function onOpen(){wsStatus=1;localStorage.setItem("isConnect","true");sessionStorage.setItem("isConnecting","false")}function onClose(n){var t,i;sessionStorage.removeItem("isConnecting");t=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);n.code==1006&&(wsErrorCount=wsErrorCount+1,t&&(wsErrorCount=9));typeof wsStatus!="undefined"&&wsStatus==1?(localStorage.setItem("isConnect","false"),wsStatus=0,doConnect()):(i=localStorage.getItem("isConnect"),i!="true"&&doConnect())}function onMessage(n){var i=JSON.parse(n.data),t=i.Code,r;popMessage(GetResources(t));r=(new Date).toLocaleString();$("#dialog-close").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")});$("#dialog-mask").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")});localStorage.setItem("ptcMsg",t);localStorage.setItem("showMsg","true");setTimeout(function(){$("#dialog").is(":visible")&&$("#dialog-close").click();localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")},2e4)}function onError(){}function SendBatch(n){if(ckLogin=="FALSE")return!1;var t={act:"Send",promoteId:n,isActive:1};$.until.postJSON({url:culture+"/Promote/SendMobileVerifyCode",data:t,success:function(){hideMaskByDivID("FreeBetModal");$(".send").unbind("click");$(".send").click(resendVerification);viewTelBox(n)},error:function(n){hideMaskByDivID("FreeBetModal");n.Code==40309?popMessage(GetResources(n.Code)):popMessage(GetResources(n.Code))}})}function viewTelBox(n){showMaskByDivID("FreeBetTelVerify");$("a.btn_close").click(function(){hideMaskByDivID("FreeBetTelVerify")});$("#btn_confirm_freebet_popup_sub").unbind("click");$("#btn_confirm_freebet_popup_sub").click(function(){hideMaskByDivID("FreeBetTelVerify");AjaxPost(culture+"/Promote/CheckMobileVerifyCode",!1,{telverification:$("#telverification").val(),promoteId:n},function(n){n.Code==0?popMessage(GetResources(n.Code),!0):popMessage(GetResources(n.Code))})})}function CheckCashbackRule(){AjaxPost(culture+"/Promote/CheckCashbackRule",!1,{},function(n){n.IsShowCashBackIcon&&($(".sosgold").show(),$(".sosgold").click(function(){$(".wait_icon").show();confirm("Are you sure,get cashback promotion?")?addCashBackBonus():$(".wait_icon").hide()}))},!1)}function CheckFreeBetRule(){AjaxPost(culture+"/Promote/CheckFreeBetRule",!1,{},function(n){if(n.IsContainsFb==1&&($(".freebet").show(),n.Promotion!=null||n.Promotion!=undefined)){var t=n.Promotion;$("#fbAccumPlayerCount").text(t.AccumPlayer);$("#fbMaxCount").text(t.MaxPlayer);$("#promoteId").val(t.Id.PromoteId);$("#fbMaxCount").click(sendVerification)}},!1)}function addCashBackBonus(){AjaxPost(culture+"/Promote/AddCashbackBonus",!1,{},function(n){n.Code==0?(popMessage(GetResources(n.Code),!0),$(".sosgold").hide()):popMessage(GetResources(n.Code))},!0)}function sendVerification(){var n={act:"Send",promoteId:$("#promoteId").val(),isActive:1};$.until.postJSON({url:culture+"/Promote/SendMobileVerifyCode",data:n,success:function(){$(".send").unbind("click");$(".send").click(resendVerification);showFbPopup()},error:function(n){n.Code==40309?popMessage(GetResources(n.Code)):popMessage(GetResources(n.Code))}})}function resendVerification(){$.until.postJSON({url:culture+"/Promote/ResendMobileVerifyCode",data:{},success:function(){},error:function(){}})}function showFbPopup(){showMaskByDivID("FreeBetTelVerify");$("a.btn_close").click(function(){hideMaskByDivID("FreeBetTelVerify")});$("#btn_confirm_freebet_popup_sub").unbind("click");$("#btn_confirm_freebet_popup_sub").click(function(){hideMaskByDivID("FreeBetTelVerify");AjaxPost(culture+"/Promote/CheckMobileVerifyCode",!1,{telverification:$("#telverification").val(),promoteId:$("#promoteId").val()},function(n){n.Code==0?popMessage(GetResources(n.Code),!0):popMessage(GetResources(n.Code))})})}function base64encode(n){var t,i,f,r,u,e;for(f=n.length,i=0,t="";i<f;){if(r=n.charCodeAt(i++)&255,i==f){t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4);t+="==";break}if(u=n.charCodeAt(i++),i==f){t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4|(u&240)>>4);t+=base64EncodeChars.charAt((u&15)<<2);t+="=";break}e=n.charCodeAt(i++);t+=base64EncodeChars.charAt(r>>2);t+=base64EncodeChars.charAt((r&3)<<4|(u&240)>>4);t+=base64EncodeChars.charAt((u&15)<<2|(e&192)>>6);t+=base64EncodeChars.charAt(e&63)}return t}var validator={},checkAllTagsItem,$TMP_TEXT_OBJ_DIV,dateAndTime,_Number,_Float,com_Function,base64DecodeChars,language,GetResources,GetMessage,memberWin,UserInfoWin,HelpWin,chat,allowClick,isReqBalance,in1Sec,memoryLastUrl,checkgamelogin,culture,base64EncodeChars,mixin,productPageMixin;validator.event={};checkAllTagsItem={};validator.event.number=function(n){return n.which==0||n.which==8?!0:/[\d]/.test(String.fromCharCode(n.which))};validator.event.decimel=function(n){return n.which==0||n.which==8?!0:/[\d.-]/.test(String.fromCharCode(n.which))};validator.event.character=function(n){return n.which==0||n.which==8?!0:/^[A-Za-z0-9]+$/.test(String.fromCharCode(n.which))};validator.event.validName=function(n){return n.which==0||n.which==8?!0:/[^。~!@#$%\^\+\*&\\\/\?\|:\.<>{}()';=",\d]/.test(String.fromCharCode(n.which))};validator.event.bcode=function(n){var t=n.which;return t==0||t==8||t==9?!0:/\d{1,3}/.test(String.fromCharCode(t))};validator.event.bcodeCom=function(n){var t=n.which;return t==0||t==8||t==9?!0:/[\d]/.test(String.fromCharCode(t))};validator.isNumber=function(n){return/^[0-9\.]+$/.test(n)};validator.isMoney=function(n){return/^[\+-]?\d+(\.?\d+)?$/.test(n)};validator.isEmail=function(n){return/^[0-9a-z_A-Z\.]+@[0-9a-zA-Z]+(\.[0-9a-zA-Z]+)+$/.test(n)};validator.isCharacter=function(n){return/^[A-Za-z0-9]+$/.test(n)};validator.isBCode=function(n){return/^\d{1,3}$/.test(n)};validator.initInput=function(){$("input.v_validName").on("keypress",function(n){return validator.event.validName(n)}).on("change",function(){this.value=this.value.replace(/[\u4E00-\u9FA5]/g,"")});$("input.v_decimel").on("keypress",function(n){return validator.event.decimel(n)}).on("change",function(){this.value=this.value.replace(/[\u4E00-\u9FA5]/g,"")});$("input.v_number").on("keypress",function(n){return validator.event.number(n)}).on("change",function(){this.value=this.value.replace(/[\u4E00-\u9FA5]/g,"")});$("input.v_character").on("keypress",function(n){return validator.event.character(n)}).on("change",function(){this.value=this.value.replace(/[\u4E00-\u9FA5]/g,"")});$("input.txt_calendar").each(function(n,t){var i=t.id,r=$(this).attr("maxDate")||"",u=$(this).attr("minDate")||"";Calendar.setup({inputField:i,button:"btn_"+i,ifFormat:"%Y-%m-%d",weekNumbers:!1,maxDate:r,minDate:u});t=$(t);t.val()==""&&$(t).val(today);$(t).attr("readonly","true")});$("input.txt_time").each(function(n,t){var r=t.id,i;t=$(t);t.val()==""&&(i=t.attr("time")||"",i!=""?t.val(i):t.val(r=="timeFrom"?"12:00":"11:59"));t.timePicker({step:1,endTime:new Date(0,0,0,23,59,0)}).prop("readonly",!0)});$(":checkbox.ckAll[tag]").change(function(){var i=function(n){var t=$(":text[tag="+n+"]");t.length==0&&(t=$("select[tag="+n+"]"));t.val(t.eq(0).val())},u=function(n){$.each(checkAllTagsItem[n],function(t,r){var u=n+r;i(u)})},f=function(n,t){var i=$(t).parents("table");checkAllTagsItem[n]=checkAllTagsItem[n]||[n];$.each(checkAllTagsItem[n],function(n,t){var r=i.find(":text[tag*="+t+"]");r.length==0&&(r=i.find("select[tag*="+t+"]"));r.val(r.eq(0).val())})},n,r,t;if(!$(this)[0].checked)return!0;n=$(this).attr("tag").split(",");r=n.length>1?n[1]:"item";n=n[0];t=function(){};switch(r){case"item":t=i;break;case"items":t=u;break;case"like":t=f}t(n,this)});$("#btnAdd").click(function(){addUrl&&(window.location.href=addUrl)});$("#btnCancel").click(function(){addUrl&&(window.location.href=listUrl)});$("#btnClose").click(function(){window.close()});$("#btnReset").click(function(){this.form.reset()});$("#btnBack").click(function(){window.history.back()});$("#btnPrint").click(function(){print.print()});$("input.err, select.err, textarea.err").on("focus",function(){$(this).removeClass("err")})};validator.isSubmit=function(n){var t={},u=function(n,i,r,u){u(n)||(t[r]=i)},i,r;return n=n?"#"+n+" ":"",$(n).find(".v_required, .v_decimel, .v_number, .v_character, .v_email").each(function(){var i=$(this).val(),r=this.id,f=$(this).attr("class"),n=function(){return!0},t=i=="";$.each(f.split(" "),function(f,e){switch(e){case"v_decimel":n=t?n:validator.isMoney;break;case"v_number":n=t?n:validator.isNumber;break;case"v_character":n=t?n:validator.isCharacter;break;case"v_email":n=t?n:validator.isEmail;break;case"v_required":n=function(){return!t}}u(i,e,r,n)})}),i=0,r=[],$.each(t,function(n){i++;r.push(n)}),{length:i,list:t,ids:r}};validator.checkForm=function(n){var t=validator.isSubmit(n);return t.length>0?($("#"+t.ids.join(",#")).addClass("err"),!1):!0};$(document).bind("mobileinit",function(){$.mobile.ajaxEnabled=!1});$.until={};$.until.debug=!1;$.until.log=function(n,t){if($.until.debug&&typeof console!="undefined"&&typeof console.log!="undefined"&&console&&console.log){var i=new Date;typeof n!="object"?t!=undefined&&window.console.log(t):(window.console.log("$.until.log@"+i.toLocaleString()),window.console.log(n),t!=undefined&&window.console.log(t))}};$.until.serialize=function(n){for(var t=n.serializeArray(),r,u,i=t.length;i--;)r=t[i].name,u=t[i].value,u&&(t[r]?t[r]+=","+u:t[r]=u);return t};$.until.getJSON=function(n){var t={url:"",type:"get",dataType:"json",data:{},cache:!1,cacheTime:144e4,success:undefined,error:undefined,showloading:undefined,showErrorDefault:!1,debug:!1};n=$.extend(t,n);$.until._ajax(n)};$.until.postJSON=function(n){var t={url:"",type:"post",dataType:"json",data:{},headers:{},cache:!1,cacheTime:144e4,success:undefined,error:undefined,showloading:undefined,showErrorDefault:!1,debug:!1};n=$.extend(t,n);n.url==undefined&&(n.url=document.location.href);n.url==""&&(n.url=document.location.href);$.until._ajax(n)};$.until._ajaxpools=[];$.until._ajax=function(n){var t,i;return(n.debug&&$.until.log(n),n.cache&&(t=$.local.getLocalData(n.url,n.cacheTime),t!=undefined))?($.until.msg.pre(t,n),null):(n.showloading&&$.until.showloading(n.showloading),i=$.ajax({url:n.url,type:n.type,dataType:n.dataType,data:n.data,headers:n.headers,cache:n.cache,success:function(t){n.debug&&$.until.log("success",t);n.cache&&$.local.setLocalData(n.url,t,n.cacheTime);$.until.msg.pre(t,n);n.showloading&&$.until.hideloading(n.showloading)},error:function(t){n.debug&&$.until.log("error",t);$.until.msg.error(t,n);n.showloading&&$.until.hideloading(n.showloading)}}),$.until._ajaxpools.push({xhr:i,options:n}),i)};$.fn.serialize=function(){return $.until.serialize($(this))};$.fn.postForm=function(n,t,i){var f=$(this),r=f.attr("action"),u;r==undefined&&(r=document.location.href);r==""&&(r=document.location.href);u=this.serialize();i=$.extend({url:r,data:u,success:n,error:t,showloading:{obj:$("body"),mask:!0},showErrorDefault:!0},i);$.until.postJSON(i)};$.until.abortallajax=function(){$.each($.until._ajaxpools,function(n,t){t.xhr.readyState!=4&&(t.xhr.abort(),$.until.log("abort a ajax",t))})};$.until.hasstr=function(n,t){return(","+n+",").indexOf(","+t+",")!=-1};$.until.msg=function(){};$.until.msg.pre=function(n,t){var i,r;if(typeof n=="undefined")if(t.error==undefined){if(t.showErrorDefault){$.until.msg.show("don't get the request");return}}else{$.until.msg.error(n,t.error);return}if(i=!1,t.error==undefined&&(i=!0),t.dataType=="json")if(n.hasOwnProperty("Code")){if(r=n.Code,!$.until.msg.parseMsg(r))return;$.until.hasstr("0,50000,50001",r)?t.success(n):i?t.showErrorDefault&&$.until.msg.show(n.Msg):t.error(n)}else i?t.success(n):t.showErrorDefault&&$.until.msg.show("don't get the reponse code!");else t.dataType=="script"?alert("error base.until._ajax don't add script type"):alert("error base.until._ajax don't add other type")};$.until.msg.show=function(n,t){var i=!1;i=typeof t=="undefined"||t==null?!1:!0;i?$.modaldialog.success(n,{width:325}):$.modaldialog.error(n,{width:325})};$.until.msg.error=function(rsp,options){if(rsp.hasOwnProperty("Code"))options.error==undefined?options.showErrorDefault&&$.until.msg.show(rsp.Msg):options.error(rsp);else{switch(rsp.status){case 300:case 301:case 302:case 303:case 304:case 305:$.user.showloginView();case 500:$.until.log("ajax get a 500 error");$.until.log(rsp.responseText);$.until.msg.show("Server Error!");return;case 502:$.until.log("ajax get a 502 error");$.until.log(rsp.responseText);return;case 503:$.until.log("ajax get a 503 error");$.until.log(rsp.responseText);return;default:$.until.log(rsp.responseText)}if(options.success!=undefined)switch(options.dataType){case"json":options.success(eval(rsp.responseText));default:options.success(rsp)}else options.showErrorDefault&&$.until.msg(rsp.responseText)}};$.until.msg.parseMsg=function(n){switch(n){case 39999:$(".vCode_img").reloadimg();break;case 1:return $.user.logoutEvent(),!1}return!0};$.until.loading_defaults={obj:null,mask:null,zIndex:800,hide:!0};$.until.cache_loading_img=null;$.until.cache_loading_mask=null;$.until.cache_loading_pool=0;$.until.cache_loading_hide=!0;$.until.showloading=function(n){var t,i,r;if($.until.log("show_loading:"+$.until.cache_loading_pool),n=$.extend({},$.until.loading_defaults,n),n.mask&&$.until.cache_loading_pool++,n.hide||($.until.cache_loading_hide=!1),t=n.obj,t!=undefined){if(t.length==0){$.until.log("Error#Please don't select a msg!");return}i=t.outerWidth();i=i>0?i:"0px";r=t.outerHeight();r=r>0?r:"0px";$.until.cache_loading_img==null&&($("body").append('<div class="loading"><\/div>'),$.until.cache_loading_img=$(".loading"));$.until.cache_loading_mask==null&&($("body").append('<div class="loading_mask"><\/div>'),$.until.cache_loading_mask=$(".loading_mask").css({zIndex:n.zIndex}).bgiframe(),$.support.leadingWhitespace||$.until.cache_loading_mask.css({width:t.outerWidth(),height:t.outerHeight()}));$.until.cache_loading_img.css({position:"absolute",top:t.offset().top,left:t.offset().left,"z-index":n.zIndex+1,width:i,height:r});n.mask?($.until.cache_loading_img.css("display","block"),$.until.cache_loading_mask.css("display","block")):($.until.cache_loading_img.css("display","block"),$.until.cache_loading_mask.css("display","none"))}};$.until.hideloading=function(n){n=$.extend({},$.until.loading_defaults,n);n.mask&&$.until.cache_loading_pool--;$.until.log("hide_loading:"+$.until.cache_loading_pool);$.until.cache_loading_pool==0&&$.until.cache_loading_hide&&($(".loading_mask").hide(),$(".loading").hide())};$.fn.showloading=function(n){n=n!=undefined?$.extend($.until.loading_defaults,n):$.extend($.until.loading_defaults);$.until.showloading({obj:$(this),mask:n.mask})};$.fn.hideloading=function(){$.until.hideloading()};$.until.url=function(){};$.until.url.getFirstPathWithOutLanguage=function(){var n=document.location.pathname.split("/");return n.length==0?"Home":n[0]==""&&n[1].indexOf("-")>0?n[2]:n[1]};$.until.url.getUrlParam=function(n){var i=new RegExp("(^|&)"+n+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(i);return t!=null?unescape(t[2]):null};$.local=function(){};$.local.getLocalData=function(n,t,i){var u,r;return typeof t=="undefined"&&(t=3e5),u=$.jStorage.getTTL(n),$.until.log("cache time#"+u),u>0?(r=$.jStorage.get(n,t),r=r==undefined?i:r,$.until.log("$.local.getLocalData  @key="+n+"  @cacheTime="+t+"  @value="+r),r):($.until.log("$.local.getLocalData cacheTime Out return defaultValue @value="+i),i)};$.local.setLocalData=function(n,t,i){typeof i=="undefined"&&(i=3e5);$.until.log("$.local.setLocalData  @key="+n+" @value="+t+"@cacheTime="+i);$.jStorage.set(n,t,{TTL:i});$.until.debug||$.local.getLocalData(n,i)};$.local.delLocalData=function(n){$.until.log("$.local.delLocalData  @key="+n);$.jStorage.deleteKey(n);$.until.debug||$.local.getLocalData(n)};$.local.getKeyStr=function(n){return n.replaceAll("\\\\","").replaceAll("/","").replaceAll("#","")};$.local.getLanguage=function(){return location.pathname.split("/")[1]};$.local.setLanguage=function(n){var t={language:n};$.until.postJSON({url:"/SetLanaguage",data:t,showloading:{obj:$("body"),mask:!0,hide:!1},success:function(n){var i=location.href,t=i.split("/"),r=t[t.length-2];location.href="/"+n.language+"/"+$.until.url.getFirstPathWithOutLanguage()}})};$.local.getLocalUrl=function(n){return"/"+$.local.getLanguage()+"/"+n};$.local._siteConfig=null;$.local.getWebConfig=function(){if(_siteConfig!=null&&$.local.getLocalLang()!=_siteConfig.userLanguage&&flushWebConfig(),_siteConfig==null){if(window.localStorage)return localStorage.SiteConfig==undefined&&($.ajaxSettings.async=!1,$.getJSON($.getLocalUrl("/GetWebConfig"),function(n){return localStorage.SiteConfig=JSON.stringify(n),$.local._siteConfig=n,n})),$.local._siteConfig=JSON.parse(localStorage.SiteConfig),_siteConfig;$.ajaxSettings.async=!1;$.getJSON($.getLocalUrl("/GetWebConfig"),function(n){return localStorage.SiteConfig=JSON.stringify(n),$.local._siteConfig=n,n})}else return _siteConfig;return null};$.flushWebConfig=function(){$.local._siteConfig=null;window.localStorage&&localStorage.removeItem("SiteConfig")};$.local.getlang=function(){return $.cookie("language")};$.fn.ajaxCheckValid=function(n){var t=$(this).tooltip("destroy");$.until.postJSON({data:n,success:function(){t.tipsuccess()},error:function(){t.tiperror()}})};$.fn.ajaxCheckValidWithUrl=function(n){var t=$(this).tooltip("destroy");$.until.postJSON({data:n,url:$.local.getLocalUrl("Register"),success:function(){console.log(1);t.tipsuccess()},error:function(){console.log(0);t.tiperror()}})};$.fn.tipsuccess=function(){$(this).tooltip({placement:"right",html:!0,selector:$(this),title:"<span class='success'><\/span>",trigger:"manual"}).tooltip("show")};$.fn.tiperror=function(){$(this).tooltip({placement:"right",html:!0,selector:$(this),title:"<span class='error'><\/span>",trigger:"manual"}).tooltip("show")};$.fn.bindListData=function(n,t,i,r,u,f){var e=$(this),s=e,o;for(e.find("optgroup").length>0&&(s=e.find("optgroup")),s.empty(),o=0;o<=n.length-1;o++)s.append("<option value='"+n[o][i]+"'>"+n[o][t]+"<\/option>");u!=undefined&&(f==undefined&&(f=u),e.find("options").find("[value='"+u+"']").length==0&&s.append("<option value='"+u+"'>"+f+"<\/option>"),e.val(u));r!=undefined&&e.val(r)};$.until.getBankList=function(n,t,i){$.until.emptyselectlist(t);$.until.postJSON({url:$.local.getLocalUrl("Register"),data:{act:"GetBank",CurrId:n},showloading:{obj:$("body"),mask:!0},success:function(n){return t==undefined?n.BankList:($(t).bindListData(n.BankList,"BankName","BankId",i),null)}})};$.until.emptyselectlist=function(n){var t=$(n);t&&(t.find("optgroup").length>0&&(t=t.find("optgroup")),t.empty())};$.until.getProviderList=function(n,t,i,r){$.until.emptyselectlist(t);$.until.postJSON({url:$.local.getLocalUrl("Register"),data:{act:"GetProvider",CurrId:n},showloading:{obj:$("body"),mask:!0},success:function(n){if(t==undefined)return n.ProviderList;$(t).bindListData(n.ProviderList,"ProviderName","ProviderId",i,"-",r)}})};$.fn.reloadimg=function(){var n=$(this);n.attr("ref",n.attr("src"));n.attr("src",n.attr("ref")+"?"+Math.random())};$TMP_TEXT_OBJ_DIV=null;$.until.getTextWidth=function(n){return $TMP_TEXT_OBJ_DIV==null&&($("body").append('<div id="until_getTextWidth_box" style="height:0px!important;overflow:hidden;white-space:nowrap;display:inline-block;"><\/div>'),$TMP_TEXT_OBJ_DIV=$("#until_getTextWidth_box")),$TMP_TEXT_OBJ_DIV.text(n).width()};dateAndTime={format:"%d/%m/%Y %H:%i",monthAbbreviations:["1","2","3","4","5","6","7","8","9","10","11","12"],leftOffset:"100",labelTitle:"Select a Date and Time",labelMonth:"Month",labelDayOfMonth:"Day Of Month",labelHour:"Hour",labelMinute:"Minute"};String.prototype.format=function(n){var i=this,r,u,t,f;if(arguments.length>0)if(arguments.length==1&&typeof n=="object")for(r in n)n[r]!=undefined&&(u=new RegExp("({"+r+"})","g"),i=i.replace(u,n[r]));else for(t=0;t<arguments.length;t++)arguments[t]!=undefined&&(f=new RegExp("({["+t+"]})","g"),i=i.replace(f,arguments[t]));return i};String.prototype.trimStart=function(n){if(!n)return this;for(var t=this;;){if(t.substr(0,n.length)!=n)break;t=t.substr(n.length)}return t};String.prototype.trimEnd=function(n){if(!n)return this;for(var t=this;;){if(t.substr(t.length-n.length,n.length)!=n)break;t=t.substr(0,t.length-n.length)}return t};_Number={};_Number.isNumber=function(n){return/^\d+$/.test(n)};_Number.valueOf=function(n){return _Number.isNumber(n)?parseInt(n):0};Number.prototype.toFixedFloor=function(n){n=n||2;var i=Math.pow(10,n),t=Math.round(this*1e4)/(1e4/i);return t=Math.floor(t)/100,t.toString()};String.prototype.replaceAll=function(n,t){return this.replace(new RegExp(n,"gm"),t)};String.prototype.replaceAll2Excep=function(n,t){for(var i=this;i.indexOf(n)!=-1;)i=i.replace(n,t);return i};String.prototype.toFixedFloor=function(n){n=n||2;var i=Math.pow(10,n),t=Math.round(this*1e4)/(1e4/i);return t=Math.floor(t)/100,t.toString()};_Float={};_Float.isFloat=function(n){return/^[\+-]?\d+(\.?\d+)?$/.test(n)};_Float.valueOf=function(n){return typeof n=="string"&&(n=n.replace(/,/g,"")),_Float.isFloat(n)?parseFloat(n):0};_Float.whichColor=function(n){return n<0?"check":"money"};_Float.setColor=function(n){return n=_Float.valueOf(n),"<span class='"+_Float.whichColor(n)+"'>"+n+"<\/span>"};_Float.toSpecial=function(n,t,i){var e,f;typeof t!="undefined"&&t||(t=typeof DecimalDigital=="undefined"?2:DecimalDigital);t=Math.abs(_Float.valueOf(t));e=_Float.valueOf(n).toFixed(t);i=typeof i=="undefined"?!0:i;var s=i?_Float.whichColor(n):"",h=e.charAt(0),c="",o=e;/^[\+-]$/.test(h)&&(c=h,o=o.substr(1));var r=o.split("."),l=r[0].length%3,u=r[0].substr(0,l),a=r[0].substr(l).match(/\d{3}/ig);return(u=u!=""&&u!=r[0]?u+",":u,f=c+u,a&&(f+=a.join(",")),r[1]&&(f=f+"."+r[1]),isNullOrWhitespace(s))?f:"<span class='"+s+"'>"+f+"<\/span>"};com_Function={};com_Function.fn_date_comm=function(n,t,i){var r=n.dateFormat("Y-m-d"),u=t.dateFormat("Y-m-d");$("input.dateFrom").val(r);$("input.dateTo").val(u);i(r,u)};com_Function.fn_date_thisWeek=function(n){var t=new Date,i=new Date,r=t.getDay();t.setDate(t.getDate()-r+1);i.setDate(t.getDate()+6);com_Function.fn_date_comm(t,i,n)};com_Function.fn_date_lastWeek=function(n){var i=new Date,r=new Date,f=i.getDay(),t,u;i.setDate(i.getDate()-f-6);t=i.getDate()+6;u=r.getDaysInMonth();t=t>u?t-u:t;r.setDate(t);com_Function.fn_date_comm(i,r,n)};com_Function.fn_date_yesterday=function(n){var t=new Date;t.setDate(t.getDate()-1);com_Function.fn_date_comm(t,t,n)};com_Function.fn_date_today=function(n){var t=new Date;com_Function.fn_date_comm(t,t,n)};com_Function.fn_date_thisMonth=function(n){var i=new Date,t=new Date;i.setDate(1);t.setMonth(t.getMonth()+1,0);com_Function.fn_date_comm(i,t,n)};com_Function.fn_date_lastMonth=function(n){var t=new Date,i=new Date;t.setMonth(t.getMonth()-1,1);i.setDate(0);com_Function.fn_date_comm(t,i,n)};com_Function.fn_date_months=function(n,t){var r=new Date,i=new Date;n--;i.setDate(i.getDaysInMonth());r.setMonth(i.getMonth()-n,1);com_Function.fn_date_comm(r,i,t)};com_Function.fn_timer_fresh=function(n,t,i){$(t).click(function(){var n=n||60,t=n,r=$(this);if(r.val().indexOf("Stop")>-1){r.val("Start");$("body").stopTime("_timer");return}r.val("Stop ("+n+")");$("body").everyTime("1s","_timer",function(){t--;r.val("Stop ("+t+")");t==0&&(t=n+1,i&&i())}).trigger("click")})};com_Function.fn_enter=function(n,t){$(n).keydown(function(n){var i=n.which;i==13&&t&&t(this)})};com_Function.fn_state_save=function(n,t){var i=[];$.each(t,function(n,t){i.push(n+":'"+t+"'")});i="{"+i.join(",")+"}";$.cookie("data_store_"+n,i,{expires:30,path:"/"})};com_Function.fn_state_store=function(name,fn){if(location.href.indexOf("?restore")<0)return!0;var dat=$.cookie("data_store_"+name);return dat=eval("("+dat+")"),fn(dat)};Date.parseFunctions={count:0};Date.parseRegexes=[];Date.formatFunctions={count:0};Date.prototype.dateFormat=function(n){Date.formatFunctions[n]==null&&Date.createNewFormat(n);var t=Date.formatFunctions[n];return this[t]()};Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++,i;Date.formatFunctions[format]=funcName;var code="Date.prototype."+funcName+" = function(){return ",special=!1,ch="";for(i=0;i<format.length;++i)ch=format.charAt(i),special||ch!="\\"?special?(special=!1,code+="'"+String.escape(ch)+"' + "):code+=Date.getFormatCode(ch):special=!0;eval(code.substring(0,code.length-3)+";}")};Date.getFormatCode=function(n){switch(n){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(n)+"' + "}};Date.parseDate=function(n,t){Date.parseFunctions[t]==null&&Date.createParser(t);var i=Date.parseFunctions[t];return Date[i](n)};Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++,regexNum=Date.parseRegexes.length,currentGroup=1,i;Date.parseFunctions[format]=funcName;var code="Date."+funcName+" = function(input){\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {",regex="",special=!1,ch="";for(i=0;i<format.length;++i)ch=format.charAt(i),special||ch!="\\"?special?(special=!1,regex+=String.escape(ch)):(obj=Date.formatCodeToRegex(ch,currentGroup),currentGroup+=obj.g,regex+=obj.s,obj.g&&obj.c&&(code+=obj.c)):special=!0;code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}";Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$");eval(code)};Date.formatCodeToRegex=function(n,t){switch(n){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:0,c:null,s:"(?:\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(n)}}};Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")};Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(this.getTimezoneOffset()/60),2,"0")+String.leftPad(this.getTimezoneOffset()%60,2,"0")};Date.prototype.getDayOfYear=function(){var t=0,n;for(Date.daysInMonth[1]=this.isLeapYear()?29:28,n=0;n<this.getMonth();++n)t+=Date.daysInMonth[n];return t+this.getDate()-1};Date.prototype.getWeekOfYear=function(){var t=this.getDayOfYear()+(4-this.getDay()),i=new Date(this.getFullYear(),0,1),n=11-i.getDay();return document.write(n),String.leftPad((t-n)/7+1,2,"0")};Date.prototype.isLeapYear=function(){var n=this.getFullYear();return(n&3)==0&&(n%100||n%400==0&&n)};Date.prototype.getFirstDayOfMonth=function(){var n=(this.getDay()-(this.getDate()-1))%7;return n<0?n+7:n};Date.prototype.getLastDayOfMonth=function(){var n=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return n<0?n+7:n};Date.prototype.getDaysInMonth=function(){return Date.daysInMonth[1]=this.isLeapYear()?29:28,Date.daysInMonth[this.getMonth()]};Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};String.escape=function(n){return n.replace(/('|\\)/g,"\\$1")};String.leftPad=function(n,t,i){var r=new String(n);for(i==null&&(i=" ");r.length<t;)r=i+r;return r};Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.y2kYear=50;Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"};base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";base64DecodeChars=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];$.user=$(window);$.user.getcurrent=function(){return $.local.getLocalData("userinfo",6e5)};$.user.logoutEvent=function(){$.user.trigger("user.logout.success")};$.user.getCurrency=function(){return $.user.ckloginstatu()?$("#lbCurrency").text():""};$.user.login=function(n,t){$.user.trigger("user.login.before");$.until.postJSON({url:"/Login",data:{UID:$("#UID").val(),PWD:$("#PWD").val()},showloading:{obj:$("body"),mask:!0},success:function(i){$(n).find("input[type='text'], input[type='password']").val("");$.local.setLocalData("userinfo",i,6e5);t(i);$.user.trigger("user.login.success",i)},error:function(t){$.until.msg.show(t.Msg);$(n).find("input[type='text'], input[type='password']").val("")}})};$.user.fastlogin=function(n,t){$.user.trigger("user.login.before");$.until.postJSON({url:"/Login",data:{UID:$("#userid").val(),PWD:$("#password").val()},showloading:{obj:$("body"),mask:!0},success:function(i){$(n).find("input[type='text'], input[type='password']").val("");$.local.setLocalData("userinfo",i,6e5);t(i);$.user.trigger("user.login.success",i);$(".cd-user-modal").click()},error:function(t){$.until.msg.show(t.Msg);$(n).find("input[type='text'], input[type='password']").val("")}})};$.user.fastRegister=function(n,t){$.until.postJSON({url:"/FastRegister",data:{FirstMemId:$("#FirstMemId").val(),FirstPassword:$("#FirstPassword").val(),FirstCurrId:$("#FirstCurrId").val()},showloading:{obj:$("body"),mask:!0},success:function(i){$(n).find("input[type='text'], input[type='password']").val("");t(i)},error:function(t){$.until.msg.show(t.Msg);$(n).find("input[type='text'], input[type='password']").val("")}})};$.user.ckloginstatu=function(){return $(".userinfo-top-view").is(":visible")};$.user.gohome=function(){typeof isdilogwin!="undefined"&&(window.opener.document.location.reload(),window.close());document.location.reload()};$.user.logout=function(){$(".ad-right-content").show();$(".mini-games").hide();$.user.trigger("user.logout.before");$.until.getJSON({url:"/Logout?"+Math.random(),showloading:{obj:$("body"),mask:!0},success:function(){$.user.trigger("user.logout.success")},error:function(){$.user.trigger("user.logout.success")}})};$.user.reg=function(n,t){$(n).postForm(function(n){$.local.setLocalData("userinfo",n.Model);t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.showloginView=function(){$.until.msg.show(needLoginMsg)};$.user.getnew=function(){};$.user.cgpwd=function(n,t){$(n).postForm(function(n){t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.cguserinfo=function(n,t){$(n).postForm(function(n){t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.disposit=function(){};$.user.findpwd=function(){};$.user.resetpwd=function(n,t){$(n).postForm(function(n){t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.transfer=function(n,t){$(n).postForm(function(n){t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.withdrawal=function(n,t){$(n).postForm(function(n){t(n)},function(n){$.until.msg.show(n.Msg)})};$.user.getmsg=function(){};$(document).ready(function(){$("[event='user.logout']").unbind("click").on("click",function(){$.user.logout($(this))})});$.user.report=function(){};$.user.report.PromotionBonus=function(n,t,i,r){$(n).postForm(function(n){r(n)},function(n){$.until.msg.show(n.Msg)})};$.user.report.TransactionList=function(n,t,i,r){$(n).postForm(function(n){r(n)},function(n){$.until.msg.show(n.Msg)})};$.user.report.TransferList=function(n,t,i,r){$(n).postForm(function(n){r(n)},function(n){$.until.msg.show(n.Msg)})};$.user.GetCurrencyList=function(){$.ajax({url:"/CurrencyList?"+Math.random(),data:{act:"queryCurrency"},dataType:"json",success:function(n){bindCurrencyList(n)}})};$.urlParam=function(n){var t=new RegExp("[?&]"+n+"=([^&#]*)").exec(window.location.href);return t==null?null:t[1]||0};culture="/"+$.cookie("language");language=$.cookie("language");axios.defaults.headers.common.__RequestVerificationToken=$("#hdnAntiForgeryTokens").val();$(document).ready(function(){var e,o;$("a").on("click",function(n){var t=$(this);t.attr("href")=="#"&&n.preventDefault()});TextBoxNumberToAddComma();$("#LooutButton").on("click",function(){$(".wait_icon").show();$("#logoutUrlHidden").val(memoryLastUrl);$("#LogoutActionFrm").submit()});var n="",t=language.toUpperCase(),s=$.getJSON("../../../Json/ContactList.json",function(){n=s.responseJSON;n[t]!=null&&(n[t].Email1?$("[contact-type='email']").parent().show():$("[contact-type='email']").parent().hide().remove(),n[t].Line1?$("[contact-type='line']").parent().show():$("[contact-type='line']").parent().hide().remove(),n[t].Skype1?$("[contact-type='skype']").parent().show():$("[contact-type='skype']").parent().hide().remove(),n[t].Wechat1?$("[contact-type='wechat']").parent().show():$("[contact-type='wechat']").parent().hide().remove(),n[t].Telephone1?$("[contact-type='phone']").parent().show():$("[contact-type='phone']").parent().hide().remove(),n[t].Whatsapp1?$("[contact-type='watsapp']").parent().show():$("[contact-type='watsapp']").parent().hide().remove(),n[t].Yahoomsg1?$("[contact-type='yahoo']").parent().show():$("[contact-type='yahoo']").parent().hide().remove(),n[t].smsnumber?$("[contact-type='smsnumber']").parent().show():$("[contact-type='smsnumber']").parent().hide().remove(),n[t].Kakaotalk1?$("[contact-type='kakaotalk']").parent().show():$("[contact-type='kakaotalk']").parent().hide().remove(),n[t].Telegram1?$("[contact-type='telegram']").parent().show():$("[contact-type='telegram']").parent().hide().remove(),n[t].Zalo1?$("[contact-type='zalo']").parent().show():$("[contact-type='zalo']").parent().hide().remove(),n[t].Bbm1?$("[contact-type='bbm']").parent().show():$("[contact-type='bbm']").parent().hide().remove(),n[t].Qq1?$("[contact-type='qq']").parent().show():$("[contact-type='qq']").parent().hide().remove(),n[t].Facebook?($("[contact-type='facebook']").parent().show(),$("[contact-type='facebook']").attr("href",n[t].Facebook).attr("target","_blank").text(n[t].Facebook)):$("[contact-type='facebook']").parent().hide().remove(),n[t].Twitter?($("[contact-type='twiter']").parent().show(),$("[contact-type='twiter']").attr("href",n[t].Twitter).attr("target","_blank").text(n[t].Twitter)):$("[contact-type='twiter']").parent().hide().remove(),n[t].Linkedin?($("[contact-type='linkedin']").parent().show(),$("[contact-type='linkedin']").attr("href",n[t].Linkedin).attr("target","_blank").text(n[t].Linkedin)):$("[contact-type='linkedin']").parent().hide().remove(),n[t].Pinterest?($("[contact-type='pinterest']").parent().show(),$("[contact-type='pinterest']").attr("href",n[t].Pinterest).attr("target","_blank").text(n[t].Pinterest)):$("[contact-type='pinterest']").parent().hide().remove())});$("[contact-type='email']").on("click",function(){var n=$(this).html();window.location="mailto:"+n+""});$("[contact-type='skype']").on("click",function(){var n=$(this).html();window.location="skype:"+n+"?chat"});$("a[target='livechat']").on("click",function(n){n.preventDefault();var t=$(this);popLiveChat(t.attr("href"))});$("#LoginErrorButton").on("click",function(){hideMaskByDivID("logRegModal")});$(document).keyup(function(n){n.which=="27"&&hideMaskByDivID("logRegModal")});$(document).on("click",':input[type=text][data-select="all"]',function(){this.focus();this.select();/iPhone|iPad|iPod/i.test(navigator.userAgent)&&this.setSelectionRange(0,9999)});if($("#memberMoney").text()==="0"){var h="sessionStorage"in window&&window.sessionStorage,u="IcBalance",f,r,i=!1;try{h&&!1?(i=sessionStorage.getItem(u),i?(i=JSON.parse(i),f=new Date,r=new Date(i.timestamp),r.setSeconds(r.getSeconds()+30),f.getTime()>r.getTime()?(sessionStorage.removeItem(u),PressQueryMainWallet()):(e=$("#lbAmount").html().split("&nbsp;")[0],o=i.balance,$("#lbAmount").html(e.concat("&nbsp;",_Float.toSpecial(o,2,!1))))):PressQueryMainWallet()):PressQueryMainWallet()}catch(c){console.log(c);PressQueryMainWallet()}}$("#memberWallet").length>0&&PressQueryWallet()});GetResources=function(n){var t,r={code:n},u=$("#hdnAntiForgeryTokens").val(),i={};return i.__RequestVerificationToken=u,$.ajax({url:culture+"/Home/GetResources",type:"POST",async:!1,data:r,headers:i,success:function(n){t=n},error:function(n){popMessage(n.responseText)},cache:!1}),t};GetMessage=function(n){var t,f={code:n},e=$("#hdnAntiForgeryTokens").val(),u={},i,r;return u.__RequestVerificationToken=e,i=n+culture,r=sessionStorage.getItem(i),r?t=r:$.ajax({url:culture+"/Home/GetMessage",type:"POST",async:!1,headers:u,data:f,success:function(n){t=n;sessionStorage.setItem(i,n)},error:function(n){popMessage(n.responseText)},cache:!1}),t};var shareico={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}&title={title}&pics={picpath}&summary=",tsina:"http://service.weibo.com/share/share.php?title={title}&url={url}&source=bookmark&appkey=2992571369",tqq:"http://v.t.qq.com/share/share.php?title={title}&url={url}&appkey=118cd1d635c44eab9a4840b2fbf8b0fb&pic=",renren:"http://share.renren.com/share/buttonshare.do?link={url}&title={title}",twitter:"https://twitter.com/intent/tweet?text={title}&url={url}",linkedin:"https://www.linkedin.com/shareArticle?source=&title={title}&armin=armin&summary=&mini=true&url={url}&ro=true",pinterest:"https://www.pinterest.com/pin/create/bookmarklet/?url={url}&media=&title={title}&alt=",facebook:"https://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D={title}&p%5Bsummary%5D={title}&p%5Burl%5D={url}&p%5Bimages%5D"},title=document.title,url=window.location.href,shareurl,surl,media;allowClick=!0;$("#lbAmount").on("click",function(n){if(n.preventDefault(),n.target.dataset.action==="WithdrawBack"){if(!allowClick)return;allowClick=!1;setTimeout(function(){allowClick=!0},1e3);ApiPost("/api/Account/WithdrawBack",{},function(n){n.data.Code==0&&PressQueryMainWallet()},!1)}else PressQueryMainWallet()});isReqBalance=!1;in1Sec=!1;memoryLastUrl=function(){var i=document.location.href,r=document.location.search,n="",t;return i.indexOf(r)>=0&&(n=i.replace(r,"")),t=window.top.location.hash,t.length<1?n.replace("#",""):n.replace(t,"")};String.format=function(){for(var t=arguments[0],i,n=0;n<arguments.length-1;n++)i=new RegExp("\\{"+n+"\\}","gm"),t=t.replace(i,arguments[n+1]);return t};$(document).ready(function(){var n,i,r,t;$("#CurrLang").on("click",function(){$(".dropMenu").slideToggle()});$("[group='lang']").on("click",function(){var n=$(this).attr("datafld"),t,i;$.cookie("language",n,{expires:365,path:"/"});culture="/"+$.cookie("language");t=window.location.pathname;i=t.replace(language,n);window.location.replace(i)});$("#CurrLang").attr("class","flags en");n=$.cookie("language");n!=null?(i=$("[datafld='"+n+"']").attr("class"),$("#CurrLang").removeClass("en"),$("#CurrLang").addClass(i)):$.cookie("language","en-US",{expires:365,path:"/"});$("#LoginButton").on("click",function(){var n=$.trim($("#loginId").val()),t=$.trim($("#loginPwd").val());(n||typeof n=="undefined")&&(t||typeof t=="undefined")?($(".wait_icon").show(),n=base64encode(n),t=base64encode(t),$("#loginidHidden").val(n),$("#loginPwdHidden").val(t),$("#loginUrlHidden").val(memoryLastUrl),$("#LoginActionFrm").submit(),$.removeCookie("the_last_transfer_to",{path:"/"}),$.removeCookie("the_last_transfer_from",{path:"/"}),$.removeCookie("the_last_transfer_amt",{path:"/"}),localStorage.removeItem("isConnect"),localStorage.removeItem("showMsg"),localStorage.removeItem("ptcMsg")):popMessage(GetResources("Code_30003"))});$("#LoginErrorButtons").on("click",function(){var n=$.trim($("#loginIds").val()),t=$.trim($("#loginPwds").val());(n||typeof n=="undefined")&&(t||typeof t=="undefined")?($(".wait_icon").show(),n=base64encode(n),t=base64encode(t),$("#loginidHiddens").val(n),$("#loginPwdHiddens").val(t),$("#loginUrlHiddens").val(memoryLastUrl),$("#LoginActionFrms").submit(),$.removeCookie("the_last_transfer_to",{path:"/"}),$.removeCookie("the_last_transfer_from",{path:"/"}),$.removeCookie("the_last_transfer_amt",{path:"/"}),localStorage.removeItem("isConnect"),localStorage.removeItem("showMsg"),localStorage.removeItem("ptcMsg")):popMessage(GetResources("Code_30003"))});$("#LoginErrorButton").on("click",function(){hideMaskByDivID("logRegModal")});$("#logRegModal input").focus(function(){var n=$(this);n.val()==""&&$("label[for='"+this.id+"']").addClass("active")});$("#logRegModal input").focusout(function(){$("#logRegModal input").each(function(){var n=$(this);n.val()==""&&$("label[for='"+this.id+"']").removeClass("active")})});$("#UserTxt a").on("click",function(n){n.preventDefault();var t=$(this),i=t.attr("href");AjaxPost(culture+"/Base/CheckSession",!1,null,function(n){n>0?(alert(GetMessage("SessionTimeout")),window.location.href="/"):popUserInfo(i)},!1)});$("a[type='help']").on("click",function(n){n.preventDefault();var t=$(this),i=t.attr("href");popHelp(i)});$("a[type='member']").on("click",function(n){n.preventDefault();var t=$(this),i=t.attr("href");AjaxPost(culture+"/Base/CheckSession",!1,null,function(n){n>0?(alert(GetMessage("SessionTimeout")),window.location.href="/"):popMember(i)},!1)});$("[type='memberNotice']").on("click",function(n){n.preventDefault();var t=$(this),i=t.attr("href");popMember(i)});if(ckLogin=="FALSE"?($('[href="'+culture+'/Member/Register"]').show(),$(".notlogin").show(),$(".haslogin").hide()):($('[href="'+culture+'/Member/Register"]').hide(),NewCountList(),$(document).everyTime("300s","IndexNewCountList",NewCountList),$(".notlogin").hide(),$(".haslogin").show()),$(".pagetop").length){r=100;t=function(){var n=$(window).scrollTop();n>r?$(".pagetop").show():$(".pagetop").hide()};t();$(window).on("scroll",function(){t()});$(".pagetop").on("click",function(n){n.preventDefault();$("html,body").animate({scrollTop:0},700)})}$('a[target="DNSDownload"]').on("click",function(){showMaskByDivID("DNSpopup");$("a.btn_close").click(function(){hideMaskByDivID("DNSpopup")})});$("#btn_close_login").on("click",function(){hideMaskByDivID("logRegModal")});$("[data-area='download'] a").on("click",function(n){var i,t;return n.preventDefault(),i=checkgamelogin(),i?(t=$(this),t.attr("href")!="#"&&window.open(t.attr("href"),"_blank"),!1):void 0});$("#Notice").length>0&&(ViewNotice(),$(document).stopTime("ViewNotice"),$(document).everyTime("1800s","ViewNotice",ViewNotice));$("#siderbar p").on("click",function(){$("#siderbar").toggleClass("siderbar_close")});$("#collectRebate").on("click",function(){if($.cookie("tempDisable")==="1"){popMessage(GetMessage("Processing"));return}var n=new Date;n.setTime(n.getTime()+1e4);$.cookie("tempDisable","1",{expires:n,path:"/"});ApiPost("/api/Account/CollectInstantRebate",{},function(n){var t;if(n.data){var i=_Float.toSpecial(n.data.Data.CollectInstantRebateData.Balance,2,!1),r=n.data.Data.CollectInstantRebateData.InstantRebateCreditData.RebateAmt==null?"":_Float.toSpecial(n.data.Data.CollectInstantRebateData.InstantRebateCreditData.RebateAmt,2,!1),u=$("#lbAmount").html().split("&nbsp;")[0],f=$("#RebateAmt").html().split("&nbsp;")[0];$("#RebateAmt").html(f.concat("&nbsp;",r));$("#lbAmount").html(u.concat("&nbsp;",i));n.data.Data.CollectInstantRebateData.InstantRebateCreditData.Status==1?(t=new Date,t.setTime(t.getTime()+18e4),$.cookie("tempDisable","1",{expires:t,path:"/"}),$("#collectRebate").show()):$("#collectRebate").hide();popMessage(n.data.Message)}},!1)})});checkgamelogin=function(){return ckLogin=="FALSE"?(showMaskByDivID("logRegModal"),!1):!0};$(document).ready(function(){if(wsErrorCount=0,ckLogin=="TRUE"){var n=localStorage.getItem("isConnect"),t=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);t?(localStorage.removeItem("isConnect"),localStorage.removeItem("showMsg"),localStorage.removeItem("ptcMsg"),sessionStorage.removeItem("isConnecting"),doConnect(),document.addEventListener("visibilitychange",function(){var t,i,n;document.visibilityState==="hidden"&&(localStorage.removeItem("isConnect"),sessionStorage.removeItem("isConnecting"));document.visibilityState==="visible"&&(wsErrorCount=0,typeof websocket!="undefined"&&(t=websocket.readyState,t!=1&&doConnect()),i=localStorage.getItem("showMsg"),i!="true"||$("#dialog").is(":visible")||(n=localStorage.getItem("ptcMsg"),n!=""&&(popMessage(GetResources(n)),$("#dialog-close").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")}),$("#dialog-mask").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")}))))})):(n!="true"&&(sessionStorage.removeItem("isConnecting"),doConnect()),$(window).bind("beforeunload",function(){if(typeof websocket!="undefined"){var n=websocket.readyState;n===1&&(localStorage.removeItem("isConnect"),localStorage.removeItem("showMsg"),localStorage.removeItem("ptcMsg"))}sessionStorage.removeItem("isConnecting")}))}window.addEventListener("storage",function(){var r=localStorage.getItem("showMsg"),n,t,i;r=="true"&&(n=localStorage.getItem("ptcMsg"),n!=""&&(popMessage(GetResources(n)),$("#dialog-close").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")}),$("#dialog-mask").bind("click",function(){localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")})),setTimeout(function(){$("#dialog").is(":visible")&&$("#dialog-close").click();localStorage.setItem("showMsg","false");localStorage.setItem("ptcMsg","")},2e4));t=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);ckLogin!="TRUE"||t||(typeof wsStatus=="undefined"||wsStatus==0)&&(i=localStorage.getItem("isConnect"),i!="true"&&doConnect())})});culture="/"+$.cookie("language");$.freebet=function(){};$.freebet.getFreeBet=function(){var t=$("#hdnAntiForgeryTokens").val(),n={};n.__RequestVerificationToken=t;$.until.postJSON({url:culture+"/Promote/FreeBet",data:null,headers:n,success:function(n){if(n!=undefined&&n.Code==0){if(showMaskByDivID("FreeBetModal"),n.ListFreebet==null){$("#promotionlistbody").hide();return}if(n.ListFreebet.length>0){if($("#promotionlistbody").html(""),n.ListFreebet!=undefined){var u=0,r="",f=$.cookie("language"),t="",i;$(n.ListFreebet).each(function(n,e){i="";$("#promotionlistbody").append("<tr><\/tr>");u++;r=e.Wallet==="IBC"||e.Wallet==="ICL"?"I-Sport":e.Wallet;i+="<td>"+r+"<\/td>";switch(f){case"en-MY":t=e.PromoteTitleMy;break;case"en-US":t=e.PromoteTitle;break;case"id-ID":t=e.PromoteTitleId;break;case"th-TH":t=e.PromoteTitleTh;break;case"vi-VN":t=e.PromoteTitleVn;break;case"zh-CN":t=e.PromoteTitleCn;break;case"ko-KR":t=e.PromoteTitleKr}i+="<td>"+t+"<\/td>";i+="<td>"+(e.MaxIndividualPlayer-e.CurrentPlayer)+"<\/td>";var o='<a href="javascript:void(0);" onclick="SendBatch(\''+e.PromoteId+"');\">"+GetMessage("GetNow").toUpperCase()+"<\/a>",s=e.CurrentPlayer<e.MaxIndividualPlayer&&ckLogin!="FALSE";i+=s?"<td>"+o+"<\/td>":"<td><\/td>";$("#promotionlistbody").find("tr:last").html(i)});$("#promotionlistbody").show()}}else $("#promotionlistbody").hide()}},error:function(){}});$("a.btn_close").click(function(){hideMaskByDivID("FreeBetModal")})};base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";mixin={data:{pageUrlEnum:{Homepage_Default:"Homepage-Default",LiveCasino_AG:"LiveCasino-AG",LiveCasino_AGC:"LiveCasino-AGC",LiveCasino_ALLBET:"LiveCasino-ALLBET",LiveCasino_ABC:"LiveCasino-ABC",LiveCasino_GD:"LiveCasino-GD",LiveCasino_GPC:"LiveCasino-GPC",LiveCasino_IBC:"LiveCasino-IBC",LiveCasino_OG:"LiveCasino-OG",LiveCasino_OGC:"LiveCasino-OGC",LiveCasino_OPUSCASINO:"LiveCasino-OPUSCASINO",LiveCasino_OPC:"LiveCasino-OPC",LiveCasino_EBET:"LiveCasino-EBET",LiveCasino_EBC:"LiveCasino-EBC",LiveCasino_PT:"LiveCasino-PT",LiveCasino_ROYAL:"LiveCasino-ROYAL",LiveCasino_RYC:"LiveCasino-RYC",LiveCasino_TGP:"LiveCasino-TGP",LiveCasino_MGC:"LiveCasino-MGC",LiveCasino_DGC:"LiveCasino-DGC",LiveCasino_SXC:"LiveCasino-SXC",LiveCasino_BGC:"LiveCasino-BGC",LiveCasino_SAC:"LiveCasino-SAC",LiveCasino_EGC:"LiveCasino-EGC",LiveCasino_WMC:"LiveCasino-WMC",LiveCasino_RLC:"LiveCasino-RLC",LiveCasino_Default:"LiveCasino-Default",EGAME_SGS:"EGAME-SGS",EGAME_SWS:"EGAME-SWS",EGAME_PT:"EGAME-PT",EGAME_TTG:"EGAME-TTG",EGAME_MGS:"EGAME-MGS",EGAME_BETSOFT:"EGAME-BETSOFT",EGAME_BSS:"EGAME-BSS",EGAME_PPS:"EGAME-PPS",EGAME_PPO:"EGAME-PPO",EGAME_HBS:"EGAME-HBS",EGAME_PRS:"EGAME-PRS",EGAME_PSS:"EGAME-PSS",EGAME_PGS:"EGAME-PGS",EGAME_CQS:"EGAME-CQS",EGAME_YGS:"EGAME-YGS",EGAME_YDS:"EGAME-YDS",EGAME_JKS:"EGAME-JKS",EGAME_AWS:"EGAME-AWS",EGAME_AWD:"EGAME-AWD",EGAME_BGS:"EGAME-BGS",EGAME_AES:"EGAME-AES",EGAME_NES:"EGAME-NES",EGAME_NSS:"EGAME-NSS",EGAME_FSS:"EGAME-FSS",EGAME_Default:"EGAME-Default",MobileExplore_Default:"MobileExplore-Default",Lottery_Default:"Lottery-Default",FishHunter_Default:"FishHunter-Default",Poker_Default:"Poker-Default",Racing_Default:"Racing-Default",Referral_Default:"Referral-Default",SportsBook_Default:"SportsBook-Default",Reward_Default:"Reward-Default"},culture:"",cultureRoute:"",productModuleEnabled:!1},created:function(){var n=this,t=$.cookie("language");n.culture=t},methods:{pageUrl:function(){var n=this,t,i,u,f,r,e;i=window.location.pathname;f=n.culture;t=i.split("/");r=t[1];r!==f.toLowerCase()?(u="/"+r,t=i.replace(u,"")):(e="/"+r,t=i.replace(e,""));t===""&&(t="/");switch(t.toLowerCase()){case"/":n.pathName=n.pageUrlEnum.Homepage_Default;break;case"/home":n.pathName=n.pageUrlEnum.Homepage_Default;break;case"/live-casino/livecasinoag":n.pathName=n.pageUrlEnum.LiveCasino_AG;break;case"/live-casino/livecasinoagc":n.pathName=n.pageUrlEnum.LiveCasino_AGC;break;case"/live-casino/livecasinoallbet":n.pathName=n.pageUrlEnum.LiveCasino_ALLBET;break;case"/live-casino/livecasinoabc":n.pathName=n.pageUrlEnum.LiveCasino_ABC;break;case"/live-casino/livecasinogd":n.pathName=n.pageUrlEnum.LiveCasino_GD;break;case"/live-casino/livecasinogp":n.pathName=n.pageUrlEnum.LiveCasino_GPC;break;case"/live-casino/livecasinoi":n.pathName=n.pageUrlEnum.LiveCasino_IBC;break;case"/live-casino/livecasinoog":n.pathName=n.pageUrlEnum.LiveCasino_OG;break;case"/live-casino/livecasinoogc":n.pathName=n.pageUrlEnum.LiveCasino_OGC;break;case"/live-casino/livecasinoopus":n.pathName=n.pageUrlEnum.LiveCasino_OPUSCASINO;break;case"/live-casino/livecasinoopc":n.pathName=n.pageUrlEnum.LiveCasino_OPC;break;case"/live-casino/livecasinoebet":n.pathName=n.pageUrlEnum.LiveCasino_EBET;break;case"/live-casino/livecasinoebc":n.pathName=n.pageUrlEnum.LiveCasino_EBC;break;case"/live-casino/livecasinopt":n.pathName=n.pageUrlEnum.LiveCasino_PT;break;case"/live-casino/livecasinoroyal":n.pathName=n.pageUrlEnum.LiveCasino_ROYAL;break;case"/live-casino/livecasinoryc":n.pathName=n.pageUrlEnum.LiveCasino_RYC;break;case"/live-casino/livecasinotgp":n.pathName=n.pageUrlEnum.LiveCasino_TGP;break;case"/live-casino/livecasinomgc":n.pathName=n.pageUrlEnum.LiveCasino_MGC;break;case"/live-casino/livecasinodg":n.pathName=n.pageUrlEnum.LiveCasino_DGC;break;case"/live-casino/livecasinosexy":n.pathName=n.pageUrlEnum.LiveCasino_SXC;break;case"/live-casino/livecasinobg":n.pathName=n.pageUrlEnum.LiveCasino_BGC;break;case"/live-casino/livecasinosac":n.pathName=n.pageUrlEnum.LiveCasino_SAC;break;case"/live-casino/livecasinoegc":n.pathName=n.pageUrlEnum.LiveCasino_EGC;break;case"/live-casino/livecasinowmc":n.pathName=n.pageUrlEnum.LiveCasino_WMC;break;case"/live-casino/livecasinorlc":n.pathName=n.pageUrlEnum.LiveCasino_RLC;break;case"/live-casino":n.pathName=n.pageUrlEnum.LiveCasino_Default;break;case"/slot-games/sgsgames":n.pathName=n.pageUrlEnum.EGAME_SGS;break;case"/slot-games/swsgames":n.pathName=n.pageUrlEnum.EGAME_SWS;break;case"/slot-games/ptegames":n.pathName=n.pageUrlEnum.EGAME_PT;break;case"/slot-games/ttggames":n.pathName=n.pageUrlEnum.EGAME_TTG;break;case"/slot-games/mgsgames":n.pathName=n.pageUrlEnum.EGAME_MGS;break;case"/slot-games/betsoftgames":n.pathName=n.pageUrlEnum.EGAME_BETSOFT;break;case"/slot-games/bssgames":n.pathName=n.pageUrlEnum.EGAME_BSS;break;case"/slot-games/ppsgames":n.pathName=n.pageUrlEnum.EGAME_PPS;break;case"/slot-games/ppogames":n.pathName=n.pageUrlEnum.EGAME_PPO;break;case"/slot-games/hbsgames":n.pathName=n.pageUrlEnum.EGAME_HBS;break;case"/slot-games/prsgames":n.pathName=n.pageUrlEnum.EGAME_PRS;break;case"/slot-games/pssgames":n.pathName=n.pageUrlEnum.EGAME_PSS;break;case"/slot-games/pgsgames":n.pathName=n.pageUrlEnum.EGAME_PGS;break;case"/slot-games/cqsgames":n.pathName=n.pageUrlEnum.EGAME_CQS;break;case"/slot-games/ygsgames":n.pathName=n.pageUrlEnum.EGAME_YGS;break;case"/slot-games/ydsgames":n.pathName=n.pageUrlEnum.EGAME_YDS;break;case"/slot-games/jksgames":n.pathName=n.pageUrlEnum.EGAME_JKS;break;case"/slot-games/awsgames":n.pathName=n.pageUrlEnum.EGAME_AWS;break;case"/slot-games/awdgames":n.pathName=n.pageUrlEnum.EGAME_AWD;break;case"/slot-games/bgsgames":n.pathName=n.pageUrlEnum.EGAME_BGS;break;case"/slot-games/aesgames":n.pathName=n.pageUrlEnum.EGAME_AES;break;case"/slot-games/nesgames":n.pathName=n.pageUrlEnum.EGAME_NES;break;case"/slot-games/nssgames":n.pathName=n.pageUrlEnum.EGAME_NSS;break;case"/slot-games/fssgames":n.pathName=n.pageUrlEnum.EGAME_FSS;break;case"/slot-games":n.pathName=n.pageUrlEnum.EGAME_Default;break;case"/mobileexplore":n.pathName=n.pageUrlEnum.MobileExplore_Default;break;case"/lottery":n.pathName=n.pageUrlEnum.Lottery_Default;break;case"/fishing-games":n.pathName=n.pageUrlEnum.FishHunter_Default;break;case"/poker":n.pathName=n.pageUrlEnum.Poker_Default;break;case"/racing":n.pathName=n.pageUrlEnum.Racing_Default;break;case"/referral":n.pathName=n.pageUrlEnum.Referral_Default;break;case"/sportsbook":n.pathName=n.pageUrlEnum.SportsBook_Default;break;case"/reward":n.pathName=n.pageUrlEnum.Reward_Default;break;default:n.pathName="NODATA"}},formatThousands:function(n){return Number(n).toFixed(2).replace(/(\d{1,3})(?=(\d{3})+\.)/g,"$1,")}},mounted:function(){var n=this;n.cultureRoute="/"+n.culture}};productPageMixin={methods:{assignProduct:function(){var n=this,t=n.productList;t.forEach(function(t){n.ProductInfo.forEach(function(n){n.providerId.toUpperCase()===t.ProviderId.toUpperCase()&&(t.GameUrl=n.gameUrl,t.ProviderId=n.providerId)})});n.productList=t},showProductModule:function(){this.productModuleEnabled=!this.productModuleEnabled},showProductModuleBtn:function(){var n=$(".seo_wrap h2").height();n<=36&&$(".seo_wrap .btn_type").hide()}},mounted:function(){this.showProductModuleBtn()}};new Vue({el:"#bannerSlider",mixins:[mixin],data:{banner:"",culture:"",pathName:"",bannerLength:0,bannerShow:!1},methods:{GetBannerList:function(){var n=this;axios.post("/api/Cms/GetBannerList",{Language:n.culture,PathName:n.pathName,BannerType:0}).then(function(t){var i=t.data.Data.Banner,r,u,f;if(!_.isEmpty(i)&&!_.isNull(i)){if(r=n.culture.toUpperCase(),_.isEmpty(i[r])||_.isNull(i[r])){$("#mainKv").remove();return}if(u=i[r],_.isEmpty(u[n.pathName])||_.isNull(u[n.pathName])){$("#mainKv").remove();return}f=u[n.pathName];n.banner=f;n.bannerLength=f.length;n.$nextTick(function(){f.length==1?n.removePreLoad():(n.installOwlCarousel(),$(".owl-item .item").css("width","calc(100% + 1px)"))}.bind(n))}}).catch(function(n){console.log(n)})},installOwlCarousel:function(){var n=$(".owl-carousel"),t=this;n.on({"initialized.owl.carousel":function(){t.removePreLoad()}}).owlCarousel({loop:!0,nav:!1,dots:!0,singleItem:!0,items:1,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,autoplaySpeed:1500,smartSpeed:500,responsiveClass:!0,lazyLoad:!0,lazyLoadEager:3})},removePreLoad:function(){$("#bannerSlider .preload").fadeOut(800)}},created:function(){var n=this;n.pageUrl();n.pathName!=="NODATA"&&(n.bannerShow=!0);n.bannerShow&&n.GetBannerList()},watch:{},computed:{},updated:function(){},mounted:function(){}})