var COOKIE_EXPIRE=12096e5,REQUEST_TIMEOUT=6e5,gcid_attempts_GkJKGf=0,yclid_attempts_GkJKGf=0,referral_code_GkJKGf="GkJKGf",operator_GkJKGf="11",user_data_GkJKGf={referral_log_id:null,experie_time:null,adv_tel_number:null,actualized:0,utm_source:null,full_url:null,google_client_id:null,region:null,referral_code:referral_code_GkJKGf,yandex_client_id:null,operator:operator_GkJKGf};function checkGAClientID_GkJKGf(){var e=getGAClientID_GkJKGf();return gcid_attempts_GkJKGf++,!e&&gcid_attempts_GkJKGf<60?(setTimeout(checkGAClientID_GkJKGf,200),!1):!!e&&void(user_data_GkJKGf.referral_log_id&&getAdvNum_GkJKGf())}function yidTimer_GkJKGf(){var e=getYclid_GkJKGf();if(yclid_attempts_GkJKGf++,!e&&yclid_attempts_GkJKGf<60)return setTimeout(yidTimer_GkJKGf,200),!1;e&&getAdvNum_GkJKGf()}function advNumReady_GkJKGf(e){"REFERRAL_LOG_ID"in e&&"ADVERTISEMENT_TEL_NUMBER"in e&&(user_data_GkJKGf.referral_log_id=e.REFERRAL_LOG_ID,user_data_GkJKGf.adv_tel_number=e.ADVERTISEMENT_TEL_NUMBER,user_data_GkJKGf.actualized=(new Date).getTime(),saveData_GkJKGf(user_data_GkJKGf)),!user_data_GkJKGf.google_client_id&&user_data_GkJKGf.referral_log_id&&checkGAClientID_GkJKGf(),user_data_GkJKGf.yandex_client_id||yidTimer_GkJKGf()}function getAdvNum_GkJKGf(){user_data_GkJKGf.google_client_id||(user_data_GkJKGf.google_client_id=getGAClientID_GkJKGf()),user_data_GkJKGf.yandex_client_id||(user_data_GkJKGf.yandex_client_id=getYclid_GkJKGf());var e="https://api.sunsim.ru/call-tracking/get-adv-num2";e+="?referral_log_id="+encodeURIComponent(user_data_GkJKGf.referral_log_id)+"&utm="+encodeURIComponent(user_data_GkJKGf.utm)+"&full_url="+encodeURIComponent(user_data_GkJKGf.full_url)+"&google_client_id="+encodeURIComponent(user_data_GkJKGf.google_client_id)+"&referral_code="+encodeURIComponent(user_data_GkJKGf.referral_code)+"&yandex_client_id="+encodeURIComponent(user_data_GkJKGf.yandex_client_id),user_data_GkJKGf.region&&(e+="®ion="+encodeURIComponent(user_data_GkJKGf.region)),operator_GkJKGf&&(e+="&operator="+encodeURIComponent(operator_GkJKGf));var t=document.createElement("script");t.setAttribute("src",e),t.onload=t.onerror=setAdvNum_GkJKGf,document.getElementsByTagName("head")[0].appendChild(t)}function setAdvNum_GkJKGf(){var e=document.getElementsByClassName("js-adv-ctcode-"+referral_code_GkJKGf);if(e.length||(e=document.getElementsByClassName("js-adv-num")),user_data_GkJKGf.adv_tel_number&&user_data_GkJKGf.adv_tel_number.length)for(var t=0;t=0;d--)/\d/.test(r[d])&&n=REQUEST_TIMEOUT?getAdvNum_GkJKGf():setAdvNum_GkJKGf()}));