(function(){function _vwo_err(e){function gE(e,a){return"https://dev.visualwebsiteoptimizer.com/ee.gif?a=747035&s=j.php&_cu="+encodeURIComponent(window.location.href)+"&e="+encodeURIComponent(e&&e.message&&e.message.substring(0,1e3)+"&vn=")+(e&&e.code?"&code="+e.code:"")+(e&&e.type?"&type="+e.type:"")+(e&&e.status?"&status="+e.status:"")+(a||"")}var vwo_e=gE(e);try{typeof navigator.sendBeacon==="function"?navigator.sendBeacon(vwo_e):(new Image).src=vwo_e}catch(err){}}try{var extE=0,prevMode=false;window._VWO_Jphp_StartTime = (window.performance && typeof window.performance.now === 'function' ? window.performance.now() : new Date().getTime());;;(function(){window._VWO=window._VWO||{};var aC=window._vwo_code;if(typeof aC==='undefined'){window._vwo_mt='dupCode';return;}if(window._VWO.sCL){window._vwo_mt='dupCode';window._VWO.sCDD=true;try{if(aC){clearTimeout(window._vwo_settings_timer);var h=document.querySelectorAll('#_vis_opt_path_hides');var x=h[h.length>1?1:0];x&&x.remove();}}catch(e){}return;}window._VWO.sCL=true;;window._vwo_mt="live";var localPreviewObject={};var previewKey="_vis_preview_"+747035;var wL=window.location;;try{localPreviewObject[previewKey]=window.localStorage.getItem(previewKey);JSON.parse(localPreviewObject[previewKey])}catch(e){localPreviewObject[previewKey]=""}try{window._vwo_tm="";var getMode=function(e){var n;if(window.name.indexOf(e)>-1){n=window.name}else{n=wL.search.match("_vwo_m=([^&]*)");n=n&&atob(decodeURIComponent(n[1]))}return n&&JSON.parse(n)};var ccMode=getMode("_vwo_cc");if(window.name.indexOf("_vis_heatmap")>-1||window.name.indexOf("_vis_editor")>-1||ccMode||window.name.indexOf("_vis_preview")>-1){try{if(ccMode){window._vwo_mt=decodeURIComponent(wL.search.match("_vwo_m=([^&]*)")[1])}else if(window.name&&JSON.parse(window.name)){window._vwo_mt=window.name}}catch(e){if(window._vwo_tm)window._vwo_mt=window._vwo_tm}}else if(window._vwo_tm.length){window._vwo_mt=window._vwo_tm}else if(location.href.indexOf("_vis_opt_preview_combination")!==-1&&location.href.indexOf("_vis_test_id")!==-1){window._vwo_mt="sharedPreview"}else if(localPreviewObject[previewKey]){window._vwo_mt=JSON.stringify(localPreviewObject)}if(window._vwo_mt!=="live"){;if(typeof extE!=="undefined"){extE=1}if(!getMode("_vwo_cc")){(function(){var cParam='';try{if(window.VWO&&window.VWO.appliedCampaigns){var campaigns=window.VWO.appliedCampaigns;for(var cId in campaigns){if(campaigns.hasOwnProperty(cId)){var v=campaigns[cId].v;if(cId&&v){cParam='&c='+cId+'-'+v+'-1';break;}}}}}catch(e){}var prevMode=false;_vwo_code.load('https://dev.visualwebsiteoptimizer.com/j.php?mode='+encodeURIComponent(window._vwo_mt)+'&a=747035&f=1&u='+encodeURIComponent(window._vis_opt_url||document.URL)+'&eventArch=true'+cParam,{sL:window._vwo_code.sL});if(window._vwo_code.sL){prevMode=true;}})();}else{(function(){window._vwo_code&&window._vwo_code.finish();_vwo_ccc={u:"/j.php?a=747035&u=https%3A%2F%2Fwww.travala.com%2Fflights%2Fpassenger-information%3FofferRequestId%3D694f15e59ff2be10d2812603%26parentId%3D694f15ef9ff2be10d2812ccf%26flightId%3D694f15ed9ff2be10d281279a&vn=2"};var s=document.createElement("script");s.src="https://app.vwo.com/visitor-behavior-analysis/dist/codechecker/cc.min.js?r="+Math.random();document.head.appendChild(s)})()}}}catch(e){var vwo_e=new Image;vwo_e.src="https://dev.visualwebsiteoptimizer.com/ee.gif?s=mode_det&e="+encodeURIComponent(e&&e.stack&&e.stack.substring(0,1e3)+"&vn=");aC&&window._vwo_code.finish()}})(); ;;window._vwo_cookieDomain="travala.com";;;;_vwo_surveyAssetsBaseUrl="https://cdn.visualwebsiteoptimizer.com/";;if(prevMode){return}if(window._vwo_mt === "live"){window.VWO=window.VWO||[];window._vwo_acc_id=747035;window.VWO._=window.VWO._||{};;;window.VWO.visUuid="D7CD402B095F7958D801BCEE2FE1D4071|8db6162285bcb8ded77b6c5ebb4af916"; ;_vwo_code.sT=_vwo_code.finished();(function(c,a,e,d,b,z,g,sT){if(window.VWO._&&window.VWO._.isBot)return;const cookiePrefix=window._vwoCc&&window._vwoCc.cookiePrefix||"";const useLocalStorage=sT==="ls";const cookieName=cookiePrefix+"_vwo_uuid_v2";const escapedCookieName=cookieName.replace(/([.*+?^${}()|[\]\\])/g,"\\$1");const cookieDomain=g;function getValue(){if(useLocalStorage){return localStorage.getItem(cookieName)}else{const regex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const match=e.cookie.match(regex);return match?decodeURIComponent(match[2]):null}}function setValue(value,days){if(useLocalStorage){localStorage.setItem(cookieName,value)}else{e.cookie=cookieName+"="+value+"; expires="+new Date(864e5*days+ +new Date).toGMTString()+"; domain="+cookieDomain+"; path=/"}}let existingValue=null;if(sT){const cookieRegex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const cookieMatch=e.cookie.match(cookieRegex);const cookieValue=cookieMatch?decodeURIComponent(cookieMatch[2]):null;const lsValue=localStorage.getItem(cookieName);if(useLocalStorage){if(lsValue){existingValue=lsValue;if(cookieValue){e.cookie=cookieName+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain="+cookieDomain+"; path=/"}}else if(cookieValue){localStorage.setItem(cookieName,cookieValue);e.cookie=cookieName+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain="+cookieDomain+"; path=/";existingValue=cookieValue}}else{if(cookieValue){existingValue=cookieValue;if(lsValue){localStorage.removeItem(cookieName)}}else if(lsValue){e.cookie=cookieName+"="+lsValue+"; expires="+new Date(864e5*366+ +new Date).toGMTString()+"; domain="+cookieDomain+"; path=/";localStorage.removeItem(cookieName);existingValue=lsValue}}a=existingValue||a}else{const regex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const match=e.cookie.match(regex);a=match?decodeURIComponent(match[2]):a}-1==e.cookie.indexOf("_vis_opt_out")&&-1==d.location.href.indexOf("vwo_opt_out=1")&&(window.VWO.visUuid=a),a=a.split("|"),b=new Image,g=window._vis_opt_domain||c||d.location.hostname.replace(/^www\./,""),b.src="https://dev.visualwebsiteoptimizer.com/v.gif?cd="+(window._vis_opt_cookieDays||0)+"&a=747035&d="+encodeURIComponent(d.location.hostname.replace(/^www\./,"") || c)+"&u="+a[0]+"&h="+a[1]+"&t="+z,d.vwo_iehack_queue=[b],setValue(a.join("|"),366)})("travala.com",window.VWO.visUuid,document,window,0,_vwo_code.sT,"travala.com","false"||null); ;clearTimeout(window._vwo_settings_timer);window._vwo_settings_timer=null;VWO.load_co=function(a,opts={}){var b=document.createElement('script');b.src=a;b.crossOrigin='anonymous';b.type='text/javascript';b.fetchPriority='high';opts.defer&&(b.defer=!0);b.innerText;b.onerror=function(){if(gcpfb(a,VWO.load_co)){return;}_vwo_code.finish();(new Image()).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a=747035&s=j.php&e=loading_failure:'+a;};document.getElementsByTagName('head')[0].appendChild(b);}; ;;;;var vwoCode=window._vwo_code;if(vwoCode.filterConfig&&vwoCode.filterConfig.filterTime==="balanced"){vwoCode.removeLoaderAndOverlay()}var vwo_CIF=false;var UAP=false;;;var _vwo_style=document.getElementById('_vis_opt_path_hides'),_vwo_css=(vwoCode.hide_element_style?vwoCode.hide_element_style():'{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;}')+':root {--vwo-el-opacity:0 !important;--vwo-el-filter:alpha(opacity=0) !important;--vwo-el-bg:none !important;--vwo-el-ts:none !important;}',_vwo_text="" + _vwo_css;if (_vwo_style) { var e = _vwo_style.classList.contains("_vis_hide_layer") && _vwo_style; if (UAP && !UAP() && vwo_CIF && !vwo_CIF()) { e ? e.parentNode.removeChild(e) : _vwo_style.parentNode.removeChild(_vwo_style) } else { if (e) { var t = _vwo_style = document.createElement("style"), o = document.getElementsByTagName("head")[0], s = document.querySelector("#vwoCode"); t.setAttribute("id", "_vis_opt_path_hides"), s && t.setAttribute("nonce", s.nonce), t.setAttribute("type", "text/css"), o.appendChild(t) } if (_vwo_style.styleSheet) _vwo_style.styleSheet.cssText = _vwo_text; else { var l = document.createTextNode(_vwo_text); _vwo_style.appendChild(l) } e ? e.parentNode.removeChild(e) : _vwo_style.removeChild(_vwo_style.childNodes[0])}};window.VWO.ssMeta = { enabled: 0, noSS: 0 };;;VWO._=VWO._||{};window._vwo_clicks=false;VWO._.allSettings=(function(){return{dataStore:{campaigns:{254:{"version":4,"ep":1765246694000,"clickmap":0,"globalCode":[],"type":"VISUAL_AB","status":"RUNNING","pc_traffic":100,"name":"Updated Rebranded Payment Checkout Page - (24150)","manual":false,"urlRegex":"","exclude_url":"","multiple_domains":0,"segment_code":"(_vwo_s().f_nin(_vwo_s().de(), 'ipod') && _vwo_s().f_nin(_vwo_s().de(), 'ipad') && _vwo_s().f_nin(_vwo_s().de(), 'iphone') && _vwo_s().f_nin(_vwo_s().de(), 'winphone') && _vwo_s().f_nin(_vwo_s().de(), 'android') && _vwo_s().f_nin(_vwo_s().de(), 'googletv') && _vwo_s().f_nin(_vwo_s().de(), 'symbian') && _vwo_s().f_nin(_vwo_s().de(), 'blackberry')) && (_vwo_s().f_d_con(_vwo_s().ua(), 'Mobile'))","ss":{"csa":0},"ibe":0,"segment_code_v2":"(_vwo_s().f_e(_vwo_s().dt(), 'desktop'))","muts":{"post":{"enabled":true,"refresh":true}},"sections":{"1":{"path":"","variations":{"1":[],"2":[{"cpath":"","tag":"C_747035_254_1_2_0","xpath":"HEAD"}]},"segment":{"1":1,"2":1},"globalWidgetSnippetIds":{"1":[],"2":[]},"editorXPaths":{"1":[],"2":[]},"variation_names":{"1":"Control","2":"Variation-1"},"triggers":[]}},"varSegAllowed":false,"combs":{"1":0.5,"2":0.5},"comb_n":{"1":"Control","2":"Variation-1"},"goals":{"1":{"type":"CUSTOM_GOAL","identifier":"btn_hotel_reservationcomplete","mca":false},"2":{"type":"CUSTOM_GOAL","identifier":"common_complete_reservation","mca":false},"3":{"type":"CUSTOM_GOAL","identifier":"sign_up_all","mca":false},"4":{"type":"CUSTOM_GOAL","identifier":"sign_in_all","mca":false}},"pgre":true,"ps":false,"GTM":1,"metrics":[{"id":1,"type":"m","metricId":238178},{"id":2,"type":"m","metricId":333262},{"id":3,"type":"m","metricId":981705},{"id":4,"type":"m","metricId":981684}],"cEV":1,"id":254,"pg_config":["3035719"],"triggers":["20880835"],"mt":{"1":"1727412","2":"2696260","3":"8706063","4":"8706066"}}},changeSets:{},plugins:{"DACDNCONFIG":{"CJ":false,"RDBG":false,"DNDOFST":1000,"CRECJS":false,"SCC":"{\"cache\":0}","debugEvt":false,"DLRE":false,"SST":false,"DT":{"DEVICE":"mobile","TC":"function(){ return _vwo_t.cm('eO','js',VWO._.dtc.ctId); };","SEGMENTCODE":"function(){ return _vwo_s().f_e(_vwo_s().dt(),'mobile') };","DELAYAFTERTRIGGER":1000},"SD":false,"eNC":false,"SPAR":false,"AST":true,"PRTHD":false,"IAF":false,"jsConfig":{"earc":1,"m360":1,"ast":1},"CSHS":false,"CINSTJS":false,"BSECJ":false,"CKLV":false,"UCP":false,"SPA":true,"FB":false,"DONT_IOS":false},"GEO":{"c":"Sousse","conC":"AF","r":"51","rn":"Sousse Governorate","cEU":"","vn":"geoip2","cc":"TN","cn":"Tunisia"},"IP":"102.158.24.181","LIBINFO":{"OPA":{"HASH":"f9202f52e864dad45f91e84ff7dd6cc5br","PATH":"\/4.0"},"SURVEY":{"HASH":"229f874a3300b33838ca01f83ae40e30br"},"TRACK":{"HASH":"056cb2758ffa28cd1e09022406ef9801br","LIB_SUFFIX":""},"WORKER":{"HASH":"70faafffa0475802f5ee03ca5ff74179br"},"SURVEY_HTML":{"HASH":"b436fedfa1cc963271ea0920f91fd465br"},"SURVEY_DEBUG_EVENTS":{"HASH":"5422a9247274a192ad707ccb4975fd52br"},"DEBUGGER_UI":{"HASH":"ac2f1194867fde41993ef74a1081ed6bbr"},"EVAD":{"HASH":"","LIB_SUFFIX":""},"HEATMAP_HELPER":{"HASH":"84cb22b218b0b79c6471d1f66ff89f6ebr"}},"UA":{"dt":"desktop","br":"Chrome","de":"Other","ps":"desktop:false:Windows:10:Chrome:143:Other","os":"Windows"},"PIICONFIG":false,"ACCTZ":"GMT"},vwoData:{"gC":null,"pR":[]},crossDomain:{},integrations:{"254":{"GTM":1},"249":{"GTM":1}},events:{"sign_in_all":{},"sign_up_all":{},"btn_login":{},"meta_complete_reservation":{},"meta_hotel_booknow":{},"btn_register":{},"rth_hotel_booknow":{},"rth_hotel_reservationcomplete":{},"hotel_purchase":{},"btn_flight_select":{},"common_complete_reservation":{},"gtm.Btn_Flight_ReservationComplete":{},"gtm.Btn_Hotel_ReservationComplete":{},"btn_flight_reservationcomplete":{},"tvl_open_app":{},"gtm.Btn_Activity_ReservationComplete":{},"btn_hotel_booknow":{},"btn_hotel_chooseroom":{},"btn_hotel_reservationcomplete":{},"google_login_click":{},"google_login_success":{},"gtm.Btn_Hotel_ReservationCompl":{},"gtm.Btn_Flight_Search":{},"gtm.Btn_Hotel_Search":{},"gtm.Btn_Hotel_ChooseRoom":{},"vwo_appGoesInBackground":{},"vwo_appLaunched":{},"vwo_autoCapture":{},"vwo_zoom":{},"test_event":{},"vwo_scroll":{},"vwo_doubleTap":{},"vwo_singleTap":{},"vwo_appNotResponding":{},"vwo_page_session_count":{},"vwo_rC":{},"vwo_vA":{},"vwo_survey_surveyCompleted":{},"vwo_survey_submit":{},"vwo_survey_reachedThankyou":{},"vwo_survey_questionShown":{},"purchase":{},"vwo_survey_complete":{},"vwo_survey_close":{},"vwo_debugLogs":{},"vwo_customConversion":{},"vwo_revenue":{},"vwo_customTrigger":{},"vwo_leaveIntent":{},"vwo_conversion":{},"test":{},"vwo_trackGoalVisited":{},"vwo_newSessionCreated":{},"vwo_syncVisitorProp":{},"vwo_timer":{"nS":["timeSpent"]},"vwo_dom_submit":{},"vwo_variationShown":{},"vwo_analyzeHeatmap":{},"vwo_analyzeRecording":{},"vwo_dom_click":{"nS":["target.innerText","target"]},"vwo_goalVisit":{"nS":["expId"]},"vwo_dom_scroll":{"nS":["pxBottom","bottom","top","pxTop"]},"vwo_cursorThrashed":{},"vwo_analyzeForm":{},"vwo_survey_attempt":{},"vwo_survey_display":{},"vwo_survey_questionAttempted":{},"vwo_quickBack":{},"vwo_appCrashed":{},"vwo_fling":{},"vwo_sessionSync":{},"vwo_longPress":{},"vwo_screenViewed":{},"vwo_dom_hover":{},"vwo_log":{},"vwo_appTerminated":{},"vwo_sdkDebug":{},"vwo_orientationChanged":{},"vwo_appComesInForeground":{},"vwo_sdkUsageStats":{},"vwo_surveyQuestionSubmitted":{},"vwo_fmeSdkInit":{},"vwo_surveyCompleted":{},"vwo_performance":{},"vwo_repeatedHovered":{},"vwo_repeatedScrolled":{},"vwo_tabOut":{},"vwo_tabIn":{},"vwo_mouseout":{},"vwo_selection":{},"vwo_copy":{},"vwo_networkChanged":{},"vwo_pageRefreshed":{},"vwo_pageView":{},"vwo_recommendation_block_shown":{},"vwo_errorOnPage":{},"vwo_surveyAttempted":{},"vwo_surveyExtraData":{},"vwo_surveyQuestionDisplayed":{},"vwo_surveyQuestionAttempted":{},"vwo_surveyDisplayed":{},"vwo_surveyClosed":{},"vwo_pageUnload":{},"gtm.SignIn_OTP_Click":{},"signin_otp_click":{},"gtm.Proceed_to_payment":{}},visitorProps:{"vwo_email":{},"vwo_domain":{}},uuid:"D7CD402B095F7958D801BCEE2FE1D4071",syV:{},syE:{},cSE:{},CIF:false,syncEvent:"sessionCreated",syncAttr:"sessionCreated"},sCIds:{},oCids:{},triggers:{"1727412":{"cnds":[{"id":1000,"event":"btn_hotel_reservationcomplete","filters":[]}],"dslv":2},"2":{"cnds":[{"event":"vwo_variationShown","id":100}]},"2696260":{"cnds":[{"id":1000,"event":"common_complete_reservation","filters":[]}],"dslv":2},"5":{"cnds":[{"event":"vwo_postInit","id":101}]},"8706063":{"cnds":[{"id":1000,"event":"sign_up_all","filters":[]}],"dslv":2},"8":{"cnds":[{"event":"vwo_pageView","id":102}]},"9":{"cnds":[{"event":"vwo_groupCampTriggered","id":105}]},"20880835":{"cnds":["a",{"id":1002,"event":"vwo_pageView","filters":[]},["o",{"id":500,"event":"vwo_pageView","filters":[["storage.cookies._vis_opt_exp_254_combi","nbl"]]},["a",{"event":"vwo_mutationObserved","id":2},{"event":"vwo_notRedirecting","id":4,"filters":[]},{"event":"vwo_visibilityTriggered","id":5,"filters":[]},{"id":1000,"event":"vwo_pageView","filters":[["deviceType","in",["desktop"]]]}]]],"dslv":2},"75":{"cnds":[{"event":"vwo_urlChange","id":99}]},"8706066":{"cnds":[{"id":1000,"event":"sign_in_all","filters":[]}],"dslv":2}},preTriggers:{},tags:{},rules:[{"tags":[{"metricId":981705,"data":{"type":"m","campaigns":[{"c":254,"g":3}]},"id":"metric"}],"triggers":["8706063"]},{"tags":[{"metricId":981684,"data":{"type":"m","campaigns":[{"c":254,"g":4}]},"id":"metric"}],"triggers":["8706066"]},{"tags":[{"metricId":333262,"data":{"type":"m","campaigns":[{"c":254,"g":2}]},"id":"metric"}],"triggers":["2696260"]},{"tags":[{"data":"campaigns.254","priority":4,"id":"runCampaign"}],"triggers":["20880835"]},{"tags":[{"metricId":238178,"data":{"type":"m","campaigns":[{"c":254,"g":1}]},"id":"metric"}],"triggers":["1727412"]},{"tags":[{"priority":3,"id":"prePostMutation"},{"priority":2,"id":"groupCampaigns"}],"triggers":["8"]},{"tags":[{"priority":2,"id":"visibilityService"}],"triggers":["9"]},{"tags":[{"id":"runTestCampaign"}],"triggers":["2"]},{"tags":[{"id":"urlChange"}],"triggers":["75"]},{"tags":[{"id":"checkEnvironment"}],"triggers":["5"]}],pages:{"ec":[{"2974303":{"inc":["o",["url","urlReg","(?i).*"]]}}]},pagesEval:{"ec":[2974303]},stags:{},domPath:{}}})(); ;;var commonWrapper=function(argument){if(!argument){argument={valuesGetter:function(){return{}},valuesSetter:function(){},verifyData:function(){return{}}}}var getVisitorUuid=function(){if(window._vwo_acc_id>=1037725){return window.VWO&&window.VWO.get("visitor.id")}else{return window.VWO._&&window.VWO._.cookies&&window.VWO._.cookies.get("_vwo_uuid")}};var pollInterval=100;var timeout=6e4;return function(){var accountIntegrationSettings={};var _interval=null;function waitForAnalyticsVariables(){try{accountIntegrationSettings=argument.valuesGetter();accountIntegrationSettings.visitorUuid=getVisitorUuid()}catch(error){accountIntegrationSettings=undefined}if(accountIntegrationSettings&&argument.verifyData(accountIntegrationSettings)){argument.valuesSetter(accountIntegrationSettings);return 1}return 0}var currentTime=0;_interval=setInterval((function(){currentTime=currentTime||performance.now();var result=waitForAnalyticsVariables();if(result||performance.now()-currentTime>=timeout){clearInterval(_interval)}}),pollInterval)}}; commonWrapper({valuesGetter:function(){return {"ga4s":0}},valuesSetter:function(data){var singleCall=data["ga4s"]||0;if(singleCall){window.sessionStorage.setItem("vwo-ga4-singlecall",true)}var ga4_device_id="";if(typeof window.VWO._.cookies!=="undefined"){ga4_device_id=window.VWO._.cookies.get("_ga")||""}if(ga4_device_id){window.vwo_ga4_uuid=ga4_device_id.split(".").slice(-2).join(".")}},verifyData:function(data){if(typeof window.VWO._.cookies!=="undefined"){return window.VWO._.cookies.get("_ga")||""}else{return false}}})(); var pushBasedCommonWrapper=function(argument){var firedCamp={};if(!argument){argument={integrationName:"",getExperimentList:function(){},accountSettings:function(){},pushData:function(){}}}return function(){window.VWO=window.VWO||[];var getVisitorUuid=function(){if(window._vwo_acc_id>=1037725){return window.VWO&&window.VWO.get("visitor.id")}else{return window.VWO._&&window.VWO._.cookies&&window.VWO._.cookies.get("_vwo_uuid")}};var sendDebugLogsOld=function(expId,variationId,errorType,user_type,data){try{var errorPayload={f:argument["integrationName"]||"",a:window._vwo_acc_id,url:window.location.href,exp:expId,v:variationId,vwo_uuid:getVisitorUuid(),user_type:user_type};if(errorType=="initIntegrationCallback"){errorPayload["log_type"]="initIntegrationCallback";errorPayload["data"]=JSON.stringify(data||"")}else if(errorType=="timeout"){errorPayload["timeout"]=true}if(window.VWO._.customError){window.VWO._.customError({msg:"integration debug",url:window.location.href,lineno:"",colno:"",source:JSON.stringify(errorPayload)})}}catch(e){window.VWO._.customError&&window.VWO._.customError({msg:"integration debug failed",url:"",lineno:"",colno:"",source:""})}};var sendDebugLogs=function(expId,variationId,errorType,user_type){var eventName="vwo_debugLogs";var eventPayload={};try{eventPayload={intName:argument["integrationName"]||"",varId:variationId,expId:expId,type:errorType,vwo_uuid:getVisitorUuid(),user_type:user_type};if(window.VWO._.event){window.VWO._.event(eventName,eventPayload,{enableLogs:1})}}catch(e){eventPayload={msg:"integration event log failed",url:window.location.href};window.VWO._.event&&window.VWO._.event(eventName,eventPayload)}};var callbackFn=function(data){if(!data)return;var expId=data[1],variationId=data[2],repeated=data[0],singleCall=0,debug=0;var experimentList=argument.getExperimentList();var integrationName=argument["integrationName"]||"vwo";if(typeof argument.accountSettings==="function"){var accountSettings=argument.accountSettings();if(accountSettings){singleCall=accountSettings["singleCall"];debug=accountSettings["debug"]}}if(debug){sendDebugLogs(expId,variationId,"intCallTriggered",repeated);sendDebugLogsOld(expId,variationId,"initIntegrationCallback",repeated)}if(singleCall&&(repeated==="vS"||repeated==="vSS")||firedCamp[expId]){return}window.expList=window.expList||{};var expList=window.expList[integrationName]=window.expList[integrationName]||[];if(expId&&variationId&&["VISUAL_AB","VISUAL","SPLIT_URL"].indexOf(_vwo_exp[expId].type)>-1){if(experimentList.indexOf(+expId)!==-1){firedCamp[expId]=variationId;var visitorUuid=getVisitorUuid();var pollInterval=100;var currentTime=0;var timeout=6e4;var user_type=_vwo_exp[expId].exec?"vwo-retry":"vwo-new";var interval=setInterval((function(){if(expList.indexOf(expId)!==-1){clearInterval(interval);return}currentTime=currentTime||performance.now();var toClearInterval=argument.pushData(expId,variationId,visitorUuid);if(debug&&toClearInterval){sendDebugLogsOld(expId,variationId,"",user_type);sendDebugLogs(expId,variationId,"intDataPushed",user_type)}var isTimeout=performance.now()-currentTime>=timeout;if(isTimeout&&debug){sendDebugLogsOld(expId,variationId,"timeout",user_type);sendDebugLogs(expId,variationId,"intTimeout",user_type)}if(toClearInterval||isTimeout){clearInterval(interval)}if(toClearInterval){window.expList[integrationName].push(expId)}}),pollInterval||100)}}};window.VWO.push(["onVariationApplied",callbackFn]);window.VWO.push(["onVariationShownSent",callbackFn])}}; var surveyDataCommonWrapper=function(argument){window._vwoFiredSurveyEvents=window._vwoFiredSurveyEvents||{};if(!argument){argument={getCampaignList:function(){return[]},surveyStatusChange:function(){},answerSubmitted:function(){}}}return function(){window.VWO=window.VWO||[];function getValuesFromAnswers(answers){return answers.map((function(ans){return ans.value}))}function generateHash(str){var hash=0;for(var i=0;i=timeout;if(done||expired){window._vwoFiredSurveyEvents[eventKey]=true;clearInterval(interval)}}),pollInterval)}}window.VWO.push(["onSurveyShown",function(data){commonSurveyCallback(data,argument.surveyStatusChange,"surveyShown")}]);window.VWO.push(["onSurveyCompleted",function(data){commonSurveyCallback(data,argument.surveyStatusChange,"surveyCompleted")}]);window.VWO.push(["onSurveyAnswerSubmitted",function(data){commonSurveyCallback(data,argument.answerSubmitted,"surveySubmitted")}])}}; (function(){var VWOOmniTemp={};window.VWOOmni=window.VWOOmni||{};for(var key in VWOOmniTemp)Object.prototype.hasOwnProperty.call(VWOOmniTemp,key)&&(window.VWOOmni[key]=VWOOmniTemp[key]);window._vwoIntegrationsLoaded=1;pushBasedCommonWrapper({integrationName:"GA4",getExperimentList:function(){return [254,249]},accountSettings:function(){var accountIntegrationSettings={"setupVia":"gtm","manualSetup":true,"dataVariable":"dataLayer"};if(accountIntegrationSettings["debugType"]=="ga4"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"setupVia":"gtm","manualSetup":true,"dataVariable":"dataLayer"};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtag";if(typeof window.gtag!=="undefined"&&ga4Setup=="gtag"){window.gtag("event","VWO",{vwo_campaign_name:window._vwo_exp[expId].name+":"+expId,vwo_variation_name:window._vwo_exp[expId].comb_n[variationId]+":"+variationId});window.gtag("event","experience_impression",{exp_variant_string:"VWO-"+expId+"-"+variationId});return true}return false}})();pushBasedCommonWrapper({integrationName:"GA4-GTM",getExperimentList:function(){return [254,249]},accountSettings:function(){var accountIntegrationSettings={"setupVia":"gtm","manualSetup":true,"dataVariable":"dataLayer"};if(accountIntegrationSettings["debugType"]=="gtm"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"setupVia":"gtm","manualSetup":true,"dataVariable":"dataLayer"};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtm";var dataVariable=accountIntegrationSettings["dataVariable"]||"dataLayer";if(typeof window[dataVariable]!=="undefined"&&ga4Setup=="gtm"){window[dataVariable].push({event:"vwo-data-push-ga4",vwo_exp_variant_string:"VWO-"+expId+"-"+variationId});return true}return false}})(); ;})();(function(){window.VWO=window.VWO||[];var pollInterval=100;var _vis_data={};var intervalObj={};var analyticsTimerObj={};var experimentListObj={};window.VWO.push(["onVariationApplied",function(data){if(!data){return}var expId=data[1],variationId=data[2];if(expId&&variationId&&["VISUAL_AB","VISUAL","SPLIT_URL"].indexOf(window._vwo_exp[expId].type)>-1){}}])})();; ;var vD=VWO.data||{};VWO.data={content:{"fns":{"list":{"args":{"1":{}},"vn":1}}},as:"r3.visualwebsiteoptimizer.com",dacdnUrl:"https://dev.visualwebsiteoptimizer.com",accountJSInfo:{"pc":{"t":0,"a":0},"ts":1766791123,"pvn":0,"rp":30,"tpc":{},"noSS":false}};for(var k in vD){VWO.data[k]=vD[k]};var gcpfb=function(a,loadFunc,status,err,success){function vwoErr() {_vwo_err({message:"Google_Cdn failing for " + a + ". Trying Fallback..",code:"cloudcdnerr",status:status});} if(a.indexOf("/cdn/")!==-1){loadFunc(a.replace("cdn/",""),err,success); vwoErr(); return true;} else if(a.indexOf("/dcdn/")!==-1&&a.indexOf("evad.js") !== -1){loadFunc(a.replace("dcdn/",""),err,success); vwoErr(); return true;}};window.VWO=window.VWO || [];window.VWO._= window.VWO._ || {};window.VWO._.gcpfb=gcpfb;;window._vwoCc = window._vwoCc || {}; if (typeof window._vwoCc.dAM === 'undefined') { window._vwoCc.dAM = 1; };var d={cookie:document.cookie,URL:document.URL,referrer:document.referrer};var w={VWO:{_:{}},location:{href:window.location.href,search:window.location.search},_vwoCc:window._vwoCc};;window._vwo_cdn="https://dev.visualwebsiteoptimizer.com/cdn/";window._vwo_apm_debug_cdn="https://dev.visualwebsiteoptimizer.com/cdn/";window.VWO._.useCdn=true;window.vwo_eT="br";window._VWO=window._VWO||{};window._VWO.fSeg=["249"];window._VWO.dcdnUrl="/dcdn/settings.js";;window.VWO.sTs=1766654307;window._VWO._vis_nc_lib=window._vwo_cdn+"edrv/nc-910c11135d2d58ec279245cb98760bf8.br.js";var code = 'var window = ' + JSON.stringify(w) + ', document = ' + JSON.stringify(d) + ',workerUrl ="https://dev.visualwebsiteoptimizer.com/cdn/edrv/worker-f4a933e7b7c2f99fc140d82308f30dce.br.js";window.document=document;var gcpfb=function(a,loadFunc){if(a.indexOf("/cdn/")!==-1){loadFunc(a.replace("cdn/",""));var err="https://dev.visualwebsiteoptimizer.com/ee.gif?a=747035&s=j.php&e=Google_Cdn failing for "+a+ " Trying Fallback..&code=cloudcdnerr";fetch(err,{method:"GET"});return true;}};try{ importScripts(workerUrl);}catch(e){gcpfb(workerUrl,importScripts)}';var blob = new Blob([code],{ type: 'application/javascript'}), _vwo_worker_url_jphp = (URL.createObjectURL || window.webkitURL && window.webkitURL.createObjectURL)(blob);try { var CoreWorker = window.VWO.WorkerRef || window.Worker; window.mainThread = { webWorker: new CoreWorker(_vwo_worker_url_jphp)}; } catch (e) { if (e instanceof DOMException && e.code === 18) { e = new Error(e.message); e.code = 'DE_SE_018'; } throw e; };window.vwoChannelFW=new MessageChannel();window.vwoChannelToW=new MessageChannel();window.mainThread.webWorker.postMessage({vwoChannelToW:vwoChannelToW.port1,vwoChannelFW:vwoChannelFW.port2},[vwoChannelToW.port1, vwoChannelFW.port2]);;var _vis_opt_file;var _vis_opt_lib;var check_vn=function f(){try{var[r,n,t]=window.jQuery.fn.jquery.split(".").map(Number);return 2===r||1===r&&(4-1&&!check_vn()){_vis_opt_file=vaGqFile}}window._vwo_library_timer=setTimeout((function(){vwoCode.removeLoaderAndOverlay&&vwoCode.removeLoaderAndOverlay();vwoCode.finish()}),vwoCode.library_tolerance&&typeof vwoCode.library_tolerance()!=="undefined"?vwoCode.library_tolerance():2500),_vis_opt_lib=typeof _vis_opt_lib=="undefined"?window._vwo_cdn+_vis_opt_file:_vis_opt_lib;VWO.load_co(_vis_opt_lib);;;;}}catch(e){_vwo_code.finish();_vwo_code.removeLoaderAndOverlay&&_vwo_code.removeLoaderAndOverlay();_vwo_err(e);window.VWO.caE=1}})();